oi-metrology/Server/wwwroot/igniteui/js/modules/infragistics.doughnutchart.js

24 lines
71 KiB
JavaScript

/*!@license
* Infragistics.Web.ClientUI infragistics.doughnutchart.js 19.1.20191.172
*
* Copyright (c) 2011-2019 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;$$0=$.ig.globalDefs.$$0;$$4=$.ig.globalDefs.$$4;$$1=$.ig.globalDefs.$$1;$$w=$.ig.globalDefs.$$w;$$r=$.ig.globalDefs.$$r;$$al=$.ig.globalDefs.$$al;$$ap=$.ig.globalDefs.$$ap;$$q=$.ig.globalDefs.$$q;$$6=$.ig.globalDefs.$$6;$$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.compare,$x=$.ig.util.replace,$y=$.ig.util.stringFormat,$z=$.ig.util.stringFormat1,$0=$.ig.util.stringFormat2,$1=$.ig.util.stringCompare1,$2=$.ig.util.stringCompare2,$3=$.ig.util.stringCompare3,$4=$.ig.util.compareSimple,$5=$.ig.util.tryParseNumber,$6=$.ig.util.tryParseNumber1,$7=$.ig.util.numberToString,$8=$.ig.util.numberToString1,$9=$.ig.util.parseNumber;$c("Arc:a","PieChartBase",{ar:function(){return new $$t.r(this)},e4:function(a){$.ig.PieChartBase.prototype.e4.call(this,a);this._ha=a},_ha:null,init:function(){this.hb=null;$.ig.PieChartBase.prototype.init.call(this);this._ab=$$t.$a.$type},hb:null,ring:function(a){if(arguments.length===1){var b=this.hb;this.hb=a;this._ha.b4(b,this.hb);return a}else{return this.hb}},_g9:null,endAngle:function(a){if(arguments.length===1){this.h($$t.$a.endAngleProperty,a);return a}else{return this.c($$t.$a.endAngleProperty)}},_he:0,hf:function(){if(this.ring()!=null){return this.ring().ringBreadth()}return 0},e3:function(a,b){$.ig.PieChartBase.prototype.e3.call(this,a,b);if(this.ring()!=null){this.ring().ringSeries().chart().bs(a,b)}},ek:function(a,b){if(this.ring()!=null&&this.ring()._d!=null){$.ig.PieChartBase.prototype.ek.call(this,a,b);var c=this.hd(a);if(c!=null){this.ring()._d.bj(c,b)}}},fi:function(a,b){if(this.ring()!=null&&this.ring()._d!=null){$.ig.PieChartBase.prototype.fi.call(this,a,b);var c=this.hd(a);if(c!=null){this.ring()._d.b3(c,b)}}},hd:function(a){var c=this._g9._g.getEnumerator();while(c.moveNext()){var b=c.current();if(b._b==a){return b}}return null},fh:function(a){if(this.allowSliceSelection()){this.e7();this.ff();this.fe()}},e7:function(){if(this.itemsSource()==null||this.a5()==null){this.bg.count(0);return}var a=this._b2.count();var b=this._b1.count()>0;var c=$.ig.PieChartBase.prototype.cs(this._cf);var d=$.ig.PieChartBase.prototype.cs(this._cf);this._cx=a;if(b){a++}for(var e=0;e<a;e++){var f=false;var g;if(e==a-1&&b){g=this._cp;f=true}else{g=this.be().item(this._b2.__inner[e])}if(this.sweepDirection()==1){d+=$.ig.PieChartBase.prototype.cs(Math.abs(g)*this.endAngle()/this._cu)}else{d-=$.ig.PieChartBase.prototype.cs(Math.abs(g)*this.endAngle()/this._cu)}var h=this.bg.item(e);if(this.cc()>=100){h.__visibility=1}else{h.__visibility=0}h.aw(true);h.a3(c);h.ax(d);h.a1(h.a0(this.cc()));h.isOthersSlice(f);h.ay(this.cb());h.a5(e);h.dataContext(f?this._b0:this.a5().item(this._b2.__inner[e]));h.isExploded(this.explodedSlices().contains(e));h.isSelected(this.selectedSlices().contains(e));c=d;h.aw(false)}this.bg.count(a);if(this._g9!=null){this._g9.q(this)}},fe:function(){var $self=this;var a=$b($.ig.IChartLegend.prototype.$type,this.legend());if(a==null){return}if(this.ba()==null||this.ba().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._bz=new $$4.x($$a.$c.$type,0);var c=this.bg.active().getEnumerator();while(c.moveNext()){var b=c.current();var d=new $$a.g;var e=this.cy(b);var f=b._b0;var g=b.isOthersSlice()?this.othersCategoryText():this.bb()!=null&&this.bb().count()>0?this.bb().item(this._b2.__inner[b.a5()]):null;g=g==null&&this.ba().count()>0?this.ba().item(this._b2.__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.ck(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.legendItemTemplate()!=null){d._ah=this.legendItemTemplate()}this._bz.add(d)}if(a.isItemwise()){var j=a;j.createLegendItemsInsert(this._bz,this.ring().ringSeries())}},e8:function(a,b,c,d){$.ig.PieChartBase.prototype.e8.call(this,a,b,c,d);switch(b){case"EndAngle":this._he=d;this.e7();this.e6();this.ff();this.fd();break;case"RadiusFactor":if(this.ring()!=null&&this.ring()._d!=null){this.ring()._d.bu()}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._as.ac()},$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.cs(a);var s=$.ig.PieChartBase.prototype.cs(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.cs(Math.abs(v)*b/c)}else{s-=$.ig.PieChartBase.prototype.cs(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.bg.count();b++){var c=a.bg.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",{ao:null,init:function(){var $self=this;this.aw=false;$$a.$f.init.call(this);this._dj={__x:0,__y:0,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};this.ao=function(a,b){$self.cj(a,b.propertyName(),b.oldValue(),b.newValue())};this.propertyUpdated=$.ig.Delegate.prototype.combine(this.propertyUpdated,this.ao);this._as=this.ar();this.cg(this._as);this._as.k();this.a5=function(a,b){$self.ca(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,cl: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)}},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.cl("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)}},a7:null,textStyle:function(a){if(arguments.length===1){var b=this.a7;this.a7=a;this.cl("TextStyle",b,a);return a}else{return this.a7}},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))}},aw:false,isSurfaceInteractionDisabled:function(a){if(arguments.length===1){this.aw=true;this.h($$t.$l.isSurfaceInteractionDisabledProperty,a);return a}else{return this.c($$t.$l.isSurfaceInteractionDisabledProperty)}},ay:function(){if(!this.aw){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)}},av:false,a5:null,au:function(a){if(arguments.length===1){this.h($$t.$l.cr,a);return a}else{return this.c($$t.$l.cr)}},_dj:null,_as:null,cj:function(a,b,c,d){if(b=="ItemsSource"){this.au(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.a5);this.av=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.a5);this.av=true}this.ci()}switch(b){case"SelectedStyle":this.selectedStyleResolved(d);break;case"ValueMemberPath":this.ci();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},ca:function(a,b,c,d){this.ci()},ar:function(){return new $$t.t(this)},cg:function(a){},aq:function(){},ci:function(){},ch:function(){},provideContainer:function(a){this._as.n(a)},b9:function(){if(this._as!=null){this._as.i()}},cn:function(){},cm:function(){},cd:function(a,b){this.cb(new $$4.ae(1,0,b,a))},cf:function(a,b,c){this.cb(new $$4.ae(2,2,c,b,a))},cc:function(){this.cb(new $$4.ae(0,4))},ce:function(a,b){this.cb(new $$4.ae(1,1,b,a))},cb:function(a){if(this.au()!=null){this.au().handleCollectionChanged(a)}},resolveLegendIndex:function(){return-1},forSubItems:function(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)}},aq:function(){if(this.itemsSource()==null){return new $$t.i}this.rings(this.dt(this.itemsSource()));return this.rings()},cj:function(a,b,c,d){$$t.$l.cj.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.ch();break;case"ChildrenMemberPath":this.ci();break}if(this.rings()!=null&&this._as.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()._as.l()}}}},ci:function(){if(this.chart()!=null){this.chart().bv();this.chart().b0()}},ch: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.dy(c)}}}},cn: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._as.m(a.center().__x,a.center().__y)}},cm: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.fe()}}},dv:function(obj_){var memberPath_=this.childrenMemberPath();if(obj_[memberPath_]!==undefined){return obj_[memberPath_]}return null},dt: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.dv(n._g);if(p!=null&&this.du(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.dr(i,k,h,g);if(r!=g){f.add(r);g=r}h=i._m}return f},dr: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.dy(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},du:function(a){var c=a.getEnumerator();while(c.moveNext()){var b=c.current();return false}return true},dy: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._as.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()._dj.__x;b=this.center().__y-this.ringSeries()._dj.__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()._as.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._g9=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._as.r()){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}},cj:function(a,b,c,d){$$t.$l.cj.call(this,a,b,c,d);if(b=="FormatLabel"){for(var e=0;e<this.ring().ringControl()._arcs.count();e++){this.ring().ringControl()._arcs.item(e).formatLabel(d)}}if(b=="FormatLegendLabel"){for(var f=0;f<this.ring().ringControl()._arcs.count();f++){this.ring().ringControl()._arcs.item(f).formatLegendLabel(d)}}if(b=="LegendLabelMemberPath"){for(var g=0;g<this.ring().ringControl()._arcs.count();g++){this.ring().ringControl()._arcs.item(g).legendLabelMemberPath(this.legendLabelMemberPath())}}if(b=="Brushes"){this.ch()}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.ci()}}if(this.ring()!=null&&this._as.e()){this.ring().prepareArcs();if(this.ring().renderArcs()){this.ring().ringSeries()._as.l()}}},aq:function(){var a=new $$t.i;if(this.ring().arcItems().__inner[0]._g.count()>0){a.add(this.ring())}return a},ci: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().bv();this.chart().b0()}}},ch:function(){if(this.ring()!=null){this.ring().arcItems().__inner[0]._a=this.brushes()}},cn:function(){if(this.ring()!=null){this.width(this.ring().controlSize().width());this.height(this.ring().controlSize().height());this._as.m(this.ring().center().__x,this.ring().center().__y)}},cm:function(){if(this.ring()!=null){var b=this.ring().ringControl()._arcs.active().getEnumerator();while(b.moveNext()){var a=b.current();a.fe()}}},cd:function(a,b){$$t.$l.cd.call(this,a,b);if(this.ring()!=null){this.ring().l(this.itemsSource(),a,b)}},cc:function(){$$t.$l.cc.call(this);if(this.ring()!=null){this.ring().k(this.itemsSource())}},ce:function(a,b){$$t.$l.ce.call(this,a,b);if(this.ring()!=null){this.ring().m(this.itemsSource(),a,b)}},cf:function(a,b,c){$$t.$l.cf.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.bt(a);a.r();this._ab=$$t.$p.$type;this.ah=function(b,c){$self.bx(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.b4.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},b4: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.b9();this._au.v(d)}}}this.bv();this.b0()},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.bz("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.bz("ActualPixelScalingRatio",b,this.az);return a}else{return this.az}},_au:null,destroy:function(){this._au.u(null);var b=this.series().getEnumerator();while(b.moveNext()){var a=b.current();a.b9()}},b3: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)}},bx: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)},bt:function(a){this._au=a},b0:function(){this.bw();this.b2();this.b1();this.bu();this._au.y()},b2:function(){var b=this.series().getEnumerator();while(b.moveNext()){var a=b.current();a.cn()}},bu:function(){var a=this._au._aa;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.w(e*2,e*2);this._au.t(b.__x-e,b.__y-e)},b1: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()._as.l()}}},bw:function(){var a=this._au._aa;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++}},bv:function(){this.explodedSlices().clear();this.selectedSlices().clear();this.aj.clear();this._au.k();this._au.j();var a=0;for(var b=0;b<this.series().count();b++){var c=this.series().__inner[b];c.chart(this);this._au.i(c);var d=c.aq();var f=d.getEnumerator();while(f.moveNext()){var e=f.current();e._d=this;e.index(a);this.aj.add(e);a++}}},br:function(){if(this._au!=null){this.height(this._au._aa.height());this.width(this._au._aa.width())}this.b0()},sliceClick:null,bs:function(a,b){var c=a;var d=c.ring().ringSeries();if(d.ay()){return}if(this.sliceClick!=null){this.sliceClick(a,b)}},propertyChanged:null,propertyUpdated:null,bz: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))}},provideContainer:function(a){this._au.u(a)},notifyResized:function(){this._au.x()},getContainerID:function(){return this._au.h()},getCenterCoordinates:function(){return this._au._z},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].aq();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,bq: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._aa));this._au.p(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.cd(a,b)}},notifySetItem:function(source_,a,b,c){var e=this.ay(source_).getEnumerator();while(e.moveNext()){var d=e.current();d.cf(a,b,c)}},notifyClearItems:function(source_){var b=this.ay(source_).getEnumerator();while(b.moveNext()){var a=b.current();a.cc()}},notifyRemoveItem:function(source_,a,b){var d=this.ay(source_).getEnumerator();while(d.moveNext()){var c=d.current();c.ce(a,b)}},$type:new $.ig.Type("XamDoughnutChart",$$a.$f.$type,[$$0.$b6.$type,$.ig.ILegendOwner.prototype.$type])},true);$c("ArcView:r","PieChartBaseView",{_b2:null,init:function(a){$.ig.PieChartBaseView.prototype.init.call(this,a);this._b2=a},b4:function(a,b){this._e.series(this._b2.ring().ringSeries())},b3:function(){return this._f},b5:function(){this.a9();this._bq=new $$a.at;var a=this._c.u();this._bq.__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().othersCategoryText());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.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._ha.b5()}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.d("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.d("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._dj={__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",{e:null,_a:null,_z:null,_d:0,init:function(a){this.e=null;$.ig.$op.init.call(this);this._aa=$$a.$ae.empty();this._z={__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},r:function(){this.q()},y:function(){},_c:null,i:function(a){if(!this._c.contains(a)){a.provideContainer(this._f);this._c.add(a)}},v:function(a){if(this._c.contains(a)){a.provideContainer(null);this._c.remove(a)}},j:function(){},_aa:null,x:function(){if(this._f==null){return}var a=this._f.rootWrapper().width();var b=this._f.rootWrapper().height();this._aa=new $$a.ae(0,0,0,a,b);if(this._b!=null){this._b._bc=this._aa}this._a.br()},_g:null,_f:null,_b:null,u:function(a){if(a==null){if(this._b!=null){this._b.an()}return}var b=a;this._f=b;var c=this._f.rootWrapper().width();var d=this._f.rootWrapper().height();this._aa=new $$a.ae(0,0,0,c,d);this._b=new $.ig.DOMEventProxy(this._f.rootWrapper(),this._f,false);this._b._bc=this._aa;var e=this._b;e.onMouseOver=$.ig.Delegate.prototype.combine(e.onMouseOver,this.n.runOn(this));var f=this._b;f.onMouseLeave=$.ig.Delegate.prototype.combine(f.onMouseLeave,this.m.runOn(this));var g=this._b;g.onMouseDown=$.ig.Delegate.prototype.combine(g.onMouseDown,this.l.runOn(this));var h=this._b;h.onMouseUp=$.ig.Delegate.prototype.combine(h.onMouseUp,this.o.runOn(this));this.x()},s:function(a,b,c){for(var d=this._c.count()-1;d>=0;d--){var e=this._c.__inner[d];if(e.ay()){continue}var f=e._as._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._as,l);if(c=="mouseUp"){var m=k._ha.b3();if(m!=null){return}}}}}},o:function(a){this.s(a,function(b,c){b.ak(c)},"mouseUp")},l:function(a){this.s(a,function(b,c){b.ah(c)},"mouseDown")},m:function(a){this.s(a,function(b,c){b.ai(c)},"mouseLeave")},n:function(a,b,c){this.s(a,function(d,e){d.aj(e,b,c)},"mouseOver")},h:function(){return this._f.rootWrapper().getAttribute("id")},t:function(a,b){if(!this._aa.isEmpty()&&this._aa.width()!=0&&this._aa.height()!=0){var c=this._z.__x;var d=this._z.__y;this._z.__x=this._aa.width()/2;this._z.__y=this._aa.height()/2;if(this._z.__x!=c||this._z.__y!=d){this._a.bq()}}},w:function(a,b){var c=this._d;this._d=a/2;if(c!=this._d){this._a.bq()}},k:function(){},p: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].aq().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].aq().__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].aq().__inner[c].arcItems().__inner[d]._g.count();e++){if(null==this._a.series().__inner[b].aq().__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].aq().__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))}}}}}}},q:function(){var $self=this;if(this.e==null){this.e=function(a){var b=$self._a.pixelScalingRatio();var c=$self._a.actualPixelScalingRatio();if(!$.ig.util.isNaN(b)&&b!=0){return}if(window.devicePixelRatio!=window.undefined&&window.devicePixelRatio!=c){$self._a.actualPixelScalingRatio(window.devicePixelRatio)}};window.addEventListener("resize",this.e,false)}this.e(null)},$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.by(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).fa("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).cl("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).cl("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).cl("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).cl("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).cl("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).cl("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).cl("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).cl("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).cl("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).cl("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).cl("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).cl("OthersCategoryType",b.oldValue(),b.newValue())}));$$t.$l.othersCategoryTextProperty=$$a.$s.i("OthersCategoryText",String,$$t.$l.$type,new $$a.ac(2,"Others",function(a,b){$b($$t.$l.$type,a).cl("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).cl("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).cl("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).cl("FormatLegendLabel",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).cl("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).cl("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).cl("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).cl("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).cl("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).cl("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).cl("Outlines",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).cl("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).cl("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).cl("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.cl("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).cl("RadiusFactor",b.oldValue(),b.newValue())}));$$t.$l.cr=$$a.$s.i("FastItemsSource",$.ig.FastItemsSource.prototype.$type,$$t.$l.$type,new $$a.ac(1,function(a,b){$b($$t.$l.$type,a).cl("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).cl("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).bz("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).bz("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).bz("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.b0();a.bz("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).bz("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).bz("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).bz("CenterDataTemplate",b.oldValue(),b.newValue())}))});