function ULSqdK(){var o=new Object;o.ULSTeamName="Windows SharePoint Services 4";o.ULSFileName="CUI.js";return o;}
if(typeof IEnumerator=="undefined"){var IEnumerator=function(){};IEnumerator.prototype={get_current:null,moveNext:null,reset:null};IEnumerator.registerInterface("IEnumerator")}if(typeof IEnumerable=="undefined"){var IEnumerable=function(){};IEnumerable.prototype={getEnumerator:null};IEnumerable.registerInterface("IEnumerable")}Type.registerNamespace("CUI");Type.registerNamespace("CUI.Page");if(typeof CUI.Page.PageComponent=="undefined"){CUI.Page.ICommandHandler=function(){};CUI.Page.ICommandHandler.registerInterface("CUI.Page.ICommandHandler");CUI.Page.PageComponent=function(){};CUI.Page.PageComponent.prototype={init:function(){},getGlobalCommands:function(){ULSqdK:;return null},getFocusedCommands:function(){ULSqdK:;return null},handleCommand:function(){ULSqdK:;return false},canHandleCommand:function(){ULSqdK:;return false},isFocusable:function(){ULSqdK:;return false},receiveFocus:function(){ULSqdK:;return false},yieldFocus:function(){ULSqdK:;return true},getId:function(){ULSqdK:;return "PageComponent"}};CUI.Page.PageComponent.registerClass("CUI.Page.PageComponent",null,CUI.Page.ICommandHandler)}Type.registerNamespace("CUI");CUI.IRootBuildClient=function(){};CUI.IRootBuildClient.registerInterface("CUI.IRootBuildClient");CUI.ISelectableControl=function(){};CUI.ISelectableControl.registerInterface("CUI.ISelectableControl");CUI.QueryRecord=function(){};CUI.$create_QueryRecord=function(){ULSqdK:;return new CUI.QueryRecord};CUI.GalleryElementDimensions=function(){};CUI.GalleryElementDimensions.prototype={size16by16:1,size32by32:2,size48by48:3,size64by48:4,size72by96:5,size96by72:6,size96by96:7,size128by128:8,size190by30:9,size190by40:10,size190by50:11,size190by60:12};CUI.GalleryElementDimensions.registerEnum("CUI.GalleryElementDimensions",false);CUI.IMenuItem=function(){};CUI.IMenuItem.registerInterface("CUI.IMenuItem");CUI.DeclarativeTemplateBuildContext=function(){};CUI.$create_DeclarativeTemplateBuildContext=function(){ULSqdK:;return new CUI.DeclarativeTemplateBuildContext};CUI.CommandInformation=function(){};CUI.$create_CommandInformation=function(){ULSqdK:;return new CUI.CommandInformation};CUI.IModalController=function(){};CUI.IModalController.registerInterface("CUI.IModalController");CUI.DisabledCommandInfoProperties=function(){};CUI.$create_DisabledCommandInfoProperties=function(){ULSqdK:;return new CUI.DisabledCommandInfoProperties};CUI.PMarker=function(){};CUI.PMarker.prototype={beginSession:1,endSession:2,perfCUIRibbonInitStart:7103,perfCUIRibbonInitPercvdEnd:7104,perfCUIRibbonTabSwitchWarmStart:7105,perfCUIRibbonTabSwitchWarmPercvdEnd:7106,perfCUIRibbonTabSwitchWarmEnd:7107,perfCUIRibbonCompleteConstruction:7108,perfCUIRibbonQueryDataStart:7109,perfCUIRibbonQueryDataEnd:7110,perfWSSWikiUpdatePanelStart:7111,perfWSSWikiUpdatePanelEnd:7112,perfWSSWebPartComponentMouseClickStart:7186,perfWSSWebPartComponentMouseClickEnd:7187,perfCUIAddAndPositionBackFrameStart:7188,perfCUIAddAndPositionBackFrameEnd:7189,perfCUIFlyoutAnchorOnClickStart:7190,perfCUIFlyoutAnchorOnClickEnd:7191,perfCUIDropDownOnArrowButtonClickStart:7192,perfCUIDropDownOnArrowButtonClickEnd:7193,perfWSSBreadcrumbStart:7386,perfWSSBreadcrumbEnd:7387,perfWSSSelectOrDeselectAllStart:7388,perfWSSSelectOrDeselectAllEnd:7389,perfWSSSelectItemStart:7390,perfWSSSelectItemEnd:7391,perfWSSFilterSortStart:7392,perfWSSFilterSortEnd:7393,perfWSSMMUOpenStart:7394,perfWSSMMUOpenEnd:7395,perfWSSECBClickStart:7396,perfWSSECBClickEnd:7397,perfSPSSaveStatusNoteBegin:7634,perfSPSSaveStatusNoteEnd:7635,perfWSSCalendarRenderStart:7644,perfWSSCalendarRenderEnd:7645,perfPLTxInstrumentStart:7698,perfPLTxInstrumentEnd:7699,perfCUIRibbonButtonOnClickStart:7700,perfCUIRibbonButtonOnClickEnd:7701,perfCUIRibbonInsertTableOnClickStart:7702,perfCUIRibbonInsertTableOnClickEnd:7703,perfCUIRibbonToggleButtonOnClickStart:7704,perfCUIRibbonToggleButtonOnClickEnd:7705,perfWSSDialogShow:7706,perfWSSDialogClosed:7707,perfWSSRTEDialogOnLoadEnd:7708,perfWSSRTEDialogOnOkButtonClickStart:7709,perfWSSRTEAutoCompleteSetResultsStart:7710,perfWSSRTEAutoCompleteSetResultsEnd:7711,perfCUIRibbonEditWikiPageStart:7735,perfCUIRibbonEditWikiPageEnd:7736};CUI.PMarker.registerEnum("CUI.PMarker",false);CUI.BuildOptions=function(){};CUI.BuildOptions.prototype={lazyMenuInit:false,trimmedIds:null,attachToDOM:false,validateServerRendering:false,fixedPositioningEnabled:false,dataExtensions:null,clientID:null};CUI.BuildContext=function(){};CUI.DataNodeWrapper=function(a){ULSqdK:;this.$a_0=a};CUI.DataNodeWrapper.getFirstChildNodeWithName=function(f,g){ULSqdK:;for(var c=CUI.DataNodeWrapper.getNodeChildren(f),d=c.length,a=null,b=0;b<d;b++){a=c[b];var e=a.name;if(e===g)return a}return null};CUI.DataNodeWrapper.getNodeName=function(a){ULSqdK:;return a.name};CUI.DataNodeWrapper.getNodeChildren=function(b){ULSqdK:;var a=b.children;if(CUI.ScriptUtility.isNullOrUndefined(a))return CUI.DataNodeWrapper.get_$CX_0();return a};CUI.DataNodeWrapper.get_$CX_0=function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(CUI.DataNodeWrapper.$61_0))CUI.DataNodeWrapper.$61_0=[];return CUI.DataNodeWrapper.$61_0};CUI.DataNodeWrapper.getNodeAttributes=function(a){ULSqdK:;return a.attrs};CUI.DataNodeWrapper.getNodeAttribute=function(b,c){ULSqdK:;var a=b.attrs;return a[c]};CUI.DataNodeWrapper.prototype={$a_0:null,get_node:function(){ULSqdK:;return this.$a_0},set_node:function(a){ULSqdK:;this.$a_0=a;return a},get_name:function(){ULSqdK:;return CUI.DataNodeWrapper.getNodeName(this.$a_0)},get_children:function(){ULSqdK:;return CUI.DataNodeWrapper.getNodeChildren(this.$a_0)},get_attributes:function(){ULSqdK:;return CUI.DataNodeWrapper.getNodeAttributes(this.$a_0)},get_hasChildren:function(){ULSqdK:;return CUI.DataNodeWrapper.getNodeChildren(this.$a_0).length>0}};CUI.Builder=function(c,b,a){ULSqdK:;this.$80=Function.createDelegate(this,this.$CR_0);this.$8s=Function.createDelegate(this,this.$7Z_0);this.$s_0=c;if(CUI.ScriptUtility.isNullOrUndefined(this.$s_0.trimmedIds))this.$s_0.trimmedIds={};this._elmPlaceholder=b;this.$1Q_0=a;this.$21_0=this.$8s;$addHandler(window,"unload",this.$21_0)};CUI.Builder.$CA=function(b){ULSqdK:;var a=CUI.NativeUtility.createXMLDocFromString(b);if(CUI.ScriptUtility.isNullOrUndefined(a))return null;return CUI.Builder.$CB(a)};CUI.Builder.$CB=function($p0){return eval("("+CUI.Builder.convertNodeToJSON($p0.documentElement)+")")};CUI.Builder.convertNodeToJSON=function(b){ULSqdK:;var a;a="{";a+='"name" : "';a+=CUI.NativeUtility.ecmaScriptStringLiteralEncode(b.nodeName);a+='",';a+='"attrs": {';var f=b.attributes;if(!CUI.ScriptUtility.isNullOrUndefined(b.attributes)){var g=f.length;if(g>0)for(var h=true,d=0;d<g;d++){var i=f.item(d);if(h)h=false;else a+=",";a+='"';a+=CUI.NativeUtility.ecmaScriptStringLiteralEncode(i.name);a+='"';a+=':"';a+=CUI.NativeUtility.ecmaScriptStringLiteralEncode(i.value);a+='"'}}a+="}";var c=b.childNodes;if(c){var j=c.length;if(j>0){a+=",";a+="children:[";for(var k=true,e=0;e<j;e++){var l=c[e];if(l.nodeName==="#text")continue;if(k)k=false;else a+=",";a+=CUI.Builder.convertNodeToJSON(l)}a+="]"}}a+="}";return a};CUI.Builder.applyDataNodeExtensions=function(a,f){ULSqdK:;var m=a.attrs;if(CUI.ScriptUtility.isNullOrUndefined(m))return a;var n=m["Id"],g=f[n];if(!CUI.ScriptUtility.isNullOrUndefined(g)){for(var d=null,p=Number.MAX_VALUE,v=g.length,i=0;i<v;i++){var e=g[i];if(!e)return null;var q=CUI.DataNodeWrapper.getNodeAttribute(e,"Sequence");if(CUI.ScriptUtility.isNullOrUndefined(q)){if(CUI.ScriptUtility.isNullOrUndefined(d))d=e;continue}var r=parseInt(q);if(r<p){d=e;p=r}}if(!CUI.ScriptUtility.isNullOrUndefined(d))a=d}var b=a["children"];if(CUI.ScriptUtility.isNullOrUndefined(b)){b=[];a["children"]=b}for(var c=[],t=b.length,j=0;j<t;j++)Array.add(c,b[j]);var h=f[n+"._children"];if(!CUI.ScriptUtility.isNullOrUndefined(h)){for(var w=h.length,k=0;k<w;k++)Array.add(c,h[k]);c.sort(CUI.Builder.$C8_0)}for(var o=[],u=c.length,l=0;l<u;l++){var s=CUI.Builder.applyDataNodeExtensions(c[l],f);!CUI.ScriptUtility.isNullOrUndefined(s)&&Array.add(o,s)}a["children"]=o;return a};CUI.Builder.$C8_0=function(e,f){ULSqdK:;var a=CUI.DataNodeWrapper.getNodeAttribute(e,"Sequence"),b=CUI.DataNodeWrapper.getNodeAttribute(f,"Sequence");if(CUI.ScriptUtility.isNullOrUndefined(b)&&CUI.ScriptUtility.isNullOrUndefined(a))return 0;if(CUI.ScriptUtility.isNullOrUndefined(b))return -1;if(CUI.ScriptUtility.isNullOrUndefined(a))return 1;var c=parseInt(a),d=parseInt(b);if(c<d)return -1;else if(c>d)return 1;return 0};CUI.Builder.prototype={$1Q_0:null,$21_0:null,$7Z_0:function(){ULSqdK:;this.dispose()},$7a:function(a){ULSqdK:;a.$2v_1=this.$s_0.fixedPositioningEnabled},dispose:function(){ULSqdK:;this.$0_0=null;this.$s_0=null;this._elmPlaceholder=null;this.$1Q_0=null;this.$12_0=null;$removeHandler(window,"unload",this.$21_0);this.$21_0=null},$0_0:null,get_root:function(){ULSqdK:;return this.$0_0},set_root:function(a){ULSqdK:;this.$0_0=a;return a},$2Y_0:false,get_inQuery:function(){ULSqdK:;return this.$2Y_0},set_inQuery:function(a){ULSqdK:;this.$2Y_0=a;return a},$12_0:null,get_dataSource:function(){ULSqdK:;return this.$12_0},set_dataSource:function(a){ULSqdK:;this.$12_0=a;return a},_elmPlaceholder:null,get_placeholder:function(){ULSqdK:;return this._elmPlaceholder},$s_0:null,isIdTrimmed:function(a){ULSqdK:;return this.$s_0.trimmedIds[a]},isNodeTrimmed:function(a){ULSqdK:;var b=CUI.DataNodeWrapper.getNodeAttribute(a,"Id");return this.$s_0.trimmedIds[b]},$1d:function(a,c){ULSqdK:;var b=null,d=a.name;switch(d){case "ToggleButton":b=this.$C2_0(a,c);break;case "ComboBox":b=this.$Bj_0(a,c);break;case "DropDown":b=this.$Bk_0(a,c);break;case "Button":b=this.$Bf_0(a,c);break;case "SplitButton":b=this.$Bz_0(a,c);break;case "FlyoutAnchor":b=this.$Bl_0(a,c);break;case "GalleryButton":b=this.$9x_0(a,c,null);break;case "InsertTable":b=this.$Bo_0(a,c);break;case "Label":b=this.$Bs_0(a,c);break;case "MRUSplitButton":b=this.$Bu_0(a,c);break;case "Spinner":b=this.$By_0(a,c);break;case "TextBox":b=this.$C1_0(a,c);break;case "ColorPicker":b=this.$Bi_0(a,c);break;case "CheckBox":b=this.$Bh_0(a,c);break;case "Separator":b=this.$Bx_0(a,c);break;default:var e=a.attrs,f=e["Classname"];if(CUI.ScriptUtility.isNullOrUndefined(f))throw Error.create("Unable to create Control with tagname: "+d)}return b},$37:function(c,d,e){ULSqdK:;var a=c.attrs,b=this.$0_0.$A6(a["Id"],a["Title"],a["Description"],a["MaxWidth"]);if(this.$s_0.lazyMenuInit&&e){b.$7k(this.$80,c,d);return b}this.$AE_0(b,c,d);return b},$AE_0:function(g,h,i){ULSqdK:;for(var c=CUI.DataNodeWrapper.getNodeChildren(h),e=c.length,a=null,b=0;b<e;b++){a=c[b];var d=a.name;if(d!=="MenuSection")throw Error.create("Tags with the name: "+d+" cannot be children of Menu tags.");if(this.isNodeTrimmed(a))continue;var f=this.$Bt_0(a,i);g.addChild(f)}},$CR_0:function(b,c,d){ULSqdK:;var a=b;this.$AE_0(a,c,d);a.$4v(true);return a},$Bt_0:function(c,i){ULSqdK:;var a=c.attrs,b=a["DisplayMode"];if(CUI.ScriptUtility.isNullOrUndefined(b))b="Menu";var d=this.$0_0.$A7(a["Id"],a["Title"],a["Description"],a["Scrollable"]==="true",a["MaxHeight"],b),g=CUI.DataNodeWrapper.getNodeName(CUI.DataNodeWrapper.getNodeChildren(c)[0]);if(g==="Controls")for(var h=CUI.DataNodeWrapper.getNodeChildren(CUI.DataNodeWrapper.getNodeChildren(c)[0]),j=h.length,e=null,f=0;f<j;f++){e=h[f];if(this.isNodeTrimmed(e))continue;var k=this.$1d(e,i);d.addChild(k.createComponentForDisplayMode(b))}else if(g==="Gallery"){var l=this.$Bm_0(CUI.DataNodeWrapper.getNodeChildren(c)[0],i,true);d.addChild(l)}return d},$Bm_0:function(e,i,l){ULSqdK:;for(var f=e.attrs,b=e.attrs,g=this.$0_0.$CI(b.Id,f["Title"],f["Description"],b),j=l?"Menu":"Default",h=CUI.DataNodeWrapper.getNodeChildren(e),k=h.length,a=null,c=0;c<k;c++){a=h[c];if(this.isNodeTrimmed(a))continue;var d;switch(CUI.DataNodeWrapper.getNodeName(a)){case "GalleryButton":d=this.$9x_0(a,i,b.ElementDimensions);break;default:d=this.$1d(a,i)}g.addChild(d.createComponentForDisplayMode(j))}return g},$9x_0:function(d,g,a){ULSqdK:;var b;if(CUI.ScriptUtility.isNullOrEmptyString(a)){var f=d.attrs;a=f["ElementDimensions"]}if(CUI.ScriptUtility.isNullOrEmptyString(a))b=2;else b=CUI.Gallery.$A0(a);var c=d.attrs,e=new CUI.Controls.GalleryButton(this.$0_0,c.Id,c,b);return e},$C2_0:function(c){ULSqdK:;var a=c.attrs,b=new CUI.Controls.ToggleButton(this.$0_0,a.Id,a);return b},$Bh_0:function(c){ULSqdK:;var a=c.attrs,b=new CUI.Controls.CheckBox(this.$0_0,a.Id,a);return b},$Bi_0:function(h){ULSqdK:;for(var e=h.attrs,d=CUI.DataNodeWrapper.getNodeChildren(CUI.DataNodeWrapper.getFirstChildNodeWithName(h,"Colors")),f=new Array(d.length),i=d.length,c=0;c<i;c++){var a=new CUI.Controls.ColorStyle,b=CUI.DataNodeWrapper.getNodeAttributes(d[c]),g=b["Title"];a.Title=CUI.ScriptUtility.isNullOrUndefined(g)?b["Alt"]:g;a.Color=b["Color"];a.DisplayColor=b["DisplayColor"];a.Style=b["Style"];f[c]=a}var j=new CUI.Controls.ColorPicker(this.$0_0,e.Id,e,f);return j},$Bj_0:function(d,r){ULSqdK:;var e=d.attrs,f=CUI.DataNodeWrapper.getNodeChildren(d),g=null,l=d.attrs,a=null;if(!CUI.Utility.$v(l.PopulateDynamically)){g=this.$37(f[0],r,false);a={};for(var i=CUI.DataNodeWrapper.getNodeChildren(f[0]),m=i.length,b=0;b<m;b++)for(var n=CUI.DataNodeWrapper.getNodeChildren(i[b]),j=CUI.DataNodeWrapper.getNodeChildren(n[0]),o=j.length,c=0;c<o;c++){var k=j[c].attrs,p=k["LabelText"],q=k["MenuItemId"];a[p]=q}}var h=new CUI.Controls.ComboBox(this.$0_0,e.Id,e,g);h.set_menuItems(a);return h},$Bk_0:function(a,g){ULSqdK:;var b=a.attrs,d=CUI.DataNodeWrapper.getNodeChildren(a),c=null,e=a.attrs;if(!CUI.Utility.$v(e.PopulateDynamically))c=this.$37(d[0],g,false);var f=new CUI.Controls.DropDown(this.$0_0,b.Id,b,c);return f},$Bf_0:function(c){ULSqdK:;var a=c.attrs,b=new CUI.Controls.Button(this.$0_0,a.Id,a);return b},$Bz_0:function(c,f){ULSqdK:;var a=c.attrs,d=CUI.DataNodeWrapper.getNodeChildren(c),b=null;if(!CUI.Utility.$v(a.PopulateDynamically))b=this.$37(d[0],f,true);var e=new CUI.Controls.SplitButton(this.$0_0,a.Id,a,b);return e},$Bl_0:function(a,g){ULSqdK:;var b=a.attrs,d=CUI.DataNodeWrapper.getNodeChildren(a),c=null,e=a.attrs;if(!CUI.Utility.$v(e.PopulateDynamically))c=this.$37(d[0],g,true);var f=new CUI.Controls.FlyoutAnchor(this.$0_0,b.Id,b,c);return f},$Bo_0:function(c){ULSqdK:;var a=c.attrs,b=new CUI.Controls.InsertTable(this.$0_0,a.Id,a);return b},$Bs_0:function(c){ULSqdK:;var a=c.attrs,b=new CUI.Controls.Label(this.$0_0,a.Id,a);return b},$Bu_0:function(a,g){ULSqdK:;var b=a.attrs,d=CUI.DataNodeWrapper.getNodeChildren(a),c=null,e=a.attrs;if(!CUI.Utility.$v(e.PopulateDynamically))c=this.$37(d[0],g,false);var f=new CUI.Controls.MRUSplitButton(this.$0_0,b.Id,b,c);return f},$Bx_0:function(c){ULSqdK:;var a=c.attrs,b=new CUI.Controls.Separator(this.$0_0,a.Id,a);return b},$By_0:function(b){ULSqdK:;var a=b.attrs,c=new CUI.Controls.Spinner(this.$0_0,a.Id,a,this.$C6_0(b));return c},$C1_0:function(c){ULSqdK:;var a=c.attrs,b=new CUI.Controls.TextBox(this.$0_0,a.Id,a);return b},$79_0:function(a){ULSqdK:;if(typeof a==="string")return parseFloat(a);return a},$C9_0:function(a){ULSqdK:;if(typeof a==="string")return parseInt(a);return a},$C6_0:function(g){ULSqdK:;for(var c=CUI.DataNodeWrapper.getNodeChildren(g),d=new Array(c.length),f=c.length,b=0;b<f;b++){var e=c[b],a=CUI.DataNodeWrapper.getNodeAttributes(e);d[b]=CUI.Controls.Spinner.createUnit(a["Name"],this.$C5_0(CUI.DataNodeWrapper.getNodeChildren(e)),this.$79_0(a["MinimumValue"]),this.$79_0(a["MaximumValue"]),this.$C9_0(a["DecimalDigits"]),this.$79_0(a["Interval"]))}return d},$C5_0:function(b){ULSqdK:;for(var c=new Array(b.length),d=b.length,a=0;a<d;a++){var e=b[a],f=CUI.DataNodeWrapper.getNodeAttributes(e);c[a]=f["Value"]}return c},applyDataExtensions:function(a){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(this.$s_0.dataExtensions))return CUI.Builder.applyDataNodeExtensions(a,this.$s_0.dataExtensions);else return a}};CUI.CommandEventArgs=function(d,c,a,b){ULSqdK:;CUI.CommandEventArgs.initializeBase(this);this.$6_1=d;this.$2z_1=b;this.$31_1=a;this.$G_1=c};CUI.CommandEventArgs.prototype={$6_1:null,$6s_1:0,$2z_1:null,$31_1:null,$G_1:0,$6B_1:null,get_id:function(){ULSqdK:;return this.$6_1},get_parameters:function(){ULSqdK:;return this.$2z_1},get_sequenceNumber:function(){ULSqdK:;return this.$6s_1},set_sequenceNumber:function(a){ULSqdK:;this.$6s_1=a;return a},get_source:function(){ULSqdK:;return this.$31_1},get_sourceControl:function(){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(this.$31_1)&&CUI.ControlComponent.isInstanceOfType(this.$31_1))return this.$31_1.$M_1;return null},get_type:function(){ULSqdK:;return this.$G_1},get_properties:function(){ULSqdK:;return this.$2z_1},get_commandInfo:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$6B_1))this.$6B_1=new CUI.CommandInformation;return this.$6B_1}};CUI.Component=function(c,d,b,a){ULSqdK:;this._componentWidth=-1;this._componentHeight=-1;this._componentTopPosition=-1;this._componentLeftPosition=-1;this.$6_0=d;this.$0_0=c;this.$1R_0=b;this.$6H_0=a;this.createChildArray()};CUI.Component.prototype={$6_0:null,$2q_0:null,$K_0:null,$0_0:null,$4_0:null,$g_0:true,$5l_0:true,$1P_0:true,$5U_0:false,$6H_0:null,$1R_0:null,createChildArray:function(){ULSqdK:;this.$7D()},$7D:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$4_0))this.$4_0=new CUI.List},get_id:function(){ULSqdK:;return this.$6_0},set_id:function(a){ULSqdK:;this.$6_0=a;return a},get_$2:function(){ULSqdK:;return this.$2q_0},set_$2:function(a){ULSqdK:;this.$2q_0=a;return a},get_root:function(){ULSqdK:;return this.$0_0},get_parent:function(){ULSqdK:;return this.$K_0},set_parent:function(a){ULSqdK:;this.$K_0=a;return a},$x:function(){},$2j:function(){ULSqdK:;return false},$2i:function(){ULSqdK:;return false},$1p:function(){},$3x:function(){},$5n:function(){ULSqdK:;return false},$AN:function(c){ULSqdK:;var a=this.$4_0.getEnumerator();while(a.moveNext()){var b=a.get_current();if(b.$6_0===c)return b}return null},getChild:function(a){ULSqdK:;return this.$AN(a)},getChildByTitle:function(c){ULSqdK:;var a=this.$4_0.getEnumerator();while(a.moveNext()){var b=a.get_current();if(b.get_title()===c)return b}return null},addChild:function(a){ULSqdK:;this.$34(a,true)},$34:function(a,b){ULSqdK:;this.$9p(a,-1,b)},addChildAtIndex:function(a,b){ULSqdK:;this.$9p(a,b,true)},$9p:function(a,b,c){ULSqdK:;c&&this.ensureCorrectChildType(a);if(!CUI.ScriptUtility.isNullOrUndefined(a.$K_0))throw Error.create("This child cannot be added because it has already been added \n to another Component in the hierarchy.  \n You must first call child.Parent.RemoveChild(child)");if(b===-1)this.$4_0.add(a);else this.$4_0.insert(b,a);a.$K_0=this;this.$w()},removeChild:function(b){ULSqdK:;var a=this.$AN(b);if(CUI.ScriptUtility.isNullOrUndefined(a))throw Error.create("The child with id: "+b+" is not as child of this Component");this.$4_0.remove(a);a.$K_0=null;this.$w()},removeChildren:function(){ULSqdK:;var a=this.$4_0.getEnumerator();while(a.moveNext()){var b=a.get_current();if(b)b.$K_0=null}this.$4_0.clear();this.$w()},ensureCorrectChildType:function(){ULSqdK:;return},initRootMember:function(a){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(this.$0_0))throw Error.create("Root member has already been set for this Component.");this.$0_0=a},get_visible:function(){ULSqdK:;return this.$5l_0},set_visible:function(a){ULSqdK:;this.set_$64(a);return a},get_$64:function(){ULSqdK:;return this.get_visible()},set_$64:function(a){ULSqdK:;var b=this.$5l_0;this.$5l_0=a;b!==this.$5l_0&&this.$w();return a},get_enabled:function(){ULSqdK:;return this.$1P_0},set_enabled:function(a){ULSqdK:;if(this.$1P_0===a&&this.$5U_0)return;if(!CUI.ScriptUtility.isNullOrUndefined(this.$K_0)&&!this.$K_0.get_enabled()&&a)throw Error.create("This Component with id: "+this.$6_0+" cannot be Enabled because its parent is Disabled");this.$1P_0=a;this.$5U_0=true;var b=this.$4_0.getEnumerator();while(b.moveNext()){var c=b.get_current();c.set_enabled(a)}this.onEnabledChanged(a);return a},onEnabledChanged:function(){},$E4:function(a){ULSqdK:;var c=this.$1P_0!==a;this.$1P_0=a;if(!CUI.ScriptUtility.isNullOrUndefined(this.$4_0)){var b=this.$4_0.getEnumerator();while(b.moveNext()){var d=b.get_current();d.$E4(a)}}c&&this.onEnabledChanged(a)},get_title:function(){ULSqdK:;return this.$1R_0},set_title:function(a){ULSqdK:;this.$1R_0=a;this.$w();return a},get_description:function(){ULSqdK:;return this.$6H_0},set_description:function(a){ULSqdK:;this.$6H_0=a;this.$w();return a},_lastWidthUpdate:0,_lastHeightUpdate:0,get_$77:function(){ULSqdK:;return this._componentHeight},_lastTopUpdate:0,get_$4p:function(){ULSqdK:;return this._componentTopPosition},_lastLeftUpdate:0,valueIsDirty:function(a){ULSqdK:;if(CUI.Ribbon.isInstanceOfType(this.$0_0)){var b=this.$0_0;return a<b.get_$D8()}return false},$7l:function(b){ULSqdK:;this.$g_0=b;if(CUI.ScriptUtility.isNullOrUndefined(this.$4_0))return;var a=this.$4_0.getEnumerator();while(a.moveNext()){var c=a.get_current();c.$7l(b)}},$w:function(){ULSqdK:;if(this.$g_0||this.$4X_0)return;this.$g_0=true;!CUI.ScriptUtility.isNullOrUndefined(this.$K_0)&&this.$K_0.$w()},$4X_0:false,$L:function(){ULSqdK:;this.$g_0=false},$2O:function(){ULSqdK:;this.$g_0&&this.$L()},$36:function(b){ULSqdK:;this.$3v();this.$N();this.$g_0=false;if(b)if(!CUI.ScriptUtility.isNullOrUndefined(this.$4_0)){var a=this.$4_0.getEnumerator();while(a.moveNext()){var c=a.get_current();c.$36(b)}}},$3v:function(){ULSqdK:;var a=$get(this.$6_0);if(!CUI.ScriptUtility.isNullOrUndefined(a))this.set_$2(a);else throw Error.create("Attempting to attach to Id: "+this.$6_0+" but this id is not present in the DOM")},$N:function(){},$m:function(){ULSqdK:;if(!this.$2q_0){this.$2q_0=CUI.Utility.$3(this.get_domElementTagName());this.$2q_0.className=this.get_cssClass();this.$2q_0.id=this.$6_0}},get_domElementTagName:function(){ULSqdK:;return "span"},get_cssClass:function(){ULSqdK:;return ""},get_visibleInDOM:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$K_0))return false;return this.$K_0.get_visibleInDOM()},$50:function(){ULSqdK:;if(!this.get_visible())return false;var a=this.$4_0.getEnumerator();while(a.moveNext()){var b=a.get_current();if(b.$50())return true}return false},ensureDOMElementAndEmpty:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.get_$2()))this.$m();else this.set_$2(CUI.Utility.removeChildNodes(this.get_$2()))},appendChildrenToElement:function(d){ULSqdK:;var c=document.createDocumentFragment(),b=this.$4_0.getEnumerator();while(b.moveNext()){var a=b.get_current();a.$m();c.appendChild(a.get_$2());a.$2O()}d.appendChild(c)},raiseCommandEvent:function(b,d,a){ULSqdK:;var c=this.$0_0.$CF(b,d,this,a);this.$B4(c)},$B4:function(a){ULSqdK:;this.$1e(a)&&!CUI.ScriptUtility.isNullOrUndefined(this.$K_0)&&this.$K_0.$B4(a);this.$Av(a)},$1e:function(){ULSqdK:;return true},$Av:function(){},getTextValue:function(){ULSqdK:;return null},receiveFocus:function(){},onMenuClosed:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$4_0))return;var a=this.$4_0.getEnumerator();while(a.moveNext()){var b=a.get_current();b.onMenuClosed()}},$3U_0:null,$5I_0:null,$5J_0:null,$7k:function(a,b,c){ULSqdK:;this.$3U_0=a;this.$5I_0=b;this.$5J_0=c},$6G_0:false,doDelayedInit:function(){ULSqdK:;if(this.$6G_0)return;if(CUI.ScriptUtility.isNullOrUndefined(this.$3U_0))throw Error.create("No delayedinit handler present in this component: "+this.$6_0);this.$6G_0=true;this.$3U_0(this,this.$5I_0,this.$5J_0)},$4v:function(a){ULSqdK:;if(a){this.$3U_0=null;this.$5I_0=null;this.$5J_0=null;this.$w()}this.$6G_0=false},get_needsDelayIniting:function(){ULSqdK:;return !CUI.ScriptUtility.isNullOrUndefined(this.$3U_0)},$2P:function(){ULSqdK:;var a=this.$4_0.getEnumerator();while(a.moveNext()){var b=a.get_current();b.$2P()}},$4Z_0:null,get_$40:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$4Z_0)){this.$4Z_0=new Date;this.$4Z_0.setTime(0)}return this.$4Z_0},set_$40:function(a){ULSqdK:;this.$4Z_0=a;return a},get_$B5:function(){ULSqdK:;return this.get_$40().getTime()<this.$0_0.get_$40().getTime()},$B2:function(){ULSqdK:;this.get_$B5()&&this.$2P()},dispose:function(){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(this.$4_0)){var a=this.$4_0.getEnumerator();while(a.moveNext()){var b=a.get_current();b.dispose()}this.$4_0=null}this.$K_0=null;this.$0_0=null;this.$5I_0=null;this.$3U_0=null;this.$5J_0=null;this.$2q_0=null}};CUI.ContextMenu=function(d,e,c,a,b){ULSqdK:;CUI.ContextMenu.initializeBase(this,[d,e,c,a,b])};CUI.ContextMenu.prototype={$L:function(){ULSqdK:;this.get_needsDelayIniting()&&this.doDelayedInit();this.ensureDOMElementAndEmpty();if(CUI.ScriptUtility.isNullOrUndefined(this.$Q_1)){this.$Q_1=CUI.Utility.$3("div");this.$Q_1.className="ms-cui-contextmenu-inner"}this.get_$2().appendChild(this.$Q_1);this.appendChildrenToElement(this.$Q_1);CUI.ContextMenu.callBaseMethod(this,"$L")},get_cssClass:function(){ULSqdK:;return "ms-cui-contextmenu"}};CUI.ContextMenuDock=function(a,b){ULSqdK:;CUI.ContextMenuDock.initializeBase(this,[a,b,"",""])};CUI.ContextMenuDock.prototype={$L:function(){ULSqdK:;this.ensureDOMElementAndEmpty();this.appendChildrenToElement(this.get_$2());CUI.ContextMenuDock.callBaseMethod(this,"$L")},ensureCorrectChildType:function(a){ULSqdK:;if(!CUI.ControlComponent.isInstanceOfType(a))throw Error.create("Only children of type Control can be added to Strips.")},get_visibleInDOM:function(){ULSqdK:;return true}};CUI.ContextMenuLauncher=function(c,d,a,b){ULSqdK:;CUI.ContextMenuLauncher.initializeBase(this,[c,d,a,b])};CUI.ContextMenuLauncher.prototype={$5X_2:null,$6y_2:null,$9n_2:0,$9o_2:0,$Ah:function(a,b){ULSqdK:;this.$6y_2=b;this.$5X_2=this.getMenuPosition(a,null);this.launchMenu(null);this.$B_1.$1p();return true},launchContextMenuAt:function(a,b,c){ULSqdK:;this.$9n_2=b;this.$9o_2=c;this.$6y_2=a;this.launchMenu(null);this.$B_1.$1p();return true},positionMenu:function(b){ULSqdK:;if(this.$5X_2){this.$B_1.get_$2().style.top=this.$5X_2.y+"px";this.$B_1.get_$2().style.left=this.$5X_2.x+"px";this.$B_1.get_$2().style.position="absolute"}else{b.style.top="0px";b.style.left="0px";var a=this.getAllElementDimensions(b,this.$6y_2);a["launcherLeft"]=this.$9n_2;a["launcherTop"]=this.$9o_2;a["launcherWidth"]=0;a["launcherHeight"]=0;this.$0_0.$7m(b,a,false)}},getMenuPosition:function(a){ULSqdK:;var b=new Sys.UI.Bounds(0,0,0,0);if(!a)a=window.event;b.y=a.clientY;b.x=a.clientX;return b}};CUI.ContextMenuRootProperties=function(){ULSqdK:;CUI.ContextMenuRootProperties.initializeBase(this)};CUI.ContextMenuRootProperties.prototype={CommandMenuOpen:null,CommandMenuClose:null};CUI.ContextMenuRoot=function(b,a){ULSqdK:;this.$5H_2={};CUI.ContextMenuRoot.initializeBase(this,[b,a])};CUI.ContextMenuRoot.prototype={refresh:function(){ULSqdK:;this.$L();CUI.ContextMenuRoot.callBaseMethod(this,"$L")},$L:function(){ULSqdK:;CUI.ScriptUtility.isNullOrUndefined(this.get_$2())&&this.$m();this.set_$2(CUI.Utility.removeChildNodes(this.get_$2()));this.appendChildrenToElement(this.get_$2());this.$g_0=false},get_rootType:function(){ULSqdK:;return "ContextMenu"},get_$18:function(){ULSqdK:;if(!CUI.ContextMenuRoot.callBaseMethod(this,"get_$18")){var a=new CUI.BuildOptions;a.lazyMenuInit=false;CUI.ContextMenuRoot.callBaseMethod(this,"set_$18",[new CUI.Builder(a,null,null)]);CUI.ContextMenuRoot.callBaseMethod(this,"get_$18").$0_0=this}return CUI.ContextMenuRoot.callBaseMethod(this,"get_$18")},set_$18:function(a){ULSqdK:;CUI.ContextMenuRoot.callBaseMethod(this,"set_$18",[a]);return a},get_contextMenuRootProperties:function(){ULSqdK:;return this.$5_1},ensureCorrectChildType:function(a){ULSqdK:;if(!CUI.ContextMenuDock.isInstanceOfType(a))throw Error.create("Only children of type ContextMenuDock can be added to a ContextMenuRoot")},createContextMenu:function(a,b,f,e){ULSqdK:;var g=new CUI.ContextMenu(this,b,f,e,null);if(!a)a=new CUI.Controls.ContextMenuControlProperties;a.CommandMenuOpen=this.get_contextMenuRootProperties().CommandMenuOpen;a.CommandMenuClose=this.get_contextMenuRootProperties().CommandMenuClose;var c=new CUI.Controls.ContextMenuControl(this,b+"Launcher",a,g);this.$5H_2[b]=c;var d=new CUI.ContextMenuDock(this,"dock"+b);d.addChild(c.createComponentForDisplayMode("Menu"));this.addChild(d);this.refresh()},showContextMenu:function(b,c,d){ULSqdK:;var a=this.$5H_2[b];if(CUI.ScriptUtility.isNullOrUndefined(a))throw Error.create('The context menu "'+b+'" does not exist');a.$Ah(c,d)},showContextMenuAt:function(b,c,d,e){ULSqdK:;var a=this.$5H_2[b];if(CUI.ScriptUtility.isNullOrUndefined(a))throw Error.create('The context menu "'+b+'" does not exist');a.launchContextMenuAt(c,d,e)}};CUI.ControlProperties=function(){};CUI.ControlProperties.prototype={Command:null,Id:null,TemplateAlias:null,ToolTipDescription:null,ToolTipHelpKeyWord:null,ToolTipImage32by32:null,ToolTipImage32by32Class:null,ToolTipImage32by32Top:null,ToolTipImage32by32Left:null,ToolTipSelectedItemTitle:null,ToolTipShortcutKey:null,ToolTipTitle:null,LabelCss:null};CUI.Control=function(a,c,b){ULSqdK:;this.$3J=Function.createDelegate(this,this.onDblClick);this.$8H=Function.createDelegate(this,this.onHelpKeyPress);this.$7y=Function.createDelegate(this,this.$X);this.$65=Function.createDelegate(this,this.launchToolTip);this.$0_0=a;this.$6_0=c;this.$5_0=b;this.$k_0=[];this.$4F_0=",";this.$2n_0={};a.$Du(this)};CUI.Control.createStandardControlDOMElement=function(b,c,d,e,f,g){ULSqdK:;var a=e;return CUI.Control.createStandardControlDOMElementCore(b,c,d,a.Id,a.Image32by32,a.Image32by32Class,a.Image32by32Top,a.Image32by32Left,a.Image16by16,a.Image16by16Class,a.Image16by16Top,a.Image16by16Left,a.LabelText,a.LabelCss,a.Alt,a.Description,a.ToolTipTitle,f,g)};CUI.Control.createStandardControlDOMElementCore=function(y,l,c,G,H,I,J,K,L,M,C,D,g,z,d,A,m,N,h){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(g))g="";var n=false,j=true,a=CUI.Utility.$4q(),e=null;if(c==="Large")e="ms-cui-ctl-large";else if(c==="Medium")e="ms-cui-ctl-medium";else if(c==="Menu16"||c==="Menu"){e="ms-cui-ctl-menu";n=true}else if(c==="Menu32"){e="ms-cui-ctl-menu ms-cui-ctl-menu32";n=true}else e="ms-cui-ctl";CUI.Utility.ensureCSSClassOnElement(a,e);c==="Menu"&&CUI.Utility.ensureCSSClassOnElement(a,"ms-cui-textmenuitem");!CUI.ScriptUtility.isNullOrUndefined(m)&&a.setAttribute("aria-describedby",G+"_ToolTip");a.setAttribute("mscui:controltype",y.get_$15());var o=CUI.Utility.$3("img"),p=null,q=null,r=null,s=null,t=0;o.alt="";d=CUI.ScriptUtility.isNullOrEmptyString(d)?g:d;a.setAttribute("role",y.get_$25());CUI.Controls.FlyoutAnchor.isInstanceOfType(y)&&a.setAttribute("aria-haspopup","true");if(CUI.ScriptUtility.isNullOrEmptyString(m)){a.title=d;o.alt=d;j=false}if(c==="Large"||c==="Menu32"){p=H;q=I;r=J;s=K;t=4}else{p=L;q=M;r=C;s=D;t=3}var E=CUI.Utility.$j(2,t,p,q,o,true,false,r,s),u=CUI.Utility.$3("span");u.className=c==="Large"?"ms-cui-ctl-largeIconContainer":"ms-cui-ctl-iconContainer";u.appendChild(E);var b=null,B=null;if(j)B=CUI.Utility.$2h(d);if(c!=="Small"||h){b=CUI.Utility.$3("span");if(c!=="Small"){if(c==="Large"){CUI.Utility.ensureCSSClassOnElement(b,"ms-cui-ctl-largelabel");b.innerHTML=CUI.Utility.$AH(g,h)}else{var w=g;if(h)w=w+" ";CUI.Utility.ensureCSSClassOnElement(b,"ms-cui-ctl-mediumlabel");CUI.UIUtility.setInnerText(b,w)}if(!CUI.ScriptUtility.isNullOrEmptyString(z))b.style.cssText=z}else{CUI.Utility.ensureCSSClassOnElement(b,"ms-cui-ctl-smalllabel");CUI.UIUtility.setInnerText(b," ")}}else if(j)b=CUI.Utility.$2h(d);var v=null;if(h){var x=CUI.Utility.$3("img");x.alt="";if(CUI.ScriptUtility.isNullOrEmptyString(m))x.alt=d;v=CUI.Utility.$j(2,1,l.$5_1.ImageDownArrow,l.$5_1.ImageDownArrowClass,x,true,false,l.$5_1.ImageDownArrowTop,l.$5_1.ImageDownArrowLeft)}var f=null,i=null,k=null;if(c==="Menu32"){f=CUI.Utility.$3("span");f.className="ms-cui-ctl-menulabel";CUI.Utility.ensureCSSClassOnElement(b,"ms-cui-btn-title");f.appendChild(b);if(!CUI.ScriptUtility.isNullOrUndefined(A)){i=CUI.Utility.$3("span");CUI.Utility.ensureCSSClassOnElement(i,"ms-cui-btn-menu-description");CUI.Utility.$2k(i,A);i.style.display="block";f.appendChild(i)}k=CUI.Utility.$3("span");k.className="ms-cui-ctl-menu32clear";k.innerHTML="&nbsp;"}a.appendChild(u);if(!CUI.ScriptUtility.isNullOrUndefined(b)){if(!CUI.ScriptUtility.isNullOrUndefined(f)){a.appendChild(f);a.appendChild(k)}else{a.appendChild(b);c==="Small"&&h&&j&&a.appendChild(B)}!CUI.ScriptUtility.isNullOrUndefined(v)&&b.appendChild(v)}if(n){var F=CUI.Utility.$A3();a.appendChild(F)}return a};CUI.Control.createTwoAnchorControlDOMElementCore=function(u,k,a,A,B,C,D,E,F,G,x,y,g,b,l,m){ULSqdK:;var h=true;if(CUI.ScriptUtility.isNullOrUndefined(g))g="";var d=CUI.Utility.$3("span");if(a==="Large")d.className="ms-cui-ctl-large";else if(a==="Medium")d.className="ms-cui-ctl ms-cui-ctl-medium";else d.className="ms-cui-ctl ms-cui-ctl-small";!CUI.ScriptUtility.isNullOrUndefined(l)&&d.setAttribute("aria-describedby",A+"_ToolTip");d.setAttribute("mscui:controltype",u.get_$15());var f=CUI.Utility.$4q(),e=CUI.Utility.$4q();f.className="ms-cui-ctl-a1";e.className="ms-cui-ctl-a2";b=CUI.ScriptUtility.isNullOrEmptyString(b)?g:b;f.setAttribute("role",u.get_$25());e.setAttribute("role",u.get_$25());e.setAttribute("aria-haspopup","true");var i=CUI.Utility.$3("span");i.className="ms-cui-ctl-a1Internal";var n=CUI.Utility.$3("img"),o=null,p=null,q=null,r=null,s=0;n.alt="";if(CUI.ScriptUtility.isNullOrEmptyString(l)){f.title=b;e.title=b;n.alt=b;h=false}if(a==="Large"||a==="Menu32"){o=B;p=C;q=D;r=E;s=4}else{o=F;p=G;q=x;r=y;s=3}var z=CUI.Utility.$j(2,s,o,p,n,true,false,q,r),t=null,v=null;if(h){t=CUI.Utility.$2h(b);v=CUI.Utility.$2h(b)}var c=null;if(a!=="Small"||m){c=CUI.Utility.$3("span");if(a!=="Small")if(a==="Large"){CUI.Utility.ensureCSSClassOnElement(c,"ms-cui-ctl-largelabel");c.innerHTML=CUI.Utility.$AH(g,m)}else if(a==="Medium"){CUI.Utility.ensureCSSClassOnElement(c,"ms-cui-ctl-mediumlabel");CUI.UIUtility.setInnerText(c,g)}}var j=null;if(m){var w=CUI.Utility.$3("img");if(CUI.ScriptUtility.isNullOrEmptyString(l))w.alt=b;j=CUI.Utility.$j(2,1,k.$5_1.ImageDownArrow,k.$5_1.ImageDownArrowClass,w,true,false,k.$5_1.ImageDownArrowTop,k.$5_1.ImageDownArrowLeft)}d.appendChild(f);d.appendChild(e);f.appendChild(i);i.appendChild(z);if(!CUI.ScriptUtility.isNullOrUndefined(c)){if(a==="Large"){e.appendChild(c);h&&f.appendChild(t)}else{i.appendChild(c);h&&e.appendChild(v)}a==="Small"&&h&&f.appendChild(t)}if(!CUI.ScriptUtility.isNullOrUndefined(j))if(a==="Large")c.appendChild(j);else e.appendChild(j);return d};CUI.Control.prototype={$0_0:null,$6_0:null,$k_0:null,$5_0:null,$4F_0:null,$2n_0:null,$1S_0:null,$5j_0:false,$70_0:null,$6z_0:null,$1P_0:false,$5U_0:false,get_controlProperties:function(){ULSqdK:;return this.$5_0},$6w_0:null,get_stateProperties:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$6w_0))this.$6w_0={};return this.$6w_0},$6C_0:null,get_commandProperties:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$6C_0))this.$6C_0={};return this.$6C_0},get_templateAlias:function(){ULSqdK:;return this.$5_0.TemplateAlias},get_$15:function(){ULSqdK:;return "Control"},get_$25:function(){ULSqdK:;return "button"},ensureValidDisplayMode:function(a){ULSqdK:;if(this.$4F_0.indexOf(","+a+",")!==-1)return;throw Error.create("The display mode with name: "+a+" is not valid for this control with id: "+this.$6_0)},refreshDOMElements:function(){ULSqdK:;this.onStateChanged();!this.get_enabled()&&this.onEnabledChanged(false)},onStateChanged:function(){},$6D_0:null,getDOMElementForDisplayMode:function(b){ULSqdK:;this.ensureValidDisplayMode(b);var a=this.$2n_0[b];if(!CUI.ScriptUtility.isNullOrUndefined(a))return a;this.$6D_0=b;a=this.createDOMElementForDisplayMode(b);this.$6D_0=null;if(CUI.ScriptUtility.isNullOrEmptyString(a.id))a.id=this.$6_0+"-"+b;this.storeElementForDisplayMode(a,b);this.refreshDOMElements();return a},storeElementForDisplayMode:function(a,b){ULSqdK:;this.$2n_0[b]=a},$35:function(b){ULSqdK:;var a=$get(this.$6_0+"-"+b);!CUI.ScriptUtility.isNullOrUndefined(a)&&this.storeElementForDisplayMode(a,b)},$O:function(){},createComponentForDisplayMode:function(b){ULSqdK:;var a=this.createComponentForDisplayModeInternal(b);Array.add(this.$k_0,a);return a},get_components:function(){ULSqdK:;return this.$k_0},createComponentForDisplayModeInternal:function(a){ULSqdK:;var b=this.$0_0.$CH(this.$6_0+"-"+a+this.$0_0.$27(),a,this);return b},dispose:function(){ULSqdK:;this.releaseEventHandlers();this.$0_0=null;this.$k_0=null;this.$4F_0=null;var a=this.$2n_0;for(var b in a){var c={key:b,value:a[b]};delete this.$2n_0[c.key]}this.$2n_0=null;!CUI.ScriptUtility.isNullOrUndefined(this.$1S_0)&&this.$1S_0.dispose()},releaseEventHandlers:function(){ULSqdK:;var a=this.$2n_0;for(var b in a){var c={key:b,value:a[b]};CUI.Utility.$7d(c.value)}},get_id:function(){ULSqdK:;return this.$6_0},get_root:function(){ULSqdK:;return this.$0_0},addDisplayMode:function(a){ULSqdK:;if(this.$4F_0.indexOf(","+a+",")!==-1)return;this.$4F_0+=a+","},ensureCorrectChildType:function(a){ULSqdK:;if(!CUI.ToolTip.isInstanceOfType(a))throw Error.create("Child Components may not be added to this type of ControlComponent.")},get_displayedComponent:function(){ULSqdK:;for(var c=this.$k_0.length,a=0;a<c;a++){var b=this.$k_0[a];if(b.get_visibleInDOM())return b}return null},$1e:function(){ULSqdK:;return true},$Av:function(){},onMenuClosed:function(){},onClick:function(a){ULSqdK:;a.preventDefault()},onDblClick:function(a){ULSqdK:;a.preventDefault();if(!this.get_enabled())return;Sys.Browser.agent===Sys.Browser.InternetExplorer&&this.onClick(a)},onBeginFocus:function(){ULSqdK:;window.clearInterval(this.$0_0.$2d_1);if(!CUI.ScriptUtility.isNullOrUndefined(this.$0_0.$33_1))if(this.$0_0.$33_1.$6_0===this.$6_0){this.launchToolTip();return}else{this.$0_0.$2f();this.$0_0.$2d_1=window.setTimeout(this.$65,500)}else this.$0_0.$2d_1=window.setTimeout(this.$65,500)},onEndFocus:function(){ULSqdK:;window.clearInterval(this.$0_0.$2d_1);if(this.$5j_0)this.$0_0.$2d_1=window.setTimeout(this.$7y,100)},onToolTipOpenned:function(){ULSqdK:;this.$70_0=this.$8H;this.$6z_0=this.$1S_0.$1G;$addHandler(document,"keydown",this.$70_0);$addHandler(document,"click",this.$6z_0)},onToolTipClosed:function(){ULSqdK:;$removeHandler(document,"keydown",this.$70_0);$removeHandler(document,"click",this.$6z_0)},onHelpKeyPress:function(a){ULSqdK:;!CUI.ScriptUtility.isNullOrUndefined(this.$1S_0)&&this.$1S_0.$Ar(a)},launchToolTip:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$0_0))return;window.clearInterval(this.$0_0.$2d_1);if(this.$5j_0)return;!CUI.ScriptUtility.isNullOrUndefined(this.$0_0.$33_1)&&this.$0_0.$33_1.$6_0!==this.$6_0&&this.$0_0.$2f();if(CUI.ScriptUtility.isNullOrUndefined(this.$5_0.ToolTipTitle))return;this.$1S_0=new CUI.ToolTip(this.$0_0,this.$6_0+"_ToolTip",this.$5_0.ToolTipTitle,this.$5_0.ToolTipDescription,this.$5_0);if(!this.get_enabled()){var a=new CUI.DisabledCommandInfoProperties;a.Icon=this.$0_0.$5_1.ToolTipDisabledCommandImage16by16;a.IconClass=this.$0_0.$5_1.ToolTipDisabledCommandImage16by16Class;a.IconTop=this.$0_0.$5_1.ToolTipDisabledCommandImage16by16Top;a.IconLeft=this.$0_0.$5_1.ToolTipDisabledCommandImage16by16Left;a.Title=this.$0_0.$5_1.ToolTipDisabledCommandTitle;a.Description=this.$0_0.$5_1.ToolTipDisabledCommandDescription;a.HelpKeyWord=this.$0_0.$5_1.ToolTipDisabledCommandHelpKey;this.$1S_0.$1B_1=a}var b=this.get_displayedComponent();b.$7D();b.addChild(this.$1S_0);this.$1S_0.$CT();this.$5j_0=true;this.$0_0.$33_1=this;this.onToolTipOpenned()},$X:function(){ULSqdK:;!CUI.ScriptUtility.isNullOrUndefined(this.$0_0)&&window.clearInterval(this.$0_0.$2d_1);if(!CUI.ScriptUtility.isNullOrUndefined(this.$1S_0)){this.$1S_0.$Aa();this.$5j_0=false;this.onToolTipClosed();CUI.UIUtility.removeNode(this.$1S_0.get_$2());this.$1S_0=null}},get_enabled:function(){ULSqdK:;return this.$1P_0},set_enabled:function(a){ULSqdK:;if(this.$1P_0===a&&this.$5U_0)return;this.$1P_0=a;this.$5U_0=true;this.onEnabledChanged(a);return a},get_enabledInternal:function(){ULSqdK:;return this.$1P_0},set_enabledInternal:function(a){ULSqdK:;this.$1P_0=a;return a},$E3:function(a){ULSqdK:;this.$1P_0=a;this.onEnabledChanged(a)},$4y:function(){ULSqdK:;!CUI.ScriptUtility.isNullOrUndefined(this.$5_0.Command)&&this.pollForStateAndUpdateInternal(this.$5_0.Command,null,null,false)},pollForStateAndUpdateInternal:function(b,c,d,e){ULSqdK:;var a=(this.$0_0.$B1(b,c,d,e)&1)>0;this.set_enabled(a);return a},getTextValue:function(){ULSqdK:;return ""},receiveFocus:function(){},$2i:function(){ULSqdK:;return this.$AI_0()},$2j:function(){ULSqdK:;return this.$AI_0()},$AI_0:function(){ULSqdK:;var a=this.get_displayedComponent();if(!CUI.MenuItem.isInstanceOfType(a))return false;if(!a.get_$1F()){this.receiveFocus();return true}return false},$C7:function(){},$5p:function(){ULSqdK:;var a=this.get_displayedComponent();if(CUI.ScriptUtility.isNullOrUndefined(a))return null;return a.get_$2()},$7o:function(){ULSqdK:;return false}};CUI.ControlComponent=function(c,d,a,b){ULSqdK:;CUI.ControlComponent.initializeBase(this,[c,d,a,""]);this.$M_1=b};CUI.ControlComponent.prototype={$M_1:null,get_displayMode:function(){ULSqdK:;return this.get_title()},createChildArray:function(){},$L:function(){ULSqdK:;this.$g_0=false},$3v:function(){ULSqdK:;this.$M_1.$35(this.get_displayMode())},$N:function(){ULSqdK:;this.$M_1.$O(this.get_displayMode())},get_$2:function(){ULSqdK:;return this.$M_1.getDOMElementForDisplayMode(this.get_title())},set_$2:function(a){ULSqdK:;throw Error.create("Cannot set the DOM Element of ControlComponents.  They get their DOM Elements from the Control.");return a},get_componentElement:function(){ULSqdK:;return CUI.ControlComponent.callBaseMethod(this,"get_$2")},get_enabled:function(){ULSqdK:;return this.$M_1.get_enabled()},set_enabled:function(a){ULSqdK:;this.$M_1.set_enabled(a);return a},get_$EM:function(){ULSqdK:;if((this._componentWidth===-1||this.valueIsDirty(this._lastWidthUpdate))&&!CUI.ScriptUtility.isNullOrUndefined(this.get_$2()))this._componentWidth=this.get_$2().offsetWidth;return this._componentWidth},get_$77:function(){ULSqdK:;if((this._componentHeight===-1||this.valueIsDirty(this._lastHeightUpdate))&&!CUI.ScriptUtility.isNullOrUndefined(this.get_$2()))this._componentHeight=this.get_$2().offsetHeight;return this._componentHeight},get_$4p:function(){ULSqdK:;if((this._componentTopPosition===-1||this.valueIsDirty(this._lastTopUpdate))&&!CUI.ScriptUtility.isNullOrUndefined(this.get_$2()))this._componentTopPosition=CUI.UIUtility.calculateOffsetTop(this.get_$2());return this._componentTopPosition},get_$EN:function(){ULSqdK:;if((this._componentLeftPosition===-1||this.valueIsDirty(this._lastLeftUpdate))&&!CUI.ScriptUtility.isNullOrUndefined(this.get_$2()))this._componentLeftPosition=CUI.UIUtility.calculateOffsetLeft(this.get_$2());return this._componentLeftPosition},$E4:function(a){ULSqdK:;this.$M_1.$E3(a)},$4m:function(){ULSqdK:;return this.$M_1.createComponentForDisplayMode(this.get_displayMode())},onEnabledChanged:function(a){ULSqdK:;this.$M_1.onEnabledChanged(a)},ensureCorrectChildType:function(a){ULSqdK:;this.$M_1.ensureCorrectChildType(a)},$1e:function(a){ULSqdK:;return this.$M_1.$1e(a)},$Av:function(a){ULSqdK:;this.$M_1.$Av(a)},get_textValue:function(){ULSqdK:;return this.$M_1.getTextValue()},$2P:function(){ULSqdK:;this.$M_1.$4y()},receiveFocus:function(){ULSqdK:;this.$M_1.receiveFocus()},onMenuClosed:function(){ULSqdK:;this.$M_1.onMenuClosed()},$50:function(){ULSqdK:;return this.$M_1.$7o()},dispose:function(){ULSqdK:;this.$M_1.dispose();this.$M_1=null;CUI.ControlComponent.callBaseMethod(this,"dispose")}};CUI.DataQueryResult=function(){};CUI.DataQueryResult.prototype={success:false,id:null,queryData:null,contextData:null};CUI.DataQuery=function(){};CUI.DataQuery.prototype={dataUrl:null,version:null,lcid:null,id:null,queryType:0,handler:null,data:null};CUI.DataSource=function(a,b,c){ULSqdK:;this.$8F=Function.createDelegate(this,this.onDataReturned);this.$6E_0=a;this.$71_0=b;this.$6c_0=c;this.$BS_0={}};CUI.DataSource.prototype={$6E_0:null,$BS_0:null,$71_0:null,$6c_0:null,get_dataUrl:function(){ULSqdK:;return this.$6E_0},get_version:function(){ULSqdK:;return this.$71_0},get_lcid:function(){ULSqdK:;return this.$6c_0},runQuery:function(a){ULSqdK:;var g=this.$71_0;if(!CUI.ScriptUtility.isNullOrUndefined(a.version))g=a.version;var h=this.$6c_0;if(!CUI.ScriptUtility.isNullOrUndefined(a.lcid))h=a.lcid;var f=this.$6E_0;if(!CUI.ScriptUtility.isNullOrUndefined(a.dataUrl))f=a.dataUrl;var b,c=null;if(f.indexOf("?")===-1)b=f+"?ver=";else b=f+"&ver=";b=b+g+"&id="+a.id+"&lcid="+h+"&qt=";switch(a.queryType){case 1:c="all";break;case 4:c="ribbontab";break;case 3:c="ribbonshallow";break;case 5:c="root";break;case 2:c="ribbonvisibletabdeep"}b+=c;CUI.PMetrics.perfMark(7109);var d=new Sys.Net.WebRequest;d.set_httpVerb("GET");d.set_url(b);var e=new CUI.QueryRecord;e.id=a.id;e.queryType=a.queryType;e.data=a.data;e.handler=a.handler;d.set_userContext(e);d.add_completed(this.$8F);d.invoke()},onDataReturned:function(c){ULSqdK:;CUI.PMetrics.perfMark(7110);var b=c.get_webRequest().get_userContext(),a=new CUI.DataQueryResult;a.contextData=b.data;a.id=b.id;if(c.get_responseAvailable()){a.success=true;a.queryData=c.get_object();b.handler(a)}else{a.success=false;b.handler(a)}}};CUI.Gallery=function(d,e,c,a,b){ULSqdK:;this.$7_1=-1;CUI.Gallery.initializeBase(this,[d,e,c,a]);this.$3D_1=b;this.$4l_1=parseInt(this.$3D_1.Width);this.$5N_1=CUI.Gallery.$A0(this.$3D_1.ElementDimensions)};CUI.Gallery.$A0=function(a){ULSqdK:;switch(a){case "Size16by16":return 1;case "Size32by32":return 2;case "Size48by48":return 3;case "Size64by48":return 4;case "Size72by96":return 5;case "Size96by72":return 6;case "Size96by96":return 7;case "Size128by128":return 8;case "Size190by30":return 9;case "Size190by40":return 10;case "Size190by50":return 11;case "Size190by60":return 12;default:throw Error.argument("s","The parameter s is not a valid GalleryElementDimension")}};CUI.Gallery.prototype={$3D_1:null,$5N_1:0,$4l_1:0,$6r_1:null,get_domElementTagName:function(){ULSqdK:;return "table"},get_cssClass:function(){ULSqdK:;return "ms-cui-gallery"},$L:function(){ULSqdK:;this.ensureDOMElementAndEmpty();var a=CUI.Utility.$3("tbody");this.get_$2().appendChild(a);this.appendChildrenToElement(a)},appendChildrenToElement:function(h){ULSqdK:;for(var g=Math.ceil(this.$4_0.$P_0/this.$4l_1),c,a,b,d=0,e=0;e<g;e++){c=CUI.Utility.$3("tr");for(var f=0;f<this.$4l_1;f++){a=CUI.Utility.$3("td");a.className="ms-cui-gallery-td ms-cui-gallery-element-"+CUI.GalleryElementDimensions.toString(this.$5N_1);if(d<this.$4_0.$P_0){b=this.$4_0.get_item(d++);b.$m();a.appendChild(b.get_$2());b.$2O()}c.appendChild(a)}h.appendChild(c)}},$6o_1:false,$1e:function(a){ULSqdK:;if(this.$6o_1)return true;if(a.$G_1===3){var c=a.$31_1;if(!CUI.ISelectableControl.isInstanceOfType(c.$M_1))return CUI.Gallery.callBaseMethod(this,"$1e",[a]);var d=c.$M_1;!CUI.ScriptUtility.isNullOrUndefined(this.$6r_1)&&this.$6r_1.deselect();this.$6r_1=d}if(a.$G_1===3||a.$G_1===7||a.$G_1===8){var b;switch(a.$G_1){case 3:b=this.$3D_1.Command;break;case 7:b=this.$3D_1.CommandPreview;break;case 8:b=this.$3D_1.CommandRevert;break;default:b=this.$3D_1.Command}this.$6o_1=true;this.raiseCommandEvent(b,a.$G_1,a.$2z_1);this.$6o_1=false;CUI.Gallery.callBaseMethod(this,"$1e",[a]);return false}return CUI.Gallery.callBaseMethod(this,"$1e",[a])},$x:function(){ULSqdK:;if(!this.$4_0.$P_0)return;this.$7_1=0;var a=this.$4_0.getEnumerator();while(a.moveNext()){var b=a.get_current();b.$x()}},$1p:function(){ULSqdK:;if(!this.$4_0.$P_0)return;this.$7_1>-1&&this.$4_0.get_item(this.$7_1).$x();this.$7_1=0;this.$4_0.get_item(this.$7_1).$1p()},$3x:function(){ULSqdK:;var a=this.$4_0.$P_0;if(!a)return;this.$7_1>-1&&this.$4_0.get_item(this.$7_1).$x();this.$7_1=a-1;this.$4_0.get_item(this.$7_1).$3x()},$5n:function(d){ULSqdK:;if(!this.$4_0.$P_0)return false;var b=0,a=this.$4_0.getEnumerator();while(a.moveNext()){var c=a.get_current();if(c.$5n(d)){this.$7_1>-1&&this.$4_0.get_item(this.$7_1).$x();this.$7_1=b;return true}b++}return false},$2j:function(){ULSqdK:;if(this.$7_1===-1)this.$7_1=this.$4_0.$P_0-1;var a=this.$7_1,b=this.$4_0.getEnumeratorAtPos(a);while(b.movePrevious()){if(b.get_current().$2j()){if(a!==this.$7_1){this.$4_0.get_item(this.$7_1).$x();this.$7_1=a}return true}a--}this.$4_0.get_item(this.$7_1).$x();this.$7_1=-1;return false},$2i:function(){ULSqdK:;if(this.$7_1===-1)this.$7_1=0;var a=this.$7_1,b=this.$4_0.getEnumeratorAtPos(a);while(b.moveNext()){if(b.get_current().$2i()){if(a!==this.$7_1){this.$4_0.get_item(this.$7_1).$x();this.$7_1=a}return true}a++}this.$4_0.get_item(this.$7_1).$x();this.$7_1=-1;return false},ensureCorrectChildType:function(a){ULSqdK:;if(!CUI.ControlComponent.isInstanceOfType(a))throw Error.create("Galleries can only have children controls of type GalleryButton");var b=a;if(!CUI.Controls.GalleryButton.isInstanceOfType(b.$M_1))throw Error.create("Galleries can only have children of type GalleryButton")},get_elementDimensions:function(){ULSqdK:;return this.$5N_1},set_elementDimensions:function(a){ULSqdK:;this.$5N_1=a;return a},get_width:function(){ULSqdK:;return this.$4l_1},set_width:function(a){ULSqdK:;this.$4l_1=a;return a}};CUI.Jewel=function(b,a){ULSqdK:;CUI.Jewel.initializeBase(this,[b,a])};CUI.Jewel.prototype={$9V_2:null,refresh:function(){ULSqdK:;this.$L();CUI.Jewel.callBaseMethod(this,"refresh")},$L:function(){ULSqdK:;CUI.ScriptUtility.isNullOrUndefined(this.get_$2())&&this.$m();this.set_$2(CUI.Utility.removeChildNodes(this.get_$2()));this.appendChildrenToElement(this.get_$2());this.$g_0=false},ensureCorrectChildType:function(a){ULSqdK:;if(!CUI.ControlComponent.isInstanceOfType(a))throw Error.create('The child "'+a.$6_0+'" is not a ControlComponent');if(!CUI.Controls.JewelMenuLauncher.isInstanceOfType(a.$M_1))throw Error.create("Only children of type JewelMenuLauncher can be added to a Jewel")},get_cssClass:function(){ULSqdK:;return "ms-cui-jewel "+CUI.Jewel.callBaseMethod(this,"get_cssClass")},get_rootType:function(){ULSqdK:;return "Jewel"},get_visibleInDOM:function(){ULSqdK:;return true},get_$D6:function(){ULSqdK:;return this.get_$18()},set_$D6:function(a){ULSqdK:;this.set_$18(a);return a},$Cq:function(){ULSqdK:;this.$9V_2.$Cs()}};CUI.JewelBuildContext=function(){ULSqdK:;CUI.JewelBuildContext.initializeBase(this)};CUI.JewelBuildContext.prototype={jewel:null,jewelId:null};CUI.JewelBuildOptions=function(){ULSqdK:;CUI.JewelBuildOptions.initializeBase(this)};CUI.JewelBuilder=function(c,a,b){ULSqdK:;this.$8t=Function.createDelegate(this,this.$Aw_1);CUI.JewelBuilder.initializeBase(this,[c,a,b]);if(CUI.ScriptUtility.isNullOrUndefined(a))throw Error.create("Jewel placeholder DOM element is null or undefined.")};CUI.JewelBuilder.prototype={get_jewel:function(){ULSqdK:;return this.$0_0},set_jewel:function(a){ULSqdK:;this.$0_0=a;return a},buildJewel:function(c){ULSqdK:;if(this.$2Y_0)return false;if(this.isIdTrimmed(c))return true;var b=new CUI.JewelBuildContext;b.jewelId=c;this.$2Y_0=true;var a=new CUI.DataQuery;a.id=b.jewelId;a.queryType=5;a.handler=this.$8t;a.data=b;this.$12_0.runQuery(a);return true},$Bp:function(b,c){ULSqdK:;var a=new CUI.DataQueryResult;a.success=true;a.queryData=b;a.contextData=c;this.$Aw_1(a)},$Aw_1:function(a){ULSqdK:;var b=a.contextData;a.queryData=this.applyDataExtensions(a.queryData);var c=CUI.DataNodeWrapper.getFirstChildNodeWithName(a.queryData,"Jewel");this.set_jewel(this.$Bq_1(c,b));this.get_jewel().set_$D6(this);this.$1Q_0.onComponentCreated(this.get_jewel(),this.get_jewel().$6_0);if(this.get_$D7_1().attachToDOM)this.get_jewel().$36(true);else{this.get_jewel().$L();this._elmPlaceholder.appendChild(this.get_jewel().get_$2());CUI.Utility.ensureCSSClassOnElement(this._elmPlaceholder,"loaded")}this.$7a(this.get_jewel());this.$1Q_0.onComponentBuilt(this.get_jewel(),this.get_jewel().$6_0)},$Bq_1:function(a,d){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(a))throw Error.create("No Jewel element was present in the data");var b=new CUI.DataNodeWrapper(a);this.set_jewel(new CUI.Jewel(b.get_attributes()["Id"],b.get_attributes()));var c=this.$Br_1(a,d);this.get_jewel().addChild(c.createComponentForDisplayMode("Default"));this.get_jewel().$9V_2=c;return this.get_jewel()},$Br_1:function(a,g){ULSqdK:;var b=a.attrs,d=CUI.DataNodeWrapper.getNodeChildren(a),c=null,e=a.attrs;if(!CUI.Utility.$v(e.PopulateDynamically))c=this.$37(d[0],g,false);var f=new CUI.Controls.JewelMenuLauncher(this.get_jewel(),b.Id,b,c);return f},get_$D7_1:function(){ULSqdK:;return this.$s_0}};CUI.Menu=function(d,e,c,a,b){ULSqdK:;this.$7_1=-1;CUI.Menu.initializeBase(this,[d,e,c,a]);this.$6e_1=b};CUI.Menu.prototype={$Q_1:null,$BQ_1:null,$BN_1:null,$3p_1:null,$6e_1:null,$L:function(){ULSqdK:;this.get_needsDelayIniting()&&this.doDelayedInit();this.ensureDOMElementAndEmpty();var c=this.$0_0._textDirection,a=this.get_$2(),b=this.$Q_1;if(!c)a.style.direction="ltr";else if(c===1){CUI.Utility.ensureCSSClassOnElement(a,"ms-cui-rtl");a.style.direction="rtl"}if(CUI.ScriptUtility.isNullOrUndefined(b)){b=CUI.Utility.$3("div");b.className="ms-cui-smenu-inner"}a.setAttribute("role","menu");a.appendChild(b);if(!CUI.ScriptUtility.isNullOrEmptyString(this.$6e_1))a.style.maxWidth=this.$6e_1;this.appendChildrenToElement(b);CUI.Menu.callBaseMethod(this,"$L");$addHandler(a,"contextmenu",CUI.Utility.get_returnFalseHandler())},get_cssClass:function(){ULSqdK:;return "ms-cui-menu"},get_domElementTagName:function(){ULSqdK:;return "div"},ensureCorrectChildType:function(a){ULSqdK:;if(!CUI.MenuSection.isInstanceOfType(a))throw Error.create("Only MenuSection Components can be added to Menu Components.")},get_innerDiv:function(){ULSqdK:;return this.$Q_1},set_innerDiv:function(a){ULSqdK:;this.$Q_1=a;return a},$5a_1:null,get_$B0:function(){ULSqdK:;return this.$5a_1},set_$B0:function(a){ULSqdK:;a&&!CUI.ScriptUtility.isNullOrUndefined(this.$5a_1)&&this.$0_0.$2e(this.$5a_1);this.$5a_1=a;return a},get_$EM:function(){ULSqdK:;if(this._componentWidth===-1&&!CUI.ScriptUtility.isNullOrUndefined(this.get_$2()))this._componentWidth=this.get_$2().offsetWidth;return this._componentWidth},get_$77:function(){ULSqdK:;if(this._componentHeight===-1&&!CUI.ScriptUtility.isNullOrUndefined(this.get_$2()))this._componentHeight=this.get_$2().offsetHeight;return this._componentHeight},get_$4p:function(){ULSqdK:;if(this._componentTopPosition===-1&&!CUI.ScriptUtility.isNullOrUndefined(this.get_$2()))this._componentTopPosition=CUI.UIUtility.calculateOffsetTop(this.get_$2());return this._componentTopPosition},get_$EN:function(){ULSqdK:;if(this._componentLeftPosition===-1&&!CUI.ScriptUtility.isNullOrUndefined(this.get_$2()))this._componentLeftPosition=CUI.UIUtility.calculateOffsetLeft(this.get_$2());return this._componentLeftPosition},$D5:function(){ULSqdK:;this._componentWidth=-1;this._componentHeight=-1;this._componentTopPosition=-1;this._componentLeftPosition=-1},$2P:function(){ULSqdK:;this.set_$40(new Date);CUI.Menu.callBaseMethod(this,"$2P")},$x:function(){ULSqdK:;if(!this.$4_0.$P_0)return;this.$7_1=0;var a=this.$4_0.getEnumerator();while(a.moveNext()){var b=a.get_current();b.$x()}},$1p:function(){ULSqdK:;if(!this.$4_0.$P_0)return;this.$7_1=0;this.$4_0.get_item(0).$1p();this.$2i()},$3x:function(){ULSqdK:;var a=this.$4_0.$P_0;if(!a)return;this.$7_1=a-1;this.$4_0.get_item(this.$7_1).$3x();this.$2j()},$5n:function(d){ULSqdK:;if(!this.$4_0.$P_0)return false;this.$7_1=0;var b=0,a=this.$4_0.getEnumerator();while(a.moveNext()){var c=a.get_current();if(c.$5n(d)){this.$7_1=b;return true}b++}return false},$2j:function(){ULSqdK:;if(this.$7_1===-1)this.$7_1=this.$4_0.$P_0-1;var a=this.$4_0.getEnumeratorAtPos(this.$7_1),b=this.$7_1;while(a.movePrevious()){if(a.get_current().$2j()){this.$7_1=b;return true}b--}this.$7_1=-1;return false},$2i:function(){ULSqdK:;if(this.$7_1===-1)this.$7_1=0;var a=this.$4_0.getEnumeratorAtPos(this.$7_1),b=this.$7_1;while(a.moveNext()){if(a.get_current().$2i()){this.$7_1=b;return true}b++}this.$7_1=-1;return false},$AR:function(a){ULSqdK:;return this.$AS_1(this,a)},$AS_1:function(b,g){ULSqdK:;var a;if(CUI.ControlComponent.isInstanceOfType(b)){var e=b;if(CUI.ISelectableControl.isInstanceOfType(e.$M_1)){var f=e.$M_1;if(f.getMenuItemId()===g)return f}}var d=b.$4_0;if(!CUI.ScriptUtility.isNullOrUndefined(d)){var c=d.getEnumerator();while(c.moveNext()){var h=c.get_current();a=this.$AS_1(h,g);if(a)return a}}return null},$D1:function(){ULSqdK:;var a=this.$4_0.getEnumerator();while(a.moveNext()){var c=a.get_current(),b=c.$4_0.getEnumerator();while(b.moveNext()){var d=b.get_current();if(d.get_visible())return true}}return false},get_visibleInDOM:function(){ULSqdK:;return this.$6b_1},$6b_1:false,dispose:function(){ULSqdK:;CUI.Menu.callBaseMethod(this,"dispose");this.$Q_1=null;this.$BQ_1=null;this.$BN_1=null;this.$3p_1=null;try{$removeHandler(this.get_$2(),"contextmenu",CUI.Utility.get_returnFalseHandler())}catch(a){}}};CUI.MenuItem=function(c,d,a,b){ULSqdK:;CUI.MenuItem.initializeBase(this,[c,d,a,b])};CUI.MenuItem.prototype={$9O_2:false,get_$1F:function(){ULSqdK:;return this.$9O_2},set_$1F:function(a){ULSqdK:;this.$9O_2=a;return a},$5n:function(b){ULSqdK:;if(CUI.ISelectableControl.isInstanceOfType(this.$M_1)){var a=this.$M_1;if(a.getMenuItemId()===b)if(this.get_visible()&&this.get_enabled()){this.receiveFocus();this.set_$1F(true);return true}}return false},$2j:function(){ULSqdK:;if(!this.get_visible())return false;this.set_$1F(this.$M_1.$2j());return this.get_$1F()},$2i:function(){ULSqdK:;if(!this.get_visible())return false;this.set_$1F(this.$M_1.$2i());return this.get_$1F()},$x:function(){ULSqdK:;this.set_$1F(false)}};CUI.MenuLauncherControlProperties=function(){ULSqdK:;CUI.MenuLauncherControlProperties.initializeBase(this)};CUI.MenuLauncherControlProperties.prototype={CacheMenuVersions:null,CommandMenuOpen:null,CommandMenuClose:null,CommandValueId:null,PopulateDynamically:null,PopulateOnlyOnce:null,PopulateQueryCommand:null};CUI.BrowserUtility=function(){};CUI.BrowserUtility.$Ag=function(){ULSqdK:;return Sys.Browser.agent===Sys.Browser.Firefox||Sys.Browser.name.toLowerCase().indexOf("firefox")!==-1||navigator.userAgent.toLowerCase().indexOf("gecko")!==-1};CUI.MenuLauncher=function(c,d,a,b){ULSqdK:;this.$94=Function.createDelegate(this,this.$Dh_1);this.$7w=Function.createDelegate(this,this.addAndPositionBackFrameInternal);this.$5b_1=-1;CUI.MenuLauncher.initializeBase(this,[c,d,a]);this.$B_1=b};CUI.MenuLauncher.dictToInt=function(a,b){ULSqdK:;return a[b]};CUI.MenuLauncher.prototype={$i_1:false,_selectedControl:null,get_menuLaunched:function(){ULSqdK:;return this.$i_1},$B_1:null,$1D_1:false,get_launchedByKeyboard:function(){ULSqdK:;return this.$1D_1},set_launchedByKeyboard:function(a){ULSqdK:;this.$1D_1=a;return a},$2W_1:null,get_elmHadFocus:function(){ULSqdK:;return this.$2W_1},set_elmHadFocus:function(a){ULSqdK:;this.$2W_1=a;return a},$3W_1:null,get_$9u_1:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$3W_1))this.$3W_1=CUI.Utility.$A4();return this.$3W_1},launchMenu:function(n,o){ULSqdK:;if(this.$i_1)return false;this.$2W_1=n;CUI.Utility.$v(this.get_$1_1().PopulateDynamically)&&this.pollForDynamicMenu(true,o);if(CUI.ScriptUtility.isNullOrUndefined(this.$B_1))return false;if(!CUI.ScriptUtility.isNullOrUndefined(this.$4e_1)){this.$4e_1();this.$4e_1=null}this.$B_1.$2O();if(!this.$B_1.$D1())return false;var b=this.get_displayedComponent();b.$7D();b.$4X_0=true;b.addChild(this.$B_1);b.$4X_0=false;this.$B_1.$B2();this.$B_1.$D5();var g=CUI.Ribbon.isInstanceOfType(this.$0_0),c=null,h=false;if(g){c=this.$0_0;h=c.get_$52();c.set_$52(false)}var a=this.$B_1.get_$2();a.style.visibility="hidden";a.style.position="absolute";a.style.top="0px";a.style.left="0px";a.style.zIndex=1001;document.body.appendChild(a);if(CUI.Utility.$3B()&&this.$0_0._textDirection===1){var d=a.offsetWidth;d=d>=18?d-18:0;var j=d+"px",k=this.$B_1.$4_0,e=k.getEnumerator();while(e.moveNext()){var l=e.get_current(),m=l.$4_0,f=m.getEnumerator();while(f.moveNext()){var i=f.get_current();if(CUI.MenuItem.isInstanceOfType(i))i.get_$2().style.width=j}}}this.positionMenu(a,b.get_$2());Sys.Browser.agent===Sys.Browser.InternetExplorer&&this.addAndPositionBackFrame();this.$0_0.$Be(this,this.$2W_1);this.$0_0.$BX(this);a.style.visibility="visible";this.$i_1=true;this.$B_1.$6b_1=true;this.$Cr_1();g&&c.set_$52(h);return true},$Cr_1:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$B_1.$3p_1)&&!CUI.ScriptUtility.isNullOrUndefined(this._selectedControl)){var d=this._selectedControl,b=d.get_displayedComponent();if(CUI.MenuItem.isInstanceOfType(b))this.$B_1.$3p_1=b}if(this.$1D_1)this.$B_1.$1p();else{var c=this.$B_1.$3p_1;if(!CUI.ScriptUtility.isNullOrUndefined(c)){var a=c.$M_1;if(CUI.Controls.ToggleButton.isInstanceOfType(a)&&CUI.ISelectableControl.isInstanceOfType(a)){var e=a;!this.$B_1.$5n(e.getMenuItemId())&&this.$B_1.$1p()}}}},addAndPositionBackFrame:function(){ULSqdK:;this.$5b_1!==-1&&window.clearTimeout(this.$5b_1);this.$5b_1=window.setTimeout(this.$7w,50)},addAndPositionBackFrameInternal:function(){ULSqdK:;CUI.PMetrics.perfMark(7188);document.body.appendChild(this.get_$9u_1());CUI.Utility.$B3(this.get_$9u_1(),this.$B_1.get_$2());CUI.PMetrics.perfMark(7189)},onModalBodyClick:function(a){ULSqdK:;a.stopPropagation();this.$1D_1=false;this.$0_0.$2e(this)},onModalBodyMouseOver:function(){},onModalBodyMouseOut:function(){},onModalContextMenu:function(a){ULSqdK:;a.stopPropagation();!CUI.BrowserUtility.$Ag()&&a.preventDefault();this.$1D_1=false;this.$0_0.$2e(this)},onModalKeyPress:function(a){ULSqdK:;if(a)if(a.rawEvent){if(a.rawEvent.keyCode===27){a.stopPropagation();this.$1D_1=true;this.$0_0.$2e(this)}if(a.rawEvent.keyCode===9)if(a.shiftKey){!this.$B_1.$2j()&&this.$B_1.$3x();a.preventDefault()}else{!this.$B_1.$2i()&&this.$B_1.$1p();a.preventDefault()}if(a.rawEvent.keyCode===40){!this.$B_1.$2i()&&this.$B_1.$1p();a.preventDefault();a.stopPropagation()}if(a.rawEvent.keyCode===38){!this.$B_1.$2j()&&this.$B_1.$3x();a.preventDefault();a.stopPropagation()}if(CUI.Controls.FlyoutAnchor.isInstanceOfType(this)){if(a.rawEvent.keyCode===39&&!this.$0_0._textDirection||a.rawEvent.keyCode===37&&this.$0_0._textDirection===1){!this.$B_1.$2i()&&this.$B_1.$1p();a.preventDefault();a.stopPropagation()}if(a.rawEvent.keyCode===37&&!this.$0_0._textDirection||a.rawEvent.keyCode===39&&this.$0_0._textDirection===1){!this.$B_1.$2j()&&this.$B_1.$3x();a.preventDefault();a.stopPropagation()}}}},positionMenu:function(a,b){ULSqdK:;this.$0_0.$Dn(a,b)},getAllElementDimensions:function(a,b){ULSqdK:;return this.$0_0.$7K(a,b)},$4o:function(){ULSqdK:;if(!this.$i_1)return;$clearHandlers(this.$B_1.get_$2());CUI.UIUtility.removeNode(this.$B_1.get_$2());!CUI.ScriptUtility.isNullOrUndefined(this.$3W_1)&&CUI.UIUtility.removeNode(this.$3W_1);this.$B_1.onMenuClosed();var a=this.$B_1.$K_0;a.$4X_0=true;a.removeChild(this.$B_1.$6_0);a.$4X_0=false;this.$i_1=false;this.$B_1.$6b_1=false;this.$0_0.$CZ(this);!CUI.ScriptUtility.isNullOrUndefined(this.$2W_1)&&this.$1D_1&&this.$2W_1.focus();this.$2W_1=null;this.$1D_1=false;this.onLaunchedMenuClosed()},onMenuClosed:function(){},onLaunchedMenuClosed:function(){ULSqdK:;this.$B_1.$x()},ensureCorrectChildType:function(a){ULSqdK:;if(!CUI.Menu.isInstanceOfType(a)&&!CUI.ToolTip.isInstanceOfType(a))throw Error.create("This Component can only have Menu and ToolTip Components as children.")},$1e:function(a){ULSqdK:;if(this.$i_1&&a.$G_1!==4&&a.$G_1!==5&&a.$G_1!==6&&a.$G_1!==7&&a.$G_1!==8&&a.$G_1!==9&&a.$G_1!==10){if(!CUI.ScriptUtility.isNullOrUndefined(a.get_sourceControl())){var b=a.get_sourceControl().get_displayedComponent();this.$B_1.$3p_1=b}this.$0_0.$2e(this)}return true},$9c_1:false,$4e_1:null,pollForDynamicMenu:function(i,j){ULSqdK:;if(this.$9c_1&&CUI.Utility.$v(this.get_$1_1().PopulateOnlyOnce))return;if(CUI.ScriptUtility.isNullOrUndefined(this.get_$1_1().PopulateQueryCommand))return;var a={},d;if(CUI.Utility.$v(this.get_$1_1().CacheMenuVersions)){d={};var e=this.$3Q_1;for(var f in e){var h={key:f,value:e[f]};d[h.key]=true}a.CachedVersions=d}var g=this.$0_0.$4w(this.get_$1_1().PopulateQueryCommand,this.get_$1_1().PopulateQueryCommand,a);if(g){var b=null,c=null;if(!CUI.ScriptUtility.isNullOrUndefined(a.PopulationJSON))c=a.PopulationJSON;else if(!CUI.ScriptUtility.isNullOrUndefined(a.PopulationXML))c=CUI.Builder.$CA(a.PopulationXML);if(!CUI.ScriptUtility.isNullOrUndefined(c)){b=this.$0_0.get_$18().$37(c,new CUI.BuildContext,false);if(!CUI.ScriptUtility.isNullOrUndefined(b)){this.$9c_1=true;if(CUI.Utility.$v(this.get_$1_1().CacheMenuVersions)&&!CUI.ScriptUtility.isNullOrUndefined(a.PopulationVersion))this.get_cachedMenuVersions()[a.PopulationVersion]=b}}else if(!CUI.ScriptUtility.isNullOrUndefined(a.PopulationVersion))b=this.get_cachedMenuVersions()[a.PopulationVersion];else if(i&&-1!==a.PollAgainInterval){this.$4e_1=j;window.setTimeout(this.$94,a.PollAgainInterval);this.$B_1=null}if(!CUI.ScriptUtility.isNullOrUndefined(b)){this.$B_1=b;this.onDynamicMenuPopulated()}}},$Dh_1:function(){ULSqdK:;this.launchMenu(this.$2W_1,this.$4e_1)},onDynamicMenuPopulated:function(){},get_$1_1:function(){ULSqdK:;return this.$5_0},$3Q_1:null,get_cachedMenuVersions:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$3Q_1))this.$3Q_1={};return this.$3Q_1},dispose:function(){ULSqdK:;CUI.MenuLauncher.callBaseMethod(this,"dispose");!CUI.ScriptUtility.isNullOrUndefined(this.$B_1)&&this.$B_1.dispose();if(!CUI.ScriptUtility.isNullOrUndefined(this.$3Q_1)){var a=this.$3Q_1;for(var b in a){var c={key:b,value:a[b]},d=c.value;d.dispose()}}this._selectedControl=null;this.$B_1=null;this.$3W_1=null}};CUI.MenuSection=function(f,g,e,a,c,d,b){ULSqdK:;this.$7_1=-1;CUI.MenuSection.initializeBase(this,[f,g,e,a]);this.$9g_1=c;this.$6d_1=d;this.$6I_1=b};CUI.MenuSection.prototype={$9g_1:false,$6d_1:null,$6I_1:null,$3f_1:null,$D_1:null,$2D_1:null,$L:function(){ULSqdK:;this.ensureDOMElementAndEmpty();this.$3f_1=CUI.Utility.$3("div");this.$3f_1.className="ms-cui-menusection";this.get_$2().appendChild(this.$3f_1);if(!CUI.ScriptUtility.isNullOrUndefined(this.get_title())){this.$D_1=CUI.Utility.$3("div");CUI.UIUtility.setInnerText(this.$D_1,this.get_title());this.$D_1.className="ms-cui-menusection-title";this.$3f_1.appendChild(this.$D_1)}this.$2D_1=CUI.Utility.$3("ul");this.$2D_1.className="ms-cui-menusection-items";var a;if(this.$6I_1==="Menu32"){if(!this.$0_0._textDirection)a="ms-cui-menusection-items32";else a="ms-cui-menusection-items32rtl";var b=this.$K_0;CUI.Menu.isInstanceOfType(b)&&CUI.Utility.ensureCSSClassOnElement(b.get_$2(),"ms-cui-menu32")}else if(this.$6I_1==="Menu16")if(!this.$0_0._textDirection)a="ms-cui-menusection-items16";else a="ms-cui-menusection-items16rtl";else a="";a!==""&&CUI.Utility.ensureCSSClassOnElement(this.$2D_1,a);if(this.$9g_1){this.$2D_1.style.overflowY="auto";this.$2D_1.style.position="relative"}if(!CUI.ScriptUtility.isNullOrEmptyString(this.$6d_1))this.$2D_1.style.maxHeight=this.$6d_1;this.$3f_1.appendChild(this.$2D_1);this.appendChildrenToElement(this.$2D_1)},get_domElementTagName:function(){ULSqdK:;return "div"},appendChildrenToElement:function(d){ULSqdK:;var a,c=this.$4_0.getEnumerator();while(c.moveNext()){var b=c.get_current();a=CUI.Utility.$3("li");a.className="ms-cui-menusection-items";b.$m();a.appendChild(b.get_$2());d.appendChild(a);b.$2O()}},$x:function(){ULSqdK:;if(!this.$4_0.$P_0)return;this.$7_1=0;var a=this.$4_0.getEnumerator();while(a.moveNext()){var b=a.get_current();b.$x()}},$1p:function(){ULSqdK:;if(!this.$4_0.$P_0)return;this.$7_1>-1&&this.$4_0.get_item(this.$7_1).$x();this.$7_1=0;this.$4_0.get_item(this.$7_1).$1p()},$3x:function(){ULSqdK:;var a=this.$4_0.$P_0;if(!a)return;this.$7_1>-1&&this.$4_0.get_item(this.$7_1).$x();this.$7_1=a-1;this.$4_0.get_item(this.$7_1).$3x()},$5n:function(d){ULSqdK:;if(!this.$4_0.$P_0)return false;var b=0,a=this.$4_0.getEnumerator();while(a.moveNext()){var c=a.get_current();if(c.$5n(d)){this.$7_1>-1&&this.$4_0.get_item(this.$7_1).$x();this.$7_1=b;return true}b++}return false},$2j:function(){ULSqdK:;var b=this.$4_0.$P_0;if(this.$7_1===-1)this.$7_1=b-1;var a=this.$7_1,c=this.$4_0.getEnumeratorAtPos(a);while(c.movePrevious()){if(c.get_current().$2j()){if(a!==this.$7_1){this.$4_0.get_item(this.$7_1).$x();this.$7_1=a}return true}a--}b>0&&this.$4_0.get_item(this.$7_1).$x();this.$7_1=-1;return false},$2i:function(){ULSqdK:;if(this.$7_1===-1)this.$7_1=0;var b=this.$4_0.getEnumeratorAtPos(this.$7_1),a=this.$7_1;while(b.moveNext()){if(b.get_current().$2i()){if(a!==this.$7_1){!CUI.ScriptUtility.isNullOrUndefined(this.$4_0.get_item(this.$7_1))&&this.$4_0.get_item(this.$7_1).$x();this.$7_1=a}return true}a++}this.$4_0.$P_0>0&&this.$4_0.get_item(this.$7_1).$x();this.$7_1=-1;return false},ensureCorrectChildType:function(a){ULSqdK:;if(!CUI.MenuItem.isInstanceOfType(a)&&!CUI.Gallery.isInstanceOfType(a)&&!CUI.GroupPopup.isInstanceOfType(a))throw Error.create("MenuSections can only have children of type MenuItem, Gallery or GroupPopup.")},$BF:function(a){ULSqdK:;this.$1R_0=a;CUI.UIUtility.setInnerText(this.$D_1,a)},dispose:function(){ULSqdK:;CUI.MenuSection.callBaseMethod(this,"dispose");this.$2D_1=null;this.$D_1=null;this.$3f_1=null}};CUI.QAT=function(b,a){ULSqdK:;CUI.QAT.initializeBase(this,[b,a])};CUI.QAT.prototype={refresh:function(){ULSqdK:;this.$L();CUI.QAT.callBaseMethod(this,"refresh")},$L:function(){ULSqdK:;CUI.ScriptUtility.isNullOrUndefined(this.get_$2())&&this.$m();this.set_$2(CUI.Utility.removeChildNodes(this.get_$2()));this.appendChildrenToElement(this.get_$2());this.$g_0=false},ensureCorrectChildType:function(a){ULSqdK:;if(!CUI.ControlComponent.isInstanceOfType(a))throw Error.create("Only children of type ControlComponent can be added to a QAT")},get_cssClass:function(){ULSqdK:;return "ms-cui-QAT "+CUI.QAT.callBaseMethod(this,"get_cssClass")},get_rootType:function(){ULSqdK:;return "QAT"},get_visibleInDOM:function(){ULSqdK:;return true},get_$Ds:function(){ULSqdK:;return this.get_$18()},set_$Ds:function(a){ULSqdK:;this.set_$18(a);return a}};CUI.QATBuildContext=function(){ULSqdK:;CUI.QATBuildContext.initializeBase(this)};CUI.QATBuildContext.prototype={QAT:null,qatId:null};CUI.QATBuildOptions=function(){ULSqdK:;CUI.QATBuildOptions.initializeBase(this)};CUI.QATBuilder=function(c,a,b){ULSqdK:;this.$8u=Function.createDelegate(this,this.$DY_1);CUI.QATBuilder.initializeBase(this,[c,a,b]);if(CUI.ScriptUtility.isNullOrUndefined(a))throw Error.create("QAT placeholder DOM element is null or undefined.")};CUI.QATBuilder.prototype={get_QAT:function(){ULSqdK:;return this.$0_0},set_QAT:function(a){ULSqdK:;this.$0_0=a;return a},buildQAT:function(c){ULSqdK:;if(this.$2Y_0)return false;if(this.isIdTrimmed(c))return true;var b=new CUI.QATBuildContext;b.qatId=c;this.$2Y_0=true;var a=new CUI.DataQuery;a.id=b.qatId;a.queryType=5;a.handler=this.$8u;a.data=b;this.$12_0.runQuery(a);return true},$DY_1:function(a){ULSqdK:;var b=a.contextData;a.queryData=this.applyDataExtensions(a.queryData);this.set_QAT(this.$Bv_1(CUI.DataNodeWrapper.getFirstChildNodeWithName(a.queryData,"QAT"),b));this.get_QAT().set_$Ds(this);this.$1Q_0.onComponentCreated(this.get_QAT(),this.get_QAT().$6_0);if(this.get_$Dt_1().attachToDOM)this.get_QAT().$36(true);else{this.get_QAT().$L();this._elmPlaceholder.appendChild(this.get_QAT().get_$2());CUI.Utility.ensureCSSClassOnElement(this._elmPlaceholder,"loaded")}this.$7a(this.get_QAT());this.$1Q_0.onComponentBuilt(this.get_QAT(),this.get_QAT().$6_0)},$Bv_1:function(d,f){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(d))throw Error.create("No QAT element was present in the data");var b=new CUI.DataNodeWrapper(d);this.set_QAT(new CUI.QAT(b.get_attributes()["Id"],b.get_attributes()));for(var c=CUI.DataNodeWrapper.getNodeChildren(CUI.DataNodeWrapper.getFirstChildNodeWithName(b.$a_0,"Controls")),a=0;a<c.length;a++)if(!this.isNodeTrimmed(c[a])){var e=this.$1d(c[a],f);this.get_QAT().addChild(e.createComponentForDisplayMode("Small"))}return this.get_QAT()},get_$Dt_1:function(){ULSqdK:;return this.$s_0}};CUI.RibbonPeripheralSection=function(){};CUI.ContextualGroup=function(d,c,b,a){ULSqdK:;this.$6_0=d;this.$1R_0=c;this.$3S_0=b;this.$y_0=a};CUI.ContextualGroup.$5o=function(a){ULSqdK:;switch(a){case 1:return "db";case 2:return "lb";case 3:return "tl";case 4:return "or";case 5:return "gr";case 6:return "mg";case 7:return "yl";case 8:return "pp";default:return ""}};CUI.ContextualGroup.prototype={$6_0:null,$1R_0:null,$3S_0:0,$y_0:null,$2c_0:0,get_id:function(){ULSqdK:;return this.$6_0},get_count:function(){ULSqdK:;return this.$2c_0},get_title:function(){ULSqdK:;return this.$1R_0},get_color:function(){ULSqdK:;return this.$3S_0},get_command:function(){ULSqdK:;return this.$y_0},$1X_0:null,$D_0:null,$1y_0:null,get_$2:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$1X_0)){this.$1X_0=CUI.Utility.$3("li");if(!CUI.ScriptUtility.isNullOrUndefined(this.$6_0))this.$1X_0.id=this.$6_0;this.$1X_0.className="ms-cui-cg";var c=CUI.ContextualGroup.$5o(this.$3S_0);c!==""&&CUI.Utility.ensureCSSClassOnElement(this.$1X_0,"ms-cui-cg-"+c);var a=CUI.Utility.$3("div");a.className="ms-cui-cg-i";a.title=this.$1R_0;this.$1X_0.appendChild(a);this.$D_0=CUI.Utility.$3("div");this.$D_0.className="ms-cui-cg-t";a.appendChild(this.$D_0);var b=CUI.Utility.$3("span");b.className="ms-cui-cg-t-i";CUI.UIUtility.setInnerText(b,this.$1R_0);this.$D_0.appendChild(b);this.$1y_0=CUI.Utility.$3("ul");this.$1y_0.className="ms-cui-ct-ul";this.$1X_0.appendChild(this.$1y_0);this.$2c_0=0}return this.$1X_0},$Bd:function(){ULSqdK:;var a=$get(this.$6_0);if(!CUI.ScriptUtility.isNullOrUndefined(a)){this.$1X_0=a;this.$D_0=this.$1X_0.childNodes[0].childNodes[0];this.$1y_0=this.$1X_0.childNodes[1]}},$BZ:function(a){ULSqdK:;this.$1y_0.appendChild(a);this.$2c_0++;if(this.$2c_0===1)CUI.Utility.ensureCSSClassOnElement(this.$1y_0,"ms-cui-oneCtxTab");else this.$2c_0===2&&CUI.Utility.removeCSSClassFromElement(this.$1y_0,"ms-cui-oneCtxTab")},$Cg:function(){ULSqdK:;!CUI.ScriptUtility.isNullOrUndefined(this.$1y_0)&&CUI.Utility.removeChildNodesSlow(this.$1y_0);this.$2c_0=0},dispose:function(){ULSqdK:;this.$1X_0=null;this.$D_0=null;this.$1y_0=null;this.$2c_0=0}};CUI.DeclarativeTemplate=function(a){ULSqdK:;this.$7z=Function.createDelegate(this,this.$CQ_1);CUI.DeclarativeTemplate.initializeBase(this);this.$12_1=new CUI.DataNodeWrapper(a)};CUI.DeclarativeTemplate.prototype={$12_1:null,createGroup:function(e,f,g,h,i,j,k,l){ULSqdK:;var a=new CUI.DeclarativeTemplateBuildContext;a.ribbon=e;a.controls=k;a.parameters=l;for(var b=e.$CJ(f,g,h,i,j),c=0;c<this.$12_1.get_children().length;c++){var d=this.$CM_1(this.$12_1.get_children()[c],b,a);!CUI.ScriptUtility.isNullOrUndefined(d)&&b.addChild(d)}return b},$CM_1:function(b,d,e){ULSqdK:;var a=b.attrs.Title;if(a==="Popup"){var f=b.attrs.LayoutTitle;d.set_popupLayoutTitle(f);return null}var c=e.ribbon.$A5(d.$6_0+"-"+a,a);c.$7k(this.$7z,b,e);return c},$CQ_1:function(c,d,e){ULSqdK:;var a=c,b=e;this.$Cm(d,a,b);a.$4v(true);return a},$Cm:function(h,d,e){ULSqdK:;for(var b=h.children,c=0,a=0;a<b.length;a++){var f=b[a].name;if(f==="Section"){var g=this.$CN_1(b[a],e,d,c++);d.addChild(g)}else c=this.$7R_1(b[a],e,d,c)}},$CN_1:function(c,d,h,i){ULSqdK:;var b,e=c.attrs.Type,g=c.attrs.Alignment;switch(e){case "OneRow":b=2;break;case "TwoRow":b=3;break;case "ThreeRow":b=4;break;case "Divider":b=1;break;default:throw Error.create('Invalid Section attribute "Type" found in XML: '+e)}var f=1;if(g==="Middle")f=2;var a=d.ribbon.$26(h.$6_0+"-"+i,b,f);if(b!==1){this.$7S_1(a.getRow(1),c.children[0],d);(a.$G_2===3||a.$G_2===4)&&this.$7S_1(a.getRow(2),c.children[1],d);a.$G_2===4&&this.$7S_1(a.getRow(3),c.children[2],d)}return a},$7S_1:function(d,g,e){ULSqdK:;for(var b=g.children,a=0;a<b.length;a++){var f=b[a].name,c=null;if(f==="ControlRef")c=this.$A1_1(b[a],e);else if(f==="OverflowArea")this.$7R_1(b[a],e,d,a);else c=this.$CO_1(b[a],e,d,a);!CUI.ScriptUtility.isNullOrUndefined(c)&&d.addChild(c)}},$CO_1:function(g,d,h,i){ULSqdK:;for(var b=g.children,c=d.ribbon.$A8(h.$6_0+"-"+i),a=0;a<b.length;a++){var f=CUI.DataNodeWrapper.getNodeName(b[a]);if(f==="ControlRef"){var e=this.$A1_1(b[a],d);!CUI.ScriptUtility.isNullOrUndefined(e)&&c.addChild(e)}else this.$7R_1(b[a],d,c,a)}if(!c.$4_0.$P_0)return null;return c},$A1_1:function(f,g){ULSqdK:;var b=f.attrs,d=b["TemplateAlias"],e=b["DisplayMode"],a=g.controls[d],c=null;if(!CUI.ScriptUtility.isNullOrUndefined(a)&&CUI.Control.isInstanceOfType(a))c=a.createComponentForDisplayMode(e);return c},$7R_1:function(r,d,a,c){ULSqdK:;var i=CUI.DataNodeWrapper.getNodeAttributes(r),s=i["TemplateAlias"],m=CUI.DataNodeWrapper.getNodeName(r),j=d.controls[s];if(CUI.ScriptUtility.isNullOrUndefined(j))return c;var n=false,o=false,f=2;if(m==="OverflowSection"){n=CUI.Utility.$v(i["DividerBefore"]);o=CUI.Utility.$v(i["DividerAfter"]);if(n){var t=d.ribbon.$26(a.$6_0+"-"+c++,1,1);a.addChild(t)}var p=i["Type"];switch(p){case "OneRow":f=2;break;case "TwoRow":f=3;break;case "ThreeRow":f=4;break;default:throw Error.create('Invalid Section attribute "Type" found in XML: '+p)}}var e=i["DisplayMode"];if(Array.isInstanceOfType(j))for(var q=j,b=null,g=0;g<q.length;g++){var k=q[g];if(m==="OverflowSection")if(f===2){if(CUI.ScriptUtility.isNullOrUndefined(b)){b=d.ribbon.$26(a.$6_0+"-"+c++,2,1);a.addChild(b)}b.getRow(1).addChild(k.createComponentForDisplayMode(e))}else if(f===4){if(CUI.ScriptUtility.isNullOrUndefined(b)){b=d.ribbon.$26(a.$6_0+"-"+c++,4,1);a.addChild(b)}b.getRow(g%3+1).addChild(k.createComponentForDisplayMode(e));if(g%3===2)b=null}else{if(CUI.ScriptUtility.isNullOrUndefined(b)){b=d.ribbon.$26(a.$6_0+"-"+c++,3,1);a.addChild(b)}b.getRow(g%2+1).addChild(k.createComponentForDisplayMode(e));if(g%2===1)b=null}else a.addChild(k.createComponentForDisplayMode(e))}else{var l=j;if(m==="OverflowSection"){var h;if(f===2){h=d.ribbon.$26(a.$6_0+"-"+c++,2,1);h.getRow(1).addChild(l.createComponentForDisplayMode(e))}else if(f===4){h=d.ribbon.$26(a.$6_0+"-"+c++,4,1);h.getRow(1).addChild(l.createComponentForDisplayMode(e))}else{h=d.ribbon.$26(a.$6_0+"-"+c++,3,1);h.getRow(1).addChild(l.createComponentForDisplayMode(e))}a.addChild(h)}else a.addChild(l.createComponentForDisplayMode(e))}if(o){var u=d.ribbon.$26(a.$6_0+"-"+c++,1,1);a.addChild(u)}return c}};CUI.Group=function(d,f,e,a,c,b){ULSqdK:;CUI.Group.initializeBase(this,[d,f,e,a]);this.$y_2=c;this.$5_2=b};CUI.Group.prototype={$b_2:null,$D_2:null,$3b_2:null,$V_2:null,$5_2:null,$L:function(){ULSqdK:;this.ensureDOMElementAndEmpty();if(CUI.ScriptUtility.isNullOrUndefined(this.$D_2)){this.$D_2=CUI.Utility.$3("span");this.$D_2.className="ms-cui-groupTitle"}else this.$D_2=CUI.Utility.removeChildNodes(this.$D_2);if(CUI.ScriptUtility.isNullOrUndefined(this.$b_2)){this.$b_2=CUI.Utility.$3("span");this.$b_2.className="ms-cui-groupBody"}else this.$b_2=CUI.Utility.removeChildNodes(this.$b_2);if(CUI.ScriptUtility.isNullOrUndefined(this.$3b_2)){this.$3b_2=CUI.Utility.$3("span");this.$3b_2.className="ms-cui-groupSeparator"}var b=this.get_title();!CUI.ScriptUtility.isNullOrUndefined(b)&&CUI.UIUtility.setInnerText(this.$D_2,b);this.$D_2.title=this.get_title();if(!CUI.ScriptUtility.isNullOrUndefined(this.$V_2)&&CUI.GroupPopupLayout.isInstanceOfType(this.$V_2)){this.$V_2.$m();this.get_$2().appendChild(this.$V_2.get_$2());this.get_$2().appendChild(this.$3b_2);this.$V_2.$2O()}else{var a=CUI.Utility.$3("span");a.className="ms-cui-groupContainer";a.appendChild(this.$b_2);a.appendChild(this.$D_2);this.get_$2().appendChild(a);this.get_$2().appendChild(this.$3b_2);if(!CUI.ScriptUtility.isNullOrUndefined(this.$V_2)){this.$V_2.$m();this.$b_2.appendChild(this.$V_2.get_$2());this.$V_2.$2O()}}CUI.Group.callBaseMethod(this,"$L")},$3v:function(){ULSqdK:;CUI.Group.callBaseMethod(this,"$3v");if(!CUI.ScriptUtility.isNullOrUndefined(this.$V_2)&&!CUI.GroupPopupLayout.isInstanceOfType(this.$V_2)){var a=this.get_$2().childNodes[0];this.$3b_2=this.get_$2().childNodes[1];this.$b_2=a.childNodes[0];this.$D_2=a.childNodes[1]}},$36:function(a){ULSqdK:;this.$3v();this.$N();this.$g_0=false;a&&!CUI.ScriptUtility.isNullOrUndefined(this.$V_2)&&this.$V_2.$36(true)},$m:function(){ULSqdK:;var a=this.get_$2();CUI.Group.callBaseMethod(this,"$m")},get_cssClass:function(){ULSqdK:;return "ms-cui-group"},get_domElementTagName:function(){ULSqdK:;return "li"},unselectLayout:function(){ULSqdK:;this.selectLayout(null,null)},selectLayout:function(b,c){ULSqdK:;var a=null;if(b!=="Popup")a=CUI.ScriptUtility.isNullOrUndefined(b)?null:this.getChildByTitle(b);else{!CUI.ScriptUtility.isNullOrUndefined(c)&&this.set_popupLayoutTitle(c);this.$Cd_2();a=this.$4j_2}if(a===this.$V_2||CUI.ScriptUtility.isNullOrUndefined(a)&&CUI.ScriptUtility.isNullOrUndefined(this.$V_2))return;this.$V_2=!CUI.ScriptUtility.isNullOrUndefined(a)?a:null;if(!CUI.ScriptUtility.isNullOrUndefined(a)){a.$7l(true);b==="Popup"&&this.$5d_2.$7l(true)}this.$w()},get_selectedLayout:function(){ULSqdK:;return this.$V_2},ensureCorrectChildType:function(a){ULSqdK:;if(!CUI.Layout.isInstanceOfType(a)&&!CUI.GroupPopupLayout.isInstanceOfType(a))throw Error.create("Only children of type Layout can be added to Groups");if(!CUI.ScriptUtility.isNullOrUndefined(this.getChildByTitle(a.get_title())))throw Error.create("A Layout with title "+a.get_title()+" already exists in this Group.")},get_$7b:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$V_2)||CUI.ScriptUtility.isNullOrUndefined(this.$V_2.get_$2()))return false;return this.get_$2().offsetHeight<this.$V_2.get_$2().offsetHeight||this.get_$2().offsetWidth<this.$V_2.get_$2().offsetWidth},$y_2:null,get_command:function(){ULSqdK:;return this.$y_2},$6l_2:null,get_popupLayoutTitle:function(){ULSqdK:;return this.$6l_2},set_popupLayoutTitle:function(a){ULSqdK:;if(a==="Popup")throw Error.create("PopupLayoutTitle cannot be set to 'Popup'");var b=CUI.ScriptUtility.isNullOrUndefined(a)?null:this.getChildByTitle(a);if(CUI.ScriptUtility.isNullOrUndefined(b))throw Error.create("This Group does not have a Layout with Title: "+a);if(this.$6l_2===a)return;this.$6l_2=a;!CUI.ScriptUtility.isNullOrUndefined(this.$4i_2)&&this.$4i_2.set_layoutTitle(a);return a},$4j_2:null,$3n_2:null,$4i_2:null,$5d_2:null,$6m_2:null,$Cd_2:function(){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(this.$4j_2))return;if(CUI.ScriptUtility.isNullOrUndefined(this.get_popupLayoutTitle()))throw Error.create("No PopupLayoutTitle has been set.");this.$4j_2=this.get_ribbon().$CL(this.$6_0+"-Popup",this);this.$5d_2=this.get_ribbon().$A6(this.$6_0+"-popupMenu",null,null,null);this.$6m_2=this.get_ribbon().$A7(this.$6_0+"-popupMenuSection",null,null,false,null,null);var a={};a.LabelText=this.get_title();var b=this.get_ribbon().get_ribbonProperties();if(!CUI.ScriptUtility.isNullOrUndefined(this.$5_2.Image32by32Popup)){a.Image32by32=this.$5_2.Image32by32Popup;a.Image32by32Class=this.$5_2.Image32by32PopupClass;a.Image32by32Top=this.$5_2.Image32by32PopupTop;a.Image32by32Left=this.$5_2.Image32by32PopupLeft}else{a.Image32by32=b.Image32by32GroupPopupDefault;a.Image32by32Class=b.Image32by32GroupPopupDefaultClass;a.Image32by32Left=b.Image32by32GroupPopupDefaultLeft;a.Image32by32Top=b.Image32by32GroupPopupDefaultTop}a.Command=this.$y_2;this.$3n_2=new CUI.Controls.FlyoutAnchor(this.get_ribbon(),this.$6_0+"-PopupAnchor",a,this.$5d_2);this.$3n_2.$6U_2=true;this.$3n_2.set_enabled(this.get_enabled());this.$4i_2=this.get_ribbon().$CK(this.$6_0+"-popupMenuItem",this);this.$4j_2.addChild(this.$3n_2.createComponentForDisplayMode("Large"));this.$5d_2.addChild(this.$6m_2);this.$6m_2.addChild(this.$4i_2);this.$4i_2.set_layoutTitle(this.get_popupLayoutTitle());this.addChild(this.$4j_2)},$2P:function(){ULSqdK:;this.set_enabled(CUI.ScriptUtility.isNullOrUndefined(this.$y_2)?true:this.get_ribbon().$4w(this.$y_2,null,null));if(!this.get_enabled()||CUI.ScriptUtility.isNullOrUndefined(this.$V_2))return;this.$V_2.$2P()},onEnabledChanged:function(a){ULSqdK:;CUI.Group.callBaseMethod(this,"onEnabledChanged",[a]);!CUI.ScriptUtility.isNullOrUndefined(this.$3n_2)&&this.$3n_2.set_enabled(a)},$50:function(){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(this.$V_2)&&CUI.GroupPopupLayout.isInstanceOfType(this.$V_2)){this.$V_2.get_$2().getElementsByTagName("A")[0].focus();return true}return CUI.Group.callBaseMethod(this,"$50")}};CUI.GroupPopup=function(a,c,b){ULSqdK:;this.$8G=Function.createDelegate(this,this.$DD_1);CUI.GroupPopup.initializeBase(this,[a,c,"",""]);this.$4V_1=b};CUI.GroupPopup.prototype={$4V_1:null,$D_1:null,$b_1:null,$L:function(){ULSqdK:;this.ensureDOMElementAndEmpty();if(CUI.ScriptUtility.isNullOrUndefined(this.$D_1)){this.$D_1=CUI.Utility.$3("div");this.$D_1.className="ms-cui-groupTitle"}else this.$D_1=CUI.Utility.removeChildNodes(this.$D_1);if(CUI.ScriptUtility.isNullOrUndefined(this.$b_1)){this.$b_1=CUI.Utility.$3("div");this.$b_1.className="ms-cui-groupBody"}else this.$b_1=CUI.Utility.removeChildNodes(this.$b_1);CUI.UIUtility.setInnerText(this.$D_1,this.$4V_1.get_title());this.get_$2().appendChild(this.$b_1);this.get_$2().appendChild(this.$D_1);var a=this.$4V_1.getChildByTitle(this.$4a_1);if(CUI.ScriptUtility.isNullOrUndefined(a))throw Error.create("Cannot find Layout with title: "+this.$4a_1+" for this GroupPopup to use from the Group with id: "+this.$4V_1.$6_0);var b=a.$4m(true);this.removeChildren();this.addChild(b);this.appendChildrenToElement(this.$b_1);CUI.GroupPopup.callBaseMethod(this,"$L")},$4a_1:null,get_layoutTitle:function(){ULSqdK:;return this.$4a_1},set_layoutTitle:function(a){ULSqdK:;if(this.$4a_1===a)return;this.$4a_1=a;this.$w();return a},get_cssClass:function(){ULSqdK:;return "ms-cui-groupPopup"},$4D_1:null,$1e:function(a){ULSqdK:;if(a.$G_1===4){var b=a.get_sourceControl();if(this.$4D_1)return CUI.GroupPopup.callBaseMethod(this,"$1e",[a]);this.$4D_1=b;this.$EB_1()}else if(a.$G_1===10){this.$D2_1();this.$4D_1=null}return CUI.GroupPopup.callBaseMethod(this,"$1e",[a])},$3X_1:null,$5V_1:false,$EB_1:function(){ULSqdK:;if(this.$5V_1)return;if(!this.$3X_1){this.$3X_1=CUI.Utility.$A3();$addHandler(this.$3X_1,"click",this.$8G);this.get_$2().appendChild(this.$3X_1)}this.$3X_1.style.display="";this.$5V_1=true},$D2_1:function(){ULSqdK:;if(!this.$5V_1)return;this.$3X_1.style.display="none";this.$5V_1=false},$DD_1:function(){ULSqdK:;this.$4D_1&&this.$4D_1.$4o()}};CUI.GroupPopupLayout=function(a,c,b){ULSqdK:;CUI.GroupPopupLayout.initializeBase(this,[a,c,"Popup"]);this.$4V_3=b};CUI.GroupPopupLayout.prototype={$4V_3:null,$L:function(){ULSqdK:;CUI.GroupPopupLayout.callBaseMethod(this,"$L")},get_cssClass:function(){ULSqdK:;return null},ensureCorrectChildType:function(a){ULSqdK:;if(!CUI.ControlComponent.isInstanceOfType(a))throw Error.create("Only ControlComponents can be added to GroupPopupLayout.");if(this.$4_0.$P_0>0)throw Error.create("GroupPopupLayouts can only have one child")}};CUI.Layout=function(a,c,b){ULSqdK:;CUI.Layout.initializeBase(this,[a,c,b,""])};CUI.Layout.prototype={$L:function(){ULSqdK:;this.get_needsDelayIniting()&&this.doDelayedInit();this.ensureDOMElementAndEmpty();this.appendChildrenToElement(this.get_$2());CUI.Layout.callBaseMethod(this,"$L")},$3v:function(){ULSqdK:;this.get_needsDelayIniting()&&this.doDelayedInit();this.set_$2($get(this.$K_0.$6_0+"-"+this.get_title()))},ensureCorrectChildType:function(a){ULSqdK:;if(!CUI.Section.isInstanceOfType(a))throw Error.create("Only children of Section can be added to a Layout")},get_cssClass:function(){ULSqdK:;return "ms-cui-layout"},$4m:function(c){ULSqdK:;this.get_needsDelayIniting()&&this.doDelayedInit();var a=this.get_ribbon().$A5("clonedLayout-"+this.get_ribbon().$27(),this.get_title());if(!c)return a;var b=this.$4_0.getEnumerator();while(b.moveNext()){var d=b.get_current(),e=d.$4m(c);a.addChild(e)}return a},get_visibleInDOM:function(){ULSqdK:;if(CUI.Group.isInstanceOfType(this.$K_0)){var a=this.$K_0;return a.$V_2===this}else if(CUI.GroupPopup.isInstanceOfType(this.$K_0))return true;else return false}};CUI.RibbonEventCommandProperties=function(){ULSqdK:;CUI.RibbonEventCommandProperties.initializeBase(this)};CUI.RibbonEventCommandProperties.prototype={Minimized:false,Maximized:false};CUI.CommandContextSwitchCommandProperties=function(){};CUI.CommandContextSwitchCommandProperties.prototype={OldContextId:null,OldContextCommand:null,NewContextId:null,NewContextCommand:null,ChangedByUser:false};CUI.Ribbon=function(b,a){ULSqdK:;this.$8Q=Function.createDelegate(this,this.$DJ);this.$8y=Function.createDelegate(this,this.$Db);this.$8R=Function.createDelegate(this,this.$DK);this.$98=Function.createDelegate(this,this.$Dk_2);this.$6Y_2=new Date(0);this.$73_2=CUI.Utility.$38();this.$72_2=CUI.Utility.$3y();CUI.Ribbon.initializeBase(this,[b,a]);this.$11_2={};this.$9T_2=a.ShortcutKeyJumpToRibbon_Ctrl+a.ShortcutKeyJumpToRibbon_Alt+a.ShortcutKeyJumpToRibbon_Shift+a.ShortcutKeyJumpToRibbon_AccessKey;this.$9S_2=a.ShortcutKeyJumpToFirstControl_Ctrl+a.ShortcutKeyJumpToFirstControl_Alt+a.ShortcutKeyJumpToFirstControl_Shift+a.ShortcutKeyJumpToFirstControl_AccessKey;this.$2y_2=this.$AX_2()};CUI.Ribbon.prototype={$A_2:null,$30_2:null,$1i_2:null,$e_2:null,$f_2:null,$q_2:null,$BM_2:null,$p_2:null,$2t_2:null,$l_2:null,$2s_2:null,$9Y_2:null,$1j_2:null,$1k_2:null,$t_2:null,$u_2:null,$4h_2:false,$2u_2:null,$4Y_2:null,$9S_2:null,$9T_2:null,$4f_2:null,$74_2:false,$9a_2:null,$9b_2:null,$9Z_2:null,$9N_2:false,$6g_2:null,get_storedFocus:function(){ULSqdK:;return this.$2u_2},set_storedFocus:function(a){ULSqdK:;this.$2u_2=a;return a},$7s_2:function(a){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(a))return false;else if(!CUI.ScriptUtility.isNullOrUndefined(a.id)&&a.id==="Ribbon")return false;else if(a.tagName==="BODY")return true;else return this.$7s_2(a.parentNode)},refresh:function(){ULSqdK:;this.$L();CUI.Ribbon.callBaseMethod(this,"refresh");this.$45()},$L:function(){ULSqdK:;CUI.Ribbon.callBaseMethod(this,"$L");this.$m();this.$D0_2();var b=null,i=null,e=null,c=null,d=null;CUI.Utility.removeChildNodesSlow(this.$q_2);var m=this.$11_2;for(var n in m){var u={key:n,value:m[n]},v=u.value;v.$Cg()}var o=0,j=new CUI.List,h=this.$4_0.getEnumerator();while(h.moveNext()){var r=h.get_current();if(r.get_visible()){j.add(r);o++}}var p=0,t=j.$P_0,q=!(CUI.ScriptUtility.isNullOrEmptyString(this.get_ribbonProperties().ATTabPositionText)||CUI.ScriptUtility.isNullOrEmptyString(this.get_ribbonProperties().ATContextualTabText)),h=j.getEnumerator();while(h.moveNext()){var a=h.get_current();a.$7G();if(CUI.ScriptUtility.isNullOrUndefined(i)){i=a;this.$4Y_2=i.$6_0}a.$Dy();if(a.$1A_2){if(!c||a.$10_2!==c){if(a.$10_2!==c)!CUI.ScriptUtility.isNullOrUndefined(e)&&e.$1A_2&&CUI.Utility.ensureCSSClassOnElement(e.$D_2,"ms-cui-ct-last");c=a.$10_2;d=this.$11_2[a.$10_2];CUI.Utility.removeCSSClassFromElement(d.get_$2(),"ms-cui-cg-s");this.$7j(0);this.$q_2.appendChild(d.get_$2());CUI.Utility.ensureCSSClassOnElement(a.$D_2,"ms-cui-ct-first")}d.$BZ(a.$D_2)}else{if(c){CUI.Utility.ensureCSSClassOnElement(e.$D_2,"ms-cui-ct-last");c=null;d=null}if(q){p++;a.$BB(this.get_ribbonProperties().ATTabPositionText,null,null,p,t)}this.$q_2.appendChild(a.$D_2)}if(a===this.$A_2)b=a;e=a}if(c){CUI.Utility.ensureCSSClassOnElement(e.$D_2,"ms-cui-ct-last");e=null;c=null;d=null}var k=1;if(q)for(var l=0;l<o;l++){var f=j.get_item(l);if(f.$1A_2){if(f.$10_2!==c){c=f.$10_2;d=this.$11_2[f.$10_2];k=1}f.$AB();f.$BB(this.get_ribbonProperties().ATTabPositionText,this.get_ribbonProperties().ATContextualTabText,d.$1R_0,k,d.$2c_0);k++}}if(!CUI.ScriptUtility.isNullOrUndefined(b))if(b.$1A_2){var s=this.$7L(b.$10_2);CUI.Utility.ensureCSSClassOnElement(s.get_$2(),"ms-cui-cg-s");this.$7j(s.$3S_0)}if(CUI.ScriptUtility.isNullOrUndefined(b)&&!this.$20_2){b=!CUI.ScriptUtility.isNullOrUndefined(this.$6a_2)?this.$6a_2:i;this.$5u(b)}if(this.$20_2)b=null;this.$EH();if(!CUI.ScriptUtility.isNullOrUndefined(b)){b.get_$B5()&&CUI.Utility.disableElement(this.$l_2);var w=this.$l_2.className.indexOf("ms-cui-disabled")!==-1;this.$l_2.className=b.$Cv()+(w?" ms-cui-disabled":"")}this.$N();this.$g_0=false;if(this.$6f_2&&!CUI.ScriptUtility.isNullOrUndefined(this.get_ribbonProperties().RootEventCommand)){var g=new CUI.RibbonEventCommandProperties;g.RootId=this.$6_0;g.RootType="Ribbon";g.Minimized=this.get_minimized();g.Maximized=!this.get_minimized();this.raiseCommandEvent(this.get_ribbonProperties().RootEventCommand,11,g);this.$6f_2=false}},$36:function(f){ULSqdK:;this.$3v();this.$N();this.$g_0=false;var e=this.$4_0;if(f)if(!CUI.ScriptUtility.isNullOrUndefined(e)){var c=e.getEnumerator();while(c.moveNext()){var a=c.get_current();if(!a.get_visible())continue;if(!CUI.ScriptUtility.isNullOrUndefined(this.$A_2)&&this.$A_2===a)this.$A_2.$36(f);else{a.$9s();a.$9t()}}}if(!CUI.ScriptUtility.isNullOrUndefined(this.$11_2)){var b=this.$11_2;for(var d in b){var g={key:d,value:b[d]};g.value.$Bd()}}},$3v:function(){ULSqdK:;CUI.Ribbon.callBaseMethod(this,"$3v");var a=this.get_$2().childNodes;this.$BM_2=$get("cui-"+this.$6_0+"-scrollCurtain");this.$2s_2=a[0];this.$1i_2=a[1];this.$e_2=this.$1i_2.childNodes[0];this.$f_2=this.$1i_2.childNodes[1];this.$p_2=this.$f_2.childNodes[0];if(a.length>2)this.$l_2=a[2];this.$2t_2=CUI.Utility.$5q(this.$e_2,"ms-cui-qat-container");this.$q_2=CUI.Utility.$5q(this.$f_2,"ms-cui-tts");if(CUI.ScriptUtility.isNullOrUndefined(this.$q_2))this.$q_2=CUI.Utility.$5q(this.$f_2,"ms-cui-tts-scale-1");if(CUI.ScriptUtility.isNullOrUndefined(this.$q_2))this.$q_2=CUI.Utility.$5q(this.$f_2,"ms-cui-tts-scale-2")},$N:function(){ULSqdK:;this.$4f_2=this.$98;this.set_$52(true);this.$9a_2=this.$8R;this.$9b_2=this.$8y;this.$9Z_2=this.$8Q;$addHandler(this.get_$2(),"keydown",this.$9b_2);if(!this.$9N_2){$addHandler(document,"keydown",this.$9a_2);$addHandler(this.get_$2(),"keydown",this.$9Z_2);this.$9N_2=true}CUI.Ribbon.callBaseMethod(this,"$N")},get_$52:function(){ULSqdK:;return this.$74_2},set_$52:function(a){ULSqdK:;if(a===this.$74_2)return;if(a)$addHandler(window,"resize",this.$4f_2);else try{$removeHandler(window,"resize",this.$4f_2)}catch(b){}this.$74_2=a;return a},$DK:function(a){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(a)&&!CUI.ScriptUtility.isNullOrUndefined(a.rawEvent)){var e=a.rawEvent.keyCode,b=a.ctrlKey?"t":"f";b+=a.altKey?"t":"f";b+=a.shiftKey?"t":"f";try{b+=String.fromCharCode(_processKeyCodes(e))}catch(d){return}var c=a.target;if(b===this.$9S_2){this.$9z_2();this.jumpToLastFocused(c)}else if(b===this.$9T_2){this.$9z_2();this.jumpToRibbonTab(c)}}},$9z_2:function(){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(document.selection)&&document.selection.type==="Control"){for(var a=document.selection.createRange(),b=a.length;b>0;b--)a.remove(b-1);a.select()}},jumpToLastFocused:function(a){ULSqdK:;this.$1m_1&&this.$0_0.$4n();if(this.$7s_2(a))this.$2u_2=a;if(!CUI.ScriptUtility.isNullOrUndefined(this.get_$o())){try{this.setFocus()}catch(b){}return}this.setFocusOnRibbon()},jumpToRibbonTab:function(a){ULSqdK:;if(this.$7s_2(a))this.$2u_2=a;this.$1m_1&&this.$0_0.$4n();if(!CUI.ScriptUtility.isNullOrEmptyString(this.$4Y_2)){var b=$get(this.$4Y_2+"-title");!CUI.ScriptUtility.isNullOrUndefined(b)&&b.firstChild.focus()}},setFocusOnTabTitle:function(){ULSqdK:;if(!CUI.ScriptUtility.isNullOrEmptyString(this.$4Y_2)){var a=$get(this.$4Y_2+"-title");!CUI.ScriptUtility.isNullOrUndefined(a)&&a.firstChild.focus()}},$DJ:function(a){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(a)&&!CUI.ScriptUtility.isNullOrUndefined(a.rawEvent)){var b=a.rawEvent.keyCode;if((a.ctrlKey||a.shiftKey)&&(b===39&&!this.$0_0._textDirection)||b===37&&this.$0_0._textDirection===1){a.preventDefault();a.stopPropagation();this.$A_2.$Am(true)}else if((a.ctrlKey||a.shiftKey)&&(b===37&&!this.$0_0._textDirection)||b===39&&this.$0_0._textDirection===1){a.preventDefault();a.stopPropagation();this.$A_2.$Am(false)}}},setFocusOnRibbon:function(){ULSqdK:;if(this.$20_2)this.setFocusOnTabTitle();else this.$A_2.$BD()},setFocusOnCurrentTab:function(){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(this.$A_2))this.$A_2.$E5();else this.setFocusOnRibbon()},setFocus:function(){ULSqdK:;(this.$20_2||!CUI.Ribbon.callBaseMethod(this,"setFocus"))&&this.setFocusOnTabTitle();return true},$Db:function(a){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(a)&&!CUI.ScriptUtility.isNullOrUndefined(a.rawEvent)&&!this.$1m_1)if(a.rawEvent.keyCode===27&&!CUI.ScriptUtility.isNullOrUndefined(this.$2u_2)){a.stopPropagation();a.preventDefault();try{this.$2u_2.focus()}catch(b){}this.$2u_2=null}},$11_2:null,addContextualGroup:function(a,e,d,c){ULSqdK:;var b=this.$11_2[a];if(!CUI.ScriptUtility.isNullOrUndefined(b))throw Error.create("A contextual group with id: "+a+" has already been added to this ribbon.");b=new CUI.ContextualGroup(a,e,d,c);this.$11_2[a]=b},get_contextualGroupIds:function(){ULSqdK:;var c=[],a=this.$11_2;for(var b in a){var d={key:b,value:a[b]};Array.add(c,d.key)}return c},removeContextualGroup:function(a){ULSqdK:;var d=this.$11_2[a];if(!CUI.ScriptUtility.isNullOrUndefined(d)){var b=this.$4_0.getEnumerator();while(b.moveNext()){var c=b.get_current();if(c.$1A_2&&c.$10_2===a)throw Error.create("You cannot remove a contextual group when there are Tabs that refer to it.")}delete this.$11_2[a]}},showContextualGroup:function(a){ULSqdK:;this.$7r_2(a,true)},hideContextualGroup:function(a){ULSqdK:;this.$7r_2(a,false)},$7r_2:function(b,e){ULSqdK:;var f=this.$11_2[b];if(CUI.ScriptUtility.isNullOrUndefined(f))throw Error.create("This ribbon does not contain a contextual group with id: "+b);var d=false,c=this.$4_0.getEnumerator();while(c.moveNext()){var a=c.get_current();if(a.$10_2===b){if(a.get_visible()!==e)d=true;a.set_$64(e)}}d&&this.$w()},$7L:function(a){ULSqdK:;return this.$11_2[a]},addChildAtIndex:function(b,c){ULSqdK:;this.ensureCorrectChildType(b);var a=b;if(CUI.ScriptUtility.isNullOrUndefined(a))throw Error.create("child must not be null or undefined.");if(a.$1A_2){var d=this.$11_2[a.$10_2];if(CUI.ScriptUtility.isNullOrUndefined(d))throw Error.create("A contextual tab with contextual group id: "+a.$10_2+" cannot be added because  the ribbon does not have a contextual group with this id.")}CUI.Ribbon.callBaseMethod(this,"addChildAtIndex",[b,c])},ensureCorrectChildType:function(a){ULSqdK:;if(!CUI.Tab.isInstanceOfType(a))throw Error.create("Only children of type Tab can be added to a Ribbon")},get_cssClass:function(){ULSqdK:;return "ms-cui-ribbon"},get_rootType:function(){ULSqdK:;return "Ribbon"},$AC_2:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$p_2)){this.$p_2=CUI.Utility.$3("div");this.$p_2.id="jewelcontainer";this.$p_2.className="ms-cui-jewel-container";this.$p_2.style.display="none";this.$f_2.appendChild(this.$p_2)}},$Ce_2:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$2t_2)){this.$2t_2=CUI.Utility.$3("span");this.$2t_2.className="ms-cui-qat-container";this.$e_2.appendChild(this.$2t_2)}},$9w:function(c,d,e){ULSqdK:;var a=new CUI.QATBuildOptions;a.attachToDOM=d;a.trimmedIds=this.get_$2Q().$s_0.trimmedIds;var b=new CUI.QATBuilder(a,this.$2t_2,this.get_$2Q().$1Q_0);b.$12_0=e;if(!b.buildQAT(c))throw Error.create("QAT could not be built");this._qat=b.get_QAT();this.$e_2.style.display="block"},$9v:function(c,d,e){ULSqdK:;this.$p_2.style.display="block";var a=new CUI.JewelBuildOptions;a.attachToDOM=d;a.trimmedIds=this.get_$2Q().$s_0.trimmedIds;var b=new CUI.JewelBuilder(a,this.$p_2,this.get_$2Q().$1Q_0);b.$12_0=e;if(!b.buildJewel(c))throw Error.create("Jewel could not be built");this._jewel=b.get_jewel()},_qat:null,get_QAT:function(){ULSqdK:;return this._qat},set_QAT:function(a){ULSqdK:;this._qat=a;return a},_jewel:null,get_jewel:function(){ULSqdK:;return this._jewel},set_jewel:function(a){ULSqdK:;this._jewel=a;return a},$CP:function(a,b,c,d,e){ULSqdK:;return new CUI.Tab(this,a,b,c,d,false,null,e)},$CG:function(a,b,c,d,e,f){ULSqdK:;return new CUI.Tab(this,a,b,c,d,true,e,f)},$CJ:function(a,b,c,d,e){ULSqdK:;return new CUI.Group(this,a,c,d,e,b)},$CK:function(a,b){ULSqdK:;return new CUI.GroupPopup(this,a,b)},$CL:function(a,b){ULSqdK:;return new CUI.GroupPopupLayout(this,a,b)},$A5:function(a,b){ULSqdK:;return new CUI.Layout(this,a,b)},$26:function(a,b,c){ULSqdK:;return new CUI.Section(this,a,b,c)},$A8:function(a){ULSqdK:;return new CUI.Strip(this,a)},$6a_2:null,$EH:function(){ULSqdK:;!CUI.ScriptUtility.isNullOrUndefined(this.$A_2)&&this.$A_2.$m();if(!CUI.ScriptUtility.isNullOrUndefined(this.$A_2)&&!this.$A_2.$1A_2)this.$6a_2=this.$A_2;if(CUI.ScriptUtility.isNullOrUndefined(this.$A_2)||!this.$A_2.$4_0.$P_0)!CUI.ScriptUtility.isNullOrUndefined(this.get_$2())&&!CUI.ScriptUtility.isNullOrUndefined(this.$l_2)&&this.get_$2().lastChild===this.$l_2&&this.get_$2().removeChild(this.$l_2);else!CUI.ScriptUtility.isNullOrUndefined(this.$l_2)&&this.get_$2().appendChild(this.$l_2);if(CUI.ScriptUtility.isNullOrUndefined(this.$A_2))return;var c=this.$A_2.$g_0;this.$A_2.$2O();if(this.$A_2.$4_0.$P_0>0&&!CUI.ScriptUtility.isNullOrUndefined(this.$l_2)){var b=false;if(this.$l_2.hasChildNodes()){b=this.$l_2.firstChild===this.$A_2.get_$2();!b&&this.$l_2.removeChild(this.$l_2.firstChild)}!b&&this.$l_2.appendChild(this.$A_2.get_$2())}if(!CUI.ScriptUtility.isNullOrUndefined(this.get_ribbonProperties().TabSwitchCommand)&&this.$30_2!==this.$A_2){var a=new CUI.CommandContextSwitchCommandProperties;if(!CUI.ScriptUtility.isNullOrUndefined(this.$30_2)&&this.$30_2!==this.$A_2){a.OldContextId=this.$30_2.$6_0;a.OldContextCommand=this.$30_2.$y_2}else{a.OldContextId=null;a.OldContextCommand=null}if(!CUI.ScriptUtility.isNullOrUndefined(this.$A_2)){a.NewContextId=this.$A_2.$6_0;a.NewContextCommand=this.$A_2.$y_2;a.ChangedByUser=this.$A_2.$5g_2}this.raiseCommandEvent(this.get_ribbonProperties().TabSwitchCommand,2,a);this.$EI_2(this.$A_2)}if(!CUI.ScriptUtility.isNullOrUndefined(this.$A_2)){this.$A_2.$5g_2=false;this.$A_2.$1D_2&&this.$A_2.$BD()}},$5u:function(a){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(a)){this.$w();a.$7q(true,false);!a.$1A_2&&this.$7j(0);!CUI.ScriptUtility.isNullOrUndefined(this.$A_2)&&this.$A_2!==a&&this.$A_2.$7q(false,false);this.$A_2=a;this.set_$41(false)}this.set_$o(null)},$EI_2:function(a){ULSqdK:;this.$30_2=a},selectTabById:function(b){ULSqdK:;var a=this.getChild(b);if(!CUI.ScriptUtility.isNullOrUndefined(a)){if(a.get_selected()&&a.get_visible())return true;a.$1A_2&&!a.get_visible()&&this.showContextualGroup(a.$10_2);if(a.get_visible()){a.set_selected(true);return true}}return false},selectTabByCommand:function(b){ULSqdK:;if(this.get_selectedTabCommand()===b)return true;var a=this.$4_0.getEnumerator();while(a.moveNext()){var c=a.get_current();if(c.$y_2===b)return this.selectTabById(c.$6_0)}return false},$7j:function(b){ULSqdK:;var a=CUI.ContextualGroup.$5o(b);if(a===""){CUI.Utility.removeCSSClassFromElement(this.$f_2,this.$3T_2);this.$3T_2=null}else{!this.$3T_2&&CUI.Utility.removeCSSClassFromElement(this.$f_2,this.$3T_2);this.$3T_2="ms-cui-ct-topBar-"+a;CUI.Utility.ensureCSSClassOnElement(this.$f_2,this.$3T_2)}},$3T_2:null,get_selectedTabCommand:function(){ULSqdK:;return this.$A_2?this.$A_2.$y_2:null},get_selectedTabId:function(){ULSqdK:;return this.$A_2?this.$A_2.$6_0:null},$AW_2:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$A_2))return 0;return this.$l_2.offsetHeight-this.$A_2.get_$2().offsetHeight},$5r_2:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$A_2))return 0;return this.$l_2.offsetWidth-this.$A_2.$Cx()},$7P_2:function(){ULSqdK:;return this.get_$2().offsetWidth},$AT_2:function(){ULSqdK:;return 100},$Aa_2:function(){ULSqdK:;this.$9Y_2=this.get_$2().style.display;this.get_$2().style.display="none";return},$EA_2:function(){ULSqdK:;this.get_$2().style.display=this.$9Y_2;if(this.$7P_2()<this.$AT_2()){this.get_$2().style.display="none";return}},$AX_2:function(){ULSqdK:;return CUI.Utility.$38().toString()+CUI.Utility.$3y().toString()},$E0:function(m){ULSqdK:;var c=20;if(CUI.ScriptUtility.isNullOrUndefined(this.get_$2()))return false;if(!CUI.ScriptUtility.isNullOrUndefined(this.$A_2)&&!this.$A_2.$9e_2){var e=null;if(this.$3u_1)e=this.getDataCookieValue(this.$A_2.$6_0);var k=this.$2y_2;if(!CUI.ScriptUtility.isNullOrUndefined(e)&&e.startsWith(k)){var a=e.split("|");if(!CUI.ScriptUtility.isNullOrUndefined(a)&&a.length===4){var b=parseInt(a[1]),j=parseInt(a[2]),l=a[3];c=j>c?j:c;if(!isNaN(b)&&b>=0)if(b>=0&&b<this.$A_2.get_scaling().$1o_0.length){this.$A_2.scaleIndex(b);this.$A_2.$9e_2=true;this.$L();if(l===this.get_$18().get_ribbonBuildOptions().scalingHint){this.$A_2.$6Z_2=this.$2y_2;return true}}}}}if(CUI.ScriptUtility.isNullOrUndefined(this.$A_2))return false;this.$A_2.$g_0&&this.$L();if(m&&this.$7P_2()>0)if(!CUI.ScriptUtility.isNullOrUndefined(this.get_$2()))if(this.get_$2().style.display!=="none"&&this.$7P_2()<this.$AT_2())this.$Aa_2();else this.get_$2().style.display==="none"&&this.$EA_2();var d=0,g=false;while((this.$5r_2()<0||this.$AW_2()<0||this.$A_2.get_$7b())&&d<25){if(!this.$A_2.scaleDown()){g=true;break}this.$L();d++}if(g);var f=0,h=0;if(d<=0)while(this.$5r_2()>c&&f<25){if(!this.$A_2.scaleUp())break;this.$L();f++;if(this.$5r_2()<=0||this.$AW_2()<0||this.$A_2.get_$7b()){this.$A_2.scaleDown();this.$L();h++;break}}this.$3u_1&&this.$A_2.$1K_2>=-1&&this.$EE_2();this.$A_2.$6Z_2=this.$2y_2;this.$7g_2();var i=d>0||f-h>0;if(i)!CUI.ScriptUtility.isNullOrUndefined(this.get_ribbonProperties().ScaleCommand)&&this.raiseCommandEvent(this.get_ribbonProperties().ScaleCommand,1,null);return i},$E9_2:function(){ULSqdK:;return this.$0_0._textDirection===1&&CUI.Utility.$3B()},$E6_2:function(){ULSqdK:;this.$q_2.style.width="auto";var a=this.$9y_2(this.$q_2);this.$q_2.style.width=a+"px";this.$q_2.setAttribute("_widthAdded",true)},$9y_2:function(h){ULSqdK:;for(var a=0,e=h.children,g=e.length,d=0;d<g;d++){var b=e[d];if(!CUI.ScriptUtility.isNullOrUndefined(b)&&b.nodeName==="LI"&&b.offsetWidth>0){var c=b.childNodes[1];if(!CUI.ScriptUtility.isNullOrUndefined(c)&&c.nodeName==="UL"){c.style.width="auto";var f=this.$9y_2(c);c.style.width=f+"px";a=a+f+4}else a=a+b.offsetWidth+2}}return a},$7g_2:function(){ULSqdK:;this.$E9_2()&&this.$E6_2();!CUI.ScriptUtility.isNullOrUndefined(window._ribbonScaleHeader)&&window._ribbonScaleHeader(this.$1i_2,this.$0_0._textDirection===1)},$45:function(){ULSqdK:;if(this.$20_2){this.$7g_2();return false}var a=this.$E0(false);this.$6Y_2=new Date;return a},$Dz:function(a){ULSqdK:;!CUI.ScriptUtility.isNullOrUndefined(this.$A_2)&&this.$A_2.$B7(a)},$BL_2:true,get_$D8:function(){ULSqdK:;return this.$6Y_2.getTime()},$EE_2:function(){ULSqdK:;this.storeDataCookie(this.$A_2.$6_0,CUI.Utility.$38().toString()+CUI.Utility.$3y().toString()+"|"+this.$A_2.$1K_2.toString()+"|"+this.$5r_2().toString()+"|"+this.get_$18().get_ribbonBuildOptions().scalingHint.toString())},$20_2:false,$BR_2:false,$6f_2:false,get_minimized:function(){ULSqdK:;return this.$20_2},set_minimized:function(a){ULSqdK:;if(this.$20_2!==a){this.set_$41(a);!a&&this.get_$4x()&&this.pollForStateAndUpdate()}return a},$9W_2:false,get_$41:function(){ULSqdK:;return this.$20_2},set_$41:function(a){ULSqdK:;if(this.$20_2!==a||!this.$9W_2){this.$w();this.$BR_2=!a;this.$6f_2=true;this.$20_2=a;this.$9W_2=true;if(a&&!CUI.ScriptUtility.isNullOrUndefined(this.$A_2)){this.$A_2.$7q(false,false);this.$A_2=null}}return a},$2P:function(){ULSqdK:;this.set_$40(new Date);this.$3N_1=false;var f={},c=this.$11_2;for(var d in c){var a={key:d,value:c[d]},e=a.value,b=false;if(!CUI.ScriptUtility.isNullOrUndefined(e.$y_0))b=this.get_rootUser().isRootCommandEnabled(e.$y_0,this);if(b)f[a.key]=true;this.$7r_2(a.key,b)}this._qat&&this._qat.pollForStateAndUpdate();this._jewel&&this._jewel.pollForStateAndUpdate();if(this.$g_0){this.$L();this.$7g_2()}!CUI.ScriptUtility.isNullOrUndefined(this.$A_2)&&this.$A_2.$2P();if(this.$3N_1){this.$45();this.$3N_1=false}this.ensureGlobalDisablingRemoved()},$1e:function(a){ULSqdK:;if(a.$G_1!==11){a.get_commandInfo().RootLocation=a.$G_1===2?"UpperRibbon":"LowerRibbon";if(a.$G_1===2){var b=a.$2z_1;a.get_commandInfo().TabId=b.NewContextId}}return CUI.Ribbon.callBaseMethod(this,"$1e",[a])},get_jewelElement:function(){ULSqdK:;return this.$p_2},set_jewelElement:function(a){ULSqdK:;this.$p_2=a;return a},$6T_2:false,$2y_2:null,$Dk_2:function(){ULSqdK:;var a=this.$AX_2();if(this.$2y_2===a)return;this.$2y_2=a;if(!this.$6T_2&&this.$BL_2&&this.$EL_2()){this.$Dx_2();this.$6T_2=true;this._componentWidth=this._componentHeight=-1;this.$4n();this.$2f();var b=this.$45();b&&this.pollForStateAndUpdate();this.$6T_2=false}},$EL_2:function(){ULSqdK:;return this.$73_2!==CUI.Utility.$38()||this.$72_2!==CUI.Utility.$3y()},$Dx_2:function(){ULSqdK:;this.$73_2=CUI.Utility.$38();this.$72_2=CUI.Utility.$3y()},get_ribbonProperties:function(){ULSqdK:;return this.$5_1},get_$2Q:function(){ULSqdK:;return this.get_$18()},set_$2Q:function(a){ULSqdK:;this.set_$18(a);return a},get_domElementTagName:function(){ULSqdK:;return "div"},$m:function(){ULSqdK:;CUI.Ribbon.callBaseMethod(this,"$m");this.get_$2().setAttribute("aria-describedby","ribboninstructions");this.get_$2().setAttribute("role","toolbar");this.$Ci_2();this.$Cj_2();this.$Ce_2();this.$AC_2();this.$Cf_2();this.$Cc_2();this.$AC_2()},$Cj_2:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$e_2)){this.$e_2=CUI.Utility.$3("div");this.$e_2.className="ms-cui-topBar1";this.$e_2.style.display="none";this.$1i_2.appendChild(this.$e_2)}if(CUI.ScriptUtility.isNullOrUndefined(this.$f_2)){this.$f_2=CUI.Utility.$3("div");this.$f_2.className="ms-cui-topBar2";this.$1i_2.appendChild(this.$f_2)}},$Ci_2:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$2s_2)){this.$2s_2=CUI.Utility.$3("span");this.$2s_2.className="ms-cui-hidden";this.$2s_2.id="ribboninstruction";CUI.Utility.$2k(this.$2s_2,this.$5_1.NavigationHelpText)}if(CUI.ScriptUtility.isNullOrUndefined(this.$1i_2)){this.$1i_2=CUI.Utility.$3("div");this.$1i_2.className="ms-cui-ribbonTopBars";this.get_$2().appendChild(this.$2s_2);this.get_$2().appendChild(this.$1i_2)}},$Cf_2:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$l_2)){this.$l_2=CUI.Utility.$3("div");CUI.Utility.disableElement(this.$l_2)}},$Cc_2:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$t_2))this.$t_2=$get(this.$2S_1+"-QATRowCenter");if(CUI.ScriptUtility.isNullOrUndefined(this.$u_2))this.$u_2=$get(this.$2S_1+"-QATRowRight");if(CUI.ScriptUtility.isNullOrUndefined(this.$1j_2))this.$1j_2=$get(this.$2S_1+"-TabRowLeft");if(CUI.ScriptUtility.isNullOrUndefined(this.$1k_2))this.$1k_2=$get(this.$2S_1+"-TabRowRight")},$D0_2:function(){ULSqdK:;if(!this.$4h_2&&!CUI.ScriptUtility.isNullOrUndefined(this.$t_2)&&this.$t_2.parentNode!==this.$e_2){this.$t_2.parentNode&&this.$t_2.parentNode.removeChild(this.$t_2);this.$e_2.appendChild(this.$t_2);this.$t_2.style.display="inline-block";this.$e_2.style.display="block";CUI.Utility.$29(this.$t_2,true,false)}if(!this.$4h_2&&!CUI.ScriptUtility.isNullOrUndefined(this.$u_2)&&this.$u_2.parentNode!==this.$e_2){this.$u_2.parentNode&&this.$u_2.parentNode.removeChild(this.$u_2);this.$e_2.appendChild(this.$u_2);this.$u_2.style.display="inline-block";this.$e_2.style.display="block";CUI.Utility.$29(this.$u_2,true,false)}if(!this.$4h_2&&!CUI.ScriptUtility.isNullOrUndefined(this.$1j_2)&&this.$1j_2.parentNode!==this.$f_2){this.$1j_2.parentNode&&this.$1j_2.parentNode.removeChild(this.$1j_2);this.$f_2.appendChild(this.$1j_2);this.$1j_2.style.display="block";CUI.Utility.$29(this.$1j_2,true,false)}if(CUI.ScriptUtility.isNullOrUndefined(this.$q_2)){this.$q_2=CUI.Utility.$3("ul");this.$q_2.setAttribute("role","tablist");this.$q_2.className="ms-cui-tts";this.$f_2.appendChild(this.$q_2)}if(!this.$4h_2&&!CUI.ScriptUtility.isNullOrUndefined(this.$1k_2)&&this.$1k_2.parentNode!==this.$f_2){this.$1k_2.parentNode&&this.$1k_2.parentNode.removeChild(this.$1k_2);this.$f_2.appendChild(this.$1k_2);this.$1k_2.style.display="block";CUI.Utility.$29(this.$1k_2,true,false)}this.$4h_2=true},ensureGlobalDisablingRemoved:function(){ULSqdK:;CUI.Utility.enableElement(this.$q_2);this.$AD();this._jewel&&this._jewel.set_enabled(true);this._qat&&this._qat.pollForStateAndUpdate()},$AD:function(){ULSqdK:;CUI.Utility.enableElement(this.$l_2)},get_rootUser:function(){ULSqdK:;return CUI.Ribbon.callBaseMethod(this,"get_rootUser")},set_rootUser:function(a){ULSqdK:;CUI.Ribbon.callBaseMethod(this,"set_rootUser",[a]);!CUI.ScriptUtility.isNullOrUndefined(this._qat)&&this._qat.set_rootUser(a);!CUI.ScriptUtility.isNullOrUndefined(this._jewel)&&this._jewel.set_rootUser(a);return a},dispose:function(){ULSqdK:;this.set_$CU(true);var a=this.$0_0;if(!CUI.ScriptUtility.isNullOrUndefined(a)){var d=a.$2d_1;!CUI.ScriptUtility.isNullOrUndefined(d)&&window.clearTimeout(d);a.$2f()}if(!CUI.ScriptUtility.isNullOrUndefined(this.$4f_2)){this.set_$52(false);this.$4f_2=null}if(this.$6g_2){$removeHandler(this.get_$2(),"contextmenu",this.$6g_2);this.$6g_2=null}CUI.Ribbon.callBaseMethod(this,"dispose");this.$30_2=null;this.$A_2=null;this.$1i_2=null;this.$q_2=null;this.$p_2=null;this.$l_2=null;this.$1j_2=null;this.$1k_2=null;this.$2t_2=null;this.$t_2=null;this.$u_2=null;this.$e_2=null;this.$f_2=null;var b=this.$11_2;for(var c in b){var e={key:c,value:b[c]},f=e.value;f.dispose()}this.$11_2=null}};CUI.RibbonCommand=function(){};CUI.RibbonCommand.$AU_0=function(d){ULSqdK:;var a=window._v_rg_spbutton;if(a){var b=a[d];if(b){var c=$get(b);return c}}return null};CUI.RibbonCommand.serverButton=function(b){ULSqdK:;var a=CUI.RibbonCommand.$AU_0(b);if(a){var c=a;if(CUI.BrowserUtility.$Ag())if(a.tagName!=="A")CUI.NativeUtility.ffClick(a);else window.location.href=c.href;else a.click()}};CUI.RibbonCommand.serverQueryButton=function(a){ULSqdK:;var b=CUI.RibbonCommand.$AU_0(a);return b};CUI.RibbonCommand.serverControlLabel=function(c){ULSqdK:;var a=window._v_rg_spbutton;if(a){var b=a[c];if(b){var d=$get(b);return d.value}}return null};CUI.RibbonBuildContext=function(){ULSqdK:;CUI.RibbonBuildContext.initializeBase(this)};CUI.RibbonBuildContext.prototype={clone:function(){ULSqdK:;var a=new CUI.RibbonBuildContext;a.initializedTab=this.initializedTab;a.initialScalingIndex=this.initialScalingIndex;a.initialTabId=this.initialTabId;a.ribbon=this.ribbon;return a},initializedTab:null,initialTabId:null,initialScalingIndex:0,ribbon:null};CUI.RibbonBuildOptions=function(){ULSqdK:;this.initialScalingIndex=-1;CUI.RibbonBuildOptions.initializeBase(this)};CUI.RibbonBuildOptions.prototype={lazyTabInit:false,shallowTabs:false,showQATId:null,showJewelId:null,minimized:false,shownTabs:null,shownContextualGroups:null,initiallyVisibleContextualGroups:null,normalizedContextualGroups:null,trimEmptyGroups:false,initialTabSelectedByUser:false,launchedByKeyboard:false,scalingHint:"0"};CUI.RibbonBuilder=function(c,a,b){ULSqdK:;this.$8w=Function.createDelegate(this,this.$DZ_1);this.$81=Function.createDelegate(this,this.$CS_1);this.$8v=Function.createDelegate(this,this.$Ax_1);CUI.RibbonBuilder.initializeBase(this,[c,a,b]);if(CUI.ScriptUtility.isNullOrUndefined(a))throw Error.create("Ribbon placeholder DOM element is null or undefined.")};CUI.RibbonBuilder.prototype={get_ribbon:function(){ULSqdK:;return this.$0_0},set_ribbon:function(a){ULSqdK:;this.$0_0=a;return a},get_ribbonBuildOptions:function(){ULSqdK:;return this.$s_0},buildRibbonAndInitialTab:function(c){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(c))throw Error.create("Initial tab for ribbon is null or undefined");if(this.$2Y_0)return false;var b=new CUI.RibbonBuildContext;b.initialTabId=c;if(!CUI.ScriptUtility.isNullOrUndefined(this.get_ribbonBuildOptions().attachToDOM)&&this.get_ribbonBuildOptions().attachToDOM)b.initialScalingIndex=this.get_ribbonBuildOptions().initialScalingIndex;this.$2Y_0=true;var a=new CUI.DataQuery;a.id=b.initialTabId;a.queryType=2;a.handler=this.$8v;a.data=b;this.$12_0.runQuery(a);return true},buildRibbonFromData:function(d,c){ULSqdK:;var b=new CUI.RibbonBuildContext;b.initialTabId=c;var a=new CUI.DataQueryResult;a.success=true;a.queryData=d;a.contextData=b;this.$Ax_1(a)},$Ax_1:function(a){ULSqdK:;var b=a.contextData;a.queryData=this.applyDataExtensions(a.queryData);CUI.Utility.ensureCSSClassOnElement(this._elmPlaceholder,"loaded");var d=CUI.DataNodeWrapper.getFirstChildNodeWithName(a.queryData,"Templates");!CUI.ScriptUtility.isNullOrUndefined(d)&&CUI.TemplateManager.get_instance().loadTemplates(d);this.set_ribbon(this.$Bw_1(a.queryData,b));this.get_ribbon().set_$2Q(this);this.$1Q_0.onComponentCreated(this.get_ribbon(),this.get_ribbon().$6_0);if(this.get_ribbonBuildOptions().minimized)this.get_ribbon().set_$41(true);else{this.get_ribbon().set_$41(false);var c=this.get_ribbon().getChild(b.initialTabId);if(!CUI.ScriptUtility.isNullOrUndefined(c)){c.$5g_2=this.get_ribbonBuildOptions().initialTabSelectedByUser;this.get_ribbon().$5u(c)}}this.get_ribbon().$2S_1=this.get_ribbonBuildOptions().clientID;var e=!this.get_ribbonBuildOptions().minimized&&this.get_ribbonBuildOptions().attachToDOM;if(e){!this.$s_0.minimized&&this.get_ribbon().$Dz(b.initialScalingIndex-1);this.get_ribbon().$36(true);!CUI.ScriptUtility.isNullOrEmptyString(this.get_ribbonBuildOptions().showQATId)&&this.get_ribbon().$9w(this.get_ribbonBuildOptions().showQATId,true,this.$12_0);!CUI.ScriptUtility.isNullOrEmptyString(this.get_ribbonBuildOptions().showJewelId)&&this.get_ribbon().$9v(this.get_ribbonBuildOptions().showJewelId,true,this.$12_0)}else{this.get_ribbon().$m();!CUI.ScriptUtility.isNullOrEmptyString(this.get_ribbonBuildOptions().showQATId)&&this.get_ribbon().$9w(this.get_ribbonBuildOptions().showQATId,false,this.$12_0);!CUI.ScriptUtility.isNullOrEmptyString(this.get_ribbonBuildOptions().showJewelId)&&this.get_ribbon().$9v(this.get_ribbonBuildOptions().showJewelId,false,this.$12_0);CUI.Utility.removeChildNodesSlow(this._elmPlaceholder);this._elmPlaceholder.appendChild(this.get_ribbon().get_$2())}this.get_ribbon().$45();this.$7a(this.get_ribbon());this.$1Q_0.onComponentBuilt(this.get_ribbon(),this.get_ribbon().$6_0);this.get_ribbonBuildOptions().launchedByKeyboard&&this.get_ribbon().setFocusOnRibbon();CUI.PMetrics.perfMark(7104)},$DZ_1:function(c){ULSqdK:;var a=c.contextData;if(c.success){var g=CUI.DataNodeWrapper.getFirstChildNodeWithName(c.queryData,"Ribbon"),d=CUI.DataNodeWrapper.getFirstChildNodeWithName(g,"Tabs"),b=null;if(CUI.ScriptUtility.isNullOrUndefined(d)||!CUI.DataNodeWrapper.getNodeChildren(d).length)for(var j=CUI.DataNodeWrapper.getFirstChildNodeWithName(g,"ContextualTabs"),h=CUI.DataNodeWrapper.getNodeChildren(j),f=0;f<h.length;f++){var k=h[f];b=CUI.DataNodeWrapper.getNodeChildren(k);if(b.length>0)break}else b=CUI.DataNodeWrapper.getNodeChildren(d);var e=CUI.DataNodeWrapper.getFirstChildNodeWithName(c.queryData,"Templates");e=this.applyDataExtensions(e);CUI.TemplateManager.get_instance().loadTemplates(e);var i=this.applyDataExtensions(b[0]);this.$7I_1(a.initializedTab,i,a);a.initializedTab.get_ribbon().$5u(a.initializedTab);a.initializedTab.$4v(true)}CUI.PMetrics.perfMark(7106)},$Bw_1:function(j,g){ULSqdK:;var d=CUI.DataNodeWrapper.getFirstChildNodeWithName(j,"Ribbon");if(CUI.ScriptUtility.isNullOrUndefined(d))throw Error.create("No ribbon element was present in the data");var a=new CUI.DataNodeWrapper(d);this.set_ribbon(new CUI.Ribbon(a.get_attributes()["Id"],a.get_attributes()));this.get_ribbon().$3u_1=true;var h=CUI.DataNodeWrapper.getNodeChildren(CUI.DataNodeWrapper.getFirstChildNodeWithName(a.$a_0,"Tabs"));this.$9q_1(h,null,g);var e=CUI.DataNodeWrapper.getFirstChildNodeWithName(a.$a_0,"ContextualTabs");if(!CUI.ScriptUtility.isNullOrUndefined(e))for(var c=CUI.DataNodeWrapper.getNodeChildren(e),i=!CUI.ScriptUtility.isNullOrUndefined(this.get_ribbonBuildOptions().shownContextualGroups),b=0;b<c.length;b++){if(i){var f=CUI.DataNodeWrapper.getNodeAttributes(c[b])["Id"];if(!CUI.ScriptUtility.isNullOrUndefined(f))if(CUI.ScriptUtility.isNullOrUndefined(this.get_ribbonBuildOptions().shownContextualGroups[f]))continue}this.$BW_1(c[b],g)}return this.get_ribbon()},$BW_1:function(g,h){ULSqdK:;var b=CUI.DataNodeWrapper.getNodeAttributes(g),a=0,c=b["Id"],d=!CUI.ScriptUtility.isNullOrUndefined(this.get_ribbonBuildOptions().normalizedContextualGroups)&&!CUI.ScriptUtility.isNullOrUndefined(this.get_ribbonBuildOptions().normalizedContextualGroups[c])&&this.get_ribbonBuildOptions().normalizedContextualGroups[c];if(!d){switch(b["Color"]){case "DarkBlue":a=1;break;case "LightBlue":a=2;break;case "Magenta":a=6;break;case "Green":a=5;break;case "Orange":a=4;break;case "Purple":a=8;break;case "Teal":a=3;break;case "Yellow":a=7;break;default:a=0}this.get_ribbon().addContextualGroup(c,b["Title"],a,b["Command"])}var e=CUI.DataNodeWrapper.getNodeChildren(g);if(!d)for(var f=0;f<e.length;f++){var i=CUI.DataNodeWrapper.getNodeAttribute(e[f],"Id");if(i===h.initialTabId){if(CUI.ScriptUtility.isNullOrUndefined(this.get_ribbonBuildOptions().initiallyVisibleContextualGroups))this.get_ribbonBuildOptions().initiallyVisibleContextualGroups={};this.get_ribbonBuildOptions().initiallyVisibleContextualGroups[c]=true;break}}this.$9q_1(e,d?null:b["Id"],h)},$9q_1:function(b,f,g){ULSqdK:;for(var d=!CUI.ScriptUtility.isNullOrUndefined(this.get_ribbonBuildOptions().shownTabs),a=0;a<b.length;a++){if(d){var c=CUI.DataNodeWrapper.getNodeAttributes(b[a])["Id"];if(!CUI.ScriptUtility.isNullOrUndefined(c))if(CUI.ScriptUtility.isNullOrUndefined(this.get_ribbonBuildOptions().shownTabs[c]))continue}var e=this.$C0_1(b[a],g,f);this.get_ribbon().addChild(e)}},$C0_1:function(d,e,c){ULSqdK:;var a=new CUI.DataNodeWrapper(d),b;if(CUI.ScriptUtility.isNullOrUndefined(c))b=this.get_ribbon().$CP(a.get_attributes()["Id"],a.get_attributes()["Title"],a.get_attributes()["Description"],a.get_attributes()["Command"],a.get_attributes()["CssClass"]);else{b=this.get_ribbon().$CG(a.get_attributes()["Id"],a.get_attributes()["Title"],a.get_attributes()["Description"],a.get_attributes()["Command"],c,a.get_attributes()["CssClass"]);!CUI.ScriptUtility.isNullOrUndefined(this.get_ribbonBuildOptions().initiallyVisibleContextualGroups)&&this.get_ribbonBuildOptions().initiallyVisibleContextualGroups[c]&&b.set_$64(true)}if(!a.get_children().length)b.$7k(this.$81,a.$a_0,e.clone());else this.$7I_1(b,d,e);return b},$7I_1:function(f,n,q){ULSqdK:;for(var o=CUI.DataNodeWrapper.getFirstChildNodeWithName(n,"Groups"),d=CUI.DataNodeWrapper.getNodeChildren(o),g={},b=0;b<d.length;b++){if(this.isNodeTrimmed(d[b]))continue;var m=this.$Bn_1(d[b],q);if(!CUI.ScriptUtility.isNullOrUndefined(m))f.addChild(m);else{var k=CUI.DataNodeWrapper.getNodeAttribute(d[b],"Id");if(!CUI.ScriptUtility.isNullOrUndefined(k))g[k]=k}}for(var p=CUI.DataNodeWrapper.getFirstChildNodeWithName(n,"Scaling"),h=CUI.DataNodeWrapper.getNodeChildren(p),i=null,j=false,e=0;e<h.length;e++){var l=CUI.DataNodeWrapper.getNodeName(h[e]),c=CUI.DataNodeWrapper.getNodeAttributes(h[e]),a=c["GroupId"];if(l==="MaxSize"){if(this.isIdTrimmed(a)||!CUI.ScriptUtility.isNullOrUndefined(g[a]))continue;f.get_scaling().setGroupMaxSize(a,c["Size"])}else if(l==="Scale"){if(this.isIdTrimmed(a)||!CUI.ScriptUtility.isNullOrUndefined(g[a]))continue;f.get_scaling().addScalingStep(new CUI.ScalingStep(a,c["Size"],c["PopupSize"],i,j));i=null;j=false}else if(l==="LowScaleWarning"){i=c["Message"];j=true}else throw Error.create("Was expecting a node with name MaxSize or Scale.")}f.scaleMax()},$CS_1:function(d,e,g){ULSqdK:;var b=g,c=d,f=new CUI.DataNodeWrapper(e);b.initializedTab=d;if(!f.get_hasChildren()){var a=new CUI.DataQuery;a.id=b.initializedTab.$6_0;a.queryType=4;a.handler=this.$8w;a.data=b;this.$12_0.runQuery(a);return null}this.$7I_1(c,e,b);c.$4v(true);this.get_ribbon().refresh();return c},$Bn_1:function(n,o){ULSqdK:;var a=new CUI.DataNodeWrapper(n),j=a.get_attributes()["Template"],k=CUI.TemplateManager.get_instance().getTemplate(j);if(CUI.ScriptUtility.isNullOrUndefined(k))throw Error.create("A template with name: "+j+" could not be loaded.");for(var c={},g=null,d=0;d<a.get_children().length;d++)if(a.get_children()[d].name==="Controls"){g=a.get_children()[d];break}if(CUI.ScriptUtility.isNullOrUndefined(g))throw Error.create("No Controls node found in this Group tag.");for(var h=CUI.DataNodeWrapper.getNodeChildren(g),l=true,e=0;e<h.length;e++){if(this.isNodeTrimmed(h[e]))continue;l=false;var b=this.$1d(h[e],o),f=c[b.get_templateAlias()];if(CUI.ScriptUtility.isNullOrUndefined(f))c[b.get_templateAlias()]=b;else if(Array.isInstanceOfType(f))Array.add(f,b);else{var i=[];Array.add(i,f);Array.add(i,b);c[b.get_templateAlias()]=i}}if(this.get_ribbonBuildOptions().trimEmptyGroups&&l)return null;var m=k.createGroup(this.get_ribbon(),a.get_attributes()["Id"],a.get_attributes(),a.get_attributes()["Title"],a.get_attributes()["Description"],a.get_attributes()["Command"],c,null);return m}};CUI.RibbonComponent=function(b,d,c,a){ULSqdK:;CUI.RibbonComponent.initializeBase(this,[b,d,c,a])};CUI.RibbonComponent.prototype={get_ribbon:function(){ULSqdK:;return this.$0_0}};CUI.Row=function(a,b){ULSqdK:;CUI.Row.initializeBase(this,[a,b,"",""])};CUI.Row.prototype={$L:function(){ULSqdK:;this.ensureDOMElementAndEmpty();CUI.Row.callBaseMethod(this,"appendChildrenToElement",[this.get_$2()]);CUI.Row.callBaseMethod(this,"$L")},$3v:function(){ULSqdK:;this.set_$2($get(this.$K_0.$6_0+"-"+this.$K_0.$4_0.indexOf(this)))},ensureCorrectChildType:function(a){ULSqdK:;if(!CUI.Strip.isInstanceOfType(a)&&!CUI.ControlComponent.isInstanceOfType(a))throw Error.create("Only children of type Strip and ControlComponent can be added to Row Components.")},get_domElementTagName:function(){ULSqdK:;return "span"},get_cssClass:function(){ULSqdK:;var a=this.$K_0.$G_2;if(a===2)return "ms-cui-row-onerow";else return "ms-cui-row"}};CUI.ScalingStep=function(b,a,e,c,d){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(b)||CUI.ScriptUtility.isNullOrUndefined(a))throw Error.create("groupId, layoutName and message cannot be undefined or null");this.$2H_0=b;this.$5Y_0=a;this.$6n_0=e;this.$9f_0=c;this.$9m_0=d};CUI.ScalingStep.prototype={$2H_0:null,$5Y_0:null,$6n_0:null,$9f_0:null,$9m_0:false,$1n_0:null,$BC:function(a){ULSqdK:;this.$1n_0=a},get_groupId:function(){ULSqdK:;return this.$2H_0},get_layoutName:function(){ULSqdK:;return this.$5Y_0},get_popupSize:function(){ULSqdK:;return this.$6n_0},get_scaleWarningMessage:function(){ULSqdK:;return this.$9f_0},get_hasScaleWarning:function(){ULSqdK:;return this.$9m_0},get_previousLayoutName:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$1n_0))return null;for(var c=this.$1n_0.getGroupMaxSize(this.$2H_0),d=this.$1n_0.$1o_0,a=0;a<d.length;a++){var b=d[a];if(b===this)break;if(b.$2H_0===this.$2H_0)c=b.$5Y_0}return c}};CUI.Scaling=function(){ULSqdK:;this.$4c_0={};this.$1o_0=[]};CUI.Scaling.prototype={$4c_0:null,$1o_0:null,setGroupMaxSize:function(a,b){ULSqdK:;this.$4c_0[a]=b;this.$g_0=true},removeGroupMaxSize:function(a){ULSqdK:;delete this.$4c_0[a];this.$g_0=true},getGroupMaxSize:function(a){ULSqdK:;return this.$4c_0[a]},addScalingStep:function(a){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(a))throw Error.create("step must be definined and not null");if(CUI.ScriptUtility.isNullOrUndefined(this.$4c_0[a.$2H_0]))throw Error.create("You must set the GroupMaxSize of Group: "+a.$2H_0+" before you add ScalingSteps for it");this.addScalingStepAtIndex(a,this.$1o_0.length)},addScalingStepAtIndex:function(a,b){ULSqdK:;if(Array.contains(this.$1o_0,a))throw Error.create("This ScalingInfo already contains this ScaleStep");Array.insert(this.$1o_0,b,a);a.$BC(this);this.$g_0=true},removeScalingStep:function(a){ULSqdK:;Array.remove(this.$1o_0,a);a.$BC(null);this.$g_0=true},get_steps:function(){ULSqdK:;return Array.clone(this.$1o_0)},get_stepsInternal:function(){ULSqdK:;return this.$1o_0},$g_0:true};CUI.Section=function(a,b,c,d){ULSqdK:;CUI.Section.initializeBase(this,[a,b,"",""]);this.$G_2=c;this.$1N_2=d;switch(c){case 4:this.$34(new CUI.Row(a,b+"-0"),false);this.$34(new CUI.Row(a,b+"-1"),false);this.$34(new CUI.Row(a,b+"-2"),false);break;case 3:this.$34(new CUI.Row(a,b+"-0"),false);this.$34(new CUI.Row(a,b+"-1"),false);break;case 2:this.$34(new CUI.Row(a,b+"-0"),false);break;case 1:break;default:throw Error.create("Invalid SectionType")}};CUI.Section.prototype={$G_2:0,$1N_2:0,$L:function(){ULSqdK:;this.ensureDOMElementAndEmpty();this.appendChildrenToElement(this.get_$2());this.$m();if(this.$G_2!==1){var a=this.$4_0;this.$75_2(a,1);(this.$G_2===3||this.$G_2===4)&&this.$75_2(a,2);this.$G_2===4&&this.$75_2(a,3)}this.$g_0=false},$3v:function(){ULSqdK:;this.set_$2($get(this.$K_0.$6_0+"-"+this.$K_0.$4_0.indexOf(this).toString()))},$75_2:function(b,c){ULSqdK:;var a=b.get_item(c-1);a.$m();if(this.$G_2===3)a.get_$2().className="ms-cui-row-tworow";this.get_$2().appendChild(a.get_$2());a.$2O()},get_cssClass:function(){ULSqdK:;if(this.$1N_2===2)return "ms-cui-section-alignmiddle";else return "ms-cui-section"},get_type:function(){ULSqdK:;return this.$G_2},get_alignment:function(){ULSqdK:;return this.$1N_2},removeChild:function(){ULSqdK:;throw Error.create("Cannot directly add and remove children from Section Components")},addChildAtIndex:function(){ULSqdK:;throw Error.create("Cannot directly add and remove children from Section Components")},getRow:function(a){ULSqdK:;switch(this.$G_2){case 4:if(a<1||a>3)throw Error.create("This Section type only has Row numbers 1, 2 and 3.");break;case 3:if(a<1||a>2)throw Error.create("This Section type only has Row numbers 1 and 2");break;case 2:if(a!==1)throw Error.create("This Section type only has Row number 1.");break;default:throw Error.create("This Section type does not have any rows")}return this.$4_0.get_item(a-1)},$m:function(){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(this.get_$2()))return;if(this.$G_2===1){var a=CUI.Utility.$3("span");a.className="ms-cui-section-divider";this.set_$2(a);return}CUI.Section.callBaseMethod(this,"$m")},ensureCorrectChildType:function(b){ULSqdK:;var a=this.$4_0.$P_0;if(this.$G_2===2&&a>0||this.$G_2===3&&a>1||this.$G_2===4&&a>2)throw Error.create("No more children can be added to a Section of this type.");if(this.$G_2===1)throw Error.create("Cannot add child components to Divider Section types.");if(!CUI.Row.isInstanceOfType(b))throw Error.create("Only children of type Row can be added to Section Components.")},$4m:function(d){ULSqdK:;var b=this.get_ribbon().$26("clonedSection-"+this.get_ribbon().$27(),this.$G_2,this.$1N_2);if(!d)return b;var g=0,e=this.$4_0.getEnumerator();while(e.moveNext()){var h=e.get_current(),f=h.$4_0.getEnumerator();while(f.moveNext()){var a=f.get_current(),c=null;if(CUI.ControlComponent.isInstanceOfType(a)){var i=a;c=i.$4m(d)}else if(CUI.Strip.isInstanceOfType(a))c=a.$4m(d);b.getRow(g+1).addChild(c)}g++}return b},get_domElementTagName:function(){ULSqdK:;return "span"}};CUI.Strip=function(a,b){ULSqdK:;CUI.Strip.initializeBase(this,[a,b,"",""])};CUI.Strip.prototype={$L:function(){ULSqdK:;this.ensureDOMElementAndEmpty();this.appendChildrenToElement(this.get_$2());CUI.Strip.callBaseMethod(this,"$L")},$3v:function(){ULSqdK:;this.set_$2($get(this.$K_0.$6_0+"-"+this.$K_0.$4_0.indexOf(this)))},ensureCorrectChildType:function(a){ULSqdK:;if(!CUI.ControlComponent.isInstanceOfType(a))throw Error.create("Only children of type Control can be added to Strips.")},get_cssClass:function(){ULSqdK:;return "ms-cui-strip"},$4m:function(c){ULSqdK:;var a=this.get_ribbon().$A8("clonedStrip-"+this.get_ribbon().$27());if(!c)return a;var b=this.$4_0.getEnumerator();while(b.moveNext()){var d=b.get_current();a.addChild(d.$4m(c))}return a}};CUI.Tab=function(f,h,g,d,e,a,c,b){ULSqdK:;this.$9C=Function.createDelegate(this,this.$BH_2);this.$93=Function.createDelegate(this,this.$Dg_2);this.$91=Function.createDelegate(this,this.$Az_2);this.$92=Function.createDelegate(this,this.$Df_2);CUI.Tab.initializeBase(this,[f,h,g,d]);this.$1K_2=-1;this.$1n_2=new CUI.Scaling;this.$1A_2=a;this.$10_2=c;this.$y_2=e;this.$9G_2=CUI.ScriptUtility.isNullOrUndefined(b)?"":b;a&&this.set_$64(false)};CUI.Tab.prototype={$5f_2:false,$D_2:null,$r_2:null,$3e_2:null,$2U_2:null,$1K_2:0,$9G_2:null,$1A_2:false,$10_2:null,$L:function(){ULSqdK:;this.ensureDOMElementAndEmpty();this.$7G();this.appendChildrenToElement(this.get_$2());CUI.Tab.callBaseMethod(this,"$L")},$9s:function(){ULSqdK:;this.$D_2=$get(this.$6_0+"-title");this.$r_2=this.$D_2.childNodes[0];this.$3e_2=this.$r_2.childNodes[0];this.$2U_2=this.$r_2.childNodes[1]},$9t:function(){ULSqdK:;$addHandler(this.$r_2,"dblclick",this.$92);$addHandler(this.$r_2,"click",this.$91);$addHandler(this.$r_2,"keypress",this.$93)},$3v:function(){ULSqdK:;CUI.Tab.callBaseMethod(this,"$3v");this.$9s()},$N:function(){ULSqdK:;CUI.Tab.callBaseMethod(this,"$N");this.$9t()},$m:function(){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(this.get_$2()))return;CUI.Tab.callBaseMethod(this,"$m");this.get_$2().setAttribute("role","tabpanel");this.get_$2().setAttribute("aria-labelledby",this.$6_0+"-title")},get_domElementTagName:function(){ULSqdK:;return "ul"},$Ch:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$D_2))this.$D_2=CUI.Utility.$3("li")},$AB:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$2U_2))this.$2U_2=CUI.Utility.$3("span")},$7G:function(){ULSqdK:;var a=" ";if(CUI.ScriptUtility.isNullOrUndefined(this.$r_2)){this.$Ch();this.$r_2=CUI.Utility.$3("a");CUI.Utility.$1q(this.$r_2);this.$r_2.className="ms-cui-tt-a";this.$3e_2=CUI.Utility.$3("span");this.$3e_2.className="ms-cui-tt-span";this.$D_2.appendChild(this.$r_2);this.$r_2.appendChild(this.$3e_2);this.$N()}else{a+=this.$D_2.className.indexOf("ms-cui-ct-first")>-1?"ms-cui-ct-first ":"";a+=this.$D_2.className.indexOf("ms-cui-ct-last")>-1?"ms-cui-ct-last":"";a=a.trimEnd()}this.$D_2.className=this.$AV_2()+a;this.$D_2.id=this.$6_0+"-title";this.$D_2.setAttribute("role","tab");this.$D_2.setAttribute("aria-selected",this.$5f_2);CUI.UIUtility.setInnerText(this.$3e_2,this.get_title());this.$D_2.title=this.get_title();if(!CUI.ScriptUtility.isNullOrEmptyString(this.get_description()))this.$r_2.setAttribute("title",this.get_description());else this.$r_2.setAttribute("title",this.get_title())},$BB:function(d,a,e,b,c){ULSqdK:;CUI.ScriptUtility.isNullOrUndefined(this.$2U_2)&&this.$AB();if(this.$1A_2)a=String.format(a,e,b,c);else a=String.format(d,b,c);CUI.UIUtility.setInnerText(this.$2U_2,a);CUI.Utility.ensureCSSClassOnElement(this.$2U_2,"ms-cui-hidden");this.$r_2.appendChild(this.$2U_2)},$Dy:function(){ULSqdK:;this.$D_2.className=this.$AV_2()},get_cssClass:function(){ULSqdK:;return this.$Ct_2()},get_selected:function(){ULSqdK:;return this.$5f_2},set_selected:function(a){ULSqdK:;if(!this.get_visible())throw Error.create("Tabs must be visible and enabled in order to be selected.");if(a){if(this.get_needsDelayIniting()){this.doDelayedInit();return}this.get_ribbon().$5u(this);this.get_ribbon().set_$41(false);this.get_ribbon().$L();this.$6Z_2!==this.get_ribbon().$2y_2&&this.get_ribbon().$45();this.$B2();this.$1D_2=false}else throw Error.create("Selected cannot be set to false explicitly.\nSelecting another Tab will do this implicitly.");return a},$Dv_2:function(){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(this.get_ribbon().get_$2Q())&&!CUI.ScriptUtility.isNullOrUndefined(this.get_ribbon().get_$2Q().get_ribbonBuildOptions())&&!CUI.ScriptUtility.isNullOrEmptyString(this.get_ribbon().get_$2Q().get_ribbonBuildOptions().clientID)){var a=$get(this.get_ribbon().get_$2Q().get_ribbonBuildOptions().clientID+"_activeTabId");if(a)a.value=this.$6_0}},$7q:function(a,b){ULSqdK:;a&&this.$Dv_2();this.$5f_2=a;this.$w();b&&this.$7G()},$4v:function(a){ULSqdK:;CUI.Tab.callBaseMethod(this,"$4v",[a]);this.get_ribbon().$45();this.get_ribbon().pollForStateAndUpdate()},ensureCorrectChildType:function(a){ULSqdK:;if(!CUI.Group.isInstanceOfType(a))throw Error.create("Only children of type Group can be added to Tab Components")},$1n_2:null,get_scaling:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$1n_2))this.$1n_2=new CUI.Scaling;return this.$1n_2},get_currentScalingIndex:function(){ULSqdK:;return this.$1K_2},$6Z_2:null,scaleMax:function(){ULSqdK:;this.$7h();this.$w()},$7h:function(){ULSqdK:;var a=this.$4_0.getEnumerator();while(a.moveNext()){var b=a.get_current(),c=this.$1n_2.getGroupMaxSize(b.$6_0);!CUI.ScriptUtility.isNullOrUndefined(c)&&b.selectLayout(c,null)}this.$1K_2=-1},scaleIndex:function(a){ULSqdK:;this.$B7(a);this.$w()},$B7:function(a){ULSqdK:;this.$7h();while(a>this.$1K_2)if(!this.$B6())break},$E1:function(){ULSqdK:;if(this.$1K_2===-2){this.$7h();return true}if(this.$1K_2===-1)return false;var b=this.$1n_2.$1o_0,a=b[this.$1K_2],c=this.getChild(a.$2H_0);c.selectLayout(a.get_previousLayoutName(),null);this.$1K_2--;return true},scaleUp:function(){ULSqdK:;var a=this.$E1();a&&this.$w();return a},$B6:function(){ULSqdK:;if(this.$1K_2===-2){this.scaleMax();return true}var b=this.$1n_2.$1o_0;if(b.length<=this.$1K_2+1)return false;this.$1K_2++;var a=b[this.$1K_2],c=this.getChild(a.$2H_0);c.selectLayout(a.$5Y_0,a.$6n_0);return true},scaleDown:function(){ULSqdK:;var a=this.$B6();a&&this.$w();return a},$9e_2:false,$Cx:function(){ULSqdK:;for(var b=0,c=this.get_$2().childNodes,a=0;a<c.length;a++)b+=c[a].offsetWidth;return b},get_contextual:function(){ULSqdK:;return this.$1A_2},get_contextualGroupId:function(){ULSqdK:;return this.$10_2},$5g_2:false,$1D_2:false,$Dg_2:function(a){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(a)&&!CUI.ScriptUtility.isNullOrUndefined(a.rawEvent)){var b=a.rawEvent.keyCode;if(b===13){this.$1D_2=true;a.stopPropagation();this.$Az_2(a)}}},$Az_2:function(a){ULSqdK:;CUI.PMetrics.perfMark(7105);a.preventDefault();this.$6t_2=true;if(this.get_selected())window.setTimeout(this.$9C,500);else this.$BH_2()},$6t_2:true,$BH_2:function(){ULSqdK:;if(!this.$6t_2)return;this.$5g_2=true;this.get_ribbon().$AA();this.set_selected(true);this.get_ribbon().$2f();this.get_ribbon().set_$o(null);CUI.PMetrics.perfMark(7107)},$Am:function(f){ULSqdK:;var g=document.activeElement,h=this.$AF_2(g),b=this.$4_0.$P_0,e,c=0,d=this.$4_0.getEnumerator();while(d.moveNext()){var i=d.get_current();if(i.$6_0===h)break;c++}var a;if(f)a=(c+1)%b;else a=c-1;if(a<0)a=b+a;while(a!==c){e=this.$4_0.get_item(a);if(e.$50())return;if(f)a=(a+1)%b;else a=a-1;if(a<0)a=b+a}},$AF_2:function(a){ULSqdK:;if(a.nodeName==="LI")return a.id;else return this.$AF_2(a.parentNode)},$BD:function(){ULSqdK:;var b=false,a=this.$4_0.getEnumerator();while(a.moveNext()){var c=a.get_current();if(c.$50()){b=true;return}}!b&&this.$r_2.focus()},$E5:function(){ULSqdK:;!CUI.ScriptUtility.isNullOrUndefined(this.$r_2)&&this.$r_2.focus()},$Df_2:function(a){ULSqdK:;this.$6t_2=false;a.preventDefault();this.get_ribbon().set_$41(true);this.get_ribbon().$L()},get_$7b:function(){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(this.get_$2())&&!CUI.ScriptUtility.isNullOrUndefined(this.get_$2().lastChild)){var b=CUI.Utility.$AP(this.get_$2().lastChild);if(this.$0_0._textDirection!==1&&CUI.Utility.$38()<=b.width+b.x)return true}var a=this.$4_0.getEnumerator();while(a.moveNext()){var c=a.get_current();if(c.get_$7b())return true}return false},$AV_2:function(){ULSqdK:;var a="ms-cui-tt "+this.$9G_2;if(this.$5f_2)a+=" ms-cui-tt-s";return a},$Ct_2:function(){ULSqdK:;var a="ms-cui-tabBody";if(this.$1A_2)a+=" ms-cui-tabBody-"+CUI.ContextualGroup.$5o(this.get_ribbon().$7L(this.$10_2).$3S_0);return a},$Cv:function(){ULSqdK:;var a="ms-cui-tabContainer";if(this.$1A_2)a+=" ms-cui-tabContainer-"+CUI.ContextualGroup.$5o(this.get_ribbon().$7L(this.$10_2).$3S_0);return a},get_visible:function(){ULSqdK:;return CUI.Tab.callBaseMethod(this,"get_visible")},set_visible:function(a){ULSqdK:;if(this.$1A_2)throw Error.create("Visibility of Contextual Tabs cannot be set explicitly.");CUI.Tab.callBaseMethod(this,"set_visible",[a]);return a},$y_2:null,get_command:function(){ULSqdK:;return this.$y_2},$1e:function(a){ULSqdK:;a.get_commandInfo().TabId=this.$6_0;return CUI.Tab.callBaseMethod(this,"$1e",[a])},$2P:function(){ULSqdK:;var a=CUI.ScriptUtility.isNullOrUndefined(this.$y_2)?true:this.get_ribbon().$4w(this.$y_2,null,null);this.set_enabled(a);if(a){this.set_$40(new Date);CUI.Tab.callBaseMethod(this,"$2P")}this.get_ribbon().$AD()},dispose:function(){ULSqdK:;CUI.Tab.callBaseMethod(this,"dispose");CUI.Utility.$7d(this.$D_2);this.$2U_2=null;this.$D_2=null;this.$r_2=null;this.$3e_2=null}};CUI.Template=function(){};CUI.TemplateManager=function(){ULSqdK:;this.$3q_0={}};CUI.TemplateManager.get_instance=function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(CUI.TemplateManager.$5W_0))CUI.TemplateManager.$5W_0=new CUI.TemplateManager;return CUI.TemplateManager.$5W_0};CUI.TemplateManager.prototype={$3q_0:null,addTemplate:function(a,b){ULSqdK:;this.$3q_0[b]=a},removeTemplate:function(a){ULSqdK:;this.$3q_0[a]=null},getTemplate:function(a){ULSqdK:;return this.$3q_0[a]},loadTemplates:function(c){ULSqdK:;for(var e=new CUI.DataNodeWrapper(c),d=CUI.DataNodeWrapper.getFirstChildNodeWithName(c,"RibbonTemplates"),b=CUI.DataNodeWrapper.getNodeChildren(d),a=0;a<b.length;a++)this.$D9_0(b[a])},$D9_0:function(c){ULSqdK:;var a=new CUI.DataNodeWrapper(c),b=a.get_attributes()["Id"],d=a.get_attributes()["Classname"];if(!CUI.ScriptUtility.isNullOrUndefined(this.$3q_0[b]))return;if(CUI.ScriptUtility.isNullOrUndefined(d))this.$3q_0[b]=new CUI.DeclarativeTemplate(c)}};CUI.RootUser=function(){};CUI.RootProperties=function(){};CUI.RootProperties.prototype={RootEventCommand:null,ImageDownArrow:null,ImageDownArrowClass:null,ImageDownArrowTop:null,ImageDownArrowLeft:null,ImageSideArrow:null,ImageSideArrowClass:null,ImageSideArrowTop:null,ImageSideArrowLeft:null,ImageUpArrow:null,ImageUpArrowClass:null,ImageUpArrowTop:null,ImageUpArrowLeft:null,TextDirection:null,ToolTipFooterText:null,ToolTipFooterImage16by16:null,ToolTipFooterImage16by16Class:null,ToolTipFooterImage16by16Top:null,ToolTipFooterImage16by16Left:null,ToolTipDisabledCommandImage16by16:null,ToolTipDisabledCommandImage16by16Class:null,ToolTipDisabledCommandImage16by16Top:null,ToolTipDisabledCommandImage16by16Left:null,ToolTipDisabledCommandDescription:null,ToolTipDisabledCommandTitle:null,ToolTipDisabledCommandHelpKey:null,ToolTipHelpCommand:null,ToolTipSelectedItemTitlePrefix:null};CUI.RootEventCommandProperties=function(){};CUI.RootEventCommandProperties.prototype={RootId:null,RootType:null};CUI.Root=function(b,a){ULSqdK:;this.$8f=Function.createDelegate(this,this.$DP_1);this.$8i=Function.createDelegate(this,this.$DS_1);this.$8j=Function.createDelegate(this,this.$DT_1);this.$8h=Function.createDelegate(this,this.$DR_1);this.$99=Function.createDelegate(this,this.onWindowScroll);this.$59=Function.createDelegate(this,this.$7Z_1);this.$8g=Function.createDelegate(this,this.$DQ_1);this.$2a_1=-1;this.$3m_1=-1;CUI.Root.initializeBase(this,[null,b,null,null]);this.initRootMember(this);this.$5_1=a;this.$k_1={};this.$9F_1={};this.$9E_1=0;this.$9k_1=0;if(!CUI.ScriptUtility.isNullOrUndefined(a.TextDirection))this._textDirection=a.TextDirection.toLowerCase()==="rtl"?1:0;this.$6k_1=this.$8g;this.$21_1=this.$59;$addHandler(document,"keydown",this.$6k_1);$addHandler(window,"unload",this.$21_1)};CUI.Root.$1L=function(a,b){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(a))return 0;return a[b]};CUI.Root.prototype={$k_1:null,$9F_1:null,$9E_1:0,$9k_1:0,$9d_1:false,$6X_1:null,$9U_1:null,_textDirection:0,$2S_1:null,$9P_1:true,get_initializing:function(){ULSqdK:;return this.$9P_1},get_$o:function(){ULSqdK:;return this.$6X_1},set_$o:function(a){ULSqdK:;if(!this.$1m_1)this.$6X_1=a;return a},get_$3z:function(){ULSqdK:;return this.$9U_1},set_$3z:function(a){ULSqdK:;if(!this.$1m_1){this.$9U_1=a;this.$6X_1=a}return a},$AA:function(){ULSqdK:;!CUI.ScriptUtility.isNullOrUndefined(this.get_$o())&&this.get_$o().$C7()},$Du:function(a){ULSqdK:;this.$9F_1[a.$6_0]=a},$L:function(){ULSqdK:;CUI.Root.callBaseMethod(this,"$L");this.$9P_1=false;if(!this.$9d_1){$addHandler(window,"scroll",this.$99);this.$9d_1=true}},$m:function(){ULSqdK:;CUI.Root.callBaseMethod(this,"$m");this._textDirection===1&&CUI.Utility.ensureCSSClassOnElement(this.get_$2(),"ms-cui-rtl")},setFocus:function(){ULSqdK:;var a=this.get_$o();if(CUI.ScriptUtility.isNullOrUndefined(a))return false;return a.$7o()},restoreFocus:function(){ULSqdK:;var a=this.get_$3z();if(CUI.ScriptUtility.isNullOrUndefined(a))return false;return a.$7o()},$BK_1:false,refresh:function(){ULSqdK:;!CUI.ScriptUtility.isNullOrUndefined(this.$23_1)&&this.$23_1.onRootRefreshed(this)},attach:function(){ULSqdK:;this.$36(true)},$3N_1:false,get_needScaling:function(){ULSqdK:;return this.$3N_1},set_needScaling:function(a){ULSqdK:;this.$3N_1=a;return a},$23_1:null,get_rootUser:function(){ULSqdK:;return this.$23_1},set_rootUser:function(a){ULSqdK:;this.$23_1=a;return a},$3O_1:null,get_$18:function(){ULSqdK:;return this.$3O_1},set_$18:function(a){ULSqdK:;this.$3O_1=a;return a},get_$4x:function(){ULSqdK:;return !CUI.ScriptUtility.isNullOrUndefined(this.$23_1)},$4w:function(a,b,c){ULSqdK:;return (this.$B1(a,b,c,false)&1)>0},$B1:function(d,c,e,f){ULSqdK:;var a=0,b=this.$23_1.isRootCommandEnabled(d,this);if(b)a=1;if(CUI.ScriptUtility.isNullOrUndefined(c)||!f&&!b)return a;if(this.$23_1.executeRootCommand(c,e,null,this))a|=2;return a},pollForStateAndUpdate:function(){ULSqdK:;this.$2P()},$2P:function(){ULSqdK:;this.set_$40(new Date);CUI.Root.callBaseMethod(this,"$2P");this.ensureGlobalDisablingRemoved()},ensureGlobalDisablingRemoved:function(){ULSqdK:;CUI.Utility.enableElement(this.get_$2())},get_element:function(){ULSqdK:;return this.get_$2()},get_cssClass:function(){ULSqdK:;return "ms-cui-disabled"},get_textDirection:function(){ULSqdK:;return this._textDirection},$27:function(){ULSqdK:;return this.$9k_1++},$A7:function(a,b,c,d,e,f){ULSqdK:;return new CUI.MenuSection(this,a,b,c,d,e,f)},$A6:function(a,b,c,d){ULSqdK:;return new CUI.Menu(this,a,b,c,d)},$CI:function(a,b,c,d){ULSqdK:;return new CUI.Gallery(this,a,b,c,d)},$CH:function(a,b,c){ULSqdK:;return new CUI.ControlComponent(this,a,b,c)},$3w:function(a,b,c){ULSqdK:;return new CUI.MenuItem(this,a,b,c)},$CF:function(a,b,c,d){ULSqdK:;return new CUI.CommandEventArgs(a,b,c,d)},$Ck:function(a){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(a.$6_1))return;a.$6s_1=this.$Cy();var b=a.get_commandInfo();b.CommandId=a.$6_1;b.RootId=this.$6_0;b.RootType=this.get_rootType();!CUI.ScriptUtility.isNullOrUndefined(this.$23_1)&&this.$23_1.executeRootCommand(a.$6_1,a.$2z_1,b,this)},$1e:function(a){ULSqdK:;this.$Ck(a);return true},get_rootType:function(){ULSqdK:;return "Root"},$Cy:function(){ULSqdK:;return this.$9E_1++},$W_1:null,$BX:function(a){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$W_1))this.$W_1=[];Array.add(this.$W_1,a)},$69_1:false,$2e:function(c){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$W_1))return;this.$69_1=true;for(var b=Array.indexOf(this.$W_1,c),a=this.$W_1.length-1;a>=b;a--){this.$W_1[a].$4o();Array.removeAt(this.$W_1,a)}this.$69_1=false},$4n:function(){ULSqdK:;if(this.$69_1||CUI.ScriptUtility.isNullOrUndefined(this.$W_1))return;for(var a=this.$W_1.length-1;a>=0;a--){this.$W_1[a].$4o();Array.removeAt(this.$W_1,a)}},$33_1:null,$2f:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$33_1))return;this.$33_1.$X()},$2d_1:0,$3s_1:null,get_$7t:function(){ULSqdK:;if(Sys.Browser.agent===Sys.Browser.InternetExplorer&&CUI.ScriptUtility.isNullOrUndefined(this.$3s_1)){this.$3s_1=CUI.Utility.$A4();this.$3s_1.className="ms-cui-tooltip-backFrame";this.$3s_1.style.visibility="hidden";document.body.appendChild(this.$3s_1)}return this.$3s_1},$1m_1:false,$1C_1:null,$2K_1:null,$1r_1:null,$Be:function(b){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$2K_1))this.$2K_1=[];Array.add(this.$2K_1,b);this.$1r_1=b;if(this.$1m_1)return false;var a=this.get_$Al_1();a.style.visibility="hidden";document.body.appendChild(a);a.style.visibility="visible";this.$1m_1=true;return true},$CZ:function(a){ULSqdK:;if(a!==this.$1r_1)return;if(!this.$1m_1)throw Error.create("Cannot end modal mode because the Ribbon is not in Modal Mode");Array.removeAt(this.$2K_1,this.$2K_1.length-1);this.$1r_1=null;if(this.$2K_1.length>0)this.$1r_1=this.$2K_1[this.$2K_1.length-1];CUI.ScriptUtility.isNullOrUndefined(this.$1r_1)&&this.$Cb_1()},$Cb_1:function(){ULSqdK:;if(!this.$1m_1)return;if(!this.$2K_1.length){document.body.removeChild(this.get_$Al_1());this.$1m_1=false;if(Sys.Browser.agent===Sys.Browser.InternetExplorer){$clearHandlers(this.$1C_1);this.$1C_1=null}}},get_$Al_1:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$1C_1)){this.$1C_1=CUI.Utility.$3("div");if(Sys.Browser.agent===Sys.Browser.InternetExplorer)this.$1C_1.className="ms-cui-modalDiv-ie";else this.$1C_1.className="ms-cui-modalDiv-ff";CUI.Utility.$29(this.$1C_1,true,false);$addHandler(this.$1C_1,"click",this.$8h);$addHandler(this.$1C_1,"mouseover",this.$8j);$addHandler(this.$1C_1,"mouseout",this.$8i);$addHandler(this.$1C_1,"contextmenu",this.$8f)}return this.$1C_1},$6k_1:null,$21_1:null,$DP_1:function(a){ULSqdK:;this.$1r_1.onModalContextMenu(a)},$DR_1:function(a){ULSqdK:;this.$1r_1.onModalBodyClick(a)},$DT_1:function(a){ULSqdK:;this.$1r_1.onModalBodyMouseOver(a)},$DS_1:function(a){ULSqdK:;this.$1r_1.onModalBodyMouseOut(a)},$DQ_1:function(a){ULSqdK:;if(!this.$1m_1)return;this.$1r_1.onModalKeyPress(a)},onWindowScroll:function(){ULSqdK:;this.$4n();this.$2f()},$Cp:function(){ULSqdK:;this.$AA()},$7Z_1:function(){ULSqdK:;this.dispose()},dispose:function(){ULSqdK:;this.$6J_1=true;!CUI.ScriptUtility.isNullOrUndefined(this.get_$2())&&this.$BK_1&&$removeHandler(this.get_$2(),"contextmenu",CUI.Utility.get_returnFalseHandler());try{$removeHandler(document,"keydown",this.$6k_1)}catch(a){}$removeHandler(window,"unload",this.$21_1);!CUI.ScriptUtility.isNullOrUndefined(this.$1C_1)&&$clearHandlers(this.$1C_1);this.$1C_1=null;this.$23_1=null;this.$3O_1=null;CUI.Root.callBaseMethod(this,"dispose")},$6J_1:false,get_$CU:function(){ULSqdK:;return this.$6J_1},set_$CU:function(a){ULSqdK:;this.$6J_1=a;return a},get_$EM:function(){ULSqdK:;if(this._componentWidth===-1&&!CUI.ScriptUtility.isNullOrUndefined(this.get_$2()))this._componentWidth=this.get_$2().offsetWidth;return this._componentWidth},get_$77:function(){ULSqdK:;if(this._componentHeight===-1&&!CUI.ScriptUtility.isNullOrUndefined(this.get_$2()))this._componentHeight=this.get_$2().offsetHeight;return this._componentHeight},get_$4p:function(){ULSqdK:;if(this._componentTopPosition===-1&&!CUI.ScriptUtility.isNullOrUndefined(this.get_$2()))this._componentTopPosition=CUI.UIUtility.calculateOffsetTop(this.get_$2());return this._componentTopPosition},get_$EN:function(){ULSqdK:;if(this._componentLeftPosition===-1&&!CUI.ScriptUtility.isNullOrUndefined(this.get_$2()))this._componentLeftPosition=CUI.UIUtility.calculateOffsetLeft(this.get_$2());return this._componentLeftPosition},$5G_1:"",get_cookieDataVersion:function(){ULSqdK:;return this.$5G_1},set_cookieDataVersion:function(a){ULSqdK:;this.$5G_1=a;return a},$3u_1:false,get_useDataCookie:function(){ULSqdK:;return this.$3u_1},set_useDataCookie:function(a){ULSqdK:;this.$3u_1=a;return a},storeDataCookie:function(c,b){ULSqdK:;var a=new Date;a.setTime(a.getTime()+6.048e8);document.cookie=c+"="+this.$5G_1+b+"; expires="+a.toDateString()+"; path=/"},getDataCookieValue:function(a){ULSqdK:;a=this.$5G_1+a;for(var d=document.cookie.split(";"),c=0;c<d.length;c++){var b=d[c].trimStart();if(b.startsWith(a))if(b.startsWith(a+"="))return b.substring(a.length+1,b.length)}return null},$5_1:null,$2v_1:false,$Dn:function(a,b){ULSqdK:;this.$BI_1(a,b,false)},$Do:function(a,b){ULSqdK:;this.$BI_1(a,b,true)},$BI_1:function(a,b,d){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(a)||CUI.ScriptUtility.isNullOrUndefined(b))return;a.style.top="0px";a.style.left="0px";var c=this.$7K(a,b);this.$7m(a,c,d)},$7m:function(a,e,t){ULSqdK:;var c=false;if(CUI.ScriptUtility.isNullOrUndefined(a)||CUI.ScriptUtility.isNullOrUndefined(e))return;var b,f,i=CUI.Root.$1L(e,"launcherLeft"),n=CUI.Root.$1L(e,"launcherTop"),j=CUI.Root.$1L(e,"launcherWidth"),y=CUI.Root.$1L(e,"launcherHeight"),d=CUI.Root.$1L(e,"flyOutWidth"),A=CUI.Root.$1L(e,"flyOutHeight"),p=CUI.Root.$1L(e,"flyOutRealHeight"),k=CUI.Root.$1L(e,"viewportWidth"),u=CUI.Root.$1L(e,"viewportHeight"),g=CUI.Root.$1L(e,"viewableLeft"),l=CUI.Root.$1L(e,"viewableTop"),h=!this.$0_0._textDirection,q=false,r=false,v=a.getAttribute("mscui:scrollable"),m=!CUI.ScriptUtility.isNullOrUndefined(v)&&v==="true";if(t){if(h){b=i+j;b+=2}else b=i-d;f=n}else{if(h)b=i;else b=i+j-d;f=n+y;var s=j>=2?j-2:j;if(s>d)d=s;a.style.minWidth=s+"px"}if(this.$2v_1){f+=l;b+=g}a.style.top=f+"px";a.style.left=b+"px";if(d<=k)if(b+d>g+k){if(t&&h&&i-d>g)b=i-d;else{b=g+k-d-5;q=true}c=true}else if(b<g){if(t&&!h&&i+j+d<g+k)b=i+j;else{b=g+5;r=true}c=true}else c=false;else if(h){b=g;c=true}else{b=g+k-d;c=true}if(c){a.style.left=b+"px";c=false}if(f+p>l+u){var z=f,w=l+u-f;f=n-p;if(this.$2v_1)f+=l;var o=n;if(!this.$2v_1)o-=l;c=true;if(o<p){var x=d+22;if(o<w){f=z;a.style.maxHeight=w-5+"px";if(!m){a.style.overflowY="scroll";a.style.width=x+"px"}if(q&&h){b-=27;a.style.left=b+"px"}else if(r&&!h){b+=27;a.style.left=b+"px"}c=false}else{a.style.maxHeight=o-5+"px";if(!m){a.style.overflowY="scroll";a.style.width=x+"px"}if(q&&h){b-=27;a.style.left=b+"px"}else if(r&&!h){b+=27;a.style.left=b+"px"}}!m&&a.setAttribute("mscui:scrollable","true")}else if(m){a.style.maxHeight="none";a.style.overflowY="visible";a.style.width="auto";a.setAttribute("mscui:scrollable","false")}}else{if(m){a.style.maxHeight="none";a.style.overflowY="visible";a.style.width="auto";a.setAttribute("mscui:scrollable","false")}c=false}if(c){a.style.top=f+"px";c=false}},$7K:function(g,b){ULSqdK:;var a={};if(CUI.ScriptUtility.isNullOrUndefined(g)||CUI.ScriptUtility.isNullOrUndefined(b))return a;a["launcherWidth"]=b.offsetWidth;a["launcherHeight"]=b.offsetHeight;var d=b.offsetTop,e=b.offsetLeft;if(!CUI.ScriptUtility.isNullOrUndefined(b.offsetParent))for(var f=b.offsetParent;!CUI.ScriptUtility.isNullOrUndefined(f);f=f.offsetParent){d+=f.offsetTop;e+=f.offsetLeft}else{d=b.offsetTop;e=b.offsetLeft}if(!CUI.ScriptUtility.isNullOrUndefined(b.parentNode)){for(var i=0,h=0,c=b.parentNode;!CUI.ScriptUtility.isNullOrUndefined(c);c=c.parentNode){if(c.scrollTop>0)i+=c.scrollTop;if(c.scrollLeft>0)if(c===document.documentElement&&CUI.Utility.$3B()&&this.$0_0._textDirection===1)h+=document.body.scrollLeft;else h+=c.scrollLeft}if(d>=i)d-=i;if(e>=h)e-=h}a["launcherTop"]=d;a["launcherLeft"]=e;if(g){a["flyOutWidth"]=g.offsetWidth;a["flyOutHeight"]=g.offsetHeight;a["flyOutRealHeight"]=g.scrollHeight;a["viewportWidth"]=CUI.Utility.$38();a["viewportHeight"]=CUI.Utility.$3y();if(CUI.ScriptUtility.isNullOrUndefined(a["viewportWidth"])){a["viewportWidth"]=document.documentElement.clientWidth;a["viewportHeight"]=document.documentElement.clientHeight}if(CUI.ScriptUtility.isNullOrUndefined(a["viewportWidth"])){a["viewportWidth"]=document.body.clientWidth;a["viewportHeight"]=document.body.clientHeight}a["viewableTop"]=document.documentElement.scrollTop;a["viewableLeft"]=document.documentElement.scrollLeft;if(CUI.ScriptUtility.isNullOrUndefined(a["viewableTop"])){a["viewableTop"]=window.pageYOffset;a["viewableLeft"]=window.pageXOffset}if(CUI.ScriptUtility.isNullOrUndefined(a["viewableTop"])){a["viewableTop"]=document.body.scrollTop;a["viewableLeft"]=document.body.scrollLeft}if(CUI.Utility.$3B()&&this.$0_0._textDirection===1)a["viewableLeft"]=document.body.scrollLeft}return a}};CUI.ButtonDock=function(b,c,a){ULSqdK:;CUI.ButtonDock.initializeBase(this,[b,c,"",""]);this.$1N_1=a.Alignment};CUI.ButtonDock.prototype={$1N_1:null,$L:function(){ULSqdK:;this.ensureDOMElementAndEmpty();this.appendChildrenToElement(this.get_$2());CUI.ButtonDock.callBaseMethod(this,"$L")},appendChildrenToElement:function(c){ULSqdK:;var b=this.$4_0.getEnumerator();while(b.moveNext()){var a=b.get_current();a.$m();switch(this.$1N_1){case "Left":CUI.Utility.ensureCSSClassOnElement(a.get_$2(),"ms-cui-toolbar-button-left");break;case "Center":CUI.Utility.ensureCSSClassOnElement(a.get_$2(),"ms-cui-toolbar-button-center");break;case "Right":CUI.Utility.ensureCSSClassOnElement(a.get_$2(),"ms-cui-toolbar-button-right");break;default:throw Error.argumentOutOfRange(this.$1N_1)}c.appendChild(a.get_$2());a.$2O()}},ensureCorrectChildType:function(a){ULSqdK:;if(!CUI.ControlComponent.isInstanceOfType(a))throw Error.create("Only children of type ControlComponent can be added to a ButtonDock.")},get_cssClass:function(){ULSqdK:;switch(this.$1N_1){case "Left":return "ms-cui-toolbar-buttondock alignleft";case "Center":return "ms-cui-toolbar-buttondock aligncenter";case "Right":return "ms-cui-toolbar-buttondock alignright";default:throw Error.argumentOutOfRange(this.$1N_1)}},get_visibleInDOM:function(){ULSqdK:;return true},get_alignment:function(){ULSqdK:;return this.$1N_1}};CUI.Toolbar=function(d,a,c,b){ULSqdK:;CUI.Toolbar.initializeBase(this,[d,a]);this.$3O_2=c;this.$4W_2=b};CUI.Toolbar.prototype={$4U_2:null,$e_2:null,$f_2:null,$p_2:null,$t_2:null,$u_2:null,$3O_2:null,$4W_2:false,_jewel:null,get_jewel:function(){ULSqdK:;return this._jewel},set_jewel:function(a){ULSqdK:;this._jewel=a;return a},refresh:function(){ULSqdK:;this.$L();CUI.Toolbar.callBaseMethod(this,"$L")},$L:function(){ULSqdK:;var a=this.$5_1,b=!CUI.ScriptUtility.isNullOrUndefined(a.Size)||a.Size==="TwoRow";CUI.ScriptUtility.isNullOrUndefined(this.get_$2())&&this.createToolbarStructure(b);this.set_$2(CUI.Utility.removeChildNodes(this.get_$2()));if(b){this.get_$2().appendChild(this.$4U_2);this.appendChildrenToElement(this.$f_2)}else{this.$4W_2&&this.get_$2().appendChild(this.$p_2);this.appendChildrenToElement(this.get_$2())}this.$g_0=false},createToolbarStructure:function(a){ULSqdK:;if(this.$4W_2){this.$p_2=CUI.Utility.$3("div");this.$p_2.id="jewelcontainer";this.$p_2.className="ms-cui-jewel-container";this.$p_2.style.display="none"}if(a){this.$e_2=CUI.Utility.$3("div");this.$e_2.className="ms-cui-topBar1";this.$e_2.style.display="none";this.$f_2=CUI.Utility.$3("div");this.$f_2.className="ms-cui-topBar2";this.$4W_2&&this.$f_2.appendChild(this.$p_2);this.$4U_2=CUI.Utility.$3("div");this.$4U_2.className="ms-cui-ribbonTopBars";this.$4U_2.appendChild(this.$e_2);this.$4U_2.appendChild(this.$f_2);this.$t_2=$get(this.$2S_1+"-QATRowCenter");this.$u_2=$get(this.$2S_1+"-QATRowRight");if(!CUI.ScriptUtility.isNullOrUndefined(this.$t_2)){this.$t_2.parentNode.removeChild(this.$t_2);this.$e_2.appendChild(this.$t_2);this.$t_2.style.display="inline-block";this.$e_2.style.display="block";CUI.Utility.$29(this.$t_2,true,false)}if(!CUI.ScriptUtility.isNullOrUndefined(this.$u_2)){this.$u_2.parentNode.removeChild(this.$u_2);this.$e_2.appendChild(this.$u_2);this.$u_2.style.display="inline-block";this.$e_2.style.display="block";CUI.Utility.$29(this.$u_2,true,false)}}this.$m()},$2P:function(){ULSqdK:;this._jewel&&this._jewel.pollForStateAndUpdate();CUI.Toolbar.callBaseMethod(this,"$2P")},ensureGlobalDisablingRemoved:function(){ULSqdK:;CUI.Toolbar.callBaseMethod(this,"ensureGlobalDisablingRemoved");this._jewel&&this._jewel.set_enabled(true)},ensureCorrectChildType:function(b){ULSqdK:;if(!CUI.ButtonDock.isInstanceOfType(b))throw Error.create("Only children of type ButtonDock can be added to a Toolbar");var c=b;if(c.$1N_1==="Center"){var a=this.$4_0.getEnumerator();while(a.moveNext()){var d=a.get_current();if(d.$1N_1==="Center")throw Error.create("Can't add a centered buttondock because one is already present.")}}},get_cssClass:function(){ULSqdK:;return "ms-cui-toolbar-toolbar "+CUI.Toolbar.callBaseMethod(this,"get_cssClass")},get_domElementTagName:function(){ULSqdK:;return "div"},get_rootType:function(){ULSqdK:;return "Toolbar"},get_$EF:function(){ULSqdK:;return this.get_$18()},set_$EF:function(a){ULSqdK:;this.set_$18(a);return a},$CE:function(c){ULSqdK:;var a=c.attrs,b=new CUI.ButtonDock(this.$0_0,a.Id,a);return b},$Bc:function(d){ULSqdK:;if(!this.$4W_2)return;this.$p_2.style.display="block";var e=new CUI.DataNodeWrapper(d),a=new CUI.JewelBuildContext;a.jewelId=e.get_attributes()["Id"];var b=new CUI.JewelBuildOptions;b.trimmedIds=this.$3O_2.$s_0.trimmedIds;var c=new CUI.JewelBuilder(b,this.$p_2,this.$3O_2.$1Q_0);c.$Bp(d,a);this._jewel=c.get_jewel()},$m:function(){ULSqdK:;CUI.Toolbar.callBaseMethod(this,"$m");this.get_$2().setAttribute("role","toolbar")},setFocusOnJewel:function(){ULSqdK:;this._jewel&&this._jewel.$Cq()}};CUI.ToolbarBuildContext=function(){ULSqdK:;CUI.ToolbarBuildContext.initializeBase(this)};CUI.ToolbarBuildContext.prototype={toolbar:null};CUI.ToolbarBuildOptions=function(){ULSqdK:;CUI.ToolbarBuildOptions.initializeBase(this)};CUI.ToolbarBuilder=function(c,a,b){ULSqdK:;this.$8x=Function.createDelegate(this,this.$Da_1);CUI.ToolbarBuilder.initializeBase(this,[c,a,b]);if(CUI.ScriptUtility.isNullOrUndefined(a))throw Error.create("Toolbar placeholder DOM element is null or undefined.")};CUI.ToolbarBuilder.prototype={get_toolbar:function(){ULSqdK:;return this.$0_0},set_toolbar:function(a){ULSqdK:;this.$0_0=a;return a},buildToolbar:function(){ULSqdK:;var b=new CUI.ToolbarBuildContext,a=new CUI.DataQuery;a.id="toolbar";a.queryType=1;a.handler=this.$8x;a.data=b;this.$12_0.runQuery(a)},$Da_1:function(a){ULSqdK:;var e=a.contextData;a.queryData=this.applyDataExtensions(a.queryData);this.set_toolbar(this.$C4_1(a.queryData,e));this.get_toolbar().set_$EF(this);this.$1Q_0.onComponentCreated(this.get_toolbar(),this.get_toolbar().$6_0);this.get_toolbar().$L();this._elmPlaceholder.appendChild(this.get_toolbar().get_$2());var d=this.get_toolbar().$4_0.getEnumerator();while(d.moveNext()){var b=d.get_current();if(b.$1N_1==="Left"){var c=$get("jewelcontainer");if(c)if(!this.get_toolbar()._textDirection)b.get_$2().style.left=c.offsetWidth+"px";else b.get_$2().style.right=c.offsetWidth+"px";break}}CUI.Utility.ensureCSSClassOnElement(this._elmPlaceholder,"loaded");this.$1Q_0.onComponentBuilt(this.get_toolbar(),this.get_toolbar().$6_0)},$C4_1:function(c,h){ULSqdK:;var d=CUI.DataNodeWrapper.getFirstChildNodeWithName(c,"Toolbar");if(CUI.ScriptUtility.isNullOrUndefined(d))throw Error.create("No toolbar element was present in the data");var a=new CUI.DataNodeWrapper(d),e=null!==CUI.DataNodeWrapper.getFirstChildNodeWithName(c,"Jewel");this.set_toolbar(new CUI.Toolbar(a.get_attributes()["Id"],a.get_attributes(),this,e));this.get_toolbar().$2S_1=this.$s_0.clientID;this.get_toolbar().$3u_1=true;this.get_toolbar().$L();e&&this.get_toolbar().$Bc(c);for(var f=CUI.DataNodeWrapper.getNodeChildren(CUI.DataNodeWrapper.getFirstChildNodeWithName(a.$a_0,"ButtonDocks")),b=0;b<f.length;b++){var g=this.$Bg_1(f[b],h);this.get_toolbar().addChild(g)}return this.get_toolbar()},$Bg_1:function(c,e){ULSqdK:;for(var h=new CUI.DataNodeWrapper(c),d=this.get_toolbar().$CE(c,e),f=CUI.DataNodeWrapper.getFirstChildNodeWithName(c,"Controls"),b=CUI.DataNodeWrapper.getNodeChildren(f),a=0;a<b.length;a++){if(this.isNodeTrimmed(b[a]))continue;var g=this.$C3_1(b[a],e);d.addChild(g)}return d},$C3_1:function(c,d){ULSqdK:;var a=null,e=new CUI.DataNodeWrapper(c),f=e.get_name(),b=e.get_attributes()["DisplayMode"];switch(f){case "Button":a=this.$1d(c,d);return a.createComponentForDisplayMode(CUI.ScriptUtility.isNullOrEmptyString(b)?"Small":b);case "CheckBox":a=this.$1d(c,d);return a.createComponentForDisplayMode(CUI.ScriptUtility.isNullOrEmptyString(b)?"Small":b);case "ComboBox":a=this.$1d(c,d);return a.createComponentForDisplayMode("Medium");case "FlyoutAnchor":a=this.$1d(c,d);return a.createComponentForDisplayMode(CUI.ScriptUtility.isNullOrEmptyString(b)?"Medium":b);case "Label":a=this.$1d(c,d);return a.createComponentForDisplayMode(CUI.ScriptUtility.isNullOrEmptyString(b)?"Small":b);case "Separator":a=this.$1d(c,d);return a.createComponentForDisplayMode("Small");case "TextBox":a=this.$1d(c,d);return a.createComponentForDisplayMode(CUI.ScriptUtility.isNullOrEmptyString(b)?"Medium":b);case "ToggleButton":a=this.$1d(c,d);return a.createComponentForDisplayMode(CUI.ScriptUtility.isNullOrEmptyString(b)?"Small":b);default:throw Error.create("Invalid control type.")}}};CUI.ToolTip=function(d,e,c,b,a){ULSqdK:;this.$1G=Function.createDelegate(this,this.$DB);CUI.ToolTip.initializeBase(this,[d,e,c,b]);this.$5_1=a;if(!CUI.ScriptUtility.isNullOrEmptyString(a.ToolTipShortcutKey))if(!this.$0_0._textDirection)this.$1R_0=String.format("{0} ({1})",this.get_title(),this.$5_1.ToolTipShortcutKey);else this.$1R_0=String.format("({1}) {0}",this.get_title(),this.$5_1.ToolTipShortcutKey)};CUI.ToolTip.prototype={$b_1:null,$Q_1:null,$D_1:null,$1V_1:null,$5M_1:null,$4J_1:null,$5T_1:null,$2p_1:null,$6K_1:null,$5O_1:null,$2V_1:null,$4K_1:null,$2C_1:null,$6L_1:null,$4L_1:null,$4M_1:null,$6u_1:null,$6v_1:null,$9h_1:null,$9i_1:null,$9j_1:null,$5_1:null,$1B_1:null,$L:function(){ULSqdK:;this.get_needsDelayIniting()&&this.doDelayedInit();this.ensureDOMElementAndEmpty();this.get_$2().setAttribute("role","tooltip");this.get_$2().setAttribute("aria-hidden","true");if(CUI.ScriptUtility.isNullOrUndefined(this.$b_1)){this.$b_1=CUI.Utility.$3("div");this.$b_1.className="ms-cui-tooltip-body"}else this.$b_1=CUI.Utility.removeChildNodes(this.$b_1);this.get_$2().appendChild(this.$b_1);if(CUI.ScriptUtility.isNullOrUndefined(this.$Q_1)){this.$Q_1=CUI.Utility.$3("div");this.$Q_1.className="ms-cui-tooltip-glow";this.$b_1.appendChild(this.$Q_1)}else this.$Q_1=CUI.Utility.removeChildNodes(this.$Q_1);if(CUI.ScriptUtility.isNullOrUndefined(this.$D_1)){this.$D_1=CUI.Utility.$3("h1");if(this.$1R_0.length>100)CUI.UIUtility.setInnerText(this.$D_1,this.$1R_0.substr(0,100));else CUI.UIUtility.setInnerText(this.$D_1,this.get_title());this.$Q_1.appendChild(this.$D_1)}if(CUI.ScriptUtility.isNullOrUndefined(this.$5M_1)&&!CUI.ScriptUtility.isNullOrEmptyString(this.$5_1.ToolTipImage32by32)){this.$5M_1=CUI.Utility.$3("img");this.$4J_1=CUI.Utility.$j(2,4,this.$5_1.ToolTipImage32by32,this.$5_1.ToolTipImage32by32Class,this.$5M_1,true,false,this.$5_1.ToolTipImage32by32Top,this.$5_1.ToolTipImage32by32Left);this.$4J_1.className=this.$4J_1.className+" ms-cui-tooltip-bitmap ";this.$Q_1.appendChild(this.$4J_1)}var b=this.$5_1.ToolTipSelectedItemTitle,a=this.get_description();if(CUI.ScriptUtility.isNullOrUndefined(this.$1V_1)&&(!CUI.ScriptUtility.isNullOrEmptyString(a)||!CUI.ScriptUtility.isNullOrEmptyString(b))){this.$1V_1=CUI.Utility.$3("div");this.$1V_1.className="ms-cui-tooltip-description";if(!CUI.ScriptUtility.isNullOrUndefined(this.$5_1.ToolTipImage32by32))this.$1V_1.style.width="80%";this.$Q_1.appendChild(this.$1V_1);var c=this.$0_0.$5_1.ToolTipSelectedItemTitlePrefix;if(!CUI.ScriptUtility.isNullOrEmptyString(b)&&!CUI.ScriptUtility.isNullOrEmptyString(c)){var d=String.format(c,b);this.$5T_1=CUI.Utility.$3("p");CUI.Utility.$2k(this.$5T_1,d);this.$1V_1.appendChild(this.$5T_1);this.$9j_1=CUI.Utility.$3("br");this.$1V_1.appendChild(this.$9j_1)}if(!CUI.ScriptUtility.isNullOrEmptyString(a))if(a.length>512)this.$1V_1.innerHTML=this.$1V_1.innerHTML+CUI.Utility.$Ad(a.substr(0,512),true);else this.$1V_1.innerHTML=this.$1V_1.innerHTML+CUI.Utility.$Ad(a,true)}if(CUI.ScriptUtility.isNullOrUndefined(this.$2p_1)&&!CUI.ScriptUtility.isNullOrUndefined(this.$1B_1)&&!CUI.ScriptUtility.isNullOrEmptyString(this.$1B_1.Title)){this.$6u_1=CUI.Utility.$3("div");this.$6u_1.className="ms-cui-tooltip-clear";this.$Q_1.appendChild(this.$6u_1);this.$9h_1=CUI.Utility.$3("hr");this.$Q_1.appendChild(this.$9h_1);this.$2V_1=CUI.Utility.$3("div");this.$2V_1.className="ms-cui-tooltip-footer";this.$Q_1.appendChild(this.$2V_1);this.$4K_1=CUI.Utility.$3("div");CUI.Utility.$2k(this.$4K_1,this.$1B_1.Title);this.$6K_1=CUI.Utility.$3("img");this.$5O_1=CUI.Utility.$j(2,3,this.$1B_1.Icon,this.$1B_1.IconClass,this.$6K_1,true,false,this.$1B_1.IconTop,this.$1B_1.IconLeft);this.$5O_1.style.verticalAlign="top";if(!this.$0_0._textDirection){this.$2V_1.appendChild(this.$5O_1);this.$2V_1.appendChild(this.$4K_1)}else{this.$2V_1.appendChild(this.$4K_1);this.$2V_1.appendChild(this.$5O_1)}if(!CUI.ScriptUtility.isNullOrUndefined(this.$1B_1.Description)){this.$2p_1=CUI.Utility.$3("div");this.$2p_1.className="ms-cui-tooltip-description";this.$2p_1.style.width="90%";CUI.Utility.$2k(this.$2p_1,this.$1B_1.Description);this.$Q_1.appendChild(this.$2p_1)}}if(CUI.ScriptUtility.isNullOrUndefined(this.$2C_1)&&!CUI.ScriptUtility.isNullOrUndefined(this.$0_0.$5_1.ToolTipFooterImage16by16)&&!CUI.ScriptUtility.isNullOrUndefined(this.$0_0.$5_1.ToolTipFooterText)&&(!CUI.ScriptUtility.isNullOrUndefined(this.$1B_1)&&!CUI.ScriptUtility.isNullOrEmptyString(this.$1B_1.HelpKeyWord)||!CUI.ScriptUtility.isNullOrEmptyString(this.$5_1.ToolTipHelpKeyWord))){this.$6v_1=CUI.Utility.$3("div");this.$6v_1.className="ms-cui-tooltip-clear";this.$Q_1.appendChild(this.$6v_1);this.$9i_1=CUI.Utility.$3("hr");this.$Q_1.appendChild(this.$9i_1);this.$2C_1=CUI.Utility.$3("div");this.$2C_1.className="ms-cui-tooltip-footer";this.$Q_1.appendChild(this.$2C_1);this.$4M_1=CUI.Utility.$3("div");CUI.Utility.$2k(this.$4M_1,this.$0_0.$5_1.ToolTipFooterText);this.$6L_1=CUI.Utility.$3("img");this.$4L_1=CUI.Utility.$j(2,3,this.$0_0.$5_1.ToolTipFooterImage16by16,this.$0_0.$5_1.ToolTipFooterImage16by16Class,this.$6L_1,true,false,this.$0_0.$5_1.ToolTipFooterImage16by16Top,this.$0_0.$5_1.ToolTipFooterImage16by16Left);this.$4L_1.style.verticalAlign="top";if(!this.$0_0._textDirection){this.$2C_1.appendChild(this.$4L_1);this.$2C_1.appendChild(this.$4M_1)}else{this.$2C_1.appendChild(this.$4M_1);this.$2C_1.appendChild(this.$4L_1)}}this.appendChildrenToElement(this.$b_1);CUI.ToolTip.callBaseMethod(this,"$L")},$CT:function(){ULSqdK:;this.$L();this.get_$2().style.visibility="hidden";this.get_$2().style.position="absolute";this.get_$2().style.top="0px";this.get_$2().style.left="0px";document.body.appendChild(this.get_$2());this.$Dp();if(Sys.Browser.agent===Sys.Browser.InternetExplorer){CUI.Utility.$B3(this.$0_0.get_$7t(),this.get_$2());this.$0_0.get_$7t().style.visibility="visible"}this.get_$2().style.visibility="visible";this.set_visible(true);this.get_$2().setAttribute("aria-hidden","false");return true},$Aa:function(){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(this.get_$2())){this.get_$2().style.visibility="hidden";this.get_$2().setAttribute("aria-hidden","true")}if(Sys.Browser.agent===Sys.Browser.InternetExplorer)this.$0_0.get_$7t().style.visibility="hidden";this.set_visible(false)},get_cssClass:function(){ULSqdK:;return "ms-cui-tooltip"},get_innerDiv:function(){ULSqdK:;return this.$Q_1},set_innerDiv:function(a){ULSqdK:;this.$Q_1=a;return a},$Dp:function(){ULSqdK:;var b=this.get_$2(),c=this.$K_0.get_$2();if(CUI.ScriptUtility.isNullOrUndefined(b)||CUI.ScriptUtility.isNullOrUndefined(c))return;b.style.top="0px";b.style.left="0px";var a=this.$0_0.$7K(b,c),f=CUI.Root.$1L(a,"flyOutWidth");if(this.$K_0.get_$4p()>this.$0_0.get_$4p()&&this.$K_0.get_$4p()+this.$K_0.get_$77()<this.$0_0.get_$4p()+this.$0_0.get_$77()){a["launcherTop"]=this.$0_0.get_$4p();a["launcherHeight"]=this.$0_0.get_$77()}else{var d=CUI.Root.$1L(a,"launcherLeft"),e=CUI.Root.$1L(a,"launcherTop");d+=30;e+=10;a["launcherLeft"]=d;a["launcherTop"]=e}this.$0_0.$7m(b,a,false);b.style.minWidth=f+"px"},$DB:function(){ULSqdK:;this.$0_0&&this.$0_0.$2f()},$Ar:function(a){ULSqdK:;if(a)if(a.rawEvent){var d=113,e=123;if(a.rawEvent.keyCode===d||a.rawEvent.keyCode===e){var b=null;if(!CUI.ScriptUtility.isNullOrUndefined(this.$5_1.ToolTipHelpKeyWord))b=this.$5_1.ToolTipHelpKeyWord;if(!CUI.ScriptUtility.isNullOrUndefined(this.$1B_1)&&!CUI.ScriptUtility.isNullOrEmptyString(this.$1B_1.HelpKeyWord))b=this.$1B_1.HelpKeyWord;if(!CUI.ScriptUtility.isNullOrUndefined(b)){var c={};c["HelpKeyword"]=b;!CUI.ScriptUtility.isNullOrUndefined(this.$0_0.$5_1.ToolTipHelpCommand)&&this.raiseCommandEvent(this.$0_0.$5_1.ToolTipHelpCommand,1,c)}a.preventDefault();a.stopPropagation();a.rawEvent.cancelBubble=true;a.rawEvent.returnValue=false}else this.$0_0.$2f()}},dispose:function(){ULSqdK:;CUI.ToolTip.callBaseMethod(this,"dispose");this.$b_1=null;this.$1V_1=null;this.$5M_1=null;this.$4J_1=null;this.$2p_1=null;this.$6K_1=null;this.$2V_1=null;this.$4K_1=null;this.$2C_1=null;this.$6L_1=null;this.$4L_1=null;this.$4M_1=null;this.$Q_1=null;this.$D_1=null;this.$5T_1=null}};CUI.Unit=function(c,a,f,e,b,d){ULSqdK:;this.$5Z_0=c;this.$5C_0=a;this.$4d_0=f;this.$4b_0=e;this.$6F_0=b;this.$6x_0=d};CUI.Unit.prototype={$5Z_0:null,$5C_0:null,$4d_0:0,$4b_0:0,$6F_0:0,$6x_0:0,$78:function(b){ULSqdK:;if(!b)return false;for(var a=0;a<this.$5C_0.length;a++)if(this.$5C_0[a].toLowerCase()===b.toLowerCase())return true;return false},$EK:function(a){ULSqdK:;if(typeof a!=="number")return CUI.Unit.$7V;if(a<this.$4d_0)return 2;if(a>this.$4b_0)return 3;var b=a.toString(),c=b.indexOf(".");if(c>-1){var d=b.substr(c+1);if(d.length>this.$6F_0)return 1}return 0},get_$5m:function(){ULSqdK:;return this.$5C_0[0]}};CUI.Utility=function(){};CUI.Utility.removeChildNodes=function(a){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(a))return null;var c=a.parentNode;if(c){var d=a.cloneNode(false);c.replaceChild(d,a);return d}else{var b=a.firstChild,e;while(b){e=b.nextSibling;a.removeChild(b);b=e}return a}};CUI.Utility.removeChildNodesSlow=function(a){ULSqdK:;while(a.hasChildNodes())a.removeChild(a.firstChild)};CUI.Utility.ensureCSSClassOnElement=function(c,d){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(c))return;var a=c.className;if(!CUI.ScriptUtility.isNullOrUndefined(a)&&a.indexOf(d)!==-1)return;var b=a.trim()+" "+d;b=b.trim();c.className=b};CUI.Utility.isDescendantOf=function(b,a){ULSqdK:;while(!CUI.ScriptUtility.isNullOrUndefined(a)){try{if(a.nodeName.toLowerCase()==="body")break}catch(c){if(a===b)return true;break}if(a===b)return true;a=a.parentNode}return false};CUI.Utility.removeCSSClassFromElement=function(a,c){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(a)||CUI.ScriptUtility.isNullOrUndefined(c)||CUI.ScriptUtility.isNullOrUndefined(a.className))return;var b=a.className;if(b!==b.replace(c,""))a.className=b.replace(c,"")};CUI.Utility.setEnabledOnElement=function(a,b){ULSqdK:;if(b)CUI.Utility.enableElement(a);else CUI.Utility.disableElement(a)};CUI.Utility.enableElement=function(a){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(a))return;CUI.Utility.removeCSSClassFromElement(a,"ms-cui-disabled")};CUI.Utility.disableElement=function(a){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(a))return;CUI.Utility.ensureCSSClassOnElement(a,"ms-cui-disabled")};CUI.Utility.setDisabledAttribute=function(a,b){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(a))return;a.disabled=b};CUI.Utility.$1q=function(a){ULSqdK:;a.setAttribute("href","javascript:;");a.setAttribute("onclick","return false;")};CUI.Utility.$4q=function(){ULSqdK:;var a=CUI.Utility.$3("a");a.href="javascript:;";a.setAttribute("onclick","return false;");return a};CUI.Utility.$AP=function(d){ULSqdK:;var a=d,e=0,f=0,g=d.offsetWidth,h=d.offsetHeight;while(!CUI.ScriptUtility.isNullOrUndefined(a)&&!CUI.ScriptUtility.isNullOrUndefined(a.nodeName)&&a.nodeName.toLowerCase()!=="body"){var b=a.clientLeft;if(CUI.ScriptUtility.isNullOrUndefined(b))b=0;var c=a.clientTop;if(CUI.ScriptUtility.isNullOrUndefined(c))c=0;e+=a.offsetLeft+b;f+=a.offsetTop+c;a=a.offsetParent}return new Sys.UI.Bounds(e,f,g,h)};CUI.Utility.$2k=function(a,b){ULSqdK:;CUI.UIUtility.setInnerText(a,b)};CUI.Utility.$Ad=function(b,m){ULSqdK:;var c=new Sys.StringBuilder;if(CUI.ScriptUtility.isNullOrEmptyString(b)||0===b.length)return null;var k=false,e=0,l=0,a=0,i=b.length;while(a<i){var f,j=b.charCodeAt(a);if(j<63)f=CUI.Utility.$Ac_0[j];else if(j>=160&&j<=255)f=-2;else f=0;if(f){if(l>0){c.append(b.substring(e,e+l));l=0}e=a+1;if(f===-2){c.append("&#");c.append(j.toString());c.append(";")}else if(f===8){var n=b.charAt(a+1);if(n===" "||k)c.append(CUI.Utility.$19_0[f]);else c.append(" ")}else{if(f===2&&m){if(a+5<i&&b.charAt(a+1)==="n"&&b.charAt(a+2)==="b"&&b.charAt(a+3)==="s"&&b.charAt(a+4)==="p"&&b.charAt(a+5)===";"){c.append(CUI.Utility.$19_0[8]);a+=6;e+=5;continue}if(a+5<i&&b.charAt(a+1)==="#"&&b.charAt(a+2)==="1"&&b.charAt(a+3)==="6"&&b.charAt(a+4)==="0"&&b.charAt(a+5)===";"){c.append(CUI.Utility.$19_0[8]);a+=6;e+=5;continue}}else if(f===4&&m){var g,d,h;g=b.charAt(a+1);if("b"===g||"B"===g){d=b.charAt(a+2);if(">"===d){c.append(CUI.Utility.$19_0[9]);a+=3;e+=2;continue}else if("r"===d||"R"===d){h=b.charAt(a+3);if(">"===h){c.append(CUI.Utility.$19_0[7]);a+=4;e+=3;continue}if("/"===h){var o=b.charAt(a+4);if(o===">"){c.append(CUI.Utility.$19_0[7]);a+=5;e+=4;continue}}if(" "===h){var p=b.charAt(a+4),q=b.charAt(a+5);if(p==="/"&&q===">"){c.append(CUI.Utility.$19_0[7]);a+=6;e+=5;continue}}}}else if("i"===g||"I"===g){d=b.charAt(a+2);if(">"===d){c.append(CUI.Utility.$19_0[10]);a+=3;e+=2;continue}}else if("p"===g||"P"===g){d=b.charAt(a+2);if(">"===d){c.append(CUI.Utility.$19_0[11]);a+=3;e+=2;continue}}else if("u"===g||"U"===g){d=b.charAt(a+2);if(">"===d){c.append(CUI.Utility.$19_0[12]);a+=3;e+=2;continue}}else if("/"===g){h=b.charAt(a+3);if(">"===h){d=b.charAt(a+2);if("b"===d||"B"===d){c.append(CUI.Utility.$19_0[13]);a+=4;e+=3;continue}else if("i"===d||"I"===d){c.append(CUI.Utility.$19_0[14]);a+=4;e+=3;continue}else if("p"===d||"P"===d){c.append(CUI.Utility.$19_0[15]);a+=4;e+=3;continue}else if("u"===d||"U"===d){c.append(CUI.Utility.$19_0[16]);a+=4;e+=3;continue}}}}else if(f===7)k=true;else k=false;c.append(CUI.Utility.$19_0[f])}}else{k=false;l++}a++}e<i&&c.append(b.substring(e,i));return c.toString()};CUI.Utility.$29=function(a,c,d){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(a)||a.nodeName==="#text")return;if(c)a.setAttribute("unselectable","on");else a.setAttribute("unselectable","off");if(d){var b=a.firstChild;while(b){CUI.Utility.$29(b,c,true);b=b.nextSibling}}};CUI.Utility.$j=function(d,m,e,f,b,n,g,h,i){ULSqdK:;var a=null;if(d===1)a=CUI.Utility.$3("div");else if(d===3)a=g?CUI.Utility.$CC():CUI.Utility.$3("a");else a=g?CUI.Utility.$CD():CUI.Utility.$3("span");var c="",o={};c=CUI.Utility.$Ae[m];var j=!CUI.ScriptUtility.isNullOrUndefined(h),k=!CUI.ScriptUtility.isNullOrUndefined(i),l=!CUI.ScriptUtility.isNullOrUndefined(f);if(n)c+=" ms-cui-img-cont-float";else c+=" ms-cui-img-container";if(l)b.className=f;a.className+=" "+c;if(!CUI.ScriptUtility.isNullOrEmptyString(e)){a.appendChild(b);b.src=e;if(j)b.style.top=h+"px";if(k)b.style.left=i+"px"}return a};CUI.Utility.$1f=function(a,e,f,g,h,i,j){ULSqdK:;a.style.display="inline-block";if(!CUI.ScriptUtility.isNullOrUndefined(f))a.className=f;if(!CUI.ScriptUtility.isNullOrEmptyString(j))a.style.height=j+"px";if(!CUI.ScriptUtility.isNullOrEmptyString(i))a.style.width=i+"px";if(!CUI.ScriptUtility.isNullOrEmptyString(e))a.style.backgroundImage="url("+e+")";var c="0px",d="0px",b=false;if(!CUI.ScriptUtility.isNullOrEmptyString(h)){c=h+"px";b=true}if(!CUI.ScriptUtility.isNullOrEmptyString(g)){d=g+"px";b=true}if(b)a.style.backgroundPosition=c+" "+d};CUI.Utility.$A4=function(){ULSqdK:;var a=CUI.Utility.$3("iframe");a.style.position="absolute";a.style.visibility="hidden";return a};CUI.Utility.$A3=function(){ULSqdK:;var a=CUI.Utility.$3("span");if(Sys.Browser.agent===Sys.Browser.InternetExplorer)a.className="ms-cui-glass-ie";else a.className="ms-cui-glass-ff";return a};CUI.Utility.$B3=function(a,b){ULSqdK:;a.style.position="absolute";a.style.visibility="hidden";a.style.left=b.style.left;a.style.top=b.style.top;var c=b.offsetWidth,d=b.offsetHeight;a.style.width=c.toString()+"px";a.style.height=d.toString()+"px";a.style.visibility="visible"};CUI.Utility.$1g=function(a,b){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(b)||CUI.ScriptUtility.isNullOrUndefined(a)||CUI.ScriptUtility.isNullOrUndefined(a.ToolTipTitle))return;b.setAttribute("aria-describedby",a.Id+"_ToolTip")};CUI.Utility.$AH=function(a,f){ULSqdK:;var b,e="<br />",d=a.lastIndexOf("\u200b\u200b"),c=a.lastIndexOf(" ");if(d!==-1){b=CUI.Utility.$3A(a.substr(0,d))+e;if(d<a.length)b+=CUI.Utility.$3A(a.substr(d+2))}else if(c!==-1){b=CUI.Utility.$3A(a.substr(0,c))+e;if(c<a.length)b+=CUI.Utility.$3A(a.substr(c+1));if(f)b+=" "}else if(c===-1&&f)b=CUI.Utility.$3A(a)+e;else b=CUI.Utility.$3A(a);return b};CUI.Utility.$3A=function(c){ULSqdK:;if(CUI.ScriptUtility.isNullOrEmptyString(c))return "";for(var a=new Sys.StringBuilder,e=c.length,b=0;b<e;b++){var d=c.charAt(b);switch(d){case "<":a.append("&lt;");break;case ">":a.append("&gt;");break;case "&":a.append("&amp;");break;case '"':a.append("&quot;");break;case "'":a.append("&#39;");break;default:a.append(d)}}return a.toString()};CUI.Utility.$7d=function(a){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(a))return;$clearHandlers(a);if(!CUI.ScriptUtility.isNullOrUndefined(a.childNodes))for(var b=0;b<a.childNodes.length;b++)CUI.Utility.$7d(a.childNodes[b])};CUI.Utility.$CD=function(){ULSqdK:;var a=CUI.Utility.$3("span");a.className="ms-cui-block";return a};CUI.Utility.$CC=function(){ULSqdK:;var a=CUI.Utility.$3("a");a.className="ms-cui-block";return a};CUI.Utility.$v=function(a){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(a))return false;return a==="True"||a==="true"};CUI.Utility.$38=function(){ULSqdK:;var a=window.innerWidth;if(CUI.ScriptUtility.isNullOrUndefined(a))a=document.documentElement.clientWidth;if(CUI.ScriptUtility.isNullOrUndefined(a))a=document.body.clientWidth;return a};CUI.Utility.$3y=function(){ULSqdK:;var a=window.innerHeight;if(CUI.ScriptUtility.isNullOrUndefined(a))a=document.documentElement.clientHeight;if(CUI.ScriptUtility.isNullOrUndefined(a))a=document.body.clientHeight;return a};CUI.Utility.$5q=function(b,c){ULSqdK:;var a=CUI.Utility.$Cu(b,c,true);return a&&a.length>0?a[0]:null};CUI.Utility.$Cu=function(a,c,d){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(a.getElementsByClassName)){var b=a.getElementsByClassName(c);if(d){if(CUI.ScriptUtility.isNullOrUndefined(b)||b.length<=1)return b;var e=[];e[0]=b[0];return e}return b}if(!CUI.ScriptUtility.isNullOrUndefined(a.querySelectorAll)){if(d){var f=a.querySelector("."+c),g=[];if(!CUI.ScriptUtility.isNullOrUndefined(f))g[0]=f;return g}return a.querySelectorAll("."+c)}else return CUI.Utility.$AM_0(a,c,d)};CUI.Utility.$AM_0=function(e,f,d){ULSqdK:;for(var a=[],g=0,b,c=0;c<e.childNodes.length;c++){b=e.childNodes[c];if(!CUI.ScriptUtility.isNullOrUndefined(b.className)&&b.className.indexOf(f)>=0){a[g++]=b;if(d)break}a=a.concat(CUI.Utility.$AM_0(b,f,d));if(a.length>0&&d)break}return a};CUI.Utility.$7i=function(a){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(a.select))a.select();else if(Sys.Browser.agent===Sys.Browser.InternetExplorer){var b=a.createTextRange();b.moveStart("character",0);b.moveEnd("character",a.value.length);b.select()}else a.setSelectionRange(0,a.value.length)};CUI.Utility.$3B=function(){ULSqdK:;if(!CUI.Utility.$6V_0){if(Sys.Browser.agent===Sys.Browser.InternetExplorer&&!window.document.documentMode)CUI.Utility.$6W_0=true;CUI.Utility.$6V_0=true}return CUI.Utility.$6W_0};CUI.Utility.$7N=function(a,b){ULSqdK:;return CUI.Utility.$Cw(a,[b])};CUI.Utility.$Cw=function(b,e){ULSqdK:;var f=e.length;if(!b)return null;for(var c=0;c<f;c++)if(b.tagName.toLowerCase()===e[c].toLowerCase())return b;var a=b.parentNode;while(a){for(var d=0;d<f;d++)if(a.tagName.toLowerCase()===e[d].toLowerCase())return a;a=a.parentNode}return null};CUI.Utility.$3=function(b){ULSqdK:;var a=document.createElement(b);a.setAttribute("unselectable","on");return a};CUI.Utility.$2h=function(b){ULSqdK:;var a=document.createElement("label");a.setAttribute("unselectable","on");a.className="ms-cui-hidden";CUI.UIUtility.setInnerText(a,b);return a};CUI.Utility.$7A=function(a){ULSqdK:;return document.createElement(a)};CUI.Utility.$7p=function(b,a){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(a))return;b.style.imeMode=CUI.Utility.$v(a)?"auto":"disabled"};CUI.Utility.get_returnFalseHandler=function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(CUI.Utility.$5e_0))CUI.Utility.$5e_0=CUI.NativeUtility.returnFalse;return CUI.Utility.$5e_0};CUI.ScriptUtility=function(){};CUI.ScriptUtility.isNullOrEmptyString=function(a){ULSqdK:;var b=null;return a===b||typeof a==="undefined"||!a.length};CUI.ScriptUtility.isNullOrUndefined=function(a){ULSqdK:;var b=null;return a===b||typeof a==="undefined"};CUI.ScriptUtility.isUndefined=function(a){ULSqdK:;return typeof a==="undefined"};CUI.UIUtility=function(){};CUI.UIUtility.generateRandomElementId=function(){ULSqdK:;var b=null,c=null;do{var a=Math.random();a=a*1e5;a=Math.round(a);b="rnd"+a.toString();c=$get(b)}while(c);return b};CUI.UIUtility.cancelEvent=function(a){ULSqdK:;if(a){a.preventDefault();a.stopPropagation()}};CUI.UIUtility.insertBefore=function(c,a){ULSqdK:;var b=a.parentNode;b.insertBefore(c,a)};CUI.UIUtility.insertAfter=function(c,b){ULSqdK:;var a=b.parentNode;if(a.lastChild===b)a.appendChild(c);else a.insertBefore(c,b.nextSibling)};CUI.UIUtility.removeNode=function(a){ULSqdK:;a.parentNode&&a.parentNode.removeChild(a)};CUI.UIUtility.calculateOffsetLeft=function(a){ULSqdK:;var b=0;while(a){b+=a.offsetLeft;a=a.offsetParent}return b};CUI.UIUtility.calculateOffsetTop=function(a){ULSqdK:;var b=0;while(a){b+=a.offsetTop;a=a.offsetParent}return b};CUI.UIUtility.setInnerText=function(a,b){ULSqdK:;CUI.NativeUtility.setInnerText(a,b)};CUI.UIUtility.isTextNode=function(a){ULSqdK:;return a.nodeType===3||a.nodeType===4};CUI.UIUtility.isNodeOfType=function(c,b){ULSqdK:;for(var a=0;a<b.length;a++)if(c.tagName===b[a])return true;return false};CUI.ListNode=function(c,b,a){ULSqdK:;this.next=a;this.previous=b;this.data=c};CUI.ListNode.prototype={next:null,previous:null,data:null};CUI.List=function(){};CUI.List.prototype={$1l_0:null,$32_0:null,$P_0:0,add:function(a){ULSqdK:;if(!this.$1l_0)this.$1l_0=this.$32_0=new CUI.ListNode(a,null,null);else this.$32_0=this.$32_0.next=new CUI.ListNode(a,this.$32_0,null);this.$P_0++},insert:function(c,d){ULSqdK:;if(c>this.$P_0||0>c)throw Error.argumentOutOfRange("pos");if(c===this.$P_0){this.add(d);return}var a=this.$1l_0;while(0!==c--)a=a.next;var b=new CUI.ListNode(d,a.previous,a);if(!a.previous)this.$1l_0=b;else a.previous.next=b;if(!a.next)this.$32_0=b;else a.next.previous=b},remove:function(b){ULSqdK:;var a=this.$1l_0;while(a){if(a.data===b)break;a=a.next}if(!a)return false;if(!a.previous)this.$1l_0=a.next;else a.previous.next=a.next;if(!a.next)this.$32_0=a.previous;else a.next.previous=a.previous;return true},clear:function(){ULSqdK:;var a=this.$1l_0,b;this.$1l_0=null;this.$32_0=null;while(a){b=a.next;a.previous=null;a.next=null;a=b}},indexOf:function(c){ULSqdK:;var a=this.$1l_0,b=0;while(a){if(a.data===c)break;a=a.next;b++}if(!a)return -1;return b},get_item:function(b){ULSqdK:;var a=this.$9r_0(b);return a.data},get_count:function(){ULSqdK:;return this.$P_0},getEnumerator:function(){ULSqdK:;return new CUI.ListEnumerator(this.$1l_0)},getEnumeratorAtPos:function(b){ULSqdK:;var a=this.$9r_0(b);return new CUI.ListEnumerator(a)},$9r_0:function(c){ULSqdK:;var a=this.$1l_0,b=0;while(b!==c){if(!a)throw Error.argumentOutOfRange("pos");a=a.next;b++}return a}};CUI.ListEnumerator=function(a){ULSqdK:;this.$3g_0=a};CUI.ListEnumerator.prototype={$3g_0:null,$a_0:null,get_current:function(){ULSqdK:;if(!this.$a_0)throw Error.argumentOutOfRange();return this.$a_0.data},moveNext:function(){ULSqdK:;if(!this.$a_0){this.$a_0=this.$3g_0;return this.$3g_0}if(!this.$a_0.next)return false;this.$a_0=this.$a_0.next;return true},movePrevious:function(){ULSqdK:;if(!this.$a_0){this.$a_0=this.$3g_0;return this.$3g_0}if(!this.$a_0.previous)return false;this.$a_0=this.$a_0.previous;return true},reset:function(){ULSqdK:;this.$a_0=this.$3g_0}};CUI.JsonXmlElement=function(b,a){ULSqdK:;this.name=b;if(!a)a={};this.attrs=a};CUI.JsonXmlElement.prototype={get_name:function(){ULSqdK:;return this.name},get_attributes:function(){ULSqdK:;return this.attrs},appendChild:function(c,a){ULSqdK:;var b=new CUI.JsonXmlElement(c,a);return this.appendChildNode(b)},appendChildNode:function(b){ULSqdK:;var a=this.children;if(!a){a=[];this.children=a}Array.add(a,b);return b},get_childNodes:function(){ULSqdK:;return this.children}};Type.registerNamespace("CUI.Controls");CUI.Controls.ColorStyle=function(){};CUI.Controls.$create_ColorStyle=function(){ULSqdK:;return new CUI.Controls.ColorStyle};CUI.Controls.ColorPickerResult=function(){};CUI.Controls.$create_ColorPickerResult=function(){ULSqdK:;return new CUI.Controls.ColorPickerResult};CUI.Controls.ContextMenuControlProperties=function(){ULSqdK:;CUI.Controls.ContextMenuControlProperties.initializeBase(this)};CUI.Controls.ContextMenuControl=function(c,d,a,b){ULSqdK:;CUI.Controls.ContextMenuControl.initializeBase(this,[c,d,a,b]);this.addDisplayMode("Menu")};CUI.Controls.ContextMenuControl.prototype={$Ak_3:null,createDOMElementForDisplayMode:function(a){ULSqdK:;switch(a){case "Menu":this.$Ak_3=CUI.Utility.$3("span");return this.$Ak_3;default:this.ensureValidDisplayMode(a);return null}},onEnabledChanged:function(){},onMenuButtonClick:function(a){ULSqdK:;if(!this.get_enabled())return;this.$Ah(a,null);this.get_displayedComponent().raiseCommandEvent(this.get_$1_3().CommandMenuOpen,4,null)},onLaunchedMenuClosed:function(){ULSqdK:;this.get_displayedComponent().raiseCommandEvent(this.get_$1_3().CommandMenuClose,10,null)},get_$1_3:function(){ULSqdK:;return this.$5_0}};CUI.Controls.Button=function(b,c,a){ULSqdK:;this.$85=Function.createDelegate(this,this.handleTabBlur);this.$86=Function.createDelegate(this,this.handleTabFocus);this.$83=Function.createDelegate(this,this.handleMouseBlur);this.$84=Function.createDelegate(this,this.handleMouseFocus);this.$1G=Function.createDelegate(this,this.onClick);CUI.Controls.Button.initializeBase(this,[b,c,a]);this.addDisplayMode("Small");this.addDisplayMode("Medium");this.addDisplayMode("Large");this.addDisplayMode("Menu");this.addDisplayMode("Menu16");this.addDisplayMode("Menu32")};CUI.Controls.Button.prototype={$F_1:null,$8_1:null,$9_1:null,$T_1:null,$Z_1:null,$2J_1:null,$16_1:null,$6M_1:null,$6N_1:null,$6O_1:null,$1t_1:null,$1W_1:null,createComponentForDisplayModeInternal:function(a){ULSqdK:;var b;if(a.startsWith("Menu")){b=this.$0_0.$3w(this.$6_0+"-"+a+this.$0_0.$27(),a,this);this.$2J_1=this.get_$1_1().MenuItemId;this.$16_1=this.get_$1_1().CommandValueId;if(CUI.ScriptUtility.isNullOrEmptyString(this.$16_1))this.$16_1=this.$2J_1}else b=CUI.Controls.Button.callBaseMethod(this,"createComponentForDisplayModeInternal",[a]);return b},createDOMElementForDisplayMode:function(a){ULSqdK:;return this.$2g_1(a,true)},$2g_1:function(b,a){ULSqdK:;var c=CUI.ScriptUtility.isNullOrUndefined(this.get_$1_1().Alt)?this.getLabel():this.get_$1_1().Alt;switch(b){case "Large":this.$F_1=CUI.Control.createStandardControlDOMElement(this,this.$0_0,"Large",this.get_$1_1(),false,false);a&&this.$O("Large");return this.$F_1;case "Medium":this.$8_1=CUI.Control.createStandardControlDOMElement(this,this.$0_0,"Medium",this.get_$1_1(),false,false);a&&this.$O("Medium");return this.$8_1;case "Small":this.$9_1=CUI.Control.createStandardControlDOMElement(this,this.$0_0,"Small",this.get_$1_1(),false,false);a&&this.$O("Small");return this.$9_1;case "Menu":case "Menu16":this.$T_1=CUI.Control.createStandardControlDOMElement(this,this.$0_0,"Menu16",this.get_$1_1(),true,false);a&&this.$O("Menu16");return this.$T_1;case "Menu32":this.$Z_1=CUI.Control.createStandardControlDOMElement(this,this.$0_0,"Menu32",this.get_$1_1(),true,false);a&&this.$O("Menu32");return this.$Z_1;default:this.ensureValidDisplayMode(b);return null}},$35:function(b){ULSqdK:;var a=$get(this.$6_0+"-"+b);this.storeElementForDisplayMode(a,b);switch(b){case "Large":this.$F_1=a;break;case "Medium":this.$8_1=a;break;case "Small":this.$9_1=a}},$O:function(a){ULSqdK:;switch(a){case "Large":this.$N_1(this.$F_1,true);break;case "Medium":this.$N_1(this.$8_1,true);break;case "Small":this.$N_1(this.$9_1,true);break;case "Menu32":this.$N_1(this.$Z_1,false);break;case "Menu16":this.$N_1(this.$T_1,false);break;case "Menu":this.$N_1(this.$T_1,false)}},$N_1:function(a,b){ULSqdK:;$addHandler(a,"click",this.$1G);b&&$addHandler(a,"dblclick",this.$3J);$addHandler(a,"mouseover",this.$84);$addHandler(a,"mouseout",this.$83);$addHandler(a,"focus",this.$86);$addHandler(a,"blur",this.$85)},onEnabledChanged:function(a){ULSqdK:;CUI.Utility.setEnabledOnElement(this.$F_1,a);CUI.Utility.setEnabledOnElement(this.$8_1,a);CUI.Utility.setEnabledOnElement(this.$9_1,a);CUI.Utility.setEnabledOnElement(this.$T_1,a);CUI.Utility.setEnabledOnElement(this.$Z_1,a);!a&&this.$1T_1()},get_$15:function(){ULSqdK:;return "Button"},getTextValue:function(){ULSqdK:;return this.getLabel()},getLabel:function(){ULSqdK:;return this.get_$1_1().LabelText},receiveFocus:function(){ULSqdK:;this.onBeginFocus();var a=this.get_displayedComponent();if(CUI.ScriptUtility.isNullOrUndefined(a))return;a.set_$1F(true);!CUI.ScriptUtility.isNullOrUndefined(this.$T_1)&&this.$T_1.focus();!CUI.ScriptUtility.isNullOrUndefined(this.$Z_1)&&this.$Z_1.focus()},getDropDownDOMElementForDisplayMode:function(b){ULSqdK:;var a;switch(b){case "Large":a=this.$6M_1;break;case "Medium":a=this.$6N_1;break;case "Small":a=this.$6O_1;break;case "Menu":a=this.$1t_1;break;case "Text":a=this.$1W_1;break;default:a=CUI.Utility.$3("span")}if(a)return a;return this.$A2_1(b)},$A2_1:function(b){ULSqdK:;var a;switch(b){case "Large":a=this.$2g_1(b,false).cloneNode(true);this.$F_1=null;a.style.height="auto";a.childNodes[1].style.height="auto";this.$6M_1=a;break;case "Medium":a=this.$2g_1(b,false).cloneNode(true);this.$8_1=null;this.$6N_1=a;break;case "Small":a=this.$2g_1(b,false).cloneNode(true);this.$9_1=null;this.$6O_1=a;break;case "Menu":this.$1t_1=this.$2g_1("Menu",false).cloneNode(true);this.$T_1=null;return this.$1t_1;case "Text":var c=CUI.Utility.$3("a");CUI.Utility.$1q(c);this.$1W_1=CUI.Utility.$3("span");this.$1W_1.className="ms-cui-textmenuitem";CUI.UIUtility.setInnerText(c,this.get_$1_1().LabelText);this.$1W_1.appendChild(c);return this.$1W_1;default:this.ensureValidDisplayMode(b);return null}return a},deselect:function(){},getMenuItemId:function(){ULSqdK:;return this.$2J_1},getCommandValueId:function(){ULSqdK:;return this.$16_1},$7o:function(){ULSqdK:;if(!this.get_enabled())return false;this.get_displayedComponent().get_$2().focus();return true},focusOnDisplayedComponent:function(){ULSqdK:;this.receiveFocus()},onClick:function(d){ULSqdK:;!CUI.ScriptUtility.isNullOrUndefined(CUI.PMetrics)&&CUI.PMetrics.perfMark(7700);d.preventDefault();d.stopPropagation();this.$X();if(!this.get_enabled())return;this.$0_0.set_$3z(this);var b=1,a=this.get_stateProperties(),c=this.get_$1_1().CommandType;if(!CUI.ScriptUtility.isNullOrUndefined(c)&&c==="OptionSelection")b=3;a["CommandValueId"]=this.$16_1;a["MenuItemId"]=this.$2J_1;a["SourceControlId"]=this.$6_0;this.get_displayedComponent().raiseCommandEvent(this.get_$1_1().Command,b,a);!CUI.ScriptUtility.isNullOrUndefined(CUI.PMetrics)&&CUI.PMetrics.perfMark(7701)},handleMouseFocus:function(){ULSqdK:;this.onBeginFocus();if(!this.get_enabled())return;var a=this.get_displayedComponent();CUI.MenuItem.isInstanceOfType(a)&&a.set_$1F(true);if(CUI.ScriptUtility.isNullOrUndefined(this.get_$1_1().CommandPreview))return;var b=this.get_stateProperties();b["CommandValueId"]=this.$16_1;b["MenuItemId"]=this.$2J_1;var c=5,d=this.get_$1_1().CommandType;if(!CUI.ScriptUtility.isNullOrUndefined(d)&&d==="OptionSelection")c=7;a.raiseCommandEvent(this.get_$1_1().CommandPreview,c,b)},handleMouseBlur:function(){ULSqdK:;this.$1T_1();this.onEndFocus();if(!this.get_enabled())return;var a=this.get_displayedComponent();CUI.MenuItem.isInstanceOfType(a)&&a.set_$1F(false);if(CUI.ScriptUtility.isNullOrUndefined(this.get_$1_1().CommandRevert))return;var c=6,b=this.get_stateProperties();b["CommandValueId"]=this.$16_1;b["MenuItemId"]=this.$2J_1;var d=this.get_$1_1().CommandType;if(!CUI.ScriptUtility.isNullOrUndefined(d)&&d==="OptionSelection")c=8;a.raiseCommandEvent(this.get_$1_1().CommandRevert,c,b)},handleTabFocus:function(){ULSqdK:;this.onBeginFocus();var a=this.get_displayedComponent();if(CUI.MenuItem.isInstanceOfType(a)){a.set_$1F(true);this.$39_1(this.get_enabled())}else this.get_enabled()&&this.$0_0.set_$o(this)},handleTabBlur:function(){ULSqdK:;this.$1T_1();this.onEndFocus();if(!this.get_enabled())return;var a=this.get_displayedComponent();CUI.MenuItem.isInstanceOfType(a)&&a.set_$1F(false)},onMenuClosed:function(){ULSqdK:;this.$1T_1();this.$X()},$1T_1:function(){ULSqdK:;!CUI.ScriptUtility.isNullOrUndefined(this.$F_1)&&CUI.Utility.removeCSSClassFromElement(this.$F_1,"ms-cui-ctl-hoveredOver");!CUI.ScriptUtility.isNullOrUndefined(this.$8_1)&&CUI.Utility.removeCSSClassFromElement(this.$8_1,"ms-cui-ctl-hoveredOver");!CUI.ScriptUtility.isNullOrUndefined(this.$9_1)&&CUI.Utility.removeCSSClassFromElement(this.$9_1,"ms-cui-ctl-hoveredOver");if(!CUI.ScriptUtility.isNullOrUndefined(this.$T_1)){CUI.Utility.removeCSSClassFromElement(this.$T_1,"ms-cui-ctl-hoveredOver");CUI.Utility.removeCSSClassFromElement(this.$T_1,"ms-cui-ctl-disabledHoveredOver")}if(!CUI.ScriptUtility.isNullOrUndefined(this.$Z_1)){CUI.Utility.removeCSSClassFromElement(this.$Z_1,"ms-cui-ctl-hoveredOver");CUI.Utility.removeCSSClassFromElement(this.$Z_1,"ms-cui-ctl-disabledHoveredOver")}},$39_1:function(b){ULSqdK:;var a="ms-cui-ctl-hoveredOver";if(!b){a="ms-cui-ctl-disabledHoveredOver";!CUI.ScriptUtility.isNullOrUndefined(this.$T_1)&&CUI.Utility.ensureCSSClassOnElement(this.$T_1,a);!CUI.ScriptUtility.isNullOrUndefined(this.$Z_1)&&CUI.Utility.ensureCSSClassOnElement(this.$Z_1,a)}else{!CUI.ScriptUtility.isNullOrUndefined(this.$F_1)&&CUI.Utility.ensureCSSClassOnElement(this.$F_1,a);!CUI.ScriptUtility.isNullOrUndefined(this.$8_1)&&CUI.Utility.ensureCSSClassOnElement(this.$8_1,a);!CUI.ScriptUtility.isNullOrUndefined(this.$9_1)&&CUI.Utility.ensureCSSClassOnElement(this.$9_1,a);!CUI.ScriptUtility.isNullOrUndefined(this.$T_1)&&CUI.Utility.ensureCSSClassOnElement(this.$T_1,a);!CUI.ScriptUtility.isNullOrUndefined(this.$Z_1)&&CUI.Utility.ensureCSSClassOnElement(this.$Z_1,a)}},dispose:function(){ULSqdK:;CUI.Controls.Button.callBaseMethod(this,"dispose");this.$F_1=null;this.$8_1=null;this.$9_1=null;this.$T_1=null;this.$Z_1=null;this.$6M_1=null;this.$6N_1=null;this.$6O_1=null;this.$1t_1=null;this.$1W_1=null},get_$1_1:function(){ULSqdK:;return this.$5_0}};CUI.Controls.CheckBoxCommandProperties=function(){};CUI.Controls.CheckBox=function(b,c,a){ULSqdK:;this.$8V=Function.createDelegate(this,this.$As_2);this.$67=Function.createDelegate(this,this.$DI_2);this.$49=Function.createDelegate(this,this.$5w_2);this.$4A=Function.createDelegate(this,this.$5x_2);this.$3I=Function.createDelegate(this,this.$4u_2);this.$48=Function.createDelegate(this,this.$42_2);this.$1G=Function.createDelegate(this,this.onClick);CUI.Controls.CheckBox.initializeBase(this,[b,c,a])};CUI.Controls.CheckBox.prototype={$9_2:null,$17_2:null,$8_2:null,$13_2:null,$2F_2:null,createDOMElementForDisplayMode:function(c){ULSqdK:;var a=CUI.ScriptUtility.isNullOrUndefined(this.get_$1_2().Alt)?this.get_$1_2().LabelText:this.get_$1_2().Alt;if(CUI.ScriptUtility.isNullOrUndefined(a))a="";switch(c){case "Small":this.$9_2=CUI.Utility.$3("span");this.$9_2.className="ms-cui-cbx";this.$9_2.setAttribute("mscui:controltype",this.get_$15());this.$17_2=CUI.Utility.$3("input");this.$17_2.type="checkbox";this.$17_2.className="ms-cui-cbx-input";this.$17_2.id=this._id+"-Small-checkbox";if(CUI.ScriptUtility.isNullOrUndefined(this.get_$1_2().ToolTipTitle))this.$17_2.title=a;this.$17_2.setAttribute("role",this.get_$25());CUI.Utility.$1g(this.get_$1_2(),this.$17_2);this.$N_2(this.$17_2,null);this.$9_2.appendChild(this.$17_2);return this.$9_2;case "Medium":this.$8_2=CUI.Utility.$3("span");this.$8_2.className="ms-cui-cbx";this.$8_2.setAttribute("mscui:controltype",this.get_$15());this.$13_2=CUI.Utility.$3("input");this.$13_2.type="checkbox";this.$13_2.className="ms-cui-cbx-input";this.$13_2.id=this._id+"-Medium-checkbox";if(CUI.ScriptUtility.isNullOrUndefined(this.get_$1_2().ToolTipTitle))this.$13_2.title=a;this.$13_2.setAttribute("role",this.get_$25());CUI.Utility.$1g(this.get_$1_2(),this.$13_2);var b=false;if(!CUI.ScriptUtility.isNullOrUndefined(this.get_$1_2().LabelText)){this.$2F_2=CUI.Utility.$3("label");if(CUI.Utility.$3B())this.$2F_2.setAttribute("htmlFor",this._id+"-Medium-checkbox");else this.$2F_2.setAttribute("for",this._id+"-Medium-checkbox");CUI.Utility.$2k(this.$2F_2,this.get_$1_2().LabelText);b=true}this.$N_2(this.$13_2,this.$2F_2);this.$8_2.appendChild(this.$13_2);b&&this.$8_2.appendChild(this.$2F_2);return this.$8_2;default:this.ensureValidDisplayMode(c);return null}},$35:function(b){ULSqdK:;var a=$get(this.$6_0+"-"+b);this.storeElementForDisplayMode(a,b);switch(b){case "Medium":this.$8_2=a;this.$13_2=a.firstChild;this.$2F_2=a.childNodes[1];break;case "Small":this.$9_2=a;this.$17_2=a.firstChild}},$O:function(a){ULSqdK:;switch(a){case "Medium":this.$N_2(this.$13_2,this.$2F_2);break;case "Small":this.$N_2(this.$17_2,null)}},$N_2:function(a,b){ULSqdK:;$addHandler(a,"click",this.$1G);$addHandler(a,"focus",this.$48);$addHandler(a,"blur",this.$3I);$addHandler(a,"mouseover",this.$4A);$addHandler(a,"mouseout",this.$49);$addHandler(a,"keydown",this.$67);if(!CUI.ScriptUtility.isNullOrUndefined(b)){$addHandler(b,"click",this.$8V);$addHandler(b,"keydown",this.$67);$addHandler(b,"mouseover",this.$4A);$addHandler(b,"mouseout",this.$49)}},onEnabledChanged:function(a){ULSqdK:;if(a){CUI.Utility.enableElement(this.$9_2);CUI.Utility.enableElement(this.$8_2)}else{CUI.Utility.disableElement(this.$9_2);CUI.Utility.disableElement(this.$8_2)}CUI.Utility.setDisabledAttribute(this.$17_2,!a);CUI.Utility.setDisabledAttribute(this.$13_2,!a)},get_$15:function(){ULSqdK:;return "CheckBox"},get_$25:function(){ULSqdK:;return "checkbox"},onClick:function(){ULSqdK:;this.$X();if(!this.get_enabled())return;var b=9,a=this.get_displayedComponent();switch(a.get_displayMode()){case "Small":this.get_stateProperties()["On"]=this.$17_2.checked;break;case "Medium":this.get_stateProperties()["On"]=this.$13_2.checked;break;default:this.ensureValidDisplayMode(a.get_displayMode());return}a.raiseCommandEvent(this.get_$1_2().Command,b,this.get_stateProperties());if(this.$0_0.get_$4x())this.$4y();else this.setState(this.get_stateProperties()["On"])},$42_2:function(){ULSqdK:;this.onBeginFocus();if(!this.get_enabled())return;this.$0_0.set_$o(this);if(CUI.ScriptUtility.isNullOrUndefined(this.get_$1_2().CommandPreview))return;this.get_displayedComponent().raiseCommandEvent(this.get_$1_2().CommandPreview,5,this.get_stateProperties())},$DI_2:function(a){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(a))a.keyCode===13&&this.$As_2(a)},$5x_2:function(){ULSqdK:;this.onBeginFocus();if(!this.get_enabled())return;if(CUI.ScriptUtility.isNullOrUndefined(this.get_$1_2().CommandPreview))return;this.get_displayedComponent().raiseCommandEvent(this.get_$1_2().CommandPreview,5,this.get_stateProperties())},$4u_2:function(){ULSqdK:;this.onEndFocus();if(!this.get_enabled())return;if(CUI.ScriptUtility.isNullOrUndefined(this.get_$1_2().CommandRevert))return;this.get_displayedComponent().raiseCommandEvent(this.get_$1_2().CommandRevert,6,this.get_stateProperties())},$5w_2:function(){ULSqdK:;this.onEndFocus();if(!this.get_enabled())return;if(CUI.ScriptUtility.isNullOrUndefined(this.get_$1_2().CommandRevert))return;this.get_displayedComponent().raiseCommandEvent(this.get_$1_2().CommandRevert,6,this.get_stateProperties())},$As_2:function(a){ULSqdK:;a.preventDefault();this.$X();if(!this.get_enabled())return;this.$0_0.set_$o(this);this.setState(!this.$13_2.checked);this.onClick(a)},setState:function(a){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(this.$17_2))this.$17_2.checked=a;if(!CUI.ScriptUtility.isNullOrUndefined(this.$13_2))this.$13_2.checked=a},$4y:function(){ULSqdK:;this.pollForStateAndUpdateInternal(this.get_$1_2().Command,this.get_$1_2().QueryCommand,this.get_stateProperties(),true);this.setState(this.get_stateProperties()["On"])},addDisplayModes:function(){ULSqdK:;this.addDisplayMode("Small");this.addDisplayMode("Medium")},$7o:function(){ULSqdK:;if(!this.get_enabled())return false;var a=this.get_displayedComponent().get_$2();a.firstChild.focus();return true},dispose:function(){ULSqdK:;CUI.Controls.CheckBox.callBaseMethod(this,"dispose");this.$8_2=null;this.$13_2=null;this.$2F_2=null;this.$9_2=null;this.$17_2=null},get_$1_2:function(){ULSqdK:;return this.$5_0}};CUI.Controls.ColorPickerCommandProperties=function(){};CUI.Controls.ColorPicker=function(c,d,a,b){ULSqdK:;this.$53=Function.createDelegate(this,this.$An_1);this.$8A=Function.createDelegate(this,this.$DA_1);this.$55=Function.createDelegate(this,this.$Ap_1);this.$54=Function.createDelegate(this,this.$Ao_1);CUI.Controls.ColorPicker.initializeBase(this,[c,d,a]);this.addDisplayMode("Menu");this.$9D_1=b};CUI.Controls.ColorPicker.prototype={$9D_1:null,createComponentForDisplayModeInternal:function(b){ULSqdK:;if(this.$k_0.length>0)throw Error.create("Only one ControlComponent can be created for each ColorPicker Control");var a;a=this.$0_0.$3w(this.$6_0+"-"+b+this.$0_0.$27(),b,this);return a},get_$15:function(){ULSqdK:;return "ColorPicker"},$2T_1:null,$BV_1:function(k,g){ULSqdK:;for(var i=null,f=k.ownerDocument,e=0,l=g.length/10,c=0;c<g.length;c++){if(!(c%10)){i=f.createElement("tr");k.appendChild(i);e++}var b=f.createElement("td");b.className="ms-cui-colorpicker-cell";b.setAttribute("arrayPosition",c);if(e===1){b.style.padding="2px";b.style.height="16px"}i.appendChild(b);var a=f.createElement("a");a.href="javascript:";var m=g[c].Title;a.title=m;a.className="ms-cui-colorpicker-cell-a";$addHandler(a,"focus",this.$54);var d=f.createElement("div"),n=g[c].DisplayColor;d.style.backgroundColor=n;d.className="ms-cui-colorpicker-celldiv";var h=13;if(e===1||e===2){d.style.borderTopWidth="1px";h--}if(e===1||e===l){d.style.borderBottomWidth="1px";h--}if(h!==13)d.style.height=h+"px";var j=f.createElement("div");j.className="ms-cui-colorpicker-cellinternaldiv";$addHandler(a,"mouseover",this.$55);$addHandler(a,"mouseout",this.$8A);$addHandler(a,"click",this.$53);b.appendChild(a);a.appendChild(d);d.appendChild(j);b.colorPickerCssClass=g[c];Array.add(this.$2T_1,b)}},createDOMElementForDisplayMode:function(d){ULSqdK:;switch(d){case "Menu":var b=this.$0_0.get_element().ownerDocument,a=b.createElement("table");if(this.$0_0._textDirection===1)a.dir="rtl";else a.dir="ltr";a.className="ms-cui-smenu-inner";a.setAttribute("cellSpacing","0");a.setAttribute("cellPadding","0");a.setAttribute("mscui:controltype",this.get_$15());this.$2T_1=[];var c=b.createElement("tbody");this.$BV_1(c,this.$9D_1);a.appendChild(c);return a;default:this.ensureValidDisplayMode(d)}return null},onEnabledChanged:function(){},$An_1:function(a){ULSqdK:;a.preventDefault();if(!this.get_enabled())return;var b=a.target,c=CUI.Utility.$7N(b,"td"),d=this.$AO_1(c);this.$76_1();this.get_displayedComponent().raiseCommandEvent(this.get_$1_1().Command,1,d)},$AO_1:function(c){ULSqdK:;var b=c.colorPickerCssClass,a=new CUI.Controls.ColorPickerResult;a.Color=b.Color;a.Style=b.Style;return a},$Ap_1:function(b){ULSqdK:;if(!this.get_enabled())return;var a=CUI.Utility.$7N(b.target,"td");this.$7Q_1(a)},$Ao_1:function(b){ULSqdK:;if(!this.get_enabled())return;var a=CUI.Utility.$7N(b.target,"td");this.$7Q_1(a)},$DA_1:function(){ULSqdK:;if(!this.get_enabled())return;this.$5z_1();CUI.Controls.ColorPicker.$7_1=-10},$3C_1:false,$7c_1:null,$7Q_1:function(a){ULSqdK:;var b=parseInt(a.getAttribute("arrayPosition"));if(CUI.Controls.ColorPicker.$7_1===b)return;CUI.Controls.ColorPicker.$7_1=b;this.$B8_1(a);this.$Ba_1(a)},$Ba_1:function(a){ULSqdK:;this.$5z_1();Sys.UI.DomElement.addCssClass(a,"ms-cui-colorpicker-hoveredOver");this.$7T_1=a;a.firstChild&&a.firstChild.focus()},$7T_1:null,$5z_1:function(){ULSqdK:;if(this.$7T_1)this.$7T_1.className="ms-cui-colorpicker-cell"},receiveFocus:function(){ULSqdK:;this.$7n_1(0)},$7n_1:function(a){ULSqdK:;if(this.$2T_1&&this.$2T_1.length>a){var b=this.$2T_1[a];this.$7Q_1(b)}},$76_1:function(){ULSqdK:;this.$3C_1=false;this.$7c_1=null},$7E_1:function(){ULSqdK:;this.$3C_1&&!CUI.ScriptUtility.isNullOrEmptyString(this.get_$1_1().CommandRevert)&&this.get_displayedComponent().raiseCommandEvent(this.get_$1_1().CommandRevert,6,this.$7c_1)},$B8_1:function(b){ULSqdK:;if(!CUI.ScriptUtility.isNullOrEmptyString(this.get_$1_1().CommandPreview)){this.$3C_1=true;var a=this.$AO_1(b);this.$7c_1=a;this.get_displayedComponent().raiseCommandEvent(this.get_$1_1().CommandPreview,5,a)}},get_$1_1:function(){ULSqdK:;return this.$5_0},onMenuClosed:function(){ULSqdK:;this.$7E_1()},$2j:function(){ULSqdK:;var a=1,b=window.event;if(!CUI.ScriptUtility.isNullOrUndefined(b)&&b.keyCode===38)a=10;if(CUI.Controls.ColorPicker.$7_1<0)CUI.Controls.ColorPicker.$7_1+=this.$2T_1.length+a;if(CUI.Controls.ColorPicker.$7_1>=a){this.$7n_1(CUI.Controls.ColorPicker.$7_1-a);return true}this.$5z_1();CUI.Controls.ColorPicker.$7_1-=a;return false},$2i:function(){ULSqdK:;var a=1,b=window.event;if(!CUI.ScriptUtility.isNullOrUndefined(b)&&b.keyCode===40)a=10;if(CUI.Controls.ColorPicker.$7_1+a<0){CUI.Controls.ColorPicker.$7_1=-1;a=1}if(CUI.Controls.ColorPicker.$7_1+a<this.$2T_1.length){this.$7n_1(CUI.Controls.ColorPicker.$7_1+a);return true}this.$5z_1();CUI.Controls.ColorPicker.$7_1-=this.$2T_1.length;return false}};CUI.Controls.ComboBoxCommandProperties=function(){};CUI.Controls.ComboBox=function(d,e,a,c){ULSqdK:;this.$82=Function.createDelegate(this,this.executeAutoComplete);this.$8N=Function.createDelegate(this,this.onInputKeyDown);this.$8L=Function.createDelegate(this,this.onInputBlur);this.$8M=Function.createDelegate(this,this.onInputFocus);this.$5E_3=100;this.$3l_3=-1;CUI.Controls.ComboBox.initializeBase(this,[d,e,a,c]);if(CUI.ScriptUtility.isNullOrUndefined(this.get_cbProperties().AllowFreeForm))this.$68_3=false;else this.$68_3=this.get_cbProperties().AllowFreeForm.toLowerCase()==="true";if(CUI.ScriptUtility.isNullOrEmptyString(this.get_cbProperties().AutoComplete))this.get_cbProperties().AutoComplete="true";if(!CUI.ScriptUtility.isNullOrEmptyString(this.get_cbProperties().AutoCompleteDelay))try{this.$5E_3=parseInt(this.get_cbProperties().AutoCompleteDelay)}catch(b){this.$5E_3=100}};CUI.Controls.ComboBox.prototype={$8_3:null,$J_3:null,$I_3:null,$1w_3:null,$1x_3:null,$68_3:false,createDOMElementForDisplayMode:function(d){ULSqdK:;switch(d){case "Medium":var b=CUI.ScriptUtility.isNullOrUndefined(this.get_cbProperties().Alt)?"":this.get_cbProperties().Alt,c=CUI.ScriptUtility.isNullOrUndefined(this.get_cbProperties().AltArrow)?b:this.get_cbProperties().AltArrow;this.$8_3=CUI.Utility.$3("span");this.$8_3.className="ms-cui-cb";this.$8_3.setAttribute("mscui:controltype",this.get_$15());this.$J_3=CUI.Utility.$7A("input");this.$J_3.setAttribute("name",this.get_cbProperties().Command);this.$J_3.type="text";this.$J_3.style.width=this.get_cbProperties().Width;this.$J_3.className="ms-cui-cb-input";this.$J_3.setAttribute("autocomplete","off");this.$J_3.id=this.get_cbProperties().Id;if(CUI.ScriptUtility.isNullOrUndefined(this.get_properties().ToolTipTitle))this.$J_3.title=b;CUI.Utility.$7p(this.$J_3,this.get_properties().ImeEnabled);var a=this.get_stateProperties()[CUI.Controls.ComboBoxCommandProperties.SelectedItemId];if(CUI.ScriptUtility.isNullOrUndefined(a))a=this.get_cbProperties().InitialItem;!CUI.ScriptUtility.isNullOrUndefined(a)&&this.$2R(a);CUI.Utility.$1g(this.get_properties(),this.$J_3);this.$I_3=CUI.Utility.$3("a");CUI.Utility.ensureCSSClassOnElement(this.$I_3,"ms-cui-dd-arrow-button");CUI.Utility.$1q(this.$I_3);this.$I_3.tabIndex=-1;this.$I_3.setAttribute("aria-haspopup",true);this.$1w_3=CUI.Utility.$3("img");this.$1x_3=CUI.Utility.$j(2,1,this.$0_0.$5_1.ImageDownArrow,this.$0_0.$5_1.ImageDownArrowClass,this.$1w_3,true,false,this.$0_0.$5_1.ImageDownArrowTop,this.$0_0.$5_1.ImageDownArrowLeft);if(CUI.ScriptUtility.isNullOrUndefined(this.get_properties().ToolTipTitle)){this.$1w_3.alt=c;this.$I_3.title=c}this.$O("Medium");this.$8_3.appendChild(this.$J_3);this.$8_3.appendChild(this.$I_3);this.$I_3.appendChild(this.$1x_3);return this.$8_3;default:this.ensureValidDisplayMode(d);return null}},$35:function(b){ULSqdK:;var a=$get(this.$6_0+"-"+b);this.storeElementForDisplayMode(a,b);this.get_stateProperties()[CUI.Controls.DropDownCommandProperties.SelectedItemId]=null;switch(b){case "Medium":this.$8_3=a;this.$J_3=a.childNodes[0];this.$I_3=a.childNodes[1];this.$1x_3=this.$I_3.childNodes[0];this.$1w_3=this.$1x_3.childNodes[0];CUI.Utility.$29(this.$J_3,false,false)}},$O:function(a){ULSqdK:;switch(a){case "Medium":this.$N_3()}},$N_3:function(){ULSqdK:;$addHandler(this.$J_3,"focus",this.$8M);$addHandler(this.$J_3,"blur",this.$8L);$addHandler(this.$J_3,"keydown",this.$8N);$addHandler(this.$J_3,"mouseup",CUI.Utility.get_returnFalseHandler());$addHandler(this.$I_3,"mouseover",this.$2l);$addHandler(this.$I_3,"mouseout",this.$1h);$addHandler(this.$I_3,"click",this.$3F);$addHandler(this.$I_3,"focus",this.$2l);$addHandler(this.$I_3,"blur",this.$1h);$addHandler(this.$I_3,"keypress",this.$3G)},onEnabledChanged:function(a){ULSqdK:;if(a){CUI.Utility.enableElement(this.$J_3);CUI.Utility.enableElement(this.$8_3)}else{CUI.Utility.disableElement(this.$J_3);CUI.Utility.disableElement(this.$8_3)}CUI.Controls.ComboBox.callBaseMethod(this,"onEnabledChanged",[a])},get_$15:function(){ULSqdK:;return "ComboBox"},get_$25:function(){ULSqdK:;return "combobox"},$3j_3:null,get_menuItems:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$3j_3))this.$3j_3={};return this.$3j_3},set_menuItems:function(a){ULSqdK:;this.$3j_3=a;return a},getFirstMenuItemThatBeginsWith:function(d){ULSqdK:;var a=this.$3j_3;for(var b in a){var c={key:b,value:a[b]};if(c.key.toLowerCase().startsWith(d.toLowerCase()))return c}return null},$5c_3:null,onInputKeyDown:function(a){ULSqdK:;this.clearPendingAutoComplete();var b=this.$J_3.value;this.$X();if(a&&a.rawEvent)if(a.rawEvent.keyCode===40&&a.altKey){this.launchMenuInternal();return}if(CUI.ScriptUtility.isNullOrEmptyString(b))return;if(a&&a.rawEvent){var c=a.rawEvent.keyCode;switch(c){case 13:this.clearPendingAutoComplete();a.preventDefault();this.validateAndSave();return;case 27:this.clearPendingAutoComplete();!this.$i_1&&this.resetToPreviousValue();return;case 40:if(a.altKey){this.launchMenuInternal();return}break;case 8:case 127:case 46:this.clearPendingAutoComplete();this.$5c_3=null;return;case 36:case 35:case 33:case 34:case 37:case 39:case 16:case 18:case 17:case 20:return}}if(CUI.Utility.$v(this.get_cbProperties().AutoComplete)){this.clearPendingAutoComplete();this.$3l_3=window.setTimeout(this.$82,this.$5E_3)}},executeAutoComplete:function(){ULSqdK:;this.$3l_3=-1;var a=this.$J_3.value,b=this.getFirstMenuItemThatBeginsWith(a);if(!b){this.$5c_3=null;return}this.$J_3.value=b.key;if(Sys.Browser.agent===Sys.Browser.InternetExplorer){var c=this.$J_3.createTextRange();c.moveStart("character",a.length);c.moveEnd("character",this.$J_3.value.length);c.select()}else this.$J_3.setSelectionRange(a.length,this.$J_3.value.length);this.$5c_3=b.value},clearPendingAutoComplete:function(){ULSqdK:;this.$3l_3!==-1&&window.clearTimeout(this.$3l_3);this.$3l_3=-1},$7o:function(){ULSqdK:;if(!this.get_enabled())return false;if(!CUI.ScriptUtility.isNullOrUndefined(this.$J_3)){this.$J_3.focus();return true}return false},onInputFocus:function(a){ULSqdK:;this.$0_0.set_$o(this);this.onArrowButtonFocus(a);CUI.Utility.$v(this.get_cbProperties().PopulateDynamically)&&this.pollForDynamicMenu(false);CUI.Utility.$7i(this.$J_3);!CUI.ScriptUtility.isNullOrUndefined(this.$B_1)&&this.$B_1.$L()},onInputBlur:function(a){ULSqdK:;this.clearPendingAutoComplete();this.onArrowButtonBlur(a)},get_$5s_3:function(){ULSqdK:;return this.get_stateProperties()[CUI.Controls.ComboBoxCommandProperties.IsFreeForm]},set_$5s_3:function(a){ULSqdK:;this.get_stateProperties()[CUI.Controls.ComboBoxCommandProperties.IsFreeForm]=a;return a},validateAndSave:function(){ULSqdK:;if(!this.$2R(this.$5c_3)){var a=this.get_displayedComponent();if(!CUI.Utility.$v(this.get_cbProperties().AutoComplete)){var b=this.$3j_3[this.$J_3.value];if(!CUI.ScriptUtility.isNullOrEmptyString(b)&&this.$2R(b)){this.set_$5s_3(false);a.raiseCommandEvent(this.get_cbProperties().Command,3,{IsFreeForm:false,CommandValueId:this._selectedControl.getCommandValueId()});return}}if(this.$68_3){this.set_$5s_3(true);this.get_stateProperties()[CUI.Controls.ComboBoxCommandProperties.Value]=this.$J_3.value;a.raiseCommandEvent(this.get_cbProperties().Command,3,{IsFreeForm:true,Value:this.$J_3.value})}else{this.resetToPreviousValue();return}}else{this.set_$5s_3(false);this.get_displayedComponent().raiseCommandEvent(this.get_cbProperties().Command,3,{IsFreeForm:false,CommandValueId:this._selectedControl.getCommandValueId()})}},resetToPreviousValue:function(){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(this._selectedControl))this.$J_3.value=this._selectedControl.getTextValue();else this.$J_3.value=""},selectMenuItem:function(a){ULSqdK:;if(this._selectedControl===a)return;this._selectedControl=a;this.get_stateProperties()[CUI.Controls.ComboBoxCommandProperties.SelectedItemId]=a.getMenuItemId();var b=a;this.$J_3.value=b.getTextValue()},$4y:function(){ULSqdK:;var a=this.get_stateProperties()[CUI.Controls.ComboBoxCommandProperties.SelectedItemId];if(CUI.ScriptUtility.isNullOrUndefined(a))this.get_stateProperties()[CUI.Controls.ComboBoxCommandProperties.SelectedItemId]=this.get_cbProperties().InitialItem;var c=this.pollForStateAndUpdateInternal(this.get_cbProperties().Command,this.get_cbProperties().QueryCommand,this.get_stateProperties(),false),b=this.get_stateProperties()[CUI.Controls.ComboBoxCommandProperties.SelectedItemId];if(c)if(this.get_$5s_3()){this.$J_3.value=this.get_stateProperties()[CUI.Controls.ComboBoxCommandProperties.Value];this.get_stateProperties()[CUI.Controls.ComboBoxCommandProperties.SelectedItemId]=null}else if(!CUI.ScriptUtility.isNullOrUndefined(a)){if(a!==b||!this._itemEverSelected)if(!this.$2R(b))throw Error.create("The menu item id requested via polling does not exist")}else if(!CUI.ScriptUtility.isNullOrUndefined(this.get_stateProperties()[CUI.Controls.ComboBoxCommandProperties.Value]))this.$J_3.value=this.get_stateProperties()[CUI.Controls.ComboBoxCommandProperties.Value]},onDynamicMenuPopulated:function(){ULSqdK:;var f=null,a=null,g=null,h=null,b=null,c=null;if(CUI.ScriptUtility.isNullOrUndefined(this.$B_1))return;var d=this.$B_1.$4_0.getEnumerator();while(d.moveNext()){var j=d.get_current(),e=j.$4_0.getEnumerator();while(e.moveNext()){var i=e.get_current();if(CUI.MenuItem.isInstanceOfType(i)){f=i;a=f.$M_1;if(CUI.ISelectableControl.isInstanceOfType(a)){g=a;b=g.getMenuItemId()}if(CUI.IMenuItem.isInstanceOfType(a)){h=a;c=h.getTextValue()}if(!(CUI.ScriptUtility.isNullOrUndefined(b)||CUI.ScriptUtility.isNullOrUndefined(c))){this.get_menuItems()[c]=b;c=null;b=null}}}}},launchMenuInternal:function(){ULSqdK:;this.launchMenu(this.$J_3,this.$3M)&&this.sendMenuCreationCommandEvent()},dispose:function(){ULSqdK:;CUI.Controls.ComboBox.callBaseMethod(this,"dispose");this.$8_3=null;this.$1w_3=null;this.$1x_3=null;this.$I_3=null;this.$J_3=null},get_cbProperties:function(){ULSqdK:;return this.$5_0}};CUI.Controls.DropDownCommandProperties=function(){};CUI.Controls.DropDown=function(c,d,a,b){ULSqdK:;this.$47=Function.createDelegate(this,this.onArrowButtonKeyboardFocus);this.$3M=Function.createDelegate(this,this.sendMenuCreationCommandEvent);this.$3G=Function.createDelegate(this,this.onArrowButtonKeyPress);this.$3F=Function.createDelegate(this,this.onArrowButtonClick);this.$1h=Function.createDelegate(this,this.onArrowButtonBlur);this.$2l=Function.createDelegate(this,this.onArrowButtonFocus);CUI.Controls.DropDown.initializeBase(this,[c,d,a,b]);this.addDisplayModes();this.get_stateProperties()[CUI.Controls.DropDownCommandProperties.SelectedItemId]=null;this.get_stateProperties()[CUI.Controls.DropDownCommandProperties.Value]=null};CUI.Controls.DropDown.prototype={$8_2:null,$Y_2:null,$I_2:null,$1w_2:null,$1x_2:null,$7o:function(){ULSqdK:;if(!this.get_enabled())return false;this.$I_2.focus();return true},createDOMElementForDisplayMode:function(f){ULSqdK:;var c=CUI.ScriptUtility.isNullOrUndefined(this.get_properties().Alt)?"":this.get_properties().Alt,a=CUI.ScriptUtility.isNullOrUndefined(this.get_properties().AltArrow)?c:this.get_properties().AltArrow,d=true;if(CUI.ScriptUtility.isNullOrEmptyString(a)&&!CUI.ScriptUtility.isNullOrUndefined(this.get_properties().ToolTipTitle))a=this.get_properties().ToolTipTitle;var e=null;switch(f){case "Text":case "Medium":this.$8_2=CUI.Utility.$3("span");this.$8_2.className="ms-cui-dd";this.$8_2.setAttribute("mscui:controltype",this.get_$15());this.$Y_2=CUI.Utility.$3("span");this.$Y_2.className="ms-cui-dd-text";this.$Y_2.style.width=this.get_properties().Width;var b=this.get_stateProperties()[CUI.Controls.DropDownCommandProperties.SelectedItemId];if(CUI.ScriptUtility.isNullOrUndefined(b))b=this.get_properties().InitialItem;!CUI.ScriptUtility.isNullOrUndefined(b)&&this.$2R(b);this.$I_2=CUI.Utility.$3("a");this.$I_2.setAttribute("role",this.get_$25());this.$I_2.setAttribute("aria-haspopup",true);CUI.Utility.ensureCSSClassOnElement(this.$I_2,"ms-cui-dd-arrow-button");CUI.Utility.$1g(this.get_properties(),this.$I_2);CUI.Utility.$1q(this.$I_2);this.$I_2.id=this.$6_0;this.$1w_2=CUI.Utility.$3("img");this.$1x_2=CUI.Utility.$j(2,1,this.$0_0.$5_1.ImageDownArrow,this.$0_0.$5_1.ImageDownArrowClass,this.$1w_2,true,false,this.$0_0.$5_1.ImageDownArrowTop,this.$0_0.$5_1.ImageDownArrowLeft);if(CUI.ScriptUtility.isNullOrUndefined(this.get_properties().ToolTipTitle)){this.$I_2.setAttribute("title",a);this.$Y_2.title=c;this.$1w_2.alt=a;d=false}this.$O("Medium");this.$8_2.appendChild(this.$Y_2);this.$8_2.appendChild(this.$I_2);this.$I_2.appendChild(this.$1x_2);if(d){e=CUI.Utility.$2h(a);this.$I_2.appendChild(e)}return this.$8_2;default:this.ensureValidDisplayMode(f);return null}},$35:function(b){ULSqdK:;var a=$get(this.$6_0+"-"+b);this.storeElementForDisplayMode(a,b);switch(b){case "Text":case "Medium":this.$8_2=a;this.$Y_2=a.childNodes[0];this.$I_2=a.childNodes[1];this.$1x_2=this.$I_2.childNodes[0];this.$1w_2=this.$1x_2.childNodes[0]}},$O:function(a){ULSqdK:;switch(a){case "Text":case "Medium":this.$N_2()}},$N_2:function(){ULSqdK:;$addHandler(this.$8_2,"click",this.$3F);$addHandler(this.$8_2,"keypress",this.$3G);$addHandler(this.$I_2,"mouseover",this.$2l);$addHandler(this.$I_2,"mouseout",this.$1h);$addHandler(this.$I_2,"focus",this.$47);$addHandler(this.$I_2,"blur",this.$1h)},onEnabledChanged:function(a){ULSqdK:;if(a)CUI.Utility.enableElement(this.$8_2);else CUI.Utility.disableElement(this.$8_2)},get_$15:function(){ULSqdK:;return "DropDown"},$1e:function(a){ULSqdK:;if(a.$G_1===3){var c=a.$31_1;if(!CUI.ISelectableControl.isInstanceOfType(c.$M_1))return CUI.Controls.DropDown.callBaseMethod(this,"$1e",[a]);var d=c.$M_1;!CUI.ScriptUtility.isNullOrUndefined(this._selectedControl)&&this._selectedControl.deselect();this.selectMenuItem(d)}if(a.$G_1===3||a.$G_1===7||a.$G_1===8){var b;switch(a.$G_1){case 3:b=this.get_properties().Command;break;case 7:b=this.get_properties().CommandPreview;break;case 8:b=this.get_properties().CommandRevert;break;default:b=this.get_properties().Command}this.get_displayedComponent().raiseCommandEvent(b,a.$G_1,a.$2z_1);CUI.Controls.DropDown.callBaseMethod(this,"$1e",[a]);return false}return CUI.Controls.DropDown.callBaseMethod(this,"$1e",[a])},selectMenuItem:function(c){ULSqdK:;if(this._selectedControl===c)return;this._selectedControl=c;this.get_stateProperties()[CUI.Controls.DropDownCommandProperties.SelectedItemId]=c.getMenuItemId();var b;if(CUI.ScriptUtility.isNullOrUndefined(this.get_properties().SelectedItemDisplayMode))b="Text";else b=this.get_properties().SelectedItemDisplayMode;var a;if(b==="Text"){var d=c.getTextValue();a=CUI.Utility.$3("a");CUI.UIUtility.setInnerText(a,d)}else a=this._selectedControl.getDropDownDOMElementForDisplayMode(b);if(this.$Y_2.hasChildNodes()){var e=this.$Y_2.firstChild;this.$Y_2.replaceChild(a,e)}else this.$Y_2.appendChild(a)},_itemEverSelected:false,$2R:function(b){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(b)||CUI.ScriptUtility.isNullOrUndefined(this.$B_1))return false;var a=this.$B_1.$AR(b);if(CUI.ScriptUtility.isNullOrUndefined(a))return false;this.selectMenuItem(a);this._itemEverSelected=true;return true},addDisplayModes:function(){ULSqdK:;this.addDisplayMode("Medium");this.addDisplayMode("Text")},onArrowButtonClick:function(b){ULSqdK:;var a=this.get_enabled();a&&CUI.PMetrics.perfMark(7192);this.$X();b.preventDefault();if(!a)return;this.$0_0.set_$o(this);this.launchMenuInternal(b);CUI.PMetrics.perfMark(7193)},launchMenuInternal:function(){ULSqdK:;this.launchMenu(this.$I_2,this.$3M)&&this.sendMenuCreationCommandEvent()},sendMenuCreationCommandEvent:function(){ULSqdK:;this.get_displayedComponent().raiseCommandEvent(this.get_properties().CommandMenuOpen,4,null)},onBeginFocus:function(){ULSqdK:;var a=this.get_stateProperties()[CUI.Controls.DropDownCommandProperties.Value];if(CUI.ScriptUtility.isNullOrUndefined(a)){var b=this.get_stateProperties()[CUI.Controls.DropDownCommandProperties.SelectedItemId];if(CUI.ScriptUtility.isNullOrUndefined(b))b=this.get_properties().InitialItem;if(!CUI.ScriptUtility.isNullOrUndefined(b)&&!CUI.ScriptUtility.isNullOrUndefined(this.$B_1)){var c=this.$B_1.$AR(b);if(!CUI.ScriptUtility.isNullOrUndefined(c))a=c.getTextValue()}}if(!CUI.ScriptUtility.isNullOrUndefined(a))this.get_properties().ToolTipSelectedItemTitle=a;CUI.Controls.DropDown.callBaseMethod(this,"onBeginFocus")},onArrowButtonKeyboardFocus:function(a){ULSqdK:;this.$0_0.set_$o(this);this.onArrowButtonFocus(a)},onArrowButtonFocus:function(){ULSqdK:;this.onBeginFocus();if(!this.get_enabled())return;this.highlight()},onArrowButtonBlur:function(){ULSqdK:;this.onEndFocus();if(!this.get_enabled()||this.$i_1)return;this.removeHighlight()},onArrowButtonKeyPress:function(b){ULSqdK:;this.$X();if(!this.get_enabled())return;var a=b.rawEvent.keyCode;if(a===13||a===32||a===40){this.$1D_1=true;this.launchMenuInternal(b)}},highlight:function(){ULSqdK:;CUI.Utility.ensureCSSClassOnElement(this.$I_2,"ms-cui-ctl-light-hoveredOver")},removeHighlight:function(){ULSqdK:;CUI.Utility.removeCSSClassFromElement(this.$I_2,"ms-cui-ctl-light-hoveredOver")},onLaunchedMenuClosed:function(){ULSqdK:;this.$X();this.removeHighlight();this.get_displayedComponent().raiseCommandEvent(this.get_properties().CommandMenuClose,10,null);CUI.Controls.DropDown.callBaseMethod(this,"onLaunchedMenuClosed")},$4y:function(){ULSqdK:;var b=this.get_stateProperties()[CUI.Controls.DropDownCommandProperties.SelectedItemId];if(CUI.ScriptUtility.isNullOrUndefined(b))this.get_stateProperties()[CUI.Controls.DropDownCommandProperties.SelectedItemId]=this.get_properties().InitialItem;this.pollForStateAndUpdateInternal(this.get_properties().Command,this.get_properties().QueryCommand,this.get_stateProperties(),false);var a=this.get_stateProperties()[CUI.Controls.DropDownCommandProperties.SelectedItemId];if(!CUI.ScriptUtility.isNullOrUndefined(a)){if(b!==a||!this._itemEverSelected)if(!this.$2R(a))throw Error.create("The menu item id requested via polling does not exist")}else if(!CUI.ScriptUtility.isNullOrUndefined(this.get_stateProperties()[CUI.Controls.DropDownCommandProperties.Value])){var c=this.get_stateProperties()[CUI.Controls.DropDownCommandProperties.Value];this.$Y_2.innerHTML="<a>"+CUI.Utility.$3A(c)+"</a>"}},dispose:function(){ULSqdK:;CUI.Controls.DropDown.callBaseMethod(this,"dispose");this.$8_2=null;this.$1w_2=null;this.$1x_2=null;this.$I_2=null;this.$Y_2=null},get_properties:function(){ULSqdK:;return this.$5_0}};CUI.Controls.FlyoutAnchor=function(c,d,a,b){ULSqdK:;this.$8d=Function.createDelegate(this,this.$DN_2);this.$8c=Function.createDelegate(this,this.$DM_2);this.$8e=Function.createDelegate(this,this.$DO_2);this.$7x=Function.createDelegate(this,this.$2e_2);this.$49=Function.createDelegate(this,this.$5w_2);this.$4A=Function.createDelegate(this,this.$5x_2);this.$48=Function.createDelegate(this,this.$42_2);this.$8n=Function.createDelegate(this,this.$DX_2);this.$8m=Function.createDelegate(this,this.$DW_2);this.$90=Function.createDelegate(this,this.$De_2);this.$8T=Function.createDelegate(this,this.$Ar_2);this.$3I=Function.createDelegate(this,this.$4u_2);this.$1G=Function.createDelegate(this,this.onClick);CUI.Controls.FlyoutAnchor.initializeBase(this,[c,d,a,b]);this.addDisplayMode("Menu");this.addDisplayMode("Menu16");this.addDisplayMode("Menu32");this.addDisplayMode("Small");this.addDisplayMode("Medium");this.addDisplayMode("Large");this.addDisplayMode("Thin")};CUI.Controls.FlyoutAnchor.prototype={$5R_2:null,$5S_2:null,$3a_2:null,$4P_2:null,$6P_2:null,$4Q_2:null,$6Q_2:null,$h_2:null,$T_2:null,$Z_2:null,$F_2:null,$9H_2:null,$1u_2:null,$8_2:null,$9J_2:null,$2E_2:null,$9_2:null,$9L_2:null,$2G_2:null,$1a_2:null,$3d_2:null,$4T_2:null,createDOMElementForDisplayMode:function(b){ULSqdK:;var a=CUI.ScriptUtility.isNullOrUndefined(this.get_$1_2().Alt)?this.get_$1_2().LabelText:this.get_$1_2().Alt;switch(b){case "Menu":this.$h_2=this.createMenuDOMElement("Menu","ms-cui-textmenuitem ms-cui-fa-menuitem ms-cui-ctl-menu",a,null,null,null,null);this.$O(b);this.$h_2.setAttribute("aria-haspopup",true);return this.$h_2;case "Menu16":this.$T_2=this.createMenuDOMElement("Menu16","ms-cui-fa-menuitem ms-cui-ctl-menu",a,this.get_$1_2().Image16by16,this.get_$1_2().Image16by16Class,this.get_$1_2().Image16by16Top,this.get_$1_2().Image16by16Left);this.$O(b);this.$T_2.setAttribute("aria-haspopup",true);return this.$T_2;case "Menu32":this.$Z_2=this.createMenuDOMElement("Menu32","ms-cui-fa-menuitem ms-cui-ctl-menu",a,this.get_$1_2().Image32by32,this.get_$1_2().Image32by32Class,this.get_$1_2().Image32by32Top,this.get_$1_2().Image32by32Left);this.$Z_2.setAttribute("aria-haspopup",true);this.$O(b);return this.$Z_2;case "Large":this.$F_2=CUI.Control.createStandardControlDOMElement(this,this.$0_0,"Large",this.get_$1_2(),false,true);this.$F_2.setAttribute("aria-haspopup",true);this.$6U_2&&CUI.Utility.ensureCSSClassOnElement(this.$F_2,"ms-cui-ctl-large-groupPopup");this.$O("Large");return this.$F_2;case "Medium":this.$8_2=CUI.Control.createStandardControlDOMElement(this,this.$0_0,"Medium",this.get_$1_2(),false,true);this.$O("Medium");this.$8_2.setAttribute("aria-haspopup",true);return this.$8_2;case "Small":this.$9_2=CUI.Control.createStandardControlDOMElement(this,this.$0_0,"Small",this.get_$1_2(),false,true);this.$O("Small");this.$9_2.setAttribute("aria-haspopup",true);return this.$9_2;case "Thin":this.$1a_2=CUI.Utility.$4q();this.$1a_2.className="ms-cui-ctl-thin";this.$3d_2=CUI.Utility.$3("img");this.$3d_2.alt="";if(CUI.ScriptUtility.isNullOrEmptyString(this.get_$1_2().ToolTipTitle)){this.$1a_2.title=a;this.$3d_2.alt=a}var c=this.$0_0;this.$4T_2=CUI.Utility.$j(2,1,c.$5_1.ImageDownArrow,c.$5_1.ImageDownArrowClass,this.$3d_2,true,false,c.$5_1.ImageDownArrowTop,c.$5_1.ImageDownArrowLeft);this.$1a_2.appendChild(this.$4T_2);this.$O("Thin");this.$1a_2.setAttribute("aria-haspopup",true);return this.$1a_2;default:this.ensureValidDisplayMode(b)}return null},$35:function(b){ULSqdK:;var a=$get(this.$6_0+"-"+b);!CUI.ScriptUtility.isNullOrUndefined(a)&&this.storeElementForDisplayMode(a,b);switch(b){case "Large":if(!CUI.ScriptUtility.isNullOrUndefined(a))this.$F_2=a;this.$9H_2=this.$F_2.childNodes[0].childNodes[0];this.$1u_2=this.$F_2.lastChild.lastChild.childNodes[0];break;case "Medium":if(!CUI.ScriptUtility.isNullOrUndefined(a))this.$8_2=a;this.$9J_2=this.$8_2.childNodes[0].childNodes[0];this.$2E_2=this.$8_2.lastChild.lastChild.childNodes[0];break;case "Small":if(!CUI.ScriptUtility.isNullOrUndefined(a))this.$9_2=a;this.$9L_2=this.$9_2.childNodes[0].childNodes[0];this.$2G_2=this.$9_2.lastChild.lastChild.childNodes[0];break;case "Thin":this.$1a_2=a;this.$4T_2=a.firstChild;this.$3d_2=this.$4T_2.firstChild}},get_$15:function(){ULSqdK:;return "FlyoutAnchor"},createMenuDOMElement:function(e,j,d,f,g,h,i){ULSqdK:;var a=CUI.Utility.$4q();a.className=j;a.title=d;a.setAttribute("mscui:controltype",this.get_$15());CUI.Utility.$1g(this.get_$1_2(),a);var b=null;switch(e){case "Menu16":if(CUI.ScriptUtility.isNullOrUndefined(this.$4P_2)){this.$4P_2=CUI.Utility.$3("img");this.$6P_2=CUI.Utility.$j(2,3,f,g,this.$4P_2,true,true,h,i);this.$4P_2.alt=d;b=this.$6P_2}break;case "Menu32":if(CUI.ScriptUtility.isNullOrUndefined(this.$4Q_2)){this.$4Q_2=CUI.Utility.$3("img");this.$6Q_2=CUI.Utility.$j(2,4,f,g,this.$4Q_2,true,true,h,i);this.$4Q_2.alt=d;b=this.$6Q_2}}this.createMenuLabelDOMElementIfNeeded(e);if(CUI.ScriptUtility.isNullOrUndefined(this.$5R_2)){this.$5R_2=CUI.Utility.$3("img");this.$5S_2=CUI.Utility.$j(2,2,this.$0_0.$5_1.ImageSideArrow,this.$0_0.$5_1.ImageSideArrowClass,this.$5R_2,false,true,this.$0_0.$5_1.ImageSideArrowTop,this.$0_0.$5_1.ImageSideArrowLeft);CUI.Utility.ensureCSSClassOnElement(this.$5S_2,"ms-cui-fa-menu-arrow")}if(b){var c=CUI.Utility.$3("span");c.className="ms-cui-ctl-iconContainer";c.appendChild(b);a.appendChild(c)}a.appendChild(this.$3a_2);a.appendChild(this.$5S_2);return a},createMenuLabelDOMElementIfNeeded:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$3a_2)){this.$3a_2=CUI.Utility.$3("span");this.$3a_2.className="ms-cui-ctl-mediumlabel";CUI.UIUtility.setInnerText(this.$3a_2,this.get_$1_2().LabelText)}},$O:function(c){ULSqdK:;var b=this.getDisplayedDOMElement(c);if(CUI.ScriptUtility.isNullOrUndefined(b))return;var d={click:this.$1G,blur:this.$3I,keypress:this.$8T,focus:this.$90},a;if(Sys.Browser.agent===Sys.Browser.InternetExplorer)if(c.startsWith("Menu"))a={mouseenter:this.$8m,mouseleave:this.$8n};else a={mouseenter:this.$48,mouseleave:this.$3I};else if(c.startsWith("Menu"))a={mouseover:this.$4A,mouseout:this.$49};else a={mouseover:this.$48,mouseout:this.$3I};$addHandlers(b,d);$addHandlers(b,a)},onEnabledChanged:function(a){ULSqdK:;CUI.Utility.setEnabledOnElement(this.$h_2,a);CUI.Utility.setEnabledOnElement(this.$T_2,a);CUI.Utility.setEnabledOnElement(this.$Z_2,a);CUI.Utility.setEnabledOnElement(this.$F_2,a);CUI.Utility.setEnabledOnElement(this.$8_2,a);CUI.Utility.setEnabledOnElement(this.$9_2,a);CUI.Utility.setEnabledOnElement(this.$1a_2,a)},positionMenu:function(a,b){ULSqdK:;if(this.get_displayedComponent().get_displayMode().startsWith("Menu"))this.$0_0.$Do(a,b);else CUI.Controls.FlyoutAnchor.callBaseMethod(this,"positionMenu",[a,b])},createComponentForDisplayModeInternal:function(a){ULSqdK:;var b;if(a.startsWith("Menu"))b=this.$0_0.$3w(this.$6_0+"-"+a+this.$0_0.$27(),a,this);else b=CUI.Controls.FlyoutAnchor.callBaseMethod(this,"createComponentForDisplayModeInternal",[a]);return b},getDisplayedDOMElement:function(a){ULSqdK:;switch(a){case "Menu":return this.$h_2;case "Menu16":return this.$T_2;case "Menu32":return this.$Z_2;case "Large":return this.$F_2;case "Medium":return this.$8_2;case "Small":return this.$9_2;case "Thin":return this.$1a_2;default:this.ensureValidDisplayMode(a);return null}},onClick:function(d){ULSqdK:;var a=this.get_enabled();a&&!this.$i_1&&CUI.PMetrics.perfMark(7190);this.$X();d.preventDefault();if(!a||this.$i_1)return;this.$0_0.set_$3z(this);var b=this.get_displayedComponent(),c=b.get_$2();this.$5t_2(c);!CUI.ScriptUtility.isNullOrUndefined(this.get_$1_2().Command)&&b.raiseCommandEvent(this.get_$1_2().Command,4,null);CUI.PMetrics.perfMark(7191)},$42_2:function(){ULSqdK:;this.onBeginFocus();if(!this.get_enabled())return},$DW_2:function(){ULSqdK:;this.onBeginFocus();if(!this.get_enabled()||this.$i_1)return;var a=this.get_displayedComponent(),c=a.get_$2();this.$5t_2(c);var b=this.get_$1_2().Command;!CUI.ScriptUtility.isNullOrUndefined(b)&&a.raiseCommandEvent(b,4,null)},$5x_2:function(e){ULSqdK:;this.onBeginFocus();if(!this.get_enabled()||this.$i_1)return;var a=e.target,b=e.rawEvent.relatedTarget;if(!(a===this.$h_2||a===this.$T_2||a===this.$Z_2))return;while(b!==a){try{if(b.nodeName.toLowerCase()==="body")break}catch(f){break}b=b.parentNode}if(b===a)return;var c=this.get_displayedComponent(),g=c.get_$2();this.$5t_2(g);var d=this.get_$1_2().Command;!CUI.ScriptUtility.isNullOrUndefined(d)&&c.raiseCommandEvent(d,4,null)},$DO_2:function(){ULSqdK:;var b=Array.indexOf(this.$0_0.$W_1,this),a=this.$0_0.$2a_1;if(a!==-1&&b>=this.$0_0.$3m_1){window.clearTimeout(a);this.$0_0.$2a_1=-1;this.$0_0.$3m_1=-1}},$De_2:function(){ULSqdK:;this.onBeginFocus();this.get_displayedComponent().get_displayMode().startsWith("Menu")&&this.$39_2(this.get_enabled());this.get_enabled()&&this.$0_0.set_$o(this)},$4u_2:function(){ULSqdK:;this.onEndFocus();if(this.$i_1)return;this.$1T_2()},$DX_2:function(c){ULSqdK:;this.onEndFocus();if(!this.get_enabled())return;if(this.$i_1){for(var b=Array.indexOf(this.$0_0.$W_1,this),a=b;a<this.$0_0.$W_1.length;a++)if(CUI.Utility.isDescendantOf(this.$0_0.$W_1[a].$B_1.get_$2(),c.rawEvent.toElement))return;this.$62_2()}},$DM_2:function(b){ULSqdK:;this.onEndFocus();if(CUI.Utility.isDescendantOf(this.get_displayedComponent().get_$2(),b.rawEvent.toElement))return;if(this.$i_1){for(var c=Array.indexOf(this.$0_0.$W_1,this),a=c;a<this.$0_0.$W_1.length;a++)if(CUI.Utility.isDescendantOf(this.$0_0.$W_1[a].$B_1.get_$2(),b.rawEvent.toElement))return;this.$62_2()}},$5w_2:function(b){ULSqdK:;this.onEndFocus();if(!this.get_enabled()||CUI.Utility.isDescendantOf(this.get_displayedComponent().get_$2(),b.rawEvent.relatedTarget))return;if(this.$i_1){for(var c=Array.indexOf(this.$0_0.$W_1,this),a=c;a<this.$0_0.$W_1.length;a++)if(CUI.Utility.isDescendantOf(this.$0_0.$W_1[a].$B_1.get_$2(),b.rawEvent.relatedTarget))return;this.$62_2()}},$DN_2:function(b){ULSqdK:;this.onEndFocus();if(CUI.Utility.isDescendantOf(this.get_displayedComponent().get_$2(),b.rawEvent.relatedTarget))return;if(this.$i_1){for(var c=Array.indexOf(this.$0_0.$W_1,this),a=c;a<this.$0_0.$W_1.length;a++)if(CUI.Utility.isDescendantOf(this.$0_0.$W_1[a].$B_1.get_$2(),b.rawEvent.relatedTarget))return;this.$62_2()}this.$1T_2()},$Ar_2:function(b){ULSqdK:;this.$X();if(!this.get_enabled())return;var a=b.rawEvent.keyCode;if(this.$i_1)(!this.$0_0._textDirection&&a===39||this.$0_0._textDirection===1&&a===37)&&this.$B_1.$1p();else if(a===13||a===32||(!this.$0_0._textDirection&&a===39||this.$0_0._textDirection===1&&a===37)&&(!b.ctrlKey||!b.shiftKey)){this.$1D_1=true;var c=this.get_displayedComponent(),e=c.get_$2(),d=this.get_$1_2().Command;!CUI.ScriptUtility.isNullOrUndefined(d)&&c.raiseCommandEvent(d,4,null);this.$5t_2(e)}},$6S_2:false,onModalKeyPress:function(a){ULSqdK:;if(a)if(a.rawEvent)if((!this.$0_0._textDirection&&a.rawEvent.keyCode===37||this.$0_0._textDirection===1&&a.rawEvent.keyCode===39)&&this.get_displayedComponent().get_displayMode().startsWith("Menu")||a.rawEvent.keyCode===27){this.$0_0.$2e(this);return}if(this.$6U_2){if(this.$6S_2)return;if(this.$B_1.$50())this.$6S_2=true;a.preventDefault()}else CUI.Controls.FlyoutAnchor.callBaseMethod(this,"onModalKeyPress",[a])},onModalBodyClick:function(){ULSqdK:;this.$0_0.$4n()},onLaunchedMenuClosed:function(){ULSqdK:;var b=this.$0_0.$2a_1;b!==-1&&window.clearTimeout(b);this.$0_0.$2a_1=-1;this.$0_0.$3m_1=-1;this.$1T_2();this.$X();var a=this.get_displayedComponent();if(a.get_displayMode().startsWith("Menu")){var c=a.$K_0.$K_0;c.set_$B0(null)}a.raiseCommandEvent(this.get_$1_2().CommandMenuClose,10,null);CUI.Controls.FlyoutAnchor.callBaseMethod(this,"onLaunchedMenuClosed")},$62_2:function(){ULSqdK:;var a=this.$0_0.$2a_1;a!==-1&&window.clearTimeout(a);if(null===this.$6A_2)this.$6A_2=this.$7x;this.$0_0.$3m_1=Array.indexOf(this.$0_0.$W_1,this);this.$0_0.$2a_1=window.setTimeout(this.$6A_2,500)},$6A_2:null,$2e_2:function(){ULSqdK:;this.$0_0.$2e(this);this.$0_0.$2a_1=-1;this.$0_0.$3m_1=-1},$6j_2:null,$6h_2:null,$6i_2:null,$5t_2:function(d){ULSqdK:;this.$X();this.$39_2(true);this.$0_0.$2v_1=false;this.$6S_2=false;var a=this.get_displayedComponent(),b=a.get_displayMode().startsWith("Menu");if(b){var c=a.$K_0.$K_0;c.set_$B0(this)}this.launchMenu(d);if(!b)return;if(null===this.$6j_2)this.$6j_2=this.$8e;$addHandler(this.$B_1.get_$2(),"mouseover",this.$6j_2);if(Sys.Browser.agent===Sys.Browser.InternetExplorer){if(null===this.$6h_2)this.$6h_2=this.$8c;$addHandler(this.$B_1.get_$2(),"mouseleave",this.$6h_2)}else{if(null===this.$6i_2)this.$6i_2=this.$8d;$addHandler(this.$B_1.get_$2(),"mouseout",this.$6i_2)}},$1T_2:function(){ULSqdK:;var b="ms-cui-ctl-disabledHoveredOver",a="ms-cui-ctl-hoveredOver";CUI.Utility.removeCSSClassFromElement(this.$h_2,a);CUI.Utility.removeCSSClassFromElement(this.$T_2,a);CUI.Utility.removeCSSClassFromElement(this.$Z_2,a);CUI.Utility.removeCSSClassFromElement(this.$F_2,a);CUI.Utility.removeCSSClassFromElement(this.$8_2,a);CUI.Utility.removeCSSClassFromElement(this.$9_2,a);CUI.Utility.removeCSSClassFromElement(this.$1a_2,a);CUI.Utility.removeCSSClassFromElement(this.$h_2,b);CUI.Utility.removeCSSClassFromElement(this.$T_2,b);CUI.Utility.removeCSSClassFromElement(this.$Z_2,b)},$39_2:function(b){ULSqdK:;var a="ms-cui-ctl-hoveredOver";if(!b){a="ms-cui-ctl-disabledHoveredOver";CUI.Utility.ensureCSSClassOnElement(this.$h_2,a);CUI.Utility.ensureCSSClassOnElement(this.$T_2,a);CUI.Utility.ensureCSSClassOnElement(this.$Z_2,a)}else{CUI.Utility.ensureCSSClassOnElement(this.$h_2,a);CUI.Utility.ensureCSSClassOnElement(this.$T_2,a);CUI.Utility.ensureCSSClassOnElement(this.$Z_2,a);CUI.Utility.ensureCSSClassOnElement(this.$F_2,a);CUI.Utility.ensureCSSClassOnElement(this.$8_2,a);CUI.Utility.ensureCSSClassOnElement(this.$9_2,a);CUI.Utility.ensureCSSClassOnElement(this.$1a_2,a)}},$6U_2:false,getTextValue:function(){ULSqdK:;return this.get_$1_2().LabelText},$7o:function(){ULSqdK:;if(!this.get_enabled())return false;this.receiveFocus();return true},receiveFocus:function(){ULSqdK:;var a=this.get_displayedComponent().get_$2();!CUI.ScriptUtility.isNullOrUndefined(a)&&a.focus()},onMenuClosed:function(){ULSqdK:;this.$1T_2()},dispose:function(){ULSqdK:;CUI.Controls.FlyoutAnchor.callBaseMethod(this,"dispose");this.$1a_2=null;this.$3d_2=null;this.$4T_2=null;this.$F_2=null;this.$1u_2=null;this.$9H_2=null;this.$8_2=null;this.$2E_2=null;this.$9J_2=null;this.$h_2=null;this.$T_2=null;this.$Z_2=null;this.$5R_2=null;this.$5S_2=null;this.$4P_2=null;this.$6P_2=null;this.$4Q_2=null;this.$6Q_2=null;this.$3a_2=null;this.$9_2=null;this.$2G_2=null;this.$9L_2=null},get_$1_2:function(){ULSqdK:;return this.$5_0}};CUI.Controls.GalleryButtonCommandProperties=function(){};CUI.Controls.GalleryButton=function(c,d,a,b){ULSqdK:;this.$3H=Function.createDelegate(this,this.onBlur);this.$3K=Function.createDelegate(this,this.onFocus);this.$1G=Function.createDelegate(this,this.onClick);CUI.Controls.GalleryButton.initializeBase(this,[c,d,a]);this.addDisplayMode("Large");this.addDisplayMode("Menu");this.$4E_1=b};CUI.Controls.GalleryButton.prototype={$E_1:null,$H_1:null,$4H_1:null,$4I_1:null,$4E_1:0,createComponentForDisplayModeInternal:function(a){ULSqdK:;var b;if(a==="Menu"){b=this.$0_0.$3w(this.$6_0+"-"+a+this.$0_0.$27(),a,this);if(CUI.ScriptUtility.isNullOrUndefined(this.get_properties().CommandValueId))this.get_properties().CommandValueId=this.get_properties().MenuItemId}else b=CUI.Controls.GalleryButton.callBaseMethod(this,"createComponentForDisplayModeInternal",[a]);return b},createDOMElementForDisplayMode:function(b){ULSqdK:;switch(b){case "Large":case "Menu":var c=CUI.ScriptUtility.isNullOrUndefined(this.get_properties().Alt)?"":this.get_properties().Alt;this.$E_1=CUI.Utility.$3("span");this.$E_1.setAttribute("mscui:controltype",this.get_$15());this.$E_1.className="ms-cui-gallerybutton ms-cui-gallerybutton-"+CUI.Utility.$AJ[this.$4E_1];this.$H_1=CUI.Utility.$3("a");this.$H_1.title=c;this.$H_1.className="ms-cui-gallerybutton-a";CUI.Utility.$1q(this.$H_1);CUI.Utility.$1g(this.get_properties(),this.$H_1);this.$E_1.appendChild(this.$H_1);if(!CUI.ScriptUtility.isNullOrUndefined(this.get_properties().InnerHTML)){this.$H_1.innerHTML=this.get_properties().InnerHTML;CUI.Utility.$29(this.$H_1,true,true)}else{if(CUI.ScriptUtility.isNullOrUndefined(this.get_properties().Image))throw Error.create("InnerHTML or Image must be defined for this GalleryButton");var a=4;switch(this.$4E_1){case 1:a=3;break;case 2:a=4;break;case 3:a=5;break;case 4:a=6;break;case 5:a=7;break;case 6:a=8;break;case 7:a=9}this.$4H_1=CUI.Utility.$3("img");this.$4I_1=CUI.Utility.$j(2,a,this.get_properties().Image,this.get_properties().ImageClass,this.$4H_1,true,false,this.get_properties().ImageTop,this.get_properties().ImageLeft);this.$4H_1.alt=c;this.$H_1.appendChild(this.$4I_1)}this.$O(b);return this.$E_1;default:this.ensureValidDisplayMode(b);return null}},$35:function(a){ULSqdK:;var b=$get(this.$6_0+"-"+a);this.storeElementForDisplayMode(b,a);switch(a){case "Large":case "Menu":this.$E_1=b;this.$H_1=this.$E_1.childNodes[0];this.$4I_1=this.$H_1.childNodes[0];this.$4H_1=this.$4I_1.childNodes[0]}},$O:function(a){ULSqdK:;switch(a){case "Large":case "Menu":this.$N_1()}},$N_1:function(){ULSqdK:;$addHandler(this.$H_1,"click",this.$1G);$addHandler(this.$H_1,"focus",this.$3K);$addHandler(this.$H_1,"mouseover",this.$3K);$addHandler(this.$H_1,"blur",this.$3H);$addHandler(this.$H_1,"mouseout",this.$3H)},get_$15:function(){ULSqdK:;return "GalleryButton"},onEnabledChanged:function(a){ULSqdK:;if(a)CUI.Utility.enableElement(this.$H_1);else CUI.Utility.disableElement(this.$H_1)},onClick:function(d){ULSqdK:;this.$X();d.preventDefault();if(!this.get_enabled())return;this.toggle();var b=1,c=this.get_properties().CommandType,a=this.get_stateProperties();a[CUI.Controls.GalleryButtonCommandProperties.CommandValueId]=this.get_properties().CommandValueId;a["MenuItemId"]=this.get_properties().MenuItemId;a["SourceControlId"]=this.get_properties().Id;if(!CUI.ScriptUtility.isNullOrUndefined(c)&&c==="OptionSelection")b=3;this.get_displayedComponent().raiseCommandEvent(this.get_properties().Command,b,a);if(this.$0_0.get_$4x())this.$4y();else this.$51_1(this.get_stateProperties()[CUI.Controls.GalleryButtonCommandProperties.On])},onFocus:function(){ULSqdK:;this.onBeginFocus();if(!this.get_enabled())return;this.$0_0.set_$o(this);if(CUI.ScriptUtility.isNullOrUndefined(this.get_properties().CommandPreview))return;var a=5,b=this.get_properties().CommandType;this.get_stateProperties()[CUI.Controls.GalleryButtonCommandProperties.CommandValueId]=this.get_properties().CommandValueId;if(!CUI.ScriptUtility.isNullOrUndefined(b)&&b==="OptionSelection")a=7;this.get_displayedComponent().raiseCommandEvent(this.get_properties().CommandPreview,a,this.get_stateProperties())},onBlur:function(){ULSqdK:;this.onEndFocus();if(!this.get_enabled())return;if(CUI.ScriptUtility.isNullOrUndefined(this.get_properties().CommandRevert))return;var a=6,b=this.get_properties().CommandType;if(!CUI.ScriptUtility.isNullOrUndefined(b)&&b==="OptionSelection"){a=8;this.get_stateProperties()[CUI.Controls.GalleryButtonCommandProperties.CommandValueId]=this.get_properties().CommandValueId}this.get_displayedComponent().raiseCommandEvent(this.get_properties().CommandRevert,a,this.get_stateProperties())},getDropDownDOMElementForDisplayMode:function(){ULSqdK:;return CUI.Utility.$3("span")},deselect:function(){ULSqdK:;this.set_selected(false)},getMenuItemId:function(){ULSqdK:;return this.get_properties().MenuItemId},getCommandValueId:function(){ULSqdK:;return this.get_properties().CommandValueId},focusOnDisplayedComponent:function(){ULSqdK:;this.receiveFocus()},getTextValue:function(){ULSqdK:;return this.get_properties().Alt},receiveFocus:function(){ULSqdK:;this.$H_1.focus()},onMenuClosed:function(){ULSqdK:;CUI.Controls.GalleryButton.callBaseMethod(this,"onMenuClosed")},$39_1:function(){ULSqdK:;CUI.Utility.ensureCSSClassOnElement(this.$E_1,"ms-cui-gallerybutton-highlighted")},$1T_1:function(){ULSqdK:;CUI.Utility.removeCSSClassFromElement(this.$E_1,"ms-cui-gallerybutton-highlighted")},toggle:function(){ULSqdK:;var a=!this.get_stateProperties()[CUI.Controls.GalleryButtonCommandProperties.On];this.get_stateProperties()[CUI.Controls.GalleryButtonCommandProperties.On]=a;this.$51_1(a)},$51_1:function(a){ULSqdK:;if(a)this.$39_1();else this.$1T_1()},$4y:function(){ULSqdK:;var a=this.get_stateProperties();a[CUI.Controls.GalleryButtonCommandProperties.CommandValueId]=this.get_properties().CommandValueId;a["MenuItemId"]=this.get_properties().MenuItemId;a["SourceControlId"]=this.get_properties().Id;var b=this.pollForStateAndUpdateInternal(this.get_properties().Command,this.get_properties().QueryCommand,a,false);b&&this.$51_1(this.get_stateProperties()[CUI.Controls.GalleryButtonCommandProperties.On])},get_selected:function(){ULSqdK:;return this.get_stateProperties()[CUI.Controls.GalleryButtonCommandProperties.On]},set_selected:function(a){ULSqdK:;this.get_stateProperties()[CUI.Controls.GalleryButtonCommandProperties.On]=a;if(a)this.$39_1();else this.$1T_1();return a},get_elementDimensions:function(){ULSqdK:;return this.$4E_1},set_elementDimensions:function(a){ULSqdK:;this.$4E_1=a;return a},dispose:function(){ULSqdK:;CUI.Controls.GalleryButton.callBaseMethod(this,"dispose");this.$E_1=null;this.$H_1=null;this.$4H_1=null;this.$4I_1=null},get_properties:function(){ULSqdK:;return this.$5_0}};CUI.Controls.InsertTableCommandProperties=function(){};CUI.Controls.InsertTable=function(b,c,a){ULSqdK:;this.$53=Function.createDelegate(this,this.$An_1);this.$55=Function.createDelegate(this,this.$Ap_1);this.$54=Function.createDelegate(this,this.$Ao_1);this.$8E=Function.createDelegate(this,this.$DC_1);this.$1b_1=-1;this.$43_1=-1;this.$44_1=-1;CUI.Controls.InsertTable.initializeBase(this,[b,c,a]);this.addDisplayMode("Menu")};CUI.Controls.InsertTable.prototype={$2I_1:null,$4g_1:null,createComponentForDisplayModeInternal:function(b){ULSqdK:;if(this.$k_0.length>0)throw Error.create("Only one ControlComponent can be created for each InsertTable Control");var a;a=this.$0_0.$3w(this.$6_0+"-"+b+this.$0_0.$27(),b,this);return a},$E_1:null,$2o_1:null,createDOMElementForDisplayMode:function(i){ULSqdK:;switch(i){case "Menu":this.$E_1=CUI.Utility.$3("table");this.$E_1.setAttribute("mscui:controltype",this.get_$15());this.$2o_1=CUI.Utility.$3("tbody");this.$2o_1.className="ms-cui-it";this.$E_1.setAttribute("cellspacing","0");this.$E_1.setAttribute("cellpadding","0");this.$2o_1.setAttribute("cellspacing","0");this.$2o_1.setAttribute("cellpadding","0");$addHandler(this.$E_1,"mouseout",this.$8E);this.$Ca_1();for(var f,a,c,d,b,e=0,g=0;g<10;g++){f=CUI.Utility.$3("tr");this.$2o_1.appendChild(f);for(var h=0;h<10;h++){a=CUI.Utility.$3("td");a.style.padding="0px";f.appendChild(a);c=CUI.Utility.$3("a");CUI.Utility.$1q(c);CUI.Utility.$1g(this.get_$1_1(),c);$addHandler(c,"focus",this.$54);d=CUI.Utility.$3("div");d.className="ms-cui-it-inactiveCell";b=CUI.Utility.$3("div");b.id=this.$6_0+"-"+e;b.className="ms-cui-it-inactiveCellOuter";$addHandler(a,"mouseover",this.$55);$addHandler(a,"click",this.$53);a.appendChild(b);b.appendChild(d);d.appendChild(c);this.$2I_1[e]=d;this.$4g_1[e]=b;e++}}this.$E_1.appendChild(this.$2o_1);return this.$E_1;default:this.ensureValidDisplayMode(i)}return null},onEnabledChanged:function(){},get_$15:function(){ULSqdK:;return "InsertTable"},$An_1:function(b){ULSqdK:;!CUI.ScriptUtility.isNullOrUndefined(CUI.PMetrics)&&CUI.PMetrics.perfMark(7702);b.preventDefault();if(!this.get_enabled())return;var c=this.$7O_1(b.target),a=this.$7M_1(c),d=this.$4s_1(a),e=this.$4t_1(a);this.$76_1();this.get_commandProperties()["Rows"]=e+1;this.get_commandProperties()["Columns"]=d+1;this.get_displayedComponent().raiseCommandEvent(this.get_$1_1().Command,1,this.get_commandProperties());!CUI.ScriptUtility.isNullOrUndefined(CUI.PMetrics)&&CUI.PMetrics.perfMark(7703)},$7O_1:function(a){ULSqdK:;while(a.hasChildNodes())a=a.childNodes[0];return a.parentNode.parentNode},$BG_1:function(b){ULSqdK:;var c=b.childNodes[0].childNodes[0],a=this.$7M_1(b);c.title=this.$AL_1(this.$4t_1(a)+1,this.$4s_1(a)+1)},$AL_1:function(b,c){ULSqdK:;var a=this.get_$1_1().Alt;if(CUI.ScriptUtility.isNullOrUndefined(a))a=this.get_$1_1().MenuSectionTitle;a=String.format(a,c.toString(),b.toString());return a},$Ap_1:function(b){ULSqdK:;if(!this.get_enabled())return;var a=this.$7O_1(b.target);this.$BG_1(a);this.$AY_1(a)},$Ao_1:function(b){ULSqdK:;if(!this.get_enabled())return;var a=this.$7O_1(b.target);this.$BG_1(a);this.$AY_1(a)},$DC_1:function(b){ULSqdK:;var a=CUI.Utility.$AP(this.$E_1);(b.clientX<=a.x||b.clientX>=a.x+a.width||b.clientY<=a.y||b.clientY>=a.y+a.height)&&this.$60_1()},$60_1:function(){ULSqdK:;this.$EG_1();this.$7E_1();this.$43_1=-1;this.$44_1=-1;this.$3C_1=false},$7M_1:function(a){ULSqdK:;return parseInt(a.id.substr(this.$6_0.length+1))},$3C_1:false,$AY_1:function(b){ULSqdK:;var a=this.$7M_1(b);if(this.$1b_1===a)return;this.$Cz_1(a)},$Cz_1:function(a){ULSqdK:;this.$Bb_1(a);this.$1b_1=a;this.$7E_1();this.$B8_1(a)},$4t_1:function(a){ULSqdK:;return Math.floor(a/10)},$4s_1:function(a){ULSqdK:;return a%10},$Bb_1:function(e){ULSqdK:;var c=this.$4s_1(e),d=this.$4t_1(e),a=-1,b=-1;if(this.$1b_1!==-1){a=this.$4t_1(this.$1b_1);b=this.$4s_1(this.$1b_1)}while(a!==d||b!==c)if(a<d)this.$BE_1(++a,b,true);else if(a>d){this.$BE_1(a,b,false);a--}else if(b<c)this.$BA_1(++b,a,true);else if(b>c){this.$BA_1(b,a,false);b--}this.get_$Ab_1().$BF(this.$AL_1(d+1,c+1))},$BE_1:function(b,c,d){ULSqdK:;for(var a=0;a<=c;a++)this.$B9_1(b,a,d)},$BA_1:function(b,c,d){ULSqdK:;for(var a=0;a<=c;a++)this.$B9_1(a,b,d)},$B9_1:function(d,e,f){ULSqdK:;var a=d*10+e,b=this.$2I_1[a],c=this.$4g_1[a];if(f){b.className="ms-cui-it-activeCell";c.className="ms-cui-it-activeCellOuter"}else{b.className="ms-cui-it-inactiveCell";c.className="ms-cui-it-inactiveCellOuter"}},$EG_1:function(){ULSqdK:;for(var a=0;a<100;a++){this.$2I_1[a].className="ms-cui-it-inactiveCell";this.$4g_1[a].className="ms-cui-it-inactiveCellOuter"}this.$1b_1=-1;var b=this.get_$1_1().MenuSectionInitialTitle;if(CUI.ScriptUtility.isNullOrUndefined(b))b="";this.get_$Ab_1().$BF(b)},$Ca_1:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$2I_1))this.$2I_1=new Array(100);if(CUI.ScriptUtility.isNullOrUndefined(this.$4g_1))this.$4g_1=new Array(100)},receiveFocus:function(){ULSqdK:;var a=this.$2I_1[0];if(CUI.ScriptUtility.isNullOrUndefined(a))return;a.firstChild.focus()},$76_1:function(){ULSqdK:;this.$43_1=-1;this.$44_1=-1;this.$3C_1=false},$7E_1:function(){ULSqdK:;if(this.$3C_1){var a=this.get_$1_1().CommandRevert;if(!CUI.ScriptUtility.isNullOrUndefined(a)){this.get_commandProperties()["Rows"]=this.$44_1+1;this.get_commandProperties()["Columns"]=this.$43_1+1;this.get_displayedComponent().raiseCommandEvent(a,6,this.get_commandProperties())}this.$76_1()}},$B8_1:function(b){ULSqdK:;this.$43_1=this.$4s_1(b);this.$44_1=this.$4t_1(b);this.$3C_1=true;var a=this.get_$1_1().CommandPreview;if(!CUI.ScriptUtility.isNullOrUndefined(a)){this.get_commandProperties()["Rows"]=this.$44_1+1;this.get_commandProperties()["Columns"]=this.$43_1+1;this.get_displayedComponent().raiseCommandEvent(a,5,this.get_commandProperties())}},get_$Ab_1:function(){ULSqdK:;var a=this.get_displayedComponent().$K_0;if(!CUI.MenuSection.isInstanceOfType(a))throw Error.create("InsertTable must live inside of a MenuSection.");return a},onMenuClosed:function(){ULSqdK:;this.$60_1()},$2i:function(){ULSqdK:;if(this.$1b_1===99){this.$60_1();return false}this.$2I_1[this.$1b_1+1].firstChild.focus();return true},$2j:function(){ULSqdK:;if(!this.$1b_1){this.$60_1();return false}else if(this.$1b_1===-1)this.$2I_1[99].firstChild.focus();else this.$2I_1[this.$1b_1-1].firstChild.focus();return true},dispose:function(){ULSqdK:;CUI.Controls.InsertTable.callBaseMethod(this,"dispose");this.$E_1=null;this.$2o_1=null},get_$1_1:function(){ULSqdK:;return this.$5_0}};CUI.Controls.LabelCommandProperties=function(){};CUI.Controls.Label=function(b,c,a){ULSqdK:;CUI.Controls.Label.initializeBase(this,[b,c,a]);this.addDisplayMode("Medium");this.addDisplayMode("Small")};CUI.Controls.Label.prototype={$E_1:null,$5K_1:null,$2B_1:null,$9_1:null,$4S_1:null,$5i_1:"",createDOMElementForDisplayMode:function(e){ULSqdK:;var a=this.get_$1_1().ForId,b=this.get_$1_1().LabelText;switch(e){case "Medium":if(a){this.$E_1=CUI.Utility.$3("label");if(CUI.Utility.$3B())this.$E_1.setAttribute("htmlFor",a);else this.$E_1.setAttribute("for",a)}else this.$E_1=CUI.Utility.$3("span");this.$E_1.setAttribute("mscui:controltype",this.get_$15());this.$E_1.className="ms-cui-ctl-small ms-cui-fslb";if(!CUI.ScriptUtility.isNullOrEmptyString(this.get_$1_1().Image16by16)){this.$5K_1=CUI.Utility.$3("img");var g=CUI.Utility.$j(2,3,this.get_$1_1().Image16by16,this.get_$1_1().Image16by16Class,this.$5K_1,true,false,this.get_$1_1().Image16by16Top,this.get_$1_1().Image16by16Left),d=CUI.Utility.$3("span");d.className="ms-cui-ctl-iconContainer";d.appendChild(g);this.$E_1.appendChild(d)}this.$2B_1=CUI.Utility.$3("span");this.$2B_1.className="ms-cui-ctl-mediumlabel";!CUI.ScriptUtility.isNullOrUndefined(b)&&CUI.UIUtility.setInnerText(this.$2B_1,b);this.$E_1.appendChild(this.$2B_1);return this.$E_1;case "Small":if(a){this.$9_1=CUI.Utility.$3("label");if(CUI.Utility.$3B())this.$9_1.setAttribute("htmlFor",a);else this.$9_1.setAttribute("for",a)}else this.$9_1=CUI.Utility.$3("span");this.$9_1.setAttribute("mscui:controltype",this.get_$15());this.$9_1.className="ms-cui-ctl-small ms-cui-fslb";if(CUI.ScriptUtility.isNullOrEmptyString(this.get_$1_1().Image16by16))throw Error.argumentNull("Image16by16","Small display mode must have an icon set");this.$4S_1=CUI.Utility.$3("img");var f=CUI.Utility.$j(2,3,this.get_$1_1().Image16by16,this.get_$1_1().Image16by16Class,this.$4S_1,true,false,this.get_$1_1().Image16by16Top,this.get_$1_1().Image16by16Left);if(!CUI.ScriptUtility.isNullOrUndefined(b))this.$4S_1.alt=b;var c=CUI.Utility.$3("span");c.className="ms-cui-ctl-iconContainer";c.appendChild(f);this.$9_1.appendChild(c);return this.$9_1;default:this.ensureValidDisplayMode(e)}return null},$35:function(b){ULSqdK:;var a=$get(this.$6_0+"-"+b);this.storeElementForDisplayMode(a,b);switch(b){case "Medium":this.$E_1=a;if(!CUI.ScriptUtility.isNullOrEmptyString(this.get_$1_1().Image16by16)){this.$5K_1=this.$E_1.firstChild.firstChild.firstChild;this.$2B_1=this.$E_1.childNodes[1]}else this.$2B_1=this.$E_1.firstChild;break;case "Small":this.$9_1=a;this.$4S_1=this.$9_1.firstChild.firstChild.firstChild}},onEnabledChanged:function(a){ULSqdK:;CUI.Utility.setEnabledOnElement(this.$E_1,a);CUI.Utility.setEnabledOnElement(this.$9_1,a)},get_$15:function(){ULSqdK:;return "Label"},$4y:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.get_$1_1().Command))return;var a=this.pollForStateAndUpdateInternal(this.get_$1_1().Command,this.get_$1_1().QueryCommand,this.get_stateProperties(),false);if(a&&!CUI.ScriptUtility.isNullOrUndefined(this.get_$1_1().QueryCommand)){var b=this.$5i_1;if(!CUI.ScriptUtility.isNullOrEmptyString(this.get_stateProperties()[CUI.Controls.LabelCommandProperties.Value])){CUI.UIUtility.setInnerText(this.$2B_1,this.get_stateProperties()[CUI.Controls.LabelCommandProperties.Value]);this.$5i_1=this.get_stateProperties()[CUI.Controls.LabelCommandProperties.Value]}else{CUI.UIUtility.setInnerText(this.$2B_1,this.get_$1_1().LabelText);this.$5i_1=this.get_$1_1().LabelText}if(this.$5i_1!==b)this.$0_0.$3N_1=true}},dispose:function(){ULSqdK:;CUI.Controls.Label.callBaseMethod(this,"dispose");this.$E_1=null;this.$5K_1=null;this.$2B_1=null;this.$9_1=null;this.$4S_1=null},get_$1_1:function(){ULSqdK:;return this.$5_0}};CUI.Controls.MRUSplitButton=function(c,d,a,b){ULSqdK:;this.$3J=Function.createDelegate(this,this.onDblClick);this.$8z=Function.createDelegate(this,this.$Ay_3);this.$5A=Function.createDelegate(this,this.$Dc_3);this.$5B=Function.createDelegate(this,this.$Dd_3);CUI.Controls.MRUSplitButton.initializeBase(this,[c,d,a,b])};CUI.Controls.MRUSplitButton.prototype={$F_3:null,$1H_3:null,$R_3:null,$1u_3:null,$8_3:null,$Y_3:null,$S_3:null,$2E_3:null,$9_3:null,$1O_3:null,$U_3:null,$2G_3:null,$1U_3:false,$3P_3:false,$7o:function(){ULSqdK:;if(!this.get_enabled())return false;if(this.$1U_3){this.get_displayedComponent().get_$2().firstChild.firstChild.focus();return true}return false},createDOMElementForDisplayMode:function(d){ULSqdK:;var b=true,a=CUI.ScriptUtility.isNullOrEmptyString(this.get_properties().Alt)?"":this.get_properties().Alt,f=d==="Medium"&&!CUI.ScriptUtility.isNullOrUndefined(this.get_properties().Width)?this.get_properties().Width:"auto",c=null,e=this.get_stateProperties()[CUI.Controls.DropDownCommandProperties.SelectedItemId];if(CUI.ScriptUtility.isNullOrUndefined(e))e=this.get_properties().InitialItem;this.$3P_3=true;switch(d){case "Large":this.$F_3=CUI.Utility.$3("span");this.$F_3.setAttribute("mscui:controltype",this.get_$15());CUI.Utility.ensureCSSClassOnElement(this.$F_3,"ms-cui-ctl-large");this.$1H_3=CUI.Utility.$3("span");this.$1H_3.className="ms-cui-mrusb-selecteditem";if(!this.$2R(e))if(!CUI.Utility.$v(this.get_properties().PopulateDynamically))throw Error.create("No menu item with id '"+this.get_properties().InitialItem+"' exists in this control's menu");else{this.$1H_3.style.width="32px";this.$1H_3.style.height="32px"}this.$R_3=CUI.Utility.$3("a");this.$R_3.className="ms-cui-ctl-a2";this.$R_3.style.display="block";this.$R_3.setAttribute("role",this.get_$25());this.$R_3.setAttribute("aria-haspopup",true);CUI.Utility.$1q(this.$R_3);CUI.Utility.$1g(this.get_properties(),this.$R_3);this.$1u_3=CUI.Utility.$3("img");var g=CUI.Utility.$j(2,1,this.$0_0.$5_1.ImageDownArrow,this.$0_0.$5_1.ImageDownArrowClass,this.$1u_3,true,false,this.$0_0.$5_1.ImageDownArrowTop,this.$0_0.$5_1.ImageDownArrowLeft);if(CUI.ScriptUtility.isNullOrEmptyString(this.get_properties().ToolTipTitle)){b=false;this.$R_3.title=a;this.$1u_3.alt=a}this.$O(d);this.$R_3.appendChild(g);if(b){c=CUI.Utility.$2h(a);this.$R_3.appendChild(c)}this.$F_3.appendChild(this.$1H_3);this.$F_3.appendChild(this.$R_3);this.$3P_3=false;return this.$F_3;case "Medium":this.$8_3=CUI.Utility.$3("span");this.$8_3.setAttribute("mscui:controltype",this.get_$15());this.$8_3.className="ms-cui-ctl-medium ms-cui-ctl";this.$Y_3=CUI.Utility.$3("span");this.$Y_3.className="ms-cui-mrusb-selecteditem";this.$Y_3.style.width=f;if(!this.$2R(e))throw Error.create("No menu item with id '"+this.get_properties().InitialItem+"' exists in this control's menu");this.$S_3=CUI.Utility.$3("a");CUI.Utility.$1q(this.$S_3);CUI.Utility.$1g(this.get_properties(),this.$S_3);this.$S_3.className="ms-cui-ctl";this.$S_3.setAttribute("role",this.get_$25());this.$S_3.setAttribute("aria-haspopup",true);this.$2E_3=CUI.Utility.$3("img");if(CUI.ScriptUtility.isNullOrEmptyString(this.get_properties().ToolTipTitle)){b=false;this.$S_3.title=a;this.$2E_3.alt=a}var h=CUI.Utility.$j(2,1,this.$0_0.$5_1.ImageDownArrow,this.$0_0.$5_1.ImageDownArrowClass,this.$2E_3,true,false,this.$0_0.$5_1.ImageDownArrowTop,this.$0_0.$5_1.ImageDownArrowLeft);this.$O(d);this.$S_3.appendChild(h);if(b){c=CUI.Utility.$2h(a);this.$S_3.appendChild(c)}this.$8_3.appendChild(this.$Y_3);this.$8_3.appendChild(this.$S_3);this.$3P_3=false;return this.$8_3;case "Small":this.$9_3=CUI.Utility.$3("span");this.$9_3.setAttribute("mscui:controltype",this.get_$15());this.$9_3.className="ms-cui-ctl-medium ms-cui-ctl";this.$1O_3=CUI.Utility.$3("span");this.$1O_3.className="ms-cui-mrusb-selecteditem";this.$1O_3.style.width=f;if(!this.$2R(e))throw Error.create("No menu item with id '"+this.get_properties().InitialItem+"' exists in this control's menu");this.$U_3=CUI.Utility.$3("a");CUI.Utility.$1q(this.$U_3);CUI.Utility.$1g(this.get_properties(),this.$U_3);this.$U_3.setAttribute("role",this.get_$25());this.$U_3.setAttribute("aria-haspopup",true);this.$U_3.className="ms-cui-ctl ms-cui-mrusb-arwbtn";this.$2G_3=CUI.Utility.$3("img");if(CUI.ScriptUtility.isNullOrEmptyString(this.get_properties().ToolTipTitle)){this.$U_3.title=a;this.$2G_3.alt=a;b=false}var i=CUI.Utility.$j(2,1,this.$0_0.$5_1.ImageDownArrow,this.$0_0.$5_1.ImageDownArrowClass,this.$2G_3,true,false,this.$0_0.$5_1.ImageDownArrowTop,this.$0_0.$5_1.ImageDownArrowLeft);this.$O(d);this.$U_3.appendChild(i);if(b){c=CUI.Utility.$2h(a);this.$U_3.appendChild(c)}this.$9_3.appendChild(this.$1O_3);this.$9_3.appendChild(this.$U_3);this.$3P_3=false;return this.$9_3;default:this.$3P_3=false;this.ensureValidDisplayMode(d);return null}},$35:function(b){ULSqdK:;var a=$get(this.$6_0+"-"+b);this.storeElementForDisplayMode(a,b);switch(b){case "Large":this.$F_3=a;this.$1H_3=this.$F_3.childNodes[0];this.$R_3=this.$F_3.childNodes[1];this.$1u_3=this.$R_3.childNodes[0].childNodes[0];break;case "Medium":this.$8_3=a;this.$Y_3=this.$8_3.childNodes[0];this.$S_3=this.$8_3.childNodes[1];this.$2E_3=this.$S_3.childNodes[0].childNodes[0];break;case "Small":this.$9_3=a;this.$1O_3=this.$9_3.childNodes[0];this.$U_3=this.$9_3.childNodes[1];this.$2G_3=this.$U_3.childNodes[0].childNodes[0]}},$O:function(a){ULSqdK:;this.$N_3(a)},$N_3:function(a){ULSqdK:;switch(a){case "Large":$addHandler(this.$R_3,"click",this.$3F);$addHandler(this.$1H_3,"mouseover",this.$5B);$addHandler(this.$1H_3,"mouseout",this.$5A);$addHandler(this.$R_3,"mouseover",this.$2l);$addHandler(this.$R_3,"mouseout",this.$1h);$addHandler(this.$R_3,"focus",this.$47);$addHandler(this.$R_3,"blur",this.$1h);$addHandler(this.$R_3,"keypress",this.$3G);break;case "Medium":$addHandler(this.$S_3,"click",this.$3F);$addHandler(this.$Y_3,"mouseover",this.$5B);$addHandler(this.$Y_3,"mouseout",this.$5A);$addHandler(this.$S_3,"mouseover",this.$2l);$addHandler(this.$S_3,"mouseout",this.$1h);$addHandler(this.$S_3,"focus",this.$47);$addHandler(this.$S_3,"blur",this.$1h);$addHandler(this.$S_3,"keypress",this.$3G);break;case "Small":$addHandler(this.$U_3,"click",this.$3F);$addHandler(this.$1O_3,"mouseover",this.$5B);$addHandler(this.$1O_3,"mouseout",this.$5A);$addHandler(this.$U_3,"mouseover",this.$2l);$addHandler(this.$U_3,"mouseout",this.$1h);$addHandler(this.$U_3,"focus",this.$47);$addHandler(this.$U_3,"blur",this.$1h);$addHandler(this.$U_3,"keypress",this.$3G)}},get_$15:function(){ULSqdK:;return "MRUSplitButton"},selectMenuItem:function(d){ULSqdK:;if(this._selectedControl===d&&!this.$3P_3)return;var e=!CUI.ScriptUtility.isNullOrUndefined(this.get_displayedComponent())?this.get_displayedComponent().get_title():this.$6D_0,a;switch(e){case "Large":a=this.$1H_3;break;case "Medium":a=this.$Y_3;break;case "Small":a=this.$1O_3;break;default:throw Error.create("Invalid display mode on split button while selecting a menu item")}this._selectedControl=d;this.get_stateProperties()[CUI.Controls.DropDownCommandProperties.SelectedItemId]=d.getMenuItemId();var f=d;if(CUI.MenuItem.isInstanceOfType(f.get_displayedComponent()))this.$B_1.$3p_1=f.get_displayedComponent();var b=this._selectedControl.getDropDownDOMElementForDisplayMode(e);if(b.childNodes.length>1){var c=b.childNodes[1];if(c.childNodes.length>1)if(c.childNodes[1].tagName.toLowerCase()==="br"){var g=CUI.Utility.$3("span");CUI.Utility.$2k(g," ");c.replaceChild(g,c.childNodes[1])}}b.id=this.$6_0+"-SelectedItem";if(a.hasChildNodes()){var h=a.firstChild;a.replaceChild(b,h);$clearHandlers(h)}else a.appendChild(b);$addHandler(b,"click",this.$8z);$addHandler(b,"dblclick",this.$3J)},addDisplayModes:function(){ULSqdK:;this.addDisplayMode("Large");this.addDisplayMode("Medium");this.addDisplayMode("Small")},launchMenuInternal:function(){ULSqdK:;var a=false;this.$0_0.$2v_1=false;switch(this.get_displayedComponent().get_title()){case "Large":a=this.launchMenu(this.$R_3,this.$3M);break;case "Medium":a=this.launchMenu(this.$S_3,this.$3M);break;case "Small":a=this.launchMenu(this.$U_3,this.$3M)}a&&this.sendMenuCreationCommandEvent()},onEnabledChanged:function(b){ULSqdK:;CUI.Controls.MRUSplitButton.callBaseMethod(this,"onEnabledChanged",[b]);var a="ms-cui-disabled";this.$1U_3=b;if(b){CUI.Utility.removeCSSClassFromElement(this.$F_3,a);CUI.Utility.enableElement(this.$R_3);CUI.Utility.removeCSSClassFromElement(this.$8_3,a);CUI.Utility.enableElement(this.$S_3);CUI.Utility.removeCSSClassFromElement(this.$9_3,a);CUI.Utility.enableElement(this.$U_3)}else{CUI.Utility.ensureCSSClassOnElement(this.$F_3,a);CUI.Utility.disableElement(this.$R_3);CUI.Utility.ensureCSSClassOnElement(this.$8_3,a);CUI.Utility.disableElement(this.$S_3);CUI.Utility.ensureCSSClassOnElement(this.$9_3,a);CUI.Utility.disableElement(this.$U_3)}CUI.Utility.setEnabledOnElement(this.$R_3,b);CUI.Utility.setEnabledOnElement(this.$S_3,b);CUI.Utility.setEnabledOnElement(this.$U_3,b)},onDblClick:function(a){ULSqdK:;this.$X();a.preventDefault();if(!this.get_enabled())return;this.$Ay_3(a)},$Ay_3:function(b){ULSqdK:;CUI.PMetrics.perfMark(7735);this.$X();b.preventDefault();if(!this.get_enabled())return;var a=3;this.get_displayedComponent().raiseCommandEvent(this.get_properties().Command,a,{CommandValueId:this._selectedControl.getCommandValueId()})},$Dd_3:function(){ULSqdK:;this.onBeginFocus();if(!this.get_enabled())return;switch(this.get_displayedComponent().get_title()){case "Large":CUI.Utility.ensureCSSClassOnElement(this.$1H_3,"ms-cui-ctl-light-hoveredOver");CUI.Utility.ensureCSSClassOnElement(this.$R_3,"ms-cui-ctl-split-hover");break;case "Medium":CUI.Utility.ensureCSSClassOnElement(this.$Y_3,"ms-cui-ctl-light-hoveredOver");CUI.Utility.ensureCSSClassOnElement(this.$S_3,"ms-cui-ctl-split-hover");break;case "Small":CUI.Utility.ensureCSSClassOnElement(this.$1O_3,"ms-cui-ctl-light-hoveredOver");CUI.Utility.ensureCSSClassOnElement(this.$U_3,"ms-cui-ctl-split-hover")}if(CUI.ScriptUtility.isNullOrEmptyString(this.get_properties().CommandPreview))return;this.get_displayedComponent().raiseCommandEvent(this.get_properties().CommandPreview,5,{CommandValueId:this._selectedControl.getCommandValueId()})},$Dc_3:function(){ULSqdK:;this.onEndFocus();if(!this.get_enabled())return;switch(this.get_displayedComponent().get_title()){case "Large":CUI.Utility.removeCSSClassFromElement(this.$1H_3,"ms-cui-ctl-light-hoveredOver");CUI.Utility.removeCSSClassFromElement(this.$R_3,"ms-cui-ctl-split-hover");break;case "Medium":CUI.Utility.removeCSSClassFromElement(this.$Y_3,"ms-cui-ctl-light-hoveredOver");CUI.Utility.removeCSSClassFromElement(this.$S_3,"ms-cui-ctl-split-hover");break;case "Small":CUI.Utility.removeCSSClassFromElement(this.$1O_3,"ms-cui-ctl-light-hoveredOver");CUI.Utility.removeCSSClassFromElement(this.$U_3,"ms-cui-ctl-split-hover")}if(CUI.ScriptUtility.isNullOrEmptyString(this.get_properties().CommandRevert))return;this.get_displayedComponent().raiseCommandEvent(this.get_properties().CommandRevert,6,{CommandValueId:this._selectedControl.getCommandValueId()})},highlight:function(){ULSqdK:;switch(this.get_displayedComponent().get_title()){case "Large":CUI.Utility.ensureCSSClassOnElement(this.$1H_3,"ms-cui-ctl-split-hover");CUI.Utility.ensureCSSClassOnElement(this.$R_3,"ms-cui-ctl-light-hoveredOver");break;case "Medium":CUI.Utility.ensureCSSClassOnElement(this.$Y_3,"ms-cui-ctl-split-hover");CUI.Utility.ensureCSSClassOnElement(this.$S_3,"ms-cui-ctl-light-hoveredOver");break;case "Small":CUI.Utility.ensureCSSClassOnElement(this.$1O_3,"ms-cui-ctl-split-hover");CUI.Utility.ensureCSSClassOnElement(this.$U_3,"ms-cui-ctl-light-hoveredOver")}},removeHighlight:function(){ULSqdK:;switch(this.get_displayedComponent().get_title()){case "Large":CUI.Utility.removeCSSClassFromElement(this.$1H_3,"ms-cui-ctl-split-hover");CUI.Utility.removeCSSClassFromElement(this.$R_3,"ms-cui-ctl-light-hoveredOver");break;case "Medium":CUI.Utility.removeCSSClassFromElement(this.$Y_3,"ms-cui-ctl-split-hover");CUI.Utility.removeCSSClassFromElement(this.$S_3,"ms-cui-ctl-light-hoveredOver");break;case "Small":CUI.Utility.removeCSSClassFromElement(this.$1O_3,"ms-cui-ctl-split-hover");CUI.Utility.removeCSSClassFromElement(this.$U_3,"ms-cui-ctl-light-hoveredOver")}},dispose:function(){ULSqdK:;CUI.Controls.MRUSplitButton.callBaseMethod(this,"dispose");this.$F_3=null;this.$1u_3=null;this.$R_3=null;this.$1H_3=null;this.$8_3=null;this.$2E_3=null;this.$S_3=null;this.$Y_3=null;this.$9_3=null;this.$2G_3=null;this.$U_3=null;this.$1O_3=null}};CUI.Controls.Separator=function(b,c,a){ULSqdK:;CUI.Controls.Separator.initializeBase(this,[b,c,a]);this.addDisplayMode("Small")};CUI.Controls.Separator.prototype={$5P_1:null,$5Q_1:null,$9_1:null,createDOMElementForDisplayMode:function(a){ULSqdK:;switch(a){case "Small":this.$5P_1=CUI.Utility.$3("img");this.$5P_1.style.cursor="default";this.$5Q_1=CUI.Utility.$j(2,11,this.get_$1_1().Image,this.get_$1_1().ImageClass,this.$5P_1,true,false,this.get_$1_1().ImageTop,this.get_$1_1().ImageLeft);this.$9_1=CUI.Utility.$3("span");this.$9_1.className="ms-cui-ctl ms-cui-ctl-small ms-cui-separator";this.$9_1.appendChild(this.$5Q_1);return this.$9_1;default:this.ensureValidDisplayMode(a)}return null},$35:function(a){ULSqdK:;var b=$get(this.$6_0+"-"+a);this.storeElementForDisplayMode(b,a);switch(a){case "Small":this.$5Q_1=b}},onEnabledChanged:function(){},get_$15:function(){ULSqdK:;return "Separator"},$4y:function(){},dispose:function(){ULSqdK:;CUI.Controls.Separator.callBaseMethod(this,"dispose");this.$5P_1=null;this.$5Q_1=null;this.$9_1=null},get_$1_1:function(){ULSqdK:;return this.$5_0}};CUI.Controls.SpinnerCommandProperties=function(){};CUI.Controls.Spinner=function(c,d,a,b){ULSqdK:;this.$7u=Function.createDelegate(this,this.$BT_1);this.$7v=Function.createDelegate(this,this.$BU_1);this.$9A=Function.createDelegate(this,this.$EC_1);this.$9B=Function.createDelegate(this,this.$ED_1);this.$8q=Function.createDelegate(this,this.$At_1);this.$8k=Function.createDelegate(this,this.$DU_1);this.$96=Function.createDelegate(this,this.$Di_1);this.$8J=Function.createDelegate(this,this.$DE_1);this.$8r=Function.createDelegate(this,this.$Au_1);this.$8l=Function.createDelegate(this,this.$DV_1);this.$97=Function.createDelegate(this,this.$Dj_1);this.$8K=Function.createDelegate(this,this.$DF_1);this.$8U=Function.createDelegate(this,this.$DL_1);this.$8P=Function.createDelegate(this,this.$DH_1);this.$56=Function.createDelegate(this,this.$Aq_1);this.$95=Function.createDelegate(this,this.$5y_1);this.$8I=Function.createDelegate(this,this.$5v_1);this.$8C=Function.createDelegate(this,this.$7Y_1);this.$2m=Function.createDelegate(this,this.$4u_1);this.$3L=Function.createDelegate(this,this.$42_1);CUI.Controls.Spinner.initializeBase(this,[c,d,a]);this.addDisplayMode("Medium");this.$4B_1=0;this.$3k_1=1;this.$2N_1=b;this.$1c_1=parseFloat(this.get_$1_1().DefaultValue);this.get_stateProperties()["Value"]=this.$1c_1;this.$n_1=this.$AG_1(this.get_$1_1().DefaultUnit);if(CUI.ScriptUtility.isNullOrUndefined(this.$n_1))throw Error.create("The default unit is not in the list of valid units");this.get_stateProperties()["Unit"]=this.$n_1.$5Z_0};CUI.Controls.Spinner.createUnit=function(a,b,c,d,e,f){ULSqdK:;return new CUI.Unit(a,b,c,d,e,f)};CUI.Controls.Spinner.$Co_1=function(b,c){ULSqdK:;var a=Math.pow(10,c.$6F_0);return Math.round(b*a)/a};CUI.Controls.Spinner.prototype={$E_1:null,$C_1:null,$2A_1:null,$d_1:null,$c_1:null,$4k_1:null,$3t_1:null,$4G_1:null,$3V_1:null,$n_1:null,$2N_1:null,$1c_1:0,$9l_1:false,$4B_1:0,$5D_1:0,$9X_1:0,$3k_1:0,$2Z_1:0,$3r_1:0,$5F_1:null,$3R_1:false,createDOMElementForDisplayMode:function(a){ULSqdK:;switch(a){case "Medium":this.$E_1=CUI.Utility.$3("span");this.$E_1.className="ms-cui-spn";this.$E_1.setAttribute("mscui:controltype",this.get_$15());this.$C_1=CUI.Utility.$7A("input");this.$C_1.className="ms-cui-spn-txtbx";this.$C_1.id=this.$6_0;this.$C_1.setAttribute("role","textbox");CUI.Utility.$1g(this.get_$1_1(),this.$C_1);CUI.Utility.$7p(this.$C_1,this.get_$1_1().ImeEnabled);this.$2A_1=CUI.Utility.$3("span");this.$2A_1.className="ms-cui-spn-arwbx";this.$d_1=CUI.Utility.$3("a");this.$d_1.className="ms-cui-spn-btnup";this.$d_1.setAttribute("role","spinbutton");this.$c_1=CUI.Utility.$3("a");this.$c_1.className="ms-cui-spn-btndown";this.$c_1.setAttribute("role","spinbutton");this.$4k_1=CUI.Utility.$3("img");this.$4k_1.alt="";this.$3t_1=CUI.Utility.$j(2,1,this.$0_0.$5_1.ImageUpArrow,this.$0_0.$5_1.ImageUpArrowClass,this.$4k_1,true,false,this.$0_0.$5_1.ImageUpArrowTop,this.$0_0.$5_1.ImageUpArrowLeft);CUI.Utility.ensureCSSClassOnElement(this.$3t_1,"ms-cui-spn-imgcnt");if(!CUI.ScriptUtility.isNullOrUndefined(this.get_$1_1().AltUpArrow))this.$d_1.title=this.get_$1_1().AltUpArrow;this.$4G_1=CUI.Utility.$3("img");this.$4G_1.alt="";this.$3V_1=CUI.Utility.$j(2,1,this.$0_0.$5_1.ImageDownArrow,this.$0_0.$5_1.ImageDownArrowClass,this.$4G_1,true,false,this.$0_0.$5_1.ImageDownArrowTop,this.$0_0.$5_1.ImageDownArrowLeft);CUI.Utility.ensureCSSClassOnElement(this.$3V_1,"ms-cui-spn-imgcnt");if(!CUI.ScriptUtility.isNullOrUndefined(this.get_$1_1().AltDownArrow))this.$c_1.title=this.get_$1_1().AltDownArrow;this.$O(a);this.$E_1.appendChild(this.$C_1);this.$E_1.appendChild(this.$2A_1);this.$2A_1.appendChild(this.$d_1);this.$2A_1.appendChild(this.$c_1);this.$d_1.appendChild(this.$3t_1);this.$c_1.appendChild(this.$3V_1);return this.$E_1;default:this.ensureValidDisplayMode(a);return null}},$E2_1:function(){ULSqdK:;this.$E8_1(parseFloat(this.get_$1_1().DefaultValue));this.$5D_1=parseInt(this.get_$1_1().AccelerationInterval);this.$9X_1=parseInt(this.get_$1_1().MultiplierInterval);this.$5F_1=this.get_$1_1().Command},$35:function(a){ULSqdK:;var b=$get(this.$6_0+"-"+a);this.storeElementForDisplayMode(b,a);switch(a){case "Medium":this.$E_1=b;this.$C_1=this.$E_1.childNodes[0];this.$2A_1=this.$E_1.childNodes[1];this.$d_1=this.$2A_1.childNodes[0];this.$c_1=this.$2A_1.childNodes[1];this.$3t_1=this.$d_1.childNodes[0];this.$3V_1=this.$c_1.childNodes[0];this.$4k_1=this.$3t_1.childNodes[0];this.$4G_1=this.$3V_1.childNodes[0]}},$O:function(a){ULSqdK:;switch(a){case "Medium":this.$N_1();this.$E2_1()}},$N_1:function(){ULSqdK:;$addHandler(this.$C_1,"focus",this.$3L);$addHandler(this.$C_1,"blur",this.$2m);$addHandler(this.$C_1,"change",this.$8C);$addHandler(this.$C_1,"mouseover",this.$8I);$addHandler(this.$C_1,"mouseout",this.$95);$addHandler(this.$C_1,"keypress",this.$56);$addHandler(this.$C_1,"keydown",this.$8P);$addHandler(this.$C_1,"keyup",this.$8U);$addHandler(this.$d_1,"mouseover",this.$8K);$addHandler(this.$d_1,"mouseout",this.$97);$addHandler(this.$d_1,"mousedown",this.$8l);$addHandler(this.$d_1,"mouseup",this.$8r);$addHandler(this.$c_1,"mouseover",this.$8J);$addHandler(this.$c_1,"mouseout",this.$96);$addHandler(this.$c_1,"mousedown",this.$8k);$addHandler(this.$c_1,"mouseup",this.$8q)},get_$15:function(){ULSqdK:;return "Spinner"},onEnabledChanged:function(a){ULSqdK:;CUI.Utility.setEnabledOnElement(this.$C_1,a)},$7o:function(){ULSqdK:;if(!this.get_enabled())return false;this.$C_1.focus();return true},$42_1:function(a){ULSqdK:;this.onBeginFocus();if(!this.get_enabled())return;this.$0_0.set_$o(this);this.$Aj_1(a);CUI.Utility.$7i(this.$C_1)},$4u_1:function(a){ULSqdK:;this.onEndFocus();if(!this.get_enabled())return;this.$2x_1&&this.$46_1();this.$Aj_1(a)},$3i_1:false,$Aj_1:function(a){ULSqdK:;this.$3i_1=!this.$3i_1;if(this.$3i_1)this.$5v_1(a);else this.$5y_1(a)},$7Y_1:function(){ULSqdK:;this.$X();if(!this.get_enabled())return;if(!this.$EJ_1()){this.$4z_1();return}var a=1;this.get_stateProperties()["ChangeType"]="manual";this.get_stateProperties()["ChangedByMouse"]=false;this.get_displayedComponent().raiseCommandEvent(this.$5F_1,a,this.get_stateProperties())},$C7:function(){ULSqdK:;this.$7Y_1(null)},$5v_1:function(){ULSqdK:;if(!this.get_enabled())return;CUI.Utility.ensureCSSClassOnElement(this.$C_1,"ms-cui-spn-txtbx-hover");CUI.Utility.ensureCSSClassOnElement(this.$d_1,"ms-cui-spn-btnup-ctl-hover");CUI.Utility.ensureCSSClassOnElement(this.$c_1,"ms-cui-spn-btndown-ctl-hover")},$5y_1:function(){ULSqdK:;if(!this.get_enabled())return;if(!this.$3i_1){CUI.Utility.removeCSSClassFromElement(this.$C_1,"ms-cui-spn-txtbx-hover");CUI.Utility.removeCSSClassFromElement(this.$d_1,"ms-cui-spn-btnup-ctl-hover");CUI.Utility.removeCSSClassFromElement(this.$c_1,"ms-cui-spn-btndown-ctl-hover");CUI.Utility.removeCSSClassFromElement(this.$d_1,"ms-cui-spn-btnup-down");CUI.Utility.removeCSSClassFromElement(this.$c_1,"ms-cui-spn-btndown-down")}},$DF_1:function(a){ULSqdK:;if(!this.get_enabled())return;this.$5v_1(a);CUI.Utility.removeCSSClassFromElement(this.$d_1,"ms-cui-spn-btnup-ctl-hover");CUI.Utility.ensureCSSClassOnElement(this.$d_1,"ms-cui-spn-btnup-hover")},$Dj_1:function(a){ULSqdK:;if(!this.get_enabled())return;!this.$2x_1&&this.$Au_1(a);this.$5y_1(a);this.$3i_1&&CUI.Utility.ensureCSSClassOnElement(this.$d_1,"ms-cui-spn-btnup-ctl-hover");CUI.Utility.removeCSSClassFromElement(this.$d_1,"ms-cui-spn-btnup-hover")},$DV_1:function(a){ULSqdK:;if(!this.get_enabled())return;this.$3R_1=true;if(a.button){this.$46_1();return}this.$63_1(1);CUI.Utility.ensureCSSClassOnElement(this.$d_1,"ms-cui-spn-btnup-down")},$Au_1:function(){ULSqdK:;if(!this.get_enabled())return;this.$46_1();this.$0_0.set_$o(this);CUI.Utility.removeCSSClassFromElement(this.$d_1,"ms-cui-spn-btnup-down")},$Af_1:function(b){ULSqdK:;if(!this.get_enabled())return;if(!this.$3E_1(this.$n_1,this.$1c_1+b*this.$n_1.$6x_0))if(this.$1c_1<this.$n_1.$4b_0)this.$3E_1(this.$n_1,this.$n_1.$4b_0);else{this.$4z_1();return}var a=9;this.get_stateProperties()["ChangeType"]="increase";this.get_stateProperties()["ChangedByMouse"]=this.$3R_1;this.get_displayedComponent().raiseCommandEvent(this.$5F_1,a,this.get_stateProperties())},$DE_1:function(a){ULSqdK:;if(!this.get_enabled())return;this.$5v_1(a);CUI.Utility.removeCSSClassFromElement(this.$c_1,"ms-cui-spn-btndown-ctl-hover");CUI.Utility.ensureCSSClassOnElement(this.$c_1,"ms-cui-spn-btndown-hover")},$Di_1:function(a){ULSqdK:;if(!this.get_enabled())return;!this.$2x_1&&this.$At_1(a);this.$5y_1(a);this.$3i_1&&CUI.Utility.ensureCSSClassOnElement(this.$c_1,"ms-cui-spn-btndown-ctl-hover");CUI.Utility.removeCSSClassFromElement(this.$c_1,"ms-cui-spn-btndown-hover")},$DU_1:function(a){ULSqdK:;if(!this.get_enabled())return;this.$3R_1=true;if(a.button){this.$46_1();return}this.$63_1(CUI.Controls.Spinner.$7C_1);CUI.Utility.ensureCSSClassOnElement(this.$c_1,"ms-cui-spn-btndown-down")},$At_1:function(){ULSqdK:;if(!this.get_enabled())return;this.$46_1();this.$0_0.set_$o(this);CUI.Utility.removeCSSClassFromElement(this.$c_1,"ms-cui-spn-btndown-down")},$A9_1:function(b){ULSqdK:;if(!this.get_enabled())return;if(!this.$3E_1(this.$n_1,this.$1c_1-b*this.$n_1.$6x_0))if(this.$1c_1>this.$n_1.$4d_0)this.$3E_1(this.$n_1,this.$n_1.$4d_0);else{this.$4z_1();return}var a=9;this.get_stateProperties()["ChangeType"]="decrease";this.get_stateProperties()["ChangedByMouse"]=this.$3R_1;this.get_displayedComponent().raiseCommandEvent(this.$5F_1,a,this.get_stateProperties())},$Aq_1:function(a){ULSqdK:;if(!this.get_enabled())return;this.$3R_1=false;var b=a.rawEvent.keyCode;if(b===27)this.$4z_1();else if(b===13){this.$7Y_1(a);a.preventDefault()}else return},$2x_1:false,$DH_1:function(b){ULSqdK:;if(!this.get_enabled())return;if(this.$2x_1)return;this.$3R_1=false;var a=b.rawEvent.keyCode;if(a===38){this.$63_1(1);CUI.Utility.ensureCSSClassOnElement(this.$d_1,"ms-cui-spn-btnup-down")}else if(a===40){this.$63_1(CUI.Controls.Spinner.$7C_1);CUI.Utility.ensureCSSClassOnElement(this.$c_1,"ms-cui-spn-btndown-down")}else return;this.$2x_1=true},$DL_1:function(){ULSqdK:;if(!this.get_enabled())return;if(!this.$2x_1)return;this.$46_1();CUI.Utility.removeCSSClassFromElement(this.$d_1,"ms-cui-spn-btnup-down");CUI.Utility.removeCSSClassFromElement(this.$c_1,"ms-cui-spn-btndown-down");this.$2x_1=false},$BU_1:function(){ULSqdK:;this.$4B_1++;this.$Af_1(this.$AK_1())},$BT_1:function(){ULSqdK:;this.$4B_1++;this.$A9_1(this.$AK_1())},$63_1:function(a){ULSqdK:;if(this.$2Z_1>-1||this.$3r_1>-1)return;if(a===1)this.$Af_1(1);else this.$A9_1(1);if(a===1)this.$3r_1=window.setTimeout(this.$9B,500);else this.$3r_1=window.setTimeout(this.$9A,500)},$46_1:function(){ULSqdK:;if(this.$3r_1>-1){window.clearTimeout(this.$3r_1);this.$3r_1=-1}if(this.$2Z_1>-1){window.clearInterval(this.$2Z_1);this.$2Z_1=-1;this.$3k_1=1;this.$4B_1=0}},$ED_1:function(){ULSqdK:;if(this.$2Z_1!==-1)return;this.$2Z_1=window.setInterval(this.$7v,this.$5D_1)},$EC_1:function(){ULSqdK:;if(this.$2Z_1!==-1)return;this.$2Z_1=window.setInterval(this.$7u,this.$5D_1)},$AK_1:function(){ULSqdK:;var a=this.$4B_1*this.$5D_1;if(a>=this.$3k_1*this.$9X_1&&this.$3k_1<=3)this.$3k_1++;return this.$3k_1},$E8_1:function(a){ULSqdK:;this.$1c_1=a;this.$C_1.value=this.$7J_1(a,this.$n_1.get_$5m());this.get_stateProperties()["Value"]=this.$1c_1},get_value:function(){ULSqdK:;return this.$1c_1},set_value:function(a){ULSqdK:;if(!this.$3E_1(this.$n_1,a))throw Error.create("Invalid value");return a},get_unitString:function(){ULSqdK:;return this.$n_1.get_$5m()},set_unitString:function(a){ULSqdK:;if(!this.$BJ_1(this.$1c_1.toString()+a)){this.$4z_1();throw Error.create("Invalid unit")}return a},$9R_1:false,$9Q_1:false,get_$7W_1:function(){ULSqdK:;if(!this.$9R_1){var a=1.1,b=a.toLocaleString().substring(1,2);this.$9Q_1=b===",";this.$9R_1=true}return this.$9Q_1},$EJ_1:function(){ULSqdK:;var a=this.$C_1.value;return this.$BJ_1(a)},$BJ_1:function(b){ULSqdK:;var i="(\\-)?[0-9]*[\\.,]?[0-9]+",e=new RegExp(i);b=b.trim();if(b.search(e))return false;var f=b.replace(e,""),a=b.replace(f,""),d=f.trim(),c,g,h=false;if(this.get_$7W_1()){a=a.replace(".","");if(a.indexOf(",")>-1){h=true;a=a.replace(",",".")}}else a=a.replace(",","");g=parseFloat(a);if(!CUI.ScriptUtility.isNullOrEmptyString(d))if(this.$n_1.$78(d))c=this.$n_1;else c=this.$Cn_1(d);else c=this.$n_1;return this.$3E_1(c,g,h)},$3E_1:function(a,b,d){ULSqdK:;if(arguments.length<3)d=this.get_$7W_1();if(!a)return false;var c=a.$EK(b);if(c===CUI.Unit.$7V)return false;else if(c===1)b=CUI.Controls.Spinner.$Co_1(b,a);else if(c===2)b=a.$4d_0;else if(c===3)b=a.$4b_0;this.$C_1.value=this.$7J_1(b,a.get_$5m(),d);this.$n_1=a;this.$1c_1=b;this.$9l_1=d;this.get_stateProperties()["Unit"]=a.$5Z_0;this.get_stateProperties()["Value"]=b;return true},$4z_1:function(){ULSqdK:;this.$C_1.value=this.$7J_1(this.$1c_1,this.$n_1.get_$5m(),this.$9l_1)},$7J_1:function(c,d,b){ULSqdK:;if(arguments.length<3)b=this.get_$7W_1();var a=c.toString();if(b)a=a.replace(".",",");return a+" "+d},$Cn_1:function(b){ULSqdK:;for(var a=0;a<this.$2N_1.length;a++)if(this.$2N_1[a].$78(b))return this.$2N_1[a];return null},$AG_1:function(b){ULSqdK:;for(var a=0;a<this.$2N_1.length;a++){if(this.$2N_1[a].$5Z_0===b)return this.$2N_1[a];if(this.$2N_1[a].$78(b))return this.$2N_1[a]}return null},$4y:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$E_1))return;var b=this.pollForStateAndUpdateInternal(this.get_$1_1().Command,this.get_$1_1().QueryCommand,this.get_stateProperties(),true),a=this.$AG_1(this.get_stateProperties()["Unit"]);if(!this.$3E_1(a,this.get_stateProperties()["Value"]))throw Error.create("Invalid valid and/or unit returned when polling")},dispose:function(){ULSqdK:;CUI.Controls.Spinner.callBaseMethod(this,"dispose");this.$4G_1=null;this.$3V_1=null;this.$4k_1=null;this.$3t_1=null;this.$E_1=null;this.$2A_1=null;this.$c_1=null;this.$C_1=null;this.$d_1=null},get_$1_1:function(){ULSqdK:;return this.$5_0}};CUI.Controls.SplitButton=function(c,d,a,b){ULSqdK:;this.$8b=Function.createDelegate(this,this.onMenuButtonKeyPress);this.$8W=Function.createDelegate(this,this.onMenuButtonABlur);this.$8a=Function.createDelegate(this,this.onMenuButtonKeyboardFocus);this.$8X=Function.createDelegate(this,this.onMenuButtonBlur);this.$8Z=Function.createDelegate(this,this.onMenuButtonFocus);this.$8Y=Function.createDelegate(this,this.onMenuButtonClick);this.$89=Function.createDelegate(this,this.onButtonKeyboardFocus);this.$66=Function.createDelegate(this,this.onButtonBlur);this.$88=Function.createDelegate(this,this.onButtonFocus);this.$8o=Function.createDelegate(this,this.onMouseOut);this.$8p=Function.createDelegate(this,this.onMouseOver);this.$3J=Function.createDelegate(this,this.onDblClick);this.$87=Function.createDelegate(this,this.onButtonClick);CUI.Controls.SplitButton.initializeBase(this,[c,d,a,b]);this.addDisplayMode("Large");this.addDisplayMode("Medium");this.addDisplayMode("Small")};CUI.Controls.SplitButton.prototype={$F_2:null,$9I_2:null,$4N_2:null,$3Y_2:null,$1u_2:null,$8_2:null,$9K_2:null,$4O_2:null,$3Z_2:null,$2E_2:null,$9_2:null,$9M_2:null,$4R_2:null,$3c_2:null,$2G_2:null,createDOMElementForDisplayMode:function(a){ULSqdK:;var b=CUI.ScriptUtility.isNullOrUndefined(this.get_$1_2().Alt)?this.get_$1_2().LabelText:this.get_$1_2().Alt,c=CUI.ScriptUtility.isNullOrUndefined(this.get_$1_2().MenuAlt)?b:this.get_$1_2().MenuAlt;this.$7B_2=a;if(CUI.ScriptUtility.isNullOrUndefined(b))b="";if(CUI.ScriptUtility.isNullOrUndefined(c))c="";switch(a){case "Large":this.$F_2=CUI.Control.createTwoAnchorControlDOMElementCore(this,this.$0_0,"Large",this.get_$1_2().Id,this.get_$1_2().Image32by32,this.get_$1_2().Image32by32Class,this.get_$1_2().Image32by32Top,this.get_$1_2().Image32by32Left,this.get_$1_2().Image16by16,this.get_$1_2().Image16by16Class,this.get_$1_2().Image16by16Top,this.get_$1_2().Image16by16Left,this.get_$1_2().LabelText,this.get_$1_2().Alt,this.get_$1_2().ToolTipTitle,true);this.$35("Large");this.$O(a);return this.$F_2;case "Medium":this.$8_2=CUI.Control.createTwoAnchorControlDOMElementCore(this,this.$0_0,"Medium",this.get_$1_2().Id,this.get_$1_2().Image32by32,this.get_$1_2().Image32by32Class,this.get_$1_2().Image32by32Top,this.get_$1_2().Image32by32Left,this.get_$1_2().Image16by16,this.get_$1_2().Image16by16Class,this.get_$1_2().Image16by16Top,this.get_$1_2().Image16by16Left,this.get_$1_2().LabelText,this.get_$1_2().Alt,this.get_$1_2().ToolTipTitle,true);this.$35("Medium");this.$O(a);return this.$8_2;case "Small":this.$9_2=CUI.Control.createTwoAnchorControlDOMElementCore(this,this.$0_0,"Small",this.get_$1_2().Id,this.get_$1_2().Image32by32,this.get_$1_2().Image32by32Class,this.get_$1_2().Image32by32Top,this.get_$1_2().Image32by32Left,this.get_$1_2().Image16by16,this.get_$1_2().Image16by16Class,this.get_$1_2().Image16by16Top,this.get_$1_2().Image16by16Left,this.get_$1_2().LabelText,this.get_$1_2().Alt,this.get_$1_2().ToolTipTitle,true);this.$35("Small");this.$O(a);return this.$9_2;default:this.ensureValidDisplayMode(a);return null}},$7B_2:null,$35:function(c){ULSqdK:;var a=$get(this.$6_0+"-"+c);this.storeElementForDisplayMode(a,c);this.$7B_2=c;switch(c){case "Large":if(!CUI.ScriptUtility.isNullOrUndefined(a))this.$F_2=a;this.$4N_2=this.$F_2.childNodes[0];this.$9I_2=this.$4N_2.childNodes[0].childNodes[0];this.$3Y_2=this.$F_2.childNodes[1];var d=this.$3Y_2.childNodes[0];this.$1u_2=null;for(var b=0;b<d.childNodes.length;b++){var e=d.childNodes[b].tagName;if(!CUI.ScriptUtility.isNullOrUndefined(e)&&e.toLowerCase()==="span"){this.$1u_2=d.childNodes[b].childNodes[0];break}}break;case "Medium":if(!CUI.ScriptUtility.isNullOrUndefined(a))this.$8_2=a;this.$4O_2=this.$8_2.childNodes[0];this.$9K_2=this.$4O_2.childNodes[0].childNodes[0];this.$3Z_2=this.$8_2.childNodes[1];this.$2E_2=this.$3Z_2.childNodes[0].childNodes[0].childNodes[0];break;case "Small":if(!CUI.ScriptUtility.isNullOrUndefined(a))this.$9_2=a;this.$4R_2=this.$9_2.childNodes[0];this.$9M_2=this.$4R_2.childNodes[0].childNodes[0];this.$3c_2=this.$9_2.childNodes[1];this.$2G_2=this.$3c_2.childNodes[0].childNodes[0].childNodes[0]}},$O:function(a){ULSqdK:;this.$N_2(a)},$N_2:function(c){ULSqdK:;var a=null,b=null;switch(c){case "Large":a=this.$4N_2;b=this.$3Y_2;break;case "Medium":a=this.$4O_2;b=this.$3Z_2;break;case "Small":a=this.$4R_2;b=this.$3c_2}$addHandler(a,"click",this.$87);$addHandler(a,"dblclick",this.$3J);$addHandler(a,"mouseover",this.$8p);$addHandler(a,"mouseout",this.$8o);$addHandler(a,"mouseover",this.$88);$addHandler(a,"mouseout",this.$66);$addHandler(a,"focus",this.$89);$addHandler(a,"blur",this.$66);$addHandler(b,"click",this.$8Y);$addHandler(b,"mouseover",this.$8Z);$addHandler(b,"mouseout",this.$8X);$addHandler(b,"focus",this.$8a);$addHandler(b,"blur",this.$8W);$addHandler(b,"keypress",this.$8b)},$4r_2:false,$7o:function(){ULSqdK:;if(!this.get_enabled())return false;var a=this.get_displayedComponent().get_$2();if(!CUI.ScriptUtility.isNullOrUndefined(a)){if(this.$4r_2||!this.$1U_2)a=a.childNodes[1];else a=a.childNodes[0];a.focus();return true}return false},onEnabledChanged:function(a){ULSqdK:;this.onEnabledChangedForControl(a);this.onEnabledChangedForButton(a);this.onEnabledChangedForMenu(a)},get_$15:function(){ULSqdK:;return "SplitButton"},onEnabledChangedForControl:function(b){ULSqdK:;var a="ms-cui-disabled";if(b){CUI.Utility.removeCSSClassFromElement(this.$F_2,a);CUI.Utility.removeCSSClassFromElement(this.$8_2,a);CUI.Utility.removeCSSClassFromElement(this.$9_2,a)}else{CUI.Utility.ensureCSSClassOnElement(this.$F_2,a);CUI.Utility.ensureCSSClassOnElement(this.$8_2,a);CUI.Utility.ensureCSSClassOnElement(this.$9_2,a)}},$1z_2:true,onEnabledChangedForMenu:function(a){ULSqdK:;CUI.Utility.setEnabledOnElement(this.$3Y_2,a);CUI.Utility.setEnabledOnElement(this.$3Z_2,a);CUI.Utility.setEnabledOnElement(this.$3c_2,a);this.$7f_2();this.$1z_2=a},$E7_2:function(a){ULSqdK:;CUI.Utility.setEnabledOnElement(this.$3Y_2,a);CUI.Utility.setEnabledOnElement(this.$3Z_2,a);CUI.Utility.setEnabledOnElement(this.$3c_2,a)},$1U_2:false,onEnabledChangedForButton:function(a){ULSqdK:;CUI.Utility.setEnabledOnElement(this.$4N_2,a);CUI.Utility.setEnabledOnElement(this.$4O_2,a);CUI.Utility.setEnabledOnElement(this.$4R_2,a);this.$7e_2();this.$1U_2=a},onButtonClick:function(b){ULSqdK:;b.preventDefault();this.$X();if(!this.get_enabled()||!this.$1U_2)return;this.$0_0.set_$3z(this);this.$4r_2=false;var a=this.get_stateProperties();a["CommandValueId"]=this.get_$1_2().CommandValueId;this.get_displayedComponent().raiseCommandEvent(this.get_$1_2().Command,1,a)},onDblClick:function(a){ULSqdK:;a.preventDefault();this.$X();if(!this.get_enabled())return;this.onButtonClick(a)},onMouseOver:function(){ULSqdK:;this.onBeginFocus();if(!this.get_enabled()||!this.$1U_2)return;if(CUI.ScriptUtility.isNullOrUndefined(this.get_$1_2().CommandPreview))return;var a=this.get_stateProperties();a["CommandValueId"]=this.get_$1_2().CommandValueId;this.get_displayedComponent().raiseCommandEvent(this.get_$1_2().CommandPreview,5,a)},onButtonKeyboardFocus:function(a){ULSqdK:;this.$0_0.set_$o(this);this.$4r_2=false;this.onButtonFocus(a)},onButtonFocus:function(){ULSqdK:;this.onBeginFocus();if(!this.get_enabled()||!this.$1U_2)return;this.$D3_2()},onMouseOut:function(){ULSqdK:;this.onEndFocus();if(!this.get_enabled())return;if(CUI.ScriptUtility.isNullOrUndefined(this.get_$1_2().CommandRevert))return;var a=this.get_stateProperties();a["CommandValueId"]=this.get_$1_2().CommandValueId;this.get_displayedComponent().raiseCommandEvent(this.get_$1_2().CommandRevert,6,a)},onButtonBlur:function(){ULSqdK:;this.onEndFocus();if(!this.get_enabled()||!this.$1U_2)return;this.$7e_2()},onMenuButtonClick:function(a){ULSqdK:;a.preventDefault();this.$X();if(!this.get_enabled()||!this.$1z_2)return;this.$0_0.$2v_1=false;this.$0_0.set_$3z(this);this.$4r_2=true;var b=a.target;this.launchMenu(b);this.get_displayedComponent().raiseCommandEvent(this.get_$1_2().CommandMenuOpen,4,null)},onMenuButtonKeyboardFocus:function(a){ULSqdK:;this.onMenuButtonFocus(a);this.$4r_2=true;this.$0_0.set_$o(this)},onMenuButtonFocus:function(){ULSqdK:;this.onBeginFocus();if(!this.get_enabled()||!this.$1z_2)return;this.$D4_2()},onMenuButtonBlur:function(){ULSqdK:;this.onEndFocus();if(!this.get_enabled()||this.$i_1||!this.$1z_2)return;this.$7f_2()},onMenuButtonABlur:function(a){ULSqdK:;this.onEndFocus();if(!this.get_enabled()||!this.$1z_2)return;this.onMenuButtonBlur(a)},onMenuButtonKeyPress:function(a){ULSqdK:;this.$X();if(!this.get_enabled()||!this.$1z_2)return;if(a.rawEvent.keyCode===13)this.$1D_1=true},onLaunchedMenuClosed:function(){ULSqdK:;this.$X();this.$1T_2();this.get_displayedComponent().raiseCommandEvent(this.get_$1_2().CommandMenuClose,10,null);CUI.Controls.SplitButton.callBaseMethod(this,"onLaunchedMenuClosed")},$1T_2:function(){ULSqdK:;this.$7e_2();this.$7f_2()},$7e_2:function(){ULSqdK:;var a=this.$5p();if(CUI.ScriptUtility.isNullOrUndefined(a))return;CUI.Utility.removeCSSClassFromElement(a.childNodes[1],"ms-cui-ctl-split-hover");CUI.Utility.removeCSSClassFromElement(a.childNodes[0],"ms-cui-ctl-light-hoveredOver")},$D3_2:function(){ULSqdK:;var a=this.$5p();if(CUI.ScriptUtility.isNullOrUndefined(a))return;CUI.Utility.ensureCSSClassOnElement(a.childNodes[1],"ms-cui-ctl-split-hover");CUI.Utility.ensureCSSClassOnElement(a.childNodes[0],"ms-cui-ctl-light-hoveredOver")},$7f_2:function(){ULSqdK:;var a=this.$5p();if(CUI.ScriptUtility.isNullOrUndefined(a))return;CUI.Utility.removeCSSClassFromElement(a.childNodes[0],"ms-cui-ctl-split-hover");CUI.Utility.removeCSSClassFromElement(a.childNodes[1],"ms-cui-ctl-light-hoveredOver")},$D4_2:function(){ULSqdK:;var a=this.$5p();if(CUI.ScriptUtility.isNullOrUndefined(a))return;CUI.Utility.ensureCSSClassOnElement(a.childNodes[0],"ms-cui-ctl-split-hover");CUI.Utility.ensureCSSClassOnElement(a.childNodes[1],"ms-cui-ctl-light-hoveredOver")},$4y:function(){ULSqdK:;var b=this.$0_0.$4w(this.get_$1_2().Command,null,null),a=true;if(!CUI.ScriptUtility.isNullOrUndefined(this.get_$1_2().CommandMenuOpen))a=this.$0_0.$4w(this.get_$1_2().CommandMenuOpen,null,null);else a=b;if(a!==this.$1z_2||b!==this.$1U_2){this.$1P_0=a||b;var d=this.$1z_2&&this.$1U_2,c=a&&b;d!==c&&this.onEnabledChangedForControl(c);this.$E7_2(this.$1P_0);b!==this.$1U_2&&this.onEnabledChangedForButton(b);a!==this.$1z_2&&this.onEnabledChangedForMenu(a);this.$1z_2=a;this.$1U_2=b}},dispose:function(){ULSqdK:;CUI.Controls.SplitButton.callBaseMethod(this,"dispose");this.$F_2=null;this.$9I_2=null;this.$4N_2=null;this.$3Y_2=null;this.$1u_2=null;this.$8_2=null;this.$9K_2=null;this.$4O_2=null;this.$3Z_2=null;this.$2E_2=null;this.$9_2=null;this.$9M_2=null;this.$4R_2=null;this.$3c_2=null;this.$2G_2=null},get_$1_2:function(){ULSqdK:;return this.$5_0}};CUI.Controls.TextBoxCommandProperties=function(){};CUI.Controls.TextBox=function(b,c,a){ULSqdK:;this.$56=Function.createDelegate(this,this.$Aq_1);this.$57=Function.createDelegate(this,this.$5w_1);this.$58=Function.createDelegate(this,this.$5x_1);this.$2m=Function.createDelegate(this,this.$4u_1);this.$3L=Function.createDelegate(this,this.$42_1);this.$8B=Function.createDelegate(this,this.$7X_1);CUI.Controls.TextBox.initializeBase(this,[b,c,a]);this.addDisplayMode("Medium")};CUI.Controls.TextBox.prototype={$C_1:null,get_value:function(){ULSqdK:;this.$7F_1();return this.$C_1.value},set_value:function(a){ULSqdK:;this.$7F_1();if(a)this.$C_1.value=a;else this.$C_1.value="";return a},$7F_1:function(){ULSqdK:;if(!this.$C_1){this.$C_1=CUI.Utility.$7A("input");this.$C_1.type="text";CUI.Utility.$7p(this.$C_1,this.get_$1_1().ImeEnabled)}},createDOMElementForDisplayMode:function(b){ULSqdK:;switch(b){case "Medium":this.$7F_1();this.$C_1.id=this.$6_0;this.$C_1.setAttribute("mscui:controltype",this.get_$15());this.$C_1.setAttribute("role",this.get_$25());CUI.Utility.$1g(this.get_$1_1(),this.$C_1);this.$C_1.className="ms-cui-tb";if(!CUI.ScriptUtility.isNullOrEmptyString(this.get_$1_1().MaxLength)){var a=parseInt(this.get_$1_1().MaxLength);a!==Number.NaN&&this.$C_1.setAttribute("maxlength",a)}if(CUI.Utility.$v(this.get_$1_1().ShowAsLabel)){CUI.Utility.ensureCSSClassOnElement(this.$C_1,"ms-cui-tb-labelmode");this.$C_1.disabled=true}if(!CUI.ScriptUtility.isNullOrUndefined(this.get_$1_1().Width))this.$C_1.style.width=this.get_$1_1().Width;this.$N_1();return this.$C_1;default:this.ensureValidDisplayMode(b);return null}},$35:function(b){ULSqdK:;var a=$get(this.$6_0);this.storeElementForDisplayMode(a,b);switch(b){case "Medium":this.$C_1=a}},$O:function(){ULSqdK:;this.$N_1()},$N_1:function(){ULSqdK:;$addHandler(this.$C_1,"change",this.$8B);$addHandler(this.$C_1,"focus",this.$3L);$addHandler(this.$C_1,"blur",this.$2m);$addHandler(this.$C_1,"mouseup",CUI.Utility.get_returnFalseHandler());$addHandler(this.$C_1,"mouseover",this.$58);$addHandler(this.$C_1,"mouseout",this.$57);$addHandler(this.$C_1,"keypress",this.$56)},onEnabledChanged:function(a){ULSqdK:;if(a)CUI.Utility.enableElement(this.$C_1);else CUI.Utility.disableElement(this.$C_1)},get_$15:function(){ULSqdK:;return "TextBox"},get_$25:function(){ULSqdK:;return "textbox"},$7X_1:function(){ULSqdK:;this.$X();if(!this.get_enabled())return;this.get_stateProperties()["Value"]=this.get_value();this.get_displayedComponent().raiseCommandEvent(this.get_$1_1().Command,1,this.get_stateProperties());if(this.$0_0.get_$4x())this.$4y();else this.$51_1(null)},$C7:function(){ULSqdK:;this.$7X_1(null)},$51_1:function(a){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(this.$C_1))!CUI.ScriptUtility.isNullOrUndefined(a)&&this.set_value(a)},$7o:function(){ULSqdK:;if(!this.get_enabled())return false;this.$C_1.focus();return true},$42_1:function(){ULSqdK:;this.onBeginFocus();if(!this.get_enabled())return;CUI.Utility.$7i(this.$C_1);this.$0_0.set_$o(this)},$4u_1:function(){ULSqdK:;this.onEndFocus();if(!this.get_enabled())return},$5x_1:function(){ULSqdK:;this.onBeginFocus();if(!this.get_enabled())return;if(CUI.ScriptUtility.isNullOrUndefined(this.get_$1_1().CommandPreview))return;this.get_displayedComponent().raiseCommandEvent(this.get_$1_1().CommandPreview,5,this.get_stateProperties())},$5w_1:function(){ULSqdK:;this.onEndFocus();if(!this.get_enabled())return;if(CUI.ScriptUtility.isNullOrUndefined(this.get_$1_1().CommandRevert))return;this.get_displayedComponent().raiseCommandEvent(this.get_$1_1().CommandRevert,6,this.get_stateProperties())},$Aq_1:function(a){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(a)&&!CUI.ScriptUtility.isNullOrUndefined(a.rawEvent))if(a.rawEvent.keyCode===13){this.$7X_1(a);a.preventDefault()}},$4y:function(){ULSqdK:;var a=this.pollForStateAndUpdateInternal(this.get_$1_1().Command,this.get_$1_1().QueryCommand,this.get_stateProperties(),false);a&&this.$51_1(this.get_stateProperties()["Value"])},dispose:function(){ULSqdK:;CUI.Controls.TextBox.callBaseMethod(this,"dispose");this.$C_1=null},get_$1_1:function(){ULSqdK:;return this.$5_0}};CUI.Controls.ToggleButtonCommandProperties=function(){};CUI.Controls.ToggleButton=function(c,a,b){ULSqdK:;this.$8O=Function.createDelegate(this,this.$DG_1);this.$57=Function.createDelegate(this,this.$5w_1);this.$58=Function.createDelegate(this,this.$5x_1);this.$1G=Function.createDelegate(this,this.onClick);this.$2m=Function.createDelegate(this,this.$4u_1);this.$3L=Function.createDelegate(this,this.$42_1);CUI.Controls.ToggleButton.initializeBase(this,[c,a,b]);this._id=a;this.addDisplayModes();this.get_stateProperties()["On"]=false};CUI.Controls.ToggleButton.prototype={_id:null,$F_1:null,$2J_1:null,$16_1:null,$9_1:null,$8_1:null,$h_1:null,$1Z_1:null,$1v_1:null,$1t_1:null,$1W_1:null,get_on:function(){ULSqdK:;return this.get_stateProperties()["On"]},set_on:function(a){ULSqdK:;this.get_stateProperties()["On"]=a;this.setState(a);return a},createComponentForDisplayModeInternal:function(a){ULSqdK:;var b;if(a.startsWith("Menu")){b=this.$0_0.$3w(this.$6_0+"-"+a+this.$0_0.$27(),a,this);this.$2J_1=this.get_$1_1().MenuItemId;this.$16_1=this.get_$1_1().CommandValueId;if(CUI.ScriptUtility.isNullOrEmptyString(this.$16_1))this.$16_1=this.$2J_1}else b=CUI.Controls.ToggleButton.callBaseMethod(this,"createComponentForDisplayModeInternal",[a]);return b},createDOMElementForDisplayMode:function(a){ULSqdK:;return this.$2g_1(a,true)},$2g_1:function(b,a){ULSqdK:;switch(b){case "Large":this.$F_1=CUI.Control.createStandardControlDOMElement(this,this.$0_0,"Large",this.get_$1_1(),false,false);this.$35("Large");a&&this.$O("Large");return this.$F_1;case "Medium":this.$8_1=CUI.Control.createStandardControlDOMElement(this,this.$0_0,"Medium",this.get_$1_1(),false,false);this.$35("Medium");a&&this.$O("Medium");return this.$8_1;case "Small":this.$9_1=CUI.Control.createStandardControlDOMElement(this,this.$0_0,"Small",this.get_$1_1(),false,false);this.$35("Small");a&&this.$O("Small");return this.$9_1;case "Menu":this.$h_1=CUI.Control.createStandardControlDOMElement(this,this.$0_0,"Menu",this.get_$1_1(),true,false);a&&this.$O("Menu");return this.$h_1;case "Menu16":this.$1Z_1=CUI.Control.createStandardControlDOMElement(this,this.$0_0,"Menu16",this.get_$1_1(),true,false);a&&this.$O("Menu16");return this.$1Z_1;case "Menu32":this.$1v_1=CUI.Control.createStandardControlDOMElement(this,this.$0_0,"Menu32",this.get_$1_1(),true,false);a&&this.$O("Menu32");return this.$1v_1;default:this.ensureValidDisplayMode(b);return null}},$7B_1:null,$35:function(b){ULSqdK:;this.$7B_1=b;var a=$get(this.$6_0+"-"+b);this.storeElementForDisplayMode(a,b);switch(b){case "Large":if(!CUI.ScriptUtility.isNullOrUndefined(a))this.$F_1=a;break;case "Medium":if(!CUI.ScriptUtility.isNullOrUndefined(a))this.$8_1=a;break;case "Small":if(!CUI.ScriptUtility.isNullOrUndefined(a))this.$9_1=a}},$O:function(a){ULSqdK:;switch(a){case "Large":this.$N_1(this.$F_1,true);break;case "Medium":this.$N_1(this.$8_1,true);break;case "Small":this.$N_1(this.$9_1,true);break;case "Menu32":this.$N_1(this.$1v_1,false);break;case "Menu16":this.$N_1(this.$1Z_1,false);break;case "Menu":this.$N_1(this.$h_1,false)}},$N_1:function(a,b){ULSqdK:;if(b){$addHandler(a,"mouseover",this.$3L);$addHandler(a,"mouseout",this.$2m)}$addHandler(a,"click",this.$1G);$addHandler(a,"mouseover",this.$58);$addHandler(a,"mouseout",this.$57);$addHandler(a,"focus",this.$8O);$addHandler(a,"blur",this.$2m)},$7o:function(){ULSqdK:;if(!this.get_enabled())return false;var a=this.get_displayedComponent().get_$2();a.focus();return true},onEnabledChanged:function(a){ULSqdK:;CUI.Utility.setEnabledOnElement(this.$9_1,a);CUI.Utility.setEnabledOnElement(this.$8_1,a);CUI.Utility.setEnabledOnElement(this.$F_1,a);CUI.Utility.setEnabledOnElement(this.$h_1,a);CUI.Utility.setEnabledOnElement(this.$1Z_1,a);CUI.Utility.setEnabledOnElement(this.$1v_1,a);if(this.get_on())if(a)this.setState(true);else this.setState(false)},get_$15:function(){ULSqdK:;return "ToggleButton"},onStateChanged:function(){ULSqdK:;this.setState(this.get_stateProperties()["On"])},getDropDownDOMElementForDisplayMode:function(b){ULSqdK:;var a;switch(b){case "Menu16":a=this.$1t_1;break;case "Text":a=this.$1W_1;break;default:a=CUI.Utility.$3("span")}if(a)return a;return this.$A2_1(b)},$A2_1:function(b){ULSqdK:;switch(b){case "Menu":this.$1t_1=this.$2g_1("Menu",false).cloneNode(true);return this.$1t_1;case "Menu16":this.$1t_1=this.$2g_1("Menu16",false).cloneNode(true);return this.$1t_1;case "Text":var a=CUI.Utility.$3("a");CUI.Utility.$1q(a);this.$1W_1=CUI.Utility.$3("span");this.$1W_1.className="ms-cui-textmenuitem";CUI.UIUtility.setInnerText(a,this.get_$1_1().LabelText);this.$1W_1.appendChild(a);return this.$1W_1;default:return CUI.Utility.$3("span")}},deselect:function(){},getMenuItemId:function(){ULSqdK:;return this.$2J_1},getCommandValueId:function(){ULSqdK:;return this.$16_1},focusOnDisplayedComponent:function(){ULSqdK:;this.receiveFocus()},getTextValue:function(){ULSqdK:;return this.get_$1_1().LabelText},receiveFocus:function(){ULSqdK:;this.onBeginFocus();var a=this.get_displayedComponent();if(CUI.ScriptUtility.isNullOrUndefined(a))return;a.set_$1F(true);!CUI.ScriptUtility.isNullOrUndefined(this.$h_1)&&this.$h_1.focus();!CUI.ScriptUtility.isNullOrUndefined(this.$1Z_1)&&this.$1Z_1.focus()},onMenuClosed:function(){ULSqdK:;this.$X()},onClick:function(c){ULSqdK:;!CUI.ScriptUtility.isNullOrUndefined(CUI.PMetrics)&&CUI.PMetrics.perfMark(7704);this.$X();c.preventDefault();if(!this.get_enabled())return;this.$0_0.set_$3z(this);var a=1,b=this.get_$1_1().CommandType;if(!CUI.ScriptUtility.isNullOrUndefined(b)&&b==="OptionSelection"){a=3;this.get_stateProperties()["CommandValueId"]=this.$16_1}this.get_stateProperties()["On"]=!this.get_stateProperties()["On"];this.get_displayedComponent().raiseCommandEvent(this.get_$1_1().Command,a,this.get_stateProperties());if(this.$0_0.get_$4x())this.$4y();else this.setState(this.get_stateProperties()["On"]);!CUI.ScriptUtility.isNullOrUndefined(CUI.PMetrics)&&CUI.PMetrics.perfMark(7705)},setState:function(a){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(this.$9_1))if(a)CUI.Utility.ensureCSSClassOnElement(this.$9_1,"ms-cui-ctl-on");else CUI.Utility.removeCSSClassFromElement(this.$9_1,"ms-cui-ctl-on");if(!CUI.ScriptUtility.isNullOrUndefined(this.$8_1))if(a)CUI.Utility.ensureCSSClassOnElement(this.$8_1,"ms-cui-ctl-on");else CUI.Utility.removeCSSClassFromElement(this.$8_1,"ms-cui-ctl-on");if(!CUI.ScriptUtility.isNullOrUndefined(this.$F_1))if(a)CUI.Utility.ensureCSSClassOnElement(this.$F_1,"ms-cui-ctl-on");else CUI.Utility.removeCSSClassFromElement(this.$F_1,"ms-cui-ctl-on");if(!CUI.ScriptUtility.isNullOrUndefined(this.$1v_1))if(a)CUI.Utility.ensureCSSClassOnElement(this.$1v_1,"ms-cui-ctl-on");else CUI.Utility.removeCSSClassFromElement(this.$1v_1,"ms-cui-ctl-on");if(!CUI.ScriptUtility.isNullOrUndefined(this.$h_1))if(a)CUI.Utility.ensureCSSClassOnElement(this.$h_1,"ms-cui-ctl-on");else CUI.Utility.removeCSSClassFromElement(this.$h_1,"ms-cui-ctl-on");if(!CUI.ScriptUtility.isNullOrUndefined(this.$1Z_1))if(a)CUI.Utility.ensureCSSClassOnElement(this.$1Z_1,"ms-cui-ctl-on");else CUI.Utility.removeCSSClassFromElement(this.$1Z_1,"ms-cui-ctl-on")},$39_1:function(){ULSqdK:;!CUI.ScriptUtility.isNullOrUndefined(this.$1v_1)&&CUI.Utility.removeCSSClassFromElement(this.$1v_1,"ms-cui-ctl-disabledHoveredOver");!CUI.ScriptUtility.isNullOrUndefined(this.$h_1)&&CUI.Utility.removeCSSClassFromElement(this.$h_1,"ms-cui-ctl-disabledHoveredOver");!CUI.ScriptUtility.isNullOrUndefined(this.$1Z_1)&&CUI.Utility.removeCSSClassFromElement(this.$1Z_1,"ms-cui-ctl-disabledHoveredOver")},$DG_1:function(a){ULSqdK:;this.$0_0.set_$o(this);this.$42_1(a)},$42_1:function(){ULSqdK:;this.onBeginFocus();if(!this.get_enabled()){this.$39_1();return}var a=this.get_displayedComponent();CUI.MenuItem.isInstanceOfType(a)&&a.set_$1F(true);if(CUI.ScriptUtility.isNullOrUndefined(this.get_$1_1().CommandPreview))return;var b=5,c=this.get_$1_1().CommandType;if(!CUI.ScriptUtility.isNullOrUndefined(c)&&c==="OptionSelection"){b=7;this.get_stateProperties()["CommandValueId"]=this.$16_1}a.raiseCommandEvent(this.get_$1_1().CommandPreview,b,this.get_stateProperties())},$5x_1:function(){ULSqdK:;this.onBeginFocus();if(!this.get_enabled())return;if(CUI.ScriptUtility.isNullOrUndefined(this.get_$1_1().CommandPreview))return;var a=5,b=this.get_$1_1().CommandType;if(!CUI.ScriptUtility.isNullOrUndefined(b)&&b==="OptionSelection"){a=7;this.get_stateProperties()["CommandValueId"]=this.$16_1}this.get_displayedComponent().raiseCommandEvent(this.get_$1_1().CommandPreview,a,this.get_stateProperties())},$4u_1:function(){ULSqdK:;this.onEndFocus();if(!this.get_enabled())return;var a=this.get_displayedComponent();CUI.MenuItem.isInstanceOfType(a)&&a.set_$1F(false);if(CUI.ScriptUtility.isNullOrUndefined(this.get_$1_1().CommandRevert))return;var b=6,c=this.get_$1_1().CommandType;if(!CUI.ScriptUtility.isNullOrUndefined(c)&&c==="OptionSelection"){b=8;this.get_stateProperties()["CommandValueId"]=this.$16_1}a.raiseCommandEvent(this.get_$1_1().CommandRevert,b,this.get_stateProperties())},$5w_1:function(){ULSqdK:;this.onEndFocus();if(!this.get_enabled())return;if(CUI.ScriptUtility.isNullOrUndefined(this.get_$1_1().CommandRevert))return;var a=6,b=this.get_$1_1().CommandType;if(!CUI.ScriptUtility.isNullOrUndefined(b)&&b==="OptionSelection"){a=8;this.get_stateProperties()["CommandValueId"]=this.$16_1}this.get_displayedComponent().raiseCommandEvent(this.get_$1_1().CommandRevert,a,this.get_stateProperties())},$4y:function(){ULSqdK:;var a=this.pollForStateAndUpdateInternal(this.get_$1_1().Command,this.get_$1_1().QueryCommand,this.get_stateProperties(),false);a&&this.setState(this.get_stateProperties()["On"])},addDisplayModes:function(){ULSqdK:;this.addDisplayMode("Small");this.addDisplayMode("Medium");this.addDisplayMode("Large");this.addDisplayMode("Menu");this.addDisplayMode("Menu16");this.addDisplayMode("Menu32")},dispose:function(){ULSqdK:;CUI.Controls.ToggleButton.callBaseMethod(this,"dispose");this.$9_1=null;this.$8_1=null;this.$h_1=null;this.$1Z_1=null;this.$1v_1=null;this.$1t_1=null;this.$1W_1=null},get_$1_1:function(){ULSqdK:;return this.$5_0}};CUI.Controls.JewelMenuLauncher=function(b,d,a,c){ULSqdK:;this.$8D=Function.createDelegate(this,this.onContextMenu);this.$8S=Function.createDelegate(this,this.onKeyPress);this.$1G=Function.createDelegate(this,this.onClick);this.$3H=Function.createDelegate(this,this.onBlur);this.$3K=Function.createDelegate(this,this.onFocus);CUI.Controls.JewelMenuLauncher.initializeBase(this,[b,d,a,c]);this.addDisplayMode("Default")};CUI.Controls.JewelMenuLauncher.prototype={$E_2:null,$H_2:null,$1s_2:null,$5L_2:null,$1I_2:null,$1Y_2:null,$1J_2:null,$2r_2:null,$2w_2:false,createDOMElementForDisplayMode:function(a){ULSqdK:;if(a!=="Default"){this.ensureValidDisplayMode(a);return null}var b=CUI.ScriptUtility.isNullOrUndefined(this.get_properties().Alt)?"":this.get_properties().Alt;this.$E_2=CUI.Utility.$3("span");this.$E_2.id=this.get_properties().Id+"-Default";this.$E_2.className="ms-cui-jewel-jewelMenuLauncher";this.$H_2=CUI.Utility.$3("a");CUI.Utility.$1q(this.$H_2);this.$H_2.title=b;this.$2w_2=!CUI.ScriptUtility.isNullOrEmptyString(this.get_properties().LabelText);if(!this.$2w_2){this.$1s_2=CUI.Utility.$3("img");this.$5L_2=CUI.Utility.$j(2,10,this.get_properties().Image,this.get_properties().ImageClass,this.$1s_2,true,false,this.get_properties().ImageTop,this.get_properties().ImageLeft);this.$1s_2.alt=b;this.$H_2.appendChild(this.$5L_2)}else{var c=!CUI.ScriptUtility.isNullOrEmptyString(this.get_properties().ImageLeftSide),d=!CUI.ScriptUtility.isNullOrEmptyString(this.get_properties().ImageRightSide);if(c){this.$1I_2=CUI.Utility.$3("span");this.$1I_2.className="ms-cui-jewel-left";this.$1I_2.id=this.get_properties().Id+"-Default-left";CUI.Utility.$1f(this.$1I_2,this.get_properties().ImageLeftSide,this.get_properties().ImageLeftSideClass,this.get_properties().ImageLeftSideTop,this.get_properties().ImageLeftSideLeft,null,this.get_properties().Height);this.$1I_2.style.width=this.get_properties().ImageLeftSideWidth+"px";this.$1I_2.style.height=this.get_properties().Height+"px";this.$H_2.appendChild(this.$1I_2)}this.$1Y_2=CUI.Utility.$3("span");this.$1Y_2.className="ms-cui-jewel-middle";this.$1Y_2.id=this.get_properties().Id+"-Default-middle";CUI.Utility.$1f(this.$1Y_2,this.get_properties().Image,this.get_properties().ImageClass,this.get_properties().ImageTop,this.get_properties().ImageLeft,null,this.get_properties().Height);this.$2r_2=CUI.Utility.$3("span");if(!CUI.ScriptUtility.isNullOrUndefined(this.get_properties().LabelCss))this.$2r_2.style.cssText=this.get_properties().LabelCss;this.$2r_2.className="ms-cui-jewel-label";if(!CUI.ScriptUtility.isNullOrEmptyString(this.get_properties().Height))this.$2r_2.style.marginTop=Math.floor(parseInt(this.get_properties().Height)-14)/2+"px";CUI.UIUtility.setInnerText(this.$2r_2,this.get_properties().LabelText);this.$1Y_2.appendChild(this.$2r_2);this.$H_2.appendChild(this.$1Y_2);if(d){this.$1J_2=CUI.Utility.$3("span");this.$1J_2.className="ms-cui-jewel-right";this.$1J_2.id=this.get_properties().Id+"-Default-right";CUI.Utility.$1f(this.$1J_2,this.get_properties().ImageRightSide,this.get_properties().ImageRightSideClass,this.get_properties().ImageRightSideTop,this.get_properties().ImageRightSideLeft,null,this.get_properties().Height);this.$1J_2.style.width=this.get_properties().ImageRightSideWidth+"px";this.$1J_2.style.height=this.get_properties().Height+"px";this.$H_2.appendChild(this.$1J_2)}}this.$O(a);this.$E_2.appendChild(this.$H_2);return this.$E_2},$35:function(a){ULSqdK:;this.ensureValidDisplayMode(a);var b=$get(this.$6_0+"-"+a);this.storeElementForDisplayMode(b,a);var c=b.childNodes[0];this.$E_2=b;this.$H_2=c;this.$2w_2=!CUI.ScriptUtility.isNullOrEmptyString(this.get_properties().LabelText);if(!this.$2w_2){this.$5L_2=this.$H_2.childNodes[0];this.$1s_2=this.$5L_2.childNodes[0]}else{this.$1I_2=$get(this.$6_0+"-"+a+"-left");this.$1Y_2=$get(this.$6_0+"-"+a+"-middle");if(this.$1Y_2)this.$2r_2=this.$1Y_2.firstChild;this.$1J_2=$get(this.$6_0+"-"+a+"-right")}},$O:function(a){ULSqdK:;this.ensureValidDisplayMode(a);$addHandler(this.$H_2,"mouseover",this.$3K);$addHandler(this.$H_2,"focus",this.$3K);$addHandler(this.$H_2,"mouseout",this.$3H);$addHandler(this.$H_2,"blur",this.$3H);$addHandler(this.$H_2,"click",this.$1G);$addHandler(this.$H_2,"keypress",this.$8S);Sys.Browser.agent===Sys.Browser.InternetExplorer&&$addHandler(this.$H_2,"contextmenu",this.$8D)},onEnabledChanged:function(a){ULSqdK:;CUI.Utility.setEnabledOnElement(this.$H_2,a)},onFocus:function(){ULSqdK:;if(!this.get_enabled()||this.$i_1)return;this.$39_2()},onBlur:function(){ULSqdK:;if(!this.get_enabled()||this.$i_1)return;this.$1T_2()},onClick:function(a){ULSqdK:;a.preventDefault();if(!this.get_enabled()||CUI.ScriptUtility.isNullOrUndefined(a)||a.button)return;if(this.$i_1){this.$4o();return}this.$Ai_2()},onKeyPress:function(a){ULSqdK:;if(!this.get_enabled())return;if(!a||!a.rawEvent)return;var b=a.rawEvent.keyCode;if(b===13||b===32||b===40){this.$1D_1=true;if(this.$i_1)this.$4o();else this.$Ai_2();a.preventDefault()}},onContextMenu:function(a){ULSqdK:;!CUI.ScriptUtility.isNullOrUndefined(a)&&a.preventDefault()},$Ai_2:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.get_properties().ImageDown))return;if(!this.$2w_2){this.$1s_2.src=this.get_properties().ImageDown;if(!CUI.ScriptUtility.isNullOrUndefined(this.get_properties().ImageDownClass))this.$1s_2.className=this.get_properties().ImageDownClass}else{this.$1I_2&&CUI.Utility.$1f(this.$1I_2,this.get_properties().ImageLeftSideDown,this.get_properties().ImageLeftSideDownClass,this.get_properties().ImageLeftSideDownTop,this.get_properties().ImageLeftSideDownLeft,null,this.get_properties().Height);CUI.Utility.$1f(this.$1Y_2,this.get_properties().ImageDown,this.get_properties().ImageDownClass,this.get_properties().ImageDownTop,this.get_properties().ImageDownLeft,null,this.get_properties().Height);this.$1J_2&&CUI.Utility.$1f(this.$1J_2,this.get_properties().ImageRightSideDown,this.get_properties().ImageRightSideDownClass,this.get_properties().ImageRightSideDownTop,this.get_properties().ImageRightSideDownLeft,null,this.get_properties().Height)}this.launchMenuInternal(this.$H_2)},onLaunchedMenuClosed:function(){ULSqdK:;this.$1T_2();this.get_displayedComponent().raiseCommandEvent(this.get_properties().CommandMenuClose,10,null)},launchMenuInternal:function(a){ULSqdK:;this.launchMenu(a);this.get_displayedComponent().raiseCommandEvent(this.get_properties().CommandMenuOpen,4,null)},$39_2:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.get_properties().ImageHover))return;if(!this.$2w_2){this.$1s_2.src=this.get_properties().ImageHover;if(!CUI.ScriptUtility.isNullOrUndefined(this.get_properties().ImageHoverClass))this.$1s_2.className=this.get_properties().ImageHoverClass}else{this.$1I_2&&CUI.Utility.$1f(this.$1I_2,this.get_properties().ImageLeftSideHover,this.get_properties().ImageLeftSideHoverClass,this.get_properties().ImageLeftSideHoverTop,this.get_properties().ImageLeftSideHoverLeft,null,this.get_properties().Height);CUI.Utility.$1f(this.$1Y_2,this.get_properties().ImageHover,this.get_properties().ImageHoverClass,this.get_properties().ImageHoverTop,this.get_properties().ImageHoverLeft,null,this.get_properties().Height);this.$1J_2&&CUI.Utility.$1f(this.$1J_2,this.get_properties().ImageRightSideHover,this.get_properties().ImageRightSideHoverClass,this.get_properties().ImageRightSideHoverTop,this.get_properties().ImageRightSideHoverLeft,null,this.get_properties().Height)}},$1T_2:function(){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.get_properties().ImageHover))return;if(!this.$2w_2){this.$1s_2.src=this.get_properties().Image;if(!CUI.ScriptUtility.isNullOrUndefined(this.get_properties().ImageClass))this.$1s_2.className=this.get_properties().ImageClass}else{this.$1I_2&&CUI.Utility.$1f(this.$1I_2,this.get_properties().ImageLeftSide,this.get_properties().ImageLeftSideClass,this.get_properties().ImageLeftSideTop,this.get_properties().ImageLeftSideLeft,null,this.get_properties().Height);CUI.Utility.$1f(this.$1Y_2,this.get_properties().Image,this.get_properties().ImageClass,this.get_properties().ImageTop,this.get_properties().ImageLeft,null,this.get_properties().Height);this.$1J_2&&CUI.Utility.$1f(this.$1J_2,this.get_properties().ImageRightSide,this.get_properties().ImageRightSideClass,this.get_properties().ImageRightSideTop,this.get_properties().ImageRightSideLeft,null,this.get_properties().Height)}},get_properties:function(){ULSqdK:;return this.$5_0},$Cs:function(){ULSqdK:;this.$H_2.focus()}};Type.registerNamespace("CUI.Page");CUI.Page.CommandDispatcher=function(){ULSqdK:;this.$2L_0={}};CUI.Page.CommandDispatcher.prototype={$2L_0:null,$7U:function(){},$5h_0:0,getNextSequenceNumber:function(){ULSqdK:;if(this.$5h_0+1<0)throw Error.create("Command Dispatcher sequence numbers overflowed into negative numbers.");return ++this.$5h_0},peekNextSequenceNumber:function(){ULSqdK:;return this.$5h_0+1},getLastSequenceNumber:function(){ULSqdK:;return this.$5h_0},executeCommand:function(b,a){ULSqdK:;return this.$Cl(b,a,this.getNextSequenceNumber())},$Cl:function(c,f,g){ULSqdK:;var a=this.$2L_0[c];if(CUI.ScriptUtility.isNullOrUndefined(a))return false;else if(Array.isInstanceOfType(a)){for(var d=a,e=false,b=0;b<d.length;b++){var h=d[b];if(this.callCommandHandler(h,c,f,g))e=true}return e}else return this.callCommandHandler(a,c,f,g)},isCommandEnabled:function(b){ULSqdK:;var a=this.$2L_0[b];if(CUI.ScriptUtility.isNullOrUndefined(a))return false;else if(Array.isInstanceOfType(a)){for(var d=a,c=0;c<d.length;c++){var e=d[c];if(this.callCommandHandlerForEnabled(e,b))return true}return false}else return this.callCommandHandlerForEnabled(a,b)},$AQ:function(a){ULSqdK:;return this.$2L_0[a]},registerCommandHandler:function(c,a){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(c)||CUI.ScriptUtility.isNullOrUndefined(a))throw Error.create("commandId and handler may not be null or undefined");var b=this.$2L_0[c];if(CUI.ScriptUtility.isNullOrUndefined(b))this.$2L_0[c]=a;else if(Array.isInstanceOfType(b))!Array.contains(b,a)&&Array.add(b,a);else{if(b===a)return;var d=[];Array.add(d,b);Array.add(d,a);this.$2L_0[c]=d}},unregisterCommandHandler:function(b,c){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(b)||CUI.ScriptUtility.isNullOrUndefined(c))throw Error.create("commandId and handler may not be null or undefined");var a=this.$2L_0[b];if(CUI.ScriptUtility.isNullOrUndefined(a))return;else if(Array.isInstanceOfType(a))Array.remove(a,c);else if(a===c)this.$2L_0[b]=null},registerMultipleCommandHandler:function(c,b){ULSqdK:;for(var a=0;a<b.length;a++)this.registerCommandHandler(b[a],c)},unregisterMultipleCommandHandler:function(c,b){ULSqdK:;for(var a=0;a<b.length;a++)this.unregisterCommandHandler(b[a],c)},callCommandHandler:function(d,c,b,a){ULSqdK:;return d.handleCommand(c,b,a)},callCommandHandlerForEnabled:function(b,a){ULSqdK:;return b.canHandleCommand(a)}};CUI.Page.FocusManager=function(a){ULSqdK:;CUI.Page.FocusManager.initializeBase(this);this.$22_1=a;this.$k_1=[];this.$2b_1={};this.$1M_1=[];this.$2X_1={}};CUI.Page.FocusManager.prototype={$1M_1:null,$2b_1:null,$22_1:null,$2X_1:null,$7U:function(){},$AZ_1:function(){ULSqdK:;this.$2X_1={};for(var c=this.$1M_1.length,a=0;a<c;a++){var b=this.$1M_1[a];this.$2X_1[b]=b}},requestFocusForComponent:function(a){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(a))return false;if(Array.contains(this.$1M_1,a))return true;Array.add(this.$1M_1,a);this.$AZ_1();a.receiveFocus();return true},releaseFocusFromComponent:function(a){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(a))return false;if(!Array.contains(this.$1M_1,a))return true;Array.remove(this.$1M_1,a);this.$AZ_1();a.yieldFocus();return true},releaseAllFoci:function(){ULSqdK:;this.$2X_1={};for(var c=this.$1M_1.length,a=c-1;a>=0;a--){var b=this.$1M_1[a];Array.remove(this.$1M_1,b);b.yieldFocus()}return true},getFocusedComponents:function(){ULSqdK:;return Array.clone(this.$1M_1)},handleCommand:function(b,e,d){ULSqdK:;var a=this.$AQ(b);if(CUI.ScriptUtility.isNullOrUndefined(a))return false;else if(Array.isInstanceOfType(a)){for(var f=a,c=0;c<f.length;c++){var g=f[c];if(CUI.ScriptUtility.isNullOrUndefined(this.$2X_1[g]))continue;if(this.callCommandHandler(g,b,e,d))return true}return false}else{if(CUI.ScriptUtility.isNullOrUndefined(this.$2X_1[a]))return false;return this.callCommandHandler(a,b,e,d)}},canHandleCommand:function(b){ULSqdK:;var a=this.$AQ(b);if(CUI.ScriptUtility.isNullOrUndefined(a))return false;else if(Array.isInstanceOfType(a)){for(var d=a,c=0;c<d.length;c++){var e=d[c];if(CUI.ScriptUtility.isNullOrUndefined(this.$2X_1[e]))continue;if(this.callCommandHandlerForEnabled(e,b))return true}return false}else{if(CUI.ScriptUtility.isNullOrUndefined(this.$2X_1[a]))return false;return this.callCommandHandlerForEnabled(a,b)}},$k_1:null,$BY:function(a){ULSqdK:;if(Array.contains(this.$k_1,a))return;this.registerMultipleCommandHandler(a,a.getFocusedCommands());Array.add(this.$k_1,a)},$Dw:function(a){ULSqdK:;if(!Array.contains(this.$k_1,a))return;this.unregisterMultipleCommandHandler(a,a.getFocusedCommands());this.releaseFocusFromComponent(a);Array.remove(this.$k_1,a)},executeCommand:function(){ULSqdK:;throw Error.create("ExecuteCommand should not be called on the main CommandDispatcher of the page, not the FocusManager")},registerCommandHandler:function(a,b){ULSqdK:;CUI.Page.FocusManager.callBaseMethod(this,"registerCommandHandler",[a,b]);if(CUI.ScriptUtility.isNullOrUndefined(this.$2b_1[a])){this.$22_1.$z_1.registerCommandHandler(a,this);this.$2b_1[a]=0}var c=this.$2b_1[a];this.$2b_1[a]=c+1},unregisterCommandHandler:function(a,c){ULSqdK:;CUI.Page.FocusManager.callBaseMethod(this,"unregisterCommandHandler",[a,c]);var b=this.$2b_1[a];if(!CUI.ScriptUtility.isNullOrUndefined(b)&&b>0){this.$2b_1[a]=--b;if(b<=0){this.$22_1.$z_1.unregisterCommandHandler(a,this);delete this.$2b_1[a]}}},getNextSequenceNumber:function(){ULSqdK:;throw Error.create("The FocusManager does not issue command sequence numbers.  This is only done by the main CommandDispatcher of the page.")},peekNextSequenceNumber:function(){ULSqdK:;throw Error.create("The FocusManager does not issue command sequence numbers.  This is only done by the main CommandDispatcher of the page.")},getLastSequenceNumber:function(){ULSqdK:;throw Error.create("The FocusManager does not issue command sequence numbers.  This is only done by the main CommandDispatcher of the page.")},callCommandHandler:function(a,d,c,b){ULSqdK:;if(!Array.contains(this.$1M_1,a))return false;return a.handleCommand(d,c,b)},callCommandHandlerForEnabled:function(a,b){ULSqdK:;if(!Array.contains(this.$1M_1,a))return false;return a.canHandleCommand(b)}};CUI.Page.PageManager=function(){ULSqdK:;this.$59=Function.createDelegate(this,this.$7Z_1);CUI.Page.PageManager.initializeBase(this);this.$k_1=[];this.$4C_1={};this.$z_1=new CUI.Page.CommandDispatcher;this.$3h_1=new CUI.Page.FocusManager(this);this.$5k_1=new CUI.Page.UndoManager(this);this.$2M_1=[];this.$21_1=this.$59;$addHandler(window,"unload",this.$21_1)};CUI.Page.PageManager.initialize=function(){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(CUI.Page.PageManager._instance))return;CUI.Page.PageManager._instance=CUI.Page.PageManager.createPageManager();CUI.Page.PageManager._instance.initializeInternal()};CUI.Page.PageManager.createPageManager=function(){ULSqdK:;return new CUI.Page.PageManager};CUI.Page.PageManager.get_instance=function(){ULSqdK:;!CUI.Page.PageManager._instance&&CUI.Page.PageManager.initialize();return CUI.Page.PageManager._instance};CUI.Page.PageManager.prototype={$21_1:null,initializeInternal:function(){ULSqdK:;this.$z_1.$7U();this.$5k_1.$7U();this.$3h_1.$7U();this.$z_1.registerCommandHandler("appstatechanged",this)},$7Z_1:function(){ULSqdK:;this.dispose()},dispose:function(){ULSqdK:;!CUI.ScriptUtility.isNullOrUndefined(this.get_ribbon())&&this.get_ribbon().$Cp();this.$3h_1=null;this.$5k_1=null;this.$z_1=null;this.$2M_1=null;this.$k_1=null;$addHandler(window,"unload",this.$21_1)},$z_1:null,get_commandDispatcher:function(){ULSqdK:;return this.$z_1},$3h_1:null,get_focusManager:function(){ULSqdK:;return this.$3h_1},$5k_1:null,get_undoManager:function(){ULSqdK:;return this.$5k_1},$6R_1:null,get_$7H_1:function(){ULSqdK:;if(!this.$6R_1)this.$6R_1=new Sys.EventHandlerList;return this.$6R_1},$3o_1:null,get_ribbon:function(){ULSqdK:;return this.$3o_1},set_ribbon:function(a){ULSqdK:;if(a===this.$3o_1)return;if(CUI.ScriptUtility.isNullOrUndefined(a)&&!CUI.ScriptUtility.isNullOrUndefined(this.$3o_1)){this.removeRoot(this.$3o_1);this.$3o_1=null}else if(!Array.contains(this.$2M_1,a)){this.addRoot(a);this.$3o_1=a}return a},add_ribbonInited:function(a){ULSqdK:;this.get_$7H_1().addHandler("RibbonInited",a)},remove_ribbonInited:function(a){ULSqdK:;this.get_$7H_1().removeHandler("RibbonInited",a)},onComponentBuilt:function(b){ULSqdK:;this.pollRootState(b);if(CUI.Ribbon.isInstanceOfType(b)){var a=this.get_$7H_1().getHandler("RibbonInited");a&&a(this,Sys.EventArgs.Empty)}},onComponentCreated:function(a){ULSqdK:;if(CUI.Ribbon.isInstanceOfType(a)&&CUI.ScriptUtility.isNullOrUndefined(this.get_ribbon()))this.set_ribbon(a);else this.addRoot(a)},$2M_1:null,addRoot:function(a){ULSqdK:;if(Array.contains(this.$2M_1,a))throw Error.create("This Root has already been added to the PageManager");Array.add(this.$2M_1,a);a.set_rootUser(this)},removeRoot:function(a){ULSqdK:;if(!Array.contains(this.$2M_1,a))throw Error.create("This Root has not been added to the PageManager.");Array.remove(this.$2M_1,a);a.set_rootUser(null)},$k_1:null,$4C_1:null,getPageComponentById:function(a){ULSqdK:;return this.$4C_1[a]},addPageComponent:function(a){ULSqdK:;!CUI.ScriptUtility.isNullOrUndefined(this.$4C_1[a.getId()])&&Error.create("A PageComponent with id: "+a.getId()+" has already been added to the PageManger.");if(!CUI.ScriptUtility.isNullOrUndefined(this.$k_1)&&!Array.contains(this.$k_1,a)){this.$4C_1[a.getId()]=a;a.init();this.$z_1.registerMultipleCommandHandler(a,a.getGlobalCommands());Array.add(this.$k_1,a);a.isFocusable()&&this.$3h_1.$BY(a)}},removePageComponent:function(a){ULSqdK:;if(CUI.ScriptUtility.isNullOrUndefined(this.$k_1)||!Array.contains(this.$k_1,a))return;this.$z_1.unregisterMultipleCommandHandler(a,a.getGlobalCommands());Array.remove(this.$k_1,a);a.isFocusable()&&this.$3h_1.$Dw(a);this.$4C_1[a.getId()]=null},executeRootCommand:function(b,a){ULSqdK:;return this.$z_1.executeCommand(b,a)},isRootCommandEnabled:function(a){ULSqdK:;return this.$z_1.isCommandEnabled(a)},onRootRefreshed:function(a){ULSqdK:;!CUI.ScriptUtility.isNullOrUndefined(a)&&this.pollRootState(a)},handleCommand:function(c){ULSqdK:;if(c==="appstatechanged"){for(var a=0;a<this.$2M_1.length;a++){var b=this.$2M_1[a];this.pollRootState(b);b.$g_0&&b.$L()}return true}return false},$6q_1:false,get_rootPollingInProgress:function(){ULSqdK:;return this.$6q_1},pollRootState:function(a){ULSqdK:;try{this.$6q_1=true;a.pollForStateAndUpdate()}finally{this.$6q_1=false}},changeCommandContext:function(a){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(this.get_ribbon()))return this.get_ribbon().selectTabByCommand(a);return false},canHandleCommand:function(a){ULSqdK:;return a==="appstatechanged"},restoreFocusToRibbon:function(){ULSqdK:;!this.get_ribbon().restoreFocus()&&this.get_ribbon().setFocus()}};CUI.Page.UndoManager=function(a){ULSqdK:;this.$6p_0=CUI.Page.UndoManager.$28_0;this.$22_0=a;this.$1E_0=[];this.$14_0=[];this.$24_0={}};CUI.Page.UndoManager.prototype={$22_0:null,$24_0:null,$1E_0:null,$14_0:null,$7U:function(){ULSqdK:;this.$22_0.$z_1.registerCommandHandler("GlobalUndo",this);this.$22_0.$z_1.registerCommandHandler("GlobalRedo",this);this.$22_0.$z_1.registerCommandHandler("grpedit",this)},addUndoSequenceNumber:function(a){ULSqdK:;this.$Dr_0(a);a!==this.$6p_0&&this.$CY_0()},addRedoSequenceNumber:function(a){ULSqdK:;this.$Dq_0(a)},get_oldestSequenceNumber:function(){ULSqdK:;if(!this.$1E_0.length)return CUI.Page.UndoManager.$28_0;var a=CUI.Page.UndoManager.$28_0,b=CUI.Page.UndoManager.$28_0;if(this.$1E_0.length>0)a=this.$1E_0[this.$1E_0.length-1];if(this.$14_0.length>0)b=this.$14_0[0];if(a===CUI.Page.UndoManager.$28_0)return a;else return a},$CW_0:function(){ULSqdK:;var a=this.$Dm_0();if(a===CUI.Page.UndoManager.$28_0)return;var b={};b["SequenceNumber"]=a;this.$22_0.$z_1.executeCommand("Undo",b)},$CV_0:function(){ULSqdK:;var a=this.$Dl_0();if(a===CUI.Page.UndoManager.$28_0)return;var b={};b["SequenceNumber"]=a;this.$6p_0=this.$22_0.$z_1.peekNextSequenceNumber();this.$22_0.$z_1.executeCommand("Redo",b)},$Dl_0:function(){ULSqdK:;if(!this.$14_0.length)return CUI.Page.UndoManager.$28_0;var a=this.$14_0[0];Array.removeAt(this.$14_0,0);this.$24_0[a.toString()]=null;return a},$Dq_0:function(a){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(this.$24_0[a.toString()])){if(this.$1E_0[0]!==a)throw Error.create("This command sequence number is already on the undo or the redo stack but it is not ontop of the redo stack.  Pushing it would result in out of sequence redo and undo stacks.");return}Array.insert(this.$14_0,0,a);this.$24_0[a.toString()]=a},$Dm_0:function(){ULSqdK:;if(!this.$1E_0.length)return CUI.Page.UndoManager.$28_0;var a=this.$1E_0[0];Array.removeAt(this.$1E_0,0);this.$24_0[a.toString()]=null;return a},$Dr_0:function(a){ULSqdK:;if(!CUI.ScriptUtility.isNullOrUndefined(this.$24_0[a.toString()])){if(this.$1E_0[0]!==a)throw Error.create("This command sequence number is already on the stack and not on top.  Pushing it would result in an out of sequence undo stack.");return}Array.insert(this.$1E_0,0,a);this.$24_0[a.toString()]=a},$CY_0:function(){ULSqdK:;for(var a=0;a<this.$14_0.length;a++){this.$24_0[this.$14_0[a].toString()]=null;Array.remove(this.$14_0,this.$14_0[a])}Array.clear(this.$14_0)},invalidateUndoSequenceNumber:function(b){ULSqdK:;for(var a=this.$1E_0.length-1;a>-1;a--){var c=this.$1E_0[a];if(c<=b){Array.removeAt(this.$1E_0,a);this.$24_0[c.toString()]=null}}while(this.$14_0.length>0&&this.$14_0[0]<=b){this.$24_0[this.$14_0[0].toString()]=null;Array.removeAt(this.$14_0,0)}},canHandleCommand:function(a){ULSqdK:;if(a==="GlobalUndo")return this.$1E_0.length>0;else if(a==="GlobalRedo")return this.$14_0.length>0;else if(a==="grpedit")return true;return false},handleCommand:function(a){ULSqdK:;switch(a){case "GlobalUndo":this.$CW_0();return true;case "GlobalRedo":this.$CV_0();return true}return false}};Type.registerNamespace("Commands");Commands.CommandIds=function(){};Commands.GlobalRedoProperties=function(){};Commands.RedoProperties=function(){};Commands.GlobalUndoProperties=function(){};Commands.UndoProperties=function(){};CUI.BuildOptions.registerClass("CUI.BuildOptions");CUI.BuildContext.registerClass("CUI.BuildContext");CUI.DataNodeWrapper.registerClass("CUI.DataNodeWrapper");CUI.Builder.registerClass("CUI.Builder",null,Sys.IDisposable);CUI.CommandEventArgs.registerClass("CUI.CommandEventArgs",Sys.EventArgs);CUI.Component.registerClass("CUI.Component",null,CUI.IMenuItem,Sys.IDisposable);CUI.Menu.registerClass("CUI.Menu",CUI.Component);CUI.ContextMenu.registerClass("CUI.ContextMenu",CUI.Menu);CUI.ContextMenuDock.registerClass("CUI.ContextMenuDock",CUI.Component);CUI.Control.registerClass("CUI.Control",null,Sys.IDisposable,CUI.IMenuItem);CUI.MenuLauncher.registerClass("CUI.MenuLauncher",CUI.Control,CUI.IModalController);CUI.ContextMenuLauncher.registerClass("CUI.ContextMenuLauncher",CUI.MenuLauncher);CUI.RootProperties.registerClass("CUI.RootProperties");CUI.ContextMenuRootProperties.registerClass("CUI.ContextMenuRootProperties",CUI.RootProperties);CUI.Root.registerClass("CUI.Root",CUI.Component,Sys.IDisposable);CUI.ContextMenuRoot.registerClass("CUI.ContextMenuRoot",CUI.Root);CUI.ControlProperties.registerClass("CUI.ControlProperties");CUI.ControlComponent.registerClass("CUI.ControlComponent",CUI.Component);CUI.DataQueryResult.registerClass("CUI.DataQueryResult");CUI.DataQuery.registerClass("CUI.DataQuery");CUI.DataSource.registerClass("CUI.DataSource");CUI.Gallery.registerClass("CUI.Gallery",CUI.Component);CUI.Jewel.registerClass("CUI.Jewel",CUI.Root);CUI.JewelBuildContext.registerClass("CUI.JewelBuildContext",CUI.BuildContext);CUI.JewelBuildOptions.registerClass("CUI.JewelBuildOptions",CUI.BuildOptions);CUI.JewelBuilder.registerClass("CUI.JewelBuilder",CUI.Builder);CUI.MenuItem.registerClass("CUI.MenuItem",CUI.ControlComponent);CUI.MenuLauncherControlProperties.registerClass("CUI.MenuLauncherControlProperties",CUI.ControlProperties);CUI.BrowserUtility.registerClass("CUI.BrowserUtility");CUI.MenuSection.registerClass("CUI.MenuSection",CUI.Component);CUI.QAT.registerClass("CUI.QAT",CUI.Root);CUI.QATBuildContext.registerClass("CUI.QATBuildContext",CUI.BuildContext);CUI.QATBuildOptions.registerClass("CUI.QATBuildOptions",CUI.BuildOptions);CUI.QATBuilder.registerClass("CUI.QATBuilder",CUI.Builder);CUI.RibbonPeripheralSection.registerClass("CUI.RibbonPeripheralSection");CUI.ContextualGroup.registerClass("CUI.ContextualGroup",null,Sys.IDisposable);CUI.Template.registerClass("CUI.Template");CUI.DeclarativeTemplate.registerClass("CUI.DeclarativeTemplate",CUI.Template);CUI.RibbonComponent.registerClass("CUI.RibbonComponent",CUI.Component);CUI.Group.registerClass("CUI.Group",CUI.RibbonComponent);CUI.GroupPopup.registerClass("CUI.GroupPopup",CUI.Component);CUI.Layout.registerClass("CUI.Layout",CUI.RibbonComponent);CUI.GroupPopupLayout.registerClass("CUI.GroupPopupLayout",CUI.Layout);CUI.RootEventCommandProperties.registerClass("CUI.RootEventCommandProperties");CUI.RibbonEventCommandProperties.registerClass("CUI.RibbonEventCommandProperties",CUI.RootEventCommandProperties);CUI.CommandContextSwitchCommandProperties.registerClass("CUI.CommandContextSwitchCommandProperties");CUI.Ribbon.registerClass("CUI.Ribbon",CUI.Root);CUI.RibbonCommand.registerClass("CUI.RibbonCommand");CUI.RibbonBuildContext.registerClass("CUI.RibbonBuildContext",CUI.BuildContext);CUI.RibbonBuildOptions.registerClass("CUI.RibbonBuildOptions",CUI.BuildOptions);CUI.RibbonBuilder.registerClass("CUI.RibbonBuilder",CUI.Builder);CUI.Row.registerClass("CUI.Row",CUI.Component);CUI.ScalingStep.registerClass("CUI.ScalingStep");CUI.Scaling.registerClass("CUI.Scaling");CUI.Section.registerClass("CUI.Section",CUI.RibbonComponent);CUI.Strip.registerClass("CUI.Strip",CUI.RibbonComponent);CUI.Tab.registerClass("CUI.Tab",CUI.RibbonComponent);CUI.TemplateManager.registerClass("CUI.TemplateManager");CUI.RootUser.registerClass("CUI.RootUser");CUI.ButtonDock.registerClass("CUI.ButtonDock",CUI.Component);CUI.Toolbar.registerClass("CUI.Toolbar",CUI.Root);CUI.ToolbarBuildContext.registerClass("CUI.ToolbarBuildContext",CUI.BuildContext);CUI.ToolbarBuildOptions.registerClass("CUI.ToolbarBuildOptions",CUI.BuildOptions);CUI.ToolbarBuilder.registerClass("CUI.ToolbarBuilder",CUI.Builder);CUI.ToolTip.registerClass("CUI.ToolTip",CUI.Component);CUI.Unit.registerClass("CUI.Unit");CUI.Utility.registerClass("CUI.Utility");CUI.ScriptUtility.registerClass("CUI.ScriptUtility");CUI.UIUtility.registerClass("CUI.UIUtility");CUI.ListNode.registerClass("CUI.ListNode");CUI.List.registerClass("CUI.List",null,IEnumerable);CUI.ListEnumerator.registerClass("CUI.ListEnumerator",null,IEnumerator);CUI.JsonXmlElement.registerClass("CUI.JsonXmlElement");CUI.Controls.ContextMenuControlProperties.registerClass("CUI.Controls.ContextMenuControlProperties",CUI.MenuLauncherControlProperties);CUI.Controls.ContextMenuControl.registerClass("CUI.Controls.ContextMenuControl",CUI.ContextMenuLauncher);CUI.Controls.Button.registerClass("CUI.Controls.Button",CUI.Control,CUI.IMenuItem,CUI.ISelectableControl);CUI.Controls.CheckBoxCommandProperties.registerClass("CUI.Controls.CheckBoxCommandProperties");CUI.Controls.ToggleButton.registerClass("CUI.Controls.ToggleButton",CUI.Control,CUI.IMenuItem,CUI.ISelectableControl);CUI.Controls.CheckBox.registerClass("CUI.Controls.CheckBox",CUI.Controls.ToggleButton);CUI.Controls.ColorPickerCommandProperties.registerClass("CUI.Controls.ColorPickerCommandProperties");CUI.Controls.ColorPicker.registerClass("CUI.Controls.ColorPicker",CUI.Control,CUI.IMenuItem);CUI.Controls.ComboBoxCommandProperties.registerClass("CUI.Controls.ComboBoxCommandProperties");CUI.Controls.DropDown.registerClass("CUI.Controls.DropDown",CUI.MenuLauncher);CUI.Controls.ComboBox.registerClass("CUI.Controls.ComboBox",CUI.Controls.DropDown);CUI.Controls.DropDownCommandProperties.registerClass("CUI.Controls.DropDownCommandProperties");CUI.Controls.FlyoutAnchor.registerClass("CUI.Controls.FlyoutAnchor",CUI.MenuLauncher);CUI.Controls.GalleryButtonCommandProperties.registerClass("CUI.Controls.GalleryButtonCommandProperties");CUI.Controls.GalleryButton.registerClass("CUI.Controls.GalleryButton",CUI.Control,CUI.ISelectableControl);CUI.Controls.InsertTableCommandProperties.registerClass("CUI.Controls.InsertTableCommandProperties");CUI.Controls.InsertTable.registerClass("CUI.Controls.InsertTable",CUI.Control);CUI.Controls.LabelCommandProperties.registerClass("CUI.Controls.LabelCommandProperties");CUI.Controls.Label.registerClass("CUI.Controls.Label",CUI.Control);CUI.Controls.MRUSplitButton.registerClass("CUI.Controls.MRUSplitButton",CUI.Controls.DropDown);CUI.Controls.Separator.registerClass("CUI.Controls.Separator",CUI.Control);CUI.Controls.SpinnerCommandProperties.registerClass("CUI.Controls.SpinnerCommandProperties");CUI.Controls.Spinner.registerClass("CUI.Controls.Spinner",CUI.Control);CUI.Controls.SplitButton.registerClass("CUI.Controls.SplitButton",CUI.MenuLauncher);CUI.Controls.TextBoxCommandProperties.registerClass("CUI.Controls.TextBoxCommandProperties");CUI.Controls.TextBox.registerClass("CUI.Controls.TextBox",CUI.Control);CUI.Controls.ToggleButtonCommandProperties.registerClass("CUI.Controls.ToggleButtonCommandProperties");CUI.Controls.JewelMenuLauncher.registerClass("CUI.Controls.JewelMenuLauncher",CUI.MenuLauncher);CUI.Page.CommandDispatcher.registerClass("CUI.Page.CommandDispatcher");CUI.Page.FocusManager.registerClass("CUI.Page.FocusManager",CUI.Page.CommandDispatcher,CUI.Page.ICommandHandler);CUI.Page.PageManager.registerClass("CUI.Page.PageManager",CUI.RootUser,CUI.Page.ICommandHandler,CUI.IRootBuildClient);CUI.Page.UndoManager.registerClass("CUI.Page.UndoManager",null,CUI.Page.ICommandHandler);Commands.CommandIds.registerClass("Commands.CommandIds");Commands.GlobalRedoProperties.registerClass("Commands.GlobalRedoProperties");Commands.RedoProperties.registerClass("Commands.RedoProperties");Commands.GlobalUndoProperties.registerClass("Commands.GlobalUndoProperties");Commands.UndoProperties.registerClass("Commands.UndoProperties");CUI.DataNodeWrapper.ATTRIBUTES="attrs";CUI.DataNodeWrapper.CHILDREN="children";CUI.DataNodeWrapper.NAME="name";CUI.DataNodeWrapper.ALIGNMENT="Alignment";CUI.DataNodeWrapper.ALT="Alt";CUI.DataNodeWrapper.CLASSNAME="Classname";CUI.DataNodeWrapper.COLOR="Color";CUI.DataNodeWrapper.COMMAND="Command";CUI.DataNodeWrapper.CONTEXTUALGROUPID="ContextualGroupId";CUI.DataNodeWrapper.CSSCLASS="CssClass";CUI.DataNodeWrapper.DARKBLUE="DarkBlue";CUI.DataNodeWrapper.DECIMALDIGITS="DecimalDigits";CUI.DataNodeWrapper.DESCRIPTION="Description";CUI.DataNodeWrapper.DISPLAYCOLOR="DisplayColor";CUI.DataNodeWrapper.DISPLAYMODE="DisplayMode";CUI.DataNodeWrapper.DIVIDER="Divider";CUI.DataNodeWrapper.ELEMENTDIMENSIONS="ElementDimensions";CUI.DataNodeWrapper.GREEN="Green";CUI.DataNodeWrapper.GROUPID="GroupId";CUI.DataNodeWrapper.id="Id";CUI.DataNodeWrapper.INDEX="Index";CUI.DataNodeWrapper.INTERVAL="Interval";CUI.DataNodeWrapper.LABELTEXT="LabelText";CUI.DataNodeWrapper.LAYOUTTITLE="LayoutTitle";CUI.DataNodeWrapper.LIGHTBLUE="LightBlue";CUI.DataNodeWrapper.LOWSCALEWARNING="LowScaleWarning";CUI.DataNodeWrapper.MAGENTA="Magenta";CUI.DataNodeWrapper.MAXHEIGHT="MaxHeight";CUI.DataNodeWrapper.MAXIMUMVALUE="MaximumValue";CUI.DataNodeWrapper.MAXWIDTH="MaxWidth";CUI.DataNodeWrapper.MENUITEMID="MenuItemId";CUI.DataNodeWrapper.MESSAGE="Message";CUI.DataNodeWrapper.MINIMUMVALUE="MinimumValue";CUI.DataNodeWrapper.namE_CAPS="Name";CUI.DataNodeWrapper.ONEROW="OneRow";CUI.DataNodeWrapper.ORANGE="Orange";CUI.DataNodeWrapper.POPUP="Popup";CUI.DataNodeWrapper.POPUPSIZE="PopupSize";CUI.DataNodeWrapper.PURPLE="Purple";CUI.DataNodeWrapper.SCROLLABLE="Scrollable";CUI.DataNodeWrapper.SEQUENCE="Sequence";CUI.DataNodeWrapper.SIZE="Size";CUI.DataNodeWrapper.STYLE="Style";CUI.DataNodeWrapper.TEAL="Teal";CUI.DataNodeWrapper.TEMPLATEALIAS="TemplateAlias";CUI.DataNodeWrapper.THREEROW="ThreeRow";CUI.DataNodeWrapper.TITLE="Title";CUI.DataNodeWrapper.TWOROW="TwoRow";CUI.DataNodeWrapper.TYPE="Type";CUI.DataNodeWrapper.VALUE="Value";CUI.DataNodeWrapper.YELLOW="Yellow";CUI.DataNodeWrapper.RIBBON="Ribbon";CUI.DataNodeWrapper.QAT="QAT";CUI.DataNodeWrapper.JEWEL="Jewel";CUI.DataNodeWrapper.TABS="Tabs";CUI.DataNodeWrapper.CONTEXTUALTABS="ContextualTabs";CUI.DataNodeWrapper.CONTEXTUALGROUP="ContextualGroup";CUI.DataNodeWrapper.TAB="Tab";CUI.DataNodeWrapper.SCALING="Scaling";CUI.DataNodeWrapper.MAXSIZE="MaxSize";CUI.DataNodeWrapper.SCALE="Scale";CUI.DataNodeWrapper.GROUP="Group";CUI.DataNodeWrapper.GROUPS="Groups";CUI.DataNodeWrapper.LAYOUT="Layout";CUI.DataNodeWrapper.SECTION="Section";CUI.DataNodeWrapper.OVERFLOWSECTION="OverflowSection";CUI.DataNodeWrapper.ROW="Row";CUI.DataNodeWrapper.CONTROL="ControlRef";CUI.DataNodeWrapper.OVERFLOWAREA="OverflowArea";CUI.DataNodeWrapper.STRIP="Strip";CUI.DataNodeWrapper.CONTROLS="Controls";CUI.DataNodeWrapper.MENU="Menu";CUI.DataNodeWrapper.MENUSECTION="MenuSection";CUI.DataNodeWrapper.TEMPLATE="Template";CUI.DataNodeWrapper.TEMPLATES="Templates";CUI.DataNodeWrapper.RIBBONTEMPLATES="RibbonTemplates";CUI.DataNodeWrapper.GROUPTEMPLATE="GroupTemplate";CUI.DataNodeWrapper.GALLERY="Gallery";CUI.DataNodeWrapper.colors="Colors";CUI.DataNodeWrapper.color="Color";CUI.DataNodeWrapper.toggleButton="ToggleButton";CUI.DataNodeWrapper.comboBox="ComboBox";CUI.DataNodeWrapper.dropDown="DropDown";CUI.DataNodeWrapper.button="Button";CUI.DataNodeWrapper.splitButton="SplitButton";CUI.DataNodeWrapper.flyoutAnchor="FlyoutAnchor";CUI.DataNodeWrapper.galleryButton="GalleryButton";CUI.DataNodeWrapper.insertTable="InsertTable";CUI.DataNodeWrapper.label="Label";CUI.DataNodeWrapper.mruSplitButton="MRUSplitButton";CUI.DataNodeWrapper.spinner="Spinner";CUI.DataNodeWrapper.textBox="TextBox";CUI.DataNodeWrapper.checkBox="CheckBox";CUI.DataNodeWrapper.colorPicker="ColorPicker";CUI.DataNodeWrapper.separator="Separator";CUI.DataNodeWrapper.jewelMenuLauncher="JewelMenuLauncher";CUI.DataNodeWrapper.BUTTONDOCK="ButtonDock";CUI.DataNodeWrapper.BUTTONDOCKS="ButtonDocks";CUI.DataNodeWrapper.CENTERALIGN="Center";CUI.DataNodeWrapper.LEFTALIGN="Left";CUI.DataNodeWrapper.RIGHTALIGN="Right";CUI.DataNodeWrapper.TOOLBAR="Toolbar";CUI.DataNodeWrapper.LARGE="Large";CUI.DataNodeWrapper.MEDIUM="Medium";CUI.DataNodeWrapper.SMALL="Small";CUI.DataNodeWrapper.DIVIDERAFTER="DividerAfter";CUI.DataNodeWrapper.DIVIDERBEFORE="DividerBefore";CUI.DataNodeWrapper.$61_0=null;CUI.RibbonPeripheralSection.tabRowLeft="TabRowLeft";CUI.RibbonPeripheralSection.tabRowRight="TabRowRight";CUI.RibbonPeripheralSection.qatRowCenter="QATRowCenter";CUI.RibbonPeripheralSection.qatRowRight="QATRowRight";CUI.TemplateManager.$5W_0=null;CUI.Unit.$7V=-1;CUI.Utility.$Ae=["","ms-cui-img-5by3","ms-cui-img-13by13","ms-cui-img-16by16","ms-cui-img-32by32","ms-cui-img-48by48","ms-cui-img-64by48","ms-cui-img-72by96","ms-cui-img-96by72","ms-cui-img-96by96","ms-cui-img-56by24","ms-cui-img-2by16"];CUI.Utility.$AJ=["","Size16by16","Size32by32","Size48by48","Size64by48","Size72by96","Size96by72","Size96by96","Size128by128","Size190by30","Size190by40","Size190by50","Size190by60"];CUI.Utility.$Ac_0=[0,0,0,0,0,0,0,0,0,0,7,0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,1,0,0,0,2,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,5,0];CUI.Utility.$19_0=["","&quot;","&amp;","&#39;","&lt;","&gt;"," ","<br>","&nbsp;","<b>","<i>","<p>","<u>","</b>","</i>","</p>","</u>"];CUI.Utility.$BP_0=false;CUI.Utility.$BO_0=false;CUI.Utility.$6W_0=false;CUI.Utility.$6V_0=false;CUI.Utility.$5e_0=null;CUI.ScriptUtility.emptyString="";CUI.Controls.CheckBoxCommandProperties.On="On";CUI.Controls.CheckBoxCommandProperties.CommandValueId="CommandValueId";CUI.Controls.ColorPickerCommandProperties.Color="Color";CUI.Controls.ColorPickerCommandProperties.Style="Style";CUI.Controls.ColorPicker.$7_1=-10;CUI.Controls.ComboBoxCommandProperties.SelectedItemId="SelectedItemId";CUI.Controls.ComboBoxCommandProperties.IsFreeForm="IsFreeForm";CUI.Controls.ComboBoxCommandProperties.Value="Value";CUI.Controls.DropDownCommandProperties.SelectedItemId="SelectedItemId";CUI.Controls.DropDownCommandProperties.Value="Value";CUI.Controls.GalleryButtonCommandProperties.On="On";CUI.Controls.GalleryButtonCommandProperties.CommandValueId="CommandValueId";CUI.Controls.InsertTableCommandProperties.Rows="Rows";CUI.Controls.InsertTableCommandProperties.Columns="Columns";CUI.Controls.LabelCommandProperties.Value="Value";CUI.Controls.SpinnerCommandProperties.ChangedByMouse="ChangedByMouse";CUI.Controls.SpinnerCommandProperties.ChangeType="ChangeType";CUI.Controls.SpinnerCommandProperties.Value="Value";CUI.Controls.SpinnerCommandProperties.Unit="Unit";CUI.Controls.Spinner.$7C_1=-1;CUI.Controls.TextBoxCommandProperties.Value="Value";CUI.Controls.ToggleButtonCommandProperties.On="On";CUI.Controls.ToggleButtonCommandProperties.CommandValueId="CommandValueId";CUI.Page.PageManager._instance=null;CUI.Page.UndoManager.$28_0=-1;Commands.CommandIds.ApplicationStateChanged="appstatechanged";Commands.CommandIds.GlobalRedo="GlobalRedo";Commands.CommandIds.Redo="Redo";Commands.CommandIds.GlobalUndo="GlobalUndo";Commands.CommandIds.Undo="Undo";Commands.GlobalRedoProperties.SequenceNumber="SequenceNumber";Commands.RedoProperties.SequenceNumber="SequenceNumber";Commands.GlobalUndoProperties.SequenceNumber="SequenceNumber";Commands.UndoProperties.SequenceNumber="SequenceNumber";var g_cuiXMLDOMDocument=null,g_cuiXMLParser=null;CUI.NativeUtility=function(){};CUI.NativeUtility.createXMLDocFromString=function(a){ULSqdK:;return CUI.NativeUtility.createXMLDocFromStringCore(a,false)};CUI.NativeUtility.createXMLDocFromStringCore=function(e,c){ULSqdK:;if(window.ActiveXObject){var a=c?null:g_cuiXMLDOMDocument;if(!a)try{a=new ActiveXObject("MSXML.DomDocument");if(!c)g_cuiXMLDOMDocument=a}catch(f){}a!=null&&a.loadXML(e);return a}else if(DOMParser){var b=c?null:g_cuiXMLParser;if(!b){b=new DOMParser;if(!c)g_cuiXMLParser=b}return b.parseFromString(e,"text/xml")}else if(window.XMLHttpRequest){var d=new XMLHttpRequest;d.open("GET","data:text/xml;charset=utf-8,"+e,false);d.send(null);return d.responseXML()}return null};typeof Sys!="undefined"&&Sys&&Sys.Application&&Sys.Application.notifyScriptLoaded();CUI.NativeUtility.setInnerText=function(a,b){ULSqdK:;var c=a.ownerDocument;if(c.createTextNode){var d=c.createTextNode(b);a.innerHTML="";a.appendChild(d)}else a.innerText=b};CUI.NativeUtility.ecmaScriptStringLiteralEncode=function(e){ULSqdK:;if(null==e||typeof e=="undefined")return "";for(var d=new String(e),a=[],c=0,g=d.length,c=0;c<g;c++){var b=d.charCodeAt(c);if(b>4095)a.push("\\u"+b.toString(16).toUpperCase());else if(b>255)a.push("\\u0"+b.toString(16).toUpperCase());else if(b>127)a.push("\\u00"+b.toString(16).toUpperCase());else{var f=d.charAt(c);switch(f){case "\n":a.push("\\n");break;case "\r":a.push("\\r");break;case '"':a.push("\\u0022");break;case "%":a.push("\\u0025");break;case "&":a.push("\\u0026");break;case "'":a.push("\\u0027");break;case "(":a.push("\\u0028");break;case ")":a.push("\\u0029");break;case "+":a.push("\\u002b");break;case "/":a.push("\\u002f");break;case "<":a.push("\\u003c");break;case ">":a.push("\\u003e");break;case "\\":a.push("\\\\");break;default:a.push(f)}}}return a.join("")};CUI.NativeUtility.ffClick=function(b){ULSqdK:;var a=document.createEvent("MouseEvents");a.initMouseEvent("click",true,true,window,0,0,0,0,0,false,false,false,false,0,null);b.dispatchEvent(a)};CUI.NativeUtility.getAttribute=function(a,b){ULSqdK:;return a[b]};CUI.NativeUtility.returnFalse=function(){ULSqdK:;return false};var g_records=[];CUI.PMetrics=function(){};CUI.PMetrics.perfMark=function(b){ULSqdK:;var a={};a.m=b;a.mt=new Date;if(g_records){if(g_records.length==1e3)g_records=[];g_records.push(a)}};CUI.PMetrics.perfReport=function(){ULSqdK:;if(!g_records)return;var d=g_records.length;if(d>0){var a=document.getElementById("perf-markers");if(!a){a=document.createElement("div");a.id="perf-markers";a.style.display="none"}var b,c="";for(i=0;i<d;i++){b=g_records[i];if(b)c+="<p><span class='time'>"+b.mt.format("MM/dd/yyyy HH:mm:ss.fffffff")+"</span><span class='marker'>"+b.m+"</span><var class='milliseconds'>"+b.mt.getTime()+"</var></p>"}a.innerHTML+=c;document.body.appendChild(a);g_records=[]}};CUI.PMetrics.perfClear=function(){ULSqdK:;g_records=[]};typeof Sys!="undefined"&&Sys&&Sys.Application&&Sys.Application.notifyScriptLoaded();typeof NotifyScriptLoadedAndExecuteWaitingJobs!="undefined"&&NotifyScriptLoadedAndExecuteWaitingJobs("CUI.js")
