@bee-hole/server
Version:
www.bee-hole.com
1 lines • 270 kB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-dc085b74"],{1418:function(e,t,a){"use strict";var n=a("7fae"),i=a("a15a4"),r=a("deca0"),o=a("2dc5"),l=a("861c"),s=a("7d6c"),c=a("c775"),u=a("6d8b"),d=a("7837"),h=a("0da8"),p=function(e){function t(t,a,n,i){var r=e.call(this)||this;return r.updateData(t,a,n,i),r}return Object(n["a"])(t,e),t.prototype._createSymbol=function(e,t,a,n,r){this.removeAll();var o=Object(i["a"])(e,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),o.drift=g,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Object(s["r"])(this.childAt(0))},t.prototype.downplay=function(){Object(s["C"])(this.childAt(0))},t.prototype.setZ=function(e,t){var a=this.childAt(0);a.zlevel=e,a.z=t},t.prototype.setDraggable=function(e,t){var a=this.childAt(0);a.draggable=e,a.cursor=!t&&e?"move":a.cursor},t.prototype.updateData=function(e,a,n,i){this.silent=!1;var o=e.getItemVisual(a,"symbol")||"circle",l=e.hostModel,s=t.getSymbolSize(e,a),c=o!==this._symbolType,u=i&&i.disableAnimation;if(c){var d=e.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,e,a,s,d)}else{var h=this.childAt(0);h.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?h.attr(p):r["h"](h,p,l,a),Object(r["g"])(h)}if(this._updateCommon(e,a,s,n,i),c){h=this.childAt(0);if(!u){p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,r["c"](h,p,l,a)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,a,n,r){var o,l,p,g,f,y,m,v,b,x=this.childAt(0),S=e.hostModel;if(n&&(o=n.emphasisItemStyle,l=n.blurItemStyle,p=n.selectItemStyle,g=n.focus,f=n.blurScope,m=n.labelStatesModels,v=n.hoverScale,b=n.cursorStyle,y=n.emphasisDisabled),!n||e.hasItemOption){var _=n&&n.itemModel?n.itemModel:e.getItemModel(t),O=_.getModel("emphasis");o=O.getModel("itemStyle").getItemStyle(),p=_.getModel(["select","itemStyle"]).getItemStyle(),l=_.getModel(["blur","itemStyle"]).getItemStyle(),g=O.get("focus"),f=O.get("blurScope"),y=O.get("disabled"),m=Object(d["e"])(_),v=O.getShallow("scale"),b=_.getShallow("cursor")}var w=e.getItemVisual(t,"symbolRotate");x.attr("rotation",(w||0)*Math.PI/180||0);var I=Object(i["b"])(e.getItemVisual(t,"symbolOffset"),a);I&&(x.x=I[0],x.y=I[1]),b&&x.attr("cursor",b);var j=e.getItemVisual(t,"style"),M=j.fill;if(x instanceof h["a"]){var D=x.style;x.useStyle(Object(u["m"])({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},j))}else x.__isEmptyBrush?x.useStyle(Object(u["m"])({},j)):x.useStyle(j),x.style.decal=null,x.setColor(M,r&&r.symbolInnerColor),x.style.strokeNoScale=!0;var L=e.getItemVisual(t,"liftZ"),A=this._z2;null!=L?null==A&&(this._z2=x.z2,x.z2+=L):null!=A&&(x.z2=A,this._z2=null);var C=r&&r.useNameLabel;function N(t){return C?e.getName(t):Object(c["b"])(e,t)}Object(d["g"])(x,m,{labelFetcher:S,labelDataIndex:t,defaultText:N,inheritColor:M,defaultOpacity:j.opacity}),this._sizeX=a[0]/2,this._sizeY=a[1]/2;var T=x.ensureState("emphasis");T.style=o,x.ensureState("select").style=p,x.ensureState("blur").style=l;var P=null==v||!0===v?Math.max(1.1,3/this._sizeY):isFinite(v)&&v>0?+v:1;T.scaleX=this._sizeX*P,T.scaleY=this._sizeY*P,this.setSymbolScale(1),Object(s["J"])(this,g,f,y)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,a){var n=this.childAt(0),i=Object(l["a"])(this).dataIndex,o=a&&a.animation;if(this.silent=n.silent=!0,a&&a.fadeLabel){var s=n.getTextContent();s&&r["e"](s,{style:{opacity:0}},t,{dataIndex:i,removeOpt:o,cb:function(){n.removeTextContent()}})}else n.removeTextContent();r["e"](n,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return Object(i["c"])(e.getItemVisual(t,"symbolSize"))},t}(o["a"]);function g(e,t){this.parent.drift(e,t)}t["a"]=p},"2c00":function(e,t,a){"use strict";a.d(t,"b",(function(){return c})),a.d(t,"a",(function(){return u}));var n=a("6d8b"),i=a("7d4b"),r=a("deca0"),o=a("e0d3"),l=Object(o["o"])(),s=["percent","easing","shape","style","extra"];function c(e){e.stopAnimation("keyframe"),e.attr(l(e))}function u(e,t,a){if(a.isAnimationEnabled()&&t)if(Object(n["t"])(t))Object(n["k"])(t,(function(t){u(e,t,a)}));else{var o=t.keyframes,c=t.duration;if(a&&null==c){var d=Object(r["a"])("enter",a,0);c=d&&d.duration}if(o&&c){var h=l(e);Object(n["k"])(i["a"],(function(a){if(!a||e[a]){var i;o.sort((function(e,t){return e.percent-t.percent})),Object(n["k"])(o,(function(r){var o=e.animators,l=a?r[a]:r;if(l){var u=Object(n["F"])(l);if(a||(u=Object(n["n"])(u,(function(e){return Object(n["r"])(s,e)<0}))),u.length){i||(i=e.animate(a,t.loop,!0),i.scope="keyframe");for(var d=0;d<o.length;d++)o[d]!==i&&o[d].targetName===i.targetName&&o[d].stopTracks(u);a&&(h[a]=h[a]||{});var p=a?h[a]:h;Object(n["k"])(u,(function(t){p[t]=((a?e[a]:e)||{})[t]})),i.whenWithKeys(c*r.percent,l,u,r.easing)}}})),i&&i.delay(t.delay||0).duration(c).start(t.easing)}}))}}}},"313e":function(e,t,a){"use strict";a.d(t,"b",(function(){return i["b"]})),a.d(t,"a",(function(){return i["a"]}));var n=a("22b4"),i=a("aa74"),r=a("f95e"),o=a("97ac"),l=a("7fae"),s=a("6d8b"),c=a("b682"),u=a("b1d4"),d=a("2f45"),h=a("e0d3"),p=a("1f39"),g=a("8b7f"),f=a("ec6f"),y=a("ee1a"),m=a("0f99"),v=a("07fd");function b(e,t){var a,n=e.get("coordinateSystem"),i=p["a"].get(n);return t&&t.coordSysDims&&(a=s["H"](t.coordSysDims,(function(e){var a={name:e},n=t.axisMap.get(e);if(n){var i=n.get("type");a.type=Object(d["a"])(i)}return a}))),a||(a=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),a}function x(e,t,a){var n,i;return a&&s["k"](e,(function(e,r){var o=e.coordDim,l=a.categoryAxisMap.get(o);l&&(null==n&&(n=r),e.ordinalMeta=l.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(i=!0)})),i||null==n||(e[n].otherDims.itemName=0),n}function S(e,t,a){a=a||{};var n,i=t.getSourceManager(),r=!1;e?(r=!0,n=Object(f["c"])(e)):(n=i.getSource(),r=n.sourceFormat===v["f"]);var o=Object(g["a"])(t),l=b(t,o),d=a.useEncodeDefaulter,h=s["w"](d)?d:d?s["h"](m["c"],l,t):null,p={coordDimensions:l,generateCoord:a.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:h,canOmitUnusedDimensions:!r},S=Object(u["a"])(n,p),O=x(S.dimensions,a.createInvertedIndices,o),w=r?null:i.getSharedDataStore(S),I=Object(y["a"])(t,{schema:S,store:w}),j=new c["a"](S,t);j.setCalculationInfo(I);var M=null!=O&&_(n)?function(e,t,a,n){return n===O?a:this.defaultDimValueGetter(e,t,a,n)}:null;return j.hasItemOption=!1,j.initData(r?n:w,null,M),j}function _(e){if(e.sourceFormat===v["f"]){var t=O(e.data||[]);return!s["t"](Object(h["h"])(t))}}function O(e){var t=0;while(t<e.length&&null==e[t])t++;return e[t]}var w=S,I=a("4f85"),j=a("a15a4"),M=a("2dc5"),D=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a.hasSymbolVisual=!0,a}return Object(l["a"])(t,e),t.prototype.getInitialData=function(e){return w(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new M["a"],a=Object(j["a"])("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(a),a.setStyle(e.lineStyle);var n=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),r="none"===n?"circle":n,o=.8*e.itemHeight,l=Object(j["a"])(r,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);t.add(l),l.setStyle(e.itemStyle);var s="inherit"===e.iconRotate?i:e.iconRotate||0;return l.rotation=s*Math.PI/180,l.setOrigin([e.itemWidth/2,e.itemHeight/2]),r.indexOf("empty")>-1&&(l.style.stroke=l.style.fill,l.style.fill="#fff",l.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(I["b"]),L=D,A=a("f706"),C=a("1418");function N(e,t,a){var n=e.getBaseAxis(),i=e.getOtherAxis(n),r=T(i,a),o=n.dim,l=i.dim,c=t.mapDimension(l),u=t.mapDimension(o),d="x"===l||"radius"===l?1:0,h=Object(s["H"])(e.dimensions,(function(e){return t.mapDimension(e)})),p=!1,g=t.getCalculationInfo("stackResultDimension");return Object(y["c"])(t,h[0])&&(p=!0,h[0]=g),Object(y["c"])(t,h[1])&&(p=!0,h[1]=g),{dataDimsForPoint:h,valueStart:r,valueAxisDim:l,baseAxisDim:o,stacked:!!p,valueDim:c,baseDim:u,baseDataOffset:d,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function T(e,t){var a=0,n=e.scale.getExtent();return"start"===t?a=n[0]:"end"===t?a=n[1]:Object(s["z"])(t)&&!isNaN(t)?a=t:n[0]>0?a=n[0]:n[1]<0&&(a=n[1]),a}function P(e,t,a,n){var i=NaN;e.stacked&&(i=a.get(a.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var r=e.baseDataOffset,o=[];return o[r]=a.get(e.baseDim,n),o[1-r]=i,t.dataToPoint(o)}var k=a("f658");function E(e,t){var a=[];return t.diff(e).add((function(e){a.push({cmd:"+",idx:e})})).update((function(e,t){a.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){a.push({cmd:"-",idx:e})})).execute(),a}function R(e,t,a,n,i,r,o,l){for(var s=E(e,t),c=[],u=[],d=[],h=[],p=[],g=[],f=[],y=N(i,t,o),m=e.getLayout("points")||[],v=t.getLayout("points")||[],b=0;b<s.length;b++){var x=s[b],S=!0,_=void 0,O=void 0;switch(x.cmd){case"=":_=2*x.idx,O=2*x.idx1;var w=m[_],I=m[_+1],j=v[O],M=v[O+1];(isNaN(w)||isNaN(I))&&(w=j,I=M),c.push(w,I),u.push(j,M),d.push(a[_],a[_+1]),h.push(n[O],n[O+1]),f.push(t.getRawIndex(x.idx1));break;case"+":var D=x.idx,L=y.dataDimsForPoint,A=i.dataToPoint([t.get(L[0],D),t.get(L[1],D)]);O=2*D,c.push(A[0],A[1]),u.push(v[O],v[O+1]);var C=P(y,i,t,D);d.push(C[0],C[1]),h.push(n[O],n[O+1]),f.push(t.getRawIndex(D));break;case"-":S=!1}S&&(p.push(x),g.push(g.length))}g.sort((function(e,t){return f[e]-f[t]}));var T=c.length,R=Object(k["a"])(T),V=Object(k["a"])(T),z=Object(k["a"])(T),G=Object(k["a"])(T),B=[];for(b=0;b<g.length;b++){var F=g[b],H=2*b,Y=2*F;R[H]=c[Y],R[H+1]=c[Y+1],V[H]=u[Y],V[H+1]=u[Y+1],z[H]=d[Y],z[H+1]=d[Y+1],G[H]=h[Y],G[H+1]=h[Y+1],B[b]=p[F]}return{current:R,next:V,stackedOnCurrent:z,stackedOnNext:G,status:B}}var V=a("48a9"),z=a("deca0"),G=a("76a5"),B=a("cbe5"),F=a("20c8"),H=a("4a3f"),Y=Math.min,W=Math.max;function X(e,t){return isNaN(e)||isNaN(t)}function U(e,t,a,n,i,r,o,l,s){for(var c,u,d,h,p,g,f=a,y=0;y<n;y++){var m=t[2*f],v=t[2*f+1];if(f>=i||f<0)break;if(X(m,v)){if(s){f+=r;continue}break}if(f===a)e[r>0?"moveTo":"lineTo"](m,v),d=m,h=v;else{var b=m-c,x=v-u;if(b*b+x*x<.5){f+=r;continue}if(o>0){var S=f+r,_=t[2*S],O=t[2*S+1];while(_===m&&O===v&&y<n)y++,S+=r,f+=r,_=t[2*S],O=t[2*S+1],m=t[2*f],v=t[2*f+1],b=m-c,x=v-u;var w=y+1;if(s)while(X(_,O)&&w<n)w++,S+=r,_=t[2*S],O=t[2*S+1];var I=.5,j=0,M=0,D=void 0,L=void 0;if(w>=n||X(_,O))p=m,g=v;else{j=_-c,M=O-u;var A=m-c,C=_-m,N=v-u,T=O-v,P=void 0,k=void 0;if("x"===l){P=Math.abs(A),k=Math.abs(C);var E=j>0?1:-1;p=m-E*P*o,g=v,D=m+E*k*o,L=v}else if("y"===l){P=Math.abs(N),k=Math.abs(T);var R=M>0?1:-1;p=m,g=v-R*P*o,D=m,L=v+R*k*o}else P=Math.sqrt(A*A+N*N),k=Math.sqrt(C*C+T*T),I=k/(k+P),p=m-j*o*(1-I),g=v-M*o*(1-I),D=m+j*o*I,L=v+M*o*I,D=Y(D,W(_,m)),L=Y(L,W(O,v)),D=W(D,Y(_,m)),L=W(L,Y(O,v)),j=D-m,M=L-v,p=m-j*P/k,g=v-M*P/k,p=Y(p,W(c,m)),g=Y(g,W(u,v)),p=W(p,Y(c,m)),g=W(g,Y(u,v)),j=m-p,M=v-g,D=m+j*k/P,L=v+M*k/P}e.bezierCurveTo(d,h,p,g,m,v),d=D,h=L}else e.lineTo(m,v)}c=m,u=v,f+=r}return y}var Z=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),q=function(e){function t(t){var a=e.call(this,t)||this;return a.type="ec-polyline",a}return Object(l["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Z},t.prototype.buildPath=function(e,t){var a=t.points,n=0,i=a.length/2;if(t.connectNulls){for(;i>0;i--)if(!X(a[2*i-2],a[2*i-1]))break;for(;n<i;n++)if(!X(a[2*n],a[2*n+1]))break}while(n<i)n+=U(e,a,n,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a,n,i=this.path,r=i.data,o=F["a"].CMD,l="x"===t,s=[],c=0;c<r.length;){var u=r[c++],d=void 0,h=void 0,p=void 0,g=void 0,f=void 0,y=void 0,m=void 0;switch(u){case o.M:a=r[c++],n=r[c++];break;case o.L:if(d=r[c++],h=r[c++],m=l?(e-a)/(d-a):(e-n)/(h-n),m<=1&&m>=0){var v=l?(h-n)*m+n:(d-a)*m+a;return l?[e,v]:[v,e]}a=d,n=h;break;case o.C:d=r[c++],h=r[c++],p=r[c++],g=r[c++],f=r[c++],y=r[c++];var b=l?Object(H["f"])(a,d,p,f,e,s):Object(H["f"])(n,h,g,y,e,s);if(b>0)for(var x=0;x<b;x++){var S=s[x];if(S<=1&&S>=0){v=l?Object(H["a"])(n,h,g,y,S):Object(H["a"])(a,d,p,f,S);return l?[e,v]:[v,e]}}a=f,n=y;break}}},t}(B["b"]),J=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(l["a"])(t,e),t}(Z),K=function(e){function t(t){var a=e.call(this,t)||this;return a.type="ec-polygon",a}return Object(l["a"])(t,e),t.prototype.getDefaultShape=function(){return new J},t.prototype.buildPath=function(e,t){var a=t.points,n=t.stackedOnPoints,i=0,r=a.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;r>0;r--)if(!X(a[2*r-2],a[2*r-1]))break;for(;i<r;i++)if(!X(a[2*i],a[2*i+1]))break}while(i<r){var l=U(e,a,i,r,r,1,t.smooth,o,t.connectNulls);U(e,n,i+l-1,l,r,-1,t.stackedOnSmooth,o,t.connectNulls),i+=l+1,e.closePath()}},t}(B["b"]),Q=a("e887"),$=a("c7a2"),ee=a("4aa2"),te=a("3842");function ae(e,t,a,n,i){var r=e.getArea(),o=r.x,l=r.y,c=r.width,u=r.height,d=a.get(["lineStyle","width"])||2;o-=d/2,l-=d/2,c+=d,u+=d,o=Math.floor(o),c=Math.round(c);var h=new $["a"]({shape:{x:o,y:l,width:c,height:u}});if(t){var p=e.getBaseAxis(),g=p.isHorizontal(),f=p.inverse;g?(f&&(h.shape.x+=c),h.shape.width=0):(f||(h.shape.y+=u),h.shape.height=0);var y=Object(s["w"])(i)?function(e){i(e,h)}:null;z["c"](h,{shape:{width:c,height:u,x:o,y:l}},a,null,n,y)}return h}function ne(e,t,a){var n=e.getArea(),i=Object(te["u"])(n.r0,1),r=Object(te["u"])(n.r,1),o=new ee["a"]({shape:{cx:Object(te["u"])(e.cx,1),cy:Object(te["u"])(e.cy,1),r0:i,r:r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var l="angle"===e.getBaseAxis().dim;l?o.shape.endAngle=n.startAngle:o.shape.r=i,z["c"](o,{shape:{endAngle:n.endAngle,r:r}},a)}return o}function ie(e,t,a,n,i){return e?"polar"===e.type?ne(e,t,a):"cartesian2d"===e.type?ae(e,t,a,n,i):null:null}var re=a("5426"),oe=a("7d6c"),le=a("7837"),se=a("c775"),ce=a("861c"),ue=a("eda2"),de=a("41ef");function he(e,t){if(e.length===t.length){for(var a=0;a<e.length;a++)if(e[a]!==t[a])return;return!0}}function pe(e){for(var t=1/0,a=1/0,n=-1/0,i=-1/0,r=0;r<e.length;){var o=e[r++],l=e[r++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(l)||(a=Math.min(l,a),i=Math.max(l,i))}return[[t,a],[n,i]]}function ge(e,t){var a=pe(e),n=a[0],i=a[1],r=pe(t),o=r[0],l=r[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-l[0]),Math.abs(i[1]-l[1]))}function fe(e){return s["z"](e)?e:e?.5:0}function ye(e,t,a){if(!a.valueDim)return[];for(var n=t.count(),i=Object(k["a"])(2*n),r=0;r<n;r++){var o=P(a,e,t,r);i[2*r]=o[0],i[2*r+1]=o[1]}return i}function me(e,t,a,n){var i=t.getBaseAxis(),r="x"===i.dim||"radius"===i.dim?0:1,o=[],l=0,s=[],c=[],u=[],d=[];if(n){for(l=0;l<e.length;l+=2)isNaN(e[l])||isNaN(e[l+1])||d.push(e[l],e[l+1]);e=d}for(l=0;l<e.length-2;l+=2)switch(u[0]=e[l+2],u[1]=e[l+3],c[0]=e[l],c[1]=e[l+1],o.push(c[0],c[1]),a){case"end":s[r]=u[r],s[1-r]=c[1-r],o.push(s[0],s[1]);break;case"middle":var h=(c[r]+u[r])/2,p=[];s[r]=p[r]=h,s[1-r]=c[1-r],p[1-r]=u[1-r],o.push(s[0],s[1]),o.push(p[0],p[1]);break;default:s[r]=c[r],s[1-r]=u[1-r],o.push(s[0],s[1])}return o.push(e[l++],e[l++]),o}function ve(e,t){var a,n,i=[],r=e.length;function o(e,t,a){var n=e.coord,i=(a-n)/(t.coord-n),r=Object(de["b"])(i,[e.color,t.color]);return{coord:a,color:r}}for(var l=0;l<r;l++){var s=e[l],c=s.coord;if(c<0)a=s;else{if(c>t){n?i.push(o(n,s,t)):a&&i.push(o(a,s,0),o(a,s,t));break}a&&(i.push(o(a,s,0)),a=null),i.push(s),n=s}}return i}function be(e,t,a){var n=e.getVisual("visualMeta");if(n&&n.length&&e.count()&&"cartesian2d"===t.type){for(var i,r,o=n.length-1;o>=0;o--){var l=e.getDimensionInfo(n[o].dimension);if(i=l&&l.coordDim,"x"===i||"y"===i){r=n[o];break}}if(r){var c=t.getAxis(i),u=s["H"](r.stops,(function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}})),d=u.length,h=r.outerColors.slice();d&&u[0].coord>u[d-1].coord&&(u.reverse(),h.reverse());var p=ve(u,"x"===i?a.getWidth():a.getHeight()),g=p.length;if(!g&&d)return u[0].coord<0?h[1]?h[1]:u[d-1].color:h[0]?h[0]:u[0].color;var f=10,y=p[0].coord-f,m=p[g-1].coord+f,v=m-y;if(v<.001)return"transparent";s["k"](p,(function(e){e.offset=(e.coord-y)/v})),p.push({offset:g?p[g-1].offset:.5,color:h[1]||"transparent"}),p.unshift({offset:g?p[0].offset:.5,color:h[0]||"transparent"});var b=new V["a"](0,0,0,0,p,!0);return b[i]=y,b[i+"2"]=m,b}}}function xe(e,t,a){var n=e.get("showAllSymbol"),i="auto"===n;if(!n||i){var r=a.getAxesByScale("ordinal")[0];if(r&&(!i||!Se(r,t))){var o=t.mapDimension(r.dim),l={};return s["k"](r.getViewLabels(),(function(e){var t=r.scale.getRawOrdinalNumber(e.tickValue);l[t]=1})),function(e){return!l.hasOwnProperty(t.get(o,e))}}}}function Se(e,t){var a=e.getExtent(),n=Math.abs(a[1]-a[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),r=Math.max(1,Math.round(i/5)),o=0;o<i;o+=r)if(1.5*C["a"].getSymbolSize(t,o)[e.isHorizontal()?1:0]>n)return!1;return!0}function _e(e,t){return isNaN(e)||isNaN(t)}function Oe(e){for(var t=e.length/2;t>0;t--)if(!_e(e[2*t-2],e[2*t-1]))break;return t-1}function we(e,t){return[e[2*t],e[2*t+1]]}function Ie(e,t,a){for(var n,i,r=e.length/2,o="x"===a?0:1,l=0,s=-1,c=0;c<r;c++)if(i=e[2*c+o],!isNaN(i)&&!isNaN(e[2*c+1-o]))if(0!==c){if(n<=t&&i>=t||n>=t&&i<=t){s=c;break}l=c,n=i}else n=i;return{range:[l,s],t:(t-n)/(i-n)}}function je(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<oe["g"].length;t++)if(e.get([oe["g"][t],"endLabel","show"]))return!0;return!1}function Me(e,t,a,n){if(Object(re["a"])(t,"cartesian2d")){var i=n.getModel("endLabel"),r=i.get("valueAnimation"),o=n.getData(),l={lastFrameIndex:0},s=je(n)?function(a,n){e._endLabelOnDuring(a,n,o,l,r,i,t)}:null,c=t.getBaseAxis().isHorizontal(),u=ae(t,a,n,(function(){var t=e._endLabel;t&&a&&null!=l.originalX&&t.attr({x:l.originalX,y:l.originalY})}),s);if(!n.get("clip",!0)){var d=u.shape,h=Math.max(d.width,d.height);c?(d.y-=h,d.height+=2*h):(d.x-=h,d.width+=2*h)}return s&&s(1,u),u}return ne(t,a,n)}function De(e,t){var a=t.getBaseAxis(),n=a.isHorizontal(),i=a.inverse,r=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||r,verticalAlign:e.get("verticalAlign")||o}}}var Le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(l["a"])(t,e),t.prototype.init=function(){var e=new M["a"],t=new A["a"];this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,a){var n=this,i=e.coordinateSystem,r=this.group,o=e.getData(),l=e.getModel("lineStyle"),c=e.getModel("areaStyle"),u=o.getLayout("points")||[],d="polar"===i.type,h=this._coordSys,p=this._symbolDraw,g=this._polyline,f=this._polygon,y=this._lineGroup,m=e.get("animation"),v=!c.isEmpty(),b=c.get("origin"),x=N(i,o,b),S=v&&ye(i,o,x),_=e.get("showSymbol"),O=e.get("connectNulls"),w=_&&!d&&xe(e,o,i),I=this._data;I&&I.eachItemGraphicEl((function(e,t){e.__temp&&(r.remove(e),I.setItemGraphicEl(t,null))})),_||p.remove(),r.add(y);var j,M=!d&&e.get("step");i&&i.getArea&&e.get("clip",!0)&&(j=i.getArea(),null!=j.width?(j.x-=.1,j.y-=.1,j.width+=.2,j.height+=.2):j.r0&&(j.r0-=.5,j.r+=.5)),this._clipShapeForSymbol=j;var D=be(o,i,a)||o.getVisual("style")[o.getVisual("drawType")];if(g&&h.type===i.type&&M===this._step){v&&!f?f=this._newPolygon(u,S):f&&!v&&(y.remove(f),f=this._polygon=null),d||this._initOrUpdateEndLabel(e,i,Object(ue["b"])(D));var L=y.getClipPath();if(L){var A=Me(this,i,!1,e);z["c"](L,{shape:A.shape},e)}else y.setClipPath(Me(this,i,!0,e));_&&p.updateData(o,{isIgnore:w,clipShape:j,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),he(this._stackedOnPoints,S)&&he(this._points,u)||(m?this._doUpdateAnimation(o,S,i,a,M,b,O):(M&&(u=me(u,i,M,O),S&&(S=me(S,i,M,O))),g.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:S})))}else _&&p.updateData(o,{isIgnore:w,clipShape:j,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),m&&this._initSymbolLabelAnimation(o,i,j),M&&(u=me(u,i,M,O),S&&(S=me(S,i,M,O))),g=this._newPolyline(u),v?f=this._newPolygon(u,S):f&&(y.remove(f),f=this._polygon=null),d||this._initOrUpdateEndLabel(e,i,Object(ue["b"])(D)),y.setClipPath(Me(this,i,!0,e));var C=e.getModel("emphasis"),T=C.get("focus"),P=C.get("blurScope"),k=C.get("disabled");if(g.useStyle(s["i"](l.getLineStyle(),{fill:"none",stroke:D,lineJoin:"bevel"})),Object(oe["I"])(g,e,"lineStyle"),g.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"])){var E=g.getState("emphasis").style;E.lineWidth=+g.style.lineWidth+1}Object(ce["a"])(g).seriesIndex=e.seriesIndex,Object(oe["J"])(g,T,P,k);var R=fe(e.get("smooth")),V=e.get("smoothMonotone");if(g.setShape({smooth:R,smoothMonotone:V,connectNulls:O}),f){var G=o.getCalculationInfo("stackedOnSeries"),B=0;f.useStyle(s["i"](c.getAreaStyle(),{fill:D,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),G&&(B=fe(G.get("smooth"))),f.setShape({smooth:R,stackedOnSmooth:B,smoothMonotone:V,connectNulls:O}),Object(oe["I"])(f,e,"areaStyle"),Object(ce["a"])(f).seriesIndex=e.seriesIndex,Object(oe["J"])(f,T,P,k)}var F=function(e){n._changePolyState(e)};o.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=F)})),this._polyline.onHoverStateChange=F,this._data=o,this._coordSys=i,this._stackedOnPoints=S,this._points=u,this._step=M,this._valueOrigin=b,e.get("triggerLineEvent")&&(this.packEventData(e,g),f&&this.packEventData(e,f))},t.prototype.packEventData=function(e,t){Object(ce["a"])(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,a,n){var i=e.getData(),r=h["u"](i,n);if(this._changePolyState("emphasis"),!(r instanceof Array)&&null!=r&&r>=0){var o=i.getLayout("points"),l=i.getItemGraphicEl(r);if(!l){var s=o[2*r],c=o[2*r+1];if(isNaN(s)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s,c))return;var u=e.get("zlevel")||0,d=e.get("z")||0;l=new C["a"](i,r),l.x=s,l.y=c,l.setZ(u,d);var p=l.getSymbolPath().getTextContent();p&&(p.zlevel=u,p.z=d,p.z2=this._polyline.z2+1),l.__temp=!0,i.setItemGraphicEl(r,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else Q["a"].prototype.highlight.call(this,e,t,a,n)},t.prototype.downplay=function(e,t,a,n){var i=e.getData(),r=h["u"](i,n);if(this._changePolyState("normal"),null!=r&&r>=0){var o=i.getItemGraphicEl(r);o&&(o.__temp?(i.setItemGraphicEl(r,null),this.group.remove(o)):o.downplay())}else Q["a"].prototype.downplay.call(this,e,t,a,n)},t.prototype._changePolyState=function(e){var t=this._polygon;Object(oe["H"])(this._polyline,e),t&&Object(oe["H"])(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new q({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new K({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,t,a){var n,i,r=t.getBaseAxis(),o=r.inverse;"cartesian2d"===t.type?(n=r.isHorizontal(),i=!1):"polar"===t.type&&(n="angle"===r.dim,i=!0);var l=e.hostModel,c=l.get("animationDuration");s["w"](c)&&(c=c(null));var u=l.get("animationDelay")||0,d=s["w"](u)?u(null):u;e.eachItemGraphicEl((function(e,r){var l=e;if(l){var h=[e.x,e.y],p=void 0,g=void 0,f=void 0;if(a)if(i){var y=a,m=t.pointToCoord(h);n?(p=y.startAngle,g=y.endAngle,f=-m[1]/180*Math.PI):(p=y.r0,g=y.r,f=m[0])}else{var v=a;n?(p=v.x,g=v.x+v.width,f=e.x):(p=v.y+v.height,g=v.y,f=e.y)}var b=g===p?0:(f-p)/(g-p);o&&(b=1-b);var x=s["w"](u)?u(r):c*b+d,S=l.getSymbolPath(),_=S.getTextContent();l.attr({scaleX:0,scaleY:0}),l.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),_&&_.animateFrom({style:{opacity:0}},{duration:300,delay:x}),S.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,a){var n=e.getModel("endLabel");if(je(e)){var i=e.getData(),r=this._polyline,o=i.getLayout("points");if(!o)return r.removeTextContent(),void(this._endLabel=null);var l=this._endLabel;l||(l=this._endLabel=new G["a"]({z2:200}),l.ignoreClip=!0,r.setTextContent(this._endLabel),r.disableLabelAnimation=!0);var s=Oe(o);s>=0&&(Object(le["g"])(r,Object(le["e"])(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:s,defaultText:function(e,t,a){return null!=a?Object(se["a"])(i,a):Object(se["b"])(i,e)},enableTextSetter:!0},De(n,t)),r.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,a,n,i,r,o){var l=this._endLabel,s=this._polyline;if(l){e<1&&null==n.originalX&&(n.originalX=l.x,n.originalY=l.y);var c=a.getLayout("points"),u=a.hostModel,d=u.get("connectNulls"),p=r.get("precision"),g=r.get("distance")||0,f=o.getBaseAxis(),y=f.isHorizontal(),m=f.inverse,v=t.shape,b=m?y?v.x:v.y+v.height:y?v.x+v.width:v.y,x=(y?g:0)*(m?-1:1),S=(y?0:-g)*(m?-1:1),_=y?"x":"y",O=Ie(c,b,_),w=O.range,I=w[1]-w[0],j=void 0;if(I>=1){if(I>1&&!d){var M=we(c,w[0]);l.attr({x:M[0]+x,y:M[1]+S}),i&&(j=u.getRawValue(w[0]))}else{M=s.getPointOn(b,_);M&&l.attr({x:M[0]+x,y:M[1]+S});var D=u.getRawValue(w[0]),L=u.getRawValue(w[1]);i&&(j=h["k"](a,p,D,L,O.t))}n.lastFrameIndex=w[0]}else{var A=1===e||n.lastFrameIndex>0?w[0]:0;M=we(c,A);i&&(j=u.getRawValue(A)),l.attr({x:M[0]+x,y:M[1]+S})}i&&Object(le["f"])(l).setLabelText(j)}},t.prototype._doUpdateAnimation=function(e,t,a,n,i,r,o){var l=this._polyline,s=this._polygon,c=e.hostModel,u=R(this._data,e,this._stackedOnPoints,t,this._coordSys,a,this._valueOrigin,r),d=u.current,h=u.stackedOnCurrent,p=u.next,g=u.stackedOnNext;if(i&&(d=me(u.current,a,i,o),h=me(u.stackedOnCurrent,a,i,o),p=me(u.next,a,i,o),g=me(u.stackedOnNext,a,i,o)),ge(d,p)>3e3||s&&ge(h,g)>3e3)return l.stopAnimation(),l.setShape({points:p}),void(s&&(s.stopAnimation(),s.setShape({points:p,stackedOnPoints:g})));l.shape.__points=u.current,l.shape.points=d;var f={shape:{points:p}};u.current!==d&&(f.shape.__points=u.next),l.stopAnimation(),z["h"](l,f,c),s&&(s.setShape({points:d,stackedOnPoints:h}),s.stopAnimation(),z["h"](s,{shape:{stackedOnPoints:g}},c),l.shape.points!==s.shape.points&&(s.shape.points=l.shape.points));for(var y=[],m=u.status,v=0;v<m.length;v++){var b=m[v].cmd;if("="===b){var x=e.getItemGraphicEl(m[v].idx1);x&&y.push({el:x,ptIdx:v})}}l.animators&&l.animators.length&&l.animators[0].during((function(){s&&s.dirtyShape();for(var e=l.shape.__points,t=0;t<y.length;t++){var a=y[t].el,n=2*y[t].ptIdx;a.x=e[n],a.y=e[n+1],a.markRedraw()}}))},t.prototype.remove=function(e){var t=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl((function(e,n){e.__temp&&(t.remove(e),a.setItemGraphicEl(n,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Q["a"]),Ae=Le,Ce=a("87c3"),Ne=a("fdde");function Te(e){e.registerChartView(Ae),e.registerSeriesModel(L),e.registerLayout(Object(Ce["a"])("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",a)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Object(Ne["a"])("line"))}var Pe=a("9d57"),ke=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return Object(l["a"])(t,e),t.prototype.getInitialData=function(e,t){return w(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,a){var n=this.coordinateSystem;if(n&&n.clampData){var i=n.dataToPoint(n.clampData(e));if(a)Object(s["k"])(n.getAxes(),(function(a,r){if("category"===a.type){var o=a.getTicksCoords(),l=n.clampData(e)[r];!t||"x1"!==t[r]&&"y1"!==t[r]||(l+=1),l>o.length-1&&(l=o.length-1),l<0&&(l=0),o[l]&&(i[r]=a.toGlobalCoord(o[l].coord))}}));else{var r=this.getData(),o=r.getLayout("offset"),l=r.getLayout("size"),c=n.getBaseAxis().isHorizontal()?0:1;i[c]+=o+l/2}return i}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(I["b"]);I["b"].registerClass(ke);var Ee=ke,Re=a("8918"),Ve=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return Object(l["a"])(t,e),t.prototype.getInitialData=function(){return w(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,a){return a.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Object(Re["d"])(Ee.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Ee),ze=Ve,Ge=a("2306"),Be=a("88b3"),Fe=a("c2be"),He=a("cd07"),Ye=Math.max,We=Math.min;function Xe(e,t){var a=e.getArea&&e.getArea();if(Object(re["a"])(e,"cartesian2d")){var n=e.getBaseAxis();if("category"!==n.type||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(a.x-=i,a.width+=2*i):(a.y-=i,a.height+=2*i)}}return a}var Ue=function(e){function t(){var a=e.call(this)||this;return a.type=t.type,a._isFirstFrame=!0,a}return Object(l["a"])(t,e),t.prototype.render=function(e,t,a,n){this._model=e,this._removeOnRenderedListener(a),this._updateDrawMode(e);var i=e.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,a):this._renderNormal(e,t,a,n))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){Object(Ge["traverseElements"])(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,a,n){var i,r=this.group,o=e.getData(),l=this._data,s=e.coordinateSystem,c=s.getBaseAxis();"cartesian2d"===s.type?i=c.isHorizontal():"polar"===s.type&&(i="angle"===c.dim);var u=e.isAnimationEnabled()?e:null,d=Je(e,s);d&&this._enableRealtimeSort(d,o,a);var h=e.get("clip",!0)||d,p=Xe(s,o);r.removeClipPath();var g=e.get("roundCap",!0),f=e.get("showBackground",!0),y=e.getModel("backgroundStyle"),m=y.get("borderRadius")||0,v=[],b=this._backgroundEls,x=n&&n.isInitSort,S=n&&"changeAxisOrder"===n.type;function _(e){var t=at[s.type](o,e),a=pt(s,i,t);return a.useStyle(y.getItemStyle()),"cartesian2d"===s.type&&a.setShape("r",m),v[e]=a,a}o.diff(l).add((function(t){var a=o.getItemModel(t),n=at[s.type](o,t,a);if(f&&_(t),o.hasValue(t)&&tt[s.type](n)){var l=!1;h&&(l=Ze[s.type](p,n));var y=qe[s.type](e,o,t,n,i,u,c.model,!1,g);d&&(y.forceLabelAnimation=!0),rt(y,o,t,a,n,e,i,"polar"===s.type),x?y.attr({shape:n}):d?Ke(d,u,y,n,t,i,!1,!1):Object(z["c"])(y,{shape:n},e,t),o.setItemGraphicEl(t,y),r.add(y),y.ignore=l}})).update((function(t,a){var n=o.getItemModel(t),O=at[s.type](o,t,n);if(f){var w=void 0;0===b.length?w=_(a):(w=b[a],w.useStyle(y.getItemStyle()),"cartesian2d"===s.type&&w.setShape("r",m),v[t]=w);var I=at[s.type](o,t),j=ht(i,I,s);Object(z["h"])(w,{shape:j},u,t)}var M=l.getItemGraphicEl(a);if(o.hasValue(t)&&tt[s.type](O)){var D=!1;if(h&&(D=Ze[s.type](p,O),D&&r.remove(M)),M?Object(z["g"])(M):M=qe[s.type](e,o,t,O,i,u,c.model,!!M,g),d&&(M.forceLabelAnimation=!0),S){var L=M.getTextContent();if(L){var A=Object(le["f"])(L);null!=A.prevValue&&(A.prevValue=A.value)}}else rt(M,o,t,n,O,e,i,"polar"===s.type);x?M.attr({shape:O}):d?Ke(d,u,M,O,t,i,!0,S):Object(z["h"])(M,{shape:O},e,t,null),o.setItemGraphicEl(t,M),M.ignore=D,r.add(M)}else r.remove(M)})).remove((function(t){var a=l.getItemGraphicEl(t);a&&Object(z["f"])(a,e,t)})).execute();var O=this._backgroundGroup||(this._backgroundGroup=new M["a"]);O.removeAll();for(var w=0;w<v.length;++w)O.add(v[w]);r.add(O),this._backgroundEls=v,this._data=o},t.prototype._renderLarge=function(e,t,a){this._clear(),ct(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),ct(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&ie(e.coordinateSystem,!1,e),a=this.group;t?a.setClipPath(t):a.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,a){var n=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,a),this._isFirstFrame=!1;else{var r=function(e){var a=t.getItemGraphicEl(e),n=a&&a.shape;return n&&Math.abs(i.isHorizontal()?n.height:n.width)||0};this._onRendered=function(){n._updateSortWithinSameData(t,r,i,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,a){var n=[];return e.each(e.mapDimension(t.dim),(function(e,t){var i=a(t);i=null==i?NaN:i,n.push({dataIndex:t,mappedValue:i,ordinalNumber:e})})),n.sort((function(e,t){return t.mappedValue-e.mappedValue})),{ordinalNumbers:Object(s["H"])(n,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(e,t,a){for(var n=a.scale,i=e.mapDimension(a.dim),r=Number.MAX_VALUE,o=0,l=n.getOrdinalMeta().categories.length;o<l;++o){var s=e.rawIndexOf(i,n.getRawOrdinalNumber(o)),c=s<0?Number.MIN_VALUE:t(e.indexOfRawIndex(s));if(c>r)return!0;r=c}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var a=t.scale,n=a.getExtent(),i=Math.max(0,n[0]),r=Math.min(n[1],a.getOrdinalMeta().categories.length-1);i<=r;++i)if(e.ordinalNumbers[i]!==a.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,a,n){if(this._isOrderChangedWithinSameData(e,t,a)){var i=this._dataSort(e,a,t);this._isOrderDifferentInView(i,a)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,a){var n=t.baseAxis,i=this._dataSort(e,n,(function(a){return e.get(e.mapDimension(t.otherAxis.dim),a)}));a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl((function(t){Object(z["f"])(t,e,Object(ce["a"])(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Q["a"]),Ze={cartesian2d:function(e,t){var a=t.width<0?-1:1,n=t.height<0?-1:1;a<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,r=e.y+e.height,o=Ye(t.x,e.x),l=We(t.x+t.width,i),s=Ye(t.y,e.y),c=We(t.y+t.height,r),u=l<o,d=c<s;return t.x=u&&o>i?l:o,t.y=d&&s>r?c:s,t.width=u?0:l-o,t.height=d?0:c-s,a<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var a=t.r0<=t.r?1:-1;if(a<0){var n=t.r;t.r=t.r0,t.r0=n}var i=We(t.r,e.r),r=Ye(t.r0,e.r0);t.r=i,t.r0=r;var o=i-r<0;if(a<0){n=t.r;t.r=t.r0,t.r0=n}return o}},qe={cartesian2d:function(e,t,a,n,i,r,o,l,c){var u=new $["a"]({shape:Object(s["m"])({},n),z2:1});if(u.__dataIndex=a,u.name="item",r){var d=u.shape,h=i?"height":"width";d[h]=0}return u},polar:function(e,t,a,n,i,r,o,l,s){var c=!i&&s?Fe["a"]:ee["a"],u=new c({shape:n,z2:1});u.name="item";var d=it(i);if(u.calculateTextPosition=Object(He["a"])(d,{isRoundCap:c===Fe["a"]}),r){var h=u.shape,p=i?"r":"endAngle",g={};h[p]=i?0:n.startAngle,g[p]=n[p],(l?z["h"]:z["c"])(u,{shape:g},r)}return u}};function Je(e,t){var a=e.get("realtimeSort",!0),n=t.getBaseAxis();if(a&&"category"===n.type&&"cartesian2d"===t.type)return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function Ke(e,t,a,n,i,r,o,l){var s,c;r?(c={x:n.x,width:n.width},s={y:n.y,height:n.height}):(c={y:n.y,height:n.height},s={x:n.x,width:n.width}),l||(o?z["h"]:z["c"])(a,{shape:s},t,i,null);var u=t?e.baseAxis.model:null;(o?z["h"]:z["c"])(a,{shape:c},u,i)}function Qe(e,t){for(var a=0;a<t.length;a++)if(!isFinite(e[t[a]]))return!0;return!1}var $e=["x","y","width","height"],et=["cx","cy","r","startAngle","endAngle"],tt={cartesian2d:function(e){return!Qe(e,$e)},polar:function(e){return!Qe(e,et)}},at={cartesian2d:function(e,t,a){var n=e.getItemLayout(t),i=a?ot(a,n):0,r=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+r*i/2,y:n.y+o*i/2,width:n.width-r*i,height:n.height-o*i}},polar:function(e,t,a){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function nt(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function it(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function rt(e,t,a,n,i,r,o,l){var c=t.getItemVisual(a,"style");l||e.setShape("r",n.get(["itemStyle","borderRadius"])||0),e.useStyle(c);var u=n.getShallow("cursor");u&&e.attr("cursor",u);var d=l?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",h=Object(le["e"])(n);Object(le["g"])(e,h,{labelFetcher:r,labelDataIndex:a,defaultText:Object(se["b"])(r.getData(),a),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:d});var p=e.getTextContent();if(l&&p){var g=n.get(["label","position"]);e.textConfig.inside="middle"===g||null,Object(He["b"])(e,"outside"===g?d:g,it(o),n.get(["label","rotate"]))}Object(le["h"])(p,h,r.getRawValue(a),(function(e){return Object(se["a"])(t,e)}));var f=n.getModel(["emphasis"]);Object(oe["J"])(e,f.get("focus"),f.get("blurScope"),f.get("disabled")),Object(oe["I"])(e,n),nt(i)&&(e.style.fill="none",e.style.stroke="none",Object(s["k"])(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}function ot(e,t){var a=e.get(["itemStyle","borderColor"]);if(!a||"none"===a)return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),r=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,r)}var lt=function(){function e(){}return e}(),st=function(e){function t(t){var a=e.call(this,t)||this;return a.type="largeBar",a}return Object(l["a"])(t,e),t.prototype.getDefaultShape=function(){return new lt},t.prototype.buildPath=function(e,t){for(var a=t.points,n=this.baseDimIdx,i=1-this.baseDimIdx,r=[],o=[],l=this.barWidth,s=0;s<a.length;s+=3)o[n]=l,o[i]=a[s+2],r[n]=a[s+n],r[i]=a[s+i],e.rect(r[0],r[1],o[0],o[1])},t}(B["b"]);function ct(e,t,a,n){var i=e.getData(),r=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),l=i.getLayout("size"),s=e.getModel("backgroundStyle"),c=i.getLayout("largeBackgroundPoints");if(c){var u=new st({shape:{points:c},incremental:!!n,silent:!0,z2:0});u.baseDimIdx=r,u.largeDataIndices=o,u.barWidth=l,u.useStyle(s.getItemStyle()),t.add(u),a&&a.push(u)}var d=new st({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=r,d.largeDataIndices=o,d.barWidth=l,t.add(d),d.useStyle(i.getVisual("style")),Object(ce["a"])(d).seriesIndex=e.seriesIndex,e.get("silent")||(d.on("mousedown",ut),d.on("mousemove",ut)),a&&a.push(d)}var ut=Object(Be["c"])((function(e){var t=this,a=dt(t,e.offsetX,e.offsetY);Object(ce["a"])(t).dataIndex=a>=0?a:null}),30,!1);function dt(e,t,a){for(var n=e.baseDimIdx,i=1-n,r=e.shape.points,o=e.largeDataIndices,l=[],s=[],c=e.barWidth,u=0,d=r.length/3;u<d;u++){var h=3*u;if(s[n]=c,s[i]=r[h+2],l[n]=r[h+n],l[i]=r[h+i],s[i]<0&&(l[i]+=s[i],s[i]=-s[i]),t>=l[0]&&t<=l[0]+s[0]&&a>=l[1]&&a<=l[1]+s[1])return o[u]}return-1}function ht(e,t,a){if(Object(re["a"])(a,"cartesian2d")){var n=t,i=a.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}i=a.getArea();var r=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:r.r0,r:e?i.r:r.r,startAngle:e?r.startAngle:0,endAngle:e?r.endAngle:2*Math.PI}}function pt(e,t,a){var n="polar"===e.type?ee["a"]:$["a"];return new n({shape:ht(t,a,e),silent:!0,z2:0})}var gt=Ue;function ft(e){e.registerChartView(gt),e.registerSeriesModel(ze),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,s["h"](Pe["c"],"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Object(Pe["a"])("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Object(Ne["a"])("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var a=e.componentType||"series";t.eachComponent({mainType:a,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}var yt=a("f3bb"),mt=a("f934"),vt=2*Math.PI,bt=Math.PI/180;function xt(e,t){return mt["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function St(e,t){var a=xt(e,t),n=e.get("center"),i=e.get("radius");s["t"](i)||(i=[0,i]);var r,o,l=Object(te["o"])(a.width,t.getWidth()),c=Object(te["o"])(a.height,t.getHeight()),u=Math.min(l,c),d=Object(te["o"])(i[0],u/2),h=Object(te["o"])(i[1],u/2),p=e.coordinateSystem;if(p){var g=p.dataToPoint(n);r=g[0]||0,o=g[1]||0}else s["t"](n)||(n=[n,n]),r=Object(te["o"])(n[0],l)+a.x,o=Object(te["o"])(n[1],c)+a.y;return{cx:r,cy:o,r0:d,r:h}}function _t(e,t,a){t.eachSeriesByType(e,(function(e){var t=e.getData(),n=t.mapDimension("value"),i=xt(e,a),r=St(e,a),o=r.cx,l=r.cy,s=r.r,c=r.r0,u=-e.get("startAngle")*bt,d=e.get("minAngle")*bt,h=0;t.each(n,(function(e){!isNaN(e)&&h++}));var p=t.getSum(n),g=Math.PI/(p||h)*2,f=e.get("clockwise"),y=e.get("roseType"),m=e.get("stillShowZeroSum"),v=t.getDataExtent(n);v[0]=0;var b=vt,x=0,S=u,_=f?1:-1;if(t.setLayout({viewRect:i,r:s}),t.each(n,(function(e,a){var n;if(isNaN(e))t.setItemLayout(a,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:f,cx:o,cy:l,r0:c,r:y?NaN:s});else{n="area"!==y?0===p&&m?g:e*g:vt/h,n<d?(n=d,b-=d):x+=e;var i=S+_*n;t.setItemLayout(a,{angle:n,startAngle:S,endAngle:i,clockwise:f,cx:o,cy:l,r0:c,r:y?Object(te["k"])(e,v,[c,s]):s}),S=i}})),b<vt&&h)if(b<=.001){var O=vt/h;t.each(n,(function(e,a){if(!isNaN(e)){var n=t.getItemLayout(a);n.angle=O,n.startAngle=u+_*a*O,n.endAngle=u+_*(a+1)*O}}))}else g=b/x,S=u,t.each(n,(function(e,a){if(!isNaN(e)){var n=t.getItemLayout(a),i=n.angle===d?d:e*g;n.startAngle=S,n.endAngle=S+_*i,S+=_*i}}))}))}var Ot=a("d3f4"),wt=a("d498"),It=a("dce8"),jt=a("89b6"),Mt=a("2355"),Dt=Math.PI/180;function Lt(e,t,a,n,i,r,o,l,s,c){if(!(e.length<2)){for(var u=e.length,d=0;d<u;d++)if("outer"===e[d].position&&"labelLine"===e[d].labelAlignTo){var h=e[d].label.x-c;e[d].linePoints[1][0]+=h,e[d].label.x=c}Object(Mt["d"])(e,s,s+o)&&g(e)}function p(e){for(var r=e.rB,o=r*r,l=0;l<e.list.length;l++){var s=e.list[l],c=Math.abs(s.label.y-a),u=n+s.len,d=u*u,h=Math.sqrt((1-Math.abs(c*c/o))*d),p=t+(h+s.len2)*i,g=p-s.label.x,f=s.targetTextWidth-g*i;Ct(s,f,!0),s.label.x=p}}function g(e){for(var r={list:[],maxY:0},o={list:[],maxY:0},l=0;l<e.length;l++)if("none"===e[l].labelAlignTo){var s=e[l],c=s.label.y>a?o:r,u=Math.abs(s.label.y-a);if(u>=c.maxY){var d=s.label.x-t-s.len2*i,h=n+s.len,g=Math.abs(d)<h?Math.sqrt(u*u/(1-d*d/h/h)):h;c.rB=g,c.maxY=u}c.list.push(s)}p(r),p(o)}}function At(e,t,a,n,i,r,o,l){for(var s=[],c=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,h=0;h<e.length;h++){var p=e[h].label;Nt(e[h])||(p.x<t?(u=Math.min(u,p.x),s.push(e[h])):(d=Math.max(d,p.x),c.push(e[h])))}for(h=0;h<e.length;h++){var g=e[h];if(!Nt(g)&&g.linePoints){if(null!=g.labelStyleWidth)continue;p=g.label;var f=g.linePoints,y=void 0;y="edge"===g.labelAlignTo?p.x<t?f[2][0]-g.labelDistance-o-g.edgeDistance:o+i-g.edgeDistance-f[2][0]-g.labelDistance:"labelLine"===g.labelAlignTo?p.x<t?u-o-g.bleedMargin:o+i-d-g.bleedMargin:p.x<t?p.x-o-g.bleedMargin:o+i-p.x-g.bleedMargin,g.targetTextWidth=y,Ct(g,y)}}Lt(c,t,a,n,1,i,r,o,l,d),Lt(s,t,a,n,-1,i,r,o,l,u);for(h=0;h<e.length;h++){g=e[h];if(!Nt(g)&&g.linePoints){p=g.label,f=g.linePoints;var m="edge"===g.labelAlignTo,v=p.style.padding,b=v?v[1]+v[3]:0,x=p.style.backgroundColor?0:b,S=g.rect.width+x,_=f[1][0]-f[2][0];m?p.x<t?f[2][0]=o+g.edgeDistance+S+g.labelDistance:f[2][0]=o+i-g.edgeDistance-S-g.labelDistance:(p.x<t?f[2][0]=p.x+g.labelDistance:f[2][0]=p.x-g.labelDistance,f[1][0]=f[2][0]+_),f[1][1]=f[2][1]=p.y}}}function Ct(e,t,a){if(void 0===a&&(a=!1),null==e.labelStyleWidth){var n=e.label,i=n.style,r=e.rect,o=i.backgroundColor,l=i.padding,s=l?l[1]+l[3]:0,c=i.overflow,u=r.width+(o?0:s);if(t<u||a){var d=r.height;if(c&&c.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-s);var h=n.getBoundingRect();n.setStyle("width",Math.ceil(h.width)),n.setStyle("backgroundColor",o)}else{var p=t-s,g=t<u?p:a?p>e.unconstrainedWidth?null:p:null;n.setStyle("width",g)}var f=n.getBoundingRect();r.width=f.width;var y=(n.style.margin||0)+2.1;r.height=f.height+y,r.y-=(r.height-d)/2}}}function Nt(e){return"center"===e.position}function Tt(e){var t,a,n=e.getData(),i=[],r=!1,o=(e.get("minShowLabelAngle")||0)*Dt,l=n.getLayout("viewRect"),c=n.getLayout("r"),u=l.width,d=l.x,h=l.y,p=l.height;function g(e){e.ignore=!0}function f(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}n.each((function(e){var l=n.getItemGraphicEl(e),h=l.shape,p=l.getTextContent(),y=l.getTextGuideLine(),m=n.getItemModel(e),v=m.getModel("label"),b=v.get("position")||m.get(["emphasis","label","position"]),x=v.get("distanceToLabelLine"),S=v.get("alignTo"),_=Object(te["o"])(v.get("edgeDistance"),u),O=v.get("bleedMargin"),w=m.getModel("labelLine"),I=w.get("length");I=Object(te["o"])(I,u);var j=w.get("length2");if(j=Object(te["o"])(j,u),Math.abs(h.endAngle-h.startAngle)<o)return Object(s["k"])(p.states,g),p.ignore=!0,void(y&&(Object(s["k"])(y.states,g),y.ignore=!0));if(f(p)){var M,D,L,A,C=(h.startAngle+h.endAngle)/2,N=Math.cos(C),T=Math.sin(C);t=h.cx,a=h.cy;var P="inside"===b||"inner"===b;if("center"===b)M=h.cx,D=h.cy,A="center";else{var k=(P?(h.r+h.r0)/2*N:h.r*N)+t,E=(P?(h.r+h.r0)/2*T:h.r*T)+a;if(M=k+3*N,D=E+3*T,!P){var R=k+N*(I+c-h.r),V=E+T*(I+c-h.r),z=R+(N<0?-1:1)*j,G=V;M="edge"===S?N<0?d+_:d+u-_:z+(N<0?-x:x),D=G,L=[[k,E],[R,V],[z,G]]}A=P?"center":"edge"===S?N>0?"right":"left":N>0?"left":"right"}var B=Math.PI,F=0,H=v.get("rotate");if(Object(s["z"])(H))F=H*(B/180);else if("center"===b)F=0;else if("radial"===H||!0===H){var Y=N<0?-C+B:-C;F=Y}else if("tangential"===H&&"outside"!==b&&"outer"!==b){var W=Math.atan2(N,T);W<0&&(W=2*B+W);var X=T>0;X&&(W=B+W),F=W-B}if(r=!!F,p.x=M,p.y=D,p.rotation=F,p.setStyle({verticalAlign:"middle"}),P){p.setStyle({align:A});var U=p.states.select;U&&(U.x+=p.x,U.y+=p.y)}else{var Z=p.getBoundingRect().clone();Z.applyTransform(p.getComputedTransform());var q=(p.style.margin||0)+2.1;Z.y-=q/2,Z.height+=q,i.push({label:p,labelLine:y,position:b,len:I,len2:j,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new It["a"](N,T),linePoints:L,textAlign:A,labelDistance:x,labelAlignTo:S,edgeDistance:_,bleedMargin:O,rect:Z,unconstrainedWidth:Z.width,labelStyleWidth:p.style.width})}l.setTextConfig({inside:P})}})),!r&&e.get("avoidLabelOverlap")&&At(i,t,a,c,u,p,d,h);for(var y=0;y<i.length;y++){var m=i[y],v=m.label,b=m.labelLine,x=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:m.textAlign}),x&&(Object(s["k"])(v.states,g),v.ignore=!0);var S=v.states.select;S&&(S.x+=v.x,S.y+=v.y)}if(b){var _=m.linePoints;x||!_?(Object(s["k"])(b.states,g),b.ignore=!0):(Object(jt["c"])(_,m.minTurnAngle),Object(jt["b"])(_,m.surfaceNormal,m.maxSurfaceAngle),b.setShape({points:_}),v.__hostTarget.textGuideLineConfig={anchor:new It["a"](_[0][0],_[0][1])})}}}var Pt=a("e86a");function kt(e,t,a){var n=e.get("borderRadius");if(null==n)return a?{cornerRadius:0}:null;Object(s["t"])(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Object(s["H"])(n,(function(e){return Object(Pt["g"])(e,i)}))}}var Et=function(e){function t(t,a,n){var i=e.call(this)||this;i.z2=2;var r=new G["a"];return i.setTextContent(r),i.updateData(t,a,n,!0),i}return Object(l["a"])(t,e),t.prototype.updateData=function(e,t,a,n){var i=this,r=e.hostModel,o=e.getItemModel(t),l=o.getModel("emphasis"),c=e.getItemLayout(t),u=Object(s["m"])(kt(o.getModel("itemStyle"),c,!0),c);if(isNaN(u.startAngle))i.setShape(u);else{if(n){i.setShape(u);var d=r.getShallow("animationType");r.ecModel.ssr?(z["c"](i,{scaleX:0,scaleY:0},r,{dataIndex:t,isFrom:!0}),i.origi