if(!_.pyramid_funnel){_.pyramid_funnel=1;(function($){var OY=function(a,b,c){$.pz.call(this,null,[],[],b,c);this.Aa=a},QY=function(a,b,c){$.pz.call(this,null,[],[],b,c);this.Aa=a;this.G=!PY(this.Aa);this.g=this.Aa.i("connectorStroke")},RY=function(a,b,c){$.ox.call(this);$.V(this);this.je=a;this.Fa("pieFunnelPyramidBase",a);this.Yc=null;this.D=[];this.Be=null;this.ga=1;this.j=this.Ea=null;this.state=new $.Vw(this);this.data(b||null,c);a={};$.T(a,[["fill",528,1],["stroke",528,1],["hatchFill",528,1],["labels",0,0],["markers",0,0]]);this.ca=new $.Yx(this,
a,$.Zl);this.ca.pa("labelsAfterInitCallback",function(a){$.L(a,this.Zd,this);a.ib(this);this.B(4096,1)});this.ca.pa("markersAfterInitCallback",$.ey);a={};$.T(a,[["fill",16,1],["stroke",16,1],["hatchFill",0,0],["labels",0,0],["markers",0,0]]);this.xa=new $.Yx(this,a,$.po);this.xa.pa("labelsFactoryConstructor",$.$x);this.Ca=new $.Yx(this,a,$.qo);this.Ca.pa("labelsFactoryConstructor",$.$x);$.T(this.ua,[["baseWidth",16,1],["neckHeight",16,1],["neckWidth",16,1],["pointsPadding",16,1],["reversed",16,1],
["overlapMode",4096,1],["connectorLength",4100,9],["connectorStroke",16,1]]);this.da(!1)},SY=function(a,b){var c=a.aa().o("point");if($.n(c)){var d=$.Vl("fill",1,!0)(a,b,!1,!0);c.fill(d);d=$.Vl("stroke",2,!0)(a,b,!1,!0);c.stroke(d)}},TY=function(a,b){var c=a.aa().o("hatchPoint");if(null!=c){var d=$.Vl("hatchFill",3,!0)(a,b,!1);c.stroke(null).fill(d)}},UY=function(a,b){var c=a.G,d=a.f.height,e=a.ab,f=a.ya;return b>d-f||d==f?e:e+(d-f-b)/(d-f)*(c-e)},VY=function(a){a=$.N(a);return 0>=a||!(0,window.isFinite)(a)},
Tga=function(a){var b=a.aa(),c=b.la(),d=a.f,e;var f=b.o("height")/2;var h=b.o("startY");var k=b.o("height")+h;var l=null;if(e=a.Ja)c?c==b.Gb()-1?(h+=e/2,h>k&&(h=k-a.ga)):(h+=e/2,k-=e/2,h>k&&(h=b.o("startY")+f,k=h+a.ga)):(k-=e/2,k<h&&(k=a.ga));var m=UY(a,h);c=a.b-m/2;f=c+m;m=UY(a,k);e=a.b-m/2;m=e+m;h+=d.top;k+=d.top;c=d.left+c;f=d.left+f;0<a.ya&&h<a.Ga&&k>a.Ga&&(l=k,k=a.Ga,m=UY(a,k),e=a.b-m/2,m=e+m);e=d.left+e;m=d.left+m;a.i("reversed")||(h=d.height-(h-d.top)+d.top,k=d.height-(k-d.top)+d.top,l=l?d.height-
(l-d.top)+d.top:null,h=[k,k=h][0],c=[e,e=c][0],f=[m,m=f][0]);b.o("x1",c);b.o("x2",f);b.o("x3",e);b.o("x4",m);b.o("y1",h);b.o("y2",k);b.o("y3",l)},Uga=function(a,b,c,d){var e=a.labels();$.V(e);e.fontOpacity(b);e.$();e.da(!1);if(d&&a.O)for(b=0;b<a.O.length;b++)if(d=a.O[b])e=a.i("connectorStroke"),e=$.Ml(e,c),d.stroke(e)},Vga=function(a){var b=a.aa(),c=b.la(),d=$.KB(a.xf),e=$.KB(a.g);b.o("point",d);b.o("hatchPoint",e);Tga(a);var f=b.o("x1"),h=b.o("x2"),k=b.o("x3"),l=b.o("x4"),m=b.o("y1"),p=b.o("y2"),
q=b.o("y3");d.moveTo(f,m).lineTo(h,m);q?d.lineTo(l,p).lineTo(l,q).lineTo(k,q).lineTo(k,p):d.lineTo(l,p).lineTo(k,p);d.close();b.o("point",d);d.tag={index:c,W:a};b=$.$w(a.state,b.la());SY(a,b);e&&(e.fe(d.F()),e.tag={index:c,W:a},TY(a,b))},ZY=function(a,b,c){var d=WY(a),e=a.aa(),f=a.f,h=$.n(c)?!!(c&$.qo):null,k=$.n(c)?!h&&!!(c&$.po):null,l=e.get("normal");l=$.n(l)?l.label:void 0;var m=e.get("hovered");m=$.n(m)?m.label:void 0;var p=e.get("selected");p=$.n(p)?p.label:void 0;l=$.Ro(l,e.get("label"));m=
k?$.Ro(m,e.get("hoverLabel")):null;h=(p=h?$.Ro(p,e.get("selectLabel")):null)||m||l||{};l=$.N(e.o("x1"));p=$.N(e.o("x2"));m=$.N(e.o("y1"));k=$.N(e.o("y2"));var q=$.N(e.o("y3"));e=p-l;k=q?q-m:k-m;m+=k/2;p=$.N(h.offsetY)||0;b?c=XY(a,b,c):(c=a.labels().hl(a.Ec(),null,h),c=$.jn(c));h=b&&b.i("anchor")||a.labels().i("anchor");b&&(m=b.uc().value.y);b=m+p;c.height>k&&("left-center"==h||"center"==h||"right-center"==h)&&(m+c.height/2>f.top+f.height&&(m=f.top+f.height-c.height/2),m-c.height/2<f.top&&(m=f.top+
c.height/2));b=YY(a,b);switch(d){case "inside":l+=e/2;break;case "outside-left":l=a.b-b/2;l=f.left+l-a.ba-c.width/2;break;case "outside-left-in-column":l=f.left+c.width/2;break;case "outside-right":l=a.b+b/2;l=f.left+l+a.ba+c.width/2;break;case "outside-right-in-column":l=f.left+f.width-c.width/2}if("left-top"==h||"center-top"==h||"right-top"==h)m-=.5;else if("left-bottom"==h||"center-bottom"==h||"right-bottom"==h)m+=.5;return{value:{x:l,y:m}}},XY=function(a,b,c){var d=!!(c&$.qo),e=!d&&!!(c&$.po);
c=a.data().get(b.la(),"label");e=e?a.data().get(b.la(),"hoverLabel"):null;d=(d?a.data().get(b.la(),"selectLabel"):null)||e||c||{};a.data().o(b.la(),"labelWidthForced")&&(d=$.Qc(d),d.width=b.width());a.aa().select(b.la());b.lf(a.Ec());a=a.labels().hl(b.lf(),b.uc(),d);return $.jn(a)},$Y=function(a,b){if("no-overlap"==a.i("overlapMode")&&!PY(a)&&a.labels().enabled()){Wga(a);a.Ra=0;var c=a.state.Nj()|(b?$.$w(a.state,b.la()):0);Xga(a,c,b)}},Xga=function(a,b,c){if(10!=a.Ra){for(var d=a.aa().Gb(),e=!1,f,
h,k,l,m=a.i("reversed"),p=0;p<d-1;p++)if(f=m?p:d-1-p,(f=a.labels().Vd(f))&&0!=f.enabled()&&(h=XY(a,f,b),k=m?Yga(a,f):Zga(a,f))){l=XY(a,k,b);var q=aZ(a,f),r=aZ(a,k);q&&r&&q==r||!(l.top<=h.top+h.height)||(e=!0,q&&r?$ga(a,q,r):!q&&r?aha(a,k,f):aha(a,f,k))}e&&((0,$.Qe)(a.D,function(a){if(2>a.labels.length){var b=a.Aa;b.D.length&&(a.clear(),$.Fa(b.D,a))}else{for(var d,e,f=0,h=0,k=b=0,l=a.labels.length;k<l;k++)d=a.labels[k],e=a.Aa.state.Nj()|$.$w(a.Aa.state,d.la()),e=a.hd(d,e),d=a.Aa.data().o(d.la(),"point"),
d=d.pb(),k||(f=d.top),b+=e.height,h+=d.height;h+=a.Aa.Ja*(l-1);f=f+h/2-b/2;h=a.Aa.f;f+b>h.top+h.height&&(f=h.top+h.height-b);f<h.top&&(f=h.top);a.y=f;bha(a,c)}}),a.Ra++,Xga(a,b,c))}},Yga=function(a,b){if(!b)return null;var c=a.aa().Gb();if(b.la()==c-1)return null;for(var d,e=b.la()+1;e<=c-1;e++)if((d=a.labels().Vd(e))&&!1!==d.enabled())return d;return null},Zga=function(a,b){if(!b||0==b.la())return null;for(var c,d=b.la()-1;0<=d;d--)if((c=a.labels().Vd(d))&&!1!==c.enabled())return c;return null},
aha=function(a,b,c){var d=aZ(a,b);null===d?(d=new bZ(a),d.zB(b),d.zB(c),a.D.push(d)):d.zB(c)},aZ=function(a,b){return a.D.length?$.ya(a.D,function(a){return-1!==(0,$.za)(a.labels,b)}):null},$ga=function(a,b,c){var d=b.labels[0].la(),e=c.labels[0].la();b.labels=a.i("reversed")==d<e?$.Ga(b.labels,c.labels):$.Ga(c.labels,b.labels);$.Fa(a.D,c)},Wga=function(a){a.D.length&&((0,$.Qe)(a.D,function(a){a.clear()}),a.D.length=0)},PY=function(a){return"inside"==WY(a)},cha=function(a){a=WY(a);return"outside-right-in-column"==
a||"outside-left-in-column"==a},dha=function(a){a=WY(a);return"outside-left"==a||"outside-left-in-column"==a},eha=function(a){a=WY(a);return"outside-right"==a||"outside-right-in-column"==a},fha=function(a){if(a.labels().enabled()&&!PY(a)){Tga(a);var b=a.aa();b.o("labelWidthForced",void 0);var c=a.f,d=b.get("label"),e=ZY(a),f=a.Ec();f=a.labels().hl(f,e,d);f=$.jn(f);d=f.left;e=f.left+f.width;f=a.i("reversed")?UY(a,f.top-c.top):UY(a,c.height-(f.top+f.height)+c.top);if(dha(a)){var h=a.b-f/2;h=c.left+
h;var k=a.G/2;k=c.width-a.b-k;cha(a)?e+5>h&&(h=e+5-h,h>k?(a.b+=k,h=a.b-f/2,h=c.left+h,b.o("labelWidthForced",h-5-d)):a.b+=h):d<c.left&&(h=Math.abs(c.left-d),h>k?(a.b+=k,h=a.b-f/2,a=h-a.ba,10>a&&(a=10),b.o("labelWidthForced",a)):a.b+=h)}else if(eha(a))if(h=a.b+f/2,h+=c.left,k=a.G/2,k=c.width-(c.width-a.b)-k,cha(a)){if(0>d||d-5<h)h=Math.abs(h-d+5),0>d||h>k?(a.b=a.b-k,h=a.b+f/2,h+=c.left,b.o("labelWidthForced",e-5-h)):a.b=a.b-h}else e>c.left+c.width&&(h=e-(c.left+c.width),h>k?(a.b=a.b-k,a=c.left+c.width-
d+k,10>a&&(a=10),b.o("labelWidthForced",a)):a.b=a.b-h)}},WY=function(a){a=a.labels().i("position");return $.xk(gha,"outside"==a?"outside-left":a,"outside-left-in-column")},hha=function(a,b,c,d){var e=a.f,f=b.la();f=a.data().o(f,"point").pb();b=XY(a,b,d);d=b.left;var h=b.top+b.height/2;f=f.top+f.height/2;var k=YY(a,f);if(dha(a)){d+=b.width;var l=a.b-k/2;l+=e.left;d>l&&5>Math.abs(f-h)&&(d=l-5)}else eha(a)&&(l=a.b+k/2,l+=e.left,d<l&&5>Math.abs(f-h)&&(d=l+5));c.clear().moveTo(d,h).lineTo(l,f+.001)},iha=
function(a,b,c){var d=b.la();if(a.O[d])hha(a,b,a.O[d],c);else{var e=$.KB(a.U);a.O[d]=e;e.stroke(a.i("connectorStroke"));hha(a,b,e,c)}},jha=function(a,b){b=$.Bk(b);var c=a.f,d=a.aa(),e=d.o("point").pb(),f=d.o("x1"),h=d.o("y1");switch(b){case "left-top":h=d.o("y1");f=d.o("x1");break;case "left-center":h+=e.height/2;d=YY(a,h);f=a.b-d/2;f+=c.left;break;case "left-bottom":h+=e.height;f=d.o("x3");break;case "center-top":f=a.b;f+=c.left;break;case "center":h+=e.height/2;YY(a,h);f=a.b;f+=c.left;break;case "center-bottom":h+=
e.height;YY(a,h);f=a.b;f+=c.left;break;case "right-top":d=YY(a,h);f+=d;break;case "right-center":h+=e.height/2;d=YY(a,h);f=a.b+d/2;f+=c.left;break;case "right-bottom":f=d.o("x4"),h+=e.height}return{value:{x:f,y:h}}},YY=function(a,b){var c=a.f;return a.i("reversed")?UY(a,b-c.top):UY(a,c.height-b+c.top)},kha=function(a){var b=a.Xa();a.ac("mousemove",a.JJ);b.Oc()},bZ=function(a){this.Aa=a;this.labels=[]},bha=function(a,b){var c=0,d=0,e=null,f=null,h=null,k=a.Aa.state.Nj()|(b?$.$w(a.Aa.state,b.la()):
0);(0,$.Qe)(a.labels,function(b){var l=b.uc().value,p=a.hd(b,k),q=a.y+c+d+p.height/2;if(e&&f&&h){var r=h.y+f.height/2+(e.i("offsetY")||0),t=q-p.height/2+(b.i("offsetY")||0);t<r&&(q+=r-t)}b.uc({value:{x:l.x,y:q}});b.$();iha(a.Aa,b,k);c+=p.height;d+=b.i("offsetY")||0;e=b;f=p;h={x:l.x,y:q}})},lha=function(a,b){var c=new RY("funnel",a,b);c.ld();return c},mha=function(a,b){var c=new RY("pyramid",a,b);c.ld();return c},gha={rP:"inside",Rla:"outside-left",Sla:"outside-left-in-column",Tla:"outside-right",
Ula:"outside-right-in-column"};$.H(OY,$.pz);$.g=OY.prototype;$.g.update=function(){this.b.length=this.f.length=0;for(var a=this.Aa.Qf();a.advance();)if(!a.o("missing")){var b=a.o("x1"),c=a.o("x2"),d=a.o("x3"),e=a.o("x4"),f=a.o("y1"),h=a.o("y2"),k=a.o("y3");a.o("neck",!!k);this.b.push(b,c,d,e,0,0,0);this.f.push(b,c,d,e,f,h,k?k:0)}};$.g.jw=function(){Uga(this.Aa,1E-5,1E-5,!PY(this.Aa))};
$.g.Qm=function(){for(var a=this.Aa.Qf(),b=0;a.advance();)if(!a.o("missing")){a.o("x1",this.coords[b++]);a.o("x2",this.coords[b++]);a.o("x3",this.coords[b++]);a.o("x4",this.coords[b++]);a.o("y1",this.coords[b++]);a.o("y2",this.coords[b++]);a.o("y3",this.coords[b++]);var c=this.Aa,d=a,e=d.o("point");e.clear();var f=d.o("x1"),h=d.o("x2"),k=d.o("x3"),l=d.o("x4"),m=d.o("y1"),p=d.o("y2"),q=d.o("y3");e.moveTo(f,m).lineTo(h,m);d.o("neck")?e.lineTo(l,p).lineTo(l,q).lineTo(k,q).lineTo(k,p):e.lineTo(l,p).lineTo(k,
p);e.close();if(f=d.o("hatchPoint"))c.aa().select(d.la()),f.clear(),f.fe(e.F()),d=$.$w(c.state,d.la()),e=$.Vl("hatchFill",3,!0),f.stroke(null).fill(e(c,d,!1))}};$.g.Nl=function(){this.Qm()};$.g.R=function(){OY.u.R.call(this);this.Aa=null};$.H(QY,$.pz);QY.prototype.update=function(){this.b.length=this.f.length=0;this.b.push(1E-5,1E-5);this.f.push(1,this.g.opacity||1)};QY.prototype.Qm=function(){Uga(this.Aa,this.coords[0],this.coords[1],this.G)};QY.prototype.Nl=function(){this.Qm()};QY.prototype.R=function(){QY.u.R.call(this);this.g=this.Aa=null;delete this.G};$.H(RY,$.ox);$.xq(RY,["fill","stroke","hatchFill"],"normal");$.g=RY.prototype;$.g.Sa=function(a){return $.n(a)?(this.ca.K(a),this):this.ca};$.g.mb=function(a){return $.n(a)?(this.xa.K(a),this):this.xa};$.g.selected=function(a){return $.n(a)?(this.Ca.K(a),this):this.Ca};$.g.qa=$.ox.prototype.qa|16;$.g.sa=$.ox.prototype.sa|28688;$.g.Te=function(){return[this]};$.g.Rg=function(){return!0};$.g.hk=function(){return!1};$.g.Ii=function(){return!0};
$.g.data=function(a,b){if($.n(a)){if(a){var c=a.title||a.caption;c&&this.title(c);a.rows&&(a=a.rows)}if(this.jg!==a){this.jg=a;if(this.j!=a||null===a){$.qd(this.jd);delete this.Nd;if($.K(a,$.pr)){var d=a;this.jd=null}else $.K(a,$.zr)?d=(this.jd=a).ie():d=$.A(a)||$.z(a)?(this.jd=new $.zr(a,b)).ie():(this.jd=new $.zr(null)).ie();this.j=d.tj()}$.qd(this.ka);this.ka=this.j;$.L(this.ka,this.Id,this);this.B(29456,17)}return this}return this.ka};$.g.Id=function(a){$.X(a,16)&&this.B(29456,17)};
$.g.aa=function(){return this.Nd||(this.Nd=this.ka.aa())};$.g.vc=function(){return this.Nd=this.ka.aa()};$.g.Qf=function(){return this.ka.aa()};$.g.cc=function(a){if($.K(a,$.ys))return this.Ic($.ys,a),this;if($.K(a,$.vs))return this.Ic($.vs,a),this;$.D(a)&&"range"==a.type?this.Ic($.ys):($.D(a)||null==this.Ea)&&this.Ic($.vs);return $.n(a)?(this.Ea.K(a),this):this.Ea};
$.g.sf=function(a){this.Be||(this.Be=new $.xs,$.W(this,"markerPalette",this.Be),$.L(this.Be,this.HH,this));return $.n(a)?(this.Be.K(a),this):this.Be};$.g.oe=function(a){this.Yc||(this.Yc=new $.ws,$.W(this,"hatchFillPalette",this.Yc),$.L(this.Yc,this.TG,this));return $.n(a)?(this.Yc.K(a),this):this.Yc};$.g.Ic=function(a,b){if($.K(this.Ea,a))b&&this.Ea.K(b);else{var c=!!this.Ea;$.qd(this.Ea);this.Ea=new a;b&&this.Ea.K(b);$.L(this.Ea,this.If,this);c&&this.B(528,1)}};
$.g.If=function(a){$.X(a,2)&&this.B(528,1)};$.g.HH=function(a){$.X(a,2)&&this.B(528,1)};$.g.TG=function(a){$.X(a,2)&&this.B(528,1)};$.g.remove=function(){Wga(this);this.xf&&this.xf.parent(null);RY.u.remove.call(this)};$.g.Pu=function(){var a=this.aa();this.Ea&&$.K(this.Ea,$.ys)&&$.zs(this.Ea,a.Gb())};
$.g.ei=function(a){if(!this.ef()){this.ob();var b=this.aa();this.J(4)&&this.B(4112);if(this.J(16)){this.xf?this.xf.clear():(this.xf=new $.JB(function(){return $.nk()},function(a){a.clear()}),this.xf.zIndex(30),this.xf.parent(this.La));this.g?this.g.clear():(this.g=new $.JB(function(){return $.nk()},function(a){a.clear()}),this.g.parent(this.La),this.g.zIndex(31).td(!0));this.Ja=Math.abs($.Qm($.M(this.i("pointsPadding"),a.height),2));this.G=Math.abs($.Qm($.M(this.i("baseWidth"),a.width),2));this.ab=
Math.abs($.Qm($.M(this.i("neckWidth"),a.width),2));this.ya=Math.abs($.Qm($.M(this.i("neckHeight"),a.height),2));this.Ga=a.top+a.height-this.ya;this.b=a.width/2;this.ba=$.M(this.i("connectorLength"),(a.width-this.G)/2);0>this.ba&&(this.ba=5);this.f=a;var c=0,d=b.Gb()-$.N(this.Ia("count")),e=$.Qm(this.Ja/a.height*100,2);for(b.reset();b.advance();){var f=b.get("value");var h=VY(f);f=VY(f)?0:$.N(f);var k=$.Qm(f/$.N(this.Ia("sum"))*100,2);h&&(k=e);k=$.Qm(a.height/(100+d*e)*k,2);k||(k=this.ga);b.o("value",
f);b.o("height",k);b.o("startY",c);b.o("missing",h);c+=k;fha(this)}for(b.reset();b.advance();)c=b.la(),"selected"==String(b.get("state")).toLowerCase()&&this.state.xh($.qo,c),Vga(this);if(this.O)for(c=0;c<this.O.length;c++)(f=this.O[c])&&f.stroke(this.i("connectorStroke"));this.B(4096);this.B(8192);this.I(16)}if(this.J(8192)){this.Eb().P()||this.Eb().P(this.La);this.Eb().clear();for(b.reset();b.advance();)this.Op(this.state.Ac|$.$w(this.state,b.la()));this.Eb().$();this.I(8192)}if(this.J(4096)){this.labels().P()||
this.labels().P(this.La);this.labels().clear();this.U&&this.U.clear();c=PY(this)?this.ma.insideLabels:this.ma.outsideLabels;this.labels().sq(c.autoColor);this.labels().disablePointerEvents(c.disablePointerEvents);PY(this)||(this.ba=$.M(this.i("connectorLength"),(a.width-this.G)/2),0>this.ba&&(this.ba=5),this.U?this.U.clear():(this.U=new $.JB(function(){return $.nk()},function(a){a.clear()}),this.U.parent(this.La),this.U.zIndex(32)),this.U.clip(a),this.O=[]);for(b.reset();b.advance();)PY(this)&&b.o("labelWidthForced",
void 0),this.ce(this.state.Ac|$.$w(this.state,b.la()));$Y(this);this.labels().$();this.labels().Kd().clip(a);this.I(4096)}}};
$.g.XK=function(){var a=$.jr(this,"animation");if(a&&a.i("enabled")&&0<a.i("duration"))if(this.xg&&1==this.xg.Xb)this.xg.update();else if(this.J(2048)){$.qd(this.xg);this.xg=new $.HB;var b=a.i("duration");a=b*(1-.85);b=new OY(this,.85*b);a=new QY(this,a);this.xg.add(b);this.xg.add(a);this.xg.ra("begin",function(){this.hj=this.i("connectorStroke");this.pa("connectorStroke","none");$.hx(this,!0);$.up(this,{type:"animationstart",chart:this})},!1,this);this.xg.ra("end",function(){this.pa("connectorStroke",
this.hj);$.hx(this,!1);$.up(this,{type:"animationend",chart:this})},!1,this);this.xg.play(!1)}};$.g.ig=function(a){a=$.Y.prototype.ig.call(this,a);var b=$.mo(a.domTarget);a.pointIndex=$.N(b.index);return a};$.g.sh=function(a){(a=this.Ig(a))&&this.dispatchEvent(a)};
$.g.Ig=function(a){var b;"pointIndex"in a?b=a.pointIndex:"labelIndex"in a?b=a.labelIndex:"markerIndex"in a&&(b=a.markerIndex);b=$.N(b);a.pointIndex=b;var c=a.type;switch(c){case "mouseout":c="pointmouseout";break;case "mouseover":c="pointmouseover";break;case "mousemove":c="pointmousemove";break;case "mousedown":c="pointmousedown";break;case "mouseup":c="pointmouseup";break;case "click":c="pointclick";break;case "dblclick":c="pointdblclick";break;default:return null}var d=this.data().aa();d.select(b)||
d.reset();return{type:c,actualTarget:a.target,iterator:d,sliceIndex:b,pointIndex:b,target:this,originalEvent:a,point:this.Rd(b)}};$.g.Rd=function(a){var b=new $.sA(this,a),c;this.aa().select(a)&&b.Fx()&&!VY(c=b.get("value"))&&(a=$.Qm(c/this.Eg("sum")*100,2),b.Ia("percentValue",a),b.Ia("yPercentOfTotal",a));return b};$.g.es=function(){return[]};$.g.Oj=function(a){$.n(a)?this.Hi(a):this.Ek();return this};
$.g.Pd=function(a){var b;(b=$.Zw(this.state,$.po))||(b=!!(this.state.Nj()&$.po));if(b&&this.enabled()){var c;$.n(a)?c=a:c=this.state.Ac==$.Zl?window.NaN:void 0;this.state.Hh($.po,c);a=this.aa();for(a.reset();a.advance();)this.ce($.$w(this.state,a.la()));$Y(this);kha(this)}};
$.g.Hi=function(a,b){if(!this.enabled())return this;if($.A(a)){var c=$.ex(this.state,$.po);for(var d=0;d<c.length;d++)$.Aa(a,c[d])||this.state.Hh($.po,c[d]);$.cx(this.state,a);$.n(b)&&this.JJ(b);for(c=this.vc();c.advance();)this.ce($.$w(this.state,c.la()));$Y(this)}else if($.ea(a)&&(this.Pd(),$.cx(this.state,a),$.n(b)&&this.JJ(b),this.f)){for(c=this.vc();c.advance();)this.ce($.$w(this.state,c.la()));$Y(this,this.labels().Vd(a))}this.aa().select(a[0]||a);return this};
$.g.Ek=function(){this.enabled()&&(this.state.xh($.po),$Y(this,null))};$.g.select=function(a){if(!this.enabled())return this;$.n(a)?this.Mi(a):this.iu();return this};$.g.iu=function(){this.enabled()&&(kha(this),this.state.xh($.qo),$Y(this,null))};
$.g.Mi=function(a,b){if(!this.enabled())return this;var c=!(b&&b.shiftKey);$.A(a)?(b||this.ae(),this.state.xh($.qo,a,c?$.po:void 0)):$.ea(a)&&this.state.xh($.qo,a,c?$.po:void 0);if(this.f){for(c=this.vc();c.advance();)this.ce($.$w(this.state,c.la()));var d;$.ea(a)&&(d=this.labels().Vd(a));$Y(this,d)}this.aa().select(a[0]||a);return this};
$.g.ae=function(a){if(this.enabled()){var b;$.n(a)?b=a:b=this.state.Ac==$.Zl?window.NaN:void 0;this.state.Hh($.qo,b);a=this.aa();for(a.reset();a.advance();)this.ce($.$w(this.state,a.la()));$Y(this)}};$.g.Xj=function(a,b){SY(this,a);TY(this,a);this.Op(a);return b};$.g.Wp=$.ia;$.g.fm=$.ia;$.g.Uk=function(a){this.ce(a);SY(this,a);TY(this,a);this.Op(a)};var cZ={};$.gq(cZ,0,"baseWidth",$.tq);$.gq(cZ,0,"neckHeight",$.tq);$.gq(cZ,0,"neckWidth",$.tq);$.gq(cZ,0,"pointsPadding",$.tq);$.gq(cZ,0,"reversed",$.tq);
$.gq(cZ,0,"overlapMode",$.Ok);$.gq(cZ,0,"connectorLength",$.tq);$.gq(cZ,1,"connectorStroke",$.Dq);$.U(RY,cZ);$.g=RY.prototype;$.g.zc=function(a,b,c,d,e,f,h){e=0==b?this.ca:1==b?this.xa:this.Ca;h?a=e.i(a):(h=c.get(0==b?"normal":1==b?"hovered":"selected"),a=$.Ro($.n(h)?h[a]:void 0,c.get($.$l(b,a)),e.i(a)));$.n(a)&&(a=d(a));return a};$.g.ph=function(){return $.$b(this.oe().nc(this.aa().la())||"diagonal-brick")};$.g.Fi=function(){var a=this.aa();return{index:a.la(),sourceHatchFill:this.ph(),iterator:a}};
$.g.Ae=function(a){var b=this.aa();return{index:b.la(),sourceColor:a||this.cc().nc(b.la())||"blue",iterator:b}};$.g.labels=function(a){return $.n(a)?(this.ca.labels(a),this):this.ca.labels()};$.g.Zd=function(a){var b=0,c=0;$.X(a,1)&&(b|=4096,c|=1);$.X(a,8)&&(b|=4100,c|=9);this.B(b,c)};
$.g.ce=function(a){var b=this.aa(),c=!!(a&$.qo),d=!c&&!!(a&$.po),e=b.get("normal");e=$.n(e)?e.label:void 0;var f=b.get("hovered");f=$.n(f)?f.label:void 0;var h=b.get("selected");h=$.n(h)?h.label:void 0;e=$.Ro(e,b.get("label"));f=d?$.Ro(f,b.get("hoverLabel")):null;h=c?$.Ro(h,b.get("selectLabel")):null;var k=b.la(),l,m=null,p=this.mb().labels(),q=this.selected().labels();c?m=l=q:d?m=l=p:l=this.labels();var r=this.labels().Vd(k),t=e&&$.n(e.enabled)?e.enabled:null,u=f&&$.n(f.enabled)?f.enabled:null,v=
h&&$.n(h.enabled)?h.enabled:null;p=d||c?d?null===u?null===p.enabled()?null===t?this.labels().enabled():t:p.enabled():u:null===v?null===q.enabled()?null===t?this.labels().enabled():t:q.enabled():v:null===t?this.labels().enabled():t;t=ZY(this,null,a);u=this.Ec();q=PY(this);v=!0;if(!d&&!c&&q&&"no-overlap"==this.i("overlapMode")){l=l.hl(u,t,e,k);v=this.aa();var w=[v.o("x1"),v.o("y1"),v.o("x2"),v.o("y1"),v.o("x4"),v.o("y2"),v.o("x3"),v.o("y2")],x=!0,y;var B=0;for(y=w.length;B<y-1;B+=2){var G=B==y-2?0:
B+2;var C=B==y-2?1:B+3;var I=w[B];var P=w[B+1];var Q=w[G];var S=w[C];var sa=l[B];var va=l[B+1];G=l[G];C=l[C];v.o("y3")&&4==B&&(P=$.N(v.o("y3")),S=$.N(v.o("y3")));I==Q&&(Q+=.01);x=(x=x&&1==$.$m(I,P,Q,S,sa,va))&&1==$.$m(I,P,Q,S,G,C)}v=x}p&&v?(r?(r.oi(),r.lf(u),r.uc(t)):r=this.labels().add(u,t,k),$.Ou(r,m),r.kd(e,d?f:h),b.o("labelWidthForced")&&(r.width($.N(b.o("labelWidthForced"))),b=f&&f.anchor?f.anchor:null,h=h&&h.anchor?h.anchor:null,e&&e.anchor&&e.anchor||b||h||(t=ZY(this,r,a),r.uc(t))),r.$(),(d||
c)&&!r.P()&&this.labels().Kd()&&(r.P(this.labels().Kd()),r.P().parent()||r.P().parent(this.labels().P()),r.$())):r&&r.clear();p&&!q&&iha(this,r,a);return r};$.g.Eb=function(a){return $.n(a)?(this.ca.Eb(a),this):this.ca.Eb()};$.g.bp=function(a){$.X(a,1)&&this.B(8192,1)};$.g.wv=function(){var a=$.Vl("fill",1,!1)(this,$.Zl,!0,!0);return $.Ml(a,1,!0)};$.g.Ox=function(){return $.Il(this.wv())};
$.g.Op=function(a){var b=this.aa(),c=!!(a&$.qo);a=!c&&!!(a&$.po);var d=b.get("normal");d=$.n(d)?d.marker:void 0;var e=b.get("hovered");e=$.n(e)?e.marker:void 0;var f=b.get("selected");f=$.n(f)?f.marker:void 0;d=$.Ro(d,b.get("marker"));e=$.Ro(e,b.get("hoverMarker"));f=$.Ro(f,b.get("selectMarker"));var h=this.aa().la(),k=this.mb().Eb(),l=this.selected().Eb();b=c?l:a?k:this.Eb();var m=this.Eb().Vq(h),p=d&&$.n(d.enabled)?d.enabled:null,q=e&&$.n(e.enabled)?e.enabled:null,r=f&&$.n(f.enabled)?f.enabled:
null;if(a||c?a?null===q?null===k.enabled()?null===p?this.Eb().enabled():p:k.enabled():q:null===r?null===l.enabled()?null===p?this.Eb().enabled():p:l.enabled():r:null===p?this.Eb().enabled():p){p=d&&d.position?d.position:null;q=e&&e.position?e.position:null;r=f&&f.position?f.position:null;p=a&&(q||k.i("position"))||c&&(r||l.i("position"))||p||this.Eb().i("position");p=jha(this,p);m?m.uc(p):m=this.Eb().add(p,h);var t={};p="position anchor offsetX offsetY type size fill stroke enabled".split(" ");d&&
(0,$.Qe)(p,function(a){a in d&&(t[a]=d[a])});p=d&&d.type;h=$.n(p)?p:this.Eb().Na()||this.sf().nc(h);p=e&&e.type;p=$.n(p)?p:k.Na();q=f&&f.type;q=$.n(q)?q:l.Na();t.type=c&&$.n(q)?q:a&&$.n(p)?p:h;h=d&&d.fill;h=$.n(h)?h:this.Eb().Gm()||this.wv();p=e&&e.fill;p=$.n(p)?p:k.Gm();q=f&&f.fill;q=$.n(q)?q:l.Gm();t.fill=c&&$.n(q)?q:a&&$.n(p)?p:h;h=d&&d.stroke;h=$.n(h)?h:this.Eb().bl()||this.Ox();p=e&&e.stroke;k=$.n(p)?p:k.bl()||this.Ox();p=f&&f.stroke;l=$.n(p)?p:l.bl()||this.Ox();t.stroke=c&&$.n(l)?l:a&&$.n(k)?
k:h;m.oi();$.Sx(m,b);m.kd(t,a?e:f);m.$()}else m&&m.clear()};$.g.xK=function(){var a=new $.iw(0);$.W(this,"tooltip",a);a.Aa(this);$.L(a,this.hp,this);return a};$.g.hp=function(){this.Xa().$()};$.g.JJ=function(a){var b=$.jr(this,"legend");if(!a||!b||a.target!=b){b=this.Xa();var c=this.Ec();a&&($.Aw(b,a.clientX,a.clientY,c),this.ra("mousemove",this.JJ))}};
$.g.ob=function(){if(this.J(16384)){this.oI();for(var a=this.data().aa(),b,c=0,d=Number.MAX_VALUE,e=-Number.MAX_VALUE,f=0;a.advance();)b=a.get("value"),VY(b)?c++:(b=VY(b)?0:$.N(b),d=Math.min(b,d),e=Math.max(b,e),f+=b);a=a.Gb()-c;var h;a?h=f/a:d=e=f=h=void 0;this.Ia("count",a);this.Ia("min",d);this.Ia("max",e);this.Ia("sum",f);this.Ia("average",$.Qm(h||window.NaN,$.Rm(f||0)));this.I(16384)}};
$.g.Ec=function(){var a=this.aa();this.de||(this.de=new $.rw);this.de.Ag(a).mj([this.Rd(a.la()),this]);a={x:{value:a.get("x"),type:"string"},value:{value:a.get("value"),type:"number"},name:{value:a.get("name"),type:"string"},index:{value:a.la(),type:"number"},chart:{value:this,type:""}};$.av(this.de,a);return this.de};$.g.xk=function(){return this.Ec()};
$.g.bm=function(a,b){for(var c=[],d=this.aa().reset(),e;d.advance();){e=d.la();var f=d.get("legendItem")||{},h=null;$.E(b)&&(h=this.Ec(),h.b=this.Rd(e),h=b.call(h,h));$.z(h)||(h=String($.n(d.get("name"))?d.get("name"):d.get("x")));var k=$.Vl("fill",1,!1),l=$.Vl("stroke",2,!1),m=$.Vl("hatchFill",3,!1);h={enabled:!0,meta:{pointIndex:e,pointValue:d.get("value"),W:this},iconType:"square",text:h,iconStroke:l(this,$.Zl,!1),iconFill:k(this,$.Zl,!1),iconHatchFill:m(this,$.Zl,!1)};$.Sc(h,f);h.sourceUid=$.oa(this);
h.sourceKey=e;c.push(h)}return c};$.g.ts=function(){return!0};$.g.er=function(a,b){var c=a.si();if(!a||null!=c||(0,window.isNaN)(c))if(c=$.mo(b.domTarget))c.W=this};$.g.bq=function(a,b){var c=a.si();if(!a||null!=c||(0,window.isNaN)(c))if(c=$.mo(b.domTarget))c.W=this};$.g.aq=function(a,b){var c=a.si();if(!a||null!=c||(0,window.isNaN)(c))if(c=$.mo(b.domTarget))c.W=this};$.g.Ni=function(){return null};$.g.Fl=function(a){return $.n(a)?(a=$.yk(a),a!=this.N&&(this.N=a),this):this.N};$.g.Ej=function(){return!this.aa().Gb()};
$.g.F=function(){var a=RY.u.F.call(this);a.data=this.data().F();a.palette=this.cc().F();a.hatchFillPalette=this.oe().F();a.markerPalette=this.sf().F();a.tooltip=this.Xa().F();$.Hq(this,cZ,a);a.normal=this.ca.F();a.hovered=this.xa.F();a.selected=this.Ca.F();return{chart:a}};
$.g.X=function(a,b){RY.u.X.call(this,a,b);$.zq(this,cZ,a);this.ca.ia(!!b,a);this.ca.ia(!!b,a.normal);this.xa.ia(!!b,a.hovered);this.Ca.ia(!!b,a.selected);this.data(a.data);this.oe(a.hatchFillPalette);this.sf(a.markerPalette);this.cc(a.palette);"tooltip"in a&&this.Xa().ia(!!b,a.tooltip)};
$.g.R=function(){$.td(this.xg,this.ca,this.xa,this.Ca,this.jd,this.j,this.ka,this.Ea,this.Yc,this.Be,this.xf,this.g,this.U);this.ka=this.j=this.jd=this.Ca=this.xa=this.ca=this.xg=null;delete this.Nd;this.U=this.g=this.xf=this.Be=this.Yc=this.Ea=null;RY.u.R.call(this)};bZ.prototype.zB=function(a){this.labels.push(a);this.Aa.i("reversed")?$.Qa(this.labels,function(a,c){return a.la()-c.la()}):$.Qa(this.labels,function(a,c){return c.la()-a.la()})};bZ.prototype.clear=function(){this.labels.length=0};
bZ.prototype.hd=function(a,b){var c=!!(b&$.qo),d=!c&&!!(b&$.po),e=this.Aa.data().get(a.la(),"label");d=d?this.Aa.data().get(a.la(),"hoverLabel"):null;c=(c?this.Aa.data().get(a.la(),"selectLabel"):null)||d||e||{};this.Aa.data().o(a.la(),"labelWidthForced")&&(c=$.Qc(c),c.width=a.width());this.Aa.aa().select(a.la());a.lf(this.Aa.Ec());c=this.Aa.labels().hl(a.lf(),a.uc(),c);return $.jn(c)};
RY.prototype.ld=function(){this.ca.Fa(this.ma);$.W(this,"normal",this.ca);this.ca.ia(!0,{});$.W(this,"hovered",this.xa);this.xa.ia(!0,{});$.W(this,"selected",this.Ca);this.Ca.ia(!0,{})};var dZ=RY.prototype;dZ.data=dZ.data;dZ.getType=dZ.Na;dZ.palette=dZ.cc;dZ.tooltip=dZ.Xa;dZ.hatchFillPalette=dZ.oe;dZ.markerPalette=dZ.sf;dZ.labels=dZ.labels;dZ.markers=dZ.Eb;dZ.hover=dZ.Oj;dZ.unhover=dZ.Pd;dZ.select=dZ.select;dZ.unselect=dZ.ae;dZ.getPoint=dZ.Rd;dZ.normal=dZ.Sa;dZ.hovered=dZ.mb;dZ.selected=dZ.selected;$.Jp.funnel=lha;$.Jp.pyramid=mha;$.F("anychart.funnel",lha);$.F("anychart.pyramid",mha);}).call(this,$)}
