if(!_.pie){_.pie=1;(function($){var QN=function(a,b,c,d,e){var f=!1,h;if(!e)return!1;var k=0;for(h=e.length;k<h-1;k+=2){var l=k==h-2?0:k+2;var m=k==h-2?1:k+3;f=f||$.bn(e[k],e[k+1],e[l],e[m],a,b,c,d)}return f},RN=function(a,b,c,d){var e=!1,f;if(!d)return!1;var h=0;for(f=d.length;h<f-1;h+=2)if(!e){e=d[h];var k=d[h+1];e=(a-e)*(a-e)+(b-k)*(b-k)>c*c}return e},Jea=function(){return new $.Nx},SN=function(a,b,c){$.pz.call(this,null,[],[],b,c);this.Aa=a},UN=function(a,b,c,d,e,f){$.pr.call(this,a);this.g=b;this.f=d||null;this.j=e||function(a,
b){a.value+=Math.max(0,+b)||0;return a};this.D=f||function(){return{value:0}};this.b=new TN;this.b.o(0,"groupedPoint",!0);this.b.o(0,"name",c)},TN=function(){$.Yq.call(this);$.vr(this);this.f=void 0},WN=function(a,b,c){$.pz.call(this,null,[],[],b,c);this.Aa=a;this.G=VN(this.Aa);this.g=this.Aa.i("connectorStroke")},XN=function(a,b){$.sA.call(this,a,b)},ZN=function(a,b){$.ox.call(this);this.Fa("pieFunnelPyramidBase","pie");this.contextMenu(this.ma.contextMenu);$.V(this);this.jd=this.j=this.Yc=this.Ea=
this.Tc=null;this.Tf=!0;this.Ob={};this.Gk=function(){var a=this.sourceColor,b=this.aquaStyleObj;return{keys:[{offset:0,color:$.Hl(a,.5)},{offset:.95,color:$.Il(a,.4)},{offset:1,color:$.Il(a,.4)}],cx:.5,cy:.5,fx:b.fx,fy:b.fy,mode:b.mode}};this.D=[];this.state=new $.Vw(this);this.data(a||null,b);this.B(4294967295);$.T(this.ua,[["overlapMode",4096,1],["radius",4,1],["innerRadius",4,1],["startAngle",4112,1],["sort",16,1,0,function(){YN(this)}],["insideLabelsOffset",4100,9],["connectorLength",4100,9],
["outsideLabelsCriticalAngle",4096,1],["forceHoverLabels",4096,1],["connectorStroke",16,1],["mode3d",4116,1],["sliceDrawer",16,1]]);var c={};$.T(c,[["explode",4116,1],["fill",528,1],["stroke",528,1],["hatchFill",528,1],["labels",0,0],["outline",0,0]]);this.ca=new $.Yx(this,c,$.Zl,[[1,"fill",function(a){var b=!1;$.z(a[0])&&(a[0]=a[0].toLowerCase(),b="aquastyle"==a[0]);return this.i("mode3d")&&b?this.i("fill"):$.E(a[0])||b?a[0]:$.Vb.apply(null,a)}]]);this.ca.pa("labelsFactoryConstructor",Jea);this.ca.pa("labelsAfterInitCallback",
function(a){$.L(a,this.Zd,this);a.ib(this);this.B(4096,1)});this.ca.pa("outlineAfterInitCallback",function(a){$.L(a,this.Yga,this);this.B(16,1)});c={};$.T(c,[["explode",4116,1],["fill",16,1],["stroke",16,1],["hatchFill",0,0],["labels",0,0],["outline",16,1]]);this.xa=new $.Yx(this,c,$.po);this.xa.pa("labelsFactoryConstructor",$.ay);c={};$.T(c,[["explode",4116,1],["fill",16,1],["stroke",16,1],["hatchFill",0,0],["labels",0,0],["outline",16,1]]);this.Ca=new $.Yx(this,c,$.qo);this.Ca.pa("labelsFactoryConstructor",
$.ay);this.da(!1)},YN=function(a){$.qd(a.ka);delete a.Nd;a.ka=Kea(a,a.j);$.L(a.ka,a.Id,a);a.B(13104,17)},Kea=function(a,b){if(null!=a.Tc){var c=b;b=new UN(b,"value",a.ip,a.Tc,void 0,function(){return{value:0}});$.sd(c,b);b.gX=!0}c=a.i("sort");"none"!=c&&null!=c&&(b="asc"==c?b.sort("value",function(a,b){return a-b}):b.sort("value",function(a,b){return b-a}),b.gX=!0);return b},aO=function(a,b,c){if(!a)return $.Pl;var d=b+"|"+a+"|"+c,e=$N[d];if(!e){switch(b){case 2:e=$.Rl;break;case 3:e=$.Sl;break;default:case 1:e=
$.Tl}$N[d]=e=$.qa(Lea,a,e,3==b,c)}return e},Lea=function(a,b,c,d,e,f,h,k){if(f!=$.Zl&&d){var l=e.zc(a,f,e.aa(),b,!1,void 0,h);c&&!0===l&&(l=b(e.ph()));if($.n(l)){if(!$.E(l))return l;if(c)return c=e.Fi(h),b(l.call(c,c))}}a=e.zc(a,0,e.aa(),b,!1,void 0,h);d=$.n(k)?k:a;k=$.z(a)&&"aquastyle"==a;c&&!0===a&&(a=b(e.ph()));$.E(a)&&(c=c?e.Fi(h):e.Ae(d,h),a=b(a.call(c,c)));k&&(c=e.aa(),c={aquaStyleObj:e.Ob,sourceColor:e.cc().nc(c.la())},a=e.Gk.call(c));l&&(c=e.Ae(a,h),a=b(l.call(c,c)));return a},bO=function(a,
b,c){c=a.aa().o(c||"hatchSlice");null!=c&&(a=aO("hatchFill",3,!0)(a,b,!1),c.stroke(null).fill(a))},cO=function(a){return $.D(a)&&a.hasOwnProperty("mode")&&a.hasOwnProperty("cx")},dO=function(a){a=null===a?window.NaN:+a;return!($.ea(a)&&!(0,window.isNaN)(a)&&0<a)},VN=function(a){return"outside"==$.Qk(a.labels().i("position"))},eO=function(a,b){var c=b.la();a.Ra&&(a.Ra[c]=null)},Mea=function(a){a.ab=[];var b=a.i("mode3d");a.U?(a.U.clear(),b&&a.hc.clear()):(a.U=new $.JB(function(){return $.nk()},function(a){a.clear()}),
a.U.parent(a.La),a.U.zIndex(32),b&&(a.hc=new $.JB(function(){return $.nk()},function(a){a.clear()}),a.hc.parent(a.La),a.hc.zIndex(29)));a.O=[];b=a.i("connectorStroke");a.Bd||(a.Bd=a.La.path(),a.Bd.stroke(b))},iO=function(a){var b=a.aa(),c=b.la(),d=a.i("mode3d"),e="allow-overlap"==a.i("overlapMode");Mea(a);var f;if(!e){var h={};var k=f=!1}for(b.reset();b.advance();)if(!dO(b.get("value"))){var l=b.la(),m=$.$w(a.state,l);var p=b.o("start");var q=b.o("sweep");var r=(p+q/2)*Math.PI/180;q=$.ab($.cb(r));
p=90>q||270<q;var t=fO(a,l);var u=d?.45*a.b:a.b;var v=t[0]+a.b*Math.cos(r);u=t[1]+u*Math.sin(r);d&&(u+=.2*a.b/2);r=p?5:-5;b.o("connector",r);a.ab[2*l]=v;a.ab[2*l+1]=u;b.o("anchor",p?"left-center":"right-center");v=a.ce(m,!1);eO(a,v);v.ka=q;m=gO(a,m);b.o("explode",m);a.Ud&&-1!=(0,$.za)(a.Ud,l)&&v.enabled(!1);if(e)v&&0!=v.enabled()&&(l=v.la(),eO(a,v),p=a.al(v),q=m?a.Xf:a.Ge,a.Ja=Math.max(q.left-p.left,p.$a()-q.$a(),q.top-p.top,p.Ua()-q.Ua(),a.Ja),a.O[l]||(u=a.ab[2*l+1]-.2*a.b/2,p=d&&u<a.yc?$.KB(a.hc):
$.KB(a.U),a.O[l]=p,p.stroke(a.i("connectorStroke")),hO(a,v,p)));else{if(l=h[m]){u=l[0];r=l[1];t=l[2];var w=l[3]}else l=[],u=[],r=[],t=[],w=[],l.push(u,r,t,w,m),h[m]=l;270<q&&!f&&(u.length||t&&t.length)&&(f=!0);90<q&&!k&&(r.length||w&&w.length)&&(k=!0);p=p?f?w:r:k?t:u;p.push(v)}}a.Ml=window.NaN;if(!e){var x=[];$.wa($.Ec(h),function(a){var b=a[3].concat(a[1]),c=a[2].concat(a[0]);a=a[4];this.mx(c,!1,x,a);this.mx(b,!0,x,a);x=x.concat(c,b)},a)}b.select(c);a.xc||(a.xc=[]);a.Ud||(a.Ud=[]);l=a.Ml;-1!=(0,$.za)(a.xc,
l)?$.ua(a.xc)!=l&&(a.Ud.push(l),a.xc.length=0):a.xc.push(l);a.Ja=Math.round(a.Ja)},jO=function(a){a.b=Math.max(a.b-Math.max(a.Ja,0),0);var b=a.i("innerRadius");a.G=$.E(b)?b(a.b):$.M(b,a.b);b=a.G/Math.pow(2,.5)*2;a.ga=$.gn(a.Cc-b/2,a.yc-b/2,b,b);a.eb=new $.J(a.Cc-a.b,a.yc-a.b,2*a.b,2*a.b);b=a.labels();$.V(b);b.Cc(a.Cc);b.yc(a.yc);b.qy(a.b);b.lE(a.i("startAngle"));b.Hy(360);b.ja(a.eb);b.da(!1);a.mb().labels().ja(a.eb)},kO=function(a,b){a.ya=b;var c=Math.min(a.ga.width/a.ya.width,a.ga.height/a.ya.height);
(0,window.isFinite)(c)||(c=0);a.f.Kj.jc(c,0,0,c,a.ga.left-a.ya.left*c+(a.ga.width-c*a.ya.width)/2,a.ga.top-a.ya.top*c+(a.ga.height-c*a.ya.height)/2)},hO=function(a,b,c){var d=a.data().aa(),e=b.la(),f=a.i("mode3d");if(d.select(e)){var h=a.ab[2*e];e=a.ab[2*e+1];d=d.o("connector");var k=b.uc().value,l=$.n(b.i("offsetY"))?b.i("offsetY"):a.labels().i("offsetY");l||(l=0);l=$.M(l,a.b);(b=$.n(b.i("offsetX"))?b.i("offsetX"):a.labels().i("offsetX"))||(b=0);var m=$.bb(k.angle+$.M(b,360)),p=k.radius+l;b=a.Cc+
p*Math.cos(m)-d;a=a.yc+(f?k.radiusY+l:p)*Math.sin(m);c.clear().moveTo(h,e).lineTo(b,a).lineTo(b+d,a)}},mO=function(a,b,c){var d=a.aa(),e=d.la(),f=d.o("start"),h=d.o("sweep");if(c){var k=d.o("slice");var l=d.o("sliceOutline");var m=d.o("hatchSlice");k&&k.clear();m&&m.clear();l&&l.clear()}else a.xf&&(k=$.KB(a.xf),d.o("slice",k)),a.me&&(l=$.KB(a.me),d.o("sliceOutline",l)),a.g&&(m=$.KB(a.g),d.o("hatchSlice",m));if(k){var p=a.zc("outline.offset",b,d,$.Qq,!1)||0;c=a.zc("outline.width",b,d,$.Qq,!1)||0;p=
$.M(p,a.b);c=$.M(c,a.b);var q=gO(a,b);d.o("explode",q);var r=f+h/2;d=q*Math.cos($.bb(r));q*=Math.sin($.bb(r));var t=a.b;r=t+p;p=t+p+c;t={centerX:a.Cc,centerY:a.yc,innerRadius:a.G,outerRadius:t,innerOutlineRadius:r,outerOutlineRadius:p,startAngle:f,sweepAngle:h,explodeX:d,explodeY:q,path:k};l&&(c?$.si(l,a.Cc+d,a.yc+q,p,r,f,h):l.clear());a.i("sliceDrawer").call(t,t);k.tag={W:a,index:e};if(a.i("mode3d"))for(h=a.D.length,c=a.aa().la(),f=0;f<h;f++)l=a.D[f],l.index==c&&lO(a,l.type+"Path"+("outerFront"==
l.type||"innerBack"==l.type||"outerBack"==l.type||"innerFront"==l.type?l.start:""),b);else if(h=a.aa(),c=h.o("slice"),$.n(c)){d=aO("fill",1,!0);l=d(a,b,!1,null);cO(l)&&null===l.mode&&(l.mode=a.eb?a.eb:null);c.fill(l);d=aO("stroke",2,!0);f=d(a,b,!1,null);cO(f)&&null===f.mode&&(f.mode=a.eb?a.eb:null);c.stroke(f);if(c=a.aa().o("sliceOutline"))d=a.zc("outline.enabled",b,h,$.Nq,!1),null===d&&(d=a.zc("outline.enabled",0,h,$.Nq,!1)),d?(d=aO("outline.fill",1,!0),h=d(a,0,!1,l),l=d(a,b,!1,h),cO(l)&&null===
l.mode&&(l.mode=a.eb?a.eb:null),d=aO("outline.stroke",2,!0),f=d(a,b,!1,f),cO(f)&&null===f.mode&&(f.mode=a.eb?a.eb:null)):l=f="none",c.fill(l).stroke(f);bO(a,b)}m&&(m.fe(k.F()),m.tag={W:a,index:e},bO(a,b))}},nO=function(a,b,c,d,e,f,h,k,l,m){l+=String(e);if(m=a.Az(l,m)){var p=.45*d,q=.2*a.b;f<e&&(f+=360);360==Math.abs(h)&&(e=0,f=180);h=$.bb(e);e=$.bb(f);f=b+d*+Math.cos(h).toFixed(5);h=c+p*+Math.sin(h).toFixed(5);b+=d*+Math.cos(e).toFixed(5);c+=p*+Math.sin(e).toFixed(5);m.moveTo(f,h);m.kf(b,c,d,p,!1,
!0);m.lineTo(b,c+q);m.kf(f,h+q,d,p,!1,!1);m.lineTo(f,h);m.close();lO(a,l,k)}},oO=function(a,b,c,d,e,f,h,k,l,m){l+=String(e);if(m=a.Az(l,m)){var p=.45*d,q=.2*a.b;f<e&&(f+=360);360==Math.abs(h)&&(e=180,f=0);h=$.bb(e);e=$.bb(f);f=b+d*Math.cos(h);h=c+p*Math.sin(h);b+=d*Math.cos(e);c+=p*Math.sin(e);m.moveTo(f,h);m.kf(b,c,d,p,!1,!0);m.lineTo(b,c+q);m.kf(f,h+q,d,p,!1,!1);m.lineTo(f,h);m.close();lO(a,l,k)}},pO=function(a,b,c,d,e,f,h,k,l){var m=$.bb(h);h=.2*a.b;var p=c+f*Math.cos(m);c+=e*Math.cos(m);f=d+.45*
f*Math.sin(m);d+=.45*e*Math.sin(m);if(l=a.Az(b,l))l.moveTo(p,f),l.lineTo(c,d),l.lineTo(c,d+h),l.lineTo(p,f+h),l.lineTo(p,f),l.close(),lO(a,b,k)},qO=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)},uO=function(a){var b=a.aa(),c=b.la(),d=$.$w(a.state,c),e=gO(a,d);d=b.o("start");b=b.o("sweep");var f=d+b;if($.n(d)&&$.n(b)&&b){var h=d+b/2,k=e*Math.cos($.bb(h));e=.45*e*Math.sin($.bb(h));
a.D.push({index:c,type:"top",start:d,Rs:b,Ex:k,Hx:e});a.D.push({index:c,type:"bottom",start:d,Rs:b,Ex:k,Hx:e});360!=Math.abs(b)&&(a.D.push({index:c,type:"start",angle:d,Ex:k,Hx:e}),a.D.push({index:c,type:"end",angle:f,Ex:k,Hx:e}));var l=d;var m=f;if(l==m)h=!1;else{l=$.bb(l);m=$.bb(m);h=$.Qm(Math.cos(l),7);var p=$.Qm(Math.cos(m),7);l=rO(h,Math.sin(l));m=rO(p,Math.sin(m));h=1==l||2==l?!0:3==l?1==m||2==m?!0:3==m?h>=p:!1:4==l?4==m?h>=p:!0:!1}if(h)for(l=sO(d,f),h=a.D.length,p=l.length,a.D.length=h+p,m=
0;m<p;m++)l[m].index=c,l[m].type="outerFront",l[m].Rs=b,l[m].Ex=k,l[m].Hx=e,a.D[h+m]=l[m];l=d;m=f;l!=m&&a.G?(l=$.bb(l),m=$.bb(m),h=$.Qm(Math.cos(l),7),p=$.Qm(Math.cos(m),7),l=rO(h,Math.sin(l)),m=rO(p,Math.sin(m)),h=3==l||4==l?!0:1==l?3==m||4==m?!0:1==m?h<=p:!1:2==l?2==m?h<=p:!0:!1):h=!1;if(h)for(l=tO(d,f),h=a.D.length,p=l.length,a.D.length=h+p,m=0;m<p;m++)l[m].index=c,l[m].type="innerBack",l[m].Rs=b,l[m].Ex=k,l[m].Hx=e,a.D[h+m]=l[m];l=tO(d,f);h=a.D.length;p=l.length;a.D.length=h+p;for(m=0;m<p;m++)l[m].index=
c,l[m].type="outerBack",l[m].Rs=b,l[m].Ex=k,l[m].Hx=e,a.D[h+m]=l[m];l=sO(d,f);h=a.D.length;p=l.length;a.D.length=h+p;for(m=0;m<p;m++)l[m].index=c,l[m].type="innerFront",l[m].Rs=b,l[m].Ex=k,l[m].Hx=e,a.D[h+m]=l[m]}},xO=function(a,b,c){var d=0,e=a.D.length;if($.n(b))for(d=0;d<e;d++){var f=a.D[d];f.index==b&&vO(a,f,c)}else{for(d=0;d<e;d++)switch(f=a.D[d],f.type){case "top":f.Gy=1;break;case "outerFront":f.Gy=f.wn?1:$.Qm(Math.sin($.bb(wO(f.start,f.end))),7);break;case "innerBack":f.Gy=f.wn?-1:$.Qm(Math.sin($.bb(wO(f.start,
f.end))),7);break;case "bottom":f.Gy=-3;break;case "innerFront":f.Gy=0;break;case "outerBack":f.Gy=-2;break;default:f.Gy=$.Qm(Math.sin($.bb(f.angle)),7)}a.D.sort(function(a,b){return a.Gy-b.Gy});for(d=0;d<e;d++)vO(a,a.D[d])}a.D.length=0},vO=function(a,b,c){var d=a.aa();d.select(b.index);var e=$.$w(a.state,b.index),f=gO(a,e);d.o("explode",f);d=a.Cc;var h=a.yc;f&&(d+=b.Ex,h+=b.Hx);f=a.b;var k=a.G;switch(b.type){case "top":yO(a,d,h,f,k,b.start,b.Rs,e,!0,c);break;case "bottom":yO(a,d,h,f,k,b.start,b.Rs,
e,!1,c);break;case "outerFront":nO(a,d,h,f,b.start,b.end,b.Rs,e,"outerFront",c);break;case "innerBack":oO(a,d,h,k,b.start,b.end,b.Rs,e,"innerBack",c);break;case "outerBack":nO(a,d,h,f,b.start,b.end,b.Rs,e,"outerBack",c);break;case "innerFront":oO(a,d,h,k,b.start,b.end,b.Rs,e,"innerFront",c);break;case "start":pO(a,"startPath",d,h,f,k,b.angle,e,c);break;case "end":pO(a,"endPath",d,h,f,k,b.angle,e,c)}},yO=function(a,b,c,d,e,f,h,k,l,m){0>d&&(d=0);0>e&&(e=0);if(d<e){var p=d;d=e;e=p}p=(l?"top":"bottom")+
"Path";c+=l?0:.2*a.b;h=$.Za(h,-360,360);if(l=a.Az(p,m))0>=e?360==Math.abs(h)?l.ze(b,c,d,.45*d,f,h,!1):l.moveTo(b,c).ze(b,c,d,.45*d,f,h,!0).close():(m=360>Math.abs(h),l.ze(b,c,d,.45*d,f,h).ze(b,c,e,.45*e,f+h,-h,m),m&&l.close()),lO(a,p,k)},zO=function(a,b){var c=a.aa(),d=c.la(),e=c.get("normal"),f=$.Ro($.n(e)?e.fill:void 0,c.get("fill"),a.fill());b=$.Xl(b);b==$.qo?(e=c.get("selected"),c=$.Ro($.n(e)?e.fill:void 0,c.get("selectFill"),a.selected().fill(),f),f=a.IJ(c,f)):b==$.po?(e=c.get("hovered"),c=$.Ro($.n(e)?
e.fill:void 0,c.get("hoverFill"),a.mb().fill(),f),f=a.IJ(c,f)):f=a.IJ(f);f=$.z(f)?$.Dl(f):$.Dl(f.color);d=a.cc().nc(d);var h;$.D(d)&&(d.color?h=$.Dl(d.color):d.keys&&d.keys.length&&(h=$.Dl(d.keys[0].color)));h=h?h.ck:d;return f?f.ck:h},lO=function(a,b,c){var d=a.aa(),e=d.la(),f=zO(a,c),h=$.wl(f),k=d.o(b);k.tag={W:a,index:e};var l,m=$.Al(h,.3),p=$.zl([255,255,255],h,.1),q=$.Ub($.zl(h,m,.7));p=$.Ub($.zl(m,p,.1));var r=$.Ub($.zl(h,m,.8)),t=$.Ub($.zl(h,m,.2));h=$.Ub($.zl(h,m,.1));var u=$.Xl(c);m=u==$.po;
u=u==$.qo;var v=$.Nl(m?a.mb().fill():u?a.selected().fill():a.fill());t={color:m||u?$.Hl(t,.2):t,opacity:v};p={angle:45,keys:[{position:0,opacity:v,color:m||u?$.Hl(f,.2):$.Hl(f,.1)},{position:.19,opacity:v,color:m||u?$.Hl(p,.2):p},{position:1,opacity:v,color:m||u?$.Hl(r,.2):r}]};q=f={angle:-50,keys:[{position:0,opacity:v,color:m||u?$.Hl(f,.3):f},{position:1,opacity:v,color:m||u?$.Hl(q,.2):q}]};"topPath"==b?l=f:"bottomPath"==b?l=q:$.fc(b,"outer")?l=p:$.fc(b,"inner")?l=t:l={color:m||u?$.Hl(h,.2):h,opacity:v};
var w;u&&$.Wl(a.selected().stroke())?w=a.selected().stroke():$.Wl(a.stroke())?w=a.stroke():w=l;k.fill(l);k.stroke(w);b="hatch"+String(b.charAt(0)).toUpperCase()+b.substr(1);if(d=d.o(b))d.fe(k.F()),d.tag={W:a,index:e},bO(a,c,b)},rO=function(a,b){return 0<=a&&0<=b?1:0>=a&&0<=b?2:0>=a&&0>b?3:4},sO=function(a,b){var c=$.Qm(Math.cos($.bb(a)),7),d=$.Qm(Math.cos($.bb(b)),7),e=rO(c,Math.sin($.bb(a))),f=rO(d,Math.sin($.bb(b))),h=[];if(1==e)switch(f){case 1:c>=d?h.push({start:a,end:b}):(h.push({start:a,end:180,
wn:!0}),h.push({start:360,end:b}));break;case 2:h.push({start:a,end:b,wn:!0});break;case 3:case 4:h.push({start:a,end:180,wn:!0})}else if(2==e)switch(f){case 1:h.push({start:a,end:180});h.push({start:360,end:b});break;case 2:c>=d?h.push({start:a,end:b}):(h.push({start:a,end:180}),h.push({start:360,end:b,wn:!0}));break;case 3:case 4:h.push({start:a,end:180})}else if(3==e)switch(f){case 1:h.push({start:360,end:b});break;case 2:h.push({start:360,end:b,wn:!0});break;case 3:c>=d&&h.push({start:0,end:180,
wn:!0})}else if(4==e)switch(f){case 1:h.push({start:360,end:b});break;case 2:h.push({start:360,end:b,wn:!0});break;case 3:h.push({start:360,end:180,wn:!0});break;case 4:c>=d&&h.push({start:0,end:180,wn:!0})}return h},tO=function(a,b){var c=$.Qm(Math.cos($.bb(a)),7),d=$.Qm(Math.cos($.bb(b)),7),e=rO(c,Math.sin($.bb(a))),f=rO(d,Math.sin($.bb(b))),h=[];if(1==e)switch(f){case 1:c<=d&&h.push({start:180,end:360});break;case 3:h.push({start:180,end:b});break;case 4:h.push({start:180,end:b,wn:!0})}else if(2==
e)switch(f){case 1:h.push({start:180,end:360,wn:!0});break;case 2:c<=d&&h.push({start:180,end:360,wn:!0});break;case 3:h.push({start:180,end:b});break;case 4:h.push({start:180,end:b,wn:!0})}else if(3==e)switch(f){case 1:case 2:h.push({start:a,end:360,wn:!0});break;case 3:c>=d?(h.push({start:a,end:360}),h.push({start:180,end:b})):h.push({start:a,end:b});break;case 4:h.push({start:a,end:b,wn:!0})}else if(4==e)switch(f){case 1:case 2:h.push({start:a,end:360});break;case 3:h.push({start:a,end:360});h.push({start:180,
end:b});break;case 4:c>=d?(h.push({start:a,end:360}),h.push({start:180,end:b})):h.push({start:a,end:b})}return h},fO=function(a,b){var c=a.aa();c.select(b);var d=a.Cc,e=a.yc,f=$.$w(a.state,b);if(f=gO(a,f)){var h=a.i("mode3d"),k=c.o("start");c=c.o("sweep");c=(k+c/2)*Math.PI/180;h=(h?.45*f:f)*Math.sin(c);d+=f*Math.cos(c);e+=h}return[d,e]},wO=function(a,b){b<a&&(b+=360);return(a+b)/2},gO=function(a,b,c){b=b||0;var d=a.aa();1==d.Gb()?a=0:(c=a.zc("explode",b,d,$.Qq,!1,void 0,c),a=$.n(c)?$.M(c,a.Pg):0);
return a},AO=function(a){var b=a.Xa();a.ac($.wk()?"mousemove":"touchstart",a.nQ);b.Oc()},BO=function(a,b,c,d){this.G=d;this.g=c;this.bg=b;this.labels=[];this.y=this.height=0;this.b=[];this.f=a;this.iH=!1;this.Wk=null},CO=function(a,b){b&&(a.labels.push(b),a.mx())},DO=function(a,b){var c=$.hn(a.pb());return!$.Zm(c,$.hn(b))},Nea=function(a){for(var b=0,c=a.labels.length;b<c;b++){var d=a.labels[b],e=a.b[3*b],f=a.b[3*b+1],h=a.b[3*b+2],k=d.uc().value;k.angle=e;k.radius=f;k.radiusY=h;eO(a.bg,d)}},EO=function(a,
b){var c=new ZN(a,b);c.ld();return c},FO=function(a,b){var c=new ZN(a,b);c.Fa("pie3d");c.ld();return c};$.H(SN,$.pz);$.g=SN.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("start"),c=a.o("sweep"),d=this.Aa.b,e=this.Aa.J0();this.b.push(this.Aa.Dl(),0,0,0);this.f.push(b,c,d,e)}};$.g.jw=function(){qO(this.Aa,1E-5,1E-5,VN(this.Aa))};
$.g.Qm=function(){for(var a=this.Aa.Qf(),b=0;a.advance();)if(!a.o("missing")){a.o("start",this.coords[b++]);a.o("sweep",this.coords[b++]);a.o("radius",this.coords[b++]);a.o("innerRadius",this.coords[b++]);var c=this.Aa,d=a,e=d.o("slice");e.clear();var f=d.o("start"),h=d.o("sweep"),k=d.o("radius"),l=d.o("innerRadius"),m=$.$w(c.state,d.la());if(m=gO(c,m)){var p=f+h/2;e=$.si(e,c.Cc+m*Math.cos($.bb(p)),c.yc+m*Math.sin($.bb(p)),k,l,f,h)}else e=$.si(e,c.Cc,c.yc,k,l,f,h);if(f=d.o("hatchSlice"))c.aa().select(d.la()),
f.clear(),f.fe(e.F()),c=aO("hatchFill",3,!0)(c,$.$w(c.state,d.la()),!1,null),f.stroke(null).fill(c)}};$.g.Nl=function(){this.Qm()};$.g.R=function(){SN.u.R.call(this);this.Aa=null};$.H(UN,$.pr);$.g=UN.prototype;$.g.pF=function(){var a=[],b=this.$d.aa(),c=void 0,d=void 0;if(this.f)for(;b.advance();){var e=b.get(this.g),f=b.get("name");$.n(f)||(f="Point "+b.la());this.f(e)?a.push(b.la()):c?(c.push(e),d.push(f)):(c=[e],d=[f])}else for(e=0,b=b.Gb();e<b;e++)a.push(e);c?(this.b.hf(0,(0,$.Fg)(c,this.j,this.D())),this.b.o(0,"names",d),this.b.o(0,"values",c)):(this.b.hf(0,c),this.b.o(0,"names",[]),this.b.o(0,"values",[]));return a};
$.g.Gb=function(){$.qr(this);return(this.jo?this.jo.length:this.$d.Gb())+this.b.Gb()};$.g.Cl=function(a){$.qr(this);var b=this.$d.Gb();return a<b?this.$d.Cl(a):this.b.Cl(a-b)};$.g.Ct=function(){return $.Ga(this.$d.Ct(),this.b)};$.g.hf=function(a,b){$.qr(this);var c=this.jo?this.jo.length:this.$d.Gb();if(a<c)return $.pr.prototype.hf.apply(this,arguments);a-=c;return this.b.hf.apply(this.b,arguments)};
$.g.oN=function(a,b,c){var d=this.jo?this.jo.length:this.$d.Gb();if(a>d)throw Error("Index can not be masked by this View");return a>=d?(a-=d,2<arguments.length?(this.b.o.apply(this.b,arguments),this):this.b.o.apply(this.b,arguments)):$.pr.prototype.oN.apply(this,arguments)};$.H(TN,$.wr);TN.prototype.hf=function(a,b){if(!a){var c=this.f;1<arguments.length&&(this.f=b);return c}};TN.prototype.o=function(a,b,c){if(!a)return $.pr.prototype.o.apply(this,arguments)};
TN.prototype.Gb=function(){return $.n(this.f)?1:0};var GO=TN.prototype;GO.row=GO.hf;GO.getRowsCount=GO.Gb;$.H(WN,$.pz);WN.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)};WN.prototype.Qm=function(){qO(this.Aa,this.coords[0],this.coords[1],this.G)};WN.prototype.Nl=function(){this.Qm()};WN.prototype.R=function(){WN.u.R.call(this);this.g=this.Aa=null;delete this.G};$.H(XN,$.sA);XN.prototype.Dl=function(){return this.Aa.data().o(this.index,"start")};XN.prototype.b=function(){var a=this.Aa.data(),b=a.o(this.index,"start");a=a.o(this.index,"sweep");return b+a};var HO=XN.prototype;HO.getStartAngle=HO.Dl;HO.getEndAngle=HO.b;HO.hovered=HO.mb;$.H(ZN,$.ox);$.xq(ZN,["fill","stroke","hatchFill","outline"],"normal");$.xq(ZN,["explode"],"selected");ZN.prototype.qa=$.ox.prototype.qa|16;ZN.prototype.sa=$.ox.prototype.sa|28688;
var IO=function(){var a={};$.hq(a,[$.Z.uB,$.Z.bz,[0,"radius",function(a){return $.so(a,"100%")}],[0,"innerRadius",function(a){return $.E(a)?a:$.so(a)}],[0,"sort",$.Gk],[0,"insideLabelsOffset",$.so],[0,"connectorLength",function(a){return $.so(a,"20%")}],[0,"outsideLabelsCriticalAngle",function(a){return $.ab($.M(a))}],[0,"forceHoverLabels",$.tq],[1,"connectorStroke",$.Dq],[0,"mode3d",$.uq],[0,"sliceDrawer",$.Vq]]);return a}();$.U(ZN,IO);$.g=ZN.prototype;
$.g.Na=function(){return this.i("mode3d")?"pie-3d":"pie"};$.g.Rg=function(){return!0};$.g.hk=function(){return!1};$.g.Ii=function(){return!0};$.g.Te=function(){return[this]};$.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);if($.K(a,$.pr)){var d=a;this.jd=null}else $.K(a,$.zr)?d=(this.jd=a).ie():d=(this.jd=new $.zr($.A(a)||$.z(a)?a:null,b)).ie();this.j=d.tj()}YN(this)}return this}return this.ka};
$.g.Id=function(a){$.X(a,16)&&this.B(13104,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.group=function(a,b){return $.n(a)?($.E(a)&&a!=this.Tc?(this.Tc=a,this.ip=b||"Grouped point",YN(this)):$.Vo(a)&&(this.Tc=null,YN(this)),this):this.Tc};
$.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.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;$.W(this,"palette",this.Ea);this.Ea.oq();b&&this.Ea.K(b);$.L(this.Ea,this.If,this);c&&this.B(528,1)}};
$.g.oe=function(a){this.Yc||(this.Yc=new $.ws,$.L(this.Yc,this.If,this));return $.n(a)?(this.Yc.K(a),this):this.Yc};$.g.If=function(a){$.X(a,2)&&this.B(528,1)};var $N={};$.g=ZN.prototype;$.g.zc=function(a,b,c,d,e,f,h){var k=!!(b&$.po),l=!!(b&$.qo);f=l?this.Ca:k?this.xa:this.ca;e=a.split(".");f=(0,$.Fg)(e,function(a,b){return a[b]()},f);h?a=f:(h=c.get(l?"selected":k?"hovered":"normal"),h=$.n(h)?(0,$.Fg)(e,function(a,b){return a?a[b]:a},h):void 0,a=$.Ro(h,c.get($.$l(b,a)),f));$.n(a)&&(a=d(a));return a};
$.g.ph=function(){return $.$b(this.oe().nc(this.aa().la())||"none")};$.g.Fi=function(){var a=this.aa();return{index:a.la(),sourceHatchFill:this.ph(),iterator:a}};$.g.Ae=function(a,b){var c=this.aa(),d;b||(d=c.get("fill"));return{index:c.la(),sourceColor:$.Vb(a||d||this.cc().nc(c.la())||"blue"),iterator:c,series:this,chart:this}};
$.g.IJ=function(a,b){var c=this.aa().la();if($.z(a)&&"aquastyle"==a)c={aquaStyleObj:this.Ob,sourceColor:this.cc().nc(c)},c=this.Gk.call(c);else if($.E(a)){var d=1<arguments.length?this.IJ.apply(this,$.Ja(arguments,1)):this.cc().nc(c);c={index:c,sourceColor:d,iterator:this.aa()};c=a.call(c)}else c=a;return c};$.g.Ej=function(){return!this.aa().Gb()};$.g.yp=function(a){this.f||(this.f=new $.IB(this),$.L(this.f,this.bha,this),$.W(this,"center",this.f));return $.n(a)?(this.f.K(a),this):this.f};
$.g.bha=function(a){var b=0,c=0;$.X(a,1)&&(b|=16,c|=1);$.X(a,8)&&(b|=16388,c|=1);this.B(b,c)};$.g.labels=function(a){return $.n(a)?(this.ca.labels(a),this):this.ca.labels()};$.g.al=function(a){this.Ra||(this.Ra=[]);var b=a.la();this.Ra[b]||(this.Ra[b]=$.jn(this.labels().hl(a)));return this.Ra[b]};$.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.Yga=function(){this.B(20,1)};
$.g.Ec=function(a){var b=this.aa();if(!this.de||a)this.de=new $.rw;this.de.Ag(b).mj([this.Rd(b.la()),this]);a={x:{value:b.get("x"),type:"string"},value:{value:b.get("value"),type:"number"},name:{value:b.get("name"),type:"string"},index:{value:b.la(),type:"number"},chart:{value:this,type:""}};b.o("groupedPoint")&&(a.name={value:b.o("name"),type:"string"},a.groupedPoint={value:!0,type:"string"},a.names={value:b.o("names"),type:""},a.values={value:b.o("values"),type:""});return $.av(this.de,a)};
$.g.Ai=function(){var a=VN(this),b=this.aa(),c=b.o("start"),d=b.o("sweep"),e=1==b.Gb()||360==d;b=$.$w(this.state,b.la());b=gO(this,b);c+=d/2;var f=this.i("mode3d");d=this.i("insideLabelsOffset");if(f){if(a)e=this.b+this.ba,d=.45*this.b+this.ba,b&&(e+=b,d+=.45*b);else{var h=this.b;a=.45*this.b;var k=this.G;f=.45*this.G;e&&!k?d=e=0:(e=$.M(d,k+h),d=$.oo(d)?$.M(d,f+a):.45*$.M(d,f+a),b&&(e+=b,d+=.45*b))}return{value:{angle:c,radius:e,radiusY:d}}}return{value:{angle:c,radius:a?this.b+this.ba+b:$.M(d,e&&
!this.G?0:this.b-this.G)+this.G+b,outerRadius:this.b,innerRadius:this.G}}};
$.g.mx=function(a,b,c,d){var e,f,h,k,l,m,p=null,q=this.aa(),r=[],t=b?$.wa:$.Qe;t(a,function(a){a&&0!=a.enabled()&&(q.select(a.la()),a.lf(this.Ec()),B=this.al(a),!p||DO(p,B)?(p&&r.push(p),p=new BO(b,this,r,d||0),p.zB(a)):p.zB(a))},this);p&&r.push(p);a=0;for(e=r.length;a<e;a++)(p=r[a])&&p.Mo&&(f||(f=[]),f=$.Ga(f,p.Mo));p=null;f&&($.Qa(f,function(a,b){return a.la()>b.la()?1:a.la()<b.la()?-1:0}),t(f,function(a){if(a){q.select(a.la());a.lf(this.Ec());B=this.al(a);h=!0;k=0;for(l=r.length;k<l;k++)h=h&&DO(r[k],
B);if(h){p||(p=new BO(b,this,[],d||0));CO(p,a);m=p.pb();h=!0;for(k=0;k<l;k++)h=h&&DO(r[k],m);p.iH||!h?(p.labels.pop().enabled(!1),p.mx(),r.push(p),p=null):a.enabled(!0)}else p&&(r.push(p),p=null)}},this),p&&r.push(p));var u,v,w=this.i("mode3d"),x=this.i("connectorStroke");a=0;for(e=r.length;a<e;a++)if(p=r[a]){Nea(p);var y=0;for(u=p.labels.length;y<u;y++)if((f=p.labels[y])&&0!=f.enabled()){eO(this,f);t=f.la();q.select(t);var B=this.al(f);if(c){var G=this.ab[2*t],C=this.ab[2*t+1],I=q.o("connector"),
P=f.uc().value,Q=P.angle;Q=$.bb(Q);P=P.radius;var S=this.Cc+P*Math.cos(Q)-I,sa=this.yc+P*Math.sin(Q);var va=0;for(v=c.length;va<v;va++){Q=c[va];eO(this,Q);var Oa=this.al(Q),vb=Q.la(),mc=fO(this,vb),kb=mc[0],Qb=mc[1],Gb=q.o("start"),ic=q.o("sweep");mc=this.ab[2*vb];vb=this.ab[2*vb+1];I=q.o("connector");P=Q.uc().value;Q=P.angle;Q=$.bb(Q);P=P.radius;I=this.Cc+P*Math.cos(Q)-I;P=this.yc+P*Math.sin(Q);Q=$.bb(Gb);var ie=kb+this.G*Math.cos(Q),Rb=Qb+this.G*Math.sin(Q),Fc=kb+this.b*Math.cos(Q),Wb=Qb+this.b*
Math.sin(Q);Q=$.bb(Gb+ic);Gb=kb+this.G*Math.cos(Q);ic=Qb+this.G*Math.sin(Q);kb+=this.b*Math.cos(Q);Qb+=this.b*Math.sin(Q);Q=$.hn(B);if($.Zm(Q,$.hn(Oa))||QN(ie,Rb,Fc,Wb,Q)||QN(Gb,ic,kb,Qb,Q)||QN(mc,vb,I,P,Q)||$.bn(G,C,S,sa,ie,Rb,Fc,Wb)||$.bn(G,C,S,sa,Gb,ic,kb,Qb)||$.bn(mc,vb,I,P,G,C,S,sa)||$.Zm(Q,[Fc,Wb,ie,Rb])||$.Zm(Q,[kb,Qb,Gb,ic])){f.enabled(!1);break}}}if(0!=f.enabled()){if(this.dh||this.Tf)va=d?this.Xf:this.Ge,va=Math.max(va.left-B.left,B.$a()-va.$a(),va.top-B.top,B.Ua()-va.Ua()),va>this.Ja&&
(this.Ml=t),this.Ja=Math.max(this.Ja,va);this.O[t]||(va=this.ab[2*t+1]-.2*this.b/2,va=w&&va<this.yc?$.KB(this.hc):$.KB(this.U),this.O[t]=va,va.stroke(x),hO(this,f,va))}}}};
$.g.On=function(a){this.Pg=Math.min(a.width,a.height);var b=gO(this,$.Zl,!0),c=gO(this,$.po,!0),d=gO(this,$.qo,!0),e=Math.max(b,c||0,d||0),f=this.aa();for(f.reset();f.advance();)b=gO(this,$.Zl),c=gO(this,$.po),d=gO(this,$.qo),e=Math.max(b,c||0,d||0,e);b=this.ca.labels().enabled()||this.xa.labels().enabled()||this.Ca.labels().enabled();e=VN(this)&&b?e:0;this.Ge=$.gn(a.left+e,a.top+e,a.width-2*e,a.height-2*e);b=this.Pg-2*e;c=Math.max($.M(this.i("radius"),b),0);this.i("mode3d")?this.b=Math.min(Math.min(c,
(a.width-2*e)/2),(a.height-2*e)/1.3):this.b=Math.min(b/2,c);this.ba=$.M(this.i("connectorLength"),this.b);this.gp=this.b;this.Ja=0;this.Cc=this.Ge.left+this.Ge.width/2;this.yc=this.Ge.top+this.Ge.height/2;b=$.bb(-145);c=Math.min(a.width,a.height)/2;e=.5*c*Math.cos(b)/a.width+.5;b=.5*c*Math.sin(b)/a.height+.5;0>a.width&&(a.width=0);0>a.height&&(a.height=0);this.Ob.fx=!(0,window.isNaN)(e)&&(0,window.isFinite)(e)?e:0;this.Ob.fy=!(0,window.isNaN)(b)&&(0,window.isFinite)(b)?b:0;this.Ob.mode=a;jO(this)};
$.g.ob=function(){if(this.J(8192)){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"),dO(b)?c++:(b=+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",h);this.I(8192)}};$.g.Pu=function(){this.Ea&&$.K(this.Ea,$.ys)&&$.zs(this.Ea,this.aa().Gb())};$.g.oJ=function(){var a=this.f.Uh.pb();$.ob(a,this.ya)||kO(this,a)};
$.g.kK=function(){this.B(4,1)};
$.g.ei=function(a){this.ob();$.Mu(this.labels());var b=this.aa();b.Gb();var c=this.i("mode3d"),d=this.yp();this.J(16384)&&(d&&d.Kj&&(this.f.vF(),this.f.Kj.parent(this.La),this.f.Kj.zIndex(25),this.f.Kj&&($.K(this.f.Uh,$.hg)?this.f.Kj.Ha().ra("renderfinish",this.oJ,!1,this):$.K(this.f.Uh,$.Y)&&this.f.Kj.ra("chartdraw",this.kK,!1,this))),this.I(16384));this.J(4)&&(this.Tf=!0,this.On(a),this.B(4112));if(this.J(16)){this.dh=!0;var e=this.Dl();var f=0;for(b.reset();b.advance();)if(f=b.get("value"),dO(f))b.o("missing",
!0);else{f=+f;f=f/this.Eg("sum")*360;var h=b.get("state");h="selected"==h?$.qo:"hovered"==h?$.po:"normal"==h?$.Zl:window.NaN;(0,window.isNaN)(h)||this.state.xh(h,b.la());b.o("start",e).o("sweep",f).o("explode",gO(this,h));e+=f}}if(this.J(4096)){this.labels().P()||this.labels().P(this.La);this.labels().clear();this.xc&&(this.xc.length=0);this.Ud&&(this.Ud.length=0);this.U&&(this.U.clear(),c&&this.hc.clear());if(this.labels().enabled()){var k=VN(this)?"outsideLabels":"insideLabels";e=$.jr(this,k,!0,
function(){var a=new $.Yq;$.sd(this,a);$.W(this,k,a);return a}).ma;this.labels().sq(e.autoColor);this.labels().disablePointerEvents(e.disablePointerEvents);if(VN(this)){if(this.dh||this.Tf)this.b=this.gp,this.Ja=Number.NEGATIVE_INFINITY;iO(this);if(this.dh||this.Tf){for(e=5;this.Ja&&(0,window.isFinite)(this.Ja)&&e&&10<Math.abs(this.Ja);)jO(this),this.Ja=Number.NEGATIVE_INFINITY,this.labels().clear(),this.U&&(this.U.clear(),c&&this.hc.clear()),iO(this),e--;this.B(4)}}else for(b.reset();b.advance();)dO(b.get("value"))||
(e=$.$w(this.state,b.la()),this.ce(e,!!(e&$.po)))}this.labels().$();this.labels().Kd().clip(a);this.B(16);this.I(4096)}if(this.J(16)){a=this.ca.at().i("offset")||this.ca.at().i("width")||this.xa.at().i("offset")||this.xa.at().i("width")||this.Ca.at().i("offset")||this.Ca.at().i("width");this.me?this.me.clear():a&&(this.me=new $.JB(function(){return $.nk()},function(a){a.clear()}),this.me.zIndex(30),this.me.parent(this.La));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));c&&(this.D.length=0);for(b.reset();b.advance();)dO(b.get("value"))||(e=$.$w(this.state,b.la()),c?uO(this):mO(this,e));c&&xO(this);b=this.i("connectorStroke");if(this.O)for(c=0;c<this.O.length;c++)(a=this.O[c])&&a.stroke(b);this.G?(c=this.f.i("fill"),a=this.f.i("stroke"),this.Ga||(this.Ga=$.kk()),e=this.G-$.bc(a)/2,this.Ga.parent(this.La).zIndex(20).stroke(a).fill(c).Wb(e)):
this.Ga&&this.Ga.parent(null);this.Bd&&this.Bd.stroke(b);this.I(16)}this.J(4)&&d&&(b=d.Uh,d=d.Kj,$.K(b,$.hg)?(b=b.pb(),kO(this,b),d.clip(null)):$.K(b,$.Y)&&(b.ja(this.ga),b.da(!1),b.$(),d.jc(1,0,0,1,0,0),d.clip($.kk(this.Cc,this.yc,this.G+2))),this.Ga&&this.G&&this.Ga.zp(this.Cc).Ap(this.yc));this.Tf=!1};
$.g.ce=function(a,b){if(VN(this)){var c=a,d=this.aa();c=$.Xl(c);var e=c==$.po,f=c==$.qo,h=this.labels(),k=f?this.Ca.labels():e?this.xa.labels():null,l=d.get("normal");l=$.n(l)?l.label:void 0;var m=f?d.get("selected"):e?d.get("hovered"):void 0;m=$.n(m)?m.label:void 0;l=$.Ro(l,d.get("label"));m=f?$.Ro(m,d.get("selectLabel")):e?$.Ro(m,d.get("hoverLabel")):null;var p=d.la();c=h.Vd(p);var q=l&&$.n(l.enabled)?l.enabled:null,r=m&&$.n(m.enabled)?m.enabled:null;e=e||f?null===r?null===k.enabled()?null===q?
c&&$.n(c.enabled())?c.enabled():h.enabled():q:k.enabled():r:null===q?c&&$.n(c.enabled())?c.enabled():h.enabled():q;q=this.Ec(!0);r=this.Ai();if(e){if(f=!c)c=h.add(q,r,p);h=c.enabled();c.oi();$.Ou(c,k);c.kd(l,m);c.enabled(h);d=d.o("anchor");$.n(d)&&c.anchor(d);f||c.$()}else c?(h=c.enabled(),c.clear(),c.enabled(h)):(c=h.add(q,r,p),d=d.o("anchor"),$.n(d)&&c.anchor(d),c.enabled(!1));if(b&&(d=c)&&this.O){k=d.la();var t;(t=this.O[k])?d&&0!=d.enabled()&&e?hO(this,d,t):t.clear():e?hO(this,d,this.Bd):this.Bd.clear()}return c}a=
$.Xl(a);t=a==$.po;r=a==$.qo;var u=this.aa();c=this.labels();d=r?this.Ca.labels():t?this.xa.labels():null;k=u.get("normal");k=$.n(k)?k.label:void 0;l=r?u.get("selected"):t?u.get("hovered"):void 0;l=$.n(l)?l.label:void 0;k=$.Ro(k,u.get("label"));l=r?$.Ro(l,u.get("selectLabel")):t?$.Ro(l,u.get("hoverLabel")):null;m=u.la();h=c.Vd(m);p=k&&$.n(k.enabled)?k.enabled:null;e=l&&$.n(l.enabled)?l.enabled:null;f=this.Ai();q=this.Ec(!0);var v=this.i("mode3d");r=t||r;var w=!0;if((!r||r&&!this.i("forceHoverLabels"))&&
"allow-overlap"!=this.i("overlapMode")){var x=u.o("start"),y=u.o("sweep");w=this.Cc;var B=this.yc,G=gO(this,a);if(G){var C=(x+y/2)*Math.PI/180;var I=(v?.45*G:G)*Math.sin(C);w+=G*Math.cos(C);B+=I}C=x*Math.PI/180;G=w+this.b*Math.cos(C);I=B+(v?.45*this.b:this.b)*Math.sin(C);C=(x+y)*Math.PI/180;x=w+this.b*Math.cos(C);C=B+(v?.45*this.b:this.b)*Math.sin(C);this.nb?this.nb.clear():this.nb=new $.Ox;this.nb.lf(q);this.nb.uc(f);this.nb.oi();$.Nu(this.nb,this.labels());$.Ou(this.nb,c);this.nb.kd(k,l);v=this.labels().hl(this.nb,
null,null,m);y=(u=(1==u.Gb()||360==y)&&!this.G)||!QN(w,B,x,C,v);C=!RN(w,B,this.b,v);x=u||RN(w,B,this.G,v);w=(u||!QN(G,I,w,B,v))&&y&&C&&x}(r?null===e?null===d.enabled()?null===p?c.enabled():p:d.enabled():e:null===p?c.enabled():p)&&w?(h?(h.lf(q),h.uc(f)):h=c.add(q,f,m),h.oi(),$.Ou(h,d),h.kd(k,l),t&&!h.P()&&c.Kd()&&(h.P(c.Kd()),h.P().parent()||h.P().parent(c.P()))):h&&c.clear(h.la());return h};
$.g.XK=function(){if(!this.i("mode3d")&&this.DB().i("enabled")&&0<this.DB().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 a=this.DB().i("duration"),b=a*(1-.85);a=new SN(this,.85*a);b=new WN(this,b);this.xg.add(a);this.xg.add(b);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.Az=function(a,b){var c=this.aa(),d="hatch"+String(a.charAt(0)).toUpperCase()+a.substr(1);if(b){var e=c.o(a);var f=c.o(d);e&&e.clear();f&&f.clear()}else e=$.KB(this.xf),c.o(a,e),f=$.KB(this.xf),c.o(d,f);return e};$.g.LS=function(){return[this.Cc,this.yc]};$.g.m0=function(){return this.ga};$.g.D$=function(){return this.b};$.g.J0=function(){return this.G};$.g.xda=function(a){return gO(this,a)};
$.g.Dl=function(){return this.i("startAngle")+-90};$.g.Rd=function(a){var b=new XN(this,a),c;this.aa().select(a)&&b.Fx()&&!dO(c=b.get("value"))&&(a=c/this.Eg("sum")*100,b.Ia("percentValue",a),b.Ia("yPercentOfTotal",a));return b};
$.g.bm=function(a,b){var c=[],d=this.aa().reset(),e="aquastyle"==this.ca.i("fill");if(e){var f=this.Ob;this.Ob={}}for(;d.advance();){var h=d.la();var k=d.get("legendItem")||{},l=null;$.E(b)&&(l=this.Ec(),l=b.call(l,l),$.ea(l)&&(l=String(l)));$.z(l)||(l=d.o("groupedPoint")?d.o("name"):String($.n(d.get("name"))?d.get("name"):d.get("x")));var m=this.i("mode3d"),p=aO("fill",1,!1),q=aO("stroke",2,!1),r=aO("hatchFill",3,!1);l={enabled:!0,meta:{pointIndex:h,pointValue:d.get("value")},iconType:"square",text:l,
iconStroke:m?$.Il(zO(this,$.Zl),.2):q(this,$.Zl,!1,null),iconFill:m?zO(this,$.Zl):p(this,$.Zl,!1,null),iconHatchFill:r(this,$.Zl,!1,null)};$.Sc(l,k);l.sourceUid=$.oa(this);l.sourceKey=h;c.push(l)}e&&(this.Ob=f);return c};$.g.ts=function(){return!0};$.g.er=function(a){a=a.si();this.data().aa().select(a)&&this.select(a)};$.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.es=function(){return[]};$.g.ig=function(a){a=$.Y.prototype.ig.call(this,a);var b=$.mo(a.domTarget).index;if(!$.n(b)&&$.Zw(this.state,$.po)){var c=$.ex(this.state,$.po);c.length&&(b=c[0])}b=$.N(b);(0,window.isNaN)(b)||(a.pointIndex=a.sliceIndex=b);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);if((0,window.isNaN)(b))return null;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,pie:this,iterator:d,sliceIndex:b,pointIndex:b,target:this,originalEvent:a,point:this.Rd(b)}};$.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.Fl=function(a){return $.n(a)?(a=$.yk(a),a!=this.N&&(this.N=a),this):this.N};$.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));b&&this.enabled()&&($.n(a)?this.state.Hh($.po,a):this.state.Hh($.po,!0),AO(this))};$.g.Hi=function(a,b){if(!this.enabled())return this;if($.A(a))for(var c=$.ex(this.state,$.po),d=0;d<c.length;d++)$.Aa(a,c[d])||this.state.Hh($.po,c[d]);$.cx(this.state,a);$.n(b)&&this.nQ(b);return this};$.g.Ek=function(){this.enabled()&&this.state.xh($.po,!0)};$.g.selected=function(a){return $.n(a)?(this.Ca.K(a),this):this.Ca};
$.g.Ni=function(a){return $.n(a)?(a=$.zk(a),a!=this.Eh&&(this.Eh=a),this):this.Eh};$.g.select=function(a){if(!this.enabled())return this;$.n(a)?this.Mi(a):this.iu();return this};$.g.iu=function(){AO(this);this.state.xh($.qo,!0)};$.g.Mi=function(a,b){var c=b&&b.shiftKey?void 0:b?$.po:$.Zl;$.A(a)?(b||this.ae(),this.state.xh($.qo,a,c)):$.ea(a)&&this.state.xh($.qo,a,c);return this};$.g.ae=function(a){$.n(a)?this.state.Hh($.qo,a):this.state.Hh($.qo,!0)};
$.g.Xj=function(a,b){var c=this.aa(),d=c.o("explode");this.i("mode3d")?(uO(this),xO(this,c.la(),!0)):mO(this,a,!0);dO(c.get("value"))||this.ce(a);return b||d!=gO(this,a)};$.g.fm=function(a){var b=this.aa(),c=b.o("sweep"),d=b.get("value"),e=b.la();1==b.Gb()||360==c||dO(d)&&e!=b.Gb()||(a=!!a,c=VN(this),a||c?c?(this.dh=!1,$.V(this.labels()),this.labels().clear(),iO(this),this.labels().$(),this.labels().da(!1)):(this.labels().clear(),b.select(e)):this.labels().$())};$.g.Uk=$.ia;$.g.Wp=$.ia;
$.g.xK=function(){var a=new $.iw(0);a.Aa(this);$.mw(a,this);$.L(a,this.hp,this);$.W(this,"tooltip",a);return a};$.g.hp=function(){this.Xa().$()};$.g.nQ=function(a){var b=$.jr(this,"legend");if(!a||!b||a.target!=b){b=this.Xa();var c=this.Ec();a&&($.V(b),$.Aw(b,a.clientX,a.clientY,c),b.da(!1),this.ra($.wk()?"mousemove":"touchstart",this.nQ))}};$.g.xk=function(){return this.Ec()};
$.g.F=function(){var a=ZN.u.F.call(this);a.data=this.data().F();a.palette=this.cc().F();a.hatchFillPalette=this.oe().F();$.jr(this,"tooltip")&&(a.tooltip=this.Xa().F());this.yp()&&(a.center=this.yp().F());$.Hq(this,IO,a,"Pie");a.normal=this.ca.F();a.hovered=this.xa.F();a.selected=this.Ca.F();return{chart:a}};
$.g.X=function(a,b){ZN.u.X.call(this,a,b);$.zq(this,IO,a,b);this.group(a.group);this.data(a.data);"center"in a&&this.yp().ia(!!b,a.center);"tooltip"in a&&this.Xa().ia(!!b,a.tooltip);"normal"in a&&this.Sa().ia(!!b,a.normal);"hovered"in a&&this.mb().ia(!!b,a.hovered);"selected"in a&&this.selected().ia(!!b,a.selected);"hatchFillPalette"in a&&this.oe().ia(!!b,a.hatchFillPalette);"palette"in a&&this.cc(a.palette)};
$.g.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,{})};$.g.R=function(){$.td(this.xg,this.ca,this.xa,this.Ca,this.f,this.jd,this.j,this.ka,this.Ea,this.Yc);this.ka=this.j=this.jd=this.f=this.Ca=this.xa=this.ca=this.xg=null;delete this.Nd;this.Yc=this.Ea=null;ZN.u.R.call(this)};$.g=BO.prototype;$.g.zB=function(a){a&&(this.labels.push(a),this.ob())};
$.g.pb=function(){if(!this.Wk){var a=this.labels[0]?this.bg.al(this.labels[0]).height:0;this.Wk=new $.J(this.x,this.y+a/2,this.width,this.height)}return this.Wk};$.g.Qd=function(){this.Wk=null};
$.g.mx=function(){var a=this.height=0;this.Qd();var b=this.G,c=this.bg.yp(),d=c?c.Rd():this.bg.LS();var e=this.bg.b+b;c=d.x;d=d.y;var f=this.bg.i("mode3d");if(f){var h=d+.45*e+this.bg.ba-.1+.2*this.bg.b/2;var k=d-(.45*e+this.bg.ba)+.1-.2*this.bg.b/2}else h=d+e+this.bg.ba-.1,k=d-(e+this.bg.ba)+.1;for(var l=0,m=this.labels.length;l<m;l++){var p=this.labels[l];e=this.bg.al(p);a+=e.top-this.height-e.height/2;this.height+=e.height}this.y=a/m;a=this.y+this.height;a>h&&(a=h,this.y=h-this.height);0!=this.labels.length&&
(e=this.bg.al(this.labels[0]).height,this.y+e<k&&(a=k-e+this.height,this.y=k-e));h=this.bg.i("outsideLabelsCriticalAngle");this.b.length=0;k=this.bg.data().aa();this.width=this.x=window.NaN;this.N=null;this.j=this.D=window.NaN;this.iH=!1;l=0;for(m=this.labels.length;l<m;l++){p=this.labels[l];e=this.bg.al(p);var q=l==m-1?0:this.bg.al(this.labels[l+1]).height;var r=p.la();k.select(r);var t=k.o("start");var u=k.o("sweep");(r=$.n(p.i("offsetX"))?p.i("offsetX"):this.bg.labels().i("offsetX"))||(r=0);r=
$.M(r,360);var v=$.n(p.i("offsetY"))?p.i("offsetY"):this.bg.labels().i("offsetY");v||(v=0);p=$.M(v,this.bg.b);var w=$.bb(t+u/2+r);u=this.f?5:-5;var x=this.bg.b+b;var y=this.bg.b+this.bg.ba+b+p;if(f){var B=.45*(this.bg.b+b);var G=.45*(this.bg.b+b+p)+this.bg.ba}else B=x,G=y;t=a;var C=x+this.bg.ba;var I=B+this.bg.ba;Math.abs(t-d)>I&&(I=Math.abs(t-d));I=C*Math.sqrt(Math.pow(I,2)-Math.pow(t-d,2))/I;C=c+(this.f?1:-1)*Math.abs(I);x=c+x*Math.cos(w);B=d+B*Math.sin(w);var P=c+y*Math.cos(w);w=d+G*Math.sin(w);
G=Math.floor($.dn(C,t,c,d))+v;v=Math.abs($.Ab(C-x,t-B,P-x,w-B));y=0>I||G>y;if(v>this.j||(0,window.isNaN)(this.j)||y){this.j=0>I?Number.POSITIVE_INFINITY:v;I=window.Infinity;for(G=w=0;G<this.labels.length;G++)k.select(this.labels[G].la()),x=k.get("value"),(0,window.isNaN)(+x)||(x=+x),x<I&&(I=x,w=G);this.N=this.labels[w];this.D=w}if(v>h||y)this.iH=!0;u=C+u;C=this.f?u:u-e.width;this.x=(0,window.isNaN)(this.x)?C:this.x>C?C:this.x;C=this.f?u+e.width:u;this.width=(0,window.isNaN)(this.width)?C:this.width<
C?C:this.width;u-=c;t-=d;f&&(t+=.2*this.bg.b/2);C=Math.sqrt(Math.pow(u,2)+Math.pow(t,2))-p;p=Math.sqrt(Math.pow(u,2)+Math.pow(t,2))-p;y=window.NaN;0<u&&0<=t?y=$.cb(Math.atan(t/u)):0<u&&0>t?y=$.cb(Math.atan(t/u))+360:0>u?y=$.cb(Math.atan(t/u))+180:!u&&0<t?y=90:!u&&0>t&&(y=270);y-=r;this.b.push(y,C,p);a-=e.height/2+q/2}this.width-=this.x};
$.g.ob=function(){this.mx();if(this.iH){var a=this.N,b=this.D;(0,window.isNaN)(b)||(a.enabled(!1),this.Mo||(this.Mo=[]),this.Mo.push(a),$.Ca(this.labels,b,1));var c=this.bg;a=this.labels;var d=this.g,e,f,h=d[d.length-1];if(h!=this){var k=null;b=a.slice();var l=d.length,m=!1;var p=0;for(e=a.length;p<e;p++)if(f=a[p]){var q=c.al(f);!h||DO(h,q)?!k||DO(k,q)?(k&&(d.push(k),h=k),q="left-center"==f.anchor(),k=new BO(q,c,d,this.G),CO(k,f)):(CO(k,f),c.iH?(f.enabled(!1),k.Mo||(k.Mo=[]),k.Mo.push(f),k.labels.pop(),
k.mx()):h&&k&&!DO(h,k.pb())&&(d.pop(),k.labels=$.Ga(h.labels,k.labels),h=null,k.mx(),m=!0)):(f.enabled(!1),k&&(k.Mo||(k.Mo=[]),k.Mo.push(f)))}if(k)if(0<d.length-l||m)this.labels=k.labels;else{c=k;if(c.Mo){d=0;for(p=c.Mo.length;d<p;d++)c.Mo[d].enabled(!0);c.Mo.length=0}b.length!=a.length&&(this.labels=b)}}this.ob()}else if((a=this.g[this.g.length-1])&&(b=a.pb()),b&&!DO(this,b)){this.g.pop();this.labels=$.Ga(a.labels,this.labels);a=0;for(b=this.labels.length;a<b;a++)this.labels[a].enabled(!0);this.ob()}};
var JO=ZN.prototype;JO.center=JO.yp;JO.group=JO.group;JO.data=JO.data;JO.labels=JO.labels;JO.getPixelRadius=JO.D$;JO.getPixelInnerRadius=JO.J0;JO.getPixelExplode=JO.xda;JO.palette=JO.cc;JO.tooltip=JO.Xa;JO.hatchFillPalette=JO.oe;JO.getType=JO.Na;JO.getPoint=JO.Rd;JO.toCsv=JO.qk;JO.hover=JO.Oj;JO.unhover=JO.Pd;JO.select=JO.select;JO.unselect=JO.ae;JO.normal=JO.Sa;JO.hovered=JO.mb;JO.selected=JO.selected;$.Jp.pie=EO;$.Jp["pie-3d"]=FO;$.F("anychart.pie",EO);$.F("anychart.pie3d",FO);}).call(this,$)}
