/*!@license
* Infragistics.Web.ClientUI infragistics.doughnutchart.js 21.2.20212.99
*
* Copyright (c) 2011-2022 Infragistics Inc.
*
* http://www.infragistics.com/
*
* Depends:
*     jquery-1.4.4.js
*     jquery.ui.core.js
*     jquery.ui.widget.js
*     infragistics.util.js
*     infragistics.ext_core.js
*     infragistics.ext_collections.js
*     infragistics.dv_core.js
*     infragistics.dv_geometry.js
*     infragistics.dv_interactivity.js
*     infragistics.dv_visualdata.js
*     infragistics.piechart.js
*     infragistics.ext_ui.js
*/
(function(factory){if(typeof define==="function"&&define.amd){define(["./infragistics.util","./infragistics.ext_core","./infragistics.ext_collections","./infragistics.dv_core","./infragistics.dv_geometry","./infragistics.dv_interactivity","./infragistics.dv_visualdata","./infragistics.piechart","./infragistics.ext_ui"],factory)}else{factory(igRoot)}})(function($){$.ig=$.ig||{};var $$t={};$.ig.globalDefs=$.ig.globalDefs||{};$.ig.globalDefs.$$k=$$t;var $$0=$.ig.globalDefs.$$0;var $$4=$.ig.globalDefs.$$4;var $$1=$.ig.globalDefs.$$1;var $$w=$.ig.globalDefs.$$w;var $$r=$.ig.globalDefs.$$r;var $$al=$.ig.globalDefs.$$al;var $$ap=$.ig.globalDefs.$$ap;var $$q=$.ig.globalDefs.$$q;var $$6=$.ig.globalDefs.$$6;var $$a=$.ig.globalDefs.$$a;$.ig.$currDefinitions=$$t;$.ig.util.bulkDefine(["Arc:a","ArcItem:b","HoleDimensionsChangedEventHandler:f","Ring:h","RingCollection:i","RingControl:j","RingSeriesBase:l","RingSeriesCollection:m","SliceItem:n","SliceCollection:o","XamDoughnutChart:p","XamDoughnutChart___GetSeriesWithItemsSource__IteratorClass:q","ArcView:r","RingControlView:s","RingSeriesBaseView:t","XamDoughnutChartView:u"]);var $a=$.ig.intDivide,$b=$.ig.util.cast,$c=$.ig.util.defType,$d=$.ig.util.defEnum,$e=$.ig.util.getBoxIfEnum,$f=$.ig.util.getDefaultValue,$g=$.ig.util.getEnumValue,$h=$.ig.util.getValue,$i=$.ig.util.intSToU,$j=$.ig.util.nullableEquals,$k=$.ig.util.nullableIsNull,$l=$.ig.util.nullableNotEquals,$m=$.ig.util.toNullable,$n=$.ig.util.toString$1,$o=$.ig.util.u32BitwiseAnd,$p=$.ig.util.u32BitwiseOr,$q=$.ig.util.u32BitwiseXor,$r=$.ig.util.u32LS,$s=$.ig.util.unwrapNullable,$t=$.ig.util.wrapNullable,$u=String.fromCharCode,$v=$.ig.util.castObjTo$t,$w=$.ig.util.compareSimple,$x=$.ig.util.tryParseNumber,$y=$.ig.util.tryParseNumber1,$z=$.ig.util.numberToString,$0=$.ig.util.numberToString1,$1=$.ig.util.parseNumber,$2=$.ig.util.compare,$3=$.ig.util.replace,$4=$.ig.util.stringFormat,$5=$.ig.util.stringFormat1,$6=$.ig.util.stringFormat2,$7=$.ig.util.stringCompare1,$8=$.ig.util.stringCompare2,$9=$.ig.util.stringCompare3;$c("Arc:a","PieChartBase",{a2:function(){return new $$t.r(this)},gl:function(a){$.ig.PieChartBase.prototype.gl.call(this,a);this._jc=a},_jc:null,init:function(){this.jd=null;$.ig.PieChartBase.prototype.init.call(this);this._ab=$$t.$a.$type},jd:null,ring:function(a){if(arguments.length===1){var b=this.jd;this.jd=a;this._jc.b8(b,this.jd);return a}else{return this.jd}},_jb:null,endAngle:function(a){if(arguments.length===1){this.h($$t.$a.endAngleProperty,a);return a}else{return this.c($$t.$a.endAngleProperty)}},_jg:0,jh:function(){if(this.ring()!=null){return this.ring().ringBreadth()}return 0},gh:function(a,b){$.ig.PieChartBase.prototype.gh.call(this,a,b);if(this.ring()!=null){this.ring().ringSeries().chart().bu(a,b)}},fw:function(a,b){if(this.ring()!=null&&this.ring()._d!=null){$.ig.PieChartBase.prototype.fw.call(this,a,b);var c=this.jf(a);if(c!=null){this.ring()._d.bj(c,b)}}},gz:function(a,b){if(this.ring()!=null&&this.ring()._d!=null){$.ig.PieChartBase.prototype.gz.call(this,a,b);var c=this.jf(a);if(c!=null){this.ring()._d.b5(c,b)}}},jf:function(a){var c=this._jb._g.getEnumerator();while(c.moveNext()){var b=c.current();if(b._b==a){return b}}return null},gy:function(a){if(this.allowSliceSelection()){this.go();this.gw();this.gv()}},go:function(){if(this.actualItemsSource()==null||this.bk()==null){this.bv.count(0);return}var a=this._cm.count();var b=this._cl.count()>0;var c=$.ig.PieChartBase.prototype.df(this._c2);var d=$.ig.PieChartBase.prototype.df(this._c2);this._dk=a;if(b){a++}for(var e=0;e<a;e++){var f=false;var g;if(e==a-1&&b){g=this._dc;f=true}else{g=this.bt().item(this._cm.__inner[e])}if(this.sweepDirection()==1){d+=$.ig.PieChartBase.prototype.df(Math.abs(g)*this.endAngle()/this._dh)}else{d-=$.ig.PieChartBase.prototype.df(Math.abs(g)*this.endAngle()/this._dh)}var h=this.bv.item(e);if(this.cz()>=100){h.__visibility=1}else{h.__visibility=0}h.aw(true);h.a3(c);h.ax(d);h.a1(h.a0(this.cz()));h.isOthersSlice(f);h.ay(this.cy());h.a5(e);h.dataContext(f?this._ck:this.bk().item(this._cm.__inner[e]));h.isExploded(this.explodedSlices().contains(e));h.isSelected(this.selectedSlices().contains(e));c=d;h.aw(false)}this.bv.count(a);if(this._jb!=null){this._jb.q(this)}},gv:function(){var $self=this;var a=$b($.ig.IChartLegend.prototype.$type,this.legend());if(a==null){return}if(this.bp()==null||this.bp().count()==0||this.ring()!=null&&this.ring().ringSeries()!=null&&(this.ring()._d!=null&&!this.ring()._d.series().contains(this.ring().ringSeries()))){a.clearLegendItemsForSeries(this.ring().ringSeries());return}this._cj=new $$4.x($$a.$c.$type,0);var c=this.bv.active().getEnumerator();while(c.moveNext()){var b=c.current();var d=new $$a.g;var e=this.dm(b);var f=b._b0;var g=b.isOthersSlice()?this.othersCategoryText():this.bq()!=null&&this.bq().count()>0?this.bq().item(this._cm.__inner[b.a5()]):null;g=g==null&&this.bp().count()>0?this.bp().item(this._cm.__inner[b.a5()]):g;d.content(function(){var $ret=new $.ig.PieSliceDataContext;$ret.series($self.ring().ringSeries());$ret.slice(b);$ret.item(b.dataContext());$ret.itemBrush(f);$ret.legendLabel(g!=null?g.toString():null);$ret.itemLabel(e!=null?e.toString():null);$ret.percentValue($self.c7(b));$ret.isOthersSlice(b.isOthersSlice());return $ret}());var h=d.content();if(this.formatLegendLabel()!=null){var i=this.formatLegendLabel()(h);if(i!=null){h.legendLabel(i.toString())}}if(this._aq!=null&&!h.isOthersSlice()){var j=this._aq.i(h);h.legendLabel(j)}if(this._ar!=null&&h.isOthersSlice()){var k=this._ar.i(h);h.legendLabel(k)}if(this.legendItemTemplate()!=null){d._ah=this.legendItemTemplate()}this._cj.add(d)}if(a.isItemwise()){var l=a;l.createLegendItemsInsert(this._cj,this.ring().ringSeries())}},gp:function(a,b,c,d){$.ig.PieChartBase.prototype.gp.call(this,a,b,c,d);switch(b){case"EndAngle":this._jg=d;this.go();this.gn();this.gw();this.gu();break;case"RadiusFactor":if(this.ring()!=null&&this.ring()._d!=null){this.ring()._d.bw()}break;case"Legend":var e=$b($.ig.IChartLegend.prototype.$type,c);if(e!=null&&this.ring()!=null&&this.ring().ringSeries()!=null){e.clearLegendItemsForSeries(this.ring().ringSeries())}break}},getContainer:function(){return this._a3.ad()},$type:new $.ig.Type("Arc",$.ig.PieChartBase.prototype.$type)},true);$c("ArcItem:b","Object",{init:function(){$.ig.$op.init.call(this);this._k=0;this._i=360;this._g=new $$4.x($$t.$n.$type,0)},_d:null,_b:null,_n:null,_l:0,_m:0,_k:0,_i:0,_j:0,_c:0,_a:null,_g:null,_e:null,_h:null,o:function(a,b){var c=0;var d=0;var e=new $$4.x($$0.$aw.$type,0);var f=new $$4.x($$0.$aw.$type,0);var g=new $$4.x($.ig.$op.$type,0);this._g.clear();if(this._h==null){return}var h=new $.ig.FastItemsSource;h.itemsSource(this._h);var i=this.f(h,this._n);if(i==null||i.count()==0){h.deregisterColumn(i);h.detach();return}var k=i.getEnumerator();while(k.moveNext()){var j=k.current();if($.ig.util.isNaN(j)||Number.isInfinity(j)||j<=0){continue}c=c+j}for(var l=0;l<i.count();l++){var m=i.item(l);if($.ig.util.isNaN(m)||Number.isInfinity(m)||m<=0){continue}var n=this._c==1?m/c:m;var o=this._c==1?this._j/100:this._j;if(n<=o){d=d+m;f.add(l);g.add1(h.item(l))}else{e.add(l)}}var p=e.count();var q=f.count()>0;var r=$.ig.PieChartBase.prototype.df(a);var s=$.ig.PieChartBase.prototype.df(a);if(q){p++}for(var t=0;t<p;t++){var u=false;var v;if(t==p-1&&q){v=d;u=true}else{v=i.item(e.__inner[t])}var w=1;if(w==1){s+=$.ig.PieChartBase.prototype.df(Math.abs(v)*b/c)}else{s-=$.ig.PieChartBase.prototype.df(Math.abs(v)*b/c)}this._g.add(function(){var $ret=new $$t.n;$ret._e=r;$ret._d=s-r;$ret._g=u?g:h.item(e.__inner[t]);return $ret}());r=s}h.deregisterColumn(i);h.detach()},f:function(a,b){var c=null;return a.registerColumn(b,c,false)},p:function(a){var b=this._e==null?a:this._e._e;var c=this._e==null?360:this._e._d;this.o(b,c)},q:function(a){var $self=this;this._g.clear();for(var b=0;b<a.bv.count();b++){var c=a.bv.item(b);this._g.add(function(){var $ret=new $$t.n;$ret._e=c.a3();$ret._d=c.ax()-c.a3();$ret._f=b;$ret._a=$self;$ret._g=c.dataContext();$ret._c=c.isOthersSlice();$ret._b=c;return $ret}())}},$type:new $.ig.Type("ArcItem",$.ig.$ot)},true);$c("Node:c","Object",{a:null,b:null,init:function(a,b){$.ig.$op.init.call(this);this.a=b;this.b=a},$type:new $.ig.Type("Node",$.ig.$ot)},true);$c("IgQueue$1:d","Object",{$t:null,init:function($t){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}this.e=0;this.b=null;this.a=null;this.c=null;$.ig.$op.init.call(this)},e:0,b:null,a:null,c:null,d:function(){return this.e==0},f:function(){return this.e},h:function(a){if(this.e==0){this.b=this.a=new $$t.c(a,this.b)}else{this.a.a=new $$t.c(a,this.a.a);this.a=this.a.a}this.e++},g:function(a){this.c=this.b;if(this.e==0){throw new $$0.n(1,"tried to serve from an empty Queue")}this.b=this.b.a;this.e--;a=$b(this.$t,this.c.b);return{p0:a}},$type:new $.ig.Type("IgQueue$1",$.ig.$ot)},true);$c("RingSeriesBase:l","Control",{as:null,init:function(){var $self=this;this.a2=false;$$a.$f.init.call(this);this._eh={__x:0,__y:0,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};this.as=function(a,b){$self.c4(a,b.propertyName(),b.oldValue(),b.newValue())};this.propertyUpdated=$.ig.Delegate.prototype.combine(this.propertyUpdated,this.as);this._aw=this.av();this.c1(this._aw);this._aw.k();this.bb=function(a,b){$self.cv(b.action(),b.position(),b.count(),b.propertyName())}},_chart:null,chart:function(a){if(arguments.length===1){this._chart=a;return a}else{return this._chart}},itemsSource:function(a){if(arguments.length===1){this.h($$t.$l.itemsSourceProperty,a);return a}else{return this.c($$t.$l.itemsSourceProperty)}},valueMemberPath:function(a){if(arguments.length===1){this.h($$t.$l.valueMemberPathProperty,a);return a}else{return this.c($$t.$l.valueMemberPathProperty)}},labelMemberPath:function(a){if(arguments.length===1){this.h($$t.$l.labelMemberPathProperty,a);return a}else{return this.c($$t.$l.labelMemberPathProperty)}},legendLabelMemberPath:function(a){if(arguments.length===1){this.h($$t.$l.legendLabelMemberPathProperty,a);return a}else{return this.c($$t.$l.legendLabelMemberPathProperty)}},propertyChanged:null,propertyUpdated:null,c6:function(a,b,c){if(this.propertyChanged!=null){this.propertyChanged(this,new $$0.b7(a))}if(this.propertyUpdated!=null){this.propertyUpdated(this,new $.ig.PropertyUpdatedEventArgs(a,b,c))}},labelsPosition:function(a){if(arguments.length===1){this.h($$t.$l.labelsPositionProperty,$.ig.LabelsPosition.prototype.getBox(a));return a}else{return $g(this.c($$t.$l.labelsPositionProperty))}},leaderLineVisibility:function(a){if(arguments.length===1){this.h($$t.$l.leaderLineVisibilityProperty,$$a.$aj.getBox(a));return a}else{return $g(this.c($$t.$l.leaderLineVisibilityProperty))}},leaderLineStyle:function(a){if(arguments.length===1){this.h($$t.$l.leaderLineStyleProperty,a);return a}else{return this.c($$t.$l.leaderLineStyleProperty)}},leaderLineType:function(a){if(arguments.length===1){this.h($$t.$l.leaderLineTypeProperty,$.ig.LeaderLineType.prototype.getBox(a));return a}else{return $g(this.c($$t.$l.leaderLineTypeProperty))}},leaderLineMargin:function(a){if(arguments.length===1){this.h($$t.$l.leaderLineMarginProperty,a);return a}else{return this.c($$t.$l.leaderLineMarginProperty)}},toolTip:function(a){if(arguments.length===1){this.h($$t.$l.toolTipProperty,a);return a}else{return this.c($$t.$l.toolTipProperty)}},othersCategoryThreshold:function(a){if(arguments.length===1){this.h($$t.$l.othersCategoryThresholdProperty,a);return a}else{return this.c($$t.$l.othersCategoryThresholdProperty)}},othersCategoryType:function(a){if(arguments.length===1){this.h($$t.$l.othersCategoryTypeProperty,$.ig.OthersCategoryType.prototype.getBox(a));return a}else{return $g(this.c($$t.$l.othersCategoryTypeProperty))}},othersCategoryText:function(a){if(arguments.length===1){this.h($$t.$l.othersCategoryTextProperty,a);return a}else{return this.c($$t.$l.othersCategoryTextProperty)}},legend:function(a){if(arguments.length===1){this.h($$t.$l.legendProperty,a);return a}else{return this.c($$t.$l.legendProperty)}},formatLabel:function(a){if(arguments.length===1){this.h($$t.$l.formatLabelProperty,a);return a}else{return this.c($$t.$l.formatLabelProperty)}},formatLegendLabel:function(a){if(arguments.length===1){this.h($$t.$l.formatLegendLabelProperty,a);return a}else{return this.c($$t.$l.formatLegendLabelProperty)}},labelFormat:function(a){if(arguments.length===1){this.h($$t.$l.labelFormatProperty,a);return a}else{return this.c($$t.$l.labelFormatProperty)}},labelFormatSpecifiers:function(a){if(arguments.length===1){this.h($$t.$l.labelFormatSpecifiersProperty,a);return a}else{return this.c($$t.$l.labelFormatSpecifiersProperty)}},othersLabelFormat:function(a){if(arguments.length===1){this.h($$t.$l.othersLabelFormatProperty,a);return a}else{return this.c($$t.$l.othersLabelFormatProperty)}},othersLabelFormatSpecifiers:function(a){if(arguments.length===1){this.h($$t.$l.othersLabelFormatSpecifiersProperty,a);return a}else{return this.c($$t.$l.othersLabelFormatSpecifiersProperty)}},legendLabelFormat:function(a){if(arguments.length===1){this.h($$t.$l.legendLabelFormatProperty,a);return a}else{return this.c($$t.$l.legendLabelFormatProperty)}},legendLabelFormatSpecifiers:function(a){if(arguments.length===1){this.h($$t.$l.legendLabelFormatSpecifiersProperty,a);return a}else{return this.c($$t.$l.legendLabelFormatSpecifiersProperty)}},legendOthersLabelFormat:function(a){if(arguments.length===1){this.h($$t.$l.legendOthersLabelFormatProperty,a);return a}else{return this.c($$t.$l.legendOthersLabelFormatProperty)}},legendOthersLabelFormatSpecifiers:function(a){if(arguments.length===1){this.h($$t.$l.legendOthersLabelFormatSpecifiersProperty,a);return a}else{return this.c($$t.$l.legendOthersLabelFormatSpecifiersProperty)}},labelExtent:function(a){if(arguments.length===1){this.h($$t.$l.labelExtentProperty,a);return a}else{return this.c($$t.$l.labelExtentProperty)}},startAngle:function(a){if(arguments.length===1){this.h($$t.$l.startAngleProperty,a);return a}else{return this.c($$t.$l.startAngleProperty)}},othersCategoryStyle:function(a){if(arguments.length===1){this.h($$t.$l.othersCategoryStyleProperty,a);return a}else{return this.c($$t.$l.othersCategoryStyleProperty)}},selectedStyle:function(a){if(arguments.length===1){this.h($$t.$l.selectedStyleProperty,a);return a}else{return this.c($$t.$l.selectedStyleProperty)}},selectedStyleResolved:function(a){if(arguments.length===1){var b=this.selectedStyleResolved();if(this.selectedStyle()!=null&&a!=this.selectedStyle()){a=this.selectedStyle()}this.c6("SelectedStyleResolved",b,a);return a}else{if(this.selectedStyle()!=null){return this.selectedStyle()}if(this.chart()!=null&&this.chart().selectedStyle()!=null){return this.chart().selectedStyle()}return null}},toolTipStyle:function(a){if(arguments.length===1){this.h($$t.$l.toolTipStyleProperty,a);return a}else{return this.c($$t.$l.toolTipStyleProperty)}},brushes:function(a){if(arguments.length===1){this.h($$t.$l.brushesProperty,a);return a}else{return this.c($$t.$l.brushesProperty)}},outlines:function(a){if(arguments.length===1){this.h($$t.$l.outlinesProperty,a);return a}else{return this.c($$t.$l.outlinesProperty)}},labelOuterColor:function(a){if(arguments.length===1){this.h($$t.$l.labelOuterColorProperty,a);return a}else{return this.c($$t.$l.labelOuterColorProperty)}},labelInnerColor:function(a){if(arguments.length===1){this.h($$t.$l.labelInnerColorProperty,a);return a}else{return this.c($$t.$l.labelInnerColorProperty)}},bd:null,textStyle:function(a){if(arguments.length===1){var b=this.bd;this.bd=a;this.c6("TextStyle",b,a);return a}else{return this.bd}},legendItemTemplate:function(a){if(arguments.length===1){this.h($$t.$l.legendItemTemplateProperty,a);return a}else{return this.c($$t.$l.legendItemTemplateProperty)}},legendItemBadgeTemplate:function(a){if(arguments.length===1){this.h($$t.$l.legendItemBadgeTemplateProperty,a);return a}else{return this.c($$t.$l.legendItemBadgeTemplateProperty)}},labelTemplate:function(a){if(arguments.length===1){this.h($$t.$l.labelTemplateProperty,a);return a}else{return $b($$a.$k.$type,this.c($$t.$l.labelTemplateProperty))}},a2:false,isSurfaceInteractionDisabled:function(a){if(arguments.length===1){this.a2=true;this.h($$t.$l.isSurfaceInteractionDisabledProperty,a);return a}else{return this.c($$t.$l.isSurfaceInteractionDisabledProperty)}},a4:function(){if(!this.a2){return this.chart().isSurfaceInteractionDisabled()}else{return this.isSurfaceInteractionDisabled()}},radiusFactor:function(a){if(arguments.length===1){this.h($$t.$l.radiusFactorProperty,a);return a}else{return this.c($$t.$l.radiusFactorProperty)}},a1:false,bb:null,ay:function(a){if(arguments.length===1){this.h($$t.$l.dc,a);return a}else{return this.c($$t.$l.dc)}},_eh:null,_aw:null,c4:function(a,b,c,d){if(b=="ItemsSource"){this.ay(function(){var $ret=new $.ig.FastItemsSource;$ret.itemsSource(d);return $ret}())}if(b=="FastItemsSource"){if($b($.ig.FastItemsSource.prototype.$type,c)!=null){var e=$b($.ig.FastItemsSource.prototype.$type,c);e.event=$.ig.Delegate.prototype.remove(e.event,this.bb);this.a1=false}if($b($.ig.FastItemsSource.prototype.$type,d)!=null){var f=$b($.ig.FastItemsSource.prototype.$type,d);f.event=$.ig.Delegate.prototype.combine(f.event,this.bb);this.a1=true}this.c3()}switch(b){case"SelectedStyle":this.selectedStyleResolved(d);break;case"ValueMemberPath":this.c3();break}},_rootCanvas:null,rootCanvas:function(a){if(arguments.length===1){this._rootCanvas=a;return a}else{return this._rootCanvas}},container:function(){return this.chart()},isStacked:function(){return false},isVertical:function(){return false},isUsableInLegend:function(){return true},hasMarkers:function(){return false},hasSubItems:function(){return false},cv:function(a,b,c,d){this.c3()},av:function(){return new $$t.t(this)},c1:function(a){},au:function(){},c3:function(){},c2:function(){},provideContainer:function(a){this._aw.n(a)},cu:function(){if(this._aw!=null){this._aw.i()}},c8:function(){},c7:function(){},cy:function(a,b){this.cw(new $$4.ae(1,0,b,a))},c0:function(a,b,c){this.cw(new $$4.ae(2,2,c,b,a))},cx:function(){this.cw(new $$4.ae(0,4))},cz:function(a,b){this.cw(new $$4.ae(1,1,b,a))},cw:function(a){if(this.ay()!=null){this.ay().handleCollectionChanged(a)}},resolveLegendIndex:function(){return-1},forSubItems:function(a){},az:null,a0:function(){if(this.az==null){this.az=new $.ig.SRProvider(this._aw._g)}return this.az},cj:function(){var a=this.a0().b7();if(String.isNullOrWhiteSpace(a)){a="Others"}return this.othersCategoryText()!=null?this.othersCategoryText():a},$type:new $.ig.Type("RingSeriesBase",$$a.$f.$type,[$$0.$b6.$type,$.ig.ILegendSeries.prototype.$type,$.ig.ILegendTemplateProvider.prototype.$type])},true);$c("HierarchicalRingSeries:e","RingSeriesBase",{init:function(){$$t.$l.init.call(this);this._ab=$$t.$e.$type},_rings:null,rings:function(a){if(arguments.length===1){this._rings=a;return a}else{return this._rings}},childrenMemberPath:function(a){if(arguments.length===1){this.h($$t.$e.childrenMemberPathProperty,a);return a}else{return this.c($$t.$e.childrenMemberPathProperty)}},au:function(){if(this.itemsSource()==null){return new $$t.i}this.rings(this.eq(this.itemsSource()));return this.rings()},c4:function(a,b,c,d){$$t.$l.c4.call(this,a,b,c,d);switch(b){case"StartAngle":var e=c;var f=d;var g=f-e;if(this.rings()!=null&&this.rings().count()>0){for(var h=0;h<this.rings().count();h++){var i=this.rings().__inner[h];var k=i.arcItems().getEnumerator();while(k.moveNext()){var j=k.current();j._k=j._k+g}}}break;case"Brushes":this.c2();break;case"ChildrenMemberPath":this.c3();break}if(this.rings()!=null&&this._aw.e()){var l=false;var n=this.rings().getEnumerator();while(n.moveNext()){var m=n.current();m.prepareArcs();if(m.renderArcs()){l=true}}if(l){var p=this.rings().getEnumerator();while(p.moveNext()){var o=p.current();o.ringSeries()._aw.l()}}}},c3:function(){if(this.chart()!=null){this.chart().bx();this.chart().b2()}},c2:function(){if(this.rings()!=null){var b=this.rings().getEnumerator();while(b.moveNext()){var a=b.current();var d=a.arcItems().getEnumerator();while(d.moveNext()){var c=d.current();this.ev(c)}}}},c8:function(){if(this.rings()!=null&&this.rings().count()>0){var a=this.rings().__inner[this.rings().count()-1];this.width(a.controlSize().width());this.height(a.controlSize().height());this._aw.m(a.center().__x,a.center().__y)}},c7:function(){for(var a=0;a<this.rings().count();a++){var c=this.rings().__inner[a].ringControl()._arcs.active().getEnumerator();while(c.moveNext()){var b=c.current();b.gv()}}},es:function(obj_){var memberPath_=this.childrenMemberPath();if(obj_[memberPath_]!==undefined){return obj_[memberPath_]}return null},eq:function(a){var $self=this;var b=new $$t.d($$t.$b.$type);var c=new $$t.d($$t.$b.$type);var d=function(){var $ret=new $$t.b;$ret._m=0;$ret._h=a;$ret._n=$self.valueMemberPath();$ret._c=$self.othersCategoryType();$ret._j=$self.othersCategoryThreshold();return $ret}();d.p(this.startAngle());var e=function(){var $ret=new $$t.b;$ret._m=-1;$ret._h=null;return $ret}();c.h(d);b.h(e);var f=new $$t.i;var g=null;var h=-1;while(c.f()>0){var i;var j=c.g(i);i=j.p0;var k;var l=b.g(k);k=l.p0;if(i==null){continue}var m=0;var o=i._g.getEnumerator();while(o.moveNext()){var n=o.current();var p=this.es(n._g);if(p!=null&&this.er(p)==false||n._c){var q=function(){var $ret=new $$t.b;$ret._m=i._m+1;$ret._h=n._c?function(){var $ret=new $$4.x($$0.$aw.$type,0);$ret.add(0);return $ret}():p;$ret._l=m;$ret._b=i;$ret._n=$self.valueMemberPath();$ret._e=n;return $ret}();q.p(this.startAngle());c.h(q);b.h(i)}m++}var r=this.eo(i,k,h,g);if(r!=g){f.add(r);g=r}h=i._m}return f},eo:function(a,b,c,d){var $self=this;a._k=a._e==null?this.startAngle():a._e._e;a._i=a._e==null?360:a._e._d;this.ev(a);if(a._m!=c){var e=function(){var $ret=new $$t.h;$ret.ringSeries($self);return $ret}();e.arcItems().add(a);a._d=e;return e}a._d=d;d.arcItems().add(a);return d},er:function(a){var c=a.getEnumerator();while(c.moveNext()){var b=c.current();return false}return true},ev:function(a){if(a._b==null){a._a=this.brushes()}else if(a._b._m==0){a._a=new $.ig.BrushCollection;if(a._b._a!=null){a._a.add(a._b._a.item(a._l%a._b._a.count()))}}else{a._a=a._b._a}},$type:new $.ig.Type("HierarchicalRingSeries",$$t.$l.$type)},true);$c("HoleDimensionsChangedEventArgs:g","EventArgs",{init:function(a,b){$$0.$w.init.call(this);this.d=a;this.b=b},d:null,center:function(){return this.d},b:0,radius:function(){return this.b},$type:new $.ig.Type("HoleDimensionsChangedEventArgs",$$0.$w.$type)},true);$c("Ring:h","Object",{init:function(){var $self=this;this._controlSize=new $$a.af;$.ig.$op.init.call(this);this.center({__x:0,__y:0,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName});this.controlSize(new $$a.af(1,0,0));this.ringControl(function(){var $ret=new $$t.j;$ret.ai($self);return $ret}());this.arcItems(new $$4.x($$t.$b.$type,0));this._e=true},_index:0,index:function(a){if(arguments.length===1){this._index=a;return a}else{return this._index}},_innerExtend:0,innerExtend:function(a){if(arguments.length===1){this._innerExtend=a;return a}else{return this._innerExtend}},_controlSize:null,controlSize:function(a){if(arguments.length===1){this._controlSize=a;return a}else{return this._controlSize}},_center:null,center:function(a){if(arguments.length===1){this._center=a;return a}else{return this._center}},_ringControl:null,ringControl:function(a){if(arguments.length===1){this._ringControl=a;return a}else{return this._ringControl}},b:null,ringSeries:function(a){if(arguments.length===1){this.b=a;this.b._aw.h(this.ringControl());if(this.ringControl()!=null){this.ringControl()._ak.s(a)}return a}else{return this.b}},_ringBreadth:0,ringBreadth:function(a){if(arguments.length===1){this._ringBreadth=a;return a}else{return this._ringBreadth}},_arcItems:null,arcItems:function(a){if(arguments.length===1){this._arcItems=a;return a}else{return this._arcItems}},_d:null,_e:false,renderArcs:function(){if(this.ringControl()!=null&&this.ringControl()._ak.d()){var a,b;a=this.center().__x-this.ringSeries()._eh.__x;b=this.center().__y-this.ringSeries()._eh.__y;this.ringControl()._ak.v(a,b);return this.ringControl().an()}return false},prepareArcs:function(){if(this.ringControl()!=null){this.ringControl().width(this.controlSize().width());this.ringControl().height(this.controlSize().height());this.ringSeries()._aw.h(this.ringControl());this.ringControl()._ao=this.arcItems()}},l:function(source_,a,b){this.ringControl().as(source_,a,b)},k:function(source_){this.ringControl().ar(source_)},m:function(source_,a,b){this.ringControl().at(source_,a,b)},n:function(source_,a,b,c){this.ringControl().au(source_,a,b,c)},$type:new $.ig.Type("Ring",$.ig.$ot)},true);$c("RingCollection:i","ObservableCollection$1",{init:function(){$$4.$f.init.call(this,$$t.$h.$type,0)},p:function(){var b=this.getEnumerator();while(b.moveNext()){var a=b.current();if(a._e){var c=0;var d=a.ringControl()._arcs.count();while(c<d){a.ringControl()._arcs.destroy()(a.ringControl()._arcs.item(c));c++}a.ringControl()._arcs.count(0);a.ringControl(null)}}$$4.$f.p.call(this)},u:function(a){var b=this.__inner[a];if(b._e){b.ringControl()._arcs.destroy()(b.ringControl()._arcs.item(a));b.ringControl()._arcs.count(0);b.ringControl(null)}$$4.$f.u.call(this,a)},$type:new $.ig.Type("RingCollection",$$4.$f.$type.specialize($$t.$h.$type))},true);$c("RingControl:j","Control",{init:function(){var $self=this;$$a.$f.init.call(this);this._ab=$$t.$j.$type;this._ak=this.aj();this.ax(this._ak);this._ak.r();this._arcs=function(){var $ret=new $.ig.Pool$1($$t.$a.$type);$ret.create($self._ak.a.runOn($self._ak));$ret.activate($self._ak.l.runOn($self._ak));$ret.disactivate($self._ak.n.runOn($self._ak));$ret.destroy($self._ak.m.runOn($self._ak));return $ret}()},al:function(){return this.ai().ringSeries()},_ak:null,ah:null,ai:function(a){if(arguments.length===1){this.ah=a;if(this.ah==null){this._ak.s(null)}else{this._ak.s(this.ah.ringSeries())}return a}else{return this.ah}},_arcs:null,_ao:null,_rootCanvas:null,rootCanvas:function(a){if(arguments.length===1){this._rootCanvas=a;return a}else{return this._rootCanvas}},aj:function(){return new $$t.s(this)},ax:function(a){},propertyChanged:null,propertyUpdated:null,az:function(a,b,c){if(this.propertyChanged!=null){this.propertyChanged(this,new $$0.b7(a))}if(this.propertyUpdated!=null){this.propertyUpdated(this,new $.ig.PropertyUpdatedEventArgs(a,b,c))}},aw:function(){this.an()},an:function(){if(this._ao==null){return false}if(!this._ak.d()){return false}var a=0;var b=false;var d=this._ao.getEnumerator();while(d.moveNext()){var c=d.current();var e=this._arcs.item(a);e._jb=c;if(e.innerExtent()!=this.ai().innerExtend()){e.innerExtent(this.ai().innerExtend())}if((e.width()!=this.ai().controlSize().width()||e.height()!=this.ai().controlSize().height())&&e._a3.s()){e.width(this.ai().controlSize().width());e.height(this.ai().controlSize().height());this._ak.ab(e);b=true}if(e.startAngle()!=c._k){e.startAngle(c._k)}if(e.endAngle()!=c._i){e.endAngle(c._i)}if(e.itemsSource()!=c._h){e.itemsSource(c._h)}if(e.brushes()!=c._a){e.brushes(c._a)}this._ak.t(e,0,0);a++}this._arcs.count(a);return b},ay:function(a){this._ak.w(a)},av:function(){this._ak.q()},ap:function(){return this._ak.j()},as:function(source_,a,b){for(var c=0;c<this._arcs.count();c++){this._arcs.item(c).notifyInsertItem(source_,a,b)}},ar:function(source_){for(var a=0;a<this._arcs.count();a++){this._arcs.item(a).notifyClearItems(source_)}},at:function(source_,a,b){for(var c=0;c<this._arcs.count();c++){this._arcs.item(c).notifyRemoveItem(source_,a,b)}},au:function(source_,a,b,c){for(var d=0;d<this._arcs.count();d++){this._arcs.item(d).notifySetItem(source_,a,b,c)}},$type:new $.ig.Type("RingControl",$$a.$f.$type,[$$0.$b6.$type])},true);$c("RingSeries:k","RingSeriesBase",{init:function(){var $self=this;$$t.$l.init.call(this);this.ring(function(){var $ret=new $$t.h;$ret.ringSeries($self);$ret._e=false;return $ret}());var a=function(){var $ret=new $$t.b;$ret._k=$self.startAngle();$ret._d=$self.ring();$ret._n=$self.valueMemberPath();$ret._c=$self.othersCategoryType();$ret._j=$self.othersCategoryThreshold();return $ret}();this.ring().arcItems().add(a);this._ab=$$t.$k.$type},_ring:null,ring:function(a){if(arguments.length===1){this._ring=a;return a}else{return this._ring}},c4:function(a,b,c,d){$$t.$l.c4.call(this,a,b,c,d);if(b=="LabelFormat"){for(var e=0;e<this.ring().ringControl()._arcs.count();e++){this.ring().ringControl()._arcs.item(e).labelFormat(d)}}if(b=="LabelFormatSpecifiers"){for(var f=0;f<this.ring().ringControl()._arcs.count();f++){this.ring().ringControl()._arcs.item(f).labelFormatSpecifiers(d)}}if(b=="OthersLabelFormat"){for(var g=0;g<this.ring().ringControl()._arcs.count();g++){this.ring().ringControl()._arcs.item(g).othersLabelFormat(d)}}if(b=="OthersLabelFormatSpecifiers"){for(var h=0;h<this.ring().ringControl()._arcs.count();h++){this.ring().ringControl()._arcs.item(h).othersLabelFormatSpecifiers(d)}}if(b=="LegendLabelFormat"){for(var i=0;i<this.ring().ringControl()._arcs.count();i++){this.ring().ringControl()._arcs.item(i).legendLabelFormat(d)}}if(b=="LegendLabelFormatSpecifiers"){for(var j=0;j<this.ring().ringControl()._arcs.count();j++){this.ring().ringControl()._arcs.item(j).legendLabelFormatSpecifiers(d)}}if(b=="LegendOthersLabelFormat"){for(var k=0;k<this.ring().ringControl()._arcs.count();k++){this.ring().ringControl()._arcs.item(k).legendOthersLabelFormat(d)}}if(b=="LegendOthersLabelFormatSpecifiers"){for(var l=0;l<this.ring().ringControl()._arcs.count();l++){this.ring().ringControl()._arcs.item(l).legendOthersLabelFormatSpecifiers(d)}}if(b=="FormatLabel"){for(var m=0;m<this.ring().ringControl()._arcs.count();m++){this.ring().ringControl()._arcs.item(m).formatLabel(d)}}if(b=="FormatLegendLabel"){for(var n=0;n<this.ring().ringControl()._arcs.count();n++){this.ring().ringControl()._arcs.item(n).formatLegendLabel(d)}}if(b=="LegendLabelMemberPath"){for(var o=0;o<this.ring().ringControl()._arcs.count();o++){this.ring().ringControl()._arcs.item(o).legendLabelMemberPath(this.legendLabelMemberPath())}}if(b=="Brushes"){this.c2()}if(b=="StartAngle"){if(this.ring().arcItems()!=null&&this.ring().arcItems().count()>0){this.ring().arcItems().__inner[0]._k=this.startAngle()}}if(b=="ValueMemberPath"){if(this.ring().arcItems()!=null&&this.ring().arcItems().count()>0){this.ring().arcItems().__inner[0]._n=this.valueMemberPath();this.c3()}}if(this.ring()!=null&&this._aw.e()){this.ring().prepareArcs();if(this.ring().renderArcs()){this.ring().ringSeries()._aw.l()}}},au:function(){var a=new $$t.i;if(this.ring().arcItems().__inner[0]._g.count()>0){a.add(this.ring())}return a},c3:function(){if(this.ring()!=null){this.ring().arcItems().__inner[0]._h=this.itemsSource();this.ring().arcItems().__inner[0].p(this.startAngle());if(this.chart()!=null){this.chart().bx();this.chart().b2()}}},c2:function(){if(this.ring()!=null){this.ring().arcItems().__inner[0]._a=this.brushes()}},c8:function(){if(this.ring()!=null){this.width(this.ring().controlSize().width());this.height(this.ring().controlSize().height());this._aw.m(this.ring().center().__x,this.ring().center().__y)}},c7:function(){if(this.ring()!=null){var b=this.ring().ringControl()._arcs.active().getEnumerator();while(b.moveNext()){var a=b.current();a.gv()}}},cy:function(a,b){$$t.$l.cy.call(this,a,b);if(this.ring()!=null){this.ring().l(this.itemsSource(),a,b)}},cx:function(){$$t.$l.cx.call(this);if(this.ring()!=null){this.ring().k(this.itemsSource())}},cz:function(a,b){$$t.$l.cz.call(this,a,b);if(this.ring()!=null){this.ring().m(this.itemsSource(),a,b)}},c0:function(a,b,c){$$t.$l.c0.call(this,a,b,c);if(this.ring()!=null){this.ring().n(this.itemsSource(),a,b,c)}},$type:new $.ig.Type("RingSeries",$$t.$l.$type)},true);$c("RingSeriesCollection:m","ObservableCollection$1",{init:function(){$$4.$f.init.call(this,$$t.$l.$type,0)},$type:new $.ig.Type("RingSeriesCollection",$$4.$f.$type.specialize($$t.$l.$type))
},true);$c("SliceItem:n","Object",{init:function(){$.ig.$op.init.call(this)},_e:0,_d:0,_a:null,_f:0,_b:null,_g:null,_c:false,$type:new $.ig.Type("SliceItem",$.ig.$ot)},true);$c("SliceCollection:o","ObservableCollection$1",{init:function(){$$4.$f.init.call(this,$$t.$n.$type,0)},_ae:false,_ag:false,r:function(a,b){if(this.contains(b)){return}var c=this.ah(b._b);if(c!=-1){$$4.$f.x.call(this,c,b)}else{$$4.$f.r.call(this,a,b);if(this._ae){if(this._ag){b._b.isSelected(true)}else{b._b.isExploded(true)}}}},x:function(a,b){if(this._ae){if(this._ag){this.__inner[a]._b.isSelected(false)}else{this.__inner[a]._b.isExploded(false)}}$$4.$f.x.call(this,a,b)},u:function(a){var b=this.__inner[a];$$4.$f.u.call(this,a);if(this._ae){if(this._ag){b._b.isSelected(false)}else{b._b.isExploded(false)}}},remove:function(a){var b=this.ah(a._b);if(b!=-1){this.u(b);return true}else{return false}},p:function(){while(this.count()>0){this.u(0)}},ah:function(a){for(var b=0;b<this.count();b++){if(this.__inner[b]._b==a){return b}}return-1},$type:new $.ig.Type("SliceCollection",$$4.$f.$type.specialize($$t.$n.$type))},true);$c("XamDoughnutChart:p","Control",{al:null,aj:null,ap:null,ao:null,ah:null,init:function(){var $self=this;this.al=new $$t.m;this.aj=new $$t.i;this.ap=function(){var $ret=new $$t.o;$ret._ae=true;$ret._ag=true;return $ret}();this.ao=function(){var $ret=new $$t.o;$ret._ae=true;$ret._ag=false;return $ret}();this.a0=NaN;this.az=1;$$a.$f.init.call(this);var a=this.at();this.bv(a);a.s();this._ab=$$t.$p.$type;this.ah=function(b,c){$self.bz(b,c.propertyName(),c.oldValue(),c.newValue())};this.propertyUpdated=$.ig.Delegate.prototype.combine(this.propertyUpdated,this.ah);var b=this.series();b.collectionChanged=$.ig.Delegate.prototype.combine(b.collectionChanged,this.b6.runOn(this))},rings:function(){return this.aj},allowSliceSelection:function(a){if(arguments.length===1){this.h($$t.$p.allowSliceSelectionProperty,a);return a}else{return this.c($$t.$p.allowSliceSelectionProperty)}},isSurfaceInteractionDisabled:function(a){if(arguments.length===1){this.h($$t.$p.isSurfaceInteractionDisabledProperty,a);return a}else{return this.c($$t.$p.isSurfaceInteractionDisabledProperty)}},allowSliceExplosion:function(a){if(arguments.length===1){this.h($$t.$p.allowSliceExplosionProperty,a);return a}else{return this.c($$t.$p.allowSliceExplosionProperty)}},series:function(){return this.al},b6:function(a,b){var c=new $$4.x($$t.$l.$type,0);if(b.oldItems()!=null){var e=b.oldItems().getEnumerator();while(e.moveNext()){var d=e.current();if(b.newItems()==null||!b.newItems().contains(d)){d.cu();this._au.w(d)}}}this.bx();this.b2()},innerExtent:function(a){if(arguments.length===1){this.h($$t.$p.innerExtentProperty,a);return a}else{return this.c($$t.$p.innerExtentProperty)}},selectedSlices:function(a){if(arguments.length===1){this.ap.clear();this.ap._ae=false;this.ap=a;this.ap._ae=true;this.ap._ag=true;for(var b=0;b<this.ap.count();b++){this.ap.__inner[b]._b.isSelected(true)}return a}else{return this.ap}},explodedSlices:function(a){if(arguments.length===1){this.ao.clear();this.ao._ae=false;this.ao=a;this.ao._ae=true;this.ao._ag=false;for(var b=0;b<this.ao.count();b++){this.ao.__inner[b]._b.isExploded(true)}return a}else{return this.ao}},selectedStyle:function(a){if(arguments.length===1){this.h($$t.$p.selectedStyleProperty,a);return a}else{return this.c($$t.$p.selectedStyleProperty)}},centerData:function(a){if(arguments.length===1){this.h($$t.$p.centerDataProperty,a);return a}else{return this.c($$t.$p.centerDataProperty)}},centerDataTemplate:function(a){if(arguments.length===1){this.h($$t.$p.centerDataTemplateProperty,a);return a}else{return this.c($$t.$p.centerDataTemplateProperty)}},a0:0,pixelScalingRatio:function(a){if(arguments.length===1){var b=this.a0;this.a0=a;this.b1("PixelScalingRatio",b,this.a0);return a}else{return this.a0}},az:0,actualPixelScalingRatio:function(a){if(arguments.length===1){var b=this.az;this.az=a;this.b1("ActualPixelScalingRatio",b,this.az);return a}else{return this.az}},_au:null,destroy:function(){this._au.v(null);var b=this.series().getEnumerator();while(b.moveNext()){var a=b.current();a.cu()}},b5:function(a,b){if(b){this.selectedSlices().add(a)}else{this.selectedSlices().remove(a)}},bj:function(a,b){if(b){this.explodedSlices().add(a)}else{this.explodedSlices().remove(a)}},bz:function(a,b,c,d){switch(b){case"SelectedStyle":var f=this.series().getEnumerator();while(f.moveNext()){var e=f.current();e.selectedStyleResolved(d)}break;case"AllowSliceExplosion":for(var g=0;g<this.aj.count();g++){var i=this.aj.__inner[g].ringControl()._arcs.active().getEnumerator();while(i.moveNext()){var h=i.current();h.allowSliceExplosion(this.allowSliceExplosion())}}break;case"AllowSliceSelection":for(var j=0;j<this.aj.count();j++){var l=this.aj.__inner[j].ringControl()._arcs.active().getEnumerator();while(l.moveNext()){var k=l.current();k.allowSliceSelection(this.allowSliceSelection())}}break;case"PixelScalingRatio":var m=$.ig.DeviceUtils.prototype.a(this.pixelScalingRatio());if($.ig.util.isNaN(m)){this.actualPixelScalingRatio(1)}else{this.actualPixelScalingRatio(m)}break;case"ActualPixelScalingRatio":var o=this.aj.getEnumerator();while(o.moveNext()){var n=o.current();var q=n.ringControl()._arcs.active().getEnumerator();while(q.moveNext()){var p=q.current();p.actualPixelScalingRatio(this.actualPixelScalingRatio())}}break}},at:function(){return new $$t.u(this)},bv:function(a){this._au=a},b2:function(){this.by();this.b4();this.b3();this.bw();this._au.z()},b4:function(){var b=this.series().getEnumerator();while(b.moveNext()){var a=b.current();a.c8()}},bw:function(){var a=this._au._ab;if(a.isEmpty()||a.width()==0||a.height()==0){return}var b={__x:a.width()/2,__y:a.height()/2,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};var c=Math.min(a.width()/2,a.height()/2);var d=.9;if(this.series().count()>0){d=this.series().__inner[0].radiusFactor();if($.ig.util.isNaN(d)||Number.isInfinity(d)||d<0){d=0}else if(d>1){d=1}}var e=this.innerExtent()*c/100*d;this._au.x(e*2,e*2);this._au.u(b.__x-e,b.__y-e)},b3:function(){var a=false;var c=this.aj.getEnumerator();while(c.moveNext()){var b=c.current();if(b.renderArcs()){a=true}}if(a){var e=this.aj.getEnumerator();while(e.moveNext()){var d=e.current();d.ringSeries()._aw.l()}}},by:function(){var a=this._au._ab;if(a.isEmpty()||a.width()==0||a.height()==0){return}var b={__x:a.width()/2,__y:a.height()/2,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};var c=Math.min(a.width()/2,a.height()/2);var d=Math.max(a.width()/2,a.height()/2);if(a.width()>a.height()){c=c+d;d=c-d;c=c-d}var e=(100-this.innerExtent())/100*c/this.aj.count();var f=(100-this.innerExtent())/100*d/this.aj.count();var g=this.innerExtent()*c/100;var h=this.innerExtent()*d/100;var i=1;var k=this.aj.getEnumerator();while(k.moveNext()){var j=k.current();var l=g+e*i;var m=h+f*i;j.ringBreadth(e);j.controlSize(new $$a.af(1,l*2,m*2));j.center({__x:b.__x-l,__y:b.__y-m,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName});j.innerExtend(100-e/l*100);j.prepareArcs();i++}},bx:function(){this.explodedSlices().clear();this.selectedSlices().clear();this.aj.clear();this._au.j();this._au.i();var a=0;for(var b=0;b<this.series().count();b++){var c=this.series().__inner[b];c.chart(this);this._au.h(c);var d=c.au();var f=d.getEnumerator();while(f.moveNext()){var e=f.current();e._d=this;e.index(a);this.aj.add(e);a++}}},bt:function(){if(this._au!=null){this.height(this._au._ab.height());this.width(this._au._ab.width())}this.b2()},sliceClick:null,bu:function(a,b){var c=a;var d=c.ring().ringSeries();if(d.a4()){return}if(this.sliceClick!=null){this.sliceClick(a,b)}},propertyChanged:null,propertyUpdated:null,b1:function(a,b,c){if(this.propertyChanged!=null){this.propertyChanged(this,new $$0.b7(a))}if(this.propertyUpdated!=null){this.propertyUpdated(this,new $.ig.PropertyUpdatedEventArgs(a,b,c))}},onDetachedFromUI:function(){this._au.r();for(var a=0;a<this.aj.count();a++){var c=this.aj.__inner[a].ringControl()._arcs.active().getEnumerator();while(c.moveNext()){var b=c.current();b.onDetachedFromUI()}var e=this.aj.__inner[a].ringControl()._arcs.inactive().getEnumerator();while(e.moveNext()){var d=e.current();d.onDetachedFromUI()}}},onAttachedToUI:function(){this._au.q();for(var a=0;a<this.aj.count();a++){var c=this.aj.__inner[a].ringControl()._arcs.active().getEnumerator();while(c.moveNext()){var b=c.current();b.onAttachedToUI()}var e=this.aj.__inner[a].ringControl()._arcs.inactive().getEnumerator();while(e.moveNext()){var d=e.current();d.onAttachedToUI()}}},provideContainer:function(a){this._au.v(a)},notifyResized:function(){this._au.y()},getContainerID:function(){return this._au.g()},getCenterCoordinates:function(){return this._au._aa},getHoleRadius:function(){return this._au._d},flush:function(){var a;var b;for(var c=0;c<this.series().count();c++){b=this.series().__inner[c].au();for(var d=0;d<b.count();d++){a=b.__inner[d].ringControl()._ak.h();for(var e=0;e<a.count();e++){a.__inner[e].flush()}}}},holeDimensionsChanged:null,bs:function(){if(this.holeDimensionsChanged!=null){this.holeDimensionsChanged(this,new $$t.g(this.getCenterCoordinates(),this.getHoleRadius()))}},exportVisualData:function(){var a=new $$t.ae;a.series(new $$t.ac);a.viewport($.ig.RectData.prototype.b(this._au._ab));this._au.o(a);return a},exportSerializedVisualData:function(){var a=this.exportVisualData();a.scaleByViewport();return a.serialize()},ay:function(a){var d__=new $$t.q((-2));d__.__4__this=this;d__.__3__source=a;return d__},notifyInsertItem:function(source_,a,b){var d=this.ay(source_).getEnumerator();while(d.moveNext()){var c=d.current();c.cy(a,b)}},notifySetItem:function(source_,a,b,c){var e=this.ay(source_).getEnumerator();while(e.moveNext()){var d=e.current();d.c0(a,b,c)}},notifyClearItems:function(source_){var b=this.ay(source_).getEnumerator();while(b.moveNext()){var a=b.current();a.cx()}},notifyRemoveItem:function(source_,a,b){var d=this.ay(source_).getEnumerator();while(d.moveNext()){var c=d.current();c.cz(a,b)}},$type:new $.ig.Type("XamDoughnutChart",$$a.$f.$type,[$$0.$b6.$type,$.ig.ILegendOwner.prototype.$type])},true);$c("ArcView:r","PieChartBaseView",{_b6:null,init:function(a){$.ig.PieChartBaseView.prototype.init.call(this,a);this._b6=a},b8:function(a,b){this._e.series(this._b6.ring().ringSeries())},b7:function(){return this._f},b9:function(){this.bc();this._bt=new $$a.at;var a=this._c.t();this._bt.__fill=a.rootWrapper().getStyleProperty("color")},$type:new $.ig.Type("ArcView",$.ig.PieChartBaseView.prototype.$type)},true);$c("RingControlView:s","Object",{_b:null,init:function(a){this.f=new $$4.x($$t.$a.$type,0);this.g=new $$4.x($$t.$a.$type,0);this.e=new $$4.h($$t.$a.$type,$$1.$g.$type,0);this.c=null;$.ig.$op.init.call(this);this._b=a},f:null,g:null,a:function(){var a=new $$t.a;a._o=0;a._n=0;a.ring(this._b.ai());this.f.add(a);this.z(a);if(a.textStyle()!=this._b.al().textStyle()){a.textStyle(this._b.al().textStyle())}a.labelExtent(this._b.al().labelExtent());a.formatLabel(this._b.al().formatLabel());a.labelMemberPath(this._b.al().labelMemberPath());a.labelsPosition(this._b.al().labelsPosition());a.labelTemplate(this._b.al().labelTemplate());a.valueMemberPath(this._b.al().valueMemberPath());if(this._b.al().toolTip()!=null){a.toolTip(this._b.al().toolTip())}a.leaderLineVisibility(this._b.al().leaderLineVisibility());a.leaderLineStyle(this._b.al().leaderLineStyle());a.leaderLineType(this._b.al().leaderLineType());a.leaderLineMargin(this._b.al().leaderLineMargin());a.othersCategoryThreshold(this._b.al().othersCategoryThreshold());a.othersCategoryType(this._b.al().othersCategoryType());a.othersCategoryText(this._b.al().cj());a.othersCategoryStyle(this._b.al().othersCategoryStyle());a.legend(this._b.al().legend());a.legendItemTemplate(this._b.al().legendItemTemplate());a.legendItemBadgeTemplate(this._b.al().legendItemBadgeTemplate());a.outlines(this._b.al().outlines());a.labelInnerColor(this._b.al().labelInnerColor());a.labelOuterColor(this._b.al().labelOuterColor());a.startAngle(this._b.al().startAngle());a.brushes(this._b.al().brushes());a.selectedStyle(this._b.al().selectedStyleResolved());a.isSurfaceInteractionDisabled(true);a.radiusFactor(this._b.al().radiusFactor());a.allowSliceExplosion(this._b.al().chart().allowSliceExplosion());a.allowSliceSelection(this._b.al().chart().allowSliceSelection());a.formatLegendLabel(this._b.al().formatLegendLabel());a.legendLabelMemberPath(this._b.al().legendLabelMemberPath());a.actualPixelScalingRatio(this._b.al().chart().actualPixelScalingRatio());return a},l:function(a){var b=this.e.item(a).rootWrapper();if(b!=null){b.show()}this.g.add(a)},n:function(a){var b=this.e.item(a).rootWrapper();if(b!=null){b.hide()}this.g.remove(a)},m:function(a){this.o(a);this.f.remove(a)},h:function(){return this.f},r:function(){},aa:function(){this._b.aw()},t:function(a,b,c){b=b+this._b._n;c=c+this._b._o;if(this.c!=null){b=b+this.c._n;c=c+this.c._o}if(a._n!=b||a._o!=c){a._n=b;a._o=c;this.u(a,this.e.item(a).rootWrapper())}},_i:null,w:function(a){if(a==null){this._b._arcs.count(0);var c=this.f.getEnumerator();while(c.moveNext()){var b=c.current();b.destroy()}this.f.clear();this.e.clear();this.g.clear();return}this._i=a;this._i.rootWrapper().setStyleProperty("position","relative");var e=this.f.getEnumerator();while(e.moveNext()){var d=e.current();var f=this.e.item(d);this._i.append(f.rootWrapper());d._jc.b9()}this.aa()},e:null,z:function(a){var b=this._i.createElement("div");b.setStyleProperty("position","absolute");this.e.add(a,this._i.getSubRenderer(b));this.k(a,b);this.u(a,b);if(this._i!=null){this._i.append(b)}a.provideContainer(this.e.item(a));b.setStyleProperty("position","absolute");b.removeClass("ui-corner-all ui-widget-content")},k:function(a,b){b.setStyleProperty("width",a.width().toString()+"px");b.setStyleProperty("height",a.height().toString()+"px")},u:function(a,b){b.setStyleProperty("top",a._o.toString()+"px");b.setStyleProperty("left",a._n.toString()+"px")},o:function(a){var b=this.e.item(a);b.rootWrapper().remove();this.e.remove(a);a.provideContainer(null)},ab:function(a){this.k(a,a.getContainer().rootWrapper());a.onContainerResized(a.width(),a.height())},d:function(){return this._i!=null},q:function(){},c:null,s:function(a){this.c=a;if(a!=null){a.propertyUpdated=$.ig.Delegate.prototype.combine(a.propertyUpdated,this.y.runOn(this))}},y:function(a,b){switch(b.propertyName()){case"LabelExtent":for(var c=0;c<this.f.count();c++){this.f.__inner[c].labelExtent(b.newValue())}break;case"LabelMemberPath":for(var d=0;d<this.f.count();d++){this.f.__inner[d].labelMemberPath(b.newValue())}break;case"LabelsPosition":for(var e=0;e<this.f.count();e++){this.f.__inner[e].labelsPosition($g(b.newValue()))}break;case"LabelTemplate":for(var f=0;f<this.f.count();f++){this.f.__inner[f].labelTemplate(b.newValue())}break;case"ValueMemberPath":for(var g=0;g<this.f.count();g++){this.f.__inner[g].valueMemberPath(b.newValue())}break;case"ToolTip":for(var h=0;h<this.f.count();h++){this.f.__inner[h].toolTip(b.newValue())}break;case"LeaderLineVisibility":for(var i=0;i<this.f.count();i++){this.f.__inner[i].leaderLineVisibility($g(b.newValue()))}break;case"LeaderLineStyle":for(var j=0;j<this.f.count();j++){this.f.__inner[j].leaderLineStyle(b.newValue())}break;case"LeaderLineType":for(var k=0;k<this.f.count();k++){this.f.__inner[k].leaderLineType($g(b.newValue()))}break;case"LeaderLineMargin":for(var l=0;l<this.f.count();l++){this.f.__inner[l].leaderLineMargin(b.newValue())}break;case"OthersCategoryThreshold":for(var m=0;m<this.f.count();m++){this.f.__inner[m].othersCategoryThreshold(b.newValue())}break;case"OthersCategoryType":for(var n=0;n<this.f.count();n++){this.f.__inner[n].othersCategoryType($g(b.newValue()))}break;case"OthersCategoryText":for(var o=0;o<this.f.count();o++){this.f.__inner[o].othersCategoryText(b.newValue())}break;case"OthersCategoryStyle":for(var p=0;p<this.f.count();p++){this.f.__inner[p].othersCategoryStyle(b.newValue())}break;case"Legend":for(var q=0;q<this.f.count();q++){this.f.__inner[q].legend(b.newValue())}break;case"LegendItemTemplate":for(var r=0;r<this.f.count();r++){this.f.__inner[r].legendItemTemplate(b.newValue())}break;case"LegendItemBadgeTemplate":for(var s=0;s<this.f.count();s++){this.f.__inner[s].legendItemBadgeTemplate(b.newValue())}break;case"Outlines":for(var t=0;t<this.f.count();t++){this.f.__inner[t].outlines(b.newValue())}break;case"Brushes":for(var u=0;u<this.f.count();u++){this.f.__inner[u].brushes(b.newValue())}break;case"SelectedStyle":for(var v=0;v<this.f.count();v++){this.f.__inner[v].selectedStyle(b.newValue())}break;case"SelectedStyleResolved":for(var w=0;w<this.f.count();w++){this.f.__inner[w].selectedStyle(b.newValue())}break;case"RadiusFactor":for(var x=0;x<this.f.count();x++){this.f.__inner[x].radiusFactor(b.newValue())}break}},p:function(){var b=this.f.getEnumerator();while(b.moveNext()){var a=b.current();a.flush()}},j:function(){return this._i},v:function(a,b){this._b._n=a;this._b._o=b;this.x()},x:function(){for(var a=0;a<this.f.count();a++){var b=this.f.__inner[a];this.t(b,0,0)}},$type:new $.ig.Type("RingControlView",$.ig.$ot)},true);$c("RingSeriesBaseView:t","Object",{_c:null,init:function(a){$.ig.$op.init.call(this);this._f=new $$4.x($$t.$j.$type,0);this._c=a},k:function(){this._c.legendItemTemplate(function(){var $ret=new $$a.k;$ret.render($.ig.PieLegendTemplates.prototype.c);$ret.measure($.ig.PieLegendTemplates.prototype.a);return $ret}());this._c.legendItemBadgeTemplate(function(){var $ret=new $$a.k;$ret.render($.ig.PieLegendTemplates.prototype.b);$ret.measure($.ig.PieLegendTemplates.prototype.d);return $ret}())},_f:null,h:function(a){if(!this._f.contains(a)){this._f.add(a)}if(this._g!=null&&a.ap()!=this._g){a.ay(this._g)}},_g:null,j:function(a,b,c,d,e){var f=$.ig.BrushUtil.prototype.e("chart",a,b,c,null);b=f.p2;c=f.p3;var g=new Array(b.count()*2);for(var h=0;h<g.length;h+=2){g[h]="#fff";g[h+1]=b.item($a(h,2)).__fill}var i=$.ig.BrushUtil.prototype.e("doughnut",a,b,c,g);b=i.p2;c=i.p3;d=new $$a.at;d.__fill=this._g.rootWrapper().getStyleProperty("color");e=$.ig.FontUtil.prototype.getFont(a);return{p1:b,p2:c,p3:d,p4:e}},a:null,b:null,o:null,d:null,n:function(a){if(a==null){var c=this._f.getEnumerator();while(c.moveNext()){var b=c.current();b.ay(null)}return}this._g=a;var d;var e;var f;var g;var h=this.j(this._g,d,e,f,g);d=h.p1;e=h.p2;f=h.p3;g=h.p4;this.a=d;this.b=e;this.o=f;this.d=g;if(this._c.brushes()==null){this._c.brushes(this.a)}if(this._c.outlines()==null){this._c.outlines(this.b)}var j=this._f.getEnumerator();while(j.moveNext()){var i=j.current();i.ay(this._g)}},e:function(){return true},i:function(){this.n(null)},l:function(){for(var a=0;a<this._f.count();a++){var b=this._f.__inner[a];for(var c=0;c<b._arcs.active().count();c++){var d=b._arcs.active().__inner[c];d.flush()}}},m:function(a,b){this._c._n=a;this._c._o=b;this._c._eh={__x:a,__y:b,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}},$type:new $.ig.Type("RingSeriesBaseView",$.ig.$ot)},true);$c("XamDoughnutChartView:u","Object",{_a:null,_aa:null,_d:0,init:function(a){$.ig.$op.init.call(this);this._ab=$$a.$ae.empty();this._aa={__x:0,__y:0,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};this._d=0;this._c=new $$4.x($$t.$l.$type,0);this._a=a},s:function(){this.p()},z:function(){},_c:null,h:function(a){if(!this._c.contains(a)){a.provideContainer(this._e);this._c.add(a)}},w:function(a){if(this._c.contains(a)){a.provideContainer(null);this._c.remove(a)}},i:function(){},_ab:null,y:function(){if(this._e==null){return}this.p();var a=this._e.rootWrapper().width();var b=this._e.rootWrapper().height();this._ab=new $$a.ae(0,0,0,a,b);if(this._b!=null){this._b._bk=this._ab}this._a.bt()},_f:null,_e:null,_b:null,v:function(a){if(a==null){if(this._b!=null){this._b.au()}return}var b=a;this._e=b;var c=this._e.rootWrapper().width();var d=this._e.rootWrapper().height();this._ab=new $$a.ae(0,0,0,c,d);this._b=new $.ig.DOMEventProxy(this._e.rootWrapper(),this._e,false);this._b._bk=this._ab;var e=this._b;e.onMouseOver=$.ig.Delegate.prototype.combine(e.onMouseOver,this.m.runOn(this));var f=this._b;f.onMouseLeave=$.ig.Delegate.prototype.combine(f.onMouseLeave,this.l.runOn(this));var g=this._b;g.onMouseDown=$.ig.Delegate.prototype.combine(g.onMouseDown,this.k.runOn(this));var h=this._b;h.onMouseUp=$.ig.Delegate.prototype.combine(h.onMouseUp,this.n.runOn(this));this.y()},t:function(a,b,c){for(var d=this._c.count()-1;d>=0;d--){var e=this._c.__inner[d];if(e.a4()){continue}var f=e._aw._f;for(var g=0;g<f.count();g++){var h=f.__inner[g];var i=h._arcs.active();for(var j=0;j<i.count();j++){var k=i.__inner[j];var l={__x:a.__x-k._n,__y:a.__y-k._o,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};b(k._a3,l);if(c=="mouseUp"){var m=k._jc.b7();if(m!=null){return}}}}}},n:function(a){this.t(a,function(b,c){b.al(c)},"mouseUp")},k:function(a){this.t(a,function(b,c){b.ai(c)},"mouseDown")},l:function(a){this.t(a,function(b,c){b.aj(c)},"mouseLeave")},m:function(a,b,c){this.t(a,function(d,e){d.ak(e,b,c)},"mouseOver")},g:function(){return this._e.rootWrapper().getAttribute("id")},u:function(a,b){if(!this._ab.isEmpty()&&this._ab.width()!=0&&this._ab.height()!=0){var c=this._aa.__x;var d=this._aa.__y;this._aa.__x=this._ab.width()/2;this._aa.__y=this._ab.height()/2;if(this._aa.__x!=c||this._aa.__y!=d){this._a.bs()}}},x:function(a,b){var c=this._d;this._d=a/2;if(c!=this._d){this._a.bs()}},j:function(){},o:function(a){a.width(this._a.width());a.height(this._a.height());a.holeRadius(this._a.getHoleRadius());for(var b=0;b<this._a.series().count();b++){a.series().add(new $$t.ad);a.series().__inner[b].rings(new $$t.aa);a.series().__inner[b].name(this._a.series().__inner[b].name());a.series().__inner[b].labelExtent(this._a.series().__inner[b].labelExtent());a.series().__inner[b].leaderLineMargin(this._a.series().__inner[b].leaderLineMargin());a.series().__inner[b].leaderLineType($.ig.LeaderLineType.prototype.$getName(this._a.series().__inner[b].leaderLineType()));a.series().__inner[b].labelsPosition($.ig.LabelsPosition.prototype.$getName(this._a.series().__inner[b].labelsPosition()));a.series().__inner[b].leaderLineVisibility(this._a.series().__inner[b].leaderLineVisibility()==0);for(var c=0;c<this._a.series().__inner[b].au().count();c++){a.series().__inner[b].rings().add(new $$t.ab);a.series().__inner[b].rings().__inner[c].arcs(new $$t.w);for(var d=0;d<this._a.series().__inner[b].au().__inner[c].arcItems().count();d++){a.series().__inner[b].rings().__inner[c].arcs().add(new $$t.v);a.series().__inner[b].rings().__inner[c].arcs().__inner[d]._a=new $$t.y;for(var e=0;e<this._a.series().__inner[b].au().__inner[c].arcItems().__inner[d]._g.count();e++){if(null==this._a.series().__inner[b].au().__inner[c].arcItems().__inner[d]._g.__inner[e]._b){continue}a.series().__inner[b].rings().__inner[c].arcs().__inner[d]._a.add(new $$t.z);var f=new $$t.z;var g=this._a.series().__inner[b].au().__inner[c].arcItems().__inner[d]._g.__inner[e]._b;f.visibility(g.__visibility==0);f.endAngle(g.ax());f.startAngle(g.a3());f.radius(g.a2());f.origin($.ig.PointData.prototype.b(g.b7()));f.explodedOrigin($.ig.PointData.prototype.b(g.b5()));f.index(g.a5());f.isExploded(g.isExploded());f.isSelected(g.isSelected());f.outline($.ig.AppearanceHelper.prototype.a(g._b1));f.backgroundPath(new $.ig.PathVisualData(1,"slicePath",g._al.f()));a.series().__inner[b].rings().__inner[c].arcs().__inner[d]._a.__inner[e]=f;var h=g._aj;if(null!=h){a.series().__inner[b].rings().__inner[c].arcs().__inner[d]._a.__inner[e].labelVisualData(function(){var $ret=new $$t.x;$ret.labelSize($.ig.SizeData.prototype.b($.ig.RectUtil.prototype.z(h._ao)));$ret.labelValue(h._aj.ak());return $ret}());if(!$.ig.util.isNaN(h._n)&&!$.ig.util.isNaN(h._o)){a.series().__inner[b].rings().__inner[c].arcs().__inner[d]._a.__inner[e].labelVisualData().labelPosition(new $.ig.PointData(h._n,h._o))}}}}}}},p:function(){var a=this._a.pixelScalingRatio();var b=this._a.actualPixelScalingRatio();if(!$.ig.util.isNaN(a)&&a!=0){return}if(window.devicePixelRatio!=window.undefined&&window.devicePixelRatio!=b){this._a.actualPixelScalingRatio(window.devicePixelRatio)}},r:function(){if(this._b!=null){this._b.bg(this._e.rootWrapper(),"")}},q:function(){this.p();if(this._b!=null){this._b.as(this._e.rootWrapper(),"")}},$type:new $.ig.Type("XamDoughnutChartView",$.ig.$ot)},true);$c("ArcVisualData:v","Object",{init:function(){$.ig.$op.init.call(this)},_a:null,_b:null,d:function(a){var c=this._a.getEnumerator();while(c.moveNext()){var b=c.current();b.scaleByViewport(a)}},c:function(){var a=new $$6.aj(0);var b=true;a.u("{");if(this._b!=null){if(b){b=false}else{a.l(", ")}a.l("leaderLine: ");a.u(this._b.serialize())}if(this._a!=null){if(b){b=false}else{a.l(", ")}a.u("slices: [");for(var c=0;c<this._a.count();c++){if(c!=0){a.l(", ")}a.l(this._a.__inner[c].serialize())}}a.u("]}");return a.toString()},$type:new $.ig.Type("ArcVisualData",$.ig.$ot)},true);$c("ArcVisualDataList:w","List$1",{init:function(){$$4.$x.init.call(this,$$t.$v.$type,0)},$type:new $.ig.Type("ArcVisualDataList",$$4.$x.$type.specialize($$t.$v.$type))},true);$c("DoughnutChartLabelVisualData:x","Object",{init:function(){$.ig.$op.init.call(this)},_labelValue:null,labelValue:function(a){if(arguments.length===1){this._labelValue=a;return a}else{return this._labelValue}},_labelSize:null,labelSize:function(a){if(arguments.length===1){this._labelSize=a;return a}else{return this._labelSize}},_labelPosition:null,labelPosition:function(a){if(arguments.length===1){this._labelPosition=a;return a}else{return this._labelPosition}},scaleByViewport:function(a){this.labelPosition(new $.ig.PointData((this.labelPosition().x()-a.left())/a.width(),(this.labelPosition().y()-a.top())/a.height()));this.labelSize(new $.ig.SizeData(this.labelSize().width()/a.width(),this.labelSize().height()/a.height()))},serialize:function(){var a="{ labelValue: '";a+=this.labelValue()==null?String.empty():this.labelValue();a+="', labelSize: { width: "+this.labelSize().width()+", height: "+this.labelSize().height()+"}, labelPosition: { x: "+this.labelPosition().x()+", y: "+this.labelPosition().y()+"}}";return a},$type:new $.ig.Type("DoughnutChartLabelVisualData",$.ig.$ot)},true);$c("SliceVisualData:z","Object",{init:function(){$.ig.$op.init.call(this)},_pieSlice:null,pieSlice:function(a){if(arguments.length===1){this._pieSlice=a;return a}else{return this._pieSlice}},_outline:null,outline:function(a){if(arguments.length===1){this._outline=a;return a}else{return this._outline}},_labelVisualData:null,labelVisualData:function(a){if(arguments.length===1){this._labelVisualData=a;return a}else{return this._labelVisualData}},_backgroundPath:null,backgroundPath:function(a){if(arguments.length===1){this._backgroundPath=a;return a}else{return this._backgroundPath}},_origin:null,origin:function(a){if(arguments.length===1){this._origin=a;return a}else{return this._origin}},_explodedOrigin:null,explodedOrigin:function(a){if(arguments.length===1){this._explodedOrigin=a;return a}else{return this._explodedOrigin}},_isExploded:false,isExploded:function(a){if(arguments.length===1){this._isExploded=a;return a}else{return this._isExploded}},_isSelected:false,isSelected:function(a){if(arguments.length===1){this._isSelected=a;return a}else{return this._isSelected}},_index:0,index:function(a){if(arguments.length===1){this._index=a;return a}else{return this._index}},_radius:0,radius:function(a){if(arguments.length===1){this._radius=a;return a}else{return this._radius}},_startAngle:0,startAngle:function(a){if(arguments.length===1){this._startAngle=a;return a}else{return this._startAngle}},_endAngle:0,endAngle:function(a){if(arguments.length===1){this._endAngle=a;return a}else{return this._endAngle}},_visibility:false,visibility:function(a){if(arguments.length===1){this._visibility=a;return a}else{return this._visibility}},scaleByViewport:function(a){this.origin(new $.ig.PointData((this.origin().x()-a.left())/a.width(),(this.origin().y()-a.top())/a.height()));this.explodedOrigin(new $.ig.PointData((this.explodedOrigin().x()-a.left())/a.width(),(this.explodedOrigin().y()-a.top())/a.height()))},serialize:function(){var a=new $$6.aj(0);var b=true;a.u("{");if(this.pieSlice()!=null){if(b){b=false}else{a.l(", ")}a.l("pieSlice: ");a.u(this.pieSlice().serialize())}if(this.labelVisualData()!=null){if(b){b=false}else{a.l(", ")}a.l("labelVisualData: ");a.u(this.labelVisualData().serialize())}if(this.backgroundPath()!=null){if(b){b=false}else{a.l(", ")}a.l("backgroundPath: ");a.u(this.backgroundPath().serialize())}if(b){b=false}else{a.l(", ")}a.l("isExploded: ");a.u(this.isExploded().toString().toLowerCase());if(b){b=false}else{a.l(", ")}a.l("isSelected: ");a.u(this.isSelected().toString().toLowerCase());if(!$.ig.util.isNaN(this.explodedOrigin().x())&&!$.ig.util.isNaN(this.explodedOrigin().y())){if(b){b=false}else{a.l(", ")}a.l("explodedOrigin: ");a.u("{ x: "+this.explodedOrigin().x().toString()+", y: "+this.explodedOrigin().y().toString()+"}")}if(!$.ig.util.isNaN(this.origin().x())&&!$.ig.util.isNaN(this.origin().y())){if(b){b=false}else{a.l(", ")}a.l("origin: ");a.u("{ x: "+this.origin().x().toString()+", y: "+this.origin().y().toString()+"}")}if(!$.ig.util.isNaN(this.index())){if(b){b=false}else{a.l(", ")}a.l("index: ");a.u(this.index().toString())}if(!$.ig.util.isNaN(this.radius())){if(b){b=false}else{a.l(", ")}a.l("radius: ");a.u(this.radius().toString())}a.l(", visibility: ");a.u(this.visibility()?"true":"false");if(!$.ig.util.isNaN(this.startAngle())){if(b){b=false}else{a.l(", ")}a.l("startAngle: ");a.u(this.startAngle().toString())}if(!$.ig.util.isNaN(this.endAngle())){if(b){b=false}else{a.l(", ")}a.l("endAngle: ");a.u(this.endAngle().toString())}a.u("}");return a.toString()},$type:new $.ig.Type("SliceVisualData",$.ig.$ot)},true);$c("SliceVisualDataList:y","List$1",{init:function(){$$4.$x.init.call(this,$$t.$z.$type,0)},$type:new $.ig.Type("SliceVisualDataList",$$4.$x.$type.specialize($$t.$z.$type))},true);$c("RingVisualData:ab","Object",{init:function(){$.ig.$op.init.call(this)},_arcs:null,arcs:function(a){if(arguments.length===1){this._arcs=a;return a}else{return this._arcs}},serialize:function(){var a=new $$6.aj(0);var b=true;a.u("{");if(this.arcs()!=null){if(b){b=false}else{a.l(", ")}a.u("arcs: [");for(var c=0;c<this.arcs().count();c++){if(c!=0){a.l(", ")}a.l(this.arcs().__inner[c].c())}a.u("]")}a.u("}");return a.toString()},$type:new $.ig.Type("RingVisualData",$.ig.$ot)},true);$c("RingVisualDataList:aa","List$1",{init:function(){$$4.$x.init.call(this,$$t.$ab.$type,0)},$type:new $.ig.Type("RingVisualDataList",$$4.$x.$type.specialize($$t.$ab.$type))},true);$c("RingSeriesVisualData:ad","Object",{init:function(){$.ig.$op.init.call(this)},_name:null,name:function(a){if(arguments.length===1){this._name=a;return a}else{return this._name}},_labelExtent:0,labelExtent:function(a){if(arguments.length===1){this._labelExtent=a;return a}else{return this._labelExtent}},_labelsPosition:null,labelsPosition:function(a){if(arguments.length===1){this._labelsPosition=a;return a}else{return this._labelsPosition}},_leaderLineType:null,leaderLineType:function(a){if(arguments.length===1){this._leaderLineType=a;return a}else{return this._leaderLineType}},_leaderLineVisibility:false,leaderLineVisibility:function(a){if(arguments.length===1){this._leaderLineVisibility=a;return a}else{return this._leaderLineVisibility}},_leaderLineMargin:0,leaderLineMargin:function(a){if(arguments.length===1){this._leaderLineMargin=a;return a}else{return this._leaderLineMargin}},_rings:null,rings:function(a){if(arguments.length===1){this._rings=a;return a}else{return this._rings}},serialize:function(){var a=new $$6.aj(0);var b=true;
a.u("{");if(this.name()!=null){if(b){b=false}else{a.l(", ")}a.l("name: ");a.u("'"+this.name()+"'")}if(!$.ig.util.isNaN(this.labelExtent())){if(b){b=false}else{a.l(", ")}a.l("labelExtent: ");a.u(this.labelExtent().toString())}if(this.labelsPosition()!=null){if(b){b=false}else{a.l(", ")}a.l("labelsPosition: ");a.u("'"+this.labelsPosition()+"'")}if(this.leaderLineType()!=null){if(b){b=false}else{a.l(", ")}a.l("leaderLineType: ");a.u("'"+this.leaderLineType()+"'")}a.l(", leaderLineVisibility: ");a.u(this.leaderLineVisibility()?"true":"false");if(!$.ig.util.isNaN(this.leaderLineMargin())){if(b){b=false}else{a.l(", ")}a.l("leaderLineMargin: ");a.u(this.leaderLineMargin().toString())}a.u(", rings: [");for(var c=0;c<this.rings().count();c++){if(c!=0){a.l(", ")}a.l(this.rings().__inner[c].serialize())}a.u("]}");return a.toString()},$type:new $.ig.Type("RingSeriesVisualData",$.ig.$ot)},true);$c("RingSeriesVisualDataList:ac","List$1",{init:function(){$$4.$x.init.call(this,$$t.$ad.$type,0)},$type:new $.ig.Type("RingSeriesVisualDataList",$$4.$x.$type.specialize($$t.$ad.$type))},true);$c("DoughnutChartVisualData:ae","Object",{_series:null,series:function(a){if(arguments.length===1){this._series=a;return a}else{return this._series}},_height:0,height:function(a){if(arguments.length===1){this._height=a;return a}else{return this._height}},_width:0,width:function(a){if(arguments.length===1){this._width=a;return a}else{return this._width}},_holeRadius:0,holeRadius:function(a){if(arguments.length===1){this._holeRadius=a;return a}else{return this._holeRadius}},_dipScalingRatio:0,dipScalingRatio:function(a){if(arguments.length===1){this._dipScalingRatio=a;return a}else{return this._dipScalingRatio}},init:function(){$.ig.$op.init.call(this);this.dipScalingRatio(1)},scaleByViewport:function(){if(this.series()!=null){var b=this.series().getEnumerator();while(b.moveNext()){var a=b.current();var d=a.rings().getEnumerator();while(d.moveNext()){var c=d.current();var f=c.arcs().getEnumerator();while(f.moveNext()){var e=f.current();var h=e._a.getEnumerator();while(h.moveNext()){var g=h.current();g.scaleByViewport(this.viewport())}}}}}},serialize:function(){var a=new $$6.aj(0);var b=true;a.u("{");if(!$.ig.util.isNaN(this.width())){if(b){b=false}else{a.l(", ")}a.l("width: ");a.u(this.width().toString())}if(!$.ig.util.isNaN(this.height())){if(b){b=false}else{a.l(", ")}a.l("height: ");a.u(this.height().toString())}if(!$.ig.util.isNaN(this.holeRadius())){if(b){b=false}else{a.l(", ")}a.l("holeRadius: ");a.u(this.holeRadius().toString())}if(this.viewport()!=null){if(b){b=false}else{a.l(", ")}a.u("viewport: {");a.l("left: "+this.viewport().left()+", top: "+this.viewport().top()+", width: "+this.viewport().width()+", height: "+this.viewport().height());a.u("}")}if(this.series()!=null){if(b){b=false}else{a.l(", ")}a.u("series: [");for(var c=0;c<this.series().count();c++){if(c!=0){a.l(", ")}a.l(this.series().__inner[c].serialize())}a.u("]")}if(!b){a.l(", ")}a.l("dipScalingRatio: "+this.dipScalingRatio().toString());a.u("}");return a.toString()},_viewport:null,viewport:function(a){if(arguments.length===1){this._viewport=a;return a}else{return this._viewport}},$type:new $.ig.Type("DoughnutChartVisualData",$.ig.$ot)},true);$c("XamDoughnutChart___GetSeriesWithItemsSource__IteratorClass:q","Object",{e:0,a:null,d:null,b:null,g:null,__3__source:null,__4__this:null,init:function(a){$.ig.$op.init.call(this);this.e=a},h:function(){this.e=-1;if(this.d!=null){this.d.dispose()}},moveNext:function(){var __hasError__=false;try{while(this.e>=0){switch(this.e){case 0:this.e=1;this.d=this.__4__this.series().getEnumerator();this.e=2;break;case 2:this.e=1;if(this.d.moveNext()){this.b=this.d.current();if($.ig.PieChartBase.prototype.ci(this.g,this.b.itemsSource())){this.a=this.b;this.e=2;return true}this.e=2;break}this.h();break}}}catch(a){__hasError__=true;throw a}finally{if(__hasError__){this.dispose()}}return false},getEnumerator:function(){var d__;if(this.e==-2){this.e=0;d__=this}else{d__=new $$t.q(0);d__.__4__this=this.__4__this}d__.g=this.__3__source;return d__},reset:function(){throw new $$0.r(0)},dispose:function(){switch(this.e){case 1:case 2:this.h();break}},current:function(){return this.a},current1:function(){return this.a},$type:new $.ig.Type("XamDoughnutChart___GetSeriesWithItemsSource__IteratorClass",$.ig.$ot,[$$0.$bw.$type.specialize($$t.$l.$type),$$0.$bt.$type,$$0.$bx.$type.specialize($$t.$l.$type),$$0.$bu.$type,$$0.$au.$type])},true);$$t.$a.endAngleProperty=$$a.$s.i("EndAngle",Number,$$t.$a.$type,new $$a.ac(2,360,function(a,b){$b($$t.$a.$type,a).gr("EndAngle",b.oldValue(),b.newValue())}));$$t.$l.itemsSourceProperty=$$a.$s.i("ItemsSource",$$0.$bt.$type,$$t.$l.$type,new $$a.ac(2,null,function(a,b){$b($$t.$l.$type,a).c6("ItemsSource",b.oldValue(),b.newValue())}));$$t.$l.valueMemberPathProperty=$$a.$s.i("ValueMemberPath",String,$$t.$l.$type,new $$a.ac(2,null,function(a,b){$b($$t.$l.$type,a).c6("ValueMemberPath",b.oldValue(),b.newValue())}));$$t.$l.labelMemberPathProperty=$$a.$s.i("LabelMemberPath",String,$$t.$l.$type,new $$a.ac(1,function(a,b){$b($$t.$l.$type,a).c6("LabelMemberPath",b.oldValue(),b.newValue())}));$$t.$l.legendLabelMemberPathProperty=$$a.$s.i("LegendLabelMemberPath",String,$$t.$l.$type,new $$a.ac(1,function(a,b){$b($$t.$l.$type,a).c6("LegendLabelMemberPath",b.oldValue(),b.newValue())}));$$t.$l.labelsPositionProperty=$$a.$s.i("LabelsPosition",$.ig.LabelsPosition.prototype.$type,$$t.$l.$type,new $$a.ac(2,$.ig.LabelsPosition.prototype.getBox(1),function(a,b){$b($$t.$l.$type,a).c6("LabelsPosition",b.oldValue(),b.newValue())}));$$t.$l.leaderLineVisibilityProperty=$$a.$s.i("LeaderLineVisibility",$$a.$aj.$type,$$t.$l.$type,new $$a.ac(2,$$a.$aj.getBox(0),function(a,b){$b($$t.$l.$type,a).c6("LeaderLineVisibility",b.oldValue(),b.newValue())}));$$t.$l.leaderLineStyleProperty=$$a.$s.i("LeaderLineStyle",$$a.$ag.$type,$$t.$l.$type,new $$a.ac(2,null,function(a,b){$b($$t.$l.$type,a).c6("LeaderLineStyle",b.oldValue(),b.newValue())}));$$t.$l.leaderLineTypeProperty=$$a.$s.i("LeaderLineType",$.ig.LeaderLineType.prototype.$type,$$t.$l.$type,new $$a.ac(2,$.ig.LeaderLineType.prototype.getBox(0),function(a,b){$b($$t.$l.$type,a).c6("LeaderLineType",b.oldValue(),b.newValue())}));$$t.$l.leaderLineMarginProperty=$$a.$s.i("LeaderLineMargin",Number,$$t.$l.$type,new $$a.ac(2,6,function(a,b){$b($$t.$l.$type,a).c6("LeaderLineMargin",b.oldValue(),b.newValue())}));$$t.$l.toolTipProperty=$$a.$s.i("ToolTip",$.ig.$op.$type,$$t.$l.$type,new $$a.ac(2,null,function(a,b){$b($$t.$l.$type,a).c6("ToolTip",b.oldValue(),b.newValue())}));$$t.$l.othersCategoryThresholdProperty=$$a.$s.i("OthersCategoryThreshold",Number,$$t.$l.$type,new $$a.ac(2,3,function(a,b){$b($$t.$l.$type,a).c6("OthersCategoryThreshold",b.oldValue(),b.newValue())}));$$t.$l.othersCategoryTypeProperty=$$a.$s.i("OthersCategoryType",$.ig.OthersCategoryType.prototype.$type,$$t.$l.$type,new $$a.ac(2,$.ig.OthersCategoryType.prototype.getBox(1),function(a,b){$b($$t.$l.$type,a).c6("OthersCategoryType",b.oldValue(),b.newValue())}));$$t.$l.othersCategoryTextProperty=$$a.$s.i("OthersCategoryText",String,$$t.$l.$type,new $$a.ac(2,null,function(a,b){$b($$t.$l.$type,a).c6("OthersCategoryText",b.oldValue(),b.newValue())}));$$t.$l.legendProperty=$$a.$s.i("Legend",$.ig.IChartLegend.prototype.$type,$$t.$l.$type,new $$a.ac(2,null,function(a,b){$b($$t.$l.$type,a).c6("Legend",b.oldValue(),b.newValue())}));$$t.$l.formatLabelProperty=$$a.$s.i("FormatLabel",$$0.$z.$type.specialize($.ig.$op.$type,String),$$t.$l.$type,new $$a.ac(1,function(a,b){$b($$t.$l.$type,a).c6("FormatLabel",b.oldValue(),b.newValue())}));$$t.$l.formatLegendLabelProperty=$$a.$s.i("FormatLegendLabel",$$0.$z.$type.specialize($.ig.$op.$type,String),$$t.$l.$type,new $$a.ac(1,function(a,b){$b($$t.$l.$type,a).c6("FormatLegendLabel",b.oldValue(),b.newValue())}));$$t.$l.labelFormatProperty=$$a.$s.i("LabelFormat",String,$$t.$l.$type,new $$a.ac(2,null,function(a,b){a.c6("LabelFormat",b.oldValue(),b.newValue())}));$$t.$l.labelFormatSpecifiersProperty=$$a.$s.i("LabelFormatSpecifiers",Array,$$t.$l.$type,new $$a.ac(2,null,function(a,b){a.c6("LabelFormatSpecifiers",b.oldValue(),b.newValue())}));$$t.$l.othersLabelFormatProperty=$$a.$s.i("OthersLabelFormat",String,$$t.$l.$type,new $$a.ac(2,null,function(a,b){a.c6("OthersLabelFormat",b.oldValue(),b.newValue())}));$$t.$l.othersLabelFormatSpecifiersProperty=$$a.$s.i("OthersLabelFormatSpecifiers",Array,$$t.$l.$type,new $$a.ac(2,null,function(a,b){a.c6("OthersLabelFormatSpecifiers",b.oldValue(),b.newValue())}));$$t.$l.legendLabelFormatProperty=$$a.$s.i("LegendLabelFormat",String,$$t.$l.$type,new $$a.ac(2,null,function(a,b){a.c6("LegendLabelFormat",b.oldValue(),b.newValue())}));$$t.$l.legendLabelFormatSpecifiersProperty=$$a.$s.i("LegendLabelFormatSpecifiers",Array,$$t.$l.$type,new $$a.ac(2,null,function(a,b){a.c6("LegendLabelFormatSpecifiers",b.oldValue(),b.newValue())}));$$t.$l.legendOthersLabelFormatProperty=$$a.$s.i("LegendOthersLabelFormat",String,$$t.$l.$type,new $$a.ac(2,null,function(a,b){a.c6("LegendOthersLabelFormat",b.oldValue(),b.newValue())}));$$t.$l.legendOthersLabelFormatSpecifiersProperty=$$a.$s.i("LegendOthersLabelFormatSpecifiers",Array,$$t.$l.$type,new $$a.ac(2,null,function(a,b){a.c6("LegendOthersLabelFormatSpecifiers",b.oldValue(),b.newValue())}));$$t.$l.labelExtentProperty=$$a.$s.i("LabelExtent",Number,$$t.$l.$type,new $$a.ac(2,10,function(a,b){$b($$t.$l.$type,a).c6("LabelExtent",b.oldValue(),b.newValue())}));$$t.$l.startAngleProperty=$$a.$s.i("StartAngle",Number,$$t.$l.$type,new $$a.ac(2,0,function(a,b){$b($$t.$l.$type,a).c6("StartAngle",b.oldValue(),b.newValue())}));$$t.$l.othersCategoryStyleProperty=$$a.$s.i("OthersCategoryStyle",$$a.$ag.$type,$$t.$l.$type,new $$a.ac(2,null,function(a,b){$b($$t.$l.$type,a).c6("OthersCategoryStyle",b.oldValue(),b.newValue())}));$$t.$l.selectedStyleProperty=$$a.$s.i("SelectedStyle",$$a.$ag.$type,$$t.$l.$type,new $$a.ac(2,null,function(a,b){$b($$t.$l.$type,a).c6("SelectedStyle",b.oldValue(),b.newValue())}));$$t.$l.toolTipStyleProperty=$$a.$s.i("ToolTipStyle",$$a.$ag.$type,$$t.$l.$type,new $$a.ac(2,null,function(a,b){$b($$t.$l.$type,a).c6("ToolTipStyle",b.oldValue(),b.newValue())}));$$t.$l.brushesProperty=$$a.$s.i("Brushes",$.ig.BrushCollection.prototype.$type,$$t.$l.$type,new $$a.ac(2,null,function(a,b){$b($$t.$l.$type,a).c6("Brushes",b.oldValue(),b.newValue())}));$$t.$l.outlinesProperty=$$a.$s.i("Outlines",$.ig.BrushCollection.prototype.$type,$$t.$l.$type,new $$a.ac(2,null,function(a,b){$b($$t.$l.$type,a).c6("Outlines",b.oldValue(),b.newValue())}));$$t.$l.labelOuterColorProperty=$$a.$s.i("LabelOuterColor",$$a.$at.$type,$$t.$l.$type,new $$a.ac(2,null,function(a,b){a.c6("LabelOuterColor",b.oldValue(),b.newValue())}));$$t.$l.labelInnerColorProperty=$$a.$s.i("LabelInnerColor",$$a.$at.$type,$$t.$l.$type,new $$a.ac(2,null,function(a,b){a.c6("LabelInnerColor",b.oldValue(),b.newValue())}));$$t.$l.legendItemTemplateProperty=$$a.$s.i("LegendItemTemplate",$$a.$k.$type,$$t.$l.$type,new $$a.ac(2,null,function(a,b){$b($$t.$l.$type,a).c6("LegendItemTemplate",b.oldValue(),b.newValue())}));$$t.$l.legendItemBadgeTemplateProperty=$$a.$s.i("LegendItemBadgeTemplate",$$a.$k.$type,$$t.$l.$type,new $$a.ac(2,null,function(a,b){$b($$t.$l.$type,a).c6("LegendItemBadgeTemplate",b.oldValue(),b.newValue())}));$$t.$l.labelTemplateProperty=$$a.$s.i("LabelTemplate",$$a.$k.$type,$$t.$l.$type,new $$a.ac(2,null,function(a,b){$b($$t.$l.$type,a).c6("LabelTemplate",b.oldValue(),b.newValue())}));$$t.$l.isSurfaceInteractionDisabledProperty=$$a.$s.i("IsSurfaceInteractionDisabled",$$0.$aq.$type,$$t.$l.$type,new $$a.ac(2,false,function(a,b){a.c6("IsSurfaceInteractionDisabled",b.oldValue(),b.newValue())}));$$t.$l.radiusFactorProperty=$$a.$s.i("RadiusFactor",Number,$$t.$l.$type,new $$a.ac(2,.9,function(a,b){$b($$t.$l.$type,a).c6("RadiusFactor",b.oldValue(),b.newValue())}));$$t.$l.dc=$$a.$s.i("FastItemsSource",$.ig.FastItemsSource.prototype.$type,$$t.$l.$type,new $$a.ac(1,function(a,b){$b($$t.$l.$type,a).c6("FastItemsSource",b.oldValue(),b.newValue())}));$$t.$e.childrenMemberPathProperty=$$a.$s.i("ChildrenMemberPath",String,$$t.$e.$type,new $$a.ac(1,function(a,b){$b($$t.$e.$type,a).c6("ChildrenMemberPath",b.oldValue(),b.newValue())}));$$t.$p.allowSliceSelectionProperty=$$a.$s.i("AllowSliceSelection",$$0.$aq.$type,$$t.$p.$type,new $$a.ac(2,true,function(a,b){$b($$t.$p.$type,a).b1("AllowSliceSelection",b.oldValue(),b.newValue())}));$$t.$p.isSurfaceInteractionDisabledProperty=$$a.$s.i("IsSurfaceInteractionDisabled",$$0.$aq.$type,$$t.$p.$type,new $$a.ac(2,false,function(a,b){$b($$t.$p.$type,a).b1("IsSurfaceInteractionDisabled",b.oldValue(),b.newValue())}));$$t.$p.allowSliceExplosionProperty=$$a.$s.i("AllowSliceExplosion",$$0.$aq.$type,$$t.$p.$type,new $$a.ac(2,true,function(a,b){$b($$t.$p.$type,a).b1("AllowSliceExplosion",b.oldValue(),b.newValue())}));$$t.$p.innerExtentProperty=$$a.$s.i("InnerExtent",Number,$$t.$p.$type,new $$a.ac(2,40,function(a,b){var c=b.newValue();if(c<0||c>100){if(b.oldValue()!=null){a.innerExtent(b.oldValue())}return}a.b2();a.b1("InnerExtent",b.oldValue(),b.newValue())}));$$t.$p.selectedStyleProperty=$$a.$s.i("SelectedStyle",$$a.$ag.$type,$$t.$p.$type,new $$a.ac(2,null,function(a,b){$b($$t.$p.$type,a).b1("SelectedStyle",b.oldValue(),b.newValue())}));$$t.$p.centerDataProperty=$$a.$s.i("CenterData",$.ig.$op.$type,$$t.$p.$type,new $$a.ac(2,null,function(a,b){$b($$t.$p.$type,a).b1("CenterData",b.oldValue(),b.newValue())}));$$t.$p.centerDataTemplateProperty=$$a.$s.i("CenterDataTemplate",$$a.$k.$type,$$t.$p.$type,new $$a.ac(2,null,function(a,b){$b($$t.$p.$type,a).b1("CenterDataTemplate",b.oldValue(),b.newValue())}))});