/*!@license
* Infragistics.Web.ClientUI infragistics.radialmenu_core.js 14.1.20141.1020
*
* Copyright (c) 2011-2014 Infragistics Inc.
*
* http://www.infragistics.com/
*
* Depends:
*     jquery-1.4.4.js
*     jquery.ui.core.js
*     jquery.ui.widget.js
*     infragistics.util.js
*/
$.ig=$.ig||{};(function($){var $$t={};$.ig.$currDefinitions=$$t;$.ig.util.bulkDefine(["AbstractEnumerable:a","Object:b","Type:c","Boolean:d","ValueType:e","Void:f","String:g","IComparable:h","Number:i","Number:j","Single:k","Number:l","String:m","Array:n","RegExp:o","RuntimeTypeHandle:p","MethodInfo:q","MethodBase:r","MemberInfo:s","ParameterInfo:t","TypeCode:u","Enum:v","ConstructorInfo:w","IEnumerable:x","IEnumerator:y","Func$1:z","MulticastDelegate:aa","IntPtr:ab","AbstractEnumerator:ac","IEnumerable$1:ad","IEnumerator$1:ae","ICollection$1:af","IList$1:ag","IArrayList:ah","Array:ai","ICollection:aj","CompareCallback:ak","List$1:al","IList:am","IDisposable:an","IArray:ao","Script:ap","Date:aq","Date:ar","Number:as","Func$3:at","Action$1:au","IDictionary$2:aw","Dictionary$2:ax","IDictionary:ay","Dictionary:az","IEqualityComparer$1:a0","KeyValuePair$2:a1","NotImplementedException:a2","Error:a3","GenericEnumerable$1:a4","GenericEnumerator$1:a5","INotifyCollectionChanged:a6","NotifyCollectionChangedEventHandler:a7","NotifyCollectionChangedEventArgs:a8","EventArgs:a9","NotifyCollectionChangedAction:ba","ObservableCollection$1:bd","INotifyPropertyChanged:be","PropertyChangedEventHandler:bf","PropertyChangedEventArgs:bg","Delegate:bh","Stack$1:bm","ReverseArrayEnumerator$1:bn","IOrderedEnumerable$1:bu","Enumerable:bz","Func$2:b0","SortedList$1:b1","Math:b2","Number:b3","Number:b4","Number:b5","Number:b6","Number:b7","Number:b8","Number:b9","ArgumentNullException:ca","DependencyObject:cc","DependencyProperty:cd","PropertyMetadata:ce","PropertyChangedCallback:cf","DependencyPropertyChangedEventArgs:cg","DependencyPropertiesCollection:ch","UnsetValue:ci","Binding:cj","PropertyPath:ck","ArgumentException:co","ArgumentOutOfRangeException:cp","Debug:cw","JQueryPromise:db","Action:dc","JQueryDeferred:df","JQuery:dg","JQueryObject:dh","Element:di","ElementAttributeCollection:dj","ElementCollection:dk","WebStyle:dl","ElementNodeType:dm","Document:dn","EventListener:dp","IElementEventHandler:dq","ElementEventHandler:dr","ElementAttribute:ds","JQueryPosition:dt","JQueryCallback:du","JQueryEvent:dv","JQueryUICallback:dw","StringBuilder:d1","Random:d3","Tuple$2:d5","UIElement:d7","Transform:d8","UIElementCollection:d9","FrameworkElement:ea","Visibility:eb","Style:ec","Control:ed","Thickness:ee","HorizontalAlignment:ef","VerticalAlignment:eg","ContentControl:eh","DataTemplate:ei","DataTemplateRenderHandler:ej","DataTemplateRenderInfo:ek","DataTemplatePassInfo:el","DataTemplateMeasureHandler:em","DataTemplateMeasureInfo:en","DataTemplatePassHandler:eo","Panel:ep","Image:er","TextBlock:es","Brush:et","Color:eu","Key:ew","ModifierKeys:ex","MouseEventArgs:ey","Point:ez","LinearGradientBrush:e1","GradientStop:e2","DoubleCollection:e3","FillRule:e4","GeometryType:e5","Geometry:e6","GeometryCollection:e7","GeometryGroup:e8","LineGeometry:e9","RectangleGeometry:fa","Rect:fb","Size:fc","EllipseGeometry:fd","PathGeometry:fe","PathFigureCollection:ff","PathFigure:fg","PathSegmentCollection:fh","PathSegmentType:fi","PathSegment:fj","LineSegment:fk","BezierSegment:fl","PolyBezierSegment:fm","PointCollection:fn","PolyLineSegment:fo","ArcSegment:fp","SweepDirection:fq","RotateTransform:ft","TranslateTransform:fu","ScaleTransform:fv","TransformGroup:fw","TransformCollection:fx","Shape:fz","Line:f0","Path:f1","Polygon:f2","Polyline:f3","Rectangle:f4"]);$.ig.util.defType("ModifierKeys:ex","Enum",{init:function(){$.ig.$ep.init.call(this)},$type:new $.ig.Type("ModifierKeys",$.ig.$ep.$type)},true);$.ig.util.defType("Key:ew","Enum",{init:function(){$.ig.$ep.init.call(this)},$type:new $.ig.Type("Key",$.ig.$ep.$type)},true);$.ig.util.defType("INotifyCollectionChanged:a6","Object",{$type:new $.ig.Type("INotifyCollectionChanged",null)},true);$.ig.util.defType("ObservableCollection$1:bd","List$1",{$t:null,init:function($t,initNumber){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments);break}return}this.$t=$t;this.$type=this.$type.specialize(this.$t);$$t.$al.init.call(this,this.$t)},init1:function($t,initNumber,a){this.$t=$t;this.$type=this.$type.specialize(this.$t);$$t.$al.init1.call(this,this.$t,1,a)},init2:function($t,initNumber,a){this.$t=$t;this.$type=this.$type.specialize(this.$t);$$t.$al.init2.call(this,this.$t,2,a)},o:function(a,b){var c=this.__inner[a];$$t.$al.o.call(this,a,b);if(this.propertyChanged!=null){this.t(new $$t.bg("Item[]"))}if(this.collectionChanged!=null){var d=new $$t.a8(2,2,b,c,a);this.s(d)}},h:function(){$$t.$al.h.call(this);if(this.propertyChanged!=null){this.t(new $$t.bg("Count"));this.t(new $$t.bg("Item[]"))}if(this.collectionChanged!=null){var a=new $$t.a8(0,4);this.s(a)}},j:function(a,b){$$t.$al.j.call(this,a,b);if(this.propertyChanged!=null){this.t(new $$t.bg("Count"));this.t(new $$t.bg("Item[]"))}if(this.collectionChanged!=null){var c=new $$t.a8(1,0,b,a);this.s(c)}},f:function(a){$$t.$al.f.call(this,a);if(this.propertyChanged!=null){this.t(new $$t.bg("Count"));this.t(new $$t.bg("Item[]"))}if(this.collectionChanged!=null){var b=new $$t.a8(1,0,a,this.count()-1);this.s(b)}},m:function(a){var b=this.__inner[a];$$t.$al.m.call(this,a);if(this.propertyChanged!=null){this.t(new $$t.bg("Count"));this.t(new $$t.bg("Item[]"))}if(this.collectionChanged!=null){var c=new $$t.a8(1,1,b,a);this.s(c)}},collectionChanged:null,propertyChanged:null,t:function(a){if(this.propertyChanged!=null){this.propertyChanged(this,a)}},s:function(a){if(this.collectionChanged!=null){this.collectionChanged(this,a)}},$type:new $.ig.Type("ObservableCollection$1",$$t.$al.$type.specialize(0),[$$t.$a6.$type,$$t.$be.$type])},true);$.ig.util.defType("Stack$1:bm","Object",{$t:null,init:function($t){this.$t=$t;this.$type=this.$type.specialize(this.$t);$.ig.$op.init.call(this);this.b=new $.ig.Array},b:null,push:function(a){this.b.add(a)},peek:function(){if(this.b.length<1){return null}return this.b[this.b.length-1]},pop:function(){var a=this.b[this.b.length-1];this.b.removeAt(this.b.length-1);return a},count:function(){return this.b.length},clear:function(){this.b.clear()},contains:function(a){return this.b.contains(a)},getEnumerator:function(){return new $$t.bn(this.$t,this.b)},$type:new $.ig.Type("Stack$1",$.ig.$ot,[$$t.$ad.$type.specialize(0)])},true);$.ig.util.defType("ReverseArrayEnumerator$1:bn","Object",{$t:null,b:0,a:null,init:function($t,a){this.$t=$t;this.$type=this.$type.specialize(this.$t);$.ig.$op.init.call(this);this.a=a;this.b=a.length},current:function(){return this.a[this.b]},moveNext:function(){this.b--;return this.b>=0},reset:function(){this.b=this.a.length},$type:new $.ig.Type("ReverseArrayEnumerator$1",$.ig.$ot,[$$t.$ae.$type.specialize(0)])},true);$.ig.util.defType("IOrderedEnumerable$1:bu","Object",{$type:new $.ig.Type("IOrderedEnumerable$1",null,[$$t.$ad.$type.specialize(0),$.ig.IEnumerable.prototype.$type])},true);$.ig.util.defType("Enumerable:bz","Object",{init:function(){$.ig.$op.init.call(this)},where$1:function($tSource,a){var $self=this;var $iter=function(){return function($tSource,a){return{$state:0,$this:$self,$current:null,$b:null,$c:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=7;break;case 2:this.$b=this.$c.current();this.$state=3;break;case 3:if(a(this.$b)){this.$state=4}else{this.$state=6}break;case 4:this.$current=this.$b;this.$state=5;return true;case 5:this.$state=6;break;case 6:this.$state=7;break;case 7:if(this.$c.moveNext()){this.$state=2}else{this.$state=8}break;case 8:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}($tSource,a)};return new $.ig.GenericEnumerable$1($tSource,$iter)},where$11:function($tSource,a){var $self=this;var $iter=function(){return function($tSource,a){return{$state:0,$this:$self,$current:null,$b:0,$c:null,$d:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$b=0;this.$state=1;break;case 1:this.$d=this.$this.getEnumerator();this.$state=7;break;case 2:this.$c=this.$d.current();this.$state=3;break;case 3:if(a(this.$c,this.$b)){this.$state=4}else{this.$state=6}break;case 4:this.$current=this.$c;this.$state=5;return true;case 5:this.$state=6;break;case 6:this.$b++;this.$state=7;break;case 7:if(this.$d.moveNext()){this.$state=2}else{this.$state=8}break;case 8:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}($tSource,a)};return new $.ig.GenericEnumerable$1($tSource,$iter)},select$2:function($tSource,$tResult,a){var $self=this;var $iter=function(){return function($tSource,$tResult,a){return{$state:0,$this:$self,$current:null,$b:null,$c:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=4;break;case 2:this.$b=this.$c.current();this.$current=a(this.$b);this.$state=3;return true;case 3:this.$state=4;break;case 4:if(this.$c.moveNext()){this.$state=2}else{this.$state=5}break;case 5:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}($tSource,$tResult,a)};return new $.ig.GenericEnumerable$1($tResult,$iter)},selectMany$2:function($tSource,$tResult,a){var $self=this;var $iter=function(){return function($tSource,$tResult,a){return{$state:0,$this:$self,$current:null,$b:null,$c:null,$d:null,$e:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=8;break;case 2:this.$b=this.$c.current();this.$state=3;break;case 3:this.$e=a(this.$b).getEnumerator();this.$state=6;break;case 4:this.$d=this.$e.current();this.$current=this.$d;this.$state=5;return true;case 5:this.$state=6;break;case 6:if(this.$e.moveNext()){this.$state=4}else{this.$state=7}break;case 7:this.$state=8;break;case 8:if(this.$c.moveNext()){this.$state=2}else{this.$state=9}break;case 9:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}($tSource,$tResult,a)};return new $.ig.GenericEnumerable$1($tResult,$iter)},ofType$1:function($tResult){var $self=this;var $iter=function(){return function($tResult){return{$state:0,$this:$self,$current:null,$a:null,$b:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$state=1;break;case 1:this.$b=this.$this.getEnumerator();this.$state=7;break;case 2:this.$a=this.$b.current();this.$state=3;break;case 3:if($.ig.util.cast($tResult,this.$a)!==null){this.$state=4}else{this.$state=6}break;case 4:this.$current=this.$a;this.$state=5;return true;case 5:this.$state=6;break;case 6:this.$state=7;break;case 7:if(this.$b.moveNext()){this.$state=2}else{this.$state=8}break;case 8:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}($tResult)};return new $.ig.GenericEnumerable$1($tResult,$iter)},last$1:function($tSource){var a=$.ig.util.cast($$t.$ag.$type.specialize($tSource),this);if(a!=null){return a.item(a.count()-1)}var b=null;var d=this.getEnumerator();while(d.moveNext()){var c=d.current();b=c}return b},first$1:function($tSource){var b=this.getEnumerator();while(b.moveNext()){var a=b.current();return a}return null},firstOrDefault$1:function($tSource){var b=this.getEnumerator();while(b.moveNext()){var a=b.current();return a}return null},orderBy$2:function($tSource,$tKey,a){var $self=this;var b=new $$t.b1($tSource,$self);b.sort1(function(c,d){var e=c;var f=d;var g=a(e);var h=a(f);if($.ig.util.cast($$t.$h.$type,g)!==null){return $.ig.util.cast($$t.$h.$type,g).compareTo(h)}else{return g.toString().compareTo(h.toString())}});return b},orderByDescending$2:function($tSource,$tKey,a){var $self=this;var b=new $$t.b1($tSource,$self);b.sort1(function(c,d){var e=d;var f=c;var g=a(e);var h=a(f);if($.ig.util.cast($$t.$h.$type,g)!==null){return $.ig.util.cast($$t.$h.$type,g).compareTo(h)}else{return g.toString().compareTo(h.toString())}});return b},toList$1:function($tSource){var a=new $$t.al($tSource,1,this);return a},d:function(a,b){var $self=this;var $iter=function(){return function(a,b){return{$state:0,$this:$self,$current:null,$c:0,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=a;this.$state=5;break;case 2:this.$current=this.$c;this.$state=3;return true;case 3:this.$state=4;break;case 4:this.$c++;this.$state=5;break;case 5:if(this.$c<b){this.$state=2}else{this.$state=6}break;case 6:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}(a,b)};return new $.ig.GenericEnumerable$1($.ig.Number.prototype.$type,$iter)},concat$1:function($tSource,a){var $self=this;var $iter=function(){return function($tSource,a){return{$state:0,$this:$self,$current:null,$b:null,$c:null,$d:null,$e:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=4;break;case 2:this.$b=this.$c.current();this.$current=this.$b;this.$state=3;return true;case 3:this.$state=4;break;case 4:if(this.$c.moveNext()){this.$state=2}else{this.$state=5}break;case 5:this.$state=6;break;case 6:this.$e=a.getEnumerator();this.$state=9;break;case 7:this.$d=this.$e.current();this.$current=this.$d;this.$state=8;return true;case 8:this.$state=9;break;case 9:if(this.$e.moveNext()){this.$state=7}else{this.$state=10}break;case 10:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}($tSource,a)};return new $.ig.GenericEnumerable$1($tSource,$iter)},max:function(){var a=true;var b=0;var d=this.getEnumerator();while(d.moveNext()){var c=d.current();if(a){a=false;b=c}else{b=Math.max(b,c)}}return b},max$1:function($tSource,a){return this.select$2($tSource,$.ig.Number.prototype.$type,a).max()},min:function(){var a=true;var b=0;var d=this.getEnumerator();while(d.moveNext()){var c=d.current();if(a){a=false;b=c}else{b=Math.min(b,c)}}return b},min$1:function($tSource,a){return this.select$2($tSource,$.ig.Number.prototype.$type,a).max()},count$1:function($tSource){var a=0;var c=this.getEnumerator();while(c.moveNext()){var b=c.current();a++}return a},reverse$1:function($tSource){var $self=this;var $iter=function(){return function($tSource){return{$state:0,$this:$self,$current:null,$a:null,$b:0,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$a=new $$t.al($tSource,1,this.$this);this.$state=1;break;case 1:this.$b=this.$a.count()-1;this.$state=5;break;case 2:this.$current=this.$a.__inner[this.$b];this.$state=3;return true;case 3:this.$state=4;break;case 4:this.$b--;this.$state=5;break;case 5:if(this.$b>0){this.$state=2}else{this.$state=6}break;case 6:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}($tSource)};return new $.ig.GenericEnumerable$1($tSource,$iter)},cast$1:function($tResult){if(this==null){throw new $$t.ca("source")}var a=$.ig.util.cast($$t.$ad.$type.specialize($tResult),this);if(a!=null){return a}var b=new $$t.al($tResult,0);var d=this.getEnumerator();while(d.moveNext()){var c=d.current();if($.ig.util.cast($tResult,c)!==null){b.add1(c)}else{b.add1(null)}}return b},take$1:function($tSource,a){var $self=this;var $iter=function(){return function($tSource,a){return{$state:0,$this:$self,$current:null,$b:null,$c:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=9;break;case 2:this.$b=this.$c.current();this.$state=3;break;case 3:if(a>0){this.$state=4}else{this.$state=6}break;case 4:a--;this.$current=this.$b;this.$state=5;return true;case 5:this.$state=8;break;case 6:this.$state=-2;return false;case 7:this.$state=8;break;case 8:this.$state=9;break;case 9:if(this.$c.moveNext()){this.$state=2}else{this.$state=10}break;case 10:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}($tSource,a)};return new $.ig.GenericEnumerable$1($tSource,$iter)},skip$1:function($tSource,a){var $self=this;var $iter=function(){return function($tSource,a){return{$state:0,$this:$self,$current:null,$b:null,$c:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=8;break;case 2:this.$b=this.$c.current();this.$state=3;break;case 3:if(a<=0){this.$state=4}else{this.$state=6}break;case 4:this.$current=this.$b;this.$state=5;return true;case 5:this.$state=7;break;case 6:a--;this.$state=7;break;case 7:this.$state=8;break;case 8:if(this.$c.moveNext()){this.$state=2}else{this.$state=9}break;case 9:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}($tSource,a)};return new $.ig.GenericEnumerable$1($tSource,$iter)},any$1:function($tSource){var b=this.getEnumerator();while(b.moveNext()){var a=b.current();return true}return false},contains$1:function($tSource,value_){var a=this.getEnumerator();while(a.moveNext()){var item_=a.current();if(item_===value_){return true}}return false},union$1:function($tSource,a){return null},toArray$1:function($tSource){var a=new $$t.al($tSource,1,this);return a.asArrayList()},elementAt$1:function($tSource,a){var b=$.ig.util.cast($$t.$ag.$type.specialize($tSource),this);if(b!=null){return b.item(a)}return this.skip$1($tSource,a).first$1($tSource)},sum:function(){var a=0;var c=this.getEnumerator();while(c.moveNext()){var b=c.current();a+=b}return a},sum$1:function($tSource,a){return this.select$2($tSource,Number,a).sum()},$type:new $.ig.Type("Enumerable",$.ig.$ot)},true);$.ig.util.defType("SortedList$1:b1","List$1",{$tElement:null,init:function($tElement,a){this.$tElement=$tElement;this.$type=this.$type.specialize(this.$tElement);$$t.$al.init1.call(this,this.$tElement,1,a)},getEnumerator:function(){return $$t.$al.getEnumerator.call(this)},$type:new $.ig.Type("SortedList$1",$$t.$al.$type.specialize(0),[$$t.$bu.$type.specialize(0)])},true);$.ig.util.defType("ArgumentException:co","Error",{init:function(initNumber,a){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}$$t.$a3.init1.call(this,1,a)},init1:function(initNumber,a,b){$$t.$a3.init1.call(this,1,a)},$type:new $.ig.Type("ArgumentException",$$t.$a3.$type)},true);$.ig.util.defType("ArgumentNullException:ca","Error",{init:function(a){$$t.$a3.init1.call(this,1,a+" cannot be null.")},$type:new $.ig.Type("ArgumentNullException",$$t.$a3.$type)},true);$.ig.util.defType("ArgumentOutOfRangeException:cp","ArgumentException",{init:function(initNumber,a){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}$$t.$co.init.call(this,a+" is out of range.")},init1:function(initNumber,a,b){$$t.$co.init.call(this,a)},$type:new $.ig.Type("ArgumentOutOfRangeException",$$t.$co.$type)},true);$.ig.util.defType("Debug:cw","Object",{init:function(){$.ig.$op.init.call(this)},b:function(a,b){},c:function(a){},a:function(a){},$type:new $.ig.Type("Debug",$.ig.$ot)},true);$.ig.util.defType("StringBuilder:d1","Object",{_internal:null,internal:function(value){if(arguments.length===1){this._internal=value;return value}else{return this._internal}},init:function(){$.ig.$op.init.call(this);this._internal=[]},d:function(str_){this._internal.push(str_);return this},e:function(a){var str_=a.b();this._internal.push(str_);return this},c:function(chr_){this._internal.push(chr_);return this},f:function(str_){this._internal.push(str_+String.fromCharCode(10));return this},g:function(index_,chr_){this._internal.splice(index_,0,chr_);return this},h:function(index_,str_){this._internal.splice(index_,0,str_);return this},i:function(startIndex_,length_){this._internal.splice(startIndex_,length_);return this},b:function(){return this._internal.join("")},$type:new $.ig.Type("StringBuilder",$.ig.$ot)},true);$.ig.util.defType("UIElementCollection:d9","ObservableCollection$1",{u:null,init:function(a){$$t.$bd.init.call(this,$$t.$d7.$type);this.u=a},s:function(a){$$t.$bd.s.call(this,a);if(a.oldItems()!=null){var c=a.oldItems().getEnumerator();while(c.moveNext()){var b=c.current();b.u(null)}}if(a.newItems()!=null){var e=a.newItems().getEnumerator();while(e.moveNext()){var d=e.current();d.u(this.u)}}},h:function(){var b=this.getEnumerator();while(b.moveNext()){var a=b.current();a.u(null)}$$t.$bd.h.call(this)},$type:new $.ig.Type("UIElementCollection",$$t.$bd.$type.specialize($$t.$d7.$type))},true);$.ig.util.defType("Panel:ep","FrameworkElement",{init:function(){$$t.$ea.init.call(this);this.y(new $$t.d9(this))},_y:null,y:function(value){if(arguments.length===1){this._y=value;return value}else{return this._y}},$type:new $.ig.Type("Panel",$$t.$ea.$type)},true);$.ig.util.defType("Image:er","FrameworkElement",{init:function(){$$t.$ea.init.call(this)},_z:null,z:function(value){if(arguments.length===1){this._z=value;return value}else{return this._z}},_y:false,y:function(value){if(arguments.length===1){this._y=value;return value}else{return this._y}},$type:new $.ig.Type("Image",$$t.$ea.$type)},true);$.ig.util.defType("MouseEventArgs:ey","EventArgs",{init:function(){$$t.$a9.init.call(this)},_position:null,position:function(value){if(arguments.length===1){this._position=value;return value}else{return this._position}},_originalSource:null,originalSource:function(value){if(arguments.length===1){this._originalSource=value;return value}else{return this._originalSource}},getPosition:function(a){return this.position()},$type:new $.ig.Type("MouseEventArgs",$$t.$a9.$type)},true);$$t.$ex.none=0;$$t.$ex.alt=1;$$t.$ex.control=2;$$t.$ex.shift=4;$$t.$ex.windows=8;$$t.$ex.apple=8;$$t.$ew.none=0;$$t.$ew.back=1;$$t.$ew.tab=2;$$t.$ew.enter=3;$$t.$ew.shift=4;$$t.$ew.ctrl=5;$$t.$ew.alt=6;$$t.$ew.capsLock=7;$$t.$ew.escape=8;$$t.$ew.space=9;$$t.$ew.pageUp=10;$$t.$ew.pageDown=11;$$t.$ew.end=12;$$t.$ew.home=13;$$t.$ew.left=14;$$t.$ew.up=15;$$t.$ew.right=16;$$t.$ew.down=17;$$t.$ew.insert=18;$$t.$ew.del=19;$$t.$ew.d0=20;$$t.$ew.d1=21;$$t.$ew.d2=22;$$t.$ew.d3=23;$$t.$ew.d4=24;$$t.$ew.d5=25;$$t.$ew.d6=26;$$t.$ew.d7=27;$$t.$ew.d8=28;$$t.$ew.d9=29;$$t.$ew.a=30;$$t.$ew.b=31;$$t.$ew.c=32;$$t.$ew.d=33;$$t.$ew.e=34;$$t.$ew.f=35;$$t.$ew.g=36;$$t.$ew.h=37;$$t.$ew.i=38;$$t.$ew.j=39;$$t.$ew.k=40;$$t.$ew.l=41;$$t.$ew.m=42;$$t.$ew.n=43;$$t.$ew.o=44;$$t.$ew.p=45;$$t.$ew.q=46;$$t.$ew.r=47;$$t.$ew.s=48;$$t.$ew.t=49;$$t.$ew.u=50;$$t.$ew.v=51;$$t.$ew.w=52;$$t.$ew.x=53;$$t.$ew.y=54;$$t.$ew.z=55;$$t.$ew.f1=56;$$t.$ew.f2=57;$$t.$ew.f3=58;$$t.$ew.f4=59;$$t.$ew.f5=60;$$t.$ew.f6=61;$$t.$ew.f7=62;$$t.$ew.f8=63;$$t.$ew.f9=64;$$t.$ew.f10=65;$$t.$ew.f11=66;$$t.$ew.f12=67;$$t.$ew.numPad0=68;$$t.$ew.numPad1=69;$$t.$ew.numPad2=70;$$t.$ew.numPad3=71;$$t.$ew.numPad4=72;$$t.$ew.numPad5=73;$$t.$ew.numPad6=74;$$t.$ew.numPad7=75;$$t.$ew.numPad8=76;$$t.$ew.numPad9=77;$$t.$ew.multiply=78;$$t.$ew.add=79;$$t.$ew.subtract=80;$$t.$ew.decimal=81;$$t.$ew.divide=82;$$t.$ew.unknown=255;$.ig.util.extCopy($.ig.Queryable,[[[$.ig.SortedList$1,$.ig.IGrouping$2,$.ig.ICollection$1,$.ig.IEnumerable$1,$.ig.IList$1,$.ig.List$1,$.ig.IEnumerable,$.ig.ICollection,$.ig.IList,$.ig.Array,$.ig.Dictionary,$.ig.XmlNodeList,$.ig.XmlNamedNodeMap,$.ig.AbstractEnumerable,$.ig.IDictionary$2,$.ig.Dictionary$2,$.ig.GenericEnumerable$1,$.ig.ReadOnlyCollection$1,$.ig.Stack$1,$.ig.IOrderedEnumerable$1],["asQueryable"]]]);$.ig.util.extCopy($.ig.Enumerable,[[[$.ig.SortedList$1,$.ig.IGrouping$2,$.ig.ICollection$1,$.ig.IEnumerable$1,$.ig.IList$1,$.ig.List$1,$.ig.IDictionary$2,$.ig.Dictionary$2,$.ig.GenericEnumerable$1,$.ig.ReadOnlyCollection$1,$.ig.Stack$1,$.ig.IOrderedEnumerable$1],["where$1","where$11","select$2","selectMany$2","last$1","first$1","firstOrDefault$1","orderBy$2","orderByDescending$2","toList$1","concat$1","max","max$1","min","min$1","count$1","reverse$1","take$1","skip$1","any$1","contains$1","union$1","toArray$1","elementAt$1","sum","sum$1"]],[[$.ig.SortedList$1,$.ig.IGrouping$2,$.ig.ICollection$1,$.ig.IEnumerable$1,$.ig.IList$1,$.ig.List$1,$.ig.IEnumerable,$.ig.ICollection,$.ig.IList,$.ig.Array,$.ig.Dictionary,$.ig.XmlNodeList,$.ig.XmlNamedNodeMap,$.ig.AbstractEnumerable,$.ig.IDictionary$2,$.ig.Dictionary$2,$.ig.GenericEnumerable$1,$.ig.ReadOnlyCollection$1,$.ig.Stack$1,$.ig.IOrderedEnumerable$1],["ofType$1","cast$1"]]])})(jQuery);$.ig=$.ig||{};(function($){var $$t={};$.ig.$currDefinitions=$$t;$.ig.util.bulkDefine(["BrushCollection:a","ObservableCollection$1:b","List$1:c","Object:d","Type:e","Boolean:f","ValueType:g","Void:h","String:i","IComparable:j","Number:k","Number:l","Single:m","Number:n","String:o","Array:p","RegExp:q","RuntimeTypeHandle:r","MethodInfo:s","MethodBase:t","MemberInfo:u","ParameterInfo:v","TypeCode:w","Enum:x","ConstructorInfo:y","IList$1:z","ICollection$1:aa","IEnumerable$1:ab","IEnumerable:ac","IEnumerator:ad","IEnumerator$1:ae","IArrayList:af","Array:ag","ICollection:ah","CompareCallback:ai","MulticastDelegate:aj","IntPtr:ak","IList:al","IDisposable:am","IArray:an","Script:ao","Date:ap","Date:aq","Number:ar","Func$3:as","Action$1:at","INotifyCollectionChanged:au","NotifyCollectionChangedEventHandler:av","NotifyCollectionChangedEventArgs:aw","EventArgs:ax","NotifyCollectionChangedAction:ay","INotifyPropertyChanged:az","PropertyChangedEventHandler:a0","PropertyChangedEventArgs:a1","Delegate:a2","InterpolationMode:a3","Brush:a4","Color:a5","Number:a6","Math:a7","Number:a8","Number:a9","Number:ba","Number:bb","Number:bc","Number:bd","Random:be","MathUtil:bf","RuntimeHelpers:bg","RuntimeFieldHandle:bh","ColorUtil:bi","EventProxy:bj","Rect:bk","Size:bl","Point:bm","ModifierKeys:bn","Func$2:bo","MouseWheelHandler:bp","GestureHandler:bq","ContactHandler:br","TouchHandler:bs","MouseOverHandler:bt","MouseHandler:bu","KeyHandler:bv","Key:bw","DOMEventProxy:bx","JQueryObject:by","Element:bz","ElementAttributeCollection:b0","ElementCollection:b1","WebStyle:b2","ElementNodeType:b3","Document:b4","EventListener:b5","IElementEventHandler:b6","ElementEventHandler:b7","ElementAttribute:b8","JQueryPosition:b9","JQueryCallback:ca","JQueryEvent:cb","JQueryUICallback:cc","MSGesture:cd","JQuery:ce","JQueryDeferred:cf","JQueryPromise:cg","Action:ch","Callback:ci","window:cj","MouseEventArgs:ck","UIElement:cl","DependencyObject:cm","Dictionary:cn","DependencyProperty:co","PropertyMetadata:cp","PropertyChangedCallback:cq","DependencyPropertyChangedEventArgs:cr","DependencyPropertiesCollection:cs","UnsetValue:ct","Binding:cu","PropertyPath:cv","Transform:cw","EventHandler$1:c5","NotImplementedException:da","Error:db","Dictionary$2:dh","IDictionary$2:di","IDictionary:dj","IEqualityComparer$1:dk","KeyValuePair$2:dl","ArgumentException:dp","IRenderer:dr","Rectangle:ds","Shape:dt","FrameworkElement:du","Visibility:dv","Style:dw","DoubleCollection:dx","Path:dy","Geometry:dz","GeometryType:d0","TextBlock:d1","Polygon:d2","PointCollection:d3","Polyline:d4","DataTemplateRenderInfo:d5","DataTemplatePassInfo:d6","ContentControl:d7","Control:d8","Thickness:d9","HorizontalAlignment:ea","VerticalAlignment:eb","DataTemplate:ec","DataTemplateRenderHandler:ed","DataTemplateMeasureHandler:ee","DataTemplateMeasureInfo:ef","DataTemplatePassHandler:eg","Line:eh","RenderingContext:em","CanvasViewRenderer:en","CanvasContext2D:eo","CanvasContext:ep","TextMetrics:eq","ImageData:er","CanvasElement:es","Gradient:et","LinearGradientBrush:eu","GradientStop:ev","GeometryGroup:ew","GeometryCollection:ex","FillRule:ey","PathGeometry:ez","PathFigureCollection:e0","LineGeometry:e1","RectangleGeometry:e2","EllipseGeometry:e3","ArcSegment:e4","PathSegment:e5","PathSegmentType:e6","SweepDirection:e7","PathFigure:e8","PathSegmentCollection:e9","LineSegment:fa","PolyLineSegment:fb","BezierSegment:fc","PolyBezierSegment:fd","GeometryUtil:fe","Tuple$2:ff","TransformGroup:fg","TransformCollection:fh","TranslateTransform:fi","RotateTransform:fj","ScaleTransform:fk","DivElement:fv","DoubleAnimator:fw","EasingFunctionHandler:fx","ImageElement:fy","ArgumentNullException:f0","StackPool$1:f5","Stack$1:f6","ReverseArrayEnumerator$1:f7","Func$1:f8","Image:f9","Debug:gf","StringBuilder:gj","BrushUtil:go","CssHelper:gp","CssGradientUtil:gq","FontUtil:gy","FontInfo:gz","Panel:g1","UIElementCollection:g2","Enumerable:g3","IOrderedEnumerable$1:g4","SortedList$1:g5","IVisualData:hq","PrimitiveVisualDataList:hr","PrimitiveVisualData:hs","PrimitiveAppearanceData:ht","BrushAppearanceData:hu","AppearanceHelper:hv","LinearGradientBrushAppearanceData:hw","GradientStopAppearanceData:hx","SolidBrushAppearanceData:hy","EllipseGeometryData:hz","GeometryData:h0","GetPointsSettings:h1","RectangleGeometryData:h2","LineGeometryData:h3","PathGeometryData:h4","PathFigureData:h5","LineSegmentData:h6","SegmentData:h7","PolylineSegmentData:h8","ArcSegmentData:h9","PolyBezierSegmentData:ia","LabelAppearanceData:ib","ShapeTags:ic","PathVisualData:ij","AbstractEnumerable:ik","AbstractEnumerator:il","GenericEnumerable$1:im","GenericEnumerator$1:io"]);$.ig.util.defType("InterpolationMode:a3","Enum",{init:function(){$.ig.$ep.init.call(this)},$type:new $.ig.Type("InterpolationMode",$.ig.$ep.$type)},true);$.ig.util.defType("BrushCollection:a","ObservableCollection$1",{init:function(){$$t.$b.init.call(this,$$t.$a4.$type);this.u=0},selectRandom:function(){return this.item($$t.$a.w.b(this.count()))},interpolateRandom:function(){return this.getInterpolatedBrush($$t.$a.w.a()*(this.count()-1))},interpolationMode:function(a){if(arguments.length===1){if(this.u!=a){this.u=a;this.s(new $$t.aw(0,4))}return a}else{return this.u}},u:null,item:function(a,b){if(arguments.length===2){$$t.$b.item.call(this,a,b);return b}else{if(a<0||a>=this.count()){return null}return $$t.$b.item.call(this,a)}},getInterpolatedBrush:function(a){if(isNaN(a)){return null}a=$$t.$bf.c(a,0,this.count()-1);var b=Math.floor(a);if(b==a){return this.item(b)}return this.y(a-b,this.item(b),this.item(b+1),this.interpolationMode())},y:function(a,b,c,d){var e=b.color();var f=c.color();var g=e.getInterpolation(a,f,d);var h=new $$t.a4;h.color(g);return h},$type:new $.ig.Type("BrushCollection",$$t.$b.$type.specialize($$t.$a4.$type))},true);$.ig.util.defType("EventProxy:bj","Object",{init:function(){$.ig.$op.init.call(this);this.u=false},onMouseWheel:null,onPinchStarted:null,onPinchDelta:null,onGestureCompleted:null,onContactStarted:null,onDragStarted:null,onContactMoved:null,onDragDelta:null,onContactCompleted:null,onDragCompleted:null,onMouseLeave:null,onMouseOver:null,onMouseEnter:null,onMouseDown:null,onMouseUp:null,onDoubleTap:null,onHold:null,onKeyDown:null,onKeyUp:null,_az:null,az:function(value){if(arguments.length===1){this._az=value;return value}else{return this._az}},_ay:null,ay:function(value){if(arguments.length===1){this._ay=value;return value}else{return this._ay}},_aa:false,aa:function(value){if(arguments.length===1){this._aa=value;return value}else{return this._aa}},_ab:null,ab:function(value){if(arguments.length===1){this._ab=value;return value}else{return this._ab}},d:function(){},af:function(){},z:function(a,b){if(this.onMouseWheel!=null&&!this.w()){return this.onMouseWheel(a,b)}return false},aw:function(a,b){if(this.onPinchStarted!=null&&!this.w()){this.onPinchStarted(a,b)}},av:function(a,b){if(this.onPinchDelta!=null&&!this.w()){this.onPinchDelta(a,b)}},ao:function(a,b){if(this.onGestureCompleted!=null&&!this.w()){this.onGestureCompleted(a,b)}},aj:function(a,b){if(this.onContactStarted!=null&&!this.w()){this.onContactStarted(a,b)
}},an:function(a){if(this.onDragStarted!=null&&!this.w()){this.onDragStarted(a)}},ai:function(a,b){if(this.onContactMoved!=null&&!this.w()){this.onContactMoved(a,b)}},am:function(a){if(this.onDragDelta!=null&&!this.w()){this.onDragDelta(a)}},ah:function(a,b){if(this.onContactCompleted!=null&&!this.w()){this.onContactCompleted(a,b)}},al:function(a){if(this.onDragCompleted!=null&&!this.w()){this.onDragCompleted(a)}},as:function(a){if(this.onMouseLeave!=null&&!this.w()){this.onMouseLeave(a)}},at:function(a,b,c){if(this.onMouseOver!=null&&!this.w()){this.onMouseOver(a,b,c)}},ar:function(a){if(this.onMouseEnter!=null&&!this.w()){this.onMouseEnter(a)}},aq:function(a){if(this.onMouseDown!=null&&!this.w()){this.onMouseDown(a)}},au:function(a){if(this.onMouseUp!=null&&!this.w()){this.onMouseUp(a)}},x:function(a){if(this.onKeyDown!=null&&!this.w()){return this.onKeyDown(a)}return false},y:function(a){if(this.onKeyUp!=null&&!this.w()){return this.onKeyUp(a)}return false},ak:function(a){if(this.onDoubleTap!=null&&!this.w()){this.onDoubleTap(a)}},ap:function(a){if(this.onHold!=null&&!this.w()){this.onHold(a)}},ad:function(){},u:false,w:function(a){if(arguments.length===1){this.u=a;this.ag();return a}else{return this.u}},_v:false,v:function(value){if(arguments.length===1){this._v=value;return value}else{return this._v}},_ac:null,ac:function(value){if(arguments.length===1){this._ac=value;return value}else{return this._ac}},ag:function(){},ae:function(a,b){},ax:function(a,b){},$type:new $.ig.Type("EventProxy",$.ig.$ot)},true);$.ig.util.defType("DOMEventProxy:bx","EventProxy",{_bq:null,bq:function(value){if(arguments.length===1){this._bq=value;return value}else{return this._bq}},d:function(){var a=new $$t.bx(this.bq());a.v(this.v());return a},cs:function(a){if(!this.w()){a.preventDefault()}},bn:0,bx:null,a2:false,_bj:null,bj:function(value){if(arguments.length===1){this._bj=value;return value}else{return this._bj}},init:function(a){var $self=this;this.bn=0;this.bx="";this.a2=false;this.a4=false;this.bh=0;this.bi=0;this.bb=0;this.bc=0;this.bl=0;this.bg=1;this.a5=false;this.bk=-1;this.bo=-1;this.c2=null;this.be=0;this.bf=0;this.bd=5;this.a0=false;this.br=null;this.a3=false;this.a1=false;$$t.$bj.init.call(this);this.ac(function(b){return true});this.v(false);$$t.$bx.bm++;this.bn=$$t.$bx.bm;this.bx=".DOMProxy"+this.bn.toString();this.ay(0);this.bq(a);$$t.$bx.a8=false;try{$$t.$bx.a8=window.navigator.msPointerEnabled&&MSGesture!==undefined}catch(b){}$$t.$bx.a9=false;try{$$t.$bx.a9=window.navigator.pointerEnabled}catch(c){}$$t.$bx.bw=this.bv();this.ae(this.bq(),"");this.ab(function(d){return true})},ae:function(a,b){var c=a;var d=this.bx+b;if(!$$t.$bx.a8){c.bind("mousemove"+d,this.b7.runOn(this));c.bind("mouseleave"+d,this.b6.runOn(this));c.bind("mousedown"+d,this.b5.runOn(this));c.bind("mouseup"+d,this.b9.runOn(this));$(window).bind("mouseup"+d,this.c0.runOn(this))}c.bind("keydown"+d,this.b2.runOn(this));c.bind("keyup"+d,this.b4.runOn(this));if($$t.$bx.a8){var source_=this.bq()[0];$$t.$bx.cq(source_);var e=this.bq()[0];var f=new MSGesture;f.target=e;this.bj(f);c.bind("MSGestureStart"+d,this.b1.runOn(this));c.bind("MSGestureChange"+d,this.bz.runOn(this));c.bind("MSGestureEnd"+d,this.b0.runOn(this));if($$t.$bx.a9){c.bind("pointerdown"+d,this.cc.runOn(this));c.bind("pointerup"+d,this.cf.runOn(this));c.bind("pointercancel"+d,this.cb.runOn(this));c.bind("pointermove"+d,this.cd.runOn(this));c.bind("pointerout"+d,this.ce.runOn(this));c.bind("lostpointercapture"+d,this.ca.runOn(this))}else{c.bind("MSPointerDown"+d,this.cc.runOn(this));c.bind("MSPointerUp"+d,this.cf.runOn(this));c.bind("MSPointerCancel"+d,this.cb.runOn(this));c.bind("MSPointerMove"+d,this.cd.runOn(this));c.bind("MSPointerOut"+d,this.ce.runOn(this));c.bind("MSLostPointerCapture"+d,this.ca.runOn(this))}}c.bind("DOMMouseScroll"+d,this.b8.runOn(this));c.bind("mousewheel"+d,this.b8.runOn(this));c.bind("gesturestart"+d,this.b1.runOn(this));c.bind("gesturechange"+d,this.bz.runOn(this));c.bind("gestureend"+d,this.b0.runOn(this));c.bind("touchstart"+d,this.ci.runOn(this));c.bind("touchmove"+d,this.ch.runOn(this));c.bind("touchend"+d,this.cg.runOn(this))},a4:false,cn:function(){if($$t.$bx.a8&&!this.a4){var source_=this.bq()[0];$$t.$bx.cq(source_)}},cq:function(source_){if($$t.$bx.a9){source_.style.touchAction="none"}else{source_.style.msTouchAction="none"}source_.style.msUserSelect="none"},cj:function(source_){if($$t.$bx.a9){source_.style.touchAction="auto"}else{source_.style.msTouchAction="auto"}source_.style.msUserSelect="auto"},ck:function(){if($$t.$bx.a8&&this.a4){var source_=this.bq()[0];$$t.$bx.cj(source_)}},ag:function(){$$t.$bj.ag.call(this);if(!this.w()){this.cn()}else{this.ck()}},bv:function(){var ver_=-1;var matchIE_=/Trident\/([\d.]+)/;if(matchIE_.exec(navigator.userAgent)!=null){ver_=parseFloat(RegExp.$1)}return ver_},bh:0,bi:0,bb:0,bc:0,bl:0,_bu:null,bu:function(value){if(arguments.length===1){this._bu=value;return value}else{return this._bu}},_bt:null,bt:function(value){if(arguments.length===1){this._bt=value;return value}else{return this._bt}},cp:function(e_){var a=$$t.$bx.bw>=6;var oe_=e_.originalEvent;if((typeof e_.pageX=="undefined"||a)&&oe_.clientX!=null){var od_=e_.target.ownerDocument;var ed_=od_?od_:document;var doc_=ed_.documentElement;var body_=ed_.body;var clientX_=oe_.clientX;var clientY_=oe_.clientY;var scrollLeft_=doc_&&doc_.scrollLeft||body_&&body_.scrollLeft||0;var scrollTop_=doc_&&doc_.scrollTop||body_&&body_.scrollTop||0;var clientLeft_=doc_&&doc_.clientLeft||body_&&body_.clientLeft||0;var clientTop_=doc_&&doc_.clientTop||body_&&body_.clientTop||0;e_.pageX=clientX_+(scrollLeft_-clientLeft_);e_.pageY=clientY_+(scrollTop_-clientTop_)}},c3:function(a){var b=$$t.$bx.bw>=6;var source_=a[0];var d_=source_.ownerDocument;var doc_=d_?d_.documentElement:null;var z_=doc_?doc_.msContentZoomFactor:null;var body_=doc_.body;if(z_&&z_>1||b){var rect_=source_.getBoundingClientRect();var x_=rect_.left;var y_=rect_.top;var scrollLeft_=doc_&&doc_.scrollLeft||body_&&body_.scrollLeft||0;var scrollTop_=doc_&&doc_.scrollTop||body_&&body_.scrollTop||0;var clientLeft_=doc_&&doc_.clientLeft||body_&&body_.clientLeft||0;var clientTop_=doc_&&doc_.clientTop||body_&&body_.clientTop||0;var c=x_+scrollLeft_-clientLeft_;var d=y_+scrollTop_-clientTop_;return new $$t.bk(0,c,d,0,0)}else{var e=a.offset();return new $$t.bk(0,e.left,e.top,0,0)}},cy:function(a){$$t.$bx.cp(a);var b=$$t.$bx.c3(this.bq());this.bh=a.pageX-b.left();this.bi=a.pageY-b.top();this.bb=this.bh-this.az().left();this.bc=this.bi-this.az().top();this.bu({__x:this.bh,__y:this.bi,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});this.bt({__x:this.bb,__y:this.bc,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName})},cz:function(e_){$$t.$bx.cp(e_);if($$t.$bx.a8){var a=e_.pageX;var b=e_.pageY;var c=$$t.$bx.c3(this.bq());this.bh=a-c.left();this.bi=b-c.top()}else{this.bl=0;if(!e_.originalEvent.targetTouches||e_.originalEvent.targetTouches.length<1){return}this.bl=e_.originalEvent.targetTouches.length;var d=e_.originalEvent.targetTouches[0].pageX;var e=e_.originalEvent.targetTouches[0].pageY;var f=$$t.$bx.c3(this.bq());this.bh=d-f.left();this.bi=e-f.top()}this.bb=this.bh-this.az().left();this.bc=this.bi-this.az().top();this.bu({__x:this.bh,__y:this.bi,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});this.bt({__x:this.bb,__y:this.bc,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName})},b8:function(e_){this.cx(e_);if(this.ab()(this.bu())){var delta_=0;if(e_.wheelDelta){delta_=e_.wheelDelta/120}if(e_.originalEvent&&e_.originalEvent.wheelDelta){delta_=e_.originalEvent.wheelDelta/120}if(e_.detail){delta_=-e_.detail/3}if(e_.originalEvent&&e_.originalEvent.detail){delta_=-e_.originalEvent.detail/3}delta_=delta_/10;var a=this.z(this.bt(),delta_);if(a){this.cs(e_)}}},bg:0,cf:function(e_){var a=this.a6(e_);if(a){this.bl--;if(this.bl<0){this.bl=0}}if(this.bl<2&&this.a2&&a){this.a2=false;var b=e_.originalEvent.scale;this.ao(this.bt(),b)}else{if(a){this.cg(e_)}else{this.b9(e_)}}},ca:function(e_){var a=this.a6(e_);if(a){this.bl--;if(this.bl<0){this.bl=0}}if(this.bl<2&&this.a2&&a){this.a2=false;var b=e_.originalEvent.scale;this.ao(this.bt(),b)}},cb:function(e_){var a=this.a6(e_);if(a){this.bl--;if(this.bl<0){this.bl=0}}if(this.bl<2&&this.a2&&a){this.a2=false;var b=e_.originalEvent.scale;this.ao(this.bt(),b)}},cc:function(e_){var a=this.a6(e_);if(this.bj()!=null&&a){this.bl++;this.bj().addPointer(e_.originalEvent.pointerId)}var eventSource_=this.bq()[0];if($$t.$bx.a9){eventSource_.setPointerCapture(e_.originalEvent.pointerId)}else{eventSource_.msSetPointerCapture(e_.originalEvent.pointerId)}if(this.bl>1&&!this.a2&&a){this.a2=true;this.cz(e_);var b=e_.originalEvent.scale;this.aw(this.bt(),b)}else{if(a){this.ci(e_)}else{this.b5(e_)}}},a6:function(e_){var pointerEvent_=e_.originalEvent;var a=false;if($$t.$bx.a9){a=pointerEvent_.pointerType=="touch"}else{a=pointerEvent_.pointerType==pointerEvent_.MSPOINTER_TYPE_TOUCH}return a},cd:function(e_){var a=this.a6(e_);if(this.a2){return}if(a){this.ch(e_)}else{this.b7(e_)}},ce:function(e_){var a=this.a6(e_);if(this.a2){return}if(a){}else{this.b6(e_)}},b1:function(e_){this.a7(true);this.cx(e_);this.cz(e_);this.cm();if(this.ab()(this.bu())){this.cs(e_);if($$t.$bx.a8){this.bg=1}if($$t.$bx.a8&&this.bl<2){return}var a=e_.originalEvent.scale;this.aw(this.bt(),a)}},bz:function(e_){this.a7(true);this.cx(e_);this.cz(e_);if(this.ab()(this.bu())){this.cs(e_);if($$t.$bx.a8&&this.bl<2){return}var a=e_.originalEvent.scale;this.av(this.bt(),a)}},b0:function(e_){this.cs(e_);var a=e_.originalEvent.scale;this.a7(false);this.cx(e_);this.cz(e_);if(!$$t.$bx.a8||this.a2){this.ao(this.bt(),a)}},a5:false,bs:null,ci:function(e_){this.a7(true);this.cx(e_);this.cz(e_);this.bs=this.bt();if(this.ab()(this.bu())){if(!this.v()){this.cs(e_)}else{this.a5=true}this.at(this.bu(),false,true);this.aq(this.bu());this.aj(this.bt(),true);this.cu()}},bk:0,bo:0,c2:null,be:0,bf:0,bd:0,cu:function(){if(this.bk==-1){this.be=this.bu().__x;this.bf=this.bu().__y;this.bk=window.setTimeout(this.cr.runOn(this),1500)}},cm:function(){if(Math.abs(this.be-this.bu().__x)>this.bd||Math.abs(this.bf-this.bu().__y)>this.bd){this.cv()}},cv:function(){if(this.bk!=-1){window.clearTimeout(this.bk);this.bk=-1}},cr:function(){this.bk=-1;if(this.a5){this.a5=false;this.by()}this.ap(this.bt())},a0:false,br:null,a3:false,ch:function(a){this.a7(true);this.cx(a);this.cz(a);if(this.a5){if(this.ab()(this.bu())&&this.ba()){this.a5=false;this.by()}}this.cm();this.cw();if(this.ab()(this.bu())&&this.bl==1&&!this.a5){this.cs(a);if(!this.a0){this.a0=true;this.br=this.bt();this.an(this.br)}else{this.at(this.bu(),true,true);this.ai(this.bt(),true);this.am(this.bt())}}},ba:function(){var a={__x:this.bs.__x-this.bt().__x,__y:this.bs.__y-this.bt().__y,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName};if(Math.abs(a.__x)<2&&Math.abs(a.__y)<2){return false}if(Math.abs(a.__x)>Math.abs(a.__y)){a.__y=0}if(Math.abs(a.__y)>Math.abs(a.__x)){a.__x=0}return this.ac()(a)},cg:function(a){this.a7(false);this.cx(a);this.cz(a);this.cv();if(this.a5){this.a5=false;this.by()}this.cs(a);this.at(this.bu(),false,true);this.au(this.bu());if(this.bl==0){this.ct(this.bu());this.co()}if(this.a0&&this.bl==0){this.a0=false;this.br=null;this.al(this.bt());this.co()}this.ah(this.bt(),true)},co:function(){if(this.a3){if(this.bo==-1){this.bo=window.setTimeout(this.cl.runOn(this),500)}else{window.clearTimeout(this.bo);this.bo=-1;this.bo=window.setTimeout(this.cl.runOn(this),500)}}},by:function(){this.a3=true;if(this.bo!=-1){window.clearTimeout(this.bo);this.bo=-1}},cl:function(){this.a3=false},ct:function(a){if(this.c2==null){this.c2=new $$t.bk(0,a.__x-50,a.__y-50,100,100);window.setTimeout(this.cw.runOn(this),500)}else{if(a.__x>=this.c2.x()&&a.__x<=this.c2.right()&&a.__y>=this.c2.y()&&a.__y<=this.c2.bottom()){this.cw();this.ak(a)}}},cw:function(){this.c2=null},_a7:false,a7:function(value){if(arguments.length===1){this._a7=value;return value}else{return this._a7}},b6:function(a){if(this.a5||this.a3){return}this.cy(a);if(this.a7()){this.a7(false);this.as(this.bt())}},b7:function(a){if(this.a5||this.a3){return}this.cy(a);this.cx(a);var b=new $$t.ck;b.position(this.bu());if(this.ab()(this.bu())){if(!this.a7()){this.a7(true);this.ar(this.bu())}this.at(this.bu(),true,false);this.ai(this.bt(),false)}else if(this.a7()){this.b6(a)}},a1:false,b5:function(a){if(this.a5||this.a3){return}this.bq().focus();this.cy(a);this.cx(a);if(this.ab()(this.bu())){this.a1=true;this.aq(this.bu());this.aj(this.bt(),false);this.cs(a)}},c0:function(a){if(this.a5||this.a3){return}if(this.a1){this.b9(a)}},b9:function(a){if(this.a5||this.a3){return}this.cx(a);this.a1=false;this.au(this.bu());this.ah(this.bt(),false);this.cs(a)},b2:function(a){this.b3(a,true)},b4:function(a){this.b3(a,false)},c1:function(a){var b=0;switch(a.which){case 33:b=10;break;case 34:b=11;break;case 36:b=13;break;case 37:b=14;break;case 38:b=15;break;case 39:b=16;break;case 40:b=17;break;case 9:b=2;break;case 32:b=9;break;case 13:b=3;break;case 27:b=8;break;case 16:b=4;break;case 17:b=5;break;case 18:b=6;break;default:if(112<=a.which&&a.which<=123){b=56+a.which-112}break}return b},b3:function(a,b){var c=$$t.$bx.c1(a);var d=c!=0;this.cx(a);if(d&&this.ab()(this.bu())){var e=false;if(b){e=this.x(c)}else{e=this.y(c)}if(e){this.cs(a)}}},cx:function(a){this.ay(0);if(a.shiftKey){this.ay(this.ay()|4)}if(a.altKey){this.ay(this.ay()|1)}if(a.ctrlKey){this.ay(this.ay()|2)}this.aa(a.button==2)},ad:function(){var a=$$t.$bx.c3(this.bq());var b=a.left();var c=a.top();return{__x:b,__y:c,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName}},ax:function(a,b){var c=a;var d=this.bx+b;c.unbind(d)},af:function(){if(this.bq()==null){return}this.bq().unbind(this.bx);this.bq(null)},$type:new $.ig.Type("DOMEventProxy",$$t.$bj.$type)},true);$.ig.util.defType("BrushUtil:go","Object",{init:function(){$.ig.$op.init.call(this)},getLightened:function(a){var $self=this;if($self==null){return $self}if($self._isGradient){var b=$self.clone();for(var c=0;c<b._gradientStops.length;c++){var d=b._gradientStops[c];d.color(d.color().getLightened(a))}return b}else{var e=$self.color().getLightened(a);return function(){var $ret=new $$t.a4;$ret.color(e);return $ret}()}},g:function(a,b,c,d){var $self=this;var e=new $$t.a4;if(a==null&&c==null){e.__fill="transparent";return e}var f=null,g=null;var h=null,i=null;if(a==null){var j=c._isGradient?function(){var $ret=new $$t.a5;$ret.f(0);$ret.i(255);$ret.h(255);$ret.g(255);return $ret}():function(){var $ret=new $$t.a5;$ret.f(0);$ret.i(c.color().i());$ret.h(c.color().h());$ret.g(c.color().g());return $ret}();f=function(){var $ret=new $$t.a4;$ret.color(j);return $ret}()}else{if(a._isGradient){h=a}else{f=a}}if(c==null){var k=a._isGradient?function(){var $ret=new $$t.a5;$ret.f(0);$ret.i(255);$ret.h(255);$ret.g(255);return $ret}():function(){var $ret=new $$t.a5;$ret.f(0);$ret.i(a.color().i());$ret.h(a.color().h());$ret.g(a.color().g());return $ret}();g=function(){var $ret=new $$t.a4;$ret.color(k);return $ret}()}else{if(c._isGradient){i=c}else{g=c}}if(f!=null&&g!=null){return $$t.$go.k(f,b,g,d)}if(f!=null&&i!=null){return $$t.$go.j(f,b,i,d)}if(h!=null&&g!=null){return $$t.$go.j(g,1-b,h,d)}if(h!=null&&i!=null){return $$t.$go.i(h,b,i,d)}return e},k:function(a,b,c,d){var e=new $$t.a4;e.color(a.color().getInterpolation(b,c.color(),d));return e},j:function(a,b,c,d){var e=new $$t.eu;e._gradientStops=$$t.$go.e(a.color(),b,c._gradientStops,d);if(c._useCustomDirection){e._useCustomDirection=true;e._startX=c._startX;e._startY=c._startY;e._endX=c._endX;e._endY=c._endY}return e},i:function(a,b,c,d){var e=new $$t.eu;e._gradientStops=$$t.$go.d(a._gradientStops,b,c._gradientStops,d);if(a._useCustomDirection||c._useCustomDirection){e._useCustomDirection=true;e._startX=a._startX+b*(c._startX-a._startX);e._startY=a._startY+b*(c._startY-a._startY);e._endX=(1-b)*a._endX+b*c._endX;e._endY=(1-b)*a._endY+b*c._endY}return e},e:function(a,b,c,d){var $self=this;var e=new Array(c.length);for(var f=0;f<c.length;++f){e[f]=function(){var $ret=new $$t.ev;$ret._offset=c[f]._offset;$ret.color(a.getInterpolation(b,c[f].color(),d));return $ret}()}return e},d:function(a,b,c,d){var $self=this;var e=Math.min(a.length,c.length);var f=Math.max(a.length,c.length);var g=new Array(f);var h=0;for(;h<e;++h){g[h]=function(){var $ret=new $$t.ev;$ret._offset=(1-b)*a[h]._offset+b*c[h]._offset;$ret.color(a[h].color().getInterpolation(b,c[h].color(),d));return $ret}()}for(;h<a.length;++h){g[h]=function(){var $ret=new $$t.ev;$ret._offset=(1-b)*a[h]._offset+b*c[c.length-1]._offset;$ret.color(a[h].color().getInterpolation(b,c[c.length-1].color(),d));return $ret}()}for(;h<c.length;++h){g[h]=function(){var $ret=new $$t.ev;$ret._offset=(1-b)*a[a.length-1]._offset+b*c[h]._offset;$ret.color(a[a.length-1].color().getInterpolation(b,c[h].color(),d));return $ret}()}return g},c:function(a,b){var c=new Array(2);b.addClass(a);var d=new $$t.a4;d.__fill=b.css("background-color");var e=new $$t.a4;e.__fill=b.css("border-top-color");b.removeClass(a);c[0]=d;c[1]=e;return c},a:function(palleteName_,container_,a,b,c){var $self=this;a=new $$t.a;b=new $$t.a;var d;var e=new $$t.c(String,0);e.add("background-color");e.add("border-top-color");var f=$$t.$gp.g();var g=false;if(container_!=null){container_.append(f);g=!jQuery.contains(document.documentElement,container_[0]);if(g){$("body").append(container_)}}else{$("body").append(f)}var h=$$t.$gp.d(f,"ui-"+palleteName_+"-palette-",e);var i=h.count();if(i==0){if(c==null){c=function(){var $ret=new Array;$ret.add("#B1BFC9");$ret.add("#50a8be");$ret.add("#798995");$ret.add("#fc6754");$ret.add("#4F606C");$ret.add("#fec33c");$ret.add("#374650");$ret.add("#3c6399");$ret.add("#162C3B");$ret.add("#91af49");return $ret}()}for(var j=0;j<c.length-1;j+=2){d=new $$t.a4;d.__fill=c[j];b.add(d);d=new $$t.a4;d.__fill=c[j+1];a.add(d)}}for(var k=0;k<i;k++){var l=new $$t.a4;l.__fill=h.__inner[k].__inner[0];var m=new $$t.a4;m.__fill=h.__inner[k].__inner[1];a.add(l);b.add(m)}f.remove();if(g){container_.remove()}return{brushes:a,outlines:b}},b:function(a,b,c,container_,d,e,f){var $self=this;d=new $$t.a;e=new $$t.a;if(f==null){f=function(){var $ret=new Array;$ret.add("#B1BFC9");$ret.add("#50a8be");$ret.add("#798995");$ret.add("#fc6754");$ret.add("#4F606C");$ret.add("#fec33c");$ret.add("#374650");$ret.add("#3c6399");$ret.add("#162C3B");$ret.add("#91af49");return $ret}()}var g=$$t.$gp.g();var h=false;if(container_!=null){container_.append(g);h=!jQuery.contains(document.documentElement,container_[0]);if(h){$("body").append(container_)}}else{$("body").append(g)}var i=new $$t.c(String,0);i.add("background-image");var j=$$t.$gp.d(g,a,i);var k=j.count();var l=$$t.$gp.d(g,b,i);var m=l.count();for(var n=0;n<k;n++){d.add($$t.$gq.d(j.__inner[n].__inner[0]))}for(var o=0;o<m;o++){e.add($$t.$gq.d(l.__inner[o].__inner[0]))}i.clear();var p=0;var q=0;var r=Math.min(k,m);var s=null;if(k==0){i.add("background-color")}if(m==0){i.add("border-top-color");q=k==0?1:0}if(i.count()>0){s=$$t.$gp.d(g,c,i);r=s.count()}if(k==0){if(r>0){for(var t=0;t<r;t++){var u=new $$t.a4;u.__fill=s.__inner[t].__inner[p];d.add(u)}}else{for(var v=0;v<f.length-1;v+=2){var w=new $$t.a4;w=new $$t.a4;w.__fill=f[v+1];d.add(w)}}}if(m==0){if(r>0){for(var x=0;x<r;x++){var y=new $$t.a4;y.__fill=s.__inner[x].__inner[q];e.add(y)}}else{for(var z=0;z<f.length-1;z+=2){var aa=new $$t.a4;aa.__fill=f[z];e.add(aa)}}}g.remove();if(h){container_.remove()}return{brushes:d,outlines:e}},f:function(a,b,c,container_,d){var e=null;var f=$$t.$gp.g();var g=false;if(container_!=null){container_.append(f);g=!jQuery.contains(document.documentElement,container_[0]);if(g){$("body").append(container_)}}else{$("body").append(f)}var h=$$t.$gp.q(f,a,"background-image");if(h!=null){e=$$t.$gq.d(h)}if(e==null){e=new $$t.a4;var i=$$t.$gp.q(f,b,c);e.__fill=i!=null?i:d}f.remove();if(g){container_.remove()}return e},$type:new $.ig.Type("BrushUtil",$.ig.$ot)},true);$.ig.util.defType("ColorUtil:bi","Object",{init:function(){$.ig.$op.init.call(this)},p:function(a){return $$t.$a5.n(a,$$t.$bi.f.c(0,255),$$t.$bi.f.c(0,255),$$t.$bi.f.c(0,255))},q:function(a){var b=a.getAHSV();return $$t.$bi.j(b[0],$$t.$bi.f.c(0,359),b[2],b[3])},getInterpolation:function(interpolation_,maximum_,a){var min_=this;switch(a){case 1:var b=this.getAHSV();var c=maximum_.getAHSV();var d=b[1]>=0?b[1]:c[1];var e=c[1]>=0?c[1]:b[1];if(d>=0&&e>=0&&Math.abs(e-d)>180){if(e>d){d+=360}else{e+=360}}interpolation_=Math.max(0,Math.min(1,interpolation_));return $$t.$bi.j(b[0]+interpolation_*(c[0]-b[0]),d+interpolation_*(e-d),b[2]+interpolation_*(c[2]-b[2]),b[3]+interpolation_*(c[3]-b[3]));case 0:return $$t.$a5.n(min_.__a+interpolation_*(maximum_.__a-min_.__a),min_.__r+interpolation_*(maximum_.__r-min_.__r),min_.__g+interpolation_*(maximum_.__g-min_.__g),min_.__b+interpolation_*(maximum_.__b-min_.__b))}return this},k:function(a,b,c){var d=a[1]>=0?a[1]:c[1];var e=c[1]>=0?c[1]:a[1];if(d>=0&&e>=0&&Math.abs(e-d)>180){if(e>d){d+=360}else{e+=360}}b=Math.max(0,Math.min(1,b));return $$t.$bi.j(a[0]+b*(c[0]-a[0]),d+b*(e-d),a[2]+b*(c[2]-a[2]),a[3]+b*(c[3]-a[3]))},getLightened:function(a){var b=this.getAHSL();if(a<0){return $$t.$bi.i(b[0],b[1],b[2],b[3]*(1-$$t.$bf.c(-a,0,1)))}else{return $$t.$bi.i(b[0],b[1],b[2],b[3]+$$t.$bf.c(a,0,1)*(1-b[3]))}},getAHSL:function(){var a=new Array(4);var b=this.i()/255;var c=this.h()/255;var d=this.g()/255;var e=Math.min(Math.min(b,c),d);var f=Math.max(Math.max(b,c),d);var g=f-e;a[0]=this.f()/255;a[3]=(f+e)/2;if(g==0){a[1]=-1;a[2]=0}else{a[1]=$$t.$bi.d(f,g,b,c,d);a[2]=a[3]<.5?g/(f+e):g/(2-f-e)}return a},getAHSV:function(){var a=this.f()/255;var b=this.i()/255;var c=this.h()/255;var d=this.g()/255;var e=Math.min(b,Math.min(c,d));var f=Math.max(b,Math.max(c,d));var g=f-e;var h=new Array(4);h[0]=a;h[3]=f;if(g==0){h[1]=-1;h[2]=0}else{h[1]=$$t.$bi.d(f,g,b,c,d);h[2]=g/f}return h},i:function(a,b,c,d){var e;var f;var g;if(c==0){e=d;f=d;g=d}else{var h=d<.5?d*(1+c):d+c-d*c;var i=2*d-h;var j=b/360;e=$$t.$bi.c(i,h,j+1/3);f=$$t.$bi.c(i,h,j);g=$$t.$bi.c(i,h,j-1/3)}return $$t.$a5.n(a*255,e*255,f*255,g*255)},j:function(a,b,c,d){var e;var f;var g;while(b>=360){b-=360}if(c==0){e=d;f=d;g=d}else{b/=60;var h=Math.floor(b);var i=b-h;var j=d*(1-c);var k=d*(1-c*i);var l=d*(1-c*(1-i));switch(h){case 0:e=d;f=l;g=j;break;case 1:e=k;f=d;g=j;break;case 2:e=j;f=d;g=l;break;case 3:e=j;f=k;g=d;break;case 4:e=l;f=j;g=d;break;default:e=d;f=j;g=k;break}}return $$t.$a5.n(a*255,e*255,f*255,g*255)},d:function(a,b,c,d,e){var f=c==a?(d-e)/b:d==a?2+(e-c)/b:4+(c-d)/b;f*=60;if(f<0){f+=360}return f},c:function(a,b,c){c=c<0?c+1:c>1?c-1:c;if(c<1/6){return a+(b-a)*6*c}if(c<1/2){return b}if(c<2/3){return a+(b-a)*6*(2/3-c)}return a},h:function(){if($$t.$bi.g==null){$$t.$bi.g=new Array(100);$$t.$bi.g[0]=$$t.$a5.n(255,70,130,180);$$t.$bi.g[1]=$$t.$a5.n(255,65,105,225);$$t.$bi.g[2]=$$t.$a5.n(255,100,149,237);$$t.$bi.g[3]=$$t.$a5.n(255,176,196,222);$$t.$bi.g[4]=$$t.$a5.n(255,123,104,238);$$t.$bi.g[5]=$$t.$a5.n(255,106,90,205);$$t.$bi.g[6]=$$t.$a5.n(255,72,61,139);$$t.$bi.g[7]=$$t.$a5.n(255,25,25,112);for(var a=8;a<100;a++){$$t.$bi.g[a]=$$t.$a5.n(255,$$t.$bi.f.b(255),$$t.$bi.f.b(255),$$t.$bi.f.b(255))}}return $$t.$bi.g},o:function(a){a%=100;return $$t.$bi.h()[a]},e:function(a){var b=a.f()/255;var c=a.i()*b;var d=a.h()*b;var e=a.g()*b;return a.f()<<24|c<<16|d<<8|e},l:function(a){return a.color()},$type:new $.ig.Type("ColorUtil",$.ig.$ot)},true);$.ig.util.defType("CssGradientUtil:gq","Object",{init:function(){$.ig.$op.init.call(this)},d:function(a){var b=/hsl\([\s\S]+?\)[\s\S]*?[,\)]|rgba?\([\s\S]+?\)[\s\S]*?[,\)]|[^\(\)]*?[,\)]/gim,c=/\s*\d*%\s*$/,d=/^\s\s*/,e=/\s\s*$/,f=/[,\)]?$/;var g;var h,i=1,j=0,k,l;var m=false;var n;var o=a.match(b);if(o==null||o.length<=1){return null}var p=new $$t.eu;k=o.length;g=o[0];if(g.contains("to")||g.contains("deg")){h=$$t.$gq.b(g);p._useCustomDirection=true;var q=$$t.$gq.a(h);p._startX=q[0].__x;p._startY=q[0].__y;p._endX=q[1].__x;p._endY=q[1].__y;n=new Array(k-1)}else{n=new Array(k);i=0}for(;i<k;i++){var r=new $$t.ev;g=o[i];g=g.replace(d,"").replace(e,"").replace(f,"");l=g.search(c);if(l!=-1){r.__fill=g.substr(0,l);r._offset=parseFloat(g.substr(l+1))/100}else{r.__fill=g;r._offset=-1;m=true}n[j]=r;j++}if(m){if(n[0]._offset==-1){n[0]._offset=0}if(n[n.length-1]._offset==-1){n[n.length-1]._offset=1}$$t.$gq.c(n);p._gradientStops=n}return p},c:function(a){var b,c,d,e,f=-1,g=-1,h=0;var i=false;for(b=g+1;b<a.length;b++){var j=a[b];if(j._offset!=-1){f=Math.max(f,j._offset);j._offset=f;if(i){d=1;e=$.ig.intDivide(f-h,b-g);for(c=g+1;c<b;c++){a[c]._offset=h+e*d;d++}i=false}g=b;h=f}else{i=true}}},b:function(a){var b=/to\s*top\s*/i,c=/to\s*right\s*top\s*/i,d=/to\s*right\s*/i,e=/to\s*right\s*bottom\s*/i,f=/to\s*bottom\s*/i,g=/to\s*left\s*bottom\s*/i,h=/to\s*left\s*/i,i=/to\s*left\s*top\s*/i;if(a.contains("deg")){return parseFloat(a)}if(b.test(a)){return 0}if(c.test(a)){return 45}if(d.test(a)){return 90}if(e.test(a)){return 135}if(f.test(a)){return 180}if(g.test(a)){return 225}if(h.test(a)){return 270}return i.test(a)?315:180},a:function(a){var b=new Array(2);var c=new $$t.bm(0);var d=new $$t.bm(0);var e=$$t.$fe.e(a);if(e>=0&&e<=45){var f=Math.tan($$t.$bf.u(e));c.__x=.5-.5*f;c.__y=1;d.__x=.5+.5*f;d.__y=0}else if(e>180&&e<=225){var g=Math.tan($$t.$bf.u(e-180));c.__x=.5+.5*g;c.__y=0;d.__x=.5-.5*g;d.__y=1}else if(e>135&&e<=180){var h=Math.tan($$t.$bf.u(180-e));c.__x=.5-.5*h;c.__y=0;d.__x=.5+.5*h;d.__y=1}else if(e>315&&e<360){var i=Math.tan($$t.$bf.u(360-e));c.__x=.5+.5*i;c.__y=1;d.__x=.5-.5*i;d.__y=0}else if(e>45&&e<=90){var j=Math.tan($$t.$bf.u(90-e));d.__y=.5-.5*j;d.__x=1;c.__y=.5+.5*j;c.__x=0}else if(e>90&&e<=135){var k=Math.tan($$t.$bf.u(e-90));d.__y=.5+.5*k;d.__x=1;c.__y=.5-.5*k;c.__x=0}else if(e>225&&e<=270){var l=Math.tan($$t.$bf.u(270-e));c.__y=.5-.5*l;c.__x=1;d.__y=.5+.5*l;d.__x=0}else if(e>270&&e<=315){var m=Math.tan($$t.$bf.u(e-270));c.__y=.5+.5*m;c.__x=1;d.__y=.5-.5*m;d.__x=0}b[0]=c;b[1]=d;return b},$type:new $.ig.Type("CssGradientUtil",$.ig.$ot)},true);$.ig.util.defType("CssHelper:gp","Object",{init:function(){$.ig.$op.init.call(this)},g:function(){var a=$("#fakediscoveryelementstyle");if(a.length==0){var b="fakediscoveryelement\n"+"{\n"+"	display: block;\n"+"   position: absolute;\n"+"   box-sizing: content-box;\n"+"   -moz-box-sizing: content-box;\n"+"	margin: "+"-4321px"+";\n"+"	color: "+"rgb(3, 2, 1)"+";\n"+"   border-style: solid;\n"+"   border-color: "+"rgb(3, 2, 1)"+";\n"+"   background-color: "+"rgb(3, 2, 1)"+";\n"+"   background-image: "+"none"+";\n"+"   border-width: "+"4321px"+";\n"+"   border-radius: "+"4321px"+";\n"+"   vertical-align: "+"baseline"+";\n"+"   text-align: "+"justify"+";\n"+"   opacity: "+"0.888"+";\n"+"   visibility: "+"hidden"+";\n"+"   width: "+"4321px"+";\n"+"   height: "+"4321px"+";\n"+"}\n";a=$("<style id='fakediscoveryelementstyle'></style>");a.html(b);$("head").append(a)}return $("<fakediscoveryelement></fakediscoveryelement>")},p:function(a){if(a=="color"||a=="border-color"||a=="border-top-color"||a=="border-left-color"||a=="border-right-color"||a=="border-bottom-color"||a=="background-color"){return"rgb(3, 2, 1)"}else if(a=="margin-left"||a=="margin-top"||a=="margin-right"||a=="margin-bottom"){return"-4321px"}else if(a=="vertical-align"){return"baseline"}else if(a=="opacity"){return"0.888"}else if(a=="background-image"){return"none"}else if(a=="text-align"){return"justify"}else if(a=="visibility"){return"hidden"}else if($$t.$gp.c(a)){return"4321px"}return"DEFAULT"},f:function(a,b,c){var d=$$t.$gp.p(c);var e=1;var f=false;while(!f&&e<500){var g=b+e.toString();a.addClass(g);var h=a.css(c);if(h==d){break}e++}return e},q:function(a,b,c){a.addClass(b);var ret_=a.css(c);a.removeClass(b);if(c=="opacity"){ret_=Math.round(1e3*ret_)/1e3}if($$t.$gp.a(ret_,$$t.$gp.p(c),c)){return null}return ret_},a:function(a,b,c){if(a==b){return true}if($$t.$gp.c(c)&&a!=null&&a.contains("px")){var d=a.replace("px","");var e=parseFloat(d);if(Math.abs(Math.round(e)-4321)<2){return true}return false}else if($$t.$gp.b(c)&&a!=null&&a.contains("px")){var f=a.replace("px","");var g=parseFloat(f);if(Math.abs(Math.round(g)+4321)<2){return true}return false}else{return a==b}},c:function(a){return a=="width"||a=="height"||a=="border-top-width"||a=="border-left-width"||a=="border-right-width"||a=="border-bottom-width"||a=="border-top-left-radius"},b:function(a){return a=="margin-top"||a=="margin-left"||a=="margin-right"||a=="margin-bottom"},d:function(a,b,c){var d=new $$t.c($$t.$c.$type.specialize(String),0);var e=1;var f=false;while(!f&&e<500){var g=b+e.toString();a.addClass(g);var h=new $$t.c(String,0);for(var i=0;i<c.count();i++){var j=c.__inner[i];var k=$$t.$gp.p(j);var l=a.css(j);if($$t.$gp.a(l,k,j)){f=true;break}h.add(l)}a.removeClass(g);if(!f){d.add(h)}e++}return d},$type:new $.ig.Type("CssHelper",$.ig.$ot)},true);$.ig.util.defType("DoubleAnimator:fw","Object",{needsFlush:function(){return this.transitionProgress()==0},flush:function(){this.w(true)},k:0,transitionProgress:function(a){if(arguments.length===1){this.k=a;if(this.propertyChanged!=null){this.propertyChanged(this,new $$t.a1("TransitionProgress"))}return a}else{return this.k}},p:0,intervalMilliseconds:function(a){if(arguments.length===1){this.p=a;return a}else{return this.p}},a:null,easingFunction:function(a){if(arguments.length===1){this.a=a;return a}else{return this.a}},i:0,j:0,l:function(a){if(arguments.length===1){this.i=a;return a}else{return this.i}},m:function(a){if(arguments.length===1){this.j=a;return a}else{return this.j}},init:function(a,b,c){this.a=null;this.i=0;this.j=0;this.d=false;this.o=-1;this.q=0;$.ig.$op.init.call(this);this.i=a;this.j=b;this.p=c;this.c(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){window.setTimeout(callback,1e3/60)})},_c:null,c:function(value){if(arguments.length===1){this._c=value;return value}else{return this._c}},d:false,e:function(a){if(arguments.length===1){this.d=a;return a}else{return this.d}},start:function(){this.k=0;this.q=0;this.h=$$t.$ap.now();if(!this.d){this.d=true;this.c()(this.tick.runOn(this))}},stop:function(){this.d=false;this.k=0;this.q=0},h:null,o:0,q:0,tick:function(){this.w(false)},w:function(a){if(!this.d){this.stop();return}var b=$$t.$ap.now();var c=b.getTime()-this.h.getTime();if(c>this.p){c=this.p}if(c-this.q<16&&c!=this.p&&!a){this.c()(this.tick.runOn(this));return}this.q=c;var d=c/this.p;if(this.a!=null){d=this.a(d)}var e=this.i+(this.j-this.i)*d;if(!a){if(c==this.p){this.stop()}else{this.c()(this.tick.runOn(this))}}this.transitionProgress(e)},animationActive:function(){return this.d},propertyChanged:null,$type:new $.ig.Type("DoubleAnimator",$.ig.$ot,[$$t.$az.$type])},true);$.ig.util.defType("StackPool$1:f5","Object",{$t:null,init:function($t){this.$t=$t;this.$type=this.$type.specialize(this.$t);$.ig.$op.init.call(this);this.d=false;this.f=new $$t.dh(this.$t,$.ig.$op.$type,0);this.h=new $$t.f6(this.$t);this.g=new $$t.f6(this.$t)},n:function(){var a;if(this.h.count()!=0){a=this.h.pop()}else{a=this.g.count()!=0?this.g.pop():this.i()();this.a()(a)}this.f.add(a,null);return a},m:function(a){this.f.remove(a);if(this.e()){this.h.push(a)}else{this.b()(a);var b=$$t.$f5.l(this.f.count());if(this.g.count()<b){this.c()(a)}else{this.g.push(a)}}},e:function(a){if(arguments.length===1){if(this.d!=a){this.d=a;
if(!this.d){var b=$$t.$f5.l(this.f.count());while(this.h.count()>0&&this.g.count()<=b){var c=this.h.pop();this.b()(c);this.g.push(c)}while(this.h.count()>0){var d=this.h.pop();this.b()(d);this.c()(d)}while(this.g.count()>b){this.c()(this.g.pop())}}}return a}else{return this.d}},d:false,j:function(){return this.f.count()},k:function(){return this.g.count()},_i:null,i:function(value){if(arguments.length===1){this._i=value;return value}else{return this._i}},_b:null,b:function(value){if(arguments.length===1){this._b=value;return value}else{return this._b}},_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},_c:null,c:function(value){if(arguments.length===1){this._c=value;return value}else{return this._c}},l:function(a){var b=2;while(a>b){b=b<<1}return b},f:null,h:null,g:null,$type:new $.ig.Type("StackPool$1",$.ig.$ot)},true);$.ig.util.defType("IVisualData:hq","Object",{$type:new $.ig.Type("IVisualData",null)},true);$.ig.util.defType("PrimitiveVisualData:hs","Object",{init:function(initNumber){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}$.ig.$op.init.call(this)},init1:function(initNumber,a){$.ig.$op.init.call(this);this.name(a);this.tags(new $$t.ic);this.appearance(new $$t.ht)},_appearance:null,appearance:function(value){if(arguments.length===1){this._appearance=value;return value}else{return this._appearance}},_tags:null,tags:function(value){if(arguments.length===1){this._tags=value;return value}else{return this._tags}},type:function(){},_name:null,name:function(value){if(arguments.length===1){this._name=value;return value}else{return this._name}},scaleByViewport:function(a){this.appearance().j(a)},getPoints:function(a){var b=new $$t.c($$t.$c.$type.specialize($$t.$bm.$type),0);this.getPointsOverride(b,a);return b},getPointsOverride:function(a,b){},serialize:function(){var a=new $$t.gj;a.f("{");a.f("appearance: "+(this.appearance()!=null?this.appearance().serialize():"null")+", ");a.f("tags: [");for(var b=0;b<this.tags().count();b++){if(b!=0){a.d(", ")}a.d("'"+this.tags().__inner[b]+"'")}a.f("],");a.f("type: '"+this.type()+"', ");a.f("name: '"+this.name()+"', ");a.f(this.e());a.f("}");return a.b()},e:function(){return""},$type:new $.ig.Type("PrimitiveVisualData",$.ig.$ot,[$$t.$hq.$type])},true);$.ig.util.defType("PrimitiveVisualDataList:hr","List$1",{init:function(){$$t.$c.init.call(this,$$t.$hs.$type)},containingTag:function(a){var b=new $$t.hr;for(var c=0;c<this.count();c++){var d=this.__inner[c];for(var e=0;e<d.tags().count();e++){if(d.tags().__inner[e]==a){b.add(d);break}}}return b},serialize:function(){var a=new $$t.gj;a.d("{ items: [");for(var b=0;b<this.count();b++){if(b!=0){a.d(", ")}a.d(this.__inner[b].serialize())}return a.b()},$type:new $.ig.Type("PrimitiveVisualDataList",$$t.$c.$type.specialize($$t.$hs.$type),[$$t.$hq.$type])},true);$.ig.util.defType("LabelAppearanceData:ib","Object",{init:function(){$.ig.$op.init.call(this)},_text:null,text:function(value){if(arguments.length===1){this._text=value;return value}else{return this._text}},_horizontalAlignment:null,horizontalAlignment:function(value){if(arguments.length===1){this._horizontalAlignment=value;return value}else{return this._horizontalAlignment}},_verticalAlignment:null,verticalAlignment:function(value){if(arguments.length===1){this._verticalAlignment=value;return value}else{return this._verticalAlignment}},_textAlignment:null,textAlignment:function(value){if(arguments.length===1){this._textAlignment=value;return value}else{return this._textAlignment}},_textWrapping:null,textWrapping:function(value){if(arguments.length===1){this._textWrapping=value;return value}else{return this._textWrapping}},_textPosition:null,textPosition:function(value){if(arguments.length===1){this._textPosition=value;return value}else{return this._textPosition}},_labelBrush:null,labelBrush:function(value){if(arguments.length===1){this._labelBrush=value;return value}else{return this._labelBrush}},_labelBrushExtended:null,labelBrushExtended:function(value){if(arguments.length===1){this._labelBrushExtended=value;return value}else{return this._labelBrushExtended}},_angle:0,angle:function(value){if(arguments.length===1){this._angle=value;return value}else{return this._angle}},_opacity:0,opacity:function(value){if(arguments.length===1){this._opacity=value;return value}else{return this._opacity}},_visibility:false,visibility:function(value){if(arguments.length===1){this._visibility=value;return value}else{return this._visibility}},_font:null,font:function(value){if(arguments.length===1){this._font=value;return value}else{return this._font}},_fontFamily:null,fontFamily:function(value){if(arguments.length===1){this._fontFamily=value;return value}else{return this._fontFamily}},_fontSize:0,fontSize:function(value){if(arguments.length===1){this._fontSize=value;return value}else{return this._fontSize}},_fontWeight:null,fontWeight:function(value){if(arguments.length===1){this._fontWeight=value;return value}else{return this._fontWeight}},_fontStyle:null,fontStyle:function(value){if(arguments.length===1){this._fontStyle=value;return value}else{return this._fontStyle}},_fontStretch:null,fontStretch:function(value){if(arguments.length===1){this._fontStretch=value;return value}else{return this._fontStretch}},_marginLeft:0,marginLeft:function(value){if(arguments.length===1){this._marginLeft=value;return value}else{return this._marginLeft}},_marginRight:0,marginRight:function(value){if(arguments.length===1){this._marginRight=value;return value}else{return this._marginRight}},_marginTop:0,marginTop:function(value){if(arguments.length===1){this._marginTop=value;return value}else{return this._marginTop}},_marginBottom:0,marginBottom:function(value){if(arguments.length===1){this._marginBottom=value;return value}else{return this._marginBottom}},serialize:function(){var a=new $$t.gj;a.f("{");a.f("text: '"+(this.text()!=null?this.text():"")+"', ");if(this.textAlignment()!=null){a.f('textAlignment: "'+this.textAlignment()+'", ')}if(this.textWrapping()!=null){a.f('textWrapping: "'+this.textWrapping()+'", ')}a.f("labelBrush: "+(this.labelBrush()!=null?$$t.$hv.serializeColor(this.labelBrush()):"null")+", ");a.f("labelBrushExtended: "+(this.labelBrushExtended()!=null?this.labelBrushExtended().serialize():"null")+", ");a.f("angle: "+this.angle()+", ");a.f("marginLeft: "+this.marginLeft()+", ");a.f("marginRight: "+this.marginRight()+", ");a.f("marginTop: "+this.marginTop()+", ");a.f("marginBottom: "+this.marginBottom()+", ");a.f("opacity: "+this.opacity()+", ");a.f("visibility: "+(this.visibility()?"true":"false")+", ");if(this.horizontalAlignment()!=null){a.f('horizontalAlignment: "'+this.horizontalAlignment()+'", ')}if(this.verticalAlignment()!=null){a.f('verticalAlignment: "'+this.verticalAlignment()+'", ')}if(this.font()!=null){a.f('font: "'+this.font()+'",')}if(this.fontFamily()!=null){a.f('fontFamily: "'+this.fontFamily()+'",')}a.f('fontWeight: "'+this.fontWeight()+'",');a.f('fontStyle: "'+this.fontStyle()+'",');a.f('fontStretch: "'+this.fontStretch()+'",');a.f("fontSize: "+this.fontSize());a.f("}");return a.b()},$type:new $.ig.Type("LabelAppearanceData",$.ig.$ot,[$$t.$hq.$type])},true);$.ig.util.defType("BrushAppearanceData:hu","Object",{init:function(){$.ig.$op.init.call(this)},type:function(){},serialize:function(){return'{ type: "'+this.type()+'", '+this.a()+" }"},a:function(){return""},$type:new $.ig.Type("BrushAppearanceData",$.ig.$ot,[$$t.$hq.$type])},true);$.ig.util.defType("SolidBrushAppearanceData:hy","BrushAppearanceData",{init:function(){$$t.$hu.init.call(this)},type:function(){return"solid"},_colorValue:null,colorValue:function(value){if(arguments.length===1){this._colorValue=value;return value}else{return this._colorValue}},a:function(){return"colorValue: "+(this.colorValue()!=null?$$t.$hv.serializeColor(this.colorValue()):"null")},$type:new $.ig.Type("SolidBrushAppearanceData",$$t.$hu.$type)},true);$.ig.util.defType("LinearGradientBrushAppearanceData:hw","BrushAppearanceData",{init:function(){$$t.$hu.init.call(this);this.stops(new $$t.c($$t.$hx.$type,0))},type:function(){return"linear"},_startX:0,startX:function(value){if(arguments.length===1){this._startX=value;return value}else{return this._startX}},_startY:0,startY:function(value){if(arguments.length===1){this._startY=value;return value}else{return this._startY}},_endX:0,endX:function(value){if(arguments.length===1){this._endX=value;return value}else{return this._endX}},_endY:0,endY:function(value){if(arguments.length===1){this._endY=value;return value}else{return this._endY}},_stops:null,stops:function(value){if(arguments.length===1){this._stops=value;return value}else{return this._stops}},a:function(){var a=new $$t.gj;a.d("startX: "+this.startX()+", endX: "+this.endX()+", startY: "+this.startY()+", endY: "+this.endY());a.d(", stops: [");for(var b=0;b<this.stops().count();b++){if(b>0){a.d(", ")}a.d(this.stops().__inner[b].serialize())}a.d("]");return a.b()},$type:new $.ig.Type("LinearGradientBrushAppearanceData",$$t.$hu.$type)},true);$.ig.util.defType("GradientStopAppearanceData:hx","Object",{init:function(){$.ig.$op.init.call(this)},_colorValue:null,colorValue:function(value){if(arguments.length===1){this._colorValue=value;return value}else{return this._colorValue}},_offset:0,offset:function(value){if(arguments.length===1){this._offset=value;return value}else{return this._offset}},serialize:function(){return"{ "+"colorValue: "+(this.colorValue()!=null?$$t.$hv.serializeColor(this.colorValue()):"null")+", offset: "+this.offset()+" }"},$type:new $.ig.Type("GradientStopAppearanceData",$.ig.$ot,[$$t.$hq.$type])},true);$.ig.util.defType("PrimitiveAppearanceData:ht","Object",{init:function(){$.ig.$op.init.call(this)},_stroke:null,stroke:function(value){if(arguments.length===1){this._stroke=value;return value}else{return this._stroke}},_strokeExtended:null,strokeExtended:function(value){if(arguments.length===1){this._strokeExtended=value;return value}else{return this._strokeExtended}},_fill:null,fill:function(value){if(arguments.length===1){this._fill=value;return value}else{return this._fill}},_fillExtended:null,fillExtended:function(value){if(arguments.length===1){this._fillExtended=value;return value}else{return this._fillExtended}},_strokeThickness:0,strokeThickness:function(value){if(arguments.length===1){this._strokeThickness=value;return value}else{return this._strokeThickness}},_visibility:null,visibility:function(value){if(arguments.length===1){this._visibility=value;return value}else{return this._visibility}},_opacity:0,opacity:function(value){if(arguments.length===1){this._opacity=value;return value}else{return this._opacity}},_canvasLeft:0,canvasLeft:function(value){if(arguments.length===1){this._canvasLeft=value;return value}else{return this._canvasLeft}},_canvasTop:0,canvasTop:function(value){if(arguments.length===1){this._canvasTop=value;return value}else{return this._canvasTop}},_canvaZIndex:0,canvaZIndex:function(value){if(arguments.length===1){this._canvaZIndex=value;return value}else{return this._canvaZIndex}},_dashArray:null,dashArray:function(value){if(arguments.length===1){this._dashArray=value;return value}else{return this._dashArray}},_dashCap:0,dashCap:function(value){if(arguments.length===1){this._dashCap=value;return value}else{return this._dashCap}},j:function(a){this.canvasLeft((this.canvasLeft()-a.left())/a.width());this.canvasTop((this.canvasTop()-a.top())/a.height())},serialize:function(){var a=new $$t.gj;a.f("{");a.f("stroke: "+(this.stroke()!=null?$$t.$hv.serializeColor(this.stroke()):"null")+", ");a.f("fill: "+(this.fill()!=null?$$t.$hv.serializeColor(this.fill()):"null")+", ");a.f("strokeExtended: "+(this.strokeExtended()!=null?this.strokeExtended().serialize():"null")+", ");a.f("fillExtended: "+(this.fillExtended()!=null?this.fillExtended().serialize():"null")+", ");a.f("strokeThickness: "+this.strokeThickness()+", ");a.f("visibility: "+(this.visibility()==0?"true":"false")+", ");a.f("opacity: "+this.opacity()+", ");a.f("canvasLeft: "+this.canvasLeft()+", ");a.f("canvasTop: "+this.canvasTop()+", ");a.f("canvasZIndex: "+this.canvaZIndex()+", ");a.f("dashArray: null, ");a.f("dashCap: "+this.dashCap());a.f("}");return a.b()},$type:new $.ig.Type("PrimitiveAppearanceData",$.ig.$ot,[$$t.$hq.$type])},true);$.ig.util.defType("GetPointsSettings:h1","Object",{init:function(){$.ig.$op.init.call(this)},_ignoreFigureStartPoint:false,ignoreFigureStartPoint:function(value){if(arguments.length===1){this._ignoreFigureStartPoint=value;return value}else{return this._ignoreFigureStartPoint}},$type:new $.ig.Type("GetPointsSettings",$.ig.$ot)},true);$.ig.util.defType("ShapeTags:ic","List$1",{init:function(){$$t.$c.init.call(this,String)},$type:new $.ig.Type("ShapeTags",$$t.$c.$type.specialize(String))},true);$.ig.util.defType("PathVisualData:ij","PrimitiveVisualData",{type:function(){return"Path"},init:function(initNumber){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}$$t.$hs.init1.call(this,1,"path1");this.data(new $$t.c($$t.$h0.$type,0))},init1:function(initNumber,a,b){$$t.$hs.init1.call(this,1,a);this.data($$t.$hv.fromGeometry(b.ak()));$$t.$hv.getShapeAppearance(this.appearance(),b)},_data:null,data:function(value){if(arguments.length===1){this._data=value;return value}else{return this._data}},e:function(){var a=new $$t.gj;a.f("data: [");for(var b=0;b<this.data().count();b++){if(b!=0){a.d(", ")}a.d(this.data().__inner[b]!=null?this.data().__inner[b].serialize():"null")}a.f("]");return a.b()},scaleByViewport:function(a){$$t.$hs.scaleByViewport.call(this,a);var c=this.data().getEnumerator();while(c.moveNext()){var b=c.current();b.scaleByViewport(a)}},getPointsOverride:function(a,b){for(var c=0;c<this.data().count();c++){var d=this.data().__inner[c];d.getPointsOverride(a,b)}},$type:new $.ig.Type("PathVisualData",$$t.$hs.$type)},true);$.ig.util.defType("GeometryData:h0","Object",{init:function(){$.ig.$op.init.call(this)},type:function(){},scaleByViewport:function(a){},getPointsOverride:function(a,b){},serialize:function(){return"{ type: '"+this.type()+"', "+this.a()+"}"},a:function(){return""},$type:new $.ig.Type("GeometryData",$.ig.$ot,[$$t.$hq.$type])},true);$.ig.util.defType("PathGeometryData:h4","GeometryData",{init:function(){$$t.$h0.init.call(this);this.figures(new $$t.c($$t.$h5.$type,0))},type:function(){return"Path"},_figures:null,figures:function(value){if(arguments.length===1){this._figures=value;return value}else{return this._figures}},a:function(){var a=new $$t.gj;a.f("figures: [");for(var b=0;b<this.figures().count();b++){if(b!=0){a.d(", ")}a.d(this.figures().__inner[b].serialize())}a.f("]");return a.b()},scaleByViewport:function(a){var c=this.figures().getEnumerator();while(c.moveNext()){var b=c.current();b.d(a)}},getPointsOverride:function(a,b){for(var c=0;c<this.figures().count();c++){var d=this.figures().__inner[c];d.getPointsOverride(a,b)}},$type:new $.ig.Type("PathGeometryData",$$t.$h0.$type)},true);$.ig.util.defType("LineGeometryData:h3","GeometryData",{init:function(){$$t.$h0.init.call(this)},type:function(){return"Line"},_x1:0,x1:function(value){if(arguments.length===1){this._x1=value;return value}else{return this._x1}},_y1:0,y1:function(value){if(arguments.length===1){this._y1=value;return value}else{return this._y1}},_x2:0,x2:function(value){if(arguments.length===1){this._x2=value;return value}else{return this._x2}},_y2:0,y2:function(value){if(arguments.length===1){this._y2=value;return value}else{return this._y2}},a:function(){return"x1: "+this.x1()+", y1: "+this.y1()+", x2: "+this.x2()+", y2:"+this.y2()},scaleByViewport:function(a){this.x1((this.x1()-a.left())/a.width());this.y1((this.y1()-a.top())/a.height());this.x2((this.x2()-a.left())/a.width());this.y2((this.y2()-a.top())/a.height())},getPointsOverride:function(a,b){var c=new $$t.c($$t.$bm.$type,0);a.add(c);c.add({__x:this.x1(),__y:this.y1(),$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});c.add({__x:this.x2(),__y:this.y2(),$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName})},$type:new $.ig.Type("LineGeometryData",$$t.$h0.$type)},true);$.ig.util.defType("RectangleGeometryData:h2","GeometryData",{init:function(){$$t.$h0.init.call(this)},type:function(){return"Rectangle"},_x:0,x:function(value){if(arguments.length===1){this._x=value;return value}else{return this._x}},_y:0,y:function(value){if(arguments.length===1){this._y=value;return value}else{return this._y}},_width:0,width:function(value){if(arguments.length===1){this._width=value;return value}else{return this._width}},_height:0,height:function(value){if(arguments.length===1){this._height=value;return value}else{return this._height}},a:function(){return"x: "+this.x()+", y: "+this.y()+", width: "+this.width()+", height: "+this.height()},scaleByViewport:function(a){this.x((this.x()-a.left())/a.width());this.y((this.y()-a.top())/a.height());this.width(this.width()/a.width());this.height(this.height()/a.height())},getPointsOverride:function(a,b){var c=new $$t.c($$t.$bm.$type,0);a.add(c);c.add({__x:this.x(),__y:this.y(),$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});c.add({__x:this.x()+this.width(),__y:this.y(),$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});c.add({__x:this.x()+this.width(),__y:this.y()+this.height(),$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});c.add({__x:this.x(),__y:this.y()+this.height(),$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName})},$type:new $.ig.Type("RectangleGeometryData",$$t.$h0.$type)},true);$.ig.util.defType("EllipseGeometryData:hz","GeometryData",{init:function(){$$t.$h0.init.call(this)},type:function(){return"Ellipse"},_centerX:0,centerX:function(value){if(arguments.length===1){this._centerX=value;return value}else{return this._centerX}},_centerY:0,centerY:function(value){if(arguments.length===1){this._centerY=value;return value}else{return this._centerY}},_radiusX:0,radiusX:function(value){if(arguments.length===1){this._radiusX=value;return value}else{return this._radiusX}},_radiusY:0,radiusY:function(value){if(arguments.length===1){this._radiusY=value;return value}else{return this._radiusY}},a:function(){return"centerX: "+this.centerX()+", centerY: "+this.centerY()+", radiusX: "+this.radiusX()+", radiusY: "+this.radiusY()},scaleByViewport:function(a){this.centerX((this.centerX()-a.left())/a.width());this.centerX((this.centerY()-a.top())/a.height());this.radiusX(this.radiusX()/a.width());this.radiusY(this.radiusY()/a.height())},getPointsOverride:function(a,b){var c=new $$t.c($$t.$bm.$type,0);a.add(c);c.add({__x:this.centerX(),__y:this.centerY(),$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName})},$type:new $.ig.Type("EllipseGeometryData",$$t.$h0.$type)},true);$.ig.util.defType("PathFigureData:h5","Object",{init:function(initNumber){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}$.ig.$op.init.call(this);this.segments(new $$t.c($$t.$h7.$type,0));this.startPoint(new $$t.bm(0))},init1:function(initNumber,a){$.ig.$op.init.call(this);this.segments(new $$t.c($$t.$h7.$type,0));this.startPoint(a.__startPoint);for(var b=0;b<a.__segments.count();b++){var c=a.__segments.__inner[b];var d=null;switch(c.a()){case 0:d=new $$t.h6(1,c);break;case 3:d=new $$t.h8(1,c);break;case 4:d=new $$t.h9(1,c);break;case 2:d=new $$t.ia(1,c);break}this.segments().add(d)}},_startPoint:null,startPoint:function(value){if(arguments.length===1){this._startPoint=value;return value}else{return this._startPoint}},_segments:null,segments:function(value){if(arguments.length===1){this._segments=value;return value}else{return this._segments}},serialize:function(){var a=new $$t.gj;a.f("{");a.f("startPoint: { x: "+this.startPoint().__x+", y: "+this.startPoint().__y+"}, ");a.f("segments: [");for(var b=0;b<this.segments().count();b++){if(b!=0){a.d(", ")}a.d(this.segments().__inner[b].serialize())}a.f("]");a.f("}");return a.b()},d:function(a){this.startPoint({__x:(this.startPoint().__x-a.left())/a.width(),__y:(this.startPoint().__y-a.top())/a.height(),$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});for(var b=0;b<this.segments().count();b++){this.segments().__inner[b].scaleByViewport(a)}},getPointsOverride:function(a,b){var c=new $$t.c($$t.$bm.$type,0);a.add(c);if(!b.ignoreFigureStartPoint()){c.add({__x:this.startPoint().__x,__y:this.startPoint().__y,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName})}for(var d=0;d<this.segments().count();d++){this.segments().__inner[d].getPointsOverride(c,b)}},$type:new $.ig.Type("PathFigureData",$.ig.$ot,[$$t.$hq.$type])},true);$.ig.util.defType("SegmentData:h7","Object",{init:function(){$.ig.$op.init.call(this)},type:function(){},scaleByViewport:function(a){},getPointsOverride:function(a,b){},serialize:function(){var a=new $$t.gj;a.f("{");a.f("type: '"+this.type()+"', ");a.f(this.a());a.f("}");return a.b()},a:function(){return""},$type:new $.ig.Type("SegmentData",$.ig.$ot,[$$t.$hq.$type])},true);$.ig.util.defType("LineSegmentData:h6","SegmentData",{init:function(initNumber){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}$$t.$h7.init.call(this);this.point(new $$t.bm(0))},init1:function(initNumber,a){$$t.$h7.init.call(this);this.point(a.c())},type:function(){return"Line"},_point:null,point:function(value){if(arguments.length===1){this._point=value;return value}else{return this._point}},a:function(){return"point: { x: "+this.point().__x+", y: "+this.point().__y+"}"},scaleByViewport:function(a){this.point({__x:(this.point().__x-a.left())/a.width(),__y:(this.point().__y-a.top())/a.height(),$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName})},getPointsOverride:function(a,b){a.add({__x:this.point().__x,__y:this.point().__y,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName})},$type:new $.ig.Type("LineSegmentData",$$t.$h7.$type)},true);$.ig.util.defType("PolylineSegmentData:h8","SegmentData",{init:function(initNumber){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}$$t.$h7.init.call(this);this.points(new $$t.c($$t.$bm.$type,0))},init1:function(initNumber,a){$$t.$h7.init.call(this);this.points(new $$t.c($$t.$bm.$type,0));for(var b=0;b<a.__points.count();b++){this.points().add(a.__points.__inner[b])}},type:function(){return"Polyline"},_points:null,points:function(value){if(arguments.length===1){this._points=value;return value}else{return this._points}},a:function(){var a=new $$t.gj;a.f("points: [");for(var b=0;b<this.points().count();b++){if(b!=0){a.d(", ")}a.d("{ x: "+this.points().__inner[b].__x+", y: "+this.points().__inner[b].__y+"}")}a.f("]");return a.b()},scaleByViewport:function(a){for(var b=0;b<this.points().count();b++){this.points().__inner[b]={__x:(this.points().__inner[b].__x-a.left())/a.width(),__y:(this.points().__inner[b].__y-a.top())/a.height(),$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName}}},getPointsOverride:function(a,b){for(var c=0;c<this.points().count();c++){a.add({__x:this.points().__inner[c].__x,__y:this.points().__inner[c].__y,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName})}},$type:new $.ig.Type("PolylineSegmentData",$$t.$h7.$type)},true);$.ig.util.defType("PolyBezierSegmentData:ia","SegmentData",{init:function(initNumber){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}$$t.$h7.init.call(this);this.points(new $$t.c($$t.$bm.$type,0))},init1:function(initNumber,a){$$t.$h7.init.call(this);this.points(new $$t.c($$t.$bm.$type,0));for(var b=0;b<a.b().count();b++){this.points().add(a.b().__inner[b])}},type:function(){return"PolyBezierSpline"},_points:null,points:function(value){if(arguments.length===1){this._points=value;return value}else{return this._points}},a:function(){var a=new $$t.gj;a.f("points: [");for(var b=0;b<this.points().count();b++){if(b!=0){a.d(", ")}a.d("{ x: "+this.points().__inner[b].__x+", y: "+this.points().__inner[b].__y+"}")}a.f("]");return a.b()},scaleByViewport:function(a){for(var b=0;b<this.points().count();b++){this.points().__inner[b]={__x:(this.points().__inner[b].__x-a.left())/a.width(),__y:(this.points().__inner[b].__y-a.top())/a.height(),$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName}}},getPointsOverride:function(a,b){for(var c=0;c<this.points().count();c++){a.add({__x:this.points().__inner[c].__x,__y:this.points().__inner[c].__y,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName})}},$type:new $.ig.Type("PolyBezierSegmentData",$$t.$h7.$type)},true);$.ig.util.defType("ArcSegmentData:h9","SegmentData",{init:function(initNumber){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}$$t.$h7.init.call(this);this.point(new $$t.bm(0));this.isLargeArc(false);this.isCounterClockwise(true);this.rotationAngle(0)},init1:function(initNumber,a){$$t.$h7.init.call(this);this.point(a.d());this.isLargeArc(a.b());this.isCounterClockwise(a.e()==0);this.sizeX(a.f().b());this.sizeY(a.f().a());this.rotationAngle(a.c())},type:function(){return"Arc"},_point:null,point:function(value){if(arguments.length===1){this._point=value;return value}else{return this._point}},_isLargeArc:false,isLargeArc:function(value){if(arguments.length===1){this._isLargeArc=value;return value}else{return this._isLargeArc}},_isCounterClockwise:false,isCounterClockwise:function(value){if(arguments.length===1){this._isCounterClockwise=value;return value}else{return this._isCounterClockwise}},_sizeX:0,sizeX:function(value){if(arguments.length===1){this._sizeX=value;return value}else{return this._sizeX}},_sizeY:0,sizeY:function(value){if(arguments.length===1){this._sizeY=value;return value}else{return this._sizeY}},_rotationAngle:0,rotationAngle:function(value){if(arguments.length===1){this._rotationAngle=value;return value}else{return this._rotationAngle}},a:function(){return"point: { x: "+this.point().__x+", y: "+this.point().__y+" }, isLargeArc: "+(this.isLargeArc()?"true":"false")+", isCounterClockwise: "+(this.isCounterClockwise()?"true":"false")+", sizeX: "+this.sizeX()+", sizeY: "+this.sizeY()+", rotationAngle: "+this.rotationAngle()},scaleByViewport:function(a){this.point({__x:(this.point().__x-a.left())/a.width(),__y:(this.point().__y-a.top())/a.height(),$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});this.sizeX(this.sizeX()/a.width());this.sizeY(this.sizeY()/a.height())},getPointsOverride:function(a,b){a.add({__x:this.point().__x,__y:this.point().__y,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName})},$type:new $.ig.Type("ArcSegmentData",$$t.$h7.$type)},true);$.ig.util.defType("AppearanceHelper:hv","Object",{init:function(){$.ig.$op.init.call(this)},fromBrush:function(a){if(a==null){return $$t.$a5.n(0,0,0,0)}if(a.color()==null){return $$t.$a5.n(0,0,0,0)}return a.color()},fromBrushExtended:function(a){var $self=this;if(a==null){return null}if(a._isGradient){var b=new $$t.hw;var c=a;b.startX(c._startX);b.startY(c._startY);b.endX(c._endX);b.endY(c._endY);for(var e=0;e<c._gradientStops.length;e++){var d=c._gradientStops[e];b.stops().add(function(){var $ret=new $$t.hx;$ret.colorValue(d.color());$ret.offset(d._offset);return $ret}())}return b}else if(a._isRadialGradient){return null}else{var f=new $$t.hy;f.colorValue(a.color());return f}return null},getCanvasLeft:function(a){return a.l()},getCanvasTop:function(a){return a.m()},getCanvasZIndex:function(a){return a.q()},fromPathData:function(a){return $$t.$hv.fromGeometry(a.ak())},fromGeometry:function(a){if(a==null){return new $$t.c($$t.$h0.$type,0)}if($.ig.util.cast($$t.$ew.$type,a)!==null){var b=new $$t.c($$t.$h0.$type,0);var c=a;for(var d=0;d<c.c().count();d++){var e=$$t.$hv.fromGeometry(c.c().__inner[d]);for(var f=0;f<e.count();f++){b.add(e.__inner[f])}}return b}else if($.ig.util.cast($$t.$ez.$type,a)!==null){return $$t.$hv.i(a)}else if($.ig.util.cast($$t.$e1.$type,a)!==null){return $$t.$hv.g(a)}else if($.ig.util.cast($$t.$e2.$type,a)!==null){return $$t.$hv.j(a)}else if($.ig.util.cast($$t.$e3.$type,a)!==null){return $$t.$hv.e(a)}else{throw new $$t.db(1,"not supported")}},e:function(a){var b=new $$t.c($$t.$h0.$type,0);var c=new $$t.hz;b.add(c);c.centerX(a.d().__x);c.centerY(a.d().__y);c.radiusX(a.b());c.radiusY(a.c());return b},j:function(a){var b=new $$t.c($$t.$h0.$type,0);var c=new $$t.h2;b.add(c);c.x(a.d().x());c.y(a.d().y());c.width(a.d().width());c.height(a.d().height());return b},g:function(a){var b=new $$t.c($$t.$h0.$type,0);var c=new $$t.h3;b.add(c);c.x1(a.c().__x);c.y1(a.c().__y);c.x2(a.b().__x);c.y2(a.b().__y);return b},i:function(a){var b=new $$t.c($$t.$h0.$type,0);var c=new $$t.h4;b.add(c);for(var d=0;d<a.b().count();d++){var e=a.b().__inner[d];var f=new $$t.h5(1,e);c.figures().add(f)}return b},getShapeAppearance:function(a,b){a.stroke($$t.$hv.fromBrush(b.__stroke));a.fill($$t.$hv.fromBrush(b.__fill));a.strokeExtended($$t.$hv.fromBrushExtended(b.__stroke));a.fillExtended($$t.$hv.fromBrushExtended(b.__fill));a.strokeThickness(b.z());a.dashArray(null);if(b.af()!=null){a.dashArray(b.af().asArrayList())}a.dashCap(b.aa());a.visibility(b.__visibility);a.opacity(b.__opacity);a.canvasLeft($$t.$hv.getCanvasLeft(b));a.canvasTop($$t.$hv.getCanvasTop(b));a.canvaZIndex($$t.$hv.getCanvasZIndex(b))},fromTextElement:function(a,b){var c=new $$t.ib;var d=a;c.text(d.aa());c.labelBrush($$t.$hv.fromBrush(d.ab()));c.labelBrushExtended($$t.$hv.fromBrushExtended(d.ab()));c.visibility(d.__visibility==0?true:false);c.opacity(d.__opacity);if(b.c()!=null){c.fontFamily(b.c())}if(!isNaN(b.a())){c.fontSize(b.a())}if(b.g()!=null){c.fontWeight(b.g())}if(b.e()!=null){c.fontStyle(b.e())}if(b.d()!=null){c.fontStretch(b.e())}var e=0;var f=d.h();if($.ig.util.cast($$t.$fj.$type,f)!==null){var g=$.ig.util.cast($$t.$fj.$type,f);e=g.h()}else if($.ig.util.cast($$t.$fg.$type,f)!==null){var h=$.ig.util.cast($$t.$fg.$type,f);var j=h.h().getEnumerator();while(j.moveNext()){var i=j.current();if($.ig.util.cast($$t.$fj.$type,i)!==null){var k=$.ig.util.cast($$t.$fj.$type,i);e=k.h();break}}}c.angle(e);return c},serializeColor:function(a){return"{ r: "+a.i()+", g: "+a.h()+", b: "+a.g()+", a: "+a.f()+"}"},serializeItems:function(a,b,c,d){if(c!=null){if(!d){a.d(", ")}a.d(b);a.d(": [");var e=false;
var g=c.getEnumerator();while(g.moveNext()){var f=g.current();if(e){a.f(", ")}else{e=true}a.d(f.serialize())}a.f("]");return true}return false},serializeItem:function(a,b,c,d){if(c!=null){if(!d){a.d(", ")}a.d(b);a.d(": ");a.f(c.serialize());return true}return false},$type:new $.ig.Type("AppearanceHelper",$.ig.$ot)},true);$$t.$a3.rGB=0;$$t.$a3.hSV=1;$$t.$a.w=new $$t.be;$$t.$bx.bm=0;$$t.$bx.a8=null;$$t.$bx.a9=null;$$t.$bx.bw=null;$$t.$bx.bp=-1;$$t.$bi.f=new $$t.be;$$t.$bi.g=null;$$t.$gp.j="-4321px";$$t.$gp.i="rgb(3, 2, 1)";$$t.$gp.h="none";$$t.$gp.l="justify";$$t.$gp.m="baseline";$$t.$gp.k="0.888";$$t.$gp.n="hidden";$$t.$gp.o="4321px";$$t.$gp.e=500;$.ig.util.extCopy($.ig.ArrayUtil,[[[$.ig.EdgeClipper,$.ig.RearrangedList$1,$.ig.IList$1,$.ig.List$1,$.ig.ReadOnlyCollection$1,$.ig.IFastItemColumn$1,$.ig.FastItemColumn,$.ig.FastItemDateTimeColumn,$.ig.FastItemObjectColumn,$.ig.FastItemIntColumn],["shuffle$1","insertionIndex$11","insertionIndex$1","binarySearch$1"]]]);$.ig.util.extCopy($.ig.BrushUtil,[[[$.ig.Brush],["getLightened"]]]);$.ig.util.extCopy($.ig.ColorUtil,[[[$.ig.Color],["getInterpolation","getLightened","getAHSL","getAHSV"]]]);$.ig.util.extCopy($.ig.Extensions,[[[$.ig.PathGeometry],["reset1"]],[[$.ig.GeometryGroup],["reset"]],[[$.ig.FrameworkElement],["detach"]],[[$.ig.Panel],["transferChildrenTo"]],[[$.ig.Point],["isPlottable"]],[[$.ig.Rect],["isPlottable1"]]]);$.ig.util.extCopy($.ig.PathFigureUtil,[[[$.ig.PathFigureCollection],["duplicate1"]],[[$.ig.PathFigure],["duplicate"]]]);$.ig.util.extCopy($.ig.PointCollectionUtil,[[[$.ig.RearrangedList$1,$.ig.IList$1,$.ig.List$1,$.ig.ReadOnlyCollection$1,$.ig.IFastItemColumn$1,$.ig.FastItemColumn,$.ig.FastItemDateTimeColumn,$.ig.FastItemObjectColumn,$.ig.FastItemIntColumn,$.ig.EdgeClipper],["flattenTo","getBounds2","clipTo"]],[[$.ig.RearrangedList$1,$.ig.IEnumerable$1,$.ig.ICollection$1,$.ig.IList$1,$.ig.List$1,$.ig.IDictionary$2,$.ig.Dictionary$2,$.ig.GenericEnumerable$1,$.ig.ReadOnlyCollection$1,$.ig.Stack$1,$.ig.IOrderedEnumerable$1,$.ig.SortedList$1,$.ig.IGrouping$2,$.ig.IFastItemColumn$1,$.ig.FastItemColumn,$.ig.FastItemDateTimeColumn,$.ig.FastItemObjectColumn,$.ig.FastItemIntColumn,$.ig.EdgeClipper],["getBounds1","getBounds","getCentroid","toPointCollection","toPointList"]],[[$.ig.List$1],["getBounds3","getBounds4","toPointCollections"]]]);$.ig.util.extCopy($.ig.RectUtil,[[[$.ig.Rect],["getCenter","getArea","duplicate","getLeader","getDistanceSquared1","getDistanceSquared2","getDistanceSquared","contains","intersectsWith","intersectionArea","getInflated","inflate1","inflate","round","isNull","size","normalize","normalize1","getTopLeft","getTopRight","getBottomLeft","getBottomRight","getCorners","rotateAboutCenter","rotateAboutPoint"]]]);$.ig.util.extCopy($.ig.Queryable,[[[$.ig.SortedList$1,$.ig.IGrouping$2,$.ig.IEnumerable,$.ig.ICollection,$.ig.IList,$.ig.Array,$.ig.Dictionary,$.ig.XmlNodeList,$.ig.XmlNamedNodeMap,$.ig.IFastItemColumn$1,$.ig.FastItemColumn,$.ig.FastItemDateTimeColumn,$.ig.FastItemObjectColumn,$.ig.FastItemIntColumn,$.ig.FastItemsSource,$.ig.EdgeClipper,$.ig.RearrangedList$1],["asQueryable"]]]);$.ig.util.extCopy($.ig.Enumerable,[[[$.ig.SortedList$1,$.ig.IGrouping$2,$.ig.IFastItemColumn$1,$.ig.FastItemColumn,$.ig.FastItemDateTimeColumn,$.ig.FastItemObjectColumn,$.ig.FastItemIntColumn,$.ig.EdgeClipper,$.ig.RearrangedList$1],["where$1","where$11","select$2","selectMany$2","last$1","first$1","firstOrDefault$1","orderBy$2","orderByDescending$2","toList$1","concat$1","max","max$1","min","min$1","count$1","reverse$1","take$1","skip$1","any$1","contains$1","union$1","toArray$1","elementAt$1","sum","sum$1"]],[[$.ig.SortedList$1,$.ig.IGrouping$2,$.ig.IEnumerable,$.ig.ICollection,$.ig.IList,$.ig.Array,$.ig.Dictionary,$.ig.XmlNodeList,$.ig.XmlNamedNodeMap,$.ig.IFastItemColumn$1,$.ig.FastItemColumn,$.ig.FastItemDateTimeColumn,$.ig.FastItemObjectColumn,$.ig.FastItemIntColumn,$.ig.FastItemsSource,$.ig.EdgeClipper,$.ig.RearrangedList$1],["ofType$1","cast$1"]]])})(jQuery);$.ig=$.ig||{};(function($){var $$t={};$.ig.$currDefinitions=$$t;$.ig.util.bulkDefine(["DeferredOperation:a","Object:b","Type:c","Boolean:d","ValueType:e","Void:f","String:g","IComparable:h","Number:i","Number:j","Single:k","Number:l","String:m","Array:n","RegExp:o","RuntimeTypeHandle:p","MethodInfo:q","MethodBase:r","MemberInfo:s","ParameterInfo:t","TypeCode:u","Enum:v","ConstructorInfo:w","Action:x","MulticastDelegate:y","IntPtr:z","Callback:aa","window:ab","RadialMenuWedgePart:ac","RadialMenuPart:ad","RadialMenuPointerArea:ae","RadialMenuAnimation:af","OuterRingButtonType:ag","RadialMenuChildItemPlacement:ah","RadialMenuCheckBehavior:ai","RadialMenuValueChangedEventArgs$1:aj","EventArgs:ak","RadialMenuNumericValueChangedEventArgs:al","RadialMenuColorChangedEventArgs:am","Color:an","Number:ao","Math:ap","Number:aq","Number:ar","Number:as","Number:at","Number:au","Number:av","Number:aw","Script:ax","RadialMenuItemBase:ay","Control:az","FrameworkElement:a0","UIElement:a1","DependencyObject:a2","Dictionary:a3","IEnumerable:a4","IEnumerator:a5","DependencyProperty:a6","PropertyMetadata:a7","PropertyChangedCallback:a8","DependencyPropertyChangedEventArgs:a9","DependencyPropertiesCollection:ba","UnsetValue:bb","Binding:bc","PropertyPath:bd","Transform:be","Visibility:bf","Style:bg","Thickness:bh","HorizontalAlignment:bi","VerticalAlignment:bj","INotifyPropertyChanged:bk","PropertyChangedEventHandler:bl","PropertyChangedEventArgs:bm","Brush:bn","XamRadialMenu:bo","ObservableCollection$1:bp","List$1:bq","IList$1:br","ICollection$1:bs","IEnumerable$1:bt","IEnumerator$1:bu","IArrayList:bv","Array:bw","ICollection:bx","CompareCallback:by","IList:bz","IDisposable:b0","IArray:b1","Date:b2","Date:b3","Func$3:b4","Action$1:b5","INotifyCollectionChanged:b6","NotifyCollectionChangedEventHandler:b7","NotifyCollectionChangedEventArgs:b8","NotifyCollectionChangedAction:b9","Delegate:ca","DataTemplate:cb","DataTemplateRenderHandler:cc","DataTemplateRenderInfo:cd","DataTemplatePassInfo:ce","DataTemplateMeasureHandler:cf","DataTemplateMeasureInfo:cg","DataTemplatePassHandler:ch","EasingFunctionHandler:ci","Panel:cj","UIElementCollection:ck","RadialMenuFrame:cl","Ellipse:cm","ShapeDefinition:cn","Geometry:co","GeometryType:cp","Point:cq","ShapeUtilities:cr","AnnularSector:cs","Annulus:ct","PathBuilder:cu","PathGeometry:cv","PathFigureCollection:cw","LiteRect:cx","LiteRectExtensions:cy","Rect:cz","Size:c0","PathSegmentCollection:c1","ArcSegment:c2","PathSegment:c3","PathSegmentType:c4","SweepDirection:c5","PolyBezierSegment:c6","PointCollection:c7","LineSegment:c8","PathFigure:c9","Dictionary$2:da","IDictionary$2:db","IDictionary:dc","IEqualityComparer$1:dd","KeyValuePair$2:de","NotImplementedException:df","Error:dg","RadialMenuItemPosition:dh","Debug:di","Stack$1:dj","ReverseArrayEnumerator$1:dk","RadialMenuItemLevel:dl","RadialMenuItem:dm","Action$2:dn","RadialMenuItemBaseCollection:dp","XamRadialMenuView:dq","Element:dr","ElementAttributeCollection:ds","ElementCollection:dt","WebStyle:du","ElementNodeType:dv","Document:dw","EventListener:dx","IElementEventHandler:dy","ElementEventHandler:dz","ElementAttribute:d0","EventProxy:d1","ModifierKeys:d2","Func$2:d3","MouseWheelHandler:d4","GestureHandler:d5","ContactHandler:d6","TouchHandler:d7","MouseOverHandler:d8","MouseHandler:d9","KeyHandler:ea","Key:eb","JQuery:ec","JQueryObject:ed","JQueryPosition:ee","JQueryCallback:ef","JQueryEvent:eg","JQueryUICallback:eh","JQueryDeferred:ei","JQueryPromise:ej","CssClassChain$1:ek","CssProperty:el","Tuple$2:em","RadialMenuItemToolTipVisualData:en","IVisualData:eo","StringBuilder:ep","CssDpCache:eq","CssPropCacheBase$2:er","CssHelper:es","FontUtil:et","FontInfo:eu","CssPropCache$1:ev","Path:ew","Shape:ex","DoubleCollection:ey","TextBlock:ez","TranslateTransform:e0","RadialMenuItemView:e1","TextContainer:e2","RenderingContext:e3","IRenderer:e4","Rectangle:e5","Polygon:e6","Polyline:e7","ContentControl:e8","Line:e9","CanvasContext2D:fa","CanvasContext:fb","TextMetrics:fc","ImageData:fd","CanvasElement:fe","Gradient:ff","ImageElement:fg","ImageManager:fh","DivElement:fi","RadialMenuDOMEventProxy:fj","DOMEventProxy:fk","MSGesture:fl","MouseEventArgs:fm","CanvasViewRenderer:fn","LinearGradientBrush:fo","GradientStop:fp","GeometryGroup:fq","GeometryCollection:fr","FillRule:fs","LineGeometry:ft","RectangleGeometry:fu","EllipseGeometry:fv","PolyLineSegment:fw","BezierSegment:fx","GeometryUtil:fy","TransformGroup:fz","TransformCollection:f0","RotateTransform:f1","ScaleTransform:f2","RadialMenuUtilities:f3","ColorNameCalculator:f4","Image:f5","RadialMenuColorWell:f6","RadialMenuColorItemBase:f7","EventHandler$1:f8","RadialMenuColorItem:f9","EventHandler:ga","ColorUtil:gb","Random:gc","InterpolationMode:gd","MathUtil:ge","RuntimeHelpers:gf","RuntimeFieldHandle:gg","RadialMenuVisualData:gh","PrimitiveVisualData:gi","PrimitiveAppearanceData:gj","BrushAppearanceData:gk","AppearanceHelper:gl","LinearGradientBrushAppearanceData:gm","GradientStopAppearanceData:gn","SolidBrushAppearanceData:go","EllipseGeometryData:gp","GeometryData:gq","GetPointsSettings:gr","RectangleGeometryData:gs","LineGeometryData:gt","PathGeometryData:gu","PathFigureData:gv","LineSegmentData:gw","SegmentData:gx","PolylineSegmentData:gy","ArcSegmentData:gz","PolyBezierSegmentData:g0","LabelAppearanceData:g1","ShapeTags:g2","RadialMenuItemVisualDataList:g3","ColorWellPreviewDataList:g4","KeyTipManager:g5","CultureInfo:g6","IFormatProvider:g7","KeyTipExtensions:g8","KeyTipInfo:g9","StackPool$1:ha","Func$1:hb","PathVisualData:hc","RadialMenuItemVisualData:hd","RadialMenuItemFrame:he","ColorWellPreviewData:hf","TimedOperation:hg","DoubleAnimator:hh","RadialMenuPointerAnimationInfo:hi","TextDefinition:hj","Enumerable:hk","IOrderedEnumerable$1:hl","SortedList$1:hm","ArgumentNullException:hn","BrushUtil:ho","BrushCollection:hp","CssGradientUtil:hq","Nullable:hr","TriangleShape:hs","ArgumentOutOfRangeException:ht","ArgumentException:hu","RadialMenuNumericGauge:hv","RadialMenuNumericGaugeFrame:hw","LineSegmentShape:hx","RadialMenuNumericGaugeVisualData:hy","RadialMenuNumericGaugeTickmarkDataList:hz","RadialMenuNumericGaugeNeedleData:h0","PrimitiveVisualDataList:h1","RadialMenuNumericGaugeTickmarkData:h2","RadialMenuNumericItem:h3","RadialMenuItemOverlayTemplates:h5","BindingExpression:h6","PropertyStep:h7","AbstractEnumerable:h8","AbstractEnumerator:h9","GenericEnumerable$1:ia","GenericEnumerator$1:ib"]);$.ig.util.defType("CssProperty:el","Enum",{init:function(){$.ig.$ep.init.call(this)},$type:new $.ig.Type("CssProperty",$.ig.$ep.$type)},true);$.ig.util.defType("RadialMenuCheckBehavior:ai","Enum",{init:function(){$.ig.$ep.init.call(this)},$type:new $.ig.Type("RadialMenuCheckBehavior",$.ig.$ep.$type)},true);$.ig.util.defType("RadialMenuChildItemPlacement:ah","Enum",{init:function(){$.ig.$ep.init.call(this)},$type:new $.ig.Type("RadialMenuChildItemPlacement",$.ig.$ep.$type)},true);$.ig.util.defType("OuterRingButtonType:ag","Enum",{init:function(){$.ig.$ep.init.call(this)},$type:new $.ig.Type("OuterRingButtonType",$.ig.$ep.$type)},true);$.ig.util.defType("RadialMenuAnimation:af","Enum",{init:function(){$.ig.$ep.init.call(this)},$type:new $.ig.Type("RadialMenuAnimation",$.ig.$ep.$type)},true);$.ig.util.defType("RadialMenuPointerArea:ae","Enum",{init:function(){$.ig.$ep.init.call(this)},$type:new $.ig.Type("RadialMenuPointerArea",$.ig.$ep.$type)},true);$.ig.util.defType("RadialMenuPart:ad","Enum",{init:function(){$.ig.$ep.init.call(this)},$type:new $.ig.Type("RadialMenuPart",$.ig.$ep.$type)},true);$.ig.util.defType("RadialMenuWedgePart:ac","Enum",{init:function(){$.ig.$ep.init.call(this)},$type:new $.ig.Type("RadialMenuWedgePart",$.ig.$ep.$type)},true);$.ig.util.defType("DeferredOperation:a","Object",{e:null,a:null,b:false,init:function(a){$.ig.$op.init.call(this);this.a=a},c:function(){return this.e!=null},d:function(){return this.b},g:function(){if(this.e==null){return}this.e=null;var a=this.b;this.b=true;try{this.a()}finally{this.b=a}},f:function(){this.e=null},i:function(){var $self=this;if($self.e!=null){return}var a={};$self.e=a;window.setTimeout(function(){return $self.h(a)},0)},h:function(a){if(a!=this.e){return}this.g()},$type:new $.ig.Type("DeferredOperation",$.ig.$ot)},true);$.ig.util.defType("RadialMenuValueChangedEventArgs$1:aj","EventArgs",{$t:null,c:null,b:null,init:function($t,a,b){this.$t=$t;this.$type=this.$type.specialize(this.$t);$$t.$ak.init.call(this);this.c=a;this.b=b},oldValue:function(){return this.c},newValue:function(){return this.b},$type:new $.ig.Type("RadialMenuValueChangedEventArgs$1",$$t.$ak.$type)},true);$.ig.util.defType("RadialMenuNumericValueChangedEventArgs:al","RadialMenuValueChangedEventArgs$1",{init:function(a,b){$$t.$aj.init.call(this,Number,a,b)},$type:new $.ig.Type("RadialMenuNumericValueChangedEventArgs",$$t.$aj.$type.specialize(Number))},true);$.ig.util.defType("RadialMenuColorChangedEventArgs:am","RadialMenuValueChangedEventArgs$1",{init:function(a,b){$$t.$aj.init.call(this,$$t.$an.$type,a,b)},$type:new $.ig.Type("RadialMenuColorChangedEventArgs",$$t.$aj.$type.specialize($$t.$an.$type))},true);$.ig.util.defType("RadialMenuItemBase:ay","Control",{_dataItem:null,staticInit:function(){},init:function(){var $self=this;this._dataItem=null;this.al=true;$$t.$az.init.call(this);this.f($$t.$ay.cz,function(){var $ret=new $$t.bc(0);$ret.f(new $$t.bd("Visibility"));$ret.d($self);return $ret}())},autoRotateChildren:function(a){if(arguments.length===1){this.g($$t.$ay.autoRotateChildrenProperty,a);return a}else{return this.c($$t.$ay.autoRotateChildrenProperty)}},checkedHighlightBrush:function(a){if(arguments.length===1){this.g($$t.$ay.checkedHighlightBrushProperty,a);return a}else{return this.c($$t.$ay.checkedHighlightBrushProperty)}},c3:function(){return this.bb($$t.$ay.checkedHighlightBrushProperty)},foreground:function(a){if(arguments.length===1){this.g($$t.$ay.foregroundProperty,a);return a}else{return this.c($$t.$ay.foregroundProperty)}},highlightBrush:function(a){if(arguments.length===1){this.g($$t.$ay.highlightBrushProperty,a);return a}else{return this.c($$t.$ay.highlightBrushProperty)}},c6:function(){return this.bb($$t.$ay.highlightBrushProperty)},innerAreaFill:function(a){if(arguments.length===1){this.g($$t.$ay.innerAreaFillProperty,a);return a}else{return this.c($$t.$ay.innerAreaFillProperty)}},c8:function(){return this.bb($$t.$ay.innerAreaFillProperty)},innerAreaHotTrackFill:function(a){if(arguments.length===1){this.g($$t.$ay.innerAreaHotTrackFillProperty,a);return a}else{return this.c($$t.$ay.innerAreaHotTrackFillProperty)}},innerAreaHotTrackStroke:function(a){if(arguments.length===1){this.g($$t.$ay.innerAreaHotTrackStrokeProperty,a);return a}else{return this.c($$t.$ay.innerAreaHotTrackStrokeProperty)}},innerAreaStroke:function(a){if(arguments.length===1){this.g($$t.$ay.innerAreaStrokeProperty,a);return a}else{return this.c($$t.$ay.innerAreaStrokeProperty)}},de:function(){return this.bb($$t.$ay.innerAreaStrokeProperty)},innerAreaStrokeThickness:function(a){if(arguments.length===1){this.g($$t.$ay.innerAreaStrokeThicknessProperty,a);return a}else{return this.c($$t.$ay.innerAreaStrokeThicknessProperty)}},a3:function(){return this.bb($$t.$ay.innerAreaStrokeThicknessProperty)},al:false,isEnabled:function(a){if(arguments.length===1){if(a!=this.al){this.al=a;this.cb("IsEnabled",!a,a)}return a}else{return this.al}},isToolTipEnabled:function(a){if(arguments.length===1){this.g($$t.$ay.isToolTipEnabledProperty,a);return a}else{return this.c($$t.$ay.isToolTipEnabledProperty)}},menu:function(){return this.c($$t.$ay.menuProperty)},outerRingButtonHotTrackFill:function(a){if(arguments.length===1){this.g($$t.$ay.outerRingButtonHotTrackFillProperty,a);return a}else{return this.c($$t.$ay.outerRingButtonHotTrackFillProperty)}},dk:function(){return this.bb($$t.$ay.outerRingButtonHotTrackFillProperty)},outerRingButtonHotTrackForeground:function(a){if(arguments.length===1){this.g($$t.$ay.outerRingButtonHotTrackForegroundProperty,a);return a}else{return this.c($$t.$ay.outerRingButtonHotTrackForegroundProperty)}},dm:function(){return this.bb($$t.$ay.outerRingButtonHotTrackForegroundProperty)},outerRingButtonHotTrackStroke:function(a){if(arguments.length===1){this.g($$t.$ay.outerRingButtonHotTrackStrokeProperty,a);return a}else{return this.c($$t.$ay.outerRingButtonHotTrackStrokeProperty)}},dp:function(){return this.bb($$t.$ay.outerRingButtonHotTrackStrokeProperty)},outerRingButtonFill:function(a){if(arguments.length===1){this.g($$t.$ay.outerRingButtonFillProperty,a);return a}else{return this.c($$t.$ay.outerRingButtonFillProperty)}},dg:function(){return this.bb($$t.$ay.outerRingButtonFillProperty)},outerRingButtonForeground:function(a){if(arguments.length===1){this.g($$t.$ay.outerRingButtonForegroundProperty,a);return a}else{return this.c($$t.$ay.outerRingButtonForegroundProperty)}},di:function(){return this.bb($$t.$ay.outerRingButtonForegroundProperty)},outerRingButtonStroke:function(a){if(arguments.length===1){this.g($$t.$ay.outerRingButtonStrokeProperty,a);return a}else{return this.c($$t.$ay.outerRingButtonStrokeProperty)}},dr:function(){return this.bb($$t.$ay.outerRingButtonStrokeProperty)},outerRingButtonStrokeThickness:function(a){if(arguments.length===1){this.g($$t.$ay.outerRingButtonStrokeThicknessProperty,a);return a}else{return this.c($$t.$ay.outerRingButtonStrokeThicknessProperty)}},a5:function(){return this.bb($$t.$ay.outerRingButtonStrokeThicknessProperty)},parentItem:function(a){if(arguments.length===1){this.g($$t.$ay.parentItemProperty,a);return a}else{return this.c($$t.$ay.parentItemProperty)}},toolTip:function(a){if(arguments.length===1){this.g($$t.$ay.toolTipProperty,a);return a}else{return this.c($$t.$ay.toolTipProperty)}},wedgeIndex:function(a){if(arguments.length===1){this.g($$t.$ay.wedgeIndexProperty,a);return a}else{return this.c($$t.$ay.wedgeIndexProperty)}},wedgeSpan:function(a){if(arguments.length===1){this.g($$t.$ay.wedgeSpanProperty,a);return a}else{return this.c($$t.$ay.wedgeSpanProperty)}},a8:function(){return null},ba:function(){var a=this._dataItem;if(a==null){a=this}return a},an:function(){return false},ao:function(){return false},da:function(){var a=this.bb($$t.$ay.innerAreaHotTrackFillProperty);if(a==null){a=this.c8()}return a},dc:function(){var a=this.bb($$t.$ay.innerAreaHotTrackStrokeProperty);if(a==null){a=this.de()}return a},_ar:false,ar:function(value){if(arguments.length===1){this._ar=value;return value}else{return this._ar}},_as:false,as:function(value){if(arguments.length===1){this._as=value;return value}else{return this._as}},a0:function(){return null},ad:function(){return 0},bd:function(){var a=this.toolTip();if(a!=null){return a}return null},a1:function(a,b){return NaN},ag:function(a,b){return null},ah:function(){return new $$t.hd},az:function(a){return null},bb:function(a){var b=this.d(a);if(b==$$t.$a6.c){if(this.menu()!=null){b=this.menu().ak().al(a)}else{b=this.c(a)}}return b},ae:function(a){if(a!=null&&a==this.ba()){return this}return null},ap:function(a){while(a!=null){a=a.parentItem();if(a==this){return true}}return false},au:function(a){return false},b7:function(){if(this.menu()!=null){this.menu().du(this)}},b8:function(){var a=this.closed;if(null!=a){a(this,$$t.$ak.empty)}},b9:function(){var a=this.opened;if(null!=a){a(this,$$t.$ak.empty)}},av:function(){return true},ca:function(a,b,c){},cc:function(a,b,c){if(b==c){return}this.cb(a,b,c)},cb:function(a,b,c){var d=this.propertyChanged;if(null!=d){d(this,new $$t.bm(a))}},aw:function(a,b){return false},ax:function(a){return false},cd:function(a){this.g($$t.$ay.menuProperty,a)},ay:function(a,b,c){return false},closed:null,opened:null,propertyChanged:null,$type:new $.ig.Type("RadialMenuItemBase",$$t.$az.$type,[$$t.$bk.$type])},true);$.ig.util.defType("RadialMenuItem:dm","RadialMenuItemBase",{d3:null,staticInit:function(){},init:function(){var $self=this;$$t.$ay.init.call(this);this.d3=new $$t.dp(function(a,b){a.cd(b?$self.menu():null);a.parentItem(b?$self:null)});this.d3.propertyChanged=$.ig.Delegate.prototype.combine(this.d3.propertyChanged,this.eq.runOn(this))},a1:function(a,b){var c=this.recentItem();if(null!=c){var e=b.getEnumerator();while(e.moveNext()){var d=e.current();var f=d.item();if(f.parentItem()==this&&this.d5(f)==c){var g=d.e+(d.d-d.e)/2;var h=a.e+(a.d-a.e)/2;return h-g}}}return $$t.$ay.a1.call(this,a,b)},an:function(){return this.isChecked()},ae:function(a){var b=$$t.$ay.ae.call(this,a);if(null==b){var d=this.items().getEnumerator();while(d.moveNext()){var c=d.current();b=c.ae(a);if(b!=null){break}}}return b},a0:function(){return this.d3},b7:function(){var a=this.checkBehavior();if(a!=0){var b=!this.isChecked();if(b||a!=2){this.eu(b)}}var c=$.ig.util.cast($$t.$dm.$type,this.parentItem());if(null!=c&&c.autoUpdateRecentItem()){var d=c.d5(this);c.recentItem(d)}this.ep($$t.$ak.empty);$$t.$ay.b7.call(this)},cb:function(a,b,c){switch(a){case"IsChecked":if(true==c){this.ev();this.eo($$t.$ak.empty)}else{this.es($$t.$ak.empty)}this.cb("DisplayAsChecked",b,c);break;case"RecentItem":this.recentItemContainer(this.dw(c));break}$$t.$ay.cb.call(this,a,b,c)},ad:function(){var a=$$t.$ay.ad.call(this);if(a==0&&this.items().count()>0&&this.du()==0){a=2}return a},cd:function(a){$$t.$ay.cd.call(this,a);var c=this.a0().getEnumerator();while(c.moveNext()){var b=c.current();if(b!=null){b.cd(a)}}},bd:function(){var a=$$t.$ay.bd.call(this);if(a!=null){return a}var b=this.header();if(b!=null&&!($.ig.util.cast($$t.$a1.$type,b)!==null)){return b}return null},autoUpdateRecentItem:function(a){if(arguments.length===1){this.g($$t.$dm.autoUpdateRecentItemProperty,a);return a}else{return this.c($$t.$dm.autoUpdateRecentItemProperty)}},childItemPlacement:function(a){if(arguments.length===1){this.g($$t.$dm.childItemPlacementProperty,a);return a}else{return this.c($$t.$dm.childItemPlacementProperty)}},checkBehavior:function(a){if(arguments.length===1){this.g($$t.$dm.checkBehaviorProperty,a);return a}else{return this.c($$t.$dm.checkBehaviorProperty)}},isChecked:function(a){if(arguments.length===1){this.g($$t.$dm.isCheckedProperty,a);return a}else{return this.c($$t.$dm.isCheckedProperty)}},groupName:function(a){if(arguments.length===1){this.g($$t.$dm.groupNameProperty,a);return a}else{return this.c($$t.$dm.groupNameProperty)}},header:function(a){if(arguments.length===1){this.g($$t.$dm.headerProperty,a);return a}else{return this.c($$t.$dm.headerProperty)}},iconUri:function(a){if(arguments.length===1){this.g($$t.$dm.iconUriProperty,a);return a}else{return this.c($$t.$dm.iconUriProperty)}},iconOverlay:function(a){if(arguments.length===1){this.g($$t.$dm.iconOverlayProperty,a);return a}else{return this.c($$t.$dm.iconOverlayProperty)}},iconOverlayValue:function(a){if(arguments.length===1){this.g($$t.$dm.iconOverlayValueProperty,a);return a}else{return this.c($$t.$dm.iconOverlayValueProperty)}},items:function(){return this.d3},keyTip:function(a){if(arguments.length===1){this.g($$t.$dm.keyTipProperty,a);return a}else{return this.c($$t.$dm.keyTipProperty)}},recentItem:function(a){if(arguments.length===1){this.g($$t.$dm.recentItemProperty,a);return a}else{return this.c($$t.$dm.recentItemProperty)}},er:function(a,b){var c=a;c.cc("RecentItemContainer",b.d(),b.c())},recentItemContainer:function(a){if(arguments.length===1){this.g($$t.$dm.recentItemContainerProperty,a);return a}else{return this.c($$t.$dm.recentItemContainerProperty)}},du:function(){if(this.ao()){return 0}return this.childItemPlacement()},dv:function(){return new $$t.dm},dw:function(a){var c=this.items().getEnumerator();while(c.moveNext()){var b=c.current();if(b._dataItem==a){return b}}return null},d5:function(a){return a._dataItem},eq:function(a,b){switch(b.propertyName()){case"Count":this.cb("OuterRingButtonType",null,null);break}},et:function(a){this.iconOverlayValue(a)},eu:function(a){this.isChecked(a)},ev:function(){var a=null;if(this.parentItem()!=null){a=this.parentItem().a0()}else if(this.menu()!=null){var b=this.menu().ak().w();if(b!=null&&b.contains(this)){a=b}}if(a!=null){switch(this.checkBehavior()){case 2:case 3:var c=this.groupName();if(c==null){c=""}var d=new $$t.bq($$t.$dm.$type,0);var f=a.getEnumerator();while(f.moveNext()){var e=f.current();var g=$.ig.util.cast($$t.$dm.$type,e);if(g!=null&&g!=this&&g.isChecked()){var h=g.groupName();if(h==null){h=""}if(c==h){d.add(g)}}}var j=d.getEnumerator();while(j.moveNext()){var i=j.current();i.eu(false)}break}}},eo:function(a){var b=this.checked;if(null!=b){b(this,a)}},checked:null,ep:function(a){var b=this.click;if(null!=b){b(this,a)}},click:null,es:function(a){var b=this.unchecked;if(null!=b){b(this,a)}},unchecked:null,$type:new $.ig.Type("RadialMenuItem",$$t.$ay.$type)},true);$.ig.util.defType("RadialMenuColorItemBase:f7","RadialMenuItem",{init:function(){$$t.$dm.init.call(this)},a1:function(a,b){var c=this.color();var e=b.getEnumerator();while(e.moveNext()){var d=e.current();var f=$.ig.util.cast($$t.$f7.$type,d.item());if(f!=null&&$$t.$f3.d(f.color(),c)){var g=d.e+(d.d-d.e)/2;var h=a.e+(a.d-a.e)/2;return h-g}}return $$t.$dm.a1.call(this,a,b)},dv:function(){return new $$t.f6},cb:function(a,b,c){if(a=="Color"){this.computedColorName($$t.$f3.b().f(this.color()));this.et(c);var d=b!=null&&c!=null&&!$$t.$f3.d(b,c);if(d){var e=this.colorChanged;if(null!=e){e(this,new $$t.am(b,c))}}}$$t.$dm.cb.call(this,a,b,c)},color:function(a){if(arguments.length===1){this.g($$t.$f7.colorProperty,a);return a}else{return this.c($$t.$f7.colorProperty)}},computedColorName:function(a){if(arguments.length===1){this.g($$t.$f7.computedColorNameProperty,a);return a}else{return this.c($$t.$f7.computedColorNameProperty)}},fd:function(a){this.color(a)},colorChanged:null,$type:new $.ig.Type("RadialMenuColorItemBase",$$t.$dm.$type)},true);$.ig.util.defType("RadialMenuColorItem:f9","RadialMenuColorItemBase",{staticInit:function(){},init:function(){$$t.$f7.init.call(this);this.iconOverlay($$t.$h5.d)},fi:function(a){var b=this.colorWellClick;if(null!=b){b(this,a)}},colorWellClick:null,$type:new $.ig.Type("RadialMenuColorItem",$$t.$f7.$type)},true);$.ig.util.defType("RadialMenuColorWell:f6","RadialMenuColorItemBase",{staticInit:function(){},init:function(){$$t.$f7.init.call(this)},an:function(){var a=this.parentItem();while($.ig.util.cast($$t.$f7.$type,a)!==null){var b=$.ig.util.cast($$t.$f9.$type,a);if(b!=null){return $$t.$f3.d(b.color(),this.color())}a=a.parentItem()}return $$t.$f7.an.call(this)},b7:function(){var a=this.parentItem();var b=this.an();while($.ig.util.cast($$t.$f7.$type,a)!==null){var c=$.ig.util.cast($$t.$f7.$type,a);c.fd(this.color());if($.ig.util.cast($$t.$f9.$type,c)!==null){var d=c;d.fi($$t.$ak.empty)}a=a.parentItem()}if(b!=this.an()){this.cb("DisplayAsChecked",b,!b)}$$t.$f7.b7.call(this)},cb:function(a,b,c){if(a=="Color"){var d=c;this.innerAreaHotTrackFill(this.innerAreaFill(this.outerRingButtonFill($$t.$f3.r(d))));this.outerRingButtonForeground($$t.$f3.r($$t.$f3.v(d)));var e=d.getAHSL();var f=$$t.$f3.t(d,e[3]<.5?+60:-80);this.highlightBrush(this.outerRingButtonHotTrackFill($$t.$f3.r(f)));this.outerRingButtonHotTrackForeground($$t.$f3.r($$t.$f3.v(f)));var g=$$t.$f3.t(d,e[3]<.5?+30:-40);this.checkedHighlightBrush($$t.$f3.r(g));this.fh()}$$t.$f7.cb.call(this,a,b,c)},ad:function(){var a=$$t.$f7.ad.call(this);if(a==0){a=1}return a},bd:function(){var a=$$t.$f7.bd.call(this);if(a==null){return this.computedColorName()}return a},fh:function(){var a=this.menu();var b=$$t.$an.n(255,255,255,255);var c=a!=null?a.menuBackground():null;if(c!=null){b=c.color()}this.fi(b)},fi:function(a){var b=$$t.$f3.e(this.color());var c=$$t.$f3.e(a);if(Math.abs(c-b)<.1){this.outerRingButtonStroke(this.innerAreaStroke(this.checkedHighlightBrush()))}else{this.outerRingButtonStroke(this.innerAreaStroke(null))}this.outerRingButtonHotTrackStroke(this.innerAreaHotTrackStroke(this.outerRingButtonStroke()))},$type:new $.ig.Type("RadialMenuColorWell",$$t.$f7.$type)},true);$.ig.util.defType("RadialMenuItemBaseCollection:dp","ObservableCollection$1",{u:null,init:function(a){$$t.$bp.init.call(this,$$t.$ay.$type);this.u=a},f:function(a){this.u(a,true);$$t.$bp.f.call(this,a)},h:function(){var b=this.getEnumerator();while(b.moveNext()){var a=b.current();this.u(a,false)}$$t.$bp.h.call(this)},j:function(a,b){this.u(b,true);$$t.$bp.j.call(this,a,b)},m:function(a){var b=this.__inner[a];this.u(b,false);$$t.$bp.m.call(this,a)},o:function(a,b){var c=this.__inner[a];this.u(c,false);this.u(b,true);$$t.$bp.o.call(this,a,b)},$type:new $.ig.Type("RadialMenuItemBaseCollection",$$t.$bp.$type.specialize($$t.$ay.$type))},true);$.ig.util.defType("RadialMenuNumericGauge:hv","RadialMenuItemBase",{dy:null,dz:0,dv:false,dt:null,staticInit:function(){},init:function(){this.dz=NaN;$$t.$ay.init.call(this);this.dt=new $$t.a(this.ei.runOn(this));this.dy=new $$t.bq(Number,0)},ag:function(a,b){var $self=this;$self.en();var c=$self.dy.count();if(c==0){return null}var d=$self.dw();var e=2;var f=4;var g=34;var h=new $$t.hw;var i=a.e;var j=a.d-a.e;var k=j/(d?c:c-1);var l=b.j();var m=b.g();var n=b.h();var o=b.am();var p=Math.min(b.ak,n.i+6);var q=Math.min(b.al,n.j+6);var r=Math.max(b.ak-g,p);var s=Math.max(b.al-g,q);var t=Math.max(r-e,p);var u=Math.max(s-e,q);var v=new $$t.cx(1,o.__x-r,o.__y-s,r*2,s*2);var w=$$t.$cr.c(v,f,f);var x=$self.value();var y=!isNaN(x);var z=y&&x>$self.dy.__inner[0]&&x<$self.dy.__inner[c-1];var aa=Math.max(t-1,m.i);var ab=Math.max(u-1,m.j);var ac=Math.min(Math.max(m.i-m.b()/2,0),aa);var ad=Math.min(Math.max(m.j-m.b()/2,0),ab);var ae=new $$t.cx(1,o.__x-aa,o.__y-ab,aa*2,ab*2);var af=new $$t.cx(1,o.__x-ac,o.__y-ad,ac*2,ad*2);var ag=Math.max(b.ak-g/2,p);var ah=Math.max(b.al-g/2,q);var ai=new $$t.cx(1,o.__x-ag,o.__y-ah,ag*2,ah*2);var aj=$self.e1();var ak=$self.e7();var al=$self.e5();var am=ak;var an=ak;h.j=af;h.k=ae;for(var ao=0;ao<c;ao++){var ap=$self.dy.__inner[ao];if(z&&ap==x){z=false}if(d||ao<c-1){var aq=$$t.$cr.a(l,r,s,t,u,i,i+k);var ar=new $$t.fo;var as=$$t.$cr.p(l,i);var at=$$t.$cr.p(l,i+k);var au=as.__x>at.__x?1:0;var av=as.__y>at.__y?1:0;var aw=as.__x<at.__x?1:0;var ax=as.__y<at.__y?1:0;am=an;an=ak.getInterpolation((ao+1)/c,al,0);var ay=function(){var $ret=new $$t.fp;$ret.color(am);$ret._offset=0;return $ret}();var az=function(){var $ret=new $$t.fp;$ret.color(an);$ret._offset=1;return $ret}();ar._startX=au;ar._startY=av;ar._endX=aw;ar._endY=ax;ar._gradientStops=function(){var $ret=new Array;$ret.add(ay);$ret.add(az);return $ret}();aq.d(ar);h.b().add(aq)}var a0=i;if(d){a0+=k}var a1=$$t.$hv.du(l,v,w,aj,a0);h.b().add(a1);var a2=$$t.$hv.ds(l,ai,ap,a0);a2.a=a1;h.a().add(a2);i+=k}var a3=y?$self.d0(a,x):0;var a4=h.i();if(y){if(z){var a5=$$t.$hv.du(l,v,w,aj,a3);a5.c=a4;h.b().add(a5);var a6=$$t.$hv.ds(l,ai,x,a3);a6.a=a4;h.a().add(a6)}a4.j=$$t.$cr.p(ae,$$t.$cr.m(l,a3,ae));a4.i=$$t.$cr.p(af,$$t.$cr.m(l,a3,af));a4.b(1);a4.e($self.e3())}var a7=$self.foreground();var a9=h.a().getEnumerator();while(a9.moveNext()){var a8=a9.current();a8.e=a7}$self.ay(a,b,h);return h},ah:function(){return new $$t.hy},az:function(a){var $self=this;var b=new $$t.bq($$t.$g9.$type,0);$self.en();var c=$self.value();var d=isNaN(c);var e=function(f){var g=f.d();$self.value(g.a());var h=$self.menu();if(h!=null){h.du($self)}};var g=$self.dy.getEnumerator();while(g.moveNext()){var f=g.current();if(!d){if(f==c){d=true}else if(f>c){d=true;b.add(function(){var $ret=new $$t.g9;$ret.a(e);$ret.c($self.d7.runOn($self));$ret.d(new $$t.em(Number,$$t.$dh.$type,c,a));return $ret}())}}b.add(function(){var $ret=new $$t.g9;$ret.a(e);$ret.c($self.d7.runOn($self));$ret.d(new $$t.em(Number,$$t.$dh.$type,f,a));return $ret}())}return b},bb:function(a){if(a.propertyType()==$$t.$bn.$type&&$$t.$a6.h(a.name(),$$t.$ay.$type)!=null){return this.c(a)}return $$t.$ay.bb.call(this,a)},ar:function(a){if(arguments.length===1){if(a!=this.ar()){$$t.$ay.ar.call(this,a);if(a){this.dt.f();this.el(this.value())}else{this.dt.i()}}return a}else{return $$t.$ay.ar.call(this)}},as:function(a){if(arguments.length===1){if(a!=$$t.$ay.as.call(this)){$$t.$ay.as.call(this,a);this.cb("InvalidateCustomVisuals",null,null)
}return a}else{return $$t.$ay.as.call(this)}},au:function(a){this.en();if(this.dy.count()==0){return false}this.el(this.dy.__inner[a?0:this.dy.count()-1]);return true},b7:function(){if(!isNaN(this.pendingValue())){this.em(this.pendingValue());var a=$.ig.util.cast($$t.$h3.$type,this.parentItem());if(null!=a&&!isNaN(this.value())){a.fc(this.value())}}$$t.$ay.b7.call(this)},ca:function(a,b,c){$$t.$ay.ca.call(this,a,b,c);this.el(this.d4(a,c));this.dz=a;this.cb("InvalidateCustomVisuals",null,null)},cb:function(a,b,c){switch(a){case"PendingValueNeedleBrush":this.cb("InvalidateCustomVisuals",null,null);break;case"PendingValue":this.cb("ToolTipResolved",null,null);this.cb("InvalidateCustomVisuals",null,null);break;case"ValueNeedleBrush":case"TickBrush":case"Value":case"ReserveFirstSlice":case"TrackStartColor":case"TrackEndColor":this.cb("DirtyCustomVisuals",null,null);break;case"Ticks":this.dv=false;this.cb("DirtyCustomVisuals",null,null);break}$$t.$ay.cb.call(this,a,b,c)},aw:function(a,b){var c=this.pendingValue();if(isNaN(c)){return this.au(a)}var d=c;this.en();if(this.dy.count()>0){d=d+this.smallIncrement()*(a?1:-1);var e=this.dy.count()-1;if(d<this.dy.__inner[0]){if(b){d=this.dy.__inner[e]}else{return false}}else if(d>this.dy.__inner[e]){if(b){d=this.dy.__inner[0]}else{return false}}this.el(d);return true}return false},ax:function(a){var b=this.pendingValue();if(isNaN(b)){this.au(a);return true}var c=b;this.en();var d=a?0:this.dy.count()-1;var e=a?this.dy.count():-1;var f=a?1:-1;for(var g=d;g!=e;g+=f){if(a&&this.dy.__inner[g]<=c){continue}else if(!a&&this.dy.__inner[g]>=c){continue}this.el(this.dy.__inner[g]);return true}return false},bd:function(){var a=$$t.$ay.bd.call(this);if(a!=null){return a}var b=this.pendingValue();if(isNaN(b)){b=this.value()}if(!isNaN(b)){return b}return null},ay:function(a,b,c){var d=$$t.$ay.ay.call(this,a,b,c);var e=$.ig.util.cast($$t.$hw.$type,c);if(e==null){return d}var f=b.j();var g=this.value();var h=e.k;var i=e.j;var j=this.pendingValue();var k=e.h();if(!isNaN(j)){var l=!isNaN(this.dz)?this.d4(this.dz,a):this.dz;var m=!isNaN(l)&&l==j?this.dz:this.d0(a,j);k.j=$$t.$cr.p(h,$$t.$cr.m(f,m,h));k.i=$$t.$cr.p(i,$$t.$cr.m(f,m,i));k.b(1);k.e(this.as()?this.e3():this.ez())}else{k.b(0)}if(this.as()&&k.b()>0){e.i().e($$t.$f3.s)}else if(e.i().e()==$$t.$f3.s){e.i().e(this.e3())}k.g(null);return true},pendingValue:function(a){if(arguments.length===1){this.g($$t.$hv.pendingValueProperty,a);return a}else{return this.c($$t.$hv.pendingValueProperty)}},pendingValueNeedleBrush:function(a){if(arguments.length===1){this.g($$t.$hv.pendingValueNeedleBrushProperty,a);return a}else{return this.c($$t.$hv.pendingValueNeedleBrushProperty)}},ez:function(){return this.bb($$t.$hv.pendingValueNeedleBrushProperty)},reserveFirstSlice:function(a){if(arguments.length===1){this.g($$t.$hv.reserveFirstSliceProperty,a);return a}else{return this.c($$t.$hv.reserveFirstSliceProperty)}},smallIncrement:function(a){if(arguments.length===1){this.g($$t.$hv.smallIncrementProperty,a);return a}else{return this.c($$t.$hv.smallIncrementProperty)}},tickBrush:function(a){if(arguments.length===1){this.g($$t.$hv.tickBrushProperty,a);return a}else{return this.c($$t.$hv.tickBrushProperty)}},e1:function(){return this.bb($$t.$hv.tickBrushProperty)},ticks:function(a){if(arguments.length===1){this.g($$t.$hv.ticksProperty,a);return a}else{return this.c($$t.$hv.ticksProperty)}},trackStartColor:function(a){if(arguments.length===1){this.g($$t.$hv.trackStartColorProperty,a);return a}else{return this.c($$t.$hv.trackStartColorProperty)}},e7:function(){return this.bb($$t.$hv.trackStartColorProperty)},trackEndColor:function(a){if(arguments.length===1){this.g($$t.$hv.trackEndColorProperty,a);return a}else{return this.c($$t.$hv.trackEndColorProperty)}},e5:function(){return this.bb($$t.$hv.trackEndColorProperty)},value:function(a){if(arguments.length===1){this.g($$t.$hv.valueProperty,a);return a}else{return this.c($$t.$hv.valueProperty)}},valueNeedleBrush:function(a){if(arguments.length===1){this.g($$t.$hv.valueNeedleBrushProperty,a);return a}else{return this.c($$t.$hv.valueNeedleBrushProperty)}},e3:function(){return this.bb($$t.$hv.valueNeedleBrushProperty)},dw:function(){return this.reserveFirstSlice()},d0:function(a,b){this.en();var c=this.dw();var d=(a.d-a.e)/(c?this.dy.count():this.dy.count()-1);var e=a.e;if(c){e+=d}for(var f=1,g=this.dy.count();f<g;f++){var h=this.dy.__inner[f];if(b<h){var i=this.dy.__inner[f-1];var j=(b-i)/(h-i);e+=d*j;break}e+=d}return e},d7:function(a,b){var c=b.d();var d=c.b();var e=c.a();var f=this.d0(d,e);var g=$$t.$cr.p(this.menu().af().j(),f);return{__x:g.__x-a.b()/2,__y:g.__y-a.a()/2,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName}},ei:function(){if(!this.ar()){this.dz=NaN;this.el(NaN)}},du:function(a,b,c,d,e){var $self=this;var f=function(){var $ret=new $$t.hx;$ret.j=$$t.$cr.p(b,$$t.$cr.m(a,e,b));$ret.i=$$t.$cr.p(c,$$t.$cr.m(a,e,c));return $ret}();f.b(1);f.e(d);return f},ds:function(a,b,c,d){var e=new $$t.hj;e.d=1;e.g=1;e.c=c.toString();e.b=$$t.$cr.p(b,$$t.$cr.m(a,d,b));return e},ej:function(a,b){switch(b.propertyName()){case"Count":this.dv=false;break}},ek:function(){this.dv=true;this.dy.clear();var a=this.ticks();if(null!=a){this.dy.addRange(a)}this.dy.sort()},el:function(a){if(a==this.pendingValue()){return}this.pendingValue(a)},em:function(a){this.value(a)},en:function(){if(!this.dv){this.ek()}},d4:function(a,b){this.en();var c=this.dy.count();if(b==null||c==0){return NaN}var d;if(c==1){d=this.dy.__inner[0]}else{var e=this.dw();var f=(b.d-b.e)/(e?c:c-1);var g=b.e;if(g<-3.14159265358979){g+=6.28318530717959}if(a<g){a+=6.28318530717959}if(e){g+=f}if(a<g){d=this.dy.__inner[0]}else{d=this.dy.__inner[c-1];for(var h=0;h<c-1;h++){if(a<g+f){var i=1-(g+f-a)/f;var j=this.dy.__inner[h];var k=this.dy.__inner[h+1];var l=(k-j)*i+j;var m=l%this.smallIncrement();l-=m;if(Math.abs(m)>this.smallIncrement()/2){l+=this.smallIncrement()}d=l;break}g+=f}}}return d},pendingValueChanged:null,valueChanged:null,$type:new $.ig.Type("RadialMenuNumericGauge",$$t.$ay.$type)},true);$.ig.util.defType("RadialMenuItemFrame:he","Object",{d:null,c:null,init:function(){$.ig.$op.init.call(this);this.d=new $$t.bq($$t.$cn.$type,0);this.c=new $$t.bq($$t.$hj.$type,0)},b:function(){return this.d},a:function(){return this.c},e:function(a,b,c){},$type:new $.ig.Type("RadialMenuItemFrame",$.ig.$ot)},true);$.ig.util.defType("RadialMenuNumericGaugeFrame:hw","RadialMenuItemFrame",{f:null,g:null,k:null,j:null,init:function(){$$t.$he.init.call(this);this.g=new $$t.hx;this.b().add(this.g);this.f=new $$t.hx;this.b().add(this.f)},e:function(a,b,c){var d;var e;var f=$.ig.util.cast($$t.$hy.$type,a);if(this.i()!=null){f.valueNeedle(new $$t.h0);f.valueNeedle().needlePath(new $$t.hc(1,"ValueNeedle",b(this.i())));var h=this.a().getEnumerator();while(h.moveNext()){var g=h.current();if(g.a==this.i()){d=c(g);e=$$t.$et.a(d,null);f.valueNeedle().label($$t.$gl.fromTextElement(d,e));break}}}if(this.h()!=null&&this.h().b()>0){f.editValueNeedle(new $$t.h0);f.editValueNeedle().label(null);f.editValueNeedle().needlePath(new $$t.hc(1,"EditValueNeedle",b(this.h())))}f.tickmarks(new $$t.hz);var j=this.a().getEnumerator();while(j.moveNext()){var i=j.current();var k=$.ig.util.cast($$t.$cn.$type,i.a);if(k==this.i()){continue}var l=new $$t.h2;d=c(i);e=$$t.$et.a(d,null);l.label($$t.$gl.fromTextElement(d,e));l.tickPath(new $$t.hc(1,"tickmark",b(k)));f.tickmarks().add(l)}f.trackArcs(new $$t.h1);var n=this.b().getEnumerator();while(n.moveNext()){var m=n.current();if(m==this.g||m==this.f){continue}if(m.c==this.g){f.valueTickLine(new $$t.hc(1,"valueTickLine",b(m)))}else if($.ig.util.cast($$t.$cs.$type,m)!==null){f.trackArcs().add(new $$t.hc(1,"trackArc",b(m)))}}},h:function(){return this.f},i:function(){return this.g},$type:new $.ig.Type("RadialMenuNumericGaugeFrame",$$t.$he.$type)},true);$.ig.util.defType("RadialMenuNumericItem:h3","RadialMenuItem",{staticInit:function(){},init:function(){$$t.$dm.init.call(this);this.iconOverlay($$t.$h5.e)},a1:function(a,b){var c=$$t.$dm.a1.call(this,a,b);if(isNaN(c)){var e=b.getEnumerator();while(e.moveNext()){var d=e.current();var f=$.ig.util.cast($$t.$hv.$type,d.item());if(f!=null){var g=f.pendingValue();if(isNaN(g)){g=f.value()}if(!isNaN(g)){var h=a.e+(a.d-a.e)/2;var i=f.d0(d,g);c=h-i}}}}return c},cb:function(a,b,c){if(a=="Value"){this.et(c)}$$t.$dm.cb.call(this,a,b,c)},value:function(a){if(arguments.length===1){this.g($$t.$h3.valueProperty,a);return a}else{return this.c($$t.$h3.valueProperty)}},fc:function(a){this.value(a)},valueChanged:null,$type:new $.ig.Type("RadialMenuNumericItem",$$t.$dm.$type)},true);$.ig.util.defType("RadialMenuFrame:cl","Object",{f:null,a:null,e:null,d:null,u:null,t:null,v:null,w:null,x:null,ag:null,ae:null,p:null,n:null,ad:null,init:function(){$.ig.$op.init.call(this);this.f=new $$t.cm;this.a=new $$t.ct;this.u=new $$t.bq($$t.$cs.$type,0);this.v=new $$t.bq($$t.$cs.$type,0);this.w=new $$t.bq($$t.$cs.$type,0);this.x=new $$t.bq($$t.$cs.$type,0);this.t=new $$t.bq($$t.$cs.$type,0);this.d=new $$t.cm;this.e=new $$t.cm;this.ae=new $$t.bq($$t.$dh.$type,0);this.ag=new $$t.bq($$t.$hs.$type,0);this.n=new $$t.da($$t.$dh.$type,$$t.$he.$type,0);this.p=new $$t.da($$t.$cn.$type,$$t.$ay.$type,0);this.ad=new $$t.bq($$t.$dh.$type,0)},i:function(){return this.f},b:function(){return this.a},g:function(){return this.d},h:function(){return this.e},z:function(){return this.u},y:function(){return this.t},aa:function(){return this.v},ab:function(){return this.w},ac:function(){return this.x},af:function(){return this.ae},ah:function(){return this.ag},_am:null,am:function(value){if(arguments.length===1){this._am=value;return value}else{return this._am}},q:function(){return this.p},o:function(){return this.n},r:function(){return this.ad},_j:null,j:function(value){if(arguments.length===1){this._j=value;return value}else{return this._j}},_k:null,k:function(value){if(arguments.length===1){this._k=value;return value}else{return this._k}},ak:0,al:0,_ai:0,ai:function(value){if(arguments.length===1){this._ai=value;return value}else{return this._ai}},_aj:0,aj:function(value){if(arguments.length===1){this._aj=value;return value}else{return this._aj}},c:function(a){var c=this.ae.getEnumerator();while(c.moveNext()){var b=c.current();if(b.item()==a){return b}}return null},l:function(a,b){var $self=this;var c=$self.s(b);var d;var f=c.getEnumerator();while(f.moveNext()){var e=f.current();if(function(){var $ret=$self.p.tryGetValue(e,d);d=$ret.value;return $ret.ret}()&&d==a){return e}}return null},s:function(a){var b;switch(a){case 2:b=this.w;break;case 3:b=this.x;break;case 1:b=this.v;break;case 5:b=this.t;break;case 4:b=this.ag;break;case 0:b=this.u;break;default:$$t.$di.b(false,"Unrecognized part:"+a);return null}return b},m:function(a){var c=this.n.keys().getEnumerator();while(c.moveNext()){var b=c.current();if(b.item()==a){if(this.ad.contains(b)){return true}this.ad.add(b);return true}}return false},$type:new $.ig.Type("RadialMenuFrame",$.ig.$ot)},true);$.ig.util.defType("TextDefinition:hj","Object",{init:function(){$.ig.$op.init.call(this)},c:null,e:null,d:null,g:null,b:null,a:null,f:null,$type:new $.ig.Type("TextDefinition",$.ig.$ot)},true);$.ig.util.defType("RadialMenuItemLevel:dl","Object",{i:null,b:null,m:null,e:null,s:0,n:0,a:null,k:null,j:false,o:0,x:null,init:function(a,b,c,d,e){this.n=NaN;$.ig.$op.init.call(this);this.i=a;this.b=b;this.e=c;this.k=d;this.x=e;this.ab(this.k,true)},y:function(){return this.x},c:function(a){if(arguments.length===1){this.a=a;return a}else{return this.a}},l:function(){if(this.m==null){this.aa()}return this.m},d:function(){return this.b},f:function(){return this.e},r:function(){return this.o},w:function(){if(this.m==null){this.aa()}return this.s},ad:function(){this.j=true;this.ab(this.k,false);this.ag()},g:function(a){var b=this.u(a);return b<0?null:this.l().item(b)},u:function(a){if(a!=null){var b=this.l();for(var c=0,d=b.count();c<d;c++){if(b.item(c).item()==a){return c}}}return-1},v:function(a){var b=this.l();var c=Number.MAX_VALUE;var d=-1;a=$$t.$cr.j(a);for(var e=0,f=b.count();e<f;e++){var g=b.item(e);var h=g.e;var i=g.d;while(h<-3.14159265358979){h+=6.28318530717959;i+=6.28318530717959}while(i>3.14159265358979){h-=6.28318530717959;i-=6.28318530717959}if(h<=a&&i>=a){return e}var j=h+(i-h)/2;j=$$t.$cr.j(j);var k=Math.abs(j-a);if(k<c){c=k;d=e}}return d},h:function(a,b){var c=this.l();var d;if(a==null){d=this.v(this.r())}else{d=this.u(a);if(d>=0&&b){d=d==c.count()?0:d+1}}if(!b){d=d==0?c.count()-1:d-1}if(d<0){return null}if(d==c.count()){d=0}var e=c.item(d);if(a!=null){if(e==this.h(null,b)){return null}}return e},p:function(a,b){var c=0;var d=(c+this.i.rotationInDegrees())*3.14159265358979/180;d+=(this.i.rotationAsPercentageOfWedge()+a)*b;d=$$t.$cr.j(d);return d},q:function(){var a=Math.max(this.w(),this.i.minWedgeCount());return 6.28318530717959/a},ah:function(a){var b=this.l();var c=this.i.wedgePaddingInDegrees()*3.14159265358979/180;var d=c/2;var e=this.q();var f=this.p(a,e);this.o=f;var h=b.getEnumerator();while(h.moveNext()){var g=h.current();var i=f+g.f*e+d;var j=i+e*g.g-c;if(j<i){var k=(j-i)/2;i+=k;j=i}g.e=i;g.d=j}if(isNaN(this.n)){if(this.b!=null&&this.b.autoRotateChildren()){var l=this.e.g(this.b);if(l!=null){this.n=this.b.a1(l,b)}}if(isNaN(this.n)){this.n=0}}if(!isNaN(this.n)&&this.n!=0){var n=b.getEnumerator();while(n.moveNext()){var m=n.current();m.e=m.e+this.n;m.d=m.d+this.n}}},z:function(a,b){var c=!this.j;var e=a.getEnumerator();while(e.moveNext()){var d=e.current();if(d.__visibility==1){continue}if(c){d.propertyChanged=$.ig.Delegate.prototype.combine(d.propertyChanged,this.ac.runOn(this))}var f=d.wedgeSpan();var g=d.wedgeIndex();b.add(new $$t.dh(d,g,f))}var i=a.getEnumerator();while(i.moveNext()){var h=i.current();var j=$.ig.util.cast($$t.$dm.$type,h);if(j!=null&&j.an()&&j.du()==1){if(c){this.ab(j.a0(),true)}this.z(j.a0(),b)}}},aa:function(){var a=new $$t.bq($$t.$dh.$type,0);this.m=a;this.z(this.k,a);a.sort1($$t.$dl.t);var b=new $$t.bq($$t.$d.$type,0);var c=0;var d=0;var f=a.getEnumerator();while(f.moveNext()){var e=f.current();if(e.f<0){d++;e.f=b.count();for(var g=c,h=b.count();g<h;g++){if(!b.__inner[g]){if(g+e.g>=h){break}var i=true;for(var j=1;j<e.g;j++){if(b.__inner[g+j]){g+=j;i=false;break}}if(!i){continue}e.f=g;if(g==c){c=g+e.g}break}else if(g==c){c=g+1}}}for(var k=e.f,l=k+e.g;k<l;k++){while(k>=b.count()){b.add(false)}if(!b.__inner[k]){b.__inner[k]=true}}e.e=0;e.d=0}if(d>0&&d!=a.count()){a.sort1($$t.$dl.t)}this.s=b.count()},t:function(a,b){if(a.f>=0){if(b.f<0){return-1}if(a.f==b.f){return 0}else if(a.f<b.f){return-1}else{return 1}}return b.f<0?0:1},ab:function(a,b){var c=$.ig.util.cast($$t.$b6.$type,a);if(null!=c){if(b){c.collectionChanged=$.ig.Delegate.prototype.combine(c.collectionChanged,this.ae.runOn(this))}else{c.collectionChanged=$.ig.Delegate.prototype.remove(c.collectionChanged,this.ae.runOn(this))}}},ac:function(a,b){var c=false;var d=$.ig.util.cast($$t.$dm.$type,a);switch(b.propertyName()){case"CheckedHighlightBrush":case"OuterRingButtonFill":case"OuterRingButtonForeground":case"OuterRingButtonStroke":case"OuterRingButtonStrokeThickness":case"InnerAreaFill":case"InnerAreaStroke":case"InnerAreaStrokeThickness":case"IsEnabled":case"ToolTipResolved":case"DirtyCustomVisuals":case"InvalidateCustomVisuals":c=true;break;case"DisplayAsChecked":c=true;if(d!=null&&d.du()==1){this.af()}break;case"ChildItemPlacement":case"OuterRingButtonType":case"WedgeIndex":case"WedgeSpan":case"VisibilityProxy":c=true;this.af();break}if(c){this.i.dv(this,$.ig.util.cast($$t.$ay.$type,a),b.propertyName())}},ae:function(a,b){this.af();this.i.dv(this,null,null)},af:function(){if(this.m!=null){this.ag();this.m=null}},ag:function(){if(this.m!=null){var b=this.m.getEnumerator();while(b.moveNext()){var a=b.current();a.item().propertyChanged=$.ig.Delegate.prototype.remove(a.item().propertyChanged,this.ac.runOn(this));this.ab(a.item().a0(),false)}}},$type:new $.ig.Type("RadialMenuItemLevel",$.ig.$ot)},true);$.ig.util.defType("RadialMenuItemPosition:dh","Object",{a:null,init:function(a,b,c){$.ig.$op.init.call(this);this.a=a;this.f=b;this.g=c},item:function(){return this.a},f:0,g:0,c:0,h:null,e:0,d:0,$type:new $.ig.Type("RadialMenuItemPosition",$.ig.$ot)},true);$.ig.util.defType("RadialMenuPointerAnimationInfo:hi","Object",{a:null,c:null,e:0,init:function(a,b){$.ig.$op.init.call(this);this.a=a;this.c=b},item:function(){return this.a},d:function(){return this.c},f:function(a){if(arguments.length===1){this.e=a;return a}else{return this.e}},$type:new $.ig.Type("RadialMenuPointerAnimationInfo",$.ig.$ot)},true);$.ig.util.defType("ColorNameCalculator:f4","Object",{b:null,a:null,init:function(){$.ig.$op.init.call(this);this.b=new $$t.da($$t.$an.$type,String,0);this.a=new $$t.da($$t.$an.$type,String,0)},g:function(a,b){this.b.item(a,b)},f:function(a){var $self=this;var b;if(!function(){var $ret=$self.a.tryGetValue(a,b);b=$ret.value;return $ret.ret}()){$self.a.item(a,b=$self.e(a))}return b},e:function(a){var b=Number.MAX_VALUE;var c=null;var e=this.b.getEnumerator();while(e.moveNext()){var d=e.current();var f=$$t.$f4.c(d.key(),a);if(f<b){b=f;c=d.value()}}return c},c:function(a,b){var $self=this;var c;var d;var e;(function(){var $ret=$$t.$f4.h(a,c,d,e);c=$ret.l;d=$ret.a;e=$ret.b;return $ret.ret})();var f;var g;var h;(function(){var $ret=$$t.$f4.h(b,f,g,h);f=$ret.l;g=$ret.a;h=$ret.b;return $ret.ret})();return Math.pow(c-f,2)+Math.pow(d-g,2)+Math.pow(e-h,2)},h:function(a,b,c,d){var e=a.i()/255;var f=a.h()/255;var g=a.g()/255;var h=e*.412453+f*.35758+g*.180423;var i=e*.212671+f*.71516+g*.072169;var j=e*.019334+f*.119193+g*.950227;var k=$$t.$f4.d(h/.95047);var l=$$t.$f4.d(i/1);var m=$$t.$f4.d(j/1.08883);b=116*l-16;c=500*(k-l);d=200*(l-m);return{l:b,a:c,b:d}},d:function(a){if(a>.008856){return Math.pow(a,1/3)}else{return 7.787*a+16/116}},$type:new $.ig.Type("ColorNameCalculator",$.ig.$ot)},true);$.ig.util.defType("RadialMenuUtilities:f3","Object",{f:function(a,b,c){if(a<b){return b}else if(a>c){return c}return a},staticInit:function(){var a=new $$t.f4;var b=a.g.runOn(a);b($$t.$an.n(255,240,248,255),"Alice Blue");b($$t.$an.n(255,250,235,215),"Antique White");b($$t.$an.n(255,0,255,255),"Aqua");b($$t.$an.n(255,127,255,212),"Aquamarine");b($$t.$an.n(255,240,255,255),"Azure");b($$t.$an.n(255,245,245,220),"Beige");b($$t.$an.n(255,255,228,196),"Bisque");b($$t.$an.n(255,0,0,0),"Black");b($$t.$an.n(255,255,235,205),"Blanched Almond");b($$t.$an.n(255,0,0,255),"Blue");b($$t.$an.n(255,138,43,226),"Blue Violet");b($$t.$an.n(255,165,42,42),"Brown");b($$t.$an.n(255,222,184,135),"Burly Wood");b($$t.$an.n(255,95,158,160),"Cadet Blue");b($$t.$an.n(255,127,255,0),"Chartreuse");b($$t.$an.n(255,210,105,30),"Chocolate");b($$t.$an.n(255,255,127,80),"Coral");b($$t.$an.n(255,100,149,237),"Cornflower Blue");b($$t.$an.n(255,255,248,220),"Cornsilk");b($$t.$an.n(255,220,20,60),"Crimson");b($$t.$an.n(255,0,255,255),"Cyan");b($$t.$an.n(255,0,0,139),"Dark Blue");b($$t.$an.n(255,0,139,139),"Dark Cyan");b($$t.$an.n(255,184,134,11),"Dark Goldenrod");b($$t.$an.n(255,169,169,169),"Dark Gray");b($$t.$an.n(255,0,100,0),"Dark Green");b($$t.$an.n(255,189,183,107),"Dark Khaki");b($$t.$an.n(255,139,0,139),"Dark Magenta");b($$t.$an.n(255,85,107,47),"Dark Olive Green");b($$t.$an.n(255,255,140,0),"Dark Orange");b($$t.$an.n(255,153,50,204),"Dark Orchid");b($$t.$an.n(255,139,0,0),"Dark Red");b($$t.$an.n(255,233,150,122),"Dark Salmon");b($$t.$an.n(255,143,188,143),"Dark Sea Green");b($$t.$an.n(255,72,61,139),"Dark Slate Blue");b($$t.$an.n(255,47,79,79),"Dark Slate Gray");b($$t.$an.n(255,0,206,209),"Dark Turquoise");b($$t.$an.n(255,148,0,211),"Dark Violet");b($$t.$an.n(255,255,20,147),"Deep Pink");b($$t.$an.n(255,0,191,255),"Deep Sky Blue");b($$t.$an.n(255,105,105,105),"Dim Gray");b($$t.$an.n(255,30,144,255),"Dodger Blue");b($$t.$an.n(255,178,34,34),"Firebrick");b($$t.$an.n(255,255,250,240),"Floral White");b($$t.$an.n(255,34,139,34),"Forest Green");b($$t.$an.n(255,255,0,255),"Fuchsia");b($$t.$an.n(255,220,220,220),"Gainsboro");b($$t.$an.n(255,248,248,255),"Ghost White");b($$t.$an.n(255,255,215,0),"Gold");b($$t.$an.n(255,218,165,32),"Goldenrod");b($$t.$an.n(255,128,128,128),"Gray");b($$t.$an.n(255,0,128,0),"Green");b($$t.$an.n(255,173,255,47),"Green Yellow");b($$t.$an.n(255,240,255,240),"Honeydew");b($$t.$an.n(255,255,105,180),"Hot Pink");b($$t.$an.n(255,205,92,92),"Indian Red");b($$t.$an.n(255,75,0,130),"Indigo");b($$t.$an.n(255,255,255,240),"Ivory");b($$t.$an.n(255,240,230,140),"Khaki");b($$t.$an.n(255,230,230,250),"Lavender");b($$t.$an.n(255,255,240,245),"Lavender Blush");b($$t.$an.n(255,124,252,0),"Lawn Green");b($$t.$an.n(255,255,250,205),"Lemon Chiffon");b($$t.$an.n(255,173,216,230),"Light Blue");b($$t.$an.n(255,240,128,128),"Light Coral");b($$t.$an.n(255,224,255,255),"Light Cyan");b($$t.$an.n(255,250,250,210),"Light Goldenrod Yellow");b($$t.$an.n(255,211,211,211),"Light Gray");b($$t.$an.n(255,144,238,144),"Light Green");b($$t.$an.n(255,255,182,193),"Light Pink");b($$t.$an.n(255,255,160,122),"Light Salmon");b($$t.$an.n(255,32,178,170),"Light Sea Green");b($$t.$an.n(255,135,206,250),"Light Sky Blue");b($$t.$an.n(255,119,136,153),"Light Slate Gray");b($$t.$an.n(255,176,196,222),"Light Steel Blue");b($$t.$an.n(255,255,255,224),"Light Yellow");b($$t.$an.n(255,0,255,0),"Lime");b($$t.$an.n(255,50,205,50),"Lime Green");b($$t.$an.n(255,250,240,230),"Linen");b($$t.$an.n(255,255,0,255),"Magenta");b($$t.$an.n(255,128,0,0),"Maroon");b($$t.$an.n(255,102,205,170),"Medium Aquamarine");b($$t.$an.n(255,0,0,205),"Medium Blue");b($$t.$an.n(255,186,85,211),"Medium Orchid");b($$t.$an.n(255,147,112,219),"Medium Purple");b($$t.$an.n(255,60,179,113),"Medium Sea Green");b($$t.$an.n(255,123,104,238),"Medium Slate Blue");b($$t.$an.n(255,0,250,154),"Medium Spring Green");b($$t.$an.n(255,72,209,204),"Medium Turquoise");b($$t.$an.n(255,199,21,133),"Medium Violet Red");b($$t.$an.n(255,25,25,112),"Midnight Blue");b($$t.$an.n(255,245,255,250),"Mint Cream");b($$t.$an.n(255,255,228,225),"Misty Rose");b($$t.$an.n(255,255,228,181),"Moccasin");b($$t.$an.n(255,255,222,173),"Navajo White");b($$t.$an.n(255,0,0,128),"Navy");b($$t.$an.n(255,253,245,230),"Old Lace");b($$t.$an.n(255,128,128,0),"Olive");b($$t.$an.n(255,107,142,35),"Olive Drab");b($$t.$an.n(255,255,165,0),"Orange");b($$t.$an.n(255,255,69,0),"Orange Red");b($$t.$an.n(255,218,112,214),"Orchid");b($$t.$an.n(255,238,232,170),"Pale Goldenrod");b($$t.$an.n(255,152,251,152),"Pale Green");b($$t.$an.n(255,175,238,238),"Pale Turquoise");b($$t.$an.n(255,219,112,147),"Pale Violet Red");b($$t.$an.n(255,255,239,213),"Papaya Whip");b($$t.$an.n(255,255,218,185),"Peach Puff");b($$t.$an.n(255,205,133,63),"Peru");b($$t.$an.n(255,255,192,203),"Pink");b($$t.$an.n(255,221,160,221),"Plum");b($$t.$an.n(255,176,224,230),"Powder Blue");b($$t.$an.n(255,128,0,128),"Purple");b($$t.$an.n(255,255,0,0),"Red");b($$t.$an.n(255,188,143,143),"Rosy Brown");b($$t.$an.n(255,65,105,225),"Royal Blue");b($$t.$an.n(255,139,69,19),"Saddle Brown");b($$t.$an.n(255,250,128,114),"Salmon");b($$t.$an.n(255,244,164,96),"Sandy Brown");b($$t.$an.n(255,46,139,87),"Sea Green");b($$t.$an.n(255,255,245,238),"Sea Shell");b($$t.$an.n(255,160,82,45),"Sienna");b($$t.$an.n(255,192,192,192),"Silver");b($$t.$an.n(255,135,206,235),"Sky Blue");b($$t.$an.n(255,106,90,205),"Slate Blue");b($$t.$an.n(255,112,128,144),"Slate Gray");b($$t.$an.n(255,255,250,250),"Snow");b($$t.$an.n(255,0,255,127),"Spring Green");b($$t.$an.n(255,70,130,180),"Steel Blue");b($$t.$an.n(255,210,180,140),"Tan");b($$t.$an.n(255,0,128,128),"Teal");b($$t.$an.n(255,216,191,216),"Thistle");b($$t.$an.n(255,255,99,71),"Tomato");b($$t.$an.n(255,64,224,208),"Turquoise");b($$t.$an.n(255,238,130,238),"Violet");b($$t.$an.n(255,245,222,179),"Wheat");b($$t.$an.n(255,255,255,255),"White");b($$t.$an.n(255,245,245,245),"White Smoke");b($$t.$an.n(255,255,255,0),"Yellow");b($$t.$an.n(255,154,205,50),"Yellow Green");$$t.$f3.a=a},t:function(a,b){return $$t.$an.n(a.f(),Math.min(Math.max(a.i()+b,0),255),Math.min(Math.max(a.h()+b,0),255),Math.min(Math.max(a.g()+b,0),255))},w:function(a,b){b=Array.prototype.slice.call(arguments,1);var c=$$t.$f3.e(a);var d=-1;var e=$$t.$f3.x;for(var g=0;g<b.length;g++){var f=b[g];var h=$$t.$f3.e(f);var i=h>c?(h+.05)/(c+.05):(c+.05)/(h+.05);if(i>d){d=i;e=f}}return e},v:function(a){var b=$$t.$f3.e(a);var c=1.05/(b+.05);var d=(b+.05)/.05;return d>c?$$t.$f3.u:$$t.$f3.y},c:function(a,b,c,d){var e=new $$t.cx(1,0,0,b.b(),b.a());switch(c){case 0:case 3:e.x=a.__x;break;case 2:e.x=a.__x-b.b();break;case 1:e.x=a.__x-b.b()/2;break}switch(d){case 0:case 3:e.y=a.__y;break;case 2:e.y=a.__y-b.a();break;case 1:e.y=a.__y-b.a()/2;break}return e},e:function(a){var b=2.2;var c=Math.pow(a.i()/255,b)*.2126+Math.pow(a.h()/255,b)*.7152+Math.pow(a.g()/255,b)*.0722;return c},b:function(){return $$t.$f3.a},r:function(a){var $self=this;return function(){var $ret=new $$t.bn;$ret.fill(a.colorString());return $ret}()},d:function(a,b){return a.f()==b.f()&&a.i()==b.i()&&a.h()==b.h()&&a.g()==b.g()},$type:new $.ig.Type("RadialMenuUtilities",$.ig.$ot)},true);$.ig.util.defType("RadialMenuVisualData:gh","Object",{init:function(){$.ig.$op.init.call(this)},_viewport:null,viewport:function(value){if(arguments.length===1){this._viewport=value;return value}else{return this._viewport}},_menuArea:null,menuArea:function(value){if(arguments.length===1){this._menuArea=value;return value}else{return this._menuArea}},_outerRing:null,outerRing:function(value){if(arguments.length===1){this._outerRing=value;return value}else{return this._outerRing}},_innerRing:null,innerRing:function(value){if(arguments.length===1){this._innerRing=value;return value}else{return this._innerRing}},_innerRingFocus:null,innerRingFocus:function(value){if(arguments.length===1){this._innerRingFocus=value;return value}else{return this._innerRingFocus}},_items:null,items:function(value){if(arguments.length===1){this._items=value;return value}else{return this._items}},_colorWellPreviews:null,colorWellPreviews:function(value){if(arguments.length===1){this._colorWellPreviews=value;return value}else{return this._colorWellPreviews}},_itemOpacity:0,itemOpacity:function(value){if(arguments.length===1){this._itemOpacity=value;return value}else{return this._itemOpacity}},_outerPathOpacity:0,outerPathOpacity:function(value){if(arguments.length===1){this._outerPathOpacity=value;return value}else{return this._outerPathOpacity}},_itemToolTip:null,itemToolTip:function(value){if(arguments.length===1){this._itemToolTip=value;return value}else{return this._itemToolTip}},serialize:function(){var a=new $$t.ep;a.f("{");var b=false;a.f("viewPort: { left: "+this.viewport().left()+", top: "+this.viewport().top()+", width: "+this.viewport().width()+", height: "+this.viewport().height()+"}");a.f(", itemOpacity: "+this.itemOpacity());a.f(", outerPathOpacity: "+this.outerPathOpacity());b=true;b=$$t.$gl.serializeItem(a,"menuArea",this.menuArea(),!b)||b;b=$$t.$gl.serializeItem(a,"outerRing",this.outerRing(),!b)||b;b=$$t.$gl.serializeItem(a,"innerRing",this.innerRing(),!b)||b;b=$$t.$gl.serializeItem(a,"innerRingFocus",this.innerRingFocus(),!b)||b;b=$$t.$gl.serializeItems(a,"items",this.items(),!b)||b;b=$$t.$gl.serializeItems(a,"colorWellPreviews",this.colorWellPreviews(),!b)||b;a.f("}");return a.b()},$type:new $.ig.Type("RadialMenuVisualData",$.ig.$ot,[$$t.$eo.$type])},true);$.ig.util.defType("RadialMenuItemVisualData:hd","Object",{init:function(){$.ig.$op.init.call(this)},_outerRingPath:null,outerRingPath:function(value){if(arguments.length===1){this._outerRingPath=value;return value}else{return this._outerRingPath}},_outerRingArrowPath:null,outerRingArrowPath:function(value){if(arguments.length===1){this._outerRingArrowPath=value;return value}else{return this._outerRingArrowPath}},_toolAreaPath:null,toolAreaPath:function(value){if(arguments.length===1){this._toolAreaPath=value;return value}else{return this._toolAreaPath}},_checkmarkPath:null,checkmarkPath:function(value){if(arguments.length===1){this._checkmarkPath=value;return value}else{return this._checkmarkPath}},_highlightPath:null,highlightPath:function(value){if(arguments.length===1){this._highlightPath=value;return value}else{return this._highlightPath}},_type:null,type:function(value){if(arguments.length===1){this._type=value;return value}else{return this._type}},_name:null,name:function(value){if(arguments.length===1){this._name=value;return value}else{return this._name}},serialize:function(){var a=new $$t.ep;a.f("{");this.f(a,false);a.f("}");return a.b()},f:function(a,b){if(b){a.f(", ")}a.f("name: '"+this.name()+"'");a.f(", type: '"+this.type()+"'");b=true;b=$$t.$gl.serializeItem(a,"outerRingPath",this.outerRingPath(),!b)||b;b=$$t.$gl.serializeItem(a,"outerRingArrowPath",this.outerRingArrowPath(),!b)||b;b=$$t.$gl.serializeItem(a,"toolAreaPath",this.toolAreaPath(),!b)||b;b=$$t.$gl.serializeItem(a,"checkmarkPath",this.checkmarkPath(),!b)||b;b=$$t.$gl.serializeItem(a,"highlightPath",this.highlightPath(),!b)||b;return b},i:function(a,b){var c=new $$t.hc(1,a.toString(),b);switch(a){case 0:this.outerRingPath(c);break;case 4:this.outerRingArrowPath(c);break;case 1:this.toolAreaPath(c);break;case 2:this.checkmarkPath(c);break;case 3:this.highlightPath(c);break}},$type:new $.ig.Type("RadialMenuItemVisualData",$.ig.$ot,[$$t.$eo.$type])},true);$.ig.util.defType("RadialMenuItemVisualDataList:g3","List$1",{init:function(){$$t.$bq.init.call(this,$$t.$hd.$type)},$type:new $.ig.Type("RadialMenuItemVisualDataList",$$t.$bq.$type.specialize($$t.$hd.$type))},true);$.ig.util.defType("RadialMenuItemToolTipVisualData:en","Object",{init:function(){$.ig.$op.init.call(this)},_itemType:null,itemType:function(value){if(arguments.length===1){this._itemType=value;return value}else{return this._itemType}},_itemName:null,itemName:function(value){if(arguments.length===1){this._itemName=value;return value}else{return this._itemName}},_toolTipText:null,toolTipText:function(value){if(arguments.length===1){this._toolTipText=value;return value}else{return this._toolTipText}},_relativeTop:0,relativeTop:function(value){if(arguments.length===1){this._relativeTop=value;return value}else{return this._relativeTop}},_relativeLeft:0,relativeLeft:function(value){if(arguments.length===1){this._relativeLeft=value;return value}else{return this._relativeLeft}},_width:0,width:function(value){if(arguments.length===1){this._width=value;return value}else{return this._width}},_height:0,height:function(value){if(arguments.length===1){this._height=value;return value}else{return this._height}},serialize:function(){var a=new $$t.ep;a.f("{");a.f("itemName: '"+this.itemName()+"'");a.f(", itemType: '"+this.itemType()+"'");a.f(", toolTipText: '"+this.toolTipText()+"'");a.f(", relativeTop: "+this.relativeTop());a.f(", relativeLeft: "+this.relativeLeft());a.f(", width: "+this.width());a.f(", height: "+this.height());a.f("}");a.f("}");return a.b()},$type:new $.ig.Type("RadialMenuItemToolTipVisualData",$.ig.$ot,[$$t.$eo.$type])},true);$.ig.util.defType("RadialMenuNumericGaugeVisualData:hy","RadialMenuItemVisualData",{init:function(){$$t.$hd.init.call(this)},_tickmarks:null,tickmarks:function(value){if(arguments.length===1){this._tickmarks=value;return value}else{return this._tickmarks}},_valueNeedle:null,valueNeedle:function(value){if(arguments.length===1){this._valueNeedle=value;return value}else{return this._valueNeedle}},_editValueNeedle:null,editValueNeedle:function(value){if(arguments.length===1){this._editValueNeedle=value;return value}else{return this._editValueNeedle}},_valueTickLine:null,valueTickLine:function(value){if(arguments.length===1){this._valueTickLine=value;return value}else{return this._valueTickLine}},_trackArcs:null,trackArcs:function(value){if(arguments.length===1){this._trackArcs=value;return value}else{return this._trackArcs}},f:function(a,b){b=$$t.$hd.f.call(this,a,b)||b;b=$$t.$gl.serializeItem(a,"valueNeedle",this.valueNeedle(),!b)||b;
b=$$t.$gl.serializeItem(a,"valueTickLine",this.valueTickLine(),!b)||b;b=$$t.$gl.serializeItem(a,"editValueNeedle",this.editValueNeedle(),!b)||b;b=$$t.$gl.serializeItems(a,"tickmarks",this.tickmarks(),!b)||b;b=$$t.$gl.serializeItems(a,"trackArcs",this.trackArcs(),!b)||b;return b},$type:new $.ig.Type("RadialMenuNumericGaugeVisualData",$$t.$hd.$type)},true);$.ig.util.defType("RadialMenuNumericGaugeTickmarkData:h2","Object",{init:function(){$.ig.$op.init.call(this)},_tickPath:null,tickPath:function(value){if(arguments.length===1){this._tickPath=value;return value}else{return this._tickPath}},_label:null,label:function(value){if(arguments.length===1){this._label=value;return value}else{return this._label}},_labelLeft:0,labelLeft:function(value){if(arguments.length===1){this._labelLeft=value;return value}else{return this._labelLeft}},_labelTop:0,labelTop:function(value){if(arguments.length===1){this._labelTop=value;return value}else{return this._labelTop}},_labelWidth:0,labelWidth:function(value){if(arguments.length===1){this._labelWidth=value;return value}else{return this._labelWidth}},_labelHeight:0,labelHeight:function(value){if(arguments.length===1){this._labelHeight=value;return value}else{return this._labelHeight}},serialize:function(){var a=new $$t.ep;a.f("{");a.f("labelLeft: "+this.labelLeft());a.f(", labelTop: "+this.labelTop());a.f(", labelWidth: "+this.labelWidth());a.f(", labelHeight: "+this.labelHeight());$$t.$gl.serializeItem(a,"tickPath",this.tickPath(),false);$$t.$gl.serializeItem(a,"label",this.label(),false);a.f("}");return a.b()},$type:new $.ig.Type("RadialMenuNumericGaugeTickmarkData",$.ig.$ot,[$$t.$eo.$type])},true);$.ig.util.defType("RadialMenuNumericGaugeTickmarkDataList:hz","List$1",{init:function(){$$t.$bq.init.call(this,$$t.$h2.$type)},$type:new $.ig.Type("RadialMenuNumericGaugeTickmarkDataList",$$t.$bq.$type.specialize($$t.$h2.$type))},true);$.ig.util.defType("RadialMenuNumericGaugeNeedleData:h0","Object",{init:function(){$.ig.$op.init.call(this)},_needlePath:null,needlePath:function(value){if(arguments.length===1){this._needlePath=value;return value}else{return this._needlePath}},_label:null,label:function(value){if(arguments.length===1){this._label=value;return value}else{return this._label}},serialize:function(){if(this.label()==null){if(this.needlePath()==null){return"{}"}return"{ needlePath: "+this.needlePath().serialize()+"}"}else if(this.needlePath()==null){return"{ label: "+this.label().serialize()+"}"}else{return"{ needlePath: "+this.needlePath().serialize()+", label: "+this.label().serialize()+"}"}},$type:new $.ig.Type("RadialMenuNumericGaugeNeedleData",$.ig.$ot,[$$t.$eo.$type])},true);$.ig.util.defType("ColorWellPreviewData:hf","Object",{init:function(){$.ig.$op.init.call(this)},_name:null,name:function(value){if(arguments.length===1){this._name=value;return value}else{return this._name}},_type:null,type:function(value){if(arguments.length===1){this._type=value;return value}else{return this._type}},_colorValue:null,colorValue:function(value){if(arguments.length===1){this._colorValue=value;return value}else{return this._colorValue}},_previewPath:null,previewPath:function(value){if(arguments.length===1){this._previewPath=value;return value}else{return this._previewPath}},serialize:function(){var a=new $$t.ep;a.f("{");a.f("name: '"+this.name()+"'");a.f(", type: '"+this.type()+"'");a.f(", colorValue: "+(this.colorValue()!=null?$$t.$gl.serializeColor(this.colorValue()):"null"));$$t.$gl.serializeItem(a,"previewPath",this.previewPath(),false);a.f("}");return a.b()},$type:new $.ig.Type("ColorWellPreviewData",$.ig.$ot,[$$t.$eo.$type])},true);$.ig.util.defType("ColorWellPreviewDataList:g4","List$1",{init:function(){$$t.$bq.init.call(this,$$t.$hf.$type)},$type:new $.ig.Type("ColorWellPreviewDataList",$$t.$bq.$type.specialize($$t.$hf.$type))},true);$.ig.util.defType("KeyTipInfo:g9","Object",{init:function(){$.ig.$op.init.call(this);this.e=null;this.b="\0"},e:null,b:null,h:null,f:null,_g:null,g:function(value){if(arguments.length===1){this._g=value;return value}else{return this._g}},_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},_d:null,d:function(value){if(arguments.length===1){this._d=value;return value}else{return this._d}},_c:null,c:function(value){if(arguments.length===1){this._c=value;return value}else{return this._c}},$type:new $.ig.Type("KeyTipInfo",$.ig.$ot)},true);$.ig.util.defType("KeyTipManager:g5","Object",{h:null,t:null,d:null,f:null,init:function(a){$.ig.$op.init.call(this);this.t=a;this.d=new $$t.bq($$t.$g9.$type,0)},a:function(){return this.d.count()>0},e:function(){return this.d},c:function(a){var b=false;for(var c=0;c<a.length;c++){var d=a.charAt(c);if(!$$t.$g5.b(d)){continue}var e=this.h+d;var f=e.toUpperCase(this.f);var g=false;var i=this.d.getEnumerator();while(i.moveNext()){var h=i.current();if(f==h.f){this.h=null;h.a()(h);return true}else if(h.f.startsWith(f)){b=g=true;break}}if(g){this.h=e}}return b},p:function(){this.k();var a=new $$t.bq($$t.$g9.$type,0);var c=this.d.getEnumerator();while(c.moveNext()){var b=c.current();if(String.isNullOrEmpty(b.f)){a.add(b)}}this.n(a);this.l(a);this.m(a);this.o(a);this.q();this.s()},r:function(){this.d.clear();this.h=null},g:function(a,b){return a.f.compareTo(b.f)},i:function(a){$$t.$di.b(a>=0,"The index is invalid");if(a<0){return null}var b=a;if(b<=9){return b.toString1(this.f)}var c=19;if(b<c){return"0"+(c-b).toString1(this.f)}b-=c;if(b>25){return null}var d=String.fromCharCode("A"+b);return"0"+d},j:function(a){var b=a.e;var c=String.empty();if(String.isNullOrEmpty(b)){return c}for(var d=0;d<b.length;d++){var e=b.charAt(d);if(c.length==2){break}if($$t.$g5.b(e)){c+=e}}return c},k:function(){var a=$$t.$g6.a();this.f=a},l:function(a){for(var b=0;b<a.count();b++){var c=a.__inner[b];var d=c.g();if(String.isNullOrEmpty(d)){continue}var e=this.j(c);var f=String.empty();for(var g=0,h=d.length;g<h;g++){var i=d.charAt(g);if($$t.$g5.b(i)==false){continue}var j=(e+i).toUpperCase(this.f);if(f.length==0){f=j}var k=false;var m=this.d.getEnumerator();while(m.moveNext()){var l=m.current();if(l.f==null){continue}if(l.f.startsWith(j)){k=true;break}}if(k==false){c.f=j;break}}if(String.isNullOrEmpty(c.f)){if(f.length==0){c.f=e}else{c.f=f}}if(!String.isNullOrEmpty(c.f)){a.removeAt(b);b--}}},n:function(a){for(var b=a.count()-1;b>=0;b--){var c=a.__inner[b];if(!String.isNullOrEmpty(c.h)){c.f=c.h;a.removeAt(b)}}},m:function(a){var b=1;for(var c=0;c<a.count();c++){var d=null;do{d=this.i(b++);if(d==null){return}var f=this.d.getEnumerator();while(f.moveNext()){var e=f.current();if(e.f==d){d=null;break}}if(d!=null){a.__inner[c].f=d;a.removeAt(c);c--;break}}while(true)}},o:function(a){for(var b=0;b<a.count();b++){var c=a.__inner[b];c.f=this.j(c);if(String.isNullOrEmpty(c.f)){var d=c.b;if($$t.$g5.b(d)){c.f=d}}if(!String.isNullOrEmpty(c.f)){a.removeAt(b);b--}}},b:function(a){return true},q:function(){for(var a=this.d.count()-1;a>=0;a--){var b=this.d.__inner[a];if(String.isNullOrEmpty(b.f)){this.d.removeAt(a)}}},s:function(){var a=new $$t.bq($$t.$g9.$type,1,this.d);var b=0;var c;do{c=false;a.sort1(this.g.runOn(this));var d=null;for(var e=b;e<a.count()-1;e++){var f=a.__inner[e];var g=a.__inner[e+1];if(f.f==g.f){if(d==null){d=new $$t.bq($$t.$g9.$type,0)}else{d.clear()}d.add(f);d.add(g);for(e+=2;e<a.count();e++){var h=a.__inner[e];if(h.f!=f.f){break}d.add(h)}var i=Math.floor(Math.log10(d.count()-1))+1;for(var j=0;j<d.count();j++){var k=d.__inner[j];var l=(j+1).toString1(this.f).padLeft(i,"0");if(l.length>i){l=l.substr(l.length-i)}k.f=String.concat(k.f,l)}c=true;break}else if(g.f.startsWith(f.f)){f.f=String.concat(f.f,f.f=="0"?"0":"1");c=true;break}else{b=e+1}}}while(c)},$type:new $.ig.Type("KeyTipManager",$.ig.$ot)},true);$.ig.util.defType("KeyTipExtensions:g8","Object",{init:function(){$.ig.$op.init.call(this)},toUpper:function(a){return this.toUpperCase()},toString1:function(a){return this.toString()},$type:new $.ig.Type("KeyTipExtensions",$.ig.$ot)},true);$.ig.util.defType("LiteRect:cx","ValueType",{init:function(initNumber){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}$.ig.ValueType.prototype.init.call(this)},x:0,y:0,width:0,height:0,init1:function(initNumber,a,b,c,d){$.ig.ValueType.prototype.init.call(this);this.x=a;this.y=b;this.width=c;this.height=d},$type:new $.ig.Type("LiteRect",$.ig.ValueType.prototype.$type)},true);$.ig.util.defType("LiteRectExtensions:cy","Object",{init:function(){$.ig.$op.init.call(this)},toRect:function(){if(this.isEmpty()){return $$t.$cz.empty()}return new $$t.cz(0,this.x,this.y,this.width,this.height)},isEqual:function(a){return this.x==a.x&&this.y==a.y&&this.width==a.width&&this.height==a.height},isEmpty:function(){return this.width<0},$type:new $.ig.Type("LiteRectExtensions",$.ig.$ot)},true);$.ig.util.defType("PathBuilder:cu","Object",{h:null,g:null,i:null,init:function(){$.ig.$op.init.call(this);this.h=new $$t.cv},b:function(a,b,c){var $self=this;if(a.isEmpty()){return}var d=c<0?0:1;var e=Math.abs(c)>3.14159265358979;var f=b+c;var g=a.width/2;var h=a.height/2;var i=g*h/Math.sqrt($$t.$cu.a(h*Math.cos(b))+$$t.$cu.a(g*Math.sin(b)));var j=a.x+i*Math.cos(b)+g;var k=a.y+i*Math.sin(b)+h;var l=g*h/Math.sqrt($$t.$cu.a(h*Math.cos(f))+$$t.$cu.a(g*Math.sin(f)));var m=a.x+l*Math.cos(f)+g;var n=a.y+l*Math.sin(f)+h;var o=$$t.$cr.p(a,b);var p=$$t.$cr.p(a,f);j=o.__x;k=o.__y;m=p.__x;n=p.__y;$self.e({__x:j,__y:k,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName},false);$self.i.add(function(){var $ret=new $$t.c2;$ret.d({__x:m,__y:n,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});$ret.f(new $$t.c0(g,h));$ret.c(0);$ret.b(e);$ret.e(d);return $ret}())},c:function(a,b,c,d,e){var f=$$t.$cr.d(a,b,c,d);var g=f.length;if(e){for(var h=0;h<$.ig.intDivide(g,2);h++){var i=f[g-h-1];f[g-h-1]=f[h];f[h]=i}}this.e(f[0],true);var j=new $$t.c6;for(var k=1;k<g;k++){j.b().add(f[k])}this.i.add(j)},d:function(a,b){var $self=this;$self.e(a,false);$self.i.add(function(){var $ret=new $$t.c8(1);$ret.c(b);return $ret}())},f:function(){return this.h},e:function(a,b){if(this.g==null||b){this.g=new $$t.c9;this.i=this.g.__segments;this.g.__startPoint=a;this.h.b().add(this.g)}},a:function(a){return a*a},$type:new $.ig.Type("PathBuilder",$.ig.$ot)},true);$.ig.util.defType("ShapeDefinition:cn","Object",{init:function(){$.ig.$op.init.call(this)},c:null,_g:null,g:function(value){if(arguments.length===1){this._g=value;return value}else{return this._g}},_d:null,d:function(value){if(arguments.length===1){this._d=value;return value}else{return this._d}},_e:null,e:function(value){if(arguments.length===1){this._e=value;return value}else{return this._e}},_b:0,b:function(value){if(arguments.length===1){this._b=value;return value}else{return this._b}},_h:null,h:function(value){if(arguments.length===1){this._h=value;return value}else{return this._h}},a:function(a){},f:function(a){},$type:new $.ig.Type("ShapeDefinition",$.ig.$ot)},true);$.ig.util.defType("Ellipse:cm","ShapeDefinition",{init:function(){$$t.$cn.init.call(this);this.k=new $$t.cq(0)},k:null,i:0,j:0,a:function(a){return $$t.$cr.h($$t.$cr.i(this.k,this.i,this.j,a),0)},f:function(a){var b=new $$t.cu;var c=a/2;b.c(this.k.__x,this.k.__y,this.i-c,this.j-c,false);return b.f()},$type:new $.ig.Type("Ellipse",$$t.$cn.$type)},true);$.ig.util.defType("Annulus:ct","Ellipse",{init:function(){$$t.$cm.init.call(this)},l:0,m:0,a:function(a){if(!$$t.$cm.a.call(this,a)){return false}return $$t.$cr.f($$t.$cr.i(this.k,this.l,this.m,a),0)},f:function(a){var b=new $$t.cu;var c=a/2;b.c(this.k.__x,this.k.__y,this.i-c,this.j-c,false);b.c(this.k.__x,this.k.__y,this.l+c,this.m+c,true);return b.f()},$type:new $.ig.Type("Annulus",$$t.$cm.$type)},true);$.ig.util.defType("TriangleShape:hs","ShapeDefinition",{init:function(){$$t.$cn.init.call(this);this.i=new $$t.cq(0);this.j=new $$t.cq(0);this.k=new $$t.cq(0)},i:null,j:null,k:null,a:function(a){return $$t.$cr.o(this.i,this.j,this.k,a)<=0},f:function(a){var $self=this;var b=new $$t.cv;var c=new $$t.c9;c.__startPoint=$self.i;c.__isClosed=true;c.__segments.add(function(){var $ret=new $$t.c8(1);$ret.c($self.j);return $ret}());c.__segments.add(function(){var $ret=new $$t.c8(1);$ret.c($self.k);return $ret}());b.b().add(c);return b},$type:new $.ig.Type("TriangleShape",$$t.$cn.$type)},true);$.ig.util.defType("AnnularSector:cs","Annulus",{init:function(){$$t.$ct.init.call(this)},p:0,q:0,n:0,o:0,a:function(a){if(!$$t.$ct.a.call(this,a)){return false}return $$t.$cr.f($$t.$cr.i(this.k,this.l,this.m,a),0)&&$$t.$cr.g(this.n,this.o,this.k,this.l,this.m,a)},f:function(a){if($$t.$cr.f(this.q,6.28318530717959)){return $$t.$ct.f.call(this,a)}var b=new $$t.cu;var c=a/2;var d=new $$t.cx(1,this.k.__x-this.i,this.k.__y-this.j,this.i*2,this.j*2);var e=new $$t.cx(1,this.k.__x-this.l,this.k.__y-this.m,this.l*2,this.m*2);var f=this.q;var g=this.o;b.b(d,this.p,f);b.d($$t.$cr.p(d,this.p+f),$$t.$cr.p(e,this.n));b.b(e,this.n,g);b.d($$t.$cr.p(e,this.n+g),$$t.$cr.p(d,this.p));return b.f()},$type:new $.ig.Type("AnnularSector",$$t.$ct.$type)},true);$.ig.util.defType("LineSegmentShape:hx","ShapeDefinition",{init:function(){$$t.$cn.init.call(this);this.j=new $$t.cq(0);this.i=new $$t.cq(0)},j:null,i:null,f:function(a){var $self=this;if(a==0){return null}return function(){var $ret=new $$t.ft;$ret.c($self.j);$ret.b($self.i);return $ret}()},a:function(a){var $self=this;var b=$self.b()==0?0:$self.b()/2;var c=function(d){return d*d};var d=Math.sqrt(c($self.j.__x-$self.i.__x)+c($self.j.__y-$self.i.__y));var e=Math.sqrt(c($self.j.__x-a.__x)+c($self.j.__y-a.__y));var f=Math.sqrt(c($self.i.__x-a.__x)+c($self.i.__y-a.__y));var g=Math.abs(e+f-d);return g<b},$type:new $.ig.Type("LineSegmentShape",$$t.$cn.$type)},true);$.ig.util.defType("ShapeUtilities:cr","Object",{init:function(){$.ig.$op.init.call(this)},e:function(a,b){if(a==b){return true}return Math.abs(a-b)<1e-6},a:function(a,b,c,d,e,f,g){if(b<0){b=0}if(c<0){c=0}if(d<0){d=0}if(e<0){e=0}var h=new $$t.cs;var i=a.x+a.width/2;var j=a.y+a.height/2;h.k={__x:i,__y:j,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName};h.i=b;h.j=c;h.l=d;h.m=e;var k=new $$t.cx(1,i-b,j-c,b*2,c*2);h.p=$$t.$cr.m(a,f,k);h.q=$$t.$cr.m(a,g,k)-h.p;var l=new $$t.cx(1,i-d,j-e,d*2,e*2);h.n=$$t.$cr.m(a,g,l);h.o=$$t.$cr.m(a,f,l)-h.n;if(g>f&&$$t.$cr.h(h.q,0)){h.q=h.q+6.28318530717959;h.o=h.o-6.28318530717959}return h},b:function(a){var b=a.width/2*$$t.$cr.l;var c=a.height/2*$$t.$cr.l;var d=a.x+a.width/2;var e=a.y+a.height/2;return new $$t.cx(1,d-b,e-c,b*2,c*2)},d:function(a,b,c,d){var $self=this;var e=.552284749830794;var f=c*e;var g=d*e;return function(){var $ret=new Array;$ret.add({__x:a,__y:b-d,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});$ret.add({__x:a+f,__y:b-d,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});$ret.add({__x:a+c,__y:b-g,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});$ret.add({__x:a+c,__y:b,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});$ret.add({__x:a+c,__y:b+g,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});$ret.add({__x:a+f,__y:b+d,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});$ret.add({__x:a,__y:b+d,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});$ret.add({__x:a-f,__y:b+d,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});$ret.add({__x:a-c,__y:b+g,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});$ret.add({__x:a-c,__y:b,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});$ret.add({__x:a-c,__y:b-g,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});$ret.add({__x:a-f,__y:b-d,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});$ret.add({__x:a,__y:b-d,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});return $ret}()},p:function(a,b){var c=a.width/2;var d=a.height/2;var e=c*Math.cos(b);var f=d*Math.sin(b);return{__x:e+c+a.x,__y:f+d+a.y,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName}},f:function(a,b){return a>=b||$$t.$cr.e(a,b)},i:function(a,b,c,d){var e=d.__x-a.__x;var f=d.__y-a.__y;var g=e*e/(b*b)+f*f/(c*c);return g-1},o:function(a,b,c,d){var e=d;var f=(b.__x-a.__x)*(c.__y-a.__y)-(c.__x-a.__x)*(b.__y-a.__y);var g=Math.sign(((b.__x-e.__x)*(c.__y-e.__y)-(c.__x-e.__x)*(b.__y-e.__y))/f);var h=Math.sign(((c.__x-e.__x)*(a.__y-e.__y)-(a.__x-e.__x)*(c.__y-e.__y))/f);var i=Math.sign(((a.__x-e.__x)*(b.__y-e.__y)-(b.__x-e.__x)*(a.__y-e.__y))/f);if(g==h&&h==i){return-1}if(g==0||h==0||i==0){return 0}return 1},c:function(a,b,c){if(!a.isEmpty()){a=new $$t.cx(1,a.x,a.y,a.width,a.height);a.x-=b;a.y-=c;a.width=a.width+b*2;a.height=a.height+c*2}return a},g:function(a,b,c,d,e,f){var g=$$t.$cr.k(c,d,e,f);g=$$t.$cr.j(g);var h=a+b;if(h<a){var i=a;a=h;h=i}if(a<-3.14159265358979){return g<h||g>a+6.28318530717959}else if(h>3.14159265358979){return g>a||g<h+6.28318530717959}return a<=g&&g<=h},h:function(a,b){return a<=b||$$t.$cr.e(a,b)},j:function(a){a%=6.28318530717959;if(a>3.14159265358979){a-=6.28318530717959}else if(a<-3.14159265358979){a+=6.28318530717959}return a},k:function(a,b,c,d){return Math.atan2((d.__y-a.__y)*(b/c),d.__x-a.__x)},m:function(a,b,c){var d=$$t.$cr.p(a,b);var e=c.width/2;var f=c.height/2;return $$t.$cr.k({__x:c.x+e,__y:c.y+f,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName},e,f,d)},$type:new $.ig.Type("ShapeUtilities",$.ig.$ot)},true);$.ig.util.defType("TimedOperation:hg","Object",{a:null,init:function(a,b){$.ig.$op.init.call(this);this.a=a;window.setTimeout(this.c.runOn(this),b)},b:function(){this.a=null},c:function(){if(this.a!=null){var a=this.a;this.a=null;a()}},$type:new $.ig.Type("TimedOperation",$.ig.$ot)},true);$.ig.util.defType("XamRadialMenu:bo","Control",{e3:null,e1:null,e0:null,e2:null,ez:null,gd:null,ge:null,gc:null,gb:null,ae:null,bc:null,bb:null,bd:null,az:false,bg:null,bf:null,av:null,be:null,au:null,ai:null,ag:null,b8:null,a0:false,ay:false,a1:false,b5:null,ax:null,al:null,an:null,am:null,ah:null,ad:null,aw:null,bh:null,staticInit:function(){},init:function(){var $self=this;this.az=true;this.as=new $$t.cx(1,0,0,0,0);$$t.$az.init.call(this);this.bh=new $$t.dp(function(a,b){return a.cd(b?$self:null)});this.e3=new $$t.cj;this.e2=new $$t.cj;this.e0=new $$t.cj;this.e1=new $$t.cj;this.ez=new $$t.cj;this.e3.q(100);this.e2.q(200);this.e0.q(300);this.e1.q(400);this.ez.q(500);this.ad=new $$t.g5(this);this.bc=new $$t.da($$t.$ac.$type,$$t.$bq.$type.specialize($$t.$ew.$type),0);this.bb=new $$t.da($$t.$ac.$type,$$t.$ha.$type.specialize($$t.$ew.$type),0);this.bd=new $$t.bq($$t.$hi.$type,0);this.ae=new $$t.cl;this.bg=new $$t.dj($$t.$dl.$type);var a=new $$t.dq(this);this.bf=new $$t.bq($$t.$ew.$type,0);this.av=function(){var $ret=new $$t.ha($$t.$ew.$type);$ret.a(a.bf.runOn(a));$ret.b(a.bg.runOn(a));$ret.i(function(){return a.b1()});$ret.c(function(b){return a.at(b)});return $ret}();this.be=new $$t.bq($$t.$ez.$type,0);this.au=function(){var $ret=new $$t.ha($$t.$ez.$type);$ret.a(a.a1.runOn(a));$ret.b(a.a2.runOn(a));$ret.i(a.by.runOn(a));$ret.c(a.a3.runOn(a));return $ret}();this.ak(a);this.gd=a.b2(0);this.ge=a.b2(1);this.gc=a.b2(3);this.gb=a.b2(2);a.ba();this.bg.push(new $$t.dl(this,null,null,a.w(),null));a.bq()},centerButtonContentWidth:function(a){if(arguments.length===1){this.g($$t.$bo.centerButtonContentWidthProperty,a);return a}else{return this.c($$t.$bo.centerButtonContentWidthProperty)}},centerButtonContentHeight:function(a){if(arguments.length===1){this.g($$t.$bo.centerButtonContentHeightProperty,a);return a}else{return this.c($$t.$bo.centerButtonContentHeightProperty)}},centerButtonClosedFill:function(a){if(arguments.length===1){this.g($$t.$bo.centerButtonClosedFillProperty,a);return a}else{return this.c($$t.$bo.centerButtonClosedFillProperty)}},centerButtonClosedStroke:function(a){if(arguments.length===1){this.g($$t.$bo.centerButtonClosedStrokeProperty,a);return a}else{return this.c($$t.$bo.centerButtonClosedStrokeProperty)}},centerButtonFill:function(a){if(arguments.length===1){this.g($$t.$bo.centerButtonFillProperty,a);return a}else{return this.c($$t.$bo.centerButtonFillProperty)}},centerButtonHotTrackFill:function(a){if(arguments.length===1){this.g($$t.$bo.centerButtonHotTrackFillProperty,a);return a}else{return this.c($$t.$bo.centerButtonHotTrackFillProperty)}},centerButtonHotTrackStroke:function(a){if(arguments.length===1){this.g($$t.$bo.centerButtonHotTrackStrokeProperty,a);return a}else{return this.c($$t.$bo.centerButtonHotTrackStrokeProperty)}},centerButtonContent:function(a){if(arguments.length===1){this.g($$t.$bo.centerButtonContentProperty,a);return a}else{return this.c($$t.$bo.centerButtonContentProperty)}},centerButtonKeyTip:function(a){if(arguments.length===1){this.g($$t.$bo.centerButtonKeyTipProperty,a);return a}else{return this.c($$t.$bo.centerButtonKeyTipProperty)}},centerButtonStroke:function(a){if(arguments.length===1){this.g($$t.$bo.centerButtonStrokeProperty,a);return a}else{return this.c($$t.$bo.centerButtonStrokeProperty)}},centerButtonStrokeThickness:function(a){if(arguments.length===1){this.g($$t.$bo.centerButtonStrokeThicknessProperty,a);return a}else{return this.c($$t.$bo.centerButtonStrokeThicknessProperty)}},currentOpenMenuItem:function(a){if(arguments.length===1){this.g($$t.$bo.currentOpenMenuItemProperty,a);return a}else{return this.c($$t.$bo.currentOpenMenuItemProperty)}},font:function(a){if(arguments.length===1){this.g($$t.$bo.fontProperty,a);return a}else{return this.c($$t.$bo.fontProperty)}},isOpen:function(a){if(arguments.length===1){this.g($$t.$bo.isOpenProperty,a);return a}else{return this.c($$t.$bo.isOpenProperty)}},items:function(){return this.bh},keyTipTemplate:function(a){if(arguments.length===1){this.g($$t.$bo.keyTipTemplateProperty,a);return a}else{return this.c($$t.$bo.keyTipTemplateProperty)}},menuBackground:function(a){if(arguments.length===1){this.g($$t.$bo.menuBackgroundProperty,a);return a}else{return this.c($$t.$bo.menuBackgroundProperty)}},menuItemOpenCloseAnimationDuration:function(a){if(arguments.length===1){this.g($$t.$bo.menuItemOpenCloseAnimationDurationProperty,a);return a}else{return this.c($$t.$bo.menuItemOpenCloseAnimationDurationProperty)}},menuItemOpenCloseAnimationEasingFunction:function(a){if(arguments.length===1){this.g($$t.$bo.menuItemOpenCloseAnimationEasingFunctionProperty,a);return a}else{return this.c($$t.$bo.menuItemOpenCloseAnimationEasingFunctionProperty)}},menuOpenCloseAnimationDuration:function(a){if(arguments.length===1){this.g($$t.$bo.menuOpenCloseAnimationDurationProperty,a);return a}else{return this.c($$t.$bo.menuOpenCloseAnimationDurationProperty)}},menuOpenCloseAnimationEasingFunction:function(a){if(arguments.length===1){this.g($$t.$bo.menuOpenCloseAnimationEasingFunctionProperty,a);return a}else{return this.c($$t.$bo.menuOpenCloseAnimationEasingFunctionProperty)}},minWedgeCount:function(a){if(arguments.length===1){this.g($$t.$bo.minWedgeCountProperty,a);return a}else{return this.c($$t.$bo.minWedgeCountProperty)}},outerRingFill:function(a){if(arguments.length===1){this.g($$t.$bo.outerRingFillProperty,a);return a}else{return this.c($$t.$bo.outerRingFillProperty)}},outerRingThickness:function(a){if(arguments.length===1){this.g($$t.$bo.outerRingThicknessProperty,a);return a}else{return this.c($$t.$bo.outerRingThicknessProperty)}},outerRingStroke:function(a){if(arguments.length===1){this.g($$t.$bo.outerRingStrokeProperty,a);return a}else{return this.c($$t.$bo.outerRingStrokeProperty)}},outerRingStrokeThickness:function(a){if(arguments.length===1){this.g($$t.$bo.outerRingStrokeThicknessProperty,a);return a}else{return this.c($$t.$bo.outerRingStrokeThicknessProperty)}},rotationInDegrees:function(a){if(arguments.length===1){this.g($$t.$bo.rotationInDegreesProperty,a);return a}else{return this.c($$t.$bo.rotationInDegreesProperty)}},rotationAsPercentageOfWedge:function(a){if(arguments.length===1){this.g($$t.$bo.rotationAsPercentageOfWedgeProperty,a);return a}else{return this.c($$t.$bo.rotationAsPercentageOfWedgeProperty)}},wedgePaddingInDegrees:function(a){if(arguments.length===1){this.g($$t.$bo.wedgePaddingInDegreesProperty,a);return a}else{return this.c($$t.$bo.wedgePaddingInDegreesProperty)}},a2:function(){return true},e4:function(){return this.ez},af:function(){return this.ae},e5:function(){return this.e0},a5:function(){return this.bg.peek().y()!=null},e6:function(){return this.e1},e7:function(){return this.e2},b1:function(){return this.bg.count()},e8:function(){return this.e3},_ak:null,ak:function(value){if(arguments.length===1){this._ak=value;return value}else{return this._ak}},as:null,at:function(a){if(arguments.length===1){var b=this.as;this.as=a;if(!b.isEqual(this.as)){this.d6(b,this.as)}return a}else{return this.as}},d6:function(a,b){this.az=true;this.ak().bq()},a3:function(){return this.ad.a()},ba:function(){return this.ai==3&&!this.a3()&&this.ak().q()},exportVisualData:function(){var $self=this;var a=$self.ae;var b=new $$t.gh;b.menuArea(new $$t.hc(1,"MenuArea",$self.gd));b.outerRing(new $$t.hc(1,"OuterRing",$self.ge));b.innerRing(new $$t.hc(1,"InnerRing",$self.gc));b.innerRingFocus(new $$t.hc(1,"InnerRingFocus",$self.gb));b.itemOpacity($self.e1.__opacity);b.outerPathOpacity($self.e3.__opacity);b.viewport($self.at().toRect());var c;var d=new $$t.da($$t.$ay.$type,$$t.$hd.$type,0);b.items(new $$t.g3);var f=a.af().getEnumerator();while(f.moveNext()){var e=f.current();var g=e.item().ah();g.type(e.item().getType().typeName());g.name(e.item().name());d.item(e.item(),g);if(function(){var $ret=a.o().tryGetValue(e,c);c=$ret.value;return $ret.ret}()){c.e(g,function(h){for(var i=0,j=$self.bf.count();i<j;i++){if($self.bf.__inner[i].dataContext()==h){return $self.bf.__inner[i]}}return null},function(h){for(var i=0,j=$self.be.count();i<j;i++){if($self.be.__inner[i].dataContext()==h){return $self.be.__inner[i]}}return null})}b.items().add(g)}$self.dc(0,a,d);$self.dc(4,a,d);$self.dc(1,a,d);$self.dc(2,a,d);$self.dc(3,a,d);var h;if(function(){var $ret=$self.bc.tryGetValue(5,h);h=$ret.value;return $ret.ret}()){b.colorWellPreviews(new $$t.g4);var i;var k=h.getEnumerator();while(k.moveNext()){var j=k.current();var l=$.ig.util.cast($$t.$cn.$type,j.dataContext());$$t.$di.b(null!=l,"Expected to have the associated shape");if(function(){var $ret=a.q().tryGetValue(l,i);i=$ret.value;return $ret.ret}()){var m=$.ig.util.cast($$t.$f6.$type,l.c);var n=new $$t.hf;n.type(m.getType().typeName());n.name(m.name());n.colorValue(m.color());n.previewPath(new $$t.hc(1,"ColorWellPreview",j));b.colorWellPreviews().add(n)}}}$self.ak().au(b);return b},dc:function(a,b,c){var $self=this;var d;if(!function(){var $ret=$self.bc.tryGetValue(a,d);d=$ret.value;return $ret.ret}()){return}var e;var f;var h=d.getEnumerator();while(h.moveNext()){var g=h.current();var i=$.ig.util.cast($$t.$cn.$type,g.dataContext());$$t.$di.b(null!=i,"Expected to have the associated shape");if(i!=null){if(function(){var $ret=b.q().tryGetValue(i,e);e=$ret.value;return $ret.ret}()){if(function(){var $ret=c.tryGetValue(e,f);f=$ret.value;return $ret.ret}()){f.i(a,g)}}}}},provideContainer:function(a){this.ak().a8(a)},containerResized:function(){this.ak().a9()},destroy:function(){this.ak().a8(null)},styleUpdated:function(){this.ak().bu()},flush:function(){this.ak().av()},da:function(){this.az=true;this.ak().bq()},db:function(){var $self=this;var a=$self.ad.e();a.clear();a.add(function(){var $ret=new $$t.g9;$ret.h=$self.centerButtonKeyTip();$ret.a(function(b){return $self.d9()});$ret.c($self.ca.runOn($self));return $ret}());if($self.isOpen()){var b=$self.bg.peek();var c=b.h(null,true);while(c!=null){var d=c.item();var e=d.az(c);var f=null;if(e!=null){a.addRange(e)}else if($self.a4(d)){f=function(g){return $self.dk(g.d().item())}}else if(d.isEnabled()){f=function(g){$self.eb(g.d().item())}}if(f!=null){var g=$.ig.util.cast($$t.$dm.$type,d);a.add(function(){var $ret=new $$t.g9;$ret.h=g!=null?g.keyTip():null;$ret.a(f);$ret.d(c);$ret.c($self.b9.runOn($self));return $ret}())}c=b.h(d,true)}}$self.ad.p();$self.ey();$self.ak().az();$self.ak().bs(a)},de:function(){if(this.a3()){this.ad.r();this.ak().ay();this.ey();if(this.b8!=null){var a=this.b8;this.b8=null;this.d1(a)}}},a7:function(a){var b;if(this.isOpen()){b=this.ae.i()}else{b=this.ae.h()}return b.a(a)},dp:function(a){if(this.bg.peek().y()==a){this.dm()}},dr:function(){switch(this.ai){case 0:case 4:if(!this.a5()){this.eh(null,3,true)}break;case 3:this.ey();this.er();break}},du:function(a){if(a!=null){this.de();this.ak().bp();if(this.isOpen()){this.ak().bt(a)}if(this.aw==null){this.aw=new $$t.hg(this.ds.runOn(this),1e3)}}},a8:function(a){if(this.ad.a()){return this.ad.c(a)}return false},a9:function(a,b){if(this.a3()){switch(a){case 17:case 15:case 14:case 16:case 13:case 12:case 2:this.de();this.eh(null,3);break}}switch(a){case 8:if(this.bg.count()>1){this.dm()}else{this.de();this.ak().bp()}break;case 9:case 3:if(!this.a5()){this.ea(this.ai,this.ag,false)}break;case 2:if(!this.a5()){this.ee(b)}break;case 15:case 17:if(!this.a5()){this.dj(this.ag,a==15)}break;case 14:if(this.isOpen()){this.eh(null,3);this.d9()}break;case 16:if(this.ag!=null&&this.a4(this.ag)){this.dk(this.ag)}break;default:if(this.ak().p(a)){if(this.a3()){this.de();this.ak().bp()}else if(!this.a5()){this.db()}break}return false}return true},dx:function(){this.de();this.ey();this.eh(null,0)},dz:function(a){if(this.al!=null&&this.a3()&&this.ak().q()){this.b8=a;return}this.d1(a)},dy:function(a,b){$$t.$di.b(this.b5==null,"We already have a token? How should we behave?");$$t.$di.b(b!=null,"We need something to identify the pointer");this.d1(a);this.b5=b;if(this.ag!=null&&this.ai==2){this.ag.as(true)}this.a1=this.ai==3;this.ej()},dn:function(a,b){this.ed(a,b,true)},d2:function(a,b){this.ed(a,b,false)},d1:function(a){if(this.a5()){return}if(this.b8!=null&&a.__x==this.b8.__x&&a.__y==this.b8.__y&&this.ak().q()){return}this.de();this.b8=a;var b=this.c5(a,!this.a1);var c=b.a();this.eh(c,b.b());if(c!=null&&c.ar()){var d=this.ae.am();var e=$$t.$cr.k(d,this.ae.j().width/2,this.ae.j().height/2,a);var f=this.ae.c(c);c.ca(e,this.ae.j(),f)}},d0:function(){this.b8=null;this.eh(null,0)},ei:function(a){this.isOpen(a)},ew:function(){var $self=this;var a=$self.az||$self.ak().t();
if($self.az){$self.az=false;if($self.bd.count()>0){$self.bd.clear();$self.eo();$self.er()}var b=$self.bg.peek();var c=0;var d=1;if($self.al!=null){c=1;d=$self.al.transitionProgress()}else if($self.an!=null){d=$self.an.transitionProgress();var e=$self.bg.peek();var f=$self.ah;if(f!=null&&f.f()==e&&$.ig.util.cast($$t.$f6.$type,f.d())!==null){c=4}else if(f!=null&&e.f()==f&&$.ig.util.cast($$t.$f6.$type,e.d())!==null){c=3}else{c=2}}$self.d8($self.ae,b,c,d,$self.ah)}else{var g=$self.ae.r();var h=$self.ae.o();var j=g.getEnumerator();while(j.moveNext()){var i=j.current();var k;if(function(){var $ret=h.tryGetValue(i,k);k=$ret.value;return $ret.ret}()){if(i.item().ay(i,$self.ae,k)){a=true;$self.ev(k.a())}}}g.clear()}if(a){$self.eg($self.ae);$self.ak().as()}},c6:function(a,b){var c=a.item();var d=$.ig.util.cast($$t.$f6.$type,c)!==null?3:2;var e=c.c6();var f=b.b();var g=$$t.$cr.a(b.j(),f.l-2,f.m-2,f.l-(2+d),f.m-(2+d),a.e+.00872664625997165,a.d-.00872664625997165);g.d(e);b.ac().add(g);b.q().item(g,c)},b9:function(a,b){var c=$.ig.util.cast($$t.$dh.$type,b.d());var d=c.e+(c.d-c.e)/2;var e=$$t.$cr.p(this.ae.j(),d);return{__x:e.__x-a.b()/2,__y:e.__y-a.a()/2,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName}},ca:function(a,b){var c=this.ak().b5();var d=this.ae.am();return{__x:d.__x-a.b()/2,__y:d.__y-c.a()/2-a.a(),$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName}},gf:function(a){if(Number.isInfinity(a.b())||Number.isInfinity(a.a())){var b=100;var c=this.ak().b5();var d=$$t.$cr.b(new $$t.cx(1,0,0,c.b(),c.a()));if(Number.isInfinity(a.b())){a.b((this.outerRingThickness()+5+b+5)*2+d.width)}if(Number.isInfinity(a.a())){a.a((this.outerRingThickness()+5+b+5)*2+d.height)}}return a},c7:function(){if(this.aw!=null){this.aw.b();this.aw=null}},a4:function(a){return a.ad()==2},bz:function(a,b){for(var c=0,d=this.bd.count();c<d;c++){var e=this.bd.__inner[c];if(e.item()==a&&e.d()==b){return c}}return-1},c5:function(a,b){var $self=this;var c=null;var d=0;var e=false;if($self.ae.h().a(a)){if(!$self.ay||!b){d=3}}else if($self.b5!=null||$self.isOpen()){var f=$self.isOpen()&&$self.ae.b().a(a);var g=null;if($self.b5!=null&&!f){var h=$self.ae.am();var i=Math.abs(a.__x-h.__x);var j=Math.abs(a.__y-h.__y);var k=Math.sqrt(i*i+j*j);var l=$$t.$cr.k(h,$self.ae.j().width/2,$self.ae.j().height/2,a);var m=$$t.$cr.p($self.ae.j(),l);i=Math.abs(m.__x-h.__x);j=Math.abs(m.__y-h.__y);var n=Math.sqrt(i*i+j*j);e=k>n*3;var o=$self.ae.k();var p=$$t.$cr.k(h,o.width/2,o.height/2,a);a=$$t.$cr.p(o,p)}if(f){var q=$self.ae.z();for(var r=0,s=q.count();r<s;r++){if(q.__inner[r].a(a)){d=1;g=q.__inner[r];break}}}else if(e){d=4}else{var t=$self.ae.aa();for(var u=0,v=t.count();u<v;u++){if(t.__inner[u].a(a)){d=2;g=t.__inner[u];break}}}if(g!=null){if(!function(){var $ret=$self.ae.q().tryGetValue(g,c);c=$ret.value;return $ret.ret}()){d=0}else if(!c.isEnabled()){if(d==2||!$self.a4(c)){c=null;d=0}}else if(d==1&&!$self.a4(c)){d=2}}}return new $$t.em($$t.$ay.$type,$$t.$ae.$type,c,d)},df:function(a){var b=this.bf;var c=this.av;c.e(true);for(var d=b.count()-1;d>=0;d--){c.m(b.__inner[d])}b.clear();var f=a.o().getEnumerator();while(f.moveNext()){var e=f.current();var g=e.key().item().isEnabled()?1:.3;var i=e.value().b().getEnumerator();while(i.moveNext()){var h=i.current();var j=c.n();j.__opacity=g;$$t.$bo.dh(h,j);b.add(j)}}c.e(false)},dg:function(a){var b=this.be;var c=this.au;c.e(true);for(var d=b.count()-1;d>=0;d--){c.m(b.__inner[d])}b.clear();var f=a.o().getEnumerator();while(f.moveNext()){var e=f.current();var g=e.key().item().isEnabled()?1:.3;var i=e.value().a().getEnumerator();while(i.moveNext()){var h=i.current();var j=c.n();j.__opacity=g;j.aa(h.c);j.dataContext(h);j.ab(h.e);var k=h.f;j.l(k.x());j.m(k.y());b.add(j)}}c.e(false)},dh:function(a,b){b.__fill=a.d();b.__stroke=a.b()==0?$$t.$f3.s:a.e();b.z(a.b());b.h(a.h());if(a.g()==null){a.g(a.f(a.b()))}b.ak(a.g());b.dataContext(a)},di:function(a,b,c){var $self=this;var d;var e;if(!function(){var $ret=$self.bc.tryGetValue(a,d);d=$ret.value;return $ret.ret}()){$self.bc.item(a,d=new $$t.bq($$t.$ew.$type,0))}if(!function(){var $ret=$self.bb.tryGetValue(a,e);e=$ret.value;return $ret.ret}()){$self.bb.item(a,e=function(){var $ret=new $$t.ha($$t.$ew.$type);$ret.a($self.ak().bf.runOn($self.ak()));$ret.b($self.ak().bg.runOn($self.ak()));$ret.i(function(){return $self.ak().b3(a)});$ret.c(function(f){return $self.ak().bi(a,f)});return $ret}())}e.e(true);for(var f=d.count()-1;f>=0;f--){e.m(d.__inner[f])}d.clear();var h=b.getEnumerator();while(h.moveNext()){var g=h.current();var i=e.n();var j;var k=1;if(c!=null&&function(){var $ret=c.tryGetValue(g,j);j=$ret.value;return $ret.ret}()&&!j.isEnabled()){k=.3}i.__opacity=k;$$t.$bo.dh(g,i);d.add(i)}e.e(false)},ds:function(){this.ak().az();this.aw=null},dl:function(a){var b=$.ig.util.cast($$t.$ay.$type,a);$$t.$di.b(b==null||b.menu()==this||b.menu()==null,"The item belongs to another menu?");if(b==null&&a!=null){var c=this.bg.peek().d();if(c!=null&&a==c.ba()){b=c}else{var e=this.ak().w().getEnumerator();while(e.moveNext()){var d=e.current();b=d.ae(a);if(b!=null){break}}}}this.dk(b)},dk:function(a){var b=this.bg.peek();var c=b.d();if(c==a){return}while($.ig.util.cast($$t.$dm.$type,a)!==null){var d=a;var e=d.du()==0;if(e){break}a=d.parentItem()}if(c==a){this.ex();return}this.ep();if(a==null||c!=null&&!c.ap(a)){while(this.bg.count()>1){var f=this.bg.pop();f.ad();f.d().b8();var g=this.bg.peek();if(g.d()==a||g.d()!=null&&g.d().ap(a)){break}}}if(a!=null){var h=this.bg.peek().d();var i=new $$t.dj($$t.$ay.$type);var j=a;while(j!=h){i.push(j);j=j.parentItem()}var l=i.getEnumerator();while(l.moveNext()){var k=l.current();if(k.__visibility==1){break}var m=$.ig.util.cast($$t.$dm.$type,k);if(m!=null&&m.du()==1){continue}if(!this.a4(k)){break}if(!k.av()){break}var n=this.bg.peek();var o=k.ao();var p=o?k.a8():null;var q=o?new Array(0):k.a0();var r=new $$t.dl(this,k,n,q,p);this.bg.push(r);if(n!=b){n.ah(0)}n.c(k);k.b9();if(o){break}}}this.ah=b;this.ak().bb();this.el();this.az=true;this.ak().bq();if(b.y()!=null){this.ak().ax(b.y())}var s=this.bg.peek();if(s.y()!=null){this.de();this.eh(null,0);this.ak().br(s.y())}else if(this.ak().q()&&!this.a3()&&s.f()==b){var t=b.g(s.d());if(t!=null){s.ah(0);var u=t.e+(t.d-t.e)/2;var v=Number.MAX_VALUE;var w=null;var y=s.l().getEnumerator();while(y.moveNext()){var x=y.current();var z=x.e+(x.d-x.e)/2;var aa=Math.abs(z-u);if(aa<v&&(x.item().isEnabled()||this.a4(x.item()))){v=aa;w=x}}if(w!=null){this.eh(w.item(),w.item().isEnabled()?2:1)}else{this.eh(null,3)}}}this.ex();if(this.an==null||!this.an.animationActive()){if(this.a3()){this.db()}}},dm:function(){if(this.bg.count()>1){this.dk(this.bg.skip$1($$t.$dl.$type,1).first$1($$t.$dl.$type).d())}},dq:function(a,b){if(!this.al.animationActive()){this.en()}this.az=true;this.ak().bq()},onInitialized:function(){if(this.a0){return}this.a0=true;if(this.currentOpenMenuItem()!=null){this.dl(this.currentOpenMenuItem())}},dw:function(a,b){var c=this.am.transitionProgress();this.ec(c)},ec:function(a){var b=this.bd;for(var c=b.count()-1;c>=0;c--){var d=b.__inner[c];var e=$$t.$f3.f(d.f()+a,0,1);var f=d.item();switch(d.d()){case 0:case 4:break;case 3:var g=$$t.$ho.g(this.centerButtonHotTrackFill(),e,this.isOpen()?this.centerButtonFill():this.centerButtonClosedFill(),0);var h=$$t.$ho.g(this.centerButtonHotTrackStroke(),e,this.isOpen()?this.centerButtonStroke():this.centerButtonClosedStroke(),0);this.es(this.ae.g(),g);this.et(this.ae.g(),h);this.et(this.ae.h(),h);this.ak().a7();break;case 1:var i=this.ae.l(f,0);var j=i!=null?this.ae.l(f,4):null;if(i!=null){i.d($$t.$ho.g(f.dk(),e,f.dg(),0));i.e($$t.$ho.g(f.dp(),e,f.dr(),0))}if(j!=null){j.d($$t.$ho.g(f.dm(),e,f.di(),0))}break;case 2:var k=this.ae.l(f,3);if(null!=k){k.d($$t.$ho.g(f.c6(),e,null,0))}var l=this.ae.l(f,1);if(null!=l){l.d($$t.$ho.g(f.da(),e,f.c8(),0));l.e($$t.$ho.g(f.dc(),e,f.de(),0))}break}}this.ak().bq()},d3:function(a,b){if(!this.an.animationActive()){this.ep()}this.az=true;this.ak().bq()},d4:function(a,b,c){if(b==c){return}if(b==null){var d=$$t.$a6.h(a,$$t.$bo.$type);if(d!=null&&$$t.$hr.getUnderlyingType(d.propertyType())==null&&d.k()!=null&&d.k().b()==c){return}}this.ak().bc(a,b,c);var e=false;switch(a){case"CenterButtonKeyTip":e=false;break;case"CurrentOpenMenuItem":if(this.a0){this.dl(c)}break;case"MenuOpenCloseAnimationDuration":case"MenuOpenCloseAnimationEasingFunction":case"MenuItemOpenCloseAnimationDuration":case $$t.$bo.cu:case"KeyTipTemplate":break;case"MenuBackground":this.es(this.ae.i(),c);e=true;break;case"CenterButtonHotTrackFill":case"CenterButtonHotTrackStroke":case"CenterButtonFill":case"CenterButtonStroke":case"CenterButtonClosedFill":case"CenterButtonClosedStroke":this.er();break;case"CenterButtonStrokeThickness":this.eu(this.ae.g(),c);this.ey();break;case"OuterRingFill":this.es(this.ae.b(),c);break;case"OuterRingStrokeThickness":this.eu(this.ae.b(),c);break;case"OuterRingStroke":this.et(this.ae.b(),c);break;case"CenterButtonContentHeight":case"CenterButtonContentWidth":case"CenterButtonContent":case"OuterRingThickness":case"RotationAsPercentageOfWedge":case"RotationInDegrees":case"MinWedgeCount":case"WedgePaddingInDegrees":e=true;break;case"IsOpen":e=true;this.en();this.ep();var f=c==true;var g=this.e3.__opacity;var h=f?1:0;var i=f?h-g:g-h;if(f){this.ak().a5()}if(i!=0){var j=this.menuOpenCloseAnimationDuration();if(j>0&&this.a2()){this.al=new $$t.hh(g,h,Math.ceil(i*j));this.al.easingFunction(this.menuOpenCloseAnimationEasingFunction());this.al.propertyChanged=$.ig.Delegate.prototype.combine(this.al.propertyChanged,this.dq.runOn(this));this.al.start();this.al.flush()}else if(this.a3()){this.db();if(!f){this.ak().a4()}}}this.er();var k=f?this.opened:this.closed;if(null!=k){k(this,$$t.$ak.empty)}break;default:$$t.$di.b(false,"Missing property:"+a);break}if(e){this.az=true;this.ak().bq()}var l=this.propertyChanged;if(null!=l){switch(a){case"IsOpen":case"CurrentOpenMenuItem":l(this,new $$t.bm(a));break}}},dv:function(a,b,c){var d=true;if(a!=this.bg.peek()){}if(b!=null){switch(c){case"ToolTipResolved":if(b==this.ag){this.c7();this.ak().bt(b)}d=false;break;case"InvalidateCustomVisuals":if(this.af().m(b)){d=false}break;case"IsEnabled":d=false;break}}if(d){this.az=true}this.ak().bq()},d5:function(a){this.ak().bq()},d7:function(){if(!this.isOpen()){this.ay=true;this.ei(true)}},dj:function(a,b){if(!this.isOpen()){return}if(a!=null&&a.aw(b,false)){return}var c=this.bg.peek();var d=c.h(a,b);if(d!=null){var e=d.item();do{if(e.isEnabled()){this.eh(e,2);e.aw(b,true);break}else if(this.a4(e)){this.eh(e,1);break}else{var f=c.h(e,b);if(f!=null){e=f.item()}else{this.eh(null,3);break}}}while(e!=d.item())}else{this.eh(null,3)}},d8:function(a,b,c,d,e){var $self=this;var f=$self.at();if(f.isEmpty()){return}var g=b;if(e!=null&&c!=0&&c!=1&&d<.5){b=e}var h={__x:f.x+f.width/2,__y:f.y+f.height/2,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName};var i=Math.max($self.outerRingThickness(),0);var j=c==1;var k=j?(1-d)*-1:0;var l=j?(1-d)*i:0;var m=d<=.5?d:1-d;var n=!j?m*i:0;var o=f.width/2-l;var p=f.height/2-l;i-=l;var q=Math.min(i,o);var r=Math.min(i,p);var s=$self.ak().b5();var t=$$t.$cr.b(new $$t.cx(1,0,0,s.b(),s.a()));var u=Math.min(t.width/2,o-q);var v=Math.min(t.height/2,p-r);var w=o-q-n;var x=p-r-n;a.am(h);var y=!j?1-m*2*.6:1;a.aj(y);a.j(f);a.ak=o-q;a.al=p-r;a.r().clear();var z=a.i();z.k=h;z.i=o;z.j=p;z.g(null);var aa=a.b();aa.k=h;aa.i=o;aa.j=p;aa.l=w;aa.m=x;aa.g(null);var ab=a.g();ab.k=h;ab.i=u;ab.j=v;ab.g(null);var ac=a.h();ac.k=h;ac.i=ab.i+5;ac.j=ab.j+5;ac.g(null);var ad=b.l();var ae=a.q();ae.clear();var af=a.af();af.clear();af.addRange(ad);b.ah(k);a.ai(k*b.q());var ag=a.z();ag.clear();var ah=a.ah();ah.clear();var ai=a.aa();ai.clear();var aj=a.ac();aj.clear();var ak=a.ab();ak.clear();var al=a.y();al.clear();var am=a.o();am.clear();var an=Math.max(w-1,0)*y;var ao=Math.max(x-1,0)*y;var ap=Math.min(ac.i+5,an)*y;var aq=Math.min(ac.j+5,ao)*y;var ar=Math.max(an-2,0)*y;var as=Math.max(ao-2,0)*y;var at=(an-(an-ap)*.56)*y;var au=(ao-(ao-aq)*.56)*y;var av=Math.max(at-8,ac.i);var aw=Math.max(au-8,ac.j);var ax=Math.min(ac.i+8,av);var ay=Math.min(ac.j+8,aw);var az=new $$t.cx(1,h.__x-an,h.__y-ao,an*2,ao*2);var a0=new $$t.cx(1,h.__x-ap,h.__y-aq,ap*2,aq*2);var a1=a0.height+(az.height-a0.height)*.6;var a2=a0.width+(az.width-a0.width)*.6;var a3=new $$t.cx(1,h.__x-a2/2,h.__y-a1/2,a2,a1);var a4=aa.i-n*2;var a5=aa.j-n*2;var a6=aa.l;var a7=aa.m;var a8=(a4+a6)/2;var a9=(a5+a7)/2;var ba=new $$t.cx(1,h.__x-a8,h.__y-a9,a8*2,a9*2);a.k(a3);var bc=ad.getEnumerator();while(bc.moveNext()){var bb=bc.current();var bd=bb.item();var be=bb.e;var bf=bb.d;var bg=bd.ag(bb,a);if(bg!=null){am.add(bb,bg);$self.ev(bg.a())}var bh=$.ig.util.cast($$t.$f6.$type,bd);var bi=be;var bj=bf;if(bh==null){bi+=.00872664625997165;bj-=.00872664625997165}else{bh.fh()}var bk=be+(bf-be)/2;var bl=$$t.$cr.m(f,bk,a3);if(isNaN(bl)){bl=bk}bb.h=$$t.$cr.p(a3,bl-a.ai());bb.c=bl;var bm=$$t.$cr.a(f,a4,a5,a6,a7,bi,bj);ag.add(bm);ae.item(bm,bd);var bn=$self.b5==null&&bd==$self.ag&&$self.ai==1;var bo=$self.a4(bd);if(bo||bh!=null){var bp=null;if(bo){var bq=$$t.$cr.m(f,bk,ba);var br=$$t.$cr.p(ba,bq);var bs=new $$t.c0(5.5,11);bp=function(){var $ret=new $$t.hs;$ret.j={__x:bs.b(),__y:bs.a()/2,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName};$ret.k={__x:0,__y:bs.a(),$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName};return $ret}();var bt=new $$t.fz;bt.h().add(function(){var $ret=new $$t.f1;$ret.h(bk*180/3.14159265358979);$ret.i(bs.b()/2);$ret.j(bs.a()/2);return $ret}());bt.h().add(function(){var $ret=new $$t.e0;$ret.h(br.__x-bs.b()/2);$ret.i(br.__y-bs.a()/2);return $ret}());bp.h(bt);ah.add(bp);ae.item(bp,bd)}if(bn){if(bp!=null){bp.d(bd.dm())}bm.d(bd.dk());bm.e(bd.dp())}else{if(bp!=null){bp.d(bd.di())}bm.d(bd.dg());bm.e(bd.dr())}bm.b(bd.a5())}var bu;if(bh!=null){bu=$$t.$cr.a(f,ar,as,at,au,be,bf)}else{bu=$$t.$cr.a(f,an,ao,ap,aq,be,bf)}var bv=bd==$self.ag&&$self.ai==2;bu.d(bv?bd.da():bd.c8());bu.e(bv?bd.dc():bd.de());bu.b(bd.a3());ai.add(bu);ae.item(bu,bd);if(bd.an()){var bw=bh!=null?3:1;var bx=bd.c3();var by=$$t.$cr.a(f,aa.l-2,aa.m-2,aa.l-(2+bw),aa.m-(2+bw),bi,bj);by.d(bx);ak.add(by);ae.item(by,bd)}if(bv){$self.c6(bb,a)}}var bz=b.f();if(bz!=null){bz.ah(0);var b1=bz.l().getEnumerator();while(b1.moveNext()){var b0=b1.current();var b2=$.ig.util.cast($$t.$f6.$type,b0.item());if(b2!=null){b2.fh();var b3=$$t.$cr.a(f,av,aw,ax,ay,b0.e,b0.d);b3.d(b2.c8());b3.e(b2.de());b3.b(b2.a3());b3.c=b2;al.add(b3);ae.item(b3,b2)}}}},d9:function(){if(this.bg.count()>1){this.dm()}else{this.ei(!this.isOpen())}},ea:function(a,b,c){if(a==3){if(!c){this.d9()}}else if(b!=null){if(a==1&&this.a4(b)){this.dk(b)}else if(b.isEnabled()){this.eb(b)}}},eb:function(a){if(a!=null){a.b7()}},ed:function(a,b,c){this.em();if(this.b5==null){return}$$t.$di.b(b==this.b5,"Shouldn't we have the same token? Should we ignore this one and wait for the one "+"we expect?");var d=this.ay;this.b5=null;this.ay=false;this.az=true;this.ak().bq();var e=this.ai;var f=this.ag;var g=this.c5(a,true);if(f!=null&&e==2){f.as(false)}var h=c||this.isOpen()||g.a()!=null||f==null||e!=2;this.eh(g.a(),g.b(),true,!h);if(!c){if(this.isOpen()&&e==0&&g.b()==0){var j=this.ae.y().getEnumerator();while(j.moveNext()){var i=j.current();if(i.a(a)){e=3;break}}}this.ea(e,f,d)}if(!h&&this.aw==null&&this.ai==g.b()&&this.ag==g.a()){this.ak().az()}},ee:function(a){if(!this.isOpen()){return}this.de();var b=this.ag;var c=this.ai;var d=(a&4)==4;var e=this.bg.peek();var f=e.g(b);if(b!=null&&c==2){if(b.ax(!d)){return}}do{switch(c){case 2:if(d){f=e.h(b,false)}c=1;break;case 1:if(!d){f=e.h(b,true)}c=2;break;case 3:case 4:case 0:f=e.h(null,!d);c=d?1:2;break}if(f==null){b=null;c=3;break}b=f.item();if(c==2&&b.isEnabled()){break}if(c==1&&this.a4(b)){break}}while(b!=null);this.eh(b,c);if(this.ag!=null&&this.ai==2){this.ag.au(!d)}},eg:function(a){var $self=this;var b=$self.isOpen()?1:0;var c=b;var d=null;if($self.al!=null){c=b=$$t.$f3.f($self.al.transitionProgress(),0,1)}else if($self.an!=null){c=$$t.$f3.f($self.an.transitionProgress(),0,1);c=c<=.5?1-c*2:1-(1-c)*2;var e=a.aj();d=function(){var $ret=new $$t.f2;$ret.j(e);$ret.k(e);$ret.h(a.am().__x);$ret.i(a.am().__y);return $ret}()}$self.e3.__opacity=b;$self.e0.__opacity=($self.ai==4?.3:1)*c;$self.e1.__opacity=$self.e0.__opacity;if(!$$t.$cr.e(a.ai(),0)){var f=function(){var $ret=new $$t.f1;$ret.h(a.ai()*180/3.14159265358979);$ret.i(a.j().width/2);$ret.j(a.j().height/2);return $ret}();if(d==null){d=f}else{var g=new $$t.fz;g.h().add(f);g.h().add(d);d=g}}$self.e1.h(d);$self.e0.h($self.e1.h());$self.e2.__opacity=$self.e0.__opacity;$$t.$bo.dh(a.i(),$self.gd);$$t.$bo.dh(a.b(),$self.ge);$$t.$bo.dh(a.g(),$self.gc);$$t.$bo.dh(a.h(),$self.gb);$self.di(0,a.z(),null);$self.di(4,a.ah(),null);$self.di(1,a.aa(),a.q());$self.di(5,a.y(),a.q());$self.di(2,a.ab(),a.q());$self.di(3,a.ac(),a.q());$self.df(a);$self.dg(a);var h=$self.ak();h.be(a.af());$self.ez.__opacity=$self.ay?.3:1;h.bj(a.am())},eh:function(a,b,c,d){if(b==0||b==4){if(this.ak().q()&&!this.a5()){b=3}}if(b!=this.ai||a!=this.ag){var e=this.ag;var f=this.ai;var g=f==3;this.ag=a;this.ai=b;if(b==3&&this.b5!=null&&!this.isOpen()){this.ej()}else if(g){this.em()}switch(f){case 3:case 1:case 2:this.eo();$$t.$di.b(-1==this.bz(e,f),"How can we already have an animation for this area since we only animate the leav"+"e?");this.bd.add(new $$t.hi(e,f));this.ek();break}var h=b!=0?this.bz(a,b):-1;if(h>=0){this.bd.removeAt(h)}if(g){this.ey()}if(c!=true){this.de()}switch(b){case 4:this.eo();break;case 3:this.ey();this.er();break;case 1:var i=this.ae.l(a,0);var j=this.ae.l(a,4);if(i!=null){i.d(a.dk());i.e(a.dp())}if(j!=null){j.d(a.dm())}break;case 2:var k=this.ae.l(a,3);if(k==null){var l=this.ae.c(a);if(l!=null){this.c6(l,this.ae)}}if(null!=k){k.d(a.c6())}var m=this.ae.l(a,1);if(null!=m){m.d(a.da());m.e(a.dc())};break}if(this.b5!=null&&this.isOpen()){this.ay=true;if(g&&this.a1&&a!=null&&this.a4(a)){this.dk(a)}}if(g&&this.isOpen()){this.a1=false}if(e!=null&&f==2){e.ar(false);e.as(false)}if(a!=null&&b==2){a.ar(true);if(this.b5!=null){a.as(true)}}this.c7();if(a!=null&&!this.a3()){this.ak().bt(a)}else if(d!=true){this.ak().az()}this.ak().bq()}},ej:function(){if(this.isOpen()==false&&this.b5!=null&&this.ai==3){$$t.$di.b(this.ax==null,"There's already a timer?");this.em();this.ax=new $$t.hg(this.d7.runOn(this),2e3)}},ek:function(){if(!this.a2()){if(this.bd.count()>0){this.ec(1);this.bd.clear()}return}if(this.am==null){this.am=new $$t.hh(0,1,250);this.am.propertyChanged=$.ig.Delegate.prototype.combine(this.am.propertyChanged,this.dw.runOn(this))}this.am.start();this.am.flush()},el:function(){this.ep();var a=this.menuItemOpenCloseAnimationDuration();if(a>0&&this.a2()){this.an=new $$t.hh(0,1,a);this.an.easingFunction(this.menuItemOpenCloseAnimationEasingFunction());this.an.propertyChanged=$.ig.Delegate.prototype.combine(this.an.propertyChanged,this.d3.runOn(this));this.an.start();this.an.flush()}},em:function(){if(null!=this.ax){this.ax.b();this.ax=null}},en:function(){if(this.al!=null){this.al.propertyChanged=$.ig.Delegate.prototype.remove(this.al.propertyChanged,this.dq.runOn(this));this.al.stop();this.al=null;if(!this.isOpen()){this.ak().a4()}if(this.a3()){this.db()}}},eo:function(){if(this.am!=null){var a=this.am.transitionProgress();for(var b=this.bd.count()-1;b>=0;b--){var c=this.bd.__inner[b];c.f(c.f()+a);if(c.f()>=1){this.bd.removeAt(b)}}this.am.stop()}},ep:function(){if(this.an!=null){this.ah=null;this.an.propertyChanged=$.ig.Delegate.prototype.remove(this.an.propertyChanged,this.d3.runOn(this));this.an.stop();this.an=null;var a=this.bg.peek();a.c(null);if(this.a3()){this.db()}}},er:function(){var a=this.ai==3&&!this.a3()&&!this.ba();var b=null;var c=null;if(a){b=this.centerButtonHotTrackFill();c=this.centerButtonHotTrackStroke()}else if(!this.isOpen()){b=this.centerButtonClosedFill();c=this.centerButtonClosedStroke()}else{b=this.centerButtonFill();c=this.centerButtonStroke()}this.es(this.ae.g(),b);this.et(this.ae.g(),c);this.et(this.ae.h(),c);this.ak().a7()},es:function(a,b){a.d(b);this.d5(a)},et:function(a,b){a.e(b);this.d5(a)},eu:function(a,b){a.b(b);a.g(null);this.ak().bq()},ev:function(a){var b=this.ak().bx();var d=a.getEnumerator();while(d.moveNext()){var c=d.current();b.aa(c.c);var e=this.ak().b6(b);var f=c.b;c.f=$$t.$f3.c(c.b,e,c.d,c.g).toRect()}},ex:function(){var a=this.bg.peek().d();var b=null;if(a!=null){b=a.ba()}this.currentOpenMenuItem(b)},ey:function(){this.eu(this.ae.h(),this.ba()?this.ae.g().b():0)},closed:null,opened:null,propertyChanged:null,$type:new $.ig.Type("XamRadialMenu",$$t.$az.$type)},true);$.ig.util.defType("CssClassChain$1:ek","Object",{$t:null,f:null,c:null,e:null,d:null,init:function($t,a){this.$t=$t;this.$type=this.$type.specialize(this.$t);$.ig.$op.init.call(this);this.f=a;this.e=new $$t.bq($$t.$ek.$type.specialize(this.$t),0);this.d=new $$t.da(this.$t,$$t.$em.$type.specialize($$t.$el.$type,String),0)},a:function(a){var b=new $$t.ek(this.$t,a);b.c=this;this.e.add(b);return b},b:function(a,b,c){this.d.item(a,new $$t.em($$t.$el.$type,String,b,c));return this},$type:new $.ig.Type("CssClassChain$1",$.ig.$ot)},true);$.ig.util.defType("XamRadialMenuView:dq","Object",{l:false,af:0,ae:0,n:false,_i:null,i:function(value){if(arguments.length===1){this._i=value;return value}else{return this._i}},ai:null,k:null,aj:null,ap:null,f:null,v:null,e:null,g:null,a:null,aq:null,bz:null,ad:null,b4:null,m:false,j:null,am:null,staticInit:function(){var a=new $$t.ek($$t.$a6.$type,"ui-radialmenu");a.b($$t.$bo.fontProperty,0,"12px segoe ui,tahoma,arial,sans-serif").a("ui-radialmenu-backing").b($$t.$bo.menuBackgroundProperty,0,"#FFFFFF").c.a("ui-radialmenu-outerring").b($$t.$bo.outerRingFillProperty,0,"#F1DAEA").b($$t.$bo.outerRingStrokeProperty,1,"transparent").b($$t.$bo.outerRingStrokeThicknessProperty,3,"0.0").c.a("ui-radialmenu-centerbutton").b($$t.$bo.centerButtonFillProperty,0,"#FFFFFF").b($$t.$bo.centerButtonStrokeProperty,1,"#80397B").b($$t.$bo.centerButtonStrokeThicknessProperty,3,"1.0").a("ui-radialmenu-centerbutton-hover").b($$t.$bo.centerButtonHotTrackFillProperty,0,"#EFEFEF").b($$t.$bo.centerButtonHotTrackStrokeProperty,1,"#80397B").c.a("ui-radialmenu-centerbutton-closed").b($$t.$bo.centerButtonClosedFillProperty,0,"#FFFFFF").b($$t.$bo.centerButtonClosedStrokeProperty,1,"#80397B");$$t.$dq.d=a;a=new $$t.ek($$t.$a6.$type,null);a.a("ui-radialmenu-item").b($$t.$ay.foregroundProperty,6,"black").a("ui-radialmenu-item-inner").b($$t.$ay.innerAreaFillProperty,0,"transparent").b($$t.$ay.innerAreaStrokeProperty,1,"transparent").b($$t.$ay.innerAreaStrokeThicknessProperty,3,"1.0").a("ui-radialmenu-item-inner-hover").b($$t.$ay.innerAreaHotTrackFillProperty,0,"transparent").b($$t.$ay.innerAreaHotTrackStrokeProperty,1,"transparent").c.c.a("ui-radialmenu-item-outer").b($$t.$ay.outerRingButtonFillProperty,0,"#80397B").b($$t.$ay.outerRingButtonStrokeProperty,1,"transparent").b($$t.$ay.outerRingButtonForegroundProperty,6,"white").b($$t.$ay.outerRingButtonStrokeThicknessProperty,3,"1.0").a("ui-radialmenu-item-outer-hover").b($$t.$ay.outerRingButtonHotTrackFillProperty,0,"#444444").b($$t.$ay.outerRingButtonHotTrackForegroundProperty,6,"white").b($$t.$ay.outerRingButtonHotTrackStrokeProperty,1,"transparent").c.c.a("ui-radialmenu-item-checkarc").b($$t.$ay.checkedHighlightBrushProperty,0,"#A674A2").c.a("ui-radialmenu-item-hoverarc").b($$t.$ay.highlightBrushProperty,0,"#80397B").c.c.a("ui-radialmenu-gauge").a("ui-radialmenu-gauge-pendingneedle").b($$t.$hv.pendingValueNeedleBrushProperty,0,"#D6A9CE").c.a("ui-radialmenu-gauge-valueneedle").b($$t.$hv.valueNeedleBrushProperty,0,"#A26497").c.a("ui-radialmenu-gauge-tick").b($$t.$hv.tickBrushProperty,0,"#AE5A9D").c.a("ui-radialmenu-gauge-track-start").b($$t.$hv.trackStartColorProperty,6,"rgba(200,142,188,0)").c.a("ui-radialmenu-gauge-track-end").b($$t.$hv.trackEndColorProperty,6,"#C88EBC");$$t.$dq.c=a;var b=new $$t.ek($$t.$el.$type,"ui-radialmenu-tooltip");b.b(1,1,"").b(3,3,"").b(4,4,"").b(2,2,"").b(0,0,"").b(6,6,"").b(5,5,"");$$t.$dq.b=b},init:function(a){this.l=false;this.af=-1;this.ae=-1;this.n=false;this.j=new $$t.cx(1,0,0,0,0);this.am=new $$t.cq(0);this.u=new $$t.da($$t.$ay.$type,$$t.$e1.$type,0);this.x=new $$t.bq($$t.$e1.$type,0);this.h=new $$t.en;this.y=NaN;$.ig.$op.init.call(this);this.i(a);this.v=new $$t.da(String,$$t.$d.$type,0);this.f=new $$t.eq($$t.$dq.d);this.e=new $$t.eq($$t.$dq.c);this.g=new $$t.ev($$t.$el.$type,$$t.$dq.b);$$t.$dq.ag++;this.aq="RadialMenuWindow"+$$t.$dq.ag},ar:function(){if(this.n){this.n=false;this.i().ew()}},av:function(){if(this.n){this.ar()}},ba:function(){this.bz=this.b0();this.i().e4().y().add(this.bz);this.a0();this.bv()},bq:function(){if(!this.n){this.n=true;window.setTimeout(this.ar.runOn(this),0)}},as:function(){this.bk()},bg:function(a){a.__visibility=1},bf:function(a){a.__visibility=0},b1:function(){var a=new $$t.ew;this.i().e5().y().add(a);return a},at:function(a){var b=$.ig.util.cast($$t.$cj.$type,a.u());if(b!=null){b.y().remove(a)}},b3:function(a){var b=new $$t.ew;var c=0;switch(a){case 0:c=200;break;case 4:c=300;break;case 1:c=500;break;case 5:c=600;break;case 2:c=700;break;case 3:c=800;break}this.m=false;b.q(c);this.i().e7().y().add(b);return b},bi:function(a,b){var c=$.ig.util.cast($$t.$cj.$type,b.u());if(c!=null){c.y().remove(b)}},b2:function(a){var b=new $$t.ew;var c=this.i().e8();var d=0;switch(a){default:case 0:d=0;break;case 1:d=100;break;case 3:d=900;c=this.i().e4();break;case 2:d=1e3;c=this.i().e4();break}b.q(d);c.y().add(b);return b},bh:function(a,b){var c=$.ig.util.cast($$t.$cj.$type,b.u());if(c!=null){c.y().remove(b)}},a2:function(a){a.__visibility=1},a1:function(a){a.__visibility=0},by:function(){var a=new $$t.ez;this.i().e5().y().add(a);return a},a3:function(a){var b=$.ig.util.cast($$t.$cj.$type,a.u());if(b!=null){b.y().remove(a)}},b0:function(){var a=new $$t.ew;a.z(3);a.k(20);a.j(14);var b=new $$t.cv;var c=new $$t.c9;c.__startPoint={__x:8.5,__y:0,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName};c.__segments.add(new $$t.c8(0,{__x:2,__y:6.5,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName}));c.__segments.add(new $$t.c8(0,{__x:8.5,__y:13,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName}));b.b().add(c);var d=new $$t.c9;d.__startPoint={__x:2,__y:6.5,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName};d.__segments.add(new $$t.c8(0,{__x:20,__y:6.5,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName}));b.b().add(d);a.ak(b);a.h(new $$t.e0);return a},t:function(){return true},bb:function(){this.a0()},u:null,x:null,be:function(a){var $self=this;$self.x.clear();for(var b=0,c=a.count();b<c;b++){var d=a.__inner[b];var e=d.item();var f;if(!function(){var $ret=$self.u.tryGetValue(e,f);f=$ret.value;return $ret.ret}()){f=new $$t.e1(e,$self)}else{$self.u.remove(e)}f.c=d;$self.x.add(f)}var h=$self.u.values().getEnumerator();while(h.moveNext()){var g=h.current();g.h()}$self.u.clear();var j=$self.x.getEnumerator();while(j.moveNext()){var i=j.current();var k=i.item();$self.u.item(k,i)}},w:function(){return this.i().items()},bj:function(a){var b=this.bz.h();b.h(a.__x-this.bz.k()/2);b.i(a.__y-this.bz.j()/2)},b5:function(){var a=new $$t.c0(this.i().centerButtonContentWidth(),this.i().centerButtonContentHeight());if(isNaN(a.b())){if(this.b4!=null){a.b(Math.max(28,this.b4.b()))}else{a.b(28)}}if(isNaN(a.a())){if(this.b4!=null){a.a(Math.max(28,this.b4.a()))}else{a.a(28)}}return a},bc:function(a,b,c){var $self=this;if(!$self.l){var d=$$t.$a6.h(a,$$t.$bo.$type);if(null!=d){if($self.f.c().containsKey(d)){var e=$self.i().d(d)!=$$t.$a6.c;$self.v.item(a,e);if(!e){$self.l=true;var f;if(function(){var $ret=$self.f.c().tryGetValue(d,f);f=$ret.value;return $ret.ret}()){$self.i().g(d,f)}$self.l=false}}}}switch(a){case"CenterButtonContent":if($self.ad!=null){$self.i().e4().y().remove1($self.ad);$self.ad=null;$self.b4=null}if(!String.isNullOrEmpty(c)){$self.ad=$$t.$fh.a.d(c,$self.a6.runOn($self))}$self.a0();break;case"CenterButtonContentHeight":case"CenterButtonContentWidth":$self.a0();break}},a6:function(a){var img_=a;this.b4=new $$t.c0(img_.width,img_.height);this.i().da()},a0:function(){var a=this.bz;if(this.i().b1()<2){a.__visibility=1}else{a.__visibility=0}},o:false,ac:null,r:function(a){if(arguments.length===1){if(a!=this.o){this.o=a;if(!a&&this.ac!=null){var b=this.ac;this.ac=null;this.a.ax($(b),this.aq)}else if(a&&this.ac==null){this.ac=window;this.a.ae($(this.ac),this.aq)}}return a}else{return this.o}},a8:function(a){var $self=this;var b=$self.aj;var c=a==null?null:$(a);$self.g.g($self.e.g($self.f.g($self.aj=c)));var d=function(e){$self.i().dz($self.an(e))};var e=function(f){if(!$self.o){$self.i().d0()}};var f=function(g,h,i){$self.i().d1($self.an(g))};var g=function(h){if(!$self.r()){$self.r(true);$self.i().dy($self.an(h),$self)}};var h=function(i){if($self.r()){$self.r(false);$self.i().d2($self.an(i),$self)}};if($self.a!=null){$self.r(false);$self.a.af();$self.a.onMouseEnter=$.ig.Delegate.prototype.remove($self.a.onMouseEnter,d);$self.a.onMouseLeave=$.ig.Delegate.prototype.remove($self.a.onMouseLeave,e);$self.a.onMouseOver=$.ig.Delegate.prototype.remove($self.a.onMouseOver,f);$self.a.onMouseDown=$.ig.Delegate.prototype.remove($self.a.onMouseDown,g);$self.a.onMouseUp=$.ig.Delegate.prototype.remove($self.a.onMouseUp,h)}if(c==null){return}var i=Math.round(c.width());var j=Math.round(c.height());$self.aj.css("position","relative");$self.aj.css("visibility","hidden");var k=$("<canvas style='position:absolute'></canvas>");$self.aj.append(k);$self.af=i;$self.ae=j;k.attr("width",i.toString());k.attr("height",j.toString());k.css("visibility","visible");$self.i().at(new $$t.cx(1,0,0,i,j));$self.a=new $$t.fj(k);$self.a.ab($self.s.runOn($self));$self.a.onMouseEnter=$.ig.Delegate.prototype.combine($self.a.onMouseEnter,d);$self.a.onMouseLeave=$.ig.Delegate.prototype.combine($self.a.onMouseLeave,e);$self.a.onMouseOver=$.ig.Delegate.prototype.combine($self.a.onMouseOver,f);$self.a.onMouseDown=$.ig.Delegate.prototype.combine($self.a.onMouseDown,g);$self.a.onMouseUp=$.ig.Delegate.prototype.combine($self.a.onMouseUp,h);$self.ai=k;$self.a.az($self.i().at().toRect());var l=$self.ai[0].getContext("2d");$self.k=new $$t.e3(new $$t.fn,l);$self.aw();$self.bw();if($self.i().isOpen()){$self.a5()}else{$self.a4()}$self.bk()},a9:function(){var a=Math.round(this.aj.width());var b=Math.round(this.aj.height());this.i().at(new $$t.cx(1,0,0,a,b))},a5:function(){this.j=this.i().at();this.am=this.i().af().g().k;this.bd()},a4:function(){var a=this.i().af().g();var b=this.i().centerButtonStrokeThickness()+1;this.am=a.k;this.j=new $$t.cx(1,Math.floor(this.am.__x-a.i)-b,Math.floor(this.am.__y-a.j)-b,Math.ceil((a.i+b)*2),Math.ceil((a.j+b)*2));this.bd()},bd:function(){var a=this.i().at();var b=this.j;if(this.ai!=null){this.ai.attr("width",b.width.toString());this.ai.attr("height",b.height.toString());this.ai.css("left",b.x.toString()+"px");this.ai.css("top",b.y.toString()+"px")}this.a.az(new $$t.cz(0,0,0,b.width,b.height));this.bk()},bk:function(){var a=this.i();
var b=this.j;var c=a.af().g();var d=c.k;if((d.__x!=this.am.__x||d.__y!=this.am.__y)&&!a.isOpen()){this.a4()}var e=this.k;e.i(0,0,b.width,b.height);if(b.x!=0||b.y!=0){e.x();var f=new $$t.e0;f.h(-b.x);f.i(-b.y);e.h(f)}this.bm(e,a.e8(),true,null);if(!this.m){this.m=true;a.e7().y().sort1(this.ah.runOn(this))}this.bm(e,a.e7(),true,null);this.bm(e,a.e5(),false,$$t.$f3.r($$t.$an.n(255,0,0,0)));this.bm(e,a.e6(),false,null,this.bn.runOn(this));this.bm(e,a.e4(),false,null,this.bl.runOn(this));if(b.x!=0||b.y!=0){e.w()}},bn:function(a,b){var d=this.x.getEnumerator();while(d.moveNext()){var c=d.current();c.i(a,this.y,b.__opacity)}},bl:function(a,b){if(this.ad!=null&&this.b4!=null&&this.bz.__visibility==1){var c=this.i().af().am();a.k(this.ad,1,c.__x-this.b4.b()/2,c.__y-this.b4.a()/2,this.b4.b(),this.b4.a())}},bm:function(a,b,c,d,e){if(b.__opacity>0){if(b.h()!=null){a.x();a.h(b.h())}if(b.__opacity<1){a.aa(b.__opacity)}var g=b.y().getEnumerator();while(g.moveNext()){var f=g.current();if(c||$.ig.util.cast($$t.$ew.$type,f)!==null){this.bo(a,f)}else if($.ig.util.cast($$t.$f5.$type,f)!==null){var h=f;a.k(h,h.__opacity,h.l(),h.m(),h.k(),h.height())}else if($.ig.util.cast($$t.$ez.$type,f)!==null){var i=f;if(i.ab()==null){i.ab(d)}a.u(i)}}if(null!=e){e(a,b)}if(b.__opacity<1){a.aa(1)}if(b.h()!=null){a.w()}}},bo:function(a,b){if(b.h()!=null){a.x();a.h(b.h())}a.q(b);if(b.h()!=null){a.w()}},bv:function(){this.l=true;var b=this.f.c().getEnumerator();while(b.moveNext()){var a=b.current();if(!this.v.item(a.key().name())){this.i().g(a.key(),a.value())}}this.l=false},aw:function(){this.f.k();this.e.k();this.g.k();this.bv()},bu:function(){this.aw();this.bw();this.i().da()},bw:function(){this.ap=this.i().font();this.y=this.z(this.ap);if(this.k!=null){this.k.z(this.ap)}},ak:null,bt:function(a){if(!a.isToolTipEnabled()){this.az();return}var b=this.ak;if(b==null){this.ak=b=$("<div class='ui-radialmenu-tooltip ui-corner-all'></div>");b.css("position","absolute");b.css("visibility","visible");b.css("white-space","nowrap");b.css("z-index","10000");this.aj.append(b)}b.children().remove();var c=a.bd();if(c!=null){b.append($("<span>"+c.toString()+"</span>"))}this.h.toolTipText(c==null?String.empty():c.toString());this.h.itemName(a.name());this.h.itemType(a.getType().typeName());var d=this.g.c();var e=$.ig.util.cast($$t.$f6.$type,a);var g=d.getEnumerator();while(g.moveNext()){var f=g.current();if(String.isNullOrEmpty(f.value())){var h=null;var i=null;switch(f.key()){case 0:h="background-color";i=e==null?"white":e.dg().__fill;break;case 5:h="padding";i="8px 11px";break;case 6:h="color";i=e==null?"#666666":e.di().__fill;break;case 1:h="border-color";i="#808080";break;case 3:h="border-width";i="2px";break;case 4:h="border-radius";i="0";break;case 2:h="border-style";i="solid";break}if(h!=null){this.ak.css(h,i)}}}var j=this.ao(b);b.css("top",j.__y.toString()+"px");b.css("left",j.__x.toString()+"px")},h:null,ao:function(a){var container_=this.aj[0];var clientRect_=container_.getBoundingClientRect();var b=new $$t.cx(1,clientRect_.left,clientRect_.top,clientRect_.width,clientRect_.height);var c=new $$t.cx(1,b.x,b.y,b.width,b.height);var docEle_=document.documentElement;var d=new $$t.cx(1,0,0,docEle_.clientWidth,docEle_.clientHeight);if(!this.i().isOpen()){var e=this.b5();b=new $$t.cx(1,b.x+b.width/2-e.b()/2,b.y+b.height/2-e.a()/2,e.b(),e.a());b=$$t.$cr.c(b,this.i().outerRingThickness(),this.i().outerRingThickness())}b=$$t.$cr.c(b,6,6);var f=a.outerWidth();var g=a.outerHeight();var h,i;if(b.y-d.y>=g){i=b.y-c.y-g;h=(b.width-f)/2+b.x-c.x}else if(b.x+b.width+f<=d.x+d.width){h=b.x+b.width-c.x;i=(b.height-g)/2+b.y-c.y}else if(b.x-f>=d.x){h=b.x-c.x-f;i=(b.height-g)/2+b.y-c.y}else{i=b.y+b.height-c.y;h=(b.width-f)/2+b.x-c.x}this.h.relativeLeft(h-c.x);this.h.relativeTop(i-c.y);this.h.width(c.width);this.h.height(c.height);return{__x:h,__y:i,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName}},az:function(){if(this.ak!=null){var a=this.ak;this.ak=null;a.remove()}},bp:function(){},q:function(){return false},ay:function(){},bs:function(a){},p:function(a){return false},b6:function(a){if(isNaN(this.y)){this.y=this.z(null)}var b=this.aa(a);var c=this.y;return new $$t.c0(b,c)},y:0,z:function(a){var tempSpan_=$("<span>M</span>");var b=$("body");b.append(tempSpan_);if(a!=null){tempSpan_.css("font",a)}var offset_=tempSpan_.attr("offsetHeight");if(isNaN(offset_)){offset_=tempSpan_[0].offsetHeight}tempSpan_.remove();return parseInt(offset_)},aa:function(a){var b=$.ig.util.cast($$t.$ez.$type,a);if(b!=null&&b.aa()!=null){return this.k.d(b.aa())+0}return 0},br:function(a){},ax:function(a){},a7:function(){this.bz.__stroke=this.i().af().g().e()},al:function(a){var $self=this;var b=$self.e.c();var c;(function(){var $ret=b.tryGetValue(a,c);c=$ret.value;return $ret.ret})();return c},bx:function(){return new $$t.ez},ah:function(a,b){var c=a.q();var d=b.q();if(c<d){return-1}else if(c>d){return 1}else{return 0}},au:function(a){if(this.ak!=null){a.itemToolTip(this.h)}},s:function(a){var b=this.i();if(this.r()){return true}return b.a7(this.an(a))},an:function(a){if(this.j.x!=0||this.j.y!=0){a={__x:a.__x+this.j.x,__y:a.__y+this.j.y,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName}}return a},$type:new $.ig.Type("XamRadialMenuView",$.ig.$ot)},true);$.ig.util.defType("RadialMenuDOMEventProxy:fj","DOMEventProxy",{c5:null,init:function(a){this.c5=null;$$t.$fk.init.call(this,a)},c6:function(){if(this.c5==null){$$t.$fj.c4++;this.c5=".DOMProxyRadialMenu"+$$t.$fj.c4.toString()}return this.c5},c7:function(a,b){a.preventDefault()},ae:function(a,b){if(a==this.bq()){this.bq().bind("contextmenu",this.c7.runOn(this))}$$t.$fk.ae.call(this,a,b)},ax:function(a,b){if(this.bq()!=null&&a==this.bq()){this.bq().unbind("contextmenu")}$$t.$fk.ax.call(this,a,b)},af:function(){if(this.bq()!=null){this.bq().unbind("contextmenu")}$$t.$fk.af.call(this)},$type:new $.ig.Type("RadialMenuDOMEventProxy",$$t.$fk.$type)},true);$.ig.util.defType("TextContainer:e2","Object",{f:null,a:null,b:null,i:null,init:function(){$.ig.$op.init.call(this)},_j:null,j:function(value){if(arguments.length===1){this._j=value;return value}else{return this._j}},g:function(a){if(arguments.length===1){if(this.f!=a){this.f=a;this.a=null;this.b=null}return a}else{return this.f}},h:function(a,b,c,d){var e=a.e();var f=this.c();if(f!=null){var g=this.e(e.measureText.runOn(e));var h=c;e.fillStyle=this.j().__fill;e.textBaseline="top";for(var i=0,j=f.length;i<j;i++){switch(this.i){case 0:case 3:c=h;break;case 2:c=h-this.b[i];break;case 1:c=h-this.b[i]/2;break}e.fillText(f[i],c,d);d+=b}}},e:function(a){var b=0;var c=this.b;if(c==null){var d=this.c();if(d!=null){this.b=c=new Array(d.length);for(var e=0,f=c.length;e<f;e++){c[e]=a(d[e]).width}}}if(c!=null){for(var g=0,h=c.length;g<h;g++){b+=c[g]}}return b},d:function(a){var b=0;var c=this.c();if(c!=null){b+=c.length*a}return b},c:function(){if(this.a==null){if(this.f!=null){this.a=this.f.split("\n")}}return this.a},$type:new $.ig.Type("TextContainer",$.ig.$ot)},true);$.ig.util.defType("ImageManager:fh","Object",{c:null,b:null,init:function(){$.ig.$op.init.call(this);this.c=new $$t.da(String,$$t.$fg.$type,0);this.b=new $$t.da($$t.$fg.$type,$$t.$bq.$type.specialize($$t.$b5.$type.specialize($$t.$fg.$type)),0)},d:function(a,b){var $self=this;var c;if(!function(){var $ret=$self.c.tryGetValue(a,c);c=$ret.value;return $ret.ret}()){var d=$("<img />");c=d[0];c.src=a;if(!c.complete){var self_=$self;var ele_=d;ele_.bind("load readystatechange",function(e){if(this.complete||this.readyState=="complete"&&e.type=="readystatechange"){self_.downloadCompleted(this)}})}}if(b!=null){if(c.complete){window.setTimeout(function(){return b(c)},0)}else{var e;if(!function(){var $ret=$self.b.tryGetValue(c,e);e=$ret.value;return $ret.ret}()){$self.b.item(c,e=new $$t.bq($$t.$b5.$type.specialize($$t.$fg.$type),0))}e.add(b)}}return c},downloadCompleted:function(a){var $self=this;if(a.complete){var b=$(a);b.unbind("load readystatechange");var c;if(function(){var $ret=$self.b.tryGetValue(a,c);c=$ret.value;return $ret.ret}()){$self.b.remove(a);for(var d=0,e=c.count();d<e;d++){c.__inner[d](a)}}}},$type:new $.ig.Type("ImageManager",$.ig.$ot)},true);$.ig.util.defType("RadialMenuItemOverlayTemplates:h5","Object",{staticInit:function(){var a=new $$t.cb;a.measure($$t.$h5.a);a.render($$t.$h5.c);$$t.$h5.e=a;var b=new $$t.cb;b.measure($$t.$h5.a);b.render($$t.$h5.b);$$t.$h5.d=b},a:function(a){if(a.width<20){a.width=20}if(a.height<20){a.height=20}},b:function(a){var b=a.data;var c=b.iconOverlayValue();if(c!=null&&c.f()>0){var d=new $$t.e3(new $$t.fn,a.context);var e=new $$t.ew;var f=new $$t.fu;f.d(new $$t.cz(0,a.xPosition,a.yPosition+a.availableHeight-5,a.availableWidth,5));e.ak(f);var g=new $$t.bn;g.color(c);e.__fill=g;d.q(e)}},c:function(a){var b=a.data;var c=b.iconOverlayValue();if(c!=null){var d=new $$t.e3(new $$t.fn,a.context);var e=new $$t.ez;e.aa(c.toString());e.ab(b.bb($$t.$ay.foregroundProperty));var f=b.menu().ak().b6(e);e.l(a.xPosition+a.availableWidth-f.b()+8);e.m(a.yPosition-8);d.u(e)}},$type:new $.ig.Type("RadialMenuItemOverlayTemplates",$.ig.$ot)},true);$.ig.util.defType("RadialMenuItemView:e1","Object",{a:null,d:null,g:null,q:null,e:null,p:null,init:function(a,b){$.ig.$op.init.call(this);this.a=a;this.e=b;if($.ig.util.cast($$t.$dm.$type,a)!==null){this.d=new $$t.e2;this.d.i=1;this.d.j(a.bb($$t.$ay.foregroundProperty));this.m();this.n();this.o()}this.f=a.isEnabled();a.propertyChanged=$.ig.Delegate.prototype.combine(a.propertyChanged,this.l.runOn(this))},item:function(){return this.a},c:null,f:false,h:function(){this.a.propertyChanged=$.ig.Delegate.prototype.remove(this.a.propertyChanged,this.l.runOn(this))},i:function(a,b,c){var d=this.c.h;var e,f,g;e=f=g=0;if(this.d!=null&&!String.isNullOrEmpty(this.d.g())){e=this.d.d(b)}var h=this.r(a);if(h!=null){g=h.a()}if(this.q!=null){f=this.q.height()}var i=e+Math.max(g,f);var j=(g-f)/2;var k=c*(this.f?1:.3);var l=a.e();if(k<1){l.globalAlpha=k}if(f>0){var m=this.q.width();a.l(this.g,1,this.q.x(),this.q.y(),m,f,d.__x-m/2,d.__y-i/2+Math.max(j,0),m,f)}if(g>0){this.j(a,d.__x-h.b()/2,d.__y-i/2-Math.min(j,0),h.b(),h.a())}if(e>0){this.d.h(a,b,d.__x,d.__y-i/2+Math.max(g,f))}if(k<1){l.globalAlpha=1}},j:function(a,b,c,d,e){var f=new $$t.cd;f.context=a.e();f.data=this.a;f.xPosition=b;f.yPosition=c;f.availableWidth=d;f.availableHeight=e;this.p.render()(f)},r:function(a){if(this.p!=null){var b=new $$t.cg;b.context=a.e();b.data=this.a;if(this.q!=null){b.width=this.q.width();b.height=this.q.height()}if(this.p.measure()!=null){this.p.measure()(b)}return new $$t.c0(b.width,b.height)}return null},k:function(a){if(a==this.g){var img_=a;this.q=new $$t.cz(0,0,0,img_.width,img_.height);this.e.i().da()}},l:function(a,b){switch(b.propertyName()){case"Foreground":if(this.d!=null){this.d.j(this.a.bb($$t.$ay.foregroundProperty));this.e.bq()}break;case"IsEnabled":this.f=this.a.isEnabled();this.e.bq();break;case"Header":this.m();break;case"IconUri":this.n();break;case"IconOverlay":this.o();break;case"IconOverlayValue":this.e.bq();break}},m:function(){var a=null;var b=$.ig.util.cast($$t.$dm.$type,this.item());if(b!=null){var c=b.header();if(c!=null){a=c.toString()}}this.d.g(a);this.e.bq()},n:function(){var a=this.a.iconUri();if(String.isNullOrEmpty(a)){this.g=null}else{this.g=$$t.$fh.a.d(a,this.k.runOn(this))}this.e.bq()},o:function(){if($.ig.util.cast($$t.$dm.$type,this.a)!==null){var a=this.a;if(a.iconOverlay()!=null){this.p=a.iconOverlay()}else{this.p=null}this.e.bq()}},$type:new $.ig.Type("RadialMenuItemView",$.ig.$ot)},true);$.ig.util.defType("CssPropCacheBase$2:er","Object",{$tProp:null,$tValue:null,b:null,e:null,f:null,a:null,d:null,init:function($tProp,$tValue,a,b){this.$tProp=$tProp;this.$tValue=$tValue;this.$type=this.$type.specialize(this.$tProp,this.$tValue);$.ig.$op.init.call(this);this.a=a;this.d=b},g:function(a){if(arguments.length===1){this.e=a;this.b=null;if(null!=this.f){this.f.remove()}return a}else{return this.e}},c:function(){if(this.b==null){this.k()}return this.b},k:function(){if(this.f==null&&this.e!=null){this.f=$$t.$es.g();var a=this.e;a.append(this.f)}var b=new $$t.da(this.$tProp,String,0);this.j(this.a,b);var c=new $$t.da(this.$tProp,this.$tValue,0);this.i(this.a,c,b);this.b=c;if(this.f!=null){this.f.remove();this.f=null}},i:function(a,b,c){if(this.f!=null){this.f.addClass(a.f)}var e=a.d.getEnumerator();while(e.moveNext()){var d=e.current();var f=d.key();var g=this.h(this.f,d.value().a());if(g==null||g.length==0||g==c.item(f)){g=d.value().b()}var h=this.d(f,g);b.item(f,h)}for(var i=0,j=a.e.count();i<j;i++){this.i(a.e.__inner[i],b,c)}if(this.f!=null){this.f.removeClass(a.f)}},h:function(a,b){var c=null;var d=null;if(a!=null){switch(b){case 0:c="background-color";break;case 1:c="border-top-color";break;case 2:c="border-top-style";break;case 3:c="border-top-width";break;case 4:c="border-top-left-radius";break;case 6:c="color";break;case 7:d=$$t.$et.c(a);break;case 5:c="padding-top";break;default:$$t.$di.b(false,"Unrecognized css property:"+b.toString());return null}if(c!=null){d=a.css(c)}}return d},j:function(a,b){var d=a.d.getEnumerator();while(d.moveNext()){var c=d.current();b.item(c.key(),this.h(this.f,c.value().a()))}for(var e=0,f=a.e.count();e<f;e++){this.j(a.e.__inner[e],b)}},$type:new $.ig.Type("CssPropCacheBase$2",$.ig.$ot)},true);$.ig.util.defType("CssPropCache$1:ev","CssPropCacheBase$2",{$tPropertyId:null,init:function($tPropertyId,a){this.$tPropertyId=$tPropertyId;this.$type=this.$type.specialize(this.$tPropertyId);$$t.$er.init.call(this,this.$tPropertyId,String,a,$$t.$ev.l)},l:function(a,b){return b},$type:new $.ig.Type("CssPropCache$1",$$t.$er.$type.specialize(0,1))},true);$.ig.util.defType("CssDpCache:eq","CssPropCacheBase$2",{init:function(a){$$t.$er.init.call(this,$$t.$a6.$type,$.ig.$op.$type,a,$$t.$eq.l)},l:function(a,b){var c=null;if(b!=null){var propType_=a.propertyType();if(propType_==$$t.$bn.$type){var d=new $$t.bn;d.__fill=b;c=d}else if(propType_===Number){c=parseInt(b,10)}else if(propType_==$$t.$an.$type){var e=new $$t.an;e.colorString(b);c=e}}return c},$type:new $.ig.Type("CssDpCache",$$t.$er.$type.specialize($$t.$a6.$type,$.ig.$op.$type))},true);$.ig.util.defType("BindingExpression:h6","Object",{a:null,c:null,d:null,init:function(a,b,c,d){$.ig.$op.init.call(this);this.c=c;this.d=d;var e=b.split(".");this.a=new Array(e.length);for(var f=0;f<e.length;f++){this.a[f]=new $$t.h7(e[f]);if(f>0){this.a[f-1].childStep(this.a[f])}}this.a[this.a.length-1].propertyChanged=$.ig.Delegate.prototype.combine(this.a[this.a.length-1].propertyChanged,this.b.runOn(this));this.a[0].source(a)},b:function(a,b){if(b.propertyName()=="Value"){var c=this.a[this.a.length-1].value();if(c==$$t.$a6.c){this.c.e(this.d)}else{this.c.g(this.d,c)}}},$type:new $.ig.Type("BindingExpression",$.ig.$ot)},true);$.ig.util.defType("PropertyStep:h7","Object",{g:null,c:null,d:null,a:null,init:function(a){$.ig.$op.init.call(this);this.g=a},childStep:function(a){if(arguments.length===1){if(this.a!=a){if(this.a!=null){this.a.source(null)}this.a=a;if(this.a!=null){this.a.source(this.value())}}return a}else{return this.a}},source:function(a){if(arguments.length===1){if(this.c!=a){if($.ig.util.cast($$t.$bk.$type,this.c)!==null){this.c.propertyChanged=$.ig.Delegate.prototype.remove(this.c.propertyChanged,this.i.runOn(this))}this.c=a;if($.ig.util.cast($$t.$bk.$type,a)!==null){a.propertyChanged=$.ig.Delegate.prototype.combine(a.propertyChanged,this.i.runOn(this))}this.h("Source");this.j()}return a}else{return this.c}},value:function(a){if(arguments.length===1){if(this.d!=a){this.d=a;if(this.a!=null){this.a.source(a)}this.h("Value")}return a}else{return this.d}},h:function(a){var b=this.propertyChanged;if(null!=b){b(this,new $$t.bm(a))}},i:function(a,b){if(String.isNullOrEmpty(b.propertyName())||b.propertyName()==this.g||b.propertyName().length==this.g.length&&b.propertyName().toLowerCase()==this.g.toLowerCase()){this.j()}},j:function(){if(this.c==null){this.value($$t.$a6.c)}else if(String.isNullOrEmpty(this.g)){this.value(this.c)}else{var src_=this.c;var path_=this.g;this.value(src_[path_]())}},propertyChanged:null,$type:new $.ig.Type("PropertyStep",$.ig.$ot,[$$t.$bk.$type])},true);$$t.$el.backgroundColor=0;$$t.$el.borderTopColor=1;$$t.$el.borderTopStyle=2;$$t.$el.borderTopWidth=3;$$t.$el.borderTopLeftRadius=4;$$t.$el.paddingTop=5;$$t.$el.color=6;$$t.$el.font=7;$$t.$ai.none=0;$$t.$ai.checkBox=1;$$t.$ai.radioButton=2;$$t.$ai.radioButtonAllowAllUp=3;$$t.$ah.asChildren=0;$$t.$ah.asSiblingsWhenChecked=1;$$t.$ah.none=2;$$t.$ag.none=0;$$t.$ag.toolAreaClick=1;$$t.$ag.navigateToChildren=2;$$t.$af.none=0;$$t.$af.expandCollapse=1;$$t.$af.navigateMenu=2;$$t.$af.navigateToChildColor=3;$$t.$af.navigateToParentColor=4;$$t.$ae.none=0;$$t.$ae.outerRingButton=1;$$t.$ae.toolArea=2;$$t.$ae.centerButton=3;$$t.$ae.disabledMenu=4;$$t.$ad.menu=0;$$t.$ad.outerRing=1;$$t.$ad.innerRingFocus=2;$$t.$ad.innerRing=3;$$t.$ac.outerRing=0;$$t.$ac.toolArea=1;$$t.$ac.toolCheckmark=2;$$t.$ac.toolHighlight=3;$$t.$ac.outerRingArrow=4;$$t.$ac.colorWellPreview=5;$$t.$ay.bg="DirtyCustomVisuals";$$t.$ay.bp="InvalidateCustomVisuals";$$t.$ay.be="AutoRotateChildren";$$t.$ay.autoRotateChildrenProperty=$$t.$a6.i("AutoRotateChildren",$$t.$d.$type,$$t.$ay.$type,new $$t.a7(2,true,function(a,b){a.cc("AutoRotateChildren",b.d(),b.c())}));$$t.$ay.bf="CheckedHighlightBrush";$$t.$ay.checkedHighlightBrushProperty=$$t.$a6.i("CheckedHighlightBrush",$$t.$bn.$type,$$t.$ay.$type,new $$t.a7(2,null,function(a,b){a.cc("CheckedHighlightBrush",b.d(),b.c())}));$$t.$ay.bi="Foreground";$$t.$ay.foregroundProperty=$$t.$a6.i("Foreground",$$t.$bn.$type,$$t.$ay.$type,new $$t.a7(2,null,function(a,b){a.cb("Foreground",b.d(),b.c())}));$$t.$ay.bj="HighlightBrush";$$t.$ay.highlightBrushProperty=$$t.$a6.i("HighlightBrush",$$t.$bn.$type,$$t.$ay.$type,new $$t.a7(2,null,function(a,b){a.cc("HighlightBrush",b.d(),b.c())}));$$t.$ay.bk="InnerAreaFill";$$t.$ay.innerAreaFillProperty=$$t.$a6.i("InnerAreaFill",$$t.$bn.$type,$$t.$ay.$type,new $$t.a7(2,null,function(a,b){a.cc("InnerAreaFill",b.d(),b.c())}));$$t.$ay.bl="InnerAreaHotTrackFill";$$t.$ay.innerAreaHotTrackFillProperty=$$t.$a6.i("InnerAreaHotTrackFill",$$t.$bn.$type,$$t.$ay.$type,new $$t.a7(2,null,function(a,b){a.cc("InnerAreaHotTrackFill",b.d(),b.c())}));$$t.$ay.bm="InnerAreaHotTrackStroke";$$t.$ay.innerAreaHotTrackStrokeProperty=$$t.$a6.i("InnerAreaHotTrackStroke",$$t.$bn.$type,$$t.$ay.$type,new $$t.a7(2,null,function(a,b){a.cc("InnerAreaHotTrackStroke",b.d(),b.c())}));$$t.$ay.bn="InnerAreaStroke";$$t.$ay.innerAreaStrokeProperty=$$t.$a6.i("InnerAreaStroke",$$t.$bn.$type,$$t.$ay.$type,new $$t.a7(2,null,function(a,b){a.cc("InnerAreaStroke",b.d(),b.c())}));$$t.$ay.bo="InnerAreaStrokeThickness";$$t.$ay.innerAreaStrokeThicknessProperty=$$t.$a6.i("InnerAreaStrokeThickness",Number,$$t.$ay.$type,new $$t.a7(2,1,function(a,b){a.cc("InnerAreaStrokeThickness",b.d(),b.c())}));$$t.$ay.bq="IsEnabled";$$t.$ay.isEnabledProperty=$$t.$a6.i("IsEnabled",$$t.$d.$type,$$t.$ay.$type,new $$t.a7(2,true,function(a,b){a.cc("IsEnabled",b.d(),b.c())}));$$t.$ay.br="IsToolTipEnabled";$$t.$ay.isToolTipEnabledProperty=$$t.$a6.i("IsToolTipEnabled",$$t.$d.$type,$$t.$ay.$type,new $$t.a7(2,true,function(a,b){a.cc("IsToolTipEnabled",b.d(),b.c())}));$$t.$ay.bs="Menu";$$t.$ay.menuProperty=$$t.$a6.i("Menu",$$t.$bo.$type,$$t.$ay.$type,new $$t.a7(2,null,function(a,b){a.cc("Menu",b.d(),b.c())}));$$t.$ay.bv="OuterRingButtonHotTrackFill";$$t.$ay.outerRingButtonHotTrackFillProperty=$$t.$a6.i("OuterRingButtonHotTrackFill",$$t.$bn.$type,$$t.$ay.$type,new $$t.a7(2,null,function(a,b){a.cc("OuterRingButtonHotTrackFill",b.d(),b.c())}));$$t.$ay.bw="OuterRingButtonHotTrackForeground";$$t.$ay.outerRingButtonHotTrackForegroundProperty=$$t.$a6.i("OuterRingButtonHotTrackForeground",$$t.$bn.$type,$$t.$ay.$type,new $$t.a7(2,null,function(a,b){a.cc("OuterRingButtonHotTrackForeground",b.d(),b.c())}));$$t.$ay.bx="OuterRingButtonHotTrackStroke";$$t.$ay.outerRingButtonHotTrackStrokeProperty=$$t.$a6.i("OuterRingButtonHotTrackStroke",$$t.$bn.$type,$$t.$ay.$type,new $$t.a7(2,null,function(a,b){a.cc("OuterRingButtonHotTrackStroke",b.d(),b.c())}));$$t.$ay.bt="OuterRingButtonFill";$$t.$ay.outerRingButtonFillProperty=$$t.$a6.i("OuterRingButtonFill",$$t.$bn.$type,$$t.$ay.$type,new $$t.a7(2,null,function(a,b){a.cc("OuterRingButtonFill",b.d(),b.c())}));$$t.$ay.bu="OuterRingButtonForeground";$$t.$ay.outerRingButtonForegroundProperty=$$t.$a6.i("OuterRingButtonForeground",$$t.$bn.$type,$$t.$ay.$type,new $$t.a7(2,null,function(a,b){a.cc("OuterRingButtonForeground",b.d(),b.c())}));$$t.$ay.by="OuterRingButtonStroke";$$t.$ay.outerRingButtonStrokeProperty=$$t.$a6.i("OuterRingButtonStroke",$$t.$bn.$type,$$t.$ay.$type,new $$t.a7(2,null,function(a,b){a.cc("OuterRingButtonStroke",b.d(),b.c())}));$$t.$ay.bz="OuterRingButtonStrokeThickness";$$t.$ay.outerRingButtonStrokeThicknessProperty=$$t.$a6.i("OuterRingButtonStrokeThickness",Number,$$t.$ay.$type,new $$t.a7(2,1,function(a,b){a.cc("OuterRingButtonStrokeThickness",b.d(),b.c())}));$$t.$ay.b1="ParentItem";$$t.$ay.parentItemProperty=$$t.$a6.i("ParentItem",$$t.$ay.$type,$$t.$ay.$type,new $$t.a7(2,null,function(a,b){a.cc("ParentItem",b.d(),b.c())}));$$t.$ay.b2="ToolTip";$$t.$ay.toolTipProperty=$$t.$a6.i("ToolTip",$.ig.$op.$type,$$t.$ay.$type,new $$t.a7(2,null,function(a,b){a.cc("ToolTipResolved",null,null)}));$$t.$ay.b5="WedgeIndex";$$t.$ay.wedgeIndexProperty=$$t.$a6.i("WedgeIndex",$.ig.Number.prototype.$type,$$t.$ay.$type,new $$t.a7(2,-1,function(a,b){a.cc("WedgeIndex",b.d(),b.c())}));$$t.$ay.b6="WedgeSpan";$$t.$ay.wedgeSpanProperty=$$t.$a6.i("WedgeSpan",$.ig.Number.prototype.$type,$$t.$ay.$type,new $$t.a7(2,1,function(a,b){if(b.c()<=0){throw new $$t.ht(0,"WedgeSpan")}a.cc("WedgeSpan",b.d(),b.c())}));$$t.$ay.bh="DisplayAsChecked";$$t.$ay.b0="OuterRingButtonType";$$t.$ay.b3="ToolTipResolved";$$t.$ay.b4="VisibilityProxy";$$t.$ay.cz=$$t.$a6.i("VisibilityProxy",$$t.$bf.$type,$$t.$ay.$type,new $$t.a7(2,0,function(a,b){a.cc("VisibilityProxy",b.d(),b.c())}));if($$t.$ay.staticInit&&!$$t.$ay.radialMenuItemBaseStaticInitCalled){$$t.$ay.staticInit();$$t.$ay.radialMenuItemBaseStaticInitCalled=true}$$t.$dm.d9="AutoUpdateRecentItem";$$t.$dm.autoUpdateRecentItemProperty=$$t.$a6.i("AutoUpdateRecentItem",$$t.$d.$type,$$t.$dm.$type,new $$t.a7(2,true,function(a,b){a.cc("AutoUpdateRecentItem",b.d(),b.c())}));$$t.$dm.eb="ChildItemPlacement";$$t.$dm.childItemPlacementProperty=$$t.$a6.i("ChildItemPlacement",$$t.$ah.$type,$$t.$dm.$type,new $$t.a7(2,0,function(a,b){a.cc("ChildItemPlacement",b.d(),b.c())}));$$t.$dm.ea="CheckBehavior";$$t.$dm.checkBehaviorProperty=$$t.$a6.i("CheckBehavior",$$t.$ai.$type,$$t.$dm.$type,new $$t.a7(2,0,function(a,b){a.cc("CheckBehavior",b.d(),b.c())}));$$t.$dm.ej="IsChecked";$$t.$dm.isCheckedProperty=$$t.$a6.i("IsChecked",$$t.$d.$type,$$t.$dm.$type,new $$t.a7(2,false,function(a,b){a.cc("IsChecked",b.d(),b.c())}));$$t.$dm.ed="GroupName";$$t.$dm.groupNameProperty=$$t.$a6.i("GroupName",String,$$t.$dm.$type,new $$t.a7(2,null,function(a,b){a.cc("GroupName",b.d(),b.c())}));$$t.$dm.ee="Header";$$t.$dm.headerProperty=$$t.$a6.i("Header",$.ig.$op.$type,$$t.$dm.$type,new $$t.a7(2,null,function(a,b){a.cc("Header",b.d(),b.c())}));$$t.$dm.ei="IconUri";$$t.$dm.iconUriProperty=$$t.$a6.i("IconUri",String,$$t.$dm.$type,new $$t.a7(2,null,function(a,b){a.cb("IconUri",b.d(),b.c())}));$$t.$dm.ef="IconOverlay";$$t.$dm.iconOverlayProperty=$$t.$a6.i("IconOverlay",$$t.$cb.$type,$$t.$dm.$type,new $$t.a7(2,null,function(a,b){a.cc("IconOverlay",b.d(),b.c())}));$$t.$dm.eg="IconOverlayValue";$$t.$dm.iconOverlayValueProperty=$$t.$a6.i("IconOverlayValue",$.ig.$op.$type,$$t.$dm.$type,new $$t.a7(2,null,function(a,b){a.cc("IconOverlayValue",b.d(),b.c())}));$$t.$dm.el="KeyTip";$$t.$dm.keyTipProperty=$$t.$a6.i("KeyTip",String,$$t.$dm.$type,new $$t.a7(2,null,function(a,b){a.cc("KeyTip",b.d(),b.c())}));$$t.$dm.en="RecentItem";$$t.$dm.recentItemProperty=$$t.$a6.i("RecentItem",$.ig.$op.$type,$$t.$dm.$type,new $$t.a7(2,null,function(a,b){a.cc("RecentItem",b.d(),b.c())}));$$t.$dm.em="RecentItemContainer";$$t.$dm.recentItemContainerProperty=$$t.$a6.i("RecentItemContainer",$.ig.$op.$type,$$t.$dm.$type,new $$t.a7(2,null,$$t.$dm.er));if($$t.$dm.staticInit&&!$$t.$dm.radialMenuItemStaticInitCalled){$$t.$dm.staticInit();$$t.$dm.radialMenuItemStaticInitCalled=true}$$t.$f7.fa="Color";$$t.$f7.colorProperty=$$t.$a6.i("Color",$$t.$an.$type,$$t.$f7.$type,new $$t.a7(2,$$t.$an.n(0,0,0,0),function(a,b){a.cc("Color",b.d(),b.c())}));$$t.$f7.fc="ComputedColorName";$$t.$f7.computedColorNameProperty=$$t.$a6.i("ComputedColorName",String,$$t.$f7.$type,new $$t.a7(2,null,function(a,b){a.cc("ComputedColorName",b.d(),b.c())}));$$t.$hv.d9="PendingValue";$$t.$hv.pendingValueProperty=$$t.$a6.i("PendingValue",Number,$$t.$hv.$type,new $$t.a7(2,NaN,function(a,b){var c=a;c.cc("PendingValue",b.d(),b.c());var d=c.pendingValueChanged;if(null!=d){d(c,new $$t.al(b.d(),b.c()))}}));$$t.$hv.d8="PendingValueNeedleBrush";$$t.$hv.pendingValueNeedleBrushProperty=$$t.$a6.i("PendingValueNeedleBrush",$$t.$bn.$type,$$t.$hv.$type,new $$t.a7(2,null,function(a,b){a.cc("PendingValueNeedleBrush",b.d(),b.c())}));$$t.$hv.ea="ReserveFirstSlice";$$t.$hv.reserveFirstSliceProperty=$$t.$a6.i("ReserveFirstSlice",$$t.$d.$type,$$t.$hv.$type,new $$t.a7(2,true,function(a,b){a.cc("ReserveFirstSlice",b.d(),b.c())}));$$t.$hv.eb="SmallIncrement";$$t.$hv.smallIncrementProperty=$$t.$a6.i("SmallIncrement",Number,$$t.$hv.$type,new $$t.a7(2,1,function(a,b){a.cc("SmallIncrement",b.d(),b.c())}));$$t.$hv.ec="TickBrush";$$t.$hv.tickBrushProperty=$$t.$a6.i("TickBrush",$$t.$bn.$type,$$t.$hv.$type,new $$t.a7(2,null,function(a,b){a.cc("TickBrush",b.d(),b.c())}));$$t.$hv.ed="Ticks";$$t.$hv.ticksProperty=$$t.$a6.i("Ticks",$$t.$ey.$type,$$t.$hv.$type,new $$t.a7(2,null,function(a,b){a.cc("Ticks",b.d(),b.c())}));$$t.$hv.ef="TrackStartColor";$$t.$hv.trackStartColorProperty=$$t.$a6.i("TrackStartColor",$$t.$an.$type,$$t.$hv.$type,new $$t.a7(2,$$t.$an.n(0,0,0,0),function(a,b){a.cc("TrackStartColor",b.d(),b.c())}));$$t.$hv.ee="TrackEndColor";$$t.$hv.trackEndColorProperty=$$t.$a6.i("TrackEndColor",$$t.$an.$type,$$t.$hv.$type,new $$t.a7(2,$$t.$an.n(255,0,0,0),function(a,b){a.cc("TrackEndColor",b.d(),b.c())}));$$t.$hv.eh="Value";$$t.$hv.valueProperty=$$t.$a6.i("Value",Number,$$t.$hv.$type,new $$t.a7(2,NaN,function(a,b){var c=a;c.cc("Value",b.d(),b.c());var d=c.valueChanged;if(null!=d){d(c,new $$t.al(b.d(),b.c()))}}));$$t.$hv.eg="ValueNeedleBrush";$$t.$hv.valueNeedleBrushProperty=$$t.$a6.i("ValueNeedleBrush",$$t.$bn.$type,$$t.$hv.$type,new $$t.a7(2,null,function(a,b){a.cc("ValueNeedleBrush",b.d(),b.c())}));if($$t.$hv.staticInit&&!$$t.$hv.radialMenuNumericGaugeStaticInitCalled){$$t.$hv.staticInit();$$t.$hv.radialMenuNumericGaugeStaticInitCalled=true}$$t.$h3.fb="Value";$$t.$h3.valueProperty=$$t.$a6.i("Value",Number,$$t.$h3.$type,new $$t.a7(2,NaN,function(a,b){var c=a;c.cc("Value",b.d(),b.c());var d=c.valueChanged;if(null!=d){d(c,new $$t.al(b.d(),b.c()))}}));if($$t.$h3.staticInit&&!$$t.$h3.radialMenuNumericItemStaticInitCalled){$$t.$h3.staticInit();$$t.$h3.radialMenuNumericItemStaticInitCalled=true}$$t.$f3.h=0;$$t.$f3.k=100;$$t.$f3.m=200;$$t.$f3.n=300;$$t.$f3.o=500;$$t.$f3.l=600;$$t.$f3.p=700;$$t.$f3.q=800;$$t.$f3.i=900;$$t.$f3.j=1e3;$$t.$f3.g=1100;$$t.$f3.x=function(){var $ret=new $$t.an;$ret.colorString("transparent");return $ret}();$$t.$f3.u=function(){var $ret=new $$t.an;$ret.colorString("black");return $ret}();$$t.$f3.y=function(){var $ret=new $$t.an;$ret.colorString("white");return $ret}();$$t.$f3.s=function(){var $ret=new $$t.bn;$ret.color($$t.$f3.x);return $ret}();$$t.$f3.a=null;if($$t.$f3.staticInit&&!$$t.$f3.radialMenuUtilitiesStaticInitCalled){$$t.$f3.staticInit();$$t.$f3.radialMenuUtilitiesStaticInitCalled=true}$$t.$cr.n=3.14159265358979*2;$$t.$cr.l=Math.sqrt(2);$$t.$bo.bm=5;$$t.$bo.bw=5;$$t.$bo.bq=2;$$t.$bo.bv=3.14159265358979/180*.5;$$t.$bo.bp=-1;$$t.$bo.bo=.3;$$t.$bo.b0=250;$$t.$bo.by=1e3;$$t.$bo.cf="CenterButtonContentWidth";$$t.$bo.centerButtonContentWidthProperty=$$t.$a6.i("CenterButtonContentWidth",Number,$$t.$bo.$type,new $$t.a7(2,28,function(a,b){a.d4("CenterButtonContentWidth",b.d(),b.c())}));$$t.$bo.cd="CenterButtonContentHeight";$$t.$bo.centerButtonContentHeightProperty=$$t.$a6.i("CenterButtonContentHeight",Number,$$t.$bo.$type,new $$t.a7(2,28,function(a,b){a.d4("CenterButtonContentHeight",b.d(),b.c())}));$$t.$bo.cb="CenterButtonClosedFill";$$t.$bo.centerButtonClosedFillProperty=$$t.$a6.i("CenterButtonClosedFill",$$t.$bn.$type,$$t.$bo.$type,new $$t.a7(2,null,function(a,b){a.d4("CenterButtonClosedFill",b.d(),b.c())}));$$t.$bo.cc="CenterButtonClosedStroke";$$t.$bo.centerButtonClosedStrokeProperty=$$t.$a6.i("CenterButtonClosedStroke",$$t.$bn.$type,$$t.$bo.$type,new $$t.a7(2,null,function(a,b){a.d4("CenterButtonClosedStroke",b.d(),b.c())}));$$t.$bo.cg="CenterButtonFill";$$t.$bo.centerButtonFillProperty=$$t.$a6.i("CenterButtonFill",$$t.$bn.$type,$$t.$bo.$type,new $$t.a7(2,null,function(a,b){a.d4("CenterButtonFill",b.d(),b.c())}));$$t.$bo.ch="CenterButtonHotTrackFill";$$t.$bo.centerButtonHotTrackFillProperty=$$t.$a6.i("CenterButtonHotTrackFill",$$t.$bn.$type,$$t.$bo.$type,new $$t.a7(2,null,function(a,b){a.d4("CenterButtonHotTrackFill",b.d(),b.c())}));$$t.$bo.ci="CenterButtonHotTrackStroke";$$t.$bo.centerButtonHotTrackStrokeProperty=$$t.$a6.i("CenterButtonHotTrackStroke",$$t.$bn.$type,$$t.$bo.$type,new $$t.a7(2,null,function(a,b){a.d4("CenterButtonHotTrackStroke",b.d(),b.c())}));$$t.$bo.ce="CenterButtonContent";$$t.$bo.centerButtonContentProperty=$$t.$a6.i("CenterButtonContent",$.ig.$op.$type,$$t.$bo.$type,new $$t.a7(2,null,function(a,b){a.d4("CenterButtonContent",b.d(),b.c())}));$$t.$bo.ck="CenterButtonKeyTip";$$t.$bo.centerButtonKeyTipProperty=$$t.$a6.i("CenterButtonKeyTip",String,$$t.$bo.$type,new $$t.a7(2,"0",function(a,b){a.d4("CenterButtonKeyTip",b.d(),b.c())}));$$t.$bo.cl="CenterButtonStroke";$$t.$bo.centerButtonStrokeProperty=$$t.$a6.i("CenterButtonStroke",$$t.$bn.$type,$$t.$bo.$type,new $$t.a7(2,null,function(a,b){a.d4("CenterButtonStroke",b.d(),b.c())}));$$t.$bo.cm="CenterButtonStrokeThickness";$$t.$bo.centerButtonStrokeThicknessProperty=$$t.$a6.i("CenterButtonStrokeThickness",Number,$$t.$bo.$type,new $$t.a7(2,0,function(a,b){a.d4("CenterButtonStrokeThickness",b.d(),b.c())}));$$t.$bo.cn="CurrentOpenMenuItem";$$t.$bo.currentOpenMenuItemProperty=$$t.$a6.i("CurrentOpenMenuItem",$.ig.$op.$type,$$t.$bo.$type,new $$t.a7(2,null,function(a,b){a.d4("CurrentOpenMenuItem",b.d(),b.c())}));$$t.$bo.cp="Font";$$t.$bo.fontProperty=$$t.$a6.i("Font",String,$$t.$bo.$type,new $$t.a7(2,null,function(a,b){a.d4("Font",b.d(),b.c())}));$$t.$bo.cq="IsOpen";$$t.$bo.isOpenProperty=$$t.$a6.i("IsOpen",$$t.$d.$type,$$t.$bo.$type,new $$t.a7(2,false,function(a,b){a.d4("IsOpen",b.d(),b.c())}));$$t.$bo.cr="KeyTipTemplate";$$t.$bo.keyTipTemplateProperty=$$t.$a6.i("KeyTipTemplate",$$t.$cb.$type,$$t.$bo.$type,new $$t.a7(2,null,function(a,b){a.d4("KeyTipTemplate",b.d(),b.c())}));$$t.$bo.cs="MenuBackground";$$t.$bo.menuBackgroundProperty=$$t.$a6.i("MenuBackground",$$t.$bn.$type,$$t.$bo.$type,new $$t.a7(2,null,function(a,b){a.d4("MenuBackground",b.d(),b.c())}));$$t.$bo.ct="MenuItemOpenCloseAnimationDuration";$$t.$bo.menuItemOpenCloseAnimationDurationProperty=$$t.$a6.i("MenuItemOpenCloseAnimationDuration",$.ig.Number.prototype.$type,$$t.$bo.$type,new $$t.a7(2,250,function(a,b){a.d4("MenuItemOpenCloseAnimationDuration",b.d(),b.c())}));$$t.$bo.cu="MenuItemOpenCloseAnimationEasingFunction";$$t.$bo.menuItemOpenCloseAnimationEasingFunctionProperty=$$t.$a6.i($$t.$bo.cu,$$t.$d3.$type.specialize(Number,Number),$$t.$bo.$type,new $$t.a7(2,null,function(a,b){a.d4($$t.$bo.cu,b.d(),b.c())}));$$t.$bo.cv="MenuOpenCloseAnimationDuration";$$t.$bo.menuOpenCloseAnimationDurationProperty=$$t.$a6.i("MenuOpenCloseAnimationDuration",$.ig.Number.prototype.$type,$$t.$bo.$type,new $$t.a7(2,250,function(a,b){a.d4("MenuOpenCloseAnimationDuration",b.d(),b.c())
}));$$t.$bo.cw="MenuOpenCloseAnimationEasingFunction";$$t.$bo.menuOpenCloseAnimationEasingFunctionProperty=$$t.$a6.i("MenuOpenCloseAnimationEasingFunction",$$t.$d3.$type.specialize(Number,Number),$$t.$bo.$type,new $$t.a7(2,null,function(a,b){a.d4("MenuOpenCloseAnimationEasingFunction",b.d(),b.c())}));$$t.$bo.cx="MinWedgeCount";$$t.$bo.minWedgeCountProperty=$$t.$a6.i("MinWedgeCount",$.ig.Number.prototype.$type,$$t.$bo.$type,new $$t.a7(2,8,function(a,b){a.d4("MinWedgeCount",b.d(),b.c())}));$$t.$bo.cy="OuterRingFill";$$t.$bo.outerRingFillProperty=$$t.$a6.i("OuterRingFill",$$t.$bn.$type,$$t.$bo.$type,new $$t.a7(2,null,function(a,b){a.d4("OuterRingFill",b.d(),b.c())}));$$t.$bo.c1="OuterRingThickness";$$t.$bo.outerRingThicknessProperty=$$t.$a6.i("OuterRingThickness",Number,$$t.$bo.$type,new $$t.a7(2,26,function(a,b){a.d4("OuterRingThickness",b.d(),b.c())}));$$t.$bo.cz="OuterRingStroke";$$t.$bo.outerRingStrokeProperty=$$t.$a6.i("OuterRingStroke",$$t.$bn.$type,$$t.$bo.$type,new $$t.a7(2,null,function(a,b){a.d4("OuterRingStroke",b.d(),b.c())}));$$t.$bo.c0="OuterRingStrokeThickness";$$t.$bo.outerRingStrokeThicknessProperty=$$t.$a6.i("OuterRingStrokeThickness",Number,$$t.$bo.$type,new $$t.a7(2,0,function(a,b){a.d4("OuterRingStrokeThickness",b.d(),b.c())}));$$t.$bo.c3="RotationInDegrees";$$t.$bo.rotationInDegreesProperty=$$t.$a6.i("RotationInDegrees",Number,$$t.$bo.$type,new $$t.a7(2,-90,function(a,b){a.d4("RotationInDegrees",b.d(),b.c())}));$$t.$bo.c2="RotationAsPercentageOfWedge";$$t.$bo.rotationAsPercentageOfWedgeProperty=$$t.$a6.i("RotationAsPercentageOfWedge",Number,$$t.$bo.$type,new $$t.a7(2,-.5,function(a,b){a.d4("RotationAsPercentageOfWedge",b.d(),b.c())}));$$t.$bo.c4="WedgePaddingInDegrees";$$t.$bo.wedgePaddingInDegreesProperty=$$t.$a6.i("WedgePaddingInDegrees",Number,$$t.$bo.$type,new $$t.a7(2,0,function(a,b){a.d4("WedgePaddingInDegrees",b.d(),b.c())}));if($$t.$bo.staticInit&&!$$t.$bo.xamRadialMenuStaticInitCalled){$$t.$bo.staticInit();$$t.$bo.xamRadialMenuStaticInitCalled=true}$$t.$dq.d=null;$$t.$dq.c=null;$$t.$dq.b=null;$$t.$dq.ag=null;$$t.$dq.ab=0;if($$t.$dq.staticInit&&!$$t.$dq.xamRadialMenuViewStaticInitCalled){$$t.$dq.staticInit();$$t.$dq.xamRadialMenuViewStaticInitCalled=true}$$t.$fj.c4=0;$$t.$fh.a=new $$t.fh;$$t.$h5.e=null;$$t.$h5.d=null;if($$t.$h5.staticInit&&!$$t.$h5.radialMenuItemOverlayTemplatesStaticInitCalled){$$t.$h5.staticInit();$$t.$h5.radialMenuItemOverlayTemplatesStaticInitCalled=true}$.ig.util.extCopy($.ig.KeyTipExtensions,[[[$.ig.String],["toUpper"]],[[$.ig.Number],["toString1"]]]);$.ig.util.extCopy($.ig.LiteRectExtensions,[[[$.ig.LiteRect],["toRect","isEqual","isEmpty"]]]);$.ig.util.extCopy($.ig.Queryable,[[[$.ig.SortedList$1,$.ig.IGrouping$2,$.ig.IFastItemColumn$1,$.ig.FastItemColumn,$.ig.FastItemDateTimeColumn,$.ig.FastItemObjectColumn,$.ig.FastItemIntColumn,$.ig.FastItemsSource,$.ig.EdgeClipper,$.ig.RearrangedList$1],["asQueryable"]]]);$.ig.util.extCopy($.ig.Enumerable,[[[$.ig.SortedList$1,$.ig.IGrouping$2,$.ig.IFastItemColumn$1,$.ig.FastItemColumn,$.ig.FastItemDateTimeColumn,$.ig.FastItemObjectColumn,$.ig.FastItemIntColumn,$.ig.EdgeClipper,$.ig.RearrangedList$1],["where$1","where$11","select$2","selectMany$2","last$1","first$1","firstOrDefault$1","orderBy$2","orderByDescending$2","toList$1","concat$1","max","max$1","min","min$1","count$1","reverse$1","take$1","skip$1","any$1","contains$1","union$1","toArray$1","elementAt$1","sum","sum$1"]],[[$.ig.SortedList$1,$.ig.IGrouping$2,$.ig.IFastItemColumn$1,$.ig.FastItemColumn,$.ig.FastItemDateTimeColumn,$.ig.FastItemObjectColumn,$.ig.FastItemIntColumn,$.ig.FastItemsSource,$.ig.EdgeClipper,$.ig.RearrangedList$1],["ofType$1","cast$1"]]]);$.ig.util.extCopy($.ig.ArrayUtil,[[[$.ig.EdgeClipper,$.ig.RearrangedList$1],["shuffle$1","insertionIndex$11","insertionIndex$1","binarySearch$1"]]]);$.ig.util.extCopy($.ig.BrushUtil,[[[],["getLightened"]]]);$.ig.util.extCopy($.ig.ColorUtil,[[[],["getInterpolation","getLightened","getAHSL","getAHSV"]]]);$.ig.util.extCopy($.ig.Extensions,[[[],["reset1"]],[[],["reset"]],[[],["detach"]],[[],["transferChildrenTo"]],[[],["isPlottable"]],[[],["isPlottable1"]]]);$.ig.util.extCopy($.ig.PathFigureUtil,[[[],["duplicate1"]],[[],["duplicate"]]]);$.ig.util.extCopy($.ig.PointCollectionUtil,[[[$.ig.RearrangedList$1],["flattenTo","getBounds2","clipTo"]],[[$.ig.RearrangedList$1],["getBounds1","getBounds","getCentroid","toPointCollection","toPointList"]],[[],["getBounds3","getBounds4","toPointCollections"]]]);$.ig.util.extCopy($.ig.RectUtil,[[[],["getCenter","getArea","duplicate","getLeader","getDistanceSquared1","getDistanceSquared2","getDistanceSquared","contains","intersectsWith","intersectionArea","getInflated","inflate1","inflate","round","isNull","size","normalize","normalize1","getTopLeft","getTopRight","getBottomLeft","getBottomRight","getCorners","rotateAboutCenter","rotateAboutPoint"]]])})(jQuery);(function($){$(document).ready(function(){var wm=$("#__ig_wm__").length>0?$("#__ig_wm__"):$('<div id="__ig_wm__"></div>').appendTo(document.body);wm.css({position:"fixed",bottom:0,right:0,zIndex:1e3}).addClass("ui-igtrialwatermark")})})(jQuery);