if(!_.waterfall){_.waterfall=1;(function($){var i6=function(a,b,c,d,e){$.gB.call(this,a,b,c,d,e)},j6=function(){$.BB.call(this);this.Fa("waterfall");this.je="waterfall";$.T(this.ua,[["dataMode",360448,1],["connectorStroke",32768,1]])},k6=function(a,b){var c=a.bb().transform(b),d=a.dc;if(a.za()){var e=d.left;d=d.width}else e=d.Ua(),d=-d.height;return e+c*d},Bna=function(a,b){for(var c=a.length;c--;){var d=a[c].data;if(d.length&&!d[b].o.missing)return c}return window.NaN},Gna=function(a){a.xc||(a.xc=a.La.Dd(),a.xc.zIndex(40),a.g.P(a.xc));for(var b=
a.Nh(0).vc(),c=a.g.anchor(),d=a.g.position();b.advance();){var e=b.la();if(Cna(a,e)){var f=a;var h=c,k=d;"auto"==h&&(h="auto"==k?0<=Dna(f,e)?"center-bottom":"center-top":"center"==k?"center":$.Co(k,180));f=$.Co(h,f.za()?-90:0);h=d;k="auto"==h?0<=Dna(a,e)?"center-top":"center-bottom":h;h=a;var l=Ena(h,e);l=$.xo(l,k);k=l.x;l=l.y;var m=k;k=h.za()?l:k;l=h.za()?m:l;h={value:{x:k,y:l}};m=a;k=e;l=new $.rw;m=Fna(m,k);k=$.av(l,{index:{value:k,type:"number"},value:{value:m,type:"number"}});l=(l=a.g.Vd(e))?
l:a.g.add(null,null,e);l.lf(k);l.uc(h);l.anchor(f)}}a.g.$()},Ena=function(a,b){var c=(0,$.Fg)(a.$j,function(a,b){return Math.max(b.W.mr,a)},-window.Infinity),d=a.$j[0].data[b].o.valueX-c/2,e=k6(a,Hna(a,b)),f=k6(a,Ina(a,b));return $.gn(d,e,c,f-e)},Dna=function(a,b){return(0,$.Fg)(a.fb,function(a,d){if(d.enabled()){var c=d.aa();c.select(b);c=c.get("value")||0;return a+c}return a},0)},Fna=function(a,b){return(0,$.Fg)(a.fb,function(a,d){if(d.enabled()){var c=d.aa();c.select(b);c=c.o("absolute")||0;return a+
c}return a},0)},Cna=function(a,b){return(0,$.Fg)(a.$j,function(a,d){return a||!d.data[b].o.missing},!1)},Hna=function(a,b){return(0,$.Fg)(a.fb,function(a,d){if(d.enabled()){var c=d.aa();c.select(b);var f=c.o("stackedValue")||0;c=c.o("stackedZero")||0;return Math.max(a,f,c)}return a},-window.Infinity)},Ina=function(a,b){return(0,$.Fg)(a.fb,function(a,d){if(d.enabled()){var c=d.aa();c.select(b);var f=c.o("stackedValue")||0;c=c.o("stackedZero")||0;return Math.min(f,c,a)}return a},window.Infinity)},l6=
function(a){$.xA.call(this,a)},Jna=function(a){var b=new j6;b.Kg();b.ld();for(var c=0,d=arguments.length;c<d;c++)b.waterfall(arguments[c]);return b},Kna={nja:"absolute",Nka:"diff"};$.H(i6,$.gB);$.g=i6.prototype;$.g.FE={"%BubbleSize":"size","%RangeStart":"low","%RangeEnd":"high","%XValue":"x","%Diff":"diff","%Absolute":"absolute","%IsTotal":"isTotal"};$.g.KN=function(a,b){if("auto"==a){if(1<this.Aa.Mj())return"center";a="value"}return i6.u.KN.call(this,a,b)};
$.g.Ai=function(a,b){"auto"==a&&(1<this.Aa.Mj()?a="center":a="value");return i6.u.Ai.call(this,a,b)};$.g.Em=function(a,b){var c=i6.u.Em.call(this,a,b);c.diff={value:b.o("diff"),type:"number"};c.absolute={value:b.o("absolute"),type:"number"};c.isTotal={value:b.o("isTotal"),type:""};return c};$.g.B1=function(){return{prevValue:0,Z0:!1,Jfa:"absolute"==this.Aa.i("dataMode")}};
$.g.j3=function(a,b,c){var d=-1<(0,$.za)(this.Am||[],b.o.rawIndex);a=a.get("isTotal");d=!!b.o.missing||d;var e=!(c.Z0||d);a=e||($.n(a)?!!a:d);!d||!e&&a?(d=c.Jfa?d?c.prevValue:+b.data.value:c.prevValue+(d?0:+b.data.value),b.o.absolute=d,b.o.diff=d-c.prevValue,b.o.isTotal=a,b.o.missing=0,c.Z0=!0,c.prevValue=d):b.o.missing=1};$.g.ZQ=function(a){return"value"==a?0<=(Number(this.aa().o("diff"))||0):i6.u.ZQ.call(this,a)};$.H(j6,$.BB);$.uz(j6,"waterfall","stackLabels");var Lna={};Lna.waterfall={Ab:32,Fb:2,Jb:[$.cH,$.gH,$.hH,$.lH,$.tH,$.TG],Ib:null,Cb:null,zb:$.tG|5767168,yb:"value",wb:"zero"};j6.prototype.Oi=Lna;$.yz(j6,j6.prototype.Oi);$.g=j6.prototype;$.g.zs=function(){return"waterfall"};$.g.GG=function(){return"value"};$.g.Vr=function(){};$.g.L0=function(a){return+a.o[a.o.isTotal?"absolute":"diff"]};
$.g.k3=function(a,b,c,d){var e=0,f;if(b)for(f=0;f<a.length;f++){var h=a[f].data[b-1];e+=Number(h.o.diff)||0}this.eb=[];for(f=b;f<=c;f++){for(var k=b=0;k<a.length;k++)h=a[k].data[f],h.o.isTotal||(h.o.stackedZero+=e,h.o.stackedValue+=e,h.o.stackedZeroPrev+=e,h.o.stackedValuePrev+=e,h.o.stackedZeroNext+=e,h.o.stackedValueNext+=e),d.Uc(h.o.stackedValue),d.Uc(h.o.stackedValuePrev),d.Uc(h.o.stackedValueNext),b+=h.o.missing?0:Number(h.o.diff)||0;e+=b;this.eb.push(e)}};
$.g.ei=function(a){j6.u.ei.call(this,a);(this.J(4)||$.er(this,"waterfall","stackLabels"))&&this.fi()};
$.g.PP=function(){j6.u.PP.call(this);this.G?this.G.clear():this.G=$.nk();var a=this.Va(),b=this.Lo[String($.oa(a))];if(b&&b.length){var c=this.i("connectorStroke");this.G.stroke(c);c=$.bc(c);this.G.parent(this.P());this.G.zIndex(1E3);this.G.clip(this.Rf());var d=this.za();a=a.Uu();var e=b[0].Ei,f=b[0].lastIndex,h;var k=Bna(b,e);if((0,window.isNaN)(k))var l=h=window.NaN;else{var m=b[k];k=m.data[e].o;var p=a?m.W.Zr($.n(k.category)?k.category:e):m.W.mr;h=$.R(k6(this,this.eb[0]),c);l=k.valueX+p/2}for(var q=
e+1;q<=f;q++){a:{for(k=0;k<b.length;k++)if(!b[k].data[q].o.missing)break a;k=window.NaN}(0,window.isNaN)(k)?k=m=window.NaN:(m=b[k],k=m.data[q].o,p=a?m.W.Zr($.n(k.category)?k.category:e):m.W.mr,m=$.R(k6(this,this.eb[q-e-1]),c),k=k.valueX-p/2);if(!(0,window.isNaN)(l)&&!(0,window.isNaN)(h))if((0,window.isNaN)(k)||(0,window.isNaN)(m))continue;else $.vA(this.G,d,l,h),$.wA(this.G,d,k,m);k=Bna(b,q);(0,window.isNaN)(k)?l=h=window.NaN:(m=b[k],k=m.data[q].o,p=a?m.W.Zr($.n(k.category)?k.category:e):m.W.mr,h=
$.R(k6(this,this.eb[q-e]),c),l=k.valueX+p/2)}}};$.g.kt=function(a,b){return new i6(this,this,a,b,!0)};var m6={};$.gq(m6,0,"dataMode",function(a,b){return $.xk(Kna,a,b||"absolute")});$.gq(m6,1,"connectorStroke",$.Dq);$.U(j6,m6);$.g=j6.prototype;$.g.fi=function(){this.bB().clear();1<(0,$.Fg)(this.fb,function(a,b){return b.enabled()?a+1:a},0)&&this.bB().i("enabled")&&Gna(this);this.bB().I(this.bB().sa);$.dr(this,"waterfall","stackLabels")};$.g.mia=function(){$.br(this,"waterfall","stackLabels",1)};
$.g.bB=function(a){this.g||(this.g=new $.Du,$.W(this,"stackLabels",this.g),this.g.I(this.g.sa),$.L(this.g,this.mia,this));return $.n(a)?(!$.D(a)||"enabled"in a||(a.enabled=!0),this.g.K(a),this):this.g};$.g.ts=function(){return!0};
$.g.bm=function(a,b){var c=[];if("categories"==a){this.ba={};for(var d=this.Te(),e,f,h,k={},l=0,m=0;m<d.length;m++)e=d[m],f=$.Vl("risingFill",1,!1),f=f(e,$.Zl,!0,!0),h=$.ko(f),h in k?this.ba[k[h]].W.push(e):(k[h]=l,this.ba[l]={W:[e],type:"rising"},c.push({text:"Increase",categoryType:"increase",iconEnabled:!0,iconFill:f,sourceUid:$.oa(this),sourceKey:l++})),f=$.Vl("fallingFill",1,!1),f=f(e,$.Zl,!0,!0),h=$.ko(f),h in k?this.ba[k[h]].W.push(e):(k[h]=l,this.ba[l]={W:[e],type:"falling"},c.push({text:"Decrease",
categoryType:"decrease",iconEnabled:!0,iconFill:f,sourceUid:$.oa(this),sourceKey:l++})),f=$.Vl("fill",1,!1),f=f(e,$.Zl,!0,!0),h=$.ko(f),h in k?this.ba[k[h]].W.push(e):(k[h]=l,this.ba[l]={W:[e],type:"total"},c.push({text:"Total",categoryType:"total",iconEnabled:!0,iconFill:f,sourceUid:$.oa(this),sourceKey:l++}))}else c=j6.u.bm.call(this,a,b);return c};
$.g.bq=function(a,b){if("categories"==this.Gf().i("itemsSourceMode")){var c=a.si(),d=this.ba[c];c=d.W;d=d.type;for(var e,f,h,k,l,m,p=0;p<c.length;p++){e=c[p];f=e.Qf();for(m=[];f.advance();){var q=f.la();f.o("missing")||(h=f.o("isTotal"),k=0<=f.o("diff")&&!h,l=0>f.o("diff")&&!h,(h=h&&"total"==d||k&&"rising"==d||l&&"falling"==d)&&m.push(q))}e.Oj(m)}}else return j6.u.bq.call(this,a,b)};$.g.aq=function(a,b){if("categories"==this.Gf().i("itemsSourceMode"))this.Pd();else return j6.u.aq.call(this,a,b)};
$.g.er=function(a,b){if("default"==this.Gf().i("itemsSourceMode"))return j6.u.er.call(this,a,b)};$.g.XD=function(a){$.br(this,"waterfall","stackLabels");j6.u.XD.call(this,a)};$.g.F=function(){var a=j6.u.F.call(this);$.Hq(this,m6,a.chart);a.chart.stackLabels=this.bB().F();return a};$.g.X=function(a,b){j6.u.X.call(this,a,b);var c=a.stackLabels;c&&this.bB().ia(!!b,c);$.zq(this,m6,a)};$.g.R=function(){$.td(this.g,this.xc,this.G);j6.u.R.call(this)};var n6=j6.prototype;n6.stackLabels=n6.bB;n6.xScale=n6.Va;
n6.yScale=n6.bb;n6.crosshair=n6.$g;n6.xGrid=n6.Zm;n6.yGrid=n6.$m;n6.xMinorGrid=n6.xr;n6.yMinorGrid=n6.Ar;n6.xAxis=n6.lh;n6.getXAxesCount=n6.QC;n6.yAxis=n6.ti;n6.getYAxesCount=n6.SC;n6.getSeries=n6.Ue;n6.lineMarker=n6.Jm;n6.rangeMarker=n6.Sm;n6.textMarker=n6.Xm;n6.palette=n6.cc;n6.markerPalette=n6.sf;n6.hatchFillPalette=n6.oe;n6.getType=n6.Na;n6.addSeries=n6.Rk;n6.getSeriesAt=n6.Nh;n6.getSeriesCount=n6.Mj;n6.removeSeries=n6.mo;n6.removeSeriesAt=n6.Cn;n6.removeAllSeries=n6.kp;n6.getPlotBounds=n6.Rf;
n6.xZoom=n6.Aq;n6.yZoom=n6.Bq;n6.xScroller=n6.rp;n6.yScroller=n6.Br;n6.getStat=n6.Eg;n6.annotations=n6.tk;n6.getXScales=n6.Sx;n6.getYScales=n6.Ux;n6.data=n6.data;$.H(l6,$.RB);$.sG[32]=l6;$.g=l6.prototype;$.g.type=32;$.g.flags=263713;$.g.vh={rising:"path",risingHatchFill:"path",falling:"path",fallingHatchFill:"path",path:"path",hatchFill:"path"};$.g.bt=function(a){var b=a.o("shapes");for(c in b)b[c].clear();var c=0<=a.o("diff");if(a.o("isTotal")){c="path";var d="hatchFill"}else c?(c="rising",d="risingHatchFill"):(c="falling",d="fallingHatchFill");this.VE(a,b[c],b[d])};
$.g.fg=function(a,b){var c=0<=a.o("diff");if(a.o("isTotal")){c="path";var d="hatchFill"}else c?(c="rising",d="risingHatchFill"):(c="falling",d="fallingHatchFill");var e={};e[c]=e[d]=!0;e=this.Wc.Xc(b,e);this.VE(a,e[c],e[d])};$.Jp.waterfall=Jna;$.F("anychart.waterfall",Jna);}).call(this,$)}
