From 02eca1b48357dbde89dbc54761cfdbb356b72df6 Mon Sep 17 00:00:00 2001 From: Nick_J <925416729@qq.com> Date: Mon, 14 Oct 2019 09:22:08 +0800 Subject: [PATCH] =?UTF-8?q?feature=20x=EF=BC=8Cy=E8=BD=B4=E9=A2=9C?= =?UTF-8?q?=E8=89=B2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/index.js | 2 +- dist/index.js.map | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 712aa3d..fef18e9 100644 --- a/dist/index.js +++ b/dist/index.js @@ -8,5 +8,5 @@ exports.echartsAdapter=function(t){var e={};function n(i){if(e[i])return e[i].ex * LICENSE * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt */ -var vr=!p.canvasSupported,yr={canvas:or},xr={},_r="4.0.6";function br(t,e){var n=new Mr(f(),t,e);return xr[n.id]=n,n}function wr(t,e){yr[t]=e}var Mr=function(t,e,n){n=n||{},this.dom=e,this.id=t;var i=this,r=new Hn,o=n.renderer;if(vr){if(!yr.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");o="vml"}else o&&yr[o]||(o="canvas");var a=new yr[o](e,r,n,t);this.storage=r,this.painter=a;var s=p.node||p.worker?null:new gr(a.getViewportRoot());this.handler=new re(r,a,s,a.root),this.animation=new ar({stage:{update:H(this.flush,this)}}),this.animation.start(),this._needsRefresh;var l=r.delFromStorage,u=r.addToStorage;r.delFromStorage=function(t){l.call(r,t),t&&t.removeSelfFromZr(i)},r.addToStorage=function(t){u.call(r,t),t.addSelfToZr(i)}};Mr.prototype={constructor:Mr,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this._needsRefresh=!0},setBackgroundColor:function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var t;this._needsRefresh&&(t=!0,this.refreshImmediately()),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately()),t&&this.trigger("rendered")},addHover:function(t,e){if(this.painter.addHover){var n=this.painter.addHover(t,e);return this.refreshHover(),n}},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(t,e){return this.painter.pathToImage(t,e)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},findHover:function(t,e){return this.handler.findHover(t,e)},on:function(t,e,n){this.handler.on(t,e,n)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,t=this.id,delete xr[t]}};var Sr=(Object.freeze||Object)({version:_r,init:br,dispose:function(t){if(t)t.dispose();else{for(var e in xr)xr.hasOwnProperty(e)&&xr[e].dispose();xr={}}return this},getInstance:function(t){return xr[t]},registerPainter:wr}),Ir=B,Ar=X,Dr=Y,Tr="series\0";function Cr(t){return t instanceof Array?t:null==t?[]:[t]}function Lr(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=n.length&&n.push({option:t})}}),n}function Nr(t){var e=ht();Ir(t,function(t,n){var i=t.exist;i&&e.set(i.id,t)}),Ir(t,function(t,n){var i=t.option;rt(!i||null==i.id||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})}),Ir(t,function(t,n){var i=t.exist,r=t.option,o=t.keyInfo;if(Ar(r)){if(o.name=null!=r.name?r.name+"":i?i.name:Tr+n,i)o.id=i.id;else if(null!=r.id)o.id=r.id+"";else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(e.get(o.id))}e.set(o.id,t)}})}function Er(t){var e=t.name;return!(!e||!e.indexOf(Tr))}function zr(t){return Ar(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")}function Rr(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?Y(e.dataIndex)?V(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?Y(e.name)?V(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function Br(){var t="__\0ec_inner_"+Vr+++"_"+Math.random().toFixed(5);return function(e){return e[t]||(e[t]={})}}var Vr=0;function Fr(t,e,n){if(U(e)){var i={};i[e+"Index"]=0,e=i}var r=n&&n.defaultMainType;!r||Gr(e,r+"Index")||Gr(e,r+"Id")||Gr(e,r+"Name")||(e[r+"Index"]=0);var o={};return Ir(e,function(i,r){if(i=e[r],"dataIndex"!==r&&"dataIndexInside"!==r){var a=r.match(/^(\w+)(Index|Id|Name)$/)||[],s=a[1],l=(a[2]||"").toLowerCase();if(!(!s||!l||null==i||"index"===l&&"none"===i||n&&n.includeMainTypes&&N(n.includeMainTypes,s)<0)){var u={mainType:s};"index"===l&&"all"===i||(u[l]=i);var h=t.queryComponents(u);o[s+"Models"]=h,o[s+"Model"]=h[0]}}else o[r]=i}),o}function Gr(t,e){return t&&t.hasOwnProperty(e)}function Wr(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Hr(t){return"auto"===t?p.domSupported?"html":"richText":t||"html"}var jr=".",Yr="___EC__COMPONENT__CONTAINER___";function Zr(t){var e={main:"",sub:""};return t&&(t=t.split(jr),e.main=t[0]||"",e.sub=t[1]||""),e}function Ur(t,e){t.$constructor=t,t.extend=function(t){c&&B(e,function(e){t[e]||console.warn("Method `"+e+"` should be implemented"+(t.type?" in "+t.type:"")+".")});var n=this,i=function(){t.$constructor?t.$constructor.apply(this,arguments):n.apply(this,arguments)};return C(i.prototype,t),i.extend=this.extend,i.superCall=Kr,i.superApply=Qr,E(i,this),i.superClass=n,i}}var Xr=0;function qr(t){var e=["__\0is_clz",Xr++,Math.random().toFixed(3)].join("_");t.prototype[e]=!0,c&&rt(!t.isInstance,'The method "is" can not be defined.'),t.isInstance=function(t){return!(!t||!t[e])}}function Kr(t,e){var n=nt(arguments,2);return this.superClass.prototype[e].apply(t,n)}function Qr(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Jr(t,e){e=e||{};var n={};if(t.registerClass=function(t,e){return e&&(function(t){rt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}(e),(e=Zr(e)).sub?e.sub!==Yr&&((function(t){var e=n[t.main];return e&&e[Yr]||((e=n[t.main]={})[Yr]=!0),e}(e))[e.sub]=t):(c&&n[e.main]&&console.warn(e.main+" exists."),n[e.main]=t)),t},t.getClass=function(t,e,i){var r=n[t];if(r&&r[Yr]&&(r=e?r[e]:null),i&&!r)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){t=Zr(t);var e=[],i=n[t.main];return i&&i[Yr]?B(i,function(t,n){n!==Yr&&e.push(t)}):e.push(i),e},t.hasClass=function(t){return t=Zr(t),!!n[t.main]},t.getAllClassMainTypes=function(){var t=[];return B(n,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){t=Zr(t);var e=n[t.main];return e&&e[Yr]},t.parseClassType=Zr,e.registerWhenExtend){var i=t.extend;i&&(t.extend=function(e){var n=i.call(this,e);return t.registerClass(n,e.type)})}return t}var $r=function(t){for(var e=0;e=0||i&&N(i,a)<0)){var s=e.getShallow(a);null!=s&&(r[t[o][0]]=s)}}return r}},to=$r([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),eo={getLineStyle:function(t){var e=to(this,t),n=this.getLineDash(e.lineWidth);return n&&(e.lineDash=n),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),n=Math.max(t,2),i=4*t;return"solid"===e||null==e?null:"dashed"===e?[i,i]:[n,n]}},no=$r([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),io={getAreaStyle:function(t,e){return no(this,t,e)}},ro=Math.pow,oo=Math.sqrt,ao=1e-8,so=1e-4,lo=oo(3),uo=1/3,ho=gt(),co=gt(),fo=gt();function po(t){return t>-ao&&tao||t<-ao}function mo(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 vo(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function yo(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(po(a))go(o)&&(h=-s/o)>=0&&h<=1&&(r[l++]=h);else{var u=o*o-4*a*s;if(po(u))r[0]=-o/(2*a);else if(u>0){var h,c=oo(u),d=(-o-c)/(2*a);(h=(-o+c)/(2*a))>=0&&h<=1&&(r[l++]=h),d>=0&&d<=1&&(r[l++]=d)}}return l}function xo(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function _o(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function bo(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function wo(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function Mo(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}var So=Math.min,Io=Math.max,Ao=Math.sin,Do=Math.cos,To=2*Math.PI,Co=gt(),Lo=gt(),ko=gt();function Po(t,e,n){if(0!==t.length){var i,r=t[0],o=r[0],a=r[0],s=r[1],l=r[1];for(i=1;i1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(Co[0]=Do(r)*n+t,Co[1]=Ao(r)*i+e,Lo[0]=Do(o)*n+t,Lo[1]=Ao(o)*i+e,u(s,Co,Lo),h(l,Co,Lo),(r%=To)<0&&(r+=To),(o%=To)<0&&(o+=To),r>o&&!a?o+=To:rr&&(ko[0]=Do(f)*n+t,ko[1]=Ao(f)*i+e,u(s,ko,s),h(l,ko,l))}var Vo={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Fo=[],Go=[],Wo=[],Ho=[],jo=Math.min,Yo=Math.max,Zo=Math.cos,Uo=Math.sin,Xo=Math.sqrt,qo=Math.abs,Ko="undefined"!=typeof Float32Array,Qo=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};function Jo(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>e+s&&a>i+s||at+s&&o>n+s||oe+c&&h>i+c&&h>o+c&&h>s+c||ht+c&&u>n+c&&u>r+c&&u>a+c||u=0&&pe+u&&l>i+u&&l>o+u||lt+u&&s>n+u&&s>r+u||s=0&&mthis._ux||qo(e-this._yi)>this._uy||this._len<5;return this.addData(Vo.L,t,e),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,n,i,r,o){return this.addData(Vo.C,t,e,n,i,r,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,i,r,o):this._ctx.bezierCurveTo(t,e,n,i,r,o)),this._xi=r,this._yi=o,this},quadraticCurveTo:function(t,e,n,i){return this.addData(Vo.Q,t,e,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},arc:function(t,e,n,i,r,o){return this.addData(Vo.A,t,e,n,n,i,r-i,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=Zo(r)*n+t,this._yi=Uo(r)*n+e,this},arcTo:function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},rect:function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Vo.R,t,e,n,i),this},closePath:function(){this.addData(Vo.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;ne.length&&(this._expandData(),e=this.data);for(var n=0;n0&&f<=t||h<0&&f>=t||0===h&&(c>0&&p<=e||c<0&&p>=e);)f+=h*(n=a[i=this._dashIdx]),p+=c*n,this._dashIdx=(i+1)%g,h>0&&fl||c>0&&pu||s[i%2?"moveTo":"lineTo"](h>=0?jo(f,t):Yo(f,t),c>=0?jo(p,e):Yo(p,e));h=f-t,c=p-e,this._dashOffset=-Xo(h*h+c*c)},_dashedBezierTo:function(t,e,n,i,r,o){var a,s,l,u,h,c=this._dashSum,d=this._dashOffset,f=this._lineDash,p=this._ctx,g=this._xi,m=this._yi,v=mo,y=0,x=this._dashIdx,_=f.length,b=0;for(d<0&&(d=c+d),d%=c,a=0;a<1;a+=.1)s=v(g,t,n,r,a+.1)-v(g,t,n,r,a),l=v(m,e,i,o,a+.1)-v(m,e,i,o,a),y+=Xo(s*s+l*l);for(;x<_&&!((b+=f[x])>d);x++);for(a=(b-d)/y;a<=1;)u=v(g,t,n,r,a),h=v(m,e,i,o,a),x%2?p.moveTo(u,h):p.lineTo(u,h),a+=f[x]/y,x=(x+1)%_;x%2!=0&&p.lineTo(r,o),s=r-u,l=o-h,this._dashOffset=-Xo(s*s+l*l)},_dashedQuadraticTo:function(t,e,n,i){var r=n,o=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,r,o)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,Ko&&(this.data=new Float32Array(t)))},getBoundingRect:function(){Fo[0]=Fo[1]=Wo[0]=Wo[1]=Number.MAX_VALUE,Go[0]=Go[1]=Ho[0]=Ho[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,n=0,i=0,r=0,o=0;ol||qo(a-r)>u||c===h-1)&&(t.lineTo(o,a),i=o,r=a);break;case Vo.C:t.bezierCurveTo(s[c++],s[c++],s[c++],s[c++],s[c++],s[c++]),i=s[c-2],r=s[c-1];break;case Vo.Q:t.quadraticCurveTo(s[c++],s[c++],s[c++],s[c++]),i=s[c-2],r=s[c-1];break;case Vo.A:var f=s[c++],p=s[c++],g=s[c++],m=s[c++],v=s[c++],y=s[c++],x=s[c++],_=s[c++],b=g>m?g:m,w=g>m?1:g/m,M=g>m?m/g:1,S=v+y;Math.abs(g-m)>.001?(t.translate(f,p),t.rotate(x),t.scale(w,M),t.arc(0,0,b,v,S,1-_),t.scale(1/w,1/M),t.rotate(-x),t.translate(-f,-p)):t.arc(f,p,b,v,S,1-_),1===c&&(e=Zo(v)*g+f,n=Uo(v)*m+p),i=Zo(S)*g+f,r=Uo(S)*m+p;break;case Vo.R:e=i=s[c],n=r=s[c+1],t.rect(s[c++],s[c++],s[c++],s[c++]);break;case Vo.Z:t.closePath(),i=e,r=n}}}},Qo.CMD=Vo;var ea=2*Math.PI;function na(t){return(t%=ea)<0&&(t+=ea),t}var ia=2*Math.PI;function ra(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var h=Math.sqrt(s*s+l*l);if(h-u>n||h+ur&&(r+=ia);var d=Math.atan2(l,s);return d<0&&(d+=ia),d>=i&&d<=r||d+ia>=i&&d+ia<=r}function oa(t,e,n,i,r,o){if(o>e&&o>i||or?a:0}var aa=Qo.CMD,sa=2*Math.PI,la=1e-4,ua=[-1,-1,-1],ha=[-1,-1];function ca(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u=0&&S<=1&&(o[f++]=S);else{var p=c*c-4*h*d;if(po(p)){var g=c/h,m=-g/2;(S=-s/a+g)>=0&&S<=1&&(o[f++]=S),m>=0&&m<=1&&(o[f++]=m)}else if(p>0){var v=oo(p),y=h*s+1.5*a*(-c+v),x=h*s+1.5*a*(-c-v);(S=(-s-((y=y<0?-ro(-y,uo):ro(y,uo))+(x=x<0?-ro(-x,uo):ro(x,uo))))/(3*a))>=0&&S<=1&&(o[f++]=S)}else{var _=(2*h*s-3*a*c)/(2*oo(h*h*h)),b=Math.acos(_)/3,w=oo(h),M=Math.cos(b),S=(-s-2*w*M)/(3*a),I=(m=(-s+w*(M+lo*Math.sin(b)))/(3*a),(-s+w*(M-lo*Math.sin(b)))/(3*a));S>=0&&S<=1&&(o[f++]=S),m>=0&&m<=1&&(o[f++]=m),I>=0&&I<=1&&(o[f++]=I)}}return f}(e,i,o,s,u,ua);if(0===c)return 0;for(var d,f,p=0,g=-1,m=0;m1&&(h=void 0,h=ha[0],ha[0]=ha[1],ha[1]=h),d=mo(e,i,o,s,ha[0]),g>1&&(f=mo(e,i,o,s,ha[1]))),2===g?ve&&s>i&&s>o||s=0&&h<=1&&(r[l++]=h);else{var u=a*a-4*o*s;if(po(u))(h=-a/(2*o))>=0&&h<=1&&(r[l++]=h);else if(u>0){var h,c=oo(u),d=(-a-c)/(2*o);(h=(-a+c)/(2*o))>=0&&h<=1&&(r[l++]=h),d>=0&&d<=1&&(r[l++]=d)}}return l}(e,i,o,s,ua);if(0===l)return 0;var u=wo(e,i,o);if(u>=0&&u<=1){for(var h=0,c=_o(e,i,o,u),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);ua[0]=-l,ua[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u%sa<1e-4){i=0,r=sa;var h=o?1:-1;return a>=ua[0]+t&&a<=ua[1]+t?h:0}o?(l=i,i=na(r),r=na(l)):(i=na(i),r=na(r)),i>r&&(r+=sa);for(var c=0,d=0;d<2;d++){var f=ua[d];if(f+t>a){var p=Math.atan2(s,f);h=o?1:-1,p<0&&(p=sa+p),(p>=i&&p<=r||p+sa>=i&&p+sa<=r)&&(p>Math.PI/2&&p<1.5*Math.PI&&(h=-h),c+=h)}}return c}function pa(t,e,n,i,r){for(var o,a,s=0,l=0,u=0,h=0,c=0,d=0;d1&&(n||(s+=oa(l,u,h,c,i,r))),1===d&&(h=l=t[d],c=u=t[d+1]),f){case aa.M:l=h=t[d++],u=c=t[d++];break;case aa.L:if(n){if(Jo(l,u,t[d],t[d+1],e,i,r))return!0}else s+=oa(l,u,t[d],t[d+1],i,r)||0;l=t[d++],u=t[d++];break;case aa.C:if(n){if($o(l,u,t[d++],t[d++],t[d++],t[d++],t[d],t[d+1],e,i,r))return!0}else s+=ca(l,u,t[d++],t[d++],t[d++],t[d++],t[d],t[d+1],i,r)||0;l=t[d++],u=t[d++];break;case aa.Q:if(n){if(ta(l,u,t[d++],t[d++],t[d],t[d+1],e,i,r))return!0}else s+=da(l,u,t[d++],t[d++],t[d],t[d+1],i,r)||0;l=t[d++],u=t[d++];break;case aa.A:var p=t[d++],g=t[d++],m=t[d++],v=t[d++],y=t[d++],x=t[d++];d+=1;var _=1-t[d++],b=Math.cos(y)*m+p,w=Math.sin(y)*v+g;d>1?s+=oa(l,u,b,w,i,r):(h=b,c=w);var M=(i-p)*v/m+p;if(n){if(ra(p,g,v,y,y+x,_,e,M,r))return!0}else s+=fa(p,g,v,y,y+x,_,M,r);l=Math.cos(y+x)*m+p,u=Math.sin(y+x)*v+g;break;case aa.R:if(h=l=t[d++],c=u=t[d++],b=h+t[d++],w=c+t[d++],n){if(Jo(h,c,b,c,e,i,r)||Jo(b,c,b,w,e,i,r)||Jo(b,w,h,w,e,i,r)||Jo(h,w,h,c,e,i,r))return!0}else s+=oa(b,c,b,w,i,r),s+=oa(h,w,h,c,i,r);break;case aa.Z:if(n){if(Jo(l,u,h,c,e,i,r))return!0}else s+=oa(l,u,h,c,i,r);l=h,u=c}}return n||(o=u,a=c,Math.abs(o-a)1e-10&&(r.width+=o/a,r.height+=o/a,r.x-=o/a/2,r.y-=o/a/2)}return r}return t},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)){var o=this.path.data;if(r.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(r.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return pa(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(r.hasFill())return function(t,e,n){return pa(t,0,!1,e,n)}(o,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):tr.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var n=this.shape;if(n){if(X(t))for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);else n[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&ma(t[0]-1)>1e-10&&ma(t[3]-1)>1e-10?Math.sqrt(ma(t[0]*t[3]-t[2]*t[1])):1}},ya.extend=function(t){var e=function(e){ya.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var i=this.shape;for(var r in n)!i.hasOwnProperty(r)&&n.hasOwnProperty(r)&&(i[r]=n[r])}t.init&&t.init.call(this,e)};for(var n in E(e,ya),t)"style"!==n&&"shape"!==n&&(e.prototype[n]=t[n]);return e},E(ya,tr);var xa=Qo.CMD,_a=[[],[],[]],ba=Math.sqrt,wa=Math.atan2,Ma=function(t,e){var n,i,r,o,a,s=t.data,l=xa.M,u=xa.C,h=xa.L,c=xa.R,d=xa.A,f=xa.Q;for(r=0,o=0;r1&&(a*=Sa(p),s*=Sa(p));var g=(r===o?-1:1)*Sa((a*a*(s*s)-a*a*(f*f)-s*s*(d*d))/(a*a*(f*f)+s*s*(d*d)))||0,m=g*a*f/s,v=g*-s*d/a,y=(t+n)/2+Aa(c)*m-Ia(c)*v,x=(e+i)/2+Ia(c)*m+Aa(c)*v,_=La([1,0],[(d-m)/a,(f-v)/s]),b=[(d-m)/a,(f-v)/s],w=[(-1*d-m)/a,(-1*f-v)/s],M=La(b,w);Ca(b,w)<=-1&&(M=Da),Ca(b,w)>=1&&(M=0),0===o&&M>0&&(M-=2*Da),1===o&&M<0&&(M+=2*Da),h.addData(u,y,x,a,s,_,M,c,o)}var Pa=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Oa=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Na(t,e){var n=function(t){if(!t)return new Qo;for(var e,n=0,i=0,r=n,o=i,a=new Qo,s=Qo.CMD,l=t.match(Pa),u=0;u=11?function(){var e,n=this.__clipPaths,i=this.style;if(n)for(var r=0;rn-2?n-1:c+1],u=t[c>n-3?n-1:c+2]);var p=d*d,g=d*p;i.push([Wa(s[0],f[0],l[0],u[0],d,p,g),Wa(s[1],f[1],l[1],u[1],d,p,g)])}return i},ja=function(t,e,n,i){var r,o,a,s,l=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=t.length;d=2){if(r&&"spline"!==r){var o=ja(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],h=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{"spline"===r&&(i=Ha(i,n)),t.moveTo(i[0][0],i[0][1]),s=1;for(var c=i.length;s=0)?(n={textFill:null,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth},t.textFill="#fff",null==t.textStroke&&(t.textStroke=o,null==t.textStrokeWidth&&(t.textStrokeWidth=2))):null!=o&&(n={textFill:null},t.textFill=o),n&&(t.insideRollback=n)}}function Ks(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function Qs(t,e){var n=e||e.getModel("textStyle");return ot([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}function Js(t,e,n,i,r,o){if("function"==typeof r&&(o=r,r=null),i&&i.isAnimationEnabled()){var a=t?"Update":"",s=i.getShallow("animationDuration"+a),l=i.getShallow("animationEasing"+a),u=i.getShallow("animationDelay"+a);"function"==typeof u&&(u=u(r,i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null)),"function"==typeof s&&(s=s(r)),s>0?e.animateTo(n,s,u||0,l,o,!!o):(e.stopAnimation(),e.attr(n),o&&o())}else e.stopAnimation(),e.attr(n),o&&o()}function $s(t,e,n,i,r){Js(!0,t,e,n,i,r)}function tl(t,e,n,i,r){Js(!1,t,e,n,i,r)}function el(t,e){for(var n=le([]);t&&t!==e;)he(n,t.getLocalTransform(),n),t=t.parent;return n}function nl(t,e,n){return e&&!R(e)&&(e=_e.getLocalTransform(e)),n&&(e=pe([],e)),Ot([],t,e)}function il(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=nl(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function rl(t,e,n,i){if(t&&e){var r,o=(r={},t.traverse(function(t){!t.isGroup&&t.anid&&(r[t.anid]=t)}),r);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=o[t.anid];if(e){var i=a(t);t.attr(a(e)),$s(t,i,n,t.dataIndex)}}})}function a(t){var e={position:vt(t.position),rotation:t.rotation};return t.shape&&(e.shape=C({},t.shape)),e}}function ol(t,e){return V(t,function(t){var n=t[0];n=ds(n,e.x),n=fs(n,e.x+e.width);var i=t[1];return i=ds(i,e.y),[n,i=fs(i,e.y+e.height)]})}function al(t,e,n){var i=(e=C({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),L(i,n),new er(e)):bs(t.replace("path://",""),e,n,"center")}var sl=(Object.freeze||Object)({Z2_EMPHASIS_LIFT:gs,extendShape:_s,extendPath:function(t,e){return function(t,e){return ya.extend(Na(t,e))}(t,e)},makePath:bs,makeImage:ws,mergePath:Ss,resizePath:Is,subPixelOptimizeLine:function(t){return qa(t.shape,t.shape,t.style),t},subPixelOptimizeRect:function(t){return Ka(t.shape,t.shape,t.style),t},subPixelOptimize:As,setElementHoverStyle:Ns,setHoverStyle:Fs,setAsHighDownDispatcher:Gs,isHighDownDispatcher:Ws,getHighlightDigit:Hs,setLabelStyle:js,setTextStyle:Ys,setText:function(t,e,n){var i,r={isRectText:!0};!1===n?i=!0:r.autoColor=n,Zs(t,e,r,i)},getFont:Qs,updateProps:$s,initProps:tl,getTransform:el,applyTransform:nl,transformDirection:il,groupTransition:rl,clipPointsByRect:ol,clipRectByRect:function(t,e){var n=ds(t.x,e.x),i=fs(t.x+t.width,e.x+e.width),r=ds(t.y,e.y),o=fs(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}},createIcon:al,Group:On,Image:er,Text:za,Circle:Ra,Sector:Fa,Ring:Ga,Polygon:Za,Polyline:Ua,Rect:$a,Line:es,BezierCurve:rs,Arc:os,IncrementalDisplayable:hs,CompoundPath:as,LinearGradient:ls,RadialGradient:us,BoundingRect:Pn}),ll=["textStyle","color"],ul={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(ll):null)},getFont:function(){return Qs({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return yi(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("rich"),this.getShallow("truncateText"))}},hl=$r([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),cl={getItemStyle:function(t,e){var n=hl(this,t,e),i=this.getBorderLineDash();return i&&(n.lineDash=i),n},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}},dl=z,fl=Br();function pl(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function gl(t,e,n){for(var i=0;i0){if(t<=e[0])return n[0];if(t>=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/r*o+n[0]}function bl(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?(n=t,n.replace(/^\s+/,"").replace(/\s+$/,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function wl(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function Ml(t){return t.sort(function(t,e){return t-e}),t}function Sl(t){if(t=+t,isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}function Il(t){var e=t.toString(),n=e.indexOf("e");if(n>0){var i=+e.slice(n+1);return i<0?-i:0}var r=e.indexOf(".");return r<0?0:e.length-1-r}function Al(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function Dl(t,e,n){if(!t[e])return 0;var i=F(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return 0;for(var r=Math.pow(10,n),o=V(t,function(t){return(isNaN(t)?0:t)/i*r*100}),a=100*r,s=V(o,function(t){return Math.floor(t)}),l=F(s,function(t,e){return t+e},0),u=V(o,function(t,e){return t-s[e]});lh&&(h=u[d],c=d);++s[c],u[c]=0,++l}return s[e]/r}var Tl=9007199254740991;function Cl(t){var e=2*Math.PI;return(t%e+e)%e}function Ll(t){return t>-xl&&t=-20?+t.toFixed(n<0?-n:0):t}function zl(t){t.sort(function(t,e){return function t(e,n,i){return e.interval[i]=0}var Bl=(Object.freeze||Object)({linearMap:_l,parsePercent:bl,round:wl,asc:Ml,getPrecision:Sl,getPrecisionSafe:Il,getPixelPrecision:Al,getPercentWithPrecision:Dl,MAX_SAFE_INTEGER:Tl,remRadian:Cl,isRadianAroundZero:Ll,parseDate:Pl,quantity:Ol,nice:El,quantile:function(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r},reformIntervals:zl,isNumeric:Rl});function Vl(t){return isNaN(t)?"-":(t=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Fl(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Gl=it,Wl=/([&<>"'])/g,Hl={"&":"&","<":"<",">":">",'"':""","'":"'"};function jl(t){return null==t?"":(t+"").replace(Wl,function(t,e){return Hl[e]})}var Yl=["a","b","c","d","e","f","g"],Zl=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Ul(t,e,n){Y(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o':'':{renderMode:r,content:"{marker"+o+"|} ",style:{color:n}}:""}function Kl(t,e){return"0000".substr(0,e-(t+="").length)+t}function Ql(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=Pl(e),r=n?"UTC":"",o=i["get"+r+"FullYear"](),a=i["get"+r+"Month"]()+1,s=i["get"+r+"Date"](),l=i["get"+r+"Hours"](),u=i["get"+r+"Minutes"](),h=i["get"+r+"Seconds"](),c=i["get"+r+"Milliseconds"]();return t=t.replace("MM",Kl(a,2)).replace("M",a).replace("yyyy",o).replace("yy",o%100).replace("dd",Kl(s,2)).replace("d",s).replace("hh",Kl(l,2)).replace("h",l).replace("mm",Kl(u,2)).replace("m",u).replace("ss",Kl(h,2)).replace("s",h).replace("SSS",Kl(c,3))}function Jl(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}var $l=wi,tu=yi,eu=(Object.freeze||Object)({addCommas:Vl,toCamelCase:Fl,normalizeCssArray:Gl,encodeHTML:jl,formatTpl:Ul,formatTplSimple:Xl,getTooltipMarker:ql,formatTime:Ql,capitalFirst:Jl,truncateText:$l,getTextRect:tu}),nu=B,iu=["left","right","top","bottom","width","height"],ru=[["width","left","right"],["height","top","bottom"]];function ou(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var h,c,d=l.position,f=l.getBoundingRect(),p=e.childAt(u+1),g=p&&p.getBoundingRect();if("horizontal"===t){var m=f.width+(g?-g.x+f.x:0);(h=o+m)>i||l.newline?(o=0,h=m,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(g?-g.y+f.y:0);(c=a+v)>r||l.newline?(o+=s+n,a=0,c=v,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=o,d[1]=a,"horizontal"===t?o=h+n:a=c+n)})}var au=ou;function su(t,e,n){n=Gl(n||0);var i=e.width,r=e.height,o=bl(t.left,i),a=bl(t.top,r),s=bl(t.right,i),l=bl(t.bottom,r),u=bl(t.width,i),h=bl(t.height,r),c=n[2]+n[0],d=n[1]+n[3],f=t.aspect;switch(isNaN(u)&&(u=i-s-d-o),isNaN(h)&&(h=r-l-c-a),null!=f&&(isNaN(u)&&isNaN(h)&&(f>i/r?u=.8*i:h=.8*r),isNaN(u)&&(u=f*h),isNaN(h)&&(h=u/f)),isNaN(o)&&(o=i-s-u-d),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-d}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-d-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var p=new Pn(o+n[3],a+n[0],u,h);return p.margin=n,p}function lu(t,e,n,i,r){var o=!r||!r.hv||r.hv[0],a=!r||!r.hv||r.hv[1],s=r&&r.boundingMode||"all";if(o||a){var l;if("raw"===s)l="group"===t.type?new Pn(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var u=t.getLocalTransform();(l=l.clone()).applyTransform(u)}e=su(L({width:l.width,height:l.height},e),n,i);var h=t.position,c=o?e.x-l.x:0,d=a?e.y-l.y:0;t.attr("position","raw"===s?[c,d]:[h[0]+c,h[1]+d])}}function uu(t,e,n){!X(n)&&(n={});var i=n.ignoreSize;!Y(i)&&(i=[i,i]);var r=a(ru[0],0),o=a(ru[1],1);function a(n,r){var o={},a=0,u={},h=0;if(nu(n,function(e){u[e]=t[e]}),nu(n,function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&h++}),i[r])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(2!==h&&a){if(a>=2)return o;for(var c=0;c=0;o--)r=D(r,e[o],!0);t.defaultOption=r}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});Jr(gu,{registerWhenExtend:!0}),fu={},(du=gu).registerSubTypeDefaulter=function(t,e){t=Zr(t),fu[t.main]=e},du.determineSubType=function(t,e){var n=e.type;if(!n){var i=Zr(t).main;du.hasSubTypes(t)&&fu[i]&&(n=fu[i](e))}return n},function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,i,r,o){if(t.length){var a=function(t){var i={},r=[];return B(t,function(o){var a=n(i,o),s=function(t,e){var n=[];return B(t,function(t){N(e,t)>=0&&n.push(t)}),n}(a.originalDeps=e(o),t);a.entryCount=s.length,0===a.entryCount&&r.push(o),B(s,function(t){N(a.predecessor,t)<0&&a.predecessor.push(t);var e=n(i,t);N(e.successor,t)<0&&e.successor.push(o)})}),{graph:i,noEntryList:r}}(i),s=a.graph,l=a.noEntryList,u={};for(B(t,function(t){u[t]=!0});l.length;){var h=l.pop(),c=s[h],d=!!u[h];d&&(r.call(o,h,c.originalDeps.slice()),delete u[h]),B(c.successor,d?p:f)}B(u,function(){throw new Error("Circle dependency may exists")})}function f(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function p(t){u[t]=!0,f(t)}}}(gu,function(t){var e=[];return B(gu.getClassesByMainType(t),function(t){e=e.concat(t.prototype.dependencies||[])}),e=V(e,function(t){return Zr(t).main}),"dataset"!==t&&N(e,"dataset")<=0&&e.unshift("dataset"),e}),z(gu,{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}});var mu="";"undefined"!=typeof navigator&&(mu=navigator.platform||"");var vu={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:mu.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},yu=Br(),xu={clearColorPalette:function(){yu(this).colorIdx=0,yu(this).colorNameMap={}},getColorFromPalette:function(t,e,n){var i=yu(e=e||this),r=i.colorIdx||0,o=i.colorNameMap=i.colorNameMap||{};if(o.hasOwnProperty(t))return o[t];var a=Cr(this.get("color",!0)),s=this.get("colorLayer",!0),l=null!=n&&s?function(t,e){for(var n=t.length,i=0;ie)return t[i];return t[n-1]}(s,n):a;if((l=l||a)&&l.length){var u=l[r];return t&&(o[t]=u),i.colorIdx=(r+1)%l.length,u}}};function _u(t){var e=t.get("coordinateSystem"),n={coordSysName:e,coordSysDims:[],axisMap:ht(),categoryAxisMap:ht()},i=bu[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}var bu={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis")[0],o=t.getReferringComponents("yAxis")[0];if(c){if(!r)throw new Error('xAxis "'+$(t.get("xAxisIndex"),t.get("xAxisId"),0)+'" not found');if(!o)throw new Error('yAxis "'+$(t.get("xAxisIndex"),t.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),wu(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),wu(o)&&(i.set("y",o),e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis")[0];if(c&&!r)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],n.set("single",r),wu(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar")[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");if(c){if(!a)throw new Error("angleAxis option not found");if(!o)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),wu(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),wu(a)&&(i.set("angle",a),e.firstCategoryDimIndex=1)},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();B(o.parallelAxisIndex,function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),wu(s)&&null==e.firstCategoryDimIndex&&(i.set(l,s),e.firstCategoryDimIndex=o)})}};function wu(t){return"category"===t.get("type")}var Mu="original",Su="arrayRows",Iu="objectRows",Au="keyedColumns",Du="unknown",Tu="typedArray",Cu="column",Lu="row";function ku(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===Au?{}:[]),this.sourceFormat=t.sourceFormat||Du,this.seriesLayoutBy=t.seriesLayoutBy||Cu,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&ht(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}ku.seriesDataToSource=function(t){return new ku({data:t,sourceFormat:K(t)?Tu:Mu,fromDataset:!1})},qr(ku);var Pu=Br();function Ou(t){var e=t.option,n=e.data,i=K(n)?Tu:Mu,r=!1,o=e.seriesLayoutBy,a=e.sourceHeader,s=e.dimensions,l=function(t){var e=t.option;if(!e.data)return t.ecModel.getComponent("dataset",e.datasetIndex||0)}(t);if(l){var u=l.option;n=u.source,i=Pu(l).sourceFormat,r=!0,o=o||u.seriesLayoutBy,null==a&&(a=u.sourceHeader),s=s||u.dimensions}var h=function(t,e,n,i,r){if(!t)return{dimensionsDefine:Nu(r)};var o,a,s,l;if(e===Su)"auto"===i||null==i?Eu(function(t){null!=t&&"-"!==t&&(U(t)?null==a&&(a=1):a=0)},n,t,10):a=i?1:0,r||1!==a||(r=[],Eu(function(t,e){r[e]=null!=t?t:""},n,t)),o=r?r.length:n===Lu?t.length:t[0]?t[0].length:null;else if(e===Iu)r||(r=function(t){for(var e,n=0;n=0;i--)zr(e[i])&&e.splice(i,1);t[n]=e}}),delete t[Bu],t},getTheme:function(){return this._theme},getComponent:function(t,e){var n=this._componentsMap.get(t);if(n)return n[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,o=t.name,a=this._componentsMap.get(e);if(!a||!a.length)return[];if(null!=i)Y(i)||(i=[i]),n=G(V(i,function(t){return a[t]}),function(t){return!!t});else if(null!=r){var s=Y(r);n=G(a,function(t){return s&&N(r,t.id)>=0||!s&&t.id===r})}else if(null!=o){var l=Y(o);n=G(a,function(t){return l&&N(o,t.name)>=0||!l&&t.name===o})}else n=a.slice();return Wu(n,t)},findComponents:function(t){var e,n,i,r,o,a=t.query,s=t.mainType,l=(n=s+"Index",i=s+"Id",r=s+"Name",!(e=a)||null==e[n]&&null==e[i]&&null==e[r]?null:{mainType:s,index:e[n],id:e[i],name:e[r]}),u=l?this.queryComponents(l):this._componentsMap.get(s);return o=Wu(u,t),t.filter?G(o,t.filter):o},eachComponent:function(t,e,n){var i=this._componentsMap;"function"==typeof t?(n=e,e=t,i.each(function(t,i){B(t,function(t,r){e.call(n,i,t,r)})})):U(t)?B(i.get(t),e,n):X(t)&&B(this.findComponents(t),e,n)},getSeriesByName:function(t){return G(this._componentsMap.get("series"),function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){return G(this._componentsMap.get("series"),function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(t,e){Hu(this),B(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},eachRawSeries:function(t,e){B(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,n){Hu(this),B(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)},this)},eachRawSeriesByType:function(t,e,n){return B(this.getSeriesByType(t),e,n)},isSeriesFiltered:function(t){return Hu(this),null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){Hu(this),Gu(this,G(this._componentsMap.get("series"),t,e))},restoreData:function(t){var e=this._componentsMap;Gu(this,e.get("series"));var n=[];e.each(function(t,e){n.push(e)}),gu.topologicalTravel(n,gu.getAllClassMainTypes(),function(n,i){B(e.get(n),function(e){("series"!==n||!function(t,e){if(e){var n=e.seiresIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}(e,t))&&e.restoreData()})})}});function Fu(t){t=t,this.option={},this.option[Bu]=1,this._componentsMap=ht({series:[]}),this._seriesIndices,this._seriesIndicesMap,function(t,e){var n=t.color&&!t.colorLayer;B(e,function(e,i){"colorLayer"===i&&n||gu.hasClass(i)||("object"===l(e)?t[i]=t[i]?D(t[i],e,!1):A(e):null==t[i]&&(t[i]=e))})}(t,this._theme.option),D(t,vu,!1),this.mergeOption(t)}function Gu(t,e){t._seriesIndicesMap=ht(t._seriesIndices=V(e,function(t){return t.componentIndex})||[])}function Wu(t,e){return e.hasOwnProperty("subType")?G(t,function(t){return t.subType===e.subType}):t}function Hu(t){if(c&&!t._seriesIndices)throw new Error("Option should contains series.")}z(Vu,xu);var ju=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function Yu(t){B(ju,function(e){this[e]=H(t[e],t)},this)}var Zu={};function Uu(){this._coordinateSystems=[]}Uu.prototype={constructor:Uu,create:function(t,e){var n=[];B(Zu,function(i,r){var o=i.create(t,e);n=n.concat(o||[])}),this._coordinateSystems=n},update:function(t,e){B(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},Uu.register=function(t,e){Zu[t]=e},Uu.get=function(t){return Zu[t]};var Xu=B,qu=A,Ku=V,Qu=D,Ju=/^(min|max)?(.+)$/;function $u(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function th(t,e,n){var i,r,o=[],a=[],s=t.timeline;if(t.baseOption&&(r=t.baseOption),(s||t.options)&&(r=r||{},o=(t.options||[]).slice()),t.media){r=r||{};var l=t.media;Xu(l,function(t){t&&t.option&&(t.query?a.push(t):i||(i=t))})}return r||(r=t),r.timeline||(r.timeline=s),Xu([r].concat(o).concat(V(a,function(t){return t.option})),function(t){Xu(e,function(e){e(t,n)})}),{baseOption:r,timelineOptions:o,mediaDefault:i,mediaList:a}}function eh(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return B(t,function(t,e){var n=e.match(Ju);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e})(i[a],t,o)||(r=!1)}}),r}$u.prototype={constructor:$u,setOption:function(t,e){t&&B(Cr(t.series),function(t){t&&t.data&&K(t.data)&&st(t.data)}),t=qu(t);var n,i,r=this._optionBackup,o=th.call(this,t,e,!r);this._newBaseOption=o.baseOption,r?(n=r.baseOption,i=o.baseOption,Xu(i=i||{},function(t,e){if(null!=t){var i=n[e];if(gu.hasClass(e)){t=Cr(t);var r=Or(i=Cr(i),t);n[e]=Ku(r,function(t){return t.option&&t.exist?Qu(t.exist,t.option,!0):t.exist||t.option})}else n[e]=Qu(i,t,!0)}}),o.timelineOptions.length&&(r.timelineOptions=o.timelineOptions),o.mediaList.length&&(r.mediaList=o.mediaList),o.mediaDefault&&(r.mediaDefault=o.mediaDefault)):this._optionBackup=o},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=Ku(e.timelineOptions,qu),this._mediaList=Ku(e.mediaList,qu),this._mediaDefault=qu(e.mediaDefault),this._currentMediaIndices=[],qu(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=qu(n[i.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e,n,i=this._api.getWidth(),r=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,h=o.length;u=0;p--){var g=t[p];if(s||(c=g.data.rawIndexOf(g.stackedByDimension,h)),c>=0){var m=g.data.getByRawIndex(g.stackResultDimension,c);if(d>=0&&m>0||d<=0&&m<0){d+=m,f=m;break}}}return i[0]=d,i[1]=f,i});a.hostModel.setData(l),e.data=l})}function yh(t,e){ku.isInstance(t)||(t=ku.seriesDataToSource(t)),this._source=t;var n=this._data=t.data,i=t.sourceFormat;if(i===Tu){if(c&&null==e)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=e,this._data=n}var r=_h[i===Su?i+"_"+t.seriesLayoutBy:i];c&&rt(r,"Invalide sourceFormat: "+i),C(this,r)}var xh=yh.prototype;xh.pure=!1,xh.persistent=!0,xh.getSource=function(){return this._source};var _h={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(t){return this._data[t+this._source.startIndex]},appendData:Mh},arrayRows_row:{pure:!0,count:function(){var t=this._data[0];return t?Math.max(0,t.length-this._source.startIndex):0},getItem:function(t){t+=this._source.startIndex;for(var e=[],n=this._data,i=0;i=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=function(t,e){var n,i;t._dueIndex=t._outputDueEnd=t._dueEnd=0,t._settedOutputEnd=null,!e&&t._reset&&((n=t._reset(t.context))&&n.progress&&(i=n.forceFirstProgress,n=n.progress),Y(n)&&!n.length&&(n=null)),t._progress=n,t._modBy=t._modDataCount=null;var r=t._downstream;return r&&r.dirty(),i}(this,i)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(n?(c&&rt(null!=n._outputDueEnd),this._dueEnd=n._outputDueEnd):(c&&rt(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var f=this._dueIndex,p=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!i&&(o||f=this._outputDueEnd),this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var zh=function(){var t,e,n,i,r,o={reset:function(l,u,h,c){e=l,t=u,n=h,i=c,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return e=t?null:o":"\n",a="richText"===i,s={},l=0;function u(t){return{renderMode:i,content:jl(Vl(t)),style:s}}var h=this.getData(),c=h.mapDimension("defaultedTooltip",!0),d=c.length,f=this.getRawValue(t),p=Y(f),g=h.getItemVisual(t,"color");X(g)&&g.colorStops&&(g=(g.colorStops[0]||{}).color),g=g||"transparent";var m=(d>1||p&&!d?function(n){var o=F(n,function(t,e,n){var i=h.getDimensionInfo(n);return t|(i&&!1!==i.tooltip&&null!=i.displayName)},0),u=[];function d(t,n){var c=h.getDimensionInfo(n);if(c&&!1!==c.otherDims.tooltip){var d=c.type,f="sub"+r.seriesIndex+"at"+l,p=ql({color:g,type:"subItem",renderMode:i,markerId:f}),m="string"==typeof p?p:p.content,v=(o?m+jl(c.displayName||"-")+": ":"")+jl("ordinal"===d?t+"":"time"===d?e?"":Ql("yyyy/MM/dd hh:mm:ss",t):Vl(t));v&&u.push(v),a&&(s[f]=g,++l)}}c.length?B(c,function(e){d(Ch(h,t,e),e)}):B(n,d);var f=o?a?"\n":"
":"",p=f+u.join(f||", ");return{renderMode:i,content:p,style:s}}(f):u(d?Ch(h,t,c[0]):p?f[0]:f)).content,v=r.seriesIndex+"at"+l,y=ql({color:g,type:"item",renderMode:i,markerId:v});s[v]=g,++l;var x=h.getName(t),_=this.name;Er(this)||(_=""),_=_?jl(_)+(e?": ":o):"";var b="string"==typeof y?y:y.content;return{html:e?b+_+m:_+b+(x?jl(x)+": "+m:m),markers:s}},isAnimationEnabled:function(){if(p.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,n){var i=this.ecModel,r=xu.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function Fh(t){var e=t.name;Er(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimension("seriesName",!0),i=[];return B(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")}(t)||e)}function Gh(t){return t.model.getRawData().count()}function Wh(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Hh}function Hh(t,e){t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function jh(t,e){B(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,j(Yh,e))})}function Yh(t){var e=Zh(t);e&&e.setOutputEnd(this.count())}function Zh(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}z(Vh,Ph),z(Vh,xu);var Uh=function(){this.group=new On,this.uid=yl("viewComponent")};Uh.prototype={constructor:Uh,init:function(t,e){},render:function(t,e,n,i){},dispose:function(){},filterForExposedEvent:null};var Xh=Uh.prototype;Xh.updateView=Xh.updateLayout=Xh.updateVisual=function(t,e,n,i){},Ur(Uh),Jr(Uh,{registerWhenExtend:!0});var qh=function(){var t=Br();return function(e){var n=t(e),i=e.pipelineContext,r=n.large,o=n.progressiveRender,a=n.large=i.large,s=n.progressiveRender=i.progressiveRender;return!!(r^a||o^s)&&"reset"}},Kh=Br(),Qh=qh();function Jh(){this.group=new On,this.uid=yl("viewChart"),this.renderTask=Oh({plan:nc,reset:ic}),this.renderTask.context={view:this}}Jh.prototype={type:"chart",init:function(t,e){},render:function(t,e,n,i){},highlight:function(t,e,n,i){ec(t.getData(),i,"emphasis")},downplay:function(t,e,n,i){ec(t.getData(),i,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var $h=Jh.prototype;function tc(t,e,n){if(t&&(t.trigger(e,n),t.isGroup&&!Ws(t)))for(var i=0,r=t.childCount();i=0?c():h=setTimeout(c,-r),l=i};return d.clear=function(){h&&(clearTimeout(h),h=null)},d.debounceNextCall=function(t){s=t},d}function uc(t,e,n,i){var r=t[e];if(r){var o=r[oc]||r,a=r[sc];if(r[ac]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=lc(o,n,"debounce"===i))[oc]=o,r[sc]=i,r[ac]=n}return r}}function hc(t,e){var n=t[e];n&&n[oc]&&(t[e]=n[oc])}var cc={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=(t.visualColorAccessPath||"itemStyle.color").split("."),r=t.get(i)||t.getColorFromPalette(t.name,null,e.getSeriesCount());if(n.setVisual("color",r),!e.isSeriesFiltered(t))return"function"!=typeof r||r instanceof ss||n.each(function(e){n.setItemVisual(e,"color",r(t.getDataParams(e)))}),{dataEach:n.hasItemOption?function(t,e){var n=t.getItemModel(e).get(i,!0);null!=n&&t.setItemVisual(e,"color",n)}:null}}},dc={toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},fc=function(t,e){var n=e.getModel("aria");if(n.get("show"))if(n.get("description"))t.setAttribute("aria-label",n.get("description"));else{var i=0;e.eachSeries(function(t,e){++i},this);var r,o=n.get("data.maxCount")||10,a=n.get("series.maxCount")||10,s=Math.min(i,a);if(!(i<1)){var l=function(){var t=e.getModel("title").option;return t&&t.length&&(t=t[0]),t&&t.text}();r=l?h(c("general.withTitle"),{title:l}):c("general.withoutTitle");var u=[];r+=h(c(i>1?"series.multiple.prefix":"series.single.prefix"),{seriesCount:i}),e.eachSeries(function(t,e){if(e1?"multiple":"single")+".";n=h(n=c(r?a+"withName":a+"withoutName"),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:(m=t.subType,dc.series.typeNames[m]||"自定义图")});var l=t.getData();window.data=l,l.count()>o?n+=h(c("data.partialData"),{displayCnt:o}):n+=c("data.allData");for(var d=[],f=0;fn.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},mc.getPipeline=function(t){return this._pipelineMap.get(t)},mc.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},mc.restorePipelines=function(t){var e=this,n=e._pipelineMap=ht();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),Tc(e,t,t.dataTask)})},mc.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),n=this.api;B(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,[]);i.reset&&function(t,e,n,i,r){var o=n.seriesTaskMap||(n.seriesTaskMap=ht()),a=e.seriesType,s=e.getTargetSeries;function l(n){var a=n.uid,s=o.get(a)||o.set(a,Oh({plan:Mc,reset:Sc,count:Dc}));s.context={model:n,ecModel:i,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},Tc(t,n,s)}e.createOnAllSeries?i.eachRawSeries(l):a?i.eachRawSeriesByType(a,l):s&&s(i,r).each(l);var u=t._pipelineMap;o.each(function(t,e){u.get(e)||(t.dispose(),o.removeKey(e))})}(this,i,r,e,n),i.overallReset&&function(t,e,n,i,r){var o=n.overallTask=n.overallTask||Oh({reset:xc});o.context={ecModel:i,api:r,overallReset:e.overallReset,scheduler:t};var a=o.agentStubMap=o.agentStubMap||ht(),s=e.seriesType,l=e.getTargetSeries,u=!0,h=e.modifyOutputEnd;function c(e){var n=e.uid,i=a.get(n);i||(i=a.set(n,Oh({reset:_c,onDirty:wc})),o.dirty()),i.context={model:e,overallProgress:u,modifyOutputEnd:h},i.agent=o,i.__block=u,Tc(t,e,i)}s?i.eachRawSeriesByType(s,c):l?l(i,r).each(c):(u=!1,B(i.getSeries(),c));var d=t._pipelineMap;a.each(function(t,e){d.get(e)||(t.dispose(),o.dirty(),a.removeKey(e))})}(this,i,r,e,n)},this)},mc.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,Tc(this,e,r)},mc.performDataProcessorTasks=function(t,e){vc(this,this._dataProcessorHandlers,t,e,{block:!0})},mc.performVisualTasks=function(t,e,n){vc(this,this._visualHandlers,t,e,n)},mc.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e|=t.dataTask.perform()}),this.unfinished|=e},mc.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})};var yc=mc.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)};function xc(t){t.overallReset(t.ecModel,t.api,t.payload)}function _c(t,e){return t.overallProgress&&bc}function bc(){this.agent.dirty(),this.getDownstream().dirty()}function wc(){this.agent&&this.agent.dirty()}function Mc(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function Sc(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Cr(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?V(e,function(t,e){return Ac(e)}):Ic}var Ic=Ac(0);function Ac(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o=4&&(s={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(s&&null!=o&&null!=a&&(l=Jc(s,o,a),!e.ignoreViewBox)){var c=i;(i=new On).add(c),c.scale=l.scale.slice(),c.position=l.position.slice()}return e.ignoreRootClip||null==o||null==a||i.setClipPath(new $a({shape:{x:0,y:0,width:o,height:a}})),{root:i,width:o,height:a,viewBoxRect:s,viewBoxTransform:l}},Gc.prototype._parseNode=function(t,e){var n,i,r=t.nodeName.toLowerCase();if("defs"===r?this._isDefine=!0:"text"===r&&(this._isText=!0),this._isDefine){if(i=Hc[r]){var o=i.call(this,t),a=t.getAttribute("id");a&&(this._defs[a]=o)}}else(i=Wc[r])&&(n=i.call(this,t,e),e.add(n));for(var s=t.firstChild;s;)1===s.nodeType&&this._parseNode(s,n),3===s.nodeType&&this._isText&&this._parseText(s,n),s=s.nextSibling;"defs"===r?this._isDefine=!1:"text"===r&&(this._isText=!1)},Gc.prototype._parseText=function(t,e){if(1===t.nodeType){var n=t.getAttribute("dx")||0,i=t.getAttribute("dy")||0;this._textX+=parseFloat(n),this._textY+=parseFloat(i)}var r=new za({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});jc(e,r),Uc(t,r,this._defs);var o=r.style.fontSize;o&&o<9&&(r.style.fontSize=9,r.scale=r.scale||[1,1],r.scale[0]*=o/9,r.scale[1]*=o/9);var a=r.getBoundingRect();return this._textX+=a.width,e.add(r),r};var Wc={g:function(t,e){var n=new On;return jc(e,n),Uc(t,n,this._defs),n},rect:function(t,e){var n=new $a;return jc(e,n),Uc(t,n,this._defs),n.setShape({x:parseFloat(t.getAttribute("x")||0),y:parseFloat(t.getAttribute("y")||0),width:parseFloat(t.getAttribute("width")||0),height:parseFloat(t.getAttribute("height")||0)}),n},circle:function(t,e){var n=new Ra;return jc(e,n),Uc(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),r:parseFloat(t.getAttribute("r")||0)}),n},line:function(t,e){var n=new es;return jc(e,n),Uc(t,n,this._defs),n.setShape({x1:parseFloat(t.getAttribute("x1")||0),y1:parseFloat(t.getAttribute("y1")||0),x2:parseFloat(t.getAttribute("x2")||0),y2:parseFloat(t.getAttribute("y2")||0)}),n},ellipse:function(t,e){var n=new Bc;return jc(e,n),Uc(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),rx:parseFloat(t.getAttribute("rx")||0),ry:parseFloat(t.getAttribute("ry")||0)}),n},polygon:function(t,e){var n=t.getAttribute("points");n&&(n=Yc(n));var i=new Za({shape:{points:n||[]}});return jc(e,i),Uc(t,i,this._defs),i},polyline:function(t,e){var n=new ya;jc(e,n),Uc(t,n,this._defs);var i=t.getAttribute("points");i&&(i=Yc(i));var r=new Ua({shape:{points:i||[]}});return r},image:function(t,e){var n=new er;return jc(e,n),Uc(t,n,this._defs),n.setStyle({image:t.getAttribute("xlink:href"),x:t.getAttribute("x"),y:t.getAttribute("y"),width:t.getAttribute("width"),height:t.getAttribute("height")}),n},text:function(t,e){var n=t.getAttribute("x")||0,i=t.getAttribute("y")||0,r=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0;this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new On;return jc(e,a),Uc(t,a,this._defs),a},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0,a=new On;return jc(e,a),Uc(t,a,this._defs),this._textX+=r,this._textY+=o,a},path:function(t,e){var n=Ea(t.getAttribute("d")||"");return jc(e,n),Uc(t,n,this._defs),n}},Hc={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||0,10),n=parseInt(t.getAttribute("y1")||0,10),i=parseInt(t.getAttribute("x2")||10,10),r=parseInt(t.getAttribute("y2")||0,10),o=new ls(e,n,i,r);return function(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType){var i=n.getAttribute("offset");i=i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var r=n.getAttribute("stop-color")||"#000000";e.addColorStop(i,r)}n=n.nextSibling}}(t,o),o},radialgradient:function(t){}};function jc(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),L(e.__inheritedStyle,t.__inheritedStyle))}function Yc(t){for(var e=ot(t).split(Vc),n=[],i=0;i0;o-=2){var a=r[o],s=r[o-1];switch(i=i||se(),s){case"translate":a=ot(a).split(Vc),ce(i,i,[parseFloat(a[0]),parseFloat(a[1]||0)]);break;case"scale":a=ot(a).split(Vc),fe(i,i,[parseFloat(a[0]),parseFloat(a[1]||a[0])]);break;case"rotate":a=ot(a).split(Vc),de(i,i,parseFloat(a[0]));break;case"skew":a=ot(a).split(Vc),console.warn("Skew transform is not supported yet");break;case"matrix":a=ot(a).split(Vc),i[0]=parseFloat(a[0]),i[1]=parseFloat(a[1]),i[2]=parseFloat(a[2]),i[3]=parseFloat(a[3]),i[4]=parseFloat(a[4]),i[5]=parseFloat(a[5])}}e.setLocalTransform(i)}}(t,e),C(r,function(t){var e=t.getAttribute("style"),n={};if(!e)return n;var i,r={};for(Qc.lastIndex=0;null!=(i=Qc.exec(e));)r[i[1]]=i[2];for(var o in Zc)Zc.hasOwnProperty(o)&&null!=r[o]&&(n[Zc[o]]=r[o]);return n}(t)),!i))for(var a in Zc)if(Zc.hasOwnProperty(a)){var s=t.getAttribute(a);null!=s&&(r[Zc[a]]=s)}var l=o?"textFill":"fill",u=o?"textStroke":"stroke";e.style=e.style||new qn;var h=e.style;null!=r.fill&&h.set(l,qc(r.fill,n)),null!=r.stroke&&h.set(u,qc(r.stroke,n)),B(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(t){var e="lineWidth"===t&&o?"textStrokeWidth":t;null!=r[t]&&h.set(e,parseFloat(r[t]))}),r.textBaseline&&"auto"!==r.textBaseline||(r.textBaseline="alphabetic"),"alphabetic"===r.textBaseline&&(r.textBaseline="bottom"),"start"===r.textAlign&&(r.textAlign="left"),"end"===r.textAlign&&(r.textAlign="right"),B(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(t){null!=r[t]&&h.set(t,r[t])}),r.lineDash&&(e.style.lineDash=ot(r.lineDash).split(Vc)),h[u]&&"none"!==h[u]&&(e[u]=!0),e.__inheritedStyle=r}var Xc=/url\(\s*#(.*?)\)/;function qc(t,e){var n=e&&t&&t.match(Xc);return n?e[ot(n[1])]:t}var Kc=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g,Qc=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Jc(t,e,n){var i=e/t.width,r=n/t.height,o=Math.min(i,r);return{scale:[o,o],position:[-(t.x+t.width/2)*o+e/2,-(t.y+t.height/2)*o+n/2]}}var $c=ht(),td={registerMap:function(t,e,n){var i;return Y(e)?i=e:e.svg?i=[{type:"svg",source:e.svg,specialAreas:e.specialAreas}]:(e.geoJson&&!e.features&&(n=e.specialAreas,e=e.geoJson),i=[{type:"geoJSON",source:e,specialAreas:n}]),B(i,function(t){var e=t.type;"geoJson"===e&&(e=t.type="geoJSON");var n=ed[e];c&&rt(n,"Illegal map type: "+e),n(t)}),$c.set(t,i)},retrieveMap:function(t){return $c.get(t)}},ed={geoJSON:function(t){var e=t.source;t.geoJSON=U(e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e},svg:function(t){t.svgXML=Fc(t.source)}},nd=rt,id=B,rd=Z,od=X,ad=gu.parseClassType,sd="4.2.0",ld={zrender:"4.0.5"},ud=1e3,hd=1e3,cd=3e3,dd={PROCESSOR:{FILTER:ud,STATISTIC:5e3},VISUAL:{LAYOUT:hd,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:cd,COMPONENT:4e3,BRUSH:5e3}},fd="__flagInMainProcess",pd="__optionUpdated",gd=/^[a-zA-Z0-9_]+$/;function md(t){return function(e,n,i){e=e&&e.toLowerCase(),Ft.prototype[t].call(this,e,n,i)}}function vd(){Ft.call(this)}function yd(t,e,i){i=i||{},"string"==typeof e&&(e=Wd[e]),this.id,this.group,this._dom=t;var r="canvas";c&&(r=("undefined"==typeof window?n:window).__ECHARTS__DEFAULT__RENDERER__||r);var o=this._zr=br(t,{renderer:i.renderer||r,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height});this._throttledZrFlush=lc(H(o.flush,o),17),(e=A(e))&&mh(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new Uu;var a,s,l=this._api=(s=(a=this)._coordSysMgr,C(new Yu(a),{getCoordinateSystems:H(s.getCoordinateSystems,s),getComponentByElement:function(t){for(;t;){var e=t.__ecComponentInfo;if(null!=e)return a._model.getComponent(e.mainType,e.index);t=t.parent}}}));function u(t,e){return t.__prio-e.__prio}Gn(Gd,u),Gn(Bd,u),this._scheduler=new gc(this,l,Bd,Gd),Ft.call(this,this._ecEventProcessor=new Ed),this._messageCenter=new vd,this._initEvents(),this.resize=H(this.resize,this),this._pendingActions=[],o.animation.on("frame",this._onframe,this),function(t,e){t.on("rendered",function(){e.trigger("rendered"),!t.animation.isFinished()||e[pd]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})}(o,this),st(this)}vd.prototype.on=md("on"),vd.prototype.off=md("off"),vd.prototype.one=md("one"),z(vd,Ft);var xd=yd.prototype;function _d(t,e,n){var i,r=this._model,o=this._coordSysMgr.getCoordinateSystems();e=Fr(r,e);for(var a=0;a0&&t.unfinished);t.unfinished||this._zr.flush()}}},xd.getDom=function(){return this._dom},xd.getZr=function(){return this._zr},xd.setOption=function(t,e,n){var i;if(c&&nd(!this[fd],"`setOption` should not be called during main process."),od(e)&&(n=e.lazyUpdate,i=e.silent,e=e.notMerge),this[fd]=!0,!this._model||e){var r=new $u(this._api),o=this._theme,a=this._model=new Vu;a.scheduler=this._scheduler,a.init(null,null,o,r)}this._model.setOption(t,Vd),n?(this[pd]={silent:i},this[fd]=!1):(wd(this),bd.update.call(this),this._zr.flush(),this[pd]=!1,this[fd]=!1,Ad.call(this,i),Dd.call(this,i))},xd.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},xd.getModel=function(){return this._model},xd.getOption=function(){return this._model&&this._model.getOption()},xd.getWidth=function(){return this._zr.getWidth()},xd.getHeight=function(){return this._zr.getHeight()},xd.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},xd.getRenderedCanvas=function(t){if(p.canvasSupported)return(t=t||{}).pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(t)},xd.getSvgDataUrl=function(){if(p.svgSupported){var t=this._zr;return B(t.storage.getDisplayList(),function(t){t.stopAnimation(!0)}),t.painter.pathToDataUrl()}},xd.getDataURL=function(t){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;id(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataUrl():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return id(i,function(t){t.group.ignore=!1}),o},xd.getConnectedDataURL=function(t){if(p.canvasSupported){var e=this.group,n=Math.min,i=Math.max;if(Yd[e]){var r=1/0,o=1/0,a=-1/0,s=-1/0,l=[],u=t&&t.pixelRatio||1;B(jd,function(u,h){if(u.group===e){var c=u.getRenderedCanvas(A(t)),d=u.getDom().getBoundingClientRect();r=n(d.left,r),o=n(d.top,o),a=i(d.right,a),s=i(d.bottom,s),l.push({dom:c,left:d.left,top:d.top})}});var h=(a*=u)-(r*=u),c=(s*=u)-(o*=u),d=P();d.width=h,d.height=c;var f=br(d);return id(l,function(t){var e=new er({style:{x:t.left*u-r,y:t.top*u-o,image:t.dom}});f.add(e)}),f.refreshImmediately(),d.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},xd.convertToPixel=j(_d,"convertToPixel"),xd.convertFromPixel=j(_d,"convertFromPixel"),xd.containPixel=function(t,e){var n;return B(t=Fr(this._model,t),function(t,i){i.indexOf("Models")>=0&&B(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n|=!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint?n|=o.containPoint(e,t):c&&console.warn(i+": "+(o?"The found component do not support containPoint.":"No view mapping to the found component."))}else c&&console.warn(i+": containPoint is not supported")},this)},this),!!n},xd.getVisual=function(t,e){var n=(t=Fr(this._model,t,{defaultMainType:"series"})).seriesModel;c&&(n||console.warn("There is no specified seires model"));var i=n.getData(),r=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?i.indexOfRawIndex(t.dataIndex):null;return null!=r?i.getItemVisual(r,e):i.getVisual(e)},xd.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},xd.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var bd={prepareAndUpdate:function(t){wd(this),bd.update.call(this,t)},update:function(t){var e=this._model,n=this._api,i=this._zr,r=this._coordSysMgr,o=this._scheduler;if(e){o.restoreData(e,t),o.performSeriesTasks(e),r.create(e,n),o.performDataProcessorTasks(e,t),Sd(this,e),r.update(e,n),Cd(e),o.performVisualTasks(e,t),Ld(this,e,n,t);var a=e.get("backgroundColor")||"transparent";if(p.canvasSupported)i.setBackgroundColor(a);else{var s=je(a);a=tn(s,"rgb"),0===s[3]&&(a="transparent")}Pd(e,n)}},updateTransform:function(t){var e=this._model,n=this,i=this._api;if(e){var r=[];e.eachComponent(function(o,a){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,e,i,t);l&&l.update&&r.push(s)}else r.push(s)});var o=ht();e.eachSeries(function(r){var a=n._chartsMap[r.__viewId];if(a.updateTransform){var s=a.updateTransform(r,e,i,t);s&&s.update&&o.set(r.uid,1)}else o.set(r.uid,1)}),Cd(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:o}),kd(n,e,0,t,o),Pd(e,this._api)}},updateView:function(t){var e=this._model;e&&(Jh.markUpdateMethod(t,"updateView"),Cd(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),Ld(this,this._model,this._api,t),Pd(e,this._api))},updateVisual:function(t){bd.update.call(this,t)},updateLayout:function(t){bd.update.call(this,t)}};function wd(t){var e=t._model,n=t._scheduler;n.restorePipelines(e),n.prepareStageTasks(),Td(t,"component",e,n),Td(t,"chart",e,n),n.plan()}function Md(t,e,n,i,r){var o=t._model;if(i){var a={};a[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"];var s={mainType:i,query:a};r&&(s.subType=r);var l=n.excludeSeriesId;null!=l&&(l=ht(Cr(l))),o&&o.eachComponent(s,function(e){l&&null!=l.get(e.id)||u(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)}else id(t._componentsViews.concat(t._chartsViews),u);function u(i){i&&i.__alive&&i[e]&&i[e](i.__model,o,t._api,n)}}function Sd(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})}function Id(t,e){var n=t.type,i=t.escapeConnect,r=zd[n],o=r.actionInfo,a=(o.update||"update").split(":"),s=a.pop();a=null!=a[0]&&ad(a[0]),this[fd]=!0;var l=[t],u=!1;t.batch&&(u=!0,l=V(t.batch,function(e){return(e=L(C({},e),t)).batch=null,e}));var h,c=[],d="highlight"===n||"downplay"===n;id(l,function(t){(h=(h=r.action(t,this._model,this._api))||C({},t)).type=o.event||h.type,c.push(h),d?Md(this,s,t,"series"):a&&Md(this,s,t,a.main,a.sub)},this),"none"===s||d||a||(this[pd]?(wd(this),bd.update.call(this,t),this[pd]=!1):bd[s].call(this,t)),h=u?{type:o.event||n,escapeConnect:i,batch:c}:c[0],this[fd]=!1,!e&&this._messageCenter.trigger(h.type,h)}function Ad(t){for(var e=this._pendingActions;e.length;){var n=e.shift();Id.call(this,n,t)}}function Dd(t){!t&&this.trigger("updated")}function Td(t,e,n,i){for(var r="component"===e,o=r?t._componentsViews:t._chartsViews,a=r?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;ue.get("hoverLayerThreshold")&&!p.node&&n.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}(t._zr,e),fc(t._zr.dom,e)}function Pd(t,e){id(Fd,function(n){n(t,e)})}xd.resize=function(t){c&&nd(!this[fd],"`resize` should not be called during main process."),this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[fd]=!0,n&&wd(this),bd.update.call(this),this[fd]=!1,Ad.call(this,i),Dd.call(this,i)}},xd.showLoading=function(t,e){if(od(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Hd[t]){var n=Hd[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}else c&&console.warn("Loading effects "+t+" not exists.")},xd.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},xd.makeActionFromEvent=function(t){var e=C({},t);return e.type=Rd[t.type],e},xd.dispatchAction=function(t,e){od(e)||(e={silent:!!e}),zd[t.type]&&this._model&&(this[fd]?this._pendingActions.push(t):(Id.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&p.browser.weChat&&this._throttledZrFlush(),Ad.call(this,e.silent),Dd.call(this,e.silent)))},xd.appendData=function(t){var e=t.seriesIndex,n=this.getModel().getSeriesByIndex(e);c&&nd(t.data&&n),n.appendData(t),this._scheduler.unfinished=!0},xd.on=md("on"),xd.off=md("off"),xd.one=md("one");var Od=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Nd(t,e){var n=t.get("z"),i=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t.zlevel=i))})}function Ed(){this.eventInfo}xd._initEvents=function(){id(Od,function(t){var e=function(e){var n,i=this.getModel(),r=e.target,o="globalout"===t;if(o)n={};else if(r&&null!=r.dataIndex){var a=r.dataModel||i.getSeriesByIndex(r.seriesIndex);n=a&&a.getDataParams(r.dataIndex,r.dataType,r)||{}}else r&&r.eventData&&(n=C({},r.eventData));if(n){var s=n.componentType,l=n.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=n.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),h=u&&this["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];c&&(o||u&&h||console.warn("model or view can not be found by params")),n.event=e,n.type=t,this._ecEventProcessor.eventInfo={targetEl:r,packedEvent:n,model:u,view:h},this.trigger(t,n)}};e.zrEventfulCallAtLast=!0,this._zr.on(t,e,this)},this),id(Rd,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},xd.isDisposed=function(){return this._disposed},xd.clear=function(){this.setOption({series:[]},!0)},xd.dispose=function(){if(this._disposed)c&&console.warn("Instance "+this.id+" has been disposed");else{this._disposed=!0,Wr(this.getDom(),Xd,"");var t=this._api,e=this._model;id(this._componentsViews,function(n){n.dispose(e,t)}),id(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),delete jd[this.id]}},z(yd,Ft),Ed.prototype={constructor:Ed,normalizeQuery:function(t){var e={},n={},i={};if(U(t)){var r=ad(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};B(t,function(t,r){for(var s=!1,l=0;l0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},filter:function(t,e,n){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,o=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return h(l,a,"mainType")&&h(l,a,"subType")&&h(l,a,"index","componentIndex")&&h(l,a,"name")&&h(l,a,"id")&&h(u,o,"name")&&h(u,o,"dataIndex")&&h(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o));function h(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},afterTrigger:function(){this.eventInfo=null}};var zd={},Rd={},Bd=[],Vd=[],Fd=[],Gd=[],Wd={},Hd={},jd={},Yd={},Zd=new Date-0,Ud=new Date-0,Xd="_echarts_instance_";function qd(t){Yd[t]=!1}var Kd=qd;function Qd(t){return jd[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,Xd)]}function Jd(t,e){Wd[t]=e}function $d(t){Vd.push(t)}function tf(t,e){af(Bd,t,e,ud)}function ef(t,e,n){"function"==typeof e&&(n=e,e="");var i=od(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,nd(gd.test(i)&&gd.test(e)),zd[i]||(zd[i]={action:n,actionInfo:t}),Rd[e]=i}function nf(t,e){Uu.register(t,e)}function rf(t,e){af(Gd,t,e,hd,"layout")}function of(t,e){af(Gd,t,e,cd,"visual")}function af(t,e,n,i,r){if((rd(e)||od(e))&&(n=e,e=i),c){if(isNaN(e)||null==e)throw new Error("Illegal priority");id(t,function(t){nd(t.__raw!==n)})}var o=gc.wrapStageHandler(n,r);return o.__prio=e,o.__raw=n,t.push(o),o}function sf(t,e){Hd[t]=e}function lf(t){return gu.extend(t)}function uf(t){return Uh.extend(t)}function hf(t){return Vh.extend(t)}function cf(t){return Jh.extend(t)}function df(t){return t}function ff(t,e,n,i,r){this._old=t,this._new=e,this._oldKeyGetter=n||df,this._newKeyGetter=i||df,this.context=r}function pf(t,e,n,i,r){for(var o=0;o65535?bf:Mf}var If=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],Af=["_extent","_approximateExtent","_rawExtent"];function Df(t,e){B(If.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,B(Af,function(n){t[n]=A(e[n])}),t._calculationInfo=C(e._calculationInfo)}var Tf=function(t,e){t=t||["x","y"];for(var n={},i=[],r={},o=0;o=0?this._indices[t]:-1}function Ef(t,e){var n=t._idList[e];return null==n&&(n=Pf(t,t._idDimIdx,e)),null==n&&(n=xf+e),n}function zf(t){return Y(t)||(t=[t]),t}function Rf(t,e){for(var n=0;n=0?(r[s]=Vf(o[s]),i._rawExtent[s]=[1/0,-1/0],i._extent[s]=null):r[s]=o[s])}return i}function Vf(t){for(var e,n,i=new Array(t.length),r=0;rx[1]&&(x[1]=y)}e&&(this._nameList[f]=e[p])}this._rawCount=this._count=l,this._extent={},kf(this)},Cf._initDataFromProvider=function(t,e){if(!(t>=e)){for(var n,i=this._chunkSize,r=this._rawData,o=this._storage,a=this.dimensions,s=a.length,l=this._dimensionInfos,u=this._nameList,h=this._idList,c=this._rawExtent,d=this._nameRepeatCount={},f=this._chunkCount,p=0;pS[1]&&(S[1]=M)}if(!r.pure){var I=u[v];if(m&&null==I)if(null!=m.name)u[v]=I=m.name;else if(null!=n){var A=a[n],D=o[A][y];if(D){I=D[x];var T=l[A].ordinalMeta;T&&T.categories.length&&(I=T.categories[I])}}var C=null==m?null:m.id;null==C&&null!=I&&(d[I]=d[I]||0,C=I,d[I]>0&&(C+="__ec__"+d[I]),d[I]++),null!=C&&(h[v]=C)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent={},kf(this)}},Cf.count=function(){return this._count},Cf.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array){r=new e(n);for(var i=0;i=0&&e=0&&ea&&(a=l)}return i=[o,a],this._extent[t]=i,i},Cf.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},Cf.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},Cf.getCalculationInfo=function(t){return this._calculationInfo[t]},Cf.setCalculationInfo=function(t,e){vf(t)?C(this._calculationInfo,t):this._calculationInfo[t]=e},Cf.getSum=function(t){var e=0;if(this._storage[t])for(var n=0,i=this.count();n=this._rawCount||t<0)return-1;var e=this._indices,n=e[t];if(null!=n&&nt))return o;r=o-1}}return-1},Cf.indicesOfNearest=function(t,e,n){var i=[];if(!this._storage[t])return i;null==n&&(n=1/0);for(var r=Number.MAX_VALUE,o=-1,a=0,s=this.count();a=0&&o<0)&&(r=u,o=l,i.length=0),i.push(a))}return i},Cf.getRawIndex=Of,Cf.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],n=0;n=l&&w<=u||isNaN(w))&&(o[a++]=d),d++;h=!0}else if(2===i){f=this._storage[s];var y=this._storage[e[1]],x=t[e[1]][0],_=t[e[1]][1];for(p=0;p=l&&w<=u||isNaN(w))&&(M>=x&&M<=_||isNaN(M))&&(o[a++]=d),d++}}h=!0}}if(!h)if(1===i)for(v=0;v=l&&w<=u||isNaN(w))&&(o[a++]=S)}else for(v=0;vt[A][1])&&(I=!1)}I&&(o[a++]=this.getRawIndex(v))}return aM[1]&&(M[1]=w)}}}return r},Cf.downSample=function(t,e,n,i){for(var r=Bf(this,[t]),o=r._storage,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=this._chunkSize,c=r._rawExtent[t],d=new(Sf(this))(u),f=0,p=0;pu-p&&(s=u-p,a.length=s);for(var g=0;gc[1]&&(c[1]=x),d[f++]=_}return r._count=f,r._indices=d,r.getRawIndex=Nf,r},Cf.getItemModel=function(t){var e=this.hostModel;return new pl(this.getRawDataItem(t),e,e&&e.ecModel)},Cf.diff=function(t){var e=this;return new ff(t?t.getIndices():[],this.getIndices(),function(e){return Ef(t,e)},function(t){return Ef(e,t)})},Cf.getVisual=function(t){var e=this._visual;return e&&e[t]},Cf.setVisual=function(t,e){if(vf(t))for(var n in t)t.hasOwnProperty(n)&&this.setVisual(n,t[n]);else this._visual=this._visual||{},this._visual[t]=e},Cf.setLayout=function(t,e){if(vf(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},Cf.getLayout=function(t){return this._layout[t]},Cf.getItemLayout=function(t){return this._itemLayouts[t]},Cf.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?C(this._itemLayouts[t]||{},e):e},Cf.clearItemLayouts=function(){this._itemLayouts.length=0},Cf.getItemVisual=function(t,e,n){var i=this._itemVisuals[t],r=i&&i[e];return null!=r||n?r:this.getVisual(e)},Cf.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{},r=this.hasItemVisual;if(this._itemVisuals[t]=i,vf(e))for(var o in e)e.hasOwnProperty(o)&&(i[o]=e[o],r[o]=!0);else i[e]=n,r[e]=!0},Cf.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var Ff=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};function Gf(t,e,n){ku.isInstance(e)||(e=ku.seriesDataToSource(e)),n=n||{},t=(t||[]).slice();for(var i=(n.dimsDef||[]).slice(),r=ht(n.encodeDef),o=ht(),a=ht(),s=[],l=function(t,e,n,i){var r=Math.max(t.dimensionsDetectCount||1,e.length,n.length,i||0);return B(e,function(t){var e=t.dimsDef;e&&(r=Math.max(r,e.length))}),r}(e,t,i,n.dimCount),u=0;u=e[0]&&t<=e[1]},Xf.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},Xf.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},Xf.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},Xf.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Xf.prototype.getExtent=function(){return this._extent.slice()},Xf.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},Xf.prototype.isBlank=function(){return this._isBlank},Xf.prototype.setBlank=function(t){this._isBlank=t},Xf.prototype.getLabel=null,Ur(Xf),Jr(Xf,{registerWhenExtend:!0}),qf.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&V(n,Jf);return new qf({categories:i,needCollect:!i,deduplication:!1!==e.dedplication})};var Kf=qf.prototype;function Qf(t){return t._map||(t._map=ht(t.categories))}function Jf(t){return X(t)&&null!=t.value?t.value:t+""}Kf.getOrdinal=function(t){return Qf(this).get(t)},Kf.parseAndCollect=function(t){var e,n=this._needCollect;if("string"!=typeof t&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=Qf(this);return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e};var $f=Xf.prototype,tp=Xf.extend({type:"ordinal",init:function(t,e){t&&!Y(t)||(t=new qf({categories:t})),this._ordinalMeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),$f.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return $f.normalize.call(this,this.parse(t))},scale:function(t){return Math.round($f.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push(n),n++;return t},getLabel:function(t){if(!this.isBlank())return this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:dt,niceExtent:dt});tp.create=function(){return new tp};var ep=wl;function np(t){return Il(t)+2}function ip(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function rp(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),ip(t,0,e),ip(t,1,e),t[0]>t[1]&&(t[0]=t[1])}var op=wl,ap=Xf.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),ap.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=np(t)},getTicks:function(){return function(t,e,n,i){var r=[];if(!t)return r;e[0]1e4)return[];return e[1]>(r.length?r[r.length-1]:n[1])&&r.push(e[1]),r}(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getLabel:function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=Il(t)||0:"auto"===n&&(n=this._intervalPrecision),Vl(t=op(t,n,!0))},niceTicks:function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=function(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=El(o/e,!0);null!=n&&ai&&(a=r.interval=i);var s=r.intervalPrecision=np(a);return rp(r.niceTickExtent=[ep(Math.ceil(t[0]/a)*a,s),ep(Math.floor(t[1]/a)*a,s)],t),r}(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax?e[0]-=n/2:(e[1]+=n/2,e[0]-=n/2)}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=op(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=op(Math.ceil(e[1]/r)*r))},fillExtent:function(t){if(!t.fixMin&&!t.fixMax){var e=s(this._extent,2),n=e[0],i=e[1];0===i?i=-n*t.pnr:0===n?n=-i/t.pnr:i=-n*t.pnr,this._extent=[n,i],this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval)}}});ap.create=function(){return new ap};var sp="__ec_stack_",lp="undefined"!=typeof Float32Array?Float32Array:Array;function up(t){return t.get("stack")||sp+t.seriesIndex}function hp(t){return t.dim+t.index}function cp(t,e){var n=[];return e.eachSeriesByType(t,function(t){vp(t)&&!yp(t)&&n.push(t)}),n}function dp(t){var e=[];return B(t,function(t){var n=t.getData(),i=t.coordinateSystem.getBaseAxis(),r=i.getExtent(),o="category"===i.type?i.getBandWidth():Math.abs(r[1]-r[0])/n.count(),a=bl(t.get("barWidth"),o),s=bl(t.get("barMaxWidth"),o),l=t.get("barGap"),u=t.get("barCategoryGap");e.push({bandWidth:o,barWidth:a,barMaxWidth:s,barGap:l,barCategoryGap:u,axisKey:hp(i),stackId:up(t)})}),fp(e)}function fp(t){var e={};B(t,function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var h=t.barGap;null!=h&&(o.gap=h);var c=t.barCategoryGap;null!=c&&(o.categoryGap=c)});var n={};return B(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=bl(t.categoryGap,r),a=bl(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),B(i,function(t,e){var n=t.maxWidth;n&&n=0?"p":"n",D=m;p&&(r[a][_]||(r[a][_]={p:m,n:m}),D=r[a][_][A]),g?(b=D,w=(I=n.dataToPoint([x,_]))[1]+l,M=I[0]-m,S=u,Math.abs(M).5||(u=.5),{progress:function(t,e){for(var i,h=new lp(2*t.count),c=[],d=[],f=0;null!=(i=t.next());)d[l]=e.get(o,i),d[1-l]=e.get(a,i),c=n.dataToPoint(d,null,c),h[f++]=c[0],h[f++]=c[1];e.setLayout({largePoints:h,barWidth:u,valueAxisStart:xp(0,r),valueAxisHorizontal:s})}}}}};function vp(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function yp(t){return t.pipelineContext&&t.pipelineContext.large}function xp(t,e,n){var i,r,o=e.getGlobalExtent();o[0]>o[1]?(i=o[1],r=o[0]):(i=o[0],r=o[1]);var a=e.toGlobalCoord(e.dataToCoord(0));return ar&&(a=r),a}var _p=ap.prototype,bp=Math.ceil,wp=Math.floor,Mp=ap.extend({type:"time",getLabel:function(t){var e=this._stepLvl,n=new Date(t);return Ql(e[0],n,this.getSetting("useUTC"))},niceExtent:function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=864e5,e[1]+=864e5),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-864e5}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=wl(wp(e[0]/i)*i)),t.fixMax||(e[1]=wl(bp(e[1]/i)*i))},niceTicks:function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0],o=r/t;null!=e&&on&&(o=n);var a=Sp.length,s=function(t,e,n,i){for(;n>>1;t[r][1]0;)i*=10;var r=[wl(Lp(e[0]/i)*i),wl(Cp(e[1]/i)*i)];this._interval=i,this._niceExtent=r}},niceExtent:function(t){Ap.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});function Np(t,e){return Tp(t,Dp(e))}function Ep(t,e){var n,i,r,o=t.type,a=e.getMin(),s=e.getMax(),l=null!=a,u=null!=s,h=t.getExtent();"ordinal"===o?n=e.getCategories().length:(Y(i=e.get("boundaryGap"))||(i=[i||0,i||0]),"boolean"==typeof i[0]&&(c&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),i=[0,0]),i[0]=bl(i[0],1),i[1]=bl(i[1],1),r=h[1]-h[0]||Math.abs(h[0])),null==a&&(a="ordinal"===o?n?0:NaN:h[0]-i[0]*r),null==s&&(s="ordinal"===o?n?n-1:NaN:h[1]+i[1]*r),"dataMin"===a?a=h[0]:"function"==typeof a&&(a=a({min:h[0],max:h[1]})),"dataMax"===s?s=h[1]:"function"==typeof s&&(s=s({min:h[0],max:h[1]})),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN),t.setBlank(J(a)||J(s)||"ordinal"===o&&!t.getOrdinalMeta().categories.length),e.getNeedCrossZero()&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var d=e.ecModel;if(d&&"time"===o){var f,p=cp("bar",d);if(B(p,function(t){f|=t.getBaseAxis()===e.axis}),f){var g=dp(p),m=function(t,e,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=pp(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;B(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;B(a,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-t,c=h/(1-(s+l)/o)-h;return{min:t-=c*(s/u),max:e+=c*(l/u)}}(a,s,e,g);a=m.min,s=m.max}}return[a,s]}function zp(t,e){var n=Ep(t,e),i=null!=e.getMin(),r=null!=e.getMax(),o=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var a=t.type;t.setExtent(n[0],n[1]),t.niceExtent({splitNumber:o,fixMin:i,fixMax:r,minInterval:"interval"===a||"time"===a?e.get("minInterval"):null,maxInterval:"interval"===a||"time"===a?e.get("maxInterval"):null});var s=e.get("interval");null!=s&&t.setInterval&&t.setInterval(s)}function Rp(t,e){if(e=e||t.get("type"))switch(e){case"category":return new tp(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new ap;default:return(Xf.getClass(e)||ap).create(t)}}function Bp(t){var e,n=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"string"==typeof n?(e=n,n=function(n){return n=t.scale.getLabel(n),e.replace("{value}",null!=n?n:"")}):"function"==typeof n?function(e,r){return null!=i&&(r=e-i),n(Vp(t,e),r)}:function(e){return t.scale.getLabel(e)}}function Vp(t,e){return"category"===t.type?t.scale.getLabel(e):e}function Fp(t,e){var n=e*Math.PI/180,i=t.plain(),r=i.width,o=i.height,a=r*Math.cos(n)+o*Math.sin(n),s=r*Math.sin(n)+o*Math.cos(n);return new Pn(i.x,i.y,a,s)}function Gp(t){var e=t.get("interval");return null==e?"auto":e}function Wp(t){return"category"===t.type&&0===Gp(t.getLabelModel())}B(["contain","normalize"],function(t){Op.prototype[t]=function(e){return e=Pp(e)/Pp(this.base),Ip[t].call(this,e)}}),Op.create=function(){return new Op};var Hp={getMin:function(t){var e=this.option,n=t||null==e.rangeStart?e.min:e.rangeStart;return this.axis&&null!=n&&"dataMin"!==n&&"function"!=typeof n&&!J(n)&&(n=this.axis.scale.parse(n)),n},getMax:function(t){var e=this.option,n=t||null==e.rangeEnd?e.max:e.rangeEnd;return this.axis&&null!=n&&"dataMax"!==n&&"function"!=typeof n&&!J(n)&&(n=this.axis.scale.parse(n)),n},getNeedCrossZero:function(){var t=this.option;return null==t.rangeStart&&null==t.rangeEnd&&!t.scale},getCoordSysModel:dt,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}},jp=_s({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,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),Yp=_s({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,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),Zp=_s({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,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),h=Math.cos(u)*a,c=Math.sin(u),d=Math.cos(u),f=.6*a,p=.7*a;t.moveTo(n-h,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+h-c*f,l+s+d*f,n,i-p,n,i),t.bezierCurveTo(n,i-p,n-h+c*f,l+s+d*f,n-h,l+s),t.closePath()}}),Up=_s({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,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),Xp={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){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},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}},qp={};B({line:es,rect:$a,roundRect:$a,square:$a,circle:Ra,diamond:Yp,pin:Zp,arrow:Up,triangle:jp},function(t,e){qp[e]=new t});var Kp=_s({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style;"pin"===this.shape.symbolType&&"inside"===t.textPosition&&(t.textPosition=["50%","40%"],t.textAlign="center",t.textVerticalAlign="middle")},buildPath:function(t,e,n){var i=e.symbolType,r=qp[i];"none"!==e.symbolType&&(r||(r=qp[i="rect"]),Xp[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n))}});function Qp(t,e){if("image"!==this.type){var n=this.style,i=this.shape;i&&"line"===i.symbolType?n.stroke=t:this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff"):(n.fill&&(n.fill=t),n.stroke&&(n.stroke=t)),this.dirty(!1)}}function Jp(t,e,n,i,r,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?ws(t.slice(8),new Pn(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?bs(t.slice(7),{},new Pn(e,n,i,r),a?"center":"cover"):new Kp({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=l,s.setColor=Qp,s.setColor(o),s}var $p={isDimensionStacked:Yf,enableDataStack:jf,getStackedDimension:Zf},tg=(Object.freeze||Object)({createList:function(t){return Uf(t.getSource(),t)},getLayoutRect:su,dataStack:$p,createScale:function(t,e){var n=e;pl.isInstance(e)||z(n=new pl(e),Hp);var i=Rp(n);return i.setExtent(t[0],t[1]),zp(i,n),i},mixinAxisModelCommonMethods:function(t){z(t,Hp)},completeDimensions:Gf,createDimensions:Hf,createSymbol:Jp}),eg=1e-8;function ng(t,e){return Math.abs(t-e)>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,i.push([s/n,l/n])}return i}rg.prototype={constructor:rg,properties:null,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,n=[e,e],i=[-e,-e],r=[],o=[],a=this.geometries,s=0;s0}),function(t){var e=t.properties,n=t.geometry,i=n.coordinates,r=[];"Polygon"===n.type&&r.push({type:"polygon",exterior:i[0],interiors:i.slice(1)}),"MultiPolygon"===n.type&&B(i,function(t){t[0]&&r.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})});var o=new rg(e.name,r,e.cp);return o.properties=e,o})},sg=Br();function lg(t){return"category"===t.type?function(t){var e=t.getLabelModel(),n=hg(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=Bp(t);return{labels:V(e,function(e,i){return{formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e}})}}(t)}function ug(t,e){return"category"===t.type?function(t,e){var n,i,r=cg(t,"ticks"),o=Gp(e),a=dg(r,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),Z(o))n=gg(t,o,!0);else if("auto"===o){var s=hg(t,t.getLabelModel());i=s.labelCategoryInterval,n=V(s.labels,function(t){return t.tickValue})}else n=pg(t,i=o,!0);return fg(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:t.scale.getTicks()}}function hg(t,e){var n,i,r=cg(t,"labels"),o=Gp(e),a=dg(r,o);return a||(Z(o)?n=gg(t,o):(i="auto"===o?function(t){var e=sg(t).autoInterval;return null!=e?e:sg(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=pg(t,i)),fg(r,o,{labels:n,labelCategoryInterval:i}))}function cg(t,e){return sg(t)[e]||(sg(t)[e]=[])}function dg(t,e){for(var n=0;n1&&h/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=Wp(t),d=a.get("showMinLabel")||c,f=a.get("showMaxLabel")||c;d&&u!==o[0]&&g(o[0]);for(var p=u;p<=o[1];p+=l)g(p);function g(t){s.push(n?t:{formattedLabel:i(t),rawLabel:r.getLabel(t),tickValue:t})}return f&&p!==o[1]&&g(o[1]),s}function gg(t,e,n){var i=t.scale,r=Bp(t),o=[];return B(i.getTicks(),function(t){var a=i.getLabel(t);e(t,a)&&o.push(n?t:{formattedLabel:r(t),rawLabel:a,tickValue:t})}),o}var mg=[0,1],vg=function(t,e,n){this.dim=t,this.scale=e,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1};function yg(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}vg.prototype={constructor:vg,contain:function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},containData:function(t){return this.contain(this.dataToCoord(t))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return Al(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var n=this._extent;n[0]=t,n[1]=e},dataToCoord:function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&yg(n=n.slice(),i.count()),_l(t,mg,n,e)},coordToData:function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&yg(n=n.slice(),i.count());var r=_l(t,n,mg,e);return this.scale.scale(r)},pointToData:function(t,e){},getTicksCoords:function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=ug(this,e),i=V(n.ticks,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this),r=e.get("alignWithLabel");return function(t,e,n,i,r){var o=e.length;if(t.onBand&&!i&&o){var a,s=t.getExtent();if(1===o)e[0].coord=s[0],a=e[1]={coord:s[0]};else{var l=e[1].coord-e[0].coord;B(e,function(t){t.coord-=l/2;var e=e||0;e%2>0&&(t.coord-=l/(2*(e+1)))}),a={coord:e[o-1].coord+l},e.push(a)}var u=s[0]>s[1];h(e[0].coord,s[0])&&(r?e[0].coord=s[0]:e.shift()),r&&h(s[0],e[0].coord)&&e.unshift({coord:s[0]}),h(s[1],a.coord)&&(r?a.coord=s[1]:e.pop()),r&&h(a.coord,s[1])&&e.push({coord:s[1]})}function h(t,e){return u?t>e:t40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(i)),c=Math.abs(u*Math.sin(i)),d=0,f=0;l<=o[1];l+=s){var p,g,m=yi(n(l),e.font,"center","top");p=1.3*m.width,g=1.3*m.height,d=Math.max(d,p,7),f=Math.max(f,g,7)}var v=d/h,y=f/c;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(v,y))),_=sg(t.model),b=_.lastAutoInterval,w=_.lastTickCount;return null!=b&&null!=w&&Math.abs(b-x)<=1&&Math.abs(w-a)<=1&&b>x?x=b:(_.lastTickCount=a,_.lastAutoInterval=x),x}(this)}};var xg=ag,_g={};B(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(t){_g[t]=ft[t]});var bg={};function wg(t,e){var n=t.mapDimension("defaultedLabel",!0),i=n.length;if(1===i)return Ch(t,e,n[0]);if(i){for(var r=[],o=0;o0?n=i[0]:i[1]<0&&(n=i[1]),n}(o,n),s=r.dim,l=o.dim,u=e.mapDimension(l),h=e.mapDimension(s),c="x"===l||"radius"===l?1:0,d=V(t.dimensions,function(t){return e.mapDimension(t)}),f=e.getCalculationInfo("stackResultDimension");return(i|=Yf(e,d[0]))&&(d[0]=f),(i|=Yf(e,d[1]))&&(d[1]=f),{dataDimsForPoint:d,valueStart:a,valueAxisDim:l,baseAxisDim:s,stacked:!!i,valueDim:u,baseDim:h,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Vg(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}Ng.updateData=function(t,e){e=zg(e);var n=this.group,i=t.hostModel,r=this._data,o=this._symbolCtor,a=Rg(t);r||n.removeAll(),t.diff(r).add(function(i){var r=t.getItemLayout(i);if(Eg(t,r,i,e)){var s=new o(t,i,a);s.attr("position",r),t.setItemGraphicEl(i,s),n.add(s)}}).update(function(s,l){var u=r.getItemGraphicEl(l),h=t.getItemLayout(s);Eg(t,h,s,e)?(u?(u.updateData(t,s,a),$s(u,{position:h},i)):(u=new o(t,s)).attr("position",h),n.add(u),t.setItemGraphicEl(s,u)):n.remove(u)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)})}).execute(),this._data=t},Ng.isPersistent=function(){return!0},Ng.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(e,n){var i=t.getItemLayout(n);e.attr("position",i)})},Ng.incrementalPrepareUpdate=function(t){this._seriesScope=Rg(t),this._data=null,this.group.removeAll()},Ng.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}n=zg(n);for(var r=t.start;r=r||d<0)break;if(Ug(p)){if(h){d+=o;continue}break}if(d===n)t[o>0?"moveTo":"lineTo"](p[0],p[1]);else if(l>0){var g=e[c],m="y"===u?1:0,v=(p[m]-g[m])*l;Hg(Yg,g),Yg[m]=g[m]+v,Hg(Zg,p),Zg[m]=p[m]-v,t.bezierCurveTo(Yg[0],Yg[1],Zg[0],Zg[1],p[0],p[1])}else t.lineTo(p[0],p[1]);c=d,d+=o}return f}function Kg(t,e,n,i,r,o,a,s,l,u,h){for(var c=0,d=n,f=0;f=r||d<0)break;if(Ug(p)){if(h){d+=o;continue}break}if(d===n)t[o>0?"moveTo":"lineTo"](p[0],p[1]),Hg(Yg,p);else if(l>0){var g=d+o,m=e[g];if(h)for(;m&&Ug(e[g]);)m=e[g+=o];var v=.5,y=e[c];if(!(m=e[g])||Ug(m))Hg(Zg,p);else{var x,_;if(Ug(m)&&!h&&(m=p),bt(jg,m,y),"x"===u||"y"===u){var b="x"===u?0:1;x=Math.abs(p[b]-y[b]),_=Math.abs(p[b]-m[b])}else x=Ct(p,y),_=Ct(p,m);Wg(Zg,p,jg,-l*(1-(v=_/(_+x))))}Fg(Yg,Yg,s),Gg(Yg,Yg,a),Fg(Zg,Zg,s),Gg(Zg,Zg,a),t.bezierCurveTo(Yg[0],Yg[1],Zg[0],Zg[1],p[0],p[1]),Wg(Yg,p,jg,l*v)}else t.lineTo(p[0],p[1]);c=d,d+=o}return f}function Qg(t,e){var n=[1/0,1/0],i=[-1/0,-1/0];if(e)for(var r=0;ri[0]&&(i[0]=o[0]),o[1]>i[1]&&(i[1]=o[1])}return{min:e?n:i,max:e?i:n}}var Jg=ya.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:Va(ya.prototype.brush),buildPath:function(t,e){var n=e.points,i=0,r=n.length,o=Qg(n,e.smoothConstraint);if(e.connectNulls){for(;r>0&&Ug(n[r-1]);r--);for(;i0&&Ug(n[o-1]);o--);for(;re[0]?1:-1;e[0]+=i*n,e[1]-=i*n}return e}function im(t,e,n,i){return"polar"===t.type?function(t,e,n,i){var r=t.getAngleAxis(),o=t.getRadiusAxis().getExtent().slice();o[0]>o[1]&&o.reverse();var a=r.getExtent(),s=Math.PI/180;n&&(o[0]-=.5,o[1]+=.5);var l=new Fa({shape:{cx:wl(t.cx,1),cy:wl(t.cy,1),r0:wl(o[0],1),r:wl(o[1],1),startAngle:-a[0]*s,endAngle:-a[1]*s,clockwise:r.inverse}});return e&&(l.shape.endAngle=-a[0]*s,tl(l,{shape:{endAngle:-a[1]*s}},i)),l}(t,e,n,i):function(t,e,n,i){var r=nm(t.getAxis("x")),o=nm(t.getAxis("y")),a=t.getBaseAxis().isHorizontal(),s=Math.min(r[0],r[1]),l=Math.min(o[0],o[1]),u=Math.max(r[0],r[1])-s,h=Math.max(o[0],o[1])-l;if(n)s-=.5,u+=.5,l-=.5,h+=.5;else{var c=i.get("lineStyle.width")||2,d=i.get("clipOverflow")?c/2:Math.max(u,h);a?(l-=d,h+=2*d):(s-=d,u+=2*d)}var f=new $a({shape:{x:s,y:l,width:u,height:h}});return e&&(f.shape[a?"width":"height"]=0,tl(f,{shape:{width:u,height:h}},i)),f}(t,e,n,i)}function rm(t,e,n){for(var i=e.getBaseAxis(),r="x"===i.dim||"radius"===i.dim?0:1,o=[],a=0;ai)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return B(o.getViewLabels(),function(t){s[t.tickValue]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}Jh.extend({type:"line",init:function(){var t=new On,e=new Og;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,n){var i=t.coordinateSystem,r=this.group,o=t.getData(),a=t.getModel("lineStyle"),s=t.getModel("areaStyle"),l=o.mapArray(o.getItemLayout),u="polar"===i.type,h=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,g=this._lineGroup,m=t.get("animation"),v=!s.isEmpty(),y=s.get("origin"),x=function(t,e,n){if(!n.valueDim)return[];for(var i=[],r=0,o=e.count();r=0;o--){var a=n[o].dimension,s=t.dimensions[a],l=t.getDimensionInfo(s);if("x"===(i=l&&l.coordDim)||"y"===i){r=n[o];break}}if(r){var u=e.getAxis(i),h=V(r.stops,function(t){return{coord:u.toGlobalCoord(u.dataToCoord(t.value)),color:t.color}}),d=h.length,f=r.outerColors.slice();d&&h[0].coord>h[d-1].coord&&(h.reverse(),f.reverse());var p=h[0].coord-10,g=h[d-1].coord+10,m=g-p;if(m<.001)return"transparent";B(h,function(t){t.offset=(t.coord-p)/m}),h.push({offset:d?h[d-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:d?h[0].offset:.5,color:f[0]||"transparent"});var v=new ls(0,0,0,0,h,!0);return v[i]=p,v[i+"2"]=g,v}c&&console.warn("Visual map on line style only support x or y dimension.")}else c&&console.warn("Visual map on line style is only supported on cartesian2d.")}(o,i)||o.getVisual("color");f.useStyle(L(a.getLineStyle(),{fill:"none",stroke:S,lineJoin:"bevel"}));var I=t.get("smooth");if(I=em(t.get("smooth")),f.setShape({smooth:I,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),p){var A=o.getCalculationInfo("stackedOnSeries"),D=0;p.useStyle(L(s.getAreaStyle(),{fill:S,opacity:.7,lineJoin:"bevel"})),A&&(D=em(A.get("smooth"))),p.setShape({smooth:I,stackedOnSmooth:D,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=o,this._coordSys=i,this._stackedOnPoints=x,this._points=l,this._step=M,this._valueOrigin=y},dispose:function(){},highlight:function(t,e,n,i){var r=t.getData(),o=Rr(r,i);if(!(o instanceof Array)&&null!=o&&o>=0){var a=r.getItemGraphicEl(o);if(!a){var s=r.getItemLayout(o);if(!s)return;(a=new Mg(r,o)).position=s,a.setZ(t.get("zlevel"),t.get("z")),a.ignore=isNaN(s[0])||isNaN(s[1]),a.__temp=!0,r.setItemGraphicEl(o,a),a.stopSymbolAnimation(!0),this.group.add(a)}a.highlight()}else Jh.prototype.highlight.call(this,t,e,n,i)},downplay:function(t,e,n,i){var r=t.getData(),o=Rr(r,i);if(null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else Jh.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Jg({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new $g({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_updateAnimation:function(t,e,n,i,r,o){var a=this._polyline,s=this._polygon,l=t.hostModel,u=function(t,e,n,i,r,o,a,s){for(var l=function(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})}).update(function(t,e){n.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){n.push({cmd:"-",idx:t})}).execute(),n}(t,e),u=[],h=[],c=[],d=[],f=[],p=[],g=[],m=Bg(r,e,a),v=Bg(o,t,s),y=0;ye&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;ne[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},E(fm,vg);var pm={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},gm={};gm.categoryAxis=D({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},pm),gm.valueAxis=D({boundaryGap:[0,0],splitNumber:5},pm),gm.timeAxis=L({scale:!0,min:"dataMin",max:"dataMax"},gm.valueAxis),gm.logAxis=L({scale:!0,logBase:10},gm.valueAxis);var mm=["value","category","time","log"],vm=function(t,e,n,i){B(mm,function(r){e.extend({type:t+"Axis."+r,mergeDefaultAndTheme:function(e,i){var o=this.layoutMode,a=o?hu(e):{};D(e,i.getTheme().get(r+"Axis")),D(e,this.getDefaultOption()),e.type=n(t,e),o&&uu(e,a,o)},optionUpdated:function(){"category"===this.option.type&&(this.__ordinalMeta=qf.createByAxisModel(this))},getCategories:function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:T([{},gm[r+"Axis"],i],!0)})}),gu.registerSubTypeDefaulter(t+"Axis",j(n,t))},ym=gu.extend({type:"cartesian2dAxis",axis:null,init:function(){ym.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){ym.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){ym.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function xm(t,e){return e.type||(e.data?"category":"value")}D(ym.prototype,Hp);var _m={offset:0};function bm(t,e,n){return t.getCoordSysModel()===e}function wm(t,e,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._pnAxes={},this._initCartesian(t,e,n),this.model=t}vm("x",ym,xm,_m),vm("y",ym,xm,_m),gu.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});var Mm=wm.prototype;function Sm(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get("axisLine.onZero"),l=a.get("axisLine.onZeroAxisIndex");if(s){if(null!=l)Im(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&Im(o[u])&&!i[h(o[u])]){r=o[u];break}r&&(i[h(r)]=!0)}function h(t){return t.dim+"_"+t.index}}function Im(t){return t&&"category"!==t.type&&"time"!==t.type&&function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}(t)}Mm.type="grid",Mm.axisPointerEnabled=!0,Mm.getRect=function(){return this._rect},Mm.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model),B(n.x,function(t){zp(t.scale,t.model)}),B(n.y,function(t){zp(t.scale,t.model)}),this.syncYAxisZero();var i={};B(n.x,function(t){Sm(n,"y",t,i)}),B(n.y,function(t){Sm(n,"x",t,i)}),this.resize(this.model,e)},Mm.syncYAxisZero=function(){var t=[],e=[],n=[];if(B(this._axesMap.y,function(i){var r=null!=i.model.getMin(),o=null!=i.model.getMax();if(!r&&!o){var a=i.scale.getExtent();a[0]<0&&a[1]?t.push(i):0===a[0]&&a[1]>0?e.push(i):a[0]<0&&0===a[1]&&n.push(i)}}),t.length>0||e.length>0&&n.length>0){var i=function(t){var e=1;if(t.length>0){var n=t.map(function(t){var e=t.scale.getExtent();return Math.abs(e[1])/Math.abs(e[0])});e=Math.max.apply(null,n)}return e}(t);t.concat(e).concat(n).forEach(function(t){"interval"===t.scale.type&&function(t,e,n){var i=null!=e.getMin(),r=null!=e.getMax();t.fillExtent({fixMin:i,fixMax:r,pnr:n})}(t.scale,t.model,i)})}},Mm.resize=function(t,e,n){var i=su(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=i;var r=this._axesList;function o(){B(r,function(t){var e=t.isHorizontal(),n=e?[0,i.width]:[0,i.height],r=t.inverse?1:0;t.setExtent(n[r],n[1-r]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?i.x:i.y)})}o(),!n&&t.get("containLabel")&&(B(r,function(t){if(!t.model.get("axisLabel.inside")){var e=function(t){var e=t.model,n=t.scale;if(e.get("axisLabel.show")&&!n.isBlank()){var i,r,o="category"===t.type,a=n.getExtent();r=o?n.count():(i=n.getTicks()).length;var s,l=t.getLabelModel(),u=Bp(t),h=1;r>40&&(h=Math.ceil(r/40));for(var c=0;cu[1]?-1:1,c=["start"===o?u[0]-h*l:"end"===o?u[1]+h*l:(u[0]+u[1])/2,Rm(o)?t.labelOffset+a*l:0],d=e.get("nameRotate");null!=d&&(d=d*Cm/180),Rm(o)?i=Om(t.rotation,null!=d?d:t.rotation,a):(i=function(t,e,n,i){var r,o,a=Cl(n-t.rotation),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return Ll(a-Cm/2)?(o=l?"bottom":"top",r="center"):Ll(a-1.5*Cm)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*Cm&&a>Cm/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}(t,o,d||0,u),null!=(r=t.axisNameAvailableWidth)&&(r=Math.abs(r/Math.sin(i.rotation)),!isFinite(r)&&(r=null)));var f=s.getFont(),p=e.get("nameTruncate",!0)||{},g=p.ellipsis,m=$(t.nameTruncateMaxWidth,p.maxWidth,r),v=null!=g&&null!=m?$l(n,m,f,g,{minChar:2,placeholder:p.placeholder}):n,y=e.get("tooltip",!0),x=e.mainType,_={componentType:x,name:n,$vars:["name"]};_[x+"Index"]=e.componentIndex;var b=new za({anid:"name",__fullText:n,__truncatedText:v,position:c,rotation:i.rotation,silent:Nm(e),z2:1,tooltip:y&&y.show?C({content:n,formatter:function(){return n},formatterParams:_},y):null});Ys(b.style,s,{text:v,textFont:f,textFill:s.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:i.textAlign,textVerticalAlign:i.textVerticalAlign}),e.get("triggerEvent")&&(b.eventData=Pm(e),b.eventData.targetType="axisName",b.eventData.name=n),this._dumbGroup.add(b),b.updateTransform(),this.group.add(b),b.decomposeTransform()}}},Pm=Lm.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},Om=Lm.innerTextLayout=function(t,e,n){var i,r,o=Cl(e-t);return Ll(o)?(r=n>0?"top":"bottom",i="center"):Ll(o-Cm)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},Nm=Lm.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)};function Em(t){t&&(t.ignore=!0)}function zm(t,e,n){var i=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(i&&r){var o=le([]);return de(o,o,-t.rotation),i.applyTransform(he([],o,t.getLocalTransform())),r.applyTransform(he([],o,e.getLocalTransform())),i.intersect(r)}}function Rm(t){return"middle"===t||"center"===t}var Bm=B,Vm=j;function Fm(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];Bm(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var s=Ym(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model.getModel("tooltip",i);if(Bm(n.getAxes(),Vm(f,!1,null)),n.getTooltipAxes&&i&&u.get("show")){var h="axis"===u.get("trigger"),c="cross"===u.get("axisPointer.type"),d=n.getTooltipAxes(u.get("axisPointer.axis"));(h||c)&&Bm(d.baseAxes,Vm(f,!c||"cross",h)),c&&Bm(d.otherAxes,Vm(f,"cross",!1))}}function f(i,s,h){var c=h.model.getModel("axisPointer",r),d=c.get("show");if(d&&("auto"!==d||i||jm(c))){null==s&&(s=c.get("triggerTooltip"));var f=(c=i?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s={};Bm(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=A(a.get(t))}),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r){var u=a.get("label.show");if(l.show=null==u||u,!o){var h=s.lineStyle=a.get("crossStyle");h&&L(l,h.textStyle)}}return t.model.getModel("axisPointer",new pl(s,n,i))}(h,u,r,e,i,s):c).get("snap"),p=Ym(h.model),g=s||f||"category"===h.type,m=t.axesInfo[p]={key:p,axis:h,coordSys:n,axisPointerModel:c,triggerTooltip:s,involveSeries:g,snap:f,useHandle:jm(c),seriesModels:[]};l[p]=m,t.seriesInvolved|=g;var v=function(t,e){for(var n=e.model,i=e.dim,r=0;r=0||t===e}function Wm(t){var e=Hm(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=jm(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a1&&("string"==typeof r?a=lm[r]:"function"==typeof r&&(a=r),a&&t.setData(i.downSample(i.mapDimension(l.dim),1/c,a,um)))}}}}("line"));var tv=Vh.extend({type:"series.__base_bar__",getInitialData:function(t,e){return Uf(this.getSource(),this)},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var n=e.dataToPoint(e.clampData(t)),i=this.getData(),r=i.getLayout("offset"),o=i.getLayout("size");return n[e.getBaseAxis().isHorizontal()?0:1]+=r+o/2,n}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});function ev(t,e,n,i,r,o,a){js(t,e,n.getModel("label"),n.getModel("emphasis.label"),{labelFetcher:r,labelDataIndex:o,defaultText:wg(r.getData(),o),isRectText:!0,autoColor:i}),nv(t),nv(e)}function nv(t,e){"outside"===t.textPosition&&(t.textPosition=e)}tv.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t}});var iv=$r([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),rv={getBarItemStyle:function(t){var e=iv(this,t);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(e.lineDash=n)}return e}},ov=["itemStyle","barBorderWidth"];C(pl.prototype,rv),cf({type:"bar",render:function(t,e,n){this._updateDrawMode(t);var i=t.get("coordinateSystem");return"cartesian2d"===i||"polar"===i?this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n):c&&console.warn("Only cartesian2d and polar supported for bar."),this.group},incrementalPrepareRender:function(t,e,n){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,n,i){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t,e,n){var i,r=this.group,o=t.getData(),a=this._data,s=t.coordinateSystem,l=s.getBaseAxis();"cartesian2d"===s.type?i=l.isHorizontal():"polar"===s.type&&(i="angle"===l.dim);var u=t.isAnimationEnabled()?t:null;o.diff(a).add(function(e){if(o.hasValue(e)){var n=o.getItemModel(e),a=uv[s.type](o,e,n),l=av[s.type](o,e,n,a,i,u);o.setItemGraphicEl(e,l),r.add(l),hv(l,o,e,n,a,t,i,"polar"===s.type)}}).update(function(e,n){var l=a.getItemGraphicEl(n);if(o.hasValue(e)){var h=o.getItemModel(e),c=uv[s.type](o,e,h);l?$s(l,{shape:c},u,e):l=av[s.type](o,e,h,c,i,u,!0),o.setItemGraphicEl(e,l),r.add(l),hv(l,o,e,h,c,t,i,"polar"===s.type)}else r.remove(l)}).remove(function(t){var e=a.getItemGraphicEl(t);"cartesian2d"===s.type?e&&sv(t,u,e):e&&lv(t,u,e)}).execute(),this._data=o},_renderLarge:function(t,e,n){this._clear(),dv(t,this.group)},_incrementalRenderLarge:function(t,e){dv(e,this.group,!0)},dispose:dt,remove:function(t){this._clear(t)},_clear:function(t){var e=this.group,n=this._data;t&&t.get("animation")&&n&&!this._isLargeDraw?n.eachItemGraphicEl(function(e){"sector"===e.type?lv(e.dataIndex,t,e):sv(e.dataIndex,t,e)}):e.removeAll(),this._data=null}});var av={cartesian2d:function(t,e,n,i,r,o,a){var s=new $a({shape:C({},i)});if(o){var l=r?"height":"width",u={};s.shape[l]=0,u[l]=i[l],sl[a?"updateProps":"initProps"](s,{shape:u},o,e)}return s},polar:function(t,e,n,i,r,o,a){var s=i.startAngle0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}};function hv(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"color"),u=e.getItemVisual(n,"opacity"),h=i.getModel("itemStyle"),c=i.getModel("emphasis.itemStyle").getBarItemStyle();s||t.setShape("r",h.get("barBorderRadius")||0),t.useStyle(L({fill:l,opacity:u},h.getBarItemStyle()));var d=i.getShallow("cursor");d&&t.attr("cursor",d),a?r.height:r.width,s||ev(t.style,c,i,l,o,n),Fs(t,c)}var cv=ya.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var n=e.points,i=this.__startPoint,r=this.__valueIdx,o=0;o0&&"scale"!==u){var d=r.getItemLayout(0),f=Math.max(n.getWidth(),n.getHeight())/2,p=H(a.removeClipPath,a);a.setClipPath(this._createClipPath(d.cx,d.cy,f,d.startAngle,d.clockwise,p,t))}else a.removeClipPath();this._data=r}},dispose:function(){},_createClipPath:function(t,e,n,i,r,o,a){var s=new Fa({shape:{cx:t,cy:e,r0:0,r:n,startAngle:i,endAngle:i,clockwise:r}});return tl(s,{shape:{endAngle:i+(r?1:-1)*Math.PI*2}},a,o),s},containPoint:function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}}});var _v=function(t,e){B(e,function(e){e.update="updateView",ef(e,function(n,i){var r={};return i.eachComponent({mainType:"series",subType:t,query:n},function(t){t[e.method]&&t[e.method](n.name,n.dataIndex);var i=t.getData();i.each(function(e){var n=i.getName(e);r[n]=t.isSelected(n)||!1})}),{name:n.name,selected:r}})})},bv=function(t){return{getTargetSeries:function(e){var n={},i=ht();return e.eachSeriesByType(t,function(t){t.__paletteScope=n,i.set(t.uid,t)}),i},reset:function(t,e){var n=t.getRawData(),i={},r=t.getData();r.each(function(t){var e=r.getRawIndex(t);i[e]=t}),n.each(function(e){var o=i[e],a=null!=o&&r.getItemVisual(o,"color",!0);if(a)n.setItemVisual(e,"color",a);else{var s=n.getItemModel(e).get("itemStyle.color")||t.getColorFromPalette(n.getName(e)||e+"",t.__paletteScope,n.count());n.setItemVisual(e,"color",s),null!=o&&r.setItemVisual(o,"color",s)}})}}},wv=Math.PI/180;function Mv(t,e,n,i,r,o,a){function s(e,n,i,r){for(var o=e;oe&&o+1t[o].y+t[o].height)return void l(o,i/2);l(n-1,i/2)}function l(e,n){for(var i=e;i>=0&&(t[i].y-=n,!(i>0&&t[i].y>t[i-1].y+t[i-1].height));i--);}function u(t,e,n,i,r,o){for(var a=e?Number.MAX_VALUE:0,s=0,l=t.length;s=a&&(d=a-10),!e&&d<=a&&(d=a+10),t[s].x=n+d*o,a=d}}t.sort(function(t,e){return t.y-e.y});for(var h,c=0,d=t.length,f=[],p=[],g=0;g=n?p.push(t[g]):f.push(t[g]);u(f,!1,e,n,i,r),u(p,!0,e,n,i,r)}function Sv(t){return"center"===t.position}var Iv=function(t,e,n,i,r){var o,a,s=t.getData(),l=[],u=!1,h=(t.get("minShowLabelAngle")||0)*wv;s.each(function(n){var i=s.getItemLayout(n),r=s.getItemModel(n),c=r.getModel("label"),d=c.get("position")||r.get("emphasis.label.position"),f=r.getModel("labelLine"),p=f.get("length"),g=f.get("length2");if(!(i.angle0?"left":"right"}var C=c.getFont(),L=c.get("rotate")?b<0?-_+Math.PI:-_:0,k=yi(t.getFormattedLabel(n,"normal")||s.getName(n),C,x,"top");u=!!L,i.label={x:m,y:v,position:d,height:k.height,len:p,len2:g,linePoints:y,textAlign:x,verticalAlign:"middle",rotation:L,inside:M},M||l.push(i.label)}}),!u&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o){for(var a=[],s=[],l=0;l=0;s--){var l=2*s,u=i[l]-o/2,h=i[l+1]-a/2;if(t>=u&&e>=h&&t<=u+o&&e<=h+a)return s}return-1}});function Lv(){this.group=new On}var kv=Lv.prototype;function Pv(t,e,n){vg.call(this,t,e,n),this.type="value",this.angle=0,this.name="",this.model}function Ov(t,e,n){this._model=t,this.dimensions=[],this._indicatorAxes=V(t.getIndicatorModels(),function(t,e){var n="indicator_"+e,i=new Pv(n,new ap);return i.name=t.get("name"),i.model=t,t.axis=i,this.dimensions.push(n),i},this),this.resize(t,n),this.cx,this.cy,this.r,this.r0,this.startAngle}kv.isPersistent=function(){return!this._incremental},kv.updateData=function(t){this.group.removeAll();var e=new Cv({rectHover:!0,cursor:"default"});e.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},kv.updateLayout=function(t){if(!this._incremental){var e=t.getLayout("symbolPoints");this.group.eachChild(function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e)})}},kv.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new hs({silent:!0})),this.group.add(this._incremental)):this._incremental=null},kv.incrementalUpdate=function(t,e){var n;this._incremental?(n=new Cv,this._incremental.addDisplayable(n,!0)):((n=new Cv({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end})).incremental=!0,this.group.add(n)),n.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(n,e,!!this._incremental)},kv._setCommon=function(t,e,n){var i=e.hostModel,r=e.getVisual("symbolSize");t.setShape("size",r instanceof Array?r:[r,r]),t.symbolProxy=Jp(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("color");a&&t.setColor(a),n||(t.seriesIndex=i.seriesIndex,t.on("mousemove",function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>=0&&(t.dataIndex=n+(t.startIndex||0))}))},kv.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},kv._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},cf({type:"scatter",render:function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i),this._finished=!0},incrementalPrepareRender:function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},incrementalRender:function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var r=sm().reset(t);r.progress&&r.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_updateSymbolDraw:function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new Lv:new Og,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}}),of(am("scatter","circle")),rf(sm("scatter")),E(Pv,vg),Ov.prototype.getIndicatorAxes=function(){return this._indicatorAxes},Ov.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},Ov.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},Ov.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;ln[0]&&isFinite(c)&&isFinite(n[0]))}else{a.getTicks().length-1>r&&(u=o(u));var d=Math.round((n[0]+n[1])/2/u)*u,f=Math.round(r/2);a.setExtent(wl(d-f*u),wl(d+(r-f)*u)),a.setInterval(u)}})},Ov.dimensions=[],Ov.create=function(t,e){var n=[];return t.eachComponent("radar",function(i){var r=new Ov(i,t,e);n.push(r),i.coordinateSystem=r}),t.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("radarIndex")||0])}),n},Uu.register("radar",Ov);var Nv=gm.valueAxis;function Ev(t,e){return L({show:e},t)}lf({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("name"),s=this.get("name.show"),l=this.get("name.formatter"),u=this.get("nameGap"),h=this.get("triggerEvent"),c=V(this.get("indicator")||[],function(c){null!=c.max&&c.max>0&&!c.min?c.min=0:null!=c.min&&c.min<0&&!c.max&&(c.max=0);var d=a;if(null!=c.color&&(d=L({color:c.color},a)),c=D(A(c),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:c.text,nameLocation:"end",nameGap:u,nameTextStyle:d,triggerEvent:h},!1),s||(c.name=""),"string"==typeof l){var f=c.name;c.name=l.replace("{value}",null!=f?f:"")}else"function"==typeof l&&(c.name=l(c.name,c));var p=C(new pl(c,null,this.ecModel),Hp);return p.mainType="radar",p.componentIndex=this.componentIndex,p},this);this.getIndicatorModels=function(){return c}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:D({lineStyle:{color:"#bbb"}},Nv.axisLine),axisLabel:Ev(Nv.axisLabel,!1),axisTick:Ev(Nv.axisTick,!1),splitLine:Ev(Nv.splitLine,!0),splitArea:Ev(Nv.splitArea,!0),indicator:[]}});var zv=["axisLine","axisTickLabel","axisName"];uf({type:"radar",render:function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var e=t.coordinateSystem;B(V(e.getIndicatorAxes(),function(t){return new Lm(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(t){B(zv,t.add,t),this.group.add(t.getGroup())},this)},_buildSplitLineAndArea:function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),h=a.get("color"),d=s.get("color");h=Y(h)?h:[h],d=Y(d)?d:[d];var f=[],p=[];if("circle"===i)for(var g=n[0].getTicksCoords(),m=e.cx,v=e.cy,y=0;y"+V(n,function(n,i){var r=e.get(e.mapDimension(n.dim),t);return jl(n.name+" : "+r)}).join("
")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}});function Bv(t){return!isNaN(t[0])&&!isNaN(t[1])}function Vv(t){return[t.cx,t.cy]}cf({type:"radar",render:function(t,e,n){var i=t.coordinateSystem,r=this.group,o=t.getData(),a=this._data;function s(t,e){var n=t.getItemVisual(e,"symbol")||"circle",i=t.getItemVisual(e,"color");if("none"!==n){var r=function(t){return Y(t)||(t=[+t,+t]),t}(t.getItemVisual(e,"symbolSize")),o=Jp(n,-1,-1,2,2,i);return o.attr({style:{strokeNoScale:!0},z2:100,scale:[r[0]/2,r[1]/2]}),o}}function l(e,n,i,r,o,a){i.removeAll();for(var l=0;l"+jl(i+" : "+n)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}}}}),pv);var ny="\0_ec_interaction_mutex";function iy(t,e){return!!ry(t)[e]}function ry(t){return t[ny]||(t[ny]={})}function oy(t){this.pointerChecker,this._zr=t,this._opt={};var e=H,n=e(ay,this),i=e(sy,this),r=e(ly,this),o=e(uy,this),a=e(hy,this);Ft.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,s){this.disable(),this._opt=L(A(s)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",n),t.on("mousemove",i),t.on("mouseup",r)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",o),t.on("pinch",a))},this.disable=function(){t.off("mousedown",n),t.off("mousemove",i),t.off("mouseup",r),t.off("mousewheel",o),t.off("pinch",a)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function ay(t){if(!(Kt(t)||t.target&&t.target.draggable)){var e=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0)}}function sy(t){if(this._dragging&&fy("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!iy(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,o=e-i,a=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&qt(t.event),dy(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:i,oldY:r,newX:e,newY:n})}}function ly(t){Kt(t)||(this._dragging=!1)}function uy(t){var e=fy("zoomOnMouseWheel",t,this._opt),n=fy("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1;cy(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:o,originY:a})}if(n){var l=Math.abs(i);cy(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a})}}}function hy(t){iy(this._zr,"globalPan")||cy(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY})}function cy(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(qt(i.event),dy(t,e,n,i,r))}function dy(t,e,n,i,r){r.isAvailableBehavior=H(fy,null,n,i),t.trigger(e,r)}function fy(t,e,n){var i=n[t];return!t||i&&(!U(i)||e.event[i+"Key"])}function py(t,e,n){var i=t.target,r=i.position;r[0]+=e,r[1]+=n,i.dirty()}function gy(t,e,n,i){var r=t.target,o=t.zoomLimit,a=r.position,s=r.scale,l=t.zoom=t.zoom||1;if(l*=e,o){var u=o.min||0,h=o.max||1/0;l=Math.max(Math.min(h,l),u)}var c=l/t.zoom;t.zoom=l,a[0]-=(n-a[0])*(c-1),a[1]-=(i-a[1])*(c-1),s[0]*=c,s[1]*=c,r.dirty()}ef({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),z(oy,Ft);var my={axisPointer:1,tooltip:1,brush:1};function vy(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!my[i.mainType]&&r&&r.model!==n}function yy(t,e){var n=t.getItemStyle(),i=t.get("areaColor");return null!=i&&(n.fill=i),n}function xy(t,e){e.eachChild(function(e){B(e.__regions,function(n){e.trigger(t.isSelected(n.name)?"emphasis":"normal")})})}function _y(t,e){var n=new On;this.uid=yl("ec_map_draw"),this._controller=new oy(t.getZr()),this._controllerHost={target:e?n:null},this.group=n,this._updateGroup=e,this._mouseDownFlag,this._mapName,this._initialized,n.add(this._regionsGroup=new On),n.add(this._backgroundGroup=new On)}_y.prototype={constructor:_y,draw:function(t,e,n,i,r){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(e){a||e.getHostGeoModel()!==t||(a=e.getData())});var s=t.coordinateSystem;this._updateBackground(s);var l=this._regionsGroup,u=this.group,h=s.scale,c={position:s.position,scale:h};!l.childAt(0)||r?u.attr(c):$s(u,c,t),l.removeAll();var d=["itemStyle"],f=["emphasis","itemStyle"],p=["label"],g=["emphasis","label"],m=ht();B(s.regions,function(e){var n=m.get(e.name)||m.set(e.name,new On),i=new as({shape:{paths:[]}});n.add(i);var r,s=(T=t.getRegionModel(e.name)||t).getModel(d),u=T.getModel(f),c=yy(s),v=yy(u),y=T.getModel(p),x=T.getModel(g);if(a){r=a.indexOfName(e.name);var _=a.getItemVisual(r,"color",!0);_&&(c.fill=_)}B(e.geometries,function(t){if("polygon"===t.type){i.shape.paths.push(new Za({shape:{points:t.exterior}}));for(var e=0;e<(t.interiors?t.interiors.length:0);e++)i.shape.paths.push(new Za({shape:{points:t.interiors[e]}}))}}),i.setStyle(c),i.style.strokeNoScale=!0,i.culling=!0;var b=y.get("show"),w=x.get("show"),M=a&&isNaN(a.get(a.mapDimension("value"),r)),S=a&&a.getItemLayout(r);if(o||M&&(b||w)||S&&S.showLabel){var I,A=o?e.name:r;(!a||r>=0)&&(I=t);var D=new za({position:e.center.slice(),scale:[1/h[0],1/h[1]],z2:10,silent:!0});js(D.style,D.hoverStyle={},y,x,{labelFetcher:I,labelDataIndex:A,defaultText:e.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),n.add(D)}if(a)a.setItemGraphicEl(r,n);else{var T=t.getRegionModel(e.name);i.eventData={componentType:"geo",componentIndex:t.componentIndex,geoIndex:t.componentIndex,name:e.name,region:T&&T.option||{}}}(n.__regions||(n.__regions=[])).push(e),n.highDownSilentOnTouch=!!t.get("selectedMode"),Fs(n,v),l.add(n)}),this._updateController(t,e,n),function(t,e,n,i,r){n.off("click"),n.off("mousedown"),e.get("selectedMode")&&(n.on("mousedown",function(){t._mouseDownFlag=!0}),n.on("click",function(o){if(t._mouseDownFlag){t._mouseDownFlag=!1;for(var a=o.target;!a.__regions;)a=a.parent;if(a){var s={type:("geo"===e.mainType?"geo":"map")+"ToggleSelect",batch:V(a.__regions,function(t){return{name:t.name,from:r.uid}})};s[e.mainType+"Id"]=e.id,i.dispatchAction(s),xy(e,n)}}}))}(this,t,l,n,i),xy(t,l)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&$v.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(t){var e=t.map;this._mapName!==e&&B($v.makeGraphic(e,this.uid),function(t){this._backgroundGroup.add(t)},this),this._mapName=e},_updateController:function(t,e,n){var i=t.coordinateSystem,r=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=i.getZoom(),r.enable(t.get("roam")||!1);var a=t.mainType;function s(){var e={type:"geoRoam",componentType:a};return e[a+"Id"]=t.id,e}r.off("pan").on("pan",function(t){this._mouseDownFlag=!1,py(o,t.dx,t.dy),n.dispatchAction(C(s(),{dx:t.dx,dy:t.dy}))},this),r.off("zoom").on("zoom",function(t){if(this._mouseDownFlag=!1,gy(o,t.scale,t.originX,t.originY),n.dispatchAction(C(s(),{zoom:t.scale,originX:t.originX,originY:t.originY})),this._updateGroup){var e=this.group.scale;this._regionsGroup.traverse(function(t){"text"===t.type&&t.attr("scale",[1/e[0],1/e[1]])})}},this),r.setPointerChecker(function(e,r,o){return i.getViewRectAfterRoam().contain(r,o)&&!vy(e,n,t)})}};var by="__seriesMapHighDown",wy="__seriesMapCallKey";function My(t){var e=this[by];e&&e.recordVersion===this[wy]&&Sy(e,t)}function Sy(t,e){var n=t.circle,i=t.labelModel,r=t.hoverLabelModel,o=t.emphasisText,a=t.normalText;e?(n.style.extendFrom(Ys({},r,{text:r.get("show")?o:null},{isRectText:!0,useInsideStyle:!1},!0)),n.__mapOriginalZ2=n.z2,n.z2+=gs):(Ys(n.style,i,{text:i.get("show")?a:null,textPosition:i.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),n.dirty(!1),null!=n.__mapOriginalZ2&&(n.z2=n.__mapOriginalZ2,n.__mapOriginalZ2=null))}function Iy(t,e,n){var i=t.getZoom(),r=t.getCenter(),o=e.zoom,a=t.dataToPoint(r);if(null!=e.dx&&null!=e.dy&&(a[0]-=e.dx,a[1]-=e.dy,r=t.pointToData(a),t.setCenter(r)),null!=o){if(n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(i*o,l),s)/i}t.scale[0]*=o,t.scale[1]*=o;var u=t.position,h=(e.originX-u[0])*(o-1),c=(e.originY-u[1])*(o-1);u[0]-=h,u[1]-=c,t.updateTransform(),r=t.pointToData(a),t.setCenter(r),t.setZoom(o*i)}return{center:t.getCenter(),zoom:t.getZoom()}}cf({type:"map",render:function(t,e,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){if(i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id)(o=this._mapDraw)&&r.add(o.group);else if(t.needsDrawMap){var o=this._mapDraw||new _y(n,!0);r.add(o.group),o.draw(t,e,n,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,e,n){var i=t.originalData,r=this.group;i.each(i.mapDimension("value"),function(e,n){if(!isNaN(e)){var o=i.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new Ra({style:{fill:t.getData().getVisual("color")},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:gs+1)});if(!s){var u=t.mainSeries.getData(),h=i.getName(n),c=u.indexOfName(h),d=i.getItemModel(n),f=d.getModel("label"),p=d.getModel("emphasis.label"),g=u.getItemGraphicEl(c),m=tt(t.getFormattedLabel(c,"normal"),h),v=tt(t.getFormattedLabel(c,"emphasis"),m),y=g[by],x=Math.random();if(!y){y=g[by]={};var _=j(My,!0),b=j(My,!1);g.on("mouseover",_).on("mouseout",b).on("emphasis",_).on("normal",b)}g[wy]=x,C(y,{recordVersion:x,circle:l,labelModel:f,hoverLabelModel:p,emphasisText:v,normalText:m}),Sy(y,!1)}r.add(l)}}})}}),ef({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(e){var i=e.coordinateSystem;if("geo"===i.type){var r=Iy(i,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom),"series"===n&&B(e.seriesGroup,function(t){t.setCenter(r.center),t.setZoom(r.zoom)})}})});var Ay=Ot;function Dy(){_e.call(this)}function Ty(t){this.name=t,this.zoomLimit,_e.call(this),this._roamTransformable=new Dy,this._rawTransformable=new Dy,this._center,this._zoom}function Cy(t,e,n,i){var r=n.seriesModel,o=r?r.coordinateSystem:null;return o===this?o[t](i):null}function Ly(t,e,n,i){Ty.call(this,t),this.map=e;var r=$v.load(e,n);this._nameCoordMap=r.nameCoordMap,this._regionsMap=r.regionsMap,this._invertLongitute=null==i||i,this.regions=r.regions,this._rect=r.boundingRect}function ky(t,e,n,i){var r=n.geoModel,o=n.seriesModel,a=r?r.coordinateSystem:o?o.coordinateSystem||(o.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return a===this?a[t](i):null}function Py(t,e){var n=t.get("boundingCoords");if(null!=n){var i=n[0],r=n[1];isNaN(i[0])||isNaN(i[1])||isNaN(r[0])||isNaN(r[1])?c&&console.error("Invalid boundingCoords"):this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}var o,a=this.getBoundingRect(),s=t.get("layoutCenter"),l=t.get("layoutSize"),u=e.getWidth(),h=e.getHeight(),d=a.width/a.height*this.aspectScale,f=!1;if(s&&l&&(s=[bl(s[0],u),bl(s[1],h)],l=bl(l,Math.min(u,h)),isNaN(s[0])||isNaN(s[1])||isNaN(l)?c&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."):f=!0),f){var p={};d>1?(p.width=l,p.height=l/d):(p.height=l,p.width=l*d),p.y=s[1]-p.height/2,p.x=s[0]-p.width/2}else(o=t.getBoxLayoutParams()).aspect=d,p=su(o,{width:u,height:h});this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function Oy(t,e){B(e.get("geoCoord"),function(e,n){t.addGeoCoord(n,e)})}z(Dy,_e),Ty.prototype={constructor:Ty,type:"view",dimensions:["x","y"],setBoundingRect:function(t,e,n,i){return this._rect=new Pn(t,e,n,i),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,n,i){this.transformTo(t,e,n,i),this._viewRect=new Pn(t,e,n,i)},transformTo:function(t,e,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new Pn(t,e,n,i)),o.decomposeTransform(),this._updateTransform()},setCenter:function(t){t&&(this._center=t,this._updateCenterAndZoom())},setZoom:function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=Ot([],i,t),n=Ot([],n,t),e.origin=i,e.position=[n[0]-i[0],n[1]-i[1]],e.scale=[r,r],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),ue(this.transform||(this.transform=[]),e.transform||se()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],pe(this.invTransform,this.transform),this.decomposeTransform()},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,e,n){var i=e?this._rawTransform:this.transform;return n=n||[],i?Ay(n,t,i):mt(n,t)},pointToData:function(t){var e=this.invTransform;return e?Ay([],t,e):[t[0],t[1]]},convertToPixel:j(Cy,"dataToPoint"),convertFromPixel:j(Cy,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},z(Ty,_e),Ly.prototype={constructor:Ly,type:"geo",dimensions:["lng","lat"],containCoord:function(t){for(var e=this.regions,n=0;n=0;){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,u=o.hierNode.modifier,h=a.hierNode.modifier,c=s.hierNode.modifier;s=Qy(s),o=Jy(o),s&&o;){r=Qy(r),a=Jy(a),r.hierNode.ancestor=t;var d=s.hierNode.prelim+c-o.hierNode.prelim-u+i(s,o);d>0&&(tx($y(s,t,n),t,d),u+=d,l+=d),c+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,h+=a.hierNode.modifier}s&&!Qy(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=c-l),o&&!Jy(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-h,n=t)}return n}(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function Xy(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function qy(t){return arguments.length?t:ex}function Ky(t,e){var n={};return t-=Math.PI/2,n.x=e*Math.cos(t),n.y=e*Math.sin(t),n}function Qy(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function Jy(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function $y(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function tx(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function ex(t,e){return t.parentNode===e.parentNode?1:2}function nx(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)&&"none"!==t.getItemVisual(e,"symbol")}function ix(t,e,n){return n.itemModel=e,n.itemStyle=e.getModel("itemStyle").getItemStyle(),n.hoverItemStyle=e.getModel("emphasis.itemStyle").getItemStyle(),n.lineStyle=e.getModel("lineStyle").getLineStyle(),n.labelModel=e.getModel("label"),n.hoverLabelModel=e.getModel("emphasis.label"),!1===t.isExpand&&0!==t.children.length?n.symbolInnerColor=n.itemStyle.fill:n.symbolInnerColor="#fff",n}function rx(t,e,n,i,r,o){var a=!n,s=t.tree.getNodeByDataIndex(e),l=s.getModel(),u=(o=ix(s,l,o),t.tree.root),h=s.parentNode===u?s:s.parentNode||s,c=t.getItemGraphicEl(h.dataIndex),d=h.getLayout(),f=c?{x:c.position[0],y:c.position[1],rawX:c.__radialOldRawX,rawY:c.__radialOldRawY}:d,p=s.getLayout();a?(n=new Mg(t,e,o)).attr("position",[f.x,f.y]):n.updateData(t,e,o),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=p.rawX,n.__radialRawY=p.rawY,i.add(n),t.setItemGraphicEl(e,n),$s(n,{position:[p.x,p.y]},r);var g=n.getSymbolPath();if("radial"===o.layout){var m,v,y=u.children[0],x=y.getLayout(),_=y.children.length;if(p.x===x.x&&!0===s.isExpand){var b={};b.x=(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,b.y=(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2,(m=Math.atan2(b.y-x.y,b.x-x.x))<0&&(m=2*Math.PI+m),(v=b.xx.x)||(m-=Math.PI);var w=v?"left":"right";g.setStyle({textPosition:w,textRotation:-m,textOrigin:"center",verticalAlign:"middle"})}if(s.parentNode&&s.parentNode!==u){var M=n.__edge;M||(M=n.__edge=new rs({shape:ax(o,f,f),style:L({opacity:0,strokeNoScale:!0},o.lineStyle)})),$s(M,{shape:ax(o,d,p),style:{opacity:1}},r),i.add(M)}}function ox(t,e,n,i,r,o){for(var a,s=t.tree.getNodeByDataIndex(e),l=t.tree.root,u=s.getModel(),h=(o=ix(s,u,o),s.parentNode===l?s:s.parentNode||s);null==(a=h.getLayout());)h=h.parentNode===l?h:h.parentNode||h;$s(n,{position:[a.x+1,a.y+1]},r,function(){i.remove(n),t.setItemGraphicEl(e,null)}),n.fadeOut(null,{keepLabel:!0});var c=n.__edge;c&&$s(c,{shape:ax(o,a,a),style:{opacity:0}},r,function(){i.remove(c)})}function ax(t,e,n){var i,r,o,a,s,l,u,h,c=t.orient;if("radial"===t.layout){s=e.rawX,u=e.rawY,l=n.rawX,h=n.rawY;var d=Ky(s,u),f=Ky(s,u+(h-u)*t.curvature),p=Ky(l,h+(u-h)*t.curvature),g=Ky(l,h);return{x1:d.x,y1:d.y,x2:g.x,y2:g.y,cpx1:f.x,cpy1:f.y,cpx2:p.x,cpy2:p.y}}return s=e.x,u=e.y,l=n.x,h=n.y,"LR"!==c&&"RL"!==c||(i=s+(l-s)*t.curvature,r=u,o=l+(s-l)*t.curvature,a=h),"TB"!==c&&"BT"!==c||(i=s,r=u+(h-u)*t.curvature,o=l,a=h+(u-h)*t.curvature),{x1:s,y1:u,x2:l,y2:h,cpx1:i,cpy1:r,cpx2:o,cpy2:a}}function sx(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function lx(t,e,n){if(t&&N(e,t.type)>=0){var i=n.getData().tree.root,r=t.targetNode;if("string"==typeof r&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function ux(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function hx(t,e){return N(ux(t),e)>=0}function cx(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}Yy.prototype={constructor:Yy,isRemoved:function(){return this.dataIndex<0},eachNode:function(t,e,n){"function"==typeof t&&(n=e,e=t,t=null),U(t=t||{})&&(t={order:t});var i,r=t.order||"preorder",o=this[t.attr||"children"];"preorder"===r&&(i=e.call(n,this));for(var a=0;!i&&ae&&(e=i.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var e,n=this.hostTree,i=n.data.getItemModel(this.dataIndex),r=this.getLevelModel();return r||0!==this.children.length&&(0===this.children.length||!1!==this.isExpand)||(e=this.getLeavesModel()),i.getModel(t,(r||e||n.hostModel).getModel(t))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},getLeavesModel:function(){return this.hostTree.leavesModel},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},isDescendantOf:function(t){return t!==this&&t.isAncestorOf(this)}},Zy.prototype={constructor:Zy,type:"tree",eachNode:function(t,e,n){this.root.eachNode(t,e,n)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;no&&(o=t.depth)});var a=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return r.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a}),r.data},getOrient:function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},formatTooltip:function(t){for(var e=this.getData().tree,n=e.root.children[0],i=e.getNodeByDataIndex(t),r=i.getValue(),o=i.name;i&&i!==n;)o=i.parentNode.name+"."+o,i=i.parentNode;return jl(o+(isNaN(r)||null==r?"":" : "+r))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}}),cf({type:"tree",init:function(t,e){this._oldTree,this._mainGroup=new On,this._controller=new oy(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(t,e,n,i){var r=t.getData(),o=t.layoutInfo,a=this._mainGroup,s=t.get("layout");"radial"===s?a.attr("position",[o.x+o.width/2,o.y+o.height/2]):a.attr("position",[o.x,o.y]),this._updateViewCoordSys(t),this._updateController(t,e,n);var l=this._data,u={expandAndCollapse:t.get("expandAndCollapse"),layout:s,orient:t.getOrient(),curvature:t.get("lineStyle.curveness"),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};r.diff(l).add(function(e){nx(r,e)&&rx(r,e,null,a,t,u)}).update(function(e,n){var i=l.getItemGraphicEl(n);nx(r,e)?rx(r,e,i,a,t,u):i&&ox(l,n,i,a,t,u)}).remove(function(e){var n=l.getItemGraphicEl(e);n&&ox(l,e,n,a,t,u)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===u.expandAndCollapse&&r.eachItemGraphicEl(function(e,i){e.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:i})})}),this._data=r},_updateViewCoordSys:function(t){var e=t.getData(),n=[];e.each(function(t){var i=e.getItemLayout(t);!i||isNaN(i.x)||isNaN(i.y)||n.push([+i.x,+i.y])});var i=[],r=[];Po(n,i,r),r[0]-i[0]==0&&(r[0]+=1,i[0]-=1),r[1]-i[1]==0&&(r[1]+=1,i[1]-=1);var o=t.coordinateSystem=new Ty;o.zoomLimit=t.get("scaleLimit"),o.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1]),o.setCenter(t.get("center")),o.setZoom(t.get("zoom")),this.group.attr({position:o.position,scale:o.scale}),this._viewCoordSys=o},_updateController:function(t,e,n){var i=this._controller,r=this._controllerHost,o=this.group;i.setPointerChecker(function(e,i,r){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(i,r)&&!vy(e,n,t)}),i.enable(t.get("roam")),r.zoomLimit=t.get("scaleLimit"),r.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",function(e){py(r,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})},this).on("zoom",function(e){gy(r,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),this._updateNodeAndLinkScale(t)},this)},_updateNodeAndLinkScale:function(t){var e=t.getData(),n=this._getNodeGlobalScale(t),i=[n,n];e.eachItemGraphicEl(function(t,e){t.attr("scale",i)})},_getNodeGlobalScale:function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scale,r=i&&i[0]||1;return((e.getZoom()-1)*n+1)/r},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}}),ef({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(e){var n=t.dataIndex,i=e.getData().tree.getNodeByDataIndex(n);i.isExpand=!i.isExpand})}),ef({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(e){var n=Iy(e.coordinateSystem,t);e.setCenter&&e.setCenter(n.center),e.setZoom&&e.setZoom(n.zoom)})}),of(am("tree","circle")),rf(function(t,e){t.eachSeriesByType("tree",function(t){!function(t,e){var n=function(t,e){return su(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=n;var i=t.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=qy(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(r=n.width,o=n.height,a=qy());var s=t.getData().tree.root,l=s.children[0];if(l){!function(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e,n,i=[t];e=i.pop();)if(n=e.children,e.isExpand&&n.length)for(var r=n.length-1;r>=0;r--){var o=n[r];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},i.push(o)}}(s),function(t,e,n){for(var i,r=[t],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;sh.getLayout().x&&(h=t),t.depth>c.depth&&(c=t)});var d=u===h?1:a(u,h)/2,f=d-u.getLayout().x,p=0,g=0,m=0,v=0;if("radial"===i)p=r/(h.getLayout().x+d+f),g=o/(c.depth-1||1),sx(l,function(t){m=(t.getLayout().x+f)*p,v=(t.depth-1)*g;var e=Ky(m,v);t.setLayout({x:e.x,y:e.y,rawX:m,rawY:v},!0)});else{var y=t.getOrient();"RL"===y||"LR"===y?(g=o/(h.getLayout().x+d+f),p=r/(c.depth-1||1),sx(l,function(t){v=(t.getLayout().x+f)*g,m="LR"===y?(t.depth-1)*p:r-(t.depth-1)*p,t.setLayout({x:m,y:v},!0)})):"TB"!==y&&"BT"!==y||(p=r/(h.getLayout().x+d+f),g=o/(c.depth-1||1),sx(l,function(t){m=(t.getLayout().x+f)*p,v="TB"===y?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:m,y:v},!0)}))}}}(t,e)})}),Vh.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],_viewRoot:null,defaultOption:{progressive:0,hoverLayerThreshold:1/0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(t,e){var n={name:t.name,children:t.data};!function t(e){var n=0;B(e.children,function(e){t(e);var i=e.value;Y(i)&&(i=i[0]),n+=i});var i=e.value;Y(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=n),i<0&&(i=0),Y(e.value)?e.value[0]=i:e.value=i}(n);var i=t.levels||[];i=t.levels=function(t,e){var n,i=e.get("color");if(i)return B(t=t||[],function(t){var e=new pl(t),i=e.get("color");(e.get("itemStyle.color")||i&&"none"!==i)&&(n=!0)}),n||((t[0]||(t[0]={})).color=i.slice()),t}(i,e);var r={};return r.levels=i,Zy.createTree(n,this,r).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var e=this.getData(),n=this.getRawValue(t),i=Y(n)?Vl(n[0]):Vl(n);return jl(e.getName(t)+": "+i)},getDataParams:function(t){var e=Vh.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=cx(n,this),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},C(this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=ht(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});var dx=5;function fx(t){this.group=new On,t.add(this.group)}function px(t,e,n,i,r,o){var a=[[r?t:t-dx,e],[t+n,e],[t+n,e+i],[r?t:t-dx,e+i]];return!o&&a.splice(2,0,[t+n+dx,e+i/2]),!r&&a.push([t,e+i/2]),a}function gx(t,e,n){t.eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&cx(n,e)}}fx.prototype={constructor:fx,render:function(t,e,n,i){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=a.getModel("textStyle"),l={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,l,s),this._renderContent(t,l,a,s,i),lu(o,l.pos,l.box)}},_prepare:function(t,e,n){for(var i=t;i;i=i.parentNode){var r=i.getModel().get("name"),o=n.getTextRect(r),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:i,text:r,width:a})}},_renderContent:function(t,e,n,i,r){for(var o,a,s,l,u,h,c,d,f,p=0,g=e.emptyItemWidth,m=t.get("breadcrumb.height"),v=(o=e.pos,a=e.box,l=a.width,u=a.height,h=bl(o.x,l),c=bl(o.y,u),d=bl(o.x2,l),f=bl(o.y2,u),(isNaN(h)||isNaN(parseFloat(o.x)))&&(h=0),(isNaN(d)||isNaN(parseFloat(o.x2)))&&(d=l),(isNaN(c)||isNaN(parseFloat(o.y)))&&(c=0),(isNaN(f)||isNaN(parseFloat(o.y2)))&&(f=u),s=Gl(s||0),{width:Math.max(d-h-s[1]-s[3],0),height:Math.max(f-c-s[0]-s[2],0)}),y=e.totalWidth,x=e.renderList,_=x.length-1;_>=0;_--){var b=x[_],w=b.node,M=b.width,S=b.text;y>v.width&&(y-=M-g,M=g,S=null);var I=new Za({shape:{points:px(p,0,M,m,_===x.length-1,0===_)},style:L(n.getItemStyle(),{lineJoin:"bevel",text:S,textFill:i.getTextColor(),textFont:i.getFont()}),z:10,onclick:j(r,w)});this.group.add(I),gx(I,t,w),p+=M+8}},remove:function(){this.group.removeAll()}};var mx=H,vx=On,yx=$a,xx=B,_x=["label"],bx=["emphasis","label"],Mx=["upperLabel"],Sx=["emphasis","upperLabel"],Ix=10,Ax=1,Dx=2,Tx=$r([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Cx=function(t){var e=Tx(t);return e.stroke=e.fill=e.lineWidth=null,e};function Lx(t,e,n,i,r,o,a,s,l,u){if(a){var h=a.getLayout();if(h&&h.isInView){var c=h.width,d=h.height,f=h.borderWidth,p=h.invisible,g=a.getRawIndex(),m=s&&s.getRawIndex(),v=a.viewChildren,y=h.upperHeight,x=v&&v.length,_=a.getModel("itemStyle"),b=a.getModel("emphasis.itemStyle"),w=T("nodeGroup",vx);if(w){if(l.add(w),w.attr("position",[h.x||0,h.y||0]),w.__tmNodeWidth=c,w.__tmNodeHeight=d,h.isAboveViewRoot)return w;var M=T("background",yx,u,Ax);if(M&&function(e,n,i){n.dataIndex=a.dataIndex,n.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:c,height:d});var r=a.getVisual("borderColor",!0),o=b.get("borderColor");I(n,function(){var t=Cx(_);t.fill=r;var e=Tx(b);if(e.fill=o,i){var a=c-2*f;D(t,e,r,a,y,{x:f,y:0,width:a,height:y})}else t.text=e.text=null;n.setStyle(t),Fs(n,e)}),e.add(n)}(w,M,x&&h.upperHeight),!x){var S=T("content",yx,u,Dx);S&&function(e,n){n.dataIndex=a.dataIndex,n.seriesIndex=t.seriesIndex;var i=Math.max(c-2*f,0),r=Math.max(d-2*f,0);n.culling=!0,n.setShape({x:f,y:f,width:i,height:r});var o=a.getVisual("color",!0);I(n,function(){var t=Cx(_);t.fill=o;var e=Tx(b);D(t,e,o,i,r),n.setStyle(t),Fs(n,e)}),e.add(n)}(w,S)}return w}}}function I(t,e){p?!t.invisible&&o.push(t):(e(),t.__tmWillVisible||(t.invisible=!1))}function D(e,n,i,r,o,s){var l=a.getModel(),u=$(t.getFormattedLabel(a.dataIndex,"normal",null,null,s?"upperLabel":"label"),l.get("name"));if(!s&&h.isLeafRoot){var c=t.get("drillDownIcon",!0);u=c?c+" "+u:u}var d=l.getModel(s?Mx:_x),f=l.getModel(s?Sx:bx),p=d.getShallow("show");js(e,n,d,f,{defaultText:p?u:null,autoColor:i,isRectText:!0}),s&&(e.textRect=A(s)),e.truncate=p&&d.get("ellipsis")?{outerWidth:r,outerHeight:o,minChar:2}:null}function T(t,o,s,l){var u=null!=m&&n[t][m],h=r[t];return u?(n[t][m]=null,function(t,e,n){(t[g]={}).old="nodeGroup"===n?e.position.slice():C({},e.shape)}(h,u,t)):p||((u=new o({z:kx(s,l)})).__tmDepth=s,u.__tmStorageName=t,function(t,e,n){var o=t[g]={},s=a.parentNode;if(s&&(!i||"drillDown"===i.direction)){var l=0,u=0,h=r.background[s.getRawIndex()];!i&&h&&h.old&&(l=h.old.width,u=h.old.height),o.old="nodeGroup"===n?[0,u]:{x:l,y:u,width:0,height:0}}o.fadein="nodeGroup"!==n}(h,0,t)),e[t][g]=u}}function kx(t,e){var n=t*Ix+e;return(n-1)/n}cf({type:"treemap",init:function(t,e){this._containerGroup,this._storage={nodeGroup:[],background:[],content:[]},this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(t,e,n,i){if(!(N(e.findComponents({mainType:"series",subType:"treemap",query:i}),t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var r=lx(i,["treemapZoomToNode","treemapRootToNode"],t),o=i&&i.type,a=t.layoutInfo,s=!this._oldTree,l=this._storage,u="treemapRootToNode"===o&&r&&l?{rootNodeGroup:l.nodeGroup[r.node.getRawIndex()],direction:i.direction}:null,h=this._giveContainerGroup(a),c=this._doRender(h,t,u);s||o&&"treemapZoomToNode"!==o&&"treemapRootToNode"!==o?c.renderFinally():this._doAnimation(h,c,t,u),this._resetController(n),this._renderBreadcrumb(t,n,r)}},_giveContainerGroup:function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new vx,this._initEvents(e),this.group.add(e)),e.attr("position",[t.x,t.y]),e},_doRender:function(t,e,n){var i=e.getData().tree,r=this._oldTree,o={nodeGroup:[],background:[],content:[]},a={nodeGroup:[],background:[],content:[]},s=this._storage,l=[],u=j(Lx,e,a,s,n,o,l);!function t(e,n,i,r,o){function a(t){return t.getId()}function s(a,s){var l=null!=a?e[a]:null,h=null!=s?n[s]:null,c=u(l,h,i,o);c&&t(l&&l.viewChildren||[],h&&h.viewChildren||[],c,r,o+1)}r?(n=e,xx(e,function(t,e){!t.isRemoved()&&s(e,e)})):new ff(n,e,a,a).add(s).update(s).remove(j(s,null)).execute()}(i.root?[i.root]:[],r&&r.root?[r.root]:[],t,i===r||!r,0);var h=function(t){var e={nodeGroup:[],background:[],content:[]};return t&&xx(t,function(t,n){var i=e[n];xx(t,function(t){t&&(i.push(t),t.__tmWillDelete=1)})}),e}(s);return this._oldTree=i,this._storage=a,{lastsForAnimation:o,willDeleteEls:h,renderFinally:function(){xx(h,function(t){xx(t,function(t){t.parent&&t.parent.remove(t)})}),xx(l,function(t){t.invisible=!0,t.dirty()})}}},_doAnimation:function(t,e,n,i){if(n.get("animation")){var r=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=function(){var t,e=[],n={};return{add:function(t,i,r,o,a){return U(o)&&(a=o,o=0),!n[t.id]&&(n[t.id]=1,e.push({el:t,target:i,time:r,delay:o,easing:a}),!0)},done:function(e){return t=e,this},start:function(){for(var i=e.length,r=0,o=e.length;r3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},_onZoom:function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new Pn(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var s=se();ce(s,s,[-e,-n]),fe(s,s,[t.scale,t.scale]),ce(s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},_initEvents:function(t){t.on("click",function(t){if("ready"===this._state){var e=this.seriesModel.get("nodeClick",!0);if(e){var n=this.findTarget(t.offsetX,t.offsetY);if(n){var i=n.node;if(i.getLayout().isLeafRoot)this._rootToNode(n);else if("zoomToNode"===e)this._zoomToNode(n);else if("link"===e){var r=i.hostTree.data.getItemModel(i.dataIndex),o=r.get("link",!0),a=r.get("target",!0)||"blank";o&&window.open(o,a)}}}}},this)},_renderBreadcrumb:function(t,e,n){n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new fx(this.group))).render(t,e,n.node,mx(function(e){"animating"!==this._state&&(hx(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))},this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}},this),n}});for(var Px=function(){},Ox=["treemapZoomToNode","treemapRender","treemapMove"],Nx=0;Nx=0;o--)null==n[o]&&(delete i[e[o]],e.pop())}(i):Fx(i,!0):(rt("linear"!==e||i.dataExtent),Fx(i))};Bx.prototype={constructor:Bx,mapValueToVisual:function(t){var e=this._normalizeData(t);return this._doMap(e,t)},getNormalizer:function(){return H(this._normalizeData,this)}};var Vx=Bx.visualHandlers={color:{applyVisual:Hx("color"),getColorMapper:function(){var t=this.option;return H("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),jx.call(this,t)}:function(e,n,i){var r=!!i;return!n&&(e=this._normalizeData(e)),i=Xe(e,t.parsedVisual,i),r?i:tn(i,"rgba")},this)},_doMap:{linear:function(t){return tn(Xe(t,this.option.parsedVisual),"rgba")},category:jx,piecewise:function(t,e){var n=Ux.call(this,e);return null==n&&(n=tn(Xe(t,this.option.parsedVisual),"rgba")),n},fixed:Yx}},colorHue:Gx(function(t,e){return Je(t,e)}),colorSaturation:Gx(function(t,e){return Je(t,null,e)}),colorLightness:Gx(function(t,e){return Je(t,null,null,e)}),colorAlpha:Gx(function(t,e){return $e(t,e)}),opacity:{applyVisual:Hx("opacity"),_doMap:Zx([0,1])},liftZ:{applyVisual:Hx("liftZ"),_doMap:{linear:Yx,category:Yx,piecewise:Yx,fixed:Yx}},symbol:{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);if(U(i))n("symbol",i);else if(zx(i))for(var r in i)i.hasOwnProperty(r)&&n(r,i[r])},_doMap:{linear:Wx,category:jx,piecewise:function(t,e){var n=Ux.call(this,e);return null==n&&(n=Wx.call(this,t)),n},fixed:Yx}},symbolSize:{applyVisual:Hx("symbolSize"),_doMap:Zx([0,1])}};function Fx(t,e){var n=t.visual,i=[];X(n)?Ex(n,function(t){i.push(t)}):null!=n&&i.push(n),e||1!==i.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(i[1]=i[0]),Xx(t,i)}function Gx(t){return{applyVisual:function(e,n,i){e=this.mapValueToVisual(e),i("color",t(n("color"),e))},_doMap:Zx([0,1])}}function Wx(t){var e=this.option.visual;return e[Math.round(_l(t,[0,1],[0,e.length-1],!0))]||{}}function Hx(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function jx(t){var e=this.option.visual;return e[this.option.loop&&t!==Rx?t%e.length:t]}function Yx(){return this.option.visual[0]}function Zx(t){return{linear:function(e){return _l(e,t,this.option.visual,!0)},category:jx,piecewise:function(e,n){var i=Ux.call(this,n);return null==i&&(i=_l(e,t,this.option.visual,!0)),i},fixed:Yx}}function Ux(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=n[Bx.findPieceIndex(t,n)];if(i&&i.visual)return i.visual[this.type]}}function Xx(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=V(e,function(t){return je(t)})),e}var qx={linear:function(t){return _l(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=Bx.findPieceIndex(t,e,!0);if(null!=n)return _l(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?Rx:e},fixed:dt};function Kx(t,e,n){return t?e<=n:eu[1]&&(u[1]=l);var h=e.get("colorMappingBy"),c={type:a.name,dataExtent:u,visual:a.range};"color"!==c.type||"index"!==h&&"id"!==h?c.mappingMethod="linear":(c.mappingMethod="category",c.loop=!0);var d=new Bx(c);return d.__drColorMappingBy=h,d}}}(0,s,l,0,d,g);B(g,function(e,n){if(e.depth>=o.length||e===o[e.depth]){var l=function(t,e,n,i,r,o){var a=C({},e);if(r){var s=r.type,l="color"===s&&r.__drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}(s,d,e,n,m,a);t(e,l,i,r,o,a)}})}else u=t_(d),e.setVisual("color",u)}}(o,{},V(r.levelModels,function(t){return t?t.get(Jx):null}),a,t.getViewRoot().getAncestors(),t)}};function t_(t){var e=e_(t,"color");if(e){var n=e_(t,"colorAlpha"),i=e_(t,"colorSaturation");return i&&(e=Je(e,null,null,i)),n&&(e=$e(e,n)),e}}function e_(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function n_(t,e){var n=t.get(e);return Qx(n)&&n.length?{name:e,range:n}:null}var i_=Math.max,r_=Math.min,o_=$,a_=B,s_=["itemStyle","borderWidth"],l_=["itemStyle","gapWidth"],u_=["upperLabel","show"],h_=["upperLabel","height"],c_={seriesType:"treemap",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,s=su(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=bl(o_(s.width,l[0]),r),h=bl(o_(s.height,l[1]),o),c=i&&i.type,d=lx(i,["treemapZoomToNode","treemapRootToNode"],t),f="treemapRender"===c||"treemapMove"===c?i.rootRect:null,p=t.getViewRoot(),g=ux(p);if("treemapMove"!==c){var m="treemapZoomToNode"===c?function(t,e,n,i,r){var o,a=(e||{}).node,s=[i,r];if(!a||a===n)return s;for(var l=i*r,u=l*t.option.zoomToNodeRatio;o=a.parentNode;){for(var h=0,c=o.children,d=0,f=c.length;dTl&&(u=Tl),a=o}us[1]&&(s[1]=e)})}else s=[NaN,NaN];return{sum:i,dataExtent:s}}(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,n,i,r){if(!i)return n;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*er&&(r=i));var l=t.area*t.area,u=e*e*n;return l?i_(u*r/l,l/(u*o)):1/0}function f_(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],h=e?t.area/e:0;(r||h>n[l[a]])&&(h=n[l[a]]);for(var c=0,d=t.length;c=0&&t.call(e,n[r],r)},v_.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},v_.breadthFirstTraverse=function(t,e,n,i){if(y_.isInstance(e)||(e=this._nodesMap[g_(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0}),r=0,o=i.length;r=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n,i){return this[t][e].getItemVisual(this.dataIndex,n,i)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};z(y_,__("hostGraph","data")),z(x_,__("hostGraph","edgeData")),m_.Node=y_,m_.Edge=x_,qr(y_),qr(x_);var b_=function(t,e,n,i,r){for(var o=new m_(i),a=0;a "+d)),u++)}var f,p=n.get("coordinateSystem");if("cartesian2d"===p||"polar"===p)f=Uf(t,n);else{var g=Uu.get(p),m=g&&"view"!==g.type&&g.dimensions||[];N(m,"value")<0&&m.concat(["value"]);var v=Hf(t,{coordDimensions:m});(f=new Tf(v,n)).initData(t)}var y=new Tf(["value"],n);return y.initData(l,s),r&&r(f,y),By({mainData:f,struct:o,structAttr:"graph",datas:{node:f,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o},w_=hf({type:"series.graph",init:function(t){w_.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){w_.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){w_.superApply(this,"mergeDefaultAndTheme",arguments),Lr(t,["edgeLabel"],["show"])},getInitialData:function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=this;if(i&&n)return b_(i,n,this,!0,function(t,n){t.wrapMethod("getItemModel",function(t){var e=r._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var i=r.getModel("edgeLabel"),o=new pl({label:i.option},i.parentModel,e),a=r.getModel("emphasis.edgeLabel"),s=new pl({emphasis:{label:a.option}},a.parentModel,e);function l(t){return(t=this.parsePath(t))&&"label"===t[0]?o:t&&"emphasis"===t[0]&&"label"===t[1]?s:this.parentModel}n.wrapMethod("getItemModel",function(t){return t.customizeGetParent(l),t})}).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),l=jl(l.join(" > ")),r.value&&(l+=" : "+jl(r.value)),l}return w_.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=V(this.option.categories||[],function(t){return null!=t.value?t:C({value:0},t)}),e=new Tf(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t,!0)})},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return w_.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle"},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),M_=es.prototype,S_=rs.prototype;function I_(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var A_=_s({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){this[I_(e)?"_buildPathLine":"_buildPathCurve"](t,e)},_buildPathLine:M_.buildPath,_buildPathCurve:S_.buildPath,pointAt:function(t){return this[I_(this.shape)?"_pointAtLine":"_pointAtCurve"](t)},_pointAtLine:M_.pointAt,_pointAtCurve:S_.pointAt,tangentAt:function(t){var e=this.shape,n=I_(e)?[e.x2-e.x1,e.y2-e.y1]:this._tangentAtCurve(t);return Dt(n,n)},_tangentAtCurve:S_.tangentAt}),D_=["fromSymbol","toSymbol"];function T_(t){return"_"+t+"Type"}function C_(t,e,n){var i=e.getItemVisual(n,"color"),r=e.getItemVisual(n,t),o=e.getItemVisual(n,t+"Size");if(r&&"none"!==r){Y(o)||(o=[o,o]);var a=Jp(r,-o[0]/2,-o[1]/2,o[0],o[1],i);return a.name=t,a}}function L_(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;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}function k_(t,e,n){On.call(this),this._createLine(t,e,n)}var P_=k_.prototype;function O_(t){this._ctor=t||k_,this.group=new On}P_.beforeUpdate=function(){var t=this.childOfName("fromSymbol"),e=this.childOfName("toSymbol"),n=this.childOfName("label");if(t||e||!n.ignore){for(var i=1,r=this.parent;r;)r.scale&&(i/=r.scale[0]),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=bt([],l,s);if(Dt(u,u),t){t.attr("position",s);var h=o.tangentAt(0);t.attr("rotation",Math.PI/2-Math.atan2(h[1],h[0])),t.attr("scale",[i*a,i*a])}if(e&&(e.attr("position",l),h=o.tangentAt(1),e.attr("rotation",-Math.PI/2-Math.atan2(h[1],h[0])),e.attr("scale",[i*a,i*a])),!n.ignore){var c,d,f;n.attr("position",l);var p=5*i;if("end"===n.__position)c=[u[0]*p+l[0],u[1]*p+l[1]],d=u[0]>.8?"left":u[0]<-.8?"right":"center",f=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";else if("middle"===n.__position){var g=a/2,m=[(h=o.tangentAt(g))[1],-h[0]],v=o.pointAt(g);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]),c=[v[0]+m[0]*p,v[1]+m[1]*p],d="center",f="bottom";var y=-Math.atan2(h[1],h[0]);l[0].8?"right":u[0]<-.8?"left":"center",f=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";n.attr({style:{textVerticalAlign:n.__verticalAlign||f,textAlign:n.__textAlign||d},position:c,scale:[i,i]})}}}},P_._createLine=function(t,e,n){var i=t.hostModel,r=function(t){var e=new A_({name:"line",subPixelOptimize:!0});return L_(e.shape,t),e}(t.getItemLayout(e));r.shape.percent=0,tl(r,{shape:{percent:1}},i,e),this.add(r);var o=new za({name:"label"});this.add(o),B(D_,function(n){var i=C_(n,t,e);this.add(i),this[T_(n)]=t.getItemVisual(e,n)},this),this._updateCommonStl(t,e,n)},P_.updateData=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=t.getItemLayout(e),a={shape:{}};L_(a.shape,o),$s(r,a,i,e),B(D_,function(n){var i=t.getItemVisual(e,n),r=T_(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=C_(n,t,e);this.add(o)}this[r]=i},this),this._updateCommonStl(t,e,n)},P_._updateCommonStl=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=n&&n.lineStyle,a=n&&n.hoverLineStyle,s=n&&n.labelModel,l=n&&n.hoverLabelModel;if(!n||t.hasItemOption){var u=t.getItemModel(e);o=u.getModel("lineStyle").getLineStyle(),a=u.getModel("emphasis.lineStyle").getLineStyle(),s=u.getModel("label"),l=u.getModel("emphasis.label")}var h=t.getItemVisual(e,"color"),c=et(t.getItemVisual(e,"opacity"),o.opacity,1);r.useStyle(L({strokeNoScale:!0,fill:"none",stroke:h,opacity:c},o)),r.hoverStyle=a,B(D_,function(t){var e=this.childOfName(t);e&&(e.setColor(h),e.setStyle({opacity:c}))},this);var d,f,p=s.getShallow("show"),g=l.getShallow("show"),m=this.childOfName("label");if((p||g)&&(d=h||"#000",null==(f=i.getFormattedLabel(e,"normal",t.dataType)))){var v=i.getRawValue(e);f=null==v?t.getName(e):isFinite(v)?wl(v):v}var y=p?f:null,x=g?tt(i.getFormattedLabel(e,"emphasis",t.dataType),f):null,_=m.style;null==y&&null==x||(Ys(m.style,s,{text:y},{autoColor:d}),m.__textAlign=_.textAlign,m.__verticalAlign=_.textVerticalAlign,m.__position=s.get("position")||"middle"),m.hoverStyle=null!=x?{text:x,textFill:l.getTextColor(!0),fontStyle:l.getShallow("fontStyle"),fontWeight:l.getShallow("fontWeight"),fontSize:l.getShallow("fontSize"),fontFamily:l.getShallow("fontFamily")}:{text:null},m.ignore=!p&&!g,Fs(this)},P_.highlight=function(){this.trigger("emphasis")},P_.downplay=function(){this.trigger("normal")},P_.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},P_.setLinePoints=function(t){var e=this.childOfName("line");L_(e.shape,t),e.dirty()},E(k_,On);var N_=O_.prototype;function E_(t){var e=t.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}function z_(t){return isNaN(t[0])||isNaN(t[1])}function R_(t){return!z_(t[0])&&!z_(t[1])}N_.isPersistent=function(){return!0},N_.updateData=function(t){var e=this,n=e.group,i=e._lineData;e._lineData=t,i||n.removeAll();var r=E_(t);t.diff(i).add(function(n){!function(t,e,n,i){if(R_(e.getItemLayout(n))){var r=new t._ctor(e,n,i);e.setItemGraphicEl(n,r),t.group.add(r)}}(e,t,n,r)}).update(function(n,o){!function(t,e,n,i,r,o){var a=e.getItemGraphicEl(i);R_(n.getItemLayout(r))?(a?a.updateData(n,r,o):a=new t._ctor(n,r,o),n.setItemGraphicEl(r,a),t.group.add(a)):t.group.remove(a)}(e,i,t,o,n,r)}).remove(function(t){n.remove(i.getItemGraphicEl(t))}).execute()},N_.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},N_.incrementalPrepareUpdate=function(t){this._seriesScope=E_(t),this._lineData=null,this.group.removeAll()},N_.incrementalUpdate=function(t,e){function n(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}for(var i=t.start;i=0?i+=u:i-=u:p>=0?i-=u:i+=u}return i}var Y_=function(t,e){var n=[],i=Mo,r=[[],[],[]],o=[[],[]],a=[];function s(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),e}e/=2,t.eachEdge(function(t,l){var u=t.getLayout(),h=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");u.__original||(u.__original=[vt(u[0]),vt(u[1])],u[2]&&u.__original.push(vt(u[2])));var d=u.__original;if(null!=u[2]){if(mt(r[0],d[0]),mt(r[1],d[2]),mt(r[2],d[1]),h&&"none"!==h){var f=s(t.node1),p=j_(r,d[0],f*e);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}c&&"none"!==c&&(f=s(t.node2),p=j_(r,d[1],f*e),i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]),mt(u[0],r[0]),mt(u[1],r[2]),mt(u[2],r[1])}else mt(o[0],d[0]),mt(o[1],d[1]),bt(a,o[1],o[0]),Dt(a,a),h&&"none"!==h&&(f=s(t.node1),_t(o[0],o[0],a,f*e)),c&&"none"!==c&&(f=s(t.node2),_t(o[1],o[1],a,-f*e)),mt(u[0],o[0]),mt(u[1],o[1])})},Z_=["itemStyle","opacity"],U_=["lineStyle","opacity"];function X_(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function q_(t,e,n){var i=t.getGraphicEl(),r=X_(t,e);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse(function(t){"group"!==t.type&&t.setStyle("opacity",r)})}function K_(t,e){var n=X_(t,e),i=t.getGraphicEl();i.highlight&&i.highlight(),i.traverse(function(t){"group"!==t.type&&t.setStyle("opacity",n)})}function Q_(t){return t instanceof Array||(t=[t,t]),t}function J_(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode(function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])}),$_(n)}}function $_(t){t.eachEdge(function(t){var e=t.getModel().get("lineStyle.curveness")||0,n=vt(t.node1.getLayout()),i=vt(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 tb(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=e.getBoundingRect(),i=t.getData(),r=i.graph,o=0,a=i.getSum("value"),s=2*Math.PI/(a||i.count()),l=n.width/2+n.x,u=n.height/2+n.y,h=Math.min(n.width,n.height)/2;r.eachNode(function(t){var e=t.getValue("value");o+=s*(a?e:1)/2,t.setLayout([h*Math.cos(o)+l,h*Math.sin(o)+u]),o+=s*(a?e:1)/2}),i.setLayout({cx:l,cy:u}),r.eachEdge(function(t){var e,n=t.getModel().get("lineStyle.curveness")||0,i=vt(t.node1.getLayout()),r=vt(t.node2.getLayout()),o=(i[0]+r[0])/2,a=(i[1]+r[1])/2;+n&&(e=[l*(n*=3)+o*(1-n),u*n+a*(1-n)]),t.setLayout([i,r,e])})}}cf({type:"graph",init:function(t,e){var n=new Og,i=new O_,r=this.group;this._controller=new oy(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},render:function(t,e,n){var i=t.coordinateSystem;this._model=t,this._nodeScaleRatio=t.get("nodeScaleRatio");var r=this._symbolDraw,o=this._lineDraw,a=this.group;if("view"===i.type){var s={position:i.position,scale:i.scale};this._firstRender?a.attr(s):$s(a,s,t)}Y_(t.getGraph(),this._getNodeGlobalScale(t));var l=t.getData();r.updateData(l);var u=t.getEdgeData();o.updateData(u),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var h=t.forceLayout,c=t.get("force.layoutAnimation");h&&this._startForceLayoutIteration(h,c),l.eachItemGraphicEl(function(e,i){var r=l.getItemModel(i);e.off("drag").off("dragend");var o=r.get("draggable");o&&e.on("drag",function(){h&&(h.warmUp(),!this._layouting&&this._startForceLayoutIteration(h,c),h.setFixed(i),l.setItemLayout(i,e.position))},this).on("dragend",function(){h&&h.setUnfixed(i)},this),e.setDraggable(o&&h),e.off("mouseover",e.__focusNodeAdjacency),e.off("mouseout",e.__unfocusNodeAdjacency),r.get("focusNodeAdjacency")&&(e.on("mouseover",e.__focusNodeAdjacency=function(){n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})}),e.on("mouseout",e.__unfocusNodeAdjacency=function(){n.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t.id})}))},this),l.graph.eachEdge(function(e){var i=e.getGraphicEl();i.off("mouseover",i.__focusNodeAdjacency),i.off("mouseout",i.__unfocusNodeAdjacency),e.getModel().get("focusNodeAdjacency")&&(i.on("mouseover",i.__focusNodeAdjacency=function(){n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex})}),i.on("mouseout",i.__unfocusNodeAdjacency=function(){n.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t.id})}))});var d="circular"===t.get("layout")&&t.get("circular.rotateLabel"),f=l.getLayout("cx"),p=l.getLayout("cy");l.eachItemGraphicEl(function(t,e){var n=l.getItemModel(e).get("label.rotate")||0,i=t.getSymbolPath();if(d){var r=l.getItemLayout(e),o=Math.atan2(r[1]-p,r[0]-f);o<0&&(o=2*Math.PI+o);var a=r[0]=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)}});function ib(t,e){return e&&("string"==typeof e?t=e.replace("{value}",null!=t?t:""):"function"==typeof e&&(t=e(t))),t}var rb=2*Math.PI,ob=(Jh.extend({type:"gauge",render:function(t,e,n){this.group.removeAll();var i=t.get("axisLine.lineStyle.color"),r=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r);return{cx:bl(n[0],e.getWidth()),cy:bl(n[1],e.getHeight()),r:bl(t.get("radius"),o/2)}}(t,n);this._renderMain(t,e,n,i,r)},dispose:function(){},_renderMain:function(t,e,n,i,r){for(var o=this.group,a=t.getModel("axisLine"),s=a.getModel("lineStyle"),l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,h=((g=-t.get("endAngle")/180*Math.PI)-u)%rb,c=u,d=s.get("width"),f=a.get("show"),p=0;f&&p=t&&(0===e?0:i[e-1][0]).4?"bottom":"middle",textAlign:D<-.4?"left":D>.4?"right":"center"},{autoColor:P}),silent:!0}))}if(g.get("show")&&A!==v){for(var O=0;O<=y;O++){D=Math.cos(b),T=Math.sin(b);var N=new es({shape:{x1:D*c+u,y1:T*c+h,x2:D*(c-_)+u,y2:T*(c-_)+h},silent:!0,style:I});"auto"===I.stroke&&N.setStyle({stroke:i((A+O/y)/v)}),l.add(N),b+=M}b-=M}else b+=w}},_renderPointer:function(t,e,n,i,r,o,a,s){var l=this.group,u=this._data;if(t.get("pointer.show")){var h=[+t.get("min"),+t.get("max")],c=[o,a],d=t.getData(),f=d.mapDimension("value");d.diff(u).add(function(e){var n=new nb({shape:{angle:o}});tl(n,{shape:{angle:_l(d.get(f,e),h,c,!0)}},t),l.add(n),d.setItemGraphicEl(e,n)}).update(function(e,n){var i=u.getItemGraphicEl(n);$s(i,{shape:{angle:_l(d.get(f,e),h,c,!0)}},t),l.add(i),d.setItemGraphicEl(e,i)}).remove(function(t){var e=u.getItemGraphicEl(t);l.remove(e)}).execute(),d.eachItemGraphicEl(function(t,e){var n=d.getItemModel(e),o=n.getModel("pointer");t.setShape({x:r.cx,y:r.cy,width:bl(o.get("width"),r.r),r:bl(o.get("length"),r.r)}),t.useStyle(n.getModel("itemStyle").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",i(_l(d.get(f,e),h,[0,1],!0))),Fs(t,n.getModel("emphasis.itemStyle").getItemStyle())}),this._data=d}else u&&u.eachItemGraphicEl(function(t){l.remove(t)})},_renderTitle:function(t,e,n,i,r){var o=t.getData(),a=o.mapDimension("value"),s=t.getModel("title");if(s.get("show")){var l=s.get("offsetCenter"),u=r.cx+bl(l[0],r.r),h=r.cy+bl(l[1],r.r),c=+t.get("min"),d=+t.get("max"),f=i(_l(t.getData().get(a,0),[c,d],[0,1],!0));this.group.add(new za({silent:!0,style:Ys({},s,{x:u,y:h,text:o.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:f,forceRich:!0})}))}},_renderDetail:function(t,e,n,i,r){var o=t.getModel("detail"),a=+t.get("min"),s=+t.get("max");if(o.get("show")){var l=o.get("offsetCenter"),u=r.cx+bl(l[0],r.r),h=r.cy+bl(l[1],r.r),c=bl(o.get("width"),r.r),d=bl(o.get("height"),r.r),f=t.getData(),p=f.get(f.mapDimension("value"),0),g=i(_l(p,[a,s],[0,1],!0));this.group.add(new za({silent:!0,style:Ys({},o,{x:u,y:h,text:ib(p,o.get("formatter")),textWidth:isNaN(c)?null:c,textHeight:isNaN(d)?null:d,textAlign:"center",textVerticalAlign:"middle"},{autoColor:g,forceRich:!0})}))}}}),hf({type:"series.funnel",init:function(t){ob.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this._defaultLabelLine(t)},getInitialData:function(t,e){return fv(this,["value"])},_defaultLabelLine:function(t){Lr(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},getDataParams:function(t){var e=this.getData(),n=ob.superCall(this,"getDataParams",t),i=e.mapDimension("value"),r=e.getSum(i);return n.percent=r?+(e.get(i,t)/r*100).toFixed(2):0,n.$vars.push("percent"),n},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}));function ab(t,e){On.call(this);var n=new Za,i=new Ua,r=new za;this.add(n),this.add(i),this.add(r),this.highDownOnUpdate=function(t,e){"emphasis"===e?(i.ignore=i.hoverIgnore,r.ignore=r.hoverIgnore):(i.ignore=i.normalIgnore,r.ignore=r.normalIgnore)},this.updateData(t,e,!0)}var sb=ab.prototype,lb=["itemStyle","opacity"];sb.updateData=function(t,e,n){var i=this.childAt(0),r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=t.getItemModel(e).get(lb);s=null==s?1:s,i.useStyle({}),n?(i.setShape({points:a.points}),i.setStyle({opacity:0}),tl(i,{style:{opacity:s}},r,e)):$s(i,{style:{opacity:s},shape:{points:a.points}},r,e);var l=o.getModel("itemStyle"),u=t.getItemVisual(e,"color");i.setStyle(L({lineJoin:"round",fill:u},l.getItemStyle(["opacity"]))),i.hoverStyle=l.getModel("emphasis").getItemStyle(),this._updateLabel(t,e),Fs(this)},sb._updateLabel=function(t,e){var n=this.childAt(1),i=this.childAt(2),r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e).label,s=t.getItemVisual(e,"color");$s(n,{shape:{points:a.linePoints||a.linePoints}},r,e),$s(i,{style:{x:a.x,y:a.y}},r,e),i.attr({rotation:a.rotation,origin:[a.x,a.y],z2:10});var l=o.getModel("label"),u=o.getModel("emphasis.label"),h=o.getModel("labelLine"),c=o.getModel("emphasis.labelLine");s=t.getItemVisual(e,"color"),js(i.style,i.hoverStyle={},l,u,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:s,useInsideStyle:!!a.inside},{textAlign:a.textAlign,textVerticalAlign:a.verticalAlign}),i.ignore=i.normalIgnore=!l.get("show"),i.hoverIgnore=!u.get("show"),n.ignore=n.normalIgnore=!h.get("show"),n.hoverIgnore=!c.get("show"),n.setStyle({stroke:s}),n.setStyle(h.getModel("lineStyle").getLineStyle()),n.hoverStyle=c.getModel("lineStyle").getLineStyle()},E(ab,On),Jh.extend({type:"funnel",render:function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add(function(t){var e=new ab(i,t);i.setItemGraphicEl(t,e),o.add(e)}).update(function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)}).remove(function(t){var e=r.getItemGraphicEl(t);o.remove(e)}).execute(),this._data=i},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),of(bv("funnel")),rf(function(t,e,n){t.eachSeriesByType("funnel",function(t){var n=t.getData(),i=n.mapDimension("value"),r=t.get("sort"),o=function(t,e){return su(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),a=function(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,function(t){return t}),r=[],o="ascending"===e,a=0,s=t.count();ao&&(e[1-i]=e[i]+c.sign*o),e};function cb(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function db(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var fb=B,pb=Math.min,gb=Math.max,mb=Math.floor,vb=Math.ceil,yb=wl,xb=Math.PI;function _b(t,e,n){this._axesMap=ht(),this._axesLayout={},this.dimensions=t.dimensions,this._rect,this._model=t,this._init(t,e,n)}function bb(t,e){return pb(gb(t,e[0]),e[1])}function wb(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function Mb(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,h=!1;return t=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var i=n.getData();fb(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),zp(e.scale,e.model)},this)}},this)},resize:function(t,e){this._rect=su(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,h=bb(e.get("axisExpandWidth"),l),c=bb(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>c&&c>1&&h>0&&s>0,f=e.get("axisExpandWindow");f?(t=bb(f[1]-f[0],l),f[1]=f[0]+t):(t=bb(h*(c-1),l),(f=[h*(e.get("axisExpandCenter")||mb(u/2))-t/2])[1]=f[0]+t);var p=(s-t)/(u-c);p<3&&(p=0);var g=[mb(yb(f[0]/h,1))+1,vb(yb(f[1]/h,1))-1],m=p/h*f[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:d,axisExpandWidth:h,axisCollapseWidth:p,axisExpandWindow:f,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:m}},_layoutAxes:function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each(function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])}),fb(n,function(e,n){var o=(i.axisExpandable?Mb:wb)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:xb/2,vertical:0},l=[a[r].x+t.x,a[r].y+t.y],u=s[r],h=se();de(h,h,u),ce(h,h,l),this._axesLayout[e]={position:l,rotation:u,transform:h,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(t){return this._axesMap.get(t)},dataToPoint:function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},eachActiveState:function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];B(o,function(e){a.push(t.mapDimension(e)),s.push(r.get(e).model)});for(var l=this.hasAxisBrushed(),u=n;ur*(1-h[0])?(l="jump",a=s-r*(1-h[2])):(a=s-r*h[1])>=0&&(a=s-r*(1-h[1]))<=0&&(a=0),(a*=e.axisExpandWidth/u)?hb(a,i,o,"all"):l="none"):(r=i[1]-i[0],(i=[gb(0,o[1]*s/r-r/2)])[1]=pb(o[1],i[0]+r),i[0]=i[1]-r),{axisExpandWindow:i,behavior:l}}},Uu.register("parallel",{create:function(t,e){var n=[];return t.eachComponent("parallel",function(i,r){var o=new _b(i,t,e);o.name="parallel_"+r,o.resize(i,e),i.coordinateSystem=o,o.model=i,n.push(o)}),t.eachSeries(function(e){if("parallel"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"parallel",index:e.get("parallelIndex"),id:e.get("parallelId")})[0];e.coordinateSystem=n.coordinateSystem}}),n}});var Sb=gu.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return $r([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=A(t);if(e)for(var n=e.length-1;n>=0;n--)Ml(e[n])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;i1?(n=n.split(""),("e"===(i=[t(e,n[0]),t(e,n[1])])[0]||"w"===i[0])&&i.reverse(),i.join("")):{left:"w",right:"e",top:"n",bottom:"s"}[i=il({w:"left",e:"right",n:"top",s:"bottom"}[n],function(t){return el(t.group)}(e))];var i}(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?zb[o]+"-resize":null})})}function tw(t,e,n,i,r,o,a){var s=e.childOfName(n);s&&s.setShape(function(t){var e=Tb(t[0][0],t[1][0]),n=Tb(t[0][1],t[1][1]),i=Cb(t[0][0],t[1][0]),r=Cb(t[0][1],t[1][1]);return{x:e,y:n,width:i-e,height:r-n}}(aw(t,e,[[i,r],[i+o,r+a]])))}function ew(t){return L({strokeNoScale:!0},t.brushStyle)}function nw(t,e,n,i){var r=[Tb(t,n),Tb(e,i)],o=[Cb(t,n),Cb(e,i)];return[[r[0],o[0]],[r[1],o[1]]]}function iw(t,e,n,i,r,o,a,s){var l=i.__brushOption,u=t(l.range),h=ow(n,o,a);Ab(r.split(""),function(t){var e=Eb[t];u[e[0]][e[1]]+=h[e[0]]}),l.range=e(nw(u[0][0],u[1][0],u[0][1],u[1][1])),jb(n,i),qb(n,{isEnd:!1})}function rw(t,e,n,i,r){var o=e.__brushOption.range,a=ow(t,n,i);Ab(o,function(t){t[0]+=a[0],t[1]+=a[1]}),jb(t,e),qb(t,{isEnd:!1})}function ow(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function aw(t,e,n){var i=Ub(t,e);return i&&!0!==i?i.clipPath(n,t._transform):A(n)}function sw(t){var e=t.event;e.preventDefault&&e.preventDefault()}function lw(t,e,n){return t.childOfName("main").contain(e,n)}function uw(t,e,n,i){var r,o=t._creatingCover,a=t._creatingPanel,s=t._brushOption;if(t._track.push(n.slice()),function(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],r=n[0]-i[0],o=n[1]-i[1];return Lb(r*r+o*o,.5)>Pb}(t)||o){if(a&&!o){"single"===s.brushMode&&Xb(t);var l=A(s);l.brushType=hw(l.brushType,a),l.panelId=!0===a?null:a.panelId,o=t._creatingCover=Fb(t,l),t._covers.push(o)}if(o){var u=fw[hw(t._brushType,a)];o.__brushOption.range=u.getCreatingRange(aw(t,o,t._track)),i&&(Gb(t,o),u.updateCommon(t,o)),Wb(t,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&Zb(t,e,n)&&Xb(t)&&(r={isEnd:i,removeOnClick:!0});return r}function hw(t,e){return"auto"===t?(c&&rt(e&&e.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),e.defaultBrushType):t}Vb.prototype={constructor:Vb,enableBrush:function(t){var e,n;return c&&rt(this._mounted),this._brushType&&(function(t,e,n){var i=ry(t);i[e]===n&&(i[e]=null)}(n=(e=this)._zr,Nb,e._uid),Ab(e._handlers,function(t,e){n.off(e,t)}),e._brushType=e._brushOption=null),t.brushType&&function(t,e){var n=t._zr;t._enableGlobalPan||function(t,e,n){ry(t)[e]=n}(n,Nb,t._uid),Ab(t._handlers,function(t,e){n.on(e,t)}),t._brushType=e.brushType,t._brushOption=D(A(Rb),e,!0)}(this,t),this},setPanels:function(t){if(t&&t.length){var e=this._panels={};B(t,function(t){e[t.panelId]=A(t)})}else this._panels=null;return this},mount:function(t){t=t||{},c&&(this._mounted=!0),this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({position:t.position||[0,0],rotation:t.rotation||0,scale:t.scale||[1,1]}),this._transform=e.getLocalTransform(),this},eachCover:function(t,e){Ab(this._covers,t,e)},updateCovers:function(t){c&&rt(this._mounted),t=V(t,function(t){return D(A(Rb),t,!0)});var e="\0-brush-index-",n=this._covers,i=this._covers=[],r=this,o=this._creatingCover;return new ff(n,t,function(t,e){return a(t.__brushOption,e)},a).add(s).update(s).remove(function(t){n[t]!==o&&r.group.remove(n[t])}).execute(),this;function a(t,n){return(null!=t.id?t.id:e+n)+"-"+t.brushType}function s(e,a){var s=t[e];if(null!=a&&n[a]===o)i[e]=n[a];else{var l=i[e]=null!=a?(n[a].__brushOption=s,n[a]):Gb(r,Fb(r,s));jb(r,l)}}},unmount:function(){if(!c||this._mounted)return this.enableBrush(!1),Xb(this),this._zr.remove(this.group),c&&(this._mounted=!1),this},dispose:function(){this.unmount(),this.off()}},z(Vb,Ft);var cw={mousedown:function(t){if(this._dragging)dw.call(this,t);else if(!t.target||!t.target.draggable){sw(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=Zb(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);if(function(t,e,n){if(t._brushType){var i=t._zr,r=t._covers,o=Zb(t,e,n);if(!t._dragging)for(var a=0;a5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&ww(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i&&null})}}};function ww(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}$d(function(t){!function(t){if(!t.parallel){var e=!1;B(t.series,function(t){t&&"parallel"===t.type&&(e=!0)}),e&&(t.parallel=[{}])}}(t),function(t){B(Cr(t.parallelAxis),function(e){if(X(e)){var n=e.parallelIndex||0,i=Cr(t.parallel)[n];i&&i.parallelAxisDefault&&D(e,i.parallelAxisDefault,!1)}})}(t)}),Vh.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(t,e){var n=this.getSource();return function(t,e){if(!t.encodeDefine){var n=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(n){var i=t.encodeDefine=ht();B(n.dimensions,function(t){var e=+t.replace("dim","");i.set(t,e)})}}}(n,this),Uf(n,this)},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,function(e,r){t===e&&i.push(n.getRawIndex(r))}),i},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});var Mw=.3;function Sw(t,e,n,i){for(var r,o=[],a=0;a=t.length)return i;var o=[],a=e[r++];return B(i,function(t,e){o.push({key:e,values:n(t,r)})}),a?o.sort(function(t,e){return a(t.key,e.key)}):o}(function e(n,i){if(i>=t.length)return n;for(var r=-1,o=n.length,a=t[i++],s={},l={};++r0&&(h=o.getLayout().x+a,o.setLayout({x:h},!0)),l=o.getLayout().x+o.getLayout().dx+e;if((a=l-e-i)>0)for(h=o.getLayout().x-a,o.setLayout({x:h},!0),l=h,s=u-2;s>=0;--s)(a=(o=t[s]).getLayout().x+o.getLayout().dx+e-l)>0&&(h=o.getLayout().x-a,o.setLayout({x:h},!0)),l=o.getLayout().x}else{var c;for(t.sort(function(t,e){return t.getLayout().y-e.getLayout().y}),s=0;s0&&(c=o.getLayout().y+a,o.setLayout({y:c},!0)),l=o.getLayout().y+o.getLayout().dy+e;if((a=l-e-n)>0)for(c=o.getLayout().y-a,o.setLayout({y:c},!0),l=c,s=u-2;s>=0;--s)(a=(o=t[s]).getLayout().y+o.getLayout().dy+e-l)>0&&(c=o.getLayout().y-a,o.setLayout({y:c},!0)),l=o.getLayout().y}})}function Bw(t,e,n){B(t.slice().reverse(),function(t){B(t,function(t){if(t.outEdges.length){var i=Hw(t.outEdges,Vw,n)/Hw(t.outEdges,Ww,n);if("vertical"===n){var r=t.getLayout().x+(i-Gw(t,n))*e;t.setLayout({x:r},!0)}else{var o=t.getLayout().y+(i-Gw(t,n))*e;t.setLayout({y:o},!0)}}})})}function Vw(t,e){return Gw(t.node2,e)*t.getValue()}function Fw(t,e){return Gw(t.node1,e)*t.getValue()}function Gw(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function Ww(t){return t.getValue()}function Hw(t,e,n){for(var i=0,r=t.length,o=-1;++o-1&&b.splice(w,1);var M=b.indexOf(v.node2);M>-1&&b.splice(M,1)}}if("right"===a){for(var S=[],I=b,A=0;I.length;){for(f=0;f=0&&(e.depth>T&&(T=e.depth),"vertical"===o?t.setLayout({y:e.depth},!0):t.setLayout({x:e.depth},!0))}),function(t,e,n){B(t,function(t){if("vertical"===n){var i=t.getLayout().y*e;t.setLayout({y:i},!0)}else{var r=t.getLayout().x*e;t.setLayout({x:r},!0)}})}(t,"vertical"===o?(r-n)/T:(i-n)/T,o)})(t,e,n,r,o,s,l),function(t,e,n,i,r,o,a){var s=zw().key(function(t){return"vertical"===t?function(t){return t.getLayout().y}:function(t){return t.getLayout().x}}(a)).sortKeys(function(t,e){return t-e}).entries(t).map(function(t){return t.values});(function(t,e,n,i,r,o,a){var s=[];B(e,function(t){var e=t.length,n=0,l=0;B(t,function(t){n+=t.getLayout().value}),l="vertical"===a?(r-(e-1)*o)/n:(i-(e-1)*o)/n,s.push(l)}),s.sort(function(t,e){return t-e});var l=s[0];B(e,function(t){B(t,function(t,e){var n=t.getLayout().value*l;"vertical"===a?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))})}),B(n,function(t){var e=+t.getValue()*l;t.setLayout({dy:e},!0)})})(0,s,e,n,i,r,a),Rw(s,r,n,i,a);for(var l=1;o>0;o--)Bw(s,l*=.99,a),Rw(s,r,n,i,a),jw(s,l,a),Rw(s,r,n,i,a)}(t,e,o,r,i,a,s),function(t,e){B(t,function(t){"vertical"===e?(t.outEdges.sort(function(t,e){return t.node2.getLayout().x-e.node2.getLayout().x}),t.inEdges.sort(function(t,e){return t.node1.getLayout().x-e.node1.getLayout().x})):(t.outEdges.sort(function(t,e){return t.node2.getLayout().y-e.node2.getLayout().y}),t.inEdges.sort(function(t,e){return t.node1.getLayout().y-e.node1.getLayout().y}))}),B(t,function(t){var e=0,n=0;B(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),B(t.inEdges,function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy})})}(t,s)}(l,u,n,i,o,a,0!==G(l,function(t){return 0===t.getLayout().value}).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))})}),of(function(t,e){t.eachSeriesByType("sankey",function(t){var e=t.getGraph().nodes;if(e.length){var n=1/0,i=-1/0;B(e,function(t){var e=t.getLayout().value;ei&&(i=e)}),B(e,function(e){var r=new Bx({type:"color",mappingMethod:"linear",dataExtent:[n,i],visual:t.get("color")}).mapValueToVisual(e.getLayout().value);e.setVisual("color",r);var o=e.getModel().get("itemStyle.color");null!=o&&e.setVisual("color",o)})}})});var Yw={_baseAxisDim:null,getInitialData:function(t,e){var n,i,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),i=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,h=this._baseAxisDim=l[u],c=l[1-u],d=[r,o],f=d[u].get("type"),p=d[1-u].get("type"),g=t.data;if(g&&i){var m=[];B(g,function(t,e){var n;t.value&&Y(t.value)?(n=t.value.slice(),t.value.unshift(e)):Y(t)?(n=t.slice(),t.unshift(e)):n=t,m.push(n)}),t.data=m}var v=this.defaultValueDimensions;return fv(this,{coordDimensions:[{name:h,type:mf(f),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:mf(p),dimsDef:v.slice()}],dimensionsCount:v.length+1})},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis}};z(Vh.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}}),Yw,!0);var Zw=["itemStyle"],Uw=["emphasis","itemStyle"],Xw=(Jh.extend({type:"boxplot",render:function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add(function(t){if(i.hasValue(t)){var e=qw(i.getItemLayout(t),i,t,a,!0);i.setItemGraphicEl(t,e),r.add(e)}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?Kw(s,n,i,t):n=qw(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)}).execute(),this._data=i},remove:function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(t){t&&e.remove(t)})},dispose:dt}),ya.extend({type:"boxplotBoxPath",shape:{},buildPath:function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i0?"P":"N",o=i.getVisual("borderColor"+r)||i.getVisual("color"+r),a=n.getModel(tM).getItemStyle(nM);e.useStyle(a),e.style.fill=null,e.style.stroke=o}var hM=["itemStyle","borderColor"],cM=["itemStyle","borderColor0"],dM=["itemStyle","color"],fM=["itemStyle","color0"],pM={seriesType:"candlestick",plan:qh(),performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.pipelineContext.large;if(n.setVisual({legendSymbol:"roundRect",colorP:r(1,t),colorN:r(-1,t),borderColorP:o(1,t),borderColorN:o(-1,t)}),!e.isSeriesFiltered(t))return!i&&{progress:function(t,e){for(var n;null!=(n=t.next());){var i=e.getItemModel(n),a=e.getItemLayout(n).sign;e.setItemVisual(n,{color:r(a,i),borderColor:o(a,i)})}}};function r(t,e){return e.get(t>0?dM:fM)}function o(t,e){return e.get(t>0?hM:cM)}}},gM="undefined"!=typeof Float32Array?Float32Array:Array,mM={seriesType:"candlestick",plan:qh(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=function(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=bl(tt(t.get("barMaxWidth"),r),r),a=bl(tt(t.get("barMinWidth"),1),r),s=t.get("barWidth");return null!=s?bl(s,r):Math.max(Math.min(r/2,o),a)}(t,n),r=0,o=1,a=["x","y"],s=n.mapDimension(a[r]),l=n.mapDimension(a[o],!0),u=l[0],h=l[1],c=l[2],d=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(null==s||l.length<4))return{progress:t.pipelineContext.large?function(t,n){for(var i,a,l=new gM(5*t.count),f=0,p=[],g=[];null!=(a=t.next());){var m=n.get(s,a),v=n.get(u,a),y=n.get(h,a),x=n.get(c,a),_=n.get(d,a);isNaN(m)||isNaN(x)||isNaN(_)?(l[f++]=NaN,f+=4):(l[f++]=vM(n,a,v,y,h),p[r]=m,p[o]=x,i=e.dataToPoint(p,null,g),l[f++]=i?i[0]:NaN,l[f++]=i?i[1]:NaN,p[o]=_,i=e.dataToPoint(p,null,g),l[f++]=i?i[1]:NaN)}n.setLayout("largePoints",l)}:function(t,n){for(var a;null!=(a=t.next());){var l=n.get(s,a),f=n.get(u,a),p=n.get(h,a),g=n.get(c,a),m=n.get(d,a),v=Math.min(f,p),y=Math.max(f,p),x=S(v,l),_=S(y,l),b=S(g,l),w=S(m,l),M=[];I(M,_,0),I(M,x,1),M.push(D(w),D(_),D(b),D(x)),n.setItemLayout(a,{sign:vM(n,a,f,p,h),initBaseline:f>p?_[o]:x[o],ends:M,brushRect:A(g,m,l)})}function S(t,n){var i=[];return i[r]=n,i[o]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function I(t,e,n){var o=e.slice(),a=e.slice();o[r]=As(o[r]+i/2,1,!1),a[r]=As(a[r]-i/2,1,!0),n?t.push(o,a):t.push(a,o)}function A(t,e,n){var a=S(t,n),s=S(e,n);return a[r]-=i/2,s[r]-=i/2,{x:a[0],y:a[1],width:o?i:s[0]-a[0],height:o?s[1]-a[1]:i}}function D(t){return t[r]=As(t[r],1),t}}}}};function vM(t,e,n,i,r){return n>i?-1:n0?t.get(r,e-1)<=i?1:-1:1}function yM(t,e){t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?e.color:null,fill:"fill"===e.brushType?e.color:null}})})}function xM(t,e){On.call(this);var n=new Mg(t,e),i=new On;this.add(n),this.add(i),i.beforeUpdate=function(){this.attr(n.getScale())},this.updateData(t,e)}$d(function(t){t&&Y(t.series)&&B(t.series,function(t){X(t)&&"k"===t.type&&(t.type="candlestick")})}),of(pM),rf(mM),Vh.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(t,e){return Uf(this.getSource(),this)},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});var _M=xM.prototype;_M.stopEffectAnimation=function(){this.childAt(1).removeAll()},_M.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=this.childAt(1),r=0;r<3;r++){var o=Jp(e,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var a=-r/3*t.period+t.effectOffset;o.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(a).start(),o.animateStyle(!0).when(t.period,{opacity:0}).delay(a).start(),i.add(o)}yM(i,t)},_M.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale"],r=0;r0&&n[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(n)+". Lines must have 2d coords array in data item.");return n},getLineCoordsCount:function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},getLineCoords:function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;rn&&c)throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},getInitialData:function(t,e){if(c&&!Uu.get(t.coordinateSystem))throw new Error("Unkown coordinate system "+t.coordinateSystem);var n=new Tf(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[r]:o:void 0}),n},formatTooltip:function(t){var e=this.getData().getItemModel(t),n=e.get("name");if(n)return n;var i=e.get("fromName"),r=e.get("toName"),o=[];return null!=i&&o.push(i),null!=r&&o.push(r),jl(o.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}});function IM(t,e,n){On.call(this),this.add(this.createLine(t,e,n)),this._updateEffectSymbol(t,e)}var AM=IM.prototype;function DM(t,e,n){On.call(this),this._createPolyline(t,e,n)}AM.createLine=function(t,e,n){return new k_(t,e,n)},AM._updateEffectSymbol=function(t,e){var n=t.getItemModel(e).getModel("effect"),i=n.get("symbolSize"),r=n.get("symbol");Y(i)||(i=[i,i]);var o=n.get("color")||t.getItemVisual(e,"color"),a=this.childAt(1);this._symbolType!==r&&(this.remove(a),(a=Jp(r,-.5,-.5,1,1,o)).z2=100,a.culling=!0,this.add(a)),a&&(a.setStyle("shadowColor",o),a.setStyle(n.getItemStyle(["color"])),a.attr("scale",i),a.setColor(o),a.attr("scale",i),this._symbolType=r,this._updateEffectAnimation(t,n,e))},AM._updateEffectAnimation=function(t,e,n){var i=this.childAt(1);if(i){var r=this,o=t.getItemLayout(n),a=1e3*e.get("period"),s=e.get("loop"),l=e.get("constantSpeed"),u=$(e.get("delay"),function(e){return e/t.count()*a/3}),h="function"==typeof u;if(i.ignore=!0,this.updateAnimationPoints(i,o),l>0&&(a=this.getLineLength(i)/l*1e3),a!==this._period||s!==this._loop){i.stopAnimation();var c=u;h&&(c=u(n)),i.__t>0&&(c=-a*i.__t),i.__t=0;var d=i.animate("",s).when(a,{__t:1}).delay(c).during(function(){r.updateSymbolPosition(i)});s||d.done(function(){r.remove(i)}),d.start()}this._period=a,this._loop=s}},AM.getLineLength=function(t){return Ct(t.__p1,t.__cp1)+Ct(t.__cp1,t.__p2)},AM.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},AM.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},AM.updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t,o=t.position,a=_o,s=bo;o[0]=a(e[0],i[0],n[0],r),o[1]=a(e[1],i[1],n[1],r);var l=s(e[0],i[0],n[0],r),u=s(e[1],i[1],n[1],r);t.rotation=-Math.atan2(u,l)-Math.PI/2,t.ignore=!1},AM.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},E(IM,On);var TM=DM.prototype;function CM(t,e,n){IM.call(this,t,e,n),this._lastFrame=0,this._lastFramePercent=0}TM._createPolyline=function(t,e,n){var i=t.getItemLayout(e),r=new Ua({shape:{points:i}});this.add(r),this._updateCommonStl(t,e,n)},TM.updateData=function(t,e,n){var i=t.hostModel;$s(this.childAt(0),{shape:{points:t.getItemLayout(e)}},i,e),this._updateCommonStl(t,e,n)},TM._updateCommonStl=function(t,e,n){var i=this.childAt(0),r=t.getItemModel(e),o=t.getItemVisual(e,"color"),a=n&&n.lineStyle,s=n&&n.hoverLineStyle;n&&!t.hasItemOption||(a=r.getModel("lineStyle").getLineStyle(),s=r.getModel("emphasis.lineStyle").getLineStyle()),i.useStyle(L({strokeNoScale:!0,fill:"none",stroke:o},a)),i.hoverStyle=s,Fs(this)},TM.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},E(DM,On);var LM=CM.prototype;LM.createLine=function(t,e,n){return new DM(t,e,n)},LM.updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,r=1;r=0&&!(i[a]<=e);a--);a=Math.min(a,r-2)}else{for(var a=o;ae);a++);a=Math.min(a-1,r-2)}Pt(t.position,n[a],n[a+1],(e-i[a])/(i[a+1]-i[a]));var s=n[a+1][0]-n[a][0],l=n[a+1][1]-n[a][1];t.rotation=-Math.atan2(l,s)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=e,t.ignore=!1}},E(CM,IM);var kM=_s({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var n=e.segs,i=e.curveness;if(e.polyline)for(var r=0;r0){t.moveTo(n[r++],n[r++]);for(var a=1;a0){var c=(s+u)/2-(l-h)*i,d=(l+h)/2-(u-s)*i;t.quadraticCurveTo(c,d,u,h)}else t.lineTo(u,h)}},findDataIndex:function(t,e){var n=this.shape,i=n.segs,r=n.curveness;if(n.polyline)for(var o=0,a=0;a0)for(var l=i[a++],u=i[a++],h=1;h0){if(ta(l,u,(l+c)/2-(u-d)*r,(u+d)/2-(c-l)*r,c,d))return o}else if(Jo(l,u,c,d))return o;o++}return-1}});function PM(){this.group=new On}var OM=PM.prototype;OM.isPersistent=function(){return!this._incremental},OM.updateData=function(t){this.group.removeAll();var e=new kM({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},OM.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new hs({silent:!0})),this.group.add(this._incremental)):this._incremental=null},OM.incrementalUpdate=function(t,e){var n=new kM;n.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(n,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=t.start,this.group.add(n))},OM.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},OM._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get("lineStyle.curveness")}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("color");r&&t.setStyle("stroke",r),t.setStyle("fill"),n||(t.seriesIndex=i.seriesIndex,t.on("mousemove",function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>0&&(t.dataIndex=n+t.__startIndex)}))},OM._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var NM={seriesType:"lines",plan:qh(),reset:function(t){var e=t.coordinateSystem,n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s,l=r.end-r.start;if(n){for(var u=0,h=r.start;h0){var I=o(v)?s:l;v>0&&(v=v*M+w),x[_++]=I[S],x[_++]=I[S+1],x[_++]=I[S+2],x[_++]=I[S+3]*v*256}else _+=4}return c.putImageData(y,0,0),h},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=P()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},_getGradient:function(t,e,n){for(var i=this._gradientPixels,r=i[n]||(i[n]=new Uint8ClampedArray(1024)),o=[0,0,0,0],a=0,s=0;s<256;s++)e[n](s/255,!0,o),r[a++]=o[0],r[a++]=o[1],r[a++]=o[2],r[a++]=o[3];return r}},cf({type:"heatmap",render:function(t,e,n){var i;if(e.eachComponent("visualMap",function(e){e.eachTargetSeries(function(n){n===t&&(i=e)})}),c&&!i)throw new Error("Heatmap must use with visualMap");this.group.removeAll(),this._incrementalDisplayable=null;var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):function(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}(r)&&this._renderOnGeo(r,t,i,n)},incrementalPrepareRender:function(t,e,n){this.group.removeAll()},incrementalRender:function(t,e,n,i){e.coordinateSystem&&this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,e,n,i,r){var o,a,s=t.coordinateSystem;if("cartesian2d"===s.type){var l=s.getAxis("x"),u=s.getAxis("y");if(c){if("category"!==l.type||"category"!==u.type)throw new Error("Heatmap on cartesian must have two category axes");if(!l.onBand||!u.onBand)throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}o=l.getBandWidth(),a=u.getBandWidth()}for(var h=this.group,d=t.getData(),f=t.getModel("itemStyle").getItemStyle(["color"]),p=t.getModel("emphasis.itemStyle").getItemStyle(),g=t.getModel("label"),m=t.getModel("emphasis.label"),v=s.type,y="cartesian2d"===v?[d.mapDimension("x"),d.mapDimension("y"),d.mapDimension("value")]:[d.mapDimension("time"),d.mapDimension("value")],x=n;x=e[0]&&t<=e[1]}}(y,n.option.range):function(t,e,n){var i=t[1]-t[0],r=(e=V(e,function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}})).length,o=0;return function(t){for(var i=o;i=0;i--){var a;if((a=e[i].interval)[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i0?1:o<0?-1:0}(n,o,r,i,c),function(t,e,n,i,r,o,a,s,l,u){var h=l.valueDim,c=l.categoryDim,d=Math.abs(n[c.wh]),f=t.getItemVisual(e,"symbolSize");Y(f)?f=f.slice():(null==f&&(f="100%"),f=[f,f]),f[c.index]=bl(f[c.index],d),f[h.index]=bl(f[h.index],i?d:Math.abs(o)),u.symbolSize=f,(u.symbolScale=[f[0]/s,f[1]/s])[h.index]*=(l.isHorizontal?-1:1)*a}(t,e,r,o,0,c.boundingLength,c.pxSign,u,i,c),function(t,e,n,i,r){var o=t.get(FM)||0;o&&(WM.attr({scale:e.slice(),rotation:n}),WM.updateTransform(),o/=WM.getLineScale(),o*=e[i.valueDim.index]),r.valueLineWidth=o}(n,c.symbolScale,l,i,c);var d=c.symbolSize,f=n.get("symbolOffset");return Y(f)&&(f=[bl(f[0],d[0]),bl(f[1],d[1])]),function(t,e,n,i,r,o,a,s,l,u,h,c){var d=h.categoryDim,f=h.valueDim,p=c.pxSign,g=Math.max(e[f.index]+s,0),m=g;if(i){var v=Math.abs(l),y=$(t.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1)),y=bl(y,e[f.index]);var _=Math.max(g+2*y,0),b=x?0:2*y,w=Rl(i),M=w?i:aS((v+b)/_);_=g+2*(y=(v-M*g)/2/(x?M:M-1)),b=x?0:2*y,w||"fixed"===i||(M=u?aS((Math.abs(u)+b)/_):0),m=M*_-b,c.repeatTimes=M,c.symbolMargin=y}var S=p*(m/2),I=c.pathPosition=[];I[d.index]=n[d.wh]/2,I[f.index]="start"===a?S:"end"===a?l-S:l/2,o&&(I[0]+=o[0],I[1]+=o[1]);var A=c.bundlePosition=[];A[d.index]=n[d.xy],A[f.index]=n[f.xy];var D=c.barRectShape=C({},n);D[f.wh]=p*Math.max(Math.abs(n[f.wh]),Math.abs(I[f.index]+S)),D[d.wh]=n[d.wh];var T=c.clipShape={};T[d.xy]=-n[d.xy],T[d.wh]=h.ecSize[d.wh],T[f.xy]=0,T[f.wh]=n[f.wh]}(n,d,r,o,0,f,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,i,c),c}function jM(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function YM(t){var e=t.symbolPatternSize,n=Jp(t.symbolType,-e/2,-e/2,e,e,t.color);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function ZM(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,h=0,c=o[e.valueDim.index]+a+2*n.symbolMargin;for(iS(t,function(t){t.__pictorialAnimationIndex=h,t.__pictorialRepeatTimes=u,h0:i<0)&&(r=u-1-t),e[l.index]=c*(r-u/2+.5)+s[l.index],{position:e,scale:n.symbolScale.slice(),rotation:n.rotation}}function g(){iS(t,function(t){t.trigger("emphasis")})}function m(){iS(t,function(t){t.trigger("normal")})}}function UM(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?rS(o,null,{position:n.pathPosition.slice(),scale:n.symbolScale.slice(),rotation:n.rotation},n,i):(o=t.__pictorialMainPath=YM(n),r.add(o),rS(o,{position:n.pathPosition.slice(),scale:[0,0],rotation:n.rotation},{scale:n.symbolScale.slice()},n,i),o.on("mouseover",function(){this.trigger("emphasis")}).on("mouseout",function(){this.trigger("normal")})),$M(o,n)}function XM(t,e,n){var i=C({},e.barRectShape),r=t.__pictorialBarRect;r?rS(r,null,{shape:i},e,n):(r=t.__pictorialBarRect=new $a({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(r))}function qM(t,e,n,i){if(n.symbolClip){var r=t.__pictorialClipPath,o=C({},n.clipShape),a=e.valueDim,s=n.animationModel,l=n.dataIndex;if(r)$s(r,{shape:o},s,l);else{o[a.wh]=0,r=new $a({shape:o}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var u={};u[a.wh]=n.clipShape[a.wh],sl[i?"updateProps":"initProps"](r,{shape:u},s,l)}}}function KM(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=QM,n.isAnimationEnabled=JM,n}function QM(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function JM(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function $M(t,e){t.off("emphasis").off("normal");var n=e.symbolScale.slice();e.hoverAnimation&&t.on("emphasis",function(){this.animateTo({scale:[1.1*n[0],1.1*n[1]]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:n.slice()},400,"elasticOut")})}function tS(t,e,n,i){var r=new On,o=new On;return r.add(o),r.__pictorialBundle=o,o.attr("position",n.bundlePosition.slice()),n.symbolRepeat?ZM(r,e,n):UM(r,0,n),XM(r,n,i),qM(r,e,n,i),r.__pictorialShapeStr=nS(t,n),r.__pictorialSymbolMeta=n,r}function eS(t,e,n,i){var r=i.__pictorialBarRect;r&&(r.style.text=null);var o=[];iS(i,function(t){o.push(t)}),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),B(o,function(t){$s(t,{scale:[0,0]},n,e,function(){i.parent&&i.parent.remove(i)})}),t.setItemGraphicEl(e,null)}function nS(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function iS(t,e,n){B(t.__pictorialBundle.children(),function(i){i!==t.__pictorialBarRect&&e.call(n,i)})}function rS(t,e,n,i,r,o){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&sl[r?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,o)}function oS(t,e,n){var i=n.color,r=n.dataIndex,o=n.itemModel,a=o.getModel("itemStyle").getItemStyle(["color"]),s=o.getModel("emphasis.itemStyle").getItemStyle(),l=o.getShallow("cursor");iS(t,function(t){t.setColor(i),t.setStyle(L({fill:i,opacity:n.opacity},a)),Fs(t,s),l&&(t.cursor=l),t.z2=n.z2});var u={},h=(e.valueDim.posDesc[+(n.boundingLength>0)],t.__pictorialBarRect);ev(h.style,u,o,i,e.seriesModel,r),Fs(h,u)}function aS(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}cf({type:"pictorialBar",render:function(t,e,n){var i=this.group,r=t.getData(),o=this._data,a=t.coordinateSystem,s=!!a.getBaseAxis().isHorizontal(),l=a.grid.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:GM[+s],categoryDim:GM[1-s]};return r.diff(o).add(function(t){if(r.hasValue(t)){var e=KM(r,t),n=HM(r,t,e,u),o=tS(r,u,n);r.setItemGraphicEl(t,o),i.add(o),oS(o,u,n)}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var a=KM(r,t),s=HM(r,t,a,u),l=nS(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?function(t,e,n){var i=n.animationModel,r=n.dataIndex;$s(t.__pictorialBundle,{position:n.bundlePosition.slice()},i,r),n.symbolRepeat?ZM(t,e,n,!0):UM(t,0,n,!0),XM(t,n,!0),qM(t,e,n,!0)}(n,u,s):n=tS(r,u,s,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),oS(n,u,s)}else i.remove(n)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&eS(o,t,e.__pictorialSymbolMeta.animationModel,e)}).execute(),this._data=r,this.group},dispose:dt,remove:function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(e){eS(i,e.dataIndex,t,e)}):n.removeAll()}}),rf(j(gp,"pictorialBar")),of(am("pictorialBar","roundRect"));var sS=function(t,e,n,i,r){vg.call(this,t,e,n),this.type=i||"value",this.position=r||"bottom",this.orient=null};function lS(t,e,n){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,n),this.model=t}function uS(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]],r.rotation=Math.PI/2*{horizontal:0,vertical:1}[a],r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],t.get("axisTick.inside")&&(r.tickDirection=-r.tickDirection),$(e.labelInside,t.get("axisLabel.inside"))&&(r.labelDirection=-r.labelDirection);var h=e.rotate;return null==h&&(h=t.get("axisLabel.rotate")),r.labelRotation="top"===o?-h:h,r.z2=1,r}sS.prototype={constructor:sS,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},E(sS,vg),lS.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:lS,_init:function(t,e,n){var i=this.dimension,r=new sS(i,Rp(t),[0,0],t.get("type"),t.get("position")),o="category"===r.type;r.onBand=o&&t.get("boundaryGap"),r.inverse=t.get("inverse"),r.orient=t.get("orient"),t.axis=r,r.model=t,r.coordinateSystem=this,this._axis=r},update:function(t,e){t.eachSeries(function(t){if(t.coordinateSystem===this){var e=t.getData();B(e.mapDimension(this.dimension,!0),function(t){this._axis.scale.unionExtentFromData(e,t)},this),zp(this._axis.scale,this._axis.model)}},this)},resize:function(t,e){this._rect=su({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],r=e.reverse?1:0;e.setExtent(i[r],i[1-r]),this._updateAxisTransform(e,n?t.x:t.y)},_updateAxisTransform:function(t,e){var n=t.getExtent(),i=n[0]+n[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return i-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i}},Uu.register("single",{create:function(t,e){var n=[];return t.eachComponent("singleAxis",function(i,r){var o=new lS(i,t,e);o.name="single_"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(e){if("singleAxis"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];e.coordinateSystem=n&&n.coordinateSystem}}),n},dimensions:lS.prototype.dimensions});var hS=["axisLine","axisTickLabel","axisName"],cS=Zm.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,e,n,i){var r=this.group;r.removeAll();var o=uS(t),a=new Lm(t,o);B(hS,a.add,a),r.add(a.getGroup()),t.get("splitLine.show")&&this._splitLine(t),cS.superCall(this,"render",t,e,n,i)},_splitLine:function(t){var e=t.axis;if(!e.scale.isBlank()){var n=t.getModel("splitLine"),i=n.getModel("lineStyle"),r=i.get("width"),o=i.get("color");o=o instanceof Array?o:[o];for(var a=t.coordinateSystem.getRect(),s=e.isHorizontal(),l=[],u=0,h=e.getTicksCoords({tickModel:n}),c=[],d=[],f=0;f=0&&s<0)&&(a=p,s=f,r=u,o.length=0),pS(h,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&C(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s,r),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function yS(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function xS(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=Ym(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get("label.precision"),formatter:s.get("label.formatter")},seriesDataIndices:r.slice()})}}function _S(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function bS(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}lf({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}});var wS=Br(),MS=B;function SS(t,e,n){if(!p.node){var i=e.getZr();wS(i).records||(wS(i).records={}),function(t,e){function n(n,i){t.on(n,function(n){var r=function(t){var e={showTip:[],hideTip:[]};return{dispatchAction:function n(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))},pendings:e}}(e);MS(wS(t).records,function(t){t&&i(t,n,r.dispatchAction)}),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)})}wS(t).initialized||(wS(t).initialized=!0,n("click",j(AS,"click")),n("mousemove",j(AS,"mousemove")),n("globalout",IS))}(i,e),(wS(i).records[t]||(wS(i).records[t]={})).handler=n}}function IS(t,e,n){t.handler("leave",null,n)}function AS(t,e,n,i){e.handler(t,n,i)}function DS(t,e){if(!p.node){var n=e.getZr();(wS(n).records||{})[t]&&(wS(n).records[t]=null)}}var TS=uf({type:"axisPointer",render:function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";SS("axisPointer",n,function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},remove:function(t,e){DS(e.getZr(),"axisPointer"),TS.superApply(this._model,"remove",arguments)},dispose:function(t,e){DS("axisPointer",e),TS.superApply(this._model,"dispose",arguments)}}),CS=Br(),LS=A,kS=H;function PS(){}function OS(t,e,n,i){(function t(e,n){if(X(e)&&X(n)){var i=!0;return B(n,function(n,r){i=i&&t(e[r],n)}),!!i}return e===n})(CS(n).lastProp,i)||(CS(n).lastProp=i,e?$s(n,i,t):(n.stopAnimation(),n.attr(i)))}function NS(t,e){t[e.get("label.show")?"show":"hide"]()}function ES(t){return{position:t.position.slice(),rotation:t.rotation||0}}function zS(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}function RS(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}function BS(t,e,n,i,r){var o=VS(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get("label.precision"),formatter:n.get("label.formatter")}),a=n.getModel("label"),s=Gl(a.get("padding")||0),l=a.getFont(),u=yi(o,l),h=r.position,c=u.width+s[1]+s[3],d=u.height+s[0]+s[2],f=r.align;"right"===f&&(h[0]-=c),"center"===f&&(h[0]-=c/2);var p=r.verticalAlign;"bottom"===p&&(h[1]-=d),"middle"===p&&(h[1]-=d/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(h,c,d,i);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:c,height:d,r:a.get("borderRadius")},position:h.slice(),style:{text:o,textFont:l,textFill:a.getTextColor(),textPosition:"inside",fill:g,stroke:a.get("borderColor")||"transparent",lineWidth:a.get("borderWidth")||0,shadowBlur:a.get("shadowBlur"),shadowColor:a.get("shadowColor"),shadowOffsetX:a.get("shadowOffsetX"),shadowOffsetY:a.get("shadowOffsetY")},z2:10}}function VS(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel(t,{precision:r.precision}),a=r.formatter;if(a){var s={value:Vp(e,t),seriesData:[]};B(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)}),U(a)?o=a.replace("{value}",o):Z(a)&&(o=a(s))}return o}function FS(t,e,n){var i=se();return de(i,i,n.rotation),ce(i,i,n.position),nl([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function GS(t,e,n,i,r,o){var a=Lm.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get("label.margin"),BS(e,i,r,o,{position:FS(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function WS(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function HS(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function jS(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}PS.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var c=j(OS,e,h);this.updatePointerEl(a,l,c,e),this.updateLabelEl(a,l,c,e)}else a=this._group=new On,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);zS(a,e,!0),this._renderHandle(r)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=Hm(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},makeElOption:function(t,e,n,i,r){},createPointerEl:function(t,e,n,i){var r=e.pointer;if(r){var o=CS(t).pointerEl=new sl[r.type](LS(e.pointer));t.add(o)}},createLabelEl:function(t,e,n,i){if(e.label){var r=CS(t).labelEl=new $a(LS(e.label));t.add(r),NS(r,i)}},updatePointerEl:function(t,e,n){var i=CS(t).pointerEl;i&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,n,i){var r=CS(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{shape:e.label.shape,position:e.label.position}),NS(r,i))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=al(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){qt(t.event)},onmousedown:kS(this._onHandleDragMove,this,0,0),drift:kS(this._onHandleDragMove,this),ondragend:kS(this._onHandleDragEnd,this)}),i.add(r)),zS(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");Y(s)||(s=[s,s]),r.attr("scale",[s[0]/2,s[1]/2]),uc(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},_moveHandleToValue:function(t,e){OS(this._axisPointerModel,!e&&this._moveAnimation,this._handle,ES(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(ES(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(ES(i)),CS(n).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},_onHandleDragEnd:function(t){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}},PS.prototype.constructor=PS,Ur(PS);var YS=PS.extend({makeElOption:function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=ZS(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var h=RS(i),c=US[s](o,u,l);c.style=h,t.graphicKey=c.type,t.pointer=c}GS(e,t,Km(a.model,n),n,i,r)},getHandleTransform:function(t,e,n){var i=Km(e.axis.grid.model,e,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:FS(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=ZS(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=t.position;u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var h=(s[1]+s[0])/2,c=[h,h];return c[l]=u[l],{position:u,rotation:t.rotation,cursorPoint:c,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}}});function ZS(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var US={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:WS([e,n[0]],[e,n[1]],XS(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:HS([e-i/2,n[0]],[i,r],XS(t))}}};function XS(t){return"x"===t.dim?0:1}Zm.registerAxisPointerClass("CartesianAxisPointer",YS),$d(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Y(e)&&(t.axisPointer.link=[e])}}),tf(dd.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Fm(t,e)}),ef({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},function(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||H(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){bS(r)&&(r=fS({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=bS(r),u=o.axesInfo,h=s.axesInfo,c="leave"===i||bS(r),d={},f={},p={list:[],map:{}},g={showPointer:gS(yS,f),showTooltip:gS(xS,p)};pS(s.coordSysMap,function(t,e){var n=l||t.containPoint(r);pS(s.coordSysAxesInfo[e],function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(u,t);if(!c&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&vS(t,a,g,!1,d)}})});var m={};return pS(h,function(t,e){var n=t.linkGroup;n&&!f[e]&&pS(n.axesInfo,function(e,i){var r=f[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,_S(e),_S(t)))),m[t.key]=o}})}),pS(m,function(t,e){vS(h[e],t,g,!0,d)}),function(t,e,n){var i=n.axesInfo=[];pS(e,function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}(f,h,d),function(t,e,n,i){if(!bS(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}(p,r,t,a),function(t,e,n){var i=n.getZr(),r=mS(i).axisPointerLastHighlights||{},o=mS(i).axisPointerLastHighlights={};pS(t,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&pS(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;o[e]=t})});var a=[],s=[];B(r,function(t,e){!o[e]&&s.push(t)}),B(o,function(t,e){!r[e]&&a.push(t)}),s.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,batch:s}),a.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,batch:a})}(h,0,n),d}});var qS=["x","y"],KS=["width","height"],QS=PS.extend({makeElOption:function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=tI(a,1-$S(o)),l=a.dataToPoint(e)[0],u=i.get("type");if(u&&"none"!==u){var h=RS(i),c=JS[u](o,l,s);c.style=h,t.graphicKey=c.type,t.pointer=c}GS(e,t,uS(n),n,i,r)},getHandleTransform:function(t,e,n){var i=uS(e,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:FS(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,a=$S(r),s=tI(o,a),l=t.position;l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=tI(o,1-a),h=(u[1]+u[0])/2,c=[h,h];return c[a]=l[a],{position:l,rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}}}),JS={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:WS([e,n[0]],[e,n[1]],$S(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:HS([e-i/2,n[0]],[i,r],$S(t))}}};function $S(t){return t.isHorizontal()?0:1}function tI(t,e){var n=t.getRect();return[n[qS[e]],n[qS[e]]+n[KS[e]]]}Zm.registerAxisPointerClass("SingleAxisPointer",QS),uf({type:"single"});var eI=Vh.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){eI.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},fixData:function(t){for(var e=t.length,n=V(zw().key(function(t){return t[2]}).entries(t),function(t){return{name:t.key,dataList:t.values}}),i=n.length,r=-1,o=-1,a=0;ar&&(r=s,o=a)}for(var l=0;lo&&(o=u),i.push(u)}for(var h=0;ho&&(o=d)}return a.y0=r,a.max=o,a}(l),h=u.y0,c=n/u.max,d=o.length,f=o[0].indices.length,p=0;p1;)e=e.parentNode;return N(t.getAncestors()[0].children,e)}(t)%a]}(e,0,r);!function(t,e,n){e.getData().setItemVisual(t.dataIndex,"color",n)}(e,i,h);var c,d=a.getModel("itemStyle").getItemStyle();c=L({lineJoin:"bevel",fill:(c="normal"===n?d:D(a.getModel(n+".itemStyle").getItemStyle(),d)).fill||h},c),t?(o.setShape(u),o.shape.r=s.r0,$s(o,{shape:{r:s.r}},i,e.dataIndex),o.useStyle(c)):"object"===l(c.fill)&&c.fill.type||"object"===l(o.style.fill)&&o.style.fill.type?($s(o,{shape:u},i),o.useStyle(c)):$s(o,{shape:u,style:c},i),this._updateLabel(i,h,n);var f=a.getShallow("cursor");if(f&&o.attr("cursor",f),t){var p=i.getShallow("highlightPolicy");this._initEvents(o,e,i,p)}this._seriesModel=i||this._seriesModel,this._ecModel=r||this._ecModel},sI.onEmphasis=function(t){var e=this;this.node.hostTree.root.eachNode(function(n){var i,r,o;n.piece&&(e.node===n?n.piece.updateData(!1,n,"emphasis"):(i=n,r=e.node,(o=t)!==iI.NONE&&(o===iI.SELF?i===r:o===iI.ANCESTOR?i===r||i.isAncestorOf(r):i===r||i.isDescendantOf(r))?n.piece.childAt(0).trigger("highlight"):t!==iI.NONE&&n.piece.childAt(0).trigger("downplay")))})},sI.onNormal=function(){this.node.hostTree.root.eachNode(function(t){t.piece&&t.piece.updateData(!1,t,"normal")})},sI.onHighlight=function(){this.updateData(!1,this.node,"highlight")},sI.onDownplay=function(){this.updateData(!1,this.node,"downplay")},sI._updateLabel=function(t,e,n){var i=this.node.getModel(),r=i.getModel("label"),o="normal"===n||"emphasis"===n?r:i.getModel(n+".label"),a=i.getModel("emphasis.label"),s=$(t.getFormattedLabel(this.node.dataIndex,"normal",null,null,"label"),this.node.name);!1===M("show")&&(s="");var l=this.node.getLayout(),u=o.get("minAngle");null==u&&(u=r.get("minAngle")),u=u/180*Math.PI;var h=l.endAngle-l.startAngle;null!=u&&Math.abs(h)Math.PI/2?"right":"left"):y&&"center"!==y?"left"===y?(d=l.r0+v,f>Math.PI/2&&(y="right")):"right"===y&&(d=l.r-v,f>Math.PI/2&&(y="left")):(d=(l.r+l.r0)/2,y="center"),c.attr("style",{text:s,textAlign:y,textVerticalAlign:M("verticalAlign")||"middle",opacity:M("opacity")});var x=d*p+l.cx,_=d*g+l.cy;c.attr("position",[x,_]);var b=M("rotate"),w=0;function M(t){var e=o.get(t);return null==e?r.get(t):e}"radial"===b?(w=-f)<-Math.PI/2&&(w+=Math.PI):"tangential"===b?(w=Math.PI/2-f)>Math.PI/2?w-=Math.PI:w<-Math.PI/2&&(w+=Math.PI):"number"==typeof b&&(w=b*Math.PI/180),c.attr("rotation",w)},sI._initEvents=function(t,e,n,i){t.off("mouseover").off("mouseout").off("emphasis").off("normal");var r=this,o=function(){r.onEmphasis(i)},a=function(){r.onNormal()};n.isAnimationEnabled()&&t.on("mouseover",o).on("mouseout",a).on("emphasis",o).on("normal",a).on("downplay",function(){r.onDownplay()}).on("highlight",function(){r.onHighlight()})},E(aI,On),Jh.extend({type:"sunburst",init:function(){},render:function(t,e,n,i){var r=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),h=[];s.eachNode(function(t){h.push(t)});var c=this._oldChildren||[];if(function(n,i){function r(t){return t.getId()}function s(r,s){!function(n,i){if(u||!n||n.getValue()||(n=null),n!==a&&i!==a)if(i&&i.piece)n?(i.piece.updateData(!1,n,"normal",t,e),o.setItemGraphicEl(n.dataIndex,i.piece)):(s=i)&&s.piece&&(l.remove(s.piece),s.piece=null);else if(n){var r=new aI(n,t,e);l.add(r),o.setItemGraphicEl(n.dataIndex,r)}var s}(null==r?null:n[r],null==s?null:i[s])}0===n.length&&0===i.length||new ff(i,n,r,r).add(s).update(s).remove(j(s,null)).execute()}(h,c),function(n,i){if(i.depth>0){r.virtualPiece?r.virtualPiece.updateData(!1,n,"normal",t,e):(r.virtualPiece=new aI(n,t,e),l.add(r.virtualPiece)),i.piece._onclickEvent&&i.piece.off("click",i.piece._onclickEvent);var o=function(t){r._rootToNode(i.parentNode)};i.piece._onclickEvent=o,r.virtualPiece.on("click",o)}else r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}(a,s),i&&i.highlight&&i.highlight.piece){var d=t.getShallow("highlightPolicy");i.highlight.piece.onEmphasis(d)}else if(i&&i.unhighlight){var f=this.virtualPiece;!f&&a.children.length&&(f=a.children[0].piece),f&&f.onNormal()}this._initEvents(),this._oldChildren=h},dispose:function(){},_initEvents:function(){var t=this,e=function(e){var n=!1;t.seriesModel.getViewRoot().eachNode(function(i){if(!n&&i.piece&&i.piece.childAt(0)===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";window.open(a,s)}}n=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",e),this.group._onclickEvent=e},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:"sunburstRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}}});var lI="sunburstRootToNode";ef({type:lI,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},function(e,n){var i=lx(t,[lI],e);if(i){var r=e.getViewRoot();r&&(t.direction=hx(r,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}})});var uI="sunburstHighlight";ef({type:uI,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},function(e,n){var i=lx(t,[uI],e);i&&(t.highlight=i.node)})}),ef({type:"sunburstUnhighlight",update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},function(e,n){t.unhighlight=!0})});var hI=Math.PI/180;function cI(t,e){return e=e||[0,0],V(["x","y"],function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))},this)}function dI(t,e){return e=e||[0,0],V([0,1],function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function fI(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function pI(t,e){return V(["Radius","Angle"],function(n,i){var r=this["get"+n+"Axis"](),o=e[i],a=t[i]/2,s="dataTo"+n,l="category"===r.type?r.getBandWidth():Math.abs(r[s](o-a)-r[s](o+a));return"Angle"===n&&(l=l*Math.PI/180),l},this)}of(j(bv,"sunburst")),rf(j(function(t,e,n,i){e.eachSeriesByType(t,function(t){var e=t.get("center"),i=t.get("radius");Y(i)||(i=[0,i]),Y(e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=bl(e[0],r),l=bl(e[1],o),u=bl(i[0],a/2),h=bl(i[1],a/2),c=-t.get("startAngle")*hI,d=t.get("minAngle")*hI,f=t.getData().tree.root,p=t.getViewRoot(),g=p.depth,m=t.get("sort");null!=m&&function t(e,n){var i=e.children||[];e.children=function(t,e){if("function"==typeof e)return t.sort(e);var n="asc"===e;return t.sort(function(t,e){var i=(t.getValue()-e.getValue())*(n?1:-1);return 0===i?(t.dataIndex-e.dataIndex)*(n?-1:1):i})}(i,n),i.length&&B(e.children,function(e){t(e,n)})}(p,m);var v=0;B(p.children,function(t){!isNaN(t.getValue())&&v++});var y=p.getValue(),x=Math.PI/(y||v)*2,_=p.depth>0,b=p.height-(_?-1:1),w=(h-u)/(b||1),M=t.get("clockwise"),S=t.get("stillShowZeroSum"),I=M?1:-1;if(_){var A=u,D=u+w,T=2*Math.PI;f.setLayout({angle:T,startAngle:c,endAngle:c+T,clockwise:M,cx:s,cy:l,r0:A,r:D})}!function t(e,n){if(e){var i=n;if(e!==f){var r=e.getValue(),o=0===y&&S?x:r*x;oi[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:H(function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a}),size:H(pI,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}};function bI(t,e,n,i,r){null==n[t]||r||(e[t]=n[t],n[t]=i[t])}function wI(t,e,n,i){var r=t.get("renderItem"),o=t.coordinateSystem,a={};o&&(c&&(rt(r,"series.render is required."),rt(o.prepareCustoms||_I[o.type],"This coordSys does not support custom series.")),a=o.prepareCustoms?o.prepareCustoms():_I[o.type](o));var s,l,u,h,d,f=L({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:function(t,n){return null==n&&(n=s),e.get(e.getDimension(t||0),n)},style:function(n,i){null==i&&(i=s),m(i);var r=l.getModel(gI).getItemStyle();null!=d&&(r.fill=d);var o=e.getItemVisual(i,"opacity");return null!=o&&(r.opacity=o),Ys(r,u,null,{autoColor:d,isRectText:!0}),r.text=u.getShallow("show")?tt(t.getFormattedLabel(i,"normal"),wg(e,i)):null,n&&C(r,n),r},styleEmphasis:function(n,i){null==i&&(i=s),m(i);var r=l.getModel(mI).getItemStyle();return Ys(r,h,null,{isRectText:!0},!0),r.text=h.getShallow("show")?et(t.getFormattedLabel(i,"emphasis"),t.getFormattedLabel(i,"normal"),wg(e,i)):null,n&&C(r,n),r},visual:function(t,n){return null==n&&(n=s),e.getItemVisual(n,t)},barLayout:function(t){if(o.getBaseAxis)return function(t){var e=[],n=t.axis;if("category"===n.type){for(var i=n.getBandWidth(),r=0;ru?u=c:(h.lastTickCount=i,h.lastAutoInterval=u),u}},E(EI,vg);var zI=function(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusAxis=new OI,this._angleAxis=new EI,this._radiusAxis.polar=this._angleAxis.polar=this};zI.prototype={type:"polar",axisPointerEnabled:!0,constructor:zI,dimensions:["radius","angle"],model:null,containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=la;)l+=360*u;return[s,l]},coordToPoint:function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]}};var RI=gu.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});D(RI.prototype,Hp);var BI={splitNumber:5};function VI(t,e){return e.type||(e.data?"category":"value")}function FI(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){if(t.coordinateSystem===n){var e=t.getData();B(e.mapDimension("radius",!0),function(t){r.scale.unionExtentFromData(e,Zf(e,t))}),B(e.mapDimension("angle",!0),function(t){i.scale.unionExtentFromData(e,Zf(e,t))})}}),zp(i.scale,i.model),zp(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function GI(t,e){if(t.type=e.get("type"),t.scale=Rp(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType){t.inverse^=e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}vm("angle",RI,VI,{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}}),vm("radius",RI,VI,BI),lf({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});var WI={dimensions:zI.prototype.dimensions,create:function(t,e){var n=[];return t.eachComponent("polar",function(t,i){var r=new zI(i);r.update=FI;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");GI(o,s),GI(a,l),function(t,e,n){var i=e.get("center"),r=n.getWidth(),o=n.getHeight();t.cx=bl(i[0],r),t.cy=bl(i[1],o);var a=t.getRadiusAxis(),s=Math.min(r,o)/2,l=bl(e.get("radius"),s);a.inverse?a.setExtent(l,0):a.setExtent(0,l)}(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t}),t.eachSeries(function(e){if("polar"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0];if(c&&!n)throw new Error('Polar "'+$(e.get("polarIndex"),e.get("polarId"),0)+'" not found');e.coordinateSystem=n.coordinateSystem}}),n}};Uu.register("polar",WI);var HI=["axisLine","axisLabel","axisTick","splitLine","splitArea"];function jI(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function YI(t){return t.getRadiusAxis().inverse?0:1}function ZI(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}Zm.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=V(n.getViewLabels(),function(t){return(t=A(t)).coord=n.dataToCoord(t.tickValue),t});ZI(a),ZI(o),B(HI,function(e){!t.get(e+".show")||n.scale.isBlank()&&"axisLine"!==e||this["_"+e](t,i,o,r,a)},this)}},_axisLine:function(t,e,n,i){var r=t.getModel("axisLine.lineStyle"),o=new Ra({shape:{cx:e.cx,cy:e.cy,r:i[YI(e)]},style:r.getLineStyle(),z2:1,silent:!0});o.style.fill=null,this.group.add(o)},_axisTick:function(t,e,n,i){var r=t.getModel("axisTick"),o=(r.get("inside")?-1:1)*r.get("length"),a=i[YI(e)],s=V(n,function(t){return new es({shape:jI(e,[a,a+o],t.coord)})});this.group.add(Ss(s,{style:L(r.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_axisLabel:function(t,e,n,i,r){var o=t.getCategories(!0),a=t.getModel("axisLabel"),s=a.get("margin"),l=t.get("triggerEvent");B(r,function(n,r){var u=a,h=n.tickValue,c=i[YI(e)],d=e.coordToPoint([c+s,n.coord]),f=e.cx,p=e.cy,g=Math.abs(d[0]-f)/c<.3?"center":d[0]>f?"left":"right",m=Math.abs(d[1]-p)/c<.3?"middle":d[1]>p?"top":"bottom";o&&o[h]&&o[h].textStyle&&(u=new pl(o[h].textStyle,a,a.ecModel));var v=new za({silent:Lm.isLabelSilent(t)});this.group.add(v),Ys(v.style,u,{x:d[0],y:d[1],textFill:u.getTextColor()||t.get("axisLine.lineStyle.color"),text:n.formattedLabel,textAlign:g,textVerticalAlign:m}),l&&(v.eventData=Lm.makeAxisEventDataBase(t),v.eventData.targetType="axisLabel",v.eventData.value=n.rawLabel)},this)},_splitLine:function(t,e,n,i){var r=t.getModel("splitLine").getModel("lineStyle"),o=r.get("color"),a=0;o=o instanceof Array?o:[o];for(var s=[],l=0;lm?"left":"right",h=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:h}}(e,n,0,s,i.get("label.margin"));BS(t,n,i,r,d)}}),KI={line:function(t,e,n,i,r){return"angle"===t.dim?{type:"Line",shape:WS(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i,r){var o=Math.max(1,t.getBandWidth()),a=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:jS(e.cx,e.cy,i[0],i[1],(-n-o/2)*a,(o/2-n)*a)}:{type:"Sector",shape:jS(e.cx,e.cy,n-o/2,n+o/2,0,2*Math.PI)}}};function QI(t,e){e.update="updateView",ef(e,function(e,n){var i={};return n.eachComponent({mainType:"geo",query:e},function(n){n[t](e.name),B(n.coordinateSystem.regions,function(t){i[t.name]=n.isSelected(t.name)||!1})}),{selected:i,name:e.name}})}function JI(t,e,n){this._model=t}function $I(t,e,n,i){var r=n.calendarModel,o=n.seriesModel,a=r?r.coordinateSystem:o?o.coordinateSystem:null;return a===this?a[t](i):null}Zm.registerAxisPointerClass("PolarAxisPointer",qI),rf(j(function(t,e,n){var i={},r=function(t,e){var n={};B(t,function(t,e){var i=t.getData(),r=t.coordinateSystem.getBaseAxis(),o=r.getExtent(),a="category"===r.type?r.getBandWidth():Math.abs(o[1]-o[0])/i.count(),s=n[PI(r)]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},l=s.stacks;n[PI(r)]=s;var u=kI(t);l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var h=bl(t.get("barWidth"),a),c=bl(t.get("barMaxWidth"),a),d=t.get("barGap"),f=t.get("barCategoryGap");h&&!l[u].width&&(h=Math.min(s.remainedWidth,h),l[u].width=h,s.remainedWidth-=h),c&&(l[u].maxWidth=c),null!=d&&(s.gap=d),null!=f&&(s.categoryGap=f)});var i={};return B(n,function(t,e){i[e]={};var n=t.stacks,r=t.bandWidth,o=bl(t.categoryGap,r),a=bl(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),B(n,function(t,e){var n=t.maxWidth;n&&n=0?"p":"n",T=y;if(v&&(i[a][w]||(i[a][w]={p:y,n:y}),T=i[a][w][D]),"radius"===h.dim){var C=h.dataToRadius(b)-y,L=o.dataToAngle(w);Math.abs(C)=i.start.time&&n.timeo.end.time&&t.reverse(),t},_getRangeInfo:function(t){var e;(t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])])[0].time>t[1].time&&(e=!0,t.reverse());var n=Math.floor(t[1].time/864e5)-Math.floor(t[0].time/864e5)+1,i=new Date(t[0].time),r=i.getDate(),o=t[1].date.getDate();if(i.setDate(r+n-1),i.getDate()!==o)for(var a=i.getTime()-t[1].time>0?1:-1;i.getDate()!==o&&(i.getTime()-t[1].time)*a>0;)n-=a,i.setDate(r+n-1);var s=Math.floor((n+t[0].day+6)/7),l=e?1-s:s-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:s,nthWeek:l,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&ei.lweek)return!1;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(i.start.d+r),this.getDateInfo(o)}},JI.dimensions=JI.prototype.dimensions,JI.getDimensionsInfo=JI.prototype.getDimensionsInfo,JI.create=function(t,e){var n=[];return t.eachComponent("calendar",function(i){var r=new JI(i,t,e);n.push(r),i.coordinateSystem=r}),t.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])}),n},Uu.register("calendar",JI);var tA=gu.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t,e,n,i){var r=hu(t);tA.superApply(this,"init",arguments),eA(t,r)},mergeOption:function(t,e){tA.superApply(this,"mergeOption",arguments),eA(this.option,t)}});function eA(t,e){var n=t.cellSize;Y(n)?1===n.length&&(n[1]=n[0]):n=t.cellSize=[n,n];var i=V([0,1],function(t){return function(t,e){return null!=t[ru[e][0]]||null!=t[ru[e][1]]&&null!=t[ru[e][2]]}(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]});uu(t,e,{type:"box",ignoreSize:i})}var nA={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},iA={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]};uf({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,a,i),this._renderWeekText(t,o,a,i)},_renderDayRect:function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new $a({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},_renderLines:function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel("splitLine.lineStyle").getLineStyle(),s=t.get("splitLine.show"),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,h=0;u.time<=e.end.time;h++){d(u.formatedDate),0===h&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var c=u.date;c.setMonth(c.getMonth()+1),u=o.getDateInfo(c)}function d(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},_getEdgesPoints:function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},_drawSplitline:function(t,e,n){var i=new Ua({z2:20,shape:{points:t},style:e});n.add(i)},_getLinePointsOfOneWeek:function(t,e,n){var i=t.coordinateSystem;e=i.getDateInfo(e);for(var r=[],o=0;o<7;o++){var a=i.getNextNDay(e.time,o),s=i.dataToRect([a.time],!1);r[2*a.day]=s.tl,r[2*a.day+1]=s["horizontal"===n?"bl":"tr"]}return r},_formatterLabel:function(t,e){return"string"==typeof t&&t?Xl(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,n,i,r){e=e.slice();var o=["center","bottom"];"bottom"===i?(e[1]+=r,o=["center","top"]):"left"===i?e[0]-=r:"right"===i?(e[0]+=r,o=["center","top"]):e[1]-=r;var a=0;return"left"!==i&&"right"!==i||(a=Math.PI/2),{rotation:a,position:e,style:{textAlign:o[0],textVerticalAlign:o[1]}}},_renderYearText:function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,h="horizontal"===n?0:1,c={top:[l,s[h][1]],bottom:[l,s[1-h][1]],left:[s[1-h][0],u],right:[s[h][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var f=r.get("formatter"),p={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(f,p),m=new za({z2:30});Ys(m.style,r,{text:g}),m.attr(this._yearTextPositionControl(m,c[a],n,a,o)),i.add(m)}},_monthTextPositionControl:function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,textAlign:o,textVerticalAlign:a}},_renderMonthText:function(t,e,n){var i=t.getModel("monthLabel");if(i.get("show")){var r=i.get("nameMap"),o=i.get("margin"),a=i.get("position"),s=i.get("align"),l=[this._tlpoints,this._blpoints];U(r)&&(r=nA[r.toUpperCase()]||[]);var u="start"===a?0:1,h="horizontal"===e?0:1;o="start"===a?-o:o;for(var c="center"===s,d=0;d=0;l--)null==r[l]?r.splice(l,1):delete r[l].$action},_flatten:function(t,e,n){B(t,function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;"group"===t.type&&i&&this._flatten(i,e,t),delete t.children}},this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});function oA(t,e,n,i){var r=n.type;c&&rt(r,"graphic type MUST be set");var o=sl[r.charAt(0).toUpperCase()+r.slice(1)];c&&rt(o,"graphic type can not be found");var a=new o(n);e.add(a),i.set(t,a),a.__ecGraphicId=t}function aA(t,e){var n=t&&t.parent;n&&("group"===t.type&&t.traverse(function(t){aA(t,e)}),e.removeKey(t.__ecGraphicId),n.remove(t))}function sA(t,e){var n;return B(e,function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)}),n}uf({type:"graphic",init:function(t,e){this._elMap=ht(),this._lastGraphicModel},render:function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},_updateElements:function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group;B(e,function(e){var r=e.$action,o=e.id,a=n.get(o),s=e.parentId,l=null!=s?n.get(s):i,u=e.style;"text"===e.type&&u&&(e.hv&&e.hv[1]&&(u.textVerticalAlign=u.textBaseline=null),!u.hasOwnProperty("textFill")&&u.fill&&(u.textFill=u.fill),!u.hasOwnProperty("textStroke")&&u.stroke&&(u.textStroke=u.stroke));var h=function(t){return t=C({},t),B(["id","parentId","$action","hv","bounding"].concat(iu),function(e){delete t[e]}),t}(e);c&&a&&rt(l===a.parent,"Changing parent is not supported."),r&&"merge"!==r?"replace"===r?(aA(a,n),oA(o,l,h,n)):"remove"===r&&aA(a,n):a?a.attr(h):oA(o,l,h,n);var d=n.get(o);d&&(d.__ecGraphicWidth=e.width,d.__ecGraphicHeight=e.height,function(t,e,n){var i=t.eventData;t.silent||t.ignore||i||(i=t.eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=t.info)}(d,t))})}},_relocate:function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,o=n.length-1;o>=0;o--){var a=n[o],s=r.get(a.id);if(s){var l=s.parent;lu(s,a,l===i?{width:e.getWidth(),height:e.getHeight()}:{width:l.__ecGraphicWidth||0,height:l.__ecGraphicHeight||0},null,{hv:a.hv,boundingMode:a.bounding})}}},_clear:function(){var t=this._elMap;t.each(function(e){aA(e,t)}),this._elMap=ht()},dispose:function(){this._clear()}});var lA={};function uA(t,e){lA[t]=e}function hA(t){return lA[t]}var cA=lf({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){cA.superApply(this,"optionUpdated",arguments),B(this.option.feature,function(t,e){var n=hA(e);n&&D(t,n.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}}}});function dA(t,e){var n=Gl(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new $a({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}uf({type:"toolbox",render:function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var o=+t.get("itemSize"),a=t.get("feature")||{},s=this._features||(this._features={}),l=[];B(a,function(t,e){l.push(e)}),new ff(this._featureNames||[],l).add(u).update(u).remove(j(u,null)).execute(),this._featureNames=l,function(t,e,n){var i=e.getBoxLayoutParams(),r=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=su(i,o,r);au(e.get("orient"),t,e.get("itemGap"),a.width,a.height),lu(t,i,o,r)}(r,t,n),r.add(dA(r.getBoundingRect(),t)),r.eachChild(function(t){var e=t.__title,i=t.hoverStyle;if(i&&e){var a=yi(e,ki(i)),s=t.position[0]+r.position[0],l=!1;t.position[1]+r.position[1]+o+a.height>n.getHeight()&&(i.textPosition="top",l=!0);var u=l?-5-a.height:o+8;s+a.width/2>n.getWidth()?(i.textPosition=["100%",u],i.textAlign="right"):s-a.width/2<0&&(i.textPosition=[0,u],i.textAlign="left")}})}function u(u,h){var c,d=l[u],f=l[h],p=new pl(a[d],t,t.ecModel);if(d&&!f){if(function(t){return 0===t.indexOf("my")}(d))c={model:p,onclick:p.option.onclick,featureName:d};else{var g=hA(d);if(!g)return;c=new g(p,e,n)}s[d]=c}else{if(!(c=s[f]))return;c.model=p,c.ecModel=e,c.api=n}d||!f?p.get("show")&&!c.unusable?(function(i,a,s){var l=i.getModel("iconStyle"),u=i.getModel("emphasis.iconStyle"),h=a.getIcons?a.getIcons():i.get("icon"),c=i.get("title")||{};if("string"==typeof h){var d=h,f=c;c={},(h={})[s]=d,c[s]=f}var p=i.iconPaths={};B(h,function(s,h){var d=al(s,{},{x:-o/2,y:-o/2,width:o,height:o});d.setStyle(l.getItemStyle()),d.hoverStyle=u.getItemStyle(),Fs(d),t.get("showTitle")&&(d.__title=c[h],d.on("mouseover",function(){var t=u.getItemStyle();d.setStyle({text:c[h],textPosition:t.textPosition||"bottom",textFill:t.fill||t.stroke||"#000",textAlign:t.textAlign||"center"})}).on("mouseout",function(){d.setStyle({textFill:null})})),d.trigger(i.get("iconStatus."+h)||"normal"),r.add(d),d.on("click",H(a.onclick,a,e,n,h)),p[h]=d})}(p,c,d),p.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&i[t].trigger(e)},c.render&&c.render(p,e,n,i)):c.remove&&c.remove(e,n):c.dispose&&c.dispose(e,n)}},updateView:function(t,e,n,i){B(this._features,function(t){t.updateView&&t.updateView(t.model,e,n,i)})},remove:function(t,e){B(this._features,function(n){n.remove&&n.remove(t,e)}),this.group.removeAll()},dispose:function(t,e){B(this._features,function(n){n.dispose&&n.dispose(t,e)})}});var fA=dc.toolbox.saveAsImage;function pA(t){this.model=t}pA.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:fA.title,type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:fA.lang.slice()},pA.prototype.unusable=!p.canvasSupported,pA.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r=document.createElement("a"),o=n.get("type",!0)||"png";r.download=i+"."+o,r.target="_blank";var a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if(r.href=a,"function"!=typeof MouseEvent||p.browser.ie||p.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var s=atob(a.split(",")[1]),l=s.length,u=new Uint8Array(l);l--;)u[l]=s.charCodeAt(l);var h=new Blob([u]);window.navigator.msSaveOrOpenBlob(h,i+"."+o)}else{var c=n.get("lang"),d='';window.open().document.write(d)}else{var f=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});r.dispatchEvent(f)}},uA("saveAsImage",pA);var gA=dc.toolbox.magicType;function mA(t){this.model=t}mA.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:A(gA.title),option:{},seriesIndex:{}};var vA=mA.prototype;vA.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return B(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n};var yA={line:function(t,e,n,i){if("bar"===t)return D({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.line")||{},!0)},bar:function(t,e,n,i){if("line"===t)return D({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.bar")||{},!0)},stack:function(t,e,n,i){if("line"===t||"bar"===t)return D({id:e,stack:"__ec_magicType_stack__"},i.get("option.stack")||{},!0)},tiled:function(t,e,n,i){if("line"===t||"bar"===t)return D({id:e,stack:""},i.get("option.tiled")||{},!0)}},xA=[["line","bar"],["stack","tiled"]];vA.onclick=function(t,e,n){var i=this.model,r=i.get("seriesIndex."+n);if(yA[n]){var o={series:[]};B(xA,function(t){N(t,n)>=0&&B(t,function(t){i.setIconStatus(t,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},function(e){var r=e.subType,a=e.id,s=yA[n](r,a,e,i);s&&(L(s,e.option),o.series.push(s));var l=e.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===n||"bar"===n)){var u=l.getAxesByScale("ordinal")[0];if(u){var h=u.dim+"Axis",c=t.queryComponents({mainType:h,index:e.get(name+"Index"),id:e.get(name+"Id")})[0].componentIndex;o[h]=o[h]||[];for(var d=0;d<=c;d++)o[h][c]=o[h][c]||{};o[h][c].boundaryGap="bar"===n}}}),e.dispatchAction({type:"changeMagicType",currentType:n,newOption:o})}},ef({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),uA("magicType",mA);var _A=dc.toolbox.dataView,bA=new Array(60).join("-"),wA="\t";function MA(t){return V(t,function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,function(){for(var t=arguments.length,r=arguments[t-1],o=e.getName(r),a=0;a=0)return!0}(t)){var r=function(t){for(var e=t.split(/\n+/g),n=[],i=V(SA(e.shift()).split(IA),function(t){return{name:t,data:[]}}),r=0;r=0)&&t(o,i,r)})}var EA=NA.prototype;function zA(t){return t[0]>t[1]&&t.reverse(),t}function RA(t,e){return Fr(t,e,{includeMainTypes:OA})}EA.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=GA[t.brushType](0,n,e);t.__rangeOffset={offset:HA[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})},EA.matchOutputRanges=function(t,e,n){CA(t,function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&B(i.coordSyses,function(i){var r=GA[t.brushType](1,i,t.range);n(t,r.values,i,e)})},this)},EA.setInputRanges=function(t,e){CA(t,function(t){var n,i,r,o,a,s=this.findTargetInfo(t,e);if(c&&(rt(!s||!0===s||t.coordRange,"coordRange must be specified when coord index specified."),rt(!s||!0!==s||t.range,"range must be specified in global brush.")),t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=GA[t.brushType](0,s.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?HA[t.brushType](l.values,u.offset,(n=l.xyMinMax,i=u.xyMinMax,r=YA(n),o=YA(i),a=[r[0]/o[0],r[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}},this)},EA.makePanelOpts=function(t,e){return V(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e&&e(n),clipPath:gw(i),isTargetByCursor:vw(i,t,n.coordSysModel),getLinearBrushOtherExtent:mw(i)}})},EA.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&LA(i.coordSyses,e.coordinateSystem)>=0},EA.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=RA(e,t),r=0;r=0||LA(i,t.getAxis("y").model)>=0)&&o.push(t)}),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:FA.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,e){CA(t.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:FA.geo})})}},VA=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],FA={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(el(t)),e}},GA={lineX:kA(WA,0),lineY:kA(WA,1),rect:function(t,e,n){var i=e[PA[t]]([n[0][0],n[1][0]]),r=e[PA[t]]([n[0][1],n[1][1]]),o=[zA([i[0],r[0]]),zA([i[1],r[1]])];return{values:o,xyMinMax:o}},polygon:function(t,e,n){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:V(n,function(n){var r=e[PA[t]](n);return i[0][0]=Math.min(i[0][0],r[0]),i[1][0]=Math.min(i[1][0],r[1]),i[0][1]=Math.max(i[0][1],r[0]),i[1][1]=Math.max(i[1][1],r[1]),r}),xyMinMax:i}}};function WA(t,e,n,i){c&&rt("cartesian2d"===n.type,"lineX/lineY brush is available only in cartesian2d.");var r=n.getAxis(["x","y"][t]),o=zA(V([0,1],function(t){return e?r.coordToData(r.toLocalCoord(i[t])):r.toGlobalCoord(r.dataToCoord(i[t]))})),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var HA={lineX:kA(jA,0),lineY:kA(jA,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return V(t,function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]})}};function jA(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function YA(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var ZA=B,UA="\0_ec_hist_store";function XA(t){var e=t[UA];return e||(e=t[UA]=[{}]),e}gu.registerSubTypeDefaulter("dataZoom",function(){return"slider"});var qA,KA,QA,JA,$A=["cartesian2d","polar","singleAxis"],tD=(KA=["axisIndex","axis","index","id"],QA=V(qA=(qA=["x","y","z","radius","angle","single"]).slice(),Jl),JA=V(KA=(KA||[]).slice(),Jl),function(t,e){B(qA,function(n,i){for(var r={name:n,capital:QA[i]},o=0;o=0}(t,a)&&function(t,i){var r=!1;return e(function(e){B(n(t,e)||[],function(t){i.records[e.name][t]&&(r=!0)})}),r}(t,a)&&(i(t,a),o=!0)}return a};function i(t,i){i.nodes.push(t),e(function(e){B(n(t,e)||[],function(t){i.records[e.name][t]=!0})})}}var nD=B,iD=Ml,rD=function(t,e,n,i){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=i,this._dataZoomModel=n};function oD(t,e){var n=t.getAxisModel(),i=t._percentWindow,r=t._valueWindow;if(i){var o=Al(r,[0,500]);o=Math.min(o,20);var a=e||0===i[0]&&100===i[1];n.setRange(a?null:+r[0].toFixed(o),a?null:+r[1].toFixed(o))}}rD.prototype={constructor:rD,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries(function(n){if(o=n.get("coordinateSystem"),N($A,o)>=0){var i=this._dimName,r=e.queryComponents({mainType:i+"Axis",index:n.get(i+"AxisIndex"),id:n.get(i+"AxisId")})[0];this._axisIndex===(r&&r.componentIndex)&&t.push(n)}var o},this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,n,i=this._dimName,r=this.ecModel,o=this.getAxisModel();return"x"===i||"y"===i?(e="gridIndex",t="x"===i?"y":"x"):(e="polarIndex",t="angle"===i?"radius":"angle"),r.eachComponent(t+"Axis",function(t){(t.get(e)||0)===(o.get(e)||0)&&(n=t)}),n},getMinMaxSpan:function(){return A(this._minMaxSpan)},calculateDataWindow:function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];nD(["start","end"],function(l,u){var h=t[l],c=t[l+"Value"];"percent"===r[u]?(null==h&&(h=o[u]),c=i.parse(_l(h,o,n))):(e=!0,h=_l(c=null==c?n[u]:i.parse(c),n,o)),s[u]=c,a[u]=h}),iD(s),iD(a);var l=this._minMaxSpan;function u(t,e,n,r,o){var a=o?"Span":"ValueSpan";hb(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=_l(t[s],n,r,!0),o&&(e[s]=i.parse(e[s]))}return e?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},reset:function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=(i=this,r=this._dimName,o=[1/0,-1/0],nD(e,function(t){var e=t.getData();e&&nD(e.mapDimension(r,!0),function(t){var n=e.getApproximateExtent(t);n[0]o[1]&&(o[1]=n[1])})}),o[1]0?0:NaN);var a=n.getMax(!0);null!=a&&"dataMax"!==a&&"function"!=typeof a?e[1]=a:r&&(e[1]=o>0?o-1:NaN),n.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0))}(i,o),o),function(t){var e=t._minMaxSpan={},n=t._dataZoomModel,i=t._dataExtent;nD(["min","max"],function(r){var o=n.get(r+"Span"),a=n.get(r+"ValueSpan");null!=a&&(a=t.getAxisModel().axis.scale.parse(a)),null!=a?o=_l(i[0]+a,i,[0,100],!0):null!=o&&(a=_l(o,[0,100],i,!0)-i[0]),e[r+"Span"]=o,e[r+"ValueSpan"]=a})}(this);var n=this.calculateDataWindow(t.option);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,oD(this)}var i,r,o},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,oD(this,!0))},filterData:function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&nD(i,function(t){var e=t.getData(),i=e.mapDimension(n,!0);i.length&&("weakFilter"===r?e.filterSelf(function(t){for(var n,r,a,s=0;so[1];if(u&&!h&&!c)return!0;u&&(a=!0),h&&(n=!0),c&&(r=!0)}return a&&n&&r}):nD(i,function(n){if("empty"===r)t.setData(e.map(n,function(t){return function(t){return t>=o[0]&&t<=o[1]}(t)?t:NaN}));else{var i={};i[n]=o,e.selectRange(i)}}),nD(i,function(t){e.setApproximateExtent(o,t)}))})}}};var aD=B,sD=tD,lD=lf({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(t,e,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var i=uD(t);this.mergeDefaultAndTheme(t,n),this.doInit(i)},mergeOption:function(t){var e=uD(t);D(this.option,t,!0),this.doInit(e)},doInit:function(t){var e=this.option;p.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),hD(this,t),aD([["start","startValue"],["end","endValue"]],function(t,n){"value"===this._rangePropMode[n]&&(e[t[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(e,n,i,r){var o=this.dependentModels[e.axis][n],a=o.__dzAxisProxy||(o.__dzAxisProxy=new rD(e.name,n,this,r));t[e.name+"_"+n]=a},this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();sD(function(e){var n=e.axisIndex;t[n]=Cr(t[n])},this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;sD(function(n){null!=t[n.axisIndex]&&(e=!0)},this);var n=t.orient;return null==n&&e?"orient":e?void 0:(null==n&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),n=this.option,i=this.dependentModels;if(t){var r="vertical"===e?"y":"x";i[r+"Axis"].length?(n[r+"AxisIndex"]=[0],t=!1):aD(i.singleAxis,function(i){t&&i.get("orient",!0)===e&&(n.singleAxisIndex=[i.componentIndex],t=!1)})}t&&sD(function(e){if(t){var i=[],r=this.dependentModels[e.axis];if(r.length&&!i.length)for(var o=0,a=r.length;o0?100:20}},getFirstTargetAxisModel:function(){var t;return sD(function(e){if(null==t){var n=this.get(e.axisIndex);n.length&&(t=this.dependentModels[e.axis][n[0]])}},this),t},eachTargetAxis:function(t,e){var n=this.ecModel;sD(function(i){aD(this.get(i.axisIndex),function(r){t.call(e,i,r,this,n)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var n=this.getAxisProxy(t,e);return n&&n.getAxisModel()},setRawRange:function(t,e){var n=this.option;aD([["start","startValue"],["end","endValue"]],function(e){null==t[e[0]]&&null==t[e[1]]||(n[e[0]]=t[e[0]],n[e[1]]=t[e[1]])},this),!e&&hD(this,t)},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var n in e)if(e.hasOwnProperty(n)&&e[n].hostedBy(this))return e[n];for(var n in e)if(e.hasOwnProperty(n)&&!e[n].hostedBy(this))return e[n]},getRangePropMode:function(){return this._rangePropMode.slice()}});function uD(t){var e={};return aD(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}function hD(t,e){var n=t._rangePropMode,i=t.get("rangeMode");aD([["start","startValue"],["end","endValue"]],function(t,r){var o=null!=e[t[0]],a=null!=e[t[1]];o&&!a?n[r]="percent":!o&&a?n[r]="value":i?n[r]=i[r]:o&&(n[r]="percent")})}var cD=Uh.extend({type:"dataZoom",render:function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},getTargetCoordInfo:function(){var t=this.dataZoomModel,e=this.ecModel,n={};return t.eachTargetAxis(function(t,i){var r=e.getComponent(t.axis,i);if(r){var o=r.getCoordSysModel();o&&function(t,e,n,i){for(var r,o=0;o1?"emphasis":"normal")}(t,e)},mD.onclick=function(t,e,n){vD[n].call(this)},mD.remove=function(t,e){this._brushController.unmount()},mD.dispose=function(t,e){this._brushController.dispose()};var vD={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var e=XA(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return ZA(n,function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n]){i[n]=t;break}}),i}(this.ecModel))}};function yD(t){var e={};return B(["xAxisIndex","yAxisIndex"],function(n){e[n]=t[n],null==e[n]&&(e[n]="all"),(!1===e[n]||"none"===e[n])&&(e[n]=[])}),e}mD._onBrush=function(t,e){if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]),new NA(yD(this.model.option),i,{include:["grid"]}).matchOutputRanges(t,i,function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(r("x",n,e[0]),r("y",n,e[1])):r({lineX:"x",lineY:"y"}[i],n,e)}}),function(t,e){var n=XA(t);ZA(e,function(e,i){for(var r=n.length-1;r>=0&&!n[r][i];r--);if(r<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var a=o.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}}),n.push(e)}(i,n),this._dispatchZoomAction(n)}function r(t,e,r){var o=e.getAxis(t),a=o.model,s=function(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},function(n){n.getAxisModel(t,e.componentIndex)&&(i=n)}),i}(t,a,i),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(r=hb(0,r.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}},mD._dispatchZoomAction=function(t){var e=[];fD(t,function(t,n){e.push(A(t))}),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},uA("dataZoom",gD),$d(function(t){if(t){var e=t.dataZoom||(t.dataZoom=[]);Y(e)||(t.dataZoom=e=[e]);var n=t.toolbox;if(n&&(Y(n)&&(n=n[0]),n&&n.feature)){var i=n.feature.dataZoom;r("xAxis",i),r("yAxis",i)}}function r(n,i){if(i){var r=n+"Index",o=i[r];null==o||"all"===o||Y(o)||(o=!1===o||"none"===o?[]:[o]),a=function(t,i){if(null==o||"all"===o||-1!==N(o,i)){var a={type:"select",$fromToolbox:!0,id:pD+n+i};a[r]=i,e.push(a)}},Y(s=t[n])||(s=s?[s]:[]),fD(s,a)}var a,s}});var xD=dc.toolbox.restore;function _D(t){this.model=t}_D.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:xD.title},_D.prototype.onclick=function(t,e,n){!function(t){t[UA]=null}(t),e.dispatchAction({type:"restore",from:this.uid})},uA("restore",_D),ef({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")}),lf({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});var bD=B,wD=Fl,MD=["","-webkit-","-moz-","-o-"];function SD(t){var e,n,i=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.getModel("textStyle"),s=t.get("padding");return r&&i.push((n="left "+(e=r)+"s cubic-bezier(0.23, 1, 0.32, 1),top "+e+"s cubic-bezier(0.23, 1, 0.32, 1)",V(MD,function(t){return t+"transition:"+n}).join(";"))),o&&(p.canvasSupported?i.push("background-Color:"+o):(i.push("background-Color:#"+Ue(o)),i.push("filter:alpha(opacity=70)"))),bD(["width","color","radius"],function(e){var n="border-"+e,r=wD(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))}),i.push(function(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();return i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px"),bD(["decoration","align"],function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)}),e.join(";")}(a)),null!=s&&i.push("padding:"+Gl(s).join("px ")+"px"),i.join(";")+";"}function ID(t,e){if(p.wxa)return null;var n=document.createElement("div"),i=this._zr=e.getZr();this.el=n,this._x=e.getWidth()/2,this._y=e.getHeight()/2,t.appendChild(n),this._container=t,this._show=!1,this._hideTimeout;var r=this;n.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!r._enterable){var n=i.handler;Zt(t,e,!0),n.dispatch("mousemove",e)}},n.onmouseleave=function(){r._enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1}}function AD(t){this._zr=t.getZr(),this._show=!1,this._hideTimeout}ID.prototype={constructor:ID,_enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),n=t.style;"absolute"!==n.position&&"absolute"!==e.position&&(n.position="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+SD(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",e.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var n,i=this._zr;i&&i.painter&&(n=i.painter.getViewportRootOffset())&&(t+=n.offsetLeft,e+=n.offsetTop);var r=this.el.style;r.left=t+"px",r.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(H(this.hide,this),t)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(this.el);n&&(t+=parseInt(n.paddingLeft,10)+parseInt(n.paddingRight,10)+parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),e+=parseInt(n.paddingTop,10)+parseInt(n.paddingBottom,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:t,height:e}}},AD.prototype={constructor:AD,_enterable:!0,update:function(){},show:function(t){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(t,e,n){this.el&&this._zr.remove(this.el);for(var i={},r=t,o=r.indexOf("{marker");o>=0;){var a=r.indexOf("|}"),s=r.substr(o+"{marker".length,a-o-"{marker".length);s.indexOf("sub")>-1?i["marker"+s]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:e[s],textOffset:[3,0]}:i["marker"+s]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:e[s]},o=(r=r.substr(a+1)).indexOf("{marker")}this.el=new za({style:{rich:i,text:t,textLineHeight:20,textBackgroundColor:n.get("backgroundColor"),textBorderRadius:n.get("borderRadius"),textFill:n.get("textStyle.color"),textPadding:n.get("padding")},z:n.get("z")}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){this.el&&this.el.attr("position",[t,e])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(H(this.hide,this),t)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var t=this.getSize();return{width:t[0],height:t[1]}}};var DD=H,TD=B,CD=bl,LD=new $a({shape:{x:-1,y:-1,width:2,height:2}});function kD(t){for(var e=t.pop();t.length;){var n=t.pop();n&&(pl.isInstance(n)&&(n=n.get("tooltip",!0)),"string"==typeof n&&(n={formatter:n}),e=new pl(n,e,e.ecModel))}return e}function PD(t,e){return t.dispatchAction||H(e.dispatchAction,e)}function OD(t){return"center"===t||"middle"===t}uf({type:"tooltip",init:function(t,e){if(!p.node){var n,i=t.getComponent("tooltip").get("renderMode");this._renderMode=Hr(i),"html"===this._renderMode?(n=new ID(e.getDom(),e),this._newLine="
"):(n=new AD(e),this._newLine="\n"),this._tooltipContent=n}},render:function(t,e,n){if(!p.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel.get("triggerOn");SS("itemTooltip",this._api,DD(function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))},this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY})})}},manuallyShowTip:function(t,e,n,i){if(i.from!==this.uid&&!p.node){var r=PD(i,n);this._ticket="";var o=i.dataByCoordSys;if(i.tooltip&&null!=i.x&&null!=i.y){var a=LD;a.position=[i.x,i.y],a.update(),a.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:a},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,event:{},dataByCoordSys:i.dataByCoordSys,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var s=fS(i,e),l=s.point[0],u=s.point[1];null!=l&&null!=u&&this._tryShow({offsetX:l,offsetY:u,position:i.position,target:s.el,event:{}},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target,event:{}},r))}},manuallyHideTip:function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(PD(i,n))},_manuallyAxisShowTip:function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s&&"axis"===(t=kD([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model,t])).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},_tryShow:function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;i&&i.length?this._showAxisTooltip(i,t):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,n,e)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,n,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var n=t.get("showDelay");e=H(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},_showAxisTooltip:function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=[],a=[],s=kD([e.tooltipOption,i]),l=this._renderMode,u=this._newLine,h={};TD(t,function(t){TD(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value,r=[];if(e&&null!=i){var s=VS(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt);B(t.seriesDataIndices,function(o){var u=n.getSeriesByIndex(o.seriesIndex),c=o.dataIndexInside,d=u&&u.getDataParams(c);if(d.axisDim=t.axisDim,d.axisIndex=t.axisIndex,d.axisType=t.axisType,d.axisId=t.axisId,d.axisValue=Vp(e.axis,i),d.axisValueLabel=s,d){a.push(d);var f,p=u.formatTooltip(c,!0,null,l);if(X(p)){f=p.html;var g=p.markers;D(h,g)}else f=p;r.push(f)}});var c=s;"html"!==l?o.push(r.join(u)):o.push((c?jl(c)+u:"")+r.join(u))}})},this),o.reverse(),o=o.join(this._newLine+this._newLine);var c=e.position;this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(s,c,r[0],r[1],this._tooltipContent,a):this._showTooltipContent(s,o,a,Math.random(),r[0],r[1],c,void 0,h)})},_showSeriesItemTooltip:function(t,e,n){var i=this._ecModel,r=e.seriesIndex,o=i.getSeriesByIndex(r),a=e.dataModel||o,s=e.dataIndex,l=e.dataType,u=a.getData(),h=kD([u.getItemModel(s),a,o&&(o.coordinateSystem||{}).model,this._tooltipModel]),c=h.get("trigger");if(null==c||"item"===c){var d,f,p=a.getDataParams(s,l),g=a.formatTooltip(s,!1,l,this._renderMode);X(g)?(d=g.html,f=g.markers):(d=g,f=null);var m="item_"+a.name+"_"+s;this._showOrMove(h,function(){this._showTooltipContent(h,d,p,m,t.offsetX,t.offsetY,t.position,t.target,f)}),n({type:"showTip",dataIndexInside:s,dataIndex:u.getRawIndex(s),seriesIndex:r,from:this.uid})}},_showComponentItemTooltip:function(t,e,n){var i=e.tooltip;"string"==typeof i&&(i={content:i,formatter:i});var r=new pl(i,this._tooltipModel,this._ecModel),o=r.get("content"),a=Math.random();this._showOrMove(r,function(){this._showTooltipContent(r,o,r.get("formatterParams")||{},a,t.offsetX,t.offsetY,t.position,e)}),n({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,h=t.get("formatter");a=a||t.get("position");var c=e;if(h&&"string"==typeof h)c=Ul(h,n,!0);else if("function"==typeof h){var d=DD(function(e,i){e===this._ticket&&(u.setContent(i,l,t),this._updatePosition(t,a,r,o,u,n,s))},this);this._ticket=i,c=h(n,i,d)}u.setContent(c,l,t),u.show(t),this._updatePosition(t,a,r,o,u,n,s)}},_updatePosition:function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),h=t.get("align"),c=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),"function"==typeof e&&(e=e([n,i],o,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),Y(e))n=CD(e[0],s),i=CD(e[1],l);else if(X(e)){e.width=u[0],e.height=u[1];var f=su(e,{width:s,height:l});n=f.x,i=f.y,h=null,c=null}else if("string"==typeof e&&a){var p=function(t,e,n){var i=n[0],r=n[1],o=0,a=0,s=e.width,l=e.height;switch(t){case"inside":o=e.x+s/2-i/2,a=e.y+l/2-r/2;break;case"top":o=e.x+s/2-i/2,a=e.y-r-5;break;case"bottom":o=e.x+s/2-i/2,a=e.y+l+5;break;case"left":o=e.x-i-5,a=e.y+l/2-r/2;break;case"right":o=e.x+s+5,a=e.y+l/2-r/2}return[o,a]}(e,d,u);n=p[0],i=p[1]}else p=function(t,e,n,i,r,o,a){var s=n.getOuterSize(),l=s.width,u=s.height;return null!=o&&(t+l+o>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}(n,i,r,s,l,h?null:20,c?null:20),n=p[0],i=p[1];h&&(n-=OD(h)?u[0]/2:"right"===h?u[0]:0),c&&(i-=OD(c)?u[1]/2:"bottom"===c?u[1]:0),t.get("confine")&&(p=function(t,e,n,i,r){var o=n.getOuterSize(),a=o.width,s=o.height;return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,i,r,s,l),n=p[0],i=p[1]),r.moveTo(n,i)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&TD(e,function(e,i){var r=e.dataByAxis||{},o=(t[i]||{}).dataByAxis||[];(n&=r.length===o.length)&&TD(r,function(t,e){var i=o[e]||{},r=t.seriesDataIndices||[],a=i.seriesDataIndices||[];(n&=t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===a.length)&&TD(r,function(t,e){var i=a[e];n&=t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex})})}),this._lastDataByCoordSys=t,!!n},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){p.node||(this._tooltipContent.hide(),DS("itemTooltip",e))}}),ef({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),ef({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){});var ND=["rect","polygon","keep","clear"],ED=B;function zD(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function RD(t,e,n){var i={};return ED(e,function(e){var r,o=i[e]=((r=function(){}).prototype.__hidden=r.prototype,new r);ED(t[e],function(t,i){if(Bx.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new Bx(r),"opacity"===i&&((r=A(r)).type="colorAlpha",o.__hidden.__alphaForOpacity=new Bx(r))}})}),i}function BD(t,e,n){var i;B(n,function(t){e.hasOwnProperty(t)&&zD(e[t])&&(i=!0)}),i&&B(n,function(n){e.hasOwnProperty(n)&&zD(e[n])?t[n]=A(e[n]):delete t[n]})}var VD={lineX:FD(0),lineY:FD(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&ig(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,o=t.y,a=t.width,s=t.height,l=i[0];return!!(ig(i,r,o)||ig(i,r+a,o)||ig(i,r,o+s)||ig(i,r+a,o+s)||Pn.create(t).contain(l[0],l[1])||WD(r,o,r+a,o,i)||WD(r,o,r,o+s,i)||WD(r+a,o,r+a,o+s,i)||WD(r,o+s,r+a,o+s,i))||void 0}}};function FD(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var r=i.range;return GD(e[t],r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]=-1e-6)return!1;var h=jD(r-t,r-a,o-e,o-s)/u;if(h<0||h>1)return!1;var c=jD(n-t,r-t,i-e,o-e)/u;return!(c<0||c>1)}function jD(t,e,n,i){return t*i-e*n}var YD=["inBrush","outOfBrush"],ZD="__ecBrushSelect",UD="__ecInBrushSelectEvent",XD=dd.VISUAL.BRUSH;function qD(t,e){if(!t.isDisposed()){var n=t.getZr();n[UD]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[UD]=!1}}function KD(t,e,n,i){for(var r=0,o=e.length;re[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&$D(e)}};function $D(t){return new Pn(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var tT=["#ddd"];function eT(t,e){return D({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new pl(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}function nT(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}lf({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var n=this.option;!e&&BD(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:tT},i.hasOwnProperty("liftZ")||(i.liftZ=5)},setAreas:function(t){c&&(rt(Y(t)),B(t,function(t){rt(t.brushType,"Illegal areas")})),t&&(this.areas=V(t,function(t){return eT(this.option,t)},this))},setBrushOption:function(t){this.brushOption=eT(this.option,t),this.brushType=this.brushOption.brushType}}),uf({type:"brush",init:function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new Vb(e.getZr())).on("brush",H(this._onBrush,this)).mount()},render:function(t){return this.model=t,nT.apply(this,arguments)},updateTransform:nT,updateView:nT,dispose:function(){this._brushController.dispose()},_onBrush:function(t,e){var n=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:A(t),$from:n})}}),ef({type:"brush",event:"brush"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(e){e.setAreas(t.areas)})}),ef({type:"brushSelect",event:"brushSelected",update:"none"},function(){});var iT=dc.toolbox.brush;function rT(t,e,n){this.model=t,this.ecModel=e,this.api=n,this._brushType,this._brushMode}rT.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:A(iT.title)};var oT=rT.prototype;function aT(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};B(i,function(t,e){o[e]||sT(r,e)||(r[e]=t)}),n.label&&!sT(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function sT(t,e){return t.hasOwnProperty(e)}oT.render=oT.updateView=function(t,e,n){var i,r,o;e.eachComponent({mainType:"brush"},function(t){i=t.brushType,r=t.brushOption.brushMode||"single",o|=t.areas.length}),this._brushType=i,this._brushMode=r,B(t.get("type",!0),function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===i)?"emphasis":"normal")})},oT.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return B(t.get("type",!0),function(t){e[t]&&(n[t]=e[t])}),n},oT.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},uA("brush",rT),$d(function(t,e){var n=t&&t.brush;if(Y(n)||(n=n?[n]:[]),n.length){var i=[];B(n,function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))});var r=t&&t.toolbox;Y(r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var o,a,s=r.feature||(r.feature={}),l=s.brush||(s.brush={}),u=l.type||(l.type=[]);u.push.apply(u,i),a={},B(o=u,function(t){a[t]=1}),o.length=0,B(a,function(t,e){o.push(e)}),e&&!u.length&&u.push.apply(u,ND)}}),lf({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),uf({type:"title",render:function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=tt(t.get("textBaseline"),t.get("textVerticalAlign")),l=new za({style:Ys({},r,{text:t.get("text"),textFill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),h=t.get("subtext"),c=new za({style:Ys({},o,{text:h,textFill:o.getTextColor(),y:u.height+t.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),f=t.get("sublink"),p=t.get("triggerEvent",!0);l.silent=!d&&!p,c.silent=!f&&!p,d&&l.on("click",function(){window.open(d,"_"+t.get("target"))}),f&&c.on("click",function(){window.open(f,"_"+t.get("subtarget"))}),l.eventData=c.eventData=p?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),h&&i.add(c);var g=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=g.width,m.height=g.height;var v=su(m,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),i.attr("position",[v.x,v.y]);var y={textAlign:a,textVerticalAlign:s};l.setStyle(y),c.setStyle(y),g=i.getBoundingRect();var x=v.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var b=new $a({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});i.add(b)}}}),gu.registerSubTypeDefaulter("timeline",function(){return"slider"}),ef({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e){var n=e.getComponent("timeline");return n&&null!=t.currentIndex&&(n.setCurrentIndex(t.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.setPlayState(!1)),e.resetOption("timeline"),L({currentIndex:n.option.currentIndex},t)}),ef({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)});var lT=gu.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(t,e,n){this._data,this._names,this.mergeDefaultAndTheme(t,n),this._initData()},mergeOption:function(t){lT.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],n=t.axisType,i=this._names=[];if("category"===n){var r=[];B(e,function(t,e){var n,o=Pr(t);X(t)?(n=A(t)).value=e:n=e,r.push(n),U(o)||null!=o&&!isNaN(o)||(o=""),i.push(o+"")}),e=r}var o={category:"ordinal",time:"time"}[n]||"number";(this._data=new Tf([{name:"value",type:o}],this)).initData(e,i)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}});z(lT.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}}),Ph);var uT=Uh.extend({type:"timeline"}),hT=function(t,e,n,i){vg.call(this,t,e,n),this.type=i||"value",this.model=null};hT.prototype={constructor:hT,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},E(hT,vg);var cT=H,dT=B,fT=Math.PI;function pT(t,e,n,i,r,o){var a=e.get("color");r?(r.setColor(a),n.add(r),o&&o.onUpdate(r)):((r=Jp(t.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(r),o&&o.onCreate(r));var s=e.getItemStyle(["color","symbol","symbolSize"]);r.setStyle(s),i=D({rectHover:!0,z2:100},i,!0);var l=t.get("symbolSize");(l=l instanceof Array?l.slice():[+l,+l])[0]/=2,l[1]/=2,i.scale=l;var u=t.get("symbolOffset");if(u){var h=i.position=i.position||[0,0];h[0]+=bl(u[0],l[0]),h[1]+=bl(u[1],l[1])}var c=t.get("symbolRotate");return i.rotation=(c||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function gT(t,e,n,i,r){if(!t.dragging){var o=i.getModel("checkpointStyle"),a=n.dataToCoord(i.getData().get(["value"],e));r||!o.get("animation",!0)?t.attr({position:[a,0]}):(t.stopAnimation(!0),t.animateTo({position:[a,0]},o.get("animationDuration",!0),o.get("animationEasing",!0)))}}uT.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,n,i){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,n),o=this._createGroup("mainGroup"),a=this._createGroup("labelGroup"),s=this._axis=this._createAxis(r,t);t.formatTooltip=function(t){return jl(s.scale.getLabel(t))},dT(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](r,o,s,t)},this),this._renderAxisLabel(r,a,s,t),this._position(r,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var n=t.get("label.position"),i=t.get("orient"),r=function(t,e){return su(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e);null==n||"auto"===n?n="horizontal"===i?r.y+r.height/2=0||"+"===n?"left":"right"},h={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:fT/2},d="vertical"===i?r.height:r.width,f=t.getModel("controlStyle"),p=f.get("show",!0),g=p?f.get("itemSize"):0,m=p?f.get("itemGap"):0,v=g+m,y=t.get("label.rotate")||0;y=y*fT/180;var x=f.get("position",!0),_=p&&f.get("showPlayBtn",!0),b=p&&f.get("showPrevBtn",!0),w=p&&f.get("showNextBtn",!0),M=0,S=d;return"left"===x||"bottom"===x?(_&&(o=[0,0],M+=v),b&&(a=[M,0],M+=v),w&&(s=[S-g,0],S-=v)):(_&&(o=[S-g,0],S-=v),b&&(a=[0,0],M+=v),w&&(s=[S-g,0],S-=v)),l=[M,S],t.get("inverse")&&l.reverse(),{viewRect:r,mainLength:d,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:n,labelAlign:t.get("label.align")||u[i],labelBaseline:t.get("label.verticalAlign")||t.get("label.baseline")||h[i],playPosition:o,prevBtnPosition:a,nextBtnPosition:s,axisExtent:l,controlSize:g,controlGap:m}},_position:function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=se(),a=r.x,s=r.y+r.height;ce(o,o,[-a,-s]),de(o,o,-fT/2),ce(o,o,[a,s]),(r=r.clone()).applyTransform(o)}var l=m(r),u=m(n.getBoundingRect()),h=m(i.getBoundingRect()),c=n.position,d=i.position;d[0]=c[0]=l[0][0];var f,p=t.labelPosOpt;function g(t){var e=t.position;t.origin=[l[0][0]-e[0],l[1][0]-e[1]]}function m(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}isNaN(p)?(v(c,u,l,1,f="+"===p?0:1),v(d,h,l,1,1-f)):(v(c,u,l,1,f=p>=0?0:1),d[1]=c[1]+p),n.attr("position",c),i.attr("position",d),n.rotation=i.rotation=t.rotation,g(n),g(i)},_createAxis:function(t,e){var n=e.getData(),i=e.get("axisType"),r=Rp(e,i);r.getTicks=function(){return n.mapArray(["value"],function(t){return t})};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.niceTicks();var a=new hT("value",r,t.axisExtent,i);return a.model=e,a},_createGroup:function(t){var e=this["_"+t]=new On;return this.group.add(e),e},_renderAxisLine:function(t,e,n,i){var r=n.getExtent();i.get("lineStyle.show")&&e.add(new es({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:C({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,n,i){var r=i.getData(),o=n.scale.getTicks();dT(o,function(t){var o=n.dataToCoord(t),a=r.getItemModel(t),s=a.getModel("itemStyle"),l=a.getModel("emphasis.itemStyle"),u={position:[o,0],onclick:cT(this._changeTimeline,this,t)},h=pT(a,s,e,u);Fs(h,l.getItemStyle()),a.get("tooltip")?(h.dataIndex=t,h.dataModel=i):h.dataIndex=h.dataModel=null},this)},_renderAxisLabel:function(t,e,n,i){if(n.getLabelModel().get("show")){var r=i.getData(),o=n.getViewLabels();dT(o,function(i){var o=i.tickValue,a=r.getItemModel(o),s=a.getModel("label"),l=a.getModel("emphasis.label"),u=n.dataToCoord(i.tickValue),h=new za({position:[u,0],rotation:t.labelRotation-t.rotation,onclick:cT(this._changeTimeline,this,o),silent:!1});Ys(h.style,s,{text:i.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(h),Fs(h,Ys({},l))},this)}},_renderControl:function(t,e,n,i){var r=t.controlSize,o=t.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel("emphasis.controlStyle").getItemStyle(),l=[0,-r/2,r,r],u=i.getPlayState(),h=i.get("inverse",!0);function c(t,n,u,h){if(t){var c=function(t,e,n,i){return bs(t.get(e).replace(/^path:\/\//,""),A(i||{}),new Pn(n[0],n[1],n[2],n[3]),"center")}(i,n,l,{position:t,origin:[r/2,0],rotation:h?-o:0,rectHover:!0,style:a,onclick:u});e.add(c),Fs(c,s)}}c(t.nextBtnPosition,"controlStyle.nextIcon",cT(this._changeTimeline,this,h?"-":"+")),c(t.prevBtnPosition,"controlStyle.prevIcon",cT(this._changeTimeline,this,h?"+":"-")),c(t.playPosition,"controlStyle."+(u?"stopIcon":"playIcon"),cT(this._handlePlayClick,this,!u),!0)},_renderCurrentPointer:function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=cT(s._handlePointerDrag,s),t.ondragend=cT(s._handlePointerDragend,s),gT(t,o,n,i,!0)},onUpdate:function(t){gT(t,o,n,i)}};this._currentPointer=pT(a,a,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var n=this._toAxisCoord(t)[0],i=Ml(this._axis.getExtent().slice());n>i[1]&&(n=i[1]),n"),r&&(o+=vT(r),null!=n&&(o+=" : ")),null!=n&&(o+=vT(i)),o},getData:function(){return this._data},setData:function(t){this._data=t}});z(xT,Ph),xT.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});var _T=N;function bT(t,e,n,i,r,o){var a=[],s=Yf(e,i)?e.getCalculationInfo("stackResultDimension"):i,l=TT(e,s,t),u=e.indicesOfNearest(s,l)[0];a[r]=e.get(n,u),a[o]=e.get(i,u);var h=Sl(e.get(i,u));return(h=Math.min(h,20))>=0&&(a[o]=+a[o].toFixed(h)),a}var wT=j,MT={min:wT(bT,"min"),max:wT(bT,"max"),average:wT(bT,"average")};function ST(t,e){var n=t.getData(),i=t.coordinateSystem;if(e&&!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!Y(e.coord)&&i){var r=i.dimensions,o=IT(e,n,i,t);if((e=A(e)).type&&MT[e.type]&&o.baseAxis&&o.valueAxis){var a=_T(r,o.baseAxis.dim),s=_T(r,o.valueAxis.dim);e.coord=MT[e.type](n,o.baseDataDim,o.valueDataDim,a,s),e.value=e.coord[s]}else{for(var l=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],u=0;u<2;u++)MT[l[u]]&&(l[u]=TT(n,n.mapDimension(r[u]),l[u]));e.coord=l}}return e}function IT(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(function(t,e){var n=t.getData(),i=n.dimensions;e=n.getDimension(e);for(var r=0;r=0&&"number"==typeof s&&(s=+s.toFixed(Math.min(f,20))),c.coord[u]=d.coord[u]=s,i=[c,d,{type:o,valueIndex:i.valueIndex,value:s}]}return(i=[ST(t,i[0]),ST(t,i[1]),C({},i[2])])[2].type=i[2].type||"",D(i[2],i[0]),D(i[2],i[1]),i};function PT(t){return!isNaN(t)&&!isFinite(t)}function OT(t,e,n,i){var r=1-t,o=i.dimensions[t];return PT(e[r])&&PT(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function NT(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(OT(1,n,i,t)||OT(0,n,i,t)))return!0}return AT(t,e[0])&&AT(t,e[1])}function ET(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=bl(s.get("x"),r.getWidth()),u=bl(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var h=a.dimensions,c=t.get(h[0],e),d=t.get(h[1],e);o=a.dataToPoint([c,d])}if("cartesian2d"===a.type){var f=a.getAxis("x"),p=a.getAxis("y");h=a.dimensions,PT(t.get(h[0],e))?o[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):PT(t.get(h[1],e))&&(o[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}CT.extend({type:"markLine",updateTransform:function(t,e,n){e.eachSeries(function(t){var e=t.markLineModel;if(e){var i=e.getData(),r=e.__from,o=e.__to;r.each(function(e){ET(r,e,!0,t,n),ET(o,e,!1,t,n)}),i.each(function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},renderSeries:function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new O_);this.group.add(l.group);var u=function(t,e,n){var i;i=t?V(t&&t.dimensions,function(t){return L({name:t},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{})}):[{name:"value",type:"float"}];var r=new Tf(i,n),o=new Tf(i,n),a=new Tf([],n),s=V(n.get("data"),j(kT,e,t,n));t&&(s=G(s,j(NT,t)));var l=t?DT:function(t){return t.value};return r.initData(V(s,function(t){return t[0]}),null,l),o.initData(V(s,function(t){return t[1]}),null,l),a.initData(V(s,function(t){return t[2]})),a.hasItemOption=!0,{from:r,to:o,line:a}}(r,t,e),h=u.from,c=u.to,d=u.line;e.__from=h,e.__to=c,e.setData(d);var f=e.get("symbol"),p=e.get("symbolSize");function g(e,n,r){var o=e.getItemModel(n);ET(e,n,r,t,i),e.setItemVisual(n,{symbolSize:o.get("symbolSize")||p[r?0:1],symbol:o.get("symbol",!0)||f[r?0:1],color:o.get("itemStyle.color")||a.getVisual("color")})}Y(f)||(f=[f,f]),"number"==typeof p&&(p=[p,p]),u.from.each(function(t){g(h,t,!0),g(c,t,!1)}),d.each(function(t){var e=d.getItemModel(t).get("lineStyle.color");d.setItemVisual(t,{color:e||h.getItemVisual(t,"color")}),d.setItemLayout(t,[h.getItemLayout(t),c.getItemLayout(t)]),d.setItemVisual(t,{fromSymbolSize:h.getItemVisual(t,"symbolSize"),fromSymbol:h.getItemVisual(t,"symbol"),toSymbolSize:c.getItemVisual(t,"symbolSize"),toSymbol:c.getItemVisual(t,"symbol")})}),l.updateData(d),u.line.eachItemGraphicEl(function(t,n){t.traverse(function(t){t.dataModel=e})}),l.__keep=!0,l.group.silent=e.get("silent")||t.get("silent")}}),$d(function(t){t.markLine=t.markLine||{}}),xT.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});var zT=function(t,e,n,i){var r=ST(t,i[0]),o=ST(t,i[1]),a=$,s=r.coord,l=o.coord;s[0]=a(s[0],-1/0),s[1]=a(s[1],-1/0),l[0]=a(l[0],1/0),l[1]=a(l[1],1/0);var u=T([{},r,o]);return u.coord=[r.coord,o.coord],u.x0=r.x,u.y0=r.y,u.x1=o.x,u.y1=o.y,u};function RT(t){return!isNaN(t)&&!isFinite(t)}function BT(t,e,n,i){var r=1-t;return RT(e[r])&&RT(n[r])}function VT(t,e){var n=e.coord[0],i=e.coord[1];return!("cartesian2d"!==t.type||!n||!i||!BT(1,n,i)&&!BT(0,n,i))||AT(t,{coord:n,x:e.x0,y:e.y0})||AT(t,{coord:i,x:e.x1,y:e.y1})}function FT(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=bl(s.get(n[0]),r.getWidth()),u=bl(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(n,e));else{var h=[f=t.get(n[0],e),p=t.get(n[1],e)];a.clampData&&a.clampData(h,h),o=a.dataToPoint(h,!0)}if("cartesian2d"===a.type){var c=a.getAxis("x"),d=a.getAxis("y"),f=t.get(n[0],e),p=t.get(n[1],e);RT(f)?o[0]=c.toGlobalCoord(c.getExtent()["x0"===n[0]?0:1]):RT(p)&&(o[1]=d.toGlobalCoord(d.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var GT=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];CT.extend({type:"markArea",updateTransform:function(t,e,n){e.eachSeries(function(t){var e=t.markAreaModel;if(e){var i=e.getData();i.each(function(e){var r=V(GT,function(r){return FT(i,e,r,t,n)});i.setItemLayout(e,r),i.getItemGraphicEl(e).setShape("points",r)})}},this)},renderSeries:function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new On});this.group.add(l.group),l.__keep=!0;var u=function(t,e,n){var i,r;t?(i=V(t&&t.dimensions,function(t){var n=e.getData();return L({name:t},n.getDimensionInfo(n.mapDimension(t))||{})}),r=new Tf(V(["x0","y0","x1","y1"],function(t,e){return{name:t,type:i[e%2].type}}),n)):r=new Tf(i=[{name:"value",type:"float"}],n);var o=V(n.get("data"),j(zT,e,t,n));t&&(o=G(o,j(VT,t)));var a=t?function(t,e,n,i){return t.coord[Math.floor(i/2)][i%2]}:function(t){return t.value};return r.initData(o,null,a),r.hasItemOption=!0,r}(r,t,e);e.setData(u),u.each(function(e){u.setItemLayout(e,V(GT,function(n){return FT(u,e,n,t,i)})),u.setItemVisual(e,{color:a.getVisual("color")})}),u.diff(l.__data).add(function(t){var e=new Za({shape:{points:u.getItemLayout(t)}});u.setItemGraphicEl(t,e),l.group.add(e)}).update(function(t,n){var i=l.__data.getItemGraphicEl(n);$s(i,{shape:{points:u.getItemLayout(t)}},e,t),l.group.add(i),u.setItemGraphicEl(t,i)}).remove(function(t){var e=l.__data.getItemGraphicEl(t);l.group.remove(e)}).execute(),u.eachItemGraphicEl(function(t,n){var i=u.getItemModel(n),r=i.getModel("label"),o=i.getModel("emphasis.label"),a=u.getItemVisual(n,"color");t.useStyle(L(i.getModel("itemStyle").getItemStyle(),{fill:$e(a,.4),stroke:a})),t.hoverStyle=i.getModel("emphasis.itemStyle").getItemStyle(),js(t.style,t.hoverStyle,r,o,{labelFetcher:e,labelDataIndex:n,defaultText:u.getName(n)||"",isRectText:!0,autoColor:a}),Fs(t,{}),t.dataModel=e}),l.__data=u,l.group.silent=e.get("silent")||t.get("silent")}}),$d(function(t){t.markArea=t.markArea||{}});var WT=lf({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{}},mergeOption:function(t){WT.superCall(this,"mergeOption",t)},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}});function HT(t,e,n){var i,r={},o="toggleSelected"===t;return n.eachComponent("legend",function(n){o&&null!=i?n[i?"select":"unSelect"](e.name):(n[t](e.name),i=n.isSelected(e.name)),B(n.getData(),function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);r.hasOwnProperty(e)?r[e]=r[e]&&i:r[e]=i}})}),{name:e.name,selected:r}}ef("legendToggleSelect","legendselectchanged",j(HT,"toggleSelected")),ef("legendSelect","legendselected",j(HT,"select")),ef("legendUnSelect","legendunselected",j(HT,"unSelect"));var jT=j,YT=B,ZT=On,UT=uf({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new ZT),this._backgroundEl,this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},render:function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left"),this.renderInner(r,t,e,n);var o=t.getBoxLayoutParams(),a={width:n.getWidth(),height:n.getHeight()},s=t.get("padding"),l=su(o,a,s),u=this.layoutInner(t,r,l,i),h=su(L({width:u.width,height:u.height},o),a,s);this.group.attr("position",[h.x-u.x,h.y-u.y]),this.group.add(this._backgroundEl=dA(u,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl)},renderInner:function(t,e,n,i){var r=this.getContentGroup(),o=ht(),a=e.get("selectedMode"),s=[];n.eachRawSeries(function(t){!t.get("legendHoverLink")&&s.push(t.id)}),YT(e.getData(),function(l,u){var h=l.get("name");if(this.newlineDisabled||""!==h&&"\n"!==h){var d=n.getSeriesByName(h)[0];if(!o.get(h)){if(d){var f=d.getData(),p=f.getVisual("color");"function"==typeof p&&(p=p(d.getDataParams(0)));var g=f.getVisual("legendSymbol")||"roundRect",m=f.getVisual("symbol");this._createItem(h,u,l,e,g,m,t,p,a).on("click",jT(XT,h,i)).on("mouseover",jT(qT,d.name,null,i,s)).on("mouseout",jT(KT,d.name,null,i,s)),o.set(h,!0)}else n.eachRawSeries(function(n){if(!o.get(h)&&n.legendDataProvider){var r=n.legendDataProvider(),c=r.indexOfName(h);if(c<0)return;var d=r.getItemVisual(c,"color");this._createItem(h,u,l,e,"roundRect",null,t,d,a).on("click",jT(XT,h,i)).on("mouseover",jT(qT,null,h,i,s)).on("mouseout",jT(KT,null,h,i,s)),o.set(h,!0)}},this);c&&(o.get(h)||console.warn(h+" series not exists. Legend data should be same with series name or data name."))}}else r.add(new ZT({newline:!0}))},this)},_createItem:function(t,e,n,i,r,o,a,s,l){var u=i.get("itemWidth"),h=i.get("itemHeight"),c=i.get("inactiveColor"),d=i.get("symbolKeepAspect"),f=i.isSelected(t),p=new ZT,g=n.getModel("textStyle"),m=n.get("icon"),v=n.getModel("tooltip"),y=v.parentModel;if(r=m||r,p.add(Jp(r,0,0,u,h,f?s:c,null==d||d)),!m&&o&&(o!==r||"none"===o)){var x=.8*h;"none"===o&&(o="circle"),p.add(Jp(o,(u-x)/2,(h-x)/2,x,x,f?s:c,null==d||d))}var _="left"===a?u+5:-5,b=a,w=i.get("formatter"),M=t;"string"==typeof w&&w?M=w.replace("{name}",null!=t?t:""):"function"==typeof w&&(M=w(t)),p.add(new za({style:Ys({},g,{text:M,x:_,y:h/2,textFill:f?g.getTextColor():c,textAlign:b,textVerticalAlign:"middle"})}));var S=new $a({shape:p.getBoundingRect(),invisible:!0,tooltip:v.get("show")?C({content:t,formatter:y.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:i.componentIndex,name:t,$vars:["name"]}},v.option):null});return p.add(S),p.eachChild(function(t){t.silent=!0}),S.silent=!l,this.getContentGroup().add(p),Fs(p),p.__legendDataIndex=e,p},layoutInner:function(t,e,n){var i=this.getContentGroup();au(t.get("orient"),i,t.get("itemGap"),n.width,n.height);var r=i.getBoundingRect();return i.attr("position",[-r.x,-r.y]),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function XT(t,e){e.dispatchAction({type:"legendToggleSelect",name:t})}function qT(t,e,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function KT(t,e,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}tf(function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;nn[l],p=[-c.x,-c.y];i||(p[s]=r.position[s]);var g=[0,0],m=[-d.x,-d.y],v=tt(t.get("pageButtonGap",!0),t.get("itemGap",!0));f&&("end"===t.get("pageButtonPosition",!0)?m[s]+=n[l]-d[l]:g[s]+=d[l]+v),m[1-s]+=c[u]/2-d[u]/2,r.attr("position",p),o.attr("position",g),a.attr("position",m);var y=this.group.getBoundingRect();if((y={x:0,y:0})[l]=f?n[l]:c[l],y[u]=Math.max(c[u],d[u]),y[h]=Math.min(0,d[h]+m[1-s]),o.__rectSize=n[l],f){var x={x:0,y:0};x[l]=Math.max(n[l]-d[l]-v,0),x[u]=y[u],o.setClipPath(new $a({shape:x})),o.__rectSize=x[l]}else a.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var _=this._getPageInfo(t);return null!=_.pageIndex&&$s(r,{position:_.contentPosition},!!f&&t),this._updatePageInfoView(t,_),y},_pageGo:function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},_updatePageInfoView:function(t,e){var n=this._controllerGroup;B(["pagePrev","pageNext"],function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")});var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",U(r)?r.replace("{current}",a).replace("{total}",s):r({current:a,total:s}))},_getPageInfo:function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=tC[r],a=eC[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],h=l.length,c=h?1:0,d={contentPosition:n.position.slice(),pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var f=y(u);d.contentPosition[r]=-f.s;for(var p=s+1,g=f,m=f,v=null;p<=h;++p)(!(v=y(l[p]))&&m.e>g.s+i||v&&!x(v,g.s))&&(g=m.i>g.i?m:v)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),m=v;for(p=s-1,g=f,m=f,v=null;p>=-1;--p)(v=y(l[p]))&&x(m,v.s)||!(g.i=e&&t.s<=e+i}},_findTargetItemIndex:function(t){var e,n=this.getContentGroup();return this._showController?n.eachChild(function(n,i){n.__legendDataIndex===t&&(e=i)}):e=0,e}});ef("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})}),lD.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}});var iC=$a,rC=_l,oC=Ml,aC=H,sC=B,lC="horizontal",uC=5,hC=["line","bar","candlestick","scatter"],cC=cD.extend({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,n,i){cC.superApply(this,"render",arguments),uc(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),!1!==this.dataZoomModel.get("show")?(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){cC.superApply(this,"remove",arguments),hc(this,"_dispatchZoomAction")},dispose:function(){cC.superApply(this,"dispose",arguments),hc(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new On;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,n=this._findCoordRect(),i={width:e.getWidth(),height:e.getHeight()},r=this._orient===lC?{right:i.width-n.x-n.width,top:i.height-30-7,width:n.width,height:30}:{right:7,top:n.y,width:30,height:n.height},o=hu(t.option);B(["right","top","width","height"],function(t){"ph"===o[t]&&(o[t]=r[t])});var a=su(o,i,t.padding);this._location={x:a.x,y:a.y},this._size=[a.width,a.height],"vertical"===this._orient&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.barGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==lC||r?n===lC&&r?{scale:a?[-1,1]:[-1,-1]}:"vertical"!==n||r?{scale:a?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:a?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:a?[1,1]:[1,-1]});var s=t.getBoundingRect([o]);t.attr("position",[e.x-s.x,e.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.barGroup;n.add(new iC({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),n.add(new iC({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:H(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,n=t.series,i=n.getRawData(),r=n.getShadowDim?n.getShadowDim():t.otherDim;if(null!=r){var o=i.getDataExtent(r),a=.3*(o[1]-o[0]);o=[o[0]-a,o[1]+a];var s,l=[0,e[1]],u=[0,e[0]],h=[[e[0],0],[0,0]],c=[],d=u[1]/(i.count()-1),f=0,p=Math.round(i.count()/e[0]);i.each([r],function(t,e){if(p>0&&e%p)f+=d;else{var n=null==t||isNaN(t)||""===t,i=n?0:rC(t,o,l,!0);n&&!s&&e?(h.push([h[h.length-1][0],0]),c.push([c[c.length-1][0],0])):!n&&s&&(h.push([f,0]),c.push([f,0])),h.push([f,i]),c.push([f,i]),f+=d,s=n}});var g=this.dataZoomModel;this._displayables.barGroup.add(new Za({shape:{points:h},style:L({fill:g.get("dataBackgroundColor")},g.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new Ua({shape:{points:c},style:g.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis(function(r,o){B(t.getAxisProxy(r.name,o).getTargetSeriesModels(),function(t){if(!(n||!0!==e&&N(hC,t.get("type"))<0)){var a,s=i.getComponent(r.axis,o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[r.name],u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:r.name,otherDim:l,otherAxisInverse:a}}},this)},this),n}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],n=t.handleLabels=[],i=this._displayables.barGroup,r=this._size,o=this.dataZoomModel;i.add(t.filler=new iC({draggable:!0,cursor:dC(this._orient),drift:aC(this._onDragMove,this,"all"),onmousemove:function(t){qt(t.event)},ondragstart:aC(this._showDataInfo,this,!0),ondragend:aC(this._onDragEnd,this),onmouseover:aC(this._showDataInfo,this,!0),onmouseout:aC(this._showDataInfo,this,!1),style:{fill:o.get("fillerColor"),textPosition:"inside"}})),i.add(new iC({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{stroke:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),sC([0,1],function(t){var r=al(o.get("handleIcon"),{cursor:dC(this._orient),draggable:!0,drift:aC(this._onDragMove,this,t),onmousemove:function(t){qt(t.event)},ondragend:aC(this._onDragEnd,this),onmouseover:aC(this._showDataInfo,this,!0),onmouseout:aC(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),a=r.getBoundingRect();this._handleHeight=bl(o.get("handleSize"),this._size[1]),this._handleWidth=a.width/a.height*this._handleHeight,r.setStyle(o.getModel("handleStyle").getItemStyle());var s=o.get("handleColor");null!=s&&(r.style.fill=s),i.add(e[t]=r);var l=o.textStyleModel;this.group.add(n[t]=new za({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:l.getTextColor(),textFont:l.getFont()},z2:10}))},this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[rC(t[0],[0,100],e,!0),rC(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];hb(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?rC(o.minSpan,a,r,!0):null,null!=o.maxSpan?rC(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=oC([rC(i[0],r,a,!0),rC(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(t){var e=this._displayables,n=this._handleEnds,i=oC(n.slice()),r=this._size;sC([0,1],function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scale:[o/2,o/2],position:[n[t],r[1]/2-o/2]})},this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=t?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var h=oC(this._handleEnds.slice());function c(t){var e=el(n.handles[t].parent,this.group),a=il(0===t?"right":"left",e),s=this._handleWidth/2+uC,l=nl([h[t]+(0===t?-s:s),this._size[1]/2],e);i[t].setStyle({x:l[0],y:l[1],textVerticalAlign:r===lC?"middle":a,textAlign:r===lC?a:"center",text:o[t]})}c.call(this,0),c.call(this,1)},_formatLabel:function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");null!=r&&"auto"!==r||(r=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(r,20));return Z(i)?i(t,o):U(i)?i.replace("{value}",o):o},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,n){this._dragging=!0;var i=nl([e,n],this._displayables.barGroup.getLocalTransform(),!0),r=this._updateInterval(t,i[0]),o=this.dataZoomModel.get("realtime");this._updateView(!o),r&&o&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,n=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var t;if(sC(this.getTargetCoordInfo(),function(e){if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}}),!t){var e=this.api.getWidth(),n=this.api.getHeight();t={x:.2*e,y:.2*n,width:.6*e,height:.6*n}}return t}});function dC(t){return"vertical"===t?"ns-resize":"ew-resize"}lD.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});var fC="\0_ec_dataZoom_roams";function pC(t,e){var n=vC(t),i=e.dataZoomId,r=e.coordId;B(n,function(t,n){var o=t.dataZoomInfos;o[i]&&N(e.allCoordIds,r)<0&&(delete o[i],t.count--)}),yC(n);var o=n[r];o||((o=n[r]={coordId:r,dataZoomInfos:{},count:0}).controller=function(t,e){var n=new oy(t.getZr());return B(["pan","zoom","scrollMove"],function(t){n.on(t,function(n){var i=[];B(e.dataZoomInfos,function(r){if(n.isAvailableBehavior(r.dataZoomModel.option)){var o=(r.getRange||{})[t],a=o&&o(e.controller,n);!r.dataZoomModel.get("disabled",!0)&&a&&i.push({dataZoomId:r.dataZoomId,start:a[0],end:a[1]})}}),i.length&&e.dispatchAction(i)})}),n}(t,o),o.dispatchAction=j(xC,t)),!o.dataZoomInfos[i]&&o.count++,o.dataZoomInfos[i]=e;var a,s,l,u,h=(a=o.dataZoomInfos,l={type_true:2,type_move:1,type_false:0,type_undefined:-1},u=!0,B(a,function(t){var e=t.dataZoomModel,n=!e.get("disabled",!0)&&(!e.get("zoomLock",!0)||"move");l["type_"+n]>l["type_"+s]&&(s=n),u&=e.get("preventDefaultMouseMove",!0)}),{controlType:s,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!u}});o.controller.enable(h.controlType,h.opt),o.controller.setPointerChecker(e.containsPoint),uc(o,"dispatchAction",e.dataZoomModel.get("throttle",!0),"fixRate")}function gC(t,e){var n=vC(t);B(n,function(t){t.controller.dispose();var n=t.dataZoomInfos;n[e]&&(delete n[e],t.count--)}),yC(n)}function mC(t){return t.type+"\0_"+t.id}function vC(t){var e=t.getZr();return e[fC]||(e[fC]={})}function yC(t){B(t,function(e,n){e.count||(e.controller.dispose(),delete t[n])})}function xC(t,e){t.dispatchAction({type:"dataZoom",batch:e})}var _C=H,bC=cD.extend({type:"dataZoom.inside",init:function(t,e){this._range},render:function(t,e,n,i){bC.superApply(this,"render",arguments),this._range=t.getPercentRange(),B(this.getTargetCoordInfo(),function(e,i){var r=V(e,function(t){return mC(t.model)});B(e,function(e){var o=e.model,a={};B(["pan","zoom","scrollMove"],function(t){a[t]=_C(wC[t],this,e,i)},this),pC(n,{coordId:mC(o),allCoordIds:r,containsPoint:function(t,e,n){return o.coordinateSystem.containPoint([e,n])},dataZoomId:t.id,dataZoomModel:t,getRange:a})},this)},this)},dispose:function(){gC(this.api,this.dataZoomModel.id),bC.superApply(this,"dispose",arguments),this._range=null}}),wC={zoom:function(t,e,n,i){var r=this._range,o=r.slice(),a=t.axisModels[0];if(a){var s=SC[e](null,[i.originX,i.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return hb(0,o,[0,100],0,h.minSpan,h.maxSpan),this._range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:MC(function(t,e,n,i,r,o){var a=SC[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:MC(function(t,e,n,i,r,o){return SC[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta})};function MC(t){return function(e,n,i,r){var o=this._range,a=o.slice(),s=e.axisModels[0];if(s){var l=t(a,s,e,n,i,r);return hb(l,a,[0,100],"all"),this._range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var SC={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},IC=B,AC=function(t){var e=t&&t.visualMap;Y(e)||(e=e?[e]:[]),IC(e,function(t){if(t){DC(t,"splitList")&&!DC(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&Y(e)&&IC(e,function(t){X(t)&&(DC(t,"start")&&!DC(t,"min")&&(t.min=t.start),DC(t,"end")&&!DC(t,"max")&&(t.max=t.end))})}})};function DC(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}gu.registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"});var TC=dd.VISUAL.COMPONENT;function CC(t,e,n,i){for(var r=e.targetVisuals[i],o=Bx.prepareVisualTypes(r),a={color:t.getData().getVisual("color")},s=0,l=o.length;s"],Y(t)&&(t=t.slice(),i=!0),r=e?t:i?[u(t[0]),u(t[1])]:u(t),U(l)?l.replace("{value}",i?r[0]:r).replace("{value2}",i?r[1]:r):Z(l)?i?l(t[0],t[1]):l(t):i?t[0]===s[0]?n[0]+" "+r[1]:t[1]===s[1]?n[1]+" "+r[0]:r[0]+" - "+r[1]:r;function u(t){return t===s[0]?"min":t===s[1]?"max":(+t).toFixed(Math.min(a,20))}},resetExtent:function(){var t=this.option,e=zC([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension,n=t.dimensions;if(null!=e||n.length){if(null!=e)return t.getDimension(e);for(var i=t.dimensions,r=i.length-1;r>=0;r--){var o=i[r];if(!t.getDimensionInfo(o).isCalculationCoord)return o}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});D(i,n),D(r,n);var o=this.isCategory();function a(n){NC(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")},EC(this.stateList,function(t){var e=n[t];if(U(e)){var i=LC.get(e,"active",o);i?(n[t]={},n[t][e]=i):delete n[t]}},this)}a.call(this,i),a.call(this,r),function(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},EC(i,function(t,e){if(Bx.isValidType(e)){var n=LC.get(e,"inactive",o);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}}))}.call(this,i,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor");EC(this.stateList,function(r){var a=this.itemSize,s=t[r];s||(s=t[r]={color:o?i:[i]}),null==s.symbol&&(s.symbol=e&&A(e)||(o?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=n&&A(n)||(o?a[0]:[a[0],a[0]])),s.symbol=PC(s.symbol,function(t){return"none"===t||"square"===t?"roundRect":t});var l=s.symbolSize;if(null!=l){var u=-1/0;OC(l,function(t){t>u&&(u=t)}),s.symbolSize=PC(l,function(t){return RC(t,[0,u],[0,a[0]],!0)})}},this)}.call(this,r)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:dt,getValueState:dt,getVisualMeta:dt}),VC=[20,140],FC=BC.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(t,e){FC.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){FC.superApply(this,"resetItemSize",arguments);var t=this.itemSize;"horizontal"===this._orient&&t.reverse(),(null==t[0]||isNaN(t[0]))&&(t[0]=VC[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=VC[1])},_resetRange:function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):Y(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){BC.prototype.completeVisualOption.apply(this,arguments),B(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)},this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=Ml((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)},this),e.push({seriesId:n.id,dataIndex:i})},this),e},getVisualMeta:function(t){var e=GC(0,0,this.getExtent()),n=GC(0,0,this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;at[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:r/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},_createBarPoints:function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new On("horizontal"!==e||n?"horizontal"===e&&n?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||n?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels;ZC([0,1],function(a){var s=r[a];s.setStyle("fill",e.handlesColor[a]),s.position[1]=t[a];var l=nl(n.handleLabelPoints[a],el(s,this.group));o[a].setStyle({x:l[0],y:l[1],text:i.formatValueText(this._dataInterval[a]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===a?"bottom":"top":"left",n.barGroup)})},this)}},_showIndicator:function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=YC(t,o,s,!0),u=this._shapes,h=u.indicator;if(h){h.position[1]=l,h.attr("invisible",!1),h.setShape("points",function(t,e,n,i){return t?[[0,-UC(e,XC(n,0))],[KC,0],[0,UC(e,XC(i-n,0))]]:[[0,0],[5,-5],[5,5]]}(!!n,i,l,a[1]));var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0});h.setStyle("fill",c);var d=nl(u.indicatorLabelPoint,el(h,this.group)),f=u.indicatorLabel;f.attr("invisible",!1);var p=this._applyTransform("left",u.barGroup),g=this._orient;f.setStyle({text:(n||"")+r.formatValueText(e),textVerticalAlign:"horizontal"===g?p:"middle",textAlign:"horizontal"===g?"center":p,x:d[0],y:d[1]})}},_enableHoverLinkToSeries:function(){var t=this;this._shapes.barGroup.on("mousemove",function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);i[1]=UC(XC(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();t=UC(XC(r[0],t),r[1]);var a=function(t,e,n){var i=qC/2,r=t.get("hoverLinkDataSize");return r&&(i=YC(r,e,n,!0)/2),i}(n,o,r),s=[t-a,t+a],l=YC(t,r,o,!0),u=[YC(s[0],r,o,!0),YC(s[1],r,o,!0)];s[0]r[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var h=this._hoverLinkDataIndices,c=[];(e||$C(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=function(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(t){this.option.selected=A(t)},getValueState:function(t){var e=Bx.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),function(e,n){Bx.findPieceIndex(e,this._pieceList)===t&&i.push(n)},this),e.push({seriesId:n.id,dataIndex:i})},this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},getVisualMeta:function(t){if(!this.isCategory()){var e=[],n=[],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return B(r,function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])},this),{stops:e,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}}}),nL={splitNumber:function(){var t=this.option,e=this._pieceList,n=Math.min(t.precision,20),i=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;t.precision=n,o=+o.toFixed(n);var a=0;t.minOpen&&e.push({index:a++,interval:[-1/0,i[0]],close:[0,0]});for(var s=i[0],l=a+r;ao[1]&&console.warn("Piece "+n+"is illegal: "+o+" lower bound should not greater then uppper bound."),o[0]===o[1]&&a[0]&&a[1]&&(i.value=o[0])}i.visual=Bx.retrieveVisuals(t),e.push(i)},this),iL(t,e),zl(e),B(e,function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)},this)}};function iL(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}WC.extend({type:"visualMap.piecewise",doRender:function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,h=$(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,h,a),B(l.viewPieceList,function(i){var l=i.piece,u=new On;u.onclick=H(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var c=e.getRepresentValue(l);if(this._createItemSymbol(u,c,[0,0,s[0],s[1]]),h){var d=this.visualMapModel.getValueState(c);u.add(new za({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,textVerticalAlign:"middle",textAlign:a,textFont:r,textFill:o,opacity:"outOfRange"===d?.5:1}}))}t.add(u)},this),u&&this._renderEndsText(t,u[1],s,h,a),au(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},_enableHoverLink:function(t,e){function n(t){var n=this.visualMapModel;n.option.hoverLink&&this.api.dispatchAction({type:t,batch:jC(n.findTargetDataIndices(e),n)})}t.on("mouseover",H(n,this,"highlight")).on("mouseout",H(n,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return HC(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},_renderEndsText:function(t,e,n,i,r){if(e){var o=new On,a=this.visualMapModel.textStyleModel;o.add(new za({style:{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:i?r:"center",text:e,textFont:a.getFont(),textFill:a.getTextColor()}})),t.add(o)}},_getViewData:function(){var t=this.visualMapModel,e=V(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},_createItemSymbol:function(t,e,n){t.add(Jp(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,n=e.option,i=A(n.selected),r=e.getSelectedMapKey(t);"single"===n.selectedMode?(i[r]=!0,B(i,function(t,e){i[e]=e===r})):i[r]=!i[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}}),$d(AC);var rL,oL="urn:schemas-microsoft-com:vml",aL="undefined"==typeof window?null:window,sL=!1,lL=aL&&aL.document;function uL(t){return rL(t)}if(lL&&!p.canvasSupported)try{!lL.namespaces.zrvml&&lL.namespaces.add("zrvml",oL),rL=function(t){return lL.createElement("')}}catch(t){rL=function(t){return lL.createElement("<"+t+' xmlns="'+oL+'" class="zrvml">')}}var hL=Qo.CMD,cL=Math.round,dL=Math.sqrt,fL=Math.abs,pL=Math.cos,gL=Math.sin,mL=Math.max;if(!p.canvasSupported){var vL=21600,yL=vL/2,xL=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=vL+","+vL,t.coordorigin="0,0"},_L=function(t,e,n){return"rgb("+[t,e,n].join(",")+")"},bL=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},wL=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},ML=function(t,e,n){return 1e5*(parseFloat(t)||0)+1e3*(parseFloat(e)||0)+n},SL=function(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t},IL=function(t,e,n){var i=je(e);n=+n,isNaN(n)&&(n=1),i&&(t.color=_L(i[0],i[1],i[2]),t.opacity=n*i[3])},AL=function(t){var e=je(t);return[_L(e[0],e[1],e[2]),e[3]]},DL=function(t,e,n,i){var r="fill"===e,o=t.getElementsByTagName(e)[0];null!=n[e]&&"none"!==n[e]&&(r||!r&&n.lineWidth)?(t[r?"filled":"stroked"]="true",n[e]instanceof ss&&wL(t,o),o||(o=uL(e)),r?function(t,e,n){var i=e.fill;if(null!=i)if(i instanceof ss){var r,o=0,a=[0,0],s=0,l=1,u=n.getBoundingRect(),h=u.width,c=u.height;if("linear"===i.type){r="gradient";var d=n.transform,f=[i.x*h,i.y*c],p=[i.x2*h,i.y2*c];d&&(Ot(f,f,d),Ot(p,p,d));var g=p[0]-f[0],m=p[1]-f[1];(o=180*Math.atan2(g,m)/Math.PI)<0&&(o+=360),o<1e-6&&(o=0)}else{r="gradientradial",f=[i.x*h,i.y*c],d=n.transform;var v=n.scale,y=h,x=c;a=[(f[0]-u.x)/y,(f[1]-u.y)/x],d&&Ot(f,f,d),y/=v[0]*vL,x/=v[1]*vL;var _=mL(y,x);s=0/_,l=2*i.r/_-s}var b=i.colorStops.slice();b.sort(function(t,e){return t.offset-e.offset});for(var w=b.length,M=[],S=[],I=0;I=2){var T=M[0][0],C=M[1][0],L=M[0][1]*e.opacity,k=M[1][1]*e.opacity;t.type=r,t.method="none",t.focus="100%",t.angle=o,t.color=T,t.color2=C,t.colors=S.join(","),t.opacity=k,t.opacity2=L}"radial"===r&&(t.focusposition=a.join(","))}else IL(t,i,e.opacity)}(o,n,i):function(t,e){null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof ss||IL(t,e.stroke,e.opacity)}(o,n),bL(t,o)):(t[r?"filled":"stroked"]="false",wL(t,o))},TL=[[],[],[]];ya.prototype.brushVML=function(t){var e=this.style,n=this._vmlEl;n||(n=uL("shape"),xL(n),this._vmlEl=n),DL(n,"fill",e,this),DL(n,"stroke",e,this);var i=this.transform,r=null!=i,o=n.getElementsByTagName("stroke")[0];if(o){var a=e.lineWidth;if(r&&!e.strokeNoScale){var s=i[0]*i[3]-i[1]*i[2];a*=dL(fL(s))}o.weight=a+"px"}var l=this.path||(this.path=new Qo);this.__dirtyPath&&(l.beginPath(),l.subPixelOptimize=!1,this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),n.path=function(t,e){var n,i,r,o,a,s,l=hL.M,u=hL.C,h=hL.L,c=hL.A,d=hL.Q,f=[],p=t.data,g=t.len();for(o=0;o.01?O&&(N+=.0125):Math.abs(E-T)<1e-4?O&&ND?x-=.0125:x+=.0125:O&&ET?y+=.0125:y-=.0125),f.push(z,cL(((D-C)*S+w)*vL-yL),",",cL(((T-L)*I+M)*vL-yL),",",cL(((D+C)*S+w)*vL-yL),",",cL(((T+L)*I+M)*vL-yL),",",cL((N*S+w)*vL-yL),",",cL((E*I+M)*vL-yL),",",cL((y*S+w)*vL-yL),",",cL((x*I+M)*vL-yL)),a=y,s=x;break;case hL.R:var R=TL[0],B=TL[1];R[0]=p[o++],R[1]=p[o++],B[0]=R[0]+p[o++],B[1]=R[1]+p[o++],e&&(Ot(R,R,e),Ot(B,B,e)),R[0]=cL(R[0]*vL-yL),B[0]=cL(B[0]*vL-yL),R[1]=cL(R[1]*vL-yL),B[1]=cL(B[1]*vL-yL),f.push(" m ",R[0],",",R[1]," l ",B[0],",",R[1]," l ",B[0],",",B[1]," l ",R[0],",",B[1]);break;case hL.Z:f.push(" x ")}if(n>0){f.push(i);for(var V=0;V100&&(kL=0,LL={});var n,i=PL.style;try{i.font=t,n=i.fontFamily.split(",")[0]}catch(t){}e={style:i.fontStyle||"normal",variant:i.fontVariant||"normal",weight:i.fontWeight||"normal",size:0|parseFloat(i.fontSize||12),family:n||"Microsoft YaHei"},LL[t]=e,kL++}return e}(r.font),m=g.style+" "+g.variant+" "+g.weight+" "+g.size+'px "'+g.family+'"';n=n||yi(o,m,f,p,r.textPadding,r.textLineHeight);var v=this.transform;if(v&&!i&&(OL.copy(e),OL.applyTransform(v),e=OL),i)c=e.x,d=e.y;else{var y=r.textPosition,x=r.textDistance;if(y instanceof Array)c=e.x+SL(y[0],e.width),d=e.y+SL(y[1],e.height),f=f||"left";else{var _=bi(y,e,x);c=_.x,d=_.y,f=f||_.textAlign,p=p||_.textVerticalAlign}}c=xi(c,n.width,f),d=_i(d,n.height,p),d+=n.height/2;var b,w,M,S=uL,I=this._textVmlEl;I?w=(b=(M=I.firstChild).nextSibling).nextSibling:(I=S("line"),b=S("path"),w=S("textpath"),M=S("skew"),w.style["v-text-align"]="left",xL(I),b.textpathok=!0,w.on=!0,I.from="0 0",I.to="1000 0.05",bL(I,M),bL(I,b),bL(I,w),this._textVmlEl=I);var A=[c,d],D=I.style;v&&i?(Ot(A,A,v),M.on=!0,M.matrix=v[0].toFixed(3)+","+v[2].toFixed(3)+","+v[1].toFixed(3)+","+v[3].toFixed(3)+",0,0",M.offset=(cL(A[0])||0)+","+(cL(A[1])||0),M.origin="0 0",D.left="0px",D.top="0px"):(M.on=!1,D.left=cL(c)+"px",D.top=cL(d)+"px"),w.string=String(o).replace(/&/g,"&").replace(/"/g,""");try{w.style.font=m}catch(t){}DL(I,"fill",{fill:r.textFill,opacity:r.opacity},this),DL(I,"stroke",{stroke:r.textStroke,opacity:r.opacity,lineDash:r.lineDash},this),I.style.zIndex=ML(this.zlevel,this.z,this.z2),bL(t,I)}},EL=function(t){wL(t,this._textVmlEl),this._textVmlEl=null},zL=function(t){bL(t,this._textVmlEl)},RL=[$i,tr,er,ya,za],BL=0;BL-$L}function nk(t,e){e&&ik(t,"transform","matrix("+YL.call(e,",")+")")}function ik(t,e,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&t.setAttribute(e,n)}function rk(t,e,n,i){if(function(t,e){var n=e?t.textFill:t.fill;return null!=n&&n!==ZL}(e,n)){var r=n?e.textFill:e.fill;r="transparent"===r?ZL:r,"none"!==t.getAttribute("clip-path")&&r===ZL&&(r="rgba(0, 0, 0, 0.002)"),ik(t,"fill",r),ik(t,"fill-opacity",null!=e.fillOpacity?e.fillOpacity*e.opacity:e.opacity)}else ik(t,"fill",ZL);if(function(t,e){var n=e?t.textStroke:t.stroke;return null!=n&&n!==ZL}(e,n)){var o=n?e.textStroke:e.stroke;ik(t,"stroke",o="transparent"===o?ZL:o),ik(t,"stroke-width",(n?e.textStrokeWidth:e.lineWidth)/(!n&&e.strokeNoScale?i.getLineScale():1)),ik(t,"paint-order",n?"stroke":"fill"),ik(t,"stroke-opacity",null!=e.strokeOpacity?e.strokeOpacity:e.opacity),e.lineDash?(ik(t,"stroke-dasharray",e.lineDash.join(",")),ik(t,"stroke-dashoffset",UL(e.lineDashOffset||0))):ik(t,"stroke-dasharray",""),e.lineCap&&ik(t,"stroke-linecap",e.lineCap),e.lineJoin&&ik(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&ik(t,"stroke-miterlimit",e.miterLimit)}else ik(t,"stroke",ZL)}var ok={};ok.brush=function(t){var e=t.style,n=t.__svgEl;n||(n=HL("path"),t.__svgEl=n),t.path||t.createPathProxy();var i=t.path;if(t.__dirtyPath){i.beginPath(),i.subPixelOptimize=!1,t.buildPath(i,t.shape),t.__dirtyPath=!1;var r=function(t){for(var e=[],n=t.data,i=t.len(),r=0;r=QL||!ek(g)&&(d>-KL&&d<0||d>KL)==!!p;var y=tk(s+u*qL(c)),x=tk(l+h*XL(c));m&&(d=p?QL-1e-4:1e-4-QL,v=!0,9===r&&e.push("M",y,x));var _=tk(s+u*qL(c+d)),b=tk(l+h*XL(c+d));e.push("A",tk(u),tk(h),UL(f*JL),+v,+p,_,b);break;case jL.Z:o="Z";break;case jL.R:_=tk(n[r++]),b=tk(n[r++]);var w=tk(n[r++]),M=tk(n[r++]);e.push("M",_,b,"L",_+w,b,"L",_+w,b+M,"L",_,b+M,"L",_,b)}o&&e.push(o);for(var S=0;S=r&&u+1>=o){for(var h=[],c=0;c=r&&c+1>=o)return dk(0,s.components);l[n]=s}else l[n]=void 0}var p;a++}for(;a<=s;){var f=d();if(f)return f}},pushComponent:function(t,e,n){var i=t[t.length-1];i&&i.added===e&&i.removed===n?t[t.length-1]={count:i.count+1,added:e,removed:n}:t.push({count:1,added:e,removed:n})},extractCommon:function(t,e,n,i){for(var r=e.length,o=n.length,a=t.newPos,s=a-i,l=0;a+1=0;--i)if(e[i]===t)return!0;return!1}),n):null:n[0]},pk.prototype.update=function(t,e){if(t){var n=this.getDefs(!1);if(t[this._domName]&&n.contains(t[this._domName]))"function"==typeof e&&e(t);else{var i=this.add(t);i&&(t[this._domName]=i)}}},pk.prototype.addDom=function(t){this.getDefs(!0).appendChild(t)},pk.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},pk.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return B(this._tagNames,function(n){var i=t.getElementsByTagName(n);e=e.concat([].slice.call(i))}),e},pk.prototype.markAllUnused=function(){var t=this.getDoms(),e=this;B(t,function(t){t[e._markLabel]="0"})},pk.prototype.markUsed=function(t){t&&(t[this._markLabel]="1")},pk.prototype.removeUnused=function(){var t=this.getDefs(!1);if(t){var e=this.getDoms(),n=this;B(e,function(e){"1"!==e[n._markLabel]&&t.removeChild(e)})}},pk.prototype.getSvgProxy=function(t){return t instanceof ya?ok:t instanceof er?ak:t instanceof za?sk:ok},pk.prototype.getTextSvgElement=function(t){return t.__textSvgEl},pk.prototype.getSvgElement=function(t){return t.__svgEl},E(gk,pk),gk.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var n=this;B(["fill","stroke"],function(i){if(e.style[i]&&("linear"===e.style[i].type||"radial"===e.style[i].type)){var r,o=e.style[i],a=n.getDefs(!0);o._dom?(r=o._dom,a.contains(o._dom)||n.addDom(r)):r=n.add(o),n.markUsed(e);var s=r.getAttribute("id");t.setAttribute(i,"url(#"+s+")")}})}},gk.prototype.add=function(t){var e;if("linear"===t.type)e=this.createElement("linearGradient");else{if("radial"!==t.type)return _n("Illegal gradient type."),null;e=this.createElement("radialGradient")}return t.id=t.id||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-gradient-"+t.id),this.updateDom(t,e),this.addDom(e),e},gk.prototype.update=function(t){var e=this;pk.prototype.update.call(this,t,function(){var n=t.type,i=t._dom.tagName;"linear"===n&&"linearGradient"===i||"radial"===n&&"radialGradient"===i?e.updateDom(t,t._dom):(e.removeDom(t),e.add(t))})},gk.prototype.updateDom=function(t,e){if("linear"===t.type)e.setAttribute("x1",t.x),e.setAttribute("y1",t.y),e.setAttribute("x2",t.x2),e.setAttribute("y2",t.y2);else{if("radial"!==t.type)return void _n("Illegal gradient type.");e.setAttribute("cx",t.x),e.setAttribute("cy",t.y),e.setAttribute("r",t.r)}t.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var n=t.colorStops,i=0,r=n.length;i0){var i,r,o=this.getDefs(!0),a=e[0],s=n?"_textDom":"_dom";a[s]?(r=a[s].getAttribute("id"),i=a[s],o.contains(i)||o.appendChild(i)):(r="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(i=this.createElement("clipPath")).setAttribute("id",r),o.appendChild(i),a[s]=i);var l=this.getSvgProxy(a);if(a.transform&&a.parent.invTransform&&!n){var u=Array.prototype.slice.call(a.transform);he(a.transform,a.parent.invTransform,a.transform),l.brush(a),a.transform=u}else l.brush(a);var h=this.getSvgElement(a);i.innerHTML="",i.appendChild(h.cloneNode()),t.setAttribute("clip-path","url(#"+r+")"),e.length>1&&this.updateDom(i,e.slice(1),n)}else t&&t.setAttribute("clip-path","none")},mk.prototype.markUsed=function(t){var e=this;t.__clipPaths&&t.__clipPaths.length>0&&B(t.__clipPaths,function(t){t._dom&&pk.prototype.markUsed.call(e,t._dom),t._textDom&&pk.prototype.markUsed.call(e,t._textDom)})},E(vk,pk),vk.prototype.addWithoutUpdate=function(t,e){if(e&&yk(e.style)){var n,i=e.style;i._shadowDom?(n=i._shadowDom,this.getDefs(!0).contains(i._shadowDom)||this.addDom(n)):n=this.add(e),this.markUsed(e);var r=n.getAttribute("id");t.style.filter="url(#"+r+")"}},vk.prototype.add=function(t){var e=this.createElement("filter"),n=t.style;return n._shadowDomId=n._shadowDomId||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-shadow-"+n._shadowDomId),this.updateDom(t,e),this.addDom(e),e},vk.prototype.update=function(t,e){var n=e.style;if(yk(n)){var i=this;pk.prototype.update.call(this,e,function(t){i.updateDom(e,t._shadowDom)})}else this.remove(t,n)},vk.prototype.remove=function(t,e){null!=e._shadowDomId&&(this.removeDom(e),t.style.filter="")},vk.prototype.updateDom=function(t,e){var n=e.getElementsByTagName("feDropShadow");n=0===n.length?this.createElement("feDropShadow"):n[0];var i,r,o,a,s=t.style,l=t.scale&&t.scale[0]||1,u=t.scale&&t.scale[1]||1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)i=s.shadowOffsetX||0,r=s.shadowOffsetY||0,o=s.shadowBlur,a=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(e,s);i=s.textShadowOffsetX||0,r=s.textShadowOffsetY||0,o=s.textShadowBlur,a=s.textShadowColor}n.setAttribute("dx",i/l),n.setAttribute("dy",r/u),n.setAttribute("flood-color",a);var h=o/2/l+" "+o/2/u;n.setAttribute("stdDeviation",h),e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width",Math.ceil(o/2*200)+"%"),e.setAttribute("height",Math.ceil(o/2*200)+"%"),e.appendChild(n),s._shadowDom=e},vk.prototype.markUsed=function(t){var e=t.style;e&&e._shadowDom&&pk.prototype.markUsed.call(this,e._shadowDom)};var Ak=function(t,e,n,i){this.root=t,this.storage=e,this._opts=n=C({},n||{});var r=HL("svg");r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.setAttribute("version","1.1"),r.setAttribute("baseProfile","full"),r.style.cssText="user-select:none;position:absolute;left:0;top:0;",this.gradientManager=new gk(i,r),this.clipPathManager=new mk(i,r),this.shadowManager=new vk(i,r);var o=document.createElement("div");o.style.cssText="overflow:hidden;position:relative",this._svgRoot=r,this._viewport=o,t.appendChild(o),o.appendChild(r),this.resize(n.width,n.height),this._visibleList=[]};Ak.prototype={constructor:Ak,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},setBackgroundColor:function(t){this._viewport.style.background=t},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var e,n,i=this._svgRoot,r=this._visibleList,o=t.length,a=[];for(e=0;e=0;--i)if(n[i]===t)return!0;return!1}),e):null:e[0]},resize:function(t,e){var n=this._viewport;n.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!==t||this._height!==e){this._width=t,this._height=e;var r=n.style;r.width=t+"px",r.height=e+"px";var o=this._svgRoot;o.setAttribute("width",t),o.setAttribute("height",e)}},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,n=["width","height"][t],i=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[i]||xk(s[n])||xk(a.style[n]))-(xk(s[r])||0)-(xk(s[o])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},pathToDataUrl:function(){return this.refresh(),"data:image/svg+xml;charset=UTF-8,"+this._svgRoot.outerHTML}},B(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(t){var e;Ak.prototype[t]=(e=t,function(){_n('In SVG mode painter not support method "'+e+'"')})}),wr("svg",Ak),t.version=sd,t.dependencies=ld,t.PRIORITY=dd,t.init=function(t,e,n){if(c){if(_r.replace(".","")-0=a.getTime()?n+1:e.getTime()>=l.getTime()?n:n-1}},function(t,e,n){var i=n(1),r=n(95);t.exports=function(t,e){var n=i(t),o=Number(e),a=n.getMonth()+o,s=new Date(0);s.setFullYear(n.getFullYear(),a,1),s.setHours(0,0,0,0);var l=r(s);return n.setMonth(a,Math.min(l,n.getDate())),n}},function(t,e,n){var i=n(9),r=n(6),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";t.exports=function(t){if(!r(t))return!1;var e=i(t);return e==a||e==s||e==o||e==l}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(45))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var i=n(48),r=n(13),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&r(a,n)&&(void 0!==n||e in t)||i(t,e,n)}},function(t,e,n){var i=n(49);t.exports=function(t,e,n){"__proto__"==e&&i?i(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){var i=n(5),r=function(){try{var t=i(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=r},function(t,e,n){var i=n(128),r=n(26),o=n(3),a=n(27),s=n(29),l=n(51),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),h=!n&&r(t),c=!n&&!h&&a(t),d=!n&&!h&&!c&&l(t),f=n||h||c||d,p=f?i(t.length,String):[],g=p.length;for(var m in t)!e&&!u.call(t,m)||f&&("length"==m||c&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||p.push(m);return p}},function(t,e,n){var i=n(131),r=n(17),o=n(31),a=o&&o.isTypedArray,s=a?r(a):i;t.exports=s},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var i=n(50),r=n(135),o=n(8);t.exports=function(t){return o(t)?i(t,!0):r(t)}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var i=n(34),r=n(56),o=n(33),a=n(54),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)i(e,o(t)),t=r(t);return e}:a;t.exports=s},function(t,e,n){var i=n(52)(Object.getPrototypeOf,Object);t.exports=i},function(t,e,n){var i=n(58),r=n(33),o=n(10);t.exports=function(t){return i(t,o,r)}},function(t,e,n){var i=n(34),r=n(3);t.exports=function(t,e,n){var o=e(t);return r(t)?o:i(o,n(t))}},function(t,e,n){var i=n(5)(n(2),"Set");t.exports=i},function(t,e,n){var i=n(2).Uint8Array;t.exports=i},function(t,e,n){var i=n(34),r=n(158);t.exports=function t(e,n,o,a,s){var l=-1,u=e.length;for(o||(o=r),s||(s=[]);++l0&&o(h)?n>1?t(h,n-1,o,a,s):i(s,h):a||(s[s.length]=h)}return s}},function(t,e,n){var i=n(19),r=n(159),o=n(161);t.exports=function(t,e){return o(r(t,e,i),t+"")}},function(t,e,n){var i=n(25),r=n(166),o=n(167);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new i;++ed))return!1;var p=h.get(t);if(p&&h.get(e))return p==e;var g=-1,m=!0,v=n&s?new i:void 0;for(h.set(t,e),h.set(e,t);++g1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),r(t,i(e,1),[])});t.exports=s},function(t){t.exports=JSON.parse('{"type":"FeatureCollection","features":[{"id":"710000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@°Ü¯Û"],["@@ƛĴÕƊÉɼģºðʀ\\\\ƎsÆNŌÔĚäœnÜƤɊĂǀĆĴžĤNJŨxĚĮǂƺòƌ‚–âÔ®ĮXŦţƸZûЋƕƑGđ¨ĭMó·ęcëƝɉlÝƯֹÅŃ^Ó·śŃNjƏďíåɛGɉ™¿@ăƑŽ¥ĘWǬÏĶŁâ"],["@@\\\\p|WoYG¿¥I†j@¢"],["@@…¡‰@ˆV^RqˆBbAŒnTXeRz¤Lž«³I"],["@@ÆEE—„kWqë @œ"],["@@fced"]],"encodeOffsets":[[[122886,24033]],[[123335,22980]],[[122375,24193]],[[122518,24117]],[[124427,22618]],[[124862,26043]]]},"properties":{"cp":[121.509062,25.044332],"name":"台湾","childNum":6}},{"id":"130000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@o~†Z]‚ªr‰ºc_ħ²G¼s`jΟnüsœłNX_“M`ǽÓnUK…Ĝēs¤­©yrý§uģŒc†JŠ›e"],["@@U`Ts¿m‚"],["@@oºƋÄd–eVŽDJj£€J|Ådz•Ft~žKŨ¸IÆv|”‡¢r}膎onb˜}`RÎÄn°ÒdÞ²„^®’lnÐèĄlðӜ×]ªÆ}LiĂ±Ö`^°Ç¶p®đDcœŋ`–ZÔ’¶êqvFƚ†N®ĆTH®¦O’¾ŠIbÐã´BĐɢŴÆíȦp–ĐÞXR€·nndOž¤’OÀĈƒ­Qg˜µFo|gȒęSWb©osx|hYh•gŃfmÖĩnº€T̒Sp›¢dYĤ¶UĈjl’ǐpäìë|³kÛfw²Xjz~ÂqbTŠÑ„ěŨ@|oM‡’zv¢ZrÃVw¬ŧĖ¸fŒ°ÐT€ªqŽs{Sž¯r æÝlNd®²Ğ džiGʂJ™¼lr}~K¨ŸƐÌWö€™ÆŠzRš¤lêmĞL΄’@¡|q]SvK€ÑcwpÏρ†ĿćènĪWlĄkT}ˆJ”¤~ƒÈT„d„™pddʾĬŠ”ŽBVt„EÀ¢ôPĎƗè@~‚k–ü\\\\rÊĔÖæW_§¼F˜†´©òDòj’ˆYÈrbĞāøŀG{ƀ|¦ðrb|ÀH`pʞkv‚GpuARhÞÆǶgʊTǼƹS£¨¡ù³ŘÍ]¿Ây™ôEP xX¶¹܇O¡“gÚ¡IwÃ鑦ÅB‡Ï|Ç°…N«úmH¯‹âŸDùŽyŜžŲIÄuШDž•¸dɂ‡‚FŸƒ•›Oh‡đ©OŸ›iÃ`ww^ƒÌkŸ‘ÑH«ƇǤŗĺtFu…{Z}Ö@U‡´…ʚLg®¯Oı°ÃwŸ ^˜—€VbÉs‡ˆmA…ê]]w„§›RRl£‡ȭµu¯b{ÍDěïÿȧŽuT£ġƒěŗƃĝ“Q¨fV†Ƌ•ƅn­a@‘³@šď„yýIĹÊKšŭfċŰóŒxV@tˆƯŒJ”]eƒR¾fe|rHA˜|h~Ėƍl§ÏŠlTíb ØoˆÅbbx³^zÃĶš¶Sj®A”yÂhðk`š«P€”ˈµEF†Û¬Y¨Ļrõqi¼‰Wi°§’б´°^[ˆÀ|ĠO@ÆxO\\\\tŽa\\\\tĕtû{ġŒȧXýĪÓjùÎRb›š^ΛfK[ݏděYfíÙTyŽuUSyŌŏů@Oi½’éŅ­aVcř§ax¹XŻác‡žWU£ôãºQ¨÷Ñws¥qEH‰Ù|‰›šYQoŕÇyáĂ£MðoťÊ‰P¡mšWO¡€v†{ôvîēÜISpÌhp¨ ‘j†deŔQÖj˜X³à™Ĉ[n`Yp@Už–cM`’RKhŒEbœ”pŞlNut®Etq‚nsÁŠgA‹iú‹oH‡qCX‡”hfgu“~ϋWP½¢G^}¯ÅīGCŸÑ^ãziMáļMTÃƘrMc|O_ž¯Ŏ´|‡morDkO\\\\mĆJfl@cĢ¬¢aĦtRıҙ¾ùƀ^juųœK­ƒUFy™—Ɲ…›īÛ÷ąV×qƥV¿aȉd³B›qPBm›aËđŻģm“Å®VŠ¹d^K‡KoŸnYg“¯Xhqa”Ldu¥•ÍpDž¡KąÅƒkĝęěhq‡}HyÓ]¹ǧ£…Í÷¿qᵧš™g‘¤o^á¾ZE‡¤i`ij{n•ƒOl»ŸWÝĔįhg›F[¿¡—ßkOüš_‰€ū‹i„DZàUtėGylƒ}ŒÓM}€jpEC~¡FtoQi‘šHkk{Ãmï‚"]],"encodeOffsets":[[[119712,40641]],[[121616,39981]],[[116462,37237]]]},"properties":{"cp":[114.502461,38.045474],"name":"河北","childNum":3}},{"id":"140000","type":"Feature","geometry":{"type":"Polygon","coordinates":["@@Þĩ҃S‰ra}Á€yWix±Üe´lè“ßÓǏok‘ćiµVZģ¡coœ‘TS˹ĪmnÕńe–hZg{gtwªpXaĚThȑp{¶Eh—®RćƑP¿£‘Pmc¸mQÝW•ďȥoÅîɡųAďä³aωJ‘½¥PG­ąSM­™…EÅruµé€‘Yӎ•Ō_d›ĒCo­Èµ]¯_²ÕjāŽK~©ÅØ^ԛkïçămϑk]­±ƒcݯÑÃmQÍ~_a—pm…~ç¡q“ˆu{JÅŧ·Ls}–EyÁÆcI{¤IiCfUc•ƌÃp§]웫vD@¡SÀ‘µM‚ÅwuŽYY‡¡DbÑc¡hƒ×]nkoQdaMç~eD•ÛtT‰©±@¥ù@É¡‰ZcW|WqOJmĩl«ħşvOÓ«IqăV—¥ŸD[mI~Ó¢cehiÍ]Ɠ~ĥqXŠ·eƷœn±“}v•[ěďŽŕ]_‘œ•`‰¹ƒ§ÕōI™o©b­s^}Ét±ū«³p£ÿ·Wµ|¡¥ăFÏs׌¥ŅxŸÊdÒ{ºvĴÎêÌɊ²¶€ü¨|ÞƸµȲ‘LLúÉƎ¤ϊęĔV`„_bª‹S^|ŸdŠzY|dz¥p†ZbÆ£¶ÒK}tĦÔņƠ‚PYzn€ÍvX¶Ěn ĠÔ„zý¦ª˜÷žÑĸَUȌ¸‚dòÜJð´’ìúNM¬ŒXZ´‘¤ŊǸ_tldIš{¦ƀðĠȤ¥NehXnYG‚‡R° ƬDj¬¸|CĞ„Kq‚ºfƐiĺ©ª~ĆOQª ¤@ìǦɌ²æBŒÊ”TœŸ˜ʂōĖ’šĴŞ–ȀœÆÿȄlŤĒö„t”νî¼ĨXhŒ‘˜|ªM¤Ðz"],"encodeOffsets":[[116874,41716]]},"properties":{"cp":[112.549248,37.857014],"name":"山西","childNum":1}},{"id":"150000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@Č^â£Ăh–šĖMÈÄw‚\\\\fŦ°W ¢¾luŸD„wŠ\\\\̀ʉÌÛM…Ā[bӞEn}¶Vc…ê“sƒ–›¯PqƒFB…‰|S•³C|kñ•H‹d‘iÄ¥sˆʼnő…PóÑÑE^‘ÅPpy_YtS™hQ·aHwsOnʼnÚs©iqj›‰€USiº]ïWš‰«gW¡A–R붛ijʕ…Œů`çõh]y»ǃŸǛҤxÒm~zf}pf|ÜroÈzrKÈĵSƧ„ż؜Ġu¦ö"],["@@sKCš…GS|úþX”gp›{ÁX¿Ÿć{ƱȏñZáĔyoÁhA™}ŅĆfdʼn„_¹„Y°ėǩÑ¡H¯¶oMQqð¡Ë™|‘Ñ`ƭŁX½·óۓxğįÅcQ‡ˆ“ƒs«tȋDžF“Ÿù^i‘t«Č¯[›hAi©á¥ÇĚ×l|¹y¯YȵƓ‹ñǙµï‚ċ™Ļ|Dœ™üȭ¶¡˜›oŽäÕG\\\\ďT¿Òõr¯œŸLguÏYęRƩšɷŌO\\\\İТæ^Ŋ IJȶȆbÜGŽĝ¬¿ĚVĎgª^íu½jÿĕęjık@Ľƒ]ėl¥Ë‡ĭûÁ„ƒėéV©±ćn©­ȇžÍq¯½•YÃÔʼn“ÉNѝÅÝy¹NqáʅDǡËñ­ƁYÅy̱os§ȋµʽǘǏƬɱà‘ưN¢ƔÊuľýľώȪƺɂļžxœZĈ}ÌʼnŪ˜ĺœŽĭFЛĽ̅ȣͽÒŵìƩÇϋÿȮǡŏçƑůĕ~Ǎ›¼ȳÐUf†dIxÿ\\\\G ˆzâɏÙOº·pqy£†@ŒŠqþ@Ǟ˽IBäƣzsÂZ†ÁàĻdñ°ŕzéØűzșCìDȐĴĺf®ŽÀľưø@ɜÖÞKĊŇƄ§‚͑těï͡VAġÑÑ»d³öǍÝXĉĕÖ{þĉu¸ËʅğU̎éhɹƆ̗̮ȘNJ֥ड़ࡰţાíϲäʮW¬®ҌeרūȠkɬɻ̼ãüfƠSצɩςåȈHϚÎKdzͲOðÏȆƘ¼CϚǚ࢚˼ФԂ¤ƌžĞ̪Qʤ´¼mȠJˀŸƲÀɠmǐnǔĎȆÞǠN~€ʢĜ‚¶ƌĆĘźʆȬ˪ĚĒ¸ĞGȖƴƀj`ĢçĶāàŃºēĢƒĖćšYŒÀŎüôQÐÂŎŞdžŞêƖš˜oˆDĤÕºÑǘÛˤ³̀gńƘĔÀ^žªƂ`ªt¾äƚêĦĀ¼Ð€Ĕǎ¨Ȕ»͠^ˮÊȦƤøxRrŜH¤¸ÂxDĝŒ|ø˂˜ƮÐ¬ɚwɲFjĔ²Äw°dždÀɞ_ĸdîàŎjʜêTЪŌ‡ŜWÈ|tqĢUB~´°ÎFC•ŽU¼pĀēƄN¦¾O¶ŠłKĊOj“Ě”j´ĜYp˜{¦„ˆSĚÍ\\\\Tš×ªV–÷Ší¨ÅDK°ßtŇĔKš¨ǵÂcḷ̌ĚǣȄĽF‡lġUĵœŇ‹ȣFʉɁƒMğįʏƶɷØŭOǽ«ƽū¹Ʊő̝Ȩ§ȞʘĖiɜɶʦ}¨֪ࠜ̀ƇǬ¹ǨE˦ĥªÔêFŽxúQ„Er´W„rh¤Ɛ \\\\talĈDJ˜Ü|[Pll̚¸ƎGú´Pž¬W¦†^¦–H]prR“n|or¾wLVnÇIujkmon£cX^Bh`¥V”„¦U¤¸}€xRj–[^xN[~ªŠxQ„‚[`ªHÆÂExx^wšN¶Ê˜|¨ì†˜€MrœdYp‚oRzNy˜ÀDs~€bcfÌ`L–¾n‹|¾T‚°c¨È¢a‚r¤–`[|òDŞĔöxElÖdH„ÀI`„Ď\\\\Àì~ƎR¼tf•¦^¢ķ¶e”ÐÚMŒptgj–„ɡČÅyġLû™ŇV®ŠÄÈƀ†Ď°P|ªVV†ªj–¬ĚÒêp¬–E|ŬÂc|ÀtƐK fˆ{ĘFĒœƌXƲąo½Ę‘\\\\¥–o}›Ûu£ç­kX‘{uĩ«āíÓUŅßŢq€Ť¥lyň[€oi{¦‹L‡ń‡ðFȪȖ”ĒL„¿Ì‹ˆfŒ£K£ʺ™oqNŸƒwğc`ue—tOj×°KJ±qƒÆġm‰Ěŗos¬…qehqsuœƒH{¸kH¡Š…ÊRǪÇƌbȆ¢´ä܍¢NìÉʖ¦â©Ż؛Ç@Vu»A—ylßí¹ĵê…ÝlISò³C¹Ìâ„²i¶’Ìoú^H“²CǜңDŽ z¼g^èöŰ_‹‚–†IJĕꄜ}gÁnUI«m‰…„‹]j‡vV¼euhwqA„aW˜ƒ_µj…»çjioQR¹ēÃßt@r³[ÛlćË^ÍÉáG“›OUۗOB±•XŸkŇ¹£k|e]ol™ŸkVͼÕqtaÏõjgÁ£§U^Œ”RLˆËnX°Ç’Bz†^~wfvˆypV ¯„ƫĉ˭ȫƗŷɿÿĿƑ˃ĝÿÃǃßËőó©ǐȍŒĖM×ÍEyx‹þp]Évïè‘vƀnÂĴÖ@‚‰†V~Ĉ™Š³MEˆĸÅĖt—ējyÄDXÄxGQuv_›i¦aBçw‘˛wD™©{ŸtāmQ€{EJ§KPśƘƿ¥@‰sCT•É}ɃwˆƇy±ŸgÑ“}T[÷kÐ禫…SÒ¥¸ëBX½‰HáŵÀğtSÝÂa[ƣ°¯¦P]£ġ“–“Òk®G²„èQ°óMq}EŠóƐÇ\\\\ƒ‡@áügQ͋u¥Fƒ“T՛¿Jû‡]|mvāÎYua^WoÀa·­ząÒot׶CLƗi¯¤mƎHNJ¤îìɾŊìTdåwsRÖgĒųúÍġäÕ}Q¶—ˆ¿A•†‹[¡Œ{d×uQAƒ›M•xV‹vMOmăl«ct[wº_šÇʊŽŸjb£ĦS_é“QZ“_lwgOiýe`YYLq§IÁˆdz£ÙË[ÕªuƏ³ÍT—s·bÁĽäė[›b[ˆŗfãcn¥îC¿÷µ[ŏÀQ­ōšĉm¿Á^£mJVm‡—L[{Ï_£›F¥Ö{ŹA}…×Wu©ÅaųijƳhB{·TQqÙIķˑZđ©Yc|M¡…L•eVUóK_QWk’_ĥ‘¿ãZ•»X\\\\ĴuUƒè‡lG®ěłTĠğDєOrÍd‚ÆÍz]‹±…ŭ©ŸÅ’]ŒÅÐ}UË¥©Tċ™ïxgckfWgi\\\\ÏĒ¥HkµE˜ë{»ÏetcG±ahUiñiWsɁˆ·c–C‚Õk]wȑ|ća}w…VaĚ᠞ŒG°ùnM¬¯†{ȈÐÆA’¥ÄêJxÙ¢”hP¢Ûˆº€µwWOŸóFŽšÁz^ÀŗÎú´§¢T¤ǻƺSė‰ǵhÝÅQgvBHouʝl_o¿Ga{ïq{¥|ſĿHĂ÷aĝÇq‡Z‘ñiñC³ª—…»E`¨åXēÕqÉû[l•}ç@čƘóO¿¡ƒFUsA‰“ʽīccšocƒ‚ƒÇS}„“£‡IS~ălkĩXçmĈ…ŀЂoÐdxÒuL^T{r@¢‘žÍƒĝKén£kQ™‰yšÅõËXŷƏL§~}kqš»IHėDžjĝŸ»ÑÞoŸå°qTt|r©ÏS‹¯·eŨĕx«È[eMˆ¿yuˆ‘pN~¹ÏyN£{©’—g‹ħWí»Í¾s“əšDž_ÃĀɗ±ą™ijĉʍŌŷ—S›É“A‹±åǥɋ@럣R©ąP©}ĹªƏj¹erƒLDĝ·{i«ƫC£µ"]],"encodeOffsets":[[[127444,52594]],[[113793,40312]]]},"properties":{"cp":[111.670801,40.818311],"name":"内蒙古","childNum":2}},{"id":"210000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@L–Ž@@s™a"],["@@MnNm"],["@@d‚c"],["@@eÀ‚C@b‚“‰"],["@@f‡…Xwkbr–Ä`qg"],["@@^jtW‘Q"],["@@~ Y]c"],["@@G`ĔN^_¿Z‚ÃM"],["@@iX¶B‹Y"],["@@„YƒZ"],["@@L_{Epf"],["@@^WqCT\\\\"],["@@\\\\[“‹§t|”¤_"],["@@m`n_"],["@@Ïxnj{q_×^Giip"],["@@@œé^B†‡ntˆaÊU—˜Ÿ]x ¯ÄPIJ­°h€ʙK³†VˆÕ@Y~†|EvĹsDŽ¦­L^p²ŸÒG ’Ël]„xxÄ_˜fT¤Ď¤cŽœP„–C¨¸TVjbgH²sdÎdHt`Bˆ—²¬GJję¶[ÐhjeXdlwhšðSȦªVÊπ‹Æ‘Z˜ÆŶ®²†^ŒÎyÅÎcPqń“ĚDMħĜŁH­ˆk„çvV[ij¼W–‚YÀäĦ’‘`XlžR`žôLUVžfK–¢†{NZdĒª’YĸÌÚJRr¸SA|ƴgŴĴÆbvªØX~†źBŽ|¦ÕœEž¤Ð`\\\\|Kˆ˜UnnI]¤ÀÂĊnŎ™R®Ő¿¶\\\\ÀøíDm¦ÎbŨab‰œaĘ\\\\ľã‚¸a˜tÎSƐ´©v\\\\ÖÚÌǴ¤Â‡¨JKr€Z_Z€fjþhPkx€`Y”’RIŒjJcVf~sCN¤ ˆE‚œhæm‰–sHy¨SðÑÌ\\\\\\\\ŸĐRZk°IS§fqŒßýáЍÙÉÖ[^¯ǤŲ„ê´\\\\¦¬ĆPM¯£Ÿˆ»uïpùzEx€žanµyoluqe¦W^£ÊL}ñrkqWňûP™‰UP¡ôJŠoo·ŒU}£Œ„[·¨@XŒĸŸ“‹‹DXm­Ûݏº‡›GU‹CÁª½{íĂ^cj‡k“¶Ã[q¤“LÉö³cux«zZfƒ²BWÇ®Yß½ve±ÃC•ý£W{Ú^’q^sÑ·¨‹ÍOt“¹·C¥‡GD›rí@wÕKţ݋˜Ÿ«V·i}xËÍ÷‘i©ĝ‡ɝǡ]ƒˆ{c™±OW‹³Ya±Ÿ‰_穂Hžĕoƫ€Ňqƒr³‰Lys[„ñ³¯OS–ďOMisZ†±ÅFC¥Pq{‚Ã[Pg}\\\\—¿ghćO…•k^ģÁFıĉĥM­oEqqZûěʼn³F‘¦oĵ—hŸÕP{¯~TÍlª‰N‰ßY“Ð{Ps{ÃVU™™eĎwk±ʼnVÓ½ŽJãÇÇ»Jm°dhcÀff‘dF~ˆ€ĀeĖ€d`sx² šƒ®EżĀdQ‹Âd^~ăÔHˆ¦\\\\›LKpĄVez¤NP ǹӗR™ÆąJSh­a[¦´Âghwm€BÐ¨źhI|žVVŽ—Ž|p] Â¼èNä¶ÜBÖ¼“L`‚¼bØæŒKV”ŸpoœúNZÞÒKxpw|ÊEMnzEQšŽIZ”ŽZ‡NBˆčÚFÜçmĩ‚WĪñt‘ÞĵÇñZ«uD‚±|Əlij¥ãn·±PmÍa‰–da‡ CL‡Ǒkùó¡³Ï«QaċϑOÃ¥ÕđQȥċƭy‹³ÃA"]],"encodeOffsets":[[[123686,41445]],[[126019,40435]],[[124393,40128]],[[126117,39963]],[[125322,40140]],[[126686,40700]],[[126041,40374]],[[125584,40168]],[[125453,40165]],[[125362,40214]],[[125280,40291]],[[125774,39997]],[[125976,40496]],[[125822,39993]],[[125509,40217]],[[122731,40949]]]},"properties":{"cp":[123.429096,41.796767],"name":"辽宁","childNum":16}},{"id":"220000","type":"Feature","geometry":{"type":"Polygon","coordinates":["@@‘p䔳PClƒFbbÍzš€wBG’ĭ€Z„Åi“»ƒlY­ċ²SgŽkÇ£—^S‰“qd¯•‹R…©éŽ£¯S†\\\\cZ¹iűƏCuƍÓX‡oR}“M^o•£…R}oªU­F…uuXHlEŕ‡€Ï©¤ÛmTŽþ¤D–²ÄufàÀ­XXȱAe„yYw¬dvõ´KÊ£”\\\\rµÄl”iˆdā]|DÂVŒœH¹ˆÞ®ÜWnŒC”Œķ W‹§@\\\\¸‹ƒ~¤‹Vp¸‰póIO¢ŠVOšŇürXql~òÉK]¤¥Xrfkvzpm¶bwyFoúvð‡¼¤ N°ąO¥«³[ƒéǡű_°Õ\\\\ÚÊĝŽþâőàerR¨­JYlďQ[ ÏYëЧTGz•tnŠß¡gFkMŸāGÁ¤ia É‰™È¹`\\\\xs€¬dĆkNnuNUŠ–užP@‚vRY¾•–\\\\¢…ŒGªóĄ~RãÖÎĢù‚đŴÕhQŽxtcæëSɽʼníëlj£ƍG£nj°KƘµDsØÑpyƸ®¿bXp‚]vbÍZuĂ{nˆ^IüœÀSք”¦EŒvRÎûh@℈[‚Əȉô~FNr¯ôçR±ƒ­HÑl•’Ģ–^¤¢‚OðŸŒævxsŒ]ÞÁTĠs¶¿âƊGW¾ìA¦·TѬ†è¥€ÏÐJ¨¼ÒÖ¼ƒƦɄxÊ~S–tD@ŠĂ¼Ŵ¡jlºWžvЉˆzƦZЎ²CH— „Axiukd‹ŒGgetqmcžÛ£Ozy¥cE}|…¾cZ…k‚‰¿uŐã[oxGikfeäT@…šSUwpiÚFM©’£è^ڟ‚`@v¶eň†f h˜eP¶žt“äOlÔUgƒÞzŸU`lœ}ÔÆUvØ_Ō¬Öi^ĉi§²ÃŠB~¡Ĉ™ÚEgc|DC_Ȧm²rBx¼MÔ¦ŮdĨÃâYx‘ƘDVÇĺĿg¿cwÅ\\\\¹˜¥Yĭlœ¤žOv†šLjM_a W`zļMž·\\\\swqÝSA‡š—q‰Śij¯Š‘°kŠRē°wx^Đkǂғ„œž“œŽ„‹\\\\]˜nrĂ}²ĊŲÒøãh·M{yMzysěnĒġV·°“G³¼XÀ““™¤¹i´o¤ŃšŸÈ`̃DzÄUĞd\\\\i֚ŒˆmÈBĤÜɲDEh LG¾ƀľ{WaŒYÍȏĢĘÔRîĐj‹}Ǟ“ccj‡oUb½š{“h§Ǿ{K‹ƖµÎ÷žGĀÖŠåưÎs­l›•yiē«‹`姝H¥Ae^§„GK}iã\\\\c]v©ģZ“mÃ|“[M}ģTɟĵ‘Â`À–çm‰‘FK¥ÚíÁbXš³ÌQґHof{‰]e€pt·GŋĜYünĎųVY^’˜ydõkÅZW„«WUa~U·Sb•wGçǑ‚“iW^q‹F‚“›uNĝ—·Ew„‹UtW·Ýďæ©PuqEzwAV•—XR‰ãQ`­©GŒM‡ehc›c”ďϝd‡©ÑW_ϗYƅŒ»…é\\\\ƒɹ~ǙG³mØ©BšuT§Ĥ½¢Ã_ý‘L¡‘ýŸqT^rme™\\\\Pp•ZZbƒyŸ’uybQ—efµ]UhĿDCmûvašÙNSkCwn‰cćfv~…Y‹„ÇG"],"encodeOffsets":[[130196,42528]]},"properties":{"cp":[125.3245,43.886841],"name":"吉林","childNum":1}},{"id":"230000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@ƨƒĶTLÇyqpÇÛqe{~oyen}s‰`q‡iXG”ù]Ëp½“©lɇÁp]Þñ´FÔ^f‘äîºkà˜z¼BUvÈ@"],["@@UƒµNÿ¥īè灋•HÍøƕ¶LŒǽ|g¨|”™Ža¾pViˆdd”~ÈiŒíďÓQġėǐZ΋ŽXb½|ſÃH½ŸKFgɱCģÛÇA‡n™‹jÕc[VĝDZÃ˄Ç_™ £ń³pŽj£º”š¿”»WH´¯”U¸đĢmžtĜyzzNN|g¸÷äűѱĉā~mq^—Œ[ƒ”››”ƒǁÑďlw]¯xQĔ‰¯l‰’€°řĴrŠ™˜BˆÞTxr[tŽ¸ĻN_yŸX`biN™Ku…P›£k‚ZĮ—¦[ºxÆÀdhŽĹŀUÈƗCw’áZħÄŭcÓ¥»NAw±qȥnD`{ChdÙFćš}¢‰A±Äj¨]ĊÕjŋ«×`VuÓś~_kŷVÝyh„“VkÄãPs”Oµ—fŸge‚Ň…µf@u_Ù ÙcŸªNªÙEojVx™T@†ãSefjlwH\\\\pŏäÀvŠŽlY†½d{†F~¦dyz¤PÜndsrhf‹HcŒvlwjFœ£G˜±DύƥY‡yϊu¹XikĿ¦ÏqƗǀOŜ¨LI|FRĂn sª|Cš˜zxAè¥bœfudTrFWÁ¹Am|˜ĔĕsķÆF‡´Nš‰}ć…UŠÕ@Áijſmužç’uð^ÊýowŒFzØÎĕNőžǏȎôªÌŒDŽàĀÄ˄ĞŀƒʀĀƘŸˮȬƬĊ°ƒUŸzou‡xe]}Ž…AyȑW¯ÌmK‡“Q]‹Īºif¸ÄX|sZt|½ÚUΠlkš^p{f¤lˆºlÆW –€A²˜PVܜPH”Êâ]ÎĈÌÜk´\\\\@qàsĔÄQºpRij¼èi†`¶—„bXƒrBgxfv»ŽuUiˆŒ^v~”J¬mVp´£Œ´VWrnP½ì¢BX‚¬h™ŠðX¹^TjVœŠriªj™tŊÄm€tPGx¸bgRšŽsT`ZozÆO]’ÒFô҆Oƒ‡ŊŒvŞ”p’cGŒêŠsx´DR–Œ{A†„EOr°Œ•žx|íœbˆ³Wm~DVjºéNN†Ëܲɶ­GƒxŷCStŸ}]ûō•SmtuÇÃĕN•™āg»šíT«u}ç½BĵÞʣ¥ëÊ¡Mێ³ãȅ¡ƋaǩÈÉQ‰†G¢·lG|›„tvgrrf«†ptęŘnŠÅĢr„I²¯LiØsPf˜_vĠd„xM prʹšL¤‹¤‡eˌƒÀđK“žïÙVY§]I‡óáĥ]ķ†Kˆ¥Œj|pŇ\\\\kzţ¦šnņäÔVĂîĪ¬|vW’®l¤èØr‚˜•xm¶ă~lÄƯĄ̈́öȄEÔ¤ØQĄ–Ą»ƢjȦOǺ¨ìSŖÆƬy”Qœv`–cwƒZSÌ®ü±DŽ]ŀç¬B¬©ńzƺŷɄeeOĨS’Œfm Ċ‚ƀP̎ēz©Ċ‚ÄÕÊmgŸÇsJ¥ƔˆŊśæ’΁Ñqv¿íUOµª‰ÂnĦÁ_½ä@ê텣P}Ġ[@gġ}g“ɊדûÏWXá¢užƻÌsNͽƎÁ§č՛AēeL³àydl›¦ĘVçŁpśdžĽĺſʃQíÜçÛġԏsĕ¬—Ǹ¯YßċġHµ ¡eå`ļƒrĉŘóƢFì“ĎWøxÊk†”ƈdƬv|–I|·©NqńRŀƒ¤é”eŊœŀ›ˆàŀU²ŕƀB‚Q£Ď}L¹Îk@©ĈuǰųǨ”Ú§ƈnTËÇéƟÊcfčŤ^Xm‡—HĊĕË«W·ċëx³ǔķÐċJā‚wİ_ĸ˜Ȁ^ôWr­°oú¬Ħ…ŨK~”ȰCĐ´Ƕ£’fNÎèâw¢XnŮeÂÆĶŽ¾¾xäLĴĘlļO¤ÒĨA¢Êɚ¨®‚ØCÔ ŬGƠ”ƦYĜ‡ĘÜƬDJ—g_ͥœ@čŅĻA“¶¯@wÎqC½Ĉ»NŸăëK™ďÍQ“Ùƫ[«Ãí•gßÔÇOÝáW‘ñuZ“¯ĥ€Ÿŕā¡ÑķJu¤E Ÿå¯°WKɱ_d_}}vyŸõu¬ï¹ÓU±½@gÏ¿rýD‰†g…Cd‰µ—°MFYxw¿CG£‹Rƛ½Õ{]L§{qqąš¿BÇƻğëšܭNJË|c²}Fµ}›ÙRsÓpg±ŠQNqǫŋRwŕnéÑÉKŸ†«SeYR…ŋ‹@{¤SJ}šD Ûǖ֍Ÿ]gr¡µŷjqWÛham³~S«“„›Þ]"]],"encodeOffsets":[[[127123,51780]],[[134456,44547]]]},"properties":{"cp":[126.642464,45.756967],"name":"黑龙江","childNum":2}},{"id":"320000","type":"Feature","geometry":{"type":"Polygon","coordinates":["@@cþÅPiŠ`ZŸRu¥É\\\\]~°ŽY`µ†Óƒ^phÁbnÀşúŽòa–ĬºTÖŒb‚˜e¦¦€{¸ZâćNpŒ©žHr|^ˆmjhŠSEb\\\\afv`sz^lkŽlj‹Ätg‹¤D˜­¾Xš¿À’|ДiZ„ȀåB·î}GL¢õcßjaŸyBFµÏC^ĭ•cÙt¿sğH]j{s©HM¢ƒQnDÀ©DaÜތ·jgàiDbPufjDk`dPOîƒhw¡ĥ‡¥šG˜ŸP²ĐobºrY†„î¶aHŢ´ ]´‚rılw³r_{£DB_Ûdåuk|ˆŨ¯F Cºyr{XFy™e³Þċ‡¿Â™kĭB¿„MvÛpm`rÚã”@Ę¹hågËÖƿxnlč¶Åì½Ot¾dJlŠVJʜǀœŞqvnOŠ^ŸJ”Z‘ż·Q}ê͎ÅmµÒ]Žƍ¦Dq}¬R^èĂ´ŀĻĊIԒtžIJyQŐĠMNtœR®òLh‰›Ěs©»œ}OӌGZz¶A\\\\jĨFˆäOĤ˜HYš†JvÞHNiÜaϚɖnFQlšNM¤ˆB´ĄNöɂtp–Ŭdf先‹qm¿QûŠùއÚb¤uŃJŴu»¹Ą•lȖħŴw̌ŵ²ǹǠ͛hĭłƕrçü±Y™xci‡tğ®jű¢KOķ•Coy`å®VTa­_Ā]ŐÝɞï²ʯÊ^]afYǸÃĆēĪȣJđ͍ôƋĝÄ͎ī‰çÛɈǥ£­ÛmY`ó£Z«§°Ó³QafusNıDž_k}¢m[ÝóDµ—¡RLčiXy‡ÅNïă¡¸iĔϑNÌŕoēdōîåŤûHcs}~Ûwbù¹£¦ÓCt‹OPrƒE^ÒoŠg™ĉIµžÛÅʹK…¤½phMŠü`o怆ŀ"],"encodeOffsets":[[121740,32276]]},"properties":{"cp":[118.767413,32.041544],"name":"江苏","childNum":1}},{"id":"330000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@E^dQ]K"],["@@jX^j‡"],["@@sfŠbU‡"],["@@qP\\\\xz[ck"],["@@‘Rƒ¢‚FX}°[s_"],["@@Cbœ\\\\—}"],["@@e|v\\\\la{u"],["@@v~u}"],["@@QxÂF¯}"],["@@¹nŒvÞs¯o"],["@@rSkUEj"],["@@bi­ZŒP"],["@@p[}INf"],["@@À¿€"],["@@¹dnbŒ…"],["@@rSŸBnR"],["@@g~h}"],["@@FlEk"],["@@OdPc"],["@@v[u\\\\"],["@@FjâL~wyoo~›sµL–\\\\"],["@@¬e¹aNˆ"],["@@\\\\nÔ¡q]L³ë\\\\ÿ®ŒQ֎"],["@@ÊA­©[¬"],["@@KxŒv­"],["@@@hlIk]"],["@@pW{o||j"],["@@Md|_mC"],["@@¢…X£ÏylD¼XˆtH"],["@@hlÜ[LykAvyfw^Ež›¤"],["@@fp¤Mus“R"],["@@®_ma~•LÁ¬šZ"],["@@iM„xZ"],["@@ZcYd"],["@@Z~dOSo|A¿qZv"],["@@@`”EN¡v"],["@@|–TY{"],["@@@n@m"],["@@XWkCT\\\\"],["@@ºwšZRkĕWO¢"],["@@™X®±Grƪ\\\\ÔáXq{‹"],["@@ůTG°ĄLHm°UC‹"],["@@¤Ž€aÜx~}dtüGæţŎíĔcŖpMËВjē¢·ðĄÆMzˆjWKĎ¢Q¶˜À_꒔_Bı€i«pZ€gf€¤Nrq]§ĂN®«H±‡yƳí¾×ŸīàLłčŴǝĂíÀBŖÕªˆŠÁŖHŗʼnåqûõi¨hÜ·ƒñt»¹ýv_[«¸m‰YL¯‰Qª…mĉÅdMˆ•gÇjcº«•ęœ¬­K­´ƒB«Âącoċ\\\\xKd¡gěŧ«®á’[~ıxu·Å”KsËɏc¢Ù\\\\ĭƛëbf¹­ģSƒĜkáƉÔ­ĈZB{ŠaM‘µ‰fzʼnfåÂŧįƋǝÊĕġć£g³ne­ą»@­¦S®‚\\\\ßðCšh™iqªĭiAu‡A­µ”_W¥ƣO\\\\lċĢttC¨£t`ˆ™PZäuXßBs‡Ļyek€OđġĵHuXBšµ]׌‡­­\\\\›°®¬F¢¾pµ¼kŘó¬Wät’¸|@ž•L¨¸µr“ºù³Ù~§WI‹ŸZWŽ®’±Ð¨ÒÉx€`‰²pĜ•rOògtÁZ}þÙ]„’¡ŒŸFK‚wsPlU[}¦Rvn`hq¬\\\\”nQ´ĘRWb”‚_ rtČFI֊kŠŠĦPJ¶ÖÀÖJĈĄTĚòžC ²@Pú…Øzœ©PœCÈڜĒ±„hŖ‡l¬â~nm¨f©–iļ«m‡nt–u†ÖZÜÄj“ŠLŽ®E̜Fª²iÊxبžIÈhhst"],["@@o\\\\V’zRZ}y"],["@@†@°¡mۛGĕ¨§Ianá[ýƤjfæ‡ØL–•äGr™"]],"encodeOffsets":[[[125592,31553]],[[125785,31436]],[[125729,31431]],[[125513,31380]],[[125223,30438]],[[125115,30114]],[[124815,29155]],[[124419,28746]],[[124095,28635]],[[124005,28609]],[[125000,30713]],[[125111,30698]],[[125078,30682]],[[125150,30684]],[[124014,28103]],[[125008,31331]],[[125411,31468]],[[125329,31479]],[[125626,30916]],[[125417,30956]],[[125254,30976]],[[125199,30997]],[[125095,31058]],[[125083,30915]],[[124885,31015]],[[125218,30798]],[[124867,30838]],[[124755,30788]],[[124802,30809]],[[125267,30657]],[[125218,30578]],[[125200,30562]],[[124968,30474]],[[125167,30396]],[[124955,29879]],[[124714,29781]],[[124762,29462]],[[124325,28754]],[[123990,28459]],[[125366,31477]],[[125115,30363]],[[125369,31139]],[[122495,31878]],[[125329,30690]],[[125192,30787]]]},"properties":{"cp":[120.153576,30.287459],"name":"浙江","childNum":45}},{"id":"340000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@^iuLX^"],["@@‚e©Ehl"],["@@°ZÆëϵmkǀwÌÕæhºgBĝâqÙĊz›ÖgņtÀÁÊÆá’hEz|WzqD¹€Ÿ°E‡ŧl{ævÜcA`¤C`|´qžxIJkq^³³ŸGšµbƒíZ…¹qpa±ď OH—¦™Ħˆx¢„gPícOl_iCveaOjCh߸i݋bÛªCC¿€m„RV§¢A|t^iĠGÀtÚs–d]ĮÐDE¶zAb àiödK¡~H¸íæAžǿYƒ“j{ď¿‘™À½W—®£ChŒÃsiŒkkly]_teu[bFa‰Tig‡n{]Gqªo‹ĈMYá|·¥f¥—őaSÕė™NµñĞ«ImŒ_m¿Âa]uĜp …Z_§{Cƒäg¤°r[_Yj‰ÆOdý“[ŽI[á·¥“Q_n‡ùgL¾mv™ˊBÜƶĊJhšp“c¹˜O]iŠ]œ¥ jtsggJǧw×jÉ©±›EFˍ­‰Ki”ÛÃÕYv…s•ˆm¬njĻª•§emná}k«ŕˆƒgđ²Ù›DǤ›í¡ªOy›†×Où±@DŸñSęćăÕIÕ¿IµĥO‰‰jNÕËT¡¿tNæŇàåyķrĕq§ÄĩsWÆߎF¶žX®¿‰mŒ™w…RIޓfßoG‘³¾©uyH‘į{Ɓħ¯AFnuP…ÍÔzšŒV—dàôº^Ðæd´€‡oG¤{S‰¬ćxã}›ŧ×Kǥĩ«žÕOEзÖdÖsƘѨ[’Û^Xr¢¼˜§xvěƵ`K”§ tÒ´Cvlo¸fzŨð¾NY´ı~ÉĔē…ßúLÃϖ_ÈÏ|]ÂÏFl”g`bšežž€n¾¢pU‚h~ƴĖ¶_‚r sĄ~cž”ƈ]|r c~`¼{À{ȒiJjz`îÀT¥Û³…]’u}›f…ïQl{skl“oNdŸjŸäËzDvčoQŠďHI¦rb“tHĔ~BmlRš—V_„ħTLnñH±’DžœL‘¼L˜ªl§Ťa¸ŒĚlK²€\\\\RòvDcÎJbt[¤€D@®hh~kt°ǾzÖ@¾ªdb„YhüóZ ň¶vHrľ\\\\ʗJuxAT|dmÀO„‹[ÃԋG·ĚąĐlŪÚpSJ¨ĸˆLvÞcPæķŨŽ®mАˆálŸwKhïgA¢ųƩޖ¤OȜm’°ŒK´"]],"encodeOffsets":[[[121722,32278]],[[119475,30423]],[[119168,35472]]]},"properties":{"cp":[117.283042,31.86119],"name":"安徽","childNum":3}},{"id":"350000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@“zht´‡]"],["@@aj^~ĆG—©O"],["@@ed¨„C}}i"],["@@@vˆPGsQ"],["@@‰sBz‚ddW]Q"],["@@SŽ¨Q“{"],["@@NŽVucW"],["@@qptBAq"],["@@‰’¸[mu"],["@@Q\\\\pD]_"],["@@jSwUadpF"],["@@eXª~ƒ•"],["@@AjvFso"],["@@fT–›_Çí\\\\Ÿ™—v|ba¦jZÆy€°"],["@@IjJi"],["@@wJI€ˆxš«¼AoNe{M­"],["@@K‰±¡Óˆ”ČäeZ"],["@@k¡¹Eh~c®wBk‹UplÀ¡I•~Māe£bN¨gZý¡a±Öcp©PhžI”Ÿ¢Qq…ÇGj‹|¥U™ g[Ky¬ŏ–v@OpˆtÉEŸF„\\\\@ åA¬ˆV{Xģ‰ĐBy…cpě…¼³Ăp·¤ƒ¥o“hqqÚ¡ŅLsƒ^ᗞ§qlŸÀhH¨MCe»åÇGD¥zPO£čÙkJA¼ß–ėu›ĕeûҍiÁŧSW¥˜QŠûŗ½ùěcݧSùĩąSWó«íęACµ›eR—åǃRCÒÇZÍ¢‹ź±^dlsŒtjD¸•‚ZpužÔâÒH¾oLUêÃÔjjēò´ĄW‚ƛ…^Ñ¥‹ĦŸ@Çò–ŠmŒƒOw¡õyJ†yD}¢ďÑÈġfŠZd–a©º²z£šN–ƒjD°Ötj¶¬ZSÎ~¾c°¶Ðm˜x‚O¸¢Pl´žSL|¥žA†ȪĖM’ņIJg®áIJČĒü` ŽQF‡¬h|ÓJ@zµ |ê³È ¸UÖŬŬÀEttĸr‚]€˜ðŽM¤ĶIJHtÏ A’†žĬkvsq‡^aÎbvŒd–™fÊòSD€´Z^’xPsÞrv‹ƞŀ˜jJd×ŘÉ ®A–ΦĤd€xĆqAŒ†ZR”ÀMźŒnĊ»ŒİÐZ— YX–æJŠyĊ²ˆ·¶q§·–K@·{s‘Xãô«lŗ¶»o½E¡­«¢±¨Yˆ®Ø‹¶^A™vWĶGĒĢžPlzfˆļŽtàAvWYãšO_‡¤sD§ssČġ[kƤPX¦Ž`¶“ž®ˆBBvĪjv©šjx[L¥àï[F…¼ÍË»ğV`«•Ip™}ccÅĥZE‹ãoP…´B@ŠD—¸m±“z«Ƴ—¿å³BRضˆœWlâþäą`“]Z£Tc— ĹGµ¶H™m@_©—kŒ‰¾xĨ‡ôȉðX«½đCIbćqK³Á‹Äš¬OAwã»aLʼn‡ËĥW[“ÂGI—ÂNxij¤D¢ŽîĎÎB§°_JœGsƒ¥E@…¤uć…P‘å†cuMuw¢BI¿‡]zG¹guĮck\\\\_"]],"encodeOffsets":[[[123250,27563]],[[122541,27268]],[[123020,27189]],[[122916,27125]],[[122887,26845]],[[122808,26762]],[[122568,25912]],[[122778,26197]],[[122515,26757]],[[122816,26587]],[[123388,27005]],[[122450,26243]],[[122578,25962]],[[121255,25103]],[[120987,24903]],[[122339,25802]],[[121042,25093]],[[122439,26024]]]},"properties":{"cp":[119.306239,26.075302],"name":"福建","childNum":18}},{"id":"360000","type":"Feature","geometry":{"type":"Polygon","coordinates":["@@ĢĨƐgļˆ¼ÂMD~ņªe^\\\\^§„ý©j׍cZ†Ø¨zdÒa¶ˆlҍJŒìõ`oz÷@¤u޸´†ôęöY¼‰HČƶajlÞƩ¥éZ[”|h}^U Œ ¥p„ĄžƦO lt¸Æ €Q\\\\€ŠaÆ|CnÂOjt­ĚĤd’ÈŒF`’¶„@Ð딠¦ōҞ¨Sêv†HĢûXD®…QgėWiØPÞìºr¤dž€NĠ¢l–•ĄtZoœCƞÔºCxrpĠV®Ê{f_Y`_ƒeq’’®Aot`@o‚DXfkp¨|Šs¬\\\\D‘ÄSfè©Hn¬…^DhÆyøJh“ØxĢĀLʈ„ƠPżċĄwȠ̦G®ǒĤäTŠÆ~ĦwŠ«|TF¡Šn€c³Ïå¹]ĉđxe{ÎӐ†vOEm°BƂĨİ|G’vz½ª´€H’àp”eJ݆Qšxn‹ÀŠW­žEµàXÅĪt¨ÃĖrÄwÀFÎ|ňÓMå¼ibµ¯»åDT±m[“r«_gŽmQu~¥V\\\\OkxtL E¢‹ƒ‘Ú^~ýê‹Pó–qo슱_Êw§ÑªåƗā¼‹mĉŹ‹¿NQ“…YB‹ąrwģcÍ¥B•Ÿ­ŗÊcØiI—žƝĿuŒqtāwO]‘³YCñTeɕš‹caub͈]trlu€ī…B‘ПGsĵıN£ï—^ķqss¿FūūV՟·´Ç{éĈý‰ÿ›OEˆR_ŸđûIċâJh­ŅıN‘ȩĕB…¦K{Tk³¡OP·wn—µÏd¯}½TÍ«YiµÕsC¯„iM•¤™­•¦¯P|ÿUHv“he¥oFTu‰õ\\\\ŽOSs‹MòđƇiaºćXŸĊĵà·çhƃ÷ǜ{‘ígu^›đg’m[×zkKN‘¶Õ»lčÓ{XSƉv©_ÈëJbVk„ĔVÀ¤P¾ºÈMÖxlò~ªÚàGĂ¢B„±’ÌŒK˜y’áV‡¼Ã~­…`g›ŸsÙfI›Ƌlę¹e|–~udjˆuTlXµf`¿JdŠ[\\\\˜„L‚‘²"],"encodeOffsets":[[116689,26234]]},"properties":{"cp":[115.892151,28.676493],"name":"江西","childNum":1}},{"id":"370000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@Xjd]{K"],["@@itbFHy"],["@@HlGk"],["@@T‚ŒGŸy"],["@@K¬˜•‹U"],["@@WdXc"],["@@PtOs"],["@@•LnXhc"],["@@ppVƒu]Or"],["@@cdzAUa"],["@@udRhnCI‡"],["@@ˆoIƒpR„"],["@@Ľč{fzƤî’Kš–ÎMĮ]†—ZFˆ½Y]â£ph’™š¶¨râøÀ†ÎǨ¤^ºÄ”Gzˆ~grĚĜlĞƄLĆdž¢Îo¦–cv“Kb€gr°Wh”mZp ˆL]LºcU‰Æ­n”żĤÌĒœbAnrOAœ´žȊcÀbƦUØrĆUÜøœĬƞ†š˜Ez„VL®öØBkŖÝĐĖ¹ŧ̄±ÀbÎɜnb²ĦhņBĖ›žįĦåXćì@L¯´ywƕCéõė ƿ¸‘lµ¾Z|†ZWyFYŸ¨Mf~C¿`€à_RÇzwƌfQnny´INoƬˆèôº|sT„JUš›‚L„îVj„ǎ¾Ē؍‚Dz²XPn±ŴPè¸ŔLƔÜƺ_T‘üÃĤBBċȉöA´fa„˜M¨{«M`‡¶d¡ô‰Ö°šmȰBÔjjŒ´PM|”c^d¤u•ƒ¤Û´Œä«ƢfPk¶Môlˆ]Lb„}su^ke{lC‘…M•rDŠÇ­]NÑFsmoõľH‰yGă{{çrnÓE‰‹ƕZGª¹Fj¢ïW…uøCǷ돡ąuhÛ¡^Kx•C`C\\\\bÅxì²ĝÝ¿_N‰īCȽĿåB¥¢·IŖÕy\\\\‡¹kx‡Ã£Č×GDyÕ¤ÁçFQ¡„KtŵƋ]CgÏAùSed‡cÚź—ŠuYfƒyMmhUWpSyGwMPqŀ—›Á¼zK›¶†G•­Y§Ëƒ@–´śÇµƕBmœ@Io‚g——Z¯u‹TMx}C‘‰VK‚ï{éƵP—™_K«™pÛÙqċtkkù]gŽ‹Tğwo•ɁsMõ³ă‡AN£™MRkmEʕč™ÛbMjÝGu…IZ™—GPģ‡ãħE[iµBEuŸDPԛ~ª¼ętŠœ]ŒûG§€¡QMsğNPŏįzs£Ug{đJĿļā³]ç«Qr~¥CƎÑ^n¶ÆéÎR~Ż¸Y’I“] P‰umŝrƿ›‰›Iā‹[x‰edz‹L‘¯v¯s¬ÁY…~}…ťuŁŒg›ƋpÝĄ_ņī¶ÏSR´ÁP~ž¿Cyžċßdwk´Ss•X|t‰`Ä Èð€AªìÎT°¦Dd–€a^lĎDĶÚY°Ž`ĪŴǒˆ”àŠv\\\\ebŒZH„ŖR¬ŢƱùęO•ÑM­³FۃWp[ƒ"]],"encodeOffsets":[[[123806,39303]],[[123821,39266]],[[123742,39256]],[[123702,39203]],[[123649,39066]],[[123847,38933]],[[123580,38839]],[[123894,37288]],[[123043,36624]],[[123344,38676]],[[123522,38857]],[[123628,38858]],[[118260,36742]]]},"properties":{"cp":[117.000923,36.675807],"name":"山东","childNum":13}},{"id":"410000","type":"Feature","geometry":{"type":"Polygon","coordinates":["@@•ýL™ùµP³swIÓxcŢĞð†´E®žÚPt†ĴXØx¶˜@«ŕŕQGƒ‹Yfa[şu“ßǩ™đš_X³ijÕčC]kbc•¥CS¯ëÍB©÷‹–³­Siˆ_}m˜YTtž³xlàcȂzÀD}ÂOQ³ÐTĨ¯†ƗòËŖ[hœł‹Ŧv~††}ÂZž«¤lPǕ£ªÝŴÅR§ØnhcŒtâk‡nύ­ľŹUÓÝdKuķ‡I§oTũÙďkęĆH¸ÓŒ\\\\ăŒ¿PcnS{wBIvɘĽ[GqµuŸŇôYgûƒZcaŽ©@½Õǽys¯}lgg@­C\\\\£as€IdÍuCQñ[L±ęk·‹ţb¨©kK—’»›KC²‘òGKmĨS`ƒ˜UQ™nk}AGē”sqaJ¥ĐGR‰ĎpCuÌy ã iMc”plk|tRk†ðœev~^‘´†¦ÜŽSí¿_iyjI|ȑ|¿_»d}qŸ^{“Ƈdă}Ÿtqµ`Ƴĕg}V¡om½fa™Ço³TTj¥„tĠ—Ry”K{ùÓjuµ{t}uËR‘iŸvGŠçJFjµŠÍyqΘàQÂFewixGw½Yŷpµú³XU›½ġy™łå‰kÚwZXˆ·l„¢Á¢K”zO„Λ΀jc¼htoDHr…|­J“½}JZ_¯iPq{tę½ĕ¦Zpĵø«kQ…Ťƒ]MÛfaQpě±ǽ¾]u­Fu‹÷nƒ™čįADp}AjmcEǒaª³o³ÆÍSƇĈÙDIzˑ赟^ˆKLœ—i—Þñ€[œƒaA²zz‰Ì÷Dœ|[šíijgf‚ÕÞd®|`ƒĆ~„oĠƑô³Ŋ‘D×°¯CsŠøÀ«ì‰UMhTº¨¸ǡîS–Ô„DruÂÇZ•ÖEŽ’vPZ„žW”~؋ÐtĄE¢¦Ðy¸bŠô´oŬ¬Ž²Ês~€€]®tªašpŎJ¨Öº„_ŠŔ–`’Ŗ^Ѝ\\\\Ĝu–”~m²Ƹ›¸fW‰ĦrƔ}Î^gjdfÔ¡J}\\\\n C˜¦þWxªJRÔŠu¬ĨĨmF†dM{\\\\d\\\\ŠYÊ¢ú@@¦ª²SŠÜsC–}fNècbpRmlØ^g„d¢aÒ¢CZˆZxvÆ¶N¿’¢T@€uCœ¬^ĊðÄn|žlGl’™Rjsp¢ED}€Fio~ÔNŽ‹„~zkĘHVsDzßjƒŬŒŠŢ`Pûàl¢˜\\\\ÀœEhŽİgÞē X¼Pk–„|m"],"encodeOffsets":[[118256,37017]]},"properties":{"cp":[113.665412,34.757975],"name":"河南","childNum":1}},{"id":"420000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@AB‚"],["@@lskt"],["@@¾«}{ra®pîÃ\\\\™›{øCŠËyyB±„b\\\\›ò˜Ý˜jK›‡L ]ĎĽÌ’JyÚCƈćÎT´Å´pb©È‘dFin~BCo°BĎĚømvŒ®E^vǾ½Ĝ²Ro‚bÜeNŽ„^ĺ£R†¬lĶ÷YoĖ¥Ě¾|sOr°jY`~I”¾®I†{GqpCgyl{‡£œÍƒÍyPL“¡ƒ¡¸kW‡xYlÙ抚ŁĢzœ¾žV´W¶ùŸo¾ZHxjwfx„GNÁ•³Xéæl¶‰EièIH‰ u’jÌQ~v|sv¶Ôi|ú¢Fh˜Qsğ¦ƒSiŠBg™ÐE^ÁÐ{–čnOÂȞUÎóĔ†ÊēIJ}Z³½Mŧïeyp·uk³DsѨŸL“¶_œÅuèw»—€¡WqÜ]\\\\‘Ò§tƗcÕ¸ÕFÏǝĉăxŻČƟO‡ƒKÉġÿ×wg”÷IÅzCg†]m«ªGeçÃTC’«[‰t§{loWeC@ps_Bp‘­r‘„f_``Z|ei¡—oċMqow€¹DƝӛDYpûs•–‹Ykıǃ}s¥ç³[§ŸcYŠ§HK„«Qy‰]¢“wwö€¸ïx¼ņ¾Xv®ÇÀµRĠЋžHMž±cÏd„ƒǍũȅȷ±DSyúĝ£ŤĀàtÖÿï[îb\\\\}pĭÉI±Ñy…¿³x¯N‰o‰|¹H™ÏÛm‹júË~Tš•u˜ęjCöAwě¬R’đl¯ Ñb­‰ŇT†Ŀ_[Œ‘IčĄʿnM¦ğ\\\\É[T·™k¹œ©oĕ@A¾w•ya¥Y\\\\¥Âaz¯ãÁ¡k¥ne£Ûw†E©Êō¶˓uoj_Uƒ¡cF¹­[Wv“P©w—huÕyBF“ƒ`R‹qJUw\\\\i¡{jŸŸEPïÿ½fć…QÑÀQ{ž‚°‡fLԁ~wXg—ītêݾ–ĺ‘Hdˆ³fJd]‹HJ²…E€ƒoU¥†HhwQsƐ»Xmg±çve›]Dm͂PˆoCc¾‹_h”–høYrŊU¶eD°Č_N~øĹĚ·`z’]Äþp¼…äÌQŒv\\\\rCŒé¾TnkžŐڀÜa‡“¼ÝƆĢ¶Ûo…d…ĔňТJq’Pb ¾|JŒ¾fXŠƐîĨ_Z¯À}úƲ‹N_ĒĊ^„‘ĈaŐyp»CÇĕKŠšñL³ŠġMŒ²wrIÒŭxjb[œžn«øœ˜—æˆàƒ ^²­h¯Ú€ŐªÞ¸€Y²ĒVø}Ā^İ™´‚LŠÚm„¥ÀJÞ{JVŒųÞŃx×sxxƈē ģMř–ÚðòIf–Ċ“Œ\\\\Ʈ±ŒdʧĘD†vČ_Àæ~DŒċ´A®µ†¨ØLV¦êHÒ¤"]],"encodeOffsets":[[[113712,34000]],[[115612,30507]],[[113649,34054]]]},"properties":{"cp":[114.298572,30.584355],"name":"湖北","childNum":3}},{"id":"430000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@—n„FTs"],["@@ßÅÆችÔXr—†CO™“…ËR‘ïÿĩ­TooQyšÓ[‹ŅBE¬–ÎÓXa„į§Ã¸G °ITxp‰úxÚij¥Ïš–Ģ¾ŠedžÄ©ĸG…œàGh‚€M¤–Â_U}Ċ}¢pczfŠþg¤€”ÇòAV‘‹M"],["@@©K—ƒA·³CQ±Á«³BUŠƑ¹AŠtćOw™D]ŒJiØSm¯b£‘ylƒ›X…HËѱH•«–‘C^õľA–Å§¤É¥„ïyuǙuA¢^{ÌC´­¦ŷJ£^[†“ª¿‡ĕ~•Ƈ…•N… skóā‡¹¿€ï]ă~÷O§­@—Vm¡‹Qđ¦¢Ĥ{ºjԏŽŒª¥nf´•~ÕoŸž×Ûą‹MąıuZœmZcÒ IJĪ²SÊDŽŶ¨ƚƒ’CÖŎªQؼrŭŽ­«}NÏürʬŒmjr€@ĘrTW ­SsdHzƓ^ÇÂyUi¯DÅYlŹu{hTœ}mĉ–¹¥ě‰Dÿë©ıÓ[Oº£ž“¥ót€ł¹MՄžƪƒ`Pš…Di–ÛUŠ¾Å‌ìˆU’ñB“È£ýhe‰dy¡oċ€`pfmjP~‚kZa…ZsÐd°wj§ƒ@€Ĵ®w~^‚kÀÅKvNmX\\\\¨a“”сqvíó¿F„¤¡@ũÑVw}S@j}¾«pĂr–ªg àÀ²NJ¶¶Dô…K‚|^ª†Ž°LX¾ŴäPĪ±œ£EXd›”^¶›IJÞܓ~‘u¸ǔ˜Ž›MRhsR…e†`ÄofIÔ\\\\Ø  i”ćymnú¨cj ¢»–GČìƊÿШXeĈĀ¾Oð Fi ¢|[jVxrIQŒ„_E”zAN¦zLU`œcªx”OTu RLÄ¢dV„i`p˔vŎµªÉžF~ƒØ€d¢ºgİàw¸Áb[¦Zb¦–z½xBĖ@ªpº›šlS¸Ö\\\\Ĕ[N¥ˀmĎă’J\\\\‹ŀ`€…ňSڊĖÁĐiO“Ĝ«BxDõĚiv—ž–S™Ì}iùŒžÜnšÐºGŠ{Šp°M´w†ÀÒzJ²ò¨ oTçüöoÛÿñŽőФ‚ùTz²CȆȸǎŪƒƑÐc°dPÎŸğ˶[Ƚu¯½WM¡­Éž“’B·rížnZŸÒ `‡¨GA¾\\\\pē˜XhÆRC­üWGġu…T靧Ŏѝ©ò³I±³}_‘‹EÃħg®ęisÁPDmÅ{‰b[Rşs·€kPŸŽƥƒóRo”O‹ŸVŸ~]{g\\\\“êYƪ¦kÝbiċƵŠGZ»Ěõ…ó·³vŝž£ø@pyö_‹ëŽIkѵ‡bcѧy…×dY؎ªiþž¨ƒ[]f]Ņ©C}ÁN‡»hĻħƏ’ĩ"]],"encodeOffsets":[[[115640,30489]],[[112543,27312]],[[116690,26230]]]},"properties":{"cp":[112.982279,28.19409],"name":"湖南","childNum":3}},{"id":"440000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@QdˆAua"],["@@ƒlxDLo"],["@@sbhNLo"],["@@Ă āŸ"],["@@WltO[["],["@@Krœ]S"],["@@e„„I]y"],["@@I|„Mym"],["@@ƒÛ³LSŒž¼Y"],["@@nvºB–ëui©`¾"],["@@zdšÛ›Jw®"],["@@†°…¯"],["@@a yAª¸ËJIx،@€ĀHAmßV¡o•fu•o"],["@@šs‰ŗÃÔėAƁ›ZšÄ ~°ČP‚‹äh"],["@@‹¶Ý’Ì‚vmĞh­ı‡Q"],["@@HœŠdSjĒ¢D}war…“u«ZqadYM"],["@@elŒ\\\\LqqU"],["@@~rMo\\\\"],["@@f„^ƒC"],["@@øPªoj÷ÍÝħXČx”°Q¨ıXNv"],["@@gÇƳˆŽˆ”oˆŠˆ[~tly"],["@@E–ÆC¿‘"],["@@OŽP"],["@@w‹†đóg‰™ĝ—[³‹¡VÙæÅöM̳¹pÁaËýý©D©Ü“JŹƕģGą¤{Ùū…ǘO²«BƱéA—Ò‰ĥ‡¡«BhlmtÃPµyU¯uc“d·w_bŝcīímGOŽ|KP’ȏ‡ŹãŝIŕŭŕ@Óoo¿ē‹±ß}Ž…ŭ‚ŸIJWÈCőâUâǙI›ğʼn©I›ijEׅÁ”³Aó›wXJþ±ÌŒÜӔĨ£L]ĈÙƺZǾĆĖMĸĤfŒÎĵl•ŨnȈ‘ĐtF”Š–FĤ–‚êk¶œ^k°f¶gŠŽœ}®Fa˜f`vXŲxl˜„¦–ÔÁ²¬ÐŸ¦pqÊ̲ˆi€XŸØRDÎ}†Ä@ZĠ’s„x®AR~®ETtĄZ†–ƈfŠŠHâÒÐA†µ\\\\S¸„^wĖkRzŠalŽŜ|E¨ÈNĀňZTŒ’pBh£\\\\ŒĎƀuXĖtKL–¶G|Ž»ĺEļĞ~ÜĢÛĊrˆO˜Ùîvd]nˆ¬VœÊĜ°R֟pM††–‚ƂªFbwžEÀˆ˜©Œž\\\\…¤]ŸI®¥D³|ˎ]CöAŤ¦…æ’´¥¸Lv¼€•¢ĽBaô–F~—š®²GÌҐEY„„œzk¤’°ahlV՞I^‹šCxĈPŽsB‰ƒºV‰¸@¾ªR²ĨN]´_eavSi‡vc•}p}Đ¼ƌkJœÚe thœ†_¸ ºx±ò_xN›Ë‹²‘@ƒă¡ßH©Ùñ}wkNÕ¹ÇO½¿£ĕ]ly_WìIžÇª`ŠuTÅxYĒÖ¼k֞’µ‚MžjJÚwn\\\\h‘œĒv]îh|’È›Ƅøègž¸Ķß ĉĈWb¹ƀdéʌNTtP[ŠöSvrCZžžaGuœbo´ŖÒÇА~¡zCI…özx¢„Pn‹•‰Èñ @ŒĥÒ¦†]ƞŠV}³ăĔñiiÄÓVépKG½Ä‘ÓávYo–C·sit‹iaÀy„ŧΡÈYDÑům}‰ý|m[węõĉZÅxUO}÷N¹³ĉo_qtă“qwµŁYلǝŕ¹tïÛUïmRCº…ˆĭ|µ›ÕÊK™½R‘ē ó]‘–GªęAx–»HO£|ām‡¡diď×YïYWªʼnOeÚtĐ«zđ¹T…ā‡úE™á²\\\\‹ķÍ}jYàÙÆſ¿Çdğ·ùTßÇţʄ¡XgWÀLJğ·¿ÃˆOj YÇ÷Qě‹i"]],"encodeOffsets":[[[117381,22988]],[[116552,22934]],[[116790,22617]],[[116973,22545]],[[116444,22536]],[[116931,22515]],[[116496,22490]],[[116453,22449]],[[113301,21439]],[[118726,21604]],[[118709,21486]],[[113210,20816]],[[115482,22082]],[[113171,21585]],[[113199,21590]],[[115232,22102]],[[115739,22373]],[[115134,22184]],[[113056,21175]],[[119573,21271]],[[119957,24020]],[[115859,22356]],[[116561,22649]],[[116285,22746]]]},"properties":{"cp":[113.280637,23.125178],"name":"广东","childNum":24}},{"id":"450000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@H– TQ§•A"],["@@ĨʪƒLƒƊDÎĹĐCǦė¸zÚGn£¾›rªŀÜt¬@֛ڈSx~øOŒ˜ŶÐÂæȠ\\\\„ÈÜObĖw^oބLf¬°bI lTØB̈F£Ć¹gñĤaY“t¿¤VSñœK¸¤nM†¼‚JE±„½¸šŠño‹ÜCƆæĪ^ŠĚQÖ¦^‡ˆˆf´Q†üÜʝz¯šlzUĺš@쇀p¶n]sxtx¶@„~ÒĂJb©gk‚{°‚~c°`ԙ¬rV\\\\“la¼¤ôá`¯¹LC†ÆbŒxEræO‚v[H­˜„[~|aB£ÖsºdAĐzNÂðsŽÞƔ…Ĥªbƒ–ab`ho¡³F«èVloŽ¤™ÔRzpp®SŽĪº¨ÖƒºN…ij„d`’a”¦¤F³ºDÎńĀìŠCžĜº¦Ċ•~nS›|gźvZkCÆj°zVÈÁƔ]LÊFZg…čP­kini«‹qǀcz͔Y®¬Ů»qR×ō©DՄ‘§ƙǃŵTÉĩ±ŸıdÑnYY›IJvNĆƌØÜ Öp–}e³¦m‹©iÓ|¹Ÿħņ›|ª¦QF¢Â¬ʖovg¿em‡^ucà÷gՎuŒíÙćĝ}FĻ¼Ĺ{µHK•sLSđƃr‹č¤[Ag‘oS‹ŇYMÿ§Ç{Fśbky‰lQxĕƒ]T·¶[B…ÑÏGáşşƇe€…•ăYSs­FQ}­Bƒw‘tYğÃ@~…C̀Q ×W‡j˱rÉ¥oÏ ±«ÓÂ¥•ƒ€k—ŽwWűŒmcih³K›~‰µh¯e]lµ›él•Eģ‰•E“ďs‡’mǖŧē`ãògK_ÛsUʝ“ćğ¶hŒöŒO¤Ǜn³Žc‘`¡y‹¦C‘ez€YŠwa™–‘[ďĵűMę§]X˜Î_‚훘Û]é’ÛUćİÕBƣ±…dƒy¹T^džûÅÑŦ·‡PĻþÙ`K€¦˜…¢ÍeœĥR¿Œ³£[~Œäu¼dl‰t‚†W¸oRM¢ď\\\\zœ}Æzdvň–{ÎXF¶°Â_„ÒÂÏL©Ö•TmuŸ¼ãl‰›īkiqéfA„·Êµ\\\\őDc¥ÝF“y›Ôć˜c€űH_hL܋êĺШc}rn`½„Ì@¸¶ªVLŒŠhŒ‹\\\\•Ţĺk~ŽĠið°|gŒtTĭĸ^x‘vK˜VGréAé‘bUu›MJ‰VÃO¡…qĂXËS‰ģãlýàŸ_ju‡YÛÒB†œG^˜é֊¶§ŽƒEG”ÅzěƒƯ¤Ek‡N[kdåucé¬dnYpAyČ{`]þ¯T’bÜÈk‚¡Ġ•vŒàh„ÂƄ¢J"]],"encodeOffsets":[[[111707,21520]],[[107619,25527]]]},"properties":{"cp":[108.320004,22.82402],"name":"广西","childNum":2}},{"id":"460000","type":"Feature","geometry":{"type":"Polygon","coordinates":["@@š¦Ŝil¢”XƦ‘ƞò–ïè§ŞCêɕrŧůÇąĻõ™·ĉ³œ̅kÇm@ċȧƒŧĥ‰Ľʉ­ƅſ“ȓÒ˦ŝE}ºƑ[ÍĜȋ gÎfǐÏĤ¨êƺ\\\\Ɔ¸ĠĎvʄȀœÐ¾jNðĀÒRŒšZdž™zÐŘΰH¨Ƣb²_Ġ "],"encodeOffsets":[[112750,20508]]},"properties":{"cp":[110.33119,20.031971],"name":"海南","childNum":1}},{"id":"510000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@LqKr"],["@@Š[ĻéV£ž_ţġñpG •réÏ·~ąSfy×͂·ºſƽiÍıƣıĻmHH}siaX@iÇ°ÁÃ×t«ƒ­Tƒ¤J–JJŒyJ•ÈŠ`Ohߦ¡uËhIyCjmÿw…ZG……Ti‹SˆsO‰žB²ŸfNmsPaˆ{M{ŠõE‘^Hj}gYpaeuž¯‘oáwHjÁ½M¡pM“–uå‡mni{fk”\\\\oƒÎqCw†EZ¼K›ĝŠƒAy{m÷L‡wO×SimRI¯rK™õBS«sFe‡]fµ¢óY_ÆPRcue°Cbo׌bd£ŌIHgtrnyPt¦foaXďx›lBowz‹_{ÊéWiêE„GhܸºuFĈIxf®Ž•Y½ĀǙ]¤EyŸF²ċ’w¸¿@g¢§RGv»–áŸW`ÃĵJwi]t¥wO­½a[׈]`Ãi­üL€¦LabbTÀå’c}Íh™Æhˆ‹®BH€î|Ék­¤S†y£„ia©taį·Ɖ`ō¥Uh“O…ƒĝLk}©Fos‰´›Jm„µlŁu—…ø–nÑJWΪ–YÀïAetTžŅ‚ӍG™Ë«bo‰{ıwodƟ½ƒžOġܑµxàNÖ¾P²§HKv¾–]|•B‡ÆåoZ`¡Ø`ÀmºĠ~ÌЧnDž¿¤]wğ@sƒ‰rğu‰~‘Io”[é±¹ ¿žſđӉ@q‹gˆ¹zƱřaí°KtǤV»Ã[ĩǭƑ^ÇÓ@ỗs›Zϕ‹œÅĭ€Ƌ•ěpwDóÖሯneQˌq·•GCœýS]xŸ·ý‹q³•O՜Œ¶Qzßti{ř‰áÍÇWŝŭñzÇW‹pç¿JŒ™‚Xœĩè½cŒF–ÂLiVjx}\\\\N†ŇĖ¥Ge–“JA¼ÄHfÈu~¸Æ«dE³ÉMA|b˜Ò…˜ćhG¬CM‚õŠ„ƤąAvƒüV€éŀ‰_V̳ĐwQj´·ZeÈÁ¨X´Æ¡Qu·»Ÿ“˜ÕZ³ġqDo‰y`L¬gdp°şŠp¦ėìÅĮZŽ°Iä”h‚‘ˆzŠĵœf²å ›ĚрKp‹IN|‹„Ñz]ń……·FU×é»R³™MƒÉ»GM«€ki€™ér™}Ã`¹ăÞmȝnÁîRǀ³ĜoİzŔwǶVÚ£À]ɜ»ĆlƂ²Ġ…þTº·àUȞÏʦ¶†I’«dĽĢdĬ¿–»Ĕ׊h\\\\c¬†ä²GêëĤł¥ÀǿżÃÆMº}BÕĢyFVvw–ˆxBèĻĒ©Ĉ“tCĢɽŠȣ¦āæ·HĽî“ôNԓ~^¤Ɗœu„œ^s¼{TA¼ø°¢İªDè¾Ň¶ÝJ‘®Z´ğ~Sn|ªWÚ©òzPOȸ‚bð¢|‹øĞŠŒœŒQìÛÐ@Ğ™ǎRS¤Á§d…i“´ezÝúØã]Hq„kIŸþËQǦÃsǤ[E¬ÉŪÍxXƒ·ÖƁİlƞ¹ª¹|XÊwn‘ÆƄmÀêErĒtD®ċæcQƒ”E®³^ĭ¥©l}äQto˜ŖÜqƎkµ–„ªÔĻĴ¡@Ċ°B²Èw^^RsºTĀ£ŚæœQP‘JvÄz„^Đ¹Æ¯fLà´GC²‘dt˜­ĀRt¼¤ĦOðğfÔðDŨŁĞƘïžPȆ®âbMüÀXZ ¸£@Ś›»»QÉ­™]d“sÖ×_͖_ÌêŮPrĔĐÕGĂeZÜîĘqBhtO ¤tE[h|Y‹Ô‚ZśÎs´xº±UŒ’ñˆt|O’ĩĠºNbgþŠJy^dÂY Į„]Řz¦gC‚³€R`ĀŠz’¢AjŒ¸CL„¤RÆ»@­Ŏk\\\\Ç´£YW}z@Z}‰Ã¶“oû¶]´^N‡Ò}èN‚ª–P˜Íy¹`S°´†ATe€VamdUĐwʄvĮÕ\\\\ƒu‹Æŗ¨Yp¹àZÂm™Wh{á„}WØǍ•Éüw™ga§áCNęÎ[ĀÕĪgÖɪX˜øx¬½Ů¦¦[€—„NΆL€ÜUÖ´òrÙŠxR^–†J˜k„ijnDX{Uƒ~ET{ļº¦PZc”jF²Ė@Žp˜g€ˆ¨“B{ƒu¨ŦyhoÚD®¯¢˜ WòàFΤ¨GDäz¦kŮPœġq˚¥À]€Ÿ˜eŽâÚ´ªKxī„Pˆ—Ö|æ[xäJÞĥ‚s’NÖ½ž€I†¬nĨY´®Ð—ƐŠ€mD™ŝuäđđEb…e’e_™v¡}ìęNJē}q”É埁T¯µRs¡M@}ůa†a­¯wvƉåZwž\\\\Z{åû^›"]],"encodeOffsets":[[[108815,30935]],[[110617,31811]]]},"properties":{"cp":[104.065735,30.659462],"name":"四川","childNum":2}},{"id":"520000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@†G\\\\†lY£‘in"],["@@q‚|ˆ‚mc¯tχVSÎ"],["@@hÑ£Is‡NgßH†›HªķÃh_¹ƒ¡ĝħń¦uيùŽgS¯JHŸ|sÝÅtÁïyMDč»eÕtA¤{b\\\\}—ƒG®u\\\\åPFq‹wÅaD…žK°ºâ_£ùbµ”mÁ‹ÛœĹM[q|hlaªāI}тƒµ@swtwm^oµˆD鼊yV™ky°ÉžûÛR…³‚‡eˆ‡¥]RՋěħ[ƅåÛDpŒ”J„iV™™‰ÂF²I…»mN·£›LbÒYb—WsÀbŽ™pki™TZĄă¶HŒq`……ĥ_JŸ¯ae«ƒKpÝx]aĕÛPƒÇȟ[ÁåŵÏő—÷Pw}‡TœÙ@Õs«ĿÛq©½œm¤ÙH·yǥĘĉBµĨÕnđ]K„©„œá‹ŸG纍§Õßg‡ǗĦTèƤƺ{¶ÉHÎd¾ŚÊ·OÐjXWrãLyzÉAL¾ę¢bĶėy_qMĔąro¼hĊžw¶øV¤w”²Ĉ]ʚKx|`ź¦ÂÈdr„cȁbe¸›`I¼čTF´¼Óýȃr¹ÍJ©k_șl³´_pН`oÒhŽ¶pa‚^ÓĔ}D»^Xyœ`d˜[Kv…JPhèhCrĂĚÂ^Êƌ wˆZL­Ġ£šÁbrzOIl’MM”ĪŐžËr×ÎeŦŽtw|Œ¢mKjSǘňĂStÎŦEtqFT†¾†E쬬ôxÌO¢Ÿ KŠ³ŀºäY†„”PVgŎ¦Ŋm޼VZwVlŒ„z¤…ž£Tl®ctĽÚó{G­A‡ŒÇgeš~Αd¿æaSba¥KKûj®_ć^\\\\ؾbP®¦x^sxjĶI_Ä X‚⼕Hu¨Qh¡À@Ëô}Ž±žGNìĎlT¸ˆ…`V~R°tbÕĊ`¸úÛtπFDu€[ƒMfqGH·¥yA‰ztMFe|R‚_Gk†ChZeÚ°to˜v`x‹b„ŒDnÐ{E}šZ˜è€x—†NEފREn˜[Pv@{~rĆAB§‚EO¿|UZ~ì„Uf¨J²ĂÝƀ‚sª–B`„s¶œfvö¦ŠÕ~dÔq¨¸º»uù[[§´sb¤¢zþFœ¢Æ…Àhˆ™ÂˆW\\\\ıŽËI݊o±ĭŠ£þˆÊs}¡R]ŒěƒD‚g´VG¢‚j±®è†ºÃmpU[Á›‘Œëº°r›ÜbNu¸}Žº¼‡`ni”ºÔXĄ¤¼Ôdaµ€Á_À…†ftQQgœR—‘·Ǔ’v”}Ýלĵ]µœ“Wc¤F²›OĩųãW½¯K‚©…]€{†LóµCIµ±Mß¿hŸ•©āq¬o‚½ž~@i~TUxŪÒ¢@ƒ£ÀEîôruń‚”“‚b[§nWuMÆLl¿]x}ij­€½"]],"encodeOffsets":[[[112158,27383]],[[112105,27474]],[[112095,27476]]]},"properties":{"cp":[106.713478,26.578343],"name":"贵州","childNum":3}},{"id":"530000","type":"Feature","geometry":{"type":"Polygon","coordinates":["@@[„ùx½}ÑRH‘YīĺûsÍn‘iEoã½Ya²ė{c¬ĝg•ĂsA•ØÅwď‚õzFjw}—«Dx¿}UũlŸê™@•HÅ­F‰¨ÇoJ´Ónũuą¡Ã¢pÒŌ“Ø TF²‚xa²ËX€‚cʋlHîAßËŁkŻƑŷÉ©h™W­æßU‡“Ës¡¦}•teèƶStǀÇ}Fd£j‹ĈZĆÆ‹¤T‚č\\\\Dƒ}O÷š£Uˆ§~ŃG™‚åŃDĝ¸œTsd¶¶Bªš¤u¢ŌĎo~t¾ÍŶÒtD¦Ú„iôö‰€z›ØX²ghįh½Û±¯€ÿm·zR¦Ɵ`ªŊÃh¢rOԍ´£Ym¼èêf¯ŪĽn„†cÚbŒw\\\\zlvWžªâˆ ¦g–mĿBş£¢ƹřbĥkǫßeeZkÙIKueT»sVesb‘aĕ  ¶®dNœĄÄpªyŽ¼—„³BE˜®l‡ŽGœŭCœǶwêżĔÂe„pÍÀQƞpC„–¼ŲÈ­AÎô¶R„ä’Q^Øu¬°š_Èôc´¹ò¨P΢hlϦ´Ħ“Æ´sâDŽŲPnÊD^¯°’Upv†}®BP̪–jǬx–Söwlfòªv€qĸ|`H€­viļ€ndĜ­Ćhň•‚em·FyށqóžSį¯‘³X_ĞçêtryvL¤§z„¦c¦¥jnŞk˜ˆlD¤øz½ĜàžĂŧMÅ|áƆàÊcðÂF܎‚áŢ¥\\\\\\\\º™İøÒÐJĴ‡„îD¦zK²ǏÎEh~’CD­hMn^ÌöÄ©ČZÀžaü„fɭyœpį´ěFűk]Ôě¢qlÅĆÙa¶~Äqššê€ljN¬¼H„ÊšNQ´ê¼VظE††^ŃÒyŒƒM{ŒJLoÒœęæŸe±Ķ›y‰’‡gã“¯JYÆĭĘëo¥Š‰o¯hcK«z_pŠrC´ĢÖY”—¼ v¸¢RŽÅW³Â§fǸYi³xR´ďUˊ`êĿU„û€uĆBƒƣö‰N€DH«Ĉg†——Ñ‚aB{ÊNF´¬c·Åv}eÇÃGB»”If•¦HňĕM…~[iwjUÁKE•Ž‹¾dĪçW›šI‹èÀŒoÈXòyŞŮÈXâÎŚŠj|àsRy‹µÖ›–Pr´þŒ ¸^wþTDŔ–Hr¸‹žRÌmf‡żÕâCôox–ĜƌÆĮŒ›Ð–œY˜tâŦÔ@]ÈǮƒ\\\\Ī¼Ä£UsȯLbîƲŚºyh‡rŒŠ@ĒԝƀŸÀ²º\\\\êp“’JŠ}ĠvŠqt„Ġ@^xÀ£È†¨mËÏğ}n¹_¿¢×Y_æpˆÅ–A^{½•Lu¨GO±Õ½ßM¶w’ÁĢۂP‚›Ƣ¼pcIJxŠ|ap̬HšÐŒŊSfsðBZ¿©“XÏÒK•k†÷Eû¿‰S…rEFsÕūk”óVǥʼniTL‚¡n{‹uxţÏh™ôŝ¬ğōN“‘NJkyPaq™Âğ¤K®‡YŸxÉƋÁ]āęDqçgOg†ILu—\\\\_gz—]W¼ž~CÔē]bµogpў_oď`´³Țkl`IªºÎȄqÔþž»E³ĎSJ»œ_f·‚adÇqƒÇc¥Á_Źw{™L^ɱćx“U£µ÷xgĉp»ĆqNē`rĘzaĵĚ¡K½ÊBzyäKXqiWPÏɸ½řÍcÊG|µƕƣG˛÷Ÿk°_^ý|_zċBZocmø¯hhcæ\\\\lˆMFlư£Ĝ„ÆyH“„F¨‰µêÕ]—›HA…àӄ^it `þßäkŠĤÎT~Wlÿ¨„ÔPzUC–NVv [jâôDôď[}ž‰z¿–msSh‹¯{jïğl}šĹ[–őŒ‰gK‹©U·µË@¾ƒm_~q¡f¹…ÅË^»‘f³ø}Q•„¡Ö˳gͱ^ǁ…\\\\ëÃA_—¿bW›Ï[¶ƛ鏝£F{īZgm@|kHǭƁć¦UĔťƒ×ë}ǝƒeďºȡȘÏíBə£āĘPªij¶“ʼnÿ‡y©n‰ď£G¹¡I›Š±LÉĺÑdĉ܇W¥˜‰}g˜Á†{aqÃ¥aŠıęÏZ—ï`"],"encodeOffsets":[[104636,22969]]},"properties":{"cp":[102.712251,25.040609],"name":"云南","childNum":1}},{"id":"540000","type":"Feature","geometry":{"type":"Polygon","coordinates":["@@hžľxŽŖ‰xƒÒVŽ†ºÅâAĪÝȆµę¯Ňa±r_w~uSÕň‘qOj]ɄQ…£Z……UDûoY’»©M[‹L¼qãË{V͕çWViŽ]ë©Ä÷àyƛh›ÚU°ŒŒa”d„cQƒ~Mx¥™cc¡ÙaSyF—ցk­ŒuRýq¿Ôµ•QĽ³aG{¿FµëªéĜÿª@¬·–K‰·àariĕĀ«V»Ŷ™Ĵū˜gèLǴŇƶaf‹tŒèBŚ£^Šâ†ǐÝ®–šM¦ÁǞÿ¬LhŸŽJ¾óƾƺcxw‹f]Y…´ƒ¦|œQLn°aœdĊ…œ\\\\¨o’œǀÍŎœ´ĩĀd`tÊQŞŕ|‚¨C^©œĈ¦„¦ÎJĊ{ŽëĎjª²rЉšl`¼Ą[t|¦St辉PŒÜK¸€d˜Ƅı]s¤—î_v¹ÎVòŦj˜£Əsc—¬_Ğ´|Ł˜¦AvŽ¦w`ăaÝaa­¢e¤ı²©ªSªšÈMĄwžÉØŔì@T‘¤—Ę™\\\\õª@”þo´­xA s”ÂtŎKzó´ÇĊµ¢rž^nĊ­Æ¬×üGž¢‚³ {âĊ]š™G‚~bÀgVjzlhǶf€žOšfdŠ‰ªB]pj„•TO–tĊ‚n¤}®¦ƒČ¥d¢¼»ddš”Y¼Žt—¢eȤJ¤}Ǿ¡°§¤AГlc@ĝ”sªćļđAç‡wx•UuzEÖġ~AN¹ÄÅȀŻ¦¿ģŁéì±H…ãd«g[؉¼ēÀ•cīľġ¬cJ‘µ…ÐʥVȝ¸ßS¹†ý±ğkƁ¼ą^ɛ¤Ûÿ‰b[}¬ōõÃ]ËNm®g@•Bg}ÍF±ǐyL¥íCˆƒIij€Ï÷њį[¹¦[⚍EÛïÁÉdƅß{âNÆāŨߝ¾ě÷yC£‡k­´ÓH@¹†TZ¥¢įƒ·ÌAЧ®—Zc…v½ŸZ­¹|ŕWZqgW“|ieZÅYVӁqdq•bc²R@†c‡¥Rã»Ge†ŸeƃīQ•}J[ғK…¬Ə|o’ėjġĠÑN¡ð¯EBčnwôɍėªƒ²•CλŹġǝʅįĭạ̃ūȹ]ΓͧgšsgȽóϧµǛ†ęgſ¶ҍć`ĘąŌJޚä¤rÅň¥ÖÁUětęuůÞiĊÄÀ\\\\Æs¦ÓRb|Â^řÌkÄŷ¶½÷‡f±iMݑ›‰@ĥ°G¬ÃM¥n£Øą‚ğ¯ß”§aëbéüÑOčœk£{\\\\‘eµª×M‘šÉfm«Ƒ{Å׃Gŏǩãy³©WÑăû‚··‘Q—òı}¯ã‰I•éÕÂZ¨īès¶ZÈsŽæĔTŘvŽgÌsN@îá¾ó@‰˜ÙwU±ÉT廣TđŸWxq¹Zo‘b‹s[׌¯cĩv‡Œėŧ³BM|¹k‰ªħ—¥TzNYnݍßpęrñĠĉRS~½ŠěVVŠµ‚õ‡«ŒM££µB•ĉ¥áºae~³AuĐh`Ü³ç@BۘïĿa©|z²Ý¼D”£àč²‹ŸƒIƒû›I ā€óK¥}rÝ_Á´éMaň¨€~ªSĈ½Ž½KÙóĿeƃÆBŽ·¬ën×W|Uº}LJrƳ˜lŒµ`bÔ`QˆˆÐÓ@s¬ñIŒÍ@ûws¡åQÑßÁ`ŋĴ{Ī“T•ÚÅTSij‚‹Yo|Ç[ǾµMW¢ĭiÕØ¿@˜šMh…pÕ]j†éò¿OƇĆƇp€êĉâlØw–ěsˆǩ‚ĵ¸c…bU¹ř¨WavquSMzeo_^gsÏ·¥Ó@~¯¿RiīB™Š\\\\”qTGªÇĜçPoŠÿfñòą¦óQīÈáP•œābß{ƒZŗĸIæńhnszÁCËìñšÏ·ąĚÝUm®ó­L·ăU›Èíoù´Êj°ŁŤ_uµ^‘°Œìǖ@tĶĒ¡Æ‡M³Ģ«˜İĨÅ®ğ†RŽāð“ggheÆ¢z‚Ê©Ô\\\\°ÝĎz~ź¤Pn–MĪÖB£Ÿk™n鄧żćŠ˜ĆK„Ē°¼L¶è‰âz¨u¦¥LDĘz¬ýÎmĘd¾ß”Fz“hg²™Fy¦ĝ¤ċņbΛ@y‚Ąæm°NĮZRÖíŽJ²öLĸÒ¨Y®ƌÐV‰à˜tt_ڀÂyĠzž]Ţh€zĎ{†ĢX”ˆc|šÐqŽšfO¢¤ög‚ÌHNŽ„PKŖœŽ˜Uú´xx[xˆvĐCûĀŠìÖT¬¸^}Ìsòd´_Ž‡KgžLĴ…ÀBon|H@–Êx˜—¦BpŰˆŌ¿fµƌA¾zLjRxŠ¶F”œkĄźRzŀˆ~¶[”´Hnª–VƞuĒ­È¨ƎcƽÌm¸ÁÈM¦x͊ëÀxdžB’šú^´W†£–d„kɾĬpœw‚˂ØɦļĬIŚœÊ•n›Ŕa¸™~J°î”lɌxĤÊÈðhÌ®‚g˜T´øŽàCˆŽÀ^ªerrƘdž¢İP|Ė ŸWœªĦ^¶´ÂL„aT±üWƜ˜ǀRšŶUńšĖ[QhlLüA†‹Ü\\\\†qR›Ą©"],"encodeOffsets":[[90849,37210]]},"properties":{"cp":[91.132212,29.660361],"name":"西藏","childNum":1}},{"id":"610000","type":"Feature","geometry":{"type":"Polygon","coordinates":["@@˜p¢—ȮµšûG™Ħ}Ħšðǚ¶òƄ€jɂz°{ºØkÈęâ¦jª‚Bg‚\\\\œċ°s¬Ž’]jžú ‚E”Ȍdž¬s„t‡”RˆÆdĠݎwܔ¸ôW¾ƮłÒ_{’Ìšû¼„jº¹¢GǪÒ¯ĘƒZ`ºŊƒecņąš~BÂgzpâēòYǠȰÌTΨÂWœ|fcŸă§uF—Œ@NŸ¢XLƒŠRMº[ğȣſï|¥J™kc`sʼnǷ’Y¹‹W@µ÷K…ãï³ÛIcñ·VȋڍÒķø©—þ¥ƒy‚ÓŸğęmWµÎumZyOŅƟĥÓ~sÑL¤µaŅY¦ocyZ{‰y c]{ŒTa©ƒ`U_Ěē£ωÊƍKù’K¶ȱÝƷ§{û»ÅÁȹÍéuij|¹cÑd‘ŠìUYƒŽO‘uF–ÕÈYvÁCqӃT•Ǣí§·S¹NgŠV¬ë÷Át‡°Dد’C´ʼnƒópģ}„ċcE˅FŸŸéGU¥×K…§­¶³B‹Č}C¿åċ`wġB·¤őcƭ²ő[Å^axwQO…ÿEËߌ•ĤNĔŸwƇˆÄŠńwĪ­Šo[„_KÓª³“ÙnK‰Çƒěœÿ]ď€ă_d©·©Ýŏ°Ù®g]±„Ÿ‡ß˜å›—¬÷m\\\\›iaǑkěX{¢|ZKlçhLt€Ňîŵ€œè[€É@ƉĄEœ‡tƇÏ˜³­ħZ«mJ…›×¾‘MtÝĦ£IwÄå\\\\Õ{‡˜ƒOwĬ©LÙ³ÙgBƕŀr̛ĢŭO¥lãyC§HÍ£ßEñŸX¡—­°ÙCgpťz‘ˆb`wI„vA|§”‡—hoĕ@E±“iYd¥OĻ¹S|}F@¾oAO²{tfžÜ—¢Fǂ҈W²°BĤh^Wx{@„¬‚­F¸¡„ķn£P|ŸªĴ@^ĠĈæb–Ôc¶l˜Yi…–^Mi˜cĎ°Â[ä€vï¶gv@À“Ĭ·lJ¸sn|¼u~a]’ÆÈtŌºJp’ƒþ£KKf~Š¦UbyäIšĺãn‡Ô¿^­žŵMT–hĠܤko¼Ŏìąǜh`[tŒRd²IJ_œXPrɲ‰l‘‚XžiL§àƒ–¹ŽH˜°Ȧqº®QC—bA†„ŌJ¸ĕÚ³ĺ§ `d¨YjžiZvRĺ±öVKkjGȊĐePОZmļKÀ€‚[ŠŽ`ösìh†ïÎoĬdtKÞ{¬èÒÒBŒÔpIJÇĬJŊ¦±J«ˆY§‹@·pH€µàåVKe›pW†ftsAÅqC·¬ko«pHÆuK@oŸHĆۄķhx“e‘n›S³àǍrqƶRbzy€¸ËАl›¼EºpĤ¼Œx¼½~Ğ’”à@†ÚüdK^ˆmÌSj"],"encodeOffsets":[[110234,38774]]},"properties":{"cp":[108.948024,34.263161],"name":"陕西","childNum":1}},{"id":"620000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@VuUv"],["@@ũ‹EĠtt~nkh`Q‰¦ÅÄÜdw˜Ab×ĠąJˆ¤DüègĺqBqœj°lI¡ĨÒ¤úSHbš‡ŠjΑBŠ°aZˆ¢KJŽ’O[|A£žDx}Nì•HUnrk„ kp€¼Y kMJn[aG‚áÚÏ[½rc†}aQxOgsPMnUs‡nc‹Z…ž–sKúvA›t„Þġ’£®ĀYKdnFwš¢JE°”Latf`¼h¬we|€Æ‡šbj}GA€·~WŽ”—`†¢MC¤tL©IJ°qdf”O‚“bÞĬ¹ttu`^ZúE`Œ[@„Æsîz®¡’C„ƳƜG²“R‘¢R’m”fŽwĸg܃‚ą G@pzJM½mŠhVy¸uÈÔO±¨{LfæU¶ßGĂq\\\\ª¬‡²I‚¥IʼnÈīoı‹ÓÑAçÑ|«LÝcspīðÍg…të_õ‰\\\\ĉñLYnĝg’ŸRǡÁiHLlõUĹ²uQjYi§Z_c¨Ÿ´ĹĖÙ·ŋI…ƒaBD˜­R¹ȥr—¯G•ºß„K¨jWk’ɱŠOq›Wij\\\\a­‹Q\\\\sg_ĆǛōëp»£lğۀgS•ŶN®À]ˆÓäm™ĹãJaz¥V}‰Le¤L„ýo‘¹IsŋÅÇ^‘Žbz…³tmEÁ´aŠ¹cčecÇN•ĊãÁ\\\\č¯—dNj•]j†—ZµkÓda•ćå]ğij@ ©O{¤ĸm¢ƒE·®ƒ«|@Xwg]Aģ±¯‡XǁÑdzªc›wQÚŝñsÕ³ÛV_ýƒ˜¥\\\\ů¥©¾÷w—Ž©WÕÊĩhÿÖÁRo¸V¬âDb¨šhûx–Ê×nj~Zâƒg|šXÁnßYoº§ZÅŘvŒ[„ĭÖʃuďxcVbnUSf…B¯³_Tzº—ΕO©çMÑ~Mˆ³]µ^püµ”ŠÄY~y@X~¤Z³€[Èōl@®Å¼£QKƒ·Di‹¡By‘ÿ‰Q_´D¥hŗyƒ^ŸĭÁZ]cIzý‰ah¹MĪğP‘s{ò‡‹‘²Vw¹t³Ŝˁ[ŽÑ}X\\\\gsFŸ£sPAgěp×ëfYHāďÖqēŭOÏë“dLü•\\\\iŒ”t^c®šRʺ¶—¢H°mˆ‘rYŸ£BŸ¹čIoľu¶uI]vģSQ{ƒUŻ”Å}QÂ|̋°ƅ¤ĩŪU ęĄžÌZҞ\\\\v˜²PĔ»ƢNHƒĂyAmƂwVmž`”]ȏb•”H`‰Ì¢²ILvĜ—H®¤Dlt_„¢JJÄämèÔDëþgºƫ™”aʎÌrêYi~ ÎݤNpÀA¾Ĕ¼b…ð÷’Žˆ‡®‚”üs”zMzÖĖQdȨý†v§Tè|ªH’þa¸|šÐ ƒwKĢx¦ivr^ÿ ¸l öæfƟĴ·PJv}n\\\\h¹¶v†·À|\\\\ƁĚN´Ĝ€çèÁz]ġ¤²¨QÒŨTIl‡ªťØ}¼˗ƦvÄùØE‹’«Fï˛Iq”ōŒTvāÜŏ‚íÛߜÛV—j³âwGăÂíNOŠˆŠPìyV³ʼnĖýZso§HіiYw[߆\\\\X¦¥c]ÔƩÜ·«j‡ÐqvÁ¦m^ċ±R™¦΋ƈťĚgÀ»IïĨʗƮŽ°Ɲ˜ĻþÍAƉſ±tÍEÕÞāNU͗¡\\\\ſčåÒʻĘm ƭÌŹöʥ’ëQ¤µ­ÇcƕªoIýˆ‰Iɐ_mkl³ă‰Ɠ¦j—¡Yz•Ňi–}Msßõ–īʋ —}ƒÁVmŸ_[n}eı­Uĥ¼‘ª•I{ΧDӜƻėoj‘qYhĹT©oūĶ£]ďxĩ‹ǑMĝ‰q`B´ƃ˺Ч—ç~™²ņj@”¥@đ´ί}ĥtPńǾV¬ufӃÉC‹tÓ̻‰…¹£G³€]ƖƾŎĪŪĘ̖¨ʈĢƂlɘ۪üºňUðǜȢƢż̌ȦǼ‚ĤŊɲĖ­Kq´ï¦—ºĒDzņɾªǀÞĈĂD†½ĄĎÌŗĞrôñnŽœN¼â¾ʄľԆ|DŽŽ֦ज़ȗlj̘̭ɺƅêgV̍ʆĠ·ÌĊv|ýĖÕWĊǎÞ´õ¼cÒÒBĢ͢UĜð͒s¨ňƃLĉÕÝ@ɛƯ÷¿Ľ­ĹeȏijëCȚDŲyê×Ŗyò¯ļcÂßY…tÁƤyAã˾J@ǝrý‹‰@¤…rz¸oP¹ɐÚyᐇHŸĀ[Jw…cVeȴϜ»ÈŽĖ}ƒŰŐèȭǢόĀƪÈŶë;Ñ̆ȤМľĮEŔ—ĹŊũ~ËUă{ŸĻƹɁύȩþĽvĽƓÉ@ē„ĽɲßǐƫʾǗĒpäWÐxnsÀ^ƆwW©¦cÅ¡Ji§vúF¶Ž¨c~c¼īŒeXǚ‹\\\\đ¾JŽwÀďksãA‹fÕ¦L}wa‚o”Z’‹D½†Ml«]eÒÅaɲáo½FõÛ]ĻÒ¡wYR£¢rvÓ®y®LF‹LzĈ„ôe]gx}•|KK}xklL]c¦£fRtív¦†PĤoH{tK"]],"encodeOffsets":[[[108619,36299]],[[108589,36341]]]},"properties":{"cp":[103.823557,36.058039],"name":"甘肃","childNum":2}},{"id":"630000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@InJm"],["@@CƒÆ½OŃĦsΰ~Ē³¦@@“Ņiš±è}ؘƄ˹A³r_ĞŠǒNĪŒĐw¤^ŬĵªpĺSZg’rpiƼĘԛ¨C|͖J’©Ħ»®VIJ~f\\\\m `Un„˜~ʌŸ•ĬàöNt•~ňjy–¢Zi˜Ɣ¥ĄŠk´nl`JʇŠJþ©pdƖ®È£¶ìRʦ‘źõƮËnŸʼėæÑƀĎ[‚˜¢VÎĂMÖÝÎF²sƊƀÎBļýƞ—¯ʘƭðħ¼Jh¿ŦęΌƇš¥²Q]Č¥nuÂÏriˆ¸¬ƪÛ^Ó¦d€¥[Wà…x\\\\ZŽjҕ¨GtpþYŊĕ´€zUO뇉P‰îMĄÁxH´á˜iÜUà›îÜՁĂÛSuŎ‹r“œJð̬EŒ‘FÁú×uÃÎkr“Ē{V}İ«O_ÌËĬ©ŽÓŧSRѱ§Ģ£^ÂyèçěM³Ƃę{[¸¿u…ºµ[gt£¸OƤĿéYŸõ·kĀŸq]juw¥Dĩƍ€õÇPéĽG‘ž©ã‡¤G…uȧþRcÕĕNy“yût“ˆ­‡ø‘†ï»a½ē¿BMoį£ŸÍj}éZËqbʍš“Ƭh¹ìÿÓAçãnIáI`ƒks£CG­ě˜Uy×Cy•…’Ÿ@¶ʡÊBnāzG„ơMē¼±O÷õJËĚăVŸĪũƆ£Œ¯{ËL½Ìzż“„VR|ĠTbuvJvµhĻĖH”Aëáa…­OÇðñęNw‡…œľ·L›mI±íĠĩPÉ×®ÿs—’cB³±JKßĊ«`…ađ»·QAmO’‘Vţéÿ¤¹SQt]]Çx€±¯A@ĉij¢Óļ©•ƒl¶ÅÛr—ŕspãRk~¦ª]Į­´“FR„åd­ČsCqđéFn¿Åƃm’Éx{W©ºƝºįkÕƂƑ¸wWūЩÈFž£\\\\tÈ¥ÄRÈýÌJ ƒlGr^×äùyÞ³fj”c†€¨£ÂZ|ǓMĝšÏ@ëÜőR‹›ĝ‰Œ÷¡{aïȷPu°ËXÙ{©TmĠ}Y³’­ÞIňµç½©C¡į÷¯B»|St»›]vƒųƒs»”}MÓ ÿʪƟǭA¡fs˜»PY¼c¡»¦c„ċ­¥£~msĉP•–Siƒ^o©A‰Šec‚™PeǵŽkg‚yUi¿h}aH™šĉ^|ᴟ¡HØûÅ«ĉ®]m€¡qĉ¶³ÈyôōLÁst“BŸ®wn±ă¥HSòėš£˜S’ë@לÊăxÇN©™©T±ª£IJ¡fb®ÞbŽb_Ą¥xu¥B—ž{łĝ³«`d˜Ɛt—¤ťiñžÍUuºí`£˜^tƃIJc—·ÛLO‹½Šsç¥Ts{ă\\\\_»™kϊ±q©čiìĉ|ÍIƒ¥ć¥›€]ª§D{ŝŖÉR_sÿc³Īō›ƿΑ›§p›[ĉ†›c¯bKm›R¥{³„Z†e^ŽŒwx¹dƽŽôIg §Mĕ ƹĴ¿—ǣÜ̓]‹Ý–]snåA{‹eŒƭ`ǻŊĿ\\\\ijŬű”YÂÿ¬jĖqŽßbŠ¸•L«¸©@ěĀ©ê¶ìÀEH|´bRľž–Ó¶rÀQþ‹vl®Õ‚E˜TzÜdb ˜hw¤{LR„ƒd“c‹b¯‹ÙVgœ‚ƜßzÃô쮍^jUèXΖ|UäÌ»rKŽ\\\\ŒªN‘¼pZCü†VY††¤ɃRi^rPҒTÖ}|br°qňbĚ°ªiƶGQ¾²„x¦PœmlŜ‘[Ĥ¡ΞsĦŸÔÏâ\\\\ªÚŒU\\\\f…¢N²§x|¤§„xĔsZPòʛ²SÐqF`ª„VƒÞŜĶƨVZŒÌL`ˆ¢dŐIqr\\\\oäõ–F礻Ŷ×h¹]Clـ\\\\¦ďÌį¬řtTӺƙgQÇÓHţĒ”´ÃbEÄlbʔC”|CˆŮˆk„Ʈ[ʼ¬ňœ´KŮÈΰÌĪ¶ƶlð”ļA†TUvdTŠG†º̼ŠÔ€ŒsÊDԄveOg"]],"encodeOffsets":[[[105308,37219]],[[95370,40081]]]},"properties":{"cp":[101.778916,36.623178],"name":"青海","childNum":2}},{"id":"640000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@KëÀęĞ«OęȿȕŸı]ʼn¡åįÕÔ«Ǵõƪ™ĚQÐZhv K°›öqÀѐS[ÃÖHƖčË‡nL]ûc…Ùß@‚“ĝ‘¾}w»»‹oģF¹œ»kÌÏ·{zPƒ§B­¢íyÅt@ƒ@áš]Yv_ssģ¼i߁”ĻL¾ġsKD£¡N_…“˜X¸}B~Haiˆ™Åf{«x»ge_bs“KF¯¡Ix™mELcÿZ¤­Ģ‘ƒÝœsuBLù•t†ŒYdˆmVtNmtOPhRw~bd…¾qÐ\\\\âÙH\\\\bImlNZŸ»loƒŸqlVm–Gā§~QCw¤™{A\\\\‘PKŸNY‡¯bF‡kC¥’sk‹Šs_Ã\\\\ă«¢ħkJi¯r›rAhĹûç£CU‡ĕĊ_ԗBixÅُĄnªÑaM~ħpOu¥sîeQ¥¤^dkKwlL~{L~–hw^‚ófćƒKyEŒ­K­zuÔ¡qQ¤xZÑ¢^ļöܾEpž±âbÊÑÆ^fk¬…NC¾‘Œ“YpxbK~¥Že֎ŒäBlt¿Đx½I[ĒǙŒWž‹f»Ĭ}d§dµùEuj¨‚IÆ¢¥dXªƅx¿]mtÏwßRĶŒX¢͎vÆzƂZò®ǢÌʆCrâºMÞzžÆMҔÊÓŊZľ–r°Î®Ȉmª²ĈUªĚøºˆĮ¦ÌĘk„^FłĬhĚiĀĖ¾iİbjÕ"],["@@mfwěwMrŢªv@G‰"]],"encodeOffsets":[[[109366,40242]],[[108600,36303]]]},"properties":{"cp":[106.278179,38.46637],"name":"宁夏","childNum":2}},{"id":"650000","type":"Feature","geometry":{"type":"Polygon","coordinates":["@@QØĔ²X¨”~ǘBºjʐßØvK”ƔX¨vĊOžÃƒ·¢i@~c—‡ĝe_«”Eš“}QxgɪëÏÃ@sÅyXoŖ{ô«ŸuX…ê•Îf`œC‚¹ÂÿÐGĮÕĞXŪōŸMźÈƺQèĽôe|¿ƸJR¤ĘEjcUóº¯Ĩ_ŘÁMª÷Ð¥Oéȇ¿ÖğǤǷÂF҇zÉx[]­Ĥĝ‰œ¦EP}ûƥé¿İƷTėƫœŕƅ™ƱB»Đ±’ēO…¦E–•}‘`cȺrĦáŖuҞª«IJ‡πdƺÏØZƴwʄ¤ĖGЙǂZĶƒèH¶}ÚZצʥĪï|ÇĦMŔ»İĝLj‹ì¥Βœba­¯¥ǕǚkĆŵĦɑĺƯxūД̵nơʃĽá½M»›òmqóŘĝč˾ăC…ćāƿÝɽ©DZŅ¹đ¥˜³ðLrÁ®ɱĕģʼnǻ̋ȥơŻǛȡVï¹Ň۩ûkɗġƁ§ʇė̕ĩũƽō^ƕŠUv£ƁQï“Ƶkŏ½ΉÃŭdzLқʻ«ƭ\\\\lƒ‡ŭD‡“{ʓDkaFÃÄa“³ŤđÔGRÈƚhSӹŚsİ«ĐË[¥ÚDkº^Øg¼ŵ¸£EÍö•€ůʼnT¡c_‡ËKY‹ƧUśĵ„݃U_©rETÏʜ±OñtYwē¨ƒ{£¨uM³x½şL©Ùá[ÓÐĥ Νtģ¢\\\\‚ś’nkO›w¥±ƒT»ƷFɯàĩÞáB¹Æ…ÑUw„੍žĽw[“mG½Èå~‡Æ÷QyŠěCFmĭZī—ŵVÁ™ƿQƛ—ûXS²‰b½KϽĉS›©ŷXĕŸ{ŽĕK·¥Ɨcqq©f¿]‡ßDõU³h—­gËÇïģÉɋw“k¯í}I·šœbmœÉ–ř›īJɥĻˁ×xo›ɹī‡l•c…¤³Xù]‘™DžA¿w͉ì¥wÇN·ÂËnƾƍdǧđ®Ɲv•Um©³G\\\\“}µĿ‡QyŹl㓛µEw‰LJQ½yƋBe¶ŋÀů‡ož¥A—˜Éw@•{Gpm¿Aij†ŽKLhˆ³`ñcËtW‚±»ÕS‰ëüÿďD‡u\\\\wwwù³—V›LŕƒOMËGh£õP¡™er™Ïd{“‡ġWÁ…č|yšg^ğyÁzÙs`—s|ÉåªÇ}m¢Ń¨`x¥’ù^•}ƒÌ¥H«‰Yªƅ”Aйn~ź¯šf¤áÀz„gŠÇDIԝ´AňĀ҄¶ûEYospõD[{ù°]u›Jq•U•|Soċxţ[õÔĥkŋÞŭZ˺óYËüċrw €ÞkrťË¿XGÉbřaDü·Ē÷Aê[Ää€I®BÕИÞ_¢āĠpŠÛÄȉĖġDKwbm‡ÄNô‡ŠfœƫVÉvi†dz—H‘‹QµâFšù­Âœ³¦{YGžƒd¢ĚÜO „€{Ö¦ÞÍÀPŒ^b–ƾŠlŽ[„vt×ĈÍE˨¡Đ~´î¸ùÎh€uè`¸ŸHÕŔVºwĠââWò‡@{œÙNÝ´ə²ȕn{¿¥{l—÷eé^e’ďˆXj©î\\\\ªÑò˜Üìc\\\\üqˆÕ[Č¡xoÂċªbØ­Œø|€¶ȴZdÆšońéŒGš\\\\”¼C°ÌƁn´nxšÊOĨ’Ūƴĸ¢¸òTxÊǪMīИÖŲÃɎOvˆʦƢ~FŽ‡Rěò—¿ġ~åŊœú‰Nšžš¸qŽ’Ę[Ĕ¶ÂćnÒPĒÜvúĀÊbÖ{Äî¸~Ŕünp¤ÂH¾œĄYÒ©ÊfºmԈĘcDoĬMŬ’˜S¤„s²‚”ʘچžȂVŦ –ŽèW°ªB|IJXŔþÈJĦÆæFĚêŠYĂªĂ]øªŖNÞüA€’fɨJ€˜¯ÎrDDšĤ€`€mz\\\\„§~D¬{vJÂ˜«lµĂb–¤p€ŌŰNĄ¨ĊXW|ų ¿¾ɄĦƐMT”‡òP˜÷fØĶK¢ȝ˔Sô¹òEð­”`Ɩ½ǒÂň×äı–§ĤƝ§C~¡‚hlå‚ǺŦŞkâ’~}ŽFøàIJaĞ‚fƠ¥Ž„Ŕdž˜®U¸ˆźXœv¢aƆúŪtŠųƠjd•ƺŠƺÅìnrh\\\\ĺ¯äɝĦ]èpĄ¦´LƞĬŠ´ƤǬ˼Ēɸ¤rºǼ²¨zÌPðŀbþ¹ļD¢¹œ\\\\ĜÑŚŸ¶ZƄ³àjĨoâŠȴLʉȮŒĐ­ĚăŽÀêZǚŐ¤qȂ\\\\L¢ŌİfÆs|zºeªÙæ§΢{Ā´ƐÚ¬¨Ĵà²łhʺKÞºÖTŠiƢ¾ªì°`öøu®Ê¾ãØ"],"encodeOffsets":[[88824,50096]]},"properties":{"cp":[87.617733,43.792818],"name":"新疆","childNum":1}},{"id":"110000","type":"Feature","geometry":{"type":"Polygon","coordinates":["@@ĽOÁ›ûtŷmiÍt_H»Ĩ±d`Š¹­{bw…Yr“³S]§§o¹€qGtm_Sŧ€“oa›‹FLg‘QN_•dV€@Zom_ć\\\\ߚc±x¯oœRcfe…£’o§ËgToÛJíĔóu…|wP¤™XnO¢ÉˆŦ¯rNÄā¤zâŖÈRpŢZŠœÚ{GŠrFt¦Òx§ø¹RóäV¤XdˆżâºWbwŚ¨Ud®bêņ¾‘jnŎGŃŶŠnzÚSeîĜZczî¾i]͜™QaúÍÔiþĩȨWĢ‹ü|Ėu[qb[swP@ÅğP¿{\\\\‡¥A¨Ï‘Ѩj¯ŠX\\\\¯œMK‘pA³[H…īu}}"],"encodeOffsets":[[120023,41045]]},"properties":{"cp":[116.405285,39.904989],"name":"北京","childNum":1}},{"id":"120000","type":"Feature","geometry":{"type":"Polygon","coordinates":["@@ŬgX§Ü«E…¶Ḟ“¬O_™ïlÁg“z±AXe™µÄĵ{¶]gitgšIj·›¥îakS€‰¨ÐƎk}ĕ{gB—qGf{¿a†U^fI“ư‹³õ{YƒıëNĿžk©ïËZŏ‘R§òoY×Ógc…ĥs¡bġ«@dekąI[nlPqCnp{ˆō³°`{PNdƗqSÄĻNNâyj]äžÒD ĬH°Æ]~¡HO¾ŒX}ÐxŒgp“gWˆrDGˆŒpù‚Š^L‚ˆrzWxˆZ^¨´T\\\\|~@I‰zƒ–bĤ‹œjeĊªz£®Ĕvě€L†mV¾Ô_ȔNW~zbĬvG†²ZmDM~”~"],"encodeOffsets":[[120237,41215]]},"properties":{"cp":[117.190182,39.125596],"name":"天津","childNum":1}},{"id":"310000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@ɧư¬EpƸÁxc‡"],["@@©„ªƒ"],["@@”MA‹‘š"],["@@Qp݁E§ÉC¾"],["@@bŝՕÕEȣÚƥêImɇǦèÜĠŒÚžÃƌÃ͎ó"],["@@ǜûȬɋŠŭ™×^‰sYŒɍDŋ‘ŽąñCG²«ªč@h–_p¯A{‡oloY€¬j@IJ`•gQڛhr|ǀ^MIJvtbe´R¯Ô¬¨YŽô¤r]ì†Ƭį"]],"encodeOffsets":[[[124702,32062]],[[124547,32200]],[[124808,31991]],[[124726,32110]],[[124903,32376]],[[124438,32149]]]},"properties":{"cp":[121.472644,31.231706],"name":"上海","childNum":6}},{"id":"500000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@vjG~nGŘŬĶȂƀƾ¹¸ØÎezĆT¸}êЖqHŸðqĖ䒊¥^CƒIj–²p…\\\\_ æüY|[YxƊæuž°xb®…Űb@~¢NQt°¶‚S栓Ê~rljĔëĚ¢~šuf`‘‚†fa‚ĔJåĊ„nÖ]„jƎćÊ@Š£¾a®£Ű{ŶĕF‹ègLk{Y|¡ĜWƔtƬJÑxq‹±ĢN´‰òK‰™–LÈüD|s`ŋ’ć]ƒÃ‰`đŒMûƱ½~Y°ħ`ƏíW‰½eI‹½{aŸ‘OIrÏ¡ĕŇa†p†µÜƅġ‘œ^ÖÛbÙŽŏml½S‹êqDu[R‹ãË»†ÿw`»y‘¸_ĺę}÷`M¯ċfCVµqʼn÷Z•gg“Œ`d½pDO‡ÎCnœ^uf²ènh¼WtƏxRGg¦…pV„†FI±ŽG^ŒIc´ec‡’G•ĹÞ½sëĬ„h˜xW‚}Kӈe­Xsbk”F¦›L‘ØgTkïƵNï¶}Gy“w\\\\oñ¡nmĈzjŸ•@™Óc£»Wă¹Ój“_m»ˆ¹·~MvÛaqœ»­‰êœ’\\\\ÂoVnŽÓØ͙²«‹bq¿efE „€‹Ĝ^Qž~ Évý‡ş¤²Į‰pEİ}zcĺƒL‹½‡š¿gņ›¡ýE¡ya£³t\\\\¨\\\\vú»¼§·Ñr_oÒý¥u‚•_n»_ƒ•At©Þűā§IVeëƒY}{VPÀFA¨ąB}q@|Ou—\\\\Fm‰QF݅Mw˜å}]•€|FmϋCaƒwŒu_p—¯sfÙgY…DHl`{QEfNysBŠ¦zG¸rHe‚„N\\\\CvEsÐùÜ_·ÖĉsaQ¯€}_U‡†xÃđŠq›NH¬•Äd^ÝŰR¬ã°wećJEž·vÝ·Hgƒ‚éFXjÉê`|yŒpxkAwœWĐpb¥eOsmzwqChóUQl¥F^laf‹anòsr›EvfQdÁUVf—ÎvÜ^efˆtET¬ôA\\\\œ¢sJŽnQTjP؈xøK|nBz‰„œĞ»LY‚…FDxӄvr“[ehľš•vN”¢o¾NiÂxGp⬐z›bfZo~hGi’]öF|‰|Nb‡tOMn eA±ŠtPT‡LjpYQ|†SH††YĀxinzDJ€Ìg¢và¥Pg‰_–ÇzII‹€II•„£®S¬„Øs쐣ŒN"],["@@ifjN@s"]],"encodeOffsets":[[[109628,30765]],[[111725,31320]]]},"properties":{"cp":[106.504962,29.533155],"name":"重庆","childNum":2}},{"id":"810000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@AlBk"],["@@mŽn"],["@@EpFo"],["@@ea¢pl¸Eõ¹‡hj[ƒ]ÔCΖ@lj˜¡uBXŸ…•´‹AI¹…[‹yDUˆ]W`çwZkmc–…M›žp€Åv›}I‹oJlcaƒfёKŽ°ä¬XJmРđhI®æÔtSHn€Eˆ„ÒrÈc"],["@@rMUw‡AS®€e"]],"encodeOffsets":[[[117111,23002]],[[117072,22876]],[[117045,22887]],[[116975,23082]],[[116882,22747]]]},"properties":{"cp":[114.173355,22.320048],"name":"香港","childNum":5}},{"id":"820000","type":"Feature","geometry":{"type":"Polygon","coordinates":["@@kÊd°å§s"],"encodeOffsets":[[116279,22639]]},"properties":{"cp":[113.54909,22.198951],"name":"澳门","childNum":1}}],"UTF8Encoding":true}')},function(t,e,n){var i=n(1),r=n(83),o=n(84);t.exports=function(t){var e=i(t);return o(e,r(e))+1}},function(t,e){t.exports=function(t){var e=new Date(t.getTime()),n=e.getTimezoneOffset();return e.setSeconds(0,0),6e4*n+e.getTime()%6e4}},function(t,e,n){var i=n(1);t.exports=function(t){var e=i(t),n=new Date(0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}},function(t,e,n){var i=n(85),r=6e4,o=864e5;t.exports=function(t,e){var n=i(t),a=i(e),s=n.getTime()-n.getTimezoneOffset()*r,l=a.getTime()-a.getTimezoneOffset()*r;return Math.round((s-l)/o)}},function(t,e,n){var i=n(1);t.exports=function(t){var e=i(t);return e.setHours(0,0,0,0),e}},function(t,e,n){var i=n(1),r=n(22),o=n(88),a=6048e5;t.exports=function(t){var e=i(t),n=r(e).getTime()-o(e).getTime();return Math.round(n/a)+1}},function(t,e,n){var i=n(1);t.exports=function(t,e){var n=e&&Number(e.weekStartsOn)||0,r=i(t),o=r.getDay(),a=(o0?"in "+r:r+" ago":r}}}},function(t,e,n){var i=n(93);t.exports=function(){var t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],e=["January","February","March","April","May","June","July","August","September","October","November","December"],n=["Su","Mo","Tu","We","Th","Fr","Sa"],r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],a=["AM","PM"],s=["am","pm"],l=["a.m.","p.m."],u={MMM:function(e){return t[e.getMonth()]},MMMM:function(t){return e[t.getMonth()]},dd:function(t){return n[t.getDay()]},ddd:function(t){return r[t.getDay()]},dddd:function(t){return o[t.getDay()]},A:function(t){return t.getHours()/12>=1?a[1]:a[0]},a:function(t){return t.getHours()/12>=1?s[1]:s[0]},aa:function(t){return t.getHours()/12>=1?l[1]:l[0]}};return["M","D","DDD","d","Q","W"].forEach(function(t){u[t+"o"]=function(e,n){return function(t){var e=t%100;if(e>20||e<10)switch(e%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"}(n[t](e))}}),{formatters:u,formattingTokensRegExp:i(u)}}},function(t,e){var n=["M","MM","Q","D","DD","DDD","DDDD","d","E","W","WW","YY","YYYY","GG","GGGG","H","HH","h","hh","m","mm","s","ss","S","SS","SSS","Z","ZZ","X","x"];t.exports=function(t){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);var r=n.concat(e).sort().reverse();return new RegExp("(\\[[^\\[]*\\])|(\\\\)?("+r.join("|")+"|.)","g")}},function(t,e,n){var i=n(1);t.exports=function(t,e){var n=i(t),r=Number(e);return n.setDate(n.getDate()+r),n}},function(t,e,n){var i=n(1);t.exports=function(t){var e=i(t),n=e.getFullYear(),r=e.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}},function(t,e,n){var i=n(42);t.exports=function(t,e){var n=Number(e);return i(t,12*n)}},function(t,e,n){var i=n(23),r=n(126),o=n(47),a=n(127),s=n(134),l=n(137),u=n(138),h=n(139),c=n(141),d=n(57),f=n(142),p=n(18),g=n(146),m=n(147),v=n(152),y=n(3),x=n(27),_=n(154),b=n(6),w=n(156),M=n(10),S=1,I=2,A=4,D="[object Arguments]",T="[object Function]",C="[object GeneratorFunction]",L="[object Object]",k={};k[D]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k[L]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k[T]=k["[object WeakMap]"]=!1,t.exports=function t(e,n,P,O,N,E){var z,R=n&S,B=n&I,V=n&A;if(P&&(z=N?P(e,O,N,E):P(e)),void 0!==z)return z;if(!b(e))return e;var F=y(e);if(F){if(z=g(e),!R)return u(e,z)}else{var G=p(e),W=G==T||G==C;if(x(e))return l(e,R);if(G==L||G==D||W&&!N){if(z=B||W?{}:v(e),!R)return B?c(e,s(z,e)):h(e,a(z,e))}else{if(!k[G])return N?e:{};z=m(e,G,R)}}E||(E=new i);var H=E.get(e);if(H)return H;E.set(e,z),w(e)?e.forEach(function(i){z.add(t(i,n,P,i,e,E))}):_(e)&&e.forEach(function(i,r){z.set(r,t(i,n,P,r,e,E))});var j=V?B?f:d:B?keysIn:M,Y=F?void 0:j(e);return r(Y||e,function(i,r){Y&&(i=e[r=i]),o(z,r,t(i,n,P,r,e,E))}),z}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var i=n(12),r=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=i(e,t);return!(n<0)&&(n==e.length-1?e.pop():r.call(e,n,1),--this.size,!0)}},function(t,e,n){var i=n(12);t.exports=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var i=n(12);t.exports=function(t){return i(this.__data__,t)>-1}},function(t,e,n){var i=n(12);t.exports=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}},function(t,e,n){var i=n(11);t.exports=function(){this.__data__=new i,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var i=n(11),r=n(24),o=n(25),a=200;t.exports=function(t,e){var n=this.__data__;if(n instanceof i){var s=n.__data__;if(!r||s.length0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var i=n(63),r=n(168),o=n(173),a=n(64),s=n(174),l=n(36),u=200;t.exports=function(t,e,n){var h=-1,c=r,d=t.length,f=!0,p=[],g=p;if(n)f=!1,c=o;else if(d>=u){var m=e?null:s(t);if(m)return l(m);f=!1,c=a,g=new i}else g=e?[]:p;t:for(;++h-1}},function(t,e,n){var i=n(170),r=n(171),o=n(172);t.exports=function(t,e,n){return e==e?o(t,e,n):i(t,r,n)}},function(t,e){t.exports=function(t,e,n,i){for(var r=t.length,o=n+(i?1:-1);i?o--:++o=l?u:u*("desc"==n[r]?-1:1)}return t.index-e.index}},function(t,e,n){var i=n(20);t.exports=function(t,e){if(t!==e){var n=void 0!==t,r=null===t,o=t==t,a=i(t),s=void 0!==e,l=null===e,u=e==e,h=i(e);if(!l&&!h&&!a&&t>e||a&&s&&u&&!l&&!h||r&&s&&u||!n&&u||!o)return 1;if(!r&&!a&&!h&&t=0&&(o.yAxisIndex=l);var u,h,c=function(t){if(!t||t.length<=0)return[];var e=Object.keys(t[0]).filter(function(t){return"key"!==t}),n=e[0];return e.indexOf("close")>=0&&(n="close"),t.map(function(t){return t[n]})}(n[t.sid]);if(t.stack){var d=r[t.stack];d&&"percent"===d.valueType&&(u=c,h=d.totalValues,c=u.map(function(t,e){var n=h[e];return void 0===n?0:(null==t&&(t=0),t/n*100)}))}if(o.data=c,t.transform){var f=t.transform.ratio||1,p=t.transform.fractionDigits;void 0===p&&(p=4),o.data=c.map(function(e){if(null===e)return null;if(e.hasOwnProperty("value")){var n=e.value;return null!==n&&(n=(n=t.stack&&r[t.stack]&&"percent"==r[t.stack].valueType?Number(n):Number(n)*f).toFixed(p)),function(t){for(var e=1;e=0?"left":"right"),t.hasOwnProperty("min")&&(a.min=I(t.min)),t.hasOwnProperty("max")&&(a.max=I(t.max)),t.hasOwnProperty("unit")&&(a.interval=I(t.unit));var s=t.name,l=e.filter(function(t){return t.axisName===s}),u=!1;return l.forEach(function(t){"bar"===t.chartType&&(u=!0)}),a.scale=!u,"none"===n||"vertical"===n?a.splitLine.show=!1:(a.splitLine.show="left"===a.position,a.splitLine.lineStyle={type:"dotted"}),!1===t.axisLineShow&&(a.axisLine.show=!1),!1===t.axisTickShow&&(a.axisTick.show=!1),!0===t.axisTickInside&&(a.axisTick.inside=!0),!1===t.axisLabelShow&&(a.axisLabel.show=!1),!0===t.axisLabelInside&&(a.axisLabel.inside=!0),t.inverse&&(a.inverse=!0),t.axisLabelFormatter&&"D"!=t.axisLabelFormatter&&(a.axisLabel.formatter=function(e,n){return parseFloat(e.toFixed(4))/k[t.axisLabelFormatter]+t.axisLabelFormatter}),e.find(function(e){return e.axisName===t.name&&e.show})||(a.show=!1),i>2&&"right"==a.position&&a.show&&(a.offset=25*r,r++),a})}(s,a,l);var c=i.yAxis.filter(function(t){return t.show&&"right"==t.position}).length;return i.grid={left:"5%",right:c<=1?"5%":30*(c-1)},i.series=E(a,s,e,r),i}function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function B(t){for(var e=1;e=i:parseInt(t)>=i&&parseInt(t)<=o});o=j()(a,o)}}),Z()(o,function(t){return t})}(e,a,s,t,i)),r}function X(t,e,n,i,r){var o=[];switch(r){case"date":default:o=U(t,e,n,i)}var a={__keyList:o};return e.forEach(function(e){if(t[e]){var n=t[e].data,i=t[e].columns;a[e]=[],o.forEach(function(t){var r=n.date.findIndex(function(e){return e===t}),o={key:t};i.forEach(function(t){o[t]=r>=0?n[t][r]:null}),a[e].push(o)})}}),a}var q={top:20,bottom:0,left:10,right:10,containLabel:!0},K=[{type:"inside",realtime:!0,throttle:100,filterMode:"weakFilter",minValueSpan:5}];function Q(t){return t.xAxis.forEach(function(t){var e=void 0;t.axisLabel?e=t.axisLabel.formatter:t.axisLabel={},e&&!D(e)||(t.axisLabel.formatter=function(t){return e&&(t=e(t)),"string"==typeof t&&t.startsWith("2")?t:(t.length>8&&(t=t.substring(0,8)+"..."),t)})}),t}function J(t){return t.series&&t.series[0]&&t.series[0].type&&("line"==t.series[0].type||"bar"==t.series[0].type)&&(t.dataZoom=K),t}function $(t){t.hasOwnProperty("series")&&t.series[0]&&"pie"==t.series[0].type&&function(t){if(!t.tooltip||!t.tooltip.formatter)return;var e=t.tooltip.formatter;"string"==typeof e&&(t.tooltip.formatter=e.replace("
","\n"))}(t)}function tt(t){return t.hasOwnProperty("options")?t.options=t.options.map(function(t){return t.grid={containLabel:!0,left:10,right:10},t.hasOwnProperty("xAxis")&&Q(t),J(t),$(t),t}):(!function(t){t.grid=q}(t),t.hasOwnProperty("xAxis")&&Q(t),J(t),$(t)),t}var et=function(t){return t.animation=!1,delete t.legend,delete t.tooltip,delete t.title,t=tt(t)},nt=n(80);function it(t){return t.hasOwnProperty("title")&&delete t.title,t.hasOwnProperty("legend")&&delete t.legend,t.grid={top:20,bottom:0,left:10,right:10,containLabel:!0},t}n.d(e,"echarts",function(){return W}),n.d(e,"toEcharts",function(){return G}),n.d(e,"utils",function(){return i}),n.d(e,"assembleData",function(){return X}),n.d(e,"adaptInst",function(){return et}),n.d(e,"simpleChart",function(){return it}),W.registerMap("china",nt)}]); +var vr=!p.canvasSupported,yr={canvas:or},xr={},_r="4.0.6";function br(t,e){var n=new Mr(f(),t,e);return xr[n.id]=n,n}function wr(t,e){yr[t]=e}var Mr=function(t,e,n){n=n||{},this.dom=e,this.id=t;var i=this,r=new Hn,o=n.renderer;if(vr){if(!yr.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");o="vml"}else o&&yr[o]||(o="canvas");var a=new yr[o](e,r,n,t);this.storage=r,this.painter=a;var s=p.node||p.worker?null:new gr(a.getViewportRoot());this.handler=new re(r,a,s,a.root),this.animation=new ar({stage:{update:H(this.flush,this)}}),this.animation.start(),this._needsRefresh;var l=r.delFromStorage,u=r.addToStorage;r.delFromStorage=function(t){l.call(r,t),t&&t.removeSelfFromZr(i)},r.addToStorage=function(t){u.call(r,t),t.addSelfToZr(i)}};Mr.prototype={constructor:Mr,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this._needsRefresh=!0},setBackgroundColor:function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var t;this._needsRefresh&&(t=!0,this.refreshImmediately()),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately()),t&&this.trigger("rendered")},addHover:function(t,e){if(this.painter.addHover){var n=this.painter.addHover(t,e);return this.refreshHover(),n}},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(t,e){return this.painter.pathToImage(t,e)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},findHover:function(t,e){return this.handler.findHover(t,e)},on:function(t,e,n){this.handler.on(t,e,n)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,t=this.id,delete xr[t]}};var Sr=(Object.freeze||Object)({version:_r,init:br,dispose:function(t){if(t)t.dispose();else{for(var e in xr)xr.hasOwnProperty(e)&&xr[e].dispose();xr={}}return this},getInstance:function(t){return xr[t]},registerPainter:wr}),Ir=B,Ar=X,Dr=Y,Tr="series\0";function Cr(t){return t instanceof Array?t:null==t?[]:[t]}function Lr(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=n.length&&n.push({option:t})}}),n}function Nr(t){var e=ht();Ir(t,function(t,n){var i=t.exist;i&&e.set(i.id,t)}),Ir(t,function(t,n){var i=t.option;rt(!i||null==i.id||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})}),Ir(t,function(t,n){var i=t.exist,r=t.option,o=t.keyInfo;if(Ar(r)){if(o.name=null!=r.name?r.name+"":i?i.name:Tr+n,i)o.id=i.id;else if(null!=r.id)o.id=r.id+"";else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(e.get(o.id))}e.set(o.id,t)}})}function Er(t){var e=t.name;return!(!e||!e.indexOf(Tr))}function zr(t){return Ar(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")}function Rr(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?Y(e.dataIndex)?V(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?Y(e.name)?V(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function Br(){var t="__\0ec_inner_"+Vr+++"_"+Math.random().toFixed(5);return function(e){return e[t]||(e[t]={})}}var Vr=0;function Fr(t,e,n){if(U(e)){var i={};i[e+"Index"]=0,e=i}var r=n&&n.defaultMainType;!r||Gr(e,r+"Index")||Gr(e,r+"Id")||Gr(e,r+"Name")||(e[r+"Index"]=0);var o={};return Ir(e,function(i,r){if(i=e[r],"dataIndex"!==r&&"dataIndexInside"!==r){var a=r.match(/^(\w+)(Index|Id|Name)$/)||[],s=a[1],l=(a[2]||"").toLowerCase();if(!(!s||!l||null==i||"index"===l&&"none"===i||n&&n.includeMainTypes&&N(n.includeMainTypes,s)<0)){var u={mainType:s};"index"===l&&"all"===i||(u[l]=i);var h=t.queryComponents(u);o[s+"Models"]=h,o[s+"Model"]=h[0]}}else o[r]=i}),o}function Gr(t,e){return t&&t.hasOwnProperty(e)}function Wr(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Hr(t){return"auto"===t?p.domSupported?"html":"richText":t||"html"}var jr=".",Yr="___EC__COMPONENT__CONTAINER___";function Zr(t){var e={main:"",sub:""};return t&&(t=t.split(jr),e.main=t[0]||"",e.sub=t[1]||""),e}function Ur(t,e){t.$constructor=t,t.extend=function(t){c&&B(e,function(e){t[e]||console.warn("Method `"+e+"` should be implemented"+(t.type?" in "+t.type:"")+".")});var n=this,i=function(){t.$constructor?t.$constructor.apply(this,arguments):n.apply(this,arguments)};return C(i.prototype,t),i.extend=this.extend,i.superCall=Kr,i.superApply=Qr,E(i,this),i.superClass=n,i}}var Xr=0;function qr(t){var e=["__\0is_clz",Xr++,Math.random().toFixed(3)].join("_");t.prototype[e]=!0,c&&rt(!t.isInstance,'The method "is" can not be defined.'),t.isInstance=function(t){return!(!t||!t[e])}}function Kr(t,e){var n=nt(arguments,2);return this.superClass.prototype[e].apply(t,n)}function Qr(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Jr(t,e){e=e||{};var n={};if(t.registerClass=function(t,e){return e&&(function(t){rt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}(e),(e=Zr(e)).sub?e.sub!==Yr&&((function(t){var e=n[t.main];return e&&e[Yr]||((e=n[t.main]={})[Yr]=!0),e}(e))[e.sub]=t):(c&&n[e.main]&&console.warn(e.main+" exists."),n[e.main]=t)),t},t.getClass=function(t,e,i){var r=n[t];if(r&&r[Yr]&&(r=e?r[e]:null),i&&!r)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){t=Zr(t);var e=[],i=n[t.main];return i&&i[Yr]?B(i,function(t,n){n!==Yr&&e.push(t)}):e.push(i),e},t.hasClass=function(t){return t=Zr(t),!!n[t.main]},t.getAllClassMainTypes=function(){var t=[];return B(n,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){t=Zr(t);var e=n[t.main];return e&&e[Yr]},t.parseClassType=Zr,e.registerWhenExtend){var i=t.extend;i&&(t.extend=function(e){var n=i.call(this,e);return t.registerClass(n,e.type)})}return t}var $r=function(t){for(var e=0;e=0||i&&N(i,a)<0)){var s=e.getShallow(a);null!=s&&(r[t[o][0]]=s)}}return r}},to=$r([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),eo={getLineStyle:function(t){var e=to(this,t),n=this.getLineDash(e.lineWidth);return n&&(e.lineDash=n),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),n=Math.max(t,2),i=4*t;return"solid"===e||null==e?null:"dashed"===e?[i,i]:[n,n]}},no=$r([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),io={getAreaStyle:function(t,e){return no(this,t,e)}},ro=Math.pow,oo=Math.sqrt,ao=1e-8,so=1e-4,lo=oo(3),uo=1/3,ho=gt(),co=gt(),fo=gt();function po(t){return t>-ao&&tao||t<-ao}function mo(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 vo(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function yo(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(po(a))go(o)&&(h=-s/o)>=0&&h<=1&&(r[l++]=h);else{var u=o*o-4*a*s;if(po(u))r[0]=-o/(2*a);else if(u>0){var h,c=oo(u),d=(-o-c)/(2*a);(h=(-o+c)/(2*a))>=0&&h<=1&&(r[l++]=h),d>=0&&d<=1&&(r[l++]=d)}}return l}function xo(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function _o(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function bo(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function wo(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function Mo(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}var So=Math.min,Io=Math.max,Ao=Math.sin,Do=Math.cos,To=2*Math.PI,Co=gt(),Lo=gt(),ko=gt();function Po(t,e,n){if(0!==t.length){var i,r=t[0],o=r[0],a=r[0],s=r[1],l=r[1];for(i=1;i1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(Co[0]=Do(r)*n+t,Co[1]=Ao(r)*i+e,Lo[0]=Do(o)*n+t,Lo[1]=Ao(o)*i+e,u(s,Co,Lo),h(l,Co,Lo),(r%=To)<0&&(r+=To),(o%=To)<0&&(o+=To),r>o&&!a?o+=To:rr&&(ko[0]=Do(f)*n+t,ko[1]=Ao(f)*i+e,u(s,ko,s),h(l,ko,l))}var Vo={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Fo=[],Go=[],Wo=[],Ho=[],jo=Math.min,Yo=Math.max,Zo=Math.cos,Uo=Math.sin,Xo=Math.sqrt,qo=Math.abs,Ko="undefined"!=typeof Float32Array,Qo=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};function Jo(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>e+s&&a>i+s||at+s&&o>n+s||oe+c&&h>i+c&&h>o+c&&h>s+c||ht+c&&u>n+c&&u>r+c&&u>a+c||u=0&&pe+u&&l>i+u&&l>o+u||lt+u&&s>n+u&&s>r+u||s=0&&mthis._ux||qo(e-this._yi)>this._uy||this._len<5;return this.addData(Vo.L,t,e),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,n,i,r,o){return this.addData(Vo.C,t,e,n,i,r,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,i,r,o):this._ctx.bezierCurveTo(t,e,n,i,r,o)),this._xi=r,this._yi=o,this},quadraticCurveTo:function(t,e,n,i){return this.addData(Vo.Q,t,e,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},arc:function(t,e,n,i,r,o){return this.addData(Vo.A,t,e,n,n,i,r-i,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=Zo(r)*n+t,this._yi=Uo(r)*n+e,this},arcTo:function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},rect:function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Vo.R,t,e,n,i),this},closePath:function(){this.addData(Vo.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;ne.length&&(this._expandData(),e=this.data);for(var n=0;n0&&f<=t||h<0&&f>=t||0===h&&(c>0&&p<=e||c<0&&p>=e);)f+=h*(n=a[i=this._dashIdx]),p+=c*n,this._dashIdx=(i+1)%g,h>0&&fl||c>0&&pu||s[i%2?"moveTo":"lineTo"](h>=0?jo(f,t):Yo(f,t),c>=0?jo(p,e):Yo(p,e));h=f-t,c=p-e,this._dashOffset=-Xo(h*h+c*c)},_dashedBezierTo:function(t,e,n,i,r,o){var a,s,l,u,h,c=this._dashSum,d=this._dashOffset,f=this._lineDash,p=this._ctx,g=this._xi,m=this._yi,v=mo,y=0,x=this._dashIdx,_=f.length,b=0;for(d<0&&(d=c+d),d%=c,a=0;a<1;a+=.1)s=v(g,t,n,r,a+.1)-v(g,t,n,r,a),l=v(m,e,i,o,a+.1)-v(m,e,i,o,a),y+=Xo(s*s+l*l);for(;x<_&&!((b+=f[x])>d);x++);for(a=(b-d)/y;a<=1;)u=v(g,t,n,r,a),h=v(m,e,i,o,a),x%2?p.moveTo(u,h):p.lineTo(u,h),a+=f[x]/y,x=(x+1)%_;x%2!=0&&p.lineTo(r,o),s=r-u,l=o-h,this._dashOffset=-Xo(s*s+l*l)},_dashedQuadraticTo:function(t,e,n,i){var r=n,o=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,r,o)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,Ko&&(this.data=new Float32Array(t)))},getBoundingRect:function(){Fo[0]=Fo[1]=Wo[0]=Wo[1]=Number.MAX_VALUE,Go[0]=Go[1]=Ho[0]=Ho[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,n=0,i=0,r=0,o=0;ol||qo(a-r)>u||c===h-1)&&(t.lineTo(o,a),i=o,r=a);break;case Vo.C:t.bezierCurveTo(s[c++],s[c++],s[c++],s[c++],s[c++],s[c++]),i=s[c-2],r=s[c-1];break;case Vo.Q:t.quadraticCurveTo(s[c++],s[c++],s[c++],s[c++]),i=s[c-2],r=s[c-1];break;case Vo.A:var f=s[c++],p=s[c++],g=s[c++],m=s[c++],v=s[c++],y=s[c++],x=s[c++],_=s[c++],b=g>m?g:m,w=g>m?1:g/m,M=g>m?m/g:1,S=v+y;Math.abs(g-m)>.001?(t.translate(f,p),t.rotate(x),t.scale(w,M),t.arc(0,0,b,v,S,1-_),t.scale(1/w,1/M),t.rotate(-x),t.translate(-f,-p)):t.arc(f,p,b,v,S,1-_),1===c&&(e=Zo(v)*g+f,n=Uo(v)*m+p),i=Zo(S)*g+f,r=Uo(S)*m+p;break;case Vo.R:e=i=s[c],n=r=s[c+1],t.rect(s[c++],s[c++],s[c++],s[c++]);break;case Vo.Z:t.closePath(),i=e,r=n}}}},Qo.CMD=Vo;var ea=2*Math.PI;function na(t){return(t%=ea)<0&&(t+=ea),t}var ia=2*Math.PI;function ra(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var h=Math.sqrt(s*s+l*l);if(h-u>n||h+ur&&(r+=ia);var d=Math.atan2(l,s);return d<0&&(d+=ia),d>=i&&d<=r||d+ia>=i&&d+ia<=r}function oa(t,e,n,i,r,o){if(o>e&&o>i||or?a:0}var aa=Qo.CMD,sa=2*Math.PI,la=1e-4,ua=[-1,-1,-1],ha=[-1,-1];function ca(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u=0&&S<=1&&(o[f++]=S);else{var p=c*c-4*h*d;if(po(p)){var g=c/h,m=-g/2;(S=-s/a+g)>=0&&S<=1&&(o[f++]=S),m>=0&&m<=1&&(o[f++]=m)}else if(p>0){var v=oo(p),y=h*s+1.5*a*(-c+v),x=h*s+1.5*a*(-c-v);(S=(-s-((y=y<0?-ro(-y,uo):ro(y,uo))+(x=x<0?-ro(-x,uo):ro(x,uo))))/(3*a))>=0&&S<=1&&(o[f++]=S)}else{var _=(2*h*s-3*a*c)/(2*oo(h*h*h)),b=Math.acos(_)/3,w=oo(h),M=Math.cos(b),S=(-s-2*w*M)/(3*a),I=(m=(-s+w*(M+lo*Math.sin(b)))/(3*a),(-s+w*(M-lo*Math.sin(b)))/(3*a));S>=0&&S<=1&&(o[f++]=S),m>=0&&m<=1&&(o[f++]=m),I>=0&&I<=1&&(o[f++]=I)}}return f}(e,i,o,s,u,ua);if(0===c)return 0;for(var d,f,p=0,g=-1,m=0;m1&&(h=void 0,h=ha[0],ha[0]=ha[1],ha[1]=h),d=mo(e,i,o,s,ha[0]),g>1&&(f=mo(e,i,o,s,ha[1]))),2===g?ve&&s>i&&s>o||s=0&&h<=1&&(r[l++]=h);else{var u=a*a-4*o*s;if(po(u))(h=-a/(2*o))>=0&&h<=1&&(r[l++]=h);else if(u>0){var h,c=oo(u),d=(-a-c)/(2*o);(h=(-a+c)/(2*o))>=0&&h<=1&&(r[l++]=h),d>=0&&d<=1&&(r[l++]=d)}}return l}(e,i,o,s,ua);if(0===l)return 0;var u=wo(e,i,o);if(u>=0&&u<=1){for(var h=0,c=_o(e,i,o,u),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);ua[0]=-l,ua[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u%sa<1e-4){i=0,r=sa;var h=o?1:-1;return a>=ua[0]+t&&a<=ua[1]+t?h:0}o?(l=i,i=na(r),r=na(l)):(i=na(i),r=na(r)),i>r&&(r+=sa);for(var c=0,d=0;d<2;d++){var f=ua[d];if(f+t>a){var p=Math.atan2(s,f);h=o?1:-1,p<0&&(p=sa+p),(p>=i&&p<=r||p+sa>=i&&p+sa<=r)&&(p>Math.PI/2&&p<1.5*Math.PI&&(h=-h),c+=h)}}return c}function pa(t,e,n,i,r){for(var o,a,s=0,l=0,u=0,h=0,c=0,d=0;d1&&(n||(s+=oa(l,u,h,c,i,r))),1===d&&(h=l=t[d],c=u=t[d+1]),f){case aa.M:l=h=t[d++],u=c=t[d++];break;case aa.L:if(n){if(Jo(l,u,t[d],t[d+1],e,i,r))return!0}else s+=oa(l,u,t[d],t[d+1],i,r)||0;l=t[d++],u=t[d++];break;case aa.C:if(n){if($o(l,u,t[d++],t[d++],t[d++],t[d++],t[d],t[d+1],e,i,r))return!0}else s+=ca(l,u,t[d++],t[d++],t[d++],t[d++],t[d],t[d+1],i,r)||0;l=t[d++],u=t[d++];break;case aa.Q:if(n){if(ta(l,u,t[d++],t[d++],t[d],t[d+1],e,i,r))return!0}else s+=da(l,u,t[d++],t[d++],t[d],t[d+1],i,r)||0;l=t[d++],u=t[d++];break;case aa.A:var p=t[d++],g=t[d++],m=t[d++],v=t[d++],y=t[d++],x=t[d++];d+=1;var _=1-t[d++],b=Math.cos(y)*m+p,w=Math.sin(y)*v+g;d>1?s+=oa(l,u,b,w,i,r):(h=b,c=w);var M=(i-p)*v/m+p;if(n){if(ra(p,g,v,y,y+x,_,e,M,r))return!0}else s+=fa(p,g,v,y,y+x,_,M,r);l=Math.cos(y+x)*m+p,u=Math.sin(y+x)*v+g;break;case aa.R:if(h=l=t[d++],c=u=t[d++],b=h+t[d++],w=c+t[d++],n){if(Jo(h,c,b,c,e,i,r)||Jo(b,c,b,w,e,i,r)||Jo(b,w,h,w,e,i,r)||Jo(h,w,h,c,e,i,r))return!0}else s+=oa(b,c,b,w,i,r),s+=oa(h,w,h,c,i,r);break;case aa.Z:if(n){if(Jo(l,u,h,c,e,i,r))return!0}else s+=oa(l,u,h,c,i,r);l=h,u=c}}return n||(o=u,a=c,Math.abs(o-a)1e-10&&(r.width+=o/a,r.height+=o/a,r.x-=o/a/2,r.y-=o/a/2)}return r}return t},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)){var o=this.path.data;if(r.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(r.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return pa(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(r.hasFill())return function(t,e,n){return pa(t,0,!1,e,n)}(o,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):tr.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var n=this.shape;if(n){if(X(t))for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);else n[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&ma(t[0]-1)>1e-10&&ma(t[3]-1)>1e-10?Math.sqrt(ma(t[0]*t[3]-t[2]*t[1])):1}},ya.extend=function(t){var e=function(e){ya.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var i=this.shape;for(var r in n)!i.hasOwnProperty(r)&&n.hasOwnProperty(r)&&(i[r]=n[r])}t.init&&t.init.call(this,e)};for(var n in E(e,ya),t)"style"!==n&&"shape"!==n&&(e.prototype[n]=t[n]);return e},E(ya,tr);var xa=Qo.CMD,_a=[[],[],[]],ba=Math.sqrt,wa=Math.atan2,Ma=function(t,e){var n,i,r,o,a,s=t.data,l=xa.M,u=xa.C,h=xa.L,c=xa.R,d=xa.A,f=xa.Q;for(r=0,o=0;r1&&(a*=Sa(p),s*=Sa(p));var g=(r===o?-1:1)*Sa((a*a*(s*s)-a*a*(f*f)-s*s*(d*d))/(a*a*(f*f)+s*s*(d*d)))||0,m=g*a*f/s,v=g*-s*d/a,y=(t+n)/2+Aa(c)*m-Ia(c)*v,x=(e+i)/2+Ia(c)*m+Aa(c)*v,_=La([1,0],[(d-m)/a,(f-v)/s]),b=[(d-m)/a,(f-v)/s],w=[(-1*d-m)/a,(-1*f-v)/s],M=La(b,w);Ca(b,w)<=-1&&(M=Da),Ca(b,w)>=1&&(M=0),0===o&&M>0&&(M-=2*Da),1===o&&M<0&&(M+=2*Da),h.addData(u,y,x,a,s,_,M,c,o)}var Pa=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Oa=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Na(t,e){var n=function(t){if(!t)return new Qo;for(var e,n=0,i=0,r=n,o=i,a=new Qo,s=Qo.CMD,l=t.match(Pa),u=0;u=11?function(){var e,n=this.__clipPaths,i=this.style;if(n)for(var r=0;rn-2?n-1:c+1],u=t[c>n-3?n-1:c+2]);var p=d*d,g=d*p;i.push([Wa(s[0],f[0],l[0],u[0],d,p,g),Wa(s[1],f[1],l[1],u[1],d,p,g)])}return i},ja=function(t,e,n,i){var r,o,a,s,l=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=t.length;d=2){if(r&&"spline"!==r){var o=ja(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],h=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{"spline"===r&&(i=Ha(i,n)),t.moveTo(i[0][0],i[0][1]),s=1;for(var c=i.length;s=0)?(n={textFill:null,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth},t.textFill="#fff",null==t.textStroke&&(t.textStroke=o,null==t.textStrokeWidth&&(t.textStrokeWidth=2))):null!=o&&(n={textFill:null},t.textFill=o),n&&(t.insideRollback=n)}}function Ks(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function Qs(t,e){var n=e||e.getModel("textStyle");return ot([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}function Js(t,e,n,i,r,o){if("function"==typeof r&&(o=r,r=null),i&&i.isAnimationEnabled()){var a=t?"Update":"",s=i.getShallow("animationDuration"+a),l=i.getShallow("animationEasing"+a),u=i.getShallow("animationDelay"+a);"function"==typeof u&&(u=u(r,i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null)),"function"==typeof s&&(s=s(r)),s>0?e.animateTo(n,s,u||0,l,o,!!o):(e.stopAnimation(),e.attr(n),o&&o())}else e.stopAnimation(),e.attr(n),o&&o()}function $s(t,e,n,i,r){Js(!0,t,e,n,i,r)}function tl(t,e,n,i,r){Js(!1,t,e,n,i,r)}function el(t,e){for(var n=le([]);t&&t!==e;)he(n,t.getLocalTransform(),n),t=t.parent;return n}function nl(t,e,n){return e&&!R(e)&&(e=_e.getLocalTransform(e)),n&&(e=pe([],e)),Ot([],t,e)}function il(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=nl(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function rl(t,e,n,i){if(t&&e){var r,o=(r={},t.traverse(function(t){!t.isGroup&&t.anid&&(r[t.anid]=t)}),r);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=o[t.anid];if(e){var i=a(t);t.attr(a(e)),$s(t,i,n,t.dataIndex)}}})}function a(t){var e={position:vt(t.position),rotation:t.rotation};return t.shape&&(e.shape=C({},t.shape)),e}}function ol(t,e){return V(t,function(t){var n=t[0];n=ds(n,e.x),n=fs(n,e.x+e.width);var i=t[1];return i=ds(i,e.y),[n,i=fs(i,e.y+e.height)]})}function al(t,e,n){var i=(e=C({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),L(i,n),new er(e)):bs(t.replace("path://",""),e,n,"center")}var sl=(Object.freeze||Object)({Z2_EMPHASIS_LIFT:gs,extendShape:_s,extendPath:function(t,e){return function(t,e){return ya.extend(Na(t,e))}(t,e)},makePath:bs,makeImage:ws,mergePath:Ss,resizePath:Is,subPixelOptimizeLine:function(t){return qa(t.shape,t.shape,t.style),t},subPixelOptimizeRect:function(t){return Ka(t.shape,t.shape,t.style),t},subPixelOptimize:As,setElementHoverStyle:Ns,setHoverStyle:Fs,setAsHighDownDispatcher:Gs,isHighDownDispatcher:Ws,getHighlightDigit:Hs,setLabelStyle:js,setTextStyle:Ys,setText:function(t,e,n){var i,r={isRectText:!0};!1===n?i=!0:r.autoColor=n,Zs(t,e,r,i)},getFont:Qs,updateProps:$s,initProps:tl,getTransform:el,applyTransform:nl,transformDirection:il,groupTransition:rl,clipPointsByRect:ol,clipRectByRect:function(t,e){var n=ds(t.x,e.x),i=fs(t.x+t.width,e.x+e.width),r=ds(t.y,e.y),o=fs(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}},createIcon:al,Group:On,Image:er,Text:za,Circle:Ra,Sector:Fa,Ring:Ga,Polygon:Za,Polyline:Ua,Rect:$a,Line:es,BezierCurve:rs,Arc:os,IncrementalDisplayable:hs,CompoundPath:as,LinearGradient:ls,RadialGradient:us,BoundingRect:Pn}),ll=["textStyle","color"],ul={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(ll):null)},getFont:function(){return Qs({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return yi(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("rich"),this.getShallow("truncateText"))}},hl=$r([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),cl={getItemStyle:function(t,e){var n=hl(this,t,e),i=this.getBorderLineDash();return i&&(n.lineDash=i),n},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}},dl=z,fl=Br();function pl(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function gl(t,e,n){for(var i=0;i0){if(t<=e[0])return n[0];if(t>=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/r*o+n[0]}function bl(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?(n=t,n.replace(/^\s+/,"").replace(/\s+$/,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function wl(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function Ml(t){return t.sort(function(t,e){return t-e}),t}function Sl(t){if(t=+t,isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}function Il(t){var e=t.toString(),n=e.indexOf("e");if(n>0){var i=+e.slice(n+1);return i<0?-i:0}var r=e.indexOf(".");return r<0?0:e.length-1-r}function Al(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function Dl(t,e,n){if(!t[e])return 0;var i=F(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return 0;for(var r=Math.pow(10,n),o=V(t,function(t){return(isNaN(t)?0:t)/i*r*100}),a=100*r,s=V(o,function(t){return Math.floor(t)}),l=F(s,function(t,e){return t+e},0),u=V(o,function(t,e){return t-s[e]});lh&&(h=u[d],c=d);++s[c],u[c]=0,++l}return s[e]/r}var Tl=9007199254740991;function Cl(t){var e=2*Math.PI;return(t%e+e)%e}function Ll(t){return t>-xl&&t=-20?+t.toFixed(n<0?-n:0):t}function zl(t){t.sort(function(t,e){return function t(e,n,i){return e.interval[i]=0}var Bl=(Object.freeze||Object)({linearMap:_l,parsePercent:bl,round:wl,asc:Ml,getPrecision:Sl,getPrecisionSafe:Il,getPixelPrecision:Al,getPercentWithPrecision:Dl,MAX_SAFE_INTEGER:Tl,remRadian:Cl,isRadianAroundZero:Ll,parseDate:Pl,quantity:Ol,nice:El,quantile:function(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r},reformIntervals:zl,isNumeric:Rl});function Vl(t){return isNaN(t)?"-":(t=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Fl(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Gl=it,Wl=/([&<>"'])/g,Hl={"&":"&","<":"<",">":">",'"':""","'":"'"};function jl(t){return null==t?"":(t+"").replace(Wl,function(t,e){return Hl[e]})}var Yl=["a","b","c","d","e","f","g"],Zl=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Ul(t,e,n){Y(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o':'':{renderMode:r,content:"{marker"+o+"|} ",style:{color:n}}:""}function Kl(t,e){return"0000".substr(0,e-(t+="").length)+t}function Ql(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=Pl(e),r=n?"UTC":"",o=i["get"+r+"FullYear"](),a=i["get"+r+"Month"]()+1,s=i["get"+r+"Date"](),l=i["get"+r+"Hours"](),u=i["get"+r+"Minutes"](),h=i["get"+r+"Seconds"](),c=i["get"+r+"Milliseconds"]();return t=t.replace("MM",Kl(a,2)).replace("M",a).replace("yyyy",o).replace("yy",o%100).replace("dd",Kl(s,2)).replace("d",s).replace("hh",Kl(l,2)).replace("h",l).replace("mm",Kl(u,2)).replace("m",u).replace("ss",Kl(h,2)).replace("s",h).replace("SSS",Kl(c,3))}function Jl(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}var $l=wi,tu=yi,eu=(Object.freeze||Object)({addCommas:Vl,toCamelCase:Fl,normalizeCssArray:Gl,encodeHTML:jl,formatTpl:Ul,formatTplSimple:Xl,getTooltipMarker:ql,formatTime:Ql,capitalFirst:Jl,truncateText:$l,getTextRect:tu}),nu=B,iu=["left","right","top","bottom","width","height"],ru=[["width","left","right"],["height","top","bottom"]];function ou(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var h,c,d=l.position,f=l.getBoundingRect(),p=e.childAt(u+1),g=p&&p.getBoundingRect();if("horizontal"===t){var m=f.width+(g?-g.x+f.x:0);(h=o+m)>i||l.newline?(o=0,h=m,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(g?-g.y+f.y:0);(c=a+v)>r||l.newline?(o+=s+n,a=0,c=v,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=o,d[1]=a,"horizontal"===t?o=h+n:a=c+n)})}var au=ou;function su(t,e,n){n=Gl(n||0);var i=e.width,r=e.height,o=bl(t.left,i),a=bl(t.top,r),s=bl(t.right,i),l=bl(t.bottom,r),u=bl(t.width,i),h=bl(t.height,r),c=n[2]+n[0],d=n[1]+n[3],f=t.aspect;switch(isNaN(u)&&(u=i-s-d-o),isNaN(h)&&(h=r-l-c-a),null!=f&&(isNaN(u)&&isNaN(h)&&(f>i/r?u=.8*i:h=.8*r),isNaN(u)&&(u=f*h),isNaN(h)&&(h=u/f)),isNaN(o)&&(o=i-s-u-d),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-d}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-d-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var p=new Pn(o+n[3],a+n[0],u,h);return p.margin=n,p}function lu(t,e,n,i,r){var o=!r||!r.hv||r.hv[0],a=!r||!r.hv||r.hv[1],s=r&&r.boundingMode||"all";if(o||a){var l;if("raw"===s)l="group"===t.type?new Pn(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var u=t.getLocalTransform();(l=l.clone()).applyTransform(u)}e=su(L({width:l.width,height:l.height},e),n,i);var h=t.position,c=o?e.x-l.x:0,d=a?e.y-l.y:0;t.attr("position","raw"===s?[c,d]:[h[0]+c,h[1]+d])}}function uu(t,e,n){!X(n)&&(n={});var i=n.ignoreSize;!Y(i)&&(i=[i,i]);var r=a(ru[0],0),o=a(ru[1],1);function a(n,r){var o={},a=0,u={},h=0;if(nu(n,function(e){u[e]=t[e]}),nu(n,function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&h++}),i[r])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(2!==h&&a){if(a>=2)return o;for(var c=0;c=0;o--)r=D(r,e[o],!0);t.defaultOption=r}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});Jr(gu,{registerWhenExtend:!0}),fu={},(du=gu).registerSubTypeDefaulter=function(t,e){t=Zr(t),fu[t.main]=e},du.determineSubType=function(t,e){var n=e.type;if(!n){var i=Zr(t).main;du.hasSubTypes(t)&&fu[i]&&(n=fu[i](e))}return n},function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,i,r,o){if(t.length){var a=function(t){var i={},r=[];return B(t,function(o){var a=n(i,o),s=function(t,e){var n=[];return B(t,function(t){N(e,t)>=0&&n.push(t)}),n}(a.originalDeps=e(o),t);a.entryCount=s.length,0===a.entryCount&&r.push(o),B(s,function(t){N(a.predecessor,t)<0&&a.predecessor.push(t);var e=n(i,t);N(e.successor,t)<0&&e.successor.push(o)})}),{graph:i,noEntryList:r}}(i),s=a.graph,l=a.noEntryList,u={};for(B(t,function(t){u[t]=!0});l.length;){var h=l.pop(),c=s[h],d=!!u[h];d&&(r.call(o,h,c.originalDeps.slice()),delete u[h]),B(c.successor,d?p:f)}B(u,function(){throw new Error("Circle dependency may exists")})}function f(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function p(t){u[t]=!0,f(t)}}}(gu,function(t){var e=[];return B(gu.getClassesByMainType(t),function(t){e=e.concat(t.prototype.dependencies||[])}),e=V(e,function(t){return Zr(t).main}),"dataset"!==t&&N(e,"dataset")<=0&&e.unshift("dataset"),e}),z(gu,{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}});var mu="";"undefined"!=typeof navigator&&(mu=navigator.platform||"");var vu={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:mu.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},yu=Br(),xu={clearColorPalette:function(){yu(this).colorIdx=0,yu(this).colorNameMap={}},getColorFromPalette:function(t,e,n){var i=yu(e=e||this),r=i.colorIdx||0,o=i.colorNameMap=i.colorNameMap||{};if(o.hasOwnProperty(t))return o[t];var a=Cr(this.get("color",!0)),s=this.get("colorLayer",!0),l=null!=n&&s?function(t,e){for(var n=t.length,i=0;ie)return t[i];return t[n-1]}(s,n):a;if((l=l||a)&&l.length){var u=l[r];return t&&(o[t]=u),i.colorIdx=(r+1)%l.length,u}}};function _u(t){var e=t.get("coordinateSystem"),n={coordSysName:e,coordSysDims:[],axisMap:ht(),categoryAxisMap:ht()},i=bu[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}var bu={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis")[0],o=t.getReferringComponents("yAxis")[0];if(c){if(!r)throw new Error('xAxis "'+$(t.get("xAxisIndex"),t.get("xAxisId"),0)+'" not found');if(!o)throw new Error('yAxis "'+$(t.get("xAxisIndex"),t.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),wu(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),wu(o)&&(i.set("y",o),e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis")[0];if(c&&!r)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],n.set("single",r),wu(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar")[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");if(c){if(!a)throw new Error("angleAxis option not found");if(!o)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),wu(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),wu(a)&&(i.set("angle",a),e.firstCategoryDimIndex=1)},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();B(o.parallelAxisIndex,function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),wu(s)&&null==e.firstCategoryDimIndex&&(i.set(l,s),e.firstCategoryDimIndex=o)})}};function wu(t){return"category"===t.get("type")}var Mu="original",Su="arrayRows",Iu="objectRows",Au="keyedColumns",Du="unknown",Tu="typedArray",Cu="column",Lu="row";function ku(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===Au?{}:[]),this.sourceFormat=t.sourceFormat||Du,this.seriesLayoutBy=t.seriesLayoutBy||Cu,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&ht(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}ku.seriesDataToSource=function(t){return new ku({data:t,sourceFormat:K(t)?Tu:Mu,fromDataset:!1})},qr(ku);var Pu=Br();function Ou(t){var e=t.option,n=e.data,i=K(n)?Tu:Mu,r=!1,o=e.seriesLayoutBy,a=e.sourceHeader,s=e.dimensions,l=function(t){var e=t.option;if(!e.data)return t.ecModel.getComponent("dataset",e.datasetIndex||0)}(t);if(l){var u=l.option;n=u.source,i=Pu(l).sourceFormat,r=!0,o=o||u.seriesLayoutBy,null==a&&(a=u.sourceHeader),s=s||u.dimensions}var h=function(t,e,n,i,r){if(!t)return{dimensionsDefine:Nu(r)};var o,a,s,l;if(e===Su)"auto"===i||null==i?Eu(function(t){null!=t&&"-"!==t&&(U(t)?null==a&&(a=1):a=0)},n,t,10):a=i?1:0,r||1!==a||(r=[],Eu(function(t,e){r[e]=null!=t?t:""},n,t)),o=r?r.length:n===Lu?t.length:t[0]?t[0].length:null;else if(e===Iu)r||(r=function(t){for(var e,n=0;n=0;i--)zr(e[i])&&e.splice(i,1);t[n]=e}}),delete t[Bu],t},getTheme:function(){return this._theme},getComponent:function(t,e){var n=this._componentsMap.get(t);if(n)return n[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,o=t.name,a=this._componentsMap.get(e);if(!a||!a.length)return[];if(null!=i)Y(i)||(i=[i]),n=G(V(i,function(t){return a[t]}),function(t){return!!t});else if(null!=r){var s=Y(r);n=G(a,function(t){return s&&N(r,t.id)>=0||!s&&t.id===r})}else if(null!=o){var l=Y(o);n=G(a,function(t){return l&&N(o,t.name)>=0||!l&&t.name===o})}else n=a.slice();return Wu(n,t)},findComponents:function(t){var e,n,i,r,o,a=t.query,s=t.mainType,l=(n=s+"Index",i=s+"Id",r=s+"Name",!(e=a)||null==e[n]&&null==e[i]&&null==e[r]?null:{mainType:s,index:e[n],id:e[i],name:e[r]}),u=l?this.queryComponents(l):this._componentsMap.get(s);return o=Wu(u,t),t.filter?G(o,t.filter):o},eachComponent:function(t,e,n){var i=this._componentsMap;"function"==typeof t?(n=e,e=t,i.each(function(t,i){B(t,function(t,r){e.call(n,i,t,r)})})):U(t)?B(i.get(t),e,n):X(t)&&B(this.findComponents(t),e,n)},getSeriesByName:function(t){return G(this._componentsMap.get("series"),function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){return G(this._componentsMap.get("series"),function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(t,e){Hu(this),B(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},eachRawSeries:function(t,e){B(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,n){Hu(this),B(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)},this)},eachRawSeriesByType:function(t,e,n){return B(this.getSeriesByType(t),e,n)},isSeriesFiltered:function(t){return Hu(this),null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){Hu(this),Gu(this,G(this._componentsMap.get("series"),t,e))},restoreData:function(t){var e=this._componentsMap;Gu(this,e.get("series"));var n=[];e.each(function(t,e){n.push(e)}),gu.topologicalTravel(n,gu.getAllClassMainTypes(),function(n,i){B(e.get(n),function(e){("series"!==n||!function(t,e){if(e){var n=e.seiresIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}(e,t))&&e.restoreData()})})}});function Fu(t){t=t,this.option={},this.option[Bu]=1,this._componentsMap=ht({series:[]}),this._seriesIndices,this._seriesIndicesMap,function(t,e){var n=t.color&&!t.colorLayer;B(e,function(e,i){"colorLayer"===i&&n||gu.hasClass(i)||("object"===l(e)?t[i]=t[i]?D(t[i],e,!1):A(e):null==t[i]&&(t[i]=e))})}(t,this._theme.option),D(t,vu,!1),this.mergeOption(t)}function Gu(t,e){t._seriesIndicesMap=ht(t._seriesIndices=V(e,function(t){return t.componentIndex})||[])}function Wu(t,e){return e.hasOwnProperty("subType")?G(t,function(t){return t.subType===e.subType}):t}function Hu(t){if(c&&!t._seriesIndices)throw new Error("Option should contains series.")}z(Vu,xu);var ju=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function Yu(t){B(ju,function(e){this[e]=H(t[e],t)},this)}var Zu={};function Uu(){this._coordinateSystems=[]}Uu.prototype={constructor:Uu,create:function(t,e){var n=[];B(Zu,function(i,r){var o=i.create(t,e);n=n.concat(o||[])}),this._coordinateSystems=n},update:function(t,e){B(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},Uu.register=function(t,e){Zu[t]=e},Uu.get=function(t){return Zu[t]};var Xu=B,qu=A,Ku=V,Qu=D,Ju=/^(min|max)?(.+)$/;function $u(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function th(t,e,n){var i,r,o=[],a=[],s=t.timeline;if(t.baseOption&&(r=t.baseOption),(s||t.options)&&(r=r||{},o=(t.options||[]).slice()),t.media){r=r||{};var l=t.media;Xu(l,function(t){t&&t.option&&(t.query?a.push(t):i||(i=t))})}return r||(r=t),r.timeline||(r.timeline=s),Xu([r].concat(o).concat(V(a,function(t){return t.option})),function(t){Xu(e,function(e){e(t,n)})}),{baseOption:r,timelineOptions:o,mediaDefault:i,mediaList:a}}function eh(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return B(t,function(t,e){var n=e.match(Ju);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e})(i[a],t,o)||(r=!1)}}),r}$u.prototype={constructor:$u,setOption:function(t,e){t&&B(Cr(t.series),function(t){t&&t.data&&K(t.data)&&st(t.data)}),t=qu(t);var n,i,r=this._optionBackup,o=th.call(this,t,e,!r);this._newBaseOption=o.baseOption,r?(n=r.baseOption,i=o.baseOption,Xu(i=i||{},function(t,e){if(null!=t){var i=n[e];if(gu.hasClass(e)){t=Cr(t);var r=Or(i=Cr(i),t);n[e]=Ku(r,function(t){return t.option&&t.exist?Qu(t.exist,t.option,!0):t.exist||t.option})}else n[e]=Qu(i,t,!0)}}),o.timelineOptions.length&&(r.timelineOptions=o.timelineOptions),o.mediaList.length&&(r.mediaList=o.mediaList),o.mediaDefault&&(r.mediaDefault=o.mediaDefault)):this._optionBackup=o},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=Ku(e.timelineOptions,qu),this._mediaList=Ku(e.mediaList,qu),this._mediaDefault=qu(e.mediaDefault),this._currentMediaIndices=[],qu(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=qu(n[i.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e,n,i=this._api.getWidth(),r=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,h=o.length;u=0;p--){var g=t[p];if(s||(c=g.data.rawIndexOf(g.stackedByDimension,h)),c>=0){var m=g.data.getByRawIndex(g.stackResultDimension,c);if(d>=0&&m>0||d<=0&&m<0){d+=m,f=m;break}}}return i[0]=d,i[1]=f,i});a.hostModel.setData(l),e.data=l})}function yh(t,e){ku.isInstance(t)||(t=ku.seriesDataToSource(t)),this._source=t;var n=this._data=t.data,i=t.sourceFormat;if(i===Tu){if(c&&null==e)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=e,this._data=n}var r=_h[i===Su?i+"_"+t.seriesLayoutBy:i];c&&rt(r,"Invalide sourceFormat: "+i),C(this,r)}var xh=yh.prototype;xh.pure=!1,xh.persistent=!0,xh.getSource=function(){return this._source};var _h={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(t){return this._data[t+this._source.startIndex]},appendData:Mh},arrayRows_row:{pure:!0,count:function(){var t=this._data[0];return t?Math.max(0,t.length-this._source.startIndex):0},getItem:function(t){t+=this._source.startIndex;for(var e=[],n=this._data,i=0;i=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=function(t,e){var n,i;t._dueIndex=t._outputDueEnd=t._dueEnd=0,t._settedOutputEnd=null,!e&&t._reset&&((n=t._reset(t.context))&&n.progress&&(i=n.forceFirstProgress,n=n.progress),Y(n)&&!n.length&&(n=null)),t._progress=n,t._modBy=t._modDataCount=null;var r=t._downstream;return r&&r.dirty(),i}(this,i)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(n?(c&&rt(null!=n._outputDueEnd),this._dueEnd=n._outputDueEnd):(c&&rt(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var f=this._dueIndex,p=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!i&&(o||f=this._outputDueEnd),this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var zh=function(){var t,e,n,i,r,o={reset:function(l,u,h,c){e=l,t=u,n=h,i=c,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return e=t?null:o":"\n",a="richText"===i,s={},l=0;function u(t){return{renderMode:i,content:jl(Vl(t)),style:s}}var h=this.getData(),c=h.mapDimension("defaultedTooltip",!0),d=c.length,f=this.getRawValue(t),p=Y(f),g=h.getItemVisual(t,"color");X(g)&&g.colorStops&&(g=(g.colorStops[0]||{}).color),g=g||"transparent";var m=(d>1||p&&!d?function(n){var o=F(n,function(t,e,n){var i=h.getDimensionInfo(n);return t|(i&&!1!==i.tooltip&&null!=i.displayName)},0),u=[];function d(t,n){var c=h.getDimensionInfo(n);if(c&&!1!==c.otherDims.tooltip){var d=c.type,f="sub"+r.seriesIndex+"at"+l,p=ql({color:g,type:"subItem",renderMode:i,markerId:f}),m="string"==typeof p?p:p.content,v=(o?m+jl(c.displayName||"-")+": ":"")+jl("ordinal"===d?t+"":"time"===d?e?"":Ql("yyyy/MM/dd hh:mm:ss",t):Vl(t));v&&u.push(v),a&&(s[f]=g,++l)}}c.length?B(c,function(e){d(Ch(h,t,e),e)}):B(n,d);var f=o?a?"\n":"
":"",p=f+u.join(f||", ");return{renderMode:i,content:p,style:s}}(f):u(d?Ch(h,t,c[0]):p?f[0]:f)).content,v=r.seriesIndex+"at"+l,y=ql({color:g,type:"item",renderMode:i,markerId:v});s[v]=g,++l;var x=h.getName(t),_=this.name;Er(this)||(_=""),_=_?jl(_)+(e?": ":o):"";var b="string"==typeof y?y:y.content;return{html:e?b+_+m:_+b+(x?jl(x)+": "+m:m),markers:s}},isAnimationEnabled:function(){if(p.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,n){var i=this.ecModel,r=xu.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function Fh(t){var e=t.name;Er(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimension("seriesName",!0),i=[];return B(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")}(t)||e)}function Gh(t){return t.model.getRawData().count()}function Wh(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Hh}function Hh(t,e){t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function jh(t,e){B(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,j(Yh,e))})}function Yh(t){var e=Zh(t);e&&e.setOutputEnd(this.count())}function Zh(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}z(Vh,Ph),z(Vh,xu);var Uh=function(){this.group=new On,this.uid=yl("viewComponent")};Uh.prototype={constructor:Uh,init:function(t,e){},render:function(t,e,n,i){},dispose:function(){},filterForExposedEvent:null};var Xh=Uh.prototype;Xh.updateView=Xh.updateLayout=Xh.updateVisual=function(t,e,n,i){},Ur(Uh),Jr(Uh,{registerWhenExtend:!0});var qh=function(){var t=Br();return function(e){var n=t(e),i=e.pipelineContext,r=n.large,o=n.progressiveRender,a=n.large=i.large,s=n.progressiveRender=i.progressiveRender;return!!(r^a||o^s)&&"reset"}},Kh=Br(),Qh=qh();function Jh(){this.group=new On,this.uid=yl("viewChart"),this.renderTask=Oh({plan:nc,reset:ic}),this.renderTask.context={view:this}}Jh.prototype={type:"chart",init:function(t,e){},render:function(t,e,n,i){},highlight:function(t,e,n,i){ec(t.getData(),i,"emphasis")},downplay:function(t,e,n,i){ec(t.getData(),i,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var $h=Jh.prototype;function tc(t,e,n){if(t&&(t.trigger(e,n),t.isGroup&&!Ws(t)))for(var i=0,r=t.childCount();i=0?c():h=setTimeout(c,-r),l=i};return d.clear=function(){h&&(clearTimeout(h),h=null)},d.debounceNextCall=function(t){s=t},d}function uc(t,e,n,i){var r=t[e];if(r){var o=r[oc]||r,a=r[sc];if(r[ac]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=lc(o,n,"debounce"===i))[oc]=o,r[sc]=i,r[ac]=n}return r}}function hc(t,e){var n=t[e];n&&n[oc]&&(t[e]=n[oc])}var cc={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=(t.visualColorAccessPath||"itemStyle.color").split("."),r=t.get(i)||t.getColorFromPalette(t.name,null,e.getSeriesCount());if(n.setVisual("color",r),!e.isSeriesFiltered(t))return"function"!=typeof r||r instanceof ss||n.each(function(e){n.setItemVisual(e,"color",r(t.getDataParams(e)))}),{dataEach:n.hasItemOption?function(t,e){var n=t.getItemModel(e).get(i,!0);null!=n&&t.setItemVisual(e,"color",n)}:null}}},dc={toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},fc=function(t,e){var n=e.getModel("aria");if(n.get("show"))if(n.get("description"))t.setAttribute("aria-label",n.get("description"));else{var i=0;e.eachSeries(function(t,e){++i},this);var r,o=n.get("data.maxCount")||10,a=n.get("series.maxCount")||10,s=Math.min(i,a);if(!(i<1)){var l=function(){var t=e.getModel("title").option;return t&&t.length&&(t=t[0]),t&&t.text}();r=l?h(c("general.withTitle"),{title:l}):c("general.withoutTitle");var u=[];r+=h(c(i>1?"series.multiple.prefix":"series.single.prefix"),{seriesCount:i}),e.eachSeries(function(t,e){if(e1?"multiple":"single")+".";n=h(n=c(r?a+"withName":a+"withoutName"),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:(m=t.subType,dc.series.typeNames[m]||"自定义图")});var l=t.getData();window.data=l,l.count()>o?n+=h(c("data.partialData"),{displayCnt:o}):n+=c("data.allData");for(var d=[],f=0;fn.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},mc.getPipeline=function(t){return this._pipelineMap.get(t)},mc.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},mc.restorePipelines=function(t){var e=this,n=e._pipelineMap=ht();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),Tc(e,t,t.dataTask)})},mc.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),n=this.api;B(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,[]);i.reset&&function(t,e,n,i,r){var o=n.seriesTaskMap||(n.seriesTaskMap=ht()),a=e.seriesType,s=e.getTargetSeries;function l(n){var a=n.uid,s=o.get(a)||o.set(a,Oh({plan:Mc,reset:Sc,count:Dc}));s.context={model:n,ecModel:i,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},Tc(t,n,s)}e.createOnAllSeries?i.eachRawSeries(l):a?i.eachRawSeriesByType(a,l):s&&s(i,r).each(l);var u=t._pipelineMap;o.each(function(t,e){u.get(e)||(t.dispose(),o.removeKey(e))})}(this,i,r,e,n),i.overallReset&&function(t,e,n,i,r){var o=n.overallTask=n.overallTask||Oh({reset:xc});o.context={ecModel:i,api:r,overallReset:e.overallReset,scheduler:t};var a=o.agentStubMap=o.agentStubMap||ht(),s=e.seriesType,l=e.getTargetSeries,u=!0,h=e.modifyOutputEnd;function c(e){var n=e.uid,i=a.get(n);i||(i=a.set(n,Oh({reset:_c,onDirty:wc})),o.dirty()),i.context={model:e,overallProgress:u,modifyOutputEnd:h},i.agent=o,i.__block=u,Tc(t,e,i)}s?i.eachRawSeriesByType(s,c):l?l(i,r).each(c):(u=!1,B(i.getSeries(),c));var d=t._pipelineMap;a.each(function(t,e){d.get(e)||(t.dispose(),o.dirty(),a.removeKey(e))})}(this,i,r,e,n)},this)},mc.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,Tc(this,e,r)},mc.performDataProcessorTasks=function(t,e){vc(this,this._dataProcessorHandlers,t,e,{block:!0})},mc.performVisualTasks=function(t,e,n){vc(this,this._visualHandlers,t,e,n)},mc.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e|=t.dataTask.perform()}),this.unfinished|=e},mc.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})};var yc=mc.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)};function xc(t){t.overallReset(t.ecModel,t.api,t.payload)}function _c(t,e){return t.overallProgress&&bc}function bc(){this.agent.dirty(),this.getDownstream().dirty()}function wc(){this.agent&&this.agent.dirty()}function Mc(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function Sc(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Cr(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?V(e,function(t,e){return Ac(e)}):Ic}var Ic=Ac(0);function Ac(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o=4&&(s={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(s&&null!=o&&null!=a&&(l=Jc(s,o,a),!e.ignoreViewBox)){var c=i;(i=new On).add(c),c.scale=l.scale.slice(),c.position=l.position.slice()}return e.ignoreRootClip||null==o||null==a||i.setClipPath(new $a({shape:{x:0,y:0,width:o,height:a}})),{root:i,width:o,height:a,viewBoxRect:s,viewBoxTransform:l}},Gc.prototype._parseNode=function(t,e){var n,i,r=t.nodeName.toLowerCase();if("defs"===r?this._isDefine=!0:"text"===r&&(this._isText=!0),this._isDefine){if(i=Hc[r]){var o=i.call(this,t),a=t.getAttribute("id");a&&(this._defs[a]=o)}}else(i=Wc[r])&&(n=i.call(this,t,e),e.add(n));for(var s=t.firstChild;s;)1===s.nodeType&&this._parseNode(s,n),3===s.nodeType&&this._isText&&this._parseText(s,n),s=s.nextSibling;"defs"===r?this._isDefine=!1:"text"===r&&(this._isText=!1)},Gc.prototype._parseText=function(t,e){if(1===t.nodeType){var n=t.getAttribute("dx")||0,i=t.getAttribute("dy")||0;this._textX+=parseFloat(n),this._textY+=parseFloat(i)}var r=new za({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});jc(e,r),Uc(t,r,this._defs);var o=r.style.fontSize;o&&o<9&&(r.style.fontSize=9,r.scale=r.scale||[1,1],r.scale[0]*=o/9,r.scale[1]*=o/9);var a=r.getBoundingRect();return this._textX+=a.width,e.add(r),r};var Wc={g:function(t,e){var n=new On;return jc(e,n),Uc(t,n,this._defs),n},rect:function(t,e){var n=new $a;return jc(e,n),Uc(t,n,this._defs),n.setShape({x:parseFloat(t.getAttribute("x")||0),y:parseFloat(t.getAttribute("y")||0),width:parseFloat(t.getAttribute("width")||0),height:parseFloat(t.getAttribute("height")||0)}),n},circle:function(t,e){var n=new Ra;return jc(e,n),Uc(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),r:parseFloat(t.getAttribute("r")||0)}),n},line:function(t,e){var n=new es;return jc(e,n),Uc(t,n,this._defs),n.setShape({x1:parseFloat(t.getAttribute("x1")||0),y1:parseFloat(t.getAttribute("y1")||0),x2:parseFloat(t.getAttribute("x2")||0),y2:parseFloat(t.getAttribute("y2")||0)}),n},ellipse:function(t,e){var n=new Bc;return jc(e,n),Uc(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),rx:parseFloat(t.getAttribute("rx")||0),ry:parseFloat(t.getAttribute("ry")||0)}),n},polygon:function(t,e){var n=t.getAttribute("points");n&&(n=Yc(n));var i=new Za({shape:{points:n||[]}});return jc(e,i),Uc(t,i,this._defs),i},polyline:function(t,e){var n=new ya;jc(e,n),Uc(t,n,this._defs);var i=t.getAttribute("points");i&&(i=Yc(i));var r=new Ua({shape:{points:i||[]}});return r},image:function(t,e){var n=new er;return jc(e,n),Uc(t,n,this._defs),n.setStyle({image:t.getAttribute("xlink:href"),x:t.getAttribute("x"),y:t.getAttribute("y"),width:t.getAttribute("width"),height:t.getAttribute("height")}),n},text:function(t,e){var n=t.getAttribute("x")||0,i=t.getAttribute("y")||0,r=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0;this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new On;return jc(e,a),Uc(t,a,this._defs),a},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0,a=new On;return jc(e,a),Uc(t,a,this._defs),this._textX+=r,this._textY+=o,a},path:function(t,e){var n=Ea(t.getAttribute("d")||"");return jc(e,n),Uc(t,n,this._defs),n}},Hc={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||0,10),n=parseInt(t.getAttribute("y1")||0,10),i=parseInt(t.getAttribute("x2")||10,10),r=parseInt(t.getAttribute("y2")||0,10),o=new ls(e,n,i,r);return function(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType){var i=n.getAttribute("offset");i=i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var r=n.getAttribute("stop-color")||"#000000";e.addColorStop(i,r)}n=n.nextSibling}}(t,o),o},radialgradient:function(t){}};function jc(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),L(e.__inheritedStyle,t.__inheritedStyle))}function Yc(t){for(var e=ot(t).split(Vc),n=[],i=0;i0;o-=2){var a=r[o],s=r[o-1];switch(i=i||se(),s){case"translate":a=ot(a).split(Vc),ce(i,i,[parseFloat(a[0]),parseFloat(a[1]||0)]);break;case"scale":a=ot(a).split(Vc),fe(i,i,[parseFloat(a[0]),parseFloat(a[1]||a[0])]);break;case"rotate":a=ot(a).split(Vc),de(i,i,parseFloat(a[0]));break;case"skew":a=ot(a).split(Vc),console.warn("Skew transform is not supported yet");break;case"matrix":a=ot(a).split(Vc),i[0]=parseFloat(a[0]),i[1]=parseFloat(a[1]),i[2]=parseFloat(a[2]),i[3]=parseFloat(a[3]),i[4]=parseFloat(a[4]),i[5]=parseFloat(a[5])}}e.setLocalTransform(i)}}(t,e),C(r,function(t){var e=t.getAttribute("style"),n={};if(!e)return n;var i,r={};for(Qc.lastIndex=0;null!=(i=Qc.exec(e));)r[i[1]]=i[2];for(var o in Zc)Zc.hasOwnProperty(o)&&null!=r[o]&&(n[Zc[o]]=r[o]);return n}(t)),!i))for(var a in Zc)if(Zc.hasOwnProperty(a)){var s=t.getAttribute(a);null!=s&&(r[Zc[a]]=s)}var l=o?"textFill":"fill",u=o?"textStroke":"stroke";e.style=e.style||new qn;var h=e.style;null!=r.fill&&h.set(l,qc(r.fill,n)),null!=r.stroke&&h.set(u,qc(r.stroke,n)),B(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(t){var e="lineWidth"===t&&o?"textStrokeWidth":t;null!=r[t]&&h.set(e,parseFloat(r[t]))}),r.textBaseline&&"auto"!==r.textBaseline||(r.textBaseline="alphabetic"),"alphabetic"===r.textBaseline&&(r.textBaseline="bottom"),"start"===r.textAlign&&(r.textAlign="left"),"end"===r.textAlign&&(r.textAlign="right"),B(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(t){null!=r[t]&&h.set(t,r[t])}),r.lineDash&&(e.style.lineDash=ot(r.lineDash).split(Vc)),h[u]&&"none"!==h[u]&&(e[u]=!0),e.__inheritedStyle=r}var Xc=/url\(\s*#(.*?)\)/;function qc(t,e){var n=e&&t&&t.match(Xc);return n?e[ot(n[1])]:t}var Kc=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g,Qc=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Jc(t,e,n){var i=e/t.width,r=n/t.height,o=Math.min(i,r);return{scale:[o,o],position:[-(t.x+t.width/2)*o+e/2,-(t.y+t.height/2)*o+n/2]}}var $c=ht(),td={registerMap:function(t,e,n){var i;return Y(e)?i=e:e.svg?i=[{type:"svg",source:e.svg,specialAreas:e.specialAreas}]:(e.geoJson&&!e.features&&(n=e.specialAreas,e=e.geoJson),i=[{type:"geoJSON",source:e,specialAreas:n}]),B(i,function(t){var e=t.type;"geoJson"===e&&(e=t.type="geoJSON");var n=ed[e];c&&rt(n,"Illegal map type: "+e),n(t)}),$c.set(t,i)},retrieveMap:function(t){return $c.get(t)}},ed={geoJSON:function(t){var e=t.source;t.geoJSON=U(e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e},svg:function(t){t.svgXML=Fc(t.source)}},nd=rt,id=B,rd=Z,od=X,ad=gu.parseClassType,sd="4.2.0",ld={zrender:"4.0.5"},ud=1e3,hd=1e3,cd=3e3,dd={PROCESSOR:{FILTER:ud,STATISTIC:5e3},VISUAL:{LAYOUT:hd,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:cd,COMPONENT:4e3,BRUSH:5e3}},fd="__flagInMainProcess",pd="__optionUpdated",gd=/^[a-zA-Z0-9_]+$/;function md(t){return function(e,n,i){e=e&&e.toLowerCase(),Ft.prototype[t].call(this,e,n,i)}}function vd(){Ft.call(this)}function yd(t,e,i){i=i||{},"string"==typeof e&&(e=Wd[e]),this.id,this.group,this._dom=t;var r="canvas";c&&(r=("undefined"==typeof window?n:window).__ECHARTS__DEFAULT__RENDERER__||r);var o=this._zr=br(t,{renderer:i.renderer||r,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height});this._throttledZrFlush=lc(H(o.flush,o),17),(e=A(e))&&mh(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new Uu;var a,s,l=this._api=(s=(a=this)._coordSysMgr,C(new Yu(a),{getCoordinateSystems:H(s.getCoordinateSystems,s),getComponentByElement:function(t){for(;t;){var e=t.__ecComponentInfo;if(null!=e)return a._model.getComponent(e.mainType,e.index);t=t.parent}}}));function u(t,e){return t.__prio-e.__prio}Gn(Gd,u),Gn(Bd,u),this._scheduler=new gc(this,l,Bd,Gd),Ft.call(this,this._ecEventProcessor=new Ed),this._messageCenter=new vd,this._initEvents(),this.resize=H(this.resize,this),this._pendingActions=[],o.animation.on("frame",this._onframe,this),function(t,e){t.on("rendered",function(){e.trigger("rendered"),!t.animation.isFinished()||e[pd]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})}(o,this),st(this)}vd.prototype.on=md("on"),vd.prototype.off=md("off"),vd.prototype.one=md("one"),z(vd,Ft);var xd=yd.prototype;function _d(t,e,n){var i,r=this._model,o=this._coordSysMgr.getCoordinateSystems();e=Fr(r,e);for(var a=0;a0&&t.unfinished);t.unfinished||this._zr.flush()}}},xd.getDom=function(){return this._dom},xd.getZr=function(){return this._zr},xd.setOption=function(t,e,n){var i;if(c&&nd(!this[fd],"`setOption` should not be called during main process."),od(e)&&(n=e.lazyUpdate,i=e.silent,e=e.notMerge),this[fd]=!0,!this._model||e){var r=new $u(this._api),o=this._theme,a=this._model=new Vu;a.scheduler=this._scheduler,a.init(null,null,o,r)}this._model.setOption(t,Vd),n?(this[pd]={silent:i},this[fd]=!1):(wd(this),bd.update.call(this),this._zr.flush(),this[pd]=!1,this[fd]=!1,Ad.call(this,i),Dd.call(this,i))},xd.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},xd.getModel=function(){return this._model},xd.getOption=function(){return this._model&&this._model.getOption()},xd.getWidth=function(){return this._zr.getWidth()},xd.getHeight=function(){return this._zr.getHeight()},xd.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},xd.getRenderedCanvas=function(t){if(p.canvasSupported)return(t=t||{}).pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(t)},xd.getSvgDataUrl=function(){if(p.svgSupported){var t=this._zr;return B(t.storage.getDisplayList(),function(t){t.stopAnimation(!0)}),t.painter.pathToDataUrl()}},xd.getDataURL=function(t){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;id(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataUrl():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return id(i,function(t){t.group.ignore=!1}),o},xd.getConnectedDataURL=function(t){if(p.canvasSupported){var e=this.group,n=Math.min,i=Math.max;if(Yd[e]){var r=1/0,o=1/0,a=-1/0,s=-1/0,l=[],u=t&&t.pixelRatio||1;B(jd,function(u,h){if(u.group===e){var c=u.getRenderedCanvas(A(t)),d=u.getDom().getBoundingClientRect();r=n(d.left,r),o=n(d.top,o),a=i(d.right,a),s=i(d.bottom,s),l.push({dom:c,left:d.left,top:d.top})}});var h=(a*=u)-(r*=u),c=(s*=u)-(o*=u),d=P();d.width=h,d.height=c;var f=br(d);return id(l,function(t){var e=new er({style:{x:t.left*u-r,y:t.top*u-o,image:t.dom}});f.add(e)}),f.refreshImmediately(),d.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},xd.convertToPixel=j(_d,"convertToPixel"),xd.convertFromPixel=j(_d,"convertFromPixel"),xd.containPixel=function(t,e){var n;return B(t=Fr(this._model,t),function(t,i){i.indexOf("Models")>=0&&B(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n|=!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint?n|=o.containPoint(e,t):c&&console.warn(i+": "+(o?"The found component do not support containPoint.":"No view mapping to the found component."))}else c&&console.warn(i+": containPoint is not supported")},this)},this),!!n},xd.getVisual=function(t,e){var n=(t=Fr(this._model,t,{defaultMainType:"series"})).seriesModel;c&&(n||console.warn("There is no specified seires model"));var i=n.getData(),r=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?i.indexOfRawIndex(t.dataIndex):null;return null!=r?i.getItemVisual(r,e):i.getVisual(e)},xd.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},xd.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var bd={prepareAndUpdate:function(t){wd(this),bd.update.call(this,t)},update:function(t){var e=this._model,n=this._api,i=this._zr,r=this._coordSysMgr,o=this._scheduler;if(e){o.restoreData(e,t),o.performSeriesTasks(e),r.create(e,n),o.performDataProcessorTasks(e,t),Sd(this,e),r.update(e,n),Cd(e),o.performVisualTasks(e,t),Ld(this,e,n,t);var a=e.get("backgroundColor")||"transparent";if(p.canvasSupported)i.setBackgroundColor(a);else{var s=je(a);a=tn(s,"rgb"),0===s[3]&&(a="transparent")}Pd(e,n)}},updateTransform:function(t){var e=this._model,n=this,i=this._api;if(e){var r=[];e.eachComponent(function(o,a){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,e,i,t);l&&l.update&&r.push(s)}else r.push(s)});var o=ht();e.eachSeries(function(r){var a=n._chartsMap[r.__viewId];if(a.updateTransform){var s=a.updateTransform(r,e,i,t);s&&s.update&&o.set(r.uid,1)}else o.set(r.uid,1)}),Cd(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:o}),kd(n,e,0,t,o),Pd(e,this._api)}},updateView:function(t){var e=this._model;e&&(Jh.markUpdateMethod(t,"updateView"),Cd(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),Ld(this,this._model,this._api,t),Pd(e,this._api))},updateVisual:function(t){bd.update.call(this,t)},updateLayout:function(t){bd.update.call(this,t)}};function wd(t){var e=t._model,n=t._scheduler;n.restorePipelines(e),n.prepareStageTasks(),Td(t,"component",e,n),Td(t,"chart",e,n),n.plan()}function Md(t,e,n,i,r){var o=t._model;if(i){var a={};a[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"];var s={mainType:i,query:a};r&&(s.subType=r);var l=n.excludeSeriesId;null!=l&&(l=ht(Cr(l))),o&&o.eachComponent(s,function(e){l&&null!=l.get(e.id)||u(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)}else id(t._componentsViews.concat(t._chartsViews),u);function u(i){i&&i.__alive&&i[e]&&i[e](i.__model,o,t._api,n)}}function Sd(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})}function Id(t,e){var n=t.type,i=t.escapeConnect,r=zd[n],o=r.actionInfo,a=(o.update||"update").split(":"),s=a.pop();a=null!=a[0]&&ad(a[0]),this[fd]=!0;var l=[t],u=!1;t.batch&&(u=!0,l=V(t.batch,function(e){return(e=L(C({},e),t)).batch=null,e}));var h,c=[],d="highlight"===n||"downplay"===n;id(l,function(t){(h=(h=r.action(t,this._model,this._api))||C({},t)).type=o.event||h.type,c.push(h),d?Md(this,s,t,"series"):a&&Md(this,s,t,a.main,a.sub)},this),"none"===s||d||a||(this[pd]?(wd(this),bd.update.call(this,t),this[pd]=!1):bd[s].call(this,t)),h=u?{type:o.event||n,escapeConnect:i,batch:c}:c[0],this[fd]=!1,!e&&this._messageCenter.trigger(h.type,h)}function Ad(t){for(var e=this._pendingActions;e.length;){var n=e.shift();Id.call(this,n,t)}}function Dd(t){!t&&this.trigger("updated")}function Td(t,e,n,i){for(var r="component"===e,o=r?t._componentsViews:t._chartsViews,a=r?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;ue.get("hoverLayerThreshold")&&!p.node&&n.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}(t._zr,e),fc(t._zr.dom,e)}function Pd(t,e){id(Fd,function(n){n(t,e)})}xd.resize=function(t){c&&nd(!this[fd],"`resize` should not be called during main process."),this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[fd]=!0,n&&wd(this),bd.update.call(this),this[fd]=!1,Ad.call(this,i),Dd.call(this,i)}},xd.showLoading=function(t,e){if(od(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Hd[t]){var n=Hd[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}else c&&console.warn("Loading effects "+t+" not exists.")},xd.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},xd.makeActionFromEvent=function(t){var e=C({},t);return e.type=Rd[t.type],e},xd.dispatchAction=function(t,e){od(e)||(e={silent:!!e}),zd[t.type]&&this._model&&(this[fd]?this._pendingActions.push(t):(Id.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&p.browser.weChat&&this._throttledZrFlush(),Ad.call(this,e.silent),Dd.call(this,e.silent)))},xd.appendData=function(t){var e=t.seriesIndex,n=this.getModel().getSeriesByIndex(e);c&&nd(t.data&&n),n.appendData(t),this._scheduler.unfinished=!0},xd.on=md("on"),xd.off=md("off"),xd.one=md("one");var Od=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Nd(t,e){var n=t.get("z"),i=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t.zlevel=i))})}function Ed(){this.eventInfo}xd._initEvents=function(){id(Od,function(t){var e=function(e){var n,i=this.getModel(),r=e.target,o="globalout"===t;if(o)n={};else if(r&&null!=r.dataIndex){var a=r.dataModel||i.getSeriesByIndex(r.seriesIndex);n=a&&a.getDataParams(r.dataIndex,r.dataType,r)||{}}else r&&r.eventData&&(n=C({},r.eventData));if(n){var s=n.componentType,l=n.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=n.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),h=u&&this["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];c&&(o||u&&h||console.warn("model or view can not be found by params")),n.event=e,n.type=t,this._ecEventProcessor.eventInfo={targetEl:r,packedEvent:n,model:u,view:h},this.trigger(t,n)}};e.zrEventfulCallAtLast=!0,this._zr.on(t,e,this)},this),id(Rd,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},xd.isDisposed=function(){return this._disposed},xd.clear=function(){this.setOption({series:[]},!0)},xd.dispose=function(){if(this._disposed)c&&console.warn("Instance "+this.id+" has been disposed");else{this._disposed=!0,Wr(this.getDom(),Xd,"");var t=this._api,e=this._model;id(this._componentsViews,function(n){n.dispose(e,t)}),id(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),delete jd[this.id]}},z(yd,Ft),Ed.prototype={constructor:Ed,normalizeQuery:function(t){var e={},n={},i={};if(U(t)){var r=ad(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};B(t,function(t,r){for(var s=!1,l=0;l0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},filter:function(t,e,n){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,o=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return h(l,a,"mainType")&&h(l,a,"subType")&&h(l,a,"index","componentIndex")&&h(l,a,"name")&&h(l,a,"id")&&h(u,o,"name")&&h(u,o,"dataIndex")&&h(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o));function h(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},afterTrigger:function(){this.eventInfo=null}};var zd={},Rd={},Bd=[],Vd=[],Fd=[],Gd=[],Wd={},Hd={},jd={},Yd={},Zd=new Date-0,Ud=new Date-0,Xd="_echarts_instance_";function qd(t){Yd[t]=!1}var Kd=qd;function Qd(t){return jd[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,Xd)]}function Jd(t,e){Wd[t]=e}function $d(t){Vd.push(t)}function tf(t,e){af(Bd,t,e,ud)}function ef(t,e,n){"function"==typeof e&&(n=e,e="");var i=od(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,nd(gd.test(i)&&gd.test(e)),zd[i]||(zd[i]={action:n,actionInfo:t}),Rd[e]=i}function nf(t,e){Uu.register(t,e)}function rf(t,e){af(Gd,t,e,hd,"layout")}function of(t,e){af(Gd,t,e,cd,"visual")}function af(t,e,n,i,r){if((rd(e)||od(e))&&(n=e,e=i),c){if(isNaN(e)||null==e)throw new Error("Illegal priority");id(t,function(t){nd(t.__raw!==n)})}var o=gc.wrapStageHandler(n,r);return o.__prio=e,o.__raw=n,t.push(o),o}function sf(t,e){Hd[t]=e}function lf(t){return gu.extend(t)}function uf(t){return Uh.extend(t)}function hf(t){return Vh.extend(t)}function cf(t){return Jh.extend(t)}function df(t){return t}function ff(t,e,n,i,r){this._old=t,this._new=e,this._oldKeyGetter=n||df,this._newKeyGetter=i||df,this.context=r}function pf(t,e,n,i,r){for(var o=0;o65535?bf:Mf}var If=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],Af=["_extent","_approximateExtent","_rawExtent"];function Df(t,e){B(If.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,B(Af,function(n){t[n]=A(e[n])}),t._calculationInfo=C(e._calculationInfo)}var Tf=function(t,e){t=t||["x","y"];for(var n={},i=[],r={},o=0;o=0?this._indices[t]:-1}function Ef(t,e){var n=t._idList[e];return null==n&&(n=Pf(t,t._idDimIdx,e)),null==n&&(n=xf+e),n}function zf(t){return Y(t)||(t=[t]),t}function Rf(t,e){for(var n=0;n=0?(r[s]=Vf(o[s]),i._rawExtent[s]=[1/0,-1/0],i._extent[s]=null):r[s]=o[s])}return i}function Vf(t){for(var e,n,i=new Array(t.length),r=0;rx[1]&&(x[1]=y)}e&&(this._nameList[f]=e[p])}this._rawCount=this._count=l,this._extent={},kf(this)},Cf._initDataFromProvider=function(t,e){if(!(t>=e)){for(var n,i=this._chunkSize,r=this._rawData,o=this._storage,a=this.dimensions,s=a.length,l=this._dimensionInfos,u=this._nameList,h=this._idList,c=this._rawExtent,d=this._nameRepeatCount={},f=this._chunkCount,p=0;pS[1]&&(S[1]=M)}if(!r.pure){var I=u[v];if(m&&null==I)if(null!=m.name)u[v]=I=m.name;else if(null!=n){var A=a[n],D=o[A][y];if(D){I=D[x];var T=l[A].ordinalMeta;T&&T.categories.length&&(I=T.categories[I])}}var C=null==m?null:m.id;null==C&&null!=I&&(d[I]=d[I]||0,C=I,d[I]>0&&(C+="__ec__"+d[I]),d[I]++),null!=C&&(h[v]=C)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent={},kf(this)}},Cf.count=function(){return this._count},Cf.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array){r=new e(n);for(var i=0;i=0&&e=0&&ea&&(a=l)}return i=[o,a],this._extent[t]=i,i},Cf.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},Cf.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},Cf.getCalculationInfo=function(t){return this._calculationInfo[t]},Cf.setCalculationInfo=function(t,e){vf(t)?C(this._calculationInfo,t):this._calculationInfo[t]=e},Cf.getSum=function(t){var e=0;if(this._storage[t])for(var n=0,i=this.count();n=this._rawCount||t<0)return-1;var e=this._indices,n=e[t];if(null!=n&&nt))return o;r=o-1}}return-1},Cf.indicesOfNearest=function(t,e,n){var i=[];if(!this._storage[t])return i;null==n&&(n=1/0);for(var r=Number.MAX_VALUE,o=-1,a=0,s=this.count();a=0&&o<0)&&(r=u,o=l,i.length=0),i.push(a))}return i},Cf.getRawIndex=Of,Cf.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],n=0;n=l&&w<=u||isNaN(w))&&(o[a++]=d),d++;h=!0}else if(2===i){f=this._storage[s];var y=this._storage[e[1]],x=t[e[1]][0],_=t[e[1]][1];for(p=0;p=l&&w<=u||isNaN(w))&&(M>=x&&M<=_||isNaN(M))&&(o[a++]=d),d++}}h=!0}}if(!h)if(1===i)for(v=0;v=l&&w<=u||isNaN(w))&&(o[a++]=S)}else for(v=0;vt[A][1])&&(I=!1)}I&&(o[a++]=this.getRawIndex(v))}return aM[1]&&(M[1]=w)}}}return r},Cf.downSample=function(t,e,n,i){for(var r=Bf(this,[t]),o=r._storage,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=this._chunkSize,c=r._rawExtent[t],d=new(Sf(this))(u),f=0,p=0;pu-p&&(s=u-p,a.length=s);for(var g=0;gc[1]&&(c[1]=x),d[f++]=_}return r._count=f,r._indices=d,r.getRawIndex=Nf,r},Cf.getItemModel=function(t){var e=this.hostModel;return new pl(this.getRawDataItem(t),e,e&&e.ecModel)},Cf.diff=function(t){var e=this;return new ff(t?t.getIndices():[],this.getIndices(),function(e){return Ef(t,e)},function(t){return Ef(e,t)})},Cf.getVisual=function(t){var e=this._visual;return e&&e[t]},Cf.setVisual=function(t,e){if(vf(t))for(var n in t)t.hasOwnProperty(n)&&this.setVisual(n,t[n]);else this._visual=this._visual||{},this._visual[t]=e},Cf.setLayout=function(t,e){if(vf(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},Cf.getLayout=function(t){return this._layout[t]},Cf.getItemLayout=function(t){return this._itemLayouts[t]},Cf.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?C(this._itemLayouts[t]||{},e):e},Cf.clearItemLayouts=function(){this._itemLayouts.length=0},Cf.getItemVisual=function(t,e,n){var i=this._itemVisuals[t],r=i&&i[e];return null!=r||n?r:this.getVisual(e)},Cf.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{},r=this.hasItemVisual;if(this._itemVisuals[t]=i,vf(e))for(var o in e)e.hasOwnProperty(o)&&(i[o]=e[o],r[o]=!0);else i[e]=n,r[e]=!0},Cf.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var Ff=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};function Gf(t,e,n){ku.isInstance(e)||(e=ku.seriesDataToSource(e)),n=n||{},t=(t||[]).slice();for(var i=(n.dimsDef||[]).slice(),r=ht(n.encodeDef),o=ht(),a=ht(),s=[],l=function(t,e,n,i){var r=Math.max(t.dimensionsDetectCount||1,e.length,n.length,i||0);return B(e,function(t){var e=t.dimsDef;e&&(r=Math.max(r,e.length))}),r}(e,t,i,n.dimCount),u=0;u=e[0]&&t<=e[1]},Xf.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},Xf.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},Xf.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},Xf.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Xf.prototype.getExtent=function(){return this._extent.slice()},Xf.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},Xf.prototype.isBlank=function(){return this._isBlank},Xf.prototype.setBlank=function(t){this._isBlank=t},Xf.prototype.getLabel=null,Ur(Xf),Jr(Xf,{registerWhenExtend:!0}),qf.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&V(n,Jf);return new qf({categories:i,needCollect:!i,deduplication:!1!==e.dedplication})};var Kf=qf.prototype;function Qf(t){return t._map||(t._map=ht(t.categories))}function Jf(t){return X(t)&&null!=t.value?t.value:t+""}Kf.getOrdinal=function(t){return Qf(this).get(t)},Kf.parseAndCollect=function(t){var e,n=this._needCollect;if("string"!=typeof t&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=Qf(this);return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e};var $f=Xf.prototype,tp=Xf.extend({type:"ordinal",init:function(t,e){t&&!Y(t)||(t=new qf({categories:t})),this._ordinalMeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),$f.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return $f.normalize.call(this,this.parse(t))},scale:function(t){return Math.round($f.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push(n),n++;return t},getLabel:function(t){if(!this.isBlank())return this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:dt,niceExtent:dt});tp.create=function(){return new tp};var ep=wl;function np(t){return Il(t)+2}function ip(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function rp(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),ip(t,0,e),ip(t,1,e),t[0]>t[1]&&(t[0]=t[1])}var op=wl,ap=Xf.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),ap.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=np(t)},getTicks:function(){return function(t,e,n,i){var r=[];if(!t)return r;e[0]1e4)return[];return e[1]>(r.length?r[r.length-1]:n[1])&&r.push(e[1]),r}(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getLabel:function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=Il(t)||0:"auto"===n&&(n=this._intervalPrecision),Vl(t=op(t,n,!0))},niceTicks:function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=function(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=El(o/e,!0);null!=n&&ai&&(a=r.interval=i);var s=r.intervalPrecision=np(a);return rp(r.niceTickExtent=[ep(Math.ceil(t[0]/a)*a,s),ep(Math.floor(t[1]/a)*a,s)],t),r}(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax?e[0]-=n/2:(e[1]+=n/2,e[0]-=n/2)}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=op(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=op(Math.ceil(e[1]/r)*r))},fillExtent:function(t){if(!t.fixMin&&!t.fixMax){var e=s(this._extent,2),n=e[0],i=e[1];0===i?i=-n*t.pnr:0===n?n=-i/t.pnr:i=-n*t.pnr,this._extent=[n,i],this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval)}}});ap.create=function(){return new ap};var sp="__ec_stack_",lp="undefined"!=typeof Float32Array?Float32Array:Array;function up(t){return t.get("stack")||sp+t.seriesIndex}function hp(t){return t.dim+t.index}function cp(t,e){var n=[];return e.eachSeriesByType(t,function(t){vp(t)&&!yp(t)&&n.push(t)}),n}function dp(t){var e=[];return B(t,function(t){var n=t.getData(),i=t.coordinateSystem.getBaseAxis(),r=i.getExtent(),o="category"===i.type?i.getBandWidth():Math.abs(r[1]-r[0])/n.count(),a=bl(t.get("barWidth"),o),s=bl(t.get("barMaxWidth"),o),l=t.get("barGap"),u=t.get("barCategoryGap");e.push({bandWidth:o,barWidth:a,barMaxWidth:s,barGap:l,barCategoryGap:u,axisKey:hp(i),stackId:up(t)})}),fp(e)}function fp(t){var e={};B(t,function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var h=t.barGap;null!=h&&(o.gap=h);var c=t.barCategoryGap;null!=c&&(o.categoryGap=c)});var n={};return B(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=bl(t.categoryGap,r),a=bl(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),B(i,function(t,e){var n=t.maxWidth;n&&n=0?"p":"n",D=m;p&&(r[a][_]||(r[a][_]={p:m,n:m}),D=r[a][_][A]),g?(b=D,w=(I=n.dataToPoint([x,_]))[1]+l,M=I[0]-m,S=u,Math.abs(M).5||(u=.5),{progress:function(t,e){for(var i,h=new lp(2*t.count),c=[],d=[],f=0;null!=(i=t.next());)d[l]=e.get(o,i),d[1-l]=e.get(a,i),c=n.dataToPoint(d,null,c),h[f++]=c[0],h[f++]=c[1];e.setLayout({largePoints:h,barWidth:u,valueAxisStart:xp(0,r),valueAxisHorizontal:s})}}}}};function vp(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function yp(t){return t.pipelineContext&&t.pipelineContext.large}function xp(t,e,n){var i,r,o=e.getGlobalExtent();o[0]>o[1]?(i=o[1],r=o[0]):(i=o[0],r=o[1]);var a=e.toGlobalCoord(e.dataToCoord(0));return ar&&(a=r),a}var _p=ap.prototype,bp=Math.ceil,wp=Math.floor,Mp=ap.extend({type:"time",getLabel:function(t){var e=this._stepLvl,n=new Date(t);return Ql(e[0],n,this.getSetting("useUTC"))},niceExtent:function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=864e5,e[1]+=864e5),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-864e5}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=wl(wp(e[0]/i)*i)),t.fixMax||(e[1]=wl(bp(e[1]/i)*i))},niceTicks:function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0],o=r/t;null!=e&&on&&(o=n);var a=Sp.length,s=function(t,e,n,i){for(;n>>1;t[r][1]0;)i*=10;var r=[wl(Lp(e[0]/i)*i),wl(Cp(e[1]/i)*i)];this._interval=i,this._niceExtent=r}},niceExtent:function(t){Ap.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});function Np(t,e){return Tp(t,Dp(e))}function Ep(t,e){var n,i,r,o=t.type,a=e.getMin(),s=e.getMax(),l=null!=a,u=null!=s,h=t.getExtent();"ordinal"===o?n=e.getCategories().length:(Y(i=e.get("boundaryGap"))||(i=[i||0,i||0]),"boolean"==typeof i[0]&&(c&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),i=[0,0]),i[0]=bl(i[0],1),i[1]=bl(i[1],1),r=h[1]-h[0]||Math.abs(h[0])),null==a&&(a="ordinal"===o?n?0:NaN:h[0]-i[0]*r),null==s&&(s="ordinal"===o?n?n-1:NaN:h[1]+i[1]*r),"dataMin"===a?a=h[0]:"function"==typeof a&&(a=a({min:h[0],max:h[1]})),"dataMax"===s?s=h[1]:"function"==typeof s&&(s=s({min:h[0],max:h[1]})),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN),t.setBlank(J(a)||J(s)||"ordinal"===o&&!t.getOrdinalMeta().categories.length),e.getNeedCrossZero()&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var d=e.ecModel;if(d&&"time"===o){var f,p=cp("bar",d);if(B(p,function(t){f|=t.getBaseAxis()===e.axis}),f){var g=dp(p),m=function(t,e,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=pp(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;B(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;B(a,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-t,c=h/(1-(s+l)/o)-h;return{min:t-=c*(s/u),max:e+=c*(l/u)}}(a,s,e,g);a=m.min,s=m.max}}return[a,s]}function zp(t,e){var n=Ep(t,e),i=null!=e.getMin(),r=null!=e.getMax(),o=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var a=t.type;t.setExtent(n[0],n[1]),t.niceExtent({splitNumber:o,fixMin:i,fixMax:r,minInterval:"interval"===a||"time"===a?e.get("minInterval"):null,maxInterval:"interval"===a||"time"===a?e.get("maxInterval"):null});var s=e.get("interval");null!=s&&t.setInterval&&t.setInterval(s)}function Rp(t,e){if(e=e||t.get("type"))switch(e){case"category":return new tp(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new ap;default:return(Xf.getClass(e)||ap).create(t)}}function Bp(t){var e,n=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"string"==typeof n?(e=n,n=function(n){return n=t.scale.getLabel(n),e.replace("{value}",null!=n?n:"")}):"function"==typeof n?function(e,r){return null!=i&&(r=e-i),n(Vp(t,e),r)}:function(e){return t.scale.getLabel(e)}}function Vp(t,e){return"category"===t.type?t.scale.getLabel(e):e}function Fp(t,e){var n=e*Math.PI/180,i=t.plain(),r=i.width,o=i.height,a=r*Math.cos(n)+o*Math.sin(n),s=r*Math.sin(n)+o*Math.cos(n);return new Pn(i.x,i.y,a,s)}function Gp(t){var e=t.get("interval");return null==e?"auto":e}function Wp(t){return"category"===t.type&&0===Gp(t.getLabelModel())}B(["contain","normalize"],function(t){Op.prototype[t]=function(e){return e=Pp(e)/Pp(this.base),Ip[t].call(this,e)}}),Op.create=function(){return new Op};var Hp={getMin:function(t){var e=this.option,n=t||null==e.rangeStart?e.min:e.rangeStart;return this.axis&&null!=n&&"dataMin"!==n&&"function"!=typeof n&&!J(n)&&(n=this.axis.scale.parse(n)),n},getMax:function(t){var e=this.option,n=t||null==e.rangeEnd?e.max:e.rangeEnd;return this.axis&&null!=n&&"dataMax"!==n&&"function"!=typeof n&&!J(n)&&(n=this.axis.scale.parse(n)),n},getNeedCrossZero:function(){var t=this.option;return null==t.rangeStart&&null==t.rangeEnd&&!t.scale},getCoordSysModel:dt,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}},jp=_s({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,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),Yp=_s({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,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),Zp=_s({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,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),h=Math.cos(u)*a,c=Math.sin(u),d=Math.cos(u),f=.6*a,p=.7*a;t.moveTo(n-h,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+h-c*f,l+s+d*f,n,i-p,n,i),t.bezierCurveTo(n,i-p,n-h+c*f,l+s+d*f,n-h,l+s),t.closePath()}}),Up=_s({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,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),Xp={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){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},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}},qp={};B({line:es,rect:$a,roundRect:$a,square:$a,circle:Ra,diamond:Yp,pin:Zp,arrow:Up,triangle:jp},function(t,e){qp[e]=new t});var Kp=_s({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style;"pin"===this.shape.symbolType&&"inside"===t.textPosition&&(t.textPosition=["50%","40%"],t.textAlign="center",t.textVerticalAlign="middle")},buildPath:function(t,e,n){var i=e.symbolType,r=qp[i];"none"!==e.symbolType&&(r||(r=qp[i="rect"]),Xp[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n))}});function Qp(t,e){if("image"!==this.type){var n=this.style,i=this.shape;i&&"line"===i.symbolType?n.stroke=t:this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff"):(n.fill&&(n.fill=t),n.stroke&&(n.stroke=t)),this.dirty(!1)}}function Jp(t,e,n,i,r,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?ws(t.slice(8),new Pn(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?bs(t.slice(7),{},new Pn(e,n,i,r),a?"center":"cover"):new Kp({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=l,s.setColor=Qp,s.setColor(o),s}var $p={isDimensionStacked:Yf,enableDataStack:jf,getStackedDimension:Zf},tg=(Object.freeze||Object)({createList:function(t){return Uf(t.getSource(),t)},getLayoutRect:su,dataStack:$p,createScale:function(t,e){var n=e;pl.isInstance(e)||z(n=new pl(e),Hp);var i=Rp(n);return i.setExtent(t[0],t[1]),zp(i,n),i},mixinAxisModelCommonMethods:function(t){z(t,Hp)},completeDimensions:Gf,createDimensions:Hf,createSymbol:Jp}),eg=1e-8;function ng(t,e){return Math.abs(t-e)>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,i.push([s/n,l/n])}return i}rg.prototype={constructor:rg,properties:null,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,n=[e,e],i=[-e,-e],r=[],o=[],a=this.geometries,s=0;s0}),function(t){var e=t.properties,n=t.geometry,i=n.coordinates,r=[];"Polygon"===n.type&&r.push({type:"polygon",exterior:i[0],interiors:i.slice(1)}),"MultiPolygon"===n.type&&B(i,function(t){t[0]&&r.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})});var o=new rg(e.name,r,e.cp);return o.properties=e,o})},sg=Br();function lg(t){return"category"===t.type?function(t){var e=t.getLabelModel(),n=hg(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=Bp(t);return{labels:V(e,function(e,i){return{formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e}})}}(t)}function ug(t,e){return"category"===t.type?function(t,e){var n,i,r=cg(t,"ticks"),o=Gp(e),a=dg(r,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),Z(o))n=gg(t,o,!0);else if("auto"===o){var s=hg(t,t.getLabelModel());i=s.labelCategoryInterval,n=V(s.labels,function(t){return t.tickValue})}else n=pg(t,i=o,!0);return fg(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:t.scale.getTicks()}}function hg(t,e){var n,i,r=cg(t,"labels"),o=Gp(e),a=dg(r,o);return a||(Z(o)?n=gg(t,o):(i="auto"===o?function(t){var e=sg(t).autoInterval;return null!=e?e:sg(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=pg(t,i)),fg(r,o,{labels:n,labelCategoryInterval:i}))}function cg(t,e){return sg(t)[e]||(sg(t)[e]=[])}function dg(t,e){for(var n=0;n1&&h/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=Wp(t),d=a.get("showMinLabel")||c,f=a.get("showMaxLabel")||c;d&&u!==o[0]&&g(o[0]);for(var p=u;p<=o[1];p+=l)g(p);function g(t){s.push(n?t:{formattedLabel:i(t),rawLabel:r.getLabel(t),tickValue:t})}return f&&p!==o[1]&&g(o[1]),s}function gg(t,e,n){var i=t.scale,r=Bp(t),o=[];return B(i.getTicks(),function(t){var a=i.getLabel(t);e(t,a)&&o.push(n?t:{formattedLabel:r(t),rawLabel:a,tickValue:t})}),o}var mg=[0,1],vg=function(t,e,n){this.dim=t,this.scale=e,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1};function yg(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}vg.prototype={constructor:vg,contain:function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},containData:function(t){return this.contain(this.dataToCoord(t))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return Al(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var n=this._extent;n[0]=t,n[1]=e},dataToCoord:function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&yg(n=n.slice(),i.count()),_l(t,mg,n,e)},coordToData:function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&yg(n=n.slice(),i.count());var r=_l(t,n,mg,e);return this.scale.scale(r)},pointToData:function(t,e){},getTicksCoords:function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=ug(this,e),i=V(n.ticks,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this),r=e.get("alignWithLabel");return function(t,e,n,i,r){var o=e.length;if(t.onBand&&!i&&o){var a,s=t.getExtent();if(1===o)e[0].coord=s[0],a=e[1]={coord:s[0]};else{var l=e[1].coord-e[0].coord;B(e,function(t){t.coord-=l/2;var e=e||0;e%2>0&&(t.coord-=l/(2*(e+1)))}),a={coord:e[o-1].coord+l},e.push(a)}var u=s[0]>s[1];h(e[0].coord,s[0])&&(r?e[0].coord=s[0]:e.shift()),r&&h(s[0],e[0].coord)&&e.unshift({coord:s[0]}),h(s[1],a.coord)&&(r?a.coord=s[1]:e.pop()),r&&h(a.coord,s[1])&&e.push({coord:s[1]})}function h(t,e){return u?t>e:t40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(i)),c=Math.abs(u*Math.sin(i)),d=0,f=0;l<=o[1];l+=s){var p,g,m=yi(n(l),e.font,"center","top");p=1.3*m.width,g=1.3*m.height,d=Math.max(d,p,7),f=Math.max(f,g,7)}var v=d/h,y=f/c;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(v,y))),_=sg(t.model),b=_.lastAutoInterval,w=_.lastTickCount;return null!=b&&null!=w&&Math.abs(b-x)<=1&&Math.abs(w-a)<=1&&b>x?x=b:(_.lastTickCount=a,_.lastAutoInterval=x),x}(this)}};var xg=ag,_g={};B(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(t){_g[t]=ft[t]});var bg={};function wg(t,e){var n=t.mapDimension("defaultedLabel",!0),i=n.length;if(1===i)return Ch(t,e,n[0]);if(i){for(var r=[],o=0;o0?n=i[0]:i[1]<0&&(n=i[1]),n}(o,n),s=r.dim,l=o.dim,u=e.mapDimension(l),h=e.mapDimension(s),c="x"===l||"radius"===l?1:0,d=V(t.dimensions,function(t){return e.mapDimension(t)}),f=e.getCalculationInfo("stackResultDimension");return(i|=Yf(e,d[0]))&&(d[0]=f),(i|=Yf(e,d[1]))&&(d[1]=f),{dataDimsForPoint:d,valueStart:a,valueAxisDim:l,baseAxisDim:s,stacked:!!i,valueDim:u,baseDim:h,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Vg(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}Ng.updateData=function(t,e){e=zg(e);var n=this.group,i=t.hostModel,r=this._data,o=this._symbolCtor,a=Rg(t);r||n.removeAll(),t.diff(r).add(function(i){var r=t.getItemLayout(i);if(Eg(t,r,i,e)){var s=new o(t,i,a);s.attr("position",r),t.setItemGraphicEl(i,s),n.add(s)}}).update(function(s,l){var u=r.getItemGraphicEl(l),h=t.getItemLayout(s);Eg(t,h,s,e)?(u?(u.updateData(t,s,a),$s(u,{position:h},i)):(u=new o(t,s)).attr("position",h),n.add(u),t.setItemGraphicEl(s,u)):n.remove(u)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)})}).execute(),this._data=t},Ng.isPersistent=function(){return!0},Ng.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(e,n){var i=t.getItemLayout(n);e.attr("position",i)})},Ng.incrementalPrepareUpdate=function(t){this._seriesScope=Rg(t),this._data=null,this.group.removeAll()},Ng.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}n=zg(n);for(var r=t.start;r=r||d<0)break;if(Ug(p)){if(h){d+=o;continue}break}if(d===n)t[o>0?"moveTo":"lineTo"](p[0],p[1]);else if(l>0){var g=e[c],m="y"===u?1:0,v=(p[m]-g[m])*l;Hg(Yg,g),Yg[m]=g[m]+v,Hg(Zg,p),Zg[m]=p[m]-v,t.bezierCurveTo(Yg[0],Yg[1],Zg[0],Zg[1],p[0],p[1])}else t.lineTo(p[0],p[1]);c=d,d+=o}return f}function Kg(t,e,n,i,r,o,a,s,l,u,h){for(var c=0,d=n,f=0;f=r||d<0)break;if(Ug(p)){if(h){d+=o;continue}break}if(d===n)t[o>0?"moveTo":"lineTo"](p[0],p[1]),Hg(Yg,p);else if(l>0){var g=d+o,m=e[g];if(h)for(;m&&Ug(e[g]);)m=e[g+=o];var v=.5,y=e[c];if(!(m=e[g])||Ug(m))Hg(Zg,p);else{var x,_;if(Ug(m)&&!h&&(m=p),bt(jg,m,y),"x"===u||"y"===u){var b="x"===u?0:1;x=Math.abs(p[b]-y[b]),_=Math.abs(p[b]-m[b])}else x=Ct(p,y),_=Ct(p,m);Wg(Zg,p,jg,-l*(1-(v=_/(_+x))))}Fg(Yg,Yg,s),Gg(Yg,Yg,a),Fg(Zg,Zg,s),Gg(Zg,Zg,a),t.bezierCurveTo(Yg[0],Yg[1],Zg[0],Zg[1],p[0],p[1]),Wg(Yg,p,jg,l*v)}else t.lineTo(p[0],p[1]);c=d,d+=o}return f}function Qg(t,e){var n=[1/0,1/0],i=[-1/0,-1/0];if(e)for(var r=0;ri[0]&&(i[0]=o[0]),o[1]>i[1]&&(i[1]=o[1])}return{min:e?n:i,max:e?i:n}}var Jg=ya.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:Va(ya.prototype.brush),buildPath:function(t,e){var n=e.points,i=0,r=n.length,o=Qg(n,e.smoothConstraint);if(e.connectNulls){for(;r>0&&Ug(n[r-1]);r--);for(;i0&&Ug(n[o-1]);o--);for(;re[0]?1:-1;e[0]+=i*n,e[1]-=i*n}return e}function im(t,e,n,i){return"polar"===t.type?function(t,e,n,i){var r=t.getAngleAxis(),o=t.getRadiusAxis().getExtent().slice();o[0]>o[1]&&o.reverse();var a=r.getExtent(),s=Math.PI/180;n&&(o[0]-=.5,o[1]+=.5);var l=new Fa({shape:{cx:wl(t.cx,1),cy:wl(t.cy,1),r0:wl(o[0],1),r:wl(o[1],1),startAngle:-a[0]*s,endAngle:-a[1]*s,clockwise:r.inverse}});return e&&(l.shape.endAngle=-a[0]*s,tl(l,{shape:{endAngle:-a[1]*s}},i)),l}(t,e,n,i):function(t,e,n,i){var r=nm(t.getAxis("x")),o=nm(t.getAxis("y")),a=t.getBaseAxis().isHorizontal(),s=Math.min(r[0],r[1]),l=Math.min(o[0],o[1]),u=Math.max(r[0],r[1])-s,h=Math.max(o[0],o[1])-l;if(n)s-=.5,u+=.5,l-=.5,h+=.5;else{var c=i.get("lineStyle.width")||2,d=i.get("clipOverflow")?c/2:Math.max(u,h);a?(l-=d,h+=2*d):(s-=d,u+=2*d)}var f=new $a({shape:{x:s,y:l,width:u,height:h}});return e&&(f.shape[a?"width":"height"]=0,tl(f,{shape:{width:u,height:h}},i)),f}(t,e,n,i)}function rm(t,e,n){for(var i=e.getBaseAxis(),r="x"===i.dim||"radius"===i.dim?0:1,o=[],a=0;ai)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return B(o.getViewLabels(),function(t){s[t.tickValue]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}Jh.extend({type:"line",init:function(){var t=new On,e=new Og;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,n){var i=t.coordinateSystem,r=this.group,o=t.getData(),a=t.getModel("lineStyle"),s=t.getModel("areaStyle"),l=o.mapArray(o.getItemLayout),u="polar"===i.type,h=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,g=this._lineGroup,m=t.get("animation"),v=!s.isEmpty(),y=s.get("origin"),x=function(t,e,n){if(!n.valueDim)return[];for(var i=[],r=0,o=e.count();r=0;o--){var a=n[o].dimension,s=t.dimensions[a],l=t.getDimensionInfo(s);if("x"===(i=l&&l.coordDim)||"y"===i){r=n[o];break}}if(r){var u=e.getAxis(i),h=V(r.stops,function(t){return{coord:u.toGlobalCoord(u.dataToCoord(t.value)),color:t.color}}),d=h.length,f=r.outerColors.slice();d&&h[0].coord>h[d-1].coord&&(h.reverse(),f.reverse());var p=h[0].coord-10,g=h[d-1].coord+10,m=g-p;if(m<.001)return"transparent";B(h,function(t){t.offset=(t.coord-p)/m}),h.push({offset:d?h[d-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:d?h[0].offset:.5,color:f[0]||"transparent"});var v=new ls(0,0,0,0,h,!0);return v[i]=p,v[i+"2"]=g,v}c&&console.warn("Visual map on line style only support x or y dimension.")}else c&&console.warn("Visual map on line style is only supported on cartesian2d.")}(o,i)||o.getVisual("color");f.useStyle(L(a.getLineStyle(),{fill:"none",stroke:S,lineJoin:"bevel"}));var I=t.get("smooth");if(I=em(t.get("smooth")),f.setShape({smooth:I,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),p){var A=o.getCalculationInfo("stackedOnSeries"),D=0;p.useStyle(L(s.getAreaStyle(),{fill:S,opacity:.7,lineJoin:"bevel"})),A&&(D=em(A.get("smooth"))),p.setShape({smooth:I,stackedOnSmooth:D,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=o,this._coordSys=i,this._stackedOnPoints=x,this._points=l,this._step=M,this._valueOrigin=y},dispose:function(){},highlight:function(t,e,n,i){var r=t.getData(),o=Rr(r,i);if(!(o instanceof Array)&&null!=o&&o>=0){var a=r.getItemGraphicEl(o);if(!a){var s=r.getItemLayout(o);if(!s)return;(a=new Mg(r,o)).position=s,a.setZ(t.get("zlevel"),t.get("z")),a.ignore=isNaN(s[0])||isNaN(s[1]),a.__temp=!0,r.setItemGraphicEl(o,a),a.stopSymbolAnimation(!0),this.group.add(a)}a.highlight()}else Jh.prototype.highlight.call(this,t,e,n,i)},downplay:function(t,e,n,i){var r=t.getData(),o=Rr(r,i);if(null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else Jh.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Jg({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new $g({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_updateAnimation:function(t,e,n,i,r,o){var a=this._polyline,s=this._polygon,l=t.hostModel,u=function(t,e,n,i,r,o,a,s){for(var l=function(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})}).update(function(t,e){n.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){n.push({cmd:"-",idx:t})}).execute(),n}(t,e),u=[],h=[],c=[],d=[],f=[],p=[],g=[],m=Bg(r,e,a),v=Bg(o,t,s),y=0;ye&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;ne[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},E(fm,vg);var pm={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},gm={};gm.categoryAxis=D({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},pm),gm.valueAxis=D({boundaryGap:[0,0],splitNumber:5},pm),gm.timeAxis=L({scale:!0,min:"dataMin",max:"dataMax"},gm.valueAxis),gm.logAxis=L({scale:!0,logBase:10},gm.valueAxis);var mm=["value","category","time","log"],vm=function(t,e,n,i){B(mm,function(r){e.extend({type:t+"Axis."+r,mergeDefaultAndTheme:function(e,i){var o=this.layoutMode,a=o?hu(e):{};D(e,i.getTheme().get(r+"Axis")),D(e,this.getDefaultOption()),e.type=n(t,e),o&&uu(e,a,o)},optionUpdated:function(){"category"===this.option.type&&(this.__ordinalMeta=qf.createByAxisModel(this))},getCategories:function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:T([{},gm[r+"Axis"],i],!0)})}),gu.registerSubTypeDefaulter(t+"Axis",j(n,t))},ym=gu.extend({type:"cartesian2dAxis",axis:null,init:function(){ym.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){ym.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){ym.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function xm(t,e){return e.type||(e.data?"category":"value")}D(ym.prototype,Hp);var _m={offset:0};function bm(t,e,n){return t.getCoordSysModel()===e}function wm(t,e,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._pnAxes={},this._initCartesian(t,e,n),this.model=t}vm("x",ym,xm,_m),vm("y",ym,xm,_m),gu.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});var Mm=wm.prototype;function Sm(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get("axisLine.onZero"),l=a.get("axisLine.onZeroAxisIndex");if(s){if(null!=l)Im(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&Im(o[u])&&!i[h(o[u])]){r=o[u];break}r&&(i[h(r)]=!0)}function h(t){return t.dim+"_"+t.index}}function Im(t){return t&&"category"!==t.type&&"time"!==t.type&&function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}(t)}Mm.type="grid",Mm.axisPointerEnabled=!0,Mm.getRect=function(){return this._rect},Mm.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model),B(n.x,function(t){zp(t.scale,t.model)}),B(n.y,function(t){zp(t.scale,t.model)}),this.syncYAxisZero();var i={};B(n.x,function(t){Sm(n,"y",t,i)}),B(n.y,function(t){Sm(n,"x",t,i)}),this.resize(this.model,e)},Mm.syncYAxisZero=function(){var t=[],e=[],n=[];if(B(this._axesMap.y,function(i){var r=null!=i.model.getMin(),o=null!=i.model.getMax();if(!r&&!o){var a=i.scale.getExtent();a[0]<0&&a[1]?t.push(i):0===a[0]&&a[1]>0?e.push(i):a[0]<0&&0===a[1]&&n.push(i)}}),t.length>0||e.length>0&&n.length>0){var i=function(t){var e=1;if(t.length>0){var n=t.map(function(t){var e=t.scale.getExtent();return Math.abs(e[1])/Math.abs(e[0])});e=Math.max.apply(null,n)}return e}(t);t.concat(e).concat(n).forEach(function(t){"interval"===t.scale.type&&function(t,e,n){var i=null!=e.getMin(),r=null!=e.getMax();t.fillExtent({fixMin:i,fixMax:r,pnr:n})}(t.scale,t.model,i)})}},Mm.resize=function(t,e,n){var i=su(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=i;var r=this._axesList;function o(){B(r,function(t){var e=t.isHorizontal(),n=e?[0,i.width]:[0,i.height],r=t.inverse?1:0;t.setExtent(n[r],n[1-r]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?i.x:i.y)})}o(),!n&&t.get("containLabel")&&(B(r,function(t){if(!t.model.get("axisLabel.inside")){var e=function(t){var e=t.model,n=t.scale;if(e.get("axisLabel.show")&&!n.isBlank()){var i,r,o="category"===t.type,a=n.getExtent();r=o?n.count():(i=n.getTicks()).length;var s,l=t.getLabelModel(),u=Bp(t),h=1;r>40&&(h=Math.ceil(r/40));for(var c=0;cu[1]?-1:1,c=["start"===o?u[0]-h*l:"end"===o?u[1]+h*l:(u[0]+u[1])/2,Rm(o)?t.labelOffset+a*l:0],d=e.get("nameRotate");null!=d&&(d=d*Cm/180),Rm(o)?i=Om(t.rotation,null!=d?d:t.rotation,a):(i=function(t,e,n,i){var r,o,a=Cl(n-t.rotation),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return Ll(a-Cm/2)?(o=l?"bottom":"top",r="center"):Ll(a-1.5*Cm)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*Cm&&a>Cm/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}(t,o,d||0,u),null!=(r=t.axisNameAvailableWidth)&&(r=Math.abs(r/Math.sin(i.rotation)),!isFinite(r)&&(r=null)));var f=s.getFont(),p=e.get("nameTruncate",!0)||{},g=p.ellipsis,m=$(t.nameTruncateMaxWidth,p.maxWidth,r),v=null!=g&&null!=m?$l(n,m,f,g,{minChar:2,placeholder:p.placeholder}):n,y=e.get("tooltip",!0),x=e.mainType,_={componentType:x,name:n,$vars:["name"]};_[x+"Index"]=e.componentIndex;var b=new za({anid:"name",__fullText:n,__truncatedText:v,position:c,rotation:i.rotation,silent:Nm(e),z2:1,tooltip:y&&y.show?C({content:n,formatter:function(){return n},formatterParams:_},y):null});Ys(b.style,s,{text:v,textFont:f,textFill:s.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:i.textAlign,textVerticalAlign:i.textVerticalAlign}),e.get("triggerEvent")&&(b.eventData=Pm(e),b.eventData.targetType="axisName",b.eventData.name=n),this._dumbGroup.add(b),b.updateTransform(),this.group.add(b),b.decomposeTransform()}}},Pm=Lm.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},Om=Lm.innerTextLayout=function(t,e,n){var i,r,o=Cl(e-t);return Ll(o)?(r=n>0?"top":"bottom",i="center"):Ll(o-Cm)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},Nm=Lm.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)};function Em(t){t&&(t.ignore=!0)}function zm(t,e,n){var i=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(i&&r){var o=le([]);return de(o,o,-t.rotation),i.applyTransform(he([],o,t.getLocalTransform())),r.applyTransform(he([],o,e.getLocalTransform())),i.intersect(r)}}function Rm(t){return"middle"===t||"center"===t}var Bm=B,Vm=j;function Fm(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];Bm(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var s=Ym(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model.getModel("tooltip",i);if(Bm(n.getAxes(),Vm(f,!1,null)),n.getTooltipAxes&&i&&u.get("show")){var h="axis"===u.get("trigger"),c="cross"===u.get("axisPointer.type"),d=n.getTooltipAxes(u.get("axisPointer.axis"));(h||c)&&Bm(d.baseAxes,Vm(f,!c||"cross",h)),c&&Bm(d.otherAxes,Vm(f,"cross",!1))}}function f(i,s,h){var c=h.model.getModel("axisPointer",r),d=c.get("show");if(d&&("auto"!==d||i||jm(c))){null==s&&(s=c.get("triggerTooltip"));var f=(c=i?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s={};Bm(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=A(a.get(t))}),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r){var u=a.get("label.show");if(l.show=null==u||u,!o){var h=s.lineStyle=a.get("crossStyle");h&&L(l,h.textStyle)}}return t.model.getModel("axisPointer",new pl(s,n,i))}(h,u,r,e,i,s):c).get("snap"),p=Ym(h.model),g=s||f||"category"===h.type,m=t.axesInfo[p]={key:p,axis:h,coordSys:n,axisPointerModel:c,triggerTooltip:s,involveSeries:g,snap:f,useHandle:jm(c),seriesModels:[]};l[p]=m,t.seriesInvolved|=g;var v=function(t,e){for(var n=e.model,i=e.dim,r=0;r=0||t===e}function Wm(t){var e=Hm(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=jm(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a1&&("string"==typeof r?a=lm[r]:"function"==typeof r&&(a=r),a&&t.setData(i.downSample(i.mapDimension(l.dim),1/c,a,um)))}}}}("line"));var tv=Vh.extend({type:"series.__base_bar__",getInitialData:function(t,e){return Uf(this.getSource(),this)},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var n=e.dataToPoint(e.clampData(t)),i=this.getData(),r=i.getLayout("offset"),o=i.getLayout("size");return n[e.getBaseAxis().isHorizontal()?0:1]+=r+o/2,n}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});function ev(t,e,n,i,r,o,a){js(t,e,n.getModel("label"),n.getModel("emphasis.label"),{labelFetcher:r,labelDataIndex:o,defaultText:wg(r.getData(),o),isRectText:!0,autoColor:i}),nv(t),nv(e)}function nv(t,e){"outside"===t.textPosition&&(t.textPosition=e)}tv.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t}});var iv=$r([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),rv={getBarItemStyle:function(t){var e=iv(this,t);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(e.lineDash=n)}return e}},ov=["itemStyle","barBorderWidth"];C(pl.prototype,rv),cf({type:"bar",render:function(t,e,n){this._updateDrawMode(t);var i=t.get("coordinateSystem");return"cartesian2d"===i||"polar"===i?this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n):c&&console.warn("Only cartesian2d and polar supported for bar."),this.group},incrementalPrepareRender:function(t,e,n){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,n,i){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t,e,n){var i,r=this.group,o=t.getData(),a=this._data,s=t.coordinateSystem,l=s.getBaseAxis();"cartesian2d"===s.type?i=l.isHorizontal():"polar"===s.type&&(i="angle"===l.dim);var u=t.isAnimationEnabled()?t:null;o.diff(a).add(function(e){if(o.hasValue(e)){var n=o.getItemModel(e),a=uv[s.type](o,e,n),l=av[s.type](o,e,n,a,i,u);o.setItemGraphicEl(e,l),r.add(l),hv(l,o,e,n,a,t,i,"polar"===s.type)}}).update(function(e,n){var l=a.getItemGraphicEl(n);if(o.hasValue(e)){var h=o.getItemModel(e),c=uv[s.type](o,e,h);l?$s(l,{shape:c},u,e):l=av[s.type](o,e,h,c,i,u,!0),o.setItemGraphicEl(e,l),r.add(l),hv(l,o,e,h,c,t,i,"polar"===s.type)}else r.remove(l)}).remove(function(t){var e=a.getItemGraphicEl(t);"cartesian2d"===s.type?e&&sv(t,u,e):e&&lv(t,u,e)}).execute(),this._data=o},_renderLarge:function(t,e,n){this._clear(),dv(t,this.group)},_incrementalRenderLarge:function(t,e){dv(e,this.group,!0)},dispose:dt,remove:function(t){this._clear(t)},_clear:function(t){var e=this.group,n=this._data;t&&t.get("animation")&&n&&!this._isLargeDraw?n.eachItemGraphicEl(function(e){"sector"===e.type?lv(e.dataIndex,t,e):sv(e.dataIndex,t,e)}):e.removeAll(),this._data=null}});var av={cartesian2d:function(t,e,n,i,r,o,a){var s=new $a({shape:C({},i)});if(o){var l=r?"height":"width",u={};s.shape[l]=0,u[l]=i[l],sl[a?"updateProps":"initProps"](s,{shape:u},o,e)}return s},polar:function(t,e,n,i,r,o,a){var s=i.startAngle0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}};function hv(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"color"),u=e.getItemVisual(n,"opacity"),h=i.getModel("itemStyle"),c=i.getModel("emphasis.itemStyle").getBarItemStyle();s||t.setShape("r",h.get("barBorderRadius")||0),t.useStyle(L({fill:l,opacity:u},h.getBarItemStyle()));var d=i.getShallow("cursor");d&&t.attr("cursor",d),a?r.height:r.width,s||ev(t.style,c,i,l,o,n),Fs(t,c)}var cv=ya.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var n=e.points,i=this.__startPoint,r=this.__valueIdx,o=0;o0&&"scale"!==u){var d=r.getItemLayout(0),f=Math.max(n.getWidth(),n.getHeight())/2,p=H(a.removeClipPath,a);a.setClipPath(this._createClipPath(d.cx,d.cy,f,d.startAngle,d.clockwise,p,t))}else a.removeClipPath();this._data=r}},dispose:function(){},_createClipPath:function(t,e,n,i,r,o,a){var s=new Fa({shape:{cx:t,cy:e,r0:0,r:n,startAngle:i,endAngle:i,clockwise:r}});return tl(s,{shape:{endAngle:i+(r?1:-1)*Math.PI*2}},a,o),s},containPoint:function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}}});var _v=function(t,e){B(e,function(e){e.update="updateView",ef(e,function(n,i){var r={};return i.eachComponent({mainType:"series",subType:t,query:n},function(t){t[e.method]&&t[e.method](n.name,n.dataIndex);var i=t.getData();i.each(function(e){var n=i.getName(e);r[n]=t.isSelected(n)||!1})}),{name:n.name,selected:r}})})},bv=function(t){return{getTargetSeries:function(e){var n={},i=ht();return e.eachSeriesByType(t,function(t){t.__paletteScope=n,i.set(t.uid,t)}),i},reset:function(t,e){var n=t.getRawData(),i={},r=t.getData();r.each(function(t){var e=r.getRawIndex(t);i[e]=t}),n.each(function(e){var o=i[e],a=null!=o&&r.getItemVisual(o,"color",!0);if(a)n.setItemVisual(e,"color",a);else{var s=n.getItemModel(e).get("itemStyle.color")||t.getColorFromPalette(n.getName(e)||e+"",t.__paletteScope,n.count());n.setItemVisual(e,"color",s),null!=o&&r.setItemVisual(o,"color",s)}})}}},wv=Math.PI/180;function Mv(t,e,n,i,r,o,a){function s(e,n,i,r){for(var o=e;oe&&o+1t[o].y+t[o].height)return void l(o,i/2);l(n-1,i/2)}function l(e,n){for(var i=e;i>=0&&(t[i].y-=n,!(i>0&&t[i].y>t[i-1].y+t[i-1].height));i--);}function u(t,e,n,i,r,o){for(var a=e?Number.MAX_VALUE:0,s=0,l=t.length;s=a&&(d=a-10),!e&&d<=a&&(d=a+10),t[s].x=n+d*o,a=d}}t.sort(function(t,e){return t.y-e.y});for(var h,c=0,d=t.length,f=[],p=[],g=0;g=n?p.push(t[g]):f.push(t[g]);u(f,!1,e,n,i,r),u(p,!0,e,n,i,r)}function Sv(t){return"center"===t.position}var Iv=function(t,e,n,i,r){var o,a,s=t.getData(),l=[],u=!1,h=(t.get("minShowLabelAngle")||0)*wv;s.each(function(n){var i=s.getItemLayout(n),r=s.getItemModel(n),c=r.getModel("label"),d=c.get("position")||r.get("emphasis.label.position"),f=r.getModel("labelLine"),p=f.get("length"),g=f.get("length2");if(!(i.angle0?"left":"right"}var C=c.getFont(),L=c.get("rotate")?b<0?-_+Math.PI:-_:0,k=yi(t.getFormattedLabel(n,"normal")||s.getName(n),C,x,"top");u=!!L,i.label={x:m,y:v,position:d,height:k.height,len:p,len2:g,linePoints:y,textAlign:x,verticalAlign:"middle",rotation:L,inside:M},M||l.push(i.label)}}),!u&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o){for(var a=[],s=[],l=0;l=0;s--){var l=2*s,u=i[l]-o/2,h=i[l+1]-a/2;if(t>=u&&e>=h&&t<=u+o&&e<=h+a)return s}return-1}});function Lv(){this.group=new On}var kv=Lv.prototype;function Pv(t,e,n){vg.call(this,t,e,n),this.type="value",this.angle=0,this.name="",this.model}function Ov(t,e,n){this._model=t,this.dimensions=[],this._indicatorAxes=V(t.getIndicatorModels(),function(t,e){var n="indicator_"+e,i=new Pv(n,new ap);return i.name=t.get("name"),i.model=t,t.axis=i,this.dimensions.push(n),i},this),this.resize(t,n),this.cx,this.cy,this.r,this.r0,this.startAngle}kv.isPersistent=function(){return!this._incremental},kv.updateData=function(t){this.group.removeAll();var e=new Cv({rectHover:!0,cursor:"default"});e.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},kv.updateLayout=function(t){if(!this._incremental){var e=t.getLayout("symbolPoints");this.group.eachChild(function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e)})}},kv.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new hs({silent:!0})),this.group.add(this._incremental)):this._incremental=null},kv.incrementalUpdate=function(t,e){var n;this._incremental?(n=new Cv,this._incremental.addDisplayable(n,!0)):((n=new Cv({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end})).incremental=!0,this.group.add(n)),n.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(n,e,!!this._incremental)},kv._setCommon=function(t,e,n){var i=e.hostModel,r=e.getVisual("symbolSize");t.setShape("size",r instanceof Array?r:[r,r]),t.symbolProxy=Jp(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("color");a&&t.setColor(a),n||(t.seriesIndex=i.seriesIndex,t.on("mousemove",function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>=0&&(t.dataIndex=n+(t.startIndex||0))}))},kv.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},kv._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},cf({type:"scatter",render:function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i),this._finished=!0},incrementalPrepareRender:function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},incrementalRender:function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var r=sm().reset(t);r.progress&&r.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_updateSymbolDraw:function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new Lv:new Og,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}}),of(am("scatter","circle")),rf(sm("scatter")),E(Pv,vg),Ov.prototype.getIndicatorAxes=function(){return this._indicatorAxes},Ov.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},Ov.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},Ov.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;ln[0]&&isFinite(c)&&isFinite(n[0]))}else{a.getTicks().length-1>r&&(u=o(u));var d=Math.round((n[0]+n[1])/2/u)*u,f=Math.round(r/2);a.setExtent(wl(d-f*u),wl(d+(r-f)*u)),a.setInterval(u)}})},Ov.dimensions=[],Ov.create=function(t,e){var n=[];return t.eachComponent("radar",function(i){var r=new Ov(i,t,e);n.push(r),i.coordinateSystem=r}),t.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("radarIndex")||0])}),n},Uu.register("radar",Ov);var Nv=gm.valueAxis;function Ev(t,e){return L({show:e},t)}lf({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("name"),s=this.get("name.show"),l=this.get("name.formatter"),u=this.get("nameGap"),h=this.get("triggerEvent"),c=V(this.get("indicator")||[],function(c){null!=c.max&&c.max>0&&!c.min?c.min=0:null!=c.min&&c.min<0&&!c.max&&(c.max=0);var d=a;if(null!=c.color&&(d=L({color:c.color},a)),c=D(A(c),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:c.text,nameLocation:"end",nameGap:u,nameTextStyle:d,triggerEvent:h},!1),s||(c.name=""),"string"==typeof l){var f=c.name;c.name=l.replace("{value}",null!=f?f:"")}else"function"==typeof l&&(c.name=l(c.name,c));var p=C(new pl(c,null,this.ecModel),Hp);return p.mainType="radar",p.componentIndex=this.componentIndex,p},this);this.getIndicatorModels=function(){return c}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:D({lineStyle:{color:"#bbb"}},Nv.axisLine),axisLabel:Ev(Nv.axisLabel,!1),axisTick:Ev(Nv.axisTick,!1),splitLine:Ev(Nv.splitLine,!0),splitArea:Ev(Nv.splitArea,!0),indicator:[]}});var zv=["axisLine","axisTickLabel","axisName"];uf({type:"radar",render:function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var e=t.coordinateSystem;B(V(e.getIndicatorAxes(),function(t){return new Lm(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(t){B(zv,t.add,t),this.group.add(t.getGroup())},this)},_buildSplitLineAndArea:function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),h=a.get("color"),d=s.get("color");h=Y(h)?h:[h],d=Y(d)?d:[d];var f=[],p=[];if("circle"===i)for(var g=n[0].getTicksCoords(),m=e.cx,v=e.cy,y=0;y"+V(n,function(n,i){var r=e.get(e.mapDimension(n.dim),t);return jl(n.name+" : "+r)}).join("
")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}});function Bv(t){return!isNaN(t[0])&&!isNaN(t[1])}function Vv(t){return[t.cx,t.cy]}cf({type:"radar",render:function(t,e,n){var i=t.coordinateSystem,r=this.group,o=t.getData(),a=this._data;function s(t,e){var n=t.getItemVisual(e,"symbol")||"circle",i=t.getItemVisual(e,"color");if("none"!==n){var r=function(t){return Y(t)||(t=[+t,+t]),t}(t.getItemVisual(e,"symbolSize")),o=Jp(n,-1,-1,2,2,i);return o.attr({style:{strokeNoScale:!0},z2:100,scale:[r[0]/2,r[1]/2]}),o}}function l(e,n,i,r,o,a){i.removeAll();for(var l=0;l"+jl(i+" : "+n)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}}}}),pv);var ny="\0_ec_interaction_mutex";function iy(t,e){return!!ry(t)[e]}function ry(t){return t[ny]||(t[ny]={})}function oy(t){this.pointerChecker,this._zr=t,this._opt={};var e=H,n=e(ay,this),i=e(sy,this),r=e(ly,this),o=e(uy,this),a=e(hy,this);Ft.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,s){this.disable(),this._opt=L(A(s)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",n),t.on("mousemove",i),t.on("mouseup",r)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",o),t.on("pinch",a))},this.disable=function(){t.off("mousedown",n),t.off("mousemove",i),t.off("mouseup",r),t.off("mousewheel",o),t.off("pinch",a)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function ay(t){if(!(Kt(t)||t.target&&t.target.draggable)){var e=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0)}}function sy(t){if(this._dragging&&fy("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!iy(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,o=e-i,a=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&qt(t.event),dy(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:i,oldY:r,newX:e,newY:n})}}function ly(t){Kt(t)||(this._dragging=!1)}function uy(t){var e=fy("zoomOnMouseWheel",t,this._opt),n=fy("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1;cy(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:o,originY:a})}if(n){var l=Math.abs(i);cy(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a})}}}function hy(t){iy(this._zr,"globalPan")||cy(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY})}function cy(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(qt(i.event),dy(t,e,n,i,r))}function dy(t,e,n,i,r){r.isAvailableBehavior=H(fy,null,n,i),t.trigger(e,r)}function fy(t,e,n){var i=n[t];return!t||i&&(!U(i)||e.event[i+"Key"])}function py(t,e,n){var i=t.target,r=i.position;r[0]+=e,r[1]+=n,i.dirty()}function gy(t,e,n,i){var r=t.target,o=t.zoomLimit,a=r.position,s=r.scale,l=t.zoom=t.zoom||1;if(l*=e,o){var u=o.min||0,h=o.max||1/0;l=Math.max(Math.min(h,l),u)}var c=l/t.zoom;t.zoom=l,a[0]-=(n-a[0])*(c-1),a[1]-=(i-a[1])*(c-1),s[0]*=c,s[1]*=c,r.dirty()}ef({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),z(oy,Ft);var my={axisPointer:1,tooltip:1,brush:1};function vy(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!my[i.mainType]&&r&&r.model!==n}function yy(t,e){var n=t.getItemStyle(),i=t.get("areaColor");return null!=i&&(n.fill=i),n}function xy(t,e){e.eachChild(function(e){B(e.__regions,function(n){e.trigger(t.isSelected(n.name)?"emphasis":"normal")})})}function _y(t,e){var n=new On;this.uid=yl("ec_map_draw"),this._controller=new oy(t.getZr()),this._controllerHost={target:e?n:null},this.group=n,this._updateGroup=e,this._mouseDownFlag,this._mapName,this._initialized,n.add(this._regionsGroup=new On),n.add(this._backgroundGroup=new On)}_y.prototype={constructor:_y,draw:function(t,e,n,i,r){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(e){a||e.getHostGeoModel()!==t||(a=e.getData())});var s=t.coordinateSystem;this._updateBackground(s);var l=this._regionsGroup,u=this.group,h=s.scale,c={position:s.position,scale:h};!l.childAt(0)||r?u.attr(c):$s(u,c,t),l.removeAll();var d=["itemStyle"],f=["emphasis","itemStyle"],p=["label"],g=["emphasis","label"],m=ht();B(s.regions,function(e){var n=m.get(e.name)||m.set(e.name,new On),i=new as({shape:{paths:[]}});n.add(i);var r,s=(T=t.getRegionModel(e.name)||t).getModel(d),u=T.getModel(f),c=yy(s),v=yy(u),y=T.getModel(p),x=T.getModel(g);if(a){r=a.indexOfName(e.name);var _=a.getItemVisual(r,"color",!0);_&&(c.fill=_)}B(e.geometries,function(t){if("polygon"===t.type){i.shape.paths.push(new Za({shape:{points:t.exterior}}));for(var e=0;e<(t.interiors?t.interiors.length:0);e++)i.shape.paths.push(new Za({shape:{points:t.interiors[e]}}))}}),i.setStyle(c),i.style.strokeNoScale=!0,i.culling=!0;var b=y.get("show"),w=x.get("show"),M=a&&isNaN(a.get(a.mapDimension("value"),r)),S=a&&a.getItemLayout(r);if(o||M&&(b||w)||S&&S.showLabel){var I,A=o?e.name:r;(!a||r>=0)&&(I=t);var D=new za({position:e.center.slice(),scale:[1/h[0],1/h[1]],z2:10,silent:!0});js(D.style,D.hoverStyle={},y,x,{labelFetcher:I,labelDataIndex:A,defaultText:e.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),n.add(D)}if(a)a.setItemGraphicEl(r,n);else{var T=t.getRegionModel(e.name);i.eventData={componentType:"geo",componentIndex:t.componentIndex,geoIndex:t.componentIndex,name:e.name,region:T&&T.option||{}}}(n.__regions||(n.__regions=[])).push(e),n.highDownSilentOnTouch=!!t.get("selectedMode"),Fs(n,v),l.add(n)}),this._updateController(t,e,n),function(t,e,n,i,r){n.off("click"),n.off("mousedown"),e.get("selectedMode")&&(n.on("mousedown",function(){t._mouseDownFlag=!0}),n.on("click",function(o){if(t._mouseDownFlag){t._mouseDownFlag=!1;for(var a=o.target;!a.__regions;)a=a.parent;if(a){var s={type:("geo"===e.mainType?"geo":"map")+"ToggleSelect",batch:V(a.__regions,function(t){return{name:t.name,from:r.uid}})};s[e.mainType+"Id"]=e.id,i.dispatchAction(s),xy(e,n)}}}))}(this,t,l,n,i),xy(t,l)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&$v.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(t){var e=t.map;this._mapName!==e&&B($v.makeGraphic(e,this.uid),function(t){this._backgroundGroup.add(t)},this),this._mapName=e},_updateController:function(t,e,n){var i=t.coordinateSystem,r=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=i.getZoom(),r.enable(t.get("roam")||!1);var a=t.mainType;function s(){var e={type:"geoRoam",componentType:a};return e[a+"Id"]=t.id,e}r.off("pan").on("pan",function(t){this._mouseDownFlag=!1,py(o,t.dx,t.dy),n.dispatchAction(C(s(),{dx:t.dx,dy:t.dy}))},this),r.off("zoom").on("zoom",function(t){if(this._mouseDownFlag=!1,gy(o,t.scale,t.originX,t.originY),n.dispatchAction(C(s(),{zoom:t.scale,originX:t.originX,originY:t.originY})),this._updateGroup){var e=this.group.scale;this._regionsGroup.traverse(function(t){"text"===t.type&&t.attr("scale",[1/e[0],1/e[1]])})}},this),r.setPointerChecker(function(e,r,o){return i.getViewRectAfterRoam().contain(r,o)&&!vy(e,n,t)})}};var by="__seriesMapHighDown",wy="__seriesMapCallKey";function My(t){var e=this[by];e&&e.recordVersion===this[wy]&&Sy(e,t)}function Sy(t,e){var n=t.circle,i=t.labelModel,r=t.hoverLabelModel,o=t.emphasisText,a=t.normalText;e?(n.style.extendFrom(Ys({},r,{text:r.get("show")?o:null},{isRectText:!0,useInsideStyle:!1},!0)),n.__mapOriginalZ2=n.z2,n.z2+=gs):(Ys(n.style,i,{text:i.get("show")?a:null,textPosition:i.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),n.dirty(!1),null!=n.__mapOriginalZ2&&(n.z2=n.__mapOriginalZ2,n.__mapOriginalZ2=null))}function Iy(t,e,n){var i=t.getZoom(),r=t.getCenter(),o=e.zoom,a=t.dataToPoint(r);if(null!=e.dx&&null!=e.dy&&(a[0]-=e.dx,a[1]-=e.dy,r=t.pointToData(a),t.setCenter(r)),null!=o){if(n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(i*o,l),s)/i}t.scale[0]*=o,t.scale[1]*=o;var u=t.position,h=(e.originX-u[0])*(o-1),c=(e.originY-u[1])*(o-1);u[0]-=h,u[1]-=c,t.updateTransform(),r=t.pointToData(a),t.setCenter(r),t.setZoom(o*i)}return{center:t.getCenter(),zoom:t.getZoom()}}cf({type:"map",render:function(t,e,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){if(i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id)(o=this._mapDraw)&&r.add(o.group);else if(t.needsDrawMap){var o=this._mapDraw||new _y(n,!0);r.add(o.group),o.draw(t,e,n,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,e,n){var i=t.originalData,r=this.group;i.each(i.mapDimension("value"),function(e,n){if(!isNaN(e)){var o=i.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new Ra({style:{fill:t.getData().getVisual("color")},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:gs+1)});if(!s){var u=t.mainSeries.getData(),h=i.getName(n),c=u.indexOfName(h),d=i.getItemModel(n),f=d.getModel("label"),p=d.getModel("emphasis.label"),g=u.getItemGraphicEl(c),m=tt(t.getFormattedLabel(c,"normal"),h),v=tt(t.getFormattedLabel(c,"emphasis"),m),y=g[by],x=Math.random();if(!y){y=g[by]={};var _=j(My,!0),b=j(My,!1);g.on("mouseover",_).on("mouseout",b).on("emphasis",_).on("normal",b)}g[wy]=x,C(y,{recordVersion:x,circle:l,labelModel:f,hoverLabelModel:p,emphasisText:v,normalText:m}),Sy(y,!1)}r.add(l)}}})}}),ef({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(e){var i=e.coordinateSystem;if("geo"===i.type){var r=Iy(i,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom),"series"===n&&B(e.seriesGroup,function(t){t.setCenter(r.center),t.setZoom(r.zoom)})}})});var Ay=Ot;function Dy(){_e.call(this)}function Ty(t){this.name=t,this.zoomLimit,_e.call(this),this._roamTransformable=new Dy,this._rawTransformable=new Dy,this._center,this._zoom}function Cy(t,e,n,i){var r=n.seriesModel,o=r?r.coordinateSystem:null;return o===this?o[t](i):null}function Ly(t,e,n,i){Ty.call(this,t),this.map=e;var r=$v.load(e,n);this._nameCoordMap=r.nameCoordMap,this._regionsMap=r.regionsMap,this._invertLongitute=null==i||i,this.regions=r.regions,this._rect=r.boundingRect}function ky(t,e,n,i){var r=n.geoModel,o=n.seriesModel,a=r?r.coordinateSystem:o?o.coordinateSystem||(o.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return a===this?a[t](i):null}function Py(t,e){var n=t.get("boundingCoords");if(null!=n){var i=n[0],r=n[1];isNaN(i[0])||isNaN(i[1])||isNaN(r[0])||isNaN(r[1])?c&&console.error("Invalid boundingCoords"):this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}var o,a=this.getBoundingRect(),s=t.get("layoutCenter"),l=t.get("layoutSize"),u=e.getWidth(),h=e.getHeight(),d=a.width/a.height*this.aspectScale,f=!1;if(s&&l&&(s=[bl(s[0],u),bl(s[1],h)],l=bl(l,Math.min(u,h)),isNaN(s[0])||isNaN(s[1])||isNaN(l)?c&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."):f=!0),f){var p={};d>1?(p.width=l,p.height=l/d):(p.height=l,p.width=l*d),p.y=s[1]-p.height/2,p.x=s[0]-p.width/2}else(o=t.getBoxLayoutParams()).aspect=d,p=su(o,{width:u,height:h});this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function Oy(t,e){B(e.get("geoCoord"),function(e,n){t.addGeoCoord(n,e)})}z(Dy,_e),Ty.prototype={constructor:Ty,type:"view",dimensions:["x","y"],setBoundingRect:function(t,e,n,i){return this._rect=new Pn(t,e,n,i),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,n,i){this.transformTo(t,e,n,i),this._viewRect=new Pn(t,e,n,i)},transformTo:function(t,e,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new Pn(t,e,n,i)),o.decomposeTransform(),this._updateTransform()},setCenter:function(t){t&&(this._center=t,this._updateCenterAndZoom())},setZoom:function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=Ot([],i,t),n=Ot([],n,t),e.origin=i,e.position=[n[0]-i[0],n[1]-i[1]],e.scale=[r,r],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),ue(this.transform||(this.transform=[]),e.transform||se()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],pe(this.invTransform,this.transform),this.decomposeTransform()},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,e,n){var i=e?this._rawTransform:this.transform;return n=n||[],i?Ay(n,t,i):mt(n,t)},pointToData:function(t){var e=this.invTransform;return e?Ay([],t,e):[t[0],t[1]]},convertToPixel:j(Cy,"dataToPoint"),convertFromPixel:j(Cy,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},z(Ty,_e),Ly.prototype={constructor:Ly,type:"geo",dimensions:["lng","lat"],containCoord:function(t){for(var e=this.regions,n=0;n=0;){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,u=o.hierNode.modifier,h=a.hierNode.modifier,c=s.hierNode.modifier;s=Qy(s),o=Jy(o),s&&o;){r=Qy(r),a=Jy(a),r.hierNode.ancestor=t;var d=s.hierNode.prelim+c-o.hierNode.prelim-u+i(s,o);d>0&&(tx($y(s,t,n),t,d),u+=d,l+=d),c+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,h+=a.hierNode.modifier}s&&!Qy(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=c-l),o&&!Jy(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-h,n=t)}return n}(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function Xy(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function qy(t){return arguments.length?t:ex}function Ky(t,e){var n={};return t-=Math.PI/2,n.x=e*Math.cos(t),n.y=e*Math.sin(t),n}function Qy(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function Jy(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function $y(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function tx(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function ex(t,e){return t.parentNode===e.parentNode?1:2}function nx(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)&&"none"!==t.getItemVisual(e,"symbol")}function ix(t,e,n){return n.itemModel=e,n.itemStyle=e.getModel("itemStyle").getItemStyle(),n.hoverItemStyle=e.getModel("emphasis.itemStyle").getItemStyle(),n.lineStyle=e.getModel("lineStyle").getLineStyle(),n.labelModel=e.getModel("label"),n.hoverLabelModel=e.getModel("emphasis.label"),!1===t.isExpand&&0!==t.children.length?n.symbolInnerColor=n.itemStyle.fill:n.symbolInnerColor="#fff",n}function rx(t,e,n,i,r,o){var a=!n,s=t.tree.getNodeByDataIndex(e),l=s.getModel(),u=(o=ix(s,l,o),t.tree.root),h=s.parentNode===u?s:s.parentNode||s,c=t.getItemGraphicEl(h.dataIndex),d=h.getLayout(),f=c?{x:c.position[0],y:c.position[1],rawX:c.__radialOldRawX,rawY:c.__radialOldRawY}:d,p=s.getLayout();a?(n=new Mg(t,e,o)).attr("position",[f.x,f.y]):n.updateData(t,e,o),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=p.rawX,n.__radialRawY=p.rawY,i.add(n),t.setItemGraphicEl(e,n),$s(n,{position:[p.x,p.y]},r);var g=n.getSymbolPath();if("radial"===o.layout){var m,v,y=u.children[0],x=y.getLayout(),_=y.children.length;if(p.x===x.x&&!0===s.isExpand){var b={};b.x=(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,b.y=(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2,(m=Math.atan2(b.y-x.y,b.x-x.x))<0&&(m=2*Math.PI+m),(v=b.xx.x)||(m-=Math.PI);var w=v?"left":"right";g.setStyle({textPosition:w,textRotation:-m,textOrigin:"center",verticalAlign:"middle"})}if(s.parentNode&&s.parentNode!==u){var M=n.__edge;M||(M=n.__edge=new rs({shape:ax(o,f,f),style:L({opacity:0,strokeNoScale:!0},o.lineStyle)})),$s(M,{shape:ax(o,d,p),style:{opacity:1}},r),i.add(M)}}function ox(t,e,n,i,r,o){for(var a,s=t.tree.getNodeByDataIndex(e),l=t.tree.root,u=s.getModel(),h=(o=ix(s,u,o),s.parentNode===l?s:s.parentNode||s);null==(a=h.getLayout());)h=h.parentNode===l?h:h.parentNode||h;$s(n,{position:[a.x+1,a.y+1]},r,function(){i.remove(n),t.setItemGraphicEl(e,null)}),n.fadeOut(null,{keepLabel:!0});var c=n.__edge;c&&$s(c,{shape:ax(o,a,a),style:{opacity:0}},r,function(){i.remove(c)})}function ax(t,e,n){var i,r,o,a,s,l,u,h,c=t.orient;if("radial"===t.layout){s=e.rawX,u=e.rawY,l=n.rawX,h=n.rawY;var d=Ky(s,u),f=Ky(s,u+(h-u)*t.curvature),p=Ky(l,h+(u-h)*t.curvature),g=Ky(l,h);return{x1:d.x,y1:d.y,x2:g.x,y2:g.y,cpx1:f.x,cpy1:f.y,cpx2:p.x,cpy2:p.y}}return s=e.x,u=e.y,l=n.x,h=n.y,"LR"!==c&&"RL"!==c||(i=s+(l-s)*t.curvature,r=u,o=l+(s-l)*t.curvature,a=h),"TB"!==c&&"BT"!==c||(i=s,r=u+(h-u)*t.curvature,o=l,a=h+(u-h)*t.curvature),{x1:s,y1:u,x2:l,y2:h,cpx1:i,cpy1:r,cpx2:o,cpy2:a}}function sx(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function lx(t,e,n){if(t&&N(e,t.type)>=0){var i=n.getData().tree.root,r=t.targetNode;if("string"==typeof r&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function ux(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function hx(t,e){return N(ux(t),e)>=0}function cx(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}Yy.prototype={constructor:Yy,isRemoved:function(){return this.dataIndex<0},eachNode:function(t,e,n){"function"==typeof t&&(n=e,e=t,t=null),U(t=t||{})&&(t={order:t});var i,r=t.order||"preorder",o=this[t.attr||"children"];"preorder"===r&&(i=e.call(n,this));for(var a=0;!i&&ae&&(e=i.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var e,n=this.hostTree,i=n.data.getItemModel(this.dataIndex),r=this.getLevelModel();return r||0!==this.children.length&&(0===this.children.length||!1!==this.isExpand)||(e=this.getLeavesModel()),i.getModel(t,(r||e||n.hostModel).getModel(t))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},getLeavesModel:function(){return this.hostTree.leavesModel},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},isDescendantOf:function(t){return t!==this&&t.isAncestorOf(this)}},Zy.prototype={constructor:Zy,type:"tree",eachNode:function(t,e,n){this.root.eachNode(t,e,n)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;no&&(o=t.depth)});var a=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return r.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a}),r.data},getOrient:function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},formatTooltip:function(t){for(var e=this.getData().tree,n=e.root.children[0],i=e.getNodeByDataIndex(t),r=i.getValue(),o=i.name;i&&i!==n;)o=i.parentNode.name+"."+o,i=i.parentNode;return jl(o+(isNaN(r)||null==r?"":" : "+r))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}}),cf({type:"tree",init:function(t,e){this._oldTree,this._mainGroup=new On,this._controller=new oy(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(t,e,n,i){var r=t.getData(),o=t.layoutInfo,a=this._mainGroup,s=t.get("layout");"radial"===s?a.attr("position",[o.x+o.width/2,o.y+o.height/2]):a.attr("position",[o.x,o.y]),this._updateViewCoordSys(t),this._updateController(t,e,n);var l=this._data,u={expandAndCollapse:t.get("expandAndCollapse"),layout:s,orient:t.getOrient(),curvature:t.get("lineStyle.curveness"),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};r.diff(l).add(function(e){nx(r,e)&&rx(r,e,null,a,t,u)}).update(function(e,n){var i=l.getItemGraphicEl(n);nx(r,e)?rx(r,e,i,a,t,u):i&&ox(l,n,i,a,t,u)}).remove(function(e){var n=l.getItemGraphicEl(e);n&&ox(l,e,n,a,t,u)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===u.expandAndCollapse&&r.eachItemGraphicEl(function(e,i){e.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:i})})}),this._data=r},_updateViewCoordSys:function(t){var e=t.getData(),n=[];e.each(function(t){var i=e.getItemLayout(t);!i||isNaN(i.x)||isNaN(i.y)||n.push([+i.x,+i.y])});var i=[],r=[];Po(n,i,r),r[0]-i[0]==0&&(r[0]+=1,i[0]-=1),r[1]-i[1]==0&&(r[1]+=1,i[1]-=1);var o=t.coordinateSystem=new Ty;o.zoomLimit=t.get("scaleLimit"),o.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1]),o.setCenter(t.get("center")),o.setZoom(t.get("zoom")),this.group.attr({position:o.position,scale:o.scale}),this._viewCoordSys=o},_updateController:function(t,e,n){var i=this._controller,r=this._controllerHost,o=this.group;i.setPointerChecker(function(e,i,r){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(i,r)&&!vy(e,n,t)}),i.enable(t.get("roam")),r.zoomLimit=t.get("scaleLimit"),r.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",function(e){py(r,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})},this).on("zoom",function(e){gy(r,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),this._updateNodeAndLinkScale(t)},this)},_updateNodeAndLinkScale:function(t){var e=t.getData(),n=this._getNodeGlobalScale(t),i=[n,n];e.eachItemGraphicEl(function(t,e){t.attr("scale",i)})},_getNodeGlobalScale:function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scale,r=i&&i[0]||1;return((e.getZoom()-1)*n+1)/r},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}}),ef({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(e){var n=t.dataIndex,i=e.getData().tree.getNodeByDataIndex(n);i.isExpand=!i.isExpand})}),ef({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(e){var n=Iy(e.coordinateSystem,t);e.setCenter&&e.setCenter(n.center),e.setZoom&&e.setZoom(n.zoom)})}),of(am("tree","circle")),rf(function(t,e){t.eachSeriesByType("tree",function(t){!function(t,e){var n=function(t,e){return su(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=n;var i=t.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=qy(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(r=n.width,o=n.height,a=qy());var s=t.getData().tree.root,l=s.children[0];if(l){!function(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e,n,i=[t];e=i.pop();)if(n=e.children,e.isExpand&&n.length)for(var r=n.length-1;r>=0;r--){var o=n[r];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},i.push(o)}}(s),function(t,e,n){for(var i,r=[t],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;sh.getLayout().x&&(h=t),t.depth>c.depth&&(c=t)});var d=u===h?1:a(u,h)/2,f=d-u.getLayout().x,p=0,g=0,m=0,v=0;if("radial"===i)p=r/(h.getLayout().x+d+f),g=o/(c.depth-1||1),sx(l,function(t){m=(t.getLayout().x+f)*p,v=(t.depth-1)*g;var e=Ky(m,v);t.setLayout({x:e.x,y:e.y,rawX:m,rawY:v},!0)});else{var y=t.getOrient();"RL"===y||"LR"===y?(g=o/(h.getLayout().x+d+f),p=r/(c.depth-1||1),sx(l,function(t){v=(t.getLayout().x+f)*g,m="LR"===y?(t.depth-1)*p:r-(t.depth-1)*p,t.setLayout({x:m,y:v},!0)})):"TB"!==y&&"BT"!==y||(p=r/(h.getLayout().x+d+f),g=o/(c.depth-1||1),sx(l,function(t){m=(t.getLayout().x+f)*p,v="TB"===y?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:m,y:v},!0)}))}}}(t,e)})}),Vh.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],_viewRoot:null,defaultOption:{progressive:0,hoverLayerThreshold:1/0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(t,e){var n={name:t.name,children:t.data};!function t(e){var n=0;B(e.children,function(e){t(e);var i=e.value;Y(i)&&(i=i[0]),n+=i});var i=e.value;Y(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=n),i<0&&(i=0),Y(e.value)?e.value[0]=i:e.value=i}(n);var i=t.levels||[];i=t.levels=function(t,e){var n,i=e.get("color");if(i)return B(t=t||[],function(t){var e=new pl(t),i=e.get("color");(e.get("itemStyle.color")||i&&"none"!==i)&&(n=!0)}),n||((t[0]||(t[0]={})).color=i.slice()),t}(i,e);var r={};return r.levels=i,Zy.createTree(n,this,r).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var e=this.getData(),n=this.getRawValue(t),i=Y(n)?Vl(n[0]):Vl(n);return jl(e.getName(t)+": "+i)},getDataParams:function(t){var e=Vh.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=cx(n,this),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},C(this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=ht(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});var dx=5;function fx(t){this.group=new On,t.add(this.group)}function px(t,e,n,i,r,o){var a=[[r?t:t-dx,e],[t+n,e],[t+n,e+i],[r?t:t-dx,e+i]];return!o&&a.splice(2,0,[t+n+dx,e+i/2]),!r&&a.push([t,e+i/2]),a}function gx(t,e,n){t.eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&cx(n,e)}}fx.prototype={constructor:fx,render:function(t,e,n,i){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=a.getModel("textStyle"),l={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,l,s),this._renderContent(t,l,a,s,i),lu(o,l.pos,l.box)}},_prepare:function(t,e,n){for(var i=t;i;i=i.parentNode){var r=i.getModel().get("name"),o=n.getTextRect(r),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:i,text:r,width:a})}},_renderContent:function(t,e,n,i,r){for(var o,a,s,l,u,h,c,d,f,p=0,g=e.emptyItemWidth,m=t.get("breadcrumb.height"),v=(o=e.pos,a=e.box,l=a.width,u=a.height,h=bl(o.x,l),c=bl(o.y,u),d=bl(o.x2,l),f=bl(o.y2,u),(isNaN(h)||isNaN(parseFloat(o.x)))&&(h=0),(isNaN(d)||isNaN(parseFloat(o.x2)))&&(d=l),(isNaN(c)||isNaN(parseFloat(o.y)))&&(c=0),(isNaN(f)||isNaN(parseFloat(o.y2)))&&(f=u),s=Gl(s||0),{width:Math.max(d-h-s[1]-s[3],0),height:Math.max(f-c-s[0]-s[2],0)}),y=e.totalWidth,x=e.renderList,_=x.length-1;_>=0;_--){var b=x[_],w=b.node,M=b.width,S=b.text;y>v.width&&(y-=M-g,M=g,S=null);var I=new Za({shape:{points:px(p,0,M,m,_===x.length-1,0===_)},style:L(n.getItemStyle(),{lineJoin:"bevel",text:S,textFill:i.getTextColor(),textFont:i.getFont()}),z:10,onclick:j(r,w)});this.group.add(I),gx(I,t,w),p+=M+8}},remove:function(){this.group.removeAll()}};var mx=H,vx=On,yx=$a,xx=B,_x=["label"],bx=["emphasis","label"],Mx=["upperLabel"],Sx=["emphasis","upperLabel"],Ix=10,Ax=1,Dx=2,Tx=$r([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Cx=function(t){var e=Tx(t);return e.stroke=e.fill=e.lineWidth=null,e};function Lx(t,e,n,i,r,o,a,s,l,u){if(a){var h=a.getLayout();if(h&&h.isInView){var c=h.width,d=h.height,f=h.borderWidth,p=h.invisible,g=a.getRawIndex(),m=s&&s.getRawIndex(),v=a.viewChildren,y=h.upperHeight,x=v&&v.length,_=a.getModel("itemStyle"),b=a.getModel("emphasis.itemStyle"),w=T("nodeGroup",vx);if(w){if(l.add(w),w.attr("position",[h.x||0,h.y||0]),w.__tmNodeWidth=c,w.__tmNodeHeight=d,h.isAboveViewRoot)return w;var M=T("background",yx,u,Ax);if(M&&function(e,n,i){n.dataIndex=a.dataIndex,n.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:c,height:d});var r=a.getVisual("borderColor",!0),o=b.get("borderColor");I(n,function(){var t=Cx(_);t.fill=r;var e=Tx(b);if(e.fill=o,i){var a=c-2*f;D(t,e,r,a,y,{x:f,y:0,width:a,height:y})}else t.text=e.text=null;n.setStyle(t),Fs(n,e)}),e.add(n)}(w,M,x&&h.upperHeight),!x){var S=T("content",yx,u,Dx);S&&function(e,n){n.dataIndex=a.dataIndex,n.seriesIndex=t.seriesIndex;var i=Math.max(c-2*f,0),r=Math.max(d-2*f,0);n.culling=!0,n.setShape({x:f,y:f,width:i,height:r});var o=a.getVisual("color",!0);I(n,function(){var t=Cx(_);t.fill=o;var e=Tx(b);D(t,e,o,i,r),n.setStyle(t),Fs(n,e)}),e.add(n)}(w,S)}return w}}}function I(t,e){p?!t.invisible&&o.push(t):(e(),t.__tmWillVisible||(t.invisible=!1))}function D(e,n,i,r,o,s){var l=a.getModel(),u=$(t.getFormattedLabel(a.dataIndex,"normal",null,null,s?"upperLabel":"label"),l.get("name"));if(!s&&h.isLeafRoot){var c=t.get("drillDownIcon",!0);u=c?c+" "+u:u}var d=l.getModel(s?Mx:_x),f=l.getModel(s?Sx:bx),p=d.getShallow("show");js(e,n,d,f,{defaultText:p?u:null,autoColor:i,isRectText:!0}),s&&(e.textRect=A(s)),e.truncate=p&&d.get("ellipsis")?{outerWidth:r,outerHeight:o,minChar:2}:null}function T(t,o,s,l){var u=null!=m&&n[t][m],h=r[t];return u?(n[t][m]=null,function(t,e,n){(t[g]={}).old="nodeGroup"===n?e.position.slice():C({},e.shape)}(h,u,t)):p||((u=new o({z:kx(s,l)})).__tmDepth=s,u.__tmStorageName=t,function(t,e,n){var o=t[g]={},s=a.parentNode;if(s&&(!i||"drillDown"===i.direction)){var l=0,u=0,h=r.background[s.getRawIndex()];!i&&h&&h.old&&(l=h.old.width,u=h.old.height),o.old="nodeGroup"===n?[0,u]:{x:l,y:u,width:0,height:0}}o.fadein="nodeGroup"!==n}(h,0,t)),e[t][g]=u}}function kx(t,e){var n=t*Ix+e;return(n-1)/n}cf({type:"treemap",init:function(t,e){this._containerGroup,this._storage={nodeGroup:[],background:[],content:[]},this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(t,e,n,i){if(!(N(e.findComponents({mainType:"series",subType:"treemap",query:i}),t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var r=lx(i,["treemapZoomToNode","treemapRootToNode"],t),o=i&&i.type,a=t.layoutInfo,s=!this._oldTree,l=this._storage,u="treemapRootToNode"===o&&r&&l?{rootNodeGroup:l.nodeGroup[r.node.getRawIndex()],direction:i.direction}:null,h=this._giveContainerGroup(a),c=this._doRender(h,t,u);s||o&&"treemapZoomToNode"!==o&&"treemapRootToNode"!==o?c.renderFinally():this._doAnimation(h,c,t,u),this._resetController(n),this._renderBreadcrumb(t,n,r)}},_giveContainerGroup:function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new vx,this._initEvents(e),this.group.add(e)),e.attr("position",[t.x,t.y]),e},_doRender:function(t,e,n){var i=e.getData().tree,r=this._oldTree,o={nodeGroup:[],background:[],content:[]},a={nodeGroup:[],background:[],content:[]},s=this._storage,l=[],u=j(Lx,e,a,s,n,o,l);!function t(e,n,i,r,o){function a(t){return t.getId()}function s(a,s){var l=null!=a?e[a]:null,h=null!=s?n[s]:null,c=u(l,h,i,o);c&&t(l&&l.viewChildren||[],h&&h.viewChildren||[],c,r,o+1)}r?(n=e,xx(e,function(t,e){!t.isRemoved()&&s(e,e)})):new ff(n,e,a,a).add(s).update(s).remove(j(s,null)).execute()}(i.root?[i.root]:[],r&&r.root?[r.root]:[],t,i===r||!r,0);var h=function(t){var e={nodeGroup:[],background:[],content:[]};return t&&xx(t,function(t,n){var i=e[n];xx(t,function(t){t&&(i.push(t),t.__tmWillDelete=1)})}),e}(s);return this._oldTree=i,this._storage=a,{lastsForAnimation:o,willDeleteEls:h,renderFinally:function(){xx(h,function(t){xx(t,function(t){t.parent&&t.parent.remove(t)})}),xx(l,function(t){t.invisible=!0,t.dirty()})}}},_doAnimation:function(t,e,n,i){if(n.get("animation")){var r=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=function(){var t,e=[],n={};return{add:function(t,i,r,o,a){return U(o)&&(a=o,o=0),!n[t.id]&&(n[t.id]=1,e.push({el:t,target:i,time:r,delay:o,easing:a}),!0)},done:function(e){return t=e,this},start:function(){for(var i=e.length,r=0,o=e.length;r3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},_onZoom:function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new Pn(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var s=se();ce(s,s,[-e,-n]),fe(s,s,[t.scale,t.scale]),ce(s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},_initEvents:function(t){t.on("click",function(t){if("ready"===this._state){var e=this.seriesModel.get("nodeClick",!0);if(e){var n=this.findTarget(t.offsetX,t.offsetY);if(n){var i=n.node;if(i.getLayout().isLeafRoot)this._rootToNode(n);else if("zoomToNode"===e)this._zoomToNode(n);else if("link"===e){var r=i.hostTree.data.getItemModel(i.dataIndex),o=r.get("link",!0),a=r.get("target",!0)||"blank";o&&window.open(o,a)}}}}},this)},_renderBreadcrumb:function(t,e,n){n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new fx(this.group))).render(t,e,n.node,mx(function(e){"animating"!==this._state&&(hx(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))},this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}},this),n}});for(var Px=function(){},Ox=["treemapZoomToNode","treemapRender","treemapMove"],Nx=0;Nx=0;o--)null==n[o]&&(delete i[e[o]],e.pop())}(i):Fx(i,!0):(rt("linear"!==e||i.dataExtent),Fx(i))};Bx.prototype={constructor:Bx,mapValueToVisual:function(t){var e=this._normalizeData(t);return this._doMap(e,t)},getNormalizer:function(){return H(this._normalizeData,this)}};var Vx=Bx.visualHandlers={color:{applyVisual:Hx("color"),getColorMapper:function(){var t=this.option;return H("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),jx.call(this,t)}:function(e,n,i){var r=!!i;return!n&&(e=this._normalizeData(e)),i=Xe(e,t.parsedVisual,i),r?i:tn(i,"rgba")},this)},_doMap:{linear:function(t){return tn(Xe(t,this.option.parsedVisual),"rgba")},category:jx,piecewise:function(t,e){var n=Ux.call(this,e);return null==n&&(n=tn(Xe(t,this.option.parsedVisual),"rgba")),n},fixed:Yx}},colorHue:Gx(function(t,e){return Je(t,e)}),colorSaturation:Gx(function(t,e){return Je(t,null,e)}),colorLightness:Gx(function(t,e){return Je(t,null,null,e)}),colorAlpha:Gx(function(t,e){return $e(t,e)}),opacity:{applyVisual:Hx("opacity"),_doMap:Zx([0,1])},liftZ:{applyVisual:Hx("liftZ"),_doMap:{linear:Yx,category:Yx,piecewise:Yx,fixed:Yx}},symbol:{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);if(U(i))n("symbol",i);else if(zx(i))for(var r in i)i.hasOwnProperty(r)&&n(r,i[r])},_doMap:{linear:Wx,category:jx,piecewise:function(t,e){var n=Ux.call(this,e);return null==n&&(n=Wx.call(this,t)),n},fixed:Yx}},symbolSize:{applyVisual:Hx("symbolSize"),_doMap:Zx([0,1])}};function Fx(t,e){var n=t.visual,i=[];X(n)?Ex(n,function(t){i.push(t)}):null!=n&&i.push(n),e||1!==i.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(i[1]=i[0]),Xx(t,i)}function Gx(t){return{applyVisual:function(e,n,i){e=this.mapValueToVisual(e),i("color",t(n("color"),e))},_doMap:Zx([0,1])}}function Wx(t){var e=this.option.visual;return e[Math.round(_l(t,[0,1],[0,e.length-1],!0))]||{}}function Hx(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function jx(t){var e=this.option.visual;return e[this.option.loop&&t!==Rx?t%e.length:t]}function Yx(){return this.option.visual[0]}function Zx(t){return{linear:function(e){return _l(e,t,this.option.visual,!0)},category:jx,piecewise:function(e,n){var i=Ux.call(this,n);return null==i&&(i=_l(e,t,this.option.visual,!0)),i},fixed:Yx}}function Ux(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=n[Bx.findPieceIndex(t,n)];if(i&&i.visual)return i.visual[this.type]}}function Xx(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=V(e,function(t){return je(t)})),e}var qx={linear:function(t){return _l(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=Bx.findPieceIndex(t,e,!0);if(null!=n)return _l(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?Rx:e},fixed:dt};function Kx(t,e,n){return t?e<=n:eu[1]&&(u[1]=l);var h=e.get("colorMappingBy"),c={type:a.name,dataExtent:u,visual:a.range};"color"!==c.type||"index"!==h&&"id"!==h?c.mappingMethod="linear":(c.mappingMethod="category",c.loop=!0);var d=new Bx(c);return d.__drColorMappingBy=h,d}}}(0,s,l,0,d,g);B(g,function(e,n){if(e.depth>=o.length||e===o[e.depth]){var l=function(t,e,n,i,r,o){var a=C({},e);if(r){var s=r.type,l="color"===s&&r.__drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}(s,d,e,n,m,a);t(e,l,i,r,o,a)}})}else u=t_(d),e.setVisual("color",u)}}(o,{},V(r.levelModels,function(t){return t?t.get(Jx):null}),a,t.getViewRoot().getAncestors(),t)}};function t_(t){var e=e_(t,"color");if(e){var n=e_(t,"colorAlpha"),i=e_(t,"colorSaturation");return i&&(e=Je(e,null,null,i)),n&&(e=$e(e,n)),e}}function e_(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function n_(t,e){var n=t.get(e);return Qx(n)&&n.length?{name:e,range:n}:null}var i_=Math.max,r_=Math.min,o_=$,a_=B,s_=["itemStyle","borderWidth"],l_=["itemStyle","gapWidth"],u_=["upperLabel","show"],h_=["upperLabel","height"],c_={seriesType:"treemap",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,s=su(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=bl(o_(s.width,l[0]),r),h=bl(o_(s.height,l[1]),o),c=i&&i.type,d=lx(i,["treemapZoomToNode","treemapRootToNode"],t),f="treemapRender"===c||"treemapMove"===c?i.rootRect:null,p=t.getViewRoot(),g=ux(p);if("treemapMove"!==c){var m="treemapZoomToNode"===c?function(t,e,n,i,r){var o,a=(e||{}).node,s=[i,r];if(!a||a===n)return s;for(var l=i*r,u=l*t.option.zoomToNodeRatio;o=a.parentNode;){for(var h=0,c=o.children,d=0,f=c.length;dTl&&(u=Tl),a=o}us[1]&&(s[1]=e)})}else s=[NaN,NaN];return{sum:i,dataExtent:s}}(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,n,i,r){if(!i)return n;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*er&&(r=i));var l=t.area*t.area,u=e*e*n;return l?i_(u*r/l,l/(u*o)):1/0}function f_(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],h=e?t.area/e:0;(r||h>n[l[a]])&&(h=n[l[a]]);for(var c=0,d=t.length;c=0&&t.call(e,n[r],r)},v_.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},v_.breadthFirstTraverse=function(t,e,n,i){if(y_.isInstance(e)||(e=this._nodesMap[g_(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0}),r=0,o=i.length;r=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n,i){return this[t][e].getItemVisual(this.dataIndex,n,i)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};z(y_,__("hostGraph","data")),z(x_,__("hostGraph","edgeData")),m_.Node=y_,m_.Edge=x_,qr(y_),qr(x_);var b_=function(t,e,n,i,r){for(var o=new m_(i),a=0;a "+d)),u++)}var f,p=n.get("coordinateSystem");if("cartesian2d"===p||"polar"===p)f=Uf(t,n);else{var g=Uu.get(p),m=g&&"view"!==g.type&&g.dimensions||[];N(m,"value")<0&&m.concat(["value"]);var v=Hf(t,{coordDimensions:m});(f=new Tf(v,n)).initData(t)}var y=new Tf(["value"],n);return y.initData(l,s),r&&r(f,y),By({mainData:f,struct:o,structAttr:"graph",datas:{node:f,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o},w_=hf({type:"series.graph",init:function(t){w_.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){w_.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){w_.superApply(this,"mergeDefaultAndTheme",arguments),Lr(t,["edgeLabel"],["show"])},getInitialData:function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=this;if(i&&n)return b_(i,n,this,!0,function(t,n){t.wrapMethod("getItemModel",function(t){var e=r._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var i=r.getModel("edgeLabel"),o=new pl({label:i.option},i.parentModel,e),a=r.getModel("emphasis.edgeLabel"),s=new pl({emphasis:{label:a.option}},a.parentModel,e);function l(t){return(t=this.parsePath(t))&&"label"===t[0]?o:t&&"emphasis"===t[0]&&"label"===t[1]?s:this.parentModel}n.wrapMethod("getItemModel",function(t){return t.customizeGetParent(l),t})}).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),l=jl(l.join(" > ")),r.value&&(l+=" : "+jl(r.value)),l}return w_.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=V(this.option.categories||[],function(t){return null!=t.value?t:C({value:0},t)}),e=new Tf(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t,!0)})},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return w_.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle"},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),M_=es.prototype,S_=rs.prototype;function I_(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var A_=_s({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){this[I_(e)?"_buildPathLine":"_buildPathCurve"](t,e)},_buildPathLine:M_.buildPath,_buildPathCurve:S_.buildPath,pointAt:function(t){return this[I_(this.shape)?"_pointAtLine":"_pointAtCurve"](t)},_pointAtLine:M_.pointAt,_pointAtCurve:S_.pointAt,tangentAt:function(t){var e=this.shape,n=I_(e)?[e.x2-e.x1,e.y2-e.y1]:this._tangentAtCurve(t);return Dt(n,n)},_tangentAtCurve:S_.tangentAt}),D_=["fromSymbol","toSymbol"];function T_(t){return"_"+t+"Type"}function C_(t,e,n){var i=e.getItemVisual(n,"color"),r=e.getItemVisual(n,t),o=e.getItemVisual(n,t+"Size");if(r&&"none"!==r){Y(o)||(o=[o,o]);var a=Jp(r,-o[0]/2,-o[1]/2,o[0],o[1],i);return a.name=t,a}}function L_(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;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}function k_(t,e,n){On.call(this),this._createLine(t,e,n)}var P_=k_.prototype;function O_(t){this._ctor=t||k_,this.group=new On}P_.beforeUpdate=function(){var t=this.childOfName("fromSymbol"),e=this.childOfName("toSymbol"),n=this.childOfName("label");if(t||e||!n.ignore){for(var i=1,r=this.parent;r;)r.scale&&(i/=r.scale[0]),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=bt([],l,s);if(Dt(u,u),t){t.attr("position",s);var h=o.tangentAt(0);t.attr("rotation",Math.PI/2-Math.atan2(h[1],h[0])),t.attr("scale",[i*a,i*a])}if(e&&(e.attr("position",l),h=o.tangentAt(1),e.attr("rotation",-Math.PI/2-Math.atan2(h[1],h[0])),e.attr("scale",[i*a,i*a])),!n.ignore){var c,d,f;n.attr("position",l);var p=5*i;if("end"===n.__position)c=[u[0]*p+l[0],u[1]*p+l[1]],d=u[0]>.8?"left":u[0]<-.8?"right":"center",f=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";else if("middle"===n.__position){var g=a/2,m=[(h=o.tangentAt(g))[1],-h[0]],v=o.pointAt(g);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]),c=[v[0]+m[0]*p,v[1]+m[1]*p],d="center",f="bottom";var y=-Math.atan2(h[1],h[0]);l[0].8?"right":u[0]<-.8?"left":"center",f=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";n.attr({style:{textVerticalAlign:n.__verticalAlign||f,textAlign:n.__textAlign||d},position:c,scale:[i,i]})}}}},P_._createLine=function(t,e,n){var i=t.hostModel,r=function(t){var e=new A_({name:"line",subPixelOptimize:!0});return L_(e.shape,t),e}(t.getItemLayout(e));r.shape.percent=0,tl(r,{shape:{percent:1}},i,e),this.add(r);var o=new za({name:"label"});this.add(o),B(D_,function(n){var i=C_(n,t,e);this.add(i),this[T_(n)]=t.getItemVisual(e,n)},this),this._updateCommonStl(t,e,n)},P_.updateData=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=t.getItemLayout(e),a={shape:{}};L_(a.shape,o),$s(r,a,i,e),B(D_,function(n){var i=t.getItemVisual(e,n),r=T_(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=C_(n,t,e);this.add(o)}this[r]=i},this),this._updateCommonStl(t,e,n)},P_._updateCommonStl=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=n&&n.lineStyle,a=n&&n.hoverLineStyle,s=n&&n.labelModel,l=n&&n.hoverLabelModel;if(!n||t.hasItemOption){var u=t.getItemModel(e);o=u.getModel("lineStyle").getLineStyle(),a=u.getModel("emphasis.lineStyle").getLineStyle(),s=u.getModel("label"),l=u.getModel("emphasis.label")}var h=t.getItemVisual(e,"color"),c=et(t.getItemVisual(e,"opacity"),o.opacity,1);r.useStyle(L({strokeNoScale:!0,fill:"none",stroke:h,opacity:c},o)),r.hoverStyle=a,B(D_,function(t){var e=this.childOfName(t);e&&(e.setColor(h),e.setStyle({opacity:c}))},this);var d,f,p=s.getShallow("show"),g=l.getShallow("show"),m=this.childOfName("label");if((p||g)&&(d=h||"#000",null==(f=i.getFormattedLabel(e,"normal",t.dataType)))){var v=i.getRawValue(e);f=null==v?t.getName(e):isFinite(v)?wl(v):v}var y=p?f:null,x=g?tt(i.getFormattedLabel(e,"emphasis",t.dataType),f):null,_=m.style;null==y&&null==x||(Ys(m.style,s,{text:y},{autoColor:d}),m.__textAlign=_.textAlign,m.__verticalAlign=_.textVerticalAlign,m.__position=s.get("position")||"middle"),m.hoverStyle=null!=x?{text:x,textFill:l.getTextColor(!0),fontStyle:l.getShallow("fontStyle"),fontWeight:l.getShallow("fontWeight"),fontSize:l.getShallow("fontSize"),fontFamily:l.getShallow("fontFamily")}:{text:null},m.ignore=!p&&!g,Fs(this)},P_.highlight=function(){this.trigger("emphasis")},P_.downplay=function(){this.trigger("normal")},P_.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},P_.setLinePoints=function(t){var e=this.childOfName("line");L_(e.shape,t),e.dirty()},E(k_,On);var N_=O_.prototype;function E_(t){var e=t.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}function z_(t){return isNaN(t[0])||isNaN(t[1])}function R_(t){return!z_(t[0])&&!z_(t[1])}N_.isPersistent=function(){return!0},N_.updateData=function(t){var e=this,n=e.group,i=e._lineData;e._lineData=t,i||n.removeAll();var r=E_(t);t.diff(i).add(function(n){!function(t,e,n,i){if(R_(e.getItemLayout(n))){var r=new t._ctor(e,n,i);e.setItemGraphicEl(n,r),t.group.add(r)}}(e,t,n,r)}).update(function(n,o){!function(t,e,n,i,r,o){var a=e.getItemGraphicEl(i);R_(n.getItemLayout(r))?(a?a.updateData(n,r,o):a=new t._ctor(n,r,o),n.setItemGraphicEl(r,a),t.group.add(a)):t.group.remove(a)}(e,i,t,o,n,r)}).remove(function(t){n.remove(i.getItemGraphicEl(t))}).execute()},N_.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},N_.incrementalPrepareUpdate=function(t){this._seriesScope=E_(t),this._lineData=null,this.group.removeAll()},N_.incrementalUpdate=function(t,e){function n(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}for(var i=t.start;i=0?i+=u:i-=u:p>=0?i-=u:i+=u}return i}var Y_=function(t,e){var n=[],i=Mo,r=[[],[],[]],o=[[],[]],a=[];function s(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),e}e/=2,t.eachEdge(function(t,l){var u=t.getLayout(),h=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");u.__original||(u.__original=[vt(u[0]),vt(u[1])],u[2]&&u.__original.push(vt(u[2])));var d=u.__original;if(null!=u[2]){if(mt(r[0],d[0]),mt(r[1],d[2]),mt(r[2],d[1]),h&&"none"!==h){var f=s(t.node1),p=j_(r,d[0],f*e);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}c&&"none"!==c&&(f=s(t.node2),p=j_(r,d[1],f*e),i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]),mt(u[0],r[0]),mt(u[1],r[2]),mt(u[2],r[1])}else mt(o[0],d[0]),mt(o[1],d[1]),bt(a,o[1],o[0]),Dt(a,a),h&&"none"!==h&&(f=s(t.node1),_t(o[0],o[0],a,f*e)),c&&"none"!==c&&(f=s(t.node2),_t(o[1],o[1],a,-f*e)),mt(u[0],o[0]),mt(u[1],o[1])})},Z_=["itemStyle","opacity"],U_=["lineStyle","opacity"];function X_(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function q_(t,e,n){var i=t.getGraphicEl(),r=X_(t,e);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse(function(t){"group"!==t.type&&t.setStyle("opacity",r)})}function K_(t,e){var n=X_(t,e),i=t.getGraphicEl();i.highlight&&i.highlight(),i.traverse(function(t){"group"!==t.type&&t.setStyle("opacity",n)})}function Q_(t){return t instanceof Array||(t=[t,t]),t}function J_(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode(function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])}),$_(n)}}function $_(t){t.eachEdge(function(t){var e=t.getModel().get("lineStyle.curveness")||0,n=vt(t.node1.getLayout()),i=vt(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 tb(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=e.getBoundingRect(),i=t.getData(),r=i.graph,o=0,a=i.getSum("value"),s=2*Math.PI/(a||i.count()),l=n.width/2+n.x,u=n.height/2+n.y,h=Math.min(n.width,n.height)/2;r.eachNode(function(t){var e=t.getValue("value");o+=s*(a?e:1)/2,t.setLayout([h*Math.cos(o)+l,h*Math.sin(o)+u]),o+=s*(a?e:1)/2}),i.setLayout({cx:l,cy:u}),r.eachEdge(function(t){var e,n=t.getModel().get("lineStyle.curveness")||0,i=vt(t.node1.getLayout()),r=vt(t.node2.getLayout()),o=(i[0]+r[0])/2,a=(i[1]+r[1])/2;+n&&(e=[l*(n*=3)+o*(1-n),u*n+a*(1-n)]),t.setLayout([i,r,e])})}}cf({type:"graph",init:function(t,e){var n=new Og,i=new O_,r=this.group;this._controller=new oy(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},render:function(t,e,n){var i=t.coordinateSystem;this._model=t,this._nodeScaleRatio=t.get("nodeScaleRatio");var r=this._symbolDraw,o=this._lineDraw,a=this.group;if("view"===i.type){var s={position:i.position,scale:i.scale};this._firstRender?a.attr(s):$s(a,s,t)}Y_(t.getGraph(),this._getNodeGlobalScale(t));var l=t.getData();r.updateData(l);var u=t.getEdgeData();o.updateData(u),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var h=t.forceLayout,c=t.get("force.layoutAnimation");h&&this._startForceLayoutIteration(h,c),l.eachItemGraphicEl(function(e,i){var r=l.getItemModel(i);e.off("drag").off("dragend");var o=r.get("draggable");o&&e.on("drag",function(){h&&(h.warmUp(),!this._layouting&&this._startForceLayoutIteration(h,c),h.setFixed(i),l.setItemLayout(i,e.position))},this).on("dragend",function(){h&&h.setUnfixed(i)},this),e.setDraggable(o&&h),e.off("mouseover",e.__focusNodeAdjacency),e.off("mouseout",e.__unfocusNodeAdjacency),r.get("focusNodeAdjacency")&&(e.on("mouseover",e.__focusNodeAdjacency=function(){n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})}),e.on("mouseout",e.__unfocusNodeAdjacency=function(){n.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t.id})}))},this),l.graph.eachEdge(function(e){var i=e.getGraphicEl();i.off("mouseover",i.__focusNodeAdjacency),i.off("mouseout",i.__unfocusNodeAdjacency),e.getModel().get("focusNodeAdjacency")&&(i.on("mouseover",i.__focusNodeAdjacency=function(){n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex})}),i.on("mouseout",i.__unfocusNodeAdjacency=function(){n.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t.id})}))});var d="circular"===t.get("layout")&&t.get("circular.rotateLabel"),f=l.getLayout("cx"),p=l.getLayout("cy");l.eachItemGraphicEl(function(t,e){var n=l.getItemModel(e).get("label.rotate")||0,i=t.getSymbolPath();if(d){var r=l.getItemLayout(e),o=Math.atan2(r[1]-p,r[0]-f);o<0&&(o=2*Math.PI+o);var a=r[0]=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)}});function ib(t,e){return e&&("string"==typeof e?t=e.replace("{value}",null!=t?t:""):"function"==typeof e&&(t=e(t))),t}var rb=2*Math.PI,ob=(Jh.extend({type:"gauge",render:function(t,e,n){this.group.removeAll();var i=t.get("axisLine.lineStyle.color"),r=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r);return{cx:bl(n[0],e.getWidth()),cy:bl(n[1],e.getHeight()),r:bl(t.get("radius"),o/2)}}(t,n);this._renderMain(t,e,n,i,r)},dispose:function(){},_renderMain:function(t,e,n,i,r){for(var o=this.group,a=t.getModel("axisLine"),s=a.getModel("lineStyle"),l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,h=((g=-t.get("endAngle")/180*Math.PI)-u)%rb,c=u,d=s.get("width"),f=a.get("show"),p=0;f&&p=t&&(0===e?0:i[e-1][0]).4?"bottom":"middle",textAlign:D<-.4?"left":D>.4?"right":"center"},{autoColor:P}),silent:!0}))}if(g.get("show")&&A!==v){for(var O=0;O<=y;O++){D=Math.cos(b),T=Math.sin(b);var N=new es({shape:{x1:D*c+u,y1:T*c+h,x2:D*(c-_)+u,y2:T*(c-_)+h},silent:!0,style:I});"auto"===I.stroke&&N.setStyle({stroke:i((A+O/y)/v)}),l.add(N),b+=M}b-=M}else b+=w}},_renderPointer:function(t,e,n,i,r,o,a,s){var l=this.group,u=this._data;if(t.get("pointer.show")){var h=[+t.get("min"),+t.get("max")],c=[o,a],d=t.getData(),f=d.mapDimension("value");d.diff(u).add(function(e){var n=new nb({shape:{angle:o}});tl(n,{shape:{angle:_l(d.get(f,e),h,c,!0)}},t),l.add(n),d.setItemGraphicEl(e,n)}).update(function(e,n){var i=u.getItemGraphicEl(n);$s(i,{shape:{angle:_l(d.get(f,e),h,c,!0)}},t),l.add(i),d.setItemGraphicEl(e,i)}).remove(function(t){var e=u.getItemGraphicEl(t);l.remove(e)}).execute(),d.eachItemGraphicEl(function(t,e){var n=d.getItemModel(e),o=n.getModel("pointer");t.setShape({x:r.cx,y:r.cy,width:bl(o.get("width"),r.r),r:bl(o.get("length"),r.r)}),t.useStyle(n.getModel("itemStyle").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",i(_l(d.get(f,e),h,[0,1],!0))),Fs(t,n.getModel("emphasis.itemStyle").getItemStyle())}),this._data=d}else u&&u.eachItemGraphicEl(function(t){l.remove(t)})},_renderTitle:function(t,e,n,i,r){var o=t.getData(),a=o.mapDimension("value"),s=t.getModel("title");if(s.get("show")){var l=s.get("offsetCenter"),u=r.cx+bl(l[0],r.r),h=r.cy+bl(l[1],r.r),c=+t.get("min"),d=+t.get("max"),f=i(_l(t.getData().get(a,0),[c,d],[0,1],!0));this.group.add(new za({silent:!0,style:Ys({},s,{x:u,y:h,text:o.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:f,forceRich:!0})}))}},_renderDetail:function(t,e,n,i,r){var o=t.getModel("detail"),a=+t.get("min"),s=+t.get("max");if(o.get("show")){var l=o.get("offsetCenter"),u=r.cx+bl(l[0],r.r),h=r.cy+bl(l[1],r.r),c=bl(o.get("width"),r.r),d=bl(o.get("height"),r.r),f=t.getData(),p=f.get(f.mapDimension("value"),0),g=i(_l(p,[a,s],[0,1],!0));this.group.add(new za({silent:!0,style:Ys({},o,{x:u,y:h,text:ib(p,o.get("formatter")),textWidth:isNaN(c)?null:c,textHeight:isNaN(d)?null:d,textAlign:"center",textVerticalAlign:"middle"},{autoColor:g,forceRich:!0})}))}}}),hf({type:"series.funnel",init:function(t){ob.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this._defaultLabelLine(t)},getInitialData:function(t,e){return fv(this,["value"])},_defaultLabelLine:function(t){Lr(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},getDataParams:function(t){var e=this.getData(),n=ob.superCall(this,"getDataParams",t),i=e.mapDimension("value"),r=e.getSum(i);return n.percent=r?+(e.get(i,t)/r*100).toFixed(2):0,n.$vars.push("percent"),n},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}));function ab(t,e){On.call(this);var n=new Za,i=new Ua,r=new za;this.add(n),this.add(i),this.add(r),this.highDownOnUpdate=function(t,e){"emphasis"===e?(i.ignore=i.hoverIgnore,r.ignore=r.hoverIgnore):(i.ignore=i.normalIgnore,r.ignore=r.normalIgnore)},this.updateData(t,e,!0)}var sb=ab.prototype,lb=["itemStyle","opacity"];sb.updateData=function(t,e,n){var i=this.childAt(0),r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=t.getItemModel(e).get(lb);s=null==s?1:s,i.useStyle({}),n?(i.setShape({points:a.points}),i.setStyle({opacity:0}),tl(i,{style:{opacity:s}},r,e)):$s(i,{style:{opacity:s},shape:{points:a.points}},r,e);var l=o.getModel("itemStyle"),u=t.getItemVisual(e,"color");i.setStyle(L({lineJoin:"round",fill:u},l.getItemStyle(["opacity"]))),i.hoverStyle=l.getModel("emphasis").getItemStyle(),this._updateLabel(t,e),Fs(this)},sb._updateLabel=function(t,e){var n=this.childAt(1),i=this.childAt(2),r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e).label,s=t.getItemVisual(e,"color");$s(n,{shape:{points:a.linePoints||a.linePoints}},r,e),$s(i,{style:{x:a.x,y:a.y}},r,e),i.attr({rotation:a.rotation,origin:[a.x,a.y],z2:10});var l=o.getModel("label"),u=o.getModel("emphasis.label"),h=o.getModel("labelLine"),c=o.getModel("emphasis.labelLine");s=t.getItemVisual(e,"color"),js(i.style,i.hoverStyle={},l,u,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:s,useInsideStyle:!!a.inside},{textAlign:a.textAlign,textVerticalAlign:a.verticalAlign}),i.ignore=i.normalIgnore=!l.get("show"),i.hoverIgnore=!u.get("show"),n.ignore=n.normalIgnore=!h.get("show"),n.hoverIgnore=!c.get("show"),n.setStyle({stroke:s}),n.setStyle(h.getModel("lineStyle").getLineStyle()),n.hoverStyle=c.getModel("lineStyle").getLineStyle()},E(ab,On),Jh.extend({type:"funnel",render:function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add(function(t){var e=new ab(i,t);i.setItemGraphicEl(t,e),o.add(e)}).update(function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)}).remove(function(t){var e=r.getItemGraphicEl(t);o.remove(e)}).execute(),this._data=i},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),of(bv("funnel")),rf(function(t,e,n){t.eachSeriesByType("funnel",function(t){var n=t.getData(),i=n.mapDimension("value"),r=t.get("sort"),o=function(t,e){return su(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),a=function(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,function(t){return t}),r=[],o="ascending"===e,a=0,s=t.count();ao&&(e[1-i]=e[i]+c.sign*o),e};function cb(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function db(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var fb=B,pb=Math.min,gb=Math.max,mb=Math.floor,vb=Math.ceil,yb=wl,xb=Math.PI;function _b(t,e,n){this._axesMap=ht(),this._axesLayout={},this.dimensions=t.dimensions,this._rect,this._model=t,this._init(t,e,n)}function bb(t,e){return pb(gb(t,e[0]),e[1])}function wb(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function Mb(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,h=!1;return t=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var i=n.getData();fb(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),zp(e.scale,e.model)},this)}},this)},resize:function(t,e){this._rect=su(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,h=bb(e.get("axisExpandWidth"),l),c=bb(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>c&&c>1&&h>0&&s>0,f=e.get("axisExpandWindow");f?(t=bb(f[1]-f[0],l),f[1]=f[0]+t):(t=bb(h*(c-1),l),(f=[h*(e.get("axisExpandCenter")||mb(u/2))-t/2])[1]=f[0]+t);var p=(s-t)/(u-c);p<3&&(p=0);var g=[mb(yb(f[0]/h,1))+1,vb(yb(f[1]/h,1))-1],m=p/h*f[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:d,axisExpandWidth:h,axisCollapseWidth:p,axisExpandWindow:f,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:m}},_layoutAxes:function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each(function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])}),fb(n,function(e,n){var o=(i.axisExpandable?Mb:wb)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:xb/2,vertical:0},l=[a[r].x+t.x,a[r].y+t.y],u=s[r],h=se();de(h,h,u),ce(h,h,l),this._axesLayout[e]={position:l,rotation:u,transform:h,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(t){return this._axesMap.get(t)},dataToPoint:function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},eachActiveState:function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];B(o,function(e){a.push(t.mapDimension(e)),s.push(r.get(e).model)});for(var l=this.hasAxisBrushed(),u=n;ur*(1-h[0])?(l="jump",a=s-r*(1-h[2])):(a=s-r*h[1])>=0&&(a=s-r*(1-h[1]))<=0&&(a=0),(a*=e.axisExpandWidth/u)?hb(a,i,o,"all"):l="none"):(r=i[1]-i[0],(i=[gb(0,o[1]*s/r-r/2)])[1]=pb(o[1],i[0]+r),i[0]=i[1]-r),{axisExpandWindow:i,behavior:l}}},Uu.register("parallel",{create:function(t,e){var n=[];return t.eachComponent("parallel",function(i,r){var o=new _b(i,t,e);o.name="parallel_"+r,o.resize(i,e),i.coordinateSystem=o,o.model=i,n.push(o)}),t.eachSeries(function(e){if("parallel"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"parallel",index:e.get("parallelIndex"),id:e.get("parallelId")})[0];e.coordinateSystem=n.coordinateSystem}}),n}});var Sb=gu.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return $r([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=A(t);if(e)for(var n=e.length-1;n>=0;n--)Ml(e[n])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;i1?(n=n.split(""),("e"===(i=[t(e,n[0]),t(e,n[1])])[0]||"w"===i[0])&&i.reverse(),i.join("")):{left:"w",right:"e",top:"n",bottom:"s"}[i=il({w:"left",e:"right",n:"top",s:"bottom"}[n],function(t){return el(t.group)}(e))];var i}(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?zb[o]+"-resize":null})})}function tw(t,e,n,i,r,o,a){var s=e.childOfName(n);s&&s.setShape(function(t){var e=Tb(t[0][0],t[1][0]),n=Tb(t[0][1],t[1][1]),i=Cb(t[0][0],t[1][0]),r=Cb(t[0][1],t[1][1]);return{x:e,y:n,width:i-e,height:r-n}}(aw(t,e,[[i,r],[i+o,r+a]])))}function ew(t){return L({strokeNoScale:!0},t.brushStyle)}function nw(t,e,n,i){var r=[Tb(t,n),Tb(e,i)],o=[Cb(t,n),Cb(e,i)];return[[r[0],o[0]],[r[1],o[1]]]}function iw(t,e,n,i,r,o,a,s){var l=i.__brushOption,u=t(l.range),h=ow(n,o,a);Ab(r.split(""),function(t){var e=Eb[t];u[e[0]][e[1]]+=h[e[0]]}),l.range=e(nw(u[0][0],u[1][0],u[0][1],u[1][1])),jb(n,i),qb(n,{isEnd:!1})}function rw(t,e,n,i,r){var o=e.__brushOption.range,a=ow(t,n,i);Ab(o,function(t){t[0]+=a[0],t[1]+=a[1]}),jb(t,e),qb(t,{isEnd:!1})}function ow(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function aw(t,e,n){var i=Ub(t,e);return i&&!0!==i?i.clipPath(n,t._transform):A(n)}function sw(t){var e=t.event;e.preventDefault&&e.preventDefault()}function lw(t,e,n){return t.childOfName("main").contain(e,n)}function uw(t,e,n,i){var r,o=t._creatingCover,a=t._creatingPanel,s=t._brushOption;if(t._track.push(n.slice()),function(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],r=n[0]-i[0],o=n[1]-i[1];return Lb(r*r+o*o,.5)>Pb}(t)||o){if(a&&!o){"single"===s.brushMode&&Xb(t);var l=A(s);l.brushType=hw(l.brushType,a),l.panelId=!0===a?null:a.panelId,o=t._creatingCover=Fb(t,l),t._covers.push(o)}if(o){var u=fw[hw(t._brushType,a)];o.__brushOption.range=u.getCreatingRange(aw(t,o,t._track)),i&&(Gb(t,o),u.updateCommon(t,o)),Wb(t,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&Zb(t,e,n)&&Xb(t)&&(r={isEnd:i,removeOnClick:!0});return r}function hw(t,e){return"auto"===t?(c&&rt(e&&e.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),e.defaultBrushType):t}Vb.prototype={constructor:Vb,enableBrush:function(t){var e,n;return c&&rt(this._mounted),this._brushType&&(function(t,e,n){var i=ry(t);i[e]===n&&(i[e]=null)}(n=(e=this)._zr,Nb,e._uid),Ab(e._handlers,function(t,e){n.off(e,t)}),e._brushType=e._brushOption=null),t.brushType&&function(t,e){var n=t._zr;t._enableGlobalPan||function(t,e,n){ry(t)[e]=n}(n,Nb,t._uid),Ab(t._handlers,function(t,e){n.on(e,t)}),t._brushType=e.brushType,t._brushOption=D(A(Rb),e,!0)}(this,t),this},setPanels:function(t){if(t&&t.length){var e=this._panels={};B(t,function(t){e[t.panelId]=A(t)})}else this._panels=null;return this},mount:function(t){t=t||{},c&&(this._mounted=!0),this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({position:t.position||[0,0],rotation:t.rotation||0,scale:t.scale||[1,1]}),this._transform=e.getLocalTransform(),this},eachCover:function(t,e){Ab(this._covers,t,e)},updateCovers:function(t){c&&rt(this._mounted),t=V(t,function(t){return D(A(Rb),t,!0)});var e="\0-brush-index-",n=this._covers,i=this._covers=[],r=this,o=this._creatingCover;return new ff(n,t,function(t,e){return a(t.__brushOption,e)},a).add(s).update(s).remove(function(t){n[t]!==o&&r.group.remove(n[t])}).execute(),this;function a(t,n){return(null!=t.id?t.id:e+n)+"-"+t.brushType}function s(e,a){var s=t[e];if(null!=a&&n[a]===o)i[e]=n[a];else{var l=i[e]=null!=a?(n[a].__brushOption=s,n[a]):Gb(r,Fb(r,s));jb(r,l)}}},unmount:function(){if(!c||this._mounted)return this.enableBrush(!1),Xb(this),this._zr.remove(this.group),c&&(this._mounted=!1),this},dispose:function(){this.unmount(),this.off()}},z(Vb,Ft);var cw={mousedown:function(t){if(this._dragging)dw.call(this,t);else if(!t.target||!t.target.draggable){sw(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=Zb(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);if(function(t,e,n){if(t._brushType){var i=t._zr,r=t._covers,o=Zb(t,e,n);if(!t._dragging)for(var a=0;a5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&ww(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i&&null})}}};function ww(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}$d(function(t){!function(t){if(!t.parallel){var e=!1;B(t.series,function(t){t&&"parallel"===t.type&&(e=!0)}),e&&(t.parallel=[{}])}}(t),function(t){B(Cr(t.parallelAxis),function(e){if(X(e)){var n=e.parallelIndex||0,i=Cr(t.parallel)[n];i&&i.parallelAxisDefault&&D(e,i.parallelAxisDefault,!1)}})}(t)}),Vh.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(t,e){var n=this.getSource();return function(t,e){if(!t.encodeDefine){var n=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(n){var i=t.encodeDefine=ht();B(n.dimensions,function(t){var e=+t.replace("dim","");i.set(t,e)})}}}(n,this),Uf(n,this)},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,function(e,r){t===e&&i.push(n.getRawIndex(r))}),i},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});var Mw=.3;function Sw(t,e,n,i){for(var r,o=[],a=0;a=t.length)return i;var o=[],a=e[r++];return B(i,function(t,e){o.push({key:e,values:n(t,r)})}),a?o.sort(function(t,e){return a(t.key,e.key)}):o}(function e(n,i){if(i>=t.length)return n;for(var r=-1,o=n.length,a=t[i++],s={},l={};++r0&&(h=o.getLayout().x+a,o.setLayout({x:h},!0)),l=o.getLayout().x+o.getLayout().dx+e;if((a=l-e-i)>0)for(h=o.getLayout().x-a,o.setLayout({x:h},!0),l=h,s=u-2;s>=0;--s)(a=(o=t[s]).getLayout().x+o.getLayout().dx+e-l)>0&&(h=o.getLayout().x-a,o.setLayout({x:h},!0)),l=o.getLayout().x}else{var c;for(t.sort(function(t,e){return t.getLayout().y-e.getLayout().y}),s=0;s0&&(c=o.getLayout().y+a,o.setLayout({y:c},!0)),l=o.getLayout().y+o.getLayout().dy+e;if((a=l-e-n)>0)for(c=o.getLayout().y-a,o.setLayout({y:c},!0),l=c,s=u-2;s>=0;--s)(a=(o=t[s]).getLayout().y+o.getLayout().dy+e-l)>0&&(c=o.getLayout().y-a,o.setLayout({y:c},!0)),l=o.getLayout().y}})}function Bw(t,e,n){B(t.slice().reverse(),function(t){B(t,function(t){if(t.outEdges.length){var i=Hw(t.outEdges,Vw,n)/Hw(t.outEdges,Ww,n);if("vertical"===n){var r=t.getLayout().x+(i-Gw(t,n))*e;t.setLayout({x:r},!0)}else{var o=t.getLayout().y+(i-Gw(t,n))*e;t.setLayout({y:o},!0)}}})})}function Vw(t,e){return Gw(t.node2,e)*t.getValue()}function Fw(t,e){return Gw(t.node1,e)*t.getValue()}function Gw(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function Ww(t){return t.getValue()}function Hw(t,e,n){for(var i=0,r=t.length,o=-1;++o-1&&b.splice(w,1);var M=b.indexOf(v.node2);M>-1&&b.splice(M,1)}}if("right"===a){for(var S=[],I=b,A=0;I.length;){for(f=0;f=0&&(e.depth>T&&(T=e.depth),"vertical"===o?t.setLayout({y:e.depth},!0):t.setLayout({x:e.depth},!0))}),function(t,e,n){B(t,function(t){if("vertical"===n){var i=t.getLayout().y*e;t.setLayout({y:i},!0)}else{var r=t.getLayout().x*e;t.setLayout({x:r},!0)}})}(t,"vertical"===o?(r-n)/T:(i-n)/T,o)})(t,e,n,r,o,s,l),function(t,e,n,i,r,o,a){var s=zw().key(function(t){return"vertical"===t?function(t){return t.getLayout().y}:function(t){return t.getLayout().x}}(a)).sortKeys(function(t,e){return t-e}).entries(t).map(function(t){return t.values});(function(t,e,n,i,r,o,a){var s=[];B(e,function(t){var e=t.length,n=0,l=0;B(t,function(t){n+=t.getLayout().value}),l="vertical"===a?(r-(e-1)*o)/n:(i-(e-1)*o)/n,s.push(l)}),s.sort(function(t,e){return t-e});var l=s[0];B(e,function(t){B(t,function(t,e){var n=t.getLayout().value*l;"vertical"===a?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))})}),B(n,function(t){var e=+t.getValue()*l;t.setLayout({dy:e},!0)})})(0,s,e,n,i,r,a),Rw(s,r,n,i,a);for(var l=1;o>0;o--)Bw(s,l*=.99,a),Rw(s,r,n,i,a),jw(s,l,a),Rw(s,r,n,i,a)}(t,e,o,r,i,a,s),function(t,e){B(t,function(t){"vertical"===e?(t.outEdges.sort(function(t,e){return t.node2.getLayout().x-e.node2.getLayout().x}),t.inEdges.sort(function(t,e){return t.node1.getLayout().x-e.node1.getLayout().x})):(t.outEdges.sort(function(t,e){return t.node2.getLayout().y-e.node2.getLayout().y}),t.inEdges.sort(function(t,e){return t.node1.getLayout().y-e.node1.getLayout().y}))}),B(t,function(t){var e=0,n=0;B(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),B(t.inEdges,function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy})})}(t,s)}(l,u,n,i,o,a,0!==G(l,function(t){return 0===t.getLayout().value}).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))})}),of(function(t,e){t.eachSeriesByType("sankey",function(t){var e=t.getGraph().nodes;if(e.length){var n=1/0,i=-1/0;B(e,function(t){var e=t.getLayout().value;ei&&(i=e)}),B(e,function(e){var r=new Bx({type:"color",mappingMethod:"linear",dataExtent:[n,i],visual:t.get("color")}).mapValueToVisual(e.getLayout().value);e.setVisual("color",r);var o=e.getModel().get("itemStyle.color");null!=o&&e.setVisual("color",o)})}})});var Yw={_baseAxisDim:null,getInitialData:function(t,e){var n,i,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),i=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,h=this._baseAxisDim=l[u],c=l[1-u],d=[r,o],f=d[u].get("type"),p=d[1-u].get("type"),g=t.data;if(g&&i){var m=[];B(g,function(t,e){var n;t.value&&Y(t.value)?(n=t.value.slice(),t.value.unshift(e)):Y(t)?(n=t.slice(),t.unshift(e)):n=t,m.push(n)}),t.data=m}var v=this.defaultValueDimensions;return fv(this,{coordDimensions:[{name:h,type:mf(f),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:mf(p),dimsDef:v.slice()}],dimensionsCount:v.length+1})},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis}};z(Vh.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}}),Yw,!0);var Zw=["itemStyle"],Uw=["emphasis","itemStyle"],Xw=(Jh.extend({type:"boxplot",render:function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add(function(t){if(i.hasValue(t)){var e=qw(i.getItemLayout(t),i,t,a,!0);i.setItemGraphicEl(t,e),r.add(e)}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?Kw(s,n,i,t):n=qw(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)}).execute(),this._data=i},remove:function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(t){t&&e.remove(t)})},dispose:dt}),ya.extend({type:"boxplotBoxPath",shape:{},buildPath:function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i0?"P":"N",o=i.getVisual("borderColor"+r)||i.getVisual("color"+r),a=n.getModel(tM).getItemStyle(nM);e.useStyle(a),e.style.fill=null,e.style.stroke=o}var hM=["itemStyle","borderColor"],cM=["itemStyle","borderColor0"],dM=["itemStyle","color"],fM=["itemStyle","color0"],pM={seriesType:"candlestick",plan:qh(),performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.pipelineContext.large;if(n.setVisual({legendSymbol:"roundRect",colorP:r(1,t),colorN:r(-1,t),borderColorP:o(1,t),borderColorN:o(-1,t)}),!e.isSeriesFiltered(t))return!i&&{progress:function(t,e){for(var n;null!=(n=t.next());){var i=e.getItemModel(n),a=e.getItemLayout(n).sign;e.setItemVisual(n,{color:r(a,i),borderColor:o(a,i)})}}};function r(t,e){return e.get(t>0?dM:fM)}function o(t,e){return e.get(t>0?hM:cM)}}},gM="undefined"!=typeof Float32Array?Float32Array:Array,mM={seriesType:"candlestick",plan:qh(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=function(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=bl(tt(t.get("barMaxWidth"),r),r),a=bl(tt(t.get("barMinWidth"),1),r),s=t.get("barWidth");return null!=s?bl(s,r):Math.max(Math.min(r/2,o),a)}(t,n),r=0,o=1,a=["x","y"],s=n.mapDimension(a[r]),l=n.mapDimension(a[o],!0),u=l[0],h=l[1],c=l[2],d=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(null==s||l.length<4))return{progress:t.pipelineContext.large?function(t,n){for(var i,a,l=new gM(5*t.count),f=0,p=[],g=[];null!=(a=t.next());){var m=n.get(s,a),v=n.get(u,a),y=n.get(h,a),x=n.get(c,a),_=n.get(d,a);isNaN(m)||isNaN(x)||isNaN(_)?(l[f++]=NaN,f+=4):(l[f++]=vM(n,a,v,y,h),p[r]=m,p[o]=x,i=e.dataToPoint(p,null,g),l[f++]=i?i[0]:NaN,l[f++]=i?i[1]:NaN,p[o]=_,i=e.dataToPoint(p,null,g),l[f++]=i?i[1]:NaN)}n.setLayout("largePoints",l)}:function(t,n){for(var a;null!=(a=t.next());){var l=n.get(s,a),f=n.get(u,a),p=n.get(h,a),g=n.get(c,a),m=n.get(d,a),v=Math.min(f,p),y=Math.max(f,p),x=S(v,l),_=S(y,l),b=S(g,l),w=S(m,l),M=[];I(M,_,0),I(M,x,1),M.push(D(w),D(_),D(b),D(x)),n.setItemLayout(a,{sign:vM(n,a,f,p,h),initBaseline:f>p?_[o]:x[o],ends:M,brushRect:A(g,m,l)})}function S(t,n){var i=[];return i[r]=n,i[o]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function I(t,e,n){var o=e.slice(),a=e.slice();o[r]=As(o[r]+i/2,1,!1),a[r]=As(a[r]-i/2,1,!0),n?t.push(o,a):t.push(a,o)}function A(t,e,n){var a=S(t,n),s=S(e,n);return a[r]-=i/2,s[r]-=i/2,{x:a[0],y:a[1],width:o?i:s[0]-a[0],height:o?s[1]-a[1]:i}}function D(t){return t[r]=As(t[r],1),t}}}}};function vM(t,e,n,i,r){return n>i?-1:n0?t.get(r,e-1)<=i?1:-1:1}function yM(t,e){t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?e.color:null,fill:"fill"===e.brushType?e.color:null}})})}function xM(t,e){On.call(this);var n=new Mg(t,e),i=new On;this.add(n),this.add(i),i.beforeUpdate=function(){this.attr(n.getScale())},this.updateData(t,e)}$d(function(t){t&&Y(t.series)&&B(t.series,function(t){X(t)&&"k"===t.type&&(t.type="candlestick")})}),of(pM),rf(mM),Vh.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(t,e){return Uf(this.getSource(),this)},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});var _M=xM.prototype;_M.stopEffectAnimation=function(){this.childAt(1).removeAll()},_M.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=this.childAt(1),r=0;r<3;r++){var o=Jp(e,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var a=-r/3*t.period+t.effectOffset;o.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(a).start(),o.animateStyle(!0).when(t.period,{opacity:0}).delay(a).start(),i.add(o)}yM(i,t)},_M.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale"],r=0;r0&&n[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(n)+". Lines must have 2d coords array in data item.");return n},getLineCoordsCount:function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},getLineCoords:function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;rn&&c)throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},getInitialData:function(t,e){if(c&&!Uu.get(t.coordinateSystem))throw new Error("Unkown coordinate system "+t.coordinateSystem);var n=new Tf(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[r]:o:void 0}),n},formatTooltip:function(t){var e=this.getData().getItemModel(t),n=e.get("name");if(n)return n;var i=e.get("fromName"),r=e.get("toName"),o=[];return null!=i&&o.push(i),null!=r&&o.push(r),jl(o.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}});function IM(t,e,n){On.call(this),this.add(this.createLine(t,e,n)),this._updateEffectSymbol(t,e)}var AM=IM.prototype;function DM(t,e,n){On.call(this),this._createPolyline(t,e,n)}AM.createLine=function(t,e,n){return new k_(t,e,n)},AM._updateEffectSymbol=function(t,e){var n=t.getItemModel(e).getModel("effect"),i=n.get("symbolSize"),r=n.get("symbol");Y(i)||(i=[i,i]);var o=n.get("color")||t.getItemVisual(e,"color"),a=this.childAt(1);this._symbolType!==r&&(this.remove(a),(a=Jp(r,-.5,-.5,1,1,o)).z2=100,a.culling=!0,this.add(a)),a&&(a.setStyle("shadowColor",o),a.setStyle(n.getItemStyle(["color"])),a.attr("scale",i),a.setColor(o),a.attr("scale",i),this._symbolType=r,this._updateEffectAnimation(t,n,e))},AM._updateEffectAnimation=function(t,e,n){var i=this.childAt(1);if(i){var r=this,o=t.getItemLayout(n),a=1e3*e.get("period"),s=e.get("loop"),l=e.get("constantSpeed"),u=$(e.get("delay"),function(e){return e/t.count()*a/3}),h="function"==typeof u;if(i.ignore=!0,this.updateAnimationPoints(i,o),l>0&&(a=this.getLineLength(i)/l*1e3),a!==this._period||s!==this._loop){i.stopAnimation();var c=u;h&&(c=u(n)),i.__t>0&&(c=-a*i.__t),i.__t=0;var d=i.animate("",s).when(a,{__t:1}).delay(c).during(function(){r.updateSymbolPosition(i)});s||d.done(function(){r.remove(i)}),d.start()}this._period=a,this._loop=s}},AM.getLineLength=function(t){return Ct(t.__p1,t.__cp1)+Ct(t.__cp1,t.__p2)},AM.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},AM.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},AM.updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t,o=t.position,a=_o,s=bo;o[0]=a(e[0],i[0],n[0],r),o[1]=a(e[1],i[1],n[1],r);var l=s(e[0],i[0],n[0],r),u=s(e[1],i[1],n[1],r);t.rotation=-Math.atan2(u,l)-Math.PI/2,t.ignore=!1},AM.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},E(IM,On);var TM=DM.prototype;function CM(t,e,n){IM.call(this,t,e,n),this._lastFrame=0,this._lastFramePercent=0}TM._createPolyline=function(t,e,n){var i=t.getItemLayout(e),r=new Ua({shape:{points:i}});this.add(r),this._updateCommonStl(t,e,n)},TM.updateData=function(t,e,n){var i=t.hostModel;$s(this.childAt(0),{shape:{points:t.getItemLayout(e)}},i,e),this._updateCommonStl(t,e,n)},TM._updateCommonStl=function(t,e,n){var i=this.childAt(0),r=t.getItemModel(e),o=t.getItemVisual(e,"color"),a=n&&n.lineStyle,s=n&&n.hoverLineStyle;n&&!t.hasItemOption||(a=r.getModel("lineStyle").getLineStyle(),s=r.getModel("emphasis.lineStyle").getLineStyle()),i.useStyle(L({strokeNoScale:!0,fill:"none",stroke:o},a)),i.hoverStyle=s,Fs(this)},TM.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},E(DM,On);var LM=CM.prototype;LM.createLine=function(t,e,n){return new DM(t,e,n)},LM.updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,r=1;r=0&&!(i[a]<=e);a--);a=Math.min(a,r-2)}else{for(var a=o;ae);a++);a=Math.min(a-1,r-2)}Pt(t.position,n[a],n[a+1],(e-i[a])/(i[a+1]-i[a]));var s=n[a+1][0]-n[a][0],l=n[a+1][1]-n[a][1];t.rotation=-Math.atan2(l,s)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=e,t.ignore=!1}},E(CM,IM);var kM=_s({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var n=e.segs,i=e.curveness;if(e.polyline)for(var r=0;r0){t.moveTo(n[r++],n[r++]);for(var a=1;a0){var c=(s+u)/2-(l-h)*i,d=(l+h)/2-(u-s)*i;t.quadraticCurveTo(c,d,u,h)}else t.lineTo(u,h)}},findDataIndex:function(t,e){var n=this.shape,i=n.segs,r=n.curveness;if(n.polyline)for(var o=0,a=0;a0)for(var l=i[a++],u=i[a++],h=1;h0){if(ta(l,u,(l+c)/2-(u-d)*r,(u+d)/2-(c-l)*r,c,d))return o}else if(Jo(l,u,c,d))return o;o++}return-1}});function PM(){this.group=new On}var OM=PM.prototype;OM.isPersistent=function(){return!this._incremental},OM.updateData=function(t){this.group.removeAll();var e=new kM({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},OM.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new hs({silent:!0})),this.group.add(this._incremental)):this._incremental=null},OM.incrementalUpdate=function(t,e){var n=new kM;n.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(n,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=t.start,this.group.add(n))},OM.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},OM._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get("lineStyle.curveness")}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("color");r&&t.setStyle("stroke",r),t.setStyle("fill"),n||(t.seriesIndex=i.seriesIndex,t.on("mousemove",function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>0&&(t.dataIndex=n+t.__startIndex)}))},OM._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var NM={seriesType:"lines",plan:qh(),reset:function(t){var e=t.coordinateSystem,n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s,l=r.end-r.start;if(n){for(var u=0,h=r.start;h0){var I=o(v)?s:l;v>0&&(v=v*M+w),x[_++]=I[S],x[_++]=I[S+1],x[_++]=I[S+2],x[_++]=I[S+3]*v*256}else _+=4}return c.putImageData(y,0,0),h},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=P()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},_getGradient:function(t,e,n){for(var i=this._gradientPixels,r=i[n]||(i[n]=new Uint8ClampedArray(1024)),o=[0,0,0,0],a=0,s=0;s<256;s++)e[n](s/255,!0,o),r[a++]=o[0],r[a++]=o[1],r[a++]=o[2],r[a++]=o[3];return r}},cf({type:"heatmap",render:function(t,e,n){var i;if(e.eachComponent("visualMap",function(e){e.eachTargetSeries(function(n){n===t&&(i=e)})}),c&&!i)throw new Error("Heatmap must use with visualMap");this.group.removeAll(),this._incrementalDisplayable=null;var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):function(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}(r)&&this._renderOnGeo(r,t,i,n)},incrementalPrepareRender:function(t,e,n){this.group.removeAll()},incrementalRender:function(t,e,n,i){e.coordinateSystem&&this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,e,n,i,r){var o,a,s=t.coordinateSystem;if("cartesian2d"===s.type){var l=s.getAxis("x"),u=s.getAxis("y");if(c){if("category"!==l.type||"category"!==u.type)throw new Error("Heatmap on cartesian must have two category axes");if(!l.onBand||!u.onBand)throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}o=l.getBandWidth(),a=u.getBandWidth()}for(var h=this.group,d=t.getData(),f=t.getModel("itemStyle").getItemStyle(["color"]),p=t.getModel("emphasis.itemStyle").getItemStyle(),g=t.getModel("label"),m=t.getModel("emphasis.label"),v=s.type,y="cartesian2d"===v?[d.mapDimension("x"),d.mapDimension("y"),d.mapDimension("value")]:[d.mapDimension("time"),d.mapDimension("value")],x=n;x=e[0]&&t<=e[1]}}(y,n.option.range):function(t,e,n){var i=t[1]-t[0],r=(e=V(e,function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}})).length,o=0;return function(t){for(var i=o;i=0;i--){var a;if((a=e[i].interval)[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i0?1:o<0?-1:0}(n,o,r,i,c),function(t,e,n,i,r,o,a,s,l,u){var h=l.valueDim,c=l.categoryDim,d=Math.abs(n[c.wh]),f=t.getItemVisual(e,"symbolSize");Y(f)?f=f.slice():(null==f&&(f="100%"),f=[f,f]),f[c.index]=bl(f[c.index],d),f[h.index]=bl(f[h.index],i?d:Math.abs(o)),u.symbolSize=f,(u.symbolScale=[f[0]/s,f[1]/s])[h.index]*=(l.isHorizontal?-1:1)*a}(t,e,r,o,0,c.boundingLength,c.pxSign,u,i,c),function(t,e,n,i,r){var o=t.get(FM)||0;o&&(WM.attr({scale:e.slice(),rotation:n}),WM.updateTransform(),o/=WM.getLineScale(),o*=e[i.valueDim.index]),r.valueLineWidth=o}(n,c.symbolScale,l,i,c);var d=c.symbolSize,f=n.get("symbolOffset");return Y(f)&&(f=[bl(f[0],d[0]),bl(f[1],d[1])]),function(t,e,n,i,r,o,a,s,l,u,h,c){var d=h.categoryDim,f=h.valueDim,p=c.pxSign,g=Math.max(e[f.index]+s,0),m=g;if(i){var v=Math.abs(l),y=$(t.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1)),y=bl(y,e[f.index]);var _=Math.max(g+2*y,0),b=x?0:2*y,w=Rl(i),M=w?i:aS((v+b)/_);_=g+2*(y=(v-M*g)/2/(x?M:M-1)),b=x?0:2*y,w||"fixed"===i||(M=u?aS((Math.abs(u)+b)/_):0),m=M*_-b,c.repeatTimes=M,c.symbolMargin=y}var S=p*(m/2),I=c.pathPosition=[];I[d.index]=n[d.wh]/2,I[f.index]="start"===a?S:"end"===a?l-S:l/2,o&&(I[0]+=o[0],I[1]+=o[1]);var A=c.bundlePosition=[];A[d.index]=n[d.xy],A[f.index]=n[f.xy];var D=c.barRectShape=C({},n);D[f.wh]=p*Math.max(Math.abs(n[f.wh]),Math.abs(I[f.index]+S)),D[d.wh]=n[d.wh];var T=c.clipShape={};T[d.xy]=-n[d.xy],T[d.wh]=h.ecSize[d.wh],T[f.xy]=0,T[f.wh]=n[f.wh]}(n,d,r,o,0,f,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,i,c),c}function jM(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function YM(t){var e=t.symbolPatternSize,n=Jp(t.symbolType,-e/2,-e/2,e,e,t.color);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function ZM(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,h=0,c=o[e.valueDim.index]+a+2*n.symbolMargin;for(iS(t,function(t){t.__pictorialAnimationIndex=h,t.__pictorialRepeatTimes=u,h0:i<0)&&(r=u-1-t),e[l.index]=c*(r-u/2+.5)+s[l.index],{position:e,scale:n.symbolScale.slice(),rotation:n.rotation}}function g(){iS(t,function(t){t.trigger("emphasis")})}function m(){iS(t,function(t){t.trigger("normal")})}}function UM(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?rS(o,null,{position:n.pathPosition.slice(),scale:n.symbolScale.slice(),rotation:n.rotation},n,i):(o=t.__pictorialMainPath=YM(n),r.add(o),rS(o,{position:n.pathPosition.slice(),scale:[0,0],rotation:n.rotation},{scale:n.symbolScale.slice()},n,i),o.on("mouseover",function(){this.trigger("emphasis")}).on("mouseout",function(){this.trigger("normal")})),$M(o,n)}function XM(t,e,n){var i=C({},e.barRectShape),r=t.__pictorialBarRect;r?rS(r,null,{shape:i},e,n):(r=t.__pictorialBarRect=new $a({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(r))}function qM(t,e,n,i){if(n.symbolClip){var r=t.__pictorialClipPath,o=C({},n.clipShape),a=e.valueDim,s=n.animationModel,l=n.dataIndex;if(r)$s(r,{shape:o},s,l);else{o[a.wh]=0,r=new $a({shape:o}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var u={};u[a.wh]=n.clipShape[a.wh],sl[i?"updateProps":"initProps"](r,{shape:u},s,l)}}}function KM(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=QM,n.isAnimationEnabled=JM,n}function QM(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function JM(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function $M(t,e){t.off("emphasis").off("normal");var n=e.symbolScale.slice();e.hoverAnimation&&t.on("emphasis",function(){this.animateTo({scale:[1.1*n[0],1.1*n[1]]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:n.slice()},400,"elasticOut")})}function tS(t,e,n,i){var r=new On,o=new On;return r.add(o),r.__pictorialBundle=o,o.attr("position",n.bundlePosition.slice()),n.symbolRepeat?ZM(r,e,n):UM(r,0,n),XM(r,n,i),qM(r,e,n,i),r.__pictorialShapeStr=nS(t,n),r.__pictorialSymbolMeta=n,r}function eS(t,e,n,i){var r=i.__pictorialBarRect;r&&(r.style.text=null);var o=[];iS(i,function(t){o.push(t)}),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),B(o,function(t){$s(t,{scale:[0,0]},n,e,function(){i.parent&&i.parent.remove(i)})}),t.setItemGraphicEl(e,null)}function nS(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function iS(t,e,n){B(t.__pictorialBundle.children(),function(i){i!==t.__pictorialBarRect&&e.call(n,i)})}function rS(t,e,n,i,r,o){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&sl[r?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,o)}function oS(t,e,n){var i=n.color,r=n.dataIndex,o=n.itemModel,a=o.getModel("itemStyle").getItemStyle(["color"]),s=o.getModel("emphasis.itemStyle").getItemStyle(),l=o.getShallow("cursor");iS(t,function(t){t.setColor(i),t.setStyle(L({fill:i,opacity:n.opacity},a)),Fs(t,s),l&&(t.cursor=l),t.z2=n.z2});var u={},h=(e.valueDim.posDesc[+(n.boundingLength>0)],t.__pictorialBarRect);ev(h.style,u,o,i,e.seriesModel,r),Fs(h,u)}function aS(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}cf({type:"pictorialBar",render:function(t,e,n){var i=this.group,r=t.getData(),o=this._data,a=t.coordinateSystem,s=!!a.getBaseAxis().isHorizontal(),l=a.grid.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:GM[+s],categoryDim:GM[1-s]};return r.diff(o).add(function(t){if(r.hasValue(t)){var e=KM(r,t),n=HM(r,t,e,u),o=tS(r,u,n);r.setItemGraphicEl(t,o),i.add(o),oS(o,u,n)}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var a=KM(r,t),s=HM(r,t,a,u),l=nS(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?function(t,e,n){var i=n.animationModel,r=n.dataIndex;$s(t.__pictorialBundle,{position:n.bundlePosition.slice()},i,r),n.symbolRepeat?ZM(t,e,n,!0):UM(t,0,n,!0),XM(t,n,!0),qM(t,e,n,!0)}(n,u,s):n=tS(r,u,s,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),oS(n,u,s)}else i.remove(n)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&eS(o,t,e.__pictorialSymbolMeta.animationModel,e)}).execute(),this._data=r,this.group},dispose:dt,remove:function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(e){eS(i,e.dataIndex,t,e)}):n.removeAll()}}),rf(j(gp,"pictorialBar")),of(am("pictorialBar","roundRect"));var sS=function(t,e,n,i,r){vg.call(this,t,e,n),this.type=i||"value",this.position=r||"bottom",this.orient=null};function lS(t,e,n){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,n),this.model=t}function uS(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]],r.rotation=Math.PI/2*{horizontal:0,vertical:1}[a],r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],t.get("axisTick.inside")&&(r.tickDirection=-r.tickDirection),$(e.labelInside,t.get("axisLabel.inside"))&&(r.labelDirection=-r.labelDirection);var h=e.rotate;return null==h&&(h=t.get("axisLabel.rotate")),r.labelRotation="top"===o?-h:h,r.z2=1,r}sS.prototype={constructor:sS,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},E(sS,vg),lS.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:lS,_init:function(t,e,n){var i=this.dimension,r=new sS(i,Rp(t),[0,0],t.get("type"),t.get("position")),o="category"===r.type;r.onBand=o&&t.get("boundaryGap"),r.inverse=t.get("inverse"),r.orient=t.get("orient"),t.axis=r,r.model=t,r.coordinateSystem=this,this._axis=r},update:function(t,e){t.eachSeries(function(t){if(t.coordinateSystem===this){var e=t.getData();B(e.mapDimension(this.dimension,!0),function(t){this._axis.scale.unionExtentFromData(e,t)},this),zp(this._axis.scale,this._axis.model)}},this)},resize:function(t,e){this._rect=su({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],r=e.reverse?1:0;e.setExtent(i[r],i[1-r]),this._updateAxisTransform(e,n?t.x:t.y)},_updateAxisTransform:function(t,e){var n=t.getExtent(),i=n[0]+n[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return i-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i}},Uu.register("single",{create:function(t,e){var n=[];return t.eachComponent("singleAxis",function(i,r){var o=new lS(i,t,e);o.name="single_"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(e){if("singleAxis"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];e.coordinateSystem=n&&n.coordinateSystem}}),n},dimensions:lS.prototype.dimensions});var hS=["axisLine","axisTickLabel","axisName"],cS=Zm.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,e,n,i){var r=this.group;r.removeAll();var o=uS(t),a=new Lm(t,o);B(hS,a.add,a),r.add(a.getGroup()),t.get("splitLine.show")&&this._splitLine(t),cS.superCall(this,"render",t,e,n,i)},_splitLine:function(t){var e=t.axis;if(!e.scale.isBlank()){var n=t.getModel("splitLine"),i=n.getModel("lineStyle"),r=i.get("width"),o=i.get("color");o=o instanceof Array?o:[o];for(var a=t.coordinateSystem.getRect(),s=e.isHorizontal(),l=[],u=0,h=e.getTicksCoords({tickModel:n}),c=[],d=[],f=0;f=0&&s<0)&&(a=p,s=f,r=u,o.length=0),pS(h,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&C(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s,r),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function yS(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function xS(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=Ym(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get("label.precision"),formatter:s.get("label.formatter")},seriesDataIndices:r.slice()})}}function _S(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function bS(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}lf({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}});var wS=Br(),MS=B;function SS(t,e,n){if(!p.node){var i=e.getZr();wS(i).records||(wS(i).records={}),function(t,e){function n(n,i){t.on(n,function(n){var r=function(t){var e={showTip:[],hideTip:[]};return{dispatchAction:function n(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))},pendings:e}}(e);MS(wS(t).records,function(t){t&&i(t,n,r.dispatchAction)}),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)})}wS(t).initialized||(wS(t).initialized=!0,n("click",j(AS,"click")),n("mousemove",j(AS,"mousemove")),n("globalout",IS))}(i,e),(wS(i).records[t]||(wS(i).records[t]={})).handler=n}}function IS(t,e,n){t.handler("leave",null,n)}function AS(t,e,n,i){e.handler(t,n,i)}function DS(t,e){if(!p.node){var n=e.getZr();(wS(n).records||{})[t]&&(wS(n).records[t]=null)}}var TS=uf({type:"axisPointer",render:function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";SS("axisPointer",n,function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},remove:function(t,e){DS(e.getZr(),"axisPointer"),TS.superApply(this._model,"remove",arguments)},dispose:function(t,e){DS("axisPointer",e),TS.superApply(this._model,"dispose",arguments)}}),CS=Br(),LS=A,kS=H;function PS(){}function OS(t,e,n,i){(function t(e,n){if(X(e)&&X(n)){var i=!0;return B(n,function(n,r){i=i&&t(e[r],n)}),!!i}return e===n})(CS(n).lastProp,i)||(CS(n).lastProp=i,e?$s(n,i,t):(n.stopAnimation(),n.attr(i)))}function NS(t,e){t[e.get("label.show")?"show":"hide"]()}function ES(t){return{position:t.position.slice(),rotation:t.rotation||0}}function zS(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}function RS(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}function BS(t,e,n,i,r){var o=VS(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get("label.precision"),formatter:n.get("label.formatter")}),a=n.getModel("label"),s=Gl(a.get("padding")||0),l=a.getFont(),u=yi(o,l),h=r.position,c=u.width+s[1]+s[3],d=u.height+s[0]+s[2],f=r.align;"right"===f&&(h[0]-=c),"center"===f&&(h[0]-=c/2);var p=r.verticalAlign;"bottom"===p&&(h[1]-=d),"middle"===p&&(h[1]-=d/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(h,c,d,i);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:c,height:d,r:a.get("borderRadius")},position:h.slice(),style:{text:o,textFont:l,textFill:a.getTextColor(),textPosition:"inside",fill:g,stroke:a.get("borderColor")||"transparent",lineWidth:a.get("borderWidth")||0,shadowBlur:a.get("shadowBlur"),shadowColor:a.get("shadowColor"),shadowOffsetX:a.get("shadowOffsetX"),shadowOffsetY:a.get("shadowOffsetY")},z2:10}}function VS(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel(t,{precision:r.precision}),a=r.formatter;if(a){var s={value:Vp(e,t),seriesData:[]};B(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)}),U(a)?o=a.replace("{value}",o):Z(a)&&(o=a(s))}return o}function FS(t,e,n){var i=se();return de(i,i,n.rotation),ce(i,i,n.position),nl([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function GS(t,e,n,i,r,o){var a=Lm.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get("label.margin"),BS(e,i,r,o,{position:FS(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function WS(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function HS(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function jS(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}PS.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var c=j(OS,e,h);this.updatePointerEl(a,l,c,e),this.updateLabelEl(a,l,c,e)}else a=this._group=new On,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);zS(a,e,!0),this._renderHandle(r)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=Hm(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},makeElOption:function(t,e,n,i,r){},createPointerEl:function(t,e,n,i){var r=e.pointer;if(r){var o=CS(t).pointerEl=new sl[r.type](LS(e.pointer));t.add(o)}},createLabelEl:function(t,e,n,i){if(e.label){var r=CS(t).labelEl=new $a(LS(e.label));t.add(r),NS(r,i)}},updatePointerEl:function(t,e,n){var i=CS(t).pointerEl;i&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,n,i){var r=CS(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{shape:e.label.shape,position:e.label.position}),NS(r,i))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=al(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){qt(t.event)},onmousedown:kS(this._onHandleDragMove,this,0,0),drift:kS(this._onHandleDragMove,this),ondragend:kS(this._onHandleDragEnd,this)}),i.add(r)),zS(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");Y(s)||(s=[s,s]),r.attr("scale",[s[0]/2,s[1]/2]),uc(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},_moveHandleToValue:function(t,e){OS(this._axisPointerModel,!e&&this._moveAnimation,this._handle,ES(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(ES(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(ES(i)),CS(n).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},_onHandleDragEnd:function(t){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}},PS.prototype.constructor=PS,Ur(PS);var YS=PS.extend({makeElOption:function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=ZS(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var h=RS(i),c=US[s](o,u,l);c.style=h,t.graphicKey=c.type,t.pointer=c}GS(e,t,Km(a.model,n),n,i,r)},getHandleTransform:function(t,e,n){var i=Km(e.axis.grid.model,e,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:FS(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=ZS(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=t.position;u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var h=(s[1]+s[0])/2,c=[h,h];return c[l]=u[l],{position:u,rotation:t.rotation,cursorPoint:c,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}}});function ZS(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var US={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:WS([e,n[0]],[e,n[1]],XS(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:HS([e-i/2,n[0]],[i,r],XS(t))}}};function XS(t){return"x"===t.dim?0:1}Zm.registerAxisPointerClass("CartesianAxisPointer",YS),$d(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Y(e)&&(t.axisPointer.link=[e])}}),tf(dd.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Fm(t,e)}),ef({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},function(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||H(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){bS(r)&&(r=fS({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=bS(r),u=o.axesInfo,h=s.axesInfo,c="leave"===i||bS(r),d={},f={},p={list:[],map:{}},g={showPointer:gS(yS,f),showTooltip:gS(xS,p)};pS(s.coordSysMap,function(t,e){var n=l||t.containPoint(r);pS(s.coordSysAxesInfo[e],function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(u,t);if(!c&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&vS(t,a,g,!1,d)}})});var m={};return pS(h,function(t,e){var n=t.linkGroup;n&&!f[e]&&pS(n.axesInfo,function(e,i){var r=f[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,_S(e),_S(t)))),m[t.key]=o}})}),pS(m,function(t,e){vS(h[e],t,g,!0,d)}),function(t,e,n){var i=n.axesInfo=[];pS(e,function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}(f,h,d),function(t,e,n,i){if(!bS(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}(p,r,t,a),function(t,e,n){var i=n.getZr(),r=mS(i).axisPointerLastHighlights||{},o=mS(i).axisPointerLastHighlights={};pS(t,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&pS(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;o[e]=t})});var a=[],s=[];B(r,function(t,e){!o[e]&&s.push(t)}),B(o,function(t,e){!r[e]&&a.push(t)}),s.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,batch:s}),a.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,batch:a})}(h,0,n),d}});var qS=["x","y"],KS=["width","height"],QS=PS.extend({makeElOption:function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=tI(a,1-$S(o)),l=a.dataToPoint(e)[0],u=i.get("type");if(u&&"none"!==u){var h=RS(i),c=JS[u](o,l,s);c.style=h,t.graphicKey=c.type,t.pointer=c}GS(e,t,uS(n),n,i,r)},getHandleTransform:function(t,e,n){var i=uS(e,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:FS(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,a=$S(r),s=tI(o,a),l=t.position;l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=tI(o,1-a),h=(u[1]+u[0])/2,c=[h,h];return c[a]=l[a],{position:l,rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}}}),JS={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:WS([e,n[0]],[e,n[1]],$S(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:HS([e-i/2,n[0]],[i,r],$S(t))}}};function $S(t){return t.isHorizontal()?0:1}function tI(t,e){var n=t.getRect();return[n[qS[e]],n[qS[e]]+n[KS[e]]]}Zm.registerAxisPointerClass("SingleAxisPointer",QS),uf({type:"single"});var eI=Vh.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){eI.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},fixData:function(t){for(var e=t.length,n=V(zw().key(function(t){return t[2]}).entries(t),function(t){return{name:t.key,dataList:t.values}}),i=n.length,r=-1,o=-1,a=0;ar&&(r=s,o=a)}for(var l=0;lo&&(o=u),i.push(u)}for(var h=0;ho&&(o=d)}return a.y0=r,a.max=o,a}(l),h=u.y0,c=n/u.max,d=o.length,f=o[0].indices.length,p=0;p1;)e=e.parentNode;return N(t.getAncestors()[0].children,e)}(t)%a]}(e,0,r);!function(t,e,n){e.getData().setItemVisual(t.dataIndex,"color",n)}(e,i,h);var c,d=a.getModel("itemStyle").getItemStyle();c=L({lineJoin:"bevel",fill:(c="normal"===n?d:D(a.getModel(n+".itemStyle").getItemStyle(),d)).fill||h},c),t?(o.setShape(u),o.shape.r=s.r0,$s(o,{shape:{r:s.r}},i,e.dataIndex),o.useStyle(c)):"object"===l(c.fill)&&c.fill.type||"object"===l(o.style.fill)&&o.style.fill.type?($s(o,{shape:u},i),o.useStyle(c)):$s(o,{shape:u,style:c},i),this._updateLabel(i,h,n);var f=a.getShallow("cursor");if(f&&o.attr("cursor",f),t){var p=i.getShallow("highlightPolicy");this._initEvents(o,e,i,p)}this._seriesModel=i||this._seriesModel,this._ecModel=r||this._ecModel},sI.onEmphasis=function(t){var e=this;this.node.hostTree.root.eachNode(function(n){var i,r,o;n.piece&&(e.node===n?n.piece.updateData(!1,n,"emphasis"):(i=n,r=e.node,(o=t)!==iI.NONE&&(o===iI.SELF?i===r:o===iI.ANCESTOR?i===r||i.isAncestorOf(r):i===r||i.isDescendantOf(r))?n.piece.childAt(0).trigger("highlight"):t!==iI.NONE&&n.piece.childAt(0).trigger("downplay")))})},sI.onNormal=function(){this.node.hostTree.root.eachNode(function(t){t.piece&&t.piece.updateData(!1,t,"normal")})},sI.onHighlight=function(){this.updateData(!1,this.node,"highlight")},sI.onDownplay=function(){this.updateData(!1,this.node,"downplay")},sI._updateLabel=function(t,e,n){var i=this.node.getModel(),r=i.getModel("label"),o="normal"===n||"emphasis"===n?r:i.getModel(n+".label"),a=i.getModel("emphasis.label"),s=$(t.getFormattedLabel(this.node.dataIndex,"normal",null,null,"label"),this.node.name);!1===M("show")&&(s="");var l=this.node.getLayout(),u=o.get("minAngle");null==u&&(u=r.get("minAngle")),u=u/180*Math.PI;var h=l.endAngle-l.startAngle;null!=u&&Math.abs(h)Math.PI/2?"right":"left"):y&&"center"!==y?"left"===y?(d=l.r0+v,f>Math.PI/2&&(y="right")):"right"===y&&(d=l.r-v,f>Math.PI/2&&(y="left")):(d=(l.r+l.r0)/2,y="center"),c.attr("style",{text:s,textAlign:y,textVerticalAlign:M("verticalAlign")||"middle",opacity:M("opacity")});var x=d*p+l.cx,_=d*g+l.cy;c.attr("position",[x,_]);var b=M("rotate"),w=0;function M(t){var e=o.get(t);return null==e?r.get(t):e}"radial"===b?(w=-f)<-Math.PI/2&&(w+=Math.PI):"tangential"===b?(w=Math.PI/2-f)>Math.PI/2?w-=Math.PI:w<-Math.PI/2&&(w+=Math.PI):"number"==typeof b&&(w=b*Math.PI/180),c.attr("rotation",w)},sI._initEvents=function(t,e,n,i){t.off("mouseover").off("mouseout").off("emphasis").off("normal");var r=this,o=function(){r.onEmphasis(i)},a=function(){r.onNormal()};n.isAnimationEnabled()&&t.on("mouseover",o).on("mouseout",a).on("emphasis",o).on("normal",a).on("downplay",function(){r.onDownplay()}).on("highlight",function(){r.onHighlight()})},E(aI,On),Jh.extend({type:"sunburst",init:function(){},render:function(t,e,n,i){var r=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),h=[];s.eachNode(function(t){h.push(t)});var c=this._oldChildren||[];if(function(n,i){function r(t){return t.getId()}function s(r,s){!function(n,i){if(u||!n||n.getValue()||(n=null),n!==a&&i!==a)if(i&&i.piece)n?(i.piece.updateData(!1,n,"normal",t,e),o.setItemGraphicEl(n.dataIndex,i.piece)):(s=i)&&s.piece&&(l.remove(s.piece),s.piece=null);else if(n){var r=new aI(n,t,e);l.add(r),o.setItemGraphicEl(n.dataIndex,r)}var s}(null==r?null:n[r],null==s?null:i[s])}0===n.length&&0===i.length||new ff(i,n,r,r).add(s).update(s).remove(j(s,null)).execute()}(h,c),function(n,i){if(i.depth>0){r.virtualPiece?r.virtualPiece.updateData(!1,n,"normal",t,e):(r.virtualPiece=new aI(n,t,e),l.add(r.virtualPiece)),i.piece._onclickEvent&&i.piece.off("click",i.piece._onclickEvent);var o=function(t){r._rootToNode(i.parentNode)};i.piece._onclickEvent=o,r.virtualPiece.on("click",o)}else r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}(a,s),i&&i.highlight&&i.highlight.piece){var d=t.getShallow("highlightPolicy");i.highlight.piece.onEmphasis(d)}else if(i&&i.unhighlight){var f=this.virtualPiece;!f&&a.children.length&&(f=a.children[0].piece),f&&f.onNormal()}this._initEvents(),this._oldChildren=h},dispose:function(){},_initEvents:function(){var t=this,e=function(e){var n=!1;t.seriesModel.getViewRoot().eachNode(function(i){if(!n&&i.piece&&i.piece.childAt(0)===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";window.open(a,s)}}n=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",e),this.group._onclickEvent=e},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:"sunburstRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}}});var lI="sunburstRootToNode";ef({type:lI,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},function(e,n){var i=lx(t,[lI],e);if(i){var r=e.getViewRoot();r&&(t.direction=hx(r,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}})});var uI="sunburstHighlight";ef({type:uI,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},function(e,n){var i=lx(t,[uI],e);i&&(t.highlight=i.node)})}),ef({type:"sunburstUnhighlight",update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},function(e,n){t.unhighlight=!0})});var hI=Math.PI/180;function cI(t,e){return e=e||[0,0],V(["x","y"],function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))},this)}function dI(t,e){return e=e||[0,0],V([0,1],function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function fI(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function pI(t,e){return V(["Radius","Angle"],function(n,i){var r=this["get"+n+"Axis"](),o=e[i],a=t[i]/2,s="dataTo"+n,l="category"===r.type?r.getBandWidth():Math.abs(r[s](o-a)-r[s](o+a));return"Angle"===n&&(l=l*Math.PI/180),l},this)}of(j(bv,"sunburst")),rf(j(function(t,e,n,i){e.eachSeriesByType(t,function(t){var e=t.get("center"),i=t.get("radius");Y(i)||(i=[0,i]),Y(e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=bl(e[0],r),l=bl(e[1],o),u=bl(i[0],a/2),h=bl(i[1],a/2),c=-t.get("startAngle")*hI,d=t.get("minAngle")*hI,f=t.getData().tree.root,p=t.getViewRoot(),g=p.depth,m=t.get("sort");null!=m&&function t(e,n){var i=e.children||[];e.children=function(t,e){if("function"==typeof e)return t.sort(e);var n="asc"===e;return t.sort(function(t,e){var i=(t.getValue()-e.getValue())*(n?1:-1);return 0===i?(t.dataIndex-e.dataIndex)*(n?-1:1):i})}(i,n),i.length&&B(e.children,function(e){t(e,n)})}(p,m);var v=0;B(p.children,function(t){!isNaN(t.getValue())&&v++});var y=p.getValue(),x=Math.PI/(y||v)*2,_=p.depth>0,b=p.height-(_?-1:1),w=(h-u)/(b||1),M=t.get("clockwise"),S=t.get("stillShowZeroSum"),I=M?1:-1;if(_){var A=u,D=u+w,T=2*Math.PI;f.setLayout({angle:T,startAngle:c,endAngle:c+T,clockwise:M,cx:s,cy:l,r0:A,r:D})}!function t(e,n){if(e){var i=n;if(e!==f){var r=e.getValue(),o=0===y&&S?x:r*x;oi[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:H(function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a}),size:H(pI,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}};function bI(t,e,n,i,r){null==n[t]||r||(e[t]=n[t],n[t]=i[t])}function wI(t,e,n,i){var r=t.get("renderItem"),o=t.coordinateSystem,a={};o&&(c&&(rt(r,"series.render is required."),rt(o.prepareCustoms||_I[o.type],"This coordSys does not support custom series.")),a=o.prepareCustoms?o.prepareCustoms():_I[o.type](o));var s,l,u,h,d,f=L({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:function(t,n){return null==n&&(n=s),e.get(e.getDimension(t||0),n)},style:function(n,i){null==i&&(i=s),m(i);var r=l.getModel(gI).getItemStyle();null!=d&&(r.fill=d);var o=e.getItemVisual(i,"opacity");return null!=o&&(r.opacity=o),Ys(r,u,null,{autoColor:d,isRectText:!0}),r.text=u.getShallow("show")?tt(t.getFormattedLabel(i,"normal"),wg(e,i)):null,n&&C(r,n),r},styleEmphasis:function(n,i){null==i&&(i=s),m(i);var r=l.getModel(mI).getItemStyle();return Ys(r,h,null,{isRectText:!0},!0),r.text=h.getShallow("show")?et(t.getFormattedLabel(i,"emphasis"),t.getFormattedLabel(i,"normal"),wg(e,i)):null,n&&C(r,n),r},visual:function(t,n){return null==n&&(n=s),e.getItemVisual(n,t)},barLayout:function(t){if(o.getBaseAxis)return function(t){var e=[],n=t.axis;if("category"===n.type){for(var i=n.getBandWidth(),r=0;ru?u=c:(h.lastTickCount=i,h.lastAutoInterval=u),u}},E(EI,vg);var zI=function(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusAxis=new OI,this._angleAxis=new EI,this._radiusAxis.polar=this._angleAxis.polar=this};zI.prototype={type:"polar",axisPointerEnabled:!0,constructor:zI,dimensions:["radius","angle"],model:null,containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=la;)l+=360*u;return[s,l]},coordToPoint:function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]}};var RI=gu.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});D(RI.prototype,Hp);var BI={splitNumber:5};function VI(t,e){return e.type||(e.data?"category":"value")}function FI(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){if(t.coordinateSystem===n){var e=t.getData();B(e.mapDimension("radius",!0),function(t){r.scale.unionExtentFromData(e,Zf(e,t))}),B(e.mapDimension("angle",!0),function(t){i.scale.unionExtentFromData(e,Zf(e,t))})}}),zp(i.scale,i.model),zp(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function GI(t,e){if(t.type=e.get("type"),t.scale=Rp(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType){t.inverse^=e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}vm("angle",RI,VI,{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}}),vm("radius",RI,VI,BI),lf({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});var WI={dimensions:zI.prototype.dimensions,create:function(t,e){var n=[];return t.eachComponent("polar",function(t,i){var r=new zI(i);r.update=FI;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");GI(o,s),GI(a,l),function(t,e,n){var i=e.get("center"),r=n.getWidth(),o=n.getHeight();t.cx=bl(i[0],r),t.cy=bl(i[1],o);var a=t.getRadiusAxis(),s=Math.min(r,o)/2,l=bl(e.get("radius"),s);a.inverse?a.setExtent(l,0):a.setExtent(0,l)}(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t}),t.eachSeries(function(e){if("polar"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0];if(c&&!n)throw new Error('Polar "'+$(e.get("polarIndex"),e.get("polarId"),0)+'" not found');e.coordinateSystem=n.coordinateSystem}}),n}};Uu.register("polar",WI);var HI=["axisLine","axisLabel","axisTick","splitLine","splitArea"];function jI(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function YI(t){return t.getRadiusAxis().inverse?0:1}function ZI(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}Zm.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=V(n.getViewLabels(),function(t){return(t=A(t)).coord=n.dataToCoord(t.tickValue),t});ZI(a),ZI(o),B(HI,function(e){!t.get(e+".show")||n.scale.isBlank()&&"axisLine"!==e||this["_"+e](t,i,o,r,a)},this)}},_axisLine:function(t,e,n,i){var r=t.getModel("axisLine.lineStyle"),o=new Ra({shape:{cx:e.cx,cy:e.cy,r:i[YI(e)]},style:r.getLineStyle(),z2:1,silent:!0});o.style.fill=null,this.group.add(o)},_axisTick:function(t,e,n,i){var r=t.getModel("axisTick"),o=(r.get("inside")?-1:1)*r.get("length"),a=i[YI(e)],s=V(n,function(t){return new es({shape:jI(e,[a,a+o],t.coord)})});this.group.add(Ss(s,{style:L(r.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_axisLabel:function(t,e,n,i,r){var o=t.getCategories(!0),a=t.getModel("axisLabel"),s=a.get("margin"),l=t.get("triggerEvent");B(r,function(n,r){var u=a,h=n.tickValue,c=i[YI(e)],d=e.coordToPoint([c+s,n.coord]),f=e.cx,p=e.cy,g=Math.abs(d[0]-f)/c<.3?"center":d[0]>f?"left":"right",m=Math.abs(d[1]-p)/c<.3?"middle":d[1]>p?"top":"bottom";o&&o[h]&&o[h].textStyle&&(u=new pl(o[h].textStyle,a,a.ecModel));var v=new za({silent:Lm.isLabelSilent(t)});this.group.add(v),Ys(v.style,u,{x:d[0],y:d[1],textFill:u.getTextColor()||t.get("axisLine.lineStyle.color"),text:n.formattedLabel,textAlign:g,textVerticalAlign:m}),l&&(v.eventData=Lm.makeAxisEventDataBase(t),v.eventData.targetType="axisLabel",v.eventData.value=n.rawLabel)},this)},_splitLine:function(t,e,n,i){var r=t.getModel("splitLine").getModel("lineStyle"),o=r.get("color"),a=0;o=o instanceof Array?o:[o];for(var s=[],l=0;lm?"left":"right",h=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:h}}(e,n,0,s,i.get("label.margin"));BS(t,n,i,r,d)}}),KI={line:function(t,e,n,i,r){return"angle"===t.dim?{type:"Line",shape:WS(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i,r){var o=Math.max(1,t.getBandWidth()),a=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:jS(e.cx,e.cy,i[0],i[1],(-n-o/2)*a,(o/2-n)*a)}:{type:"Sector",shape:jS(e.cx,e.cy,n-o/2,n+o/2,0,2*Math.PI)}}};function QI(t,e){e.update="updateView",ef(e,function(e,n){var i={};return n.eachComponent({mainType:"geo",query:e},function(n){n[t](e.name),B(n.coordinateSystem.regions,function(t){i[t.name]=n.isSelected(t.name)||!1})}),{selected:i,name:e.name}})}function JI(t,e,n){this._model=t}function $I(t,e,n,i){var r=n.calendarModel,o=n.seriesModel,a=r?r.coordinateSystem:o?o.coordinateSystem:null;return a===this?a[t](i):null}Zm.registerAxisPointerClass("PolarAxisPointer",qI),rf(j(function(t,e,n){var i={},r=function(t,e){var n={};B(t,function(t,e){var i=t.getData(),r=t.coordinateSystem.getBaseAxis(),o=r.getExtent(),a="category"===r.type?r.getBandWidth():Math.abs(o[1]-o[0])/i.count(),s=n[PI(r)]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},l=s.stacks;n[PI(r)]=s;var u=kI(t);l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var h=bl(t.get("barWidth"),a),c=bl(t.get("barMaxWidth"),a),d=t.get("barGap"),f=t.get("barCategoryGap");h&&!l[u].width&&(h=Math.min(s.remainedWidth,h),l[u].width=h,s.remainedWidth-=h),c&&(l[u].maxWidth=c),null!=d&&(s.gap=d),null!=f&&(s.categoryGap=f)});var i={};return B(n,function(t,e){i[e]={};var n=t.stacks,r=t.bandWidth,o=bl(t.categoryGap,r),a=bl(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),B(n,function(t,e){var n=t.maxWidth;n&&n=0?"p":"n",T=y;if(v&&(i[a][w]||(i[a][w]={p:y,n:y}),T=i[a][w][D]),"radius"===h.dim){var C=h.dataToRadius(b)-y,L=o.dataToAngle(w);Math.abs(C)=i.start.time&&n.timeo.end.time&&t.reverse(),t},_getRangeInfo:function(t){var e;(t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])])[0].time>t[1].time&&(e=!0,t.reverse());var n=Math.floor(t[1].time/864e5)-Math.floor(t[0].time/864e5)+1,i=new Date(t[0].time),r=i.getDate(),o=t[1].date.getDate();if(i.setDate(r+n-1),i.getDate()!==o)for(var a=i.getTime()-t[1].time>0?1:-1;i.getDate()!==o&&(i.getTime()-t[1].time)*a>0;)n-=a,i.setDate(r+n-1);var s=Math.floor((n+t[0].day+6)/7),l=e?1-s:s-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:s,nthWeek:l,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&ei.lweek)return!1;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(i.start.d+r),this.getDateInfo(o)}},JI.dimensions=JI.prototype.dimensions,JI.getDimensionsInfo=JI.prototype.getDimensionsInfo,JI.create=function(t,e){var n=[];return t.eachComponent("calendar",function(i){var r=new JI(i,t,e);n.push(r),i.coordinateSystem=r}),t.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])}),n},Uu.register("calendar",JI);var tA=gu.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t,e,n,i){var r=hu(t);tA.superApply(this,"init",arguments),eA(t,r)},mergeOption:function(t,e){tA.superApply(this,"mergeOption",arguments),eA(this.option,t)}});function eA(t,e){var n=t.cellSize;Y(n)?1===n.length&&(n[1]=n[0]):n=t.cellSize=[n,n];var i=V([0,1],function(t){return function(t,e){return null!=t[ru[e][0]]||null!=t[ru[e][1]]&&null!=t[ru[e][2]]}(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]});uu(t,e,{type:"box",ignoreSize:i})}var nA={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},iA={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]};uf({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,a,i),this._renderWeekText(t,o,a,i)},_renderDayRect:function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new $a({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},_renderLines:function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel("splitLine.lineStyle").getLineStyle(),s=t.get("splitLine.show"),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,h=0;u.time<=e.end.time;h++){d(u.formatedDate),0===h&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var c=u.date;c.setMonth(c.getMonth()+1),u=o.getDateInfo(c)}function d(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},_getEdgesPoints:function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},_drawSplitline:function(t,e,n){var i=new Ua({z2:20,shape:{points:t},style:e});n.add(i)},_getLinePointsOfOneWeek:function(t,e,n){var i=t.coordinateSystem;e=i.getDateInfo(e);for(var r=[],o=0;o<7;o++){var a=i.getNextNDay(e.time,o),s=i.dataToRect([a.time],!1);r[2*a.day]=s.tl,r[2*a.day+1]=s["horizontal"===n?"bl":"tr"]}return r},_formatterLabel:function(t,e){return"string"==typeof t&&t?Xl(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,n,i,r){e=e.slice();var o=["center","bottom"];"bottom"===i?(e[1]+=r,o=["center","top"]):"left"===i?e[0]-=r:"right"===i?(e[0]+=r,o=["center","top"]):e[1]-=r;var a=0;return"left"!==i&&"right"!==i||(a=Math.PI/2),{rotation:a,position:e,style:{textAlign:o[0],textVerticalAlign:o[1]}}},_renderYearText:function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,h="horizontal"===n?0:1,c={top:[l,s[h][1]],bottom:[l,s[1-h][1]],left:[s[1-h][0],u],right:[s[h][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var f=r.get("formatter"),p={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(f,p),m=new za({z2:30});Ys(m.style,r,{text:g}),m.attr(this._yearTextPositionControl(m,c[a],n,a,o)),i.add(m)}},_monthTextPositionControl:function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,textAlign:o,textVerticalAlign:a}},_renderMonthText:function(t,e,n){var i=t.getModel("monthLabel");if(i.get("show")){var r=i.get("nameMap"),o=i.get("margin"),a=i.get("position"),s=i.get("align"),l=[this._tlpoints,this._blpoints];U(r)&&(r=nA[r.toUpperCase()]||[]);var u="start"===a?0:1,h="horizontal"===e?0:1;o="start"===a?-o:o;for(var c="center"===s,d=0;d=0;l--)null==r[l]?r.splice(l,1):delete r[l].$action},_flatten:function(t,e,n){B(t,function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;"group"===t.type&&i&&this._flatten(i,e,t),delete t.children}},this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});function oA(t,e,n,i){var r=n.type;c&&rt(r,"graphic type MUST be set");var o=sl[r.charAt(0).toUpperCase()+r.slice(1)];c&&rt(o,"graphic type can not be found");var a=new o(n);e.add(a),i.set(t,a),a.__ecGraphicId=t}function aA(t,e){var n=t&&t.parent;n&&("group"===t.type&&t.traverse(function(t){aA(t,e)}),e.removeKey(t.__ecGraphicId),n.remove(t))}function sA(t,e){var n;return B(e,function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)}),n}uf({type:"graphic",init:function(t,e){this._elMap=ht(),this._lastGraphicModel},render:function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},_updateElements:function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group;B(e,function(e){var r=e.$action,o=e.id,a=n.get(o),s=e.parentId,l=null!=s?n.get(s):i,u=e.style;"text"===e.type&&u&&(e.hv&&e.hv[1]&&(u.textVerticalAlign=u.textBaseline=null),!u.hasOwnProperty("textFill")&&u.fill&&(u.textFill=u.fill),!u.hasOwnProperty("textStroke")&&u.stroke&&(u.textStroke=u.stroke));var h=function(t){return t=C({},t),B(["id","parentId","$action","hv","bounding"].concat(iu),function(e){delete t[e]}),t}(e);c&&a&&rt(l===a.parent,"Changing parent is not supported."),r&&"merge"!==r?"replace"===r?(aA(a,n),oA(o,l,h,n)):"remove"===r&&aA(a,n):a?a.attr(h):oA(o,l,h,n);var d=n.get(o);d&&(d.__ecGraphicWidth=e.width,d.__ecGraphicHeight=e.height,function(t,e,n){var i=t.eventData;t.silent||t.ignore||i||(i=t.eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=t.info)}(d,t))})}},_relocate:function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,o=n.length-1;o>=0;o--){var a=n[o],s=r.get(a.id);if(s){var l=s.parent;lu(s,a,l===i?{width:e.getWidth(),height:e.getHeight()}:{width:l.__ecGraphicWidth||0,height:l.__ecGraphicHeight||0},null,{hv:a.hv,boundingMode:a.bounding})}}},_clear:function(){var t=this._elMap;t.each(function(e){aA(e,t)}),this._elMap=ht()},dispose:function(){this._clear()}});var lA={};function uA(t,e){lA[t]=e}function hA(t){return lA[t]}var cA=lf({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){cA.superApply(this,"optionUpdated",arguments),B(this.option.feature,function(t,e){var n=hA(e);n&&D(t,n.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}}}});function dA(t,e){var n=Gl(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new $a({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}uf({type:"toolbox",render:function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var o=+t.get("itemSize"),a=t.get("feature")||{},s=this._features||(this._features={}),l=[];B(a,function(t,e){l.push(e)}),new ff(this._featureNames||[],l).add(u).update(u).remove(j(u,null)).execute(),this._featureNames=l,function(t,e,n){var i=e.getBoxLayoutParams(),r=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=su(i,o,r);au(e.get("orient"),t,e.get("itemGap"),a.width,a.height),lu(t,i,o,r)}(r,t,n),r.add(dA(r.getBoundingRect(),t)),r.eachChild(function(t){var e=t.__title,i=t.hoverStyle;if(i&&e){var a=yi(e,ki(i)),s=t.position[0]+r.position[0],l=!1;t.position[1]+r.position[1]+o+a.height>n.getHeight()&&(i.textPosition="top",l=!0);var u=l?-5-a.height:o+8;s+a.width/2>n.getWidth()?(i.textPosition=["100%",u],i.textAlign="right"):s-a.width/2<0&&(i.textPosition=[0,u],i.textAlign="left")}})}function u(u,h){var c,d=l[u],f=l[h],p=new pl(a[d],t,t.ecModel);if(d&&!f){if(function(t){return 0===t.indexOf("my")}(d))c={model:p,onclick:p.option.onclick,featureName:d};else{var g=hA(d);if(!g)return;c=new g(p,e,n)}s[d]=c}else{if(!(c=s[f]))return;c.model=p,c.ecModel=e,c.api=n}d||!f?p.get("show")&&!c.unusable?(function(i,a,s){var l=i.getModel("iconStyle"),u=i.getModel("emphasis.iconStyle"),h=a.getIcons?a.getIcons():i.get("icon"),c=i.get("title")||{};if("string"==typeof h){var d=h,f=c;c={},(h={})[s]=d,c[s]=f}var p=i.iconPaths={};B(h,function(s,h){var d=al(s,{},{x:-o/2,y:-o/2,width:o,height:o});d.setStyle(l.getItemStyle()),d.hoverStyle=u.getItemStyle(),Fs(d),t.get("showTitle")&&(d.__title=c[h],d.on("mouseover",function(){var t=u.getItemStyle();d.setStyle({text:c[h],textPosition:t.textPosition||"bottom",textFill:t.fill||t.stroke||"#000",textAlign:t.textAlign||"center"})}).on("mouseout",function(){d.setStyle({textFill:null})})),d.trigger(i.get("iconStatus."+h)||"normal"),r.add(d),d.on("click",H(a.onclick,a,e,n,h)),p[h]=d})}(p,c,d),p.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&i[t].trigger(e)},c.render&&c.render(p,e,n,i)):c.remove&&c.remove(e,n):c.dispose&&c.dispose(e,n)}},updateView:function(t,e,n,i){B(this._features,function(t){t.updateView&&t.updateView(t.model,e,n,i)})},remove:function(t,e){B(this._features,function(n){n.remove&&n.remove(t,e)}),this.group.removeAll()},dispose:function(t,e){B(this._features,function(n){n.dispose&&n.dispose(t,e)})}});var fA=dc.toolbox.saveAsImage;function pA(t){this.model=t}pA.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:fA.title,type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:fA.lang.slice()},pA.prototype.unusable=!p.canvasSupported,pA.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r=document.createElement("a"),o=n.get("type",!0)||"png";r.download=i+"."+o,r.target="_blank";var a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if(r.href=a,"function"!=typeof MouseEvent||p.browser.ie||p.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var s=atob(a.split(",")[1]),l=s.length,u=new Uint8Array(l);l--;)u[l]=s.charCodeAt(l);var h=new Blob([u]);window.navigator.msSaveOrOpenBlob(h,i+"."+o)}else{var c=n.get("lang"),d='';window.open().document.write(d)}else{var f=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});r.dispatchEvent(f)}},uA("saveAsImage",pA);var gA=dc.toolbox.magicType;function mA(t){this.model=t}mA.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:A(gA.title),option:{},seriesIndex:{}};var vA=mA.prototype;vA.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return B(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n};var yA={line:function(t,e,n,i){if("bar"===t)return D({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.line")||{},!0)},bar:function(t,e,n,i){if("line"===t)return D({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.bar")||{},!0)},stack:function(t,e,n,i){if("line"===t||"bar"===t)return D({id:e,stack:"__ec_magicType_stack__"},i.get("option.stack")||{},!0)},tiled:function(t,e,n,i){if("line"===t||"bar"===t)return D({id:e,stack:""},i.get("option.tiled")||{},!0)}},xA=[["line","bar"],["stack","tiled"]];vA.onclick=function(t,e,n){var i=this.model,r=i.get("seriesIndex."+n);if(yA[n]){var o={series:[]};B(xA,function(t){N(t,n)>=0&&B(t,function(t){i.setIconStatus(t,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},function(e){var r=e.subType,a=e.id,s=yA[n](r,a,e,i);s&&(L(s,e.option),o.series.push(s));var l=e.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===n||"bar"===n)){var u=l.getAxesByScale("ordinal")[0];if(u){var h=u.dim+"Axis",c=t.queryComponents({mainType:h,index:e.get(name+"Index"),id:e.get(name+"Id")})[0].componentIndex;o[h]=o[h]||[];for(var d=0;d<=c;d++)o[h][c]=o[h][c]||{};o[h][c].boundaryGap="bar"===n}}}),e.dispatchAction({type:"changeMagicType",currentType:n,newOption:o})}},ef({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),uA("magicType",mA);var _A=dc.toolbox.dataView,bA=new Array(60).join("-"),wA="\t";function MA(t){return V(t,function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,function(){for(var t=arguments.length,r=arguments[t-1],o=e.getName(r),a=0;a=0)return!0}(t)){var r=function(t){for(var e=t.split(/\n+/g),n=[],i=V(SA(e.shift()).split(IA),function(t){return{name:t,data:[]}}),r=0;r=0)&&t(o,i,r)})}var EA=NA.prototype;function zA(t){return t[0]>t[1]&&t.reverse(),t}function RA(t,e){return Fr(t,e,{includeMainTypes:OA})}EA.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=GA[t.brushType](0,n,e);t.__rangeOffset={offset:HA[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})},EA.matchOutputRanges=function(t,e,n){CA(t,function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&B(i.coordSyses,function(i){var r=GA[t.brushType](1,i,t.range);n(t,r.values,i,e)})},this)},EA.setInputRanges=function(t,e){CA(t,function(t){var n,i,r,o,a,s=this.findTargetInfo(t,e);if(c&&(rt(!s||!0===s||t.coordRange,"coordRange must be specified when coord index specified."),rt(!s||!0!==s||t.range,"range must be specified in global brush.")),t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=GA[t.brushType](0,s.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?HA[t.brushType](l.values,u.offset,(n=l.xyMinMax,i=u.xyMinMax,r=YA(n),o=YA(i),a=[r[0]/o[0],r[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}},this)},EA.makePanelOpts=function(t,e){return V(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e&&e(n),clipPath:gw(i),isTargetByCursor:vw(i,t,n.coordSysModel),getLinearBrushOtherExtent:mw(i)}})},EA.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&LA(i.coordSyses,e.coordinateSystem)>=0},EA.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=RA(e,t),r=0;r=0||LA(i,t.getAxis("y").model)>=0)&&o.push(t)}),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:FA.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,e){CA(t.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:FA.geo})})}},VA=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],FA={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(el(t)),e}},GA={lineX:kA(WA,0),lineY:kA(WA,1),rect:function(t,e,n){var i=e[PA[t]]([n[0][0],n[1][0]]),r=e[PA[t]]([n[0][1],n[1][1]]),o=[zA([i[0],r[0]]),zA([i[1],r[1]])];return{values:o,xyMinMax:o}},polygon:function(t,e,n){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:V(n,function(n){var r=e[PA[t]](n);return i[0][0]=Math.min(i[0][0],r[0]),i[1][0]=Math.min(i[1][0],r[1]),i[0][1]=Math.max(i[0][1],r[0]),i[1][1]=Math.max(i[1][1],r[1]),r}),xyMinMax:i}}};function WA(t,e,n,i){c&&rt("cartesian2d"===n.type,"lineX/lineY brush is available only in cartesian2d.");var r=n.getAxis(["x","y"][t]),o=zA(V([0,1],function(t){return e?r.coordToData(r.toLocalCoord(i[t])):r.toGlobalCoord(r.dataToCoord(i[t]))})),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var HA={lineX:kA(jA,0),lineY:kA(jA,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return V(t,function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]})}};function jA(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function YA(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var ZA=B,UA="\0_ec_hist_store";function XA(t){var e=t[UA];return e||(e=t[UA]=[{}]),e}gu.registerSubTypeDefaulter("dataZoom",function(){return"slider"});var qA,KA,QA,JA,$A=["cartesian2d","polar","singleAxis"],tD=(KA=["axisIndex","axis","index","id"],QA=V(qA=(qA=["x","y","z","radius","angle","single"]).slice(),Jl),JA=V(KA=(KA||[]).slice(),Jl),function(t,e){B(qA,function(n,i){for(var r={name:n,capital:QA[i]},o=0;o=0}(t,a)&&function(t,i){var r=!1;return e(function(e){B(n(t,e)||[],function(t){i.records[e.name][t]&&(r=!0)})}),r}(t,a)&&(i(t,a),o=!0)}return a};function i(t,i){i.nodes.push(t),e(function(e){B(n(t,e)||[],function(t){i.records[e.name][t]=!0})})}}var nD=B,iD=Ml,rD=function(t,e,n,i){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=i,this._dataZoomModel=n};function oD(t,e){var n=t.getAxisModel(),i=t._percentWindow,r=t._valueWindow;if(i){var o=Al(r,[0,500]);o=Math.min(o,20);var a=e||0===i[0]&&100===i[1];n.setRange(a?null:+r[0].toFixed(o),a?null:+r[1].toFixed(o))}}rD.prototype={constructor:rD,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries(function(n){if(o=n.get("coordinateSystem"),N($A,o)>=0){var i=this._dimName,r=e.queryComponents({mainType:i+"Axis",index:n.get(i+"AxisIndex"),id:n.get(i+"AxisId")})[0];this._axisIndex===(r&&r.componentIndex)&&t.push(n)}var o},this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,n,i=this._dimName,r=this.ecModel,o=this.getAxisModel();return"x"===i||"y"===i?(e="gridIndex",t="x"===i?"y":"x"):(e="polarIndex",t="angle"===i?"radius":"angle"),r.eachComponent(t+"Axis",function(t){(t.get(e)||0)===(o.get(e)||0)&&(n=t)}),n},getMinMaxSpan:function(){return A(this._minMaxSpan)},calculateDataWindow:function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];nD(["start","end"],function(l,u){var h=t[l],c=t[l+"Value"];"percent"===r[u]?(null==h&&(h=o[u]),c=i.parse(_l(h,o,n))):(e=!0,h=_l(c=null==c?n[u]:i.parse(c),n,o)),s[u]=c,a[u]=h}),iD(s),iD(a);var l=this._minMaxSpan;function u(t,e,n,r,o){var a=o?"Span":"ValueSpan";hb(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=_l(t[s],n,r,!0),o&&(e[s]=i.parse(e[s]))}return e?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},reset:function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=(i=this,r=this._dimName,o=[1/0,-1/0],nD(e,function(t){var e=t.getData();e&&nD(e.mapDimension(r,!0),function(t){var n=e.getApproximateExtent(t);n[0]o[1]&&(o[1]=n[1])})}),o[1]0?0:NaN);var a=n.getMax(!0);null!=a&&"dataMax"!==a&&"function"!=typeof a?e[1]=a:r&&(e[1]=o>0?o-1:NaN),n.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0))}(i,o),o),function(t){var e=t._minMaxSpan={},n=t._dataZoomModel,i=t._dataExtent;nD(["min","max"],function(r){var o=n.get(r+"Span"),a=n.get(r+"ValueSpan");null!=a&&(a=t.getAxisModel().axis.scale.parse(a)),null!=a?o=_l(i[0]+a,i,[0,100],!0):null!=o&&(a=_l(o,[0,100],i,!0)-i[0]),e[r+"Span"]=o,e[r+"ValueSpan"]=a})}(this);var n=this.calculateDataWindow(t.option);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,oD(this)}var i,r,o},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,oD(this,!0))},filterData:function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&nD(i,function(t){var e=t.getData(),i=e.mapDimension(n,!0);i.length&&("weakFilter"===r?e.filterSelf(function(t){for(var n,r,a,s=0;so[1];if(u&&!h&&!c)return!0;u&&(a=!0),h&&(n=!0),c&&(r=!0)}return a&&n&&r}):nD(i,function(n){if("empty"===r)t.setData(e.map(n,function(t){return function(t){return t>=o[0]&&t<=o[1]}(t)?t:NaN}));else{var i={};i[n]=o,e.selectRange(i)}}),nD(i,function(t){e.setApproximateExtent(o,t)}))})}}};var aD=B,sD=tD,lD=lf({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(t,e,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var i=uD(t);this.mergeDefaultAndTheme(t,n),this.doInit(i)},mergeOption:function(t){var e=uD(t);D(this.option,t,!0),this.doInit(e)},doInit:function(t){var e=this.option;p.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),hD(this,t),aD([["start","startValue"],["end","endValue"]],function(t,n){"value"===this._rangePropMode[n]&&(e[t[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(e,n,i,r){var o=this.dependentModels[e.axis][n],a=o.__dzAxisProxy||(o.__dzAxisProxy=new rD(e.name,n,this,r));t[e.name+"_"+n]=a},this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();sD(function(e){var n=e.axisIndex;t[n]=Cr(t[n])},this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;sD(function(n){null!=t[n.axisIndex]&&(e=!0)},this);var n=t.orient;return null==n&&e?"orient":e?void 0:(null==n&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),n=this.option,i=this.dependentModels;if(t){var r="vertical"===e?"y":"x";i[r+"Axis"].length?(n[r+"AxisIndex"]=[0],t=!1):aD(i.singleAxis,function(i){t&&i.get("orient",!0)===e&&(n.singleAxisIndex=[i.componentIndex],t=!1)})}t&&sD(function(e){if(t){var i=[],r=this.dependentModels[e.axis];if(r.length&&!i.length)for(var o=0,a=r.length;o0?100:20}},getFirstTargetAxisModel:function(){var t;return sD(function(e){if(null==t){var n=this.get(e.axisIndex);n.length&&(t=this.dependentModels[e.axis][n[0]])}},this),t},eachTargetAxis:function(t,e){var n=this.ecModel;sD(function(i){aD(this.get(i.axisIndex),function(r){t.call(e,i,r,this,n)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var n=this.getAxisProxy(t,e);return n&&n.getAxisModel()},setRawRange:function(t,e){var n=this.option;aD([["start","startValue"],["end","endValue"]],function(e){null==t[e[0]]&&null==t[e[1]]||(n[e[0]]=t[e[0]],n[e[1]]=t[e[1]])},this),!e&&hD(this,t)},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var n in e)if(e.hasOwnProperty(n)&&e[n].hostedBy(this))return e[n];for(var n in e)if(e.hasOwnProperty(n)&&!e[n].hostedBy(this))return e[n]},getRangePropMode:function(){return this._rangePropMode.slice()}});function uD(t){var e={};return aD(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}function hD(t,e){var n=t._rangePropMode,i=t.get("rangeMode");aD([["start","startValue"],["end","endValue"]],function(t,r){var o=null!=e[t[0]],a=null!=e[t[1]];o&&!a?n[r]="percent":!o&&a?n[r]="value":i?n[r]=i[r]:o&&(n[r]="percent")})}var cD=Uh.extend({type:"dataZoom",render:function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},getTargetCoordInfo:function(){var t=this.dataZoomModel,e=this.ecModel,n={};return t.eachTargetAxis(function(t,i){var r=e.getComponent(t.axis,i);if(r){var o=r.getCoordSysModel();o&&function(t,e,n,i){for(var r,o=0;o1?"emphasis":"normal")}(t,e)},mD.onclick=function(t,e,n){vD[n].call(this)},mD.remove=function(t,e){this._brushController.unmount()},mD.dispose=function(t,e){this._brushController.dispose()};var vD={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var e=XA(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return ZA(n,function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n]){i[n]=t;break}}),i}(this.ecModel))}};function yD(t){var e={};return B(["xAxisIndex","yAxisIndex"],function(n){e[n]=t[n],null==e[n]&&(e[n]="all"),(!1===e[n]||"none"===e[n])&&(e[n]=[])}),e}mD._onBrush=function(t,e){if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]),new NA(yD(this.model.option),i,{include:["grid"]}).matchOutputRanges(t,i,function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(r("x",n,e[0]),r("y",n,e[1])):r({lineX:"x",lineY:"y"}[i],n,e)}}),function(t,e){var n=XA(t);ZA(e,function(e,i){for(var r=n.length-1;r>=0&&!n[r][i];r--);if(r<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var a=o.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}}),n.push(e)}(i,n),this._dispatchZoomAction(n)}function r(t,e,r){var o=e.getAxis(t),a=o.model,s=function(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},function(n){n.getAxisModel(t,e.componentIndex)&&(i=n)}),i}(t,a,i),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(r=hb(0,r.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}},mD._dispatchZoomAction=function(t){var e=[];fD(t,function(t,n){e.push(A(t))}),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},uA("dataZoom",gD),$d(function(t){if(t){var e=t.dataZoom||(t.dataZoom=[]);Y(e)||(t.dataZoom=e=[e]);var n=t.toolbox;if(n&&(Y(n)&&(n=n[0]),n&&n.feature)){var i=n.feature.dataZoom;r("xAxis",i),r("yAxis",i)}}function r(n,i){if(i){var r=n+"Index",o=i[r];null==o||"all"===o||Y(o)||(o=!1===o||"none"===o?[]:[o]),a=function(t,i){if(null==o||"all"===o||-1!==N(o,i)){var a={type:"select",$fromToolbox:!0,id:pD+n+i};a[r]=i,e.push(a)}},Y(s=t[n])||(s=s?[s]:[]),fD(s,a)}var a,s}});var xD=dc.toolbox.restore;function _D(t){this.model=t}_D.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:xD.title},_D.prototype.onclick=function(t,e,n){!function(t){t[UA]=null}(t),e.dispatchAction({type:"restore",from:this.uid})},uA("restore",_D),ef({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")}),lf({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});var bD=B,wD=Fl,MD=["","-webkit-","-moz-","-o-"];function SD(t){var e,n,i=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.getModel("textStyle"),s=t.get("padding");return r&&i.push((n="left "+(e=r)+"s cubic-bezier(0.23, 1, 0.32, 1),top "+e+"s cubic-bezier(0.23, 1, 0.32, 1)",V(MD,function(t){return t+"transition:"+n}).join(";"))),o&&(p.canvasSupported?i.push("background-Color:"+o):(i.push("background-Color:#"+Ue(o)),i.push("filter:alpha(opacity=70)"))),bD(["width","color","radius"],function(e){var n="border-"+e,r=wD(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))}),i.push(function(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();return i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px"),bD(["decoration","align"],function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)}),e.join(";")}(a)),null!=s&&i.push("padding:"+Gl(s).join("px ")+"px"),i.join(";")+";"}function ID(t,e){if(p.wxa)return null;var n=document.createElement("div"),i=this._zr=e.getZr();this.el=n,this._x=e.getWidth()/2,this._y=e.getHeight()/2,t.appendChild(n),this._container=t,this._show=!1,this._hideTimeout;var r=this;n.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!r._enterable){var n=i.handler;Zt(t,e,!0),n.dispatch("mousemove",e)}},n.onmouseleave=function(){r._enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1}}function AD(t){this._zr=t.getZr(),this._show=!1,this._hideTimeout}ID.prototype={constructor:ID,_enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),n=t.style;"absolute"!==n.position&&"absolute"!==e.position&&(n.position="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+SD(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",e.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var n,i=this._zr;i&&i.painter&&(n=i.painter.getViewportRootOffset())&&(t+=n.offsetLeft,e+=n.offsetTop);var r=this.el.style;r.left=t+"px",r.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(H(this.hide,this),t)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(this.el);n&&(t+=parseInt(n.paddingLeft,10)+parseInt(n.paddingRight,10)+parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),e+=parseInt(n.paddingTop,10)+parseInt(n.paddingBottom,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:t,height:e}}},AD.prototype={constructor:AD,_enterable:!0,update:function(){},show:function(t){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(t,e,n){this.el&&this._zr.remove(this.el);for(var i={},r=t,o=r.indexOf("{marker");o>=0;){var a=r.indexOf("|}"),s=r.substr(o+"{marker".length,a-o-"{marker".length);s.indexOf("sub")>-1?i["marker"+s]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:e[s],textOffset:[3,0]}:i["marker"+s]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:e[s]},o=(r=r.substr(a+1)).indexOf("{marker")}this.el=new za({style:{rich:i,text:t,textLineHeight:20,textBackgroundColor:n.get("backgroundColor"),textBorderRadius:n.get("borderRadius"),textFill:n.get("textStyle.color"),textPadding:n.get("padding")},z:n.get("z")}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){this.el&&this.el.attr("position",[t,e])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(H(this.hide,this),t)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var t=this.getSize();return{width:t[0],height:t[1]}}};var DD=H,TD=B,CD=bl,LD=new $a({shape:{x:-1,y:-1,width:2,height:2}});function kD(t){for(var e=t.pop();t.length;){var n=t.pop();n&&(pl.isInstance(n)&&(n=n.get("tooltip",!0)),"string"==typeof n&&(n={formatter:n}),e=new pl(n,e,e.ecModel))}return e}function PD(t,e){return t.dispatchAction||H(e.dispatchAction,e)}function OD(t){return"center"===t||"middle"===t}uf({type:"tooltip",init:function(t,e){if(!p.node){var n,i=t.getComponent("tooltip").get("renderMode");this._renderMode=Hr(i),"html"===this._renderMode?(n=new ID(e.getDom(),e),this._newLine="
"):(n=new AD(e),this._newLine="\n"),this._tooltipContent=n}},render:function(t,e,n){if(!p.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel.get("triggerOn");SS("itemTooltip",this._api,DD(function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))},this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY})})}},manuallyShowTip:function(t,e,n,i){if(i.from!==this.uid&&!p.node){var r=PD(i,n);this._ticket="";var o=i.dataByCoordSys;if(i.tooltip&&null!=i.x&&null!=i.y){var a=LD;a.position=[i.x,i.y],a.update(),a.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:a},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,event:{},dataByCoordSys:i.dataByCoordSys,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var s=fS(i,e),l=s.point[0],u=s.point[1];null!=l&&null!=u&&this._tryShow({offsetX:l,offsetY:u,position:i.position,target:s.el,event:{}},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target,event:{}},r))}},manuallyHideTip:function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(PD(i,n))},_manuallyAxisShowTip:function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s&&"axis"===(t=kD([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model,t])).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},_tryShow:function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;i&&i.length?this._showAxisTooltip(i,t):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,n,e)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,n,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var n=t.get("showDelay");e=H(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},_showAxisTooltip:function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=[],a=[],s=kD([e.tooltipOption,i]),l=this._renderMode,u=this._newLine,h={};TD(t,function(t){TD(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value,r=[];if(e&&null!=i){var s=VS(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt);B(t.seriesDataIndices,function(o){var u=n.getSeriesByIndex(o.seriesIndex),c=o.dataIndexInside,d=u&&u.getDataParams(c);if(d.axisDim=t.axisDim,d.axisIndex=t.axisIndex,d.axisType=t.axisType,d.axisId=t.axisId,d.axisValue=Vp(e.axis,i),d.axisValueLabel=s,d){a.push(d);var f,p=u.formatTooltip(c,!0,null,l);if(X(p)){f=p.html;var g=p.markers;D(h,g)}else f=p;r.push(f)}});var c=s;"html"!==l?o.push(r.join(u)):o.push((c?jl(c)+u:"")+r.join(u))}})},this),o.reverse(),o=o.join(this._newLine+this._newLine);var c=e.position;this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(s,c,r[0],r[1],this._tooltipContent,a):this._showTooltipContent(s,o,a,Math.random(),r[0],r[1],c,void 0,h)})},_showSeriesItemTooltip:function(t,e,n){var i=this._ecModel,r=e.seriesIndex,o=i.getSeriesByIndex(r),a=e.dataModel||o,s=e.dataIndex,l=e.dataType,u=a.getData(),h=kD([u.getItemModel(s),a,o&&(o.coordinateSystem||{}).model,this._tooltipModel]),c=h.get("trigger");if(null==c||"item"===c){var d,f,p=a.getDataParams(s,l),g=a.formatTooltip(s,!1,l,this._renderMode);X(g)?(d=g.html,f=g.markers):(d=g,f=null);var m="item_"+a.name+"_"+s;this._showOrMove(h,function(){this._showTooltipContent(h,d,p,m,t.offsetX,t.offsetY,t.position,t.target,f)}),n({type:"showTip",dataIndexInside:s,dataIndex:u.getRawIndex(s),seriesIndex:r,from:this.uid})}},_showComponentItemTooltip:function(t,e,n){var i=e.tooltip;"string"==typeof i&&(i={content:i,formatter:i});var r=new pl(i,this._tooltipModel,this._ecModel),o=r.get("content"),a=Math.random();this._showOrMove(r,function(){this._showTooltipContent(r,o,r.get("formatterParams")||{},a,t.offsetX,t.offsetY,t.position,e)}),n({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,h=t.get("formatter");a=a||t.get("position");var c=e;if(h&&"string"==typeof h)c=Ul(h,n,!0);else if("function"==typeof h){var d=DD(function(e,i){e===this._ticket&&(u.setContent(i,l,t),this._updatePosition(t,a,r,o,u,n,s))},this);this._ticket=i,c=h(n,i,d)}u.setContent(c,l,t),u.show(t),this._updatePosition(t,a,r,o,u,n,s)}},_updatePosition:function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),h=t.get("align"),c=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),"function"==typeof e&&(e=e([n,i],o,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),Y(e))n=CD(e[0],s),i=CD(e[1],l);else if(X(e)){e.width=u[0],e.height=u[1];var f=su(e,{width:s,height:l});n=f.x,i=f.y,h=null,c=null}else if("string"==typeof e&&a){var p=function(t,e,n){var i=n[0],r=n[1],o=0,a=0,s=e.width,l=e.height;switch(t){case"inside":o=e.x+s/2-i/2,a=e.y+l/2-r/2;break;case"top":o=e.x+s/2-i/2,a=e.y-r-5;break;case"bottom":o=e.x+s/2-i/2,a=e.y+l+5;break;case"left":o=e.x-i-5,a=e.y+l/2-r/2;break;case"right":o=e.x+s+5,a=e.y+l/2-r/2}return[o,a]}(e,d,u);n=p[0],i=p[1]}else p=function(t,e,n,i,r,o,a){var s=n.getOuterSize(),l=s.width,u=s.height;return null!=o&&(t+l+o>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}(n,i,r,s,l,h?null:20,c?null:20),n=p[0],i=p[1];h&&(n-=OD(h)?u[0]/2:"right"===h?u[0]:0),c&&(i-=OD(c)?u[1]/2:"bottom"===c?u[1]:0),t.get("confine")&&(p=function(t,e,n,i,r){var o=n.getOuterSize(),a=o.width,s=o.height;return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,i,r,s,l),n=p[0],i=p[1]),r.moveTo(n,i)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&TD(e,function(e,i){var r=e.dataByAxis||{},o=(t[i]||{}).dataByAxis||[];(n&=r.length===o.length)&&TD(r,function(t,e){var i=o[e]||{},r=t.seriesDataIndices||[],a=i.seriesDataIndices||[];(n&=t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===a.length)&&TD(r,function(t,e){var i=a[e];n&=t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex})})}),this._lastDataByCoordSys=t,!!n},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){p.node||(this._tooltipContent.hide(),DS("itemTooltip",e))}}),ef({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),ef({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){});var ND=["rect","polygon","keep","clear"],ED=B;function zD(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function RD(t,e,n){var i={};return ED(e,function(e){var r,o=i[e]=((r=function(){}).prototype.__hidden=r.prototype,new r);ED(t[e],function(t,i){if(Bx.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new Bx(r),"opacity"===i&&((r=A(r)).type="colorAlpha",o.__hidden.__alphaForOpacity=new Bx(r))}})}),i}function BD(t,e,n){var i;B(n,function(t){e.hasOwnProperty(t)&&zD(e[t])&&(i=!0)}),i&&B(n,function(n){e.hasOwnProperty(n)&&zD(e[n])?t[n]=A(e[n]):delete t[n]})}var VD={lineX:FD(0),lineY:FD(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&ig(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,o=t.y,a=t.width,s=t.height,l=i[0];return!!(ig(i,r,o)||ig(i,r+a,o)||ig(i,r,o+s)||ig(i,r+a,o+s)||Pn.create(t).contain(l[0],l[1])||WD(r,o,r+a,o,i)||WD(r,o,r,o+s,i)||WD(r+a,o,r+a,o+s,i)||WD(r,o+s,r+a,o+s,i))||void 0}}};function FD(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var r=i.range;return GD(e[t],r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]=-1e-6)return!1;var h=jD(r-t,r-a,o-e,o-s)/u;if(h<0||h>1)return!1;var c=jD(n-t,r-t,i-e,o-e)/u;return!(c<0||c>1)}function jD(t,e,n,i){return t*i-e*n}var YD=["inBrush","outOfBrush"],ZD="__ecBrushSelect",UD="__ecInBrushSelectEvent",XD=dd.VISUAL.BRUSH;function qD(t,e){if(!t.isDisposed()){var n=t.getZr();n[UD]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[UD]=!1}}function KD(t,e,n,i){for(var r=0,o=e.length;re[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&$D(e)}};function $D(t){return new Pn(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var tT=["#ddd"];function eT(t,e){return D({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new pl(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}function nT(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}lf({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var n=this.option;!e&&BD(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:tT},i.hasOwnProperty("liftZ")||(i.liftZ=5)},setAreas:function(t){c&&(rt(Y(t)),B(t,function(t){rt(t.brushType,"Illegal areas")})),t&&(this.areas=V(t,function(t){return eT(this.option,t)},this))},setBrushOption:function(t){this.brushOption=eT(this.option,t),this.brushType=this.brushOption.brushType}}),uf({type:"brush",init:function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new Vb(e.getZr())).on("brush",H(this._onBrush,this)).mount()},render:function(t){return this.model=t,nT.apply(this,arguments)},updateTransform:nT,updateView:nT,dispose:function(){this._brushController.dispose()},_onBrush:function(t,e){var n=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:A(t),$from:n})}}),ef({type:"brush",event:"brush"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(e){e.setAreas(t.areas)})}),ef({type:"brushSelect",event:"brushSelected",update:"none"},function(){});var iT=dc.toolbox.brush;function rT(t,e,n){this.model=t,this.ecModel=e,this.api=n,this._brushType,this._brushMode}rT.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:A(iT.title)};var oT=rT.prototype;function aT(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};B(i,function(t,e){o[e]||sT(r,e)||(r[e]=t)}),n.label&&!sT(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function sT(t,e){return t.hasOwnProperty(e)}oT.render=oT.updateView=function(t,e,n){var i,r,o;e.eachComponent({mainType:"brush"},function(t){i=t.brushType,r=t.brushOption.brushMode||"single",o|=t.areas.length}),this._brushType=i,this._brushMode=r,B(t.get("type",!0),function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===i)?"emphasis":"normal")})},oT.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return B(t.get("type",!0),function(t){e[t]&&(n[t]=e[t])}),n},oT.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},uA("brush",rT),$d(function(t,e){var n=t&&t.brush;if(Y(n)||(n=n?[n]:[]),n.length){var i=[];B(n,function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))});var r=t&&t.toolbox;Y(r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var o,a,s=r.feature||(r.feature={}),l=s.brush||(s.brush={}),u=l.type||(l.type=[]);u.push.apply(u,i),a={},B(o=u,function(t){a[t]=1}),o.length=0,B(a,function(t,e){o.push(e)}),e&&!u.length&&u.push.apply(u,ND)}}),lf({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),uf({type:"title",render:function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=tt(t.get("textBaseline"),t.get("textVerticalAlign")),l=new za({style:Ys({},r,{text:t.get("text"),textFill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),h=t.get("subtext"),c=new za({style:Ys({},o,{text:h,textFill:o.getTextColor(),y:u.height+t.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),f=t.get("sublink"),p=t.get("triggerEvent",!0);l.silent=!d&&!p,c.silent=!f&&!p,d&&l.on("click",function(){window.open(d,"_"+t.get("target"))}),f&&c.on("click",function(){window.open(f,"_"+t.get("subtarget"))}),l.eventData=c.eventData=p?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),h&&i.add(c);var g=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=g.width,m.height=g.height;var v=su(m,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),i.attr("position",[v.x,v.y]);var y={textAlign:a,textVerticalAlign:s};l.setStyle(y),c.setStyle(y),g=i.getBoundingRect();var x=v.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var b=new $a({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});i.add(b)}}}),gu.registerSubTypeDefaulter("timeline",function(){return"slider"}),ef({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e){var n=e.getComponent("timeline");return n&&null!=t.currentIndex&&(n.setCurrentIndex(t.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.setPlayState(!1)),e.resetOption("timeline"),L({currentIndex:n.option.currentIndex},t)}),ef({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)});var lT=gu.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(t,e,n){this._data,this._names,this.mergeDefaultAndTheme(t,n),this._initData()},mergeOption:function(t){lT.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],n=t.axisType,i=this._names=[];if("category"===n){var r=[];B(e,function(t,e){var n,o=Pr(t);X(t)?(n=A(t)).value=e:n=e,r.push(n),U(o)||null!=o&&!isNaN(o)||(o=""),i.push(o+"")}),e=r}var o={category:"ordinal",time:"time"}[n]||"number";(this._data=new Tf([{name:"value",type:o}],this)).initData(e,i)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}});z(lT.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}}),Ph);var uT=Uh.extend({type:"timeline"}),hT=function(t,e,n,i){vg.call(this,t,e,n),this.type=i||"value",this.model=null};hT.prototype={constructor:hT,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},E(hT,vg);var cT=H,dT=B,fT=Math.PI;function pT(t,e,n,i,r,o){var a=e.get("color");r?(r.setColor(a),n.add(r),o&&o.onUpdate(r)):((r=Jp(t.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(r),o&&o.onCreate(r));var s=e.getItemStyle(["color","symbol","symbolSize"]);r.setStyle(s),i=D({rectHover:!0,z2:100},i,!0);var l=t.get("symbolSize");(l=l instanceof Array?l.slice():[+l,+l])[0]/=2,l[1]/=2,i.scale=l;var u=t.get("symbolOffset");if(u){var h=i.position=i.position||[0,0];h[0]+=bl(u[0],l[0]),h[1]+=bl(u[1],l[1])}var c=t.get("symbolRotate");return i.rotation=(c||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function gT(t,e,n,i,r){if(!t.dragging){var o=i.getModel("checkpointStyle"),a=n.dataToCoord(i.getData().get(["value"],e));r||!o.get("animation",!0)?t.attr({position:[a,0]}):(t.stopAnimation(!0),t.animateTo({position:[a,0]},o.get("animationDuration",!0),o.get("animationEasing",!0)))}}uT.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,n,i){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,n),o=this._createGroup("mainGroup"),a=this._createGroup("labelGroup"),s=this._axis=this._createAxis(r,t);t.formatTooltip=function(t){return jl(s.scale.getLabel(t))},dT(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](r,o,s,t)},this),this._renderAxisLabel(r,a,s,t),this._position(r,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var n=t.get("label.position"),i=t.get("orient"),r=function(t,e){return su(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e);null==n||"auto"===n?n="horizontal"===i?r.y+r.height/2=0||"+"===n?"left":"right"},h={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:fT/2},d="vertical"===i?r.height:r.width,f=t.getModel("controlStyle"),p=f.get("show",!0),g=p?f.get("itemSize"):0,m=p?f.get("itemGap"):0,v=g+m,y=t.get("label.rotate")||0;y=y*fT/180;var x=f.get("position",!0),_=p&&f.get("showPlayBtn",!0),b=p&&f.get("showPrevBtn",!0),w=p&&f.get("showNextBtn",!0),M=0,S=d;return"left"===x||"bottom"===x?(_&&(o=[0,0],M+=v),b&&(a=[M,0],M+=v),w&&(s=[S-g,0],S-=v)):(_&&(o=[S-g,0],S-=v),b&&(a=[0,0],M+=v),w&&(s=[S-g,0],S-=v)),l=[M,S],t.get("inverse")&&l.reverse(),{viewRect:r,mainLength:d,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:n,labelAlign:t.get("label.align")||u[i],labelBaseline:t.get("label.verticalAlign")||t.get("label.baseline")||h[i],playPosition:o,prevBtnPosition:a,nextBtnPosition:s,axisExtent:l,controlSize:g,controlGap:m}},_position:function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=se(),a=r.x,s=r.y+r.height;ce(o,o,[-a,-s]),de(o,o,-fT/2),ce(o,o,[a,s]),(r=r.clone()).applyTransform(o)}var l=m(r),u=m(n.getBoundingRect()),h=m(i.getBoundingRect()),c=n.position,d=i.position;d[0]=c[0]=l[0][0];var f,p=t.labelPosOpt;function g(t){var e=t.position;t.origin=[l[0][0]-e[0],l[1][0]-e[1]]}function m(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}isNaN(p)?(v(c,u,l,1,f="+"===p?0:1),v(d,h,l,1,1-f)):(v(c,u,l,1,f=p>=0?0:1),d[1]=c[1]+p),n.attr("position",c),i.attr("position",d),n.rotation=i.rotation=t.rotation,g(n),g(i)},_createAxis:function(t,e){var n=e.getData(),i=e.get("axisType"),r=Rp(e,i);r.getTicks=function(){return n.mapArray(["value"],function(t){return t})};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.niceTicks();var a=new hT("value",r,t.axisExtent,i);return a.model=e,a},_createGroup:function(t){var e=this["_"+t]=new On;return this.group.add(e),e},_renderAxisLine:function(t,e,n,i){var r=n.getExtent();i.get("lineStyle.show")&&e.add(new es({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:C({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,n,i){var r=i.getData(),o=n.scale.getTicks();dT(o,function(t){var o=n.dataToCoord(t),a=r.getItemModel(t),s=a.getModel("itemStyle"),l=a.getModel("emphasis.itemStyle"),u={position:[o,0],onclick:cT(this._changeTimeline,this,t)},h=pT(a,s,e,u);Fs(h,l.getItemStyle()),a.get("tooltip")?(h.dataIndex=t,h.dataModel=i):h.dataIndex=h.dataModel=null},this)},_renderAxisLabel:function(t,e,n,i){if(n.getLabelModel().get("show")){var r=i.getData(),o=n.getViewLabels();dT(o,function(i){var o=i.tickValue,a=r.getItemModel(o),s=a.getModel("label"),l=a.getModel("emphasis.label"),u=n.dataToCoord(i.tickValue),h=new za({position:[u,0],rotation:t.labelRotation-t.rotation,onclick:cT(this._changeTimeline,this,o),silent:!1});Ys(h.style,s,{text:i.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(h),Fs(h,Ys({},l))},this)}},_renderControl:function(t,e,n,i){var r=t.controlSize,o=t.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel("emphasis.controlStyle").getItemStyle(),l=[0,-r/2,r,r],u=i.getPlayState(),h=i.get("inverse",!0);function c(t,n,u,h){if(t){var c=function(t,e,n,i){return bs(t.get(e).replace(/^path:\/\//,""),A(i||{}),new Pn(n[0],n[1],n[2],n[3]),"center")}(i,n,l,{position:t,origin:[r/2,0],rotation:h?-o:0,rectHover:!0,style:a,onclick:u});e.add(c),Fs(c,s)}}c(t.nextBtnPosition,"controlStyle.nextIcon",cT(this._changeTimeline,this,h?"-":"+")),c(t.prevBtnPosition,"controlStyle.prevIcon",cT(this._changeTimeline,this,h?"+":"-")),c(t.playPosition,"controlStyle."+(u?"stopIcon":"playIcon"),cT(this._handlePlayClick,this,!u),!0)},_renderCurrentPointer:function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=cT(s._handlePointerDrag,s),t.ondragend=cT(s._handlePointerDragend,s),gT(t,o,n,i,!0)},onUpdate:function(t){gT(t,o,n,i)}};this._currentPointer=pT(a,a,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var n=this._toAxisCoord(t)[0],i=Ml(this._axis.getExtent().slice());n>i[1]&&(n=i[1]),n"),r&&(o+=vT(r),null!=n&&(o+=" : ")),null!=n&&(o+=vT(i)),o},getData:function(){return this._data},setData:function(t){this._data=t}});z(xT,Ph),xT.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});var _T=N;function bT(t,e,n,i,r,o){var a=[],s=Yf(e,i)?e.getCalculationInfo("stackResultDimension"):i,l=TT(e,s,t),u=e.indicesOfNearest(s,l)[0];a[r]=e.get(n,u),a[o]=e.get(i,u);var h=Sl(e.get(i,u));return(h=Math.min(h,20))>=0&&(a[o]=+a[o].toFixed(h)),a}var wT=j,MT={min:wT(bT,"min"),max:wT(bT,"max"),average:wT(bT,"average")};function ST(t,e){var n=t.getData(),i=t.coordinateSystem;if(e&&!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!Y(e.coord)&&i){var r=i.dimensions,o=IT(e,n,i,t);if((e=A(e)).type&&MT[e.type]&&o.baseAxis&&o.valueAxis){var a=_T(r,o.baseAxis.dim),s=_T(r,o.valueAxis.dim);e.coord=MT[e.type](n,o.baseDataDim,o.valueDataDim,a,s),e.value=e.coord[s]}else{for(var l=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],u=0;u<2;u++)MT[l[u]]&&(l[u]=TT(n,n.mapDimension(r[u]),l[u]));e.coord=l}}return e}function IT(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(function(t,e){var n=t.getData(),i=n.dimensions;e=n.getDimension(e);for(var r=0;r=0&&"number"==typeof s&&(s=+s.toFixed(Math.min(f,20))),c.coord[u]=d.coord[u]=s,i=[c,d,{type:o,valueIndex:i.valueIndex,value:s}]}return(i=[ST(t,i[0]),ST(t,i[1]),C({},i[2])])[2].type=i[2].type||"",D(i[2],i[0]),D(i[2],i[1]),i};function PT(t){return!isNaN(t)&&!isFinite(t)}function OT(t,e,n,i){var r=1-t,o=i.dimensions[t];return PT(e[r])&&PT(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function NT(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(OT(1,n,i,t)||OT(0,n,i,t)))return!0}return AT(t,e[0])&&AT(t,e[1])}function ET(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=bl(s.get("x"),r.getWidth()),u=bl(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var h=a.dimensions,c=t.get(h[0],e),d=t.get(h[1],e);o=a.dataToPoint([c,d])}if("cartesian2d"===a.type){var f=a.getAxis("x"),p=a.getAxis("y");h=a.dimensions,PT(t.get(h[0],e))?o[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):PT(t.get(h[1],e))&&(o[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}CT.extend({type:"markLine",updateTransform:function(t,e,n){e.eachSeries(function(t){var e=t.markLineModel;if(e){var i=e.getData(),r=e.__from,o=e.__to;r.each(function(e){ET(r,e,!0,t,n),ET(o,e,!1,t,n)}),i.each(function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},renderSeries:function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new O_);this.group.add(l.group);var u=function(t,e,n){var i;i=t?V(t&&t.dimensions,function(t){return L({name:t},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{})}):[{name:"value",type:"float"}];var r=new Tf(i,n),o=new Tf(i,n),a=new Tf([],n),s=V(n.get("data"),j(kT,e,t,n));t&&(s=G(s,j(NT,t)));var l=t?DT:function(t){return t.value};return r.initData(V(s,function(t){return t[0]}),null,l),o.initData(V(s,function(t){return t[1]}),null,l),a.initData(V(s,function(t){return t[2]})),a.hasItemOption=!0,{from:r,to:o,line:a}}(r,t,e),h=u.from,c=u.to,d=u.line;e.__from=h,e.__to=c,e.setData(d);var f=e.get("symbol"),p=e.get("symbolSize");function g(e,n,r){var o=e.getItemModel(n);ET(e,n,r,t,i),e.setItemVisual(n,{symbolSize:o.get("symbolSize")||p[r?0:1],symbol:o.get("symbol",!0)||f[r?0:1],color:o.get("itemStyle.color")||a.getVisual("color")})}Y(f)||(f=[f,f]),"number"==typeof p&&(p=[p,p]),u.from.each(function(t){g(h,t,!0),g(c,t,!1)}),d.each(function(t){var e=d.getItemModel(t).get("lineStyle.color");d.setItemVisual(t,{color:e||h.getItemVisual(t,"color")}),d.setItemLayout(t,[h.getItemLayout(t),c.getItemLayout(t)]),d.setItemVisual(t,{fromSymbolSize:h.getItemVisual(t,"symbolSize"),fromSymbol:h.getItemVisual(t,"symbol"),toSymbolSize:c.getItemVisual(t,"symbolSize"),toSymbol:c.getItemVisual(t,"symbol")})}),l.updateData(d),u.line.eachItemGraphicEl(function(t,n){t.traverse(function(t){t.dataModel=e})}),l.__keep=!0,l.group.silent=e.get("silent")||t.get("silent")}}),$d(function(t){t.markLine=t.markLine||{}}),xT.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});var zT=function(t,e,n,i){var r=ST(t,i[0]),o=ST(t,i[1]),a=$,s=r.coord,l=o.coord;s[0]=a(s[0],-1/0),s[1]=a(s[1],-1/0),l[0]=a(l[0],1/0),l[1]=a(l[1],1/0);var u=T([{},r,o]);return u.coord=[r.coord,o.coord],u.x0=r.x,u.y0=r.y,u.x1=o.x,u.y1=o.y,u};function RT(t){return!isNaN(t)&&!isFinite(t)}function BT(t,e,n,i){var r=1-t;return RT(e[r])&&RT(n[r])}function VT(t,e){var n=e.coord[0],i=e.coord[1];return!("cartesian2d"!==t.type||!n||!i||!BT(1,n,i)&&!BT(0,n,i))||AT(t,{coord:n,x:e.x0,y:e.y0})||AT(t,{coord:i,x:e.x1,y:e.y1})}function FT(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=bl(s.get(n[0]),r.getWidth()),u=bl(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(n,e));else{var h=[f=t.get(n[0],e),p=t.get(n[1],e)];a.clampData&&a.clampData(h,h),o=a.dataToPoint(h,!0)}if("cartesian2d"===a.type){var c=a.getAxis("x"),d=a.getAxis("y"),f=t.get(n[0],e),p=t.get(n[1],e);RT(f)?o[0]=c.toGlobalCoord(c.getExtent()["x0"===n[0]?0:1]):RT(p)&&(o[1]=d.toGlobalCoord(d.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var GT=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];CT.extend({type:"markArea",updateTransform:function(t,e,n){e.eachSeries(function(t){var e=t.markAreaModel;if(e){var i=e.getData();i.each(function(e){var r=V(GT,function(r){return FT(i,e,r,t,n)});i.setItemLayout(e,r),i.getItemGraphicEl(e).setShape("points",r)})}},this)},renderSeries:function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new On});this.group.add(l.group),l.__keep=!0;var u=function(t,e,n){var i,r;t?(i=V(t&&t.dimensions,function(t){var n=e.getData();return L({name:t},n.getDimensionInfo(n.mapDimension(t))||{})}),r=new Tf(V(["x0","y0","x1","y1"],function(t,e){return{name:t,type:i[e%2].type}}),n)):r=new Tf(i=[{name:"value",type:"float"}],n);var o=V(n.get("data"),j(zT,e,t,n));t&&(o=G(o,j(VT,t)));var a=t?function(t,e,n,i){return t.coord[Math.floor(i/2)][i%2]}:function(t){return t.value};return r.initData(o,null,a),r.hasItemOption=!0,r}(r,t,e);e.setData(u),u.each(function(e){u.setItemLayout(e,V(GT,function(n){return FT(u,e,n,t,i)})),u.setItemVisual(e,{color:a.getVisual("color")})}),u.diff(l.__data).add(function(t){var e=new Za({shape:{points:u.getItemLayout(t)}});u.setItemGraphicEl(t,e),l.group.add(e)}).update(function(t,n){var i=l.__data.getItemGraphicEl(n);$s(i,{shape:{points:u.getItemLayout(t)}},e,t),l.group.add(i),u.setItemGraphicEl(t,i)}).remove(function(t){var e=l.__data.getItemGraphicEl(t);l.group.remove(e)}).execute(),u.eachItemGraphicEl(function(t,n){var i=u.getItemModel(n),r=i.getModel("label"),o=i.getModel("emphasis.label"),a=u.getItemVisual(n,"color");t.useStyle(L(i.getModel("itemStyle").getItemStyle(),{fill:$e(a,.4),stroke:a})),t.hoverStyle=i.getModel("emphasis.itemStyle").getItemStyle(),js(t.style,t.hoverStyle,r,o,{labelFetcher:e,labelDataIndex:n,defaultText:u.getName(n)||"",isRectText:!0,autoColor:a}),Fs(t,{}),t.dataModel=e}),l.__data=u,l.group.silent=e.get("silent")||t.get("silent")}}),$d(function(t){t.markArea=t.markArea||{}});var WT=lf({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{}},mergeOption:function(t){WT.superCall(this,"mergeOption",t)},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}});function HT(t,e,n){var i,r={},o="toggleSelected"===t;return n.eachComponent("legend",function(n){o&&null!=i?n[i?"select":"unSelect"](e.name):(n[t](e.name),i=n.isSelected(e.name)),B(n.getData(),function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);r.hasOwnProperty(e)?r[e]=r[e]&&i:r[e]=i}})}),{name:e.name,selected:r}}ef("legendToggleSelect","legendselectchanged",j(HT,"toggleSelected")),ef("legendSelect","legendselected",j(HT,"select")),ef("legendUnSelect","legendunselected",j(HT,"unSelect"));var jT=j,YT=B,ZT=On,UT=uf({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new ZT),this._backgroundEl,this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},render:function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left"),this.renderInner(r,t,e,n);var o=t.getBoxLayoutParams(),a={width:n.getWidth(),height:n.getHeight()},s=t.get("padding"),l=su(o,a,s),u=this.layoutInner(t,r,l,i),h=su(L({width:u.width,height:u.height},o),a,s);this.group.attr("position",[h.x-u.x,h.y-u.y]),this.group.add(this._backgroundEl=dA(u,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl)},renderInner:function(t,e,n,i){var r=this.getContentGroup(),o=ht(),a=e.get("selectedMode"),s=[];n.eachRawSeries(function(t){!t.get("legendHoverLink")&&s.push(t.id)}),YT(e.getData(),function(l,u){var h=l.get("name");if(this.newlineDisabled||""!==h&&"\n"!==h){var d=n.getSeriesByName(h)[0];if(!o.get(h)){if(d){var f=d.getData(),p=f.getVisual("color");"function"==typeof p&&(p=p(d.getDataParams(0)));var g=f.getVisual("legendSymbol")||"roundRect",m=f.getVisual("symbol");this._createItem(h,u,l,e,g,m,t,p,a).on("click",jT(XT,h,i)).on("mouseover",jT(qT,d.name,null,i,s)).on("mouseout",jT(KT,d.name,null,i,s)),o.set(h,!0)}else n.eachRawSeries(function(n){if(!o.get(h)&&n.legendDataProvider){var r=n.legendDataProvider(),c=r.indexOfName(h);if(c<0)return;var d=r.getItemVisual(c,"color");this._createItem(h,u,l,e,"roundRect",null,t,d,a).on("click",jT(XT,h,i)).on("mouseover",jT(qT,null,h,i,s)).on("mouseout",jT(KT,null,h,i,s)),o.set(h,!0)}},this);c&&(o.get(h)||console.warn(h+" series not exists. Legend data should be same with series name or data name."))}}else r.add(new ZT({newline:!0}))},this)},_createItem:function(t,e,n,i,r,o,a,s,l){var u=i.get("itemWidth"),h=i.get("itemHeight"),c=i.get("inactiveColor"),d=i.get("symbolKeepAspect"),f=i.isSelected(t),p=new ZT,g=n.getModel("textStyle"),m=n.get("icon"),v=n.getModel("tooltip"),y=v.parentModel;if(r=m||r,p.add(Jp(r,0,0,u,h,f?s:c,null==d||d)),!m&&o&&(o!==r||"none"===o)){var x=.8*h;"none"===o&&(o="circle"),p.add(Jp(o,(u-x)/2,(h-x)/2,x,x,f?s:c,null==d||d))}var _="left"===a?u+5:-5,b=a,w=i.get("formatter"),M=t;"string"==typeof w&&w?M=w.replace("{name}",null!=t?t:""):"function"==typeof w&&(M=w(t)),p.add(new za({style:Ys({},g,{text:M,x:_,y:h/2,textFill:f?g.getTextColor():c,textAlign:b,textVerticalAlign:"middle"})}));var S=new $a({shape:p.getBoundingRect(),invisible:!0,tooltip:v.get("show")?C({content:t,formatter:y.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:i.componentIndex,name:t,$vars:["name"]}},v.option):null});return p.add(S),p.eachChild(function(t){t.silent=!0}),S.silent=!l,this.getContentGroup().add(p),Fs(p),p.__legendDataIndex=e,p},layoutInner:function(t,e,n){var i=this.getContentGroup();au(t.get("orient"),i,t.get("itemGap"),n.width,n.height);var r=i.getBoundingRect();return i.attr("position",[-r.x,-r.y]),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function XT(t,e){e.dispatchAction({type:"legendToggleSelect",name:t})}function qT(t,e,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function KT(t,e,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}tf(function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;nn[l],p=[-c.x,-c.y];i||(p[s]=r.position[s]);var g=[0,0],m=[-d.x,-d.y],v=tt(t.get("pageButtonGap",!0),t.get("itemGap",!0));f&&("end"===t.get("pageButtonPosition",!0)?m[s]+=n[l]-d[l]:g[s]+=d[l]+v),m[1-s]+=c[u]/2-d[u]/2,r.attr("position",p),o.attr("position",g),a.attr("position",m);var y=this.group.getBoundingRect();if((y={x:0,y:0})[l]=f?n[l]:c[l],y[u]=Math.max(c[u],d[u]),y[h]=Math.min(0,d[h]+m[1-s]),o.__rectSize=n[l],f){var x={x:0,y:0};x[l]=Math.max(n[l]-d[l]-v,0),x[u]=y[u],o.setClipPath(new $a({shape:x})),o.__rectSize=x[l]}else a.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var _=this._getPageInfo(t);return null!=_.pageIndex&&$s(r,{position:_.contentPosition},!!f&&t),this._updatePageInfoView(t,_),y},_pageGo:function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},_updatePageInfoView:function(t,e){var n=this._controllerGroup;B(["pagePrev","pageNext"],function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")});var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",U(r)?r.replace("{current}",a).replace("{total}",s):r({current:a,total:s}))},_getPageInfo:function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=tC[r],a=eC[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],h=l.length,c=h?1:0,d={contentPosition:n.position.slice(),pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var f=y(u);d.contentPosition[r]=-f.s;for(var p=s+1,g=f,m=f,v=null;p<=h;++p)(!(v=y(l[p]))&&m.e>g.s+i||v&&!x(v,g.s))&&(g=m.i>g.i?m:v)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),m=v;for(p=s-1,g=f,m=f,v=null;p>=-1;--p)(v=y(l[p]))&&x(m,v.s)||!(g.i=e&&t.s<=e+i}},_findTargetItemIndex:function(t){var e,n=this.getContentGroup();return this._showController?n.eachChild(function(n,i){n.__legendDataIndex===t&&(e=i)}):e=0,e}});ef("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})}),lD.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}});var iC=$a,rC=_l,oC=Ml,aC=H,sC=B,lC="horizontal",uC=5,hC=["line","bar","candlestick","scatter"],cC=cD.extend({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,n,i){cC.superApply(this,"render",arguments),uc(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),!1!==this.dataZoomModel.get("show")?(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){cC.superApply(this,"remove",arguments),hc(this,"_dispatchZoomAction")},dispose:function(){cC.superApply(this,"dispose",arguments),hc(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new On;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,n=this._findCoordRect(),i={width:e.getWidth(),height:e.getHeight()},r=this._orient===lC?{right:i.width-n.x-n.width,top:i.height-30-7,width:n.width,height:30}:{right:7,top:n.y,width:30,height:n.height},o=hu(t.option);B(["right","top","width","height"],function(t){"ph"===o[t]&&(o[t]=r[t])});var a=su(o,i,t.padding);this._location={x:a.x,y:a.y},this._size=[a.width,a.height],"vertical"===this._orient&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.barGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==lC||r?n===lC&&r?{scale:a?[-1,1]:[-1,-1]}:"vertical"!==n||r?{scale:a?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:a?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:a?[1,1]:[1,-1]});var s=t.getBoundingRect([o]);t.attr("position",[e.x-s.x,e.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.barGroup;n.add(new iC({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),n.add(new iC({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:H(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,n=t.series,i=n.getRawData(),r=n.getShadowDim?n.getShadowDim():t.otherDim;if(null!=r){var o=i.getDataExtent(r),a=.3*(o[1]-o[0]);o=[o[0]-a,o[1]+a];var s,l=[0,e[1]],u=[0,e[0]],h=[[e[0],0],[0,0]],c=[],d=u[1]/(i.count()-1),f=0,p=Math.round(i.count()/e[0]);i.each([r],function(t,e){if(p>0&&e%p)f+=d;else{var n=null==t||isNaN(t)||""===t,i=n?0:rC(t,o,l,!0);n&&!s&&e?(h.push([h[h.length-1][0],0]),c.push([c[c.length-1][0],0])):!n&&s&&(h.push([f,0]),c.push([f,0])),h.push([f,i]),c.push([f,i]),f+=d,s=n}});var g=this.dataZoomModel;this._displayables.barGroup.add(new Za({shape:{points:h},style:L({fill:g.get("dataBackgroundColor")},g.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new Ua({shape:{points:c},style:g.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis(function(r,o){B(t.getAxisProxy(r.name,o).getTargetSeriesModels(),function(t){if(!(n||!0!==e&&N(hC,t.get("type"))<0)){var a,s=i.getComponent(r.axis,o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[r.name],u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:r.name,otherDim:l,otherAxisInverse:a}}},this)},this),n}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],n=t.handleLabels=[],i=this._displayables.barGroup,r=this._size,o=this.dataZoomModel;i.add(t.filler=new iC({draggable:!0,cursor:dC(this._orient),drift:aC(this._onDragMove,this,"all"),onmousemove:function(t){qt(t.event)},ondragstart:aC(this._showDataInfo,this,!0),ondragend:aC(this._onDragEnd,this),onmouseover:aC(this._showDataInfo,this,!0),onmouseout:aC(this._showDataInfo,this,!1),style:{fill:o.get("fillerColor"),textPosition:"inside"}})),i.add(new iC({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{stroke:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),sC([0,1],function(t){var r=al(o.get("handleIcon"),{cursor:dC(this._orient),draggable:!0,drift:aC(this._onDragMove,this,t),onmousemove:function(t){qt(t.event)},ondragend:aC(this._onDragEnd,this),onmouseover:aC(this._showDataInfo,this,!0),onmouseout:aC(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),a=r.getBoundingRect();this._handleHeight=bl(o.get("handleSize"),this._size[1]),this._handleWidth=a.width/a.height*this._handleHeight,r.setStyle(o.getModel("handleStyle").getItemStyle());var s=o.get("handleColor");null!=s&&(r.style.fill=s),i.add(e[t]=r);var l=o.textStyleModel;this.group.add(n[t]=new za({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:l.getTextColor(),textFont:l.getFont()},z2:10}))},this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[rC(t[0],[0,100],e,!0),rC(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];hb(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?rC(o.minSpan,a,r,!0):null,null!=o.maxSpan?rC(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=oC([rC(i[0],r,a,!0),rC(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(t){var e=this._displayables,n=this._handleEnds,i=oC(n.slice()),r=this._size;sC([0,1],function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scale:[o/2,o/2],position:[n[t],r[1]/2-o/2]})},this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=t?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var h=oC(this._handleEnds.slice());function c(t){var e=el(n.handles[t].parent,this.group),a=il(0===t?"right":"left",e),s=this._handleWidth/2+uC,l=nl([h[t]+(0===t?-s:s),this._size[1]/2],e);i[t].setStyle({x:l[0],y:l[1],textVerticalAlign:r===lC?"middle":a,textAlign:r===lC?a:"center",text:o[t]})}c.call(this,0),c.call(this,1)},_formatLabel:function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");null!=r&&"auto"!==r||(r=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(r,20));return Z(i)?i(t,o):U(i)?i.replace("{value}",o):o},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,n){this._dragging=!0;var i=nl([e,n],this._displayables.barGroup.getLocalTransform(),!0),r=this._updateInterval(t,i[0]),o=this.dataZoomModel.get("realtime");this._updateView(!o),r&&o&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,n=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var t;if(sC(this.getTargetCoordInfo(),function(e){if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}}),!t){var e=this.api.getWidth(),n=this.api.getHeight();t={x:.2*e,y:.2*n,width:.6*e,height:.6*n}}return t}});function dC(t){return"vertical"===t?"ns-resize":"ew-resize"}lD.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});var fC="\0_ec_dataZoom_roams";function pC(t,e){var n=vC(t),i=e.dataZoomId,r=e.coordId;B(n,function(t,n){var o=t.dataZoomInfos;o[i]&&N(e.allCoordIds,r)<0&&(delete o[i],t.count--)}),yC(n);var o=n[r];o||((o=n[r]={coordId:r,dataZoomInfos:{},count:0}).controller=function(t,e){var n=new oy(t.getZr());return B(["pan","zoom","scrollMove"],function(t){n.on(t,function(n){var i=[];B(e.dataZoomInfos,function(r){if(n.isAvailableBehavior(r.dataZoomModel.option)){var o=(r.getRange||{})[t],a=o&&o(e.controller,n);!r.dataZoomModel.get("disabled",!0)&&a&&i.push({dataZoomId:r.dataZoomId,start:a[0],end:a[1]})}}),i.length&&e.dispatchAction(i)})}),n}(t,o),o.dispatchAction=j(xC,t)),!o.dataZoomInfos[i]&&o.count++,o.dataZoomInfos[i]=e;var a,s,l,u,h=(a=o.dataZoomInfos,l={type_true:2,type_move:1,type_false:0,type_undefined:-1},u=!0,B(a,function(t){var e=t.dataZoomModel,n=!e.get("disabled",!0)&&(!e.get("zoomLock",!0)||"move");l["type_"+n]>l["type_"+s]&&(s=n),u&=e.get("preventDefaultMouseMove",!0)}),{controlType:s,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!u}});o.controller.enable(h.controlType,h.opt),o.controller.setPointerChecker(e.containsPoint),uc(o,"dispatchAction",e.dataZoomModel.get("throttle",!0),"fixRate")}function gC(t,e){var n=vC(t);B(n,function(t){t.controller.dispose();var n=t.dataZoomInfos;n[e]&&(delete n[e],t.count--)}),yC(n)}function mC(t){return t.type+"\0_"+t.id}function vC(t){var e=t.getZr();return e[fC]||(e[fC]={})}function yC(t){B(t,function(e,n){e.count||(e.controller.dispose(),delete t[n])})}function xC(t,e){t.dispatchAction({type:"dataZoom",batch:e})}var _C=H,bC=cD.extend({type:"dataZoom.inside",init:function(t,e){this._range},render:function(t,e,n,i){bC.superApply(this,"render",arguments),this._range=t.getPercentRange(),B(this.getTargetCoordInfo(),function(e,i){var r=V(e,function(t){return mC(t.model)});B(e,function(e){var o=e.model,a={};B(["pan","zoom","scrollMove"],function(t){a[t]=_C(wC[t],this,e,i)},this),pC(n,{coordId:mC(o),allCoordIds:r,containsPoint:function(t,e,n){return o.coordinateSystem.containPoint([e,n])},dataZoomId:t.id,dataZoomModel:t,getRange:a})},this)},this)},dispose:function(){gC(this.api,this.dataZoomModel.id),bC.superApply(this,"dispose",arguments),this._range=null}}),wC={zoom:function(t,e,n,i){var r=this._range,o=r.slice(),a=t.axisModels[0];if(a){var s=SC[e](null,[i.originX,i.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return hb(0,o,[0,100],0,h.minSpan,h.maxSpan),this._range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:MC(function(t,e,n,i,r,o){var a=SC[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:MC(function(t,e,n,i,r,o){return SC[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta})};function MC(t){return function(e,n,i,r){var o=this._range,a=o.slice(),s=e.axisModels[0];if(s){var l=t(a,s,e,n,i,r);return hb(l,a,[0,100],"all"),this._range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var SC={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},IC=B,AC=function(t){var e=t&&t.visualMap;Y(e)||(e=e?[e]:[]),IC(e,function(t){if(t){DC(t,"splitList")&&!DC(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&Y(e)&&IC(e,function(t){X(t)&&(DC(t,"start")&&!DC(t,"min")&&(t.min=t.start),DC(t,"end")&&!DC(t,"max")&&(t.max=t.end))})}})};function DC(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}gu.registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"});var TC=dd.VISUAL.COMPONENT;function CC(t,e,n,i){for(var r=e.targetVisuals[i],o=Bx.prepareVisualTypes(r),a={color:t.getData().getVisual("color")},s=0,l=o.length;s"],Y(t)&&(t=t.slice(),i=!0),r=e?t:i?[u(t[0]),u(t[1])]:u(t),U(l)?l.replace("{value}",i?r[0]:r).replace("{value2}",i?r[1]:r):Z(l)?i?l(t[0],t[1]):l(t):i?t[0]===s[0]?n[0]+" "+r[1]:t[1]===s[1]?n[1]+" "+r[0]:r[0]+" - "+r[1]:r;function u(t){return t===s[0]?"min":t===s[1]?"max":(+t).toFixed(Math.min(a,20))}},resetExtent:function(){var t=this.option,e=zC([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension,n=t.dimensions;if(null!=e||n.length){if(null!=e)return t.getDimension(e);for(var i=t.dimensions,r=i.length-1;r>=0;r--){var o=i[r];if(!t.getDimensionInfo(o).isCalculationCoord)return o}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});D(i,n),D(r,n);var o=this.isCategory();function a(n){NC(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")},EC(this.stateList,function(t){var e=n[t];if(U(e)){var i=LC.get(e,"active",o);i?(n[t]={},n[t][e]=i):delete n[t]}},this)}a.call(this,i),a.call(this,r),function(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},EC(i,function(t,e){if(Bx.isValidType(e)){var n=LC.get(e,"inactive",o);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}}))}.call(this,i,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor");EC(this.stateList,function(r){var a=this.itemSize,s=t[r];s||(s=t[r]={color:o?i:[i]}),null==s.symbol&&(s.symbol=e&&A(e)||(o?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=n&&A(n)||(o?a[0]:[a[0],a[0]])),s.symbol=PC(s.symbol,function(t){return"none"===t||"square"===t?"roundRect":t});var l=s.symbolSize;if(null!=l){var u=-1/0;OC(l,function(t){t>u&&(u=t)}),s.symbolSize=PC(l,function(t){return RC(t,[0,u],[0,a[0]],!0)})}},this)}.call(this,r)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:dt,getValueState:dt,getVisualMeta:dt}),VC=[20,140],FC=BC.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(t,e){FC.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){FC.superApply(this,"resetItemSize",arguments);var t=this.itemSize;"horizontal"===this._orient&&t.reverse(),(null==t[0]||isNaN(t[0]))&&(t[0]=VC[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=VC[1])},_resetRange:function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):Y(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){BC.prototype.completeVisualOption.apply(this,arguments),B(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)},this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=Ml((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)},this),e.push({seriesId:n.id,dataIndex:i})},this),e},getVisualMeta:function(t){var e=GC(0,0,this.getExtent()),n=GC(0,0,this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;at[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:r/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},_createBarPoints:function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new On("horizontal"!==e||n?"horizontal"===e&&n?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||n?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels;ZC([0,1],function(a){var s=r[a];s.setStyle("fill",e.handlesColor[a]),s.position[1]=t[a];var l=nl(n.handleLabelPoints[a],el(s,this.group));o[a].setStyle({x:l[0],y:l[1],text:i.formatValueText(this._dataInterval[a]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===a?"bottom":"top":"left",n.barGroup)})},this)}},_showIndicator:function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=YC(t,o,s,!0),u=this._shapes,h=u.indicator;if(h){h.position[1]=l,h.attr("invisible",!1),h.setShape("points",function(t,e,n,i){return t?[[0,-UC(e,XC(n,0))],[KC,0],[0,UC(e,XC(i-n,0))]]:[[0,0],[5,-5],[5,5]]}(!!n,i,l,a[1]));var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0});h.setStyle("fill",c);var d=nl(u.indicatorLabelPoint,el(h,this.group)),f=u.indicatorLabel;f.attr("invisible",!1);var p=this._applyTransform("left",u.barGroup),g=this._orient;f.setStyle({text:(n||"")+r.formatValueText(e),textVerticalAlign:"horizontal"===g?p:"middle",textAlign:"horizontal"===g?"center":p,x:d[0],y:d[1]})}},_enableHoverLinkToSeries:function(){var t=this;this._shapes.barGroup.on("mousemove",function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);i[1]=UC(XC(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();t=UC(XC(r[0],t),r[1]);var a=function(t,e,n){var i=qC/2,r=t.get("hoverLinkDataSize");return r&&(i=YC(r,e,n,!0)/2),i}(n,o,r),s=[t-a,t+a],l=YC(t,r,o,!0),u=[YC(s[0],r,o,!0),YC(s[1],r,o,!0)];s[0]r[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var h=this._hoverLinkDataIndices,c=[];(e||$C(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=function(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(t){this.option.selected=A(t)},getValueState:function(t){var e=Bx.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),function(e,n){Bx.findPieceIndex(e,this._pieceList)===t&&i.push(n)},this),e.push({seriesId:n.id,dataIndex:i})},this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},getVisualMeta:function(t){if(!this.isCategory()){var e=[],n=[],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return B(r,function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])},this),{stops:e,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}}}),nL={splitNumber:function(){var t=this.option,e=this._pieceList,n=Math.min(t.precision,20),i=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;t.precision=n,o=+o.toFixed(n);var a=0;t.minOpen&&e.push({index:a++,interval:[-1/0,i[0]],close:[0,0]});for(var s=i[0],l=a+r;ao[1]&&console.warn("Piece "+n+"is illegal: "+o+" lower bound should not greater then uppper bound."),o[0]===o[1]&&a[0]&&a[1]&&(i.value=o[0])}i.visual=Bx.retrieveVisuals(t),e.push(i)},this),iL(t,e),zl(e),B(e,function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)},this)}};function iL(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}WC.extend({type:"visualMap.piecewise",doRender:function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,h=$(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,h,a),B(l.viewPieceList,function(i){var l=i.piece,u=new On;u.onclick=H(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var c=e.getRepresentValue(l);if(this._createItemSymbol(u,c,[0,0,s[0],s[1]]),h){var d=this.visualMapModel.getValueState(c);u.add(new za({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,textVerticalAlign:"middle",textAlign:a,textFont:r,textFill:o,opacity:"outOfRange"===d?.5:1}}))}t.add(u)},this),u&&this._renderEndsText(t,u[1],s,h,a),au(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},_enableHoverLink:function(t,e){function n(t){var n=this.visualMapModel;n.option.hoverLink&&this.api.dispatchAction({type:t,batch:jC(n.findTargetDataIndices(e),n)})}t.on("mouseover",H(n,this,"highlight")).on("mouseout",H(n,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return HC(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},_renderEndsText:function(t,e,n,i,r){if(e){var o=new On,a=this.visualMapModel.textStyleModel;o.add(new za({style:{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:i?r:"center",text:e,textFont:a.getFont(),textFill:a.getTextColor()}})),t.add(o)}},_getViewData:function(){var t=this.visualMapModel,e=V(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},_createItemSymbol:function(t,e,n){t.add(Jp(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,n=e.option,i=A(n.selected),r=e.getSelectedMapKey(t);"single"===n.selectedMode?(i[r]=!0,B(i,function(t,e){i[e]=e===r})):i[r]=!i[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}}),$d(AC);var rL,oL="urn:schemas-microsoft-com:vml",aL="undefined"==typeof window?null:window,sL=!1,lL=aL&&aL.document;function uL(t){return rL(t)}if(lL&&!p.canvasSupported)try{!lL.namespaces.zrvml&&lL.namespaces.add("zrvml",oL),rL=function(t){return lL.createElement("')}}catch(t){rL=function(t){return lL.createElement("<"+t+' xmlns="'+oL+'" class="zrvml">')}}var hL=Qo.CMD,cL=Math.round,dL=Math.sqrt,fL=Math.abs,pL=Math.cos,gL=Math.sin,mL=Math.max;if(!p.canvasSupported){var vL=21600,yL=vL/2,xL=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=vL+","+vL,t.coordorigin="0,0"},_L=function(t,e,n){return"rgb("+[t,e,n].join(",")+")"},bL=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},wL=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},ML=function(t,e,n){return 1e5*(parseFloat(t)||0)+1e3*(parseFloat(e)||0)+n},SL=function(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t},IL=function(t,e,n){var i=je(e);n=+n,isNaN(n)&&(n=1),i&&(t.color=_L(i[0],i[1],i[2]),t.opacity=n*i[3])},AL=function(t){var e=je(t);return[_L(e[0],e[1],e[2]),e[3]]},DL=function(t,e,n,i){var r="fill"===e,o=t.getElementsByTagName(e)[0];null!=n[e]&&"none"!==n[e]&&(r||!r&&n.lineWidth)?(t[r?"filled":"stroked"]="true",n[e]instanceof ss&&wL(t,o),o||(o=uL(e)),r?function(t,e,n){var i=e.fill;if(null!=i)if(i instanceof ss){var r,o=0,a=[0,0],s=0,l=1,u=n.getBoundingRect(),h=u.width,c=u.height;if("linear"===i.type){r="gradient";var d=n.transform,f=[i.x*h,i.y*c],p=[i.x2*h,i.y2*c];d&&(Ot(f,f,d),Ot(p,p,d));var g=p[0]-f[0],m=p[1]-f[1];(o=180*Math.atan2(g,m)/Math.PI)<0&&(o+=360),o<1e-6&&(o=0)}else{r="gradientradial",f=[i.x*h,i.y*c],d=n.transform;var v=n.scale,y=h,x=c;a=[(f[0]-u.x)/y,(f[1]-u.y)/x],d&&Ot(f,f,d),y/=v[0]*vL,x/=v[1]*vL;var _=mL(y,x);s=0/_,l=2*i.r/_-s}var b=i.colorStops.slice();b.sort(function(t,e){return t.offset-e.offset});for(var w=b.length,M=[],S=[],I=0;I=2){var T=M[0][0],C=M[1][0],L=M[0][1]*e.opacity,k=M[1][1]*e.opacity;t.type=r,t.method="none",t.focus="100%",t.angle=o,t.color=T,t.color2=C,t.colors=S.join(","),t.opacity=k,t.opacity2=L}"radial"===r&&(t.focusposition=a.join(","))}else IL(t,i,e.opacity)}(o,n,i):function(t,e){null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof ss||IL(t,e.stroke,e.opacity)}(o,n),bL(t,o)):(t[r?"filled":"stroked"]="false",wL(t,o))},TL=[[],[],[]];ya.prototype.brushVML=function(t){var e=this.style,n=this._vmlEl;n||(n=uL("shape"),xL(n),this._vmlEl=n),DL(n,"fill",e,this),DL(n,"stroke",e,this);var i=this.transform,r=null!=i,o=n.getElementsByTagName("stroke")[0];if(o){var a=e.lineWidth;if(r&&!e.strokeNoScale){var s=i[0]*i[3]-i[1]*i[2];a*=dL(fL(s))}o.weight=a+"px"}var l=this.path||(this.path=new Qo);this.__dirtyPath&&(l.beginPath(),l.subPixelOptimize=!1,this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),n.path=function(t,e){var n,i,r,o,a,s,l=hL.M,u=hL.C,h=hL.L,c=hL.A,d=hL.Q,f=[],p=t.data,g=t.len();for(o=0;o.01?O&&(N+=.0125):Math.abs(E-T)<1e-4?O&&ND?x-=.0125:x+=.0125:O&&ET?y+=.0125:y-=.0125),f.push(z,cL(((D-C)*S+w)*vL-yL),",",cL(((T-L)*I+M)*vL-yL),",",cL(((D+C)*S+w)*vL-yL),",",cL(((T+L)*I+M)*vL-yL),",",cL((N*S+w)*vL-yL),",",cL((E*I+M)*vL-yL),",",cL((y*S+w)*vL-yL),",",cL((x*I+M)*vL-yL)),a=y,s=x;break;case hL.R:var R=TL[0],B=TL[1];R[0]=p[o++],R[1]=p[o++],B[0]=R[0]+p[o++],B[1]=R[1]+p[o++],e&&(Ot(R,R,e),Ot(B,B,e)),R[0]=cL(R[0]*vL-yL),B[0]=cL(B[0]*vL-yL),R[1]=cL(R[1]*vL-yL),B[1]=cL(B[1]*vL-yL),f.push(" m ",R[0],",",R[1]," l ",B[0],",",R[1]," l ",B[0],",",B[1]," l ",R[0],",",B[1]);break;case hL.Z:f.push(" x ")}if(n>0){f.push(i);for(var V=0;V100&&(kL=0,LL={});var n,i=PL.style;try{i.font=t,n=i.fontFamily.split(",")[0]}catch(t){}e={style:i.fontStyle||"normal",variant:i.fontVariant||"normal",weight:i.fontWeight||"normal",size:0|parseFloat(i.fontSize||12),family:n||"Microsoft YaHei"},LL[t]=e,kL++}return e}(r.font),m=g.style+" "+g.variant+" "+g.weight+" "+g.size+'px "'+g.family+'"';n=n||yi(o,m,f,p,r.textPadding,r.textLineHeight);var v=this.transform;if(v&&!i&&(OL.copy(e),OL.applyTransform(v),e=OL),i)c=e.x,d=e.y;else{var y=r.textPosition,x=r.textDistance;if(y instanceof Array)c=e.x+SL(y[0],e.width),d=e.y+SL(y[1],e.height),f=f||"left";else{var _=bi(y,e,x);c=_.x,d=_.y,f=f||_.textAlign,p=p||_.textVerticalAlign}}c=xi(c,n.width,f),d=_i(d,n.height,p),d+=n.height/2;var b,w,M,S=uL,I=this._textVmlEl;I?w=(b=(M=I.firstChild).nextSibling).nextSibling:(I=S("line"),b=S("path"),w=S("textpath"),M=S("skew"),w.style["v-text-align"]="left",xL(I),b.textpathok=!0,w.on=!0,I.from="0 0",I.to="1000 0.05",bL(I,M),bL(I,b),bL(I,w),this._textVmlEl=I);var A=[c,d],D=I.style;v&&i?(Ot(A,A,v),M.on=!0,M.matrix=v[0].toFixed(3)+","+v[2].toFixed(3)+","+v[1].toFixed(3)+","+v[3].toFixed(3)+",0,0",M.offset=(cL(A[0])||0)+","+(cL(A[1])||0),M.origin="0 0",D.left="0px",D.top="0px"):(M.on=!1,D.left=cL(c)+"px",D.top=cL(d)+"px"),w.string=String(o).replace(/&/g,"&").replace(/"/g,""");try{w.style.font=m}catch(t){}DL(I,"fill",{fill:r.textFill,opacity:r.opacity},this),DL(I,"stroke",{stroke:r.textStroke,opacity:r.opacity,lineDash:r.lineDash},this),I.style.zIndex=ML(this.zlevel,this.z,this.z2),bL(t,I)}},EL=function(t){wL(t,this._textVmlEl),this._textVmlEl=null},zL=function(t){bL(t,this._textVmlEl)},RL=[$i,tr,er,ya,za],BL=0;BL-$L}function nk(t,e){e&&ik(t,"transform","matrix("+YL.call(e,",")+")")}function ik(t,e,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&t.setAttribute(e,n)}function rk(t,e,n,i){if(function(t,e){var n=e?t.textFill:t.fill;return null!=n&&n!==ZL}(e,n)){var r=n?e.textFill:e.fill;r="transparent"===r?ZL:r,"none"!==t.getAttribute("clip-path")&&r===ZL&&(r="rgba(0, 0, 0, 0.002)"),ik(t,"fill",r),ik(t,"fill-opacity",null!=e.fillOpacity?e.fillOpacity*e.opacity:e.opacity)}else ik(t,"fill",ZL);if(function(t,e){var n=e?t.textStroke:t.stroke;return null!=n&&n!==ZL}(e,n)){var o=n?e.textStroke:e.stroke;ik(t,"stroke",o="transparent"===o?ZL:o),ik(t,"stroke-width",(n?e.textStrokeWidth:e.lineWidth)/(!n&&e.strokeNoScale?i.getLineScale():1)),ik(t,"paint-order",n?"stroke":"fill"),ik(t,"stroke-opacity",null!=e.strokeOpacity?e.strokeOpacity:e.opacity),e.lineDash?(ik(t,"stroke-dasharray",e.lineDash.join(",")),ik(t,"stroke-dashoffset",UL(e.lineDashOffset||0))):ik(t,"stroke-dasharray",""),e.lineCap&&ik(t,"stroke-linecap",e.lineCap),e.lineJoin&&ik(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&ik(t,"stroke-miterlimit",e.miterLimit)}else ik(t,"stroke",ZL)}var ok={};ok.brush=function(t){var e=t.style,n=t.__svgEl;n||(n=HL("path"),t.__svgEl=n),t.path||t.createPathProxy();var i=t.path;if(t.__dirtyPath){i.beginPath(),i.subPixelOptimize=!1,t.buildPath(i,t.shape),t.__dirtyPath=!1;var r=function(t){for(var e=[],n=t.data,i=t.len(),r=0;r=QL||!ek(g)&&(d>-KL&&d<0||d>KL)==!!p;var y=tk(s+u*qL(c)),x=tk(l+h*XL(c));m&&(d=p?QL-1e-4:1e-4-QL,v=!0,9===r&&e.push("M",y,x));var _=tk(s+u*qL(c+d)),b=tk(l+h*XL(c+d));e.push("A",tk(u),tk(h),UL(f*JL),+v,+p,_,b);break;case jL.Z:o="Z";break;case jL.R:_=tk(n[r++]),b=tk(n[r++]);var w=tk(n[r++]),M=tk(n[r++]);e.push("M",_,b,"L",_+w,b,"L",_+w,b+M,"L",_,b+M,"L",_,b)}o&&e.push(o);for(var S=0;S=r&&u+1>=o){for(var h=[],c=0;c=r&&c+1>=o)return dk(0,s.components);l[n]=s}else l[n]=void 0}var p;a++}for(;a<=s;){var f=d();if(f)return f}},pushComponent:function(t,e,n){var i=t[t.length-1];i&&i.added===e&&i.removed===n?t[t.length-1]={count:i.count+1,added:e,removed:n}:t.push({count:1,added:e,removed:n})},extractCommon:function(t,e,n,i){for(var r=e.length,o=n.length,a=t.newPos,s=a-i,l=0;a+1=0;--i)if(e[i]===t)return!0;return!1}),n):null:n[0]},pk.prototype.update=function(t,e){if(t){var n=this.getDefs(!1);if(t[this._domName]&&n.contains(t[this._domName]))"function"==typeof e&&e(t);else{var i=this.add(t);i&&(t[this._domName]=i)}}},pk.prototype.addDom=function(t){this.getDefs(!0).appendChild(t)},pk.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},pk.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return B(this._tagNames,function(n){var i=t.getElementsByTagName(n);e=e.concat([].slice.call(i))}),e},pk.prototype.markAllUnused=function(){var t=this.getDoms(),e=this;B(t,function(t){t[e._markLabel]="0"})},pk.prototype.markUsed=function(t){t&&(t[this._markLabel]="1")},pk.prototype.removeUnused=function(){var t=this.getDefs(!1);if(t){var e=this.getDoms(),n=this;B(e,function(e){"1"!==e[n._markLabel]&&t.removeChild(e)})}},pk.prototype.getSvgProxy=function(t){return t instanceof ya?ok:t instanceof er?ak:t instanceof za?sk:ok},pk.prototype.getTextSvgElement=function(t){return t.__textSvgEl},pk.prototype.getSvgElement=function(t){return t.__svgEl},E(gk,pk),gk.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var n=this;B(["fill","stroke"],function(i){if(e.style[i]&&("linear"===e.style[i].type||"radial"===e.style[i].type)){var r,o=e.style[i],a=n.getDefs(!0);o._dom?(r=o._dom,a.contains(o._dom)||n.addDom(r)):r=n.add(o),n.markUsed(e);var s=r.getAttribute("id");t.setAttribute(i,"url(#"+s+")")}})}},gk.prototype.add=function(t){var e;if("linear"===t.type)e=this.createElement("linearGradient");else{if("radial"!==t.type)return _n("Illegal gradient type."),null;e=this.createElement("radialGradient")}return t.id=t.id||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-gradient-"+t.id),this.updateDom(t,e),this.addDom(e),e},gk.prototype.update=function(t){var e=this;pk.prototype.update.call(this,t,function(){var n=t.type,i=t._dom.tagName;"linear"===n&&"linearGradient"===i||"radial"===n&&"radialGradient"===i?e.updateDom(t,t._dom):(e.removeDom(t),e.add(t))})},gk.prototype.updateDom=function(t,e){if("linear"===t.type)e.setAttribute("x1",t.x),e.setAttribute("y1",t.y),e.setAttribute("x2",t.x2),e.setAttribute("y2",t.y2);else{if("radial"!==t.type)return void _n("Illegal gradient type.");e.setAttribute("cx",t.x),e.setAttribute("cy",t.y),e.setAttribute("r",t.r)}t.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var n=t.colorStops,i=0,r=n.length;i0){var i,r,o=this.getDefs(!0),a=e[0],s=n?"_textDom":"_dom";a[s]?(r=a[s].getAttribute("id"),i=a[s],o.contains(i)||o.appendChild(i)):(r="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(i=this.createElement("clipPath")).setAttribute("id",r),o.appendChild(i),a[s]=i);var l=this.getSvgProxy(a);if(a.transform&&a.parent.invTransform&&!n){var u=Array.prototype.slice.call(a.transform);he(a.transform,a.parent.invTransform,a.transform),l.brush(a),a.transform=u}else l.brush(a);var h=this.getSvgElement(a);i.innerHTML="",i.appendChild(h.cloneNode()),t.setAttribute("clip-path","url(#"+r+")"),e.length>1&&this.updateDom(i,e.slice(1),n)}else t&&t.setAttribute("clip-path","none")},mk.prototype.markUsed=function(t){var e=this;t.__clipPaths&&t.__clipPaths.length>0&&B(t.__clipPaths,function(t){t._dom&&pk.prototype.markUsed.call(e,t._dom),t._textDom&&pk.prototype.markUsed.call(e,t._textDom)})},E(vk,pk),vk.prototype.addWithoutUpdate=function(t,e){if(e&&yk(e.style)){var n,i=e.style;i._shadowDom?(n=i._shadowDom,this.getDefs(!0).contains(i._shadowDom)||this.addDom(n)):n=this.add(e),this.markUsed(e);var r=n.getAttribute("id");t.style.filter="url(#"+r+")"}},vk.prototype.add=function(t){var e=this.createElement("filter"),n=t.style;return n._shadowDomId=n._shadowDomId||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-shadow-"+n._shadowDomId),this.updateDom(t,e),this.addDom(e),e},vk.prototype.update=function(t,e){var n=e.style;if(yk(n)){var i=this;pk.prototype.update.call(this,e,function(t){i.updateDom(e,t._shadowDom)})}else this.remove(t,n)},vk.prototype.remove=function(t,e){null!=e._shadowDomId&&(this.removeDom(e),t.style.filter="")},vk.prototype.updateDom=function(t,e){var n=e.getElementsByTagName("feDropShadow");n=0===n.length?this.createElement("feDropShadow"):n[0];var i,r,o,a,s=t.style,l=t.scale&&t.scale[0]||1,u=t.scale&&t.scale[1]||1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)i=s.shadowOffsetX||0,r=s.shadowOffsetY||0,o=s.shadowBlur,a=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(e,s);i=s.textShadowOffsetX||0,r=s.textShadowOffsetY||0,o=s.textShadowBlur,a=s.textShadowColor}n.setAttribute("dx",i/l),n.setAttribute("dy",r/u),n.setAttribute("flood-color",a);var h=o/2/l+" "+o/2/u;n.setAttribute("stdDeviation",h),e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width",Math.ceil(o/2*200)+"%"),e.setAttribute("height",Math.ceil(o/2*200)+"%"),e.appendChild(n),s._shadowDom=e},vk.prototype.markUsed=function(t){var e=t.style;e&&e._shadowDom&&pk.prototype.markUsed.call(this,e._shadowDom)};var Ak=function(t,e,n,i){this.root=t,this.storage=e,this._opts=n=C({},n||{});var r=HL("svg");r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.setAttribute("version","1.1"),r.setAttribute("baseProfile","full"),r.style.cssText="user-select:none;position:absolute;left:0;top:0;",this.gradientManager=new gk(i,r),this.clipPathManager=new mk(i,r),this.shadowManager=new vk(i,r);var o=document.createElement("div");o.style.cssText="overflow:hidden;position:relative",this._svgRoot=r,this._viewport=o,t.appendChild(o),o.appendChild(r),this.resize(n.width,n.height),this._visibleList=[]};Ak.prototype={constructor:Ak,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},setBackgroundColor:function(t){this._viewport.style.background=t},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var e,n,i=this._svgRoot,r=this._visibleList,o=t.length,a=[];for(e=0;e=0;--i)if(n[i]===t)return!0;return!1}),e):null:e[0]},resize:function(t,e){var n=this._viewport;n.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!==t||this._height!==e){this._width=t,this._height=e;var r=n.style;r.width=t+"px",r.height=e+"px";var o=this._svgRoot;o.setAttribute("width",t),o.setAttribute("height",e)}},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,n=["width","height"][t],i=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[i]||xk(s[n])||xk(a.style[n]))-(xk(s[r])||0)-(xk(s[o])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},pathToDataUrl:function(){return this.refresh(),"data:image/svg+xml;charset=UTF-8,"+this._svgRoot.outerHTML}},B(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(t){var e;Ak.prototype[t]=(e=t,function(){_n('In SVG mode painter not support method "'+e+'"')})}),wr("svg",Ak),t.version=sd,t.dependencies=ld,t.PRIORITY=dd,t.init=function(t,e,n){if(c){if(_r.replace(".","")-0=a.getTime()?n+1:e.getTime()>=l.getTime()?n:n-1}},function(t,e,n){var i=n(1),r=n(95);t.exports=function(t,e){var n=i(t),o=Number(e),a=n.getMonth()+o,s=new Date(0);s.setFullYear(n.getFullYear(),a,1),s.setHours(0,0,0,0);var l=r(s);return n.setMonth(a,Math.min(l,n.getDate())),n}},function(t,e,n){var i=n(9),r=n(6),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";t.exports=function(t){if(!r(t))return!1;var e=i(t);return e==a||e==s||e==o||e==l}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(45))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var i=n(48),r=n(13),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&r(a,n)&&(void 0!==n||e in t)||i(t,e,n)}},function(t,e,n){var i=n(49);t.exports=function(t,e,n){"__proto__"==e&&i?i(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){var i=n(5),r=function(){try{var t=i(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=r},function(t,e,n){var i=n(128),r=n(26),o=n(3),a=n(27),s=n(29),l=n(51),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),h=!n&&r(t),c=!n&&!h&&a(t),d=!n&&!h&&!c&&l(t),f=n||h||c||d,p=f?i(t.length,String):[],g=p.length;for(var m in t)!e&&!u.call(t,m)||f&&("length"==m||c&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||p.push(m);return p}},function(t,e,n){var i=n(131),r=n(17),o=n(31),a=o&&o.isTypedArray,s=a?r(a):i;t.exports=s},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var i=n(50),r=n(135),o=n(8);t.exports=function(t){return o(t)?i(t,!0):r(t)}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var i=n(34),r=n(56),o=n(33),a=n(54),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)i(e,o(t)),t=r(t);return e}:a;t.exports=s},function(t,e,n){var i=n(52)(Object.getPrototypeOf,Object);t.exports=i},function(t,e,n){var i=n(58),r=n(33),o=n(10);t.exports=function(t){return i(t,o,r)}},function(t,e,n){var i=n(34),r=n(3);t.exports=function(t,e,n){var o=e(t);return r(t)?o:i(o,n(t))}},function(t,e,n){var i=n(5)(n(2),"Set");t.exports=i},function(t,e,n){var i=n(2).Uint8Array;t.exports=i},function(t,e,n){var i=n(34),r=n(158);t.exports=function t(e,n,o,a,s){var l=-1,u=e.length;for(o||(o=r),s||(s=[]);++l0&&o(h)?n>1?t(h,n-1,o,a,s):i(s,h):a||(s[s.length]=h)}return s}},function(t,e,n){var i=n(19),r=n(159),o=n(161);t.exports=function(t,e){return o(r(t,e,i),t+"")}},function(t,e,n){var i=n(25),r=n(166),o=n(167);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new i;++ed))return!1;var p=h.get(t);if(p&&h.get(e))return p==e;var g=-1,m=!0,v=n&s?new i:void 0;for(h.set(t,e),h.set(e,t);++g1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),r(t,i(e,1),[])});t.exports=s},function(t){t.exports=JSON.parse('{"type":"FeatureCollection","features":[{"id":"710000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@°Ü¯Û"],["@@ƛĴÕƊÉɼģºðʀ\\\\ƎsÆNŌÔĚäœnÜƤɊĂǀĆĴžĤNJŨxĚĮǂƺòƌ‚–âÔ®ĮXŦţƸZûЋƕƑGđ¨ĭMó·ęcëƝɉlÝƯֹÅŃ^Ó·śŃNjƏďíåɛGɉ™¿@ăƑŽ¥ĘWǬÏĶŁâ"],["@@\\\\p|WoYG¿¥I†j@¢"],["@@…¡‰@ˆV^RqˆBbAŒnTXeRz¤Lž«³I"],["@@ÆEE—„kWqë @œ"],["@@fced"]],"encodeOffsets":[[[122886,24033]],[[123335,22980]],[[122375,24193]],[[122518,24117]],[[124427,22618]],[[124862,26043]]]},"properties":{"cp":[121.509062,25.044332],"name":"台湾","childNum":6}},{"id":"130000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@o~†Z]‚ªr‰ºc_ħ²G¼s`jΟnüsœłNX_“M`ǽÓnUK…Ĝēs¤­©yrý§uģŒc†JŠ›e"],["@@U`Ts¿m‚"],["@@oºƋÄd–eVŽDJj£€J|Ådz•Ft~žKŨ¸IÆv|”‡¢r}膎onb˜}`RÎÄn°ÒdÞ²„^®’lnÐèĄlðӜ×]ªÆ}LiĂ±Ö`^°Ç¶p®đDcœŋ`–ZÔ’¶êqvFƚ†N®ĆTH®¦O’¾ŠIbÐã´BĐɢŴÆíȦp–ĐÞXR€·nndOž¤’OÀĈƒ­Qg˜µFo|gȒęSWb©osx|hYh•gŃfmÖĩnº€T̒Sp›¢dYĤ¶UĈjl’ǐpäìë|³kÛfw²Xjz~ÂqbTŠÑ„ěŨ@|oM‡’zv¢ZrÃVw¬ŧĖ¸fŒ°ÐT€ªqŽs{Sž¯r æÝlNd®²Ğ džiGʂJ™¼lr}~K¨ŸƐÌWö€™ÆŠzRš¤lêmĞL΄’@¡|q]SvK€ÑcwpÏρ†ĿćènĪWlĄkT}ˆJ”¤~ƒÈT„d„™pddʾĬŠ”ŽBVt„EÀ¢ôPĎƗè@~‚k–ü\\\\rÊĔÖæW_§¼F˜†´©òDòj’ˆYÈrbĞāøŀG{ƀ|¦ðrb|ÀH`pʞkv‚GpuARhÞÆǶgʊTǼƹS£¨¡ù³ŘÍ]¿Ây™ôEP xX¶¹܇O¡“gÚ¡IwÃ鑦ÅB‡Ï|Ç°…N«úmH¯‹âŸDùŽyŜžŲIÄuШDž•¸dɂ‡‚FŸƒ•›Oh‡đ©OŸ›iÃ`ww^ƒÌkŸ‘ÑH«ƇǤŗĺtFu…{Z}Ö@U‡´…ʚLg®¯Oı°ÃwŸ ^˜—€VbÉs‡ˆmA…ê]]w„§›RRl£‡ȭµu¯b{ÍDěïÿȧŽuT£ġƒěŗƃĝ“Q¨fV†Ƌ•ƅn­a@‘³@šď„yýIĹÊKšŭfċŰóŒxV@tˆƯŒJ”]eƒR¾fe|rHA˜|h~Ėƍl§ÏŠlTíb ØoˆÅbbx³^zÃĶš¶Sj®A”yÂhðk`š«P€”ˈµEF†Û¬Y¨Ļrõqi¼‰Wi°§’б´°^[ˆÀ|ĠO@ÆxO\\\\tŽa\\\\tĕtû{ġŒȧXýĪÓjùÎRb›š^ΛfK[ݏděYfíÙTyŽuUSyŌŏů@Oi½’éŅ­aVcř§ax¹XŻác‡žWU£ôãºQ¨÷Ñws¥qEH‰Ù|‰›šYQoŕÇyáĂ£MðoťÊ‰P¡mšWO¡€v†{ôvîēÜISpÌhp¨ ‘j†deŔQÖj˜X³à™Ĉ[n`Yp@Už–cM`’RKhŒEbœ”pŞlNut®Etq‚nsÁŠgA‹iú‹oH‡qCX‡”hfgu“~ϋWP½¢G^}¯ÅīGCŸÑ^ãziMáļMTÃƘrMc|O_ž¯Ŏ´|‡morDkO\\\\mĆJfl@cĢ¬¢aĦtRıҙ¾ùƀ^juųœK­ƒUFy™—Ɲ…›īÛ÷ąV×qƥV¿aȉd³B›qPBm›aËđŻģm“Å®VŠ¹d^K‡KoŸnYg“¯Xhqa”Ldu¥•ÍpDž¡KąÅƒkĝęěhq‡}HyÓ]¹ǧ£…Í÷¿qᵧš™g‘¤o^á¾ZE‡¤i`ij{n•ƒOl»ŸWÝĔįhg›F[¿¡—ßkOüš_‰€ū‹i„DZàUtėGylƒ}ŒÓM}€jpEC~¡FtoQi‘šHkk{Ãmï‚"]],"encodeOffsets":[[[119712,40641]],[[121616,39981]],[[116462,37237]]]},"properties":{"cp":[114.502461,38.045474],"name":"河北","childNum":3}},{"id":"140000","type":"Feature","geometry":{"type":"Polygon","coordinates":["@@Þĩ҃S‰ra}Á€yWix±Üe´lè“ßÓǏok‘ćiµVZģ¡coœ‘TS˹ĪmnÕńe–hZg{gtwªpXaĚThȑp{¶Eh—®RćƑP¿£‘Pmc¸mQÝW•ďȥoÅîɡųAďä³aωJ‘½¥PG­ąSM­™…EÅruµé€‘Yӎ•Ō_d›ĒCo­Èµ]¯_²ÕjāŽK~©ÅØ^ԛkïçămϑk]­±ƒcݯÑÃmQÍ~_a—pm…~ç¡q“ˆu{JÅŧ·Ls}–EyÁÆcI{¤IiCfUc•ƌÃp§]웫vD@¡SÀ‘µM‚ÅwuŽYY‡¡DbÑc¡hƒ×]nkoQdaMç~eD•ÛtT‰©±@¥ù@É¡‰ZcW|WqOJmĩl«ħşvOÓ«IqăV—¥ŸD[mI~Ó¢cehiÍ]Ɠ~ĥqXŠ·eƷœn±“}v•[ěďŽŕ]_‘œ•`‰¹ƒ§ÕōI™o©b­s^}Ét±ū«³p£ÿ·Wµ|¡¥ăFÏs׌¥ŅxŸÊdÒ{ºvĴÎêÌɊ²¶€ü¨|ÞƸµȲ‘LLúÉƎ¤ϊęĔV`„_bª‹S^|ŸdŠzY|dz¥p†ZbÆ£¶ÒK}tĦÔņƠ‚PYzn€ÍvX¶Ěn ĠÔ„zý¦ª˜÷žÑĸَUȌ¸‚dòÜJð´’ìúNM¬ŒXZ´‘¤ŊǸ_tldIš{¦ƀðĠȤ¥NehXnYG‚‡R° ƬDj¬¸|CĞ„Kq‚ºfƐiĺ©ª~ĆOQª ¤@ìǦɌ²æBŒÊ”TœŸ˜ʂōĖ’šĴŞ–ȀœÆÿȄlŤĒö„t”νî¼ĨXhŒ‘˜|ªM¤Ðz"],"encodeOffsets":[[116874,41716]]},"properties":{"cp":[112.549248,37.857014],"name":"山西","childNum":1}},{"id":"150000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@Č^â£Ăh–šĖMÈÄw‚\\\\fŦ°W ¢¾luŸD„wŠ\\\\̀ʉÌÛM…Ā[bӞEn}¶Vc…ê“sƒ–›¯PqƒFB…‰|S•³C|kñ•H‹d‘iÄ¥sˆʼnő…PóÑÑE^‘ÅPpy_YtS™hQ·aHwsOnʼnÚs©iqj›‰€USiº]ïWš‰«gW¡A–R붛ijʕ…Œů`çõh]y»ǃŸǛҤxÒm~zf}pf|ÜroÈzrKÈĵSƧ„ż؜Ġu¦ö"],["@@sKCš…GS|úþX”gp›{ÁX¿Ÿć{ƱȏñZáĔyoÁhA™}ŅĆfdʼn„_¹„Y°ėǩÑ¡H¯¶oMQqð¡Ë™|‘Ñ`ƭŁX½·óۓxğįÅcQ‡ˆ“ƒs«tȋDžF“Ÿù^i‘t«Č¯[›hAi©á¥ÇĚ×l|¹y¯YȵƓ‹ñǙµï‚ċ™Ļ|Dœ™üȭ¶¡˜›oŽäÕG\\\\ďT¿Òõr¯œŸLguÏYęRƩšɷŌO\\\\İТæ^Ŋ IJȶȆbÜGŽĝ¬¿ĚVĎgª^íu½jÿĕęjık@Ľƒ]ėl¥Ë‡ĭûÁ„ƒėéV©±ćn©­ȇžÍq¯½•YÃÔʼn“ÉNѝÅÝy¹NqáʅDǡËñ­ƁYÅy̱os§ȋµʽǘǏƬɱà‘ưN¢ƔÊuľýľώȪƺɂļžxœZĈ}ÌʼnŪ˜ĺœŽĭFЛĽ̅ȣͽÒŵìƩÇϋÿȮǡŏçƑůĕ~Ǎ›¼ȳÐUf†dIxÿ\\\\G ˆzâɏÙOº·pqy£†@ŒŠqþ@Ǟ˽IBäƣzsÂZ†ÁàĻdñ°ŕzéØűzșCìDȐĴĺf®ŽÀľưø@ɜÖÞKĊŇƄ§‚͑těï͡VAġÑÑ»d³öǍÝXĉĕÖ{þĉu¸ËʅğU̎éhɹƆ̗̮ȘNJ֥ड़ࡰţાíϲäʮW¬®ҌeרūȠkɬɻ̼ãüfƠSצɩςåȈHϚÎKdzͲOðÏȆƘ¼CϚǚ࢚˼ФԂ¤ƌžĞ̪Qʤ´¼mȠJˀŸƲÀɠmǐnǔĎȆÞǠN~€ʢĜ‚¶ƌĆĘźʆȬ˪ĚĒ¸ĞGȖƴƀj`ĢçĶāàŃºēĢƒĖćšYŒÀŎüôQÐÂŎŞdžŞêƖš˜oˆDĤÕºÑǘÛˤ³̀gńƘĔÀ^žªƂ`ªt¾äƚêĦĀ¼Ð€Ĕǎ¨Ȕ»͠^ˮÊȦƤøxRrŜH¤¸ÂxDĝŒ|ø˂˜ƮÐ¬ɚwɲFjĔ²Äw°dždÀɞ_ĸdîàŎjʜêTЪŌ‡ŜWÈ|tqĢUB~´°ÎFC•ŽU¼pĀēƄN¦¾O¶ŠłKĊOj“Ě”j´ĜYp˜{¦„ˆSĚÍ\\\\Tš×ªV–÷Ší¨ÅDK°ßtŇĔKš¨ǵÂcḷ̌ĚǣȄĽF‡lġUĵœŇ‹ȣFʉɁƒMğįʏƶɷØŭOǽ«ƽū¹Ʊő̝Ȩ§ȞʘĖiɜɶʦ}¨֪ࠜ̀ƇǬ¹ǨE˦ĥªÔêFŽxúQ„Er´W„rh¤Ɛ \\\\talĈDJ˜Ü|[Pll̚¸ƎGú´Pž¬W¦†^¦–H]prR“n|or¾wLVnÇIujkmon£cX^Bh`¥V”„¦U¤¸}€xRj–[^xN[~ªŠxQ„‚[`ªHÆÂExx^wšN¶Ê˜|¨ì†˜€MrœdYp‚oRzNy˜ÀDs~€bcfÌ`L–¾n‹|¾T‚°c¨È¢a‚r¤–`[|òDŞĔöxElÖdH„ÀI`„Ď\\\\Àì~ƎR¼tf•¦^¢ķ¶e”ÐÚMŒptgj–„ɡČÅyġLû™ŇV®ŠÄÈƀ†Ď°P|ªVV†ªj–¬ĚÒêp¬–E|ŬÂc|ÀtƐK fˆ{ĘFĒœƌXƲąo½Ę‘\\\\¥–o}›Ûu£ç­kX‘{uĩ«āíÓUŅßŢq€Ť¥lyň[€oi{¦‹L‡ń‡ðFȪȖ”ĒL„¿Ì‹ˆfŒ£K£ʺ™oqNŸƒwğc`ue—tOj×°KJ±qƒÆġm‰Ěŗos¬…qehqsuœƒH{¸kH¡Š…ÊRǪÇƌbȆ¢´ä܍¢NìÉʖ¦â©Ż؛Ç@Vu»A—ylßí¹ĵê…ÝlISò³C¹Ìâ„²i¶’Ìoú^H“²CǜңDŽ z¼g^èöŰ_‹‚–†IJĕꄜ}gÁnUI«m‰…„‹]j‡vV¼euhwqA„aW˜ƒ_µj…»çjioQR¹ēÃßt@r³[ÛlćË^ÍÉáG“›OUۗOB±•XŸkŇ¹£k|e]ol™ŸkVͼÕqtaÏõjgÁ£§U^Œ”RLˆËnX°Ç’Bz†^~wfvˆypV ¯„ƫĉ˭ȫƗŷɿÿĿƑ˃ĝÿÃǃßËőó©ǐȍŒĖM×ÍEyx‹þp]Évïè‘vƀnÂĴÖ@‚‰†V~Ĉ™Š³MEˆĸÅĖt—ējyÄDXÄxGQuv_›i¦aBçw‘˛wD™©{ŸtāmQ€{EJ§KPśƘƿ¥@‰sCT•É}ɃwˆƇy±ŸgÑ“}T[÷kÐ禫…SÒ¥¸ëBX½‰HáŵÀğtSÝÂa[ƣ°¯¦P]£ġ“–“Òk®G²„èQ°óMq}EŠóƐÇ\\\\ƒ‡@áügQ͋u¥Fƒ“T՛¿Jû‡]|mvāÎYua^WoÀa·­ząÒot׶CLƗi¯¤mƎHNJ¤îìɾŊìTdåwsRÖgĒųúÍġäÕ}Q¶—ˆ¿A•†‹[¡Œ{d×uQAƒ›M•xV‹vMOmăl«ct[wº_šÇʊŽŸjb£ĦS_é“QZ“_lwgOiýe`YYLq§IÁˆdz£ÙË[ÕªuƏ³ÍT—s·bÁĽäė[›b[ˆŗfãcn¥îC¿÷µ[ŏÀQ­ōšĉm¿Á^£mJVm‡—L[{Ï_£›F¥Ö{ŹA}…×Wu©ÅaųijƳhB{·TQqÙIķˑZđ©Yc|M¡…L•eVUóK_QWk’_ĥ‘¿ãZ•»X\\\\ĴuUƒè‡lG®ěłTĠğDєOrÍd‚ÆÍz]‹±…ŭ©ŸÅ’]ŒÅÐ}UË¥©Tċ™ïxgckfWgi\\\\ÏĒ¥HkµE˜ë{»ÏetcG±ahUiñiWsɁˆ·c–C‚Õk]wȑ|ća}w…VaĚ᠞ŒG°ùnM¬¯†{ȈÐÆA’¥ÄêJxÙ¢”hP¢Ûˆº€µwWOŸóFŽšÁz^ÀŗÎú´§¢T¤ǻƺSė‰ǵhÝÅQgvBHouʝl_o¿Ga{ïq{¥|ſĿHĂ÷aĝÇq‡Z‘ñiñC³ª—…»E`¨åXēÕqÉû[l•}ç@čƘóO¿¡ƒFUsA‰“ʽīccšocƒ‚ƒÇS}„“£‡IS~ălkĩXçmĈ…ŀЂoÐdxÒuL^T{r@¢‘žÍƒĝKén£kQ™‰yšÅõËXŷƏL§~}kqš»IHėDžjĝŸ»ÑÞoŸå°qTt|r©ÏS‹¯·eŨĕx«È[eMˆ¿yuˆ‘pN~¹ÏyN£{©’—g‹ħWí»Í¾s“əšDž_ÃĀɗ±ą™ijĉʍŌŷ—S›É“A‹±åǥɋ@럣R©ąP©}ĹªƏj¹erƒLDĝ·{i«ƫC£µ"]],"encodeOffsets":[[[127444,52594]],[[113793,40312]]]},"properties":{"cp":[111.670801,40.818311],"name":"内蒙古","childNum":2}},{"id":"210000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@L–Ž@@s™a"],["@@MnNm"],["@@d‚c"],["@@eÀ‚C@b‚“‰"],["@@f‡…Xwkbr–Ä`qg"],["@@^jtW‘Q"],["@@~ Y]c"],["@@G`ĔN^_¿Z‚ÃM"],["@@iX¶B‹Y"],["@@„YƒZ"],["@@L_{Epf"],["@@^WqCT\\\\"],["@@\\\\[“‹§t|”¤_"],["@@m`n_"],["@@Ïxnj{q_×^Giip"],["@@@œé^B†‡ntˆaÊU—˜Ÿ]x ¯ÄPIJ­°h€ʙK³†VˆÕ@Y~†|EvĹsDŽ¦­L^p²ŸÒG ’Ël]„xxÄ_˜fT¤Ď¤cŽœP„–C¨¸TVjbgH²sdÎdHt`Bˆ—²¬GJję¶[ÐhjeXdlwhšðSȦªVÊπ‹Æ‘Z˜ÆŶ®²†^ŒÎyÅÎcPqń“ĚDMħĜŁH­ˆk„çvV[ij¼W–‚YÀäĦ’‘`XlžR`žôLUVžfK–¢†{NZdĒª’YĸÌÚJRr¸SA|ƴgŴĴÆbvªØX~†źBŽ|¦ÕœEž¤Ð`\\\\|Kˆ˜UnnI]¤ÀÂĊnŎ™R®Ő¿¶\\\\ÀøíDm¦ÎbŨab‰œaĘ\\\\ľã‚¸a˜tÎSƐ´©v\\\\ÖÚÌǴ¤Â‡¨JKr€Z_Z€fjþhPkx€`Y”’RIŒjJcVf~sCN¤ ˆE‚œhæm‰–sHy¨SðÑÌ\\\\\\\\ŸĐRZk°IS§fqŒßýáЍÙÉÖ[^¯ǤŲ„ê´\\\\¦¬ĆPM¯£Ÿˆ»uïpùzEx€žanµyoluqe¦W^£ÊL}ñrkqWňûP™‰UP¡ôJŠoo·ŒU}£Œ„[·¨@XŒĸŸ“‹‹DXm­Ûݏº‡›GU‹CÁª½{íĂ^cj‡k“¶Ã[q¤“LÉö³cux«zZfƒ²BWÇ®Yß½ve±ÃC•ý£W{Ú^’q^sÑ·¨‹ÍOt“¹·C¥‡GD›rí@wÕKţ݋˜Ÿ«V·i}xËÍ÷‘i©ĝ‡ɝǡ]ƒˆ{c™±OW‹³Ya±Ÿ‰_穂Hžĕoƫ€Ňqƒr³‰Lys[„ñ³¯OS–ďOMisZ†±ÅFC¥Pq{‚Ã[Pg}\\\\—¿ghćO…•k^ģÁFıĉĥM­oEqqZûěʼn³F‘¦oĵ—hŸÕP{¯~TÍlª‰N‰ßY“Ð{Ps{ÃVU™™eĎwk±ʼnVÓ½ŽJãÇÇ»Jm°dhcÀff‘dF~ˆ€ĀeĖ€d`sx² šƒ®EżĀdQ‹Âd^~ăÔHˆ¦\\\\›LKpĄVez¤NP ǹӗR™ÆąJSh­a[¦´Âghwm€BÐ¨źhI|žVVŽ—Ž|p] Â¼èNä¶ÜBÖ¼“L`‚¼bØæŒKV”ŸpoœúNZÞÒKxpw|ÊEMnzEQšŽIZ”ŽZ‡NBˆčÚFÜçmĩ‚WĪñt‘ÞĵÇñZ«uD‚±|Əlij¥ãn·±PmÍa‰–da‡ CL‡Ǒkùó¡³Ï«QaċϑOÃ¥ÕđQȥċƭy‹³ÃA"]],"encodeOffsets":[[[123686,41445]],[[126019,40435]],[[124393,40128]],[[126117,39963]],[[125322,40140]],[[126686,40700]],[[126041,40374]],[[125584,40168]],[[125453,40165]],[[125362,40214]],[[125280,40291]],[[125774,39997]],[[125976,40496]],[[125822,39993]],[[125509,40217]],[[122731,40949]]]},"properties":{"cp":[123.429096,41.796767],"name":"辽宁","childNum":16}},{"id":"220000","type":"Feature","geometry":{"type":"Polygon","coordinates":["@@‘p䔳PClƒFbbÍzš€wBG’ĭ€Z„Åi“»ƒlY­ċ²SgŽkÇ£—^S‰“qd¯•‹R…©éŽ£¯S†\\\\cZ¹iűƏCuƍÓX‡oR}“M^o•£…R}oªU­F…uuXHlEŕ‡€Ï©¤ÛmTŽþ¤D–²ÄufàÀ­XXȱAe„yYw¬dvõ´KÊ£”\\\\rµÄl”iˆdā]|DÂVŒœH¹ˆÞ®ÜWnŒC”Œķ W‹§@\\\\¸‹ƒ~¤‹Vp¸‰póIO¢ŠVOšŇürXql~òÉK]¤¥Xrfkvzpm¶bwyFoúvð‡¼¤ N°ąO¥«³[ƒéǡű_°Õ\\\\ÚÊĝŽþâőàerR¨­JYlďQ[ ÏYëЧTGz•tnŠß¡gFkMŸāGÁ¤ia É‰™È¹`\\\\xs€¬dĆkNnuNUŠ–užP@‚vRY¾•–\\\\¢…ŒGªóĄ~RãÖÎĢù‚đŴÕhQŽxtcæëSɽʼníëlj£ƍG£nj°KƘµDsØÑpyƸ®¿bXp‚]vbÍZuĂ{nˆ^IüœÀSք”¦EŒvRÎûh@℈[‚Əȉô~FNr¯ôçR±ƒ­HÑl•’Ģ–^¤¢‚OðŸŒævxsŒ]ÞÁTĠs¶¿âƊGW¾ìA¦·TѬ†è¥€ÏÐJ¨¼ÒÖ¼ƒƦɄxÊ~S–tD@ŠĂ¼Ŵ¡jlºWžvЉˆzƦZЎ²CH— „Axiukd‹ŒGgetqmcžÛ£Ozy¥cE}|…¾cZ…k‚‰¿uŐã[oxGikfeäT@…šSUwpiÚFM©’£è^ڟ‚`@v¶eň†f h˜eP¶žt“äOlÔUgƒÞzŸU`lœ}ÔÆUvØ_Ō¬Öi^ĉi§²ÃŠB~¡Ĉ™ÚEgc|DC_Ȧm²rBx¼MÔ¦ŮdĨÃâYx‘ƘDVÇĺĿg¿cwÅ\\\\¹˜¥Yĭlœ¤žOv†šLjM_a W`zļMž·\\\\swqÝSA‡š—q‰Śij¯Š‘°kŠRē°wx^Đkǂғ„œž“œŽ„‹\\\\]˜nrĂ}²ĊŲÒøãh·M{yMzysěnĒġV·°“G³¼XÀ““™¤¹i´o¤ŃšŸÈ`̃DzÄUĞd\\\\i֚ŒˆmÈBĤÜɲDEh LG¾ƀľ{WaŒYÍȏĢĘÔRîĐj‹}Ǟ“ccj‡oUb½š{“h§Ǿ{K‹ƖµÎ÷žGĀÖŠåưÎs­l›•yiē«‹`姝H¥Ae^§„GK}iã\\\\c]v©ģZ“mÃ|“[M}ģTɟĵ‘Â`À–çm‰‘FK¥ÚíÁbXš³ÌQґHof{‰]e€pt·GŋĜYünĎųVY^’˜ydõkÅZW„«WUa~U·Sb•wGçǑ‚“iW^q‹F‚“›uNĝ—·Ew„‹UtW·Ýďæ©PuqEzwAV•—XR‰ãQ`­©GŒM‡ehc›c”ďϝd‡©ÑW_ϗYƅŒ»…é\\\\ƒɹ~ǙG³mØ©BšuT§Ĥ½¢Ã_ý‘L¡‘ýŸqT^rme™\\\\Pp•ZZbƒyŸ’uybQ—efµ]UhĿDCmûvašÙNSkCwn‰cćfv~…Y‹„ÇG"],"encodeOffsets":[[130196,42528]]},"properties":{"cp":[125.3245,43.886841],"name":"吉林","childNum":1}},{"id":"230000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@ƨƒĶTLÇyqpÇÛqe{~oyen}s‰`q‡iXG”ù]Ëp½“©lɇÁp]Þñ´FÔ^f‘äîºkà˜z¼BUvÈ@"],["@@UƒµNÿ¥īè灋•HÍøƕ¶LŒǽ|g¨|”™Ža¾pViˆdd”~ÈiŒíďÓQġėǐZ΋ŽXb½|ſÃH½ŸKFgɱCģÛÇA‡n™‹jÕc[VĝDZÃ˄Ç_™ £ń³pŽj£º”š¿”»WH´¯”U¸đĢmžtĜyzzNN|g¸÷äűѱĉā~mq^—Œ[ƒ”››”ƒǁÑďlw]¯xQĔ‰¯l‰’€°řĴrŠ™˜BˆÞTxr[tŽ¸ĻN_yŸX`biN™Ku…P›£k‚ZĮ—¦[ºxÆÀdhŽĹŀUÈƗCw’áZħÄŭcÓ¥»NAw±qȥnD`{ChdÙFćš}¢‰A±Äj¨]ĊÕjŋ«×`VuÓś~_kŷVÝyh„“VkÄãPs”Oµ—fŸge‚Ň…µf@u_Ù ÙcŸªNªÙEojVx™T@†ãSefjlwH\\\\pŏäÀvŠŽlY†½d{†F~¦dyz¤PÜndsrhf‹HcŒvlwjFœ£G˜±DύƥY‡yϊu¹XikĿ¦ÏqƗǀOŜ¨LI|FRĂn sª|Cš˜zxAè¥bœfudTrFWÁ¹Am|˜ĔĕsķÆF‡´Nš‰}ć…UŠÕ@Áijſmužç’uð^ÊýowŒFzØÎĕNőžǏȎôªÌŒDŽàĀÄ˄ĞŀƒʀĀƘŸˮȬƬĊ°ƒUŸzou‡xe]}Ž…AyȑW¯ÌmK‡“Q]‹Īºif¸ÄX|sZt|½ÚUΠlkš^p{f¤lˆºlÆW –€A²˜PVܜPH”Êâ]ÎĈÌÜk´\\\\@qàsĔÄQºpRij¼èi†`¶—„bXƒrBgxfv»ŽuUiˆŒ^v~”J¬mVp´£Œ´VWrnP½ì¢BX‚¬h™ŠðX¹^TjVœŠriªj™tŊÄm€tPGx¸bgRšŽsT`ZozÆO]’ÒFô҆Oƒ‡ŊŒvŞ”p’cGŒêŠsx´DR–Œ{A†„EOr°Œ•žx|íœbˆ³Wm~DVjºéNN†Ëܲɶ­GƒxŷCStŸ}]ûō•SmtuÇÃĕN•™āg»šíT«u}ç½BĵÞʣ¥ëÊ¡Mێ³ãȅ¡ƋaǩÈÉQ‰†G¢·lG|›„tvgrrf«†ptęŘnŠÅĢr„I²¯LiØsPf˜_vĠd„xM prʹšL¤‹¤‡eˌƒÀđK“žïÙVY§]I‡óáĥ]ķ†Kˆ¥Œj|pŇ\\\\kzţ¦šnņäÔVĂîĪ¬|vW’®l¤èØr‚˜•xm¶ă~lÄƯĄ̈́öȄEÔ¤ØQĄ–Ą»ƢjȦOǺ¨ìSŖÆƬy”Qœv`–cwƒZSÌ®ü±DŽ]ŀç¬B¬©ńzƺŷɄeeOĨS’Œfm Ċ‚ƀP̎ēz©Ċ‚ÄÕÊmgŸÇsJ¥ƔˆŊśæ’΁Ñqv¿íUOµª‰ÂnĦÁ_½ä@ê텣P}Ġ[@gġ}g“ɊדûÏWXá¢užƻÌsNͽƎÁ§č՛AēeL³àydl›¦ĘVçŁpśdžĽĺſʃQíÜçÛġԏsĕ¬—Ǹ¯YßċġHµ ¡eå`ļƒrĉŘóƢFì“ĎWøxÊk†”ƈdƬv|–I|·©NqńRŀƒ¤é”eŊœŀ›ˆàŀU²ŕƀB‚Q£Ď}L¹Îk@©ĈuǰųǨ”Ú§ƈnTËÇéƟÊcfčŤ^Xm‡—HĊĕË«W·ċëx³ǔķÐċJā‚wİ_ĸ˜Ȁ^ôWr­°oú¬Ħ…ŨK~”ȰCĐ´Ƕ£’fNÎèâw¢XnŮeÂÆĶŽ¾¾xäLĴĘlļO¤ÒĨA¢Êɚ¨®‚ØCÔ ŬGƠ”ƦYĜ‡ĘÜƬDJ—g_ͥœ@čŅĻA“¶¯@wÎqC½Ĉ»NŸăëK™ďÍQ“Ùƫ[«Ãí•gßÔÇOÝáW‘ñuZ“¯ĥ€Ÿŕā¡ÑķJu¤E Ÿå¯°WKɱ_d_}}vyŸõu¬ï¹ÓU±½@gÏ¿rýD‰†g…Cd‰µ—°MFYxw¿CG£‹Rƛ½Õ{]L§{qqąš¿BÇƻğëšܭNJË|c²}Fµ}›ÙRsÓpg±ŠQNqǫŋRwŕnéÑÉKŸ†«SeYR…ŋ‹@{¤SJ}šD Ûǖ֍Ÿ]gr¡µŷjqWÛham³~S«“„›Þ]"]],"encodeOffsets":[[[127123,51780]],[[134456,44547]]]},"properties":{"cp":[126.642464,45.756967],"name":"黑龙江","childNum":2}},{"id":"320000","type":"Feature","geometry":{"type":"Polygon","coordinates":["@@cþÅPiŠ`ZŸRu¥É\\\\]~°ŽY`µ†Óƒ^phÁbnÀşúŽòa–ĬºTÖŒb‚˜e¦¦€{¸ZâćNpŒ©žHr|^ˆmjhŠSEb\\\\afv`sz^lkŽlj‹Ätg‹¤D˜­¾Xš¿À’|ДiZ„ȀåB·î}GL¢õcßjaŸyBFµÏC^ĭ•cÙt¿sğH]j{s©HM¢ƒQnDÀ©DaÜތ·jgàiDbPufjDk`dPOîƒhw¡ĥ‡¥šG˜ŸP²ĐobºrY†„î¶aHŢ´ ]´‚rılw³r_{£DB_Ûdåuk|ˆŨ¯F Cºyr{XFy™e³Þċ‡¿Â™kĭB¿„MvÛpm`rÚã”@Ę¹hågËÖƿxnlč¶Åì½Ot¾dJlŠVJʜǀœŞqvnOŠ^ŸJ”Z‘ż·Q}ê͎ÅmµÒ]Žƍ¦Dq}¬R^èĂ´ŀĻĊIԒtžIJyQŐĠMNtœR®òLh‰›Ěs©»œ}OӌGZz¶A\\\\jĨFˆäOĤ˜HYš†JvÞHNiÜaϚɖnFQlšNM¤ˆB´ĄNöɂtp–Ŭdf先‹qm¿QûŠùއÚb¤uŃJŴu»¹Ą•lȖħŴw̌ŵ²ǹǠ͛hĭłƕrçü±Y™xci‡tğ®jű¢KOķ•Coy`å®VTa­_Ā]ŐÝɞï²ʯÊ^]afYǸÃĆēĪȣJđ͍ôƋĝÄ͎ī‰çÛɈǥ£­ÛmY`ó£Z«§°Ó³QafusNıDž_k}¢m[ÝóDµ—¡RLčiXy‡ÅNïă¡¸iĔϑNÌŕoēdōîåŤûHcs}~Ûwbù¹£¦ÓCt‹OPrƒE^ÒoŠg™ĉIµžÛÅʹK…¤½phMŠü`o怆ŀ"],"encodeOffsets":[[121740,32276]]},"properties":{"cp":[118.767413,32.041544],"name":"江苏","childNum":1}},{"id":"330000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@E^dQ]K"],["@@jX^j‡"],["@@sfŠbU‡"],["@@qP\\\\xz[ck"],["@@‘Rƒ¢‚FX}°[s_"],["@@Cbœ\\\\—}"],["@@e|v\\\\la{u"],["@@v~u}"],["@@QxÂF¯}"],["@@¹nŒvÞs¯o"],["@@rSkUEj"],["@@bi­ZŒP"],["@@p[}INf"],["@@À¿€"],["@@¹dnbŒ…"],["@@rSŸBnR"],["@@g~h}"],["@@FlEk"],["@@OdPc"],["@@v[u\\\\"],["@@FjâL~wyoo~›sµL–\\\\"],["@@¬e¹aNˆ"],["@@\\\\nÔ¡q]L³ë\\\\ÿ®ŒQ֎"],["@@ÊA­©[¬"],["@@KxŒv­"],["@@@hlIk]"],["@@pW{o||j"],["@@Md|_mC"],["@@¢…X£ÏylD¼XˆtH"],["@@hlÜ[LykAvyfw^Ež›¤"],["@@fp¤Mus“R"],["@@®_ma~•LÁ¬šZ"],["@@iM„xZ"],["@@ZcYd"],["@@Z~dOSo|A¿qZv"],["@@@`”EN¡v"],["@@|–TY{"],["@@@n@m"],["@@XWkCT\\\\"],["@@ºwšZRkĕWO¢"],["@@™X®±Grƪ\\\\ÔáXq{‹"],["@@ůTG°ĄLHm°UC‹"],["@@¤Ž€aÜx~}dtüGæţŎíĔcŖpMËВjē¢·ðĄÆMzˆjWKĎ¢Q¶˜À_꒔_Bı€i«pZ€gf€¤Nrq]§ĂN®«H±‡yƳí¾×ŸīàLłčŴǝĂíÀBŖÕªˆŠÁŖHŗʼnåqûõi¨hÜ·ƒñt»¹ýv_[«¸m‰YL¯‰Qª…mĉÅdMˆ•gÇjcº«•ęœ¬­K­´ƒB«Âącoċ\\\\xKd¡gěŧ«®á’[~ıxu·Å”KsËɏc¢Ù\\\\ĭƛëbf¹­ģSƒĜkáƉÔ­ĈZB{ŠaM‘µ‰fzʼnfåÂŧįƋǝÊĕġć£g³ne­ą»@­¦S®‚\\\\ßðCšh™iqªĭiAu‡A­µ”_W¥ƣO\\\\lċĢttC¨£t`ˆ™PZäuXßBs‡Ļyek€OđġĵHuXBšµ]׌‡­­\\\\›°®¬F¢¾pµ¼kŘó¬Wät’¸|@ž•L¨¸µr“ºù³Ù~§WI‹ŸZWŽ®’±Ð¨ÒÉx€`‰²pĜ•rOògtÁZ}þÙ]„’¡ŒŸFK‚wsPlU[}¦Rvn`hq¬\\\\”nQ´ĘRWb”‚_ rtČFI֊kŠŠĦPJ¶ÖÀÖJĈĄTĚòžC ²@Pú…Øzœ©PœCÈڜĒ±„hŖ‡l¬â~nm¨f©–iļ«m‡nt–u†ÖZÜÄj“ŠLŽ®E̜Fª²iÊxبžIÈhhst"],["@@o\\\\V’zRZ}y"],["@@†@°¡mۛGĕ¨§Ianá[ýƤjfæ‡ØL–•äGr™"]],"encodeOffsets":[[[125592,31553]],[[125785,31436]],[[125729,31431]],[[125513,31380]],[[125223,30438]],[[125115,30114]],[[124815,29155]],[[124419,28746]],[[124095,28635]],[[124005,28609]],[[125000,30713]],[[125111,30698]],[[125078,30682]],[[125150,30684]],[[124014,28103]],[[125008,31331]],[[125411,31468]],[[125329,31479]],[[125626,30916]],[[125417,30956]],[[125254,30976]],[[125199,30997]],[[125095,31058]],[[125083,30915]],[[124885,31015]],[[125218,30798]],[[124867,30838]],[[124755,30788]],[[124802,30809]],[[125267,30657]],[[125218,30578]],[[125200,30562]],[[124968,30474]],[[125167,30396]],[[124955,29879]],[[124714,29781]],[[124762,29462]],[[124325,28754]],[[123990,28459]],[[125366,31477]],[[125115,30363]],[[125369,31139]],[[122495,31878]],[[125329,30690]],[[125192,30787]]]},"properties":{"cp":[120.153576,30.287459],"name":"浙江","childNum":45}},{"id":"340000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@^iuLX^"],["@@‚e©Ehl"],["@@°ZÆëϵmkǀwÌÕæhºgBĝâqÙĊz›ÖgņtÀÁÊÆá’hEz|WzqD¹€Ÿ°E‡ŧl{ævÜcA`¤C`|´qžxIJkq^³³ŸGšµbƒíZ…¹qpa±ď OH—¦™Ħˆx¢„gPícOl_iCveaOjCh߸i݋bÛªCC¿€m„RV§¢A|t^iĠGÀtÚs–d]ĮÐDE¶zAb àiödK¡~H¸íæAžǿYƒ“j{ď¿‘™À½W—®£ChŒÃsiŒkkly]_teu[bFa‰Tig‡n{]Gqªo‹ĈMYá|·¥f¥—őaSÕė™NµñĞ«ImŒ_m¿Âa]uĜp …Z_§{Cƒäg¤°r[_Yj‰ÆOdý“[ŽI[á·¥“Q_n‡ùgL¾mv™ˊBÜƶĊJhšp“c¹˜O]iŠ]œ¥ jtsggJǧw×jÉ©±›EFˍ­‰Ki”ÛÃÕYv…s•ˆm¬njĻª•§emná}k«ŕˆƒgđ²Ù›DǤ›í¡ªOy›†×Où±@DŸñSęćăÕIÕ¿IµĥO‰‰jNÕËT¡¿tNæŇàåyķrĕq§ÄĩsWÆߎF¶žX®¿‰mŒ™w…RIޓfßoG‘³¾©uyH‘į{Ɓħ¯AFnuP…ÍÔzšŒV—dàôº^Ðæd´€‡oG¤{S‰¬ćxã}›ŧ×Kǥĩ«žÕOEзÖdÖsƘѨ[’Û^Xr¢¼˜§xvěƵ`K”§ tÒ´Cvlo¸fzŨð¾NY´ı~ÉĔē…ßúLÃϖ_ÈÏ|]ÂÏFl”g`bšežž€n¾¢pU‚h~ƴĖ¶_‚r sĄ~cž”ƈ]|r c~`¼{À{ȒiJjz`îÀT¥Û³…]’u}›f…ïQl{skl“oNdŸjŸäËzDvčoQŠďHI¦rb“tHĔ~BmlRš—V_„ħTLnñH±’DžœL‘¼L˜ªl§Ťa¸ŒĚlK²€\\\\RòvDcÎJbt[¤€D@®hh~kt°ǾzÖ@¾ªdb„YhüóZ ň¶vHrľ\\\\ʗJuxAT|dmÀO„‹[ÃԋG·ĚąĐlŪÚpSJ¨ĸˆLvÞcPæķŨŽ®mАˆálŸwKhïgA¢ųƩޖ¤OȜm’°ŒK´"]],"encodeOffsets":[[[121722,32278]],[[119475,30423]],[[119168,35472]]]},"properties":{"cp":[117.283042,31.86119],"name":"安徽","childNum":3}},{"id":"350000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@“zht´‡]"],["@@aj^~ĆG—©O"],["@@ed¨„C}}i"],["@@@vˆPGsQ"],["@@‰sBz‚ddW]Q"],["@@SŽ¨Q“{"],["@@NŽVucW"],["@@qptBAq"],["@@‰’¸[mu"],["@@Q\\\\pD]_"],["@@jSwUadpF"],["@@eXª~ƒ•"],["@@AjvFso"],["@@fT–›_Çí\\\\Ÿ™—v|ba¦jZÆy€°"],["@@IjJi"],["@@wJI€ˆxš«¼AoNe{M­"],["@@K‰±¡Óˆ”ČäeZ"],["@@k¡¹Eh~c®wBk‹UplÀ¡I•~Māe£bN¨gZý¡a±Öcp©PhžI”Ÿ¢Qq…ÇGj‹|¥U™ g[Ky¬ŏ–v@OpˆtÉEŸF„\\\\@ åA¬ˆV{Xģ‰ĐBy…cpě…¼³Ăp·¤ƒ¥o“hqqÚ¡ŅLsƒ^ᗞ§qlŸÀhH¨MCe»åÇGD¥zPO£čÙkJA¼ß–ėu›ĕeûҍiÁŧSW¥˜QŠûŗ½ùěcݧSùĩąSWó«íęACµ›eR—åǃRCÒÇZÍ¢‹ź±^dlsŒtjD¸•‚ZpužÔâÒH¾oLUêÃÔjjēò´ĄW‚ƛ…^Ñ¥‹ĦŸ@Çò–ŠmŒƒOw¡õyJ†yD}¢ďÑÈġfŠZd–a©º²z£šN–ƒjD°Ötj¶¬ZSÎ~¾c°¶Ðm˜x‚O¸¢Pl´žSL|¥žA†ȪĖM’ņIJg®áIJČĒü` ŽQF‡¬h|ÓJ@zµ |ê³È ¸UÖŬŬÀEttĸr‚]€˜ðŽM¤ĶIJHtÏ A’†žĬkvsq‡^aÎbvŒd–™fÊòSD€´Z^’xPsÞrv‹ƞŀ˜jJd×ŘÉ ®A–ΦĤd€xĆqAŒ†ZR”ÀMźŒnĊ»ŒİÐZ— YX–æJŠyĊ²ˆ·¶q§·–K@·{s‘Xãô«lŗ¶»o½E¡­«¢±¨Yˆ®Ø‹¶^A™vWĶGĒĢžPlzfˆļŽtàAvWYãšO_‡¤sD§ssČġ[kƤPX¦Ž`¶“ž®ˆBBvĪjv©šjx[L¥àï[F…¼ÍË»ğV`«•Ip™}ccÅĥZE‹ãoP…´B@ŠD—¸m±“z«Ƴ—¿å³BRضˆœWlâþäą`“]Z£Tc— ĹGµ¶H™m@_©—kŒ‰¾xĨ‡ôȉðX«½đCIbćqK³Á‹Äš¬OAwã»aLʼn‡ËĥW[“ÂGI—ÂNxij¤D¢ŽîĎÎB§°_JœGsƒ¥E@…¤uć…P‘å†cuMuw¢BI¿‡]zG¹guĮck\\\\_"]],"encodeOffsets":[[[123250,27563]],[[122541,27268]],[[123020,27189]],[[122916,27125]],[[122887,26845]],[[122808,26762]],[[122568,25912]],[[122778,26197]],[[122515,26757]],[[122816,26587]],[[123388,27005]],[[122450,26243]],[[122578,25962]],[[121255,25103]],[[120987,24903]],[[122339,25802]],[[121042,25093]],[[122439,26024]]]},"properties":{"cp":[119.306239,26.075302],"name":"福建","childNum":18}},{"id":"360000","type":"Feature","geometry":{"type":"Polygon","coordinates":["@@ĢĨƐgļˆ¼ÂMD~ņªe^\\\\^§„ý©j׍cZ†Ø¨zdÒa¶ˆlҍJŒìõ`oz÷@¤u޸´†ôęöY¼‰HČƶajlÞƩ¥éZ[”|h}^U Œ ¥p„ĄžƦO lt¸Æ €Q\\\\€ŠaÆ|CnÂOjt­ĚĤd’ÈŒF`’¶„@Ð딠¦ōҞ¨Sêv†HĢûXD®…QgėWiØPÞìºr¤dž€NĠ¢l–•ĄtZoœCƞÔºCxrpĠV®Ê{f_Y`_ƒeq’’®Aot`@o‚DXfkp¨|Šs¬\\\\D‘ÄSfè©Hn¬…^DhÆyøJh“ØxĢĀLʈ„ƠPżċĄwȠ̦G®ǒĤäTŠÆ~ĦwŠ«|TF¡Šn€c³Ïå¹]ĉđxe{ÎӐ†vOEm°BƂĨİ|G’vz½ª´€H’àp”eJ݆Qšxn‹ÀŠW­žEµàXÅĪt¨ÃĖrÄwÀFÎ|ňÓMå¼ibµ¯»åDT±m[“r«_gŽmQu~¥V\\\\OkxtL E¢‹ƒ‘Ú^~ýê‹Pó–qo슱_Êw§ÑªåƗā¼‹mĉŹ‹¿NQ“…YB‹ąrwģcÍ¥B•Ÿ­ŗÊcØiI—žƝĿuŒqtāwO]‘³YCñTeɕš‹caub͈]trlu€ī…B‘ПGsĵıN£ï—^ķqss¿FūūV՟·´Ç{éĈý‰ÿ›OEˆR_ŸđûIċâJh­ŅıN‘ȩĕB…¦K{Tk³¡OP·wn—µÏd¯}½TÍ«YiµÕsC¯„iM•¤™­•¦¯P|ÿUHv“he¥oFTu‰õ\\\\ŽOSs‹MòđƇiaºćXŸĊĵà·çhƃ÷ǜ{‘ígu^›đg’m[×zkKN‘¶Õ»lčÓ{XSƉv©_ÈëJbVk„ĔVÀ¤P¾ºÈMÖxlò~ªÚàGĂ¢B„±’ÌŒK˜y’áV‡¼Ã~­…`g›ŸsÙfI›Ƌlę¹e|–~udjˆuTlXµf`¿JdŠ[\\\\˜„L‚‘²"],"encodeOffsets":[[116689,26234]]},"properties":{"cp":[115.892151,28.676493],"name":"江西","childNum":1}},{"id":"370000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@Xjd]{K"],["@@itbFHy"],["@@HlGk"],["@@T‚ŒGŸy"],["@@K¬˜•‹U"],["@@WdXc"],["@@PtOs"],["@@•LnXhc"],["@@ppVƒu]Or"],["@@cdzAUa"],["@@udRhnCI‡"],["@@ˆoIƒpR„"],["@@Ľč{fzƤî’Kš–ÎMĮ]†—ZFˆ½Y]â£ph’™š¶¨râøÀ†ÎǨ¤^ºÄ”Gzˆ~grĚĜlĞƄLĆdž¢Îo¦–cv“Kb€gr°Wh”mZp ˆL]LºcU‰Æ­n”żĤÌĒœbAnrOAœ´žȊcÀbƦUØrĆUÜøœĬƞ†š˜Ez„VL®öØBkŖÝĐĖ¹ŧ̄±ÀbÎɜnb²ĦhņBĖ›žįĦåXćì@L¯´ywƕCéõė ƿ¸‘lµ¾Z|†ZWyFYŸ¨Mf~C¿`€à_RÇzwƌfQnny´INoƬˆèôº|sT„JUš›‚L„îVj„ǎ¾Ē؍‚Dz²XPn±ŴPè¸ŔLƔÜƺ_T‘üÃĤBBċȉöA´fa„˜M¨{«M`‡¶d¡ô‰Ö°šmȰBÔjjŒ´PM|”c^d¤u•ƒ¤Û´Œä«ƢfPk¶Môlˆ]Lb„}su^ke{lC‘…M•rDŠÇ­]NÑFsmoõľH‰yGă{{çrnÓE‰‹ƕZGª¹Fj¢ïW…uøCǷ돡ąuhÛ¡^Kx•C`C\\\\bÅxì²ĝÝ¿_N‰īCȽĿåB¥¢·IŖÕy\\\\‡¹kx‡Ã£Č×GDyÕ¤ÁçFQ¡„KtŵƋ]CgÏAùSed‡cÚź—ŠuYfƒyMmhUWpSyGwMPqŀ—›Á¼zK›¶†G•­Y§Ëƒ@–´śÇµƕBmœ@Io‚g——Z¯u‹TMx}C‘‰VK‚ï{éƵP—™_K«™pÛÙqċtkkù]gŽ‹Tğwo•ɁsMõ³ă‡AN£™MRkmEʕč™ÛbMjÝGu…IZ™—GPģ‡ãħE[iµBEuŸDPԛ~ª¼ętŠœ]ŒûG§€¡QMsğNPŏįzs£Ug{đJĿļā³]ç«Qr~¥CƎÑ^n¶ÆéÎR~Ż¸Y’I“] P‰umŝrƿ›‰›Iā‹[x‰edz‹L‘¯v¯s¬ÁY…~}…ťuŁŒg›ƋpÝĄ_ņī¶ÏSR´ÁP~ž¿Cyžċßdwk´Ss•X|t‰`Ä Èð€AªìÎT°¦Dd–€a^lĎDĶÚY°Ž`ĪŴǒˆ”àŠv\\\\ebŒZH„ŖR¬ŢƱùęO•ÑM­³FۃWp[ƒ"]],"encodeOffsets":[[[123806,39303]],[[123821,39266]],[[123742,39256]],[[123702,39203]],[[123649,39066]],[[123847,38933]],[[123580,38839]],[[123894,37288]],[[123043,36624]],[[123344,38676]],[[123522,38857]],[[123628,38858]],[[118260,36742]]]},"properties":{"cp":[117.000923,36.675807],"name":"山东","childNum":13}},{"id":"410000","type":"Feature","geometry":{"type":"Polygon","coordinates":["@@•ýL™ùµP³swIÓxcŢĞð†´E®žÚPt†ĴXØx¶˜@«ŕŕQGƒ‹Yfa[şu“ßǩ™đš_X³ijÕčC]kbc•¥CS¯ëÍB©÷‹–³­Siˆ_}m˜YTtž³xlàcȂzÀD}ÂOQ³ÐTĨ¯†ƗòËŖ[hœł‹Ŧv~††}ÂZž«¤lPǕ£ªÝŴÅR§ØnhcŒtâk‡nύ­ľŹUÓÝdKuķ‡I§oTũÙďkęĆH¸ÓŒ\\\\ăŒ¿PcnS{wBIvɘĽ[GqµuŸŇôYgûƒZcaŽ©@½Õǽys¯}lgg@­C\\\\£as€IdÍuCQñ[L±ęk·‹ţb¨©kK—’»›KC²‘òGKmĨS`ƒ˜UQ™nk}AGē”sqaJ¥ĐGR‰ĎpCuÌy ã iMc”plk|tRk†ðœev~^‘´†¦ÜŽSí¿_iyjI|ȑ|¿_»d}qŸ^{“Ƈdă}Ÿtqµ`Ƴĕg}V¡om½fa™Ço³TTj¥„tĠ—Ry”K{ùÓjuµ{t}uËR‘iŸvGŠçJFjµŠÍyqΘàQÂFewixGw½Yŷpµú³XU›½ġy™łå‰kÚwZXˆ·l„¢Á¢K”zO„Λ΀jc¼htoDHr…|­J“½}JZ_¯iPq{tę½ĕ¦Zpĵø«kQ…Ťƒ]MÛfaQpě±ǽ¾]u­Fu‹÷nƒ™čįADp}AjmcEǒaª³o³ÆÍSƇĈÙDIzˑ赟^ˆKLœ—i—Þñ€[œƒaA²zz‰Ì÷Dœ|[šíijgf‚ÕÞd®|`ƒĆ~„oĠƑô³Ŋ‘D×°¯CsŠøÀ«ì‰UMhTº¨¸ǡîS–Ô„DruÂÇZ•ÖEŽ’vPZ„žW”~؋ÐtĄE¢¦Ðy¸bŠô´oŬ¬Ž²Ês~€€]®tªašpŎJ¨Öº„_ŠŔ–`’Ŗ^Ѝ\\\\Ĝu–”~m²Ƹ›¸fW‰ĦrƔ}Î^gjdfÔ¡J}\\\\n C˜¦þWxªJRÔŠu¬ĨĨmF†dM{\\\\d\\\\ŠYÊ¢ú@@¦ª²SŠÜsC–}fNècbpRmlØ^g„d¢aÒ¢CZˆZxvÆ¶N¿’¢T@€uCœ¬^ĊðÄn|žlGl’™Rjsp¢ED}€Fio~ÔNŽ‹„~zkĘHVsDzßjƒŬŒŠŢ`Pûàl¢˜\\\\ÀœEhŽİgÞē X¼Pk–„|m"],"encodeOffsets":[[118256,37017]]},"properties":{"cp":[113.665412,34.757975],"name":"河南","childNum":1}},{"id":"420000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@AB‚"],["@@lskt"],["@@¾«}{ra®pîÃ\\\\™›{øCŠËyyB±„b\\\\›ò˜Ý˜jK›‡L ]ĎĽÌ’JyÚCƈćÎT´Å´pb©È‘dFin~BCo°BĎĚømvŒ®E^vǾ½Ĝ²Ro‚bÜeNŽ„^ĺ£R†¬lĶ÷YoĖ¥Ě¾|sOr°jY`~I”¾®I†{GqpCgyl{‡£œÍƒÍyPL“¡ƒ¡¸kW‡xYlÙ抚ŁĢzœ¾žV´W¶ùŸo¾ZHxjwfx„GNÁ•³Xéæl¶‰EièIH‰ u’jÌQ~v|sv¶Ôi|ú¢Fh˜Qsğ¦ƒSiŠBg™ÐE^ÁÐ{–čnOÂȞUÎóĔ†ÊēIJ}Z³½Mŧïeyp·uk³DsѨŸL“¶_œÅuèw»—€¡WqÜ]\\\\‘Ò§tƗcÕ¸ÕFÏǝĉăxŻČƟO‡ƒKÉġÿ×wg”÷IÅzCg†]m«ªGeçÃTC’«[‰t§{loWeC@ps_Bp‘­r‘„f_``Z|ei¡—oċMqow€¹DƝӛDYpûs•–‹Ykıǃ}s¥ç³[§ŸcYŠ§HK„«Qy‰]¢“wwö€¸ïx¼ņ¾Xv®ÇÀµRĠЋžHMž±cÏd„ƒǍũȅȷ±DSyúĝ£ŤĀàtÖÿï[îb\\\\}pĭÉI±Ñy…¿³x¯N‰o‰|¹H™ÏÛm‹júË~Tš•u˜ęjCöAwě¬R’đl¯ Ñb­‰ŇT†Ŀ_[Œ‘IčĄʿnM¦ğ\\\\É[T·™k¹œ©oĕ@A¾w•ya¥Y\\\\¥Âaz¯ãÁ¡k¥ne£Ûw†E©Êō¶˓uoj_Uƒ¡cF¹­[Wv“P©w—huÕyBF“ƒ`R‹qJUw\\\\i¡{jŸŸEPïÿ½fć…QÑÀQ{ž‚°‡fLԁ~wXg—ītêݾ–ĺ‘Hdˆ³fJd]‹HJ²…E€ƒoU¥†HhwQsƐ»Xmg±çve›]Dm͂PˆoCc¾‹_h”–høYrŊU¶eD°Č_N~øĹĚ·`z’]Äþp¼…äÌQŒv\\\\rCŒé¾TnkžŐڀÜa‡“¼ÝƆĢ¶Ûo…d…ĔňТJq’Pb ¾|JŒ¾fXŠƐîĨ_Z¯À}úƲ‹N_ĒĊ^„‘ĈaŐyp»CÇĕKŠšñL³ŠġMŒ²wrIÒŭxjb[œžn«øœ˜—æˆàƒ ^²­h¯Ú€ŐªÞ¸€Y²ĒVø}Ā^İ™´‚LŠÚm„¥ÀJÞ{JVŒųÞŃx×sxxƈē ģMř–ÚðòIf–Ċ“Œ\\\\Ʈ±ŒdʧĘD†vČ_Àæ~DŒċ´A®µ†¨ØLV¦êHÒ¤"]],"encodeOffsets":[[[113712,34000]],[[115612,30507]],[[113649,34054]]]},"properties":{"cp":[114.298572,30.584355],"name":"湖北","childNum":3}},{"id":"430000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@—n„FTs"],["@@ßÅÆችÔXr—†CO™“…ËR‘ïÿĩ­TooQyšÓ[‹ŅBE¬–ÎÓXa„į§Ã¸G °ITxp‰úxÚij¥Ïš–Ģ¾ŠedžÄ©ĸG…œàGh‚€M¤–Â_U}Ċ}¢pczfŠþg¤€”ÇòAV‘‹M"],["@@©K—ƒA·³CQ±Á«³BUŠƑ¹AŠtćOw™D]ŒJiØSm¯b£‘ylƒ›X…HËѱH•«–‘C^õľA–Å§¤É¥„ïyuǙuA¢^{ÌC´­¦ŷJ£^[†“ª¿‡ĕ~•Ƈ…•N… skóā‡¹¿€ï]ă~÷O§­@—Vm¡‹Qđ¦¢Ĥ{ºjԏŽŒª¥nf´•~ÕoŸž×Ûą‹MąıuZœmZcÒ IJĪ²SÊDŽŶ¨ƚƒ’CÖŎªQؼrŭŽ­«}NÏürʬŒmjr€@ĘrTW ­SsdHzƓ^ÇÂyUi¯DÅYlŹu{hTœ}mĉ–¹¥ě‰Dÿë©ıÓ[Oº£ž“¥ót€ł¹MՄžƪƒ`Pš…Di–ÛUŠ¾Å‌ìˆU’ñB“È£ýhe‰dy¡oċ€`pfmjP~‚kZa…ZsÐd°wj§ƒ@€Ĵ®w~^‚kÀÅKvNmX\\\\¨a“”сqvíó¿F„¤¡@ũÑVw}S@j}¾«pĂr–ªg àÀ²NJ¶¶Dô…K‚|^ª†Ž°LX¾ŴäPĪ±œ£EXd›”^¶›IJÞܓ~‘u¸ǔ˜Ž›MRhsR…e†`ÄofIÔ\\\\Ø  i”ćymnú¨cj ¢»–GČìƊÿШXeĈĀ¾Oð Fi ¢|[jVxrIQŒ„_E”zAN¦zLU`œcªx”OTu RLÄ¢dV„i`p˔vŎµªÉžF~ƒØ€d¢ºgİàw¸Áb[¦Zb¦–z½xBĖ@ªpº›šlS¸Ö\\\\Ĕ[N¥ˀmĎă’J\\\\‹ŀ`€…ňSڊĖÁĐiO“Ĝ«BxDõĚiv—ž–S™Ì}iùŒžÜnšÐºGŠ{Šp°M´w†ÀÒzJ²ò¨ oTçüöoÛÿñŽőФ‚ùTz²CȆȸǎŪƒƑÐc°dPÎŸğ˶[Ƚu¯½WM¡­Éž“’B·rížnZŸÒ `‡¨GA¾\\\\pē˜XhÆRC­üWGġu…T靧Ŏѝ©ò³I±³}_‘‹EÃħg®ęisÁPDmÅ{‰b[Rşs·€kPŸŽƥƒóRo”O‹ŸVŸ~]{g\\\\“êYƪ¦kÝbiċƵŠGZ»Ěõ…ó·³vŝž£ø@pyö_‹ëŽIkѵ‡bcѧy…×dY؎ªiþž¨ƒ[]f]Ņ©C}ÁN‡»hĻħƏ’ĩ"]],"encodeOffsets":[[[115640,30489]],[[112543,27312]],[[116690,26230]]]},"properties":{"cp":[112.982279,28.19409],"name":"湖南","childNum":3}},{"id":"440000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@QdˆAua"],["@@ƒlxDLo"],["@@sbhNLo"],["@@Ă āŸ"],["@@WltO[["],["@@Krœ]S"],["@@e„„I]y"],["@@I|„Mym"],["@@ƒÛ³LSŒž¼Y"],["@@nvºB–ëui©`¾"],["@@zdšÛ›Jw®"],["@@†°…¯"],["@@a yAª¸ËJIx،@€ĀHAmßV¡o•fu•o"],["@@šs‰ŗÃÔėAƁ›ZšÄ ~°ČP‚‹äh"],["@@‹¶Ý’Ì‚vmĞh­ı‡Q"],["@@HœŠdSjĒ¢D}war…“u«ZqadYM"],["@@elŒ\\\\LqqU"],["@@~rMo\\\\"],["@@f„^ƒC"],["@@øPªoj÷ÍÝħXČx”°Q¨ıXNv"],["@@gÇƳˆŽˆ”oˆŠˆ[~tly"],["@@E–ÆC¿‘"],["@@OŽP"],["@@w‹†đóg‰™ĝ—[³‹¡VÙæÅöM̳¹pÁaËýý©D©Ü“JŹƕģGą¤{Ùū…ǘO²«BƱéA—Ò‰ĥ‡¡«BhlmtÃPµyU¯uc“d·w_bŝcīímGOŽ|KP’ȏ‡ŹãŝIŕŭŕ@Óoo¿ē‹±ß}Ž…ŭ‚ŸIJWÈCőâUâǙI›ğʼn©I›ijEׅÁ”³Aó›wXJþ±ÌŒÜӔĨ£L]ĈÙƺZǾĆĖMĸĤfŒÎĵl•ŨnȈ‘ĐtF”Š–FĤ–‚êk¶œ^k°f¶gŠŽœ}®Fa˜f`vXŲxl˜„¦–ÔÁ²¬ÐŸ¦pqÊ̲ˆi€XŸØRDÎ}†Ä@ZĠ’s„x®AR~®ETtĄZ†–ƈfŠŠHâÒÐA†µ\\\\S¸„^wĖkRzŠalŽŜ|E¨ÈNĀňZTŒ’pBh£\\\\ŒĎƀuXĖtKL–¶G|Ž»ĺEļĞ~ÜĢÛĊrˆO˜Ùîvd]nˆ¬VœÊĜ°R֟pM††–‚ƂªFbwžEÀˆ˜©Œž\\\\…¤]ŸI®¥D³|ˎ]CöAŤ¦…æ’´¥¸Lv¼€•¢ĽBaô–F~—š®²GÌҐEY„„œzk¤’°ahlV՞I^‹šCxĈPŽsB‰ƒºV‰¸@¾ªR²ĨN]´_eavSi‡vc•}p}Đ¼ƌkJœÚe thœ†_¸ ºx±ò_xN›Ë‹²‘@ƒă¡ßH©Ùñ}wkNÕ¹ÇO½¿£ĕ]ly_WìIžÇª`ŠuTÅxYĒÖ¼k֞’µ‚MžjJÚwn\\\\h‘œĒv]îh|’È›Ƅøègž¸Ķß ĉĈWb¹ƀdéʌNTtP[ŠöSvrCZžžaGuœbo´ŖÒÇА~¡zCI…özx¢„Pn‹•‰Èñ @ŒĥÒ¦†]ƞŠV}³ăĔñiiÄÓVépKG½Ä‘ÓávYo–C·sit‹iaÀy„ŧΡÈYDÑům}‰ý|m[węõĉZÅxUO}÷N¹³ĉo_qtă“qwµŁYلǝŕ¹tïÛUïmRCº…ˆĭ|µ›ÕÊK™½R‘ē ó]‘–GªęAx–»HO£|ām‡¡diď×YïYWªʼnOeÚtĐ«zđ¹T…ā‡úE™á²\\\\‹ķÍ}jYàÙÆſ¿Çdğ·ùTßÇţʄ¡XgWÀLJğ·¿ÃˆOj YÇ÷Qě‹i"]],"encodeOffsets":[[[117381,22988]],[[116552,22934]],[[116790,22617]],[[116973,22545]],[[116444,22536]],[[116931,22515]],[[116496,22490]],[[116453,22449]],[[113301,21439]],[[118726,21604]],[[118709,21486]],[[113210,20816]],[[115482,22082]],[[113171,21585]],[[113199,21590]],[[115232,22102]],[[115739,22373]],[[115134,22184]],[[113056,21175]],[[119573,21271]],[[119957,24020]],[[115859,22356]],[[116561,22649]],[[116285,22746]]]},"properties":{"cp":[113.280637,23.125178],"name":"广东","childNum":24}},{"id":"450000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@H– TQ§•A"],["@@ĨʪƒLƒƊDÎĹĐCǦė¸zÚGn£¾›rªŀÜt¬@֛ڈSx~øOŒ˜ŶÐÂæȠ\\\\„ÈÜObĖw^oބLf¬°bI lTØB̈F£Ć¹gñĤaY“t¿¤VSñœK¸¤nM†¼‚JE±„½¸šŠño‹ÜCƆæĪ^ŠĚQÖ¦^‡ˆˆf´Q†üÜʝz¯šlzUĺš@쇀p¶n]sxtx¶@„~ÒĂJb©gk‚{°‚~c°`ԙ¬rV\\\\“la¼¤ôá`¯¹LC†ÆbŒxEræO‚v[H­˜„[~|aB£ÖsºdAĐzNÂðsŽÞƔ…Ĥªbƒ–ab`ho¡³F«èVloŽ¤™ÔRzpp®SŽĪº¨ÖƒºN…ij„d`’a”¦¤F³ºDÎńĀìŠCžĜº¦Ċ•~nS›|gźvZkCÆj°zVÈÁƔ]LÊFZg…čP­kini«‹qǀcz͔Y®¬Ů»qR×ō©DՄ‘§ƙǃŵTÉĩ±ŸıdÑnYY›IJvNĆƌØÜ Öp–}e³¦m‹©iÓ|¹Ÿħņ›|ª¦QF¢Â¬ʖovg¿em‡^ucà÷gՎuŒíÙćĝ}FĻ¼Ĺ{µHK•sLSđƃr‹č¤[Ag‘oS‹ŇYMÿ§Ç{Fśbky‰lQxĕƒ]T·¶[B…ÑÏGáşşƇe€…•ăYSs­FQ}­Bƒw‘tYğÃ@~…C̀Q ×W‡j˱rÉ¥oÏ ±«ÓÂ¥•ƒ€k—ŽwWűŒmcih³K›~‰µh¯e]lµ›él•Eģ‰•E“ďs‡’mǖŧē`ãògK_ÛsUʝ“ćğ¶hŒöŒO¤Ǜn³Žc‘`¡y‹¦C‘ez€YŠwa™–‘[ďĵűMę§]X˜Î_‚훘Û]é’ÛUćİÕBƣ±…dƒy¹T^džûÅÑŦ·‡PĻþÙ`K€¦˜…¢ÍeœĥR¿Œ³£[~Œäu¼dl‰t‚†W¸oRM¢ď\\\\zœ}Æzdvň–{ÎXF¶°Â_„ÒÂÏL©Ö•TmuŸ¼ãl‰›īkiqéfA„·Êµ\\\\őDc¥ÝF“y›Ôć˜c€űH_hL܋êĺШc}rn`½„Ì@¸¶ªVLŒŠhŒ‹\\\\•Ţĺk~ŽĠið°|gŒtTĭĸ^x‘vK˜VGréAé‘bUu›MJ‰VÃO¡…qĂXËS‰ģãlýàŸ_ju‡YÛÒB†œG^˜é֊¶§ŽƒEG”ÅzěƒƯ¤Ek‡N[kdåucé¬dnYpAyČ{`]þ¯T’bÜÈk‚¡Ġ•vŒàh„ÂƄ¢J"]],"encodeOffsets":[[[111707,21520]],[[107619,25527]]]},"properties":{"cp":[108.320004,22.82402],"name":"广西","childNum":2}},{"id":"460000","type":"Feature","geometry":{"type":"Polygon","coordinates":["@@š¦Ŝil¢”XƦ‘ƞò–ïè§ŞCêɕrŧůÇąĻõ™·ĉ³œ̅kÇm@ċȧƒŧĥ‰Ľʉ­ƅſ“ȓÒ˦ŝE}ºƑ[ÍĜȋ gÎfǐÏĤ¨êƺ\\\\Ɔ¸ĠĎvʄȀœÐ¾jNðĀÒRŒšZdž™zÐŘΰH¨Ƣb²_Ġ "],"encodeOffsets":[[112750,20508]]},"properties":{"cp":[110.33119,20.031971],"name":"海南","childNum":1}},{"id":"510000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@LqKr"],["@@Š[ĻéV£ž_ţġñpG •réÏ·~ąSfy×͂·ºſƽiÍıƣıĻmHH}siaX@iÇ°ÁÃ×t«ƒ­Tƒ¤J–JJŒyJ•ÈŠ`Ohߦ¡uËhIyCjmÿw…ZG……Ti‹SˆsO‰žB²ŸfNmsPaˆ{M{ŠõE‘^Hj}gYpaeuž¯‘oáwHjÁ½M¡pM“–uå‡mni{fk”\\\\oƒÎqCw†EZ¼K›ĝŠƒAy{m÷L‡wO×SimRI¯rK™õBS«sFe‡]fµ¢óY_ÆPRcue°Cbo׌bd£ŌIHgtrnyPt¦foaXďx›lBowz‹_{ÊéWiêE„GhܸºuFĈIxf®Ž•Y½ĀǙ]¤EyŸF²ċ’w¸¿@g¢§RGv»–áŸW`ÃĵJwi]t¥wO­½a[׈]`Ãi­üL€¦LabbTÀå’c}Íh™Æhˆ‹®BH€î|Ék­¤S†y£„ia©taį·Ɖ`ō¥Uh“O…ƒĝLk}©Fos‰´›Jm„µlŁu—…ø–nÑJWΪ–YÀïAetTžŅ‚ӍG™Ë«bo‰{ıwodƟ½ƒžOġܑµxàNÖ¾P²§HKv¾–]|•B‡ÆåoZ`¡Ø`ÀmºĠ~ÌЧnDž¿¤]wğ@sƒ‰rğu‰~‘Io”[é±¹ ¿žſđӉ@q‹gˆ¹zƱřaí°KtǤV»Ã[ĩǭƑ^ÇÓ@ỗs›Zϕ‹œÅĭ€Ƌ•ěpwDóÖሯneQˌq·•GCœýS]xŸ·ý‹q³•O՜Œ¶Qzßti{ř‰áÍÇWŝŭñzÇW‹pç¿JŒ™‚Xœĩè½cŒF–ÂLiVjx}\\\\N†ŇĖ¥Ge–“JA¼ÄHfÈu~¸Æ«dE³ÉMA|b˜Ò…˜ćhG¬CM‚õŠ„ƤąAvƒüV€éŀ‰_V̳ĐwQj´·ZeÈÁ¨X´Æ¡Qu·»Ÿ“˜ÕZ³ġqDo‰y`L¬gdp°şŠp¦ėìÅĮZŽ°Iä”h‚‘ˆzŠĵœf²å ›ĚрKp‹IN|‹„Ñz]ń……·FU×é»R³™MƒÉ»GM«€ki€™ér™}Ã`¹ăÞmȝnÁîRǀ³ĜoİzŔwǶVÚ£À]ɜ»ĆlƂ²Ġ…þTº·àUȞÏʦ¶†I’«dĽĢdĬ¿–»Ĕ׊h\\\\c¬†ä²GêëĤł¥ÀǿżÃÆMº}BÕĢyFVvw–ˆxBèĻĒ©Ĉ“tCĢɽŠȣ¦āæ·HĽî“ôNԓ~^¤Ɗœu„œ^s¼{TA¼ø°¢İªDè¾Ň¶ÝJ‘®Z´ğ~Sn|ªWÚ©òzPOȸ‚bð¢|‹øĞŠŒœŒQìÛÐ@Ğ™ǎRS¤Á§d…i“´ezÝúØã]Hq„kIŸþËQǦÃsǤ[E¬ÉŪÍxXƒ·ÖƁİlƞ¹ª¹|XÊwn‘ÆƄmÀêErĒtD®ċæcQƒ”E®³^ĭ¥©l}äQto˜ŖÜqƎkµ–„ªÔĻĴ¡@Ċ°B²Èw^^RsºTĀ£ŚæœQP‘JvÄz„^Đ¹Æ¯fLà´GC²‘dt˜­ĀRt¼¤ĦOðğfÔðDŨŁĞƘïžPȆ®âbMüÀXZ ¸£@Ś›»»QÉ­™]d“sÖ×_͖_ÌêŮPrĔĐÕGĂeZÜîĘqBhtO ¤tE[h|Y‹Ô‚ZśÎs´xº±UŒ’ñˆt|O’ĩĠºNbgþŠJy^dÂY Į„]Řz¦gC‚³€R`ĀŠz’¢AjŒ¸CL„¤RÆ»@­Ŏk\\\\Ç´£YW}z@Z}‰Ã¶“oû¶]´^N‡Ò}èN‚ª–P˜Íy¹`S°´†ATe€VamdUĐwʄvĮÕ\\\\ƒu‹Æŗ¨Yp¹àZÂm™Wh{á„}WØǍ•Éüw™ga§áCNęÎ[ĀÕĪgÖɪX˜øx¬½Ů¦¦[€—„NΆL€ÜUÖ´òrÙŠxR^–†J˜k„ijnDX{Uƒ~ET{ļº¦PZc”jF²Ė@Žp˜g€ˆ¨“B{ƒu¨ŦyhoÚD®¯¢˜ WòàFΤ¨GDäz¦kŮPœġq˚¥À]€Ÿ˜eŽâÚ´ªKxī„Pˆ—Ö|æ[xäJÞĥ‚s’NÖ½ž€I†¬nĨY´®Ð—ƐŠ€mD™ŝuäđđEb…e’e_™v¡}ìęNJē}q”É埁T¯µRs¡M@}ůa†a­¯wvƉåZwž\\\\Z{åû^›"]],"encodeOffsets":[[[108815,30935]],[[110617,31811]]]},"properties":{"cp":[104.065735,30.659462],"name":"四川","childNum":2}},{"id":"520000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@†G\\\\†lY£‘in"],["@@q‚|ˆ‚mc¯tχVSÎ"],["@@hÑ£Is‡NgßH†›HªķÃh_¹ƒ¡ĝħń¦uيùŽgS¯JHŸ|sÝÅtÁïyMDč»eÕtA¤{b\\\\}—ƒG®u\\\\åPFq‹wÅaD…žK°ºâ_£ùbµ”mÁ‹ÛœĹM[q|hlaªāI}тƒµ@swtwm^oµˆD鼊yV™ky°ÉžûÛR…³‚‡eˆ‡¥]RՋěħ[ƅåÛDpŒ”J„iV™™‰ÂF²I…»mN·£›LbÒYb—WsÀbŽ™pki™TZĄă¶HŒq`……ĥ_JŸ¯ae«ƒKpÝx]aĕÛPƒÇȟ[ÁåŵÏő—÷Pw}‡TœÙ@Õs«ĿÛq©½œm¤ÙH·yǥĘĉBµĨÕnđ]K„©„œá‹ŸG纍§Õßg‡ǗĦTèƤƺ{¶ÉHÎd¾ŚÊ·OÐjXWrãLyzÉAL¾ę¢bĶėy_qMĔąro¼hĊžw¶øV¤w”²Ĉ]ʚKx|`ź¦ÂÈdr„cȁbe¸›`I¼čTF´¼Óýȃr¹ÍJ©k_șl³´_pН`oÒhŽ¶pa‚^ÓĔ}D»^Xyœ`d˜[Kv…JPhèhCrĂĚÂ^Êƌ wˆZL­Ġ£šÁbrzOIl’MM”ĪŐžËr×ÎeŦŽtw|Œ¢mKjSǘňĂStÎŦEtqFT†¾†E쬬ôxÌO¢Ÿ KŠ³ŀºäY†„”PVgŎ¦Ŋm޼VZwVlŒ„z¤…ž£Tl®ctĽÚó{G­A‡ŒÇgeš~Αd¿æaSba¥KKûj®_ć^\\\\ؾbP®¦x^sxjĶI_Ä X‚⼕Hu¨Qh¡À@Ëô}Ž±žGNìĎlT¸ˆ…`V~R°tbÕĊ`¸úÛtπFDu€[ƒMfqGH·¥yA‰ztMFe|R‚_Gk†ChZeÚ°to˜v`x‹b„ŒDnÐ{E}šZ˜è€x—†NEފREn˜[Pv@{~rĆAB§‚EO¿|UZ~ì„Uf¨J²ĂÝƀ‚sª–B`„s¶œfvö¦ŠÕ~dÔq¨¸º»uù[[§´sb¤¢zþFœ¢Æ…Àhˆ™ÂˆW\\\\ıŽËI݊o±ĭŠ£þˆÊs}¡R]ŒěƒD‚g´VG¢‚j±®è†ºÃmpU[Á›‘Œëº°r›ÜbNu¸}Žº¼‡`ni”ºÔXĄ¤¼Ôdaµ€Á_À…†ftQQgœR—‘·Ǔ’v”}Ýלĵ]µœ“Wc¤F²›OĩųãW½¯K‚©…]€{†LóµCIµ±Mß¿hŸ•©āq¬o‚½ž~@i~TUxŪÒ¢@ƒ£ÀEîôruń‚”“‚b[§nWuMÆLl¿]x}ij­€½"]],"encodeOffsets":[[[112158,27383]],[[112105,27474]],[[112095,27476]]]},"properties":{"cp":[106.713478,26.578343],"name":"贵州","childNum":3}},{"id":"530000","type":"Feature","geometry":{"type":"Polygon","coordinates":["@@[„ùx½}ÑRH‘YīĺûsÍn‘iEoã½Ya²ė{c¬ĝg•ĂsA•ØÅwď‚õzFjw}—«Dx¿}UũlŸê™@•HÅ­F‰¨ÇoJ´Ónũuą¡Ã¢pÒŌ“Ø TF²‚xa²ËX€‚cʋlHîAßËŁkŻƑŷÉ©h™W­æßU‡“Ës¡¦}•teèƶStǀÇ}Fd£j‹ĈZĆÆ‹¤T‚č\\\\Dƒ}O÷š£Uˆ§~ŃG™‚åŃDĝ¸œTsd¶¶Bªš¤u¢ŌĎo~t¾ÍŶÒtD¦Ú„iôö‰€z›ØX²ghįh½Û±¯€ÿm·zR¦Ɵ`ªŊÃh¢rOԍ´£Ym¼èêf¯ŪĽn„†cÚbŒw\\\\zlvWžªâˆ ¦g–mĿBş£¢ƹřbĥkǫßeeZkÙIKueT»sVesb‘aĕ  ¶®dNœĄÄpªyŽ¼—„³BE˜®l‡ŽGœŭCœǶwêżĔÂe„pÍÀQƞpC„–¼ŲÈ­AÎô¶R„ä’Q^Øu¬°š_Èôc´¹ò¨P΢hlϦ´Ħ“Æ´sâDŽŲPnÊD^¯°’Upv†}®BP̪–jǬx–Söwlfòªv€qĸ|`H€­viļ€ndĜ­Ćhň•‚em·FyށqóžSį¯‘³X_ĞçêtryvL¤§z„¦c¦¥jnŞk˜ˆlD¤øz½ĜàžĂŧMÅ|áƆàÊcðÂF܎‚áŢ¥\\\\\\\\º™İøÒÐJĴ‡„îD¦zK²ǏÎEh~’CD­hMn^ÌöÄ©ČZÀžaü„fɭyœpį´ěFűk]Ôě¢qlÅĆÙa¶~Äqššê€ljN¬¼H„ÊšNQ´ê¼VظE††^ŃÒyŒƒM{ŒJLoÒœęæŸe±Ķ›y‰’‡gã“¯JYÆĭĘëo¥Š‰o¯hcK«z_pŠrC´ĢÖY”—¼ v¸¢RŽÅW³Â§fǸYi³xR´ďUˊ`êĿU„û€uĆBƒƣö‰N€DH«Ĉg†——Ñ‚aB{ÊNF´¬c·Åv}eÇÃGB»”If•¦HňĕM…~[iwjUÁKE•Ž‹¾dĪçW›šI‹èÀŒoÈXòyŞŮÈXâÎŚŠj|àsRy‹µÖ›–Pr´þŒ ¸^wþTDŔ–Hr¸‹žRÌmf‡żÕâCôox–ĜƌÆĮŒ›Ð–œY˜tâŦÔ@]ÈǮƒ\\\\Ī¼Ä£UsȯLbîƲŚºyh‡rŒŠ@ĒԝƀŸÀ²º\\\\êp“’JŠ}ĠvŠqt„Ġ@^xÀ£È†¨mËÏğ}n¹_¿¢×Y_æpˆÅ–A^{½•Lu¨GO±Õ½ßM¶w’ÁĢۂP‚›Ƣ¼pcIJxŠ|ap̬HšÐŒŊSfsðBZ¿©“XÏÒK•k†÷Eû¿‰S…rEFsÕūk”óVǥʼniTL‚¡n{‹uxţÏh™ôŝ¬ğōN“‘NJkyPaq™Âğ¤K®‡YŸxÉƋÁ]āęDqçgOg†ILu—\\\\_gz—]W¼ž~CÔē]bµogpў_oď`´³Țkl`IªºÎȄqÔþž»E³ĎSJ»œ_f·‚adÇqƒÇc¥Á_Źw{™L^ɱćx“U£µ÷xgĉp»ĆqNē`rĘzaĵĚ¡K½ÊBzyäKXqiWPÏɸ½řÍcÊG|µƕƣG˛÷Ÿk°_^ý|_zċBZocmø¯hhcæ\\\\lˆMFlư£Ĝ„ÆyH“„F¨‰µêÕ]—›HA…àӄ^it `þßäkŠĤÎT~Wlÿ¨„ÔPzUC–NVv [jâôDôď[}ž‰z¿–msSh‹¯{jïğl}šĹ[–őŒ‰gK‹©U·µË@¾ƒm_~q¡f¹…ÅË^»‘f³ø}Q•„¡Ö˳gͱ^ǁ…\\\\ëÃA_—¿bW›Ï[¶ƛ鏝£F{īZgm@|kHǭƁć¦UĔťƒ×ë}ǝƒeďºȡȘÏíBə£āĘPªij¶“ʼnÿ‡y©n‰ď£G¹¡I›Š±LÉĺÑdĉ܇W¥˜‰}g˜Á†{aqÃ¥aŠıęÏZ—ï`"],"encodeOffsets":[[104636,22969]]},"properties":{"cp":[102.712251,25.040609],"name":"云南","childNum":1}},{"id":"540000","type":"Feature","geometry":{"type":"Polygon","coordinates":["@@hžľxŽŖ‰xƒÒVŽ†ºÅâAĪÝȆµę¯Ňa±r_w~uSÕň‘qOj]ɄQ…£Z……UDûoY’»©M[‹L¼qãË{V͕çWViŽ]ë©Ä÷àyƛh›ÚU°ŒŒa”d„cQƒ~Mx¥™cc¡ÙaSyF—ցk­ŒuRýq¿Ôµ•QĽ³aG{¿FµëªéĜÿª@¬·–K‰·àariĕĀ«V»Ŷ™Ĵū˜gèLǴŇƶaf‹tŒèBŚ£^Šâ†ǐÝ®–šM¦ÁǞÿ¬LhŸŽJ¾óƾƺcxw‹f]Y…´ƒ¦|œQLn°aœdĊ…œ\\\\¨o’œǀÍŎœ´ĩĀd`tÊQŞŕ|‚¨C^©œĈ¦„¦ÎJĊ{ŽëĎjª²rЉšl`¼Ą[t|¦St辉PŒÜK¸€d˜Ƅı]s¤—î_v¹ÎVòŦj˜£Əsc—¬_Ğ´|Ł˜¦AvŽ¦w`ăaÝaa­¢e¤ı²©ªSªšÈMĄwžÉØŔì@T‘¤—Ę™\\\\õª@”þo´­xA s”ÂtŎKzó´ÇĊµ¢rž^nĊ­Æ¬×üGž¢‚³ {âĊ]š™G‚~bÀgVjzlhǶf€žOšfdŠ‰ªB]pj„•TO–tĊ‚n¤}®¦ƒČ¥d¢¼»ddš”Y¼Žt—¢eȤJ¤}Ǿ¡°§¤AГlc@ĝ”sªćļđAç‡wx•UuzEÖġ~AN¹ÄÅȀŻ¦¿ģŁéì±H…ãd«g[؉¼ēÀ•cīľġ¬cJ‘µ…ÐʥVȝ¸ßS¹†ý±ğkƁ¼ą^ɛ¤Ûÿ‰b[}¬ōõÃ]ËNm®g@•Bg}ÍF±ǐyL¥íCˆƒIij€Ï÷њį[¹¦[⚍EÛïÁÉdƅß{âNÆāŨߝ¾ě÷yC£‡k­´ÓH@¹†TZ¥¢įƒ·ÌAЧ®—Zc…v½ŸZ­¹|ŕWZqgW“|ieZÅYVӁqdq•bc²R@†c‡¥Rã»Ge†ŸeƃīQ•}J[ғK…¬Ə|o’ėjġĠÑN¡ð¯EBčnwôɍėªƒ²•CλŹġǝʅįĭạ̃ūȹ]ΓͧgšsgȽóϧµǛ†ęgſ¶ҍć`ĘąŌJޚä¤rÅň¥ÖÁUětęuůÞiĊÄÀ\\\\Æs¦ÓRb|Â^řÌkÄŷ¶½÷‡f±iMݑ›‰@ĥ°G¬ÃM¥n£Øą‚ğ¯ß”§aëbéüÑOčœk£{\\\\‘eµª×M‘šÉfm«Ƒ{Å׃Gŏǩãy³©WÑăû‚··‘Q—òı}¯ã‰I•éÕÂZ¨īès¶ZÈsŽæĔTŘvŽgÌsN@îá¾ó@‰˜ÙwU±ÉT廣TđŸWxq¹Zo‘b‹s[׌¯cĩv‡Œėŧ³BM|¹k‰ªħ—¥TzNYnݍßpęrñĠĉRS~½ŠěVVŠµ‚õ‡«ŒM££µB•ĉ¥áºae~³AuĐh`Ü³ç@BۘïĿa©|z²Ý¼D”£àč²‹ŸƒIƒû›I ā€óK¥}rÝ_Á´éMaň¨€~ªSĈ½Ž½KÙóĿeƃÆBŽ·¬ën×W|Uº}LJrƳ˜lŒµ`bÔ`QˆˆÐÓ@s¬ñIŒÍ@ûws¡åQÑßÁ`ŋĴ{Ī“T•ÚÅTSij‚‹Yo|Ç[ǾµMW¢ĭiÕØ¿@˜šMh…pÕ]j†éò¿OƇĆƇp€êĉâlØw–ěsˆǩ‚ĵ¸c…bU¹ř¨WavquSMzeo_^gsÏ·¥Ó@~¯¿RiīB™Š\\\\”qTGªÇĜçPoŠÿfñòą¦óQīÈáP•œābß{ƒZŗĸIæńhnszÁCËìñšÏ·ąĚÝUm®ó­L·ăU›Èíoù´Êj°ŁŤ_uµ^‘°Œìǖ@tĶĒ¡Æ‡M³Ģ«˜İĨÅ®ğ†RŽāð“ggheÆ¢z‚Ê©Ô\\\\°ÝĎz~ź¤Pn–MĪÖB£Ÿk™n鄧żćŠ˜ĆK„Ē°¼L¶è‰âz¨u¦¥LDĘz¬ýÎmĘd¾ß”Fz“hg²™Fy¦ĝ¤ċņbΛ@y‚Ąæm°NĮZRÖíŽJ²öLĸÒ¨Y®ƌÐV‰à˜tt_ڀÂyĠzž]Ţh€zĎ{†ĢX”ˆc|šÐqŽšfO¢¤ög‚ÌHNŽ„PKŖœŽ˜Uú´xx[xˆvĐCûĀŠìÖT¬¸^}Ìsòd´_Ž‡KgžLĴ…ÀBon|H@–Êx˜—¦BpŰˆŌ¿fµƌA¾zLjRxŠ¶F”œkĄźRzŀˆ~¶[”´Hnª–VƞuĒ­È¨ƎcƽÌm¸ÁÈM¦x͊ëÀxdžB’šú^´W†£–d„kɾĬpœw‚˂ØɦļĬIŚœÊ•n›Ŕa¸™~J°î”lɌxĤÊÈðhÌ®‚g˜T´øŽàCˆŽÀ^ªerrƘdž¢İP|Ė ŸWœªĦ^¶´ÂL„aT±üWƜ˜ǀRšŶUńšĖ[QhlLüA†‹Ü\\\\†qR›Ą©"],"encodeOffsets":[[90849,37210]]},"properties":{"cp":[91.132212,29.660361],"name":"西藏","childNum":1}},{"id":"610000","type":"Feature","geometry":{"type":"Polygon","coordinates":["@@˜p¢—ȮµšûG™Ħ}Ħšðǚ¶òƄ€jɂz°{ºØkÈęâ¦jª‚Bg‚\\\\œċ°s¬Ž’]jžú ‚E”Ȍdž¬s„t‡”RˆÆdĠݎwܔ¸ôW¾ƮłÒ_{’Ìšû¼„jº¹¢GǪÒ¯ĘƒZ`ºŊƒecņąš~BÂgzpâēòYǠȰÌTΨÂWœ|fcŸă§uF—Œ@NŸ¢XLƒŠRMº[ğȣſï|¥J™kc`sʼnǷ’Y¹‹W@µ÷K…ãï³ÛIcñ·VȋڍÒķø©—þ¥ƒy‚ÓŸğęmWµÎumZyOŅƟĥÓ~sÑL¤µaŅY¦ocyZ{‰y c]{ŒTa©ƒ`U_Ěē£ωÊƍKù’K¶ȱÝƷ§{û»ÅÁȹÍéuij|¹cÑd‘ŠìUYƒŽO‘uF–ÕÈYvÁCqӃT•Ǣí§·S¹NgŠV¬ë÷Át‡°Dد’C´ʼnƒópģ}„ċcE˅FŸŸéGU¥×K…§­¶³B‹Č}C¿åċ`wġB·¤őcƭ²ő[Å^axwQO…ÿEËߌ•ĤNĔŸwƇˆÄŠńwĪ­Šo[„_KÓª³“ÙnK‰Çƒěœÿ]ď€ă_d©·©Ýŏ°Ù®g]±„Ÿ‡ß˜å›—¬÷m\\\\›iaǑkěX{¢|ZKlçhLt€Ňîŵ€œè[€É@ƉĄEœ‡tƇÏ˜³­ħZ«mJ…›×¾‘MtÝĦ£IwÄå\\\\Õ{‡˜ƒOwĬ©LÙ³ÙgBƕŀr̛ĢŭO¥lãyC§HÍ£ßEñŸX¡—­°ÙCgpťz‘ˆb`wI„vA|§”‡—hoĕ@E±“iYd¥OĻ¹S|}F@¾oAO²{tfžÜ—¢Fǂ҈W²°BĤh^Wx{@„¬‚­F¸¡„ķn£P|ŸªĴ@^ĠĈæb–Ôc¶l˜Yi…–^Mi˜cĎ°Â[ä€vï¶gv@À“Ĭ·lJ¸sn|¼u~a]’ÆÈtŌºJp’ƒþ£KKf~Š¦UbyäIšĺãn‡Ô¿^­žŵMT–hĠܤko¼Ŏìąǜh`[tŒRd²IJ_œXPrɲ‰l‘‚XžiL§àƒ–¹ŽH˜°Ȧqº®QC—bA†„ŌJ¸ĕÚ³ĺ§ `d¨YjžiZvRĺ±öVKkjGȊĐePОZmļKÀ€‚[ŠŽ`ösìh†ïÎoĬdtKÞ{¬èÒÒBŒÔpIJÇĬJŊ¦±J«ˆY§‹@·pH€µàåVKe›pW†ftsAÅqC·¬ko«pHÆuK@oŸHĆۄķhx“e‘n›S³àǍrqƶRbzy€¸ËАl›¼EºpĤ¼Œx¼½~Ğ’”à@†ÚüdK^ˆmÌSj"],"encodeOffsets":[[110234,38774]]},"properties":{"cp":[108.948024,34.263161],"name":"陕西","childNum":1}},{"id":"620000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@VuUv"],["@@ũ‹EĠtt~nkh`Q‰¦ÅÄÜdw˜Ab×ĠąJˆ¤DüègĺqBqœj°lI¡ĨÒ¤úSHbš‡ŠjΑBŠ°aZˆ¢KJŽ’O[|A£žDx}Nì•HUnrk„ kp€¼Y kMJn[aG‚áÚÏ[½rc†}aQxOgsPMnUs‡nc‹Z…ž–sKúvA›t„Þġ’£®ĀYKdnFwš¢JE°”Latf`¼h¬we|€Æ‡šbj}GA€·~WŽ”—`†¢MC¤tL©IJ°qdf”O‚“bÞĬ¹ttu`^ZúE`Œ[@„Æsîz®¡’C„ƳƜG²“R‘¢R’m”fŽwĸg܃‚ą G@pzJM½mŠhVy¸uÈÔO±¨{LfæU¶ßGĂq\\\\ª¬‡²I‚¥IʼnÈīoı‹ÓÑAçÑ|«LÝcspīðÍg…të_õ‰\\\\ĉñLYnĝg’ŸRǡÁiHLlõUĹ²uQjYi§Z_c¨Ÿ´ĹĖÙ·ŋI…ƒaBD˜­R¹ȥr—¯G•ºß„K¨jWk’ɱŠOq›Wij\\\\a­‹Q\\\\sg_ĆǛōëp»£lğۀgS•ŶN®À]ˆÓäm™ĹãJaz¥V}‰Le¤L„ýo‘¹IsŋÅÇ^‘Žbz…³tmEÁ´aŠ¹cčecÇN•ĊãÁ\\\\č¯—dNj•]j†—ZµkÓda•ćå]ğij@ ©O{¤ĸm¢ƒE·®ƒ«|@Xwg]Aģ±¯‡XǁÑdzªc›wQÚŝñsÕ³ÛV_ýƒ˜¥\\\\ů¥©¾÷w—Ž©WÕÊĩhÿÖÁRo¸V¬âDb¨šhûx–Ê×nj~Zâƒg|šXÁnßYoº§ZÅŘvŒ[„ĭÖʃuďxcVbnUSf…B¯³_Tzº—ΕO©çMÑ~Mˆ³]µ^püµ”ŠÄY~y@X~¤Z³€[Èōl@®Å¼£QKƒ·Di‹¡By‘ÿ‰Q_´D¥hŗyƒ^ŸĭÁZ]cIzý‰ah¹MĪğP‘s{ò‡‹‘²Vw¹t³Ŝˁ[ŽÑ}X\\\\gsFŸ£sPAgěp×ëfYHāďÖqēŭOÏë“dLü•\\\\iŒ”t^c®šRʺ¶—¢H°mˆ‘rYŸ£BŸ¹čIoľu¶uI]vģSQ{ƒUŻ”Å}QÂ|̋°ƅ¤ĩŪU ęĄžÌZҞ\\\\v˜²PĔ»ƢNHƒĂyAmƂwVmž`”]ȏb•”H`‰Ì¢²ILvĜ—H®¤Dlt_„¢JJÄämèÔDëþgºƫ™”aʎÌrêYi~ ÎݤNpÀA¾Ĕ¼b…ð÷’Žˆ‡®‚”üs”zMzÖĖQdȨý†v§Tè|ªH’þa¸|šÐ ƒwKĢx¦ivr^ÿ ¸l öæfƟĴ·PJv}n\\\\h¹¶v†·À|\\\\ƁĚN´Ĝ€çèÁz]ġ¤²¨QÒŨTIl‡ªťØ}¼˗ƦvÄùØE‹’«Fï˛Iq”ōŒTvāÜŏ‚íÛߜÛV—j³âwGăÂíNOŠˆŠPìyV³ʼnĖýZso§HіiYw[߆\\\\X¦¥c]ÔƩÜ·«j‡ÐqvÁ¦m^ċ±R™¦΋ƈťĚgÀ»IïĨʗƮŽ°Ɲ˜ĻþÍAƉſ±tÍEÕÞāNU͗¡\\\\ſčåÒʻĘm ƭÌŹöʥ’ëQ¤µ­ÇcƕªoIýˆ‰Iɐ_mkl³ă‰Ɠ¦j—¡Yz•Ňi–}Msßõ–īʋ —}ƒÁVmŸ_[n}eı­Uĥ¼‘ª•I{ΧDӜƻėoj‘qYhĹT©oūĶ£]ďxĩ‹ǑMĝ‰q`B´ƃ˺Ч—ç~™²ņj@”¥@đ´ί}ĥtPńǾV¬ufӃÉC‹tÓ̻‰…¹£G³€]ƖƾŎĪŪĘ̖¨ʈĢƂlɘ۪üºňUðǜȢƢż̌ȦǼ‚ĤŊɲĖ­Kq´ï¦—ºĒDzņɾªǀÞĈĂD†½ĄĎÌŗĞrôñnŽœN¼â¾ʄľԆ|DŽŽ֦ज़ȗlj̘̭ɺƅêgV̍ʆĠ·ÌĊv|ýĖÕWĊǎÞ´õ¼cÒÒBĢ͢UĜð͒s¨ňƃLĉÕÝ@ɛƯ÷¿Ľ­ĹeȏijëCȚDŲyê×Ŗyò¯ļcÂßY…tÁƤyAã˾J@ǝrý‹‰@¤…rz¸oP¹ɐÚyᐇHŸĀ[Jw…cVeȴϜ»ÈŽĖ}ƒŰŐèȭǢόĀƪÈŶë;Ñ̆ȤМľĮEŔ—ĹŊũ~ËUă{ŸĻƹɁύȩþĽvĽƓÉ@ē„ĽɲßǐƫʾǗĒpäWÐxnsÀ^ƆwW©¦cÅ¡Ji§vúF¶Ž¨c~c¼īŒeXǚ‹\\\\đ¾JŽwÀďksãA‹fÕ¦L}wa‚o”Z’‹D½†Ml«]eÒÅaɲáo½FõÛ]ĻÒ¡wYR£¢rvÓ®y®LF‹LzĈ„ôe]gx}•|KK}xklL]c¦£fRtív¦†PĤoH{tK"]],"encodeOffsets":[[[108619,36299]],[[108589,36341]]]},"properties":{"cp":[103.823557,36.058039],"name":"甘肃","childNum":2}},{"id":"630000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@InJm"],["@@CƒÆ½OŃĦsΰ~Ē³¦@@“Ņiš±è}ؘƄ˹A³r_ĞŠǒNĪŒĐw¤^ŬĵªpĺSZg’rpiƼĘԛ¨C|͖J’©Ħ»®VIJ~f\\\\m `Un„˜~ʌŸ•ĬàöNt•~ňjy–¢Zi˜Ɣ¥ĄŠk´nl`JʇŠJþ©pdƖ®È£¶ìRʦ‘źõƮËnŸʼėæÑƀĎ[‚˜¢VÎĂMÖÝÎF²sƊƀÎBļýƞ—¯ʘƭðħ¼Jh¿ŦęΌƇš¥²Q]Č¥nuÂÏriˆ¸¬ƪÛ^Ó¦d€¥[Wà…x\\\\ZŽjҕ¨GtpþYŊĕ´€zUO뇉P‰îMĄÁxH´á˜iÜUà›îÜՁĂÛSuŎ‹r“œJð̬EŒ‘FÁú×uÃÎkr“Ē{V}İ«O_ÌËĬ©ŽÓŧSRѱ§Ģ£^ÂyèçěM³Ƃę{[¸¿u…ºµ[gt£¸OƤĿéYŸõ·kĀŸq]juw¥Dĩƍ€õÇPéĽG‘ž©ã‡¤G…uȧþRcÕĕNy“yût“ˆ­‡ø‘†ï»a½ē¿BMoį£ŸÍj}éZËqbʍš“Ƭh¹ìÿÓAçãnIáI`ƒks£CG­ě˜Uy×Cy•…’Ÿ@¶ʡÊBnāzG„ơMē¼±O÷õJËĚăVŸĪũƆ£Œ¯{ËL½Ìzż“„VR|ĠTbuvJvµhĻĖH”Aëáa…­OÇðñęNw‡…œľ·L›mI±íĠĩPÉ×®ÿs—’cB³±JKßĊ«`…ađ»·QAmO’‘Vţéÿ¤¹SQt]]Çx€±¯A@ĉij¢Óļ©•ƒl¶ÅÛr—ŕspãRk~¦ª]Į­´“FR„åd­ČsCqđéFn¿Åƃm’Éx{W©ºƝºįkÕƂƑ¸wWūЩÈFž£\\\\tÈ¥ÄRÈýÌJ ƒlGr^×äùyÞ³fj”c†€¨£ÂZ|ǓMĝšÏ@ëÜőR‹›ĝ‰Œ÷¡{aïȷPu°ËXÙ{©TmĠ}Y³’­ÞIňµç½©C¡į÷¯B»|St»›]vƒųƒs»”}MÓ ÿʪƟǭA¡fs˜»PY¼c¡»¦c„ċ­¥£~msĉP•–Siƒ^o©A‰Šec‚™PeǵŽkg‚yUi¿h}aH™šĉ^|ᴟ¡HØûÅ«ĉ®]m€¡qĉ¶³ÈyôōLÁst“BŸ®wn±ă¥HSòėš£˜S’ë@לÊăxÇN©™©T±ª£IJ¡fb®ÞbŽb_Ą¥xu¥B—ž{łĝ³«`d˜Ɛt—¤ťiñžÍUuºí`£˜^tƃIJc—·ÛLO‹½Šsç¥Ts{ă\\\\_»™kϊ±q©čiìĉ|ÍIƒ¥ć¥›€]ª§D{ŝŖÉR_sÿc³Īō›ƿΑ›§p›[ĉ†›c¯bKm›R¥{³„Z†e^ŽŒwx¹dƽŽôIg §Mĕ ƹĴ¿—ǣÜ̓]‹Ý–]snåA{‹eŒƭ`ǻŊĿ\\\\ijŬű”YÂÿ¬jĖqŽßbŠ¸•L«¸©@ěĀ©ê¶ìÀEH|´bRľž–Ó¶rÀQþ‹vl®Õ‚E˜TzÜdb ˜hw¤{LR„ƒd“c‹b¯‹ÙVgœ‚ƜßzÃô쮍^jUèXΖ|UäÌ»rKŽ\\\\ŒªN‘¼pZCü†VY††¤ɃRi^rPҒTÖ}|br°qňbĚ°ªiƶGQ¾²„x¦PœmlŜ‘[Ĥ¡ΞsĦŸÔÏâ\\\\ªÚŒU\\\\f…¢N²§x|¤§„xĔsZPòʛ²SÐqF`ª„VƒÞŜĶƨVZŒÌL`ˆ¢dŐIqr\\\\oäõ–F礻Ŷ×h¹]Clـ\\\\¦ďÌį¬řtTӺƙgQÇÓHţĒ”´ÃbEÄlbʔC”|CˆŮˆk„Ʈ[ʼ¬ňœ´KŮÈΰÌĪ¶ƶlð”ļA†TUvdTŠG†º̼ŠÔ€ŒsÊDԄveOg"]],"encodeOffsets":[[[105308,37219]],[[95370,40081]]]},"properties":{"cp":[101.778916,36.623178],"name":"青海","childNum":2}},{"id":"640000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@KëÀęĞ«OęȿȕŸı]ʼn¡åįÕÔ«Ǵõƪ™ĚQÐZhv K°›öqÀѐS[ÃÖHƖčË‡nL]ûc…Ùß@‚“ĝ‘¾}w»»‹oģF¹œ»kÌÏ·{zPƒ§B­¢íyÅt@ƒ@áš]Yv_ssģ¼i߁”ĻL¾ġsKD£¡N_…“˜X¸}B~Haiˆ™Åf{«x»ge_bs“KF¯¡Ix™mELcÿZ¤­Ģ‘ƒÝœsuBLù•t†ŒYdˆmVtNmtOPhRw~bd…¾qÐ\\\\âÙH\\\\bImlNZŸ»loƒŸqlVm–Gā§~QCw¤™{A\\\\‘PKŸNY‡¯bF‡kC¥’sk‹Šs_Ã\\\\ă«¢ħkJi¯r›rAhĹûç£CU‡ĕĊ_ԗBixÅُĄnªÑaM~ħpOu¥sîeQ¥¤^dkKwlL~{L~–hw^‚ófćƒKyEŒ­K­zuÔ¡qQ¤xZÑ¢^ļöܾEpž±âbÊÑÆ^fk¬…NC¾‘Œ“YpxbK~¥Že֎ŒäBlt¿Đx½I[ĒǙŒWž‹f»Ĭ}d§dµùEuj¨‚IÆ¢¥dXªƅx¿]mtÏwßRĶŒX¢͎vÆzƂZò®ǢÌʆCrâºMÞzžÆMҔÊÓŊZľ–r°Î®Ȉmª²ĈUªĚøºˆĮ¦ÌĘk„^FłĬhĚiĀĖ¾iİbjÕ"],["@@mfwěwMrŢªv@G‰"]],"encodeOffsets":[[[109366,40242]],[[108600,36303]]]},"properties":{"cp":[106.278179,38.46637],"name":"宁夏","childNum":2}},{"id":"650000","type":"Feature","geometry":{"type":"Polygon","coordinates":["@@QØĔ²X¨”~ǘBºjʐßØvK”ƔX¨vĊOžÃƒ·¢i@~c—‡ĝe_«”Eš“}QxgɪëÏÃ@sÅyXoŖ{ô«ŸuX…ê•Îf`œC‚¹ÂÿÐGĮÕĞXŪōŸMźÈƺQèĽôe|¿ƸJR¤ĘEjcUóº¯Ĩ_ŘÁMª÷Ð¥Oéȇ¿ÖğǤǷÂF҇zÉx[]­Ĥĝ‰œ¦EP}ûƥé¿İƷTėƫœŕƅ™ƱB»Đ±’ēO…¦E–•}‘`cȺrĦáŖuҞª«IJ‡πdƺÏØZƴwʄ¤ĖGЙǂZĶƒèH¶}ÚZצʥĪï|ÇĦMŔ»İĝLj‹ì¥Βœba­¯¥ǕǚkĆŵĦɑĺƯxūД̵nơʃĽá½M»›òmqóŘĝč˾ăC…ćāƿÝɽ©DZŅ¹đ¥˜³ðLrÁ®ɱĕģʼnǻ̋ȥơŻǛȡVï¹Ň۩ûkɗġƁ§ʇė̕ĩũƽō^ƕŠUv£ƁQï“Ƶkŏ½ΉÃŭdzLқʻ«ƭ\\\\lƒ‡ŭD‡“{ʓDkaFÃÄa“³ŤđÔGRÈƚhSӹŚsİ«ĐË[¥ÚDkº^Øg¼ŵ¸£EÍö•€ůʼnT¡c_‡ËKY‹ƧUśĵ„݃U_©rETÏʜ±OñtYwē¨ƒ{£¨uM³x½şL©Ùá[ÓÐĥ Νtģ¢\\\\‚ś’nkO›w¥±ƒT»ƷFɯàĩÞáB¹Æ…ÑUw„੍žĽw[“mG½Èå~‡Æ÷QyŠěCFmĭZī—ŵVÁ™ƿQƛ—ûXS²‰b½KϽĉS›©ŷXĕŸ{ŽĕK·¥Ɨcqq©f¿]‡ßDõU³h—­gËÇïģÉɋw“k¯í}I·šœbmœÉ–ř›īJɥĻˁ×xo›ɹī‡l•c…¤³Xù]‘™DžA¿w͉ì¥wÇN·ÂËnƾƍdǧđ®Ɲv•Um©³G\\\\“}µĿ‡QyŹl㓛µEw‰LJQ½yƋBe¶ŋÀů‡ož¥A—˜Éw@•{Gpm¿Aij†ŽKLhˆ³`ñcËtW‚±»ÕS‰ëüÿďD‡u\\\\wwwù³—V›LŕƒOMËGh£õP¡™er™Ïd{“‡ġWÁ…č|yšg^ğyÁzÙs`—s|ÉåªÇ}m¢Ń¨`x¥’ù^•}ƒÌ¥H«‰Yªƅ”Aйn~ź¯šf¤áÀz„gŠÇDIԝ´AňĀ҄¶ûEYospõD[{ù°]u›Jq•U•|Soċxţ[õÔĥkŋÞŭZ˺óYËüċrw €ÞkrťË¿XGÉbřaDü·Ē÷Aê[Ää€I®BÕИÞ_¢āĠpŠÛÄȉĖġDKwbm‡ÄNô‡ŠfœƫVÉvi†dz—H‘‹QµâFšù­Âœ³¦{YGžƒd¢ĚÜO „€{Ö¦ÞÍÀPŒ^b–ƾŠlŽ[„vt×ĈÍE˨¡Đ~´î¸ùÎh€uè`¸ŸHÕŔVºwĠââWò‡@{œÙNÝ´ə²ȕn{¿¥{l—÷eé^e’ďˆXj©î\\\\ªÑò˜Üìc\\\\üqˆÕ[Č¡xoÂċªbØ­Œø|€¶ȴZdÆšońéŒGš\\\\”¼C°ÌƁn´nxšÊOĨ’Ūƴĸ¢¸òTxÊǪMīИÖŲÃɎOvˆʦƢ~FŽ‡Rěò—¿ġ~åŊœú‰Nšžš¸qŽ’Ę[Ĕ¶ÂćnÒPĒÜvúĀÊbÖ{Äî¸~Ŕünp¤ÂH¾œĄYÒ©ÊfºmԈĘcDoĬMŬ’˜S¤„s²‚”ʘچžȂVŦ –ŽèW°ªB|IJXŔþÈJĦÆæFĚêŠYĂªĂ]øªŖNÞüA€’fɨJ€˜¯ÎrDDšĤ€`€mz\\\\„§~D¬{vJÂ˜«lµĂb–¤p€ŌŰNĄ¨ĊXW|ų ¿¾ɄĦƐMT”‡òP˜÷fØĶK¢ȝ˔Sô¹òEð­”`Ɩ½ǒÂň×äı–§ĤƝ§C~¡‚hlå‚ǺŦŞkâ’~}ŽFøàIJaĞ‚fƠ¥Ž„Ŕdž˜®U¸ˆźXœv¢aƆúŪtŠųƠjd•ƺŠƺÅìnrh\\\\ĺ¯äɝĦ]èpĄ¦´LƞĬŠ´ƤǬ˼Ēɸ¤rºǼ²¨zÌPðŀbþ¹ļD¢¹œ\\\\ĜÑŚŸ¶ZƄ³àjĨoâŠȴLʉȮŒĐ­ĚăŽÀêZǚŐ¤qȂ\\\\L¢ŌİfÆs|zºeªÙæ§΢{Ā´ƐÚ¬¨Ĵà²łhʺKÞºÖTŠiƢ¾ªì°`öøu®Ê¾ãØ"],"encodeOffsets":[[88824,50096]]},"properties":{"cp":[87.617733,43.792818],"name":"新疆","childNum":1}},{"id":"110000","type":"Feature","geometry":{"type":"Polygon","coordinates":["@@ĽOÁ›ûtŷmiÍt_H»Ĩ±d`Š¹­{bw…Yr“³S]§§o¹€qGtm_Sŧ€“oa›‹FLg‘QN_•dV€@Zom_ć\\\\ߚc±x¯oœRcfe…£’o§ËgToÛJíĔóu…|wP¤™XnO¢ÉˆŦ¯rNÄā¤zâŖÈRpŢZŠœÚ{GŠrFt¦Òx§ø¹RóäV¤XdˆżâºWbwŚ¨Ud®bêņ¾‘jnŎGŃŶŠnzÚSeîĜZczî¾i]͜™QaúÍÔiþĩȨWĢ‹ü|Ėu[qb[swP@ÅğP¿{\\\\‡¥A¨Ï‘Ѩj¯ŠX\\\\¯œMK‘pA³[H…īu}}"],"encodeOffsets":[[120023,41045]]},"properties":{"cp":[116.405285,39.904989],"name":"北京","childNum":1}},{"id":"120000","type":"Feature","geometry":{"type":"Polygon","coordinates":["@@ŬgX§Ü«E…¶Ḟ“¬O_™ïlÁg“z±AXe™µÄĵ{¶]gitgšIj·›¥îakS€‰¨ÐƎk}ĕ{gB—qGf{¿a†U^fI“ư‹³õ{YƒıëNĿžk©ïËZŏ‘R§òoY×Ógc…ĥs¡bġ«@dekąI[nlPqCnp{ˆō³°`{PNdƗqSÄĻNNâyj]äžÒD ĬH°Æ]~¡HO¾ŒX}ÐxŒgp“gWˆrDGˆŒpù‚Š^L‚ˆrzWxˆZ^¨´T\\\\|~@I‰zƒ–bĤ‹œjeĊªz£®Ĕvě€L†mV¾Ô_ȔNW~zbĬvG†²ZmDM~”~"],"encodeOffsets":[[120237,41215]]},"properties":{"cp":[117.190182,39.125596],"name":"天津","childNum":1}},{"id":"310000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@ɧư¬EpƸÁxc‡"],["@@©„ªƒ"],["@@”MA‹‘š"],["@@Qp݁E§ÉC¾"],["@@bŝՕÕEȣÚƥêImɇǦèÜĠŒÚžÃƌÃ͎ó"],["@@ǜûȬɋŠŭ™×^‰sYŒɍDŋ‘ŽąñCG²«ªč@h–_p¯A{‡oloY€¬j@IJ`•gQڛhr|ǀ^MIJvtbe´R¯Ô¬¨YŽô¤r]ì†Ƭį"]],"encodeOffsets":[[[124702,32062]],[[124547,32200]],[[124808,31991]],[[124726,32110]],[[124903,32376]],[[124438,32149]]]},"properties":{"cp":[121.472644,31.231706],"name":"上海","childNum":6}},{"id":"500000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@vjG~nGŘŬĶȂƀƾ¹¸ØÎezĆT¸}êЖqHŸðqĖ䒊¥^CƒIj–²p…\\\\_ æüY|[YxƊæuž°xb®…Űb@~¢NQt°¶‚S栓Ê~rljĔëĚ¢~šuf`‘‚†fa‚ĔJåĊ„nÖ]„jƎćÊ@Š£¾a®£Ű{ŶĕF‹ègLk{Y|¡ĜWƔtƬJÑxq‹±ĢN´‰òK‰™–LÈüD|s`ŋ’ć]ƒÃ‰`đŒMûƱ½~Y°ħ`ƏíW‰½eI‹½{aŸ‘OIrÏ¡ĕŇa†p†µÜƅġ‘œ^ÖÛbÙŽŏml½S‹êqDu[R‹ãË»†ÿw`»y‘¸_ĺę}÷`M¯ċfCVµqʼn÷Z•gg“Œ`d½pDO‡ÎCnœ^uf²ènh¼WtƏxRGg¦…pV„†FI±ŽG^ŒIc´ec‡’G•ĹÞ½sëĬ„h˜xW‚}Kӈe­Xsbk”F¦›L‘ØgTkïƵNï¶}Gy“w\\\\oñ¡nmĈzjŸ•@™Óc£»Wă¹Ój“_m»ˆ¹·~MvÛaqœ»­‰êœ’\\\\ÂoVnŽÓØ͙²«‹bq¿efE „€‹Ĝ^Qž~ Évý‡ş¤²Į‰pEİ}zcĺƒL‹½‡š¿gņ›¡ýE¡ya£³t\\\\¨\\\\vú»¼§·Ñr_oÒý¥u‚•_n»_ƒ•At©Þűā§IVeëƒY}{VPÀFA¨ąB}q@|Ou—\\\\Fm‰QF݅Mw˜å}]•€|FmϋCaƒwŒu_p—¯sfÙgY…DHl`{QEfNysBŠ¦zG¸rHe‚„N\\\\CvEsÐùÜ_·ÖĉsaQ¯€}_U‡†xÃđŠq›NH¬•Äd^ÝŰR¬ã°wećJEž·vÝ·Hgƒ‚éFXjÉê`|yŒpxkAwœWĐpb¥eOsmzwqChóUQl¥F^laf‹anòsr›EvfQdÁUVf—ÎvÜ^efˆtET¬ôA\\\\œ¢sJŽnQTjP؈xøK|nBz‰„œĞ»LY‚…FDxӄvr“[ehľš•vN”¢o¾NiÂxGp⬐z›bfZo~hGi’]öF|‰|Nb‡tOMn eA±ŠtPT‡LjpYQ|†SH††YĀxinzDJ€Ìg¢và¥Pg‰_–ÇzII‹€II•„£®S¬„Øs쐣ŒN"],["@@ifjN@s"]],"encodeOffsets":[[[109628,30765]],[[111725,31320]]]},"properties":{"cp":[106.504962,29.533155],"name":"重庆","childNum":2}},{"id":"810000","type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[["@@AlBk"],["@@mŽn"],["@@EpFo"],["@@ea¢pl¸Eõ¹‡hj[ƒ]ÔCΖ@lj˜¡uBXŸ…•´‹AI¹…[‹yDUˆ]W`çwZkmc–…M›žp€Åv›}I‹oJlcaƒfёKŽ°ä¬XJmРđhI®æÔtSHn€Eˆ„ÒrÈc"],["@@rMUw‡AS®€e"]],"encodeOffsets":[[[117111,23002]],[[117072,22876]],[[117045,22887]],[[116975,23082]],[[116882,22747]]]},"properties":{"cp":[114.173355,22.320048],"name":"香港","childNum":5}},{"id":"820000","type":"Feature","geometry":{"type":"Polygon","coordinates":["@@kÊd°å§s"],"encodeOffsets":[[116279,22639]]},"properties":{"cp":[113.54909,22.198951],"name":"澳门","childNum":1}}],"UTF8Encoding":true}')},function(t,e,n){var i=n(1),r=n(83),o=n(84);t.exports=function(t){var e=i(t);return o(e,r(e))+1}},function(t,e){t.exports=function(t){var e=new Date(t.getTime()),n=e.getTimezoneOffset();return e.setSeconds(0,0),6e4*n+e.getTime()%6e4}},function(t,e,n){var i=n(1);t.exports=function(t){var e=i(t),n=new Date(0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}},function(t,e,n){var i=n(85),r=6e4,o=864e5;t.exports=function(t,e){var n=i(t),a=i(e),s=n.getTime()-n.getTimezoneOffset()*r,l=a.getTime()-a.getTimezoneOffset()*r;return Math.round((s-l)/o)}},function(t,e,n){var i=n(1);t.exports=function(t){var e=i(t);return e.setHours(0,0,0,0),e}},function(t,e,n){var i=n(1),r=n(22),o=n(88),a=6048e5;t.exports=function(t){var e=i(t),n=r(e).getTime()-o(e).getTime();return Math.round(n/a)+1}},function(t,e,n){var i=n(1);t.exports=function(t,e){var n=e&&Number(e.weekStartsOn)||0,r=i(t),o=r.getDay(),a=(o0?"in "+r:r+" ago":r}}}},function(t,e,n){var i=n(93);t.exports=function(){var t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],e=["January","February","March","April","May","June","July","August","September","October","November","December"],n=["Su","Mo","Tu","We","Th","Fr","Sa"],r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],a=["AM","PM"],s=["am","pm"],l=["a.m.","p.m."],u={MMM:function(e){return t[e.getMonth()]},MMMM:function(t){return e[t.getMonth()]},dd:function(t){return n[t.getDay()]},ddd:function(t){return r[t.getDay()]},dddd:function(t){return o[t.getDay()]},A:function(t){return t.getHours()/12>=1?a[1]:a[0]},a:function(t){return t.getHours()/12>=1?s[1]:s[0]},aa:function(t){return t.getHours()/12>=1?l[1]:l[0]}};return["M","D","DDD","d","Q","W"].forEach(function(t){u[t+"o"]=function(e,n){return function(t){var e=t%100;if(e>20||e<10)switch(e%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"}(n[t](e))}}),{formatters:u,formattingTokensRegExp:i(u)}}},function(t,e){var n=["M","MM","Q","D","DD","DDD","DDDD","d","E","W","WW","YY","YYYY","GG","GGGG","H","HH","h","hh","m","mm","s","ss","S","SS","SSS","Z","ZZ","X","x"];t.exports=function(t){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);var r=n.concat(e).sort().reverse();return new RegExp("(\\[[^\\[]*\\])|(\\\\)?("+r.join("|")+"|.)","g")}},function(t,e,n){var i=n(1);t.exports=function(t,e){var n=i(t),r=Number(e);return n.setDate(n.getDate()+r),n}},function(t,e,n){var i=n(1);t.exports=function(t){var e=i(t),n=e.getFullYear(),r=e.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}},function(t,e,n){var i=n(42);t.exports=function(t,e){var n=Number(e);return i(t,12*n)}},function(t,e,n){var i=n(23),r=n(126),o=n(47),a=n(127),s=n(134),l=n(137),u=n(138),h=n(139),c=n(141),d=n(57),f=n(142),p=n(18),g=n(146),m=n(147),v=n(152),y=n(3),x=n(27),_=n(154),b=n(6),w=n(156),M=n(10),S=1,I=2,A=4,D="[object Arguments]",T="[object Function]",C="[object GeneratorFunction]",L="[object Object]",k={};k[D]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k[L]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k[T]=k["[object WeakMap]"]=!1,t.exports=function t(e,n,P,O,N,E){var z,R=n&S,B=n&I,V=n&A;if(P&&(z=N?P(e,O,N,E):P(e)),void 0!==z)return z;if(!b(e))return e;var F=y(e);if(F){if(z=g(e),!R)return u(e,z)}else{var G=p(e),W=G==T||G==C;if(x(e))return l(e,R);if(G==L||G==D||W&&!N){if(z=B||W?{}:v(e),!R)return B?c(e,s(z,e)):h(e,a(z,e))}else{if(!k[G])return N?e:{};z=m(e,G,R)}}E||(E=new i);var H=E.get(e);if(H)return H;E.set(e,z),w(e)?e.forEach(function(i){z.add(t(i,n,P,i,e,E))}):_(e)&&e.forEach(function(i,r){z.set(r,t(i,n,P,r,e,E))});var j=V?B?f:d:B?keysIn:M,Y=F?void 0:j(e);return r(Y||e,function(i,r){Y&&(i=e[r=i]),o(z,r,t(i,n,P,r,e,E))}),z}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var i=n(12),r=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=i(e,t);return!(n<0)&&(n==e.length-1?e.pop():r.call(e,n,1),--this.size,!0)}},function(t,e,n){var i=n(12);t.exports=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var i=n(12);t.exports=function(t){return i(this.__data__,t)>-1}},function(t,e,n){var i=n(12);t.exports=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}},function(t,e,n){var i=n(11);t.exports=function(){this.__data__=new i,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var i=n(11),r=n(24),o=n(25),a=200;t.exports=function(t,e){var n=this.__data__;if(n instanceof i){var s=n.__data__;if(!r||s.length0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var i=n(63),r=n(168),o=n(173),a=n(64),s=n(174),l=n(36),u=200;t.exports=function(t,e,n){var h=-1,c=r,d=t.length,f=!0,p=[],g=p;if(n)f=!1,c=o;else if(d>=u){var m=e?null:s(t);if(m)return l(m);f=!1,c=a,g=new i}else g=e?[]:p;t:for(;++h-1}},function(t,e,n){var i=n(170),r=n(171),o=n(172);t.exports=function(t,e,n){return e==e?o(t,e,n):i(t,r,n)}},function(t,e){t.exports=function(t,e,n,i){for(var r=t.length,o=n+(i?1:-1);i?o--:++o=l?u:u*("desc"==n[r]?-1:1)}return t.index-e.index}},function(t,e,n){var i=n(20);t.exports=function(t,e){if(t!==e){var n=void 0!==t,r=null===t,o=t==t,a=i(t),s=void 0!==e,l=null===e,u=e==e,h=i(e);if(!l&&!h&&!a&&t>e||a&&s&&u&&!l&&!h||r&&s&&u||!n&&u||!o)return 1;if(!r&&!a&&!h&&t=0&&(o.yAxisIndex=l);var u,h,c=function(t){if(!t||t.length<=0)return[];var e=Object.keys(t[0]).filter(function(t){return"key"!==t}),n=e[0];return e.indexOf("close")>=0&&(n="close"),t.map(function(t){return t[n]})}(n[t.sid]);if(t.stack){var d=r[t.stack];d&&"percent"===d.valueType&&(u=c,h=d.totalValues,c=u.map(function(t,e){var n=h[e];return void 0===n?0:(null==t&&(t=0),t/n*100)}))}if(o.data=c,t.transform){var f=t.transform.ratio||1,p=t.transform.fractionDigits;void 0===p&&(p=4),o.data=c.map(function(e){if(null===e)return null;if(e.hasOwnProperty("value")){var n=e.value;return null!==n&&(n=(n=t.stack&&r[t.stack]&&"percent"==r[t.stack].valueType?Number(n):Number(n)*f).toFixed(p)),function(t){for(var e=1;e=0?"left":"right"),t.hasOwnProperty("min")&&(a.min=I(t.min)),t.hasOwnProperty("max")&&(a.max=I(t.max)),t.hasOwnProperty("unit")&&(a.interval=I(t.unit));var s=t.name,l=e.filter(function(t){return t.axisName===s}),u=!1;return l.forEach(function(t){"bar"===t.chartType&&(u=!0)}),a.scale=!u,"none"===n||"vertical"===n?a.splitLine.show=!1:(a.splitLine.show="left"===a.position,a.splitLine.lineStyle={type:"dotted"}),!1===t.axisLineShow&&(a.axisLine.show=!1),!1===t.axisTickShow&&(a.axisTick.show=!1),!0===t.axisTickInside&&(a.axisTick.inside=!0),!1===t.axisLabelShow&&(a.axisLabel.show=!1),!0===t.axisLabelInside&&(a.axisLabel.inside=!0),t.inverse&&(a.inverse=!0),t.axisLabelFormatter&&"D"!=t.axisLabelFormatter&&(a.axisLabel.formatter=function(e,n){return parseFloat(e.toFixed(4))/k[t.axisLabelFormatter]+t.axisLabelFormatter}),e.find(function(e){return e.axisName===t.name&&e.show})||(a.show=!1),i>2&&"right"==a.position&&a.show&&(a.offset=25*r,r++),a})}(s,a,l);var c=i.yAxis.filter(function(t){return t.show&&"right"==t.position}).length;return i.grid={left:"5%",right:c<=1?"5%":30*(c-1)},i.series=E(a,s,e,r),i}function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function B(t){for(var e=1;e=i:parseInt(t)>=i&&parseInt(t)<=o});o=j()(a,o)}}),Z()(o,function(t){return t})}(e,a,s,t,i)),r}function X(t,e,n,i,r){var o=[];switch(r){case"date":default:o=U(t,e,n,i)}var a={__keyList:o};return e.forEach(function(e){if(t[e]){var n=t[e].data,i=t[e].columns;a[e]=[],o.forEach(function(t){var r=n.date.findIndex(function(e){return e===t}),o={key:t};i.forEach(function(t){o[t]=r>=0?n[t][r]:null}),a[e].push(o)})}}),a}var q={top:20,bottom:0,left:10,right:10,containLabel:!0},K=[{type:"inside",realtime:!0,throttle:100,filterMode:"weakFilter",minValueSpan:5}];function Q(t){return t.xAxis.forEach(function(t){var e=void 0;t.axisLabel?e=t.axisLabel.formatter:t.axisLabel={},e&&!D(e)||(t.axisLabel.formatter=function(t){return e&&(t=e(t)),"string"==typeof t&&t.startsWith("2")?t:(t.length>8&&(t=t.substring(0,8)+"..."),t)})}),t}function J(t){return t.series&&t.series[0]&&t.series[0].type&&("line"==t.series[0].type||"bar"==t.series[0].type)&&(t.dataZoom=K),t}function $(t){t.hasOwnProperty("series")&&t.series[0]&&"pie"==t.series[0].type&&function(t){if(!t.tooltip||!t.tooltip.formatter)return;var e=t.tooltip.formatter;"string"==typeof e&&(t.tooltip.formatter=e.replace("
","\n"))}(t)}function tt(t){return t.hasOwnProperty("options")?t.options=t.options.map(function(t){return t.grid={containLabel:!0,left:10,right:10},t.hasOwnProperty("xAxis")&&Q(t),J(t),$(t),t}):(!function(t){t.grid=q}(t),t.hasOwnProperty("xAxis")&&Q(t),J(t),$(t)),t}var et=function(t){return t.animation=!1,delete t.legend,delete t.tooltip,delete t.title,t=tt(t)},nt=n(80);function it(t){return t.hasOwnProperty("title")&&delete t.title,t.hasOwnProperty("legend")&&delete t.legend,t.grid={top:20,bottom:0,left:10,right:10,containLabel:!0},t}n.d(e,"echarts",function(){return W}),n.d(e,"toEcharts",function(){return G}),n.d(e,"utils",function(){return i}),n.d(e,"assembleData",function(){return X}),n.d(e,"adaptInst",function(){return et}),n.d(e,"simpleChart",function(){return it}),W.registerMap("china",nt)}]); //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/index.js.map b/dist/index.js.map index e3feecc..912c76e 100644 --- a/dist/index.js.map +++ b/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sources":["webpack://echartsAdapter/index.js"],"sourcesContent":["exports.echartsAdapter=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&\"object\"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,\"a\",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=\"\",n(n.s=210)}([function(t,e,n){var i=n(81),r=n(86),o=n(41),a=n(1),s=n(89),l=n(90);var u={M:function(t){return t.getMonth()+1},MM:function(t){return d(t.getMonth()+1,2)},Q:function(t){return Math.ceil((t.getMonth()+1)/3)},D:function(t){return t.getDate()},DD:function(t){return d(t.getDate(),2)},DDD:function(t){return i(t)},DDDD:function(t){return d(i(t),3)},d:function(t){return t.getDay()},E:function(t){return t.getDay()||7},W:function(t){return r(t)},WW:function(t){return d(r(t),2)},YY:function(t){return d(t.getFullYear(),4).substr(2)},YYYY:function(t){return d(t.getFullYear(),4)},GG:function(t){return String(o(t)).substr(2)},GGGG:function(t){return o(t)},H:function(t){return t.getHours()},HH:function(t){return d(t.getHours(),2)},h:function(t){var e=t.getHours();return 0===e?12:e>12?e%12:e},hh:function(t){return d(u.h(t),2)},m:function(t){return t.getMinutes()},mm:function(t){return d(t.getMinutes(),2)},s:function(t){return t.getSeconds()},ss:function(t){return d(t.getSeconds(),2)},S:function(t){return Math.floor(t.getMilliseconds()/100)},SS:function(t){return d(Math.floor(t.getMilliseconds()/10),2)},SSS:function(t){return d(t.getMilliseconds(),3)},Z:function(t){return c(t.getTimezoneOffset(),\":\")},ZZ:function(t){return c(t.getTimezoneOffset())},X:function(t){return Math.floor(t.getTime()/1e3)},x:function(t){return t.getTime()}};function h(t){return t.match(/\\[[\\s\\S]/)?t.replace(/^\\[|]$/g,\"\"):t.replace(/\\\\/g,\"\")}function c(t,e){e=e||\"\";var n=t>0?\"-\":\"+\",i=Math.abs(t),r=i%60;return n+d(Math.floor(i/60),2)+e+d(r,2)}function d(t,e){for(var n=Math.abs(t).toString();n.length0&&(k+=R)}return new Date(P+O+k)}return new Date(t)}},function(t,e,n){var i=n(44),r=\"object\"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function(\"return this\")();t.exports=o},function(t,e){var n=Array.isArray;t.exports=n},function(t,e){t.exports=function(t){return null!=t&&\"object\"==typeof t}},function(t,e,n){var i=n(108),r=n(113);t.exports=function(t,e){var n=r(t,e);return i(n)?n:void 0}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&(\"object\"==e||\"function\"==e)}},function(t,e,n){var i=n(2).Symbol;t.exports=i},function(t,e,n){var i=n(43),r=n(30);t.exports=function(t){return null!=t&&r(t.length)&&!i(t)}},function(t,e,n){var i=n(7),r=n(109),o=n(110),a=\"[object Null]\",s=\"[object Undefined]\",l=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?s:a:l&&l in Object(t)?r(t):o(t)}},function(t,e,n){var i=n(50),r=n(132),o=n(8);t.exports=function(t){return o(t)?i(t):r(t)}},function(t,e,n){var i=n(98),r=n(99),o=n(100),a=n(101),s=n(102);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=n}},function(t,e,n){(function(t){var i=n(44),r=e&&!e.nodeType&&e,o=r&&\"object\"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===r&&i.process,s=function(){try{var t=o&&o.require&&o.require(\"util\").types;return t||a&&a.binding&&a.binding(\"util\")}catch(t){}}();t.exports=s}).call(this,n(28)(t))},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===(\"function\"==typeof e&&e.prototype||n)}},function(t,e,n){var i=n(140),r=n(54),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),i(a(t),function(e){return o.call(t,e)}))}:r;t.exports=s},function(t,e){t.exports=function(t,e){for(var n=-1,i=e.length,r=t.length;++n=11),domSupported:\"undefined\"!=typeof document}),g={\"[object Function]\":1,\"[object RegExp]\":1,\"[object Date]\":1,\"[object Error]\":1,\"[object CanvasGradient]\":1,\"[object CanvasPattern]\":1,\"[object Image]\":1,\"[object Canvas]\":1},m={\"[object Int8Array]\":1,\"[object Uint8Array]\":1,\"[object Uint8ClampedArray]\":1,\"[object Int16Array]\":1,\"[object Uint16Array]\":1,\"[object Int32Array]\":1,\"[object Uint32Array]\":1,\"[object Float32Array]\":1,\"[object Float64Array]\":1},v=Object.prototype.toString,y=Array.prototype,x=y.forEach,_=y.filter,b=y.slice,w=y.map,M=y.reduce,S={};function I(t,e){\"createCanvas\"===t&&(k=null),S[t]=e}function A(t){if(null==t||\"object\"!==l(t))return t;var e=t,n=v.call(t);if(\"[object Array]\"===n){if(!lt(t)){e=[];for(var i=0,r=t.length;i3&&(i=Vt.call(i,1));for(var o=e.length,a=0;a4&&(i=Vt.call(i,1,i.length-1));for(var o=i[i.length-1],a=e.length,s=0;s=0){var r=\"touchend\"!==i?e.targetTouches[0]:e.changedTouches[0];r&&jt(t,r,e,n)}else jt(t,e,e,n),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var o=e.button;return null==e.which&&void 0!==o&&Ht.test(e.type)&&(e.which=1&o?1:2&o?3:4&o?2:0),e}function Ut(t,e,n){Wt?t.addEventListener(e,n):t.attachEvent(\"on\"+e,n)}function Xt(t,e,n){Wt?t.removeEventListener(e,n):t.detachEvent(\"on\"+e,n)}var qt=Wt?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};function Kt(t){return 2===t.which||3===t.which}var Qt=function(){this._track=[]};function Jt(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}Qt.prototype={constructor:Qt,recognize:function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},clear:function(){return this._track.length=0,this},_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;o1&&r&&r.length>1){var a=Jt(r)/Jt(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:\"pinch\",target:t[0].target,event:e}}}}},te=\"silent\";function ee(t){qt(this.event)}function ne(){}ne.prototype.dispose=function(){};var ie=[\"click\",\"dblclick\",\"mousewheel\",\"mouseout\",\"mouseup\",\"mousedown\",\"mousemove\",\"contextmenu\"],re=function(t,e,n,i){Ft.call(this),this.storage=t,this.painter=e,this.painterRoot=i,n=n||new ne,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,Rt.call(this),this.setHandlerProxy(n)};function oe(t,e,n){if(t[t.rectHover?\"rectContain\":\"contain\"](e,n)){for(var i,r=t;r;){if(r.clipPath&&!r.clipPath.contain(e,n))return!1;r.silent&&(i=!0),r=r.parent}return!i||te}return!1}re.prototype={constructor:re,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(B(ie,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},mousemove:function(t){var e=t.zrX,n=t.zrY,i=this._hovered,r=i.target;r&&!r.__zr&&(r=(i=this.findHover(i.x,i.y)).target);var o=this._hovered=this.findHover(e,n),a=o.target,s=this.proxy;s.setCursor&&s.setCursor(a?a.cursor:\"default\"),r&&a!==r&&this.dispatchToElement(i,\"mouseout\",t),this.dispatchToElement(o,\"mousemove\",t),a&&a!==r&&this.dispatchToElement(o,\"mouseover\",t)},mouseout:function(t){this.dispatchToElement(this._hovered,\"mouseout\",t);var e,n=t.toElement||t.relatedTarget;do{n=n&&n.parentNode}while(n&&9!==n.nodeType&&!(e=n===this.painterRoot));!e&&this.trigger(\"globalout\",{event:t})},resize:function(t){this._hovered={}},dispatch:function(t,e){var n=this[t];n&&n.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r=\"on\"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.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:ee}}(e,t,n);i&&(i[r]&&(o.cancelBubble=i[r].call(i,o)),i.trigger(e,o),i=i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer(function(t){\"function\"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},findHover:function(t,e,n){for(var i=this.storage.getDisplayList(),r={x:t,y:e},o=i.length-1;o>=0;o--){var a;if(i[o]!==n&&!i[o].ignore&&(a=oe(i[o],t,e))&&(!r.topTarget&&(r.topTarget=i[o]),a!==te)){r.target=i[o];break}}return r},processGesture:function(t,e){this._gestureMgr||(this._gestureMgr=new Qt);var n=this._gestureMgr;\"start\"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(\"end\"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r,this.dispatchToElement({target:i.target},r,i.event)}}},B([\"click\",\"mousedown\",\"mouseup\",\"mousewheel\",\"dblclick\",\"contextmenu\"],function(t){re.prototype[t]=function(e){var n=this.findHover(e.zrX,e.zrY),i=n.target;if(\"mousedown\"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if(\"mouseup\"===t)this._upEl=i;else if(\"click\"===t){if(this._downEl!==this._upEl||!this._downPoint||Ct(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}),z(re,Ft),z(re,Rt);var ae=\"undefined\"==typeof Float32Array?Array:Float32Array;function se(){var t=new ae(6);return le(t),t}function le(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ue(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 he(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],l=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]=l,t}function ce(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 de(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),h=Math.cos(n);return t[0]=i*h+a*u,t[1]=-i*u+a*h,t[2]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t}function fe(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function pe(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function ge(t){var e=se();return ue(e,t),e}var me=(Object.freeze||Object)({create:se,identity:le,copy:ue,mul:he,translate:ce,rotate:de,scale:fe,invert:pe,clone:ge}),ve=le,ye=5e-5;function xe(t){return t>ye||t<-ye}var _e=function(t){(t=t||{}).position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},be=_e.prototype;be.transform=null,be.needLocalTransform=function(){return xe(this.rotation)||xe(this.position[0])||xe(this.position[1])||xe(this.scale[0]-1)||xe(this.scale[1]-1)};var we=[];be.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),i=this.transform;if(n||e){i=i||se(),n?this.getLocalTransform(i):ve(i),e&&(n?he(i,t.transform,i):ue(i,t.transform)),this.transform=i;var r=this.globalScaleRatio;if(null!=r&&1!==r){this.getGlobalScale(we);var o=we[0]<0?-1:1,a=we[1]<0?-1:1,s=((we[0]-o)*r+o)/we[0]||0,l=((we[1]-a)*r+a)/we[1]||0;i[0]*=s,i[1]*=s,i[2]*=l,i[3]*=l}this.invTransform=this.invTransform||se(),pe(this.invTransform,i)}else i&&ve(i)},be.getLocalTransform=function(t){return _e.getLocalTransform(this,t)},be.setTransform=function(t){var e=this.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)},be.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var Me=[],Se=se();be.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=this.position,r=this.scale;xe(e-1)&&(e=Math.sqrt(e)),xe(n-1)&&(n=Math.sqrt(n)),t[0]<0&&(e=-e),t[3]<0&&(n=-n),i[0]=t[4],i[1]=t[5],r[0]=e,r[1]=n,this.rotation=Math.atan2(-t[1]/n,t[0]/e)}},be.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(he(Me,t.invTransform,e),e=Me);var n=this.origin;n&&(n[0]||n[1])&&(Se[4]=n[0],Se[5]=n[1],he(Me,e,Se),Me[4]-=n[0],Me[5]-=n[1],e=Me),this.setLocalTransform(e)}},be.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):(t[0]=1,t[1]=1,t)},be.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&Ot(n,n,i),n},be.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Ot(n,n,i),n},_e.getLocalTransform=function(t,e){ve(e=e||[]);var n=t.origin,i=t.scale||[1,1],r=t.rotation||0,o=t.position||[0,0];return n&&(e[4]-=n[0],e[5]-=n[1]),fe(e,e,i),r&&de(e,e,r),n&&(e[4]+=n[0],e[5]+=n[1]),e[4]+=o[0],e[5]+=o[1],e};var Ie={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:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.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:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ie.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*Ie.bounceIn(2*t):.5*Ie.bounceOut(2*t-1)+.5}};function Ae(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||\"Linear\",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}Ae.prototype={constructor:Ae,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)this._pausedTime+=e;else{var n=(t-this._startTime-this._pausedTime)/this._life;if(!(n<0)){n=Math.min(n,1);var i=this.easing,r=\"string\"==typeof i?Ie[i]:i,o=\"function\"==typeof r?r(n):n;return this.fire(\"frame\",o),1===n?this.loop?(this.restart(t),\"restart\"):(this._needsRemove=!0,\"destroy\"):null}}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){this[t=\"on\"+t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var De=function(){this.head=null,this.tail=null,this._len=0},Te=De.prototype;Te.insert=function(t){var e=new Ce(t);return this.insertEntry(e),e},Te.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},Te.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--},Te.len=function(){return this._len},Te.clear=function(){this.head=this.tail=null,this._len=0};var Ce=function(t){this.value=t,this.next,this.prev},Le=function(t){this._list=new De,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},ke=Le.prototype;ke.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Ce(e),a.key=t,n.insertEntry(a),i[t]=a}return r},ke.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},ke.clear=function(){this._list.clear(),this._map={}};var Pe={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 Oe(t){return(t=Math.round(t))<0?0:t>255?255:t}function Ne(t){return t<0?0:t>1?1:t}function Ee(t){return t.length&&\"%\"===t.charAt(t.length-1)?Oe(parseFloat(t)/100*255):Oe(parseInt(t,10))}function ze(t){return t.length&&\"%\"===t.charAt(t.length-1)?Ne(parseFloat(t)/100):Ne(parseFloat(t))}function Re(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function Be(t,e,n){return t+(e-t)*n}function Ve(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function Fe(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Ge=new Le(20),We=null;function He(t,e){We&&Fe(We,e),We=Ge.put(t,We||e.slice())}function je(t,e){if(t){e=e||[];var n=Ge.get(t);if(n)return Fe(e,n);var i,r=(t+=\"\").replace(/ /g,\"\").toLowerCase();if(r in Pe)return Fe(e,Pe[r]),He(t,e),e;if(\"#\"===r.charAt(0))return 4===r.length?(i=parseInt(r.substr(1),16))>=0&&i<=4095?(Ve(e,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,1),He(t,e),e):void Ve(e,0,0,0,1):7===r.length?(i=parseInt(r.substr(1),16))>=0&&i<=16777215?(Ve(e,(16711680&i)>>16,(65280&i)>>8,255&i,1),He(t,e),e):void Ve(e,0,0,0,1):void 0;var o=r.indexOf(\"(\"),a=r.indexOf(\")\");if(-1!==o&&a+1===r.length){var s=r.substr(0,o),l=r.substr(o+1,a-(o+1)).split(\",\"),u=1;switch(s){case\"rgba\":if(4!==l.length)return void Ve(e,0,0,0,1);u=ze(l.pop());case\"rgb\":return 3!==l.length?void Ve(e,0,0,0,1):(Ve(e,Ee(l[0]),Ee(l[1]),Ee(l[2]),u),He(t,e),e);case\"hsla\":return 4!==l.length?void Ve(e,0,0,0,1):(l[3]=ze(l[3]),Ye(l,e),He(t,e),e);case\"hsl\":return 3!==l.length?void Ve(e,0,0,0,1):(Ye(l,e),He(t,e),e);default:return}}Ve(e,0,0,0,1)}}function Ye(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=ze(t[1]),r=ze(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return Ve(e=e||[],Oe(255*Re(a,o,n+1/3)),Oe(255*Re(a,o,n)),Oe(255*Re(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Ze(t,e){var n=je(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,n[i]>255?n[i]=255:t[i]<0&&(n[i]=0);return tn(n,4===n.length?\"rgba\":\"rgb\")}}function Ue(t){var e=je(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Xe(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=Oe(Be(a[0],s[0],l)),n[1]=Oe(Be(a[1],s[1],l)),n[2]=Oe(Be(a[2],s[2],l)),n[3]=Ne(Be(a[3],s[3],l)),n}}var qe=Xe;function Ke(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=je(e[r]),s=je(e[o]),l=i-r,u=tn([Oe(Be(a[0],s[0],l)),Oe(Be(a[1],s[1],l)),Oe(Be(a[2],s[2],l)),Ne(Be(a[3],s[3],l))],\"rgba\");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}var Qe=Ke;function Je(t,e,n,i){if(t=je(t))return t=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-c:r===s?e=1/3+h-d:o===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}(t),null!=e&&(t[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}(e)),null!=n&&(t[1]=ze(n)),null!=i&&(t[2]=ze(i)),tn(Ye(t),\"rgba\")}function $e(t,e){if((t=je(t))&&null!=e)return t[3]=Ne(e),tn(t,\"rgba\")}function tn(t,e){if(t&&t.length){var n=t[0]+\",\"+t[1]+\",\"+t[2];return\"rgba\"!==e&&\"hsva\"!==e&&\"hsla\"!==e||(n+=\",\"+t[3]),e+\"(\"+n+\")\"}}var en=(Object.freeze||Object)({parse:je,lift:Ze,toHex:Ue,fastLerp:Xe,fastMapToColor:qe,lerp:Ke,mapToColor:Qe,modifyHSL:Je,modifyAlpha:$e,stringify:tn}),nn=Array.prototype.slice;function rn(t,e){return t[e]}function on(t,e,n){t[e]=n}function an(t,e,n){return(e-t)*n+t}function sn(t,e,n){return n>.5?e:t}function ln(t,e,n,i,r){var o=t.length;if(1===r)for(var a=0;ar)t.length=r;else for(var o=i;o=0&&!(g[n]<=e);n--);n=Math.min(n,u-2)}else{for(n=T;ne);n++);n=Math.min(n-1,u-2)}T=n,C=e;var i=g[n+1]-g[n];if(0!==i)if(M=(e-g[n])/i,l)if(I=m[n],S=m[0===n?n:n-1],A=m[n>u-2?u-1:n+1],D=m[n>u-3?u-1:n+2],c)cn(S,I,A,D,M,M*M,M*M*M,a(t,r),p);else{if(d)o=cn(S,I,A,D,M,M*M,M*M*M,L,1),o=pn(L);else{if(f)return sn(I,A,M);o=dn(S,I,A,D,M,M*M,M*M*M)}s(t,r,o)}else if(c)ln(m[n],m[n+1],M,a(t,r),p);else{var o;if(d)ln(m[n],m[n+1],M,L,1),o=pn(L);else{if(f)return sn(m[n],m[n+1],M);o=an(m[n],m[n+1],M)}s(t,r,o)}},ondestroy:n});return e&&\"spline\"!==e&&(k.easing=e),k}}}var mn=function(t,e,n,i){this._tracks={},this._target=t,this._loop=e||!1,this._getter=n||rn,this._setter=i||on,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};mn.prototype={when:function(t,e){var n=this._tracks;for(var i in e)if(e.hasOwnProperty(i)){if(!n[i]){n[i]=[];var r=this._getter(this._target,i);if(null==r)continue;0!==t&&n[i].push({time:0,value:fn(r)})}n[i].push({time:t,value:e[i]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;t0&&e.animate(n,!1).when(null==o?500:o,l).delay(a||0)}(t,\"\",t,e,n,i,s);var l=t.animators.slice(),u=l.length;function h(){--u||o&&o()}u||o&&o();for(var c=0;c=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},clone:function(){return new Pn(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},Pn.create=function(t){return new Pn(t.x,t.y,t.width,t.height)};var On=function(t){for(var e in t=t||{},Sn.call(this,t),t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};On.prototype={constructor:On,isGroup:!0,type:\"group\",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,n=0;n=0&&(n.splice(i,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,n=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof On&&t.addChildrenToStorage(e)),n&&n.refresh()},remove:function(t){var e=this.__zr,n=this.__storage,i=this._children,r=N(i,t);return r<0?this:(i.splice(r,1),t.parent=null,n&&(n.delFromStorage(t),t instanceof On&&t.delChildrenFromStorage(n)),e&&e.refresh(),this)},removeAll:function(){var t,e,n=this._children,i=this.__storage;for(e=0;e=0;)r++;return r-e}function Rn(t,e,n,i,r){for(i===e&&i++;i>>1])<0?l=o:s=o+1;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(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Bn(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function Vn(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function Fn(t,e){var n,i,r=En,o=0,a=[];function s(s){var l=n[s],u=i[s],h=n[s+1],c=i[s+1];i[s]=u+c,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var d=Vn(t[h],t,l,u,0,e);l+=d,0!=(u-=d)&&0!==(c=Bn(t[l+u-1],t,h,c,c-1,e))&&(u<=c?function(n,i,o,s){var l=0;for(l=0;l=En||f>=En);if(p)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l=0;l--)t[f+l]=t[d+l];if(0===i){v=!0;break}}if(t[c--]=a[h--],1==--s){v=!0;break}if(0!=(m=s-Bn(t[u],a,0,s,s-1,e))){for(s-=m,f=1+(c-=m),d=1+(h-=m),l=0;l=En||m>=En);if(v)break;p<0&&(p=0),p+=2}if((r=p)<1&&(r=1),1===s){for(f=1+(c-=i),d=1+(u-=i),l=i-1;l>=0;l--)t[f+l]=t[d+l];t[c]=a[h]}else{if(0===s)throw new Error;for(d=c-(s-1),l=0;l=0;l--)t[f+l]=t[d+l];t[c]=a[h]}else for(d=c-(s-1),l=0;l1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]i[t+1])break;s(t)}},this.forceMergeRuns=function(){for(;o>1;){var t=o-2;t>0&&i[t-1]=Nn;)e|=1&t,t>>=1;return t+e}(r);do{if((o=zn(t,n,i,e))s&&(l=s),Rn(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}function Wn(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Hn=function(){this._roots=[],this._displayList=[],this._displayListLen=0};Hn.prototype={constructor:Hn,traverse:function(t,e){for(var n=0;n=0&&(this.delFromStorage(t),this._roots.splice(r,1),t instanceof On&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:Wn};var jn={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1},Yn=function(t,e,n){return jn.hasOwnProperty(e)?n*t.dpr:n},Zn={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},Un=9,Xn=[[\"shadowBlur\",0],[\"shadowOffsetX\",0],[\"shadowOffsetY\",0],[\"shadowColor\",\"#000\"],[\"lineCap\",\"butt\"],[\"lineJoin\",\"miter\"],[\"miterLimit\",10]],qn=function(t){this.extendFrom(t,!1)};function Kn(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=isNaN(i)?0:i,r=isNaN(r)?1:r,o=isNaN(o)?0:o,a=isNaN(a)?0:a,t.createLinearGradient(i,o,r,a)}function Qn(t,e,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*i+n.x,s=s*r+n.y,l*=o),t.createRadialGradient(a,s,0,a,s,l)}qn.prototype={constructor:qn,fill:\"#000\",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:\"#000\",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:\"inside\",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:\"transparent\",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:\"transparent\",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(t,e,n){var i=n&&n.style,r=!i||t.__attrCachedBy!==Zn.STYLE_BIND;t.__attrCachedBy=Zn.STYLE_BIND;for(var o=0;o0},extendFrom:function(t,e){if(t)for(var n in t)!t.hasOwnProperty(n)||!0!==e&&(!1===e?this.hasOwnProperty(n):null==t[n])||(this[n]=t[n])},set:function(t,e){\"string\"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,n){for(var i=(\"radial\"===e.type?Qn:Kn)(t,e,n),r=e.colorStops,o=0;ofi&&(di=0,ci={}),di++,ci[n]=r,r}function yi(t,e,n,i,r,o,a,s){return a?function(t,e,n,i,r,o,a,s){var l=Ci(t,{rich:a,truncate:s,font:e,textAlign:n,textPadding:r,textLineHeight:o}),u=l.outerWidth,h=l.outerHeight,c=xi(0,u,n),d=_i(0,h,i);return new Pn(c,d,u,h)}(t,e,n,i,r,a,o,s):function(t,e,n,i,r,o,a){var s=Ti(t,e,r,o,a),l=vi(t,e);r&&(l+=r[1]+r[3]);var u=s.outerHeight,h=xi(0,l,n),c=_i(0,u,i),d=new Pn(h,c,l,u);return d.lineHeight=s.lineHeight,d}(t,e,n,i,r,o,s)}function xi(t,e,n){return\"right\"===n?t-=e:\"center\"===n&&(t-=e/2),t}function _i(t,e,n){return\"middle\"===n?t-=e/2:\"bottom\"===n&&(t-=e),t}function bi(t,e,n){var i=e.x,r=e.y,o=e.height,a=e.width,s=o/2,l=\"left\",u=\"top\";switch(t){case\"left\":i-=n,r+=s,l=\"right\",u=\"middle\";break;case\"right\":i+=n+a,r+=s,u=\"middle\";break;case\"top\":i+=a/2,r-=n,l=\"center\",u=\"bottom\";break;case\"bottom\":i+=a/2,r+=o+n,l=\"center\";break;case\"inside\":i+=a/2,r+=s,l=\"center\",u=\"middle\";break;case\"insideLeft\":i+=n,r+=s,u=\"middle\";break;case\"insideRight\":i+=a-n,r+=s,l=\"right\",u=\"middle\";break;case\"insideTop\":i+=a/2,r+=n,l=\"center\";break;case\"insideBottom\":i+=a/2,r+=o-n,l=\"center\",u=\"bottom\";break;case\"insideTopLeft\":i+=n,r+=n;break;case\"insideTopRight\":i+=a-n,r+=n,l=\"right\";break;case\"insideBottomLeft\":i+=n,r+=o-n,u=\"bottom\";break;case\"insideBottomRight\":i+=a-n,r+=o-n,l=\"right\",u=\"bottom\"}return{x:i,y:r,textAlign:l,textVerticalAlign:u}}function wi(t,e,n,i,r){if(!e)return\"\";var o=(t+\"\").split(\"\\n\");r=Mi(e,n,i,r);for(var a=0,s=o.length;a=o;s++)a-=o;var l=vi(n,e);return l>a&&(n=\"\",l=0),a=t-l,i.ellipsis=n,i.ellipsisWidth=l,i.contentWidth=a,i.containerWidth=t,i}function Si(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return\"\";var o=vi(t,i);if(o<=n)return t;for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Ii(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;o=vi(t=t.substr(0,s),i)}return\"\"===t&&(t=e.placeholder),t}function Ii(t,e,n,i){for(var r=0,o=0,a=t.length;ou)t=\"\",a=[];else if(null!=h)for(var c=Mi(h-(n?n[1]+n[3]:0),e,r.ellipsis,{minChar:r.minChar,placeholder:r.placeholder}),d=0,f=a.length;dr&&Li(n,t.substring(r,o)),Li(n,i[2],i[1]),r=pi.lastIndex}rf)return{lines:[],width:0,height:0};C.textWidth=vi(C.text,b);var M=x.textWidth,S=null==M||\"auto\"===M;if(\"string\"==typeof M&&\"%\"===M.charAt(M.length-1))C.percentWidth=M,u.push(C),M=0;else{if(S){M=C.textWidth;var I=x.textBackgroundColor,A=I&&I.image;A&&hi(A=si(A))&&(M=Math.max(M,A.width*w/A.height))}var D=_?_[1]+_[3]:0;M+=D;var T=null!=d?d-v:null;null!=T&&Tu&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>h&&(i*=h/(a=i+r),r*=h/a),n+o>h&&(n*=h/(a=n+o),o*=h/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+h-r),0!==r&&t.arc(s+u-r,l+h-r,r,0,Math.PI/2),t.lineTo(s+o,l+h),0!==o&&t.arc(s+o,l+h-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}mi.measureText=function(t,e){var n=O();return n.font=e||gi,n.measureText(t)};var Oi=gi,Ni={left:1,right:1,center:1},Ei={top:1,bottom:1,middle:1},zi=[[\"textShadowBlur\",\"shadowBlur\",0],[\"textShadowOffsetX\",\"shadowOffsetX\",0],[\"textShadowOffsetY\",\"shadowOffsetY\",0],[\"textShadowColor\",\"shadowColor\",\"transparent\"]];function Ri(t){return Bi(t),B(t.rich,Bi),t}function Bi(t){if(t){t.font=ki(t);var e=t.textAlign;\"middle\"===e&&(e=\"center\"),t.textAlign=null==e||Ni[e]?e:\"left\";var n=t.textVerticalAlign||t.textBaseline;\"center\"===n&&(n=\"middle\"),t.textVerticalAlign=null==n||Ei[n]?n:\"top\",t.textPadding&&(t.textPadding=it(t.textPadding))}}function Vi(t,e,n,i,r,o){i.rich?function(t,e,n,i,r,o){o!==Un&&(e.__attrCachedBy=Zn.NONE);var a=t.__textCotentBlock;a&&!t.__dirtyText||(a=t.__textCotentBlock=Ci(n,i)),function(t,e,n,i,r){var o=n.width,a=n.outerWidth,s=n.outerHeight,l=i.textPadding,u=Yi(0,i,r),h=u.baseX,c=u.baseY,d=u.textAlign,f=u.textVerticalAlign;Fi(e,i,r,h,c);var p=xi(h,a,d),g=_i(c,s,f),m=p,v=g;l&&(m+=l[3],v+=l[0]);var y=m+o;Wi(i)&&Hi(t,e,i,p,g,a,s);for(var x=0;x=0&&\"right\"===(_=w[C]).textAlign;)Gi(t,e,_,i,S,v,T,\"right\"),I-=_.width,T-=_.width,C--;for(D+=(o-(D-m)-(y-T)-I)/2;A<=C;)_=w[A],Gi(t,e,_,i,S,v,D+_.width/2,\"center\"),D+=_.width,A++;v+=S}}(t,e,a,i,r)}(t,e,n,i,r,o):function(t,e,n,i,r,o){var a,s=Wi(i),l=!1,u=e.__attrCachedBy===Zn.PLAIN_TEXT;o!==Un?(o&&(a=o.style,l=!s&&u&&a),e.__attrCachedBy=s?Zn.NONE:Zn.PLAIN_TEXT):u&&(e.__attrCachedBy=Zn.NONE);var h=i.font||Oi;l&&h===(a.font||Oi)||(e.font=h);var c=t.__computedFont;t.__styleFont!==h&&(t.__styleFont=h,c=t.__computedFont=e.font);var d=i.textPadding,f=i.textLineHeight,p=t.__textCotentBlock;p&&!t.__dirtyText||(p=t.__textCotentBlock=Ti(n,c,d,f,i.truncate));var g=p.outerHeight,m=p.lines,v=p.lineHeight,y=Yi(0,i,r),x=y.baseX,_=y.baseY,b=y.textAlign||\"left\",w=y.textVerticalAlign;Fi(e,i,r,x,_);var M=_i(_,g,w),S=x,I=M;if(s||d){var A=vi(n,c);d&&(A+=d[1]+d[3]);var D=xi(x,A,b);s&&Hi(t,e,i,D,M,A,g),d&&(S=Ki(x,b,d),I+=d[0])}e.textAlign=b,e.textBaseline=\"middle\",e.globalAlpha=i.opacity||1;for(var T=0;T=0?parseFloat(t)/100*e:parseFloat(t):t}function Ki(t,e,n){return\"right\"===e?t-n[1]:\"center\"===e?t+n[3]/2-n[1]/2:t+n[3]}function Qi(t,e){return null!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)}var Ji=new Pn,$i=function(){};function tr(t){for(var e in t=t||{},Sn.call(this,t),t)t.hasOwnProperty(e)&&\"style\"!==e&&(this[e]=t[e]);this.style=new qn(t.style,this),this._rect=null,this.__clipPaths=[]}function er(t){tr.call(this,t)}function nr(t){return parseInt(t,10)}$i.prototype={constructor:$i,drawRectText:function(t,e){var n=this.style;e=n.textRect||e,this.__dirty&&Ri(n);var i=n.text;if(null!=i&&(i+=\"\"),Qi(i,n)){t.save();var r=this.transform;n.transformText?this.setTransform(t):r&&(Ji.copy(e),Ji.applyTransform(r),e=Ji),Vi(this,t,i,n,e,Un),t.restore()}}},tr.prototype={constructor:tr,type:\"displayable\",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:\"pointer\",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(t){},afterBrush:function(t){},brush:function(t,e){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate(\"style\",t)},attrKV:function(t,e){\"style\"!==t?Sn.prototype.attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new qn(t,this),this.dirty(!1),this}},E(tr,Sn),z(tr,$i),er.prototype={constructor:er,type:\"image\",brush:function(t,e){var n=this.style,i=n.image;n.bind(t,this,e);var r=this._image=li(i,this._image,this,this.onload);if(r&&hi(r)){var o=n.x||0,a=n.y||0,s=n.width,l=n.height,u=r.width/r.height;if(null==s&&null!=l?s=l*u:null==l&&null!=s?l=s/u:null==s&&null==l&&(s=r.width,l=r.height),this.setTransform(t),n.sWidth&&n.sHeight){var h=n.sx||0,c=n.sy||0;t.drawImage(r,h,c,n.sWidth,n.sHeight,o,a,s,l)}else if(n.sx&&n.sy){var d=s-(h=n.sx),f=l-(c=n.sy);t.drawImage(r,h,c,d,f,o,a,s,l)}else t.drawImage(r,o,a,s,l);null!=n.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new Pn(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},E(er,tr);var ir=new Pn(0,0,0,0),rr=new Pn(0,0,0,0),or=function(t,e,n){this.type=\"canvas\";var i=!t.nodeName||\"CANVAS\"===t.nodeName.toUpperCase();this._opts=n=C({},n||{}),this.dpr=n.devicePixelRatio||yn,this._singleCanvas=i,this.root=t;var r=t.style;r&&(r[\"-webkit-tap-highlight-color\"]=\"transparent\",r[\"-webkit-user-select\"]=r[\"user-select\"]=r[\"-webkit-touch-callout\"]=\"none\",t.innerHTML=\"\"),this.storage=e;var o=this._zlevelList=[],a=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,i){var s=t.width,l=t.height;null!=n.width&&(s=n.width),null!=n.height&&(l=n.height),this.dpr=n.devicePixelRatio||1,t.width=s*this.dpr,t.height=l*this.dpr,this._width=s,this._height=l;var u=new ri(t,this,this.dpr);u.__builtin__=!0,u.initContext(),a[314159]=u,u.zlevel=314159,o.push(314159),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var h=this._domRoot=function(t,e){var n=document.createElement(\"div\");return n.style.cssText=[\"position:relative\",\"overflow:hidden\",\"width:\"+t+\"px\",\"height:\"+e+\"px\",\"padding:0\",\"margin:0\",\"border-width:0\"].join(\";\")+\";\",n}(this._width,this._height);t.appendChild(h)}this._hoverlayer=null,this._hoverElements=[]};or.prototype={constructor:or,getType:function(){return\"canvas\"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(t){var e=this.storage.getDisplayList(!0),n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,t,this._redrawId);for(var i=0;i=0&&n.splice(i,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,n=0;n15)break}s.__drawIndex=m,s.__drawIndex0&&t>i[0]){for(a=0;at);a++);o=n[i[a]]}if(i.splice(a+1,0,t),n[t]=e,!e.virtual)if(o){var l=o.dom;l.nextSibling?s.insertBefore(e.dom,l.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)}else _n(\"Layer of zlevel \"+t+\" is not valid\")},eachLayer:function(t,e){var n,i,r=this._zlevelList;for(i=0;i0?.01:0),this._needsManuallyCompositing),a.__builtin__||_n(\"ZLevel \"+s+\" has been used by unkown layer \"+a.id),a!==i&&(a.__used=!0,a.__startIndex!==n&&(a.__dirty=!0),a.__startIndex=n,a.incremental?a.__drawIndex=-1:a.__drawIndex=n,e(n),i=a),o.__dirty&&(a.__dirty=!0,a.incremental&&a.__drawIndex<0&&(a.__drawIndex=n))}e(n),this.eachBuiltinLayer(function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},setBackgroundColor:function(t){this._backgroundColor=t},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=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),n=0;n=n.length&&n.push({option:t})}}),n}function Nr(t){var e=ht();Ir(t,function(t,n){var i=t.exist;i&&e.set(i.id,t)}),Ir(t,function(t,n){var i=t.option;rt(!i||null==i.id||!e.get(i.id)||e.get(i.id)===t,\"id duplicates: \"+(i&&i.id)),i&&null!=i.id&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})}),Ir(t,function(t,n){var i=t.exist,r=t.option,o=t.keyInfo;if(Ar(r)){if(o.name=null!=r.name?r.name+\"\":i?i.name:Tr+n,i)o.id=i.id;else if(null!=r.id)o.id=r.id+\"\";else{var a=0;do{o.id=\"\\0\"+o.name+\"\\0\"+a++}while(e.get(o.id))}e.set(o.id,t)}})}function Er(t){var e=t.name;return!(!e||!e.indexOf(Tr))}function zr(t){return Ar(t)&&t.id&&0===(t.id+\"\").indexOf(\"\\0_ec_\\0\")}function Rr(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?Y(e.dataIndex)?V(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?Y(e.name)?V(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function Br(){var t=\"__\\0ec_inner_\"+Vr+++\"_\"+Math.random().toFixed(5);return function(e){return e[t]||(e[t]={})}}var Vr=0;function Fr(t,e,n){if(U(e)){var i={};i[e+\"Index\"]=0,e=i}var r=n&&n.defaultMainType;!r||Gr(e,r+\"Index\")||Gr(e,r+\"Id\")||Gr(e,r+\"Name\")||(e[r+\"Index\"]=0);var o={};return Ir(e,function(i,r){if(i=e[r],\"dataIndex\"!==r&&\"dataIndexInside\"!==r){var a=r.match(/^(\\w+)(Index|Id|Name)$/)||[],s=a[1],l=(a[2]||\"\").toLowerCase();if(!(!s||!l||null==i||\"index\"===l&&\"none\"===i||n&&n.includeMainTypes&&N(n.includeMainTypes,s)<0)){var u={mainType:s};\"index\"===l&&\"all\"===i||(u[l]=i);var h=t.queryComponents(u);o[s+\"Models\"]=h,o[s+\"Model\"]=h[0]}}else o[r]=i}),o}function Gr(t,e){return t&&t.hasOwnProperty(e)}function Wr(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Hr(t){return\"auto\"===t?p.domSupported?\"html\":\"richText\":t||\"html\"}var jr=\".\",Yr=\"___EC__COMPONENT__CONTAINER___\";function Zr(t){var e={main:\"\",sub:\"\"};return t&&(t=t.split(jr),e.main=t[0]||\"\",e.sub=t[1]||\"\"),e}function Ur(t,e){t.$constructor=t,t.extend=function(t){c&&B(e,function(e){t[e]||console.warn(\"Method `\"+e+\"` should be implemented\"+(t.type?\" in \"+t.type:\"\")+\".\")});var n=this,i=function(){t.$constructor?t.$constructor.apply(this,arguments):n.apply(this,arguments)};return C(i.prototype,t),i.extend=this.extend,i.superCall=Kr,i.superApply=Qr,E(i,this),i.superClass=n,i}}var Xr=0;function qr(t){var e=[\"__\\0is_clz\",Xr++,Math.random().toFixed(3)].join(\"_\");t.prototype[e]=!0,c&&rt(!t.isInstance,'The method \"is\" can not be defined.'),t.isInstance=function(t){return!(!t||!t[e])}}function Kr(t,e){var n=nt(arguments,2);return this.superClass.prototype[e].apply(t,n)}function Qr(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Jr(t,e){e=e||{};var n={};if(t.registerClass=function(t,e){return e&&(function(t){rt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType \"'+t+'\" illegal')}(e),(e=Zr(e)).sub?e.sub!==Yr&&((function(t){var e=n[t.main];return e&&e[Yr]||((e=n[t.main]={})[Yr]=!0),e}(e))[e.sub]=t):(c&&n[e.main]&&console.warn(e.main+\" exists.\"),n[e.main]=t)),t},t.getClass=function(t,e,i){var r=n[t];if(r&&r[Yr]&&(r=e?r[e]:null),i&&!r)throw new Error(e?\"Component \"+t+\".\"+(e||\"\")+\" not exists. Load it first.\":t+\".type should be specified.\");return r},t.getClassesByMainType=function(t){t=Zr(t);var e=[],i=n[t.main];return i&&i[Yr]?B(i,function(t,n){n!==Yr&&e.push(t)}):e.push(i),e},t.hasClass=function(t){return t=Zr(t),!!n[t.main]},t.getAllClassMainTypes=function(){var t=[];return B(n,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){t=Zr(t);var e=n[t.main];return e&&e[Yr]},t.parseClassType=Zr,e.registerWhenExtend){var i=t.extend;i&&(t.extend=function(e){var n=i.call(this,e);return t.registerClass(n,e.type)})}return t}var $r=function(t){for(var e=0;e=0||i&&N(i,a)<0)){var s=e.getShallow(a);null!=s&&(r[t[o][0]]=s)}}return r}},to=$r([[\"lineWidth\",\"width\"],[\"stroke\",\"color\"],[\"opacity\"],[\"shadowBlur\"],[\"shadowOffsetX\"],[\"shadowOffsetY\"],[\"shadowColor\"]]),eo={getLineStyle:function(t){var e=to(this,t),n=this.getLineDash(e.lineWidth);return n&&(e.lineDash=n),e},getLineDash:function(t){null==t&&(t=1);var e=this.get(\"type\"),n=Math.max(t,2),i=4*t;return\"solid\"===e||null==e?null:\"dashed\"===e?[i,i]:[n,n]}},no=$r([[\"fill\",\"color\"],[\"shadowBlur\"],[\"shadowOffsetX\"],[\"shadowOffsetY\"],[\"opacity\"],[\"shadowColor\"]]),io={getAreaStyle:function(t,e){return no(this,t,e)}},ro=Math.pow,oo=Math.sqrt,ao=1e-8,so=1e-4,lo=oo(3),uo=1/3,ho=gt(),co=gt(),fo=gt();function po(t){return t>-ao&&tao||t<-ao}function mo(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 vo(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function yo(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(po(a))go(o)&&(h=-s/o)>=0&&h<=1&&(r[l++]=h);else{var u=o*o-4*a*s;if(po(u))r[0]=-o/(2*a);else if(u>0){var h,c=oo(u),d=(-o-c)/(2*a);(h=(-o+c)/(2*a))>=0&&h<=1&&(r[l++]=h),d>=0&&d<=1&&(r[l++]=d)}}return l}function xo(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function _o(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function bo(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function wo(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function Mo(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}var So=Math.min,Io=Math.max,Ao=Math.sin,Do=Math.cos,To=2*Math.PI,Co=gt(),Lo=gt(),ko=gt();function Po(t,e,n){if(0!==t.length){var i,r=t[0],o=r[0],a=r[0],s=r[1],l=r[1];for(i=1;i1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(Co[0]=Do(r)*n+t,Co[1]=Ao(r)*i+e,Lo[0]=Do(o)*n+t,Lo[1]=Ao(o)*i+e,u(s,Co,Lo),h(l,Co,Lo),(r%=To)<0&&(r+=To),(o%=To)<0&&(o+=To),r>o&&!a?o+=To:rr&&(ko[0]=Do(f)*n+t,ko[1]=Ao(f)*i+e,u(s,ko,s),h(l,ko,l))}var Vo={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Fo=[],Go=[],Wo=[],Ho=[],jo=Math.min,Yo=Math.max,Zo=Math.cos,Uo=Math.sin,Xo=Math.sqrt,qo=Math.abs,Ko=\"undefined\"!=typeof Float32Array,Qo=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};function Jo(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>e+s&&a>i+s||at+s&&o>n+s||oe+c&&h>i+c&&h>o+c&&h>s+c||ht+c&&u>n+c&&u>r+c&&u>a+c||u=0&&pe+u&&l>i+u&&l>o+u||lt+u&&s>n+u&&s>r+u||s=0&&mthis._ux||qo(e-this._yi)>this._uy||this._len<5;return this.addData(Vo.L,t,e),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,n,i,r,o){return this.addData(Vo.C,t,e,n,i,r,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,i,r,o):this._ctx.bezierCurveTo(t,e,n,i,r,o)),this._xi=r,this._yi=o,this},quadraticCurveTo:function(t,e,n,i){return this.addData(Vo.Q,t,e,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},arc:function(t,e,n,i,r,o){return this.addData(Vo.A,t,e,n,n,i,r-i,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=Zo(r)*n+t,this._yi=Uo(r)*n+e,this},arcTo:function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},rect:function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Vo.R,t,e,n,i),this},closePath:function(){this.addData(Vo.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;ne.length&&(this._expandData(),e=this.data);for(var n=0;n0&&f<=t||h<0&&f>=t||0===h&&(c>0&&p<=e||c<0&&p>=e);)f+=h*(n=a[i=this._dashIdx]),p+=c*n,this._dashIdx=(i+1)%g,h>0&&fl||c>0&&pu||s[i%2?\"moveTo\":\"lineTo\"](h>=0?jo(f,t):Yo(f,t),c>=0?jo(p,e):Yo(p,e));h=f-t,c=p-e,this._dashOffset=-Xo(h*h+c*c)},_dashedBezierTo:function(t,e,n,i,r,o){var a,s,l,u,h,c=this._dashSum,d=this._dashOffset,f=this._lineDash,p=this._ctx,g=this._xi,m=this._yi,v=mo,y=0,x=this._dashIdx,_=f.length,b=0;for(d<0&&(d=c+d),d%=c,a=0;a<1;a+=.1)s=v(g,t,n,r,a+.1)-v(g,t,n,r,a),l=v(m,e,i,o,a+.1)-v(m,e,i,o,a),y+=Xo(s*s+l*l);for(;x<_&&!((b+=f[x])>d);x++);for(a=(b-d)/y;a<=1;)u=v(g,t,n,r,a),h=v(m,e,i,o,a),x%2?p.moveTo(u,h):p.lineTo(u,h),a+=f[x]/y,x=(x+1)%_;x%2!=0&&p.lineTo(r,o),s=r-u,l=o-h,this._dashOffset=-Xo(s*s+l*l)},_dashedQuadraticTo:function(t,e,n,i){var r=n,o=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,r,o)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,Ko&&(this.data=new Float32Array(t)))},getBoundingRect:function(){Fo[0]=Fo[1]=Wo[0]=Wo[1]=Number.MAX_VALUE,Go[0]=Go[1]=Ho[0]=Ho[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,n=0,i=0,r=0,o=0;ol||qo(a-r)>u||c===h-1)&&(t.lineTo(o,a),i=o,r=a);break;case Vo.C:t.bezierCurveTo(s[c++],s[c++],s[c++],s[c++],s[c++],s[c++]),i=s[c-2],r=s[c-1];break;case Vo.Q:t.quadraticCurveTo(s[c++],s[c++],s[c++],s[c++]),i=s[c-2],r=s[c-1];break;case Vo.A:var f=s[c++],p=s[c++],g=s[c++],m=s[c++],v=s[c++],y=s[c++],x=s[c++],_=s[c++],b=g>m?g:m,w=g>m?1:g/m,M=g>m?m/g:1,S=v+y;Math.abs(g-m)>.001?(t.translate(f,p),t.rotate(x),t.scale(w,M),t.arc(0,0,b,v,S,1-_),t.scale(1/w,1/M),t.rotate(-x),t.translate(-f,-p)):t.arc(f,p,b,v,S,1-_),1===c&&(e=Zo(v)*g+f,n=Uo(v)*m+p),i=Zo(S)*g+f,r=Uo(S)*m+p;break;case Vo.R:e=i=s[c],n=r=s[c+1],t.rect(s[c++],s[c++],s[c++],s[c++]);break;case Vo.Z:t.closePath(),i=e,r=n}}}},Qo.CMD=Vo;var ea=2*Math.PI;function na(t){return(t%=ea)<0&&(t+=ea),t}var ia=2*Math.PI;function ra(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var h=Math.sqrt(s*s+l*l);if(h-u>n||h+ur&&(r+=ia);var d=Math.atan2(l,s);return d<0&&(d+=ia),d>=i&&d<=r||d+ia>=i&&d+ia<=r}function oa(t,e,n,i,r,o){if(o>e&&o>i||or?a:0}var aa=Qo.CMD,sa=2*Math.PI,la=1e-4,ua=[-1,-1,-1],ha=[-1,-1];function ca(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u=0&&S<=1&&(o[f++]=S);else{var p=c*c-4*h*d;if(po(p)){var g=c/h,m=-g/2;(S=-s/a+g)>=0&&S<=1&&(o[f++]=S),m>=0&&m<=1&&(o[f++]=m)}else if(p>0){var v=oo(p),y=h*s+1.5*a*(-c+v),x=h*s+1.5*a*(-c-v);(S=(-s-((y=y<0?-ro(-y,uo):ro(y,uo))+(x=x<0?-ro(-x,uo):ro(x,uo))))/(3*a))>=0&&S<=1&&(o[f++]=S)}else{var _=(2*h*s-3*a*c)/(2*oo(h*h*h)),b=Math.acos(_)/3,w=oo(h),M=Math.cos(b),S=(-s-2*w*M)/(3*a),I=(m=(-s+w*(M+lo*Math.sin(b)))/(3*a),(-s+w*(M-lo*Math.sin(b)))/(3*a));S>=0&&S<=1&&(o[f++]=S),m>=0&&m<=1&&(o[f++]=m),I>=0&&I<=1&&(o[f++]=I)}}return f}(e,i,o,s,u,ua);if(0===c)return 0;for(var d,f,p=0,g=-1,m=0;m1&&(h=void 0,h=ha[0],ha[0]=ha[1],ha[1]=h),d=mo(e,i,o,s,ha[0]),g>1&&(f=mo(e,i,o,s,ha[1]))),2===g?ve&&s>i&&s>o||s=0&&h<=1&&(r[l++]=h);else{var u=a*a-4*o*s;if(po(u))(h=-a/(2*o))>=0&&h<=1&&(r[l++]=h);else if(u>0){var h,c=oo(u),d=(-a-c)/(2*o);(h=(-a+c)/(2*o))>=0&&h<=1&&(r[l++]=h),d>=0&&d<=1&&(r[l++]=d)}}return l}(e,i,o,s,ua);if(0===l)return 0;var u=wo(e,i,o);if(u>=0&&u<=1){for(var h=0,c=_o(e,i,o,u),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);ua[0]=-l,ua[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u%sa<1e-4){i=0,r=sa;var h=o?1:-1;return a>=ua[0]+t&&a<=ua[1]+t?h:0}o?(l=i,i=na(r),r=na(l)):(i=na(i),r=na(r)),i>r&&(r+=sa);for(var c=0,d=0;d<2;d++){var f=ua[d];if(f+t>a){var p=Math.atan2(s,f);h=o?1:-1,p<0&&(p=sa+p),(p>=i&&p<=r||p+sa>=i&&p+sa<=r)&&(p>Math.PI/2&&p<1.5*Math.PI&&(h=-h),c+=h)}}return c}function pa(t,e,n,i,r){for(var o,a,s=0,l=0,u=0,h=0,c=0,d=0;d1&&(n||(s+=oa(l,u,h,c,i,r))),1===d&&(h=l=t[d],c=u=t[d+1]),f){case aa.M:l=h=t[d++],u=c=t[d++];break;case aa.L:if(n){if(Jo(l,u,t[d],t[d+1],e,i,r))return!0}else s+=oa(l,u,t[d],t[d+1],i,r)||0;l=t[d++],u=t[d++];break;case aa.C:if(n){if($o(l,u,t[d++],t[d++],t[d++],t[d++],t[d],t[d+1],e,i,r))return!0}else s+=ca(l,u,t[d++],t[d++],t[d++],t[d++],t[d],t[d+1],i,r)||0;l=t[d++],u=t[d++];break;case aa.Q:if(n){if(ta(l,u,t[d++],t[d++],t[d],t[d+1],e,i,r))return!0}else s+=da(l,u,t[d++],t[d++],t[d],t[d+1],i,r)||0;l=t[d++],u=t[d++];break;case aa.A:var p=t[d++],g=t[d++],m=t[d++],v=t[d++],y=t[d++],x=t[d++];d+=1;var _=1-t[d++],b=Math.cos(y)*m+p,w=Math.sin(y)*v+g;d>1?s+=oa(l,u,b,w,i,r):(h=b,c=w);var M=(i-p)*v/m+p;if(n){if(ra(p,g,v,y,y+x,_,e,M,r))return!0}else s+=fa(p,g,v,y,y+x,_,M,r);l=Math.cos(y+x)*m+p,u=Math.sin(y+x)*v+g;break;case aa.R:if(h=l=t[d++],c=u=t[d++],b=h+t[d++],w=c+t[d++],n){if(Jo(h,c,b,c,e,i,r)||Jo(b,c,b,w,e,i,r)||Jo(b,w,h,w,e,i,r)||Jo(h,w,h,c,e,i,r))return!0}else s+=oa(b,c,b,w,i,r),s+=oa(h,w,h,c,i,r);break;case aa.Z:if(n){if(Jo(l,u,h,c,e,i,r))return!0}else s+=oa(l,u,h,c,i,r);l=h,u=c}}return n||(o=u,a=c,Math.abs(o-a)1e-10&&(r.width+=o/a,r.height+=o/a,r.x-=o/a/2,r.y-=o/a/2)}return r}return t},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)){var o=this.path.data;if(r.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(r.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return pa(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(r.hasFill())return function(t,e,n){return pa(t,0,!1,e,n)}(o,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate(\"shape\",t)},attrKV:function(t,e){\"shape\"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):tr.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var n=this.shape;if(n){if(X(t))for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);else n[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&ma(t[0]-1)>1e-10&&ma(t[3]-1)>1e-10?Math.sqrt(ma(t[0]*t[3]-t[2]*t[1])):1}},ya.extend=function(t){var e=function(e){ya.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var i=this.shape;for(var r in n)!i.hasOwnProperty(r)&&n.hasOwnProperty(r)&&(i[r]=n[r])}t.init&&t.init.call(this,e)};for(var n in E(e,ya),t)\"style\"!==n&&\"shape\"!==n&&(e.prototype[n]=t[n]);return e},E(ya,tr);var xa=Qo.CMD,_a=[[],[],[]],ba=Math.sqrt,wa=Math.atan2,Ma=function(t,e){var n,i,r,o,a,s=t.data,l=xa.M,u=xa.C,h=xa.L,c=xa.R,d=xa.A,f=xa.Q;for(r=0,o=0;r1&&(a*=Sa(p),s*=Sa(p));var g=(r===o?-1:1)*Sa((a*a*(s*s)-a*a*(f*f)-s*s*(d*d))/(a*a*(f*f)+s*s*(d*d)))||0,m=g*a*f/s,v=g*-s*d/a,y=(t+n)/2+Aa(c)*m-Ia(c)*v,x=(e+i)/2+Ia(c)*m+Aa(c)*v,_=La([1,0],[(d-m)/a,(f-v)/s]),b=[(d-m)/a,(f-v)/s],w=[(-1*d-m)/a,(-1*f-v)/s],M=La(b,w);Ca(b,w)<=-1&&(M=Da),Ca(b,w)>=1&&(M=0),0===o&&M>0&&(M-=2*Da),1===o&&M<0&&(M+=2*Da),h.addData(u,y,x,a,s,_,M,c,o)}var Pa=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Oa=/-?([0-9]*\\.)?[0-9]+([eE]-?[0-9]+)?/g;function Na(t,e){var n=function(t){if(!t)return new Qo;for(var e,n=0,i=0,r=n,o=i,a=new Qo,s=Qo.CMD,l=t.match(Pa),u=0;u=11?function(){var e,n=this.__clipPaths,i=this.style;if(n)for(var r=0;rn-2?n-1:c+1],u=t[c>n-3?n-1:c+2]);var p=d*d,g=d*p;i.push([Wa(s[0],f[0],l[0],u[0],d,p,g),Wa(s[1],f[1],l[1],u[1],d,p,g)])}return i},ja=function(t,e,n,i){var r,o,a,s,l=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=t.length;d=2){if(r&&\"spline\"!==r){var o=ja(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],h=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{\"spline\"===r&&(i=Ha(i,n)),t.moveTo(i[0][0],i[0][1]),s=1;for(var c=i.length;s=0)?(n={textFill:null,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth},t.textFill=\"#fff\",null==t.textStroke&&(t.textStroke=o,null==t.textStrokeWidth&&(t.textStrokeWidth=2))):null!=o&&(n={textFill:null},t.textFill=o),n&&(t.insideRollback=n)}}function Ks(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function Qs(t,e){var n=e||e.getModel(\"textStyle\");return ot([t.fontStyle||n&&n.getShallow(\"fontStyle\")||\"\",t.fontWeight||n&&n.getShallow(\"fontWeight\")||\"\",(t.fontSize||n&&n.getShallow(\"fontSize\")||12)+\"px\",t.fontFamily||n&&n.getShallow(\"fontFamily\")||\"sans-serif\"].join(\" \"))}function Js(t,e,n,i,r,o){if(\"function\"==typeof r&&(o=r,r=null),i&&i.isAnimationEnabled()){var a=t?\"Update\":\"\",s=i.getShallow(\"animationDuration\"+a),l=i.getShallow(\"animationEasing\"+a),u=i.getShallow(\"animationDelay\"+a);\"function\"==typeof u&&(u=u(r,i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null)),\"function\"==typeof s&&(s=s(r)),s>0?e.animateTo(n,s,u||0,l,o,!!o):(e.stopAnimation(),e.attr(n),o&&o())}else e.stopAnimation(),e.attr(n),o&&o()}function $s(t,e,n,i,r){Js(!0,t,e,n,i,r)}function tl(t,e,n,i,r){Js(!1,t,e,n,i,r)}function el(t,e){for(var n=le([]);t&&t!==e;)he(n,t.getLocalTransform(),n),t=t.parent;return n}function nl(t,e,n){return e&&!R(e)&&(e=_e.getLocalTransform(e)),n&&(e=pe([],e)),Ot([],t,e)}function il(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=[\"left\"===t?-i:\"right\"===t?i:0,\"top\"===t?-r:\"bottom\"===t?r:0];return o=nl(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?\"right\":\"left\":o[1]>0?\"bottom\":\"top\"}function rl(t,e,n,i){if(t&&e){var r,o=(r={},t.traverse(function(t){!t.isGroup&&t.anid&&(r[t.anid]=t)}),r);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=o[t.anid];if(e){var i=a(t);t.attr(a(e)),$s(t,i,n,t.dataIndex)}}})}function a(t){var e={position:vt(t.position),rotation:t.rotation};return t.shape&&(e.shape=C({},t.shape)),e}}function ol(t,e){return V(t,function(t){var n=t[0];n=ds(n,e.x),n=fs(n,e.x+e.width);var i=t[1];return i=ds(i,e.y),[n,i=fs(i,e.y+e.height)]})}function al(t,e,n){var i=(e=C({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),L(i,n),new er(e)):bs(t.replace(\"path://\",\"\"),e,n,\"center\")}var sl=(Object.freeze||Object)({Z2_EMPHASIS_LIFT:gs,extendShape:_s,extendPath:function(t,e){return function(t,e){return ya.extend(Na(t,e))}(t,e)},makePath:bs,makeImage:ws,mergePath:Ss,resizePath:Is,subPixelOptimizeLine:function(t){return qa(t.shape,t.shape,t.style),t},subPixelOptimizeRect:function(t){return Ka(t.shape,t.shape,t.style),t},subPixelOptimize:As,setElementHoverStyle:Ns,setHoverStyle:Fs,setAsHighDownDispatcher:Gs,isHighDownDispatcher:Ws,getHighlightDigit:Hs,setLabelStyle:js,setTextStyle:Ys,setText:function(t,e,n){var i,r={isRectText:!0};!1===n?i=!0:r.autoColor=n,Zs(t,e,r,i)},getFont:Qs,updateProps:$s,initProps:tl,getTransform:el,applyTransform:nl,transformDirection:il,groupTransition:rl,clipPointsByRect:ol,clipRectByRect:function(t,e){var n=ds(t.x,e.x),i=fs(t.x+t.width,e.x+e.width),r=ds(t.y,e.y),o=fs(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}},createIcon:al,Group:On,Image:er,Text:za,Circle:Ra,Sector:Fa,Ring:Ga,Polygon:Za,Polyline:Ua,Rect:$a,Line:es,BezierCurve:rs,Arc:os,IncrementalDisplayable:hs,CompoundPath:as,LinearGradient:ls,RadialGradient:us,BoundingRect:Pn}),ll=[\"textStyle\",\"color\"],ul={getTextColor:function(t){var e=this.ecModel;return this.getShallow(\"color\")||(!t&&e?e.get(ll):null)},getFont:function(){return Qs({fontStyle:this.getShallow(\"fontStyle\"),fontWeight:this.getShallow(\"fontWeight\"),fontSize:this.getShallow(\"fontSize\"),fontFamily:this.getShallow(\"fontFamily\")},this.ecModel)},getTextRect:function(t){return yi(t,this.getFont(),this.getShallow(\"align\"),this.getShallow(\"verticalAlign\")||this.getShallow(\"baseline\"),this.getShallow(\"padding\"),this.getShallow(\"rich\"),this.getShallow(\"truncateText\"))}},hl=$r([[\"fill\",\"color\"],[\"stroke\",\"borderColor\"],[\"lineWidth\",\"borderWidth\"],[\"opacity\"],[\"shadowBlur\"],[\"shadowOffsetX\"],[\"shadowOffsetY\"],[\"shadowColor\"],[\"textPosition\"],[\"textAlign\"]]),cl={getItemStyle:function(t,e){var n=hl(this,t,e),i=this.getBorderLineDash();return i&&(n.lineDash=i),n},getBorderLineDash:function(){var t=this.get(\"borderType\");return\"solid\"===t||null==t?null:\"dashed\"===t?[5,5]:[1,1]}},dl=z,fl=Br();function pl(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function gl(t,e,n){for(var i=0;i0){if(t<=e[0])return n[0];if(t>=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/r*o+n[0]}function bl(t,e){switch(t){case\"center\":case\"middle\":t=\"50%\";break;case\"left\":case\"top\":t=\"0%\";break;case\"right\":case\"bottom\":t=\"100%\"}return\"string\"==typeof t?(n=t,n.replace(/^\\s+/,\"\").replace(/\\s+$/,\"\")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function wl(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function Ml(t){return t.sort(function(t,e){return t-e}),t}function Sl(t){if(t=+t,isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}function Il(t){var e=t.toString(),n=e.indexOf(\"e\");if(n>0){var i=+e.slice(n+1);return i<0?-i:0}var r=e.indexOf(\".\");return r<0?0:e.length-1-r}function Al(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function Dl(t,e,n){if(!t[e])return 0;var i=F(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return 0;for(var r=Math.pow(10,n),o=V(t,function(t){return(isNaN(t)?0:t)/i*r*100}),a=100*r,s=V(o,function(t){return Math.floor(t)}),l=F(s,function(t,e){return t+e},0),u=V(o,function(t,e){return t-s[e]});lh&&(h=u[d],c=d);++s[c],u[c]=0,++l}return s[e]/r}var Tl=9007199254740991;function Cl(t){var e=2*Math.PI;return(t%e+e)%e}function Ll(t){return t>-xl&&t=-20?+t.toFixed(n<0?-n:0):t}function zl(t){t.sort(function(t,e){return function t(e,n,i){return e.interval[i]=0}var Bl=(Object.freeze||Object)({linearMap:_l,parsePercent:bl,round:wl,asc:Ml,getPrecision:Sl,getPrecisionSafe:Il,getPixelPrecision:Al,getPercentWithPrecision:Dl,MAX_SAFE_INTEGER:Tl,remRadian:Cl,isRadianAroundZero:Ll,parseDate:Pl,quantity:Ol,nice:El,quantile:function(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r},reformIntervals:zl,isNumeric:Rl});function Vl(t){return isNaN(t)?\"-\":(t=(t+\"\").split(\".\"))[0].replace(/(\\d{1,3})(?=(?:\\d{3})+(?!\\d))/g,\"$1,\")+(t.length>1?\".\"+t[1]:\"\")}function Fl(t,e){return t=(t||\"\").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Gl=it,Wl=/([&<>\"'])/g,Hl={\"&\":\"&\",\"<\":\"<\",\">\":\">\",'\"':\""\",\"'\":\"'\"};function jl(t){return null==t?\"\":(t+\"\").replace(Wl,function(t,e){return Hl[e]})}var Yl=[\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\"],Zl=function(t,e){return\"{\"+t+(null==e?\"\":e)+\"}\"};function Ul(t,e,n){Y(e)||(e=[e]);var i=e.length;if(!i)return\"\";for(var r=e[0].$vars||[],o=0;o':'':{renderMode:r,content:\"{marker\"+o+\"|} \",style:{color:n}}:\"\"}function Kl(t,e){return\"0000\".substr(0,e-(t+=\"\").length)+t}function Ql(t,e,n){\"week\"!==t&&\"month\"!==t&&\"quarter\"!==t&&\"half-year\"!==t&&\"year\"!==t||(t=\"MM-dd\\nyyyy\");var i=Pl(e),r=n?\"UTC\":\"\",o=i[\"get\"+r+\"FullYear\"](),a=i[\"get\"+r+\"Month\"]()+1,s=i[\"get\"+r+\"Date\"](),l=i[\"get\"+r+\"Hours\"](),u=i[\"get\"+r+\"Minutes\"](),h=i[\"get\"+r+\"Seconds\"](),c=i[\"get\"+r+\"Milliseconds\"]();return t=t.replace(\"MM\",Kl(a,2)).replace(\"M\",a).replace(\"yyyy\",o).replace(\"yy\",o%100).replace(\"dd\",Kl(s,2)).replace(\"d\",s).replace(\"hh\",Kl(l,2)).replace(\"h\",l).replace(\"mm\",Kl(u,2)).replace(\"m\",u).replace(\"ss\",Kl(h,2)).replace(\"s\",h).replace(\"SSS\",Kl(c,3))}function Jl(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}var $l=wi,tu=yi,eu=(Object.freeze||Object)({addCommas:Vl,toCamelCase:Fl,normalizeCssArray:Gl,encodeHTML:jl,formatTpl:Ul,formatTplSimple:Xl,getTooltipMarker:ql,formatTime:Ql,capitalFirst:Jl,truncateText:$l,getTextRect:tu}),nu=B,iu=[\"left\",\"right\",\"top\",\"bottom\",\"width\",\"height\"],ru=[[\"width\",\"left\",\"right\"],[\"height\",\"top\",\"bottom\"]];function ou(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var h,c,d=l.position,f=l.getBoundingRect(),p=e.childAt(u+1),g=p&&p.getBoundingRect();if(\"horizontal\"===t){var m=f.width+(g?-g.x+f.x:0);(h=o+m)>i||l.newline?(o=0,h=m,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(g?-g.y+f.y:0);(c=a+v)>r||l.newline?(o+=s+n,a=0,c=v,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=o,d[1]=a,\"horizontal\"===t?o=h+n:a=c+n)})}var au=ou;function su(t,e,n){n=Gl(n||0);var i=e.width,r=e.height,o=bl(t.left,i),a=bl(t.top,r),s=bl(t.right,i),l=bl(t.bottom,r),u=bl(t.width,i),h=bl(t.height,r),c=n[2]+n[0],d=n[1]+n[3],f=t.aspect;switch(isNaN(u)&&(u=i-s-d-o),isNaN(h)&&(h=r-l-c-a),null!=f&&(isNaN(u)&&isNaN(h)&&(f>i/r?u=.8*i:h=.8*r),isNaN(u)&&(u=f*h),isNaN(h)&&(h=u/f)),isNaN(o)&&(o=i-s-u-d),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-d}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-d-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var p=new Pn(o+n[3],a+n[0],u,h);return p.margin=n,p}function lu(t,e,n,i,r){var o=!r||!r.hv||r.hv[0],a=!r||!r.hv||r.hv[1],s=r&&r.boundingMode||\"all\";if(o||a){var l;if(\"raw\"===s)l=\"group\"===t.type?new Pn(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var u=t.getLocalTransform();(l=l.clone()).applyTransform(u)}e=su(L({width:l.width,height:l.height},e),n,i);var h=t.position,c=o?e.x-l.x:0,d=a?e.y-l.y:0;t.attr(\"position\",\"raw\"===s?[c,d]:[h[0]+c,h[1]+d])}}function uu(t,e,n){!X(n)&&(n={});var i=n.ignoreSize;!Y(i)&&(i=[i,i]);var r=a(ru[0],0),o=a(ru[1],1);function a(n,r){var o={},a=0,u={},h=0;if(nu(n,function(e){u[e]=t[e]}),nu(n,function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&h++}),i[r])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(2!==h&&a){if(a>=2)return o;for(var c=0;c=0;o--)r=D(r,e[o],!0);t.defaultOption=r}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+\"Index\",!0),id:this.get(t+\"Id\",!0)})}});Jr(gu,{registerWhenExtend:!0}),fu={},(du=gu).registerSubTypeDefaulter=function(t,e){t=Zr(t),fu[t.main]=e},du.determineSubType=function(t,e){var n=e.type;if(!n){var i=Zr(t).main;du.hasSubTypes(t)&&fu[i]&&(n=fu[i](e))}return n},function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,i,r,o){if(t.length){var a=function(t){var i={},r=[];return B(t,function(o){var a=n(i,o),s=function(t,e){var n=[];return B(t,function(t){N(e,t)>=0&&n.push(t)}),n}(a.originalDeps=e(o),t);a.entryCount=s.length,0===a.entryCount&&r.push(o),B(s,function(t){N(a.predecessor,t)<0&&a.predecessor.push(t);var e=n(i,t);N(e.successor,t)<0&&e.successor.push(o)})}),{graph:i,noEntryList:r}}(i),s=a.graph,l=a.noEntryList,u={};for(B(t,function(t){u[t]=!0});l.length;){var h=l.pop(),c=s[h],d=!!u[h];d&&(r.call(o,h,c.originalDeps.slice()),delete u[h]),B(c.successor,d?p:f)}B(u,function(){throw new Error(\"Circle dependency may exists\")})}function f(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function p(t){u[t]=!0,f(t)}}}(gu,function(t){var e=[];return B(gu.getClassesByMainType(t),function(t){e=e.concat(t.prototype.dependencies||[])}),e=V(e,function(t){return Zr(t).main}),\"dataset\"!==t&&N(e,\"dataset\")<=0&&e.unshift(\"dataset\"),e}),z(gu,{getBoxLayoutParams:function(){return{left:this.get(\"left\"),top:this.get(\"top\"),right:this.get(\"right\"),bottom:this.get(\"bottom\"),width:this.get(\"width\"),height:this.get(\"height\")}}});var mu=\"\";\"undefined\"!=typeof navigator&&(mu=navigator.platform||\"\");var vu={color:[\"#c23531\",\"#2f4554\",\"#61a0a8\",\"#d48265\",\"#91c7ae\",\"#749f83\",\"#ca8622\",\"#bda29a\",\"#6e7074\",\"#546570\",\"#c4ccd3\"],gradientColor:[\"#f6efa6\",\"#d88273\",\"#bf444c\"],textStyle:{fontFamily:mu.match(/^Win/)?\"Microsoft YaHei\":\"sans-serif\",fontSize:12,fontStyle:\"normal\",fontWeight:\"normal\"},blendMode:null,animation:\"auto\",animationDuration:1e3,animationDurationUpdate:300,animationEasing:\"exponentialOut\",animationEasingUpdate:\"cubicOut\",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},yu=Br(),xu={clearColorPalette:function(){yu(this).colorIdx=0,yu(this).colorNameMap={}},getColorFromPalette:function(t,e,n){var i=yu(e=e||this),r=i.colorIdx||0,o=i.colorNameMap=i.colorNameMap||{};if(o.hasOwnProperty(t))return o[t];var a=Cr(this.get(\"color\",!0)),s=this.get(\"colorLayer\",!0),l=null!=n&&s?function(t,e){for(var n=t.length,i=0;ie)return t[i];return t[n-1]}(s,n):a;if((l=l||a)&&l.length){var u=l[r];return t&&(o[t]=u),i.colorIdx=(r+1)%l.length,u}}};function _u(t){var e=t.get(\"coordinateSystem\"),n={coordSysName:e,coordSysDims:[],axisMap:ht(),categoryAxisMap:ht()},i=bu[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}var bu={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents(\"xAxis\")[0],o=t.getReferringComponents(\"yAxis\")[0];if(c){if(!r)throw new Error('xAxis \"'+$(t.get(\"xAxisIndex\"),t.get(\"xAxisId\"),0)+'\" not found');if(!o)throw new Error('yAxis \"'+$(t.get(\"xAxisIndex\"),t.get(\"yAxisId\"),0)+'\" not found')}e.coordSysDims=[\"x\",\"y\"],n.set(\"x\",r),n.set(\"y\",o),wu(r)&&(i.set(\"x\",r),e.firstCategoryDimIndex=0),wu(o)&&(i.set(\"y\",o),e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){var r=t.getReferringComponents(\"singleAxis\")[0];if(c&&!r)throw new Error(\"singleAxis should be specified.\");e.coordSysDims=[\"single\"],n.set(\"single\",r),wu(r)&&(i.set(\"single\",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents(\"polar\")[0],o=r.findAxisModel(\"radiusAxis\"),a=r.findAxisModel(\"angleAxis\");if(c){if(!a)throw new Error(\"angleAxis option not found\");if(!o)throw new Error(\"radiusAxis option not found\")}e.coordSysDims=[\"radius\",\"angle\"],n.set(\"radius\",o),n.set(\"angle\",a),wu(o)&&(i.set(\"radius\",o),e.firstCategoryDimIndex=0),wu(a)&&(i.set(\"angle\",a),e.firstCategoryDimIndex=1)},geo:function(t,e,n,i){e.coordSysDims=[\"lng\",\"lat\"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent(\"parallel\",t.get(\"parallelIndex\")),a=e.coordSysDims=o.dimensions.slice();B(o.parallelAxisIndex,function(t,o){var s=r.getComponent(\"parallelAxis\",t),l=a[o];n.set(l,s),wu(s)&&null==e.firstCategoryDimIndex&&(i.set(l,s),e.firstCategoryDimIndex=o)})}};function wu(t){return\"category\"===t.get(\"type\")}var Mu=\"original\",Su=\"arrayRows\",Iu=\"objectRows\",Au=\"keyedColumns\",Du=\"unknown\",Tu=\"typedArray\",Cu=\"column\",Lu=\"row\";function ku(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===Au?{}:[]),this.sourceFormat=t.sourceFormat||Du,this.seriesLayoutBy=t.seriesLayoutBy||Cu,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&ht(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}ku.seriesDataToSource=function(t){return new ku({data:t,sourceFormat:K(t)?Tu:Mu,fromDataset:!1})},qr(ku);var Pu=Br();function Ou(t){var e=t.option,n=e.data,i=K(n)?Tu:Mu,r=!1,o=e.seriesLayoutBy,a=e.sourceHeader,s=e.dimensions,l=function(t){var e=t.option;if(!e.data)return t.ecModel.getComponent(\"dataset\",e.datasetIndex||0)}(t);if(l){var u=l.option;n=u.source,i=Pu(l).sourceFormat,r=!0,o=o||u.seriesLayoutBy,null==a&&(a=u.sourceHeader),s=s||u.dimensions}var h=function(t,e,n,i,r){if(!t)return{dimensionsDefine:Nu(r)};var o,a,s,l;if(e===Su)\"auto\"===i||null==i?Eu(function(t){null!=t&&\"-\"!==t&&(U(t)?null==a&&(a=1):a=0)},n,t,10):a=i?1:0,r||1!==a||(r=[],Eu(function(t,e){r[e]=null!=t?t:\"\"},n,t)),o=r?r.length:n===Lu?t.length:t[0]?t[0].length:null;else if(e===Iu)r||(r=function(t){for(var e,n=0;n=0;i--)zr(e[i])&&e.splice(i,1);t[n]=e}}),delete t[Bu],t},getTheme:function(){return this._theme},getComponent:function(t,e){var n=this._componentsMap.get(t);if(n)return n[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,o=t.name,a=this._componentsMap.get(e);if(!a||!a.length)return[];if(null!=i)Y(i)||(i=[i]),n=G(V(i,function(t){return a[t]}),function(t){return!!t});else if(null!=r){var s=Y(r);n=G(a,function(t){return s&&N(r,t.id)>=0||!s&&t.id===r})}else if(null!=o){var l=Y(o);n=G(a,function(t){return l&&N(o,t.name)>=0||!l&&t.name===o})}else n=a.slice();return Wu(n,t)},findComponents:function(t){var e,n,i,r,o,a=t.query,s=t.mainType,l=(n=s+\"Index\",i=s+\"Id\",r=s+\"Name\",!(e=a)||null==e[n]&&null==e[i]&&null==e[r]?null:{mainType:s,index:e[n],id:e[i],name:e[r]}),u=l?this.queryComponents(l):this._componentsMap.get(s);return o=Wu(u,t),t.filter?G(o,t.filter):o},eachComponent:function(t,e,n){var i=this._componentsMap;\"function\"==typeof t?(n=e,e=t,i.each(function(t,i){B(t,function(t,r){e.call(n,i,t,r)})})):U(t)?B(i.get(t),e,n):X(t)&&B(this.findComponents(t),e,n)},getSeriesByName:function(t){return G(this._componentsMap.get(\"series\"),function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.get(\"series\")[t]},getSeriesByType:function(t){return G(this._componentsMap.get(\"series\"),function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.get(\"series\").slice()},getSeriesCount:function(){return this._componentsMap.get(\"series\").length},eachSeries:function(t,e){Hu(this),B(this._seriesIndices,function(n){var i=this._componentsMap.get(\"series\")[n];t.call(e,i,n)},this)},eachRawSeries:function(t,e){B(this._componentsMap.get(\"series\"),t,e)},eachSeriesByType:function(t,e,n){Hu(this),B(this._seriesIndices,function(i){var r=this._componentsMap.get(\"series\")[i];r.subType===t&&e.call(n,r,i)},this)},eachRawSeriesByType:function(t,e,n){return B(this.getSeriesByType(t),e,n)},isSeriesFiltered:function(t){return Hu(this),null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){Hu(this),Gu(this,G(this._componentsMap.get(\"series\"),t,e))},restoreData:function(t){var e=this._componentsMap;Gu(this,e.get(\"series\"));var n=[];e.each(function(t,e){n.push(e)}),gu.topologicalTravel(n,gu.getAllClassMainTypes(),function(n,i){B(e.get(n),function(e){(\"series\"!==n||!function(t,e){if(e){var n=e.seiresIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}(e,t))&&e.restoreData()})})}});function Fu(t){t=t,this.option={},this.option[Bu]=1,this._componentsMap=ht({series:[]}),this._seriesIndices,this._seriesIndicesMap,function(t,e){var n=t.color&&!t.colorLayer;B(e,function(e,i){\"colorLayer\"===i&&n||gu.hasClass(i)||(\"object\"===l(e)?t[i]=t[i]?D(t[i],e,!1):A(e):null==t[i]&&(t[i]=e))})}(t,this._theme.option),D(t,vu,!1),this.mergeOption(t)}function Gu(t,e){t._seriesIndicesMap=ht(t._seriesIndices=V(e,function(t){return t.componentIndex})||[])}function Wu(t,e){return e.hasOwnProperty(\"subType\")?G(t,function(t){return t.subType===e.subType}):t}function Hu(t){if(c&&!t._seriesIndices)throw new Error(\"Option should contains series.\")}z(Vu,xu);var ju=[\"getDom\",\"getZr\",\"getWidth\",\"getHeight\",\"getDevicePixelRatio\",\"dispatchAction\",\"isDisposed\",\"on\",\"off\",\"getDataURL\",\"getConnectedDataURL\",\"getModel\",\"getOption\",\"getViewOfComponentModel\",\"getViewOfSeriesModel\"];function Yu(t){B(ju,function(e){this[e]=H(t[e],t)},this)}var Zu={};function Uu(){this._coordinateSystems=[]}Uu.prototype={constructor:Uu,create:function(t,e){var n=[];B(Zu,function(i,r){var o=i.create(t,e);n=n.concat(o||[])}),this._coordinateSystems=n},update:function(t,e){B(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},Uu.register=function(t,e){Zu[t]=e},Uu.get=function(t){return Zu[t]};var Xu=B,qu=A,Ku=V,Qu=D,Ju=/^(min|max)?(.+)$/;function $u(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function th(t,e,n){var i,r,o=[],a=[],s=t.timeline;if(t.baseOption&&(r=t.baseOption),(s||t.options)&&(r=r||{},o=(t.options||[]).slice()),t.media){r=r||{};var l=t.media;Xu(l,function(t){t&&t.option&&(t.query?a.push(t):i||(i=t))})}return r||(r=t),r.timeline||(r.timeline=s),Xu([r].concat(o).concat(V(a,function(t){return t.option})),function(t){Xu(e,function(e){e(t,n)})}),{baseOption:r,timelineOptions:o,mediaDefault:i,mediaList:a}}function eh(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return B(t,function(t,e){var n=e.match(Ju);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(t,e,n){return\"min\"===n?t>=e:\"max\"===n?t<=e:t===e})(i[a],t,o)||(r=!1)}}),r}$u.prototype={constructor:$u,setOption:function(t,e){t&&B(Cr(t.series),function(t){t&&t.data&&K(t.data)&&st(t.data)}),t=qu(t);var n,i,r=this._optionBackup,o=th.call(this,t,e,!r);this._newBaseOption=o.baseOption,r?(n=r.baseOption,i=o.baseOption,Xu(i=i||{},function(t,e){if(null!=t){var i=n[e];if(gu.hasClass(e)){t=Cr(t);var r=Or(i=Cr(i),t);n[e]=Ku(r,function(t){return t.option&&t.exist?Qu(t.exist,t.option,!0):t.exist||t.option})}else n[e]=Qu(i,t,!0)}}),o.timelineOptions.length&&(r.timelineOptions=o.timelineOptions),o.mediaList.length&&(r.mediaList=o.mediaList),o.mediaDefault&&(r.mediaDefault=o.mediaDefault)):this._optionBackup=o},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=Ku(e.timelineOptions,qu),this._mediaList=Ku(e.mediaList,qu),this._mediaDefault=qu(e.mediaDefault),this._currentMediaIndices=[],qu(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent(\"timeline\");i&&(e=qu(n[i.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e,n,i=this._api.getWidth(),r=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,h=o.length;u=0;p--){var g=t[p];if(s||(c=g.data.rawIndexOf(g.stackedByDimension,h)),c>=0){var m=g.data.getByRawIndex(g.stackResultDimension,c);if(d>=0&&m>0||d<=0&&m<0){d+=m,f=m;break}}}return i[0]=d,i[1]=f,i});a.hostModel.setData(l),e.data=l})}function yh(t,e){ku.isInstance(t)||(t=ku.seriesDataToSource(t)),this._source=t;var n=this._data=t.data,i=t.sourceFormat;if(i===Tu){if(c&&null==e)throw new Error(\"Typed array data must specify dimension size\");this._offset=0,this._dimSize=e,this._data=n}var r=_h[i===Su?i+\"_\"+t.seriesLayoutBy:i];c&&rt(r,\"Invalide sourceFormat: \"+i),C(this,r)}var xh=yh.prototype;xh.pure=!1,xh.persistent=!0,xh.getSource=function(){return this._source};var _h={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(t){return this._data[t+this._source.startIndex]},appendData:Mh},arrayRows_row:{pure:!0,count:function(){var t=this._data[0];return t?Math.max(0,t.length-this._source.startIndex):0},getItem:function(t){t+=this._source.startIndex;for(var e=[],n=this._data,i=0;i=1)&&(t=1),t}a===l&&s===u||(e=\"reset\"),(this._dirty||\"reset\"===e)&&(this._dirty=!1,o=function(t,e){var n,i;t._dueIndex=t._outputDueEnd=t._dueEnd=0,t._settedOutputEnd=null,!e&&t._reset&&((n=t._reset(t.context))&&n.progress&&(i=n.forceFirstProgress,n=n.progress),Y(n)&&!n.length&&(n=null)),t._progress=n,t._modBy=t._modDataCount=null;var r=t._downstream;return r&&r.dirty(),i}(this,i)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(n?(c&&rt(null!=n._outputDueEnd),this._dueEnd=n._outputDueEnd):(c&&rt(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var f=this._dueIndex,p=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!i&&(o||f=this._outputDueEnd),this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var zh=function(){var t,e,n,i,r,o={reset:function(l,u,h,c){e=l,t=u,n=h,i=c,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return e=t?null:o\":\"\\n\",a=\"richText\"===i,s={},l=0;function u(t){return{renderMode:i,content:jl(Vl(t)),style:s}}var h=this.getData(),c=h.mapDimension(\"defaultedTooltip\",!0),d=c.length,f=this.getRawValue(t),p=Y(f),g=h.getItemVisual(t,\"color\");X(g)&&g.colorStops&&(g=(g.colorStops[0]||{}).color),g=g||\"transparent\";var m=(d>1||p&&!d?function(n){var o=F(n,function(t,e,n){var i=h.getDimensionInfo(n);return t|(i&&!1!==i.tooltip&&null!=i.displayName)},0),u=[];function d(t,n){var c=h.getDimensionInfo(n);if(c&&!1!==c.otherDims.tooltip){var d=c.type,f=\"sub\"+r.seriesIndex+\"at\"+l,p=ql({color:g,type:\"subItem\",renderMode:i,markerId:f}),m=\"string\"==typeof p?p:p.content,v=(o?m+jl(c.displayName||\"-\")+\": \":\"\")+jl(\"ordinal\"===d?t+\"\":\"time\"===d?e?\"\":Ql(\"yyyy/MM/dd hh:mm:ss\",t):Vl(t));v&&u.push(v),a&&(s[f]=g,++l)}}c.length?B(c,function(e){d(Ch(h,t,e),e)}):B(n,d);var f=o?a?\"\\n\":\"
\":\"\",p=f+u.join(f||\", \");return{renderMode:i,content:p,style:s}}(f):u(d?Ch(h,t,c[0]):p?f[0]:f)).content,v=r.seriesIndex+\"at\"+l,y=ql({color:g,type:\"item\",renderMode:i,markerId:v});s[v]=g,++l;var x=h.getName(t),_=this.name;Er(this)||(_=\"\"),_=_?jl(_)+(e?\": \":o):\"\";var b=\"string\"==typeof y?y:y.content;return{html:e?b+_+m:_+b+(x?jl(x)+\": \"+m:m),markers:s}},isAnimationEnabled:function(){if(p.node)return!1;var t=this.getShallow(\"animation\");return t&&this.getData().count()>this.getShallow(\"animationThreshold\")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,n){var i=this.ecModel,r=xu.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get(\"progressive\")},getProgressiveThreshold:function(){return this.get(\"progressiveThreshold\")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function Fh(t){var e=t.name;Er(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimension(\"seriesName\",!0),i=[];return B(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(\" \")}(t)||e)}function Gh(t){return t.model.getRawData().count()}function Wh(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Hh}function Hh(t,e){t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function jh(t,e){B(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,j(Yh,e))})}function Yh(t){var e=Zh(t);e&&e.setOutputEnd(this.count())}function Zh(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}z(Vh,Ph),z(Vh,xu);var Uh=function(){this.group=new On,this.uid=yl(\"viewComponent\")};Uh.prototype={constructor:Uh,init:function(t,e){},render:function(t,e,n,i){},dispose:function(){},filterForExposedEvent:null};var Xh=Uh.prototype;Xh.updateView=Xh.updateLayout=Xh.updateVisual=function(t,e,n,i){},Ur(Uh),Jr(Uh,{registerWhenExtend:!0});var qh=function(){var t=Br();return function(e){var n=t(e),i=e.pipelineContext,r=n.large,o=n.progressiveRender,a=n.large=i.large,s=n.progressiveRender=i.progressiveRender;return!!(r^a||o^s)&&\"reset\"}},Kh=Br(),Qh=qh();function Jh(){this.group=new On,this.uid=yl(\"viewChart\"),this.renderTask=Oh({plan:nc,reset:ic}),this.renderTask.context={view:this}}Jh.prototype={type:\"chart\",init:function(t,e){},render:function(t,e,n,i){},highlight:function(t,e,n,i){ec(t.getData(),i,\"emphasis\")},downplay:function(t,e,n,i){ec(t.getData(),i,\"normal\")},remove:function(t,e){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var $h=Jh.prototype;function tc(t,e,n){if(t&&(t.trigger(e,n),t.isGroup&&!Ws(t)))for(var i=0,r=t.childCount();i=0?c():h=setTimeout(c,-r),l=i};return d.clear=function(){h&&(clearTimeout(h),h=null)},d.debounceNextCall=function(t){s=t},d}function uc(t,e,n,i){var r=t[e];if(r){var o=r[oc]||r,a=r[sc];if(r[ac]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=lc(o,n,\"debounce\"===i))[oc]=o,r[sc]=i,r[ac]=n}return r}}function hc(t,e){var n=t[e];n&&n[oc]&&(t[e]=n[oc])}var cc={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=(t.visualColorAccessPath||\"itemStyle.color\").split(\".\"),r=t.get(i)||t.getColorFromPalette(t.name,null,e.getSeriesCount());if(n.setVisual(\"color\",r),!e.isSeriesFiltered(t))return\"function\"!=typeof r||r instanceof ss||n.each(function(e){n.setItemVisual(e,\"color\",r(t.getDataParams(e)))}),{dataEach:n.hasItemOption?function(t,e){var n=t.getItemModel(e).get(i,!0);null!=n&&t.setItemVisual(e,\"color\",n)}:null}}},dc={toolbox:{brush:{title:{rect:\"矩形选择\",polygon:\"圈选\",lineX:\"横向选择\",lineY:\"纵向选择\",keep:\"保持选择\",clear:\"清除选择\"}},dataView:{title:\"数据视图\",lang:[\"数据视图\",\"关闭\",\"刷新\"]},dataZoom:{title:{zoom:\"区域缩放\",back:\"区域缩放还原\"}},magicType:{title:{line:\"切换为折线图\",bar:\"切换为柱状图\",stack:\"切换为堆叠\",tiled:\"切换为平铺\"}},restore:{title:\"还原\"},saveAsImage:{title:\"保存为图片\",lang:[\"右键另存为图片\"]}},series:{typeNames:{pie:\"饼图\",bar:\"柱状图\",line:\"折线图\",scatter:\"散点图\",effectScatter:\"涟漪散点图\",radar:\"雷达图\",tree:\"树图\",treemap:\"矩形树图\",boxplot:\"箱型图\",candlestick:\"K线图\",k:\"K线图\",heatmap:\"热力图\",map:\"地图\",parallel:\"平行坐标图\",lines:\"线图\",graph:\"关系图\",sankey:\"桑基图\",funnel:\"漏斗图\",gauge:\"仪表盘图\",pictorialBar:\"象形柱图\",themeRiver:\"主题河流图\",sunburst:\"旭日图\"}},aria:{general:{withTitle:\"这是一个关于“{title}”的图表。\",withoutTitle:\"这是一个图表,\"},series:{single:{prefix:\"\",withName:\"图表类型是{seriesType},表示{seriesName}。\",withoutName:\"图表类型是{seriesType}。\"},multiple:{prefix:\"它由{seriesCount}个图表系列组成。\",withName:\"第{seriesId}个系列是一个表示{seriesName}的{seriesType},\",withoutName:\"第{seriesId}个系列是一个{seriesType},\",separator:{middle:\";\",end:\"。\"}}},data:{allData:\"其数据是——\",partialData:\"其中,前{displayCnt}项是——\",withName:\"{name}的数据是{value}\",withoutName:\"{value}\",separator:{middle:\",\",end:\"\"}}}},fc=function(t,e){var n=e.getModel(\"aria\");if(n.get(\"show\"))if(n.get(\"description\"))t.setAttribute(\"aria-label\",n.get(\"description\"));else{var i=0;e.eachSeries(function(t,e){++i},this);var r,o=n.get(\"data.maxCount\")||10,a=n.get(\"series.maxCount\")||10,s=Math.min(i,a);if(!(i<1)){var l=function(){var t=e.getModel(\"title\").option;return t&&t.length&&(t=t[0]),t&&t.text}();r=l?h(c(\"general.withTitle\"),{title:l}):c(\"general.withoutTitle\");var u=[];r+=h(c(i>1?\"series.multiple.prefix\":\"series.single.prefix\"),{seriesCount:i}),e.eachSeries(function(t,e){if(e1?\"multiple\":\"single\")+\".\";n=h(n=c(r?a+\"withName\":a+\"withoutName\"),{seriesId:t.seriesIndex,seriesName:t.get(\"name\"),seriesType:(m=t.subType,dc.series.typeNames[m]||\"自定义图\")});var l=t.getData();window.data=l,l.count()>o?n+=h(c(\"data.partialData\"),{displayCnt:o}):n+=c(\"data.allData\");for(var d=[],f=0;fn.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},mc.getPipeline=function(t){return this._pipelineMap.get(t)},mc.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get(\"large\")&&i>=t.get(\"largeThreshold\"),a=\"mod\"===t.get(\"progressiveChunkMode\")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},mc.restorePipelines=function(t){var e=this,n=e._pipelineMap=ht();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),Tc(e,t,t.dataTask)})},mc.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),n=this.api;B(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,[]);i.reset&&function(t,e,n,i,r){var o=n.seriesTaskMap||(n.seriesTaskMap=ht()),a=e.seriesType,s=e.getTargetSeries;function l(n){var a=n.uid,s=o.get(a)||o.set(a,Oh({plan:Mc,reset:Sc,count:Dc}));s.context={model:n,ecModel:i,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},Tc(t,n,s)}e.createOnAllSeries?i.eachRawSeries(l):a?i.eachRawSeriesByType(a,l):s&&s(i,r).each(l);var u=t._pipelineMap;o.each(function(t,e){u.get(e)||(t.dispose(),o.removeKey(e))})}(this,i,r,e,n),i.overallReset&&function(t,e,n,i,r){var o=n.overallTask=n.overallTask||Oh({reset:xc});o.context={ecModel:i,api:r,overallReset:e.overallReset,scheduler:t};var a=o.agentStubMap=o.agentStubMap||ht(),s=e.seriesType,l=e.getTargetSeries,u=!0,h=e.modifyOutputEnd;function c(e){var n=e.uid,i=a.get(n);i||(i=a.set(n,Oh({reset:_c,onDirty:wc})),o.dirty()),i.context={model:e,overallProgress:u,modifyOutputEnd:h},i.agent=o,i.__block=u,Tc(t,e,i)}s?i.eachRawSeriesByType(s,c):l?l(i,r).each(c):(u=!1,B(i.getSeries(),c));var d=t._pipelineMap;a.each(function(t,e){d.get(e)||(t.dispose(),o.dirty(),a.removeKey(e))})}(this,i,r,e,n)},this)},mc.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,Tc(this,e,r)},mc.performDataProcessorTasks=function(t,e){vc(this,this._dataProcessorHandlers,t,e,{block:!0})},mc.performVisualTasks=function(t,e,n){vc(this,this._visualHandlers,t,e,n)},mc.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e|=t.dataTask.perform()}),this.unfinished|=e},mc.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})};var yc=mc.updatePayload=function(t,e){\"remain\"!==e&&(t.context.payload=e)};function xc(t){t.overallReset(t.ecModel,t.api,t.payload)}function _c(t,e){return t.overallProgress&&bc}function bc(){this.agent.dirty(),this.getDownstream().dirty()}function wc(){this.agent&&this.agent.dirty()}function Mc(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function Sc(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Cr(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?V(e,function(t,e){return Ac(e)}):Ic}var Ic=Ac(0);function Ac(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o=4&&(s={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(s&&null!=o&&null!=a&&(l=Jc(s,o,a),!e.ignoreViewBox)){var c=i;(i=new On).add(c),c.scale=l.scale.slice(),c.position=l.position.slice()}return e.ignoreRootClip||null==o||null==a||i.setClipPath(new $a({shape:{x:0,y:0,width:o,height:a}})),{root:i,width:o,height:a,viewBoxRect:s,viewBoxTransform:l}},Gc.prototype._parseNode=function(t,e){var n,i,r=t.nodeName.toLowerCase();if(\"defs\"===r?this._isDefine=!0:\"text\"===r&&(this._isText=!0),this._isDefine){if(i=Hc[r]){var o=i.call(this,t),a=t.getAttribute(\"id\");a&&(this._defs[a]=o)}}else(i=Wc[r])&&(n=i.call(this,t,e),e.add(n));for(var s=t.firstChild;s;)1===s.nodeType&&this._parseNode(s,n),3===s.nodeType&&this._isText&&this._parseText(s,n),s=s.nextSibling;\"defs\"===r?this._isDefine=!1:\"text\"===r&&(this._isText=!1)},Gc.prototype._parseText=function(t,e){if(1===t.nodeType){var n=t.getAttribute(\"dx\")||0,i=t.getAttribute(\"dy\")||0;this._textX+=parseFloat(n),this._textY+=parseFloat(i)}var r=new za({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});jc(e,r),Uc(t,r,this._defs);var o=r.style.fontSize;o&&o<9&&(r.style.fontSize=9,r.scale=r.scale||[1,1],r.scale[0]*=o/9,r.scale[1]*=o/9);var a=r.getBoundingRect();return this._textX+=a.width,e.add(r),r};var Wc={g:function(t,e){var n=new On;return jc(e,n),Uc(t,n,this._defs),n},rect:function(t,e){var n=new $a;return jc(e,n),Uc(t,n,this._defs),n.setShape({x:parseFloat(t.getAttribute(\"x\")||0),y:parseFloat(t.getAttribute(\"y\")||0),width:parseFloat(t.getAttribute(\"width\")||0),height:parseFloat(t.getAttribute(\"height\")||0)}),n},circle:function(t,e){var n=new Ra;return jc(e,n),Uc(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute(\"cx\")||0),cy:parseFloat(t.getAttribute(\"cy\")||0),r:parseFloat(t.getAttribute(\"r\")||0)}),n},line:function(t,e){var n=new es;return jc(e,n),Uc(t,n,this._defs),n.setShape({x1:parseFloat(t.getAttribute(\"x1\")||0),y1:parseFloat(t.getAttribute(\"y1\")||0),x2:parseFloat(t.getAttribute(\"x2\")||0),y2:parseFloat(t.getAttribute(\"y2\")||0)}),n},ellipse:function(t,e){var n=new Bc;return jc(e,n),Uc(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute(\"cx\")||0),cy:parseFloat(t.getAttribute(\"cy\")||0),rx:parseFloat(t.getAttribute(\"rx\")||0),ry:parseFloat(t.getAttribute(\"ry\")||0)}),n},polygon:function(t,e){var n=t.getAttribute(\"points\");n&&(n=Yc(n));var i=new Za({shape:{points:n||[]}});return jc(e,i),Uc(t,i,this._defs),i},polyline:function(t,e){var n=new ya;jc(e,n),Uc(t,n,this._defs);var i=t.getAttribute(\"points\");i&&(i=Yc(i));var r=new Ua({shape:{points:i||[]}});return r},image:function(t,e){var n=new er;return jc(e,n),Uc(t,n,this._defs),n.setStyle({image:t.getAttribute(\"xlink:href\"),x:t.getAttribute(\"x\"),y:t.getAttribute(\"y\"),width:t.getAttribute(\"width\"),height:t.getAttribute(\"height\")}),n},text:function(t,e){var n=t.getAttribute(\"x\")||0,i=t.getAttribute(\"y\")||0,r=t.getAttribute(\"dx\")||0,o=t.getAttribute(\"dy\")||0;this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new On;return jc(e,a),Uc(t,a,this._defs),a},tspan:function(t,e){var n=t.getAttribute(\"x\"),i=t.getAttribute(\"y\");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute(\"dx\")||0,o=t.getAttribute(\"dy\")||0,a=new On;return jc(e,a),Uc(t,a,this._defs),this._textX+=r,this._textY+=o,a},path:function(t,e){var n=Ea(t.getAttribute(\"d\")||\"\");return jc(e,n),Uc(t,n,this._defs),n}},Hc={lineargradient:function(t){var e=parseInt(t.getAttribute(\"x1\")||0,10),n=parseInt(t.getAttribute(\"y1\")||0,10),i=parseInt(t.getAttribute(\"x2\")||10,10),r=parseInt(t.getAttribute(\"y2\")||0,10),o=new ls(e,n,i,r);return function(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType){var i=n.getAttribute(\"offset\");i=i.indexOf(\"%\")>0?parseInt(i,10)/100:i?parseFloat(i):0;var r=n.getAttribute(\"stop-color\")||\"#000000\";e.addColorStop(i,r)}n=n.nextSibling}}(t,o),o},radialgradient:function(t){}};function jc(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),L(e.__inheritedStyle,t.__inheritedStyle))}function Yc(t){for(var e=ot(t).split(Vc),n=[],i=0;i0;o-=2){var a=r[o],s=r[o-1];switch(i=i||se(),s){case\"translate\":a=ot(a).split(Vc),ce(i,i,[parseFloat(a[0]),parseFloat(a[1]||0)]);break;case\"scale\":a=ot(a).split(Vc),fe(i,i,[parseFloat(a[0]),parseFloat(a[1]||a[0])]);break;case\"rotate\":a=ot(a).split(Vc),de(i,i,parseFloat(a[0]));break;case\"skew\":a=ot(a).split(Vc),console.warn(\"Skew transform is not supported yet\");break;case\"matrix\":a=ot(a).split(Vc),i[0]=parseFloat(a[0]),i[1]=parseFloat(a[1]),i[2]=parseFloat(a[2]),i[3]=parseFloat(a[3]),i[4]=parseFloat(a[4]),i[5]=parseFloat(a[5])}}e.setLocalTransform(i)}}(t,e),C(r,function(t){var e=t.getAttribute(\"style\"),n={};if(!e)return n;var i,r={};for(Qc.lastIndex=0;null!=(i=Qc.exec(e));)r[i[1]]=i[2];for(var o in Zc)Zc.hasOwnProperty(o)&&null!=r[o]&&(n[Zc[o]]=r[o]);return n}(t)),!i))for(var a in Zc)if(Zc.hasOwnProperty(a)){var s=t.getAttribute(a);null!=s&&(r[Zc[a]]=s)}var l=o?\"textFill\":\"fill\",u=o?\"textStroke\":\"stroke\";e.style=e.style||new qn;var h=e.style;null!=r.fill&&h.set(l,qc(r.fill,n)),null!=r.stroke&&h.set(u,qc(r.stroke,n)),B([\"lineWidth\",\"opacity\",\"fillOpacity\",\"strokeOpacity\",\"miterLimit\",\"fontSize\"],function(t){var e=\"lineWidth\"===t&&o?\"textStrokeWidth\":t;null!=r[t]&&h.set(e,parseFloat(r[t]))}),r.textBaseline&&\"auto\"!==r.textBaseline||(r.textBaseline=\"alphabetic\"),\"alphabetic\"===r.textBaseline&&(r.textBaseline=\"bottom\"),\"start\"===r.textAlign&&(r.textAlign=\"left\"),\"end\"===r.textAlign&&(r.textAlign=\"right\"),B([\"lineDashOffset\",\"lineCap\",\"lineJoin\",\"fontWeight\",\"fontFamily\",\"fontStyle\",\"textAlign\",\"textBaseline\"],function(t){null!=r[t]&&h.set(t,r[t])}),r.lineDash&&(e.style.lineDash=ot(r.lineDash).split(Vc)),h[u]&&\"none\"!==h[u]&&(e[u]=!0),e.__inheritedStyle=r}var Xc=/url\\(\\s*#(.*?)\\)/;function qc(t,e){var n=e&&t&&t.match(Xc);return n?e[ot(n[1])]:t}var Kc=/(translate|scale|rotate|skewX|skewY|matrix)\\(([\\-\\s0-9\\.e,]*)\\)/g,Qc=/([^\\s:;]+)\\s*:\\s*([^:;]+)/g;function Jc(t,e,n){var i=e/t.width,r=n/t.height,o=Math.min(i,r);return{scale:[o,o],position:[-(t.x+t.width/2)*o+e/2,-(t.y+t.height/2)*o+n/2]}}var $c=ht(),td={registerMap:function(t,e,n){var i;return Y(e)?i=e:e.svg?i=[{type:\"svg\",source:e.svg,specialAreas:e.specialAreas}]:(e.geoJson&&!e.features&&(n=e.specialAreas,e=e.geoJson),i=[{type:\"geoJSON\",source:e,specialAreas:n}]),B(i,function(t){var e=t.type;\"geoJson\"===e&&(e=t.type=\"geoJSON\");var n=ed[e];c&&rt(n,\"Illegal map type: \"+e),n(t)}),$c.set(t,i)},retrieveMap:function(t){return $c.get(t)}},ed={geoJSON:function(t){var e=t.source;t.geoJSON=U(e)?\"undefined\"!=typeof JSON&&JSON.parse?JSON.parse(e):new Function(\"return (\"+e+\");\")():e},svg:function(t){t.svgXML=Fc(t.source)}},nd=rt,id=B,rd=Z,od=X,ad=gu.parseClassType,sd=\"4.2.0\",ld={zrender:\"4.0.5\"},ud=1e3,hd=1e3,cd=3e3,dd={PROCESSOR:{FILTER:ud,STATISTIC:5e3},VISUAL:{LAYOUT:hd,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:cd,COMPONENT:4e3,BRUSH:5e3}},fd=\"__flagInMainProcess\",pd=\"__optionUpdated\",gd=/^[a-zA-Z0-9_]+$/;function md(t){return function(e,n,i){e=e&&e.toLowerCase(),Ft.prototype[t].call(this,e,n,i)}}function vd(){Ft.call(this)}function yd(t,e,i){i=i||{},\"string\"==typeof e&&(e=Wd[e]),this.id,this.group,this._dom=t;var r=\"canvas\";c&&(r=(\"undefined\"==typeof window?n:window).__ECHARTS__DEFAULT__RENDERER__||r);var o=this._zr=br(t,{renderer:i.renderer||r,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height});this._throttledZrFlush=lc(H(o.flush,o),17),(e=A(e))&&mh(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new Uu;var a,s,l=this._api=(s=(a=this)._coordSysMgr,C(new Yu(a),{getCoordinateSystems:H(s.getCoordinateSystems,s),getComponentByElement:function(t){for(;t;){var e=t.__ecComponentInfo;if(null!=e)return a._model.getComponent(e.mainType,e.index);t=t.parent}}}));function u(t,e){return t.__prio-e.__prio}Gn(Gd,u),Gn(Bd,u),this._scheduler=new gc(this,l,Bd,Gd),Ft.call(this,this._ecEventProcessor=new Ed),this._messageCenter=new vd,this._initEvents(),this.resize=H(this.resize,this),this._pendingActions=[],o.animation.on(\"frame\",this._onframe,this),function(t,e){t.on(\"rendered\",function(){e.trigger(\"rendered\"),!t.animation.isFinished()||e[pd]||e._scheduler.unfinished||e._pendingActions.length||e.trigger(\"finished\")})}(o,this),st(this)}vd.prototype.on=md(\"on\"),vd.prototype.off=md(\"off\"),vd.prototype.one=md(\"one\"),z(vd,Ft);var xd=yd.prototype;function _d(t,e,n){var i,r=this._model,o=this._coordSysMgr.getCoordinateSystems();e=Fr(r,e);for(var a=0;a0&&t.unfinished);t.unfinished||this._zr.flush()}}},xd.getDom=function(){return this._dom},xd.getZr=function(){return this._zr},xd.setOption=function(t,e,n){var i;if(c&&nd(!this[fd],\"`setOption` should not be called during main process.\"),od(e)&&(n=e.lazyUpdate,i=e.silent,e=e.notMerge),this[fd]=!0,!this._model||e){var r=new $u(this._api),o=this._theme,a=this._model=new Vu;a.scheduler=this._scheduler,a.init(null,null,o,r)}this._model.setOption(t,Vd),n?(this[pd]={silent:i},this[fd]=!1):(wd(this),bd.update.call(this),this._zr.flush(),this[pd]=!1,this[fd]=!1,Ad.call(this,i),Dd.call(this,i))},xd.setTheme=function(){console.error(\"ECharts#setTheme() is DEPRECATED in ECharts 3.0\")},xd.getModel=function(){return this._model},xd.getOption=function(){return this._model&&this._model.getOption()},xd.getWidth=function(){return this._zr.getWidth()},xd.getHeight=function(){return this._zr.getHeight()},xd.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},xd.getRenderedCanvas=function(t){if(p.canvasSupported)return(t=t||{}).pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get(\"backgroundColor\"),this._zr.painter.getRenderedCanvas(t)},xd.getSvgDataUrl=function(){if(p.svgSupported){var t=this._zr;return B(t.storage.getDisplayList(),function(t){t.stopAnimation(!0)}),t.painter.pathToDataUrl()}},xd.getDataURL=function(t){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;id(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var o=\"svg\"===this._zr.painter.getType()?this.getSvgDataUrl():this.getRenderedCanvas(t).toDataURL(\"image/\"+(t&&t.type||\"png\"));return id(i,function(t){t.group.ignore=!1}),o},xd.getConnectedDataURL=function(t){if(p.canvasSupported){var e=this.group,n=Math.min,i=Math.max;if(Yd[e]){var r=1/0,o=1/0,a=-1/0,s=-1/0,l=[],u=t&&t.pixelRatio||1;B(jd,function(u,h){if(u.group===e){var c=u.getRenderedCanvas(A(t)),d=u.getDom().getBoundingClientRect();r=n(d.left,r),o=n(d.top,o),a=i(d.right,a),s=i(d.bottom,s),l.push({dom:c,left:d.left,top:d.top})}});var h=(a*=u)-(r*=u),c=(s*=u)-(o*=u),d=P();d.width=h,d.height=c;var f=br(d);return id(l,function(t){var e=new er({style:{x:t.left*u-r,y:t.top*u-o,image:t.dom}});f.add(e)}),f.refreshImmediately(),d.toDataURL(\"image/\"+(t&&t.type||\"png\"))}return this.getDataURL(t)}},xd.convertToPixel=j(_d,\"convertToPixel\"),xd.convertFromPixel=j(_d,\"convertFromPixel\"),xd.containPixel=function(t,e){var n;return B(t=Fr(this._model,t),function(t,i){i.indexOf(\"Models\")>=0&&B(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n|=!!r.containPoint(e);else if(\"seriesModels\"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint?n|=o.containPoint(e,t):c&&console.warn(i+\": \"+(o?\"The found component do not support containPoint.\":\"No view mapping to the found component.\"))}else c&&console.warn(i+\": containPoint is not supported\")},this)},this),!!n},xd.getVisual=function(t,e){var n=(t=Fr(this._model,t,{defaultMainType:\"series\"})).seriesModel;c&&(n||console.warn(\"There is no specified seires model\"));var i=n.getData(),r=t.hasOwnProperty(\"dataIndexInside\")?t.dataIndexInside:t.hasOwnProperty(\"dataIndex\")?i.indexOfRawIndex(t.dataIndex):null;return null!=r?i.getItemVisual(r,e):i.getVisual(e)},xd.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},xd.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var bd={prepareAndUpdate:function(t){wd(this),bd.update.call(this,t)},update:function(t){var e=this._model,n=this._api,i=this._zr,r=this._coordSysMgr,o=this._scheduler;if(e){o.restoreData(e,t),o.performSeriesTasks(e),r.create(e,n),o.performDataProcessorTasks(e,t),Sd(this,e),r.update(e,n),Cd(e),o.performVisualTasks(e,t),Ld(this,e,n,t);var a=e.get(\"backgroundColor\")||\"transparent\";if(p.canvasSupported)i.setBackgroundColor(a);else{var s=je(a);a=tn(s,\"rgb\"),0===s[3]&&(a=\"transparent\")}Pd(e,n)}},updateTransform:function(t){var e=this._model,n=this,i=this._api;if(e){var r=[];e.eachComponent(function(o,a){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,e,i,t);l&&l.update&&r.push(s)}else r.push(s)});var o=ht();e.eachSeries(function(r){var a=n._chartsMap[r.__viewId];if(a.updateTransform){var s=a.updateTransform(r,e,i,t);s&&s.update&&o.set(r.uid,1)}else o.set(r.uid,1)}),Cd(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:o}),kd(n,e,0,t,o),Pd(e,this._api)}},updateView:function(t){var e=this._model;e&&(Jh.markUpdateMethod(t,\"updateView\"),Cd(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),Ld(this,this._model,this._api,t),Pd(e,this._api))},updateVisual:function(t){bd.update.call(this,t)},updateLayout:function(t){bd.update.call(this,t)}};function wd(t){var e=t._model,n=t._scheduler;n.restorePipelines(e),n.prepareStageTasks(),Td(t,\"component\",e,n),Td(t,\"chart\",e,n),n.plan()}function Md(t,e,n,i,r){var o=t._model;if(i){var a={};a[i+\"Id\"]=n[i+\"Id\"],a[i+\"Index\"]=n[i+\"Index\"],a[i+\"Name\"]=n[i+\"Name\"];var s={mainType:i,query:a};r&&(s.subType=r);var l=n.excludeSeriesId;null!=l&&(l=ht(Cr(l))),o&&o.eachComponent(s,function(e){l&&null!=l.get(e.id)||u(t[\"series\"===i?\"_chartsMap\":\"_componentsMap\"][e.__viewId])},t)}else id(t._componentsViews.concat(t._chartsViews),u);function u(i){i&&i.__alive&&i[e]&&i[e](i.__model,o,t._api,n)}}function Sd(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})}function Id(t,e){var n=t.type,i=t.escapeConnect,r=zd[n],o=r.actionInfo,a=(o.update||\"update\").split(\":\"),s=a.pop();a=null!=a[0]&&ad(a[0]),this[fd]=!0;var l=[t],u=!1;t.batch&&(u=!0,l=V(t.batch,function(e){return(e=L(C({},e),t)).batch=null,e}));var h,c=[],d=\"highlight\"===n||\"downplay\"===n;id(l,function(t){(h=(h=r.action(t,this._model,this._api))||C({},t)).type=o.event||h.type,c.push(h),d?Md(this,s,t,\"series\"):a&&Md(this,s,t,a.main,a.sub)},this),\"none\"===s||d||a||(this[pd]?(wd(this),bd.update.call(this,t),this[pd]=!1):bd[s].call(this,t)),h=u?{type:o.event||n,escapeConnect:i,batch:c}:c[0],this[fd]=!1,!e&&this._messageCenter.trigger(h.type,h)}function Ad(t){for(var e=this._pendingActions;e.length;){var n=e.shift();Id.call(this,n,t)}}function Dd(t){!t&&this.trigger(\"updated\")}function Td(t,e,n,i){for(var r=\"component\"===e,o=r?t._componentsViews:t._chartsViews,a=r?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;ue.get(\"hoverLayerThreshold\")&&!p.node&&n.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}(t._zr,e),fc(t._zr.dom,e)}function Pd(t,e){id(Fd,function(n){n(t,e)})}xd.resize=function(t){c&&nd(!this[fd],\"`resize` should not be called during main process.\"),this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption(\"media\"),i=t&&t.silent;this[fd]=!0,n&&wd(this),bd.update.call(this),this[fd]=!1,Ad.call(this,i),Dd.call(this,i)}},xd.showLoading=function(t,e){if(od(t)&&(e=t,t=\"\"),t=t||\"default\",this.hideLoading(),Hd[t]){var n=Hd[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}else c&&console.warn(\"Loading effects \"+t+\" not exists.\")},xd.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},xd.makeActionFromEvent=function(t){var e=C({},t);return e.type=Rd[t.type],e},xd.dispatchAction=function(t,e){od(e)||(e={silent:!!e}),zd[t.type]&&this._model&&(this[fd]?this._pendingActions.push(t):(Id.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&p.browser.weChat&&this._throttledZrFlush(),Ad.call(this,e.silent),Dd.call(this,e.silent)))},xd.appendData=function(t){var e=t.seriesIndex,n=this.getModel().getSeriesByIndex(e);c&&nd(t.data&&n),n.appendData(t),this._scheduler.unfinished=!0},xd.on=md(\"on\"),xd.off=md(\"off\"),xd.one=md(\"one\");var Od=[\"click\",\"dblclick\",\"mouseover\",\"mouseout\",\"mousemove\",\"mousedown\",\"mouseup\",\"globalout\",\"contextmenu\"];function Nd(t,e){var n=t.get(\"z\"),i=t.get(\"zlevel\");e.group.traverse(function(t){\"group\"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t.zlevel=i))})}function Ed(){this.eventInfo}xd._initEvents=function(){id(Od,function(t){var e=function(e){var n,i=this.getModel(),r=e.target,o=\"globalout\"===t;if(o)n={};else if(r&&null!=r.dataIndex){var a=r.dataModel||i.getSeriesByIndex(r.seriesIndex);n=a&&a.getDataParams(r.dataIndex,r.dataType,r)||{}}else r&&r.eventData&&(n=C({},r.eventData));if(n){var s=n.componentType,l=n.componentIndex;\"markLine\"!==s&&\"markPoint\"!==s&&\"markArea\"!==s||(s=\"series\",l=n.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),h=u&&this[\"series\"===u.mainType?\"_chartsMap\":\"_componentsMap\"][u.__viewId];c&&(o||u&&h||console.warn(\"model or view can not be found by params\")),n.event=e,n.type=t,this._ecEventProcessor.eventInfo={targetEl:r,packedEvent:n,model:u,view:h},this.trigger(t,n)}};e.zrEventfulCallAtLast=!0,this._zr.on(t,e,this)},this),id(Rd,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},xd.isDisposed=function(){return this._disposed},xd.clear=function(){this.setOption({series:[]},!0)},xd.dispose=function(){if(this._disposed)c&&console.warn(\"Instance \"+this.id+\" has been disposed\");else{this._disposed=!0,Wr(this.getDom(),Xd,\"\");var t=this._api,e=this._model;id(this._componentsViews,function(n){n.dispose(e,t)}),id(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),delete jd[this.id]}},z(yd,Ft),Ed.prototype={constructor:Ed,normalizeQuery:function(t){var e={},n={},i={};if(U(t)){var r=ad(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=[\"Index\",\"Name\",\"Id\"],a={name:1,dataIndex:1,dataType:1};B(t,function(t,r){for(var s=!1,l=0;l0&&h===r.length-u.length){var c=r.slice(0,h);\"data\"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},filter:function(t,e,n){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,o=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return h(l,a,\"mainType\")&&h(l,a,\"subType\")&&h(l,a,\"index\",\"componentIndex\")&&h(l,a,\"name\")&&h(l,a,\"id\")&&h(u,o,\"name\")&&h(u,o,\"dataIndex\")&&h(u,o,\"dataType\")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o));function h(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},afterTrigger:function(){this.eventInfo=null}};var zd={},Rd={},Bd=[],Vd=[],Fd=[],Gd=[],Wd={},Hd={},jd={},Yd={},Zd=new Date-0,Ud=new Date-0,Xd=\"_echarts_instance_\";function qd(t){Yd[t]=!1}var Kd=qd;function Qd(t){return jd[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,Xd)]}function Jd(t,e){Wd[t]=e}function $d(t){Vd.push(t)}function tf(t,e){af(Bd,t,e,ud)}function ef(t,e,n){\"function\"==typeof e&&(n=e,e=\"\");var i=od(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,nd(gd.test(i)&&gd.test(e)),zd[i]||(zd[i]={action:n,actionInfo:t}),Rd[e]=i}function nf(t,e){Uu.register(t,e)}function rf(t,e){af(Gd,t,e,hd,\"layout\")}function of(t,e){af(Gd,t,e,cd,\"visual\")}function af(t,e,n,i,r){if((rd(e)||od(e))&&(n=e,e=i),c){if(isNaN(e)||null==e)throw new Error(\"Illegal priority\");id(t,function(t){nd(t.__raw!==n)})}var o=gc.wrapStageHandler(n,r);return o.__prio=e,o.__raw=n,t.push(o),o}function sf(t,e){Hd[t]=e}function lf(t){return gu.extend(t)}function uf(t){return Uh.extend(t)}function hf(t){return Vh.extend(t)}function cf(t){return Jh.extend(t)}function df(t){return t}function ff(t,e,n,i,r){this._old=t,this._new=e,this._oldKeyGetter=n||df,this._newKeyGetter=i||df,this.context=r}function pf(t,e,n,i,r){for(var o=0;o65535?bf:Mf}var If=[\"hasItemOption\",\"_nameList\",\"_idList\",\"_invertedIndicesMap\",\"_rawData\",\"_chunkSize\",\"_chunkCount\",\"_dimValueGetter\",\"_count\",\"_rawCount\",\"_nameDimIdx\",\"_idDimIdx\"],Af=[\"_extent\",\"_approximateExtent\",\"_rawExtent\"];function Df(t,e){B(If.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,B(Af,function(n){t[n]=A(e[n])}),t._calculationInfo=C(e._calculationInfo)}var Tf=function(t,e){t=t||[\"x\",\"y\"];for(var n={},i=[],r={},o=0;o=0?this._indices[t]:-1}function Ef(t,e){var n=t._idList[e];return null==n&&(n=Pf(t,t._idDimIdx,e)),null==n&&(n=xf+e),n}function zf(t){return Y(t)||(t=[t]),t}function Rf(t,e){for(var n=0;n=0?(r[s]=Vf(o[s]),i._rawExtent[s]=[1/0,-1/0],i._extent[s]=null):r[s]=o[s])}return i}function Vf(t){for(var e,n,i=new Array(t.length),r=0;rx[1]&&(x[1]=y)}e&&(this._nameList[f]=e[p])}this._rawCount=this._count=l,this._extent={},kf(this)},Cf._initDataFromProvider=function(t,e){if(!(t>=e)){for(var n,i=this._chunkSize,r=this._rawData,o=this._storage,a=this.dimensions,s=a.length,l=this._dimensionInfos,u=this._nameList,h=this._idList,c=this._rawExtent,d=this._nameRepeatCount={},f=this._chunkCount,p=0;pS[1]&&(S[1]=M)}if(!r.pure){var I=u[v];if(m&&null==I)if(null!=m.name)u[v]=I=m.name;else if(null!=n){var A=a[n],D=o[A][y];if(D){I=D[x];var T=l[A].ordinalMeta;T&&T.categories.length&&(I=T.categories[I])}}var C=null==m?null:m.id;null==C&&null!=I&&(d[I]=d[I]||0,C=I,d[I]>0&&(C+=\"__ec__\"+d[I]),d[I]++),null!=C&&(h[v]=C)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent={},kf(this)}},Cf.count=function(){return this._count},Cf.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array){r=new e(n);for(var i=0;i=0&&e=0&&ea&&(a=l)}return i=[o,a],this._extent[t]=i,i},Cf.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},Cf.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},Cf.getCalculationInfo=function(t){return this._calculationInfo[t]},Cf.setCalculationInfo=function(t,e){vf(t)?C(this._calculationInfo,t):this._calculationInfo[t]=e},Cf.getSum=function(t){var e=0;if(this._storage[t])for(var n=0,i=this.count();n=this._rawCount||t<0)return-1;var e=this._indices,n=e[t];if(null!=n&&nt))return o;r=o-1}}return-1},Cf.indicesOfNearest=function(t,e,n){var i=[];if(!this._storage[t])return i;null==n&&(n=1/0);for(var r=Number.MAX_VALUE,o=-1,a=0,s=this.count();a=0&&o<0)&&(r=u,o=l,i.length=0),i.push(a))}return i},Cf.getRawIndex=Of,Cf.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],n=0;n=l&&w<=u||isNaN(w))&&(o[a++]=d),d++;h=!0}else if(2===i){f=this._storage[s];var y=this._storage[e[1]],x=t[e[1]][0],_=t[e[1]][1];for(p=0;p=l&&w<=u||isNaN(w))&&(M>=x&&M<=_||isNaN(M))&&(o[a++]=d),d++}}h=!0}}if(!h)if(1===i)for(v=0;v=l&&w<=u||isNaN(w))&&(o[a++]=S)}else for(v=0;vt[A][1])&&(I=!1)}I&&(o[a++]=this.getRawIndex(v))}return aM[1]&&(M[1]=w)}}}return r},Cf.downSample=function(t,e,n,i){for(var r=Bf(this,[t]),o=r._storage,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=this._chunkSize,c=r._rawExtent[t],d=new(Sf(this))(u),f=0,p=0;pu-p&&(s=u-p,a.length=s);for(var g=0;gc[1]&&(c[1]=x),d[f++]=_}return r._count=f,r._indices=d,r.getRawIndex=Nf,r},Cf.getItemModel=function(t){var e=this.hostModel;return new pl(this.getRawDataItem(t),e,e&&e.ecModel)},Cf.diff=function(t){var e=this;return new ff(t?t.getIndices():[],this.getIndices(),function(e){return Ef(t,e)},function(t){return Ef(e,t)})},Cf.getVisual=function(t){var e=this._visual;return e&&e[t]},Cf.setVisual=function(t,e){if(vf(t))for(var n in t)t.hasOwnProperty(n)&&this.setVisual(n,t[n]);else this._visual=this._visual||{},this._visual[t]=e},Cf.setLayout=function(t,e){if(vf(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},Cf.getLayout=function(t){return this._layout[t]},Cf.getItemLayout=function(t){return this._itemLayouts[t]},Cf.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?C(this._itemLayouts[t]||{},e):e},Cf.clearItemLayouts=function(){this._itemLayouts.length=0},Cf.getItemVisual=function(t,e,n){var i=this._itemVisuals[t],r=i&&i[e];return null!=r||n?r:this.getVisual(e)},Cf.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{},r=this.hasItemVisual;if(this._itemVisuals[t]=i,vf(e))for(var o in e)e.hasOwnProperty(o)&&(i[o]=e[o],r[o]=!0);else i[e]=n,r[e]=!0},Cf.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var Ff=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};function Gf(t,e,n){ku.isInstance(e)||(e=ku.seriesDataToSource(e)),n=n||{},t=(t||[]).slice();for(var i=(n.dimsDef||[]).slice(),r=ht(n.encodeDef),o=ht(),a=ht(),s=[],l=function(t,e,n,i){var r=Math.max(t.dimensionsDetectCount||1,e.length,n.length,i||0);return B(e,function(t){var e=t.dimsDef;e&&(r=Math.max(r,e.length))}),r}(e,t,i,n.dimCount),u=0;u=e[0]&&t<=e[1]},Xf.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},Xf.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},Xf.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},Xf.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Xf.prototype.getExtent=function(){return this._extent.slice()},Xf.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},Xf.prototype.isBlank=function(){return this._isBlank},Xf.prototype.setBlank=function(t){this._isBlank=t},Xf.prototype.getLabel=null,Ur(Xf),Jr(Xf,{registerWhenExtend:!0}),qf.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&V(n,Jf);return new qf({categories:i,needCollect:!i,deduplication:!1!==e.dedplication})};var Kf=qf.prototype;function Qf(t){return t._map||(t._map=ht(t.categories))}function Jf(t){return X(t)&&null!=t.value?t.value:t+\"\"}Kf.getOrdinal=function(t){return Qf(this).get(t)},Kf.parseAndCollect=function(t){var e,n=this._needCollect;if(\"string\"!=typeof t&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=Qf(this);return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e};var $f=Xf.prototype,tp=Xf.extend({type:\"ordinal\",init:function(t,e){t&&!Y(t)||(t=new qf({categories:t})),this._ordinalMeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return\"string\"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),$f.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return $f.normalize.call(this,this.parse(t))},scale:function(t){return Math.round($f.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push(n),n++;return t},getLabel:function(t){if(!this.isBlank())return this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:dt,niceExtent:dt});tp.create=function(){return new tp};var ep=wl;function np(t){return Il(t)+2}function ip(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function rp(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),ip(t,0,e),ip(t,1,e),t[0]>t[1]&&(t[0]=t[1])}var op=wl,ap=Xf.extend({type:\"interval\",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),ap.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=np(t)},getTicks:function(){return function(t,e,n,i){var r=[];if(!t)return r;e[0]1e4)return[];return e[1]>(r.length?r[r.length-1]:n[1])&&r.push(e[1]),r}(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getLabel:function(t,e){if(null==t)return\"\";var n=e&&e.precision;return null==n?n=Il(t)||0:\"auto\"===n&&(n=this._intervalPrecision),Vl(t=op(t,n,!0))},niceTicks:function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=function(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=El(o/e,!0);null!=n&&ai&&(a=r.interval=i);var s=r.intervalPrecision=np(a);return rp(r.niceTickExtent=[ep(Math.ceil(t[0]/a)*a,s),ep(Math.floor(t[1]/a)*a,s)],t),r}(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax?e[0]-=n/2:(e[1]+=n/2,e[0]-=n/2)}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=op(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=op(Math.ceil(e[1]/r)*r))},fillExtent:function(t){if(!t.fixMin&&!t.fixMax){var e=s(this._extent,2),n=e[0],i=e[1];0===i?i=-n*t.pnr:0===n?n=-i/t.pnr:i=-n*t.pnr,this._extent=[n,i],this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval)}}});ap.create=function(){return new ap};var sp=\"__ec_stack_\",lp=\"undefined\"!=typeof Float32Array?Float32Array:Array;function up(t){return t.get(\"stack\")||sp+t.seriesIndex}function hp(t){return t.dim+t.index}function cp(t,e){var n=[];return e.eachSeriesByType(t,function(t){vp(t)&&!yp(t)&&n.push(t)}),n}function dp(t){var e=[];return B(t,function(t){var n=t.getData(),i=t.coordinateSystem.getBaseAxis(),r=i.getExtent(),o=\"category\"===i.type?i.getBandWidth():Math.abs(r[1]-r[0])/n.count(),a=bl(t.get(\"barWidth\"),o),s=bl(t.get(\"barMaxWidth\"),o),l=t.get(\"barGap\"),u=t.get(\"barCategoryGap\");e.push({bandWidth:o,barWidth:a,barMaxWidth:s,barGap:l,barCategoryGap:u,axisKey:hp(i),stackId:up(t)})}),fp(e)}function fp(t){var e={};B(t,function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:\"20%\",gap:\"30%\",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var h=t.barGap;null!=h&&(o.gap=h);var c=t.barCategoryGap;null!=c&&(o.categoryGap=c)});var n={};return B(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=bl(t.categoryGap,r),a=bl(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),B(i,function(t,e){var n=t.maxWidth;n&&n=0?\"p\":\"n\",D=m;p&&(r[a][_]||(r[a][_]={p:m,n:m}),D=r[a][_][A]),g?(b=D,w=(I=n.dataToPoint([x,_]))[1]+l,M=I[0]-m,S=u,Math.abs(M).5||(u=.5),{progress:function(t,e){for(var i,h=new lp(2*t.count),c=[],d=[],f=0;null!=(i=t.next());)d[l]=e.get(o,i),d[1-l]=e.get(a,i),c=n.dataToPoint(d,null,c),h[f++]=c[0],h[f++]=c[1];e.setLayout({largePoints:h,barWidth:u,valueAxisStart:xp(0,r),valueAxisHorizontal:s})}}}}};function vp(t){return t.coordinateSystem&&\"cartesian2d\"===t.coordinateSystem.type}function yp(t){return t.pipelineContext&&t.pipelineContext.large}function xp(t,e,n){var i,r,o=e.getGlobalExtent();o[0]>o[1]?(i=o[1],r=o[0]):(i=o[0],r=o[1]);var a=e.toGlobalCoord(e.dataToCoord(0));return ar&&(a=r),a}var _p=ap.prototype,bp=Math.ceil,wp=Math.floor,Mp=ap.extend({type:\"time\",getLabel:function(t){var e=this._stepLvl,n=new Date(t);return Ql(e[0],n,this.getSetting(\"useUTC\"))},niceExtent:function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=864e5,e[1]+=864e5),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-864e5}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=wl(wp(e[0]/i)*i)),t.fixMax||(e[1]=wl(bp(e[1]/i)*i))},niceTicks:function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0],o=r/t;null!=e&&on&&(o=n);var a=Sp.length,s=function(t,e,n,i){for(;n>>1;t[r][1]0;)i*=10;var r=[wl(Lp(e[0]/i)*i),wl(Cp(e[1]/i)*i)];this._interval=i,this._niceExtent=r}},niceExtent:function(t){Ap.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});function Np(t,e){return Tp(t,Dp(e))}function Ep(t,e){var n,i,r,o=t.type,a=e.getMin(),s=e.getMax(),l=null!=a,u=null!=s,h=t.getExtent();\"ordinal\"===o?n=e.getCategories().length:(Y(i=e.get(\"boundaryGap\"))||(i=[i||0,i||0]),\"boolean\"==typeof i[0]&&(c&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., \"20%\". Currently, boundaryGap is set to be 0.'),i=[0,0]),i[0]=bl(i[0],1),i[1]=bl(i[1],1),r=h[1]-h[0]||Math.abs(h[0])),null==a&&(a=\"ordinal\"===o?n?0:NaN:h[0]-i[0]*r),null==s&&(s=\"ordinal\"===o?n?n-1:NaN:h[1]+i[1]*r),\"dataMin\"===a?a=h[0]:\"function\"==typeof a&&(a=a({min:h[0],max:h[1]})),\"dataMax\"===s?s=h[1]:\"function\"==typeof s&&(s=s({min:h[0],max:h[1]})),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN),t.setBlank(J(a)||J(s)||\"ordinal\"===o&&!t.getOrdinalMeta().categories.length),e.getNeedCrossZero()&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var d=e.ecModel;if(d&&\"time\"===o){var f,p=cp(\"bar\",d);if(B(p,function(t){f|=t.getBaseAxis()===e.axis}),f){var g=dp(p),m=function(t,e,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=pp(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;B(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;B(a,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-t,c=h/(1-(s+l)/o)-h;return{min:t-=c*(s/u),max:e+=c*(l/u)}}(a,s,e,g);a=m.min,s=m.max}}return[a,s]}function zp(t,e){var n=Ep(t,e),i=null!=e.getMin(),r=null!=e.getMax(),o=e.get(\"splitNumber\");\"log\"===t.type&&(t.base=e.get(\"logBase\"));var a=t.type;t.setExtent(n[0],n[1]),t.niceExtent({splitNumber:o,fixMin:i,fixMax:r,minInterval:\"interval\"===a||\"time\"===a?e.get(\"minInterval\"):null,maxInterval:\"interval\"===a||\"time\"===a?e.get(\"maxInterval\"):null});var s=e.get(\"interval\");null!=s&&t.setInterval&&t.setInterval(s)}function Rp(t,e){if(e=e||t.get(\"type\"))switch(e){case\"category\":return new tp(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case\"value\":return new ap;default:return(Xf.getClass(e)||ap).create(t)}}function Bp(t){var e,n=t.getLabelModel().get(\"formatter\"),i=\"category\"===t.type?t.scale.getExtent()[0]:null;return\"string\"==typeof n?(e=n,n=function(n){return n=t.scale.getLabel(n),e.replace(\"{value}\",null!=n?n:\"\")}):\"function\"==typeof n?function(e,r){return null!=i&&(r=e-i),n(Vp(t,e),r)}:function(e){return t.scale.getLabel(e)}}function Vp(t,e){return\"category\"===t.type?t.scale.getLabel(e):e}function Fp(t,e){var n=e*Math.PI/180,i=t.plain(),r=i.width,o=i.height,a=r*Math.cos(n)+o*Math.sin(n),s=r*Math.sin(n)+o*Math.cos(n);return new Pn(i.x,i.y,a,s)}function Gp(t){var e=t.get(\"interval\");return null==e?\"auto\":e}function Wp(t){return\"category\"===t.type&&0===Gp(t.getLabelModel())}B([\"contain\",\"normalize\"],function(t){Op.prototype[t]=function(e){return e=Pp(e)/Pp(this.base),Ip[t].call(this,e)}}),Op.create=function(){return new Op};var Hp={getMin:function(t){var e=this.option,n=t||null==e.rangeStart?e.min:e.rangeStart;return this.axis&&null!=n&&\"dataMin\"!==n&&\"function\"!=typeof n&&!J(n)&&(n=this.axis.scale.parse(n)),n},getMax:function(t){var e=this.option,n=t||null==e.rangeEnd?e.max:e.rangeEnd;return this.axis&&null!=n&&\"dataMax\"!==n&&\"function\"!=typeof n&&!J(n)&&(n=this.axis.scale.parse(n)),n},getNeedCrossZero:function(){var t=this.option;return null==t.rangeStart&&null==t.rangeEnd&&!t.scale},getCoordSysModel:dt,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}},jp=_s({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,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),Yp=_s({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,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),Zp=_s({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,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),h=Math.cos(u)*a,c=Math.sin(u),d=Math.cos(u),f=.6*a,p=.7*a;t.moveTo(n-h,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+h-c*f,l+s+d*f,n,i-p,n,i),t.bezierCurveTo(n,i-p,n-h+c*f,l+s+d*f,n-h,l+s),t.closePath()}}),Up=_s({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,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),Xp={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){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},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}},qp={};B({line:es,rect:$a,roundRect:$a,square:$a,circle:Ra,diamond:Yp,pin:Zp,arrow:Up,triangle:jp},function(t,e){qp[e]=new t});var Kp=_s({type:\"symbol\",shape:{symbolType:\"\",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style;\"pin\"===this.shape.symbolType&&\"inside\"===t.textPosition&&(t.textPosition=[\"50%\",\"40%\"],t.textAlign=\"center\",t.textVerticalAlign=\"middle\")},buildPath:function(t,e,n){var i=e.symbolType,r=qp[i];\"none\"!==e.symbolType&&(r||(r=qp[i=\"rect\"]),Xp[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n))}});function Qp(t,e){if(\"image\"!==this.type){var n=this.style,i=this.shape;i&&\"line\"===i.symbolType?n.stroke=t:this.__isEmptyBrush?(n.stroke=t,n.fill=e||\"#fff\"):(n.fill&&(n.fill=t),n.stroke&&(n.stroke=t)),this.dirty(!1)}}function Jp(t,e,n,i,r,o,a){var s,l=0===t.indexOf(\"empty\");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf(\"image://\")?ws(t.slice(8),new Pn(e,n,i,r),a?\"center\":\"cover\"):0===t.indexOf(\"path://\")?bs(t.slice(7),{},new Pn(e,n,i,r),a?\"center\":\"cover\"):new Kp({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=l,s.setColor=Qp,s.setColor(o),s}var $p={isDimensionStacked:Yf,enableDataStack:jf,getStackedDimension:Zf},tg=(Object.freeze||Object)({createList:function(t){return Uf(t.getSource(),t)},getLayoutRect:su,dataStack:$p,createScale:function(t,e){var n=e;pl.isInstance(e)||z(n=new pl(e),Hp);var i=Rp(n);return i.setExtent(t[0],t[1]),zp(i,n),i},mixinAxisModelCommonMethods:function(t){z(t,Hp)},completeDimensions:Gf,createDimensions:Hf,createSymbol:Jp}),eg=1e-8;function ng(t,e){return Math.abs(t-e)>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,i.push([s/n,l/n])}return i}rg.prototype={constructor:rg,properties:null,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,n=[e,e],i=[-e,-e],r=[],o=[],a=this.geometries,s=0;s0}),function(t){var e=t.properties,n=t.geometry,i=n.coordinates,r=[];\"Polygon\"===n.type&&r.push({type:\"polygon\",exterior:i[0],interiors:i.slice(1)}),\"MultiPolygon\"===n.type&&B(i,function(t){t[0]&&r.push({type:\"polygon\",exterior:t[0],interiors:t.slice(1)})});var o=new rg(e.name,r,e.cp);return o.properties=e,o})},sg=Br();function lg(t){return\"category\"===t.type?function(t){var e=t.getLabelModel(),n=hg(t,e);return!e.get(\"show\")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=Bp(t);return{labels:V(e,function(e,i){return{formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e}})}}(t)}function ug(t,e){return\"category\"===t.type?function(t,e){var n,i,r=cg(t,\"ticks\"),o=Gp(e),a=dg(r,o);if(a)return a;if(e.get(\"show\")&&!t.scale.isBlank()||(n=[]),Z(o))n=gg(t,o,!0);else if(\"auto\"===o){var s=hg(t,t.getLabelModel());i=s.labelCategoryInterval,n=V(s.labels,function(t){return t.tickValue})}else n=pg(t,i=o,!0);return fg(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:t.scale.getTicks()}}function hg(t,e){var n,i,r=cg(t,\"labels\"),o=Gp(e),a=dg(r,o);return a||(Z(o)?n=gg(t,o):(i=\"auto\"===o?function(t){var e=sg(t).autoInterval;return null!=e?e:sg(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=pg(t,i)),fg(r,o,{labels:n,labelCategoryInterval:i}))}function cg(t,e){return sg(t)[e]||(sg(t)[e]=[])}function dg(t,e){for(var n=0;n1&&h/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=Wp(t),d=a.get(\"showMinLabel\")||c,f=a.get(\"showMaxLabel\")||c;d&&u!==o[0]&&g(o[0]);for(var p=u;p<=o[1];p+=l)g(p);function g(t){s.push(n?t:{formattedLabel:i(t),rawLabel:r.getLabel(t),tickValue:t})}return f&&p!==o[1]&&g(o[1]),s}function gg(t,e,n){var i=t.scale,r=Bp(t),o=[];return B(i.getTicks(),function(t){var a=i.getLabel(t);e(t,a)&&o.push(n?t:{formattedLabel:r(t),rawLabel:a,tickValue:t})}),o}var mg=[0,1],vg=function(t,e,n){this.dim=t,this.scale=e,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1};function yg(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}vg.prototype={constructor:vg,contain:function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},containData:function(t){return this.contain(this.dataToCoord(t))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return Al(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var n=this._extent;n[0]=t,n[1]=e},dataToCoord:function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&\"ordinal\"===i.type&&yg(n=n.slice(),i.count()),_l(t,mg,n,e)},coordToData:function(t,e){var n=this._extent,i=this.scale;this.onBand&&\"ordinal\"===i.type&&yg(n=n.slice(),i.count());var r=_l(t,n,mg,e);return this.scale.scale(r)},pointToData:function(t,e){},getTicksCoords:function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=ug(this,e),i=V(n.ticks,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this),r=e.get(\"alignWithLabel\");return function(t,e,n,i,r){var o=e.length;if(t.onBand&&!i&&o){var a,s=t.getExtent();if(1===o)e[0].coord=s[0],a=e[1]={coord:s[0]};else{var l=e[1].coord-e[0].coord;B(e,function(t){t.coord-=l/2;var e=e||0;e%2>0&&(t.coord-=l/(2*(e+1)))}),a={coord:e[o-1].coord+l},e.push(a)}var u=s[0]>s[1];h(e[0].coord,s[0])&&(r?e[0].coord=s[0]:e.shift()),r&&h(s[0],e[0].coord)&&e.unshift({coord:s[0]}),h(s[1],a.coord)&&(r?a.coord=s[1]:e.pop()),r&&h(a.coord,s[1])&&e.push({coord:s[1]})}function h(t,e){return u?t>e:t40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(i)),c=Math.abs(u*Math.sin(i)),d=0,f=0;l<=o[1];l+=s){var p,g,m=yi(n(l),e.font,\"center\",\"top\");p=1.3*m.width,g=1.3*m.height,d=Math.max(d,p,7),f=Math.max(f,g,7)}var v=d/h,y=f/c;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(v,y))),_=sg(t.model),b=_.lastAutoInterval,w=_.lastTickCount;return null!=b&&null!=w&&Math.abs(b-x)<=1&&Math.abs(w-a)<=1&&b>x?x=b:(_.lastTickCount=a,_.lastAutoInterval=x),x}(this)}};var xg=ag,_g={};B([\"map\",\"each\",\"filter\",\"indexOf\",\"inherits\",\"reduce\",\"filter\",\"bind\",\"curry\",\"isArray\",\"isString\",\"isObject\",\"isFunction\",\"extend\",\"defaults\",\"clone\",\"merge\"],function(t){_g[t]=ft[t]});var bg={};function wg(t,e){var n=t.mapDimension(\"defaultedLabel\",!0),i=n.length;if(1===i)return Ch(t,e,n[0]);if(i){for(var r=[],o=0;o0?n=i[0]:i[1]<0&&(n=i[1]),n}(o,n),s=r.dim,l=o.dim,u=e.mapDimension(l),h=e.mapDimension(s),c=\"x\"===l||\"radius\"===l?1:0,d=V(t.dimensions,function(t){return e.mapDimension(t)}),f=e.getCalculationInfo(\"stackResultDimension\");return(i|=Yf(e,d[0]))&&(d[0]=f),(i|=Yf(e,d[1]))&&(d[1]=f),{dataDimsForPoint:d,valueStart:a,valueAxisDim:l,baseAxisDim:s,stacked:!!i,valueDim:u,baseDim:h,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo(\"stackedOverDimension\")}}function Vg(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo(\"stackedOverDimension\"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}Ng.updateData=function(t,e){e=zg(e);var n=this.group,i=t.hostModel,r=this._data,o=this._symbolCtor,a=Rg(t);r||n.removeAll(),t.diff(r).add(function(i){var r=t.getItemLayout(i);if(Eg(t,r,i,e)){var s=new o(t,i,a);s.attr(\"position\",r),t.setItemGraphicEl(i,s),n.add(s)}}).update(function(s,l){var u=r.getItemGraphicEl(l),h=t.getItemLayout(s);Eg(t,h,s,e)?(u?(u.updateData(t,s,a),$s(u,{position:h},i)):(u=new o(t,s)).attr(\"position\",h),n.add(u),t.setItemGraphicEl(s,u)):n.remove(u)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)})}).execute(),this._data=t},Ng.isPersistent=function(){return!0},Ng.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(e,n){var i=t.getItemLayout(n);e.attr(\"position\",i)})},Ng.incrementalPrepareUpdate=function(t){this._seriesScope=Rg(t),this._data=null,this.group.removeAll()},Ng.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}n=zg(n);for(var r=t.start;r=r||d<0)break;if(Ug(p)){if(h){d+=o;continue}break}if(d===n)t[o>0?\"moveTo\":\"lineTo\"](p[0],p[1]);else if(l>0){var g=e[c],m=\"y\"===u?1:0,v=(p[m]-g[m])*l;Hg(Yg,g),Yg[m]=g[m]+v,Hg(Zg,p),Zg[m]=p[m]-v,t.bezierCurveTo(Yg[0],Yg[1],Zg[0],Zg[1],p[0],p[1])}else t.lineTo(p[0],p[1]);c=d,d+=o}return f}function Kg(t,e,n,i,r,o,a,s,l,u,h){for(var c=0,d=n,f=0;f=r||d<0)break;if(Ug(p)){if(h){d+=o;continue}break}if(d===n)t[o>0?\"moveTo\":\"lineTo\"](p[0],p[1]),Hg(Yg,p);else if(l>0){var g=d+o,m=e[g];if(h)for(;m&&Ug(e[g]);)m=e[g+=o];var v=.5,y=e[c];if(!(m=e[g])||Ug(m))Hg(Zg,p);else{var x,_;if(Ug(m)&&!h&&(m=p),bt(jg,m,y),\"x\"===u||\"y\"===u){var b=\"x\"===u?0:1;x=Math.abs(p[b]-y[b]),_=Math.abs(p[b]-m[b])}else x=Ct(p,y),_=Ct(p,m);Wg(Zg,p,jg,-l*(1-(v=_/(_+x))))}Fg(Yg,Yg,s),Gg(Yg,Yg,a),Fg(Zg,Zg,s),Gg(Zg,Zg,a),t.bezierCurveTo(Yg[0],Yg[1],Zg[0],Zg[1],p[0],p[1]),Wg(Yg,p,jg,l*v)}else t.lineTo(p[0],p[1]);c=d,d+=o}return f}function Qg(t,e){var n=[1/0,1/0],i=[-1/0,-1/0];if(e)for(var r=0;ri[0]&&(i[0]=o[0]),o[1]>i[1]&&(i[1]=o[1])}return{min:e?n:i,max:e?i:n}}var Jg=ya.extend({type:\"ec-polyline\",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:\"#000\"},brush:Va(ya.prototype.brush),buildPath:function(t,e){var n=e.points,i=0,r=n.length,o=Qg(n,e.smoothConstraint);if(e.connectNulls){for(;r>0&&Ug(n[r-1]);r--);for(;i0&&Ug(n[o-1]);o--);for(;re[0]?1:-1;e[0]+=i*n,e[1]-=i*n}return e}function im(t,e,n,i){return\"polar\"===t.type?function(t,e,n,i){var r=t.getAngleAxis(),o=t.getRadiusAxis().getExtent().slice();o[0]>o[1]&&o.reverse();var a=r.getExtent(),s=Math.PI/180;n&&(o[0]-=.5,o[1]+=.5);var l=new Fa({shape:{cx:wl(t.cx,1),cy:wl(t.cy,1),r0:wl(o[0],1),r:wl(o[1],1),startAngle:-a[0]*s,endAngle:-a[1]*s,clockwise:r.inverse}});return e&&(l.shape.endAngle=-a[0]*s,tl(l,{shape:{endAngle:-a[1]*s}},i)),l}(t,e,n,i):function(t,e,n,i){var r=nm(t.getAxis(\"x\")),o=nm(t.getAxis(\"y\")),a=t.getBaseAxis().isHorizontal(),s=Math.min(r[0],r[1]),l=Math.min(o[0],o[1]),u=Math.max(r[0],r[1])-s,h=Math.max(o[0],o[1])-l;if(n)s-=.5,u+=.5,l-=.5,h+=.5;else{var c=i.get(\"lineStyle.width\")||2,d=i.get(\"clipOverflow\")?c/2:Math.max(u,h);a?(l-=d,h+=2*d):(s-=d,u+=2*d)}var f=new $a({shape:{x:s,y:l,width:u,height:h}});return e&&(f.shape[a?\"width\":\"height\"]=0,tl(f,{shape:{width:u,height:h}},i)),f}(t,e,n,i)}function rm(t,e,n){for(var i=e.getBaseAxis(),r=\"x\"===i.dim||\"radius\"===i.dim?0:1,o=[],a=0;ai)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return B(o.getViewLabels(),function(t){s[t.tickValue]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}Jh.extend({type:\"line\",init:function(){var t=new On,e=new Og;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,n){var i=t.coordinateSystem,r=this.group,o=t.getData(),a=t.getModel(\"lineStyle\"),s=t.getModel(\"areaStyle\"),l=o.mapArray(o.getItemLayout),u=\"polar\"===i.type,h=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,g=this._lineGroup,m=t.get(\"animation\"),v=!s.isEmpty(),y=s.get(\"origin\"),x=function(t,e,n){if(!n.valueDim)return[];for(var i=[],r=0,o=e.count();r=0;o--){var a=n[o].dimension,s=t.dimensions[a],l=t.getDimensionInfo(s);if(\"x\"===(i=l&&l.coordDim)||\"y\"===i){r=n[o];break}}if(r){var u=e.getAxis(i),h=V(r.stops,function(t){return{coord:u.toGlobalCoord(u.dataToCoord(t.value)),color:t.color}}),d=h.length,f=r.outerColors.slice();d&&h[0].coord>h[d-1].coord&&(h.reverse(),f.reverse());var p=h[0].coord-10,g=h[d-1].coord+10,m=g-p;if(m<.001)return\"transparent\";B(h,function(t){t.offset=(t.coord-p)/m}),h.push({offset:d?h[d-1].offset:.5,color:f[1]||\"transparent\"}),h.unshift({offset:d?h[0].offset:.5,color:f[0]||\"transparent\"});var v=new ls(0,0,0,0,h,!0);return v[i]=p,v[i+\"2\"]=g,v}c&&console.warn(\"Visual map on line style only support x or y dimension.\")}else c&&console.warn(\"Visual map on line style is only supported on cartesian2d.\")}(o,i)||o.getVisual(\"color\");f.useStyle(L(a.getLineStyle(),{fill:\"none\",stroke:S,lineJoin:\"bevel\"}));var I=t.get(\"smooth\");if(I=em(t.get(\"smooth\")),f.setShape({smooth:I,smoothMonotone:t.get(\"smoothMonotone\"),connectNulls:t.get(\"connectNulls\")}),p){var A=o.getCalculationInfo(\"stackedOnSeries\"),D=0;p.useStyle(L(s.getAreaStyle(),{fill:S,opacity:.7,lineJoin:\"bevel\"})),A&&(D=em(A.get(\"smooth\"))),p.setShape({smooth:I,stackedOnSmooth:D,smoothMonotone:t.get(\"smoothMonotone\"),connectNulls:t.get(\"connectNulls\")})}this._data=o,this._coordSys=i,this._stackedOnPoints=x,this._points=l,this._step=M,this._valueOrigin=y},dispose:function(){},highlight:function(t,e,n,i){var r=t.getData(),o=Rr(r,i);if(!(o instanceof Array)&&null!=o&&o>=0){var a=r.getItemGraphicEl(o);if(!a){var s=r.getItemLayout(o);if(!s)return;(a=new Mg(r,o)).position=s,a.setZ(t.get(\"zlevel\"),t.get(\"z\")),a.ignore=isNaN(s[0])||isNaN(s[1]),a.__temp=!0,r.setItemGraphicEl(o,a),a.stopSymbolAnimation(!0),this.group.add(a)}a.highlight()}else Jh.prototype.highlight.call(this,t,e,n,i)},downplay:function(t,e,n,i){var r=t.getData(),o=Rr(r,i);if(null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else Jh.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Jg({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new $g({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_updateAnimation:function(t,e,n,i,r,o){var a=this._polyline,s=this._polygon,l=t.hostModel,u=function(t,e,n,i,r,o,a,s){for(var l=function(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:\"+\",idx:t})}).update(function(t,e){n.push({cmd:\"=\",idx:e,idx1:t})}).remove(function(t){n.push({cmd:\"-\",idx:t})}).execute(),n}(t,e),u=[],h=[],c=[],d=[],f=[],p=[],g=[],m=Bg(r,e,a),v=Bg(o,t,s),y=0;ye&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;ne[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t[\"x\"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},E(fm,vg);var pm={show:!0,zlevel:0,z:0,inverse:!1,name:\"\",nameLocation:\"end\",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:\"...\",placeholder:\".\"},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:\"#333\",width:1,type:\"solid\"},symbol:[\"none\",\"none\"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:[\"#ccc\"],width:1,type:\"solid\"}},splitArea:{show:!1,areaStyle:{color:[\"rgba(250,250,250,0.3)\",\"rgba(200,200,200,0.3)\"]}}},gm={};gm.categoryAxis=D({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:\"auto\"},axisLabel:{interval:\"auto\"}},pm),gm.valueAxis=D({boundaryGap:[0,0],splitNumber:5},pm),gm.timeAxis=L({scale:!0,min:\"dataMin\",max:\"dataMax\"},gm.valueAxis),gm.logAxis=L({scale:!0,logBase:10},gm.valueAxis);var mm=[\"value\",\"category\",\"time\",\"log\"],vm=function(t,e,n,i){B(mm,function(r){e.extend({type:t+\"Axis.\"+r,mergeDefaultAndTheme:function(e,i){var o=this.layoutMode,a=o?hu(e):{};D(e,i.getTheme().get(r+\"Axis\")),D(e,this.getDefaultOption()),e.type=n(t,e),o&&uu(e,a,o)},optionUpdated:function(){\"category\"===this.option.type&&(this.__ordinalMeta=qf.createByAxisModel(this))},getCategories:function(t){var e=this.option;if(\"category\"===e.type)return t?e.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:T([{},gm[r+\"Axis\"],i],!0)})}),gu.registerSubTypeDefaulter(t+\"Axis\",j(n,t))},ym=gu.extend({type:\"cartesian2dAxis\",axis:null,init:function(){ym.superApply(this,\"init\",arguments),this.resetRange()},mergeOption:function(){ym.superApply(this,\"mergeOption\",arguments),this.resetRange()},restoreData:function(){ym.superApply(this,\"restoreData\",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:\"grid\",index:this.option.gridIndex,id:this.option.gridId})[0]}});function xm(t,e){return e.type||(e.data?\"category\":\"value\")}D(ym.prototype,Hp);var _m={offset:0};function bm(t,e,n){return t.getCoordSysModel()===e}function wm(t,e,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._pnAxes={},this._initCartesian(t,e,n),this.model=t}vm(\"x\",ym,xm,_m),vm(\"y\",ym,xm,_m),gu.extend({type:\"grid\",dependencies:[\"xAxis\",\"yAxis\"],layoutMode:\"box\",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:\"10%\",top:60,right:\"10%\",bottom:60,containLabel:!1,backgroundColor:\"rgba(0,0,0,0)\",borderWidth:1,borderColor:\"#ccc\"}});var Mm=wm.prototype;function Sm(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(\"axisLine.onZero\"),l=a.get(\"axisLine.onZeroAxisIndex\");if(s){if(null!=l)Im(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&Im(o[u])&&!i[h(o[u])]){r=o[u];break}r&&(i[h(r)]=!0)}function h(t){return t.dim+\"_\"+t.index}}function Im(t){return t&&\"category\"!==t.type&&\"time\"!==t.type&&function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}(t)}Mm.type=\"grid\",Mm.axisPointerEnabled=!0,Mm.getRect=function(){return this._rect},Mm.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model),B(n.x,function(t){zp(t.scale,t.model)}),B(n.y,function(t){zp(t.scale,t.model)}),this.syncYAxisZero();var i={};B(n.x,function(t){Sm(n,\"y\",t,i)}),B(n.y,function(t){Sm(n,\"x\",t,i)}),this.resize(this.model,e)},Mm.syncYAxisZero=function(){var t=[],e=[],n=[];if(B(this._axesMap.y,function(i){var r=null!=i.model.getMin(),o=null!=i.model.getMax();if(!r&&!o){var a=i.scale.getExtent();a[0]<0&&a[1]?t.push(i):0===a[0]&&a[1]>0?e.push(i):a[0]<0&&0===a[1]&&n.push(i)}}),t.length>0||e.length>0&&n.length>0){var i=function(t){var e=1;if(t.length>0){var n=t.map(function(t){var e=t.scale.getExtent();return Math.abs(e[1])/Math.abs(e[0])});e=Math.max.apply(null,n)}return e}(t);t.concat(e).concat(n).forEach(function(t){\"interval\"===t.scale.type&&function(t,e,n){var i=null!=e.getMin(),r=null!=e.getMax();t.fillExtent({fixMin:i,fixMax:r,pnr:n})}(t.scale,t.model,i)})}},Mm.resize=function(t,e,n){var i=su(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=i;var r=this._axesList;function o(){B(r,function(t){var e=t.isHorizontal(),n=e?[0,i.width]:[0,i.height],r=t.inverse?1:0;t.setExtent(n[r],n[1-r]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord=\"x\"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=\"x\"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?i.x:i.y)})}o(),!n&&t.get(\"containLabel\")&&(B(r,function(t){if(!t.model.get(\"axisLabel.inside\")){var e=function(t){var e=t.model,n=t.scale;if(e.get(\"axisLabel.show\")&&!n.isBlank()){var i,r,o=\"category\"===t.type,a=n.getExtent();r=o?n.count():(i=n.getTicks()).length;var s,l=t.getLabelModel(),u=Bp(t),h=1;r>40&&(h=Math.ceil(r/40));for(var c=0;cu[1]?-1:1,c=[\"start\"===o?u[0]-h*l:\"end\"===o?u[1]+h*l:(u[0]+u[1])/2,Rm(o)?t.labelOffset+a*l:0],d=e.get(\"nameRotate\");null!=d&&(d=d*Cm/180),Rm(o)?i=Om(t.rotation,null!=d?d:t.rotation,a):(i=function(t,e,n,i){var r,o,a=Cl(n-t.rotation),s=i[0]>i[1],l=\"start\"===e&&!s||\"start\"!==e&&s;return Ll(a-Cm/2)?(o=l?\"bottom\":\"top\",r=\"center\"):Ll(a-1.5*Cm)?(o=l?\"top\":\"bottom\",r=\"center\"):(o=\"middle\",r=a<1.5*Cm&&a>Cm/2?l?\"left\":\"right\":l?\"right\":\"left\"),{rotation:a,textAlign:r,textVerticalAlign:o}}(t,o,d||0,u),null!=(r=t.axisNameAvailableWidth)&&(r=Math.abs(r/Math.sin(i.rotation)),!isFinite(r)&&(r=null)));var f=s.getFont(),p=e.get(\"nameTruncate\",!0)||{},g=p.ellipsis,m=$(t.nameTruncateMaxWidth,p.maxWidth,r),v=null!=g&&null!=m?$l(n,m,f,g,{minChar:2,placeholder:p.placeholder}):n,y=e.get(\"tooltip\",!0),x=e.mainType,_={componentType:x,name:n,$vars:[\"name\"]};_[x+\"Index\"]=e.componentIndex;var b=new za({anid:\"name\",__fullText:n,__truncatedText:v,position:c,rotation:i.rotation,silent:Nm(e),z2:1,tooltip:y&&y.show?C({content:n,formatter:function(){return n},formatterParams:_},y):null});Ys(b.style,s,{text:v,textFont:f,textFill:s.getTextColor()||e.get(\"axisLine.lineStyle.color\"),textAlign:i.textAlign,textVerticalAlign:i.textVerticalAlign}),e.get(\"triggerEvent\")&&(b.eventData=Pm(e),b.eventData.targetType=\"axisName\",b.eventData.name=n),this._dumbGroup.add(b),b.updateTransform(),this.group.add(b),b.decomposeTransform()}}},Pm=Lm.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+\"Index\"]=t.componentIndex,e},Om=Lm.innerTextLayout=function(t,e,n){var i,r,o=Cl(e-t);return Ll(o)?(r=n>0?\"top\":\"bottom\",i=\"center\"):Ll(o-Cm)?(r=n>0?\"bottom\":\"top\",i=\"center\"):(r=\"middle\",i=o>0&&o0?\"right\":\"left\":n>0?\"left\":\"right\"),{rotation:o,textAlign:i,textVerticalAlign:r}},Nm=Lm.isLabelSilent=function(t){var e=t.get(\"tooltip\");return t.get(\"silent\")||!(t.get(\"triggerEvent\")||e&&e.show)};function Em(t){t&&(t.ignore=!0)}function zm(t,e,n){var i=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(i&&r){var o=le([]);return de(o,o,-t.rotation),i.applyTransform(he([],o,t.getLocalTransform())),r.applyTransform(he([],o,e.getLocalTransform())),i.intersect(r)}}function Rm(t){return\"middle\"===t||\"center\"===t}var Bm=B,Vm=j;function Fm(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var i=e.getComponent(\"tooltip\"),r=e.getComponent(\"axisPointer\"),o=r.get(\"link\",!0)||[],a=[];Bm(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var s=Ym(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model.getModel(\"tooltip\",i);if(Bm(n.getAxes(),Vm(f,!1,null)),n.getTooltipAxes&&i&&u.get(\"show\")){var h=\"axis\"===u.get(\"trigger\"),c=\"cross\"===u.get(\"axisPointer.type\"),d=n.getTooltipAxes(u.get(\"axisPointer.axis\"));(h||c)&&Bm(d.baseAxes,Vm(f,!c||\"cross\",h)),c&&Bm(d.otherAxes,Vm(f,\"cross\",!1))}}function f(i,s,h){var c=h.model.getModel(\"axisPointer\",r),d=c.get(\"show\");if(d&&(\"auto\"!==d||i||jm(c))){null==s&&(s=c.get(\"triggerTooltip\"));var f=(c=i?function(t,e,n,i,r,o){var a=e.getModel(\"axisPointer\"),s={};Bm([\"type\",\"snap\",\"lineStyle\",\"shadowStyle\",\"label\",\"animation\",\"animationDurationUpdate\",\"animationEasingUpdate\",\"z\"],function(t){s[t]=A(a.get(t))}),s.snap=\"category\"!==t.type&&!!o,\"cross\"===a.get(\"type\")&&(s.type=\"line\");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),\"cross\"===r){var u=a.get(\"label.show\");if(l.show=null==u||u,!o){var h=s.lineStyle=a.get(\"crossStyle\");h&&L(l,h.textStyle)}}return t.model.getModel(\"axisPointer\",new pl(s,n,i))}(h,u,r,e,i,s):c).get(\"snap\"),p=Ym(h.model),g=s||f||\"category\"===h.type,m=t.axesInfo[p]={key:p,axis:h,coordSys:n,axisPointerModel:c,triggerTooltip:s,involveSeries:g,snap:f,useHandle:jm(c),seriesModels:[]};l[p]=m,t.seriesInvolved|=g;var v=function(t,e){for(var n=e.model,i=e.dim,r=0;r=0||t===e}function Wm(t){var e=Hm(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get(\"status\"),a=n.get(\"value\");null!=a&&(a=i.parse(a));var s=jm(n);null==o&&(r.status=s?\"show\":\"hide\");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a1&&(\"string\"==typeof r?a=lm[r]:\"function\"==typeof r&&(a=r),a&&t.setData(i.downSample(i.mapDimension(l.dim),1/c,a,um)))}}}}(\"line\"));var tv=Vh.extend({type:\"series.__base_bar__\",getInitialData:function(t,e){return Uf(this.getSource(),this)},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var n=e.dataToPoint(e.clampData(t)),i=this.getData(),r=i.getLayout(\"offset\"),o=i.getLayout(\"size\");return n[e.getBaseAxis().isHorizontal()?0:1]+=r+o/2,n}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:\"cartesian2d\",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:\"mod\",itemStyle:{},emphasis:{}}});function ev(t,e,n,i,r,o,a){js(t,e,n.getModel(\"label\"),n.getModel(\"emphasis.label\"),{labelFetcher:r,labelDataIndex:o,defaultText:wg(r.getData(),o),isRectText:!0,autoColor:i}),nv(t),nv(e)}function nv(t,e){\"outside\"===t.textPosition&&(t.textPosition=e)}tv.extend({type:\"series.bar\",dependencies:[\"grid\",\"polar\"],brushSelector:\"rect\",getProgressive:function(){return!!this.get(\"large\")&&this.get(\"progressive\")},getProgressiveThreshold:function(){var t=this.get(\"progressiveThreshold\"),e=this.get(\"largeThreshold\");return e>t&&(t=e),t}});var iv=$r([[\"fill\",\"color\"],[\"stroke\",\"borderColor\"],[\"lineWidth\",\"borderWidth\"],[\"stroke\",\"barBorderColor\"],[\"lineWidth\",\"barBorderWidth\"],[\"opacity\"],[\"shadowBlur\"],[\"shadowOffsetX\"],[\"shadowOffsetY\"],[\"shadowColor\"]]),rv={getBarItemStyle:function(t){var e=iv(this,t);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(e.lineDash=n)}return e}},ov=[\"itemStyle\",\"barBorderWidth\"];C(pl.prototype,rv),cf({type:\"bar\",render:function(t,e,n){this._updateDrawMode(t);var i=t.get(\"coordinateSystem\");return\"cartesian2d\"===i||\"polar\"===i?this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n):c&&console.warn(\"Only cartesian2d and polar supported for bar.\"),this.group},incrementalPrepareRender:function(t,e,n){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,n,i){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t,e,n){var i,r=this.group,o=t.getData(),a=this._data,s=t.coordinateSystem,l=s.getBaseAxis();\"cartesian2d\"===s.type?i=l.isHorizontal():\"polar\"===s.type&&(i=\"angle\"===l.dim);var u=t.isAnimationEnabled()?t:null;o.diff(a).add(function(e){if(o.hasValue(e)){var n=o.getItemModel(e),a=uv[s.type](o,e,n),l=av[s.type](o,e,n,a,i,u);o.setItemGraphicEl(e,l),r.add(l),hv(l,o,e,n,a,t,i,\"polar\"===s.type)}}).update(function(e,n){var l=a.getItemGraphicEl(n);if(o.hasValue(e)){var h=o.getItemModel(e),c=uv[s.type](o,e,h);l?$s(l,{shape:c},u,e):l=av[s.type](o,e,h,c,i,u,!0),o.setItemGraphicEl(e,l),r.add(l),hv(l,o,e,h,c,t,i,\"polar\"===s.type)}else r.remove(l)}).remove(function(t){var e=a.getItemGraphicEl(t);\"cartesian2d\"===s.type?e&&sv(t,u,e):e&&lv(t,u,e)}).execute(),this._data=o},_renderLarge:function(t,e,n){this._clear(),dv(t,this.group)},_incrementalRenderLarge:function(t,e){dv(e,this.group,!0)},dispose:dt,remove:function(t){this._clear(t)},_clear:function(t){var e=this.group,n=this._data;t&&t.get(\"animation\")&&n&&!this._isLargeDraw?n.eachItemGraphicEl(function(e){\"sector\"===e.type?lv(e.dataIndex,t,e):sv(e.dataIndex,t,e)}):e.removeAll(),this._data=null}});var av={cartesian2d:function(t,e,n,i,r,o,a){var s=new $a({shape:C({},i)});if(o){var l=r?\"height\":\"width\",u={};s.shape[l]=0,u[l]=i[l],sl[a?\"updateProps\":\"initProps\"](s,{shape:u},o,e)}return s},polar:function(t,e,n,i,r,o,a){var s=i.startAngle0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}};function hv(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,\"color\"),u=e.getItemVisual(n,\"opacity\"),h=i.getModel(\"itemStyle\"),c=i.getModel(\"emphasis.itemStyle\").getBarItemStyle();s||t.setShape(\"r\",h.get(\"barBorderRadius\")||0),t.useStyle(L({fill:l,opacity:u},h.getBarItemStyle()));var d=i.getShallow(\"cursor\");d&&t.attr(\"cursor\",d),a?r.height:r.width,s||ev(t.style,c,i,l,o,n),Fs(t,c)}var cv=ya.extend({type:\"largeBar\",shape:{points:[]},buildPath:function(t,e){for(var n=e.points,i=this.__startPoint,r=this.__valueIdx,o=0;o0&&\"scale\"!==u){var d=r.getItemLayout(0),f=Math.max(n.getWidth(),n.getHeight())/2,p=H(a.removeClipPath,a);a.setClipPath(this._createClipPath(d.cx,d.cy,f,d.startAngle,d.clockwise,p,t))}else a.removeClipPath();this._data=r}},dispose:function(){},_createClipPath:function(t,e,n,i,r,o,a){var s=new Fa({shape:{cx:t,cy:e,r0:0,r:n,startAngle:i,endAngle:i,clockwise:r}});return tl(s,{shape:{endAngle:i+(r?1:-1)*Math.PI*2}},a,o),s},containPoint:function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}}});var _v=function(t,e){B(e,function(e){e.update=\"updateView\",ef(e,function(n,i){var r={};return i.eachComponent({mainType:\"series\",subType:t,query:n},function(t){t[e.method]&&t[e.method](n.name,n.dataIndex);var i=t.getData();i.each(function(e){var n=i.getName(e);r[n]=t.isSelected(n)||!1})}),{name:n.name,selected:r}})})},bv=function(t){return{getTargetSeries:function(e){var n={},i=ht();return e.eachSeriesByType(t,function(t){t.__paletteScope=n,i.set(t.uid,t)}),i},reset:function(t,e){var n=t.getRawData(),i={},r=t.getData();r.each(function(t){var e=r.getRawIndex(t);i[e]=t}),n.each(function(e){var o=i[e],a=null!=o&&r.getItemVisual(o,\"color\",!0);if(a)n.setItemVisual(e,\"color\",a);else{var s=n.getItemModel(e).get(\"itemStyle.color\")||t.getColorFromPalette(n.getName(e)||e+\"\",t.__paletteScope,n.count());n.setItemVisual(e,\"color\",s),null!=o&&r.setItemVisual(o,\"color\",s)}})}}},wv=Math.PI/180;function Mv(t,e,n,i,r,o,a){function s(e,n,i,r){for(var o=e;oe&&o+1t[o].y+t[o].height)return void l(o,i/2);l(n-1,i/2)}function l(e,n){for(var i=e;i>=0&&(t[i].y-=n,!(i>0&&t[i].y>t[i-1].y+t[i-1].height));i--);}function u(t,e,n,i,r,o){for(var a=e?Number.MAX_VALUE:0,s=0,l=t.length;s=a&&(d=a-10),!e&&d<=a&&(d=a+10),t[s].x=n+d*o,a=d}}t.sort(function(t,e){return t.y-e.y});for(var h,c=0,d=t.length,f=[],p=[],g=0;g=n?p.push(t[g]):f.push(t[g]);u(f,!1,e,n,i,r),u(p,!0,e,n,i,r)}function Sv(t){return\"center\"===t.position}var Iv=function(t,e,n,i,r){var o,a,s=t.getData(),l=[],u=!1,h=(t.get(\"minShowLabelAngle\")||0)*wv;s.each(function(n){var i=s.getItemLayout(n),r=s.getItemModel(n),c=r.getModel(\"label\"),d=c.get(\"position\")||r.get(\"emphasis.label.position\"),f=r.getModel(\"labelLine\"),p=f.get(\"length\"),g=f.get(\"length2\");if(!(i.angle0?\"left\":\"right\"}var C=c.getFont(),L=c.get(\"rotate\")?b<0?-_+Math.PI:-_:0,k=yi(t.getFormattedLabel(n,\"normal\")||s.getName(n),C,x,\"top\");u=!!L,i.label={x:m,y:v,position:d,height:k.height,len:p,len2:g,linePoints:y,textAlign:x,verticalAlign:\"middle\",rotation:L,inside:M},M||l.push(i.label)}}),!u&&t.get(\"avoidLabelOverlap\")&&function(t,e,n,i,r,o){for(var a=[],s=[],l=0;l=0;s--){var l=2*s,u=i[l]-o/2,h=i[l+1]-a/2;if(t>=u&&e>=h&&t<=u+o&&e<=h+a)return s}return-1}});function Lv(){this.group=new On}var kv=Lv.prototype;function Pv(t,e,n){vg.call(this,t,e,n),this.type=\"value\",this.angle=0,this.name=\"\",this.model}function Ov(t,e,n){this._model=t,this.dimensions=[],this._indicatorAxes=V(t.getIndicatorModels(),function(t,e){var n=\"indicator_\"+e,i=new Pv(n,new ap);return i.name=t.get(\"name\"),i.model=t,t.axis=i,this.dimensions.push(n),i},this),this.resize(t,n),this.cx,this.cy,this.r,this.r0,this.startAngle}kv.isPersistent=function(){return!this._incremental},kv.updateData=function(t){this.group.removeAll();var e=new Cv({rectHover:!0,cursor:\"default\"});e.setShape({points:t.getLayout(\"symbolPoints\")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},kv.updateLayout=function(t){if(!this._incremental){var e=t.getLayout(\"symbolPoints\");this.group.eachChild(function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape(\"points\",e)})}},kv.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new hs({silent:!0})),this.group.add(this._incremental)):this._incremental=null},kv.incrementalUpdate=function(t,e){var n;this._incremental?(n=new Cv,this._incremental.addDisplayable(n,!0)):((n=new Cv({rectHover:!0,cursor:\"default\",startIndex:t.start,endIndex:t.end})).incremental=!0,this.group.add(n)),n.setShape({points:e.getLayout(\"symbolPoints\")}),this._setCommon(n,e,!!this._incremental)},kv._setCommon=function(t,e,n){var i=e.hostModel,r=e.getVisual(\"symbolSize\");t.setShape(\"size\",r instanceof Array?r:[r,r]),t.symbolProxy=Jp(e.getVisual(\"symbol\"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(i.getModel(\"itemStyle\").getItemStyle(o?[\"color\",\"shadowBlur\",\"shadowColor\"]:[\"color\"]));var a=e.getVisual(\"color\");a&&t.setColor(a),n||(t.seriesIndex=i.seriesIndex,t.on(\"mousemove\",function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>=0&&(t.dataIndex=n+(t.startIndex||0))}))},kv.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},kv._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},cf({type:\"scatter\",render:function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i),this._finished=!0},incrementalPrepareRender:function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},incrementalRender:function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var r=sm().reset(t);r.progress&&r.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_updateSymbolDraw:function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new Lv:new Og,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}}),of(am(\"scatter\",\"circle\")),rf(sm(\"scatter\")),E(Pv,vg),Ov.prototype.getIndicatorAxes=function(){return this._indicatorAxes},Ov.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},Ov.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},Ov.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;ln[0]&&isFinite(c)&&isFinite(n[0]))}else{a.getTicks().length-1>r&&(u=o(u));var d=Math.round((n[0]+n[1])/2/u)*u,f=Math.round(r/2);a.setExtent(wl(d-f*u),wl(d+(r-f)*u)),a.setInterval(u)}})},Ov.dimensions=[],Ov.create=function(t,e){var n=[];return t.eachComponent(\"radar\",function(i){var r=new Ov(i,t,e);n.push(r),i.coordinateSystem=r}),t.eachSeriesByType(\"radar\",function(t){\"radar\"===t.get(\"coordinateSystem\")&&(t.coordinateSystem=n[t.get(\"radarIndex\")||0])}),n},Uu.register(\"radar\",Ov);var Nv=gm.valueAxis;function Ev(t,e){return L({show:e},t)}lf({type:\"radar\",optionUpdated:function(){var t=this.get(\"boundaryGap\"),e=this.get(\"splitNumber\"),n=this.get(\"scale\"),i=this.get(\"axisLine\"),r=this.get(\"axisTick\"),o=this.get(\"axisLabel\"),a=this.get(\"name\"),s=this.get(\"name.show\"),l=this.get(\"name.formatter\"),u=this.get(\"nameGap\"),h=this.get(\"triggerEvent\"),c=V(this.get(\"indicator\")||[],function(c){null!=c.max&&c.max>0&&!c.min?c.min=0:null!=c.min&&c.min<0&&!c.max&&(c.max=0);var d=a;if(null!=c.color&&(d=L({color:c.color},a)),c=D(A(c),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:c.text,nameLocation:\"end\",nameGap:u,nameTextStyle:d,triggerEvent:h},!1),s||(c.name=\"\"),\"string\"==typeof l){var f=c.name;c.name=l.replace(\"{value}\",null!=f?f:\"\")}else\"function\"==typeof l&&(c.name=l(c.name,c));var p=C(new pl(c,null,this.ecModel),Hp);return p.mainType=\"radar\",p.componentIndex=this.componentIndex,p},this);this.getIndicatorModels=function(){return c}},defaultOption:{zlevel:0,z:0,center:[\"50%\",\"50%\"],radius:\"75%\",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:\"polygon\",axisLine:D({lineStyle:{color:\"#bbb\"}},Nv.axisLine),axisLabel:Ev(Nv.axisLabel,!1),axisTick:Ev(Nv.axisTick,!1),splitLine:Ev(Nv.splitLine,!0),splitArea:Ev(Nv.splitArea,!0),indicator:[]}});var zv=[\"axisLine\",\"axisTickLabel\",\"axisName\"];uf({type:\"radar\",render:function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var e=t.coordinateSystem;B(V(e.getIndicatorAxes(),function(t){return new Lm(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(t){B(zv,t.add,t),this.group.add(t.getGroup())},this)},_buildSplitLineAndArea:function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get(\"shape\"),r=t.getModel(\"splitLine\"),o=t.getModel(\"splitArea\"),a=r.getModel(\"lineStyle\"),s=o.getModel(\"areaStyle\"),l=r.get(\"show\"),u=o.get(\"show\"),h=a.get(\"color\"),d=s.get(\"color\");h=Y(h)?h:[h],d=Y(d)?d:[d];var f=[],p=[];if(\"circle\"===i)for(var g=n[0].getTicksCoords(),m=e.cx,v=e.cy,y=0;y\"+V(n,function(n,i){var r=e.get(e.mapDimension(n.dim),t);return jl(n.name+\" : \"+r)}).join(\"
\")},defaultOption:{zlevel:0,z:2,coordinateSystem:\"radar\",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:\"solid\"},label:{position:\"top\"},symbol:\"emptyCircle\",symbolSize:4}});function Bv(t){return!isNaN(t[0])&&!isNaN(t[1])}function Vv(t){return[t.cx,t.cy]}cf({type:\"radar\",render:function(t,e,n){var i=t.coordinateSystem,r=this.group,o=t.getData(),a=this._data;function s(t,e){var n=t.getItemVisual(e,\"symbol\")||\"circle\",i=t.getItemVisual(e,\"color\");if(\"none\"!==n){var r=function(t){return Y(t)||(t=[+t,+t]),t}(t.getItemVisual(e,\"symbolSize\")),o=Jp(n,-1,-1,2,2,i);return o.attr({style:{strokeNoScale:!0},z2:100,scale:[r[0]/2,r[1]/2]}),o}}function l(e,n,i,r,o,a){i.removeAll();for(var l=0;l\"+jl(i+\" : \"+n)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:\"geo\",map:\"\",left:\"center\",top:\"center\",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:\"#000\"},itemStyle:{borderWidth:.5,borderColor:\"#444\",areaColor:\"#eee\"},emphasis:{label:{show:!0,color:\"rgb(100,0,0)\"},itemStyle:{areaColor:\"rgba(255,215,0,0.8)\"}}}}),pv);var ny=\"\\0_ec_interaction_mutex\";function iy(t,e){return!!ry(t)[e]}function ry(t){return t[ny]||(t[ny]={})}function oy(t){this.pointerChecker,this._zr=t,this._opt={};var e=H,n=e(ay,this),i=e(sy,this),r=e(ly,this),o=e(uy,this),a=e(hy,this);Ft.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,s){this.disable(),this._opt=L(A(s)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&\"move\"!==e&&\"pan\"!==e||(t.on(\"mousedown\",n),t.on(\"mousemove\",i),t.on(\"mouseup\",r)),!0!==e&&\"scale\"!==e&&\"zoom\"!==e||(t.on(\"mousewheel\",o),t.on(\"pinch\",a))},this.disable=function(){t.off(\"mousedown\",n),t.off(\"mousemove\",i),t.off(\"mouseup\",r),t.off(\"mousewheel\",o),t.off(\"pinch\",a)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function ay(t){if(!(Kt(t)||t.target&&t.target.draggable)){var e=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0)}}function sy(t){if(this._dragging&&fy(\"moveOnMouseMove\",t,this._opt)&&\"pinch\"!==t.gestureEvent&&!iy(this._zr,\"globalPan\")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,o=e-i,a=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&qt(t.event),dy(this,\"pan\",\"moveOnMouseMove\",t,{dx:o,dy:a,oldX:i,oldY:r,newX:e,newY:n})}}function ly(t){Kt(t)||(this._dragging=!1)}function uy(t){var e=fy(\"zoomOnMouseWheel\",t,this._opt),n=fy(\"moveOnMouseWheel\",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1;cy(this,\"zoom\",\"zoomOnMouseWheel\",t,{scale:i>0?s:1/s,originX:o,originY:a})}if(n){var l=Math.abs(i);cy(this,\"scrollMove\",\"moveOnMouseWheel\",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a})}}}function hy(t){iy(this._zr,\"globalPan\")||cy(this,\"zoom\",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY})}function cy(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(qt(i.event),dy(t,e,n,i,r))}function dy(t,e,n,i,r){r.isAvailableBehavior=H(fy,null,n,i),t.trigger(e,r)}function fy(t,e,n){var i=n[t];return!t||i&&(!U(i)||e.event[i+\"Key\"])}function py(t,e,n){var i=t.target,r=i.position;r[0]+=e,r[1]+=n,i.dirty()}function gy(t,e,n,i){var r=t.target,o=t.zoomLimit,a=r.position,s=r.scale,l=t.zoom=t.zoom||1;if(l*=e,o){var u=o.min||0,h=o.max||1/0;l=Math.max(Math.min(h,l),u)}var c=l/t.zoom;t.zoom=l,a[0]-=(n-a[0])*(c-1),a[1]-=(i-a[1])*(c-1),s[0]*=c,s[1]*=c,r.dirty()}ef({type:\"takeGlobalCursor\",event:\"globalCursorTaken\",update:\"update\"},function(){}),z(oy,Ft);var my={axisPointer:1,tooltip:1,brush:1};function vy(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!my[i.mainType]&&r&&r.model!==n}function yy(t,e){var n=t.getItemStyle(),i=t.get(\"areaColor\");return null!=i&&(n.fill=i),n}function xy(t,e){e.eachChild(function(e){B(e.__regions,function(n){e.trigger(t.isSelected(n.name)?\"emphasis\":\"normal\")})})}function _y(t,e){var n=new On;this.uid=yl(\"ec_map_draw\"),this._controller=new oy(t.getZr()),this._controllerHost={target:e?n:null},this.group=n,this._updateGroup=e,this._mouseDownFlag,this._mapName,this._initialized,n.add(this._regionsGroup=new On),n.add(this._backgroundGroup=new On)}_y.prototype={constructor:_y,draw:function(t,e,n,i,r){var o=\"geo\"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:\"series\",subType:\"map\"},function(e){a||e.getHostGeoModel()!==t||(a=e.getData())});var s=t.coordinateSystem;this._updateBackground(s);var l=this._regionsGroup,u=this.group,h=s.scale,c={position:s.position,scale:h};!l.childAt(0)||r?u.attr(c):$s(u,c,t),l.removeAll();var d=[\"itemStyle\"],f=[\"emphasis\",\"itemStyle\"],p=[\"label\"],g=[\"emphasis\",\"label\"],m=ht();B(s.regions,function(e){var n=m.get(e.name)||m.set(e.name,new On),i=new as({shape:{paths:[]}});n.add(i);var r,s=(T=t.getRegionModel(e.name)||t).getModel(d),u=T.getModel(f),c=yy(s),v=yy(u),y=T.getModel(p),x=T.getModel(g);if(a){r=a.indexOfName(e.name);var _=a.getItemVisual(r,\"color\",!0);_&&(c.fill=_)}B(e.geometries,function(t){if(\"polygon\"===t.type){i.shape.paths.push(new Za({shape:{points:t.exterior}}));for(var e=0;e<(t.interiors?t.interiors.length:0);e++)i.shape.paths.push(new Za({shape:{points:t.interiors[e]}}))}}),i.setStyle(c),i.style.strokeNoScale=!0,i.culling=!0;var b=y.get(\"show\"),w=x.get(\"show\"),M=a&&isNaN(a.get(a.mapDimension(\"value\"),r)),S=a&&a.getItemLayout(r);if(o||M&&(b||w)||S&&S.showLabel){var I,A=o?e.name:r;(!a||r>=0)&&(I=t);var D=new za({position:e.center.slice(),scale:[1/h[0],1/h[1]],z2:10,silent:!0});js(D.style,D.hoverStyle={},y,x,{labelFetcher:I,labelDataIndex:A,defaultText:e.name,useInsideStyle:!1},{textAlign:\"center\",textVerticalAlign:\"middle\"}),n.add(D)}if(a)a.setItemGraphicEl(r,n);else{var T=t.getRegionModel(e.name);i.eventData={componentType:\"geo\",componentIndex:t.componentIndex,geoIndex:t.componentIndex,name:e.name,region:T&&T.option||{}}}(n.__regions||(n.__regions=[])).push(e),n.highDownSilentOnTouch=!!t.get(\"selectedMode\"),Fs(n,v),l.add(n)}),this._updateController(t,e,n),function(t,e,n,i,r){n.off(\"click\"),n.off(\"mousedown\"),e.get(\"selectedMode\")&&(n.on(\"mousedown\",function(){t._mouseDownFlag=!0}),n.on(\"click\",function(o){if(t._mouseDownFlag){t._mouseDownFlag=!1;for(var a=o.target;!a.__regions;)a=a.parent;if(a){var s={type:(\"geo\"===e.mainType?\"geo\":\"map\")+\"ToggleSelect\",batch:V(a.__regions,function(t){return{name:t.name,from:r.uid}})};s[e.mainType+\"Id\"]=e.id,i.dispatchAction(s),xy(e,n)}}}))}(this,t,l,n,i),xy(t,l)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&$v.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(t){var e=t.map;this._mapName!==e&&B($v.makeGraphic(e,this.uid),function(t){this._backgroundGroup.add(t)},this),this._mapName=e},_updateController:function(t,e,n){var i=t.coordinateSystem,r=this._controller,o=this._controllerHost;o.zoomLimit=t.get(\"scaleLimit\"),o.zoom=i.getZoom(),r.enable(t.get(\"roam\")||!1);var a=t.mainType;function s(){var e={type:\"geoRoam\",componentType:a};return e[a+\"Id\"]=t.id,e}r.off(\"pan\").on(\"pan\",function(t){this._mouseDownFlag=!1,py(o,t.dx,t.dy),n.dispatchAction(C(s(),{dx:t.dx,dy:t.dy}))},this),r.off(\"zoom\").on(\"zoom\",function(t){if(this._mouseDownFlag=!1,gy(o,t.scale,t.originX,t.originY),n.dispatchAction(C(s(),{zoom:t.scale,originX:t.originX,originY:t.originY})),this._updateGroup){var e=this.group.scale;this._regionsGroup.traverse(function(t){\"text\"===t.type&&t.attr(\"scale\",[1/e[0],1/e[1]])})}},this),r.setPointerChecker(function(e,r,o){return i.getViewRectAfterRoam().contain(r,o)&&!vy(e,n,t)})}};var by=\"__seriesMapHighDown\",wy=\"__seriesMapCallKey\";function My(t){var e=this[by];e&&e.recordVersion===this[wy]&&Sy(e,t)}function Sy(t,e){var n=t.circle,i=t.labelModel,r=t.hoverLabelModel,o=t.emphasisText,a=t.normalText;e?(n.style.extendFrom(Ys({},r,{text:r.get(\"show\")?o:null},{isRectText:!0,useInsideStyle:!1},!0)),n.__mapOriginalZ2=n.z2,n.z2+=gs):(Ys(n.style,i,{text:i.get(\"show\")?a:null,textPosition:i.getShallow(\"position\")||\"bottom\"},{isRectText:!0,useInsideStyle:!1}),n.dirty(!1),null!=n.__mapOriginalZ2&&(n.z2=n.__mapOriginalZ2,n.__mapOriginalZ2=null))}function Iy(t,e,n){var i=t.getZoom(),r=t.getCenter(),o=e.zoom,a=t.dataToPoint(r);if(null!=e.dx&&null!=e.dy&&(a[0]-=e.dx,a[1]-=e.dy,r=t.pointToData(a),t.setCenter(r)),null!=o){if(n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(i*o,l),s)/i}t.scale[0]*=o,t.scale[1]*=o;var u=t.position,h=(e.originX-u[0])*(o-1),c=(e.originY-u[1])*(o-1);u[0]-=h,u[1]-=c,t.updateTransform(),r=t.pointToData(a),t.setCenter(r),t.setZoom(o*i)}return{center:t.getCenter(),zoom:t.getZoom()}}cf({type:\"map\",render:function(t,e,n,i){if(!i||\"mapToggleSelect\"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){if(i&&\"geoRoam\"===i.type&&\"series\"===i.componentType&&i.seriesId===t.id)(o=this._mapDraw)&&r.add(o.group);else if(t.needsDrawMap){var o=this._mapDraw||new _y(n,!0);r.add(o.group),o.draw(t,e,n,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get(\"showLegendSymbol\")&&e.getComponent(\"legend\")&&this._renderSymbols(t,e,n)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,e,n){var i=t.originalData,r=this.group;i.each(i.mapDimension(\"value\"),function(e,n){if(!isNaN(e)){var o=i.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new Ra({style:{fill:t.getData().getVisual(\"color\")},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:gs+1)});if(!s){var u=t.mainSeries.getData(),h=i.getName(n),c=u.indexOfName(h),d=i.getItemModel(n),f=d.getModel(\"label\"),p=d.getModel(\"emphasis.label\"),g=u.getItemGraphicEl(c),m=tt(t.getFormattedLabel(c,\"normal\"),h),v=tt(t.getFormattedLabel(c,\"emphasis\"),m),y=g[by],x=Math.random();if(!y){y=g[by]={};var _=j(My,!0),b=j(My,!1);g.on(\"mouseover\",_).on(\"mouseout\",b).on(\"emphasis\",_).on(\"normal\",b)}g[wy]=x,C(y,{recordVersion:x,circle:l,labelModel:f,hoverLabelModel:p,emphasisText:v,normalText:m}),Sy(y,!1)}r.add(l)}}})}}),ef({type:\"geoRoam\",event:\"geoRoam\",update:\"updateTransform\"},function(t,e){var n=t.componentType||\"series\";e.eachComponent({mainType:n,query:t},function(e){var i=e.coordinateSystem;if(\"geo\"===i.type){var r=Iy(i,t,e.get(\"scaleLimit\"));e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom),\"series\"===n&&B(e.seriesGroup,function(t){t.setCenter(r.center),t.setZoom(r.zoom)})}})});var Ay=Ot;function Dy(){_e.call(this)}function Ty(t){this.name=t,this.zoomLimit,_e.call(this),this._roamTransformable=new Dy,this._rawTransformable=new Dy,this._center,this._zoom}function Cy(t,e,n,i){var r=n.seriesModel,o=r?r.coordinateSystem:null;return o===this?o[t](i):null}function Ly(t,e,n,i){Ty.call(this,t),this.map=e;var r=$v.load(e,n);this._nameCoordMap=r.nameCoordMap,this._regionsMap=r.regionsMap,this._invertLongitute=null==i||i,this.regions=r.regions,this._rect=r.boundingRect}function ky(t,e,n,i){var r=n.geoModel,o=n.seriesModel,a=r?r.coordinateSystem:o?o.coordinateSystem||(o.getReferringComponents(\"geo\")[0]||{}).coordinateSystem:null;return a===this?a[t](i):null}function Py(t,e){var n=t.get(\"boundingCoords\");if(null!=n){var i=n[0],r=n[1];isNaN(i[0])||isNaN(i[1])||isNaN(r[0])||isNaN(r[1])?c&&console.error(\"Invalid boundingCoords\"):this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}var o,a=this.getBoundingRect(),s=t.get(\"layoutCenter\"),l=t.get(\"layoutSize\"),u=e.getWidth(),h=e.getHeight(),d=a.width/a.height*this.aspectScale,f=!1;if(s&&l&&(s=[bl(s[0],u),bl(s[1],h)],l=bl(l,Math.min(u,h)),isNaN(s[0])||isNaN(s[1])||isNaN(l)?c&&console.warn(\"Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead.\"):f=!0),f){var p={};d>1?(p.width=l,p.height=l/d):(p.height=l,p.width=l*d),p.y=s[1]-p.height/2,p.x=s[0]-p.width/2}else(o=t.getBoxLayoutParams()).aspect=d,p=su(o,{width:u,height:h});this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(t.get(\"center\")),this.setZoom(t.get(\"zoom\"))}function Oy(t,e){B(e.get(\"geoCoord\"),function(e,n){t.addGeoCoord(n,e)})}z(Dy,_e),Ty.prototype={constructor:Ty,type:\"view\",dimensions:[\"x\",\"y\"],setBoundingRect:function(t,e,n,i){return this._rect=new Pn(t,e,n,i),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,n,i){this.transformTo(t,e,n,i),this._viewRect=new Pn(t,e,n,i)},transformTo:function(t,e,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new Pn(t,e,n,i)),o.decomposeTransform(),this._updateTransform()},setCenter:function(t){t&&(this._center=t,this._updateCenterAndZoom())},setZoom:function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=Ot([],i,t),n=Ot([],n,t),e.origin=i,e.position=[n[0]-i[0],n[1]-i[1]],e.scale=[r,r],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),ue(this.transform||(this.transform=[]),e.transform||se()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],pe(this.invTransform,this.transform),this.decomposeTransform()},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,e,n){var i=e?this._rawTransform:this.transform;return n=n||[],i?Ay(n,t,i):mt(n,t)},pointToData:function(t){var e=this.invTransform;return e?Ay([],t,e):[t[0],t[1]]},convertToPixel:j(Cy,\"dataToPoint\"),convertFromPixel:j(Cy,\"pointToData\"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},z(Ty,_e),Ly.prototype={constructor:Ly,type:\"geo\",dimensions:[\"lng\",\"lat\"],containCoord:function(t){for(var e=this.regions,n=0;n=0;){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,u=o.hierNode.modifier,h=a.hierNode.modifier,c=s.hierNode.modifier;s=Qy(s),o=Jy(o),s&&o;){r=Qy(r),a=Jy(a),r.hierNode.ancestor=t;var d=s.hierNode.prelim+c-o.hierNode.prelim-u+i(s,o);d>0&&(tx($y(s,t,n),t,d),u+=d,l+=d),c+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,h+=a.hierNode.modifier}s&&!Qy(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=c-l),o&&!Jy(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-h,n=t)}return n}(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function Xy(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function qy(t){return arguments.length?t:ex}function Ky(t,e){var n={};return t-=Math.PI/2,n.x=e*Math.cos(t),n.y=e*Math.sin(t),n}function Qy(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function Jy(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function $y(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function tx(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function ex(t,e){return t.parentNode===e.parentNode?1:2}function nx(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)&&\"none\"!==t.getItemVisual(e,\"symbol\")}function ix(t,e,n){return n.itemModel=e,n.itemStyle=e.getModel(\"itemStyle\").getItemStyle(),n.hoverItemStyle=e.getModel(\"emphasis.itemStyle\").getItemStyle(),n.lineStyle=e.getModel(\"lineStyle\").getLineStyle(),n.labelModel=e.getModel(\"label\"),n.hoverLabelModel=e.getModel(\"emphasis.label\"),!1===t.isExpand&&0!==t.children.length?n.symbolInnerColor=n.itemStyle.fill:n.symbolInnerColor=\"#fff\",n}function rx(t,e,n,i,r,o){var a=!n,s=t.tree.getNodeByDataIndex(e),l=s.getModel(),u=(o=ix(s,l,o),t.tree.root),h=s.parentNode===u?s:s.parentNode||s,c=t.getItemGraphicEl(h.dataIndex),d=h.getLayout(),f=c?{x:c.position[0],y:c.position[1],rawX:c.__radialOldRawX,rawY:c.__radialOldRawY}:d,p=s.getLayout();a?(n=new Mg(t,e,o)).attr(\"position\",[f.x,f.y]):n.updateData(t,e,o),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=p.rawX,n.__radialRawY=p.rawY,i.add(n),t.setItemGraphicEl(e,n),$s(n,{position:[p.x,p.y]},r);var g=n.getSymbolPath();if(\"radial\"===o.layout){var m,v,y=u.children[0],x=y.getLayout(),_=y.children.length;if(p.x===x.x&&!0===s.isExpand){var b={};b.x=(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,b.y=(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2,(m=Math.atan2(b.y-x.y,b.x-x.x))<0&&(m=2*Math.PI+m),(v=b.xx.x)||(m-=Math.PI);var w=v?\"left\":\"right\";g.setStyle({textPosition:w,textRotation:-m,textOrigin:\"center\",verticalAlign:\"middle\"})}if(s.parentNode&&s.parentNode!==u){var M=n.__edge;M||(M=n.__edge=new rs({shape:ax(o,f,f),style:L({opacity:0,strokeNoScale:!0},o.lineStyle)})),$s(M,{shape:ax(o,d,p),style:{opacity:1}},r),i.add(M)}}function ox(t,e,n,i,r,o){for(var a,s=t.tree.getNodeByDataIndex(e),l=t.tree.root,u=s.getModel(),h=(o=ix(s,u,o),s.parentNode===l?s:s.parentNode||s);null==(a=h.getLayout());)h=h.parentNode===l?h:h.parentNode||h;$s(n,{position:[a.x+1,a.y+1]},r,function(){i.remove(n),t.setItemGraphicEl(e,null)}),n.fadeOut(null,{keepLabel:!0});var c=n.__edge;c&&$s(c,{shape:ax(o,a,a),style:{opacity:0}},r,function(){i.remove(c)})}function ax(t,e,n){var i,r,o,a,s,l,u,h,c=t.orient;if(\"radial\"===t.layout){s=e.rawX,u=e.rawY,l=n.rawX,h=n.rawY;var d=Ky(s,u),f=Ky(s,u+(h-u)*t.curvature),p=Ky(l,h+(u-h)*t.curvature),g=Ky(l,h);return{x1:d.x,y1:d.y,x2:g.x,y2:g.y,cpx1:f.x,cpy1:f.y,cpx2:p.x,cpy2:p.y}}return s=e.x,u=e.y,l=n.x,h=n.y,\"LR\"!==c&&\"RL\"!==c||(i=s+(l-s)*t.curvature,r=u,o=l+(s-l)*t.curvature,a=h),\"TB\"!==c&&\"BT\"!==c||(i=s,r=u+(h-u)*t.curvature,o=l,a=h+(u-h)*t.curvature),{x1:s,y1:u,x2:l,y2:h,cpx1:i,cpy1:r,cpx2:o,cpy2:a}}function sx(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function lx(t,e,n){if(t&&N(e,t.type)>=0){var i=n.getData().tree.root,r=t.targetNode;if(\"string\"==typeof r&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function ux(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function hx(t,e){return N(ux(t),e)>=0}function cx(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}Yy.prototype={constructor:Yy,isRemoved:function(){return this.dataIndex<0},eachNode:function(t,e,n){\"function\"==typeof t&&(n=e,e=t,t=null),U(t=t||{})&&(t={order:t});var i,r=t.order||\"preorder\",o=this[t.attr||\"children\"];\"preorder\"===r&&(i=e.call(n,this));for(var a=0;!i&&ae&&(e=i.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var e,n=this.hostTree,i=n.data.getItemModel(this.dataIndex),r=this.getLevelModel();return r||0!==this.children.length&&(0===this.children.length||!1!==this.isExpand)||(e=this.getLeavesModel()),i.getModel(t,(r||e||n.hostModel).getModel(t))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},getLeavesModel:function(){return this.hostTree.leavesModel},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},isDescendantOf:function(t){return t!==this&&t.isAncestorOf(this)}},Zy.prototype={constructor:Zy,type:\"tree\",eachNode:function(t,e,n){this.root.eachNode(t,e,n)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;no&&(o=t.depth)});var a=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return r.root.eachNode(\"preorder\",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a}),r.data},getOrient:function(){var t=this.get(\"orient\");return\"horizontal\"===t?t=\"LR\":\"vertical\"===t&&(t=\"TB\"),t},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},formatTooltip:function(t){for(var e=this.getData().tree,n=e.root.children[0],i=e.getNodeByDataIndex(t),r=i.getValue(),o=i.name;i&&i!==n;)o=i.parentNode.name+\".\"+o,i=i.parentNode;return jl(o+(isNaN(r)||null==r?\"\":\" : \"+r))},defaultOption:{zlevel:0,z:2,coordinateSystem:\"view\",left:\"12%\",top:\"12%\",right:\"12%\",bottom:\"12%\",layout:\"orthogonal\",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:\"LR\",symbol:\"emptyCircle\",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:\"#ccc\",width:1.5,curveness:.5},itemStyle:{color:\"lightsteelblue\",borderColor:\"#c23531\",borderWidth:1.5},label:{show:!0,color:\"#555\"},leaves:{label:{show:!0}},animationEasing:\"linear\",animationDuration:700,animationDurationUpdate:1e3}}),cf({type:\"tree\",init:function(t,e){this._oldTree,this._mainGroup=new On,this._controller=new oy(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(t,e,n,i){var r=t.getData(),o=t.layoutInfo,a=this._mainGroup,s=t.get(\"layout\");\"radial\"===s?a.attr(\"position\",[o.x+o.width/2,o.y+o.height/2]):a.attr(\"position\",[o.x,o.y]),this._updateViewCoordSys(t),this._updateController(t,e,n);var l=this._data,u={expandAndCollapse:t.get(\"expandAndCollapse\"),layout:s,orient:t.getOrient(),curvature:t.get(\"lineStyle.curveness\"),symbolRotate:t.get(\"symbolRotate\"),symbolOffset:t.get(\"symbolOffset\"),hoverAnimation:t.get(\"hoverAnimation\"),useNameLabel:!0,fadeIn:!0};r.diff(l).add(function(e){nx(r,e)&&rx(r,e,null,a,t,u)}).update(function(e,n){var i=l.getItemGraphicEl(n);nx(r,e)?rx(r,e,i,a,t,u):i&&ox(l,n,i,a,t,u)}).remove(function(e){var n=l.getItemGraphicEl(e);n&&ox(l,e,n,a,t,u)}).execute(),this._nodeScaleRatio=t.get(\"nodeScaleRatio\"),this._updateNodeAndLinkScale(t),!0===u.expandAndCollapse&&r.eachItemGraphicEl(function(e,i){e.off(\"click\").on(\"click\",function(){n.dispatchAction({type:\"treeExpandAndCollapse\",seriesId:t.id,dataIndex:i})})}),this._data=r},_updateViewCoordSys:function(t){var e=t.getData(),n=[];e.each(function(t){var i=e.getItemLayout(t);!i||isNaN(i.x)||isNaN(i.y)||n.push([+i.x,+i.y])});var i=[],r=[];Po(n,i,r),r[0]-i[0]==0&&(r[0]+=1,i[0]-=1),r[1]-i[1]==0&&(r[1]+=1,i[1]-=1);var o=t.coordinateSystem=new Ty;o.zoomLimit=t.get(\"scaleLimit\"),o.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1]),o.setCenter(t.get(\"center\")),o.setZoom(t.get(\"zoom\")),this.group.attr({position:o.position,scale:o.scale}),this._viewCoordSys=o},_updateController:function(t,e,n){var i=this._controller,r=this._controllerHost,o=this.group;i.setPointerChecker(function(e,i,r){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(i,r)&&!vy(e,n,t)}),i.enable(t.get(\"roam\")),r.zoomLimit=t.get(\"scaleLimit\"),r.zoom=t.coordinateSystem.getZoom(),i.off(\"pan\").off(\"zoom\").on(\"pan\",function(e){py(r,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:\"treeRoam\",dx:e.dx,dy:e.dy})},this).on(\"zoom\",function(e){gy(r,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:\"treeRoam\",zoom:e.scale,originX:e.originX,originY:e.originY}),this._updateNodeAndLinkScale(t)},this)},_updateNodeAndLinkScale:function(t){var e=t.getData(),n=this._getNodeGlobalScale(t),i=[n,n];e.eachItemGraphicEl(function(t,e){t.attr(\"scale\",i)})},_getNodeGlobalScale:function(t){var e=t.coordinateSystem;if(\"view\"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scale,r=i&&i[0]||1;return((e.getZoom()-1)*n+1)/r},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}}),ef({type:\"treeExpandAndCollapse\",event:\"treeExpandAndCollapse\",update:\"update\"},function(t,e){e.eachComponent({mainType:\"series\",subType:\"tree\",query:t},function(e){var n=t.dataIndex,i=e.getData().tree.getNodeByDataIndex(n);i.isExpand=!i.isExpand})}),ef({type:\"treeRoam\",event:\"treeRoam\",update:\"none\"},function(t,e){e.eachComponent({mainType:\"series\",subType:\"tree\",query:t},function(e){var n=Iy(e.coordinateSystem,t);e.setCenter&&e.setCenter(n.center),e.setZoom&&e.setZoom(n.zoom)})}),of(am(\"tree\",\"circle\")),rf(function(t,e){t.eachSeriesByType(\"tree\",function(t){!function(t,e){var n=function(t,e){return su(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=n;var i=t.get(\"layout\"),r=0,o=0,a=null;\"radial\"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=qy(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(r=n.width,o=n.height,a=qy());var s=t.getData().tree.root,l=s.children[0];if(l){!function(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e,n,i=[t];e=i.pop();)if(n=e.children,e.isExpand&&n.length)for(var r=n.length-1;r>=0;r--){var o=n[r];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},i.push(o)}}(s),function(t,e,n){for(var i,r=[t],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;sh.getLayout().x&&(h=t),t.depth>c.depth&&(c=t)});var d=u===h?1:a(u,h)/2,f=d-u.getLayout().x,p=0,g=0,m=0,v=0;if(\"radial\"===i)p=r/(h.getLayout().x+d+f),g=o/(c.depth-1||1),sx(l,function(t){m=(t.getLayout().x+f)*p,v=(t.depth-1)*g;var e=Ky(m,v);t.setLayout({x:e.x,y:e.y,rawX:m,rawY:v},!0)});else{var y=t.getOrient();\"RL\"===y||\"LR\"===y?(g=o/(h.getLayout().x+d+f),p=r/(c.depth-1||1),sx(l,function(t){v=(t.getLayout().x+f)*g,m=\"LR\"===y?(t.depth-1)*p:r-(t.depth-1)*p,t.setLayout({x:m,y:v},!0)})):\"TB\"!==y&&\"BT\"!==y||(p=r/(h.getLayout().x+d+f),g=o/(c.depth-1||1),sx(l,function(t){m=(t.getLayout().x+f)*p,v=\"TB\"===y?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:m,y:v},!0)}))}}}(t,e)})}),Vh.extend({type:\"series.treemap\",layoutMode:\"box\",dependencies:[\"grid\",\"polar\"],_viewRoot:null,defaultOption:{progressive:0,hoverLayerThreshold:1/0,left:\"center\",top:\"middle\",right:null,bottom:null,width:\"80%\",height:\"80%\",sort:!0,clipWindow:\"origin\",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:\"▶\",zoomToNodeRatio:.1024,roam:!0,nodeClick:\"zoomToNode\",animation:!0,animationDurationUpdate:900,animationEasing:\"quinticInOut\",breadcrumb:{show:!0,height:22,left:\"center\",top:\"bottom\",emptyItemWidth:25,itemStyle:{color:\"rgba(0,0,0,0.7)\",borderColor:\"rgba(255,255,255,0.7)\",borderWidth:1,shadowColor:\"rgba(150,150,150,1)\",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:\"#fff\"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:\"inside\",color:\"#fff\",ellipsis:!0},upperLabel:{show:!1,position:[0,\"50%\"],height:20,color:\"#fff\",ellipsis:!0,verticalAlign:\"middle\"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:\"#fff\",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,\"50%\"],color:\"#fff\",ellipsis:!0,verticalAlign:\"middle\"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:\"index\",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(t,e){var n={name:t.name,children:t.data};!function t(e){var n=0;B(e.children,function(e){t(e);var i=e.value;Y(i)&&(i=i[0]),n+=i});var i=e.value;Y(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=n),i<0&&(i=0),Y(e.value)?e.value[0]=i:e.value=i}(n);var i=t.levels||[];i=t.levels=function(t,e){var n,i=e.get(\"color\");if(i)return B(t=t||[],function(t){var e=new pl(t),i=e.get(\"color\");(e.get(\"itemStyle.color\")||i&&\"none\"!==i)&&(n=!0)}),n||((t[0]||(t[0]={})).color=i.slice()),t}(i,e);var r={};return r.levels=i,Zy.createTree(n,this,r).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var e=this.getData(),n=this.getRawValue(t),i=Y(n)?Vl(n[0]):Vl(n);return jl(e.getName(t)+\": \"+i)},getDataParams:function(t){var e=Vh.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=cx(n,this),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},C(this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=ht(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});var dx=5;function fx(t){this.group=new On,t.add(this.group)}function px(t,e,n,i,r,o){var a=[[r?t:t-dx,e],[t+n,e],[t+n,e+i],[r?t:t-dx,e+i]];return!o&&a.splice(2,0,[t+n+dx,e+i/2]),!r&&a.push([t,e+i/2]),a}function gx(t,e,n){t.eventData={componentType:\"series\",componentSubType:\"treemap\",componentIndex:e.componentIndex,seriesIndex:e.componentIndex,seriesName:e.name,seriesType:\"treemap\",selfType:\"breadcrumb\",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&cx(n,e)}}fx.prototype={constructor:fx,render:function(t,e,n,i){var r=t.getModel(\"breadcrumb\"),o=this.group;if(o.removeAll(),r.get(\"show\")&&n){var a=r.getModel(\"itemStyle\"),s=a.getModel(\"textStyle\"),l={pos:{left:r.get(\"left\"),right:r.get(\"right\"),top:r.get(\"top\"),bottom:r.get(\"bottom\")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get(\"emptyItemWidth\"),totalWidth:0,renderList:[]};this._prepare(n,l,s),this._renderContent(t,l,a,s,i),lu(o,l.pos,l.box)}},_prepare:function(t,e,n){for(var i=t;i;i=i.parentNode){var r=i.getModel().get(\"name\"),o=n.getTextRect(r),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:i,text:r,width:a})}},_renderContent:function(t,e,n,i,r){for(var o,a,s,l,u,h,c,d,f,p=0,g=e.emptyItemWidth,m=t.get(\"breadcrumb.height\"),v=(o=e.pos,a=e.box,l=a.width,u=a.height,h=bl(o.x,l),c=bl(o.y,u),d=bl(o.x2,l),f=bl(o.y2,u),(isNaN(h)||isNaN(parseFloat(o.x)))&&(h=0),(isNaN(d)||isNaN(parseFloat(o.x2)))&&(d=l),(isNaN(c)||isNaN(parseFloat(o.y)))&&(c=0),(isNaN(f)||isNaN(parseFloat(o.y2)))&&(f=u),s=Gl(s||0),{width:Math.max(d-h-s[1]-s[3],0),height:Math.max(f-c-s[0]-s[2],0)}),y=e.totalWidth,x=e.renderList,_=x.length-1;_>=0;_--){var b=x[_],w=b.node,M=b.width,S=b.text;y>v.width&&(y-=M-g,M=g,S=null);var I=new Za({shape:{points:px(p,0,M,m,_===x.length-1,0===_)},style:L(n.getItemStyle(),{lineJoin:\"bevel\",text:S,textFill:i.getTextColor(),textFont:i.getFont()}),z:10,onclick:j(r,w)});this.group.add(I),gx(I,t,w),p+=M+8}},remove:function(){this.group.removeAll()}};var mx=H,vx=On,yx=$a,xx=B,_x=[\"label\"],bx=[\"emphasis\",\"label\"],Mx=[\"upperLabel\"],Sx=[\"emphasis\",\"upperLabel\"],Ix=10,Ax=1,Dx=2,Tx=$r([[\"fill\",\"color\"],[\"stroke\",\"strokeColor\"],[\"lineWidth\",\"strokeWidth\"],[\"shadowBlur\"],[\"shadowOffsetX\"],[\"shadowOffsetY\"],[\"shadowColor\"]]),Cx=function(t){var e=Tx(t);return e.stroke=e.fill=e.lineWidth=null,e};function Lx(t,e,n,i,r,o,a,s,l,u){if(a){var h=a.getLayout();if(h&&h.isInView){var c=h.width,d=h.height,f=h.borderWidth,p=h.invisible,g=a.getRawIndex(),m=s&&s.getRawIndex(),v=a.viewChildren,y=h.upperHeight,x=v&&v.length,_=a.getModel(\"itemStyle\"),b=a.getModel(\"emphasis.itemStyle\"),w=T(\"nodeGroup\",vx);if(w){if(l.add(w),w.attr(\"position\",[h.x||0,h.y||0]),w.__tmNodeWidth=c,w.__tmNodeHeight=d,h.isAboveViewRoot)return w;var M=T(\"background\",yx,u,Ax);if(M&&function(e,n,i){n.dataIndex=a.dataIndex,n.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:c,height:d});var r=a.getVisual(\"borderColor\",!0),o=b.get(\"borderColor\");I(n,function(){var t=Cx(_);t.fill=r;var e=Tx(b);if(e.fill=o,i){var a=c-2*f;D(t,e,r,a,y,{x:f,y:0,width:a,height:y})}else t.text=e.text=null;n.setStyle(t),Fs(n,e)}),e.add(n)}(w,M,x&&h.upperHeight),!x){var S=T(\"content\",yx,u,Dx);S&&function(e,n){n.dataIndex=a.dataIndex,n.seriesIndex=t.seriesIndex;var i=Math.max(c-2*f,0),r=Math.max(d-2*f,0);n.culling=!0,n.setShape({x:f,y:f,width:i,height:r});var o=a.getVisual(\"color\",!0);I(n,function(){var t=Cx(_);t.fill=o;var e=Tx(b);D(t,e,o,i,r),n.setStyle(t),Fs(n,e)}),e.add(n)}(w,S)}return w}}}function I(t,e){p?!t.invisible&&o.push(t):(e(),t.__tmWillVisible||(t.invisible=!1))}function D(e,n,i,r,o,s){var l=a.getModel(),u=$(t.getFormattedLabel(a.dataIndex,\"normal\",null,null,s?\"upperLabel\":\"label\"),l.get(\"name\"));if(!s&&h.isLeafRoot){var c=t.get(\"drillDownIcon\",!0);u=c?c+\" \"+u:u}var d=l.getModel(s?Mx:_x),f=l.getModel(s?Sx:bx),p=d.getShallow(\"show\");js(e,n,d,f,{defaultText:p?u:null,autoColor:i,isRectText:!0}),s&&(e.textRect=A(s)),e.truncate=p&&d.get(\"ellipsis\")?{outerWidth:r,outerHeight:o,minChar:2}:null}function T(t,o,s,l){var u=null!=m&&n[t][m],h=r[t];return u?(n[t][m]=null,function(t,e,n){(t[g]={}).old=\"nodeGroup\"===n?e.position.slice():C({},e.shape)}(h,u,t)):p||((u=new o({z:kx(s,l)})).__tmDepth=s,u.__tmStorageName=t,function(t,e,n){var o=t[g]={},s=a.parentNode;if(s&&(!i||\"drillDown\"===i.direction)){var l=0,u=0,h=r.background[s.getRawIndex()];!i&&h&&h.old&&(l=h.old.width,u=h.old.height),o.old=\"nodeGroup\"===n?[0,u]:{x:l,y:u,width:0,height:0}}o.fadein=\"nodeGroup\"!==n}(h,0,t)),e[t][g]=u}}function kx(t,e){var n=t*Ix+e;return(n-1)/n}cf({type:\"treemap\",init:function(t,e){this._containerGroup,this._storage={nodeGroup:[],background:[],content:[]},this._oldTree,this._breadcrumb,this._controller,this._state=\"ready\"},render:function(t,e,n,i){if(!(N(e.findComponents({mainType:\"series\",subType:\"treemap\",query:i}),t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var r=lx(i,[\"treemapZoomToNode\",\"treemapRootToNode\"],t),o=i&&i.type,a=t.layoutInfo,s=!this._oldTree,l=this._storage,u=\"treemapRootToNode\"===o&&r&&l?{rootNodeGroup:l.nodeGroup[r.node.getRawIndex()],direction:i.direction}:null,h=this._giveContainerGroup(a),c=this._doRender(h,t,u);s||o&&\"treemapZoomToNode\"!==o&&\"treemapRootToNode\"!==o?c.renderFinally():this._doAnimation(h,c,t,u),this._resetController(n),this._renderBreadcrumb(t,n,r)}},_giveContainerGroup:function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new vx,this._initEvents(e),this.group.add(e)),e.attr(\"position\",[t.x,t.y]),e},_doRender:function(t,e,n){var i=e.getData().tree,r=this._oldTree,o={nodeGroup:[],background:[],content:[]},a={nodeGroup:[],background:[],content:[]},s=this._storage,l=[],u=j(Lx,e,a,s,n,o,l);!function t(e,n,i,r,o){function a(t){return t.getId()}function s(a,s){var l=null!=a?e[a]:null,h=null!=s?n[s]:null,c=u(l,h,i,o);c&&t(l&&l.viewChildren||[],h&&h.viewChildren||[],c,r,o+1)}r?(n=e,xx(e,function(t,e){!t.isRemoved()&&s(e,e)})):new ff(n,e,a,a).add(s).update(s).remove(j(s,null)).execute()}(i.root?[i.root]:[],r&&r.root?[r.root]:[],t,i===r||!r,0);var h=function(t){var e={nodeGroup:[],background:[],content:[]};return t&&xx(t,function(t,n){var i=e[n];xx(t,function(t){t&&(i.push(t),t.__tmWillDelete=1)})}),e}(s);return this._oldTree=i,this._storage=a,{lastsForAnimation:o,willDeleteEls:h,renderFinally:function(){xx(h,function(t){xx(t,function(t){t.parent&&t.parent.remove(t)})}),xx(l,function(t){t.invisible=!0,t.dirty()})}}},_doAnimation:function(t,e,n,i){if(n.get(\"animation\")){var r=n.get(\"animationDurationUpdate\"),o=n.get(\"animationEasing\"),a=function(){var t,e=[],n={};return{add:function(t,i,r,o,a){return U(o)&&(a=o,o=0),!n[t.id]&&(n[t.id]=1,e.push({el:t,target:i,time:r,delay:o,easing:a}),!0)},done:function(e){return t=e,this},start:function(){for(var i=e.length,r=0,o=e.length;r3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:\"treemapMove\",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},_onZoom:function(t){var e=t.originX,n=t.originY;if(\"animating\"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new Pn(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var s=se();ce(s,s,[-e,-n]),fe(s,s,[t.scale,t.scale]),ce(s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:\"treemapRender\",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},_initEvents:function(t){t.on(\"click\",function(t){if(\"ready\"===this._state){var e=this.seriesModel.get(\"nodeClick\",!0);if(e){var n=this.findTarget(t.offsetX,t.offsetY);if(n){var i=n.node;if(i.getLayout().isLeafRoot)this._rootToNode(n);else if(\"zoomToNode\"===e)this._zoomToNode(n);else if(\"link\"===e){var r=i.hostTree.data.getItemModel(i.dataIndex),o=r.get(\"link\",!0),a=r.get(\"target\",!0)||\"blank\";o&&window.open(o,a)}}}}},this)},_renderBreadcrumb:function(t,e,n){n||(n=null!=t.get(\"leafDepth\",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new fx(this.group))).render(t,e,n.node,mx(function(e){\"animating\"!==this._state&&(hx(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))},this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state=\"ready\",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:\"treemapZoomToNode\",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:\"treemapRootToNode\",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:\"viewChildren\",order:\"preorder\"},function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}},this),n}});for(var Px=function(){},Ox=[\"treemapZoomToNode\",\"treemapRender\",\"treemapMove\"],Nx=0;Nx=0;o--)null==n[o]&&(delete i[e[o]],e.pop())}(i):Fx(i,!0):(rt(\"linear\"!==e||i.dataExtent),Fx(i))};Bx.prototype={constructor:Bx,mapValueToVisual:function(t){var e=this._normalizeData(t);return this._doMap(e,t)},getNormalizer:function(){return H(this._normalizeData,this)}};var Vx=Bx.visualHandlers={color:{applyVisual:Hx(\"color\"),getColorMapper:function(){var t=this.option;return H(\"category\"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),jx.call(this,t)}:function(e,n,i){var r=!!i;return!n&&(e=this._normalizeData(e)),i=Xe(e,t.parsedVisual,i),r?i:tn(i,\"rgba\")},this)},_doMap:{linear:function(t){return tn(Xe(t,this.option.parsedVisual),\"rgba\")},category:jx,piecewise:function(t,e){var n=Ux.call(this,e);return null==n&&(n=tn(Xe(t,this.option.parsedVisual),\"rgba\")),n},fixed:Yx}},colorHue:Gx(function(t,e){return Je(t,e)}),colorSaturation:Gx(function(t,e){return Je(t,null,e)}),colorLightness:Gx(function(t,e){return Je(t,null,null,e)}),colorAlpha:Gx(function(t,e){return $e(t,e)}),opacity:{applyVisual:Hx(\"opacity\"),_doMap:Zx([0,1])},liftZ:{applyVisual:Hx(\"liftZ\"),_doMap:{linear:Yx,category:Yx,piecewise:Yx,fixed:Yx}},symbol:{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);if(U(i))n(\"symbol\",i);else if(zx(i))for(var r in i)i.hasOwnProperty(r)&&n(r,i[r])},_doMap:{linear:Wx,category:jx,piecewise:function(t,e){var n=Ux.call(this,e);return null==n&&(n=Wx.call(this,t)),n},fixed:Yx}},symbolSize:{applyVisual:Hx(\"symbolSize\"),_doMap:Zx([0,1])}};function Fx(t,e){var n=t.visual,i=[];X(n)?Ex(n,function(t){i.push(t)}):null!=n&&i.push(n),e||1!==i.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(i[1]=i[0]),Xx(t,i)}function Gx(t){return{applyVisual:function(e,n,i){e=this.mapValueToVisual(e),i(\"color\",t(n(\"color\"),e))},_doMap:Zx([0,1])}}function Wx(t){var e=this.option.visual;return e[Math.round(_l(t,[0,1],[0,e.length-1],!0))]||{}}function Hx(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function jx(t){var e=this.option.visual;return e[this.option.loop&&t!==Rx?t%e.length:t]}function Yx(){return this.option.visual[0]}function Zx(t){return{linear:function(e){return _l(e,t,this.option.visual,!0)},category:jx,piecewise:function(e,n){var i=Ux.call(this,n);return null==i&&(i=_l(e,t,this.option.visual,!0)),i},fixed:Yx}}function Ux(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=n[Bx.findPieceIndex(t,n)];if(i&&i.visual)return i.visual[this.type]}}function Xx(t,e){return t.visual=e,\"color\"===t.type&&(t.parsedVisual=V(e,function(t){return je(t)})),e}var qx={linear:function(t){return _l(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=Bx.findPieceIndex(t,e,!0);if(null!=n)return _l(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?Rx:e},fixed:dt};function Kx(t,e,n){return t?e<=n:eu[1]&&(u[1]=l);var h=e.get(\"colorMappingBy\"),c={type:a.name,dataExtent:u,visual:a.range};\"color\"!==c.type||\"index\"!==h&&\"id\"!==h?c.mappingMethod=\"linear\":(c.mappingMethod=\"category\",c.loop=!0);var d=new Bx(c);return d.__drColorMappingBy=h,d}}}(0,s,l,0,d,g);B(g,function(e,n){if(e.depth>=o.length||e===o[e.depth]){var l=function(t,e,n,i,r,o){var a=C({},e);if(r){var s=r.type,l=\"color\"===s&&r.__drColorMappingBy,u=\"index\"===l?i:\"id\"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get(\"visualDimension\"));a[s]=r.mapValueToVisual(u)}return a}(s,d,e,n,m,a);t(e,l,i,r,o,a)}})}else u=t_(d),e.setVisual(\"color\",u)}}(o,{},V(r.levelModels,function(t){return t?t.get(Jx):null}),a,t.getViewRoot().getAncestors(),t)}};function t_(t){var e=e_(t,\"color\");if(e){var n=e_(t,\"colorAlpha\"),i=e_(t,\"colorSaturation\");return i&&(e=Je(e,null,null,i)),n&&(e=$e(e,n)),e}}function e_(t,e){var n=t[e];if(null!=n&&\"none\"!==n)return n}function n_(t,e){var n=t.get(e);return Qx(n)&&n.length?{name:e,range:n}:null}var i_=Math.max,r_=Math.min,o_=$,a_=B,s_=[\"itemStyle\",\"borderWidth\"],l_=[\"itemStyle\",\"gapWidth\"],u_=[\"upperLabel\",\"show\"],h_=[\"upperLabel\",\"height\"],c_={seriesType:\"treemap\",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,s=su(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=bl(o_(s.width,l[0]),r),h=bl(o_(s.height,l[1]),o),c=i&&i.type,d=lx(i,[\"treemapZoomToNode\",\"treemapRootToNode\"],t),f=\"treemapRender\"===c||\"treemapMove\"===c?i.rootRect:null,p=t.getViewRoot(),g=ux(p);if(\"treemapMove\"!==c){var m=\"treemapZoomToNode\"===c?function(t,e,n,i,r){var o,a=(e||{}).node,s=[i,r];if(!a||a===n)return s;for(var l=i*r,u=l*t.option.zoomToNodeRatio;o=a.parentNode;){for(var h=0,c=o.children,d=0,f=c.length;dTl&&(u=Tl),a=o}us[1]&&(s[1]=e)})}else s=[NaN,NaN];return{sum:i,dataExtent:s}}(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,n,i,r){if(!i)return n;for(var o=t.get(\"visibleMin\"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r[\"asc\"===i?a-l-1:l].getValue();u/n*er&&(r=i));var l=t.area*t.area,u=e*e*n;return l?i_(u*r/l,l/(u*o)):1/0}function f_(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=[\"x\",\"y\"],l=[\"width\",\"height\"],u=n[s[o]],h=e?t.area/e:0;(r||h>n[l[a]])&&(h=n[l[a]]);for(var c=0,d=t.length;c=0&&t.call(e,n[r],r)},v_.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},v_.breadthFirstTraverse=function(t,e,n,i){if(y_.isInstance(e)||(e=this._nodesMap[g_(e)]),e){for(var r=\"out\"===n?\"outEdges\":\"in\"===n?\"inEdges\":\"edges\",o=0;o=0&&n.node2.dataIndex>=0}),r=0,o=i.length;r=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n,i){return this[t][e].getItemVisual(this.dataIndex,n,i)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};z(y_,__(\"hostGraph\",\"data\")),z(x_,__(\"hostGraph\",\"edgeData\")),m_.Node=y_,m_.Edge=x_,qr(y_),qr(x_);var b_=function(t,e,n,i,r){for(var o=new m_(i),a=0;a \"+d)),u++)}var f,p=n.get(\"coordinateSystem\");if(\"cartesian2d\"===p||\"polar\"===p)f=Uf(t,n);else{var g=Uu.get(p),m=g&&\"view\"!==g.type&&g.dimensions||[];N(m,\"value\")<0&&m.concat([\"value\"]);var v=Hf(t,{coordDimensions:m});(f=new Tf(v,n)).initData(t)}var y=new Tf([\"value\"],n);return y.initData(l,s),r&&r(f,y),By({mainData:f,struct:o,structAttr:\"graph\",datas:{node:f,edge:y},datasAttr:{node:\"data\",edge:\"edgeData\"}}),o.update(),o},w_=hf({type:\"series.graph\",init:function(t){w_.superApply(this,\"init\",arguments),this.legendDataProvider=function(){return this._categoriesData},this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){w_.superApply(this,\"mergeOption\",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){w_.superApply(this,\"mergeDefaultAndTheme\",arguments),Lr(t,[\"edgeLabel\"],[\"show\"])},getInitialData:function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=this;if(i&&n)return b_(i,n,this,!0,function(t,n){t.wrapMethod(\"getItemModel\",function(t){var e=r._categoriesModels[t.getShallow(\"category\")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var i=r.getModel(\"edgeLabel\"),o=new pl({label:i.option},i.parentModel,e),a=r.getModel(\"emphasis.edgeLabel\"),s=new pl({emphasis:{label:a.option}},a.parentModel,e);function l(t){return(t=this.parsePath(t))&&\"label\"===t[0]?o:t&&\"emphasis\"===t[0]&&\"label\"===t[1]?s:this.parentModel}n.wrapMethod(\"getItemModel\",function(t){return t.customizeGetParent(l),t})}).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,n){if(\"edge\"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),l=jl(l.join(\" > \")),r.value&&(l+=\" : \"+jl(r.value)),l}return w_.superApply(this,\"formatTooltip\",arguments)},_updateCategoriesData:function(){var t=V(this.option.categories||[],function(t){return null!=t.value?t:C({value:0},t)}),e=new Tf([\"value\"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t,!0)})},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return w_.superCall(this,\"isAnimationEnabled\")&&!(\"force\"===this.get(\"layout\")&&this.get(\"force.layoutAnimation\"))},defaultOption:{zlevel:0,z:2,coordinateSystem:\"view\",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,edgeLength:30,layoutAnimation:!0},left:\"center\",top:\"center\",symbol:\"circle\",symbolSize:10,edgeSymbol:[\"none\",\"none\"],edgeSymbolSize:10,edgeLabel:{position:\"middle\"},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:\"{b}\"},itemStyle:{},lineStyle:{color:\"#aaa\",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),M_=es.prototype,S_=rs.prototype;function I_(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var A_=_s({type:\"ec-line\",style:{stroke:\"#000\",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){this[I_(e)?\"_buildPathLine\":\"_buildPathCurve\"](t,e)},_buildPathLine:M_.buildPath,_buildPathCurve:S_.buildPath,pointAt:function(t){return this[I_(this.shape)?\"_pointAtLine\":\"_pointAtCurve\"](t)},_pointAtLine:M_.pointAt,_pointAtCurve:S_.pointAt,tangentAt:function(t){var e=this.shape,n=I_(e)?[e.x2-e.x1,e.y2-e.y1]:this._tangentAtCurve(t);return Dt(n,n)},_tangentAtCurve:S_.tangentAt}),D_=[\"fromSymbol\",\"toSymbol\"];function T_(t){return\"_\"+t+\"Type\"}function C_(t,e,n){var i=e.getItemVisual(n,\"color\"),r=e.getItemVisual(n,t),o=e.getItemVisual(n,t+\"Size\");if(r&&\"none\"!==r){Y(o)||(o=[o,o]);var a=Jp(r,-o[0]/2,-o[1]/2,o[0],o[1],i);return a.name=t,a}}function L_(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;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}function k_(t,e,n){On.call(this),this._createLine(t,e,n)}var P_=k_.prototype;function O_(t){this._ctor=t||k_,this.group=new On}P_.beforeUpdate=function(){var t=this.childOfName(\"fromSymbol\"),e=this.childOfName(\"toSymbol\"),n=this.childOfName(\"label\");if(t||e||!n.ignore){for(var i=1,r=this.parent;r;)r.scale&&(i/=r.scale[0]),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=bt([],l,s);if(Dt(u,u),t){t.attr(\"position\",s);var h=o.tangentAt(0);t.attr(\"rotation\",Math.PI/2-Math.atan2(h[1],h[0])),t.attr(\"scale\",[i*a,i*a])}if(e&&(e.attr(\"position\",l),h=o.tangentAt(1),e.attr(\"rotation\",-Math.PI/2-Math.atan2(h[1],h[0])),e.attr(\"scale\",[i*a,i*a])),!n.ignore){var c,d,f;n.attr(\"position\",l);var p=5*i;if(\"end\"===n.__position)c=[u[0]*p+l[0],u[1]*p+l[1]],d=u[0]>.8?\"left\":u[0]<-.8?\"right\":\"center\",f=u[1]>.8?\"top\":u[1]<-.8?\"bottom\":\"middle\";else if(\"middle\"===n.__position){var g=a/2,m=[(h=o.tangentAt(g))[1],-h[0]],v=o.pointAt(g);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]),c=[v[0]+m[0]*p,v[1]+m[1]*p],d=\"center\",f=\"bottom\";var y=-Math.atan2(h[1],h[0]);l[0].8?\"right\":u[0]<-.8?\"left\":\"center\",f=u[1]>.8?\"bottom\":u[1]<-.8?\"top\":\"middle\";n.attr({style:{textVerticalAlign:n.__verticalAlign||f,textAlign:n.__textAlign||d},position:c,scale:[i,i]})}}}},P_._createLine=function(t,e,n){var i=t.hostModel,r=function(t){var e=new A_({name:\"line\",subPixelOptimize:!0});return L_(e.shape,t),e}(t.getItemLayout(e));r.shape.percent=0,tl(r,{shape:{percent:1}},i,e),this.add(r);var o=new za({name:\"label\"});this.add(o),B(D_,function(n){var i=C_(n,t,e);this.add(i),this[T_(n)]=t.getItemVisual(e,n)},this),this._updateCommonStl(t,e,n)},P_.updateData=function(t,e,n){var i=t.hostModel,r=this.childOfName(\"line\"),o=t.getItemLayout(e),a={shape:{}};L_(a.shape,o),$s(r,a,i,e),B(D_,function(n){var i=t.getItemVisual(e,n),r=T_(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=C_(n,t,e);this.add(o)}this[r]=i},this),this._updateCommonStl(t,e,n)},P_._updateCommonStl=function(t,e,n){var i=t.hostModel,r=this.childOfName(\"line\"),o=n&&n.lineStyle,a=n&&n.hoverLineStyle,s=n&&n.labelModel,l=n&&n.hoverLabelModel;if(!n||t.hasItemOption){var u=t.getItemModel(e);o=u.getModel(\"lineStyle\").getLineStyle(),a=u.getModel(\"emphasis.lineStyle\").getLineStyle(),s=u.getModel(\"label\"),l=u.getModel(\"emphasis.label\")}var h=t.getItemVisual(e,\"color\"),c=et(t.getItemVisual(e,\"opacity\"),o.opacity,1);r.useStyle(L({strokeNoScale:!0,fill:\"none\",stroke:h,opacity:c},o)),r.hoverStyle=a,B(D_,function(t){var e=this.childOfName(t);e&&(e.setColor(h),e.setStyle({opacity:c}))},this);var d,f,p=s.getShallow(\"show\"),g=l.getShallow(\"show\"),m=this.childOfName(\"label\");if((p||g)&&(d=h||\"#000\",null==(f=i.getFormattedLabel(e,\"normal\",t.dataType)))){var v=i.getRawValue(e);f=null==v?t.getName(e):isFinite(v)?wl(v):v}var y=p?f:null,x=g?tt(i.getFormattedLabel(e,\"emphasis\",t.dataType),f):null,_=m.style;null==y&&null==x||(Ys(m.style,s,{text:y},{autoColor:d}),m.__textAlign=_.textAlign,m.__verticalAlign=_.textVerticalAlign,m.__position=s.get(\"position\")||\"middle\"),m.hoverStyle=null!=x?{text:x,textFill:l.getTextColor(!0),fontStyle:l.getShallow(\"fontStyle\"),fontWeight:l.getShallow(\"fontWeight\"),fontSize:l.getShallow(\"fontSize\"),fontFamily:l.getShallow(\"fontFamily\")}:{text:null},m.ignore=!p&&!g,Fs(this)},P_.highlight=function(){this.trigger(\"emphasis\")},P_.downplay=function(){this.trigger(\"normal\")},P_.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},P_.setLinePoints=function(t){var e=this.childOfName(\"line\");L_(e.shape,t),e.dirty()},E(k_,On);var N_=O_.prototype;function E_(t){var e=t.hostModel;return{lineStyle:e.getModel(\"lineStyle\").getLineStyle(),hoverLineStyle:e.getModel(\"emphasis.lineStyle\").getLineStyle(),labelModel:e.getModel(\"label\"),hoverLabelModel:e.getModel(\"emphasis.label\")}}function z_(t){return isNaN(t[0])||isNaN(t[1])}function R_(t){return!z_(t[0])&&!z_(t[1])}N_.isPersistent=function(){return!0},N_.updateData=function(t){var e=this,n=e.group,i=e._lineData;e._lineData=t,i||n.removeAll();var r=E_(t);t.diff(i).add(function(n){!function(t,e,n,i){if(R_(e.getItemLayout(n))){var r=new t._ctor(e,n,i);e.setItemGraphicEl(n,r),t.group.add(r)}}(e,t,n,r)}).update(function(n,o){!function(t,e,n,i,r,o){var a=e.getItemGraphicEl(i);R_(n.getItemLayout(r))?(a?a.updateData(n,r,o):a=new t._ctor(n,r,o),n.setItemGraphicEl(r,a),t.group.add(a)):t.group.remove(a)}(e,i,t,o,n,r)}).remove(function(t){n.remove(i.getItemGraphicEl(t))}).execute()},N_.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},N_.incrementalPrepareUpdate=function(t){this._seriesScope=E_(t),this._lineData=null,this.group.removeAll()},N_.incrementalUpdate=function(t,e){function n(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}for(var i=t.start;i=0?i+=u:i-=u:p>=0?i-=u:i+=u}return i}var Y_=function(t,e){var n=[],i=Mo,r=[[],[],[]],o=[[],[]],a=[];function s(t){var e=t.getVisual(\"symbolSize\");return e instanceof Array&&(e=(e[0]+e[1])/2),e}e/=2,t.eachEdge(function(t,l){var u=t.getLayout(),h=t.getVisual(\"fromSymbol\"),c=t.getVisual(\"toSymbol\");u.__original||(u.__original=[vt(u[0]),vt(u[1])],u[2]&&u.__original.push(vt(u[2])));var d=u.__original;if(null!=u[2]){if(mt(r[0],d[0]),mt(r[1],d[2]),mt(r[2],d[1]),h&&\"none\"!==h){var f=s(t.node1),p=j_(r,d[0],f*e);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}c&&\"none\"!==c&&(f=s(t.node2),p=j_(r,d[1],f*e),i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]),mt(u[0],r[0]),mt(u[1],r[2]),mt(u[2],r[1])}else mt(o[0],d[0]),mt(o[1],d[1]),bt(a,o[1],o[0]),Dt(a,a),h&&\"none\"!==h&&(f=s(t.node1),_t(o[0],o[0],a,f*e)),c&&\"none\"!==c&&(f=s(t.node2),_t(o[1],o[1],a,-f*e)),mt(u[0],o[0]),mt(u[1],o[1])})},Z_=[\"itemStyle\",\"opacity\"],U_=[\"lineStyle\",\"opacity\"];function X_(t,e){return t.getVisual(\"opacity\")||t.getModel().get(e)}function q_(t,e,n){var i=t.getGraphicEl(),r=X_(t,e);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse(function(t){\"group\"!==t.type&&t.setStyle(\"opacity\",r)})}function K_(t,e){var n=X_(t,e),i=t.getGraphicEl();i.highlight&&i.highlight(),i.traverse(function(t){\"group\"!==t.type&&t.setStyle(\"opacity\",n)})}function Q_(t){return t instanceof Array||(t=[t,t]),t}function J_(t){var e=t.coordinateSystem;if(!e||\"view\"===e.type){var n=t.getGraph();n.eachNode(function(t){var e=t.getModel();t.setLayout([+e.get(\"x\"),+e.get(\"y\")])}),$_(n)}}function $_(t){t.eachEdge(function(t){var e=t.getModel().get(\"lineStyle.curveness\")||0,n=vt(t.node1.getLayout()),i=vt(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 tb(t){var e=t.coordinateSystem;if(!e||\"view\"===e.type){var n=e.getBoundingRect(),i=t.getData(),r=i.graph,o=0,a=i.getSum(\"value\"),s=2*Math.PI/(a||i.count()),l=n.width/2+n.x,u=n.height/2+n.y,h=Math.min(n.width,n.height)/2;r.eachNode(function(t){var e=t.getValue(\"value\");o+=s*(a?e:1)/2,t.setLayout([h*Math.cos(o)+l,h*Math.sin(o)+u]),o+=s*(a?e:1)/2}),i.setLayout({cx:l,cy:u}),r.eachEdge(function(t){var e,n=t.getModel().get(\"lineStyle.curveness\")||0,i=vt(t.node1.getLayout()),r=vt(t.node2.getLayout()),o=(i[0]+r[0])/2,a=(i[1]+r[1])/2;+n&&(e=[l*(n*=3)+o*(1-n),u*n+a*(1-n)]),t.setLayout([i,r,e])})}}cf({type:\"graph\",init:function(t,e){var n=new Og,i=new O_,r=this.group;this._controller=new oy(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},render:function(t,e,n){var i=t.coordinateSystem;this._model=t,this._nodeScaleRatio=t.get(\"nodeScaleRatio\");var r=this._symbolDraw,o=this._lineDraw,a=this.group;if(\"view\"===i.type){var s={position:i.position,scale:i.scale};this._firstRender?a.attr(s):$s(a,s,t)}Y_(t.getGraph(),this._getNodeGlobalScale(t));var l=t.getData();r.updateData(l);var u=t.getEdgeData();o.updateData(u),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var h=t.forceLayout,c=t.get(\"force.layoutAnimation\");h&&this._startForceLayoutIteration(h,c),l.eachItemGraphicEl(function(e,i){var r=l.getItemModel(i);e.off(\"drag\").off(\"dragend\");var o=r.get(\"draggable\");o&&e.on(\"drag\",function(){h&&(h.warmUp(),!this._layouting&&this._startForceLayoutIteration(h,c),h.setFixed(i),l.setItemLayout(i,e.position))},this).on(\"dragend\",function(){h&&h.setUnfixed(i)},this),e.setDraggable(o&&h),e.off(\"mouseover\",e.__focusNodeAdjacency),e.off(\"mouseout\",e.__unfocusNodeAdjacency),r.get(\"focusNodeAdjacency\")&&(e.on(\"mouseover\",e.__focusNodeAdjacency=function(){n.dispatchAction({type:\"focusNodeAdjacency\",seriesId:t.id,dataIndex:e.dataIndex})}),e.on(\"mouseout\",e.__unfocusNodeAdjacency=function(){n.dispatchAction({type:\"unfocusNodeAdjacency\",seriesId:t.id})}))},this),l.graph.eachEdge(function(e){var i=e.getGraphicEl();i.off(\"mouseover\",i.__focusNodeAdjacency),i.off(\"mouseout\",i.__unfocusNodeAdjacency),e.getModel().get(\"focusNodeAdjacency\")&&(i.on(\"mouseover\",i.__focusNodeAdjacency=function(){n.dispatchAction({type:\"focusNodeAdjacency\",seriesId:t.id,edgeDataIndex:e.dataIndex})}),i.on(\"mouseout\",i.__unfocusNodeAdjacency=function(){n.dispatchAction({type:\"unfocusNodeAdjacency\",seriesId:t.id})}))});var d=\"circular\"===t.get(\"layout\")&&t.get(\"circular.rotateLabel\"),f=l.getLayout(\"cx\"),p=l.getLayout(\"cy\");l.eachItemGraphicEl(function(t,e){var n=l.getItemModel(e).get(\"label.rotate\")||0,i=t.getSymbolPath();if(d){var r=l.getItemLayout(e),o=Math.atan2(r[1]-p,r[0]-f);o<0&&(o=2*Math.PI+o);var a=r[0]=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)}});function ib(t,e){return e&&(\"string\"==typeof e?t=e.replace(\"{value}\",null!=t?t:\"\"):\"function\"==typeof e&&(t=e(t))),t}var rb=2*Math.PI,ob=(Jh.extend({type:\"gauge\",render:function(t,e,n){this.group.removeAll();var i=t.get(\"axisLine.lineStyle.color\"),r=function(t,e){var n=t.get(\"center\"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r);return{cx:bl(n[0],e.getWidth()),cy:bl(n[1],e.getHeight()),r:bl(t.get(\"radius\"),o/2)}}(t,n);this._renderMain(t,e,n,i,r)},dispose:function(){},_renderMain:function(t,e,n,i,r){for(var o=this.group,a=t.getModel(\"axisLine\"),s=a.getModel(\"lineStyle\"),l=t.get(\"clockwise\"),u=-t.get(\"startAngle\")/180*Math.PI,h=((g=-t.get(\"endAngle\")/180*Math.PI)-u)%rb,c=u,d=s.get(\"width\"),f=a.get(\"show\"),p=0;f&&p=t&&(0===e?0:i[e-1][0]).4?\"bottom\":\"middle\",textAlign:D<-.4?\"left\":D>.4?\"right\":\"center\"},{autoColor:P}),silent:!0}))}if(g.get(\"show\")&&A!==v){for(var O=0;O<=y;O++){D=Math.cos(b),T=Math.sin(b);var N=new es({shape:{x1:D*c+u,y1:T*c+h,x2:D*(c-_)+u,y2:T*(c-_)+h},silent:!0,style:I});\"auto\"===I.stroke&&N.setStyle({stroke:i((A+O/y)/v)}),l.add(N),b+=M}b-=M}else b+=w}},_renderPointer:function(t,e,n,i,r,o,a,s){var l=this.group,u=this._data;if(t.get(\"pointer.show\")){var h=[+t.get(\"min\"),+t.get(\"max\")],c=[o,a],d=t.getData(),f=d.mapDimension(\"value\");d.diff(u).add(function(e){var n=new nb({shape:{angle:o}});tl(n,{shape:{angle:_l(d.get(f,e),h,c,!0)}},t),l.add(n),d.setItemGraphicEl(e,n)}).update(function(e,n){var i=u.getItemGraphicEl(n);$s(i,{shape:{angle:_l(d.get(f,e),h,c,!0)}},t),l.add(i),d.setItemGraphicEl(e,i)}).remove(function(t){var e=u.getItemGraphicEl(t);l.remove(e)}).execute(),d.eachItemGraphicEl(function(t,e){var n=d.getItemModel(e),o=n.getModel(\"pointer\");t.setShape({x:r.cx,y:r.cy,width:bl(o.get(\"width\"),r.r),r:bl(o.get(\"length\"),r.r)}),t.useStyle(n.getModel(\"itemStyle\").getItemStyle()),\"auto\"===t.style.fill&&t.setStyle(\"fill\",i(_l(d.get(f,e),h,[0,1],!0))),Fs(t,n.getModel(\"emphasis.itemStyle\").getItemStyle())}),this._data=d}else u&&u.eachItemGraphicEl(function(t){l.remove(t)})},_renderTitle:function(t,e,n,i,r){var o=t.getData(),a=o.mapDimension(\"value\"),s=t.getModel(\"title\");if(s.get(\"show\")){var l=s.get(\"offsetCenter\"),u=r.cx+bl(l[0],r.r),h=r.cy+bl(l[1],r.r),c=+t.get(\"min\"),d=+t.get(\"max\"),f=i(_l(t.getData().get(a,0),[c,d],[0,1],!0));this.group.add(new za({silent:!0,style:Ys({},s,{x:u,y:h,text:o.getName(0),textAlign:\"center\",textVerticalAlign:\"middle\"},{autoColor:f,forceRich:!0})}))}},_renderDetail:function(t,e,n,i,r){var o=t.getModel(\"detail\"),a=+t.get(\"min\"),s=+t.get(\"max\");if(o.get(\"show\")){var l=o.get(\"offsetCenter\"),u=r.cx+bl(l[0],r.r),h=r.cy+bl(l[1],r.r),c=bl(o.get(\"width\"),r.r),d=bl(o.get(\"height\"),r.r),f=t.getData(),p=f.get(f.mapDimension(\"value\"),0),g=i(_l(p,[a,s],[0,1],!0));this.group.add(new za({silent:!0,style:Ys({},o,{x:u,y:h,text:ib(p,o.get(\"formatter\")),textWidth:isNaN(c)?null:c,textHeight:isNaN(d)?null:d,textAlign:\"center\",textVerticalAlign:\"middle\"},{autoColor:g,forceRich:!0})}))}}}),hf({type:\"series.funnel\",init:function(t){ob.superApply(this,\"init\",arguments),this.legendDataProvider=function(){return this.getRawData()},this._defaultLabelLine(t)},getInitialData:function(t,e){return fv(this,[\"value\"])},_defaultLabelLine:function(t){Lr(t,\"labelLine\",[\"show\"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},getDataParams:function(t){var e=this.getData(),n=ob.superCall(this,\"getDataParams\",t),i=e.mapDimension(\"value\"),r=e.getSum(i);return n.percent=r?+(e.get(i,t)/r*100).toFixed(2):0,n.$vars.push(\"percent\"),n},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:\"0%\",maxSize:\"100%\",sort:\"descending\",gap:0,funnelAlign:\"center\",label:{show:!0,position:\"outer\"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:\"solid\"}},itemStyle:{borderColor:\"#fff\",borderWidth:1},emphasis:{label:{show:!0}}}}));function ab(t,e){On.call(this);var n=new Za,i=new Ua,r=new za;this.add(n),this.add(i),this.add(r),this.highDownOnUpdate=function(t,e){\"emphasis\"===e?(i.ignore=i.hoverIgnore,r.ignore=r.hoverIgnore):(i.ignore=i.normalIgnore,r.ignore=r.normalIgnore)},this.updateData(t,e,!0)}var sb=ab.prototype,lb=[\"itemStyle\",\"opacity\"];sb.updateData=function(t,e,n){var i=this.childAt(0),r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=t.getItemModel(e).get(lb);s=null==s?1:s,i.useStyle({}),n?(i.setShape({points:a.points}),i.setStyle({opacity:0}),tl(i,{style:{opacity:s}},r,e)):$s(i,{style:{opacity:s},shape:{points:a.points}},r,e);var l=o.getModel(\"itemStyle\"),u=t.getItemVisual(e,\"color\");i.setStyle(L({lineJoin:\"round\",fill:u},l.getItemStyle([\"opacity\"]))),i.hoverStyle=l.getModel(\"emphasis\").getItemStyle(),this._updateLabel(t,e),Fs(this)},sb._updateLabel=function(t,e){var n=this.childAt(1),i=this.childAt(2),r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e).label,s=t.getItemVisual(e,\"color\");$s(n,{shape:{points:a.linePoints||a.linePoints}},r,e),$s(i,{style:{x:a.x,y:a.y}},r,e),i.attr({rotation:a.rotation,origin:[a.x,a.y],z2:10});var l=o.getModel(\"label\"),u=o.getModel(\"emphasis.label\"),h=o.getModel(\"labelLine\"),c=o.getModel(\"emphasis.labelLine\");s=t.getItemVisual(e,\"color\"),js(i.style,i.hoverStyle={},l,u,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:s,useInsideStyle:!!a.inside},{textAlign:a.textAlign,textVerticalAlign:a.verticalAlign}),i.ignore=i.normalIgnore=!l.get(\"show\"),i.hoverIgnore=!u.get(\"show\"),n.ignore=n.normalIgnore=!h.get(\"show\"),n.hoverIgnore=!c.get(\"show\"),n.setStyle({stroke:s}),n.setStyle(h.getModel(\"lineStyle\").getLineStyle()),n.hoverStyle=c.getModel(\"lineStyle\").getLineStyle()},E(ab,On),Jh.extend({type:\"funnel\",render:function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add(function(t){var e=new ab(i,t);i.setItemGraphicEl(t,e),o.add(e)}).update(function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)}).remove(function(t){var e=r.getItemGraphicEl(t);o.remove(e)}).execute(),this._data=i},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),of(bv(\"funnel\")),rf(function(t,e,n){t.eachSeriesByType(\"funnel\",function(t){var n=t.getData(),i=n.mapDimension(\"value\"),r=t.get(\"sort\"),o=function(t,e){return su(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),a=function(t,e){for(var n=t.mapDimension(\"value\"),i=t.mapArray(n,function(t){return t}),r=[],o=\"ascending\"===e,a=0,s=t.count();ao&&(e[1-i]=e[i]+c.sign*o),e};function cb(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function db(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var fb=B,pb=Math.min,gb=Math.max,mb=Math.floor,vb=Math.ceil,yb=wl,xb=Math.PI;function _b(t,e,n){this._axesMap=ht(),this._axesLayout={},this.dimensions=t.dimensions,this._rect,this._model=t,this._init(t,e,n)}function bb(t,e){return pb(gb(t,e[0]),e[1])}function wb(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function Mb(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,h=!1;return t=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var i=n.getData();fb(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),zp(e.scale,e.model)},this)}},this)},resize:function(t,e){this._rect=su(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t,e=this._model,n=this._rect,i=[\"x\",\"y\"],r=[\"width\",\"height\"],o=e.get(\"layout\"),a=\"horizontal\"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,h=bb(e.get(\"axisExpandWidth\"),l),c=bb(e.get(\"axisExpandCount\")||0,[0,u]),d=e.get(\"axisExpandable\")&&u>3&&u>c&&c>1&&h>0&&s>0,f=e.get(\"axisExpandWindow\");f?(t=bb(f[1]-f[0],l),f[1]=f[0]+t):(t=bb(h*(c-1),l),(f=[h*(e.get(\"axisExpandCenter\")||mb(u/2))-t/2])[1]=f[0]+t);var p=(s-t)/(u-c);p<3&&(p=0);var g=[mb(yb(f[0]/h,1))+1,vb(yb(f[1]/h,1))-1],m=p/h*f[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:d,axisExpandWidth:h,axisCollapseWidth:p,axisExpandWindow:f,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:m}},_layoutAxes:function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each(function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])}),fb(n,function(e,n){var o=(i.axisExpandable?Mb:wb)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:xb/2,vertical:0},l=[a[r].x+t.x,a[r].y+t.y],u=s[r],h=se();de(h,h,u),ce(h,h,l),this._axesLayout[e]={position:l,rotation:u,transform:h,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(t){return this._axesMap.get(t)},dataToPoint:function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},eachActiveState:function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];B(o,function(e){a.push(t.mapDimension(e)),s.push(r.get(e).model)});for(var l=this.hasAxisBrushed(),u=n;ur*(1-h[0])?(l=\"jump\",a=s-r*(1-h[2])):(a=s-r*h[1])>=0&&(a=s-r*(1-h[1]))<=0&&(a=0),(a*=e.axisExpandWidth/u)?hb(a,i,o,\"all\"):l=\"none\"):(r=i[1]-i[0],(i=[gb(0,o[1]*s/r-r/2)])[1]=pb(o[1],i[0]+r),i[0]=i[1]-r),{axisExpandWindow:i,behavior:l}}},Uu.register(\"parallel\",{create:function(t,e){var n=[];return t.eachComponent(\"parallel\",function(i,r){var o=new _b(i,t,e);o.name=\"parallel_\"+r,o.resize(i,e),i.coordinateSystem=o,o.model=i,n.push(o)}),t.eachSeries(function(e){if(\"parallel\"===e.get(\"coordinateSystem\")){var n=t.queryComponents({mainType:\"parallel\",index:e.get(\"parallelIndex\"),id:e.get(\"parallelId\")})[0];e.coordinateSystem=n.coordinateSystem}}),n}});var Sb=gu.extend({type:\"baseParallelAxis\",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return $r([[\"fill\",\"color\"],[\"lineWidth\",\"borderWidth\"],[\"stroke\",\"borderColor\"],[\"width\",\"width\"],[\"opacity\",\"opacity\"]])(this.getModel(\"areaSelectStyle\"))},setActiveIntervals:function(t){var e=this.activeIntervals=A(t);if(e)for(var n=e.length-1;n>=0;n--)Ml(e[n])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return\"normal\";if(null==t||isNaN(t))return\"inactive\";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return\"active\"}else for(var i=0,r=e.length;i1?(n=n.split(\"\"),(\"e\"===(i=[t(e,n[0]),t(e,n[1])])[0]||\"w\"===i[0])&&i.reverse(),i.join(\"\")):{left:\"w\",right:\"e\",top:\"n\",bottom:\"s\"}[i=il({w:\"left\",e:\"right\",n:\"top\",s:\"bottom\"}[n],function(t){return el(t.group)}(e))];var i}(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?zb[o]+\"-resize\":null})})}function tw(t,e,n,i,r,o,a){var s=e.childOfName(n);s&&s.setShape(function(t){var e=Tb(t[0][0],t[1][0]),n=Tb(t[0][1],t[1][1]),i=Cb(t[0][0],t[1][0]),r=Cb(t[0][1],t[1][1]);return{x:e,y:n,width:i-e,height:r-n}}(aw(t,e,[[i,r],[i+o,r+a]])))}function ew(t){return L({strokeNoScale:!0},t.brushStyle)}function nw(t,e,n,i){var r=[Tb(t,n),Tb(e,i)],o=[Cb(t,n),Cb(e,i)];return[[r[0],o[0]],[r[1],o[1]]]}function iw(t,e,n,i,r,o,a,s){var l=i.__brushOption,u=t(l.range),h=ow(n,o,a);Ab(r.split(\"\"),function(t){var e=Eb[t];u[e[0]][e[1]]+=h[e[0]]}),l.range=e(nw(u[0][0],u[1][0],u[0][1],u[1][1])),jb(n,i),qb(n,{isEnd:!1})}function rw(t,e,n,i,r){var o=e.__brushOption.range,a=ow(t,n,i);Ab(o,function(t){t[0]+=a[0],t[1]+=a[1]}),jb(t,e),qb(t,{isEnd:!1})}function ow(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function aw(t,e,n){var i=Ub(t,e);return i&&!0!==i?i.clipPath(n,t._transform):A(n)}function sw(t){var e=t.event;e.preventDefault&&e.preventDefault()}function lw(t,e,n){return t.childOfName(\"main\").contain(e,n)}function uw(t,e,n,i){var r,o=t._creatingCover,a=t._creatingPanel,s=t._brushOption;if(t._track.push(n.slice()),function(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],r=n[0]-i[0],o=n[1]-i[1];return Lb(r*r+o*o,.5)>Pb}(t)||o){if(a&&!o){\"single\"===s.brushMode&&Xb(t);var l=A(s);l.brushType=hw(l.brushType,a),l.panelId=!0===a?null:a.panelId,o=t._creatingCover=Fb(t,l),t._covers.push(o)}if(o){var u=fw[hw(t._brushType,a)];o.__brushOption.range=u.getCreatingRange(aw(t,o,t._track)),i&&(Gb(t,o),u.updateCommon(t,o)),Wb(t,o),r={isEnd:i}}}else i&&\"single\"===s.brushMode&&s.removeOnClick&&Zb(t,e,n)&&Xb(t)&&(r={isEnd:i,removeOnClick:!0});return r}function hw(t,e){return\"auto\"===t?(c&&rt(e&&e.defaultBrushType,'MUST have defaultBrushType when brushType is \"atuo\"'),e.defaultBrushType):t}Vb.prototype={constructor:Vb,enableBrush:function(t){var e,n;return c&&rt(this._mounted),this._brushType&&(function(t,e,n){var i=ry(t);i[e]===n&&(i[e]=null)}(n=(e=this)._zr,Nb,e._uid),Ab(e._handlers,function(t,e){n.off(e,t)}),e._brushType=e._brushOption=null),t.brushType&&function(t,e){var n=t._zr;t._enableGlobalPan||function(t,e,n){ry(t)[e]=n}(n,Nb,t._uid),Ab(t._handlers,function(t,e){n.on(e,t)}),t._brushType=e.brushType,t._brushOption=D(A(Rb),e,!0)}(this,t),this},setPanels:function(t){if(t&&t.length){var e=this._panels={};B(t,function(t){e[t.panelId]=A(t)})}else this._panels=null;return this},mount:function(t){t=t||{},c&&(this._mounted=!0),this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({position:t.position||[0,0],rotation:t.rotation||0,scale:t.scale||[1,1]}),this._transform=e.getLocalTransform(),this},eachCover:function(t,e){Ab(this._covers,t,e)},updateCovers:function(t){c&&rt(this._mounted),t=V(t,function(t){return D(A(Rb),t,!0)});var e=\"\\0-brush-index-\",n=this._covers,i=this._covers=[],r=this,o=this._creatingCover;return new ff(n,t,function(t,e){return a(t.__brushOption,e)},a).add(s).update(s).remove(function(t){n[t]!==o&&r.group.remove(n[t])}).execute(),this;function a(t,n){return(null!=t.id?t.id:e+n)+\"-\"+t.brushType}function s(e,a){var s=t[e];if(null!=a&&n[a]===o)i[e]=n[a];else{var l=i[e]=null!=a?(n[a].__brushOption=s,n[a]):Gb(r,Fb(r,s));jb(r,l)}}},unmount:function(){if(!c||this._mounted)return this.enableBrush(!1),Xb(this),this._zr.remove(this.group),c&&(this._mounted=!1),this},dispose:function(){this.unmount(),this.off()}},z(Vb,Ft);var cw={mousedown:function(t){if(this._dragging)dw.call(this,t);else if(!t.target||!t.target.draggable){sw(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=Zb(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);if(function(t,e,n){if(t._brushType){var i=t._zr,r=t._covers,o=Zb(t,e,n);if(!t._dragging)for(var a=0;a5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);\"none\"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&ww(this,\"mousemove\")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;\"jump\"===i&&this._throttledDispatchExpand.debounceNextCall(e.get(\"axisExpandDebounce\")),this._throttledDispatchExpand(\"none\"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:\"jump\"===i&&null})}}};function ww(t,e){var n=t._model;return n.get(\"axisExpandable\")&&n.get(\"axisExpandTriggerOn\")===e}$d(function(t){!function(t){if(!t.parallel){var e=!1;B(t.series,function(t){t&&\"parallel\"===t.type&&(e=!0)}),e&&(t.parallel=[{}])}}(t),function(t){B(Cr(t.parallelAxis),function(e){if(X(e)){var n=e.parallelIndex||0,i=Cr(t.parallel)[n];i&&i.parallelAxisDefault&&D(e,i.parallelAxisDefault,!1)}})}(t)}),Vh.extend({type:\"series.parallel\",dependencies:[\"parallel\"],visualColorAccessPath:\"lineStyle.color\",getInitialData:function(t,e){var n=this.getSource();return function(t,e){if(!t.encodeDefine){var n=e.ecModel.getComponent(\"parallel\",e.get(\"parallelIndex\"));if(n){var i=t.encodeDefine=ht();B(n.dimensions,function(t){var e=+t.replace(\"dim\",\"\");i.set(t,e)})}}}(n,this),Uf(n,this)},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,function(e,r){t===e&&i.push(n.getRawIndex(r))}),i},defaultOption:{zlevel:0,z:2,coordinateSystem:\"parallel\",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:\"solid\"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:\"linear\"}});var Mw=.3;function Sw(t,e,n,i){for(var r,o=[],a=0;a=t.length)return i;var o=[],a=e[r++];return B(i,function(t,e){o.push({key:e,values:n(t,r)})}),a?o.sort(function(t,e){return a(t.key,e.key)}):o}(function e(n,i){if(i>=t.length)return n;for(var r=-1,o=n.length,a=t[i++],s={},l={};++r0&&(h=o.getLayout().x+a,o.setLayout({x:h},!0)),l=o.getLayout().x+o.getLayout().dx+e;if((a=l-e-i)>0)for(h=o.getLayout().x-a,o.setLayout({x:h},!0),l=h,s=u-2;s>=0;--s)(a=(o=t[s]).getLayout().x+o.getLayout().dx+e-l)>0&&(h=o.getLayout().x-a,o.setLayout({x:h},!0)),l=o.getLayout().x}else{var c;for(t.sort(function(t,e){return t.getLayout().y-e.getLayout().y}),s=0;s0&&(c=o.getLayout().y+a,o.setLayout({y:c},!0)),l=o.getLayout().y+o.getLayout().dy+e;if((a=l-e-n)>0)for(c=o.getLayout().y-a,o.setLayout({y:c},!0),l=c,s=u-2;s>=0;--s)(a=(o=t[s]).getLayout().y+o.getLayout().dy+e-l)>0&&(c=o.getLayout().y-a,o.setLayout({y:c},!0)),l=o.getLayout().y}})}function Bw(t,e,n){B(t.slice().reverse(),function(t){B(t,function(t){if(t.outEdges.length){var i=Hw(t.outEdges,Vw,n)/Hw(t.outEdges,Ww,n);if(\"vertical\"===n){var r=t.getLayout().x+(i-Gw(t,n))*e;t.setLayout({x:r},!0)}else{var o=t.getLayout().y+(i-Gw(t,n))*e;t.setLayout({y:o},!0)}}})})}function Vw(t,e){return Gw(t.node2,e)*t.getValue()}function Fw(t,e){return Gw(t.node1,e)*t.getValue()}function Gw(t,e){return\"vertical\"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function Ww(t){return t.getValue()}function Hw(t,e,n){for(var i=0,r=t.length,o=-1;++o-1&&b.splice(w,1);var M=b.indexOf(v.node2);M>-1&&b.splice(M,1)}}if(\"right\"===a){for(var S=[],I=b,A=0;I.length;){for(f=0;f=0&&(e.depth>T&&(T=e.depth),\"vertical\"===o?t.setLayout({y:e.depth},!0):t.setLayout({x:e.depth},!0))}),function(t,e,n){B(t,function(t){if(\"vertical\"===n){var i=t.getLayout().y*e;t.setLayout({y:i},!0)}else{var r=t.getLayout().x*e;t.setLayout({x:r},!0)}})}(t,\"vertical\"===o?(r-n)/T:(i-n)/T,o)})(t,e,n,r,o,s,l),function(t,e,n,i,r,o,a){var s=zw().key(function(t){return\"vertical\"===t?function(t){return t.getLayout().y}:function(t){return t.getLayout().x}}(a)).sortKeys(function(t,e){return t-e}).entries(t).map(function(t){return t.values});(function(t,e,n,i,r,o,a){var s=[];B(e,function(t){var e=t.length,n=0,l=0;B(t,function(t){n+=t.getLayout().value}),l=\"vertical\"===a?(r-(e-1)*o)/n:(i-(e-1)*o)/n,s.push(l)}),s.sort(function(t,e){return t-e});var l=s[0];B(e,function(t){B(t,function(t,e){var n=t.getLayout().value*l;\"vertical\"===a?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))})}),B(n,function(t){var e=+t.getValue()*l;t.setLayout({dy:e},!0)})})(0,s,e,n,i,r,a),Rw(s,r,n,i,a);for(var l=1;o>0;o--)Bw(s,l*=.99,a),Rw(s,r,n,i,a),jw(s,l,a),Rw(s,r,n,i,a)}(t,e,o,r,i,a,s),function(t,e){B(t,function(t){\"vertical\"===e?(t.outEdges.sort(function(t,e){return t.node2.getLayout().x-e.node2.getLayout().x}),t.inEdges.sort(function(t,e){return t.node1.getLayout().x-e.node1.getLayout().x})):(t.outEdges.sort(function(t,e){return t.node2.getLayout().y-e.node2.getLayout().y}),t.inEdges.sort(function(t,e){return t.node1.getLayout().y-e.node1.getLayout().y}))}),B(t,function(t){var e=0,n=0;B(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),B(t.inEdges,function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy})})}(t,s)}(l,u,n,i,o,a,0!==G(l,function(t){return 0===t.getLayout().value}).length?0:t.get(\"layoutIterations\"),t.get(\"orient\"),t.get(\"nodeAlign\"))})}),of(function(t,e){t.eachSeriesByType(\"sankey\",function(t){var e=t.getGraph().nodes;if(e.length){var n=1/0,i=-1/0;B(e,function(t){var e=t.getLayout().value;ei&&(i=e)}),B(e,function(e){var r=new Bx({type:\"color\",mappingMethod:\"linear\",dataExtent:[n,i],visual:t.get(\"color\")}).mapValueToVisual(e.getLayout().value);e.setVisual(\"color\",r);var o=e.getModel().get(\"itemStyle.color\");null!=o&&e.setVisual(\"color\",o)})}})});var Yw={_baseAxisDim:null,getInitialData:function(t,e){var n,i,r=e.getComponent(\"xAxis\",this.get(\"xAxisIndex\")),o=e.getComponent(\"yAxis\",this.get(\"yAxisIndex\")),a=r.get(\"type\"),s=o.get(\"type\");\"category\"===a?(t.layout=\"horizontal\",n=r.getOrdinalMeta(),i=!0):\"category\"===s?(t.layout=\"vertical\",n=o.getOrdinalMeta(),i=!0):t.layout=t.layout||\"horizontal\";var l=[\"x\",\"y\"],u=\"horizontal\"===t.layout?0:1,h=this._baseAxisDim=l[u],c=l[1-u],d=[r,o],f=d[u].get(\"type\"),p=d[1-u].get(\"type\"),g=t.data;if(g&&i){var m=[];B(g,function(t,e){var n;t.value&&Y(t.value)?(n=t.value.slice(),t.value.unshift(e)):Y(t)?(n=t.slice(),t.unshift(e)):n=t,m.push(n)}),t.data=m}var v=this.defaultValueDimensions;return fv(this,{coordDimensions:[{name:h,type:mf(f),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:[\"base\"]},{name:c,type:mf(p),dimsDef:v.slice()}],dimensionsCount:v.length+1})},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+\"Axis\",this.get(t+\"AxisIndex\")).axis}};z(Vh.extend({type:\"series.boxplot\",dependencies:[\"xAxis\",\"yAxis\",\"grid\"],defaultValueDimensions:[{name:\"min\",defaultTooltip:!0},{name:\"Q1\",defaultTooltip:!0},{name:\"median\",defaultTooltip:!0},{name:\"Q3\",defaultTooltip:!0},{name:\"max\",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:\"cartesian2d\",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:\"#fff\",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:\"rgba(0,0,0,0.4)\"}},animationEasing:\"elasticOut\",animationDuration:800}}),Yw,!0);var Zw=[\"itemStyle\"],Uw=[\"emphasis\",\"itemStyle\"],Xw=(Jh.extend({type:\"boxplot\",render:function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a=\"horizontal\"===t.get(\"layout\")?1:0;i.diff(o).add(function(t){if(i.hasValue(t)){var e=qw(i.getItemLayout(t),i,t,a,!0);i.setItemGraphicEl(t,e),r.add(e)}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?Kw(s,n,i,t):n=qw(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)}).execute(),this._data=i},remove:function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(t){t&&e.remove(t)})},dispose:dt}),ya.extend({type:\"boxplotBoxPath\",shape:{},buildPath:function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i0?\"P\":\"N\",o=i.getVisual(\"borderColor\"+r)||i.getVisual(\"color\"+r),a=n.getModel(tM).getItemStyle(nM);e.useStyle(a),e.style.fill=null,e.style.stroke=o}var hM=[\"itemStyle\",\"borderColor\"],cM=[\"itemStyle\",\"borderColor0\"],dM=[\"itemStyle\",\"color\"],fM=[\"itemStyle\",\"color0\"],pM={seriesType:\"candlestick\",plan:qh(),performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.pipelineContext.large;if(n.setVisual({legendSymbol:\"roundRect\",colorP:r(1,t),colorN:r(-1,t),borderColorP:o(1,t),borderColorN:o(-1,t)}),!e.isSeriesFiltered(t))return!i&&{progress:function(t,e){for(var n;null!=(n=t.next());){var i=e.getItemModel(n),a=e.getItemLayout(n).sign;e.setItemVisual(n,{color:r(a,i),borderColor:o(a,i)})}}};function r(t,e){return e.get(t>0?dM:fM)}function o(t,e){return e.get(t>0?hM:cM)}}},gM=\"undefined\"!=typeof Float32Array?Float32Array:Array,mM={seriesType:\"candlestick\",plan:qh(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=function(t,e){var n,i=t.getBaseAxis(),r=\"category\"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=bl(tt(t.get(\"barMaxWidth\"),r),r),a=bl(tt(t.get(\"barMinWidth\"),1),r),s=t.get(\"barWidth\");return null!=s?bl(s,r):Math.max(Math.min(r/2,o),a)}(t,n),r=0,o=1,a=[\"x\",\"y\"],s=n.mapDimension(a[r]),l=n.mapDimension(a[o],!0),u=l[0],h=l[1],c=l[2],d=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(null==s||l.length<4))return{progress:t.pipelineContext.large?function(t,n){for(var i,a,l=new gM(5*t.count),f=0,p=[],g=[];null!=(a=t.next());){var m=n.get(s,a),v=n.get(u,a),y=n.get(h,a),x=n.get(c,a),_=n.get(d,a);isNaN(m)||isNaN(x)||isNaN(_)?(l[f++]=NaN,f+=4):(l[f++]=vM(n,a,v,y,h),p[r]=m,p[o]=x,i=e.dataToPoint(p,null,g),l[f++]=i?i[0]:NaN,l[f++]=i?i[1]:NaN,p[o]=_,i=e.dataToPoint(p,null,g),l[f++]=i?i[1]:NaN)}n.setLayout(\"largePoints\",l)}:function(t,n){for(var a;null!=(a=t.next());){var l=n.get(s,a),f=n.get(u,a),p=n.get(h,a),g=n.get(c,a),m=n.get(d,a),v=Math.min(f,p),y=Math.max(f,p),x=S(v,l),_=S(y,l),b=S(g,l),w=S(m,l),M=[];I(M,_,0),I(M,x,1),M.push(D(w),D(_),D(b),D(x)),n.setItemLayout(a,{sign:vM(n,a,f,p,h),initBaseline:f>p?_[o]:x[o],ends:M,brushRect:A(g,m,l)})}function S(t,n){var i=[];return i[r]=n,i[o]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function I(t,e,n){var o=e.slice(),a=e.slice();o[r]=As(o[r]+i/2,1,!1),a[r]=As(a[r]-i/2,1,!0),n?t.push(o,a):t.push(a,o)}function A(t,e,n){var a=S(t,n),s=S(e,n);return a[r]-=i/2,s[r]-=i/2,{x:a[0],y:a[1],width:o?i:s[0]-a[0],height:o?s[1]-a[1]:i}}function D(t){return t[r]=As(t[r],1),t}}}}};function vM(t,e,n,i,r){return n>i?-1:n0?t.get(r,e-1)<=i?1:-1:1}function yM(t,e){t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:\"stroke\"===e.brushType?e.color:null,fill:\"fill\"===e.brushType?e.color:null}})})}function xM(t,e){On.call(this);var n=new Mg(t,e),i=new On;this.add(n),this.add(i),i.beforeUpdate=function(){this.attr(n.getScale())},this.updateData(t,e)}$d(function(t){t&&Y(t.series)&&B(t.series,function(t){X(t)&&\"k\"===t.type&&(t.type=\"candlestick\")})}),of(pM),rf(mM),Vh.extend({type:\"series.effectScatter\",dependencies:[\"grid\",\"polar\"],getInitialData:function(t,e){return Uf(this.getSource(),this)},brushSelector:\"point\",defaultOption:{coordinateSystem:\"cartesian2d\",zlevel:0,z:2,legendHoverLink:!0,effectType:\"ripple\",progressive:0,showEffectOn:\"render\",rippleEffect:{period:4,scale:2.5,brushType:\"fill\"},symbolSize:10}});var _M=xM.prototype;_M.stopEffectAnimation=function(){this.childAt(1).removeAll()},_M.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=this.childAt(1),r=0;r<3;r++){var o=Jp(e,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var a=-r/3*t.period+t.effectOffset;o.animate(\"\",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(a).start(),o.animateStyle(!0).when(t.period,{opacity:0}).delay(a).start(),i.add(o)}yM(i,t)},_M.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=[\"symbolType\",\"period\",\"rippleScale\"],r=0;r0&&n[0]instanceof Array))throw new Error(\"Invalid coords \"+JSON.stringify(n)+\". Lines must have 2d coords array in data item.\");return n},getLineCoordsCount:function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},getLineCoords:function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;rn&&c)throw new Error(\"Invalid data format.\")}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},getInitialData:function(t,e){if(c&&!Uu.get(t.coordinateSystem))throw new Error(\"Unkown coordinate system \"+t.coordinateSystem);var n=new Tf([\"value\"],this);return n.hasItemOption=!1,n.initData(t.data,[],function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[r]:o:void 0}),n},formatTooltip:function(t){var e=this.getData().getItemModel(t),n=e.get(\"name\");if(n)return n;var i=e.get(\"fromName\"),r=e.get(\"toName\"),o=[];return null!=i&&o.push(i),null!=r&&o.push(r),jl(o.join(\" > \"))},preventIncremental:function(){return!!this.get(\"effect.show\")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get(\"progressive\"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get(\"progressiveThreshold\"):t},defaultOption:{coordinateSystem:\"geo\",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:[\"none\",\"none\"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:\"circle\",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,label:{show:!1,position:\"end\"},lineStyle:{opacity:.5}}});function IM(t,e,n){On.call(this),this.add(this.createLine(t,e,n)),this._updateEffectSymbol(t,e)}var AM=IM.prototype;function DM(t,e,n){On.call(this),this._createPolyline(t,e,n)}AM.createLine=function(t,e,n){return new k_(t,e,n)},AM._updateEffectSymbol=function(t,e){var n=t.getItemModel(e).getModel(\"effect\"),i=n.get(\"symbolSize\"),r=n.get(\"symbol\");Y(i)||(i=[i,i]);var o=n.get(\"color\")||t.getItemVisual(e,\"color\"),a=this.childAt(1);this._symbolType!==r&&(this.remove(a),(a=Jp(r,-.5,-.5,1,1,o)).z2=100,a.culling=!0,this.add(a)),a&&(a.setStyle(\"shadowColor\",o),a.setStyle(n.getItemStyle([\"color\"])),a.attr(\"scale\",i),a.setColor(o),a.attr(\"scale\",i),this._symbolType=r,this._updateEffectAnimation(t,n,e))},AM._updateEffectAnimation=function(t,e,n){var i=this.childAt(1);if(i){var r=this,o=t.getItemLayout(n),a=1e3*e.get(\"period\"),s=e.get(\"loop\"),l=e.get(\"constantSpeed\"),u=$(e.get(\"delay\"),function(e){return e/t.count()*a/3}),h=\"function\"==typeof u;if(i.ignore=!0,this.updateAnimationPoints(i,o),l>0&&(a=this.getLineLength(i)/l*1e3),a!==this._period||s!==this._loop){i.stopAnimation();var c=u;h&&(c=u(n)),i.__t>0&&(c=-a*i.__t),i.__t=0;var d=i.animate(\"\",s).when(a,{__t:1}).delay(c).during(function(){r.updateSymbolPosition(i)});s||d.done(function(){r.remove(i)}),d.start()}this._period=a,this._loop=s}},AM.getLineLength=function(t){return Ct(t.__p1,t.__cp1)+Ct(t.__cp1,t.__p2)},AM.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},AM.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},AM.updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t,o=t.position,a=_o,s=bo;o[0]=a(e[0],i[0],n[0],r),o[1]=a(e[1],i[1],n[1],r);var l=s(e[0],i[0],n[0],r),u=s(e[1],i[1],n[1],r);t.rotation=-Math.atan2(u,l)-Math.PI/2,t.ignore=!1},AM.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel(\"effect\");this._updateEffectAnimation(t,n,e)},E(IM,On);var TM=DM.prototype;function CM(t,e,n){IM.call(this,t,e,n),this._lastFrame=0,this._lastFramePercent=0}TM._createPolyline=function(t,e,n){var i=t.getItemLayout(e),r=new Ua({shape:{points:i}});this.add(r),this._updateCommonStl(t,e,n)},TM.updateData=function(t,e,n){var i=t.hostModel;$s(this.childAt(0),{shape:{points:t.getItemLayout(e)}},i,e),this._updateCommonStl(t,e,n)},TM._updateCommonStl=function(t,e,n){var i=this.childAt(0),r=t.getItemModel(e),o=t.getItemVisual(e,\"color\"),a=n&&n.lineStyle,s=n&&n.hoverLineStyle;n&&!t.hasItemOption||(a=r.getModel(\"lineStyle\").getLineStyle(),s=r.getModel(\"emphasis.lineStyle\").getLineStyle()),i.useStyle(L({strokeNoScale:!0,fill:\"none\",stroke:o},a)),i.hoverStyle=s,Fs(this)},TM.updateLayout=function(t,e){this.childAt(0).setShape(\"points\",t.getItemLayout(e))},E(DM,On);var LM=CM.prototype;LM.createLine=function(t,e,n){return new DM(t,e,n)},LM.updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,r=1;r=0&&!(i[a]<=e);a--);a=Math.min(a,r-2)}else{for(var a=o;ae);a++);a=Math.min(a-1,r-2)}Pt(t.position,n[a],n[a+1],(e-i[a])/(i[a+1]-i[a]));var s=n[a+1][0]-n[a][0],l=n[a+1][1]-n[a][1];t.rotation=-Math.atan2(l,s)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=e,t.ignore=!1}},E(CM,IM);var kM=_s({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var n=e.segs,i=e.curveness;if(e.polyline)for(var r=0;r0){t.moveTo(n[r++],n[r++]);for(var a=1;a0){var c=(s+u)/2-(l-h)*i,d=(l+h)/2-(u-s)*i;t.quadraticCurveTo(c,d,u,h)}else t.lineTo(u,h)}},findDataIndex:function(t,e){var n=this.shape,i=n.segs,r=n.curveness;if(n.polyline)for(var o=0,a=0;a0)for(var l=i[a++],u=i[a++],h=1;h0){if(ta(l,u,(l+c)/2-(u-d)*r,(u+d)/2-(c-l)*r,c,d))return o}else if(Jo(l,u,c,d))return o;o++}return-1}});function PM(){this.group=new On}var OM=PM.prototype;OM.isPersistent=function(){return!this._incremental},OM.updateData=function(t){this.group.removeAll();var e=new kM({rectHover:!0,cursor:\"default\"});e.setShape({segs:t.getLayout(\"linesPoints\")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},OM.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new hs({silent:!0})),this.group.add(this._incremental)):this._incremental=null},OM.incrementalUpdate=function(t,e){var n=new kM;n.setShape({segs:e.getLayout(\"linesPoints\")}),this._setCommon(n,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor=\"default\",n.__startIndex=t.start,this.group.add(n))},OM.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},OM._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get(\"polyline\"),curveness:i.get(\"lineStyle.curveness\")}),t.useStyle(i.getModel(\"lineStyle\").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual(\"color\");r&&t.setStyle(\"stroke\",r),t.setStyle(\"fill\"),n||(t.seriesIndex=i.seriesIndex,t.on(\"mousemove\",function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>0&&(t.dataIndex=n+t.__startIndex)}))},OM._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var NM={seriesType:\"lines\",plan:qh(),reset:function(t){var e=t.coordinateSystem,n=t.get(\"polyline\"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s,l=r.end-r.start;if(n){for(var u=0,h=r.start;h0){var I=o(v)?s:l;v>0&&(v=v*M+w),x[_++]=I[S],x[_++]=I[S+1],x[_++]=I[S+2],x[_++]=I[S+3]*v*256}else _+=4}return c.putImageData(y,0,0),h},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=P()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext(\"2d\");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor=\"#000\",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},_getGradient:function(t,e,n){for(var i=this._gradientPixels,r=i[n]||(i[n]=new Uint8ClampedArray(1024)),o=[0,0,0,0],a=0,s=0;s<256;s++)e[n](s/255,!0,o),r[a++]=o[0],r[a++]=o[1],r[a++]=o[2],r[a++]=o[3];return r}},cf({type:\"heatmap\",render:function(t,e,n){var i;if(e.eachComponent(\"visualMap\",function(e){e.eachTargetSeries(function(n){n===t&&(i=e)})}),c&&!i)throw new Error(\"Heatmap must use with visualMap\");this.group.removeAll(),this._incrementalDisplayable=null;var r=t.coordinateSystem;\"cartesian2d\"===r.type||\"calendar\"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):function(t){var e=t.dimensions;return\"lng\"===e[0]&&\"lat\"===e[1]}(r)&&this._renderOnGeo(r,t,i,n)},incrementalPrepareRender:function(t,e,n){this.group.removeAll()},incrementalRender:function(t,e,n,i){e.coordinateSystem&&this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,e,n,i,r){var o,a,s=t.coordinateSystem;if(\"cartesian2d\"===s.type){var l=s.getAxis(\"x\"),u=s.getAxis(\"y\");if(c){if(\"category\"!==l.type||\"category\"!==u.type)throw new Error(\"Heatmap on cartesian must have two category axes\");if(!l.onBand||!u.onBand)throw new Error(\"Heatmap on cartesian must have two axes with boundaryGap true\")}o=l.getBandWidth(),a=u.getBandWidth()}for(var h=this.group,d=t.getData(),f=t.getModel(\"itemStyle\").getItemStyle([\"color\"]),p=t.getModel(\"emphasis.itemStyle\").getItemStyle(),g=t.getModel(\"label\"),m=t.getModel(\"emphasis.label\"),v=s.type,y=\"cartesian2d\"===v?[d.mapDimension(\"x\"),d.mapDimension(\"y\"),d.mapDimension(\"value\")]:[d.mapDimension(\"time\"),d.mapDimension(\"value\")],x=n;x=e[0]&&t<=e[1]}}(y,n.option.range):function(t,e,n){var i=t[1]-t[0],r=(e=V(e,function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}})).length,o=0;return function(t){for(var i=o;i=0;i--){var a;if((a=e[i].interval)[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i0?1:o<0?-1:0}(n,o,r,i,c),function(t,e,n,i,r,o,a,s,l,u){var h=l.valueDim,c=l.categoryDim,d=Math.abs(n[c.wh]),f=t.getItemVisual(e,\"symbolSize\");Y(f)?f=f.slice():(null==f&&(f=\"100%\"),f=[f,f]),f[c.index]=bl(f[c.index],d),f[h.index]=bl(f[h.index],i?d:Math.abs(o)),u.symbolSize=f,(u.symbolScale=[f[0]/s,f[1]/s])[h.index]*=(l.isHorizontal?-1:1)*a}(t,e,r,o,0,c.boundingLength,c.pxSign,u,i,c),function(t,e,n,i,r){var o=t.get(FM)||0;o&&(WM.attr({scale:e.slice(),rotation:n}),WM.updateTransform(),o/=WM.getLineScale(),o*=e[i.valueDim.index]),r.valueLineWidth=o}(n,c.symbolScale,l,i,c);var d=c.symbolSize,f=n.get(\"symbolOffset\");return Y(f)&&(f=[bl(f[0],d[0]),bl(f[1],d[1])]),function(t,e,n,i,r,o,a,s,l,u,h,c){var d=h.categoryDim,f=h.valueDim,p=c.pxSign,g=Math.max(e[f.index]+s,0),m=g;if(i){var v=Math.abs(l),y=$(t.get(\"symbolMargin\"),\"15%\")+\"\",x=!1;y.lastIndexOf(\"!\")===y.length-1&&(x=!0,y=y.slice(0,y.length-1)),y=bl(y,e[f.index]);var _=Math.max(g+2*y,0),b=x?0:2*y,w=Rl(i),M=w?i:aS((v+b)/_);_=g+2*(y=(v-M*g)/2/(x?M:M-1)),b=x?0:2*y,w||\"fixed\"===i||(M=u?aS((Math.abs(u)+b)/_):0),m=M*_-b,c.repeatTimes=M,c.symbolMargin=y}var S=p*(m/2),I=c.pathPosition=[];I[d.index]=n[d.wh]/2,I[f.index]=\"start\"===a?S:\"end\"===a?l-S:l/2,o&&(I[0]+=o[0],I[1]+=o[1]);var A=c.bundlePosition=[];A[d.index]=n[d.xy],A[f.index]=n[f.xy];var D=c.barRectShape=C({},n);D[f.wh]=p*Math.max(Math.abs(n[f.wh]),Math.abs(I[f.index]+S)),D[d.wh]=n[d.wh];var T=c.clipShape={};T[d.xy]=-n[d.xy],T[d.wh]=h.ecSize[d.wh],T[f.xy]=0,T[f.wh]=n[f.wh]}(n,d,r,o,0,f,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,i,c),c}function jM(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function YM(t){var e=t.symbolPatternSize,n=Jp(t.symbolType,-e/2,-e/2,e,e,t.color);return n.attr({culling:!0}),\"image\"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function ZM(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,h=0,c=o[e.valueDim.index]+a+2*n.symbolMargin;for(iS(t,function(t){t.__pictorialAnimationIndex=h,t.__pictorialRepeatTimes=u,h0:i<0)&&(r=u-1-t),e[l.index]=c*(r-u/2+.5)+s[l.index],{position:e,scale:n.symbolScale.slice(),rotation:n.rotation}}function g(){iS(t,function(t){t.trigger(\"emphasis\")})}function m(){iS(t,function(t){t.trigger(\"normal\")})}}function UM(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?rS(o,null,{position:n.pathPosition.slice(),scale:n.symbolScale.slice(),rotation:n.rotation},n,i):(o=t.__pictorialMainPath=YM(n),r.add(o),rS(o,{position:n.pathPosition.slice(),scale:[0,0],rotation:n.rotation},{scale:n.symbolScale.slice()},n,i),o.on(\"mouseover\",function(){this.trigger(\"emphasis\")}).on(\"mouseout\",function(){this.trigger(\"normal\")})),$M(o,n)}function XM(t,e,n){var i=C({},e.barRectShape),r=t.__pictorialBarRect;r?rS(r,null,{shape:i},e,n):(r=t.__pictorialBarRect=new $a({z2:2,shape:i,silent:!0,style:{stroke:\"transparent\",fill:\"transparent\",lineWidth:0}}),t.add(r))}function qM(t,e,n,i){if(n.symbolClip){var r=t.__pictorialClipPath,o=C({},n.clipShape),a=e.valueDim,s=n.animationModel,l=n.dataIndex;if(r)$s(r,{shape:o},s,l);else{o[a.wh]=0,r=new $a({shape:o}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var u={};u[a.wh]=n.clipShape[a.wh],sl[i?\"updateProps\":\"initProps\"](r,{shape:u},s,l)}}}function KM(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=QM,n.isAnimationEnabled=JM,n}function QM(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function JM(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow(\"animation\")}function $M(t,e){t.off(\"emphasis\").off(\"normal\");var n=e.symbolScale.slice();e.hoverAnimation&&t.on(\"emphasis\",function(){this.animateTo({scale:[1.1*n[0],1.1*n[1]]},400,\"elasticOut\")}).on(\"normal\",function(){this.animateTo({scale:n.slice()},400,\"elasticOut\")})}function tS(t,e,n,i){var r=new On,o=new On;return r.add(o),r.__pictorialBundle=o,o.attr(\"position\",n.bundlePosition.slice()),n.symbolRepeat?ZM(r,e,n):UM(r,0,n),XM(r,n,i),qM(r,e,n,i),r.__pictorialShapeStr=nS(t,n),r.__pictorialSymbolMeta=n,r}function eS(t,e,n,i){var r=i.__pictorialBarRect;r&&(r.style.text=null);var o=[];iS(i,function(t){o.push(t)}),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),B(o,function(t){$s(t,{scale:[0,0]},n,e,function(){i.parent&&i.parent.remove(i)})}),t.setItemGraphicEl(e,null)}function nS(t,e){return[t.getItemVisual(e.dataIndex,\"symbol\")||\"none\",!!e.symbolRepeat,!!e.symbolClip].join(\":\")}function iS(t,e,n){B(t.__pictorialBundle.children(),function(i){i!==t.__pictorialBarRect&&e.call(n,i)})}function rS(t,e,n,i,r,o){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&sl[r?\"updateProps\":\"initProps\"](t,n,i.animationModel,i.dataIndex,o)}function oS(t,e,n){var i=n.color,r=n.dataIndex,o=n.itemModel,a=o.getModel(\"itemStyle\").getItemStyle([\"color\"]),s=o.getModel(\"emphasis.itemStyle\").getItemStyle(),l=o.getShallow(\"cursor\");iS(t,function(t){t.setColor(i),t.setStyle(L({fill:i,opacity:n.opacity},a)),Fs(t,s),l&&(t.cursor=l),t.z2=n.z2});var u={},h=(e.valueDim.posDesc[+(n.boundingLength>0)],t.__pictorialBarRect);ev(h.style,u,o,i,e.seriesModel,r),Fs(h,u)}function aS(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}cf({type:\"pictorialBar\",render:function(t,e,n){var i=this.group,r=t.getData(),o=this._data,a=t.coordinateSystem,s=!!a.getBaseAxis().isHorizontal(),l=a.grid.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:GM[+s],categoryDim:GM[1-s]};return r.diff(o).add(function(t){if(r.hasValue(t)){var e=KM(r,t),n=HM(r,t,e,u),o=tS(r,u,n);r.setItemGraphicEl(t,o),i.add(o),oS(o,u,n)}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var a=KM(r,t),s=HM(r,t,a,u),l=nS(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?function(t,e,n){var i=n.animationModel,r=n.dataIndex;$s(t.__pictorialBundle,{position:n.bundlePosition.slice()},i,r),n.symbolRepeat?ZM(t,e,n,!0):UM(t,0,n,!0),XM(t,n,!0),qM(t,e,n,!0)}(n,u,s):n=tS(r,u,s,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),oS(n,u,s)}else i.remove(n)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&eS(o,t,e.__pictorialSymbolMeta.animationModel,e)}).execute(),this._data=r,this.group},dispose:dt,remove:function(t,e){var n=this.group,i=this._data;t.get(\"animation\")?i&&i.eachItemGraphicEl(function(e){eS(i,e.dataIndex,t,e)}):n.removeAll()}}),rf(j(gp,\"pictorialBar\")),of(am(\"pictorialBar\",\"roundRect\"));var sS=function(t,e,n,i,r){vg.call(this,t,e,n),this.type=i||\"value\",this.position=r||\"bottom\",this.orient=null};function lS(t,e,n){this.dimension=\"single\",this.dimensions=[\"single\"],this._axis=null,this._rect,this._init(t,e,n),this.model=t}function uS(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=[\"vertical\"===a?u.vertical[o]:l[0],\"horizontal\"===a?u.horizontal[o]:l[3]],r.rotation=Math.PI/2*{horizontal:0,vertical:1}[a],r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],t.get(\"axisTick.inside\")&&(r.tickDirection=-r.tickDirection),$(e.labelInside,t.get(\"axisLabel.inside\"))&&(r.labelDirection=-r.labelDirection);var h=e.rotate;return null==h&&(h=t.get(\"axisLabel.rotate\")),r.labelRotation=\"top\"===o?-h:h,r.z2=1,r}sS.prototype={constructor:sS,model:null,isHorizontal:function(){var t=this.position;return\"top\"===t||\"bottom\"===t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},E(sS,vg),lS.prototype={type:\"singleAxis\",axisPointerEnabled:!0,constructor:lS,_init:function(t,e,n){var i=this.dimension,r=new sS(i,Rp(t),[0,0],t.get(\"type\"),t.get(\"position\")),o=\"category\"===r.type;r.onBand=o&&t.get(\"boundaryGap\"),r.inverse=t.get(\"inverse\"),r.orient=t.get(\"orient\"),t.axis=r,r.model=t,r.coordinateSystem=this,this._axis=r},update:function(t,e){t.eachSeries(function(t){if(t.coordinateSystem===this){var e=t.getData();B(e.mapDimension(this.dimension,!0),function(t){this._axis.scale.unionExtentFromData(e,t)},this),zp(this._axis.scale,this._axis.model)}},this)},resize:function(t,e){this._rect=su({left:t.get(\"left\"),top:t.get(\"top\"),right:t.get(\"right\"),bottom:t.get(\"bottom\"),width:t.get(\"width\"),height:t.get(\"height\")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],r=e.reverse?1:0;e.setExtent(i[r],i[1-r]),this._updateAxisTransform(e,n?t.x:t.y)},_updateAxisTransform:function(t,e){var n=t.getExtent(),i=n[0]+n[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return i-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var e=this.getRect(),n=this.getAxis();return\"horizontal\"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t[\"horizontal\"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),n=this.getRect(),i=[],r=\"horizontal\"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i}},Uu.register(\"single\",{create:function(t,e){var n=[];return t.eachComponent(\"singleAxis\",function(i,r){var o=new lS(i,t,e);o.name=\"single_\"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(e){if(\"singleAxis\"===e.get(\"coordinateSystem\")){var n=t.queryComponents({mainType:\"singleAxis\",index:e.get(\"singleAxisIndex\"),id:e.get(\"singleAxisId\")})[0];e.coordinateSystem=n&&n.coordinateSystem}}),n},dimensions:lS.prototype.dimensions});var hS=[\"axisLine\",\"axisTickLabel\",\"axisName\"],cS=Zm.extend({type:\"singleAxis\",axisPointerClass:\"SingleAxisPointer\",render:function(t,e,n,i){var r=this.group;r.removeAll();var o=uS(t),a=new Lm(t,o);B(hS,a.add,a),r.add(a.getGroup()),t.get(\"splitLine.show\")&&this._splitLine(t),cS.superCall(this,\"render\",t,e,n,i)},_splitLine:function(t){var e=t.axis;if(!e.scale.isBlank()){var n=t.getModel(\"splitLine\"),i=n.getModel(\"lineStyle\"),r=i.get(\"width\"),o=i.get(\"color\");o=o instanceof Array?o:[o];for(var a=t.coordinateSystem.getRect(),s=e.isHorizontal(),l=[],u=0,h=e.getTicksCoords({tickModel:n}),c=[],d=[],f=0;f=0&&s<0)&&(a=p,s=f,r=u,o.length=0),pS(h,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&C(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s,r),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function yS(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function xS(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=Ym(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(\"label.precision\"),formatter:s.get(\"label.formatter\")},seriesDataIndices:r.slice()})}}function _S(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+\"AxisIndex\"]=e.componentIndex,n.axisName=n[i+\"AxisName\"]=e.name,n.axisId=n[i+\"AxisId\"]=e.id,n}function bS(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}lf({type:\"axisPointer\",coordSysAxesInfo:null,defaultOption:{show:\"auto\",triggerOn:null,zlevel:0,z:50,type:\"line\",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:\"#aaa\",width:1,type:\"solid\"},shadowStyle:{color:\"rgba(150,150,150,0.3)\"},label:{show:!0,formatter:null,precision:\"auto\",margin:3,color:\"#fff\",padding:[5,7,5,7],backgroundColor:\"auto\",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:\"#aaa\"},handle:{show:!1,icon:\"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z\",size:45,margin:50,color:\"#333\",shadowBlur:3,shadowColor:\"#aaa\",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}});var wS=Br(),MS=B;function SS(t,e,n){if(!p.node){var i=e.getZr();wS(i).records||(wS(i).records={}),function(t,e){function n(n,i){t.on(n,function(n){var r=function(t){var e={showTip:[],hideTip:[]};return{dispatchAction:function n(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))},pendings:e}}(e);MS(wS(t).records,function(t){t&&i(t,n,r.dispatchAction)}),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)})}wS(t).initialized||(wS(t).initialized=!0,n(\"click\",j(AS,\"click\")),n(\"mousemove\",j(AS,\"mousemove\")),n(\"globalout\",IS))}(i,e),(wS(i).records[t]||(wS(i).records[t]={})).handler=n}}function IS(t,e,n){t.handler(\"leave\",null,n)}function AS(t,e,n,i){e.handler(t,n,i)}function DS(t,e){if(!p.node){var n=e.getZr();(wS(n).records||{})[t]&&(wS(n).records[t]=null)}}var TS=uf({type:\"axisPointer\",render:function(t,e,n){var i=e.getComponent(\"tooltip\"),r=t.get(\"triggerOn\")||i&&i.get(\"triggerOn\")||\"mousemove|click\";SS(\"axisPointer\",n,function(t,e,n){\"none\"!==r&&(\"leave\"===t||r.indexOf(t)>=0)&&n({type:\"updateAxisPointer\",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},remove:function(t,e){DS(e.getZr(),\"axisPointer\"),TS.superApply(this._model,\"remove\",arguments)},dispose:function(t,e){DS(\"axisPointer\",e),TS.superApply(this._model,\"dispose\",arguments)}}),CS=Br(),LS=A,kS=H;function PS(){}function OS(t,e,n,i){(function t(e,n){if(X(e)&&X(n)){var i=!0;return B(n,function(n,r){i=i&&t(e[r],n)}),!!i}return e===n})(CS(n).lastProp,i)||(CS(n).lastProp=i,e?$s(n,i,t):(n.stopAnimation(),n.attr(i)))}function NS(t,e){t[e.get(\"label.show\")?\"show\":\"hide\"]()}function ES(t){return{position:t.position.slice(),rotation:t.rotation||0}}function zS(t,e,n){var i=e.get(\"z\"),r=e.get(\"zlevel\");t&&t.traverse(function(t){\"group\"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}function RS(t){var e,n=t.get(\"type\"),i=t.getModel(n+\"Style\");return\"line\"===n?(e=i.getLineStyle()).fill=null:\"shadow\"===n&&((e=i.getAreaStyle()).stroke=null),e}function BS(t,e,n,i,r){var o=VS(n.get(\"value\"),e.axis,e.ecModel,n.get(\"seriesDataIndices\"),{precision:n.get(\"label.precision\"),formatter:n.get(\"label.formatter\")}),a=n.getModel(\"label\"),s=Gl(a.get(\"padding\")||0),l=a.getFont(),u=yi(o,l),h=r.position,c=u.width+s[1]+s[3],d=u.height+s[0]+s[2],f=r.align;\"right\"===f&&(h[0]-=c),\"center\"===f&&(h[0]-=c/2);var p=r.verticalAlign;\"bottom\"===p&&(h[1]-=d),\"middle\"===p&&(h[1]-=d/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(h,c,d,i);var g=a.get(\"backgroundColor\");g&&\"auto\"!==g||(g=e.get(\"axisLine.lineStyle.color\")),t.label={shape:{x:0,y:0,width:c,height:d,r:a.get(\"borderRadius\")},position:h.slice(),style:{text:o,textFont:l,textFill:a.getTextColor(),textPosition:\"inside\",fill:g,stroke:a.get(\"borderColor\")||\"transparent\",lineWidth:a.get(\"borderWidth\")||0,shadowBlur:a.get(\"shadowBlur\"),shadowColor:a.get(\"shadowColor\"),shadowOffsetX:a.get(\"shadowOffsetX\"),shadowOffsetY:a.get(\"shadowOffsetY\")},z2:10}}function VS(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel(t,{precision:r.precision}),a=r.formatter;if(a){var s={value:Vp(e,t),seriesData:[]};B(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)}),U(a)?o=a.replace(\"{value}\",o):Z(a)&&(o=a(s))}return o}function FS(t,e,n){var i=se();return de(i,i,n.rotation),ce(i,i,n.position),nl([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function GS(t,e,n,i,r,o){var a=Lm.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(\"label.margin\"),BS(e,i,r,o,{position:FS(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function WS(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function HS(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function jS(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}PS.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,n,i){var r=e.get(\"value\"),o=e.get(\"status\");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||\"hide\"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var c=j(OS,e,h);this.updatePointerEl(a,l,c,e),this.updateLabelEl(a,l,c,e)}else a=this._group=new On,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);zS(a,e,!0),this._renderHandle(r)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var n=e.get(\"animation\"),i=t.axis,r=\"category\"===i.type,o=e.get(\"snap\");if(!o&&!r)return!1;if(\"auto\"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=Hm(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},makeElOption:function(t,e,n,i,r){},createPointerEl:function(t,e,n,i){var r=e.pointer;if(r){var o=CS(t).pointerEl=new sl[r.type](LS(e.pointer));t.add(o)}},createLabelEl:function(t,e,n,i){if(e.label){var r=CS(t).labelEl=new $a(LS(e.label));t.add(r),NS(r,i)}},updatePointerEl:function(t,e,n){var i=CS(t).pointerEl;i&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,n,i){var r=CS(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{shape:e.label.shape,position:e.label.position}),NS(r,i))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel(\"handle\"),a=n.get(\"status\");if(!o.get(\"show\")||!a||\"hide\"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=al(o.get(\"icon\"),{cursor:\"move\",draggable:!0,onmousemove:function(t){qt(t.event)},onmousedown:kS(this._onHandleDragMove,this,0,0),drift:kS(this._onHandleDragMove,this),ondragend:kS(this._onHandleDragEnd,this)}),i.add(r)),zS(r,n,!1),r.setStyle(o.getItemStyle(null,[\"color\",\"borderColor\",\"borderWidth\",\"opacity\",\"shadowColor\",\"shadowBlur\",\"shadowOffsetX\",\"shadowOffsetY\"]));var s=o.get(\"size\");Y(s)||(s=[s,s]),r.attr(\"scale\",[s[0]/2,s[1]/2]),uc(this,\"_doDispatchAxisPointer\",o.get(\"throttle\")||0,\"fixRate\"),this._moveHandleToValue(t,e)}},_moveHandleToValue:function(t,e){OS(this._axisPointerModel,!e&&this._moveAnimation,this._handle,ES(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(ES(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(ES(i)),CS(n).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:\"updateAxisPointer\",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},_onHandleDragEnd:function(t){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(\"value\");this._moveHandleToValue(e),this._api.dispatchAction({type:\"hideTip\"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}},PS.prototype.constructor=PS,Ur(PS);var YS=PS.extend({makeElOption:function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get(\"type\"),l=ZS(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&\"none\"!==s){var h=RS(i),c=US[s](o,u,l);c.style=h,t.graphicKey=c.type,t.pointer=c}GS(e,t,Km(a.model,n),n,i,r)},getHandleTransform:function(t,e,n){var i=Km(e.axis.grid.model,e,{labelInside:!1});return i.labelMargin=n.get(\"handle.margin\"),{position:FS(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=ZS(o,r).getOtherAxis(r).getGlobalExtent(),l=\"x\"===r.dim?0:1,u=t.position;u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var h=(s[1]+s[0])/2,c=[h,h];return c[l]=u[l],{position:u,rotation:t.rotation,cursorPoint:c,tooltipOption:[{verticalAlign:\"middle\"},{align:\"center\"}][l]}}});function ZS(t,e){var n={};return n[e.dim+\"AxisIndex\"]=e.index,t.getCartesian(n)}var US={line:function(t,e,n){return{type:\"Line\",subPixelOptimize:!0,shape:WS([e,n[0]],[e,n[1]],XS(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:\"Rect\",shape:HS([e-i/2,n[0]],[i,r],XS(t))}}};function XS(t){return\"x\"===t.dim?0:1}Zm.registerAxisPointerClass(\"CartesianAxisPointer\",YS),$d(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Y(e)&&(t.axisPointer.link=[e])}}),tf(dd.PROCESSOR.STATISTIC,function(t,e){t.getComponent(\"axisPointer\").coordSysAxesInfo=Fm(t,e)}),ef({type:\"updateAxisPointer\",event:\"updateAxisPointer\",update:\":updateAxisPointer\"},function(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||H(n.dispatchAction,n),s=e.getComponent(\"axisPointer\").coordSysAxesInfo;if(s){bS(r)&&(r=fS({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=bS(r),u=o.axesInfo,h=s.axesInfo,c=\"leave\"===i||bS(r),d={},f={},p={list:[],map:{}},g={showPointer:gS(yS,f),showTooltip:gS(xS,p)};pS(s.coordSysMap,function(t,e){var n=l||t.containPoint(r);pS(s.coordSysAxesInfo[e],function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(u,t);if(!c&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&vS(t,a,g,!1,d)}})});var m={};return pS(h,function(t,e){var n=t.linkGroup;n&&!f[e]&&pS(n.axesInfo,function(e,i){var r=f[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,_S(e),_S(t)))),m[t.key]=o}})}),pS(m,function(t,e){vS(h[e],t,g,!0,d)}),function(t,e,n){var i=n.axesInfo=[];pS(e,function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status=\"show\"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status=\"hide\"),\"show\"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}(f,h,d),function(t,e,n,i){if(!bS(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:\"showTip\",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:\"hideTip\"})}(p,r,t,a),function(t,e,n){var i=n.getZr(),r=mS(i).axisPointerLastHighlights||{},o=mS(i).axisPointerLastHighlights={};pS(t,function(t,e){var n=t.axisPointerModel.option;\"show\"===n.status&&pS(n.seriesDataIndices,function(t){var e=t.seriesIndex+\" | \"+t.dataIndex;o[e]=t})});var a=[],s=[];B(r,function(t,e){!o[e]&&s.push(t)}),B(o,function(t,e){!r[e]&&a.push(t)}),s.length&&n.dispatchAction({type:\"downplay\",escapeConnect:!0,batch:s}),a.length&&n.dispatchAction({type:\"highlight\",escapeConnect:!0,batch:a})}(h,0,n),d}});var qS=[\"x\",\"y\"],KS=[\"width\",\"height\"],QS=PS.extend({makeElOption:function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=tI(a,1-$S(o)),l=a.dataToPoint(e)[0],u=i.get(\"type\");if(u&&\"none\"!==u){var h=RS(i),c=JS[u](o,l,s);c.style=h,t.graphicKey=c.type,t.pointer=c}GS(e,t,uS(n),n,i,r)},getHandleTransform:function(t,e,n){var i=uS(e,{labelInside:!1});return i.labelMargin=n.get(\"handle.margin\"),{position:FS(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,a=$S(r),s=tI(o,a),l=t.position;l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=tI(o,1-a),h=(u[1]+u[0])/2,c=[h,h];return c[a]=l[a],{position:l,rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:\"middle\"}}}}),JS={line:function(t,e,n){return{type:\"Line\",subPixelOptimize:!0,shape:WS([e,n[0]],[e,n[1]],$S(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:\"Rect\",shape:HS([e-i/2,n[0]],[i,r],$S(t))}}};function $S(t){return t.isHorizontal()?0:1}function tI(t,e){var n=t.getRect();return[n[qS[e]],n[qS[e]]+n[KS[e]]]}Zm.registerAxisPointerClass(\"SingleAxisPointer\",QS),uf({type:\"single\"});var eI=Vh.extend({type:\"series.themeRiver\",dependencies:[\"singleAxis\"],nameMap:null,init:function(t){eI.superApply(this,\"init\",arguments),this.legendDataProvider=function(){return this.getRawData()}},fixData:function(t){for(var e=t.length,n=V(zw().key(function(t){return t[2]}).entries(t),function(t){return{name:t.key,dataList:t.values}}),i=n.length,r=-1,o=-1,a=0;ar&&(r=s,o=a)}for(var l=0;lo&&(o=u),i.push(u)}for(var h=0;ho&&(o=d)}return a.y0=r,a.max=o,a}(l),h=u.y0,c=n/u.max,d=o.length,f=o[0].indices.length,p=0;p1;)e=e.parentNode;return N(t.getAncestors()[0].children,e)}(t)%a]}(e,0,r);!function(t,e,n){e.getData().setItemVisual(t.dataIndex,\"color\",n)}(e,i,h);var c,d=a.getModel(\"itemStyle\").getItemStyle();c=L({lineJoin:\"bevel\",fill:(c=\"normal\"===n?d:D(a.getModel(n+\".itemStyle\").getItemStyle(),d)).fill||h},c),t?(o.setShape(u),o.shape.r=s.r0,$s(o,{shape:{r:s.r}},i,e.dataIndex),o.useStyle(c)):\"object\"===l(c.fill)&&c.fill.type||\"object\"===l(o.style.fill)&&o.style.fill.type?($s(o,{shape:u},i),o.useStyle(c)):$s(o,{shape:u,style:c},i),this._updateLabel(i,h,n);var f=a.getShallow(\"cursor\");if(f&&o.attr(\"cursor\",f),t){var p=i.getShallow(\"highlightPolicy\");this._initEvents(o,e,i,p)}this._seriesModel=i||this._seriesModel,this._ecModel=r||this._ecModel},sI.onEmphasis=function(t){var e=this;this.node.hostTree.root.eachNode(function(n){var i,r,o;n.piece&&(e.node===n?n.piece.updateData(!1,n,\"emphasis\"):(i=n,r=e.node,(o=t)!==iI.NONE&&(o===iI.SELF?i===r:o===iI.ANCESTOR?i===r||i.isAncestorOf(r):i===r||i.isDescendantOf(r))?n.piece.childAt(0).trigger(\"highlight\"):t!==iI.NONE&&n.piece.childAt(0).trigger(\"downplay\")))})},sI.onNormal=function(){this.node.hostTree.root.eachNode(function(t){t.piece&&t.piece.updateData(!1,t,\"normal\")})},sI.onHighlight=function(){this.updateData(!1,this.node,\"highlight\")},sI.onDownplay=function(){this.updateData(!1,this.node,\"downplay\")},sI._updateLabel=function(t,e,n){var i=this.node.getModel(),r=i.getModel(\"label\"),o=\"normal\"===n||\"emphasis\"===n?r:i.getModel(n+\".label\"),a=i.getModel(\"emphasis.label\"),s=$(t.getFormattedLabel(this.node.dataIndex,\"normal\",null,null,\"label\"),this.node.name);!1===M(\"show\")&&(s=\"\");var l=this.node.getLayout(),u=o.get(\"minAngle\");null==u&&(u=r.get(\"minAngle\")),u=u/180*Math.PI;var h=l.endAngle-l.startAngle;null!=u&&Math.abs(h)Math.PI/2?\"right\":\"left\"):y&&\"center\"!==y?\"left\"===y?(d=l.r0+v,f>Math.PI/2&&(y=\"right\")):\"right\"===y&&(d=l.r-v,f>Math.PI/2&&(y=\"left\")):(d=(l.r+l.r0)/2,y=\"center\"),c.attr(\"style\",{text:s,textAlign:y,textVerticalAlign:M(\"verticalAlign\")||\"middle\",opacity:M(\"opacity\")});var x=d*p+l.cx,_=d*g+l.cy;c.attr(\"position\",[x,_]);var b=M(\"rotate\"),w=0;function M(t){var e=o.get(t);return null==e?r.get(t):e}\"radial\"===b?(w=-f)<-Math.PI/2&&(w+=Math.PI):\"tangential\"===b?(w=Math.PI/2-f)>Math.PI/2?w-=Math.PI:w<-Math.PI/2&&(w+=Math.PI):\"number\"==typeof b&&(w=b*Math.PI/180),c.attr(\"rotation\",w)},sI._initEvents=function(t,e,n,i){t.off(\"mouseover\").off(\"mouseout\").off(\"emphasis\").off(\"normal\");var r=this,o=function(){r.onEmphasis(i)},a=function(){r.onNormal()};n.isAnimationEnabled()&&t.on(\"mouseover\",o).on(\"mouseout\",a).on(\"emphasis\",o).on(\"normal\",a).on(\"downplay\",function(){r.onDownplay()}).on(\"highlight\",function(){r.onHighlight()})},E(aI,On),Jh.extend({type:\"sunburst\",init:function(){},render:function(t,e,n,i){var r=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),l=this.group,u=t.get(\"renderLabelForZeroData\"),h=[];s.eachNode(function(t){h.push(t)});var c=this._oldChildren||[];if(function(n,i){function r(t){return t.getId()}function s(r,s){!function(n,i){if(u||!n||n.getValue()||(n=null),n!==a&&i!==a)if(i&&i.piece)n?(i.piece.updateData(!1,n,\"normal\",t,e),o.setItemGraphicEl(n.dataIndex,i.piece)):(s=i)&&s.piece&&(l.remove(s.piece),s.piece=null);else if(n){var r=new aI(n,t,e);l.add(r),o.setItemGraphicEl(n.dataIndex,r)}var s}(null==r?null:n[r],null==s?null:i[s])}0===n.length&&0===i.length||new ff(i,n,r,r).add(s).update(s).remove(j(s,null)).execute()}(h,c),function(n,i){if(i.depth>0){r.virtualPiece?r.virtualPiece.updateData(!1,n,\"normal\",t,e):(r.virtualPiece=new aI(n,t,e),l.add(r.virtualPiece)),i.piece._onclickEvent&&i.piece.off(\"click\",i.piece._onclickEvent);var o=function(t){r._rootToNode(i.parentNode)};i.piece._onclickEvent=o,r.virtualPiece.on(\"click\",o)}else r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}(a,s),i&&i.highlight&&i.highlight.piece){var d=t.getShallow(\"highlightPolicy\");i.highlight.piece.onEmphasis(d)}else if(i&&i.unhighlight){var f=this.virtualPiece;!f&&a.children.length&&(f=a.children[0].piece),f&&f.onNormal()}this._initEvents(),this._oldChildren=h},dispose:function(){},_initEvents:function(){var t=this,e=function(e){var n=!1;t.seriesModel.getViewRoot().eachNode(function(i){if(!n&&i.piece&&i.piece.childAt(0)===e.target){var r=i.getModel().get(\"nodeClick\");if(\"rootToNode\"===r)t._rootToNode(i);else if(\"link\"===r){var o=i.getModel(),a=o.get(\"link\");if(a){var s=o.get(\"target\",!0)||\"_blank\";window.open(a,s)}}n=!0}})};this.group._onclickEvent&&this.group.off(\"click\",this.group._onclickEvent),this.group.on(\"click\",e),this.group._onclickEvent=e},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:\"sunburstRootToNode\",from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}}});var lI=\"sunburstRootToNode\";ef({type:lI,update:\"updateView\"},function(t,e){e.eachComponent({mainType:\"series\",subType:\"sunburst\",query:t},function(e,n){var i=lx(t,[lI],e);if(i){var r=e.getViewRoot();r&&(t.direction=hx(r,i.node)?\"rollUp\":\"drillDown\"),e.resetViewRoot(i.node)}})});var uI=\"sunburstHighlight\";ef({type:uI,update:\"updateView\"},function(t,e){e.eachComponent({mainType:\"series\",subType:\"sunburst\",query:t},function(e,n){var i=lx(t,[uI],e);i&&(t.highlight=i.node)})}),ef({type:\"sunburstUnhighlight\",update:\"updateView\"},function(t,e){e.eachComponent({mainType:\"series\",subType:\"sunburst\",query:t},function(e,n){t.unhighlight=!0})});var hI=Math.PI/180;function cI(t,e){return e=e||[0,0],V([\"x\",\"y\"],function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return\"category\"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))},this)}function dI(t,e){return e=e||[0,0],V([0,1],function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function fI(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return\"category\"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function pI(t,e){return V([\"Radius\",\"Angle\"],function(n,i){var r=this[\"get\"+n+\"Axis\"](),o=e[i],a=t[i]/2,s=\"dataTo\"+n,l=\"category\"===r.type?r.getBandWidth():Math.abs(r[s](o-a)-r[s](o+a));return\"Angle\"===n&&(l=l*Math.PI/180),l},this)}of(j(bv,\"sunburst\")),rf(j(function(t,e,n,i){e.eachSeriesByType(t,function(t){var e=t.get(\"center\"),i=t.get(\"radius\");Y(i)||(i=[0,i]),Y(e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=bl(e[0],r),l=bl(e[1],o),u=bl(i[0],a/2),h=bl(i[1],a/2),c=-t.get(\"startAngle\")*hI,d=t.get(\"minAngle\")*hI,f=t.getData().tree.root,p=t.getViewRoot(),g=p.depth,m=t.get(\"sort\");null!=m&&function t(e,n){var i=e.children||[];e.children=function(t,e){if(\"function\"==typeof e)return t.sort(e);var n=\"asc\"===e;return t.sort(function(t,e){var i=(t.getValue()-e.getValue())*(n?1:-1);return 0===i?(t.dataIndex-e.dataIndex)*(n?-1:1):i})}(i,n),i.length&&B(e.children,function(e){t(e,n)})}(p,m);var v=0;B(p.children,function(t){!isNaN(t.getValue())&&v++});var y=p.getValue(),x=Math.PI/(y||v)*2,_=p.depth>0,b=p.height-(_?-1:1),w=(h-u)/(b||1),M=t.get(\"clockwise\"),S=t.get(\"stillShowZeroSum\"),I=M?1:-1;if(_){var A=u,D=u+w,T=2*Math.PI;f.setLayout({angle:T,startAngle:c,endAngle:c+T,clockwise:M,cx:s,cy:l,r0:A,r:D})}!function t(e,n){if(e){var i=n;if(e!==f){var r=e.getValue(),o=0===y&&S?x:r*x;oi[1]&&i.reverse(),{coordSys:{type:\"polar\",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:H(function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a}),size:H(pI,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:\"calendar\",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}};function bI(t,e,n,i,r){null==n[t]||r||(e[t]=n[t],n[t]=i[t])}function wI(t,e,n,i){var r=t.get(\"renderItem\"),o=t.coordinateSystem,a={};o&&(c&&(rt(r,\"series.render is required.\"),rt(o.prepareCustoms||_I[o.type],\"This coordSys does not support custom series.\")),a=o.prepareCustoms?o.prepareCustoms():_I[o.type](o));var s,l,u,h,d,f=L({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:function(t,n){return null==n&&(n=s),e.get(e.getDimension(t||0),n)},style:function(n,i){null==i&&(i=s),m(i);var r=l.getModel(gI).getItemStyle();null!=d&&(r.fill=d);var o=e.getItemVisual(i,\"opacity\");return null!=o&&(r.opacity=o),Ys(r,u,null,{autoColor:d,isRectText:!0}),r.text=u.getShallow(\"show\")?tt(t.getFormattedLabel(i,\"normal\"),wg(e,i)):null,n&&C(r,n),r},styleEmphasis:function(n,i){null==i&&(i=s),m(i);var r=l.getModel(mI).getItemStyle();return Ys(r,h,null,{isRectText:!0},!0),r.text=h.getShallow(\"show\")?et(t.getFormattedLabel(i,\"emphasis\"),t.getFormattedLabel(i,\"normal\"),wg(e,i)):null,n&&C(r,n),r},visual:function(t,n){return null==n&&(n=s),e.getItemVisual(n,t)},barLayout:function(t){if(o.getBaseAxis)return function(t){var e=[],n=t.axis;if(\"category\"===n.type){for(var i=n.getBandWidth(),r=0;ru?u=c:(h.lastTickCount=i,h.lastAutoInterval=u),u}},E(EI,vg);var zI=function(t){this.name=t||\"\",this.cx=0,this.cy=0,this._radiusAxis=new OI,this._angleAxis=new EI,this._radiusAxis.polar=this._angleAxis.polar=this};zI.prototype={type:\"polar\",axisPointerEnabled:!0,constructor:zI,dimensions:[\"radius\",\"angle\"],model:null,containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this[\"_\"+t+\"Axis\"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale(\"ordinal\")[0]||this.getAxesByScale(\"time\")[0]||this.getAngleAxis()},getTooltipAxes:function(t){var e=null!=t&&\"auto\"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=la;)l+=360*u;return[s,l]},coordToPoint:function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]}};var RI=gu.extend({type:\"polarAxis\",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:\"polar\",index:this.option.polarIndex,id:this.option.polarId})[0]}});D(RI.prototype,Hp);var BI={splitNumber:5};function VI(t,e){return e.type||(e.data?\"category\":\"value\")}function FI(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){if(t.coordinateSystem===n){var e=t.getData();B(e.mapDimension(\"radius\",!0),function(t){r.scale.unionExtentFromData(e,Zf(e,t))}),B(e.mapDimension(\"angle\",!0),function(t){i.scale.unionExtentFromData(e,Zf(e,t))})}}),zp(i.scale,i.model),zp(r.scale,r.model),\"category\"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function GI(t,e){if(t.type=e.get(\"type\"),t.scale=Rp(e),t.onBand=e.get(\"boundaryGap\")&&\"category\"===t.type,t.inverse=e.get(\"inverse\"),\"angleAxis\"===e.mainType){t.inverse^=e.get(\"clockwise\");var n=e.get(\"startAngle\");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}vm(\"angle\",RI,VI,{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}}),vm(\"radius\",RI,VI,BI),lf({type:\"polar\",dependencies:[\"polarAxis\",\"angleAxis\"],coordinateSystem:null,findAxisModel:function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},defaultOption:{zlevel:0,z:0,center:[\"50%\",\"50%\"],radius:\"80%\"}});var WI={dimensions:zI.prototype.dimensions,create:function(t,e){var n=[];return t.eachComponent(\"polar\",function(t,i){var r=new zI(i);r.update=FI;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel(\"radiusAxis\"),l=t.findAxisModel(\"angleAxis\");GI(o,s),GI(a,l),function(t,e,n){var i=e.get(\"center\"),r=n.getWidth(),o=n.getHeight();t.cx=bl(i[0],r),t.cy=bl(i[1],o);var a=t.getRadiusAxis(),s=Math.min(r,o)/2,l=bl(e.get(\"radius\"),s);a.inverse?a.setExtent(l,0):a.setExtent(0,l)}(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t}),t.eachSeries(function(e){if(\"polar\"===e.get(\"coordinateSystem\")){var n=t.queryComponents({mainType:\"polar\",index:e.get(\"polarIndex\"),id:e.get(\"polarId\")})[0];if(c&&!n)throw new Error('Polar \"'+$(e.get(\"polarIndex\"),e.get(\"polarId\"),0)+'\" not found');e.coordinateSystem=n.coordinateSystem}}),n}};Uu.register(\"polar\",WI);var HI=[\"axisLine\",\"axisLabel\",\"axisTick\",\"splitLine\",\"splitArea\"];function jI(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function YI(t){return t.getRadiusAxis().inverse?0:1}function ZI(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}Zm.extend({type:\"angleAxis\",axisPointerClass:\"PolarAxisPointer\",render:function(t,e){if(this.group.removeAll(),t.get(\"show\")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=V(n.getViewLabels(),function(t){return(t=A(t)).coord=n.dataToCoord(t.tickValue),t});ZI(a),ZI(o),B(HI,function(e){!t.get(e+\".show\")||n.scale.isBlank()&&\"axisLine\"!==e||this[\"_\"+e](t,i,o,r,a)},this)}},_axisLine:function(t,e,n,i){var r=t.getModel(\"axisLine.lineStyle\"),o=new Ra({shape:{cx:e.cx,cy:e.cy,r:i[YI(e)]},style:r.getLineStyle(),z2:1,silent:!0});o.style.fill=null,this.group.add(o)},_axisTick:function(t,e,n,i){var r=t.getModel(\"axisTick\"),o=(r.get(\"inside\")?-1:1)*r.get(\"length\"),a=i[YI(e)],s=V(n,function(t){return new es({shape:jI(e,[a,a+o],t.coord)})});this.group.add(Ss(s,{style:L(r.getModel(\"lineStyle\").getLineStyle(),{stroke:t.get(\"axisLine.lineStyle.color\")})}))},_axisLabel:function(t,e,n,i,r){var o=t.getCategories(!0),a=t.getModel(\"axisLabel\"),s=a.get(\"margin\"),l=t.get(\"triggerEvent\");B(r,function(n,r){var u=a,h=n.tickValue,c=i[YI(e)],d=e.coordToPoint([c+s,n.coord]),f=e.cx,p=e.cy,g=Math.abs(d[0]-f)/c<.3?\"center\":d[0]>f?\"left\":\"right\",m=Math.abs(d[1]-p)/c<.3?\"middle\":d[1]>p?\"top\":\"bottom\";o&&o[h]&&o[h].textStyle&&(u=new pl(o[h].textStyle,a,a.ecModel));var v=new za({silent:Lm.isLabelSilent(t)});this.group.add(v),Ys(v.style,u,{x:d[0],y:d[1],textFill:u.getTextColor()||t.get(\"axisLine.lineStyle.color\"),text:n.formattedLabel,textAlign:g,textVerticalAlign:m}),l&&(v.eventData=Lm.makeAxisEventDataBase(t),v.eventData.targetType=\"axisLabel\",v.eventData.value=n.rawLabel)},this)},_splitLine:function(t,e,n,i){var r=t.getModel(\"splitLine\").getModel(\"lineStyle\"),o=r.get(\"color\"),a=0;o=o instanceof Array?o:[o];for(var s=[],l=0;lm?\"left\":\"right\",h=Math.abs(l[1]-v)/g<.3?\"middle\":l[1]>v?\"top\":\"bottom\"}return{position:l,align:u,verticalAlign:h}}(e,n,0,s,i.get(\"label.margin\"));BS(t,n,i,r,d)}}),KI={line:function(t,e,n,i,r){return\"angle\"===t.dim?{type:\"Line\",shape:WS(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:\"Circle\",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i,r){var o=Math.max(1,t.getBandWidth()),a=Math.PI/180;return\"angle\"===t.dim?{type:\"Sector\",shape:jS(e.cx,e.cy,i[0],i[1],(-n-o/2)*a,(o/2-n)*a)}:{type:\"Sector\",shape:jS(e.cx,e.cy,n-o/2,n+o/2,0,2*Math.PI)}}};function QI(t,e){e.update=\"updateView\",ef(e,function(e,n){var i={};return n.eachComponent({mainType:\"geo\",query:e},function(n){n[t](e.name),B(n.coordinateSystem.regions,function(t){i[t.name]=n.isSelected(t.name)||!1})}),{selected:i,name:e.name}})}function JI(t,e,n){this._model=t}function $I(t,e,n,i){var r=n.calendarModel,o=n.seriesModel,a=r?r.coordinateSystem:o?o.coordinateSystem:null;return a===this?a[t](i):null}Zm.registerAxisPointerClass(\"PolarAxisPointer\",qI),rf(j(function(t,e,n){var i={},r=function(t,e){var n={};B(t,function(t,e){var i=t.getData(),r=t.coordinateSystem.getBaseAxis(),o=r.getExtent(),a=\"category\"===r.type?r.getBandWidth():Math.abs(o[1]-o[0])/i.count(),s=n[PI(r)]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:\"20%\",gap:\"30%\",stacks:{}},l=s.stacks;n[PI(r)]=s;var u=kI(t);l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var h=bl(t.get(\"barWidth\"),a),c=bl(t.get(\"barMaxWidth\"),a),d=t.get(\"barGap\"),f=t.get(\"barCategoryGap\");h&&!l[u].width&&(h=Math.min(s.remainedWidth,h),l[u].width=h,s.remainedWidth-=h),c&&(l[u].maxWidth=c),null!=d&&(s.gap=d),null!=f&&(s.categoryGap=f)});var i={};return B(n,function(t,e){i[e]={};var n=t.stacks,r=t.bandWidth,o=bl(t.categoryGap,r),a=bl(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),B(n,function(t,e){var n=t.maxWidth;n&&n=0?\"p\":\"n\",T=y;if(v&&(i[a][w]||(i[a][w]={p:y,n:y}),T=i[a][w][D]),\"radius\"===h.dim){var C=h.dataToRadius(b)-y,L=o.dataToAngle(w);Math.abs(C)=i.start.time&&n.timeo.end.time&&t.reverse(),t},_getRangeInfo:function(t){var e;(t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])])[0].time>t[1].time&&(e=!0,t.reverse());var n=Math.floor(t[1].time/864e5)-Math.floor(t[0].time/864e5)+1,i=new Date(t[0].time),r=i.getDate(),o=t[1].date.getDate();if(i.setDate(r+n-1),i.getDate()!==o)for(var a=i.getTime()-t[1].time>0?1:-1;i.getDate()!==o&&(i.getTime()-t[1].time)*a>0;)n-=a,i.setDate(r+n-1);var s=Math.floor((n+t[0].day+6)/7),l=e?1-s:s-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:s,nthWeek:l,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&ei.lweek)return!1;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(i.start.d+r),this.getDateInfo(o)}},JI.dimensions=JI.prototype.dimensions,JI.getDimensionsInfo=JI.prototype.getDimensionsInfo,JI.create=function(t,e){var n=[];return t.eachComponent(\"calendar\",function(i){var r=new JI(i,t,e);n.push(r),i.coordinateSystem=r}),t.eachSeries(function(t){\"calendar\"===t.get(\"coordinateSystem\")&&(t.coordinateSystem=n[t.get(\"calendarIndex\")||0])}),n},Uu.register(\"calendar\",JI);var tA=gu.extend({type:\"calendar\",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:\"horizontal\",splitLine:{show:!0,lineStyle:{color:\"#000\",width:1,type:\"solid\"}},itemStyle:{color:\"#fff\",borderWidth:1,borderColor:\"#ccc\"},dayLabel:{show:!0,firstDay:0,position:\"start\",margin:\"50%\",nameMap:\"en\",color:\"#000\"},monthLabel:{show:!0,position:\"start\",margin:5,align:\"center\",nameMap:\"en\",formatter:null,color:\"#000\"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:\"#ccc\",fontFamily:\"sans-serif\",fontWeight:\"bolder\",fontSize:20}},init:function(t,e,n,i){var r=hu(t);tA.superApply(this,\"init\",arguments),eA(t,r)},mergeOption:function(t,e){tA.superApply(this,\"mergeOption\",arguments),eA(this.option,t)}});function eA(t,e){var n=t.cellSize;Y(n)?1===n.length&&(n[1]=n[0]):n=t.cellSize=[n,n];var i=V([0,1],function(t){return function(t,e){return null!=t[ru[e][0]]||null!=t[ru[e][1]]&&null!=t[ru[e][2]]}(e,t)&&(n[t]=\"auto\"),null!=n[t]&&\"auto\"!==n[t]});uu(t,e,{type:\"box\",ignoreSize:i})}var nA={EN:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],CN:[\"一月\",\"二月\",\"三月\",\"四月\",\"五月\",\"六月\",\"七月\",\"八月\",\"九月\",\"十月\",\"十一月\",\"十二月\"]},iA={EN:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],CN:[\"日\",\"一\",\"二\",\"三\",\"四\",\"五\",\"六\"]};uf({type:\"calendar\",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,a,i),this._renderWeekText(t,o,a,i)},_renderDayRect:function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel(\"itemStyle\").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new $a({shape:{x:l[0],y:l[1],width:o,height:a},cursor:\"default\",style:r});n.add(u)}},_renderLines:function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel(\"splitLine.lineStyle\").getLineStyle(),s=t.get(\"splitLine.show\"),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,h=0;u.time<=e.end.time;h++){d(u.formatedDate),0===h&&(u=o.getDateInfo(e.start.y+\"-\"+e.start.m));var c=u.date;c.setMonth(c.getMonth()+1),u=o.getDateInfo(c)}function d(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},_getEdgesPoints:function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r=\"horizontal\"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},_drawSplitline:function(t,e,n){var i=new Ua({z2:20,shape:{points:t},style:e});n.add(i)},_getLinePointsOfOneWeek:function(t,e,n){var i=t.coordinateSystem;e=i.getDateInfo(e);for(var r=[],o=0;o<7;o++){var a=i.getNextNDay(e.time,o),s=i.dataToRect([a.time],!1);r[2*a.day]=s.tl,r[2*a.day+1]=s[\"horizontal\"===n?\"bl\":\"tr\"]}return r},_formatterLabel:function(t,e){return\"string\"==typeof t&&t?Xl(t,e):\"function\"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,n,i,r){e=e.slice();var o=[\"center\",\"bottom\"];\"bottom\"===i?(e[1]+=r,o=[\"center\",\"top\"]):\"left\"===i?e[0]-=r:\"right\"===i?(e[0]+=r,o=[\"center\",\"top\"]):e[1]-=r;var a=0;return\"left\"!==i&&\"right\"!==i||(a=Math.PI/2),{rotation:a,position:e,style:{textAlign:o[0],textVerticalAlign:o[1]}}},_renderYearText:function(t,e,n,i){var r=t.getModel(\"yearLabel\");if(r.get(\"show\")){var o=r.get(\"margin\"),a=r.get(\"position\");a||(a=\"horizontal\"!==n?\"top\":\"left\");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,h=\"horizontal\"===n?0:1,c={top:[l,s[h][1]],bottom:[l,s[1-h][1]],left:[s[1-h][0],u],right:[s[h][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+\"-\"+e.end.y);var f=r.get(\"formatter\"),p={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(f,p),m=new za({z2:30});Ys(m.style,r,{text:g}),m.attr(this._yearTextPositionControl(m,c[a],n,a,o)),i.add(m)}},_monthTextPositionControl:function(t,e,n,i,r){var o=\"left\",a=\"top\",s=t[0],l=t[1];return\"horizontal\"===n?(l+=r,e&&(o=\"center\"),\"start\"===i&&(a=\"bottom\")):(s+=r,e&&(a=\"middle\"),\"start\"===i&&(o=\"right\")),{x:s,y:l,textAlign:o,textVerticalAlign:a}},_renderMonthText:function(t,e,n){var i=t.getModel(\"monthLabel\");if(i.get(\"show\")){var r=i.get(\"nameMap\"),o=i.get(\"margin\"),a=i.get(\"position\"),s=i.get(\"align\"),l=[this._tlpoints,this._blpoints];U(r)&&(r=nA[r.toUpperCase()]||[]);var u=\"start\"===a?0:1,h=\"horizontal\"===e?0:1;o=\"start\"===a?-o:o;for(var c=\"center\"===s,d=0;d=0;l--)null==r[l]?r.splice(l,1):delete r[l].$action},_flatten:function(t,e,n){B(t,function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;\"group\"===t.type&&i&&this._flatten(i,e,t),delete t.children}},this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});function oA(t,e,n,i){var r=n.type;c&&rt(r,\"graphic type MUST be set\");var o=sl[r.charAt(0).toUpperCase()+r.slice(1)];c&&rt(o,\"graphic type can not be found\");var a=new o(n);e.add(a),i.set(t,a),a.__ecGraphicId=t}function aA(t,e){var n=t&&t.parent;n&&(\"group\"===t.type&&t.traverse(function(t){aA(t,e)}),e.removeKey(t.__ecGraphicId),n.remove(t))}function sA(t,e){var n;return B(e,function(e){null!=t[e]&&\"auto\"!==t[e]&&(n=!0)}),n}uf({type:\"graphic\",init:function(t,e){this._elMap=ht(),this._lastGraphicModel},render:function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},_updateElements:function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group;B(e,function(e){var r=e.$action,o=e.id,a=n.get(o),s=e.parentId,l=null!=s?n.get(s):i,u=e.style;\"text\"===e.type&&u&&(e.hv&&e.hv[1]&&(u.textVerticalAlign=u.textBaseline=null),!u.hasOwnProperty(\"textFill\")&&u.fill&&(u.textFill=u.fill),!u.hasOwnProperty(\"textStroke\")&&u.stroke&&(u.textStroke=u.stroke));var h=function(t){return t=C({},t),B([\"id\",\"parentId\",\"$action\",\"hv\",\"bounding\"].concat(iu),function(e){delete t[e]}),t}(e);c&&a&&rt(l===a.parent,\"Changing parent is not supported.\"),r&&\"merge\"!==r?\"replace\"===r?(aA(a,n),oA(o,l,h,n)):\"remove\"===r&&aA(a,n):a?a.attr(h):oA(o,l,h,n);var d=n.get(o);d&&(d.__ecGraphicWidth=e.width,d.__ecGraphicHeight=e.height,function(t,e,n){var i=t.eventData;t.silent||t.ignore||i||(i=t.eventData={componentType:\"graphic\",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=t.info)}(d,t))})}},_relocate:function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,o=n.length-1;o>=0;o--){var a=n[o],s=r.get(a.id);if(s){var l=s.parent;lu(s,a,l===i?{width:e.getWidth(),height:e.getHeight()}:{width:l.__ecGraphicWidth||0,height:l.__ecGraphicHeight||0},null,{hv:a.hv,boundingMode:a.bounding})}}},_clear:function(){var t=this._elMap;t.each(function(e){aA(e,t)}),this._elMap=ht()},dispose:function(){this._clear()}});var lA={};function uA(t,e){lA[t]=e}function hA(t){return lA[t]}var cA=lf({type:\"toolbox\",layoutMode:{type:\"box\",ignoreSize:!0},optionUpdated:function(){cA.superApply(this,\"optionUpdated\",arguments),B(this.option.feature,function(t,e){var n=hA(e);n&&D(t,n.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:\"horizontal\",left:\"right\",top:\"top\",backgroundColor:\"transparent\",borderColor:\"#ccc\",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:\"#666\",color:\"none\"},emphasis:{iconStyle:{borderColor:\"#3E98C5\"}}}});function dA(t,e){var n=Gl(e.get(\"padding\")),i=e.getItemStyle([\"color\",\"opacity\"]);return i.fill=e.get(\"backgroundColor\"),t=new $a({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get(\"borderRadius\")},style:i,silent:!0,z2:-1})}uf({type:\"toolbox\",render:function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get(\"show\")){var o=+t.get(\"itemSize\"),a=t.get(\"feature\")||{},s=this._features||(this._features={}),l=[];B(a,function(t,e){l.push(e)}),new ff(this._featureNames||[],l).add(u).update(u).remove(j(u,null)).execute(),this._featureNames=l,function(t,e,n){var i=e.getBoxLayoutParams(),r=e.get(\"padding\"),o={width:n.getWidth(),height:n.getHeight()},a=su(i,o,r);au(e.get(\"orient\"),t,e.get(\"itemGap\"),a.width,a.height),lu(t,i,o,r)}(r,t,n),r.add(dA(r.getBoundingRect(),t)),r.eachChild(function(t){var e=t.__title,i=t.hoverStyle;if(i&&e){var a=yi(e,ki(i)),s=t.position[0]+r.position[0],l=!1;t.position[1]+r.position[1]+o+a.height>n.getHeight()&&(i.textPosition=\"top\",l=!0);var u=l?-5-a.height:o+8;s+a.width/2>n.getWidth()?(i.textPosition=[\"100%\",u],i.textAlign=\"right\"):s-a.width/2<0&&(i.textPosition=[0,u],i.textAlign=\"left\")}})}function u(u,h){var c,d=l[u],f=l[h],p=new pl(a[d],t,t.ecModel);if(d&&!f){if(function(t){return 0===t.indexOf(\"my\")}(d))c={model:p,onclick:p.option.onclick,featureName:d};else{var g=hA(d);if(!g)return;c=new g(p,e,n)}s[d]=c}else{if(!(c=s[f]))return;c.model=p,c.ecModel=e,c.api=n}d||!f?p.get(\"show\")&&!c.unusable?(function(i,a,s){var l=i.getModel(\"iconStyle\"),u=i.getModel(\"emphasis.iconStyle\"),h=a.getIcons?a.getIcons():i.get(\"icon\"),c=i.get(\"title\")||{};if(\"string\"==typeof h){var d=h,f=c;c={},(h={})[s]=d,c[s]=f}var p=i.iconPaths={};B(h,function(s,h){var d=al(s,{},{x:-o/2,y:-o/2,width:o,height:o});d.setStyle(l.getItemStyle()),d.hoverStyle=u.getItemStyle(),Fs(d),t.get(\"showTitle\")&&(d.__title=c[h],d.on(\"mouseover\",function(){var t=u.getItemStyle();d.setStyle({text:c[h],textPosition:t.textPosition||\"bottom\",textFill:t.fill||t.stroke||\"#000\",textAlign:t.textAlign||\"center\"})}).on(\"mouseout\",function(){d.setStyle({textFill:null})})),d.trigger(i.get(\"iconStatus.\"+h)||\"normal\"),r.add(d),d.on(\"click\",H(a.onclick,a,e,n,h)),p[h]=d})}(p,c,d),p.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&i[t].trigger(e)},c.render&&c.render(p,e,n,i)):c.remove&&c.remove(e,n):c.dispose&&c.dispose(e,n)}},updateView:function(t,e,n,i){B(this._features,function(t){t.updateView&&t.updateView(t.model,e,n,i)})},remove:function(t,e){B(this._features,function(n){n.remove&&n.remove(t,e)}),this.group.removeAll()},dispose:function(t,e){B(this._features,function(n){n.dispose&&n.dispose(t,e)})}});var fA=dc.toolbox.saveAsImage;function pA(t){this.model=t}pA.defaultOption={show:!0,icon:\"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0\",title:fA.title,type:\"png\",name:\"\",excludeComponents:[\"toolbox\"],pixelRatio:1,lang:fA.lang.slice()},pA.prototype.unusable=!p.canvasSupported,pA.prototype.onclick=function(t,e){var n=this.model,i=n.get(\"name\")||t.get(\"title.0.text\")||\"echarts\",r=document.createElement(\"a\"),o=n.get(\"type\",!0)||\"png\";r.download=i+\".\"+o,r.target=\"_blank\";var a=e.getConnectedDataURL({type:o,backgroundColor:n.get(\"backgroundColor\",!0)||t.get(\"backgroundColor\")||\"#fff\",excludeComponents:n.get(\"excludeComponents\"),pixelRatio:n.get(\"pixelRatio\")});if(r.href=a,\"function\"!=typeof MouseEvent||p.browser.ie||p.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var s=atob(a.split(\",\")[1]),l=s.length,u=new Uint8Array(l);l--;)u[l]=s.charCodeAt(l);var h=new Blob([u]);window.navigator.msSaveOrOpenBlob(h,i+\".\"+o)}else{var c=n.get(\"lang\"),d='';window.open().document.write(d)}else{var f=new MouseEvent(\"click\",{view:window,bubbles:!0,cancelable:!1});r.dispatchEvent(f)}},uA(\"saveAsImage\",pA);var gA=dc.toolbox.magicType;function mA(t){this.model=t}mA.defaultOption={show:!0,type:[],icon:{line:\"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4\",bar:\"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7\",stack:\"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z\",tiled:\"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z\"},title:A(gA.title),option:{},seriesIndex:{}};var vA=mA.prototype;vA.getIcons=function(){var t=this.model,e=t.get(\"icon\"),n={};return B(t.get(\"type\"),function(t){e[t]&&(n[t]=e[t])}),n};var yA={line:function(t,e,n,i){if(\"bar\"===t)return D({id:e,type:\"line\",data:n.get(\"data\"),stack:n.get(\"stack\"),markPoint:n.get(\"markPoint\"),markLine:n.get(\"markLine\")},i.get(\"option.line\")||{},!0)},bar:function(t,e,n,i){if(\"line\"===t)return D({id:e,type:\"bar\",data:n.get(\"data\"),stack:n.get(\"stack\"),markPoint:n.get(\"markPoint\"),markLine:n.get(\"markLine\")},i.get(\"option.bar\")||{},!0)},stack:function(t,e,n,i){if(\"line\"===t||\"bar\"===t)return D({id:e,stack:\"__ec_magicType_stack__\"},i.get(\"option.stack\")||{},!0)},tiled:function(t,e,n,i){if(\"line\"===t||\"bar\"===t)return D({id:e,stack:\"\"},i.get(\"option.tiled\")||{},!0)}},xA=[[\"line\",\"bar\"],[\"stack\",\"tiled\"]];vA.onclick=function(t,e,n){var i=this.model,r=i.get(\"seriesIndex.\"+n);if(yA[n]){var o={series:[]};B(xA,function(t){N(t,n)>=0&&B(t,function(t){i.setIconStatus(t,\"normal\")})}),i.setIconStatus(n,\"emphasis\"),t.eachComponent({mainType:\"series\",query:null==r?null:{seriesIndex:r}},function(e){var r=e.subType,a=e.id,s=yA[n](r,a,e,i);s&&(L(s,e.option),o.series.push(s));var l=e.coordinateSystem;if(l&&\"cartesian2d\"===l.type&&(\"line\"===n||\"bar\"===n)){var u=l.getAxesByScale(\"ordinal\")[0];if(u){var h=u.dim+\"Axis\",c=t.queryComponents({mainType:h,index:e.get(name+\"Index\"),id:e.get(name+\"Id\")})[0].componentIndex;o[h]=o[h]||[];for(var d=0;d<=c;d++)o[h][c]=o[h][c]||{};o[h][c].boundaryGap=\"bar\"===n}}}),e.dispatchAction({type:\"changeMagicType\",currentType:n,newOption:o})}},ef({type:\"changeMagicType\",event:\"magicTypeChanged\",update:\"prepareAndUpdate\"},function(t,e){e.mergeOption(t.newOption)}),uA(\"magicType\",mA);var _A=dc.toolbox.dataView,bA=new Array(60).join(\"-\"),wA=\"\\t\";function MA(t){return V(t,function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,function(){for(var t=arguments.length,r=arguments[t-1],o=e.getName(r),a=0;a=0)return!0}(t)){var r=function(t){for(var e=t.split(/\\n+/g),n=[],i=V(SA(e.shift()).split(IA),function(t){return{name:t,data:[]}}),r=0;r=0)&&t(o,i,r)})}var EA=NA.prototype;function zA(t){return t[0]>t[1]&&t.reverse(),t}function RA(t,e){return Fr(t,e,{includeMainTypes:OA})}EA.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=GA[t.brushType](0,n,e);t.__rangeOffset={offset:HA[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})},EA.matchOutputRanges=function(t,e,n){CA(t,function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&B(i.coordSyses,function(i){var r=GA[t.brushType](1,i,t.range);n(t,r.values,i,e)})},this)},EA.setInputRanges=function(t,e){CA(t,function(t){var n,i,r,o,a,s=this.findTargetInfo(t,e);if(c&&(rt(!s||!0===s||t.coordRange,\"coordRange must be specified when coord index specified.\"),rt(!s||!0!==s||t.range,\"range must be specified in global brush.\")),t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=GA[t.brushType](0,s.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?HA[t.brushType](l.values,u.offset,(n=l.xyMinMax,i=u.xyMinMax,r=YA(n),o=YA(i),a=[r[0]/o[0],r[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}},this)},EA.makePanelOpts=function(t,e){return V(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e&&e(n),clipPath:gw(i),isTargetByCursor:vw(i,t,n.coordSysModel),getLinearBrushOtherExtent:mw(i)}})},EA.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&LA(i.coordSyses,e.coordinateSystem)>=0},EA.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=RA(e,t),r=0;r=0||LA(i,t.getAxis(\"y\").model)>=0)&&o.push(t)}),e.push({panelId:\"grid--\"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:FA.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,e){CA(t.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:\"geo--\"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:FA.geo})})}},VA=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],FA={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(el(t)),e}},GA={lineX:kA(WA,0),lineY:kA(WA,1),rect:function(t,e,n){var i=e[PA[t]]([n[0][0],n[1][0]]),r=e[PA[t]]([n[0][1],n[1][1]]),o=[zA([i[0],r[0]]),zA([i[1],r[1]])];return{values:o,xyMinMax:o}},polygon:function(t,e,n){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:V(n,function(n){var r=e[PA[t]](n);return i[0][0]=Math.min(i[0][0],r[0]),i[1][0]=Math.min(i[1][0],r[1]),i[0][1]=Math.max(i[0][1],r[0]),i[1][1]=Math.max(i[1][1],r[1]),r}),xyMinMax:i}}};function WA(t,e,n,i){c&&rt(\"cartesian2d\"===n.type,\"lineX/lineY brush is available only in cartesian2d.\");var r=n.getAxis([\"x\",\"y\"][t]),o=zA(V([0,1],function(t){return e?r.coordToData(r.toLocalCoord(i[t])):r.toGlobalCoord(r.dataToCoord(i[t]))})),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var HA={lineX:kA(jA,0),lineY:kA(jA,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return V(t,function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]})}};function jA(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function YA(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var ZA=B,UA=\"\\0_ec_hist_store\";function XA(t){var e=t[UA];return e||(e=t[UA]=[{}]),e}gu.registerSubTypeDefaulter(\"dataZoom\",function(){return\"slider\"});var qA,KA,QA,JA,$A=[\"cartesian2d\",\"polar\",\"singleAxis\"],tD=(KA=[\"axisIndex\",\"axis\",\"index\",\"id\"],QA=V(qA=(qA=[\"x\",\"y\",\"z\",\"radius\",\"angle\",\"single\"]).slice(),Jl),JA=V(KA=(KA||[]).slice(),Jl),function(t,e){B(qA,function(n,i){for(var r={name:n,capital:QA[i]},o=0;o=0}(t,a)&&function(t,i){var r=!1;return e(function(e){B(n(t,e)||[],function(t){i.records[e.name][t]&&(r=!0)})}),r}(t,a)&&(i(t,a),o=!0)}return a};function i(t,i){i.nodes.push(t),e(function(e){B(n(t,e)||[],function(t){i.records[e.name][t]=!0})})}}var nD=B,iD=Ml,rD=function(t,e,n,i){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=i,this._dataZoomModel=n};function oD(t,e){var n=t.getAxisModel(),i=t._percentWindow,r=t._valueWindow;if(i){var o=Al(r,[0,500]);o=Math.min(o,20);var a=e||0===i[0]&&100===i[1];n.setRange(a?null:+r[0].toFixed(o),a?null:+r[1].toFixed(o))}}rD.prototype={constructor:rD,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries(function(n){if(o=n.get(\"coordinateSystem\"),N($A,o)>=0){var i=this._dimName,r=e.queryComponents({mainType:i+\"Axis\",index:n.get(i+\"AxisIndex\"),id:n.get(i+\"AxisId\")})[0];this._axisIndex===(r&&r.componentIndex)&&t.push(n)}var o},this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+\"Axis\",this._axisIndex)},getOtherAxisModel:function(){var t,e,n,i=this._dimName,r=this.ecModel,o=this.getAxisModel();return\"x\"===i||\"y\"===i?(e=\"gridIndex\",t=\"x\"===i?\"y\":\"x\"):(e=\"polarIndex\",t=\"angle\"===i?\"radius\":\"angle\"),r.eachComponent(t+\"Axis\",function(t){(t.get(e)||0)===(o.get(e)||0)&&(n=t)}),n},getMinMaxSpan:function(){return A(this._minMaxSpan)},calculateDataWindow:function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];nD([\"start\",\"end\"],function(l,u){var h=t[l],c=t[l+\"Value\"];\"percent\"===r[u]?(null==h&&(h=o[u]),c=i.parse(_l(h,o,n))):(e=!0,h=_l(c=null==c?n[u]:i.parse(c),n,o)),s[u]=c,a[u]=h}),iD(s),iD(a);var l=this._minMaxSpan;function u(t,e,n,r,o){var a=o?\"Span\":\"ValueSpan\";hb(0,t,n,\"all\",l[\"min\"+a],l[\"max\"+a]);for(var s=0;s<2;s++)e[s]=_l(t[s],n,r,!0),o&&(e[s]=i.parse(e[s]))}return e?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},reset:function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=(i=this,r=this._dimName,o=[1/0,-1/0],nD(e,function(t){var e=t.getData();e&&nD(e.mapDimension(r,!0),function(t){var n=e.getApproximateExtent(t);n[0]o[1]&&(o[1]=n[1])})}),o[1]0?0:NaN);var a=n.getMax(!0);null!=a&&\"dataMax\"!==a&&\"function\"!=typeof a?e[1]=a:r&&(e[1]=o>0?o-1:NaN),n.get(\"scale\",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0))}(i,o),o),function(t){var e=t._minMaxSpan={},n=t._dataZoomModel,i=t._dataExtent;nD([\"min\",\"max\"],function(r){var o=n.get(r+\"Span\"),a=n.get(r+\"ValueSpan\");null!=a&&(a=t.getAxisModel().axis.scale.parse(a)),null!=a?o=_l(i[0]+a,i,[0,100],!0):null!=o&&(a=_l(o,[0,100],i,!0)-i[0]),e[r+\"Span\"]=o,e[r+\"ValueSpan\"]=a})}(this);var n=this.calculateDataWindow(t.option);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,oD(this)}var i,r,o},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,oD(this,!0))},filterData:function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get(\"filterMode\"),o=this._valueWindow;\"none\"!==r&&nD(i,function(t){var e=t.getData(),i=e.mapDimension(n,!0);i.length&&(\"weakFilter\"===r?e.filterSelf(function(t){for(var n,r,a,s=0;so[1];if(u&&!h&&!c)return!0;u&&(a=!0),h&&(n=!0),c&&(r=!0)}return a&&n&&r}):nD(i,function(n){if(\"empty\"===r)t.setData(e.map(n,function(t){return function(t){return t>=o[0]&&t<=o[1]}(t)?t:NaN}));else{var i={};i[n]=o,e.selectRange(i)}}),nD(i,function(t){e.setApproximateExtent(o,t)}))})}}};var aD=B,sD=tD,lD=lf({type:\"dataZoom\",dependencies:[\"xAxis\",\"yAxis\",\"zAxis\",\"radiusAxis\",\"angleAxis\",\"singleAxis\",\"series\"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:\"filter\",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(t,e,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=[\"percent\",\"percent\"];var i=uD(t);this.mergeDefaultAndTheme(t,n),this.doInit(i)},mergeOption:function(t){var e=uD(t);D(this.option,t,!0),this.doInit(e)},doInit:function(t){var e=this.option;p.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),hD(this,t),aD([[\"start\",\"startValue\"],[\"end\",\"endValue\"]],function(t,n){\"value\"===this._rangePropMode[n]&&(e[t[0]]=null)},this),this.textStyleModel=this.getModel(\"textStyle\"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(e,n,i,r){var o=this.dependentModels[e.axis][n],a=o.__dzAxisProxy||(o.__dzAxisProxy=new rD(e.name,n,this,r));t[e.name+\"_\"+n]=a},this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();sD(function(e){var n=e.axisIndex;t[n]=Cr(t[n])},this),\"axisIndex\"===e?this._autoSetAxisIndex():\"orient\"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;sD(function(n){null!=t[n.axisIndex]&&(e=!0)},this);var n=t.orient;return null==n&&e?\"orient\":e?void 0:(null==n&&(t.orient=\"horizontal\"),\"axisIndex\")},_autoSetAxisIndex:function(){var t=!0,e=this.get(\"orient\",!0),n=this.option,i=this.dependentModels;if(t){var r=\"vertical\"===e?\"y\":\"x\";i[r+\"Axis\"].length?(n[r+\"AxisIndex\"]=[0],t=!1):aD(i.singleAxis,function(i){t&&i.get(\"orient\",!0)===e&&(n.singleAxisIndex=[i.componentIndex],t=!1)})}t&&sD(function(e){if(t){var i=[],r=this.dependentModels[e.axis];if(r.length&&!i.length)for(var o=0,a=r.length;o0?100:20}},getFirstTargetAxisModel:function(){var t;return sD(function(e){if(null==t){var n=this.get(e.axisIndex);n.length&&(t=this.dependentModels[e.axis][n[0]])}},this),t},eachTargetAxis:function(t,e){var n=this.ecModel;sD(function(i){aD(this.get(i.axisIndex),function(r){t.call(e,i,r,this,n)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+\"_\"+e]},getAxisModel:function(t,e){var n=this.getAxisProxy(t,e);return n&&n.getAxisModel()},setRawRange:function(t,e){var n=this.option;aD([[\"start\",\"startValue\"],[\"end\",\"endValue\"]],function(e){null==t[e[0]]&&null==t[e[1]]||(n[e[0]]=t[e[0]],n[e[1]]=t[e[1]])},this),!e&&hD(this,t)},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var n in e)if(e.hasOwnProperty(n)&&e[n].hostedBy(this))return e[n];for(var n in e)if(e.hasOwnProperty(n)&&!e[n].hostedBy(this))return e[n]},getRangePropMode:function(){return this._rangePropMode.slice()}});function uD(t){var e={};return aD([\"start\",\"end\",\"startValue\",\"endValue\",\"throttle\"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}function hD(t,e){var n=t._rangePropMode,i=t.get(\"rangeMode\");aD([[\"start\",\"startValue\"],[\"end\",\"endValue\"]],function(t,r){var o=null!=e[t[0]],a=null!=e[t[1]];o&&!a?n[r]=\"percent\":!o&&a?n[r]=\"value\":i?n[r]=i[r]:o&&(n[r]=\"percent\")})}var cD=Uh.extend({type:\"dataZoom\",render:function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},getTargetCoordInfo:function(){var t=this.dataZoomModel,e=this.ecModel,n={};return t.eachTargetAxis(function(t,i){var r=e.getComponent(t.axis,i);if(r){var o=r.getCoordSysModel();o&&function(t,e,n,i){for(var r,o=0;o1?\"emphasis\":\"normal\")}(t,e)},mD.onclick=function(t,e,n){vD[n].call(this)},mD.remove=function(t,e){this._brushController.unmount()},mD.dispose=function(t,e){this._brushController.dispose()};var vD={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:\"takeGlobalCursor\",key:\"dataZoomSelect\",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var e=XA(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return ZA(n,function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n]){i[n]=t;break}}),i}(this.ecModel))}};function yD(t){var e={};return B([\"xAxisIndex\",\"yAxisIndex\"],function(n){e[n]=t[n],null==e[n]&&(e[n]=\"all\"),(!1===e[n]||\"none\"===e[n])&&(e[n]=[])}),e}mD._onBrush=function(t,e){if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]),new NA(yD(this.model.option),i,{include:[\"grid\"]}).matchOutputRanges(t,i,function(t,e,n){if(\"cartesian2d\"===n.type){var i=t.brushType;\"rect\"===i?(r(\"x\",n,e[0]),r(\"y\",n,e[1])):r({lineX:\"x\",lineY:\"y\"}[i],n,e)}}),function(t,e){var n=XA(t);ZA(e,function(e,i){for(var r=n.length-1;r>=0&&!n[r][i];r--);if(r<0){var o=t.queryComponents({mainType:\"dataZoom\",subType:\"select\",id:i})[0];if(o){var a=o.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}}),n.push(e)}(i,n),this._dispatchZoomAction(n)}function r(t,e,r){var o=e.getAxis(t),a=o.model,s=function(t,e,n){var i;return n.eachComponent({mainType:\"dataZoom\",subType:\"select\"},function(n){n.getAxisModel(t,e.componentIndex)&&(i=n)}),i}(t,a,i),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(r=hb(0,r.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}},mD._dispatchZoomAction=function(t){var e=[];fD(t,function(t,n){e.push(A(t))}),e.length&&this.api.dispatchAction({type:\"dataZoom\",from:this.uid,batch:e})},uA(\"dataZoom\",gD),$d(function(t){if(t){var e=t.dataZoom||(t.dataZoom=[]);Y(e)||(t.dataZoom=e=[e]);var n=t.toolbox;if(n&&(Y(n)&&(n=n[0]),n&&n.feature)){var i=n.feature.dataZoom;r(\"xAxis\",i),r(\"yAxis\",i)}}function r(n,i){if(i){var r=n+\"Index\",o=i[r];null==o||\"all\"===o||Y(o)||(o=!1===o||\"none\"===o?[]:[o]),a=function(t,i){if(null==o||\"all\"===o||-1!==N(o,i)){var a={type:\"select\",$fromToolbox:!0,id:pD+n+i};a[r]=i,e.push(a)}},Y(s=t[n])||(s=s?[s]:[]),fD(s,a)}var a,s}});var xD=dc.toolbox.restore;function _D(t){this.model=t}_D.defaultOption={show:!0,icon:\"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5\",title:xD.title},_D.prototype.onclick=function(t,e,n){!function(t){t[UA]=null}(t),e.dispatchAction({type:\"restore\",from:this.uid})},uA(\"restore\",_D),ef({type:\"restore\",event:\"restore\",update:\"prepareAndUpdate\"},function(t,e){e.resetOption(\"recreate\")}),lf({type:\"tooltip\",dependencies:[\"axisPointer\"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:\"item\",triggerOn:\"mousemove|click\",alwaysShowContent:!1,displayMode:\"single\",renderMode:\"auto\",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:\"rgba(50,50,50,0.7)\",borderColor:\"#333\",borderRadius:4,borderWidth:0,padding:5,extraCssText:\"\",axisPointer:{type:\"line\",axis:\"auto\",animation:\"auto\",animationDurationUpdate:200,animationEasingUpdate:\"exponentialOut\",crossStyle:{color:\"#999\",width:1,type:\"dashed\",textStyle:{}}},textStyle:{color:\"#fff\",fontSize:14}}});var bD=B,wD=Fl,MD=[\"\",\"-webkit-\",\"-moz-\",\"-o-\"];function SD(t){var e,n,i=[],r=t.get(\"transitionDuration\"),o=t.get(\"backgroundColor\"),a=t.getModel(\"textStyle\"),s=t.get(\"padding\");return r&&i.push((n=\"left \"+(e=r)+\"s cubic-bezier(0.23, 1, 0.32, 1),top \"+e+\"s cubic-bezier(0.23, 1, 0.32, 1)\",V(MD,function(t){return t+\"transition:\"+n}).join(\";\"))),o&&(p.canvasSupported?i.push(\"background-Color:\"+o):(i.push(\"background-Color:#\"+Ue(o)),i.push(\"filter:alpha(opacity=70)\"))),bD([\"width\",\"color\",\"radius\"],function(e){var n=\"border-\"+e,r=wD(n),o=t.get(r);null!=o&&i.push(n+\":\"+o+(\"color\"===e?\"\":\"px\"))}),i.push(function(t){var e=[],n=t.get(\"fontSize\"),i=t.getTextColor();return i&&e.push(\"color:\"+i),e.push(\"font:\"+t.getFont()),n&&e.push(\"line-height:\"+Math.round(3*n/2)+\"px\"),bD([\"decoration\",\"align\"],function(n){var i=t.get(n);i&&e.push(\"text-\"+n+\":\"+i)}),e.join(\";\")}(a)),null!=s&&i.push(\"padding:\"+Gl(s).join(\"px \")+\"px\"),i.join(\";\")+\";\"}function ID(t,e){if(p.wxa)return null;var n=document.createElement(\"div\"),i=this._zr=e.getZr();this.el=n,this._x=e.getWidth()/2,this._y=e.getHeight()/2,t.appendChild(n),this._container=t,this._show=!1,this._hideTimeout;var r=this;n.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!r._enterable){var n=i.handler;Zt(t,e,!0),n.dispatch(\"mousemove\",e)}},n.onmouseleave=function(){r._enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1}}function AD(t){this._zr=t.getZr(),this._show=!1,this._hideTimeout}ID.prototype={constructor:ID,_enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),n=t.style;\"absolute\"!==n.position&&\"absolute\"!==e.position&&(n.position=\"relative\")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText=\"position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;\"+SD(t)+\";left:\"+this._x+\"px;top:\"+this._y+\"px;\"+(t.get(\"extraCssText\")||\"\"),e.style.display=e.innerHTML?\"block\":\"none\",e.style.pointerEvents=this._enterable?\"auto\":\"none\",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?\"\":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var n,i=this._zr;i&&i.painter&&(n=i.painter.getViewportRootOffset())&&(t+=n.offsetLeft,e+=n.offsetTop);var r=this.el.style;r.left=t+\"px\",r.top=e+\"px\",this._x=t,this._y=e},hide:function(){this.el.style.display=\"none\",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(H(this.hide,this),t)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(this.el);n&&(t+=parseInt(n.paddingLeft,10)+parseInt(n.paddingRight,10)+parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),e+=parseInt(n.paddingTop,10)+parseInt(n.paddingBottom,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:t,height:e}}},AD.prototype={constructor:AD,_enterable:!0,update:function(){},show:function(t){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr(\"show\",!0),this._show=!0},setContent:function(t,e,n){this.el&&this._zr.remove(this.el);for(var i={},r=t,o=r.indexOf(\"{marker\");o>=0;){var a=r.indexOf(\"|}\"),s=r.substr(o+\"{marker\".length,a-o-\"{marker\".length);s.indexOf(\"sub\")>-1?i[\"marker\"+s]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:e[s],textOffset:[3,0]}:i[\"marker\"+s]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:e[s]},o=(r=r.substr(a+1)).indexOf(\"{marker\")}this.el=new za({style:{rich:i,text:t,textLineHeight:20,textBackgroundColor:n.get(\"backgroundColor\"),textBorderRadius:n.get(\"borderRadius\"),textFill:n.get(\"textStyle.color\"),textPadding:n.get(\"padding\")},z:n.get(\"z\")}),this._zr.add(this.el);var l=this;this.el.on(\"mouseover\",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on(\"mouseout\",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){this.el&&this.el.attr(\"position\",[t,e])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(H(this.hide,this),t)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var t=this.getSize();return{width:t[0],height:t[1]}}};var DD=H,TD=B,CD=bl,LD=new $a({shape:{x:-1,y:-1,width:2,height:2}});function kD(t){for(var e=t.pop();t.length;){var n=t.pop();n&&(pl.isInstance(n)&&(n=n.get(\"tooltip\",!0)),\"string\"==typeof n&&(n={formatter:n}),e=new pl(n,e,e.ecModel))}return e}function PD(t,e){return t.dispatchAction||H(e.dispatchAction,e)}function OD(t){return\"center\"===t||\"middle\"===t}uf({type:\"tooltip\",init:function(t,e){if(!p.node){var n,i=t.getComponent(\"tooltip\").get(\"renderMode\");this._renderMode=Hr(i),\"html\"===this._renderMode?(n=new ID(e.getDom(),e),this._newLine=\"
\"):(n=new AD(e),this._newLine=\"\\n\"),this._tooltipContent=n}},render:function(t,e,n){if(!p.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get(\"alwaysShowContent\");var i=this._tooltipContent;i.update(),i.setEnterable(t.get(\"enterable\")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel.get(\"triggerOn\");SS(\"itemTooltip\",this._api,DD(function(e,n,i){\"none\"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):\"leave\"===e&&this._hide(i))},this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&\"none\"!==t.get(\"triggerOn\")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY})})}},manuallyShowTip:function(t,e,n,i){if(i.from!==this.uid&&!p.node){var r=PD(i,n);this._ticket=\"\";var o=i.dataByCoordSys;if(i.tooltip&&null!=i.x&&null!=i.y){var a=LD;a.position=[i.x,i.y],a.update(),a.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:a},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,event:{},dataByCoordSys:i.dataByCoordSys,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var s=fS(i,e),l=s.point[0],u=s.point[1];null!=l&&null!=u&&this._tryShow({offsetX:l,offsetY:u,position:i.position,target:s.el,event:{}},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:\"updateAxisPointer\",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target,event:{}},r))}},manuallyHideTip:function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get(\"hideDelay\")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(PD(i,n))},_manuallyAxisShowTip:function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent(\"axisPointer\").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s&&\"axis\"===(t=kD([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model,t])).get(\"trigger\"))return n.dispatchAction({type:\"updateAxisPointer\",seriesIndex:r,dataIndex:o,position:i.position}),!0}},_tryShow:function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;i&&i.length?this._showAxisTooltip(i,t):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,n,e)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,n,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var n=t.get(\"showDelay\");e=H(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},_showAxisTooltip:function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=[],a=[],s=kD([e.tooltipOption,i]),l=this._renderMode,u=this._newLine,h={};TD(t,function(t){TD(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+\"Axis\",t.axisIndex),i=t.value,r=[];if(e&&null!=i){var s=VS(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt);B(t.seriesDataIndices,function(o){var u=n.getSeriesByIndex(o.seriesIndex),c=o.dataIndexInside,d=u&&u.getDataParams(c);if(d.axisDim=t.axisDim,d.axisIndex=t.axisIndex,d.axisType=t.axisType,d.axisId=t.axisId,d.axisValue=Vp(e.axis,i),d.axisValueLabel=s,d){a.push(d);var f,p=u.formatTooltip(c,!0,null,l);if(X(p)){f=p.html;var g=p.markers;D(h,g)}else f=p;r.push(f)}});var c=s;\"html\"!==l?o.push(r.join(u)):o.push((c?jl(c)+u:\"\")+r.join(u))}})},this),o.reverse(),o=o.join(this._newLine+this._newLine);var c=e.position;this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(s,c,r[0],r[1],this._tooltipContent,a):this._showTooltipContent(s,o,a,Math.random(),r[0],r[1],c,void 0,h)})},_showSeriesItemTooltip:function(t,e,n){var i=this._ecModel,r=e.seriesIndex,o=i.getSeriesByIndex(r),a=e.dataModel||o,s=e.dataIndex,l=e.dataType,u=a.getData(),h=kD([u.getItemModel(s),a,o&&(o.coordinateSystem||{}).model,this._tooltipModel]),c=h.get(\"trigger\");if(null==c||\"item\"===c){var d,f,p=a.getDataParams(s,l),g=a.formatTooltip(s,!1,l,this._renderMode);X(g)?(d=g.html,f=g.markers):(d=g,f=null);var m=\"item_\"+a.name+\"_\"+s;this._showOrMove(h,function(){this._showTooltipContent(h,d,p,m,t.offsetX,t.offsetY,t.position,t.target,f)}),n({type:\"showTip\",dataIndexInside:s,dataIndex:u.getRawIndex(s),seriesIndex:r,from:this.uid})}},_showComponentItemTooltip:function(t,e,n){var i=e.tooltip;\"string\"==typeof i&&(i={content:i,formatter:i});var r=new pl(i,this._tooltipModel,this._ecModel),o=r.get(\"content\"),a=Math.random();this._showOrMove(r,function(){this._showTooltipContent(r,o,r.get(\"formatterParams\")||{},a,t.offsetX,t.offsetY,t.position,e)}),n({type:\"showTip\",from:this.uid})},_showTooltipContent:function(t,e,n,i,r,o,a,s,l){if(this._ticket=\"\",t.get(\"showContent\")&&t.get(\"show\")){var u=this._tooltipContent,h=t.get(\"formatter\");a=a||t.get(\"position\");var c=e;if(h&&\"string\"==typeof h)c=Ul(h,n,!0);else if(\"function\"==typeof h){var d=DD(function(e,i){e===this._ticket&&(u.setContent(i,l,t),this._updatePosition(t,a,r,o,u,n,s))},this);this._ticket=i,c=h(n,i,d)}u.setContent(c,l,t),u.show(t),this._updatePosition(t,a,r,o,u,n,s)}},_updatePosition:function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get(\"position\");var u=r.getSize(),h=t.get(\"align\"),c=t.get(\"verticalAlign\"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),\"function\"==typeof e&&(e=e([n,i],o,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),Y(e))n=CD(e[0],s),i=CD(e[1],l);else if(X(e)){e.width=u[0],e.height=u[1];var f=su(e,{width:s,height:l});n=f.x,i=f.y,h=null,c=null}else if(\"string\"==typeof e&&a){var p=function(t,e,n){var i=n[0],r=n[1],o=0,a=0,s=e.width,l=e.height;switch(t){case\"inside\":o=e.x+s/2-i/2,a=e.y+l/2-r/2;break;case\"top\":o=e.x+s/2-i/2,a=e.y-r-5;break;case\"bottom\":o=e.x+s/2-i/2,a=e.y+l+5;break;case\"left\":o=e.x-i-5,a=e.y+l/2-r/2;break;case\"right\":o=e.x+s+5,a=e.y+l/2-r/2}return[o,a]}(e,d,u);n=p[0],i=p[1]}else p=function(t,e,n,i,r,o,a){var s=n.getOuterSize(),l=s.width,u=s.height;return null!=o&&(t+l+o>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}(n,i,r,s,l,h?null:20,c?null:20),n=p[0],i=p[1];h&&(n-=OD(h)?u[0]/2:\"right\"===h?u[0]:0),c&&(i-=OD(c)?u[1]/2:\"bottom\"===c?u[1]:0),t.get(\"confine\")&&(p=function(t,e,n,i,r){var o=n.getOuterSize(),a=o.width,s=o.height;return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,i,r,s,l),n=p[0],i=p[1]),r.moveTo(n,i)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&TD(e,function(e,i){var r=e.dataByAxis||{},o=(t[i]||{}).dataByAxis||[];(n&=r.length===o.length)&&TD(r,function(t,e){var i=o[e]||{},r=t.seriesDataIndices||[],a=i.seriesDataIndices||[];(n&=t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===a.length)&&TD(r,function(t,e){var i=a[e];n&=t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex})})}),this._lastDataByCoordSys=t,!!n},_hide:function(t){this._lastDataByCoordSys=null,t({type:\"hideTip\",from:this.uid})},dispose:function(t,e){p.node||(this._tooltipContent.hide(),DS(\"itemTooltip\",e))}}),ef({type:\"showTip\",event:\"showTip\",update:\"tooltip:manuallyShowTip\"},function(){}),ef({type:\"hideTip\",event:\"hideTip\",update:\"tooltip:manuallyHideTip\"},function(){});var ND=[\"rect\",\"polygon\",\"keep\",\"clear\"],ED=B;function zD(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function RD(t,e,n){var i={};return ED(e,function(e){var r,o=i[e]=((r=function(){}).prototype.__hidden=r.prototype,new r);ED(t[e],function(t,i){if(Bx.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new Bx(r),\"opacity\"===i&&((r=A(r)).type=\"colorAlpha\",o.__hidden.__alphaForOpacity=new Bx(r))}})}),i}function BD(t,e,n){var i;B(n,function(t){e.hasOwnProperty(t)&&zD(e[t])&&(i=!0)}),i&&B(n,function(n){e.hasOwnProperty(n)&&zD(e[n])?t[n]=A(e[n]):delete t[n]})}var VD={lineX:FD(0),lineY:FD(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&ig(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,o=t.y,a=t.width,s=t.height,l=i[0];return!!(ig(i,r,o)||ig(i,r+a,o)||ig(i,r,o+s)||ig(i,r+a,o+s)||Pn.create(t).contain(l[0],l[1])||WD(r,o,r+a,o,i)||WD(r,o,r,o+s,i)||WD(r+a,o,r+a,o+s,i)||WD(r,o+s,r+a,o+s,i))||void 0}}};function FD(t){var e=[\"x\",\"y\"],n=[\"width\",\"height\"];return{point:function(e,n,i){if(e){var r=i.range;return GD(e[t],r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]=-1e-6)return!1;var h=jD(r-t,r-a,o-e,o-s)/u;if(h<0||h>1)return!1;var c=jD(n-t,r-t,i-e,o-e)/u;return!(c<0||c>1)}function jD(t,e,n,i){return t*i-e*n}var YD=[\"inBrush\",\"outOfBrush\"],ZD=\"__ecBrushSelect\",UD=\"__ecInBrushSelectEvent\",XD=dd.VISUAL.BRUSH;function qD(t,e){if(!t.isDisposed()){var n=t.getZr();n[UD]=!0,t.dispatchAction({type:\"brushSelect\",batch:e}),n[UD]=!1}}function KD(t,e,n,i){for(var r=0,o=e.length;re[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&$D(e)}};function $D(t){return new Pn(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var tT=[\"#ddd\"];function eT(t,e){return D({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new pl(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}function nT(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}lf({type:\"brush\",dependencies:[\"geo\",\"grid\",\"xAxis\",\"yAxis\",\"parallel\",\"series\"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:\"all\",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:\"rect\",brushMode:\"single\",transformable:!0,brushStyle:{borderWidth:1,color:\"rgba(120,140,180,0.3)\",borderColor:\"rgba(120,140,180,0.8)\"},throttleType:\"fixRate\",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var n=this.option;!e&&BD(n,t,[\"inBrush\",\"outOfBrush\"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:tT},i.hasOwnProperty(\"liftZ\")||(i.liftZ=5)},setAreas:function(t){c&&(rt(Y(t)),B(t,function(t){rt(t.brushType,\"Illegal areas\")})),t&&(this.areas=V(t,function(t){return eT(this.option,t)},this))},setBrushOption:function(t){this.brushOption=eT(this.option,t),this.brushType=this.brushOption.brushType}}),uf({type:\"brush\",init:function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new Vb(e.getZr())).on(\"brush\",H(this._onBrush,this)).mount()},render:function(t){return this.model=t,nT.apply(this,arguments)},updateTransform:nT,updateView:nT,dispose:function(){this._brushController.dispose()},_onBrush:function(t,e){var n=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:\"brush\",brushId:n,areas:A(t),$from:n})}}),ef({type:\"brush\",event:\"brush\"},function(t,e){e.eachComponent({mainType:\"brush\",query:t},function(e){e.setAreas(t.areas)})}),ef({type:\"brushSelect\",event:\"brushSelected\",update:\"none\"},function(){});var iT=dc.toolbox.brush;function rT(t,e,n){this.model=t,this.ecModel=e,this.api=n,this._brushType,this._brushMode}rT.defaultOption={show:!0,type:[\"rect\",\"polygon\",\"lineX\",\"lineY\",\"keep\",\"clear\"],icon:{rect:\"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13\",polygon:\"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2\",lineX:\"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4\",lineY:\"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4\",keep:\"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z\",clear:\"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2\"},title:A(iT.title)};var oT=rT.prototype;function aT(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};B(i,function(t,e){o[e]||sT(r,e)||(r[e]=t)}),n.label&&!sT(i,\"emphasis\")&&(i.emphasis=n.label,delete n.label)}function sT(t,e){return t.hasOwnProperty(e)}oT.render=oT.updateView=function(t,e,n){var i,r,o;e.eachComponent({mainType:\"brush\"},function(t){i=t.brushType,r=t.brushOption.brushMode||\"single\",o|=t.areas.length}),this._brushType=i,this._brushMode=r,B(t.get(\"type\",!0),function(e){t.setIconStatus(e,(\"keep\"===e?\"multiple\"===r:\"clear\"===e?o:e===i)?\"emphasis\":\"normal\")})},oT.getIcons=function(){var t=this.model,e=t.get(\"icon\",!0),n={};return B(t.get(\"type\",!0),function(t){e[t]&&(n[t]=e[t])}),n},oT.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;\"clear\"===n?(e.dispatchAction({type:\"axisAreaSelect\",intervals:[]}),e.dispatchAction({type:\"brush\",command:\"clear\",areas:[]})):e.dispatchAction({type:\"takeGlobalCursor\",key:\"brush\",brushOption:{brushType:\"keep\"===n?i:i!==n&&n,brushMode:\"keep\"===n?\"multiple\"===r?\"single\":\"multiple\":r}})},uA(\"brush\",rT),$d(function(t,e){var n=t&&t.brush;if(Y(n)||(n=n?[n]:[]),n.length){var i=[];B(n,function(t){var e=t.hasOwnProperty(\"toolbox\")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))});var r=t&&t.toolbox;Y(r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var o,a,s=r.feature||(r.feature={}),l=s.brush||(s.brush={}),u=l.type||(l.type=[]);u.push.apply(u,i),a={},B(o=u,function(t){a[t]=1}),o.length=0,B(a,function(t,e){o.push(e)}),e&&!u.length&&u.push.apply(u,ND)}}),lf({type:\"title\",layoutMode:{type:\"box\",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:\"\",target:\"blank\",subtext:\"\",subtarget:\"blank\",left:0,top:0,backgroundColor:\"rgba(0,0,0,0)\",borderColor:\"#ccc\",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:\"bolder\",color:\"#333\"},subtextStyle:{color:\"#aaa\"}}}),uf({type:\"title\",render:function(t,e,n){if(this.group.removeAll(),t.get(\"show\")){var i=this.group,r=t.getModel(\"textStyle\"),o=t.getModel(\"subtextStyle\"),a=t.get(\"textAlign\"),s=tt(t.get(\"textBaseline\"),t.get(\"textVerticalAlign\")),l=new za({style:Ys({},r,{text:t.get(\"text\"),textFill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),h=t.get(\"subtext\"),c=new za({style:Ys({},o,{text:h,textFill:o.getTextColor(),y:u.height+t.get(\"itemGap\"),textVerticalAlign:\"top\"},{disableBox:!0}),z2:10}),d=t.get(\"link\"),f=t.get(\"sublink\"),p=t.get(\"triggerEvent\",!0);l.silent=!d&&!p,c.silent=!f&&!p,d&&l.on(\"click\",function(){window.open(d,\"_\"+t.get(\"target\"))}),f&&c.on(\"click\",function(){window.open(f,\"_\"+t.get(\"subtarget\"))}),l.eventData=c.eventData=p?{componentType:\"title\",componentIndex:t.componentIndex}:null,i.add(l),h&&i.add(c);var g=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=g.width,m.height=g.height;var v=su(m,{width:n.getWidth(),height:n.getHeight()},t.get(\"padding\"));a||(\"middle\"===(a=t.get(\"left\")||t.get(\"right\"))&&(a=\"center\"),\"right\"===a?v.x+=v.width:\"center\"===a&&(v.x+=v.width/2)),s||(\"center\"===(s=t.get(\"top\")||t.get(\"bottom\"))&&(s=\"middle\"),\"bottom\"===s?v.y+=v.height:\"middle\"===s&&(v.y+=v.height/2),s=s||\"top\"),i.attr(\"position\",[v.x,v.y]);var y={textAlign:a,textVerticalAlign:s};l.setStyle(y),c.setStyle(y),g=i.getBoundingRect();var x=v.margin,_=t.getItemStyle([\"color\",\"opacity\"]);_.fill=t.get(\"backgroundColor\");var b=new $a({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get(\"borderRadius\")},style:_,subPixelOptimize:!0,silent:!0});i.add(b)}}}),gu.registerSubTypeDefaulter(\"timeline\",function(){return\"slider\"}),ef({type:\"timelineChange\",event:\"timelineChanged\",update:\"prepareAndUpdate\"},function(t,e){var n=e.getComponent(\"timeline\");return n&&null!=t.currentIndex&&(n.setCurrentIndex(t.currentIndex),!n.get(\"loop\",!0)&&n.isIndexMax()&&n.setPlayState(!1)),e.resetOption(\"timeline\"),L({currentIndex:n.option.currentIndex},t)}),ef({type:\"timelinePlayChange\",event:\"timelinePlayChanged\",update:\"update\"},function(t,e){var n=e.getComponent(\"timeline\");n&&null!=t.playState&&n.setPlayState(t.playState)});var lT=gu.extend({type:\"timeline\",layoutMode:\"box\",defaultOption:{zlevel:0,z:4,show:!0,axisType:\"time\",realtime:!0,left:\"20%\",top:null,right:\"20%\",bottom:0,width:null,height:40,padding:5,controlPosition:\"left\",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:\"#000\"},data:[]},init:function(t,e,n){this._data,this._names,this.mergeDefaultAndTheme(t,n),this._initData()},mergeOption:function(t){lT.superApply(this,\"mergeOption\",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],n=t.axisType,i=this._names=[];if(\"category\"===n){var r=[];B(e,function(t,e){var n,o=Pr(t);X(t)?(n=A(t)).value=e:n=e,r.push(n),U(o)||null!=o&&!isNaN(o)||(o=\"\"),i.push(o+\"\")}),e=r}var o={category:\"ordinal\",time:\"time\"}[n]||\"number\";(this._data=new Tf([{name:\"value\",type:o}],this)).initData(e,i)},getData:function(){return this._data},getCategories:function(){if(\"category\"===this.get(\"axisType\"))return this._names.slice()}});z(lT.extend({type:\"timeline.slider\",defaultOption:{backgroundColor:\"rgba(0,0,0,0)\",borderColor:\"#ccc\",borderWidth:0,orient:\"horizontal\",inverse:!1,tooltip:{trigger:\"item\"},symbol:\"emptyCircle\",symbolSize:10,lineStyle:{show:!0,width:2,color:\"#304654\"},label:{position:\"auto\",show:!0,interval:\"auto\",rotate:0,color:\"#304654\"},itemStyle:{color:\"#304654\",borderWidth:1},checkpointStyle:{symbol:\"circle\",symbolSize:13,color:\"#c23531\",borderWidth:5,borderColor:\"rgba(194,53,49, 0.5)\",animation:!0,animationDuration:300,animationEasing:\"quinticInOut\"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:\"left\",playIcon:\"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z\",stopIcon:\"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z\",nextIcon:\"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z\",prevIcon:\"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z\",color:\"#304654\",borderColor:\"#304654\",borderWidth:1},emphasis:{label:{show:!0,color:\"#c23531\"},itemStyle:{color:\"#c23531\"},controlStyle:{color:\"#c23531\",borderColor:\"#c23531\",borderWidth:2}},data:[]}}),Ph);var uT=Uh.extend({type:\"timeline\"}),hT=function(t,e,n,i){vg.call(this,t,e,n),this.type=i||\"value\",this.model=null};hT.prototype={constructor:hT,getLabelModel:function(){return this.model.getModel(\"label\")},isHorizontal:function(){return\"horizontal\"===this.model.get(\"orient\")}},E(hT,vg);var cT=H,dT=B,fT=Math.PI;function pT(t,e,n,i,r,o){var a=e.get(\"color\");r?(r.setColor(a),n.add(r),o&&o.onUpdate(r)):((r=Jp(t.get(\"symbol\"),-1,-1,2,2,a)).setStyle(\"strokeNoScale\",!0),n.add(r),o&&o.onCreate(r));var s=e.getItemStyle([\"color\",\"symbol\",\"symbolSize\"]);r.setStyle(s),i=D({rectHover:!0,z2:100},i,!0);var l=t.get(\"symbolSize\");(l=l instanceof Array?l.slice():[+l,+l])[0]/=2,l[1]/=2,i.scale=l;var u=t.get(\"symbolOffset\");if(u){var h=i.position=i.position||[0,0];h[0]+=bl(u[0],l[0]),h[1]+=bl(u[1],l[1])}var c=t.get(\"symbolRotate\");return i.rotation=(c||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function gT(t,e,n,i,r){if(!t.dragging){var o=i.getModel(\"checkpointStyle\"),a=n.dataToCoord(i.getData().get([\"value\"],e));r||!o.get(\"animation\",!0)?t.attr({position:[a,0]}):(t.stopAnimation(!0),t.animateTo({position:[a,0]},o.get(\"animationDuration\",!0),o.get(\"animationEasing\",!0)))}}uT.extend({type:\"timeline.slider\",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,n,i){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get(\"show\",!0)){var r=this._layout(t,n),o=this._createGroup(\"mainGroup\"),a=this._createGroup(\"labelGroup\"),s=this._axis=this._createAxis(r,t);t.formatTooltip=function(t){return jl(s.scale.getLabel(t))},dT([\"AxisLine\",\"AxisTick\",\"Control\",\"CurrentPointer\"],function(e){this[\"_render\"+e](r,o,s,t)},this),this._renderAxisLabel(r,a,s,t),this._position(r,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var n=t.get(\"label.position\"),i=t.get(\"orient\"),r=function(t,e){return su(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get(\"padding\"))}(t,e);null==n||\"auto\"===n?n=\"horizontal\"===i?r.y+r.height/2=0||\"+\"===n?\"left\":\"right\"},h={horizontal:n>=0||\"+\"===n?\"top\":\"bottom\",vertical:\"middle\"},c={horizontal:0,vertical:fT/2},d=\"vertical\"===i?r.height:r.width,f=t.getModel(\"controlStyle\"),p=f.get(\"show\",!0),g=p?f.get(\"itemSize\"):0,m=p?f.get(\"itemGap\"):0,v=g+m,y=t.get(\"label.rotate\")||0;y=y*fT/180;var x=f.get(\"position\",!0),_=p&&f.get(\"showPlayBtn\",!0),b=p&&f.get(\"showPrevBtn\",!0),w=p&&f.get(\"showNextBtn\",!0),M=0,S=d;return\"left\"===x||\"bottom\"===x?(_&&(o=[0,0],M+=v),b&&(a=[M,0],M+=v),w&&(s=[S-g,0],S-=v)):(_&&(o=[S-g,0],S-=v),b&&(a=[0,0],M+=v),w&&(s=[S-g,0],S-=v)),l=[M,S],t.get(\"inverse\")&&l.reverse(),{viewRect:r,mainLength:d,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:n,labelAlign:t.get(\"label.align\")||u[i],labelBaseline:t.get(\"label.verticalAlign\")||t.get(\"label.baseline\")||h[i],playPosition:o,prevBtnPosition:a,nextBtnPosition:s,axisExtent:l,controlSize:g,controlGap:m}},_position:function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if(\"vertical\"===t.orient){var o=se(),a=r.x,s=r.y+r.height;ce(o,o,[-a,-s]),de(o,o,-fT/2),ce(o,o,[a,s]),(r=r.clone()).applyTransform(o)}var l=m(r),u=m(n.getBoundingRect()),h=m(i.getBoundingRect()),c=n.position,d=i.position;d[0]=c[0]=l[0][0];var f,p=t.labelPosOpt;function g(t){var e=t.position;t.origin=[l[0][0]-e[0],l[1][0]-e[1]]}function m(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}isNaN(p)?(v(c,u,l,1,f=\"+\"===p?0:1),v(d,h,l,1,1-f)):(v(c,u,l,1,f=p>=0?0:1),d[1]=c[1]+p),n.attr(\"position\",c),i.attr(\"position\",d),n.rotation=i.rotation=t.rotation,g(n),g(i)},_createAxis:function(t,e){var n=e.getData(),i=e.get(\"axisType\"),r=Rp(e,i);r.getTicks=function(){return n.mapArray([\"value\"],function(t){return t})};var o=n.getDataExtent(\"value\");r.setExtent(o[0],o[1]),r.niceTicks();var a=new hT(\"value\",r,t.axisExtent,i);return a.model=e,a},_createGroup:function(t){var e=this[\"_\"+t]=new On;return this.group.add(e),e},_renderAxisLine:function(t,e,n,i){var r=n.getExtent();i.get(\"lineStyle.show\")&&e.add(new es({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:C({lineCap:\"round\"},i.getModel(\"lineStyle\").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,n,i){var r=i.getData(),o=n.scale.getTicks();dT(o,function(t){var o=n.dataToCoord(t),a=r.getItemModel(t),s=a.getModel(\"itemStyle\"),l=a.getModel(\"emphasis.itemStyle\"),u={position:[o,0],onclick:cT(this._changeTimeline,this,t)},h=pT(a,s,e,u);Fs(h,l.getItemStyle()),a.get(\"tooltip\")?(h.dataIndex=t,h.dataModel=i):h.dataIndex=h.dataModel=null},this)},_renderAxisLabel:function(t,e,n,i){if(n.getLabelModel().get(\"show\")){var r=i.getData(),o=n.getViewLabels();dT(o,function(i){var o=i.tickValue,a=r.getItemModel(o),s=a.getModel(\"label\"),l=a.getModel(\"emphasis.label\"),u=n.dataToCoord(i.tickValue),h=new za({position:[u,0],rotation:t.labelRotation-t.rotation,onclick:cT(this._changeTimeline,this,o),silent:!1});Ys(h.style,s,{text:i.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(h),Fs(h,Ys({},l))},this)}},_renderControl:function(t,e,n,i){var r=t.controlSize,o=t.rotation,a=i.getModel(\"controlStyle\").getItemStyle(),s=i.getModel(\"emphasis.controlStyle\").getItemStyle(),l=[0,-r/2,r,r],u=i.getPlayState(),h=i.get(\"inverse\",!0);function c(t,n,u,h){if(t){var c=function(t,e,n,i){return bs(t.get(e).replace(/^path:\\/\\//,\"\"),A(i||{}),new Pn(n[0],n[1],n[2],n[3]),\"center\")}(i,n,l,{position:t,origin:[r/2,0],rotation:h?-o:0,rectHover:!0,style:a,onclick:u});e.add(c),Fs(c,s)}}c(t.nextBtnPosition,\"controlStyle.nextIcon\",cT(this._changeTimeline,this,h?\"-\":\"+\")),c(t.prevBtnPosition,\"controlStyle.prevIcon\",cT(this._changeTimeline,this,h?\"+\":\"-\")),c(t.playPosition,\"controlStyle.\"+(u?\"stopIcon\":\"playIcon\"),cT(this._handlePlayClick,this,!u),!0)},_renderCurrentPointer:function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel(\"checkpointStyle\"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=cT(s._handlePointerDrag,s),t.ondragend=cT(s._handlePointerDragend,s),gT(t,o,n,i,!0)},onUpdate:function(t){gT(t,o,n,i)}};this._currentPointer=pT(a,a,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:\"timelinePlayChange\",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var n=this._toAxisCoord(t)[0],i=Ml(this._axis.getExtent().slice());n>i[1]&&(n=i[1]),n\"),r&&(o+=vT(r),null!=n&&(o+=\" : \")),null!=n&&(o+=vT(i)),o},getData:function(){return this._data},setData:function(t){this._data=t}});z(xT,Ph),xT.extend({type:\"markPoint\",defaultOption:{zlevel:0,z:5,symbol:\"pin\",symbolSize:50,tooltip:{trigger:\"item\"},label:{show:!0,position:\"inside\"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});var _T=N;function bT(t,e,n,i,r,o){var a=[],s=Yf(e,i)?e.getCalculationInfo(\"stackResultDimension\"):i,l=TT(e,s,t),u=e.indicesOfNearest(s,l)[0];a[r]=e.get(n,u),a[o]=e.get(i,u);var h=Sl(e.get(i,u));return(h=Math.min(h,20))>=0&&(a[o]=+a[o].toFixed(h)),a}var wT=j,MT={min:wT(bT,\"min\"),max:wT(bT,\"max\"),average:wT(bT,\"average\")};function ST(t,e){var n=t.getData(),i=t.coordinateSystem;if(e&&!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!Y(e.coord)&&i){var r=i.dimensions,o=IT(e,n,i,t);if((e=A(e)).type&&MT[e.type]&&o.baseAxis&&o.valueAxis){var a=_T(r,o.baseAxis.dim),s=_T(r,o.valueAxis.dim);e.coord=MT[e.type](n,o.baseDataDim,o.valueDataDim,a,s),e.value=e.coord[s]}else{for(var l=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],u=0;u<2;u++)MT[l[u]]&&(l[u]=TT(n,n.mapDimension(r[u]),l[u]));e.coord=l}}return e}function IT(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(function(t,e){var n=t.getData(),i=n.dimensions;e=n.getDimension(e);for(var r=0;r=0&&\"number\"==typeof s&&(s=+s.toFixed(Math.min(f,20))),c.coord[u]=d.coord[u]=s,i=[c,d,{type:o,valueIndex:i.valueIndex,value:s}]}return(i=[ST(t,i[0]),ST(t,i[1]),C({},i[2])])[2].type=i[2].type||\"\",D(i[2],i[0]),D(i[2],i[1]),i};function PT(t){return!isNaN(t)&&!isFinite(t)}function OT(t,e,n,i){var r=1-t,o=i.dimensions[t];return PT(e[r])&&PT(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function NT(t,e){if(\"cartesian2d\"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(OT(1,n,i,t)||OT(0,n,i,t)))return!0}return AT(t,e[0])&&AT(t,e[1])}function ET(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=bl(s.get(\"x\"),r.getWidth()),u=bl(s.get(\"y\"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var h=a.dimensions,c=t.get(h[0],e),d=t.get(h[1],e);o=a.dataToPoint([c,d])}if(\"cartesian2d\"===a.type){var f=a.getAxis(\"x\"),p=a.getAxis(\"y\");h=a.dimensions,PT(t.get(h[0],e))?o[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):PT(t.get(h[1],e))&&(o[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}CT.extend({type:\"markLine\",updateTransform:function(t,e,n){e.eachSeries(function(t){var e=t.markLineModel;if(e){var i=e.getData(),r=e.__from,o=e.__to;r.each(function(e){ET(r,e,!0,t,n),ET(o,e,!1,t,n)}),i.each(function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},renderSeries:function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new O_);this.group.add(l.group);var u=function(t,e,n){var i;i=t?V(t&&t.dimensions,function(t){return L({name:t},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{})}):[{name:\"value\",type:\"float\"}];var r=new Tf(i,n),o=new Tf(i,n),a=new Tf([],n),s=V(n.get(\"data\"),j(kT,e,t,n));t&&(s=G(s,j(NT,t)));var l=t?DT:function(t){return t.value};return r.initData(V(s,function(t){return t[0]}),null,l),o.initData(V(s,function(t){return t[1]}),null,l),a.initData(V(s,function(t){return t[2]})),a.hasItemOption=!0,{from:r,to:o,line:a}}(r,t,e),h=u.from,c=u.to,d=u.line;e.__from=h,e.__to=c,e.setData(d);var f=e.get(\"symbol\"),p=e.get(\"symbolSize\");function g(e,n,r){var o=e.getItemModel(n);ET(e,n,r,t,i),e.setItemVisual(n,{symbolSize:o.get(\"symbolSize\")||p[r?0:1],symbol:o.get(\"symbol\",!0)||f[r?0:1],color:o.get(\"itemStyle.color\")||a.getVisual(\"color\")})}Y(f)||(f=[f,f]),\"number\"==typeof p&&(p=[p,p]),u.from.each(function(t){g(h,t,!0),g(c,t,!1)}),d.each(function(t){var e=d.getItemModel(t).get(\"lineStyle.color\");d.setItemVisual(t,{color:e||h.getItemVisual(t,\"color\")}),d.setItemLayout(t,[h.getItemLayout(t),c.getItemLayout(t)]),d.setItemVisual(t,{fromSymbolSize:h.getItemVisual(t,\"symbolSize\"),fromSymbol:h.getItemVisual(t,\"symbol\"),toSymbolSize:c.getItemVisual(t,\"symbolSize\"),toSymbol:c.getItemVisual(t,\"symbol\")})}),l.updateData(d),u.line.eachItemGraphicEl(function(t,n){t.traverse(function(t){t.dataModel=e})}),l.__keep=!0,l.group.silent=e.get(\"silent\")||t.get(\"silent\")}}),$d(function(t){t.markLine=t.markLine||{}}),xT.extend({type:\"markArea\",defaultOption:{zlevel:0,z:1,tooltip:{trigger:\"item\"},animation:!1,label:{show:!0,position:\"top\"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:\"top\"}}}});var zT=function(t,e,n,i){var r=ST(t,i[0]),o=ST(t,i[1]),a=$,s=r.coord,l=o.coord;s[0]=a(s[0],-1/0),s[1]=a(s[1],-1/0),l[0]=a(l[0],1/0),l[1]=a(l[1],1/0);var u=T([{},r,o]);return u.coord=[r.coord,o.coord],u.x0=r.x,u.y0=r.y,u.x1=o.x,u.y1=o.y,u};function RT(t){return!isNaN(t)&&!isFinite(t)}function BT(t,e,n,i){var r=1-t;return RT(e[r])&&RT(n[r])}function VT(t,e){var n=e.coord[0],i=e.coord[1];return!(\"cartesian2d\"!==t.type||!n||!i||!BT(1,n,i)&&!BT(0,n,i))||AT(t,{coord:n,x:e.x0,y:e.y0})||AT(t,{coord:i,x:e.x1,y:e.y1})}function FT(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=bl(s.get(n[0]),r.getWidth()),u=bl(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(n,e));else{var h=[f=t.get(n[0],e),p=t.get(n[1],e)];a.clampData&&a.clampData(h,h),o=a.dataToPoint(h,!0)}if(\"cartesian2d\"===a.type){var c=a.getAxis(\"x\"),d=a.getAxis(\"y\"),f=t.get(n[0],e),p=t.get(n[1],e);RT(f)?o[0]=c.toGlobalCoord(c.getExtent()[\"x0\"===n[0]?0:1]):RT(p)&&(o[1]=d.toGlobalCoord(d.getExtent()[\"y0\"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var GT=[[\"x0\",\"y0\"],[\"x1\",\"y0\"],[\"x1\",\"y1\"],[\"x0\",\"y1\"]];CT.extend({type:\"markArea\",updateTransform:function(t,e,n){e.eachSeries(function(t){var e=t.markAreaModel;if(e){var i=e.getData();i.each(function(e){var r=V(GT,function(r){return FT(i,e,r,t,n)});i.setItemLayout(e,r),i.getItemGraphicEl(e).setShape(\"points\",r)})}},this)},renderSeries:function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new On});this.group.add(l.group),l.__keep=!0;var u=function(t,e,n){var i,r;t?(i=V(t&&t.dimensions,function(t){var n=e.getData();return L({name:t},n.getDimensionInfo(n.mapDimension(t))||{})}),r=new Tf(V([\"x0\",\"y0\",\"x1\",\"y1\"],function(t,e){return{name:t,type:i[e%2].type}}),n)):r=new Tf(i=[{name:\"value\",type:\"float\"}],n);var o=V(n.get(\"data\"),j(zT,e,t,n));t&&(o=G(o,j(VT,t)));var a=t?function(t,e,n,i){return t.coord[Math.floor(i/2)][i%2]}:function(t){return t.value};return r.initData(o,null,a),r.hasItemOption=!0,r}(r,t,e);e.setData(u),u.each(function(e){u.setItemLayout(e,V(GT,function(n){return FT(u,e,n,t,i)})),u.setItemVisual(e,{color:a.getVisual(\"color\")})}),u.diff(l.__data).add(function(t){var e=new Za({shape:{points:u.getItemLayout(t)}});u.setItemGraphicEl(t,e),l.group.add(e)}).update(function(t,n){var i=l.__data.getItemGraphicEl(n);$s(i,{shape:{points:u.getItemLayout(t)}},e,t),l.group.add(i),u.setItemGraphicEl(t,i)}).remove(function(t){var e=l.__data.getItemGraphicEl(t);l.group.remove(e)}).execute(),u.eachItemGraphicEl(function(t,n){var i=u.getItemModel(n),r=i.getModel(\"label\"),o=i.getModel(\"emphasis.label\"),a=u.getItemVisual(n,\"color\");t.useStyle(L(i.getModel(\"itemStyle\").getItemStyle(),{fill:$e(a,.4),stroke:a})),t.hoverStyle=i.getModel(\"emphasis.itemStyle\").getItemStyle(),js(t.style,t.hoverStyle,r,o,{labelFetcher:e,labelDataIndex:n,defaultText:u.getName(n)||\"\",isRectText:!0,autoColor:a}),Fs(t,{}),t.dataModel=e}),l.__data=u,l.group.silent=e.get(\"silent\")||t.get(\"silent\")}}),$d(function(t){t.markArea=t.markArea||{}});var WT=lf({type:\"legend.plain\",dependencies:[\"series\"],layoutMode:{type:\"box\",ignoreSize:!0},init:function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{}},mergeOption:function(t){WT.superCall(this,\"mergeOption\",t)},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&\"single\"===this.get(\"selectedMode\")){for(var e=!1,n=0;n=0},defaultOption:{zlevel:0,z:4,show:!0,orient:\"horizontal\",left:\"center\",top:0,align:\"auto\",backgroundColor:\"rgba(0,0,0,0)\",borderColor:\"#ccc\",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:\"#ccc\",textStyle:{color:\"#333\"},selectedMode:!0,tooltip:{show:!1}}});function HT(t,e,n){var i,r={},o=\"toggleSelected\"===t;return n.eachComponent(\"legend\",function(n){o&&null!=i?n[i?\"select\":\"unSelect\"](e.name):(n[t](e.name),i=n.isSelected(e.name)),B(n.getData(),function(t){var e=t.get(\"name\");if(\"\\n\"!==e&&\"\"!==e){var i=n.isSelected(e);r.hasOwnProperty(e)?r[e]=r[e]&&i:r[e]=i}})}),{name:e.name,selected:r}}ef(\"legendToggleSelect\",\"legendselectchanged\",j(HT,\"toggleSelected\")),ef(\"legendSelect\",\"legendselected\",j(HT,\"select\")),ef(\"legendUnSelect\",\"legendunselected\",j(HT,\"unSelect\"));var jT=j,YT=B,ZT=On,UT=uf({type:\"legend.plain\",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new ZT),this._backgroundEl,this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},render:function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get(\"show\",!0)){var r=t.get(\"align\");r&&\"auto\"!==r||(r=\"right\"===t.get(\"left\")&&\"vertical\"===t.get(\"orient\")?\"right\":\"left\"),this.renderInner(r,t,e,n);var o=t.getBoxLayoutParams(),a={width:n.getWidth(),height:n.getHeight()},s=t.get(\"padding\"),l=su(o,a,s),u=this.layoutInner(t,r,l,i),h=su(L({width:u.width,height:u.height},o),a,s);this.group.attr(\"position\",[h.x-u.x,h.y-u.y]),this.group.add(this._backgroundEl=dA(u,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl)},renderInner:function(t,e,n,i){var r=this.getContentGroup(),o=ht(),a=e.get(\"selectedMode\"),s=[];n.eachRawSeries(function(t){!t.get(\"legendHoverLink\")&&s.push(t.id)}),YT(e.getData(),function(l,u){var h=l.get(\"name\");if(this.newlineDisabled||\"\"!==h&&\"\\n\"!==h){var d=n.getSeriesByName(h)[0];if(!o.get(h)){if(d){var f=d.getData(),p=f.getVisual(\"color\");\"function\"==typeof p&&(p=p(d.getDataParams(0)));var g=f.getVisual(\"legendSymbol\")||\"roundRect\",m=f.getVisual(\"symbol\");this._createItem(h,u,l,e,g,m,t,p,a).on(\"click\",jT(XT,h,i)).on(\"mouseover\",jT(qT,d.name,null,i,s)).on(\"mouseout\",jT(KT,d.name,null,i,s)),o.set(h,!0)}else n.eachRawSeries(function(n){if(!o.get(h)&&n.legendDataProvider){var r=n.legendDataProvider(),c=r.indexOfName(h);if(c<0)return;var d=r.getItemVisual(c,\"color\");this._createItem(h,u,l,e,\"roundRect\",null,t,d,a).on(\"click\",jT(XT,h,i)).on(\"mouseover\",jT(qT,null,h,i,s)).on(\"mouseout\",jT(KT,null,h,i,s)),o.set(h,!0)}},this);c&&(o.get(h)||console.warn(h+\" series not exists. Legend data should be same with series name or data name.\"))}}else r.add(new ZT({newline:!0}))},this)},_createItem:function(t,e,n,i,r,o,a,s,l){var u=i.get(\"itemWidth\"),h=i.get(\"itemHeight\"),c=i.get(\"inactiveColor\"),d=i.get(\"symbolKeepAspect\"),f=i.isSelected(t),p=new ZT,g=n.getModel(\"textStyle\"),m=n.get(\"icon\"),v=n.getModel(\"tooltip\"),y=v.parentModel;if(r=m||r,p.add(Jp(r,0,0,u,h,f?s:c,null==d||d)),!m&&o&&(o!==r||\"none\"===o)){var x=.8*h;\"none\"===o&&(o=\"circle\"),p.add(Jp(o,(u-x)/2,(h-x)/2,x,x,f?s:c,null==d||d))}var _=\"left\"===a?u+5:-5,b=a,w=i.get(\"formatter\"),M=t;\"string\"==typeof w&&w?M=w.replace(\"{name}\",null!=t?t:\"\"):\"function\"==typeof w&&(M=w(t)),p.add(new za({style:Ys({},g,{text:M,x:_,y:h/2,textFill:f?g.getTextColor():c,textAlign:b,textVerticalAlign:\"middle\"})}));var S=new $a({shape:p.getBoundingRect(),invisible:!0,tooltip:v.get(\"show\")?C({content:t,formatter:y.get(\"formatter\",!0)||function(){return t},formatterParams:{componentType:\"legend\",legendIndex:i.componentIndex,name:t,$vars:[\"name\"]}},v.option):null});return p.add(S),p.eachChild(function(t){t.silent=!0}),S.silent=!l,this.getContentGroup().add(p),Fs(p),p.__legendDataIndex=e,p},layoutInner:function(t,e,n){var i=this.getContentGroup();au(t.get(\"orient\"),i,t.get(\"itemGap\"),n.width,n.height);var r=i.getBoundingRect();return i.attr(\"position\",[-r.x,-r.y]),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function XT(t,e){e.dispatchAction({type:\"legendToggleSelect\",name:t})}function qT(t,e,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:\"highlight\",seriesName:t,name:e,excludeSeriesId:i})}function KT(t,e,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:\"downplay\",seriesName:t,name:e,excludeSeriesId:i})}tf(function(t){var e=t.findComponents({mainType:\"legend\"});e&&e.length&&t.filterSeries(function(t){for(var n=0;nn[l],p=[-c.x,-c.y];i||(p[s]=r.position[s]);var g=[0,0],m=[-d.x,-d.y],v=tt(t.get(\"pageButtonGap\",!0),t.get(\"itemGap\",!0));f&&(\"end\"===t.get(\"pageButtonPosition\",!0)?m[s]+=n[l]-d[l]:g[s]+=d[l]+v),m[1-s]+=c[u]/2-d[u]/2,r.attr(\"position\",p),o.attr(\"position\",g),a.attr(\"position\",m);var y=this.group.getBoundingRect();if((y={x:0,y:0})[l]=f?n[l]:c[l],y[u]=Math.max(c[u],d[u]),y[h]=Math.min(0,d[h]+m[1-s]),o.__rectSize=n[l],f){var x={x:0,y:0};x[l]=Math.max(n[l]-d[l]-v,0),x[u]=y[u],o.setClipPath(new $a({shape:x})),o.__rectSize=x[l]}else a.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var _=this._getPageInfo(t);return null!=_.pageIndex&&$s(r,{position:_.contentPosition},!!f&&t),this._updatePageInfoView(t,_),y},_pageGo:function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:\"legendScroll\",scrollDataIndex:i,legendId:e.id})},_updatePageInfoView:function(t,e){var n=this._controllerGroup;B([\"pagePrev\",\"pageNext\"],function(i){var r=null!=e[i+\"DataIndex\"],o=n.childOfName(i);o&&(o.setStyle(\"fill\",r?t.get(\"pageIconColor\",!0):t.get(\"pageIconInactiveColor\",!0)),o.cursor=r?\"pointer\":\"default\")});var i=n.childOfName(\"pageText\"),r=t.get(\"pageFormatter\"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle(\"text\",U(r)?r.replace(\"{current}\",a).replace(\"{total}\",s):r({current:a,total:s}))},_getPageInfo:function(t){var e=t.get(\"scrollDataIndex\",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=tC[r],a=eC[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],h=l.length,c=h?1:0,d={contentPosition:n.position.slice(),pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var f=y(u);d.contentPosition[r]=-f.s;for(var p=s+1,g=f,m=f,v=null;p<=h;++p)(!(v=y(l[p]))&&m.e>g.s+i||v&&!x(v,g.s))&&(g=m.i>g.i?m:v)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),m=v;for(p=s-1,g=f,m=f,v=null;p>=-1;--p)(v=y(l[p]))&&x(m,v.s)||!(g.i=e&&t.s<=e+i}},_findTargetItemIndex:function(t){var e,n=this.getContentGroup();return this._showController?n.eachChild(function(n,i){n.__legendDataIndex===t&&(e=i)}):e=0,e}});ef(\"legendScroll\",\"legendscroll\",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:\"legend\",subType:\"scroll\",query:t},function(t){t.setScrollDataIndex(n)})}),lD.extend({type:\"dataZoom.slider\",layoutMode:\"box\",defaultOption:{show:!0,right:\"ph\",top:\"ph\",width:\"ph\",height:\"ph\",left:null,bottom:null,backgroundColor:\"rgba(47,69,84,0)\",dataBackground:{lineStyle:{color:\"#2f4554\",width:.5,opacity:.3},areaStyle:{color:\"rgba(47,69,84,0.3)\",opacity:.3}},borderColor:\"#ddd\",fillerColor:\"rgba(167,183,204,0.4)\",handleIcon:\"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z\",handleSize:\"100%\",handleStyle:{color:\"#a7b7cc\"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:\"auto\",realtime:!0,zoomLock:!1,textStyle:{color:\"#333\"}}});var iC=$a,rC=_l,oC=Ml,aC=H,sC=B,lC=\"horizontal\",uC=5,hC=[\"line\",\"bar\",\"candlestick\",\"scatter\"],cC=cD.extend({type:\"dataZoom.slider\",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,n,i){cC.superApply(this,\"render\",arguments),uc(this,\"_dispatchZoomAction\",this.dataZoomModel.get(\"throttle\"),\"fixRate\"),this._orient=t.get(\"orient\"),!1!==this.dataZoomModel.get(\"show\")?(i&&\"dataZoom\"===i.type&&i.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){cC.superApply(this,\"remove\",arguments),hc(this,\"_dispatchZoomAction\")},dispose:function(){cC.superApply(this,\"dispose\",arguments),hc(this,\"_dispatchZoomAction\")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new On;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,n=this._findCoordRect(),i={width:e.getWidth(),height:e.getHeight()},r=this._orient===lC?{right:i.width-n.x-n.width,top:i.height-30-7,width:n.width,height:30}:{right:7,top:n.y,width:30,height:n.height},o=hu(t.option);B([\"right\",\"top\",\"width\",\"height\"],function(t){\"ph\"===o[t]&&(o[t]=r[t])});var a=su(o,i,t.padding);this._location={x:a.x,y:a.y},this._size=[a.width,a.height],\"vertical\"===this._orient&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get(\"inverse\"),o=this._displayables.barGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==lC||r?n===lC&&r?{scale:a?[-1,1]:[-1,-1]}:\"vertical\"!==n||r?{scale:a?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:a?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:a?[1,1]:[1,-1]});var s=t.getBoundingRect([o]);t.attr(\"position\",[e.x-s.x,e.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.barGroup;n.add(new iC({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get(\"backgroundColor\")},z2:-40})),n.add(new iC({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:\"transparent\"},z2:0,onclick:H(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,n=t.series,i=n.getRawData(),r=n.getShadowDim?n.getShadowDim():t.otherDim;if(null!=r){var o=i.getDataExtent(r),a=.3*(o[1]-o[0]);o=[o[0]-a,o[1]+a];var s,l=[0,e[1]],u=[0,e[0]],h=[[e[0],0],[0,0]],c=[],d=u[1]/(i.count()-1),f=0,p=Math.round(i.count()/e[0]);i.each([r],function(t,e){if(p>0&&e%p)f+=d;else{var n=null==t||isNaN(t)||\"\"===t,i=n?0:rC(t,o,l,!0);n&&!s&&e?(h.push([h[h.length-1][0],0]),c.push([c[c.length-1][0],0])):!n&&s&&(h.push([f,0]),c.push([f,0])),h.push([f,i]),c.push([f,i]),f+=d,s=n}});var g=this.dataZoomModel;this._displayables.barGroup.add(new Za({shape:{points:h},style:L({fill:g.get(\"dataBackgroundColor\")},g.getModel(\"dataBackground.areaStyle\").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new Ua({shape:{points:c},style:g.getModel(\"dataBackground.lineStyle\").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get(\"showDataShadow\");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis(function(r,o){B(t.getAxisProxy(r.name,o).getTargetSeriesModels(),function(t){if(!(n||!0!==e&&N(hC,t.get(\"type\"))<0)){var a,s=i.getComponent(r.axis,o).axis,l={x:\"y\",y:\"x\",radius:\"angle\",angle:\"radius\"}[r.name],u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:r.name,otherDim:l,otherAxisInverse:a}}},this)},this),n}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],n=t.handleLabels=[],i=this._displayables.barGroup,r=this._size,o=this.dataZoomModel;i.add(t.filler=new iC({draggable:!0,cursor:dC(this._orient),drift:aC(this._onDragMove,this,\"all\"),onmousemove:function(t){qt(t.event)},ondragstart:aC(this._showDataInfo,this,!0),ondragend:aC(this._onDragEnd,this),onmouseover:aC(this._showDataInfo,this,!0),onmouseout:aC(this._showDataInfo,this,!1),style:{fill:o.get(\"fillerColor\"),textPosition:\"inside\"}})),i.add(new iC({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{stroke:o.get(\"dataBackgroundColor\")||o.get(\"borderColor\"),lineWidth:1,fill:\"rgba(0,0,0,0)\"}})),sC([0,1],function(t){var r=al(o.get(\"handleIcon\"),{cursor:dC(this._orient),draggable:!0,drift:aC(this._onDragMove,this,t),onmousemove:function(t){qt(t.event)},ondragend:aC(this._onDragEnd,this),onmouseover:aC(this._showDataInfo,this,!0),onmouseout:aC(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),a=r.getBoundingRect();this._handleHeight=bl(o.get(\"handleSize\"),this._size[1]),this._handleWidth=a.width/a.height*this._handleHeight,r.setStyle(o.getModel(\"handleStyle\").getItemStyle());var s=o.get(\"handleColor\");null!=s&&(r.style.fill=s),i.add(e[t]=r);var l=o.textStyleModel;this.group.add(n[t]=new za({silent:!0,invisible:!0,style:{x:0,y:0,text:\"\",textVerticalAlign:\"middle\",textAlign:\"center\",textFill:l.getTextColor(),textFont:l.getFont()},z2:10}))},this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[rC(t[0],[0,100],e,!0),rC(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];hb(e,i,r,n.get(\"zoomLock\")?\"all\":t,null!=o.minSpan?rC(o.minSpan,a,r,!0):null,null!=o.maxSpan?rC(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=oC([rC(i[0],r,a,!0),rC(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(t){var e=this._displayables,n=this._handleEnds,i=oC(n.slice()),r=this._size;sC([0,1],function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scale:[o/2,o/2],position:[n[t],r[1]/2-o/2]})},this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=[\"\",\"\"];if(e.get(\"showDetail\")){var a=e.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=t?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var h=oC(this._handleEnds.slice());function c(t){var e=el(n.handles[t].parent,this.group),a=il(0===t?\"right\":\"left\",e),s=this._handleWidth/2+uC,l=nl([h[t]+(0===t?-s:s),this._size[1]/2],e);i[t].setStyle({x:l[0],y:l[1],textVerticalAlign:r===lC?\"middle\":a,textAlign:r===lC?a:\"center\",text:o[t]})}c.call(this,0),c.call(this,1)},_formatLabel:function(t,e){var n=this.dataZoomModel,i=n.get(\"labelFormatter\"),r=n.get(\"labelPrecision\");null!=r&&\"auto\"!==r||(r=e.getPixelPrecision());var o=null==t||isNaN(t)?\"\":\"category\"===e.type||\"time\"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(r,20));return Z(i)?i(t,o):U(i)?i.replace(\"{value}\",o):o},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr(\"invisible\",!t),e[1].attr(\"invisible\",!t)},_onDragMove:function(t,e,n){this._dragging=!0;var i=nl([e,n],this._displayables.barGroup.getLocalTransform(),!0),r=this._updateInterval(t,i[0]),o=this.dataZoomModel.get(\"realtime\");this._updateView(!o),r&&o&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get(\"realtime\")&&this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,n=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval(\"all\",n[0]-r);this._updateView(),o&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:\"dataZoom\",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var t;if(sC(this.getTargetCoordInfo(),function(e){if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}}),!t){var e=this.api.getWidth(),n=this.api.getHeight();t={x:.2*e,y:.2*n,width:.6*e,height:.6*n}}return t}});function dC(t){return\"vertical\"===t?\"ns-resize\":\"ew-resize\"}lD.extend({type:\"dataZoom.inside\",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});var fC=\"\\0_ec_dataZoom_roams\";function pC(t,e){var n=vC(t),i=e.dataZoomId,r=e.coordId;B(n,function(t,n){var o=t.dataZoomInfos;o[i]&&N(e.allCoordIds,r)<0&&(delete o[i],t.count--)}),yC(n);var o=n[r];o||((o=n[r]={coordId:r,dataZoomInfos:{},count:0}).controller=function(t,e){var n=new oy(t.getZr());return B([\"pan\",\"zoom\",\"scrollMove\"],function(t){n.on(t,function(n){var i=[];B(e.dataZoomInfos,function(r){if(n.isAvailableBehavior(r.dataZoomModel.option)){var o=(r.getRange||{})[t],a=o&&o(e.controller,n);!r.dataZoomModel.get(\"disabled\",!0)&&a&&i.push({dataZoomId:r.dataZoomId,start:a[0],end:a[1]})}}),i.length&&e.dispatchAction(i)})}),n}(t,o),o.dispatchAction=j(xC,t)),!o.dataZoomInfos[i]&&o.count++,o.dataZoomInfos[i]=e;var a,s,l,u,h=(a=o.dataZoomInfos,l={type_true:2,type_move:1,type_false:0,type_undefined:-1},u=!0,B(a,function(t){var e=t.dataZoomModel,n=!e.get(\"disabled\",!0)&&(!e.get(\"zoomLock\",!0)||\"move\");l[\"type_\"+n]>l[\"type_\"+s]&&(s=n),u&=e.get(\"preventDefaultMouseMove\",!0)}),{controlType:s,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!u}});o.controller.enable(h.controlType,h.opt),o.controller.setPointerChecker(e.containsPoint),uc(o,\"dispatchAction\",e.dataZoomModel.get(\"throttle\",!0),\"fixRate\")}function gC(t,e){var n=vC(t);B(n,function(t){t.controller.dispose();var n=t.dataZoomInfos;n[e]&&(delete n[e],t.count--)}),yC(n)}function mC(t){return t.type+\"\\0_\"+t.id}function vC(t){var e=t.getZr();return e[fC]||(e[fC]={})}function yC(t){B(t,function(e,n){e.count||(e.controller.dispose(),delete t[n])})}function xC(t,e){t.dispatchAction({type:\"dataZoom\",batch:e})}var _C=H,bC=cD.extend({type:\"dataZoom.inside\",init:function(t,e){this._range},render:function(t,e,n,i){bC.superApply(this,\"render\",arguments),this._range=t.getPercentRange(),B(this.getTargetCoordInfo(),function(e,i){var r=V(e,function(t){return mC(t.model)});B(e,function(e){var o=e.model,a={};B([\"pan\",\"zoom\",\"scrollMove\"],function(t){a[t]=_C(wC[t],this,e,i)},this),pC(n,{coordId:mC(o),allCoordIds:r,containsPoint:function(t,e,n){return o.coordinateSystem.containPoint([e,n])},dataZoomId:t.id,dataZoomModel:t,getRange:a})},this)},this)},dispose:function(){gC(this.api,this.dataZoomModel.id),bC.superApply(this,\"dispose\",arguments),this._range=null}}),wC={zoom:function(t,e,n,i){var r=this._range,o=r.slice(),a=t.axisModels[0];if(a){var s=SC[e](null,[i.originX,i.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return hb(0,o,[0,100],0,h.minSpan,h.maxSpan),this._range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:MC(function(t,e,n,i,r,o){var a=SC[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:MC(function(t,e,n,i,r,o){return SC[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta})};function MC(t){return function(e,n,i,r){var o=this._range,a=o.slice(),s=e.axisModels[0];if(s){var l=t(a,s,e,n,i,r);return hb(l,a,[0,100],\"all\"),this._range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var SC={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],\"x\"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),\"radiusAxis\"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],\"horizontal\"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},IC=B,AC=function(t){var e=t&&t.visualMap;Y(e)||(e=e?[e]:[]),IC(e,function(t){if(t){DC(t,\"splitList\")&&!DC(t,\"pieces\")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&Y(e)&&IC(e,function(t){X(t)&&(DC(t,\"start\")&&!DC(t,\"min\")&&(t.min=t.start),DC(t,\"end\")&&!DC(t,\"max\")&&(t.max=t.end))})}})};function DC(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}gu.registerSubTypeDefaulter(\"visualMap\",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?\"piecewise\":\"continuous\"});var TC=dd.VISUAL.COMPONENT;function CC(t,e,n,i){for(var r=e.targetVisuals[i],o=Bx.prepareVisualTypes(r),a={color:t.getData().getVisual(\"color\")},s=0,l=o.length;s\"],Y(t)&&(t=t.slice(),i=!0),r=e?t:i?[u(t[0]),u(t[1])]:u(t),U(l)?l.replace(\"{value}\",i?r[0]:r).replace(\"{value2}\",i?r[1]:r):Z(l)?i?l(t[0],t[1]):l(t):i?t[0]===s[0]?n[0]+\" \"+r[1]:t[1]===s[1]?n[1]+\" \"+r[0]:r[0]+\" - \"+r[1]:r;function u(t){return t===s[0]?\"min\":t===s[1]?\"max\":(+t).toFixed(Math.min(a,20))}},resetExtent:function(){var t=this.option,e=zC([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension,n=t.dimensions;if(null!=e||n.length){if(null!=e)return t.getDimension(e);for(var i=t.dimensions,r=i.length-1;r>=0;r--){var o=i[r];if(!t.getDimensionInfo(o).isCalculationCoord)return o}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});D(i,n),D(r,n);var o=this.isCategory();function a(n){NC(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get(\"gradientColor\")},EC(this.stateList,function(t){var e=n[t];if(U(e)){var i=LC.get(e,\"active\",o);i?(n[t]={},n[t][e]=i):delete n[t]}},this)}a.call(this,i),a.call(this,r),function(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},EC(i,function(t,e){if(Bx.isValidType(e)){var n=LC.get(e,\"inactive\",o);null!=n&&(r[e]=n,\"color\"!==e||r.hasOwnProperty(\"opacity\")||r.hasOwnProperty(\"colorAlpha\")||(r.opacity=[0,0]))}}))}.call(this,i,\"inRange\",\"outOfRange\"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get(\"inactiveColor\");EC(this.stateList,function(r){var a=this.itemSize,s=t[r];s||(s=t[r]={color:o?i:[i]}),null==s.symbol&&(s.symbol=e&&A(e)||(o?\"roundRect\":[\"roundRect\"])),null==s.symbolSize&&(s.symbolSize=n&&A(n)||(o?a[0]:[a[0],a[0]])),s.symbol=PC(s.symbol,function(t){return\"none\"===t||\"square\"===t?\"roundRect\":t});var l=s.symbolSize;if(null!=l){var u=-1/0;OC(l,function(t){t>u&&(u=t)}),s.symbolSize=PC(l,function(t){return RC(t,[0,u],[0,a[0]],!0)})}},this)}.call(this,r)},resetItemSize:function(){this.itemSize=[parseFloat(this.get(\"itemWidth\")),parseFloat(this.get(\"itemHeight\"))]},isCategory:function(){return!!this.option.categories},setSelected:dt,getValueState:dt,getVisualMeta:dt}),VC=[20,140],FC=BC.extend({type:\"visualMap.continuous\",defaultOption:{align:\"auto\",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(t,e){FC.superApply(this,\"optionUpdated\",arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod=\"linear\",t.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){FC.superApply(this,\"resetItemSize\",arguments);var t=this.itemSize;\"horizontal\"===this._orient&&t.reverse(),(null==t[0]||isNaN(t[0]))&&(t[0]=VC[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=VC[1])},_resetRange:function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):Y(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){BC.prototype.completeVisualOption.apply(this,arguments),B(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)},this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=Ml((this.get(\"range\")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?\"inRange\":\"outOfRange\"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)},this),e.push({seriesId:n.id,dataIndex:i})},this),e},getVisualMeta:function(t){var e=GC(0,0,this.getExtent()),n=GC(0,0,this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;at[1])break;n.push({color:this.getControllerVisual(o,\"color\",e),offset:r/100})}return n.push({color:this.getControllerVisual(t[1],\"color\",e),offset:1}),n},_createBarPoints:function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,n=this.visualMapModel.get(\"inverse\");return new On(\"horizontal\"!==e||n?\"horizontal\"===e&&n?{scale:\"bottom\"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:\"vertical\"!==e||n?{scale:\"left\"===t?[1,1]:[-1,1]}:{scale:\"left\"===t?[1,-1]:[-1,-1]}:{scale:\"bottom\"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels;ZC([0,1],function(a){var s=r[a];s.setStyle(\"fill\",e.handlesColor[a]),s.position[1]=t[a];var l=nl(n.handleLabelPoints[a],el(s,this.group));o[a].setStyle({x:l[0],y:l[1],text:i.formatValueText(this._dataInterval[a]),textVerticalAlign:\"middle\",textAlign:this._applyTransform(\"horizontal\"===this._orient?0===a?\"bottom\":\"top\":\"left\",n.barGroup)})},this)}},_showIndicator:function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=YC(t,o,s,!0),u=this._shapes,h=u.indicator;if(h){h.position[1]=l,h.attr(\"invisible\",!1),h.setShape(\"points\",function(t,e,n,i){return t?[[0,-UC(e,XC(n,0))],[KC,0],[0,UC(e,XC(i-n,0))]]:[[0,0],[5,-5],[5,5]]}(!!n,i,l,a[1]));var c=this.getControllerVisual(t,\"color\",{convertOpacityToAlpha:!0});h.setStyle(\"fill\",c);var d=nl(u.indicatorLabelPoint,el(h,this.group)),f=u.indicatorLabel;f.attr(\"invisible\",!1);var p=this._applyTransform(\"left\",u.barGroup),g=this._orient;f.setStyle({text:(n||\"\")+r.formatValueText(e),textVerticalAlign:\"horizontal\"===g?p:\"middle\",textAlign:\"horizontal\"===g?\"center\":p,x:d[0],y:d[1]})}},_enableHoverLinkToSeries:function(){var t=this;this._shapes.barGroup.on(\"mousemove\",function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);i[1]=UC(XC(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on(\"mouseout\",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on(\"mouseover\",this._hoverLinkFromSeriesMouseOver,this),t.on(\"mouseout\",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();t=UC(XC(r[0],t),r[1]);var a=function(t,e,n){var i=qC/2,r=t.get(\"hoverLinkDataSize\");return r&&(i=YC(r,e,n,!0)/2),i}(n,o,r),s=[t-a,t+a],l=YC(t,r,o,!0),u=[YC(s[0],r,o,!0),YC(s[1],r,o,!0)];s[0]r[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],\"< \",a):u[1]===1/0?this._showIndicator(l,u[0],\"> \",a):this._showIndicator(l,l,\"≈ \",a));var h=this._hoverLinkDataIndices,c=[];(e||$C(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=function(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i0?\"pieces\":this.option.categories?\"categories\":\"splitNumber\"},setSelected:function(t){this.option.selected=A(t)},getValueState:function(t){var e=Bx.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?\"inRange\":\"outOfRange\"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),function(e,n){Bx.findPieceIndex(e,this._pieceList)===t&&i.push(n)},this),e.push({seriesId:n.id,dataIndex:i})},this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},getVisualMeta:function(t){if(!this.isCategory()){var e=[],n=[],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return B(r,function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],\"outOfRange\"),s(e.slice()),a=e[1])},this),{stops:e,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}}}),nL={splitNumber:function(){var t=this.option,e=this._pieceList,n=Math.min(t.precision,20),i=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;t.precision=n,o=+o.toFixed(n);var a=0;t.minOpen&&e.push({index:a++,interval:[-1/0,i[0]],close:[0,0]});for(var s=i[0],l=a+r;ao[1]&&console.warn(\"Piece \"+n+\"is illegal: \"+o+\" lower bound should not greater then uppper bound.\"),o[0]===o[1]&&a[0]&&a[1]&&(i.value=o[0])}i.visual=Bx.retrieveVisuals(t),e.push(i)},this),iL(t,e),zl(e),B(e,function(t){var e=t.close,n=[[\"<\",\"≤\"][e[1]],[\">\",\"≥\"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)},this)}};function iL(t,e){var n=t.inverse;(\"vertical\"===t.orient?!n:n)&&e.reverse()}WC.extend({type:\"visualMap.piecewise\",doRender:function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get(\"textGap\"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,h=$(e.get(\"showLabel\",!0),!u);u&&this._renderEndsText(t,u[0],s,h,a),B(l.viewPieceList,function(i){var l=i.piece,u=new On;u.onclick=H(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var c=e.getRepresentValue(l);if(this._createItemSymbol(u,c,[0,0,s[0],s[1]]),h){var d=this.visualMapModel.getValueState(c);u.add(new za({style:{x:\"right\"===a?-n:s[0]+n,y:s[1]/2,text:l.text,textVerticalAlign:\"middle\",textAlign:a,textFont:r,textFill:o,opacity:\"outOfRange\"===d?.5:1}}))}t.add(u)},this),u&&this._renderEndsText(t,u[1],s,h,a),au(e.get(\"orient\"),t,e.get(\"itemGap\")),this.renderBackground(t),this.positionGroup(t)},_enableHoverLink:function(t,e){function n(t){var n=this.visualMapModel;n.option.hoverLink&&this.api.dispatchAction({type:t,batch:jC(n.findTargetDataIndices(e),n)})}t.on(\"mouseover\",H(n,this,\"highlight\")).on(\"mouseout\",H(n,this,\"downplay\"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if(\"vertical\"===e.orient)return HC(t,this.api,t.itemSize);var n=e.align;return n&&\"auto\"!==n||(n=\"left\"),n},_renderEndsText:function(t,e,n,i,r){if(e){var o=new On,a=this.visualMapModel.textStyleModel;o.add(new za({style:{x:i?\"right\"===r?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:\"middle\",textAlign:i?r:\"center\",text:e,textFont:a.getFont(),textFill:a.getTextColor()}})),t.add(o)}},_getViewData:function(){var t=this.visualMapModel,e=V(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get(\"text\"),i=t.get(\"orient\"),r=t.get(\"inverse\");return(\"horizontal\"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},_createItemSymbol:function(t,e,n){t.add(Jp(this.getControllerVisual(e,\"symbol\"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,\"color\")))},_onItemClick:function(t){var e=this.visualMapModel,n=e.option,i=A(n.selected),r=e.getSelectedMapKey(t);\"single\"===n.selectedMode?(i[r]=!0,B(i,function(t,e){i[e]=e===r})):i[r]=!i[r],this.api.dispatchAction({type:\"selectDataRange\",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}}),$d(AC);var rL,oL=\"urn:schemas-microsoft-com:vml\",aL=\"undefined\"==typeof window?null:window,sL=!1,lL=aL&&aL.document;function uL(t){return rL(t)}if(lL&&!p.canvasSupported)try{!lL.namespaces.zrvml&&lL.namespaces.add(\"zrvml\",oL),rL=function(t){return lL.createElement(\"')}}catch(t){rL=function(t){return lL.createElement(\"<\"+t+' xmlns=\"'+oL+'\" class=\"zrvml\">')}}var hL=Qo.CMD,cL=Math.round,dL=Math.sqrt,fL=Math.abs,pL=Math.cos,gL=Math.sin,mL=Math.max;if(!p.canvasSupported){var vL=21600,yL=vL/2,xL=function(t){t.style.cssText=\"position:absolute;left:0;top:0;width:1px;height:1px;\",t.coordsize=vL+\",\"+vL,t.coordorigin=\"0,0\"},_L=function(t,e,n){return\"rgb(\"+[t,e,n].join(\",\")+\")\"},bL=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},wL=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},ML=function(t,e,n){return 1e5*(parseFloat(t)||0)+1e3*(parseFloat(e)||0)+n},SL=function(t,e){return\"string\"==typeof t?t.lastIndexOf(\"%\")>=0?parseFloat(t)/100*e:parseFloat(t):t},IL=function(t,e,n){var i=je(e);n=+n,isNaN(n)&&(n=1),i&&(t.color=_L(i[0],i[1],i[2]),t.opacity=n*i[3])},AL=function(t){var e=je(t);return[_L(e[0],e[1],e[2]),e[3]]},DL=function(t,e,n,i){var r=\"fill\"===e,o=t.getElementsByTagName(e)[0];null!=n[e]&&\"none\"!==n[e]&&(r||!r&&n.lineWidth)?(t[r?\"filled\":\"stroked\"]=\"true\",n[e]instanceof ss&&wL(t,o),o||(o=uL(e)),r?function(t,e,n){var i=e.fill;if(null!=i)if(i instanceof ss){var r,o=0,a=[0,0],s=0,l=1,u=n.getBoundingRect(),h=u.width,c=u.height;if(\"linear\"===i.type){r=\"gradient\";var d=n.transform,f=[i.x*h,i.y*c],p=[i.x2*h,i.y2*c];d&&(Ot(f,f,d),Ot(p,p,d));var g=p[0]-f[0],m=p[1]-f[1];(o=180*Math.atan2(g,m)/Math.PI)<0&&(o+=360),o<1e-6&&(o=0)}else{r=\"gradientradial\",f=[i.x*h,i.y*c],d=n.transform;var v=n.scale,y=h,x=c;a=[(f[0]-u.x)/y,(f[1]-u.y)/x],d&&Ot(f,f,d),y/=v[0]*vL,x/=v[1]*vL;var _=mL(y,x);s=0/_,l=2*i.r/_-s}var b=i.colorStops.slice();b.sort(function(t,e){return t.offset-e.offset});for(var w=b.length,M=[],S=[],I=0;I=2){var T=M[0][0],C=M[1][0],L=M[0][1]*e.opacity,k=M[1][1]*e.opacity;t.type=r,t.method=\"none\",t.focus=\"100%\",t.angle=o,t.color=T,t.color2=C,t.colors=S.join(\",\"),t.opacity=k,t.opacity2=L}\"radial\"===r&&(t.focusposition=a.join(\",\"))}else IL(t,i,e.opacity)}(o,n,i):function(t,e){null!=e.lineDash&&(t.dashstyle=e.lineDash.join(\" \")),null==e.stroke||e.stroke instanceof ss||IL(t,e.stroke,e.opacity)}(o,n),bL(t,o)):(t[r?\"filled\":\"stroked\"]=\"false\",wL(t,o))},TL=[[],[],[]];ya.prototype.brushVML=function(t){var e=this.style,n=this._vmlEl;n||(n=uL(\"shape\"),xL(n),this._vmlEl=n),DL(n,\"fill\",e,this),DL(n,\"stroke\",e,this);var i=this.transform,r=null!=i,o=n.getElementsByTagName(\"stroke\")[0];if(o){var a=e.lineWidth;if(r&&!e.strokeNoScale){var s=i[0]*i[3]-i[1]*i[2];a*=dL(fL(s))}o.weight=a+\"px\"}var l=this.path||(this.path=new Qo);this.__dirtyPath&&(l.beginPath(),l.subPixelOptimize=!1,this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),n.path=function(t,e){var n,i,r,o,a,s,l=hL.M,u=hL.C,h=hL.L,c=hL.A,d=hL.Q,f=[],p=t.data,g=t.len();for(o=0;o.01?O&&(N+=.0125):Math.abs(E-T)<1e-4?O&&ND?x-=.0125:x+=.0125:O&&ET?y+=.0125:y-=.0125),f.push(z,cL(((D-C)*S+w)*vL-yL),\",\",cL(((T-L)*I+M)*vL-yL),\",\",cL(((D+C)*S+w)*vL-yL),\",\",cL(((T+L)*I+M)*vL-yL),\",\",cL((N*S+w)*vL-yL),\",\",cL((E*I+M)*vL-yL),\",\",cL((y*S+w)*vL-yL),\",\",cL((x*I+M)*vL-yL)),a=y,s=x;break;case hL.R:var R=TL[0],B=TL[1];R[0]=p[o++],R[1]=p[o++],B[0]=R[0]+p[o++],B[1]=R[1]+p[o++],e&&(Ot(R,R,e),Ot(B,B,e)),R[0]=cL(R[0]*vL-yL),B[0]=cL(B[0]*vL-yL),R[1]=cL(R[1]*vL-yL),B[1]=cL(B[1]*vL-yL),f.push(\" m \",R[0],\",\",R[1],\" l \",B[0],\",\",R[1],\" l \",B[0],\",\",B[1],\" l \",R[0],\",\",B[1]);break;case hL.Z:f.push(\" x \")}if(n>0){f.push(i);for(var V=0;V100&&(kL=0,LL={});var n,i=PL.style;try{i.font=t,n=i.fontFamily.split(\",\")[0]}catch(t){}e={style:i.fontStyle||\"normal\",variant:i.fontVariant||\"normal\",weight:i.fontWeight||\"normal\",size:0|parseFloat(i.fontSize||12),family:n||\"Microsoft YaHei\"},LL[t]=e,kL++}return e}(r.font),m=g.style+\" \"+g.variant+\" \"+g.weight+\" \"+g.size+'px \"'+g.family+'\"';n=n||yi(o,m,f,p,r.textPadding,r.textLineHeight);var v=this.transform;if(v&&!i&&(OL.copy(e),OL.applyTransform(v),e=OL),i)c=e.x,d=e.y;else{var y=r.textPosition,x=r.textDistance;if(y instanceof Array)c=e.x+SL(y[0],e.width),d=e.y+SL(y[1],e.height),f=f||\"left\";else{var _=bi(y,e,x);c=_.x,d=_.y,f=f||_.textAlign,p=p||_.textVerticalAlign}}c=xi(c,n.width,f),d=_i(d,n.height,p),d+=n.height/2;var b,w,M,S=uL,I=this._textVmlEl;I?w=(b=(M=I.firstChild).nextSibling).nextSibling:(I=S(\"line\"),b=S(\"path\"),w=S(\"textpath\"),M=S(\"skew\"),w.style[\"v-text-align\"]=\"left\",xL(I),b.textpathok=!0,w.on=!0,I.from=\"0 0\",I.to=\"1000 0.05\",bL(I,M),bL(I,b),bL(I,w),this._textVmlEl=I);var A=[c,d],D=I.style;v&&i?(Ot(A,A,v),M.on=!0,M.matrix=v[0].toFixed(3)+\",\"+v[2].toFixed(3)+\",\"+v[1].toFixed(3)+\",\"+v[3].toFixed(3)+\",0,0\",M.offset=(cL(A[0])||0)+\",\"+(cL(A[1])||0),M.origin=\"0 0\",D.left=\"0px\",D.top=\"0px\"):(M.on=!1,D.left=cL(c)+\"px\",D.top=cL(d)+\"px\"),w.string=String(o).replace(/&/g,\"&\").replace(/\"/g,\""\");try{w.style.font=m}catch(t){}DL(I,\"fill\",{fill:r.textFill,opacity:r.opacity},this),DL(I,\"stroke\",{stroke:r.textStroke,opacity:r.opacity,lineDash:r.lineDash},this),I.style.zIndex=ML(this.zlevel,this.z,this.z2),bL(t,I)}},EL=function(t){wL(t,this._textVmlEl),this._textVmlEl=null},zL=function(t){bL(t,this._textVmlEl)},RL=[$i,tr,er,ya,za],BL=0;BL-$L}function nk(t,e){e&&ik(t,\"transform\",\"matrix(\"+YL.call(e,\",\")+\")\")}function ik(t,e,n){(!n||\"linear\"!==n.type&&\"radial\"!==n.type)&&t.setAttribute(e,n)}function rk(t,e,n,i){if(function(t,e){var n=e?t.textFill:t.fill;return null!=n&&n!==ZL}(e,n)){var r=n?e.textFill:e.fill;r=\"transparent\"===r?ZL:r,\"none\"!==t.getAttribute(\"clip-path\")&&r===ZL&&(r=\"rgba(0, 0, 0, 0.002)\"),ik(t,\"fill\",r),ik(t,\"fill-opacity\",null!=e.fillOpacity?e.fillOpacity*e.opacity:e.opacity)}else ik(t,\"fill\",ZL);if(function(t,e){var n=e?t.textStroke:t.stroke;return null!=n&&n!==ZL}(e,n)){var o=n?e.textStroke:e.stroke;ik(t,\"stroke\",o=\"transparent\"===o?ZL:o),ik(t,\"stroke-width\",(n?e.textStrokeWidth:e.lineWidth)/(!n&&e.strokeNoScale?i.getLineScale():1)),ik(t,\"paint-order\",n?\"stroke\":\"fill\"),ik(t,\"stroke-opacity\",null!=e.strokeOpacity?e.strokeOpacity:e.opacity),e.lineDash?(ik(t,\"stroke-dasharray\",e.lineDash.join(\",\")),ik(t,\"stroke-dashoffset\",UL(e.lineDashOffset||0))):ik(t,\"stroke-dasharray\",\"\"),e.lineCap&&ik(t,\"stroke-linecap\",e.lineCap),e.lineJoin&&ik(t,\"stroke-linejoin\",e.lineJoin),e.miterLimit&&ik(t,\"stroke-miterlimit\",e.miterLimit)}else ik(t,\"stroke\",ZL)}var ok={};ok.brush=function(t){var e=t.style,n=t.__svgEl;n||(n=HL(\"path\"),t.__svgEl=n),t.path||t.createPathProxy();var i=t.path;if(t.__dirtyPath){i.beginPath(),i.subPixelOptimize=!1,t.buildPath(i,t.shape),t.__dirtyPath=!1;var r=function(t){for(var e=[],n=t.data,i=t.len(),r=0;r=QL||!ek(g)&&(d>-KL&&d<0||d>KL)==!!p;var y=tk(s+u*qL(c)),x=tk(l+h*XL(c));m&&(d=p?QL-1e-4:1e-4-QL,v=!0,9===r&&e.push(\"M\",y,x));var _=tk(s+u*qL(c+d)),b=tk(l+h*XL(c+d));e.push(\"A\",tk(u),tk(h),UL(f*JL),+v,+p,_,b);break;case jL.Z:o=\"Z\";break;case jL.R:_=tk(n[r++]),b=tk(n[r++]);var w=tk(n[r++]),M=tk(n[r++]);e.push(\"M\",_,b,\"L\",_+w,b,\"L\",_+w,b+M,\"L\",_,b+M,\"L\",_,b)}o&&e.push(o);for(var S=0;S=r&&u+1>=o){for(var h=[],c=0;c=r&&c+1>=o)return dk(0,s.components);l[n]=s}else l[n]=void 0}var p;a++}for(;a<=s;){var f=d();if(f)return f}},pushComponent:function(t,e,n){var i=t[t.length-1];i&&i.added===e&&i.removed===n?t[t.length-1]={count:i.count+1,added:e,removed:n}:t.push({count:1,added:e,removed:n})},extractCommon:function(t,e,n,i){for(var r=e.length,o=n.length,a=t.newPos,s=a-i,l=0;a+1=0;--i)if(e[i]===t)return!0;return!1}),n):null:n[0]},pk.prototype.update=function(t,e){if(t){var n=this.getDefs(!1);if(t[this._domName]&&n.contains(t[this._domName]))\"function\"==typeof e&&e(t);else{var i=this.add(t);i&&(t[this._domName]=i)}}},pk.prototype.addDom=function(t){this.getDefs(!0).appendChild(t)},pk.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},pk.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return B(this._tagNames,function(n){var i=t.getElementsByTagName(n);e=e.concat([].slice.call(i))}),e},pk.prototype.markAllUnused=function(){var t=this.getDoms(),e=this;B(t,function(t){t[e._markLabel]=\"0\"})},pk.prototype.markUsed=function(t){t&&(t[this._markLabel]=\"1\")},pk.prototype.removeUnused=function(){var t=this.getDefs(!1);if(t){var e=this.getDoms(),n=this;B(e,function(e){\"1\"!==e[n._markLabel]&&t.removeChild(e)})}},pk.prototype.getSvgProxy=function(t){return t instanceof ya?ok:t instanceof er?ak:t instanceof za?sk:ok},pk.prototype.getTextSvgElement=function(t){return t.__textSvgEl},pk.prototype.getSvgElement=function(t){return t.__svgEl},E(gk,pk),gk.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var n=this;B([\"fill\",\"stroke\"],function(i){if(e.style[i]&&(\"linear\"===e.style[i].type||\"radial\"===e.style[i].type)){var r,o=e.style[i],a=n.getDefs(!0);o._dom?(r=o._dom,a.contains(o._dom)||n.addDom(r)):r=n.add(o),n.markUsed(e);var s=r.getAttribute(\"id\");t.setAttribute(i,\"url(#\"+s+\")\")}})}},gk.prototype.add=function(t){var e;if(\"linear\"===t.type)e=this.createElement(\"linearGradient\");else{if(\"radial\"!==t.type)return _n(\"Illegal gradient type.\"),null;e=this.createElement(\"radialGradient\")}return t.id=t.id||this.nextId++,e.setAttribute(\"id\",\"zr\"+this._zrId+\"-gradient-\"+t.id),this.updateDom(t,e),this.addDom(e),e},gk.prototype.update=function(t){var e=this;pk.prototype.update.call(this,t,function(){var n=t.type,i=t._dom.tagName;\"linear\"===n&&\"linearGradient\"===i||\"radial\"===n&&\"radialGradient\"===i?e.updateDom(t,t._dom):(e.removeDom(t),e.add(t))})},gk.prototype.updateDom=function(t,e){if(\"linear\"===t.type)e.setAttribute(\"x1\",t.x),e.setAttribute(\"y1\",t.y),e.setAttribute(\"x2\",t.x2),e.setAttribute(\"y2\",t.y2);else{if(\"radial\"!==t.type)return void _n(\"Illegal gradient type.\");e.setAttribute(\"cx\",t.x),e.setAttribute(\"cy\",t.y),e.setAttribute(\"r\",t.r)}t.global?e.setAttribute(\"gradientUnits\",\"userSpaceOnUse\"):e.setAttribute(\"gradientUnits\",\"objectBoundingBox\"),e.innerHTML=\"\";for(var n=t.colorStops,i=0,r=n.length;i0){var i,r,o=this.getDefs(!0),a=e[0],s=n?\"_textDom\":\"_dom\";a[s]?(r=a[s].getAttribute(\"id\"),i=a[s],o.contains(i)||o.appendChild(i)):(r=\"zr\"+this._zrId+\"-clip-\"+this.nextId,++this.nextId,(i=this.createElement(\"clipPath\")).setAttribute(\"id\",r),o.appendChild(i),a[s]=i);var l=this.getSvgProxy(a);if(a.transform&&a.parent.invTransform&&!n){var u=Array.prototype.slice.call(a.transform);he(a.transform,a.parent.invTransform,a.transform),l.brush(a),a.transform=u}else l.brush(a);var h=this.getSvgElement(a);i.innerHTML=\"\",i.appendChild(h.cloneNode()),t.setAttribute(\"clip-path\",\"url(#\"+r+\")\"),e.length>1&&this.updateDom(i,e.slice(1),n)}else t&&t.setAttribute(\"clip-path\",\"none\")},mk.prototype.markUsed=function(t){var e=this;t.__clipPaths&&t.__clipPaths.length>0&&B(t.__clipPaths,function(t){t._dom&&pk.prototype.markUsed.call(e,t._dom),t._textDom&&pk.prototype.markUsed.call(e,t._textDom)})},E(vk,pk),vk.prototype.addWithoutUpdate=function(t,e){if(e&&yk(e.style)){var n,i=e.style;i._shadowDom?(n=i._shadowDom,this.getDefs(!0).contains(i._shadowDom)||this.addDom(n)):n=this.add(e),this.markUsed(e);var r=n.getAttribute(\"id\");t.style.filter=\"url(#\"+r+\")\"}},vk.prototype.add=function(t){var e=this.createElement(\"filter\"),n=t.style;return n._shadowDomId=n._shadowDomId||this.nextId++,e.setAttribute(\"id\",\"zr\"+this._zrId+\"-shadow-\"+n._shadowDomId),this.updateDom(t,e),this.addDom(e),e},vk.prototype.update=function(t,e){var n=e.style;if(yk(n)){var i=this;pk.prototype.update.call(this,e,function(t){i.updateDom(e,t._shadowDom)})}else this.remove(t,n)},vk.prototype.remove=function(t,e){null!=e._shadowDomId&&(this.removeDom(e),t.style.filter=\"\")},vk.prototype.updateDom=function(t,e){var n=e.getElementsByTagName(\"feDropShadow\");n=0===n.length?this.createElement(\"feDropShadow\"):n[0];var i,r,o,a,s=t.style,l=t.scale&&t.scale[0]||1,u=t.scale&&t.scale[1]||1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)i=s.shadowOffsetX||0,r=s.shadowOffsetY||0,o=s.shadowBlur,a=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(e,s);i=s.textShadowOffsetX||0,r=s.textShadowOffsetY||0,o=s.textShadowBlur,a=s.textShadowColor}n.setAttribute(\"dx\",i/l),n.setAttribute(\"dy\",r/u),n.setAttribute(\"flood-color\",a);var h=o/2/l+\" \"+o/2/u;n.setAttribute(\"stdDeviation\",h),e.setAttribute(\"x\",\"-100%\"),e.setAttribute(\"y\",\"-100%\"),e.setAttribute(\"width\",Math.ceil(o/2*200)+\"%\"),e.setAttribute(\"height\",Math.ceil(o/2*200)+\"%\"),e.appendChild(n),s._shadowDom=e},vk.prototype.markUsed=function(t){var e=t.style;e&&e._shadowDom&&pk.prototype.markUsed.call(this,e._shadowDom)};var Ak=function(t,e,n,i){this.root=t,this.storage=e,this._opts=n=C({},n||{});var r=HL(\"svg\");r.setAttribute(\"xmlns\",\"http://www.w3.org/2000/svg\"),r.setAttribute(\"version\",\"1.1\"),r.setAttribute(\"baseProfile\",\"full\"),r.style.cssText=\"user-select:none;position:absolute;left:0;top:0;\",this.gradientManager=new gk(i,r),this.clipPathManager=new mk(i,r),this.shadowManager=new vk(i,r);var o=document.createElement(\"div\");o.style.cssText=\"overflow:hidden;position:relative\",this._svgRoot=r,this._viewport=o,t.appendChild(o),o.appendChild(r),this.resize(n.width,n.height),this._visibleList=[]};Ak.prototype={constructor:Ak,getType:function(){return\"svg\"},getViewportRoot:function(){return this._viewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},setBackgroundColor:function(t){this._viewport.style.background=t},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var e,n,i=this._svgRoot,r=this._visibleList,o=t.length,a=[];for(e=0;e=0;--i)if(n[i]===t)return!0;return!1}),e):null:e[0]},resize:function(t,e){var n=this._viewport;n.style.display=\"none\";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display=\"\",this._width!==t||this._height!==e){this._width=t,this._height=e;var r=n.style;r.width=t+\"px\",r.height=e+\"px\";var o=this._svgRoot;o.setAttribute(\"width\",t),o.setAttribute(\"height\",e)}},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,n=[\"width\",\"height\"][t],i=[\"clientWidth\",\"clientHeight\"][t],r=[\"paddingLeft\",\"paddingTop\"][t],o=[\"paddingRight\",\"paddingBottom\"][t];if(null!=e[n]&&\"auto\"!==e[n])return parseFloat(e[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[i]||xk(s[n])||xk(a.style[n]))-(xk(s[r])||0)-(xk(s[o])||0)|0},dispose:function(){this.root.innerHTML=\"\",this._svgRoot=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},pathToDataUrl:function(){return this.refresh(),\"data:image/svg+xml;charset=UTF-8,\"+this._svgRoot.outerHTML}},B([\"getLayer\",\"insertLayer\",\"eachLayer\",\"eachBuiltinLayer\",\"eachOtherLayer\",\"getLayers\",\"modLayer\",\"delLayer\",\"clearLayer\",\"toDataURL\",\"pathToImage\"],function(t){var e;Ak.prototype[t]=(e=t,function(){_n('In SVG mode painter not support method \"'+e+'\"')})}),wr(\"svg\",Ak),t.version=sd,t.dependencies=ld,t.PRIORITY=dd,t.init=function(t,e,n){if(c){if(_r.replace(\".\",\"\")-0=a.getTime()?n+1:e.getTime()>=l.getTime()?n:n-1}},function(t,e,n){var i=n(1),r=n(95);t.exports=function(t,e){var n=i(t),o=Number(e),a=n.getMonth()+o,s=new Date(0);s.setFullYear(n.getFullYear(),a,1),s.setHours(0,0,0,0);var l=r(s);return n.setMonth(a,Math.min(l,n.getDate())),n}},function(t,e,n){var i=n(9),r=n(6),o=\"[object AsyncFunction]\",a=\"[object Function]\",s=\"[object GeneratorFunction]\",l=\"[object Proxy]\";t.exports=function(t){if(!r(t))return!1;var e=i(t);return e==a||e==s||e==o||e==l}},function(t,e,n){(function(e){var n=\"object\"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(45))},function(t,e){var n;n=function(){return this}();try{n=n||new Function(\"return this\")()}catch(t){\"object\"==typeof window&&(n=window)}t.exports=n},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+\"\"}catch(t){}}return\"\"}},function(t,e,n){var i=n(48),r=n(13),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&r(a,n)&&(void 0!==n||e in t)||i(t,e,n)}},function(t,e,n){var i=n(49);t.exports=function(t,e,n){\"__proto__\"==e&&i?i(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){var i=n(5),r=function(){try{var t=i(Object,\"defineProperty\");return t({},\"\",{}),t}catch(t){}}();t.exports=r},function(t,e,n){var i=n(128),r=n(26),o=n(3),a=n(27),s=n(29),l=n(51),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),h=!n&&r(t),c=!n&&!h&&a(t),d=!n&&!h&&!c&&l(t),f=n||h||c||d,p=f?i(t.length,String):[],g=p.length;for(var m in t)!e&&!u.call(t,m)||f&&(\"length\"==m||c&&(\"offset\"==m||\"parent\"==m)||d&&(\"buffer\"==m||\"byteLength\"==m||\"byteOffset\"==m)||s(m,g))||p.push(m);return p}},function(t,e,n){var i=n(131),r=n(17),o=n(31),a=o&&o.isTypedArray,s=a?r(a):i;t.exports=s},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var i=n(50),r=n(135),o=n(8);t.exports=function(t){return o(t)?i(t,!0):r(t)}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var i=n(34),r=n(56),o=n(33),a=n(54),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)i(e,o(t)),t=r(t);return e}:a;t.exports=s},function(t,e,n){var i=n(52)(Object.getPrototypeOf,Object);t.exports=i},function(t,e,n){var i=n(58),r=n(33),o=n(10);t.exports=function(t){return i(t,o,r)}},function(t,e,n){var i=n(34),r=n(3);t.exports=function(t,e,n){var o=e(t);return r(t)?o:i(o,n(t))}},function(t,e,n){var i=n(5)(n(2),\"Set\");t.exports=i},function(t,e,n){var i=n(2).Uint8Array;t.exports=i},function(t,e,n){var i=n(34),r=n(158);t.exports=function t(e,n,o,a,s){var l=-1,u=e.length;for(o||(o=r),s||(s=[]);++l0&&o(h)?n>1?t(h,n-1,o,a,s):i(s,h):a||(s[s.length]=h)}return s}},function(t,e,n){var i=n(19),r=n(159),o=n(161);t.exports=function(t,e){return o(r(t,e,i),t+\"\")}},function(t,e,n){var i=n(25),r=n(166),o=n(167);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new i;++ed))return!1;var p=h.get(t);if(p&&h.get(e))return p==e;var g=-1,m=!0,v=n&s?new i:void 0;for(h.set(t,e),h.set(e,t);++g1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),r(t,i(e,1),[])});t.exports=s},function(t){t.exports=JSON.parse('{\"type\":\"FeatureCollection\",\"features\":[{\"id\":\"710000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@°Ü¯Û\"],[\"@@ƛĴÕƊÉɼģºðʀ\\\\\\\\ƎsÆNŌÔĚäœnÜƤɊĂǀĆĴžĤNJŨxĚĮǂƺòƌ‚–âÔ®ĮXŦţƸZûЋƕƑGđ¨ĭMó·ęcëƝɉlÝƯֹÅŃ^Ó·śŃNjƏďíåɛGɉ™¿@ăƑŽ¥ĘWǬÏĶŁâ\"],[\"@@\\\\\\\\p|WoYG¿¥I†j@¢\"],[\"@@…¡‰@ˆV^RqˆBbAŒnTXeRz¤Lž«³I\"],[\"@@ÆEE—„kWqë @œ\"],[\"@@fced\"]],\"encodeOffsets\":[[[122886,24033]],[[123335,22980]],[[122375,24193]],[[122518,24117]],[[124427,22618]],[[124862,26043]]]},\"properties\":{\"cp\":[121.509062,25.044332],\"name\":\"台湾\",\"childNum\":6}},{\"id\":\"130000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@o~†Z]‚ªr‰ºc_ħ²G¼s`jΟnüsœłNX_“M`ǽÓnUK…Ĝēs¤­©yrý§uģŒc†JŠ›e\"],[\"@@U`Ts¿m‚\"],[\"@@oºƋÄd–eVŽDJj£€J|Ådz•Ft~žKŨ¸IÆv|”‡¢r}膎onb˜}`RÎÄn°ÒdÞ²„^®’lnÐèĄlðӜ×]ªÆ}LiĂ±Ö`^°Ç¶p®đDcœŋ`–ZÔ’¶êqvFƚ†N®ĆTH®¦O’¾ŠIbÐã´BĐɢŴÆíȦp–ĐÞXR€·nndOž¤’OÀĈƒ­Qg˜µFo|gȒęSWb©osx|hYh•gŃfmÖĩnº€T̒Sp›¢dYĤ¶UĈjl’ǐpäìë|³kÛfw²Xjz~ÂqbTŠÑ„ěŨ@|oM‡’zv¢ZrÃVw¬ŧĖ¸fŒ°ÐT€ªqŽs{Sž¯r æÝlNd®²Ğ džiGʂJ™¼lr}~K¨ŸƐÌWö€™ÆŠzRš¤lêmĞL΄’@¡|q]SvK€ÑcwpÏρ†ĿćènĪWlĄkT}ˆJ”¤~ƒÈT„d„™pddʾĬŠ”ŽBVt„EÀ¢ôPĎƗè@~‚k–ü\\\\\\\\rÊĔÖæW_§¼F˜†´©òDòj’ˆYÈrbĞāøŀG{ƀ|¦ðrb|ÀH`pʞkv‚GpuARhÞÆǶgʊTǼƹS£¨¡ù³ŘÍ]¿Ây™ôEP xX¶¹܇O¡“gÚ¡IwÃ鑦ÅB‡Ï|Ç°…N«úmH¯‹âŸDùŽyŜžŲIÄuШDž•¸dɂ‡‚FŸƒ•›Oh‡đ©OŸ›iÃ`ww^ƒÌkŸ‘ÑH«ƇǤŗĺtFu…{Z}Ö@U‡´…ʚLg®¯Oı°ÃwŸ ^˜—€VbÉs‡ˆmA…ê]]w„§›RRl£‡ȭµu¯b{ÍDěïÿȧŽuT£ġƒěŗƃĝ“Q¨fV†Ƌ•ƅn­a@‘³@šď„yýIĹÊKšŭfċŰóŒxV@tˆƯŒJ”]eƒR¾fe|rHA˜|h~Ėƍl§ÏŠlTíb ØoˆÅbbx³^zÃĶš¶Sj®A”yÂhðk`š«P€”ˈµEF†Û¬Y¨Ļrõqi¼‰Wi°§’б´°^[ˆÀ|ĠO@ÆxO\\\\\\\\tŽa\\\\\\\\tĕtû{ġŒȧXýĪÓjùÎRb›š^ΛfK[ݏděYfíÙTyŽuUSyŌŏů@Oi½’éŅ­aVcř§ax¹XŻác‡žWU£ôãºQ¨÷Ñws¥qEH‰Ù|‰›šYQoŕÇyáĂ£MðoťÊ‰P¡mšWO¡€v†{ôvîēÜISpÌhp¨ ‘j†deŔQÖj˜X³à™Ĉ[n`Yp@Už–cM`’RKhŒEbœ”pŞlNut®Etq‚nsÁŠgA‹iú‹oH‡qCX‡”hfgu“~ϋWP½¢G^}¯ÅīGCŸÑ^ãziMáļMTÃƘrMc|O_ž¯Ŏ´|‡morDkO\\\\\\\\mĆJfl@cĢ¬¢aĦtRıҙ¾ùƀ^juųœK­ƒUFy™—Ɲ…›īÛ÷ąV×qƥV¿aȉd³B›qPBm›aËđŻģm“Å®VŠ¹d^K‡KoŸnYg“¯Xhqa”Ldu¥•ÍpDž¡KąÅƒkĝęěhq‡}HyÓ]¹ǧ£…Í÷¿qᵧš™g‘¤o^á¾ZE‡¤i`ij{n•ƒOl»ŸWÝĔįhg›F[¿¡—ßkOüš_‰€ū‹i„DZàUtėGylƒ}ŒÓM}€jpEC~¡FtoQi‘šHkk{Ãmï‚\"]],\"encodeOffsets\":[[[119712,40641]],[[121616,39981]],[[116462,37237]]]},\"properties\":{\"cp\":[114.502461,38.045474],\"name\":\"河北\",\"childNum\":3}},{\"id\":\"140000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[\"@@Þĩ҃S‰ra}Á€yWix±Üe´lè“ßÓǏok‘ćiµVZģ¡coœ‘TS˹ĪmnÕńe–hZg{gtwªpXaĚThȑp{¶Eh—®RćƑP¿£‘Pmc¸mQÝW•ďȥoÅîɡųAďä³aωJ‘½¥PG­ąSM­™…EÅruµé€‘Yӎ•Ō_d›ĒCo­Èµ]¯_²ÕjāŽK~©ÅØ^ԛkïçămϑk]­±ƒcݯÑÃmQÍ~_a—pm…~ç¡q“ˆu{JÅŧ·Ls}–EyÁÆcI{¤IiCfUc•ƌÃp§]웫vD@¡SÀ‘µM‚ÅwuŽYY‡¡DbÑc¡hƒ×]nkoQdaMç~eD•ÛtT‰©±@¥ù@É¡‰ZcW|WqOJmĩl«ħşvOÓ«IqăV—¥ŸD[mI~Ó¢cehiÍ]Ɠ~ĥqXŠ·eƷœn±“}v•[ěďŽŕ]_‘œ•`‰¹ƒ§ÕōI™o©b­s^}Ét±ū«³p£ÿ·Wµ|¡¥ăFÏs׌¥ŅxŸÊdÒ{ºvĴÎêÌɊ²¶€ü¨|ÞƸµȲ‘LLúÉƎ¤ϊęĔV`„_bª‹S^|ŸdŠzY|dz¥p†ZbÆ£¶ÒK}tĦÔņƠ‚PYzn€ÍvX¶Ěn ĠÔ„zý¦ª˜÷žÑĸَUȌ¸‚dòÜJð´’ìúNM¬ŒXZ´‘¤ŊǸ_tldIš{¦ƀðĠȤ¥NehXnYG‚‡R° ƬDj¬¸|CĞ„Kq‚ºfƐiĺ©ª~ĆOQª ¤@ìǦɌ²æBŒÊ”TœŸ˜ʂōĖ’šĴŞ–ȀœÆÿȄlŤĒö„t”νî¼ĨXhŒ‘˜|ªM¤Ðz\"],\"encodeOffsets\":[[116874,41716]]},\"properties\":{\"cp\":[112.549248,37.857014],\"name\":\"山西\",\"childNum\":1}},{\"id\":\"150000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@Č^â£Ăh–šĖMÈÄw‚\\\\\\\\fŦ°W ¢¾luŸD„wŠ\\\\\\\\̀ʉÌÛM…Ā[bӞEn}¶Vc…ê“sƒ–›¯PqƒFB…‰|S•³C|kñ•H‹d‘iÄ¥sˆʼnő…PóÑÑE^‘ÅPpy_YtS™hQ·aHwsOnʼnÚs©iqj›‰€USiº]ïWš‰«gW¡A–R붛ijʕ…Œů`çõh]y»ǃŸǛҤxÒm~zf}pf|ÜroÈzrKÈĵSƧ„ż؜Ġu¦ö\"],[\"@@sKCš…GS|úþX”gp›{ÁX¿Ÿć{ƱȏñZáĔyoÁhA™}ŅĆfdʼn„_¹„Y°ėǩÑ¡H¯¶oMQqð¡Ë™|‘Ñ`ƭŁX½·óۓxğįÅcQ‡ˆ“ƒs«tȋDžF“Ÿù^i‘t«Č¯[›hAi©á¥ÇĚ×l|¹y¯YȵƓ‹ñǙµï‚ċ™Ļ|Dœ™üȭ¶¡˜›oŽäÕG\\\\\\\\ďT¿Òõr¯œŸLguÏYęRƩšɷŌO\\\\\\\\İТæ^Ŋ IJȶȆbÜGŽĝ¬¿ĚVĎgª^íu½jÿĕęjık@Ľƒ]ėl¥Ë‡ĭûÁ„ƒėéV©±ćn©­ȇžÍq¯½•YÃÔʼn“ÉNѝÅÝy¹NqáʅDǡËñ­ƁYÅy̱os§ȋµʽǘǏƬɱà‘ưN¢ƔÊuľýľώȪƺɂļžxœZĈ}ÌʼnŪ˜ĺœŽĭFЛĽ̅ȣͽÒŵìƩÇϋÿȮǡŏçƑůĕ~Ǎ›¼ȳÐUf†dIxÿ\\\\\\\\G ˆzâɏÙOº·pqy£†@ŒŠqþ@Ǟ˽IBäƣzsÂZ†ÁàĻdñ°ŕzéØűzșCìDȐĴĺf®ŽÀľưø@ɜÖÞKĊŇƄ§‚͑těï͡VAġÑÑ»d³öǍÝXĉĕÖ{þĉu¸ËʅğU̎éhɹƆ̗̮ȘNJ֥ड़ࡰţાíϲäʮW¬®ҌeרūȠkɬɻ̼ãüfƠSצɩςåȈHϚÎKdzͲOðÏȆƘ¼CϚǚ࢚˼ФԂ¤ƌžĞ̪Qʤ´¼mȠJˀŸƲÀɠmǐnǔĎȆÞǠN~€ʢĜ‚¶ƌĆĘźʆȬ˪ĚĒ¸ĞGȖƴƀj`ĢçĶāàŃºēĢƒĖćšYŒÀŎüôQÐÂŎŞdžŞêƖš˜oˆDĤÕºÑǘÛˤ³̀gńƘĔÀ^žªƂ`ªt¾äƚêĦĀ¼Ð€Ĕǎ¨Ȕ»͠^ˮÊȦƤøxRrŜH¤¸ÂxDĝŒ|ø˂˜ƮÐ¬ɚwɲFjĔ²Äw°dždÀɞ_ĸdîàŎjʜêTЪŌ‡ŜWÈ|tqĢUB~´°ÎFC•ŽU¼pĀēƄN¦¾O¶ŠłKĊOj“Ě”j´ĜYp˜{¦„ˆSĚÍ\\\\\\\\Tš×ªV–÷Ší¨ÅDK°ßtŇĔKš¨ǵÂcḷ̌ĚǣȄĽF‡lġUĵœŇ‹ȣFʉɁƒMğįʏƶɷØŭOǽ«ƽū¹Ʊő̝Ȩ§ȞʘĖiɜɶʦ}¨֪ࠜ̀ƇǬ¹ǨE˦ĥªÔêFŽxúQ„Er´W„rh¤Ɛ \\\\\\\\talĈDJ˜Ü|[Pll̚¸ƎGú´Pž¬W¦†^¦–H]prR“n|or¾wLVnÇIujkmon£cX^Bh`¥V”„¦U¤¸}€xRj–[^xN[~ªŠxQ„‚[`ªHÆÂExx^wšN¶Ê˜|¨ì†˜€MrœdYp‚oRzNy˜ÀDs~€bcfÌ`L–¾n‹|¾T‚°c¨È¢a‚r¤–`[|òDŞĔöxElÖdH„ÀI`„Ď\\\\\\\\Àì~ƎR¼tf•¦^¢ķ¶e”ÐÚMŒptgj–„ɡČÅyġLû™ŇV®ŠÄÈƀ†Ď°P|ªVV†ªj–¬ĚÒêp¬–E|ŬÂc|ÀtƐK fˆ{ĘFĒœƌXƲąo½Ę‘\\\\\\\\¥–o}›Ûu£ç­kX‘{uĩ«āíÓUŅßŢq€Ť¥lyň[€oi{¦‹L‡ń‡ðFȪȖ”ĒL„¿Ì‹ˆfŒ£K£ʺ™oqNŸƒwğc`ue—tOj×°KJ±qƒÆġm‰Ěŗos¬…qehqsuœƒH{¸kH¡Š…ÊRǪÇƌbȆ¢´ä܍¢NìÉʖ¦â©Ż؛Ç@Vu»A—ylßí¹ĵê…ÝlISò³C¹Ìâ„²i¶’Ìoú^H“²CǜңDŽ z¼g^èöŰ_‹‚–†IJĕꄜ}gÁnUI«m‰…„‹]j‡vV¼euhwqA„aW˜ƒ_µj…»çjioQR¹ēÃßt@r³[ÛlćË^ÍÉáG“›OUۗOB±•XŸkŇ¹£k|e]ol™ŸkVͼÕqtaÏõjgÁ£§U^Œ”RLˆËnX°Ç’Bz†^~wfvˆypV ¯„ƫĉ˭ȫƗŷɿÿĿƑ˃ĝÿÃǃßËőó©ǐȍŒĖM×ÍEyx‹þp]Évïè‘vƀnÂĴÖ@‚‰†V~Ĉ™Š³MEˆĸÅĖt—ējyÄDXÄxGQuv_›i¦aBçw‘˛wD™©{ŸtāmQ€{EJ§KPśƘƿ¥@‰sCT•É}ɃwˆƇy±ŸgÑ“}T[÷kÐ禫…SÒ¥¸ëBX½‰HáŵÀğtSÝÂa[ƣ°¯¦P]£ġ“–“Òk®G²„èQ°óMq}EŠóƐÇ\\\\\\\\ƒ‡@áügQ͋u¥Fƒ“T՛¿Jû‡]|mvāÎYua^WoÀa·­ząÒot׶CLƗi¯¤mƎHNJ¤îìɾŊìTdåwsRÖgĒųúÍġäÕ}Q¶—ˆ¿A•†‹[¡Œ{d×uQAƒ›M•xV‹vMOmăl«ct[wº_šÇʊŽŸjb£ĦS_é“QZ“_lwgOiýe`YYLq§IÁˆdz£ÙË[ÕªuƏ³ÍT—s·bÁĽäė[›b[ˆŗfãcn¥îC¿÷µ[ŏÀQ­ōšĉm¿Á^£mJVm‡—L[{Ï_£›F¥Ö{ŹA}…×Wu©ÅaųijƳhB{·TQqÙIķˑZđ©Yc|M¡…L•eVUóK_QWk’_ĥ‘¿ãZ•»X\\\\\\\\ĴuUƒè‡lG®ěłTĠğDєOrÍd‚ÆÍz]‹±…ŭ©ŸÅ’]ŒÅÐ}UË¥©Tċ™ïxgckfWgi\\\\\\\\ÏĒ¥HkµE˜ë{»ÏetcG±ahUiñiWsɁˆ·c–C‚Õk]wȑ|ća}w…VaĚ᠞ŒG°ùnM¬¯†{ȈÐÆA’¥ÄêJxÙ¢”hP¢Ûˆº€µwWOŸóFŽšÁz^ÀŗÎú´§¢T¤ǻƺSė‰ǵhÝÅQgvBHouʝl_o¿Ga{ïq{¥|ſĿHĂ÷aĝÇq‡Z‘ñiñC³ª—…»E`¨åXēÕqÉû[l•}ç@čƘóO¿¡ƒFUsA‰“ʽīccšocƒ‚ƒÇS}„“£‡IS~ălkĩXçmĈ…ŀЂoÐdxÒuL^T{r@¢‘žÍƒĝKén£kQ™‰yšÅõËXŷƏL§~}kqš»IHėDžjĝŸ»ÑÞoŸå°qTt|r©ÏS‹¯·eŨĕx«È[eMˆ¿yuˆ‘pN~¹ÏyN£{©’—g‹ħWí»Í¾s“əšDž_ÃĀɗ±ą™ijĉʍŌŷ—S›É“A‹±åǥɋ@럣R©ąP©}ĹªƏj¹erƒLDĝ·{i«ƫC£µ\"]],\"encodeOffsets\":[[[127444,52594]],[[113793,40312]]]},\"properties\":{\"cp\":[111.670801,40.818311],\"name\":\"内蒙古\",\"childNum\":2}},{\"id\":\"210000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@L–Ž@@s™a\"],[\"@@MnNm\"],[\"@@d‚c\"],[\"@@eÀ‚C@b‚“‰\"],[\"@@f‡…Xwkbr–Ä`qg\"],[\"@@^jtW‘Q\"],[\"@@~ Y]c\"],[\"@@G`ĔN^_¿Z‚ÃM\"],[\"@@iX¶B‹Y\"],[\"@@„YƒZ\"],[\"@@L_{Epf\"],[\"@@^WqCT\\\\\\\\\"],[\"@@\\\\\\\\[“‹§t|”¤_\"],[\"@@m`n_\"],[\"@@Ïxnj{q_×^Giip\"],[\"@@@œé^B†‡ntˆaÊU—˜Ÿ]x ¯ÄPIJ­°h€ʙK³†VˆÕ@Y~†|EvĹsDŽ¦­L^p²ŸÒG ’Ël]„xxÄ_˜fT¤Ď¤cŽœP„–C¨¸TVjbgH²sdÎdHt`Bˆ—²¬GJję¶[ÐhjeXdlwhšðSȦªVÊπ‹Æ‘Z˜ÆŶ®²†^ŒÎyÅÎcPqń“ĚDMħĜŁH­ˆk„çvV[ij¼W–‚YÀäĦ’‘`XlžR`žôLUVžfK–¢†{NZdĒª’YĸÌÚJRr¸SA|ƴgŴĴÆbvªØX~†źBŽ|¦ÕœEž¤Ð`\\\\\\\\|Kˆ˜UnnI]¤ÀÂĊnŎ™R®Ő¿¶\\\\\\\\ÀøíDm¦ÎbŨab‰œaĘ\\\\\\\\ľã‚¸a˜tÎSƐ´©v\\\\\\\\ÖÚÌǴ¤Â‡¨JKr€Z_Z€fjþhPkx€`Y”’RIŒjJcVf~sCN¤ ˆE‚œhæm‰–sHy¨SðÑÌ\\\\\\\\\\\\\\\\ŸĐRZk°IS§fqŒßýáЍÙÉÖ[^¯ǤŲ„ê´\\\\\\\\¦¬ĆPM¯£Ÿˆ»uïpùzEx€žanµyoluqe¦W^£ÊL}ñrkqWňûP™‰UP¡ôJŠoo·ŒU}£Œ„[·¨@XŒĸŸ“‹‹DXm­Ûݏº‡›GU‹CÁª½{íĂ^cj‡k“¶Ã[q¤“LÉö³cux«zZfƒ²BWÇ®Yß½ve±ÃC•ý£W{Ú^’q^sÑ·¨‹ÍOt“¹·C¥‡GD›rí@wÕKţ݋˜Ÿ«V·i}xËÍ÷‘i©ĝ‡ɝǡ]ƒˆ{c™±OW‹³Ya±Ÿ‰_穂Hžĕoƫ€Ňqƒr³‰Lys[„ñ³¯OS–ďOMisZ†±ÅFC¥Pq{‚Ã[Pg}\\\\\\\\—¿ghćO…•k^ģÁFıĉĥM­oEqqZûěʼn³F‘¦oĵ—hŸÕP{¯~TÍlª‰N‰ßY“Ð{Ps{ÃVU™™eĎwk±ʼnVÓ½ŽJãÇÇ»Jm°dhcÀff‘dF~ˆ€ĀeĖ€d`sx² šƒ®EżĀdQ‹Âd^~ăÔHˆ¦\\\\\\\\›LKpĄVez¤NP ǹӗR™ÆąJSh­a[¦´Âghwm€BÐ¨źhI|žVVŽ—Ž|p] Â¼èNä¶ÜBÖ¼“L`‚¼bØæŒKV”ŸpoœúNZÞÒKxpw|ÊEMnzEQšŽIZ”ŽZ‡NBˆčÚFÜçmĩ‚WĪñt‘ÞĵÇñZ«uD‚±|Əlij¥ãn·±PmÍa‰–da‡ CL‡Ǒkùó¡³Ï«QaċϑOÃ¥ÕđQȥċƭy‹³ÃA\"]],\"encodeOffsets\":[[[123686,41445]],[[126019,40435]],[[124393,40128]],[[126117,39963]],[[125322,40140]],[[126686,40700]],[[126041,40374]],[[125584,40168]],[[125453,40165]],[[125362,40214]],[[125280,40291]],[[125774,39997]],[[125976,40496]],[[125822,39993]],[[125509,40217]],[[122731,40949]]]},\"properties\":{\"cp\":[123.429096,41.796767],\"name\":\"辽宁\",\"childNum\":16}},{\"id\":\"220000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[\"@@‘p䔳PClƒFbbÍzš€wBG’ĭ€Z„Åi“»ƒlY­ċ²SgŽkÇ£—^S‰“qd¯•‹R…©éŽ£¯S†\\\\\\\\cZ¹iűƏCuƍÓX‡oR}“M^o•£…R}oªU­F…uuXHlEŕ‡€Ï©¤ÛmTŽþ¤D–²ÄufàÀ­XXȱAe„yYw¬dvõ´KÊ£”\\\\\\\\rµÄl”iˆdā]|DÂVŒœH¹ˆÞ®ÜWnŒC”Œķ W‹§@\\\\\\\\¸‹ƒ~¤‹Vp¸‰póIO¢ŠVOšŇürXql~òÉK]¤¥Xrfkvzpm¶bwyFoúvð‡¼¤ N°ąO¥«³[ƒéǡű_°Õ\\\\\\\\ÚÊĝŽþâőàerR¨­JYlďQ[ ÏYëЧTGz•tnŠß¡gFkMŸāGÁ¤ia É‰™È¹`\\\\\\\\xs€¬dĆkNnuNUŠ–užP@‚vRY¾•–\\\\\\\\¢…ŒGªóĄ~RãÖÎĢù‚đŴÕhQŽxtcæëSɽʼníëlj£ƍG£nj°KƘµDsØÑpyƸ®¿bXp‚]vbÍZuĂ{nˆ^IüœÀSք”¦EŒvRÎûh@℈[‚Əȉô~FNr¯ôçR±ƒ­HÑl•’Ģ–^¤¢‚OðŸŒævxsŒ]ÞÁTĠs¶¿âƊGW¾ìA¦·TѬ†è¥€ÏÐJ¨¼ÒÖ¼ƒƦɄxÊ~S–tD@ŠĂ¼Ŵ¡jlºWžvЉˆzƦZЎ²CH— „Axiukd‹ŒGgetqmcžÛ£Ozy¥cE}|…¾cZ…k‚‰¿uŐã[oxGikfeäT@…šSUwpiÚFM©’£è^ڟ‚`@v¶eň†f h˜eP¶žt“äOlÔUgƒÞzŸU`lœ}ÔÆUvØ_Ō¬Öi^ĉi§²ÃŠB~¡Ĉ™ÚEgc|DC_Ȧm²rBx¼MÔ¦ŮdĨÃâYx‘ƘDVÇĺĿg¿cwÅ\\\\\\\\¹˜¥Yĭlœ¤žOv†šLjM_a W`zļMž·\\\\\\\\swqÝSA‡š—q‰Śij¯Š‘°kŠRē°wx^Đkǂғ„œž“œŽ„‹\\\\\\\\]˜nrĂ}²ĊŲÒøãh·M{yMzysěnĒġV·°“G³¼XÀ““™¤¹i´o¤ŃšŸÈ`̃DzÄUĞd\\\\\\\\i֚ŒˆmÈBĤÜɲDEh LG¾ƀľ{WaŒYÍȏĢĘÔRîĐj‹}Ǟ“ccj‡oUb½š{“h§Ǿ{K‹ƖµÎ÷žGĀÖŠåưÎs­l›•yiē«‹`姝H¥Ae^§„GK}iã\\\\\\\\c]v©ģZ“mÃ|“[M}ģTɟĵ‘Â`À–çm‰‘FK¥ÚíÁbXš³ÌQґHof{‰]e€pt·GŋĜYünĎųVY^’˜ydõkÅZW„«WUa~U·Sb•wGçǑ‚“iW^q‹F‚“›uNĝ—·Ew„‹UtW·Ýďæ©PuqEzwAV•—XR‰ãQ`­©GŒM‡ehc›c”ďϝd‡©ÑW_ϗYƅŒ»…é\\\\\\\\ƒɹ~ǙG³mØ©BšuT§Ĥ½¢Ã_ý‘L¡‘ýŸqT^rme™\\\\\\\\Pp•ZZbƒyŸ’uybQ—efµ]UhĿDCmûvašÙNSkCwn‰cćfv~…Y‹„ÇG\"],\"encodeOffsets\":[[130196,42528]]},\"properties\":{\"cp\":[125.3245,43.886841],\"name\":\"吉林\",\"childNum\":1}},{\"id\":\"230000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@ƨƒĶTLÇyqpÇÛqe{~oyen}s‰`q‡iXG”ù]Ëp½“©lɇÁp]Þñ´FÔ^f‘äîºkà˜z¼BUvÈ@\"],[\"@@UƒµNÿ¥īè灋•HÍøƕ¶LŒǽ|g¨|”™Ža¾pViˆdd”~ÈiŒíďÓQġėǐZ΋ŽXb½|ſÃH½ŸKFgɱCģÛÇA‡n™‹jÕc[VĝDZÃ˄Ç_™ £ń³pŽj£º”š¿”»WH´¯”U¸đĢmžtĜyzzNN|g¸÷äűѱĉā~mq^—Œ[ƒ”››”ƒǁÑďlw]¯xQĔ‰¯l‰’€°řĴrŠ™˜BˆÞTxr[tŽ¸ĻN_yŸX`biN™Ku…P›£k‚ZĮ—¦[ºxÆÀdhŽĹŀUÈƗCw’áZħÄŭcÓ¥»NAw±qȥnD`{ChdÙFćš}¢‰A±Äj¨]ĊÕjŋ«×`VuÓś~_kŷVÝyh„“VkÄãPs”Oµ—fŸge‚Ň…µf@u_Ù ÙcŸªNªÙEojVx™T@†ãSefjlwH\\\\\\\\pŏäÀvŠŽlY†½d{†F~¦dyz¤PÜndsrhf‹HcŒvlwjFœ£G˜±DύƥY‡yϊu¹XikĿ¦ÏqƗǀOŜ¨LI|FRĂn sª|Cš˜zxAè¥bœfudTrFWÁ¹Am|˜ĔĕsķÆF‡´Nš‰}ć…UŠÕ@Áijſmužç’uð^ÊýowŒFzØÎĕNőžǏȎôªÌŒDŽàĀÄ˄ĞŀƒʀĀƘŸˮȬƬĊ°ƒUŸzou‡xe]}Ž…AyȑW¯ÌmK‡“Q]‹Īºif¸ÄX|sZt|½ÚUΠlkš^p{f¤lˆºlÆW –€A²˜PVܜPH”Êâ]ÎĈÌÜk´\\\\\\\\@qàsĔÄQºpRij¼èi†`¶—„bXƒrBgxfv»ŽuUiˆŒ^v~”J¬mVp´£Œ´VWrnP½ì¢BX‚¬h™ŠðX¹^TjVœŠriªj™tŊÄm€tPGx¸bgRšŽsT`ZozÆO]’ÒFô҆Oƒ‡ŊŒvŞ”p’cGŒêŠsx´DR–Œ{A†„EOr°Œ•žx|íœbˆ³Wm~DVjºéNN†Ëܲɶ­GƒxŷCStŸ}]ûō•SmtuÇÃĕN•™āg»šíT«u}ç½BĵÞʣ¥ëÊ¡Mێ³ãȅ¡ƋaǩÈÉQ‰†G¢·lG|›„tvgrrf«†ptęŘnŠÅĢr„I²¯LiØsPf˜_vĠd„xM prʹšL¤‹¤‡eˌƒÀđK“žïÙVY§]I‡óáĥ]ķ†Kˆ¥Œj|pŇ\\\\\\\\kzţ¦šnņäÔVĂîĪ¬|vW’®l¤èØr‚˜•xm¶ă~lÄƯĄ̈́öȄEÔ¤ØQĄ–Ą»ƢjȦOǺ¨ìSŖÆƬy”Qœv`–cwƒZSÌ®ü±DŽ]ŀç¬B¬©ńzƺŷɄeeOĨS’Œfm Ċ‚ƀP̎ēz©Ċ‚ÄÕÊmgŸÇsJ¥ƔˆŊśæ’΁Ñqv¿íUOµª‰ÂnĦÁ_½ä@ê텣P}Ġ[@gġ}g“ɊדûÏWXá¢užƻÌsNͽƎÁ§č՛AēeL³àydl›¦ĘVçŁpśdžĽĺſʃQíÜçÛġԏsĕ¬—Ǹ¯YßċġHµ ¡eå`ļƒrĉŘóƢFì“ĎWøxÊk†”ƈdƬv|–I|·©NqńRŀƒ¤é”eŊœŀ›ˆàŀU²ŕƀB‚Q£Ď}L¹Îk@©ĈuǰųǨ”Ú§ƈnTËÇéƟÊcfčŤ^Xm‡—HĊĕË«W·ċëx³ǔķÐċJā‚wİ_ĸ˜Ȁ^ôWr­°oú¬Ħ…ŨK~”ȰCĐ´Ƕ£’fNÎèâw¢XnŮeÂÆĶŽ¾¾xäLĴĘlļO¤ÒĨA¢Êɚ¨®‚ØCÔ ŬGƠ”ƦYĜ‡ĘÜƬDJ—g_ͥœ@čŅĻA“¶¯@wÎqC½Ĉ»NŸăëK™ďÍQ“Ùƫ[«Ãí•gßÔÇOÝáW‘ñuZ“¯ĥ€Ÿŕā¡ÑķJu¤E Ÿå¯°WKɱ_d_}}vyŸõu¬ï¹ÓU±½@gÏ¿rýD‰†g…Cd‰µ—°MFYxw¿CG£‹Rƛ½Õ{]L§{qqąš¿BÇƻğëšܭNJË|c²}Fµ}›ÙRsÓpg±ŠQNqǫŋRwŕnéÑÉKŸ†«SeYR…ŋ‹@{¤SJ}šD Ûǖ֍Ÿ]gr¡µŷjqWÛham³~S«“„›Þ]\"]],\"encodeOffsets\":[[[127123,51780]],[[134456,44547]]]},\"properties\":{\"cp\":[126.642464,45.756967],\"name\":\"黑龙江\",\"childNum\":2}},{\"id\":\"320000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[\"@@cþÅPiŠ`ZŸRu¥É\\\\\\\\]~°ŽY`µ†Óƒ^phÁbnÀşúŽòa–ĬºTÖŒb‚˜e¦¦€{¸ZâćNpŒ©žHr|^ˆmjhŠSEb\\\\\\\\afv`sz^lkŽlj‹Ätg‹¤D˜­¾Xš¿À’|ДiZ„ȀåB·î}GL¢õcßjaŸyBFµÏC^ĭ•cÙt¿sğH]j{s©HM¢ƒQnDÀ©DaÜތ·jgàiDbPufjDk`dPOîƒhw¡ĥ‡¥šG˜ŸP²ĐobºrY†„î¶aHŢ´ ]´‚rılw³r_{£DB_Ûdåuk|ˆŨ¯F Cºyr{XFy™e³Þċ‡¿Â™kĭB¿„MvÛpm`rÚã”@Ę¹hågËÖƿxnlč¶Åì½Ot¾dJlŠVJʜǀœŞqvnOŠ^ŸJ”Z‘ż·Q}ê͎ÅmµÒ]Žƍ¦Dq}¬R^èĂ´ŀĻĊIԒtžIJyQŐĠMNtœR®òLh‰›Ěs©»œ}OӌGZz¶A\\\\\\\\jĨFˆäOĤ˜HYš†JvÞHNiÜaϚɖnFQlšNM¤ˆB´ĄNöɂtp–Ŭdf先‹qm¿QûŠùއÚb¤uŃJŴu»¹Ą•lȖħŴw̌ŵ²ǹǠ͛hĭłƕrçü±Y™xci‡tğ®jű¢KOķ•Coy`å®VTa­_Ā]ŐÝɞï²ʯÊ^]afYǸÃĆēĪȣJđ͍ôƋĝÄ͎ī‰çÛɈǥ£­ÛmY`ó£Z«§°Ó³QafusNıDž_k}¢m[ÝóDµ—¡RLčiXy‡ÅNïă¡¸iĔϑNÌŕoēdōîåŤûHcs}~Ûwbù¹£¦ÓCt‹OPrƒE^ÒoŠg™ĉIµžÛÅʹK…¤½phMŠü`o怆ŀ\"],\"encodeOffsets\":[[121740,32276]]},\"properties\":{\"cp\":[118.767413,32.041544],\"name\":\"江苏\",\"childNum\":1}},{\"id\":\"330000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@E^dQ]K\"],[\"@@jX^j‡\"],[\"@@sfŠbU‡\"],[\"@@qP\\\\\\\\xz[ck\"],[\"@@‘Rƒ¢‚FX}°[s_\"],[\"@@Cbœ\\\\\\\\—}\"],[\"@@e|v\\\\\\\\la{u\"],[\"@@v~u}\"],[\"@@QxÂF¯}\"],[\"@@¹nŒvÞs¯o\"],[\"@@rSkUEj\"],[\"@@bi­ZŒP\"],[\"@@p[}INf\"],[\"@@À¿€\"],[\"@@¹dnbŒ…\"],[\"@@rSŸBnR\"],[\"@@g~h}\"],[\"@@FlEk\"],[\"@@OdPc\"],[\"@@v[u\\\\\\\\\"],[\"@@FjâL~wyoo~›sµL–\\\\\\\\\"],[\"@@¬e¹aNˆ\"],[\"@@\\\\\\\\nÔ¡q]L³ë\\\\\\\\ÿ®ŒQ֎\"],[\"@@ÊA­©[¬\"],[\"@@KxŒv­\"],[\"@@@hlIk]\"],[\"@@pW{o||j\"],[\"@@Md|_mC\"],[\"@@¢…X£ÏylD¼XˆtH\"],[\"@@hlÜ[LykAvyfw^Ež›¤\"],[\"@@fp¤Mus“R\"],[\"@@®_ma~•LÁ¬šZ\"],[\"@@iM„xZ\"],[\"@@ZcYd\"],[\"@@Z~dOSo|A¿qZv\"],[\"@@@`”EN¡v\"],[\"@@|–TY{\"],[\"@@@n@m\"],[\"@@XWkCT\\\\\\\\\"],[\"@@ºwšZRkĕWO¢\"],[\"@@™X®±Grƪ\\\\\\\\ÔáXq{‹\"],[\"@@ůTG°ĄLHm°UC‹\"],[\"@@¤Ž€aÜx~}dtüGæţŎíĔcŖpMËВjē¢·ðĄÆMzˆjWKĎ¢Q¶˜À_꒔_Bı€i«pZ€gf€¤Nrq]§ĂN®«H±‡yƳí¾×ŸīàLłčŴǝĂíÀBŖÕªˆŠÁŖHŗʼnåqûõi¨hÜ·ƒñt»¹ýv_[«¸m‰YL¯‰Qª…mĉÅdMˆ•gÇjcº«•ęœ¬­K­´ƒB«Âącoċ\\\\\\\\xKd¡gěŧ«®á’[~ıxu·Å”KsËɏc¢Ù\\\\\\\\ĭƛëbf¹­ģSƒĜkáƉÔ­ĈZB{ŠaM‘µ‰fzʼnfåÂŧįƋǝÊĕġć£g³ne­ą»@­¦S®‚\\\\\\\\ßðCšh™iqªĭiAu‡A­µ”_W¥ƣO\\\\\\\\lċĢttC¨£t`ˆ™PZäuXßBs‡Ļyek€OđġĵHuXBšµ]׌‡­­\\\\\\\\›°®¬F¢¾pµ¼kŘó¬Wät’¸|@ž•L¨¸µr“ºù³Ù~§WI‹ŸZWŽ®’±Ð¨ÒÉx€`‰²pĜ•rOògtÁZ}þÙ]„’¡ŒŸFK‚wsPlU[}¦Rvn`hq¬\\\\\\\\”nQ´ĘRWb”‚_ rtČFI֊kŠŠĦPJ¶ÖÀÖJĈĄTĚòžC ²@Pú…Øzœ©PœCÈڜĒ±„hŖ‡l¬â~nm¨f©–iļ«m‡nt–u†ÖZÜÄj“ŠLŽ®E̜Fª²iÊxبžIÈhhst\"],[\"@@o\\\\\\\\V’zRZ}y\"],[\"@@†@°¡mۛGĕ¨§Ianá[ýƤjfæ‡ØL–•äGr™\"]],\"encodeOffsets\":[[[125592,31553]],[[125785,31436]],[[125729,31431]],[[125513,31380]],[[125223,30438]],[[125115,30114]],[[124815,29155]],[[124419,28746]],[[124095,28635]],[[124005,28609]],[[125000,30713]],[[125111,30698]],[[125078,30682]],[[125150,30684]],[[124014,28103]],[[125008,31331]],[[125411,31468]],[[125329,31479]],[[125626,30916]],[[125417,30956]],[[125254,30976]],[[125199,30997]],[[125095,31058]],[[125083,30915]],[[124885,31015]],[[125218,30798]],[[124867,30838]],[[124755,30788]],[[124802,30809]],[[125267,30657]],[[125218,30578]],[[125200,30562]],[[124968,30474]],[[125167,30396]],[[124955,29879]],[[124714,29781]],[[124762,29462]],[[124325,28754]],[[123990,28459]],[[125366,31477]],[[125115,30363]],[[125369,31139]],[[122495,31878]],[[125329,30690]],[[125192,30787]]]},\"properties\":{\"cp\":[120.153576,30.287459],\"name\":\"浙江\",\"childNum\":45}},{\"id\":\"340000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@^iuLX^\"],[\"@@‚e©Ehl\"],[\"@@°ZÆëϵmkǀwÌÕæhºgBĝâqÙĊz›ÖgņtÀÁÊÆá’hEz|WzqD¹€Ÿ°E‡ŧl{ævÜcA`¤C`|´qžxIJkq^³³ŸGšµbƒíZ…¹qpa±ď OH—¦™Ħˆx¢„gPícOl_iCveaOjCh߸i݋bÛªCC¿€m„RV§¢A|t^iĠGÀtÚs–d]ĮÐDE¶zAb àiödK¡~H¸íæAžǿYƒ“j{ď¿‘™À½W—®£ChŒÃsiŒkkly]_teu[bFa‰Tig‡n{]Gqªo‹ĈMYá|·¥f¥—őaSÕė™NµñĞ«ImŒ_m¿Âa]uĜp …Z_§{Cƒäg¤°r[_Yj‰ÆOdý“[ŽI[á·¥“Q_n‡ùgL¾mv™ˊBÜƶĊJhšp“c¹˜O]iŠ]œ¥ jtsggJǧw×jÉ©±›EFˍ­‰Ki”ÛÃÕYv…s•ˆm¬njĻª•§emná}k«ŕˆƒgđ²Ù›DǤ›í¡ªOy›†×Où±@DŸñSęćăÕIÕ¿IµĥO‰‰jNÕËT¡¿tNæŇàåyķrĕq§ÄĩsWÆߎF¶žX®¿‰mŒ™w…RIޓfßoG‘³¾©uyH‘į{Ɓħ¯AFnuP…ÍÔzšŒV—dàôº^Ðæd´€‡oG¤{S‰¬ćxã}›ŧ×Kǥĩ«žÕOEзÖdÖsƘѨ[’Û^Xr¢¼˜§xvěƵ`K”§ tÒ´Cvlo¸fzŨð¾NY´ı~ÉĔē…ßúLÃϖ_ÈÏ|]ÂÏFl”g`bšežž€n¾¢pU‚h~ƴĖ¶_‚r sĄ~cž”ƈ]|r c~`¼{À{ȒiJjz`îÀT¥Û³…]’u}›f…ïQl{skl“oNdŸjŸäËzDvčoQŠďHI¦rb“tHĔ~BmlRš—V_„ħTLnñH±’DžœL‘¼L˜ªl§Ťa¸ŒĚlK²€\\\\\\\\RòvDcÎJbt[¤€D@®hh~kt°ǾzÖ@¾ªdb„YhüóZ ň¶vHrľ\\\\\\\\ʗJuxAT|dmÀO„‹[ÃԋG·ĚąĐlŪÚpSJ¨ĸˆLvÞcPæķŨŽ®mАˆálŸwKhïgA¢ųƩޖ¤OȜm’°ŒK´\"]],\"encodeOffsets\":[[[121722,32278]],[[119475,30423]],[[119168,35472]]]},\"properties\":{\"cp\":[117.283042,31.86119],\"name\":\"安徽\",\"childNum\":3}},{\"id\":\"350000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@“zht´‡]\"],[\"@@aj^~ĆG—©O\"],[\"@@ed¨„C}}i\"],[\"@@@vˆPGsQ\"],[\"@@‰sBz‚ddW]Q\"],[\"@@SŽ¨Q“{\"],[\"@@NŽVucW\"],[\"@@qptBAq\"],[\"@@‰’¸[mu\"],[\"@@Q\\\\\\\\pD]_\"],[\"@@jSwUadpF\"],[\"@@eXª~ƒ•\"],[\"@@AjvFso\"],[\"@@fT–›_Çí\\\\\\\\Ÿ™—v|ba¦jZÆy€°\"],[\"@@IjJi\"],[\"@@wJI€ˆxš«¼AoNe{M­\"],[\"@@K‰±¡Óˆ”ČäeZ\"],[\"@@k¡¹Eh~c®wBk‹UplÀ¡I•~Māe£bN¨gZý¡a±Öcp©PhžI”Ÿ¢Qq…ÇGj‹|¥U™ g[Ky¬ŏ–v@OpˆtÉEŸF„\\\\\\\\@ åA¬ˆV{Xģ‰ĐBy…cpě…¼³Ăp·¤ƒ¥o“hqqÚ¡ŅLsƒ^ᗞ§qlŸÀhH¨MCe»åÇGD¥zPO£čÙkJA¼ß–ėu›ĕeûҍiÁŧSW¥˜QŠûŗ½ùěcݧSùĩąSWó«íęACµ›eR—åǃRCÒÇZÍ¢‹ź±^dlsŒtjD¸•‚ZpužÔâÒH¾oLUêÃÔjjēò´ĄW‚ƛ…^Ñ¥‹ĦŸ@Çò–ŠmŒƒOw¡õyJ†yD}¢ďÑÈġfŠZd–a©º²z£šN–ƒjD°Ötj¶¬ZSÎ~¾c°¶Ðm˜x‚O¸¢Pl´žSL|¥žA†ȪĖM’ņIJg®áIJČĒü` ŽQF‡¬h|ÓJ@zµ |ê³È ¸UÖŬŬÀEttĸr‚]€˜ðŽM¤ĶIJHtÏ A’†žĬkvsq‡^aÎbvŒd–™fÊòSD€´Z^’xPsÞrv‹ƞŀ˜jJd×ŘÉ ®A–ΦĤd€xĆqAŒ†ZR”ÀMźŒnĊ»ŒİÐZ— YX–æJŠyĊ²ˆ·¶q§·–K@·{s‘Xãô«lŗ¶»o½E¡­«¢±¨Yˆ®Ø‹¶^A™vWĶGĒĢžPlzfˆļŽtàAvWYãšO_‡¤sD§ssČġ[kƤPX¦Ž`¶“ž®ˆBBvĪjv©šjx[L¥àï[F…¼ÍË»ğV`«•Ip™}ccÅĥZE‹ãoP…´B@ŠD—¸m±“z«Ƴ—¿å³BRضˆœWlâþäą`“]Z£Tc— ĹGµ¶H™m@_©—kŒ‰¾xĨ‡ôȉðX«½đCIbćqK³Á‹Äš¬OAwã»aLʼn‡ËĥW[“ÂGI—ÂNxij¤D¢ŽîĎÎB§°_JœGsƒ¥E@…¤uć…P‘å†cuMuw¢BI¿‡]zG¹guĮck\\\\\\\\_\"]],\"encodeOffsets\":[[[123250,27563]],[[122541,27268]],[[123020,27189]],[[122916,27125]],[[122887,26845]],[[122808,26762]],[[122568,25912]],[[122778,26197]],[[122515,26757]],[[122816,26587]],[[123388,27005]],[[122450,26243]],[[122578,25962]],[[121255,25103]],[[120987,24903]],[[122339,25802]],[[121042,25093]],[[122439,26024]]]},\"properties\":{\"cp\":[119.306239,26.075302],\"name\":\"福建\",\"childNum\":18}},{\"id\":\"360000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[\"@@ĢĨƐgļˆ¼ÂMD~ņªe^\\\\\\\\^§„ý©j׍cZ†Ø¨zdÒa¶ˆlҍJŒìõ`oz÷@¤u޸´†ôęöY¼‰HČƶajlÞƩ¥éZ[”|h}^U Œ ¥p„ĄžƦO lt¸Æ €Q\\\\\\\\€ŠaÆ|CnÂOjt­ĚĤd’ÈŒF`’¶„@Ð딠¦ōҞ¨Sêv†HĢûXD®…QgėWiØPÞìºr¤dž€NĠ¢l–•ĄtZoœCƞÔºCxrpĠV®Ê{f_Y`_ƒeq’’®Aot`@o‚DXfkp¨|Šs¬\\\\\\\\D‘ÄSfè©Hn¬…^DhÆyøJh“ØxĢĀLʈ„ƠPżċĄwȠ̦G®ǒĤäTŠÆ~ĦwŠ«|TF¡Šn€c³Ïå¹]ĉđxe{ÎӐ†vOEm°BƂĨİ|G’vz½ª´€H’àp”eJ݆Qšxn‹ÀŠW­žEµàXÅĪt¨ÃĖrÄwÀFÎ|ňÓMå¼ibµ¯»åDT±m[“r«_gŽmQu~¥V\\\\\\\\OkxtL E¢‹ƒ‘Ú^~ýê‹Pó–qo슱_Êw§ÑªåƗā¼‹mĉŹ‹¿NQ“…YB‹ąrwģcÍ¥B•Ÿ­ŗÊcØiI—žƝĿuŒqtāwO]‘³YCñTeɕš‹caub͈]trlu€ī…B‘ПGsĵıN£ï—^ķqss¿FūūV՟·´Ç{éĈý‰ÿ›OEˆR_ŸđûIċâJh­ŅıN‘ȩĕB…¦K{Tk³¡OP·wn—µÏd¯}½TÍ«YiµÕsC¯„iM•¤™­•¦¯P|ÿUHv“he¥oFTu‰õ\\\\\\\\ŽOSs‹MòđƇiaºćXŸĊĵà·çhƃ÷ǜ{‘ígu^›đg’m[×zkKN‘¶Õ»lčÓ{XSƉv©_ÈëJbVk„ĔVÀ¤P¾ºÈMÖxlò~ªÚàGĂ¢B„±’ÌŒK˜y’áV‡¼Ã~­…`g›ŸsÙfI›Ƌlę¹e|–~udjˆuTlXµf`¿JdŠ[\\\\\\\\˜„L‚‘²\"],\"encodeOffsets\":[[116689,26234]]},\"properties\":{\"cp\":[115.892151,28.676493],\"name\":\"江西\",\"childNum\":1}},{\"id\":\"370000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@Xjd]{K\"],[\"@@itbFHy\"],[\"@@HlGk\"],[\"@@T‚ŒGŸy\"],[\"@@K¬˜•‹U\"],[\"@@WdXc\"],[\"@@PtOs\"],[\"@@•LnXhc\"],[\"@@ppVƒu]Or\"],[\"@@cdzAUa\"],[\"@@udRhnCI‡\"],[\"@@ˆoIƒpR„\"],[\"@@Ľč{fzƤî’Kš–ÎMĮ]†—ZFˆ½Y]â£ph’™š¶¨râøÀ†ÎǨ¤^ºÄ”Gzˆ~grĚĜlĞƄLĆdž¢Îo¦–cv“Kb€gr°Wh”mZp ˆL]LºcU‰Æ­n”żĤÌĒœbAnrOAœ´žȊcÀbƦUØrĆUÜøœĬƞ†š˜Ez„VL®öØBkŖÝĐĖ¹ŧ̄±ÀbÎɜnb²ĦhņBĖ›žįĦåXćì@L¯´ywƕCéõė ƿ¸‘lµ¾Z|†ZWyFYŸ¨Mf~C¿`€à_RÇzwƌfQnny´INoƬˆèôº|sT„JUš›‚L„îVj„ǎ¾Ē؍‚Dz²XPn±ŴPè¸ŔLƔÜƺ_T‘üÃĤBBċȉöA´fa„˜M¨{«M`‡¶d¡ô‰Ö°šmȰBÔjjŒ´PM|”c^d¤u•ƒ¤Û´Œä«ƢfPk¶Môlˆ]Lb„}su^ke{lC‘…M•rDŠÇ­]NÑFsmoõľH‰yGă{{çrnÓE‰‹ƕZGª¹Fj¢ïW…uøCǷ돡ąuhÛ¡^Kx•C`C\\\\\\\\bÅxì²ĝÝ¿_N‰īCȽĿåB¥¢·IŖÕy\\\\\\\\‡¹kx‡Ã£Č×GDyÕ¤ÁçFQ¡„KtŵƋ]CgÏAùSed‡cÚź—ŠuYfƒyMmhUWpSyGwMPqŀ—›Á¼zK›¶†G•­Y§Ëƒ@–´śÇµƕBmœ@Io‚g——Z¯u‹TMx}C‘‰VK‚ï{éƵP—™_K«™pÛÙqċtkkù]gŽ‹Tğwo•ɁsMõ³ă‡AN£™MRkmEʕč™ÛbMjÝGu…IZ™—GPģ‡ãħE[iµBEuŸDPԛ~ª¼ętŠœ]ŒûG§€¡QMsğNPŏįzs£Ug{đJĿļā³]ç«Qr~¥CƎÑ^n¶ÆéÎR~Ż¸Y’I“] P‰umŝrƿ›‰›Iā‹[x‰edz‹L‘¯v¯s¬ÁY…~}…ťuŁŒg›ƋpÝĄ_ņī¶ÏSR´ÁP~ž¿Cyžċßdwk´Ss•X|t‰`Ä Èð€AªìÎT°¦Dd–€a^lĎDĶÚY°Ž`ĪŴǒˆ”àŠv\\\\\\\\ebŒZH„ŖR¬ŢƱùęO•ÑM­³FۃWp[ƒ\"]],\"encodeOffsets\":[[[123806,39303]],[[123821,39266]],[[123742,39256]],[[123702,39203]],[[123649,39066]],[[123847,38933]],[[123580,38839]],[[123894,37288]],[[123043,36624]],[[123344,38676]],[[123522,38857]],[[123628,38858]],[[118260,36742]]]},\"properties\":{\"cp\":[117.000923,36.675807],\"name\":\"山东\",\"childNum\":13}},{\"id\":\"410000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[\"@@•ýL™ùµP³swIÓxcŢĞð†´E®žÚPt†ĴXØx¶˜@«ŕŕQGƒ‹Yfa[şu“ßǩ™đš_X³ijÕčC]kbc•¥CS¯ëÍB©÷‹–³­Siˆ_}m˜YTtž³xlàcȂzÀD}ÂOQ³ÐTĨ¯†ƗòËŖ[hœł‹Ŧv~††}ÂZž«¤lPǕ£ªÝŴÅR§ØnhcŒtâk‡nύ­ľŹUÓÝdKuķ‡I§oTũÙďkęĆH¸ÓŒ\\\\\\\\ăŒ¿PcnS{wBIvɘĽ[GqµuŸŇôYgûƒZcaŽ©@½Õǽys¯}lgg@­C\\\\\\\\£as€IdÍuCQñ[L±ęk·‹ţb¨©kK—’»›KC²‘òGKmĨS`ƒ˜UQ™nk}AGē”sqaJ¥ĐGR‰ĎpCuÌy ã iMc”plk|tRk†ðœev~^‘´†¦ÜŽSí¿_iyjI|ȑ|¿_»d}qŸ^{“Ƈdă}Ÿtqµ`Ƴĕg}V¡om½fa™Ço³TTj¥„tĠ—Ry”K{ùÓjuµ{t}uËR‘iŸvGŠçJFjµŠÍyqΘàQÂFewixGw½Yŷpµú³XU›½ġy™łå‰kÚwZXˆ·l„¢Á¢K”zO„Λ΀jc¼htoDHr…|­J“½}JZ_¯iPq{tę½ĕ¦Zpĵø«kQ…Ťƒ]MÛfaQpě±ǽ¾]u­Fu‹÷nƒ™čįADp}AjmcEǒaª³o³ÆÍSƇĈÙDIzˑ赟^ˆKLœ—i—Þñ€[œƒaA²zz‰Ì÷Dœ|[šíijgf‚ÕÞd®|`ƒĆ~„oĠƑô³Ŋ‘D×°¯CsŠøÀ«ì‰UMhTº¨¸ǡîS–Ô„DruÂÇZ•ÖEŽ’vPZ„žW”~؋ÐtĄE¢¦Ðy¸bŠô´oŬ¬Ž²Ês~€€]®tªašpŎJ¨Öº„_ŠŔ–`’Ŗ^Ѝ\\\\\\\\Ĝu–”~m²Ƹ›¸fW‰ĦrƔ}Î^gjdfÔ¡J}\\\\\\\\n C˜¦þWxªJRÔŠu¬ĨĨmF†dM{\\\\\\\\d\\\\\\\\ŠYÊ¢ú@@¦ª²SŠÜsC–}fNècbpRmlØ^g„d¢aÒ¢CZˆZxvÆ¶N¿’¢T@€uCœ¬^ĊðÄn|žlGl’™Rjsp¢ED}€Fio~ÔNŽ‹„~zkĘHVsDzßjƒŬŒŠŢ`Pûàl¢˜\\\\\\\\ÀœEhŽİgÞē X¼Pk–„|m\"],\"encodeOffsets\":[[118256,37017]]},\"properties\":{\"cp\":[113.665412,34.757975],\"name\":\"河南\",\"childNum\":1}},{\"id\":\"420000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@AB‚\"],[\"@@lskt\"],[\"@@¾«}{ra®pîÃ\\\\\\\\™›{øCŠËyyB±„b\\\\\\\\›ò˜Ý˜jK›‡L ]ĎĽÌ’JyÚCƈćÎT´Å´pb©È‘dFin~BCo°BĎĚømvŒ®E^vǾ½Ĝ²Ro‚bÜeNŽ„^ĺ£R†¬lĶ÷YoĖ¥Ě¾|sOr°jY`~I”¾®I†{GqpCgyl{‡£œÍƒÍyPL“¡ƒ¡¸kW‡xYlÙ抚ŁĢzœ¾žV´W¶ùŸo¾ZHxjwfx„GNÁ•³Xéæl¶‰EièIH‰ u’jÌQ~v|sv¶Ôi|ú¢Fh˜Qsğ¦ƒSiŠBg™ÐE^ÁÐ{–čnOÂȞUÎóĔ†ÊēIJ}Z³½Mŧïeyp·uk³DsѨŸL“¶_œÅuèw»—€¡WqÜ]\\\\\\\\‘Ò§tƗcÕ¸ÕFÏǝĉăxŻČƟO‡ƒKÉġÿ×wg”÷IÅzCg†]m«ªGeçÃTC’«[‰t§{loWeC@ps_Bp‘­r‘„f_``Z|ei¡—oċMqow€¹DƝӛDYpûs•–‹Ykıǃ}s¥ç³[§ŸcYŠ§HK„«Qy‰]¢“wwö€¸ïx¼ņ¾Xv®ÇÀµRĠЋžHMž±cÏd„ƒǍũȅȷ±DSyúĝ£ŤĀàtÖÿï[îb\\\\\\\\}pĭÉI±Ñy…¿³x¯N‰o‰|¹H™ÏÛm‹júË~Tš•u˜ęjCöAwě¬R’đl¯ Ñb­‰ŇT†Ŀ_[Œ‘IčĄʿnM¦ğ\\\\\\\\É[T·™k¹œ©oĕ@A¾w•ya¥Y\\\\\\\\¥Âaz¯ãÁ¡k¥ne£Ûw†E©Êō¶˓uoj_Uƒ¡cF¹­[Wv“P©w—huÕyBF“ƒ`R‹qJUw\\\\\\\\i¡{jŸŸEPïÿ½fć…QÑÀQ{ž‚°‡fLԁ~wXg—ītêݾ–ĺ‘Hdˆ³fJd]‹HJ²…E€ƒoU¥†HhwQsƐ»Xmg±çve›]Dm͂PˆoCc¾‹_h”–høYrŊU¶eD°Č_N~øĹĚ·`z’]Äþp¼…äÌQŒv\\\\\\\\rCŒé¾TnkžŐڀÜa‡“¼ÝƆĢ¶Ûo…d…ĔňТJq’Pb ¾|JŒ¾fXŠƐîĨ_Z¯À}úƲ‹N_ĒĊ^„‘ĈaŐyp»CÇĕKŠšñL³ŠġMŒ²wrIÒŭxjb[œžn«øœ˜—æˆàƒ ^²­h¯Ú€ŐªÞ¸€Y²ĒVø}Ā^İ™´‚LŠÚm„¥ÀJÞ{JVŒųÞŃx×sxxƈē ģMř–ÚðòIf–Ċ“Œ\\\\\\\\Ʈ±ŒdʧĘD†vČ_Àæ~DŒċ´A®µ†¨ØLV¦êHÒ¤\"]],\"encodeOffsets\":[[[113712,34000]],[[115612,30507]],[[113649,34054]]]},\"properties\":{\"cp\":[114.298572,30.584355],\"name\":\"湖北\",\"childNum\":3}},{\"id\":\"430000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@—n„FTs\"],[\"@@ßÅÆችÔXr—†CO™“…ËR‘ïÿĩ­TooQyšÓ[‹ŅBE¬–ÎÓXa„į§Ã¸G °ITxp‰úxÚij¥Ïš–Ģ¾ŠedžÄ©ĸG…œàGh‚€M¤–Â_U}Ċ}¢pczfŠþg¤€”ÇòAV‘‹M\"],[\"@@©K—ƒA·³CQ±Á«³BUŠƑ¹AŠtćOw™D]ŒJiØSm¯b£‘ylƒ›X…HËѱH•«–‘C^õľA–Å§¤É¥„ïyuǙuA¢^{ÌC´­¦ŷJ£^[†“ª¿‡ĕ~•Ƈ…•N… skóā‡¹¿€ï]ă~÷O§­@—Vm¡‹Qđ¦¢Ĥ{ºjԏŽŒª¥nf´•~ÕoŸž×Ûą‹MąıuZœmZcÒ IJĪ²SÊDŽŶ¨ƚƒ’CÖŎªQؼrŭŽ­«}NÏürʬŒmjr€@ĘrTW ­SsdHzƓ^ÇÂyUi¯DÅYlŹu{hTœ}mĉ–¹¥ě‰Dÿë©ıÓ[Oº£ž“¥ót€ł¹MՄžƪƒ`Pš…Di–ÛUŠ¾Å‌ìˆU’ñB“È£ýhe‰dy¡oċ€`pfmjP~‚kZa…ZsÐd°wj§ƒ@€Ĵ®w~^‚kÀÅKvNmX\\\\\\\\¨a“”сqvíó¿F„¤¡@ũÑVw}S@j}¾«pĂr–ªg àÀ²NJ¶¶Dô…K‚|^ª†Ž°LX¾ŴäPĪ±œ£EXd›”^¶›IJÞܓ~‘u¸ǔ˜Ž›MRhsR…e†`ÄofIÔ\\\\\\\\Ø  i”ćymnú¨cj ¢»–GČìƊÿШXeĈĀ¾Oð Fi ¢|[jVxrIQŒ„_E”zAN¦zLU`œcªx”OTu RLÄ¢dV„i`p˔vŎµªÉžF~ƒØ€d¢ºgİàw¸Áb[¦Zb¦–z½xBĖ@ªpº›šlS¸Ö\\\\\\\\Ĕ[N¥ˀmĎă’J\\\\\\\\‹ŀ`€…ňSڊĖÁĐiO“Ĝ«BxDõĚiv—ž–S™Ì}iùŒžÜnšÐºGŠ{Šp°M´w†ÀÒzJ²ò¨ oTçüöoÛÿñŽőФ‚ùTz²CȆȸǎŪƒƑÐc°dPÎŸğ˶[Ƚu¯½WM¡­Éž“’B·rížnZŸÒ `‡¨GA¾\\\\\\\\pē˜XhÆRC­üWGġu…T靧Ŏѝ©ò³I±³}_‘‹EÃħg®ęisÁPDmÅ{‰b[Rşs·€kPŸŽƥƒóRo”O‹ŸVŸ~]{g\\\\\\\\“êYƪ¦kÝbiċƵŠGZ»Ěõ…ó·³vŝž£ø@pyö_‹ëŽIkѵ‡bcѧy…×dY؎ªiþž¨ƒ[]f]Ņ©C}ÁN‡»hĻħƏ’ĩ\"]],\"encodeOffsets\":[[[115640,30489]],[[112543,27312]],[[116690,26230]]]},\"properties\":{\"cp\":[112.982279,28.19409],\"name\":\"湖南\",\"childNum\":3}},{\"id\":\"440000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@QdˆAua\"],[\"@@ƒlxDLo\"],[\"@@sbhNLo\"],[\"@@Ă āŸ\"],[\"@@WltO[[\"],[\"@@Krœ]S\"],[\"@@e„„I]y\"],[\"@@I|„Mym\"],[\"@@ƒÛ³LSŒž¼Y\"],[\"@@nvºB–ëui©`¾\"],[\"@@zdšÛ›Jw®\"],[\"@@†°…¯\"],[\"@@a yAª¸ËJIx،@€ĀHAmßV¡o•fu•o\"],[\"@@šs‰ŗÃÔėAƁ›ZšÄ ~°ČP‚‹äh\"],[\"@@‹¶Ý’Ì‚vmĞh­ı‡Q\"],[\"@@HœŠdSjĒ¢D}war…“u«ZqadYM\"],[\"@@elŒ\\\\\\\\LqqU\"],[\"@@~rMo\\\\\\\\\"],[\"@@f„^ƒC\"],[\"@@øPªoj÷ÍÝħXČx”°Q¨ıXNv\"],[\"@@gÇƳˆŽˆ”oˆŠˆ[~tly\"],[\"@@E–ÆC¿‘\"],[\"@@OŽP\"],[\"@@w‹†đóg‰™ĝ—[³‹¡VÙæÅöM̳¹pÁaËýý©D©Ü“JŹƕģGą¤{Ùū…ǘO²«BƱéA—Ò‰ĥ‡¡«BhlmtÃPµyU¯uc“d·w_bŝcīímGOŽ|KP’ȏ‡ŹãŝIŕŭŕ@Óoo¿ē‹±ß}Ž…ŭ‚ŸIJWÈCőâUâǙI›ğʼn©I›ijEׅÁ”³Aó›wXJþ±ÌŒÜӔĨ£L]ĈÙƺZǾĆĖMĸĤfŒÎĵl•ŨnȈ‘ĐtF”Š–FĤ–‚êk¶œ^k°f¶gŠŽœ}®Fa˜f`vXŲxl˜„¦–ÔÁ²¬ÐŸ¦pqÊ̲ˆi€XŸØRDÎ}†Ä@ZĠ’s„x®AR~®ETtĄZ†–ƈfŠŠHâÒÐA†µ\\\\\\\\S¸„^wĖkRzŠalŽŜ|E¨ÈNĀňZTŒ’pBh£\\\\\\\\ŒĎƀuXĖtKL–¶G|Ž»ĺEļĞ~ÜĢÛĊrˆO˜Ùîvd]nˆ¬VœÊĜ°R֟pM††–‚ƂªFbwžEÀˆ˜©Œž\\\\\\\\…¤]ŸI®¥D³|ˎ]CöAŤ¦…æ’´¥¸Lv¼€•¢ĽBaô–F~—š®²GÌҐEY„„œzk¤’°ahlV՞I^‹šCxĈPŽsB‰ƒºV‰¸@¾ªR²ĨN]´_eavSi‡vc•}p}Đ¼ƌkJœÚe thœ†_¸ ºx±ò_xN›Ë‹²‘@ƒă¡ßH©Ùñ}wkNÕ¹ÇO½¿£ĕ]ly_WìIžÇª`ŠuTÅxYĒÖ¼k֞’µ‚MžjJÚwn\\\\\\\\h‘œĒv]îh|’È›Ƅøègž¸Ķß ĉĈWb¹ƀdéʌNTtP[ŠöSvrCZžžaGuœbo´ŖÒÇА~¡zCI…özx¢„Pn‹•‰Èñ @ŒĥÒ¦†]ƞŠV}³ăĔñiiÄÓVépKG½Ä‘ÓávYo–C·sit‹iaÀy„ŧΡÈYDÑům}‰ý|m[węõĉZÅxUO}÷N¹³ĉo_qtă“qwµŁYلǝŕ¹tïÛUïmRCº…ˆĭ|µ›ÕÊK™½R‘ē ó]‘–GªęAx–»HO£|ām‡¡diď×YïYWªʼnOeÚtĐ«zđ¹T…ā‡úE™á²\\\\\\\\‹ķÍ}jYàÙÆſ¿Çdğ·ùTßÇţʄ¡XgWÀLJğ·¿ÃˆOj YÇ÷Qě‹i\"]],\"encodeOffsets\":[[[117381,22988]],[[116552,22934]],[[116790,22617]],[[116973,22545]],[[116444,22536]],[[116931,22515]],[[116496,22490]],[[116453,22449]],[[113301,21439]],[[118726,21604]],[[118709,21486]],[[113210,20816]],[[115482,22082]],[[113171,21585]],[[113199,21590]],[[115232,22102]],[[115739,22373]],[[115134,22184]],[[113056,21175]],[[119573,21271]],[[119957,24020]],[[115859,22356]],[[116561,22649]],[[116285,22746]]]},\"properties\":{\"cp\":[113.280637,23.125178],\"name\":\"广东\",\"childNum\":24}},{\"id\":\"450000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@H– TQ§•A\"],[\"@@ĨʪƒLƒƊDÎĹĐCǦė¸zÚGn£¾›rªŀÜt¬@֛ڈSx~øOŒ˜ŶÐÂæȠ\\\\\\\\„ÈÜObĖw^oބLf¬°bI lTØB̈F£Ć¹gñĤaY“t¿¤VSñœK¸¤nM†¼‚JE±„½¸šŠño‹ÜCƆæĪ^ŠĚQÖ¦^‡ˆˆf´Q†üÜʝz¯šlzUĺš@쇀p¶n]sxtx¶@„~ÒĂJb©gk‚{°‚~c°`ԙ¬rV\\\\\\\\“la¼¤ôá`¯¹LC†ÆbŒxEræO‚v[H­˜„[~|aB£ÖsºdAĐzNÂðsŽÞƔ…Ĥªbƒ–ab`ho¡³F«èVloŽ¤™ÔRzpp®SŽĪº¨ÖƒºN…ij„d`’a”¦¤F³ºDÎńĀìŠCžĜº¦Ċ•~nS›|gźvZkCÆj°zVÈÁƔ]LÊFZg…čP­kini«‹qǀcz͔Y®¬Ů»qR×ō©DՄ‘§ƙǃŵTÉĩ±ŸıdÑnYY›IJvNĆƌØÜ Öp–}e³¦m‹©iÓ|¹Ÿħņ›|ª¦QF¢Â¬ʖovg¿em‡^ucà÷gՎuŒíÙćĝ}FĻ¼Ĺ{µHK•sLSđƃr‹č¤[Ag‘oS‹ŇYMÿ§Ç{Fśbky‰lQxĕƒ]T·¶[B…ÑÏGáşşƇe€…•ăYSs­FQ}­Bƒw‘tYğÃ@~…C̀Q ×W‡j˱rÉ¥oÏ ±«ÓÂ¥•ƒ€k—ŽwWűŒmcih³K›~‰µh¯e]lµ›él•Eģ‰•E“ďs‡’mǖŧē`ãògK_ÛsUʝ“ćğ¶hŒöŒO¤Ǜn³Žc‘`¡y‹¦C‘ez€YŠwa™–‘[ďĵűMę§]X˜Î_‚훘Û]é’ÛUćİÕBƣ±…dƒy¹T^džûÅÑŦ·‡PĻþÙ`K€¦˜…¢ÍeœĥR¿Œ³£[~Œäu¼dl‰t‚†W¸oRM¢ď\\\\\\\\zœ}Æzdvň–{ÎXF¶°Â_„ÒÂÏL©Ö•TmuŸ¼ãl‰›īkiqéfA„·Êµ\\\\\\\\őDc¥ÝF“y›Ôć˜c€űH_hL܋êĺШc}rn`½„Ì@¸¶ªVLŒŠhŒ‹\\\\\\\\•Ţĺk~ŽĠið°|gŒtTĭĸ^x‘vK˜VGréAé‘bUu›MJ‰VÃO¡…qĂXËS‰ģãlýàŸ_ju‡YÛÒB†œG^˜é֊¶§ŽƒEG”ÅzěƒƯ¤Ek‡N[kdåucé¬dnYpAyČ{`]þ¯T’bÜÈk‚¡Ġ•vŒàh„ÂƄ¢J\"]],\"encodeOffsets\":[[[111707,21520]],[[107619,25527]]]},\"properties\":{\"cp\":[108.320004,22.82402],\"name\":\"广西\",\"childNum\":2}},{\"id\":\"460000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[\"@@š¦Ŝil¢”XƦ‘ƞò–ïè§ŞCêɕrŧůÇąĻõ™·ĉ³œ̅kÇm@ċȧƒŧĥ‰Ľʉ­ƅſ“ȓÒ˦ŝE}ºƑ[ÍĜȋ gÎfǐÏĤ¨êƺ\\\\\\\\Ɔ¸ĠĎvʄȀœÐ¾jNðĀÒRŒšZdž™zÐŘΰH¨Ƣb²_Ġ \"],\"encodeOffsets\":[[112750,20508]]},\"properties\":{\"cp\":[110.33119,20.031971],\"name\":\"海南\",\"childNum\":1}},{\"id\":\"510000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@LqKr\"],[\"@@Š[ĻéV£ž_ţġñpG •réÏ·~ąSfy×͂·ºſƽiÍıƣıĻmHH}siaX@iÇ°ÁÃ×t«ƒ­Tƒ¤J–JJŒyJ•ÈŠ`Ohߦ¡uËhIyCjmÿw…ZG……Ti‹SˆsO‰žB²ŸfNmsPaˆ{M{ŠõE‘^Hj}gYpaeuž¯‘oáwHjÁ½M¡pM“–uå‡mni{fk”\\\\\\\\oƒÎqCw†EZ¼K›ĝŠƒAy{m÷L‡wO×SimRI¯rK™õBS«sFe‡]fµ¢óY_ÆPRcue°Cbo׌bd£ŌIHgtrnyPt¦foaXďx›lBowz‹_{ÊéWiêE„GhܸºuFĈIxf®Ž•Y½ĀǙ]¤EyŸF²ċ’w¸¿@g¢§RGv»–áŸW`ÃĵJwi]t¥wO­½a[׈]`Ãi­üL€¦LabbTÀå’c}Íh™Æhˆ‹®BH€î|Ék­¤S†y£„ia©taį·Ɖ`ō¥Uh“O…ƒĝLk}©Fos‰´›Jm„µlŁu—…ø–nÑJWΪ–YÀïAetTžŅ‚ӍG™Ë«bo‰{ıwodƟ½ƒžOġܑµxàNÖ¾P²§HKv¾–]|•B‡ÆåoZ`¡Ø`ÀmºĠ~ÌЧnDž¿¤]wğ@sƒ‰rğu‰~‘Io”[é±¹ ¿žſđӉ@q‹gˆ¹zƱřaí°KtǤV»Ã[ĩǭƑ^ÇÓ@ỗs›Zϕ‹œÅĭ€Ƌ•ěpwDóÖሯneQˌq·•GCœýS]xŸ·ý‹q³•O՜Œ¶Qzßti{ř‰áÍÇWŝŭñzÇW‹pç¿JŒ™‚Xœĩè½cŒF–ÂLiVjx}\\\\\\\\N†ŇĖ¥Ge–“JA¼ÄHfÈu~¸Æ«dE³ÉMA|b˜Ò…˜ćhG¬CM‚õŠ„ƤąAvƒüV€éŀ‰_V̳ĐwQj´·ZeÈÁ¨X´Æ¡Qu·»Ÿ“˜ÕZ³ġqDo‰y`L¬gdp°şŠp¦ėìÅĮZŽ°Iä”h‚‘ˆzŠĵœf²å ›ĚрKp‹IN|‹„Ñz]ń……·FU×é»R³™MƒÉ»GM«€ki€™ér™}Ã`¹ăÞmȝnÁîRǀ³ĜoİzŔwǶVÚ£À]ɜ»ĆlƂ²Ġ…þTº·àUȞÏʦ¶†I’«dĽĢdĬ¿–»Ĕ׊h\\\\\\\\c¬†ä²GêëĤł¥ÀǿżÃÆMº}BÕĢyFVvw–ˆxBèĻĒ©Ĉ“tCĢɽŠȣ¦āæ·HĽî“ôNԓ~^¤Ɗœu„œ^s¼{TA¼ø°¢İªDè¾Ň¶ÝJ‘®Z´ğ~Sn|ªWÚ©òzPOȸ‚bð¢|‹øĞŠŒœŒQìÛÐ@Ğ™ǎRS¤Á§d…i“´ezÝúØã]Hq„kIŸþËQǦÃsǤ[E¬ÉŪÍxXƒ·ÖƁİlƞ¹ª¹|XÊwn‘ÆƄmÀêErĒtD®ċæcQƒ”E®³^ĭ¥©l}äQto˜ŖÜqƎkµ–„ªÔĻĴ¡@Ċ°B²Èw^^RsºTĀ£ŚæœQP‘JvÄz„^Đ¹Æ¯fLà´GC²‘dt˜­ĀRt¼¤ĦOðğfÔðDŨŁĞƘïžPȆ®âbMüÀXZ ¸£@Ś›»»QÉ­™]d“sÖ×_͖_ÌêŮPrĔĐÕGĂeZÜîĘqBhtO ¤tE[h|Y‹Ô‚ZśÎs´xº±UŒ’ñˆt|O’ĩĠºNbgþŠJy^dÂY Į„]Řz¦gC‚³€R`ĀŠz’¢AjŒ¸CL„¤RÆ»@­Ŏk\\\\\\\\Ç´£YW}z@Z}‰Ã¶“oû¶]´^N‡Ò}èN‚ª–P˜Íy¹`S°´†ATe€VamdUĐwʄvĮÕ\\\\\\\\ƒu‹Æŗ¨Yp¹àZÂm™Wh{á„}WØǍ•Éüw™ga§áCNęÎ[ĀÕĪgÖɪX˜øx¬½Ů¦¦[€—„NΆL€ÜUÖ´òrÙŠxR^–†J˜k„ijnDX{Uƒ~ET{ļº¦PZc”jF²Ė@Žp˜g€ˆ¨“B{ƒu¨ŦyhoÚD®¯¢˜ WòàFΤ¨GDäz¦kŮPœġq˚¥À]€Ÿ˜eŽâÚ´ªKxī„Pˆ—Ö|æ[xäJÞĥ‚s’NÖ½ž€I†¬nĨY´®Ð—ƐŠ€mD™ŝuäđđEb…e’e_™v¡}ìęNJē}q”É埁T¯µRs¡M@}ůa†a­¯wvƉåZwž\\\\\\\\Z{åû^›\"]],\"encodeOffsets\":[[[108815,30935]],[[110617,31811]]]},\"properties\":{\"cp\":[104.065735,30.659462],\"name\":\"四川\",\"childNum\":2}},{\"id\":\"520000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@†G\\\\\\\\†lY£‘in\"],[\"@@q‚|ˆ‚mc¯tχVSÎ\"],[\"@@hÑ£Is‡NgßH†›HªķÃh_¹ƒ¡ĝħń¦uيùŽgS¯JHŸ|sÝÅtÁïyMDč»eÕtA¤{b\\\\\\\\}—ƒG®u\\\\\\\\åPFq‹wÅaD…žK°ºâ_£ùbµ”mÁ‹ÛœĹM[q|hlaªāI}тƒµ@swtwm^oµˆD鼊yV™ky°ÉžûÛR…³‚‡eˆ‡¥]RՋěħ[ƅåÛDpŒ”J„iV™™‰ÂF²I…»mN·£›LbÒYb—WsÀbŽ™pki™TZĄă¶HŒq`……ĥ_JŸ¯ae«ƒKpÝx]aĕÛPƒÇȟ[ÁåŵÏő—÷Pw}‡TœÙ@Õs«ĿÛq©½œm¤ÙH·yǥĘĉBµĨÕnđ]K„©„œá‹ŸG纍§Õßg‡ǗĦTèƤƺ{¶ÉHÎd¾ŚÊ·OÐjXWrãLyzÉAL¾ę¢bĶėy_qMĔąro¼hĊžw¶øV¤w”²Ĉ]ʚKx|`ź¦ÂÈdr„cȁbe¸›`I¼čTF´¼Óýȃr¹ÍJ©k_șl³´_pН`oÒhŽ¶pa‚^ÓĔ}D»^Xyœ`d˜[Kv…JPhèhCrĂĚÂ^Êƌ wˆZL­Ġ£šÁbrzOIl’MM”ĪŐžËr×ÎeŦŽtw|Œ¢mKjSǘňĂStÎŦEtqFT†¾†E쬬ôxÌO¢Ÿ KŠ³ŀºäY†„”PVgŎ¦Ŋm޼VZwVlŒ„z¤…ž£Tl®ctĽÚó{G­A‡ŒÇgeš~Αd¿æaSba¥KKûj®_ć^\\\\\\\\ؾbP®¦x^sxjĶI_Ä X‚⼕Hu¨Qh¡À@Ëô}Ž±žGNìĎlT¸ˆ…`V~R°tbÕĊ`¸úÛtπFDu€[ƒMfqGH·¥yA‰ztMFe|R‚_Gk†ChZeÚ°to˜v`x‹b„ŒDnÐ{E}šZ˜è€x—†NEފREn˜[Pv@{~rĆAB§‚EO¿|UZ~ì„Uf¨J²ĂÝƀ‚sª–B`„s¶œfvö¦ŠÕ~dÔq¨¸º»uù[[§´sb¤¢zþFœ¢Æ…Àhˆ™ÂˆW\\\\\\\\ıŽËI݊o±ĭŠ£þˆÊs}¡R]ŒěƒD‚g´VG¢‚j±®è†ºÃmpU[Á›‘Œëº°r›ÜbNu¸}Žº¼‡`ni”ºÔXĄ¤¼Ôdaµ€Á_À…†ftQQgœR—‘·Ǔ’v”}Ýלĵ]µœ“Wc¤F²›OĩųãW½¯K‚©…]€{†LóµCIµ±Mß¿hŸ•©āq¬o‚½ž~@i~TUxŪÒ¢@ƒ£ÀEîôruń‚”“‚b[§nWuMÆLl¿]x}ij­€½\"]],\"encodeOffsets\":[[[112158,27383]],[[112105,27474]],[[112095,27476]]]},\"properties\":{\"cp\":[106.713478,26.578343],\"name\":\"贵州\",\"childNum\":3}},{\"id\":\"530000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[\"@@[„ùx½}ÑRH‘YīĺûsÍn‘iEoã½Ya²ė{c¬ĝg•ĂsA•ØÅwď‚õzFjw}—«Dx¿}UũlŸê™@•HÅ­F‰¨ÇoJ´Ónũuą¡Ã¢pÒŌ“Ø TF²‚xa²ËX€‚cʋlHîAßËŁkŻƑŷÉ©h™W­æßU‡“Ës¡¦}•teèƶStǀÇ}Fd£j‹ĈZĆÆ‹¤T‚č\\\\\\\\Dƒ}O÷š£Uˆ§~ŃG™‚åŃDĝ¸œTsd¶¶Bªš¤u¢ŌĎo~t¾ÍŶÒtD¦Ú„iôö‰€z›ØX²ghįh½Û±¯€ÿm·zR¦Ɵ`ªŊÃh¢rOԍ´£Ym¼èêf¯ŪĽn„†cÚbŒw\\\\\\\\zlvWžªâˆ ¦g–mĿBş£¢ƹřbĥkǫßeeZkÙIKueT»sVesb‘aĕ  ¶®dNœĄÄpªyŽ¼—„³BE˜®l‡ŽGœŭCœǶwêżĔÂe„pÍÀQƞpC„–¼ŲÈ­AÎô¶R„ä’Q^Øu¬°š_Èôc´¹ò¨P΢hlϦ´Ħ“Æ´sâDŽŲPnÊD^¯°’Upv†}®BP̪–jǬx–Söwlfòªv€qĸ|`H€­viļ€ndĜ­Ćhň•‚em·FyށqóžSį¯‘³X_ĞçêtryvL¤§z„¦c¦¥jnŞk˜ˆlD¤øz½ĜàžĂŧMÅ|áƆàÊcðÂF܎‚áŢ¥\\\\\\\\\\\\\\\\º™İøÒÐJĴ‡„îD¦zK²ǏÎEh~’CD­hMn^ÌöÄ©ČZÀžaü„fɭyœpį´ěFűk]Ôě¢qlÅĆÙa¶~Äqššê€ljN¬¼H„ÊšNQ´ê¼VظE††^ŃÒyŒƒM{ŒJLoÒœęæŸe±Ķ›y‰’‡gã“¯JYÆĭĘëo¥Š‰o¯hcK«z_pŠrC´ĢÖY”—¼ v¸¢RŽÅW³Â§fǸYi³xR´ďUˊ`êĿU„û€uĆBƒƣö‰N€DH«Ĉg†——Ñ‚aB{ÊNF´¬c·Åv}eÇÃGB»”If•¦HňĕM…~[iwjUÁKE•Ž‹¾dĪçW›šI‹èÀŒoÈXòyŞŮÈXâÎŚŠj|àsRy‹µÖ›–Pr´þŒ ¸^wþTDŔ–Hr¸‹žRÌmf‡żÕâCôox–ĜƌÆĮŒ›Ð–œY˜tâŦÔ@]ÈǮƒ\\\\\\\\Ī¼Ä£UsȯLbîƲŚºyh‡rŒŠ@ĒԝƀŸÀ²º\\\\\\\\êp“’JŠ}ĠvŠqt„Ġ@^xÀ£È†¨mËÏğ}n¹_¿¢×Y_æpˆÅ–A^{½•Lu¨GO±Õ½ßM¶w’ÁĢۂP‚›Ƣ¼pcIJxŠ|ap̬HšÐŒŊSfsðBZ¿©“XÏÒK•k†÷Eû¿‰S…rEFsÕūk”óVǥʼniTL‚¡n{‹uxţÏh™ôŝ¬ğōN“‘NJkyPaq™Âğ¤K®‡YŸxÉƋÁ]āęDqçgOg†ILu—\\\\\\\\_gz—]W¼ž~CÔē]bµogpў_oď`´³Țkl`IªºÎȄqÔþž»E³ĎSJ»œ_f·‚adÇqƒÇc¥Á_Źw{™L^ɱćx“U£µ÷xgĉp»ĆqNē`rĘzaĵĚ¡K½ÊBzyäKXqiWPÏɸ½řÍcÊG|µƕƣG˛÷Ÿk°_^ý|_zċBZocmø¯hhcæ\\\\\\\\lˆMFlư£Ĝ„ÆyH“„F¨‰µêÕ]—›HA…àӄ^it `þßäkŠĤÎT~Wlÿ¨„ÔPzUC–NVv [jâôDôď[}ž‰z¿–msSh‹¯{jïğl}šĹ[–őŒ‰gK‹©U·µË@¾ƒm_~q¡f¹…ÅË^»‘f³ø}Q•„¡Ö˳gͱ^ǁ…\\\\\\\\ëÃA_—¿bW›Ï[¶ƛ鏝£F{īZgm@|kHǭƁć¦UĔťƒ×ë}ǝƒeďºȡȘÏíBə£āĘPªij¶“ʼnÿ‡y©n‰ď£G¹¡I›Š±LÉĺÑdĉ܇W¥˜‰}g˜Á†{aqÃ¥aŠıęÏZ—ï`\"],\"encodeOffsets\":[[104636,22969]]},\"properties\":{\"cp\":[102.712251,25.040609],\"name\":\"云南\",\"childNum\":1}},{\"id\":\"540000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[\"@@hžľxŽŖ‰xƒÒVŽ†ºÅâAĪÝȆµę¯Ňa±r_w~uSÕň‘qOj]ɄQ…£Z……UDûoY’»©M[‹L¼qãË{V͕çWViŽ]ë©Ä÷àyƛh›ÚU°ŒŒa”d„cQƒ~Mx¥™cc¡ÙaSyF—ցk­ŒuRýq¿Ôµ•QĽ³aG{¿FµëªéĜÿª@¬·–K‰·àariĕĀ«V»Ŷ™Ĵū˜gèLǴŇƶaf‹tŒèBŚ£^Šâ†ǐÝ®–šM¦ÁǞÿ¬LhŸŽJ¾óƾƺcxw‹f]Y…´ƒ¦|œQLn°aœdĊ…œ\\\\\\\\¨o’œǀÍŎœ´ĩĀd`tÊQŞŕ|‚¨C^©œĈ¦„¦ÎJĊ{ŽëĎjª²rЉšl`¼Ą[t|¦St辉PŒÜK¸€d˜Ƅı]s¤—î_v¹ÎVòŦj˜£Əsc—¬_Ğ´|Ł˜¦AvŽ¦w`ăaÝaa­¢e¤ı²©ªSªšÈMĄwžÉØŔì@T‘¤—Ę™\\\\\\\\õª@”þo´­xA s”ÂtŎKzó´ÇĊµ¢rž^nĊ­Æ¬×üGž¢‚³ {âĊ]š™G‚~bÀgVjzlhǶf€žOšfdŠ‰ªB]pj„•TO–tĊ‚n¤}®¦ƒČ¥d¢¼»ddš”Y¼Žt—¢eȤJ¤}Ǿ¡°§¤AГlc@ĝ”sªćļđAç‡wx•UuzEÖġ~AN¹ÄÅȀŻ¦¿ģŁéì±H…ãd«g[؉¼ēÀ•cīľġ¬cJ‘µ…ÐʥVȝ¸ßS¹†ý±ğkƁ¼ą^ɛ¤Ûÿ‰b[}¬ōõÃ]ËNm®g@•Bg}ÍF±ǐyL¥íCˆƒIij€Ï÷њį[¹¦[⚍EÛïÁÉdƅß{âNÆāŨߝ¾ě÷yC£‡k­´ÓH@¹†TZ¥¢įƒ·ÌAЧ®—Zc…v½ŸZ­¹|ŕWZqgW“|ieZÅYVӁqdq•bc²R@†c‡¥Rã»Ge†ŸeƃīQ•}J[ғK…¬Ə|o’ėjġĠÑN¡ð¯EBčnwôɍėªƒ²•CλŹġǝʅįĭạ̃ūȹ]ΓͧgšsgȽóϧµǛ†ęgſ¶ҍć`ĘąŌJޚä¤rÅň¥ÖÁUětęuůÞiĊÄÀ\\\\\\\\Æs¦ÓRb|Â^řÌkÄŷ¶½÷‡f±iMݑ›‰@ĥ°G¬ÃM¥n£Øą‚ğ¯ß”§aëbéüÑOčœk£{\\\\\\\\‘eµª×M‘šÉfm«Ƒ{Å׃Gŏǩãy³©WÑăû‚··‘Q—òı}¯ã‰I•éÕÂZ¨īès¶ZÈsŽæĔTŘvŽgÌsN@îá¾ó@‰˜ÙwU±ÉT廣TđŸWxq¹Zo‘b‹s[׌¯cĩv‡Œėŧ³BM|¹k‰ªħ—¥TzNYnݍßpęrñĠĉRS~½ŠěVVŠµ‚õ‡«ŒM££µB•ĉ¥áºae~³AuĐh`Ü³ç@BۘïĿa©|z²Ý¼D”£àč²‹ŸƒIƒû›I ā€óK¥}rÝ_Á´éMaň¨€~ªSĈ½Ž½KÙóĿeƃÆBŽ·¬ën×W|Uº}LJrƳ˜lŒµ`bÔ`QˆˆÐÓ@s¬ñIŒÍ@ûws¡åQÑßÁ`ŋĴ{Ī“T•ÚÅTSij‚‹Yo|Ç[ǾµMW¢ĭiÕØ¿@˜šMh…pÕ]j†éò¿OƇĆƇp€êĉâlØw–ěsˆǩ‚ĵ¸c…bU¹ř¨WavquSMzeo_^gsÏ·¥Ó@~¯¿RiīB™Š\\\\\\\\”qTGªÇĜçPoŠÿfñòą¦óQīÈáP•œābß{ƒZŗĸIæńhnszÁCËìñšÏ·ąĚÝUm®ó­L·ăU›Èíoù´Êj°ŁŤ_uµ^‘°Œìǖ@tĶĒ¡Æ‡M³Ģ«˜İĨÅ®ğ†RŽāð“ggheÆ¢z‚Ê©Ô\\\\\\\\°ÝĎz~ź¤Pn–MĪÖB£Ÿk™n鄧żćŠ˜ĆK„Ē°¼L¶è‰âz¨u¦¥LDĘz¬ýÎmĘd¾ß”Fz“hg²™Fy¦ĝ¤ċņbΛ@y‚Ąæm°NĮZRÖíŽJ²öLĸÒ¨Y®ƌÐV‰à˜tt_ڀÂyĠzž]Ţh€zĎ{†ĢX”ˆc|šÐqŽšfO¢¤ög‚ÌHNŽ„PKŖœŽ˜Uú´xx[xˆvĐCûĀŠìÖT¬¸^}Ìsòd´_Ž‡KgžLĴ…ÀBon|H@–Êx˜—¦BpŰˆŌ¿fµƌA¾zLjRxŠ¶F”œkĄźRzŀˆ~¶[”´Hnª–VƞuĒ­È¨ƎcƽÌm¸ÁÈM¦x͊ëÀxdžB’šú^´W†£–d„kɾĬpœw‚˂ØɦļĬIŚœÊ•n›Ŕa¸™~J°î”lɌxĤÊÈðhÌ®‚g˜T´øŽàCˆŽÀ^ªerrƘdž¢İP|Ė ŸWœªĦ^¶´ÂL„aT±üWƜ˜ǀRšŶUńšĖ[QhlLüA†‹Ü\\\\\\\\†qR›Ą©\"],\"encodeOffsets\":[[90849,37210]]},\"properties\":{\"cp\":[91.132212,29.660361],\"name\":\"西藏\",\"childNum\":1}},{\"id\":\"610000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[\"@@˜p¢—ȮµšûG™Ħ}Ħšðǚ¶òƄ€jɂz°{ºØkÈęâ¦jª‚Bg‚\\\\\\\\œċ°s¬Ž’]jžú ‚E”Ȍdž¬s„t‡”RˆÆdĠݎwܔ¸ôW¾ƮłÒ_{’Ìšû¼„jº¹¢GǪÒ¯ĘƒZ`ºŊƒecņąš~BÂgzpâēòYǠȰÌTΨÂWœ|fcŸă§uF—Œ@NŸ¢XLƒŠRMº[ğȣſï|¥J™kc`sʼnǷ’Y¹‹W@µ÷K…ãï³ÛIcñ·VȋڍÒķø©—þ¥ƒy‚ÓŸğęmWµÎumZyOŅƟĥÓ~sÑL¤µaŅY¦ocyZ{‰y c]{ŒTa©ƒ`U_Ěē£ωÊƍKù’K¶ȱÝƷ§{û»ÅÁȹÍéuij|¹cÑd‘ŠìUYƒŽO‘uF–ÕÈYvÁCqӃT•Ǣí§·S¹NgŠV¬ë÷Át‡°Dد’C´ʼnƒópģ}„ċcE˅FŸŸéGU¥×K…§­¶³B‹Č}C¿åċ`wġB·¤őcƭ²ő[Å^axwQO…ÿEËߌ•ĤNĔŸwƇˆÄŠńwĪ­Šo[„_KÓª³“ÙnK‰Çƒěœÿ]ď€ă_d©·©Ýŏ°Ù®g]±„Ÿ‡ß˜å›—¬÷m\\\\\\\\›iaǑkěX{¢|ZKlçhLt€Ňîŵ€œè[€É@ƉĄEœ‡tƇÏ˜³­ħZ«mJ…›×¾‘MtÝĦ£IwÄå\\\\\\\\Õ{‡˜ƒOwĬ©LÙ³ÙgBƕŀr̛ĢŭO¥lãyC§HÍ£ßEñŸX¡—­°ÙCgpťz‘ˆb`wI„vA|§”‡—hoĕ@E±“iYd¥OĻ¹S|}F@¾oAO²{tfžÜ—¢Fǂ҈W²°BĤh^Wx{@„¬‚­F¸¡„ķn£P|ŸªĴ@^ĠĈæb–Ôc¶l˜Yi…–^Mi˜cĎ°Â[ä€vï¶gv@À“Ĭ·lJ¸sn|¼u~a]’ÆÈtŌºJp’ƒþ£KKf~Š¦UbyäIšĺãn‡Ô¿^­žŵMT–hĠܤko¼Ŏìąǜh`[tŒRd²IJ_œXPrɲ‰l‘‚XžiL§àƒ–¹ŽH˜°Ȧqº®QC—bA†„ŌJ¸ĕÚ³ĺ§ `d¨YjžiZvRĺ±öVKkjGȊĐePОZmļKÀ€‚[ŠŽ`ösìh†ïÎoĬdtKÞ{¬èÒÒBŒÔpIJÇĬJŊ¦±J«ˆY§‹@·pH€µàåVKe›pW†ftsAÅqC·¬ko«pHÆuK@oŸHĆۄķhx“e‘n›S³àǍrqƶRbzy€¸ËАl›¼EºpĤ¼Œx¼½~Ğ’”à@†ÚüdK^ˆmÌSj\"],\"encodeOffsets\":[[110234,38774]]},\"properties\":{\"cp\":[108.948024,34.263161],\"name\":\"陕西\",\"childNum\":1}},{\"id\":\"620000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@VuUv\"],[\"@@ũ‹EĠtt~nkh`Q‰¦ÅÄÜdw˜Ab×ĠąJˆ¤DüègĺqBqœj°lI¡ĨÒ¤úSHbš‡ŠjΑBŠ°aZˆ¢KJŽ’O[|A£žDx}Nì•HUnrk„ kp€¼Y kMJn[aG‚áÚÏ[½rc†}aQxOgsPMnUs‡nc‹Z…ž–sKúvA›t„Þġ’£®ĀYKdnFwš¢JE°”Latf`¼h¬we|€Æ‡šbj}GA€·~WŽ”—`†¢MC¤tL©IJ°qdf”O‚“bÞĬ¹ttu`^ZúE`Œ[@„Æsîz®¡’C„ƳƜG²“R‘¢R’m”fŽwĸg܃‚ą G@pzJM½mŠhVy¸uÈÔO±¨{LfæU¶ßGĂq\\\\\\\\ª¬‡²I‚¥IʼnÈīoı‹ÓÑAçÑ|«LÝcspīðÍg…të_õ‰\\\\\\\\ĉñLYnĝg’ŸRǡÁiHLlõUĹ²uQjYi§Z_c¨Ÿ´ĹĖÙ·ŋI…ƒaBD˜­R¹ȥr—¯G•ºß„K¨jWk’ɱŠOq›Wij\\\\\\\\a­‹Q\\\\\\\\sg_ĆǛōëp»£lğۀgS•ŶN®À]ˆÓäm™ĹãJaz¥V}‰Le¤L„ýo‘¹IsŋÅÇ^‘Žbz…³tmEÁ´aŠ¹cčecÇN•ĊãÁ\\\\\\\\č¯—dNj•]j†—ZµkÓda•ćå]ğij@ ©O{¤ĸm¢ƒE·®ƒ«|@Xwg]Aģ±¯‡XǁÑdzªc›wQÚŝñsÕ³ÛV_ýƒ˜¥\\\\\\\\ů¥©¾÷w—Ž©WÕÊĩhÿÖÁRo¸V¬âDb¨šhûx–Ê×nj~Zâƒg|šXÁnßYoº§ZÅŘvŒ[„ĭÖʃuďxcVbnUSf…B¯³_Tzº—ΕO©çMÑ~Mˆ³]µ^püµ”ŠÄY~y@X~¤Z³€[Èōl@®Å¼£QKƒ·Di‹¡By‘ÿ‰Q_´D¥hŗyƒ^ŸĭÁZ]cIzý‰ah¹MĪğP‘s{ò‡‹‘²Vw¹t³Ŝˁ[ŽÑ}X\\\\\\\\gsFŸ£sPAgěp×ëfYHāďÖqēŭOÏë“dLü•\\\\\\\\iŒ”t^c®šRʺ¶—¢H°mˆ‘rYŸ£BŸ¹čIoľu¶uI]vģSQ{ƒUŻ”Å}QÂ|̋°ƅ¤ĩŪU ęĄžÌZҞ\\\\\\\\v˜²PĔ»ƢNHƒĂyAmƂwVmž`”]ȏb•”H`‰Ì¢²ILvĜ—H®¤Dlt_„¢JJÄämèÔDëþgºƫ™”aʎÌrêYi~ ÎݤNpÀA¾Ĕ¼b…ð÷’Žˆ‡®‚”üs”zMzÖĖQdȨý†v§Tè|ªH’þa¸|šÐ ƒwKĢx¦ivr^ÿ ¸l öæfƟĴ·PJv}n\\\\\\\\h¹¶v†·À|\\\\\\\\ƁĚN´Ĝ€çèÁz]ġ¤²¨QÒŨTIl‡ªťØ}¼˗ƦvÄùØE‹’«Fï˛Iq”ōŒTvāÜŏ‚íÛߜÛV—j³âwGăÂíNOŠˆŠPìyV³ʼnĖýZso§HіiYw[߆\\\\\\\\X¦¥c]ÔƩÜ·«j‡ÐqvÁ¦m^ċ±R™¦΋ƈťĚgÀ»IïĨʗƮŽ°Ɲ˜ĻþÍAƉſ±tÍEÕÞāNU͗¡\\\\\\\\ſčåÒʻĘm ƭÌŹöʥ’ëQ¤µ­ÇcƕªoIýˆ‰Iɐ_mkl³ă‰Ɠ¦j—¡Yz•Ňi–}Msßõ–īʋ —}ƒÁVmŸ_[n}eı­Uĥ¼‘ª•I{ΧDӜƻėoj‘qYhĹT©oūĶ£]ďxĩ‹ǑMĝ‰q`B´ƃ˺Ч—ç~™²ņj@”¥@đ´ί}ĥtPńǾV¬ufӃÉC‹tÓ̻‰…¹£G³€]ƖƾŎĪŪĘ̖¨ʈĢƂlɘ۪üºňUðǜȢƢż̌ȦǼ‚ĤŊɲĖ­Kq´ï¦—ºĒDzņɾªǀÞĈĂD†½ĄĎÌŗĞrôñnŽœN¼â¾ʄľԆ|DŽŽ֦ज़ȗlj̘̭ɺƅêgV̍ʆĠ·ÌĊv|ýĖÕWĊǎÞ´õ¼cÒÒBĢ͢UĜð͒s¨ňƃLĉÕÝ@ɛƯ÷¿Ľ­ĹeȏijëCȚDŲyê×Ŗyò¯ļcÂßY…tÁƤyAã˾J@ǝrý‹‰@¤…rz¸oP¹ɐÚyᐇHŸĀ[Jw…cVeȴϜ»ÈŽĖ}ƒŰŐèȭǢόĀƪÈŶë;Ñ̆ȤМľĮEŔ—ĹŊũ~ËUă{ŸĻƹɁύȩþĽvĽƓÉ@ē„ĽɲßǐƫʾǗĒpäWÐxnsÀ^ƆwW©¦cÅ¡Ji§vúF¶Ž¨c~c¼īŒeXǚ‹\\\\\\\\đ¾JŽwÀďksãA‹fÕ¦L}wa‚o”Z’‹D½†Ml«]eÒÅaɲáo½FõÛ]ĻÒ¡wYR£¢rvÓ®y®LF‹LzĈ„ôe]gx}•|KK}xklL]c¦£fRtív¦†PĤoH{tK\"]],\"encodeOffsets\":[[[108619,36299]],[[108589,36341]]]},\"properties\":{\"cp\":[103.823557,36.058039],\"name\":\"甘肃\",\"childNum\":2}},{\"id\":\"630000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@InJm\"],[\"@@CƒÆ½OŃĦsΰ~Ē³¦@@“Ņiš±è}ؘƄ˹A³r_ĞŠǒNĪŒĐw¤^ŬĵªpĺSZg’rpiƼĘԛ¨C|͖J’©Ħ»®VIJ~f\\\\\\\\m `Un„˜~ʌŸ•ĬàöNt•~ňjy–¢Zi˜Ɣ¥ĄŠk´nl`JʇŠJþ©pdƖ®È£¶ìRʦ‘źõƮËnŸʼėæÑƀĎ[‚˜¢VÎĂMÖÝÎF²sƊƀÎBļýƞ—¯ʘƭðħ¼Jh¿ŦęΌƇš¥²Q]Č¥nuÂÏriˆ¸¬ƪÛ^Ó¦d€¥[Wà…x\\\\\\\\ZŽjҕ¨GtpþYŊĕ´€zUO뇉P‰îMĄÁxH´á˜iÜUà›îÜՁĂÛSuŎ‹r“œJð̬EŒ‘FÁú×uÃÎkr“Ē{V}İ«O_ÌËĬ©ŽÓŧSRѱ§Ģ£^ÂyèçěM³Ƃę{[¸¿u…ºµ[gt£¸OƤĿéYŸõ·kĀŸq]juw¥Dĩƍ€õÇPéĽG‘ž©ã‡¤G…uȧþRcÕĕNy“yût“ˆ­‡ø‘†ï»a½ē¿BMoį£ŸÍj}éZËqbʍš“Ƭh¹ìÿÓAçãnIáI`ƒks£CG­ě˜Uy×Cy•…’Ÿ@¶ʡÊBnāzG„ơMē¼±O÷õJËĚăVŸĪũƆ£Œ¯{ËL½Ìzż“„VR|ĠTbuvJvµhĻĖH”Aëáa…­OÇðñęNw‡…œľ·L›mI±íĠĩPÉ×®ÿs—’cB³±JKßĊ«`…ađ»·QAmO’‘Vţéÿ¤¹SQt]]Çx€±¯A@ĉij¢Óļ©•ƒl¶ÅÛr—ŕspãRk~¦ª]Į­´“FR„åd­ČsCqđéFn¿Åƃm’Éx{W©ºƝºįkÕƂƑ¸wWūЩÈFž£\\\\\\\\tÈ¥ÄRÈýÌJ ƒlGr^×äùyÞ³fj”c†€¨£ÂZ|ǓMĝšÏ@ëÜőR‹›ĝ‰Œ÷¡{aïȷPu°ËXÙ{©TmĠ}Y³’­ÞIňµç½©C¡į÷¯B»|St»›]vƒųƒs»”}MÓ ÿʪƟǭA¡fs˜»PY¼c¡»¦c„ċ­¥£~msĉP•–Siƒ^o©A‰Šec‚™PeǵŽkg‚yUi¿h}aH™šĉ^|ᴟ¡HØûÅ«ĉ®]m€¡qĉ¶³ÈyôōLÁst“BŸ®wn±ă¥HSòėš£˜S’ë@לÊăxÇN©™©T±ª£IJ¡fb®ÞbŽb_Ą¥xu¥B—ž{łĝ³«`d˜Ɛt—¤ťiñžÍUuºí`£˜^tƃIJc—·ÛLO‹½Šsç¥Ts{ă\\\\\\\\_»™kϊ±q©čiìĉ|ÍIƒ¥ć¥›€]ª§D{ŝŖÉR_sÿc³Īō›ƿΑ›§p›[ĉ†›c¯bKm›R¥{³„Z†e^ŽŒwx¹dƽŽôIg §Mĕ ƹĴ¿—ǣÜ̓]‹Ý–]snåA{‹eŒƭ`ǻŊĿ\\\\\\\\ijŬű”YÂÿ¬jĖqŽßbŠ¸•L«¸©@ěĀ©ê¶ìÀEH|´bRľž–Ó¶rÀQþ‹vl®Õ‚E˜TzÜdb ˜hw¤{LR„ƒd“c‹b¯‹ÙVgœ‚ƜßzÃô쮍^jUèXΖ|UäÌ»rKŽ\\\\\\\\ŒªN‘¼pZCü†VY††¤ɃRi^rPҒTÖ}|br°qňbĚ°ªiƶGQ¾²„x¦PœmlŜ‘[Ĥ¡ΞsĦŸÔÏâ\\\\\\\\ªÚŒU\\\\\\\\f…¢N²§x|¤§„xĔsZPòʛ²SÐqF`ª„VƒÞŜĶƨVZŒÌL`ˆ¢dŐIqr\\\\\\\\oäõ–F礻Ŷ×h¹]Clـ\\\\\\\\¦ďÌį¬řtTӺƙgQÇÓHţĒ”´ÃbEÄlbʔC”|CˆŮˆk„Ʈ[ʼ¬ňœ´KŮÈΰÌĪ¶ƶlð”ļA†TUvdTŠG†º̼ŠÔ€ŒsÊDԄveOg\"]],\"encodeOffsets\":[[[105308,37219]],[[95370,40081]]]},\"properties\":{\"cp\":[101.778916,36.623178],\"name\":\"青海\",\"childNum\":2}},{\"id\":\"640000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@KëÀęĞ«OęȿȕŸı]ʼn¡åįÕÔ«Ǵõƪ™ĚQÐZhv K°›öqÀѐS[ÃÖHƖčË‡nL]ûc…Ùß@‚“ĝ‘¾}w»»‹oģF¹œ»kÌÏ·{zPƒ§B­¢íyÅt@ƒ@áš]Yv_ssģ¼i߁”ĻL¾ġsKD£¡N_…“˜X¸}B~Haiˆ™Åf{«x»ge_bs“KF¯¡Ix™mELcÿZ¤­Ģ‘ƒÝœsuBLù•t†ŒYdˆmVtNmtOPhRw~bd…¾qÐ\\\\\\\\âÙH\\\\\\\\bImlNZŸ»loƒŸqlVm–Gā§~QCw¤™{A\\\\\\\\‘PKŸNY‡¯bF‡kC¥’sk‹Šs_Ã\\\\\\\\ă«¢ħkJi¯r›rAhĹûç£CU‡ĕĊ_ԗBixÅُĄnªÑaM~ħpOu¥sîeQ¥¤^dkKwlL~{L~–hw^‚ófćƒKyEŒ­K­zuÔ¡qQ¤xZÑ¢^ļöܾEpž±âbÊÑÆ^fk¬…NC¾‘Œ“YpxbK~¥Že֎ŒäBlt¿Đx½I[ĒǙŒWž‹f»Ĭ}d§dµùEuj¨‚IÆ¢¥dXªƅx¿]mtÏwßRĶŒX¢͎vÆzƂZò®ǢÌʆCrâºMÞzžÆMҔÊÓŊZľ–r°Î®Ȉmª²ĈUªĚøºˆĮ¦ÌĘk„^FłĬhĚiĀĖ¾iİbjÕ\"],[\"@@mfwěwMrŢªv@G‰\"]],\"encodeOffsets\":[[[109366,40242]],[[108600,36303]]]},\"properties\":{\"cp\":[106.278179,38.46637],\"name\":\"宁夏\",\"childNum\":2}},{\"id\":\"650000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[\"@@QØĔ²X¨”~ǘBºjʐßØvK”ƔX¨vĊOžÃƒ·¢i@~c—‡ĝe_«”Eš“}QxgɪëÏÃ@sÅyXoŖ{ô«ŸuX…ê•Îf`œC‚¹ÂÿÐGĮÕĞXŪōŸMźÈƺQèĽôe|¿ƸJR¤ĘEjcUóº¯Ĩ_ŘÁMª÷Ð¥Oéȇ¿ÖğǤǷÂF҇zÉx[]­Ĥĝ‰œ¦EP}ûƥé¿İƷTėƫœŕƅ™ƱB»Đ±’ēO…¦E–•}‘`cȺrĦáŖuҞª«IJ‡πdƺÏØZƴwʄ¤ĖGЙǂZĶƒèH¶}ÚZצʥĪï|ÇĦMŔ»İĝLj‹ì¥Βœba­¯¥ǕǚkĆŵĦɑĺƯxūД̵nơʃĽá½M»›òmqóŘĝč˾ăC…ćāƿÝɽ©DZŅ¹đ¥˜³ðLrÁ®ɱĕģʼnǻ̋ȥơŻǛȡVï¹Ň۩ûkɗġƁ§ʇė̕ĩũƽō^ƕŠUv£ƁQï“Ƶkŏ½ΉÃŭdzLқʻ«ƭ\\\\\\\\lƒ‡ŭD‡“{ʓDkaFÃÄa“³ŤđÔGRÈƚhSӹŚsİ«ĐË[¥ÚDkº^Øg¼ŵ¸£EÍö•€ůʼnT¡c_‡ËKY‹ƧUśĵ„݃U_©rETÏʜ±OñtYwē¨ƒ{£¨uM³x½şL©Ùá[ÓÐĥ Νtģ¢\\\\\\\\‚ś’nkO›w¥±ƒT»ƷFɯàĩÞáB¹Æ…ÑUw„੍žĽw[“mG½Èå~‡Æ÷QyŠěCFmĭZī—ŵVÁ™ƿQƛ—ûXS²‰b½KϽĉS›©ŷXĕŸ{ŽĕK·¥Ɨcqq©f¿]‡ßDõU³h—­gËÇïģÉɋw“k¯í}I·šœbmœÉ–ř›īJɥĻˁ×xo›ɹī‡l•c…¤³Xù]‘™DžA¿w͉ì¥wÇN·ÂËnƾƍdǧđ®Ɲv•Um©³G\\\\\\\\“}µĿ‡QyŹl㓛µEw‰LJQ½yƋBe¶ŋÀů‡ož¥A—˜Éw@•{Gpm¿Aij†ŽKLhˆ³`ñcËtW‚±»ÕS‰ëüÿďD‡u\\\\\\\\wwwù³—V›LŕƒOMËGh£õP¡™er™Ïd{“‡ġWÁ…č|yšg^ğyÁzÙs`—s|ÉåªÇ}m¢Ń¨`x¥’ù^•}ƒÌ¥H«‰Yªƅ”Aйn~ź¯šf¤áÀz„gŠÇDIԝ´AňĀ҄¶ûEYospõD[{ù°]u›Jq•U•|Soċxţ[õÔĥkŋÞŭZ˺óYËüċrw €ÞkrťË¿XGÉbřaDü·Ē÷Aê[Ää€I®BÕИÞ_¢āĠpŠÛÄȉĖġDKwbm‡ÄNô‡ŠfœƫVÉvi†dz—H‘‹QµâFšù­Âœ³¦{YGžƒd¢ĚÜO „€{Ö¦ÞÍÀPŒ^b–ƾŠlŽ[„vt×ĈÍE˨¡Đ~´î¸ùÎh€uè`¸ŸHÕŔVºwĠââWò‡@{œÙNÝ´ə²ȕn{¿¥{l—÷eé^e’ďˆXj©î\\\\\\\\ªÑò˜Üìc\\\\\\\\üqˆÕ[Č¡xoÂċªbØ­Œø|€¶ȴZdÆšońéŒGš\\\\\\\\”¼C°ÌƁn´nxšÊOĨ’Ūƴĸ¢¸òTxÊǪMīИÖŲÃɎOvˆʦƢ~FŽ‡Rěò—¿ġ~åŊœú‰Nšžš¸qŽ’Ę[Ĕ¶ÂćnÒPĒÜvúĀÊbÖ{Äî¸~Ŕünp¤ÂH¾œĄYÒ©ÊfºmԈĘcDoĬMŬ’˜S¤„s²‚”ʘچžȂVŦ –ŽèW°ªB|IJXŔþÈJĦÆæFĚêŠYĂªĂ]øªŖNÞüA€’fɨJ€˜¯ÎrDDšĤ€`€mz\\\\\\\\„§~D¬{vJÂ˜«lµĂb–¤p€ŌŰNĄ¨ĊXW|ų ¿¾ɄĦƐMT”‡òP˜÷fØĶK¢ȝ˔Sô¹òEð­”`Ɩ½ǒÂň×äı–§ĤƝ§C~¡‚hlå‚ǺŦŞkâ’~}ŽFøàIJaĞ‚fƠ¥Ž„Ŕdž˜®U¸ˆźXœv¢aƆúŪtŠųƠjd•ƺŠƺÅìnrh\\\\\\\\ĺ¯äɝĦ]èpĄ¦´LƞĬŠ´ƤǬ˼Ēɸ¤rºǼ²¨zÌPðŀbþ¹ļD¢¹œ\\\\\\\\ĜÑŚŸ¶ZƄ³àjĨoâŠȴLʉȮŒĐ­ĚăŽÀêZǚŐ¤qȂ\\\\\\\\L¢ŌİfÆs|zºeªÙæ§΢{Ā´ƐÚ¬¨Ĵà²łhʺKÞºÖTŠiƢ¾ªì°`öøu®Ê¾ãØ\"],\"encodeOffsets\":[[88824,50096]]},\"properties\":{\"cp\":[87.617733,43.792818],\"name\":\"新疆\",\"childNum\":1}},{\"id\":\"110000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[\"@@ĽOÁ›ûtŷmiÍt_H»Ĩ±d`Š¹­{bw…Yr“³S]§§o¹€qGtm_Sŧ€“oa›‹FLg‘QN_•dV€@Zom_ć\\\\\\\\ߚc±x¯oœRcfe…£’o§ËgToÛJíĔóu…|wP¤™XnO¢ÉˆŦ¯rNÄā¤zâŖÈRpŢZŠœÚ{GŠrFt¦Òx§ø¹RóäV¤XdˆżâºWbwŚ¨Ud®bêņ¾‘jnŎGŃŶŠnzÚSeîĜZczî¾i]͜™QaúÍÔiþĩȨWĢ‹ü|Ėu[qb[swP@ÅğP¿{\\\\\\\\‡¥A¨Ï‘Ѩj¯ŠX\\\\\\\\¯œMK‘pA³[H…īu}}\"],\"encodeOffsets\":[[120023,41045]]},\"properties\":{\"cp\":[116.405285,39.904989],\"name\":\"北京\",\"childNum\":1}},{\"id\":\"120000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[\"@@ŬgX§Ü«E…¶Ḟ“¬O_™ïlÁg“z±AXe™µÄĵ{¶]gitgšIj·›¥îakS€‰¨ÐƎk}ĕ{gB—qGf{¿a†U^fI“ư‹³õ{YƒıëNĿžk©ïËZŏ‘R§òoY×Ógc…ĥs¡bġ«@dekąI[nlPqCnp{ˆō³°`{PNdƗqSÄĻNNâyj]äžÒD ĬH°Æ]~¡HO¾ŒX}ÐxŒgp“gWˆrDGˆŒpù‚Š^L‚ˆrzWxˆZ^¨´T\\\\\\\\|~@I‰zƒ–bĤ‹œjeĊªz£®Ĕvě€L†mV¾Ô_ȔNW~zbĬvG†²ZmDM~”~\"],\"encodeOffsets\":[[120237,41215]]},\"properties\":{\"cp\":[117.190182,39.125596],\"name\":\"天津\",\"childNum\":1}},{\"id\":\"310000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@ɧư¬EpƸÁxc‡\"],[\"@@©„ªƒ\"],[\"@@”MA‹‘š\"],[\"@@Qp݁E§ÉC¾\"],[\"@@bŝՕÕEȣÚƥêImɇǦèÜĠŒÚžÃƌÃ͎ó\"],[\"@@ǜûȬɋŠŭ™×^‰sYŒɍDŋ‘ŽąñCG²«ªč@h–_p¯A{‡oloY€¬j@IJ`•gQڛhr|ǀ^MIJvtbe´R¯Ô¬¨YŽô¤r]ì†Ƭį\"]],\"encodeOffsets\":[[[124702,32062]],[[124547,32200]],[[124808,31991]],[[124726,32110]],[[124903,32376]],[[124438,32149]]]},\"properties\":{\"cp\":[121.472644,31.231706],\"name\":\"上海\",\"childNum\":6}},{\"id\":\"500000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@vjG~nGŘŬĶȂƀƾ¹¸ØÎezĆT¸}êЖqHŸðqĖ䒊¥^CƒIj–²p…\\\\\\\\_ æüY|[YxƊæuž°xb®…Űb@~¢NQt°¶‚S栓Ê~rljĔëĚ¢~šuf`‘‚†fa‚ĔJåĊ„nÖ]„jƎćÊ@Š£¾a®£Ű{ŶĕF‹ègLk{Y|¡ĜWƔtƬJÑxq‹±ĢN´‰òK‰™–LÈüD|s`ŋ’ć]ƒÃ‰`đŒMûƱ½~Y°ħ`ƏíW‰½eI‹½{aŸ‘OIrÏ¡ĕŇa†p†µÜƅġ‘œ^ÖÛbÙŽŏml½S‹êqDu[R‹ãË»†ÿw`»y‘¸_ĺę}÷`M¯ċfCVµqʼn÷Z•gg“Œ`d½pDO‡ÎCnœ^uf²ènh¼WtƏxRGg¦…pV„†FI±ŽG^ŒIc´ec‡’G•ĹÞ½sëĬ„h˜xW‚}Kӈe­Xsbk”F¦›L‘ØgTkïƵNï¶}Gy“w\\\\\\\\oñ¡nmĈzjŸ•@™Óc£»Wă¹Ój“_m»ˆ¹·~MvÛaqœ»­‰êœ’\\\\\\\\ÂoVnŽÓØ͙²«‹bq¿efE „€‹Ĝ^Qž~ Évý‡ş¤²Į‰pEİ}zcĺƒL‹½‡š¿gņ›¡ýE¡ya£³t\\\\\\\\¨\\\\\\\\vú»¼§·Ñr_oÒý¥u‚•_n»_ƒ•At©Þűā§IVeëƒY}{VPÀFA¨ąB}q@|Ou—\\\\\\\\Fm‰QF݅Mw˜å}]•€|FmϋCaƒwŒu_p—¯sfÙgY…DHl`{QEfNysBŠ¦zG¸rHe‚„N\\\\\\\\CvEsÐùÜ_·ÖĉsaQ¯€}_U‡†xÃđŠq›NH¬•Äd^ÝŰR¬ã°wećJEž·vÝ·Hgƒ‚éFXjÉê`|yŒpxkAwœWĐpb¥eOsmzwqChóUQl¥F^laf‹anòsr›EvfQdÁUVf—ÎvÜ^efˆtET¬ôA\\\\\\\\œ¢sJŽnQTjP؈xøK|nBz‰„œĞ»LY‚…FDxӄvr“[ehľš•vN”¢o¾NiÂxGp⬐z›bfZo~hGi’]öF|‰|Nb‡tOMn eA±ŠtPT‡LjpYQ|†SH††YĀxinzDJ€Ìg¢và¥Pg‰_–ÇzII‹€II•„£®S¬„Øs쐣ŒN\"],[\"@@ifjN@s\"]],\"encodeOffsets\":[[[109628,30765]],[[111725,31320]]]},\"properties\":{\"cp\":[106.504962,29.533155],\"name\":\"重庆\",\"childNum\":2}},{\"id\":\"810000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@AlBk\"],[\"@@mŽn\"],[\"@@EpFo\"],[\"@@ea¢pl¸Eõ¹‡hj[ƒ]ÔCΖ@lj˜¡uBXŸ…•´‹AI¹…[‹yDUˆ]W`çwZkmc–…M›žp€Åv›}I‹oJlcaƒfёKŽ°ä¬XJmРđhI®æÔtSHn€Eˆ„ÒrÈc\"],[\"@@rMUw‡AS®€e\"]],\"encodeOffsets\":[[[117111,23002]],[[117072,22876]],[[117045,22887]],[[116975,23082]],[[116882,22747]]]},\"properties\":{\"cp\":[114.173355,22.320048],\"name\":\"香港\",\"childNum\":5}},{\"id\":\"820000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[\"@@kÊd°å§s\"],\"encodeOffsets\":[[116279,22639]]},\"properties\":{\"cp\":[113.54909,22.198951],\"name\":\"澳门\",\"childNum\":1}}],\"UTF8Encoding\":true}')},function(t,e,n){var i=n(1),r=n(83),o=n(84);t.exports=function(t){var e=i(t);return o(e,r(e))+1}},function(t,e){t.exports=function(t){var e=new Date(t.getTime()),n=e.getTimezoneOffset();return e.setSeconds(0,0),6e4*n+e.getTime()%6e4}},function(t,e,n){var i=n(1);t.exports=function(t){var e=i(t),n=new Date(0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}},function(t,e,n){var i=n(85),r=6e4,o=864e5;t.exports=function(t,e){var n=i(t),a=i(e),s=n.getTime()-n.getTimezoneOffset()*r,l=a.getTime()-a.getTimezoneOffset()*r;return Math.round((s-l)/o)}},function(t,e,n){var i=n(1);t.exports=function(t){var e=i(t);return e.setHours(0,0,0,0),e}},function(t,e,n){var i=n(1),r=n(22),o=n(88),a=6048e5;t.exports=function(t){var e=i(t),n=r(e).getTime()-o(e).getTime();return Math.round(n/a)+1}},function(t,e,n){var i=n(1);t.exports=function(t,e){var n=e&&Number(e.weekStartsOn)||0,r=i(t),o=r.getDay(),a=(o0?\"in \"+r:r+\" ago\":r}}}},function(t,e,n){var i=n(93);t.exports=function(){var t=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],e=[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],n=[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],r=[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],o=[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],a=[\"AM\",\"PM\"],s=[\"am\",\"pm\"],l=[\"a.m.\",\"p.m.\"],u={MMM:function(e){return t[e.getMonth()]},MMMM:function(t){return e[t.getMonth()]},dd:function(t){return n[t.getDay()]},ddd:function(t){return r[t.getDay()]},dddd:function(t){return o[t.getDay()]},A:function(t){return t.getHours()/12>=1?a[1]:a[0]},a:function(t){return t.getHours()/12>=1?s[1]:s[0]},aa:function(t){return t.getHours()/12>=1?l[1]:l[0]}};return[\"M\",\"D\",\"DDD\",\"d\",\"Q\",\"W\"].forEach(function(t){u[t+\"o\"]=function(e,n){return function(t){var e=t%100;if(e>20||e<10)switch(e%10){case 1:return t+\"st\";case 2:return t+\"nd\";case 3:return t+\"rd\"}return t+\"th\"}(n[t](e))}}),{formatters:u,formattingTokensRegExp:i(u)}}},function(t,e){var n=[\"M\",\"MM\",\"Q\",\"D\",\"DD\",\"DDD\",\"DDDD\",\"d\",\"E\",\"W\",\"WW\",\"YY\",\"YYYY\",\"GG\",\"GGGG\",\"H\",\"HH\",\"h\",\"hh\",\"m\",\"mm\",\"s\",\"ss\",\"S\",\"SS\",\"SSS\",\"Z\",\"ZZ\",\"X\",\"x\"];t.exports=function(t){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);var r=n.concat(e).sort().reverse();return new RegExp(\"(\\\\[[^\\\\[]*\\\\])|(\\\\\\\\)?(\"+r.join(\"|\")+\"|.)\",\"g\")}},function(t,e,n){var i=n(1);t.exports=function(t,e){var n=i(t),r=Number(e);return n.setDate(n.getDate()+r),n}},function(t,e,n){var i=n(1);t.exports=function(t){var e=i(t),n=e.getFullYear(),r=e.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}},function(t,e,n){var i=n(42);t.exports=function(t,e){var n=Number(e);return i(t,12*n)}},function(t,e,n){var i=n(23),r=n(126),o=n(47),a=n(127),s=n(134),l=n(137),u=n(138),h=n(139),c=n(141),d=n(57),f=n(142),p=n(18),g=n(146),m=n(147),v=n(152),y=n(3),x=n(27),_=n(154),b=n(6),w=n(156),M=n(10),S=1,I=2,A=4,D=\"[object Arguments]\",T=\"[object Function]\",C=\"[object GeneratorFunction]\",L=\"[object Object]\",k={};k[D]=k[\"[object Array]\"]=k[\"[object ArrayBuffer]\"]=k[\"[object DataView]\"]=k[\"[object Boolean]\"]=k[\"[object Date]\"]=k[\"[object Float32Array]\"]=k[\"[object Float64Array]\"]=k[\"[object Int8Array]\"]=k[\"[object Int16Array]\"]=k[\"[object Int32Array]\"]=k[\"[object Map]\"]=k[\"[object Number]\"]=k[L]=k[\"[object RegExp]\"]=k[\"[object Set]\"]=k[\"[object String]\"]=k[\"[object Symbol]\"]=k[\"[object Uint8Array]\"]=k[\"[object Uint8ClampedArray]\"]=k[\"[object Uint16Array]\"]=k[\"[object Uint32Array]\"]=!0,k[\"[object Error]\"]=k[T]=k[\"[object WeakMap]\"]=!1,t.exports=function t(e,n,P,O,N,E){var z,R=n&S,B=n&I,V=n&A;if(P&&(z=N?P(e,O,N,E):P(e)),void 0!==z)return z;if(!b(e))return e;var F=y(e);if(F){if(z=g(e),!R)return u(e,z)}else{var G=p(e),W=G==T||G==C;if(x(e))return l(e,R);if(G==L||G==D||W&&!N){if(z=B||W?{}:v(e),!R)return B?c(e,s(z,e)):h(e,a(z,e))}else{if(!k[G])return N?e:{};z=m(e,G,R)}}E||(E=new i);var H=E.get(e);if(H)return H;E.set(e,z),w(e)?e.forEach(function(i){z.add(t(i,n,P,i,e,E))}):_(e)&&e.forEach(function(i,r){z.set(r,t(i,n,P,r,e,E))});var j=V?B?f:d:B?keysIn:M,Y=F?void 0:j(e);return r(Y||e,function(i,r){Y&&(i=e[r=i]),o(z,r,t(i,n,P,r,e,E))}),z}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var i=n(12),r=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=i(e,t);return!(n<0)&&(n==e.length-1?e.pop():r.call(e,n,1),--this.size,!0)}},function(t,e,n){var i=n(12);t.exports=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var i=n(12);t.exports=function(t){return i(this.__data__,t)>-1}},function(t,e,n){var i=n(12);t.exports=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}},function(t,e,n){var i=n(11);t.exports=function(){this.__data__=new i,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var i=n(11),r=n(24),o=n(25),a=200;t.exports=function(t,e){var n=this.__data__;if(n instanceof i){var s=n.__data__;if(!r||s.length0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var i=n(63),r=n(168),o=n(173),a=n(64),s=n(174),l=n(36),u=200;t.exports=function(t,e,n){var h=-1,c=r,d=t.length,f=!0,p=[],g=p;if(n)f=!1,c=o;else if(d>=u){var m=e?null:s(t);if(m)return l(m);f=!1,c=a,g=new i}else g=e?[]:p;t:for(;++h-1}},function(t,e,n){var i=n(170),r=n(171),o=n(172);t.exports=function(t,e,n){return e==e?o(t,e,n):i(t,r,n)}},function(t,e){t.exports=function(t,e,n,i){for(var r=t.length,o=n+(i?1:-1);i?o--:++o=l?u:u*(\"desc\"==n[r]?-1:1)}return t.index-e.index}},function(t,e,n){var i=n(20);t.exports=function(t,e){if(t!==e){var n=void 0!==t,r=null===t,o=t==t,a=i(t),s=void 0!==e,l=null===e,u=e==e,h=i(e);if(!l&&!h&&!a&&t>e||a&&s&&u&&!l&&!h||r&&s&&u||!n&&u||!o)return 1;if(!r&&!a&&!h&&t=0&&(o.yAxisIndex=l);var u,h,c=function(t){if(!t||t.length<=0)return[];var e=Object.keys(t[0]).filter(function(t){return\"key\"!==t}),n=e[0];return e.indexOf(\"close\")>=0&&(n=\"close\"),t.map(function(t){return t[n]})}(n[t.sid]);if(t.stack){var d=r[t.stack];d&&\"percent\"===d.valueType&&(u=c,h=d.totalValues,c=u.map(function(t,e){var n=h[e];return void 0===n?0:(null==t&&(t=0),t/n*100)}))}if(o.data=c,t.transform){var f=t.transform.ratio||1,p=t.transform.fractionDigits;void 0===p&&(p=4),o.data=c.map(function(e){if(null===e)return null;if(e.hasOwnProperty(\"value\")){var n=e.value;return null!==n&&(n=(n=t.stack&&r[t.stack]&&\"percent\"==r[t.stack].valueType?Number(n):Number(n)*f).toFixed(p)),function(t){for(var e=1;e=0?\"left\":\"right\"),t.hasOwnProperty(\"min\")&&(a.min=I(t.min)),t.hasOwnProperty(\"max\")&&(a.max=I(t.max)),t.hasOwnProperty(\"unit\")&&(a.interval=I(t.unit));var s=t.name,l=e.filter(function(t){return t.axisName===s}),u=!1;return l.forEach(function(t){\"bar\"===t.chartType&&(u=!0)}),a.scale=!u,\"none\"===n||\"vertical\"===n?a.splitLine.show=!1:(a.splitLine.show=\"left\"===a.position,a.splitLine.lineStyle={type:\"dotted\"}),!1===t.axisLineShow&&(a.axisLine.show=!1),!1===t.axisTickShow&&(a.axisTick.show=!1),!0===t.axisTickInside&&(a.axisTick.inside=!0),!1===t.axisLabelShow&&(a.axisLabel.show=!1),!0===t.axisLabelInside&&(a.axisLabel.inside=!0),t.inverse&&(a.inverse=!0),t.axisLabelFormatter&&\"D\"!=t.axisLabelFormatter&&(a.axisLabel.formatter=function(e,n){return parseFloat(e.toFixed(4))/k[t.axisLabelFormatter]+t.axisLabelFormatter}),e.find(function(e){return e.axisName===t.name&&e.show})||(a.show=!1),i>2&&\"right\"==a.position&&a.show&&(a.offset=25*r,r++),a})}(s,a,l);var c=i.yAxis.filter(function(t){return t.show&&\"right\"==t.position}).length;return i.grid={left:\"5%\",right:c<=1?\"5%\":30*(c-1)},i.series=E(a,s,e,r),i}function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function B(t){for(var e=1;e=i:parseInt(t)>=i&&parseInt(t)<=o});o=j()(a,o)}}),Z()(o,function(t){return t})}(e,a,s,t,i)),r}function X(t,e,n,i,r){var o=[];switch(r){case\"date\":default:o=U(t,e,n,i)}var a={__keyList:o};return e.forEach(function(e){if(t[e]){var n=t[e].data,i=t[e].columns;a[e]=[],o.forEach(function(t){var r=n.date.findIndex(function(e){return e===t}),o={key:t};i.forEach(function(t){o[t]=r>=0?n[t][r]:null}),a[e].push(o)})}}),a}var q={top:20,bottom:0,left:10,right:10,containLabel:!0},K=[{type:\"inside\",realtime:!0,throttle:100,filterMode:\"weakFilter\",minValueSpan:5}];function Q(t){return t.xAxis.forEach(function(t){var e=void 0;t.axisLabel?e=t.axisLabel.formatter:t.axisLabel={},e&&!D(e)||(t.axisLabel.formatter=function(t){return e&&(t=e(t)),\"string\"==typeof t&&t.startsWith(\"2\")?t:(t.length>8&&(t=t.substring(0,8)+\"...\"),t)})}),t}function J(t){return t.series&&t.series[0]&&t.series[0].type&&(\"line\"==t.series[0].type||\"bar\"==t.series[0].type)&&(t.dataZoom=K),t}function $(t){t.hasOwnProperty(\"series\")&&t.series[0]&&\"pie\"==t.series[0].type&&function(t){if(!t.tooltip||!t.tooltip.formatter)return;var e=t.tooltip.formatter;\"string\"==typeof e&&(t.tooltip.formatter=e.replace(\"
\",\"\\n\"))}(t)}function tt(t){return t.hasOwnProperty(\"options\")?t.options=t.options.map(function(t){return t.grid={containLabel:!0,left:10,right:10},t.hasOwnProperty(\"xAxis\")&&Q(t),J(t),$(t),t}):(!function(t){t.grid=q}(t),t.hasOwnProperty(\"xAxis\")&&Q(t),J(t),$(t)),t}var et=function(t){return t.animation=!1,delete t.legend,delete t.tooltip,delete t.title,t=tt(t)},nt=n(80);function it(t){return t.hasOwnProperty(\"title\")&&delete t.title,t.hasOwnProperty(\"legend\")&&delete t.legend,t.grid={top:20,bottom:0,left:10,right:10,containLabel:!0},t}n.d(e,\"echarts\",function(){return W}),n.d(e,\"toEcharts\",function(){return G}),n.d(e,\"utils\",function(){return i}),n.d(e,\"assembleData\",function(){return X}),n.d(e,\"adaptInst\",function(){return et}),n.d(e,\"simpleChart\",function(){return it}),W.registerMap(\"china\",nt)}]);"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sourceRoot":""} \ No newline at end of file +{"version":3,"file":"index.js","sources":["webpack://echartsAdapter/index.js"],"sourcesContent":["exports.echartsAdapter=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&\"object\"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,\"a\",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=\"\",n(n.s=210)}([function(t,e,n){var i=n(81),r=n(86),o=n(41),a=n(1),s=n(89),l=n(90);var u={M:function(t){return t.getMonth()+1},MM:function(t){return d(t.getMonth()+1,2)},Q:function(t){return Math.ceil((t.getMonth()+1)/3)},D:function(t){return t.getDate()},DD:function(t){return d(t.getDate(),2)},DDD:function(t){return i(t)},DDDD:function(t){return d(i(t),3)},d:function(t){return t.getDay()},E:function(t){return t.getDay()||7},W:function(t){return r(t)},WW:function(t){return d(r(t),2)},YY:function(t){return d(t.getFullYear(),4).substr(2)},YYYY:function(t){return d(t.getFullYear(),4)},GG:function(t){return String(o(t)).substr(2)},GGGG:function(t){return o(t)},H:function(t){return t.getHours()},HH:function(t){return d(t.getHours(),2)},h:function(t){var e=t.getHours();return 0===e?12:e>12?e%12:e},hh:function(t){return d(u.h(t),2)},m:function(t){return t.getMinutes()},mm:function(t){return d(t.getMinutes(),2)},s:function(t){return t.getSeconds()},ss:function(t){return d(t.getSeconds(),2)},S:function(t){return Math.floor(t.getMilliseconds()/100)},SS:function(t){return d(Math.floor(t.getMilliseconds()/10),2)},SSS:function(t){return d(t.getMilliseconds(),3)},Z:function(t){return c(t.getTimezoneOffset(),\":\")},ZZ:function(t){return c(t.getTimezoneOffset())},X:function(t){return Math.floor(t.getTime()/1e3)},x:function(t){return t.getTime()}};function h(t){return t.match(/\\[[\\s\\S]/)?t.replace(/^\\[|]$/g,\"\"):t.replace(/\\\\/g,\"\")}function c(t,e){e=e||\"\";var n=t>0?\"-\":\"+\",i=Math.abs(t),r=i%60;return n+d(Math.floor(i/60),2)+e+d(r,2)}function d(t,e){for(var n=Math.abs(t).toString();n.length0&&(k+=R)}return new Date(P+O+k)}return new Date(t)}},function(t,e,n){var i=n(44),r=\"object\"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function(\"return this\")();t.exports=o},function(t,e){var n=Array.isArray;t.exports=n},function(t,e){t.exports=function(t){return null!=t&&\"object\"==typeof t}},function(t,e,n){var i=n(108),r=n(113);t.exports=function(t,e){var n=r(t,e);return i(n)?n:void 0}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&(\"object\"==e||\"function\"==e)}},function(t,e,n){var i=n(2).Symbol;t.exports=i},function(t,e,n){var i=n(43),r=n(30);t.exports=function(t){return null!=t&&r(t.length)&&!i(t)}},function(t,e,n){var i=n(7),r=n(109),o=n(110),a=\"[object Null]\",s=\"[object Undefined]\",l=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?s:a:l&&l in Object(t)?r(t):o(t)}},function(t,e,n){var i=n(50),r=n(132),o=n(8);t.exports=function(t){return o(t)?i(t):r(t)}},function(t,e,n){var i=n(98),r=n(99),o=n(100),a=n(101),s=n(102);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=n}},function(t,e,n){(function(t){var i=n(44),r=e&&!e.nodeType&&e,o=r&&\"object\"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===r&&i.process,s=function(){try{var t=o&&o.require&&o.require(\"util\").types;return t||a&&a.binding&&a.binding(\"util\")}catch(t){}}();t.exports=s}).call(this,n(28)(t))},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===(\"function\"==typeof e&&e.prototype||n)}},function(t,e,n){var i=n(140),r=n(54),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),i(a(t),function(e){return o.call(t,e)}))}:r;t.exports=s},function(t,e){t.exports=function(t,e){for(var n=-1,i=e.length,r=t.length;++n=11),domSupported:\"undefined\"!=typeof document}),g={\"[object Function]\":1,\"[object RegExp]\":1,\"[object Date]\":1,\"[object Error]\":1,\"[object CanvasGradient]\":1,\"[object CanvasPattern]\":1,\"[object Image]\":1,\"[object Canvas]\":1},m={\"[object Int8Array]\":1,\"[object Uint8Array]\":1,\"[object Uint8ClampedArray]\":1,\"[object Int16Array]\":1,\"[object Uint16Array]\":1,\"[object Int32Array]\":1,\"[object Uint32Array]\":1,\"[object Float32Array]\":1,\"[object Float64Array]\":1},v=Object.prototype.toString,y=Array.prototype,x=y.forEach,_=y.filter,b=y.slice,w=y.map,M=y.reduce,S={};function I(t,e){\"createCanvas\"===t&&(k=null),S[t]=e}function A(t){if(null==t||\"object\"!==l(t))return t;var e=t,n=v.call(t);if(\"[object Array]\"===n){if(!lt(t)){e=[];for(var i=0,r=t.length;i3&&(i=Vt.call(i,1));for(var o=e.length,a=0;a4&&(i=Vt.call(i,1,i.length-1));for(var o=i[i.length-1],a=e.length,s=0;s=0){var r=\"touchend\"!==i?e.targetTouches[0]:e.changedTouches[0];r&&jt(t,r,e,n)}else jt(t,e,e,n),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var o=e.button;return null==e.which&&void 0!==o&&Ht.test(e.type)&&(e.which=1&o?1:2&o?3:4&o?2:0),e}function Ut(t,e,n){Wt?t.addEventListener(e,n):t.attachEvent(\"on\"+e,n)}function Xt(t,e,n){Wt?t.removeEventListener(e,n):t.detachEvent(\"on\"+e,n)}var qt=Wt?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};function Kt(t){return 2===t.which||3===t.which}var Qt=function(){this._track=[]};function Jt(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}Qt.prototype={constructor:Qt,recognize:function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},clear:function(){return this._track.length=0,this},_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;o1&&r&&r.length>1){var a=Jt(r)/Jt(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:\"pinch\",target:t[0].target,event:e}}}}},te=\"silent\";function ee(t){qt(this.event)}function ne(){}ne.prototype.dispose=function(){};var ie=[\"click\",\"dblclick\",\"mousewheel\",\"mouseout\",\"mouseup\",\"mousedown\",\"mousemove\",\"contextmenu\"],re=function(t,e,n,i){Ft.call(this),this.storage=t,this.painter=e,this.painterRoot=i,n=n||new ne,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,Rt.call(this),this.setHandlerProxy(n)};function oe(t,e,n){if(t[t.rectHover?\"rectContain\":\"contain\"](e,n)){for(var i,r=t;r;){if(r.clipPath&&!r.clipPath.contain(e,n))return!1;r.silent&&(i=!0),r=r.parent}return!i||te}return!1}re.prototype={constructor:re,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(B(ie,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},mousemove:function(t){var e=t.zrX,n=t.zrY,i=this._hovered,r=i.target;r&&!r.__zr&&(r=(i=this.findHover(i.x,i.y)).target);var o=this._hovered=this.findHover(e,n),a=o.target,s=this.proxy;s.setCursor&&s.setCursor(a?a.cursor:\"default\"),r&&a!==r&&this.dispatchToElement(i,\"mouseout\",t),this.dispatchToElement(o,\"mousemove\",t),a&&a!==r&&this.dispatchToElement(o,\"mouseover\",t)},mouseout:function(t){this.dispatchToElement(this._hovered,\"mouseout\",t);var e,n=t.toElement||t.relatedTarget;do{n=n&&n.parentNode}while(n&&9!==n.nodeType&&!(e=n===this.painterRoot));!e&&this.trigger(\"globalout\",{event:t})},resize:function(t){this._hovered={}},dispatch:function(t,e){var n=this[t];n&&n.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r=\"on\"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.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:ee}}(e,t,n);i&&(i[r]&&(o.cancelBubble=i[r].call(i,o)),i.trigger(e,o),i=i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer(function(t){\"function\"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},findHover:function(t,e,n){for(var i=this.storage.getDisplayList(),r={x:t,y:e},o=i.length-1;o>=0;o--){var a;if(i[o]!==n&&!i[o].ignore&&(a=oe(i[o],t,e))&&(!r.topTarget&&(r.topTarget=i[o]),a!==te)){r.target=i[o];break}}return r},processGesture:function(t,e){this._gestureMgr||(this._gestureMgr=new Qt);var n=this._gestureMgr;\"start\"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(\"end\"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r,this.dispatchToElement({target:i.target},r,i.event)}}},B([\"click\",\"mousedown\",\"mouseup\",\"mousewheel\",\"dblclick\",\"contextmenu\"],function(t){re.prototype[t]=function(e){var n=this.findHover(e.zrX,e.zrY),i=n.target;if(\"mousedown\"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if(\"mouseup\"===t)this._upEl=i;else if(\"click\"===t){if(this._downEl!==this._upEl||!this._downPoint||Ct(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}),z(re,Ft),z(re,Rt);var ae=\"undefined\"==typeof Float32Array?Array:Float32Array;function se(){var t=new ae(6);return le(t),t}function le(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ue(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 he(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],l=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]=l,t}function ce(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 de(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),h=Math.cos(n);return t[0]=i*h+a*u,t[1]=-i*u+a*h,t[2]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t}function fe(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function pe(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function ge(t){var e=se();return ue(e,t),e}var me=(Object.freeze||Object)({create:se,identity:le,copy:ue,mul:he,translate:ce,rotate:de,scale:fe,invert:pe,clone:ge}),ve=le,ye=5e-5;function xe(t){return t>ye||t<-ye}var _e=function(t){(t=t||{}).position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},be=_e.prototype;be.transform=null,be.needLocalTransform=function(){return xe(this.rotation)||xe(this.position[0])||xe(this.position[1])||xe(this.scale[0]-1)||xe(this.scale[1]-1)};var we=[];be.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),i=this.transform;if(n||e){i=i||se(),n?this.getLocalTransform(i):ve(i),e&&(n?he(i,t.transform,i):ue(i,t.transform)),this.transform=i;var r=this.globalScaleRatio;if(null!=r&&1!==r){this.getGlobalScale(we);var o=we[0]<0?-1:1,a=we[1]<0?-1:1,s=((we[0]-o)*r+o)/we[0]||0,l=((we[1]-a)*r+a)/we[1]||0;i[0]*=s,i[1]*=s,i[2]*=l,i[3]*=l}this.invTransform=this.invTransform||se(),pe(this.invTransform,i)}else i&&ve(i)},be.getLocalTransform=function(t){return _e.getLocalTransform(this,t)},be.setTransform=function(t){var e=this.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)},be.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var Me=[],Se=se();be.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=this.position,r=this.scale;xe(e-1)&&(e=Math.sqrt(e)),xe(n-1)&&(n=Math.sqrt(n)),t[0]<0&&(e=-e),t[3]<0&&(n=-n),i[0]=t[4],i[1]=t[5],r[0]=e,r[1]=n,this.rotation=Math.atan2(-t[1]/n,t[0]/e)}},be.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(he(Me,t.invTransform,e),e=Me);var n=this.origin;n&&(n[0]||n[1])&&(Se[4]=n[0],Se[5]=n[1],he(Me,e,Se),Me[4]-=n[0],Me[5]-=n[1],e=Me),this.setLocalTransform(e)}},be.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):(t[0]=1,t[1]=1,t)},be.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&Ot(n,n,i),n},be.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Ot(n,n,i),n},_e.getLocalTransform=function(t,e){ve(e=e||[]);var n=t.origin,i=t.scale||[1,1],r=t.rotation||0,o=t.position||[0,0];return n&&(e[4]-=n[0],e[5]-=n[1]),fe(e,e,i),r&&de(e,e,r),n&&(e[4]+=n[0],e[5]+=n[1]),e[4]+=o[0],e[5]+=o[1],e};var Ie={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:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.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:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ie.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*Ie.bounceIn(2*t):.5*Ie.bounceOut(2*t-1)+.5}};function Ae(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||\"Linear\",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}Ae.prototype={constructor:Ae,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)this._pausedTime+=e;else{var n=(t-this._startTime-this._pausedTime)/this._life;if(!(n<0)){n=Math.min(n,1);var i=this.easing,r=\"string\"==typeof i?Ie[i]:i,o=\"function\"==typeof r?r(n):n;return this.fire(\"frame\",o),1===n?this.loop?(this.restart(t),\"restart\"):(this._needsRemove=!0,\"destroy\"):null}}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){this[t=\"on\"+t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var De=function(){this.head=null,this.tail=null,this._len=0},Te=De.prototype;Te.insert=function(t){var e=new Ce(t);return this.insertEntry(e),e},Te.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},Te.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--},Te.len=function(){return this._len},Te.clear=function(){this.head=this.tail=null,this._len=0};var Ce=function(t){this.value=t,this.next,this.prev},Le=function(t){this._list=new De,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},ke=Le.prototype;ke.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Ce(e),a.key=t,n.insertEntry(a),i[t]=a}return r},ke.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},ke.clear=function(){this._list.clear(),this._map={}};var Pe={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 Oe(t){return(t=Math.round(t))<0?0:t>255?255:t}function Ne(t){return t<0?0:t>1?1:t}function Ee(t){return t.length&&\"%\"===t.charAt(t.length-1)?Oe(parseFloat(t)/100*255):Oe(parseInt(t,10))}function ze(t){return t.length&&\"%\"===t.charAt(t.length-1)?Ne(parseFloat(t)/100):Ne(parseFloat(t))}function Re(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function Be(t,e,n){return t+(e-t)*n}function Ve(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function Fe(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Ge=new Le(20),We=null;function He(t,e){We&&Fe(We,e),We=Ge.put(t,We||e.slice())}function je(t,e){if(t){e=e||[];var n=Ge.get(t);if(n)return Fe(e,n);var i,r=(t+=\"\").replace(/ /g,\"\").toLowerCase();if(r in Pe)return Fe(e,Pe[r]),He(t,e),e;if(\"#\"===r.charAt(0))return 4===r.length?(i=parseInt(r.substr(1),16))>=0&&i<=4095?(Ve(e,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,1),He(t,e),e):void Ve(e,0,0,0,1):7===r.length?(i=parseInt(r.substr(1),16))>=0&&i<=16777215?(Ve(e,(16711680&i)>>16,(65280&i)>>8,255&i,1),He(t,e),e):void Ve(e,0,0,0,1):void 0;var o=r.indexOf(\"(\"),a=r.indexOf(\")\");if(-1!==o&&a+1===r.length){var s=r.substr(0,o),l=r.substr(o+1,a-(o+1)).split(\",\"),u=1;switch(s){case\"rgba\":if(4!==l.length)return void Ve(e,0,0,0,1);u=ze(l.pop());case\"rgb\":return 3!==l.length?void Ve(e,0,0,0,1):(Ve(e,Ee(l[0]),Ee(l[1]),Ee(l[2]),u),He(t,e),e);case\"hsla\":return 4!==l.length?void Ve(e,0,0,0,1):(l[3]=ze(l[3]),Ye(l,e),He(t,e),e);case\"hsl\":return 3!==l.length?void Ve(e,0,0,0,1):(Ye(l,e),He(t,e),e);default:return}}Ve(e,0,0,0,1)}}function Ye(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=ze(t[1]),r=ze(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return Ve(e=e||[],Oe(255*Re(a,o,n+1/3)),Oe(255*Re(a,o,n)),Oe(255*Re(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Ze(t,e){var n=je(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,n[i]>255?n[i]=255:t[i]<0&&(n[i]=0);return tn(n,4===n.length?\"rgba\":\"rgb\")}}function Ue(t){var e=je(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Xe(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=Oe(Be(a[0],s[0],l)),n[1]=Oe(Be(a[1],s[1],l)),n[2]=Oe(Be(a[2],s[2],l)),n[3]=Ne(Be(a[3],s[3],l)),n}}var qe=Xe;function Ke(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=je(e[r]),s=je(e[o]),l=i-r,u=tn([Oe(Be(a[0],s[0],l)),Oe(Be(a[1],s[1],l)),Oe(Be(a[2],s[2],l)),Ne(Be(a[3],s[3],l))],\"rgba\");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}var Qe=Ke;function Je(t,e,n,i){if(t=je(t))return t=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-c:r===s?e=1/3+h-d:o===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}(t),null!=e&&(t[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}(e)),null!=n&&(t[1]=ze(n)),null!=i&&(t[2]=ze(i)),tn(Ye(t),\"rgba\")}function $e(t,e){if((t=je(t))&&null!=e)return t[3]=Ne(e),tn(t,\"rgba\")}function tn(t,e){if(t&&t.length){var n=t[0]+\",\"+t[1]+\",\"+t[2];return\"rgba\"!==e&&\"hsva\"!==e&&\"hsla\"!==e||(n+=\",\"+t[3]),e+\"(\"+n+\")\"}}var en=(Object.freeze||Object)({parse:je,lift:Ze,toHex:Ue,fastLerp:Xe,fastMapToColor:qe,lerp:Ke,mapToColor:Qe,modifyHSL:Je,modifyAlpha:$e,stringify:tn}),nn=Array.prototype.slice;function rn(t,e){return t[e]}function on(t,e,n){t[e]=n}function an(t,e,n){return(e-t)*n+t}function sn(t,e,n){return n>.5?e:t}function ln(t,e,n,i,r){var o=t.length;if(1===r)for(var a=0;ar)t.length=r;else for(var o=i;o=0&&!(g[n]<=e);n--);n=Math.min(n,u-2)}else{for(n=T;ne);n++);n=Math.min(n-1,u-2)}T=n,C=e;var i=g[n+1]-g[n];if(0!==i)if(M=(e-g[n])/i,l)if(I=m[n],S=m[0===n?n:n-1],A=m[n>u-2?u-1:n+1],D=m[n>u-3?u-1:n+2],c)cn(S,I,A,D,M,M*M,M*M*M,a(t,r),p);else{if(d)o=cn(S,I,A,D,M,M*M,M*M*M,L,1),o=pn(L);else{if(f)return sn(I,A,M);o=dn(S,I,A,D,M,M*M,M*M*M)}s(t,r,o)}else if(c)ln(m[n],m[n+1],M,a(t,r),p);else{var o;if(d)ln(m[n],m[n+1],M,L,1),o=pn(L);else{if(f)return sn(m[n],m[n+1],M);o=an(m[n],m[n+1],M)}s(t,r,o)}},ondestroy:n});return e&&\"spline\"!==e&&(k.easing=e),k}}}var mn=function(t,e,n,i){this._tracks={},this._target=t,this._loop=e||!1,this._getter=n||rn,this._setter=i||on,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};mn.prototype={when:function(t,e){var n=this._tracks;for(var i in e)if(e.hasOwnProperty(i)){if(!n[i]){n[i]=[];var r=this._getter(this._target,i);if(null==r)continue;0!==t&&n[i].push({time:0,value:fn(r)})}n[i].push({time:t,value:e[i]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;t0&&e.animate(n,!1).when(null==o?500:o,l).delay(a||0)}(t,\"\",t,e,n,i,s);var l=t.animators.slice(),u=l.length;function h(){--u||o&&o()}u||o&&o();for(var c=0;c=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},clone:function(){return new Pn(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},Pn.create=function(t){return new Pn(t.x,t.y,t.width,t.height)};var On=function(t){for(var e in t=t||{},Sn.call(this,t),t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};On.prototype={constructor:On,isGroup:!0,type:\"group\",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,n=0;n=0&&(n.splice(i,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,n=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof On&&t.addChildrenToStorage(e)),n&&n.refresh()},remove:function(t){var e=this.__zr,n=this.__storage,i=this._children,r=N(i,t);return r<0?this:(i.splice(r,1),t.parent=null,n&&(n.delFromStorage(t),t instanceof On&&t.delChildrenFromStorage(n)),e&&e.refresh(),this)},removeAll:function(){var t,e,n=this._children,i=this.__storage;for(e=0;e=0;)r++;return r-e}function Rn(t,e,n,i,r){for(i===e&&i++;i>>1])<0?l=o:s=o+1;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(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Bn(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function Vn(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function Fn(t,e){var n,i,r=En,o=0,a=[];function s(s){var l=n[s],u=i[s],h=n[s+1],c=i[s+1];i[s]=u+c,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var d=Vn(t[h],t,l,u,0,e);l+=d,0!=(u-=d)&&0!==(c=Bn(t[l+u-1],t,h,c,c-1,e))&&(u<=c?function(n,i,o,s){var l=0;for(l=0;l=En||f>=En);if(p)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l=0;l--)t[f+l]=t[d+l];if(0===i){v=!0;break}}if(t[c--]=a[h--],1==--s){v=!0;break}if(0!=(m=s-Bn(t[u],a,0,s,s-1,e))){for(s-=m,f=1+(c-=m),d=1+(h-=m),l=0;l=En||m>=En);if(v)break;p<0&&(p=0),p+=2}if((r=p)<1&&(r=1),1===s){for(f=1+(c-=i),d=1+(u-=i),l=i-1;l>=0;l--)t[f+l]=t[d+l];t[c]=a[h]}else{if(0===s)throw new Error;for(d=c-(s-1),l=0;l=0;l--)t[f+l]=t[d+l];t[c]=a[h]}else for(d=c-(s-1),l=0;l1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]i[t+1])break;s(t)}},this.forceMergeRuns=function(){for(;o>1;){var t=o-2;t>0&&i[t-1]=Nn;)e|=1&t,t>>=1;return t+e}(r);do{if((o=zn(t,n,i,e))s&&(l=s),Rn(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}function Wn(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Hn=function(){this._roots=[],this._displayList=[],this._displayListLen=0};Hn.prototype={constructor:Hn,traverse:function(t,e){for(var n=0;n=0&&(this.delFromStorage(t),this._roots.splice(r,1),t instanceof On&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:Wn};var jn={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1},Yn=function(t,e,n){return jn.hasOwnProperty(e)?n*t.dpr:n},Zn={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},Un=9,Xn=[[\"shadowBlur\",0],[\"shadowOffsetX\",0],[\"shadowOffsetY\",0],[\"shadowColor\",\"#000\"],[\"lineCap\",\"butt\"],[\"lineJoin\",\"miter\"],[\"miterLimit\",10]],qn=function(t){this.extendFrom(t,!1)};function Kn(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=isNaN(i)?0:i,r=isNaN(r)?1:r,o=isNaN(o)?0:o,a=isNaN(a)?0:a,t.createLinearGradient(i,o,r,a)}function Qn(t,e,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*i+n.x,s=s*r+n.y,l*=o),t.createRadialGradient(a,s,0,a,s,l)}qn.prototype={constructor:qn,fill:\"#000\",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:\"#000\",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:\"inside\",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:\"transparent\",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:\"transparent\",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(t,e,n){var i=n&&n.style,r=!i||t.__attrCachedBy!==Zn.STYLE_BIND;t.__attrCachedBy=Zn.STYLE_BIND;for(var o=0;o0},extendFrom:function(t,e){if(t)for(var n in t)!t.hasOwnProperty(n)||!0!==e&&(!1===e?this.hasOwnProperty(n):null==t[n])||(this[n]=t[n])},set:function(t,e){\"string\"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,n){for(var i=(\"radial\"===e.type?Qn:Kn)(t,e,n),r=e.colorStops,o=0;ofi&&(di=0,ci={}),di++,ci[n]=r,r}function yi(t,e,n,i,r,o,a,s){return a?function(t,e,n,i,r,o,a,s){var l=Ci(t,{rich:a,truncate:s,font:e,textAlign:n,textPadding:r,textLineHeight:o}),u=l.outerWidth,h=l.outerHeight,c=xi(0,u,n),d=_i(0,h,i);return new Pn(c,d,u,h)}(t,e,n,i,r,a,o,s):function(t,e,n,i,r,o,a){var s=Ti(t,e,r,o,a),l=vi(t,e);r&&(l+=r[1]+r[3]);var u=s.outerHeight,h=xi(0,l,n),c=_i(0,u,i),d=new Pn(h,c,l,u);return d.lineHeight=s.lineHeight,d}(t,e,n,i,r,o,s)}function xi(t,e,n){return\"right\"===n?t-=e:\"center\"===n&&(t-=e/2),t}function _i(t,e,n){return\"middle\"===n?t-=e/2:\"bottom\"===n&&(t-=e),t}function bi(t,e,n){var i=e.x,r=e.y,o=e.height,a=e.width,s=o/2,l=\"left\",u=\"top\";switch(t){case\"left\":i-=n,r+=s,l=\"right\",u=\"middle\";break;case\"right\":i+=n+a,r+=s,u=\"middle\";break;case\"top\":i+=a/2,r-=n,l=\"center\",u=\"bottom\";break;case\"bottom\":i+=a/2,r+=o+n,l=\"center\";break;case\"inside\":i+=a/2,r+=s,l=\"center\",u=\"middle\";break;case\"insideLeft\":i+=n,r+=s,u=\"middle\";break;case\"insideRight\":i+=a-n,r+=s,l=\"right\",u=\"middle\";break;case\"insideTop\":i+=a/2,r+=n,l=\"center\";break;case\"insideBottom\":i+=a/2,r+=o-n,l=\"center\",u=\"bottom\";break;case\"insideTopLeft\":i+=n,r+=n;break;case\"insideTopRight\":i+=a-n,r+=n,l=\"right\";break;case\"insideBottomLeft\":i+=n,r+=o-n,u=\"bottom\";break;case\"insideBottomRight\":i+=a-n,r+=o-n,l=\"right\",u=\"bottom\"}return{x:i,y:r,textAlign:l,textVerticalAlign:u}}function wi(t,e,n,i,r){if(!e)return\"\";var o=(t+\"\").split(\"\\n\");r=Mi(e,n,i,r);for(var a=0,s=o.length;a=o;s++)a-=o;var l=vi(n,e);return l>a&&(n=\"\",l=0),a=t-l,i.ellipsis=n,i.ellipsisWidth=l,i.contentWidth=a,i.containerWidth=t,i}function Si(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return\"\";var o=vi(t,i);if(o<=n)return t;for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Ii(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;o=vi(t=t.substr(0,s),i)}return\"\"===t&&(t=e.placeholder),t}function Ii(t,e,n,i){for(var r=0,o=0,a=t.length;ou)t=\"\",a=[];else if(null!=h)for(var c=Mi(h-(n?n[1]+n[3]:0),e,r.ellipsis,{minChar:r.minChar,placeholder:r.placeholder}),d=0,f=a.length;dr&&Li(n,t.substring(r,o)),Li(n,i[2],i[1]),r=pi.lastIndex}rf)return{lines:[],width:0,height:0};C.textWidth=vi(C.text,b);var M=x.textWidth,S=null==M||\"auto\"===M;if(\"string\"==typeof M&&\"%\"===M.charAt(M.length-1))C.percentWidth=M,u.push(C),M=0;else{if(S){M=C.textWidth;var I=x.textBackgroundColor,A=I&&I.image;A&&hi(A=si(A))&&(M=Math.max(M,A.width*w/A.height))}var D=_?_[1]+_[3]:0;M+=D;var T=null!=d?d-v:null;null!=T&&Tu&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>h&&(i*=h/(a=i+r),r*=h/a),n+o>h&&(n*=h/(a=n+o),o*=h/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+h-r),0!==r&&t.arc(s+u-r,l+h-r,r,0,Math.PI/2),t.lineTo(s+o,l+h),0!==o&&t.arc(s+o,l+h-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}mi.measureText=function(t,e){var n=O();return n.font=e||gi,n.measureText(t)};var Oi=gi,Ni={left:1,right:1,center:1},Ei={top:1,bottom:1,middle:1},zi=[[\"textShadowBlur\",\"shadowBlur\",0],[\"textShadowOffsetX\",\"shadowOffsetX\",0],[\"textShadowOffsetY\",\"shadowOffsetY\",0],[\"textShadowColor\",\"shadowColor\",\"transparent\"]];function Ri(t){return Bi(t),B(t.rich,Bi),t}function Bi(t){if(t){t.font=ki(t);var e=t.textAlign;\"middle\"===e&&(e=\"center\"),t.textAlign=null==e||Ni[e]?e:\"left\";var n=t.textVerticalAlign||t.textBaseline;\"center\"===n&&(n=\"middle\"),t.textVerticalAlign=null==n||Ei[n]?n:\"top\",t.textPadding&&(t.textPadding=it(t.textPadding))}}function Vi(t,e,n,i,r,o){i.rich?function(t,e,n,i,r,o){o!==Un&&(e.__attrCachedBy=Zn.NONE);var a=t.__textCotentBlock;a&&!t.__dirtyText||(a=t.__textCotentBlock=Ci(n,i)),function(t,e,n,i,r){var o=n.width,a=n.outerWidth,s=n.outerHeight,l=i.textPadding,u=Yi(0,i,r),h=u.baseX,c=u.baseY,d=u.textAlign,f=u.textVerticalAlign;Fi(e,i,r,h,c);var p=xi(h,a,d),g=_i(c,s,f),m=p,v=g;l&&(m+=l[3],v+=l[0]);var y=m+o;Wi(i)&&Hi(t,e,i,p,g,a,s);for(var x=0;x=0&&\"right\"===(_=w[C]).textAlign;)Gi(t,e,_,i,S,v,T,\"right\"),I-=_.width,T-=_.width,C--;for(D+=(o-(D-m)-(y-T)-I)/2;A<=C;)_=w[A],Gi(t,e,_,i,S,v,D+_.width/2,\"center\"),D+=_.width,A++;v+=S}}(t,e,a,i,r)}(t,e,n,i,r,o):function(t,e,n,i,r,o){var a,s=Wi(i),l=!1,u=e.__attrCachedBy===Zn.PLAIN_TEXT;o!==Un?(o&&(a=o.style,l=!s&&u&&a),e.__attrCachedBy=s?Zn.NONE:Zn.PLAIN_TEXT):u&&(e.__attrCachedBy=Zn.NONE);var h=i.font||Oi;l&&h===(a.font||Oi)||(e.font=h);var c=t.__computedFont;t.__styleFont!==h&&(t.__styleFont=h,c=t.__computedFont=e.font);var d=i.textPadding,f=i.textLineHeight,p=t.__textCotentBlock;p&&!t.__dirtyText||(p=t.__textCotentBlock=Ti(n,c,d,f,i.truncate));var g=p.outerHeight,m=p.lines,v=p.lineHeight,y=Yi(0,i,r),x=y.baseX,_=y.baseY,b=y.textAlign||\"left\",w=y.textVerticalAlign;Fi(e,i,r,x,_);var M=_i(_,g,w),S=x,I=M;if(s||d){var A=vi(n,c);d&&(A+=d[1]+d[3]);var D=xi(x,A,b);s&&Hi(t,e,i,D,M,A,g),d&&(S=Ki(x,b,d),I+=d[0])}e.textAlign=b,e.textBaseline=\"middle\",e.globalAlpha=i.opacity||1;for(var T=0;T=0?parseFloat(t)/100*e:parseFloat(t):t}function Ki(t,e,n){return\"right\"===e?t-n[1]:\"center\"===e?t+n[3]/2-n[1]/2:t+n[3]}function Qi(t,e){return null!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)}var Ji=new Pn,$i=function(){};function tr(t){for(var e in t=t||{},Sn.call(this,t),t)t.hasOwnProperty(e)&&\"style\"!==e&&(this[e]=t[e]);this.style=new qn(t.style,this),this._rect=null,this.__clipPaths=[]}function er(t){tr.call(this,t)}function nr(t){return parseInt(t,10)}$i.prototype={constructor:$i,drawRectText:function(t,e){var n=this.style;e=n.textRect||e,this.__dirty&&Ri(n);var i=n.text;if(null!=i&&(i+=\"\"),Qi(i,n)){t.save();var r=this.transform;n.transformText?this.setTransform(t):r&&(Ji.copy(e),Ji.applyTransform(r),e=Ji),Vi(this,t,i,n,e,Un),t.restore()}}},tr.prototype={constructor:tr,type:\"displayable\",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:\"pointer\",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(t){},afterBrush:function(t){},brush:function(t,e){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate(\"style\",t)},attrKV:function(t,e){\"style\"!==t?Sn.prototype.attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new qn(t,this),this.dirty(!1),this}},E(tr,Sn),z(tr,$i),er.prototype={constructor:er,type:\"image\",brush:function(t,e){var n=this.style,i=n.image;n.bind(t,this,e);var r=this._image=li(i,this._image,this,this.onload);if(r&&hi(r)){var o=n.x||0,a=n.y||0,s=n.width,l=n.height,u=r.width/r.height;if(null==s&&null!=l?s=l*u:null==l&&null!=s?l=s/u:null==s&&null==l&&(s=r.width,l=r.height),this.setTransform(t),n.sWidth&&n.sHeight){var h=n.sx||0,c=n.sy||0;t.drawImage(r,h,c,n.sWidth,n.sHeight,o,a,s,l)}else if(n.sx&&n.sy){var d=s-(h=n.sx),f=l-(c=n.sy);t.drawImage(r,h,c,d,f,o,a,s,l)}else t.drawImage(r,o,a,s,l);null!=n.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new Pn(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},E(er,tr);var ir=new Pn(0,0,0,0),rr=new Pn(0,0,0,0),or=function(t,e,n){this.type=\"canvas\";var i=!t.nodeName||\"CANVAS\"===t.nodeName.toUpperCase();this._opts=n=C({},n||{}),this.dpr=n.devicePixelRatio||yn,this._singleCanvas=i,this.root=t;var r=t.style;r&&(r[\"-webkit-tap-highlight-color\"]=\"transparent\",r[\"-webkit-user-select\"]=r[\"user-select\"]=r[\"-webkit-touch-callout\"]=\"none\",t.innerHTML=\"\"),this.storage=e;var o=this._zlevelList=[],a=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,i){var s=t.width,l=t.height;null!=n.width&&(s=n.width),null!=n.height&&(l=n.height),this.dpr=n.devicePixelRatio||1,t.width=s*this.dpr,t.height=l*this.dpr,this._width=s,this._height=l;var u=new ri(t,this,this.dpr);u.__builtin__=!0,u.initContext(),a[314159]=u,u.zlevel=314159,o.push(314159),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var h=this._domRoot=function(t,e){var n=document.createElement(\"div\");return n.style.cssText=[\"position:relative\",\"overflow:hidden\",\"width:\"+t+\"px\",\"height:\"+e+\"px\",\"padding:0\",\"margin:0\",\"border-width:0\"].join(\";\")+\";\",n}(this._width,this._height);t.appendChild(h)}this._hoverlayer=null,this._hoverElements=[]};or.prototype={constructor:or,getType:function(){return\"canvas\"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(t){var e=this.storage.getDisplayList(!0),n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,t,this._redrawId);for(var i=0;i=0&&n.splice(i,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,n=0;n15)break}s.__drawIndex=m,s.__drawIndex0&&t>i[0]){for(a=0;at);a++);o=n[i[a]]}if(i.splice(a+1,0,t),n[t]=e,!e.virtual)if(o){var l=o.dom;l.nextSibling?s.insertBefore(e.dom,l.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)}else _n(\"Layer of zlevel \"+t+\" is not valid\")},eachLayer:function(t,e){var n,i,r=this._zlevelList;for(i=0;i0?.01:0),this._needsManuallyCompositing),a.__builtin__||_n(\"ZLevel \"+s+\" has been used by unkown layer \"+a.id),a!==i&&(a.__used=!0,a.__startIndex!==n&&(a.__dirty=!0),a.__startIndex=n,a.incremental?a.__drawIndex=-1:a.__drawIndex=n,e(n),i=a),o.__dirty&&(a.__dirty=!0,a.incremental&&a.__drawIndex<0&&(a.__drawIndex=n))}e(n),this.eachBuiltinLayer(function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},setBackgroundColor:function(t){this._backgroundColor=t},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=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),n=0;n=n.length&&n.push({option:t})}}),n}function Nr(t){var e=ht();Ir(t,function(t,n){var i=t.exist;i&&e.set(i.id,t)}),Ir(t,function(t,n){var i=t.option;rt(!i||null==i.id||!e.get(i.id)||e.get(i.id)===t,\"id duplicates: \"+(i&&i.id)),i&&null!=i.id&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})}),Ir(t,function(t,n){var i=t.exist,r=t.option,o=t.keyInfo;if(Ar(r)){if(o.name=null!=r.name?r.name+\"\":i?i.name:Tr+n,i)o.id=i.id;else if(null!=r.id)o.id=r.id+\"\";else{var a=0;do{o.id=\"\\0\"+o.name+\"\\0\"+a++}while(e.get(o.id))}e.set(o.id,t)}})}function Er(t){var e=t.name;return!(!e||!e.indexOf(Tr))}function zr(t){return Ar(t)&&t.id&&0===(t.id+\"\").indexOf(\"\\0_ec_\\0\")}function Rr(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?Y(e.dataIndex)?V(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?Y(e.name)?V(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function Br(){var t=\"__\\0ec_inner_\"+Vr+++\"_\"+Math.random().toFixed(5);return function(e){return e[t]||(e[t]={})}}var Vr=0;function Fr(t,e,n){if(U(e)){var i={};i[e+\"Index\"]=0,e=i}var r=n&&n.defaultMainType;!r||Gr(e,r+\"Index\")||Gr(e,r+\"Id\")||Gr(e,r+\"Name\")||(e[r+\"Index\"]=0);var o={};return Ir(e,function(i,r){if(i=e[r],\"dataIndex\"!==r&&\"dataIndexInside\"!==r){var a=r.match(/^(\\w+)(Index|Id|Name)$/)||[],s=a[1],l=(a[2]||\"\").toLowerCase();if(!(!s||!l||null==i||\"index\"===l&&\"none\"===i||n&&n.includeMainTypes&&N(n.includeMainTypes,s)<0)){var u={mainType:s};\"index\"===l&&\"all\"===i||(u[l]=i);var h=t.queryComponents(u);o[s+\"Models\"]=h,o[s+\"Model\"]=h[0]}}else o[r]=i}),o}function Gr(t,e){return t&&t.hasOwnProperty(e)}function Wr(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Hr(t){return\"auto\"===t?p.domSupported?\"html\":\"richText\":t||\"html\"}var jr=\".\",Yr=\"___EC__COMPONENT__CONTAINER___\";function Zr(t){var e={main:\"\",sub:\"\"};return t&&(t=t.split(jr),e.main=t[0]||\"\",e.sub=t[1]||\"\"),e}function Ur(t,e){t.$constructor=t,t.extend=function(t){c&&B(e,function(e){t[e]||console.warn(\"Method `\"+e+\"` should be implemented\"+(t.type?\" in \"+t.type:\"\")+\".\")});var n=this,i=function(){t.$constructor?t.$constructor.apply(this,arguments):n.apply(this,arguments)};return C(i.prototype,t),i.extend=this.extend,i.superCall=Kr,i.superApply=Qr,E(i,this),i.superClass=n,i}}var Xr=0;function qr(t){var e=[\"__\\0is_clz\",Xr++,Math.random().toFixed(3)].join(\"_\");t.prototype[e]=!0,c&&rt(!t.isInstance,'The method \"is\" can not be defined.'),t.isInstance=function(t){return!(!t||!t[e])}}function Kr(t,e){var n=nt(arguments,2);return this.superClass.prototype[e].apply(t,n)}function Qr(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Jr(t,e){e=e||{};var n={};if(t.registerClass=function(t,e){return e&&(function(t){rt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType \"'+t+'\" illegal')}(e),(e=Zr(e)).sub?e.sub!==Yr&&((function(t){var e=n[t.main];return e&&e[Yr]||((e=n[t.main]={})[Yr]=!0),e}(e))[e.sub]=t):(c&&n[e.main]&&console.warn(e.main+\" exists.\"),n[e.main]=t)),t},t.getClass=function(t,e,i){var r=n[t];if(r&&r[Yr]&&(r=e?r[e]:null),i&&!r)throw new Error(e?\"Component \"+t+\".\"+(e||\"\")+\" not exists. Load it first.\":t+\".type should be specified.\");return r},t.getClassesByMainType=function(t){t=Zr(t);var e=[],i=n[t.main];return i&&i[Yr]?B(i,function(t,n){n!==Yr&&e.push(t)}):e.push(i),e},t.hasClass=function(t){return t=Zr(t),!!n[t.main]},t.getAllClassMainTypes=function(){var t=[];return B(n,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){t=Zr(t);var e=n[t.main];return e&&e[Yr]},t.parseClassType=Zr,e.registerWhenExtend){var i=t.extend;i&&(t.extend=function(e){var n=i.call(this,e);return t.registerClass(n,e.type)})}return t}var $r=function(t){for(var e=0;e=0||i&&N(i,a)<0)){var s=e.getShallow(a);null!=s&&(r[t[o][0]]=s)}}return r}},to=$r([[\"lineWidth\",\"width\"],[\"stroke\",\"color\"],[\"opacity\"],[\"shadowBlur\"],[\"shadowOffsetX\"],[\"shadowOffsetY\"],[\"shadowColor\"]]),eo={getLineStyle:function(t){var e=to(this,t),n=this.getLineDash(e.lineWidth);return n&&(e.lineDash=n),e},getLineDash:function(t){null==t&&(t=1);var e=this.get(\"type\"),n=Math.max(t,2),i=4*t;return\"solid\"===e||null==e?null:\"dashed\"===e?[i,i]:[n,n]}},no=$r([[\"fill\",\"color\"],[\"shadowBlur\"],[\"shadowOffsetX\"],[\"shadowOffsetY\"],[\"opacity\"],[\"shadowColor\"]]),io={getAreaStyle:function(t,e){return no(this,t,e)}},ro=Math.pow,oo=Math.sqrt,ao=1e-8,so=1e-4,lo=oo(3),uo=1/3,ho=gt(),co=gt(),fo=gt();function po(t){return t>-ao&&tao||t<-ao}function mo(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 vo(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function yo(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(po(a))go(o)&&(h=-s/o)>=0&&h<=1&&(r[l++]=h);else{var u=o*o-4*a*s;if(po(u))r[0]=-o/(2*a);else if(u>0){var h,c=oo(u),d=(-o-c)/(2*a);(h=(-o+c)/(2*a))>=0&&h<=1&&(r[l++]=h),d>=0&&d<=1&&(r[l++]=d)}}return l}function xo(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function _o(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function bo(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function wo(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function Mo(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}var So=Math.min,Io=Math.max,Ao=Math.sin,Do=Math.cos,To=2*Math.PI,Co=gt(),Lo=gt(),ko=gt();function Po(t,e,n){if(0!==t.length){var i,r=t[0],o=r[0],a=r[0],s=r[1],l=r[1];for(i=1;i1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(Co[0]=Do(r)*n+t,Co[1]=Ao(r)*i+e,Lo[0]=Do(o)*n+t,Lo[1]=Ao(o)*i+e,u(s,Co,Lo),h(l,Co,Lo),(r%=To)<0&&(r+=To),(o%=To)<0&&(o+=To),r>o&&!a?o+=To:rr&&(ko[0]=Do(f)*n+t,ko[1]=Ao(f)*i+e,u(s,ko,s),h(l,ko,l))}var Vo={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Fo=[],Go=[],Wo=[],Ho=[],jo=Math.min,Yo=Math.max,Zo=Math.cos,Uo=Math.sin,Xo=Math.sqrt,qo=Math.abs,Ko=\"undefined\"!=typeof Float32Array,Qo=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};function Jo(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>e+s&&a>i+s||at+s&&o>n+s||oe+c&&h>i+c&&h>o+c&&h>s+c||ht+c&&u>n+c&&u>r+c&&u>a+c||u=0&&pe+u&&l>i+u&&l>o+u||lt+u&&s>n+u&&s>r+u||s=0&&mthis._ux||qo(e-this._yi)>this._uy||this._len<5;return this.addData(Vo.L,t,e),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,n,i,r,o){return this.addData(Vo.C,t,e,n,i,r,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,i,r,o):this._ctx.bezierCurveTo(t,e,n,i,r,o)),this._xi=r,this._yi=o,this},quadraticCurveTo:function(t,e,n,i){return this.addData(Vo.Q,t,e,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},arc:function(t,e,n,i,r,o){return this.addData(Vo.A,t,e,n,n,i,r-i,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=Zo(r)*n+t,this._yi=Uo(r)*n+e,this},arcTo:function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},rect:function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Vo.R,t,e,n,i),this},closePath:function(){this.addData(Vo.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;ne.length&&(this._expandData(),e=this.data);for(var n=0;n0&&f<=t||h<0&&f>=t||0===h&&(c>0&&p<=e||c<0&&p>=e);)f+=h*(n=a[i=this._dashIdx]),p+=c*n,this._dashIdx=(i+1)%g,h>0&&fl||c>0&&pu||s[i%2?\"moveTo\":\"lineTo\"](h>=0?jo(f,t):Yo(f,t),c>=0?jo(p,e):Yo(p,e));h=f-t,c=p-e,this._dashOffset=-Xo(h*h+c*c)},_dashedBezierTo:function(t,e,n,i,r,o){var a,s,l,u,h,c=this._dashSum,d=this._dashOffset,f=this._lineDash,p=this._ctx,g=this._xi,m=this._yi,v=mo,y=0,x=this._dashIdx,_=f.length,b=0;for(d<0&&(d=c+d),d%=c,a=0;a<1;a+=.1)s=v(g,t,n,r,a+.1)-v(g,t,n,r,a),l=v(m,e,i,o,a+.1)-v(m,e,i,o,a),y+=Xo(s*s+l*l);for(;x<_&&!((b+=f[x])>d);x++);for(a=(b-d)/y;a<=1;)u=v(g,t,n,r,a),h=v(m,e,i,o,a),x%2?p.moveTo(u,h):p.lineTo(u,h),a+=f[x]/y,x=(x+1)%_;x%2!=0&&p.lineTo(r,o),s=r-u,l=o-h,this._dashOffset=-Xo(s*s+l*l)},_dashedQuadraticTo:function(t,e,n,i){var r=n,o=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,r,o)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,Ko&&(this.data=new Float32Array(t)))},getBoundingRect:function(){Fo[0]=Fo[1]=Wo[0]=Wo[1]=Number.MAX_VALUE,Go[0]=Go[1]=Ho[0]=Ho[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,n=0,i=0,r=0,o=0;ol||qo(a-r)>u||c===h-1)&&(t.lineTo(o,a),i=o,r=a);break;case Vo.C:t.bezierCurveTo(s[c++],s[c++],s[c++],s[c++],s[c++],s[c++]),i=s[c-2],r=s[c-1];break;case Vo.Q:t.quadraticCurveTo(s[c++],s[c++],s[c++],s[c++]),i=s[c-2],r=s[c-1];break;case Vo.A:var f=s[c++],p=s[c++],g=s[c++],m=s[c++],v=s[c++],y=s[c++],x=s[c++],_=s[c++],b=g>m?g:m,w=g>m?1:g/m,M=g>m?m/g:1,S=v+y;Math.abs(g-m)>.001?(t.translate(f,p),t.rotate(x),t.scale(w,M),t.arc(0,0,b,v,S,1-_),t.scale(1/w,1/M),t.rotate(-x),t.translate(-f,-p)):t.arc(f,p,b,v,S,1-_),1===c&&(e=Zo(v)*g+f,n=Uo(v)*m+p),i=Zo(S)*g+f,r=Uo(S)*m+p;break;case Vo.R:e=i=s[c],n=r=s[c+1],t.rect(s[c++],s[c++],s[c++],s[c++]);break;case Vo.Z:t.closePath(),i=e,r=n}}}},Qo.CMD=Vo;var ea=2*Math.PI;function na(t){return(t%=ea)<0&&(t+=ea),t}var ia=2*Math.PI;function ra(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var h=Math.sqrt(s*s+l*l);if(h-u>n||h+ur&&(r+=ia);var d=Math.atan2(l,s);return d<0&&(d+=ia),d>=i&&d<=r||d+ia>=i&&d+ia<=r}function oa(t,e,n,i,r,o){if(o>e&&o>i||or?a:0}var aa=Qo.CMD,sa=2*Math.PI,la=1e-4,ua=[-1,-1,-1],ha=[-1,-1];function ca(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u=0&&S<=1&&(o[f++]=S);else{var p=c*c-4*h*d;if(po(p)){var g=c/h,m=-g/2;(S=-s/a+g)>=0&&S<=1&&(o[f++]=S),m>=0&&m<=1&&(o[f++]=m)}else if(p>0){var v=oo(p),y=h*s+1.5*a*(-c+v),x=h*s+1.5*a*(-c-v);(S=(-s-((y=y<0?-ro(-y,uo):ro(y,uo))+(x=x<0?-ro(-x,uo):ro(x,uo))))/(3*a))>=0&&S<=1&&(o[f++]=S)}else{var _=(2*h*s-3*a*c)/(2*oo(h*h*h)),b=Math.acos(_)/3,w=oo(h),M=Math.cos(b),S=(-s-2*w*M)/(3*a),I=(m=(-s+w*(M+lo*Math.sin(b)))/(3*a),(-s+w*(M-lo*Math.sin(b)))/(3*a));S>=0&&S<=1&&(o[f++]=S),m>=0&&m<=1&&(o[f++]=m),I>=0&&I<=1&&(o[f++]=I)}}return f}(e,i,o,s,u,ua);if(0===c)return 0;for(var d,f,p=0,g=-1,m=0;m1&&(h=void 0,h=ha[0],ha[0]=ha[1],ha[1]=h),d=mo(e,i,o,s,ha[0]),g>1&&(f=mo(e,i,o,s,ha[1]))),2===g?ve&&s>i&&s>o||s=0&&h<=1&&(r[l++]=h);else{var u=a*a-4*o*s;if(po(u))(h=-a/(2*o))>=0&&h<=1&&(r[l++]=h);else if(u>0){var h,c=oo(u),d=(-a-c)/(2*o);(h=(-a+c)/(2*o))>=0&&h<=1&&(r[l++]=h),d>=0&&d<=1&&(r[l++]=d)}}return l}(e,i,o,s,ua);if(0===l)return 0;var u=wo(e,i,o);if(u>=0&&u<=1){for(var h=0,c=_o(e,i,o,u),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);ua[0]=-l,ua[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u%sa<1e-4){i=0,r=sa;var h=o?1:-1;return a>=ua[0]+t&&a<=ua[1]+t?h:0}o?(l=i,i=na(r),r=na(l)):(i=na(i),r=na(r)),i>r&&(r+=sa);for(var c=0,d=0;d<2;d++){var f=ua[d];if(f+t>a){var p=Math.atan2(s,f);h=o?1:-1,p<0&&(p=sa+p),(p>=i&&p<=r||p+sa>=i&&p+sa<=r)&&(p>Math.PI/2&&p<1.5*Math.PI&&(h=-h),c+=h)}}return c}function pa(t,e,n,i,r){for(var o,a,s=0,l=0,u=0,h=0,c=0,d=0;d1&&(n||(s+=oa(l,u,h,c,i,r))),1===d&&(h=l=t[d],c=u=t[d+1]),f){case aa.M:l=h=t[d++],u=c=t[d++];break;case aa.L:if(n){if(Jo(l,u,t[d],t[d+1],e,i,r))return!0}else s+=oa(l,u,t[d],t[d+1],i,r)||0;l=t[d++],u=t[d++];break;case aa.C:if(n){if($o(l,u,t[d++],t[d++],t[d++],t[d++],t[d],t[d+1],e,i,r))return!0}else s+=ca(l,u,t[d++],t[d++],t[d++],t[d++],t[d],t[d+1],i,r)||0;l=t[d++],u=t[d++];break;case aa.Q:if(n){if(ta(l,u,t[d++],t[d++],t[d],t[d+1],e,i,r))return!0}else s+=da(l,u,t[d++],t[d++],t[d],t[d+1],i,r)||0;l=t[d++],u=t[d++];break;case aa.A:var p=t[d++],g=t[d++],m=t[d++],v=t[d++],y=t[d++],x=t[d++];d+=1;var _=1-t[d++],b=Math.cos(y)*m+p,w=Math.sin(y)*v+g;d>1?s+=oa(l,u,b,w,i,r):(h=b,c=w);var M=(i-p)*v/m+p;if(n){if(ra(p,g,v,y,y+x,_,e,M,r))return!0}else s+=fa(p,g,v,y,y+x,_,M,r);l=Math.cos(y+x)*m+p,u=Math.sin(y+x)*v+g;break;case aa.R:if(h=l=t[d++],c=u=t[d++],b=h+t[d++],w=c+t[d++],n){if(Jo(h,c,b,c,e,i,r)||Jo(b,c,b,w,e,i,r)||Jo(b,w,h,w,e,i,r)||Jo(h,w,h,c,e,i,r))return!0}else s+=oa(b,c,b,w,i,r),s+=oa(h,w,h,c,i,r);break;case aa.Z:if(n){if(Jo(l,u,h,c,e,i,r))return!0}else s+=oa(l,u,h,c,i,r);l=h,u=c}}return n||(o=u,a=c,Math.abs(o-a)1e-10&&(r.width+=o/a,r.height+=o/a,r.x-=o/a/2,r.y-=o/a/2)}return r}return t},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)){var o=this.path.data;if(r.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(r.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return pa(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(r.hasFill())return function(t,e,n){return pa(t,0,!1,e,n)}(o,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate(\"shape\",t)},attrKV:function(t,e){\"shape\"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):tr.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var n=this.shape;if(n){if(X(t))for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);else n[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&ma(t[0]-1)>1e-10&&ma(t[3]-1)>1e-10?Math.sqrt(ma(t[0]*t[3]-t[2]*t[1])):1}},ya.extend=function(t){var e=function(e){ya.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var i=this.shape;for(var r in n)!i.hasOwnProperty(r)&&n.hasOwnProperty(r)&&(i[r]=n[r])}t.init&&t.init.call(this,e)};for(var n in E(e,ya),t)\"style\"!==n&&\"shape\"!==n&&(e.prototype[n]=t[n]);return e},E(ya,tr);var xa=Qo.CMD,_a=[[],[],[]],ba=Math.sqrt,wa=Math.atan2,Ma=function(t,e){var n,i,r,o,a,s=t.data,l=xa.M,u=xa.C,h=xa.L,c=xa.R,d=xa.A,f=xa.Q;for(r=0,o=0;r1&&(a*=Sa(p),s*=Sa(p));var g=(r===o?-1:1)*Sa((a*a*(s*s)-a*a*(f*f)-s*s*(d*d))/(a*a*(f*f)+s*s*(d*d)))||0,m=g*a*f/s,v=g*-s*d/a,y=(t+n)/2+Aa(c)*m-Ia(c)*v,x=(e+i)/2+Ia(c)*m+Aa(c)*v,_=La([1,0],[(d-m)/a,(f-v)/s]),b=[(d-m)/a,(f-v)/s],w=[(-1*d-m)/a,(-1*f-v)/s],M=La(b,w);Ca(b,w)<=-1&&(M=Da),Ca(b,w)>=1&&(M=0),0===o&&M>0&&(M-=2*Da),1===o&&M<0&&(M+=2*Da),h.addData(u,y,x,a,s,_,M,c,o)}var Pa=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Oa=/-?([0-9]*\\.)?[0-9]+([eE]-?[0-9]+)?/g;function Na(t,e){var n=function(t){if(!t)return new Qo;for(var e,n=0,i=0,r=n,o=i,a=new Qo,s=Qo.CMD,l=t.match(Pa),u=0;u=11?function(){var e,n=this.__clipPaths,i=this.style;if(n)for(var r=0;rn-2?n-1:c+1],u=t[c>n-3?n-1:c+2]);var p=d*d,g=d*p;i.push([Wa(s[0],f[0],l[0],u[0],d,p,g),Wa(s[1],f[1],l[1],u[1],d,p,g)])}return i},ja=function(t,e,n,i){var r,o,a,s,l=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=t.length;d=2){if(r&&\"spline\"!==r){var o=ja(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],h=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{\"spline\"===r&&(i=Ha(i,n)),t.moveTo(i[0][0],i[0][1]),s=1;for(var c=i.length;s=0)?(n={textFill:null,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth},t.textFill=\"#fff\",null==t.textStroke&&(t.textStroke=o,null==t.textStrokeWidth&&(t.textStrokeWidth=2))):null!=o&&(n={textFill:null},t.textFill=o),n&&(t.insideRollback=n)}}function Ks(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function Qs(t,e){var n=e||e.getModel(\"textStyle\");return ot([t.fontStyle||n&&n.getShallow(\"fontStyle\")||\"\",t.fontWeight||n&&n.getShallow(\"fontWeight\")||\"\",(t.fontSize||n&&n.getShallow(\"fontSize\")||12)+\"px\",t.fontFamily||n&&n.getShallow(\"fontFamily\")||\"sans-serif\"].join(\" \"))}function Js(t,e,n,i,r,o){if(\"function\"==typeof r&&(o=r,r=null),i&&i.isAnimationEnabled()){var a=t?\"Update\":\"\",s=i.getShallow(\"animationDuration\"+a),l=i.getShallow(\"animationEasing\"+a),u=i.getShallow(\"animationDelay\"+a);\"function\"==typeof u&&(u=u(r,i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null)),\"function\"==typeof s&&(s=s(r)),s>0?e.animateTo(n,s,u||0,l,o,!!o):(e.stopAnimation(),e.attr(n),o&&o())}else e.stopAnimation(),e.attr(n),o&&o()}function $s(t,e,n,i,r){Js(!0,t,e,n,i,r)}function tl(t,e,n,i,r){Js(!1,t,e,n,i,r)}function el(t,e){for(var n=le([]);t&&t!==e;)he(n,t.getLocalTransform(),n),t=t.parent;return n}function nl(t,e,n){return e&&!R(e)&&(e=_e.getLocalTransform(e)),n&&(e=pe([],e)),Ot([],t,e)}function il(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=[\"left\"===t?-i:\"right\"===t?i:0,\"top\"===t?-r:\"bottom\"===t?r:0];return o=nl(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?\"right\":\"left\":o[1]>0?\"bottom\":\"top\"}function rl(t,e,n,i){if(t&&e){var r,o=(r={},t.traverse(function(t){!t.isGroup&&t.anid&&(r[t.anid]=t)}),r);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=o[t.anid];if(e){var i=a(t);t.attr(a(e)),$s(t,i,n,t.dataIndex)}}})}function a(t){var e={position:vt(t.position),rotation:t.rotation};return t.shape&&(e.shape=C({},t.shape)),e}}function ol(t,e){return V(t,function(t){var n=t[0];n=ds(n,e.x),n=fs(n,e.x+e.width);var i=t[1];return i=ds(i,e.y),[n,i=fs(i,e.y+e.height)]})}function al(t,e,n){var i=(e=C({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),L(i,n),new er(e)):bs(t.replace(\"path://\",\"\"),e,n,\"center\")}var sl=(Object.freeze||Object)({Z2_EMPHASIS_LIFT:gs,extendShape:_s,extendPath:function(t,e){return function(t,e){return ya.extend(Na(t,e))}(t,e)},makePath:bs,makeImage:ws,mergePath:Ss,resizePath:Is,subPixelOptimizeLine:function(t){return qa(t.shape,t.shape,t.style),t},subPixelOptimizeRect:function(t){return Ka(t.shape,t.shape,t.style),t},subPixelOptimize:As,setElementHoverStyle:Ns,setHoverStyle:Fs,setAsHighDownDispatcher:Gs,isHighDownDispatcher:Ws,getHighlightDigit:Hs,setLabelStyle:js,setTextStyle:Ys,setText:function(t,e,n){var i,r={isRectText:!0};!1===n?i=!0:r.autoColor=n,Zs(t,e,r,i)},getFont:Qs,updateProps:$s,initProps:tl,getTransform:el,applyTransform:nl,transformDirection:il,groupTransition:rl,clipPointsByRect:ol,clipRectByRect:function(t,e){var n=ds(t.x,e.x),i=fs(t.x+t.width,e.x+e.width),r=ds(t.y,e.y),o=fs(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}},createIcon:al,Group:On,Image:er,Text:za,Circle:Ra,Sector:Fa,Ring:Ga,Polygon:Za,Polyline:Ua,Rect:$a,Line:es,BezierCurve:rs,Arc:os,IncrementalDisplayable:hs,CompoundPath:as,LinearGradient:ls,RadialGradient:us,BoundingRect:Pn}),ll=[\"textStyle\",\"color\"],ul={getTextColor:function(t){var e=this.ecModel;return this.getShallow(\"color\")||(!t&&e?e.get(ll):null)},getFont:function(){return Qs({fontStyle:this.getShallow(\"fontStyle\"),fontWeight:this.getShallow(\"fontWeight\"),fontSize:this.getShallow(\"fontSize\"),fontFamily:this.getShallow(\"fontFamily\")},this.ecModel)},getTextRect:function(t){return yi(t,this.getFont(),this.getShallow(\"align\"),this.getShallow(\"verticalAlign\")||this.getShallow(\"baseline\"),this.getShallow(\"padding\"),this.getShallow(\"rich\"),this.getShallow(\"truncateText\"))}},hl=$r([[\"fill\",\"color\"],[\"stroke\",\"borderColor\"],[\"lineWidth\",\"borderWidth\"],[\"opacity\"],[\"shadowBlur\"],[\"shadowOffsetX\"],[\"shadowOffsetY\"],[\"shadowColor\"],[\"textPosition\"],[\"textAlign\"]]),cl={getItemStyle:function(t,e){var n=hl(this,t,e),i=this.getBorderLineDash();return i&&(n.lineDash=i),n},getBorderLineDash:function(){var t=this.get(\"borderType\");return\"solid\"===t||null==t?null:\"dashed\"===t?[5,5]:[1,1]}},dl=z,fl=Br();function pl(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function gl(t,e,n){for(var i=0;i0){if(t<=e[0])return n[0];if(t>=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/r*o+n[0]}function bl(t,e){switch(t){case\"center\":case\"middle\":t=\"50%\";break;case\"left\":case\"top\":t=\"0%\";break;case\"right\":case\"bottom\":t=\"100%\"}return\"string\"==typeof t?(n=t,n.replace(/^\\s+/,\"\").replace(/\\s+$/,\"\")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function wl(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function Ml(t){return t.sort(function(t,e){return t-e}),t}function Sl(t){if(t=+t,isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}function Il(t){var e=t.toString(),n=e.indexOf(\"e\");if(n>0){var i=+e.slice(n+1);return i<0?-i:0}var r=e.indexOf(\".\");return r<0?0:e.length-1-r}function Al(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function Dl(t,e,n){if(!t[e])return 0;var i=F(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return 0;for(var r=Math.pow(10,n),o=V(t,function(t){return(isNaN(t)?0:t)/i*r*100}),a=100*r,s=V(o,function(t){return Math.floor(t)}),l=F(s,function(t,e){return t+e},0),u=V(o,function(t,e){return t-s[e]});lh&&(h=u[d],c=d);++s[c],u[c]=0,++l}return s[e]/r}var Tl=9007199254740991;function Cl(t){var e=2*Math.PI;return(t%e+e)%e}function Ll(t){return t>-xl&&t=-20?+t.toFixed(n<0?-n:0):t}function zl(t){t.sort(function(t,e){return function t(e,n,i){return e.interval[i]=0}var Bl=(Object.freeze||Object)({linearMap:_l,parsePercent:bl,round:wl,asc:Ml,getPrecision:Sl,getPrecisionSafe:Il,getPixelPrecision:Al,getPercentWithPrecision:Dl,MAX_SAFE_INTEGER:Tl,remRadian:Cl,isRadianAroundZero:Ll,parseDate:Pl,quantity:Ol,nice:El,quantile:function(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r},reformIntervals:zl,isNumeric:Rl});function Vl(t){return isNaN(t)?\"-\":(t=(t+\"\").split(\".\"))[0].replace(/(\\d{1,3})(?=(?:\\d{3})+(?!\\d))/g,\"$1,\")+(t.length>1?\".\"+t[1]:\"\")}function Fl(t,e){return t=(t||\"\").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Gl=it,Wl=/([&<>\"'])/g,Hl={\"&\":\"&\",\"<\":\"<\",\">\":\">\",'\"':\""\",\"'\":\"'\"};function jl(t){return null==t?\"\":(t+\"\").replace(Wl,function(t,e){return Hl[e]})}var Yl=[\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\"],Zl=function(t,e){return\"{\"+t+(null==e?\"\":e)+\"}\"};function Ul(t,e,n){Y(e)||(e=[e]);var i=e.length;if(!i)return\"\";for(var r=e[0].$vars||[],o=0;o':'':{renderMode:r,content:\"{marker\"+o+\"|} \",style:{color:n}}:\"\"}function Kl(t,e){return\"0000\".substr(0,e-(t+=\"\").length)+t}function Ql(t,e,n){\"week\"!==t&&\"month\"!==t&&\"quarter\"!==t&&\"half-year\"!==t&&\"year\"!==t||(t=\"MM-dd\\nyyyy\");var i=Pl(e),r=n?\"UTC\":\"\",o=i[\"get\"+r+\"FullYear\"](),a=i[\"get\"+r+\"Month\"]()+1,s=i[\"get\"+r+\"Date\"](),l=i[\"get\"+r+\"Hours\"](),u=i[\"get\"+r+\"Minutes\"](),h=i[\"get\"+r+\"Seconds\"](),c=i[\"get\"+r+\"Milliseconds\"]();return t=t.replace(\"MM\",Kl(a,2)).replace(\"M\",a).replace(\"yyyy\",o).replace(\"yy\",o%100).replace(\"dd\",Kl(s,2)).replace(\"d\",s).replace(\"hh\",Kl(l,2)).replace(\"h\",l).replace(\"mm\",Kl(u,2)).replace(\"m\",u).replace(\"ss\",Kl(h,2)).replace(\"s\",h).replace(\"SSS\",Kl(c,3))}function Jl(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}var $l=wi,tu=yi,eu=(Object.freeze||Object)({addCommas:Vl,toCamelCase:Fl,normalizeCssArray:Gl,encodeHTML:jl,formatTpl:Ul,formatTplSimple:Xl,getTooltipMarker:ql,formatTime:Ql,capitalFirst:Jl,truncateText:$l,getTextRect:tu}),nu=B,iu=[\"left\",\"right\",\"top\",\"bottom\",\"width\",\"height\"],ru=[[\"width\",\"left\",\"right\"],[\"height\",\"top\",\"bottom\"]];function ou(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var h,c,d=l.position,f=l.getBoundingRect(),p=e.childAt(u+1),g=p&&p.getBoundingRect();if(\"horizontal\"===t){var m=f.width+(g?-g.x+f.x:0);(h=o+m)>i||l.newline?(o=0,h=m,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(g?-g.y+f.y:0);(c=a+v)>r||l.newline?(o+=s+n,a=0,c=v,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=o,d[1]=a,\"horizontal\"===t?o=h+n:a=c+n)})}var au=ou;function su(t,e,n){n=Gl(n||0);var i=e.width,r=e.height,o=bl(t.left,i),a=bl(t.top,r),s=bl(t.right,i),l=bl(t.bottom,r),u=bl(t.width,i),h=bl(t.height,r),c=n[2]+n[0],d=n[1]+n[3],f=t.aspect;switch(isNaN(u)&&(u=i-s-d-o),isNaN(h)&&(h=r-l-c-a),null!=f&&(isNaN(u)&&isNaN(h)&&(f>i/r?u=.8*i:h=.8*r),isNaN(u)&&(u=f*h),isNaN(h)&&(h=u/f)),isNaN(o)&&(o=i-s-u-d),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-d}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-d-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var p=new Pn(o+n[3],a+n[0],u,h);return p.margin=n,p}function lu(t,e,n,i,r){var o=!r||!r.hv||r.hv[0],a=!r||!r.hv||r.hv[1],s=r&&r.boundingMode||\"all\";if(o||a){var l;if(\"raw\"===s)l=\"group\"===t.type?new Pn(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var u=t.getLocalTransform();(l=l.clone()).applyTransform(u)}e=su(L({width:l.width,height:l.height},e),n,i);var h=t.position,c=o?e.x-l.x:0,d=a?e.y-l.y:0;t.attr(\"position\",\"raw\"===s?[c,d]:[h[0]+c,h[1]+d])}}function uu(t,e,n){!X(n)&&(n={});var i=n.ignoreSize;!Y(i)&&(i=[i,i]);var r=a(ru[0],0),o=a(ru[1],1);function a(n,r){var o={},a=0,u={},h=0;if(nu(n,function(e){u[e]=t[e]}),nu(n,function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&h++}),i[r])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(2!==h&&a){if(a>=2)return o;for(var c=0;c=0;o--)r=D(r,e[o],!0);t.defaultOption=r}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+\"Index\",!0),id:this.get(t+\"Id\",!0)})}});Jr(gu,{registerWhenExtend:!0}),fu={},(du=gu).registerSubTypeDefaulter=function(t,e){t=Zr(t),fu[t.main]=e},du.determineSubType=function(t,e){var n=e.type;if(!n){var i=Zr(t).main;du.hasSubTypes(t)&&fu[i]&&(n=fu[i](e))}return n},function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,i,r,o){if(t.length){var a=function(t){var i={},r=[];return B(t,function(o){var a=n(i,o),s=function(t,e){var n=[];return B(t,function(t){N(e,t)>=0&&n.push(t)}),n}(a.originalDeps=e(o),t);a.entryCount=s.length,0===a.entryCount&&r.push(o),B(s,function(t){N(a.predecessor,t)<0&&a.predecessor.push(t);var e=n(i,t);N(e.successor,t)<0&&e.successor.push(o)})}),{graph:i,noEntryList:r}}(i),s=a.graph,l=a.noEntryList,u={};for(B(t,function(t){u[t]=!0});l.length;){var h=l.pop(),c=s[h],d=!!u[h];d&&(r.call(o,h,c.originalDeps.slice()),delete u[h]),B(c.successor,d?p:f)}B(u,function(){throw new Error(\"Circle dependency may exists\")})}function f(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function p(t){u[t]=!0,f(t)}}}(gu,function(t){var e=[];return B(gu.getClassesByMainType(t),function(t){e=e.concat(t.prototype.dependencies||[])}),e=V(e,function(t){return Zr(t).main}),\"dataset\"!==t&&N(e,\"dataset\")<=0&&e.unshift(\"dataset\"),e}),z(gu,{getBoxLayoutParams:function(){return{left:this.get(\"left\"),top:this.get(\"top\"),right:this.get(\"right\"),bottom:this.get(\"bottom\"),width:this.get(\"width\"),height:this.get(\"height\")}}});var mu=\"\";\"undefined\"!=typeof navigator&&(mu=navigator.platform||\"\");var vu={color:[\"#c23531\",\"#2f4554\",\"#61a0a8\",\"#d48265\",\"#91c7ae\",\"#749f83\",\"#ca8622\",\"#bda29a\",\"#6e7074\",\"#546570\",\"#c4ccd3\"],gradientColor:[\"#f6efa6\",\"#d88273\",\"#bf444c\"],textStyle:{fontFamily:mu.match(/^Win/)?\"Microsoft YaHei\":\"sans-serif\",fontSize:12,fontStyle:\"normal\",fontWeight:\"normal\"},blendMode:null,animation:\"auto\",animationDuration:1e3,animationDurationUpdate:300,animationEasing:\"exponentialOut\",animationEasingUpdate:\"cubicOut\",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},yu=Br(),xu={clearColorPalette:function(){yu(this).colorIdx=0,yu(this).colorNameMap={}},getColorFromPalette:function(t,e,n){var i=yu(e=e||this),r=i.colorIdx||0,o=i.colorNameMap=i.colorNameMap||{};if(o.hasOwnProperty(t))return o[t];var a=Cr(this.get(\"color\",!0)),s=this.get(\"colorLayer\",!0),l=null!=n&&s?function(t,e){for(var n=t.length,i=0;ie)return t[i];return t[n-1]}(s,n):a;if((l=l||a)&&l.length){var u=l[r];return t&&(o[t]=u),i.colorIdx=(r+1)%l.length,u}}};function _u(t){var e=t.get(\"coordinateSystem\"),n={coordSysName:e,coordSysDims:[],axisMap:ht(),categoryAxisMap:ht()},i=bu[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}var bu={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents(\"xAxis\")[0],o=t.getReferringComponents(\"yAxis\")[0];if(c){if(!r)throw new Error('xAxis \"'+$(t.get(\"xAxisIndex\"),t.get(\"xAxisId\"),0)+'\" not found');if(!o)throw new Error('yAxis \"'+$(t.get(\"xAxisIndex\"),t.get(\"yAxisId\"),0)+'\" not found')}e.coordSysDims=[\"x\",\"y\"],n.set(\"x\",r),n.set(\"y\",o),wu(r)&&(i.set(\"x\",r),e.firstCategoryDimIndex=0),wu(o)&&(i.set(\"y\",o),e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){var r=t.getReferringComponents(\"singleAxis\")[0];if(c&&!r)throw new Error(\"singleAxis should be specified.\");e.coordSysDims=[\"single\"],n.set(\"single\",r),wu(r)&&(i.set(\"single\",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents(\"polar\")[0],o=r.findAxisModel(\"radiusAxis\"),a=r.findAxisModel(\"angleAxis\");if(c){if(!a)throw new Error(\"angleAxis option not found\");if(!o)throw new Error(\"radiusAxis option not found\")}e.coordSysDims=[\"radius\",\"angle\"],n.set(\"radius\",o),n.set(\"angle\",a),wu(o)&&(i.set(\"radius\",o),e.firstCategoryDimIndex=0),wu(a)&&(i.set(\"angle\",a),e.firstCategoryDimIndex=1)},geo:function(t,e,n,i){e.coordSysDims=[\"lng\",\"lat\"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent(\"parallel\",t.get(\"parallelIndex\")),a=e.coordSysDims=o.dimensions.slice();B(o.parallelAxisIndex,function(t,o){var s=r.getComponent(\"parallelAxis\",t),l=a[o];n.set(l,s),wu(s)&&null==e.firstCategoryDimIndex&&(i.set(l,s),e.firstCategoryDimIndex=o)})}};function wu(t){return\"category\"===t.get(\"type\")}var Mu=\"original\",Su=\"arrayRows\",Iu=\"objectRows\",Au=\"keyedColumns\",Du=\"unknown\",Tu=\"typedArray\",Cu=\"column\",Lu=\"row\";function ku(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===Au?{}:[]),this.sourceFormat=t.sourceFormat||Du,this.seriesLayoutBy=t.seriesLayoutBy||Cu,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&ht(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}ku.seriesDataToSource=function(t){return new ku({data:t,sourceFormat:K(t)?Tu:Mu,fromDataset:!1})},qr(ku);var Pu=Br();function Ou(t){var e=t.option,n=e.data,i=K(n)?Tu:Mu,r=!1,o=e.seriesLayoutBy,a=e.sourceHeader,s=e.dimensions,l=function(t){var e=t.option;if(!e.data)return t.ecModel.getComponent(\"dataset\",e.datasetIndex||0)}(t);if(l){var u=l.option;n=u.source,i=Pu(l).sourceFormat,r=!0,o=o||u.seriesLayoutBy,null==a&&(a=u.sourceHeader),s=s||u.dimensions}var h=function(t,e,n,i,r){if(!t)return{dimensionsDefine:Nu(r)};var o,a,s,l;if(e===Su)\"auto\"===i||null==i?Eu(function(t){null!=t&&\"-\"!==t&&(U(t)?null==a&&(a=1):a=0)},n,t,10):a=i?1:0,r||1!==a||(r=[],Eu(function(t,e){r[e]=null!=t?t:\"\"},n,t)),o=r?r.length:n===Lu?t.length:t[0]?t[0].length:null;else if(e===Iu)r||(r=function(t){for(var e,n=0;n=0;i--)zr(e[i])&&e.splice(i,1);t[n]=e}}),delete t[Bu],t},getTheme:function(){return this._theme},getComponent:function(t,e){var n=this._componentsMap.get(t);if(n)return n[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,o=t.name,a=this._componentsMap.get(e);if(!a||!a.length)return[];if(null!=i)Y(i)||(i=[i]),n=G(V(i,function(t){return a[t]}),function(t){return!!t});else if(null!=r){var s=Y(r);n=G(a,function(t){return s&&N(r,t.id)>=0||!s&&t.id===r})}else if(null!=o){var l=Y(o);n=G(a,function(t){return l&&N(o,t.name)>=0||!l&&t.name===o})}else n=a.slice();return Wu(n,t)},findComponents:function(t){var e,n,i,r,o,a=t.query,s=t.mainType,l=(n=s+\"Index\",i=s+\"Id\",r=s+\"Name\",!(e=a)||null==e[n]&&null==e[i]&&null==e[r]?null:{mainType:s,index:e[n],id:e[i],name:e[r]}),u=l?this.queryComponents(l):this._componentsMap.get(s);return o=Wu(u,t),t.filter?G(o,t.filter):o},eachComponent:function(t,e,n){var i=this._componentsMap;\"function\"==typeof t?(n=e,e=t,i.each(function(t,i){B(t,function(t,r){e.call(n,i,t,r)})})):U(t)?B(i.get(t),e,n):X(t)&&B(this.findComponents(t),e,n)},getSeriesByName:function(t){return G(this._componentsMap.get(\"series\"),function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.get(\"series\")[t]},getSeriesByType:function(t){return G(this._componentsMap.get(\"series\"),function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.get(\"series\").slice()},getSeriesCount:function(){return this._componentsMap.get(\"series\").length},eachSeries:function(t,e){Hu(this),B(this._seriesIndices,function(n){var i=this._componentsMap.get(\"series\")[n];t.call(e,i,n)},this)},eachRawSeries:function(t,e){B(this._componentsMap.get(\"series\"),t,e)},eachSeriesByType:function(t,e,n){Hu(this),B(this._seriesIndices,function(i){var r=this._componentsMap.get(\"series\")[i];r.subType===t&&e.call(n,r,i)},this)},eachRawSeriesByType:function(t,e,n){return B(this.getSeriesByType(t),e,n)},isSeriesFiltered:function(t){return Hu(this),null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){Hu(this),Gu(this,G(this._componentsMap.get(\"series\"),t,e))},restoreData:function(t){var e=this._componentsMap;Gu(this,e.get(\"series\"));var n=[];e.each(function(t,e){n.push(e)}),gu.topologicalTravel(n,gu.getAllClassMainTypes(),function(n,i){B(e.get(n),function(e){(\"series\"!==n||!function(t,e){if(e){var n=e.seiresIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}(e,t))&&e.restoreData()})})}});function Fu(t){t=t,this.option={},this.option[Bu]=1,this._componentsMap=ht({series:[]}),this._seriesIndices,this._seriesIndicesMap,function(t,e){var n=t.color&&!t.colorLayer;B(e,function(e,i){\"colorLayer\"===i&&n||gu.hasClass(i)||(\"object\"===l(e)?t[i]=t[i]?D(t[i],e,!1):A(e):null==t[i]&&(t[i]=e))})}(t,this._theme.option),D(t,vu,!1),this.mergeOption(t)}function Gu(t,e){t._seriesIndicesMap=ht(t._seriesIndices=V(e,function(t){return t.componentIndex})||[])}function Wu(t,e){return e.hasOwnProperty(\"subType\")?G(t,function(t){return t.subType===e.subType}):t}function Hu(t){if(c&&!t._seriesIndices)throw new Error(\"Option should contains series.\")}z(Vu,xu);var ju=[\"getDom\",\"getZr\",\"getWidth\",\"getHeight\",\"getDevicePixelRatio\",\"dispatchAction\",\"isDisposed\",\"on\",\"off\",\"getDataURL\",\"getConnectedDataURL\",\"getModel\",\"getOption\",\"getViewOfComponentModel\",\"getViewOfSeriesModel\"];function Yu(t){B(ju,function(e){this[e]=H(t[e],t)},this)}var Zu={};function Uu(){this._coordinateSystems=[]}Uu.prototype={constructor:Uu,create:function(t,e){var n=[];B(Zu,function(i,r){var o=i.create(t,e);n=n.concat(o||[])}),this._coordinateSystems=n},update:function(t,e){B(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},Uu.register=function(t,e){Zu[t]=e},Uu.get=function(t){return Zu[t]};var Xu=B,qu=A,Ku=V,Qu=D,Ju=/^(min|max)?(.+)$/;function $u(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function th(t,e,n){var i,r,o=[],a=[],s=t.timeline;if(t.baseOption&&(r=t.baseOption),(s||t.options)&&(r=r||{},o=(t.options||[]).slice()),t.media){r=r||{};var l=t.media;Xu(l,function(t){t&&t.option&&(t.query?a.push(t):i||(i=t))})}return r||(r=t),r.timeline||(r.timeline=s),Xu([r].concat(o).concat(V(a,function(t){return t.option})),function(t){Xu(e,function(e){e(t,n)})}),{baseOption:r,timelineOptions:o,mediaDefault:i,mediaList:a}}function eh(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return B(t,function(t,e){var n=e.match(Ju);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(t,e,n){return\"min\"===n?t>=e:\"max\"===n?t<=e:t===e})(i[a],t,o)||(r=!1)}}),r}$u.prototype={constructor:$u,setOption:function(t,e){t&&B(Cr(t.series),function(t){t&&t.data&&K(t.data)&&st(t.data)}),t=qu(t);var n,i,r=this._optionBackup,o=th.call(this,t,e,!r);this._newBaseOption=o.baseOption,r?(n=r.baseOption,i=o.baseOption,Xu(i=i||{},function(t,e){if(null!=t){var i=n[e];if(gu.hasClass(e)){t=Cr(t);var r=Or(i=Cr(i),t);n[e]=Ku(r,function(t){return t.option&&t.exist?Qu(t.exist,t.option,!0):t.exist||t.option})}else n[e]=Qu(i,t,!0)}}),o.timelineOptions.length&&(r.timelineOptions=o.timelineOptions),o.mediaList.length&&(r.mediaList=o.mediaList),o.mediaDefault&&(r.mediaDefault=o.mediaDefault)):this._optionBackup=o},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=Ku(e.timelineOptions,qu),this._mediaList=Ku(e.mediaList,qu),this._mediaDefault=qu(e.mediaDefault),this._currentMediaIndices=[],qu(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent(\"timeline\");i&&(e=qu(n[i.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e,n,i=this._api.getWidth(),r=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,h=o.length;u=0;p--){var g=t[p];if(s||(c=g.data.rawIndexOf(g.stackedByDimension,h)),c>=0){var m=g.data.getByRawIndex(g.stackResultDimension,c);if(d>=0&&m>0||d<=0&&m<0){d+=m,f=m;break}}}return i[0]=d,i[1]=f,i});a.hostModel.setData(l),e.data=l})}function yh(t,e){ku.isInstance(t)||(t=ku.seriesDataToSource(t)),this._source=t;var n=this._data=t.data,i=t.sourceFormat;if(i===Tu){if(c&&null==e)throw new Error(\"Typed array data must specify dimension size\");this._offset=0,this._dimSize=e,this._data=n}var r=_h[i===Su?i+\"_\"+t.seriesLayoutBy:i];c&&rt(r,\"Invalide sourceFormat: \"+i),C(this,r)}var xh=yh.prototype;xh.pure=!1,xh.persistent=!0,xh.getSource=function(){return this._source};var _h={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(t){return this._data[t+this._source.startIndex]},appendData:Mh},arrayRows_row:{pure:!0,count:function(){var t=this._data[0];return t?Math.max(0,t.length-this._source.startIndex):0},getItem:function(t){t+=this._source.startIndex;for(var e=[],n=this._data,i=0;i=1)&&(t=1),t}a===l&&s===u||(e=\"reset\"),(this._dirty||\"reset\"===e)&&(this._dirty=!1,o=function(t,e){var n,i;t._dueIndex=t._outputDueEnd=t._dueEnd=0,t._settedOutputEnd=null,!e&&t._reset&&((n=t._reset(t.context))&&n.progress&&(i=n.forceFirstProgress,n=n.progress),Y(n)&&!n.length&&(n=null)),t._progress=n,t._modBy=t._modDataCount=null;var r=t._downstream;return r&&r.dirty(),i}(this,i)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(n?(c&&rt(null!=n._outputDueEnd),this._dueEnd=n._outputDueEnd):(c&&rt(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var f=this._dueIndex,p=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!i&&(o||f=this._outputDueEnd),this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var zh=function(){var t,e,n,i,r,o={reset:function(l,u,h,c){e=l,t=u,n=h,i=c,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return e=t?null:o\":\"\\n\",a=\"richText\"===i,s={},l=0;function u(t){return{renderMode:i,content:jl(Vl(t)),style:s}}var h=this.getData(),c=h.mapDimension(\"defaultedTooltip\",!0),d=c.length,f=this.getRawValue(t),p=Y(f),g=h.getItemVisual(t,\"color\");X(g)&&g.colorStops&&(g=(g.colorStops[0]||{}).color),g=g||\"transparent\";var m=(d>1||p&&!d?function(n){var o=F(n,function(t,e,n){var i=h.getDimensionInfo(n);return t|(i&&!1!==i.tooltip&&null!=i.displayName)},0),u=[];function d(t,n){var c=h.getDimensionInfo(n);if(c&&!1!==c.otherDims.tooltip){var d=c.type,f=\"sub\"+r.seriesIndex+\"at\"+l,p=ql({color:g,type:\"subItem\",renderMode:i,markerId:f}),m=\"string\"==typeof p?p:p.content,v=(o?m+jl(c.displayName||\"-\")+\": \":\"\")+jl(\"ordinal\"===d?t+\"\":\"time\"===d?e?\"\":Ql(\"yyyy/MM/dd hh:mm:ss\",t):Vl(t));v&&u.push(v),a&&(s[f]=g,++l)}}c.length?B(c,function(e){d(Ch(h,t,e),e)}):B(n,d);var f=o?a?\"\\n\":\"
\":\"\",p=f+u.join(f||\", \");return{renderMode:i,content:p,style:s}}(f):u(d?Ch(h,t,c[0]):p?f[0]:f)).content,v=r.seriesIndex+\"at\"+l,y=ql({color:g,type:\"item\",renderMode:i,markerId:v});s[v]=g,++l;var x=h.getName(t),_=this.name;Er(this)||(_=\"\"),_=_?jl(_)+(e?\": \":o):\"\";var b=\"string\"==typeof y?y:y.content;return{html:e?b+_+m:_+b+(x?jl(x)+\": \"+m:m),markers:s}},isAnimationEnabled:function(){if(p.node)return!1;var t=this.getShallow(\"animation\");return t&&this.getData().count()>this.getShallow(\"animationThreshold\")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,n){var i=this.ecModel,r=xu.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get(\"progressive\")},getProgressiveThreshold:function(){return this.get(\"progressiveThreshold\")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function Fh(t){var e=t.name;Er(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimension(\"seriesName\",!0),i=[];return B(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(\" \")}(t)||e)}function Gh(t){return t.model.getRawData().count()}function Wh(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Hh}function Hh(t,e){t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function jh(t,e){B(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,j(Yh,e))})}function Yh(t){var e=Zh(t);e&&e.setOutputEnd(this.count())}function Zh(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}z(Vh,Ph),z(Vh,xu);var Uh=function(){this.group=new On,this.uid=yl(\"viewComponent\")};Uh.prototype={constructor:Uh,init:function(t,e){},render:function(t,e,n,i){},dispose:function(){},filterForExposedEvent:null};var Xh=Uh.prototype;Xh.updateView=Xh.updateLayout=Xh.updateVisual=function(t,e,n,i){},Ur(Uh),Jr(Uh,{registerWhenExtend:!0});var qh=function(){var t=Br();return function(e){var n=t(e),i=e.pipelineContext,r=n.large,o=n.progressiveRender,a=n.large=i.large,s=n.progressiveRender=i.progressiveRender;return!!(r^a||o^s)&&\"reset\"}},Kh=Br(),Qh=qh();function Jh(){this.group=new On,this.uid=yl(\"viewChart\"),this.renderTask=Oh({plan:nc,reset:ic}),this.renderTask.context={view:this}}Jh.prototype={type:\"chart\",init:function(t,e){},render:function(t,e,n,i){},highlight:function(t,e,n,i){ec(t.getData(),i,\"emphasis\")},downplay:function(t,e,n,i){ec(t.getData(),i,\"normal\")},remove:function(t,e){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var $h=Jh.prototype;function tc(t,e,n){if(t&&(t.trigger(e,n),t.isGroup&&!Ws(t)))for(var i=0,r=t.childCount();i=0?c():h=setTimeout(c,-r),l=i};return d.clear=function(){h&&(clearTimeout(h),h=null)},d.debounceNextCall=function(t){s=t},d}function uc(t,e,n,i){var r=t[e];if(r){var o=r[oc]||r,a=r[sc];if(r[ac]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=lc(o,n,\"debounce\"===i))[oc]=o,r[sc]=i,r[ac]=n}return r}}function hc(t,e){var n=t[e];n&&n[oc]&&(t[e]=n[oc])}var cc={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=(t.visualColorAccessPath||\"itemStyle.color\").split(\".\"),r=t.get(i)||t.getColorFromPalette(t.name,null,e.getSeriesCount());if(n.setVisual(\"color\",r),!e.isSeriesFiltered(t))return\"function\"!=typeof r||r instanceof ss||n.each(function(e){n.setItemVisual(e,\"color\",r(t.getDataParams(e)))}),{dataEach:n.hasItemOption?function(t,e){var n=t.getItemModel(e).get(i,!0);null!=n&&t.setItemVisual(e,\"color\",n)}:null}}},dc={toolbox:{brush:{title:{rect:\"矩形选择\",polygon:\"圈选\",lineX:\"横向选择\",lineY:\"纵向选择\",keep:\"保持选择\",clear:\"清除选择\"}},dataView:{title:\"数据视图\",lang:[\"数据视图\",\"关闭\",\"刷新\"]},dataZoom:{title:{zoom:\"区域缩放\",back:\"区域缩放还原\"}},magicType:{title:{line:\"切换为折线图\",bar:\"切换为柱状图\",stack:\"切换为堆叠\",tiled:\"切换为平铺\"}},restore:{title:\"还原\"},saveAsImage:{title:\"保存为图片\",lang:[\"右键另存为图片\"]}},series:{typeNames:{pie:\"饼图\",bar:\"柱状图\",line:\"折线图\",scatter:\"散点图\",effectScatter:\"涟漪散点图\",radar:\"雷达图\",tree:\"树图\",treemap:\"矩形树图\",boxplot:\"箱型图\",candlestick:\"K线图\",k:\"K线图\",heatmap:\"热力图\",map:\"地图\",parallel:\"平行坐标图\",lines:\"线图\",graph:\"关系图\",sankey:\"桑基图\",funnel:\"漏斗图\",gauge:\"仪表盘图\",pictorialBar:\"象形柱图\",themeRiver:\"主题河流图\",sunburst:\"旭日图\"}},aria:{general:{withTitle:\"这是一个关于“{title}”的图表。\",withoutTitle:\"这是一个图表,\"},series:{single:{prefix:\"\",withName:\"图表类型是{seriesType},表示{seriesName}。\",withoutName:\"图表类型是{seriesType}。\"},multiple:{prefix:\"它由{seriesCount}个图表系列组成。\",withName:\"第{seriesId}个系列是一个表示{seriesName}的{seriesType},\",withoutName:\"第{seriesId}个系列是一个{seriesType},\",separator:{middle:\";\",end:\"。\"}}},data:{allData:\"其数据是——\",partialData:\"其中,前{displayCnt}项是——\",withName:\"{name}的数据是{value}\",withoutName:\"{value}\",separator:{middle:\",\",end:\"\"}}}},fc=function(t,e){var n=e.getModel(\"aria\");if(n.get(\"show\"))if(n.get(\"description\"))t.setAttribute(\"aria-label\",n.get(\"description\"));else{var i=0;e.eachSeries(function(t,e){++i},this);var r,o=n.get(\"data.maxCount\")||10,a=n.get(\"series.maxCount\")||10,s=Math.min(i,a);if(!(i<1)){var l=function(){var t=e.getModel(\"title\").option;return t&&t.length&&(t=t[0]),t&&t.text}();r=l?h(c(\"general.withTitle\"),{title:l}):c(\"general.withoutTitle\");var u=[];r+=h(c(i>1?\"series.multiple.prefix\":\"series.single.prefix\"),{seriesCount:i}),e.eachSeries(function(t,e){if(e1?\"multiple\":\"single\")+\".\";n=h(n=c(r?a+\"withName\":a+\"withoutName\"),{seriesId:t.seriesIndex,seriesName:t.get(\"name\"),seriesType:(m=t.subType,dc.series.typeNames[m]||\"自定义图\")});var l=t.getData();window.data=l,l.count()>o?n+=h(c(\"data.partialData\"),{displayCnt:o}):n+=c(\"data.allData\");for(var d=[],f=0;fn.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},mc.getPipeline=function(t){return this._pipelineMap.get(t)},mc.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get(\"large\")&&i>=t.get(\"largeThreshold\"),a=\"mod\"===t.get(\"progressiveChunkMode\")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},mc.restorePipelines=function(t){var e=this,n=e._pipelineMap=ht();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),Tc(e,t,t.dataTask)})},mc.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),n=this.api;B(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,[]);i.reset&&function(t,e,n,i,r){var o=n.seriesTaskMap||(n.seriesTaskMap=ht()),a=e.seriesType,s=e.getTargetSeries;function l(n){var a=n.uid,s=o.get(a)||o.set(a,Oh({plan:Mc,reset:Sc,count:Dc}));s.context={model:n,ecModel:i,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},Tc(t,n,s)}e.createOnAllSeries?i.eachRawSeries(l):a?i.eachRawSeriesByType(a,l):s&&s(i,r).each(l);var u=t._pipelineMap;o.each(function(t,e){u.get(e)||(t.dispose(),o.removeKey(e))})}(this,i,r,e,n),i.overallReset&&function(t,e,n,i,r){var o=n.overallTask=n.overallTask||Oh({reset:xc});o.context={ecModel:i,api:r,overallReset:e.overallReset,scheduler:t};var a=o.agentStubMap=o.agentStubMap||ht(),s=e.seriesType,l=e.getTargetSeries,u=!0,h=e.modifyOutputEnd;function c(e){var n=e.uid,i=a.get(n);i||(i=a.set(n,Oh({reset:_c,onDirty:wc})),o.dirty()),i.context={model:e,overallProgress:u,modifyOutputEnd:h},i.agent=o,i.__block=u,Tc(t,e,i)}s?i.eachRawSeriesByType(s,c):l?l(i,r).each(c):(u=!1,B(i.getSeries(),c));var d=t._pipelineMap;a.each(function(t,e){d.get(e)||(t.dispose(),o.dirty(),a.removeKey(e))})}(this,i,r,e,n)},this)},mc.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,Tc(this,e,r)},mc.performDataProcessorTasks=function(t,e){vc(this,this._dataProcessorHandlers,t,e,{block:!0})},mc.performVisualTasks=function(t,e,n){vc(this,this._visualHandlers,t,e,n)},mc.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e|=t.dataTask.perform()}),this.unfinished|=e},mc.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})};var yc=mc.updatePayload=function(t,e){\"remain\"!==e&&(t.context.payload=e)};function xc(t){t.overallReset(t.ecModel,t.api,t.payload)}function _c(t,e){return t.overallProgress&&bc}function bc(){this.agent.dirty(),this.getDownstream().dirty()}function wc(){this.agent&&this.agent.dirty()}function Mc(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function Sc(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Cr(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?V(e,function(t,e){return Ac(e)}):Ic}var Ic=Ac(0);function Ac(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o=4&&(s={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(s&&null!=o&&null!=a&&(l=Jc(s,o,a),!e.ignoreViewBox)){var c=i;(i=new On).add(c),c.scale=l.scale.slice(),c.position=l.position.slice()}return e.ignoreRootClip||null==o||null==a||i.setClipPath(new $a({shape:{x:0,y:0,width:o,height:a}})),{root:i,width:o,height:a,viewBoxRect:s,viewBoxTransform:l}},Gc.prototype._parseNode=function(t,e){var n,i,r=t.nodeName.toLowerCase();if(\"defs\"===r?this._isDefine=!0:\"text\"===r&&(this._isText=!0),this._isDefine){if(i=Hc[r]){var o=i.call(this,t),a=t.getAttribute(\"id\");a&&(this._defs[a]=o)}}else(i=Wc[r])&&(n=i.call(this,t,e),e.add(n));for(var s=t.firstChild;s;)1===s.nodeType&&this._parseNode(s,n),3===s.nodeType&&this._isText&&this._parseText(s,n),s=s.nextSibling;\"defs\"===r?this._isDefine=!1:\"text\"===r&&(this._isText=!1)},Gc.prototype._parseText=function(t,e){if(1===t.nodeType){var n=t.getAttribute(\"dx\")||0,i=t.getAttribute(\"dy\")||0;this._textX+=parseFloat(n),this._textY+=parseFloat(i)}var r=new za({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});jc(e,r),Uc(t,r,this._defs);var o=r.style.fontSize;o&&o<9&&(r.style.fontSize=9,r.scale=r.scale||[1,1],r.scale[0]*=o/9,r.scale[1]*=o/9);var a=r.getBoundingRect();return this._textX+=a.width,e.add(r),r};var Wc={g:function(t,e){var n=new On;return jc(e,n),Uc(t,n,this._defs),n},rect:function(t,e){var n=new $a;return jc(e,n),Uc(t,n,this._defs),n.setShape({x:parseFloat(t.getAttribute(\"x\")||0),y:parseFloat(t.getAttribute(\"y\")||0),width:parseFloat(t.getAttribute(\"width\")||0),height:parseFloat(t.getAttribute(\"height\")||0)}),n},circle:function(t,e){var n=new Ra;return jc(e,n),Uc(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute(\"cx\")||0),cy:parseFloat(t.getAttribute(\"cy\")||0),r:parseFloat(t.getAttribute(\"r\")||0)}),n},line:function(t,e){var n=new es;return jc(e,n),Uc(t,n,this._defs),n.setShape({x1:parseFloat(t.getAttribute(\"x1\")||0),y1:parseFloat(t.getAttribute(\"y1\")||0),x2:parseFloat(t.getAttribute(\"x2\")||0),y2:parseFloat(t.getAttribute(\"y2\")||0)}),n},ellipse:function(t,e){var n=new Bc;return jc(e,n),Uc(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute(\"cx\")||0),cy:parseFloat(t.getAttribute(\"cy\")||0),rx:parseFloat(t.getAttribute(\"rx\")||0),ry:parseFloat(t.getAttribute(\"ry\")||0)}),n},polygon:function(t,e){var n=t.getAttribute(\"points\");n&&(n=Yc(n));var i=new Za({shape:{points:n||[]}});return jc(e,i),Uc(t,i,this._defs),i},polyline:function(t,e){var n=new ya;jc(e,n),Uc(t,n,this._defs);var i=t.getAttribute(\"points\");i&&(i=Yc(i));var r=new Ua({shape:{points:i||[]}});return r},image:function(t,e){var n=new er;return jc(e,n),Uc(t,n,this._defs),n.setStyle({image:t.getAttribute(\"xlink:href\"),x:t.getAttribute(\"x\"),y:t.getAttribute(\"y\"),width:t.getAttribute(\"width\"),height:t.getAttribute(\"height\")}),n},text:function(t,e){var n=t.getAttribute(\"x\")||0,i=t.getAttribute(\"y\")||0,r=t.getAttribute(\"dx\")||0,o=t.getAttribute(\"dy\")||0;this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new On;return jc(e,a),Uc(t,a,this._defs),a},tspan:function(t,e){var n=t.getAttribute(\"x\"),i=t.getAttribute(\"y\");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute(\"dx\")||0,o=t.getAttribute(\"dy\")||0,a=new On;return jc(e,a),Uc(t,a,this._defs),this._textX+=r,this._textY+=o,a},path:function(t,e){var n=Ea(t.getAttribute(\"d\")||\"\");return jc(e,n),Uc(t,n,this._defs),n}},Hc={lineargradient:function(t){var e=parseInt(t.getAttribute(\"x1\")||0,10),n=parseInt(t.getAttribute(\"y1\")||0,10),i=parseInt(t.getAttribute(\"x2\")||10,10),r=parseInt(t.getAttribute(\"y2\")||0,10),o=new ls(e,n,i,r);return function(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType){var i=n.getAttribute(\"offset\");i=i.indexOf(\"%\")>0?parseInt(i,10)/100:i?parseFloat(i):0;var r=n.getAttribute(\"stop-color\")||\"#000000\";e.addColorStop(i,r)}n=n.nextSibling}}(t,o),o},radialgradient:function(t){}};function jc(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),L(e.__inheritedStyle,t.__inheritedStyle))}function Yc(t){for(var e=ot(t).split(Vc),n=[],i=0;i0;o-=2){var a=r[o],s=r[o-1];switch(i=i||se(),s){case\"translate\":a=ot(a).split(Vc),ce(i,i,[parseFloat(a[0]),parseFloat(a[1]||0)]);break;case\"scale\":a=ot(a).split(Vc),fe(i,i,[parseFloat(a[0]),parseFloat(a[1]||a[0])]);break;case\"rotate\":a=ot(a).split(Vc),de(i,i,parseFloat(a[0]));break;case\"skew\":a=ot(a).split(Vc),console.warn(\"Skew transform is not supported yet\");break;case\"matrix\":a=ot(a).split(Vc),i[0]=parseFloat(a[0]),i[1]=parseFloat(a[1]),i[2]=parseFloat(a[2]),i[3]=parseFloat(a[3]),i[4]=parseFloat(a[4]),i[5]=parseFloat(a[5])}}e.setLocalTransform(i)}}(t,e),C(r,function(t){var e=t.getAttribute(\"style\"),n={};if(!e)return n;var i,r={};for(Qc.lastIndex=0;null!=(i=Qc.exec(e));)r[i[1]]=i[2];for(var o in Zc)Zc.hasOwnProperty(o)&&null!=r[o]&&(n[Zc[o]]=r[o]);return n}(t)),!i))for(var a in Zc)if(Zc.hasOwnProperty(a)){var s=t.getAttribute(a);null!=s&&(r[Zc[a]]=s)}var l=o?\"textFill\":\"fill\",u=o?\"textStroke\":\"stroke\";e.style=e.style||new qn;var h=e.style;null!=r.fill&&h.set(l,qc(r.fill,n)),null!=r.stroke&&h.set(u,qc(r.stroke,n)),B([\"lineWidth\",\"opacity\",\"fillOpacity\",\"strokeOpacity\",\"miterLimit\",\"fontSize\"],function(t){var e=\"lineWidth\"===t&&o?\"textStrokeWidth\":t;null!=r[t]&&h.set(e,parseFloat(r[t]))}),r.textBaseline&&\"auto\"!==r.textBaseline||(r.textBaseline=\"alphabetic\"),\"alphabetic\"===r.textBaseline&&(r.textBaseline=\"bottom\"),\"start\"===r.textAlign&&(r.textAlign=\"left\"),\"end\"===r.textAlign&&(r.textAlign=\"right\"),B([\"lineDashOffset\",\"lineCap\",\"lineJoin\",\"fontWeight\",\"fontFamily\",\"fontStyle\",\"textAlign\",\"textBaseline\"],function(t){null!=r[t]&&h.set(t,r[t])}),r.lineDash&&(e.style.lineDash=ot(r.lineDash).split(Vc)),h[u]&&\"none\"!==h[u]&&(e[u]=!0),e.__inheritedStyle=r}var Xc=/url\\(\\s*#(.*?)\\)/;function qc(t,e){var n=e&&t&&t.match(Xc);return n?e[ot(n[1])]:t}var Kc=/(translate|scale|rotate|skewX|skewY|matrix)\\(([\\-\\s0-9\\.e,]*)\\)/g,Qc=/([^\\s:;]+)\\s*:\\s*([^:;]+)/g;function Jc(t,e,n){var i=e/t.width,r=n/t.height,o=Math.min(i,r);return{scale:[o,o],position:[-(t.x+t.width/2)*o+e/2,-(t.y+t.height/2)*o+n/2]}}var $c=ht(),td={registerMap:function(t,e,n){var i;return Y(e)?i=e:e.svg?i=[{type:\"svg\",source:e.svg,specialAreas:e.specialAreas}]:(e.geoJson&&!e.features&&(n=e.specialAreas,e=e.geoJson),i=[{type:\"geoJSON\",source:e,specialAreas:n}]),B(i,function(t){var e=t.type;\"geoJson\"===e&&(e=t.type=\"geoJSON\");var n=ed[e];c&&rt(n,\"Illegal map type: \"+e),n(t)}),$c.set(t,i)},retrieveMap:function(t){return $c.get(t)}},ed={geoJSON:function(t){var e=t.source;t.geoJSON=U(e)?\"undefined\"!=typeof JSON&&JSON.parse?JSON.parse(e):new Function(\"return (\"+e+\");\")():e},svg:function(t){t.svgXML=Fc(t.source)}},nd=rt,id=B,rd=Z,od=X,ad=gu.parseClassType,sd=\"4.2.0\",ld={zrender:\"4.0.5\"},ud=1e3,hd=1e3,cd=3e3,dd={PROCESSOR:{FILTER:ud,STATISTIC:5e3},VISUAL:{LAYOUT:hd,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:cd,COMPONENT:4e3,BRUSH:5e3}},fd=\"__flagInMainProcess\",pd=\"__optionUpdated\",gd=/^[a-zA-Z0-9_]+$/;function md(t){return function(e,n,i){e=e&&e.toLowerCase(),Ft.prototype[t].call(this,e,n,i)}}function vd(){Ft.call(this)}function yd(t,e,i){i=i||{},\"string\"==typeof e&&(e=Wd[e]),this.id,this.group,this._dom=t;var r=\"canvas\";c&&(r=(\"undefined\"==typeof window?n:window).__ECHARTS__DEFAULT__RENDERER__||r);var o=this._zr=br(t,{renderer:i.renderer||r,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height});this._throttledZrFlush=lc(H(o.flush,o),17),(e=A(e))&&mh(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new Uu;var a,s,l=this._api=(s=(a=this)._coordSysMgr,C(new Yu(a),{getCoordinateSystems:H(s.getCoordinateSystems,s),getComponentByElement:function(t){for(;t;){var e=t.__ecComponentInfo;if(null!=e)return a._model.getComponent(e.mainType,e.index);t=t.parent}}}));function u(t,e){return t.__prio-e.__prio}Gn(Gd,u),Gn(Bd,u),this._scheduler=new gc(this,l,Bd,Gd),Ft.call(this,this._ecEventProcessor=new Ed),this._messageCenter=new vd,this._initEvents(),this.resize=H(this.resize,this),this._pendingActions=[],o.animation.on(\"frame\",this._onframe,this),function(t,e){t.on(\"rendered\",function(){e.trigger(\"rendered\"),!t.animation.isFinished()||e[pd]||e._scheduler.unfinished||e._pendingActions.length||e.trigger(\"finished\")})}(o,this),st(this)}vd.prototype.on=md(\"on\"),vd.prototype.off=md(\"off\"),vd.prototype.one=md(\"one\"),z(vd,Ft);var xd=yd.prototype;function _d(t,e,n){var i,r=this._model,o=this._coordSysMgr.getCoordinateSystems();e=Fr(r,e);for(var a=0;a0&&t.unfinished);t.unfinished||this._zr.flush()}}},xd.getDom=function(){return this._dom},xd.getZr=function(){return this._zr},xd.setOption=function(t,e,n){var i;if(c&&nd(!this[fd],\"`setOption` should not be called during main process.\"),od(e)&&(n=e.lazyUpdate,i=e.silent,e=e.notMerge),this[fd]=!0,!this._model||e){var r=new $u(this._api),o=this._theme,a=this._model=new Vu;a.scheduler=this._scheduler,a.init(null,null,o,r)}this._model.setOption(t,Vd),n?(this[pd]={silent:i},this[fd]=!1):(wd(this),bd.update.call(this),this._zr.flush(),this[pd]=!1,this[fd]=!1,Ad.call(this,i),Dd.call(this,i))},xd.setTheme=function(){console.error(\"ECharts#setTheme() is DEPRECATED in ECharts 3.0\")},xd.getModel=function(){return this._model},xd.getOption=function(){return this._model&&this._model.getOption()},xd.getWidth=function(){return this._zr.getWidth()},xd.getHeight=function(){return this._zr.getHeight()},xd.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},xd.getRenderedCanvas=function(t){if(p.canvasSupported)return(t=t||{}).pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get(\"backgroundColor\"),this._zr.painter.getRenderedCanvas(t)},xd.getSvgDataUrl=function(){if(p.svgSupported){var t=this._zr;return B(t.storage.getDisplayList(),function(t){t.stopAnimation(!0)}),t.painter.pathToDataUrl()}},xd.getDataURL=function(t){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;id(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var o=\"svg\"===this._zr.painter.getType()?this.getSvgDataUrl():this.getRenderedCanvas(t).toDataURL(\"image/\"+(t&&t.type||\"png\"));return id(i,function(t){t.group.ignore=!1}),o},xd.getConnectedDataURL=function(t){if(p.canvasSupported){var e=this.group,n=Math.min,i=Math.max;if(Yd[e]){var r=1/0,o=1/0,a=-1/0,s=-1/0,l=[],u=t&&t.pixelRatio||1;B(jd,function(u,h){if(u.group===e){var c=u.getRenderedCanvas(A(t)),d=u.getDom().getBoundingClientRect();r=n(d.left,r),o=n(d.top,o),a=i(d.right,a),s=i(d.bottom,s),l.push({dom:c,left:d.left,top:d.top})}});var h=(a*=u)-(r*=u),c=(s*=u)-(o*=u),d=P();d.width=h,d.height=c;var f=br(d);return id(l,function(t){var e=new er({style:{x:t.left*u-r,y:t.top*u-o,image:t.dom}});f.add(e)}),f.refreshImmediately(),d.toDataURL(\"image/\"+(t&&t.type||\"png\"))}return this.getDataURL(t)}},xd.convertToPixel=j(_d,\"convertToPixel\"),xd.convertFromPixel=j(_d,\"convertFromPixel\"),xd.containPixel=function(t,e){var n;return B(t=Fr(this._model,t),function(t,i){i.indexOf(\"Models\")>=0&&B(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n|=!!r.containPoint(e);else if(\"seriesModels\"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint?n|=o.containPoint(e,t):c&&console.warn(i+\": \"+(o?\"The found component do not support containPoint.\":\"No view mapping to the found component.\"))}else c&&console.warn(i+\": containPoint is not supported\")},this)},this),!!n},xd.getVisual=function(t,e){var n=(t=Fr(this._model,t,{defaultMainType:\"series\"})).seriesModel;c&&(n||console.warn(\"There is no specified seires model\"));var i=n.getData(),r=t.hasOwnProperty(\"dataIndexInside\")?t.dataIndexInside:t.hasOwnProperty(\"dataIndex\")?i.indexOfRawIndex(t.dataIndex):null;return null!=r?i.getItemVisual(r,e):i.getVisual(e)},xd.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},xd.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var bd={prepareAndUpdate:function(t){wd(this),bd.update.call(this,t)},update:function(t){var e=this._model,n=this._api,i=this._zr,r=this._coordSysMgr,o=this._scheduler;if(e){o.restoreData(e,t),o.performSeriesTasks(e),r.create(e,n),o.performDataProcessorTasks(e,t),Sd(this,e),r.update(e,n),Cd(e),o.performVisualTasks(e,t),Ld(this,e,n,t);var a=e.get(\"backgroundColor\")||\"transparent\";if(p.canvasSupported)i.setBackgroundColor(a);else{var s=je(a);a=tn(s,\"rgb\"),0===s[3]&&(a=\"transparent\")}Pd(e,n)}},updateTransform:function(t){var e=this._model,n=this,i=this._api;if(e){var r=[];e.eachComponent(function(o,a){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,e,i,t);l&&l.update&&r.push(s)}else r.push(s)});var o=ht();e.eachSeries(function(r){var a=n._chartsMap[r.__viewId];if(a.updateTransform){var s=a.updateTransform(r,e,i,t);s&&s.update&&o.set(r.uid,1)}else o.set(r.uid,1)}),Cd(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:o}),kd(n,e,0,t,o),Pd(e,this._api)}},updateView:function(t){var e=this._model;e&&(Jh.markUpdateMethod(t,\"updateView\"),Cd(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),Ld(this,this._model,this._api,t),Pd(e,this._api))},updateVisual:function(t){bd.update.call(this,t)},updateLayout:function(t){bd.update.call(this,t)}};function wd(t){var e=t._model,n=t._scheduler;n.restorePipelines(e),n.prepareStageTasks(),Td(t,\"component\",e,n),Td(t,\"chart\",e,n),n.plan()}function Md(t,e,n,i,r){var o=t._model;if(i){var a={};a[i+\"Id\"]=n[i+\"Id\"],a[i+\"Index\"]=n[i+\"Index\"],a[i+\"Name\"]=n[i+\"Name\"];var s={mainType:i,query:a};r&&(s.subType=r);var l=n.excludeSeriesId;null!=l&&(l=ht(Cr(l))),o&&o.eachComponent(s,function(e){l&&null!=l.get(e.id)||u(t[\"series\"===i?\"_chartsMap\":\"_componentsMap\"][e.__viewId])},t)}else id(t._componentsViews.concat(t._chartsViews),u);function u(i){i&&i.__alive&&i[e]&&i[e](i.__model,o,t._api,n)}}function Sd(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})}function Id(t,e){var n=t.type,i=t.escapeConnect,r=zd[n],o=r.actionInfo,a=(o.update||\"update\").split(\":\"),s=a.pop();a=null!=a[0]&&ad(a[0]),this[fd]=!0;var l=[t],u=!1;t.batch&&(u=!0,l=V(t.batch,function(e){return(e=L(C({},e),t)).batch=null,e}));var h,c=[],d=\"highlight\"===n||\"downplay\"===n;id(l,function(t){(h=(h=r.action(t,this._model,this._api))||C({},t)).type=o.event||h.type,c.push(h),d?Md(this,s,t,\"series\"):a&&Md(this,s,t,a.main,a.sub)},this),\"none\"===s||d||a||(this[pd]?(wd(this),bd.update.call(this,t),this[pd]=!1):bd[s].call(this,t)),h=u?{type:o.event||n,escapeConnect:i,batch:c}:c[0],this[fd]=!1,!e&&this._messageCenter.trigger(h.type,h)}function Ad(t){for(var e=this._pendingActions;e.length;){var n=e.shift();Id.call(this,n,t)}}function Dd(t){!t&&this.trigger(\"updated\")}function Td(t,e,n,i){for(var r=\"component\"===e,o=r?t._componentsViews:t._chartsViews,a=r?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;ue.get(\"hoverLayerThreshold\")&&!p.node&&n.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}(t._zr,e),fc(t._zr.dom,e)}function Pd(t,e){id(Fd,function(n){n(t,e)})}xd.resize=function(t){c&&nd(!this[fd],\"`resize` should not be called during main process.\"),this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption(\"media\"),i=t&&t.silent;this[fd]=!0,n&&wd(this),bd.update.call(this),this[fd]=!1,Ad.call(this,i),Dd.call(this,i)}},xd.showLoading=function(t,e){if(od(t)&&(e=t,t=\"\"),t=t||\"default\",this.hideLoading(),Hd[t]){var n=Hd[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}else c&&console.warn(\"Loading effects \"+t+\" not exists.\")},xd.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},xd.makeActionFromEvent=function(t){var e=C({},t);return e.type=Rd[t.type],e},xd.dispatchAction=function(t,e){od(e)||(e={silent:!!e}),zd[t.type]&&this._model&&(this[fd]?this._pendingActions.push(t):(Id.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&p.browser.weChat&&this._throttledZrFlush(),Ad.call(this,e.silent),Dd.call(this,e.silent)))},xd.appendData=function(t){var e=t.seriesIndex,n=this.getModel().getSeriesByIndex(e);c&&nd(t.data&&n),n.appendData(t),this._scheduler.unfinished=!0},xd.on=md(\"on\"),xd.off=md(\"off\"),xd.one=md(\"one\");var Od=[\"click\",\"dblclick\",\"mouseover\",\"mouseout\",\"mousemove\",\"mousedown\",\"mouseup\",\"globalout\",\"contextmenu\"];function Nd(t,e){var n=t.get(\"z\"),i=t.get(\"zlevel\");e.group.traverse(function(t){\"group\"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t.zlevel=i))})}function Ed(){this.eventInfo}xd._initEvents=function(){id(Od,function(t){var e=function(e){var n,i=this.getModel(),r=e.target,o=\"globalout\"===t;if(o)n={};else if(r&&null!=r.dataIndex){var a=r.dataModel||i.getSeriesByIndex(r.seriesIndex);n=a&&a.getDataParams(r.dataIndex,r.dataType,r)||{}}else r&&r.eventData&&(n=C({},r.eventData));if(n){var s=n.componentType,l=n.componentIndex;\"markLine\"!==s&&\"markPoint\"!==s&&\"markArea\"!==s||(s=\"series\",l=n.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),h=u&&this[\"series\"===u.mainType?\"_chartsMap\":\"_componentsMap\"][u.__viewId];c&&(o||u&&h||console.warn(\"model or view can not be found by params\")),n.event=e,n.type=t,this._ecEventProcessor.eventInfo={targetEl:r,packedEvent:n,model:u,view:h},this.trigger(t,n)}};e.zrEventfulCallAtLast=!0,this._zr.on(t,e,this)},this),id(Rd,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},xd.isDisposed=function(){return this._disposed},xd.clear=function(){this.setOption({series:[]},!0)},xd.dispose=function(){if(this._disposed)c&&console.warn(\"Instance \"+this.id+\" has been disposed\");else{this._disposed=!0,Wr(this.getDom(),Xd,\"\");var t=this._api,e=this._model;id(this._componentsViews,function(n){n.dispose(e,t)}),id(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),delete jd[this.id]}},z(yd,Ft),Ed.prototype={constructor:Ed,normalizeQuery:function(t){var e={},n={},i={};if(U(t)){var r=ad(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=[\"Index\",\"Name\",\"Id\"],a={name:1,dataIndex:1,dataType:1};B(t,function(t,r){for(var s=!1,l=0;l0&&h===r.length-u.length){var c=r.slice(0,h);\"data\"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},filter:function(t,e,n){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,o=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return h(l,a,\"mainType\")&&h(l,a,\"subType\")&&h(l,a,\"index\",\"componentIndex\")&&h(l,a,\"name\")&&h(l,a,\"id\")&&h(u,o,\"name\")&&h(u,o,\"dataIndex\")&&h(u,o,\"dataType\")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o));function h(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},afterTrigger:function(){this.eventInfo=null}};var zd={},Rd={},Bd=[],Vd=[],Fd=[],Gd=[],Wd={},Hd={},jd={},Yd={},Zd=new Date-0,Ud=new Date-0,Xd=\"_echarts_instance_\";function qd(t){Yd[t]=!1}var Kd=qd;function Qd(t){return jd[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,Xd)]}function Jd(t,e){Wd[t]=e}function $d(t){Vd.push(t)}function tf(t,e){af(Bd,t,e,ud)}function ef(t,e,n){\"function\"==typeof e&&(n=e,e=\"\");var i=od(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,nd(gd.test(i)&&gd.test(e)),zd[i]||(zd[i]={action:n,actionInfo:t}),Rd[e]=i}function nf(t,e){Uu.register(t,e)}function rf(t,e){af(Gd,t,e,hd,\"layout\")}function of(t,e){af(Gd,t,e,cd,\"visual\")}function af(t,e,n,i,r){if((rd(e)||od(e))&&(n=e,e=i),c){if(isNaN(e)||null==e)throw new Error(\"Illegal priority\");id(t,function(t){nd(t.__raw!==n)})}var o=gc.wrapStageHandler(n,r);return o.__prio=e,o.__raw=n,t.push(o),o}function sf(t,e){Hd[t]=e}function lf(t){return gu.extend(t)}function uf(t){return Uh.extend(t)}function hf(t){return Vh.extend(t)}function cf(t){return Jh.extend(t)}function df(t){return t}function ff(t,e,n,i,r){this._old=t,this._new=e,this._oldKeyGetter=n||df,this._newKeyGetter=i||df,this.context=r}function pf(t,e,n,i,r){for(var o=0;o65535?bf:Mf}var If=[\"hasItemOption\",\"_nameList\",\"_idList\",\"_invertedIndicesMap\",\"_rawData\",\"_chunkSize\",\"_chunkCount\",\"_dimValueGetter\",\"_count\",\"_rawCount\",\"_nameDimIdx\",\"_idDimIdx\"],Af=[\"_extent\",\"_approximateExtent\",\"_rawExtent\"];function Df(t,e){B(If.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,B(Af,function(n){t[n]=A(e[n])}),t._calculationInfo=C(e._calculationInfo)}var Tf=function(t,e){t=t||[\"x\",\"y\"];for(var n={},i=[],r={},o=0;o=0?this._indices[t]:-1}function Ef(t,e){var n=t._idList[e];return null==n&&(n=Pf(t,t._idDimIdx,e)),null==n&&(n=xf+e),n}function zf(t){return Y(t)||(t=[t]),t}function Rf(t,e){for(var n=0;n=0?(r[s]=Vf(o[s]),i._rawExtent[s]=[1/0,-1/0],i._extent[s]=null):r[s]=o[s])}return i}function Vf(t){for(var e,n,i=new Array(t.length),r=0;rx[1]&&(x[1]=y)}e&&(this._nameList[f]=e[p])}this._rawCount=this._count=l,this._extent={},kf(this)},Cf._initDataFromProvider=function(t,e){if(!(t>=e)){for(var n,i=this._chunkSize,r=this._rawData,o=this._storage,a=this.dimensions,s=a.length,l=this._dimensionInfos,u=this._nameList,h=this._idList,c=this._rawExtent,d=this._nameRepeatCount={},f=this._chunkCount,p=0;pS[1]&&(S[1]=M)}if(!r.pure){var I=u[v];if(m&&null==I)if(null!=m.name)u[v]=I=m.name;else if(null!=n){var A=a[n],D=o[A][y];if(D){I=D[x];var T=l[A].ordinalMeta;T&&T.categories.length&&(I=T.categories[I])}}var C=null==m?null:m.id;null==C&&null!=I&&(d[I]=d[I]||0,C=I,d[I]>0&&(C+=\"__ec__\"+d[I]),d[I]++),null!=C&&(h[v]=C)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent={},kf(this)}},Cf.count=function(){return this._count},Cf.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array){r=new e(n);for(var i=0;i=0&&e=0&&ea&&(a=l)}return i=[o,a],this._extent[t]=i,i},Cf.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},Cf.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},Cf.getCalculationInfo=function(t){return this._calculationInfo[t]},Cf.setCalculationInfo=function(t,e){vf(t)?C(this._calculationInfo,t):this._calculationInfo[t]=e},Cf.getSum=function(t){var e=0;if(this._storage[t])for(var n=0,i=this.count();n=this._rawCount||t<0)return-1;var e=this._indices,n=e[t];if(null!=n&&nt))return o;r=o-1}}return-1},Cf.indicesOfNearest=function(t,e,n){var i=[];if(!this._storage[t])return i;null==n&&(n=1/0);for(var r=Number.MAX_VALUE,o=-1,a=0,s=this.count();a=0&&o<0)&&(r=u,o=l,i.length=0),i.push(a))}return i},Cf.getRawIndex=Of,Cf.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],n=0;n=l&&w<=u||isNaN(w))&&(o[a++]=d),d++;h=!0}else if(2===i){f=this._storage[s];var y=this._storage[e[1]],x=t[e[1]][0],_=t[e[1]][1];for(p=0;p=l&&w<=u||isNaN(w))&&(M>=x&&M<=_||isNaN(M))&&(o[a++]=d),d++}}h=!0}}if(!h)if(1===i)for(v=0;v=l&&w<=u||isNaN(w))&&(o[a++]=S)}else for(v=0;vt[A][1])&&(I=!1)}I&&(o[a++]=this.getRawIndex(v))}return aM[1]&&(M[1]=w)}}}return r},Cf.downSample=function(t,e,n,i){for(var r=Bf(this,[t]),o=r._storage,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=this._chunkSize,c=r._rawExtent[t],d=new(Sf(this))(u),f=0,p=0;pu-p&&(s=u-p,a.length=s);for(var g=0;gc[1]&&(c[1]=x),d[f++]=_}return r._count=f,r._indices=d,r.getRawIndex=Nf,r},Cf.getItemModel=function(t){var e=this.hostModel;return new pl(this.getRawDataItem(t),e,e&&e.ecModel)},Cf.diff=function(t){var e=this;return new ff(t?t.getIndices():[],this.getIndices(),function(e){return Ef(t,e)},function(t){return Ef(e,t)})},Cf.getVisual=function(t){var e=this._visual;return e&&e[t]},Cf.setVisual=function(t,e){if(vf(t))for(var n in t)t.hasOwnProperty(n)&&this.setVisual(n,t[n]);else this._visual=this._visual||{},this._visual[t]=e},Cf.setLayout=function(t,e){if(vf(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},Cf.getLayout=function(t){return this._layout[t]},Cf.getItemLayout=function(t){return this._itemLayouts[t]},Cf.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?C(this._itemLayouts[t]||{},e):e},Cf.clearItemLayouts=function(){this._itemLayouts.length=0},Cf.getItemVisual=function(t,e,n){var i=this._itemVisuals[t],r=i&&i[e];return null!=r||n?r:this.getVisual(e)},Cf.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{},r=this.hasItemVisual;if(this._itemVisuals[t]=i,vf(e))for(var o in e)e.hasOwnProperty(o)&&(i[o]=e[o],r[o]=!0);else i[e]=n,r[e]=!0},Cf.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var Ff=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};function Gf(t,e,n){ku.isInstance(e)||(e=ku.seriesDataToSource(e)),n=n||{},t=(t||[]).slice();for(var i=(n.dimsDef||[]).slice(),r=ht(n.encodeDef),o=ht(),a=ht(),s=[],l=function(t,e,n,i){var r=Math.max(t.dimensionsDetectCount||1,e.length,n.length,i||0);return B(e,function(t){var e=t.dimsDef;e&&(r=Math.max(r,e.length))}),r}(e,t,i,n.dimCount),u=0;u=e[0]&&t<=e[1]},Xf.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},Xf.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},Xf.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},Xf.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Xf.prototype.getExtent=function(){return this._extent.slice()},Xf.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},Xf.prototype.isBlank=function(){return this._isBlank},Xf.prototype.setBlank=function(t){this._isBlank=t},Xf.prototype.getLabel=null,Ur(Xf),Jr(Xf,{registerWhenExtend:!0}),qf.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&V(n,Jf);return new qf({categories:i,needCollect:!i,deduplication:!1!==e.dedplication})};var Kf=qf.prototype;function Qf(t){return t._map||(t._map=ht(t.categories))}function Jf(t){return X(t)&&null!=t.value?t.value:t+\"\"}Kf.getOrdinal=function(t){return Qf(this).get(t)},Kf.parseAndCollect=function(t){var e,n=this._needCollect;if(\"string\"!=typeof t&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=Qf(this);return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e};var $f=Xf.prototype,tp=Xf.extend({type:\"ordinal\",init:function(t,e){t&&!Y(t)||(t=new qf({categories:t})),this._ordinalMeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return\"string\"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),$f.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return $f.normalize.call(this,this.parse(t))},scale:function(t){return Math.round($f.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push(n),n++;return t},getLabel:function(t){if(!this.isBlank())return this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:dt,niceExtent:dt});tp.create=function(){return new tp};var ep=wl;function np(t){return Il(t)+2}function ip(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function rp(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),ip(t,0,e),ip(t,1,e),t[0]>t[1]&&(t[0]=t[1])}var op=wl,ap=Xf.extend({type:\"interval\",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),ap.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=np(t)},getTicks:function(){return function(t,e,n,i){var r=[];if(!t)return r;e[0]1e4)return[];return e[1]>(r.length?r[r.length-1]:n[1])&&r.push(e[1]),r}(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getLabel:function(t,e){if(null==t)return\"\";var n=e&&e.precision;return null==n?n=Il(t)||0:\"auto\"===n&&(n=this._intervalPrecision),Vl(t=op(t,n,!0))},niceTicks:function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=function(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=El(o/e,!0);null!=n&&ai&&(a=r.interval=i);var s=r.intervalPrecision=np(a);return rp(r.niceTickExtent=[ep(Math.ceil(t[0]/a)*a,s),ep(Math.floor(t[1]/a)*a,s)],t),r}(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax?e[0]-=n/2:(e[1]+=n/2,e[0]-=n/2)}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=op(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=op(Math.ceil(e[1]/r)*r))},fillExtent:function(t){if(!t.fixMin&&!t.fixMax){var e=s(this._extent,2),n=e[0],i=e[1];0===i?i=-n*t.pnr:0===n?n=-i/t.pnr:i=-n*t.pnr,this._extent=[n,i],this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval)}}});ap.create=function(){return new ap};var sp=\"__ec_stack_\",lp=\"undefined\"!=typeof Float32Array?Float32Array:Array;function up(t){return t.get(\"stack\")||sp+t.seriesIndex}function hp(t){return t.dim+t.index}function cp(t,e){var n=[];return e.eachSeriesByType(t,function(t){vp(t)&&!yp(t)&&n.push(t)}),n}function dp(t){var e=[];return B(t,function(t){var n=t.getData(),i=t.coordinateSystem.getBaseAxis(),r=i.getExtent(),o=\"category\"===i.type?i.getBandWidth():Math.abs(r[1]-r[0])/n.count(),a=bl(t.get(\"barWidth\"),o),s=bl(t.get(\"barMaxWidth\"),o),l=t.get(\"barGap\"),u=t.get(\"barCategoryGap\");e.push({bandWidth:o,barWidth:a,barMaxWidth:s,barGap:l,barCategoryGap:u,axisKey:hp(i),stackId:up(t)})}),fp(e)}function fp(t){var e={};B(t,function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:\"20%\",gap:\"30%\",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var h=t.barGap;null!=h&&(o.gap=h);var c=t.barCategoryGap;null!=c&&(o.categoryGap=c)});var n={};return B(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=bl(t.categoryGap,r),a=bl(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),B(i,function(t,e){var n=t.maxWidth;n&&n=0?\"p\":\"n\",D=m;p&&(r[a][_]||(r[a][_]={p:m,n:m}),D=r[a][_][A]),g?(b=D,w=(I=n.dataToPoint([x,_]))[1]+l,M=I[0]-m,S=u,Math.abs(M).5||(u=.5),{progress:function(t,e){for(var i,h=new lp(2*t.count),c=[],d=[],f=0;null!=(i=t.next());)d[l]=e.get(o,i),d[1-l]=e.get(a,i),c=n.dataToPoint(d,null,c),h[f++]=c[0],h[f++]=c[1];e.setLayout({largePoints:h,barWidth:u,valueAxisStart:xp(0,r),valueAxisHorizontal:s})}}}}};function vp(t){return t.coordinateSystem&&\"cartesian2d\"===t.coordinateSystem.type}function yp(t){return t.pipelineContext&&t.pipelineContext.large}function xp(t,e,n){var i,r,o=e.getGlobalExtent();o[0]>o[1]?(i=o[1],r=o[0]):(i=o[0],r=o[1]);var a=e.toGlobalCoord(e.dataToCoord(0));return ar&&(a=r),a}var _p=ap.prototype,bp=Math.ceil,wp=Math.floor,Mp=ap.extend({type:\"time\",getLabel:function(t){var e=this._stepLvl,n=new Date(t);return Ql(e[0],n,this.getSetting(\"useUTC\"))},niceExtent:function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=864e5,e[1]+=864e5),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-864e5}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=wl(wp(e[0]/i)*i)),t.fixMax||(e[1]=wl(bp(e[1]/i)*i))},niceTicks:function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0],o=r/t;null!=e&&on&&(o=n);var a=Sp.length,s=function(t,e,n,i){for(;n>>1;t[r][1]0;)i*=10;var r=[wl(Lp(e[0]/i)*i),wl(Cp(e[1]/i)*i)];this._interval=i,this._niceExtent=r}},niceExtent:function(t){Ap.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});function Np(t,e){return Tp(t,Dp(e))}function Ep(t,e){var n,i,r,o=t.type,a=e.getMin(),s=e.getMax(),l=null!=a,u=null!=s,h=t.getExtent();\"ordinal\"===o?n=e.getCategories().length:(Y(i=e.get(\"boundaryGap\"))||(i=[i||0,i||0]),\"boolean\"==typeof i[0]&&(c&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., \"20%\". Currently, boundaryGap is set to be 0.'),i=[0,0]),i[0]=bl(i[0],1),i[1]=bl(i[1],1),r=h[1]-h[0]||Math.abs(h[0])),null==a&&(a=\"ordinal\"===o?n?0:NaN:h[0]-i[0]*r),null==s&&(s=\"ordinal\"===o?n?n-1:NaN:h[1]+i[1]*r),\"dataMin\"===a?a=h[0]:\"function\"==typeof a&&(a=a({min:h[0],max:h[1]})),\"dataMax\"===s?s=h[1]:\"function\"==typeof s&&(s=s({min:h[0],max:h[1]})),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN),t.setBlank(J(a)||J(s)||\"ordinal\"===o&&!t.getOrdinalMeta().categories.length),e.getNeedCrossZero()&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var d=e.ecModel;if(d&&\"time\"===o){var f,p=cp(\"bar\",d);if(B(p,function(t){f|=t.getBaseAxis()===e.axis}),f){var g=dp(p),m=function(t,e,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=pp(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;B(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;B(a,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-t,c=h/(1-(s+l)/o)-h;return{min:t-=c*(s/u),max:e+=c*(l/u)}}(a,s,e,g);a=m.min,s=m.max}}return[a,s]}function zp(t,e){var n=Ep(t,e),i=null!=e.getMin(),r=null!=e.getMax(),o=e.get(\"splitNumber\");\"log\"===t.type&&(t.base=e.get(\"logBase\"));var a=t.type;t.setExtent(n[0],n[1]),t.niceExtent({splitNumber:o,fixMin:i,fixMax:r,minInterval:\"interval\"===a||\"time\"===a?e.get(\"minInterval\"):null,maxInterval:\"interval\"===a||\"time\"===a?e.get(\"maxInterval\"):null});var s=e.get(\"interval\");null!=s&&t.setInterval&&t.setInterval(s)}function Rp(t,e){if(e=e||t.get(\"type\"))switch(e){case\"category\":return new tp(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case\"value\":return new ap;default:return(Xf.getClass(e)||ap).create(t)}}function Bp(t){var e,n=t.getLabelModel().get(\"formatter\"),i=\"category\"===t.type?t.scale.getExtent()[0]:null;return\"string\"==typeof n?(e=n,n=function(n){return n=t.scale.getLabel(n),e.replace(\"{value}\",null!=n?n:\"\")}):\"function\"==typeof n?function(e,r){return null!=i&&(r=e-i),n(Vp(t,e),r)}:function(e){return t.scale.getLabel(e)}}function Vp(t,e){return\"category\"===t.type?t.scale.getLabel(e):e}function Fp(t,e){var n=e*Math.PI/180,i=t.plain(),r=i.width,o=i.height,a=r*Math.cos(n)+o*Math.sin(n),s=r*Math.sin(n)+o*Math.cos(n);return new Pn(i.x,i.y,a,s)}function Gp(t){var e=t.get(\"interval\");return null==e?\"auto\":e}function Wp(t){return\"category\"===t.type&&0===Gp(t.getLabelModel())}B([\"contain\",\"normalize\"],function(t){Op.prototype[t]=function(e){return e=Pp(e)/Pp(this.base),Ip[t].call(this,e)}}),Op.create=function(){return new Op};var Hp={getMin:function(t){var e=this.option,n=t||null==e.rangeStart?e.min:e.rangeStart;return this.axis&&null!=n&&\"dataMin\"!==n&&\"function\"!=typeof n&&!J(n)&&(n=this.axis.scale.parse(n)),n},getMax:function(t){var e=this.option,n=t||null==e.rangeEnd?e.max:e.rangeEnd;return this.axis&&null!=n&&\"dataMax\"!==n&&\"function\"!=typeof n&&!J(n)&&(n=this.axis.scale.parse(n)),n},getNeedCrossZero:function(){var t=this.option;return null==t.rangeStart&&null==t.rangeEnd&&!t.scale},getCoordSysModel:dt,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}},jp=_s({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,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),Yp=_s({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,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),Zp=_s({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,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),h=Math.cos(u)*a,c=Math.sin(u),d=Math.cos(u),f=.6*a,p=.7*a;t.moveTo(n-h,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+h-c*f,l+s+d*f,n,i-p,n,i),t.bezierCurveTo(n,i-p,n-h+c*f,l+s+d*f,n-h,l+s),t.closePath()}}),Up=_s({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,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),Xp={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){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},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}},qp={};B({line:es,rect:$a,roundRect:$a,square:$a,circle:Ra,diamond:Yp,pin:Zp,arrow:Up,triangle:jp},function(t,e){qp[e]=new t});var Kp=_s({type:\"symbol\",shape:{symbolType:\"\",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style;\"pin\"===this.shape.symbolType&&\"inside\"===t.textPosition&&(t.textPosition=[\"50%\",\"40%\"],t.textAlign=\"center\",t.textVerticalAlign=\"middle\")},buildPath:function(t,e,n){var i=e.symbolType,r=qp[i];\"none\"!==e.symbolType&&(r||(r=qp[i=\"rect\"]),Xp[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n))}});function Qp(t,e){if(\"image\"!==this.type){var n=this.style,i=this.shape;i&&\"line\"===i.symbolType?n.stroke=t:this.__isEmptyBrush?(n.stroke=t,n.fill=e||\"#fff\"):(n.fill&&(n.fill=t),n.stroke&&(n.stroke=t)),this.dirty(!1)}}function Jp(t,e,n,i,r,o,a){var s,l=0===t.indexOf(\"empty\");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf(\"image://\")?ws(t.slice(8),new Pn(e,n,i,r),a?\"center\":\"cover\"):0===t.indexOf(\"path://\")?bs(t.slice(7),{},new Pn(e,n,i,r),a?\"center\":\"cover\"):new Kp({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=l,s.setColor=Qp,s.setColor(o),s}var $p={isDimensionStacked:Yf,enableDataStack:jf,getStackedDimension:Zf},tg=(Object.freeze||Object)({createList:function(t){return Uf(t.getSource(),t)},getLayoutRect:su,dataStack:$p,createScale:function(t,e){var n=e;pl.isInstance(e)||z(n=new pl(e),Hp);var i=Rp(n);return i.setExtent(t[0],t[1]),zp(i,n),i},mixinAxisModelCommonMethods:function(t){z(t,Hp)},completeDimensions:Gf,createDimensions:Hf,createSymbol:Jp}),eg=1e-8;function ng(t,e){return Math.abs(t-e)>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,i.push([s/n,l/n])}return i}rg.prototype={constructor:rg,properties:null,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,n=[e,e],i=[-e,-e],r=[],o=[],a=this.geometries,s=0;s0}),function(t){var e=t.properties,n=t.geometry,i=n.coordinates,r=[];\"Polygon\"===n.type&&r.push({type:\"polygon\",exterior:i[0],interiors:i.slice(1)}),\"MultiPolygon\"===n.type&&B(i,function(t){t[0]&&r.push({type:\"polygon\",exterior:t[0],interiors:t.slice(1)})});var o=new rg(e.name,r,e.cp);return o.properties=e,o})},sg=Br();function lg(t){return\"category\"===t.type?function(t){var e=t.getLabelModel(),n=hg(t,e);return!e.get(\"show\")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=Bp(t);return{labels:V(e,function(e,i){return{formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e}})}}(t)}function ug(t,e){return\"category\"===t.type?function(t,e){var n,i,r=cg(t,\"ticks\"),o=Gp(e),a=dg(r,o);if(a)return a;if(e.get(\"show\")&&!t.scale.isBlank()||(n=[]),Z(o))n=gg(t,o,!0);else if(\"auto\"===o){var s=hg(t,t.getLabelModel());i=s.labelCategoryInterval,n=V(s.labels,function(t){return t.tickValue})}else n=pg(t,i=o,!0);return fg(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:t.scale.getTicks()}}function hg(t,e){var n,i,r=cg(t,\"labels\"),o=Gp(e),a=dg(r,o);return a||(Z(o)?n=gg(t,o):(i=\"auto\"===o?function(t){var e=sg(t).autoInterval;return null!=e?e:sg(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=pg(t,i)),fg(r,o,{labels:n,labelCategoryInterval:i}))}function cg(t,e){return sg(t)[e]||(sg(t)[e]=[])}function dg(t,e){for(var n=0;n1&&h/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=Wp(t),d=a.get(\"showMinLabel\")||c,f=a.get(\"showMaxLabel\")||c;d&&u!==o[0]&&g(o[0]);for(var p=u;p<=o[1];p+=l)g(p);function g(t){s.push(n?t:{formattedLabel:i(t),rawLabel:r.getLabel(t),tickValue:t})}return f&&p!==o[1]&&g(o[1]),s}function gg(t,e,n){var i=t.scale,r=Bp(t),o=[];return B(i.getTicks(),function(t){var a=i.getLabel(t);e(t,a)&&o.push(n?t:{formattedLabel:r(t),rawLabel:a,tickValue:t})}),o}var mg=[0,1],vg=function(t,e,n){this.dim=t,this.scale=e,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1};function yg(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}vg.prototype={constructor:vg,contain:function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},containData:function(t){return this.contain(this.dataToCoord(t))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return Al(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var n=this._extent;n[0]=t,n[1]=e},dataToCoord:function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&\"ordinal\"===i.type&&yg(n=n.slice(),i.count()),_l(t,mg,n,e)},coordToData:function(t,e){var n=this._extent,i=this.scale;this.onBand&&\"ordinal\"===i.type&&yg(n=n.slice(),i.count());var r=_l(t,n,mg,e);return this.scale.scale(r)},pointToData:function(t,e){},getTicksCoords:function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=ug(this,e),i=V(n.ticks,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this),r=e.get(\"alignWithLabel\");return function(t,e,n,i,r){var o=e.length;if(t.onBand&&!i&&o){var a,s=t.getExtent();if(1===o)e[0].coord=s[0],a=e[1]={coord:s[0]};else{var l=e[1].coord-e[0].coord;B(e,function(t){t.coord-=l/2;var e=e||0;e%2>0&&(t.coord-=l/(2*(e+1)))}),a={coord:e[o-1].coord+l},e.push(a)}var u=s[0]>s[1];h(e[0].coord,s[0])&&(r?e[0].coord=s[0]:e.shift()),r&&h(s[0],e[0].coord)&&e.unshift({coord:s[0]}),h(s[1],a.coord)&&(r?a.coord=s[1]:e.pop()),r&&h(a.coord,s[1])&&e.push({coord:s[1]})}function h(t,e){return u?t>e:t40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(i)),c=Math.abs(u*Math.sin(i)),d=0,f=0;l<=o[1];l+=s){var p,g,m=yi(n(l),e.font,\"center\",\"top\");p=1.3*m.width,g=1.3*m.height,d=Math.max(d,p,7),f=Math.max(f,g,7)}var v=d/h,y=f/c;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(v,y))),_=sg(t.model),b=_.lastAutoInterval,w=_.lastTickCount;return null!=b&&null!=w&&Math.abs(b-x)<=1&&Math.abs(w-a)<=1&&b>x?x=b:(_.lastTickCount=a,_.lastAutoInterval=x),x}(this)}};var xg=ag,_g={};B([\"map\",\"each\",\"filter\",\"indexOf\",\"inherits\",\"reduce\",\"filter\",\"bind\",\"curry\",\"isArray\",\"isString\",\"isObject\",\"isFunction\",\"extend\",\"defaults\",\"clone\",\"merge\"],function(t){_g[t]=ft[t]});var bg={};function wg(t,e){var n=t.mapDimension(\"defaultedLabel\",!0),i=n.length;if(1===i)return Ch(t,e,n[0]);if(i){for(var r=[],o=0;o0?n=i[0]:i[1]<0&&(n=i[1]),n}(o,n),s=r.dim,l=o.dim,u=e.mapDimension(l),h=e.mapDimension(s),c=\"x\"===l||\"radius\"===l?1:0,d=V(t.dimensions,function(t){return e.mapDimension(t)}),f=e.getCalculationInfo(\"stackResultDimension\");return(i|=Yf(e,d[0]))&&(d[0]=f),(i|=Yf(e,d[1]))&&(d[1]=f),{dataDimsForPoint:d,valueStart:a,valueAxisDim:l,baseAxisDim:s,stacked:!!i,valueDim:u,baseDim:h,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo(\"stackedOverDimension\")}}function Vg(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo(\"stackedOverDimension\"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}Ng.updateData=function(t,e){e=zg(e);var n=this.group,i=t.hostModel,r=this._data,o=this._symbolCtor,a=Rg(t);r||n.removeAll(),t.diff(r).add(function(i){var r=t.getItemLayout(i);if(Eg(t,r,i,e)){var s=new o(t,i,a);s.attr(\"position\",r),t.setItemGraphicEl(i,s),n.add(s)}}).update(function(s,l){var u=r.getItemGraphicEl(l),h=t.getItemLayout(s);Eg(t,h,s,e)?(u?(u.updateData(t,s,a),$s(u,{position:h},i)):(u=new o(t,s)).attr(\"position\",h),n.add(u),t.setItemGraphicEl(s,u)):n.remove(u)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)})}).execute(),this._data=t},Ng.isPersistent=function(){return!0},Ng.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(e,n){var i=t.getItemLayout(n);e.attr(\"position\",i)})},Ng.incrementalPrepareUpdate=function(t){this._seriesScope=Rg(t),this._data=null,this.group.removeAll()},Ng.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}n=zg(n);for(var r=t.start;r=r||d<0)break;if(Ug(p)){if(h){d+=o;continue}break}if(d===n)t[o>0?\"moveTo\":\"lineTo\"](p[0],p[1]);else if(l>0){var g=e[c],m=\"y\"===u?1:0,v=(p[m]-g[m])*l;Hg(Yg,g),Yg[m]=g[m]+v,Hg(Zg,p),Zg[m]=p[m]-v,t.bezierCurveTo(Yg[0],Yg[1],Zg[0],Zg[1],p[0],p[1])}else t.lineTo(p[0],p[1]);c=d,d+=o}return f}function Kg(t,e,n,i,r,o,a,s,l,u,h){for(var c=0,d=n,f=0;f=r||d<0)break;if(Ug(p)){if(h){d+=o;continue}break}if(d===n)t[o>0?\"moveTo\":\"lineTo\"](p[0],p[1]),Hg(Yg,p);else if(l>0){var g=d+o,m=e[g];if(h)for(;m&&Ug(e[g]);)m=e[g+=o];var v=.5,y=e[c];if(!(m=e[g])||Ug(m))Hg(Zg,p);else{var x,_;if(Ug(m)&&!h&&(m=p),bt(jg,m,y),\"x\"===u||\"y\"===u){var b=\"x\"===u?0:1;x=Math.abs(p[b]-y[b]),_=Math.abs(p[b]-m[b])}else x=Ct(p,y),_=Ct(p,m);Wg(Zg,p,jg,-l*(1-(v=_/(_+x))))}Fg(Yg,Yg,s),Gg(Yg,Yg,a),Fg(Zg,Zg,s),Gg(Zg,Zg,a),t.bezierCurveTo(Yg[0],Yg[1],Zg[0],Zg[1],p[0],p[1]),Wg(Yg,p,jg,l*v)}else t.lineTo(p[0],p[1]);c=d,d+=o}return f}function Qg(t,e){var n=[1/0,1/0],i=[-1/0,-1/0];if(e)for(var r=0;ri[0]&&(i[0]=o[0]),o[1]>i[1]&&(i[1]=o[1])}return{min:e?n:i,max:e?i:n}}var Jg=ya.extend({type:\"ec-polyline\",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:\"#000\"},brush:Va(ya.prototype.brush),buildPath:function(t,e){var n=e.points,i=0,r=n.length,o=Qg(n,e.smoothConstraint);if(e.connectNulls){for(;r>0&&Ug(n[r-1]);r--);for(;i0&&Ug(n[o-1]);o--);for(;re[0]?1:-1;e[0]+=i*n,e[1]-=i*n}return e}function im(t,e,n,i){return\"polar\"===t.type?function(t,e,n,i){var r=t.getAngleAxis(),o=t.getRadiusAxis().getExtent().slice();o[0]>o[1]&&o.reverse();var a=r.getExtent(),s=Math.PI/180;n&&(o[0]-=.5,o[1]+=.5);var l=new Fa({shape:{cx:wl(t.cx,1),cy:wl(t.cy,1),r0:wl(o[0],1),r:wl(o[1],1),startAngle:-a[0]*s,endAngle:-a[1]*s,clockwise:r.inverse}});return e&&(l.shape.endAngle=-a[0]*s,tl(l,{shape:{endAngle:-a[1]*s}},i)),l}(t,e,n,i):function(t,e,n,i){var r=nm(t.getAxis(\"x\")),o=nm(t.getAxis(\"y\")),a=t.getBaseAxis().isHorizontal(),s=Math.min(r[0],r[1]),l=Math.min(o[0],o[1]),u=Math.max(r[0],r[1])-s,h=Math.max(o[0],o[1])-l;if(n)s-=.5,u+=.5,l-=.5,h+=.5;else{var c=i.get(\"lineStyle.width\")||2,d=i.get(\"clipOverflow\")?c/2:Math.max(u,h);a?(l-=d,h+=2*d):(s-=d,u+=2*d)}var f=new $a({shape:{x:s,y:l,width:u,height:h}});return e&&(f.shape[a?\"width\":\"height\"]=0,tl(f,{shape:{width:u,height:h}},i)),f}(t,e,n,i)}function rm(t,e,n){for(var i=e.getBaseAxis(),r=\"x\"===i.dim||\"radius\"===i.dim?0:1,o=[],a=0;ai)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return B(o.getViewLabels(),function(t){s[t.tickValue]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}Jh.extend({type:\"line\",init:function(){var t=new On,e=new Og;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,n){var i=t.coordinateSystem,r=this.group,o=t.getData(),a=t.getModel(\"lineStyle\"),s=t.getModel(\"areaStyle\"),l=o.mapArray(o.getItemLayout),u=\"polar\"===i.type,h=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,g=this._lineGroup,m=t.get(\"animation\"),v=!s.isEmpty(),y=s.get(\"origin\"),x=function(t,e,n){if(!n.valueDim)return[];for(var i=[],r=0,o=e.count();r=0;o--){var a=n[o].dimension,s=t.dimensions[a],l=t.getDimensionInfo(s);if(\"x\"===(i=l&&l.coordDim)||\"y\"===i){r=n[o];break}}if(r){var u=e.getAxis(i),h=V(r.stops,function(t){return{coord:u.toGlobalCoord(u.dataToCoord(t.value)),color:t.color}}),d=h.length,f=r.outerColors.slice();d&&h[0].coord>h[d-1].coord&&(h.reverse(),f.reverse());var p=h[0].coord-10,g=h[d-1].coord+10,m=g-p;if(m<.001)return\"transparent\";B(h,function(t){t.offset=(t.coord-p)/m}),h.push({offset:d?h[d-1].offset:.5,color:f[1]||\"transparent\"}),h.unshift({offset:d?h[0].offset:.5,color:f[0]||\"transparent\"});var v=new ls(0,0,0,0,h,!0);return v[i]=p,v[i+\"2\"]=g,v}c&&console.warn(\"Visual map on line style only support x or y dimension.\")}else c&&console.warn(\"Visual map on line style is only supported on cartesian2d.\")}(o,i)||o.getVisual(\"color\");f.useStyle(L(a.getLineStyle(),{fill:\"none\",stroke:S,lineJoin:\"bevel\"}));var I=t.get(\"smooth\");if(I=em(t.get(\"smooth\")),f.setShape({smooth:I,smoothMonotone:t.get(\"smoothMonotone\"),connectNulls:t.get(\"connectNulls\")}),p){var A=o.getCalculationInfo(\"stackedOnSeries\"),D=0;p.useStyle(L(s.getAreaStyle(),{fill:S,opacity:.7,lineJoin:\"bevel\"})),A&&(D=em(A.get(\"smooth\"))),p.setShape({smooth:I,stackedOnSmooth:D,smoothMonotone:t.get(\"smoothMonotone\"),connectNulls:t.get(\"connectNulls\")})}this._data=o,this._coordSys=i,this._stackedOnPoints=x,this._points=l,this._step=M,this._valueOrigin=y},dispose:function(){},highlight:function(t,e,n,i){var r=t.getData(),o=Rr(r,i);if(!(o instanceof Array)&&null!=o&&o>=0){var a=r.getItemGraphicEl(o);if(!a){var s=r.getItemLayout(o);if(!s)return;(a=new Mg(r,o)).position=s,a.setZ(t.get(\"zlevel\"),t.get(\"z\")),a.ignore=isNaN(s[0])||isNaN(s[1]),a.__temp=!0,r.setItemGraphicEl(o,a),a.stopSymbolAnimation(!0),this.group.add(a)}a.highlight()}else Jh.prototype.highlight.call(this,t,e,n,i)},downplay:function(t,e,n,i){var r=t.getData(),o=Rr(r,i);if(null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else Jh.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Jg({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new $g({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_updateAnimation:function(t,e,n,i,r,o){var a=this._polyline,s=this._polygon,l=t.hostModel,u=function(t,e,n,i,r,o,a,s){for(var l=function(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:\"+\",idx:t})}).update(function(t,e){n.push({cmd:\"=\",idx:e,idx1:t})}).remove(function(t){n.push({cmd:\"-\",idx:t})}).execute(),n}(t,e),u=[],h=[],c=[],d=[],f=[],p=[],g=[],m=Bg(r,e,a),v=Bg(o,t,s),y=0;ye&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;ne[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t[\"x\"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},E(fm,vg);var pm={show:!0,zlevel:0,z:0,inverse:!1,name:\"\",nameLocation:\"end\",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:\"...\",placeholder:\".\"},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:\"#333\",width:1,type:\"solid\"},symbol:[\"none\",\"none\"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:[\"#ccc\"],width:1,type:\"solid\"}},splitArea:{show:!1,areaStyle:{color:[\"rgba(250,250,250,0.3)\",\"rgba(200,200,200,0.3)\"]}}},gm={};gm.categoryAxis=D({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:\"auto\"},axisLabel:{interval:\"auto\"}},pm),gm.valueAxis=D({boundaryGap:[0,0],splitNumber:5},pm),gm.timeAxis=L({scale:!0,min:\"dataMin\",max:\"dataMax\"},gm.valueAxis),gm.logAxis=L({scale:!0,logBase:10},gm.valueAxis);var mm=[\"value\",\"category\",\"time\",\"log\"],vm=function(t,e,n,i){B(mm,function(r){e.extend({type:t+\"Axis.\"+r,mergeDefaultAndTheme:function(e,i){var o=this.layoutMode,a=o?hu(e):{};D(e,i.getTheme().get(r+\"Axis\")),D(e,this.getDefaultOption()),e.type=n(t,e),o&&uu(e,a,o)},optionUpdated:function(){\"category\"===this.option.type&&(this.__ordinalMeta=qf.createByAxisModel(this))},getCategories:function(t){var e=this.option;if(\"category\"===e.type)return t?e.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:T([{},gm[r+\"Axis\"],i],!0)})}),gu.registerSubTypeDefaulter(t+\"Axis\",j(n,t))},ym=gu.extend({type:\"cartesian2dAxis\",axis:null,init:function(){ym.superApply(this,\"init\",arguments),this.resetRange()},mergeOption:function(){ym.superApply(this,\"mergeOption\",arguments),this.resetRange()},restoreData:function(){ym.superApply(this,\"restoreData\",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:\"grid\",index:this.option.gridIndex,id:this.option.gridId})[0]}});function xm(t,e){return e.type||(e.data?\"category\":\"value\")}D(ym.prototype,Hp);var _m={offset:0};function bm(t,e,n){return t.getCoordSysModel()===e}function wm(t,e,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._pnAxes={},this._initCartesian(t,e,n),this.model=t}vm(\"x\",ym,xm,_m),vm(\"y\",ym,xm,_m),gu.extend({type:\"grid\",dependencies:[\"xAxis\",\"yAxis\"],layoutMode:\"box\",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:\"10%\",top:60,right:\"10%\",bottom:60,containLabel:!1,backgroundColor:\"rgba(0,0,0,0)\",borderWidth:1,borderColor:\"#ccc\"}});var Mm=wm.prototype;function Sm(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(\"axisLine.onZero\"),l=a.get(\"axisLine.onZeroAxisIndex\");if(s){if(null!=l)Im(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&Im(o[u])&&!i[h(o[u])]){r=o[u];break}r&&(i[h(r)]=!0)}function h(t){return t.dim+\"_\"+t.index}}function Im(t){return t&&\"category\"!==t.type&&\"time\"!==t.type&&function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}(t)}Mm.type=\"grid\",Mm.axisPointerEnabled=!0,Mm.getRect=function(){return this._rect},Mm.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model),B(n.x,function(t){zp(t.scale,t.model)}),B(n.y,function(t){zp(t.scale,t.model)}),this.syncYAxisZero();var i={};B(n.x,function(t){Sm(n,\"y\",t,i)}),B(n.y,function(t){Sm(n,\"x\",t,i)}),this.resize(this.model,e)},Mm.syncYAxisZero=function(){var t=[],e=[],n=[];if(B(this._axesMap.y,function(i){var r=null!=i.model.getMin(),o=null!=i.model.getMax();if(!r&&!o){var a=i.scale.getExtent();a[0]<0&&a[1]?t.push(i):0===a[0]&&a[1]>0?e.push(i):a[0]<0&&0===a[1]&&n.push(i)}}),t.length>0||e.length>0&&n.length>0){var i=function(t){var e=1;if(t.length>0){var n=t.map(function(t){var e=t.scale.getExtent();return Math.abs(e[1])/Math.abs(e[0])});e=Math.max.apply(null,n)}return e}(t);t.concat(e).concat(n).forEach(function(t){\"interval\"===t.scale.type&&function(t,e,n){var i=null!=e.getMin(),r=null!=e.getMax();t.fillExtent({fixMin:i,fixMax:r,pnr:n})}(t.scale,t.model,i)})}},Mm.resize=function(t,e,n){var i=su(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=i;var r=this._axesList;function o(){B(r,function(t){var e=t.isHorizontal(),n=e?[0,i.width]:[0,i.height],r=t.inverse?1:0;t.setExtent(n[r],n[1-r]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord=\"x\"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=\"x\"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?i.x:i.y)})}o(),!n&&t.get(\"containLabel\")&&(B(r,function(t){if(!t.model.get(\"axisLabel.inside\")){var e=function(t){var e=t.model,n=t.scale;if(e.get(\"axisLabel.show\")&&!n.isBlank()){var i,r,o=\"category\"===t.type,a=n.getExtent();r=o?n.count():(i=n.getTicks()).length;var s,l=t.getLabelModel(),u=Bp(t),h=1;r>40&&(h=Math.ceil(r/40));for(var c=0;cu[1]?-1:1,c=[\"start\"===o?u[0]-h*l:\"end\"===o?u[1]+h*l:(u[0]+u[1])/2,Rm(o)?t.labelOffset+a*l:0],d=e.get(\"nameRotate\");null!=d&&(d=d*Cm/180),Rm(o)?i=Om(t.rotation,null!=d?d:t.rotation,a):(i=function(t,e,n,i){var r,o,a=Cl(n-t.rotation),s=i[0]>i[1],l=\"start\"===e&&!s||\"start\"!==e&&s;return Ll(a-Cm/2)?(o=l?\"bottom\":\"top\",r=\"center\"):Ll(a-1.5*Cm)?(o=l?\"top\":\"bottom\",r=\"center\"):(o=\"middle\",r=a<1.5*Cm&&a>Cm/2?l?\"left\":\"right\":l?\"right\":\"left\"),{rotation:a,textAlign:r,textVerticalAlign:o}}(t,o,d||0,u),null!=(r=t.axisNameAvailableWidth)&&(r=Math.abs(r/Math.sin(i.rotation)),!isFinite(r)&&(r=null)));var f=s.getFont(),p=e.get(\"nameTruncate\",!0)||{},g=p.ellipsis,m=$(t.nameTruncateMaxWidth,p.maxWidth,r),v=null!=g&&null!=m?$l(n,m,f,g,{minChar:2,placeholder:p.placeholder}):n,y=e.get(\"tooltip\",!0),x=e.mainType,_={componentType:x,name:n,$vars:[\"name\"]};_[x+\"Index\"]=e.componentIndex;var b=new za({anid:\"name\",__fullText:n,__truncatedText:v,position:c,rotation:i.rotation,silent:Nm(e),z2:1,tooltip:y&&y.show?C({content:n,formatter:function(){return n},formatterParams:_},y):null});Ys(b.style,s,{text:v,textFont:f,textFill:s.getTextColor()||e.get(\"axisLine.lineStyle.color\"),textAlign:i.textAlign,textVerticalAlign:i.textVerticalAlign}),e.get(\"triggerEvent\")&&(b.eventData=Pm(e),b.eventData.targetType=\"axisName\",b.eventData.name=n),this._dumbGroup.add(b),b.updateTransform(),this.group.add(b),b.decomposeTransform()}}},Pm=Lm.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+\"Index\"]=t.componentIndex,e},Om=Lm.innerTextLayout=function(t,e,n){var i,r,o=Cl(e-t);return Ll(o)?(r=n>0?\"top\":\"bottom\",i=\"center\"):Ll(o-Cm)?(r=n>0?\"bottom\":\"top\",i=\"center\"):(r=\"middle\",i=o>0&&o0?\"right\":\"left\":n>0?\"left\":\"right\"),{rotation:o,textAlign:i,textVerticalAlign:r}},Nm=Lm.isLabelSilent=function(t){var e=t.get(\"tooltip\");return t.get(\"silent\")||!(t.get(\"triggerEvent\")||e&&e.show)};function Em(t){t&&(t.ignore=!0)}function zm(t,e,n){var i=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(i&&r){var o=le([]);return de(o,o,-t.rotation),i.applyTransform(he([],o,t.getLocalTransform())),r.applyTransform(he([],o,e.getLocalTransform())),i.intersect(r)}}function Rm(t){return\"middle\"===t||\"center\"===t}var Bm=B,Vm=j;function Fm(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var i=e.getComponent(\"tooltip\"),r=e.getComponent(\"axisPointer\"),o=r.get(\"link\",!0)||[],a=[];Bm(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var s=Ym(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model.getModel(\"tooltip\",i);if(Bm(n.getAxes(),Vm(f,!1,null)),n.getTooltipAxes&&i&&u.get(\"show\")){var h=\"axis\"===u.get(\"trigger\"),c=\"cross\"===u.get(\"axisPointer.type\"),d=n.getTooltipAxes(u.get(\"axisPointer.axis\"));(h||c)&&Bm(d.baseAxes,Vm(f,!c||\"cross\",h)),c&&Bm(d.otherAxes,Vm(f,\"cross\",!1))}}function f(i,s,h){var c=h.model.getModel(\"axisPointer\",r),d=c.get(\"show\");if(d&&(\"auto\"!==d||i||jm(c))){null==s&&(s=c.get(\"triggerTooltip\"));var f=(c=i?function(t,e,n,i,r,o){var a=e.getModel(\"axisPointer\"),s={};Bm([\"type\",\"snap\",\"lineStyle\",\"shadowStyle\",\"label\",\"animation\",\"animationDurationUpdate\",\"animationEasingUpdate\",\"z\"],function(t){s[t]=A(a.get(t))}),s.snap=\"category\"!==t.type&&!!o,\"cross\"===a.get(\"type\")&&(s.type=\"line\");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),\"cross\"===r){var u=a.get(\"label.show\");if(l.show=null==u||u,!o){var h=s.lineStyle=a.get(\"crossStyle\");h&&L(l,h.textStyle)}}return t.model.getModel(\"axisPointer\",new pl(s,n,i))}(h,u,r,e,i,s):c).get(\"snap\"),p=Ym(h.model),g=s||f||\"category\"===h.type,m=t.axesInfo[p]={key:p,axis:h,coordSys:n,axisPointerModel:c,triggerTooltip:s,involveSeries:g,snap:f,useHandle:jm(c),seriesModels:[]};l[p]=m,t.seriesInvolved|=g;var v=function(t,e){for(var n=e.model,i=e.dim,r=0;r=0||t===e}function Wm(t){var e=Hm(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get(\"status\"),a=n.get(\"value\");null!=a&&(a=i.parse(a));var s=jm(n);null==o&&(r.status=s?\"show\":\"hide\");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a1&&(\"string\"==typeof r?a=lm[r]:\"function\"==typeof r&&(a=r),a&&t.setData(i.downSample(i.mapDimension(l.dim),1/c,a,um)))}}}}(\"line\"));var tv=Vh.extend({type:\"series.__base_bar__\",getInitialData:function(t,e){return Uf(this.getSource(),this)},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var n=e.dataToPoint(e.clampData(t)),i=this.getData(),r=i.getLayout(\"offset\"),o=i.getLayout(\"size\");return n[e.getBaseAxis().isHorizontal()?0:1]+=r+o/2,n}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:\"cartesian2d\",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:\"mod\",itemStyle:{},emphasis:{}}});function ev(t,e,n,i,r,o,a){js(t,e,n.getModel(\"label\"),n.getModel(\"emphasis.label\"),{labelFetcher:r,labelDataIndex:o,defaultText:wg(r.getData(),o),isRectText:!0,autoColor:i}),nv(t),nv(e)}function nv(t,e){\"outside\"===t.textPosition&&(t.textPosition=e)}tv.extend({type:\"series.bar\",dependencies:[\"grid\",\"polar\"],brushSelector:\"rect\",getProgressive:function(){return!!this.get(\"large\")&&this.get(\"progressive\")},getProgressiveThreshold:function(){var t=this.get(\"progressiveThreshold\"),e=this.get(\"largeThreshold\");return e>t&&(t=e),t}});var iv=$r([[\"fill\",\"color\"],[\"stroke\",\"borderColor\"],[\"lineWidth\",\"borderWidth\"],[\"stroke\",\"barBorderColor\"],[\"lineWidth\",\"barBorderWidth\"],[\"opacity\"],[\"shadowBlur\"],[\"shadowOffsetX\"],[\"shadowOffsetY\"],[\"shadowColor\"]]),rv={getBarItemStyle:function(t){var e=iv(this,t);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(e.lineDash=n)}return e}},ov=[\"itemStyle\",\"barBorderWidth\"];C(pl.prototype,rv),cf({type:\"bar\",render:function(t,e,n){this._updateDrawMode(t);var i=t.get(\"coordinateSystem\");return\"cartesian2d\"===i||\"polar\"===i?this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n):c&&console.warn(\"Only cartesian2d and polar supported for bar.\"),this.group},incrementalPrepareRender:function(t,e,n){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,n,i){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t,e,n){var i,r=this.group,o=t.getData(),a=this._data,s=t.coordinateSystem,l=s.getBaseAxis();\"cartesian2d\"===s.type?i=l.isHorizontal():\"polar\"===s.type&&(i=\"angle\"===l.dim);var u=t.isAnimationEnabled()?t:null;o.diff(a).add(function(e){if(o.hasValue(e)){var n=o.getItemModel(e),a=uv[s.type](o,e,n),l=av[s.type](o,e,n,a,i,u);o.setItemGraphicEl(e,l),r.add(l),hv(l,o,e,n,a,t,i,\"polar\"===s.type)}}).update(function(e,n){var l=a.getItemGraphicEl(n);if(o.hasValue(e)){var h=o.getItemModel(e),c=uv[s.type](o,e,h);l?$s(l,{shape:c},u,e):l=av[s.type](o,e,h,c,i,u,!0),o.setItemGraphicEl(e,l),r.add(l),hv(l,o,e,h,c,t,i,\"polar\"===s.type)}else r.remove(l)}).remove(function(t){var e=a.getItemGraphicEl(t);\"cartesian2d\"===s.type?e&&sv(t,u,e):e&&lv(t,u,e)}).execute(),this._data=o},_renderLarge:function(t,e,n){this._clear(),dv(t,this.group)},_incrementalRenderLarge:function(t,e){dv(e,this.group,!0)},dispose:dt,remove:function(t){this._clear(t)},_clear:function(t){var e=this.group,n=this._data;t&&t.get(\"animation\")&&n&&!this._isLargeDraw?n.eachItemGraphicEl(function(e){\"sector\"===e.type?lv(e.dataIndex,t,e):sv(e.dataIndex,t,e)}):e.removeAll(),this._data=null}});var av={cartesian2d:function(t,e,n,i,r,o,a){var s=new $a({shape:C({},i)});if(o){var l=r?\"height\":\"width\",u={};s.shape[l]=0,u[l]=i[l],sl[a?\"updateProps\":\"initProps\"](s,{shape:u},o,e)}return s},polar:function(t,e,n,i,r,o,a){var s=i.startAngle0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}};function hv(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,\"color\"),u=e.getItemVisual(n,\"opacity\"),h=i.getModel(\"itemStyle\"),c=i.getModel(\"emphasis.itemStyle\").getBarItemStyle();s||t.setShape(\"r\",h.get(\"barBorderRadius\")||0),t.useStyle(L({fill:l,opacity:u},h.getBarItemStyle()));var d=i.getShallow(\"cursor\");d&&t.attr(\"cursor\",d),a?r.height:r.width,s||ev(t.style,c,i,l,o,n),Fs(t,c)}var cv=ya.extend({type:\"largeBar\",shape:{points:[]},buildPath:function(t,e){for(var n=e.points,i=this.__startPoint,r=this.__valueIdx,o=0;o0&&\"scale\"!==u){var d=r.getItemLayout(0),f=Math.max(n.getWidth(),n.getHeight())/2,p=H(a.removeClipPath,a);a.setClipPath(this._createClipPath(d.cx,d.cy,f,d.startAngle,d.clockwise,p,t))}else a.removeClipPath();this._data=r}},dispose:function(){},_createClipPath:function(t,e,n,i,r,o,a){var s=new Fa({shape:{cx:t,cy:e,r0:0,r:n,startAngle:i,endAngle:i,clockwise:r}});return tl(s,{shape:{endAngle:i+(r?1:-1)*Math.PI*2}},a,o),s},containPoint:function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}}});var _v=function(t,e){B(e,function(e){e.update=\"updateView\",ef(e,function(n,i){var r={};return i.eachComponent({mainType:\"series\",subType:t,query:n},function(t){t[e.method]&&t[e.method](n.name,n.dataIndex);var i=t.getData();i.each(function(e){var n=i.getName(e);r[n]=t.isSelected(n)||!1})}),{name:n.name,selected:r}})})},bv=function(t){return{getTargetSeries:function(e){var n={},i=ht();return e.eachSeriesByType(t,function(t){t.__paletteScope=n,i.set(t.uid,t)}),i},reset:function(t,e){var n=t.getRawData(),i={},r=t.getData();r.each(function(t){var e=r.getRawIndex(t);i[e]=t}),n.each(function(e){var o=i[e],a=null!=o&&r.getItemVisual(o,\"color\",!0);if(a)n.setItemVisual(e,\"color\",a);else{var s=n.getItemModel(e).get(\"itemStyle.color\")||t.getColorFromPalette(n.getName(e)||e+\"\",t.__paletteScope,n.count());n.setItemVisual(e,\"color\",s),null!=o&&r.setItemVisual(o,\"color\",s)}})}}},wv=Math.PI/180;function Mv(t,e,n,i,r,o,a){function s(e,n,i,r){for(var o=e;oe&&o+1t[o].y+t[o].height)return void l(o,i/2);l(n-1,i/2)}function l(e,n){for(var i=e;i>=0&&(t[i].y-=n,!(i>0&&t[i].y>t[i-1].y+t[i-1].height));i--);}function u(t,e,n,i,r,o){for(var a=e?Number.MAX_VALUE:0,s=0,l=t.length;s=a&&(d=a-10),!e&&d<=a&&(d=a+10),t[s].x=n+d*o,a=d}}t.sort(function(t,e){return t.y-e.y});for(var h,c=0,d=t.length,f=[],p=[],g=0;g=n?p.push(t[g]):f.push(t[g]);u(f,!1,e,n,i,r),u(p,!0,e,n,i,r)}function Sv(t){return\"center\"===t.position}var Iv=function(t,e,n,i,r){var o,a,s=t.getData(),l=[],u=!1,h=(t.get(\"minShowLabelAngle\")||0)*wv;s.each(function(n){var i=s.getItemLayout(n),r=s.getItemModel(n),c=r.getModel(\"label\"),d=c.get(\"position\")||r.get(\"emphasis.label.position\"),f=r.getModel(\"labelLine\"),p=f.get(\"length\"),g=f.get(\"length2\");if(!(i.angle0?\"left\":\"right\"}var C=c.getFont(),L=c.get(\"rotate\")?b<0?-_+Math.PI:-_:0,k=yi(t.getFormattedLabel(n,\"normal\")||s.getName(n),C,x,\"top\");u=!!L,i.label={x:m,y:v,position:d,height:k.height,len:p,len2:g,linePoints:y,textAlign:x,verticalAlign:\"middle\",rotation:L,inside:M},M||l.push(i.label)}}),!u&&t.get(\"avoidLabelOverlap\")&&function(t,e,n,i,r,o){for(var a=[],s=[],l=0;l=0;s--){var l=2*s,u=i[l]-o/2,h=i[l+1]-a/2;if(t>=u&&e>=h&&t<=u+o&&e<=h+a)return s}return-1}});function Lv(){this.group=new On}var kv=Lv.prototype;function Pv(t,e,n){vg.call(this,t,e,n),this.type=\"value\",this.angle=0,this.name=\"\",this.model}function Ov(t,e,n){this._model=t,this.dimensions=[],this._indicatorAxes=V(t.getIndicatorModels(),function(t,e){var n=\"indicator_\"+e,i=new Pv(n,new ap);return i.name=t.get(\"name\"),i.model=t,t.axis=i,this.dimensions.push(n),i},this),this.resize(t,n),this.cx,this.cy,this.r,this.r0,this.startAngle}kv.isPersistent=function(){return!this._incremental},kv.updateData=function(t){this.group.removeAll();var e=new Cv({rectHover:!0,cursor:\"default\"});e.setShape({points:t.getLayout(\"symbolPoints\")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},kv.updateLayout=function(t){if(!this._incremental){var e=t.getLayout(\"symbolPoints\");this.group.eachChild(function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape(\"points\",e)})}},kv.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new hs({silent:!0})),this.group.add(this._incremental)):this._incremental=null},kv.incrementalUpdate=function(t,e){var n;this._incremental?(n=new Cv,this._incremental.addDisplayable(n,!0)):((n=new Cv({rectHover:!0,cursor:\"default\",startIndex:t.start,endIndex:t.end})).incremental=!0,this.group.add(n)),n.setShape({points:e.getLayout(\"symbolPoints\")}),this._setCommon(n,e,!!this._incremental)},kv._setCommon=function(t,e,n){var i=e.hostModel,r=e.getVisual(\"symbolSize\");t.setShape(\"size\",r instanceof Array?r:[r,r]),t.symbolProxy=Jp(e.getVisual(\"symbol\"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(i.getModel(\"itemStyle\").getItemStyle(o?[\"color\",\"shadowBlur\",\"shadowColor\"]:[\"color\"]));var a=e.getVisual(\"color\");a&&t.setColor(a),n||(t.seriesIndex=i.seriesIndex,t.on(\"mousemove\",function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>=0&&(t.dataIndex=n+(t.startIndex||0))}))},kv.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},kv._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},cf({type:\"scatter\",render:function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i),this._finished=!0},incrementalPrepareRender:function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},incrementalRender:function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var r=sm().reset(t);r.progress&&r.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_updateSymbolDraw:function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new Lv:new Og,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}}),of(am(\"scatter\",\"circle\")),rf(sm(\"scatter\")),E(Pv,vg),Ov.prototype.getIndicatorAxes=function(){return this._indicatorAxes},Ov.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},Ov.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},Ov.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;ln[0]&&isFinite(c)&&isFinite(n[0]))}else{a.getTicks().length-1>r&&(u=o(u));var d=Math.round((n[0]+n[1])/2/u)*u,f=Math.round(r/2);a.setExtent(wl(d-f*u),wl(d+(r-f)*u)),a.setInterval(u)}})},Ov.dimensions=[],Ov.create=function(t,e){var n=[];return t.eachComponent(\"radar\",function(i){var r=new Ov(i,t,e);n.push(r),i.coordinateSystem=r}),t.eachSeriesByType(\"radar\",function(t){\"radar\"===t.get(\"coordinateSystem\")&&(t.coordinateSystem=n[t.get(\"radarIndex\")||0])}),n},Uu.register(\"radar\",Ov);var Nv=gm.valueAxis;function Ev(t,e){return L({show:e},t)}lf({type:\"radar\",optionUpdated:function(){var t=this.get(\"boundaryGap\"),e=this.get(\"splitNumber\"),n=this.get(\"scale\"),i=this.get(\"axisLine\"),r=this.get(\"axisTick\"),o=this.get(\"axisLabel\"),a=this.get(\"name\"),s=this.get(\"name.show\"),l=this.get(\"name.formatter\"),u=this.get(\"nameGap\"),h=this.get(\"triggerEvent\"),c=V(this.get(\"indicator\")||[],function(c){null!=c.max&&c.max>0&&!c.min?c.min=0:null!=c.min&&c.min<0&&!c.max&&(c.max=0);var d=a;if(null!=c.color&&(d=L({color:c.color},a)),c=D(A(c),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:c.text,nameLocation:\"end\",nameGap:u,nameTextStyle:d,triggerEvent:h},!1),s||(c.name=\"\"),\"string\"==typeof l){var f=c.name;c.name=l.replace(\"{value}\",null!=f?f:\"\")}else\"function\"==typeof l&&(c.name=l(c.name,c));var p=C(new pl(c,null,this.ecModel),Hp);return p.mainType=\"radar\",p.componentIndex=this.componentIndex,p},this);this.getIndicatorModels=function(){return c}},defaultOption:{zlevel:0,z:0,center:[\"50%\",\"50%\"],radius:\"75%\",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:\"polygon\",axisLine:D({lineStyle:{color:\"#bbb\"}},Nv.axisLine),axisLabel:Ev(Nv.axisLabel,!1),axisTick:Ev(Nv.axisTick,!1),splitLine:Ev(Nv.splitLine,!0),splitArea:Ev(Nv.splitArea,!0),indicator:[]}});var zv=[\"axisLine\",\"axisTickLabel\",\"axisName\"];uf({type:\"radar\",render:function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var e=t.coordinateSystem;B(V(e.getIndicatorAxes(),function(t){return new Lm(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(t){B(zv,t.add,t),this.group.add(t.getGroup())},this)},_buildSplitLineAndArea:function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get(\"shape\"),r=t.getModel(\"splitLine\"),o=t.getModel(\"splitArea\"),a=r.getModel(\"lineStyle\"),s=o.getModel(\"areaStyle\"),l=r.get(\"show\"),u=o.get(\"show\"),h=a.get(\"color\"),d=s.get(\"color\");h=Y(h)?h:[h],d=Y(d)?d:[d];var f=[],p=[];if(\"circle\"===i)for(var g=n[0].getTicksCoords(),m=e.cx,v=e.cy,y=0;y\"+V(n,function(n,i){var r=e.get(e.mapDimension(n.dim),t);return jl(n.name+\" : \"+r)}).join(\"
\")},defaultOption:{zlevel:0,z:2,coordinateSystem:\"radar\",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:\"solid\"},label:{position:\"top\"},symbol:\"emptyCircle\",symbolSize:4}});function Bv(t){return!isNaN(t[0])&&!isNaN(t[1])}function Vv(t){return[t.cx,t.cy]}cf({type:\"radar\",render:function(t,e,n){var i=t.coordinateSystem,r=this.group,o=t.getData(),a=this._data;function s(t,e){var n=t.getItemVisual(e,\"symbol\")||\"circle\",i=t.getItemVisual(e,\"color\");if(\"none\"!==n){var r=function(t){return Y(t)||(t=[+t,+t]),t}(t.getItemVisual(e,\"symbolSize\")),o=Jp(n,-1,-1,2,2,i);return o.attr({style:{strokeNoScale:!0},z2:100,scale:[r[0]/2,r[1]/2]}),o}}function l(e,n,i,r,o,a){i.removeAll();for(var l=0;l\"+jl(i+\" : \"+n)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:\"geo\",map:\"\",left:\"center\",top:\"center\",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:\"#000\"},itemStyle:{borderWidth:.5,borderColor:\"#444\",areaColor:\"#eee\"},emphasis:{label:{show:!0,color:\"rgb(100,0,0)\"},itemStyle:{areaColor:\"rgba(255,215,0,0.8)\"}}}}),pv);var ny=\"\\0_ec_interaction_mutex\";function iy(t,e){return!!ry(t)[e]}function ry(t){return t[ny]||(t[ny]={})}function oy(t){this.pointerChecker,this._zr=t,this._opt={};var e=H,n=e(ay,this),i=e(sy,this),r=e(ly,this),o=e(uy,this),a=e(hy,this);Ft.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,s){this.disable(),this._opt=L(A(s)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&\"move\"!==e&&\"pan\"!==e||(t.on(\"mousedown\",n),t.on(\"mousemove\",i),t.on(\"mouseup\",r)),!0!==e&&\"scale\"!==e&&\"zoom\"!==e||(t.on(\"mousewheel\",o),t.on(\"pinch\",a))},this.disable=function(){t.off(\"mousedown\",n),t.off(\"mousemove\",i),t.off(\"mouseup\",r),t.off(\"mousewheel\",o),t.off(\"pinch\",a)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function ay(t){if(!(Kt(t)||t.target&&t.target.draggable)){var e=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0)}}function sy(t){if(this._dragging&&fy(\"moveOnMouseMove\",t,this._opt)&&\"pinch\"!==t.gestureEvent&&!iy(this._zr,\"globalPan\")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,o=e-i,a=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&qt(t.event),dy(this,\"pan\",\"moveOnMouseMove\",t,{dx:o,dy:a,oldX:i,oldY:r,newX:e,newY:n})}}function ly(t){Kt(t)||(this._dragging=!1)}function uy(t){var e=fy(\"zoomOnMouseWheel\",t,this._opt),n=fy(\"moveOnMouseWheel\",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1;cy(this,\"zoom\",\"zoomOnMouseWheel\",t,{scale:i>0?s:1/s,originX:o,originY:a})}if(n){var l=Math.abs(i);cy(this,\"scrollMove\",\"moveOnMouseWheel\",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a})}}}function hy(t){iy(this._zr,\"globalPan\")||cy(this,\"zoom\",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY})}function cy(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(qt(i.event),dy(t,e,n,i,r))}function dy(t,e,n,i,r){r.isAvailableBehavior=H(fy,null,n,i),t.trigger(e,r)}function fy(t,e,n){var i=n[t];return!t||i&&(!U(i)||e.event[i+\"Key\"])}function py(t,e,n){var i=t.target,r=i.position;r[0]+=e,r[1]+=n,i.dirty()}function gy(t,e,n,i){var r=t.target,o=t.zoomLimit,a=r.position,s=r.scale,l=t.zoom=t.zoom||1;if(l*=e,o){var u=o.min||0,h=o.max||1/0;l=Math.max(Math.min(h,l),u)}var c=l/t.zoom;t.zoom=l,a[0]-=(n-a[0])*(c-1),a[1]-=(i-a[1])*(c-1),s[0]*=c,s[1]*=c,r.dirty()}ef({type:\"takeGlobalCursor\",event:\"globalCursorTaken\",update:\"update\"},function(){}),z(oy,Ft);var my={axisPointer:1,tooltip:1,brush:1};function vy(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!my[i.mainType]&&r&&r.model!==n}function yy(t,e){var n=t.getItemStyle(),i=t.get(\"areaColor\");return null!=i&&(n.fill=i),n}function xy(t,e){e.eachChild(function(e){B(e.__regions,function(n){e.trigger(t.isSelected(n.name)?\"emphasis\":\"normal\")})})}function _y(t,e){var n=new On;this.uid=yl(\"ec_map_draw\"),this._controller=new oy(t.getZr()),this._controllerHost={target:e?n:null},this.group=n,this._updateGroup=e,this._mouseDownFlag,this._mapName,this._initialized,n.add(this._regionsGroup=new On),n.add(this._backgroundGroup=new On)}_y.prototype={constructor:_y,draw:function(t,e,n,i,r){var o=\"geo\"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:\"series\",subType:\"map\"},function(e){a||e.getHostGeoModel()!==t||(a=e.getData())});var s=t.coordinateSystem;this._updateBackground(s);var l=this._regionsGroup,u=this.group,h=s.scale,c={position:s.position,scale:h};!l.childAt(0)||r?u.attr(c):$s(u,c,t),l.removeAll();var d=[\"itemStyle\"],f=[\"emphasis\",\"itemStyle\"],p=[\"label\"],g=[\"emphasis\",\"label\"],m=ht();B(s.regions,function(e){var n=m.get(e.name)||m.set(e.name,new On),i=new as({shape:{paths:[]}});n.add(i);var r,s=(T=t.getRegionModel(e.name)||t).getModel(d),u=T.getModel(f),c=yy(s),v=yy(u),y=T.getModel(p),x=T.getModel(g);if(a){r=a.indexOfName(e.name);var _=a.getItemVisual(r,\"color\",!0);_&&(c.fill=_)}B(e.geometries,function(t){if(\"polygon\"===t.type){i.shape.paths.push(new Za({shape:{points:t.exterior}}));for(var e=0;e<(t.interiors?t.interiors.length:0);e++)i.shape.paths.push(new Za({shape:{points:t.interiors[e]}}))}}),i.setStyle(c),i.style.strokeNoScale=!0,i.culling=!0;var b=y.get(\"show\"),w=x.get(\"show\"),M=a&&isNaN(a.get(a.mapDimension(\"value\"),r)),S=a&&a.getItemLayout(r);if(o||M&&(b||w)||S&&S.showLabel){var I,A=o?e.name:r;(!a||r>=0)&&(I=t);var D=new za({position:e.center.slice(),scale:[1/h[0],1/h[1]],z2:10,silent:!0});js(D.style,D.hoverStyle={},y,x,{labelFetcher:I,labelDataIndex:A,defaultText:e.name,useInsideStyle:!1},{textAlign:\"center\",textVerticalAlign:\"middle\"}),n.add(D)}if(a)a.setItemGraphicEl(r,n);else{var T=t.getRegionModel(e.name);i.eventData={componentType:\"geo\",componentIndex:t.componentIndex,geoIndex:t.componentIndex,name:e.name,region:T&&T.option||{}}}(n.__regions||(n.__regions=[])).push(e),n.highDownSilentOnTouch=!!t.get(\"selectedMode\"),Fs(n,v),l.add(n)}),this._updateController(t,e,n),function(t,e,n,i,r){n.off(\"click\"),n.off(\"mousedown\"),e.get(\"selectedMode\")&&(n.on(\"mousedown\",function(){t._mouseDownFlag=!0}),n.on(\"click\",function(o){if(t._mouseDownFlag){t._mouseDownFlag=!1;for(var a=o.target;!a.__regions;)a=a.parent;if(a){var s={type:(\"geo\"===e.mainType?\"geo\":\"map\")+\"ToggleSelect\",batch:V(a.__regions,function(t){return{name:t.name,from:r.uid}})};s[e.mainType+\"Id\"]=e.id,i.dispatchAction(s),xy(e,n)}}}))}(this,t,l,n,i),xy(t,l)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&$v.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(t){var e=t.map;this._mapName!==e&&B($v.makeGraphic(e,this.uid),function(t){this._backgroundGroup.add(t)},this),this._mapName=e},_updateController:function(t,e,n){var i=t.coordinateSystem,r=this._controller,o=this._controllerHost;o.zoomLimit=t.get(\"scaleLimit\"),o.zoom=i.getZoom(),r.enable(t.get(\"roam\")||!1);var a=t.mainType;function s(){var e={type:\"geoRoam\",componentType:a};return e[a+\"Id\"]=t.id,e}r.off(\"pan\").on(\"pan\",function(t){this._mouseDownFlag=!1,py(o,t.dx,t.dy),n.dispatchAction(C(s(),{dx:t.dx,dy:t.dy}))},this),r.off(\"zoom\").on(\"zoom\",function(t){if(this._mouseDownFlag=!1,gy(o,t.scale,t.originX,t.originY),n.dispatchAction(C(s(),{zoom:t.scale,originX:t.originX,originY:t.originY})),this._updateGroup){var e=this.group.scale;this._regionsGroup.traverse(function(t){\"text\"===t.type&&t.attr(\"scale\",[1/e[0],1/e[1]])})}},this),r.setPointerChecker(function(e,r,o){return i.getViewRectAfterRoam().contain(r,o)&&!vy(e,n,t)})}};var by=\"__seriesMapHighDown\",wy=\"__seriesMapCallKey\";function My(t){var e=this[by];e&&e.recordVersion===this[wy]&&Sy(e,t)}function Sy(t,e){var n=t.circle,i=t.labelModel,r=t.hoverLabelModel,o=t.emphasisText,a=t.normalText;e?(n.style.extendFrom(Ys({},r,{text:r.get(\"show\")?o:null},{isRectText:!0,useInsideStyle:!1},!0)),n.__mapOriginalZ2=n.z2,n.z2+=gs):(Ys(n.style,i,{text:i.get(\"show\")?a:null,textPosition:i.getShallow(\"position\")||\"bottom\"},{isRectText:!0,useInsideStyle:!1}),n.dirty(!1),null!=n.__mapOriginalZ2&&(n.z2=n.__mapOriginalZ2,n.__mapOriginalZ2=null))}function Iy(t,e,n){var i=t.getZoom(),r=t.getCenter(),o=e.zoom,a=t.dataToPoint(r);if(null!=e.dx&&null!=e.dy&&(a[0]-=e.dx,a[1]-=e.dy,r=t.pointToData(a),t.setCenter(r)),null!=o){if(n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(i*o,l),s)/i}t.scale[0]*=o,t.scale[1]*=o;var u=t.position,h=(e.originX-u[0])*(o-1),c=(e.originY-u[1])*(o-1);u[0]-=h,u[1]-=c,t.updateTransform(),r=t.pointToData(a),t.setCenter(r),t.setZoom(o*i)}return{center:t.getCenter(),zoom:t.getZoom()}}cf({type:\"map\",render:function(t,e,n,i){if(!i||\"mapToggleSelect\"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){if(i&&\"geoRoam\"===i.type&&\"series\"===i.componentType&&i.seriesId===t.id)(o=this._mapDraw)&&r.add(o.group);else if(t.needsDrawMap){var o=this._mapDraw||new _y(n,!0);r.add(o.group),o.draw(t,e,n,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get(\"showLegendSymbol\")&&e.getComponent(\"legend\")&&this._renderSymbols(t,e,n)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,e,n){var i=t.originalData,r=this.group;i.each(i.mapDimension(\"value\"),function(e,n){if(!isNaN(e)){var o=i.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new Ra({style:{fill:t.getData().getVisual(\"color\")},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:gs+1)});if(!s){var u=t.mainSeries.getData(),h=i.getName(n),c=u.indexOfName(h),d=i.getItemModel(n),f=d.getModel(\"label\"),p=d.getModel(\"emphasis.label\"),g=u.getItemGraphicEl(c),m=tt(t.getFormattedLabel(c,\"normal\"),h),v=tt(t.getFormattedLabel(c,\"emphasis\"),m),y=g[by],x=Math.random();if(!y){y=g[by]={};var _=j(My,!0),b=j(My,!1);g.on(\"mouseover\",_).on(\"mouseout\",b).on(\"emphasis\",_).on(\"normal\",b)}g[wy]=x,C(y,{recordVersion:x,circle:l,labelModel:f,hoverLabelModel:p,emphasisText:v,normalText:m}),Sy(y,!1)}r.add(l)}}})}}),ef({type:\"geoRoam\",event:\"geoRoam\",update:\"updateTransform\"},function(t,e){var n=t.componentType||\"series\";e.eachComponent({mainType:n,query:t},function(e){var i=e.coordinateSystem;if(\"geo\"===i.type){var r=Iy(i,t,e.get(\"scaleLimit\"));e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom),\"series\"===n&&B(e.seriesGroup,function(t){t.setCenter(r.center),t.setZoom(r.zoom)})}})});var Ay=Ot;function Dy(){_e.call(this)}function Ty(t){this.name=t,this.zoomLimit,_e.call(this),this._roamTransformable=new Dy,this._rawTransformable=new Dy,this._center,this._zoom}function Cy(t,e,n,i){var r=n.seriesModel,o=r?r.coordinateSystem:null;return o===this?o[t](i):null}function Ly(t,e,n,i){Ty.call(this,t),this.map=e;var r=$v.load(e,n);this._nameCoordMap=r.nameCoordMap,this._regionsMap=r.regionsMap,this._invertLongitute=null==i||i,this.regions=r.regions,this._rect=r.boundingRect}function ky(t,e,n,i){var r=n.geoModel,o=n.seriesModel,a=r?r.coordinateSystem:o?o.coordinateSystem||(o.getReferringComponents(\"geo\")[0]||{}).coordinateSystem:null;return a===this?a[t](i):null}function Py(t,e){var n=t.get(\"boundingCoords\");if(null!=n){var i=n[0],r=n[1];isNaN(i[0])||isNaN(i[1])||isNaN(r[0])||isNaN(r[1])?c&&console.error(\"Invalid boundingCoords\"):this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}var o,a=this.getBoundingRect(),s=t.get(\"layoutCenter\"),l=t.get(\"layoutSize\"),u=e.getWidth(),h=e.getHeight(),d=a.width/a.height*this.aspectScale,f=!1;if(s&&l&&(s=[bl(s[0],u),bl(s[1],h)],l=bl(l,Math.min(u,h)),isNaN(s[0])||isNaN(s[1])||isNaN(l)?c&&console.warn(\"Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead.\"):f=!0),f){var p={};d>1?(p.width=l,p.height=l/d):(p.height=l,p.width=l*d),p.y=s[1]-p.height/2,p.x=s[0]-p.width/2}else(o=t.getBoxLayoutParams()).aspect=d,p=su(o,{width:u,height:h});this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(t.get(\"center\")),this.setZoom(t.get(\"zoom\"))}function Oy(t,e){B(e.get(\"geoCoord\"),function(e,n){t.addGeoCoord(n,e)})}z(Dy,_e),Ty.prototype={constructor:Ty,type:\"view\",dimensions:[\"x\",\"y\"],setBoundingRect:function(t,e,n,i){return this._rect=new Pn(t,e,n,i),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,n,i){this.transformTo(t,e,n,i),this._viewRect=new Pn(t,e,n,i)},transformTo:function(t,e,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new Pn(t,e,n,i)),o.decomposeTransform(),this._updateTransform()},setCenter:function(t){t&&(this._center=t,this._updateCenterAndZoom())},setZoom:function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=Ot([],i,t),n=Ot([],n,t),e.origin=i,e.position=[n[0]-i[0],n[1]-i[1]],e.scale=[r,r],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),ue(this.transform||(this.transform=[]),e.transform||se()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],pe(this.invTransform,this.transform),this.decomposeTransform()},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,e,n){var i=e?this._rawTransform:this.transform;return n=n||[],i?Ay(n,t,i):mt(n,t)},pointToData:function(t){var e=this.invTransform;return e?Ay([],t,e):[t[0],t[1]]},convertToPixel:j(Cy,\"dataToPoint\"),convertFromPixel:j(Cy,\"pointToData\"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},z(Ty,_e),Ly.prototype={constructor:Ly,type:\"geo\",dimensions:[\"lng\",\"lat\"],containCoord:function(t){for(var e=this.regions,n=0;n=0;){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,u=o.hierNode.modifier,h=a.hierNode.modifier,c=s.hierNode.modifier;s=Qy(s),o=Jy(o),s&&o;){r=Qy(r),a=Jy(a),r.hierNode.ancestor=t;var d=s.hierNode.prelim+c-o.hierNode.prelim-u+i(s,o);d>0&&(tx($y(s,t,n),t,d),u+=d,l+=d),c+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,h+=a.hierNode.modifier}s&&!Qy(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=c-l),o&&!Jy(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-h,n=t)}return n}(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function Xy(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function qy(t){return arguments.length?t:ex}function Ky(t,e){var n={};return t-=Math.PI/2,n.x=e*Math.cos(t),n.y=e*Math.sin(t),n}function Qy(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function Jy(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function $y(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function tx(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function ex(t,e){return t.parentNode===e.parentNode?1:2}function nx(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)&&\"none\"!==t.getItemVisual(e,\"symbol\")}function ix(t,e,n){return n.itemModel=e,n.itemStyle=e.getModel(\"itemStyle\").getItemStyle(),n.hoverItemStyle=e.getModel(\"emphasis.itemStyle\").getItemStyle(),n.lineStyle=e.getModel(\"lineStyle\").getLineStyle(),n.labelModel=e.getModel(\"label\"),n.hoverLabelModel=e.getModel(\"emphasis.label\"),!1===t.isExpand&&0!==t.children.length?n.symbolInnerColor=n.itemStyle.fill:n.symbolInnerColor=\"#fff\",n}function rx(t,e,n,i,r,o){var a=!n,s=t.tree.getNodeByDataIndex(e),l=s.getModel(),u=(o=ix(s,l,o),t.tree.root),h=s.parentNode===u?s:s.parentNode||s,c=t.getItemGraphicEl(h.dataIndex),d=h.getLayout(),f=c?{x:c.position[0],y:c.position[1],rawX:c.__radialOldRawX,rawY:c.__radialOldRawY}:d,p=s.getLayout();a?(n=new Mg(t,e,o)).attr(\"position\",[f.x,f.y]):n.updateData(t,e,o),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=p.rawX,n.__radialRawY=p.rawY,i.add(n),t.setItemGraphicEl(e,n),$s(n,{position:[p.x,p.y]},r);var g=n.getSymbolPath();if(\"radial\"===o.layout){var m,v,y=u.children[0],x=y.getLayout(),_=y.children.length;if(p.x===x.x&&!0===s.isExpand){var b={};b.x=(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,b.y=(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2,(m=Math.atan2(b.y-x.y,b.x-x.x))<0&&(m=2*Math.PI+m),(v=b.xx.x)||(m-=Math.PI);var w=v?\"left\":\"right\";g.setStyle({textPosition:w,textRotation:-m,textOrigin:\"center\",verticalAlign:\"middle\"})}if(s.parentNode&&s.parentNode!==u){var M=n.__edge;M||(M=n.__edge=new rs({shape:ax(o,f,f),style:L({opacity:0,strokeNoScale:!0},o.lineStyle)})),$s(M,{shape:ax(o,d,p),style:{opacity:1}},r),i.add(M)}}function ox(t,e,n,i,r,o){for(var a,s=t.tree.getNodeByDataIndex(e),l=t.tree.root,u=s.getModel(),h=(o=ix(s,u,o),s.parentNode===l?s:s.parentNode||s);null==(a=h.getLayout());)h=h.parentNode===l?h:h.parentNode||h;$s(n,{position:[a.x+1,a.y+1]},r,function(){i.remove(n),t.setItemGraphicEl(e,null)}),n.fadeOut(null,{keepLabel:!0});var c=n.__edge;c&&$s(c,{shape:ax(o,a,a),style:{opacity:0}},r,function(){i.remove(c)})}function ax(t,e,n){var i,r,o,a,s,l,u,h,c=t.orient;if(\"radial\"===t.layout){s=e.rawX,u=e.rawY,l=n.rawX,h=n.rawY;var d=Ky(s,u),f=Ky(s,u+(h-u)*t.curvature),p=Ky(l,h+(u-h)*t.curvature),g=Ky(l,h);return{x1:d.x,y1:d.y,x2:g.x,y2:g.y,cpx1:f.x,cpy1:f.y,cpx2:p.x,cpy2:p.y}}return s=e.x,u=e.y,l=n.x,h=n.y,\"LR\"!==c&&\"RL\"!==c||(i=s+(l-s)*t.curvature,r=u,o=l+(s-l)*t.curvature,a=h),\"TB\"!==c&&\"BT\"!==c||(i=s,r=u+(h-u)*t.curvature,o=l,a=h+(u-h)*t.curvature),{x1:s,y1:u,x2:l,y2:h,cpx1:i,cpy1:r,cpx2:o,cpy2:a}}function sx(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function lx(t,e,n){if(t&&N(e,t.type)>=0){var i=n.getData().tree.root,r=t.targetNode;if(\"string\"==typeof r&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function ux(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function hx(t,e){return N(ux(t),e)>=0}function cx(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}Yy.prototype={constructor:Yy,isRemoved:function(){return this.dataIndex<0},eachNode:function(t,e,n){\"function\"==typeof t&&(n=e,e=t,t=null),U(t=t||{})&&(t={order:t});var i,r=t.order||\"preorder\",o=this[t.attr||\"children\"];\"preorder\"===r&&(i=e.call(n,this));for(var a=0;!i&&ae&&(e=i.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var e,n=this.hostTree,i=n.data.getItemModel(this.dataIndex),r=this.getLevelModel();return r||0!==this.children.length&&(0===this.children.length||!1!==this.isExpand)||(e=this.getLeavesModel()),i.getModel(t,(r||e||n.hostModel).getModel(t))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},getLeavesModel:function(){return this.hostTree.leavesModel},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},isDescendantOf:function(t){return t!==this&&t.isAncestorOf(this)}},Zy.prototype={constructor:Zy,type:\"tree\",eachNode:function(t,e,n){this.root.eachNode(t,e,n)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;no&&(o=t.depth)});var a=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return r.root.eachNode(\"preorder\",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a}),r.data},getOrient:function(){var t=this.get(\"orient\");return\"horizontal\"===t?t=\"LR\":\"vertical\"===t&&(t=\"TB\"),t},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},formatTooltip:function(t){for(var e=this.getData().tree,n=e.root.children[0],i=e.getNodeByDataIndex(t),r=i.getValue(),o=i.name;i&&i!==n;)o=i.parentNode.name+\".\"+o,i=i.parentNode;return jl(o+(isNaN(r)||null==r?\"\":\" : \"+r))},defaultOption:{zlevel:0,z:2,coordinateSystem:\"view\",left:\"12%\",top:\"12%\",right:\"12%\",bottom:\"12%\",layout:\"orthogonal\",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:\"LR\",symbol:\"emptyCircle\",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:\"#ccc\",width:1.5,curveness:.5},itemStyle:{color:\"lightsteelblue\",borderColor:\"#c23531\",borderWidth:1.5},label:{show:!0,color:\"#555\"},leaves:{label:{show:!0}},animationEasing:\"linear\",animationDuration:700,animationDurationUpdate:1e3}}),cf({type:\"tree\",init:function(t,e){this._oldTree,this._mainGroup=new On,this._controller=new oy(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(t,e,n,i){var r=t.getData(),o=t.layoutInfo,a=this._mainGroup,s=t.get(\"layout\");\"radial\"===s?a.attr(\"position\",[o.x+o.width/2,o.y+o.height/2]):a.attr(\"position\",[o.x,o.y]),this._updateViewCoordSys(t),this._updateController(t,e,n);var l=this._data,u={expandAndCollapse:t.get(\"expandAndCollapse\"),layout:s,orient:t.getOrient(),curvature:t.get(\"lineStyle.curveness\"),symbolRotate:t.get(\"symbolRotate\"),symbolOffset:t.get(\"symbolOffset\"),hoverAnimation:t.get(\"hoverAnimation\"),useNameLabel:!0,fadeIn:!0};r.diff(l).add(function(e){nx(r,e)&&rx(r,e,null,a,t,u)}).update(function(e,n){var i=l.getItemGraphicEl(n);nx(r,e)?rx(r,e,i,a,t,u):i&&ox(l,n,i,a,t,u)}).remove(function(e){var n=l.getItemGraphicEl(e);n&&ox(l,e,n,a,t,u)}).execute(),this._nodeScaleRatio=t.get(\"nodeScaleRatio\"),this._updateNodeAndLinkScale(t),!0===u.expandAndCollapse&&r.eachItemGraphicEl(function(e,i){e.off(\"click\").on(\"click\",function(){n.dispatchAction({type:\"treeExpandAndCollapse\",seriesId:t.id,dataIndex:i})})}),this._data=r},_updateViewCoordSys:function(t){var e=t.getData(),n=[];e.each(function(t){var i=e.getItemLayout(t);!i||isNaN(i.x)||isNaN(i.y)||n.push([+i.x,+i.y])});var i=[],r=[];Po(n,i,r),r[0]-i[0]==0&&(r[0]+=1,i[0]-=1),r[1]-i[1]==0&&(r[1]+=1,i[1]-=1);var o=t.coordinateSystem=new Ty;o.zoomLimit=t.get(\"scaleLimit\"),o.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1]),o.setCenter(t.get(\"center\")),o.setZoom(t.get(\"zoom\")),this.group.attr({position:o.position,scale:o.scale}),this._viewCoordSys=o},_updateController:function(t,e,n){var i=this._controller,r=this._controllerHost,o=this.group;i.setPointerChecker(function(e,i,r){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(i,r)&&!vy(e,n,t)}),i.enable(t.get(\"roam\")),r.zoomLimit=t.get(\"scaleLimit\"),r.zoom=t.coordinateSystem.getZoom(),i.off(\"pan\").off(\"zoom\").on(\"pan\",function(e){py(r,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:\"treeRoam\",dx:e.dx,dy:e.dy})},this).on(\"zoom\",function(e){gy(r,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:\"treeRoam\",zoom:e.scale,originX:e.originX,originY:e.originY}),this._updateNodeAndLinkScale(t)},this)},_updateNodeAndLinkScale:function(t){var e=t.getData(),n=this._getNodeGlobalScale(t),i=[n,n];e.eachItemGraphicEl(function(t,e){t.attr(\"scale\",i)})},_getNodeGlobalScale:function(t){var e=t.coordinateSystem;if(\"view\"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scale,r=i&&i[0]||1;return((e.getZoom()-1)*n+1)/r},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}}),ef({type:\"treeExpandAndCollapse\",event:\"treeExpandAndCollapse\",update:\"update\"},function(t,e){e.eachComponent({mainType:\"series\",subType:\"tree\",query:t},function(e){var n=t.dataIndex,i=e.getData().tree.getNodeByDataIndex(n);i.isExpand=!i.isExpand})}),ef({type:\"treeRoam\",event:\"treeRoam\",update:\"none\"},function(t,e){e.eachComponent({mainType:\"series\",subType:\"tree\",query:t},function(e){var n=Iy(e.coordinateSystem,t);e.setCenter&&e.setCenter(n.center),e.setZoom&&e.setZoom(n.zoom)})}),of(am(\"tree\",\"circle\")),rf(function(t,e){t.eachSeriesByType(\"tree\",function(t){!function(t,e){var n=function(t,e){return su(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=n;var i=t.get(\"layout\"),r=0,o=0,a=null;\"radial\"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=qy(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(r=n.width,o=n.height,a=qy());var s=t.getData().tree.root,l=s.children[0];if(l){!function(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e,n,i=[t];e=i.pop();)if(n=e.children,e.isExpand&&n.length)for(var r=n.length-1;r>=0;r--){var o=n[r];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},i.push(o)}}(s),function(t,e,n){for(var i,r=[t],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;sh.getLayout().x&&(h=t),t.depth>c.depth&&(c=t)});var d=u===h?1:a(u,h)/2,f=d-u.getLayout().x,p=0,g=0,m=0,v=0;if(\"radial\"===i)p=r/(h.getLayout().x+d+f),g=o/(c.depth-1||1),sx(l,function(t){m=(t.getLayout().x+f)*p,v=(t.depth-1)*g;var e=Ky(m,v);t.setLayout({x:e.x,y:e.y,rawX:m,rawY:v},!0)});else{var y=t.getOrient();\"RL\"===y||\"LR\"===y?(g=o/(h.getLayout().x+d+f),p=r/(c.depth-1||1),sx(l,function(t){v=(t.getLayout().x+f)*g,m=\"LR\"===y?(t.depth-1)*p:r-(t.depth-1)*p,t.setLayout({x:m,y:v},!0)})):\"TB\"!==y&&\"BT\"!==y||(p=r/(h.getLayout().x+d+f),g=o/(c.depth-1||1),sx(l,function(t){m=(t.getLayout().x+f)*p,v=\"TB\"===y?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:m,y:v},!0)}))}}}(t,e)})}),Vh.extend({type:\"series.treemap\",layoutMode:\"box\",dependencies:[\"grid\",\"polar\"],_viewRoot:null,defaultOption:{progressive:0,hoverLayerThreshold:1/0,left:\"center\",top:\"middle\",right:null,bottom:null,width:\"80%\",height:\"80%\",sort:!0,clipWindow:\"origin\",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:\"▶\",zoomToNodeRatio:.1024,roam:!0,nodeClick:\"zoomToNode\",animation:!0,animationDurationUpdate:900,animationEasing:\"quinticInOut\",breadcrumb:{show:!0,height:22,left:\"center\",top:\"bottom\",emptyItemWidth:25,itemStyle:{color:\"rgba(0,0,0,0.7)\",borderColor:\"rgba(255,255,255,0.7)\",borderWidth:1,shadowColor:\"rgba(150,150,150,1)\",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:\"#fff\"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:\"inside\",color:\"#fff\",ellipsis:!0},upperLabel:{show:!1,position:[0,\"50%\"],height:20,color:\"#fff\",ellipsis:!0,verticalAlign:\"middle\"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:\"#fff\",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,\"50%\"],color:\"#fff\",ellipsis:!0,verticalAlign:\"middle\"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:\"index\",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(t,e){var n={name:t.name,children:t.data};!function t(e){var n=0;B(e.children,function(e){t(e);var i=e.value;Y(i)&&(i=i[0]),n+=i});var i=e.value;Y(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=n),i<0&&(i=0),Y(e.value)?e.value[0]=i:e.value=i}(n);var i=t.levels||[];i=t.levels=function(t,e){var n,i=e.get(\"color\");if(i)return B(t=t||[],function(t){var e=new pl(t),i=e.get(\"color\");(e.get(\"itemStyle.color\")||i&&\"none\"!==i)&&(n=!0)}),n||((t[0]||(t[0]={})).color=i.slice()),t}(i,e);var r={};return r.levels=i,Zy.createTree(n,this,r).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var e=this.getData(),n=this.getRawValue(t),i=Y(n)?Vl(n[0]):Vl(n);return jl(e.getName(t)+\": \"+i)},getDataParams:function(t){var e=Vh.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=cx(n,this),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},C(this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=ht(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});var dx=5;function fx(t){this.group=new On,t.add(this.group)}function px(t,e,n,i,r,o){var a=[[r?t:t-dx,e],[t+n,e],[t+n,e+i],[r?t:t-dx,e+i]];return!o&&a.splice(2,0,[t+n+dx,e+i/2]),!r&&a.push([t,e+i/2]),a}function gx(t,e,n){t.eventData={componentType:\"series\",componentSubType:\"treemap\",componentIndex:e.componentIndex,seriesIndex:e.componentIndex,seriesName:e.name,seriesType:\"treemap\",selfType:\"breadcrumb\",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&cx(n,e)}}fx.prototype={constructor:fx,render:function(t,e,n,i){var r=t.getModel(\"breadcrumb\"),o=this.group;if(o.removeAll(),r.get(\"show\")&&n){var a=r.getModel(\"itemStyle\"),s=a.getModel(\"textStyle\"),l={pos:{left:r.get(\"left\"),right:r.get(\"right\"),top:r.get(\"top\"),bottom:r.get(\"bottom\")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get(\"emptyItemWidth\"),totalWidth:0,renderList:[]};this._prepare(n,l,s),this._renderContent(t,l,a,s,i),lu(o,l.pos,l.box)}},_prepare:function(t,e,n){for(var i=t;i;i=i.parentNode){var r=i.getModel().get(\"name\"),o=n.getTextRect(r),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:i,text:r,width:a})}},_renderContent:function(t,e,n,i,r){for(var o,a,s,l,u,h,c,d,f,p=0,g=e.emptyItemWidth,m=t.get(\"breadcrumb.height\"),v=(o=e.pos,a=e.box,l=a.width,u=a.height,h=bl(o.x,l),c=bl(o.y,u),d=bl(o.x2,l),f=bl(o.y2,u),(isNaN(h)||isNaN(parseFloat(o.x)))&&(h=0),(isNaN(d)||isNaN(parseFloat(o.x2)))&&(d=l),(isNaN(c)||isNaN(parseFloat(o.y)))&&(c=0),(isNaN(f)||isNaN(parseFloat(o.y2)))&&(f=u),s=Gl(s||0),{width:Math.max(d-h-s[1]-s[3],0),height:Math.max(f-c-s[0]-s[2],0)}),y=e.totalWidth,x=e.renderList,_=x.length-1;_>=0;_--){var b=x[_],w=b.node,M=b.width,S=b.text;y>v.width&&(y-=M-g,M=g,S=null);var I=new Za({shape:{points:px(p,0,M,m,_===x.length-1,0===_)},style:L(n.getItemStyle(),{lineJoin:\"bevel\",text:S,textFill:i.getTextColor(),textFont:i.getFont()}),z:10,onclick:j(r,w)});this.group.add(I),gx(I,t,w),p+=M+8}},remove:function(){this.group.removeAll()}};var mx=H,vx=On,yx=$a,xx=B,_x=[\"label\"],bx=[\"emphasis\",\"label\"],Mx=[\"upperLabel\"],Sx=[\"emphasis\",\"upperLabel\"],Ix=10,Ax=1,Dx=2,Tx=$r([[\"fill\",\"color\"],[\"stroke\",\"strokeColor\"],[\"lineWidth\",\"strokeWidth\"],[\"shadowBlur\"],[\"shadowOffsetX\"],[\"shadowOffsetY\"],[\"shadowColor\"]]),Cx=function(t){var e=Tx(t);return e.stroke=e.fill=e.lineWidth=null,e};function Lx(t,e,n,i,r,o,a,s,l,u){if(a){var h=a.getLayout();if(h&&h.isInView){var c=h.width,d=h.height,f=h.borderWidth,p=h.invisible,g=a.getRawIndex(),m=s&&s.getRawIndex(),v=a.viewChildren,y=h.upperHeight,x=v&&v.length,_=a.getModel(\"itemStyle\"),b=a.getModel(\"emphasis.itemStyle\"),w=T(\"nodeGroup\",vx);if(w){if(l.add(w),w.attr(\"position\",[h.x||0,h.y||0]),w.__tmNodeWidth=c,w.__tmNodeHeight=d,h.isAboveViewRoot)return w;var M=T(\"background\",yx,u,Ax);if(M&&function(e,n,i){n.dataIndex=a.dataIndex,n.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:c,height:d});var r=a.getVisual(\"borderColor\",!0),o=b.get(\"borderColor\");I(n,function(){var t=Cx(_);t.fill=r;var e=Tx(b);if(e.fill=o,i){var a=c-2*f;D(t,e,r,a,y,{x:f,y:0,width:a,height:y})}else t.text=e.text=null;n.setStyle(t),Fs(n,e)}),e.add(n)}(w,M,x&&h.upperHeight),!x){var S=T(\"content\",yx,u,Dx);S&&function(e,n){n.dataIndex=a.dataIndex,n.seriesIndex=t.seriesIndex;var i=Math.max(c-2*f,0),r=Math.max(d-2*f,0);n.culling=!0,n.setShape({x:f,y:f,width:i,height:r});var o=a.getVisual(\"color\",!0);I(n,function(){var t=Cx(_);t.fill=o;var e=Tx(b);D(t,e,o,i,r),n.setStyle(t),Fs(n,e)}),e.add(n)}(w,S)}return w}}}function I(t,e){p?!t.invisible&&o.push(t):(e(),t.__tmWillVisible||(t.invisible=!1))}function D(e,n,i,r,o,s){var l=a.getModel(),u=$(t.getFormattedLabel(a.dataIndex,\"normal\",null,null,s?\"upperLabel\":\"label\"),l.get(\"name\"));if(!s&&h.isLeafRoot){var c=t.get(\"drillDownIcon\",!0);u=c?c+\" \"+u:u}var d=l.getModel(s?Mx:_x),f=l.getModel(s?Sx:bx),p=d.getShallow(\"show\");js(e,n,d,f,{defaultText:p?u:null,autoColor:i,isRectText:!0}),s&&(e.textRect=A(s)),e.truncate=p&&d.get(\"ellipsis\")?{outerWidth:r,outerHeight:o,minChar:2}:null}function T(t,o,s,l){var u=null!=m&&n[t][m],h=r[t];return u?(n[t][m]=null,function(t,e,n){(t[g]={}).old=\"nodeGroup\"===n?e.position.slice():C({},e.shape)}(h,u,t)):p||((u=new o({z:kx(s,l)})).__tmDepth=s,u.__tmStorageName=t,function(t,e,n){var o=t[g]={},s=a.parentNode;if(s&&(!i||\"drillDown\"===i.direction)){var l=0,u=0,h=r.background[s.getRawIndex()];!i&&h&&h.old&&(l=h.old.width,u=h.old.height),o.old=\"nodeGroup\"===n?[0,u]:{x:l,y:u,width:0,height:0}}o.fadein=\"nodeGroup\"!==n}(h,0,t)),e[t][g]=u}}function kx(t,e){var n=t*Ix+e;return(n-1)/n}cf({type:\"treemap\",init:function(t,e){this._containerGroup,this._storage={nodeGroup:[],background:[],content:[]},this._oldTree,this._breadcrumb,this._controller,this._state=\"ready\"},render:function(t,e,n,i){if(!(N(e.findComponents({mainType:\"series\",subType:\"treemap\",query:i}),t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var r=lx(i,[\"treemapZoomToNode\",\"treemapRootToNode\"],t),o=i&&i.type,a=t.layoutInfo,s=!this._oldTree,l=this._storage,u=\"treemapRootToNode\"===o&&r&&l?{rootNodeGroup:l.nodeGroup[r.node.getRawIndex()],direction:i.direction}:null,h=this._giveContainerGroup(a),c=this._doRender(h,t,u);s||o&&\"treemapZoomToNode\"!==o&&\"treemapRootToNode\"!==o?c.renderFinally():this._doAnimation(h,c,t,u),this._resetController(n),this._renderBreadcrumb(t,n,r)}},_giveContainerGroup:function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new vx,this._initEvents(e),this.group.add(e)),e.attr(\"position\",[t.x,t.y]),e},_doRender:function(t,e,n){var i=e.getData().tree,r=this._oldTree,o={nodeGroup:[],background:[],content:[]},a={nodeGroup:[],background:[],content:[]},s=this._storage,l=[],u=j(Lx,e,a,s,n,o,l);!function t(e,n,i,r,o){function a(t){return t.getId()}function s(a,s){var l=null!=a?e[a]:null,h=null!=s?n[s]:null,c=u(l,h,i,o);c&&t(l&&l.viewChildren||[],h&&h.viewChildren||[],c,r,o+1)}r?(n=e,xx(e,function(t,e){!t.isRemoved()&&s(e,e)})):new ff(n,e,a,a).add(s).update(s).remove(j(s,null)).execute()}(i.root?[i.root]:[],r&&r.root?[r.root]:[],t,i===r||!r,0);var h=function(t){var e={nodeGroup:[],background:[],content:[]};return t&&xx(t,function(t,n){var i=e[n];xx(t,function(t){t&&(i.push(t),t.__tmWillDelete=1)})}),e}(s);return this._oldTree=i,this._storage=a,{lastsForAnimation:o,willDeleteEls:h,renderFinally:function(){xx(h,function(t){xx(t,function(t){t.parent&&t.parent.remove(t)})}),xx(l,function(t){t.invisible=!0,t.dirty()})}}},_doAnimation:function(t,e,n,i){if(n.get(\"animation\")){var r=n.get(\"animationDurationUpdate\"),o=n.get(\"animationEasing\"),a=function(){var t,e=[],n={};return{add:function(t,i,r,o,a){return U(o)&&(a=o,o=0),!n[t.id]&&(n[t.id]=1,e.push({el:t,target:i,time:r,delay:o,easing:a}),!0)},done:function(e){return t=e,this},start:function(){for(var i=e.length,r=0,o=e.length;r3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:\"treemapMove\",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},_onZoom:function(t){var e=t.originX,n=t.originY;if(\"animating\"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new Pn(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var s=se();ce(s,s,[-e,-n]),fe(s,s,[t.scale,t.scale]),ce(s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:\"treemapRender\",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},_initEvents:function(t){t.on(\"click\",function(t){if(\"ready\"===this._state){var e=this.seriesModel.get(\"nodeClick\",!0);if(e){var n=this.findTarget(t.offsetX,t.offsetY);if(n){var i=n.node;if(i.getLayout().isLeafRoot)this._rootToNode(n);else if(\"zoomToNode\"===e)this._zoomToNode(n);else if(\"link\"===e){var r=i.hostTree.data.getItemModel(i.dataIndex),o=r.get(\"link\",!0),a=r.get(\"target\",!0)||\"blank\";o&&window.open(o,a)}}}}},this)},_renderBreadcrumb:function(t,e,n){n||(n=null!=t.get(\"leafDepth\",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new fx(this.group))).render(t,e,n.node,mx(function(e){\"animating\"!==this._state&&(hx(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))},this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state=\"ready\",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:\"treemapZoomToNode\",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:\"treemapRootToNode\",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:\"viewChildren\",order:\"preorder\"},function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}},this),n}});for(var Px=function(){},Ox=[\"treemapZoomToNode\",\"treemapRender\",\"treemapMove\"],Nx=0;Nx=0;o--)null==n[o]&&(delete i[e[o]],e.pop())}(i):Fx(i,!0):(rt(\"linear\"!==e||i.dataExtent),Fx(i))};Bx.prototype={constructor:Bx,mapValueToVisual:function(t){var e=this._normalizeData(t);return this._doMap(e,t)},getNormalizer:function(){return H(this._normalizeData,this)}};var Vx=Bx.visualHandlers={color:{applyVisual:Hx(\"color\"),getColorMapper:function(){var t=this.option;return H(\"category\"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),jx.call(this,t)}:function(e,n,i){var r=!!i;return!n&&(e=this._normalizeData(e)),i=Xe(e,t.parsedVisual,i),r?i:tn(i,\"rgba\")},this)},_doMap:{linear:function(t){return tn(Xe(t,this.option.parsedVisual),\"rgba\")},category:jx,piecewise:function(t,e){var n=Ux.call(this,e);return null==n&&(n=tn(Xe(t,this.option.parsedVisual),\"rgba\")),n},fixed:Yx}},colorHue:Gx(function(t,e){return Je(t,e)}),colorSaturation:Gx(function(t,e){return Je(t,null,e)}),colorLightness:Gx(function(t,e){return Je(t,null,null,e)}),colorAlpha:Gx(function(t,e){return $e(t,e)}),opacity:{applyVisual:Hx(\"opacity\"),_doMap:Zx([0,1])},liftZ:{applyVisual:Hx(\"liftZ\"),_doMap:{linear:Yx,category:Yx,piecewise:Yx,fixed:Yx}},symbol:{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);if(U(i))n(\"symbol\",i);else if(zx(i))for(var r in i)i.hasOwnProperty(r)&&n(r,i[r])},_doMap:{linear:Wx,category:jx,piecewise:function(t,e){var n=Ux.call(this,e);return null==n&&(n=Wx.call(this,t)),n},fixed:Yx}},symbolSize:{applyVisual:Hx(\"symbolSize\"),_doMap:Zx([0,1])}};function Fx(t,e){var n=t.visual,i=[];X(n)?Ex(n,function(t){i.push(t)}):null!=n&&i.push(n),e||1!==i.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(i[1]=i[0]),Xx(t,i)}function Gx(t){return{applyVisual:function(e,n,i){e=this.mapValueToVisual(e),i(\"color\",t(n(\"color\"),e))},_doMap:Zx([0,1])}}function Wx(t){var e=this.option.visual;return e[Math.round(_l(t,[0,1],[0,e.length-1],!0))]||{}}function Hx(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function jx(t){var e=this.option.visual;return e[this.option.loop&&t!==Rx?t%e.length:t]}function Yx(){return this.option.visual[0]}function Zx(t){return{linear:function(e){return _l(e,t,this.option.visual,!0)},category:jx,piecewise:function(e,n){var i=Ux.call(this,n);return null==i&&(i=_l(e,t,this.option.visual,!0)),i},fixed:Yx}}function Ux(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=n[Bx.findPieceIndex(t,n)];if(i&&i.visual)return i.visual[this.type]}}function Xx(t,e){return t.visual=e,\"color\"===t.type&&(t.parsedVisual=V(e,function(t){return je(t)})),e}var qx={linear:function(t){return _l(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=Bx.findPieceIndex(t,e,!0);if(null!=n)return _l(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?Rx:e},fixed:dt};function Kx(t,e,n){return t?e<=n:eu[1]&&(u[1]=l);var h=e.get(\"colorMappingBy\"),c={type:a.name,dataExtent:u,visual:a.range};\"color\"!==c.type||\"index\"!==h&&\"id\"!==h?c.mappingMethod=\"linear\":(c.mappingMethod=\"category\",c.loop=!0);var d=new Bx(c);return d.__drColorMappingBy=h,d}}}(0,s,l,0,d,g);B(g,function(e,n){if(e.depth>=o.length||e===o[e.depth]){var l=function(t,e,n,i,r,o){var a=C({},e);if(r){var s=r.type,l=\"color\"===s&&r.__drColorMappingBy,u=\"index\"===l?i:\"id\"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get(\"visualDimension\"));a[s]=r.mapValueToVisual(u)}return a}(s,d,e,n,m,a);t(e,l,i,r,o,a)}})}else u=t_(d),e.setVisual(\"color\",u)}}(o,{},V(r.levelModels,function(t){return t?t.get(Jx):null}),a,t.getViewRoot().getAncestors(),t)}};function t_(t){var e=e_(t,\"color\");if(e){var n=e_(t,\"colorAlpha\"),i=e_(t,\"colorSaturation\");return i&&(e=Je(e,null,null,i)),n&&(e=$e(e,n)),e}}function e_(t,e){var n=t[e];if(null!=n&&\"none\"!==n)return n}function n_(t,e){var n=t.get(e);return Qx(n)&&n.length?{name:e,range:n}:null}var i_=Math.max,r_=Math.min,o_=$,a_=B,s_=[\"itemStyle\",\"borderWidth\"],l_=[\"itemStyle\",\"gapWidth\"],u_=[\"upperLabel\",\"show\"],h_=[\"upperLabel\",\"height\"],c_={seriesType:\"treemap\",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,s=su(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=bl(o_(s.width,l[0]),r),h=bl(o_(s.height,l[1]),o),c=i&&i.type,d=lx(i,[\"treemapZoomToNode\",\"treemapRootToNode\"],t),f=\"treemapRender\"===c||\"treemapMove\"===c?i.rootRect:null,p=t.getViewRoot(),g=ux(p);if(\"treemapMove\"!==c){var m=\"treemapZoomToNode\"===c?function(t,e,n,i,r){var o,a=(e||{}).node,s=[i,r];if(!a||a===n)return s;for(var l=i*r,u=l*t.option.zoomToNodeRatio;o=a.parentNode;){for(var h=0,c=o.children,d=0,f=c.length;dTl&&(u=Tl),a=o}us[1]&&(s[1]=e)})}else s=[NaN,NaN];return{sum:i,dataExtent:s}}(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,n,i,r){if(!i)return n;for(var o=t.get(\"visibleMin\"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r[\"asc\"===i?a-l-1:l].getValue();u/n*er&&(r=i));var l=t.area*t.area,u=e*e*n;return l?i_(u*r/l,l/(u*o)):1/0}function f_(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=[\"x\",\"y\"],l=[\"width\",\"height\"],u=n[s[o]],h=e?t.area/e:0;(r||h>n[l[a]])&&(h=n[l[a]]);for(var c=0,d=t.length;c=0&&t.call(e,n[r],r)},v_.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},v_.breadthFirstTraverse=function(t,e,n,i){if(y_.isInstance(e)||(e=this._nodesMap[g_(e)]),e){for(var r=\"out\"===n?\"outEdges\":\"in\"===n?\"inEdges\":\"edges\",o=0;o=0&&n.node2.dataIndex>=0}),r=0,o=i.length;r=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n,i){return this[t][e].getItemVisual(this.dataIndex,n,i)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};z(y_,__(\"hostGraph\",\"data\")),z(x_,__(\"hostGraph\",\"edgeData\")),m_.Node=y_,m_.Edge=x_,qr(y_),qr(x_);var b_=function(t,e,n,i,r){for(var o=new m_(i),a=0;a \"+d)),u++)}var f,p=n.get(\"coordinateSystem\");if(\"cartesian2d\"===p||\"polar\"===p)f=Uf(t,n);else{var g=Uu.get(p),m=g&&\"view\"!==g.type&&g.dimensions||[];N(m,\"value\")<0&&m.concat([\"value\"]);var v=Hf(t,{coordDimensions:m});(f=new Tf(v,n)).initData(t)}var y=new Tf([\"value\"],n);return y.initData(l,s),r&&r(f,y),By({mainData:f,struct:o,structAttr:\"graph\",datas:{node:f,edge:y},datasAttr:{node:\"data\",edge:\"edgeData\"}}),o.update(),o},w_=hf({type:\"series.graph\",init:function(t){w_.superApply(this,\"init\",arguments),this.legendDataProvider=function(){return this._categoriesData},this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){w_.superApply(this,\"mergeOption\",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){w_.superApply(this,\"mergeDefaultAndTheme\",arguments),Lr(t,[\"edgeLabel\"],[\"show\"])},getInitialData:function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=this;if(i&&n)return b_(i,n,this,!0,function(t,n){t.wrapMethod(\"getItemModel\",function(t){var e=r._categoriesModels[t.getShallow(\"category\")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var i=r.getModel(\"edgeLabel\"),o=new pl({label:i.option},i.parentModel,e),a=r.getModel(\"emphasis.edgeLabel\"),s=new pl({emphasis:{label:a.option}},a.parentModel,e);function l(t){return(t=this.parsePath(t))&&\"label\"===t[0]?o:t&&\"emphasis\"===t[0]&&\"label\"===t[1]?s:this.parentModel}n.wrapMethod(\"getItemModel\",function(t){return t.customizeGetParent(l),t})}).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,n){if(\"edge\"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),l=jl(l.join(\" > \")),r.value&&(l+=\" : \"+jl(r.value)),l}return w_.superApply(this,\"formatTooltip\",arguments)},_updateCategoriesData:function(){var t=V(this.option.categories||[],function(t){return null!=t.value?t:C({value:0},t)}),e=new Tf([\"value\"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t,!0)})},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return w_.superCall(this,\"isAnimationEnabled\")&&!(\"force\"===this.get(\"layout\")&&this.get(\"force.layoutAnimation\"))},defaultOption:{zlevel:0,z:2,coordinateSystem:\"view\",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,edgeLength:30,layoutAnimation:!0},left:\"center\",top:\"center\",symbol:\"circle\",symbolSize:10,edgeSymbol:[\"none\",\"none\"],edgeSymbolSize:10,edgeLabel:{position:\"middle\"},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:\"{b}\"},itemStyle:{},lineStyle:{color:\"#aaa\",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),M_=es.prototype,S_=rs.prototype;function I_(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var A_=_s({type:\"ec-line\",style:{stroke:\"#000\",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){this[I_(e)?\"_buildPathLine\":\"_buildPathCurve\"](t,e)},_buildPathLine:M_.buildPath,_buildPathCurve:S_.buildPath,pointAt:function(t){return this[I_(this.shape)?\"_pointAtLine\":\"_pointAtCurve\"](t)},_pointAtLine:M_.pointAt,_pointAtCurve:S_.pointAt,tangentAt:function(t){var e=this.shape,n=I_(e)?[e.x2-e.x1,e.y2-e.y1]:this._tangentAtCurve(t);return Dt(n,n)},_tangentAtCurve:S_.tangentAt}),D_=[\"fromSymbol\",\"toSymbol\"];function T_(t){return\"_\"+t+\"Type\"}function C_(t,e,n){var i=e.getItemVisual(n,\"color\"),r=e.getItemVisual(n,t),o=e.getItemVisual(n,t+\"Size\");if(r&&\"none\"!==r){Y(o)||(o=[o,o]);var a=Jp(r,-o[0]/2,-o[1]/2,o[0],o[1],i);return a.name=t,a}}function L_(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;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}function k_(t,e,n){On.call(this),this._createLine(t,e,n)}var P_=k_.prototype;function O_(t){this._ctor=t||k_,this.group=new On}P_.beforeUpdate=function(){var t=this.childOfName(\"fromSymbol\"),e=this.childOfName(\"toSymbol\"),n=this.childOfName(\"label\");if(t||e||!n.ignore){for(var i=1,r=this.parent;r;)r.scale&&(i/=r.scale[0]),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=bt([],l,s);if(Dt(u,u),t){t.attr(\"position\",s);var h=o.tangentAt(0);t.attr(\"rotation\",Math.PI/2-Math.atan2(h[1],h[0])),t.attr(\"scale\",[i*a,i*a])}if(e&&(e.attr(\"position\",l),h=o.tangentAt(1),e.attr(\"rotation\",-Math.PI/2-Math.atan2(h[1],h[0])),e.attr(\"scale\",[i*a,i*a])),!n.ignore){var c,d,f;n.attr(\"position\",l);var p=5*i;if(\"end\"===n.__position)c=[u[0]*p+l[0],u[1]*p+l[1]],d=u[0]>.8?\"left\":u[0]<-.8?\"right\":\"center\",f=u[1]>.8?\"top\":u[1]<-.8?\"bottom\":\"middle\";else if(\"middle\"===n.__position){var g=a/2,m=[(h=o.tangentAt(g))[1],-h[0]],v=o.pointAt(g);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]),c=[v[0]+m[0]*p,v[1]+m[1]*p],d=\"center\",f=\"bottom\";var y=-Math.atan2(h[1],h[0]);l[0].8?\"right\":u[0]<-.8?\"left\":\"center\",f=u[1]>.8?\"bottom\":u[1]<-.8?\"top\":\"middle\";n.attr({style:{textVerticalAlign:n.__verticalAlign||f,textAlign:n.__textAlign||d},position:c,scale:[i,i]})}}}},P_._createLine=function(t,e,n){var i=t.hostModel,r=function(t){var e=new A_({name:\"line\",subPixelOptimize:!0});return L_(e.shape,t),e}(t.getItemLayout(e));r.shape.percent=0,tl(r,{shape:{percent:1}},i,e),this.add(r);var o=new za({name:\"label\"});this.add(o),B(D_,function(n){var i=C_(n,t,e);this.add(i),this[T_(n)]=t.getItemVisual(e,n)},this),this._updateCommonStl(t,e,n)},P_.updateData=function(t,e,n){var i=t.hostModel,r=this.childOfName(\"line\"),o=t.getItemLayout(e),a={shape:{}};L_(a.shape,o),$s(r,a,i,e),B(D_,function(n){var i=t.getItemVisual(e,n),r=T_(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=C_(n,t,e);this.add(o)}this[r]=i},this),this._updateCommonStl(t,e,n)},P_._updateCommonStl=function(t,e,n){var i=t.hostModel,r=this.childOfName(\"line\"),o=n&&n.lineStyle,a=n&&n.hoverLineStyle,s=n&&n.labelModel,l=n&&n.hoverLabelModel;if(!n||t.hasItemOption){var u=t.getItemModel(e);o=u.getModel(\"lineStyle\").getLineStyle(),a=u.getModel(\"emphasis.lineStyle\").getLineStyle(),s=u.getModel(\"label\"),l=u.getModel(\"emphasis.label\")}var h=t.getItemVisual(e,\"color\"),c=et(t.getItemVisual(e,\"opacity\"),o.opacity,1);r.useStyle(L({strokeNoScale:!0,fill:\"none\",stroke:h,opacity:c},o)),r.hoverStyle=a,B(D_,function(t){var e=this.childOfName(t);e&&(e.setColor(h),e.setStyle({opacity:c}))},this);var d,f,p=s.getShallow(\"show\"),g=l.getShallow(\"show\"),m=this.childOfName(\"label\");if((p||g)&&(d=h||\"#000\",null==(f=i.getFormattedLabel(e,\"normal\",t.dataType)))){var v=i.getRawValue(e);f=null==v?t.getName(e):isFinite(v)?wl(v):v}var y=p?f:null,x=g?tt(i.getFormattedLabel(e,\"emphasis\",t.dataType),f):null,_=m.style;null==y&&null==x||(Ys(m.style,s,{text:y},{autoColor:d}),m.__textAlign=_.textAlign,m.__verticalAlign=_.textVerticalAlign,m.__position=s.get(\"position\")||\"middle\"),m.hoverStyle=null!=x?{text:x,textFill:l.getTextColor(!0),fontStyle:l.getShallow(\"fontStyle\"),fontWeight:l.getShallow(\"fontWeight\"),fontSize:l.getShallow(\"fontSize\"),fontFamily:l.getShallow(\"fontFamily\")}:{text:null},m.ignore=!p&&!g,Fs(this)},P_.highlight=function(){this.trigger(\"emphasis\")},P_.downplay=function(){this.trigger(\"normal\")},P_.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},P_.setLinePoints=function(t){var e=this.childOfName(\"line\");L_(e.shape,t),e.dirty()},E(k_,On);var N_=O_.prototype;function E_(t){var e=t.hostModel;return{lineStyle:e.getModel(\"lineStyle\").getLineStyle(),hoverLineStyle:e.getModel(\"emphasis.lineStyle\").getLineStyle(),labelModel:e.getModel(\"label\"),hoverLabelModel:e.getModel(\"emphasis.label\")}}function z_(t){return isNaN(t[0])||isNaN(t[1])}function R_(t){return!z_(t[0])&&!z_(t[1])}N_.isPersistent=function(){return!0},N_.updateData=function(t){var e=this,n=e.group,i=e._lineData;e._lineData=t,i||n.removeAll();var r=E_(t);t.diff(i).add(function(n){!function(t,e,n,i){if(R_(e.getItemLayout(n))){var r=new t._ctor(e,n,i);e.setItemGraphicEl(n,r),t.group.add(r)}}(e,t,n,r)}).update(function(n,o){!function(t,e,n,i,r,o){var a=e.getItemGraphicEl(i);R_(n.getItemLayout(r))?(a?a.updateData(n,r,o):a=new t._ctor(n,r,o),n.setItemGraphicEl(r,a),t.group.add(a)):t.group.remove(a)}(e,i,t,o,n,r)}).remove(function(t){n.remove(i.getItemGraphicEl(t))}).execute()},N_.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},N_.incrementalPrepareUpdate=function(t){this._seriesScope=E_(t),this._lineData=null,this.group.removeAll()},N_.incrementalUpdate=function(t,e){function n(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}for(var i=t.start;i=0?i+=u:i-=u:p>=0?i-=u:i+=u}return i}var Y_=function(t,e){var n=[],i=Mo,r=[[],[],[]],o=[[],[]],a=[];function s(t){var e=t.getVisual(\"symbolSize\");return e instanceof Array&&(e=(e[0]+e[1])/2),e}e/=2,t.eachEdge(function(t,l){var u=t.getLayout(),h=t.getVisual(\"fromSymbol\"),c=t.getVisual(\"toSymbol\");u.__original||(u.__original=[vt(u[0]),vt(u[1])],u[2]&&u.__original.push(vt(u[2])));var d=u.__original;if(null!=u[2]){if(mt(r[0],d[0]),mt(r[1],d[2]),mt(r[2],d[1]),h&&\"none\"!==h){var f=s(t.node1),p=j_(r,d[0],f*e);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}c&&\"none\"!==c&&(f=s(t.node2),p=j_(r,d[1],f*e),i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]),mt(u[0],r[0]),mt(u[1],r[2]),mt(u[2],r[1])}else mt(o[0],d[0]),mt(o[1],d[1]),bt(a,o[1],o[0]),Dt(a,a),h&&\"none\"!==h&&(f=s(t.node1),_t(o[0],o[0],a,f*e)),c&&\"none\"!==c&&(f=s(t.node2),_t(o[1],o[1],a,-f*e)),mt(u[0],o[0]),mt(u[1],o[1])})},Z_=[\"itemStyle\",\"opacity\"],U_=[\"lineStyle\",\"opacity\"];function X_(t,e){return t.getVisual(\"opacity\")||t.getModel().get(e)}function q_(t,e,n){var i=t.getGraphicEl(),r=X_(t,e);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse(function(t){\"group\"!==t.type&&t.setStyle(\"opacity\",r)})}function K_(t,e){var n=X_(t,e),i=t.getGraphicEl();i.highlight&&i.highlight(),i.traverse(function(t){\"group\"!==t.type&&t.setStyle(\"opacity\",n)})}function Q_(t){return t instanceof Array||(t=[t,t]),t}function J_(t){var e=t.coordinateSystem;if(!e||\"view\"===e.type){var n=t.getGraph();n.eachNode(function(t){var e=t.getModel();t.setLayout([+e.get(\"x\"),+e.get(\"y\")])}),$_(n)}}function $_(t){t.eachEdge(function(t){var e=t.getModel().get(\"lineStyle.curveness\")||0,n=vt(t.node1.getLayout()),i=vt(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 tb(t){var e=t.coordinateSystem;if(!e||\"view\"===e.type){var n=e.getBoundingRect(),i=t.getData(),r=i.graph,o=0,a=i.getSum(\"value\"),s=2*Math.PI/(a||i.count()),l=n.width/2+n.x,u=n.height/2+n.y,h=Math.min(n.width,n.height)/2;r.eachNode(function(t){var e=t.getValue(\"value\");o+=s*(a?e:1)/2,t.setLayout([h*Math.cos(o)+l,h*Math.sin(o)+u]),o+=s*(a?e:1)/2}),i.setLayout({cx:l,cy:u}),r.eachEdge(function(t){var e,n=t.getModel().get(\"lineStyle.curveness\")||0,i=vt(t.node1.getLayout()),r=vt(t.node2.getLayout()),o=(i[0]+r[0])/2,a=(i[1]+r[1])/2;+n&&(e=[l*(n*=3)+o*(1-n),u*n+a*(1-n)]),t.setLayout([i,r,e])})}}cf({type:\"graph\",init:function(t,e){var n=new Og,i=new O_,r=this.group;this._controller=new oy(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},render:function(t,e,n){var i=t.coordinateSystem;this._model=t,this._nodeScaleRatio=t.get(\"nodeScaleRatio\");var r=this._symbolDraw,o=this._lineDraw,a=this.group;if(\"view\"===i.type){var s={position:i.position,scale:i.scale};this._firstRender?a.attr(s):$s(a,s,t)}Y_(t.getGraph(),this._getNodeGlobalScale(t));var l=t.getData();r.updateData(l);var u=t.getEdgeData();o.updateData(u),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var h=t.forceLayout,c=t.get(\"force.layoutAnimation\");h&&this._startForceLayoutIteration(h,c),l.eachItemGraphicEl(function(e,i){var r=l.getItemModel(i);e.off(\"drag\").off(\"dragend\");var o=r.get(\"draggable\");o&&e.on(\"drag\",function(){h&&(h.warmUp(),!this._layouting&&this._startForceLayoutIteration(h,c),h.setFixed(i),l.setItemLayout(i,e.position))},this).on(\"dragend\",function(){h&&h.setUnfixed(i)},this),e.setDraggable(o&&h),e.off(\"mouseover\",e.__focusNodeAdjacency),e.off(\"mouseout\",e.__unfocusNodeAdjacency),r.get(\"focusNodeAdjacency\")&&(e.on(\"mouseover\",e.__focusNodeAdjacency=function(){n.dispatchAction({type:\"focusNodeAdjacency\",seriesId:t.id,dataIndex:e.dataIndex})}),e.on(\"mouseout\",e.__unfocusNodeAdjacency=function(){n.dispatchAction({type:\"unfocusNodeAdjacency\",seriesId:t.id})}))},this),l.graph.eachEdge(function(e){var i=e.getGraphicEl();i.off(\"mouseover\",i.__focusNodeAdjacency),i.off(\"mouseout\",i.__unfocusNodeAdjacency),e.getModel().get(\"focusNodeAdjacency\")&&(i.on(\"mouseover\",i.__focusNodeAdjacency=function(){n.dispatchAction({type:\"focusNodeAdjacency\",seriesId:t.id,edgeDataIndex:e.dataIndex})}),i.on(\"mouseout\",i.__unfocusNodeAdjacency=function(){n.dispatchAction({type:\"unfocusNodeAdjacency\",seriesId:t.id})}))});var d=\"circular\"===t.get(\"layout\")&&t.get(\"circular.rotateLabel\"),f=l.getLayout(\"cx\"),p=l.getLayout(\"cy\");l.eachItemGraphicEl(function(t,e){var n=l.getItemModel(e).get(\"label.rotate\")||0,i=t.getSymbolPath();if(d){var r=l.getItemLayout(e),o=Math.atan2(r[1]-p,r[0]-f);o<0&&(o=2*Math.PI+o);var a=r[0]=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)}});function ib(t,e){return e&&(\"string\"==typeof e?t=e.replace(\"{value}\",null!=t?t:\"\"):\"function\"==typeof e&&(t=e(t))),t}var rb=2*Math.PI,ob=(Jh.extend({type:\"gauge\",render:function(t,e,n){this.group.removeAll();var i=t.get(\"axisLine.lineStyle.color\"),r=function(t,e){var n=t.get(\"center\"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r);return{cx:bl(n[0],e.getWidth()),cy:bl(n[1],e.getHeight()),r:bl(t.get(\"radius\"),o/2)}}(t,n);this._renderMain(t,e,n,i,r)},dispose:function(){},_renderMain:function(t,e,n,i,r){for(var o=this.group,a=t.getModel(\"axisLine\"),s=a.getModel(\"lineStyle\"),l=t.get(\"clockwise\"),u=-t.get(\"startAngle\")/180*Math.PI,h=((g=-t.get(\"endAngle\")/180*Math.PI)-u)%rb,c=u,d=s.get(\"width\"),f=a.get(\"show\"),p=0;f&&p=t&&(0===e?0:i[e-1][0]).4?\"bottom\":\"middle\",textAlign:D<-.4?\"left\":D>.4?\"right\":\"center\"},{autoColor:P}),silent:!0}))}if(g.get(\"show\")&&A!==v){for(var O=0;O<=y;O++){D=Math.cos(b),T=Math.sin(b);var N=new es({shape:{x1:D*c+u,y1:T*c+h,x2:D*(c-_)+u,y2:T*(c-_)+h},silent:!0,style:I});\"auto\"===I.stroke&&N.setStyle({stroke:i((A+O/y)/v)}),l.add(N),b+=M}b-=M}else b+=w}},_renderPointer:function(t,e,n,i,r,o,a,s){var l=this.group,u=this._data;if(t.get(\"pointer.show\")){var h=[+t.get(\"min\"),+t.get(\"max\")],c=[o,a],d=t.getData(),f=d.mapDimension(\"value\");d.diff(u).add(function(e){var n=new nb({shape:{angle:o}});tl(n,{shape:{angle:_l(d.get(f,e),h,c,!0)}},t),l.add(n),d.setItemGraphicEl(e,n)}).update(function(e,n){var i=u.getItemGraphicEl(n);$s(i,{shape:{angle:_l(d.get(f,e),h,c,!0)}},t),l.add(i),d.setItemGraphicEl(e,i)}).remove(function(t){var e=u.getItemGraphicEl(t);l.remove(e)}).execute(),d.eachItemGraphicEl(function(t,e){var n=d.getItemModel(e),o=n.getModel(\"pointer\");t.setShape({x:r.cx,y:r.cy,width:bl(o.get(\"width\"),r.r),r:bl(o.get(\"length\"),r.r)}),t.useStyle(n.getModel(\"itemStyle\").getItemStyle()),\"auto\"===t.style.fill&&t.setStyle(\"fill\",i(_l(d.get(f,e),h,[0,1],!0))),Fs(t,n.getModel(\"emphasis.itemStyle\").getItemStyle())}),this._data=d}else u&&u.eachItemGraphicEl(function(t){l.remove(t)})},_renderTitle:function(t,e,n,i,r){var o=t.getData(),a=o.mapDimension(\"value\"),s=t.getModel(\"title\");if(s.get(\"show\")){var l=s.get(\"offsetCenter\"),u=r.cx+bl(l[0],r.r),h=r.cy+bl(l[1],r.r),c=+t.get(\"min\"),d=+t.get(\"max\"),f=i(_l(t.getData().get(a,0),[c,d],[0,1],!0));this.group.add(new za({silent:!0,style:Ys({},s,{x:u,y:h,text:o.getName(0),textAlign:\"center\",textVerticalAlign:\"middle\"},{autoColor:f,forceRich:!0})}))}},_renderDetail:function(t,e,n,i,r){var o=t.getModel(\"detail\"),a=+t.get(\"min\"),s=+t.get(\"max\");if(o.get(\"show\")){var l=o.get(\"offsetCenter\"),u=r.cx+bl(l[0],r.r),h=r.cy+bl(l[1],r.r),c=bl(o.get(\"width\"),r.r),d=bl(o.get(\"height\"),r.r),f=t.getData(),p=f.get(f.mapDimension(\"value\"),0),g=i(_l(p,[a,s],[0,1],!0));this.group.add(new za({silent:!0,style:Ys({},o,{x:u,y:h,text:ib(p,o.get(\"formatter\")),textWidth:isNaN(c)?null:c,textHeight:isNaN(d)?null:d,textAlign:\"center\",textVerticalAlign:\"middle\"},{autoColor:g,forceRich:!0})}))}}}),hf({type:\"series.funnel\",init:function(t){ob.superApply(this,\"init\",arguments),this.legendDataProvider=function(){return this.getRawData()},this._defaultLabelLine(t)},getInitialData:function(t,e){return fv(this,[\"value\"])},_defaultLabelLine:function(t){Lr(t,\"labelLine\",[\"show\"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},getDataParams:function(t){var e=this.getData(),n=ob.superCall(this,\"getDataParams\",t),i=e.mapDimension(\"value\"),r=e.getSum(i);return n.percent=r?+(e.get(i,t)/r*100).toFixed(2):0,n.$vars.push(\"percent\"),n},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:\"0%\",maxSize:\"100%\",sort:\"descending\",gap:0,funnelAlign:\"center\",label:{show:!0,position:\"outer\"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:\"solid\"}},itemStyle:{borderColor:\"#fff\",borderWidth:1},emphasis:{label:{show:!0}}}}));function ab(t,e){On.call(this);var n=new Za,i=new Ua,r=new za;this.add(n),this.add(i),this.add(r),this.highDownOnUpdate=function(t,e){\"emphasis\"===e?(i.ignore=i.hoverIgnore,r.ignore=r.hoverIgnore):(i.ignore=i.normalIgnore,r.ignore=r.normalIgnore)},this.updateData(t,e,!0)}var sb=ab.prototype,lb=[\"itemStyle\",\"opacity\"];sb.updateData=function(t,e,n){var i=this.childAt(0),r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=t.getItemModel(e).get(lb);s=null==s?1:s,i.useStyle({}),n?(i.setShape({points:a.points}),i.setStyle({opacity:0}),tl(i,{style:{opacity:s}},r,e)):$s(i,{style:{opacity:s},shape:{points:a.points}},r,e);var l=o.getModel(\"itemStyle\"),u=t.getItemVisual(e,\"color\");i.setStyle(L({lineJoin:\"round\",fill:u},l.getItemStyle([\"opacity\"]))),i.hoverStyle=l.getModel(\"emphasis\").getItemStyle(),this._updateLabel(t,e),Fs(this)},sb._updateLabel=function(t,e){var n=this.childAt(1),i=this.childAt(2),r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e).label,s=t.getItemVisual(e,\"color\");$s(n,{shape:{points:a.linePoints||a.linePoints}},r,e),$s(i,{style:{x:a.x,y:a.y}},r,e),i.attr({rotation:a.rotation,origin:[a.x,a.y],z2:10});var l=o.getModel(\"label\"),u=o.getModel(\"emphasis.label\"),h=o.getModel(\"labelLine\"),c=o.getModel(\"emphasis.labelLine\");s=t.getItemVisual(e,\"color\"),js(i.style,i.hoverStyle={},l,u,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:s,useInsideStyle:!!a.inside},{textAlign:a.textAlign,textVerticalAlign:a.verticalAlign}),i.ignore=i.normalIgnore=!l.get(\"show\"),i.hoverIgnore=!u.get(\"show\"),n.ignore=n.normalIgnore=!h.get(\"show\"),n.hoverIgnore=!c.get(\"show\"),n.setStyle({stroke:s}),n.setStyle(h.getModel(\"lineStyle\").getLineStyle()),n.hoverStyle=c.getModel(\"lineStyle\").getLineStyle()},E(ab,On),Jh.extend({type:\"funnel\",render:function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add(function(t){var e=new ab(i,t);i.setItemGraphicEl(t,e),o.add(e)}).update(function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)}).remove(function(t){var e=r.getItemGraphicEl(t);o.remove(e)}).execute(),this._data=i},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),of(bv(\"funnel\")),rf(function(t,e,n){t.eachSeriesByType(\"funnel\",function(t){var n=t.getData(),i=n.mapDimension(\"value\"),r=t.get(\"sort\"),o=function(t,e){return su(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),a=function(t,e){for(var n=t.mapDimension(\"value\"),i=t.mapArray(n,function(t){return t}),r=[],o=\"ascending\"===e,a=0,s=t.count();ao&&(e[1-i]=e[i]+c.sign*o),e};function cb(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function db(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var fb=B,pb=Math.min,gb=Math.max,mb=Math.floor,vb=Math.ceil,yb=wl,xb=Math.PI;function _b(t,e,n){this._axesMap=ht(),this._axesLayout={},this.dimensions=t.dimensions,this._rect,this._model=t,this._init(t,e,n)}function bb(t,e){return pb(gb(t,e[0]),e[1])}function wb(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function Mb(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,h=!1;return t=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var i=n.getData();fb(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),zp(e.scale,e.model)},this)}},this)},resize:function(t,e){this._rect=su(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t,e=this._model,n=this._rect,i=[\"x\",\"y\"],r=[\"width\",\"height\"],o=e.get(\"layout\"),a=\"horizontal\"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,h=bb(e.get(\"axisExpandWidth\"),l),c=bb(e.get(\"axisExpandCount\")||0,[0,u]),d=e.get(\"axisExpandable\")&&u>3&&u>c&&c>1&&h>0&&s>0,f=e.get(\"axisExpandWindow\");f?(t=bb(f[1]-f[0],l),f[1]=f[0]+t):(t=bb(h*(c-1),l),(f=[h*(e.get(\"axisExpandCenter\")||mb(u/2))-t/2])[1]=f[0]+t);var p=(s-t)/(u-c);p<3&&(p=0);var g=[mb(yb(f[0]/h,1))+1,vb(yb(f[1]/h,1))-1],m=p/h*f[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:d,axisExpandWidth:h,axisCollapseWidth:p,axisExpandWindow:f,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:m}},_layoutAxes:function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each(function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])}),fb(n,function(e,n){var o=(i.axisExpandable?Mb:wb)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:xb/2,vertical:0},l=[a[r].x+t.x,a[r].y+t.y],u=s[r],h=se();de(h,h,u),ce(h,h,l),this._axesLayout[e]={position:l,rotation:u,transform:h,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(t){return this._axesMap.get(t)},dataToPoint:function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},eachActiveState:function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];B(o,function(e){a.push(t.mapDimension(e)),s.push(r.get(e).model)});for(var l=this.hasAxisBrushed(),u=n;ur*(1-h[0])?(l=\"jump\",a=s-r*(1-h[2])):(a=s-r*h[1])>=0&&(a=s-r*(1-h[1]))<=0&&(a=0),(a*=e.axisExpandWidth/u)?hb(a,i,o,\"all\"):l=\"none\"):(r=i[1]-i[0],(i=[gb(0,o[1]*s/r-r/2)])[1]=pb(o[1],i[0]+r),i[0]=i[1]-r),{axisExpandWindow:i,behavior:l}}},Uu.register(\"parallel\",{create:function(t,e){var n=[];return t.eachComponent(\"parallel\",function(i,r){var o=new _b(i,t,e);o.name=\"parallel_\"+r,o.resize(i,e),i.coordinateSystem=o,o.model=i,n.push(o)}),t.eachSeries(function(e){if(\"parallel\"===e.get(\"coordinateSystem\")){var n=t.queryComponents({mainType:\"parallel\",index:e.get(\"parallelIndex\"),id:e.get(\"parallelId\")})[0];e.coordinateSystem=n.coordinateSystem}}),n}});var Sb=gu.extend({type:\"baseParallelAxis\",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return $r([[\"fill\",\"color\"],[\"lineWidth\",\"borderWidth\"],[\"stroke\",\"borderColor\"],[\"width\",\"width\"],[\"opacity\",\"opacity\"]])(this.getModel(\"areaSelectStyle\"))},setActiveIntervals:function(t){var e=this.activeIntervals=A(t);if(e)for(var n=e.length-1;n>=0;n--)Ml(e[n])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return\"normal\";if(null==t||isNaN(t))return\"inactive\";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return\"active\"}else for(var i=0,r=e.length;i1?(n=n.split(\"\"),(\"e\"===(i=[t(e,n[0]),t(e,n[1])])[0]||\"w\"===i[0])&&i.reverse(),i.join(\"\")):{left:\"w\",right:\"e\",top:\"n\",bottom:\"s\"}[i=il({w:\"left\",e:\"right\",n:\"top\",s:\"bottom\"}[n],function(t){return el(t.group)}(e))];var i}(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?zb[o]+\"-resize\":null})})}function tw(t,e,n,i,r,o,a){var s=e.childOfName(n);s&&s.setShape(function(t){var e=Tb(t[0][0],t[1][0]),n=Tb(t[0][1],t[1][1]),i=Cb(t[0][0],t[1][0]),r=Cb(t[0][1],t[1][1]);return{x:e,y:n,width:i-e,height:r-n}}(aw(t,e,[[i,r],[i+o,r+a]])))}function ew(t){return L({strokeNoScale:!0},t.brushStyle)}function nw(t,e,n,i){var r=[Tb(t,n),Tb(e,i)],o=[Cb(t,n),Cb(e,i)];return[[r[0],o[0]],[r[1],o[1]]]}function iw(t,e,n,i,r,o,a,s){var l=i.__brushOption,u=t(l.range),h=ow(n,o,a);Ab(r.split(\"\"),function(t){var e=Eb[t];u[e[0]][e[1]]+=h[e[0]]}),l.range=e(nw(u[0][0],u[1][0],u[0][1],u[1][1])),jb(n,i),qb(n,{isEnd:!1})}function rw(t,e,n,i,r){var o=e.__brushOption.range,a=ow(t,n,i);Ab(o,function(t){t[0]+=a[0],t[1]+=a[1]}),jb(t,e),qb(t,{isEnd:!1})}function ow(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function aw(t,e,n){var i=Ub(t,e);return i&&!0!==i?i.clipPath(n,t._transform):A(n)}function sw(t){var e=t.event;e.preventDefault&&e.preventDefault()}function lw(t,e,n){return t.childOfName(\"main\").contain(e,n)}function uw(t,e,n,i){var r,o=t._creatingCover,a=t._creatingPanel,s=t._brushOption;if(t._track.push(n.slice()),function(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],r=n[0]-i[0],o=n[1]-i[1];return Lb(r*r+o*o,.5)>Pb}(t)||o){if(a&&!o){\"single\"===s.brushMode&&Xb(t);var l=A(s);l.brushType=hw(l.brushType,a),l.panelId=!0===a?null:a.panelId,o=t._creatingCover=Fb(t,l),t._covers.push(o)}if(o){var u=fw[hw(t._brushType,a)];o.__brushOption.range=u.getCreatingRange(aw(t,o,t._track)),i&&(Gb(t,o),u.updateCommon(t,o)),Wb(t,o),r={isEnd:i}}}else i&&\"single\"===s.brushMode&&s.removeOnClick&&Zb(t,e,n)&&Xb(t)&&(r={isEnd:i,removeOnClick:!0});return r}function hw(t,e){return\"auto\"===t?(c&&rt(e&&e.defaultBrushType,'MUST have defaultBrushType when brushType is \"atuo\"'),e.defaultBrushType):t}Vb.prototype={constructor:Vb,enableBrush:function(t){var e,n;return c&&rt(this._mounted),this._brushType&&(function(t,e,n){var i=ry(t);i[e]===n&&(i[e]=null)}(n=(e=this)._zr,Nb,e._uid),Ab(e._handlers,function(t,e){n.off(e,t)}),e._brushType=e._brushOption=null),t.brushType&&function(t,e){var n=t._zr;t._enableGlobalPan||function(t,e,n){ry(t)[e]=n}(n,Nb,t._uid),Ab(t._handlers,function(t,e){n.on(e,t)}),t._brushType=e.brushType,t._brushOption=D(A(Rb),e,!0)}(this,t),this},setPanels:function(t){if(t&&t.length){var e=this._panels={};B(t,function(t){e[t.panelId]=A(t)})}else this._panels=null;return this},mount:function(t){t=t||{},c&&(this._mounted=!0),this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({position:t.position||[0,0],rotation:t.rotation||0,scale:t.scale||[1,1]}),this._transform=e.getLocalTransform(),this},eachCover:function(t,e){Ab(this._covers,t,e)},updateCovers:function(t){c&&rt(this._mounted),t=V(t,function(t){return D(A(Rb),t,!0)});var e=\"\\0-brush-index-\",n=this._covers,i=this._covers=[],r=this,o=this._creatingCover;return new ff(n,t,function(t,e){return a(t.__brushOption,e)},a).add(s).update(s).remove(function(t){n[t]!==o&&r.group.remove(n[t])}).execute(),this;function a(t,n){return(null!=t.id?t.id:e+n)+\"-\"+t.brushType}function s(e,a){var s=t[e];if(null!=a&&n[a]===o)i[e]=n[a];else{var l=i[e]=null!=a?(n[a].__brushOption=s,n[a]):Gb(r,Fb(r,s));jb(r,l)}}},unmount:function(){if(!c||this._mounted)return this.enableBrush(!1),Xb(this),this._zr.remove(this.group),c&&(this._mounted=!1),this},dispose:function(){this.unmount(),this.off()}},z(Vb,Ft);var cw={mousedown:function(t){if(this._dragging)dw.call(this,t);else if(!t.target||!t.target.draggable){sw(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=Zb(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);if(function(t,e,n){if(t._brushType){var i=t._zr,r=t._covers,o=Zb(t,e,n);if(!t._dragging)for(var a=0;a5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);\"none\"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&ww(this,\"mousemove\")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;\"jump\"===i&&this._throttledDispatchExpand.debounceNextCall(e.get(\"axisExpandDebounce\")),this._throttledDispatchExpand(\"none\"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:\"jump\"===i&&null})}}};function ww(t,e){var n=t._model;return n.get(\"axisExpandable\")&&n.get(\"axisExpandTriggerOn\")===e}$d(function(t){!function(t){if(!t.parallel){var e=!1;B(t.series,function(t){t&&\"parallel\"===t.type&&(e=!0)}),e&&(t.parallel=[{}])}}(t),function(t){B(Cr(t.parallelAxis),function(e){if(X(e)){var n=e.parallelIndex||0,i=Cr(t.parallel)[n];i&&i.parallelAxisDefault&&D(e,i.parallelAxisDefault,!1)}})}(t)}),Vh.extend({type:\"series.parallel\",dependencies:[\"parallel\"],visualColorAccessPath:\"lineStyle.color\",getInitialData:function(t,e){var n=this.getSource();return function(t,e){if(!t.encodeDefine){var n=e.ecModel.getComponent(\"parallel\",e.get(\"parallelIndex\"));if(n){var i=t.encodeDefine=ht();B(n.dimensions,function(t){var e=+t.replace(\"dim\",\"\");i.set(t,e)})}}}(n,this),Uf(n,this)},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,function(e,r){t===e&&i.push(n.getRawIndex(r))}),i},defaultOption:{zlevel:0,z:2,coordinateSystem:\"parallel\",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:\"solid\"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:\"linear\"}});var Mw=.3;function Sw(t,e,n,i){for(var r,o=[],a=0;a=t.length)return i;var o=[],a=e[r++];return B(i,function(t,e){o.push({key:e,values:n(t,r)})}),a?o.sort(function(t,e){return a(t.key,e.key)}):o}(function e(n,i){if(i>=t.length)return n;for(var r=-1,o=n.length,a=t[i++],s={},l={};++r0&&(h=o.getLayout().x+a,o.setLayout({x:h},!0)),l=o.getLayout().x+o.getLayout().dx+e;if((a=l-e-i)>0)for(h=o.getLayout().x-a,o.setLayout({x:h},!0),l=h,s=u-2;s>=0;--s)(a=(o=t[s]).getLayout().x+o.getLayout().dx+e-l)>0&&(h=o.getLayout().x-a,o.setLayout({x:h},!0)),l=o.getLayout().x}else{var c;for(t.sort(function(t,e){return t.getLayout().y-e.getLayout().y}),s=0;s0&&(c=o.getLayout().y+a,o.setLayout({y:c},!0)),l=o.getLayout().y+o.getLayout().dy+e;if((a=l-e-n)>0)for(c=o.getLayout().y-a,o.setLayout({y:c},!0),l=c,s=u-2;s>=0;--s)(a=(o=t[s]).getLayout().y+o.getLayout().dy+e-l)>0&&(c=o.getLayout().y-a,o.setLayout({y:c},!0)),l=o.getLayout().y}})}function Bw(t,e,n){B(t.slice().reverse(),function(t){B(t,function(t){if(t.outEdges.length){var i=Hw(t.outEdges,Vw,n)/Hw(t.outEdges,Ww,n);if(\"vertical\"===n){var r=t.getLayout().x+(i-Gw(t,n))*e;t.setLayout({x:r},!0)}else{var o=t.getLayout().y+(i-Gw(t,n))*e;t.setLayout({y:o},!0)}}})})}function Vw(t,e){return Gw(t.node2,e)*t.getValue()}function Fw(t,e){return Gw(t.node1,e)*t.getValue()}function Gw(t,e){return\"vertical\"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function Ww(t){return t.getValue()}function Hw(t,e,n){for(var i=0,r=t.length,o=-1;++o-1&&b.splice(w,1);var M=b.indexOf(v.node2);M>-1&&b.splice(M,1)}}if(\"right\"===a){for(var S=[],I=b,A=0;I.length;){for(f=0;f=0&&(e.depth>T&&(T=e.depth),\"vertical\"===o?t.setLayout({y:e.depth},!0):t.setLayout({x:e.depth},!0))}),function(t,e,n){B(t,function(t){if(\"vertical\"===n){var i=t.getLayout().y*e;t.setLayout({y:i},!0)}else{var r=t.getLayout().x*e;t.setLayout({x:r},!0)}})}(t,\"vertical\"===o?(r-n)/T:(i-n)/T,o)})(t,e,n,r,o,s,l),function(t,e,n,i,r,o,a){var s=zw().key(function(t){return\"vertical\"===t?function(t){return t.getLayout().y}:function(t){return t.getLayout().x}}(a)).sortKeys(function(t,e){return t-e}).entries(t).map(function(t){return t.values});(function(t,e,n,i,r,o,a){var s=[];B(e,function(t){var e=t.length,n=0,l=0;B(t,function(t){n+=t.getLayout().value}),l=\"vertical\"===a?(r-(e-1)*o)/n:(i-(e-1)*o)/n,s.push(l)}),s.sort(function(t,e){return t-e});var l=s[0];B(e,function(t){B(t,function(t,e){var n=t.getLayout().value*l;\"vertical\"===a?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))})}),B(n,function(t){var e=+t.getValue()*l;t.setLayout({dy:e},!0)})})(0,s,e,n,i,r,a),Rw(s,r,n,i,a);for(var l=1;o>0;o--)Bw(s,l*=.99,a),Rw(s,r,n,i,a),jw(s,l,a),Rw(s,r,n,i,a)}(t,e,o,r,i,a,s),function(t,e){B(t,function(t){\"vertical\"===e?(t.outEdges.sort(function(t,e){return t.node2.getLayout().x-e.node2.getLayout().x}),t.inEdges.sort(function(t,e){return t.node1.getLayout().x-e.node1.getLayout().x})):(t.outEdges.sort(function(t,e){return t.node2.getLayout().y-e.node2.getLayout().y}),t.inEdges.sort(function(t,e){return t.node1.getLayout().y-e.node1.getLayout().y}))}),B(t,function(t){var e=0,n=0;B(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),B(t.inEdges,function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy})})}(t,s)}(l,u,n,i,o,a,0!==G(l,function(t){return 0===t.getLayout().value}).length?0:t.get(\"layoutIterations\"),t.get(\"orient\"),t.get(\"nodeAlign\"))})}),of(function(t,e){t.eachSeriesByType(\"sankey\",function(t){var e=t.getGraph().nodes;if(e.length){var n=1/0,i=-1/0;B(e,function(t){var e=t.getLayout().value;ei&&(i=e)}),B(e,function(e){var r=new Bx({type:\"color\",mappingMethod:\"linear\",dataExtent:[n,i],visual:t.get(\"color\")}).mapValueToVisual(e.getLayout().value);e.setVisual(\"color\",r);var o=e.getModel().get(\"itemStyle.color\");null!=o&&e.setVisual(\"color\",o)})}})});var Yw={_baseAxisDim:null,getInitialData:function(t,e){var n,i,r=e.getComponent(\"xAxis\",this.get(\"xAxisIndex\")),o=e.getComponent(\"yAxis\",this.get(\"yAxisIndex\")),a=r.get(\"type\"),s=o.get(\"type\");\"category\"===a?(t.layout=\"horizontal\",n=r.getOrdinalMeta(),i=!0):\"category\"===s?(t.layout=\"vertical\",n=o.getOrdinalMeta(),i=!0):t.layout=t.layout||\"horizontal\";var l=[\"x\",\"y\"],u=\"horizontal\"===t.layout?0:1,h=this._baseAxisDim=l[u],c=l[1-u],d=[r,o],f=d[u].get(\"type\"),p=d[1-u].get(\"type\"),g=t.data;if(g&&i){var m=[];B(g,function(t,e){var n;t.value&&Y(t.value)?(n=t.value.slice(),t.value.unshift(e)):Y(t)?(n=t.slice(),t.unshift(e)):n=t,m.push(n)}),t.data=m}var v=this.defaultValueDimensions;return fv(this,{coordDimensions:[{name:h,type:mf(f),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:[\"base\"]},{name:c,type:mf(p),dimsDef:v.slice()}],dimensionsCount:v.length+1})},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+\"Axis\",this.get(t+\"AxisIndex\")).axis}};z(Vh.extend({type:\"series.boxplot\",dependencies:[\"xAxis\",\"yAxis\",\"grid\"],defaultValueDimensions:[{name:\"min\",defaultTooltip:!0},{name:\"Q1\",defaultTooltip:!0},{name:\"median\",defaultTooltip:!0},{name:\"Q3\",defaultTooltip:!0},{name:\"max\",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:\"cartesian2d\",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:\"#fff\",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:\"rgba(0,0,0,0.4)\"}},animationEasing:\"elasticOut\",animationDuration:800}}),Yw,!0);var Zw=[\"itemStyle\"],Uw=[\"emphasis\",\"itemStyle\"],Xw=(Jh.extend({type:\"boxplot\",render:function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a=\"horizontal\"===t.get(\"layout\")?1:0;i.diff(o).add(function(t){if(i.hasValue(t)){var e=qw(i.getItemLayout(t),i,t,a,!0);i.setItemGraphicEl(t,e),r.add(e)}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?Kw(s,n,i,t):n=qw(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)}).execute(),this._data=i},remove:function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(t){t&&e.remove(t)})},dispose:dt}),ya.extend({type:\"boxplotBoxPath\",shape:{},buildPath:function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i0?\"P\":\"N\",o=i.getVisual(\"borderColor\"+r)||i.getVisual(\"color\"+r),a=n.getModel(tM).getItemStyle(nM);e.useStyle(a),e.style.fill=null,e.style.stroke=o}var hM=[\"itemStyle\",\"borderColor\"],cM=[\"itemStyle\",\"borderColor0\"],dM=[\"itemStyle\",\"color\"],fM=[\"itemStyle\",\"color0\"],pM={seriesType:\"candlestick\",plan:qh(),performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.pipelineContext.large;if(n.setVisual({legendSymbol:\"roundRect\",colorP:r(1,t),colorN:r(-1,t),borderColorP:o(1,t),borderColorN:o(-1,t)}),!e.isSeriesFiltered(t))return!i&&{progress:function(t,e){for(var n;null!=(n=t.next());){var i=e.getItemModel(n),a=e.getItemLayout(n).sign;e.setItemVisual(n,{color:r(a,i),borderColor:o(a,i)})}}};function r(t,e){return e.get(t>0?dM:fM)}function o(t,e){return e.get(t>0?hM:cM)}}},gM=\"undefined\"!=typeof Float32Array?Float32Array:Array,mM={seriesType:\"candlestick\",plan:qh(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=function(t,e){var n,i=t.getBaseAxis(),r=\"category\"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=bl(tt(t.get(\"barMaxWidth\"),r),r),a=bl(tt(t.get(\"barMinWidth\"),1),r),s=t.get(\"barWidth\");return null!=s?bl(s,r):Math.max(Math.min(r/2,o),a)}(t,n),r=0,o=1,a=[\"x\",\"y\"],s=n.mapDimension(a[r]),l=n.mapDimension(a[o],!0),u=l[0],h=l[1],c=l[2],d=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(null==s||l.length<4))return{progress:t.pipelineContext.large?function(t,n){for(var i,a,l=new gM(5*t.count),f=0,p=[],g=[];null!=(a=t.next());){var m=n.get(s,a),v=n.get(u,a),y=n.get(h,a),x=n.get(c,a),_=n.get(d,a);isNaN(m)||isNaN(x)||isNaN(_)?(l[f++]=NaN,f+=4):(l[f++]=vM(n,a,v,y,h),p[r]=m,p[o]=x,i=e.dataToPoint(p,null,g),l[f++]=i?i[0]:NaN,l[f++]=i?i[1]:NaN,p[o]=_,i=e.dataToPoint(p,null,g),l[f++]=i?i[1]:NaN)}n.setLayout(\"largePoints\",l)}:function(t,n){for(var a;null!=(a=t.next());){var l=n.get(s,a),f=n.get(u,a),p=n.get(h,a),g=n.get(c,a),m=n.get(d,a),v=Math.min(f,p),y=Math.max(f,p),x=S(v,l),_=S(y,l),b=S(g,l),w=S(m,l),M=[];I(M,_,0),I(M,x,1),M.push(D(w),D(_),D(b),D(x)),n.setItemLayout(a,{sign:vM(n,a,f,p,h),initBaseline:f>p?_[o]:x[o],ends:M,brushRect:A(g,m,l)})}function S(t,n){var i=[];return i[r]=n,i[o]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function I(t,e,n){var o=e.slice(),a=e.slice();o[r]=As(o[r]+i/2,1,!1),a[r]=As(a[r]-i/2,1,!0),n?t.push(o,a):t.push(a,o)}function A(t,e,n){var a=S(t,n),s=S(e,n);return a[r]-=i/2,s[r]-=i/2,{x:a[0],y:a[1],width:o?i:s[0]-a[0],height:o?s[1]-a[1]:i}}function D(t){return t[r]=As(t[r],1),t}}}}};function vM(t,e,n,i,r){return n>i?-1:n0?t.get(r,e-1)<=i?1:-1:1}function yM(t,e){t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:\"stroke\"===e.brushType?e.color:null,fill:\"fill\"===e.brushType?e.color:null}})})}function xM(t,e){On.call(this);var n=new Mg(t,e),i=new On;this.add(n),this.add(i),i.beforeUpdate=function(){this.attr(n.getScale())},this.updateData(t,e)}$d(function(t){t&&Y(t.series)&&B(t.series,function(t){X(t)&&\"k\"===t.type&&(t.type=\"candlestick\")})}),of(pM),rf(mM),Vh.extend({type:\"series.effectScatter\",dependencies:[\"grid\",\"polar\"],getInitialData:function(t,e){return Uf(this.getSource(),this)},brushSelector:\"point\",defaultOption:{coordinateSystem:\"cartesian2d\",zlevel:0,z:2,legendHoverLink:!0,effectType:\"ripple\",progressive:0,showEffectOn:\"render\",rippleEffect:{period:4,scale:2.5,brushType:\"fill\"},symbolSize:10}});var _M=xM.prototype;_M.stopEffectAnimation=function(){this.childAt(1).removeAll()},_M.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=this.childAt(1),r=0;r<3;r++){var o=Jp(e,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var a=-r/3*t.period+t.effectOffset;o.animate(\"\",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(a).start(),o.animateStyle(!0).when(t.period,{opacity:0}).delay(a).start(),i.add(o)}yM(i,t)},_M.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=[\"symbolType\",\"period\",\"rippleScale\"],r=0;r0&&n[0]instanceof Array))throw new Error(\"Invalid coords \"+JSON.stringify(n)+\". Lines must have 2d coords array in data item.\");return n},getLineCoordsCount:function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},getLineCoords:function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;rn&&c)throw new Error(\"Invalid data format.\")}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},getInitialData:function(t,e){if(c&&!Uu.get(t.coordinateSystem))throw new Error(\"Unkown coordinate system \"+t.coordinateSystem);var n=new Tf([\"value\"],this);return n.hasItemOption=!1,n.initData(t.data,[],function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[r]:o:void 0}),n},formatTooltip:function(t){var e=this.getData().getItemModel(t),n=e.get(\"name\");if(n)return n;var i=e.get(\"fromName\"),r=e.get(\"toName\"),o=[];return null!=i&&o.push(i),null!=r&&o.push(r),jl(o.join(\" > \"))},preventIncremental:function(){return!!this.get(\"effect.show\")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get(\"progressive\"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get(\"progressiveThreshold\"):t},defaultOption:{coordinateSystem:\"geo\",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:[\"none\",\"none\"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:\"circle\",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,label:{show:!1,position:\"end\"},lineStyle:{opacity:.5}}});function IM(t,e,n){On.call(this),this.add(this.createLine(t,e,n)),this._updateEffectSymbol(t,e)}var AM=IM.prototype;function DM(t,e,n){On.call(this),this._createPolyline(t,e,n)}AM.createLine=function(t,e,n){return new k_(t,e,n)},AM._updateEffectSymbol=function(t,e){var n=t.getItemModel(e).getModel(\"effect\"),i=n.get(\"symbolSize\"),r=n.get(\"symbol\");Y(i)||(i=[i,i]);var o=n.get(\"color\")||t.getItemVisual(e,\"color\"),a=this.childAt(1);this._symbolType!==r&&(this.remove(a),(a=Jp(r,-.5,-.5,1,1,o)).z2=100,a.culling=!0,this.add(a)),a&&(a.setStyle(\"shadowColor\",o),a.setStyle(n.getItemStyle([\"color\"])),a.attr(\"scale\",i),a.setColor(o),a.attr(\"scale\",i),this._symbolType=r,this._updateEffectAnimation(t,n,e))},AM._updateEffectAnimation=function(t,e,n){var i=this.childAt(1);if(i){var r=this,o=t.getItemLayout(n),a=1e3*e.get(\"period\"),s=e.get(\"loop\"),l=e.get(\"constantSpeed\"),u=$(e.get(\"delay\"),function(e){return e/t.count()*a/3}),h=\"function\"==typeof u;if(i.ignore=!0,this.updateAnimationPoints(i,o),l>0&&(a=this.getLineLength(i)/l*1e3),a!==this._period||s!==this._loop){i.stopAnimation();var c=u;h&&(c=u(n)),i.__t>0&&(c=-a*i.__t),i.__t=0;var d=i.animate(\"\",s).when(a,{__t:1}).delay(c).during(function(){r.updateSymbolPosition(i)});s||d.done(function(){r.remove(i)}),d.start()}this._period=a,this._loop=s}},AM.getLineLength=function(t){return Ct(t.__p1,t.__cp1)+Ct(t.__cp1,t.__p2)},AM.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},AM.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},AM.updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t,o=t.position,a=_o,s=bo;o[0]=a(e[0],i[0],n[0],r),o[1]=a(e[1],i[1],n[1],r);var l=s(e[0],i[0],n[0],r),u=s(e[1],i[1],n[1],r);t.rotation=-Math.atan2(u,l)-Math.PI/2,t.ignore=!1},AM.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel(\"effect\");this._updateEffectAnimation(t,n,e)},E(IM,On);var TM=DM.prototype;function CM(t,e,n){IM.call(this,t,e,n),this._lastFrame=0,this._lastFramePercent=0}TM._createPolyline=function(t,e,n){var i=t.getItemLayout(e),r=new Ua({shape:{points:i}});this.add(r),this._updateCommonStl(t,e,n)},TM.updateData=function(t,e,n){var i=t.hostModel;$s(this.childAt(0),{shape:{points:t.getItemLayout(e)}},i,e),this._updateCommonStl(t,e,n)},TM._updateCommonStl=function(t,e,n){var i=this.childAt(0),r=t.getItemModel(e),o=t.getItemVisual(e,\"color\"),a=n&&n.lineStyle,s=n&&n.hoverLineStyle;n&&!t.hasItemOption||(a=r.getModel(\"lineStyle\").getLineStyle(),s=r.getModel(\"emphasis.lineStyle\").getLineStyle()),i.useStyle(L({strokeNoScale:!0,fill:\"none\",stroke:o},a)),i.hoverStyle=s,Fs(this)},TM.updateLayout=function(t,e){this.childAt(0).setShape(\"points\",t.getItemLayout(e))},E(DM,On);var LM=CM.prototype;LM.createLine=function(t,e,n){return new DM(t,e,n)},LM.updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,r=1;r=0&&!(i[a]<=e);a--);a=Math.min(a,r-2)}else{for(var a=o;ae);a++);a=Math.min(a-1,r-2)}Pt(t.position,n[a],n[a+1],(e-i[a])/(i[a+1]-i[a]));var s=n[a+1][0]-n[a][0],l=n[a+1][1]-n[a][1];t.rotation=-Math.atan2(l,s)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=e,t.ignore=!1}},E(CM,IM);var kM=_s({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var n=e.segs,i=e.curveness;if(e.polyline)for(var r=0;r0){t.moveTo(n[r++],n[r++]);for(var a=1;a0){var c=(s+u)/2-(l-h)*i,d=(l+h)/2-(u-s)*i;t.quadraticCurveTo(c,d,u,h)}else t.lineTo(u,h)}},findDataIndex:function(t,e){var n=this.shape,i=n.segs,r=n.curveness;if(n.polyline)for(var o=0,a=0;a0)for(var l=i[a++],u=i[a++],h=1;h0){if(ta(l,u,(l+c)/2-(u-d)*r,(u+d)/2-(c-l)*r,c,d))return o}else if(Jo(l,u,c,d))return o;o++}return-1}});function PM(){this.group=new On}var OM=PM.prototype;OM.isPersistent=function(){return!this._incremental},OM.updateData=function(t){this.group.removeAll();var e=new kM({rectHover:!0,cursor:\"default\"});e.setShape({segs:t.getLayout(\"linesPoints\")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},OM.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new hs({silent:!0})),this.group.add(this._incremental)):this._incremental=null},OM.incrementalUpdate=function(t,e){var n=new kM;n.setShape({segs:e.getLayout(\"linesPoints\")}),this._setCommon(n,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor=\"default\",n.__startIndex=t.start,this.group.add(n))},OM.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},OM._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get(\"polyline\"),curveness:i.get(\"lineStyle.curveness\")}),t.useStyle(i.getModel(\"lineStyle\").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual(\"color\");r&&t.setStyle(\"stroke\",r),t.setStyle(\"fill\"),n||(t.seriesIndex=i.seriesIndex,t.on(\"mousemove\",function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>0&&(t.dataIndex=n+t.__startIndex)}))},OM._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var NM={seriesType:\"lines\",plan:qh(),reset:function(t){var e=t.coordinateSystem,n=t.get(\"polyline\"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s,l=r.end-r.start;if(n){for(var u=0,h=r.start;h0){var I=o(v)?s:l;v>0&&(v=v*M+w),x[_++]=I[S],x[_++]=I[S+1],x[_++]=I[S+2],x[_++]=I[S+3]*v*256}else _+=4}return c.putImageData(y,0,0),h},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=P()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext(\"2d\");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor=\"#000\",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},_getGradient:function(t,e,n){for(var i=this._gradientPixels,r=i[n]||(i[n]=new Uint8ClampedArray(1024)),o=[0,0,0,0],a=0,s=0;s<256;s++)e[n](s/255,!0,o),r[a++]=o[0],r[a++]=o[1],r[a++]=o[2],r[a++]=o[3];return r}},cf({type:\"heatmap\",render:function(t,e,n){var i;if(e.eachComponent(\"visualMap\",function(e){e.eachTargetSeries(function(n){n===t&&(i=e)})}),c&&!i)throw new Error(\"Heatmap must use with visualMap\");this.group.removeAll(),this._incrementalDisplayable=null;var r=t.coordinateSystem;\"cartesian2d\"===r.type||\"calendar\"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):function(t){var e=t.dimensions;return\"lng\"===e[0]&&\"lat\"===e[1]}(r)&&this._renderOnGeo(r,t,i,n)},incrementalPrepareRender:function(t,e,n){this.group.removeAll()},incrementalRender:function(t,e,n,i){e.coordinateSystem&&this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,e,n,i,r){var o,a,s=t.coordinateSystem;if(\"cartesian2d\"===s.type){var l=s.getAxis(\"x\"),u=s.getAxis(\"y\");if(c){if(\"category\"!==l.type||\"category\"!==u.type)throw new Error(\"Heatmap on cartesian must have two category axes\");if(!l.onBand||!u.onBand)throw new Error(\"Heatmap on cartesian must have two axes with boundaryGap true\")}o=l.getBandWidth(),a=u.getBandWidth()}for(var h=this.group,d=t.getData(),f=t.getModel(\"itemStyle\").getItemStyle([\"color\"]),p=t.getModel(\"emphasis.itemStyle\").getItemStyle(),g=t.getModel(\"label\"),m=t.getModel(\"emphasis.label\"),v=s.type,y=\"cartesian2d\"===v?[d.mapDimension(\"x\"),d.mapDimension(\"y\"),d.mapDimension(\"value\")]:[d.mapDimension(\"time\"),d.mapDimension(\"value\")],x=n;x=e[0]&&t<=e[1]}}(y,n.option.range):function(t,e,n){var i=t[1]-t[0],r=(e=V(e,function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}})).length,o=0;return function(t){for(var i=o;i=0;i--){var a;if((a=e[i].interval)[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i0?1:o<0?-1:0}(n,o,r,i,c),function(t,e,n,i,r,o,a,s,l,u){var h=l.valueDim,c=l.categoryDim,d=Math.abs(n[c.wh]),f=t.getItemVisual(e,\"symbolSize\");Y(f)?f=f.slice():(null==f&&(f=\"100%\"),f=[f,f]),f[c.index]=bl(f[c.index],d),f[h.index]=bl(f[h.index],i?d:Math.abs(o)),u.symbolSize=f,(u.symbolScale=[f[0]/s,f[1]/s])[h.index]*=(l.isHorizontal?-1:1)*a}(t,e,r,o,0,c.boundingLength,c.pxSign,u,i,c),function(t,e,n,i,r){var o=t.get(FM)||0;o&&(WM.attr({scale:e.slice(),rotation:n}),WM.updateTransform(),o/=WM.getLineScale(),o*=e[i.valueDim.index]),r.valueLineWidth=o}(n,c.symbolScale,l,i,c);var d=c.symbolSize,f=n.get(\"symbolOffset\");return Y(f)&&(f=[bl(f[0],d[0]),bl(f[1],d[1])]),function(t,e,n,i,r,o,a,s,l,u,h,c){var d=h.categoryDim,f=h.valueDim,p=c.pxSign,g=Math.max(e[f.index]+s,0),m=g;if(i){var v=Math.abs(l),y=$(t.get(\"symbolMargin\"),\"15%\")+\"\",x=!1;y.lastIndexOf(\"!\")===y.length-1&&(x=!0,y=y.slice(0,y.length-1)),y=bl(y,e[f.index]);var _=Math.max(g+2*y,0),b=x?0:2*y,w=Rl(i),M=w?i:aS((v+b)/_);_=g+2*(y=(v-M*g)/2/(x?M:M-1)),b=x?0:2*y,w||\"fixed\"===i||(M=u?aS((Math.abs(u)+b)/_):0),m=M*_-b,c.repeatTimes=M,c.symbolMargin=y}var S=p*(m/2),I=c.pathPosition=[];I[d.index]=n[d.wh]/2,I[f.index]=\"start\"===a?S:\"end\"===a?l-S:l/2,o&&(I[0]+=o[0],I[1]+=o[1]);var A=c.bundlePosition=[];A[d.index]=n[d.xy],A[f.index]=n[f.xy];var D=c.barRectShape=C({},n);D[f.wh]=p*Math.max(Math.abs(n[f.wh]),Math.abs(I[f.index]+S)),D[d.wh]=n[d.wh];var T=c.clipShape={};T[d.xy]=-n[d.xy],T[d.wh]=h.ecSize[d.wh],T[f.xy]=0,T[f.wh]=n[f.wh]}(n,d,r,o,0,f,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,i,c),c}function jM(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function YM(t){var e=t.symbolPatternSize,n=Jp(t.symbolType,-e/2,-e/2,e,e,t.color);return n.attr({culling:!0}),\"image\"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function ZM(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,h=0,c=o[e.valueDim.index]+a+2*n.symbolMargin;for(iS(t,function(t){t.__pictorialAnimationIndex=h,t.__pictorialRepeatTimes=u,h0:i<0)&&(r=u-1-t),e[l.index]=c*(r-u/2+.5)+s[l.index],{position:e,scale:n.symbolScale.slice(),rotation:n.rotation}}function g(){iS(t,function(t){t.trigger(\"emphasis\")})}function m(){iS(t,function(t){t.trigger(\"normal\")})}}function UM(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?rS(o,null,{position:n.pathPosition.slice(),scale:n.symbolScale.slice(),rotation:n.rotation},n,i):(o=t.__pictorialMainPath=YM(n),r.add(o),rS(o,{position:n.pathPosition.slice(),scale:[0,0],rotation:n.rotation},{scale:n.symbolScale.slice()},n,i),o.on(\"mouseover\",function(){this.trigger(\"emphasis\")}).on(\"mouseout\",function(){this.trigger(\"normal\")})),$M(o,n)}function XM(t,e,n){var i=C({},e.barRectShape),r=t.__pictorialBarRect;r?rS(r,null,{shape:i},e,n):(r=t.__pictorialBarRect=new $a({z2:2,shape:i,silent:!0,style:{stroke:\"transparent\",fill:\"transparent\",lineWidth:0}}),t.add(r))}function qM(t,e,n,i){if(n.symbolClip){var r=t.__pictorialClipPath,o=C({},n.clipShape),a=e.valueDim,s=n.animationModel,l=n.dataIndex;if(r)$s(r,{shape:o},s,l);else{o[a.wh]=0,r=new $a({shape:o}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var u={};u[a.wh]=n.clipShape[a.wh],sl[i?\"updateProps\":\"initProps\"](r,{shape:u},s,l)}}}function KM(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=QM,n.isAnimationEnabled=JM,n}function QM(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function JM(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow(\"animation\")}function $M(t,e){t.off(\"emphasis\").off(\"normal\");var n=e.symbolScale.slice();e.hoverAnimation&&t.on(\"emphasis\",function(){this.animateTo({scale:[1.1*n[0],1.1*n[1]]},400,\"elasticOut\")}).on(\"normal\",function(){this.animateTo({scale:n.slice()},400,\"elasticOut\")})}function tS(t,e,n,i){var r=new On,o=new On;return r.add(o),r.__pictorialBundle=o,o.attr(\"position\",n.bundlePosition.slice()),n.symbolRepeat?ZM(r,e,n):UM(r,0,n),XM(r,n,i),qM(r,e,n,i),r.__pictorialShapeStr=nS(t,n),r.__pictorialSymbolMeta=n,r}function eS(t,e,n,i){var r=i.__pictorialBarRect;r&&(r.style.text=null);var o=[];iS(i,function(t){o.push(t)}),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),B(o,function(t){$s(t,{scale:[0,0]},n,e,function(){i.parent&&i.parent.remove(i)})}),t.setItemGraphicEl(e,null)}function nS(t,e){return[t.getItemVisual(e.dataIndex,\"symbol\")||\"none\",!!e.symbolRepeat,!!e.symbolClip].join(\":\")}function iS(t,e,n){B(t.__pictorialBundle.children(),function(i){i!==t.__pictorialBarRect&&e.call(n,i)})}function rS(t,e,n,i,r,o){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&sl[r?\"updateProps\":\"initProps\"](t,n,i.animationModel,i.dataIndex,o)}function oS(t,e,n){var i=n.color,r=n.dataIndex,o=n.itemModel,a=o.getModel(\"itemStyle\").getItemStyle([\"color\"]),s=o.getModel(\"emphasis.itemStyle\").getItemStyle(),l=o.getShallow(\"cursor\");iS(t,function(t){t.setColor(i),t.setStyle(L({fill:i,opacity:n.opacity},a)),Fs(t,s),l&&(t.cursor=l),t.z2=n.z2});var u={},h=(e.valueDim.posDesc[+(n.boundingLength>0)],t.__pictorialBarRect);ev(h.style,u,o,i,e.seriesModel,r),Fs(h,u)}function aS(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}cf({type:\"pictorialBar\",render:function(t,e,n){var i=this.group,r=t.getData(),o=this._data,a=t.coordinateSystem,s=!!a.getBaseAxis().isHorizontal(),l=a.grid.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:GM[+s],categoryDim:GM[1-s]};return r.diff(o).add(function(t){if(r.hasValue(t)){var e=KM(r,t),n=HM(r,t,e,u),o=tS(r,u,n);r.setItemGraphicEl(t,o),i.add(o),oS(o,u,n)}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var a=KM(r,t),s=HM(r,t,a,u),l=nS(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?function(t,e,n){var i=n.animationModel,r=n.dataIndex;$s(t.__pictorialBundle,{position:n.bundlePosition.slice()},i,r),n.symbolRepeat?ZM(t,e,n,!0):UM(t,0,n,!0),XM(t,n,!0),qM(t,e,n,!0)}(n,u,s):n=tS(r,u,s,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),oS(n,u,s)}else i.remove(n)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&eS(o,t,e.__pictorialSymbolMeta.animationModel,e)}).execute(),this._data=r,this.group},dispose:dt,remove:function(t,e){var n=this.group,i=this._data;t.get(\"animation\")?i&&i.eachItemGraphicEl(function(e){eS(i,e.dataIndex,t,e)}):n.removeAll()}}),rf(j(gp,\"pictorialBar\")),of(am(\"pictorialBar\",\"roundRect\"));var sS=function(t,e,n,i,r){vg.call(this,t,e,n),this.type=i||\"value\",this.position=r||\"bottom\",this.orient=null};function lS(t,e,n){this.dimension=\"single\",this.dimensions=[\"single\"],this._axis=null,this._rect,this._init(t,e,n),this.model=t}function uS(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=[\"vertical\"===a?u.vertical[o]:l[0],\"horizontal\"===a?u.horizontal[o]:l[3]],r.rotation=Math.PI/2*{horizontal:0,vertical:1}[a],r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],t.get(\"axisTick.inside\")&&(r.tickDirection=-r.tickDirection),$(e.labelInside,t.get(\"axisLabel.inside\"))&&(r.labelDirection=-r.labelDirection);var h=e.rotate;return null==h&&(h=t.get(\"axisLabel.rotate\")),r.labelRotation=\"top\"===o?-h:h,r.z2=1,r}sS.prototype={constructor:sS,model:null,isHorizontal:function(){var t=this.position;return\"top\"===t||\"bottom\"===t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},E(sS,vg),lS.prototype={type:\"singleAxis\",axisPointerEnabled:!0,constructor:lS,_init:function(t,e,n){var i=this.dimension,r=new sS(i,Rp(t),[0,0],t.get(\"type\"),t.get(\"position\")),o=\"category\"===r.type;r.onBand=o&&t.get(\"boundaryGap\"),r.inverse=t.get(\"inverse\"),r.orient=t.get(\"orient\"),t.axis=r,r.model=t,r.coordinateSystem=this,this._axis=r},update:function(t,e){t.eachSeries(function(t){if(t.coordinateSystem===this){var e=t.getData();B(e.mapDimension(this.dimension,!0),function(t){this._axis.scale.unionExtentFromData(e,t)},this),zp(this._axis.scale,this._axis.model)}},this)},resize:function(t,e){this._rect=su({left:t.get(\"left\"),top:t.get(\"top\"),right:t.get(\"right\"),bottom:t.get(\"bottom\"),width:t.get(\"width\"),height:t.get(\"height\")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],r=e.reverse?1:0;e.setExtent(i[r],i[1-r]),this._updateAxisTransform(e,n?t.x:t.y)},_updateAxisTransform:function(t,e){var n=t.getExtent(),i=n[0]+n[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return i-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var e=this.getRect(),n=this.getAxis();return\"horizontal\"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t[\"horizontal\"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),n=this.getRect(),i=[],r=\"horizontal\"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i}},Uu.register(\"single\",{create:function(t,e){var n=[];return t.eachComponent(\"singleAxis\",function(i,r){var o=new lS(i,t,e);o.name=\"single_\"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(e){if(\"singleAxis\"===e.get(\"coordinateSystem\")){var n=t.queryComponents({mainType:\"singleAxis\",index:e.get(\"singleAxisIndex\"),id:e.get(\"singleAxisId\")})[0];e.coordinateSystem=n&&n.coordinateSystem}}),n},dimensions:lS.prototype.dimensions});var hS=[\"axisLine\",\"axisTickLabel\",\"axisName\"],cS=Zm.extend({type:\"singleAxis\",axisPointerClass:\"SingleAxisPointer\",render:function(t,e,n,i){var r=this.group;r.removeAll();var o=uS(t),a=new Lm(t,o);B(hS,a.add,a),r.add(a.getGroup()),t.get(\"splitLine.show\")&&this._splitLine(t),cS.superCall(this,\"render\",t,e,n,i)},_splitLine:function(t){var e=t.axis;if(!e.scale.isBlank()){var n=t.getModel(\"splitLine\"),i=n.getModel(\"lineStyle\"),r=i.get(\"width\"),o=i.get(\"color\");o=o instanceof Array?o:[o];for(var a=t.coordinateSystem.getRect(),s=e.isHorizontal(),l=[],u=0,h=e.getTicksCoords({tickModel:n}),c=[],d=[],f=0;f=0&&s<0)&&(a=p,s=f,r=u,o.length=0),pS(h,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&C(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s,r),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function yS(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function xS(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=Ym(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(\"label.precision\"),formatter:s.get(\"label.formatter\")},seriesDataIndices:r.slice()})}}function _S(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+\"AxisIndex\"]=e.componentIndex,n.axisName=n[i+\"AxisName\"]=e.name,n.axisId=n[i+\"AxisId\"]=e.id,n}function bS(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}lf({type:\"axisPointer\",coordSysAxesInfo:null,defaultOption:{show:\"auto\",triggerOn:null,zlevel:0,z:50,type:\"line\",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:\"#aaa\",width:1,type:\"solid\"},shadowStyle:{color:\"rgba(150,150,150,0.3)\"},label:{show:!0,formatter:null,precision:\"auto\",margin:3,color:\"#fff\",padding:[5,7,5,7],backgroundColor:\"auto\",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:\"#aaa\"},handle:{show:!1,icon:\"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z\",size:45,margin:50,color:\"#333\",shadowBlur:3,shadowColor:\"#aaa\",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}});var wS=Br(),MS=B;function SS(t,e,n){if(!p.node){var i=e.getZr();wS(i).records||(wS(i).records={}),function(t,e){function n(n,i){t.on(n,function(n){var r=function(t){var e={showTip:[],hideTip:[]};return{dispatchAction:function n(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))},pendings:e}}(e);MS(wS(t).records,function(t){t&&i(t,n,r.dispatchAction)}),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)})}wS(t).initialized||(wS(t).initialized=!0,n(\"click\",j(AS,\"click\")),n(\"mousemove\",j(AS,\"mousemove\")),n(\"globalout\",IS))}(i,e),(wS(i).records[t]||(wS(i).records[t]={})).handler=n}}function IS(t,e,n){t.handler(\"leave\",null,n)}function AS(t,e,n,i){e.handler(t,n,i)}function DS(t,e){if(!p.node){var n=e.getZr();(wS(n).records||{})[t]&&(wS(n).records[t]=null)}}var TS=uf({type:\"axisPointer\",render:function(t,e,n){var i=e.getComponent(\"tooltip\"),r=t.get(\"triggerOn\")||i&&i.get(\"triggerOn\")||\"mousemove|click\";SS(\"axisPointer\",n,function(t,e,n){\"none\"!==r&&(\"leave\"===t||r.indexOf(t)>=0)&&n({type:\"updateAxisPointer\",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},remove:function(t,e){DS(e.getZr(),\"axisPointer\"),TS.superApply(this._model,\"remove\",arguments)},dispose:function(t,e){DS(\"axisPointer\",e),TS.superApply(this._model,\"dispose\",arguments)}}),CS=Br(),LS=A,kS=H;function PS(){}function OS(t,e,n,i){(function t(e,n){if(X(e)&&X(n)){var i=!0;return B(n,function(n,r){i=i&&t(e[r],n)}),!!i}return e===n})(CS(n).lastProp,i)||(CS(n).lastProp=i,e?$s(n,i,t):(n.stopAnimation(),n.attr(i)))}function NS(t,e){t[e.get(\"label.show\")?\"show\":\"hide\"]()}function ES(t){return{position:t.position.slice(),rotation:t.rotation||0}}function zS(t,e,n){var i=e.get(\"z\"),r=e.get(\"zlevel\");t&&t.traverse(function(t){\"group\"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}function RS(t){var e,n=t.get(\"type\"),i=t.getModel(n+\"Style\");return\"line\"===n?(e=i.getLineStyle()).fill=null:\"shadow\"===n&&((e=i.getAreaStyle()).stroke=null),e}function BS(t,e,n,i,r){var o=VS(n.get(\"value\"),e.axis,e.ecModel,n.get(\"seriesDataIndices\"),{precision:n.get(\"label.precision\"),formatter:n.get(\"label.formatter\")}),a=n.getModel(\"label\"),s=Gl(a.get(\"padding\")||0),l=a.getFont(),u=yi(o,l),h=r.position,c=u.width+s[1]+s[3],d=u.height+s[0]+s[2],f=r.align;\"right\"===f&&(h[0]-=c),\"center\"===f&&(h[0]-=c/2);var p=r.verticalAlign;\"bottom\"===p&&(h[1]-=d),\"middle\"===p&&(h[1]-=d/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(h,c,d,i);var g=a.get(\"backgroundColor\");g&&\"auto\"!==g||(g=e.get(\"axisLine.lineStyle.color\")),t.label={shape:{x:0,y:0,width:c,height:d,r:a.get(\"borderRadius\")},position:h.slice(),style:{text:o,textFont:l,textFill:a.getTextColor(),textPosition:\"inside\",fill:g,stroke:a.get(\"borderColor\")||\"transparent\",lineWidth:a.get(\"borderWidth\")||0,shadowBlur:a.get(\"shadowBlur\"),shadowColor:a.get(\"shadowColor\"),shadowOffsetX:a.get(\"shadowOffsetX\"),shadowOffsetY:a.get(\"shadowOffsetY\")},z2:10}}function VS(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel(t,{precision:r.precision}),a=r.formatter;if(a){var s={value:Vp(e,t),seriesData:[]};B(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)}),U(a)?o=a.replace(\"{value}\",o):Z(a)&&(o=a(s))}return o}function FS(t,e,n){var i=se();return de(i,i,n.rotation),ce(i,i,n.position),nl([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function GS(t,e,n,i,r,o){var a=Lm.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(\"label.margin\"),BS(e,i,r,o,{position:FS(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function WS(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function HS(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function jS(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}PS.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,n,i){var r=e.get(\"value\"),o=e.get(\"status\");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||\"hide\"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var c=j(OS,e,h);this.updatePointerEl(a,l,c,e),this.updateLabelEl(a,l,c,e)}else a=this._group=new On,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);zS(a,e,!0),this._renderHandle(r)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var n=e.get(\"animation\"),i=t.axis,r=\"category\"===i.type,o=e.get(\"snap\");if(!o&&!r)return!1;if(\"auto\"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=Hm(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},makeElOption:function(t,e,n,i,r){},createPointerEl:function(t,e,n,i){var r=e.pointer;if(r){var o=CS(t).pointerEl=new sl[r.type](LS(e.pointer));t.add(o)}},createLabelEl:function(t,e,n,i){if(e.label){var r=CS(t).labelEl=new $a(LS(e.label));t.add(r),NS(r,i)}},updatePointerEl:function(t,e,n){var i=CS(t).pointerEl;i&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,n,i){var r=CS(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{shape:e.label.shape,position:e.label.position}),NS(r,i))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel(\"handle\"),a=n.get(\"status\");if(!o.get(\"show\")||!a||\"hide\"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=al(o.get(\"icon\"),{cursor:\"move\",draggable:!0,onmousemove:function(t){qt(t.event)},onmousedown:kS(this._onHandleDragMove,this,0,0),drift:kS(this._onHandleDragMove,this),ondragend:kS(this._onHandleDragEnd,this)}),i.add(r)),zS(r,n,!1),r.setStyle(o.getItemStyle(null,[\"color\",\"borderColor\",\"borderWidth\",\"opacity\",\"shadowColor\",\"shadowBlur\",\"shadowOffsetX\",\"shadowOffsetY\"]));var s=o.get(\"size\");Y(s)||(s=[s,s]),r.attr(\"scale\",[s[0]/2,s[1]/2]),uc(this,\"_doDispatchAxisPointer\",o.get(\"throttle\")||0,\"fixRate\"),this._moveHandleToValue(t,e)}},_moveHandleToValue:function(t,e){OS(this._axisPointerModel,!e&&this._moveAnimation,this._handle,ES(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(ES(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(ES(i)),CS(n).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:\"updateAxisPointer\",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},_onHandleDragEnd:function(t){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(\"value\");this._moveHandleToValue(e),this._api.dispatchAction({type:\"hideTip\"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}},PS.prototype.constructor=PS,Ur(PS);var YS=PS.extend({makeElOption:function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get(\"type\"),l=ZS(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&\"none\"!==s){var h=RS(i),c=US[s](o,u,l);c.style=h,t.graphicKey=c.type,t.pointer=c}GS(e,t,Km(a.model,n),n,i,r)},getHandleTransform:function(t,e,n){var i=Km(e.axis.grid.model,e,{labelInside:!1});return i.labelMargin=n.get(\"handle.margin\"),{position:FS(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=ZS(o,r).getOtherAxis(r).getGlobalExtent(),l=\"x\"===r.dim?0:1,u=t.position;u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var h=(s[1]+s[0])/2,c=[h,h];return c[l]=u[l],{position:u,rotation:t.rotation,cursorPoint:c,tooltipOption:[{verticalAlign:\"middle\"},{align:\"center\"}][l]}}});function ZS(t,e){var n={};return n[e.dim+\"AxisIndex\"]=e.index,t.getCartesian(n)}var US={line:function(t,e,n){return{type:\"Line\",subPixelOptimize:!0,shape:WS([e,n[0]],[e,n[1]],XS(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:\"Rect\",shape:HS([e-i/2,n[0]],[i,r],XS(t))}}};function XS(t){return\"x\"===t.dim?0:1}Zm.registerAxisPointerClass(\"CartesianAxisPointer\",YS),$d(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Y(e)&&(t.axisPointer.link=[e])}}),tf(dd.PROCESSOR.STATISTIC,function(t,e){t.getComponent(\"axisPointer\").coordSysAxesInfo=Fm(t,e)}),ef({type:\"updateAxisPointer\",event:\"updateAxisPointer\",update:\":updateAxisPointer\"},function(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||H(n.dispatchAction,n),s=e.getComponent(\"axisPointer\").coordSysAxesInfo;if(s){bS(r)&&(r=fS({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=bS(r),u=o.axesInfo,h=s.axesInfo,c=\"leave\"===i||bS(r),d={},f={},p={list:[],map:{}},g={showPointer:gS(yS,f),showTooltip:gS(xS,p)};pS(s.coordSysMap,function(t,e){var n=l||t.containPoint(r);pS(s.coordSysAxesInfo[e],function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(u,t);if(!c&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&vS(t,a,g,!1,d)}})});var m={};return pS(h,function(t,e){var n=t.linkGroup;n&&!f[e]&&pS(n.axesInfo,function(e,i){var r=f[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,_S(e),_S(t)))),m[t.key]=o}})}),pS(m,function(t,e){vS(h[e],t,g,!0,d)}),function(t,e,n){var i=n.axesInfo=[];pS(e,function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status=\"show\"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status=\"hide\"),\"show\"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}(f,h,d),function(t,e,n,i){if(!bS(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:\"showTip\",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:\"hideTip\"})}(p,r,t,a),function(t,e,n){var i=n.getZr(),r=mS(i).axisPointerLastHighlights||{},o=mS(i).axisPointerLastHighlights={};pS(t,function(t,e){var n=t.axisPointerModel.option;\"show\"===n.status&&pS(n.seriesDataIndices,function(t){var e=t.seriesIndex+\" | \"+t.dataIndex;o[e]=t})});var a=[],s=[];B(r,function(t,e){!o[e]&&s.push(t)}),B(o,function(t,e){!r[e]&&a.push(t)}),s.length&&n.dispatchAction({type:\"downplay\",escapeConnect:!0,batch:s}),a.length&&n.dispatchAction({type:\"highlight\",escapeConnect:!0,batch:a})}(h,0,n),d}});var qS=[\"x\",\"y\"],KS=[\"width\",\"height\"],QS=PS.extend({makeElOption:function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=tI(a,1-$S(o)),l=a.dataToPoint(e)[0],u=i.get(\"type\");if(u&&\"none\"!==u){var h=RS(i),c=JS[u](o,l,s);c.style=h,t.graphicKey=c.type,t.pointer=c}GS(e,t,uS(n),n,i,r)},getHandleTransform:function(t,e,n){var i=uS(e,{labelInside:!1});return i.labelMargin=n.get(\"handle.margin\"),{position:FS(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,a=$S(r),s=tI(o,a),l=t.position;l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=tI(o,1-a),h=(u[1]+u[0])/2,c=[h,h];return c[a]=l[a],{position:l,rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:\"middle\"}}}}),JS={line:function(t,e,n){return{type:\"Line\",subPixelOptimize:!0,shape:WS([e,n[0]],[e,n[1]],$S(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:\"Rect\",shape:HS([e-i/2,n[0]],[i,r],$S(t))}}};function $S(t){return t.isHorizontal()?0:1}function tI(t,e){var n=t.getRect();return[n[qS[e]],n[qS[e]]+n[KS[e]]]}Zm.registerAxisPointerClass(\"SingleAxisPointer\",QS),uf({type:\"single\"});var eI=Vh.extend({type:\"series.themeRiver\",dependencies:[\"singleAxis\"],nameMap:null,init:function(t){eI.superApply(this,\"init\",arguments),this.legendDataProvider=function(){return this.getRawData()}},fixData:function(t){for(var e=t.length,n=V(zw().key(function(t){return t[2]}).entries(t),function(t){return{name:t.key,dataList:t.values}}),i=n.length,r=-1,o=-1,a=0;ar&&(r=s,o=a)}for(var l=0;lo&&(o=u),i.push(u)}for(var h=0;ho&&(o=d)}return a.y0=r,a.max=o,a}(l),h=u.y0,c=n/u.max,d=o.length,f=o[0].indices.length,p=0;p1;)e=e.parentNode;return N(t.getAncestors()[0].children,e)}(t)%a]}(e,0,r);!function(t,e,n){e.getData().setItemVisual(t.dataIndex,\"color\",n)}(e,i,h);var c,d=a.getModel(\"itemStyle\").getItemStyle();c=L({lineJoin:\"bevel\",fill:(c=\"normal\"===n?d:D(a.getModel(n+\".itemStyle\").getItemStyle(),d)).fill||h},c),t?(o.setShape(u),o.shape.r=s.r0,$s(o,{shape:{r:s.r}},i,e.dataIndex),o.useStyle(c)):\"object\"===l(c.fill)&&c.fill.type||\"object\"===l(o.style.fill)&&o.style.fill.type?($s(o,{shape:u},i),o.useStyle(c)):$s(o,{shape:u,style:c},i),this._updateLabel(i,h,n);var f=a.getShallow(\"cursor\");if(f&&o.attr(\"cursor\",f),t){var p=i.getShallow(\"highlightPolicy\");this._initEvents(o,e,i,p)}this._seriesModel=i||this._seriesModel,this._ecModel=r||this._ecModel},sI.onEmphasis=function(t){var e=this;this.node.hostTree.root.eachNode(function(n){var i,r,o;n.piece&&(e.node===n?n.piece.updateData(!1,n,\"emphasis\"):(i=n,r=e.node,(o=t)!==iI.NONE&&(o===iI.SELF?i===r:o===iI.ANCESTOR?i===r||i.isAncestorOf(r):i===r||i.isDescendantOf(r))?n.piece.childAt(0).trigger(\"highlight\"):t!==iI.NONE&&n.piece.childAt(0).trigger(\"downplay\")))})},sI.onNormal=function(){this.node.hostTree.root.eachNode(function(t){t.piece&&t.piece.updateData(!1,t,\"normal\")})},sI.onHighlight=function(){this.updateData(!1,this.node,\"highlight\")},sI.onDownplay=function(){this.updateData(!1,this.node,\"downplay\")},sI._updateLabel=function(t,e,n){var i=this.node.getModel(),r=i.getModel(\"label\"),o=\"normal\"===n||\"emphasis\"===n?r:i.getModel(n+\".label\"),a=i.getModel(\"emphasis.label\"),s=$(t.getFormattedLabel(this.node.dataIndex,\"normal\",null,null,\"label\"),this.node.name);!1===M(\"show\")&&(s=\"\");var l=this.node.getLayout(),u=o.get(\"minAngle\");null==u&&(u=r.get(\"minAngle\")),u=u/180*Math.PI;var h=l.endAngle-l.startAngle;null!=u&&Math.abs(h)Math.PI/2?\"right\":\"left\"):y&&\"center\"!==y?\"left\"===y?(d=l.r0+v,f>Math.PI/2&&(y=\"right\")):\"right\"===y&&(d=l.r-v,f>Math.PI/2&&(y=\"left\")):(d=(l.r+l.r0)/2,y=\"center\"),c.attr(\"style\",{text:s,textAlign:y,textVerticalAlign:M(\"verticalAlign\")||\"middle\",opacity:M(\"opacity\")});var x=d*p+l.cx,_=d*g+l.cy;c.attr(\"position\",[x,_]);var b=M(\"rotate\"),w=0;function M(t){var e=o.get(t);return null==e?r.get(t):e}\"radial\"===b?(w=-f)<-Math.PI/2&&(w+=Math.PI):\"tangential\"===b?(w=Math.PI/2-f)>Math.PI/2?w-=Math.PI:w<-Math.PI/2&&(w+=Math.PI):\"number\"==typeof b&&(w=b*Math.PI/180),c.attr(\"rotation\",w)},sI._initEvents=function(t,e,n,i){t.off(\"mouseover\").off(\"mouseout\").off(\"emphasis\").off(\"normal\");var r=this,o=function(){r.onEmphasis(i)},a=function(){r.onNormal()};n.isAnimationEnabled()&&t.on(\"mouseover\",o).on(\"mouseout\",a).on(\"emphasis\",o).on(\"normal\",a).on(\"downplay\",function(){r.onDownplay()}).on(\"highlight\",function(){r.onHighlight()})},E(aI,On),Jh.extend({type:\"sunburst\",init:function(){},render:function(t,e,n,i){var r=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),l=this.group,u=t.get(\"renderLabelForZeroData\"),h=[];s.eachNode(function(t){h.push(t)});var c=this._oldChildren||[];if(function(n,i){function r(t){return t.getId()}function s(r,s){!function(n,i){if(u||!n||n.getValue()||(n=null),n!==a&&i!==a)if(i&&i.piece)n?(i.piece.updateData(!1,n,\"normal\",t,e),o.setItemGraphicEl(n.dataIndex,i.piece)):(s=i)&&s.piece&&(l.remove(s.piece),s.piece=null);else if(n){var r=new aI(n,t,e);l.add(r),o.setItemGraphicEl(n.dataIndex,r)}var s}(null==r?null:n[r],null==s?null:i[s])}0===n.length&&0===i.length||new ff(i,n,r,r).add(s).update(s).remove(j(s,null)).execute()}(h,c),function(n,i){if(i.depth>0){r.virtualPiece?r.virtualPiece.updateData(!1,n,\"normal\",t,e):(r.virtualPiece=new aI(n,t,e),l.add(r.virtualPiece)),i.piece._onclickEvent&&i.piece.off(\"click\",i.piece._onclickEvent);var o=function(t){r._rootToNode(i.parentNode)};i.piece._onclickEvent=o,r.virtualPiece.on(\"click\",o)}else r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}(a,s),i&&i.highlight&&i.highlight.piece){var d=t.getShallow(\"highlightPolicy\");i.highlight.piece.onEmphasis(d)}else if(i&&i.unhighlight){var f=this.virtualPiece;!f&&a.children.length&&(f=a.children[0].piece),f&&f.onNormal()}this._initEvents(),this._oldChildren=h},dispose:function(){},_initEvents:function(){var t=this,e=function(e){var n=!1;t.seriesModel.getViewRoot().eachNode(function(i){if(!n&&i.piece&&i.piece.childAt(0)===e.target){var r=i.getModel().get(\"nodeClick\");if(\"rootToNode\"===r)t._rootToNode(i);else if(\"link\"===r){var o=i.getModel(),a=o.get(\"link\");if(a){var s=o.get(\"target\",!0)||\"_blank\";window.open(a,s)}}n=!0}})};this.group._onclickEvent&&this.group.off(\"click\",this.group._onclickEvent),this.group.on(\"click\",e),this.group._onclickEvent=e},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:\"sunburstRootToNode\",from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}}});var lI=\"sunburstRootToNode\";ef({type:lI,update:\"updateView\"},function(t,e){e.eachComponent({mainType:\"series\",subType:\"sunburst\",query:t},function(e,n){var i=lx(t,[lI],e);if(i){var r=e.getViewRoot();r&&(t.direction=hx(r,i.node)?\"rollUp\":\"drillDown\"),e.resetViewRoot(i.node)}})});var uI=\"sunburstHighlight\";ef({type:uI,update:\"updateView\"},function(t,e){e.eachComponent({mainType:\"series\",subType:\"sunburst\",query:t},function(e,n){var i=lx(t,[uI],e);i&&(t.highlight=i.node)})}),ef({type:\"sunburstUnhighlight\",update:\"updateView\"},function(t,e){e.eachComponent({mainType:\"series\",subType:\"sunburst\",query:t},function(e,n){t.unhighlight=!0})});var hI=Math.PI/180;function cI(t,e){return e=e||[0,0],V([\"x\",\"y\"],function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return\"category\"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))},this)}function dI(t,e){return e=e||[0,0],V([0,1],function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function fI(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return\"category\"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function pI(t,e){return V([\"Radius\",\"Angle\"],function(n,i){var r=this[\"get\"+n+\"Axis\"](),o=e[i],a=t[i]/2,s=\"dataTo\"+n,l=\"category\"===r.type?r.getBandWidth():Math.abs(r[s](o-a)-r[s](o+a));return\"Angle\"===n&&(l=l*Math.PI/180),l},this)}of(j(bv,\"sunburst\")),rf(j(function(t,e,n,i){e.eachSeriesByType(t,function(t){var e=t.get(\"center\"),i=t.get(\"radius\");Y(i)||(i=[0,i]),Y(e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=bl(e[0],r),l=bl(e[1],o),u=bl(i[0],a/2),h=bl(i[1],a/2),c=-t.get(\"startAngle\")*hI,d=t.get(\"minAngle\")*hI,f=t.getData().tree.root,p=t.getViewRoot(),g=p.depth,m=t.get(\"sort\");null!=m&&function t(e,n){var i=e.children||[];e.children=function(t,e){if(\"function\"==typeof e)return t.sort(e);var n=\"asc\"===e;return t.sort(function(t,e){var i=(t.getValue()-e.getValue())*(n?1:-1);return 0===i?(t.dataIndex-e.dataIndex)*(n?-1:1):i})}(i,n),i.length&&B(e.children,function(e){t(e,n)})}(p,m);var v=0;B(p.children,function(t){!isNaN(t.getValue())&&v++});var y=p.getValue(),x=Math.PI/(y||v)*2,_=p.depth>0,b=p.height-(_?-1:1),w=(h-u)/(b||1),M=t.get(\"clockwise\"),S=t.get(\"stillShowZeroSum\"),I=M?1:-1;if(_){var A=u,D=u+w,T=2*Math.PI;f.setLayout({angle:T,startAngle:c,endAngle:c+T,clockwise:M,cx:s,cy:l,r0:A,r:D})}!function t(e,n){if(e){var i=n;if(e!==f){var r=e.getValue(),o=0===y&&S?x:r*x;oi[1]&&i.reverse(),{coordSys:{type:\"polar\",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:H(function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a}),size:H(pI,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:\"calendar\",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}};function bI(t,e,n,i,r){null==n[t]||r||(e[t]=n[t],n[t]=i[t])}function wI(t,e,n,i){var r=t.get(\"renderItem\"),o=t.coordinateSystem,a={};o&&(c&&(rt(r,\"series.render is required.\"),rt(o.prepareCustoms||_I[o.type],\"This coordSys does not support custom series.\")),a=o.prepareCustoms?o.prepareCustoms():_I[o.type](o));var s,l,u,h,d,f=L({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:function(t,n){return null==n&&(n=s),e.get(e.getDimension(t||0),n)},style:function(n,i){null==i&&(i=s),m(i);var r=l.getModel(gI).getItemStyle();null!=d&&(r.fill=d);var o=e.getItemVisual(i,\"opacity\");return null!=o&&(r.opacity=o),Ys(r,u,null,{autoColor:d,isRectText:!0}),r.text=u.getShallow(\"show\")?tt(t.getFormattedLabel(i,\"normal\"),wg(e,i)):null,n&&C(r,n),r},styleEmphasis:function(n,i){null==i&&(i=s),m(i);var r=l.getModel(mI).getItemStyle();return Ys(r,h,null,{isRectText:!0},!0),r.text=h.getShallow(\"show\")?et(t.getFormattedLabel(i,\"emphasis\"),t.getFormattedLabel(i,\"normal\"),wg(e,i)):null,n&&C(r,n),r},visual:function(t,n){return null==n&&(n=s),e.getItemVisual(n,t)},barLayout:function(t){if(o.getBaseAxis)return function(t){var e=[],n=t.axis;if(\"category\"===n.type){for(var i=n.getBandWidth(),r=0;ru?u=c:(h.lastTickCount=i,h.lastAutoInterval=u),u}},E(EI,vg);var zI=function(t){this.name=t||\"\",this.cx=0,this.cy=0,this._radiusAxis=new OI,this._angleAxis=new EI,this._radiusAxis.polar=this._angleAxis.polar=this};zI.prototype={type:\"polar\",axisPointerEnabled:!0,constructor:zI,dimensions:[\"radius\",\"angle\"],model:null,containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this[\"_\"+t+\"Axis\"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale(\"ordinal\")[0]||this.getAxesByScale(\"time\")[0]||this.getAngleAxis()},getTooltipAxes:function(t){var e=null!=t&&\"auto\"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=la;)l+=360*u;return[s,l]},coordToPoint:function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]}};var RI=gu.extend({type:\"polarAxis\",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:\"polar\",index:this.option.polarIndex,id:this.option.polarId})[0]}});D(RI.prototype,Hp);var BI={splitNumber:5};function VI(t,e){return e.type||(e.data?\"category\":\"value\")}function FI(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){if(t.coordinateSystem===n){var e=t.getData();B(e.mapDimension(\"radius\",!0),function(t){r.scale.unionExtentFromData(e,Zf(e,t))}),B(e.mapDimension(\"angle\",!0),function(t){i.scale.unionExtentFromData(e,Zf(e,t))})}}),zp(i.scale,i.model),zp(r.scale,r.model),\"category\"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function GI(t,e){if(t.type=e.get(\"type\"),t.scale=Rp(e),t.onBand=e.get(\"boundaryGap\")&&\"category\"===t.type,t.inverse=e.get(\"inverse\"),\"angleAxis\"===e.mainType){t.inverse^=e.get(\"clockwise\");var n=e.get(\"startAngle\");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}vm(\"angle\",RI,VI,{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}}),vm(\"radius\",RI,VI,BI),lf({type:\"polar\",dependencies:[\"polarAxis\",\"angleAxis\"],coordinateSystem:null,findAxisModel:function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},defaultOption:{zlevel:0,z:0,center:[\"50%\",\"50%\"],radius:\"80%\"}});var WI={dimensions:zI.prototype.dimensions,create:function(t,e){var n=[];return t.eachComponent(\"polar\",function(t,i){var r=new zI(i);r.update=FI;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel(\"radiusAxis\"),l=t.findAxisModel(\"angleAxis\");GI(o,s),GI(a,l),function(t,e,n){var i=e.get(\"center\"),r=n.getWidth(),o=n.getHeight();t.cx=bl(i[0],r),t.cy=bl(i[1],o);var a=t.getRadiusAxis(),s=Math.min(r,o)/2,l=bl(e.get(\"radius\"),s);a.inverse?a.setExtent(l,0):a.setExtent(0,l)}(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t}),t.eachSeries(function(e){if(\"polar\"===e.get(\"coordinateSystem\")){var n=t.queryComponents({mainType:\"polar\",index:e.get(\"polarIndex\"),id:e.get(\"polarId\")})[0];if(c&&!n)throw new Error('Polar \"'+$(e.get(\"polarIndex\"),e.get(\"polarId\"),0)+'\" not found');e.coordinateSystem=n.coordinateSystem}}),n}};Uu.register(\"polar\",WI);var HI=[\"axisLine\",\"axisLabel\",\"axisTick\",\"splitLine\",\"splitArea\"];function jI(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function YI(t){return t.getRadiusAxis().inverse?0:1}function ZI(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}Zm.extend({type:\"angleAxis\",axisPointerClass:\"PolarAxisPointer\",render:function(t,e){if(this.group.removeAll(),t.get(\"show\")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=V(n.getViewLabels(),function(t){return(t=A(t)).coord=n.dataToCoord(t.tickValue),t});ZI(a),ZI(o),B(HI,function(e){!t.get(e+\".show\")||n.scale.isBlank()&&\"axisLine\"!==e||this[\"_\"+e](t,i,o,r,a)},this)}},_axisLine:function(t,e,n,i){var r=t.getModel(\"axisLine.lineStyle\"),o=new Ra({shape:{cx:e.cx,cy:e.cy,r:i[YI(e)]},style:r.getLineStyle(),z2:1,silent:!0});o.style.fill=null,this.group.add(o)},_axisTick:function(t,e,n,i){var r=t.getModel(\"axisTick\"),o=(r.get(\"inside\")?-1:1)*r.get(\"length\"),a=i[YI(e)],s=V(n,function(t){return new es({shape:jI(e,[a,a+o],t.coord)})});this.group.add(Ss(s,{style:L(r.getModel(\"lineStyle\").getLineStyle(),{stroke:t.get(\"axisLine.lineStyle.color\")})}))},_axisLabel:function(t,e,n,i,r){var o=t.getCategories(!0),a=t.getModel(\"axisLabel\"),s=a.get(\"margin\"),l=t.get(\"triggerEvent\");B(r,function(n,r){var u=a,h=n.tickValue,c=i[YI(e)],d=e.coordToPoint([c+s,n.coord]),f=e.cx,p=e.cy,g=Math.abs(d[0]-f)/c<.3?\"center\":d[0]>f?\"left\":\"right\",m=Math.abs(d[1]-p)/c<.3?\"middle\":d[1]>p?\"top\":\"bottom\";o&&o[h]&&o[h].textStyle&&(u=new pl(o[h].textStyle,a,a.ecModel));var v=new za({silent:Lm.isLabelSilent(t)});this.group.add(v),Ys(v.style,u,{x:d[0],y:d[1],textFill:u.getTextColor()||t.get(\"axisLine.lineStyle.color\"),text:n.formattedLabel,textAlign:g,textVerticalAlign:m}),l&&(v.eventData=Lm.makeAxisEventDataBase(t),v.eventData.targetType=\"axisLabel\",v.eventData.value=n.rawLabel)},this)},_splitLine:function(t,e,n,i){var r=t.getModel(\"splitLine\").getModel(\"lineStyle\"),o=r.get(\"color\"),a=0;o=o instanceof Array?o:[o];for(var s=[],l=0;lm?\"left\":\"right\",h=Math.abs(l[1]-v)/g<.3?\"middle\":l[1]>v?\"top\":\"bottom\"}return{position:l,align:u,verticalAlign:h}}(e,n,0,s,i.get(\"label.margin\"));BS(t,n,i,r,d)}}),KI={line:function(t,e,n,i,r){return\"angle\"===t.dim?{type:\"Line\",shape:WS(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:\"Circle\",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i,r){var o=Math.max(1,t.getBandWidth()),a=Math.PI/180;return\"angle\"===t.dim?{type:\"Sector\",shape:jS(e.cx,e.cy,i[0],i[1],(-n-o/2)*a,(o/2-n)*a)}:{type:\"Sector\",shape:jS(e.cx,e.cy,n-o/2,n+o/2,0,2*Math.PI)}}};function QI(t,e){e.update=\"updateView\",ef(e,function(e,n){var i={};return n.eachComponent({mainType:\"geo\",query:e},function(n){n[t](e.name),B(n.coordinateSystem.regions,function(t){i[t.name]=n.isSelected(t.name)||!1})}),{selected:i,name:e.name}})}function JI(t,e,n){this._model=t}function $I(t,e,n,i){var r=n.calendarModel,o=n.seriesModel,a=r?r.coordinateSystem:o?o.coordinateSystem:null;return a===this?a[t](i):null}Zm.registerAxisPointerClass(\"PolarAxisPointer\",qI),rf(j(function(t,e,n){var i={},r=function(t,e){var n={};B(t,function(t,e){var i=t.getData(),r=t.coordinateSystem.getBaseAxis(),o=r.getExtent(),a=\"category\"===r.type?r.getBandWidth():Math.abs(o[1]-o[0])/i.count(),s=n[PI(r)]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:\"20%\",gap:\"30%\",stacks:{}},l=s.stacks;n[PI(r)]=s;var u=kI(t);l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var h=bl(t.get(\"barWidth\"),a),c=bl(t.get(\"barMaxWidth\"),a),d=t.get(\"barGap\"),f=t.get(\"barCategoryGap\");h&&!l[u].width&&(h=Math.min(s.remainedWidth,h),l[u].width=h,s.remainedWidth-=h),c&&(l[u].maxWidth=c),null!=d&&(s.gap=d),null!=f&&(s.categoryGap=f)});var i={};return B(n,function(t,e){i[e]={};var n=t.stacks,r=t.bandWidth,o=bl(t.categoryGap,r),a=bl(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),B(n,function(t,e){var n=t.maxWidth;n&&n=0?\"p\":\"n\",T=y;if(v&&(i[a][w]||(i[a][w]={p:y,n:y}),T=i[a][w][D]),\"radius\"===h.dim){var C=h.dataToRadius(b)-y,L=o.dataToAngle(w);Math.abs(C)=i.start.time&&n.timeo.end.time&&t.reverse(),t},_getRangeInfo:function(t){var e;(t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])])[0].time>t[1].time&&(e=!0,t.reverse());var n=Math.floor(t[1].time/864e5)-Math.floor(t[0].time/864e5)+1,i=new Date(t[0].time),r=i.getDate(),o=t[1].date.getDate();if(i.setDate(r+n-1),i.getDate()!==o)for(var a=i.getTime()-t[1].time>0?1:-1;i.getDate()!==o&&(i.getTime()-t[1].time)*a>0;)n-=a,i.setDate(r+n-1);var s=Math.floor((n+t[0].day+6)/7),l=e?1-s:s-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:s,nthWeek:l,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&ei.lweek)return!1;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(i.start.d+r),this.getDateInfo(o)}},JI.dimensions=JI.prototype.dimensions,JI.getDimensionsInfo=JI.prototype.getDimensionsInfo,JI.create=function(t,e){var n=[];return t.eachComponent(\"calendar\",function(i){var r=new JI(i,t,e);n.push(r),i.coordinateSystem=r}),t.eachSeries(function(t){\"calendar\"===t.get(\"coordinateSystem\")&&(t.coordinateSystem=n[t.get(\"calendarIndex\")||0])}),n},Uu.register(\"calendar\",JI);var tA=gu.extend({type:\"calendar\",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:\"horizontal\",splitLine:{show:!0,lineStyle:{color:\"#000\",width:1,type:\"solid\"}},itemStyle:{color:\"#fff\",borderWidth:1,borderColor:\"#ccc\"},dayLabel:{show:!0,firstDay:0,position:\"start\",margin:\"50%\",nameMap:\"en\",color:\"#000\"},monthLabel:{show:!0,position:\"start\",margin:5,align:\"center\",nameMap:\"en\",formatter:null,color:\"#000\"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:\"#ccc\",fontFamily:\"sans-serif\",fontWeight:\"bolder\",fontSize:20}},init:function(t,e,n,i){var r=hu(t);tA.superApply(this,\"init\",arguments),eA(t,r)},mergeOption:function(t,e){tA.superApply(this,\"mergeOption\",arguments),eA(this.option,t)}});function eA(t,e){var n=t.cellSize;Y(n)?1===n.length&&(n[1]=n[0]):n=t.cellSize=[n,n];var i=V([0,1],function(t){return function(t,e){return null!=t[ru[e][0]]||null!=t[ru[e][1]]&&null!=t[ru[e][2]]}(e,t)&&(n[t]=\"auto\"),null!=n[t]&&\"auto\"!==n[t]});uu(t,e,{type:\"box\",ignoreSize:i})}var nA={EN:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],CN:[\"一月\",\"二月\",\"三月\",\"四月\",\"五月\",\"六月\",\"七月\",\"八月\",\"九月\",\"十月\",\"十一月\",\"十二月\"]},iA={EN:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],CN:[\"日\",\"一\",\"二\",\"三\",\"四\",\"五\",\"六\"]};uf({type:\"calendar\",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,a,i),this._renderWeekText(t,o,a,i)},_renderDayRect:function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel(\"itemStyle\").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new $a({shape:{x:l[0],y:l[1],width:o,height:a},cursor:\"default\",style:r});n.add(u)}},_renderLines:function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel(\"splitLine.lineStyle\").getLineStyle(),s=t.get(\"splitLine.show\"),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,h=0;u.time<=e.end.time;h++){d(u.formatedDate),0===h&&(u=o.getDateInfo(e.start.y+\"-\"+e.start.m));var c=u.date;c.setMonth(c.getMonth()+1),u=o.getDateInfo(c)}function d(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},_getEdgesPoints:function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r=\"horizontal\"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},_drawSplitline:function(t,e,n){var i=new Ua({z2:20,shape:{points:t},style:e});n.add(i)},_getLinePointsOfOneWeek:function(t,e,n){var i=t.coordinateSystem;e=i.getDateInfo(e);for(var r=[],o=0;o<7;o++){var a=i.getNextNDay(e.time,o),s=i.dataToRect([a.time],!1);r[2*a.day]=s.tl,r[2*a.day+1]=s[\"horizontal\"===n?\"bl\":\"tr\"]}return r},_formatterLabel:function(t,e){return\"string\"==typeof t&&t?Xl(t,e):\"function\"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,n,i,r){e=e.slice();var o=[\"center\",\"bottom\"];\"bottom\"===i?(e[1]+=r,o=[\"center\",\"top\"]):\"left\"===i?e[0]-=r:\"right\"===i?(e[0]+=r,o=[\"center\",\"top\"]):e[1]-=r;var a=0;return\"left\"!==i&&\"right\"!==i||(a=Math.PI/2),{rotation:a,position:e,style:{textAlign:o[0],textVerticalAlign:o[1]}}},_renderYearText:function(t,e,n,i){var r=t.getModel(\"yearLabel\");if(r.get(\"show\")){var o=r.get(\"margin\"),a=r.get(\"position\");a||(a=\"horizontal\"!==n?\"top\":\"left\");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,h=\"horizontal\"===n?0:1,c={top:[l,s[h][1]],bottom:[l,s[1-h][1]],left:[s[1-h][0],u],right:[s[h][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+\"-\"+e.end.y);var f=r.get(\"formatter\"),p={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(f,p),m=new za({z2:30});Ys(m.style,r,{text:g}),m.attr(this._yearTextPositionControl(m,c[a],n,a,o)),i.add(m)}},_monthTextPositionControl:function(t,e,n,i,r){var o=\"left\",a=\"top\",s=t[0],l=t[1];return\"horizontal\"===n?(l+=r,e&&(o=\"center\"),\"start\"===i&&(a=\"bottom\")):(s+=r,e&&(a=\"middle\"),\"start\"===i&&(o=\"right\")),{x:s,y:l,textAlign:o,textVerticalAlign:a}},_renderMonthText:function(t,e,n){var i=t.getModel(\"monthLabel\");if(i.get(\"show\")){var r=i.get(\"nameMap\"),o=i.get(\"margin\"),a=i.get(\"position\"),s=i.get(\"align\"),l=[this._tlpoints,this._blpoints];U(r)&&(r=nA[r.toUpperCase()]||[]);var u=\"start\"===a?0:1,h=\"horizontal\"===e?0:1;o=\"start\"===a?-o:o;for(var c=\"center\"===s,d=0;d=0;l--)null==r[l]?r.splice(l,1):delete r[l].$action},_flatten:function(t,e,n){B(t,function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;\"group\"===t.type&&i&&this._flatten(i,e,t),delete t.children}},this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});function oA(t,e,n,i){var r=n.type;c&&rt(r,\"graphic type MUST be set\");var o=sl[r.charAt(0).toUpperCase()+r.slice(1)];c&&rt(o,\"graphic type can not be found\");var a=new o(n);e.add(a),i.set(t,a),a.__ecGraphicId=t}function aA(t,e){var n=t&&t.parent;n&&(\"group\"===t.type&&t.traverse(function(t){aA(t,e)}),e.removeKey(t.__ecGraphicId),n.remove(t))}function sA(t,e){var n;return B(e,function(e){null!=t[e]&&\"auto\"!==t[e]&&(n=!0)}),n}uf({type:\"graphic\",init:function(t,e){this._elMap=ht(),this._lastGraphicModel},render:function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},_updateElements:function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group;B(e,function(e){var r=e.$action,o=e.id,a=n.get(o),s=e.parentId,l=null!=s?n.get(s):i,u=e.style;\"text\"===e.type&&u&&(e.hv&&e.hv[1]&&(u.textVerticalAlign=u.textBaseline=null),!u.hasOwnProperty(\"textFill\")&&u.fill&&(u.textFill=u.fill),!u.hasOwnProperty(\"textStroke\")&&u.stroke&&(u.textStroke=u.stroke));var h=function(t){return t=C({},t),B([\"id\",\"parentId\",\"$action\",\"hv\",\"bounding\"].concat(iu),function(e){delete t[e]}),t}(e);c&&a&&rt(l===a.parent,\"Changing parent is not supported.\"),r&&\"merge\"!==r?\"replace\"===r?(aA(a,n),oA(o,l,h,n)):\"remove\"===r&&aA(a,n):a?a.attr(h):oA(o,l,h,n);var d=n.get(o);d&&(d.__ecGraphicWidth=e.width,d.__ecGraphicHeight=e.height,function(t,e,n){var i=t.eventData;t.silent||t.ignore||i||(i=t.eventData={componentType:\"graphic\",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=t.info)}(d,t))})}},_relocate:function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,o=n.length-1;o>=0;o--){var a=n[o],s=r.get(a.id);if(s){var l=s.parent;lu(s,a,l===i?{width:e.getWidth(),height:e.getHeight()}:{width:l.__ecGraphicWidth||0,height:l.__ecGraphicHeight||0},null,{hv:a.hv,boundingMode:a.bounding})}}},_clear:function(){var t=this._elMap;t.each(function(e){aA(e,t)}),this._elMap=ht()},dispose:function(){this._clear()}});var lA={};function uA(t,e){lA[t]=e}function hA(t){return lA[t]}var cA=lf({type:\"toolbox\",layoutMode:{type:\"box\",ignoreSize:!0},optionUpdated:function(){cA.superApply(this,\"optionUpdated\",arguments),B(this.option.feature,function(t,e){var n=hA(e);n&&D(t,n.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:\"horizontal\",left:\"right\",top:\"top\",backgroundColor:\"transparent\",borderColor:\"#ccc\",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:\"#666\",color:\"none\"},emphasis:{iconStyle:{borderColor:\"#3E98C5\"}}}});function dA(t,e){var n=Gl(e.get(\"padding\")),i=e.getItemStyle([\"color\",\"opacity\"]);return i.fill=e.get(\"backgroundColor\"),t=new $a({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get(\"borderRadius\")},style:i,silent:!0,z2:-1})}uf({type:\"toolbox\",render:function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get(\"show\")){var o=+t.get(\"itemSize\"),a=t.get(\"feature\")||{},s=this._features||(this._features={}),l=[];B(a,function(t,e){l.push(e)}),new ff(this._featureNames||[],l).add(u).update(u).remove(j(u,null)).execute(),this._featureNames=l,function(t,e,n){var i=e.getBoxLayoutParams(),r=e.get(\"padding\"),o={width:n.getWidth(),height:n.getHeight()},a=su(i,o,r);au(e.get(\"orient\"),t,e.get(\"itemGap\"),a.width,a.height),lu(t,i,o,r)}(r,t,n),r.add(dA(r.getBoundingRect(),t)),r.eachChild(function(t){var e=t.__title,i=t.hoverStyle;if(i&&e){var a=yi(e,ki(i)),s=t.position[0]+r.position[0],l=!1;t.position[1]+r.position[1]+o+a.height>n.getHeight()&&(i.textPosition=\"top\",l=!0);var u=l?-5-a.height:o+8;s+a.width/2>n.getWidth()?(i.textPosition=[\"100%\",u],i.textAlign=\"right\"):s-a.width/2<0&&(i.textPosition=[0,u],i.textAlign=\"left\")}})}function u(u,h){var c,d=l[u],f=l[h],p=new pl(a[d],t,t.ecModel);if(d&&!f){if(function(t){return 0===t.indexOf(\"my\")}(d))c={model:p,onclick:p.option.onclick,featureName:d};else{var g=hA(d);if(!g)return;c=new g(p,e,n)}s[d]=c}else{if(!(c=s[f]))return;c.model=p,c.ecModel=e,c.api=n}d||!f?p.get(\"show\")&&!c.unusable?(function(i,a,s){var l=i.getModel(\"iconStyle\"),u=i.getModel(\"emphasis.iconStyle\"),h=a.getIcons?a.getIcons():i.get(\"icon\"),c=i.get(\"title\")||{};if(\"string\"==typeof h){var d=h,f=c;c={},(h={})[s]=d,c[s]=f}var p=i.iconPaths={};B(h,function(s,h){var d=al(s,{},{x:-o/2,y:-o/2,width:o,height:o});d.setStyle(l.getItemStyle()),d.hoverStyle=u.getItemStyle(),Fs(d),t.get(\"showTitle\")&&(d.__title=c[h],d.on(\"mouseover\",function(){var t=u.getItemStyle();d.setStyle({text:c[h],textPosition:t.textPosition||\"bottom\",textFill:t.fill||t.stroke||\"#000\",textAlign:t.textAlign||\"center\"})}).on(\"mouseout\",function(){d.setStyle({textFill:null})})),d.trigger(i.get(\"iconStatus.\"+h)||\"normal\"),r.add(d),d.on(\"click\",H(a.onclick,a,e,n,h)),p[h]=d})}(p,c,d),p.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&i[t].trigger(e)},c.render&&c.render(p,e,n,i)):c.remove&&c.remove(e,n):c.dispose&&c.dispose(e,n)}},updateView:function(t,e,n,i){B(this._features,function(t){t.updateView&&t.updateView(t.model,e,n,i)})},remove:function(t,e){B(this._features,function(n){n.remove&&n.remove(t,e)}),this.group.removeAll()},dispose:function(t,e){B(this._features,function(n){n.dispose&&n.dispose(t,e)})}});var fA=dc.toolbox.saveAsImage;function pA(t){this.model=t}pA.defaultOption={show:!0,icon:\"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0\",title:fA.title,type:\"png\",name:\"\",excludeComponents:[\"toolbox\"],pixelRatio:1,lang:fA.lang.slice()},pA.prototype.unusable=!p.canvasSupported,pA.prototype.onclick=function(t,e){var n=this.model,i=n.get(\"name\")||t.get(\"title.0.text\")||\"echarts\",r=document.createElement(\"a\"),o=n.get(\"type\",!0)||\"png\";r.download=i+\".\"+o,r.target=\"_blank\";var a=e.getConnectedDataURL({type:o,backgroundColor:n.get(\"backgroundColor\",!0)||t.get(\"backgroundColor\")||\"#fff\",excludeComponents:n.get(\"excludeComponents\"),pixelRatio:n.get(\"pixelRatio\")});if(r.href=a,\"function\"!=typeof MouseEvent||p.browser.ie||p.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var s=atob(a.split(\",\")[1]),l=s.length,u=new Uint8Array(l);l--;)u[l]=s.charCodeAt(l);var h=new Blob([u]);window.navigator.msSaveOrOpenBlob(h,i+\".\"+o)}else{var c=n.get(\"lang\"),d='';window.open().document.write(d)}else{var f=new MouseEvent(\"click\",{view:window,bubbles:!0,cancelable:!1});r.dispatchEvent(f)}},uA(\"saveAsImage\",pA);var gA=dc.toolbox.magicType;function mA(t){this.model=t}mA.defaultOption={show:!0,type:[],icon:{line:\"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4\",bar:\"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7\",stack:\"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z\",tiled:\"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z\"},title:A(gA.title),option:{},seriesIndex:{}};var vA=mA.prototype;vA.getIcons=function(){var t=this.model,e=t.get(\"icon\"),n={};return B(t.get(\"type\"),function(t){e[t]&&(n[t]=e[t])}),n};var yA={line:function(t,e,n,i){if(\"bar\"===t)return D({id:e,type:\"line\",data:n.get(\"data\"),stack:n.get(\"stack\"),markPoint:n.get(\"markPoint\"),markLine:n.get(\"markLine\")},i.get(\"option.line\")||{},!0)},bar:function(t,e,n,i){if(\"line\"===t)return D({id:e,type:\"bar\",data:n.get(\"data\"),stack:n.get(\"stack\"),markPoint:n.get(\"markPoint\"),markLine:n.get(\"markLine\")},i.get(\"option.bar\")||{},!0)},stack:function(t,e,n,i){if(\"line\"===t||\"bar\"===t)return D({id:e,stack:\"__ec_magicType_stack__\"},i.get(\"option.stack\")||{},!0)},tiled:function(t,e,n,i){if(\"line\"===t||\"bar\"===t)return D({id:e,stack:\"\"},i.get(\"option.tiled\")||{},!0)}},xA=[[\"line\",\"bar\"],[\"stack\",\"tiled\"]];vA.onclick=function(t,e,n){var i=this.model,r=i.get(\"seriesIndex.\"+n);if(yA[n]){var o={series:[]};B(xA,function(t){N(t,n)>=0&&B(t,function(t){i.setIconStatus(t,\"normal\")})}),i.setIconStatus(n,\"emphasis\"),t.eachComponent({mainType:\"series\",query:null==r?null:{seriesIndex:r}},function(e){var r=e.subType,a=e.id,s=yA[n](r,a,e,i);s&&(L(s,e.option),o.series.push(s));var l=e.coordinateSystem;if(l&&\"cartesian2d\"===l.type&&(\"line\"===n||\"bar\"===n)){var u=l.getAxesByScale(\"ordinal\")[0];if(u){var h=u.dim+\"Axis\",c=t.queryComponents({mainType:h,index:e.get(name+\"Index\"),id:e.get(name+\"Id\")})[0].componentIndex;o[h]=o[h]||[];for(var d=0;d<=c;d++)o[h][c]=o[h][c]||{};o[h][c].boundaryGap=\"bar\"===n}}}),e.dispatchAction({type:\"changeMagicType\",currentType:n,newOption:o})}},ef({type:\"changeMagicType\",event:\"magicTypeChanged\",update:\"prepareAndUpdate\"},function(t,e){e.mergeOption(t.newOption)}),uA(\"magicType\",mA);var _A=dc.toolbox.dataView,bA=new Array(60).join(\"-\"),wA=\"\\t\";function MA(t){return V(t,function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,function(){for(var t=arguments.length,r=arguments[t-1],o=e.getName(r),a=0;a=0)return!0}(t)){var r=function(t){for(var e=t.split(/\\n+/g),n=[],i=V(SA(e.shift()).split(IA),function(t){return{name:t,data:[]}}),r=0;r=0)&&t(o,i,r)})}var EA=NA.prototype;function zA(t){return t[0]>t[1]&&t.reverse(),t}function RA(t,e){return Fr(t,e,{includeMainTypes:OA})}EA.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=GA[t.brushType](0,n,e);t.__rangeOffset={offset:HA[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})},EA.matchOutputRanges=function(t,e,n){CA(t,function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&B(i.coordSyses,function(i){var r=GA[t.brushType](1,i,t.range);n(t,r.values,i,e)})},this)},EA.setInputRanges=function(t,e){CA(t,function(t){var n,i,r,o,a,s=this.findTargetInfo(t,e);if(c&&(rt(!s||!0===s||t.coordRange,\"coordRange must be specified when coord index specified.\"),rt(!s||!0!==s||t.range,\"range must be specified in global brush.\")),t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=GA[t.brushType](0,s.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?HA[t.brushType](l.values,u.offset,(n=l.xyMinMax,i=u.xyMinMax,r=YA(n),o=YA(i),a=[r[0]/o[0],r[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}},this)},EA.makePanelOpts=function(t,e){return V(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e&&e(n),clipPath:gw(i),isTargetByCursor:vw(i,t,n.coordSysModel),getLinearBrushOtherExtent:mw(i)}})},EA.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&LA(i.coordSyses,e.coordinateSystem)>=0},EA.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=RA(e,t),r=0;r=0||LA(i,t.getAxis(\"y\").model)>=0)&&o.push(t)}),e.push({panelId:\"grid--\"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:FA.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,e){CA(t.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:\"geo--\"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:FA.geo})})}},VA=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],FA={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(el(t)),e}},GA={lineX:kA(WA,0),lineY:kA(WA,1),rect:function(t,e,n){var i=e[PA[t]]([n[0][0],n[1][0]]),r=e[PA[t]]([n[0][1],n[1][1]]),o=[zA([i[0],r[0]]),zA([i[1],r[1]])];return{values:o,xyMinMax:o}},polygon:function(t,e,n){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:V(n,function(n){var r=e[PA[t]](n);return i[0][0]=Math.min(i[0][0],r[0]),i[1][0]=Math.min(i[1][0],r[1]),i[0][1]=Math.max(i[0][1],r[0]),i[1][1]=Math.max(i[1][1],r[1]),r}),xyMinMax:i}}};function WA(t,e,n,i){c&&rt(\"cartesian2d\"===n.type,\"lineX/lineY brush is available only in cartesian2d.\");var r=n.getAxis([\"x\",\"y\"][t]),o=zA(V([0,1],function(t){return e?r.coordToData(r.toLocalCoord(i[t])):r.toGlobalCoord(r.dataToCoord(i[t]))})),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var HA={lineX:kA(jA,0),lineY:kA(jA,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return V(t,function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]})}};function jA(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function YA(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var ZA=B,UA=\"\\0_ec_hist_store\";function XA(t){var e=t[UA];return e||(e=t[UA]=[{}]),e}gu.registerSubTypeDefaulter(\"dataZoom\",function(){return\"slider\"});var qA,KA,QA,JA,$A=[\"cartesian2d\",\"polar\",\"singleAxis\"],tD=(KA=[\"axisIndex\",\"axis\",\"index\",\"id\"],QA=V(qA=(qA=[\"x\",\"y\",\"z\",\"radius\",\"angle\",\"single\"]).slice(),Jl),JA=V(KA=(KA||[]).slice(),Jl),function(t,e){B(qA,function(n,i){for(var r={name:n,capital:QA[i]},o=0;o=0}(t,a)&&function(t,i){var r=!1;return e(function(e){B(n(t,e)||[],function(t){i.records[e.name][t]&&(r=!0)})}),r}(t,a)&&(i(t,a),o=!0)}return a};function i(t,i){i.nodes.push(t),e(function(e){B(n(t,e)||[],function(t){i.records[e.name][t]=!0})})}}var nD=B,iD=Ml,rD=function(t,e,n,i){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=i,this._dataZoomModel=n};function oD(t,e){var n=t.getAxisModel(),i=t._percentWindow,r=t._valueWindow;if(i){var o=Al(r,[0,500]);o=Math.min(o,20);var a=e||0===i[0]&&100===i[1];n.setRange(a?null:+r[0].toFixed(o),a?null:+r[1].toFixed(o))}}rD.prototype={constructor:rD,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries(function(n){if(o=n.get(\"coordinateSystem\"),N($A,o)>=0){var i=this._dimName,r=e.queryComponents({mainType:i+\"Axis\",index:n.get(i+\"AxisIndex\"),id:n.get(i+\"AxisId\")})[0];this._axisIndex===(r&&r.componentIndex)&&t.push(n)}var o},this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+\"Axis\",this._axisIndex)},getOtherAxisModel:function(){var t,e,n,i=this._dimName,r=this.ecModel,o=this.getAxisModel();return\"x\"===i||\"y\"===i?(e=\"gridIndex\",t=\"x\"===i?\"y\":\"x\"):(e=\"polarIndex\",t=\"angle\"===i?\"radius\":\"angle\"),r.eachComponent(t+\"Axis\",function(t){(t.get(e)||0)===(o.get(e)||0)&&(n=t)}),n},getMinMaxSpan:function(){return A(this._minMaxSpan)},calculateDataWindow:function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];nD([\"start\",\"end\"],function(l,u){var h=t[l],c=t[l+\"Value\"];\"percent\"===r[u]?(null==h&&(h=o[u]),c=i.parse(_l(h,o,n))):(e=!0,h=_l(c=null==c?n[u]:i.parse(c),n,o)),s[u]=c,a[u]=h}),iD(s),iD(a);var l=this._minMaxSpan;function u(t,e,n,r,o){var a=o?\"Span\":\"ValueSpan\";hb(0,t,n,\"all\",l[\"min\"+a],l[\"max\"+a]);for(var s=0;s<2;s++)e[s]=_l(t[s],n,r,!0),o&&(e[s]=i.parse(e[s]))}return e?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},reset:function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=(i=this,r=this._dimName,o=[1/0,-1/0],nD(e,function(t){var e=t.getData();e&&nD(e.mapDimension(r,!0),function(t){var n=e.getApproximateExtent(t);n[0]o[1]&&(o[1]=n[1])})}),o[1]0?0:NaN);var a=n.getMax(!0);null!=a&&\"dataMax\"!==a&&\"function\"!=typeof a?e[1]=a:r&&(e[1]=o>0?o-1:NaN),n.get(\"scale\",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0))}(i,o),o),function(t){var e=t._minMaxSpan={},n=t._dataZoomModel,i=t._dataExtent;nD([\"min\",\"max\"],function(r){var o=n.get(r+\"Span\"),a=n.get(r+\"ValueSpan\");null!=a&&(a=t.getAxisModel().axis.scale.parse(a)),null!=a?o=_l(i[0]+a,i,[0,100],!0):null!=o&&(a=_l(o,[0,100],i,!0)-i[0]),e[r+\"Span\"]=o,e[r+\"ValueSpan\"]=a})}(this);var n=this.calculateDataWindow(t.option);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,oD(this)}var i,r,o},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,oD(this,!0))},filterData:function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get(\"filterMode\"),o=this._valueWindow;\"none\"!==r&&nD(i,function(t){var e=t.getData(),i=e.mapDimension(n,!0);i.length&&(\"weakFilter\"===r?e.filterSelf(function(t){for(var n,r,a,s=0;so[1];if(u&&!h&&!c)return!0;u&&(a=!0),h&&(n=!0),c&&(r=!0)}return a&&n&&r}):nD(i,function(n){if(\"empty\"===r)t.setData(e.map(n,function(t){return function(t){return t>=o[0]&&t<=o[1]}(t)?t:NaN}));else{var i={};i[n]=o,e.selectRange(i)}}),nD(i,function(t){e.setApproximateExtent(o,t)}))})}}};var aD=B,sD=tD,lD=lf({type:\"dataZoom\",dependencies:[\"xAxis\",\"yAxis\",\"zAxis\",\"radiusAxis\",\"angleAxis\",\"singleAxis\",\"series\"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:\"filter\",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(t,e,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=[\"percent\",\"percent\"];var i=uD(t);this.mergeDefaultAndTheme(t,n),this.doInit(i)},mergeOption:function(t){var e=uD(t);D(this.option,t,!0),this.doInit(e)},doInit:function(t){var e=this.option;p.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),hD(this,t),aD([[\"start\",\"startValue\"],[\"end\",\"endValue\"]],function(t,n){\"value\"===this._rangePropMode[n]&&(e[t[0]]=null)},this),this.textStyleModel=this.getModel(\"textStyle\"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(e,n,i,r){var o=this.dependentModels[e.axis][n],a=o.__dzAxisProxy||(o.__dzAxisProxy=new rD(e.name,n,this,r));t[e.name+\"_\"+n]=a},this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();sD(function(e){var n=e.axisIndex;t[n]=Cr(t[n])},this),\"axisIndex\"===e?this._autoSetAxisIndex():\"orient\"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;sD(function(n){null!=t[n.axisIndex]&&(e=!0)},this);var n=t.orient;return null==n&&e?\"orient\":e?void 0:(null==n&&(t.orient=\"horizontal\"),\"axisIndex\")},_autoSetAxisIndex:function(){var t=!0,e=this.get(\"orient\",!0),n=this.option,i=this.dependentModels;if(t){var r=\"vertical\"===e?\"y\":\"x\";i[r+\"Axis\"].length?(n[r+\"AxisIndex\"]=[0],t=!1):aD(i.singleAxis,function(i){t&&i.get(\"orient\",!0)===e&&(n.singleAxisIndex=[i.componentIndex],t=!1)})}t&&sD(function(e){if(t){var i=[],r=this.dependentModels[e.axis];if(r.length&&!i.length)for(var o=0,a=r.length;o0?100:20}},getFirstTargetAxisModel:function(){var t;return sD(function(e){if(null==t){var n=this.get(e.axisIndex);n.length&&(t=this.dependentModels[e.axis][n[0]])}},this),t},eachTargetAxis:function(t,e){var n=this.ecModel;sD(function(i){aD(this.get(i.axisIndex),function(r){t.call(e,i,r,this,n)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+\"_\"+e]},getAxisModel:function(t,e){var n=this.getAxisProxy(t,e);return n&&n.getAxisModel()},setRawRange:function(t,e){var n=this.option;aD([[\"start\",\"startValue\"],[\"end\",\"endValue\"]],function(e){null==t[e[0]]&&null==t[e[1]]||(n[e[0]]=t[e[0]],n[e[1]]=t[e[1]])},this),!e&&hD(this,t)},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var n in e)if(e.hasOwnProperty(n)&&e[n].hostedBy(this))return e[n];for(var n in e)if(e.hasOwnProperty(n)&&!e[n].hostedBy(this))return e[n]},getRangePropMode:function(){return this._rangePropMode.slice()}});function uD(t){var e={};return aD([\"start\",\"end\",\"startValue\",\"endValue\",\"throttle\"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}function hD(t,e){var n=t._rangePropMode,i=t.get(\"rangeMode\");aD([[\"start\",\"startValue\"],[\"end\",\"endValue\"]],function(t,r){var o=null!=e[t[0]],a=null!=e[t[1]];o&&!a?n[r]=\"percent\":!o&&a?n[r]=\"value\":i?n[r]=i[r]:o&&(n[r]=\"percent\")})}var cD=Uh.extend({type:\"dataZoom\",render:function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},getTargetCoordInfo:function(){var t=this.dataZoomModel,e=this.ecModel,n={};return t.eachTargetAxis(function(t,i){var r=e.getComponent(t.axis,i);if(r){var o=r.getCoordSysModel();o&&function(t,e,n,i){for(var r,o=0;o1?\"emphasis\":\"normal\")}(t,e)},mD.onclick=function(t,e,n){vD[n].call(this)},mD.remove=function(t,e){this._brushController.unmount()},mD.dispose=function(t,e){this._brushController.dispose()};var vD={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:\"takeGlobalCursor\",key:\"dataZoomSelect\",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var e=XA(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return ZA(n,function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n]){i[n]=t;break}}),i}(this.ecModel))}};function yD(t){var e={};return B([\"xAxisIndex\",\"yAxisIndex\"],function(n){e[n]=t[n],null==e[n]&&(e[n]=\"all\"),(!1===e[n]||\"none\"===e[n])&&(e[n]=[])}),e}mD._onBrush=function(t,e){if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]),new NA(yD(this.model.option),i,{include:[\"grid\"]}).matchOutputRanges(t,i,function(t,e,n){if(\"cartesian2d\"===n.type){var i=t.brushType;\"rect\"===i?(r(\"x\",n,e[0]),r(\"y\",n,e[1])):r({lineX:\"x\",lineY:\"y\"}[i],n,e)}}),function(t,e){var n=XA(t);ZA(e,function(e,i){for(var r=n.length-1;r>=0&&!n[r][i];r--);if(r<0){var o=t.queryComponents({mainType:\"dataZoom\",subType:\"select\",id:i})[0];if(o){var a=o.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}}),n.push(e)}(i,n),this._dispatchZoomAction(n)}function r(t,e,r){var o=e.getAxis(t),a=o.model,s=function(t,e,n){var i;return n.eachComponent({mainType:\"dataZoom\",subType:\"select\"},function(n){n.getAxisModel(t,e.componentIndex)&&(i=n)}),i}(t,a,i),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(r=hb(0,r.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}},mD._dispatchZoomAction=function(t){var e=[];fD(t,function(t,n){e.push(A(t))}),e.length&&this.api.dispatchAction({type:\"dataZoom\",from:this.uid,batch:e})},uA(\"dataZoom\",gD),$d(function(t){if(t){var e=t.dataZoom||(t.dataZoom=[]);Y(e)||(t.dataZoom=e=[e]);var n=t.toolbox;if(n&&(Y(n)&&(n=n[0]),n&&n.feature)){var i=n.feature.dataZoom;r(\"xAxis\",i),r(\"yAxis\",i)}}function r(n,i){if(i){var r=n+\"Index\",o=i[r];null==o||\"all\"===o||Y(o)||(o=!1===o||\"none\"===o?[]:[o]),a=function(t,i){if(null==o||\"all\"===o||-1!==N(o,i)){var a={type:\"select\",$fromToolbox:!0,id:pD+n+i};a[r]=i,e.push(a)}},Y(s=t[n])||(s=s?[s]:[]),fD(s,a)}var a,s}});var xD=dc.toolbox.restore;function _D(t){this.model=t}_D.defaultOption={show:!0,icon:\"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5\",title:xD.title},_D.prototype.onclick=function(t,e,n){!function(t){t[UA]=null}(t),e.dispatchAction({type:\"restore\",from:this.uid})},uA(\"restore\",_D),ef({type:\"restore\",event:\"restore\",update:\"prepareAndUpdate\"},function(t,e){e.resetOption(\"recreate\")}),lf({type:\"tooltip\",dependencies:[\"axisPointer\"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:\"item\",triggerOn:\"mousemove|click\",alwaysShowContent:!1,displayMode:\"single\",renderMode:\"auto\",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:\"rgba(50,50,50,0.7)\",borderColor:\"#333\",borderRadius:4,borderWidth:0,padding:5,extraCssText:\"\",axisPointer:{type:\"line\",axis:\"auto\",animation:\"auto\",animationDurationUpdate:200,animationEasingUpdate:\"exponentialOut\",crossStyle:{color:\"#999\",width:1,type:\"dashed\",textStyle:{}}},textStyle:{color:\"#fff\",fontSize:14}}});var bD=B,wD=Fl,MD=[\"\",\"-webkit-\",\"-moz-\",\"-o-\"];function SD(t){var e,n,i=[],r=t.get(\"transitionDuration\"),o=t.get(\"backgroundColor\"),a=t.getModel(\"textStyle\"),s=t.get(\"padding\");return r&&i.push((n=\"left \"+(e=r)+\"s cubic-bezier(0.23, 1, 0.32, 1),top \"+e+\"s cubic-bezier(0.23, 1, 0.32, 1)\",V(MD,function(t){return t+\"transition:\"+n}).join(\";\"))),o&&(p.canvasSupported?i.push(\"background-Color:\"+o):(i.push(\"background-Color:#\"+Ue(o)),i.push(\"filter:alpha(opacity=70)\"))),bD([\"width\",\"color\",\"radius\"],function(e){var n=\"border-\"+e,r=wD(n),o=t.get(r);null!=o&&i.push(n+\":\"+o+(\"color\"===e?\"\":\"px\"))}),i.push(function(t){var e=[],n=t.get(\"fontSize\"),i=t.getTextColor();return i&&e.push(\"color:\"+i),e.push(\"font:\"+t.getFont()),n&&e.push(\"line-height:\"+Math.round(3*n/2)+\"px\"),bD([\"decoration\",\"align\"],function(n){var i=t.get(n);i&&e.push(\"text-\"+n+\":\"+i)}),e.join(\";\")}(a)),null!=s&&i.push(\"padding:\"+Gl(s).join(\"px \")+\"px\"),i.join(\";\")+\";\"}function ID(t,e){if(p.wxa)return null;var n=document.createElement(\"div\"),i=this._zr=e.getZr();this.el=n,this._x=e.getWidth()/2,this._y=e.getHeight()/2,t.appendChild(n),this._container=t,this._show=!1,this._hideTimeout;var r=this;n.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!r._enterable){var n=i.handler;Zt(t,e,!0),n.dispatch(\"mousemove\",e)}},n.onmouseleave=function(){r._enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1}}function AD(t){this._zr=t.getZr(),this._show=!1,this._hideTimeout}ID.prototype={constructor:ID,_enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),n=t.style;\"absolute\"!==n.position&&\"absolute\"!==e.position&&(n.position=\"relative\")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText=\"position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;\"+SD(t)+\";left:\"+this._x+\"px;top:\"+this._y+\"px;\"+(t.get(\"extraCssText\")||\"\"),e.style.display=e.innerHTML?\"block\":\"none\",e.style.pointerEvents=this._enterable?\"auto\":\"none\",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?\"\":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var n,i=this._zr;i&&i.painter&&(n=i.painter.getViewportRootOffset())&&(t+=n.offsetLeft,e+=n.offsetTop);var r=this.el.style;r.left=t+\"px\",r.top=e+\"px\",this._x=t,this._y=e},hide:function(){this.el.style.display=\"none\",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(H(this.hide,this),t)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(this.el);n&&(t+=parseInt(n.paddingLeft,10)+parseInt(n.paddingRight,10)+parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),e+=parseInt(n.paddingTop,10)+parseInt(n.paddingBottom,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:t,height:e}}},AD.prototype={constructor:AD,_enterable:!0,update:function(){},show:function(t){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr(\"show\",!0),this._show=!0},setContent:function(t,e,n){this.el&&this._zr.remove(this.el);for(var i={},r=t,o=r.indexOf(\"{marker\");o>=0;){var a=r.indexOf(\"|}\"),s=r.substr(o+\"{marker\".length,a-o-\"{marker\".length);s.indexOf(\"sub\")>-1?i[\"marker\"+s]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:e[s],textOffset:[3,0]}:i[\"marker\"+s]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:e[s]},o=(r=r.substr(a+1)).indexOf(\"{marker\")}this.el=new za({style:{rich:i,text:t,textLineHeight:20,textBackgroundColor:n.get(\"backgroundColor\"),textBorderRadius:n.get(\"borderRadius\"),textFill:n.get(\"textStyle.color\"),textPadding:n.get(\"padding\")},z:n.get(\"z\")}),this._zr.add(this.el);var l=this;this.el.on(\"mouseover\",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on(\"mouseout\",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){this.el&&this.el.attr(\"position\",[t,e])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(H(this.hide,this),t)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var t=this.getSize();return{width:t[0],height:t[1]}}};var DD=H,TD=B,CD=bl,LD=new $a({shape:{x:-1,y:-1,width:2,height:2}});function kD(t){for(var e=t.pop();t.length;){var n=t.pop();n&&(pl.isInstance(n)&&(n=n.get(\"tooltip\",!0)),\"string\"==typeof n&&(n={formatter:n}),e=new pl(n,e,e.ecModel))}return e}function PD(t,e){return t.dispatchAction||H(e.dispatchAction,e)}function OD(t){return\"center\"===t||\"middle\"===t}uf({type:\"tooltip\",init:function(t,e){if(!p.node){var n,i=t.getComponent(\"tooltip\").get(\"renderMode\");this._renderMode=Hr(i),\"html\"===this._renderMode?(n=new ID(e.getDom(),e),this._newLine=\"
\"):(n=new AD(e),this._newLine=\"\\n\"),this._tooltipContent=n}},render:function(t,e,n){if(!p.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get(\"alwaysShowContent\");var i=this._tooltipContent;i.update(),i.setEnterable(t.get(\"enterable\")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel.get(\"triggerOn\");SS(\"itemTooltip\",this._api,DD(function(e,n,i){\"none\"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):\"leave\"===e&&this._hide(i))},this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&\"none\"!==t.get(\"triggerOn\")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY})})}},manuallyShowTip:function(t,e,n,i){if(i.from!==this.uid&&!p.node){var r=PD(i,n);this._ticket=\"\";var o=i.dataByCoordSys;if(i.tooltip&&null!=i.x&&null!=i.y){var a=LD;a.position=[i.x,i.y],a.update(),a.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:a},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,event:{},dataByCoordSys:i.dataByCoordSys,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var s=fS(i,e),l=s.point[0],u=s.point[1];null!=l&&null!=u&&this._tryShow({offsetX:l,offsetY:u,position:i.position,target:s.el,event:{}},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:\"updateAxisPointer\",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target,event:{}},r))}},manuallyHideTip:function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get(\"hideDelay\")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(PD(i,n))},_manuallyAxisShowTip:function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent(\"axisPointer\").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s&&\"axis\"===(t=kD([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model,t])).get(\"trigger\"))return n.dispatchAction({type:\"updateAxisPointer\",seriesIndex:r,dataIndex:o,position:i.position}),!0}},_tryShow:function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;i&&i.length?this._showAxisTooltip(i,t):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,n,e)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,n,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var n=t.get(\"showDelay\");e=H(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},_showAxisTooltip:function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=[],a=[],s=kD([e.tooltipOption,i]),l=this._renderMode,u=this._newLine,h={};TD(t,function(t){TD(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+\"Axis\",t.axisIndex),i=t.value,r=[];if(e&&null!=i){var s=VS(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt);B(t.seriesDataIndices,function(o){var u=n.getSeriesByIndex(o.seriesIndex),c=o.dataIndexInside,d=u&&u.getDataParams(c);if(d.axisDim=t.axisDim,d.axisIndex=t.axisIndex,d.axisType=t.axisType,d.axisId=t.axisId,d.axisValue=Vp(e.axis,i),d.axisValueLabel=s,d){a.push(d);var f,p=u.formatTooltip(c,!0,null,l);if(X(p)){f=p.html;var g=p.markers;D(h,g)}else f=p;r.push(f)}});var c=s;\"html\"!==l?o.push(r.join(u)):o.push((c?jl(c)+u:\"\")+r.join(u))}})},this),o.reverse(),o=o.join(this._newLine+this._newLine);var c=e.position;this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(s,c,r[0],r[1],this._tooltipContent,a):this._showTooltipContent(s,o,a,Math.random(),r[0],r[1],c,void 0,h)})},_showSeriesItemTooltip:function(t,e,n){var i=this._ecModel,r=e.seriesIndex,o=i.getSeriesByIndex(r),a=e.dataModel||o,s=e.dataIndex,l=e.dataType,u=a.getData(),h=kD([u.getItemModel(s),a,o&&(o.coordinateSystem||{}).model,this._tooltipModel]),c=h.get(\"trigger\");if(null==c||\"item\"===c){var d,f,p=a.getDataParams(s,l),g=a.formatTooltip(s,!1,l,this._renderMode);X(g)?(d=g.html,f=g.markers):(d=g,f=null);var m=\"item_\"+a.name+\"_\"+s;this._showOrMove(h,function(){this._showTooltipContent(h,d,p,m,t.offsetX,t.offsetY,t.position,t.target,f)}),n({type:\"showTip\",dataIndexInside:s,dataIndex:u.getRawIndex(s),seriesIndex:r,from:this.uid})}},_showComponentItemTooltip:function(t,e,n){var i=e.tooltip;\"string\"==typeof i&&(i={content:i,formatter:i});var r=new pl(i,this._tooltipModel,this._ecModel),o=r.get(\"content\"),a=Math.random();this._showOrMove(r,function(){this._showTooltipContent(r,o,r.get(\"formatterParams\")||{},a,t.offsetX,t.offsetY,t.position,e)}),n({type:\"showTip\",from:this.uid})},_showTooltipContent:function(t,e,n,i,r,o,a,s,l){if(this._ticket=\"\",t.get(\"showContent\")&&t.get(\"show\")){var u=this._tooltipContent,h=t.get(\"formatter\");a=a||t.get(\"position\");var c=e;if(h&&\"string\"==typeof h)c=Ul(h,n,!0);else if(\"function\"==typeof h){var d=DD(function(e,i){e===this._ticket&&(u.setContent(i,l,t),this._updatePosition(t,a,r,o,u,n,s))},this);this._ticket=i,c=h(n,i,d)}u.setContent(c,l,t),u.show(t),this._updatePosition(t,a,r,o,u,n,s)}},_updatePosition:function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get(\"position\");var u=r.getSize(),h=t.get(\"align\"),c=t.get(\"verticalAlign\"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),\"function\"==typeof e&&(e=e([n,i],o,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),Y(e))n=CD(e[0],s),i=CD(e[1],l);else if(X(e)){e.width=u[0],e.height=u[1];var f=su(e,{width:s,height:l});n=f.x,i=f.y,h=null,c=null}else if(\"string\"==typeof e&&a){var p=function(t,e,n){var i=n[0],r=n[1],o=0,a=0,s=e.width,l=e.height;switch(t){case\"inside\":o=e.x+s/2-i/2,a=e.y+l/2-r/2;break;case\"top\":o=e.x+s/2-i/2,a=e.y-r-5;break;case\"bottom\":o=e.x+s/2-i/2,a=e.y+l+5;break;case\"left\":o=e.x-i-5,a=e.y+l/2-r/2;break;case\"right\":o=e.x+s+5,a=e.y+l/2-r/2}return[o,a]}(e,d,u);n=p[0],i=p[1]}else p=function(t,e,n,i,r,o,a){var s=n.getOuterSize(),l=s.width,u=s.height;return null!=o&&(t+l+o>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}(n,i,r,s,l,h?null:20,c?null:20),n=p[0],i=p[1];h&&(n-=OD(h)?u[0]/2:\"right\"===h?u[0]:0),c&&(i-=OD(c)?u[1]/2:\"bottom\"===c?u[1]:0),t.get(\"confine\")&&(p=function(t,e,n,i,r){var o=n.getOuterSize(),a=o.width,s=o.height;return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,i,r,s,l),n=p[0],i=p[1]),r.moveTo(n,i)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&TD(e,function(e,i){var r=e.dataByAxis||{},o=(t[i]||{}).dataByAxis||[];(n&=r.length===o.length)&&TD(r,function(t,e){var i=o[e]||{},r=t.seriesDataIndices||[],a=i.seriesDataIndices||[];(n&=t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===a.length)&&TD(r,function(t,e){var i=a[e];n&=t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex})})}),this._lastDataByCoordSys=t,!!n},_hide:function(t){this._lastDataByCoordSys=null,t({type:\"hideTip\",from:this.uid})},dispose:function(t,e){p.node||(this._tooltipContent.hide(),DS(\"itemTooltip\",e))}}),ef({type:\"showTip\",event:\"showTip\",update:\"tooltip:manuallyShowTip\"},function(){}),ef({type:\"hideTip\",event:\"hideTip\",update:\"tooltip:manuallyHideTip\"},function(){});var ND=[\"rect\",\"polygon\",\"keep\",\"clear\"],ED=B;function zD(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function RD(t,e,n){var i={};return ED(e,function(e){var r,o=i[e]=((r=function(){}).prototype.__hidden=r.prototype,new r);ED(t[e],function(t,i){if(Bx.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new Bx(r),\"opacity\"===i&&((r=A(r)).type=\"colorAlpha\",o.__hidden.__alphaForOpacity=new Bx(r))}})}),i}function BD(t,e,n){var i;B(n,function(t){e.hasOwnProperty(t)&&zD(e[t])&&(i=!0)}),i&&B(n,function(n){e.hasOwnProperty(n)&&zD(e[n])?t[n]=A(e[n]):delete t[n]})}var VD={lineX:FD(0),lineY:FD(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&ig(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,o=t.y,a=t.width,s=t.height,l=i[0];return!!(ig(i,r,o)||ig(i,r+a,o)||ig(i,r,o+s)||ig(i,r+a,o+s)||Pn.create(t).contain(l[0],l[1])||WD(r,o,r+a,o,i)||WD(r,o,r,o+s,i)||WD(r+a,o,r+a,o+s,i)||WD(r,o+s,r+a,o+s,i))||void 0}}};function FD(t){var e=[\"x\",\"y\"],n=[\"width\",\"height\"];return{point:function(e,n,i){if(e){var r=i.range;return GD(e[t],r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]=-1e-6)return!1;var h=jD(r-t,r-a,o-e,o-s)/u;if(h<0||h>1)return!1;var c=jD(n-t,r-t,i-e,o-e)/u;return!(c<0||c>1)}function jD(t,e,n,i){return t*i-e*n}var YD=[\"inBrush\",\"outOfBrush\"],ZD=\"__ecBrushSelect\",UD=\"__ecInBrushSelectEvent\",XD=dd.VISUAL.BRUSH;function qD(t,e){if(!t.isDisposed()){var n=t.getZr();n[UD]=!0,t.dispatchAction({type:\"brushSelect\",batch:e}),n[UD]=!1}}function KD(t,e,n,i){for(var r=0,o=e.length;re[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&$D(e)}};function $D(t){return new Pn(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var tT=[\"#ddd\"];function eT(t,e){return D({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new pl(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}function nT(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}lf({type:\"brush\",dependencies:[\"geo\",\"grid\",\"xAxis\",\"yAxis\",\"parallel\",\"series\"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:\"all\",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:\"rect\",brushMode:\"single\",transformable:!0,brushStyle:{borderWidth:1,color:\"rgba(120,140,180,0.3)\",borderColor:\"rgba(120,140,180,0.8)\"},throttleType:\"fixRate\",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var n=this.option;!e&&BD(n,t,[\"inBrush\",\"outOfBrush\"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:tT},i.hasOwnProperty(\"liftZ\")||(i.liftZ=5)},setAreas:function(t){c&&(rt(Y(t)),B(t,function(t){rt(t.brushType,\"Illegal areas\")})),t&&(this.areas=V(t,function(t){return eT(this.option,t)},this))},setBrushOption:function(t){this.brushOption=eT(this.option,t),this.brushType=this.brushOption.brushType}}),uf({type:\"brush\",init:function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new Vb(e.getZr())).on(\"brush\",H(this._onBrush,this)).mount()},render:function(t){return this.model=t,nT.apply(this,arguments)},updateTransform:nT,updateView:nT,dispose:function(){this._brushController.dispose()},_onBrush:function(t,e){var n=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:\"brush\",brushId:n,areas:A(t),$from:n})}}),ef({type:\"brush\",event:\"brush\"},function(t,e){e.eachComponent({mainType:\"brush\",query:t},function(e){e.setAreas(t.areas)})}),ef({type:\"brushSelect\",event:\"brushSelected\",update:\"none\"},function(){});var iT=dc.toolbox.brush;function rT(t,e,n){this.model=t,this.ecModel=e,this.api=n,this._brushType,this._brushMode}rT.defaultOption={show:!0,type:[\"rect\",\"polygon\",\"lineX\",\"lineY\",\"keep\",\"clear\"],icon:{rect:\"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13\",polygon:\"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2\",lineX:\"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4\",lineY:\"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4\",keep:\"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z\",clear:\"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2\"},title:A(iT.title)};var oT=rT.prototype;function aT(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};B(i,function(t,e){o[e]||sT(r,e)||(r[e]=t)}),n.label&&!sT(i,\"emphasis\")&&(i.emphasis=n.label,delete n.label)}function sT(t,e){return t.hasOwnProperty(e)}oT.render=oT.updateView=function(t,e,n){var i,r,o;e.eachComponent({mainType:\"brush\"},function(t){i=t.brushType,r=t.brushOption.brushMode||\"single\",o|=t.areas.length}),this._brushType=i,this._brushMode=r,B(t.get(\"type\",!0),function(e){t.setIconStatus(e,(\"keep\"===e?\"multiple\"===r:\"clear\"===e?o:e===i)?\"emphasis\":\"normal\")})},oT.getIcons=function(){var t=this.model,e=t.get(\"icon\",!0),n={};return B(t.get(\"type\",!0),function(t){e[t]&&(n[t]=e[t])}),n},oT.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;\"clear\"===n?(e.dispatchAction({type:\"axisAreaSelect\",intervals:[]}),e.dispatchAction({type:\"brush\",command:\"clear\",areas:[]})):e.dispatchAction({type:\"takeGlobalCursor\",key:\"brush\",brushOption:{brushType:\"keep\"===n?i:i!==n&&n,brushMode:\"keep\"===n?\"multiple\"===r?\"single\":\"multiple\":r}})},uA(\"brush\",rT),$d(function(t,e){var n=t&&t.brush;if(Y(n)||(n=n?[n]:[]),n.length){var i=[];B(n,function(t){var e=t.hasOwnProperty(\"toolbox\")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))});var r=t&&t.toolbox;Y(r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var o,a,s=r.feature||(r.feature={}),l=s.brush||(s.brush={}),u=l.type||(l.type=[]);u.push.apply(u,i),a={},B(o=u,function(t){a[t]=1}),o.length=0,B(a,function(t,e){o.push(e)}),e&&!u.length&&u.push.apply(u,ND)}}),lf({type:\"title\",layoutMode:{type:\"box\",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:\"\",target:\"blank\",subtext:\"\",subtarget:\"blank\",left:0,top:0,backgroundColor:\"rgba(0,0,0,0)\",borderColor:\"#ccc\",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:\"bolder\",color:\"#333\"},subtextStyle:{color:\"#aaa\"}}}),uf({type:\"title\",render:function(t,e,n){if(this.group.removeAll(),t.get(\"show\")){var i=this.group,r=t.getModel(\"textStyle\"),o=t.getModel(\"subtextStyle\"),a=t.get(\"textAlign\"),s=tt(t.get(\"textBaseline\"),t.get(\"textVerticalAlign\")),l=new za({style:Ys({},r,{text:t.get(\"text\"),textFill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),h=t.get(\"subtext\"),c=new za({style:Ys({},o,{text:h,textFill:o.getTextColor(),y:u.height+t.get(\"itemGap\"),textVerticalAlign:\"top\"},{disableBox:!0}),z2:10}),d=t.get(\"link\"),f=t.get(\"sublink\"),p=t.get(\"triggerEvent\",!0);l.silent=!d&&!p,c.silent=!f&&!p,d&&l.on(\"click\",function(){window.open(d,\"_\"+t.get(\"target\"))}),f&&c.on(\"click\",function(){window.open(f,\"_\"+t.get(\"subtarget\"))}),l.eventData=c.eventData=p?{componentType:\"title\",componentIndex:t.componentIndex}:null,i.add(l),h&&i.add(c);var g=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=g.width,m.height=g.height;var v=su(m,{width:n.getWidth(),height:n.getHeight()},t.get(\"padding\"));a||(\"middle\"===(a=t.get(\"left\")||t.get(\"right\"))&&(a=\"center\"),\"right\"===a?v.x+=v.width:\"center\"===a&&(v.x+=v.width/2)),s||(\"center\"===(s=t.get(\"top\")||t.get(\"bottom\"))&&(s=\"middle\"),\"bottom\"===s?v.y+=v.height:\"middle\"===s&&(v.y+=v.height/2),s=s||\"top\"),i.attr(\"position\",[v.x,v.y]);var y={textAlign:a,textVerticalAlign:s};l.setStyle(y),c.setStyle(y),g=i.getBoundingRect();var x=v.margin,_=t.getItemStyle([\"color\",\"opacity\"]);_.fill=t.get(\"backgroundColor\");var b=new $a({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get(\"borderRadius\")},style:_,subPixelOptimize:!0,silent:!0});i.add(b)}}}),gu.registerSubTypeDefaulter(\"timeline\",function(){return\"slider\"}),ef({type:\"timelineChange\",event:\"timelineChanged\",update:\"prepareAndUpdate\"},function(t,e){var n=e.getComponent(\"timeline\");return n&&null!=t.currentIndex&&(n.setCurrentIndex(t.currentIndex),!n.get(\"loop\",!0)&&n.isIndexMax()&&n.setPlayState(!1)),e.resetOption(\"timeline\"),L({currentIndex:n.option.currentIndex},t)}),ef({type:\"timelinePlayChange\",event:\"timelinePlayChanged\",update:\"update\"},function(t,e){var n=e.getComponent(\"timeline\");n&&null!=t.playState&&n.setPlayState(t.playState)});var lT=gu.extend({type:\"timeline\",layoutMode:\"box\",defaultOption:{zlevel:0,z:4,show:!0,axisType:\"time\",realtime:!0,left:\"20%\",top:null,right:\"20%\",bottom:0,width:null,height:40,padding:5,controlPosition:\"left\",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:\"#000\"},data:[]},init:function(t,e,n){this._data,this._names,this.mergeDefaultAndTheme(t,n),this._initData()},mergeOption:function(t){lT.superApply(this,\"mergeOption\",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],n=t.axisType,i=this._names=[];if(\"category\"===n){var r=[];B(e,function(t,e){var n,o=Pr(t);X(t)?(n=A(t)).value=e:n=e,r.push(n),U(o)||null!=o&&!isNaN(o)||(o=\"\"),i.push(o+\"\")}),e=r}var o={category:\"ordinal\",time:\"time\"}[n]||\"number\";(this._data=new Tf([{name:\"value\",type:o}],this)).initData(e,i)},getData:function(){return this._data},getCategories:function(){if(\"category\"===this.get(\"axisType\"))return this._names.slice()}});z(lT.extend({type:\"timeline.slider\",defaultOption:{backgroundColor:\"rgba(0,0,0,0)\",borderColor:\"#ccc\",borderWidth:0,orient:\"horizontal\",inverse:!1,tooltip:{trigger:\"item\"},symbol:\"emptyCircle\",symbolSize:10,lineStyle:{show:!0,width:2,color:\"#304654\"},label:{position:\"auto\",show:!0,interval:\"auto\",rotate:0,color:\"#304654\"},itemStyle:{color:\"#304654\",borderWidth:1},checkpointStyle:{symbol:\"circle\",symbolSize:13,color:\"#c23531\",borderWidth:5,borderColor:\"rgba(194,53,49, 0.5)\",animation:!0,animationDuration:300,animationEasing:\"quinticInOut\"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:\"left\",playIcon:\"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z\",stopIcon:\"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z\",nextIcon:\"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z\",prevIcon:\"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z\",color:\"#304654\",borderColor:\"#304654\",borderWidth:1},emphasis:{label:{show:!0,color:\"#c23531\"},itemStyle:{color:\"#c23531\"},controlStyle:{color:\"#c23531\",borderColor:\"#c23531\",borderWidth:2}},data:[]}}),Ph);var uT=Uh.extend({type:\"timeline\"}),hT=function(t,e,n,i){vg.call(this,t,e,n),this.type=i||\"value\",this.model=null};hT.prototype={constructor:hT,getLabelModel:function(){return this.model.getModel(\"label\")},isHorizontal:function(){return\"horizontal\"===this.model.get(\"orient\")}},E(hT,vg);var cT=H,dT=B,fT=Math.PI;function pT(t,e,n,i,r,o){var a=e.get(\"color\");r?(r.setColor(a),n.add(r),o&&o.onUpdate(r)):((r=Jp(t.get(\"symbol\"),-1,-1,2,2,a)).setStyle(\"strokeNoScale\",!0),n.add(r),o&&o.onCreate(r));var s=e.getItemStyle([\"color\",\"symbol\",\"symbolSize\"]);r.setStyle(s),i=D({rectHover:!0,z2:100},i,!0);var l=t.get(\"symbolSize\");(l=l instanceof Array?l.slice():[+l,+l])[0]/=2,l[1]/=2,i.scale=l;var u=t.get(\"symbolOffset\");if(u){var h=i.position=i.position||[0,0];h[0]+=bl(u[0],l[0]),h[1]+=bl(u[1],l[1])}var c=t.get(\"symbolRotate\");return i.rotation=(c||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function gT(t,e,n,i,r){if(!t.dragging){var o=i.getModel(\"checkpointStyle\"),a=n.dataToCoord(i.getData().get([\"value\"],e));r||!o.get(\"animation\",!0)?t.attr({position:[a,0]}):(t.stopAnimation(!0),t.animateTo({position:[a,0]},o.get(\"animationDuration\",!0),o.get(\"animationEasing\",!0)))}}uT.extend({type:\"timeline.slider\",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,n,i){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get(\"show\",!0)){var r=this._layout(t,n),o=this._createGroup(\"mainGroup\"),a=this._createGroup(\"labelGroup\"),s=this._axis=this._createAxis(r,t);t.formatTooltip=function(t){return jl(s.scale.getLabel(t))},dT([\"AxisLine\",\"AxisTick\",\"Control\",\"CurrentPointer\"],function(e){this[\"_render\"+e](r,o,s,t)},this),this._renderAxisLabel(r,a,s,t),this._position(r,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var n=t.get(\"label.position\"),i=t.get(\"orient\"),r=function(t,e){return su(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get(\"padding\"))}(t,e);null==n||\"auto\"===n?n=\"horizontal\"===i?r.y+r.height/2=0||\"+\"===n?\"left\":\"right\"},h={horizontal:n>=0||\"+\"===n?\"top\":\"bottom\",vertical:\"middle\"},c={horizontal:0,vertical:fT/2},d=\"vertical\"===i?r.height:r.width,f=t.getModel(\"controlStyle\"),p=f.get(\"show\",!0),g=p?f.get(\"itemSize\"):0,m=p?f.get(\"itemGap\"):0,v=g+m,y=t.get(\"label.rotate\")||0;y=y*fT/180;var x=f.get(\"position\",!0),_=p&&f.get(\"showPlayBtn\",!0),b=p&&f.get(\"showPrevBtn\",!0),w=p&&f.get(\"showNextBtn\",!0),M=0,S=d;return\"left\"===x||\"bottom\"===x?(_&&(o=[0,0],M+=v),b&&(a=[M,0],M+=v),w&&(s=[S-g,0],S-=v)):(_&&(o=[S-g,0],S-=v),b&&(a=[0,0],M+=v),w&&(s=[S-g,0],S-=v)),l=[M,S],t.get(\"inverse\")&&l.reverse(),{viewRect:r,mainLength:d,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:n,labelAlign:t.get(\"label.align\")||u[i],labelBaseline:t.get(\"label.verticalAlign\")||t.get(\"label.baseline\")||h[i],playPosition:o,prevBtnPosition:a,nextBtnPosition:s,axisExtent:l,controlSize:g,controlGap:m}},_position:function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if(\"vertical\"===t.orient){var o=se(),a=r.x,s=r.y+r.height;ce(o,o,[-a,-s]),de(o,o,-fT/2),ce(o,o,[a,s]),(r=r.clone()).applyTransform(o)}var l=m(r),u=m(n.getBoundingRect()),h=m(i.getBoundingRect()),c=n.position,d=i.position;d[0]=c[0]=l[0][0];var f,p=t.labelPosOpt;function g(t){var e=t.position;t.origin=[l[0][0]-e[0],l[1][0]-e[1]]}function m(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}isNaN(p)?(v(c,u,l,1,f=\"+\"===p?0:1),v(d,h,l,1,1-f)):(v(c,u,l,1,f=p>=0?0:1),d[1]=c[1]+p),n.attr(\"position\",c),i.attr(\"position\",d),n.rotation=i.rotation=t.rotation,g(n),g(i)},_createAxis:function(t,e){var n=e.getData(),i=e.get(\"axisType\"),r=Rp(e,i);r.getTicks=function(){return n.mapArray([\"value\"],function(t){return t})};var o=n.getDataExtent(\"value\");r.setExtent(o[0],o[1]),r.niceTicks();var a=new hT(\"value\",r,t.axisExtent,i);return a.model=e,a},_createGroup:function(t){var e=this[\"_\"+t]=new On;return this.group.add(e),e},_renderAxisLine:function(t,e,n,i){var r=n.getExtent();i.get(\"lineStyle.show\")&&e.add(new es({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:C({lineCap:\"round\"},i.getModel(\"lineStyle\").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,n,i){var r=i.getData(),o=n.scale.getTicks();dT(o,function(t){var o=n.dataToCoord(t),a=r.getItemModel(t),s=a.getModel(\"itemStyle\"),l=a.getModel(\"emphasis.itemStyle\"),u={position:[o,0],onclick:cT(this._changeTimeline,this,t)},h=pT(a,s,e,u);Fs(h,l.getItemStyle()),a.get(\"tooltip\")?(h.dataIndex=t,h.dataModel=i):h.dataIndex=h.dataModel=null},this)},_renderAxisLabel:function(t,e,n,i){if(n.getLabelModel().get(\"show\")){var r=i.getData(),o=n.getViewLabels();dT(o,function(i){var o=i.tickValue,a=r.getItemModel(o),s=a.getModel(\"label\"),l=a.getModel(\"emphasis.label\"),u=n.dataToCoord(i.tickValue),h=new za({position:[u,0],rotation:t.labelRotation-t.rotation,onclick:cT(this._changeTimeline,this,o),silent:!1});Ys(h.style,s,{text:i.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(h),Fs(h,Ys({},l))},this)}},_renderControl:function(t,e,n,i){var r=t.controlSize,o=t.rotation,a=i.getModel(\"controlStyle\").getItemStyle(),s=i.getModel(\"emphasis.controlStyle\").getItemStyle(),l=[0,-r/2,r,r],u=i.getPlayState(),h=i.get(\"inverse\",!0);function c(t,n,u,h){if(t){var c=function(t,e,n,i){return bs(t.get(e).replace(/^path:\\/\\//,\"\"),A(i||{}),new Pn(n[0],n[1],n[2],n[3]),\"center\")}(i,n,l,{position:t,origin:[r/2,0],rotation:h?-o:0,rectHover:!0,style:a,onclick:u});e.add(c),Fs(c,s)}}c(t.nextBtnPosition,\"controlStyle.nextIcon\",cT(this._changeTimeline,this,h?\"-\":\"+\")),c(t.prevBtnPosition,\"controlStyle.prevIcon\",cT(this._changeTimeline,this,h?\"+\":\"-\")),c(t.playPosition,\"controlStyle.\"+(u?\"stopIcon\":\"playIcon\"),cT(this._handlePlayClick,this,!u),!0)},_renderCurrentPointer:function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel(\"checkpointStyle\"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=cT(s._handlePointerDrag,s),t.ondragend=cT(s._handlePointerDragend,s),gT(t,o,n,i,!0)},onUpdate:function(t){gT(t,o,n,i)}};this._currentPointer=pT(a,a,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:\"timelinePlayChange\",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var n=this._toAxisCoord(t)[0],i=Ml(this._axis.getExtent().slice());n>i[1]&&(n=i[1]),n\"),r&&(o+=vT(r),null!=n&&(o+=\" : \")),null!=n&&(o+=vT(i)),o},getData:function(){return this._data},setData:function(t){this._data=t}});z(xT,Ph),xT.extend({type:\"markPoint\",defaultOption:{zlevel:0,z:5,symbol:\"pin\",symbolSize:50,tooltip:{trigger:\"item\"},label:{show:!0,position:\"inside\"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});var _T=N;function bT(t,e,n,i,r,o){var a=[],s=Yf(e,i)?e.getCalculationInfo(\"stackResultDimension\"):i,l=TT(e,s,t),u=e.indicesOfNearest(s,l)[0];a[r]=e.get(n,u),a[o]=e.get(i,u);var h=Sl(e.get(i,u));return(h=Math.min(h,20))>=0&&(a[o]=+a[o].toFixed(h)),a}var wT=j,MT={min:wT(bT,\"min\"),max:wT(bT,\"max\"),average:wT(bT,\"average\")};function ST(t,e){var n=t.getData(),i=t.coordinateSystem;if(e&&!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!Y(e.coord)&&i){var r=i.dimensions,o=IT(e,n,i,t);if((e=A(e)).type&&MT[e.type]&&o.baseAxis&&o.valueAxis){var a=_T(r,o.baseAxis.dim),s=_T(r,o.valueAxis.dim);e.coord=MT[e.type](n,o.baseDataDim,o.valueDataDim,a,s),e.value=e.coord[s]}else{for(var l=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],u=0;u<2;u++)MT[l[u]]&&(l[u]=TT(n,n.mapDimension(r[u]),l[u]));e.coord=l}}return e}function IT(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(function(t,e){var n=t.getData(),i=n.dimensions;e=n.getDimension(e);for(var r=0;r=0&&\"number\"==typeof s&&(s=+s.toFixed(Math.min(f,20))),c.coord[u]=d.coord[u]=s,i=[c,d,{type:o,valueIndex:i.valueIndex,value:s}]}return(i=[ST(t,i[0]),ST(t,i[1]),C({},i[2])])[2].type=i[2].type||\"\",D(i[2],i[0]),D(i[2],i[1]),i};function PT(t){return!isNaN(t)&&!isFinite(t)}function OT(t,e,n,i){var r=1-t,o=i.dimensions[t];return PT(e[r])&&PT(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function NT(t,e){if(\"cartesian2d\"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(OT(1,n,i,t)||OT(0,n,i,t)))return!0}return AT(t,e[0])&&AT(t,e[1])}function ET(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=bl(s.get(\"x\"),r.getWidth()),u=bl(s.get(\"y\"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var h=a.dimensions,c=t.get(h[0],e),d=t.get(h[1],e);o=a.dataToPoint([c,d])}if(\"cartesian2d\"===a.type){var f=a.getAxis(\"x\"),p=a.getAxis(\"y\");h=a.dimensions,PT(t.get(h[0],e))?o[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):PT(t.get(h[1],e))&&(o[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}CT.extend({type:\"markLine\",updateTransform:function(t,e,n){e.eachSeries(function(t){var e=t.markLineModel;if(e){var i=e.getData(),r=e.__from,o=e.__to;r.each(function(e){ET(r,e,!0,t,n),ET(o,e,!1,t,n)}),i.each(function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},renderSeries:function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new O_);this.group.add(l.group);var u=function(t,e,n){var i;i=t?V(t&&t.dimensions,function(t){return L({name:t},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{})}):[{name:\"value\",type:\"float\"}];var r=new Tf(i,n),o=new Tf(i,n),a=new Tf([],n),s=V(n.get(\"data\"),j(kT,e,t,n));t&&(s=G(s,j(NT,t)));var l=t?DT:function(t){return t.value};return r.initData(V(s,function(t){return t[0]}),null,l),o.initData(V(s,function(t){return t[1]}),null,l),a.initData(V(s,function(t){return t[2]})),a.hasItemOption=!0,{from:r,to:o,line:a}}(r,t,e),h=u.from,c=u.to,d=u.line;e.__from=h,e.__to=c,e.setData(d);var f=e.get(\"symbol\"),p=e.get(\"symbolSize\");function g(e,n,r){var o=e.getItemModel(n);ET(e,n,r,t,i),e.setItemVisual(n,{symbolSize:o.get(\"symbolSize\")||p[r?0:1],symbol:o.get(\"symbol\",!0)||f[r?0:1],color:o.get(\"itemStyle.color\")||a.getVisual(\"color\")})}Y(f)||(f=[f,f]),\"number\"==typeof p&&(p=[p,p]),u.from.each(function(t){g(h,t,!0),g(c,t,!1)}),d.each(function(t){var e=d.getItemModel(t).get(\"lineStyle.color\");d.setItemVisual(t,{color:e||h.getItemVisual(t,\"color\")}),d.setItemLayout(t,[h.getItemLayout(t),c.getItemLayout(t)]),d.setItemVisual(t,{fromSymbolSize:h.getItemVisual(t,\"symbolSize\"),fromSymbol:h.getItemVisual(t,\"symbol\"),toSymbolSize:c.getItemVisual(t,\"symbolSize\"),toSymbol:c.getItemVisual(t,\"symbol\")})}),l.updateData(d),u.line.eachItemGraphicEl(function(t,n){t.traverse(function(t){t.dataModel=e})}),l.__keep=!0,l.group.silent=e.get(\"silent\")||t.get(\"silent\")}}),$d(function(t){t.markLine=t.markLine||{}}),xT.extend({type:\"markArea\",defaultOption:{zlevel:0,z:1,tooltip:{trigger:\"item\"},animation:!1,label:{show:!0,position:\"top\"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:\"top\"}}}});var zT=function(t,e,n,i){var r=ST(t,i[0]),o=ST(t,i[1]),a=$,s=r.coord,l=o.coord;s[0]=a(s[0],-1/0),s[1]=a(s[1],-1/0),l[0]=a(l[0],1/0),l[1]=a(l[1],1/0);var u=T([{},r,o]);return u.coord=[r.coord,o.coord],u.x0=r.x,u.y0=r.y,u.x1=o.x,u.y1=o.y,u};function RT(t){return!isNaN(t)&&!isFinite(t)}function BT(t,e,n,i){var r=1-t;return RT(e[r])&&RT(n[r])}function VT(t,e){var n=e.coord[0],i=e.coord[1];return!(\"cartesian2d\"!==t.type||!n||!i||!BT(1,n,i)&&!BT(0,n,i))||AT(t,{coord:n,x:e.x0,y:e.y0})||AT(t,{coord:i,x:e.x1,y:e.y1})}function FT(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=bl(s.get(n[0]),r.getWidth()),u=bl(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(n,e));else{var h=[f=t.get(n[0],e),p=t.get(n[1],e)];a.clampData&&a.clampData(h,h),o=a.dataToPoint(h,!0)}if(\"cartesian2d\"===a.type){var c=a.getAxis(\"x\"),d=a.getAxis(\"y\"),f=t.get(n[0],e),p=t.get(n[1],e);RT(f)?o[0]=c.toGlobalCoord(c.getExtent()[\"x0\"===n[0]?0:1]):RT(p)&&(o[1]=d.toGlobalCoord(d.getExtent()[\"y0\"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var GT=[[\"x0\",\"y0\"],[\"x1\",\"y0\"],[\"x1\",\"y1\"],[\"x0\",\"y1\"]];CT.extend({type:\"markArea\",updateTransform:function(t,e,n){e.eachSeries(function(t){var e=t.markAreaModel;if(e){var i=e.getData();i.each(function(e){var r=V(GT,function(r){return FT(i,e,r,t,n)});i.setItemLayout(e,r),i.getItemGraphicEl(e).setShape(\"points\",r)})}},this)},renderSeries:function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new On});this.group.add(l.group),l.__keep=!0;var u=function(t,e,n){var i,r;t?(i=V(t&&t.dimensions,function(t){var n=e.getData();return L({name:t},n.getDimensionInfo(n.mapDimension(t))||{})}),r=new Tf(V([\"x0\",\"y0\",\"x1\",\"y1\"],function(t,e){return{name:t,type:i[e%2].type}}),n)):r=new Tf(i=[{name:\"value\",type:\"float\"}],n);var o=V(n.get(\"data\"),j(zT,e,t,n));t&&(o=G(o,j(VT,t)));var a=t?function(t,e,n,i){return t.coord[Math.floor(i/2)][i%2]}:function(t){return t.value};return r.initData(o,null,a),r.hasItemOption=!0,r}(r,t,e);e.setData(u),u.each(function(e){u.setItemLayout(e,V(GT,function(n){return FT(u,e,n,t,i)})),u.setItemVisual(e,{color:a.getVisual(\"color\")})}),u.diff(l.__data).add(function(t){var e=new Za({shape:{points:u.getItemLayout(t)}});u.setItemGraphicEl(t,e),l.group.add(e)}).update(function(t,n){var i=l.__data.getItemGraphicEl(n);$s(i,{shape:{points:u.getItemLayout(t)}},e,t),l.group.add(i),u.setItemGraphicEl(t,i)}).remove(function(t){var e=l.__data.getItemGraphicEl(t);l.group.remove(e)}).execute(),u.eachItemGraphicEl(function(t,n){var i=u.getItemModel(n),r=i.getModel(\"label\"),o=i.getModel(\"emphasis.label\"),a=u.getItemVisual(n,\"color\");t.useStyle(L(i.getModel(\"itemStyle\").getItemStyle(),{fill:$e(a,.4),stroke:a})),t.hoverStyle=i.getModel(\"emphasis.itemStyle\").getItemStyle(),js(t.style,t.hoverStyle,r,o,{labelFetcher:e,labelDataIndex:n,defaultText:u.getName(n)||\"\",isRectText:!0,autoColor:a}),Fs(t,{}),t.dataModel=e}),l.__data=u,l.group.silent=e.get(\"silent\")||t.get(\"silent\")}}),$d(function(t){t.markArea=t.markArea||{}});var WT=lf({type:\"legend.plain\",dependencies:[\"series\"],layoutMode:{type:\"box\",ignoreSize:!0},init:function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{}},mergeOption:function(t){WT.superCall(this,\"mergeOption\",t)},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&\"single\"===this.get(\"selectedMode\")){for(var e=!1,n=0;n=0},defaultOption:{zlevel:0,z:4,show:!0,orient:\"horizontal\",left:\"center\",top:0,align:\"auto\",backgroundColor:\"rgba(0,0,0,0)\",borderColor:\"#ccc\",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:\"#ccc\",textStyle:{color:\"#333\"},selectedMode:!0,tooltip:{show:!1}}});function HT(t,e,n){var i,r={},o=\"toggleSelected\"===t;return n.eachComponent(\"legend\",function(n){o&&null!=i?n[i?\"select\":\"unSelect\"](e.name):(n[t](e.name),i=n.isSelected(e.name)),B(n.getData(),function(t){var e=t.get(\"name\");if(\"\\n\"!==e&&\"\"!==e){var i=n.isSelected(e);r.hasOwnProperty(e)?r[e]=r[e]&&i:r[e]=i}})}),{name:e.name,selected:r}}ef(\"legendToggleSelect\",\"legendselectchanged\",j(HT,\"toggleSelected\")),ef(\"legendSelect\",\"legendselected\",j(HT,\"select\")),ef(\"legendUnSelect\",\"legendunselected\",j(HT,\"unSelect\"));var jT=j,YT=B,ZT=On,UT=uf({type:\"legend.plain\",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new ZT),this._backgroundEl,this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},render:function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get(\"show\",!0)){var r=t.get(\"align\");r&&\"auto\"!==r||(r=\"right\"===t.get(\"left\")&&\"vertical\"===t.get(\"orient\")?\"right\":\"left\"),this.renderInner(r,t,e,n);var o=t.getBoxLayoutParams(),a={width:n.getWidth(),height:n.getHeight()},s=t.get(\"padding\"),l=su(o,a,s),u=this.layoutInner(t,r,l,i),h=su(L({width:u.width,height:u.height},o),a,s);this.group.attr(\"position\",[h.x-u.x,h.y-u.y]),this.group.add(this._backgroundEl=dA(u,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl)},renderInner:function(t,e,n,i){var r=this.getContentGroup(),o=ht(),a=e.get(\"selectedMode\"),s=[];n.eachRawSeries(function(t){!t.get(\"legendHoverLink\")&&s.push(t.id)}),YT(e.getData(),function(l,u){var h=l.get(\"name\");if(this.newlineDisabled||\"\"!==h&&\"\\n\"!==h){var d=n.getSeriesByName(h)[0];if(!o.get(h)){if(d){var f=d.getData(),p=f.getVisual(\"color\");\"function\"==typeof p&&(p=p(d.getDataParams(0)));var g=f.getVisual(\"legendSymbol\")||\"roundRect\",m=f.getVisual(\"symbol\");this._createItem(h,u,l,e,g,m,t,p,a).on(\"click\",jT(XT,h,i)).on(\"mouseover\",jT(qT,d.name,null,i,s)).on(\"mouseout\",jT(KT,d.name,null,i,s)),o.set(h,!0)}else n.eachRawSeries(function(n){if(!o.get(h)&&n.legendDataProvider){var r=n.legendDataProvider(),c=r.indexOfName(h);if(c<0)return;var d=r.getItemVisual(c,\"color\");this._createItem(h,u,l,e,\"roundRect\",null,t,d,a).on(\"click\",jT(XT,h,i)).on(\"mouseover\",jT(qT,null,h,i,s)).on(\"mouseout\",jT(KT,null,h,i,s)),o.set(h,!0)}},this);c&&(o.get(h)||console.warn(h+\" series not exists. Legend data should be same with series name or data name.\"))}}else r.add(new ZT({newline:!0}))},this)},_createItem:function(t,e,n,i,r,o,a,s,l){var u=i.get(\"itemWidth\"),h=i.get(\"itemHeight\"),c=i.get(\"inactiveColor\"),d=i.get(\"symbolKeepAspect\"),f=i.isSelected(t),p=new ZT,g=n.getModel(\"textStyle\"),m=n.get(\"icon\"),v=n.getModel(\"tooltip\"),y=v.parentModel;if(r=m||r,p.add(Jp(r,0,0,u,h,f?s:c,null==d||d)),!m&&o&&(o!==r||\"none\"===o)){var x=.8*h;\"none\"===o&&(o=\"circle\"),p.add(Jp(o,(u-x)/2,(h-x)/2,x,x,f?s:c,null==d||d))}var _=\"left\"===a?u+5:-5,b=a,w=i.get(\"formatter\"),M=t;\"string\"==typeof w&&w?M=w.replace(\"{name}\",null!=t?t:\"\"):\"function\"==typeof w&&(M=w(t)),p.add(new za({style:Ys({},g,{text:M,x:_,y:h/2,textFill:f?g.getTextColor():c,textAlign:b,textVerticalAlign:\"middle\"})}));var S=new $a({shape:p.getBoundingRect(),invisible:!0,tooltip:v.get(\"show\")?C({content:t,formatter:y.get(\"formatter\",!0)||function(){return t},formatterParams:{componentType:\"legend\",legendIndex:i.componentIndex,name:t,$vars:[\"name\"]}},v.option):null});return p.add(S),p.eachChild(function(t){t.silent=!0}),S.silent=!l,this.getContentGroup().add(p),Fs(p),p.__legendDataIndex=e,p},layoutInner:function(t,e,n){var i=this.getContentGroup();au(t.get(\"orient\"),i,t.get(\"itemGap\"),n.width,n.height);var r=i.getBoundingRect();return i.attr(\"position\",[-r.x,-r.y]),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function XT(t,e){e.dispatchAction({type:\"legendToggleSelect\",name:t})}function qT(t,e,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:\"highlight\",seriesName:t,name:e,excludeSeriesId:i})}function KT(t,e,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:\"downplay\",seriesName:t,name:e,excludeSeriesId:i})}tf(function(t){var e=t.findComponents({mainType:\"legend\"});e&&e.length&&t.filterSeries(function(t){for(var n=0;nn[l],p=[-c.x,-c.y];i||(p[s]=r.position[s]);var g=[0,0],m=[-d.x,-d.y],v=tt(t.get(\"pageButtonGap\",!0),t.get(\"itemGap\",!0));f&&(\"end\"===t.get(\"pageButtonPosition\",!0)?m[s]+=n[l]-d[l]:g[s]+=d[l]+v),m[1-s]+=c[u]/2-d[u]/2,r.attr(\"position\",p),o.attr(\"position\",g),a.attr(\"position\",m);var y=this.group.getBoundingRect();if((y={x:0,y:0})[l]=f?n[l]:c[l],y[u]=Math.max(c[u],d[u]),y[h]=Math.min(0,d[h]+m[1-s]),o.__rectSize=n[l],f){var x={x:0,y:0};x[l]=Math.max(n[l]-d[l]-v,0),x[u]=y[u],o.setClipPath(new $a({shape:x})),o.__rectSize=x[l]}else a.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var _=this._getPageInfo(t);return null!=_.pageIndex&&$s(r,{position:_.contentPosition},!!f&&t),this._updatePageInfoView(t,_),y},_pageGo:function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:\"legendScroll\",scrollDataIndex:i,legendId:e.id})},_updatePageInfoView:function(t,e){var n=this._controllerGroup;B([\"pagePrev\",\"pageNext\"],function(i){var r=null!=e[i+\"DataIndex\"],o=n.childOfName(i);o&&(o.setStyle(\"fill\",r?t.get(\"pageIconColor\",!0):t.get(\"pageIconInactiveColor\",!0)),o.cursor=r?\"pointer\":\"default\")});var i=n.childOfName(\"pageText\"),r=t.get(\"pageFormatter\"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle(\"text\",U(r)?r.replace(\"{current}\",a).replace(\"{total}\",s):r({current:a,total:s}))},_getPageInfo:function(t){var e=t.get(\"scrollDataIndex\",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=tC[r],a=eC[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],h=l.length,c=h?1:0,d={contentPosition:n.position.slice(),pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var f=y(u);d.contentPosition[r]=-f.s;for(var p=s+1,g=f,m=f,v=null;p<=h;++p)(!(v=y(l[p]))&&m.e>g.s+i||v&&!x(v,g.s))&&(g=m.i>g.i?m:v)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),m=v;for(p=s-1,g=f,m=f,v=null;p>=-1;--p)(v=y(l[p]))&&x(m,v.s)||!(g.i=e&&t.s<=e+i}},_findTargetItemIndex:function(t){var e,n=this.getContentGroup();return this._showController?n.eachChild(function(n,i){n.__legendDataIndex===t&&(e=i)}):e=0,e}});ef(\"legendScroll\",\"legendscroll\",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:\"legend\",subType:\"scroll\",query:t},function(t){t.setScrollDataIndex(n)})}),lD.extend({type:\"dataZoom.slider\",layoutMode:\"box\",defaultOption:{show:!0,right:\"ph\",top:\"ph\",width:\"ph\",height:\"ph\",left:null,bottom:null,backgroundColor:\"rgba(47,69,84,0)\",dataBackground:{lineStyle:{color:\"#2f4554\",width:.5,opacity:.3},areaStyle:{color:\"rgba(47,69,84,0.3)\",opacity:.3}},borderColor:\"#ddd\",fillerColor:\"rgba(167,183,204,0.4)\",handleIcon:\"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z\",handleSize:\"100%\",handleStyle:{color:\"#a7b7cc\"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:\"auto\",realtime:!0,zoomLock:!1,textStyle:{color:\"#333\"}}});var iC=$a,rC=_l,oC=Ml,aC=H,sC=B,lC=\"horizontal\",uC=5,hC=[\"line\",\"bar\",\"candlestick\",\"scatter\"],cC=cD.extend({type:\"dataZoom.slider\",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,n,i){cC.superApply(this,\"render\",arguments),uc(this,\"_dispatchZoomAction\",this.dataZoomModel.get(\"throttle\"),\"fixRate\"),this._orient=t.get(\"orient\"),!1!==this.dataZoomModel.get(\"show\")?(i&&\"dataZoom\"===i.type&&i.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){cC.superApply(this,\"remove\",arguments),hc(this,\"_dispatchZoomAction\")},dispose:function(){cC.superApply(this,\"dispose\",arguments),hc(this,\"_dispatchZoomAction\")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new On;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,n=this._findCoordRect(),i={width:e.getWidth(),height:e.getHeight()},r=this._orient===lC?{right:i.width-n.x-n.width,top:i.height-30-7,width:n.width,height:30}:{right:7,top:n.y,width:30,height:n.height},o=hu(t.option);B([\"right\",\"top\",\"width\",\"height\"],function(t){\"ph\"===o[t]&&(o[t]=r[t])});var a=su(o,i,t.padding);this._location={x:a.x,y:a.y},this._size=[a.width,a.height],\"vertical\"===this._orient&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get(\"inverse\"),o=this._displayables.barGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==lC||r?n===lC&&r?{scale:a?[-1,1]:[-1,-1]}:\"vertical\"!==n||r?{scale:a?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:a?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:a?[1,1]:[1,-1]});var s=t.getBoundingRect([o]);t.attr(\"position\",[e.x-s.x,e.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.barGroup;n.add(new iC({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get(\"backgroundColor\")},z2:-40})),n.add(new iC({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:\"transparent\"},z2:0,onclick:H(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,n=t.series,i=n.getRawData(),r=n.getShadowDim?n.getShadowDim():t.otherDim;if(null!=r){var o=i.getDataExtent(r),a=.3*(o[1]-o[0]);o=[o[0]-a,o[1]+a];var s,l=[0,e[1]],u=[0,e[0]],h=[[e[0],0],[0,0]],c=[],d=u[1]/(i.count()-1),f=0,p=Math.round(i.count()/e[0]);i.each([r],function(t,e){if(p>0&&e%p)f+=d;else{var n=null==t||isNaN(t)||\"\"===t,i=n?0:rC(t,o,l,!0);n&&!s&&e?(h.push([h[h.length-1][0],0]),c.push([c[c.length-1][0],0])):!n&&s&&(h.push([f,0]),c.push([f,0])),h.push([f,i]),c.push([f,i]),f+=d,s=n}});var g=this.dataZoomModel;this._displayables.barGroup.add(new Za({shape:{points:h},style:L({fill:g.get(\"dataBackgroundColor\")},g.getModel(\"dataBackground.areaStyle\").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new Ua({shape:{points:c},style:g.getModel(\"dataBackground.lineStyle\").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get(\"showDataShadow\");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis(function(r,o){B(t.getAxisProxy(r.name,o).getTargetSeriesModels(),function(t){if(!(n||!0!==e&&N(hC,t.get(\"type\"))<0)){var a,s=i.getComponent(r.axis,o).axis,l={x:\"y\",y:\"x\",radius:\"angle\",angle:\"radius\"}[r.name],u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:r.name,otherDim:l,otherAxisInverse:a}}},this)},this),n}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],n=t.handleLabels=[],i=this._displayables.barGroup,r=this._size,o=this.dataZoomModel;i.add(t.filler=new iC({draggable:!0,cursor:dC(this._orient),drift:aC(this._onDragMove,this,\"all\"),onmousemove:function(t){qt(t.event)},ondragstart:aC(this._showDataInfo,this,!0),ondragend:aC(this._onDragEnd,this),onmouseover:aC(this._showDataInfo,this,!0),onmouseout:aC(this._showDataInfo,this,!1),style:{fill:o.get(\"fillerColor\"),textPosition:\"inside\"}})),i.add(new iC({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{stroke:o.get(\"dataBackgroundColor\")||o.get(\"borderColor\"),lineWidth:1,fill:\"rgba(0,0,0,0)\"}})),sC([0,1],function(t){var r=al(o.get(\"handleIcon\"),{cursor:dC(this._orient),draggable:!0,drift:aC(this._onDragMove,this,t),onmousemove:function(t){qt(t.event)},ondragend:aC(this._onDragEnd,this),onmouseover:aC(this._showDataInfo,this,!0),onmouseout:aC(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),a=r.getBoundingRect();this._handleHeight=bl(o.get(\"handleSize\"),this._size[1]),this._handleWidth=a.width/a.height*this._handleHeight,r.setStyle(o.getModel(\"handleStyle\").getItemStyle());var s=o.get(\"handleColor\");null!=s&&(r.style.fill=s),i.add(e[t]=r);var l=o.textStyleModel;this.group.add(n[t]=new za({silent:!0,invisible:!0,style:{x:0,y:0,text:\"\",textVerticalAlign:\"middle\",textAlign:\"center\",textFill:l.getTextColor(),textFont:l.getFont()},z2:10}))},this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[rC(t[0],[0,100],e,!0),rC(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];hb(e,i,r,n.get(\"zoomLock\")?\"all\":t,null!=o.minSpan?rC(o.minSpan,a,r,!0):null,null!=o.maxSpan?rC(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=oC([rC(i[0],r,a,!0),rC(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(t){var e=this._displayables,n=this._handleEnds,i=oC(n.slice()),r=this._size;sC([0,1],function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scale:[o/2,o/2],position:[n[t],r[1]/2-o/2]})},this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=[\"\",\"\"];if(e.get(\"showDetail\")){var a=e.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=t?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var h=oC(this._handleEnds.slice());function c(t){var e=el(n.handles[t].parent,this.group),a=il(0===t?\"right\":\"left\",e),s=this._handleWidth/2+uC,l=nl([h[t]+(0===t?-s:s),this._size[1]/2],e);i[t].setStyle({x:l[0],y:l[1],textVerticalAlign:r===lC?\"middle\":a,textAlign:r===lC?a:\"center\",text:o[t]})}c.call(this,0),c.call(this,1)},_formatLabel:function(t,e){var n=this.dataZoomModel,i=n.get(\"labelFormatter\"),r=n.get(\"labelPrecision\");null!=r&&\"auto\"!==r||(r=e.getPixelPrecision());var o=null==t||isNaN(t)?\"\":\"category\"===e.type||\"time\"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(r,20));return Z(i)?i(t,o):U(i)?i.replace(\"{value}\",o):o},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr(\"invisible\",!t),e[1].attr(\"invisible\",!t)},_onDragMove:function(t,e,n){this._dragging=!0;var i=nl([e,n],this._displayables.barGroup.getLocalTransform(),!0),r=this._updateInterval(t,i[0]),o=this.dataZoomModel.get(\"realtime\");this._updateView(!o),r&&o&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get(\"realtime\")&&this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,n=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval(\"all\",n[0]-r);this._updateView(),o&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:\"dataZoom\",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var t;if(sC(this.getTargetCoordInfo(),function(e){if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}}),!t){var e=this.api.getWidth(),n=this.api.getHeight();t={x:.2*e,y:.2*n,width:.6*e,height:.6*n}}return t}});function dC(t){return\"vertical\"===t?\"ns-resize\":\"ew-resize\"}lD.extend({type:\"dataZoom.inside\",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});var fC=\"\\0_ec_dataZoom_roams\";function pC(t,e){var n=vC(t),i=e.dataZoomId,r=e.coordId;B(n,function(t,n){var o=t.dataZoomInfos;o[i]&&N(e.allCoordIds,r)<0&&(delete o[i],t.count--)}),yC(n);var o=n[r];o||((o=n[r]={coordId:r,dataZoomInfos:{},count:0}).controller=function(t,e){var n=new oy(t.getZr());return B([\"pan\",\"zoom\",\"scrollMove\"],function(t){n.on(t,function(n){var i=[];B(e.dataZoomInfos,function(r){if(n.isAvailableBehavior(r.dataZoomModel.option)){var o=(r.getRange||{})[t],a=o&&o(e.controller,n);!r.dataZoomModel.get(\"disabled\",!0)&&a&&i.push({dataZoomId:r.dataZoomId,start:a[0],end:a[1]})}}),i.length&&e.dispatchAction(i)})}),n}(t,o),o.dispatchAction=j(xC,t)),!o.dataZoomInfos[i]&&o.count++,o.dataZoomInfos[i]=e;var a,s,l,u,h=(a=o.dataZoomInfos,l={type_true:2,type_move:1,type_false:0,type_undefined:-1},u=!0,B(a,function(t){var e=t.dataZoomModel,n=!e.get(\"disabled\",!0)&&(!e.get(\"zoomLock\",!0)||\"move\");l[\"type_\"+n]>l[\"type_\"+s]&&(s=n),u&=e.get(\"preventDefaultMouseMove\",!0)}),{controlType:s,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!u}});o.controller.enable(h.controlType,h.opt),o.controller.setPointerChecker(e.containsPoint),uc(o,\"dispatchAction\",e.dataZoomModel.get(\"throttle\",!0),\"fixRate\")}function gC(t,e){var n=vC(t);B(n,function(t){t.controller.dispose();var n=t.dataZoomInfos;n[e]&&(delete n[e],t.count--)}),yC(n)}function mC(t){return t.type+\"\\0_\"+t.id}function vC(t){var e=t.getZr();return e[fC]||(e[fC]={})}function yC(t){B(t,function(e,n){e.count||(e.controller.dispose(),delete t[n])})}function xC(t,e){t.dispatchAction({type:\"dataZoom\",batch:e})}var _C=H,bC=cD.extend({type:\"dataZoom.inside\",init:function(t,e){this._range},render:function(t,e,n,i){bC.superApply(this,\"render\",arguments),this._range=t.getPercentRange(),B(this.getTargetCoordInfo(),function(e,i){var r=V(e,function(t){return mC(t.model)});B(e,function(e){var o=e.model,a={};B([\"pan\",\"zoom\",\"scrollMove\"],function(t){a[t]=_C(wC[t],this,e,i)},this),pC(n,{coordId:mC(o),allCoordIds:r,containsPoint:function(t,e,n){return o.coordinateSystem.containPoint([e,n])},dataZoomId:t.id,dataZoomModel:t,getRange:a})},this)},this)},dispose:function(){gC(this.api,this.dataZoomModel.id),bC.superApply(this,\"dispose\",arguments),this._range=null}}),wC={zoom:function(t,e,n,i){var r=this._range,o=r.slice(),a=t.axisModels[0];if(a){var s=SC[e](null,[i.originX,i.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return hb(0,o,[0,100],0,h.minSpan,h.maxSpan),this._range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:MC(function(t,e,n,i,r,o){var a=SC[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:MC(function(t,e,n,i,r,o){return SC[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta})};function MC(t){return function(e,n,i,r){var o=this._range,a=o.slice(),s=e.axisModels[0];if(s){var l=t(a,s,e,n,i,r);return hb(l,a,[0,100],\"all\"),this._range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var SC={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],\"x\"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),\"radiusAxis\"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],\"horizontal\"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},IC=B,AC=function(t){var e=t&&t.visualMap;Y(e)||(e=e?[e]:[]),IC(e,function(t){if(t){DC(t,\"splitList\")&&!DC(t,\"pieces\")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&Y(e)&&IC(e,function(t){X(t)&&(DC(t,\"start\")&&!DC(t,\"min\")&&(t.min=t.start),DC(t,\"end\")&&!DC(t,\"max\")&&(t.max=t.end))})}})};function DC(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}gu.registerSubTypeDefaulter(\"visualMap\",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?\"piecewise\":\"continuous\"});var TC=dd.VISUAL.COMPONENT;function CC(t,e,n,i){for(var r=e.targetVisuals[i],o=Bx.prepareVisualTypes(r),a={color:t.getData().getVisual(\"color\")},s=0,l=o.length;s\"],Y(t)&&(t=t.slice(),i=!0),r=e?t:i?[u(t[0]),u(t[1])]:u(t),U(l)?l.replace(\"{value}\",i?r[0]:r).replace(\"{value2}\",i?r[1]:r):Z(l)?i?l(t[0],t[1]):l(t):i?t[0]===s[0]?n[0]+\" \"+r[1]:t[1]===s[1]?n[1]+\" \"+r[0]:r[0]+\" - \"+r[1]:r;function u(t){return t===s[0]?\"min\":t===s[1]?\"max\":(+t).toFixed(Math.min(a,20))}},resetExtent:function(){var t=this.option,e=zC([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension,n=t.dimensions;if(null!=e||n.length){if(null!=e)return t.getDimension(e);for(var i=t.dimensions,r=i.length-1;r>=0;r--){var o=i[r];if(!t.getDimensionInfo(o).isCalculationCoord)return o}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});D(i,n),D(r,n);var o=this.isCategory();function a(n){NC(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get(\"gradientColor\")},EC(this.stateList,function(t){var e=n[t];if(U(e)){var i=LC.get(e,\"active\",o);i?(n[t]={},n[t][e]=i):delete n[t]}},this)}a.call(this,i),a.call(this,r),function(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},EC(i,function(t,e){if(Bx.isValidType(e)){var n=LC.get(e,\"inactive\",o);null!=n&&(r[e]=n,\"color\"!==e||r.hasOwnProperty(\"opacity\")||r.hasOwnProperty(\"colorAlpha\")||(r.opacity=[0,0]))}}))}.call(this,i,\"inRange\",\"outOfRange\"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get(\"inactiveColor\");EC(this.stateList,function(r){var a=this.itemSize,s=t[r];s||(s=t[r]={color:o?i:[i]}),null==s.symbol&&(s.symbol=e&&A(e)||(o?\"roundRect\":[\"roundRect\"])),null==s.symbolSize&&(s.symbolSize=n&&A(n)||(o?a[0]:[a[0],a[0]])),s.symbol=PC(s.symbol,function(t){return\"none\"===t||\"square\"===t?\"roundRect\":t});var l=s.symbolSize;if(null!=l){var u=-1/0;OC(l,function(t){t>u&&(u=t)}),s.symbolSize=PC(l,function(t){return RC(t,[0,u],[0,a[0]],!0)})}},this)}.call(this,r)},resetItemSize:function(){this.itemSize=[parseFloat(this.get(\"itemWidth\")),parseFloat(this.get(\"itemHeight\"))]},isCategory:function(){return!!this.option.categories},setSelected:dt,getValueState:dt,getVisualMeta:dt}),VC=[20,140],FC=BC.extend({type:\"visualMap.continuous\",defaultOption:{align:\"auto\",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(t,e){FC.superApply(this,\"optionUpdated\",arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod=\"linear\",t.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){FC.superApply(this,\"resetItemSize\",arguments);var t=this.itemSize;\"horizontal\"===this._orient&&t.reverse(),(null==t[0]||isNaN(t[0]))&&(t[0]=VC[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=VC[1])},_resetRange:function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):Y(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){BC.prototype.completeVisualOption.apply(this,arguments),B(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)},this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=Ml((this.get(\"range\")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?\"inRange\":\"outOfRange\"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)},this),e.push({seriesId:n.id,dataIndex:i})},this),e},getVisualMeta:function(t){var e=GC(0,0,this.getExtent()),n=GC(0,0,this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;at[1])break;n.push({color:this.getControllerVisual(o,\"color\",e),offset:r/100})}return n.push({color:this.getControllerVisual(t[1],\"color\",e),offset:1}),n},_createBarPoints:function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,n=this.visualMapModel.get(\"inverse\");return new On(\"horizontal\"!==e||n?\"horizontal\"===e&&n?{scale:\"bottom\"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:\"vertical\"!==e||n?{scale:\"left\"===t?[1,1]:[-1,1]}:{scale:\"left\"===t?[1,-1]:[-1,-1]}:{scale:\"bottom\"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels;ZC([0,1],function(a){var s=r[a];s.setStyle(\"fill\",e.handlesColor[a]),s.position[1]=t[a];var l=nl(n.handleLabelPoints[a],el(s,this.group));o[a].setStyle({x:l[0],y:l[1],text:i.formatValueText(this._dataInterval[a]),textVerticalAlign:\"middle\",textAlign:this._applyTransform(\"horizontal\"===this._orient?0===a?\"bottom\":\"top\":\"left\",n.barGroup)})},this)}},_showIndicator:function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=YC(t,o,s,!0),u=this._shapes,h=u.indicator;if(h){h.position[1]=l,h.attr(\"invisible\",!1),h.setShape(\"points\",function(t,e,n,i){return t?[[0,-UC(e,XC(n,0))],[KC,0],[0,UC(e,XC(i-n,0))]]:[[0,0],[5,-5],[5,5]]}(!!n,i,l,a[1]));var c=this.getControllerVisual(t,\"color\",{convertOpacityToAlpha:!0});h.setStyle(\"fill\",c);var d=nl(u.indicatorLabelPoint,el(h,this.group)),f=u.indicatorLabel;f.attr(\"invisible\",!1);var p=this._applyTransform(\"left\",u.barGroup),g=this._orient;f.setStyle({text:(n||\"\")+r.formatValueText(e),textVerticalAlign:\"horizontal\"===g?p:\"middle\",textAlign:\"horizontal\"===g?\"center\":p,x:d[0],y:d[1]})}},_enableHoverLinkToSeries:function(){var t=this;this._shapes.barGroup.on(\"mousemove\",function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);i[1]=UC(XC(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on(\"mouseout\",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on(\"mouseover\",this._hoverLinkFromSeriesMouseOver,this),t.on(\"mouseout\",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();t=UC(XC(r[0],t),r[1]);var a=function(t,e,n){var i=qC/2,r=t.get(\"hoverLinkDataSize\");return r&&(i=YC(r,e,n,!0)/2),i}(n,o,r),s=[t-a,t+a],l=YC(t,r,o,!0),u=[YC(s[0],r,o,!0),YC(s[1],r,o,!0)];s[0]r[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],\"< \",a):u[1]===1/0?this._showIndicator(l,u[0],\"> \",a):this._showIndicator(l,l,\"≈ \",a));var h=this._hoverLinkDataIndices,c=[];(e||$C(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=function(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i0?\"pieces\":this.option.categories?\"categories\":\"splitNumber\"},setSelected:function(t){this.option.selected=A(t)},getValueState:function(t){var e=Bx.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?\"inRange\":\"outOfRange\"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),function(e,n){Bx.findPieceIndex(e,this._pieceList)===t&&i.push(n)},this),e.push({seriesId:n.id,dataIndex:i})},this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},getVisualMeta:function(t){if(!this.isCategory()){var e=[],n=[],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return B(r,function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],\"outOfRange\"),s(e.slice()),a=e[1])},this),{stops:e,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}}}),nL={splitNumber:function(){var t=this.option,e=this._pieceList,n=Math.min(t.precision,20),i=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;t.precision=n,o=+o.toFixed(n);var a=0;t.minOpen&&e.push({index:a++,interval:[-1/0,i[0]],close:[0,0]});for(var s=i[0],l=a+r;ao[1]&&console.warn(\"Piece \"+n+\"is illegal: \"+o+\" lower bound should not greater then uppper bound.\"),o[0]===o[1]&&a[0]&&a[1]&&(i.value=o[0])}i.visual=Bx.retrieveVisuals(t),e.push(i)},this),iL(t,e),zl(e),B(e,function(t){var e=t.close,n=[[\"<\",\"≤\"][e[1]],[\">\",\"≥\"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)},this)}};function iL(t,e){var n=t.inverse;(\"vertical\"===t.orient?!n:n)&&e.reverse()}WC.extend({type:\"visualMap.piecewise\",doRender:function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get(\"textGap\"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,h=$(e.get(\"showLabel\",!0),!u);u&&this._renderEndsText(t,u[0],s,h,a),B(l.viewPieceList,function(i){var l=i.piece,u=new On;u.onclick=H(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var c=e.getRepresentValue(l);if(this._createItemSymbol(u,c,[0,0,s[0],s[1]]),h){var d=this.visualMapModel.getValueState(c);u.add(new za({style:{x:\"right\"===a?-n:s[0]+n,y:s[1]/2,text:l.text,textVerticalAlign:\"middle\",textAlign:a,textFont:r,textFill:o,opacity:\"outOfRange\"===d?.5:1}}))}t.add(u)},this),u&&this._renderEndsText(t,u[1],s,h,a),au(e.get(\"orient\"),t,e.get(\"itemGap\")),this.renderBackground(t),this.positionGroup(t)},_enableHoverLink:function(t,e){function n(t){var n=this.visualMapModel;n.option.hoverLink&&this.api.dispatchAction({type:t,batch:jC(n.findTargetDataIndices(e),n)})}t.on(\"mouseover\",H(n,this,\"highlight\")).on(\"mouseout\",H(n,this,\"downplay\"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if(\"vertical\"===e.orient)return HC(t,this.api,t.itemSize);var n=e.align;return n&&\"auto\"!==n||(n=\"left\"),n},_renderEndsText:function(t,e,n,i,r){if(e){var o=new On,a=this.visualMapModel.textStyleModel;o.add(new za({style:{x:i?\"right\"===r?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:\"middle\",textAlign:i?r:\"center\",text:e,textFont:a.getFont(),textFill:a.getTextColor()}})),t.add(o)}},_getViewData:function(){var t=this.visualMapModel,e=V(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get(\"text\"),i=t.get(\"orient\"),r=t.get(\"inverse\");return(\"horizontal\"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},_createItemSymbol:function(t,e,n){t.add(Jp(this.getControllerVisual(e,\"symbol\"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,\"color\")))},_onItemClick:function(t){var e=this.visualMapModel,n=e.option,i=A(n.selected),r=e.getSelectedMapKey(t);\"single\"===n.selectedMode?(i[r]=!0,B(i,function(t,e){i[e]=e===r})):i[r]=!i[r],this.api.dispatchAction({type:\"selectDataRange\",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}}),$d(AC);var rL,oL=\"urn:schemas-microsoft-com:vml\",aL=\"undefined\"==typeof window?null:window,sL=!1,lL=aL&&aL.document;function uL(t){return rL(t)}if(lL&&!p.canvasSupported)try{!lL.namespaces.zrvml&&lL.namespaces.add(\"zrvml\",oL),rL=function(t){return lL.createElement(\"')}}catch(t){rL=function(t){return lL.createElement(\"<\"+t+' xmlns=\"'+oL+'\" class=\"zrvml\">')}}var hL=Qo.CMD,cL=Math.round,dL=Math.sqrt,fL=Math.abs,pL=Math.cos,gL=Math.sin,mL=Math.max;if(!p.canvasSupported){var vL=21600,yL=vL/2,xL=function(t){t.style.cssText=\"position:absolute;left:0;top:0;width:1px;height:1px;\",t.coordsize=vL+\",\"+vL,t.coordorigin=\"0,0\"},_L=function(t,e,n){return\"rgb(\"+[t,e,n].join(\",\")+\")\"},bL=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},wL=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},ML=function(t,e,n){return 1e5*(parseFloat(t)||0)+1e3*(parseFloat(e)||0)+n},SL=function(t,e){return\"string\"==typeof t?t.lastIndexOf(\"%\")>=0?parseFloat(t)/100*e:parseFloat(t):t},IL=function(t,e,n){var i=je(e);n=+n,isNaN(n)&&(n=1),i&&(t.color=_L(i[0],i[1],i[2]),t.opacity=n*i[3])},AL=function(t){var e=je(t);return[_L(e[0],e[1],e[2]),e[3]]},DL=function(t,e,n,i){var r=\"fill\"===e,o=t.getElementsByTagName(e)[0];null!=n[e]&&\"none\"!==n[e]&&(r||!r&&n.lineWidth)?(t[r?\"filled\":\"stroked\"]=\"true\",n[e]instanceof ss&&wL(t,o),o||(o=uL(e)),r?function(t,e,n){var i=e.fill;if(null!=i)if(i instanceof ss){var r,o=0,a=[0,0],s=0,l=1,u=n.getBoundingRect(),h=u.width,c=u.height;if(\"linear\"===i.type){r=\"gradient\";var d=n.transform,f=[i.x*h,i.y*c],p=[i.x2*h,i.y2*c];d&&(Ot(f,f,d),Ot(p,p,d));var g=p[0]-f[0],m=p[1]-f[1];(o=180*Math.atan2(g,m)/Math.PI)<0&&(o+=360),o<1e-6&&(o=0)}else{r=\"gradientradial\",f=[i.x*h,i.y*c],d=n.transform;var v=n.scale,y=h,x=c;a=[(f[0]-u.x)/y,(f[1]-u.y)/x],d&&Ot(f,f,d),y/=v[0]*vL,x/=v[1]*vL;var _=mL(y,x);s=0/_,l=2*i.r/_-s}var b=i.colorStops.slice();b.sort(function(t,e){return t.offset-e.offset});for(var w=b.length,M=[],S=[],I=0;I=2){var T=M[0][0],C=M[1][0],L=M[0][1]*e.opacity,k=M[1][1]*e.opacity;t.type=r,t.method=\"none\",t.focus=\"100%\",t.angle=o,t.color=T,t.color2=C,t.colors=S.join(\",\"),t.opacity=k,t.opacity2=L}\"radial\"===r&&(t.focusposition=a.join(\",\"))}else IL(t,i,e.opacity)}(o,n,i):function(t,e){null!=e.lineDash&&(t.dashstyle=e.lineDash.join(\" \")),null==e.stroke||e.stroke instanceof ss||IL(t,e.stroke,e.opacity)}(o,n),bL(t,o)):(t[r?\"filled\":\"stroked\"]=\"false\",wL(t,o))},TL=[[],[],[]];ya.prototype.brushVML=function(t){var e=this.style,n=this._vmlEl;n||(n=uL(\"shape\"),xL(n),this._vmlEl=n),DL(n,\"fill\",e,this),DL(n,\"stroke\",e,this);var i=this.transform,r=null!=i,o=n.getElementsByTagName(\"stroke\")[0];if(o){var a=e.lineWidth;if(r&&!e.strokeNoScale){var s=i[0]*i[3]-i[1]*i[2];a*=dL(fL(s))}o.weight=a+\"px\"}var l=this.path||(this.path=new Qo);this.__dirtyPath&&(l.beginPath(),l.subPixelOptimize=!1,this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),n.path=function(t,e){var n,i,r,o,a,s,l=hL.M,u=hL.C,h=hL.L,c=hL.A,d=hL.Q,f=[],p=t.data,g=t.len();for(o=0;o.01?O&&(N+=.0125):Math.abs(E-T)<1e-4?O&&ND?x-=.0125:x+=.0125:O&&ET?y+=.0125:y-=.0125),f.push(z,cL(((D-C)*S+w)*vL-yL),\",\",cL(((T-L)*I+M)*vL-yL),\",\",cL(((D+C)*S+w)*vL-yL),\",\",cL(((T+L)*I+M)*vL-yL),\",\",cL((N*S+w)*vL-yL),\",\",cL((E*I+M)*vL-yL),\",\",cL((y*S+w)*vL-yL),\",\",cL((x*I+M)*vL-yL)),a=y,s=x;break;case hL.R:var R=TL[0],B=TL[1];R[0]=p[o++],R[1]=p[o++],B[0]=R[0]+p[o++],B[1]=R[1]+p[o++],e&&(Ot(R,R,e),Ot(B,B,e)),R[0]=cL(R[0]*vL-yL),B[0]=cL(B[0]*vL-yL),R[1]=cL(R[1]*vL-yL),B[1]=cL(B[1]*vL-yL),f.push(\" m \",R[0],\",\",R[1],\" l \",B[0],\",\",R[1],\" l \",B[0],\",\",B[1],\" l \",R[0],\",\",B[1]);break;case hL.Z:f.push(\" x \")}if(n>0){f.push(i);for(var V=0;V100&&(kL=0,LL={});var n,i=PL.style;try{i.font=t,n=i.fontFamily.split(\",\")[0]}catch(t){}e={style:i.fontStyle||\"normal\",variant:i.fontVariant||\"normal\",weight:i.fontWeight||\"normal\",size:0|parseFloat(i.fontSize||12),family:n||\"Microsoft YaHei\"},LL[t]=e,kL++}return e}(r.font),m=g.style+\" \"+g.variant+\" \"+g.weight+\" \"+g.size+'px \"'+g.family+'\"';n=n||yi(o,m,f,p,r.textPadding,r.textLineHeight);var v=this.transform;if(v&&!i&&(OL.copy(e),OL.applyTransform(v),e=OL),i)c=e.x,d=e.y;else{var y=r.textPosition,x=r.textDistance;if(y instanceof Array)c=e.x+SL(y[0],e.width),d=e.y+SL(y[1],e.height),f=f||\"left\";else{var _=bi(y,e,x);c=_.x,d=_.y,f=f||_.textAlign,p=p||_.textVerticalAlign}}c=xi(c,n.width,f),d=_i(d,n.height,p),d+=n.height/2;var b,w,M,S=uL,I=this._textVmlEl;I?w=(b=(M=I.firstChild).nextSibling).nextSibling:(I=S(\"line\"),b=S(\"path\"),w=S(\"textpath\"),M=S(\"skew\"),w.style[\"v-text-align\"]=\"left\",xL(I),b.textpathok=!0,w.on=!0,I.from=\"0 0\",I.to=\"1000 0.05\",bL(I,M),bL(I,b),bL(I,w),this._textVmlEl=I);var A=[c,d],D=I.style;v&&i?(Ot(A,A,v),M.on=!0,M.matrix=v[0].toFixed(3)+\",\"+v[2].toFixed(3)+\",\"+v[1].toFixed(3)+\",\"+v[3].toFixed(3)+\",0,0\",M.offset=(cL(A[0])||0)+\",\"+(cL(A[1])||0),M.origin=\"0 0\",D.left=\"0px\",D.top=\"0px\"):(M.on=!1,D.left=cL(c)+\"px\",D.top=cL(d)+\"px\"),w.string=String(o).replace(/&/g,\"&\").replace(/\"/g,\""\");try{w.style.font=m}catch(t){}DL(I,\"fill\",{fill:r.textFill,opacity:r.opacity},this),DL(I,\"stroke\",{stroke:r.textStroke,opacity:r.opacity,lineDash:r.lineDash},this),I.style.zIndex=ML(this.zlevel,this.z,this.z2),bL(t,I)}},EL=function(t){wL(t,this._textVmlEl),this._textVmlEl=null},zL=function(t){bL(t,this._textVmlEl)},RL=[$i,tr,er,ya,za],BL=0;BL-$L}function nk(t,e){e&&ik(t,\"transform\",\"matrix(\"+YL.call(e,\",\")+\")\")}function ik(t,e,n){(!n||\"linear\"!==n.type&&\"radial\"!==n.type)&&t.setAttribute(e,n)}function rk(t,e,n,i){if(function(t,e){var n=e?t.textFill:t.fill;return null!=n&&n!==ZL}(e,n)){var r=n?e.textFill:e.fill;r=\"transparent\"===r?ZL:r,\"none\"!==t.getAttribute(\"clip-path\")&&r===ZL&&(r=\"rgba(0, 0, 0, 0.002)\"),ik(t,\"fill\",r),ik(t,\"fill-opacity\",null!=e.fillOpacity?e.fillOpacity*e.opacity:e.opacity)}else ik(t,\"fill\",ZL);if(function(t,e){var n=e?t.textStroke:t.stroke;return null!=n&&n!==ZL}(e,n)){var o=n?e.textStroke:e.stroke;ik(t,\"stroke\",o=\"transparent\"===o?ZL:o),ik(t,\"stroke-width\",(n?e.textStrokeWidth:e.lineWidth)/(!n&&e.strokeNoScale?i.getLineScale():1)),ik(t,\"paint-order\",n?\"stroke\":\"fill\"),ik(t,\"stroke-opacity\",null!=e.strokeOpacity?e.strokeOpacity:e.opacity),e.lineDash?(ik(t,\"stroke-dasharray\",e.lineDash.join(\",\")),ik(t,\"stroke-dashoffset\",UL(e.lineDashOffset||0))):ik(t,\"stroke-dasharray\",\"\"),e.lineCap&&ik(t,\"stroke-linecap\",e.lineCap),e.lineJoin&&ik(t,\"stroke-linejoin\",e.lineJoin),e.miterLimit&&ik(t,\"stroke-miterlimit\",e.miterLimit)}else ik(t,\"stroke\",ZL)}var ok={};ok.brush=function(t){var e=t.style,n=t.__svgEl;n||(n=HL(\"path\"),t.__svgEl=n),t.path||t.createPathProxy();var i=t.path;if(t.__dirtyPath){i.beginPath(),i.subPixelOptimize=!1,t.buildPath(i,t.shape),t.__dirtyPath=!1;var r=function(t){for(var e=[],n=t.data,i=t.len(),r=0;r=QL||!ek(g)&&(d>-KL&&d<0||d>KL)==!!p;var y=tk(s+u*qL(c)),x=tk(l+h*XL(c));m&&(d=p?QL-1e-4:1e-4-QL,v=!0,9===r&&e.push(\"M\",y,x));var _=tk(s+u*qL(c+d)),b=tk(l+h*XL(c+d));e.push(\"A\",tk(u),tk(h),UL(f*JL),+v,+p,_,b);break;case jL.Z:o=\"Z\";break;case jL.R:_=tk(n[r++]),b=tk(n[r++]);var w=tk(n[r++]),M=tk(n[r++]);e.push(\"M\",_,b,\"L\",_+w,b,\"L\",_+w,b+M,\"L\",_,b+M,\"L\",_,b)}o&&e.push(o);for(var S=0;S=r&&u+1>=o){for(var h=[],c=0;c=r&&c+1>=o)return dk(0,s.components);l[n]=s}else l[n]=void 0}var p;a++}for(;a<=s;){var f=d();if(f)return f}},pushComponent:function(t,e,n){var i=t[t.length-1];i&&i.added===e&&i.removed===n?t[t.length-1]={count:i.count+1,added:e,removed:n}:t.push({count:1,added:e,removed:n})},extractCommon:function(t,e,n,i){for(var r=e.length,o=n.length,a=t.newPos,s=a-i,l=0;a+1=0;--i)if(e[i]===t)return!0;return!1}),n):null:n[0]},pk.prototype.update=function(t,e){if(t){var n=this.getDefs(!1);if(t[this._domName]&&n.contains(t[this._domName]))\"function\"==typeof e&&e(t);else{var i=this.add(t);i&&(t[this._domName]=i)}}},pk.prototype.addDom=function(t){this.getDefs(!0).appendChild(t)},pk.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},pk.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return B(this._tagNames,function(n){var i=t.getElementsByTagName(n);e=e.concat([].slice.call(i))}),e},pk.prototype.markAllUnused=function(){var t=this.getDoms(),e=this;B(t,function(t){t[e._markLabel]=\"0\"})},pk.prototype.markUsed=function(t){t&&(t[this._markLabel]=\"1\")},pk.prototype.removeUnused=function(){var t=this.getDefs(!1);if(t){var e=this.getDoms(),n=this;B(e,function(e){\"1\"!==e[n._markLabel]&&t.removeChild(e)})}},pk.prototype.getSvgProxy=function(t){return t instanceof ya?ok:t instanceof er?ak:t instanceof za?sk:ok},pk.prototype.getTextSvgElement=function(t){return t.__textSvgEl},pk.prototype.getSvgElement=function(t){return t.__svgEl},E(gk,pk),gk.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var n=this;B([\"fill\",\"stroke\"],function(i){if(e.style[i]&&(\"linear\"===e.style[i].type||\"radial\"===e.style[i].type)){var r,o=e.style[i],a=n.getDefs(!0);o._dom?(r=o._dom,a.contains(o._dom)||n.addDom(r)):r=n.add(o),n.markUsed(e);var s=r.getAttribute(\"id\");t.setAttribute(i,\"url(#\"+s+\")\")}})}},gk.prototype.add=function(t){var e;if(\"linear\"===t.type)e=this.createElement(\"linearGradient\");else{if(\"radial\"!==t.type)return _n(\"Illegal gradient type.\"),null;e=this.createElement(\"radialGradient\")}return t.id=t.id||this.nextId++,e.setAttribute(\"id\",\"zr\"+this._zrId+\"-gradient-\"+t.id),this.updateDom(t,e),this.addDom(e),e},gk.prototype.update=function(t){var e=this;pk.prototype.update.call(this,t,function(){var n=t.type,i=t._dom.tagName;\"linear\"===n&&\"linearGradient\"===i||\"radial\"===n&&\"radialGradient\"===i?e.updateDom(t,t._dom):(e.removeDom(t),e.add(t))})},gk.prototype.updateDom=function(t,e){if(\"linear\"===t.type)e.setAttribute(\"x1\",t.x),e.setAttribute(\"y1\",t.y),e.setAttribute(\"x2\",t.x2),e.setAttribute(\"y2\",t.y2);else{if(\"radial\"!==t.type)return void _n(\"Illegal gradient type.\");e.setAttribute(\"cx\",t.x),e.setAttribute(\"cy\",t.y),e.setAttribute(\"r\",t.r)}t.global?e.setAttribute(\"gradientUnits\",\"userSpaceOnUse\"):e.setAttribute(\"gradientUnits\",\"objectBoundingBox\"),e.innerHTML=\"\";for(var n=t.colorStops,i=0,r=n.length;i0){var i,r,o=this.getDefs(!0),a=e[0],s=n?\"_textDom\":\"_dom\";a[s]?(r=a[s].getAttribute(\"id\"),i=a[s],o.contains(i)||o.appendChild(i)):(r=\"zr\"+this._zrId+\"-clip-\"+this.nextId,++this.nextId,(i=this.createElement(\"clipPath\")).setAttribute(\"id\",r),o.appendChild(i),a[s]=i);var l=this.getSvgProxy(a);if(a.transform&&a.parent.invTransform&&!n){var u=Array.prototype.slice.call(a.transform);he(a.transform,a.parent.invTransform,a.transform),l.brush(a),a.transform=u}else l.brush(a);var h=this.getSvgElement(a);i.innerHTML=\"\",i.appendChild(h.cloneNode()),t.setAttribute(\"clip-path\",\"url(#\"+r+\")\"),e.length>1&&this.updateDom(i,e.slice(1),n)}else t&&t.setAttribute(\"clip-path\",\"none\")},mk.prototype.markUsed=function(t){var e=this;t.__clipPaths&&t.__clipPaths.length>0&&B(t.__clipPaths,function(t){t._dom&&pk.prototype.markUsed.call(e,t._dom),t._textDom&&pk.prototype.markUsed.call(e,t._textDom)})},E(vk,pk),vk.prototype.addWithoutUpdate=function(t,e){if(e&&yk(e.style)){var n,i=e.style;i._shadowDom?(n=i._shadowDom,this.getDefs(!0).contains(i._shadowDom)||this.addDom(n)):n=this.add(e),this.markUsed(e);var r=n.getAttribute(\"id\");t.style.filter=\"url(#\"+r+\")\"}},vk.prototype.add=function(t){var e=this.createElement(\"filter\"),n=t.style;return n._shadowDomId=n._shadowDomId||this.nextId++,e.setAttribute(\"id\",\"zr\"+this._zrId+\"-shadow-\"+n._shadowDomId),this.updateDom(t,e),this.addDom(e),e},vk.prototype.update=function(t,e){var n=e.style;if(yk(n)){var i=this;pk.prototype.update.call(this,e,function(t){i.updateDom(e,t._shadowDom)})}else this.remove(t,n)},vk.prototype.remove=function(t,e){null!=e._shadowDomId&&(this.removeDom(e),t.style.filter=\"\")},vk.prototype.updateDom=function(t,e){var n=e.getElementsByTagName(\"feDropShadow\");n=0===n.length?this.createElement(\"feDropShadow\"):n[0];var i,r,o,a,s=t.style,l=t.scale&&t.scale[0]||1,u=t.scale&&t.scale[1]||1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)i=s.shadowOffsetX||0,r=s.shadowOffsetY||0,o=s.shadowBlur,a=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(e,s);i=s.textShadowOffsetX||0,r=s.textShadowOffsetY||0,o=s.textShadowBlur,a=s.textShadowColor}n.setAttribute(\"dx\",i/l),n.setAttribute(\"dy\",r/u),n.setAttribute(\"flood-color\",a);var h=o/2/l+\" \"+o/2/u;n.setAttribute(\"stdDeviation\",h),e.setAttribute(\"x\",\"-100%\"),e.setAttribute(\"y\",\"-100%\"),e.setAttribute(\"width\",Math.ceil(o/2*200)+\"%\"),e.setAttribute(\"height\",Math.ceil(o/2*200)+\"%\"),e.appendChild(n),s._shadowDom=e},vk.prototype.markUsed=function(t){var e=t.style;e&&e._shadowDom&&pk.prototype.markUsed.call(this,e._shadowDom)};var Ak=function(t,e,n,i){this.root=t,this.storage=e,this._opts=n=C({},n||{});var r=HL(\"svg\");r.setAttribute(\"xmlns\",\"http://www.w3.org/2000/svg\"),r.setAttribute(\"version\",\"1.1\"),r.setAttribute(\"baseProfile\",\"full\"),r.style.cssText=\"user-select:none;position:absolute;left:0;top:0;\",this.gradientManager=new gk(i,r),this.clipPathManager=new mk(i,r),this.shadowManager=new vk(i,r);var o=document.createElement(\"div\");o.style.cssText=\"overflow:hidden;position:relative\",this._svgRoot=r,this._viewport=o,t.appendChild(o),o.appendChild(r),this.resize(n.width,n.height),this._visibleList=[]};Ak.prototype={constructor:Ak,getType:function(){return\"svg\"},getViewportRoot:function(){return this._viewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},setBackgroundColor:function(t){this._viewport.style.background=t},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var e,n,i=this._svgRoot,r=this._visibleList,o=t.length,a=[];for(e=0;e=0;--i)if(n[i]===t)return!0;return!1}),e):null:e[0]},resize:function(t,e){var n=this._viewport;n.style.display=\"none\";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display=\"\",this._width!==t||this._height!==e){this._width=t,this._height=e;var r=n.style;r.width=t+\"px\",r.height=e+\"px\";var o=this._svgRoot;o.setAttribute(\"width\",t),o.setAttribute(\"height\",e)}},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,n=[\"width\",\"height\"][t],i=[\"clientWidth\",\"clientHeight\"][t],r=[\"paddingLeft\",\"paddingTop\"][t],o=[\"paddingRight\",\"paddingBottom\"][t];if(null!=e[n]&&\"auto\"!==e[n])return parseFloat(e[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[i]||xk(s[n])||xk(a.style[n]))-(xk(s[r])||0)-(xk(s[o])||0)|0},dispose:function(){this.root.innerHTML=\"\",this._svgRoot=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},pathToDataUrl:function(){return this.refresh(),\"data:image/svg+xml;charset=UTF-8,\"+this._svgRoot.outerHTML}},B([\"getLayer\",\"insertLayer\",\"eachLayer\",\"eachBuiltinLayer\",\"eachOtherLayer\",\"getLayers\",\"modLayer\",\"delLayer\",\"clearLayer\",\"toDataURL\",\"pathToImage\"],function(t){var e;Ak.prototype[t]=(e=t,function(){_n('In SVG mode painter not support method \"'+e+'\"')})}),wr(\"svg\",Ak),t.version=sd,t.dependencies=ld,t.PRIORITY=dd,t.init=function(t,e,n){if(c){if(_r.replace(\".\",\"\")-0=a.getTime()?n+1:e.getTime()>=l.getTime()?n:n-1}},function(t,e,n){var i=n(1),r=n(95);t.exports=function(t,e){var n=i(t),o=Number(e),a=n.getMonth()+o,s=new Date(0);s.setFullYear(n.getFullYear(),a,1),s.setHours(0,0,0,0);var l=r(s);return n.setMonth(a,Math.min(l,n.getDate())),n}},function(t,e,n){var i=n(9),r=n(6),o=\"[object AsyncFunction]\",a=\"[object Function]\",s=\"[object GeneratorFunction]\",l=\"[object Proxy]\";t.exports=function(t){if(!r(t))return!1;var e=i(t);return e==a||e==s||e==o||e==l}},function(t,e,n){(function(e){var n=\"object\"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(45))},function(t,e){var n;n=function(){return this}();try{n=n||new Function(\"return this\")()}catch(t){\"object\"==typeof window&&(n=window)}t.exports=n},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+\"\"}catch(t){}}return\"\"}},function(t,e,n){var i=n(48),r=n(13),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&r(a,n)&&(void 0!==n||e in t)||i(t,e,n)}},function(t,e,n){var i=n(49);t.exports=function(t,e,n){\"__proto__\"==e&&i?i(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){var i=n(5),r=function(){try{var t=i(Object,\"defineProperty\");return t({},\"\",{}),t}catch(t){}}();t.exports=r},function(t,e,n){var i=n(128),r=n(26),o=n(3),a=n(27),s=n(29),l=n(51),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),h=!n&&r(t),c=!n&&!h&&a(t),d=!n&&!h&&!c&&l(t),f=n||h||c||d,p=f?i(t.length,String):[],g=p.length;for(var m in t)!e&&!u.call(t,m)||f&&(\"length\"==m||c&&(\"offset\"==m||\"parent\"==m)||d&&(\"buffer\"==m||\"byteLength\"==m||\"byteOffset\"==m)||s(m,g))||p.push(m);return p}},function(t,e,n){var i=n(131),r=n(17),o=n(31),a=o&&o.isTypedArray,s=a?r(a):i;t.exports=s},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var i=n(50),r=n(135),o=n(8);t.exports=function(t){return o(t)?i(t,!0):r(t)}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var i=n(34),r=n(56),o=n(33),a=n(54),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)i(e,o(t)),t=r(t);return e}:a;t.exports=s},function(t,e,n){var i=n(52)(Object.getPrototypeOf,Object);t.exports=i},function(t,e,n){var i=n(58),r=n(33),o=n(10);t.exports=function(t){return i(t,o,r)}},function(t,e,n){var i=n(34),r=n(3);t.exports=function(t,e,n){var o=e(t);return r(t)?o:i(o,n(t))}},function(t,e,n){var i=n(5)(n(2),\"Set\");t.exports=i},function(t,e,n){var i=n(2).Uint8Array;t.exports=i},function(t,e,n){var i=n(34),r=n(158);t.exports=function t(e,n,o,a,s){var l=-1,u=e.length;for(o||(o=r),s||(s=[]);++l0&&o(h)?n>1?t(h,n-1,o,a,s):i(s,h):a||(s[s.length]=h)}return s}},function(t,e,n){var i=n(19),r=n(159),o=n(161);t.exports=function(t,e){return o(r(t,e,i),t+\"\")}},function(t,e,n){var i=n(25),r=n(166),o=n(167);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new i;++ed))return!1;var p=h.get(t);if(p&&h.get(e))return p==e;var g=-1,m=!0,v=n&s?new i:void 0;for(h.set(t,e),h.set(e,t);++g1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),r(t,i(e,1),[])});t.exports=s},function(t){t.exports=JSON.parse('{\"type\":\"FeatureCollection\",\"features\":[{\"id\":\"710000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@°Ü¯Û\"],[\"@@ƛĴÕƊÉɼģºðʀ\\\\\\\\ƎsÆNŌÔĚäœnÜƤɊĂǀĆĴžĤNJŨxĚĮǂƺòƌ‚–âÔ®ĮXŦţƸZûЋƕƑGđ¨ĭMó·ęcëƝɉlÝƯֹÅŃ^Ó·śŃNjƏďíåɛGɉ™¿@ăƑŽ¥ĘWǬÏĶŁâ\"],[\"@@\\\\\\\\p|WoYG¿¥I†j@¢\"],[\"@@…¡‰@ˆV^RqˆBbAŒnTXeRz¤Lž«³I\"],[\"@@ÆEE—„kWqë @œ\"],[\"@@fced\"]],\"encodeOffsets\":[[[122886,24033]],[[123335,22980]],[[122375,24193]],[[122518,24117]],[[124427,22618]],[[124862,26043]]]},\"properties\":{\"cp\":[121.509062,25.044332],\"name\":\"台湾\",\"childNum\":6}},{\"id\":\"130000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@o~†Z]‚ªr‰ºc_ħ²G¼s`jΟnüsœłNX_“M`ǽÓnUK…Ĝēs¤­©yrý§uģŒc†JŠ›e\"],[\"@@U`Ts¿m‚\"],[\"@@oºƋÄd–eVŽDJj£€J|Ådz•Ft~žKŨ¸IÆv|”‡¢r}膎onb˜}`RÎÄn°ÒdÞ²„^®’lnÐèĄlðӜ×]ªÆ}LiĂ±Ö`^°Ç¶p®đDcœŋ`–ZÔ’¶êqvFƚ†N®ĆTH®¦O’¾ŠIbÐã´BĐɢŴÆíȦp–ĐÞXR€·nndOž¤’OÀĈƒ­Qg˜µFo|gȒęSWb©osx|hYh•gŃfmÖĩnº€T̒Sp›¢dYĤ¶UĈjl’ǐpäìë|³kÛfw²Xjz~ÂqbTŠÑ„ěŨ@|oM‡’zv¢ZrÃVw¬ŧĖ¸fŒ°ÐT€ªqŽs{Sž¯r æÝlNd®²Ğ džiGʂJ™¼lr}~K¨ŸƐÌWö€™ÆŠzRš¤lêmĞL΄’@¡|q]SvK€ÑcwpÏρ†ĿćènĪWlĄkT}ˆJ”¤~ƒÈT„d„™pddʾĬŠ”ŽBVt„EÀ¢ôPĎƗè@~‚k–ü\\\\\\\\rÊĔÖæW_§¼F˜†´©òDòj’ˆYÈrbĞāøŀG{ƀ|¦ðrb|ÀH`pʞkv‚GpuARhÞÆǶgʊTǼƹS£¨¡ù³ŘÍ]¿Ây™ôEP xX¶¹܇O¡“gÚ¡IwÃ鑦ÅB‡Ï|Ç°…N«úmH¯‹âŸDùŽyŜžŲIÄuШDž•¸dɂ‡‚FŸƒ•›Oh‡đ©OŸ›iÃ`ww^ƒÌkŸ‘ÑH«ƇǤŗĺtFu…{Z}Ö@U‡´…ʚLg®¯Oı°ÃwŸ ^˜—€VbÉs‡ˆmA…ê]]w„§›RRl£‡ȭµu¯b{ÍDěïÿȧŽuT£ġƒěŗƃĝ“Q¨fV†Ƌ•ƅn­a@‘³@šď„yýIĹÊKšŭfċŰóŒxV@tˆƯŒJ”]eƒR¾fe|rHA˜|h~Ėƍl§ÏŠlTíb ØoˆÅbbx³^zÃĶš¶Sj®A”yÂhðk`š«P€”ˈµEF†Û¬Y¨Ļrõqi¼‰Wi°§’б´°^[ˆÀ|ĠO@ÆxO\\\\\\\\tŽa\\\\\\\\tĕtû{ġŒȧXýĪÓjùÎRb›š^ΛfK[ݏděYfíÙTyŽuUSyŌŏů@Oi½’éŅ­aVcř§ax¹XŻác‡žWU£ôãºQ¨÷Ñws¥qEH‰Ù|‰›šYQoŕÇyáĂ£MðoťÊ‰P¡mšWO¡€v†{ôvîēÜISpÌhp¨ ‘j†deŔQÖj˜X³à™Ĉ[n`Yp@Už–cM`’RKhŒEbœ”pŞlNut®Etq‚nsÁŠgA‹iú‹oH‡qCX‡”hfgu“~ϋWP½¢G^}¯ÅīGCŸÑ^ãziMáļMTÃƘrMc|O_ž¯Ŏ´|‡morDkO\\\\\\\\mĆJfl@cĢ¬¢aĦtRıҙ¾ùƀ^juųœK­ƒUFy™—Ɲ…›īÛ÷ąV×qƥV¿aȉd³B›qPBm›aËđŻģm“Å®VŠ¹d^K‡KoŸnYg“¯Xhqa”Ldu¥•ÍpDž¡KąÅƒkĝęěhq‡}HyÓ]¹ǧ£…Í÷¿qᵧš™g‘¤o^á¾ZE‡¤i`ij{n•ƒOl»ŸWÝĔįhg›F[¿¡—ßkOüš_‰€ū‹i„DZàUtėGylƒ}ŒÓM}€jpEC~¡FtoQi‘šHkk{Ãmï‚\"]],\"encodeOffsets\":[[[119712,40641]],[[121616,39981]],[[116462,37237]]]},\"properties\":{\"cp\":[114.502461,38.045474],\"name\":\"河北\",\"childNum\":3}},{\"id\":\"140000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[\"@@Þĩ҃S‰ra}Á€yWix±Üe´lè“ßÓǏok‘ćiµVZģ¡coœ‘TS˹ĪmnÕńe–hZg{gtwªpXaĚThȑp{¶Eh—®RćƑP¿£‘Pmc¸mQÝW•ďȥoÅîɡųAďä³aωJ‘½¥PG­ąSM­™…EÅruµé€‘Yӎ•Ō_d›ĒCo­Èµ]¯_²ÕjāŽK~©ÅØ^ԛkïçămϑk]­±ƒcݯÑÃmQÍ~_a—pm…~ç¡q“ˆu{JÅŧ·Ls}–EyÁÆcI{¤IiCfUc•ƌÃp§]웫vD@¡SÀ‘µM‚ÅwuŽYY‡¡DbÑc¡hƒ×]nkoQdaMç~eD•ÛtT‰©±@¥ù@É¡‰ZcW|WqOJmĩl«ħşvOÓ«IqăV—¥ŸD[mI~Ó¢cehiÍ]Ɠ~ĥqXŠ·eƷœn±“}v•[ěďŽŕ]_‘œ•`‰¹ƒ§ÕōI™o©b­s^}Ét±ū«³p£ÿ·Wµ|¡¥ăFÏs׌¥ŅxŸÊdÒ{ºvĴÎêÌɊ²¶€ü¨|ÞƸµȲ‘LLúÉƎ¤ϊęĔV`„_bª‹S^|ŸdŠzY|dz¥p†ZbÆ£¶ÒK}tĦÔņƠ‚PYzn€ÍvX¶Ěn ĠÔ„zý¦ª˜÷žÑĸَUȌ¸‚dòÜJð´’ìúNM¬ŒXZ´‘¤ŊǸ_tldIš{¦ƀðĠȤ¥NehXnYG‚‡R° ƬDj¬¸|CĞ„Kq‚ºfƐiĺ©ª~ĆOQª ¤@ìǦɌ²æBŒÊ”TœŸ˜ʂōĖ’šĴŞ–ȀœÆÿȄlŤĒö„t”νî¼ĨXhŒ‘˜|ªM¤Ðz\"],\"encodeOffsets\":[[116874,41716]]},\"properties\":{\"cp\":[112.549248,37.857014],\"name\":\"山西\",\"childNum\":1}},{\"id\":\"150000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@Č^â£Ăh–šĖMÈÄw‚\\\\\\\\fŦ°W ¢¾luŸD„wŠ\\\\\\\\̀ʉÌÛM…Ā[bӞEn}¶Vc…ê“sƒ–›¯PqƒFB…‰|S•³C|kñ•H‹d‘iÄ¥sˆʼnő…PóÑÑE^‘ÅPpy_YtS™hQ·aHwsOnʼnÚs©iqj›‰€USiº]ïWš‰«gW¡A–R붛ijʕ…Œů`çõh]y»ǃŸǛҤxÒm~zf}pf|ÜroÈzrKÈĵSƧ„ż؜Ġu¦ö\"],[\"@@sKCš…GS|úþX”gp›{ÁX¿Ÿć{ƱȏñZáĔyoÁhA™}ŅĆfdʼn„_¹„Y°ėǩÑ¡H¯¶oMQqð¡Ë™|‘Ñ`ƭŁX½·óۓxğįÅcQ‡ˆ“ƒs«tȋDžF“Ÿù^i‘t«Č¯[›hAi©á¥ÇĚ×l|¹y¯YȵƓ‹ñǙµï‚ċ™Ļ|Dœ™üȭ¶¡˜›oŽäÕG\\\\\\\\ďT¿Òõr¯œŸLguÏYęRƩšɷŌO\\\\\\\\İТæ^Ŋ IJȶȆbÜGŽĝ¬¿ĚVĎgª^íu½jÿĕęjık@Ľƒ]ėl¥Ë‡ĭûÁ„ƒėéV©±ćn©­ȇžÍq¯½•YÃÔʼn“ÉNѝÅÝy¹NqáʅDǡËñ­ƁYÅy̱os§ȋµʽǘǏƬɱà‘ưN¢ƔÊuľýľώȪƺɂļžxœZĈ}ÌʼnŪ˜ĺœŽĭFЛĽ̅ȣͽÒŵìƩÇϋÿȮǡŏçƑůĕ~Ǎ›¼ȳÐUf†dIxÿ\\\\\\\\G ˆzâɏÙOº·pqy£†@ŒŠqþ@Ǟ˽IBäƣzsÂZ†ÁàĻdñ°ŕzéØűzșCìDȐĴĺf®ŽÀľưø@ɜÖÞKĊŇƄ§‚͑těï͡VAġÑÑ»d³öǍÝXĉĕÖ{þĉu¸ËʅğU̎éhɹƆ̗̮ȘNJ֥ड़ࡰţાíϲäʮW¬®ҌeרūȠkɬɻ̼ãüfƠSצɩςåȈHϚÎKdzͲOðÏȆƘ¼CϚǚ࢚˼ФԂ¤ƌžĞ̪Qʤ´¼mȠJˀŸƲÀɠmǐnǔĎȆÞǠN~€ʢĜ‚¶ƌĆĘźʆȬ˪ĚĒ¸ĞGȖƴƀj`ĢçĶāàŃºēĢƒĖćšYŒÀŎüôQÐÂŎŞdžŞêƖš˜oˆDĤÕºÑǘÛˤ³̀gńƘĔÀ^žªƂ`ªt¾äƚêĦĀ¼Ð€Ĕǎ¨Ȕ»͠^ˮÊȦƤøxRrŜH¤¸ÂxDĝŒ|ø˂˜ƮÐ¬ɚwɲFjĔ²Äw°dždÀɞ_ĸdîàŎjʜêTЪŌ‡ŜWÈ|tqĢUB~´°ÎFC•ŽU¼pĀēƄN¦¾O¶ŠłKĊOj“Ě”j´ĜYp˜{¦„ˆSĚÍ\\\\\\\\Tš×ªV–÷Ší¨ÅDK°ßtŇĔKš¨ǵÂcḷ̌ĚǣȄĽF‡lġUĵœŇ‹ȣFʉɁƒMğįʏƶɷØŭOǽ«ƽū¹Ʊő̝Ȩ§ȞʘĖiɜɶʦ}¨֪ࠜ̀ƇǬ¹ǨE˦ĥªÔêFŽxúQ„Er´W„rh¤Ɛ \\\\\\\\talĈDJ˜Ü|[Pll̚¸ƎGú´Pž¬W¦†^¦–H]prR“n|or¾wLVnÇIujkmon£cX^Bh`¥V”„¦U¤¸}€xRj–[^xN[~ªŠxQ„‚[`ªHÆÂExx^wšN¶Ê˜|¨ì†˜€MrœdYp‚oRzNy˜ÀDs~€bcfÌ`L–¾n‹|¾T‚°c¨È¢a‚r¤–`[|òDŞĔöxElÖdH„ÀI`„Ď\\\\\\\\Àì~ƎR¼tf•¦^¢ķ¶e”ÐÚMŒptgj–„ɡČÅyġLû™ŇV®ŠÄÈƀ†Ď°P|ªVV†ªj–¬ĚÒêp¬–E|ŬÂc|ÀtƐK fˆ{ĘFĒœƌXƲąo½Ę‘\\\\\\\\¥–o}›Ûu£ç­kX‘{uĩ«āíÓUŅßŢq€Ť¥lyň[€oi{¦‹L‡ń‡ðFȪȖ”ĒL„¿Ì‹ˆfŒ£K£ʺ™oqNŸƒwğc`ue—tOj×°KJ±qƒÆġm‰Ěŗos¬…qehqsuœƒH{¸kH¡Š…ÊRǪÇƌbȆ¢´ä܍¢NìÉʖ¦â©Ż؛Ç@Vu»A—ylßí¹ĵê…ÝlISò³C¹Ìâ„²i¶’Ìoú^H“²CǜңDŽ z¼g^èöŰ_‹‚–†IJĕꄜ}gÁnUI«m‰…„‹]j‡vV¼euhwqA„aW˜ƒ_µj…»çjioQR¹ēÃßt@r³[ÛlćË^ÍÉáG“›OUۗOB±•XŸkŇ¹£k|e]ol™ŸkVͼÕqtaÏõjgÁ£§U^Œ”RLˆËnX°Ç’Bz†^~wfvˆypV ¯„ƫĉ˭ȫƗŷɿÿĿƑ˃ĝÿÃǃßËőó©ǐȍŒĖM×ÍEyx‹þp]Évïè‘vƀnÂĴÖ@‚‰†V~Ĉ™Š³MEˆĸÅĖt—ējyÄDXÄxGQuv_›i¦aBçw‘˛wD™©{ŸtāmQ€{EJ§KPśƘƿ¥@‰sCT•É}ɃwˆƇy±ŸgÑ“}T[÷kÐ禫…SÒ¥¸ëBX½‰HáŵÀğtSÝÂa[ƣ°¯¦P]£ġ“–“Òk®G²„èQ°óMq}EŠóƐÇ\\\\\\\\ƒ‡@áügQ͋u¥Fƒ“T՛¿Jû‡]|mvāÎYua^WoÀa·­ząÒot׶CLƗi¯¤mƎHNJ¤îìɾŊìTdåwsRÖgĒųúÍġäÕ}Q¶—ˆ¿A•†‹[¡Œ{d×uQAƒ›M•xV‹vMOmăl«ct[wº_šÇʊŽŸjb£ĦS_é“QZ“_lwgOiýe`YYLq§IÁˆdz£ÙË[ÕªuƏ³ÍT—s·bÁĽäė[›b[ˆŗfãcn¥îC¿÷µ[ŏÀQ­ōšĉm¿Á^£mJVm‡—L[{Ï_£›F¥Ö{ŹA}…×Wu©ÅaųijƳhB{·TQqÙIķˑZđ©Yc|M¡…L•eVUóK_QWk’_ĥ‘¿ãZ•»X\\\\\\\\ĴuUƒè‡lG®ěłTĠğDєOrÍd‚ÆÍz]‹±…ŭ©ŸÅ’]ŒÅÐ}UË¥©Tċ™ïxgckfWgi\\\\\\\\ÏĒ¥HkµE˜ë{»ÏetcG±ahUiñiWsɁˆ·c–C‚Õk]wȑ|ća}w…VaĚ᠞ŒG°ùnM¬¯†{ȈÐÆA’¥ÄêJxÙ¢”hP¢Ûˆº€µwWOŸóFŽšÁz^ÀŗÎú´§¢T¤ǻƺSė‰ǵhÝÅQgvBHouʝl_o¿Ga{ïq{¥|ſĿHĂ÷aĝÇq‡Z‘ñiñC³ª—…»E`¨åXēÕqÉû[l•}ç@čƘóO¿¡ƒFUsA‰“ʽīccšocƒ‚ƒÇS}„“£‡IS~ălkĩXçmĈ…ŀЂoÐdxÒuL^T{r@¢‘žÍƒĝKén£kQ™‰yšÅõËXŷƏL§~}kqš»IHėDžjĝŸ»ÑÞoŸå°qTt|r©ÏS‹¯·eŨĕx«È[eMˆ¿yuˆ‘pN~¹ÏyN£{©’—g‹ħWí»Í¾s“əšDž_ÃĀɗ±ą™ijĉʍŌŷ—S›É“A‹±åǥɋ@럣R©ąP©}ĹªƏj¹erƒLDĝ·{i«ƫC£µ\"]],\"encodeOffsets\":[[[127444,52594]],[[113793,40312]]]},\"properties\":{\"cp\":[111.670801,40.818311],\"name\":\"内蒙古\",\"childNum\":2}},{\"id\":\"210000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@L–Ž@@s™a\"],[\"@@MnNm\"],[\"@@d‚c\"],[\"@@eÀ‚C@b‚“‰\"],[\"@@f‡…Xwkbr–Ä`qg\"],[\"@@^jtW‘Q\"],[\"@@~ Y]c\"],[\"@@G`ĔN^_¿Z‚ÃM\"],[\"@@iX¶B‹Y\"],[\"@@„YƒZ\"],[\"@@L_{Epf\"],[\"@@^WqCT\\\\\\\\\"],[\"@@\\\\\\\\[“‹§t|”¤_\"],[\"@@m`n_\"],[\"@@Ïxnj{q_×^Giip\"],[\"@@@œé^B†‡ntˆaÊU—˜Ÿ]x ¯ÄPIJ­°h€ʙK³†VˆÕ@Y~†|EvĹsDŽ¦­L^p²ŸÒG ’Ël]„xxÄ_˜fT¤Ď¤cŽœP„–C¨¸TVjbgH²sdÎdHt`Bˆ—²¬GJję¶[ÐhjeXdlwhšðSȦªVÊπ‹Æ‘Z˜ÆŶ®²†^ŒÎyÅÎcPqń“ĚDMħĜŁH­ˆk„çvV[ij¼W–‚YÀäĦ’‘`XlžR`žôLUVžfK–¢†{NZdĒª’YĸÌÚJRr¸SA|ƴgŴĴÆbvªØX~†źBŽ|¦ÕœEž¤Ð`\\\\\\\\|Kˆ˜UnnI]¤ÀÂĊnŎ™R®Ő¿¶\\\\\\\\ÀøíDm¦ÎbŨab‰œaĘ\\\\\\\\ľã‚¸a˜tÎSƐ´©v\\\\\\\\ÖÚÌǴ¤Â‡¨JKr€Z_Z€fjþhPkx€`Y”’RIŒjJcVf~sCN¤ ˆE‚œhæm‰–sHy¨SðÑÌ\\\\\\\\\\\\\\\\ŸĐRZk°IS§fqŒßýáЍÙÉÖ[^¯ǤŲ„ê´\\\\\\\\¦¬ĆPM¯£Ÿˆ»uïpùzEx€žanµyoluqe¦W^£ÊL}ñrkqWňûP™‰UP¡ôJŠoo·ŒU}£Œ„[·¨@XŒĸŸ“‹‹DXm­Ûݏº‡›GU‹CÁª½{íĂ^cj‡k“¶Ã[q¤“LÉö³cux«zZfƒ²BWÇ®Yß½ve±ÃC•ý£W{Ú^’q^sÑ·¨‹ÍOt“¹·C¥‡GD›rí@wÕKţ݋˜Ÿ«V·i}xËÍ÷‘i©ĝ‡ɝǡ]ƒˆ{c™±OW‹³Ya±Ÿ‰_穂Hžĕoƫ€Ňqƒr³‰Lys[„ñ³¯OS–ďOMisZ†±ÅFC¥Pq{‚Ã[Pg}\\\\\\\\—¿ghćO…•k^ģÁFıĉĥM­oEqqZûěʼn³F‘¦oĵ—hŸÕP{¯~TÍlª‰N‰ßY“Ð{Ps{ÃVU™™eĎwk±ʼnVÓ½ŽJãÇÇ»Jm°dhcÀff‘dF~ˆ€ĀeĖ€d`sx² šƒ®EżĀdQ‹Âd^~ăÔHˆ¦\\\\\\\\›LKpĄVez¤NP ǹӗR™ÆąJSh­a[¦´Âghwm€BÐ¨źhI|žVVŽ—Ž|p] Â¼èNä¶ÜBÖ¼“L`‚¼bØæŒKV”ŸpoœúNZÞÒKxpw|ÊEMnzEQšŽIZ”ŽZ‡NBˆčÚFÜçmĩ‚WĪñt‘ÞĵÇñZ«uD‚±|Əlij¥ãn·±PmÍa‰–da‡ CL‡Ǒkùó¡³Ï«QaċϑOÃ¥ÕđQȥċƭy‹³ÃA\"]],\"encodeOffsets\":[[[123686,41445]],[[126019,40435]],[[124393,40128]],[[126117,39963]],[[125322,40140]],[[126686,40700]],[[126041,40374]],[[125584,40168]],[[125453,40165]],[[125362,40214]],[[125280,40291]],[[125774,39997]],[[125976,40496]],[[125822,39993]],[[125509,40217]],[[122731,40949]]]},\"properties\":{\"cp\":[123.429096,41.796767],\"name\":\"辽宁\",\"childNum\":16}},{\"id\":\"220000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[\"@@‘p䔳PClƒFbbÍzš€wBG’ĭ€Z„Åi“»ƒlY­ċ²SgŽkÇ£—^S‰“qd¯•‹R…©éŽ£¯S†\\\\\\\\cZ¹iűƏCuƍÓX‡oR}“M^o•£…R}oªU­F…uuXHlEŕ‡€Ï©¤ÛmTŽþ¤D–²ÄufàÀ­XXȱAe„yYw¬dvõ´KÊ£”\\\\\\\\rµÄl”iˆdā]|DÂVŒœH¹ˆÞ®ÜWnŒC”Œķ W‹§@\\\\\\\\¸‹ƒ~¤‹Vp¸‰póIO¢ŠVOšŇürXql~òÉK]¤¥Xrfkvzpm¶bwyFoúvð‡¼¤ N°ąO¥«³[ƒéǡű_°Õ\\\\\\\\ÚÊĝŽþâőàerR¨­JYlďQ[ ÏYëЧTGz•tnŠß¡gFkMŸāGÁ¤ia É‰™È¹`\\\\\\\\xs€¬dĆkNnuNUŠ–užP@‚vRY¾•–\\\\\\\\¢…ŒGªóĄ~RãÖÎĢù‚đŴÕhQŽxtcæëSɽʼníëlj£ƍG£nj°KƘµDsØÑpyƸ®¿bXp‚]vbÍZuĂ{nˆ^IüœÀSք”¦EŒvRÎûh@℈[‚Əȉô~FNr¯ôçR±ƒ­HÑl•’Ģ–^¤¢‚OðŸŒævxsŒ]ÞÁTĠs¶¿âƊGW¾ìA¦·TѬ†è¥€ÏÐJ¨¼ÒÖ¼ƒƦɄxÊ~S–tD@ŠĂ¼Ŵ¡jlºWžvЉˆzƦZЎ²CH— „Axiukd‹ŒGgetqmcžÛ£Ozy¥cE}|…¾cZ…k‚‰¿uŐã[oxGikfeäT@…šSUwpiÚFM©’£è^ڟ‚`@v¶eň†f h˜eP¶žt“äOlÔUgƒÞzŸU`lœ}ÔÆUvØ_Ō¬Öi^ĉi§²ÃŠB~¡Ĉ™ÚEgc|DC_Ȧm²rBx¼MÔ¦ŮdĨÃâYx‘ƘDVÇĺĿg¿cwÅ\\\\\\\\¹˜¥Yĭlœ¤žOv†šLjM_a W`zļMž·\\\\\\\\swqÝSA‡š—q‰Śij¯Š‘°kŠRē°wx^Đkǂғ„œž“œŽ„‹\\\\\\\\]˜nrĂ}²ĊŲÒøãh·M{yMzysěnĒġV·°“G³¼XÀ““™¤¹i´o¤ŃšŸÈ`̃DzÄUĞd\\\\\\\\i֚ŒˆmÈBĤÜɲDEh LG¾ƀľ{WaŒYÍȏĢĘÔRîĐj‹}Ǟ“ccj‡oUb½š{“h§Ǿ{K‹ƖµÎ÷žGĀÖŠåưÎs­l›•yiē«‹`姝H¥Ae^§„GK}iã\\\\\\\\c]v©ģZ“mÃ|“[M}ģTɟĵ‘Â`À–çm‰‘FK¥ÚíÁbXš³ÌQґHof{‰]e€pt·GŋĜYünĎųVY^’˜ydõkÅZW„«WUa~U·Sb•wGçǑ‚“iW^q‹F‚“›uNĝ—·Ew„‹UtW·Ýďæ©PuqEzwAV•—XR‰ãQ`­©GŒM‡ehc›c”ďϝd‡©ÑW_ϗYƅŒ»…é\\\\\\\\ƒɹ~ǙG³mØ©BšuT§Ĥ½¢Ã_ý‘L¡‘ýŸqT^rme™\\\\\\\\Pp•ZZbƒyŸ’uybQ—efµ]UhĿDCmûvašÙNSkCwn‰cćfv~…Y‹„ÇG\"],\"encodeOffsets\":[[130196,42528]]},\"properties\":{\"cp\":[125.3245,43.886841],\"name\":\"吉林\",\"childNum\":1}},{\"id\":\"230000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@ƨƒĶTLÇyqpÇÛqe{~oyen}s‰`q‡iXG”ù]Ëp½“©lɇÁp]Þñ´FÔ^f‘äîºkà˜z¼BUvÈ@\"],[\"@@UƒµNÿ¥īè灋•HÍøƕ¶LŒǽ|g¨|”™Ža¾pViˆdd”~ÈiŒíďÓQġėǐZ΋ŽXb½|ſÃH½ŸKFgɱCģÛÇA‡n™‹jÕc[VĝDZÃ˄Ç_™ £ń³pŽj£º”š¿”»WH´¯”U¸đĢmžtĜyzzNN|g¸÷äűѱĉā~mq^—Œ[ƒ”››”ƒǁÑďlw]¯xQĔ‰¯l‰’€°řĴrŠ™˜BˆÞTxr[tŽ¸ĻN_yŸX`biN™Ku…P›£k‚ZĮ—¦[ºxÆÀdhŽĹŀUÈƗCw’áZħÄŭcÓ¥»NAw±qȥnD`{ChdÙFćš}¢‰A±Äj¨]ĊÕjŋ«×`VuÓś~_kŷVÝyh„“VkÄãPs”Oµ—fŸge‚Ň…µf@u_Ù ÙcŸªNªÙEojVx™T@†ãSefjlwH\\\\\\\\pŏäÀvŠŽlY†½d{†F~¦dyz¤PÜndsrhf‹HcŒvlwjFœ£G˜±DύƥY‡yϊu¹XikĿ¦ÏqƗǀOŜ¨LI|FRĂn sª|Cš˜zxAè¥bœfudTrFWÁ¹Am|˜ĔĕsķÆF‡´Nš‰}ć…UŠÕ@Áijſmužç’uð^ÊýowŒFzØÎĕNőžǏȎôªÌŒDŽàĀÄ˄ĞŀƒʀĀƘŸˮȬƬĊ°ƒUŸzou‡xe]}Ž…AyȑW¯ÌmK‡“Q]‹Īºif¸ÄX|sZt|½ÚUΠlkš^p{f¤lˆºlÆW –€A²˜PVܜPH”Êâ]ÎĈÌÜk´\\\\\\\\@qàsĔÄQºpRij¼èi†`¶—„bXƒrBgxfv»ŽuUiˆŒ^v~”J¬mVp´£Œ´VWrnP½ì¢BX‚¬h™ŠðX¹^TjVœŠriªj™tŊÄm€tPGx¸bgRšŽsT`ZozÆO]’ÒFô҆Oƒ‡ŊŒvŞ”p’cGŒêŠsx´DR–Œ{A†„EOr°Œ•žx|íœbˆ³Wm~DVjºéNN†Ëܲɶ­GƒxŷCStŸ}]ûō•SmtuÇÃĕN•™āg»šíT«u}ç½BĵÞʣ¥ëÊ¡Mێ³ãȅ¡ƋaǩÈÉQ‰†G¢·lG|›„tvgrrf«†ptęŘnŠÅĢr„I²¯LiØsPf˜_vĠd„xM prʹšL¤‹¤‡eˌƒÀđK“žïÙVY§]I‡óáĥ]ķ†Kˆ¥Œj|pŇ\\\\\\\\kzţ¦šnņäÔVĂîĪ¬|vW’®l¤èØr‚˜•xm¶ă~lÄƯĄ̈́öȄEÔ¤ØQĄ–Ą»ƢjȦOǺ¨ìSŖÆƬy”Qœv`–cwƒZSÌ®ü±DŽ]ŀç¬B¬©ńzƺŷɄeeOĨS’Œfm Ċ‚ƀP̎ēz©Ċ‚ÄÕÊmgŸÇsJ¥ƔˆŊśæ’΁Ñqv¿íUOµª‰ÂnĦÁ_½ä@ê텣P}Ġ[@gġ}g“ɊדûÏWXá¢užƻÌsNͽƎÁ§č՛AēeL³àydl›¦ĘVçŁpśdžĽĺſʃQíÜçÛġԏsĕ¬—Ǹ¯YßċġHµ ¡eå`ļƒrĉŘóƢFì“ĎWøxÊk†”ƈdƬv|–I|·©NqńRŀƒ¤é”eŊœŀ›ˆàŀU²ŕƀB‚Q£Ď}L¹Îk@©ĈuǰųǨ”Ú§ƈnTËÇéƟÊcfčŤ^Xm‡—HĊĕË«W·ċëx³ǔķÐċJā‚wİ_ĸ˜Ȁ^ôWr­°oú¬Ħ…ŨK~”ȰCĐ´Ƕ£’fNÎèâw¢XnŮeÂÆĶŽ¾¾xäLĴĘlļO¤ÒĨA¢Êɚ¨®‚ØCÔ ŬGƠ”ƦYĜ‡ĘÜƬDJ—g_ͥœ@čŅĻA“¶¯@wÎqC½Ĉ»NŸăëK™ďÍQ“Ùƫ[«Ãí•gßÔÇOÝáW‘ñuZ“¯ĥ€Ÿŕā¡ÑķJu¤E Ÿå¯°WKɱ_d_}}vyŸõu¬ï¹ÓU±½@gÏ¿rýD‰†g…Cd‰µ—°MFYxw¿CG£‹Rƛ½Õ{]L§{qqąš¿BÇƻğëšܭNJË|c²}Fµ}›ÙRsÓpg±ŠQNqǫŋRwŕnéÑÉKŸ†«SeYR…ŋ‹@{¤SJ}šD Ûǖ֍Ÿ]gr¡µŷjqWÛham³~S«“„›Þ]\"]],\"encodeOffsets\":[[[127123,51780]],[[134456,44547]]]},\"properties\":{\"cp\":[126.642464,45.756967],\"name\":\"黑龙江\",\"childNum\":2}},{\"id\":\"320000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[\"@@cþÅPiŠ`ZŸRu¥É\\\\\\\\]~°ŽY`µ†Óƒ^phÁbnÀşúŽòa–ĬºTÖŒb‚˜e¦¦€{¸ZâćNpŒ©žHr|^ˆmjhŠSEb\\\\\\\\afv`sz^lkŽlj‹Ätg‹¤D˜­¾Xš¿À’|ДiZ„ȀåB·î}GL¢õcßjaŸyBFµÏC^ĭ•cÙt¿sğH]j{s©HM¢ƒQnDÀ©DaÜތ·jgàiDbPufjDk`dPOîƒhw¡ĥ‡¥šG˜ŸP²ĐobºrY†„î¶aHŢ´ ]´‚rılw³r_{£DB_Ûdåuk|ˆŨ¯F Cºyr{XFy™e³Þċ‡¿Â™kĭB¿„MvÛpm`rÚã”@Ę¹hågËÖƿxnlč¶Åì½Ot¾dJlŠVJʜǀœŞqvnOŠ^ŸJ”Z‘ż·Q}ê͎ÅmµÒ]Žƍ¦Dq}¬R^èĂ´ŀĻĊIԒtžIJyQŐĠMNtœR®òLh‰›Ěs©»œ}OӌGZz¶A\\\\\\\\jĨFˆäOĤ˜HYš†JvÞHNiÜaϚɖnFQlšNM¤ˆB´ĄNöɂtp–Ŭdf先‹qm¿QûŠùއÚb¤uŃJŴu»¹Ą•lȖħŴw̌ŵ²ǹǠ͛hĭłƕrçü±Y™xci‡tğ®jű¢KOķ•Coy`å®VTa­_Ā]ŐÝɞï²ʯÊ^]afYǸÃĆēĪȣJđ͍ôƋĝÄ͎ī‰çÛɈǥ£­ÛmY`ó£Z«§°Ó³QafusNıDž_k}¢m[ÝóDµ—¡RLčiXy‡ÅNïă¡¸iĔϑNÌŕoēdōîåŤûHcs}~Ûwbù¹£¦ÓCt‹OPrƒE^ÒoŠg™ĉIµžÛÅʹK…¤½phMŠü`o怆ŀ\"],\"encodeOffsets\":[[121740,32276]]},\"properties\":{\"cp\":[118.767413,32.041544],\"name\":\"江苏\",\"childNum\":1}},{\"id\":\"330000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@E^dQ]K\"],[\"@@jX^j‡\"],[\"@@sfŠbU‡\"],[\"@@qP\\\\\\\\xz[ck\"],[\"@@‘Rƒ¢‚FX}°[s_\"],[\"@@Cbœ\\\\\\\\—}\"],[\"@@e|v\\\\\\\\la{u\"],[\"@@v~u}\"],[\"@@QxÂF¯}\"],[\"@@¹nŒvÞs¯o\"],[\"@@rSkUEj\"],[\"@@bi­ZŒP\"],[\"@@p[}INf\"],[\"@@À¿€\"],[\"@@¹dnbŒ…\"],[\"@@rSŸBnR\"],[\"@@g~h}\"],[\"@@FlEk\"],[\"@@OdPc\"],[\"@@v[u\\\\\\\\\"],[\"@@FjâL~wyoo~›sµL–\\\\\\\\\"],[\"@@¬e¹aNˆ\"],[\"@@\\\\\\\\nÔ¡q]L³ë\\\\\\\\ÿ®ŒQ֎\"],[\"@@ÊA­©[¬\"],[\"@@KxŒv­\"],[\"@@@hlIk]\"],[\"@@pW{o||j\"],[\"@@Md|_mC\"],[\"@@¢…X£ÏylD¼XˆtH\"],[\"@@hlÜ[LykAvyfw^Ež›¤\"],[\"@@fp¤Mus“R\"],[\"@@®_ma~•LÁ¬šZ\"],[\"@@iM„xZ\"],[\"@@ZcYd\"],[\"@@Z~dOSo|A¿qZv\"],[\"@@@`”EN¡v\"],[\"@@|–TY{\"],[\"@@@n@m\"],[\"@@XWkCT\\\\\\\\\"],[\"@@ºwšZRkĕWO¢\"],[\"@@™X®±Grƪ\\\\\\\\ÔáXq{‹\"],[\"@@ůTG°ĄLHm°UC‹\"],[\"@@¤Ž€aÜx~}dtüGæţŎíĔcŖpMËВjē¢·ðĄÆMzˆjWKĎ¢Q¶˜À_꒔_Bı€i«pZ€gf€¤Nrq]§ĂN®«H±‡yƳí¾×ŸīàLłčŴǝĂíÀBŖÕªˆŠÁŖHŗʼnåqûõi¨hÜ·ƒñt»¹ýv_[«¸m‰YL¯‰Qª…mĉÅdMˆ•gÇjcº«•ęœ¬­K­´ƒB«Âącoċ\\\\\\\\xKd¡gěŧ«®á’[~ıxu·Å”KsËɏc¢Ù\\\\\\\\ĭƛëbf¹­ģSƒĜkáƉÔ­ĈZB{ŠaM‘µ‰fzʼnfåÂŧįƋǝÊĕġć£g³ne­ą»@­¦S®‚\\\\\\\\ßðCšh™iqªĭiAu‡A­µ”_W¥ƣO\\\\\\\\lċĢttC¨£t`ˆ™PZäuXßBs‡Ļyek€OđġĵHuXBšµ]׌‡­­\\\\\\\\›°®¬F¢¾pµ¼kŘó¬Wät’¸|@ž•L¨¸µr“ºù³Ù~§WI‹ŸZWŽ®’±Ð¨ÒÉx€`‰²pĜ•rOògtÁZ}þÙ]„’¡ŒŸFK‚wsPlU[}¦Rvn`hq¬\\\\\\\\”nQ´ĘRWb”‚_ rtČFI֊kŠŠĦPJ¶ÖÀÖJĈĄTĚòžC ²@Pú…Øzœ©PœCÈڜĒ±„hŖ‡l¬â~nm¨f©–iļ«m‡nt–u†ÖZÜÄj“ŠLŽ®E̜Fª²iÊxبžIÈhhst\"],[\"@@o\\\\\\\\V’zRZ}y\"],[\"@@†@°¡mۛGĕ¨§Ianá[ýƤjfæ‡ØL–•äGr™\"]],\"encodeOffsets\":[[[125592,31553]],[[125785,31436]],[[125729,31431]],[[125513,31380]],[[125223,30438]],[[125115,30114]],[[124815,29155]],[[124419,28746]],[[124095,28635]],[[124005,28609]],[[125000,30713]],[[125111,30698]],[[125078,30682]],[[125150,30684]],[[124014,28103]],[[125008,31331]],[[125411,31468]],[[125329,31479]],[[125626,30916]],[[125417,30956]],[[125254,30976]],[[125199,30997]],[[125095,31058]],[[125083,30915]],[[124885,31015]],[[125218,30798]],[[124867,30838]],[[124755,30788]],[[124802,30809]],[[125267,30657]],[[125218,30578]],[[125200,30562]],[[124968,30474]],[[125167,30396]],[[124955,29879]],[[124714,29781]],[[124762,29462]],[[124325,28754]],[[123990,28459]],[[125366,31477]],[[125115,30363]],[[125369,31139]],[[122495,31878]],[[125329,30690]],[[125192,30787]]]},\"properties\":{\"cp\":[120.153576,30.287459],\"name\":\"浙江\",\"childNum\":45}},{\"id\":\"340000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@^iuLX^\"],[\"@@‚e©Ehl\"],[\"@@°ZÆëϵmkǀwÌÕæhºgBĝâqÙĊz›ÖgņtÀÁÊÆá’hEz|WzqD¹€Ÿ°E‡ŧl{ævÜcA`¤C`|´qžxIJkq^³³ŸGšµbƒíZ…¹qpa±ď OH—¦™Ħˆx¢„gPícOl_iCveaOjCh߸i݋bÛªCC¿€m„RV§¢A|t^iĠGÀtÚs–d]ĮÐDE¶zAb àiödK¡~H¸íæAžǿYƒ“j{ď¿‘™À½W—®£ChŒÃsiŒkkly]_teu[bFa‰Tig‡n{]Gqªo‹ĈMYá|·¥f¥—őaSÕė™NµñĞ«ImŒ_m¿Âa]uĜp …Z_§{Cƒäg¤°r[_Yj‰ÆOdý“[ŽI[á·¥“Q_n‡ùgL¾mv™ˊBÜƶĊJhšp“c¹˜O]iŠ]œ¥ jtsggJǧw×jÉ©±›EFˍ­‰Ki”ÛÃÕYv…s•ˆm¬njĻª•§emná}k«ŕˆƒgđ²Ù›DǤ›í¡ªOy›†×Où±@DŸñSęćăÕIÕ¿IµĥO‰‰jNÕËT¡¿tNæŇàåyķrĕq§ÄĩsWÆߎF¶žX®¿‰mŒ™w…RIޓfßoG‘³¾©uyH‘į{Ɓħ¯AFnuP…ÍÔzšŒV—dàôº^Ðæd´€‡oG¤{S‰¬ćxã}›ŧ×Kǥĩ«žÕOEзÖdÖsƘѨ[’Û^Xr¢¼˜§xvěƵ`K”§ tÒ´Cvlo¸fzŨð¾NY´ı~ÉĔē…ßúLÃϖ_ÈÏ|]ÂÏFl”g`bšežž€n¾¢pU‚h~ƴĖ¶_‚r sĄ~cž”ƈ]|r c~`¼{À{ȒiJjz`îÀT¥Û³…]’u}›f…ïQl{skl“oNdŸjŸäËzDvčoQŠďHI¦rb“tHĔ~BmlRš—V_„ħTLnñH±’DžœL‘¼L˜ªl§Ťa¸ŒĚlK²€\\\\\\\\RòvDcÎJbt[¤€D@®hh~kt°ǾzÖ@¾ªdb„YhüóZ ň¶vHrľ\\\\\\\\ʗJuxAT|dmÀO„‹[ÃԋG·ĚąĐlŪÚpSJ¨ĸˆLvÞcPæķŨŽ®mАˆálŸwKhïgA¢ųƩޖ¤OȜm’°ŒK´\"]],\"encodeOffsets\":[[[121722,32278]],[[119475,30423]],[[119168,35472]]]},\"properties\":{\"cp\":[117.283042,31.86119],\"name\":\"安徽\",\"childNum\":3}},{\"id\":\"350000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@“zht´‡]\"],[\"@@aj^~ĆG—©O\"],[\"@@ed¨„C}}i\"],[\"@@@vˆPGsQ\"],[\"@@‰sBz‚ddW]Q\"],[\"@@SŽ¨Q“{\"],[\"@@NŽVucW\"],[\"@@qptBAq\"],[\"@@‰’¸[mu\"],[\"@@Q\\\\\\\\pD]_\"],[\"@@jSwUadpF\"],[\"@@eXª~ƒ•\"],[\"@@AjvFso\"],[\"@@fT–›_Çí\\\\\\\\Ÿ™—v|ba¦jZÆy€°\"],[\"@@IjJi\"],[\"@@wJI€ˆxš«¼AoNe{M­\"],[\"@@K‰±¡Óˆ”ČäeZ\"],[\"@@k¡¹Eh~c®wBk‹UplÀ¡I•~Māe£bN¨gZý¡a±Öcp©PhžI”Ÿ¢Qq…ÇGj‹|¥U™ g[Ky¬ŏ–v@OpˆtÉEŸF„\\\\\\\\@ åA¬ˆV{Xģ‰ĐBy…cpě…¼³Ăp·¤ƒ¥o“hqqÚ¡ŅLsƒ^ᗞ§qlŸÀhH¨MCe»åÇGD¥zPO£čÙkJA¼ß–ėu›ĕeûҍiÁŧSW¥˜QŠûŗ½ùěcݧSùĩąSWó«íęACµ›eR—åǃRCÒÇZÍ¢‹ź±^dlsŒtjD¸•‚ZpužÔâÒH¾oLUêÃÔjjēò´ĄW‚ƛ…^Ñ¥‹ĦŸ@Çò–ŠmŒƒOw¡õyJ†yD}¢ďÑÈġfŠZd–a©º²z£šN–ƒjD°Ötj¶¬ZSÎ~¾c°¶Ðm˜x‚O¸¢Pl´žSL|¥žA†ȪĖM’ņIJg®áIJČĒü` ŽQF‡¬h|ÓJ@zµ |ê³È ¸UÖŬŬÀEttĸr‚]€˜ðŽM¤ĶIJHtÏ A’†žĬkvsq‡^aÎbvŒd–™fÊòSD€´Z^’xPsÞrv‹ƞŀ˜jJd×ŘÉ ®A–ΦĤd€xĆqAŒ†ZR”ÀMźŒnĊ»ŒİÐZ— YX–æJŠyĊ²ˆ·¶q§·–K@·{s‘Xãô«lŗ¶»o½E¡­«¢±¨Yˆ®Ø‹¶^A™vWĶGĒĢžPlzfˆļŽtàAvWYãšO_‡¤sD§ssČġ[kƤPX¦Ž`¶“ž®ˆBBvĪjv©šjx[L¥àï[F…¼ÍË»ğV`«•Ip™}ccÅĥZE‹ãoP…´B@ŠD—¸m±“z«Ƴ—¿å³BRضˆœWlâþäą`“]Z£Tc— ĹGµ¶H™m@_©—kŒ‰¾xĨ‡ôȉðX«½đCIbćqK³Á‹Äš¬OAwã»aLʼn‡ËĥW[“ÂGI—ÂNxij¤D¢ŽîĎÎB§°_JœGsƒ¥E@…¤uć…P‘å†cuMuw¢BI¿‡]zG¹guĮck\\\\\\\\_\"]],\"encodeOffsets\":[[[123250,27563]],[[122541,27268]],[[123020,27189]],[[122916,27125]],[[122887,26845]],[[122808,26762]],[[122568,25912]],[[122778,26197]],[[122515,26757]],[[122816,26587]],[[123388,27005]],[[122450,26243]],[[122578,25962]],[[121255,25103]],[[120987,24903]],[[122339,25802]],[[121042,25093]],[[122439,26024]]]},\"properties\":{\"cp\":[119.306239,26.075302],\"name\":\"福建\",\"childNum\":18}},{\"id\":\"360000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[\"@@ĢĨƐgļˆ¼ÂMD~ņªe^\\\\\\\\^§„ý©j׍cZ†Ø¨zdÒa¶ˆlҍJŒìõ`oz÷@¤u޸´†ôęöY¼‰HČƶajlÞƩ¥éZ[”|h}^U Œ ¥p„ĄžƦO lt¸Æ €Q\\\\\\\\€ŠaÆ|CnÂOjt­ĚĤd’ÈŒF`’¶„@Ð딠¦ōҞ¨Sêv†HĢûXD®…QgėWiØPÞìºr¤dž€NĠ¢l–•ĄtZoœCƞÔºCxrpĠV®Ê{f_Y`_ƒeq’’®Aot`@o‚DXfkp¨|Šs¬\\\\\\\\D‘ÄSfè©Hn¬…^DhÆyøJh“ØxĢĀLʈ„ƠPżċĄwȠ̦G®ǒĤäTŠÆ~ĦwŠ«|TF¡Šn€c³Ïå¹]ĉđxe{ÎӐ†vOEm°BƂĨİ|G’vz½ª´€H’àp”eJ݆Qšxn‹ÀŠW­žEµàXÅĪt¨ÃĖrÄwÀFÎ|ňÓMå¼ibµ¯»åDT±m[“r«_gŽmQu~¥V\\\\\\\\OkxtL E¢‹ƒ‘Ú^~ýê‹Pó–qo슱_Êw§ÑªåƗā¼‹mĉŹ‹¿NQ“…YB‹ąrwģcÍ¥B•Ÿ­ŗÊcØiI—žƝĿuŒqtāwO]‘³YCñTeɕš‹caub͈]trlu€ī…B‘ПGsĵıN£ï—^ķqss¿FūūV՟·´Ç{éĈý‰ÿ›OEˆR_ŸđûIċâJh­ŅıN‘ȩĕB…¦K{Tk³¡OP·wn—µÏd¯}½TÍ«YiµÕsC¯„iM•¤™­•¦¯P|ÿUHv“he¥oFTu‰õ\\\\\\\\ŽOSs‹MòđƇiaºćXŸĊĵà·çhƃ÷ǜ{‘ígu^›đg’m[×zkKN‘¶Õ»lčÓ{XSƉv©_ÈëJbVk„ĔVÀ¤P¾ºÈMÖxlò~ªÚàGĂ¢B„±’ÌŒK˜y’áV‡¼Ã~­…`g›ŸsÙfI›Ƌlę¹e|–~udjˆuTlXµf`¿JdŠ[\\\\\\\\˜„L‚‘²\"],\"encodeOffsets\":[[116689,26234]]},\"properties\":{\"cp\":[115.892151,28.676493],\"name\":\"江西\",\"childNum\":1}},{\"id\":\"370000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@Xjd]{K\"],[\"@@itbFHy\"],[\"@@HlGk\"],[\"@@T‚ŒGŸy\"],[\"@@K¬˜•‹U\"],[\"@@WdXc\"],[\"@@PtOs\"],[\"@@•LnXhc\"],[\"@@ppVƒu]Or\"],[\"@@cdzAUa\"],[\"@@udRhnCI‡\"],[\"@@ˆoIƒpR„\"],[\"@@Ľč{fzƤî’Kš–ÎMĮ]†—ZFˆ½Y]â£ph’™š¶¨râøÀ†ÎǨ¤^ºÄ”Gzˆ~grĚĜlĞƄLĆdž¢Îo¦–cv“Kb€gr°Wh”mZp ˆL]LºcU‰Æ­n”żĤÌĒœbAnrOAœ´žȊcÀbƦUØrĆUÜøœĬƞ†š˜Ez„VL®öØBkŖÝĐĖ¹ŧ̄±ÀbÎɜnb²ĦhņBĖ›žįĦåXćì@L¯´ywƕCéõė ƿ¸‘lµ¾Z|†ZWyFYŸ¨Mf~C¿`€à_RÇzwƌfQnny´INoƬˆèôº|sT„JUš›‚L„îVj„ǎ¾Ē؍‚Dz²XPn±ŴPè¸ŔLƔÜƺ_T‘üÃĤBBċȉöA´fa„˜M¨{«M`‡¶d¡ô‰Ö°šmȰBÔjjŒ´PM|”c^d¤u•ƒ¤Û´Œä«ƢfPk¶Môlˆ]Lb„}su^ke{lC‘…M•rDŠÇ­]NÑFsmoõľH‰yGă{{çrnÓE‰‹ƕZGª¹Fj¢ïW…uøCǷ돡ąuhÛ¡^Kx•C`C\\\\\\\\bÅxì²ĝÝ¿_N‰īCȽĿåB¥¢·IŖÕy\\\\\\\\‡¹kx‡Ã£Č×GDyÕ¤ÁçFQ¡„KtŵƋ]CgÏAùSed‡cÚź—ŠuYfƒyMmhUWpSyGwMPqŀ—›Á¼zK›¶†G•­Y§Ëƒ@–´śÇµƕBmœ@Io‚g——Z¯u‹TMx}C‘‰VK‚ï{éƵP—™_K«™pÛÙqċtkkù]gŽ‹Tğwo•ɁsMõ³ă‡AN£™MRkmEʕč™ÛbMjÝGu…IZ™—GPģ‡ãħE[iµBEuŸDPԛ~ª¼ętŠœ]ŒûG§€¡QMsğNPŏįzs£Ug{đJĿļā³]ç«Qr~¥CƎÑ^n¶ÆéÎR~Ż¸Y’I“] P‰umŝrƿ›‰›Iā‹[x‰edz‹L‘¯v¯s¬ÁY…~}…ťuŁŒg›ƋpÝĄ_ņī¶ÏSR´ÁP~ž¿Cyžċßdwk´Ss•X|t‰`Ä Èð€AªìÎT°¦Dd–€a^lĎDĶÚY°Ž`ĪŴǒˆ”àŠv\\\\\\\\ebŒZH„ŖR¬ŢƱùęO•ÑM­³FۃWp[ƒ\"]],\"encodeOffsets\":[[[123806,39303]],[[123821,39266]],[[123742,39256]],[[123702,39203]],[[123649,39066]],[[123847,38933]],[[123580,38839]],[[123894,37288]],[[123043,36624]],[[123344,38676]],[[123522,38857]],[[123628,38858]],[[118260,36742]]]},\"properties\":{\"cp\":[117.000923,36.675807],\"name\":\"山东\",\"childNum\":13}},{\"id\":\"410000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[\"@@•ýL™ùµP³swIÓxcŢĞð†´E®žÚPt†ĴXØx¶˜@«ŕŕQGƒ‹Yfa[şu“ßǩ™đš_X³ijÕčC]kbc•¥CS¯ëÍB©÷‹–³­Siˆ_}m˜YTtž³xlàcȂzÀD}ÂOQ³ÐTĨ¯†ƗòËŖ[hœł‹Ŧv~††}ÂZž«¤lPǕ£ªÝŴÅR§ØnhcŒtâk‡nύ­ľŹUÓÝdKuķ‡I§oTũÙďkęĆH¸ÓŒ\\\\\\\\ăŒ¿PcnS{wBIvɘĽ[GqµuŸŇôYgûƒZcaŽ©@½Õǽys¯}lgg@­C\\\\\\\\£as€IdÍuCQñ[L±ęk·‹ţb¨©kK—’»›KC²‘òGKmĨS`ƒ˜UQ™nk}AGē”sqaJ¥ĐGR‰ĎpCuÌy ã iMc”plk|tRk†ðœev~^‘´†¦ÜŽSí¿_iyjI|ȑ|¿_»d}qŸ^{“Ƈdă}Ÿtqµ`Ƴĕg}V¡om½fa™Ço³TTj¥„tĠ—Ry”K{ùÓjuµ{t}uËR‘iŸvGŠçJFjµŠÍyqΘàQÂFewixGw½Yŷpµú³XU›½ġy™łå‰kÚwZXˆ·l„¢Á¢K”zO„Λ΀jc¼htoDHr…|­J“½}JZ_¯iPq{tę½ĕ¦Zpĵø«kQ…Ťƒ]MÛfaQpě±ǽ¾]u­Fu‹÷nƒ™čįADp}AjmcEǒaª³o³ÆÍSƇĈÙDIzˑ赟^ˆKLœ—i—Þñ€[œƒaA²zz‰Ì÷Dœ|[šíijgf‚ÕÞd®|`ƒĆ~„oĠƑô³Ŋ‘D×°¯CsŠøÀ«ì‰UMhTº¨¸ǡîS–Ô„DruÂÇZ•ÖEŽ’vPZ„žW”~؋ÐtĄE¢¦Ðy¸bŠô´oŬ¬Ž²Ês~€€]®tªašpŎJ¨Öº„_ŠŔ–`’Ŗ^Ѝ\\\\\\\\Ĝu–”~m²Ƹ›¸fW‰ĦrƔ}Î^gjdfÔ¡J}\\\\\\\\n C˜¦þWxªJRÔŠu¬ĨĨmF†dM{\\\\\\\\d\\\\\\\\ŠYÊ¢ú@@¦ª²SŠÜsC–}fNècbpRmlØ^g„d¢aÒ¢CZˆZxvÆ¶N¿’¢T@€uCœ¬^ĊðÄn|žlGl’™Rjsp¢ED}€Fio~ÔNŽ‹„~zkĘHVsDzßjƒŬŒŠŢ`Pûàl¢˜\\\\\\\\ÀœEhŽİgÞē X¼Pk–„|m\"],\"encodeOffsets\":[[118256,37017]]},\"properties\":{\"cp\":[113.665412,34.757975],\"name\":\"河南\",\"childNum\":1}},{\"id\":\"420000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@AB‚\"],[\"@@lskt\"],[\"@@¾«}{ra®pîÃ\\\\\\\\™›{øCŠËyyB±„b\\\\\\\\›ò˜Ý˜jK›‡L ]ĎĽÌ’JyÚCƈćÎT´Å´pb©È‘dFin~BCo°BĎĚømvŒ®E^vǾ½Ĝ²Ro‚bÜeNŽ„^ĺ£R†¬lĶ÷YoĖ¥Ě¾|sOr°jY`~I”¾®I†{GqpCgyl{‡£œÍƒÍyPL“¡ƒ¡¸kW‡xYlÙ抚ŁĢzœ¾žV´W¶ùŸo¾ZHxjwfx„GNÁ•³Xéæl¶‰EièIH‰ u’jÌQ~v|sv¶Ôi|ú¢Fh˜Qsğ¦ƒSiŠBg™ÐE^ÁÐ{–čnOÂȞUÎóĔ†ÊēIJ}Z³½Mŧïeyp·uk³DsѨŸL“¶_œÅuèw»—€¡WqÜ]\\\\\\\\‘Ò§tƗcÕ¸ÕFÏǝĉăxŻČƟO‡ƒKÉġÿ×wg”÷IÅzCg†]m«ªGeçÃTC’«[‰t§{loWeC@ps_Bp‘­r‘„f_``Z|ei¡—oċMqow€¹DƝӛDYpûs•–‹Ykıǃ}s¥ç³[§ŸcYŠ§HK„«Qy‰]¢“wwö€¸ïx¼ņ¾Xv®ÇÀµRĠЋžHMž±cÏd„ƒǍũȅȷ±DSyúĝ£ŤĀàtÖÿï[îb\\\\\\\\}pĭÉI±Ñy…¿³x¯N‰o‰|¹H™ÏÛm‹júË~Tš•u˜ęjCöAwě¬R’đl¯ Ñb­‰ŇT†Ŀ_[Œ‘IčĄʿnM¦ğ\\\\\\\\É[T·™k¹œ©oĕ@A¾w•ya¥Y\\\\\\\\¥Âaz¯ãÁ¡k¥ne£Ûw†E©Êō¶˓uoj_Uƒ¡cF¹­[Wv“P©w—huÕyBF“ƒ`R‹qJUw\\\\\\\\i¡{jŸŸEPïÿ½fć…QÑÀQ{ž‚°‡fLԁ~wXg—ītêݾ–ĺ‘Hdˆ³fJd]‹HJ²…E€ƒoU¥†HhwQsƐ»Xmg±çve›]Dm͂PˆoCc¾‹_h”–høYrŊU¶eD°Č_N~øĹĚ·`z’]Äþp¼…äÌQŒv\\\\\\\\rCŒé¾TnkžŐڀÜa‡“¼ÝƆĢ¶Ûo…d…ĔňТJq’Pb ¾|JŒ¾fXŠƐîĨ_Z¯À}úƲ‹N_ĒĊ^„‘ĈaŐyp»CÇĕKŠšñL³ŠġMŒ²wrIÒŭxjb[œžn«øœ˜—æˆàƒ ^²­h¯Ú€ŐªÞ¸€Y²ĒVø}Ā^İ™´‚LŠÚm„¥ÀJÞ{JVŒųÞŃx×sxxƈē ģMř–ÚðòIf–Ċ“Œ\\\\\\\\Ʈ±ŒdʧĘD†vČ_Àæ~DŒċ´A®µ†¨ØLV¦êHÒ¤\"]],\"encodeOffsets\":[[[113712,34000]],[[115612,30507]],[[113649,34054]]]},\"properties\":{\"cp\":[114.298572,30.584355],\"name\":\"湖北\",\"childNum\":3}},{\"id\":\"430000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@—n„FTs\"],[\"@@ßÅÆችÔXr—†CO™“…ËR‘ïÿĩ­TooQyšÓ[‹ŅBE¬–ÎÓXa„į§Ã¸G °ITxp‰úxÚij¥Ïš–Ģ¾ŠedžÄ©ĸG…œàGh‚€M¤–Â_U}Ċ}¢pczfŠþg¤€”ÇòAV‘‹M\"],[\"@@©K—ƒA·³CQ±Á«³BUŠƑ¹AŠtćOw™D]ŒJiØSm¯b£‘ylƒ›X…HËѱH•«–‘C^õľA–Å§¤É¥„ïyuǙuA¢^{ÌC´­¦ŷJ£^[†“ª¿‡ĕ~•Ƈ…•N… skóā‡¹¿€ï]ă~÷O§­@—Vm¡‹Qđ¦¢Ĥ{ºjԏŽŒª¥nf´•~ÕoŸž×Ûą‹MąıuZœmZcÒ IJĪ²SÊDŽŶ¨ƚƒ’CÖŎªQؼrŭŽ­«}NÏürʬŒmjr€@ĘrTW ­SsdHzƓ^ÇÂyUi¯DÅYlŹu{hTœ}mĉ–¹¥ě‰Dÿë©ıÓ[Oº£ž“¥ót€ł¹MՄžƪƒ`Pš…Di–ÛUŠ¾Å‌ìˆU’ñB“È£ýhe‰dy¡oċ€`pfmjP~‚kZa…ZsÐd°wj§ƒ@€Ĵ®w~^‚kÀÅKvNmX\\\\\\\\¨a“”сqvíó¿F„¤¡@ũÑVw}S@j}¾«pĂr–ªg àÀ²NJ¶¶Dô…K‚|^ª†Ž°LX¾ŴäPĪ±œ£EXd›”^¶›IJÞܓ~‘u¸ǔ˜Ž›MRhsR…e†`ÄofIÔ\\\\\\\\Ø  i”ćymnú¨cj ¢»–GČìƊÿШXeĈĀ¾Oð Fi ¢|[jVxrIQŒ„_E”zAN¦zLU`œcªx”OTu RLÄ¢dV„i`p˔vŎµªÉžF~ƒØ€d¢ºgİàw¸Áb[¦Zb¦–z½xBĖ@ªpº›šlS¸Ö\\\\\\\\Ĕ[N¥ˀmĎă’J\\\\\\\\‹ŀ`€…ňSڊĖÁĐiO“Ĝ«BxDõĚiv—ž–S™Ì}iùŒžÜnšÐºGŠ{Šp°M´w†ÀÒzJ²ò¨ oTçüöoÛÿñŽőФ‚ùTz²CȆȸǎŪƒƑÐc°dPÎŸğ˶[Ƚu¯½WM¡­Éž“’B·rížnZŸÒ `‡¨GA¾\\\\\\\\pē˜XhÆRC­üWGġu…T靧Ŏѝ©ò³I±³}_‘‹EÃħg®ęisÁPDmÅ{‰b[Rşs·€kPŸŽƥƒóRo”O‹ŸVŸ~]{g\\\\\\\\“êYƪ¦kÝbiċƵŠGZ»Ěõ…ó·³vŝž£ø@pyö_‹ëŽIkѵ‡bcѧy…×dY؎ªiþž¨ƒ[]f]Ņ©C}ÁN‡»hĻħƏ’ĩ\"]],\"encodeOffsets\":[[[115640,30489]],[[112543,27312]],[[116690,26230]]]},\"properties\":{\"cp\":[112.982279,28.19409],\"name\":\"湖南\",\"childNum\":3}},{\"id\":\"440000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@QdˆAua\"],[\"@@ƒlxDLo\"],[\"@@sbhNLo\"],[\"@@Ă āŸ\"],[\"@@WltO[[\"],[\"@@Krœ]S\"],[\"@@e„„I]y\"],[\"@@I|„Mym\"],[\"@@ƒÛ³LSŒž¼Y\"],[\"@@nvºB–ëui©`¾\"],[\"@@zdšÛ›Jw®\"],[\"@@†°…¯\"],[\"@@a yAª¸ËJIx،@€ĀHAmßV¡o•fu•o\"],[\"@@šs‰ŗÃÔėAƁ›ZšÄ ~°ČP‚‹äh\"],[\"@@‹¶Ý’Ì‚vmĞh­ı‡Q\"],[\"@@HœŠdSjĒ¢D}war…“u«ZqadYM\"],[\"@@elŒ\\\\\\\\LqqU\"],[\"@@~rMo\\\\\\\\\"],[\"@@f„^ƒC\"],[\"@@øPªoj÷ÍÝħXČx”°Q¨ıXNv\"],[\"@@gÇƳˆŽˆ”oˆŠˆ[~tly\"],[\"@@E–ÆC¿‘\"],[\"@@OŽP\"],[\"@@w‹†đóg‰™ĝ—[³‹¡VÙæÅöM̳¹pÁaËýý©D©Ü“JŹƕģGą¤{Ùū…ǘO²«BƱéA—Ò‰ĥ‡¡«BhlmtÃPµyU¯uc“d·w_bŝcīímGOŽ|KP’ȏ‡ŹãŝIŕŭŕ@Óoo¿ē‹±ß}Ž…ŭ‚ŸIJWÈCőâUâǙI›ğʼn©I›ijEׅÁ”³Aó›wXJþ±ÌŒÜӔĨ£L]ĈÙƺZǾĆĖMĸĤfŒÎĵl•ŨnȈ‘ĐtF”Š–FĤ–‚êk¶œ^k°f¶gŠŽœ}®Fa˜f`vXŲxl˜„¦–ÔÁ²¬ÐŸ¦pqÊ̲ˆi€XŸØRDÎ}†Ä@ZĠ’s„x®AR~®ETtĄZ†–ƈfŠŠHâÒÐA†µ\\\\\\\\S¸„^wĖkRzŠalŽŜ|E¨ÈNĀňZTŒ’pBh£\\\\\\\\ŒĎƀuXĖtKL–¶G|Ž»ĺEļĞ~ÜĢÛĊrˆO˜Ùîvd]nˆ¬VœÊĜ°R֟pM††–‚ƂªFbwžEÀˆ˜©Œž\\\\\\\\…¤]ŸI®¥D³|ˎ]CöAŤ¦…æ’´¥¸Lv¼€•¢ĽBaô–F~—š®²GÌҐEY„„œzk¤’°ahlV՞I^‹šCxĈPŽsB‰ƒºV‰¸@¾ªR²ĨN]´_eavSi‡vc•}p}Đ¼ƌkJœÚe thœ†_¸ ºx±ò_xN›Ë‹²‘@ƒă¡ßH©Ùñ}wkNÕ¹ÇO½¿£ĕ]ly_WìIžÇª`ŠuTÅxYĒÖ¼k֞’µ‚MžjJÚwn\\\\\\\\h‘œĒv]îh|’È›Ƅøègž¸Ķß ĉĈWb¹ƀdéʌNTtP[ŠöSvrCZžžaGuœbo´ŖÒÇА~¡zCI…özx¢„Pn‹•‰Èñ @ŒĥÒ¦†]ƞŠV}³ăĔñiiÄÓVépKG½Ä‘ÓávYo–C·sit‹iaÀy„ŧΡÈYDÑům}‰ý|m[węõĉZÅxUO}÷N¹³ĉo_qtă“qwµŁYلǝŕ¹tïÛUïmRCº…ˆĭ|µ›ÕÊK™½R‘ē ó]‘–GªęAx–»HO£|ām‡¡diď×YïYWªʼnOeÚtĐ«zđ¹T…ā‡úE™á²\\\\\\\\‹ķÍ}jYàÙÆſ¿Çdğ·ùTßÇţʄ¡XgWÀLJğ·¿ÃˆOj YÇ÷Qě‹i\"]],\"encodeOffsets\":[[[117381,22988]],[[116552,22934]],[[116790,22617]],[[116973,22545]],[[116444,22536]],[[116931,22515]],[[116496,22490]],[[116453,22449]],[[113301,21439]],[[118726,21604]],[[118709,21486]],[[113210,20816]],[[115482,22082]],[[113171,21585]],[[113199,21590]],[[115232,22102]],[[115739,22373]],[[115134,22184]],[[113056,21175]],[[119573,21271]],[[119957,24020]],[[115859,22356]],[[116561,22649]],[[116285,22746]]]},\"properties\":{\"cp\":[113.280637,23.125178],\"name\":\"广东\",\"childNum\":24}},{\"id\":\"450000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@H– TQ§•A\"],[\"@@ĨʪƒLƒƊDÎĹĐCǦė¸zÚGn£¾›rªŀÜt¬@֛ڈSx~øOŒ˜ŶÐÂæȠ\\\\\\\\„ÈÜObĖw^oބLf¬°bI lTØB̈F£Ć¹gñĤaY“t¿¤VSñœK¸¤nM†¼‚JE±„½¸šŠño‹ÜCƆæĪ^ŠĚQÖ¦^‡ˆˆf´Q†üÜʝz¯šlzUĺš@쇀p¶n]sxtx¶@„~ÒĂJb©gk‚{°‚~c°`ԙ¬rV\\\\\\\\“la¼¤ôá`¯¹LC†ÆbŒxEræO‚v[H­˜„[~|aB£ÖsºdAĐzNÂðsŽÞƔ…Ĥªbƒ–ab`ho¡³F«èVloŽ¤™ÔRzpp®SŽĪº¨ÖƒºN…ij„d`’a”¦¤F³ºDÎńĀìŠCžĜº¦Ċ•~nS›|gźvZkCÆj°zVÈÁƔ]LÊFZg…čP­kini«‹qǀcz͔Y®¬Ů»qR×ō©DՄ‘§ƙǃŵTÉĩ±ŸıdÑnYY›IJvNĆƌØÜ Öp–}e³¦m‹©iÓ|¹Ÿħņ›|ª¦QF¢Â¬ʖovg¿em‡^ucà÷gՎuŒíÙćĝ}FĻ¼Ĺ{µHK•sLSđƃr‹č¤[Ag‘oS‹ŇYMÿ§Ç{Fśbky‰lQxĕƒ]T·¶[B…ÑÏGáşşƇe€…•ăYSs­FQ}­Bƒw‘tYğÃ@~…C̀Q ×W‡j˱rÉ¥oÏ ±«ÓÂ¥•ƒ€k—ŽwWűŒmcih³K›~‰µh¯e]lµ›él•Eģ‰•E“ďs‡’mǖŧē`ãògK_ÛsUʝ“ćğ¶hŒöŒO¤Ǜn³Žc‘`¡y‹¦C‘ez€YŠwa™–‘[ďĵűMę§]X˜Î_‚훘Û]é’ÛUćİÕBƣ±…dƒy¹T^džûÅÑŦ·‡PĻþÙ`K€¦˜…¢ÍeœĥR¿Œ³£[~Œäu¼dl‰t‚†W¸oRM¢ď\\\\\\\\zœ}Æzdvň–{ÎXF¶°Â_„ÒÂÏL©Ö•TmuŸ¼ãl‰›īkiqéfA„·Êµ\\\\\\\\őDc¥ÝF“y›Ôć˜c€űH_hL܋êĺШc}rn`½„Ì@¸¶ªVLŒŠhŒ‹\\\\\\\\•Ţĺk~ŽĠið°|gŒtTĭĸ^x‘vK˜VGréAé‘bUu›MJ‰VÃO¡…qĂXËS‰ģãlýàŸ_ju‡YÛÒB†œG^˜é֊¶§ŽƒEG”ÅzěƒƯ¤Ek‡N[kdåucé¬dnYpAyČ{`]þ¯T’bÜÈk‚¡Ġ•vŒàh„ÂƄ¢J\"]],\"encodeOffsets\":[[[111707,21520]],[[107619,25527]]]},\"properties\":{\"cp\":[108.320004,22.82402],\"name\":\"广西\",\"childNum\":2}},{\"id\":\"460000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[\"@@š¦Ŝil¢”XƦ‘ƞò–ïè§ŞCêɕrŧůÇąĻõ™·ĉ³œ̅kÇm@ċȧƒŧĥ‰Ľʉ­ƅſ“ȓÒ˦ŝE}ºƑ[ÍĜȋ gÎfǐÏĤ¨êƺ\\\\\\\\Ɔ¸ĠĎvʄȀœÐ¾jNðĀÒRŒšZdž™zÐŘΰH¨Ƣb²_Ġ \"],\"encodeOffsets\":[[112750,20508]]},\"properties\":{\"cp\":[110.33119,20.031971],\"name\":\"海南\",\"childNum\":1}},{\"id\":\"510000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@LqKr\"],[\"@@Š[ĻéV£ž_ţġñpG •réÏ·~ąSfy×͂·ºſƽiÍıƣıĻmHH}siaX@iÇ°ÁÃ×t«ƒ­Tƒ¤J–JJŒyJ•ÈŠ`Ohߦ¡uËhIyCjmÿw…ZG……Ti‹SˆsO‰žB²ŸfNmsPaˆ{M{ŠõE‘^Hj}gYpaeuž¯‘oáwHjÁ½M¡pM“–uå‡mni{fk”\\\\\\\\oƒÎqCw†EZ¼K›ĝŠƒAy{m÷L‡wO×SimRI¯rK™õBS«sFe‡]fµ¢óY_ÆPRcue°Cbo׌bd£ŌIHgtrnyPt¦foaXďx›lBowz‹_{ÊéWiêE„GhܸºuFĈIxf®Ž•Y½ĀǙ]¤EyŸF²ċ’w¸¿@g¢§RGv»–áŸW`ÃĵJwi]t¥wO­½a[׈]`Ãi­üL€¦LabbTÀå’c}Íh™Æhˆ‹®BH€î|Ék­¤S†y£„ia©taį·Ɖ`ō¥Uh“O…ƒĝLk}©Fos‰´›Jm„µlŁu—…ø–nÑJWΪ–YÀïAetTžŅ‚ӍG™Ë«bo‰{ıwodƟ½ƒžOġܑµxàNÖ¾P²§HKv¾–]|•B‡ÆåoZ`¡Ø`ÀmºĠ~ÌЧnDž¿¤]wğ@sƒ‰rğu‰~‘Io”[é±¹ ¿žſđӉ@q‹gˆ¹zƱřaí°KtǤV»Ã[ĩǭƑ^ÇÓ@ỗs›Zϕ‹œÅĭ€Ƌ•ěpwDóÖሯneQˌq·•GCœýS]xŸ·ý‹q³•O՜Œ¶Qzßti{ř‰áÍÇWŝŭñzÇW‹pç¿JŒ™‚Xœĩè½cŒF–ÂLiVjx}\\\\\\\\N†ŇĖ¥Ge–“JA¼ÄHfÈu~¸Æ«dE³ÉMA|b˜Ò…˜ćhG¬CM‚õŠ„ƤąAvƒüV€éŀ‰_V̳ĐwQj´·ZeÈÁ¨X´Æ¡Qu·»Ÿ“˜ÕZ³ġqDo‰y`L¬gdp°şŠp¦ėìÅĮZŽ°Iä”h‚‘ˆzŠĵœf²å ›ĚрKp‹IN|‹„Ñz]ń……·FU×é»R³™MƒÉ»GM«€ki€™ér™}Ã`¹ăÞmȝnÁîRǀ³ĜoİzŔwǶVÚ£À]ɜ»ĆlƂ²Ġ…þTº·àUȞÏʦ¶†I’«dĽĢdĬ¿–»Ĕ׊h\\\\\\\\c¬†ä²GêëĤł¥ÀǿżÃÆMº}BÕĢyFVvw–ˆxBèĻĒ©Ĉ“tCĢɽŠȣ¦āæ·HĽî“ôNԓ~^¤Ɗœu„œ^s¼{TA¼ø°¢İªDè¾Ň¶ÝJ‘®Z´ğ~Sn|ªWÚ©òzPOȸ‚bð¢|‹øĞŠŒœŒQìÛÐ@Ğ™ǎRS¤Á§d…i“´ezÝúØã]Hq„kIŸþËQǦÃsǤ[E¬ÉŪÍxXƒ·ÖƁİlƞ¹ª¹|XÊwn‘ÆƄmÀêErĒtD®ċæcQƒ”E®³^ĭ¥©l}äQto˜ŖÜqƎkµ–„ªÔĻĴ¡@Ċ°B²Èw^^RsºTĀ£ŚæœQP‘JvÄz„^Đ¹Æ¯fLà´GC²‘dt˜­ĀRt¼¤ĦOðğfÔðDŨŁĞƘïžPȆ®âbMüÀXZ ¸£@Ś›»»QÉ­™]d“sÖ×_͖_ÌêŮPrĔĐÕGĂeZÜîĘqBhtO ¤tE[h|Y‹Ô‚ZśÎs´xº±UŒ’ñˆt|O’ĩĠºNbgþŠJy^dÂY Į„]Řz¦gC‚³€R`ĀŠz’¢AjŒ¸CL„¤RÆ»@­Ŏk\\\\\\\\Ç´£YW}z@Z}‰Ã¶“oû¶]´^N‡Ò}èN‚ª–P˜Íy¹`S°´†ATe€VamdUĐwʄvĮÕ\\\\\\\\ƒu‹Æŗ¨Yp¹àZÂm™Wh{á„}WØǍ•Éüw™ga§áCNęÎ[ĀÕĪgÖɪX˜øx¬½Ů¦¦[€—„NΆL€ÜUÖ´òrÙŠxR^–†J˜k„ijnDX{Uƒ~ET{ļº¦PZc”jF²Ė@Žp˜g€ˆ¨“B{ƒu¨ŦyhoÚD®¯¢˜ WòàFΤ¨GDäz¦kŮPœġq˚¥À]€Ÿ˜eŽâÚ´ªKxī„Pˆ—Ö|æ[xäJÞĥ‚s’NÖ½ž€I†¬nĨY´®Ð—ƐŠ€mD™ŝuäđđEb…e’e_™v¡}ìęNJē}q”É埁T¯µRs¡M@}ůa†a­¯wvƉåZwž\\\\\\\\Z{åû^›\"]],\"encodeOffsets\":[[[108815,30935]],[[110617,31811]]]},\"properties\":{\"cp\":[104.065735,30.659462],\"name\":\"四川\",\"childNum\":2}},{\"id\":\"520000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@†G\\\\\\\\†lY£‘in\"],[\"@@q‚|ˆ‚mc¯tχVSÎ\"],[\"@@hÑ£Is‡NgßH†›HªķÃh_¹ƒ¡ĝħń¦uيùŽgS¯JHŸ|sÝÅtÁïyMDč»eÕtA¤{b\\\\\\\\}—ƒG®u\\\\\\\\åPFq‹wÅaD…žK°ºâ_£ùbµ”mÁ‹ÛœĹM[q|hlaªāI}тƒµ@swtwm^oµˆD鼊yV™ky°ÉžûÛR…³‚‡eˆ‡¥]RՋěħ[ƅåÛDpŒ”J„iV™™‰ÂF²I…»mN·£›LbÒYb—WsÀbŽ™pki™TZĄă¶HŒq`……ĥ_JŸ¯ae«ƒKpÝx]aĕÛPƒÇȟ[ÁåŵÏő—÷Pw}‡TœÙ@Õs«ĿÛq©½œm¤ÙH·yǥĘĉBµĨÕnđ]K„©„œá‹ŸG纍§Õßg‡ǗĦTèƤƺ{¶ÉHÎd¾ŚÊ·OÐjXWrãLyzÉAL¾ę¢bĶėy_qMĔąro¼hĊžw¶øV¤w”²Ĉ]ʚKx|`ź¦ÂÈdr„cȁbe¸›`I¼čTF´¼Óýȃr¹ÍJ©k_șl³´_pН`oÒhŽ¶pa‚^ÓĔ}D»^Xyœ`d˜[Kv…JPhèhCrĂĚÂ^Êƌ wˆZL­Ġ£šÁbrzOIl’MM”ĪŐžËr×ÎeŦŽtw|Œ¢mKjSǘňĂStÎŦEtqFT†¾†E쬬ôxÌO¢Ÿ KŠ³ŀºäY†„”PVgŎ¦Ŋm޼VZwVlŒ„z¤…ž£Tl®ctĽÚó{G­A‡ŒÇgeš~Αd¿æaSba¥KKûj®_ć^\\\\\\\\ؾbP®¦x^sxjĶI_Ä X‚⼕Hu¨Qh¡À@Ëô}Ž±žGNìĎlT¸ˆ…`V~R°tbÕĊ`¸úÛtπFDu€[ƒMfqGH·¥yA‰ztMFe|R‚_Gk†ChZeÚ°to˜v`x‹b„ŒDnÐ{E}šZ˜è€x—†NEފREn˜[Pv@{~rĆAB§‚EO¿|UZ~ì„Uf¨J²ĂÝƀ‚sª–B`„s¶œfvö¦ŠÕ~dÔq¨¸º»uù[[§´sb¤¢zþFœ¢Æ…Àhˆ™ÂˆW\\\\\\\\ıŽËI݊o±ĭŠ£þˆÊs}¡R]ŒěƒD‚g´VG¢‚j±®è†ºÃmpU[Á›‘Œëº°r›ÜbNu¸}Žº¼‡`ni”ºÔXĄ¤¼Ôdaµ€Á_À…†ftQQgœR—‘·Ǔ’v”}Ýלĵ]µœ“Wc¤F²›OĩųãW½¯K‚©…]€{†LóµCIµ±Mß¿hŸ•©āq¬o‚½ž~@i~TUxŪÒ¢@ƒ£ÀEîôruń‚”“‚b[§nWuMÆLl¿]x}ij­€½\"]],\"encodeOffsets\":[[[112158,27383]],[[112105,27474]],[[112095,27476]]]},\"properties\":{\"cp\":[106.713478,26.578343],\"name\":\"贵州\",\"childNum\":3}},{\"id\":\"530000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[\"@@[„ùx½}ÑRH‘YīĺûsÍn‘iEoã½Ya²ė{c¬ĝg•ĂsA•ØÅwď‚õzFjw}—«Dx¿}UũlŸê™@•HÅ­F‰¨ÇoJ´Ónũuą¡Ã¢pÒŌ“Ø TF²‚xa²ËX€‚cʋlHîAßËŁkŻƑŷÉ©h™W­æßU‡“Ës¡¦}•teèƶStǀÇ}Fd£j‹ĈZĆÆ‹¤T‚č\\\\\\\\Dƒ}O÷š£Uˆ§~ŃG™‚åŃDĝ¸œTsd¶¶Bªš¤u¢ŌĎo~t¾ÍŶÒtD¦Ú„iôö‰€z›ØX²ghįh½Û±¯€ÿm·zR¦Ɵ`ªŊÃh¢rOԍ´£Ym¼èêf¯ŪĽn„†cÚbŒw\\\\\\\\zlvWžªâˆ ¦g–mĿBş£¢ƹřbĥkǫßeeZkÙIKueT»sVesb‘aĕ  ¶®dNœĄÄpªyŽ¼—„³BE˜®l‡ŽGœŭCœǶwêżĔÂe„pÍÀQƞpC„–¼ŲÈ­AÎô¶R„ä’Q^Øu¬°š_Èôc´¹ò¨P΢hlϦ´Ħ“Æ´sâDŽŲPnÊD^¯°’Upv†}®BP̪–jǬx–Söwlfòªv€qĸ|`H€­viļ€ndĜ­Ćhň•‚em·FyށqóžSį¯‘³X_ĞçêtryvL¤§z„¦c¦¥jnŞk˜ˆlD¤øz½ĜàžĂŧMÅ|áƆàÊcðÂF܎‚áŢ¥\\\\\\\\\\\\\\\\º™İøÒÐJĴ‡„îD¦zK²ǏÎEh~’CD­hMn^ÌöÄ©ČZÀžaü„fɭyœpį´ěFűk]Ôě¢qlÅĆÙa¶~Äqššê€ljN¬¼H„ÊšNQ´ê¼VظE††^ŃÒyŒƒM{ŒJLoÒœęæŸe±Ķ›y‰’‡gã“¯JYÆĭĘëo¥Š‰o¯hcK«z_pŠrC´ĢÖY”—¼ v¸¢RŽÅW³Â§fǸYi³xR´ďUˊ`êĿU„û€uĆBƒƣö‰N€DH«Ĉg†——Ñ‚aB{ÊNF´¬c·Åv}eÇÃGB»”If•¦HňĕM…~[iwjUÁKE•Ž‹¾dĪçW›šI‹èÀŒoÈXòyŞŮÈXâÎŚŠj|àsRy‹µÖ›–Pr´þŒ ¸^wþTDŔ–Hr¸‹žRÌmf‡żÕâCôox–ĜƌÆĮŒ›Ð–œY˜tâŦÔ@]ÈǮƒ\\\\\\\\Ī¼Ä£UsȯLbîƲŚºyh‡rŒŠ@ĒԝƀŸÀ²º\\\\\\\\êp“’JŠ}ĠvŠqt„Ġ@^xÀ£È†¨mËÏğ}n¹_¿¢×Y_æpˆÅ–A^{½•Lu¨GO±Õ½ßM¶w’ÁĢۂP‚›Ƣ¼pcIJxŠ|ap̬HšÐŒŊSfsðBZ¿©“XÏÒK•k†÷Eû¿‰S…rEFsÕūk”óVǥʼniTL‚¡n{‹uxţÏh™ôŝ¬ğōN“‘NJkyPaq™Âğ¤K®‡YŸxÉƋÁ]āęDqçgOg†ILu—\\\\\\\\_gz—]W¼ž~CÔē]bµogpў_oď`´³Țkl`IªºÎȄqÔþž»E³ĎSJ»œ_f·‚adÇqƒÇc¥Á_Źw{™L^ɱćx“U£µ÷xgĉp»ĆqNē`rĘzaĵĚ¡K½ÊBzyäKXqiWPÏɸ½řÍcÊG|µƕƣG˛÷Ÿk°_^ý|_zċBZocmø¯hhcæ\\\\\\\\lˆMFlư£Ĝ„ÆyH“„F¨‰µêÕ]—›HA…àӄ^it `þßäkŠĤÎT~Wlÿ¨„ÔPzUC–NVv [jâôDôď[}ž‰z¿–msSh‹¯{jïğl}šĹ[–őŒ‰gK‹©U·µË@¾ƒm_~q¡f¹…ÅË^»‘f³ø}Q•„¡Ö˳gͱ^ǁ…\\\\\\\\ëÃA_—¿bW›Ï[¶ƛ鏝£F{īZgm@|kHǭƁć¦UĔťƒ×ë}ǝƒeďºȡȘÏíBə£āĘPªij¶“ʼnÿ‡y©n‰ď£G¹¡I›Š±LÉĺÑdĉ܇W¥˜‰}g˜Á†{aqÃ¥aŠıęÏZ—ï`\"],\"encodeOffsets\":[[104636,22969]]},\"properties\":{\"cp\":[102.712251,25.040609],\"name\":\"云南\",\"childNum\":1}},{\"id\":\"540000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[\"@@hžľxŽŖ‰xƒÒVŽ†ºÅâAĪÝȆµę¯Ňa±r_w~uSÕň‘qOj]ɄQ…£Z……UDûoY’»©M[‹L¼qãË{V͕çWViŽ]ë©Ä÷àyƛh›ÚU°ŒŒa”d„cQƒ~Mx¥™cc¡ÙaSyF—ցk­ŒuRýq¿Ôµ•QĽ³aG{¿FµëªéĜÿª@¬·–K‰·àariĕĀ«V»Ŷ™Ĵū˜gèLǴŇƶaf‹tŒèBŚ£^Šâ†ǐÝ®–šM¦ÁǞÿ¬LhŸŽJ¾óƾƺcxw‹f]Y…´ƒ¦|œQLn°aœdĊ…œ\\\\\\\\¨o’œǀÍŎœ´ĩĀd`tÊQŞŕ|‚¨C^©œĈ¦„¦ÎJĊ{ŽëĎjª²rЉšl`¼Ą[t|¦St辉PŒÜK¸€d˜Ƅı]s¤—î_v¹ÎVòŦj˜£Əsc—¬_Ğ´|Ł˜¦AvŽ¦w`ăaÝaa­¢e¤ı²©ªSªšÈMĄwžÉØŔì@T‘¤—Ę™\\\\\\\\õª@”þo´­xA s”ÂtŎKzó´ÇĊµ¢rž^nĊ­Æ¬×üGž¢‚³ {âĊ]š™G‚~bÀgVjzlhǶf€žOšfdŠ‰ªB]pj„•TO–tĊ‚n¤}®¦ƒČ¥d¢¼»ddš”Y¼Žt—¢eȤJ¤}Ǿ¡°§¤AГlc@ĝ”sªćļđAç‡wx•UuzEÖġ~AN¹ÄÅȀŻ¦¿ģŁéì±H…ãd«g[؉¼ēÀ•cīľġ¬cJ‘µ…ÐʥVȝ¸ßS¹†ý±ğkƁ¼ą^ɛ¤Ûÿ‰b[}¬ōõÃ]ËNm®g@•Bg}ÍF±ǐyL¥íCˆƒIij€Ï÷њį[¹¦[⚍EÛïÁÉdƅß{âNÆāŨߝ¾ě÷yC£‡k­´ÓH@¹†TZ¥¢įƒ·ÌAЧ®—Zc…v½ŸZ­¹|ŕWZqgW“|ieZÅYVӁqdq•bc²R@†c‡¥Rã»Ge†ŸeƃīQ•}J[ғK…¬Ə|o’ėjġĠÑN¡ð¯EBčnwôɍėªƒ²•CλŹġǝʅįĭạ̃ūȹ]ΓͧgšsgȽóϧµǛ†ęgſ¶ҍć`ĘąŌJޚä¤rÅň¥ÖÁUětęuůÞiĊÄÀ\\\\\\\\Æs¦ÓRb|Â^řÌkÄŷ¶½÷‡f±iMݑ›‰@ĥ°G¬ÃM¥n£Øą‚ğ¯ß”§aëbéüÑOčœk£{\\\\\\\\‘eµª×M‘šÉfm«Ƒ{Å׃Gŏǩãy³©WÑăû‚··‘Q—òı}¯ã‰I•éÕÂZ¨īès¶ZÈsŽæĔTŘvŽgÌsN@îá¾ó@‰˜ÙwU±ÉT廣TđŸWxq¹Zo‘b‹s[׌¯cĩv‡Œėŧ³BM|¹k‰ªħ—¥TzNYnݍßpęrñĠĉRS~½ŠěVVŠµ‚õ‡«ŒM££µB•ĉ¥áºae~³AuĐh`Ü³ç@BۘïĿa©|z²Ý¼D”£àč²‹ŸƒIƒû›I ā€óK¥}rÝ_Á´éMaň¨€~ªSĈ½Ž½KÙóĿeƃÆBŽ·¬ën×W|Uº}LJrƳ˜lŒµ`bÔ`QˆˆÐÓ@s¬ñIŒÍ@ûws¡åQÑßÁ`ŋĴ{Ī“T•ÚÅTSij‚‹Yo|Ç[ǾµMW¢ĭiÕØ¿@˜šMh…pÕ]j†éò¿OƇĆƇp€êĉâlØw–ěsˆǩ‚ĵ¸c…bU¹ř¨WavquSMzeo_^gsÏ·¥Ó@~¯¿RiīB™Š\\\\\\\\”qTGªÇĜçPoŠÿfñòą¦óQīÈáP•œābß{ƒZŗĸIæńhnszÁCËìñšÏ·ąĚÝUm®ó­L·ăU›Èíoù´Êj°ŁŤ_uµ^‘°Œìǖ@tĶĒ¡Æ‡M³Ģ«˜İĨÅ®ğ†RŽāð“ggheÆ¢z‚Ê©Ô\\\\\\\\°ÝĎz~ź¤Pn–MĪÖB£Ÿk™n鄧żćŠ˜ĆK„Ē°¼L¶è‰âz¨u¦¥LDĘz¬ýÎmĘd¾ß”Fz“hg²™Fy¦ĝ¤ċņbΛ@y‚Ąæm°NĮZRÖíŽJ²öLĸÒ¨Y®ƌÐV‰à˜tt_ڀÂyĠzž]Ţh€zĎ{†ĢX”ˆc|šÐqŽšfO¢¤ög‚ÌHNŽ„PKŖœŽ˜Uú´xx[xˆvĐCûĀŠìÖT¬¸^}Ìsòd´_Ž‡KgžLĴ…ÀBon|H@–Êx˜—¦BpŰˆŌ¿fµƌA¾zLjRxŠ¶F”œkĄźRzŀˆ~¶[”´Hnª–VƞuĒ­È¨ƎcƽÌm¸ÁÈM¦x͊ëÀxdžB’šú^´W†£–d„kɾĬpœw‚˂ØɦļĬIŚœÊ•n›Ŕa¸™~J°î”lɌxĤÊÈðhÌ®‚g˜T´øŽàCˆŽÀ^ªerrƘdž¢İP|Ė ŸWœªĦ^¶´ÂL„aT±üWƜ˜ǀRšŶUńšĖ[QhlLüA†‹Ü\\\\\\\\†qR›Ą©\"],\"encodeOffsets\":[[90849,37210]]},\"properties\":{\"cp\":[91.132212,29.660361],\"name\":\"西藏\",\"childNum\":1}},{\"id\":\"610000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[\"@@˜p¢—ȮµšûG™Ħ}Ħšðǚ¶òƄ€jɂz°{ºØkÈęâ¦jª‚Bg‚\\\\\\\\œċ°s¬Ž’]jžú ‚E”Ȍdž¬s„t‡”RˆÆdĠݎwܔ¸ôW¾ƮłÒ_{’Ìšû¼„jº¹¢GǪÒ¯ĘƒZ`ºŊƒecņąš~BÂgzpâēòYǠȰÌTΨÂWœ|fcŸă§uF—Œ@NŸ¢XLƒŠRMº[ğȣſï|¥J™kc`sʼnǷ’Y¹‹W@µ÷K…ãï³ÛIcñ·VȋڍÒķø©—þ¥ƒy‚ÓŸğęmWµÎumZyOŅƟĥÓ~sÑL¤µaŅY¦ocyZ{‰y c]{ŒTa©ƒ`U_Ěē£ωÊƍKù’K¶ȱÝƷ§{û»ÅÁȹÍéuij|¹cÑd‘ŠìUYƒŽO‘uF–ÕÈYvÁCqӃT•Ǣí§·S¹NgŠV¬ë÷Át‡°Dد’C´ʼnƒópģ}„ċcE˅FŸŸéGU¥×K…§­¶³B‹Č}C¿åċ`wġB·¤őcƭ²ő[Å^axwQO…ÿEËߌ•ĤNĔŸwƇˆÄŠńwĪ­Šo[„_KÓª³“ÙnK‰Çƒěœÿ]ď€ă_d©·©Ýŏ°Ù®g]±„Ÿ‡ß˜å›—¬÷m\\\\\\\\›iaǑkěX{¢|ZKlçhLt€Ňîŵ€œè[€É@ƉĄEœ‡tƇÏ˜³­ħZ«mJ…›×¾‘MtÝĦ£IwÄå\\\\\\\\Õ{‡˜ƒOwĬ©LÙ³ÙgBƕŀr̛ĢŭO¥lãyC§HÍ£ßEñŸX¡—­°ÙCgpťz‘ˆb`wI„vA|§”‡—hoĕ@E±“iYd¥OĻ¹S|}F@¾oAO²{tfžÜ—¢Fǂ҈W²°BĤh^Wx{@„¬‚­F¸¡„ķn£P|ŸªĴ@^ĠĈæb–Ôc¶l˜Yi…–^Mi˜cĎ°Â[ä€vï¶gv@À“Ĭ·lJ¸sn|¼u~a]’ÆÈtŌºJp’ƒþ£KKf~Š¦UbyäIšĺãn‡Ô¿^­žŵMT–hĠܤko¼Ŏìąǜh`[tŒRd²IJ_œXPrɲ‰l‘‚XžiL§àƒ–¹ŽH˜°Ȧqº®QC—bA†„ŌJ¸ĕÚ³ĺ§ `d¨YjžiZvRĺ±öVKkjGȊĐePОZmļKÀ€‚[ŠŽ`ösìh†ïÎoĬdtKÞ{¬èÒÒBŒÔpIJÇĬJŊ¦±J«ˆY§‹@·pH€µàåVKe›pW†ftsAÅqC·¬ko«pHÆuK@oŸHĆۄķhx“e‘n›S³àǍrqƶRbzy€¸ËАl›¼EºpĤ¼Œx¼½~Ğ’”à@†ÚüdK^ˆmÌSj\"],\"encodeOffsets\":[[110234,38774]]},\"properties\":{\"cp\":[108.948024,34.263161],\"name\":\"陕西\",\"childNum\":1}},{\"id\":\"620000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@VuUv\"],[\"@@ũ‹EĠtt~nkh`Q‰¦ÅÄÜdw˜Ab×ĠąJˆ¤DüègĺqBqœj°lI¡ĨÒ¤úSHbš‡ŠjΑBŠ°aZˆ¢KJŽ’O[|A£žDx}Nì•HUnrk„ kp€¼Y kMJn[aG‚áÚÏ[½rc†}aQxOgsPMnUs‡nc‹Z…ž–sKúvA›t„Þġ’£®ĀYKdnFwš¢JE°”Latf`¼h¬we|€Æ‡šbj}GA€·~WŽ”—`†¢MC¤tL©IJ°qdf”O‚“bÞĬ¹ttu`^ZúE`Œ[@„Æsîz®¡’C„ƳƜG²“R‘¢R’m”fŽwĸg܃‚ą G@pzJM½mŠhVy¸uÈÔO±¨{LfæU¶ßGĂq\\\\\\\\ª¬‡²I‚¥IʼnÈīoı‹ÓÑAçÑ|«LÝcspīðÍg…të_õ‰\\\\\\\\ĉñLYnĝg’ŸRǡÁiHLlõUĹ²uQjYi§Z_c¨Ÿ´ĹĖÙ·ŋI…ƒaBD˜­R¹ȥr—¯G•ºß„K¨jWk’ɱŠOq›Wij\\\\\\\\a­‹Q\\\\\\\\sg_ĆǛōëp»£lğۀgS•ŶN®À]ˆÓäm™ĹãJaz¥V}‰Le¤L„ýo‘¹IsŋÅÇ^‘Žbz…³tmEÁ´aŠ¹cčecÇN•ĊãÁ\\\\\\\\č¯—dNj•]j†—ZµkÓda•ćå]ğij@ ©O{¤ĸm¢ƒE·®ƒ«|@Xwg]Aģ±¯‡XǁÑdzªc›wQÚŝñsÕ³ÛV_ýƒ˜¥\\\\\\\\ů¥©¾÷w—Ž©WÕÊĩhÿÖÁRo¸V¬âDb¨šhûx–Ê×nj~Zâƒg|šXÁnßYoº§ZÅŘvŒ[„ĭÖʃuďxcVbnUSf…B¯³_Tzº—ΕO©çMÑ~Mˆ³]µ^püµ”ŠÄY~y@X~¤Z³€[Èōl@®Å¼£QKƒ·Di‹¡By‘ÿ‰Q_´D¥hŗyƒ^ŸĭÁZ]cIzý‰ah¹MĪğP‘s{ò‡‹‘²Vw¹t³Ŝˁ[ŽÑ}X\\\\\\\\gsFŸ£sPAgěp×ëfYHāďÖqēŭOÏë“dLü•\\\\\\\\iŒ”t^c®šRʺ¶—¢H°mˆ‘rYŸ£BŸ¹čIoľu¶uI]vģSQ{ƒUŻ”Å}QÂ|̋°ƅ¤ĩŪU ęĄžÌZҞ\\\\\\\\v˜²PĔ»ƢNHƒĂyAmƂwVmž`”]ȏb•”H`‰Ì¢²ILvĜ—H®¤Dlt_„¢JJÄämèÔDëþgºƫ™”aʎÌrêYi~ ÎݤNpÀA¾Ĕ¼b…ð÷’Žˆ‡®‚”üs”zMzÖĖQdȨý†v§Tè|ªH’þa¸|šÐ ƒwKĢx¦ivr^ÿ ¸l öæfƟĴ·PJv}n\\\\\\\\h¹¶v†·À|\\\\\\\\ƁĚN´Ĝ€çèÁz]ġ¤²¨QÒŨTIl‡ªťØ}¼˗ƦvÄùØE‹’«Fï˛Iq”ōŒTvāÜŏ‚íÛߜÛV—j³âwGăÂíNOŠˆŠPìyV³ʼnĖýZso§HіiYw[߆\\\\\\\\X¦¥c]ÔƩÜ·«j‡ÐqvÁ¦m^ċ±R™¦΋ƈťĚgÀ»IïĨʗƮŽ°Ɲ˜ĻþÍAƉſ±tÍEÕÞāNU͗¡\\\\\\\\ſčåÒʻĘm ƭÌŹöʥ’ëQ¤µ­ÇcƕªoIýˆ‰Iɐ_mkl³ă‰Ɠ¦j—¡Yz•Ňi–}Msßõ–īʋ —}ƒÁVmŸ_[n}eı­Uĥ¼‘ª•I{ΧDӜƻėoj‘qYhĹT©oūĶ£]ďxĩ‹ǑMĝ‰q`B´ƃ˺Ч—ç~™²ņj@”¥@đ´ί}ĥtPńǾV¬ufӃÉC‹tÓ̻‰…¹£G³€]ƖƾŎĪŪĘ̖¨ʈĢƂlɘ۪üºňUðǜȢƢż̌ȦǼ‚ĤŊɲĖ­Kq´ï¦—ºĒDzņɾªǀÞĈĂD†½ĄĎÌŗĞrôñnŽœN¼â¾ʄľԆ|DŽŽ֦ज़ȗlj̘̭ɺƅêgV̍ʆĠ·ÌĊv|ýĖÕWĊǎÞ´õ¼cÒÒBĢ͢UĜð͒s¨ňƃLĉÕÝ@ɛƯ÷¿Ľ­ĹeȏijëCȚDŲyê×Ŗyò¯ļcÂßY…tÁƤyAã˾J@ǝrý‹‰@¤…rz¸oP¹ɐÚyᐇHŸĀ[Jw…cVeȴϜ»ÈŽĖ}ƒŰŐèȭǢόĀƪÈŶë;Ñ̆ȤМľĮEŔ—ĹŊũ~ËUă{ŸĻƹɁύȩþĽvĽƓÉ@ē„ĽɲßǐƫʾǗĒpäWÐxnsÀ^ƆwW©¦cÅ¡Ji§vúF¶Ž¨c~c¼īŒeXǚ‹\\\\\\\\đ¾JŽwÀďksãA‹fÕ¦L}wa‚o”Z’‹D½†Ml«]eÒÅaɲáo½FõÛ]ĻÒ¡wYR£¢rvÓ®y®LF‹LzĈ„ôe]gx}•|KK}xklL]c¦£fRtív¦†PĤoH{tK\"]],\"encodeOffsets\":[[[108619,36299]],[[108589,36341]]]},\"properties\":{\"cp\":[103.823557,36.058039],\"name\":\"甘肃\",\"childNum\":2}},{\"id\":\"630000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@InJm\"],[\"@@CƒÆ½OŃĦsΰ~Ē³¦@@“Ņiš±è}ؘƄ˹A³r_ĞŠǒNĪŒĐw¤^ŬĵªpĺSZg’rpiƼĘԛ¨C|͖J’©Ħ»®VIJ~f\\\\\\\\m `Un„˜~ʌŸ•ĬàöNt•~ňjy–¢Zi˜Ɣ¥ĄŠk´nl`JʇŠJþ©pdƖ®È£¶ìRʦ‘źõƮËnŸʼėæÑƀĎ[‚˜¢VÎĂMÖÝÎF²sƊƀÎBļýƞ—¯ʘƭðħ¼Jh¿ŦęΌƇš¥²Q]Č¥nuÂÏriˆ¸¬ƪÛ^Ó¦d€¥[Wà…x\\\\\\\\ZŽjҕ¨GtpþYŊĕ´€zUO뇉P‰îMĄÁxH´á˜iÜUà›îÜՁĂÛSuŎ‹r“œJð̬EŒ‘FÁú×uÃÎkr“Ē{V}İ«O_ÌËĬ©ŽÓŧSRѱ§Ģ£^ÂyèçěM³Ƃę{[¸¿u…ºµ[gt£¸OƤĿéYŸõ·kĀŸq]juw¥Dĩƍ€õÇPéĽG‘ž©ã‡¤G…uȧþRcÕĕNy“yût“ˆ­‡ø‘†ï»a½ē¿BMoį£ŸÍj}éZËqbʍš“Ƭh¹ìÿÓAçãnIáI`ƒks£CG­ě˜Uy×Cy•…’Ÿ@¶ʡÊBnāzG„ơMē¼±O÷õJËĚăVŸĪũƆ£Œ¯{ËL½Ìzż“„VR|ĠTbuvJvµhĻĖH”Aëáa…­OÇðñęNw‡…œľ·L›mI±íĠĩPÉ×®ÿs—’cB³±JKßĊ«`…ađ»·QAmO’‘Vţéÿ¤¹SQt]]Çx€±¯A@ĉij¢Óļ©•ƒl¶ÅÛr—ŕspãRk~¦ª]Į­´“FR„åd­ČsCqđéFn¿Åƃm’Éx{W©ºƝºįkÕƂƑ¸wWūЩÈFž£\\\\\\\\tÈ¥ÄRÈýÌJ ƒlGr^×äùyÞ³fj”c†€¨£ÂZ|ǓMĝšÏ@ëÜőR‹›ĝ‰Œ÷¡{aïȷPu°ËXÙ{©TmĠ}Y³’­ÞIňµç½©C¡į÷¯B»|St»›]vƒųƒs»”}MÓ ÿʪƟǭA¡fs˜»PY¼c¡»¦c„ċ­¥£~msĉP•–Siƒ^o©A‰Šec‚™PeǵŽkg‚yUi¿h}aH™šĉ^|ᴟ¡HØûÅ«ĉ®]m€¡qĉ¶³ÈyôōLÁst“BŸ®wn±ă¥HSòėš£˜S’ë@לÊăxÇN©™©T±ª£IJ¡fb®ÞbŽb_Ą¥xu¥B—ž{łĝ³«`d˜Ɛt—¤ťiñžÍUuºí`£˜^tƃIJc—·ÛLO‹½Šsç¥Ts{ă\\\\\\\\_»™kϊ±q©čiìĉ|ÍIƒ¥ć¥›€]ª§D{ŝŖÉR_sÿc³Īō›ƿΑ›§p›[ĉ†›c¯bKm›R¥{³„Z†e^ŽŒwx¹dƽŽôIg §Mĕ ƹĴ¿—ǣÜ̓]‹Ý–]snåA{‹eŒƭ`ǻŊĿ\\\\\\\\ijŬű”YÂÿ¬jĖqŽßbŠ¸•L«¸©@ěĀ©ê¶ìÀEH|´bRľž–Ó¶rÀQþ‹vl®Õ‚E˜TzÜdb ˜hw¤{LR„ƒd“c‹b¯‹ÙVgœ‚ƜßzÃô쮍^jUèXΖ|UäÌ»rKŽ\\\\\\\\ŒªN‘¼pZCü†VY††¤ɃRi^rPҒTÖ}|br°qňbĚ°ªiƶGQ¾²„x¦PœmlŜ‘[Ĥ¡ΞsĦŸÔÏâ\\\\\\\\ªÚŒU\\\\\\\\f…¢N²§x|¤§„xĔsZPòʛ²SÐqF`ª„VƒÞŜĶƨVZŒÌL`ˆ¢dŐIqr\\\\\\\\oäõ–F礻Ŷ×h¹]Clـ\\\\\\\\¦ďÌį¬řtTӺƙgQÇÓHţĒ”´ÃbEÄlbʔC”|CˆŮˆk„Ʈ[ʼ¬ňœ´KŮÈΰÌĪ¶ƶlð”ļA†TUvdTŠG†º̼ŠÔ€ŒsÊDԄveOg\"]],\"encodeOffsets\":[[[105308,37219]],[[95370,40081]]]},\"properties\":{\"cp\":[101.778916,36.623178],\"name\":\"青海\",\"childNum\":2}},{\"id\":\"640000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@KëÀęĞ«OęȿȕŸı]ʼn¡åįÕÔ«Ǵõƪ™ĚQÐZhv K°›öqÀѐS[ÃÖHƖčË‡nL]ûc…Ùß@‚“ĝ‘¾}w»»‹oģF¹œ»kÌÏ·{zPƒ§B­¢íyÅt@ƒ@áš]Yv_ssģ¼i߁”ĻL¾ġsKD£¡N_…“˜X¸}B~Haiˆ™Åf{«x»ge_bs“KF¯¡Ix™mELcÿZ¤­Ģ‘ƒÝœsuBLù•t†ŒYdˆmVtNmtOPhRw~bd…¾qÐ\\\\\\\\âÙH\\\\\\\\bImlNZŸ»loƒŸqlVm–Gā§~QCw¤™{A\\\\\\\\‘PKŸNY‡¯bF‡kC¥’sk‹Šs_Ã\\\\\\\\ă«¢ħkJi¯r›rAhĹûç£CU‡ĕĊ_ԗBixÅُĄnªÑaM~ħpOu¥sîeQ¥¤^dkKwlL~{L~–hw^‚ófćƒKyEŒ­K­zuÔ¡qQ¤xZÑ¢^ļöܾEpž±âbÊÑÆ^fk¬…NC¾‘Œ“YpxbK~¥Že֎ŒäBlt¿Đx½I[ĒǙŒWž‹f»Ĭ}d§dµùEuj¨‚IÆ¢¥dXªƅx¿]mtÏwßRĶŒX¢͎vÆzƂZò®ǢÌʆCrâºMÞzžÆMҔÊÓŊZľ–r°Î®Ȉmª²ĈUªĚøºˆĮ¦ÌĘk„^FłĬhĚiĀĖ¾iİbjÕ\"],[\"@@mfwěwMrŢªv@G‰\"]],\"encodeOffsets\":[[[109366,40242]],[[108600,36303]]]},\"properties\":{\"cp\":[106.278179,38.46637],\"name\":\"宁夏\",\"childNum\":2}},{\"id\":\"650000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[\"@@QØĔ²X¨”~ǘBºjʐßØvK”ƔX¨vĊOžÃƒ·¢i@~c—‡ĝe_«”Eš“}QxgɪëÏÃ@sÅyXoŖ{ô«ŸuX…ê•Îf`œC‚¹ÂÿÐGĮÕĞXŪōŸMźÈƺQèĽôe|¿ƸJR¤ĘEjcUóº¯Ĩ_ŘÁMª÷Ð¥Oéȇ¿ÖğǤǷÂF҇zÉx[]­Ĥĝ‰œ¦EP}ûƥé¿İƷTėƫœŕƅ™ƱB»Đ±’ēO…¦E–•}‘`cȺrĦáŖuҞª«IJ‡πdƺÏØZƴwʄ¤ĖGЙǂZĶƒèH¶}ÚZצʥĪï|ÇĦMŔ»İĝLj‹ì¥Βœba­¯¥ǕǚkĆŵĦɑĺƯxūД̵nơʃĽá½M»›òmqóŘĝč˾ăC…ćāƿÝɽ©DZŅ¹đ¥˜³ðLrÁ®ɱĕģʼnǻ̋ȥơŻǛȡVï¹Ň۩ûkɗġƁ§ʇė̕ĩũƽō^ƕŠUv£ƁQï“Ƶkŏ½ΉÃŭdzLқʻ«ƭ\\\\\\\\lƒ‡ŭD‡“{ʓDkaFÃÄa“³ŤđÔGRÈƚhSӹŚsİ«ĐË[¥ÚDkº^Øg¼ŵ¸£EÍö•€ůʼnT¡c_‡ËKY‹ƧUśĵ„݃U_©rETÏʜ±OñtYwē¨ƒ{£¨uM³x½şL©Ùá[ÓÐĥ Νtģ¢\\\\\\\\‚ś’nkO›w¥±ƒT»ƷFɯàĩÞáB¹Æ…ÑUw„੍žĽw[“mG½Èå~‡Æ÷QyŠěCFmĭZī—ŵVÁ™ƿQƛ—ûXS²‰b½KϽĉS›©ŷXĕŸ{ŽĕK·¥Ɨcqq©f¿]‡ßDõU³h—­gËÇïģÉɋw“k¯í}I·šœbmœÉ–ř›īJɥĻˁ×xo›ɹī‡l•c…¤³Xù]‘™DžA¿w͉ì¥wÇN·ÂËnƾƍdǧđ®Ɲv•Um©³G\\\\\\\\“}µĿ‡QyŹl㓛µEw‰LJQ½yƋBe¶ŋÀů‡ož¥A—˜Éw@•{Gpm¿Aij†ŽKLhˆ³`ñcËtW‚±»ÕS‰ëüÿďD‡u\\\\\\\\wwwù³—V›LŕƒOMËGh£õP¡™er™Ïd{“‡ġWÁ…č|yšg^ğyÁzÙs`—s|ÉåªÇ}m¢Ń¨`x¥’ù^•}ƒÌ¥H«‰Yªƅ”Aйn~ź¯šf¤áÀz„gŠÇDIԝ´AňĀ҄¶ûEYospõD[{ù°]u›Jq•U•|Soċxţ[õÔĥkŋÞŭZ˺óYËüċrw €ÞkrťË¿XGÉbřaDü·Ē÷Aê[Ää€I®BÕИÞ_¢āĠpŠÛÄȉĖġDKwbm‡ÄNô‡ŠfœƫVÉvi†dz—H‘‹QµâFšù­Âœ³¦{YGžƒd¢ĚÜO „€{Ö¦ÞÍÀPŒ^b–ƾŠlŽ[„vt×ĈÍE˨¡Đ~´î¸ùÎh€uè`¸ŸHÕŔVºwĠââWò‡@{œÙNÝ´ə²ȕn{¿¥{l—÷eé^e’ďˆXj©î\\\\\\\\ªÑò˜Üìc\\\\\\\\üqˆÕ[Č¡xoÂċªbØ­Œø|€¶ȴZdÆšońéŒGš\\\\\\\\”¼C°ÌƁn´nxšÊOĨ’Ūƴĸ¢¸òTxÊǪMīИÖŲÃɎOvˆʦƢ~FŽ‡Rěò—¿ġ~åŊœú‰Nšžš¸qŽ’Ę[Ĕ¶ÂćnÒPĒÜvúĀÊbÖ{Äî¸~Ŕünp¤ÂH¾œĄYÒ©ÊfºmԈĘcDoĬMŬ’˜S¤„s²‚”ʘچžȂVŦ –ŽèW°ªB|IJXŔþÈJĦÆæFĚêŠYĂªĂ]øªŖNÞüA€’fɨJ€˜¯ÎrDDšĤ€`€mz\\\\\\\\„§~D¬{vJÂ˜«lµĂb–¤p€ŌŰNĄ¨ĊXW|ų ¿¾ɄĦƐMT”‡òP˜÷fØĶK¢ȝ˔Sô¹òEð­”`Ɩ½ǒÂň×äı–§ĤƝ§C~¡‚hlå‚ǺŦŞkâ’~}ŽFøàIJaĞ‚fƠ¥Ž„Ŕdž˜®U¸ˆźXœv¢aƆúŪtŠųƠjd•ƺŠƺÅìnrh\\\\\\\\ĺ¯äɝĦ]èpĄ¦´LƞĬŠ´ƤǬ˼Ēɸ¤rºǼ²¨zÌPðŀbþ¹ļD¢¹œ\\\\\\\\ĜÑŚŸ¶ZƄ³àjĨoâŠȴLʉȮŒĐ­ĚăŽÀêZǚŐ¤qȂ\\\\\\\\L¢ŌİfÆs|zºeªÙæ§΢{Ā´ƐÚ¬¨Ĵà²łhʺKÞºÖTŠiƢ¾ªì°`öøu®Ê¾ãØ\"],\"encodeOffsets\":[[88824,50096]]},\"properties\":{\"cp\":[87.617733,43.792818],\"name\":\"新疆\",\"childNum\":1}},{\"id\":\"110000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[\"@@ĽOÁ›ûtŷmiÍt_H»Ĩ±d`Š¹­{bw…Yr“³S]§§o¹€qGtm_Sŧ€“oa›‹FLg‘QN_•dV€@Zom_ć\\\\\\\\ߚc±x¯oœRcfe…£’o§ËgToÛJíĔóu…|wP¤™XnO¢ÉˆŦ¯rNÄā¤zâŖÈRpŢZŠœÚ{GŠrFt¦Òx§ø¹RóäV¤XdˆżâºWbwŚ¨Ud®bêņ¾‘jnŎGŃŶŠnzÚSeîĜZczî¾i]͜™QaúÍÔiþĩȨWĢ‹ü|Ėu[qb[swP@ÅğP¿{\\\\\\\\‡¥A¨Ï‘Ѩj¯ŠX\\\\\\\\¯œMK‘pA³[H…īu}}\"],\"encodeOffsets\":[[120023,41045]]},\"properties\":{\"cp\":[116.405285,39.904989],\"name\":\"北京\",\"childNum\":1}},{\"id\":\"120000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[\"@@ŬgX§Ü«E…¶Ḟ“¬O_™ïlÁg“z±AXe™µÄĵ{¶]gitgšIj·›¥îakS€‰¨ÐƎk}ĕ{gB—qGf{¿a†U^fI“ư‹³õ{YƒıëNĿžk©ïËZŏ‘R§òoY×Ógc…ĥs¡bġ«@dekąI[nlPqCnp{ˆō³°`{PNdƗqSÄĻNNâyj]äžÒD ĬH°Æ]~¡HO¾ŒX}ÐxŒgp“gWˆrDGˆŒpù‚Š^L‚ˆrzWxˆZ^¨´T\\\\\\\\|~@I‰zƒ–bĤ‹œjeĊªz£®Ĕvě€L†mV¾Ô_ȔNW~zbĬvG†²ZmDM~”~\"],\"encodeOffsets\":[[120237,41215]]},\"properties\":{\"cp\":[117.190182,39.125596],\"name\":\"天津\",\"childNum\":1}},{\"id\":\"310000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@ɧư¬EpƸÁxc‡\"],[\"@@©„ªƒ\"],[\"@@”MA‹‘š\"],[\"@@Qp݁E§ÉC¾\"],[\"@@bŝՕÕEȣÚƥêImɇǦèÜĠŒÚžÃƌÃ͎ó\"],[\"@@ǜûȬɋŠŭ™×^‰sYŒɍDŋ‘ŽąñCG²«ªč@h–_p¯A{‡oloY€¬j@IJ`•gQڛhr|ǀ^MIJvtbe´R¯Ô¬¨YŽô¤r]ì†Ƭį\"]],\"encodeOffsets\":[[[124702,32062]],[[124547,32200]],[[124808,31991]],[[124726,32110]],[[124903,32376]],[[124438,32149]]]},\"properties\":{\"cp\":[121.472644,31.231706],\"name\":\"上海\",\"childNum\":6}},{\"id\":\"500000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@vjG~nGŘŬĶȂƀƾ¹¸ØÎezĆT¸}êЖqHŸðqĖ䒊¥^CƒIj–²p…\\\\\\\\_ æüY|[YxƊæuž°xb®…Űb@~¢NQt°¶‚S栓Ê~rljĔëĚ¢~šuf`‘‚†fa‚ĔJåĊ„nÖ]„jƎćÊ@Š£¾a®£Ű{ŶĕF‹ègLk{Y|¡ĜWƔtƬJÑxq‹±ĢN´‰òK‰™–LÈüD|s`ŋ’ć]ƒÃ‰`đŒMûƱ½~Y°ħ`ƏíW‰½eI‹½{aŸ‘OIrÏ¡ĕŇa†p†µÜƅġ‘œ^ÖÛbÙŽŏml½S‹êqDu[R‹ãË»†ÿw`»y‘¸_ĺę}÷`M¯ċfCVµqʼn÷Z•gg“Œ`d½pDO‡ÎCnœ^uf²ènh¼WtƏxRGg¦…pV„†FI±ŽG^ŒIc´ec‡’G•ĹÞ½sëĬ„h˜xW‚}Kӈe­Xsbk”F¦›L‘ØgTkïƵNï¶}Gy“w\\\\\\\\oñ¡nmĈzjŸ•@™Óc£»Wă¹Ój“_m»ˆ¹·~MvÛaqœ»­‰êœ’\\\\\\\\ÂoVnŽÓØ͙²«‹bq¿efE „€‹Ĝ^Qž~ Évý‡ş¤²Į‰pEİ}zcĺƒL‹½‡š¿gņ›¡ýE¡ya£³t\\\\\\\\¨\\\\\\\\vú»¼§·Ñr_oÒý¥u‚•_n»_ƒ•At©Þűā§IVeëƒY}{VPÀFA¨ąB}q@|Ou—\\\\\\\\Fm‰QF݅Mw˜å}]•€|FmϋCaƒwŒu_p—¯sfÙgY…DHl`{QEfNysBŠ¦zG¸rHe‚„N\\\\\\\\CvEsÐùÜ_·ÖĉsaQ¯€}_U‡†xÃđŠq›NH¬•Äd^ÝŰR¬ã°wećJEž·vÝ·Hgƒ‚éFXjÉê`|yŒpxkAwœWĐpb¥eOsmzwqChóUQl¥F^laf‹anòsr›EvfQdÁUVf—ÎvÜ^efˆtET¬ôA\\\\\\\\œ¢sJŽnQTjP؈xøK|nBz‰„œĞ»LY‚…FDxӄvr“[ehľš•vN”¢o¾NiÂxGp⬐z›bfZo~hGi’]öF|‰|Nb‡tOMn eA±ŠtPT‡LjpYQ|†SH††YĀxinzDJ€Ìg¢và¥Pg‰_–ÇzII‹€II•„£®S¬„Øs쐣ŒN\"],[\"@@ifjN@s\"]],\"encodeOffsets\":[[[109628,30765]],[[111725,31320]]]},\"properties\":{\"cp\":[106.504962,29.533155],\"name\":\"重庆\",\"childNum\":2}},{\"id\":\"810000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[\"@@AlBk\"],[\"@@mŽn\"],[\"@@EpFo\"],[\"@@ea¢pl¸Eõ¹‡hj[ƒ]ÔCΖ@lj˜¡uBXŸ…•´‹AI¹…[‹yDUˆ]W`çwZkmc–…M›žp€Åv›}I‹oJlcaƒfёKŽ°ä¬XJmРđhI®æÔtSHn€Eˆ„ÒrÈc\"],[\"@@rMUw‡AS®€e\"]],\"encodeOffsets\":[[[117111,23002]],[[117072,22876]],[[117045,22887]],[[116975,23082]],[[116882,22747]]]},\"properties\":{\"cp\":[114.173355,22.320048],\"name\":\"香港\",\"childNum\":5}},{\"id\":\"820000\",\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[\"@@kÊd°å§s\"],\"encodeOffsets\":[[116279,22639]]},\"properties\":{\"cp\":[113.54909,22.198951],\"name\":\"澳门\",\"childNum\":1}}],\"UTF8Encoding\":true}')},function(t,e,n){var i=n(1),r=n(83),o=n(84);t.exports=function(t){var e=i(t);return o(e,r(e))+1}},function(t,e){t.exports=function(t){var e=new Date(t.getTime()),n=e.getTimezoneOffset();return e.setSeconds(0,0),6e4*n+e.getTime()%6e4}},function(t,e,n){var i=n(1);t.exports=function(t){var e=i(t),n=new Date(0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}},function(t,e,n){var i=n(85),r=6e4,o=864e5;t.exports=function(t,e){var n=i(t),a=i(e),s=n.getTime()-n.getTimezoneOffset()*r,l=a.getTime()-a.getTimezoneOffset()*r;return Math.round((s-l)/o)}},function(t,e,n){var i=n(1);t.exports=function(t){var e=i(t);return e.setHours(0,0,0,0),e}},function(t,e,n){var i=n(1),r=n(22),o=n(88),a=6048e5;t.exports=function(t){var e=i(t),n=r(e).getTime()-o(e).getTime();return Math.round(n/a)+1}},function(t,e,n){var i=n(1);t.exports=function(t,e){var n=e&&Number(e.weekStartsOn)||0,r=i(t),o=r.getDay(),a=(o0?\"in \"+r:r+\" ago\":r}}}},function(t,e,n){var i=n(93);t.exports=function(){var t=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],e=[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],n=[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],r=[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],o=[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],a=[\"AM\",\"PM\"],s=[\"am\",\"pm\"],l=[\"a.m.\",\"p.m.\"],u={MMM:function(e){return t[e.getMonth()]},MMMM:function(t){return e[t.getMonth()]},dd:function(t){return n[t.getDay()]},ddd:function(t){return r[t.getDay()]},dddd:function(t){return o[t.getDay()]},A:function(t){return t.getHours()/12>=1?a[1]:a[0]},a:function(t){return t.getHours()/12>=1?s[1]:s[0]},aa:function(t){return t.getHours()/12>=1?l[1]:l[0]}};return[\"M\",\"D\",\"DDD\",\"d\",\"Q\",\"W\"].forEach(function(t){u[t+\"o\"]=function(e,n){return function(t){var e=t%100;if(e>20||e<10)switch(e%10){case 1:return t+\"st\";case 2:return t+\"nd\";case 3:return t+\"rd\"}return t+\"th\"}(n[t](e))}}),{formatters:u,formattingTokensRegExp:i(u)}}},function(t,e){var n=[\"M\",\"MM\",\"Q\",\"D\",\"DD\",\"DDD\",\"DDDD\",\"d\",\"E\",\"W\",\"WW\",\"YY\",\"YYYY\",\"GG\",\"GGGG\",\"H\",\"HH\",\"h\",\"hh\",\"m\",\"mm\",\"s\",\"ss\",\"S\",\"SS\",\"SSS\",\"Z\",\"ZZ\",\"X\",\"x\"];t.exports=function(t){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);var r=n.concat(e).sort().reverse();return new RegExp(\"(\\\\[[^\\\\[]*\\\\])|(\\\\\\\\)?(\"+r.join(\"|\")+\"|.)\",\"g\")}},function(t,e,n){var i=n(1);t.exports=function(t,e){var n=i(t),r=Number(e);return n.setDate(n.getDate()+r),n}},function(t,e,n){var i=n(1);t.exports=function(t){var e=i(t),n=e.getFullYear(),r=e.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}},function(t,e,n){var i=n(42);t.exports=function(t,e){var n=Number(e);return i(t,12*n)}},function(t,e,n){var i=n(23),r=n(126),o=n(47),a=n(127),s=n(134),l=n(137),u=n(138),h=n(139),c=n(141),d=n(57),f=n(142),p=n(18),g=n(146),m=n(147),v=n(152),y=n(3),x=n(27),_=n(154),b=n(6),w=n(156),M=n(10),S=1,I=2,A=4,D=\"[object Arguments]\",T=\"[object Function]\",C=\"[object GeneratorFunction]\",L=\"[object Object]\",k={};k[D]=k[\"[object Array]\"]=k[\"[object ArrayBuffer]\"]=k[\"[object DataView]\"]=k[\"[object Boolean]\"]=k[\"[object Date]\"]=k[\"[object Float32Array]\"]=k[\"[object Float64Array]\"]=k[\"[object Int8Array]\"]=k[\"[object Int16Array]\"]=k[\"[object Int32Array]\"]=k[\"[object Map]\"]=k[\"[object Number]\"]=k[L]=k[\"[object RegExp]\"]=k[\"[object Set]\"]=k[\"[object String]\"]=k[\"[object Symbol]\"]=k[\"[object Uint8Array]\"]=k[\"[object Uint8ClampedArray]\"]=k[\"[object Uint16Array]\"]=k[\"[object Uint32Array]\"]=!0,k[\"[object Error]\"]=k[T]=k[\"[object WeakMap]\"]=!1,t.exports=function t(e,n,P,O,N,E){var z,R=n&S,B=n&I,V=n&A;if(P&&(z=N?P(e,O,N,E):P(e)),void 0!==z)return z;if(!b(e))return e;var F=y(e);if(F){if(z=g(e),!R)return u(e,z)}else{var G=p(e),W=G==T||G==C;if(x(e))return l(e,R);if(G==L||G==D||W&&!N){if(z=B||W?{}:v(e),!R)return B?c(e,s(z,e)):h(e,a(z,e))}else{if(!k[G])return N?e:{};z=m(e,G,R)}}E||(E=new i);var H=E.get(e);if(H)return H;E.set(e,z),w(e)?e.forEach(function(i){z.add(t(i,n,P,i,e,E))}):_(e)&&e.forEach(function(i,r){z.set(r,t(i,n,P,r,e,E))});var j=V?B?f:d:B?keysIn:M,Y=F?void 0:j(e);return r(Y||e,function(i,r){Y&&(i=e[r=i]),o(z,r,t(i,n,P,r,e,E))}),z}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var i=n(12),r=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=i(e,t);return!(n<0)&&(n==e.length-1?e.pop():r.call(e,n,1),--this.size,!0)}},function(t,e,n){var i=n(12);t.exports=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var i=n(12);t.exports=function(t){return i(this.__data__,t)>-1}},function(t,e,n){var i=n(12);t.exports=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}},function(t,e,n){var i=n(11);t.exports=function(){this.__data__=new i,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var i=n(11),r=n(24),o=n(25),a=200;t.exports=function(t,e){var n=this.__data__;if(n instanceof i){var s=n.__data__;if(!r||s.length0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var i=n(63),r=n(168),o=n(173),a=n(64),s=n(174),l=n(36),u=200;t.exports=function(t,e,n){var h=-1,c=r,d=t.length,f=!0,p=[],g=p;if(n)f=!1,c=o;else if(d>=u){var m=e?null:s(t);if(m)return l(m);f=!1,c=a,g=new i}else g=e?[]:p;t:for(;++h-1}},function(t,e,n){var i=n(170),r=n(171),o=n(172);t.exports=function(t,e,n){return e==e?o(t,e,n):i(t,r,n)}},function(t,e){t.exports=function(t,e,n,i){for(var r=t.length,o=n+(i?1:-1);i?o--:++o=l?u:u*(\"desc\"==n[r]?-1:1)}return t.index-e.index}},function(t,e,n){var i=n(20);t.exports=function(t,e){if(t!==e){var n=void 0!==t,r=null===t,o=t==t,a=i(t),s=void 0!==e,l=null===e,u=e==e,h=i(e);if(!l&&!h&&!a&&t>e||a&&s&&u&&!l&&!h||r&&s&&u||!n&&u||!o)return 1;if(!r&&!a&&!h&&t=0&&(o.yAxisIndex=l);var u,h,c=function(t){if(!t||t.length<=0)return[];var e=Object.keys(t[0]).filter(function(t){return\"key\"!==t}),n=e[0];return e.indexOf(\"close\")>=0&&(n=\"close\"),t.map(function(t){return t[n]})}(n[t.sid]);if(t.stack){var d=r[t.stack];d&&\"percent\"===d.valueType&&(u=c,h=d.totalValues,c=u.map(function(t,e){var n=h[e];return void 0===n?0:(null==t&&(t=0),t/n*100)}))}if(o.data=c,t.transform){var f=t.transform.ratio||1,p=t.transform.fractionDigits;void 0===p&&(p=4),o.data=c.map(function(e){if(null===e)return null;if(e.hasOwnProperty(\"value\")){var n=e.value;return null!==n&&(n=(n=t.stack&&r[t.stack]&&\"percent\"==r[t.stack].valueType?Number(n):Number(n)*f).toFixed(p)),function(t){for(var e=1;e=0?\"left\":\"right\"),t.hasOwnProperty(\"min\")&&(a.min=I(t.min)),t.hasOwnProperty(\"max\")&&(a.max=I(t.max)),t.hasOwnProperty(\"unit\")&&(a.interval=I(t.unit));var s=t.name,l=e.filter(function(t){return t.axisName===s}),u=!1;return l.forEach(function(t){\"bar\"===t.chartType&&(u=!0)}),a.scale=!u,\"none\"===n||\"vertical\"===n?a.splitLine.show=!1:(a.splitLine.show=\"left\"===a.position,a.splitLine.lineStyle={type:\"dotted\"}),!1===t.axisLineShow&&(a.axisLine.show=!1),!1===t.axisTickShow&&(a.axisTick.show=!1),!0===t.axisTickInside&&(a.axisTick.inside=!0),!1===t.axisLabelShow&&(a.axisLabel.show=!1),!0===t.axisLabelInside&&(a.axisLabel.inside=!0),t.inverse&&(a.inverse=!0),t.axisLabelFormatter&&\"D\"!=t.axisLabelFormatter&&(a.axisLabel.formatter=function(e,n){return parseFloat(e.toFixed(4))/k[t.axisLabelFormatter]+t.axisLabelFormatter}),e.find(function(e){return e.axisName===t.name&&e.show})||(a.show=!1),i>2&&\"right\"==a.position&&a.show&&(a.offset=25*r,r++),a})}(s,a,l);var c=i.yAxis.filter(function(t){return t.show&&\"right\"==t.position}).length;return i.grid={left:\"5%\",right:c<=1?\"5%\":30*(c-1)},i.series=E(a,s,e,r),i}function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function B(t){for(var e=1;e=i:parseInt(t)>=i&&parseInt(t)<=o});o=j()(a,o)}}),Z()(o,function(t){return t})}(e,a,s,t,i)),r}function X(t,e,n,i,r){var o=[];switch(r){case\"date\":default:o=U(t,e,n,i)}var a={__keyList:o};return e.forEach(function(e){if(t[e]){var n=t[e].data,i=t[e].columns;a[e]=[],o.forEach(function(t){var r=n.date.findIndex(function(e){return e===t}),o={key:t};i.forEach(function(t){o[t]=r>=0?n[t][r]:null}),a[e].push(o)})}}),a}var q={top:20,bottom:0,left:10,right:10,containLabel:!0},K=[{type:\"inside\",realtime:!0,throttle:100,filterMode:\"weakFilter\",minValueSpan:5}];function Q(t){return t.xAxis.forEach(function(t){var e=void 0;t.axisLabel?e=t.axisLabel.formatter:t.axisLabel={},e&&!D(e)||(t.axisLabel.formatter=function(t){return e&&(t=e(t)),\"string\"==typeof t&&t.startsWith(\"2\")?t:(t.length>8&&(t=t.substring(0,8)+\"...\"),t)})}),t}function J(t){return t.series&&t.series[0]&&t.series[0].type&&(\"line\"==t.series[0].type||\"bar\"==t.series[0].type)&&(t.dataZoom=K),t}function $(t){t.hasOwnProperty(\"series\")&&t.series[0]&&\"pie\"==t.series[0].type&&function(t){if(!t.tooltip||!t.tooltip.formatter)return;var e=t.tooltip.formatter;\"string\"==typeof e&&(t.tooltip.formatter=e.replace(\"
\",\"\\n\"))}(t)}function tt(t){return t.hasOwnProperty(\"options\")?t.options=t.options.map(function(t){return t.grid={containLabel:!0,left:10,right:10},t.hasOwnProperty(\"xAxis\")&&Q(t),J(t),$(t),t}):(!function(t){t.grid=q}(t),t.hasOwnProperty(\"xAxis\")&&Q(t),J(t),$(t)),t}var et=function(t){return t.animation=!1,delete t.legend,delete t.tooltip,delete t.title,t=tt(t)},nt=n(80);function it(t){return t.hasOwnProperty(\"title\")&&delete t.title,t.hasOwnProperty(\"legend\")&&delete t.legend,t.grid={top:20,bottom:0,left:10,right:10,containLabel:!0},t}n.d(e,\"echarts\",function(){return W}),n.d(e,\"toEcharts\",function(){return G}),n.d(e,\"utils\",function(){return i}),n.d(e,\"assembleData\",function(){return X}),n.d(e,\"adaptInst\",function(){return et}),n.d(e,\"simpleChart\",function(){return it}),W.registerMap(\"china\",nt)}]);"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sourceRoot":""} \ No newline at end of file