Mini Kabibi Habibi

Current Path : C:/Program Files/Microsoft Office/root/Office16/
Upload File :
Current File : C:/Program Files/Microsoft Office/root/Office16/word-launchevent-host.win32.bundle

/*
 * Office JavaScript API library
 *
 * Copyright (c) Microsoft Corporation.  All rights reserved.
 *
 * Your use of this file is governed by the license terms for the Microsoft Office JavaScript (Office.js) API library: https://github.com/OfficeDev/office-js/blob/release/LICENSE.md
 *
 * This file also contains the following Promise implementation (with a few small modifications):
 *      * @overview es6-promise - a tiny implementation of Promises/A+.
 *      * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
 *      * @license   Licensed under MIT license
 *      *            See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
 *      * @version   2.3.0
 */
var OSFPerformance,CustomFunctionMappings,CustomFunctions,Strings;!function(e){e.now=function(){return"undefined"!=typeof performance&&performance.now?performance.now():0},e.getTotalJSHeapSize=function(){return"undefined"!=typeof performance&&performance.memory?performance.memory.totalJSHeapSize:0},e.getUsedJSHeapSize=function(){return"undefined"!=typeof performance&&performance.memory?performance.memory.usedJSHeapSize:0},e.getJSHeapSizeLimit=function(){return"undefined"!=typeof performance&&performance.memory?performance.memory.jsHeapSizeLimit:0},e.officeExecuteStartDate=e.officeExecuteStartDate||Date.now(),e.officeExecuteStart=e.officeExecuteStart||0,e.officeExecuteEnd=e.officeExecuteEnd||0,e.hostInitializationStart=0,e.hostInitializationEnd=0,e.totalJSHeapSize=0,e.usedJSHeapSize=0,e.jsHeapSizeLimit=0,e.createOMEnd=0,e.hostSpecificFileName="",e.getAppContextStart=0,e.getAppContextEnd=0,e.getAppContextXdmStart=0,e.getAppContextXdmEnd=0,e.officeOnReady=0}(OSFPerformance=OSFPerformance||{}),(OSF||(OSF={})).definePropertyOnNamespace=function(e,t,n){Object.defineProperty(e,t,{get:function(){return n()},configurable:!0,enumerable:!0})},OSFPerformance.hostInitializationStart=OSFPerformance.now(),function(e){var t;function n(){return t.m_association||(t.m_association=new OSF.Association),t.m_association}(t=e.actions||(e.actions={})).m_association=t.m_association,t.associate=function(){OTel&&OTel.OTelLogger&&OTel.OTelLogger.onTelemetryLoaded(function(){Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.ApiCall",dataFields:[oteljs.makeStringDataField("Api","Office.actions.associate")],eventFlags:{dataCategories:2,diagnosticLevel:110}})}),n().associate.apply(n(),arguments)},OSF.definePropertyOnNamespace(t,"_association",n)}(Office=Office||{}),function(e){var t;(t=e.AgaveHostAction||(e.AgaveHostAction={}))[t.Select=0]="Select",t[t.UnSelect=1]="UnSelect",t[t.CancelDialog=2]="CancelDialog",t[t.InsertAgave=3]="InsertAgave",t[t.CtrlF6In=4]="CtrlF6In",t[t.CtrlF6Exit=5]="CtrlF6Exit",t[t.CtrlF6ExitShift=6]="CtrlF6ExitShift",t[t.SelectWithError=7]="SelectWithError",t[t.NotifyHostError=8]="NotifyHostError",t[t.RefreshAddinCommands=9]="RefreshAddinCommands",t[t.PageIsReady=10]="PageIsReady",t[t.TabIn=11]="TabIn",t[t.TabInShift=12]="TabInShift",t[t.TabExit=13]="TabExit",t[t.TabExitShift=14]="TabExitShift",t[t.EscExit=15]="EscExit",t[t.F2Exit=16]="F2Exit",t[t.ExitNoFocusable=17]="ExitNoFocusable",t[t.ExitNoFocusableShift=18]="ExitNoFocusableShift",t[t.MouseEnter=19]="MouseEnter",t[t.MouseLeave=20]="MouseLeave",t[t.UpdateTargetUrl=21]="UpdateTargetUrl",t[t.InstallCustomFunctions=22]="InstallCustomFunctions",t[t.SendTelemetryEvent=23]="SendTelemetryEvent",t[t.UninstallCustomFunctions=24]="UninstallCustomFunctions",t[t.SendMessage=25]="SendMessage",t[t.LaunchExtensionComponent=26]="LaunchExtensionComponent",t[t.StopExtensionComponent=27]="StopExtensionComponent",t[t.RestartExtensionComponent=28]="RestartExtensionComponent",t[t.EnableTaskPaneHeaderButton=29]="EnableTaskPaneHeaderButton",t[t.DisableTaskPaneHeaderButton=30]="DisableTaskPaneHeaderButton",t[t.TaskPaneHeaderButtonClicked=31]="TaskPaneHeaderButtonClicked",t[t.RemoveAppCommandsAddin=32]="RemoveAppCommandsAddin",t[t.RefreshRibbonGallery=33]="RefreshRibbonGallery",t[t.GetOriginalControlId=34]="GetOriginalControlId",t[t.OfficeJsReady=35]="OfficeJsReady",t[t.InsertDevManifest=36]="InsertDevManifest",t[t.InsertDevManifestError=37]="InsertDevManifestError",t[t.SendCustomerContent=38]="SendCustomerContent",t[t.KeyboardShortcuts=39]="KeyboardShortcuts",t[t.CloseSDXDialog=42]="CloseSDXDialog",t[t.ResizeSDXDialog=43]="ResizeSDXDialog",t[t.SendNonStandardEvent=44]="SendNonStandardEvent"}(OSF=OSF||{}),function(i){var e=(t.prototype.initializeEventHandler=function(e){var t=this;this.addHandlerAsync(i.EventType.AppCommandInvoked,function(e){t._processAppCommandInvocation(e)},e)},t.prototype.appCommandInvocationCompletedAsync=function(t,n,r,e){i._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(94,{fromSafeArrayHost:function(e){return e},fromWebHost:function(e){return e},toSafeArrayHost:function(){return[t,n,r]},toWebHost:function(){var e={};return e[0]=t,e[1]=n,e[2]=r,e}},e)},t.prototype.addHandlerAsync=function(e,t,n){i.EventHelper.addEventHandler(e,t,n,this._eventDispatch,void 0,i.OUtil.isPopupWindow())},t.prototype._verifyManifestCallback=function(e){var t={callback:null,errorCode:11101};e=e.trim();try{var n=this._getCallbackFunc(e);if("function"!=typeof n)return t}catch(e){return t}return{callback:n,errorCode:0}},t.prototype._getCallbackFuncFromActionAssociateTable=function(e){var t=e.toUpperCase();return Office.actions._association.mappings[t]},t.prototype._getCallbackFunc=function(e){return this._getCallbackFuncFromActionAssociateTable(e)},t.prototype._invokeAppCommandCompletedMethod=function(e,t,n){this.appCommandInvocationCompletedAsync(e,t,n,function(e){e.status!==Office.AsyncResultStatus.Succeeded&&console.error("Failed to notify the host thta app command is completed")})},t.prototype._constructEventObjectForCallback=function(n){var e,r,i=this;try{e=JSON.parse(n.eventObjStr),r=JSON.parse(n.eventObjStr)}catch(e){}return r=r||{},(e=e||{}).completed=function(e){r.completedContext=e;var t=JSON.stringify(r);i._invokeAppCommandCompletedMethod(n.appCommandId,0,t)},e},t.initialize=function(){null==t._instance&&(t._instance=new t).initializeEventHandler(function(e){e.status!==Office.AsyncResultStatus.Succeeded&&console.error("Cannot initialize app command: "+JSON.stringify(e))})},t._instance=null,t);function t(){var r=this;this._processAppCommandInvocation=function(e){var t=r._verifyManifestCallback(e.callbackName);if(0==t.errorCode){var n=r._constructEventObjectForCallback(e);n?window.setTimeout(function(){t.callback(n)},0):r._invokeAppCommandCompletedMethod(e.appCommandId,5001,"")}else r._invokeAppCommandCompletedMethod(e.appCommandId,t.errorCode,"")},this._eventDispatch=new i.EventDispatch([{type:i.EventType.AppCommandInvoked,id:i.EventDispId.dispidAppCommandInvokedEvent,getTargetId:function(){return""},fromSafeArrayHost:function(e){return{type:i.EventType.AppCommandInvoked,appCommandId:e[0],callbackName:e[1],eventObjStr:e[2]}},fromWebHost:function(e){return{type:i.EventType.AppCommandInvoked,appCommandId:e[0],callbackName:e[1],eventObjStr:e[2]}}}])}i.AppCommandManager=e}(OSF=OSF||{}),function(e){var t;(t=e.AppName||(e.AppName={}))[t.Unsupported=0]="Unsupported",t[t.Excel=1]="Excel",t[t.Word=2]="Word",t[t.PowerPoint=4]="PowerPoint",t[t.Outlook=8]="Outlook",t[t.ExcelWebApp=16]="ExcelWebApp",t[t.WordWebApp=32]="WordWebApp",t[t.OutlookWebApp=64]="OutlookWebApp",t[t.Project=128]="Project",t[t.AccessWebApp=256]="AccessWebApp",t[t.PowerpointWebApp=512]="PowerpointWebApp",t[t.ExcelIOS=1024]="ExcelIOS",t[t.Sway=2048]="Sway",t[t.WordIOS=4096]="WordIOS",t[t.PowerPointIOS=8192]="PowerPointIOS",t[t.Access=16384]="Access",t[t.Lync=32768]="Lync",t[t.OutlookIOS=65536]="OutlookIOS",t[t.OneNoteWebApp=131072]="OneNoteWebApp",t[t.OneNote=262144]="OneNote",t[t.ExcelWinRT=524288]="ExcelWinRT",t[t.WordWinRT=1048576]="WordWinRT",t[t.PowerpointWinRT=2097152]="PowerpointWinRT",t[t.OutlookAndroid=4194304]="OutlookAndroid",t[t.OneNoteWinRT=8388608]="OneNoteWinRT",t[t.ExcelAndroid=8388609]="ExcelAndroid",t[t.VisioWebApp=8388610]="VisioWebApp",t[t.OneNoteIOS=8388611]="OneNoteIOS",t[t.WordAndroid=8388613]="WordAndroid",t[t.PowerpointAndroid=8388614]="PowerpointAndroid",t[t.Visio=8388615]="Visio",t[t.OneNoteAndroid=4194305]="OneNoteAndroid"}(OSF=OSF||{}),function(e){var t=(n.prototype.associate=function(e,t){function n(e){"undefined"!=typeof console&&console.warn&&console.warn(e)}if(1==arguments.length&&"object"==typeof e&&e){var r=e;for(var i in r)this.associate(i,r[i])}else if(2==arguments.length){var o=e,a=t;if("string"!=typeof o)return void n("[InvalidArg] Function=associate");if("function"!=typeof a)return void n("[InvalidArg] Function=associate");var s=o.toUpperCase();this.m_mappings[s]&&n("[DuplicatedName] Function="+o),this.m_mappings[s]=a;for(var c=0;c<this.m_onchangeHandlers.length;c++)this.m_onchangeHandlers[c]()}else n("[InvalidArg] Function=associate")},n.prototype.onchange=function(e){e&&this.m_onchangeHandlers.push(e)},Object.defineProperty(n.prototype,"mappings",{get:function(){return this.m_mappings},enumerable:!0,configurable:!0}),n);function n(){this.m_mappings={},this.m_onchangeHandlers=[]}e.Association=t}(OSF=OSF||{}),function(e){var t=(n.prototype.invokeCallback=function(e,t,n,r,i){if(0==n){var o={status:Office.AsyncResultStatus.Succeeded,value:r,asyncContext:i};"function"==typeof t&&t(o)}else{var a={status:Office.AsyncResultStatus.Failed,error:{code:n},asyncContext:i};"function"==typeof t&&t(a)}},n);function n(){}e.AsyncMethodExecutor=t}(OSF=OSF||{}),function(d){var e=(t.prototype.handleSafeArrayHostResponse=function(e,t,n,r,i,o,a){var s,c;if(1==(c="number"==typeof(e=d.Utility.fromSafeArray(e))?(s=[],e):(s=e)[0]))return null!=(l=s[1])&&(n[l[0]]=l[1]),!1;if(r){var l;if(0==c){if(2<s.length){l=[];for(var u=1;u<s.length;u++)l[u-1]=s[u]}else l=s[1];if(0<n.length&&null!=l){var p=l[l.length-1];n.length==p?l[l.length-1]=n:c=5001}}else l=s[1];var f=null;0==c&&(f=i.fromSafeArrayHost(l)),this._asyncMethodExecutor.invokeCallback(o,r,c,f,a)}return!0},t.prototype.handleWebHostResponse=function(e,t,n,r,i,o){var a=null;0==t&&(a=r.fromWebHost(e)),this._asyncMethodExecutor.invokeCallback(i,n,t,a,o)},t);function t(e){this._asyncMethodExecutor=e}d.AsyncMethodExecutorHelper=e}(OSF=OSF||{}),function(e){!function(e){var t,n,r,i;t=e.AsyncResultEnum||(e.AsyncResultEnum={}),(n=t.Properties||(t.Properties={})).Context="Context",n.Value="Value",n.Status="Status",n.Error="Error",(r=t.ErrorCode||(t.ErrorCode={}))[r.Success=0]="Success",r[r.Failed=1]="Failed",(i=t.ErrorProperties||(t.ErrorProperties={})).Name="Name",i.Message="Message",i.Code="Code";function o(e,t){this.value=e.Value,this.status=t?Office.AsyncResultStatus.Failed:Office.AsyncResultStatus.Succeeded,e.Context&&(this.asyncContext=e.Context),t&&(this.error=new a(t.Name,t.Message,t.Code))}e.AsyncResult=o;var a=function(e,t,n){this.name=e,this.message=t,this.code=n};e.Error=a}(e.DDA||(e.DDA={}))}(OSF=OSF||{}),function(n){var e;(e=n.BootStrapExtension||(n.BootStrapExtension={})).createWebClientHostControllerHelper=function(e,t){return new n.WebClientHostControllerHelper(e,t)},e.createAsyncMethodExecutorHelper=function(e){return new n.AsyncMethodExecutorHelper(e)}}(OSF=OSF||{}),function(e){var t;(t=e.ConstantNames||(e.ConstantNames={})).DefaultLocale="en-us",t.OfficeJS="office.js",t.OfficeDebugJS="office.debug.js",t.OfficeStringsId="OFFICESTRINGS",t.OfficeJsId="OFFICEJS",t.HostFileId="HOST",t.OfficeStringJS="office_strings.js",t.OfficeStringDebugJS="office_strings.debug.js",t.FileVersion="0.0.0.0"}(OSF=OSF||{}),function(e){var t=(n.NotificationConversationIdSuffix="_ntf",n);function n(){}e.Constants=t}(OSF=OSF||{}),CustomFunctionMappings=CustomFunctionMappings||{},function(e){e.delayInitialization=function(){CustomFunctionMappings.__delay__=!0},e._association=e._association||new OSF.Association,e.associate=function(){e._association.associate.apply(e._association,arguments),delete CustomFunctionMappings.__delay__}}(CustomFunctions=CustomFunctions||{}),function(e){var t,n,r,i;t=e.DDA||(e.DDA={}),n=t.ErrorCodeManager||(t.ErrorCodeManager={}),i=!(r={}),n.getErrorArgs=function(e){var t;i||(t=Strings.OfficeOM,r[1e3]={name:t.L_InvalidCoercion,message:t.L_CoercionTypeNotSupported},r[1001]={name:t.L_DataReadError,message:t.L_GetSelectionNotSupported},r[1002]={name:t.L_InvalidCoercion,message:t.L_CoercionTypeNotMatchBinding},r[1003]={name:t.L_DataReadError,message:t.L_InvalidGetRowColumnCounts},r[1004]={name:t.L_DataReadError,message:t.L_SelectionNotSupportCoercionType},r[1005]={name:t.L_DataReadError,message:t.L_InvalidGetStartRowColumn},r[1006]={name:t.L_DataReadError,message:t.L_NonUniformPartialGetNotSupported},r[1008]={name:t.L_DataReadError,message:t.L_GetDataIsTooLarge},r[1009]={name:t.L_DataReadError,message:t.L_FileTypeNotSupported},r[1010]={name:t.L_DataReadError,message:t.L_GetDataParametersConflict},r[1011]={name:t.L_DataReadError,message:t.L_InvalidGetColumns},r[1012]={name:t.L_DataReadError,message:t.L_InvalidGetRows},r[1013]={name:t.L_DataReadError,message:t.L_InvalidReadForBlankRow},r[2e3]={name:t.L_DataWriteError,message:t.L_UnsupportedDataObject},r[2001]={name:t.L_DataWriteError,message:t.L_CannotWriteToSelection},r[2002]={name:t.L_DataWriteError,message:t.L_DataNotMatchSelection},r[2003]={name:t.L_DataWriteError,message:t.L_OverwriteWorksheetData},r[2004]={name:t.L_DataWriteError,message:t.L_DataNotMatchBindingSize},r[2005]={name:t.L_DataWriteError,message:t.L_InvalidSetStartRowColumn},r[2006]={name:t.L_InvalidFormat,message:t.L_InvalidDataFormat},r[2007]={name:t.L_InvalidDataObject,message:t.L_DataNotMatchCoercionType},r[2008]={name:t.L_InvalidDataObject,message:t.L_DataNotMatchBindingType},r[2009]={name:t.L_DataWriteError,message:t.L_SetDataIsTooLarge},r[2010]={name:t.L_DataWriteError,message:t.L_NonUniformPartialSetNotSupported},r[2011]={name:t.L_DataWriteError,message:t.L_InvalidSetColumns},r[2012]={name:t.L_DataWriteError,message:t.L_InvalidSetRows},r[2013]={name:t.L_DataWriteError,message:t.L_SetDataParametersConflict},r[3e3]={name:t.L_BindingCreationError,message:t.L_SelectionCannotBound},r[3002]={name:t.L_InvalidBindingError,message:t.L_BindingNotExist},r[3003]={name:t.L_BindingCreationError,message:t.L_BindingToMultipleSelection},r[3004]={name:t.L_BindingCreationError,message:t.L_InvalidSelectionForBindingType},r[3005]={name:t.L_InvalidBindingOperation,message:t.L_OperationNotSupportedOnThisBindingType},r[3006]={name:t.L_BindingCreationError,message:t.L_NamedItemNotFound},r[3007]={name:t.L_BindingCreationError,message:t.L_MultipleNamedItemFound},r[3008]={name:t.L_BindingCreationError,message:t.L_InvalidNamedItemForBindingType},r[3009]={name:t.L_InvalidBinding,message:t.L_UnknownBindingType},r[3010]={name:t.L_InvalidBindingOperation,message:t.L_OperationNotSupportedOnMatrixData},r[3011]={name:t.L_InvalidBinding,message:t.L_InvalidColumnsForBinding},r[4e3]={name:t.L_ReadSettingsError,message:t.L_SettingNameNotExist},r[4001]={name:t.L_SaveSettingsError,message:t.L_SettingsCannotSave},r[4002]={name:t.L_SettingsStaleError,message:t.L_SettingsAreStale},r[5e3]={name:t.L_HostError,message:t.L_OperationNotSupported},r[5001]={name:t.L_InternalError,message:t.L_InternalErrorDescription},r[5002]={name:t.L_PermissionDenied,message:t.L_DocumentReadOnly},r[5003]={name:t.L_EventRegistrationError,message:t.L_EventHandlerNotExist},r[5004]={name:t.L_InvalidAPICall,message:t.L_InvalidApiCallInContext},r[5005]={name:t.L_ShuttingDown,message:t.L_ShuttingDown},r[5007]={name:t.L_UnsupportedEnumeration,message:t.L_UnsupportedEnumerationMessage},r[5008]={name:t.L_IndexOutOfRange,message:t.L_IndexOutOfRange},r[5009]={name:t.L_APINotSupported,message:t.L_BrowserAPINotSupported},r[5011]={name:t.L_APICallFailed,message:t.L_RequestTimeout},r[5012]={name:t.L_InvalidOrTimedOutSession,message:t.L_InvalidOrTimedOutSessionMessage},r[5013]={name:t.L_APICallFailed,message:t.L_InvalidApiArgumentsMessage},r[5015]={name:t.L_APICallFailed,message:t.L_WorkbookHiddenMessage},r[5016]={name:t.L_APICallFailed,message:t.L_WriteNotSupportedWhenModalDialogOpen},r[5017]={name:t.L_APICallFailed,message:t.L_UndoNotSupportedMessage},r[5018]={name:t.L_APICallFailed,message:t.L_RequestTimeoutAPITookLong},r[5100]={name:t.L_APICallFailed,message:t.L_TooManyIncompleteRequests},r[5101]={name:t.L_APICallFailed,message:t.L_RequestTokenUnavailable},r[5102]={name:t.L_APICallFailed,message:t.L_ActivityLimitReached},r[5103]={name:t.L_APICallFailed,message:t.L_RequestPayloadSizeLimitExceededMessage},r[5104]={name:t.L_APICallFailed,message:t.L_ResponsePayloadSizeLimitExceededMessage},r[6e3]={name:t.L_InvalidNode,message:t.L_CustomXmlNodeNotFound},r[6100]={name:t.L_CustomXmlError,message:t.L_CustomXmlError},r[6101]={name:t.L_CustomXmlExceedQuotaName,message:t.L_CustomXmlExceedQuotaMessage},r[6102]={name:t.L_CustomXmlOutOfDateName,message:t.L_CustomXmlOutOfDateMessage},r[7e3]={name:t.L_PermissionDenied,message:t.L_NoCapability},r[7001]={name:t.L_CannotNavigateTo,message:t.L_CannotNavigateTo},r[7002]={name:t.L_SpecifiedIdNotExist,message:t.L_SpecifiedIdNotExist},r[7004]={name:t.L_NavOutOfBound,message:t.L_NavOutOfBound},r[2014]={name:t.L_DataWriteReminder,message:t.L_CellDataAmountBeyondLimits},r[8e3]={name:t.L_MissingParameter,message:t.L_ElementMissing},r[8001]={name:t.L_PermissionDenied,message:t.L_NoCapability},r[8010]={name:t.L_InvalidValue,message:t.L_InvalidCellsValue},r[8011]={name:t.L_InvalidValue,message:t.L_InvalidTableOptionValue},r[8012]={name:t.L_InvalidValue,message:t.L_InvalidFormatValue},r[8020]={name:t.L_OutOfRange,message:t.L_RowIndexOutOfRange},r[8021]={name:t.L_OutOfRange,message:t.L_ColIndexOutOfRange},r[8022]={name:t.L_OutOfRange,message:t.L_FormatValueOutOfRange},r[8023]={name:t.L_FormattingReminder,message:t.L_CellFormatAmountBeyondLimits},r[1e4]={name:t.L_UserNotSignedIn,message:t.L_UserNotSignedIn},r[11e3]={name:t.L_MemoryLimit,message:t.L_CloseFileBeforeRetrieve},r[11001]={name:t.L_NetworkProblem,message:t.L_NetworkProblemRetrieveFile},r[11002]={name:t.L_InvalidValue,message:t.L_SliceSizeNotSupported},r[12007]={name:t.L_DisplayDialogError,message:t.L_DialogAlreadyOpened},r[12e3]={name:t.L_IndexOutOfRange,message:t.L_IndexOutOfRange},r[12001]={name:t.L_IndexOutOfRange,message:t.L_IndexOutOfRange},r[12002]={name:t.L_DisplayDialogError,message:t.L_NetworkProblem},r[12003]={name:t.L_DialogNavigateError,message:t.L_DialogInvalidScheme},r[12004]={name:t.L_DisplayDialogError,message:t.L_DialogAddressNotTrusted},r[12005]={name:t.L_DisplayDialogError,message:t.L_DialogRequireHTTPS},r[12009]={name:t.L_DisplayDialogError,message:t.L_UserClickIgnore},r[12011]={name:t.L_DisplayDialogError,message:t.L_NewWindowCrossZoneErrorString},r[13e3]={name:t.L_APINotSupported,message:t.L_InvalidSSOAddinMessage},r[13001]={name:t.L_UserNotSignedIn,message:t.L_UserNotSignedIn},r[13002]={name:t.L_UserAborted,message:t.L_UserAbortedMessage},r[13003]={name:t.L_UnsupportedUserIdentity,message:t.L_UnsupportedUserIdentityMessage},r[13004]={name:t.L_InvalidResourceUrl,message:t.L_InvalidResourceUrlMessage},r[13005]={name:t.L_InvalidGrant,message:t.L_InvalidGrantMessage},r[13006]={name:t.L_SSOClientError,message:t.L_SSOClientErrorMessage},r[13007]={name:t.L_SSOServerError,message:t.L_SSOServerErrorMessage},r[13008]={name:t.L_AddinIsAlreadyRequestingToken,message:t.L_AddinIsAlreadyRequestingTokenMessage},r[13009]={name:t.L_SSOUserConsentNotSupportedByCurrentAddinCategory,message:t.L_SSOUserConsentNotSupportedByCurrentAddinCategoryMessage},r[13010]={name:t.L_SSOConnectionLostError,message:t.L_SSOConnectionLostErrorMessage},r[13012]={name:t.L_APINotSupported,message:t.L_SSOUnsupportedPlatform},r[13013]={name:t.L_APICallFailed,message:t.L_RequestTokenUnavailable},r[5014]={name:t.L_OperationCancelledError,message:t.L_OperationCancelledErrorMessage},i=!0);var n=r[e];return n?(n.name||(n.name=r[5001].name),n.message||(n.message=r[5001].message)):n=r[5001],n},n.addErrorMessage=function(e,t){r[e]=t}}(OSF=OSF||{}),function(e){var t=(n.prototype.getSupportedEvents=function(){var e=[];for(var t in this._eventHandlers)e.push(t);return e},n.prototype.supportsEvent=function(e){for(var t in this._eventHandlers)if(e==t)return!0;return!1},n.prototype.hasEventHandler=function(e,t){var n=this._eventHandlers[e];if(n&&0<n.length)for(var r=0;r<n.length;r++)if(n[r]===t)return!0;return!1},n.prototype.addEventHandler=function(e,t){if("function"!=typeof t)return!1;var n=this._eventHandlers[e];return!(!n||this.hasEventHandler(e,t)||(n.push(t),0))},n.prototype.addEventHandlerAndFireQueuedEvent=function(e,t){var n=this._eventHandlers[e],r=!n||0==n.length,i=this.addEventHandler(e,t);return r&&i&&this.fireQueuedEvent(e),i},n.prototype.removeEventHandler=function(e,t){var n=this._eventHandlers[e];if(n&&0<n.length)for(var r=0;r<n.length;r++)if(n[r]===t)return n.splice(r,1),!0;return!1},n.prototype.clearEventHandlers=function(e){return void 0!==this._eventHandlers[e]&&0<this._eventHandlers[e].length&&(this._eventHandlers[e]=[],!0)},n.prototype.getEventHandlerCount=function(e){return null!=this._eventHandlers[e]?this._eventHandlers[e].length:-1},n.prototype.getEventInfo=function(e){return this._eventInfos[e]},n.prototype.fireEvent=function(e){if(null==e.type)return!1;var t=e.type;if(t&&this._eventHandlers[t]){for(var n=this._eventHandlers[t],r=0;r<n.length;r++)n[r](e);return!0}return!1},n.prototype.fireOrQueueEvent=function(e){if(null==e.type)return!1;var t=e.type;if(t&&this._eventHandlers[t]){var n=this._eventHandlers[t],r=this._queuedEventsArgs[t];return 0==n.length?r.push(e):this.fireEvent(e),!0}return!1},n.prototype.fireQueuedEvent=function(e){if(e&&this._eventHandlers[e]){var t=this._eventHandlers[e],n=this._queuedEventsArgs[e];if(0<t.length){for(var r=t[0];0<n.length;)r(n.shift());return!0}}return!1},n.prototype.clearQueuedEvent=function(e){e&&this._eventHandlers[e]&&this._queuedEventsArgs[e]&&(this._queuedEventsArgs[e]=[])},n);function n(e){if(this._eventInfos={},this._queuedEventsArgs={},this._eventHandlers={},this._queuedEventsArgs={},null!=e)for(var t=0;t<e.length;t++)if("string"==typeof e[t]){var n=e[t];this._eventHandlers[n]=[],this._queuedEventsArgs[n]=[]}else{n=e[t].type;this._eventInfos[n]=e[t],this._eventHandlers[n]=[],this._queuedEventsArgs[n]=[]}}e.EventDispatch=t}(OSF=OSF||{}),function(e){var t;(t=e.EventDispId||(e.EventDispId={})).dispidEventMin=0,t.dispidInitializeEvent=0,t.dispidSettingsChangedEvent=1,t.dispidDocumentSelectionChangedEvent=2,t.dispidBindingSelectionChangedEvent=3,t.dispidBindingDataChangedEvent=4,t.dispidDocumentOpenEvent=5,t.dispidDocumentCloseEvent=6,t.dispidActiveViewChangedEvent=7,t.dispidDocumentThemeChangedEvent=8,t.dispidOfficeThemeChangedEvent=9,t.dispidDialogMessageReceivedEvent=10,t.dispidDialogNotificationShownInAddinEvent=11,t.dispidDialogParentMessageReceivedEvent=12,t.dispidObjectDeletedEvent=13,t.dispidObjectSelectionChangedEvent=14,t.dispidObjectDataChangedEvent=15,t.dispidContentControlAddedEvent=16,t.dispidLiveShareStateChangedEvent=17,t.dispidActivationStatusChangedEvent=32,t.dispidRichApiMessageEvent=33,t.dispidAppCommandInvokedEvent=39,t.dispidOnSdxSendMessageEvent=40,t.dispidDataNodeAddedEvent=60,t.dispidDataNodeReplacedEvent=61,t.dispidDataNodeDeletedEvent=62}(OSF=OSF||{}),function(d){var e=(h.addEventHandler=function(t,n,r,i,o,e){var a=0;function s(e){0==e&&(i.hasEventHandler(t,n)||i.addEventHandler(t,n)||(e=5010)),d._OfficeAppFactory.getAsyncMethodExecutor().invokeCallback(a,r,e,null,o)}var c=i.getEventInfo(t);if(c)try{if(e)return void s(0);a=c.id;var l=c.getTargetId();0==i.getEventHandlerCount(t)?d._OfficeAppFactory.getAsyncMethodExecutor().registerEventAsync(a,c.type,l,function(e){i.fireEvent(e)},c,function(e){s(d.Utility.getErrorCodeFromAsyncResult(e))},o):s(0)}catch(e){h.onException(a,e,r)}else s(5010)},h.removeEventHandler=function(e,t,n,r,i,o){var a=0;function s(e){d._OfficeAppFactory.getAsyncMethodExecutor().invokeCallback(a,n,e,null,i)}var c=r.getEventInfo(e);if(c)try{a=c.id;var l=c.getTargetId(),u=0,p=!0;u=null===t?(p=r.clearEventHandlers(e),0):(p=r.removeEventHandler(e,t))?0:5003;var f=r.getEventHandlerCount(e);p&&0==f?d._OfficeAppFactory.getAsyncMethodExecutor().unregisterEventAsync(a,c.type,l,function(e){s(d.Utility.getErrorCodeFromAsyncResult(e))},i):s(u)}catch(e){h.onException(a,e,n)}else s(5010)},h.onException=function(e,t,n){if("number"!=typeof t)throw t;d._OfficeAppFactory.getAsyncMethodExecutor().invokeCallback(e,n,t,null)},h);function h(){}d.EventHelper=e}(OSF=OSF||{}),function(e){var t;(t=e.EventType||(e.EventType={})).ActiveViewChanged="activeViewChanged",t.AppCommandInvoked="appCommandInvoked",t.RichApiMessage="richApiMessage",t.DocumentSelectionChanged="documentSelectionChanged",t.BindingSelectionChanged="bindingSelectionChanged",t.BindingDataChanged="bindingDataChanged",t.OfficeThemeChanged="officeThemeChanged",t.DocumentThemeChanged="documentThemeChanged",t.LiveShareStateChanged="liveShareStateChanged",t.DataNodeDeleted="nodeDeleted",t.DataNodeInserted="nodeInserted",t.DataNodeReplaced="nodeReplaced",t.DialogMessageReceived="dialogMessageReceived",t.DialogParentMessageReceived="dialogParentMessageReceived",t.DialogParentEventReceived="dialogParentEventReceived",t.DialogEventReceived="dialogEventReceived",t.NodeDeleted="nodeDeleted",t.NodeInserted="nodeInserted",t.NodeReplaced="nodeReplaced",t.SettingsChanged="settingsChanged"}(OSF=OSF||{}),function(e){var t,n;function r(){this.platformRemappings={web:Office.PlatformType.OfficeOnline,winrt:Office.PlatformType.Universal,win32:Office.PlatformType.PC,mac:Office.PlatformType.Mac,ios:Office.PlatformType.iOS,android:Office.PlatformType.Android},this.camelCaseMappings={powerpoint:Office.HostType.PowerPoint,onenote:Office.HostType.OneNote},this.hostInfo=e._OfficeAppFactory.getHostInfo()}t=e.HostName||(e.HostName={}),r.prototype.capitalizeFirstLetter=function(e){return e?e[0].toUpperCase()+e.slice(1).toLowerCase():e},r.getInstance=function(){return void 0===r.hostObj&&(r.hostObj=new r),r.hostObj},r.prototype.getPlatform=function(e){if(this.hostInfo&&this.hostInfo.hostPlatform){var t=this.hostInfo.hostPlatform.toLowerCase();if(this.platformRemappings[t])return this.platformRemappings[t]}return null},r.prototype.getHost=function(e){if(this.hostInfo&&this.hostInfo.hostType){var t=this.hostInfo.hostType.toLowerCase();if(this.camelCaseMappings[t])return this.camelCaseMappings[t];if(t=this.capitalizeFirstLetter(this.hostInfo.hostType),Office.HostType[t])return Office.HostType[t]}return null},r.prototype.getDefaultVersion=function(){return this.getHost()?"16.0.0000.0000":null},r.prototype.getDiagnostics=function(e){return{host:this.getHost(),version:e||this.getDefaultVersion(),platform:this.getPlatform()}},n=r,t.Host=n}(OSF=OSF||{}),function(e){var t;(t=e.HostInfoFlags||(e.HostInfoFlags={}))[t.SharedApp=1]="SharedApp",t[t.CustomFunction=2]="CustomFunction",t[t.ProtectedDocDisable=4]="ProtectedDocDisable",t[t.ExperimentJsEnabled=8]="ExperimentJsEnabled",t[t.PublicAddin=16]="PublicAddin",t[t.BundleJsEnabled=32]="BundleJsEnabled",t[t.IsMos=64]="IsMos",t[t.IsMonarch=128]="IsMonarch"}(OSF=OSF||{}),function(e){var t;(t=e.HostInfoHostType||(e.HostInfoHostType={})).excel="excel",t.word="word"}(OSF=OSF||{}),function(e){var t;(t=e.HostInfoPlatform||(e.HostInfoPlatform={})).web="web",t.winrt="winrt",t.win32="win32",t.mac="mac",t.ios="ios",t.android="android"}(OSF=OSF||{}),function(o){var e=(t.prototype.saveAndSetDialogInfo=function(e){},t.prototype.setAgaveHostCommunication=function(){},t.prototype.createClientHostController=function(){return null},t.prototype.createAsyncMethodExecutor=function(){return null},t.prototype.createClientSettingsManager=function(){return null},t.prototype.createSettings=function(e){var t=o.OUtil.getSessionStorage();if(t){var n=t.getItem(o._OfficeAppFactory.getCachedSessionSettingsKey());n?e=JSON.parse(n):(n=JSON.stringify(e),t.setItem(o._OfficeAppFactory.getCachedSessionSettingsKey(),n))}var r=o.OUtil.deserializeSettings(e),i=this.createClientSettingsManager();return new Office.Settings(r,i)},t.prototype.prepareApiSurface=function(e){var t=e.get_featureGates();t&&(Microsoft.Office.WebExtension.FeatureGates=t),o.BootStrapExtension.prepareApiSurface&&o.BootStrapExtension.prepareApiSurface(),o.BootStrapExtension.prepareHostSpecificSurface&&o.BootStrapExtension.prepareHostSpecificSurface(),OSFPerformance.createOMEnd=OSFPerformance.now()},t.prototype.getTabbableElements=function(){return null},t.prototype.setupNestedAppAuthDependencies=function(){},t.prototype.setCreateNaaBridge=function(e){this._createNaaBridge=e},t);function t(e,t,n,r){this._hostInfo=e,this._webAppState=t,this._context=n,this._hostFacade=r}o.InitializationHelper=e}(OSF=OSF||{}),function(e){var t;(t=e.InitializationReason||(e.InitializationReason={})).Inserted="inserted",t.DocumentOpened="documentOpened"}(OSF=OSF||{}),function(l){!function(e){var o,t=null,n=!1,d=["excel","word","powerpoint","onenote","outlook","visio","office-common","office.common","office","officebase"],h=[".js",".debug.js"],g="_osfDisableHostCheck",i=function(){try{return document.currentScript}catch(e){return null}}();function r(){return a(),o.trustedTypesOptIn}function a(){if(!o){function e(e){var t=null!=e?e.src:null;if(!t)return null;for(var n=t.toLowerCase(),r=0;r<d.length;r++)for(var i=0;i<h.length;i++){var o=d[r]+h[i],a=n.indexOf(o);if(0<=a&&(0===a||"/"===t.charAt(a-1)||"\\"===t.charAt(a-1))&&(a+o.length===t.length||"?"===t.charAt(a+o.length))){var s=t.substring(0,a),c=0<n.indexOf(".debug.js",a),l=e.getAttribute("data-is-sdx"),u="1"===l||"true"===l,p=e.getAttribute("data-enable-trusted-types"),f="1"===p||"true"===p;return{basePath:s,name:o,isDebugJs:c,isSdx:u,disableHostCheck:window.hasOwnProperty(g)&&!0===window[g],trustedTypesOptIn:f}}}return null}if(!(o=e(i))){for(var t=document.getElementsByTagName("script"),n=t.length,r=0;r<n;r++)if(o=e(t[r]))return;o={basePath:"",name:"",isDebugJs:!1,isSdx:!1,disableHostCheck:!1,trustedTypesOptIn:!1}}}}e.getHostBundleJsBasePath=function(){return a(),o.basePath},e.getHostBundleJsName=function(){return a(),o.name},e.getOfficeStringJsName=function(){return a(),o.isDebugJs?l.ConstantNames.OfficeStringDebugJS:l.ConstantNames.OfficeStringJS},e.isSdx=function(){return a(),o.isSdx},e.disableHostCheck=function(){return a(),o.disableHostCheck},e.trustedTypesOptIn=r,e.loadScriptWithBasename=function(e,t,n){a();var r=e+(o.isDebugJs?".debug.js":".js");r=r.toLowerCase();var i=o.basePath+r;l.OUtil.loadScript(i,t,c())};var s=["https://alcdn.msauth.net/browser-1p/2.28.1/js/msal-browser-1p.min.js"];function c(){if(!n){n=!0;try{if(!r()||!window.trustedTypes||!window.trustedTypes.createPolicy)return null;var e=i.src,o=new URL(e).origin.toLowerCase();if(!o)return null;t=window.trustedTypes.createPolicy("officejs",{createScriptURL:function(e){var t=e.toLowerCase(),n=new URL(t).origin;if(o&&o===n)return e;for(var r=0,i=s;r<i.length;r++){if(t===i[r])return e}throw new Error("Untrusted script URL")}})}catch(e){}}return t}e.getTrustedTypesPolicy=c}(l.LoadScriptHelper||(l.LoadScriptHelper={}))}(OSF=(OSF=OSF||{})||{}),function(e){var t,n;(n=t=e.LiveShareStateParams||(e.LiveShareStateParams={}))[n.MaxLiveShareStateDataSizeInBytes=1024]="MaxLiveShareStateDataSizeInBytes";var r=(i.prototype.get=function(){return this._liveShareState},i.prototype.set=function(e){if((new TextEncoder).encode(e).length>t.MaxLiveShareStateDataSizeInBytes)throw new Error("State data size is limited to "+t.MaxLiveShareStateDataSizeInBytes+" bytes.");this._liveShareState=e},i.prototype.addHandlerAsync=function(e,t,n){OSF.EventHelper.addEventHandler(e,t,n,this._eventDispatch)},i.prototype.removeHandlerAsync=function(e,t,n){OSF.EventHelper.removeEventHandler(e,t,n,this._eventDispatch)},i);function i(e){var t=this;e=e||null,this._liveShareState=e,this._eventDispatch=new OSF.EventDispatch([{id:OSF.EventDispId.dispidLiveShareStateChangedEvent,type:OSF.EventType.LiveShareStateChanged,getTargetId:function(){return""},fromSafeArrayHost:function(e){return{type:OSF.EventType.LiveShareStateChanged,liveShareState:t}},fromWebHost:function(e){return{type:OSF.EventType.LiveShareStateChanged,liveShareState:t}}}])}e.LiveShareState=r}(Office=Office||{}),function(e){var i={"ar-sa":!0,"bg-bg":!0,"bn-in":!0,"ca-es":!0,"cs-cz":!0,"da-dk":!0,"de-de":!0,"el-gr":!0,"en-us":!0,"es-es":!0,"et-ee":!0,"eu-es":!0,"fa-ir":!0,"fi-fi":!0,"fr-fr":!0,"gl-es":!0,"he-il":!0,"hi-in":!0,"hr-hr":!0,"hu-hu":!0,"id-id":!0,"it-it":!0,"ja-jp":!0,"kk-kz":!0,"ko-kr":!0,"lo-la":!0,"lt-lt":!0,"lv-lv":!0,"ms-my":!0,"nb-no":!0,"nl-nl":!0,"nn-no":!0,"pl-pl":!0,"pt-br":!0,"pt-pt":!0,"ro-ro":!0,"ru-ru":!0,"sk-sk":!0,"sl-si":!0,"sr-cyrl-cs":!0,"sr-cyrl-rs":!0,"sr-latn-cs":!0,"sr-latn-rs":!0,"sv-se":!0,"th-th":!0,"tr-tr":!0,"uk-ua":!0,"ur-pk":!0,"vi-vn":!0,"zh-cn":!0,"zh-tw":!0},o={ar:"ar-sa",bg:"bg-bg",bn:"bn-in",ca:"ca-es",cs:"cs-cz",da:"da-dk",de:"de-de",el:"el-gr",en:"en-us",es:"es-es",et:"et-ee",eu:"eu-es",fa:"fa-ir",fi:"fi-fi",fr:"fr-fr",gl:"gl-es",he:"he-il",hi:"hi-in",hr:"hr-hr",hu:"hu-hu",id:"id-id",it:"it-it",ja:"ja-jp",kk:"kk-kz",ko:"ko-kr",lo:"lo-la",lt:"lt-lt",lv:"lv-lv",ms:"ms-my",nb:"nb-no",nl:"nl-nl",nn:"nn-no",pl:"pl-pl",pt:"pt-br",ro:"ro-ro",ru:"ru-ru",sk:"sk-sk",sl:"sl-si",sr:"sr-cyrl-cs",sv:"sv-se",th:"th-th",tr:"tr-tr",uk:"uk-ua",ur:"ur-pk",vi:"vi-vn",zh:"zh-cn"};e.getSupportedLocale=function(e,t){if(void 0===t&&(t="en-us"),!e)return t;var n;if((e=e.toLowerCase())in i)n=e;else{var r=e.split("-",1);r&&0<r.length&&(n=o[r[0]])}return n=n||t}}(OSF=OSF||{}),function(e){e.OfficeOM||(e.OfficeOM={})}(Strings=Strings||{}),function(i){var o,e;(o=i.OUtil||(i.OUtil={})).ensureOfficeStringsJs=function(){return e=e||(1==i.OUtil.getLibraryReleaseVehicle()?new Office.Promise(function(e,t){e()}):new Office.Promise(function(n,r){if(i.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_9441111_DefaultLocaleOfficeStrings")){var e=i.LoadScriptHelper.getHostBundleJsBasePath()+i.ConstantNames.DefaultLocale+"/"+i.LoadScriptHelper.getOfficeStringJsName();i.OUtil.loadScript(e,function(e){e?n():r(new Error("Cannot load "+i.ConstantNames.OfficeStringJS))},i.LoadScriptHelper.getTrustedTypesPolicy())}else{if(!i._OfficeAppFactory.getHostInfo().hostLocale)return void r(new Error("No host locale"));e=i.LoadScriptHelper.getHostBundleJsBasePath()+i._OfficeAppFactory.getHostInfo().hostLocale+"/"+i.LoadScriptHelper.getOfficeStringJsName();i.OUtil.loadScript(e,function(e){if(e)n();else{var t=i.LoadScriptHelper.getHostBundleJsBasePath()+i.ConstantNames.DefaultLocale+"/"+i.LoadScriptHelper.getOfficeStringJsName();o.loadScript(t,function(e){e?n():r(new Error("Cannot load "+i.ConstantNames.OfficeStringJS))},i.LoadScriptHelper.getTrustedTypesPolicy())}},i.LoadScriptHelper.getTrustedTypesPolicy())}}))}}(OSF=OSF||{}),function(u){var e,t,n;e=u.context||(u.context={}),t=e.document||(e.document={}),OSF.definePropertyOnNamespace(t,"url",function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_docUrl()}),OSF.definePropertyOnNamespace(t,"mode",function(){return 0==OSF._OfficeAppFactory.getOfficeAppContext().get_clientMode()?u.DocumentMode.ReadOnly:u.DocumentMode.ReadWrite}),OSF.definePropertyOnNamespace(t,"settings",function(){if(!n){var e=OSF._OfficeAppFactory.getOfficeAppContext().get_settingsFunc()();n=OSF._OfficeAppFactory.getInitializationHelper().createSettings(e)}return n}),t.goToByIdAsync=function(e,t,n,r){var i={};i[u.GoToType.Binding]=0,i[u.GoToType.NamedItem]=1,i[u.GoToType.Slide]=2,i[u.GoToType.Index]=3;var o={};o[u.SelectionMode.Default]=0,o[u.SelectionMode.Selected]=1,o[u.SelectionMode.None]=2;var a=i[t],s=0,c=r;"function"==typeof n?c=n:void 0!==n&&(s=o[n]);var l={toSafeArrayHost:function(){return[e,a,s]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{DdaGoToByIdMethod:{Id:e,GoToType:a,SelectionMode:s}}},fromWebHost:function(e){return e}};OSF._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(82,l,c)}}(Office=Office||{}),function(e){var t,n;t=e.context||(e.context={}),(n=t.messaging||(t.messaging={})).sendMessage=function(e){if(OSF._OfficeAppFactory.getHostInfo().hostPlatform==OSF.HostInfoPlatform.web){var t=OSF._OfficeAppFactory.getWebAppState();t.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[t.id,OSF.AgaveHostAction.SendMessage,e])}else{var n=JSON.stringify(e);OSF._OfficeAppFactory.getClientHostController().execute(208,[n],null)}},n.registerOnMessageEventHandler=function(r){if(OSF._OfficeAppFactory.getHostInfo().hostPlatform==OSF.HostInfoPlatform.web)n.onMessage=r;else{OSF._OfficeAppFactory.getClientHostController().registerEvent(OSF.EventDispId.dispidOnSdxSendMessageEvent,"","",function(e,t){var n=t.toArray();r(JSON.parse(n[0]))},null)}}}(Office=Office||{}),function(r){var e,t,i;e=r.context||(r.context={}),OSF.definePropertyOnNamespace(e,"contentLanguage",function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_dataLocale()}),OSF.definePropertyOnNamespace(e,"displayLanguage",function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_appUILocale()}),OSF.definePropertyOnNamespace(e,"partitionKey",function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_partitionKey()}),OSF.definePropertyOnNamespace(e,"isDialog",function(){return OSF._OfficeAppFactory.getHostInfo().isDialog}),OSF.definePropertyOnNamespace(e,"touchEnabled",function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_touchEnabled()}),OSF.definePropertyOnNamespace(e,"commerceAllowed",function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_commerceAllowed()}),OSF.definePropertyOnNamespace(e,"host",function(){return OSF.HostName.Host.getInstance().getHost()}),OSF.definePropertyOnNamespace(e,"platform",function(){return OSF.HostName.Host.getInstance().getPlatform()}),OSF.definePropertyOnNamespace(e,"diagnostics",function(){return OSF.HostName.Host.getInstance().getDiagnostics(OSF._OfficeAppFactory.getOfficeAppContext().get_hostFullVersion())}),OSF.definePropertyOnNamespace(e,"requirements",function(){if(!t){var e=OSF._OfficeAppFactory.getOfficeAppContext();e&&(t=e.get_isDialog()?OSF.Requirement.RequirementsMatrixFactory.getDefaultDialogRequirementMatrix(e):OSF.Requirement.RequirementsMatrixFactory.getDefaultRequirementMatrix(e))}return t}),OSF.definePropertyOnNamespace(e,"officeTheme",function(){var e=OSF._OfficeAppFactory.getOfficeAppContext().get_officeThemeFunc();return e?"function"==typeof e?e():e:void 0}),OSF.definePropertyOnNamespace(e,"webAuth",function(){if(OSF.DDA.WebAuth)return OSF.DDA.WebAuth}),OSF.definePropertyOnNamespace(e,"auth",function(){if(OSF.DDA.Auth)return OSF.DDA.Auth}),OSF.definePropertyOnNamespace(e,"license",function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_eToken()}),OSF.definePropertyOnNamespace(e,"hostSettings",function(){if(!i){var e=OSF._OfficeAppFactory.getOfficeAppContext().get_hostSettingsFunc();if(void 0!==e){var t=e(),n=OSF.OUtil.deserializeSettings(t);i=new r.Settings(n,void 0)}}return i})}(Office=Office||{}),function(e){var t;((t=e.context||(e.context={})).ribbonGallery||(t.ribbonGallery={})).refreshRibbon=function(e){OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[OSF._OfficeAppFactory.getWebAppState().id,OSF.AgaveHostAction.RefreshRibbonGallery,e])}}(Office=Office||{}),function(e){var t,n;t=e.context||(e.context={}),(n=t.ui||(t.ui={})).taskPaneAction||(n.taskPaneAction={})}(Office=Office||{});var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};!function(n){function t(){n._officeOnReadyState.officeOnReadyPromise||(n._officeOnReadyState.officeOnReadyPromise=new n.Promise(function(e,t){n._officeOnReadyState.officeOnReadyPromiseResolve=e}))}function r(e){return t(),e&&(n._officeOnReadyState.officeOnReadyFired?e(n._officeOnReadyState.officeOnReadyHostAndPlatformInfo):n._officeOnReadyState.officeOnReadyCallbacks.push(e)),n._officeOnReadyState.officeOnReadyPromise}n._officeOnReadyState=n._officeOnReadyState||{isOfficeOnReadyCalled:!1,officeOnReadyPromise:null,officeOnReadyPromiseResolve:null,officeOnReadyCallbacks:[],officeOnReadyHostAndPlatformInfo:null,officeOnReadyFired:!1},n.initialize=n.initialize,n.onReadyInternal=r,n.onReady=function(e){return n._officeOnReadyState.isOfficeOnReadyCalled=!0,r(e)},n.fireOnReady=function(e){for(t(),n._officeOnReadyState.officeOnReadyHostAndPlatformInfo=__assign({},e),n._officeOnReadyState.officeOnReadyFired=!0,OSFPerformance.officeOnReady=OSFPerformance.now();0<n._officeOnReadyState.officeOnReadyCallbacks.length;)n._officeOnReadyState.officeOnReadyCallbacks.shift()(n._officeOnReadyState.officeOnReadyHostAndPlatformInfo);n._officeOnReadyState.officeOnReadyPromiseResolve(n._officeOnReadyState.officeOnReadyHostAndPlatformInfo),n._officeOnReadyState.isOfficeOnReadyCalled||OSF.OUtil.waitForFunction(function(){return"function"==typeof n.initialize},function(e){e&&n.initialize(OSF._OfficeAppFactory.getOfficeAppContext().get_reason())},400,50)}}(Office=Office||{}),function(w){var e=(t.prototype.get_id=function(){return this._id},t.prototype.get_appName=function(){return this._appName},t.prototype.get_appVersion=function(){return this._appVersion},t.prototype.get_appUILocale=function(){return this._appUILocale},t.prototype.get_dataLocale=function(){return this._dataLocale},t.prototype.get_docUrl=function(){return this._docUrl},t.prototype.get_clientMode=function(){return this._isWeb?this._clientMode:0==this._clientMode?Office.DocumentMode.ReadWrite:Office.DocumentMode.ReadOnly},t.prototype.get_settingsFunc=function(){return this._settingsFunc},t.prototype.get_reason=function(){return this._reason},t.prototype.get_osfControlType=function(){return this._osfControlType},t.prototype.get_eToken=function(){return this._eToken},t.prototype.get_correlationId=function(){return this._correlationId},t.prototype.get_appInstanceId=function(){return this._appInstanceId},t.prototype.get_touchEnabled=function(){return this._touchEnabled},t.prototype.get_commerceAllowed=function(){return this._commerceAllowed},t.prototype.get_appMinorVersion=function(){return this._appMinorVersion},t.prototype.get_requirementMatrix=function(){return this._requirementMatrix},t.prototype.get_dialogRequirementMatrix=function(){return this._dialogRequirementMatrix},t.prototype.get_hostCustomMessage=function(){return this._hostCustomMessage},t.prototype.get_hostFullVersion=function(){return this._hostFullVersion},t.prototype.get_isDialog=function(){return this._isDialog},t.prototype.get_clientWindowHeight=function(){return this._clientWindowHeight},t.prototype.get_clientWindowWidth=function(){return this._clientWindowWidth},t.prototype.get_addinName=function(){return this._addinName},t.prototype.get_appDomains=function(){return this._appDomains},t.prototype.get_taskpaneUrl=function(){return this._taskpaneUrl},t.prototype.set_taskpaneUrl=function(e){this._taskpaneUrl=e},t.prototype.get_featureGates=function(){return this._featureGates},t.prototype.get_officeThemeFunc=function(){return this._officeThemeFunc},t.prototype.get_initialDisplayMode=function(){return this._initialDisplayMode?this._initialDisplayMode:0},t.prototype.get_isFromWacAutomation=function(){return this._isFromWacAutomation},t.prototype.get_wopiHostOriginForSingleSignOn=function(){return this._wopiHostOriginForSingleSignOn},t.prototype.get_hostSettingsFunc=function(){return this._hostSettingsFunc},t.prototype.get_isWeb=function(){return this._isWeb},t.prototype.get_nestedAppAuthBridgeType=function(){return this._nestedAppAuthBridgeType},t.prototype.get_partitionKey=function(){return this._partitionKey},t.prototype.get_topFrameOrigin=function(){return this._topFrameOrigin},t);function t(e,t,n,r,i,o,a,s,c,l,u,p,f,d,h,g,y,m,_,b,v,O,C,P,R,S,I,T,A,N,x,E,D,j){this._id=e,this._appName=t,this._appVersion=n,this._appUILocale=r,this._dataLocale=i,this._docUrl=o,this._clientMode=a,this._settingsFunc=s,this._reason=c,this._osfControlType=l,this._eToken=u,this._correlationId=p,this._appInstanceId=f,this._touchEnabled=d,this._commerceAllowed=h,this._appMinorVersion=g,this._requirementMatrix=y,this._hostCustomMessage=m,this._hostFullVersion=_,this._isDialog=w.OUtil.isDialog(),this._clientWindowHeight=b,this._clientWindowWidth=v,this._addinName=O,this._appDomains=C,this._dialogRequirementMatrix=P,this._featureGates=R,this._officeThemeFunc=S,this._initialDisplayMode=I,this._isFromWacAutomation=T,this._wopiHostOriginForSingleSignOn=A,this._hostSettingsFunc=N,this._isWeb=x,this._nestedAppAuthBridgeType=E,this._partitionKey=D,this._topFrameOrigin=j}w.OfficeAppContext=e}(OSF=OSF||{}),function(l){(l._OfficeAppFactory||(l._OfficeAppFactory={})).retrieveHostInfo=function(){var e={isO15:!0,isRichClient:!0,hostType:"",hostPlatform:"",hostSpecificFileVersion:"",hostLocale:"",osfControlAppCorrelationId:"",isDialog:!1,disableLogging:!1,flags:0},t="_host_Info",n=null;try{if(window.external=window.external||{},"undefined"!=typeof agaveHost&&agaveHost.GetHostInfo&&(window.external.GetHostInfo=function(){return agaveHost.GetHostInfo()}),window.external.GetHostInfo){var r=window.external.GetHostInfo();if("isDialog"==r)e.isO15=!0,e.isDialog=!0;else{var i=r.split(t+"=");n=1<i.length?i[1]:r}}}catch(e){l.Utility.log(JSON.stringify(e))}if(!n)try{var o=window.name;if(o){var a=JSON.parse(o);n=a?a.hostInfo:null}}catch(e){l.Utility.log(JSON.stringify(e))}n=n||l.Utility.getQueryStringValue(t);var s=l.OUtil.getSessionStorage();if(!n&&s.getItem("hostInfoValue")&&(n=s.getItem("hostInfoValue")),n){n=decodeURIComponent(n),e.isO15=!1;var c=n.split("$");void 0===c[2]&&(c=n.split("|")),e.hostType=void 0===c[0]?"":c[0].toLowerCase(),e.hostPlatform=void 0===c[1]?"":c[1].toLowerCase(),e.hostSpecificFileVersion=void 0===c[2]?"":c[2].toLowerCase(),e.hostLocale=void 0===c[3]?"":c[3].toLowerCase(),e.osfControlAppCorrelationId=void 0===c[4]?"":c[4],"telemetry"==e.osfControlAppCorrelationId&&(e.osfControlAppCorrelationId=""),e.isDialog=void 0!==c[5]&&"isDialog"==c[5],e.disableLogging=void 0!==c[6]&&"disableLogging"==c[6],e.flags="string"==typeof c[7]&&0<c[7].length?parseInt(c[7]):0,s.setItem("hostInfoValue",n)}else e.isO15=!0,e.hostLocale=l.Utility.getQueryStringValue("locale");return e}}(OSF=OSF||{}),function(f){var e;!function(e){var t,n,r,i,o,a,s,c,l;"undefined"!=typeof window&&(window.location&&(t=window.location.hash,n=window.location.search),r=window.name);var u={0:"Unknown",1:"Hidden",2:"Taskpane",3:"Dialog"};function p(e,t){f.AppCommandManager.initialize();var n=e.get_appName(),r=null;0!=(i.flags&f.HostInfoFlags.SharedApp)&&(r={visibilityMode:u[e.get_initialDisplayMode()]}),Office.fireOnReady({host:f.HostName.Host.getInstance().getHost(n),platform:f.HostName.Host.getInstance().getPlatform(n),addin:r}),i.hostPlatform==f.HostInfoPlatform.web&&null!=o.clientEndPoint&&o.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[o.id,f.AgaveHostAction.OfficeJsReady,Date.now()]),t(e)}e.bootstrap=function(t,n){if(o={id:null,webAppUrl:null,conversationID:null,clientEndPoint:null,wnd:window.parent,focused:!1,serviceEndPoint:null},i=e.retrieveHostInfo(),function(){0;try{if(i.disableLogging)return 0;window.external=window.external||{},void 0===window.external.GetLoggingAllowed||window.external.GetLoggingAllowed()}catch(e){}}(),function(){if(i.hostPlatform===f.HostInfoPlatform.web)a=new f.WebInitializationHelper(i,o,null,null);else if(i.hostPlatform===f.HostInfoPlatform.win32)a=new f.RichClientInitializationHelper(i,o,null,null);else if(i.hostPlatform===f.HostInfoPlatform.ios||i.hostPlatform===f.HostInfoPlatform.mac){if(!(window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.Agave))throw f.Utility.createNotImplementedException();a=new f.WebkitInitializationHelper(i,o,null,null)}else i.hostPlatform===f.HostInfoPlatform.android||i.hostPlatform===f.HostInfoPlatform.winrt?a=new f.WebViewInitializationHelper(i,o,null,null):console.warn("Office.js is loaded inside in unknown host or platform "+i.hostPlatform)}(),a){i.hostPlatform===f.HostInfoPlatform.web&&a.saveAndSetDialogInfo(f.Utility.getQueryStringValue("_host_Info")),a.setAgaveHostCommunication(),a.setupNestedAppAuthDependencies(),OSFPerformance.getAppContextStart=OSFPerformance.now();a.getAppContext(window,function(e){OSFPerformance.getAppContextEnd=OSFPerformance.now(),f.AppTelemetry.initialize(e),c=e,l=a.createClientHostController(),s=a.createAsyncMethodExecutor(),a.prepareApiSurface(e),f.BootStrapExtension.onGetAppContext?f.BootStrapExtension.onGetAppContext(e,o.wnd).then(function(){p(e,t)}):p(e,t)},function(e){n(e)})}else n(new Error("Office.js cannot be initialized."))},e.getWindowName=function(){return r},e.getWindowLocationHash=function(){return t},e.getWindowLocationSearch=function(){return n},e.getAsyncMethodExecutor=function(){return s},e.getOfficeAppContext=function(){return c},e.getHostInfo=function(){return i},e.getCachedSessionSettingsKey=function(){return(null!=o.conversationID?o.conversationID:c.get_appInstanceId())+"CachedSessionSettings"},e.getWebAppState=function(){return o},e.getId=function(){return o.id},e.getInitializationHelper=function(){return a},e.getClientHostController=function(){return l}}(e=f._OfficeAppFactory||(f._OfficeAppFactory={})),f.getClientEndPoint=function(){return e.getWebAppState().clientEndPoint}}(OSF=OSF||{}),function(e){var t,n,r,i,o,a,s,c,l,u,p,f,d;(t=e.AsyncResultStatus||(e.AsyncResultStatus={})).Succeeded="succeeded",t.Failed="failed",(n=e.DocumentMode||(e.DocumentMode={})).ReadOnly="readOnly",n.ReadWrite="readWrite",(r=e.HostType||(e.HostType={})).Word="Word",r.Excel="Excel",r.PowerPoint="PowerPoint",r.Outlook="Outlook",r.OneNote="OneNote",r.Project="Project",r.Access="Access",r.Visio="Visio",(i=e.InitializationReason||(e.InitializationReason={})).Inserted="inserted",i.DocumentOpened="documentOpened",(o=e.PlatformType||(e.PlatformType={})).PC="PC",o.OfficeOnline="OfficeOnline",o.Mac="Mac",o.iOS="iOS",o.Android="Android",o.Universal="Universal",(a=e.GoToType||(e.GoToType={})).Binding="binding",a.NamedItem="namedItem",a.Slide="slide",a.Index="index",(s=e.SelectionMode||(e.SelectionMode={})).Default="default",s.Selected="selected",s.None="none",(c=e.ValueFormat||(e.ValueFormat={})).Unformatted="unformatted",c.Formatted="formatted",(l=e.FileType||(e.FileType={})).Text="text",l.Compressed="compressed",l.Pdf="pdf",e.CoercionType={Html:"html",Matrix:"matrix",Ooxml:"ooxml",OoxmlPackage:"ooxmlPackage",PdfFile:"pdfFile",SlideRange:"slideRange",Table:"table",Text:"text"},(u=e.BindingType||(e.BindingType={})).Table="table",u.Text="text",u.Matrix="matrix",(p=e.FilterType||(e.FilterType={})).OnlyVisible="onlyVisible",p.All="all",(f=e.Table||(e.Table={}))[f.All=0]="All",f[f.Data=1]="Data",f[f.Headers=2]="Headers",(d=e.ActiveView||(e.ActiveView={})).Read="read",d.Edit="edit"}(Office=Office||{});var OSFPerfUtil,__extends=this&&this.__extends||function(){var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}();(OfficeExt||(OfficeExt={})).appSpecificCheckOrigin=function(e,t,n,r){return!1},function(S){var a=(e.prototype.getMethod=function(){return this._method},e.prototype.getInvokeType=function(){return this._invokeType},e.prototype.getBlockingFlag=function(){return this._blockingOthers},e);function e(e,t,n){this._method=e,this._invokeType=t,this._blockingOthers=n}S.XdmMethodObject=a;var s=(t.prototype.getRegisterMethodObject=function(){return this._registerMethodObject},t.prototype.getUnregisterMethodObject=function(){return this._unregisterMethodObject},t);function t(e,t){this._registerMethodObject=e,this._unregisterMethodObject=t}S.XdmEventMethodObject=s;var n=(r.prototype.registerMethod=function(e,t,n,r){if(0!==n&&1!==n)throw S.Utility.createArgumentException("invokeType");var i=new a(t,n,r);this._methodObjectList[e]=i},r.prototype.unregisterMethod=function(e){delete this._methodObjectList[e]},r.prototype.registerEvent=function(e,t,n){var r=new s(new a(t,4,!1),new a(n,5,!1));this._methodObjectList[e]=r},r.prototype.registerEventEx=function(e,t,n,r,i){var o=new s(new a(t,n,!1),new a(r,i,!1));this._methodObjectList[e]=o},r.prototype.unregisterEvent=function(e){this.unregisterMethod(e)},r.prototype.registerConversation=function(e,t,n){if(S.Utility.xdmDebugLog("registerConversation: cId="+e+" Url="+t),n){if(!Array.isArray(n))throw S.Utility.createArgumentException("appDomains");this._appDomains[e]=n}this._conversations[e]={url:t}},r.prototype.unregisterConversation=function(e){delete this._conversations[e]},r.prototype.setPolicyManager=function(e){if(!e.checkPermission)throw S.Utility.createArgumentException("policyManager");this._policyManager=e},r.prototype.getPolicyManager=function(){return this._policyManager},r.prototype.dispose=function(){this._methodObjectList=null,this._eventHandlerProxyList=null,this._Id=null,this._conversations=null,this._policyManager=null,this._appDomains=null,this._onHandleRequestError=null},r);function r(e){this._methodObjectList={},this._eventHandlerProxyList={},this._conversations={},this._policyManager=null,this._appDomains={},this._onHandleRequestError=null,this._methodObjectList={},this._eventHandlerProxyList={},this._Id=e,this._conversations={},this._policyManager=null,this._appDomains={},this._onHandleRequestError=null}S.XdmServiceEndPoint=n;var l,i,I,T,A,N,x,E,D,o,c=(Object.defineProperty(u.prototype,"targetUrl",{get:function(){return this._targetUrl},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"hostTrustCheckStatus",{get:function(){return this._hostTrustCheckStatus},set:function(e){this._hostTrustCheckStatus=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"fHostTrusted",{get:function(){return this._fHostTrusted},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"checkStatusLogged",{get:function(){return this._checkStatusLogged},set:function(e){this._checkStatusLogged=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"checkReceiverOriginAndRun",{get:function(){return this._checkReceiverOriginAndRun},set:function(e){this._checkReceiverOriginAndRun=e},enumerable:!0,configurable:!0}),u.prototype.invoke=function(o,a,s){function e(){var t=c._callingIndex++,e=new Date,n={callback:a,createdOn:e.getTime()};s&&"object"==typeof s&&"number"==typeof s.__timeout__&&(n.timeout=s.__timeout__,delete s.__timeout__),c._callbackList[t]=n;try{if(3!==c._hostTrustCheckStatus&&"ContextActivationManager_getAppContextAsync"!==o)throw"Access Denied";var r=new y(o,0,c._conversationId,t,s),i=U.envelope(r);c._targetWindow.postMessage(i,c._targetUrl),l._startMethodTimeoutTimer()}catch(e){try{null!==a&&a(-1,e)}finally{delete c._callbackList[t]}}}var c=this;this._checkReceiverOriginAndRun?this._checkReceiverOriginAndRun(e):(this._hostTrustCheckStatus=3,e())},u.prototype.registerForEvent=function(e,t,n,r){var i=this._callingIndex++,o=new Date;this._callbackList[i]={callback:n,createdOn:o.getTime()};try{var a=new y(e,1,this._conversationId,i,r),s=U.envelope(a);this._targetWindow.postMessage(s,this._targetUrl),l._startMethodTimeoutTimer(),this._eventHandlerList[e]=t}catch(e){try{null!==n&&n(-1,e)}finally{delete this._callbackList[i]}}},u.prototype.unregisterForEvent=function(e,t,n){var r=this._callingIndex++,i=new Date;this._callbackList[r]={callback:t,createdOn:i.getTime()};try{var o=new y(e,2,this._conversationId,r,n),a=U.envelope(o);this._targetWindow.postMessage(a,this._targetUrl),l._startMethodTimeoutTimer()}catch(e){try{null!==t&&t(-1,e)}finally{delete this._callbackList[r]}}finally{delete this._eventHandlerList[e]}},u);function u(e,t,n){this._callbackList={},this._eventHandlerList={},this._hostTrustCheckStatus=0,this._checkStatusLogged=!1,this._fHostTrusted=!1,this._conversationId=e,this._targetWindow=t,this._targetUrl=n,this._callingIndex=0,this._callbackList={},this._eventHandlerList={},this._checkReceiverOriginAndRun=null}function j(){null!==A?x||(0<I.length?w(I.shift()):(clearInterval(A),A=null)):S.Utility.xdmDebugLog("channel is not ready.")}function w(e){x=e.getInvokeBlockingFlag(),e.invoke(),T=(new Date).getTime()}function k(){x=!1}function F(e,t){var n=!1;if(!(t&&"null"!==t&&t.length&&e&&e instanceof Array&&e.length))return n;for(var r=0;r<e.length&&!n;r++)if(-1!==e[r].indexOf("://")){var i=S.OUtil.parseUrl(t,!0);n=B(S.OUtil.parseUrl(e[r],!0),i)}return n}function L(e){if(!e||"null"===e)return!1;var t=new Array("^outlook\\.office\\.com$","^outlook-sdf\\.office\\.com$","^outlook\\.office\\.com$","^outlook-sdf\\.office\\.com$","^outlook\\.live\\.com$","^outlook-sdf\\.live\\.com$","^consumer\\.live-int\\.com$","^outlook-tdf\\.live\\.com$","^sdfpilot\\.live\\.com$","^outlook\\.office365\\.us$","^outlook\\.office365\\.com$","^exchangelabs\\.live-int\\.com$","^.*\\.dod\\.online\\.office365\\.us$","^.*\\.gov\\.online\\.office365\\.us$","^.*\\.officeapps\\.live\\.com$","^.*\\.officeapps-df\\.live\\.com$","^"+document.domain.replace(new RegExp("\\.","g"),"\\.")+"$");return!0===S.OUtil.getCustomOfficeInitializationSettings().trustAllCloudEnvironments&&t.push("^partner\\.outlook\\.cn$","^.*\\.partner\\.officewebapps\\.cn$"),new RegExp(t.join("|")).test(e)}function M(e,t){if(!e||!t||"null"===e||"null"===t)return!1;var n=S.OUtil.parseUrl(e,!0),r=S.OUtil.parseUrl(t,!0);if(null==n||null==r)return!1;var i=n.protocol===r.protocol,o=n.port===r.port,a=r.hostname,s=n.hostname,c=a===s,l=!1;return!c&&a.length>s.length+1&&(l=a.slice(-(s.length+1))==="."+s),o&&i&&(c||l)}function B(e,t){return e.hostname==t.hostname&&e.protocol==t.protocol&&e.port==t.port}function p(t){if(""!=t.data){var n,e=t.data;try{n=U.unenvelope(e)}catch(e){return}if(S.Utility.xdmDebugLog(e),0===n._messageType){var r=null==t.origin||"null"===t.origin?n._origin:t.origin;try{var i=function(e){for(var t in E)if(E[t]._conversations[e])return E[t];throw S.Utility.createArgumentException("conversationId")}(n._conversationId);S.Utility.xdmDebugLog("_receive: request, origin="+r+" sourceURL:"+i._conversations[n._conversationId]);var o=i._conversations[n._conversationId];S.Utility.xdmDebugLog("_receive: request, origin="+r+" sourceURL:"+o.url);var a=[o.url].concat(i._appDomains[n._conversationId]);if(!F(a,t.origin))if(!OfficeExt.appSpecificCheckOrigin(a,t,n._origin,F))if(!M(o.url,t.origin))throw"Failed origin check";var s=i.getPolicyManager();if(s&&!s.checkPermission(n._conversationId,n._actionName,n._data))throw"Access Denied";var c=function(e,t){var n=e._methodObjectList[t._actionName];if(!n)throw S.Utility.xdmDebugLog("The specified method is not registered on service endpoint:"+t._actionName),S.Utility.createArgumentException("messageObject");return 0===t._actionType?n:1===t._actionType?n.getRegisterMethodObject():n.getUnregisterMethodObject()}(i,n),l=new W(t.source,r,n._actionName,n._conversationId,n._correlationId,k),u=new G(c,n._data,l,i._eventHandlerProxyList,n._conversationId,n._actionName),p=!0;null==A&&((null==T||(new Date).getTime()-T>N)&&!x?(w(u),p=!1):A=setInterval(j,N)),p&&(R=u,I.push(R))}catch(e){i&&i._onHandleRequestError&&i._onHandleRequestError(n,e);var f=-2;"Access Denied"==e&&(f=-5);var d=new H(n._actionName,n._conversationId,n._correlationId,f,0,e),h=U.envelope(d),g=!1;try{g=!(!t.source||!t.source.postMessage)}catch(e){}var y=!1;if(window.location.href&&t.origin&&"null"!==t.origin&&M(window.location.href,t.origin))y=!0;else if(t.origin&&"null"!==t.origin)y=L(S.OUtil.parseUrl(t.origin,!0).hostname);g&&y&&t.source.postMessage(h,r)}}else{if(1!==n._messageType)return;var m=(C=n._conversationId,(P=D[C])||S.Utility.xdmDebugLog("Unknown conversation Id."),P);if(!m)return;if(S.Utility.xdmDebugLog("_receive: response, origin="+t.origin+" targetURL:"+m._targetUrl),v=m._targetUrl,O=t.origin,!(v&&O&&"null"!==v&&"null"!==O&&v.length&&O.length&&B(S.OUtil.parseUrl(v,!0),S.OUtil.parseUrl(O,!0))))throw"Failed orgin check";if(3==m._hostTrustCheckStatus&&(m._fHostTrusted=!0),0===n._responseType){var _=m._callbackList[n._correlationId];if(_)try{_.callback&&_.callback(n._errorCode,n._data)}finally{delete m._callbackList[n._correlationId]}}else{var b=m._eventHandlerList[n._actionName];null!=b&&b(n._data)}}}var v,O,C,P,R}function f(){o||(function(e){if(window.addEventListener)window.addEventListener("message",e,!1);else{if(!(-1<navigator.userAgent.indexOf("MSIE")&&window.attachEvent))throw S.Utility.xdmDebugLog("Browser doesn't support the required API."),S.Utility.createArgumentException("Browser");window.attachEvent("onmessage",e)}}(p),o=!0)}S.XdmClientEndPoint=c,i=l=S.XdmCommunicationManager||(S.XdmCommunicationManager={}),I=[],A=T=null,x=!(N=10),E={},o=!(D={}),i.connect=function(e,t,n){var r=D[e];return r||(f(),r=new c(e,t,n),D[e]=r),r},i.getClientEndPoint=function(e){return D[e]},i.createServiceEndPoint=function(e){f();var t=new n(e);return E[e]=t},i.getServiceEndPoint=function(e){return E[e]},i.deleteClientEndPoint=function(e){delete D[e]},i.deleteServiceEndPoint=function(e){delete E[e]},i.checkUrlWithAppDomains=function(e,t){return F(e,t)},i.isTargetSubdomainOfSourceLocation=function(e,t){return M(e,t)},i._setMethodTimeout=function(e){0},i._startMethodTimeoutTimer=function(){},i.isHostNameValidWacDomain=function(e){return L(e)};var d=(h.prototype.getActionName=function(){return this._actionName},h.prototype.getConversationId=function(){return this._conversationId},h.prototype.getCorrelationId=function(){return this._correlationId},h.prototype.getOrigin=function(){return this._origin},h.prototype.getData=function(){return this._data},h.prototype.getMessageType=function(){return this._messageType},h);function h(e,t,n,r,i){this._messageType=e,this._actionName=t,this._conversationId=n,this._correlationId=r,this._origin=window.location.origin,this._data=void 0===i?null:i}var g,y=(__extends(m,g=d),m.prototype.getActionType=function(){return this._actionType},m);function m(e,t,n,r,i){var o=g.call(this,0,e,n,r,i)||this;return o._actionType=t,o}var _,H=(__extends(b,_=d),b.prototype.getErrorCode=function(){return this._errorCode},b.prototype.getResponseType=function(){return this._responseType},b);function b(e,t,n,r,i,o){var a=_.call(this,1,e,t,n,o)||this;return a._errorCode=r,a._responseType=i,a}var U=(v.envelope=function(e){return JSON.stringify(e)},v.unenvelope=function(e){return JSON.parse(e)},v);function v(){}var O=(C.prototype.getRequesterWindow=function(){return this._requesterWindow},C.prototype.getRequesterUrl=function(){return this._requesterUrl},C.prototype.getActionName=function(){return this._actionName},C.prototype.getConversationId=function(){return this._conversationId},C.prototype.getCorrelationId=function(){return this._correlationId},C.prototype.getSend=function(){return this._send},C.prototype.setResultCode=function(e){this._invokeResultCode=e},C);function C(e,t,n,r,i,o){var a=this;this._invokeResultCode=0,this._requesterWindow=e,this._requesterUrl=t,this._actionName=n,this._conversationId=r,this._correlationId=i,this._invokeResultCode=0,this._responseType=o,this._send=function(e){try{var t=new H(a._actionName,a._conversationId,a._correlationId,a._invokeResultCode,a._responseType,e),n=U.envelope(t);a._requesterWindow.postMessage(n,a._requesterUrl),S.Utility.xdmDebugLog("_send: requestUrl="+a._requesterUrl+" _actionName:"+a._actionName)}catch(e){S.Utility.xdmDebugLog("ResponseSender._send error:"+e.message)}}}var P,W=(__extends(R,P=O),R);function R(e,t,n,r,i,o){var a=P.call(this,e,t,n,r,i,0)||this;return a._postCallbackHandler=o,a._send=function(e,t){null!=t&&(a._invokeResultCode=t);try{var n=new H(a._actionName,a._conversationId,a._correlationId,a._invokeResultCode,a._responseType,e),r=U.envelope(n);a._requesterWindow.postMessage(r,a._requesterUrl),a._postCallbackHandler()}catch(e){S.Utility.xdmDebugLog("InvokeCompleteCallback._send error:"+e.message)}},a}var G=(V.prototype.invoke=function(){try{var e;switch(this._methodObject.getInvokeType()){case 0:this._methodObject.getMethod()(this._param,this._invokeCompleteCallback.getSend());break;case 1:e=this._methodObject.getMethod()(this._param),this._invokeCompleteCallback.getSend()(e);break;case 4:var t=this._createEventHandlerProxyObject(this._invokeCompleteCallback);e=this._methodObject.getMethod()(t.getSend(),this._param),this._eventHandlerProxyList[this._conversationId+this._eventName]=t.getSend(),this._invokeCompleteCallback.getSend()(e);break;case 5:var n=this._eventHandlerProxyList[this._conversationId+this._eventName];e=this._methodObject.getMethod()(n,this._param),delete this._eventHandlerProxyList[this._conversationId+this._eventName],this._invokeCompleteCallback.getSend()(e);break;case 2:var r=this._createEventHandlerProxyObject(this._invokeCompleteCallback);this._methodObject.getMethod()(r.getSend(),this._invokeCompleteCallback.getSend(),this._param),this._eventHandlerProxyList[this._callerId+this._eventName]=r.getSend();break;case 3:var i=this._eventHandlerProxyList[this._callerId+this._eventName];this._methodObject.getMethod()(i,this._invokeCompleteCallback.getSend(),this._param),delete this._eventHandlerProxyList[this._callerId+this._eventName]}}catch(e){this._invokeCompleteCallback.setResultCode(-3),this._invokeCompleteCallback.getSend()(e)}},V.prototype.getInvokeBlockingFlag=function(){return this._methodObject.getBlockingFlag()},V.prototype._createEventHandlerProxyObject=function(e){return new O(e.getRequesterWindow(),e.getRequesterUrl(),e.getActionName(),e.getConversationId(),e.getCorrelationId(),1)},V);function V(e,t,n,r,i,o){this._callerId="",this._methodObject=e,this._param=t,this._invokeCompleteCallback=n,this._eventHandlerProxyList=r,this._conversationId=i,this._eventName=o}}(OSF=OSF||{}),function(){function t(e,t){return t+="_Resource",void 0!==oteljs?[oteljs.makeDoubleDataField(t+"_responseEnd",e.responseEnd),oteljs.makeDoubleDataField(t+"_responseStart",e.responseStart),oteljs.makeDoubleDataField(t+"_startTime",e.startTime),oteljs.makeDoubleDataField(t+"_transferSize",e.transferSize)]:[]}(OSFPerfUtil||(OSFPerfUtil={})).sendPerformanceTelemetry=function(){if(OSF.AppTelemetry.enableTelemetry&&"undefined"!=typeof performance&&performance.getEntriesByType){var n,r,i=OSF.LoadScriptHelper.getHostBundleJsName().toLowerCase();performance.getEntriesByType("resource").forEach(function(e){var t=e.name.toLowerCase();OSF.Utility.stringEndsWith(t,i)?n=e:(OSF.Utility.stringEndsWith(t,OSF.ConstantNames.OfficeDebugJS)||OSF.Utility.stringEndsWith(t,OSF.ConstantNames.OfficeJS))&&(r=e)}),OTel.OTelLogger.onTelemetryLoaded(function(){var e=[];n&&(e=e.concat(t(n,"HostJs"))),r&&(e=e.concat(t(r,"OfficeJs"))),e=e.concat([oteljs.makeDoubleDataField("officeExecuteStartDate",OSFPerformance.officeExecuteStartDate),oteljs.makeDoubleDataField("officeExecuteStart",OSFPerformance.officeExecuteStart),oteljs.makeDoubleDataField("officeExecuteEnd",OSFPerformance.officeExecuteEnd),oteljs.makeDoubleDataField("hostInitializationStart",OSFPerformance.hostInitializationStart),oteljs.makeDoubleDataField("hostInitializationEnd",OSFPerformance.hostInitializationEnd),oteljs.makeDoubleDataField("totalJSHeapSize",OSFPerformance.totalJSHeapSize),oteljs.makeDoubleDataField("usedJSHeapSize",OSFPerformance.usedJSHeapSize),oteljs.makeDoubleDataField("jsHeapSizeLimit",OSFPerformance.jsHeapSizeLimit),oteljs.makeDoubleDataField("getAppContextStart",OSFPerformance.getAppContextStart),oteljs.makeDoubleDataField("getAppContextEnd",OSFPerformance.getAppContextEnd),oteljs.makeDoubleDataField("getAppContextXdmStart",OSFPerformance.getAppContextXdmStart),oteljs.makeDoubleDataField("getAppContextXdmEnd",OSFPerformance.getAppContextXdmEnd),oteljs.makeDoubleDataField("createOMEnd",OSFPerformance.createOMEnd),oteljs.makeDoubleDataField("officeOnReady",OSFPerformance.officeOnReady),oteljs.makeBooleanDataField("isSharedRuntime",0!=(OSF._OfficeAppFactory.getHostInfo().flags&OSF.HostInfoFlags.SharedApp)),oteljs.makeBooleanDataField("isExperimentJsEnabled",0!=(OSF._OfficeAppFactory.getHostInfo().flags&OSF.HostInfoFlags.ExperimentJsEnabled))]),Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.JSPerformanceTelemetryV06",dataFields:e,eventFlags:{dataCategories:2,diagnosticLevel:110}})})}}}(),function(e){var t,n,r,i,o,l,u;function a(n,e,t,r){if(n&&e){var i=window.document,o=l[n];if(o)o.loaded?e(!0):o.pendingCallbacks.push(e);else{var a=i.createElement("script");a.type="text/javascript",o={loaded:!1,pendingCallbacks:[e],timer:null},l[n]=o;function s(){null!=o.timer&&(clearTimeout(o.timer),delete o.timer),o.loaded=!0;for(var e=o.pendingCallbacks.length,t=0;t<e;t++){o.pendingCallbacks.shift()(!0)}}function c(){delete l[n],null!=o.timer&&(clearTimeout(o.timer),delete o.timer);for(var e=o.pendingCallbacks.length,t=0;t<e;t++){o.pendingCallbacks.shift()(!1)}}a.readyState?a.onreadystatechange=function(){"loaded"!=a.readyState&&"complete"!=a.readyState||(a.onreadystatechange=null,s())}:a.onload=s,a.onerror=c,r=r||u,o.timer=setTimeout(c,r),a.setAttribute("crossOrigin","anonymous"),a.src=t?t.createScriptURL(n):n,i.getElementsByTagName("head")[0].appendChild(a)}}}t=e.OUtil||(e.OUtil={}),l={},u=3e4,i=t.Guid||(t.Guid={}),o=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],i.generateNewGuid=function(){for(var e="",t=(new Date).getTime(),n=0;n<32&&0<t;n++)8!=n&&12!=n&&16!=n&&20!=n||(e+="-"),e+=o[t%16],t=Math.floor(t/16);for(;n<32;n++)8!=n&&12!=n&&16!=n&&20!=n||(e+="-"),e+=o[Math.floor(16*Math.random())];return e},t.loadScriptPromise=function(n,r,i){return new Promise(function(t,e){a(n,function(e){t(e)},r,i)})},t.loadScript=a,t.getSessionStorage=function(){if(!n){try{var t=window.sessionStorage}catch(e){t=null}n=new e.SafeStorage(t)}return n},t.getLocalStorage=function(){if(!r){try{var t=window.localStorage}catch(e){t=null}r=new e.SafeStorage(t)}return r},t.waitForFunction=function(e,t,n,r){var i,o=n,a=function(){o--,e()?t(!0):0<o?(i=window.setTimeout(a,r),o--):(window.clearTimeout(i),t(!1))};a()}}(OSF=OSF||{}),function(_){_.Flights=[],_.DisabledChangeGates=[];_.FlightTreatmentNames={EnableMsal3SsoApi:"Microsoft.Office.SharedOnline.EnableMsal3SsoApi"},function(p){var a="&_flights=",s="&_disabledChangeGates=",c="_flights=",l="_disabledChangeGates=",f="&";function i(e,t){return e.substr(0,t.length)===t}function u(e,t,n,r){return i(e,t+"//"+n+":"+r)||i(e,n+":"+r)}p.isArray=function(e){return"[object Array]"===Object.prototype.toString.apply(e)},p.isFunction=function(e){return"[object Function]"===Object.prototype.toString.apply(e)},p.isDate=function(e){return"[object Date]"===Object.prototype.toString.apply(e)},p.addEventListener=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else{if(!e.attachEvent)throw new Error("Cannot attach event");e.attachEvent("on"+t,n)}},p.removeEventListener=function(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else{if(!e.detachEvent)throw new Error("Cannot remove event");e.detachEvent("on"+t,n)}};function d(e){var t=[];try{t=JSON.parse(e)}catch(e){}return Array.isArray(t)||(t=[]),t}function h(e,t,n){try{var r=JSON.parse(t),i=null!=r?r[n]:null,o=p.getSessionStorage();if(!e&&o&&null!=r){var a=r.baseFrameName+n;i?o.setItem(a,i):i=o.getItem(a)}return i}catch(e){return null}}function g(e,t,n,r,i){var o=i.split(e),a=1<o.length?o[o.length-1]:null;n&&null!=a&&(0<=a.indexOf(f)&&(a=a.split(f)[0]),a=decodeURIComponent(a));var s=p.getSessionStorage();if(!r&&s){var c=window.name.indexOf(t);if(-1<c){var l=window.name.indexOf(";",c);-1==l&&(l=window.name.length);var u=window.name.substring(c,l);a?s.setItem(u,a):a=s.getItem(u)}}return a}function n(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)===t){if(n+1>=e.length)return this.removeChar(e,n);if("/"===t){if("?"===e.charAt(n+1)||"#"===e.charAt(n+1))return this.removeChar(e,n)}else if("?"===t&&"#"===e.charAt(n+1))return this.removeChar(e,n)}return e}function y(e){if(e=n(e,"/"),e=n(e,"?"),"https://"==(e=n(e,"#")).substr(0,8))-1!=(t=e.indexOf(":443"))&&(t!=e.length-4&&"/"!=e.charAt(t+4)&&"?"!=e.charAt(t+4)&&"#"!=e.charAt(t+4)||(e=e.substring(0,t)+e.substring(t+4)));else if("http://"==e.substr(0,7)){var t;-1!=(t=e.indexOf(":80"))&&(t!=e.length-3&&"/"!=e.charAt(t+3)&&"?"!=e.charAt(t+3)&&"#"!=e.charAt(t+3)||(e=e.substring(0,t)+e.substring(t+3)))}return e}function m(e){var t,n,r=[],i=[],o=e.length;for(t=0;t<o;t++)(n=e[t]).tabIndex?0<n.tabIndex?i.push(n):0===n.tabIndex&&r.push(n):r.push(n);return i=i.sort(function(e,t){var n=e.tabIndex-t.tabIndex;return 0===n&&(n=i.indexOf(e)-i.indexOf(t)),n}),[].concat(i,r)}p.serializeSettings=function(e){var t={};for(var n in e){var r=e[n];try{r=JSON.stringify(r,function(e,t){return _.OUtil.isDate(this[e])?"Date("+this[e].getTime()+")":t}),t[n]=r}catch(e){}}return t},p.deserializeSettings=function(e){var t={};for(var n in e=e||{}){var r=e[n];try{r=JSON.parse(r,function(e,t){var n;return"string"==typeof t&&t&&6<t.length&&"Date("===t.slice(0,5)&&")"===t.slice(-1)&&(n=new Date(parseInt(t.slice(5,-1))))?n:t}),t[n]=r}catch(e){}}return t},p.convertIntToCssHexColor=function(e){return"#"+(Number(e)+16777216).toString(16).slice(-6)},p.parseAppContextFromWindowName=function(e,t){return p.parseInfoFromWindowName(e,t,"appContext")},p.parseHostInfoFromWindowName=function(e,t){return _.OUtil.parseInfoFromWindowName(e,t,"hostInfo")},p.parseXdmInfo=function(e){var t=p.parseXdmInfoWithGivenFragment(e,window.location.hash);return t=t||p.parseXdmInfoFromWindowName(e,window.name)},p.parseXdmInfoFromWindowName=function(e,t){return _.OUtil.parseInfoFromWindowName(e,t,"xdmInfo")},p.parseXdmInfoWithGivenFragment=function(e,t){return _.OUtil.parseInfoWithGivenFragment("&_xdm_Info=","_xdm_",!1,e,t)},p.parseFlights=function(e){var t,n,r,i,o=(t=e,n=window.location.hash,d(g(a,c,!0,t,n)));return 0==o.length&&(r=e,i=window.name,o=d(h(r,i,"flights"))),o},p.parseDisabledChangeGates=function(e){var t,n,r,i,o=(t=e,n=window.location.hash,d(g(s,l,!0,t,n)));return 0==o.length&&(r=e,i=window.name,o=d(h(r,i,"disabledChangeGates"))),o},p.checkFlight=function(e){return _.Flights&&0<=_.Flights.indexOf(e)},p.isChangeGateEnabled=function(e){return!_.DisabledChangeGates||-1===_.DisabledChangeGates.indexOf(e)},p.parseInfoFromWindowName=h,p.parseInfoWithGivenFragment=g,p.getConversationId=function(){var e=window.location.search,t=null;if(e){var n=e.indexOf("&");(t=0<n?e.substring(1,n):e.substr(1))&&"="===t.charAt(t.length-1)&&(t=(t=t.substring(0,t.length-1))&&decodeURIComponent(t))}return t},p.getInfoItems=function(e){var t=e.split("$");return void 0===t[1]&&(t=e.split("|")),void 0===t[1]&&(t=e.split("%7C")),t},p.getXdmFieldValue=function(e,t){var n="",r=_.OUtil.parseXdmInfo(t);if(r){var i=_.OUtil.getInfoItems(r);if(null!=i&&3<=i.length)switch(e){case"ConversationUrl":n=i[2];break;case"AppId":n=i[1]}}return n},p.parseUrl=function(e,t){if(void 0===t&&(t=!1),void 0!==e&&e){var n,r,i="NotHttps",o="undefined"!=typeof window&&void 0!==window.navigator&&0<window.navigator.userAgent.indexOf("Trident"),a=("undefined"!=typeof window&&void 0!==window.navigator&&window.navigator.userAgent.indexOf("Edge"),{protocol:void 0,hostname:void 0,host:void 0,port:void 0,pathname:void 0,search:void 0,hash:void 0,isPortPartOfUrl:void 0});try{if(o){var s=document.createElement("a");if(s.href=e,!(s&&s.protocol&&s.host&&s.hostname&&s.href&&y(s.href).toLowerCase()===y(e).toLowerCase()))throw"InvalidUrl";if(_.OUtil.checkFlight(2)&&t&&"https:"!=s.protocol)throw new Error(i);var c=(r=s,(n=e)&&r?"https:"==r.protocol&&u(n,"https:",r.hostname,"443")?":443":"http:"==r.protocol&&u(n,"http:",r.hostname,"80")?":80":"":"");a.protocol=s.protocol,a.hostname=s.hostname,a.port=c?"":s.port,a.host=c?s.hostname:s.host,a.pathname=(o?"/":"")+s.pathname,a.search=s.search,a.hash=s.hash,a.isPortPartOfUrl=u(e,s.protocol,s.hostname,s.port)}else{var l=new URL(e);if(l&&l.protocol&&l.host&&l.hostname){if(_.OUtil.checkFlight(2)&&t&&"https:"!=l.protocol)throw new Error(i);a.protocol=l.protocol,a.hostname=l.hostname,a.port=l.port,a.host=l.host,a.pathname=l.pathname,a.search=l.search,a.hash=l.hash,a.isPortPartOfUrl=l.host.lastIndexOf(":"+l.port)==l.host.length-l.port.length-1}}}catch(e){if(e.message===i)throw e}return a}},p.focusToFirstTabbable=function(e,t){function n(e){c=!0}var r,i,o,a,s,c=!1;if(e=m(e),r=t?e.length-1:0,0===e.length)return null;for(;!c&&0<=r&&r<e.length;)i=e[r],window.focus(),i.addEventListener("focus",n),i.focus(),i.removeEventListener("focus",n),o=e.length,s=t,r=(a=r)<0||o<a||0===a&&s||a===o-1&&!s?-1:s?a-1:a+1,c||i!==document.activeElement||(c=!0);return c?i:null},p.focusToNextTabbable=function(e,t,n){function r(e){c=!0}function i(e,t,n){return!(t<0||e<t)&&(0!==t||!n)&&(t!==e-1||n)?n?t-1:t+1:-1}var o,a,s,c=!1;if(o=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}(e=m(e),t),(a=i(e.length,o,n))<0)return null;for(;!c&&0<=a&&a<e.length;)(s=e[a]).addEventListener("focus",r),s.focus(),s.removeEventListener("focus",r),a=i(e.length,a,n),c||s!==document.activeElement||(c=!0);return c?s:null},p.defineMethodOnNamespace=function(e,t,n){e[t]=n},p.isDialog=function(){return _._OfficeAppFactory.getHostInfo().isDialog},p.isPopupWindow=function(){return _.OUtil.isDialog()&&_._OfficeAppFactory.getHostInfo().hostPlatform==_.HostInfoPlatform.web&&null!=window.opener},p.getHostPlatform=function(){return _._OfficeAppFactory.getHostInfo().hostPlatform},p.getCustomOfficeInitializationSettings=function(){return"object"==typeof officeInitializationSettings?officeInitializationSettings:{}};var t=0;p.getLibraryReleaseVehicle=function(){return t},p.setLibraryReleaseVehicle=function(e){t=e}}(_.OUtil||(_.OUtil={}))}(OSF=OSF||{}),function(e){var t;(t=e.ParameterNames||(e.ParameterNames={})).Callback="callback",t.AsyncContext="asyncContext",t.Data="data",t.MessageToParent="messageToParent",t.MessageContent="messageContent",t.MessageOrigin="messageOrigin",t.TargetOrigin="targetOrigin",t.AppCommandInvocationCompletedData="appCommandInvocationCompletedData"}(OSF=OSF||{}),function(h){!function(e){function t(){}e.RequirementVersion=t;var c=(n.prototype.isSetSupported=function(e,t){if(null==e)return!1;null==t&&(t=0);var n=this._setMap._sets;if(n.hasOwnProperty(e.toLowerCase())){var r=n[e.toLowerCase()];try{var i=this._getVersion(r+"");t+="";var o=this._getVersion(t);if(0<i.major&&i.major>o.major)return!0;if(0<i.major&&0<=i.minor&&i.major==o.major&&i.minor>=o.minor)return!0}catch(e){return!1}}return!1},n.prototype._getVersion=function(e){var t=(e+="").split("."),n=0,r=0;if(t.length<2&&isNaN(Number(e)))throw"version format incorrect";if(n=Number(t[0]),2<=t.length&&(r=Number(t[1])),isNaN(n)||isNaN(r))throw"version format incorrect";return{minor:r,major:n}},n);function n(e){this._setMap=e}e.RequirementMatrix=c;var l=(r.prototype._addSetMap=function(e){for(var t in e)this._sets[t]=e[t]},r);function r(e){this._sets=e}e.DefaultSetRequirement=l;var i,u=(__extends(o,i=l),o);function o(){return i.call(this,{dialogapi:1.1})||this}e.DefaultRequiredDialogSetRequirement=u;var a,p=(__extends(s,a=l),s);function s(){return a.call(this,{dialogorigin:1.1})||this}e.DefaultOptionalDialogSetRequirement=p;var f=(d.getDefaultRequirementMatrix=function(e){var t=void 0,n=e.get_requirementMatrix();if(null!=n&&0<n.length){var r=JSON.parse(e.get_requirementMatrix().toLowerCase());if(h._OfficeAppFactory.getHostInfo().hostPlatform==h.HostInfoPlatform.web)try{var i="dialogorigin";r.hasOwnProperty(i)||(r[i]=1.1)}catch(e){}t=new c(new l(r))}else t=new c(new l({}));return t},d.getDefaultDialogRequirementMatrix=function(e){var t=void 0,n=e.get_dialogRequirementMatrix();if(null!=n&&0<n.length){var r=JSON.parse(e.get_requirementMatrix().toLowerCase());t=new l(r)}else{t=new u;var i=e.get_requirementMatrix();if(null!=i&&0<i.length&&"undefined"!=typeof JSON){for(var o in r=JSON.parse(i.toLowerCase()),t._sets)r.hasOwnProperty(o)&&(t._sets[o]=r[o]);var a=new p;for(var o in a._sets)r.hasOwnProperty(o)&&(t._sets[o]=r[o])}}if(h._OfficeAppFactory.getHostInfo().hostPlatform==h.HostInfoPlatform.web)try{var s="dialogorigin";!t._sets.hasOwnProperty(s)&&window.opener&&(t._sets[s]=1.1)}catch(e){}return new c(t)},d);function d(){}e.RequirementsMatrixFactory=f}(h.Requirement||(h.Requirement={}))}(OSF=OSF||{}),function(r){var e,t,n;e=r.DDA||(r.DDA={}),(t=e.RichApi||(e.RichApi={})).executeRichApiRequestAsync=function(e,t){var n={toSafeArrayHost:function(){return[e]},fromSafeArrayHost:function(e){return{data:e}},toWebHost:function(){return{ArrayData:e}},fromWebHost:function(e){return{data:e.Data}}};r._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(93,n,t)},Object.defineProperty(t,"richApiMessageManager",{get:function(){return n=n||new r.RichApiMessageManager}})}(OSF=OSF||{}),function(i){var e=(n.transferEventArgument=function(e){var t=[];if(e)for(var n=0;n<e.length;n++){var r=e[n];r.toArray&&(r=r.toArray()),t.push({messageCategory:r[0],messageType:r[1],targetId:r[2],message:r[3],id:r[4],isRemoteOverride:r[5]})}return{type:i.EventType.RichApiMessage,entries:t}},n.prototype.addHandlerAsync=function(e,t,n){i.EventHelper.addEventHandler(e,t,n,this._eventDispatch)},n.prototype.removeHandlerAsync=function(e,t,n){i.EventHelper.removeEventHandler(e,t,n,this._eventDispatch)},n.prototype.register=function(e){var r=this;return this._registerPromise||(this._registerPromise=new Office.Promise(function(t,n){r.addHandlerAsync(i.EventType.RichApiMessage,function(t){r._registerHandlers.forEach(function(e){e&&e(t)})},function(e){"failed"==e.status?n(e.error):t()})})),this._registerPromise.then(function(){r._registerHandlers.push(e)})},n);function n(){this._registerHandlers=[],this._eventDispatch=new i.EventDispatch([{type:i.EventType.RichApiMessage,id:i.EventDispId.dispidRichApiMessageEvent,getTargetId:function(){return""},fromSafeArrayHost:function(e){return n.transferEventArgument(e)},fromWebHost:function(e){var t=e.ArrayData;return n.transferEventArgument(t)}}])}i.RichApiMessageManager=e}(OSF=OSF||{}),function(n){var e=(t.prototype.execute=function(e,t,n){"undefined"!=typeof OsfOMToken&&OsfOMToken?window.external.Execute(e,t,n,OsfOMToken):window.external.Execute(e,t,n)},t.prototype.registerEvent=function(e,t,n,r,i){"undefined"!=typeof OsfOMToken&&OsfOMToken?window.external.RegisterEvent(e,n,r,i,OsfOMToken):window.external.RegisterEvent(e,n,r,i)},t.prototype.unregisterEvent=function(e,t,n,r){"undefined"!=typeof OsfOMToken&&OsfOMToken?window.external.UnregisterEvent(e,n,r,OsfOMToken):window.external.UnregisterEvent(e,n,r)},t.prototype.closeSdxDialog=function(e){throw n.Utility.createNotImplementedException()},t.prototype.resizeSdxDialog=function(e,t){throw n.Utility.createNotImplementedException()},t);function t(){}n.RichClientHostController=e}(OSF=OSF||{}),function(k){var t,e=(t=k.InitializationHelper,__extends(n,t),n.prototype.getOsfControlContext=function(){if(!this._osfControlContext){var t="Warning: Office.js is loaded outside of Office client";try{if(!window.external)return console.error("There is no window.external."),k.Utility.trace(t),null;this._osfControlContext=window.external.GetContext()}catch(e){return console.error("Error when call window.external.GetContext() :"+JSON.stringify(e)),k.Utility.trace(t),null}}return this._osfControlContext},n.prototype.getAppContext=function(e,t,n){var r=this,i=this.getOsfControlContext();if(i){var o,a,s,c,l,u,p,f,d,h,g,y,m,_,b,v,O,C,P,R,S,I,T,A,N,x,E=0,D=!1;if((j=k.Utility.externalNativeFunctionExists)(typeof i.GetContextDataInJson)&&"undefined"!=typeof OsfOMToken&&OsfOMToken?((N=i.GetContextDataInJson(OsfOMToken))&&(x=JSON.parse(N)),x?(o=x.appType,a=x.solutionRef,s=x.versionMajor,c=x.versionMinor,l=x.uiLocale,u=x.dataLocale,p=x.docUrl,f=x.clientMode,d=x.activationMode,g=x.controlType,y=x.eToken,m=x.correlationId,_=x.appInstanceId,b=x.touchEnabled,v=i.commerceAllowed,O=x.requirementMatrix,P=x.hostFullVersion,R=x.requirementMatrix,(w=x.featureGates)&&(S=JSON.parse(w)),E=x.initialDisplayMode,I=function(){var e={};if(x.settings)try{var t=JSON.parse(x.settings);if(t)for(var n=[t.names,t.values],r=n[0],i=n[1],o=0;o<r.length;o++)e[r[o]]=i[o]}catch(e){k.Utility.trace("Exception while parsing settings. Details: "+e)}return e},T=function(){var e=x.themeInfo;return r.getOfficeThemeFromInfoString(e)}):D=!0):D=!0,D){o=i.GetAppType(),a=i.GetSolutionRef(),s=i.GetAppVersionMajor(),c=i.GetAppVersionMinor(),l=i.GetAppUILocale(),u=i.GetAppDataLocale(),p=i.GetDocUrl(),f=i.GetAppCapabilities(),d=i.GetActivationMode(),g=i.GetControlIntegrationLevel();try{y=i.GetSolutionToken()}catch(e){}var j;if((j=k.Utility.externalNativeFunctionExists)(typeof i.GetCorrelationId)&&(m=i.GetCorrelationId()),j(typeof i.GetInstanceId)&&(_=i.GetInstanceId()),j(typeof i.GetTouchEnabled)&&(b=i.GetTouchEnabled()),j(typeof i.GetCommerceAllowed)&&(v=i.GetCommerceAllowed()),j(typeof i.GetSupportedMatrix)&&(O=i.GetSupportedMatrix()),j(typeof i.GetHostCustomMessage)&&(C=i.GetHostCustomMessage()),j(typeof i.GetHostFullVersion)&&(P=i.GetHostFullVersion()),j(typeof i.GetDialogRequirementMatrix)&&(R=i.GetDialogRequirementMatrix()),j(typeof i.GetFeaturesForSolution))try{var w;(w=i.GetFeaturesForSolution())&&(S=JSON.parse(w))}catch(e){k.Utility.trace("Exception while creating the SDX FeatureGates object. Details: "+e)}j(typeof i.GetInitialDisplayMode)&&(E=i.GetInitialDisplayMode()),I=function(){return r.getSerializedSettings()},T=function(){return r.getOfficeTheme()},A=function(){return r.getSerializedHostSettings()}}h=2===d?Office.InitializationReason.DocumentOpened:Office.InitializationReason.Inserted,y=y?y.toString():"",t(new k.OfficeAppContext(a,o,s,l,u,p,f,I,h,g,y,m,_,b,v,c,O,C,P,void 0,void 0,void 0,void 0,R,S,T,E,void 0,void 0,A,!1,void 0,void 0,void 0))}else n(new Error("The Office.js is loaded outside of Office client"))},n.prototype.createClientHostController=function(){if(!this._clientHostController){if(this._hostInfo.hostPlatform!==k.HostInfoPlatform.win32)throw k.Utility.createNotImplementedException();this._clientHostController=new k.Win32RichClientHostController}return this._clientHostController},n.prototype.createAsyncMethodExecutor=function(){return new k.SafeArrayAsyncMethodExecutor(this._clientHostController)},n.prototype.createClientSettingsManager=function(){return new k.RichClientSettingsManager(this.getOsfControlContext())},n.prototype.getSerializedSettings=function(){var e=this.getOsfControlContext(),t=[],n=[];"undefined"!=typeof OsfOMToken&&OsfOMToken?e.GetSettings(OsfOMToken).Read(t,n):e.GetSettings().Read(t,n);for(var r={},i=0;i<t.length;i++)r[t[i]]=n[i];return r},n.prototype.getOfficeTheme=function(){var e=this.getOsfControlContext();if(e){if(!(this.officeTheme&&this.officeThemeTimeStamp&&(new Date).getTime()-this.officeThemeTimeStamp<n.officeThemeCacheValidPeriod)){var t=e.GetOfficeThemeInfo();this.officeTheme=this.getOfficeThemeFromInfoString(t),this.officeThemeTimeStamp=(new Date).getTime()}return this.officeTheme}},n.prototype.getOfficeThemeFromInfoString=function(e){var t=null;if(e)try{t=JSON.parse(e)}catch(e){k.AppTelemetry&&k.AppTelemetry.logAppException("Exception while parsing officeThemeInfo. Details: "+e)}var n={};if(t){var r={bodyBackgroundColor:{name:"bodyBackgroundColor",convertToHex:!0},bodyForegroundColor:{name:"bodyForegroundColor",convertToHex:!0},controlBackgroundColor:{name:"controlBackgroundColor",convertToHex:!0},controlForegroundColor:{name:"controlForegroundColor",convertToHex:!0},primaryFontColor:{name:"bodyForegroundColor",convertToHex:!0},primaryBackgroundColor:{name:"bodyBackgroundColor",convertToHex:!0},secondaryFontColor:{name:"controlForegroundColor",convertToHex:!0},secondaryBackgroundColor:{name:"controlBackgroundColor",convertToHex:!0},fluentThemeData:{name:"fluentThemeData",convertToHex:!1}};for(var i in t){var o=!1,a=i;r[i]&&(a=r[i].name,o=r[i].convertToHex),n[a]=o?k.OUtil.convertIntToCssHexColor(t[i]):t[i]}}return n},n.prototype.getSerializedHostSettings=function(){var e=this.getOsfControlContext(),t=[],n=[];"function"==typeof e.GetSettings().ReadHost&&("undefined"!=typeof OsfOMToken&&OsfOMToken?e.GetSettings(OsfOMToken).ReadHost(t,n):e.GetSettings().ReadHost(t,n));for(var r={},i=0;i<t.length;i++)r[t[i]]=n[i];return r},n.officeThemeCacheValidPeriod=5e3,n);function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.officeThemeTimeStamp=null,e.officeTheme=null,e}k.RichClientInitializationHelper=e}(OSF=OSF||{}),function(e){var t=(n.prototype.read=function(i){var o,e=this._osfClientContext;function t(){var e=[],t=[];o.Read(e,t);for(var n={},r=0;r<e.length;r++)n[e[r]]=t[r];i&&i(0,n)}(o="undefined"!=typeof OsfOMToken&&OsfOMToken?e.GetSettings(OsfOMToken):e.GetSettings()).RefreshAsync?o.RefreshAsync(function(){t()}):t()},n.prototype.write=function(e,t){var n=[],r=[];for(var i in e)n.push(i),r.push(e[i]);var o,a=this._osfClientContext;void 0!==(o="undefined"!=typeof OsfOMToken&&OsfOMToken?a.GetSettings(OsfOMToken):a.GetSettings()).WriteAsync?o.WriteAsync(n,r,t):(o.Write(n,r),t(0))},n);function n(e){this._osfClientContext=e}e.RichClientSettingsManager=t}(OSF=OSF||{}),function(l){var n,e=(n=l.AsyncMethodExecutor,__extends(t,n),t.prototype.executeAsync=function(r,i,o,a){var s=this;try{var c=new Array;this._clientHostController.execute(r,i.toSafeArrayHost(),function(e,t){var n=l.Utility.fromSafeArray(e);return s._asyncMethodExecutorHelper.handleSafeArrayHostResponse(n,t,c,o,i,r,a)})}catch(e){this.onException(e,r,o)}},t.prototype.registerEventAsync=function(r,e,t,i,o,a,s){var c=this;try{this._clientHostController.registerEvent(r,e,t,function(e,t){var n=l.Utility.fromSafeArray(t),r=o.fromSafeArrayHost(n);i(r)},function(e){var t,n=l.Utility.fromSafeArray(e);return t="number"==typeof n?n:n[0],c.invokeCallback(r,a,t,null,s),!0})}catch(e){this.onException(e,r,a)}},t.prototype.unregisterEventAsync=function(i,e,t,o,a){var s=this;try{this._clientHostController.unregisterEvent(i,e,t,function(e,t){var n,r=l.Utility.fromSafeArray(e);return n="number"==typeof r?r:r[0],s.invokeCallback(i,o,n,null,a),!0})}catch(e){this.onException(e,i,o)}},t.prototype.onException=function(e,t,n){var r,i=e.number;if(i)switch(i){case-2146828218:r=7e3;break;case-2147467259:r=t==l.EventDispId.dispidDialogMessageReceivedEvent?12007:5001;break;case-2146828283:case-2147209089:r=5010;break;case-2147208704:r=5100;break;case-2146827850:default:r=5001}n&&this.invokeCallback(t,n,r||5001,null)},t);function t(e){var t=n.call(this)||this;return t._clientHostController=e,t._asyncMethodExecutorHelper=l.BootStrapExtension.createAsyncMethodExecutorHelper(t),t}l.SafeArrayAsyncMethodExecutor=e}(OSF=OSF||{}),function(e){var t=(n.prototype.getItem=function(e){try{return this._internalStorage&&this._internalStorage.getItem(e)}catch(e){return null}},n.prototype.setItem=function(e,t){try{this._internalStorage&&this._internalStorage.setItem(e,t)}catch(e){}},n.prototype.clear=function(){try{this._internalStorage&&this._internalStorage.clear()}catch(e){}},n.prototype.removeItem=function(e){try{this._internalStorage&&this._internalStorage.removeItem(e)}catch(e){}},n.prototype.getKeysWithPrefix=function(e){var t=[];try{for(var n=this._internalStorage&&this._internalStorage.length||0,r=0;r<n;r++){var i=this._internalStorage.key(r);0===i.indexOf(e)&&t.push(i)}}catch(e){}return t},n);function n(e){this._internalStorage=e}e.SafeStorage=t}(OSF=OSF||{}),function(o){var e=(t.prototype.cacheSessionSettings=function(e){var t=OSF.OUtil.getSessionStorage();if(t){var n=OSF.OUtil.serializeSettings(e),r=JSON.stringify(n);t.setItem(OSF._OfficeAppFactory.getCachedSessionSettingsKey(),r)}},t.prototype.get=function(e){var t=this._settings[e];return void 0===t?null:t},t.prototype.set=function(e,t){this._settings[e]=t,this.cacheSessionSettings(this._settings)},t.prototype.remove=function(e){delete this._settings[e],this.cacheSessionSettings(this._settings)},t.prototype.saveAsync=function(n){var e=this._clientSettingsManager,t=OSF.OUtil.serializeSettings(this._settings);e.write(t,function(e){var t=OSF.Utility.asyncResultFromErrorCode(e);n&&n(t)})},t.prototype.refreshAsync=function(r){var i=this;this._clientSettingsManager.read(function(e,t){var n=OSF.Utility.asyncResultFromErrorCode(e);n.status===o.AsyncResultStatus.Succeeded&&(i._settings=OSF.OUtil.deserializeSettings(t),n.value=i),r&&r(n)})},t.prototype.addHandlerAsync=function(e,t,n){OSF.EventHelper.addEventHandler(e,t,n,this._eventDispatch)},t.prototype.removeHandlerAsync=function(e,t,n){OSF.EventHelper.removeEventHandler(e,t,n,this._eventDispatch)},t.prototype.toJSON=function(){return this._settings},t);function t(e,t){var n=this;this._clientSettingsManager=t,e=e||{},this._settings=e,this._eventDispatch=new OSF.EventDispatch([{id:OSF.EventDispId.dispidSettingsChangedEvent,type:OSF.EventType.SettingsChanged,getTargetId:function(){return""},fromSafeArrayHost:function(e){return{type:OSF.EventType.SettingsChanged,settings:n}},fromWebHost:function(e){return{type:OSF.EventType.SettingsChanged,settings:n}}}])}o.Settings=e}(Office=Office||{});var OSFWebkit,OTel,Microsoft,__awaiter=this&&this.__awaiter||function(o,a,s,c){return new(s=s||Promise)(function(e,t){function n(e){try{i(c.next(e))}catch(e){t(e)}}function r(e){try{i(c.throw(e))}catch(e){t(e)}}function i(t){t.done?e(t.value):new s(function(e){e(t.value)}).then(n,r)}i((c=c.apply(o,a||[])).next())})},__generator=this&&this.__generator||function(n,r){var i,o,a,e,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return e={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,o&&(a=2&t[0]?o.return:t[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,t[1])).done)return a;switch(o=0,a&&(t=[2&t[0],a.value]),t[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,o=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=r.call(n,s)}catch(e){t=[6,e],o=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}};!function(c){var e=(t.isSovereignVersion=function(){return"undefined"!=typeof isOsfSovereignVersion&&!0===isOsfSovereignVersion},t.prototype.getEnvironmentName=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return[4,this.getConfig()];case 1:return[2,null!=(t=e.sent())&&t.envName?t.envName:null]}})})},t.prototype.getEnvironmentType=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return[4,this.getConfig()];case 1:return[2,null!=(t=e.sent())&&t.envType?t.envType:null]}})})},t.prototype.getTrustedHostOrigins=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return[4,this.getConfig()];case 1:return[2,null!=(t=e.sent())?t.trustedHostOrigins:null]}})})},t.prototype.isConfigAvailable=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return[4,this.getConfig()];case 1:return[2,!!e.sent()]}})})},t.prototype.isSovereignHostTrusted=function(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return n?n===window.location.hostname?[2,!0]:[4,this.getTrustedHostOrigins()]:[2,!1];case 1:return(t=e.sent())&&0!=t.length?[2,new RegExp(t.join("|")).test(n)]:[2,!1]}})})},t.prototype.getConfigPath=function(){var e=c.LoadScriptHelper.getHostBundleJsBasePath();if(e){var t=(e=e.toLowerCase()).indexOf("/lib/");if(-1<t)return e.toLowerCase().substring(0,t+"/lib/".length)+"officeconfig.json"}return""},t.prototype.getConfig=function(){return this._configPromise||(this._configPromise=this.tryLoadConfig()),this._configPromise},t.prototype.tryLoadConfig=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o,a,s;return __generator(this,function(e){switch(e.label){case 0:if(!(t=this.getConfigPath()))return[3,2];if(n=c.OUtil.getLocalStorage(),r=t+"_cache",i=n.getItem(r),o=null,i){try{o=JSON.parse(i)}catch(e){}if(a=(new Date).getTime(),o&&o.config&&o.createTime<=a&&o.createTime+864e5>=a)return[2,o.config]}return[4,this.downloadConfig(t)];case 1:return(s=e.sent())?(o={createTime:(new Date).getTime(),config:s},n.setItem(r,JSON.stringify(o))):o&&(s=o.config),[2,s];case 2:return[2,null]}})})},t.prototype.downloadConfig=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),[4,fetch(t)];case 1:return[4,e.sent().json()];case 2:return[2,e.sent()];case 3:return e.sent(),[3,4];case 4:return[2,null]}})})},t);function t(){}c.SovereignHelper=e}(OSF=OSF||{}),function(e){var t;function n(e){return void 0===e||null===e}(t=e.Utility||(e.Utility={})).createParameterException=function(e){return new Error("Parameter count mismatch: "+e)},t.createArgumentException=function(e){return new Error("Invalid argument "+e)},t.createNotImplementedException=function(){return new Error("Not implemented yet")},t.log=function(e){console.log(e)},t.trace=function(e){console.log(e)},t.debugLog=function(e){console.log(e)},t.getQueryStringValue=function(e){if("undefined"!=typeof window&&window.location&&window.location.search){var t=new RegExp("[?&]"+e+"=([^&]*)").exec(window.location.search);if(t)return t[1]}return null},t.isNullOrUndefined=n,t.isNullOrEmpty=function(e){return!!n(e)||0===e.length},t.isInUnittest=function(){return"boolean"==typeof g_osfUnittest&&g_osfUnittest}}(OSF=OSF||{}),function(e){var n;function t(e){return new Promise(e)}function o(e){var t=e,n=1;if(("object"==typeof e||"unknown"==typeof e)&&null!=e&&e.toArray)if(e.dimensions&&(n=e.dimensions()),2===n)t=a(e);else{var r=e.toArray();t=new Array(r.length);for(var i=0;i<r.length;i++)t[i]=o(r[i])}return t}function a(e){var t;try{var n=e.ubound(1),r=e.ubound(2);if(e=e.toArray(),1==n&&1==r)t=[e];else{t=[];for(var i=0;i<n;i++){for(var o=[],a=0;a<r;a++){var s=e[i*r+a];"{66e7831f-81b2-42e2-823c-89e872d541b3}"!=s&&o.push(s)}0<o.length&&t.push(o)}}}catch(e){}return t}e.isOfficeReactNative=function(){try{return"undefined"!=typeof OfficePlatformGlobal&&void 0!==OfficePlatformGlobal.ReactNativeReka}catch(e){return!1}},(n=e.Utility||(e.Utility={})).xdmDebugLog=function(e){n._DebugXdm&&console.log(e)},n.enableDebugXdm=function(){n._DebugXdm=!0},n.createPromiseFromResult=function(e){return Promise.resolve(e)},n.createPromise=t,n.promisify=function(e,r){return t(function(t,n){e(function(e){(0===e?t:n)()}),setTimeout(function(){n()},r)})},n.compareVersions=function(e,t){var n,r=e.split("."),i=t.split(".");for(n in r){if(parseInt(r[n])<parseInt(i[n]))return!1;if(parseInt(r[n])>parseInt(i[n]))return!0}return!1},n.getErrorCodeFromAsyncResult=function(e){return e.status===Office.AsyncResultStatus.Succeeded?0:e.error&&e.error.code?e.error.code:5001},n.externalNativeFunctionExists=function(e){return"unknown"===e||"undefined"!==e},n.stringEndsWith=function(e,t){if(n.isNullOrUndefined(e))throw n.createArgumentException("value");if(n.isNullOrUndefined(t))throw n.createArgumentException("subString");return!(t.length>e.length)&&e.substr(e.length-t.length)===t},n.fromSafeArray=function(e){var t=e;if(("object"==typeof e||"unknown"==typeof e)&&null!=e&&e.toArray){var n=e.toArray();t=new Array(n.length);for(var r=0;r<n.length;r++)t[r]=o(n[r])}return t},n.twoDVBArrayToJaggedArray=a,n.asyncResultFromErrorCode=function(e){return Array.isArray(e)&&1===e.length&&(e=e[0]),0===e?{status:Office.AsyncResultStatus.Succeeded}:{status:Office.AsyncResultStatus.Failed,error:{code:e}}},n._DebugXdm=!1}(OSF=OSF||{}),function(n){var r,e=(r=n.AsyncMethodExecutor,__extends(t,r),t.prototype.executeAsync=function(n,r,i,o){var a=this;this._clientHostController.execute(n,r.toWebHost(),function(e,t){return i&&a._asyncMethodExecutorHelper.handleWebHostResponse(t,e,i,r,n,o),!0})},t.prototype.registerEventAsync=function(n,e,t,r,i,o,a){var s=this;this._clientHostController.registerEvent(n,e,t,function(e){var t=e,n=i.fromWebHost(t);r(n)},function(e,t){return o&&s.invokeCallback(n,o,e,null,a),!0})},t.prototype.unregisterEventAsync=function(n,e,t,r,i){var o=this;this._clientHostController.unregisterEvent(n,e,t,function(e,t){return r&&o.invokeCallback(n,r,e,null,i),!0})},t);function t(e){var t=r.call(this)||this;return t._clientHostController=e,t._asyncMethodExecutorHelper=n.BootStrapExtension.createAsyncMethodExecutorHelper(t),t}n.WebAsyncMethodExecutor=e}(OSF=OSF||{}),function(u){var e;((e=u.DDA||(u.DDA={})).WebAuth||(e.WebAuth={})).getAuthContextAsync=function(e){u._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(99,{toSafeArrayHost:function(){return[]},fromSafeArrayHost:function(e){return null},toWebHost:function(){return{}},fromWebHost:function(e){return e.authContext}},e)},function(a){var s,e;(e=s=a.AuthFlow||(a.AuthFlow={})).AuthCode="authcode",e.Broker="broker",e.Implicit="implicit",a.loadAttempts=0;var i="webauth/",o="webauth.browserauth.debug.js",c="webauth.browserauth.js",l=!1;a.load=function(){return a.config&&a.config.authFlow===s.AuthCode?(a.loadAttempts++,(l=a.config&&(!0===a.config.useMsal3||!1!==a.config.useMsal3&&u.OUtil.checkFlight(u.FlightTreatmentNames.EnableMsal3SsoApi)))&&(o="webauth.browserauth.msal3.debug.js",c="webauth.browserauth.msal3.js"),new Promise(function(t,n){function e(o,a,s){return new Promise(function(r,i){o?u.OUtil.loadScript(o,function(e){if("boolean"!=typeof e||e)if(e instanceof Event&&e)i(new Event("loadScript: "+e.type+" '"+o+"'"));else if(s&&!a())var t=0,n=setInterval(function(){t+=500,!(a()||s<t)||(clearInterval(n),a())||i(new Event("Missing expected object after loaded."))},500);else r(null);else i(new Event("loadScript: failed to load '"+o+"'"))},u.LoadScriptHelper.getTrustedTypesPolicy(),s):r(null)})}var r=[e(a.config&&a.config.authVersion?u.LoadScriptHelper.getHostBundleJsBasePath()+i+a.config.authVersion+"/"+(a.config&&a.config.debugging?o:c):u.LoadScriptHelper.getHostBundleJsBasePath()+i+(a.config&&a.config.debugging?o:c),function(){return BrowserAuth},a.config.delayWebAuth)];l||r.push(e(a.config.msal,function(){return msal},a.config.delayMsal)),Promise.all(r).then(function(){a.config?BrowserAuth.Load(a.config,u._OfficeAppFactory.getHostInfo().osfControlAppCorrelationId).then(function(e){t(e)},function(e){n(e)}):n(new Event("config is empty."))},function(e){n(e)})})):new Promise(function(e,t){return t(new Event("'authcode' as authFlow is only supported"))})},a.getToken=function(e,t,n,r,i,o){return a.config&&a.config.authFlow===s.AuthCode?l?BrowserAuth.GetToken({resource:e,scopes:t,applicationId:n,correlationId:r,popup:!!i,claims:o}):BrowserAuth.GetToken(e,n,r,!!i,!!i,!1,o):Promise.reject(new Event("'authcode' as authFlow is only supported"))}}(u.WebAuth||(u.WebAuth={}))}(OSF=OSF||{}),function(s){var e=(t.prototype.execute=function(r,e,i){var o=this,t=this._webClientHostControllerHelper.getHostCallArgs(r,e),n=this._webClientHostControllerHelper.getTargetMethodName(r);this._webAppState.clientEndPoint.invoke(n,function(e,t){var n=0;if(0==e)o._delegateVersion=t.Version,n=o._webClientHostControllerHelper.parseErrorFromPayload(r,t);else switch(e){case-5:n=7e3;break;default:n=5001}i&&i(n,t)},t)},t.prototype.registerEvent=function(e,t,n,r,i){this._webAppState.clientEndPoint.registerForEvent(this.getXdmEventName(n,t),function(e){r&&r(e)},this._getOnAfterRegisterEvent(!0,e,i),{controlId:this._webAppState.id,eventDispId:e,targetId:n,__timeout__:-1})},t.prototype.unregisterEvent=function(e,t,n,r){this._webAppState.clientEndPoint.unregisterForEvent(this.getXdmEventName(n,t),this._getOnAfterRegisterEvent(!1,e,r),{controlId:this._webAppState.id,eventDispId:e,targetId:n,__timeout__:-1})},t.prototype.messageParent=function(e){throw s.Utility.createNotImplementedException()},t.prototype.openDialog=function(e,t,n,r,i){throw s.Utility.createNotImplementedException()},t.prototype.closeDialog=function(e,t,n,r){throw s.Utility.createNotImplementedException()},t.prototype.sendMessage=function(e){throw s.Utility.createNotImplementedException()},t.prototype.closeSdxDialog=function(e){this._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[this._webAppState.id,s.AgaveHostAction.CloseSDXDialog,{InstanceId:this._webAppState.id,DialogCloseCallbackParam:e}])},t.prototype.resizeSdxDialog=function(e,t){this._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[this._webAppState.id,s.AgaveHostAction.ResizeSDXDialog,{InstanceId:this._webAppState.id,DialogWidth:e+"px",DialogHeight:t+"px"}])},t.prototype.getXdmEventName=function(e,t){return t==s.EventType.BindingSelectionChanged||t==s.EventType.BindingDataChanged||t==s.EventType.DataNodeDeleted||t==s.EventType.DataNodeInserted||t==s.EventType.DataNodeReplaced?e+"_"+t:t},t.prototype._getOnAfterRegisterEvent=function(r,i,o){var a=(new Date).getTime();return function(e,t){var n;if(0!=e)switch(e){case-5:n=7e3;break;default:n=5001}else n=t?t.Error?t.Error:0:5001;o&&o(n),s.AppTelemetry&&s.AppTelemetry.onRegisterDone(r,i,Math.abs((new Date).getTime()-a),n)}},t);function t(e){this._delegateVersion=1,this._webAppState=e,this._webClientHostControllerHelper=s.BootStrapExtension.createWebClientHostControllerHelper(this._webAppState,this._delegateVersion)}s.WebClientHostController=e}(OSF=OSF||{}),function(e){var t=(n.prototype.getHostCallArgs=function(e,t){var n=t;return(n=n||{}).DdaMethod={ControlId:this.getControlId(),DispatchId:e,Version:this._delegateVersion},n.__timeout__=-1,n},n.prototype.getTargetMethodName=function(e){return"executeMethod"},n.prototype.parseErrorFromPayload=function(e,t){return t.Error},n.prototype.getControlId=function(){return this._webAppState.id},n);function n(e,t){this._webAppState=e,this._delegateVersion=t}e.WebClientHostControllerHelper=t}(OSF=OSF||{}),function(s){var e=(t.prototype.read=function(o){s._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(75,{toSafeArrayHost:function(){return[]},fromSafeArrayHost:function(e){return null},toWebHost:function(){return{}},fromWebHost:function(e){return e.Properties.Settings}},function(e){if(e.status===Office.AsyncResultStatus.Succeeded){for(var t={},n=0;n<e.value.length;n++){var r=e.value[n];Array.isArray(r)?t[r[0]]=r[1]:t[r.Name]=r.Value}o(0,t)}else{var i=e.error.code;o(i,{})}})},t.prototype.write=function(e,n){var t=s._OfficeAppFactory.getAsyncMethodExecutor(),r=[];for(var i in e){var o=[];o.push(i),o.push(e[i]),r.push(o)}var a={toSafeArrayHost:function(){return null},fromSafeArrayHost:function(e){return null},toWebHost:function(){return{DdaSettingsMethod:{OverwriteIfStale:!0,Properties:r}}},fromWebHost:function(e){return null}};t.executeAsync(76,a,function(e){if(e.status===Office.AsyncResultStatus.Succeeded)n(0);else{var t=e.error.code;n(t)}})},t);function t(){}s.WebClientSettingsManager=e}(OSF=OSF||{}),function(v){var o,e=(o=v.InitializationHelper,__extends(t,o),Object.defineProperty(t.prototype,"isHostOriginTrusted",{get:function(){return this._isHostOriginTrustedFunc},set:function(e){this._isHostOriginTrustedFunc=e},enumerable:!0,configurable:!0}),t.prototype.saveAndSetDialogInfo=function(e){var t,n=v.OUtil.getSessionStorage();if(n){if((e=e||v.OUtil.parseHostInfoFromWindowName(!0,v._OfficeAppFactory.getWindowName()))&&-1<e.indexOf("isDialog")){var r=(t=v.OUtil.parseXdmInfo(!0))?t.split("|")[1]:null;return null!=r&&n.setItem(r+"IsDialog","true"),void(this._hostInfo.isDialog=!0)}this._hostInfo.isDialog=null!=n.getItem(v.OUtil.getXdmFieldValue("AppId",!1)+"IsDialog")}},t.prototype.checkReceiverOriginAndRun=function(p){return __awaiter(this,void 0,void 0,function(){var a,t,s,c,l,n,r,i,o,u;return __generator(this,function(e){switch(e.label){case 0:return 3===(a=this)._webAppState.clientEndPoint.hostTrustCheckStatus?(p(),[2]):(t=v.OUtil.parseUrl(a._webAppState.clientEndPoint.targetUrl,!1),s="https:"==t.protocol,c=t.hostname,l="NotHttps",0!==a._webAppState.clientEndPoint.hostTrustCheckStatus?[3,4]:(s||(a._webAppState.clientEndPoint.hostTrustCheckStatus=2),2==a._webAppState.clientEndPoint.hostTrustCheckStatus?[3,4]:(n=!1,(r=v.SovereignHelper.isSovereignVersion())&&!0!==v.OUtil.getCustomOfficeInitializationSettings().trustAllCloudEnvironments||(n=v.XdmCommunicationManager.isHostNameValidWacDomain(c),a.isHostOriginTrusted&&(n=n||a.isHostOriginTrusted(c))),n||!r?[3,3]:(a._sovereignHelper||(a._sovereignHelper=new v.SovereignHelper),[4,(i=a._sovereignHelper).isConfigAvailable()]))));case 1:return e.sent()?[4,i.isSovereignHostTrusted(c)]:[2];case 2:n=e.sent(),e.label=3;case 3:n&&(a._webAppState.clientEndPoint.hostTrustCheckStatus=3),e.label=4;case 4:if(a._webAppState.clientEndPoint.checkStatusLogged||null==a._hostInfo||void 0===a._hostInfo||(v.AppTelemetry.onCheckWACHost(a._webAppState.clientEndPoint.hostTrustCheckStatus,a._webAppState.id,a._hostInfo.hostType,a._hostInfo.hostPlatform,a._webAppState.clientEndPoint.targetUrl),a._webAppState.clientEndPoint.checkStatusLogged=!0),3===a._webAppState.clientEndPoint.hostTrustCheckStatus||v.LoadScriptHelper.disableHostCheck())p();else{if(v.LoadScriptHelper.isSdx())throw new Error("Not supported host");o=function(){var t=v.LoadScriptHelper.getHostBundleJsBasePath().match(/^https?:\/\/[^:/?#]*(?::([0-9]+))?/);if(t&&t[0]){var n=v.LoadScriptHelper.getHostBundleJsBasePath()+"AgaveErrorUX/index.html#",r={error:"NotTrustedWAC",locale:v.getSupportedLocale(a._hostInfo.hostLocale,v.ConstantNames.DefaultLocale),hostname:c,noHttps:!s,validate:!1},i=document.createElement("iframe");i.style.visibility="hidden",i.style.height="0",i.style.width="0";var o=function(e){if(e.source==i.contentWindow&&e.origin==t[0])try{!0===JSON.parse(e.data).hostUserTrusted?(a._webAppState.clientEndPoint.hostTrustCheckStatus=3,v.OUtil.removeEventListener(window,"message",o),document.body.removeChild(i)):(r.validate=!1,window.location.replace(n+encodeURIComponent(JSON.stringify(r)))),p()}catch(e){v.OUtil.ensureOfficeStringsJs().then(function(){document.body.textContent=Strings.OfficeOM.L_NotTrustedWAC})}};v.OUtil.addEventListener(window,"message",o),r.validate=!0,i.setAttribute("src",n+encodeURIComponent(JSON.stringify(r))),i.onload=function(){var e={hostname:c,noHttps:!s};i.contentWindow.postMessage(JSON.stringify(e),t[0])},document.body.appendChild(i)}else v.OUtil.ensureOfficeStringsJs().then(function(){document.body.textContent=Strings.OfficeOM.L_NotTrustedWAC});if(v.OUtil.checkFlight(2)&&!s)throw new Error(l)},document.body?o():(u=!1,document.addEventListener("DOMContentLoaded",function(){u||(u=!0,o())}))}return[2]}})})},t.prototype.setAgaveHostCommunication=function(){try{var i=this,e=v.OUtil.parseXdmInfoWithGivenFragment(!1,v._OfficeAppFactory.getWindowLocationHash());if(e=e||v.OUtil.parseXdmInfoFromWindowName(!1,v._OfficeAppFactory.getWindowName())){var t=v.OUtil.getInfoItems(e);null!=t&&3<=t.length&&(i._webAppState.conversationID=t[0],i._webAppState.id=t[1],i._webAppState.webAppUrl=0<=t[2].indexOf(":")?t[2]:decodeURIComponent(t[2]))}if(i._webAppState.wnd=null!=window.opener?window.opener:window.parent,this._hostInfo.isDialog&&null!=window.opener)return;i._webAppState.clientEndPoint=v.XdmCommunicationManager.connect(i._webAppState.conversationID,i._webAppState.wnd,i._webAppState.webAppUrl),i._webAppState.serviceEndPoint=v.XdmCommunicationManager.createServiceEndPoint(i._webAppState.id),i._webAppState.clientEndPoint.checkReceiverOriginAndRun=function(e){i.checkReceiverOriginAndRun(e)};var n=i._webAppState.conversationID+v.Constants.NotificationConversationIdSuffix;i._webAppState.serviceEndPoint.registerConversation(n,i._webAppState.webAppUrl),i._webAppState.serviceEndPoint.registerMethod("Office_notifyAgave",function(e){var t;switch(t="string"==typeof e?e:e[0]){case v.AgaveHostAction.Select:i._webAppState.focused=!0;break;case v.AgaveHostAction.UnSelect:i._webAppState.focused=!1;break;case v.AgaveHostAction.TabIn:case v.AgaveHostAction.CtrlF6In:window.focus();var n=document.querySelectorAll(i._tabbableElements);v.OUtil.focusToFirstTabbable(n,!1)||(window.blur(),i._webAppState.focused=!1,i._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[i._webAppState.id,v.AgaveHostAction.ExitNoFocusable]));break;case v.AgaveHostAction.TabInShift:window.focus(),n=document.querySelectorAll(i._tabbableElements),v.OUtil.focusToFirstTabbable(n,!0)||(window.blur(),i._webAppState.focused=!1,i._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[i._webAppState.id,v.AgaveHostAction.ExitNoFocusableShift]));break;case v.AgaveHostAction.SendMessage:if(Office.context.messaging.onMessage){var r=e[1];Office.context.messaging.onMessage(r)}break;case v.AgaveHostAction.TaskPaneHeaderButtonClicked:Office.context.ui.taskPaneAction.onHeaderButtonClick&&Office.context.ui.taskPaneAction.onHeaderButtonClick();break;default:v.Utility.trace("actionId "+t+" notifyAgave is wrong.")}},0,!1),i.addOrRemoveEventListenersForWindow(!0)}catch(e){throw v.AppTelemetry&&v.AppTelemetry.logAppException("Exception thrown in setAgaveHostCommunication. Exception:["+e+"]"),e}},t.prototype.getAppContext=function(e,y,m){function t(e,t){if(OSFPerformance.getAppContextXdmEnd=OSFPerformance.now(),t._appName===v.AppName.ExcelWebApp){for(var n=0,r=t._settings;n<r.length;n++){var i=r[n],o=i[0],a=i[1];_._serializedSettings[o]=a}for(var s=0,c=t._hostSettings;s<c.length;s++){var l=c[s];o=l[0],a=l[1],_._serializedHostSettings[o]=a}}else _._serializedSettings=t._settings||{},_._serializedHostSettings=t._hostSettings||{};if(!b._hostInfo.isDialog||null==window.opener){var u=window.location.href;b._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[b._webAppState.id,v.AgaveHostAction.UpdateTargetUrl,u])}if(0===e&&null!=t._id&&null!=t._appName&&null!=t._appVersion&&null!=t._appUILocale&&null!=t._dataLocale&&null!=t._docUrl&&null!=t._clientMode&&null!=t._reason){var p=(b._appContext=t)._appInstanceId?t._appInstanceId:t._id,f=0;null!=t._appMinorVersion&&(f=t._appMinorVersion);var d=void 0;null!=t._requirementMatrix&&(d=t._requirementMatrix),t.eToken=t.eToken?t.eToken:"";var h=new v.OfficeAppContext(t._id,t._appName,t._appVersion,t._appUILocale,t._dataLocale,t._docUrl,t._clientMode,function(){return _._serializedSettings},t._reason,t._osfControlType,t._eToken,t._correlationId,p,!1,!0,f,d,t._hostCustomMessage,t._hostFullVersion,t._clientWindowHeight,t._clientWindowWidth,t._addinName,t._appDomains,t._dialogRequirementMatrix,t._featureGates,t._officeTheme,t._initialDisplayMode,t._isFromWacAutomation,t._wopiHostOriginForSingleSignOn,function(){return _._serializedHostSettings},!0,t._nestedAppAuthBridgeType,t._partitionKey,t._topFrameOrigin);h.set_taskpaneUrl(t._taskpaneUrl),y(h)}else{var g="Function ContextActivationManager_getAppContextAsync call failed. ErrorCode is "+e+", exception: "+t;v.AppTelemetry&&v.AppTelemetry.logAppException(g),m(g)}}var _=this,b=this;try{var n=!0;this._hostInfo.isDialog&&null!=window.opener&&(n=!1);var r=v.OUtil.parseAppContextFromWindowName(n,v._OfficeAppFactory.getWindowName());r?t(0,r):(OSFPerformance.getAppContextXdmStart=OSFPerformance.now(),this._webAppState.clientEndPoint.invoke("ContextActivationManager_getAppContextAsync",t,this._webAppState.id))}catch(e){v.AppTelemetry&&v.AppTelemetry.logAppException("Exception thrown when trying to invoke getAppContextAsync. Exception:["+e+"]"),m(e)}},t.prototype.createClientHostController=function(){return this._clientHostController||(this._clientHostController=new v.WebClientHostController(this._webAppState)),this._clientHostController},t.prototype.createAsyncMethodExecutor=function(){return new v.WebAsyncMethodExecutor(this._clientHostController)},t.prototype.createClientSettingsManager=function(){return new v.WebClientSettingsManager},t.prototype.addOrRemoveEventListenersForWindow=function(e){function t(){o._webAppState.focused||(o._webAppState.focused=!0),o._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,v.AgaveHostAction.Select])}function n(){v&&(o._webAppState.focused&&(o._webAppState.focused=!1),o._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,v.AgaveHostAction.UnSelect]))}function r(e){if(e.preventDefault=e.preventDefault||function(){e.returnValue=!1},117==e.keyCode&&(e.ctrlKey||e.metaKey)){e.preventDefault();var t=v.AgaveHostAction.CtrlF6Exit;e.shiftKey&&(t=v.AgaveHostAction.CtrlF6ExitShift),o._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,t])}else if(9==e.keyCode){e.preventDefault();var n=document.querySelectorAll(o._tabbableElements);v.OUtil.focusToNextTabbable(n,e.target||e.srcElement,e.shiftKey)||(o._hostInfo.isDialog?v.OUtil.focusToFirstTabbable(n,e.shiftKey):e.shiftKey?o._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,v.AgaveHostAction.TabExitShift]):o._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,v.AgaveHostAction.TabExit]))}else if(27==e.keyCode)e.preventDefault(),o._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,v.AgaveHostAction.EscExit]);else if(113==e.keyCode)e.preventDefault(),o._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,v.AgaveHostAction.F2Exit]);else if((e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)&&1<=e.keyCode&&e.keyCode<=255){var r={keyCode:e.keyCode,shiftKey:e.shiftKey,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey};o._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,v.AgaveHostAction.KeyboardShortcuts,r])}}function i(e){117==e.keyCode&&e.ctrlKey&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}var o=this;v.Utility._DebugXdm||(e?(v.OUtil.addEventListener(window,"focus",t),v.OUtil.addEventListener(window,"blur",n),v.OUtil.addEventListener(window,"keydown",r),v.OUtil.addEventListener(window,"keypress",i)):(v.OUtil.removeEventListener(window,"focus",t),v.OUtil.removeEventListener(window,"blur",n),v.OUtil.removeEventListener(window,"keydown",r),v.OUtil.removeEventListener(window,"keypress",i)))},t.prototype.getTabbableElements=function(){return this._tabbableElements},t.prototype.setupNestedAppAuthDependencies=function(){var e=this;window.__initializeNestedAppAuth=function(){return e._initializeNestedAppAuthPromise||(e._initializeNestedAppAuthPromise=__awaiter(e,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return[4,Office.onReadyInternal()];case 1:return e.sent(),this._createNaaBridge?[4,this._createNaaBridge()]:[3,3];case 2:e.sent(),e.label=3;case 3:return[2]}})})),e._initializeNestedAppAuthPromise}},t);function t(e,t,n,r){var i=o.call(this,e,t,n,r)||this;return i._serializedSettings={},i._serializedHostSettings={},i._initializeNestedAppAuthPromise=null,i._appContext={},i._tabbableElements="a[href]:not([tabindex='-1']),area[href]:not([tabindex='-1']),button:not([disabled]):not([tabindex='-1']),input:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),textarea:not([disabled]):not([tabindex='-1']),*[tabindex]:not([tabindex='-1']),*[contenteditable]:not([disabled]):not([tabindex='-1'])",i}v.WebInitializationHelper=e}(OSF=OSF||{}),function(a){var e=(t.prototype.read=function(n){this._initializationHelper.getAppContext(null,function(e){if(n){var t=e.get_settingsFunc()();n(0,t)}},function(e){n&&n(5001,{})})},t.prototype.write=function(e,t){var n={},r=[],i=[];for(var o in e)r.push(o),i.push(e[o]);n.keys=r,n.values=i,this._scriptMessager.invokeMethod(a.Webkit.MessageHandlerName,a.Webkit.MethodId.WriteSettings,n,function(e){t&&t(e[0])})},t);function t(e,t){this._initializationHelper=e,this._scriptMessager=t}a.WebkitClientSettingsManager=e}(OSF=OSF||{}),function(d){!function(e){var t,n;e.MessageHandlerName="Agave",e.PopupMessageHandlerName="WefPopupHandler",(t=e.AppContextProperties||(e.AppContextProperties={}))[t.Settings=0]="Settings",t[t.SolutionReferenceId=1]="SolutionReferenceId",t[t.AppType=2]="AppType",t[t.MajorVersion=3]="MajorVersion",t[t.MinorVersion=4]="MinorVersion",t[t.RevisionVersion=5]="RevisionVersion",t[t.APIVersionSequence=6]="APIVersionSequence",t[t.AppCapabilities=7]="AppCapabilities",t[t.APPUILocale=8]="APPUILocale",t[t.AppDataLocale=9]="AppDataLocale",t[t.BindingCount=10]="BindingCount",t[t.DocumentUrl=11]="DocumentUrl",t[t.ActivationMode=12]="ActivationMode",t[t.ControlIntegrationLevel=13]="ControlIntegrationLevel",t[t.SolutionToken=14]="SolutionToken",t[t.APISetVersion=15]="APISetVersion",t[t.CorrelationId=16]="CorrelationId",t[t.InstanceId=17]="InstanceId",t[t.TouchEnabled=18]="TouchEnabled",t[t.CommerceAllowed=19]="CommerceAllowed",t[t.RequirementMatrix=20]="RequirementMatrix",t[t.HostCustomMessage=21]="HostCustomMessage",t[t.HostFullVersion=22]="HostFullVersion",t[t.InitialDisplayMode=23]="InitialDisplayMode",t[t.FeatureGates=24]="FeatureGates",t[t.HostSettings=25]="HostSettings",t[t.OfficeThemeInfo=26]="OfficeThemeInfo",(n=e.MethodId||(e.MethodId={}))[n.Execute=1]="Execute",n[n.RegisterEvent=2]="RegisterEvent",n[n.UnregisterEvent=3]="UnregisterEvent",n[n.WriteSettings=4]="WriteSettings",n[n.GetContext=5]="GetContext",n[n.SendMessage=6]="SendMessage",n[n.MessageParent=7]="MessageParent",n[n.SendMessage2=8]="SendMessage2",n[n.MessageParent2=9]="MessageParent2",n[n.CloseSdxDialog=10]="CloseSdxDialog",n[n.ResizeSdxDialog=11]="ResizeSdxDialog";var r=(f.prototype.execute=function(e,t,i){var n={id:e,apiArgs:t};this.hostScriptProxy.invokeMethod(d.Webkit.MessageHandlerName,d.Webkit.MethodId.Execute,n,function(e){if(i){var t=[];if(d.OUtil.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];d.OUtil.isArray(r)&&(r=new d.WebkitSafeArray(r)),t.unshift(r)}return i.apply(null,t)}})},f.prototype.registerEvent=function(e,t,n,r,i){this.hostScriptProxy.registerEvent(d.Webkit.MessageHandlerName,d.Webkit.MethodId.RegisterEvent,e,n,function(e){var t=e,n=0;d.OUtil.isArray(e)&&2<=e.length&&(t=e[0],n=e[1]),r&&r(n,new d.WebkitSafeArray(t))},function(e){if(i)return i(new d.WebkitSafeArray(e))})},f.prototype.unregisterEvent=function(e,t,n,r){this.hostScriptProxy.unregisterEvent(d.Webkit.MessageHandlerName,d.Webkit.MethodId.UnregisterEvent,e,n,function(e){return r(new d.WebkitSafeArray(e))})},f.prototype.messageParent=function(e){var t,n;if(n=this.osfSupportsDialogOrigin&&e[d.ParameterNames.TargetOrigin]?(t=this.useFullDialogAPI?JSON.stringify(e):e[d.ParameterNames.MessageToParent],d.Webkit.MethodId.MessageParent2):(t=e[d.ParameterNames.MessageToParent],d.Webkit.MethodId.MessageParent),this.useFullDialogAPI)this.hostScriptProxy.invokeMethod(d.Webkit.MessageHandlerName,n,t,null);else{var r={dialogMessage:{messageType:0,messageContent:t}},i=n==d.Webkit.MethodId.MessageParent2?e[d.ParameterNames.TargetOrigin]:window.location.origin;window.opener.postMessage(JSON.stringify(r),i)}},f.prototype.openDialog=function(n,e,t,r,i){if(this.useFullDialogAPI)this.registerEvent(n,e,t,r,i);else if(!f.popup||f.popup.closed){f.OpenDialogCallback=void 0;var o=JSON.parse(t),a=o.url;if(a){var s=a.split("#"),c="?";-1<s[0].indexOf("?")&&(c="&");var l="width="+screen.width*o.width/100+", height="+screen.height*o.height/100;s[0]=s[0].concat(c).concat("action=displayDialog");var u=s.join("#");f.popup=window.open(u,"",l),f.DialogEventListener=function(t){if(t.origin==window.location.origin)try{var e=JSON.parse(t.data);e.dialogMessage&&r(n,[0,e.dialogMessage.messageContent,t.origin])}catch(e){d.Utility.trace("messages received cannot be handlered. Message:"+t.data)}},f.OpenDialogCallback=function(e){0==e&&(window.addEventListener("message",f.DialogEventListener),f.interval=window.setInterval(p,1e3),f.NotifyError=function(e){r(n,[e])}),i(e)}}else i(12003)}else i(12007);function p(){try{null!=f.popup&&!f.popup.closed||(window.clearInterval(f.interval),window.removeEventListener("message",f.DialogEventListener),f.NotifyError=null,f.popup=null,r(n,[12006]))}catch(e){d.Utility.trace("Error happened when popup window closed.")}}},f.prototype.closeDialog=function(e,t,n,r){this.useFullDialogAPI?this.unregisterEvent(e,t,n,r):f.popup?(f.interval&&window.clearInterval(f.interval),f.popup.close(),f.popup=null,window.removeEventListener("message",f.DialogEventListener),f.NotifyError=null,r(0)):r(5001)},f.prototype.sendMessage=function(e){var t,n;this.osfSupportsDialogOrigin&&e[d.ParameterNames.TargetOrigin]?(t=JSON.stringify(e),n=d.Webkit.MethodId.SendMessage2):(t=e[d.ParameterNames.MessageContent],n=d.Webkit.MethodId.SendMessage,!isNaN(parseFloat(t))&&isFinite(t)&&(t=t.toString())),this.hostScriptProxy.invokeMethod(d.Webkit.MessageHandlerName,n,t,null)},f.prototype.closeSdxDialog=function(e){var t=[e],n=d.Webkit.MethodId.CloseSdxDialog;this.hostScriptProxy.invokeMethod(d.Webkit.MessageHandlerName,n,t,null)},f.prototype.resizeSdxDialog=function(e,t){var n=[e,t],r=d.Webkit.MethodId.ResizeSdxDialog;this.hostScriptProxy.invokeMethod(d.Webkit.MessageHandlerName,r,n,null)},f);function f(e){this.hostScriptProxy=e,this.useFullDialogAPI=!!window._enableFullDialogAPI,this.osfSupportsDialogOrigin=!!window._osfEnableDialogOrigin}e.WebkitHostController=r}(d.Webkit||(d.Webkit={}))}(OSF=OSF||{}),function(L){var o,e=(o=L.InitializationHelper,__extends(t,o),t.prototype.initializeWebkitMessaging=function(){L.ScriptMessaging=OSFWebkit.ScriptMessaging},t.prototype.getAppContext=function(e,k,t){var n,F=this;n=this._hostInfo.isDialog&&window.webkit.messageHandlers[L.Webkit.PopupMessageHandlerName]?L.Webkit.PopupMessageHandlerName:L.Webkit.MessageHandlerName,L.ScriptMessaging.GetScriptMessenger().invokeMethod(n,L.Webkit.MethodId.GetContext,[],function(e){var t,n=L.Webkit.AppContextProperties,r=e[n.AppType],i=e[n.Settings];if(i&&2===i.length)for(var o=i[0],a=i[1],s=0;s<o.length;s++)F._serializedSettings[o[s]]=a[s];var c=e[n.HostSettings];if(c&&2===c.length)for(o=c[0],a=c[1],s=0;s<o.length;s++)F._serializedHostSettings[o[s]]=a[s];var l=e[n.SolutionReferenceId],u=e[n.MajorVersion],p=e[n.MinorVersion],f=e[n.AppCapabilities],d=e[n.APPUILocale],h=e[n.AppDataLocale],g=e[n.DocumentUrl],y=e[n.ActivationMode],m=e[n.ControlIntegrationLevel],_=e[n.SolutionToken];_=_?_.toString():"";var b,v=e[n.CorrelationId],O=e[n.InstanceId],C=e[n.TouchEnabled],P=e[n.CommerceAllowed],R=e[n.RequirementMatrix],S=e[n.HostCustomMessage],I=e[n.HostFullVersion],T=e[n.InitialDisplayMode],A=e[n.FeatureGates];if(A)try{b=JSON.parse(A)}catch(e){L.AppTelemetry&&L.AppTelemetry.logAppException("Exception trying to parse FeatureGates."+e)}var N=null;if(e[n.OfficeThemeInfo])try{N=JSON.parse(e[n.OfficeThemeInfo])}catch(e){L.AppTelemetry&&L.AppTelemetry.logAppException("Exception while parsing officeThemeInfo. Details: "+e)}var x={};if(N){var E={bodyBackgroundColor:{name:"bodyBackgroundColor",convertToHex:!0},bodyForegroundColor:{name:"bodyForegroundColor",convertToHex:!0},controlBackgroundColor:{name:"controlBackgroundColor",convertToHex:!0},controlForegroundColor:{name:"controlForegroundColor",convertToHex:!0},primaryFontColor:{name:"bodyForegroundColor",convertToHex:!0},primaryBackgroundColor:{name:"bodyBackgroundColor",convertToHex:!0},secondaryFontColor:{name:"controlForegroundColor",convertToHex:!0},secondaryBackgroundColor:{name:"controlBackgroundColor",convertToHex:!0},fluentThemeData:{name:"fluentThemeData",convertToHex:!1}};for(var D in N){var j=!1,w=D;E[D]&&(w=E[D].name,j=E[D].convertToHex),x[w]=j?L.OUtil.convertIntToCssHexColor(N[D]):N[D]}}t=new L.OfficeAppContext(l,r,u,d,h,g,f,function(){return F._serializedSettings},y,m,_,v,O,C,P,p,R,S,I,void 0,void 0,void 0,void 0,void 0,b,x,T,void 0,void 0,function(){return F._serializedHostSettings},!1,void 0,void 0,void 0),k(t)})},t.prototype.createClientHostController=function(){return this._clientHostController||(this._clientHostController=new L.Webkit.WebkitHostController(L.ScriptMessaging.GetScriptMessenger())),this._clientHostController},t.prototype.createAsyncMethodExecutor=function(){return new L.SafeArrayAsyncMethodExecutor(this.createClientHostController())},t.prototype.createClientSettingsManager=function(){return new L.WebkitClientSettingsManager(this,L.ScriptMessaging.GetScriptMessenger())},t);function t(e,t,n,r){var i=o.call(this,e,t,n,r)||this;return i._serializedSettings={},i._serializedHostSettings={},i.initializeWebkitMessaging(),i}L.WebkitInitializationHelper=e}(OSF=OSF||{}),function(s){var e=(r.prototype.dimensions=function(){var e=0;return this.safeArrayFlag?e=this.data[0][0]:this.isArray()&&(e=2),e},r.prototype.getItem=function(){var e=null;e=this.safeArrayFlag?this.toArray():this.data;for(var t=0;t<arguments.length;t++)e=e[arguments[t]];return e},r.prototype.lbound=function(e){return 0},r.prototype.ubound=function(e){var t=0;if(this.safeArrayFlag)t=this.data[0][e];else if(this.isArray()){if(1==e)return this.data.length;if(2==e){if(s.OUtil.isArray(this.data[0]))return this.data[0].length;if(null!=this.data[0])return 1}}return t},r.prototype.toArray=function(){if(0==this.isArray())return this.data;for(var e=[],t=this.safeArrayFlag?1:0;t<this.data.length;t++){var n=this.data[t];this.isSafeArray(n)?e.push(new r(n)):e.push(n)}return e},r.prototype.isArray=function(){return s.OUtil.isArray(this.data)},r.prototype.isSafeArray=function(e){var t=!1;if(s.OUtil.isArray(e)&&s.OUtil.isArray(e[0])){var n=e[0],r=n[0];if(n.length!=r+1)return!1;for(var i=1,o=1;o<n.length;o++){var a=n[o];if(0==isFinite(a))return!1;i*=a}t=++i==e.length}return t},r);function r(e){this.data=e,this.safeArrayFlag=this.isSafeArray(e)}s.WebkitSafeArray=e}(OSF=OSF||{}),function(e){!function(e){var n=null;e.agaveHostCallback=function(e,t){n.agaveHostCallback(e,t)},e.agaveHostEventCallback=function(e,t){n.agaveHostEventCallback(e,t)},e.GetScriptMessenger=function(){return null==n&&(n=t.IsSupportedByHost()?new t:new i("OSF.ScriptMessaging.agaveHostCallback","OSF.ScriptMessaging.agaveHostEventCallback")),n};var l=function(e,t,n){this.id=e,this.targetId=t,this.handler=n},t=(r.IsSupportedByHost=function(){return!!window._osfHostAPI},r.prototype.invokeMethod=function(e,t,n,r){window._osfHostAPI(e,this.constructMessagingArgs(t,n),function(e){var t=r(e);return void 0===t||!0===t})},r.prototype.registerEvent=function(e,t,n,r,i,o){var a={id:n,targetId:r},s=window._osfHostRegisterEvent(e,this.constructMessagingArgs(t,a),function(e){return i(e),!1},function(e){return o(e),!0});this.eventHandlers.push({targetId:r,dispId:n,callbackId:s.eventCallbackId})},r.prototype.unregisterEvent=function(e,t,n,r,i){var o={id:n,targetId:r};window._osfHostAPI(e,this.constructMessagingArgs(t,o),function(e){return i(e),!0});for(var a=this.eventHandlers.length-1;0<=a;a--){var s=this.eventHandlers[a];s.dispId===n&&s.targetId===r&&(this.eventHandlers.splice(a,1),window._osfHostUnregisterCallback(s.callbackId))}},r.prototype.agaveHostCallback=function(e,t){},r.prototype.agaveHostEventCallback=function(e,t){},r.prototype.constructMessagingArgs=function(e,t){return{params:t,methodId:e}},r);function r(){this.eventHandlers=[]}var i=(c.prototype.invokeMethod=function(e,t,n,r){this.postWebkitMessage({},e,t,n,r)},c.prototype.registerEvent=function(e,t,n,r,i,o){var a={eventCallbackFunction:this.eventCallbackFunctionName},s={id:n,targetId:r},c=this.postWebkitMessage(a,e,t,s,o);this.eventHandlerList[c]=new l(n,r,i)},c.prototype.unregisterEvent=function(e,t,n,r,i){var o={id:n,targetId:r};for(var a in this.eventHandlerList)if(this.eventHandlerList.hasOwnProperty(a)){var s=this.eventHandlerList[a];s.id==n&&s.targetId==r&&delete this.eventHandlerList[a]}this.invokeMethod(e,t,o,i)},c.prototype.agaveHostCallback=function(e,t){var n=this.callbackList[e];if(n){var r=n(t);void 0!==r&&!0!==r||delete this.callbackList[e]}},c.prototype.agaveHostEventCallback=function(e,t){var n=this.eventHandlerList[e];n&&n.handler(t)},c.prototype.postWebkitMessage=function(e,t,n,r,i){e.methodId=n,e.params=r;var o="";function a(){window.webkit.messageHandlers[t].postMessage(JSON.stringify(e))}i&&(o=this.generateCorrelationId(),this.callbackList[o]=i,e.callbackId=o,e.callbackFunction=this.asyncMethodCallbackFunctionName);var s=c.getCurrentTimeMS();return null==this.lastMessageTimestamp||s-this.lastMessageTimestamp>=c.MESSAGE_TIME_DELTA?(a(),this.lastMessageTimestamp=s):(this.lastMessageTimestamp+=c.MESSAGE_TIME_DELTA,setTimeout(function(){a()},this.lastMessageTimestamp-s)),o},c.prototype.generateCorrelationId=function(){return++this.callingIndex,this.conversationId+this.callingIndex},c.getCurrentTimeMS=function(){return(new Date).getTime()},c.MESSAGE_TIME_DELTA=10,c);function c(e,t){this.callingIndex=0,this.callbackList={},this.eventHandlerList={},this.asyncMethodCallbackFunctionName=e,this.eventCallbackFunctionName=t,this.conversationId=c.getCurrentTimeMS().toString()}}(e.ScriptMessaging||(e.ScriptMessaging={}))}(OSFWebkit=OSFWebkit||{}),function(a){var e=(t.prototype.read=function(n){this._initializationHelper.getAppContext(null,function(e){if(n){var t=e.get_settingsFunc()();n(0,t)}},function(e){n&&n(5001,{})})},t.prototype.write=function(e,t){var n={},r=[],i=[];for(var o in e)r.push(o),i.push(e[o]);n.keys=r,n.values=i,this._scriptMessager.invokeMethod(a.WebView.MessageHandlerName,a.WebView.MethodId.WriteSettings,n,function(e){t&&t(e[0])})},t);function t(e,t){this._initializationHelper=e,this._scriptMessager=t}a.WebViewClientSettingsManager=e}(OSF=OSF||{}),function(d){!function(e){var t,n;e.MessageHandlerName="Agave",e.PopupMessageHandlerName="WefPopupHandler",(t=e.AppContextProperties||(e.AppContextProperties={}))[t.Settings=0]="Settings",t[t.SolutionReferenceId=1]="SolutionReferenceId",t[t.AppType=2]="AppType",t[t.MajorVersion=3]="MajorVersion",t[t.MinorVersion=4]="MinorVersion",t[t.RevisionVersion=5]="RevisionVersion",t[t.APIVersionSequence=6]="APIVersionSequence",t[t.AppCapabilities=7]="AppCapabilities",t[t.APPUILocale=8]="APPUILocale",t[t.AppDataLocale=9]="AppDataLocale",t[t.BindingCount=10]="BindingCount",t[t.DocumentUrl=11]="DocumentUrl",t[t.ActivationMode=12]="ActivationMode",t[t.ControlIntegrationLevel=13]="ControlIntegrationLevel",t[t.SolutionToken=14]="SolutionToken",t[t.APISetVersion=15]="APISetVersion",t[t.CorrelationId=16]="CorrelationId",t[t.InstanceId=17]="InstanceId",t[t.TouchEnabled=18]="TouchEnabled",t[t.CommerceAllowed=19]="CommerceAllowed",t[t.RequirementMatrix=20]="RequirementMatrix",t[t.OfficeThemeInfo=21]="OfficeThemeInfo",(n=e.MethodId||(e.MethodId={}))[n.Execute=1]="Execute",n[n.RegisterEvent=2]="RegisterEvent",n[n.UnregisterEvent=3]="UnregisterEvent",n[n.WriteSettings=4]="WriteSettings",n[n.GetContext=5]="GetContext",n[n.OnKeydown=6]="OnKeydown",n[n.AddinInitialized=7]="AddinInitialized",n[n.OpenWindow=8]="OpenWindow",n[n.MessageParent=9]="MessageParent",n[n.SendMessage=10]="SendMessage";var r=(f.prototype.execute=function(e,t,n){var r=t;null==r&&(r=[]);var i={id:e,apiArgs:r};this.hostScriptProxy.invokeMethod(d.WebView.MessageHandlerName,d.WebView.MethodId.Execute,i,function(e){var t=e;if(d.OUtil.isArray(e)&&2<=e.length&&(e[0],t=e[1]),n)return n(new d.WebkitSafeArray(t))})},f.prototype.registerEvent=function(e,t,n,r,i){this.hostScriptProxy.registerEvent(d.WebView.MessageHandlerName,d.WebView.MethodId.RegisterEvent,e,n,function(e){var t=e,n=0;d.OUtil.isArray(e)&&2<=e.length&&(n=e[0],t=e[1]),r&&r(n,new d.WebkitSafeArray(t))},function(e){if(i)return i(new d.WebkitSafeArray(e))})},f.prototype.unregisterEvent=function(e,t,n,r){this.hostScriptProxy.unregisterEvent(d.WebView.MessageHandlerName,d.WebView.MethodId.UnregisterEvent,e,n,function(e){return r(new d.WebkitSafeArray(e))})},f.prototype.messageParent=function(e){var t={dialogMessage:{messageType:0,messageContent:e[d.ParameterNames.MessageToParent]}};window.opener.postMessage(JSON.stringify(t),window.location.origin)},f.prototype.openDialog=function(n,e,t,r,i){var o=JSON.parse(t),a=o.url;if(a){var s=a.split("#"),c="?";-1<a.indexOf("?")&&(c="&");var l="width="+screen.width*o.width/100+", height="+screen.height*o.height/100;s[0]=s[0].concat(c).concat("action=displayDialog");var u,p=s.join("#");f.popup=window.open(p,"",l),window.addEventListener("message",function(t){if(t.source==f.popup)try{var e=JSON.parse(t.data);e.dialogMessage&&r(n,[0,e.dialogMessage.messageContent])}catch(e){d.Utility.trace("messages received cannot be handled. Message:"+t.data)}}),u=window.setInterval(function(){try{null!=f.popup&&!f.popup.closed||(window.clearInterval(u),r(n,[12006]))}catch(e){d.Utility.trace("Error happened when popup window closed.")}},1e3),i(0)}},f.prototype.closeDialog=function(e,t,n,r){f.popup?(f.popup.close(),f.popup=null,r(0)):r(5001)},f.prototype.sendMessage=function(e){var t=e[d.ParameterNames.MessageContent];!isNaN(parseFloat(t))&&isFinite(t)&&(t=t.toString()),this.hostScriptProxy.invokeMethod(d.WebView.MessageHandlerName,d.WebView.MethodId.SendMessage,t,null)},f.prototype.closeSdxDialog=function(e){throw d.Utility.createNotImplementedException()},f.prototype.resizeSdxDialog=function(e,t){throw d.Utility.createNotImplementedException()},f);function f(e){this.hostScriptProxy=e}e.WebViewHostController=r}(d.WebView||(d.WebView={}))}(OSF=OSF||{}),function(A){var o,e=(o=A.InitializationHelper,__extends(t,o),t.prototype.initializeWebViewMessaging=function(){A.ScriptMessaging=A.WebView.ScriptMessaging},t.prototype.getAppContext=function(e,I,t){var n,T=this;n=this._hostInfo.isDialog?A.WebView.PopupMessageHandlerName:A.WebView.MessageHandlerName,A.ScriptMessaging.GetScriptMessenger().invokeMethod(n,A.WebView.MethodId.GetContext,[],function(e){var t,n=A.Webkit.AppContextProperties,r=e[n.AppType],i=e[n.Settings];if(i&&2===i.length)for(var o=i[0],a=i[1],s=0;s<o.length;s++)T._serializedSettings[o[s]]=a[s];var c=e[n.SolutionReferenceId],l=e[n.MajorVersion],u=e[n.MinorVersion],p=e[n.AppCapabilities],f=e[n.APPUILocale],d=e[n.AppDataLocale],h=e[n.DocumentUrl],g=e[n.ActivationMode],y=e[n.ControlIntegrationLevel],m=e[n.SolutionToken];m=m?m.toString():"";var _=e[n.CorrelationId],b=e[n.InstanceId],v=e[n.TouchEnabled],O=e[n.CommerceAllowed],C=e[n.RequirementMatrix],P=e[n.HostCustomMessage],R=e[n.HostFullVersion],S=e[n.InitialDisplayMode];t=new A.OfficeAppContext(c,r,l,f,d,h,p,function(){return T._serializedSettings},g,y,m,_,b,v,O,u,C,P,R,void 0,void 0,void 0,void 0,void 0,void 0,void 0,S,void 0,void 0,void 0,!1,void 0,void 0,void 0),I(t)})},t.prototype.createClientHostController=function(){return this._clientHostController||(this._clientHostController=new A.WebView.WebViewHostController(A.ScriptMessaging.GetScriptMessenger())),this._clientHostController},t.prototype.createAsyncMethodExecutor=function(){return new A.SafeArrayAsyncMethodExecutor(this.createClientHostController())},t.prototype.createClientSettingsManager=function(){return new A.WebViewClientSettingsManager(this,A.ScriptMessaging.GetScriptMessenger())},t);function t(e,t,n,r){var i=o.call(this,e,t,n,r)||this;return i._serializedSettings={},i.initializeWebViewMessaging(),i}A.WebViewInitializationHelper=e}(OSF=OSF||{}),function(n){var r,e,t,i,o;function a(){}function s(){window.addEventListener("message",this.OnReceiveMessage.bind(this))}!function(e){var t;(t=e.CallbackType||(e.CallbackType={}))[t.MethodCallback=0]="MethodCallback",t[t.EventCallback=1]="EventCallback";function n(e,t,n){this.callbackType=e,this.callbackId=t,this.params=n}e.CallbackData=n}(r=r||{}),e=n.Android||(n.Android={}),a.getInstance=function(){return null==a.uniqueInstance&&(a.uniqueInstance=new a),a.uniqueInstance},a.prototype.postMessage=function(e,t){agaveHost.postMessage(t)},a.prototype.ReceiveMessage=function(e){switch(e.callbackType){case r.CallbackType.MethodCallback:n.WebView.ScriptMessaging.agaveHostCallback(e.callbackId,e.params);break;case r.CallbackType.EventCallback:n.WebView.ScriptMessaging.agaveHostEventCallback(e.callbackId,e.params)}},t=a,e.Poster=t,i=n.WinRT||(n.WinRT={}),s.prototype.postMessage=function(e,t){window.parent.postMessage(t,"*")},s.prototype.OnReceiveMessage=function(e){if(e.source==window.parent&&window.parent==window.top&&e.origin.startsWith("ms-appx-web://")){var t;try{t=JSON.parse(e.data)}catch(e){return}switch(t.callbackType){case r.CallbackType.MethodCallback:n.WebView.ScriptMessaging.agaveHostCallback(t.callbackId,JSON.parse(t.params));break;case r.CallbackType.EventCallback:n.WebView.ScriptMessaging.agaveHostEventCallback(t.callbackId,JSON.parse(t.params))}}},o=s,i.Poster=o}(OSF=OSF||{}),function(i){var e;(function(e){var n=null;e.agaveHostCallback=function(e,t){n.agaveHostCallback(e,t)},e.agaveHostEventCallback=function(e,t){n.agaveHostEventCallback(e,t)},e.GetScriptMessenger=function(){if(null==n){var e=i._OfficeAppFactory.getHostInfo().hostPlatform;if(e===i.HostInfoPlatform.android)n=new t("OSF.ScriptMessaging.agaveHostCallback","OSF.ScriptMessaging.agaveHostEventCallback",i.Android.Poster.getInstance());else{if(e!==i.HostInfoPlatform.winrt)throw i.Utility.createNotImplementedException();n=new t("agaveHostCallback","agaveHostEventCallback",new i.WinRT.Poster)}}return n};var l=function(e,t,n){this.id=e,this.targetId=t,this.handler=n},t=(r.prototype.invokeMethod=function(e,t,n,r){this.postMessage({},e,t,n,r)},r.prototype.registerEvent=function(e,t,n,r,i,o){var a={eventCallbackFunction:this.eventCallbackFunctionName},s={id:n,targetId:r},c=this.postMessage(a,e,t,s,o);this.eventHandlerList[c]=new l(n,r,i)},r.prototype.unregisterEvent=function(e,t,n,r,i){var o={id:n,targetId:r};for(var a in this.eventHandlerList)if(this.eventHandlerList.hasOwnProperty(a)){var s=this.eventHandlerList[a];s.id==n&&s.targetId==r&&delete this.eventHandlerList[a]}this.invokeMethod(e,t,o,i)},r.prototype.agaveHostCallback=function(e,t){var n=this.callbackList[e];if(n){var r=n(t);void 0!==r&&!0!==r||delete this.callbackList[e]}},r.prototype.agaveHostEventCallback=function(e,t){var n=this.eventHandlerList[e];n&&n.handler(t)},r.prototype.postMessage=function(e,t,n,r,i){var o=this.generateCorrelationId();return this.callbackList[o]=i,e.methodId=n,e.params=r,e.callbackId=o,e.callbackFunction=this.asyncMethodCallbackFunctionName,this.poster.postMessage(t,JSON.stringify(e)),o},r.prototype.generateCorrelationId=function(){return++this.callingIndex,this.conversationId+this.callingIndex},r.getCurrentTimeMS=function(){return(new Date).getTime()},r.MESSAGE_TIME_DELTA=10,r);function r(e,t,n){this.callingIndex=0,this.callbackList={},this.eventHandlerList={},this.asyncMethodCallbackFunctionName=e,this.eventCallbackFunctionName=t,this.poster=n,this.conversationId=r.getCurrentTimeMS().toString()}})((e=i.WebView||(i.WebView={})).ScriptMessaging||(e.ScriptMessaging={}))}(OSF=OSF||{}),function(n){var e,t=(e=n.RichClientHostController,__extends(r,e),r.prototype.messageParent=function(e){if(n.Utility.externalNativeFunctionExists(typeof window.external.MessageParent2))"undefined"!=typeof OsfOMToken&&OsfOMToken?window.external.MessageParent2(JSON.stringify(e),OsfOMToken):window.external.MessageParent2(JSON.stringify(e));else{var t=e[n.ParameterNames.MessageToParent];window.external.MessageParent(t)}},r.prototype.openDialog=function(e,t,n,r,i){this.registerEvent(e,t,n,r,i)},r.prototype.closeDialog=function(e,t,n,r){this.unregisterEvent(e,t,n,r)},r.prototype.sendMessage=function(e){if(n.Utility.externalNativeFunctionExists(typeof window.external.MessageChild2))"undefined"!=typeof OsfOMToken&&OsfOMToken?window.external.MessageChild2(JSON.stringify(e),OsfOMToken):window.external.MessageChild2(JSON.stringify(e));else{var t=e[n.ParameterNames.MessageContent];window.external.MessageChild(t)}},r.prototype.closeSdxDialog=function(e){n.Utility.externalNativeFunctionExists(typeof window.external.closeSdxDialog)&&window.external.closeSdxDialog(e)},r.prototype.resizeSdxDialog=function(e,t){n.Utility.externalNativeFunctionExists(typeof window.external.resizeSdxDialog)&&window.external.resizeSdxDialog(e,t)},r);function r(){return null!==e&&e.apply(this,arguments)||this}n.Win32RichClientHostController=t}(OSF=OSF||{}),function(f){var e,t=(e=f.Webkit.WebkitHostController,__extends(d,e),d.prototype.openDialog=function(n,e,t,r,i){if(!d.popup||d.popup.closed){window.dialogAPIErrorCode=void 0;var o=JSON.parse(t),a=o.url;if(a){var s=a.split("#"),c="?";-1<s[0].indexOf("?")&&(c="&");var l="width="+screen.width*o.width/100+", height="+screen.height*o.height/100;s[0]=s[0].concat(c).concat("action=displayDialog");var u=s.join("#");if(d.popup=window.open(u,"",l),d.DialogEventListener=function(t){if(t.source==d.popup)try{var e=JSON.parse(t.data);e.dialogMessage&&r(n,[0,e.dialogMessage.messageContent])}catch(e){f.Utility.trace("messages received cannot be handlered. Message:"+t.data)}},null!=d.popup&&null==window.dialogAPIErrorCode)window.addEventListener("message",d.DialogEventListener),d.interval=window.setInterval(function(){try{null!=d.popup&&!d.popup.closed||(window.clearInterval(d.interval),window.removeEventListener("message",d.DialogEventListener),d.NotifyError=null,r(n,[12006]))}catch(e){f.Utility.trace("Error happened when popup window closed.")}},500),d.NotifyError=function(e){r(n,[e])},i(0);else{var p=5001;window.dialogAPIErrorCode&&(p=window.dialogAPIErrorCode),i(p)}}else i(12003)}else i(12007)},d.prototype.messageParent=function(e){var t={dialogMessage:{messageType:0,messageContent:e[f.ParameterNames.MessageToParent]}};window.opener.postMessage(JSON.stringify(t),window.location.origin)},d.prototype.closeDialog=function(e,t,n,r){d.popup?(d.interval&&window.clearInterval(d.interval),d.popup.close(),d.popup=null,window.removeEventListener("message",d.DialogEventListener),d.NotifyError=null,r(0)):r(5001)},d);function d(){return null!==e&&e.apply(this,arguments)||this}f.MacRichClientHostController=t}(OSF=OSF||{}),function(e){var t,n,r;((n=e._Internal||(e._Internal={})).PromiseImpl||(n.PromiseImpl={})).Init=function(){return function(){"use strict";function l(e){return"function"==typeof e}var n,a=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=0,s=function(e,t){p[r]=e,p[r+1]=t,2===(r+=2)&&(n?n(f):i())};var e="undefined"!=typeof process&&"[object process]"==={}.toString.call(process),t="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;var i,o,c,u,p=new Array(1e3);function f(){for(var e=0;e<r;e+=2){(0,p[e])(p[e+1]),p[e]=void 0,p[e+1]=void 0}r=0}function d(){}i=e?(c=process.nextTick,u=process.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/),Array.isArray(u)&&"0"===u[1]&&"10"===u[2]&&(c=setImmediate),function(){c(f)}):t?((o=new MessageChannel).port1.onmessage=f,function(){o.port2.postMessage(0)}):function(){setTimeout(f,1)};var h=void 0,g=1,y=2,m=new I;function _(e,r,i){s(function(t){var n=!1,e=function(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}(i,r,function(e){n||(n=!0,(r!==e?v:C)(t,e))},function(e){n||(n=!0,P(t,e))},t._label);!n&&e&&(n=!0,P(t,e))},e)}function b(e,t){if(t.constructor===e.constructor)r=e,(i=t)._state===g?C(r,i._result):i._state===y?P(r,i._result):R(i,void 0,function(e){v(r,e)},function(e){P(r,e)});else{var n=function(e){try{return e.then}catch(e){return m.error=e,m}}(t);n===m?P(e,m.error):void 0!==n&&l(n)?_(e,t,n):C(e,t)}var r,i}function v(e,t){var n;e===t?P(e,new TypeError("You cannot resolve a promise with itself")):("function"==typeof(n=t)||"object"==typeof n&&null!==n?b:C)(e,t)}function O(e){e._onerror&&e._onerror(e._result),S(e)}function C(e,t){e._state===h&&(e._result=t,e._state=g,0!==e._subscribers.length&&s(S,e))}function P(e,t){e._state===h&&(e._state=y,e._result=t,s(O,e))}function R(e,t,n,r){var i=e._subscribers,o=i.length;e._onerror=null,i[o]=t,i[o+g]=n,i[o+y]=r,0===o&&e._state&&s(S,e)}function S(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r,i,o=e._result,a=0;a<t.length;a+=3)r=t[a],i=t[a+n],r?A(n,r,i,o):i(o);e._subscribers.length=0}}function I(){this.error=null}var T=new I;function A(e,t,n,r){var i,o,a,s,c=l(n);if(c){if((i=function(e,t){try{return e(t)}catch(e){return T.error=e,T}}(n,r))===T?(s=!0,o=i.error,i=null):a=!0,t===i)return void P(t,new TypeError("A promises callback cannot return that same promise."))}else i=r,a=!0;t._state!==h||(c&&a?v(t,i):s?P(t,o):e===g?C(t,i):e===y&&P(t,i))}function N(e,t){var n=this;n._instanceConstructor=e,n.promise=new e(d),n._validateInput(t)?(n._input=t,n.length=t.length,n._remaining=t.length,n._init(),0===n.length?C(n.promise,n._result):(n.length=n.length||0,n._enumerate(),0===n._remaining&&C(n.promise,n._result))):P(n.promise,n._validationError())}N.prototype._validateInput=function(e){return a(e)},N.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},N.prototype._init=function(){this._result=new Array(this.length)};var x=N;N.prototype._enumerate=function(){for(var e=this.length,t=this.promise,n=this._input,r=0;t._state===h&&r<e;r++)this._eachEntry(n[r],r)},N.prototype._eachEntry=function(e,t){var n,r=this,i=r._instanceConstructor;"object"==typeof(n=e)&&null!==n?e.constructor===i&&e._state!==h?(e._onerror=null,r._settledAt(e._state,t,e._result)):r._willSettleAt(i.resolve(e),t):(r._remaining--,r._result[t]=e)},N.prototype._settledAt=function(e,t,n){var r=this,i=r.promise;i._state===h&&(r._remaining--,e===y?P(i,n):r._result[t]=n),0===r._remaining&&C(i,r._result)},N.prototype._willSettleAt=function(e,t){var n=this;R(e,void 0,function(e){n._settledAt(g,t,e)},function(e){n._settledAt(y,t,e)})};function E(e){var t=new this(d);if(!a(e))return P(t,new TypeError("You must pass an array to race.")),t;var n=e.length;function r(e){v(t,e)}function i(e){P(t,e)}for(var o=0;t._state===h&&o<n;o++)R(this.resolve(e[o]),void 0,r,i);return t}function D(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(d);return v(t,e),t}function j(e){var t=new this(d);return P(t,e),t}var w=0;var k=F;function F(e){this._id=w++,this._state=void 0,this._result=void 0,this._subscribers=[],d!==e&&(l(e)||function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof F||function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}(),function(t,e){try{e(function(e){v(t,e)},function(e){P(t,e)})}catch(e){P(t,e)}}(this,e))}return F.all=function(e){return new x(this,e).promise},F.race=E,F.resolve=D,F.reject=j,F._setScheduler=function(e){n=e},F._setAsap=function(e){s=e},F._asap=s,F.prototype={constructor:F,then:function(e,t){var n=this._state;if(n===g&&!e||n===y&&!t)return this;var r=new this.constructor(d),i=this._result;if(n){var o=arguments[n-1];s(function(){A(n,r,o,i)})}else R(this,r,e,t);return r},catch:function(e){return this.then(null,e)}},k}.call(this)},(r=t=e._Internal||(e._Internal={})).OfficePromise=function(){if("undefined"==typeof window&&"function"==typeof Promise)return Promise;if("undefined"!=typeof window){if(window.Promise)return window.Promise;var e=r.PromiseImpl.Init();return window.Promise=e}}(),e.OfficePromise=t.OfficePromise,e.Promise=e.OfficePromise}(Office=Office||{}),function(_){!function(o){var a,s=_.OUtil.Guid.generateNewGuid(),c=new RegExp("^https?://store\\.office(ppe|-int)?\\.com/","i"),l=!1,u="PRIVATE";o.enableTelemetry=!0;var p=function(){};o.AppInfo=p;var f=(e.prototype.getClientId=function(){var e=this.getValue(this.clientIDKey);return(!e||e.length<=0||40<e.length)&&(e=_.OUtil.Guid.generateNewGuid(),this.setValue(this.clientIDKey,e)),e},e.prototype.getValue=function(e){var t=_.OUtil.getLocalStorage(),n="";return t&&(n=t.getItem(e)),n},e.prototype.setValue=function(e,t){var n=_.OUtil.getLocalStorage();n&&n.setItem(e,t)},e);function e(){this.clientIDKey="Office API client",this.logIdSetKey="Office App Log Id Set"}function d(e){return(e=e&&e.replace(/[{}]/g,"").toLowerCase())||""}function h(t){try{return JSON.parse(t)}catch(e){return t}}function t(){a&&(l||OTel.OTelLogger.onTelemetryLoaded(function(){var e=[],t=a.isMos?1:0;e=e.concat([oteljs.makeStringDataField("Browser",a.browser),oteljs.makeInt64DataField("AppSizeWidth",window.innerWidth),oteljs.makeInt64DataField("AppSizeHeight",window.innerHeight),oteljs.makeInt64DataField("IsMOS",t)]),_.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_10045620_CopilotAgentTelSettings")&&a.launchSource&&a.launchReason&&(e.push(oteljs.makeStringDataField("LaunchSource",a.launchSource)),e.push(oteljs.makeStringDataField("LaunchReason",a.launchReason))),Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.AppActivatedX",dataFields:e,eventFlags:{dataCategories:2,diagnosticLevel:110,samplingPolicy:191}})}))}function n(e,t){}function g(){var e=0!=(_._OfficeAppFactory.getHostInfo().flags&_.HostInfoFlags.PublicAddin);return e||!!a&&r(_._OfficeAppFactory.getHostInfo().hostPlatform,a.hostVersion)}function y(e,t){return g()||t!==e?t:u}function r(e,t){var n=!1,r=/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/.exec(t);if(r){var i=parseInt(r[1]),o=parseInt(r[2]),a=parseInt(r[3]);e==_.HostInfoPlatform.win32?(i<16||16==i&&a<14225)&&(n=!0):e==_.HostInfoPlatform.mac&&(i<16||16==i&&(o<52||52==o&&a<808))&&(n=!0)}return n}function m(){return 0!=(_._OfficeAppFactory.getHostInfo().flags&_.HostInfoFlags.IsMos)}o.initialize=function(e){if(o.enableTelemetry&&!a){a=new p,e.get_hostFullVersion()?a.hostVersion=e.get_hostFullVersion():a.hostVersion=e.get_appVersion(),a.appId=g()?e.get_id():u,a.marketplaceType=e._marketplaceType,a.host=""+e.get_appName(),a.browser=window.navigator.userAgent,a.correlationId=d(e.get_correlationId()),a.clientId=(new f).getClientId(),a.appInstanceId=e.get_appInstanceId(),a.appInstanceId&&(a.appInstanceId=d(a.appInstanceId),a.appInstanceId=y(e.get_id(),a.appInstanceId)),a.message=e.get_hostCustomMessage(),a.officeJSVersion=_.ConstantNames.FileVersion,a.hostJSVersion="NA",e._wacHostEnvironment&&(a.wacHostEnvironment=e._wacHostEnvironment);var t=e.get_isFromWacAutomation();null!=t&&(a.isFromWacAutomation=t.toString().toLowerCase());var n=e.get_docUrl();a.docUrl=c.test(n)?n:"";var r=location.href;if(r&&(a.isPreload=-1!==r.indexOf("preload=1"),r=r.split("?")[0].split("#")[0]),a.isMos=m(),_.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_10045620_CopilotAgentTelSettings")){var i=e.get_settingsFunc()();i&&i.LaunchSource&&i.LaunchReason&&(a.launchSource=h(i.LaunchSource),a.launchReason=h(i.LaunchReason))}!function(e,t){t.assetId="",t.userId="";try{if(!_.Utility.isNullOrEmpty(e)){var n=decodeURIComponent(e),r=new DOMParser,i=void 0;if(_.LoadScriptHelper.trustedTypesOptIn()&&window.trustedTypes&&window.trustedTypes.createPolicy)i=window.trustedTypes.createPolicy("officejs-domparser",{createHTML:function(e){return e}}).createHTML(n);else i=n;var o=r.parseFromString(i,"text/xml"),a=o.getElementsByTagName("t")[0].attributes.getNamedItem("cid"),s=o.getElementsByTagName("t")[0].attributes.getNamedItem("oid");a&&a.nodeValue?t.userId=a.nodeValue:s&&s.nodeValue&&(t.userId=s.nodeValue),t.assetId=o.getElementsByTagName("t")[0].attributes.getNamedItem("aid").nodeValue}}catch(e){}}(e.get_eToken(),a),a.sessionId=s,OTel.OTelLogger.initialize(a),a.isPreload?(l=!0,function(){try{Microsoft.Office.WebExtension.onReadyInternal().then(function(){var t=Office,n=OfficeCore;t.addin&&t.addin.onVisibilityModeChanged&&t.addin.onVisibilityModeChanged(function(e){e.visibilityMode===t.VisibilityMode.taskpane&&_.AppTelemetry.CallOnAppActivatedIfPending()}),t.addin&&t.addin._getState&&t.addin._getState().then(function(e){n.AppRuntimeState&&e===n.AppRuntimeState.visible&&_.AppTelemetry.CallOnAppActivatedIfPending()})})}catch(e){_.AppTelemetry&&_.AppTelemetry.logAppException("Exception happens at registerVisibilityEventOnPreload"+e)}}()):o.onAppActivated()}},o.onAppActivated=t,o.onScriptDone=function(e,t,n,r){},o.onCallDone=function(e,t,n,r,i){},o.onMethodDone=function(e,t,n,r){},o.onPropertyDone=function(e,t){_.AppTelemetry.onCallDone("property",-1,e,t,0)},o.onCheckWACHost=function(e,t,n,r,i){},o.onEventDone=function(e,t){_.AppTelemetry.onCallDone("event",e,null,0,t)},o.onRegisterDone=function(e,t,n,r){_.AppTelemetry.onCallDone(e?"registerevent":"unregisterevent",t,null,n,r)},o.onAppClosed=function(e,t){},o.setOsfControlAppCorrelationId=function(e){d(e)},o.doAppInitializationLogging=n,o.logAppCommonMessage=function(e){},o.logAppException=function(e){},o.CallOnAppActivatedIfPending=function(){l&&(l=!1,t())},o.canSendAddinId=g,o.getCompliantAppInstanceId=y,o._isComplianceExceptedHost=r,o.isMos=m}(_.AppTelemetry||(_.AppTelemetry={}))}(OSF=OSF||{}),function(o){var e=(n.loaded=function(){return!(void 0===n.logger)},n.create=function(e){var t,n={id:e.appId,marketplaceType:e.marketplaceType,assetId:e.assetId,officeJsVersion:e.officeJSVersion,hostJsVersion:e.hostJSVersion,browserToken:e.clientId,instanceId:e.appInstanceId,sessionId:e.sessionId},r=oteljs.Contracts.Office.System.SDX.getFields("SDX",n);if("web"===OSF._OfficeAppFactory.getHostInfo().hostPlatform)t=new o.SdxWacSink;else{if(!Office.context.requirements.isSetSupported("Telemetry","1.2"))return console.error("Cannot create telemetry sink successfully"),null;t=new o.RichApiSink,this.richApiSink=t}var i=new oteljs.SimpleTelemetryLogger(void 0,r);return i.addSink(t),i.setTenantToken("Office.Extensibility.OfficeJs","db334b301e7b474db5e0f02f07c51a47-a1b5bc36-1bbe-482f-a64a-c2d9cb606706-7439",1755),oteljs.onNotification().addListener(function(e){OSF.Utility.debugLog(e.message())}),i},n.checkAndResolvePromises=function(){n.loaded()&&(n.promises.forEach(function(e){e()}),n.promises=[])},n.initialize=function(e){n.Enabled?Office.onReadyInternal().then(function(){n.loaded()||(OSF.Utility.debugLog("Creating OTelLogger"),n.logger=n.create(e),n.checkAndResolvePromises())}):n.promises=[]},n.sendTelemetryEvent=function(e){n.onTelemetryLoaded(function(){try{n.logger.sendTelemetryEvent(e)}catch(e){console.error("Cannot send telemetry event: "+JSON.stringify(e))}})},n.sendNonStandardEvent=function(e,t){n.onTelemetryLoaded(function(){try{n.logger.sendNonStandardEvent(e,t)}catch(e){console.error("Cannot send telemetry event: "+JSON.stringify(e))}})},n.flushTelemetryQueue=function(){var t=this;return new Office.Promise(function(e){n.onTelemetryLoaded(function(){t.richApiSink?t.richApiSink.flushTelemetryQueue().then(function(){e()}):e()})})},n.onTelemetryLoaded=function(e){n.Enabled&&(n.loaded()?e():n.promises.push(e))},n.promises=[],n.Enabled=!0,n);function n(){}o.OTelLogger=e}(OTel=OTel||{}),function(e){var t=(n.prototype.sendTelemetryEvent=function(e){this._telemetryQueue.push([e,1]),this._requestIsPending||this.processWorkBacklog()},n.prototype.sendNonStandardEvent=function(e,t){this._telemetryQueue.push([e,t]),this._requestIsPending||this.processWorkBacklog()},n.prototype.flushTelemetryQueue=function(){var n=this;return new Office.Promise(function(e){var t=n._telemetryQueue;n._telemetryQueue=[],n.processTelemetryEvents(t).then(function(){e()})})},n.prototype.processWorkBacklog=function(){var t=this;this._requestIsPending=!0;var e=this._telemetryQueue;this._telemetryQueue=[],this.processTelemetryEvents(e).then(this.waitAndProcessMore.bind(this)).catch(function(e){oteljs.logError(1,"RichApiSink Error",e),t.waitAndProcessMore.bind(t)()})},n.prototype.waitAndProcessMore=function(){var e=this;this.pause(1e3).then(function(){0<e._telemetryQueue.length&&setTimeout(function(){return e.processWorkBacklog()},0),e._requestIsPending=!1}).catch(function(){})},n.prototype.processTelemetryEvents=function(e){var o=this,a=new OfficeCore.RequestContext;return e.forEach(function(e){var t=e[0],n=e[1];if(t.telemetryProperties){var r=[];o.addDataFields(r,t.dataFields);var i=t.eventContract?t.eventContract.name:"";t.eventContract&&o.addDataFields(r,t.eventContract.dataFields),1===n?a.telemetry.sendTelemetryEvent(t.telemetryProperties,t.eventName,i,oteljs.getEffectiveEventFlags(t),r):a.telemetry.sendNonStandardEvent(t.telemetryProperties,t.eventName,i,oteljs.getEffectiveEventFlags(t),r,n)}}),a.sync().catch(function(){oteljs.logNotification(2,1,function(){return"RichApi telemetry call failed."})})},n.prototype.addDataFields=function(t,e){e&&e.forEach(function(e){t.push({name:e.name,value:e.value,classification:e.classification?e.classification:4,type:e.dataType})})},n.prototype.pause=function(t){return new Office.Promise(function(e){return setTimeout(e,t)})},n);function n(){var t=this;this._requestIsPending=!0,this._telemetryQueue=[],this.pause(1e3).then(function(){var e=t._telemetryQueue;t._telemetryQueue=[],t._requestIsPending=!1,t.processTelemetryEvents(e)})}e.RichApiSink=t}(OTel=OTel||{}),function(e){var t=(n.prototype.sendTelemetryEvent=function(e,t){try{if(e.dataFields&&0<e.dataFields.filter(function(e){var t=e.classification;return t&&4!==t&&1!==t}).length)return;var n=OSF._OfficeAppFactory.getId(),r=OSF.AgaveHostAction.SendTelemetryEvent;OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n,r,e])}catch(e){oteljs.logError(1,"AgaveWacSink",e)}},n.prototype.sendNonStandardEvent=function(e,t){try{if(1===t)throw new Error("Please call sendTelemetryEvent for events of type "+t);if(e.dataFields&&0<e.dataFields.filter(function(e){var t=e.classification;return t&&4!==t&&1!==t&&32!==t&&2048!==t}).length)return;var n=OSF._OfficeAppFactory.getId(),r=OSF.AgaveHostAction.SendNonStandardEvent;OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n,r,e])}catch(e){oteljs.logError(1,"AgaveWacSink",e)}},n);function n(){}e.SdxWacSink=t}(OTel=OTel||{}),function(){var t,e=[];function p(e,t,n){OTel.OTelLogger.onTelemetryLoaded(function(){Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.AddinSpecialPermissionRequest",dataFields:[oteljs.makeStringDataField("invocationId",e),oteljs.makeStringDataField("methodPath",t),oteljs.makeStringDataField("params",n)],eventFlags:{dataCategories:2,diagnosticLevel:110}})})}function f(e,t,n){OTel.OTelLogger.onTelemetryLoaded(function(){Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.AddinSpecialPermissionResponse",dataFields:[oteljs.makeStringDataField("invocationId",e),oteljs.makeBooleanDataField("isSuccessful",t),oteljs.makeStringDataField("error",n?JSON.stringify({name:n.name,code:n.code,message:n.message}):void 0)],eventFlags:{dataCategories:2,diagnosticLevel:110}})})}try{function n(i){var o=Navigator.prototype[i];o&&(Navigator.prototype[i]=function(e,t,n){if(3===arguments.length&&Function.prototype.isPrototypeOf(t)&&Function.prototype.isPrototypeOf(n)){var r=(d++).toString();return p(r,"Navigator.prototype."+i,JSON.stringify([{audio:!!e.audio,video:!!e.video}])),o.apply(this,[e,function(){return f(r,!0),t.apply(this,arguments)},function(){return f(r,!1,arguments[0]),n.apply(this,arguments)}])}return o.apply(this,arguments)},e.push("Navigator.prototype."+i))}for(var d=0,r=0,i=["getUserMedia","webkitGetUserMedia","mozGetUserMedia"];r<i.length;r++){n(i[r])}var o=MediaDevices.prototype.getUserMedia;o&&(MediaDevices.prototype.getUserMedia=function(e){var t=(d++).toString();return 1===arguments.length&&void 0!==e?(p(t,"MediaDevices.prototype.getUserMedia",JSON.stringify([{audio:!!e.audio,video:!!e.video}])),o.apply(this,arguments).then(function(){return f(t,!0),arguments[0]},function(){throw f(t,!1,arguments[0]),arguments[0]})):o.apply(this,arguments)},e.push("MediaDevices.prototype.getUserMedia"));function a(l){var u=Geolocation.prototype[l];u&&(Geolocation.prototype[l]=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];var o=(d++).toString(),a=!1;p(o,"Geolocation.prototype."+l,JSON.stringify([]));var s=Function.prototype.isPrototypeOf(e)?function(){return a||(f(o,!0),a=!0),e.apply(this,arguments)}:e,c=Function.prototype.isPrototypeOf(t)?function(){return a||(f(o,!1,arguments[0]),a=!0),t.apply(this,arguments)}:t;return u.apply(this,[s,c,n].concat(r))},e.push("Geolocation.prototype."+l))}for(var s=0,c=["getCurrentPosition","watchPosition"];s<c.length;s++){a(c[s])}}catch(e){t=e.toString()}OTel.OTelLogger.onTelemetryLoaded(function(){Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.AddinSpecialPermissionHookInstall",dataFields:[oteljs.makeStringDataField("hooksInstalled",JSON.stringify(e)),oteljs.makeStringDataField("error",t)],eventFlags:{dataCategories:2,diagnosticLevel:110}})})}(Office=Office||{}),function(e){var t,n;t=e.Office||(e.Office={}),(n=t.WebExtension||(t.WebExtension={})).FeatureGates={},n.EventType=OSF.EventType,n.sendTelemetryEvent=function(e){OTel.OTelLogger.sendTelemetryEvent(e)},n.sendNonStandardEvent=function(e,t){OTel.OTelLogger.sendNonStandardEvent(e,t)},n.flushTelemetryQueue=function(){return OTel.OTelLogger.flushTelemetryQueue()},n.telemetrySink=OTel.OTelLogger}(Microsoft=Microsoft||{}),function(i){i.sendTelemetryEvent=function(e){Microsoft.Office.WebExtension.sendTelemetryEvent(e)},i.sendNonStandardEvent=function(e,t){Microsoft.Office.WebExtension.sendNonStandardEvent(e,t)},i.flushTelemetryQueue=function(){return Microsoft.Office.WebExtension.flushTelemetryQueue()},i.telemetrySink=Microsoft.Office.WebExtension.telemetrySink,i.isTrustedHost=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,6,,7]),OSF._OfficeAppFactory.getHostInfo().hostPlatform===OSF.HostInfoPlatform.web?[3,2]:[4,i.onReady()];case 1:return e.sent(),[2,!0];case 2:return null!=(t=OSF._OfficeAppFactory.getWebAppState().clientEndPoint)&&t.fHostTrusted||null!=document.referrer&&(n=OSF.OUtil.parseUrl(document.referrer,!1),"https:"==n.protocol&&OSF.XdmCommunicationManager.isHostNameValidWacDomain(n.hostname)&&!new RegExp("^"+document.domain.replace(new RegExp("\\.","g"),"\\.")+"$").test(n.hostname))?[2,!0]:null==t?[3,4]:[4,OSF.Utility.promisify(function(e){t.invoke("ContextActivationManager_getAppContextAsync",e,OSF._OfficeAppFactory.getWebAppState().id)},1e4)];case 3:return e.sent(),[2,!0];case 4:return[2,!1];case 5:return[3,7];case 6:return r=e.sent(),OSF.AppTelemetry&&OSF.AppTelemetry.logAppException("Exception happens at Office.isTrustedHost."+r),[2,!1];case 7:return[2]}})})},Microsoft.Office.WebExtension.onReadyInternal=i.onReadyInternal}(Office=Office||{});var OfficeExtension;__extends=this&&this.__extends||function(){var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}();!function(m){var a,e;(e=a=m.RemoteEndpointType||(m.RemoteEndpointType={})).graph="graph",e.wfe="wfe";var _=(t.prototype._resolveRequestUrlAndHeaderInfo=function(){return P._createPromiseFromResult(null)},t.prototype._createRequestExecutorOrNull=function(){return null},t.prototype.getEventRegistration=function(e){return null},t);function t(){}m.SessionBase=_;var s=(n.setCustomSendRequestFunc=function(e){n.s_customSendRequestFunc=e},n.xhrSendRequestFunc=function(i){return P.createPromise(function(t,e){var n=new XMLHttpRequest;if(n.open(i.method,i.url),n.onload=function(){var e={statusCode:n.status,headers:P._parseHttpResponseHeaders(n.getAllResponseHeaders()),body:n.responseText};t(e)},n.onerror=function(){e(new h.RuntimeError({code:g.connectionFailure,httpStatusCode:n.status,message:P._getResourceString(y.connectionFailureWithStatus,n.statusText)}))},i.headers)for(var r in i.headers)n.setRequestHeader(r,i.headers[r]);n.send(P._getRequestBodyText(i))})},n.fetchSendRequestFunc=function(e){var t=P._getRequestBodyText(e);return""===t&&(t=void 0),fetch(e.url,{method:e.method,headers:e.headers,body:t}).then(function(r){return r.text().then(function(e){var t=r.status,n={};return r.headers.forEach(function(e,t){n[t]=e}),{statusCode:t,headers:n,body:e}})})},n.sendRequest=function(e){n.validateAndNormalizeRequest(e);var t=n.s_customSendRequestFunc;return(t=t||("undefined"!=typeof fetch?n.fetchSendRequestFunc:n.xhrSendRequestFunc))(e)},n.setCustomSendLocalDocumentRequestFunc=function(e){n.s_customSendLocalDocumentRequestFunc=e},n.sendLocalDocumentRequest=function(e){return n.validateAndNormalizeRequest(e),(n.s_customSendLocalDocumentRequestFunc||n.officeJsSendLocalDocumentRequestFunc)(e)},n.officeJsSendLocalDocumentRequestFunc=function(e){e=P._validateLocalDocumentRequest(e);var t=P._buildRequestMessageSafeArray(e);return P.createPromise(function(n,e){OSF.DDA.RichApi.executeRichApiRequestAsync(t,function(e){var t;t="succeeded"==e.status?{statusCode:O.getResponseStatusCode(e),headers:O.getResponseHeaders(e),body:O.getResponseBody(e)}:O.buildHttpResponseFromOfficeJsError(e.error.code,e.error.message),P.log("Response:"),P.log(JSON.stringify(t)),n(t)})})},n.validateAndNormalizeRequest=function(e){if(P.isNullOrUndefined(e))throw h.RuntimeError._createInvalidArgError({argumentName:"request"});P.isNullOrEmptyString(e.method)&&(e.method="GET"),e.method=e.method.toUpperCase();var t=!1;if("object"==typeof e.headers&&e.headers[d.testRequestNameHeader]&&(t=!0),!t){var n=S._getCurrentTestNameWithSequenceId();n&&(e.headers||(e.headers={}),e.headers[d.testRequestNameHeader]=n)}},n.logRequest=function(e){if(P._logEnabled){if(P.log("---HTTP Request---"),P.log(e.method+" "+e.url),e.headers)for(var t in e.headers)P.log(t+": "+e.headers[t]);n._logBodyEnabled&&P.log(P._getRequestBodyText(e))}},n.logResponse=function(e){if(P._logEnabled){if(P.log("---HTTP Response---"),P.log(""+e.statusCode),e.headers)for(var t in e.headers)P.log(t+": "+e.headers[t]);n._logBodyEnabled&&P.log(e.body)}},n._logBodyEnabled=!1,n);function n(){}m.HttpUtility=s;var h,r,i,o,c=(l.init=function(e){if("object"==typeof e&&e){var a=new l(e);l.s_instance=a,s.setCustomSendLocalDocumentRequestFunc(function(e){e=P._validateLocalDocumentRequest(e);var t=0;P.isReadonlyRestRequest(e.method)||(t=1);var n=e.url.indexOf("?");if(0<=n){var r=e.url.substr(n+1),i=P._parseRequestFlagsAndCustomDataFromQueryStringIfAny(r);0<=i.flags&&(t=i.flags)}"string"==typeof e.body&&(e.body=JSON.parse(e.body));var o={id:l.nextId(),type:1,flags:t,message:e};return a.sendMessageToHostAndExpectResponse(o).then(function(e){return e.message})});for(var t=0;t<l.s_onInitedHandlers.length;t++)l.s_onInitedHandlers[t](a)}},Object.defineProperty(l,"instance",{get:function(){return l.s_instance},enumerable:!0,configurable:!0}),l.prototype.sendMessageToHost=function(e){this.m_bridge.sendMessageToHost(JSON.stringify(e))},l.prototype.sendMessageToHostAndExpectResponse=function(n){var r=this,e=P.createPromise(function(e,t){r.m_promiseResolver[n.id]=e});return this.m_bridge.sendMessageToHost(JSON.stringify(n)),e},l.prototype.addHostMessageHandler=function(e){this.m_handlers.push(e)},l.prototype.removeHostMessageHandler=function(e){var t=this.m_handlers.indexOf(e);0<=t&&this.m_handlers.splice(t,1)},l.onInited=function(e){l.s_onInitedHandlers.push(e),l.s_instance&&e(l.s_instance)},l.prototype.dispatchMessage=function(e){if("number"==typeof e.id){var t=this.m_promiseResolver[e.id];if(t)return t(e),void delete this.m_promiseResolver[e.id]}for(var n=0;n<this.m_handlers.length;n++)this.m_handlers[n](e)},l.nextId=function(){return l.s_nextId++},l.s_onInitedHandlers=[],l.s_nextId=1,l);function l(e){var a=this;this.m_bridge=e,this.m_promiseResolver={},this.m_handlers=[],this.m_bridge.onMessageFromHost=function(e){var t=JSON.parse(e);if(3==t.type){var n=t.message;if(n&&n.entries)for(var r=0;r<n.entries.length;r++){var i=n.entries[r];if(Array.isArray(i)){var o={messageCategory:i[0],messageType:i[1],targetId:i[2],message:i[3],id:i[4]};n.entries[r]=o}}}a.dispatchMessage(t)}}function u(e){var t=i.call(this,"string"==typeof e?e:e.message)||this;if(Object.setPrototypeOf(t,u.prototype),t.name="RichApi.Error","string"==typeof e?t.message=e:(t.code=e.code,t.message=e.message,t.traceMessages=e.traceMessages||[],t.innerError=e.innerError||null,t.debugInfo=t._createDebugInfo(e.debugInfo||{}),t.httpStatusCode=e.httpStatusCode,t.data=e.data),P.isNullOrUndefined(t.httpStatusCode)||200===t.httpStatusCode){var n={};n[g.accessDenied]=401,n[g.connectionFailure]=500,n[g.generalException]=500,n[g.invalidArgument]=400,n[g.invalidObjectPath]=400,n[g.invalidOrTimedOutSession]=408,n[g.invalidRequestContext]=400,n[g.timeout]=408,n[g.valueNotLoaded]=400,t.httpStatusCode=n[t.code]}return P.isNullOrUndefined(t.httpStatusCode)&&(t.httpStatusCode=500),t}m.HostBridge=c,"object"==typeof _richApiNativeBridge&&_richApiNativeBridge&&c.init(_richApiNativeBridge),r=h=m._Internal||(m._Internal={}),i=Error,__extends(u,i),u.prototype.toString=function(){return this.code+": "+this.message},u.prototype._createDebugInfo=function(e){var t={code:this.code,message:this.message,toString:function(){return JSON.stringify(this)}};for(var n in e)t[n]=e[n];return this.innerError&&(this.innerError instanceof r.RuntimeError?t.innerError=this.innerError.debugInfo:t.innerError=this.innerError),t},u._createInvalidArgError=function(e){return new r.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:P.isNullOrEmptyString(e.argumentName)?P._getResourceString(y.invalidArgumentGeneric):P._getResourceString(y.invalidArgument,e.argumentName),debugInfo:e.errorLocation?{errorLocation:e.errorLocation}:{},innerError:e.innerError})},o=u,r.RuntimeError=o,m.Error=h.RuntimeError;var g=(p.apiNotFound="ApiNotFound",p.accessDenied="AccessDenied",p.generalException="GeneralException",p.activityLimitReached="ActivityLimitReached",p.invalidArgument="InvalidArgument",p.connectionFailure="ConnectionFailure",p.timeout="Timeout",p.invalidOrTimedOutSession="InvalidOrTimedOutSession",p.invalidObjectPath="InvalidObjectPath",p.invalidRequestContext="InvalidRequestContext",p.valueNotLoaded="ValueNotLoaded",p.requestPayloadSizeLimitExceeded="RequestPayloadSizeLimitExceeded",p.responsePayloadSizeLimitExceeded="ResponsePayloadSizeLimitExceeded",p.writeNotSupportedWhenModalDialogOpen="WriteNotSupportedWhenModalDialogOpen",p.undoNotSupported="UndoNotSupported",p);function p(){}m.CoreErrorCodes=g;var y=(f.apiNotFoundDetails="ApiNotFoundDetails",f.connectionFailureWithStatus="ConnectionFailureWithStatus",f.connectionFailureWithDetails="ConnectionFailureWithDetails",f.invalidArgument="InvalidArgument",f.invalidArgumentGeneric="InvalidArgumentGeneric",f.timeout="Timeout",f.invalidOrTimedOutSessionMessage="InvalidOrTimedOutSessionMessage",f.invalidSheetName="InvalidSheetName",f.invalidObjectPath="InvalidObjectPath",f.invalidRequestContext="InvalidRequestContext",f.valueNotLoaded="ValueNotLoaded",f);function f(){}m.CoreResourceStrings=y;var d=(b.flags="flags",b.sourceLibHeader="SdkVersion",b.processQuery="ProcessQuery",b.localDocument="http://document.localhost/",b.localDocumentApiPrefix="http://document.localhost/_api/",b.customData="customdata",b.testRequestNameHeader="x-test-request-name",b);function b(){}m.CoreConstants=d;var v,O=(C.buildMessageArrayForIRequestExecutor=function(e,t,n,r,i){var o=JSON.stringify(n.Body);P.log("Request:"),P.log(o);var a={};return P._copyHeaders(n.Headers,a),a[d.sourceLibHeader]=r,C.buildRequestMessageSafeArray(e,t,"POST",d.processQuery,a,o,i)},C.buildResponseOnSuccess=function(e,t){var n={HttpStatusCode:200,ErrorCode:"",ErrorMessage:"",Headers:null,Body:null};return n.Body=JSON.parse(e),n.Headers=t,n},C.buildResponseOnError=function(e,t){var n={HttpStatusCode:500,ErrorCode:"",ErrorMessage:"",Headers:null,Body:null};return n.ErrorCode=g.generalException,n.ErrorMessage=t,e==C.OfficeJsErrorCode_ooeNoCapability?(n.ErrorCode=g.accessDenied,n.HttpStatusCode=401):e==C.OfficeJsErrorCode_ooeActivityLimitReached?(n.ErrorCode=g.activityLimitReached,n.HttpStatusCode=429):e==C.OfficeJsErrorCode_ooeInvalidOrTimedOutSession?(n.ErrorCode=g.invalidOrTimedOutSession,n.HttpStatusCode=408,n.ErrorMessage=P._getResourceString(y.invalidOrTimedOutSessionMessage)):e==C.OfficeJsErrorCode_ooeRequestPayloadSizeLimitExceeded?(n.ErrorCode=g.requestPayloadSizeLimitExceeded,n.HttpStatusCode=400):e==C.OfficeJsErrorCode_ooeResponsePayloadSizeLimitExceeded?(n.ErrorCode=g.responsePayloadSizeLimitExceeded,n.HttpStatusCode=400):e==C.OfficeJsErrorCode_ooeWriteNotSupportedWhenModalDialogOpen?(n.ErrorCode=g.writeNotSupportedWhenModalDialogOpen,n.HttpStatusCode=400):e==C.OfficeJsErrorCode_ooeInvalidSheetName?(n.ErrorCode=g.invalidRequestContext,n.HttpStatusCode=400,n.ErrorMessage=P._getResourceString(y.invalidSheetName)):e==C.OfficeJsErrorCode_ooeUndoNotSupported&&(n.ErrorCode=g.undoNotSupported,n.HttpStatusCode=400),n},C.buildHttpResponseFromOfficeJsError=function(e,t){var n=500,r={error:{}};return r.error.code=g.generalException,r.error.message=t,e===C.OfficeJsErrorCode_ooeNoCapability?(n=403,r.error.code=g.accessDenied):e===C.OfficeJsErrorCode_ooeActivityLimitReached&&(n=429,r.error.code=g.activityLimitReached),{statusCode:n,headers:{},body:JSON.stringify(r)}},C.buildRequestMessageSafeArray=function(e,t,n,r,i,o,a){var s=[];if(i)for(var c in i)s.push(c),s.push(i[c]);return[e,n,r,s,o,0,t,"","","","","",""].concat(a?["",a]:[])},C.getResponseBody=function(e){return C.getResponseBodyFromSafeArray(e.value.data)},C.getResponseHeaders=function(e){return C.getResponseHeadersFromSafeArray(e.value.data)},C.getResponseBodyFromSafeArray=function(e){var t=e[2];return"string"==typeof t?t:t.join("")},C.getResponseHeadersFromSafeArray=function(e){var t=e[1];if(!t)return null;for(var n={},r=0;r<t.length-1;r+=2)n[t[r]]=t[r+1];return n},C.getResponseStatusCode=function(e){return C.getResponseStatusCodeFromSafeArray(e.value.data)},C.getResponseStatusCodeFromSafeArray=function(e){return e[0]},C.OfficeJsErrorCode_ooeInvalidOrTimedOutSession=5012,C.OfficeJsErrorCode_ooeActivityLimitReached=5102,C.OfficeJsErrorCode_ooeNoCapability=7e3,C.OfficeJsErrorCode_ooeRequestPayloadSizeLimitExceeded=5103,C.OfficeJsErrorCode_ooeResponsePayloadSizeLimitExceeded=5104,C.OfficeJsErrorCode_ooeWriteNotSupportedWhenModalDialogOpen=5016,C.OfficeJsErrorCode_ooeInvalidSheetName=1014,C.OfficeJsErrorCode_ooeUndoNotSupported=5017,C);function C(){}m.RichApiMessageUtility=O,(v=h=m._Internal||(m._Internal={})).getPromiseType=function(){if("undefined"!=typeof Promise)return Promise;if(void 0!==Office&&Office.Promise)return Office.Promise;if(void 0!==OfficeExtension&&OfficeExtension.Promise)return OfficeExtension.Promise;throw new v.Error("No Promise implementation found")};var P=(R.log=function(e){R._logEnabled&&"undefined"!=typeof console&&console.log&&console.log(e)},R.checkArgumentNull=function(e,t){if(R.isNullOrUndefined(e))throw h.RuntimeError._createInvalidArgError({argumentName:t})},R.isNullOrUndefined=function(e){return null==e},R.isUndefined=function(e){return void 0===e},R.isNullOrEmptyString=function(e){return null==e||0==e.length},R.isPlainJsonObject=function(e){if(R.isNullOrUndefined(e))return!1;if("object"!=typeof e)return!1;if("[object Object]"!==Object.prototype.toString.apply(e))return!1;if(e.constructor&&!Object.prototype.hasOwnProperty.call(e,"constructor")&&!Object.prototype.hasOwnProperty.call(e.constructor.prototype,"hasOwnProperty"))return!1;for(var t in e)if(!Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},R.trim=function(e){return e.replace(new RegExp("^\\s+|\\s+$","g"),"")},R.caseInsensitiveCompareString=function(e,t){return R.isNullOrUndefined(e)?R.isNullOrUndefined(t):!R.isNullOrUndefined(t)&&e.toUpperCase()==t.toUpperCase()},R.isReadonlyRestRequest=function(e){return R.caseInsensitiveCompareString(e,"GET")},R._getResourceString=function(e,t){var n;if("undefined"!=typeof window&&window.Strings&&window.Strings.OfficeOM){var r="L_"+e,i=window.Strings.OfficeOM[r];i&&(n=i)}return n=(n=n||R.s_resourceStringValues[e])||e,R.isNullOrUndefined(t)||(n=Array.isArray(t)?R._formatString(n,t):n.replace("{0}",t)),n},R._formatString=function(e,n){return e.replace(/\{\d\}/g,function(e){var t=parseInt(e.substr(1,e.length-2));if(t<n.length)return n[t];throw h.RuntimeError._createInvalidArgError({argumentName:"format"})})},Object.defineProperty(R,"Promise",{get:function(){return h.getPromiseType()},enumerable:!0,configurable:!0}),R.createPromise=function(e){return new R.Promise(e)},R._createPromiseFromResult=function(n){return R.createPromise(function(e,t){e(n)})},R._createPromiseFromException=function(n){return R.createPromise(function(e,t){t(n)})},R._createTimeoutPromise=function(n){return R.createPromise(function(e,t){setTimeout(function(){e(null)},n)})},R._createInvalidArgError=function(e){return h.RuntimeError._createInvalidArgError(e)},R._isLocalDocumentUrl=function(e){return 0<R._getLocalDocumentUrlPrefixLength(e)},R._getLocalDocumentUrlPrefixLength=function(e){for(var t=["http://document.localhost","https://document.localhost","//document.localhost"],n=e.toLowerCase().trim(),r=0;r<t.length;r++){if(n===t[r])return t[r].length;if(n.substr(0,t[r].length+1)===t[r]+"/")return t[r].length+1}return 0},R._validateLocalDocumentRequest=function(e){var t=R._getLocalDocumentUrlPrefixLength(e.url);if(t<=0)throw h.RuntimeError._createInvalidArgError({argumentName:"request"});var n=e.url.substr(t),r=n.toLowerCase();return"_api"===r?n="":"_api/"===r.substr(0,"_api/".length)&&(n=n.substr("_api/".length)),{method:e.method,url:n,headers:e.headers,body:e.body}},R._parseRequestFlagsAndCustomDataFromQueryStringIfAny=function(e){for(var t={flags:-1,customData:""},n=e.split("&"),r=0;r<n.length;r++){var i=n[r].split("=");if(i[0].toLowerCase()===d.flags){var o=parseInt(i[1]);o&=65535,t.flags=o}else i[0].toLowerCase()===d.customData&&(t.customData=decodeURIComponent(i[1]))}return t},R._getRequestBodyText=function(e){var t="";return"string"==typeof e.body?t=e.body:e.body&&"object"==typeof e.body&&(t=JSON.stringify(e.body)),t},R._parseResponseBody=function(e){if("string"!=typeof e.body)return e.body;var t=R.trim(e.body);return JSON.parse(t)},R._buildRequestMessageSafeArray=function(e){var t=0;R.isReadonlyRestRequest(e.method)||(t=1);var n="";if(e.url.substr(0,d.processQuery.length).toLowerCase()===d.processQuery.toLowerCase()){var r=e.url.indexOf("?");if(0<r){var i=e.url.substr(r+1),o=R._parseRequestFlagsAndCustomDataFromQueryStringIfAny(i);0<=o.flags&&(t=o.flags),n=o.customData}}return O.buildRequestMessageSafeArray(n,t,e.method,e.url,e.headers,R._getRequestBodyText(e))},R._parseHttpResponseHeaders=function(e){var t={};if(!R.isNullOrEmptyString(e))for(var n=new RegExp("\r?\n"),r=e.split(n),i=0;i<r.length;i++){var o=r[i];if(null!=o){var a=o.indexOf(":");if(0<a){var s=o.substr(0,a),c=o.substr(a+1);s=R.trim(s),c=R.trim(c),t[s.toUpperCase()]=c}}}return t},R._parseErrorResponse=function(e){var t=R._parseErrorResponseBody(e),n=e.statusCode.toString();if(R.isNullOrUndefined(t)||"object"!=typeof t||!t.error)return R._createDefaultErrorResponse(n);var r=t.error,i=r.innerError;return i&&i.code?R._createErrorResponse(i.code,n,i.message):r.code?R._createErrorResponse(r.code,n,r.message):R._createDefaultErrorResponse(n)},R._parseErrorResponseBody=function(e){if(R.isPlainJsonObject(e.body))return e.body;if(!R.isNullOrEmptyString(e.body)){var t=R.trim(e.body);try{return JSON.parse(t)}catch(e){R.log("Error when parse "+t)}}},R._createDefaultErrorResponse=function(e){return{errorCode:g.connectionFailure,errorMessage:R._getResourceString(y.connectionFailureWithStatus,e)}},R._createErrorResponse=function(e,t,n){return{errorCode:e,errorMessage:R._getResourceString(y.connectionFailureWithDetails,[t,e,n])}},R._copyHeaders=function(e,t){if(e&&t)for(var n in e)t[n]=e[n]},R.addResourceStringValues=function(e){for(var t in e)R.s_resourceStringValues[t]=e[t]},R._logEnabled=!1,R.s_resourceStringValues={ApiNotFoundDetails:"The method or property {0} is part of the {1} requirement set, which is not available in your version of {2}.",ConnectionFailureWithStatus:"The request failed with status code of {0}.",ConnectionFailureWithDetails:"The request failed with status code of {0}, error code {1} and the following error message: {2}",InvalidArgument:"The argument '{0}' doesn't work for this situation, is missing, or isn't in the right format.",InvalidObjectPath:'The object path \'{0}\' isn\'t working for what you\'re trying to do. If you\'re using the object across multiple "context.sync" calls and outside the sequential execution of a ".run" batch, please use the "context.trackedObjects.add()" and "context.trackedObjects.remove()" methods to manage the object\'s lifetime.',InvalidRequestContext:"Cannot use the object across different request contexts.",Timeout:"The operation has timed out.",ValueNotLoaded:'The value of the result object has not been loaded yet. Before reading the value property, call "context.sync()" on the associated request context.'},R);function R(){}m.CoreUtility=P;var S=(I.setMock=function(e){I.s_isMock=e},I.isMock=function(){return I.s_isMock},I._setCurrentTestName=function(e){I.s_currentTestName=e,I.s_currentTestSequenceId=0},I._getCurrentTestNameWithSequenceId=function(){return I.s_currentTestName?I.s_currentTestName+"."+ ++I.s_currentTestSequenceId:null},I);function I(){}m.TestUtility=S,m._internalConfig={showDisposeInfoInDebugInfo:!1,showInternalApiInDebugInfo:!1,enableEarlyDispose:!0,alwaysPolyfillClientObjectUpdateMethod:!1,alwaysPolyfillClientObjectRetrieveMethod:!1,enableConcurrentFlag:!0,enableUndoableFlag:!0,appendTypeNameToObjectPathInfo:!1,enablePreviewExecution:!1},m.config={extendedErrorLogging:!1};var T=(A.createSetPropertyAction=function(e,t,n,r,i){Y.validateObjectPath(t);var o={Id:e._nextId(),ActionType:4,Name:n,ObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}},a=[r],s=Y.setMethodArguments(e,o.ArgumentInfo,a);Y.validateReferencedObjectPaths(s);var c=new E(o,0,i);if(c.referencedObjectPath=t._objectPath,c.referencedArgumentObjectPaths=s,m._internalConfig.enablePreviewExecution&&0!=(16&i)){var l={Id:e._nextId(),ActionType:4,Name:n,ObjectId:"",ObjectType:"",Arguments:[r]};t._addPreviewExecutionAction(l)}return t._addAction(c)},A.createQueryAction=function(e,t,n,r){Y.validateObjectPath(t);var i={Id:e._nextId(),ActionType:2,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,QueryInfo:n},o=new E(i,1,4);return o.referencedObjectPath=t._objectPath,t._addAction(o,r)},A.createQueryAsJsonAction=function(e,t,n,r){Y.validateObjectPath(t);var i={Id:e._nextId(),ActionType:7,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,QueryInfo:n},o=new E(i,1,4);return o.referencedObjectPath=t._objectPath,t._addAction(o,r)},A.createUpdateAction=function(e,t,n){Y.validateObjectPath(t);var r={Id:e._nextId(),ActionType:9,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,ObjectState:n},i=new E(r,0,0);return i.referencedObjectPath=t._objectPath,t._addAction(i)},A);function A(){}m.CommonActionFactory=T;var N=(Object.defineProperty(x.prototype,"_objectPath",{get:function(){return this.m_objectPath},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"_context",{get:function(){return this.m_contextBase},enumerable:!0,configurable:!0}),x.prototype._addAction=function(n,r){var i=this;return void 0===r&&(r=null),P.createPromise(function(e,t){i._context._addServiceApiAction(n,r,e,t)})},x.prototype._addPreviewExecutionAction=function(e){},x.prototype._retrieve=function(e,t){var n=m._internalConfig.alwaysPolyfillClientObjectRetrieveMethod;n=n||!Y.isSetSupported("RichApiRuntime","1.1");var r=k._parseQueryOption(e);return n?T.createQueryAction(this._context,this,r,t):T.createQueryAsJsonAction(this._context,this,r,t)},x.prototype._recursivelyUpdate=function(e){var t=m._internalConfig.alwaysPolyfillClientObjectUpdateMethod;t=t||!Y.isSetSupported("RichApiRuntime","1.2");try{var n=this[J.scalarPropertyNames];n=n||[];var r=this[J.scalarPropertyUpdateable];if(!r){r=[];for(var i=0;i<n.length;i++)r.push(!1)}var o=this[J.navigationPropertyNames];o=o||[];var a={},s={},c=0;for(var l in e){var u=n.indexOf(l);if(0<=u){if(!r[u])throw new h.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:P._getResourceString(ee.attemptingToSetReadOnlyProperty,l),debugInfo:{errorLocation:l}});a[l]=e[l],++c}else{if(!(0<=o.indexOf(l)))throw new h.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:P._getResourceString(ee.propertyDoesNotExist,l),debugInfo:{errorLocation:l}});s[l]=e[l]}}if(0<c)if(t)for(i=0;i<n.length;i++){var p=a[l=n[i]];Y.isUndefined(p)||T.createSetPropertyAction(this._context,this,l,p)}else T.createUpdateAction(this._context,this,a);for(var l in s){var f=this[l],d=s[l];f._recursivelyUpdate(d)}}catch(e){throw new h.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:P._getResourceString(y.invalidArgument,"properties"),debugInfo:{errorLocation:this._className+".update"},innerError:e})}},x);function x(e,t){this.m_contextBase=e,this.m_objectPath=t}m.ClientObjectBase=N;var E=(Object.defineProperty(D.prototype,"actionInfo",{get:function(){return this.m_actionInfo},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"operationType",{get:function(){return this.m_operationType},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"flags",{get:function(){return this.m_flags},enumerable:!0,configurable:!0}),D);function D(e,t,n){this.m_actionInfo=e,this.m_operationType=t,this.m_flags=n}m.Action=E;var j=(Object.defineProperty(w.prototype,"id",{get:function(){var e=this.m_objectPathInfo.ArgumentInfo;if(e){var t=e.Arguments;if(t)return t[0]}},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"parent",{get:function(){var e=this.m_parentObjectPath;if(e)return e},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"parentId",{get:function(){return this.parent?this.parent.id:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"objectPathInfo",{get:function(){return this.m_objectPathInfo},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"operationType",{get:function(){return this.m_operationType},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"flags",{get:function(){return this.m_flags},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"isCollection",{get:function(){return this.m_isCollection},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"isInvalidAfterRequest",{get:function(){return this.m_isInvalidAfterRequest},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"parentObjectPath",{get:function(){return this.m_parentObjectPath},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"argumentObjectPaths",{get:function(){return this.m_argumentObjectPaths},set:function(e){this.m_argumentObjectPaths=e},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"isValid",{get:function(){return this.m_isValid},set:function(e){!(this.m_isValid=e)&&6===this.m_objectPathInfo.ObjectPathType&&this.m_savedObjectPathInfo&&(w.copyObjectPathInfo(this.m_savedObjectPathInfo.pathInfo,this.m_objectPathInfo),this.m_parentObjectPath=this.m_savedObjectPathInfo.parent,this.m_isValid=!0,this.m_savedObjectPathInfo=null)},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"originalObjectPathInfo",{get:function(){return this.m_originalObjectPathInfo},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"getByIdMethodName",{get:function(){return this.m_getByIdMethodName},set:function(e){this.m_getByIdMethodName=e},enumerable:!0,configurable:!0}),w.prototype._updateAsNullObject=function(){this.resetForUpdateUsingObjectData(),this.m_objectPathInfo.ObjectPathType=7,this.m_objectPathInfo.Name="",this.m_parentObjectPath=null},w.prototype.saveOriginalObjectPathInfo=function(){m.config.extendedErrorLogging&&!this.m_originalObjectPathInfo&&(this.m_originalObjectPathInfo={},w.copyObjectPathInfo(this.m_objectPathInfo,this.m_originalObjectPathInfo))},w.prototype.updateUsingObjectData=function(e,t){var n=e[J.referenceId];if(!P.isNullOrEmptyString(n)){if(!this.m_savedObjectPathInfo&&!this.isInvalidAfterRequest&&w.isRestorableObjectPath(this.m_objectPathInfo.ObjectPathType)){var r={};w.copyObjectPathInfo(this.m_objectPathInfo,r),this.m_savedObjectPathInfo={pathInfo:r,parent:this.m_parentObjectPath}}return this.saveOriginalObjectPathInfo(),this.resetForUpdateUsingObjectData(),this.m_objectPathInfo.ObjectPathType=6,this.m_objectPathInfo.Name=n,delete this.m_objectPathInfo.ParentObjectPathId,void(this.m_parentObjectPath=null)}if(t){var i=t[J.collectionPropertyPath];if(!P.isNullOrEmptyString(i)&&t.context){var o=Y.tryGetObjectIdFromLoadOrRetrieveResult(e);if(!P.isNullOrUndefined(o)){for(var a=i.split("."),s=t.context[a[0]],c=1;c<a.length;c++)s=s[a[c]];return this.saveOriginalObjectPathInfo(),this.resetForUpdateUsingObjectData(),this.m_parentObjectPath=s._objectPath,this.m_objectPathInfo.ParentObjectPathId=this.m_parentObjectPath.objectPathInfo.Id,this.m_objectPathInfo.ObjectPathType=5,this.m_objectPathInfo.Name="",void(this.m_objectPathInfo.ArgumentInfo.Arguments=[o])}}}var l=this.parentObjectPath&&this.parentObjectPath.isCollection,u=this.getByIdMethodName;if((l||!P.isNullOrEmptyString(u))&&(o=Y.tryGetObjectIdFromLoadOrRetrieveResult(e),!P.isNullOrUndefined(o)))return this.saveOriginalObjectPathInfo(),this.resetForUpdateUsingObjectData(),P.isNullOrEmptyString(u)?(this.m_objectPathInfo.ObjectPathType=5,this.m_objectPathInfo.Name=""):(this.m_objectPathInfo.ObjectPathType=3,this.m_objectPathInfo.Name=u),void(this.m_objectPathInfo.ArgumentInfo.Arguments=[o])},w.prototype.resetForUpdateUsingObjectData=function(){this.m_isInvalidAfterRequest=!1,this.m_isValid=!0,this.m_operationType=1,this.m_flags=4,this.m_objectPathInfo.ArgumentInfo={},this.m_argumentObjectPaths=null,this.m_getByIdMethodName=null},w.isRestorableObjectPath=function(e){return 1===e||5===e||3===e||4===e},w.copyObjectPathInfo=function(e,t){t.Id=e.Id,t.ArgumentInfo=e.ArgumentInfo,t.Name=e.Name,t.ObjectPathType=e.ObjectPathType,t.ParentObjectPathId=e.ParentObjectPathId},w);function w(e,t,n,r,i,o){this.m_objectPathInfo=e,this.m_parentObjectPath=t,this.m_isCollection=n,this.m_isInvalidAfterRequest=r,this.m_isValid=!0,this.m_operationType=i,this.m_flags=o}m.ObjectPath=j;var k=(F.prototype._nextId=function(){return++this.m_nextId},F.prototype._addServiceApiAction=function(e,t,n,r){this.m_serviceApiQueue||(this.m_serviceApiQueue=new G(this)),this.m_serviceApiQueue.add(e,t,n,r)},F._parseQueryOption=function(e){var t={};if("string"==typeof e){var n=e;t.Select=Y._parseSelectExpand(n)}else if(Array.isArray(e))t.Select=e;else if("object"==typeof e){var r=e;if(F.isLoadOption(r)){if("string"==typeof r.select)t.Select=Y._parseSelectExpand(r.select);else if(Array.isArray(r.select))t.Select=r.select;else if(!Y.isNullOrUndefined(r.select))throw h.RuntimeError._createInvalidArgError({argumentName:"option.select"});if("string"==typeof r.expand)t.Expand=Y._parseSelectExpand(r.expand);else if(Array.isArray(r.expand))t.Expand=r.expand;else if(!Y.isNullOrUndefined(r.expand))throw h.RuntimeError._createInvalidArgError({argumentName:"option.expand"});if("number"==typeof r.top)t.Top=r.top;else if(!Y.isNullOrUndefined(r.top))throw h.RuntimeError._createInvalidArgError({argumentName:"option.top"});if("number"==typeof r.skip)t.Skip=r.skip;else if(!Y.isNullOrUndefined(r.skip))throw h.RuntimeError._createInvalidArgError({argumentName:"option.skip"})}else t=F.parseStrictLoadOption(e)}else if(!Y.isNullOrUndefined(e))throw h.RuntimeError._createInvalidArgError({argumentName:"option"});return t},F.isLoadOption=function(e){if(!Y.isUndefined(e.select)&&("string"==typeof e.select||Array.isArray(e.select)))return!0;if(!Y.isUndefined(e.expand)&&("string"==typeof e.expand||Array.isArray(e.expand)))return!0;if(!Y.isUndefined(e.top)&&"number"==typeof e.top)return!0;if(!Y.isUndefined(e.skip)&&"number"==typeof e.skip)return!0;for(var t in e)return!1;return!0},F.parseStrictLoadOption=function(e){var t={Select:[]};return F.parseStrictLoadOptionHelper(t,"","option",e),t},F.combineQueryPath=function(e,t,n){return 0===e.length?t:e+n+t},F.parseStrictLoadOptionHelper=function(e,t,n,r){for(var i in r){var o=r[i];if("$all"===i){if("boolean"!=typeof o)throw h.RuntimeError._createInvalidArgError({argumentName:F.combineQueryPath(n,i,".")});o&&e.Select.push(F.combineQueryPath(t,"*","/"))}else if("$top"===i){if("number"!=typeof o||0<t.length)throw h.RuntimeError._createInvalidArgError({argumentName:F.combineQueryPath(n,i,".")});e.Top=o}else if("$skip"===i){if("number"!=typeof o||0<t.length)throw h.RuntimeError._createInvalidArgError({argumentName:F.combineQueryPath(n,i,".")});e.Skip=o}else if("boolean"==typeof o)o&&e.Select.push(F.combineQueryPath(t,i,"/"));else{if("object"!=typeof o)throw h.RuntimeError._createInvalidArgError({argumentName:F.combineQueryPath(n,i,".")});F.parseStrictLoadOptionHelper(e,F.combineQueryPath(t,i,"/"),F.combineQueryPath(n,i,"."),o)}}},F);function F(){this.m_nextId=0}m.ClientRequestContextBase=k;var L=(M.prototype._handleResult=function(e){P.isNullOrUndefined(e)?this.m_objectPath._updateAsNullObject():this.m_objectPath.updateUsingObjectData(e,null)},M);function M(e){this.m_objectPath=e}var B=(H.prototype.addAction=function(e){this.m_actions.push(e),1==e.actionInfo.ActionType&&(this.m_instantiatedObjectPaths[e.actionInfo.ObjectPathId]=e)},H.prototype.addPreviewExecutionAction=function(e){this.m_previewExecutionActions.push(e)},Object.defineProperty(H.prototype,"hasActions",{get:function(){return 0<this.m_actions.length},enumerable:!0,configurable:!0}),H.prototype._getLastAction=function(){return this.m_actions[this.m_actions.length-1]},H.prototype.ensureInstantiateObjectPath=function(e){if(e){if(this.m_instantiatedObjectPaths[e.objectPathInfo.Id])return;if(this.ensureInstantiateObjectPath(e.parentObjectPath),this.ensureInstantiateObjectPaths(e.argumentObjectPaths),!this.m_instantiatedObjectPaths[e.objectPathInfo.Id]){var t={Id:this.m_contextBase._nextId(),ActionType:1,Name:"",ObjectPathId:e.objectPathInfo.Id},n=new E(t,1,4);n.referencedObjectPath=e,this.addReferencedObjectPath(e),this.addAction(n);var r=new L(e);this.addActionResultHandler(n,r)}}},H.prototype.ensureInstantiateObjectPaths=function(e){if(e)for(var t=0;t<e.length;t++)this.ensureInstantiateObjectPath(e[t])},H.prototype.addReferencedObjectPath=function(e){if(e&&!this.m_referencedObjectPaths[e.objectPathInfo.Id]){if(!e.isValid)throw new h.RuntimeError({code:g.invalidObjectPath,httpStatusCode:400,message:P._getResourceString(y.invalidObjectPath,Y.getObjectPathExpression(e)),debugInfo:{errorLocation:Y.getObjectPathExpression(e)}});for(;e;)3==(this.m_referencedObjectPaths[e.objectPathInfo.Id]=e).objectPathInfo.ObjectPathType&&this.addReferencedObjectPaths(e.argumentObjectPaths),e=e.parentObjectPath}},H.prototype.addReferencedObjectPaths=function(e){if(e)for(var t=0;t<e.length;t++)this.addReferencedObjectPath(e[t])},H.prototype.addActionResultHandler=function(e,t){this.m_actionResultHandler[e.actionInfo.Id]=t},H.prototype.aggregrateRequestFlags=function(e,t,n){return 0===t&&(e|=1,0==(2&n)&&(e&=-17),0==(8&n)&&(e&=-257),e&=-5),1&n&&(e|=2),0==(4&n)&&(e&=-5),e},H.prototype.finallyNormalizeFlags=function(e){return 0==(1&e)&&(e&=-17,e&=-257),m._internalConfig.enableConcurrentFlag||(e&=-5),m._internalConfig.enableUndoableFlag||(e&=-17),Y.isSetSupported("RichApiRuntimeFlag","1.1")||(e&=-5,e&=-17),Y.isSetSupported("RichApiRuntimeFlag","1.2")||(e&=-257),"number"==typeof this.m_flagsForTesting&&(e=this.m_flagsForTesting),e},H.prototype.buildRequestMessageBodyAndRequestFlags=function(){m._internalConfig.enableEarlyDispose&&H._calculateLastUsedObjectPathIds(this.m_actions);var e=276,t={};for(var n in this.m_referencedObjectPaths)e=this.aggregrateRequestFlags(e,this.m_referencedObjectPaths[n].operationType,this.m_referencedObjectPaths[n].flags),t[n]=this.m_referencedObjectPaths[n].objectPathInfo;for(var r=[],i=!1,o=0;o<this.m_actions.length;o++){var a=this.m_actions[o];3===a.actionInfo.ActionType&&a.actionInfo.Name===J.keepReference&&(i=!0),e=this.aggregrateRequestFlags(e,a.operationType,a.flags),r.push(a.actionInfo)}e=this.finallyNormalizeFlags(e);var s={AutoKeepReference:this.m_contextBase._autoCleanup&&i,Actions:r,ObjectPaths:t};return 0<this.m_previewExecutionActions.length&&(s.PreviewExecutionActions=this.m_previewExecutionActions,e|=4096),{body:s,flags:e}},H.prototype.processResponse=function(e){if(e)for(var t=0;t<e.length;t++){var n=e[t],r=this.m_actionResultHandler[n.ActionId];r&&r._handleResult(n.Value)}},H.prototype.invalidatePendingInvalidObjectPaths=function(){for(var e in this.m_referencedObjectPaths)this.m_referencedObjectPaths[e].isInvalidAfterRequest&&(this.m_referencedObjectPaths[e].isValid=!1)},H.prototype._addPreSyncPromise=function(e){this.m_preSyncPromises.push(e)},Object.defineProperty(H.prototype,"_preSyncPromises",{get:function(){return this.m_preSyncPromises},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"_actions",{get:function(){return this.m_actions},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"_objectPaths",{get:function(){return this.m_referencedObjectPaths},enumerable:!0,configurable:!0}),H.prototype._removeKeepReferenceAction=function(e){for(var t=this.m_actions.length-1;0<=t;t--){var n=this.m_actions[t].actionInfo;if(n.ObjectPathId===e&&3===n.ActionType&&n.Name===J.keepReference){this.m_actions.splice(t,1);break}}},H._updateLastUsedActionIdOfObjectPathId=function(e,t,n){for(;t;){if(e[t.objectPathInfo.Id])return;e[t.objectPathInfo.Id]=n;var r=t.argumentObjectPaths;if(r)for(var i=r.length,o=0;o<i;o++)H._updateLastUsedActionIdOfObjectPathId(e,r[o],n);t=t.parentObjectPath}},H._calculateLastUsedObjectPathIds=function(e){for(var t={},n=e.length,r=n-1;0<=r;--r){var i=(p=e[r]).actionInfo.Id;p.referencedObjectPath&&H._updateLastUsedActionIdOfObjectPathId(t,p.referencedObjectPath,i);var o=p.referencedArgumentObjectPaths;if(o)for(var a=o.length,s=0;s<a;s++)H._updateLastUsedActionIdOfObjectPathId(t,o[s],i)}var c={};for(var l in t){var u=c[i=t[l]];u||(u=[],c[i]=u),u.push(parseInt(l))}for(r=0;r<n;r++){var p,f=c[(p=e[r]).actionInfo.Id];f&&0<f.length?p.actionInfo.L=f:p.actionInfo.L&&delete p.actionInfo.L}},H);function H(e){this.m_contextBase=e,this.m_actions=[],this.m_actionResultHandler={},this.m_referencedObjectPaths={},this.m_instantiatedObjectPaths={},this.m_preSyncPromises=[],this.m_previewExecutionActions=[]}m.ClientRequestBase=B;var U=(Object.defineProperty(W.prototype,"value",{get:function(){if(!this.m_isLoaded)throw new h.RuntimeError({code:g.valueNotLoaded,httpStatusCode:400,message:P._getResourceString(y.valueNotLoaded),debugInfo:{errorLocation:"clientResult.value"}});return this.m_value},enumerable:!0,configurable:!0}),W.prototype._handleResult=function(e){this.m_isLoaded=!0,"object"==typeof e&&e&&e._IsNull||(1===this.m_type?this.m_value=Y.adjustToDateTime(e):this.m_value=e)},W);function W(e){this.m_type=e}m.ClientResult=U;var G=(V.prototype.add=function(e,t,n,r){var i=this;this.m_actions.push({action:e,resultHandler:t,resolve:n,reject:r}),1===this.m_actions.length&&setTimeout(function(){return i.processActions()},0)},V.prototype.processActions=function(){var t=this;if(0!==this.m_actions.length){var n=this.m_actions;this.m_actions=[];for(var r=new B(this.m_context),e=0;e<n.length;e++){var i=n[e];r.ensureInstantiateObjectPath(i.action.referencedObjectPath),r.ensureInstantiateObjectPaths(i.action.referencedArgumentObjectPaths),r.addAction(i.action),r.addReferencedObjectPath(i.action.referencedObjectPath),r.addReferencedObjectPaths(i.action.referencedArgumentObjectPaths)}var o=r.buildRequestMessageBodyAndRequestFlags(),a=o.body,s=o.flags,c={Url:d.localDocumentApiPrefix,Headers:null,Body:a};P.log("Request:"),P.log(JSON.stringify(a)),(new q).executeAsync(this.m_context._customData,s,c).then(function(e){t.processResponse(r,n,e)}).catch(function(e){for(var t=0;t<n.length;t++)n[t].reject(e)})}},V.prototype.processResponse=function(e,t,n){var r=this.getErrorFromResponse(n),i=null;n.Body.Results?i=n.Body.Results:n.Body.ProcessedResults&&n.Body.ProcessedResults.Results&&(i=n.Body.ProcessedResults.Results),i=i||[],this.processActionResults(e,t,i,r)},V.prototype.getErrorFromResponse=function(e){return P.isNullOrEmptyString(e.ErrorCode)?e.Body&&e.Body.Error?new h.RuntimeError({code:e.Body.Error.Code,httpStatusCode:e.Body.Error.HttpStatusCode,message:e.Body.Error.Message}):null:new h.RuntimeError({code:e.ErrorCode,httpStatusCode:e.HttpStatusCode,message:e.ErrorMessage})},V.prototype.processActionResults=function(e,t,n,r){e.processResponse(n);for(var i=0;i<t.length;i++){for(var o=t[i],a=o.action.actionInfo.Id,s=!1,c=0;c<n.length;c++)if(a==n[c].ActionId){var l=n[c].Value;o.resultHandler&&(o.resultHandler._handleResult(l),l=o.resultHandler.value),o.resolve&&o.resolve(l),s=!0;break}!s&&o.reject&&(r?o.reject(r):o.reject("No response for the action."))}},V);function V(e){this.m_context=e,this.m_actions=[]}var q=(z.prototype.getRequestUrl=function(e,t,n){void 0===n&&(n=a.graph.toString());var r=d.flags+"="+t.toString();switch(n){case a.graph.toString():"/"!=e.charAt(e.length-1)&&(e+="/"),e=(e+=d.processQuery)+"?"+r;break;case a.wfe.toString():e=(e=e+"&"+r)+"&wdRestPart=_api/"+d.processQuery}return e},z.prototype.executeAsync=function(e,t,n){var r=n.Headers?n.Headers[J.remoteEndpointTypeHeaderKey]:a.graph.toString(),i={method:"POST",url:this.getRequestUrl(n.Url,t,r),headers:{},body:n.Body};if(i.headers[d.sourceLibHeader]=z.SourceLibHeaderValue,i.headers["CONTENT-TYPE"]="application/json",n.Headers)for(var o in n.Headers)i.headers[o]=n.Headers[o];return(P._isLocalDocumentUrl(i.url)?s.sendLocalDocumentRequest:s.sendRequest)(i).then(function(e){var t;if(200===e.statusCode)t={HttpStatusCode:e.statusCode,ErrorCode:null,ErrorMessage:null,Headers:e.headers,Body:P._parseResponseBody(e)};else{P.log("Error Response:"+e.body);var n=P._parseErrorResponse(e);t={HttpStatusCode:e.statusCode,ErrorCode:n.errorCode,ErrorMessage:n.errorMessage,Headers:e.headers,Body:null,RawErrorResponseBody:P._parseErrorResponseBody(e)}}return t})},z.SourceLibHeaderValue="officejs-rest",z);function z(){}m.HttpRequestExecutor=q;var K,J=(__extends(X,K=d),X.collectionPropertyPath="_collectionPropertyPath",X.id="Id",X.idLowerCase="id",X.idPrivate="_Id",X.keepReference="_KeepReference",X.objectPathIdPrivate="_ObjectPathId",X.referenceId="_ReferenceId",X.items="_Items",X.itemsLowerCase="items",X.scalarPropertyNames="_scalarPropertyNames",X.scalarPropertyOriginalNames="_scalarPropertyOriginalNames",X.navigationPropertyNames="_navigationPropertyNames",X.scalarPropertyUpdateable="_scalarPropertyUpdateable",X.previewExecutionObjectId="_previewExecutionObjectId",X.remoteEndpointTypeHeaderKey="X-EndpointType",X);function X(){return null!==K&&K.apply(this,arguments)||this}m.CommonConstants=J;var Q,Y=(__extends(Z,Q=P),Z.validateObjectPath=function(e){for(var t=e._objectPath;t;){if(!t.isValid)throw new h.RuntimeError({code:g.invalidObjectPath,httpStatusCode:400,message:P._getResourceString(y.invalidObjectPath,Z.getObjectPathExpression(t)),debugInfo:{errorLocation:Z.getObjectPathExpression(t)}});t=t.parentObjectPath}},Z.validateReferencedObjectPaths=function(e){if(e)for(var t=0;t<e.length;t++)for(var n=e[t];n;){if(!n.isValid)throw new h.RuntimeError({code:g.invalidObjectPath,httpStatusCode:400,message:P._getResourceString(y.invalidObjectPath,Z.getObjectPathExpression(n))});n=n.parentObjectPath}},Z._toCamelLowerCase=function(e){if(P.isNullOrEmptyString(e))return e;for(var t=0;t<e.length&&65<=e.charCodeAt(t)&&e.charCodeAt(t)<=90;)t++;return t<e.length?e.substr(0,t).toLowerCase()+e.substr(t):e.toLowerCase()},Z.adjustToDateTime=function(e){if(P.isNullOrUndefined(e))return null;if("string"==typeof e)return new Date(e);if(Array.isArray(e)){for(var t=e,n=0;n<t.length;n++)t[n]=Z.adjustToDateTime(t[n]);return t}throw P._createInvalidArgError({argumentName:"date"})},Z.tryGetObjectIdFromLoadOrRetrieveResult=function(e){var t=e[J.id];return P.isNullOrUndefined(t)&&(t=e[J.idLowerCase]),P.isNullOrUndefined(t)&&(t=e[J.idPrivate]),t},Z.getObjectPathExpression=function(e){for(var t="";e;){switch(e.objectPathInfo.ObjectPathType){case 1:t=t;break;case 2:t="new()"+(0<t.length?".":"")+t;break;case 3:t=Z.normalizeName(e.objectPathInfo.Name)+"()"+(0<t.length?".":"")+t;break;case 4:t=Z.normalizeName(e.objectPathInfo.Name)+(0<t.length?".":"")+t;break;case 5:t="getItem()"+(0<t.length?".":"")+t;break;case 6:t="_reference()"+(0<t.length?".":"")+t}e=e.parentObjectPath}return t},Z.setMethodArguments=function(e,t,n){if(P.isNullOrUndefined(n))return null;var r=new Array,i=new Array,o=Z.collectObjectPathInfos(e,n,r,i);return t.Arguments=n,o&&(t.ReferencedObjectPathIds=i),r},Z.validateContext=function(e,t){if(e&&t&&t._context!==e)throw new h.RuntimeError({code:g.invalidRequestContext,httpStatusCode:400,message:P._getResourceString(y.invalidRequestContext)})},Z.isSetSupported=function(e,t){return"function"==typeof Z.isSetSupportedOverride?Z.isSetSupportedOverride(e,t):!("undefined"!=typeof window&&window.Office&&window.Office.context&&window.Office.context.requirements)||window.Office.context.requirements.isSetSupported(e,t)},Z.throwIfApiNotSupported=function(e,t,n,r){if(Z._doApiNotSupportedCheck&&!Z.isSetSupported(t,n)){var i=P._getResourceString(y.apiNotFoundDetails,[e,t+" "+n,r]);throw new h.RuntimeError({code:g.apiNotFound,httpStatusCode:404,message:i,debugInfo:{errorLocation:e}})}},Z.calculateApiFlags=function(e,t,n){var r=window&&window.location&&window.location.href&&-1!==window.location.href.indexOf("eed0a086-3498-4f91-a377-1e0265ecc0cc");return("function"==typeof Z.isSetSupportedOverride?Z.isSetSupportedOverride(t,n):!r&&Z.isSetSupported(t,n))||(e&=-3),e},Z._parseSelectExpand=function(e){var t=[];if(!P.isNullOrEmptyString(e))for(var n=e.split(","),r=0;r<n.length;r++){var i=n[r];0<(i=o(i.trim())).length&&t.push(i)}return t;function o(e){var t=e.toLowerCase();return"items"===t||"items/"===t?"*":("items/"!==t.substr(0,6)&&"items."!==t.substr(0,6)||(e=e.substr(6)),e.replace(new RegExp("[/.]items[/.]","gi"),"/"))}},Z.changePropertyNameToCamelLowerCase=function(e){if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)t.push(this.changePropertyNameToCamelLowerCase(e[n]));return t}if("object"!=typeof e||null===e)return e;for(var r in t={},e){var i=e[r];if(r===J.items){(t={})[J.itemsLowerCase]=this.changePropertyNameToCamelLowerCase(i);break}t[Z._toCamelLowerCase(r)]=this.changePropertyNameToCamelLowerCase(i)}return t},Z.purifyJson=function(e){if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)t.push(this.purifyJson(e[n]));return t}if("object"!=typeof e||null===e)return e;for(var r in t={},e)if(95!==r.charCodeAt(0)){var i=e[r];"object"==typeof i&&null!==i&&Array.isArray(i.items)&&(i=i.items),t[r]=this.purifyJson(i)}return t},Z.collectObjectPathInfos=function(e,t,n,r){for(var i=!1,o=0;o<t.length;o++)if(t[o]instanceof N){var a=t[o];Z.validateContext(e,a),t[o]=a._objectPath.objectPathInfo.Id,r.push(a._objectPath.objectPathInfo.Id),n.push(a._objectPath),i=!0}else if(Array.isArray(t[o])){var s=new Array;Z.collectObjectPathInfos(e,t[o],n,s)?(r.push(s),i=!0):r.push(0)}else P.isPlainJsonObject(t[o])?(r.push(0),Z.replaceClientObjectPropertiesWithObjectPathIds(t[o],n)):r.push(0);return i},Z.replaceClientObjectPropertiesWithObjectPathIds=function(e,t){var n,r;for(var i in e){var o=e[i];if(o instanceof N)t.push(o._objectPath),e[i]=((n={})[J.objectPathIdPrivate]=o._objectPath.objectPathInfo.Id,n);else if(Array.isArray(o))for(var a=0;a<o.length;a++)if(o[a]instanceof N){var s=o[a];t.push(s._objectPath),o[a]=((r={})[J.objectPathIdPrivate]=s._objectPath.objectPathInfo.Id,r)}else P.isPlainJsonObject(o[a])&&Z.replaceClientObjectPropertiesWithObjectPathIds(o[a],t);else P.isPlainJsonObject(o)&&Z.replaceClientObjectPropertiesWithObjectPathIds(o,t)}},Z.normalizeName=function(e){return e.substr(0,1).toLowerCase()+e.substr(1)},Z._doApiNotSupportedCheck=!1,Z);function Z(){return null!==Q&&Q.apply(this,arguments)||this}m.CommonUtility=Y;var $,ee=(__extends(te,$=y),te.propertyDoesNotExist="PropertyDoesNotExist",te.attemptingToSetReadOnlyProperty="AttemptingToSetReadOnlyProperty",te);function te(){return null!==$&&$.apply(this,arguments)||this}m.CommonResourceStrings=ee;var ne,re=(__extends(ie,ne=g),ie.propertyNotLoaded="PropertyNotLoaded",ie.runMustReturnPromise="RunMustReturnPromise",ie.cannotRegisterEvent="CannotRegisterEvent",ie.invalidOrTimedOutSession="InvalidOrTimedOutSession",ie.cannotUpdateReadOnlyProperty="CannotUpdateReadOnlyProperty",ie);function ie(){return null!==ne&&ne.apply(this,arguments)||this}m.ErrorCodes=re;var oe=(ae.prototype._handleResult=function(e){this.m_callback&&this.m_callback()},ae);function ae(e){this.m_callback=e}var se,ce=(__extends(le,se=T),le.createMethodAction=function(e,t,n,r,i,o){rt.validateObjectPath(t);var a={Id:e._nextId(),ActionType:3,Name:n,ObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}},s=rt.setMethodArguments(e,a.ArgumentInfo,i);rt.validateReferencedObjectPaths(s);var c=rt._fixupApiFlags(o),l=new E(a,r,c);if(l.referencedObjectPath=t._objectPath,l.referencedArgumentObjectPaths=s,t._addAction(l),m._internalConfig.enablePreviewExecution&&0!=(16&c)){var u={Id:e._nextId(),ActionType:3,Name:n,Arguments:i,ObjectId:"",ObjectType:""};t._addPreviewExecutionAction(u)}return l},le.createRecursiveQueryAction=function(e,t,n){rt.validateObjectPath(t);var r={Id:e._nextId(),ActionType:6,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,RecursiveQueryInfo:n},i=new E(r,1,4);return i.referencedObjectPath=t._objectPath,t._addAction(i),i},le.createEnsureUnchangedAction=function(e,t,n){rt.validateObjectPath(t);var r={Id:e._nextId(),ActionType:8,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,ObjectState:n},i=new E(r,1,4);return i.referencedObjectPath=t._objectPath,t._addAction(i),i},le.createInstantiateAction=function(e,t){rt.validateObjectPath(t),e._pendingRequest.ensureInstantiateObjectPath(t._objectPath.parentObjectPath),e._pendingRequest.ensureInstantiateObjectPaths(t._objectPath.argumentObjectPaths);var n={Id:e._nextId(),ActionType:1,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id},r=new E(n,1,4);return r.referencedObjectPath=t._objectPath,t._addAction(r,new Ge(t),!0),r},le.createTraceAction=function(e,t,n){var r={Id:e._nextId(),ActionType:5,Name:"Trace",ObjectPathId:0},i=new E(r,1,4);return e._pendingRequest.addAction(i),n&&e._pendingRequest.addTrace(r.Id,t),i},le.createTraceMarkerForCallback=function(e,t){var n=le.createTraceAction(e,null,!1);e._pendingRequest.addActionResultHandler(n,new oe(t))},le);function le(){return null!==se&&se.apply(this,arguments)||this}m.ActionFactory=ce;var ue,pe=(__extends(fe,ue=N),Object.defineProperty(fe.prototype,"context",{get:function(){return this.m_context},enumerable:!0,configurable:!0}),Object.defineProperty(fe.prototype,"isNull",{get:function(){return(void 0!==this.m_isNull||!S.isMock())&&(rt.throwIfNotLoaded("isNull",this._isNull,null,this._isNull),this._isNull)},enumerable:!0,configurable:!0}),Object.defineProperty(fe.prototype,"isNullObject",{get:function(){return(void 0!==this.m_isNull||!S.isMock())&&(rt.throwIfNotLoaded("isNullObject",this._isNull,null,this._isNull),this._isNull)},enumerable:!0,configurable:!0}),Object.defineProperty(fe.prototype,"_isNull",{get:function(){return this.m_isNull},set:function(e){(this.m_isNull=e)&&this._objectPath&&this._objectPath._updateAsNullObject()},enumerable:!0,configurable:!0}),fe.prototype._addAction=function(e,t,n){return void 0===t&&(t=null),n||(this.context._pendingRequest.ensureInstantiateObjectPath(this._objectPath),this.context._pendingRequest.ensureInstantiateObjectPaths(e.referencedArgumentObjectPaths)),this.context._pendingRequest.addAction(e),this.context._pendingRequest.addReferencedObjectPath(this._objectPath),this.context._pendingRequest.addReferencedObjectPaths(e.referencedArgumentObjectPaths),this.context._pendingRequest.addActionResultHandler(e,t),P._createPromiseFromResult(null)},fe.prototype._addPreviewExecutionAction=function(e){if(!rt.isUndefined(this._className)){e.ObjectType=this._className;var t=rt._getPropertyValueWithoutCheckLoaded(this,Re.idLowerCase);rt.isUndefined(t)&&(t=rt._getPropertyValueWithoutCheckLoaded(this,Re.idPrivate)),rt.isUndefined(t)&&(t=rt._getPropertyValueWithoutCheckLoaded(this,Re.previewExecutionObjectId)),e.ObjectId=t,this.context._pendingRequest.addPreviewExecutionAction(e)}},fe.prototype._handleResult=function(e){this._isNull=rt.isNullOrUndefined(e),this.context.trackedObjects._autoTrackIfNecessaryWhenHandleObjectResultValue(this,e)},fe.prototype._handleIdResult=function(e){this._isNull=rt.isNullOrUndefined(e),rt.fixObjectPathIfNecessary(this,e),this.context.trackedObjects._autoTrackIfNecessaryWhenHandleObjectResultValue(this,e)},fe.prototype._handleRetrieveResult=function(e,t){this._handleIdResult(e)},fe.prototype._recursivelySet=function(e,t,n,r,i){var o=e instanceof fe,a=e;if(o){if(Object.getPrototypeOf(this)!==Object.getPrototypeOf(e))throw h.RuntimeError._createInvalidArgError({argumentName:"properties",errorLocation:this._className+".set"});e=JSON.parse(JSON.stringify(e))}try{for(var s,c=0;c<n.length;c++)s=n[c],e.hasOwnProperty(s)&&void 0!==e[s]&&(this[s]=e[s]);for(c=0;c<r.length;c++)if(s=r[c],e.hasOwnProperty(s)&&void 0!==e[s]){var l=o?a[s]:e[s];this[s].set(l,t)}var u=!o;for(t&&!rt.isNullOrUndefined(u)&&(u=t.throwOnReadOnly),c=0;c<i.length;c++)if(s=i[c],e.hasOwnProperty(s)&&void 0!==e[s]&&u)throw new h.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:P._getResourceString(et.cannotApplyPropertyThroughSetMethod,s),debugInfo:{errorLocation:s}});for(s in e)if(n.indexOf(s)<0&&r.indexOf(s)<0){var p=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this),s);if(!p)throw new h.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:P._getResourceString(ee.propertyDoesNotExist,s),debugInfo:{errorLocation:s}});if(u&&!p.set)throw new h.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:P._getResourceString(ee.attemptingToSetReadOnlyProperty,s),debugInfo:{errorLocation:s}})}}catch(e){throw new h.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:P._getResourceString(y.invalidArgument,"properties"),debugInfo:{errorLocation:this._className+".set"},innerError:e})}},fe);function fe(e,t){var n=ue.call(this,e,t)||this;return rt.checkArgumentNull(e,"context"),n.m_context=e,n._objectPath&&(!e._processingResult&&e._pendingRequest&&(ce.createInstantiateAction(e,n),e._autoCleanup&&n._KeepReference&&e.trackedObjects._autoAdd(n)),m._internalConfig.appendTypeNameToObjectPathInfo&&n._objectPath.objectPathInfo&&n._className&&(n._objectPath.objectPathInfo.T=n._className)),n}m.ClientObject=pe;var de=(he.prototype.executeAsync=function(e,t,n){var r={url:d.processQuery,method:"POST",headers:n.Headers,body:n.Body},i="";n.Headers&&(i=n.Headers[Re.officeControlId]);var o={id:c.nextId(),type:1,flags:t,controlId:i,message:r,customData:e};return P.log(JSON.stringify(o)),this.m_session.sendMessageToHost(o).then(function(e){P.log("Received response: "+JSON.stringify(e));var t,n=e.message;if(200===n.statusCode)t={HttpStatusCode:n.statusCode,ErrorCode:null,ErrorMessage:null,Headers:n.headers,Body:P._parseResponseBody(n)};else{P.log("Error Response:"+n.body);var r=P._parseErrorResponse(n);t={HttpStatusCode:n.statusCode,ErrorCode:r.errorCode,ErrorMessage:r.errorMessage,Headers:n.headers,Body:null}}return t})},he);function he(e){this.m_session=e}var ge,ye=(__extends(me,ge=_),me.getInstanceIfHostBridgeInited=function(){return c.instance?(!P.isNullOrUndefined(me.s_instance)&&me.s_instance.m_bridge===c.instance||(me.s_instance=new me(c.instance)),me.s_instance):null},me.prototype._resolveRequestUrlAndHeaderInfo=function(){return P._createPromiseFromResult(null)},me.prototype._createRequestExecutorOrNull=function(){return P.log("NativeBridgeSession::CreateRequestExecutor"),new de(this)},me.prototype.getEventRegistration=function(e){return Me.getGenericEventRegistration(e)},me.prototype.sendMessageToHost=function(e){return this.m_bridge.sendMessageToHostAndExpectResponse(e)},me);function me(e){var t=ge.call(this)||this;return t.m_bridge=e,t.m_bridge.addHostMessageHandler(function(e){if(3===e.type){var t=e.controlId;if(P.isNullOrEmptyString(t))Me.getGenericEventRegistration(t)._handleRichApiMessage(e.message);else{var n=Me.peekGenericEventRegistrationOrNull(t);n&&n._handleRichApiMessage(e.message),(n=Me.peekGenericEventRegistrationOrNull(""))&&n._handleRichApiMessage(e.message)}}}),t}m.HostBridgeSession=ye;var _e,be=(__extends(ve,_e=k),Object.defineProperty(ve.prototype,"session",{get:function(){return this.m_session},enumerable:!0,configurable:!0}),Object.defineProperty(ve.prototype,"eventRegistration",{get:function(){return this.m_session?this.m_session.getEventRegistration(this._controlId):h.officeJsEventRegistration},enumerable:!0,configurable:!0}),Object.defineProperty(ve.prototype,"_url",{get:function(){return this.m_requestUrlAndHeaderInfo?this.m_requestUrlAndHeaderInfo.url:null},enumerable:!0,configurable:!0}),Object.defineProperty(ve.prototype,"_pendingRequest",{get:function(){return null==this.m_pendingRequest&&(this.m_pendingRequest=new Te(this)),this.m_pendingRequest},enumerable:!0,configurable:!0}),Object.defineProperty(ve.prototype,"_controlId",{get:function(){var e=this.m_customRequestHeaders[Re.officeControlId];return P.isNullOrUndefined(e)&&(e=""),e},enumerable:!0,configurable:!0}),Object.defineProperty(ve.prototype,"debugInfo",{get:function(){return{pendingStatements:new Ye(this._rootObjectPropertyName,this._pendingRequest._objectPaths,this._pendingRequest._actions,m._internalConfig.showDisposeInfoInDebugInfo).process()}},enumerable:!0,configurable:!0}),Object.defineProperty(ve.prototype,"trackedObjects",{get:function(){return this.m_trackedObjects||(this.m_trackedObjects=new Xe(this)),this.m_trackedObjects},enumerable:!0,configurable:!0}),Object.defineProperty(ve.prototype,"requestHeaders",{get:function(){return this.m_customRequestHeaders},enumerable:!0,configurable:!0}),Object.defineProperty(ve.prototype,"batchMode",{get:function(){return this.m_batchMode},enumerable:!0,configurable:!0}),Object.defineProperty(ve.prototype,"getAdditionalHeaders",{set:function(e){this.m_getAdditionalHeaders=e},enumerable:!0,configurable:!0}),ve.prototype.ensureInProgressBatchIfBatchMode=function(){if(1===this.m_batchMode&&!this.m_explicitBatchInProgress)throw rt.createRuntimeError(g.generalException,P._getResourceString(et.notInsideBatch),null)},ve.prototype.load=function(e,t){rt.validateContext(this,e);var n=ve._parseQueryOption(t);T.createQueryAction(this,e,n,e)},ve.prototype.loadRecursive=function(e,t,n){if(!rt.isPlainJsonObject(t))throw h.RuntimeError._createInvalidArgError({argumentName:"options"});var r={};for(var i in t)r[i]=ve._parseQueryOption(t[i]);var o=ce.createRecursiveQueryAction(this,e,{Queries:r,MaxDepth:n});this._pendingRequest.addActionResultHandler(o,e)},ve.prototype.trace=function(e){ce.createTraceAction(this,e,!0)},ve.prototype._processOfficeJsErrorResponse=function(e,t){},ve.prototype.ensureRequestUrlAndHeaderInfo=function(){var n=this;return rt._createPromiseFromResult(null).then(function(){if(!n.m_requestUrlAndHeaderInfo)return n.m_requestUrlAndHeaderInfoResolver._resolveRequestUrlAndHeaderInfo().then(function(e){if(n.m_requestUrlAndHeaderInfo=e,n.m_requestUrlAndHeaderInfo||(n.m_requestUrlAndHeaderInfo={url:d.localDocument,headers:{}}),rt.isNullOrEmptyString(n.m_requestUrlAndHeaderInfo.url)&&(n.m_requestUrlAndHeaderInfo.url=d.localDocument),n.m_requestUrlAndHeaderInfo.headers||(n.m_requestUrlAndHeaderInfo.headers={}),"function"==typeof n.m_requestUrlAndHeaderInfoResolver._createRequestExecutorOrNull){var t=n.m_requestUrlAndHeaderInfoResolver._createRequestExecutorOrNull();t&&(n._requestExecutor=t)}})})},ve.prototype.syncPrivateMain=function(){var t=this;return this.ensureRequestUrlAndHeaderInfo().then(function(){var e=t._pendingRequest;return t.m_pendingRequest=null,t.processPreSyncPromises(e).then(function(){return t.syncPrivate(e)})})},ve.prototype.syncPrivate=function(n){var t=this;if(S.isMock())return P._createPromiseFromResult(null);if(!n.hasActions)return this.processPendingEventHandlers(n);var e=n.buildRequestMessageBodyAndRequestFlags(),r=e.body,i=e.flags;this._requestFlagModifier&&(i|=this._requestFlagModifier),this._requestExecutor||(P._isLocalDocumentUrl(this.m_requestUrlAndHeaderInfo.url)?this._requestExecutor=new Ke(this):this._requestExecutor=new q);var o=this._requestExecutor,a={};P._copyHeaders(this.m_requestUrlAndHeaderInfo.headers,a),P._copyHeaders(this.m_customRequestHeaders,a),delete this.m_customRequestHeaders[Re.officeScriptEventId],this.m_getAdditionalHeaders&&P._copyHeaders(this.m_getAdditionalHeaders(),a);var s=S._getCurrentTestNameWithSequenceId();s&&(a[d.testRequestNameHeader]=s);var c={Url:this.m_requestUrlAndHeaderInfo.url,Headers:a,Body:r};n.invalidatePendingInvalidObjectPaths();var l=null,u=null;return this._lastSyncStart="undefined"==typeof performance?Date.now():performance.now(),this._lastRequestFlags=i,o.executeAsync(this._customData,i,c,this._invocationId).then(function(e){return t._lastSyncEnd="undefined"==typeof performance?Date.now():performance.now(),m.config.executePerfLogFunc&&m.config.executePerfLogFunc({syncStart:t._lastSyncStart,syncEnd:t._lastSyncEnd}),l=t.processRequestExecutorResponseMessage(n,e),t.processPendingEventHandlers(n).catch(function(e){P.log("Error in processPendingEventHandlers"),P.log(JSON.stringify(e)),u=e})}).then(function(){if(l)throw P.log("Throw error from response: "+JSON.stringify(l)),l;if(u){P.log("Throw error from ProcessEventHandler: "+JSON.stringify(u));var e=null;if(u instanceof h.RuntimeError)(e=u).traceMessages=n._responseTraceMessages;else{var t=null;t="string"==typeof u?u:u.message,rt.isNullOrEmptyString(t)&&(t=P._getResourceString(et.cannotRegisterEvent)),e=new h.RuntimeError({code:re.cannotRegisterEvent,httpStatusCode:400,message:t,traceMessages:n._responseTraceMessages})}throw e}})},ve.prototype.processRequestExecutorResponseMessage=function(e,t){t.Body&&t.Body.TraceIds&&e._setResponseTraceIds(t.Body.TraceIds);var n=e._responseTraceMessages,r=null;if(t.Body){if(t.Body.Error&&0<=t.Body.Error.ActionIndex){var i=new Ye(this._rootObjectPropertyName,e._objectPaths,e._actions,!1,!0),o=i.processForDebugStatementInfo(t.Body.Error.ActionIndex);r={statement:o.statement,surroundingStatements:o.surroundingStatements,fullStatements:["Please enable config.extendedErrorLogging to see full statements."]},m.config.extendedErrorLogging&&(i=new Ye(this._rootObjectPropertyName,e._objectPaths,e._actions,!1,!1),r.fullStatements=i.process())}var a=null;if(t.Body.Results?a=t.Body.Results:t.Body.ProcessedResults&&t.Body.ProcessedResults.Results&&(a=t.Body.ProcessedResults.Results),a){this._processingResult=!0;try{e.processResponse(a)}finally{this._processingResult=!1}}}if(!rt.isNullOrEmptyString(t.ErrorCode))return new h.RuntimeError({code:t.ErrorCode,httpStatusCode:t.HttpStatusCode,message:t.ErrorMessage,traceMessages:n,data:{responseBody:t.RawErrorResponseBody}});if(t.Body&&t.Body.Error){var s={errorLocation:t.Body.Error.Location};return r&&(s.statement=r.statement,s.surroundingStatements=r.surroundingStatements,s.fullStatements=r.fullStatements),new h.RuntimeError({code:t.Body.Error.Code,httpStatusCode:t.Body.Error.HttpStatusCode,message:t.Body.Error.Message,traceMessages:n,debugInfo:s})}return null},ve.prototype.processPendingEventHandlers=function(e){for(var t=rt._createPromiseFromResult(null),n=0;n<e._pendingProcessEventHandlers.length;n++){var r=e._pendingProcessEventHandlers[n];t=t.then(this.createProcessOneEventHandlersFunc(r,e))}return t},ve.prototype.createProcessOneEventHandlersFunc=function(e,t){return function(){return e._processRegistration(t)}},ve.prototype.processPreSyncPromises=function(e){for(var t=rt._createPromiseFromResult(null),n=0;n<e._preSyncPromises.length;n++){var r=e._preSyncPromises[n];t=t.then(this.createProcessOneProSyncFunc(r))}return t},ve.prototype.createProcessOneProSyncFunc=function(e){return function(){return e}},ve.prototype.sync=function(e){return S.isMock()?P._createPromiseFromResult(e):this.syncPrivateMain().then(function(){return e})},ve.prototype.batch=function(e){var t=this;if(1!==this.m_batchMode)return P._createPromiseFromException(rt.createRuntimeError(g.generalException,null,null));if(this.m_explicitBatchInProgress)return P._createPromiseFromException(rt.createRuntimeError(g.generalException,P._getResourceString(et.pendingBatchInProgress),null));if(rt.isNullOrUndefined(e))return rt._createPromiseFromResult(null);this.m_explicitBatchInProgress=!0;var n,r,i=this.m_pendingRequest;this.m_pendingRequest=new Te(this);try{n=e(this._rootObject,this)}catch(e){return this.m_explicitBatchInProgress=!1,this.m_pendingRequest=i,P._createPromiseFromException(e)}return("object"==typeof n&&n&&"function"==typeof n.then?rt._createPromiseFromResult(null).then(function(){return n}).then(function(e){return t.m_explicitBatchInProgress=!1,r=t.m_pendingRequest,t.m_pendingRequest=i,e}).catch(function(e){return t.m_explicitBatchInProgress=!1,r=t.m_pendingRequest,t.m_pendingRequest=i,P._createPromiseFromException(e)}):(this.m_explicitBatchInProgress=!1,r=this.m_pendingRequest,this.m_pendingRequest=i,rt._createPromiseFromResult(n))).then(function(e){return t.ensureRequestUrlAndHeaderInfo().then(function(){return t.syncPrivate(r)}).then(function(){return e})})},ve._run=function(e,t,n,r,i,o){return void 0===n&&(n=3),void 0===r&&(r=5e3),ve._runCommon("run",null,e,0,t,n,r,null,null,i,o)},ve.isValidRequestInfo=function(e){return"string"==typeof e||ve.isRequestUrlAndHeaderInfo(e)||ve.isRequestUrlAndHeaderInfoResolver(e)},ve.isRequestUrlAndHeaderInfo=function(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===Object.getPrototypeOf({})&&!rt.isNullOrUndefined(e.url)},ve.isRequestUrlAndHeaderInfoResolver=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e._resolveRequestUrlAndHeaderInfo},ve._runBatch=function(e,t,n,r,i,o,a,s,c){return void 0===o&&(o=3),void 0===a&&(a=5e3),ve._runBatchCommon(0,e,t,n,o,a,r,i,s,c)},ve._runExplicitBatch=function(e,t,n,r,i,o,a,s,c){return void 0===o&&(o=3),void 0===a&&(a=5e3),ve._runBatchCommon(1,e,t,n,o,a,r,i,s,c)},ve._runBatchCommon=function(e,t,n,r,i,o,a,s,c,l){var u,p;void 0===i&&(i=3),void 0===o&&(o=5e3);var f=null,d=null,h=null,g=0,y=null;if(0<n.length)if(ve.isValidRequestInfo(n[0]))f=n[0],g=1;else if(rt.isPlainJsonObject(n[0])){if(null!=(f=(y=n[0]).session)&&!ve.isValidRequestInfo(f))return ve.createErrorPromise(t);d=y.getAdditionalHeaders,h=y.previousObjects,g=1}if(n.length==g+1)p=n[g+0];else{if(null!=y||n.length!=g+2)return ve.createErrorPromise(t);h=n[g+0],p=n[g+1]}if(null!=h)if(h instanceof pe)u=function(){return h.context};else if(h instanceof ve)u=function(){return h};else{if(!Array.isArray(h))return ve.createErrorPromise(t);var m=h;if(0==m.length)return ve.createErrorPromise(t);for(var _=0;_<m.length;_++){if(!(m[_]instanceof pe))return ve.createErrorPromise(t);if(m[_].context!=m[0].context)return ve.createErrorPromise(t,et.invalidRequestContext)}u=function(){return m[0].context}}else u=r;var b=null;a&&(b=function(e){return a(y||{},e)});var v=null;return s&&(v=function(e){return s(y||{},e)}),ve._runCommon(t,f,u,e,p,i,o,b,v,c,l,d)},ve.createErrorPromise=function(e,t){return void 0===t&&(t=y.invalidArgument),P._createPromiseFromException(rt.createRuntimeError(t,P._getResourceString(t),e))},ve._runCommon=function(t,n,e,r,i,s,c,o,l,u,p,a){_._overrideSession&&(n=_._overrideSession);var f,d,h,g=P.createPromise(function(e,t){e()}),y=!1;return g.then(function(){if((f=e(n)).getAdditionalHeaders=a,f._autoCleanup)return new m.Promise(function(e,t){f._onRunFinishedNotifiers.push(function(){f._autoCleanup=!0,e()})});f._autoCleanup=!0}).then(function(){return"function"!=typeof i?ve.createErrorPromise(t):(h=f.m_batchMode,f.m_batchMode=r,o&&o(f),e=i(1==r?f.batch.bind(f):f),!rt.isNullOrUndefined(e)&&"function"==typeof e.then||rt.throwError(et.runMustReturnPromise),e);var e}).then(function(e){return 1===r?e:f.sync(e)}).then(function(e){y=!0,d=e}).catch(function(e){d=e}).then(function(){var i=f.trackedObjects._retrieveAndClearAutoCleanupList();for(var e in f._autoCleanup=!1,f.m_batchMode=h,i)i[e]._objectPath.isValid=!1;var o=0;if(rt._synchronousCleanup||ve.isRequestUrlAndHeaderInfoResolver(n))return a();function a(){o++;var e=f.m_pendingRequest,t=f.m_batchMode,n=new Te(f);f.m_pendingRequest=n,f.m_batchMode=0;try{for(var r in i)f.trackedObjects.remove(i[r]);l&&l(f)}finally{f.m_batchMode=t,f.m_pendingRequest=e}return f.syncPrivate(n).then(function(){u&&u(o)}).catch(function(){p&&p(o),o<s&&setTimeout(function(){a()},c)})}a()}).then(function(){if(f._onRunFinishedNotifiers&&0<f._onRunFinishedNotifiers.length&&f._onRunFinishedNotifiers.shift()(),y)return d;throw d})},ve);function ve(e){var t=_e.call(this)||this;if(t.m_customRequestHeaders={},t.m_batchMode=0,t._onRunFinishedNotifiers=[],_._overrideSession)t.m_requestUrlAndHeaderInfoResolver=_._overrideSession;else if((rt.isNullOrUndefined(e)||"string"==typeof e&&0===e.length)&&(e=(e=ve.defaultRequestUrlAndHeaders)||{url:d.localDocument,headers:{}}),"string"==typeof e)t.m_requestUrlAndHeaderInfo={url:e,headers:{}};else if(ve.isRequestUrlAndHeaderInfoResolver(e))t.m_requestUrlAndHeaderInfoResolver=e;else{if(!ve.isRequestUrlAndHeaderInfo(e))throw h.RuntimeError._createInvalidArgError({argumentName:"url"});var n=e;t.m_requestUrlAndHeaderInfo={url:n.url,headers:{}},P._copyHeaders(n.headers,t.m_requestUrlAndHeaderInfo.headers)}return!t.m_requestUrlAndHeaderInfoResolver&&t.m_requestUrlAndHeaderInfo&&P._isLocalDocumentUrl(t.m_requestUrlAndHeaderInfo.url)&&ye.getInstanceIfHostBridgeInited()&&(t.m_requestUrlAndHeaderInfo=null,t.m_requestUrlAndHeaderInfoResolver=ye.getInstanceIfHostBridgeInited()),t.m_requestUrlAndHeaderInfoResolver instanceof _&&(t.m_session=t.m_requestUrlAndHeaderInfoResolver),t._processingResult=!1,t._customData=Re.iterativeExecutor,t.sync=t.sync.bind(t),t}m.ClientRequestContext=be;var Oe=(Object.defineProperty(Ce.prototype,"$proxy",{get:function(){return this.m_proxy},enumerable:!0,configurable:!0}),Object.defineProperty(Ce.prototype,"$isNullObject",{get:function(){if(!this.m_isLoaded)throw new h.RuntimeError({code:re.valueNotLoaded,httpStatusCode:400,message:P._getResourceString(et.valueNotLoaded),debugInfo:{errorLocation:"retrieveResult.$isNullObject"}});return this.m_isNullObject},enumerable:!0,configurable:!0}),Ce.prototype.toJSON=function(){if(this.m_isLoaded)return this.m_isNullObject?null:(rt.isUndefined(this.m_json)&&(this.m_json=rt.purifyJson(this.m_value)),this.m_json)},Ce.prototype.toString=function(){return JSON.stringify(this.toJSON())},Ce.prototype._handleResult=function(e){this.m_isLoaded=!0,null===e||"object"==typeof e&&e&&e._IsNull?(this.m_isNullObject=!0,e=null):this.m_isNullObject=!1,this.m_shouldPolyfill&&(e=rt.changePropertyNameToCamelLowerCase(e)),this.m_value=e,this.m_proxy._handleRetrieveResult(e,this)},Ce);function Ce(e,t){this.m_proxy=e,this.m_shouldPolyfill=t;var n=e[Re.scalarPropertyNames],r=e[Re.navigationPropertyNames],i=e[Re.className],o=e[Re.isCollection];if(n)for(var a=0;a<n.length;a++)rt.definePropertyThrowUnloadedException(this,i,n[a]);if(r)for(a=0;a<r.length;a++)rt.definePropertyThrowUnloadedException(this,i,r[a]);o&&rt.definePropertyThrowUnloadedException(this,i,Re.itemsLowerCase)}var Pe,Re=(__extends(Se,Pe=J),Se.getItemAt="GetItemAt",Se.index="_Index",Se.iterativeExecutor="IterativeExecutor",Se.isTracked="_IsTracked",Se.eventMessageCategory=65536,Se.eventWorkbookId="Workbook",Se.eventSourceRemote="Remote",Se.proxy="$proxy",Se.className="_className",Se.isCollection="_isCollection",Se.collectionPropertyPath="_collectionPropertyPath",Se.objectPathInfoDoNotKeepReferenceFieldName="D",Se.officeScriptEventId="X-OfficeScriptEventId",Se.officeScriptFireRecordingEvent="X-OfficeScriptFireRecordingEvent",Se.officeControlId="X-OfficeControlId",Se);function Se(){return null!==Pe&&Pe.apply(this,arguments)||this}m.Constants=Re;var Ie,Te=(__extends(Ae,Ie=B),Object.defineProperty(Ae.prototype,"traceInfos",{get:function(){return this.m_traceInfos},enumerable:!0,configurable:!0}),Object.defineProperty(Ae.prototype,"_responseTraceMessages",{get:function(){return this.m_responseTraceMessages},enumerable:!0,configurable:!0}),Object.defineProperty(Ae.prototype,"_responseTraceIds",{get:function(){return this.m_responseTraceIds},enumerable:!0,configurable:!0}),Ae.prototype._setResponseTraceIds=function(e){if(e)for(var t=0;t<e.length;t++){var n=e[t];this.m_responseTraceIds[n]=n;var r=this.m_traceInfos[n];P.isNullOrUndefined(r)||this.m_responseTraceMessages.push(r)}},Ae.prototype.addTrace=function(e,t){this.m_traceInfos[e]=t},Ae.prototype._addPendingEventHandlerAction=function(e,t){this.m_pendingEventHandlerActions[e._id]||(this.m_pendingEventHandlerActions[e._id]=[],this.m_pendingProcessEventHandlers.push(e)),this.m_pendingEventHandlerActions[e._id].push(t)},Object.defineProperty(Ae.prototype,"_pendingProcessEventHandlers",{get:function(){return this.m_pendingProcessEventHandlers},enumerable:!0,configurable:!0}),Ae.prototype._getPendingEventHandlerActions=function(e){return this.m_pendingEventHandlerActions[e._id]},Ae);function Ae(e){var t=Ie.call(this,e)||this;return t.m_context=e,t.m_pendingProcessEventHandlers=[],t.m_pendingEventHandlerActions={},t.m_traceInfos={},t.m_responseTraceIds={},t.m_responseTraceMessages=[],t}m.ClientRequest=Te;var Ne=(Object.defineProperty(xe.prototype,"_registered",{get:function(){return this.m_registered},enumerable:!0,configurable:!0}),Object.defineProperty(xe.prototype,"_id",{get:function(){return this.m_id},enumerable:!0,configurable:!0}),Object.defineProperty(xe.prototype,"_handlers",{get:function(){return this.m_handlers},enumerable:!0,configurable:!0}),Object.defineProperty(xe.prototype,"_context",{get:function(){return this.m_context},enumerable:!0,configurable:!0}),Object.defineProperty(xe.prototype,"_callback",{get:function(){return this.m_callback},enumerable:!0,configurable:!0}),xe.prototype.add=function(e){var t=ce.createTraceAction(this.m_context,null,!1);return this.m_context._pendingRequest._addPendingEventHandlerAction(this,{id:t.actionInfo.Id,handler:e,operation:0}),new je(this.m_context,this,e)},xe.prototype.remove=function(e){var t=ce.createTraceAction(this.m_context,null,!1);this.m_context._pendingRequest._addPendingEventHandlerAction(this,{id:t.actionInfo.Id,handler:e,operation:1})},xe.prototype.removeAll=function(){var e=ce.createTraceAction(this.m_context,null,!1);this.m_context._pendingRequest._addPendingEventHandlerAction(this,{id:e.actionInfo.Id,handler:null,operation:2})},xe.prototype._processRegistration=function(e){var t=this,n=P._createPromiseFromResult(null),r=e._getPendingEventHandlerActions(this);if(!r)return n;for(var i=[],o=0;o<this.m_handlers.length;o++)i.push(this.m_handlers[o]);var a=!1;for(o=0;o<r.length;o++)if(e._responseTraceIds[r[o].id])switch(a=!0,r[o].operation){case 0:i.push(r[o].handler);break;case 1:for(var s=i.length-1;0<=s;s--)if(i[s]===r[o].handler){i.splice(s,1);break}break;case 2:i=[]}return a&&(!this.m_registered&&0<i.length?n=n.then(function(){return t.m_eventInfo.registerFunc(t.m_callback)}).then(function(){return t.m_registered=!0}):this.m_registered&&0==i.length&&(n=n.then(function(){return t.m_eventInfo.unregisterFunc(t.m_callback)}).catch(function(e){P.log("Error when unregister event: "+JSON.stringify(e))}).then(function(){return t.m_registered=!1})),n=n.then(function(){return t.m_handlers=i})),n},xe.prototype.fireEvent=function(e){for(var t=[],n=0;n<this.m_handlers.length;n++){var r=this.m_handlers[n],i=P._createPromiseFromResult(null).then(this.createFireOneEventHandlerFunc(r,e)).catch(function(e){P.log("Error when invoke handler: "+JSON.stringify(e))});t.push(i)}P.Promise.all(t)},xe.prototype.createFireOneEventHandlerFunc=function(e,t){return function(){return e(t)}},xe);function xe(e,t,n,r){var i=this;this.m_id=e._nextId(),this.m_context=e,this.m_name=n,this.m_handlers=[],this.m_registered=!1,this.m_eventInfo=r,this.m_callback=function(e){i.m_eventInfo.eventArgsTransformFunc(e).then(function(e){return i.fireEvent(e)})}}m.EventHandlers=Ne;var Ee,De,je=(Object.defineProperty(we.prototype,"context",{get:function(){return this.m_context},enumerable:!0,configurable:!0}),we.prototype.remove=function(){this.m_allHandlers&&this.m_handler&&(this.m_allHandlers.remove(this.m_handler),this.m_allHandlers=null,this.m_handler=null)},we);function we(e,t,n){this.m_context=e,this.m_allHandlers=t,this.m_handler=n}function ke(){}m.EventHandlerResult=je,Ee=h=m._Internal||(m._Internal={}),ke.prototype.register=function(e,t,n){switch(e){case 4:return rt.promisify(function(e){return Office.context.document.bindings.getByIdAsync(t,e)}).then(function(t){return rt.promisify(function(e){return t.addHandlerAsync(Office.EventType.BindingDataChanged,n,e)})});case 3:return rt.promisify(function(e){return Office.context.document.bindings.getByIdAsync(t,e)}).then(function(t){return rt.promisify(function(e){return t.addHandlerAsync(Office.EventType.BindingSelectionChanged,n,e)})});case 2:return rt.promisify(function(e){return Office.context.document.addHandlerAsync(Office.EventType.DocumentSelectionChanged,n,e)});case 1:return rt.promisify(function(e){return Office.context.document.settings.addHandlerAsync(Office.EventType.SettingsChanged,n,e)});case 5:return OSF.DDA.RichApi.richApiMessageManager.register(n);case 13:return rt.promisify(function(e){return Office.context.document.addHandlerAsync(Office.EventType.ObjectDeleted,n,{id:t},e)});case 14:return rt.promisify(function(e){return Office.context.document.addHandlerAsync(Office.EventType.ObjectSelectionChanged,n,{id:t},e)});case 15:return rt.promisify(function(e){return Office.context.document.addHandlerAsync(Office.EventType.ObjectDataChanged,n,{id:t},e)});case 16:return rt.promisify(function(e){return Office.context.document.addHandlerAsync(Office.EventType.ContentControlAdded,n,{id:t},e)});default:throw Ee.RuntimeError._createInvalidArgError({argumentName:"eventId"})}},ke.prototype.unregister=function(e,t,n){switch(e){case 4:return rt.promisify(function(e){return Office.context.document.bindings.getByIdAsync(t,e)}).then(function(t){return rt.promisify(function(e){return t.removeHandlerAsync(Office.EventType.BindingDataChanged,{handler:n},e)})});case 3:return rt.promisify(function(e){return Office.context.document.bindings.getByIdAsync(t,e)}).then(function(t){return rt.promisify(function(e){return t.removeHandlerAsync(Office.EventType.BindingSelectionChanged,{handler:n},e)})});case 2:return rt.promisify(function(e){return Office.context.document.removeHandlerAsync(Office.EventType.DocumentSelectionChanged,{handler:n},e)});case 1:return rt.promisify(function(e){return Office.context.document.settings.removeHandlerAsync(Office.EventType.SettingsChanged,{handler:n},e)});case 5:return rt.promisify(function(e){return OSF.DDA.RichApi.richApiMessageManager.removeHandlerAsync("richApiMessage",{handler:n},e)});case 13:return rt.promisify(function(e){return Office.context.document.removeHandlerAsync(Office.EventType.ObjectDeleted,{id:t,handler:n},e)});case 14:return rt.promisify(function(e){return Office.context.document.removeHandlerAsync(Office.EventType.ObjectSelectionChanged,{id:t,handler:n},e)});case 15:return rt.promisify(function(e){return Office.context.document.removeHandlerAsync(Office.EventType.ObjectDataChanged,{id:t,handler:n},e)});case 16:return rt.promisify(function(e){return Office.context.document.removeHandlerAsync(Office.EventType.ContentControlAdded,{id:t,handler:n},e)});default:throw Ee.RuntimeError._createInvalidArgError({argumentName:"eventId"})}},De=ke,Ee.officeJsEventRegistration=new De;var Fe=(Le.getTargetIdOrDefault=function(e){return rt.isNullOrUndefined(e)?"":e},Le.prototype.getHandlers=function(e,t){t=Le.getTargetIdOrDefault(t);var n=this.m_handlersByEventByTarget[e];n||(n={},this.m_handlersByEventByTarget[e]=n);var r=n[t];return r||(r=[],n[t]=r),r},Le.prototype.callHandlers=function(e,t,n){for(var r=this.getHandlers(e,t),i=0;i<r.length;i++)r[i](n)},Le.prototype.hasHandlers=function(e,t){return 0<this.getHandlers(e,t).length},Le.prototype.register=function(e,t,n){if(!n)throw h.RuntimeError._createInvalidArgError({argumentName:"handler"});var r=this.getHandlers(e,t);return r.push(n),1===r.length?this.m_registerEventImpl(e,t):rt._createPromiseFromResult(null)},Le.prototype.unregister=function(e,t,n){if(!n)throw h.RuntimeError._createInvalidArgError({argumentName:"handler"});for(var r=this.getHandlers(e,t),i=r.length-1;0<=i;i--)if(r[i]===n){r.splice(i,1);break}return 0===r.length?this.m_unregisterEventImpl(e,t):rt._createPromiseFromResult(null)},Le);function Le(e,t){this.m_handlersByEventByTarget={},this.m_registerEventImpl=e,this.m_unregisterEventImpl=t}m.EventRegistration=Fe;var Me=(Be.prototype.ready=function(){var e=this;return this.m_ready||(Be._testReadyImpl?this.m_ready=Be._testReadyImpl().then(function(){e.m_isReady=!0}):c.instance?this.m_ready=rt._createPromiseFromResult(null).then(function(){e.m_isReady=!0}):this.m_ready=h.officeJsEventRegistration.register(5,"",this.m_richApiMessageHandler).then(function(){e.m_isReady=!0})),this.m_ready},Object.defineProperty(Be.prototype,"isReady",{get:function(){return this.m_isReady},enumerable:!0,configurable:!0}),Be.prototype.register=function(e,t,n){var r=this;return this.ready().then(function(){return r.m_eventRegistration.register(e,t,n)})},Be.prototype.unregister=function(e,t,n){var r=this;return this.ready().then(function(){return r.m_eventRegistration.unregister(e,t,n)})},Be.prototype._registerEventImpl=function(e,t){return rt._createPromiseFromResult(null)},Be.prototype._unregisterEventImpl=function(e,t){return rt._createPromiseFromResult(null)},Be.prototype._handleRichApiMessage=function(e){if(e&&e.entries)for(var t=0;t<e.entries.length;t++){var n=e.entries[t];if(n.messageCategory==Re.eventMessageCategory){P._logEnabled&&P.log(JSON.stringify(n));var r=n.messageType,i=n.targetId;if(this.m_eventRegistration.hasHandlers(r,i)){var o=JSON.parse(n.message);n.isRemoteOverride&&(o.source=Re.eventSourceRemote),this.m_eventRegistration.callHandlers(r,i,o)}}}},Be.getGenericEventRegistration=function(e){P.isNullOrUndefined(e)&&(e="");var t=Be.s_genericEventRegistrations[e];return t||(t=new Be,Be.s_genericEventRegistrations[e]=t),t},Be.peekGenericEventRegistrationOrNull=function(e){return P.isNullOrUndefined(e)&&(e=""),Be.s_genericEventRegistrations[e]},Be.richApiMessageEventCategory=65536,Be.s_genericEventRegistrations={},Be);function Be(){this.m_eventRegistration=new Fe(this._registerEventImpl.bind(this),this._unregisterEventImpl.bind(this)),this.m_richApiMessageHandler=this._handleRichApiMessage.bind(this)}m.GenericEventRegistration=Me,m._testSetRichApiMessageReadyImpl=function(e){Me._testReadyImpl=e},m._testTriggerRichApiMessageEvent=function(e){Me.getGenericEventRegistration("")._handleRichApiMessage(e)};var He,Ue=(__extends(We,He=Ne),We.prototype.add=function(e){var t=this;0==this._handlers.length&&this.m_genericEventInfo.registerFunc&&this.m_genericEventInfo.registerFunc();var n=this._context._controlId;return Me.getGenericEventRegistration(n).isReady||this._context._pendingRequest._addPreSyncPromise(Me.getGenericEventRegistration(n).ready()),ce.createTraceMarkerForCallback(this._context,function(){t._handlers.push(e),1==t._handlers.length&&Me.getGenericEventRegistration(n).register(t.m_genericEventInfo.eventType,t.m_genericEventInfo.getTargetIdFunc(),t._callback)}),new je(this._context,this,e)},We.prototype.remove=function(n){var r=this;1==this._handlers.length&&this.m_genericEventInfo.unregisterFunc&&this.m_genericEventInfo.unregisterFunc();var i=this._context._controlId;ce.createTraceMarkerForCallback(this._context,function(){for(var e=r._handlers,t=e.length-1;0<=t;t--)if(e[t]===n){e.splice(t,1);break}0==e.length&&Me.getGenericEventRegistration(i).unregister(r.m_genericEventInfo.eventType,r.m_genericEventInfo.getTargetIdFunc(),r._callback)})},We.prototype.removeAll=function(){},We);function We(e,t,n,r){var i=He.call(this,e,t,n,r)||this;return i.m_genericEventInfo=r,i}m.GenericEventHandlers=Ue;var Ge=(Ve.prototype._handleResult=function(e){this.m_clientObject._handleIdResult(e)},Ve);function Ve(e){this.m_clientObject=e}var qe=(ze.createGlobalObjectObjectPath=function(e){var t={Id:e._nextId(),ObjectPathType:1,Name:""};return new j(t,null,!1,!1,1,4)},ze.createNewObjectObjectPath=function(e,t,n,r){var i={Id:e._nextId(),ObjectPathType:2,Name:t};return new j(i,null,n,!1,1,rt._fixupApiFlags(r))},ze.createPropertyObjectPath=function(e,t,n,r,i,o){var a={Id:e._nextId(),ObjectPathType:4,Name:n,ParentObjectPathId:t._objectPath.objectPathInfo.Id};return new j(a,t._objectPath,r,i,1,rt._fixupApiFlags(o))},ze.createIndexerObjectPath=function(e,t,n){var r={Id:e._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}};return r.ArgumentInfo.Arguments=n,new j(r,t._objectPath,!1,!1,1,4)},ze.createIndexerObjectPathUsingParentPath=function(e,t,n){var r={Id:e._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:t.objectPathInfo.Id,ArgumentInfo:{}};return r.ArgumentInfo.Arguments=n,new j(r,t,!1,!1,1,4)},ze.createMethodObjectPath=function(e,t,n,r,i,o,a,s,c){var l={Id:e._nextId(),ObjectPathType:3,Name:n,ParentObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}},u=rt.setMethodArguments(e,l.ArgumentInfo,i),p=new j(l,t._objectPath,o,a,r,rt._fixupApiFlags(c));return p.argumentObjectPaths=u,p.getByIdMethodName=s,p},ze.createReferenceIdObjectPath=function(e,t){var n={Id:e._nextId(),ObjectPathType:6,Name:t,ArgumentInfo:{}};return new j(n,null,!1,!1,1,4)},ze.createChildItemObjectPathUsingIndexerOrGetItemAt=function(e,t,n,r,i){var o=rt.tryGetObjectIdFromLoadOrRetrieveResult(r);return e&&!rt.isNullOrUndefined(o)?ze.createChildItemObjectPathUsingIndexer(t,n,r):ze.createChildItemObjectPathUsingGetItemAt(t,n,r,i)},ze.createChildItemObjectPathUsingIndexer=function(e,t,n){var r=rt.tryGetObjectIdFromLoadOrRetrieveResult(n),i=i={Id:e._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}};return i.ArgumentInfo.Arguments=[r],new j(i,t._objectPath,!1,!1,1,4)},ze.createChildItemObjectPathUsingGetItemAt=function(e,t,n,r){var i=n[Re.index];i&&(r=i);var o={Id:e._nextId(),ObjectPathType:3,Name:Re.getItemAt,ParentObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}};return o.ArgumentInfo.Arguments=[r],new j(o,t._objectPath,!1,!1,1,4)},ze);function ze(){}m.ObjectPathFactory=qe;var Ke=(Je.prototype.executeAsync=function(e,t,n,r){var i=this,o=O.buildMessageArrayForIRequestExecutor(e,t,n,Je.SourceLibHeaderValue,r),a=this.m_context._blockWrite&&0!=(1&t);if(a)throw"Block Write: "+a;return new m.Promise(function(n,e){OSF.DDA.RichApi.executeRichApiRequestAsync(o,function(e){var t;P.log("Response:"),P.log(JSON.stringify(e)),"succeeded"==e.status?t=O.buildResponseOnSuccess(O.getResponseBody(e),O.getResponseHeaders(e)):(t=O.buildResponseOnError(e.error.code,e.error.message),i.m_context._processOfficeJsErrorResponse(e.error.code,t)),n(t)})})},Je.SourceLibHeaderValue="officejs",Je);function Je(e){this.m_context=e}var Xe=(Qe.prototype.add=function(e){var t=this;Array.isArray(e)?e.forEach(function(e){return t._addCommon(e,!0)}):this._addCommon(e,!0)},Qe.prototype._autoAdd=function(e){this._addCommon(e,!1),this._autoCleanupList[e._objectPath.objectPathInfo.Id]=e},Qe.prototype._autoTrackIfNecessaryWhenHandleObjectResultValue=function(e,t){this.m_context._autoCleanup&&!e[Re.isTracked]&&e!==this.m_context._rootObject&&t&&!rt.isNullOrEmptyString(t[Re.referenceId])&&((this._autoCleanupList[e._objectPath.objectPathInfo.Id]=e)[Re.isTracked]=!0)},Qe.prototype._addCommon=function(e,t){if(e[Re.isTracked])t&&this.m_context._autoCleanup&&delete this._autoCleanupList[e._objectPath.objectPathInfo.Id];else{var n=e[Re.referenceId];if(e._objectPath.objectPathInfo[Re.objectPathInfoDoNotKeepReferenceFieldName])throw rt.createRuntimeError(g.generalException,P._getResourceString(et.objectIsUntracked),null);rt.isNullOrEmptyString(n)&&e._KeepReference&&(e._KeepReference(),ce.createInstantiateAction(this.m_context,e),t&&this.m_context._autoCleanup&&delete this._autoCleanupList[e._objectPath.objectPathInfo.Id],e[Re.isTracked]=!0)}},Qe.prototype.remove=function(e){var t=this;Array.isArray(e)?e.forEach(function(e){return t._removeCommon(e)}):this._removeCommon(e)},Qe.prototype._removeCommon=function(e){e._objectPath.objectPathInfo[Re.objectPathInfoDoNotKeepReferenceFieldName]=!0,e.context._pendingRequest._removeKeepReferenceAction(e._objectPath.objectPathInfo.Id);var t=e[Re.referenceId];if(!rt.isNullOrEmptyString(t)){var n=this.m_context._rootObject;n._RemoveReference&&n._RemoveReference(t)}delete e[Re.isTracked]},Qe.prototype._retrieveAndClearAutoCleanupList=function(){var e=this._autoCleanupList;return this._autoCleanupList={},e},Qe);function Qe(e){this._autoCleanupList={},this.m_context=e}m.TrackedObjects=Xe;var Ye=(Ze.prototype.process=function(){this.m_showDispose&&Te._calculateLastUsedObjectPathIds(this.m_actions);for(var e=0;e<this.m_actions.length;e++)this.processOneAction(this.m_actions[e]);return this.m_statements},Ze.prototype.processForDebugStatementInfo=function(e){this.m_showDispose&&Te._calculateLastUsedObjectPathIds(this.m_actions),this.m_statements=[];for(var t=-1,n=0;n<this.m_actions.length&&(this.processOneAction(this.m_actions[n]),e==n&&(t=this.m_statements.length-1),!(0<=t&&this.m_statements.length>t+5+1));n++);if(t<0)return null;var r=t-5;r<0&&(r=0);var i=t+1+5;i>this.m_statements.length&&(i=this.m_statements.length);var o=[];0!=r&&o.push("...");for(var a=r;a<t;a++)o.push(this.m_statements[a]);o.push("// >>>>>"),o.push(this.m_statements[t]),o.push("// <<<<<");for(var s=t+1;s<i;s++)o.push(this.m_statements[s]);return i<this.m_statements.length&&o.push("..."),{statement:this.m_statements[t],surroundingStatements:o}},Ze.prototype.processOneAction=function(e){switch(e.actionInfo.ActionType){case 1:this.processInstantiateAction(e);break;case 3:this.processMethodAction(e);break;case 2:this.processQueryAction(e);break;case 7:this.processQueryAsJsonAction(e);break;case 6:this.processRecursiveQueryAction(e);break;case 4:this.processSetPropertyAction(e);break;case 5:this.processTraceAction(e);break;case 8:this.processEnsureUnchangedAction(e);break;case 9:this.processUpdateAction(e)}},Ze.prototype.processInstantiateAction=function(e){var t=e.actionInfo.ObjectPathId,n=this.m_referencedObjectPaths[t],r=this.getObjVarName(t);if(this.m_declaredObjectPathMap[t])i="// Instantiate {"+r+"}",i=this.appendDisposeCommentIfRelevant(i,e),this.m_statements.push(i);else{var i="var "+r+" = "+this.buildObjectPathExpressionWithParent(n)+";";i=this.appendDisposeCommentIfRelevant(i,e),this.m_statements.push(i),this.m_declaredObjectPathMap[t]=r}},Ze.prototype.processMethodAction=function(e){var t=e.actionInfo.Name;if("_KeepReference"===t){if(!m._internalConfig.showInternalApiInDebugInfo)return;t="track"}var n=this.getObjVarName(e.actionInfo.ObjectPathId)+"."+rt._toCamelLowerCase(t)+"("+this.buildArgumentsExpression(e.actionInfo.ArgumentInfo)+");";n=this.appendDisposeCommentIfRelevant(n,e),this.m_statements.push(n)},Ze.prototype.processQueryAction=function(e){var t=this.buildQueryExpression(e),n=this.getObjVarName(e.actionInfo.ObjectPathId)+".load("+t+");";n=this.appendDisposeCommentIfRelevant(n,e),this.m_statements.push(n)},Ze.prototype.processQueryAsJsonAction=function(e){var t=this.buildQueryExpression(e),n=this.getObjVarName(e.actionInfo.ObjectPathId)+".retrieve("+t+");";n=this.appendDisposeCommentIfRelevant(n,e),this.m_statements.push(n)},Ze.prototype.processRecursiveQueryAction=function(e){var t="";e.actionInfo.RecursiveQueryInfo&&(t=JSON.stringify(e.actionInfo.RecursiveQueryInfo));var n=this.getObjVarName(e.actionInfo.ObjectPathId)+".loadRecursive("+t+");";n=this.appendDisposeCommentIfRelevant(n,e),this.m_statements.push(n)},Ze.prototype.processSetPropertyAction=function(e){var t=this.getObjVarName(e.actionInfo.ObjectPathId)+"."+rt._toCamelLowerCase(e.actionInfo.Name)+" = "+this.buildArgumentsExpression(e.actionInfo.ArgumentInfo)+";";t=this.appendDisposeCommentIfRelevant(t,e),this.m_statements.push(t)},Ze.prototype.processTraceAction=function(e){var t="context.trace();";t=this.appendDisposeCommentIfRelevant(t,e),this.m_statements.push(t)},Ze.prototype.processEnsureUnchangedAction=function(e){var t=this.getObjVarName(e.actionInfo.ObjectPathId)+".ensureUnchanged("+JSON.stringify(e.actionInfo.ObjectState)+");";t=this.appendDisposeCommentIfRelevant(t,e),this.m_statements.push(t)},Ze.prototype.processUpdateAction=function(e){var t=this.getObjVarName(e.actionInfo.ObjectPathId)+".update("+JSON.stringify(e.actionInfo.ObjectState)+");";t=this.appendDisposeCommentIfRelevant(t,e),this.m_statements.push(t)},Ze.prototype.appendDisposeCommentIfRelevant=function(e,t){var n=this;if(this.m_showDispose){var r=t.actionInfo.L;if(r&&0<r.length)return e+" // And then dispose {"+r.map(function(e){return n.getObjVarName(e)}).join(", ")+"}"}return e},Ze.prototype.buildQueryExpression=function(e){if(e.actionInfo.QueryInfo){var t={};return t.select=e.actionInfo.QueryInfo.Select,t.expand=e.actionInfo.QueryInfo.Expand,t.skip=e.actionInfo.QueryInfo.Skip,t.top=e.actionInfo.QueryInfo.Top,void 0===t.top&&void 0===t.skip&&void 0===t.expand?void 0===t.select?"":JSON.stringify(t.select):JSON.stringify(t)}return""},Ze.prototype.buildObjectPathExpressionWithParent=function(e){return 5!=e.objectPathInfo.ObjectPathType&&3!=e.objectPathInfo.ObjectPathType&&4!=e.objectPathInfo.ObjectPathType||!e.objectPathInfo.ParentObjectPathId?this.buildObjectPathExpression(e):this.getObjVarName(e.objectPathInfo.ParentObjectPathId)+"."+this.buildObjectPathExpression(e)},Ze.prototype.buildObjectPathExpression=function(e){var t=this.buildObjectPathInfoExpression(e.objectPathInfo),n=e.originalObjectPathInfo;return n&&(t=t+" /* originally "+this.buildObjectPathInfoExpression(n)+" */"),t},Ze.prototype.buildObjectPathInfoExpression=function(e){switch(e.ObjectPathType){case 1:return"context."+this.m_globalObjName;case 5:return"getItem("+this.buildArgumentsExpression(e.ArgumentInfo)+")";case 3:return rt._toCamelLowerCase(e.Name)+"("+this.buildArgumentsExpression(e.ArgumentInfo)+")";case 2:return e.Name+".newObject()";case 7:return"null";case 4:return rt._toCamelLowerCase(e.Name);case 6:return"context."+this.m_globalObjName+"._getObjectByReferenceId("+JSON.stringify(e.Name)+")"}},Ze.prototype.buildArgumentsExpression=function(e){var t="";if(!e.Arguments||0===e.Arguments.length)return t;if(this.m_removePII)return void 0===e.Arguments[0]?t:"...";for(var n=0;n<e.Arguments.length;n++)0<n&&(t+=", "),t+=this.buildArgumentLiteral(e.Arguments[n],e.ReferencedObjectPathIds?e.ReferencedObjectPathIds[n]:null);return"undefined"===t&&(t=""),t},Ze.prototype.buildArgumentLiteral=function(e,t){return"number"==typeof e&&e===t?this.getObjVarName(t):JSON.stringify(e)},Ze.prototype.getObjVarNameBase=function(e){var t="v",n=this.m_referencedObjectPaths[e];if(n)switch(n.objectPathInfo.ObjectPathType){case 1:t=this.m_globalObjName;break;case 4:t=rt._toCamelLowerCase(n.objectPathInfo.Name);break;case 3:var r=n.objectPathInfo.Name;3<r.length&&"Get"===r.substr(0,3)&&(r=r.substr(3)),t=rt._toCamelLowerCase(r);break;case 5:var i=this.getObjVarNameBase(n.objectPathInfo.ParentObjectPathId);t="s"===i.charAt(i.length-1)?i.substr(0,i.length-1):i+"Item"}return t},Ze.prototype.getObjVarName=function(e){if(this.m_variableNameForObjectPathMap[e])return this.m_variableNameForObjectPathMap[e];var t=this.getObjVarNameBase(e);if(!this.m_variableNameToObjectPathMap[t])return this.m_variableNameForObjectPathMap[e]=t,this.m_variableNameToObjectPathMap[t]=e,t;for(var n=1;this.m_variableNameToObjectPathMap[t+n.toString()];)n++;return t+=n.toString(),this.m_variableNameForObjectPathMap[e]=t,this.m_variableNameToObjectPathMap[t]=e,t},Ze);function Ze(e,t,n,r,i){e=e||"root",this.m_globalObjName=e,this.m_referencedObjectPaths=t,this.m_actions=n,this.m_statements=[],this.m_variableNameForObjectPathMap={},this.m_variableNameToObjectPathMap={},this.m_declaredObjectPathMap={},this.m_showDispose=r,this.m_removePII=i}var $e,et=(__extends(tt,$e=ee),tt.cannotRegisterEvent="CannotRegisterEvent",tt.connectionFailureWithStatus="ConnectionFailureWithStatus",tt.connectionFailureWithDetails="ConnectionFailureWithDetails",tt.propertyNotLoaded="PropertyNotLoaded",tt.runMustReturnPromise="RunMustReturnPromise",tt.moreInfoInnerError="MoreInfoInnerError",tt.cannotApplyPropertyThroughSetMethod="CannotApplyPropertyThroughSetMethod",tt.invalidOperationInCellEditMode="InvalidOperationInCellEditMode",tt.objectIsUntracked="ObjectIsUntracked",tt.customFunctionDefintionMissing="CustomFunctionDefintionMissing",tt.customFunctionImplementationMissing="CustomFunctionImplementationMissing",tt.customFunctionNameContainsBadChars="CustomFunctionNameContainsBadChars",tt.customFunctionNameCannotSplit="CustomFunctionNameCannotSplit",tt.customFunctionUnexpectedNumberOfEntriesInResultBatch="CustomFunctionUnexpectedNumberOfEntriesInResultBatch",tt.customFunctionCancellationHandlerMissing="CustomFunctionCancellationHandlerMissing",tt.customFunctionInvalidFunction="CustomFunctionInvalidFunction",tt.customFunctionInvalidFunctionMapping="CustomFunctionInvalidFunctionMapping",tt.customFunctionWindowMissing="CustomFunctionWindowMissing",tt.customFunctionDefintionMissingOnWindow="CustomFunctionDefintionMissingOnWindow",tt.pendingBatchInProgress="PendingBatchInProgress",tt.notInsideBatch="NotInsideBatch",tt.cannotUpdateReadOnlyProperty="CannotUpdateReadOnlyProperty",tt);function tt(){return null!==$e&&$e.apply(this,arguments)||this}m.ResourceStrings=et,P.addResourceStringValues({CannotRegisterEvent:"The event handler cannot be registered.",PropertyNotLoaded:"The property '{0}' is not available. Before reading the property's value, call the load method on the containing object and call \"context.sync()\" on the associated request context.",RunMustReturnPromise:'The batch function passed to the ".run" method didn\'t return a promise. The function must return a promise, so that any automatically-tracked objects can be released at the completion of the batch operation. Typically, you return a promise by returning the response from "context.sync()".',InvalidOrTimedOutSessionMessage:"Your Office Online session has expired or is invalid. To continue, refresh the page.",InvalidOperationInCellEditMode:"Excel is in cell-editing mode. Please exit the edit mode by pressing ENTER or TAB or selecting another cell, and then try again.",InvalidSheetName:"The request cannot be processed because the specified worksheet cannot be found. Please try again.",CustomFunctionDefintionMissing:"A property with the name '{0}' that represents the function's definition must exist on Excel.Script.CustomFunctions.",CustomFunctionDefintionMissingOnWindow:"A property with the name '{0}' that represents the function's definition must exist on the window object.",CustomFunctionImplementationMissing:"The property with the name '{0}' on Excel.Script.CustomFunctions that represents the function's definition must contain a 'call' property that implements the function.",CustomFunctionNameContainsBadChars:"The function name may only contain letters, digits, underscores, and periods.",CustomFunctionNameCannotSplit:"The function name must contain a non-empty namespace and a non-empty short name.",CustomFunctionUnexpectedNumberOfEntriesInResultBatch:"The batching function returned a number of results that doesn't match the number of parameter value sets that were passed into it.",CustomFunctionCancellationHandlerMissing:"The cancellation handler onCanceled is missing in the function. The handler must be present as the function is defined as cancelable.",CustomFunctionInvalidFunction:"The property with the name '{0}' that represents the function's definition is not a valid function.",CustomFunctionInvalidFunctionMapping:"The property with the name '{0}' on CustomFunctionMappings that represents the function's definition is not a valid function.",CustomFunctionWindowMissing:"The window object was not found.",PendingBatchInProgress:"There is a pending batch in progress. The batch method may not be called inside another batch, or simultaneously with another batch.",NotInsideBatch:"Operations may not be invoked outside of a batch method.",CannotUpdateReadOnlyProperty:"The property '{0}' is read-only and it cannot be updated.",ObjectIsUntracked:"The object is untracked."});var nt,rt=(__extends(it,nt=Y),it.fixObjectPathIfNecessary=function(e,t){e&&e._objectPath&&t&&e._objectPath.updateUsingObjectData(t,e)},it.load=function(e,t){return e.context.load(e,t),e},it.loadAndSync=function(e,t){return e.context.load(e,t),e.context.sync().then(function(){return e})},it.retrieve=function(e,t){var n=m._internalConfig.alwaysPolyfillClientObjectRetrieveMethod;n=n||!it.isSetSupported("RichApiRuntime","1.1");var r=new Oe(e,n);return e._retrieve(t,r),r},it.retrieveAndSync=function(e,t){var n=it.retrieve(e,t);return e.context.sync().then(function(){return n})},it.toJson=function(e,t,n,r){var i={};for(var o in t)void 0!==(a=t[o])&&(i[o]=a);for(var o in n){var a;void 0!==(a=n[o])&&(a[it.fieldName_isCollection]&&void 0!==a[it.fieldName_m__items]?i[o]=a.toJSON().items:i[o]=a.toJSON())}return r&&(i.items=r.map(function(e){return e.toJSON()})),i},it.throwError=function(e,t,n){throw new h.RuntimeError({code:e,httpStatusCode:400,message:P._getResourceString(e,t),debugInfo:n?{errorLocation:n}:void 0})},it.createRuntimeError=function(e,t,n,r,i){return new h.RuntimeError({code:e,httpStatusCode:r,message:t,debugInfo:{errorLocation:n},data:i})},it.throwIfNotLoaded=function(e,t,n,r){if(!r&&P.isUndefined(t)&&e.charCodeAt(0)!=it.s_underscoreCharCode&&!it.s_suppressPropertyNotLoadedException)throw it.createPropertyNotLoadedException(n,e)},it._getPropertyValueWithoutCheckLoaded=function(e,t){it.s_suppressPropertyNotLoadedException=!0;try{return e[t]}finally{it.s_suppressPropertyNotLoadedException=!1}},it.createPropertyNotLoadedException=function(e,t){return new h.RuntimeError({code:re.propertyNotLoaded,httpStatusCode:400,message:P._getResourceString(et.propertyNotLoaded,t),debugInfo:e?{errorLocation:e+"."+t}:void 0})},it.createCannotUpdateReadOnlyPropertyException=function(e,t){return new h.RuntimeError({code:re.cannotUpdateReadOnlyProperty,httpStatusCode:400,message:P._getResourceString(et.cannotUpdateReadOnlyProperty,t),debugInfo:e?{errorLocation:e+"."+t}:void 0})},it.promisify=function(e){return new m.Promise(function(t,n){e(function(e){"failed"==e.status?n(e.error):t(e.value)})})},it._addActionResultHandler=function(e,t,n){e.context._pendingRequest.addActionResultHandler(t,n)},it._handleNavigationPropertyResults=function(e,t,n){for(var r=0;r<n.length-1;r+=2)P.isUndefined(t[n[r+1]])||e[n[r]]._handleResult(t[n[r+1]])},it._fixupApiFlags=function(e){return"boolean"==typeof e&&(e=e?1:0),e},it.definePropertyThrowUnloadedException=function(e,t,n){Object.defineProperty(e,n,{configurable:!0,enumerable:!0,get:function(){throw it.createPropertyNotLoadedException(t,n)},set:function(){throw it.createCannotUpdateReadOnlyPropertyException(t,n)}})},it.defineReadOnlyPropertyWithValue=function(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return n},set:function(){throw it.createCannotUpdateReadOnlyPropertyException(null,t)}})},it.processRetrieveResult=function(e,t,n,r){if(!P.isNullOrUndefined(t))if(r){var i=t[Re.itemsLowerCase];if(Array.isArray(i)){for(var o=[],a=0;a<i.length;a++){var s=r(i[a],a),c={};(c[Re.proxy]=s)._handleRetrieveResult(i[a],c),o.push(c)}it.defineReadOnlyPropertyWithValue(n,Re.itemsLowerCase,o)}}else{var l=e[Re.scalarPropertyNames],u=e[Re.navigationPropertyNames],p=e[Re.className];if(l)for(a=0;a<l.length;a++){var f=t[d=l[a]];P.isUndefined(f)?it.definePropertyThrowUnloadedException(n,p,d):it.defineReadOnlyPropertyWithValue(n,d,f)}if(u)for(a=0;a<u.length;a++){var d;if(f=t[d=u[a]],P.isUndefined(f))it.definePropertyThrowUnloadedException(n,p,d);else{var h=e[d],g={};h._handleRetrieveResult(f,g),g[Re.proxy]=h,Array.isArray(g[Re.itemsLowerCase])&&(g=g[Re.itemsLowerCase]),it.defineReadOnlyPropertyWithValue(n,d,g)}}}},it.setMockData=function(e,t,n,r){if(P.isNullOrUndefined(t))e._handleResult(t);else{if(e[Re.scalarPropertyOriginalNames]){for(var i={},o=e[Re.scalarPropertyOriginalNames],a=e[Re.scalarPropertyNames],s=0;s<a.length;s++)void 0!==t[a[s]]&&(i[o[s]]=t[a[s]]);e._handleResult(i)}if(e[Re.navigationPropertyNames]){var c=e[Re.navigationPropertyNames];for(s=0;s<c.length;s++)if(void 0!==t[c[s]]){var l=e[c[s]];l.setMockData&&l.setMockData(t[c[s]])}}if(e[Re.isCollection]&&n){var u=Array.isArray(t)?t:t[Re.itemsLowerCase];if(Array.isArray(u)){var p=[];for(s=0;s<u.length;s++){var f=n(u,s);it.setMockData(f,u[s]),p.push(f)}r(p)}}}},it.applyMixin=function(t,n){Object.getOwnPropertyNames(n.prototype).forEach(function(e){"constructor"!==e&&Object.defineProperty(t.prototype,e,Object.getOwnPropertyDescriptor(n.prototype,e))})},it.ensureTypeInitialized=function(e){var t=new be;new e(t,qe.createNewObjectObjectPath(t,"Temp",!1,0))},it.fieldName_m__items="m__items",it.fieldName_isCollection="_isCollection",it._synchronousCleanup=!1,it.s_underscoreCharCode="_".charCodeAt(0),it.s_suppressPropertyNotLoadedException=!1,it);function it(){return null!==nt&&nt.apply(this,arguments)||this}m.Utility=rt;var ot=(at.invokeMethod=function(e,t,n,r,i,o){var a=ce.createMethodAction(e.context,e,t,n,r,i),s=new U(o);return rt._addActionResultHandler(e,a,s),s},at.invokeEnsureUnchanged=function(e,t){ce.createEnsureUnchangedAction(e.context,e,t)},at.invokeSetProperty=function(e,t,n,r){ce.createSetPropertyAction(e.context,e,t,n,r)},at.createRootServiceObject=function(e,t){return new e(t,qe.createGlobalObjectObjectPath(t))},at.createObjectFromReferenceId=function(e,t,n){return new e(t,qe.createReferenceIdObjectPath(t,n))},at.createTopLevelServiceObject=function(e,t,n,r,i){return new e(t,qe.createNewObjectObjectPath(t,n,r,i))},at.createPropertyObject=function(e,t,n,r,i){var o=qe.createPropertyObjectPath(t.context,t,n,r,!1,i);return new e(t.context,o)},at.createIndexerObject=function(e,t,n){var r=qe.createIndexerObjectPath(t.context,t,n);return new e(t.context,r)},at.createMethodObject=function(e,t,n,r,i,o,a,s,c){var l=qe.createMethodObjectPath(t.context,t,n,r,i,o,a,s,c);return new e(t.context,l)},at.createChildItemObject=function(e,t,n,r,i){var o=qe.createChildItemObjectPathUsingIndexerOrGetItemAt(t,n.context,n,r,i);return new e(n.context,o)},at);function at(){}m.BatchApiHelper=ot;var st=(ct.prototype.ensureArraySize=function(e,t){for(var n=t-e.length;0<n;)e.push(0),n--},ct.prototype.getString=function(e){return"number"==typeof e?0<e?this.m_strings[e-1]:null:e},ct.prototype.buildEnumType=function(e){var t;if(Array.isArray(e)){(t={name:e[0],fields:e[2]}).fields||(t.fields={});var n=e[1];if(Array.isArray(n))for(var r=0;r<n.length;r++)t.fields[n[r]]=this.toSimpleCamelUpperCase(n[r])}else t=e;this.m_targetNamespaceObject[t.name]=t.fields},ct.prototype.buildClientObjectType=function(n,e){function t(e,t){pe.apply(this,arguments),r.m_targetNamespaceObject[n.name]._typeInited||(r.buildPrototype(r.m_targetNamespaceObject[n.name],n),r.m_targetNamespaceObject[n.name]._typeInited=!0),m._internalConfig.appendTypeNameToObjectPathInfo&&this._objectPath&&this._objectPath.objectPathInfo&&this._className&&(this._objectPath.objectPathInfo.T=this._className)}var r=this;this.m_targetNamespaceObject[n.name]=t,this.extendsType(t,pe),this.buildNewObject(t,n),0!=(2&n.behaviorFlags)&&(t.prototype._KeepReference=function(){ot.invokeMethod(this,"_KeepReference",1,[],0,0)}),0!=(32&n.behaviorFlags)&&this.getFunction(ct.CustomizationCodeNamespace+"."+n.name+"_StaticCustomize").call(null,t),e&&(this.buildPrototype(t,n),t._typeInited=!0)},ct.prototype.extendsType=function(e,t){function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ct.prototype.findObjectUnderPath=function(e,t,n){for(var r=e,i=n;i<t.length;i++){if("object"!=typeof r)throw new m.Error("Cannot find "+t.join("."));r=r[t[i]]}return r},ct.prototype.getFunction=function(e){var t=this.resolveObjectByFullName(e);if("function"!=typeof t)throw new m.Error("Cannot find function or type: "+e);return t},ct.prototype.resolveObjectByFullName=function(e){var t=e.split(".");if(1===t.length)return this.m_targetNamespaceObject[t[0]];var n=t[0];return n===this.m_namespace?this.findObjectUnderPath(this.m_targetNamespaceObject,t,1):this.m_namespaceMap[n]?this.findObjectUnderPath(this.m_namespaceMap[n],t,1):this.findObjectUnderPath(this.m_targetNamespaceObject,t,0)},ct.prototype.evaluateSimpleExpression=function(e,t){if(rt.isNullOrUndefined(e))return null;var n=e.split(".");if(3===n.length&&"OfficeExtension"===n[0]&&"Constants"===n[1])return Re[n[2]];if("this"!==n[0])throw new m.Error("Cannot evaluate: "+e);for(var r=t,i=1;i<n.length;i++)r="toString()"==n[i]?r.toString():"()"===n[i].substr(n[i].length-2)?r[n[i].substr(0,n[i].length-2)]():r[n[i]];return r},ct.prototype.evaluateEventTargetId=function(e,t){return rt.isNullOrEmptyString(e)?"":this.evaluateSimpleExpression(e,t)},ct.prototype.isAllDigits=function(e){for(var t="0".charCodeAt(0),n="9".charCodeAt(0),r=0;r<e.length;r++)if(e.charCodeAt(r)<t||e.charCodeAt(r)>n)return!1;return!0},ct.prototype.evaluateEventType=function(e){if(rt.isNullOrEmptyString(e))return 0;if(this.isAllDigits(e))return parseInt(e);var t=this.resolveObjectByFullName(e);if("number"!=typeof t)throw new m.Error("Invalid event type: "+e);return t},ct.prototype.buildPrototype=function(e,t){this.buildScalarProperties(e,t),this.buildNavigationProperties(e,t),this.buildScalarMethods(e,t),this.buildNavigationMethods(e,t),this.buildEvents(e,t),this.buildHandleResult(e,t),this.buildHandleIdResult(e,t),this.buildHandleRetrieveResult(e,t),this.buildLoad(e,t),this.buildRetrieve(e,t),this.buildSetMockData(e,t),this.buildEnsureUnchanged(e,t),this.buildUpdate(e,t),this.buildSet(e,t),this.buildToJSON(e,t),this.buildItems(e,t),this.buildTypeMetadataInfo(e,t),this.buildTrackUntrack(e,t),this.buildMixin(e,t)},ct.prototype.toSimpleCamelUpperCase=function(e){return e.substr(0,1).toUpperCase()+e.substr(1)},ct.prototype.ensureOriginalName=function(e){null===e.originalName&&(e.originalName=this.toSimpleCamelUpperCase(e.name))},ct.prototype.getFieldName=function(e){return"m_"+e.name},ct.prototype.throwIfApiNotSupported=function(e,t){if(this.m_apiSets&&0<t.apiSetInfoOrdinal){var n=this.m_apiSets[t.apiSetInfoOrdinal-1];n&&rt.throwIfApiNotSupported(e.name+"."+t.name,n.name,n.version,this.m_hostName)}},ct.prototype.buildScalarProperties=function(e,t){if(Array.isArray(t.scalarProperties))for(var n=0;n<t.scalarProperties.length;n++){var r=t.scalarProperties[n];Array.isArray(r)&&(this.ensureArraySize(r,6),t.scalarProperties[n]={name:this.getString(r[0]),behaviorFlags:r[1],apiSetInfoOrdinal:r[2],originalName:this.getString(r[3]),setMethodApiFlags:r[4],undoableApiSetInfoOrdinal:r[5]}),this.buildScalarProperty(e,t,t.scalarProperties[n])}},ct.prototype.calculateApiFlags=function(e,t){if(0<t){var n=this.m_apiSets[t-1];n&&(e=Y.calculateApiFlags(e,n.name,n.version))}return e},ct.prototype.buildScalarProperty=function(e,n,r){this.ensureOriginalName(r);var i=this,o=this.getFieldName(r),t={get:function(){return rt.throwIfNotLoaded(r.name,this[o],n.name,this._isNull),i.throwIfApiNotSupported(n,r),this[o]},enumerable:!0,configurable:!0};0==(2&r.behaviorFlags)&&(t.set=function(e){if(!(4&r.behaviorFlags&&i.getFunction(ct.CustomizationCodeNamespace+"."+n.name+"_"+r.originalName+"_Set").call(this,this,e).handled)){this[o]=e;var t=i.calculateApiFlags(r.setMethodApiFlags,r.undoableApiSetInfoOrdinal);ot.invokeSetProperty(this,r.originalName,e,t)}}),Object.defineProperty(e.prototype,r.name,t)},ct.prototype.buildNavigationProperties=function(e,t){if(Array.isArray(t.navigationProperties))for(var n=0;n<t.navigationProperties.length;n++){var r=t.navigationProperties[n];Array.isArray(r)&&(this.ensureArraySize(r,8),t.navigationProperties[n]={name:this.getString(r[0]),behaviorFlags:r[2],apiSetInfoOrdinal:r[3],originalName:this.getString(r[4]),getMethodApiFlags:r[5],setMethodApiFlags:r[6],propertyTypeFullName:this.getString(r[1]),undoableApiSetInfoOrdinal:r[7]}),this.buildNavigationProperty(e,t,t.navigationProperties[n])}},ct.prototype.buildNavigationProperty=function(e,n,r){this.ensureOriginalName(r);var i=this,o=this.getFieldName(r),t={get:function(){return this[i.getFieldName(r)]||(i.throwIfApiNotSupported(n,r),this[o]=ot.createPropertyObject(i.getFunction(r.propertyTypeFullName),this,r.originalName,0!=(16&r.behaviorFlags),r.getMethodApiFlags)),64&r.behaviorFlags&&i.getFunction(ct.CustomizationCodeNamespace+"."+n.name+"_"+r.originalName+"_Get").call(this,this,this[o]),this[o]},enumerable:!0,configurable:!0};0==(2&r.behaviorFlags)&&(t.set=function(e){if(!(4&r.behaviorFlags&&i.getFunction(ct.CustomizationCodeNamespace+"."+n.name+"_"+r.originalName+"_Set").call(this,this,e).handled)){this[o]=e;var t=i.calculateApiFlags(r.setMethodApiFlags,r.undoableApiSetInfoOrdinal);ot.invokeSetProperty(this,r.originalName,e,t)}}),Object.defineProperty(e.prototype,r.name,t)},ct.prototype.buildScalarMethods=function(e,t){if(Array.isArray(t.scalarMethods))for(var n=0;n<t.scalarMethods.length;n++){var r=t.scalarMethods[n];Array.isArray(r)&&(this.ensureArraySize(r,7),t.scalarMethods[n]={name:this.getString(r[0]),behaviorFlags:r[2],apiSetInfoOrdinal:r[3],originalName:this.getString(r[5]),apiFlags:r[4],parameterCount:r[1],undoableApiSetInfoOrdinal:r[6]}),this.buildScalarMethod(e,t,t.scalarMethods[n])}},ct.prototype.buildScalarMethod=function(e,p,f){this.ensureOriginalName(f);var d=this;e.prototype[f.name]=function(){var e=[];if(64&f.behaviorFlags&&0<f.parameterCount){for(var t=0;t<f.parameterCount-1;t++)e.push(arguments[t]);var n=[];for(t=f.parameterCount-1;t<arguments.length;t++)n.push(arguments[t]);e.push(n)}else for(t=0;t<arguments.length;t++)e.push(arguments[t]);if(1&f.behaviorFlags){var r=d.getFunction(ct.CustomizationCodeNamespace+"."+p.name+"_"+f.originalName),i=[this];for(t=0;t<e.length;t++)i.push(e[t]);var o=r.apply(this,i),a=o.handled,s=o.result;if(a)return s}d.throwIfApiNotSupported(p,f);var c=0;32&f.behaviorFlags&&(c=1);var l=0;2&f.behaviorFlags&&(l=1);var u=d.calculateApiFlags(f.apiFlags,f.undoableApiSetInfoOrdinal);return ot.invokeMethod(this,f.originalName,l,e,u,c)}},ct.prototype.buildNavigationMethods=function(e,t){if(Array.isArray(t.navigationMethods))for(var n=0;n<t.navigationMethods.length;n++){var r=t.navigationMethods[n];Array.isArray(r)&&(this.ensureArraySize(r,9),t.navigationMethods[n]={name:this.getString(r[0]),behaviorFlags:r[3],apiSetInfoOrdinal:r[4],originalName:this.getString(r[6]),apiFlags:r[5],parameterCount:r[2],returnTypeFullName:this.getString(r[1]),returnObjectGetByIdMethodName:this.getString(r[7]),undoableApiSetInfoOrdinal:r[8]}),this.buildNavigationMethod(e,t,t.navigationMethods[n])}},ct.prototype.buildNavigationMethod=function(e,u,p){this.ensureOriginalName(p);var f=this;e.prototype[p.name]=function(){var e=[];if(64&p.behaviorFlags&&0<p.parameterCount){for(var t=0;t<p.parameterCount-1;t++)e.push(arguments[t]);var n=[];for(t=p.parameterCount-1;t<arguments.length;t++)n.push(arguments[t]);e.push(n)}else for(t=0;t<arguments.length;t++)e.push(arguments[t]);if(1&p.behaviorFlags){var r=f.getFunction(ct.CustomizationCodeNamespace+"."+u.name+"_"+p.originalName),i=[this];for(t=0;t<e.length;t++)i.push(e[t]);var o=r.apply(this,i),a=o.handled,s=o.result;if(a)return s}if(f.throwIfApiNotSupported(u,p),0!=(16&p.behaviorFlags))return ot.createIndexerObject(f.getFunction(p.returnTypeFullName),this,e);var c=0;2&p.behaviorFlags&&(c=1);var l=f.calculateApiFlags(p.apiFlags,p.undoableApiSetInfoOrdinal);return ot.createMethodObject(f.getFunction(p.returnTypeFullName),this,p.originalName,c,e,0!=(4&p.behaviorFlags),0!=(8&p.behaviorFlags),p.returnObjectGetByIdMethodName,l)}},ct.prototype.buildHandleResult=function(e,l){var u=this;e.prototype._handleResult=function(e){if(pe.prototype._handleResult.call(this,e),!rt.isNullOrUndefined(e)){if(rt.fixObjectPathIfNecessary(this,e),8&l.behaviorFlags&&u.getFunction(ct.CustomizationCodeNamespace+"."+l.name+"_HandleResult").call(this,this,e),l.scalarProperties)for(var t=0;t<l.scalarProperties.length;t++)rt.isUndefined(e[l.scalarProperties[t].originalName])||(0!=(8&l.scalarProperties[t].behaviorFlags)?this[u.getFieldName(l.scalarProperties[t])]=rt.adjustToDateTime(e[l.scalarProperties[t].originalName]):this[u.getFieldName(l.scalarProperties[t])]=e[l.scalarProperties[t].originalName]);if(l.navigationProperties){for(var n=[],r=0;r<l.navigationProperties.length;r++)n.push(l.navigationProperties[r].name),n.push(l.navigationProperties[r].originalName);rt._handleNavigationPropertyResults(this,e,n)}if(0!=(1&l.behaviorFlags)){var i=u.hasIndexMethod(l);if(!rt.isNullOrUndefined(e[Re.items])){this.m__items=[];for(var o=e[Re.items],a=u.getFunction(l.childItemTypeFullName),s=0;s<o.length;s++){var c=ot.createChildItemObject(a,i,this,o[s],s);c._handleResult(o[s]),this.m__items.push(c)}}}}}},ct.prototype.buildHandleRetrieveResult=function(e,a){var s=this;e.prototype._handleRetrieveResult=function(e,t){if(pe.prototype._handleRetrieveResult.call(this,e,t),!rt.isNullOrUndefined(e)){if(a.scalarProperties)for(var n=0;n<a.scalarProperties.length;n++)8&a.scalarProperties[n].behaviorFlags&&(rt.isNullOrUndefined(e[a.scalarProperties[n].name])||(e[a.scalarProperties[n].name]=rt.adjustToDateTime(e[a.scalarProperties[n].name])));if(1&a.behaviorFlags){var r=s.hasIndexMethod(a),i=s.getFunction(a.childItemTypeFullName),o=this;rt.processRetrieveResult(o,e,t,function(e,t){return ot.createChildItemObject(i,r,o,e,t)})}else rt.processRetrieveResult(this,e,t)}}},ct.prototype.buildHandleIdResult=function(e,r){var i=this;e.prototype._handleIdResult=function(e){if(pe.prototype._handleIdResult.call(this,e),!rt.isNullOrUndefined(e)&&(16&r.behaviorFlags&&i.getFunction(ct.CustomizationCodeNamespace+"."+r.name+"_HandleIdResult").call(this,this,e),r.scalarProperties))for(var t=0;t<r.scalarProperties.length;t++){var n=r.scalarProperties[t].originalName;"Id"!==n&&"_Id"!==n&&"_ReferenceId"!==n||rt.isNullOrUndefined(e[r.scalarProperties[t].originalName])||(this[i.getFieldName(r.scalarProperties[t])]=e[r.scalarProperties[t].originalName])}}},ct.prototype.buildLoad=function(e,t){e.prototype.load=function(e){return rt.load(this,e)}},ct.prototype.buildRetrieve=function(e,t){e.prototype.retrieve=function(e){return rt.retrieve(this,e)}},ct.prototype.buildNewObject=function(t,n){rt.isNullOrEmptyString(n.newObjectServerTypeFullName)||(t.newObject=function(e){return ot.createTopLevelServiceObject(t,e,n.newObjectServerTypeFullName,0!=(1&n.behaviorFlags),n.newObjectApiFlags)})},ct.prototype.buildSetMockData=function(e,r){var i=this;if(1&r.behaviorFlags){var o=i.hasIndexMethod(r);e.prototype.setMockData=function(e){var n=this;rt.setMockData(n,e,function(e,t){return ot.createChildItemObject(i.getFunction(r.childItemTypeFullName),o,n,e,t)},function(e){n.m__items=e})}}else e.prototype.setMockData=function(e){rt.setMockData(this,e)}},ct.prototype.buildEnsureUnchanged=function(e,t){e.prototype.ensureUnchanged=function(e){ot.invokeEnsureUnchanged(this,e)}},ct.prototype.buildUpdate=function(e,t){e.prototype.update=function(e){this._recursivelyUpdate(e)}},ct.prototype.buildSet=function(e,t){if(0==(1&t.behaviorFlags)){var n=[],r=[];if(t.scalarProperties)for(var i=0;i<t.scalarProperties.length;i++)0==(2&t.scalarProperties[i].behaviorFlags)&&0!=(1&t.scalarProperties[i].behaviorFlags)?r.push(t.scalarProperties[i].name):n.push(t.scalarProperties[i].name);var o=[];if(t.navigationProperties)for(i=0;i<t.navigationProperties.length;i++)0!=(16&t.navigationProperties[i].behaviorFlags)||0==(1&t.navigationProperties[i].behaviorFlags)||0==(32&t.navigationProperties[i].behaviorFlags)?n.push(t.navigationProperties[i].name):o.push(t.navigationProperties[i].name);0===o.length&&0===r.length||(e.prototype.set=function(e,t){this._recursivelySet(e,t,r,o,n)})}},ct.prototype.buildItems=function(e,t){0!=(1&t.behaviorFlags)&&Object.defineProperty(e.prototype,"items",{get:function(){return rt.throwIfNotLoaded("items",this.m__items,t.name,this._isNull),this.m__items},enumerable:!0,configurable:!0})},ct.prototype.buildToJSON=function(e,r){var i=this;0==(1&r.behaviorFlags)?e.prototype.toJSON=function(){var e={};if(r.scalarProperties)for(var t=0;t<r.scalarProperties.length;t++)0!=(1&r.scalarProperties[t].behaviorFlags)&&(e[r.scalarProperties[t].name]=this[i.getFieldName(r.scalarProperties[t])]);var n={};if(r.navigationProperties)for(t=0;t<r.navigationProperties.length;t++)0!=(1&r.navigationProperties[t].behaviorFlags)&&(n[r.navigationProperties[t].name]=this[i.getFieldName(r.navigationProperties[t])]);return rt.toJson(this,e,n)}:e.prototype.toJSON=function(){return rt.toJson(this,{},{},this.m__items)}},ct.prototype.buildTypeMetadataInfo=function(e,t){Object.defineProperty(e.prototype,"_className",{get:function(){return t.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_isCollection",{get:function(){return 0!=(1&t.behaviorFlags)},enumerable:!0,configurable:!0}),rt.isNullOrEmptyString(t.collectionPropertyPath)||Object.defineProperty(e.prototype,"_collectionPropertyPath",{get:function(){return t.collectionPropertyPath},enumerable:!0,configurable:!0}),t.scalarProperties&&0<t.scalarProperties.length&&(Object.defineProperty(e.prototype,"_scalarPropertyNames",{get:function(){return this.m__scalarPropertyNames||(this.m__scalarPropertyNames=t.scalarProperties.map(function(e){return e.name})),this.m__scalarPropertyNames},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_scalarPropertyOriginalNames",{get:function(){return this.m__scalarPropertyOriginalNames||(this.m__scalarPropertyOriginalNames=t.scalarProperties.map(function(e){return e.originalName})),this.m__scalarPropertyOriginalNames},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_scalarPropertyUpdateable",{get:function(){return this.m__scalarPropertyUpdateable||(this.m__scalarPropertyUpdateable=t.scalarProperties.map(function(e){return 0==(2&e.behaviorFlags)})),this.m__scalarPropertyUpdateable},enumerable:!0,configurable:!0})),t.navigationProperties&&0<t.navigationProperties.length&&Object.defineProperty(e.prototype,"_navigationPropertyNames",{get:function(){return this.m__navigationPropertyNames||(this.m__navigationPropertyNames=t.navigationProperties.map(function(e){return e.name})),this.m__navigationPropertyNames},enumerable:!0,configurable:!0})},ct.prototype.buildTrackUntrack=function(e,t){2&t.behaviorFlags&&(e.prototype.track=function(){return this.context.trackedObjects.add(this),this},e.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this})},ct.prototype.buildMixin=function(e,t){if(4&t.behaviorFlags){var n=this.getFunction(t.name+"Custom");rt.applyMixin(e,n)}},ct.prototype.getOnEventName=function(e){return"_"===e[0]?"_on"+e.substr(1):"on"+e},ct.prototype.buildEvents=function(e,t){if(t.events)for(var n=0;n<t.events.length;n++){var r=t.events[n];Array.isArray(r)&&(this.ensureArraySize(r,7),t.events[n]={name:this.getString(r[0]),behaviorFlags:r[1],apiSetInfoOrdinal:r[2],typeExpression:this.getString(r[3]),targetIdExpression:this.getString(r[4]),register:this.getString(r[5]),unregister:this.getString(r[6])}),this.buildEvent(e,t,t.events[n])}},ct.prototype.buildEvent=function(e,t,n){1&n.behaviorFlags?this.buildV0Event(e,t,n):this.buildV2Event(e,t,n)},ct.prototype.buildV2Event=function(e,o,a){var s=this,t=this.getOnEventName(a.name),c=this.getFieldName(a);Object.defineProperty(e.prototype,t,{get:function(){if(!this[c]){s.throwIfApiNotSupported(o,a);var t=this,e=null;"null"!==a.register&&(e=this[a.register].bind(this));var n=null;"null"!==a.unregister&&(n=this[a.unregister].bind(this));var r=null;2&a.behaviorFlags&&(r=s.getFunction(ct.CustomizationCodeNamespace+"."+o.name+"_"+a.name+"_EventArgsTransform"));var i=s.evaluateEventType(a.typeExpression);this[c]=new Ue(this.context,this,a.name,{eventType:i,getTargetIdFunc:function(){return s.evaluateEventTargetId(a.targetIdExpression,t)},registerFunc:e,unregisterFunc:n,eventArgsTransformFunc:function(e){return r&&(e=r.call(t,t,e)),rt._createPromiseFromResult(e)}})}return this[c]},enumerable:!0,configurable:!0})},ct.prototype.buildV0Event=function(e,c,l){var u=this,t=this.getOnEventName(l.name),p=this.getFieldName(l);Object.defineProperty(e.prototype,t,{get:function(){if(!this[p]){u.throwIfApiNotSupported(c,l);var n=this,e=null;if(rt.isNullOrEmptyString(l.register)){var r=u.evaluateEventType(l.typeExpression);e=function(e){var t=u.evaluateEventTargetId(l.targetIdExpression,n);return n.context.eventRegistration.register(r,t,e)}}else if("null"!==l.register){var t=u.getFunction(l.register);e=function(e){return t.call(n,n,e)}}var i=null;if(rt.isNullOrEmptyString(l.unregister)){var o=u.evaluateEventType(l.typeExpression);i=function(e){var t=u.evaluateEventTargetId(l.targetIdExpression,n);return n.context.eventRegistration.unregister(o,t,e)}}else if("null"!==l.unregister){var a=u.getFunction(l.unregister);i=function(e){return a.call(n,n,e)}}var s=null;2&l.behaviorFlags&&(s=u.getFunction(ct.CustomizationCodeNamespace+"."+c.name+"_"+l.name+"_EventArgsTransform")),this[p]=new Ne(this.context,this,l.name,{registerFunc:e,unregisterFunc:i,eventArgsTransformFunc:function(e){return s&&(e=s.call(n,n,e)),rt._createPromiseFromResult(e)}})}return this[p]},enumerable:!0,configurable:!0})},ct.prototype.hasIndexMethod=function(e){var t=!1;if(e.navigationMethods)for(var n=0;n<e.navigationMethods.length;n++)if(0!=(16&e.navigationMethods[n].behaviorFlags)){t=!0;break}return t},ct.CustomizationCodeNamespace="_CC",ct);function ct(e){if(this.m_namespaceMap={},this.m_namespace=e.metadata.name,this.m_targetNamespaceObject=e.targetNamespaceObject,this.m_namespaceMap[this.m_namespace]=e.targetNamespaceObject,e.namespaceMap)for(var t in e.namespaceMap)this.m_namespaceMap[t]=e.namespaceMap[t];this.m_defaultApiSetName=e.metadata.defaultApiSetName,this.m_hostName=e.metadata.hostName;var n=e.metadata;if(n.enumTypes)for(var r=0;r<n.enumTypes.length;r++)this.buildEnumType(n.enumTypes[r]);if(n.apiSets){for(r=0;r<n.apiSets.length;r++){var i=n.apiSets[r];Array.isArray(i)&&(n.apiSets[r]={version:i[0],name:i[1]||this.m_defaultApiSetName})}this.m_apiSets=n.apiSets}if(this.m_strings=n.strings,n.clientObjectTypes)for(r=0;r<n.clientObjectTypes.length;r++){i=n.clientObjectTypes[r];Array.isArray(i)&&(this.ensureArraySize(i,11),n.clientObjectTypes[r]={name:this.getString(i[0]),behaviorFlags:i[1],collectionPropertyPath:this.getString(i[6]),newObjectServerTypeFullName:this.getString(i[9]),newObjectApiFlags:i[10],childItemTypeFullName:this.getString(i[7]),scalarProperties:i[2],navigationProperties:i[3],scalarMethods:i[4],navigationMethods:i[5],events:i[8]}),this.buildClientObjectType(n.clientObjectTypes[r],e.fullyInitialize)}}m.LibraryBuilder=st}(OfficeExtension=OfficeExtension||{}),function(e){var t;(t||(t={})).getPromiseType=function(){if("undefined"!=typeof Promise)return Promise;if(void 0!==Office&&Office.Promise)return Office.Promise;throw new e.Error("No Promise implementation found")},Object.defineProperty(e,"Promise",{get:function(){return t.getPromiseType()},enumerable:!0,configurable:!0})}(OfficeExtension=OfficeExtension||{});try{if("undefined"!=typeof OfficePlatformGlobal&&void 0!==OfficePlatformGlobal.ReactNativeReka){var RichApiBridgeImpl=function(){function e(){}return e.prototype.sendMessageToHost=function(e){OfficePlatformGlobal.ReactNativeReka.RekaInstance.InvokeNative("RichApiDataService","ProcessMessageToHost",e)},e}(),RichApiBridge_1=new RichApiBridgeImpl,RichApiDataService_1=function(){function e(){}return e.prototype.Invoke=function(e,t){"ProcessMessageFromHost"===e&&RichApiBridge_1.onMessageFromHost&&RichApiBridge_1.onMessageFromHost(t)},e}();OfficePlatformGlobal.ReactNativeReka.initReka(),OfficePlatformGlobal.ReactNativeReka.RekaInstance.RegisterService("RichApiDataService",function(){return new RichApiDataService_1}),OfficeExtension.HostBridge.init(RichApiBridge_1),OfficeExtension.HostBridgeSession.getInstanceIfHostBridgeInited()}}catch(e){}var oteljs;__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};!function(e){function r(e,t,n,r){return{name:e,dataType:t,value:n,classification:r||4}}e.makeBooleanDataField=function(e,t,n){return r(e,1,t,n)},e.makeInt64DataField=function(e,t,n){return r(e,2,t,n)},e.makeDoubleDataField=function(e,t,n){return r(e,3,t,n)},e.makeStringDataField=function(e,t,n){return r(e,0,t,n)},e.makeGuidDataField=function(e,t,n){return r(e,4,t,n)}}(oteljs=oteljs||{}),function(e){var t,n,r,i,o,a,s,c,l,u,p,f,d;(t=e.DataClassification||(e.DataClassification={}))[t.EssentialServiceMetadata=1]="EssentialServiceMetadata",t[t.AccountData=2]="AccountData",t[t.SystemMetadata=4]="SystemMetadata",t[t.OrganizationIdentifiableInformation=8]="OrganizationIdentifiableInformation",t[t.EndUserIdentifiableInformation=16]="EndUserIdentifiableInformation",t[t.CustomerContent=32]="CustomerContent",t[t.AccessControl=64]="AccessControl",t[t.PublicNonPersonalData=128]="PublicNonPersonalData",t[t.EndUserPseudonymousInformation=256]="EndUserPseudonymousInformation",t[t.PublicPersonalData=512]="PublicPersonalData",t[t.SupportData=1024]="SupportData",t[t.DirectMeasurementData=2048]="DirectMeasurementData",t[t.Everything=65535]="Everything",(n=e.DataFieldType||(e.DataFieldType={}))[n.String=0]="String",n[n.Boolean=1]="Boolean",n[n.Int64=2]="Int64",n[n.Double=3]="Double",n[n.Guid=4]="Guid",(r=e.SamplingPolicy||(e.SamplingPolicy={}))[r.NotSet=0]="NotSet",r[r.Measure=1]="Measure",r[r.Diagnostics=2]="Diagnostics",r[r.CriticalBusinessImpact=191]="CriticalBusinessImpact",r[r.CriticalCensus=192]="CriticalCensus",r[r.CriticalExperimentation=193]="CriticalExperimentation",r[r.CriticalUsage=194]="CriticalUsage",(i=e.PersistencePriority||(e.PersistencePriority={}))[i.NotSet=0]="NotSet",i[i.Normal=1]="Normal",i[i.High=2]="High",(o=e.CostPriority||(e.CostPriority={}))[o.NotSet=0]="NotSet",o[o.Normal=1]="Normal",o[o.High=2]="High",(a=e.DataCategories||(e.DataCategories={}))[a.NotSet=0]="NotSet",a[a.SoftwareSetup=1]="SoftwareSetup",a[a.ProductServiceUsage=2]="ProductServiceUsage",a[a.ProductServicePerformance=4]="ProductServicePerformance",a[a.DeviceConfiguration=8]="DeviceConfiguration",a[a.InkingTypingSpeech=16]="InkingTypingSpeech",(s=e.DiagnosticLevel||(e.DiagnosticLevel={}))[s.ReservedDoNotUse=0]="ReservedDoNotUse",s[s.Required=10]="Required",s[s.BasicEvent=10]="BasicEvent",s[s.Optional=100]="Optional",s[s.FullEvent=100]="FullEvent",s[s.RequiredServiceData=110]="RequiredServiceData",s[s.NecessaryServiceDataEvent=110]="NecessaryServiceDataEvent",s[s.RequiredServiceDataForEssentialServices=120]="RequiredServiceDataForEssentialServices",s[s.AlwaysOnNecessaryServiceDataEvent=120]="AlwaysOnNecessaryServiceDataEvent",(c=e.CustomerContentType||(e.CustomerContentType={}))[c.None=0]="None",c[c.MocaAddIn=1]="MocaAddIn",(l=e.LogLevel||(e.LogLevel={}))[l.Error=0]="Error",l[l.Warning=1]="Warning",l[l.Info=2]="Info",l[l.Verbose=3]="Verbose",(u=e.Category||(e.Category={}))[u.Core=0]="Core",u[u.Sink=1]="Sink",u[u.Transport=2]="Transport",(p=e.DnmInterval||(e.DnmInterval={}))[p.Hourly=1]="Hourly",p[p.Daily=2]="Daily",(f=e.AllowedPartA||(e.AllowedPartA={}))[f.ReleaseAudienceGroup=1]="ReleaseAudienceGroup",f[f.WacRing=2]="WacRing",f[f.AppName=3]="AppName",f[f.AppPlatform=4]="AppPlatform",f[f.AppVersion=5]="AppVersion",(d=e.EventType||(e.EventType={}))[d.SendTelemetryEvent=1]="SendTelemetryEvent",d[d.CustomerContent=2]="CustomerContent",d[d.DirectNumericEvent=3]="DirectNumericEvent"}(oteljs=oteljs||{}),function(n){n.getEffectiveEventFlags=function(e){var t={costPriority:1,samplingPolicy:1,persistencePriority:1,dataCategories:0,diagnosticLevel:100};return e.eventFlags&&e.eventFlags.dataCategories||n.logNotification(0,0,function(){return"DataCategories"}),e.eventFlags&&(e.eventFlags.costPriority&&(t.costPriority=e.eventFlags.costPriority),e.eventFlags.samplingPolicy&&(t.samplingPolicy=e.eventFlags.samplingPolicy),e.eventFlags.persistencePriority&&(t.persistencePriority=e.eventFlags.persistencePriority),e.eventFlags.dataCategories&&(t.dataCategories=e.eventFlags.dataCategories),e.eventFlags.diagnosticLevel&&(t.diagnosticLevel=e.eventFlags.diagnosticLevel)),t}}(oteljs=oteljs||{}),function(e){var n,r=(n=[],{fireEvent:function(t){n.forEach(function(e){return e(t)})},addListener:function(e){e&&n.push(e)}});function i(e,t,n){r.fireEvent({level:e,category:t,message:n})}e.onNotification=function(){return r},e.logNotification=i,e.logError=function(e,t,n){i(0,e,function(){var e=n instanceof Error?n.message:"";return"".concat(t,": ").concat(e)})}}(oteljs=oteljs||{}),function(a){var e,t;function i(e){var t={eventName:e.eventName,eventFlags:e.eventFlags||{},telemetryProperties:e.telemetryProperties?__assign({},e.telemetryProperties):{},dataFields:e.dataFields?e.dataFields.slice():[],timestamp:e.timestamp||(new Date).getTime()};return e.eventContract&&(t.eventContract={name:e.eventContract.name,dataFields:e.eventContract.dataFields.slice()}),t}(t=e=e||{})[t.TelemetryData=0]="TelemetryData",t[t.AnonymousData=1]="AnonymousData",t[t.CustomerContent=2]="CustomerContent",a.SuppressNexus=-1,a.cloneEvent=i;var n=(r.prototype.addEventContentType=function(e,t){e.push(a.makeInt64DataField("EventContent.Type",t))},r.prototype.sendTelemetryEvent=function(e){var t=i(e),n=t.telemetryProperties;n.nexusTenantToken=a.SuppressNexus;var r=n.ariaTenantToken;r||a.fillTenantTokens(t.eventName,n)||r?this.sendTelemetryEventInternal(t,1):a.logNotification(0,0,function(){return"No tenant token: "+e.eventName})},r.prototype.sendNonStandardEvent=function(e,t){var n=i(e);this.sendTelemetryEventInternal(n,t)},r.prototype.sendCustomerContent=function(e){var t=i(e),n=t.telemetryProperties,r=n.customerContentVersion;return(!r||2<r)&&(n.customerContentVersion=2),n.ariaTenantToken=void 0,n.nexusTenantToken=void 0,n.dnmToken=void 0,this.addEventContentType(t.dataFields,2),this.sendTelemetryEventInternal(t,2)},r.prototype.sendDirectNumericEvent=function(e){var t=i(e),n=t.telemetryProperties;n.dnmToken||a.fillTenantTokens(t.eventName,n)||n.dnmToken?(this.addEventContentType(t.dataFields,1),this.sendTelemetryEventInternal(t,3)):a.logNotification(0,0,function(){return"No dnm token: "+t.eventName})},r.prototype.sendTelemetryEventInternal=function(t,n){if(2===n||!t.telemetryProperties.customerContentVersion&&!t.telemetryProperties.customerContentType){try{if(0===this.telemetrySinks.length)return void(this.config.enableQueue&&this.eventQueue.length<1e3?this.eventQueue.push([t,n]):a.logNotification(1,0,function(){return"No telemetry sinks are attached."}));this.processTelemetryEvent(t,n)}catch(e){return void a.logError(0,"SendTelemetryEvent",e)}this.telemetrySinks.forEach(function(e){try{3===n||2===n?e.sendNonStandardEvent&&e.sendNonStandardEvent(t,n):e.sendTelemetryEvent(t)}catch(e){}})}else a.logNotification(0,0,function(){return"Customer content"})},r.prototype.processTelemetryEvent=function(e,t){var n,r,i;if(e.dataFields&&(null!==(i=e.dataFields)&&void 0!==i&&i.unshift(a.makeStringDataField("OTelJS.Version",a.oteljsVersion)),3!==t&&this.persistentDataFields&&(n=e.dataFields).unshift.apply(n,this.persistentDataFields)),0<this.partAFields.length){var o=e.eventContract||{name:"",dataFields:[]};(r=o.dataFields).push.apply(r,this.partAFields),e.eventContract=o}this.config.disableValidation||a.validateTelemetryEvent(e)},r.prototype.addSink=function(e){this.telemetrySinks.push(e),this.flushQueue()},r.prototype.flushQueue=function(){var e=this.eventQueue;if(this.eventQueue=[],0<this.telemetrySinks.length)for(var t=0,n=e;t<n.length;t++){var r=n[t],i=r[0],o=r[1];this.sendTelemetryEventInternal(i,o)}},r.prototype.setTenantToken=function(e,t,n){a.setTenantTokens(e,{ariaTenantToken:t,nexusTenantToken:n})},r.prototype.setDNMToken=function(e,t){a.setTenantTokens(e,{dnmToken:t})},r.prototype.cloneEvent=function(e){return i(e)},r.prototype.getConfig=function(){return this.config},r);function r(e,t,n){var r,i,o;this.telemetrySinks=[],this.persistentDataFields=[],this.partAFields=[],this.eventQueue=[],this.config=n||{},e&&(this.telemetrySinks=e.telemetrySinks,(r=this.persistentDataFields).push.apply(r,e.persistentDataFields),this.config=__assign(__assign({},e.getConfig()),this.config),(i=this.partAFields).push.apply(i,e.partAFields)),t&&(o=this.persistentDataFields).push.apply(o,t)}a.SimpleTelemetryLogger=n}(oteljs=oteljs||{}),function(e){var t=9007199254740991,n=-t,r=98,i=/^Office(\.[A-Z][a-zA-Z0-9]*){2,}$/,o=/^[a-zA-Z0-9_\.]{1,95}$/;function a(e){return o.test(e)}function s(e){e&&e.forEach(function(e){if("string"!=typeof e.name||!a(e.name))throw new Error("Invalid dataField name");2===e.dataType&&c(e.value)})}function c(e){if("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e<n||t<e)throw new Error("Invalid integer ".concat(JSON.stringify(e)))}e.validateTelemetryEvent=function(e){if(!function(e){if(!e||e.length>r)return;return i.test(e)}(e.eventName))throw new Error("Invalid eventName");var t=e.eventContract;if(t){if(t.name&&!a(t.name))throw new Error("Invalid eventContract");s(t.dataFields)}s(e.dataFields)},e.validateInt=c}(oteljs=oteljs||{}),function(n){var o={};n.setTenantTokens=function(e,t){"Office."===e.substring(0,7)&&"."!==e[e.length-1]?o[e]?(t.ariaTenantToken&&(o[e].ariaTenantToken=t.ariaTenantToken),t.dnmToken&&(o[e].dnmToken=t.dnmToken)):o[e]=t:n.logNotification(0,0,function(){return"Namespace: ".concat(e)})},n.fillTenantTokens=function(e,t){for(var n=e.length;0<n;){var r=e.substr(0,n);if(o[r]){var i=o[r];return t.ariaTenantToken=i.ariaTenantToken,t.dnmToken=i.dnmToken,!0}n=e.lastIndexOf(".",n-1)}return!1},n.clear=function(){o={}}}(oteljs=oteljs||{}),(oteljs||(oteljs={})).oteljsVersion="4.18.0",function(a){var e=(t.isSupportedByDeclaration=function(){return t.isSupportedVersion("1.2")},t.isSupportedVersion=function(e){return Office.context.requirements.isSetSupported("Telemetry",e)},t.prototype.sendCustomerContent=function(e){t.isSupportedVersion("1.3")&&(this._customerContentQueue.push(e),this.processWorkBacklog())},t.prototype.sendTelemetryEvent=function(e){this._telemetryQueue.push(e),this.processWorkBacklog()},t.prototype.processWorkBacklog=function(){var t=this;this._requestIsPending||(this._requestIsPending=!0,this.processTelemetryEvents().then(function(){t.waitAndProcessMore()}).catch(function(e){a.logError(1,"RichApiSink Error",e),t.waitAndProcessMore()}))},t.prototype.waitAndProcessMore=function(){var e=this;this.pause(1e3).then(function(){e._requestIsPending=!1,0<e._telemetryQueue.length&&setTimeout(function(){return e.processWorkBacklog()},0)}).catch(function(){e._requestIsPending=!1})},t.prototype.processTelemetryEvents=function(){var i=this,e=this._telemetryQueue;this._telemetryQueue=[];var t=this._customerContentQueue;function n(e,t){if(e.telemetryProperties){var n=[];i.addDataFields(n,e.dataFields);var r=e.eventContract?e.eventContract.name:"";e.eventContract&&i.addDataFields(n,e.eventContract.dataFields),t(e.telemetryProperties,e.eventName,r,a.getEffectiveEventFlags(e),n)}}this._customerContentQueue=[];var o=new OfficeCore.RequestContext;return e.forEach(function(e){n(e,function(e,t,n,r,i){o.telemetry.sendTelemetryEvent(e,t,n,r,i)})}),t.forEach(function(e){n(e,function(e,t,n,r,i){o.telemetry.sendCustomerContent(e,t,n,r,i)})}),o.sync().catch(function(e){a.logError(1,"RichApi telemetry failed.",e)})},t.prototype.addDataFields=function(t,e){e&&e.forEach(function(e){t.push({name:e.name,value:e.value,classification:e.classification?e.classification:4,type:4===e.dataType?0:e.dataType})})},t.prototype.pause=function(t){return new Office.Promise(function(e){return setTimeout(e,t)})},t);function t(){var e=this;this._requestIsPending=!0,this._telemetryQueue=[],this._customerContentQueue=[],this.pause(1e3).then(function(){return e._requestIsPending=!1,e.processTelemetryEvents()}).catch()}a.RichApiSink=e}(oteljs=oteljs||{}),function(r){var e,t,n;e=r.Contracts||(r.Contracts={}),t=e.Office||(e.Office={}),((n=t.System||(t.System={})).SDX||(n.SDX={})).getFields=function(e,t){var n=[];return void 0!==t.id&&n.push(r.makeStringDataField("".concat(e,".Id"),t.id)),void 0!==t.version&&n.push(r.makeStringDataField("".concat(e,".Version"),t.version)),void 0!==t.instanceId&&n.push(r.makeStringDataField("".concat(e,".InstanceId"),t.instanceId)),void 0!==t.name&&n.push(r.makeStringDataField("".concat(e,".Name"),t.name)),void 0!==t.marketplaceType&&n.push(r.makeStringDataField("".concat(e,".MarketplaceType"),t.marketplaceType)),void 0!==t.sessionId&&n.push(r.makeStringDataField("".concat(e,".SessionId"),t.sessionId)),void 0!==t.browserToken&&n.push(r.makeStringDataField("".concat(e,".BrowserToken"),t.browserToken)),void 0!==t.osfRuntimeVersion&&n.push(r.makeStringDataField("".concat(e,".OsfRuntimeVersion"),t.osfRuntimeVersion)),void 0!==t.officeJsVersion&&n.push(r.makeStringDataField("".concat(e,".OfficeJsVersion"),t.officeJsVersion)),void 0!==t.hostJsVersion&&n.push(r.makeStringDataField("".concat(e,".HostJsVersion"),t.hostJsVersion)),void 0!==t.assetId&&n.push(r.makeStringDataField("".concat(e,".AssetId"),t.assetId)),void 0!==t.providerName&&n.push(r.makeStringDataField("".concat(e,".ProviderName"),t.providerName)),void 0!==t.type&&n.push(r.makeStringDataField("".concat(e,".Type"),t.type)),n}}(oteljs=oteljs||{}),function(i){var e=(t.isSupported=function(){return Office.context&&Office.context.platform?Office.context.platform===Office.PlatformType.OfficeOnline:OfficeExt&&OfficeExt.HostName&&OfficeExt.HostName.Host&&OfficeExt.HostName.Host.getInstance().getPlatform()===Office.PlatformType.OfficeOnline},t.prototype.sendTelemetryEvent=function(e,t){try{if(e.dataFields&&0<e.dataFields.filter(function(e){var t=e.classification;return t&&4!==t&&1!==t}).length)return;var n=OSF._OfficeAppFactory.getId(),r=OSF.AgaveHostAction.SendTelemetryEvent;OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n,r,e])}catch(e){i.logError(1,"AgaveWacSink",e)}},t.prototype.sendCustomerContent=function(e,t){try{if(e.dataFields&&0<e.dataFields.filter(function(e){var t=e.classification;return t&&4!==t&&1!==t&&32!==t}).length)return;var n=OSF._OfficeAppFactory.getId(),r=OSF.AgaveHostAction.SendCustomerContent;OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n,r,e])}catch(e){i.logError(1,"AgaveWacSink",e)}},t);function t(){}i.SdxWacSink=e}(oteljs=oteljs||{}),function(e){var t;function n(){try{if(void 0!==OSF&&void 0!==OSF.isOfficeReactNative&&OSF.isOfficeReactNative())return 1}catch(e){}}function r(){var e="web";try{void 0!==OSF&&void 0!==OSF._OfficeAppFactory&&void 0!==OSF._OfficeAppFactory.getHostInfo&&(e=OSF._OfficeAppFactory.getHostInfo().hostPlatform)}catch(e){}return e}(t=e.ApiHelper||(e.ApiHelper={})).isNativeStorage=function(){var e=r();return!(function(){try{if(void 0!==OSF&&void 0!==OSF._OfficeAppFactory&&void 0!==OSF._OfficeAppFactory.getHostInfo)if(OSF._OfficeAppFactory.getHostInfo().flags&OSF.HostInfoFlags.SharedApp)return 1}catch(e){}}()||!(n()||"win32"===e||"mac"===e&&window._useSDXSandbox))},t.isNativeApiInfomation=function(){var e=r();return!!(n()||"win32"===e||"mac"===e&&window._useSDXSandbox)},t.isNativeDialog=function(){var e=r();return!(!n()&&"win32"!==e)}}(OfficeRuntime=OfficeRuntime||{}),function(e){e.ApiHelper.isNativeApiInfomation()?e.apiInformation=t:e.apiInformation=n;var t={isSetSupported:function(e,t){if("string"!=typeof e)return!1;if(null==t&&(t="0.0.0"),void 0===global.__apiSets)return!1;var n=global.__apiSets,r=Object.keys(n).map(function(e){return e.toLowerCase()}).indexOf(e.toLowerCase());if(-1<r){var i=n[Object.keys(n)[r]];try{var o=s(t),a=void 0;if(0<(a=Array.isArray(i)?function(e,t){for(var n=0;n<e.length;n++){var r=s(e[n]);if(r.major==t)return r}return{major:0,minor:0,patch:0}}(i,o.major):s(i)).major){if(a.major>o.major)return!0;if(a.major==o.major&&a.minor>o.minor)return!0;if(a.major==o.major&&a.minor==o.minor&&a.patch>=o.patch)return!0}}catch(e){return!1}}return!1}},n={isSetSupported:function(e,t){try{return!!(Office&&Office.context&&Office.context.requirements)&&Office.context.requirements.isSetSupported(e,Number(t))}catch(e){return!1}}};function s(e){var t=e.split("."),n=0,r=0,i=0;if(t.length<2&&isNaN(Number(e)))throw"version format incorrect";if(n=Number(t[0]),2<=t.length&&(r=Number(t[1])),3<=t.length&&(i=Number(t[2])),isNaN(n)||isNaN(r)||isNaN(i))throw"version format incorrect";return{major:n,minor:r,patch:i}}}(OfficeRuntime=OfficeRuntime||{});var OfficeRuntime;__extends=this&&this.__extends||function(){var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}();!function(o){OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject;function e(e){this._dialogService=e}var t=OfficeExtension.BatchApiHelper.createTopLevelServiceObject,n=(OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod),r=(OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined),i=(OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson),a=OfficeExtension.Utility.fixObjectPathIfNecessary,s=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult);OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags;o.Dialog=e;var c,l=(__extends(u,c=e),u.prototype.close=function(){return this._dialogService.close(),OfficeExtension.CoreUtility.Promise.resolve()},u);function u(){return null!==c&&c.apply(this,arguments)||this}var p,f=(__extends(d,p=e),d.prototype.close=function(){return this._dialogService.close(),this._dialogService.context.sync()},d);function d(){return null!==p&&p.apply(this,arguments)||this}function h(e){return/^(\-|\+)?([0-9]+)%?$/.test(e)}function g(e){var t,n=((t={})[12002]={code:"InvalidUrl",message:"Cannot load URL, no such page or bad URL syntax."},t[12003]={code:"InvalidUrl",message:"HTTPS is required."},t[12004]={code:"Untrusted",message:"Domain is not trusted."},t[12005]={code:"InvalidUrl",message:"HTTPS is required."},t[12007]={code:"FailedToOpen",message:"Another dialog is already opened."},t);return n[e]?n[e]:{code:"Unknown",message:"An unknown error has occured with code: "+e}}o.displayWebDialog=function(r,i){return void 0===i&&(i={}),new OfficeExtension.CoreUtility.Promise(function(e,t){if(i.width&&i.height&&(!h(i.width)||!h(i.height)))throw new OfficeExtension.Error({code:"InvalidArgument",message:'Dimensions must be "number%" or number.'});var n={width:i.width?parseInt(i.width):50,height:i.height?parseInt(i.height):50,displayInIFrame:i.displayInIFrame};(o.ApiHelper.isNativeDialog()?function(e,t,n,r,i){void 0===i&&(i={});var o=new OfficeExtension.ClientRequestContext,a=b.newObject(o),s=new f(a),c=a.onDialogMessage.add(function(e){switch(OfficeExtension.Utility.log("dialogMessageHandler:"+JSON.stringify(e)),e.type){case 17:e.error?n(e.error):t(s);break;case 12:i.onMessage&&i.onMessage(e.message,s);break;case 10:default:12006===e.originalErrorCode?(c&&(c.remove(),o.sync()),i.onClose&&i.onClose()):i.onRuntimeError&&(i.onRuntimeError(e.error,s),n(e.error))}return OfficeExtension.CoreUtility.Promise.resolve()});o.sync().then(function(){return a.displayDialog(r,e),o.sync()}).catch(function(e){n(e)})}:function(e,t,n,r,i){void 0===i&&(i={});var o;function a(e){i.onMessage&&i.onMessage(e.message,o,e.origin)}function s(e){12006===e.error?i.onClose&&i.onClose():i.onRuntimeError&&i.onRuntimeError(new OfficeExtension.Error(g(e.error)),o)}Office.context.ui.displayDialogAsync(r,e,function(e){"failed"===e.status?n(new OfficeExtension.Error(g(e.error.code))):((o=e.value).addEventHandler(Office.EventType.DialogMessageReceived,a),o.addEventHandler(Office.EventType.DialogEventReceived,s),t(new l(o)))})})(n,e,t,r,i)})};var y,m,_,b=(y=OfficeExtension.ClientObject,__extends(v,y),Object.defineProperty(v.prototype,"_className",{get:function(){return"DialogService"},enumerable:!0,configurable:!0}),v.prototype.close=function(){n(this,"Close",1,[],4,0)},v.prototype.displayDialog=function(e,t){n(this,"DisplayDialog",1,[e,t],4,0)},v.prototype._handleResult=function(e){y.prototype._handleResult.call(this,e),r(e)||a(this,e)},v.prototype._handleRetrieveResult=function(e,t){y.prototype._handleRetrieveResult.call(this,e,t),s(this,e,t)},v.newObject=function(e){return t(o.DialogService,e,"Microsoft.Dialog.DialogService",!1,4)},Object.defineProperty(v.prototype,"onDialogMessage",{get:function(){return this.m_dialogMessage||(this.m_dialogMessage=new OfficeExtension.GenericEventHandlers(this.context,this,"DialogMessage",{eventType:65536,registerFunc:function(){},unregisterFunc:function(){},getTargetIdFunc:function(){return null},eventArgsTransformFunc:function(e){var t;try{var n=JSON.parse(e.message),r=n.errorCode?new OfficeExtension.Error(g(n.errorCode)):null;t={originalErrorCode:n.errorCode,type:n.type,error:r,message:n.message,origin:n.origin}}catch(e){t={originalErrorCode:null,type:17,error:new OfficeExtension.Error({code:"GenericException",message:"Unknown error"}),message:e.message}}return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_dialogMessage},enumerable:!0,configurable:!0}),v.prototype.toJSON=function(){return i(this,{},{})},v);function v(){return null!==y&&y.apply(this,arguments)||this}o.DialogService=b,(_=m=m||{})[_.dialogMessageReceived=0]="dialogMessageReceived",_[_.dialogEventReceived=1]="dialogEventReceived",(o.DialogErrorCodes||(o.DialogErrorCodes={})).generalException="GeneralException"}(OfficeRuntime=OfficeRuntime||{}),function(e){var t;function n(e,t){try{var n=Microsoft.Office.WebExtension.FeatureGates[e];return null==n?t:"true"===n.toString().toLowerCase()}catch(e){return t}}function r(e,t){try{var n=Microsoft.Office.WebExtension.FeatureGates,r=parseInt(n[e]);return isNaN(r)?t:r}catch(e){return t}}function i(e,t){try{var n=Microsoft.Office.WebExtension.FeatureGates[e];return null==n?t:n}catch(e){return t}}(t=e.experimentation||(e.experimentation={})).getBooleanFeatureGate=n,t.getIntFeatureGate=r,t.getStringFeatureGate=i,t.getBooleanFeatureGateAsync=function(e,t){return Promise.resolve(n(e,t))},t.getIntFeatureGateAsync=function(e,t){return Promise.resolve(r(e,t))},t.getStringFeatureGateAsync=function(e,t){return Promise.resolve(i(e,t))}}(OfficeRuntime=OfficeRuntime||{}),function(e){var t,i;t=e.message||(e.message={}),i={},t.on=function(e,t){return function(e,t){i.hasOwnProperty(e)||(i[e]=new n,function(){Office&&Office.context&&Office.context.messaging&&!Office.context.messaging.onMessage&&(Office.context.messaging.onMessage=function(e){var t=e.eventName,n=e.message;i.hasOwnProperty(t)&&i[t].call(n)}.bind(this))}());i[e].add(t)}(e,t),new Promise(function(e){e()})},t.off=function(e,t){var n,r;return n=e,r=t,i.hasOwnProperty(n)&&(r?i[n].remove(r):delete i[n]),new Promise(function(e){e()})},t.emit=function(e,t){var n;return n={eventName:e,message:t},Office&&Office.context&&Office.context.messaging&&Office.context.messaging.sendMessage&&Office.context.messaging.sendMessage(n),new Promise(function(e){e()})};var n=(r.prototype.add=function(e){this.listeners.push(e)},r.prototype.remove=function(e){var t=this.listeners.lastIndexOf(e);-1!==t&&this.listeners.splice(t,1)},r.prototype.call=function(t){this.listeners.forEach(function(e){return e(t)})},r);function r(){this.listeners=[]}e.ListenerManager=n}(OfficeRuntime=OfficeRuntime||{}),function(t){OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject;var n=OfficeExtension.BatchApiHelper.createTopLevelServiceObject,r=(OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod),i=(OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined),e=(OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson),o=OfficeExtension.Utility.fixObjectPathIfNecessary,a=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult),s=(OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags,"_Office_AsyncStorage_"),c=s+"|_unusedKey_",l={getItem:function(n){return d(function(e,t){return e.multiGet(t,JSON.stringify([n]))},function(e){var t=JSON.parse(e);return t&&t[0]&&t[0][1]?t[0][1]:null})},setItem:function(n,r){return d(function(e,t){return e.multiSet(t,JSON.stringify([[n,r]]))},function(){return null})},removeItem:function(n){return d(function(e,t){return e.multiRemove(t,JSON.stringify([n]))},function(){return null})},getItems:function(n){return d(function(e,t){return e.multiGet(t,JSON.stringify(n))},function(e){var t=JSON.parse(e),r={};return t&&t.forEach(function(e){var t=e[0],n=e[1];return r[t]=n}),n&&n.forEach(function(e){r[e]&&r[e]}),r})},setItems:function(e){var n=[];for(var t in e)e.hasOwnProperty(t)&&n.push([t,e[t]]);return d(function(e,t){return e.multiSet(t,JSON.stringify(n))},function(){return null})},removeItems:function(n){return d(function(e,t){return e.multiRemove(t,JSON.stringify(n))},function(){return null})},getKeys:function(){return d(function(e,t){return e.getAllKeys(t)},function(e){return JSON.parse(e)})}},u={getItem:function(e){return y(function(){return p(e)})},setItem:function(e,t){return g(function(){return f(e,t)})},removeItem:function(e){return g(function(){return window.localStorage.removeItem(s+e)})},getItems:function(i){return new Promise(function(e,t){var n={},r=[];try{h()}catch(e){t(e)}i.forEach(function(e){try{var t=p(e);n[e]=t||null}catch(e){r.push(e)}}),0<r.length?t(new Error("Unknown error.")):e(n)})},setItems:function(t){return m(t,function(e){return f(e,t[e])})},removeItems:function(e){return m(e,function(e){return window.localStorage.removeItem(s+e)})},getKeys:function(){return y(function(){return Object.keys(window.localStorage).filter(function(e){return 0===e.indexOf(s)}).map(function(e){return e.substr(s.length)})})}};function p(e){return window.localStorage.getItem(s+e)}function f(e,t){window.localStorage.setItem(s+e,t)}function d(o,a){return new OfficeExtension.CoreUtility.Promise(function(r,i){var t=_.getInstance(),n=t.setCallBack(function(e,t){if(t)i(t);else{var n=a(e);r(n)}});t.ctx.sync().then(function(){var e=t.getPersistentKvStorageService();return o(e,n),t.ctx.sync()}).catch(function(e){i(e)})})}function h(){f(c,null),window.localStorage.removeItem(c)}function g(n,r){return void 0===r&&(r=function(){}),new Promise(function(e,t){try{h(),n(),r(null),e()}catch(e){r(e),t(e)}})}function y(r,i){return void 0===i&&(i=function(){}),new Promise(function(e,t){try{h();var n=r();i(null,n),e(n)}catch(e){i(e,null),t(e)}})}function m(i,o,a){return void 0===a&&(a=function(){}),new Promise(function(e,t){var n=[];try{h()}catch(e){n.push(e)}for(var r in i)if(i.hasOwnProperty(r)||Array.isArray(i))try{Array.isArray(i)?o(i[r]):o(r)}catch(e){n.push(e)}a(n),0<n.length?t(n):e()})}t.ApiHelper.isNativeStorage()?t.storage=l:t.storage=u;var _=(b.getInstance=function(){return void 0===b.instance?b.instance=new b:b.instance._perkvstorService=O.newObject(b.instance.ctx),b.instance},b.prototype.getPersistentKvStorageService=function(){return this._perkvstorService},b.prototype.getCallBack=function(e){return this._callDict[e]},b.prototype.setCallBack=function(e){var t=this._invokeId;return this._callDict[this._invokeId++]=e,t},b);function b(){var n=this;this._invokeId=0,this._callDict={},this.ctx=new OfficeExtension.ClientRequestContext,this._perkvstorService=O.newObject(this.ctx),this._eventResult=this._perkvstorService.onPersistentStorageMessage.add(function(e){OfficeExtension.Utility.log("persistentKvStoragegMessageHandler:"+JSON.stringify(e));var t=n._callDict[e.invokeId];t&&(t(e.message,e.error),delete n._callDict[e.invokeId])})}var v,O=(v=OfficeExtension.ClientObject,__extends(C,v),Object.defineProperty(C.prototype,"_className",{get:function(){return"PersistentKvStorageService"},enumerable:!0,configurable:!0}),C.prototype.clear=function(e){r(this,"Clear",1,[e],4,0)},C.prototype.getAllKeys=function(e){r(this,"GetAllKeys",1,[e],4,0)},C.prototype.multiGet=function(e,t){r(this,"MultiGet",1,[e,t],4,0)},C.prototype.multiRemove=function(e,t){r(this,"MultiRemove",1,[e,t],4,0)},C.prototype.multiSet=function(e,t){r(this,"MultiSet",1,[e,t],4,0)},C.prototype._handleResult=function(e){v.prototype._handleResult.call(this,e),i(e)||o(this,e)},C.prototype._handleRetrieveResult=function(e,t){v.prototype._handleRetrieveResult.call(this,e,t),a(this,e,t)},C.newObject=function(e){return n(t.PersistentKvStorageService,e,"Microsoft.PersistentKvStorage.PersistentKvStorageService",!1,4)},Object.defineProperty(C.prototype,"onPersistentStorageMessage",{get:function(){return this.m_persistentStorageMessage||(this.m_persistentStorageMessage=new OfficeExtension.GenericEventHandlers(this.context,this,"PersistentStorageMessage",{eventType:65537,registerFunc:function(){},unregisterFunc:function(){},getTargetIdFunc:function(){return null},eventArgsTransformFunc:function(e){var t,n,r,i;try{var o=JSON.parse(e.message),a=parseInt(o.errorCode),s=0!=a?new OfficeExtension.Error((n=a,(r={})[16389]={code:"GenericException",message:"Unknown error."},r[65535]={code:"Unexcepted",message:"Catastrophic failure."},r[14]={code:"OutOfMemory",message:"Ran out of memory."},r[87]={code:"InvalidArg",message:"One or more arguments are invalid."},r[16385]={code:"NotImplemented",message:"Not implemented."},r[6]={code:"BadHandle",message:"File Handle is not Set."},r[5]={code:"AccessDenied",message:"Can't read the Storage File."},(i=r)[n]?i[n]:{code:"Unknown",message:"An unknown error has occured"})):null;t={invokeId:o.invokeId,message:o.message,error:s}}catch(e){t={invokeId:-1,message:e.message,error:new OfficeExtension.Error({code:"GenericException",message:"Unknown error"})}}return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_persistentStorageMessage},enumerable:!0,configurable:!0}),C.prototype.toJSON=function(){return e(this,{},{})},C);function C(){return null!==v&&v.apply(this,arguments)||this}t.PersistentKvStorageService=O,(t.ErrorCodes||(t.ErrorCodes={})).generalException="GeneralException"}(OfficeRuntime=OfficeRuntime||{});var OfficeFirstPartyDialog,OfficeFirstPartyAuth,OfficeCore,OfficeFirstParty;__extends=this&&this.__extends||function(){var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(o,a,s,c){return new(s=s||Promise)(function(e,t){function n(e){try{i(c.next(e))}catch(e){t(e)}}function r(e){try{i(c.throw(e))}catch(e){t(e)}}function i(t){t.done?e(t.value):new s(function(e){e(t.value)}).then(n,r)}i((c=c.apply(o,a||[])).next())})},__generator=this&&this.__generator||function(n,r){var i,o,a,e,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return e={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,o&&(a=2&t[0]?o.return:t[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,t[1])).done)return a;switch(o=0,a&&(t=[2&t[0],a.value]),t[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,o=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=r.call(n,s)}catch(e){t=[6,e],o=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}},__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};!function(t){OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject;var n,r=OfficeExtension.BatchApiHelper.createTopLevelServiceObject,i=(OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod),o=(OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined),e=(OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson),a=OfficeExtension.Utility.fixObjectPathIfNecessary,s=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult),c=(OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags),l=(n=OfficeExtension.ClientObject,__extends(u,n),Object.defineProperty(u.prototype,"_className",{get:function(){return"BiShim"},enumerable:!0,configurable:!0}),u.prototype.initialize=function(e){i(this,"Initialize",0,[e],c(2,"SharedApiUndo","1.5"),0)},u.prototype.getData=function(){return i(this,"getData",1,[],4,0)},u.prototype.setVisualObjects=function(e){i(this,"setVisualObjects",0,[e],2,0)},u.prototype.setVisualObjectsToPersist=function(e){i(this,"setVisualObjectsToPersist",0,[e],2,0)},u.prototype._handleResult=function(e){n.prototype._handleResult.call(this,e),o(e)||a(this,e)},u.prototype._handleRetrieveResult=function(e,t){n.prototype._handleRetrieveResult.call(this,e,t),s(this,e,t)},u.newObject=function(e){return r(t.BiShim,e,"Microsoft.AgaveVisual.BiShim",!1,4)},u.prototype.toJSON=function(){return e(this,{},{})},u);function u(){return null!==n&&n.apply(this,arguments)||this}t.BiShim=l,(t.AgaveVisualErrorCodes||(t.AgaveVisualErrorCodes={})).generalException="GeneralException"}(OfficeCore=OfficeCore||{}),function(i){OfficeExtension.BatchApiHelper.createPropertyObject;var n,o=OfficeExtension.BatchApiHelper.createMethodObject,t=(OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject,OfficeExtension.BatchApiHelper.createTopLevelServiceObject),r=(OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod),a=OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,s=(OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined),c=OfficeExtension.Utility.isUndefined,e=OfficeExtension.Utility.throwIfNotLoaded,l=(OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load),u=OfficeExtension.Utility.retrieve,p=OfficeExtension.Utility.toJson,f=OfficeExtension.Utility.fixObjectPathIfNecessary,d=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult),h=(n=OfficeExtension.ClientObject,__extends(g,n),Object.defineProperty(g.prototype,"_className",{get:function(){return"FlightingService"},enumerable:!0,configurable:!0}),g.prototype.getClientSessionId=function(){return r(this,"GetClientSessionId",1,[],4,0)},g.prototype.getDeferredFlights=function(){return r(this,"GetDeferredFlights",1,[],4,0)},g.prototype.getFeature=function(e,t,n,r){return o(i.ABType,this,"GetFeature",1,[e,t,n,r],!1,!1,null,4)},g.prototype.getFeatureGate=function(e,t){return o(i.ABType,this,"GetFeatureGate",1,[e,t],!1,!1,null,4)},g.prototype.resetOverride=function(e){r(this,"ResetOverride",0,[e],0,0)},g.prototype.setOverride=function(e,t,n){r(this,"SetOverride",0,[e,t,n],0,0)},g.prototype._handleResult=function(e){n.prototype._handleResult.call(this,e),s(e)||f(this,e)},g.prototype._handleRetrieveResult=function(e,t){n.prototype._handleRetrieveResult.call(this,e,t),d(this,e,t)},g.newObject=function(e){return t(i.FlightingService,e,"Microsoft.Experiment.FlightingService",!1,4)},g.prototype.toJSON=function(){return p(this,{},{})},g);function g(){return null!==n&&n.apply(this,arguments)||this}i.FlightingService=h;var y,m,_=(y=OfficeExtension.ClientObject,__extends(b,y),Object.defineProperty(b.prototype,"_className",{get:function(){return"ABType"},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"_scalarPropertyNames",{get:function(){return["value"]},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"value",{get:function(){return e("value",this._V,"ABType",this._isNull),this._V},enumerable:!0,configurable:!0}),b.prototype._handleResult=function(e){if(y.prototype._handleResult.call(this,e),!s(e)){var t=e;f(this,t),c(t.Value)||(this._V=t.Value)}},b.prototype.load=function(e){return l(this,e)},b.prototype.retrieve=function(e){return u(this,e)},b.prototype._handleRetrieveResult=function(e,t){y.prototype._handleRetrieveResult.call(this,e,t),d(this,e,t)},b.prototype.toJSON=function(){return p(this,{value:this._V},{})},b.prototype.ensureUnchanged=function(e){a(this,e)},b);function b(){return null!==y&&y.apply(this,arguments)||this}i.ABType=_,(m=i.FeatureType||(i.FeatureType={})).boolean="Boolean",m.integer="Integer",m.string="String",(i.ExperimentErrorCodes||(i.ExperimentErrorCodes={})).generalException="GeneralException"}(OfficeCore=OfficeCore||{}),function(r){var e,t,n=(i.prototype.close=function(){return this._dialogService.close(),this._dialogService.context.sync()},i.prototype.messageChild=function(e,t){DialogApiManager&&DialogApiManager.messageChildRichApiBridge&&DialogApiManager.messageChildRichApiBridge(e,t)},i);function i(e){this._dialogService=e}r.Dialog=n,r.displayWebDialog=function(n,h){return void 0===h&&(h={}),new OfficeExtension.CoreUtility.Promise(function(l,u){if(h.width&&h.height&&(!e(h.width)||!e(h.height)))throw new OfficeExtension.Error({code:"InvalidArgument",message:'Dimensions must be "number%" or number.'});var p=new OfficeExtension.ClientRequestContext,t=OfficeCore.FirstPartyDialogService.newObject(p),f=new r.Dialog(t),d=t.onDialogMessage.add(function(e){OfficeExtension.Utility.log("dialogMessageHandler:"+JSON.stringify(e));var t,n,r,i=JSON.parse(e.message),o=i.errorCode?new OfficeExtension.Error((t=i.errorCode,(n={})[12002]={code:"InvalidUrl",message:"Cannot load URL, no such page or bad URL syntax."},n[12003]={code:"InvalidUrl",message:"HTTPS is required."},n[12004]={code:"Untrusted",message:"Domain is not trusted."},n[12005]={code:"InvalidUrl",message:"HTTPS is required."},n[12007]={code:"FailedToOpen",message:"Another dialog is already opened."},(r=n)[t]?r[t]:{code:"Unknown",message:"An unknown error has occured with code: "+t})):null,a=i.type,s=i.origin,c=i.message;switch(a){case 17:o?u(o):l(f);break;case 12:h.onMessage&&h.onMessage(c,f,s);break;case 10:default:12006===i.errorCode?(d&&(d.remove(),p.sync()),h.onClose&&h.onClose()):h.onRuntimeError&&(h.onRuntimeError(o,f),u(o))}return OfficeExtension.CoreUtility.Promise.resolve()});return p.sync().then(function(){var e={width:h.width?parseInt(h.width):50,height:h.height?parseInt(h.height):50,displayInIFrame:h.displayInIFrame,dialogTitle:h.dialogTitle,escKeyCloseDialog:void 0===h.escKeyCloseDialog||h.escKeyCloseDialog};return t.displayDialog(n,e),p.sync()}).catch(function(e){u(e)})});function e(e){return/^(\-|\+)?([0-9]+)%?$/.test(e)}},(t=e=e||{})[t.dialogMessageReceived=0]="dialogMessageReceived",t[t.dialogEventReceived=1]="dialogEventReceived"}(OfficeFirstPartyDialog=OfficeFirstPartyDialog||{}),function(n){n.OfficeOnlineDomainList=["*.dod.online.office365.us","*.gov.online.office365.us","*.officeapps-df.live.com","*.officeapps.live.com","*.online.office.de","*.partner.officewebapps.cn"],n.isHostOriginTrusted=function(){if(void 0!==window.external&&void 0!==window.external.GetContext)return!0;var e=OSF.getClientEndPoint()._targetUrl,t=e.split("/")[2].split(":")[0].split("?")[0];return 0!=e.indexOf("https:")||n.OfficeOnlineDomainList.forEach(function(e){if(0==e.indexOf("*.")&&(e=e.substring(2)),t.indexOf(e)==t.length-e.length)return!0}),!1}}(OfficeCore=OfficeCore||{}),function(n){var e=(Object.defineProperty(t.prototype,"roamingSettings",{get:function(){return this.m_roamingSettings||(this.m_roamingSettings=n.AuthenticationService.newObject(this.context).roamingSettings),this.m_roamingSettings},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tap",{get:function(){return this.m_tap||(this.m_tap=n.Tap.newObject(this.context)),this.m_tap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"skill",{get:function(){return this.m_skill||(this.m_skill=n.Skill.newObject(this.context)),this.m_skill},enumerable:!0,configurable:!0}),t);function t(e){this.context=e}n.FirstPartyApis=e;var r,i=(r=OfficeExtension.ClientRequestContext,__extends(o,r),Object.defineProperty(o.prototype,"firstParty",{get:function(){return this.m_firstPartyApis||(this.m_firstPartyApis=new e(this)),this.m_firstPartyApis},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"flighting",{get:function(){return this.flightingService},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"telemetry",{get:function(){return this.m_telemetry||(this.m_telemetry=n.TelemetryService.newObject(this)),this.m_telemetry},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"ribbon",{get:function(){return this.m_ribbon||(this.m_ribbon=n.DynamicRibbon.newObject(this)),this.m_ribbon},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"bi",{get:function(){return this.m_biShim||(this.m_biShim=n.BiShim.newObject(this)),this.m_biShim},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"flightingService",{get:function(){return this.m_flightingService||(this.m_flightingService=n.FlightingService.newObject(this)),this.m_flightingService},enumerable:!0,configurable:!0}),o);function o(e){return r.call(this,e)||this}n.RequestContext=i,n.run=function(e,t){return OfficeExtension.ClientRequestContext._runBatch("OfficeCore.run",arguments,function(e){return new n.RequestContext(e)})}}(OfficeCore=OfficeCore||{}),function(e){var t;function s(){var e=new OfficeCore.RequestContext;return"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(e._customData="WacPartition"),e}(t=e.license||(e.license={})).isFeatureEnabled=function(i,o){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=s(),n=OfficeCore.License.newObject(t),r=n.isFeatureEnabled(i,o),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.getFeatureTier=function(i,o){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=s(),n=OfficeCore.License.newObject(t),r=n.getFeatureTier(i,o),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.isFreemiumUpsellEnabled=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=s(),n=OfficeCore.License.newObject(t),r=n.isFreemiumUpsellEnabled(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.launchUpsellExperience=function(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=s(),OfficeCore.License.newObject(t).launchUpsellExperience(n),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.onFeatureStateChanged=function(o,a){return __awaiter(this,void 0,void 0,function(){var t,n,r,i;return __generator(this,function(e){switch(e.label){case 0:return t=s(),n=OfficeCore.License.newObject(t),(r=n.getLicenseFeature(o)).onStateChanged.add(a),i=function(){return r.onStateChanged.remove(a),null},[4,t.sync()];case 1:return e.sent(),[2,i]}})})},t.getMsaDeviceTicket=function(i,o,a){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=s(),n=OfficeCore.License.newObject(t),r=n.getMsaDeviceTicket(i,o,a),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})}}(Office=Office||{}),function(e){OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject,OfficeExtension.BatchApiHelper.createTopLevelServiceObject,OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod,OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined,OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson,OfficeExtension.Utility.fixObjectPathIfNecessary,OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult,OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags;(e._CC||(e._CC={})).Skill_HostSkillEvent_EventArgsTransform=function(e,t){return{type:t.type,data:t.data}},(e.SkillErrorCodes||(e.SkillErrorCodes={})).generalException="GeneralException";new OfficeExtension.LibraryBuilder({metadata:{version:"1.0.0",name:"OfficeCore",defaultApiSetName:"OfficeSharedApi",hostName:"Office",apiSets:[["1.1","SharedApiUndo"]],strings:["Skill","registerHostSkillEvent","unregisterHostSkillEvent"],enumTypes:[],clientObjectTypes:[[1,0,0,0,[["executeAction",3,2,0,5],["notifyPaneEvent",2,2,0,5],[2,0,0,0,3,0,1],[3,0,0,0,3,0,1],["testFireEvent",0,0,0,3,0,1]],0,0,0,[["HostSkillEvent",2,0,"65538","",2,3]],"Microsoft.SkillApi.Skill",4]]},targetNamespaceObject:e})}(OfficeCore=OfficeCore||{}),function(t){OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject;var n,e,r,i=OfficeExtension.BatchApiHelper.createTopLevelServiceObject,a=(OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod),o=(OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined),s=(OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported),c=(OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson),l=OfficeExtension.Utility.fixObjectPathIfNecessary,u=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult),p=(OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags,n=OfficeExtension.ClientObject,__extends(f,n),Object.defineProperty(f.prototype,"_className",{get:function(){return"TelemetryService"},enumerable:!0,configurable:!0}),f.prototype.sendNonStandardEvent=function(e,t,n,r,i,o){s("TelemetryService.sendNonStandardEvent","Telemetry","1.4","OfficeCore"),a(this,"SendNonStandardEvent",1,[e,t,n,r,i,o],4,0)},f.prototype.sendTelemetryEvent=function(e,t,n,r,i){a(this,"SendTelemetryEvent",1,[e,t,n,r,i],4,0)},f.prototype._handleResult=function(e){n.prototype._handleResult.call(this,e),o(e)||l(this,e)},f.prototype._handleRetrieveResult=function(e,t){n.prototype._handleRetrieveResult.call(this,e,t),u(this,e,t)},f.newObject=function(e){return i(t.TelemetryService,e,"Microsoft.Telemetry.TelemetryService",!1,4)},f.prototype.toJSON=function(){return c(this,{},{})},f);function f(){return null!==n&&n.apply(this,arguments)||this}t.TelemetryService=p,(e=t.DataFieldType||(t.DataFieldType={})).unset="Unset",e.string="String",e.boolean="Boolean",e.int64="Int64",e.double="Double",(r=t.EventType||(t.EventType={})).sendTelemetryEvent="SendTelemetryEvent",r.customerContent="CustomerContent",r.directNumericEvent="DirectNumericEvent",(t.TelemetryErrorCodes||(t.TelemetryErrorCodes={})).generalException="GeneralException"}(OfficeCore=OfficeCore||{}),function(c){var l="officeWebAuthReplyUrls",y=!1,r=null;function e(n){function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i=n.apply(void 0,e)}var i=null,o=null;return{immediateCall:r,delayCall:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];o=function(){return r.apply(void 0,e)}},waitForPromise:function(){return o&&(o(),o=null),i||Promise.resolve()}}}function m(r){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return(t=!1,r&&c.supportsTeamsTokenFlow)?(t=!0,[3,3]):[3,1];case 1:return[4,i()];case 2:(n=e.sent()).supportsAuthToken?t=!0:r&&(t=!n.hostPageSupportsAuth),e.label=3;case 3:return[2,t]}})})}function i(){return Office&&Office.context&&Office.context.webAuth?r?Promise.resolve(r):new Promise(function(t,n){Office.context.webAuth.getAuthContextAsync(function(e){if("succeeded"===e.status){if(!(r=e.value)||r.isAnonymous)return void n({code:"CannotGetAuthContext",message:r?r.Error:void 0,loggableErrorMessage:"Anonymous user"});if(!r.appId)return void n({code:"CannotGetAuthContext",message:"App ID is missing from getAuthContextAsync. Please verify the WebApplicationInfo node in app manifest."});t(r)}else n({code:"CannotGetAuthContext",message:e.status,loggableErrorMessage:String(e.error.code)})})}):Promise.reject({code:"GetAuthContextAsyncMissing",message:"Office:["+!Office+"],Office.context:["+!Office.context+"],Office.context.webAuth:["+!Office.context.webAuth+"]"})}c.authFlow="authcode",c.autoPopup=!1,c.upnCheck=!0,c.timeout=void 0,c.msal="https://alcdn.msauth.net/browser-1p/2.28.1/js/msal-browser-1p.min.js",c.debugging=!1,c.useMsal3=void 0,c.delay=0,c.delayMsal=0,c.supportsOauthManager=!1,c.supportsTeamsTokenFlow=!0,c.supportsBrowserAuth=!0;var _=e(function(a,s){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(e){switch(e.label){case 0:return c.supportsBrowserAuth?[4,i()]:[2,Promise.reject({code:"PackageNotLoaded"})];case 1:return o=e.sent(),[2,new Promise(function(t,n){try{var e="msa"===o.authorityType.toLowerCase();if(OSF.WebAuth.config={authFlow:c.authFlow,authVersion:c.authVersion?c.authVersion:null,msal:c.msal,delayWebAuth:c.delay,delayMsal:c.delayMsal,debugging:c.debugging,useMsal3:c.useMsal3,authority:c.authorityOverride?c.authorityOverride:o.authority,idp:o.authorityType.toLowerCase(),appIds:[e&&o.msaAppId?o.msaAppId:o.appId],redirectUri:a||null,upn:o.upn,puid:o.userId,prefetch:s,telemetryInstance:"otel",autoPopup:c.autoPopup,enableUpnCheck:c.upnCheck,enableConsoleLogging:c.debugging,tenantId:o.tenantId,timeout:c.timeout},OSF.WebAuth.load().then(function(e){u(e,y=!0),t()}).catch(function(e){n({code:"PackageNotLoaded",message:e instanceof Event?e.type:e,telemetryResult:e})}),"implicit"===c.authFlow){var r=a||window.location.href.split("?")[0],i=sessionStorage.getItem(l);i||""===i?i=r:i+=", "+r,i&&sessionStorage.setItem(l,i)}}catch(e){OSF.WebAuth.config=null,OSF.WebAuth.load().then(function(){t()}).catch(function(){n({code:"FailedToLoad",message:e})})}})]}})})});var n=e(function(r,i){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:if(!OSF.WebAuth||"web"!=OSF._OfficeAppFactory.getHostInfo().hostPlatform)return[3,6];e.label=1;case 1:return e.trys.push([1,5,,6]),_.delayCall(r,i),[4,m(c.supportsOauthManager)];case 2:return e.sent()?[3,4]:[4,_.waitForPromise()];case 3:e.sent(),e.label=4;case 4:return[3,6];case 5:throw t=e.sent(),u((n=t).result,!1,n),delete n.result,delete n.loggableErrorMessage,n;case 6:return[2]}})})});function t(e,t){return n.immediateCall(e,t)}function u(o,a,s){void 0!==OTel&&OTel.OTelLogger.onTelemetryLoaded(function(){var e=OSF.WebAuth.config?[oteljs.makeStringDataField("IdentityProvider",OSF.WebAuth.config.idp),oteljs.makeStringDataField("AppId",OSF.WebAuth.config.appIds[0]),oteljs.makeStringDataField("Target",{authFlow:OSF.WebAuth.config.authFlow,authVersion:OSF.WebAuth.config.authVersion,msal:OSF.WebAuth.config.msal,autoPopup:OSF.WebAuth.config.autoPopup,enableUpnCheck:OSF.WebAuth.config.upnCheck}),oteljs.makeBooleanDataField("UseMsal3",!0===OSF.WebAuth.config.useMsal3)]:[],t=s&&s.loggableErrorMessage?s.loggableErrorMessage:"",n=a?[]:[oteljs.makeStringDataField("ApiErrorCode",s&&s.code?s.code:""),oteljs.makeStringDataField("Error",t||(o instanceof Event?o.type:""))],r=e.concat(n,[oteljs.makeBooleanDataField("Result",a)]);if(o&&!(o instanceof Event)&&o.Telemetry)for(var i in o.Telemetry)if(o.Telemetry[i])switch(i){case"succeeded":r.push(oteljs.makeBooleanDataField(i,o.Telemetry[i]));break;case"loadedApplicationCount":case"timeToLoad":r.push(oteljs.makeInt64DataField(i,o.Telemetry[i]));break;default:r.push(oteljs.makeStringDataField(i,o.Telemetry[i]))}OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.OfficeFirstPartyAuth.Load",dataFields:r,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage}})})}function b(n,r,i,o){void 0!==OTel&&OTel.OTelLogger.onTelemetryLoaded(function(){var e=[oteljs.makeStringDataField("IdentityProvider",OSF.WebAuth.config.idp),oteljs.makeStringDataField("AppId",OSF.WebAuth.config.appIds[0]),oteljs.makeStringDataField("CorrelationId",i),oteljs.makeStringDataField("Target",{authFlow:OSF.WebAuth.config.authFlow,authVersion:OSF.WebAuth.config.authVersion,msal:OSF.WebAuth.config.msal,autoPopup:OSF.WebAuth.config.autoPopup,enableUpnCheck:OSF.WebAuth.config.upnCheck}),oteljs.makeBooleanDataField("Popup","boolean"==typeof o&&o),oteljs.makeBooleanDataField("Result",r),oteljs.makeStringDataField("Error",n instanceof Event?n.type:n.ErrorCode)];if(n&&!(n instanceof Event)&&n.Telemetry)for(var t in n.Telemetry)if(n.Telemetry[t])switch(t){case"succeeded":e.push(oteljs.makeBooleanDataField(t,n.Telemetry[t]));break;case"timeToGetToken":e.push(oteljs.makeInt64DataField(t,n.Telemetry[t]));break;default:e.push(oteljs.makeStringDataField(t,n.Telemetry[t]))}OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.OfficeFirstPartyAuth.GetAccessToken",dataFields:e,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage}})})}c.load=t,c.getAccessToken=function(h,g){var e=this;return n.waitForPromise().then(function(){return new Promise(function(f,d){return __awaiter(e,void 0,void 0,function(){var r,i,o,a,s,c,l,u,p;return __generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,10,,11]),"web"!=OSF._OfficeAppFactory.getHostInfo().hostPlatform?[3,6]:[4,m(!!h.appName)];case 1:return e.sent()?[3,3]:[4,_.waitForPromise()];case 2:return e.sent(),OSF.WebAuth&&y?(r=h.correlationId||OSF._OfficeAppFactory.getHostInfo().osfControlAppCorrelationId,OSF.WebAuth.config.appIds[0]&&OSF.WebAuth.getToken(h.resource,null,OSF.WebAuth.config.appIds[0],r,g&&g.popup?g.popup:null,h&&h.authChallenge?h.authChallenge:null).then(function(e){b(e,!0,r,!(!g||!g.popup)&&g.popup),f({accessToken:e.Token,tokenIdenityType:"msa"==OSF.WebAuth.config.idp.toLowerCase()?OfficeCore.IdentityType.microsoftAccount:OfficeCore.IdentityType.organizationAccount})}).catch(function(e){b(e,!1,r,!(!g||!g.popup)&&g.popup),d({code:e.ErrorCode,message:e instanceof Event?e.type:e.ErrorMessage})})):(t=y,n=OSF.WebAuth.loadAttempts,void 0!==OTel&&OTel.OTelLogger.onTelemetryLoaded(function(){var e=[oteljs.makeBooleanDataField("Loaded",t),oteljs.makeInt64DataField("LoadAttempts","number"==typeof n?n:0)];OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.OfficeFirstPartyAuth.UnexpectedAcquire",dataFields:e,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage}})})),[3,5];case 3:return i=new OfficeCore.RequestContext,s=OfficeCore.AuthenticationService.newObject(i),i._customData="WacPartition",o=s.getAccessToken(h,null),[4,i.sync()];case 4:e.sent(),f(o.value),e.label=5;case 5:return[3,9];case 6:return a=new OfficeCore.RequestContext,s=OfficeCore.AuthenticationService.newObject(a),c=s.onTokenReceived.add(function(t){if(!OfficeExtension.CoreUtility.isNullOrUndefined(t))if(c.remove(),a.sync().catch(function(){}),0==t.code)f(t.tokenValue);else if(OfficeExtension.CoreUtility.isNullOrUndefined(t.errorInfo))d({code:t.code});else try{d(JSON.parse(t.errorInfo))}catch(e){d({code:t.code,message:t.errorInfo})}return null}),[4,a.sync()];case 7:return e.sent(),l=s.getAccessToken(h,s._targetId),[4,a.sync()];case 8:if(e.sent(),OfficeExtension.CoreUtility.isNullOrUndefined(l.value))return[2,null];u=l.value.accessToken,OfficeExtension.CoreUtility.isNullOrUndefined(u)||f(l.value),e.label=9;case 9:return[3,11];case 10:return p=e.sent(),d(p),[3,11];case 11:return[2]}var t,n})})})})},c.getPrimaryIdentityInfo=function(){var e=new OfficeCore.RequestContext,t=OfficeCore.AuthenticationService.newObject(e);e._customData="WacPartition";var n=t.getPrimaryIdentityInfo();return e.sync().then(function(){return n.value})},c.getIdentities=function(){var e=new OfficeCore.RequestContext,t=OfficeCore.AuthenticationService.newObject(e).getIdentities();return e.sync().then(function(){return t.value})},c.onIdentityChanged=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r=this;return __generator(this,function(e){switch(e.label){case 0:return(e.trys.push([0,3,,4]),"web"===OSF._OfficeAppFactory.getHostInfo().hostPlatform)?[3,2]:(t=new OfficeCore.RequestContext,n=OfficeCore.AuthenticationService.newObject(t),n.onIdentityChanged.add(i),[4,t.sync()]);case 1:return e.sent(),[2,function(){return __awaiter(r,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return n.onIdentityChanged.remove(i),[4,t.sync()];case 1:return e.sent(),[2]}})})}];case 2:return[3,4];case 3:return e.sent(),[3,4];case 4:return[2,function(){return Promise.resolve()}]}})})},"undefined"!=typeof window&&window.OSF&&function(){try{if("undefined"==typeof window||!window.sessionStorage)return;var e=sessionStorage.getItem(l);null!==e&&-1!==e.indexOf(window.location.origin+window.location.pathname)&&t()}catch(e){console.error(e)}}()}(OfficeFirstPartyAuth=OfficeFirstPartyAuth||{}),function(e){!function(l){var r,e,p,t;(e=r=l.PopupOptions||(l.PopupOptions={}))[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Force=2]="Force",(t=p=l.AuthErrorCode||(l.AuthErrorCode={}))[t.UnsupportedUserIdentity=13003]="UnsupportedUserIdentity",t[t.UserAborted=13004]="UserAborted",t[t.InteractionRequired=13005]="InteractionRequired",t[t.ClientError=13006]="ClientError",t[t.ServerError=13007]="ServerError",t[t.NotAvailable=13012]="NotAvailable",t[t.InternalError=5001]="InternalError",t[t.InvalidApiArguments=5013]="InvalidApiArguments";var f={ACCOUNT_UNAVAILABLE:p.UnsupportedUserIdentity,USER_CANCEL:p.UserAborted,USER_INTERACTION_REQUIRED:p.InteractionRequired,PERSISTENT_ERROR:p.ClientError,NO_NETWORK:p.ServerError,TRANSIENT_ERROR:p.ServerError,NESTED_APP_AUTH_UNAVAILABLE:p.NotAvailable},i={POPUP_WINDOW_ERROR:p.ClientError,USER_CANCELLED:p.UserAborted},u={ACCESS_TOKEN:"access_token",XMS_CC:"xms_cc"},d=0,h=!1,g=!1,y=void 0,m=void 0;l.clientCapabilities=[],l.upnCheck=!0,l.timeout=void 0,l.msal="https://alcdn.msauth.net/browser-1p/2.28.1/js/msal-browser-1p.min.js",l.debugging=!1,l.delay=0,l.delayMsal=0,l.useMsal3=void 0;var _={},b=function(e){try{var t="string"==typeof e?e:e.data,n=JSON.parse(t);if(n.requestId){var r=n.requestId;if(_.hasOwnProperty(r)){var i=p.InternalError,o=_[r],a=o[0],s=o[1];delete _[r];var c=n.token;if(c&&!0===n.success&&c.access_token&&"number"==typeof c.expires_in)return void a({accessToken:c.access_token,idToken:c.id_token,expiresOn:new Date(Date.now()+1e3*c.expires_in)});var l=n.error;if(l){var u=l.status;f[u]&&(i=f[u])}s({code:i})}}}catch(e){}},v={code:p.NotAvailable};function o(o,a){function e(e){function t(e,t){var n=Date.now()-r;!function(t,n,r,i,o){if(0<d&&!r)return;d++,void 0!==OTel&&OTel.OTelLogger.onTelemetryLoaded(function(){var e=[oteljs.makeStringDataField("NestedClientId",t),oteljs.makeStringDataField("CorrelationId",n),oteljs.makeBooleanDataField("Popup",r),oteljs.makeInt64DataField("Duration",i),oteljs.makeInt64DataField("ErrorCode",o?o.code:0),oteljs.makeBooleanDataField("BridgeAvailable",O())];OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.NestedAppAuth.GetAccessToken",dataFields:e,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage,diagnosticLevel:oteljs.DiagnosticLevel.NecessaryServiceDataEvent}})})}(s,c,a,n,t)}return e.then(function(e){t(0,null)}).catch(function(e){t(0,e)}),e}var s=o.clientId||m,c=o.correlationId||OSF.OUtil.Guid.generateNewGuid(),r=Date.now();return O()?e(new Promise(function(e,t){var n=OSF.OUtil.Guid.generateNewGuid(),r=o.scopes.join(" "),i={messageType:"NestedAppAuthRequest",method:a?"GetTokenPopup":"GetToken",requestId:n,clientLibrary:"officejs",sendTime:Date.now(),tokenParams:{clientId:s,scope:r,correlationId:c,claims:function(e){if(0===l.clientCapabilities.length)return e;var t={};if(e)try{t=JSON.parse(e)}catch(e){}return t.hasOwnProperty(u.ACCESS_TOKEN)||(t[u.ACCESS_TOKEN]={}),t[u.ACCESS_TOKEN][u.XMS_CC]={values:l.clientCapabilities},JSON.stringify(t)}(o.claims)}};h||(nestedAppAuthBridge.addEventListener("message",b),h=!0),_[n]=[e,t],nestedAppAuthBridge.postMessage(JSON.stringify(i))})):e(y?y.then(function(){if(!g)return Promise.reject(v);var e=o.scopes.join(" ");return e=e.replace(/(\/.default)$/,""),OSF.WebAuth.getToken(e,o.scopes,s,c,a,o.claims).then(function(e){return{accessToken:e.Token,expiresOn:e.MsalResult?e.MsalResult.expiresOn:void 0}}).catch(function(e){var t=p.InternalError,n=void 0;if(e)if(n=e.ErrorMessage,e.MsalResult&&"InteractionRequiredAuthError"===e.MsalResult.name)t=p.InteractionRequired;else if(e.ErrorCode){var r=e.ErrorCode.toUpperCase();i[r]&&(t=i[r])}return Promise.reject({code:t,description:n})})}):Promise.reject(v))}function a(){return O()||"function"!=typeof __initializeNestedAppAuth?Promise.resolve():__initializeNestedAppAuth()}function O(){return"undefined"!=typeof nestedAppAuthBridge}function s(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return[4,a()];case 1:return e.sent(),[2,O()]}})})}l.isBridgeAvailable=O,l.isBridgeAvailableAsync=s,l.load=function(e,t,n,r){return y=y||function(r,i,o,a){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return m=r,a&&(l.clientCapabilities=a),Office&&Office.context&&Office.context.auth&&OSF.WebAuth?[4,s()]:[2];case 1:return e.sent()?[2]:[4,function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,new Promise(function(t){Office.context.auth.getAuthContextAsync(function(e){"succeeded"===e.status?t(e.value):t(null)})}).catch(function(){return null})]})})}()];case 2:if(!(t=e.sent()))throw v;OSF.WebAuth.config={authFlow:"authcode",authVersion:l.authVersion?l.authVersion:null,msal:l.msal,delayWebAuth:l.delay,delayMsal:l.delayMsal,debugging:l.debugging,useMsal3:l.useMsal3,authority:l.authorityOverride?l.authorityOverride:t.authorityBaseUrl,idp:"msa"===t.authorityType.toLowerCase()?"msa":"aad",appIds:[r],redirectUri:i||null,upn:t.userPrincipalName,prefetch:o,telemetryInstance:"otel",enableUpnCheck:l.upnCheck,enableConsoleLogging:l.debugging,checkActiveAccount:!0,tenantId:t.tenantId,timeout:l.timeout,clientCapabilities:a},e.label=3;case 3:return e.trys.push([3,5,,6]),[4,OSF.WebAuth.load()];case 4:return e.sent(),g=!0,[3,6];case 5:throw n=e.sent(),__assign({},v,{description:n instanceof Event?n.type:void 0});case 6:return[2]}})})}(e,t,n,r)},l.getAccessToken=function(t){var n=null==t.popup?r.None:t.popup;if(n===r.Auto&&!t.directUserActionCallback)throw{code:p.InvalidApiArguments};return a().then(function(){return o(t,n===r.Force).catch(function(e){if(e.code==p.InteractionRequired&&n===r.Auto&&t.directUserActionCallback)return t.directUserActionCallback().then(function(e){if(e)return o(t,!0);throw{code:p.UserAborted}}).catch(function(){throw{code:p.UserAborted}});throw e})})}}(e.NestedAppAuth||(e.NestedAppAuth={}))}(OfficeFirstPartyAuth=OfficeFirstPartyAuth||{}),function(o){var n,e;OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject,OfficeExtension.BatchApiHelper.createTopLevelServiceObject,OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod,OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined,OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson,OfficeExtension.Utility.fixObjectPathIfNecessary,OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult,OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags;(o._CC||(o._CC={})).LicenseFeature_StateChanged_EventArgsTransform=function(e,t){var n={feature:t.featureName,isEnabled:t.isEnabled,tier:t.tierName};return t.tierName&&(n.tier=0==t.tierName?LicenseFeatureTier.unknown:1==t.tierName?LicenseFeatureTier.basic:2==t.tierName?LicenseFeatureTier.premium:t.tierName),n},(o._CC||(o._CC={})).ThemeService_OfficeThemeChanged_EventArgsTransform=function(e,t){return{bodyBackgroundColor:t.bodyBackgroundColor,bodyForegroundColor:t.bodyForegroundColor,controlBackgroundColor:t.controlBackgroundColor,controlForegroundColor:t.controlForegroundColor}},(e=n=o.PersonaPromiseType||(o.PersonaPromiseType={}))[e.immediate=0]="immediate",e[e.load=3]="load";var a=function(){};o.PersonaInfoAndSource=a;var t=(r.prototype.performAsyncOperation=function(e,l,u,p){var t=this;e!=n.immediate?p().then(function(e){if(e)u();else{var c=t;c.load("hostId"),c.context.sync().then(function(){var s=c.hostId;t.getPersonaLifetime().then(function(o){var a=function(i){return new OfficeExtension.CoreUtility.Promise(function(t,e){if(i.sendingPersonaHostId==s)for(var n=0;n<i.dataUpdated.length;++n){var r=i.dataUpdated[n];if(l==r)return void p().then(function(e){e&&(u(),o.onPersonaUpdated.remove(a),c.context.sync()),t(e)})}t(!1)})};o.onPersonaUpdated.add(a),c.context.sync()})})}}):u()},r.prototype.getOrganizationAsync=function(n){var i=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var r=i;i.performAsyncOperation(n,PersonaDataUpdated.organization,function(){var e=r.organization;e.load("*"),r.context.sync().then(function(){t(e)})},function(){return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=r.organization;n.load("isWarmedUp"),r.context.sync().then(function(){e(n.isWarmedUp)})})})})},r.prototype.getIsPersonaInfoResolvedCheck=function(){var r=this;return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=r.personaInfo;n.load("isPersonResolved"),r.context.sync().then(function(){e(n.isPersonResolved)})})},r.prototype.getPersonaInfoAsync=function(r){var i=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=i;i.performAsyncOperation(r,PersonaDataUpdated.personaInfo,function(){var e=n.personaInfo;e.load(),n.context.sync().then(function(){t(e)})},function(){return i.getIsPersonaInfoResolvedCheck()})})},r.prototype.getPersonaInfoWithSourceAsync=function(r){var i=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=i;i.performAsyncOperation(r,PersonaDataUpdated.personaInfo,function(){var e=new a;e.info=n.personaInfo,e.info.load(),e.source=n.personaInfo.sources,e.source.load(),n.context.sync().then(function(){t(e)})},function(){return i.getIsPersonaInfoResolvedCheck()})})},r.prototype.getUnifiedCommunicationInfo=function(r){var i=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=i;i.performAsyncOperation(r,PersonaDataUpdated.personaInfo,function(){var e=n.unifiedCommunicationInfo;e.load("*"),n.context.sync().then(function(){t(e)})},function(){return i.getIsPersonaInfoResolvedCheck()})})},r.prototype.getUnifiedGroupInfoAsync=function(r){var i=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=i;i.performAsyncOperation(r,PersonaDataUpdated.personaInfo,function(){var e=n.unifiedGroupInfo;e.load("*"),n.context.sync().then(function(){t(e)})},function(){return i.getIsPersonaInfoResolvedCheck()})})},r.prototype.getTypeAsync=function(r){var i=this;return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=i;i.performAsyncOperation(r,PersonaDataUpdated.personaInfo,function(){n.load("type"),n.context.sync().then(function(){e(o.PersonaType[n.type.valueOf()])})},function(){return i.getIsPersonaInfoResolvedCheck()})})},r.prototype.getCustomizationsAsync=function(r){var i=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=i;i.performAsyncOperation(r,PersonaDataUpdated.personaInfo,function(){var e=n.getCustomizations();n.context.sync().then(function(){t(e.value)})},function(){return i.getIsPersonaInfoResolvedCheck()})})},r.prototype.getMembersAsync=function(n){var i=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var r=i;i.performAsyncOperation(n,PersonaDataUpdated.members,function(){var e=r.getMembers();e.load("isWarmedUp"),r.context.sync().then(function(){t(e)})},function(){return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=r.getMembers();n.load("isWarmedUp"),r.context.sync().then(function(){e(n.isWarmedUp)})})})})},r.prototype.getMembershipAsync=function(r){var i=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=i;i.performAsyncOperation(r,PersonaDataUpdated.membership,function(){var e=n.getMembership();e.load("*"),n.context.sync().then(function(){t(e)})},function(){return new OfficeExtension.CoreUtility.Promise(function(e){var t=n.getMembership();t.load("isWarmedUp"),n.context.sync().then(function(){e(t.isWarmedUp)})})})})},r.prototype.getPersonaLifetime=function(){var r=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=r;n.load("instanceId"),n.context.sync().then(function(){new i(n.context,n.instanceId).getPersonaLifetime().then(function(e){t(e)})})})},r);function r(){}o.PersonaCustom=t;var i=(Object.defineProperty(s.prototype,"serviceContext",{get:function(){return this.m_serviceConext||(this.m_serviceConext=o.ServiceContext.newObject(this.context)),this.m_serviceConext},enumerable:!0,configurable:!0}),s.prototype.getPersonaLifetime=function(){var r=this;return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=r.serviceContext.getPersonaLifetime(r.instanceId);r.context.sync().then(function(){n.load("instanceId"),r.context.sync().then(function(){e(n)})})})},s.prototype.getInitialPersona=function(){var r=this;return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=r.serviceContext.getInitialPersona(r.instanceId);r.context.sync().then(function(){e(n)})})},s.prototype.getLokiTokenProvider=function(){var r=this;return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=r.serviceContext.getLokiTokenProvider(r.instanceId);r.context.sync().then(function(){n.load("instanceId"),r.context.sync().then(function(){e(n)})})})},s);function s(e,t){this.context=e,this.instanceId=t}o.PeopleApiContext=i,(o._CC||(o._CC={})).FirstPartyDialogService_DialogMessage_EventArgsTransform=function(e,t){return{message:t.message}};var c,l,u=(Object.defineProperty(p.prototype,"_targetId",{get:function(){return null==this.m_targetId&&(void 0!==OSF&&OSF.OUtil?this.m_targetId=OSF.OUtil.Guid.generateNewGuid():this.m_targetId=""+this.context._nextId()),this.m_targetId},enumerable:!0,configurable:!0}),p);function p(){}o.AuthenticationServiceCustom=u,(o._CC||(o._CC={})).AuthenticationService_TokenReceived_EventArgsTransform=function(e,t){return{tokenValue:t.tokenValue,code:t.code,errorInfo:t.errorInfo}},(c=o._CC||(o._CC={})).ExternalCodeService_ExternalCodeExecutionCompleted_EventArgsTransform=function(e,t){return{result:t.result}},c.ExternalCodeService_ExternalCodeServiceRequestCompleted_EventArgsTransform=function(e,t){return t},c.ExternalCodeService_ExternalCodeServiceResult_EventArgsTransform=function(e,t){return t},(o._CC||(o._CC={})).AddinSkillActionService_ReplyReceived_EventArgsTransform=function(e,t){return{actionCorrelationId:t.actionCorrelationId,replyMessage:t.replyMessage,resultCode:t.resultCode}},(l=o.ErrorCodes||(o.ErrorCodes={})).apiNotAvailable="ApiNotAvailable",l.clientError="ClientError",l.clpSessionError="ClpSessionError",l.controlIdNotFound="ControlIdNotFound",l.docCookieError="DocCookieError",l.entryIdRequired="EntryIdRequired",l.errorPointer="ErrorPointer",l.generalException="GeneralException",l.hostIntegrationManagerError="HostIntegrationManagerError",l.hostRestartNeeded="HostRestartNeeded",l.instanceNotFound="InstanceNotFound",l.interactiveFlowAborted="InteractiveFlowAborted",l.invalidArgument="InvalidArgument",l.invalidGrant="InvalidGrant",l.invalidResourceUrl="InvalidResourceUrl",l.invalidRibbonDefinition="InvalidRibbonDefinition",l.labelingDisabledAppguard="LabelingDisabledAppguard",l.labelingDisabledNoSignedInClpCompatibleUsers="LabelingDisabledNoSignedInClpCompatibleUsers",l.labelingDisabledPrivacySettings="LabelingDisabledPrivacySettings",l.labelingDisabledProtectedView="LabelingDisabledProtectedView",l.labelingDisabledUnsupportedLabelClient="LabelingDisabledUnsupportedLabelClient",l.msoOLDocumentError="MsoOLDocumentError",l.notImplement="NotImplement",l.objectNotFound="ObjectNotFound",l.officeJSItemLabelForIdentityError="OfficeJSItemLabelForIdentityError",l.officeJSRMSLicenseError="OfficeJSRMSLicenseError",l.officeJSSessionOrDocError="OfficeJSSessionOrDocError",l.officeSolutionFrameworkHostError="OfficeSolutionFrameworkHostError",l.omworkflowUserNotFound="OMWorkflowUserNotFound",l.osfControlContainerError="OsfControlContainerError",l.outOfMemory="OutOfMemory",l.resourceNotSupported="ResourceNotSupported",l.sensitivityDocumentReadOnly="SensitivityDocumentReadOnly",l.sensitivityInsufficientPermission="SensitivityInsufficientPermission",l.sensitivityLabelDisabled="SensitivityLabelDisabled",l.sensitivityLabelingDisabled="SensitivityLabelingDisabled",l.sensitivityLabelNotFound="SensitivityLabelNotFound",l.sensitivityNewLabelSensitivityOrder="SensitivityNewLabelSensitivityOrder",l.sensitivityUnsupportedContentType="SensitivityUnsupportedContentType",l.sensitivityUnsupportedCrossTenant="SensitivityUnsupportedCrossTenant",l.sensitivityUnsupportedDke="SensitivityUnsupportedDke",l.sensitivityUnsupportedUdp="SensitivityUnsupportedUdp",l.serverError="ServerError",l.serviceUrlNotFound="ServiceUrlNotFound",l.sharedRuntimeNotAvailable="SharedRuntimeNotAvailable",l.ticketInvalidParams="TicketInvalidParams",l.ticketNetworkError="TicketNetworkError",l.ticketUnauthorized="TicketUnauthorized",l.ticketUninitialized="TicketUninitialized",l.ticketUnknownError="TicketUnknownError",l.unexpectedError="UnexpectedError",l.unsupportedUserIdentity="UnsupportedUserIdentity",l.userNotSignedIn="UserNotSignedIn",o.Interfaces||(o.Interfaces={});new OfficeExtension.LibraryBuilder({metadata:{version:"1.0.0",name:"OfficeCore",defaultApiSetName:"OfficeSharedApi",hostName:"Office",apiSets:[["1.2","SharedApiUndo"],["1.2","SharedRuntimeInternal"],["1.1","SnapshotControl"],["1.1","SharedApiUndo"],["1.4","SharedApiUndo"],["1.2","DynamicRibbon"],["1.1","DynamicRibbonUndo"],["1.2","FirstPartyAuthentication"],["1.3","FirstPartyAuthentication"],["1.5","FirstPartyAuthentication"],["1.1","SensitivityUndo"],["1.2","SensitivityService"],["1.2","SensitivityUndo"],["1.3","SensitivityService"],["1.3","SensitivityUndo"],["1.3","SharedApiUndo"],["1.2","CopilotService"],["1.1","PrivateAPI"],["1.1","ExternalCodeServiceUndo"],["1.1","TaskpaneAPI"]],strings:["DialogPage","License","LicenseFeature","MsaDeviceTicketOptions","AppRuntimePersistenceService","AppRuntimeService","ThemeService","Tap","MemberInfoList","PersonaActions","PersonaInfoSource","PersonaInfo","PersonaUnifiedCommunicationInfo","PersonaPhotoInfo","PersonaCollection","PersonaOrganizationInfo","UnifiedGroupInfo","Persona","PersonaLifetime","LokiTokenProvider","LokiTokenProviderFactory","ServiceContext","RichapiPcxFeatureChecks","Comment","CommentCollection","ExtensionLifeCycle","OfficeServicesManagerApi","LocaleApi","FirstPartyDialogService","DynamicRibbon","RibbonTab","RibbonButton","RibbonButtonCollection","ServiceUrlProvider","LinkedIn","NetworkUsage","BeforeDocumentCloseNotification","AuthenticationService","RoamingSetting","RoamingSettingCollection","SharedFilePicker","ActionService","Auth","AugLoopEventService","UndoService","UserFeedbackService","NotificationService","SensitivityService","CopilotService","PrivateApiService","ExternalCodeService","BusinessBarService","ShowSimpleDialog","DispatchApiService","DevicePermissionService","TaskpaneService","AddinSkillActionService","UnifiedStoreService","close","registerOnShow","unregisterOnShow","id","_RegisterStateChange","_UnregisterStateChange","","null","registerOfficeThemeChangedEvent","unregisterOfficeThemeChangedEvent","isWarmedUp","isWarmingUp","displayName","email","emailAddresses","sipAddresses","birthday","birthdays","title","jobInfoDepartment","companyName","office","linkedTitles","linkedDepartments","linkedCompanyNames","linkedOffices","webSites","notes","getImageUri","setPlaceholderColor","getPlaceholderUri","getImageUriWithMetadata","getCount","getItem","instanceId","dispose","_RegisterPersonaUpdatedEvent","_UnregisterPersonaUpdatedEvent","this.instanceId","_RegisterLokiTokenAvailableEvent","_UnregisterLokiTokenAvailableEvent","_RegisterIdentityUniqueIdAvailableEvent","_UnregisterIdentityUniqueIdAvailableEvent","_RegisterClientAccessTokenAvailableEvent","_UnregisterClientAccessTokenAvailableEvent","getLokiTokenProvider","registerIdentityChangedEvent","unregisterIdentityChangedEvent","_RegisterHostMessageReceivedEvent","_UnregisterHostMessageReceivedEvent","_RegisterUndoStackChangedEvent","_UnregisterUndoStackChangedEvent","_RegisterUserFeedbackUIDismissedEvent","_UnregisterUserFeedbackUIDismissedEvent","_RegisterUserFeedbackResponseEvent","_UnregisterUserFeedbackResponseEvent","_RegisterSensitivityLabelChangedEvent","_UnregisterSensitivityLabelChangedEvent","execute","_RegisterPrivateApiEvent","_UnregisterPrivateApiEvent","registerExternalCodeExecutionCompletedEvent","unregisterExternalCodeExecutionCompletedEvent","registerExternalCodeServiceRequestCompletedEvent","unregisterExternalCodeServiceRequestCompletedEvent","registerExternalCodeServiceResultEvent","unregisterExternalCodeServiceResultEvent","_RegisterReplyReceivedEvent","_UnregisterReplyReceivedEvent","_RegisterCopilotAgentEvent","_UnregisterCopilotAgentEvent","_RegisterRefreshedAcquisitionStateEvent","_UnregisterRefreshedAcquisitionStateEvent"],enumTypes:[["DialogPageEventType",[],{onShow:1}],["LicenseFeatureTier",["unknown","basic","premium"]],["LicenseEventType",[],{featureStateChanged:1}],["AppRuntimeState",["inactive","background","visible"]],["Visibility",["hidden","visible"]],["VisualSurface",["default","menus","panes","statusBar","backstage","dialogs"],{qat:"QAT"}],["ObjectType",["unknown","chart","smartArt","table","image","slide","text"],{ole:"OLE"}],["PersonaCardPerfPoint",["placeHolderRendered","initialCardRendered"]],["MessageType",[],{personaLifetimePersonaUpdatedEvent:3502,lokiTokenProviderLokiTokenAvailableEvent:3503,lokiTokenProviderIdentityUniqueIdAvailableEvent:3504,lokiTokenProviderClientAccessTokenAvailableEvent:3505}],["UnifiedCommunicationAvailability",["notSet","free","idle","busy","idleBusy","doNotDisturb","unalertable","unavailable"]],["UnifiedCommunicationStatus",["online","notOnline","away","busy","beRightBack","onThePhone","outToLunch","inAMeeting","outOfOffice","doNotDisturb","inAConference","getting","notABuddy","disconnected","notInstalled","urgentInterruptionsOnly","mayBeAvailable","idle","inPresentation"]],["UnifiedCommunicationPresence",["free","busy","idle","doNotDistrub","blocked","notSet","outOfOffice"]],["FreeBusyCalendarState",["unknown","free","busy","elsewhere","tentative","outOfOffice"]],["PersonaType",["unknown","enterprise","contact","bot","phoneOnly","oneOff","distributionList","personalDistributionList","anonymous","unifiedGroup"]],["PhoneType",["workPhone","homePhone","mobilePhone","businessFax","otherPhone"]],["AddressType",["workAddress","homeAddress","otherAddress"]],["MemberType",["unknown","individual","group"]],["PersonaDataUpdated",["hostId","type","photo","personaInfo","unifiedCommunicationInfo","organization","unifiedGroupInfo","members","membership","capabilities","customizations","viewableSources","placeholder"]],["CustomizedData",["email","workPhone","workPhone2","workFax","mobilePhone","homePhone","homePhone2","otherPhone","sipAddress","profile","office","company","workAddress","homeAddress","otherAddress","birthday"]],["CommentTextFormat",["plain","markdown","delta"]],["TimeStringFormat",["shortTime","longTime","shortDate","longDate"]],["ServiceProvider",["ariaBrowserPipeUrl","ariaUploadUrl","ariaVNextUploadUrl","lokiAutoDiscoverUrl"]],["IdentityType",["organizationAccount","microsoftAccount","unsupported"]],["AugLoopEventType",[],{onHostMessageReceivedEvent:65542}],["UndoType",[],{onUndoStackChangedEvent:65543,onCopilotOperationStartedEvent:65544}],["TriStateOption",["notSet","true","false"]],["UserFeedbackType",["like","dislike","idea","unclassified"]],["UserFeedbackUIType",["modalDialog","taskpane"]],["UserFeedbackEventType",[],{onUserFeedbackUIDismissedEvent:65546,onUserFeedbackResponseEvent:65550}],["UserFeedbackScreenshotInfoSourceType",["autoCapture","autoCaptureWithHtml2Canvas","providedAtInitialization","dynamicallyProvided"]],["UserFeedbackScreenshotInfoImageFormat",[],{jpeg:"jpeg",png:"png"}],["LabelMessageContext",[],{generic:0,firstPerson:1}],["LabelResultSeverity",[],{info:0,warning:1,error:2}],["SensitivityLabelEventType",[],{onLabelChangedEvent:65549}],["EncryptionType",[],{none:0,irmtemplate:1,irmuserDefinedPermission:2,irmencryptOnly:3,irmdoNotForward:4}],["TryUpgradeLabelError",[],{s_APPLYLABEL_OK:0,e_APPLYLABEL_FAIL:2147467259,e_APPLYLABEL_UNSUPPORTED_CROSSTENANT:2147205120,e_APPLYLABEL_DOCUMENT_READONLY:2147205119,e_APPLYLABEL_INSUFFICIENTPERMISSION:2147205118,e_APPLYLABEL_LABELDISABLED:2147205117,e_APPLYLABEL_UNSUPPORTED_UDP:2147205116,e_APPLYLABEL_LABELING_DISABLED:2147205115,e_APPLYLABEL_UNSUPPORTED_CONTENTTYPE:2147205114,e_APPLYLABEL_UNSUPPORTED_DKE:2147205113,e_APPLYLABEL_LABELNOTFOUND:2147205112,e_APPLYLABEL_USERNOTFOUND:2147220727,e_APPLYLABEL_NEWLABELSENSITIVITYORDER:2147205105}],["PrivateApiEventType",[],{onPrivateEvent:65552}],["RequestMethod",["get","post","patch","delete"]],["ResultType",["executionResult","runtimeInfo","serviceResponse"]],["ErrorCategory",["other","environment","runtime","license","user","auth","billing","invalidArg","python","service","unsupported","dataUpload"]],["BusinessBarType",["info","error","blocked","severeWarning","success","warning"]],["SimpleDialogState",[],{cancel:0,confirm:1,checkedConfirm:2}],["SimpleDialogCategory",[],{information:"information",error:"error",warning:"warning",question:"question",other:"other"}],["DevicePermissionType",[],{camera:"camera",microphone:"microphone",geolocation:"geolocation"}],["CopilotAgentEventType",[],{onCopilotAgentEvent:65556}],["UnifiedStoreEventType",[],{onRefreshedAcquisitionStateEvent:65557}]],clientObjectTypes:[[1,0,[["_Id",2]],0,[[59,0,2,0,4],["readyToShow",0,2,0,4],[60,0,2,0,4],[61,0,2,0,4],["sendMessageToHost",1,2,0,4]],0,0,0,[["OnShowEvent",0,0,"DialogPageEventType.onShow","this._Id",60,61]],"Microsoft.Office.DialogPage.DialogPage",4],[2,0,0,0,[["isFeatureEnabled",2,2,0,4],["getFeatureTier",2,2,0,4],["isFreemiumUpsellEnabled",0,2,0,4],["launchUpsellExperience",1,2,0,4],["_TestFireStateChangedEvent",1,0,0,3,0,1],["getMsaDeviceTicket",3,2,0,5]],[["getLicenseFeature",3,1,2,0,4]],0,0,0,"Microsoft.Office.Licensing.License",4],[3,0,[[62,3]],0,[[63,0,2,0,4],[64,0,2,0,4]],0,0,0,[["StateChanged",2,0,"LicenseEventType.featureStateChanged","this.id",63,64]]],[4,0,[["scopes",1,0,0,2,1]],0,0,0,0,0,0,"Microsoft.Office.Licensing.MsaDeviceTicketOptions",4],[5,0,0,0,[["setAppRuntimeStartState",1,0,0,2,0,2],["getAppRuntimeStartState",0,2,0,4]],0,0,0,0,"Microsoft.AppRuntime.AppRuntimePersistenceService",4],[6,0,0,0,[["setAppRuntimeState",1,0,0,2,0,2],["getAppRuntimeState",0,2,0,4],["setSnapshotEnabled",1,2,3,4],["getSnapshotEnabled",0,2,3,4],["getContentSnapshotAsBase64",0,2,3,4]],0,0,0,[["SnapshotImageReady",0,3,"65547",65,66,66],["VisibilityChanged",0,0,"65539",65,66,66]],"Microsoft.AppRuntime.AppRuntimeService",4],[7,0,0,0,[[67,0,0,0,2,0,4],[68,0,0,0,2,0,4],["getOfficeThemeDataForVisualSurface",1,2,0,5]],0,0,0,[["OfficeThemeChanged",2,0,"65548",65,67,68]],"Microsoft.Theme.ThemeService",4],[8,0,0,0,[["getEnterpriseUserInfo",0,2,0,5],["getMruFriendlyPath",1,2,0,5],["launchFileUrlInOfficeApp",2,2,0,5],["performLocalSearch",4,2,0,5],["readSearchCache",3,2,0,5],["writeSearchCache",3,2,0,5]],0,0,0,0,"Microsoft.TapRichApi.Tap",4],[9,0,[[69,3],[70,3]],0,[["items",0,2,0,4]],[["getPersonaForMember",18,1,2,0,4]]],[10,0,0,0,[["addContact",0,0,0,2,0,5],["editContact",0,0,0,2,0,5],["composeEmail",1,0,0,2,0,5],["composeInstantMessage",1,0,0,2,0,5],["callPhoneNumber",1,0,0,2,0,5],["pinPersonaToQuickContacts",0,0,0,2,0,5],["toggleTagForAlerts",0,0,0,2,0,5],["scheduleMeeting",0,0,0,2,0,5],["openLinkContactUx",0,0,0,2,0,5],["editContactByIdentifier",1,0,0,2,0,5],["showHoverCardForPersona",6,0,0,2,0,5],["hideHoverCardForPersona",0,0,0,2,0,5],["showContextMenu",6,0,0,2,0,5],["showContactCard",6,0,0,2,0,5],["showExpandedCard",6,0,0,2,0,5],["openGroupCalendar",0,0,0,2,0,5],["subscribeToGroup",0,0,0,2,0,5],["unsubscribeFromGroup",0,0,0,2,0,5],["getChangePhotoUrlAndOpenInBrowser",0,0,0,2,0,5],["startAudioCall",0,0,0,2,0,5],["startVideoCall",0,0,0,2,0,5],["openOutlookProperties",0,0,0,2,0,5],["editUnifiedGroup",0,0,0,2,0,5],["joinUnifiedGroup",0,0,0,2,0,5],["leaveUnifiedGroup",0,0,0,2,0,5]]],[11,0,[[71,3],[72,3],[73,3],[74,3],[75,3],[76,3],[77,3],[78,3],[79,3],[80,3],[81,3],[82,3],[83,3],[84,3],["phones",3],["addresses",3],[85,3],[86,3]]],[12,0,[[71,3],[72,3],[73,3],[74,3],[75,11],[76,11],[77,3],[78,3],[79,3],[80,3],[81,3],[82,3],[83,3],[84,3],[85,3],[86,3],["isPersonResolved",3]],[["sources",11,3,0,0,4]],[["getPhones",0,2,0,4],["getAddresses",0,2,0,4]]],[13,0,[["availability",3],["status",3],["isSelf",3],["isTagged",3],["customStatusString",3],["isBlocked",3],["presenceTooltip",3],["isOutOfOffice",3],["outOfOfficeNote",3],["timezone",3],["meetingLocation",3],["meetingSubject",3],["timezoneBias",3],["idleStartTime",11],["overallCapability",3],["isOnBuddyList",3],["presenceNote",3],["voiceMailUri",3],["availabilityText",3],["availabilityTooltip",3],["isDurationInAvailabilityText",3],["freeBusyStatus",3],["calendarState",3],["presence",3]]],[14,0,0,0,[[87,1,2,0,4,87],[88,1,0,0,2,88,5],[89,1,2,0,4,89],[90,1,2,0,4,90]]],[15,1,0,0,[[91,0,2,0,4]],[[92,18,1,18,0,4]],0,18],[16,0,[[69,3],[70,3]],[["hierarchy",15,18,0,0,4],["manager",18,2,0,0,4],["directReports",15,18,0,0,4]]],[17,0,[["description",1,0,0,2,5],["oneDrive",1,0,0,2,5],["oneNote",1,0,0,2,5],["isPublic",1,0,0,2,5],["amIOwner",1,0,0,2,5],["amIMember",1,0,0,2,5],["amISubscribed",1,0,0,2,5],["memberCount",1,0,0,2,5],["ownerCount",1,0,0,2,5],["hasGuests",1,0,0,2,5],["site",1,0,0,2,5],["planner",1,0,0,2,5],["classification",1,0,0,2,5],["subscriptionEnabled",1,0,0,2,5]]],[18,4,[["hostId",3],["type",3],["capabilities",3],["diagnosticId",3],[93,3]],[["photo",14,3,0,0,4],["personaInfo",12,3,0,0,4],["unifiedCommunicationInfo",13,3,0,0,4],["organization",16,3,0,0,4],["unifiedGroupInfo",17,35,0,0,4],["actions",10,2,0,0,4]],[["getCustomizations",0,2,0,4],["warmup",1,0,0,2,0,5],[94,0,0,0,2,0,5],["getViewableSources",0,2,0,4],["reportTimeForRender",2,0,0,2,0,5]],[["getMembers",9,0,2,0,4],["getMembership",9,0,2,0,4]]],[19,0,[[93,3]],0,[["getPolicies",0,2,0,4],[95,0,0,0,2,0,5],[96,0,0,0,2,0,5],["getTextScaleFactor",0,2,0,4]],[["getPersona",18,1,2,0,4],["getPersonaForOrgEntry",18,4,2,0,4],["getPersonaForOrgByEntryId",18,4,2,0,4]],0,0,[["PersonaUpdated",0,0,"MessageType.personaLifetimePersonaUpdatedEvent",97,95,96]]],[20,0,[["emailOrUpn",3],[93,3]],0,[["requestToken",0,0,0,2,0,5],[98,0,0,0,2,0,5],[99,0,0,0,2,0,5],["requestIdentityUniqueId",0,0,0,2,0,5],[100,0,0,0,2,0,5],[101,0,0,0,2,0,5],["requestClientAccessToken",0,0,0,2,0,5],[102,0,0,0,2,0,5],[103,0,0,0,2,0,5]],0,0,0,[["ClientAccessTokenAvailable",0,0,"MessageType.lokiTokenProviderClientAccessTokenAvailableEvent",97,102,103],["IdentityUniqueIdAvailable",0,0,"MessageType.lokiTokenProviderIdentityUniqueIdAvailableEvent",97,100,101],["LokiTokenAvailable",0,0,"MessageType.lokiTokenProviderLokiTokenAvailableEvent",97,98,99]]],[21,0,0,0,0,[[104,20,1,2,0,4]],0,0,0,"Microsoft.People.LokiTokenProviderFactory",4],[22,0,0,0,[[94,1,0,0,2,0,5],["accountEmailOrUpn",1,2,0,4],["getPersonaPolicies",0,2,0,4]],[[104,20,1,2,0,4],["getPersonaLifetime",19,1,2,0,4],["getInitialPersona",18,1,2,0,4]],0,0,0,"Microsoft.People.ServiceContext",4],[23,0,0,0,[["isAddChangePhotoLinkOnLpcPersonaImageFlightEnabled",0,2,0,4]],0,0,0,0,"Microsoft.People.RichapiPcxFeatureChecks",4],[24,0,[[62,3],["text",1,0,0,2,5],["created",11],["level",3],["resolved",1,0,0,2,5],["author",3],["mentions",3]],[["parent",24,2,0,0,4],["parentOrNullObject",24,2,0,0,4],["replies",25,19,0,0,4]],[["getRichText",1,2,0,4],["setRichText",2,0,0,2,0,5],["delete",0,0,0,2,0,5]],[["getParentOrSelf",24,0,2,0,4],["reply",24,2,0,0,2,0,0,5]]],[25,1,0,0,[[91,0,2,0,4]],[[92,24,1,18,0,4]],0,24],[26,0,0,0,[["launchExtensionComponent",3,2,0,5]],0,0,0,0,"Microsoft.OfficeSharedApi.ExtensionLifeCycle",4],[27,0,0,0,[["bindServiceToProfile",3,0,0,2,0,5]],0,0,0,0,"Microsoft.OfficeServicesManager.OfficeServicesManagerApi",4],[28,0,0,0,[["getLocaleDateTimeFormattingInfo",1,2,0,4],["formatDateTimeString",3,2,0,4]],0,0,0,0,"Microsoft.LocaleApi.LocaleApi",4],[29,0,0,0,[["displayDialog",2,2,0,5],[59,0,2,0,5]],0,0,0,[["DialogMessage",2,0,"65536",65,66,66]],"Microsoft.FirstPartyDialog.FirstPartyDialogService",4],[30,0,0,[["buttons",33,19,0,0,4]],[["executeRequestUpdate",1,2,0,4],["executeRequestCreate",1,2,6,4]],[["getButton",32,1,2,0,4],["getTab",31,1,2,0,4]],0,0,0,"Microsoft.DynamicRibbon.DynamicRibbon",4],[31,0,[[62,3]],0,[["setVisibility",1,0,0,2,0,7]]],[32,0,[[62,3],["enabled",1,0,0,2,7],["label",3]],0,[["setEnabled",1,0,0,2,0,7]]],[33,1,0,0,[[91,0,2,0,4]],[[92,32,1,18,0,4]],0,32],[34,0,0,0,[["getServiceUrl",2,2,0,4]],0,0,0,0,"Microsoft.DesktopCompliance.ServiceUrlProvider",4],[35,0,0,0,[["isEnabledForOffice",0,2,0,4],["recordLinkedInSettingsCompliance",2,0,0,2,0,5]],0,0,0,0,"Microsoft.DesktopCompliance.LinkedIn",4],[36,0,0,0,[["isInOnlineMode",0,2,0,4],["isInDisconnectedMode",0,2,0,4]],0,0,0,0,"Microsoft.DesktopCompliance.NetworkUsage",4],[37,0,0,0,[["enable",0,2,0,4],["disable",0,2,0,4]],0,0,0,[["BeforeCloseNotificationCancelled",0,0,"65540",65,66,66]],"Microsoft.BeforeDocumentCloseNotification.BeforeDocumentCloseNotification",4],[38,4,0,[["roamingSettings",40,2,0,0,4]],[["getAccessToken",2,2,0,5],["getPrimaryIdentityInfo",0,2,8,5],["getIdentities",0,2,9,5],[105,0,0,10,3,0,4],[106,0,0,10,3,0,4]],0,0,0,[["IdentityChanged",0,10,"65545",65,105,106],["TokenReceived",2,8,"3001","this._targetId",66,66]],"Microsoft.Authentication.AuthenticationService",4],[39,0,[[62,3],["value",1,0,0,2,4]]],[40,0,0,0,0,[[92,39,1,2,0,4],["getItemOrNullObject",39,1,2,0,4]]],[41,0,0,0,[["getSharedFilePickerResponse",1,2,0,4]],0,0,0,0,"Microsoft.Office.SharedFilePicker",4],[42,0,0,0,[["getShortcuts",0,2,0,4],["replaceShortcuts",1,0,0,2,0,4],["areShortcutsInUse",1,0,0,2,0,4]],0,0,0,0,"Microsoft.Office.ActionService",4],[43,0,0,0,[["getAccessTokenFirstPartyOAuth",2,2,0,5]],0,0,0,0,"Microsoft.Office.Auth",5],[44,0,0,0,[["sendMessage",1,2,0,5],[107,0,2,0,5],[108,0,2,0,5]],0,0,0,[["HostMessageReceived",0,0,"AugLoopEventType.onHostMessageReceivedEvent",65,107,108]],"Microsoft.Office.AugLoopEventService",5],[45,0,0,0,[["undo",0,0,0,3,0,5],[109,0,2,0,5],[110,0,2,0,5],["startCopilotOperation",1,0,0,3,0,5],["endCopilotOperation",1,0,0,3,0,5]],0,0,0,[["CopilotOperationStarted",0,0,"UndoType.onCopilotOperationStartedEvent",65,66,66],["UndoStackChanged",0,0,"UndoType.onUndoStackChangedEvent",65,109,110]],"Microsoft.Office.UndoService",5],[46,0,0,0,[["collectUserFeedback",4,2,0,5],[111,0,2,0,5],[112,0,2,0,5],["canCollectUserFeedback",0,2,0,5],[113,0,2,0,5],[114,0,2,0,5],["getInitializationData",0,2,0,5],["getHostScreenshot",0,2,0,5],["invokeDiagnosticsLogsUpload",1,2,0,5],["canCollectCopilotFeedback",0,2,0,5],["collectFeedbackEligibility",0,2,0,5],["checkFeedbackEligibility",1,2,0,5]],0,0,0,[["UserFeedbackResponse",0,0,"UserFeedbackEventType.onUserFeedbackResponseEvent",65,113,114],["UserFeedbackUIDismissed",0,0,"UserFeedbackEventType.onUserFeedbackUIDismissedEvent",65,111,112]],"Microsoft.Office.UserFeedbackService",5],[47,0,0,0,[["addNotification",2,0,0,3,0,1],["updateNotification",2,0,0,3,0,1],["removeNotification",1,0,0,3,0,1]],0,0,0,0,"Microsoft.Office.NotificationService",5],[48,0,0,0,[["getLabel",0,0,0,3,0,11],["tryUpgradeLabel",2,0,0,3,0,11],["getHighestSensitivityLabel",1,0,0,3,0,11],[115,0,2,0,5],[116,0,2,0,5],["getSensitivityResultDetails",2,0,12,3,0,13],["getSensitivityResultDetailsByStringErrorCode",2,0,14,3,0,15]],0,0,0,[["LabelChanged",0,0,"SensitivityLabelEventType.onLabelChangedEvent",65,115,116]],"Microsoft.Office.SensitivityService",5],[49,0,0,0,[["launchHelpPaneByQuery",1,0,0,3,0,16],["launchHelpPaneByArticleId",1,0,0,3,0,16],["launchHelpPaneByArticleIdString",1,0,0,3,0,16],["launchTaskPaneByAgentId",1,0,17,3],["getWindowClientWidth",0,0,0,3,0,16]],0,0,0,0,"Microsoft.Office.CopilotService",5],[50,0,0,0,[[117,1,0,0,3,0,18],[118,0,2,0,5],[119,0,2,0,5]],0,0,0,[["OnPrivateEvent",0,0,"PrivateApiEventType.onPrivateEvent",65,118,119]],"Microsoft.Office.PrivateApiService",5],[51,0,0,0,[["executePythonCode",1,0,0,3,0,19],["executePythonCodeAsync",1,0,0,3,0,19],[120,0,0,0,3,0,19],[121,0,0,0,3,0,19],["executePythonCodeAsync2",2,0,0,3,0,19],["sendRequestAsync",4,2,0,5],[122,0,2,0,5],[123,0,2,0,5],["getRuntimeInfoAsync",0,2,0,5],[124,0,0,0,3,0,19],[125,0,0,0,3,0,19],["getRuntimeInfoAsync2",1,2,0,5]],0,0,0,[["ExternalCodeExecutionCompleted",2,0,"65551",65,120,121],["ExternalCodeServiceRequestCompleted",2,0,"65553",65,122,123],["ExternalCodeServiceResult",2,0,"65554",65,124,125]],"Microsoft.Office.ExternalCodeService",5],[52,0,0,0,[["show",2,0,0,3,0,4],["hide",1,0,0,3,0,4]],0,0,0,0,"Microsoft.Office.BusinessBarService",5],[53,0,0,0,[["launchSimpleDialog",8,0,0,3]],0,0,0,0,"Microsoft.Office.ShowSimpleDialog",5],[54,0,0,0,[[117,2,2,0,5]],0,0,0,0,"Microsoft.Office.DispatchApiService",5],[55,0,0,0,[["requestPermissions",1,2,0,5]],0,0,0,0,"Microsoft.Office.DevicePermissionService",5],[56,0,0,0,[["notifyHeaderLoaded",0,0,0,3,0,20],[59,0,0,0,3,0,20],["move",0,0,0,3,0,20],["setWidth",1,0,0,2,0,20]],0,0,0,0,"Microsoft.Office.TaskpaneService",4],[57,0,0,0,[["invokeAction",4,2,0,5],[126,0,2,0,5],[127,0,2,0,5]],0,0,0,[["ReplyReceived",2,0,"65555",65,126,127]],"Microsoft.Office.AddinSkillActionService",5],[58,0,0,0,[["launchStoreDialogWithCopilotAgentPageShown",0,0,0,3],["refreshAcquisitionState",0,0,0,1],["getAcquisitionState",0,0,0,1],[128,0,2,0,5],[129,0,2,0,5],[130,0,2,0,5],[131,0,2,0,5]],0,0,0,[["CopilotAgentEvent",0,0,"CopilotAgentEventType.onCopilotAgentEvent",65,128,129],["RefreshedAcquisitionStateEvent",0,0,"UnifiedStoreEventType.onRefreshedAcquisitionStateEvent",65,130,131]],"Microsoft.Office.UnifiedStoreService",5]]},targetNamespaceObject:o})}(OfficeCore=OfficeCore||{}),function(e){var o,t,a,n,r,s,i;function c(e){var t=new OfficeCore.RequestContext;return t._requestFlagModifier|=64,e&&(t._customData="WacPartition"),t}function l(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=c(!0),OfficeCore.AppRuntimeService.newObject(t).setAppRuntimeState(n),[4,t.sync()];case 1:return e.sent(),[2]}})})}function u(e){var t=new OfficeCore.RequestContext;return t._requestFlagModifier|=64,e&&(t._customData="WacPartition"),t}(t=o=e.VisibilityMode||(e.VisibilityMode={})).hidden="Hidden",t.taskpane="Taskpane",(n=a=e.StartupBehavior||(e.StartupBehavior={})).none="None",n.load="Load",(r=e.addin||(e.addin={})).setStartupBehavior=function(r){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:if(r!==a.load&&r!==a.none)throw OfficeExtension.Utility.createRuntimeError(OfficeExtension.ErrorCodes.invalidArgument,null,null);return t=r==a.load?OfficeCore.AppRuntimeState.background:OfficeCore.AppRuntimeState.inactive,n=c(!1),OfficeCore.AppRuntimePersistenceService.newObject(n).setAppRuntimeStartState(t),[4,n.sync()];case 1:return e.sent(),[2]}})})},r.getStartupBehavior=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r,i;return __generator(this,function(e){switch(e.label){case 0:return t=c(!1),n=OfficeCore.AppRuntimePersistenceService.newObject(t),r=n.getAppRuntimeStartState(),[4,t.sync()];case 1:return e.sent(),i=r.value,[2,i==OfficeCore.AppRuntimeState.inactive?a.none:a.load]}})})},r.setSnapshotEnabled=function(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=c(!0),OfficeCore.AppRuntimeService.newObject(t).setSnapshotEnabled(n),[4,t.sync()];case 1:return e.sent(),[2,Promise.resolve()]}})})},r.getSnapshotEnabled=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=c(!0),n=OfficeCore.AppRuntimeService.newObject(t),r=n.getSnapshotEnabled(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},r.getContentSnapshotAsBase64=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,new OfficeExtension.CoreUtility.Promise(function(t,n){var r=c(!0),e=OfficeCore.AppRuntimeService.newObject(r),i=setTimeout(function(){o.remove(),r.sync().catch(function(){}),n(OfficeExtension.Utility.createRuntimeError(OfficeExtension.ErrorCodes.generalException,"timeout","getContentSnapshotAsBase64"))},7e3),o=e.onSnapshotImageReady.add(function(e){return clearTimeout(i),o.remove(),OfficeExtension.CoreUtility.isNullOrUndefined(e)?(r.sync().catch(function(){}),n(OfficeExtension.Utility.createRuntimeError(OfficeExtension.ErrorCodes.generalException,"execution failed","getContentSnapshotAsBase64"))):(r.sync().catch(function(){}),t(e.imageBase64)),null});r.sync().then(function(){e.getContentSnapshotAsBase64();return r.sync().then(function(){return null})}).catch(function(e){n(e)})})]})})},r._getState=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=c(!0),n=OfficeCore.AppRuntimeService.newObject(t),r=n.getAppRuntimeState(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},r.showAsTaskpane=function(){return l(OfficeCore.AppRuntimeState.visible)},r.hide=function(){return l(OfficeCore.AppRuntimeState.background)},r.onVisibilityModeChanged=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r=this;return __generator(this,function(e){switch(e.label){case 0:return t=function(){if(!s){var e=c(!0);s=OfficeCore.AppRuntimeService.newObject(e)}return s}(),n=t.onVisibilityChanged.add(function(e){if(i){var t={visibilityMode:e.visibility===OfficeCore.Visibility.visible?o.taskpane:o.hidden};i(t)}return null}),[4,t.context.sync()];case 1:return e.sent(),[2,function(){return __awaiter(r,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return n.remove(),[4,t.context.sync()];case 1:return e.sent(),[2]}})})}]}})})},(i=r.beforeDocumentCloseNotification||(r.beforeDocumentCloseNotification={})).enable=function(){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=!1,"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(t=!0),n=u(t),OfficeCore.BeforeDocumentCloseNotification.newObject(n).enable(),[4,n.sync()];case 1:return e.sent(),[2]}})})},i.disable=function(){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=!1,"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(t=!0),n=u(t),OfficeCore.BeforeDocumentCloseNotification.newObject(n).disable(),[4,n.sync()];case 1:return e.sent(),[2]}})})},i.onCloseActionCancelled=function(a){return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o=this;return __generator(this,function(e){switch(e.label){case 0:return t=!1,"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(t=!0),n=u(t),r=OfficeCore.BeforeDocumentCloseNotification.newObject(n),i=r.onBeforeCloseNotificationCancelled.add(function(e){return a&&a(),null}),[4,n.sync()];case 1:return e.sent(),[2,function(){return __awaiter(o,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return i.remove(),[4,n.sync()];case 1:return e.sent(),[2]}})})}]}})})}}(Office=Office||{}),function(s){var c,e,t,n,r;function i(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}function l(){return new OfficeCore.RequestContext}(e=c=c||{}).taskpane="Taskpane",e.dialog="Dialog",n=t=s.ExtensionLifeCycle||(s.ExtensionLifeCycle={}),(r=n.taskpane||(n.taskpane={})).close=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=i(),OfficeCore.TaskpaneService.newObject(t).close(),[4,t.sync()];case 1:return e.sent(),[2]}})})},r.move=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=i(),OfficeCore.TaskpaneService.newObject(t).move(),[4,t.sync()];case 1:return e.sent(),[2]}})})},r.notifyHeaderLoaded=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=i(),OfficeCore.TaskpaneService.newObject(t).notifyHeaderLoaded(),[4,t.sync()];case 1:return e.sent(),[2]}})})},r.setWidth=function(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=i(),OfficeCore.TaskpaneService.newObject(t).setWidth(n),[4,t.sync()];case 1:return e.sent(),[2]}})})},n.launchTaskpane=function(a){return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o;return __generator(this,function(e){switch(e.label){case 0:return s.context.platform&&"OfficeOnline"===s.context.platform?(t={SharedRuntimeId:a.sharedRuntimeId,SourceLocationOverrideResourceId:a.sourceLocationOverride,TaskPaneTitle:a.taskpaneTitle,TaskPaneWidth:a.taskpaneWidth},n={OptionalProperties:t,DevProperties:a.settings},s.context.extensionLifeCycle.launchExtensionComponent(null,"Taskpane",null,null,n),[3,3]):[3,1];case 1:return r=l(),i=OfficeCore.ExtensionLifeCycle.newObject(r),o=a.settings,a.settings=o&&OSF.OUtil.serializeSettings(o),i.launchExtensionComponent("",c.taskpane,a),[4,r.sync()];case 2:e.sent(),e.label=3;case 3:return[2]}})})},n.launchDialog=function(a){return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o;return __generator(this,function(e){switch(e.label){case 0:return s.context.platform&&"OfficeOnline"===s.context.platform?(t={SharedRuntimeId:a.sharedRuntimeId,SourceLocationOverrideResourceId:a.sourceLocationOverride},n={OptionalProperties:t,DevProperties:a.settings},s.context.extensionLifeCycle.launchExtensionComponent(null,"SDXDialog",null,null,n),[3,3]):[3,1];case 1:return r=l(),i=OfficeCore.ExtensionLifeCycle.newObject(r),o=a.settings,a.settings=o&&OSF.OUtil.serializeSettings(o),i.launchExtensionComponent("",c.dialog,a),[4,r.sync()];case 2:e.sent(),e.label=3;case 3:return[2]}})})},s.extensionLifeCycle=t}(Office=Office||{}),function(e){var t;function i(){var e=new OfficeCore.RequestContext;return"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(e._customData="WacPartition"),e}(t=e.ribbon||(e.ribbon={})).requestUpdate=function(e){var t=i(),n=t.ribbon;function r(e){void 0!==e.controls&&void 0!==e.controls.length&&e.controls.length&&e.controls.filter(function(e){return!!e.id}).forEach(function(e){var t=n.getButton(e.id);void 0!==e.enabled&&null!==e.enabled&&(t.enabled=e.enabled)})}return e.tabs.filter(function(e){return!!e.id}).forEach(function(e){var t=n.getTab(e.id);void 0!==e.visible&&null!==e.visible&&t.setVisibility(e.visible),e.groups&&e.groups.length?e.groups.filter(function(e){return!!e.id}).forEach(function(e){r(e)}):r(e)}),t.sync()},t.requestCreateControls=function(e){var n,t=i();return t.ribbon.executeRequestCreate(JSON.stringify(e)),n=250,new Promise(function(e,t){return setTimeout(function(){return e()},n)}).then(function(){return t.sync()})}}(Office=Office||{}),function(e){(e.contextMenu||(e.contextMenu={})).requestUpdate=function(e){if(OfficeExtension&&OfficeExtension.Utility&&!OfficeExtension.Utility.isSetSupported("ContextMenuApi","1.1"))throw OfficeExtension.Utility.createRuntimeError(OfficeCore.ErrorCodes.apiNotAvailable,null,null);var t,n=(t=new OfficeCore.RequestContext,"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(t._customData="WacPartition"),t),r=n.ribbon;return e.controls.filter(function(e){return!!e.id}).forEach(function(e){var t=r.getButton(e.id);void 0!==e.enabled&&null!==e.enabled&&(t.enabled=e.enabled)}),n.sync()}}(Office=Office||{}),function(e){var t;OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject,OfficeExtension.BatchApiHelper.createTopLevelServiceObject,OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod,OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined,OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson,OfficeExtension.Utility.fixObjectPathIfNecessary,OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult,OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags;(t||(t={})).generalException="GeneralException";new OfficeExtension.LibraryBuilder({metadata:{version:"1.0.0",name:"OfficeCore",defaultApiSetName:"OfficeSharedApi",hostName:"Office",apiSets:[],strings:["AddinInternalService"],enumTypes:[],clientObjectTypes:[[1,0,0,0,[["notifyActionHandlerReady",0,2,0,4]],0,0,0,0,"Microsoft.InternalService.AddinInternalService",4]]},targetNamespaceObject:e})}(OfficeCore=OfficeCore||{}),function(e){var r,t,h,g,y,m;function _(e,t){Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:e,dataFields:t,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage,diagnosticLevel:oteljs.DiagnosticLevel.Optional,samplingPolicy:oteljs.SamplingPolicy.CriticalBusinessImpact}})}function b(e){if(e){var t=e.toUpperCase(),n=r.mappings[t];if(!h(n)&&"function"==typeof n)return n}throw OfficeExtension.Utility.createRuntimeError("invalidOperation","sourceData","ActionProxy._getFunction")}function v(e,t,n,r){var i=OSF._OfficeAppFactory.getHostInfo();if(i&&"web"===i.hostPlatform.toLowerCase())OSF._OfficeAppFactory.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[OSF._OfficeAppFactory.getId(),OSF.AgaveHostAction.ReportAddinSkillResult,{actionCorrelationId:e,resultCode:t,replyMessage:r}]);else{if(h(window.external))throw new OfficeExtension.Error({code:"GenericException",message:"API currently unsupported."});var o=h(OSF.MethodDispId)?OSF.DDA.MethodDispId.dispidAddinSkillActionReply:OSF.MethodDispId.dispidAddinSkillActionReply;window.external.Execute(o,[e,r,t],null)}_("Office.Extensibility.OfficeJs.AddinSkill.ExecuteAction",[oteljs.makeStringDataField("CorrelationId",e),oteljs.makeStringDataField("Message",n),oteljs.makeInt64DataField("ResultCode",t)])}function n(e){try{OfficeExtension.Utility.log("ActionProxy._handleMessage"),OfficeExtension.Utility.checkArgumentNull(e,"args");function t(e){if(d[e].messageCategory!==g)return"continue";if("string"==typeof d[e].message&&(d[e].message=JSON.parse(d[e].message)),d[e].messageType===y){var t=null,n=b(i=d[e].message[0]);if(2<=d[e].message.length){var r=d[e].message[1];r&&("string"==typeof(f=r)&&"{"===f[0]?(t=JSON.parse(r)).completed=function(n){if("object"==typeof n){"autorunEventType"in this&&(n.autorunEventType=this.autorunEventType);var e=this;Word.run(function(t){return __awaiter(e,void 0,void 0,function(){return __generator(this,function(e){return t.document.autorunEventCompleted(n),[2]})})})}}:t=r)}n.apply(null,[t])}else if(d[e].messageType===m){t=null;var i=d[e].message[0],o=d[e].message[1],a=JSON.parse(o);t=a.message;var s=a.correlationId,c=[oteljs.makeStringDataField("CorrelationId",s),oteljs.makeStringDataField("Message","ActionProxy._handleMessage is called")];_("Office.Extensibility.OfficeJs.AddinSkill.ExecuteAction",c);var l=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess;n=null;try{n=b(i)}catch(e){l=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultNoActionFunctionMapping,c.push(oteljs.makeStringDataField("Message","ActionProxy._handleMessage failed to get function")),c.push(oteljs.makeInt64DataField("ResultCode",l)),_("Office.Extensibility.OfficeJs.AddinSkill.ExecuteAction",c),O(e)}var u=null,p="";if(l==OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess&&n)try{u=n.apply(null,[t])}catch(e){l=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvocationFailed,c.push(oteljs.makeStringDataField("Message","ActionProxy._handleMessage failed to execute function")),c.push(oteljs.makeInt64DataField("ResultCode",l)),_("Office.Extensibility.OfficeJs.AddinSkill.ExecuteAction",c),O(e)}if(l==OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess&&h(u)?(l=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultNoResultGenerated,p="No result generated"):l!=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess||"object"==typeof u&&"function"==typeof u.then||(l=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvalidResultGenerated,p="Invalid result generated"),l==OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess)try{u.then(function(e){p="Successfully executed function",h(e)?(e="",l=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultNoResultGenerated,p="No result generated"):"string"!=typeof e&&(e="",l=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvalidResultGenerated,p="Invalid result generated"),v(s,l,p,e)},function(e){var t="";l=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvocationFailed,p="Failed to execute function","string"==typeof e?t=e:O(e),v(s,l,p,t)})}catch(e){l=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvalidResultGenerated,p="Invalid result generated",O(e),v(s,l,p,"")}else try{v(s,l,p,"")}catch(e){O(e)}}else OfficeExtension.Utility.log("ActionProxy._handleMessage unknown message type "+d[e].messageType);var f}for(var d=e.entries,n=0;n<d.length;n++)t(n)}catch(e){throw O(e),e}return OfficeExtension.Utility._createPromiseFromResult(null)}function O(e){var t=function(e){var t="Unknown Error";if(e)try{e.toString&&(t=e.toString()),t=t+" "+JSON.stringify(e)}catch(e){t="Unexpected Error"}return t}(e);OfficeExtension.Utility.log(t)}function i(){try{Microsoft.Office.WebExtension.onReadyInternal().then(function(){return function(){if(void 0!==OSF&&OSF.DDA&&OSF.DDA.RichApi&&OSF.DDA.RichApi.richApiMessageManager)return(new OfficeExtension.ClientRequestContext).eventRegistration.register(5,"",n)}()}).then(function(){var e,t,n=OSF._OfficeAppFactory.getHostInfo();return!0===n.isDialog||"web"===n.hostPlatform.toLowerCase()&&"word"!==n.hostType&&"excel"!==n.hostType&&"powerpoint"!==n.hostType?void 0:(e=new OfficeExtension.ClientRequestContext,t=OfficeCore.AddinInternalService.newObject(e),e._customData="WacPartition",t.notifyActionHandlerReady(),e.sync())})}catch(e){}}h=OfficeExtension.Utility.isNullOrUndefined,g=2,y=1e3,m=1001,OfficeExtension.Utility.log("ActionProxy.initOnce"),void 0!==e.actions&&(t=e.actions._association,r=t),"undefined"!=typeof document&&(document.readyState&&"loading"!==document.readyState?(OfficeExtension.Utility.log("ActionProxy.initOnce: document.readyState is not loading state"),i()):document.addEventListener&&document.addEventListener("DOMContentLoaded",function(){OfficeExtension.Utility.log("ActionProxy.initOnce: DOMContentLoaded event triggered"),i()})),OfficeExtension.HostBridge.onInited(function(e){e.addHostMessageHandler(function(e){3===e.type&&n(e.message)})})}(Office=Office||{}),function(e){var t;function c(e){var t=new OfficeCore.RequestContext;return e&&e.controlId&&(t.requestHeaders[OfficeExtension.Constants.officeControlId]=e.controlId),t._customData="WacPartition",t}(t=e.AugLoop||(e.AugLoop={})).SendMessage=function(r,i){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=void 0!==i?i:r,n=c(void 0!==i?r:void 0),OfficeCore.AugLoopEventService.newObject(n).sendMessage(t),[4,n.sync()];case 1:return e.sent(),[2]}})})},t.onHostMessageReceived=function(a,s){return __awaiter(this,void 0,void 0,function(){var n,t,r,i,o=this;return __generator(this,function(e){switch(e.label){case 0:return n=void 0!==s?s:a,t=c(void 0!==s?a:void 0),r=OfficeCore.AugLoopEventService.newObject(t),i=function(e){if(n){var t=e.data;n(t)}return null},r.onHostMessageReceived.add(i),[4,r.context.sync()];case 1:return e.sent(),[2,function(){return __awaiter(o,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return r.onHostMessageReceived.remove(i),[4,t.sync()];case 1:return e.sent(),[2]}})})}]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t,u,p;function f(e){return"object"==typeof e&&"string"==typeof e.controlId?e.controlId:void 0}function d(e){var t=new OfficeCore.RequestContext;return e&&(t.requestHeaders[OfficeExtension.Constants.officeControlId]=e),t._customData="SkipUndoRecording",t}t=e.Undo||(e.Undo={}),p={},t.undo=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=d(f(i)),n=OfficeCore.UndoService.newObject(t),r=n.undo(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.onUndoStackChanged=function(o,a){return __awaiter(this,void 0,void 0,function(){var t,n,r,i=this;return __generator(this,function(e){switch(e.label){case 0:return t=a||o,n=d(f(a?o:void 0)),(r=OfficeCore.UndoService.newObject(n)).onUndoStackChanged.add(t),[4,n.sync()];case 1:return e.sent(),[2,function(){return __awaiter(i,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return r.onUndoStackChanged.remove(t),[4,n.sync()];case 1:return e.sent(),[2]}})})}]}})})},t.startCopilotOperation=function(l){return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o,a,s,c;return __generator(this,function(e){switch(e.label){case 0:if(void 0===(t=f(l))){if(void 0!==u)throw new Error("startCopilotOperation is already inprogress")}else if(p[t])throw new Error("startCopilotOperation is already in progress");n=function(){},r=new Promise(function(e){void 0===t?u=e:p[t]=e}),e.label=1;case 1:return e.trys.push([1,4,,5]),i=d(t),o=OfficeCore.UndoService.newObject(i),a=function(){return function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return void 0===t?void 0!==u&&(u(),u=void 0):p[t]&&(p[t](),delete p[t]),[2]})})}(t)},n=function(){try{o.onCopilotOperationStarted.remove(a),i.sync()}catch(e){}},o.onCopilotOperationStarted.add(a),[4,i.sync()];case 2:return e.sent(),s=o.startCopilotOperation(""),[4,i.sync()];case 3:return(e.sent(),s.value)?(void 0!==t&&r.then(function(){n()}),[2,r]):(void 0===t?u=void 0:(n(),delete p[t]),[3,5]);case 4:throw c=e.sent(),void 0===t?u=void 0:(n(),delete p[t]),c;case 5:return[2]}})})},t.endCopilotOperation=function(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=d(f(n)),OfficeCore.UndoService.newObject(t).endCopilotOperation(""),[4,t.sync()];case 1:return e.sent(),[2]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t;(t=e.dialogPage||(e.dialogPage={})).close=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=new OfficeCore.RequestContext,OfficeCore.DialogPage.newObject(t).close(),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.readyToShow=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=new OfficeCore.RequestContext,OfficeCore.DialogPage.newObject(t).readyToShow(),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.onShow=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=new OfficeCore.RequestContext,(n=OfficeCore.DialogPage.newObject(t)).onOnShowEvent.add(i),r=function(){return n.onOnShowEvent.remove(i),null},[4,t.sync()];case 1:return e.sent(),[2,r]}})})},t.sendMessageToHost=function(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=new OfficeCore.RequestContext,OfficeCore.DialogPage.newObject(t).sendMessageToHost(n),[4,t.sync()];case 1:return e.sent(),[2]}})})}}(Office=Office||{}),function(e){var t;function a(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}(t=e.UserFeedback||(e.UserFeedback={})).CollectUserFeedback=function(n,r,i,o){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=a(),OfficeCore.UserFeedbackService.newObject(t).collectUserFeedback(n,r,i,o),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.onUserFeedbackUIDismissed=function(o){return __awaiter(this,void 0,void 0,function(){var t,n,r,i=this;return __generator(this,function(e){switch(e.label){case 0:return t=function(e){if(o){var t=e.isFeedbackSent;o(t)}return null},n=a(),(r=OfficeCore.UserFeedbackService.newObject(n)).onUserFeedbackUIDismissed.add(t),[4,r.context.sync()];case 1:return e.sent(),[2,function(){return __awaiter(i,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return r.onUserFeedbackUIDismissed.remove(t),[4,n.sync()];case 1:return e.sent(),[2]}})})}]}})})},t.CanCollectUserFeedback=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=a(),n=OfficeCore.UserFeedbackService.newObject(t),r=n.canCollectUserFeedback(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.onUserFeedbackResponse=function(o){return __awaiter(this,void 0,void 0,function(){var t,n,r,i=this;return __generator(this,function(e){switch(e.label){case 0:return t=function(e){if(o){var t=e.responseData;o(t)}return null},n=a(),(r=OfficeCore.UserFeedbackService.newObject(n)).onUserFeedbackResponse.add(t),[4,r.context.sync()];case 1:return e.sent(),[2,function(){return __awaiter(i,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return r.onUserFeedbackResponse.remove(t),[4,n.sync()];case 1:return e.sent(),[2]}})})}]}})})},t.InvokeDiagnosticsLogsUpload=function(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=a(),OfficeCore.UserFeedbackService.newObject(t).invokeDiagnosticsLogsUpload(n),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.GetInitializationData=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=a(),n=OfficeCore.UserFeedbackService.newObject(t),r=n.getInitializationData(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.GetHostScreenshot=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=a(),n=OfficeCore.UserFeedbackService.newObject(t),r=n.getHostScreenshot(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.CanCollectCopilotFeedback=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=a(),n=OfficeCore.UserFeedbackService.newObject(t),r=n.canCollectCopilotFeedback(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.CollectFeedbackEligibility=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=a(),n=OfficeCore.UserFeedbackService.newObject(t),r=n.collectFeedbackEligibility(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.CheckFeedbackEligibility=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=a(),n=OfficeCore.UserFeedbackService.newObject(t),r=n.checkFeedbackEligibility(i),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t,n;function s(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}function c(e){return JSON.stringify(e instanceof n?{type:"callout",params:e.params}:{type:"custom",props:e})}t=e.Notification||(e.Notification={}),n=function(){},t.callout=function(e){var t=new n;return t.params=e,t},t.addNotification=function(o,a){return __awaiter(this,void 0,void 0,function(){var n,r,i;return __generator(this,function(e){switch(e.label){case 0:return n=s(),r=OfficeCore.NotificationService.newObject(n),i=r.addNotification(c(o),(t=a,JSON.stringify(t))),[4,n.sync()];case 1:return e.sent(),[2,i.value]}var t})})},t.updateNotification=function(n,r){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=s(),OfficeCore.NotificationService.newObject(t).updateNotification(n,c(r)),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.removeNotification=function(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=s(),OfficeCore.NotificationService.newObject(t).removeNotification(n),[4,t.sync()];case 1:return e.sent(),[2]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t;function l(e){var t=new OfficeCore.RequestContext;return e&&e.controlId&&(t.requestHeaders[OfficeExtension.Constants.officeControlId]=e.controlId),t._customData="WacPartition",t}(t=e.Sensitivity||(e.Sensitivity={})).getLabel=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=l(i),n=OfficeCore.SensitivityService.newObject(t),r=n.getLabel(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.tryUpgradeLabel=function(){for(var a=[],e=0;e<arguments.length;e++)a[e]=arguments[e];return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o;return __generator(this,function(e){switch(e.label){case 0:if(t=3===a.length,2!==a.length&&3!==a.length)throw new Error("tryUpgradeLabel: Invalid number of parameters ("+a.length+")");return n=t?a[0]:void 0,r=t?a[1]:a[0],i=t?a[2]:a[1],o=l(n),OfficeCore.SensitivityService.newObject(o).tryUpgradeLabel(r,i),[4,o.sync()];case 1:return e.sent(),[2]}})})},t.getHighestSensitivityLabel=function(){for(var s=[],e=0;e<arguments.length;e++)s[e]=arguments[e];return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o,a;return __generator(this,function(e){switch(e.label){case 0:if(t=2===s.length,1!==s.length&&2!==s.length)throw new Error("getHighestSensitivityLabel: Invalid number of parameters ("+s.length+")");return n=t?s[0]:void 0,r=t?s[1]:s[0],i=l(n),o=OfficeCore.SensitivityService.newObject(i),a=o.getHighestSensitivityLabel(r),[4,i.sync()];case 1:return e.sent(),[2,a.value]}})})},t.getSensitivityResultDetails=function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e];return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o,a,s;return __generator(this,function(e){switch(e.label){case 0:if(t=3===c.length,2!==c.length&&3!==c.length)throw new Error("getSensitivityResultDetails: Invalid number of parameters ("+c.length+")");return n=t?c[0]:void 0,r=t?c[1]:c[0],i=t?c[2]:c[1],o=l(n),a=OfficeCore.SensitivityService.newObject(o),s=a.getSensitivityResultDetails(r,i),[4,o.sync()];case 1:return e.sent(),[2,s.value]}})})},t.getSensitivityResultDetailsByStringErrorCode=function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e];return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o,a,s;return __generator(this,function(e){switch(e.label){case 0:if(t=3===c.length,2!==c.length&&3!==c.length)throw new Error("getSensitivityResultDetails: Invalid number of parameters ("+c.length+")");return n=t?c[0]:void 0,r=t?c[1]:c[0],i=t?c[2]:c[1],o=l(n),a=OfficeCore.SensitivityService.newObject(o),s=a.getSensitivityResultDetailsByStringErrorCode(r,i),[4,o.sync()];case 1:return e.sent(),[2,s.value]}})})},t.onLabelChangedEvent=function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e];return __awaiter(this,void 0,void 0,function(){var t,n,o,r,i,a,s=this;return __generator(this,function(e){switch(e.label){case 0:if(t=2===c.length,1!==c.length&&2!==c.length)throw new Error("onLabelChangedEvent: Invalid number of parameters ("+c.length+")");return n=t?c[0]:void 0,o=t?c[1]:c[0],r=function(e){if(o){var t=e.previousLabel,n=e.newLabel,r=e.context,i=e.error;o(t,n,r,i)}return null},i=l(n),(a=OfficeCore.SensitivityService.newObject(i)).onLabelChanged.add(r),[4,a.context.sync()];case 1:return e.sent(),[2,function(){return __awaiter(s,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return a.onLabelChanged.remove(r),[4,i.sync()];case 1:return e.sent(),[2]}})})}]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t;function i(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}(t=e.Copilot||(e.Copilot={})).launchHelpPaneByQuery=function(r){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=i(),n=OfficeCore.CopilotService.newObject(t),n.launchHelpPaneByQuery(r),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.launchHelpPaneByArticleId=function(r){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=i(),n=OfficeCore.CopilotService.newObject(t),n.launchHelpPaneByArticleId(r),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.launchHelpPaneByArticleIdString=function(r){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=i(),n=OfficeCore.CopilotService.newObject(t),n.launchHelpPaneByArticleIdString(r),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.launchTaskPaneByAgentId=function(r){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=i(),n=OfficeCore.CopilotService.newObject(t),n.launchTaskPaneByAgentId(r),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.getWindowClientWidth=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=i(),n=OfficeCore.CopilotService.newObject(t),r=n.getWindowClientWidth(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t;function l(e){var t=new OfficeCore.RequestContext;return e&&e.controlId&&(t.requestHeaders[OfficeExtension.Constants.officeControlId]=e.controlId),t._customData="WacPartition",t}(t=e.PrivateApi||(e.PrivateApi={})).execute=function(){for(var s=[],e=0;e<arguments.length;e++)s[e]=arguments[e];return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o,a;return __generator(this,function(e){switch(e.label){case 0:return t=2<=s.length,n=t?s[0]:void 0,r=t?s[1]:s[0],i=l(n),o=OfficeCore.PrivateApiService.newObject(i),a=o.execute(r),[4,i.sync()];case 1:return e.sent(),[2,a.value]}})})},t.onPrivateEvent=function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e];return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o,a,s=this;return __generator(this,function(e){switch(e.label){case 0:return t=2<=c.length,n=t?c[0]:void 0,r=t?c[1]:c[0],i=function(e){if(r){var t=e.messageData;r(t)}return null},o=l(n),(a=OfficeCore.PrivateApiService.newObject(o)).onOnPrivateEvent.add(i),[4,a.context.sync()];case 1:return e.sent(),[2,function(){return __awaiter(s,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return a.onOnPrivateEvent.remove(i),[4,o.sync()];case 1:return e.sent(),[2]}})})}]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t,o,n,r;function a(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}t=e.UnifiedStore||(e.UnifiedStore={}),(o=t.DefaultPageType||(t.DefaultPageType={})).copilotAgentsPage="CopilotAgentsPage",(n=t.CopilotAgentActionType||(t.CopilotAgentActionType={})).activated="Activated",n.removed="Removed",(r=t.RefreshAcquisitionStateTriggerType||(t.RefreshAcquisitionStateTriggerType={})).host="Host",r.api="Api",t.launchStore=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:if(i!==o.copilotAgentsPage)throw OfficeExtension.Utility.createRuntimeError(OfficeExtension.ErrorCodes.invalidArgument,null,null);return(t=a(),n=OfficeCore.UnifiedStoreService.newObject(t),i!=o.copilotAgentsPage)?[3,2]:(r=n.launchStoreDialogWithCopilotAgentPageShown(),[4,t.sync()]);case 1:return e.sent(),[2,r];case 2:return[2]}})})},t.refreshAcquisitionState=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){return t=a(),n=OfficeCore.UnifiedStoreService.newObject(t),r=n.refreshAcquisitionState(),t.sync().then(function(){var e=JSON.parse(r.value);i(e)}),[2,null]})})},t.getAcquisitionState=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){return t=a(),n=OfficeCore.UnifiedStoreService.newObject(t),r=n.getAcquisitionState(),t.sync().then(function(){var e=JSON.parse(r.value);i(e)}),[2,null]})})},t.onCopilotAgentEvent=function(o){return __awaiter(this,void 0,void 0,function(){var t,n,r,i=this;return __generator(this,function(e){switch(e.label){case 0:return t=function(e){if(o){var t=JSON.parse(e.messageData),n=t.actionType,r=t.titleId;o({actionType:n,titleId:r})}return null},n=a(),(r=OfficeCore.UnifiedStoreService.newObject(n)).onCopilotAgentEvent.add(t),[4,r.context.sync()];case 1:return e.sent(),[2,function(){return __awaiter(i,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return r.onCopilotAgentEvent.remove(t),[4,n.sync()];case 1:return e.sent(),[2]}})})}]}})})},t.onRefreshedAcquisitionState=function(o){return __awaiter(this,void 0,void 0,function(){var t,n,r,i=this;return __generator(this,function(e){switch(e.label){case 0:return t=function(e){if(o){var t=JSON.parse(e.messageData);o(t)}return null},n=a(),(r=OfficeCore.UnifiedStoreService.newObject(n)).onRefreshedAcquisitionStateEvent.add(t),[4,r.context.sync()];case 1:return e.sent(),[2,function(){return __awaiter(i,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return r.onRefreshedAcquisitionStateEvent.remove(t),[4,n.sync()];case 1:return e.sent(),[2]}})})}]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t;function i(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}(t=e.BusinessBar||(e.BusinessBar={})).hide=function(r){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=i(),n=OfficeCore.BusinessBarService.newObject(t),n.hide(r),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.show=function(n,r){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=i(),OfficeCore.BusinessBarService.newObject(t).show(n,r),[4,t.sync()];case 1:return e.sent(),[2]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){(e.SimpleDialog||(e.SimpleDialog={})).launchSimpleDialog=function(o){return __awaiter(this,void 0,void 0,function(){var n,r,i;return __generator(this,function(e){switch(e.label){case 0:return(t=new OfficeCore.RequestContext)._customData="WacPartition",n=t,r=OfficeCore.ShowSimpleDialog.newObject(n),i=r.launchSimpleDialog(o.title,o.description,o.telemetryid,o.category,o.hasButton,o.buttonLabel,o.hasCheckbox,o.checkboxLabel),[4,n.sync()];case 1:return e.sent(),[2,i.value]}var t})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){(e.DispatchApi||(e.DispatchApi={})).execute=function(o,a){return __awaiter(this,void 0,void 0,function(){var n,r,i;return __generator(this,function(e){switch(e.label){case 0:return(t=new OfficeCore.RequestContext)._customData="WacPartition",n=t,r=OfficeCore.DispatchApiService.newObject(n),i=r.execute(o,a),[4,n.sync()];case 1:return e.sent(),[2,i.value]}var t})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t;(t=e.DevicePermissionType||(e.DevicePermissionType={})).camera="camera",t.microphone="microphone",t.geolocation="geolocation",(e.devicePermission||(e.devicePermission={})).requestPermissions=function(o){return __awaiter(this,void 0,void 0,function(){var n,r,i;return __generator(this,function(e){switch(e.label){case 0:return(t=new OfficeCore.RequestContext)._customData="WacPartition",n=t,r=OfficeCore.DevicePermissionService.newObject(n),i=r.requestPermissions(o),[4,n.sync()];case 1:return e.sent(),[2,i.value]}var t})})}}(Office=Office||{}),function(e){var c,t,n,l,r;function u(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}function p(e){!function(){if(null==r){r=function(e){var t=e.actionCorrelationId,n=(e.replyMessage,e.resultCode,l[t]);return null!=n&&(n.replyMessage=e.replyMessage,n.resultCode=e.resultCode,n.replyPromiseResolver()),null};var e=u();OfficeCore.AddinSkillActionService.newObject(e).onReplyReceived.add(r),e.sync().then(null,function(e){console.log("There was an error registering the reply event listener!")})}}();var t={correlationId:e,replyPromise:null,replyPromiseResolver:null,replyMessage:null,resultCode:0};return t.replyPromise=new Promise(function(e){t.replyPromiseResolver=e}),l[e]=t}(t=c=e.AddinInvokeResult||(e.AddinInvokeResult={}))[t.AddinInvokeResultNotInstalled=-1]="AddinInvokeResultNotInstalled",t[t.AddinInvokeResultSkillNotFound=-2]="AddinInvokeResultSkillNotFound",t[t.AddinInvokeResultLaunchFailed=-3]="AddinInvokeResultLaunchFailed",t[t.AddinInvokeResultSuccess=0]="AddinInvokeResultSuccess",t[t.AddinInvokeResultInvocationFailed=1]="AddinInvokeResultInvocationFailed",t[t.AddinInvokeResultNoResultGenerated=2]="AddinInvokeResultNoResultGenerated",t[t.AddinInvokeResultInvalidResultGenerated=3]="AddinInvokeResultInvalidResultGenerated",t[t.AddinInvokeResultNoActionFunctionMapping=4]="AddinInvokeResultNoActionFunctionMapping",n=e.AddinSkillAction||(e.AddinSkillAction={}),l={},r=null,n.InvokeAction=function(o,a,s){return __awaiter(this,void 0,void 0,function(){var t,n,r,i;return __generator(this,function(e){switch(e.label){case 0:t=u(),n=OfficeCore.AddinSkillActionService.newObject(t),r=OSF.OUtil.Guid.generateNewGuid(),i=p(r),e.label=1;case 1:return e.trys.push([1,,4,5]),n.invokeAction(o,a,s,r),[4,t.sync()];case 2:return e.sent(),[4,i.replyPromise];case 3:return e.sent(),[3,5];case 4:return delete l[r],[7];case 5:if(i.resultCode==c.AddinInvokeResultSuccess){if("string"==typeof i.replyMessage)return[2,i.replyMessage];i.resultCode=c.AddinInvokeResultInvalidResultGenerated}switch(i.resultCode){case c.AddinInvokeResultNotInstalled:throw new OfficeExtension.Error({code:"AddinNotInstalled",message:"Add-in not installed."});case c.AddinInvokeResultSkillNotFound:throw new OfficeExtension.Error({code:"SkillNotFound",message:"Skill not found in the add-in manifest."});case c.AddinInvokeResultLaunchFailed:throw new OfficeExtension.Error({code:"LaunchFailed",message:"Add-in launch failed."});case c.AddinInvokeResultInvocationFailed:throw new OfficeExtension.Error({code:"InvocationFailed",message:"Skill invocation failed."});case c.AddinInvokeResultNoResultGenerated:throw new OfficeExtension.Error({code:"NoResultGenerated",message:"No result generated."});case c.AddinInvokeResultInvalidResultGenerated:throw new OfficeExtension.Error({code:"InvalidResultGenerated",message:"Invalid result generated."});case c.AddinInvokeResultNoActionFunctionMapping:throw new OfficeExtension.Error({code:"NoActionFunctionMapping",message:"No action function mapping."});default:throw new OfficeExtension.Error({code:"UnknownError",message:"Unknown error (code = "+i.resultCode+")."})}return[2]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){(e.ThemeService||(e.ThemeService={})).getofficethemedataforvisualsurface=function(o){return __awaiter(this,void 0,void 0,function(){var n,r,i;return __generator(this,function(e){switch(e.label){case 0:return(t=new OfficeCore.RequestContext)._customData="WacPartition",n=t,r=OfficeCore.ThemeService.newObject(n),i=r.getOfficeThemeDataForVisualSurface(o),[4,n.sync()];case 1:return e.sent(),[2,JSON.parse(i.value)]}var t})})}}(OfficeFirstParty=OfficeFirstParty||{});var Word;__extends=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}();!function(a){function o(e,t){if(OfficeExtension.Utility.isNullOrUndefined(t))return null;if("object"!=typeof t&&OfficeExtension.Utility.throwError(OfficeExtension.ResourceStrings.invalidArgument,"searchOptions"),t instanceof a.SearchOptions)return t;var n=a.SearchOptions.newObject(e);for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n}function s(){return"undefined"!=typeof window&&window.Office&&window.Office.context&&window.Office.context.requirements&&window.Office.context.requirements.isSetSupported("WordApiSearchFlags","1.1")}function c(e){if(OfficeExtension.Utility.isNullOrUndefined(e))return 0;"object"!=typeof e&&OfficeExtension.Utility.throwError(OfficeExtension.ResourceStrings.invalidArgument,"searchOptions");var t=0;return e instanceof a.SearchOptions&&(e=e.toJSON()),e.ignorePunct&&(t|=32),e.ignoreSpace&&(t|=64),e.matchCase&&(t|=1),e.matchPrefix&&(t|=8),e.matchSuffix&&(t|=16),e.matchWildcards&&(t|=4),e.matchWholeWord&&(t|=2),t}var n,e,l="Word",u="WordApi",t=OfficeExtension.BatchApiHelper.createPropertyObject,p=OfficeExtension.BatchApiHelper.createMethodObject,r=OfficeExtension.BatchApiHelper.createIndexerObject,i=(OfficeExtension.BatchApiHelper.createRootServiceObject,OfficeExtension.BatchApiHelper.createTopLevelServiceObject),f=OfficeExtension.BatchApiHelper.createChildItemObject,d=OfficeExtension.BatchApiHelper.invokeMethod,h=OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,g=OfficeExtension.BatchApiHelper.invokeSetProperty,y=OfficeExtension.Utility.isNullOrUndefined,m=OfficeExtension.Utility.isUndefined,_=OfficeExtension.Utility.throwIfNotLoaded,b=OfficeExtension.Utility.throwIfApiNotSupported,v=OfficeExtension.Utility.load,O=OfficeExtension.Utility.retrieve,C=OfficeExtension.Utility.toJson,P=OfficeExtension.Utility.fixObjectPathIfNecessary,R=OfficeExtension.Utility._handleNavigationPropertyResults,S=OfficeExtension.Utility.adjustToDateTime,I=OfficeExtension.Utility.processRetrieveResult,T=OfficeExtension.Utility.setMockData,A=(OfficeExtension.CommonUtility.calculateApiFlags,"AugloopAnnotation"),N=(n=OfficeExtension.ClientObject,__extends(x,n),Object.defineProperty(x.prototype,"_className",{get:function(){return"AugloopAnnotation"},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"_scalarPropertyNames",{get:function(){return["content","id","_ReferenceId","_State"]},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Content","Id","_ReferenceId","_State"]},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"content",{get:function(){return _("content",this._C,A,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"id",{get:function(){return _("id",this._I,A,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,A,this._isNull),this.__R},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"_State",{get:function(){return _("_State",this.__S,A,this._isNull),this.__S},set:function(e){this.__S=e,g(this,"_State",e,0)},enumerable:!0,configurable:!0}),x.prototype.delete=function(){d(this,"Delete",0,[],0,0)},x.prototype.getParentAsAnnotation=function(){return p(a.AugloopAnnotation,this,"GetParentAsAnnotation",1,[],!1,!1,null,4)},x.prototype.getParentAsParagraph=function(){return p(a.Paragraph,this,"GetParentAsParagraph",1,[],!1,!1,null,4)},x.prototype.getParentType=function(){return d(this,"GetParentType",1,[],4,0)},x.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},x.prototype._handleResult=function(e){if(n.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Content)||(this._C=t.Content),m(t.Id)||(this._I=t.Id),m(t._ReferenceId)||(this.__R=t._ReferenceId),m(t._State)||(this.__S=t._State)}},x.prototype.load=function(e){return v(this,e)},x.prototype.retrieve=function(e){return O(this,e)},x.prototype._handleIdResult=function(e){n.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e.Id)||(this._I=e.Id))},x.prototype._handleRetrieveResult=function(e,t){n.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},x.prototype.track=function(){return this.context.trackedObjects.add(this),this},x.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},x.prototype.toJSON=function(){return C(this,{content:this._C,id:this._I},{})},x.prototype.setMockData=function(e){T(this,e)},x.prototype.ensureUnchanged=function(e){h(this,e)},x);function x(){return null!==n&&n.apply(this,arguments)||this}a.AugloopAnnotation=N,(e=a.CritiqueColorScheme||(a.CritiqueColorScheme={})).red="Red",e.green="Green",e.blue="Blue",e.lavender="Lavender",e.berry="Berry";var E,D,j="CritiqueAnnotation",w=(E=OfficeExtension.ClientObject,__extends(k,E),Object.defineProperty(k.prototype,"_className",{get:function(){return"CritiqueAnnotation"},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","critique"]},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Critique"]},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"_navigationPropertyNames",{get:function(){return["range"]},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"range",{get:function(){return this._R||(this._R=t(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"critique",{get:function(){return _("critique",this._C,j,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,j,this._isNull),this.__R},enumerable:!0,configurable:!0}),k.prototype.accept=function(){d(this,"Accept",0,[],0,0)},k.prototype.reject=function(){d(this,"Reject",0,[],0,0)},k.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},k.prototype._handleResult=function(e){if(E.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Critique)||(this._C=t.Critique),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["range","Range"])}},k.prototype.load=function(e){return v(this,e)},k.prototype.retrieve=function(e){return O(this,e)},k.prototype._handleIdResult=function(e){E.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},k.prototype._handleRetrieveResult=function(e,t){E.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},k.prototype.track=function(){return this.context.trackedObjects.add(this),this},k.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},k.prototype.toJSON=function(){return C(this,{critique:this._C},{})},k.prototype.setMockData=function(e){T(this,e)},k.prototype.ensureUnchanged=function(e){h(this,e)},k);function k(){return null!==E&&E.apply(this,arguments)||this}a.CritiqueAnnotation=w,(D=a.AnnotationState||(a.AnnotationState={})).created="Created",D.accepted="Accepted",D.rejected="Rejected";var F,L="Annotation",M=(F=OfficeExtension.ClientObject,__extends(B,F),Object.defineProperty(B.prototype,"_className",{get:function(){return"Annotation"},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"_scalarPropertyNames",{get:function(){return["id","_ReferenceId","state"]},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","_ReferenceId","State"]},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"_navigationPropertyNames",{get:function(){return["critiqueAnnotation"]},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"critiqueAnnotation",{get:function(){return this._C||(this._C=t(a.CritiqueAnnotation,this,"CritiqueAnnotation",!1,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"id",{get:function(){return _("id",this._I,L,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"state",{get:function(){return _("state",this._S,L,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,L,this._isNull),this.__R},enumerable:!0,configurable:!0}),B.prototype.delete=function(){d(this,"Delete",0,[],0,0)},B.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},B.prototype._handleResult=function(e){if(F.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Id)||(this._I=t.Id),m(t.State)||(this._S=t.State),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["critiqueAnnotation","CritiqueAnnotation"])}},B.prototype.load=function(e){return v(this,e)},B.prototype.retrieve=function(e){return O(this,e)},B.prototype._handleIdResult=function(e){F.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e.Id)||(this._I=e.Id))},B.prototype._handleRetrieveResult=function(e,t){F.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},B.prototype.track=function(){return this.context.trackedObjects.add(this),this},B.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},B.prototype.toJSON=function(){return C(this,{id:this._I,state:this._S},{})},B.prototype.setMockData=function(e){T(this,e)},B.prototype.ensureUnchanged=function(e){h(this,e)},B);function B(){return null!==F&&F.apply(this,arguments)||this}a.Annotation=M;var H,U="AnnotationCollection",W=(H=OfficeExtension.ClientObject,__extends(G,H),Object.defineProperty(G.prototype,"_className",{get:function(){return"AnnotationCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"items",{get:function(){return _("items",this.m__items,U,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,U,this._isNull),this.__R},enumerable:!0,configurable:!0}),G.prototype.getFirst=function(){return p(a.Annotation,this,"GetFirst",0,[],!1,!1,null,0)},G.prototype.getFirstOrNullObject=function(){return p(a.Annotation,this,"GetFirstOrNullObject",0,[],!1,!1,null,0)},G.prototype._GetItem=function(e){return r(a.Annotation,this,[e])},G.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},G.prototype._handleResult=function(e){if(H.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Annotation,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},G.prototype.load=function(e){return v(this,e)},G.prototype.retrieve=function(e){return O(this,e)},G.prototype._handleIdResult=function(e){H.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},G.prototype._handleRetrieveResult=function(e,t){var n=this;H.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.Annotation,!0,n,e,t)})},G.prototype.track=function(){return this.context.trackedObjects.add(this),this},G.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},G.prototype.toJSON=function(){return C(this,{},{},this.m__items)},G.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.Annotation,!0,n,e,t)},function(e){return n.m__items=e})},G);function G(){return null!==H&&H.apply(this,arguments)||this}a.AnnotationCollection=W;var V,q="AugloopAnnotationCollection",z=(V=OfficeExtension.ClientObject,__extends(K,V),Object.defineProperty(K.prototype,"_className",{get:function(){return"AugloopAnnotationCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(K.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(K.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(K.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(K.prototype,"items",{get:function(){return _("items",this.m__items,q,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(K.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,q,this._isNull),this.__R},enumerable:!0,configurable:!0}),K.prototype.getFirst=function(){return p(a.AugloopAnnotation,this,"GetFirst",1,[],!1,!1,null,4)},K.prototype.getFirstOrNullObject=function(){return p(a.AugloopAnnotation,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},K.prototype.getItem=function(e){return r(a.AugloopAnnotation,this,[e])},K.prototype.refresh=function(){d(this,"Refresh",1,[],4,0)},K.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},K.prototype._handleResult=function(e){if(V.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.AugloopAnnotation,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},K.prototype.load=function(e){return v(this,e)},K.prototype.retrieve=function(e){return O(this,e)},K.prototype._handleIdResult=function(e){V.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},K.prototype._handleRetrieveResult=function(e,t){var n=this;V.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.AugloopAnnotation,!0,n,e,t)})},Object.defineProperty(K.prototype,"onAnnotationAdded",{get:function(){var n=this;return this.m_annotationAdded||(this.m_annotationAdded=new OfficeExtension.GenericEventHandlers(this.context,this,"AnnotationAdded",{eventType:4,registerFunc:function(){return n._RegisterAddedEvent()},unregisterFunc:function(){return n._UnregisterAddedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=J.AugloopAnnotationCollection_AnnotationAdded_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_annotationAdded},enumerable:!0,configurable:!0}),Object.defineProperty(K.prototype,"onAnnotationChanged",{get:function(){var n=this;return this.m_annotationChanged||(this.m_annotationChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"AnnotationChanged",{eventType:5,registerFunc:function(){return n._RegisterChangedEvent()},unregisterFunc:function(){return n._UnregisterChangedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=J.AugloopAnnotationCollection_AnnotationChanged_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_annotationChanged},enumerable:!0,configurable:!0}),Object.defineProperty(K.prototype,"onAnnotationDeleted",{get:function(){var n=this;return this.m_annotationDeleted||(this.m_annotationDeleted=new OfficeExtension.GenericEventHandlers(this.context,this,"AnnotationDeleted",{eventType:6,registerFunc:function(){return n._RegisterDeletedEvent()},unregisterFunc:function(){return n._UnregisterDeletedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=J.AugloopAnnotationCollection_AnnotationDeleted_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_annotationDeleted},enumerable:!0,configurable:!0}),K.prototype.track=function(){return this.context.trackedObjects.add(this),this},K.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},K.prototype.toJSON=function(){return C(this,{},{},this.m__items)},K.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.AugloopAnnotation,!0,n,e,t)},function(e){return n.m__items=e})},K);function K(){return null!==V&&V.apply(this,arguments)||this}a.AugloopAnnotationCollection=z;var J,X,Q=(Y.prototype.getDocument=function(){return y(this._document)&&(this._document=this.context.document),this._document},Y.prototype.getReferenceId=function(){return y(this._refId)&&(this._refId=this._ReferenceId),this._refId},Y.prototype._RegisterAddedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"AnnotationAdded")},Y.prototype._UnregisterAddedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"AnnotationAdded")},Y.prototype._RegisterChangedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"AnnotationChanged")},Y.prototype._UnregisterChangedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"AnnotationChanged")},Y.prototype._RegisterDeletedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"AnnotationDeleted")},Y.prototype._UnregisterDeletedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"AnnotationDeleted")},Y);function Y(){}a.AugloopAnnotationCollectionCustom=Q,OfficeExtension.Utility.applyMixin(z,Q),(X=J=a._CC||(a._CC={})).AugloopAnnotationCollection_AnnotationAdded_EventArgsTransform=function(e,t){var n={eventType:a.EventType.annotationAdded,annotation:OfficeExtension.BatchApiHelper.createObjectFromReferenceId(a.AugloopAnnotation,e.context,t)};return n.annotation.load(),n},X.AugloopAnnotationCollection_AnnotationChanged_EventArgsTransform=function(e,t){var n={eventType:a.EventType.annotationChanged,annotation:OfficeExtension.BatchApiHelper.createObjectFromReferenceId(a.AugloopAnnotation,e.context,t)};return n.annotation.load(),n},X.AugloopAnnotationCollection_AnnotationDeleted_EventArgsTransform=function(e,t){var n={eventType:a.EventType.annotationDeleted,annotation:OfficeExtension.BatchApiHelper.createObjectFromReferenceId(a.AugloopAnnotation,e.context,t)};return n.annotation.load(),n};var Z,$="Application",ee=(Z=OfficeExtension.ClientObject,__extends(te,Z),Object.defineProperty(te.prototype,"_className",{get:function(){return"Application"},enumerable:!0,configurable:!0}),Object.defineProperty(te.prototype,"_scalarPropertyNames",{get:function(){return["checkLanguage","language"]},enumerable:!0,configurable:!0}),Object.defineProperty(te.prototype,"_scalarPropertyOriginalNames",{get:function(){return["CheckLanguage","Language"]},enumerable:!0,configurable:!0}),Object.defineProperty(te.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(te.prototype,"_navigationPropertyNames",{get:function(){return["templates","bibliography"]},enumerable:!0,configurable:!0}),Object.defineProperty(te.prototype,"bibliography",{get:function(){return b("Application.bibliography","WordApiDesktop","1.3",l),this._B||(this._B=t(a.Bibliography,this,"Bibliography",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(te.prototype,"templates",{get:function(){return b("Application.templates","WordApiDesktop","1.3",l),this._T||(this._T=t(a.TemplateCollection,this,"Templates",!0,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(te.prototype,"checkLanguage",{get:function(){return _("checkLanguage",this._C,$,this._isNull),b("Application.checkLanguage","WordApiDesktop","1.3",l),this._C},set:function(e){this._C=e,g(this,"CheckLanguage",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(te.prototype,"language",{get:function(){return _("language",this._L,$,this._isNull),b("Application.language","WordApiDesktop","1.3",l),this._L},enumerable:!0,configurable:!0}),te.prototype.set=function(e,t){this._recursivelySet(e,t,["checkLanguage"],["bibliography"],["templates"])},te.prototype.update=function(e){this._recursivelyUpdate(e)},te.prototype.createDocument=function(e){return p(a.DocumentCreated,this,"CreateDocument",1,[e],!1,!1,null,4)},te.prototype.getEnterpriseUserInfo=function(){return d(this,"GetEnterpriseUserInfo",1,[],5,0)},te.prototype.getMruFriendlyPath=function(e){return d(this,"GetMruFriendlyPath",1,[e],5,0)},te.prototype.getSharePointTenantRoot=function(){return d(this,"GetSharePointTenantRoot",1,[],5,0)},te.prototype.isTapEnabled=function(){return d(this,"IsTapEnabled",1,[],5,0)},te.prototype.launchFileUrlInOfficeApp=function(e,t){return d(this,"LaunchFileUrlInOfficeApp",1,[e,t],5,0)},te.prototype.openDocument=function(e){b("Application.openDocument",u,"1.6",l),d(this,"OpenDocument",1,[e],4,0)},te.prototype.retrieveStylesFromBase64=function(e){return b("Application.retrieveStylesFromBase64",u,"1.5",l),d(this,"RetrieveStylesFromBase64",1,[e],4,0)},te.prototype._handleResult=function(e){if(Z.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.CheckLanguage)||(this._C=t.CheckLanguage),m(t.Language)||(this._L=t.Language),R(this,t,["bibliography","Bibliography","templates","Templates"])}},te.prototype.load=function(e){return v(this,e)},te.prototype.retrieve=function(e){return O(this,e)},te.prototype._handleRetrieveResult=function(e,t){Z.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},te.newObject=function(e){return i(a.Application,e,"Microsoft.WordServices.Application",!1,4)},te.prototype.toJSON=function(){return C(this,{checkLanguage:this._C,language:this._L},{bibliography:this._B})},te.prototype.setMockData=function(e){T(this,e)},te.prototype.ensureUnchanged=function(e){h(this,e)},te);function te(){return null!==Z&&Z.apply(this,arguments)||this}a.Application=ee;var ne,re="Body",ie=(ne=OfficeExtension.ClientObject,__extends(oe,ne),Object.defineProperty(oe.prototype,"_className",{get:function(){return"Body"},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","style","text","type","styleBuiltIn"]},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Style","Text","Type","StyleBuiltIn"]},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!1,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"_navigationPropertyNames",{get:function(){return["paragraphs","contentControls","parentContentControl","font","inlinePictures","parentBody","lists","tables","parentSection","parentContentControlOrNullObject","parentBodyOrNullObject","parentSectionOrNullObject","footnotes","endnotes","fields","shapes"]},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"contentControls",{get:function(){return this._C||(this._C=t(a.ContentControlCollection,this,"ContentControls",!0,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"endnotes",{get:function(){return b("Body.endnotes",u,"1.5",l),this._E||(this._E=t(a.NoteItemCollection,this,"Endnotes",!0,4)),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"fields",{get:function(){return b("Body.fields",u,"1.4",l),this._F||(this._F=t(a.FieldCollection,this,"Fields",!0,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"font",{get:function(){return this._Fo||(this._Fo=t(a.Font,this,"Font",!1,4)),this._Fo},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"footnotes",{get:function(){return b("Body.footnotes",u,"1.5",l),this._Foo||(this._Foo=t(a.NoteItemCollection,this,"Footnotes",!0,4)),this._Foo},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"inlinePictures",{get:function(){return this._I||(this._I=t(a.InlinePictureCollection,this,"InlinePictures",!0,4)),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"lists",{get:function(){return b("Body.lists",u,"1.3",l),this._L||(this._L=t(a.ListCollection,this,"Lists",!0,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"paragraphs",{get:function(){return this._P||(this._P=t(a.ParagraphCollection,this,"Paragraphs",!0,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"parentBody",{get:function(){return b("Body.parentBody",u,"1.3",l),this._Pa||(this._Pa=t(a.Body,this,"ParentBody",!1,4)),this._Pa},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"parentBodyOrNullObject",{get:function(){return b("Body.parentBodyOrNullObject",u,"1.3",l),this._Par||(this._Par=t(a.Body,this,"ParentBodyOrNullObject",!1,4)),this._Par},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"parentContentControl",{get:function(){return this._Pare||(this._Pare=t(a.ContentControl,this,"ParentContentControl",!1,4)),this._Pare},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"parentContentControlOrNullObject",{get:function(){return b("Body.parentContentControlOrNullObject",u,"1.3",l),this._Paren||(this._Paren=t(a.ContentControl,this,"ParentContentControlOrNullObject",!1,4)),this._Paren},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"parentSection",{get:function(){return b("Body.parentSection",u,"1.3",l),this._Parent||(this._Parent=t(a.Section,this,"ParentSection",!1,4)),this._Parent},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"parentSectionOrNullObject",{get:function(){return b("Body.parentSectionOrNullObject",u,"1.3",l),this._ParentS||(this._ParentS=t(a.Section,this,"ParentSectionOrNullObject",!1,4)),this._ParentS},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"shapes",{get:function(){return b("Body.shapes","WordApiDesktop","1.2",l),this._S||(this._S=t(a.ShapeCollection,this,"Shapes",!0,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"tables",{get:function(){return b("Body.tables",u,"1.3",l),this._T||(this._T=t(a.TableCollection,this,"Tables",!0,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"style",{get:function(){return _("style",this._St,re,this._isNull),this._St},set:function(e){this._St=e,g(this,"Style",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"styleBuiltIn",{get:function(){return _("styleBuiltIn",this._Sty,re,this._isNull),b("Body.styleBuiltIn",u,"1.3",l),this._Sty},set:function(e){this._Sty=e,g(this,"StyleBuiltIn",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"text",{get:function(){return _("text",this._Te,re,this._isNull),this._Te},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"type",{get:function(){return _("type",this._Ty,re,this._isNull),b("Body.type",u,"1.3",l),this._Ty},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,re,this._isNull),this.__R},enumerable:!0,configurable:!0}),oe.prototype.set=function(e,t){this._recursivelySet(e,t,["style","styleBuiltIn"],["font"],["contentControls","endnotes","fields","footnotes","inlinePictures","lists","paragraphs","parentBody","parentBodyOrNullObject","parentContentControl","parentContentControlOrNullObject","parentSection","parentSectionOrNullObject","shapes","tables"])},oe.prototype.update=function(e){this._recursivelyUpdate(e)},oe.prototype.clear=function(){d(this,"Clear",0,[],0,0)},oe.prototype.getComments=function(){return b("Body.getComments",u,"1.4",l),p(a.CommentCollection,this,"GetComments",1,[],!0,!1,null,4)},oe.prototype.getContentControls=function(e){return b("Body.getContentControls",u,"1.5",l),p(a.ContentControlCollection,this,"GetContentControls",1,[e],!0,!1,null,4)},oe.prototype.getHtml=function(){return d(this,"GetHtml",1,[],4,0)},oe.prototype.getOoxml=function(){return d(this,"GetOoxml",1,[],4,0)},oe.prototype.getRange=function(e){return b("Body.getRange",u,"1.3",l),p(a.Range,this,"GetRange",1,[e],!1,!1,null,4)},oe.prototype.getReviewedText=function(e){return b("Body.getReviewedText",u,"1.4",l),d(this,"GetReviewedText",1,[e],4,0)},oe.prototype.getTrackedChanges=function(){return b("Body.getTrackedChanges",u,"1.6",l),p(a.TrackedChangeCollection,this,"GetTrackedChanges",1,[],!0,!1,null,4)},oe.prototype.insertBreak=function(e,t){d(this,"InsertBreak",0,[e,t],0,0)},oe.prototype.insertContentControl=function(e){return p(a.ContentControl,this,"InsertContentControl",0,[e],!1,!0,null,0)},oe.prototype.insertFileFromBase64=function(e,t){return p(a.Range,this,"InsertFileFromBase64",0,[e,t],!1,!0,null,0)},oe.prototype.insertHtml=function(e,t){return p(a.Range,this,"InsertHtml",0,[e,t],!1,!0,null,0)},oe.prototype.insertInlinePictureFromBase64=function(e,t){return b("Body.insertInlinePictureFromBase64",u,"1.2",l),p(a.InlinePicture,this,"InsertInlinePictureFromBase64",0,[e,t],!1,!0,null,0)},oe.prototype.insertOoxml=function(e,t){return p(a.Range,this,"InsertOoxml",0,[e,t],!1,!0,null,0)},oe.prototype.insertParagraph=function(e,t){return p(a.Paragraph,this,"InsertParagraph",0,[e,t],!1,!0,null,0)},oe.prototype.insertTable=function(e,t,n,r){return b("Body.insertTable",u,"1.3",l),p(a.Table,this,"InsertTable",0,[e,t,n,r],!1,!0,null,0)},oe.prototype.insertText=function(e,t){return p(a.Range,this,"InsertText",0,[e,t],!1,!0,null,0)},oe.prototype.search=function(e,t){var n=J.Body_Search(this,e,t),r=n.handled,i=n.result;return r?i:p(a.RangeCollection,this,"Search",1,[e,t],!0,!1,null,4)},oe.prototype.select=function(e){d(this,"Select",1,[e],4,0)},oe.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},oe.prototype._Search2=function(e,t){return p(a.RangeCollection,this,"_Search2",1,[e,t],!0,!1,null,4)},oe.prototype._handleResult=function(e){if(ne.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Style)||(this._St=t.Style),m(t.StyleBuiltIn)||(this._Sty=t.StyleBuiltIn),m(t.Text)||(this._Te=t.Text),m(t.Type)||(this._Ty=t.Type),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["contentControls","ContentControls","endnotes","Endnotes","fields","Fields","font","Font","footnotes","Footnotes","inlinePictures","InlinePictures","lists","Lists","paragraphs","Paragraphs","parentBody","ParentBody","parentBodyOrNullObject","ParentBodyOrNullObject","parentContentControl","ParentContentControl","parentContentControlOrNullObject","ParentContentControlOrNullObject","parentSection","ParentSection","parentSectionOrNullObject","ParentSectionOrNullObject","shapes","Shapes","tables","Tables"])}},oe.prototype.load=function(e){return v(this,e)},oe.prototype.retrieve=function(e){return O(this,e)},oe.prototype._handleIdResult=function(e){ne.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},oe.prototype._handleRetrieveResult=function(e,t){ne.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},oe.prototype.track=function(){return this.context.trackedObjects.add(this),this},oe.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},oe.prototype.toJSON=function(){return C(this,{style:this._St,styleBuiltIn:this._Sty,text:this._Te,type:this._Ty},{contentControls:this._C,fields:this._F,font:this._Fo,inlinePictures:this._I,lists:this._L,paragraphs:this._P,shapes:this._S,tables:this._T})},oe.prototype.setMockData=function(e){T(this,e)},oe.prototype.ensureUnchanged=function(e){h(this,e)},oe);function oe(){return null!==ne&&ne.apply(this,arguments)||this}a.Body=ie;var ae=(se.prototype.getDocument=function(){return y(this._document)&&(this._document=this.context.document),this._document},se.prototype.getReferenceId=function(){return y(this._refId)&&(this._refId=this._ReferenceId),this._refId},se.prototype._RegisterCommentAddedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentAdded")},se.prototype._UnregisterCommentAddedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentAdded")},se.prototype._RegisterCommentDeletedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentDeleted")},se.prototype._UnregisterCommentDeletedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentDeleted")},se.prototype._RegisterCommentChangedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentChanged")},se.prototype._UnregisterCommentChangedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentChanged")},se.prototype._RegisterCommentSelectedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentSelected")},se.prototype._UnregisterCommentSelectedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentSelected")},se.prototype._RegisterCommentDeselectedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentDeselected")},se.prototype._UnregisterCommentDeselectedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentDeselected")},se);function se(){}a.BodyCustom=ae,OfficeExtension.Utility.applyMixin(ie,ae),(J=a._CC||(a._CC={})).Body_Search=function(e,t,n){var r;if(s()){var i=c(n);r=e._Search2(t,i)}else n=o(e.context,n),r=p(a.RangeCollection,e,"Search",1,[t,n],!0,!1,null,4);return{handled:!0,result:r}};var ce,le="Border",ue=(ce=OfficeExtension.ClientObject,__extends(pe,ce),Object.defineProperty(pe.prototype,"_className",{get:function(){return"Border"},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","color","type","width","visible","location"]},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Color","Type","Width","Visible","Location"]},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"color",{get:function(){return _("color",this._C,le,this._isNull),this._C},set:function(e){this._C=e,g(this,"Color",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"location",{get:function(){return _("location",this._L,le,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"type",{get:function(){return _("type",this._T,le,this._isNull),this._T},set:function(e){this._T=e,g(this,"Type",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"visible",{get:function(){return _("visible",this._V,le,this._isNull),this._V},set:function(e){this._V=e,g(this,"Visible",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"width",{get:function(){return _("width",this._W,le,this._isNull),this._W},set:function(e){this._W=e,g(this,"Width",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,le,this._isNull),this.__R},enumerable:!0,configurable:!0}),pe.prototype.set=function(e,t){this._recursivelySet(e,t,["color","type","width","visible"],[],[])},pe.prototype.update=function(e){this._recursivelyUpdate(e)},pe.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},pe.prototype._handleResult=function(e){if(ce.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Color)||(this._C=t.Color),m(t.Location)||(this._L=t.Location),m(t.Type)||(this._T=t.Type),m(t.Visible)||(this._V=t.Visible),m(t.Width)||(this._W=t.Width),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},pe.prototype.load=function(e){return v(this,e)},pe.prototype.retrieve=function(e){return O(this,e)},pe.prototype._handleIdResult=function(e){ce.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},pe.prototype._handleRetrieveResult=function(e,t){ce.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},pe.prototype.track=function(){return this.context.trackedObjects.add(this),this},pe.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},pe.prototype.toJSON=function(){return C(this,{color:this._C,location:this._L,type:this._T,visible:this._V,width:this._W},{})},pe.prototype.setMockData=function(e){T(this,e)},pe.prototype.ensureUnchanged=function(e){h(this,e)},pe);function pe(){return null!==ce&&ce.apply(this,arguments)||this}a.Border=ue;var fe,de="BorderUniversal",he=(fe=OfficeExtension.ClientObject,__extends(ge,fe),Object.defineProperty(ge.prototype,"_className",{get:function(){return"BorderUniversal"},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","isVisible","artStyle","artWidth","color","colorIndex","inside","lineStyle","lineWidth"]},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","IsVisible","ArtStyle","ArtWidth","Color","ColorIndex","Inside","LineStyle","LineWidth"]},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!1,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"artStyle",{get:function(){return _("artStyle",this._A,de,this._isNull),this._A},set:function(e){this._A=e,g(this,"ArtStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"artWidth",{get:function(){return _("artWidth",this._Ar,de,this._isNull),this._Ar},set:function(e){this._Ar=e,g(this,"ArtWidth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"color",{get:function(){return _("color",this._C,de,this._isNull),this._C},set:function(e){this._C=e,g(this,"Color",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"colorIndex",{get:function(){return _("colorIndex",this._Co,de,this._isNull),this._Co},set:function(e){this._Co=e,g(this,"ColorIndex",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"inside",{get:function(){return _("inside",this._I,de,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"isVisible",{get:function(){return _("isVisible",this._Is,de,this._isNull),this._Is},set:function(e){this._Is=e,g(this,"IsVisible",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"lineStyle",{get:function(){return _("lineStyle",this._L,de,this._isNull),this._L},set:function(e){this._L=e,g(this,"LineStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"lineWidth",{get:function(){return _("lineWidth",this._Li,de,this._isNull),this._Li},set:function(e){this._Li=e,g(this,"LineWidth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,de,this._isNull),this.__R},enumerable:!0,configurable:!0}),ge.prototype.set=function(e,t){this._recursivelySet(e,t,["isVisible","artStyle","artWidth","color","colorIndex","lineStyle","lineWidth"],[],[])},ge.prototype.update=function(e){this._recursivelyUpdate(e)},ge.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},ge.prototype._handleResult=function(e){if(fe.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.ArtStyle)||(this._A=t.ArtStyle),m(t.ArtWidth)||(this._Ar=t.ArtWidth),m(t.Color)||(this._C=t.Color),m(t.ColorIndex)||(this._Co=t.ColorIndex),m(t.Inside)||(this._I=t.Inside),m(t.IsVisible)||(this._Is=t.IsVisible),m(t.LineStyle)||(this._L=t.LineStyle),m(t.LineWidth)||(this._Li=t.LineWidth),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},ge.prototype.load=function(e){return v(this,e)},ge.prototype.retrieve=function(e){return O(this,e)},ge.prototype._handleIdResult=function(e){fe.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},ge.prototype._handleRetrieveResult=function(e,t){fe.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},ge.prototype.track=function(){return this.context.trackedObjects.add(this),this},ge.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ge.prototype.toJSON=function(){return C(this,{artStyle:this._A,artWidth:this._Ar,color:this._C,colorIndex:this._Co,inside:this._I,isVisible:this._Is,lineStyle:this._L,lineWidth:this._Li},{})},ge.prototype.setMockData=function(e){T(this,e)},ge.prototype.ensureUnchanged=function(e){h(this,e)},ge);function ge(){return null!==fe&&fe.apply(this,arguments)||this}a.BorderUniversal=he;var ye,me="BorderCollection",_e=(ye=OfficeExtension.ClientObject,__extends(be,ye),Object.defineProperty(be.prototype,"_className",{get:function(){return"BorderCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"_scalarPropertyNames",{get:function(){return["insideBorderColor","insideBorderType","insideBorderWidth","outsideBorderColor","outsideBorderType","outsideBorderWidth","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"_scalarPropertyOriginalNames",{get:function(){return["InsideBorderColor","InsideBorderType","InsideBorderWidth","OutsideBorderColor","OutsideBorderType","OutsideBorderWidth","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"items",{get:function(){return _("items",this.m__items,me,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"insideBorderColor",{get:function(){return _("insideBorderColor",this._I,me,this._isNull),this._I},set:function(e){this._I=e,g(this,"InsideBorderColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"insideBorderType",{get:function(){return _("insideBorderType",this._In,me,this._isNull),this._In},set:function(e){this._In=e,g(this,"InsideBorderType",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"insideBorderWidth",{get:function(){return _("insideBorderWidth",this._Ins,me,this._isNull),this._Ins},set:function(e){this._Ins=e,g(this,"InsideBorderWidth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"outsideBorderColor",{get:function(){return _("outsideBorderColor",this._O,me,this._isNull),this._O},set:function(e){this._O=e,g(this,"OutsideBorderColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"outsideBorderType",{get:function(){return _("outsideBorderType",this._Ou,me,this._isNull),this._Ou},set:function(e){this._Ou=e,g(this,"OutsideBorderType",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"outsideBorderWidth",{get:function(){return _("outsideBorderWidth",this._Out,me,this._isNull),this._Out},set:function(e){this._Out=e,g(this,"OutsideBorderWidth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,me,this._isNull),this.__R},enumerable:!0,configurable:!0}),be.prototype.getByLocation=function(e){return p(a.Border,this,"GetByLocation",1,[e],!1,!1,null,4)},be.prototype.getFirst=function(){return p(a.Border,this,"GetFirst",1,[],!1,!1,null,4)},be.prototype.getFirstOrNullObject=function(){return p(a.Border,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},be.prototype.getItem=function(e){return r(a.Border,this,[e])},be.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},be.prototype._handleResult=function(e){if(ye.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t.InsideBorderColor)||(this._I=t.InsideBorderColor),m(t.InsideBorderType)||(this._In=t.InsideBorderType),m(t.InsideBorderWidth)||(this._Ins=t.InsideBorderWidth),m(t.OutsideBorderColor)||(this._O=t.OutsideBorderColor),m(t.OutsideBorderType)||(this._Ou=t.OutsideBorderType),m(t.OutsideBorderWidth)||(this._Out=t.OutsideBorderWidth),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Border,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},be.prototype.load=function(e){return v(this,e)},be.prototype.retrieve=function(e){return O(this,e)},be.prototype._handleIdResult=function(e){ye.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},be.prototype._handleRetrieveResult=function(e,t){var n=this;ye.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.Border,!0,n,e,t)})},be.prototype.track=function(){return this.context.trackedObjects.add(this),this},be.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},be.prototype.toJSON=function(){return C(this,{insideBorderColor:this._I,insideBorderType:this._In,insideBorderWidth:this._Ins,outsideBorderColor:this._O,outsideBorderType:this._Ou,outsideBorderWidth:this._Out},{},this.m__items)},be.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.Border,!0,n,e,t)},function(e){return n.m__items=e})},be);function be(){return null!==ye&&ye.apply(this,arguments)||this}a.BorderCollection=_e;var ve,Oe="BorderUniversalCollection",Ce=(ve=OfficeExtension.ClientObject,__extends(Pe,ve),Object.defineProperty(Pe.prototype,"_className",{get:function(){return"BorderUniversalCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"items",{get:function(){return _("items",this.m__items,Oe,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Oe,this._isNull),this.__R},enumerable:!0,configurable:!0}),Pe.prototype.applyPageBordersToAllSections=function(){d(this,"ApplyPageBordersToAllSections",0,[],0,0)},Pe.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Pe.prototype._handleResult=function(e){if(ve.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.BorderUniversal,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Pe.prototype.load=function(e){return v(this,e)},Pe.prototype.retrieve=function(e){return O(this,e)},Pe.prototype._handleIdResult=function(e){ve.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Pe.prototype._handleRetrieveResult=function(e,t){var n=this;ve.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.BorderUniversal,!1,n,e,t)})},Pe.prototype.track=function(){return this.context.trackedObjects.add(this),this},Pe.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Pe.prototype.toJSON=function(){return C(this,{},{},this.m__items)},Pe.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.BorderUniversal,!1,n,e,t)},function(e){return n.m__items=e})},Pe);function Pe(){return null!==ve&&ve.apply(this,arguments)||this}a.BorderUniversalCollection=Ce;var Re,Se=(Re=OfficeExtension.ClientObject,__extends(Ie,Re),Object.defineProperty(Ie.prototype,"_className",{get:function(){return"Break"},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","pageIndex"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","PageIndex"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"_navigationPropertyNames",{get:function(){return["range"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"range",{get:function(){return this._R||(this._R=t(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"pageIndex",{get:function(){return _("pageIndex",this._P,"Break",this._isNull),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,"Break",this._isNull),this.__R},enumerable:!0,configurable:!0}),Ie.prototype.set=function(e,t){this._recursivelySet(e,t,[],["range"],[])},Ie.prototype.update=function(e){this._recursivelyUpdate(e)},Ie.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Ie.prototype._handleResult=function(e){if(Re.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.PageIndex)||(this._P=t.PageIndex),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["range","Range"])}},Ie.prototype.load=function(e){return v(this,e)},Ie.prototype.retrieve=function(e){return O(this,e)},Ie.prototype._handleIdResult=function(e){Re.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Ie.prototype._handleRetrieveResult=function(e,t){Re.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Ie.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ie.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ie.prototype.toJSON=function(){return C(this,{pageIndex:this._P},{range:this._R})},Ie.prototype.setMockData=function(e){T(this,e)},Ie.prototype.ensureUnchanged=function(e){h(this,e)},Ie);function Ie(){return null!==Re&&Re.apply(this,arguments)||this}a.Break=Se;var Te,Ae="BreakCollection",Ne=(Te=OfficeExtension.ClientObject,__extends(xe,Te),Object.defineProperty(xe.prototype,"_className",{get:function(){return"BreakCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(xe.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(xe.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(xe.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(xe.prototype,"items",{get:function(){return _("items",this.m__items,Ae,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(xe.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Ae,this._isNull),this.__R},enumerable:!0,configurable:!0}),xe.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},xe.prototype._handleResult=function(e){if(Te.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Break,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},xe.prototype.load=function(e){return v(this,e)},xe.prototype.retrieve=function(e){return O(this,e)},xe.prototype._handleIdResult=function(e){Te.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},xe.prototype._handleRetrieveResult=function(e,t){var n=this;Te.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.Break,!1,n,e,t)})},xe.prototype.track=function(){return this.context.trackedObjects.add(this),this},xe.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},xe.prototype.toJSON=function(){return C(this,{},{},this.m__items)},xe.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.Break,!1,n,e,t)},function(e){return n.m__items=e})},xe);function xe(){return null!==Te&&Te.apply(this,arguments)||this}a.BreakCollection=Ne;var Ee,De="BuildingBlock",je=(Ee=OfficeExtension.ClientObject,__extends(we,Ee),Object.defineProperty(we.prototype,"_className",{get:function(){return"BuildingBlock"},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","index","name","description","id","value","insertType"]},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Index","Name","Description","Id","Value","InsertType"]},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!0,!1,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"_navigationPropertyNames",{get:function(){return["type","category"]},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"category",{get:function(){return this._C||(this._C=t(a.BuildingBlockCategory,this,"Category",!1,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"type",{get:function(){return this._T||(this._T=t(a.BuildingBlockTypeItem,this,"Type",!1,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"description",{get:function(){return _("description",this._D,De,this._isNull),this._D},set:function(e){this._D=e,g(this,"Description",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"id",{get:function(){return _("id",this._I,De,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"index",{get:function(){return _("index",this._In,De,this._isNull),this._In},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"insertType",{get:function(){return _("insertType",this._Ins,De,this._isNull),this._Ins},set:function(e){this._Ins=e,g(this,"InsertType",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"name",{get:function(){return _("name",this._N,De,this._isNull),this._N},set:function(e){this._N=e,g(this,"Name",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"value",{get:function(){return _("value",this._V,De,this._isNull),this._V},set:function(e){this._V=e,g(this,"Value",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,De,this._isNull),this.__R},enumerable:!0,configurable:!0}),we.prototype.set=function(e,t){this._recursivelySet(e,t,["name","description","value","insertType"],[],["category","type"])},we.prototype.update=function(e){this._recursivelyUpdate(e)},we.prototype.delete=function(){d(this,"Delete",0,[],0,0)},we.prototype.insert=function(e,t){return p(a.Range,this,"Insert",0,[e,t],!1,!1,null,0)},we.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},we.prototype._handleResult=function(e){if(Ee.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Description)||(this._D=t.Description),m(t.Id)||(this._I=t.Id),m(t.Index)||(this._In=t.Index),m(t.InsertType)||(this._Ins=t.InsertType),m(t.Name)||(this._N=t.Name),m(t.Value)||(this._V=t.Value),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["category","Category","type","Type"])}},we.prototype.load=function(e){return v(this,e)},we.prototype.retrieve=function(e){return O(this,e)},we.prototype._handleIdResult=function(e){Ee.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e.Id)||(this._I=e.Id))},we.prototype._handleRetrieveResult=function(e,t){Ee.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},we.prototype.track=function(){return this.context.trackedObjects.add(this),this},we.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},we.prototype.toJSON=function(){return C(this,{description:this._D,id:this._I,index:this._In,insertType:this._Ins,name:this._N,value:this._V},{})},we.prototype.setMockData=function(e){T(this,e)},we.prototype.ensureUnchanged=function(e){h(this,e)},we);function we(){return null!==Ee&&Ee.apply(this,arguments)||this}a.BuildingBlock=je;var ke,Fe=(ke=OfficeExtension.ClientObject,__extends(Le,ke),Object.defineProperty(Le.prototype,"_className",{get:function(){return"BuildingBlockCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,"BuildingBlockCollection",this._isNull),this.__R},enumerable:!0,configurable:!0}),Le.prototype.add=function(e,t,n,r){return p(a.BuildingBlock,this,"Add",0,[e,t,n,r],!1,!0,null,0)},Le.prototype.getCount=function(){return d(this,"GetCount",1,[],4,0)},Le.prototype.getItemAt=function(e){return p(a.BuildingBlock,this,"GetItemAt",1,[e],!1,!1,null,4)},Le.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Le.prototype._handleResult=function(e){if(ke.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},Le.prototype.load=function(e){return v(this,e)},Le.prototype._handleIdResult=function(e){ke.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Le.prototype._handleRetrieveResult=function(e,t){ke.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Le.prototype.track=function(){return this.context.trackedObjects.add(this),this},Le.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Le.prototype.toJSON=function(){return C(this,{},{})},Le);function Le(){return null!==ke&&ke.apply(this,arguments)||this}a.BuildingBlockCollection=Fe;var Me,Be=(Me=OfficeExtension.ClientObject,__extends(He,Me),Object.defineProperty(He.prototype,"_className",{get:function(){return"BuildingBlockEntryCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,"BuildingBlockEntryCollection",this._isNull),this.__R},enumerable:!0,configurable:!0}),He.prototype.add=function(e,t,n,r,i,o){return p(a.BuildingBlock,this,"Add",0,[e,t,n,r,i,o],!1,!0,null,0)},He.prototype.getCount=function(){return d(this,"GetCount",1,[],4,0)},He.prototype.getItemAt=function(e){return p(a.BuildingBlock,this,"GetItemAt",1,[e],!1,!1,null,4)},He.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},He.prototype._handleResult=function(e){if(Me.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},He.prototype.load=function(e){return v(this,e)},He.prototype._handleIdResult=function(e){Me.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},He.prototype._handleRetrieveResult=function(e,t){Me.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},He.prototype.track=function(){return this.context.trackedObjects.add(this),this},He.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},He.prototype.toJSON=function(){return C(this,{},{})},He);function He(){return null!==Me&&Me.apply(this,arguments)||this}a.BuildingBlockEntryCollection=Be;var Ue,We="BuildingBlockCategory",Ge=(Ue=OfficeExtension.ClientObject,__extends(Ve,Ue),Object.defineProperty(Ve.prototype,"_className",{get:function(){return"BuildingBlockCategory"},enumerable:!0,configurable:!0}),Object.defineProperty(Ve.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","index","name"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ve.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Index","Name"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ve.prototype,"_navigationPropertyNames",{get:function(){return["buildingBlocks","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ve.prototype,"buildingBlocks",{get:function(){return this._B||(this._B=t(a.BuildingBlockCollection,this,"BuildingBlocks",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(Ve.prototype,"type",{get:function(){return this._T||(this._T=t(a.BuildingBlockTypeItem,this,"Type",!1,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(Ve.prototype,"index",{get:function(){return _("index",this._I,We,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(Ve.prototype,"name",{get:function(){return _("name",this._N,We,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(Ve.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,We,this._isNull),this.__R},enumerable:!0,configurable:!0}),Ve.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Ve.prototype._handleResult=function(e){if(Ue.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Index)||(this._I=t.Index),m(t.Name)||(this._N=t.Name),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["buildingBlocks","BuildingBlocks","type","Type"])}},Ve.prototype.load=function(e){return v(this,e)},Ve.prototype.retrieve=function(e){return O(this,e)},Ve.prototype._handleIdResult=function(e){Ue.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Ve.prototype._handleRetrieveResult=function(e,t){Ue.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Ve.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ve.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ve.prototype.toJSON=function(){return C(this,{index:this._I,name:this._N},{})},Ve.prototype.setMockData=function(e){T(this,e)},Ve.prototype.ensureUnchanged=function(e){h(this,e)},Ve);function Ve(){return null!==Ue&&Ue.apply(this,arguments)||this}a.BuildingBlockCategory=Ge;var qe,ze=(qe=OfficeExtension.ClientObject,__extends(Ke,qe),Object.defineProperty(Ke.prototype,"_className",{get:function(){return"BuildingBlockCategoryCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Ke.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ke.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ke.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,"BuildingBlockCategoryCollection",this._isNull),this.__R},enumerable:!0,configurable:!0}),Ke.prototype.getCount=function(){return d(this,"GetCount",1,[],4,0)},Ke.prototype.getItemAt=function(e){return p(a.BuildingBlockCategory,this,"GetItemAt",1,[e],!1,!1,null,4)},Ke.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Ke.prototype._handleResult=function(e){if(qe.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},Ke.prototype.load=function(e){return v(this,e)},Ke.prototype._handleIdResult=function(e){qe.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Ke.prototype._handleRetrieveResult=function(e,t){qe.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Ke.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ke.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ke.prototype.toJSON=function(){return C(this,{},{})},Ke);function Ke(){return null!==qe&&qe.apply(this,arguments)||this}a.BuildingBlockCategoryCollection=ze;var Je,Xe="BuildingBlockTypeItem",Qe=(Je=OfficeExtension.ClientObject,__extends(Ye,Je),Object.defineProperty(Ye.prototype,"_className",{get:function(){return"BuildingBlockTypeItem"},enumerable:!0,configurable:!0}),Object.defineProperty(Ye.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","index","name"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ye.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Index","Name"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ye.prototype,"_navigationPropertyNames",{get:function(){return["categories"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ye.prototype,"categories",{get:function(){return this._C||(this._C=t(a.BuildingBlockCategoryCollection,this,"Categories",!1,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(Ye.prototype,"index",{get:function(){return _("index",this._I,Xe,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(Ye.prototype,"name",{get:function(){return _("name",this._N,Xe,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(Ye.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Xe,this._isNull),this.__R},enumerable:!0,configurable:!0}),Ye.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Ye.prototype._handleResult=function(e){if(Je.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Index)||(this._I=t.Index),m(t.Name)||(this._N=t.Name),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["categories","Categories"])}},Ye.prototype.load=function(e){return v(this,e)},Ye.prototype.retrieve=function(e){return O(this,e)},Ye.prototype._handleIdResult=function(e){Je.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Ye.prototype._handleRetrieveResult=function(e,t){Je.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Ye.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ye.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ye.prototype.toJSON=function(){return C(this,{index:this._I,name:this._N},{})},Ye.prototype.setMockData=function(e){T(this,e)},Ye.prototype.ensureUnchanged=function(e){h(this,e)},Ye);function Ye(){return null!==Je&&Je.apply(this,arguments)||this}a.BuildingBlockTypeItem=Qe;var Ze,$e=(Ze=OfficeExtension.ClientObject,__extends(et,Ze),Object.defineProperty(et.prototype,"_className",{get:function(){return"BuildingBlockTypeItemCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(et.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(et.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(et.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,"BuildingBlockTypeItemCollection",this._isNull),this.__R},enumerable:!0,configurable:!0}),et.prototype.getByType=function(e){return p(a.BuildingBlockTypeItem,this,"GetByType",1,[e],!1,!1,null,4)},et.prototype.getCount=function(){return d(this,"GetCount",1,[],4,0)},et.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},et.prototype._handleResult=function(e){if(Ze.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},et.prototype.load=function(e){return v(this,e)},et.prototype._handleIdResult=function(e){Ze.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},et.prototype._handleRetrieveResult=function(e,t){Ze.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},et.prototype.track=function(){return this.context.trackedObjects.add(this),this},et.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},et.prototype.toJSON=function(){return C(this,{},{})},et);function et(){return null!==Ze&&Ze.apply(this,arguments)||this}a.BuildingBlockTypeItemCollection=$e;var tt,nt="CheckboxContentControl",rt=(tt=OfficeExtension.ClientObject,__extends(it,tt),Object.defineProperty(it.prototype,"_className",{get:function(){return"CheckboxContentControl"},enumerable:!0,configurable:!0}),Object.defineProperty(it.prototype,"_scalarPropertyNames",{get:function(){return["isChecked","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(it.prototype,"_scalarPropertyOriginalNames",{get:function(){return["IsChecked","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(it.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(it.prototype,"isChecked",{get:function(){return _("isChecked",this._I,nt,this._isNull),this._I},set:function(e){this._I=e,g(this,"IsChecked",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(it.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,nt,this._isNull),this.__R},enumerable:!0,configurable:!0}),it.prototype.set=function(e,t){this._recursivelySet(e,t,["isChecked"],[],[])},it.prototype.update=function(e){this._recursivelyUpdate(e)},it.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},it.prototype._handleResult=function(e){if(tt.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.IsChecked)||(this._I=t.IsChecked),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},it.prototype.load=function(e){return v(this,e)},it.prototype.retrieve=function(e){return O(this,e)},it.prototype._handleIdResult=function(e){tt.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},it.prototype._handleRetrieveResult=function(e,t){tt.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},it.prototype.track=function(){return this.context.trackedObjects.add(this),this},it.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},it.prototype.toJSON=function(){return C(this,{isChecked:this._I},{})},it.prototype.setMockData=function(e){T(this,e)},it.prototype.ensureUnchanged=function(e){h(this,e)},it);function it(){return null!==tt&&tt.apply(this,arguments)||this}a.CheckboxContentControl=rt;var ot,at="Comment",st=(ot=OfficeExtension.ClientObject,__extends(ct,ot),Object.defineProperty(ct.prototype,"_className",{get:function(){return"Comment"},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"_scalarPropertyNames",{get:function(){return["authorEmail","authorName","content","creationDate","id","_ReferenceId","resolved"]},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"_scalarPropertyOriginalNames",{get:function(){return["AuthorEmail","AuthorName","Content","CreationDate","Id","_ReferenceId","Resolved"]},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!1,!1,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"_navigationPropertyNames",{get:function(){return["replies","contentRange"]},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"contentRange",{get:function(){return this._Co||(this._Co=t(a.CommentContentRange,this,"ContentRange",!1,4)),this._Co},set:function(e){this._Co=e,g(this,"ContentRange",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"replies",{get:function(){return this._R||(this._R=t(a.CommentReplyCollection,this,"Replies",!0,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"authorEmail",{get:function(){return _("authorEmail",this._A,at,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"authorName",{get:function(){return _("authorName",this._Au,at,this._isNull),this._Au},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"content",{get:function(){return _("content",this._C,at,this._isNull),this._C},set:function(e){this._C=e,g(this,"Content",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"creationDate",{get:function(){return _("creationDate",this._Cr,at,this._isNull),this._Cr},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"id",{get:function(){return _("id",this._I,at,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"resolved",{get:function(){return _("resolved",this._Re,at,this._isNull),this._Re},set:function(e){this._Re=e,g(this,"Resolved",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,at,this._isNull),this.__R},enumerable:!0,configurable:!0}),ct.prototype.set=function(e,t){this._recursivelySet(e,t,["content","resolved"],["contentRange"],["replies"])},ct.prototype.update=function(e){this._recursivelyUpdate(e)},ct.prototype.delete=function(){d(this,"Delete",0,[],0,0)},ct.prototype.getRange=function(){return p(a.Range,this,"GetRange",0,[],!1,!1,null,0)},ct.prototype.reply=function(e){return p(a.CommentReply,this,"Reply",0,[e],!1,!1,null,0)},ct.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},ct.prototype._handleResult=function(e){if(ot.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.AuthorEmail)||(this._A=t.AuthorEmail),m(t.AuthorName)||(this._Au=t.AuthorName),m(t.Content)||(this._C=t.Content),m(t.CreationDate)||(this._Cr=S(t.CreationDate)),m(t.Id)||(this._I=t.Id),m(t.Resolved)||(this._Re=t.Resolved),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["contentRange","ContentRange","replies","Replies"])}},ct.prototype.load=function(e){return v(this,e)},ct.prototype.retrieve=function(e){return O(this,e)},ct.prototype._handleIdResult=function(e){ot.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e.Id)||(this._I=e.Id))},ct.prototype._handleRetrieveResult=function(e,t){if(ot.prototype._handleRetrieveResult.call(this,e,t),!y(e)){var n=e;m(n.CreationDate)||(n.creationDate=S(n.creationDate)),I(this,e,t)}},ct.prototype.track=function(){return this.context.trackedObjects.add(this),this},ct.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ct.prototype.toJSON=function(){return C(this,{authorEmail:this._A,authorName:this._Au,content:this._C,creationDate:this._Cr,id:this._I,resolved:this._Re},{contentRange:this._Co,replies:this._R})},ct.prototype.setMockData=function(e){T(this,e)},ct.prototype.ensureUnchanged=function(e){h(this,e)},ct);function ct(){return null!==ot&&ot.apply(this,arguments)||this}a.Comment=st;var lt,ut="CommentCollection",pt=(lt=OfficeExtension.ClientObject,__extends(ft,lt),Object.defineProperty(ft.prototype,"_className",{get:function(){return"CommentCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(ft.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(ft.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ft.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ft.prototype,"items",{get:function(){return _("items",this.m__items,ut,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(ft.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,ut,this._isNull),this.__R},enumerable:!0,configurable:!0}),ft.prototype.getFirst=function(){return p(a.Comment,this,"GetFirst",1,[],!1,!1,null,4)},ft.prototype.getFirstOrNullObject=function(){return p(a.Comment,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},ft.prototype._GetItem=function(e){return r(a.Comment,this,[e])},ft.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},ft.prototype._handleResult=function(e){if(lt.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Comment,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},ft.prototype.load=function(e){return v(this,e)},ft.prototype.retrieve=function(e){return O(this,e)},ft.prototype._handleIdResult=function(e){lt.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},ft.prototype._handleRetrieveResult=function(e,t){var n=this;lt.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.Comment,!0,n,e,t)})},ft.prototype.track=function(){return this.context.trackedObjects.add(this),this},ft.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ft.prototype.toJSON=function(){return C(this,{},{},this.m__items)},ft.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.Comment,!0,n,e,t)},function(e){return n.m__items=e})},ft);function ft(){return null!==lt&&lt.apply(this,arguments)||this}a.CommentCollection=pt;var dt,ht="CommentContentRange",gt=(dt=OfficeExtension.ClientObject,__extends(yt,dt),Object.defineProperty(yt.prototype,"_className",{get:function(){return"CommentContentRange"},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","text","isEmpty","hyperlink","bold","italic","strikeThrough","underline"]},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Text","IsEmpty","Hyperlink","Bold","Italic","StrikeThrough","Underline"]},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!1,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"bold",{get:function(){return _("bold",this._B,ht,this._isNull),this._B},set:function(e){this._B=e,g(this,"Bold",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"hyperlink",{get:function(){return _("hyperlink",this._H,ht,this._isNull),this._H},set:function(e){this._H=e,g(this,"Hyperlink",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"isEmpty",{get:function(){return _("isEmpty",this._I,ht,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"italic",{get:function(){return _("italic",this._It,ht,this._isNull),this._It},set:function(e){this._It=e,g(this,"Italic",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"strikeThrough",{get:function(){return _("strikeThrough",this._S,ht,this._isNull),this._S},set:function(e){this._S=e,g(this,"StrikeThrough",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"text",{get:function(){return _("text",this._T,ht,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"underline",{get:function(){return _("underline",this._U,ht,this._isNull),this._U},set:function(e){this._U=e,g(this,"Underline",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,ht,this._isNull),this.__R},enumerable:!0,configurable:!0}),yt.prototype.set=function(e,t){this._recursivelySet(e,t,["hyperlink","bold","italic","strikeThrough","underline"],[],[])},yt.prototype.update=function(e){this._recursivelyUpdate(e)},yt.prototype.insertText=function(e,t){return p(a.CommentContentRange,this,"InsertText",0,[e,t],!1,!1,null,0)},yt.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},yt.prototype._handleResult=function(e){if(dt.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Bold)||(this._B=t.Bold),m(t.Hyperlink)||(this._H=t.Hyperlink),m(t.IsEmpty)||(this._I=t.IsEmpty),m(t.Italic)||(this._It=t.Italic),m(t.StrikeThrough)||(this._S=t.StrikeThrough),m(t.Text)||(this._T=t.Text),m(t.Underline)||(this._U=t.Underline),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},yt.prototype.load=function(e){return v(this,e)},yt.prototype.retrieve=function(e){return O(this,e)},yt.prototype._handleIdResult=function(e){dt.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},yt.prototype._handleRetrieveResult=function(e,t){dt.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},yt.prototype.track=function(){return this.context.trackedObjects.add(this),this},yt.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},yt.prototype.toJSON=function(){return C(this,{bold:this._B,hyperlink:this._H,isEmpty:this._I,italic:this._It,strikeThrough:this._S,text:this._T,underline:this._U},{})},yt.prototype.setMockData=function(e){T(this,e)},yt.prototype.ensureUnchanged=function(e){h(this,e)},yt);function yt(){return null!==dt&&dt.apply(this,arguments)||this}a.CommentContentRange=gt;var mt,_t="CommentReply",bt=(mt=OfficeExtension.ClientObject,__extends(vt,mt),Object.defineProperty(vt.prototype,"_className",{get:function(){return"CommentReply"},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"_scalarPropertyNames",{get:function(){return["authorEmail","authorName","content","creationDate","id","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"_scalarPropertyOriginalNames",{get:function(){return["AuthorEmail","AuthorName","Content","CreationDate","Id","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!1,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"_navigationPropertyNames",{get:function(){return["parentComment","contentRange"]},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"contentRange",{get:function(){return this._Co||(this._Co=t(a.CommentContentRange,this,"ContentRange",!1,4)),this._Co},set:function(e){this._Co=e,g(this,"ContentRange",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"parentComment",{get:function(){return this._P||(this._P=t(a.Comment,this,"ParentComment",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"authorEmail",{get:function(){return _("authorEmail",this._A,_t,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"authorName",{get:function(){return _("authorName",this._Au,_t,this._isNull),this._Au},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"content",{get:function(){return _("content",this._C,_t,this._isNull),this._C},set:function(e){this._C=e,g(this,"Content",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"creationDate",{get:function(){return _("creationDate",this._Cr,_t,this._isNull),this._Cr},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"id",{get:function(){return _("id",this._I,_t,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,_t,this._isNull),this.__R},enumerable:!0,configurable:!0}),vt.prototype.set=function(e,t){this._recursivelySet(e,t,["content"],["parentComment","contentRange"],[])},vt.prototype.update=function(e){this._recursivelyUpdate(e)},vt.prototype.delete=function(){d(this,"Delete",0,[],0,0)},vt.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},vt.prototype._handleResult=function(e){if(mt.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.AuthorEmail)||(this._A=t.AuthorEmail),m(t.AuthorName)||(this._Au=t.AuthorName),m(t.Content)||(this._C=t.Content),m(t.CreationDate)||(this._Cr=S(t.CreationDate)),m(t.Id)||(this._I=t.Id),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["contentRange","ContentRange","parentComment","ParentComment"])}},vt.prototype.load=function(e){return v(this,e)},vt.prototype.retrieve=function(e){return O(this,e)},vt.prototype._handleIdResult=function(e){mt.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e.Id)||(this._I=e.Id))},vt.prototype._handleRetrieveResult=function(e,t){if(mt.prototype._handleRetrieveResult.call(this,e,t),!y(e)){var n=e;m(n.CreationDate)||(n.creationDate=S(n.creationDate)),I(this,e,t)}},vt.prototype.track=function(){return this.context.trackedObjects.add(this),this},vt.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},vt.prototype.toJSON=function(){return C(this,{authorEmail:this._A,authorName:this._Au,content:this._C,creationDate:this._Cr,id:this._I},{contentRange:this._Co,parentComment:this._P})},vt.prototype.setMockData=function(e){T(this,e)},vt.prototype.ensureUnchanged=function(e){h(this,e)},vt);function vt(){return null!==mt&&mt.apply(this,arguments)||this}a.CommentReply=bt;var Ot,Ct="CommentReplyCollection",Pt=(Ot=OfficeExtension.ClientObject,__extends(Rt,Ot),Object.defineProperty(Rt.prototype,"_className",{get:function(){return"CommentReplyCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Rt.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Rt.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Rt.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Rt.prototype,"items",{get:function(){return _("items",this.m__items,Ct,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Rt.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Ct,this._isNull),this.__R},enumerable:!0,configurable:!0}),Rt.prototype.getFirst=function(){return p(a.CommentReply,this,"GetFirst",1,[],!1,!1,null,4)},Rt.prototype.getFirstOrNullObject=function(){return p(a.CommentReply,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},Rt.prototype._GetItem=function(e){return r(a.CommentReply,this,[e])},Rt.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Rt.prototype._handleResult=function(e){if(Ot.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.CommentReply,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Rt.prototype.load=function(e){return v(this,e)},Rt.prototype.retrieve=function(e){return O(this,e)},Rt.prototype._handleIdResult=function(e){Ot.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Rt.prototype._handleRetrieveResult=function(e,t){var n=this;Ot.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.CommentReply,!0,n,e,t)})},Rt.prototype.track=function(){return this.context.trackedObjects.add(this),this},Rt.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Rt.prototype.toJSON=function(){return C(this,{},{},this.m__items)},Rt.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.CommentReply,!0,n,e,t)},function(e){return n.m__items=e})},Rt);function Rt(){return null!==Ot&&Ot.apply(this,arguments)||this}a.CommentReplyCollection=Pt;var St,It="XmlMapping",Tt=(St=OfficeExtension.ClientObject,__extends(At,St),Object.defineProperty(At.prototype,"_className",{get:function(){return"XmlMapping"},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"_scalarPropertyNames",{get:function(){return["isMapped","xpath","prefixMappings","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"_scalarPropertyOriginalNames",{get:function(){return["IsMapped","XPath","PrefixMappings","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"_navigationPropertyNames",{get:function(){return["customXmlNode","customXmlPart"]},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"customXmlNode",{get:function(){return this._C||(this._C=t(a.CustomXmlNode,this,"CustomXmlNode",!1,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"customXmlPart",{get:function(){return this._Cu||(this._Cu=t(a.CustomXmlPart,this,"CustomXmlPart",!1,4)),this._Cu},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"isMapped",{get:function(){return _("isMapped",this._I,It,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"prefixMappings",{get:function(){return _("prefixMappings",this._P,It,this._isNull),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"xpath",{get:function(){return _("xpath",this._X,It,this._isNull),this._X},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,It,this._isNull),this.__R},enumerable:!0,configurable:!0}),At.prototype.set=function(e,t){this._recursivelySet(e,t,[],["customXmlNode","customXmlPart"],[])},At.prototype.update=function(e){this._recursivelyUpdate(e)},At.prototype.delete=function(){d(this,"Delete",0,[],0,0)},At.prototype.setMapping=function(e,t){return d(this,"SetMapping",0,[e,t],0,0)},At.prototype.setMappingByNode=function(e){return d(this,"SetMappingByNode",0,[e],0,0)},At.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},At.prototype._handleResult=function(e){if(St.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.IsMapped)||(this._I=t.IsMapped),m(t.PrefixMappings)||(this._P=t.PrefixMappings),m(t.XPath)||(this._X=t.XPath),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["customXmlNode","CustomXmlNode","customXmlPart","CustomXmlPart"])}},At.prototype.load=function(e){return v(this,e)},At.prototype.retrieve=function(e){return O(this,e)},At.prototype._handleIdResult=function(e){St.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},At.prototype._handleRetrieveResult=function(e,t){St.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},At.prototype.track=function(){return this.context.trackedObjects.add(this),this},At.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},At.prototype.toJSON=function(){return C(this,{isMapped:this._I,prefixMappings:this._P,xpath:this._X},{customXmlNode:this._C,customXmlPart:this._Cu})},At.prototype.setMockData=function(e){T(this,e)},At.prototype.ensureUnchanged=function(e){h(this,e)},At);function At(){return null!==St&&St.apply(this,arguments)||this}a.XmlMapping=Tt;function Nt(){}a.XmlMappingCustom=Nt,OfficeExtension.Utility.applyMixin(Tt,Nt);var xt,Et="CustomXmlPrefixMappingCollection",Dt=(xt=OfficeExtension.ClientObject,__extends(jt,xt),Object.defineProperty(jt.prototype,"_className",{get:function(){return"CustomXmlPrefixMappingCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"items",{get:function(){return _("items",this.m__items,Et,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Et,this._isNull),this.__R},enumerable:!0,configurable:!0}),jt.prototype.addNamespace=function(e,t){return d(this,"AddNamespace",0,[e,t],0,0)},jt.prototype.getCount=function(){return d(this,"GetCount",1,[],4,0)},jt.prototype.lookupNamespace=function(e){return d(this,"LookupNamespace",0,[e],0,0)},jt.prototype.lookupPrefix=function(e){return d(this,"LookupPrefix",0,[e],0,0)},jt.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},jt.prototype._handleResult=function(e){if(xt.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.CustomXmlPrefixMapping,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},jt.prototype.load=function(e){return v(this,e)},jt.prototype.retrieve=function(e){return O(this,e)},jt.prototype._handleIdResult=function(e){xt.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},jt.prototype._handleRetrieveResult=function(e,t){var n=this;xt.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.CustomXmlPrefixMapping,!1,n,e,t)})},jt.prototype.track=function(){return this.context.trackedObjects.add(this),this},jt.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},jt.prototype.toJSON=function(){return C(this,{},{},this.m__items)},jt.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.CustomXmlPrefixMapping,!1,n,e,t)},function(e){return n.m__items=e})},jt);function jt(){return null!==xt&&xt.apply(this,arguments)||this}a.CustomXmlPrefixMappingCollection=Dt;var wt,kt="CustomXmlPrefixMapping",Ft=(wt=OfficeExtension.ClientObject,__extends(Lt,wt),Object.defineProperty(Lt.prototype,"_className",{get:function(){return"CustomXmlPrefixMapping"},enumerable:!0,configurable:!0}),Object.defineProperty(Lt.prototype,"_scalarPropertyNames",{get:function(){return["prefix","namespaceUri","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Lt.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Prefix","NamespaceUri","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Lt.prototype,"namespaceUri",{get:function(){return _("namespaceUri",this._N,kt,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(Lt.prototype,"prefix",{get:function(){return _("prefix",this._P,kt,this._isNull),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(Lt.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,kt,this._isNull),this.__R},enumerable:!0,configurable:!0}),Lt.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Lt.prototype._handleResult=function(e){if(wt.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.NamespaceUri)||(this._N=t.NamespaceUri),m(t.Prefix)||(this._P=t.Prefix),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},Lt.prototype.load=function(e){return v(this,e)},Lt.prototype.retrieve=function(e){return O(this,e)},Lt.prototype._handleIdResult=function(e){wt.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Lt.prototype._handleRetrieveResult=function(e,t){wt.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Lt.prototype.track=function(){return this.context.trackedObjects.add(this),this},Lt.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Lt.prototype.toJSON=function(){return C(this,{namespaceUri:this._N,prefix:this._P},{})},Lt.prototype.setMockData=function(e){T(this,e)},Lt.prototype.ensureUnchanged=function(e){h(this,e)},Lt);function Lt(){return null!==wt&&wt.apply(this,arguments)||this}a.CustomXmlPrefixMapping=Ft;var Mt,Bt="CustomXmlSchema",Ht=(Mt=OfficeExtension.ClientObject,__extends(Ut,Mt),Object.defineProperty(Ut.prototype,"_className",{get:function(){return"CustomXmlSchema"},enumerable:!0,configurable:!0}),Object.defineProperty(Ut.prototype,"_scalarPropertyNames",{get:function(){return["location","namespaceUri","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ut.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Location","NamespaceUri","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ut.prototype,"location",{get:function(){return _("location",this._L,Bt,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(Ut.prototype,"namespaceUri",{get:function(){return _("namespaceUri",this._N,Bt,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(Ut.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Bt,this._isNull),this.__R},enumerable:!0,configurable:!0}),Ut.prototype.delete=function(){d(this,"Delete",0,[],0,0)},Ut.prototype.reload=function(){d(this,"Reload",0,[],0,0)},Ut.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Ut.prototype._handleResult=function(e){if(Mt.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Location)||(this._L=t.Location),m(t.NamespaceUri)||(this._N=t.NamespaceUri),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},Ut.prototype.load=function(e){return v(this,e)},Ut.prototype.retrieve=function(e){return O(this,e)},Ut.prototype._handleIdResult=function(e){Mt.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Ut.prototype._handleRetrieveResult=function(e,t){Mt.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Ut.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ut.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ut.prototype.toJSON=function(){return C(this,{location:this._L,namespaceUri:this._N},{})},Ut.prototype.setMockData=function(e){T(this,e)},Ut.prototype.ensureUnchanged=function(e){h(this,e)},Ut);function Ut(){return null!==Mt&&Mt.apply(this,arguments)||this}a.CustomXmlSchema=Ht;function Wt(){}a.CustomXmlSchemaCustom=Wt,OfficeExtension.Utility.applyMixin(Ht,Wt);var Gt,Vt="CustomXmlSchemaCollection",qt=(Gt=OfficeExtension.ClientObject,__extends(zt,Gt),Object.defineProperty(zt.prototype,"_className",{get:function(){return"CustomXmlSchemaCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(zt.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(zt.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(zt.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(zt.prototype,"items",{get:function(){return _("items",this.m__items,Vt,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(zt.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Vt,this._isNull),this.__R},enumerable:!0,configurable:!0}),zt.prototype.add=function(e){return p(a.CustomXmlSchema,this,"Add",0,[e],!1,!0,null,0)},zt.prototype.addCollection=function(e){return p(a.CustomXmlSchemaCollection,this,"AddCollection",0,[e],!0,!1,null,0)},zt.prototype.getCount=function(){return d(this,"GetCount",1,[],4,0)},zt.prototype.getItem=function(e){return r(a.CustomXmlSchema,this,[e])},zt.prototype.getNamespaceUri=function(){return d(this,"GetNamespaceUri",1,[],4,0)},zt.prototype.validate=function(){return d(this,"Validate",0,[],0,0)},zt.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},zt.prototype._handleResult=function(e){if(Gt.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.CustomXmlSchema,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},zt.prototype.load=function(e){return v(this,e)},zt.prototype.retrieve=function(e){return O(this,e)},zt.prototype._handleIdResult=function(e){Gt.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},zt.prototype._handleRetrieveResult=function(e,t){var n=this;Gt.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.CustomXmlSchema,!0,n,e,t)})},zt.prototype.track=function(){return this.context.trackedObjects.add(this),this},zt.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},zt.prototype.toJSON=function(){return C(this,{},{},this.m__items)},zt.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.CustomXmlSchema,!0,n,e,t)},function(e){return n.m__items=e})},zt);function zt(){return null!==Gt&&Gt.apply(this,arguments)||this}a.CustomXmlSchemaCollection=qt;function Kt(){}a.CustomXmlSchemaCollectionCustom=Kt,OfficeExtension.Utility.applyMixin(qt,Kt);var Jt,Xt="CustomXmlNodeCollection",Qt=(Jt=OfficeExtension.ClientObject,__extends(Yt,Jt),Object.defineProperty(Yt.prototype,"_className",{get:function(){return"CustomXmlNodeCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Yt.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Yt.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Yt.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Yt.prototype,"items",{get:function(){return _("items",this.m__items,Xt,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Yt.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Xt,this._isNull),this.__R},enumerable:!0,configurable:!0}),Yt.prototype.getCount=function(){return d(this,"GetCount",1,[],4,0)},Yt.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Yt.prototype._handleResult=function(e){if(Jt.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.CustomXmlNode,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Yt.prototype.load=function(e){return v(this,e)},Yt.prototype.retrieve=function(e){return O(this,e)},Yt.prototype._handleIdResult=function(e){Jt.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Yt.prototype._handleRetrieveResult=function(e,t){var n=this;Jt.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.CustomXmlNode,!1,n,e,t)})},Yt.prototype.track=function(){return this.context.trackedObjects.add(this),this},Yt.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Yt.prototype.toJSON=function(){return C(this,{},{},this.m__items)},Yt.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.CustomXmlNode,!1,n,e,t)},function(e){return n.m__items=e})},Yt);function Yt(){return null!==Jt&&Jt.apply(this,arguments)||this}a.CustomXmlNodeCollection=Qt;function Zt(){}a.CustomXmlNodeCollectionCustom=Zt,OfficeExtension.Utility.applyMixin(Qt,Zt);var $t,en="CustomXmlNode",tn=($t=OfficeExtension.ClientObject,__extends(nn,$t),Object.defineProperty(nn.prototype,"_className",{get:function(){return"CustomXmlNode"},enumerable:!0,configurable:!0}),Object.defineProperty(nn.prototype,"_scalarPropertyNames",{get:function(){return["baseName","namespaceUri","nodeType","nodeValue","text","xpath","xml","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(nn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["BaseName","NamespaceUri","NodeType","NodeValue","Text","XPath","Xml","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(nn.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!1,!0,!0,!1,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(nn.prototype,"_navigationPropertyNames",{get:function(){return["attributes","childNodes","firstChild","lastChild","nextSibling","ownerPart","previousSibling","parentNode"]},enumerable:!0,configurable:!0}),Object.defineProperty(nn.prototype,"attributes",{get:function(){return this._A||(this._A=t(a.CustomXmlNodeCollection,this,"Attributes",!0,4)),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(nn.prototype,"childNodes",{get:function(){return this._C||(this._C=t(a.CustomXmlNodeCollection,this,"ChildNodes",!0,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(nn.prototype,"firstChild",{get:function(){return this._F||(this._F=t(a.CustomXmlNode,this,"FirstChild",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(nn.prototype,"lastChild",{get:function(){return this._L||(this._L=t(a.CustomXmlNode,this,"LastChild",!1,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(nn.prototype,"nextSibling",{get:function(){return this._Ne||(this._Ne=t(a.CustomXmlNode,this,"NextSibling",!1,4)),this._Ne},enumerable:!0,configurable:!0}),Object.defineProperty(nn.prototype,"ownerPart",{get:function(){return this._O||(this._O=t(a.CustomXmlPart,this,"OwnerPart",!1,4)),this._O},enumerable:!0,configurable:!0}),Object.defineProperty(nn.prototype,"parentNode",{get:function(){return this._P||(this._P=t(a.CustomXmlNode,this,"ParentNode",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(nn.prototype,"previousSibling",{get:function(){return this._Pr||(this._Pr=t(a.CustomXmlNode,this,"PreviousSibling",!1,4)),this._Pr},enumerable:!0,configurable:!0}),Object.defineProperty(nn.prototype,"baseName",{get:function(){return _("baseName",this._B,en,this._isNull),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(nn.prototype,"namespaceUri",{get:function(){return _("namespaceUri",this._N,en,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(nn.prototype,"nodeType",{get:function(){return _("nodeType",this._No,en,this._isNull),this._No},enumerable:!0,configurable:!0}),Object.defineProperty(nn.prototype,"nodeValue",{get:function(){return _("nodeValue",this._Nod,en,this._isNull),this._Nod},set:function(e){this._Nod=e,g(this,"NodeValue",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(nn.prototype,"text",{get:function(){return _("text",this._T,en,this._isNull),this._T},set:function(e){this._T=e,g(this,"Text",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(nn.prototype,"xpath",{get:function(){return _("xpath",this._XP,en,this._isNull),this._XP},enumerable:!0,configurable:!0}),Object.defineProperty(nn.prototype,"xml",{get:function(){return _("xml",this._X,en,this._isNull),this._X},enumerable:!0,configurable:!0}),Object.defineProperty(nn.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,en,this._isNull),this.__R},enumerable:!0,configurable:!0}),nn.prototype.set=function(e,t){this._recursivelySet(e,t,["nodeValue","text"],["firstChild","lastChild","nextSibling","ownerPart","previousSibling","parentNode"],["attributes","childNodes"])},nn.prototype.update=function(e){this._recursivelyUpdate(e)},nn.prototype.appendChildNode=function(e){return d(this,"AppendChildNode",0,[e],0,0)},nn.prototype.appendChildSubtree=function(e){return d(this,"AppendChildSubtree",0,[e],0,0)},nn.prototype.delete=function(){d(this,"Delete",0,[],0,0)},nn.prototype.hasChildNodes=function(){return d(this,"HasChildNodes",0,[],0,0)},nn.prototype.insertNodeBefore=function(e){return d(this,"InsertNodeBefore",0,[e],0,0)},nn.prototype.insertSubtreeBefore=function(e,t){return d(this,"InsertSubtreeBefore",0,[e,t],0,0)},nn.prototype.removeChild=function(e){return d(this,"RemoveChild",0,[e],0,0)},nn.prototype.replaceChildNode=function(e,t){return d(this,"ReplaceChildNode",0,[e,t],0,0)},nn.prototype.replaceChildSubtree=function(e,t){return d(this,"ReplaceChildSubtree",0,[e,t],0,0)},nn.prototype.selectNodes=function(e){return p(a.CustomXmlNodeCollection,this,"SelectNodes",0,[e],!0,!1,null,0)},nn.prototype.selectSingleNode=function(e){return p(a.CustomXmlNode,this,"SelectSingleNode",0,[e],!1,!1,null,0)},nn.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},nn.prototype._handleResult=function(e){if($t.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.BaseName)||(this._B=t.BaseName),m(t.NamespaceUri)||(this._N=t.NamespaceUri),m(t.NodeType)||(this._No=t.NodeType),m(t.NodeValue)||(this._Nod=t.NodeValue),m(t.Text)||(this._T=t.Text),m(t.XPath)||(this._XP=t.XPath),m(t.Xml)||(this._X=t.Xml),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["attributes","Attributes","childNodes","ChildNodes","firstChild","FirstChild","lastChild","LastChild","nextSibling","NextSibling","ownerPart","OwnerPart","parentNode","ParentNode","previousSibling","PreviousSibling"])}},nn.prototype.load=function(e){return v(this,e)},nn.prototype.retrieve=function(e){return O(this,e)},nn.prototype._handleIdResult=function(e){$t.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},nn.prototype._handleRetrieveResult=function(e,t){$t.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},nn.prototype.track=function(){return this.context.trackedObjects.add(this),this},nn.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},nn.prototype.toJSON=function(){return C(this,{baseName:this._B,namespaceUri:this._N,nodeType:this._No,nodeValue:this._Nod,text:this._T,xml:this._X,xpath:this._XP},{attributes:this._A,childNodes:this._C,firstChild:this._F,lastChild:this._L,nextSibling:this._Ne,ownerPart:this._O,parentNode:this._P,previousSibling:this._Pr})},nn.prototype.setMockData=function(e){T(this,e)},nn.prototype.ensureUnchanged=function(e){h(this,e)},nn);function nn(){return null!==$t&&$t.apply(this,arguments)||this}a.CustomXmlNode=tn;function rn(){}a.CustomXmlNodeCustom=rn,OfficeExtension.Utility.applyMixin(tn,rn);var on,an="ContentControl",sn=(on=OfficeExtension.ClientObject,__extends(cn,on),Object.defineProperty(cn.prototype,"_className",{get:function(){return"ContentControl"},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"_scalarPropertyNames",{get:function(){return["id","_ReferenceId","title","tag","placeholderText","type","appearance","color","removeWhenEdited","cannotDelete","cannotEdit","style","text","subtype","styleBuiltIn"]},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","_ReferenceId","Title","Tag","PlaceholderText","Type","Appearance","Color","RemoveWhenEdited","CannotDelete","CannotEdit","Style","Text","Subtype","StyleBuiltIn"]},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"_navigationPropertyNames",{get:function(){return["font","paragraphs","contentControls","parentContentControl","inlinePictures","lists","tables","parentTableCell","parentTable","parentBody","parentContentControlOrNullObject","parentTableCellOrNullObject","parentTableOrNullObject","footnotes","endnotes","fields","checkboxContentControl","dropDownListContentControl","comboBoxContentControl","xmlMapping","datePickerContentControl","groupContentControl","pictureContentControl","repeatingSectionContentControl","buildingBlockGalleryContentControl"]},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"buildingBlockGalleryContentControl",{get:function(){return b("ContentControl.buildingBlockGalleryContentControl","WordApiDesktop","1.3",l),this._B||(this._B=t(a.BuildingBlockGalleryContentControl,this,"BuildingBlockGalleryContentControl",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"checkboxContentControl",{get:function(){return b("ContentControl.checkboxContentControl",u,"1.7",l),this._Ch||(this._Ch=t(a.CheckboxContentControl,this,"CheckboxContentControl",!1,4)),this._Ch},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"comboBoxContentControl",{get:function(){return b("ContentControl.comboBoxContentControl",u,"1.9",l),this._Com||(this._Com=t(a.ComboBoxContentControl,this,"ComboBoxContentControl",!1,4)),this._Com},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"contentControls",{get:function(){return this._Con||(this._Con=t(a.ContentControlCollection,this,"ContentControls",!0,4)),this._Con},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"datePickerContentControl",{get:function(){return b("ContentControl.datePickerContentControl","WordApiDesktop","1.3",l),this._D||(this._D=t(a.DatePickerContentControl,this,"DatePickerContentControl",!1,4)),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"dropDownListContentControl",{get:function(){return b("ContentControl.dropDownListContentControl",u,"1.9",l),this._Dr||(this._Dr=t(a.DropDownListContentControl,this,"DropDownListContentControl",!1,4)),this._Dr},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"endnotes",{get:function(){return b("ContentControl.endnotes",u,"1.5",l),this._E||(this._E=t(a.NoteItemCollection,this,"Endnotes",!0,4)),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"fields",{get:function(){return b("ContentControl.fields",u,"1.4",l),this._F||(this._F=t(a.FieldCollection,this,"Fields",!0,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"font",{get:function(){return this._Fo||(this._Fo=t(a.Font,this,"Font",!1,4)),this._Fo},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"footnotes",{get:function(){return b("ContentControl.footnotes",u,"1.5",l),this._Foo||(this._Foo=t(a.NoteItemCollection,this,"Footnotes",!0,4)),this._Foo},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"groupContentControl",{get:function(){return b("ContentControl.groupContentControl","WordApiDesktop","1.3",l),this._G||(this._G=t(a.GroupContentControl,this,"GroupContentControl",!1,4)),this._G},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"inlinePictures",{get:function(){return this._In||(this._In=t(a.InlinePictureCollection,this,"InlinePictures",!0,4)),this._In},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"lists",{get:function(){return b("ContentControl.lists",u,"1.3",l),this._L||(this._L=t(a.ListCollection,this,"Lists",!0,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"paragraphs",{get:function(){return this._P||(this._P=t(a.ParagraphCollection,this,"Paragraphs",!0,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"parentBody",{get:function(){return b("ContentControl.parentBody",u,"1.3",l),this._Pa||(this._Pa=t(a.Body,this,"ParentBody",!1,4)),this._Pa},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"parentContentControl",{get:function(){return this._Par||(this._Par=t(a.ContentControl,this,"ParentContentControl",!1,4)),this._Par},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"parentContentControlOrNullObject",{get:function(){return b("ContentControl.parentContentControlOrNullObject",u,"1.3",l),this._Pare||(this._Pare=t(a.ContentControl,this,"ParentContentControlOrNullObject",!1,4)),this._Pare},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"parentTable",{get:function(){return b("ContentControl.parentTable",u,"1.3",l),this._Paren||(this._Paren=t(a.Table,this,"ParentTable",!1,4)),this._Paren},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"parentTableCell",{get:function(){return b("ContentControl.parentTableCell",u,"1.3",l),this._Parent||(this._Parent=t(a.TableCell,this,"ParentTableCell",!1,4)),this._Parent},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"parentTableCellOrNullObject",{get:function(){return b("ContentControl.parentTableCellOrNullObject",u,"1.3",l),this._ParentT||(this._ParentT=t(a.TableCell,this,"ParentTableCellOrNullObject",!1,4)),this._ParentT},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"parentTableOrNullObject",{get:function(){return b("ContentControl.parentTableOrNullObject",u,"1.3",l),this._ParentTa||(this._ParentTa=t(a.Table,this,"ParentTableOrNullObject",!1,4)),this._ParentTa},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"pictureContentControl",{get:function(){return b("ContentControl.pictureContentControl","WordApiDesktop","1.3",l),this._Pi||(this._Pi=t(a.PictureContentControl,this,"PictureContentControl",!1,4)),this._Pi},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"repeatingSectionContentControl",{get:function(){return b("ContentControl.repeatingSectionContentControl","WordApiDesktop","1.3",l),this._Re||(this._Re=t(a.RepeatingSectionContentControl,this,"RepeatingSectionContentControl",!1,4)),this._Re},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"tables",{get:function(){return b("ContentControl.tables",u,"1.3",l),this._T||(this._T=t(a.TableCollection,this,"Tables",!0,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"xmlMapping",{get:function(){return b("ContentControl.xmlMapping","WordApiDesktop","1.3",l),this._X||(this._X=t(a.XmlMapping,this,"XmlMapping",!1,4)),this._X},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"appearance",{get:function(){return _("appearance",this._A,an,this._isNull),this._A},set:function(e){this._A=e,g(this,"Appearance",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"cannotDelete",{get:function(){return _("cannotDelete",this._C,an,this._isNull),this._C},set:function(e){this._C=e,g(this,"CannotDelete",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"cannotEdit",{get:function(){return _("cannotEdit",this._Ca,an,this._isNull),this._Ca},set:function(e){this._Ca=e,g(this,"CannotEdit",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"color",{get:function(){return _("color",this._Co,an,this._isNull),this._Co},set:function(e){this._Co=e,g(this,"Color",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"id",{get:function(){return _("id",this._I,an,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"placeholderText",{get:function(){return _("placeholderText",this._Pl,an,this._isNull),this._Pl},set:function(e){this._Pl=e,g(this,"PlaceholderText",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"removeWhenEdited",{get:function(){return _("removeWhenEdited",this._R,an,this._isNull),this._R},set:function(e){this._R=e,g(this,"RemoveWhenEdited",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"style",{get:function(){return _("style",this._S,an,this._isNull),this._S},set:function(e){this._S=e,g(this,"Style",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"styleBuiltIn",{get:function(){return _("styleBuiltIn",this._St,an,this._isNull),b("ContentControl.styleBuiltIn",u,"1.3",l),this._St},set:function(e){this._St=e,g(this,"StyleBuiltIn",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"subtype",{get:function(){return _("subtype",this._Su,an,this._isNull),b("ContentControl.subtype",u,"1.3",l),this._Su},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"tag",{get:function(){return _("tag",this._Ta,an,this._isNull),this._Ta},set:function(e){this._Ta=e,g(this,"Tag",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"text",{get:function(){return _("text",this._Te,an,this._isNull),this._Te},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"title",{get:function(){return _("title",this._Ti,an,this._isNull),this._Ti},set:function(e){this._Ti=e,g(this,"Title",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"type",{get:function(){return _("type",this._Ty,an,this._isNull),this._Ty},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,an,this._isNull),this.__R},enumerable:!0,configurable:!0}),cn.prototype.set=function(e,t){this._recursivelySet(e,t,["title","tag","placeholderText","appearance","color","removeWhenEdited","cannotDelete","cannotEdit","style","styleBuiltIn"],["font","checkboxContentControl","xmlMapping","datePickerContentControl","groupContentControl","pictureContentControl","repeatingSectionContentControl","buildingBlockGalleryContentControl"],["comboBoxContentControl","contentControls","dropDownListContentControl","endnotes","fields","footnotes","inlinePictures","lists","paragraphs","parentBody","parentContentControl","parentContentControlOrNullObject","parentTable","parentTableCell","parentTableCellOrNullObject","parentTableOrNullObject","tables"])},cn.prototype.update=function(e){this._recursivelyUpdate(e)},cn.prototype.clear=function(){d(this,"Clear",0,[],0,0)},cn.prototype.delete=function(e){d(this,"Delete",0,[e],0,0)},cn.prototype.getComments=function(){return b("ContentControl.getComments",u,"1.4",l),p(a.CommentCollection,this,"GetComments",1,[],!0,!1,null,4)},cn.prototype.getContentControls=function(e){return b("ContentControl.getContentControls",u,"1.5",l),p(a.ContentControlCollection,this,"GetContentControls",1,[e],!0,!1,null,4)},cn.prototype.getHtml=function(){return d(this,"GetHtml",1,[],4,0)},cn.prototype.getOoxml=function(){return d(this,"GetOoxml",1,[],4,0)},cn.prototype.getRange=function(e){return b("ContentControl.getRange",u,"1.3",l),p(a.Range,this,"GetRange",1,[e],!1,!1,null,4)},cn.prototype.getReviewedText=function(e){return b("ContentControl.getReviewedText",u,"1.4",l),d(this,"GetReviewedText",1,[e],4,0)},cn.prototype.getTextRanges=function(e,t){return b("ContentControl.getTextRanges",u,"1.3",l),p(a.RangeCollection,this,"GetTextRanges",1,[e,t],!0,!1,null,4)},cn.prototype.getTrackedChanges=function(){return b("ContentControl.getTrackedChanges",u,"1.6",l),p(a.TrackedChangeCollection,this,"GetTrackedChanges",1,[],!0,!1,null,4)},cn.prototype.insertBreak=function(e,t){d(this,"InsertBreak",0,[e,t],0,0)},cn.prototype.insertFileFromBase64=function(e,t){return p(a.Range,this,"InsertFileFromBase64",0,[e,t],!1,!0,null,0)},cn.prototype.insertHtml=function(e,t){return p(a.Range,this,"InsertHtml",0,[e,t],!1,!0,null,0)},cn.prototype.insertInlinePictureFromBase64=function(e,t){return b("ContentControl.insertInlinePictureFromBase64",u,"1.2",l),p(a.InlinePicture,this,"InsertInlinePictureFromBase64",0,[e,t],!1,!0,null,0)},cn.prototype.insertOoxml=function(e,t){return p(a.Range,this,"InsertOoxml",0,[e,t],!1,!0,null,0)},cn.prototype.insertParagraph=function(e,t){return p(a.Paragraph,this,"InsertParagraph",0,[e,t],!1,!0,null,0)},cn.prototype.insertTable=function(e,t,n,r){return b("ContentControl.insertTable",u,"1.3",l),p(a.Table,this,"InsertTable",0,[e,t,n,r],!1,!0,null,0)},cn.prototype.insertText=function(e,t){return p(a.Range,this,"InsertText",0,[e,t],!1,!0,null,0)},cn.prototype.search=function(e,t){var n=J.ContentControl_Search(this,e,t),r=n.handled,i=n.result;return r?i:p(a.RangeCollection,this,"Search",1,[e,t],!0,!1,null,4)},cn.prototype.select=function(e){d(this,"Select",1,[e],4,0)},cn.prototype.split=function(e,t,n,r){return b("ContentControl.split",u,"1.3",l),p(a.RangeCollection,this,"Split",1,[e,t,n,r],!0,!1,null,4)},cn.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},cn.prototype._Search2=function(e,t){return p(a.RangeCollection,this,"_Search2",1,[e,t],!0,!1,null,4)},cn.prototype._handleResult=function(e){if(on.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Appearance)||(this._A=t.Appearance),m(t.CannotDelete)||(this._C=t.CannotDelete),m(t.CannotEdit)||(this._Ca=t.CannotEdit),m(t.Color)||(this._Co=t.Color),m(t.Id)||(this._I=t.Id),m(t.PlaceholderText)||(this._Pl=t.PlaceholderText),m(t.RemoveWhenEdited)||(this._R=t.RemoveWhenEdited),m(t.Style)||(this._S=t.Style),m(t.StyleBuiltIn)||(this._St=t.StyleBuiltIn),m(t.Subtype)||(this._Su=t.Subtype),m(t.Tag)||(this._Ta=t.Tag),m(t.Text)||(this._Te=t.Text),m(t.Title)||(this._Ti=t.Title),m(t.Type)||(this._Ty=t.Type),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["buildingBlockGalleryContentControl","BuildingBlockGalleryContentControl","checkboxContentControl","CheckboxContentControl","comboBoxContentControl","ComboBoxContentControl","contentControls","ContentControls","datePickerContentControl","DatePickerContentControl","dropDownListContentControl","DropDownListContentControl","endnotes","Endnotes","fields","Fields","font","Font","footnotes","Footnotes","groupContentControl","GroupContentControl","inlinePictures","InlinePictures","lists","Lists","paragraphs","Paragraphs","parentBody","ParentBody","parentContentControl","ParentContentControl","parentContentControlOrNullObject","ParentContentControlOrNullObject","parentTable","ParentTable","parentTableCell","ParentTableCell","parentTableCellOrNullObject","ParentTableCellOrNullObject","parentTableOrNullObject","ParentTableOrNullObject","pictureContentControl","PictureContentControl","repeatingSectionContentControl","RepeatingSectionContentControl","tables","Tables","xmlMapping","XmlMapping"])}},cn.prototype.load=function(e){return v(this,e)},cn.prototype.retrieve=function(e){return O(this,e)},cn.prototype._handleIdResult=function(e){on.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e.Id)||(this._I=e.Id))},cn.prototype._handleRetrieveResult=function(e,t){on.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Object.defineProperty(cn.prototype,"onDataChanged",{get:function(){var n=this;return b("ContentControl.onDataChanged",u,"1.5",l),this.m_dataChanged||(this.m_dataChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"DataChanged",{eventType:2,registerFunc:function(){return n._RegisterDataChangedEvent()},unregisterFunc:function(){return n._UnregisterDataChangedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=J.ContentControl_DataChanged_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_dataChanged},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"onDeleted",{get:function(){var n=this;return b("ContentControl.onDeleted",u,"1.5",l),this.m_deleted||(this.m_deleted=new OfficeExtension.GenericEventHandlers(this.context,this,"Deleted",{eventType:0,registerFunc:function(){return n._RegisterDeletedEvent()},unregisterFunc:function(){return n._UnregisterDeletedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=J.ContentControl_Deleted_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_deleted},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"onEntered",{get:function(){var n=this;return b("ContentControl.onEntered",u,"1.5",l),this.m_entered||(this.m_entered=new OfficeExtension.GenericEventHandlers(this.context,this,"Entered",{eventType:12,registerFunc:function(){return n._RegisterEnteredEvent()},unregisterFunc:function(){return n._UnregisterEnteredEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=J.ContentControl_Entered_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_entered},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"onExited",{get:function(){var n=this;return b("ContentControl.onExited",u,"1.5",l),this.m_exited||(this.m_exited=new OfficeExtension.GenericEventHandlers(this.context,this,"Exited",{eventType:13,registerFunc:function(){return n._RegisterExitedEvent()},unregisterFunc:function(){return n._UnregisterExitedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=J.ContentControl_Exited_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_exited},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"onSelectionChanged",{get:function(){var n=this;return b("ContentControl.onSelectionChanged",u,"1.5",l),this.m_selectionChanged||(this.m_selectionChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"SelectionChanged",{eventType:1,registerFunc:function(){return n._RegisterSelectionChangedEvent()},unregisterFunc:function(){return n._UnregisterSelectionChangedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=J.ContentControl_SelectionChanged_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_selectionChanged},enumerable:!0,configurable:!0}),cn.prototype.track=function(){return this.context.trackedObjects.add(this),this},cn.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},cn.prototype.toJSON=function(){return C(this,{appearance:this._A,cannotDelete:this._C,cannotEdit:this._Ca,color:this._Co,id:this._I,placeholderText:this._Pl,removeWhenEdited:this._R,style:this._S,styleBuiltIn:this._St,subtype:this._Su,tag:this._Ta,text:this._Te,title:this._Ti,type:this._Ty},{buildingBlockGalleryContentControl:this._B,checkboxContentControl:this._Ch,comboBoxContentControl:this._Com,contentControls:this._Con,datePickerContentControl:this._D,dropDownListContentControl:this._Dr,fields:this._F,font:this._Fo,groupContentControl:this._G,inlinePictures:this._In,lists:this._L,paragraphs:this._P,pictureContentControl:this._Pi,repeatingSectionContentControl:this._Re,tables:this._T,xmlMapping:this._X})},cn.prototype.setMockData=function(e){T(this,e)},cn.prototype.ensureUnchanged=function(e){h(this,e)},cn);function cn(){return null!==on&&on.apply(this,arguments)||this}a.ContentControl=sn;var ln,un=(pn.prototype.getDocument=function(){return y(this._document)&&(this._document=this.context.document),this._document},pn.prototype.getReferenceId=function(){return y(this._refId)&&(this._refId=this._ReferenceId),this._refId},pn.prototype._RegisterDataChangedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"ContentControlDataChanged")},pn.prototype._UnregisterDataChangedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"ContentControlDataChanged")},pn.prototype._RegisterDeletedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"ContentControlDeleted")},pn.prototype._UnregisterDeletedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"ContentControlDeleted")},pn.prototype._RegisterSelectionChangedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"ContentControlSelectionChanged")},pn.prototype._UnregisterSelectionChangedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"ContentControlSelectionChanged")},pn.prototype._RegisterCommentAddedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentAdded")},pn.prototype._UnregisterCommentAddedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentAdded")},pn.prototype._RegisterCommentChangedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentChanged")},pn.prototype._UnregisterCommentChangedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentChanged")},pn.prototype._RegisterCommentSelectedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentSelected")},pn.prototype._UnregisterCommentSelectedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentSelected")},pn.prototype._RegisterCommentDeselectedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentDeselected")},pn.prototype._UnregisterCommentDeselectedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentDeselected")},pn.prototype._RegisterEnteredEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"ContentControlEntered")},pn.prototype._UnregisterEnteredEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"ContentControlEntered")},pn.prototype._RegisterExitedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"ContentControlExited")},pn.prototype._UnregisterExitedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"ContentControlExited")},pn);function pn(){}a.ContentControlCustom=un,OfficeExtension.Utility.applyMixin(sn,un),(ln=J=a._CC||(a._CC={})).ContentControl_Search=function(e,t,n){var r;if(s()){var i=c(n);r=e._Search2(t,i)}else n=o(e.context,n),r=p(a.RangeCollection,e,"Search",1,[t,n],!0,!1,null,4);return{handled:!0,result:r}},ln.ContentControl_DataChanged_EventArgsTransform=function(e,t){return{eventType:a.EventType.contentControlDataChanged,source:t.source,ids:[e.id]}},ln.ContentControl_Deleted_EventArgsTransform=function(e,t){return{eventType:a.EventType.contentControlDeleted,source:t.source,ids:[e.id]}},ln.ContentControl_Entered_EventArgsTransform=function(e,t){return{eventType:a.EventType.contentControlEntered,source:a.EventSource.local,ids:[e.id]}},ln.ContentControl_Exited_EventArgsTransform=function(e,t){return{eventType:a.EventType.contentControlExited,source:a.EventSource.local,ids:[e.id]}},ln.ContentControl_SelectionChanged_EventArgsTransform=function(e,t){return{eventType:a.EventType.contentControlSelectionChanged,source:a.EventSource.local,ids:[e.id]}};var fn,dn="ContentControlCollection",hn=(fn=OfficeExtension.ClientObject,__extends(gn,fn),Object.defineProperty(gn.prototype,"_className",{get:function(){return"ContentControlCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(gn.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(gn.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(gn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(gn.prototype,"items",{get:function(){return _("items",this.m__items,dn,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(gn.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,dn,this._isNull),this.__R},enumerable:!0,configurable:!0}),gn.prototype.getByChangeTrackingStates=function(e){return b("ContentControlCollection.getByChangeTrackingStates",u,"1.5",l),p(a.ContentControlCollection,this,"GetByChangeTrackingStates",1,[e],!0,!1,null,4)},gn.prototype.getById=function(e){return p(a.ContentControl,this,"GetById",1,[e],!1,!1,null,4)},gn.prototype.getByIdOrNullObject=function(e){return b("ContentControlCollection.getByIdOrNullObject",u,"1.3",l),p(a.ContentControl,this,"GetByIdOrNullObject",1,[e],!1,!1,null,4)},gn.prototype.getByTag=function(e){return p(a.ContentControlCollection,this,"GetByTag",1,[e],!0,!1,null,4)},gn.prototype.getByTitle=function(e){return p(a.ContentControlCollection,this,"GetByTitle",1,[e],!0,!1,null,4)},gn.prototype.getByTypes=function(e){return b("ContentControlCollection.getByTypes",u,"1.3",l),p(a.ContentControlCollection,this,"GetByTypes",1,[e],!0,!1,null,4)},gn.prototype.getFirst=function(){return b("ContentControlCollection.getFirst",u,"1.3",l),p(a.ContentControl,this,"GetFirst",1,[],!1,!1,null,4)},gn.prototype.getFirstOrNullObject=function(){return b("ContentControlCollection.getFirstOrNullObject",u,"1.3",l),p(a.ContentControl,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},gn.prototype.getItem=function(e){return r(a.ContentControl,this,[e])},gn.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},gn.prototype._handleResult=function(e){if(fn.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.ContentControl,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},gn.prototype.load=function(e){return v(this,e)},gn.prototype.retrieve=function(e){return O(this,e)},gn.prototype._handleIdResult=function(e){fn.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},gn.prototype._handleRetrieveResult=function(e,t){var n=this;fn.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.ContentControl,!0,n,e,t)})},gn.prototype.track=function(){return this.context.trackedObjects.add(this),this},gn.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},gn.prototype.toJSON=function(){return C(this,{},{},this.m__items)},gn.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.ContentControl,!0,n,e,t)},function(e){return n.m__items=e})},gn);function gn(){return null!==fn&&fn.apply(this,arguments)||this}a.ContentControlCollection=hn;var yn,mn="ContentControlListItem",_n=(yn=OfficeExtension.ClientObject,__extends(bn,yn),Object.defineProperty(bn.prototype,"_className",{get:function(){return"ContentControlListItem"},enumerable:!0,configurable:!0}),Object.defineProperty(bn.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId","displayText","value","index"]},enumerable:!0,configurable:!0}),Object.defineProperty(bn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId","DisplayText","Value","Index"]},enumerable:!0,configurable:!0}),Object.defineProperty(bn.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(bn.prototype,"displayText",{get:function(){return _("displayText",this._D,mn,this._isNull),this._D},set:function(e){this._D=e,g(this,"DisplayText",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(bn.prototype,"index",{get:function(){return _("index",this._I,mn,this._isNull),this._I},set:function(e){this._I=e,g(this,"Index",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(bn.prototype,"value",{get:function(){return _("value",this._V,mn,this._isNull),this._V},set:function(e){this._V=e,g(this,"Value",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(bn.prototype,"_Id",{get:function(){return _("_Id",this.__I,mn,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(bn.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,mn,this._isNull),this.__R},enumerable:!0,configurable:!0}),bn.prototype.set=function(e,t){this._recursivelySet(e,t,["displayText","value","index"],[],[])},bn.prototype.update=function(e){this._recursivelyUpdate(e)},bn.prototype.delete=function(){d(this,"Delete",0,[],0,0)},bn.prototype.select=function(){d(this,"Select",0,[],0,0)},bn.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},bn.prototype._handleResult=function(e){if(yn.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.DisplayText)||(this._D=t.DisplayText),m(t.Index)||(this._I=t.Index),m(t.Value)||(this._V=t.Value),m(t._Id)||(this.__I=t._Id),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},bn.prototype.load=function(e){return v(this,e)},bn.prototype.retrieve=function(e){return O(this,e)},bn.prototype._handleIdResult=function(e){yn.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e._Id)||(this.__I=e._Id))},bn.prototype._handleRetrieveResult=function(e,t){yn.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},bn.prototype.track=function(){return this.context.trackedObjects.add(this),this},bn.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},bn.prototype.toJSON=function(){return C(this,{displayText:this._D,index:this._I,value:this._V},{})},bn.prototype.setMockData=function(e){T(this,e)},bn.prototype.ensureUnchanged=function(e){h(this,e)},bn);function bn(){return null!==yn&&yn.apply(this,arguments)||this}a.ContentControlListItem=_n;var vn,On="ContentControlListItemCollection",Cn=(vn=OfficeExtension.ClientObject,__extends(Pn,vn),Object.defineProperty(Pn.prototype,"_className",{get:function(){return"ContentControlListItemCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Pn.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Pn.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Pn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Pn.prototype,"items",{get:function(){return _("items",this.m__items,On,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Pn.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,On,this._isNull),this.__R},enumerable:!0,configurable:!0}),Pn.prototype.getFirst=function(){return p(a.ContentControlListItem,this,"GetFirst",0,[],!1,!1,null,0)},Pn.prototype.getFirstOrNullObject=function(){return p(a.ContentControlListItem,this,"GetFirstOrNullObject",0,[],!1,!1,null,0)},Pn.prototype._GetItem=function(e){return r(a.ContentControlListItem,this,[e])},Pn.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Pn.prototype._handleResult=function(e){if(vn.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.ContentControlListItem,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Pn.prototype.load=function(e){return v(this,e)},Pn.prototype.retrieve=function(e){return O(this,e)},Pn.prototype._handleIdResult=function(e){vn.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Pn.prototype._handleRetrieveResult=function(e,t){var n=this;vn.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.ContentControlListItem,!0,n,e,t)})},Pn.prototype.track=function(){return this.context.trackedObjects.add(this),this},Pn.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Pn.prototype.toJSON=function(){return C(this,{},{},this.m__items)},Pn.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.ContentControlListItem,!0,n,e,t)},function(e){return n.m__items=e})},Pn);function Pn(){return null!==vn&&vn.apply(this,arguments)||this}a.ContentControlListItemCollection=Cn;var Rn,Sn="CustomProperty",In=(Rn=OfficeExtension.ClientObject,__extends(Tn,Rn),Object.defineProperty(Tn.prototype,"_className",{get:function(){return"CustomProperty"},enumerable:!0,configurable:!0}),Object.defineProperty(Tn.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","key","value","type","_Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(Tn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Key","Value","Type","_Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(Tn.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(Tn.prototype,"key",{get:function(){return _("key",this._K,Sn,this._isNull),this._K},enumerable:!0,configurable:!0}),Object.defineProperty(Tn.prototype,"type",{get:function(){return _("type",this.m_type,Sn,this._isNull),this.m_type},enumerable:!0,configurable:!0}),Object.defineProperty(Tn.prototype,"value",{get:function(){return _("value",this.m_value,Sn,this._isNull),this.m_value},set:function(e){this.m_value=e,g(this,"Value",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Tn.prototype,"_Id",{get:function(){return _("_Id",this.__I,Sn,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(Tn.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Sn,this._isNull),this.__R},enumerable:!0,configurable:!0}),Tn.prototype.set=function(e,t){this._recursivelySet(e,t,["value"],[],[])},Tn.prototype.update=function(e){this._recursivelyUpdate(e)},Tn.prototype.delete=function(){d(this,"Delete",0,[],0,0)},Tn.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Tn.prototype._handleResult=function(e){if(Rn.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),J.CustomProperty_HandleResult(this,t),m(t.Key)||(this._K=t.Key),m(t.Type)||(this.m_type=t.Type),m(t.Value)||(this.m_value=t.Value),m(t._Id)||(this.__I=t._Id),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},Tn.prototype.load=function(e){return v(this,e)},Tn.prototype.retrieve=function(e){return O(this,e)},Tn.prototype._handleIdResult=function(e){Rn.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e._Id)||(this.__I=e._Id))},Tn.prototype._handleRetrieveResult=function(e,t){Rn.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Tn.prototype.track=function(){return this.context.trackedObjects.add(this),this},Tn.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Tn.prototype.toJSON=function(){return C(this,{key:this._K,type:this.m_type,value:this.m_value},{})},Tn.prototype.setMockData=function(e){T(this,e)},Tn.prototype.ensureUnchanged=function(e){h(this,e)},Tn);function Tn(){return null!==Rn&&Rn.apply(this,arguments)||this}a.CustomProperty=In,(J=a._CC||(a._CC={})).CustomProperty_HandleResult=function(e,t){m(t.Value)||m(t.Type)||"Date"!=t.Type||(t.Value=new Date(t.Value))};var An,Nn="CustomPropertyCollection",xn=(An=OfficeExtension.ClientObject,__extends(En,An),Object.defineProperty(En.prototype,"_className",{get:function(){return"CustomPropertyCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(En.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(En.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(En.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(En.prototype,"items",{get:function(){return _("items",this.m__items,Nn,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(En.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Nn,this._isNull),this.__R},enumerable:!0,configurable:!0}),En.prototype.add=function(e,t){return p(a.CustomProperty,this,"Add",0,[e,t],!1,!0,null,0)},En.prototype.deleteAll=function(){d(this,"DeleteAll",0,[],0,0)},En.prototype.getCount=function(){return d(this,"GetCount",1,[],4,0)},En.prototype.getItem=function(e){return r(a.CustomProperty,this,[e])},En.prototype.getItemOrNullObject=function(e){return p(a.CustomProperty,this,"GetItemOrNullObject",1,[e],!1,!1,null,4)},En.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},En.prototype._handleResult=function(e){if(An.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.CustomProperty,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},En.prototype.load=function(e){return v(this,e)},En.prototype.retrieve=function(e){return O(this,e)},En.prototype._handleIdResult=function(e){An.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},En.prototype._handleRetrieveResult=function(e,t){var n=this;An.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.CustomProperty,!0,n,e,t)})},En.prototype.track=function(){return this.context.trackedObjects.add(this),this},En.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},En.prototype.toJSON=function(){return C(this,{},{},this.m__items)},En.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.CustomProperty,!0,n,e,t)},function(e){return n.m__items=e})},En);function En(){return null!==An&&An.apply(this,arguments)||this}a.CustomPropertyCollection=xn;var Dn,jn="CustomXmlPart",wn=(Dn=OfficeExtension.ClientObject,__extends(kn,Dn),Object.defineProperty(kn.prototype,"_className",{get:function(){return"CustomXmlPart"},enumerable:!0,configurable:!0}),Object.defineProperty(kn.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","id","namespaceUri","xml","builtIn"]},enumerable:!0,configurable:!0}),Object.defineProperty(kn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Id","NamespaceUri","Xml","BuiltIn"]},enumerable:!0,configurable:!0}),Object.defineProperty(kn.prototype,"_navigationPropertyNames",{get:function(){return["documentElement","schemaCollection","namespaceManager"]},enumerable:!0,configurable:!0}),Object.defineProperty(kn.prototype,"documentElement",{get:function(){return b("CustomXmlPart.documentElement","WordApiDesktop","1.3",l),this._D||(this._D=t(a.CustomXmlNode,this,"DocumentElement",!1,4)),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(kn.prototype,"namespaceManager",{get:function(){return b("CustomXmlPart.namespaceManager","WordApiDesktop","1.3",l),this._N||(this._N=t(a.CustomXmlPrefixMappingCollection,this,"NamespaceManager",!0,4)),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(kn.prototype,"schemaCollection",{get:function(){return b("CustomXmlPart.schemaCollection","WordApiDesktop","1.3",l),this._S||(this._S=t(a.CustomXmlSchemaCollection,this,"SchemaCollection",!0,4)),this._S},set:function(e){this._S=e,g(this,"SchemaCollection",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(kn.prototype,"builtIn",{get:function(){return _("builtIn",this._B,jn,this._isNull),b("CustomXmlPart.builtIn","WordApiDesktop","1.3",l),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(kn.prototype,"id",{get:function(){return _("id",this._I,jn,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(kn.prototype,"namespaceUri",{get:function(){return _("namespaceUri",this._Na,jn,this._isNull),this._Na},enumerable:!0,configurable:!0}),Object.defineProperty(kn.prototype,"xml",{get:function(){return _("xml",this._X,jn,this._isNull),b("CustomXmlPart.xml","WordApiDesktop","1.3",l),this._X},enumerable:!0,configurable:!0}),Object.defineProperty(kn.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,jn,this._isNull),this.__R},enumerable:!0,configurable:!0}),kn.prototype.set=function(e,t){this._recursivelySet(e,t,[],["documentElement"],["namespaceManager","schemaCollection"])},kn.prototype.update=function(e){this._recursivelyUpdate(e)},kn.prototype.addNode=function(e,t){return b("CustomXmlPart.addNode","WordApiDesktop","1.3",l),d(this,"AddNode",0,[e,t],0,0)},kn.prototype.delete=function(){d(this,"Delete",0,[],0,0)},kn.prototype.deleteAttribute=function(e,t,n){d(this,"DeleteAttribute",0,[e,t,n],0,0)},kn.prototype.deleteElement=function(e,t){d(this,"DeleteElement",0,[e,t],0,0)},kn.prototype.getXml=function(){return d(this,"GetXml",1,[],4,0)},kn.prototype.insertAttribute=function(e,t,n,r){d(this,"InsertAttribute",0,[e,t,n,r],0,0)},kn.prototype.insertElement=function(e,t,n,r){d(this,"InsertElement",0,[e,t,n,r],0,0)},kn.prototype.loadXml=function(e){return b("CustomXmlPart.loadXml","WordApiDesktop","1.3",l),d(this,"LoadXml",0,[e],0,0)},kn.prototype.query=function(e,t){return d(this,"Query",0,[e,t],0,0)},kn.prototype.selectNodes=function(e){return b("CustomXmlPart.selectNodes","WordApiDesktop","1.3",l),p(a.CustomXmlNodeCollection,this,"SelectNodes",0,[e],!0,!1,null,0)},kn.prototype.selectSingleNode=function(e){return b("CustomXmlPart.selectSingleNode","WordApiDesktop","1.3",l),p(a.CustomXmlNode,this,"SelectSingleNode",0,[e],!1,!1,null,0)},kn.prototype.setXml=function(e){d(this,"SetXml",0,[e],0,0)},kn.prototype.updateAttribute=function(e,t,n,r){d(this,"UpdateAttribute",0,[e,t,n,r],0,0)},kn.prototype.updateElement=function(e,t,n){d(this,"UpdateElement",0,[e,t,n],0,0)},kn.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},kn.prototype._handleResult=function(e){if(Dn.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.BuiltIn)||(this._B=t.BuiltIn),m(t.Id)||(this._I=t.Id),m(t.NamespaceUri)||(this._Na=t.NamespaceUri),m(t.Xml)||(this._X=t.Xml),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["documentElement","DocumentElement","namespaceManager","NamespaceManager","schemaCollection","SchemaCollection"])}},kn.prototype.load=function(e){return v(this,e)},kn.prototype.retrieve=function(e){return O(this,e)},kn.prototype._handleIdResult=function(e){Dn.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e.Id)||(this._I=e.Id))},kn.prototype._handleRetrieveResult=function(e,t){Dn.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},kn.prototype.track=function(){return this.context.trackedObjects.add(this),this},kn.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},kn.prototype.toJSON=function(){return C(this,{builtIn:this._B,id:this._I,namespaceUri:this._Na,xml:this._X},{documentElement:this._D,namespaceManager:this._N,schemaCollection:this._S})},kn.prototype.setMockData=function(e){T(this,e)},kn.prototype.ensureUnchanged=function(e){h(this,e)},kn);function kn(){return null!==Dn&&Dn.apply(this,arguments)||this}a.CustomXmlPart=wn;var Fn,Ln="CustomXmlPartCollection",Mn=(Fn=OfficeExtension.ClientObject,__extends(Bn,Fn),Object.defineProperty(Bn.prototype,"_className",{get:function(){return"CustomXmlPartCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Bn.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Bn.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Bn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Bn.prototype,"items",{get:function(){return _("items",this.m__items,Ln,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Bn.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Ln,this._isNull),this.__R},enumerable:!0,configurable:!0}),Bn.prototype.add=function(e){return p(a.CustomXmlPart,this,"Add",0,[e],!1,!0,null,0)},Bn.prototype.getByNamespace=function(e){return p(a.CustomXmlPartScopedCollection,this,"GetByNamespace",1,[e],!0,!1,null,4)},Bn.prototype.getCount=function(){return d(this,"GetCount",1,[],4,0)},Bn.prototype.getItem=function(e){return r(a.CustomXmlPart,this,[e])},Bn.prototype.getItemOrNullObject=function(e){return p(a.CustomXmlPart,this,"GetItemOrNullObject",1,[e],!1,!1,null,4)},Bn.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Bn.prototype._handleResult=function(e){if(Fn.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.CustomXmlPart,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Bn.prototype.load=function(e){return v(this,e)},Bn.prototype.retrieve=function(e){return O(this,e)},Bn.prototype._handleIdResult=function(e){Fn.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Bn.prototype._handleRetrieveResult=function(e,t){var n=this;Fn.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.CustomXmlPart,!0,n,e,t)})},Bn.prototype.track=function(){return this.context.trackedObjects.add(this),this},Bn.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Bn.prototype.toJSON=function(){return C(this,{},{},this.m__items)},Bn.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.CustomXmlPart,!0,n,e,t)},function(e){return n.m__items=e})},Bn);function Bn(){return null!==Fn&&Fn.apply(this,arguments)||this}a.CustomXmlPartCollection=Mn;var Hn,Un="CustomXmlPartScopedCollection",Wn=(Hn=OfficeExtension.ClientObject,__extends(Gn,Hn),Object.defineProperty(Gn.prototype,"_className",{get:function(){return"CustomXmlPartScopedCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Gn.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Gn.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Gn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Gn.prototype,"items",{get:function(){return _("items",this.m__items,Un,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Gn.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Un,this._isNull),this.__R},enumerable:!0,configurable:!0}),Gn.prototype.getCount=function(){return d(this,"GetCount",1,[],4,0)},Gn.prototype.getItem=function(e){return r(a.CustomXmlPart,this,[e])},Gn.prototype.getItemOrNullObject=function(e){return p(a.CustomXmlPart,this,"GetItemOrNullObject",1,[e],!1,!1,null,4)},Gn.prototype.getOnlyItem=function(){return p(a.CustomXmlPart,this,"GetOnlyItem",1,[],!1,!1,null,4)},Gn.prototype.getOnlyItemOrNullObject=function(){return p(a.CustomXmlPart,this,"GetOnlyItemOrNullObject",1,[],!1,!1,null,4)},Gn.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Gn.prototype._handleResult=function(e){if(Hn.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.CustomXmlPart,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Gn.prototype.load=function(e){return v(this,e)},Gn.prototype.retrieve=function(e){return O(this,e)},Gn.prototype._handleIdResult=function(e){Hn.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Gn.prototype._handleRetrieveResult=function(e,t){var n=this;Hn.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.CustomXmlPart,!0,n,e,t)})},Gn.prototype.track=function(){return this.context.trackedObjects.add(this),this},Gn.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Gn.prototype.toJSON=function(){return C(this,{},{},this.m__items)},Gn.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.CustomXmlPart,!0,n,e,t)},function(e){return n.m__items=e})},Gn);function Gn(){return null!==Hn&&Hn.apply(this,arguments)||this}a.CustomXmlPartScopedCollection=Wn;var Vn,qn="Document",zn=(Vn=OfficeExtension.ClientObject,__extends(Kn,Vn),Object.defineProperty(Kn.prototype,"_className",{get:function(){return"Document"},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"_scalarPropertyNames",{get:function(){return["saved","_ReferenceId","allowCloseOnUntitled","changeTrackingMode","autoSaveOn","languageDetected","autoHyphenation","consecutiveHyphensLimit","hyphenateCaps"]},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Saved","_ReferenceId","AllowCloseOnUntitled","ChangeTrackingMode","AutoSaveOn","LanguageDetected","AutoHyphenation","ConsecutiveHyphensLimit","HyphenateCaps"]},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"_navigationPropertyNames",{get:function(){return["sections","body","contentControls","properties","settings","customXmlParts","windows","activeWindow","attachedTemplate","documentLibraryVersions","frames","hyperlinks","bibliography","pageSetup"]},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"activeWindow",{get:function(){return b("Document.activeWindow","WordApiDesktop","1.2",l),this._A||(this._A=t(a.Window,this,"ActiveWindow",!1,4)),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"attachedTemplate",{get:function(){return b("Document.attachedTemplate","WordApiDesktop","1.3",l),this._At||(this._At=t(a.Template,this,"AttachedTemplate",!1,4)),this._At},set:function(e){this._At=e,g(this,"AttachedTemplate",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"bibliography",{get:function(){return b("Document.bibliography","WordApiDesktop","1.3",l),this._B||(this._B=t(a.Bibliography,this,"Bibliography",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"body",{get:function(){return this._Bo||(this._Bo=t(a.Body,this,"Body",!1,4)),this._Bo},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"contentControls",{get:function(){return this._Con||(this._Con=t(a.ContentControlCollection,this,"ContentControls",!0,4)),this._Con},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"customXmlParts",{get:function(){return b("Document.customXmlParts",u,"1.4",l),this._Cu||(this._Cu=t(a.CustomXmlPartCollection,this,"CustomXmlParts",!0,4)),this._Cu},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"documentLibraryVersions",{get:function(){return b("Document.documentLibraryVersions","WordApiDesktop","1.3",l),this._D||(this._D=t(a.DocumentLibraryVersionCollection,this,"DocumentLibraryVersions",!0,4)),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"frames",{get:function(){return b("Document.frames","WordApiDesktop","1.3",l),this._F||(this._F=t(a.FrameCollection,this,"Frames",!0,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"hyperlinks",{get:function(){return b("Document.hyperlinks","WordApiDesktop","1.3",l),this._H||(this._H=t(a.HyperlinkCollection,this,"Hyperlinks",!0,4)),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"pageSetup",{get:function(){return b("Document.pageSetup","WordApiDesktop","1.3",l),this._P||(this._P=t(a.PageSetup,this,"PageSetup",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"properties",{get:function(){return b("Document.properties",u,"1.3",l),this._Pr||(this._Pr=t(a.DocumentProperties,this,"Properties",!1,4)),this._Pr},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"sections",{get:function(){return this._Se||(this._Se=t(a.SectionCollection,this,"Sections",!0,4)),this._Se},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"settings",{get:function(){return b("Document.settings",u,"1.4",l),this._Set||(this._Set=t(a.SettingCollection,this,"Settings",!0,4)),this._Set},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"windows",{get:function(){return b("Document.windows","WordApiDesktop","1.2",l),this._W||(this._W=t(a.WindowCollection,this,"Windows",!0,4)),this._W},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"allowCloseOnUntitled",{get:function(){return _("allowCloseOnUntitled",this._Al,qn,this._isNull),this._Al},set:function(e){this._Al=e,g(this,"AllowCloseOnUntitled",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"autoHyphenation",{get:function(){return _("autoHyphenation",this._Au,qn,this._isNull),b("Document.autoHyphenation","WordApiDesktop","1.3",l),this._Au},set:function(e){this._Au=e,g(this,"AutoHyphenation",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"autoSaveOn",{get:function(){return _("autoSaveOn",this._Aut,qn,this._isNull),b("Document.autoSaveOn","WordApiDesktop","1.3",l),this._Aut},set:function(e){this._Aut=e,g(this,"AutoSaveOn",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"changeTrackingMode",{get:function(){return _("changeTrackingMode",this._C,qn,this._isNull),b("Document.changeTrackingMode",u,"1.4",l),this._C},set:function(e){this._C=e,g(this,"ChangeTrackingMode",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"consecutiveHyphensLimit",{get:function(){return _("consecutiveHyphensLimit",this._Co,qn,this._isNull),b("Document.consecutiveHyphensLimit","WordApiDesktop","1.3",l),this._Co},set:function(e){this._Co=e,g(this,"ConsecutiveHyphensLimit",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"hyphenateCaps",{get:function(){return _("hyphenateCaps",this._Hy,qn,this._isNull),b("Document.hyphenateCaps","WordApiDesktop","1.3",l),this._Hy},set:function(e){this._Hy=e,g(this,"HyphenateCaps",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"languageDetected",{get:function(){return _("languageDetected",this._L,qn,this._isNull),b("Document.languageDetected","WordApiDesktop","1.3",l),this._L},set:function(e){this._L=e,g(this,"LanguageDetected",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"saved",{get:function(){return _("saved",this._S,qn,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.m__ReferenceId,qn,this._isNull),this.m__ReferenceId},enumerable:!0,configurable:!0}),Kn.prototype.set=function(e,t){this._recursivelySet(e,t,["allowCloseOnUntitled","changeTrackingMode","autoSaveOn","languageDetected","autoHyphenation","consecutiveHyphensLimit","hyphenateCaps"],["body","properties","bibliography","pageSetup"],["activeWindow","attachedTemplate","contentControls","customXmlParts","documentLibraryVersions","frames","hyperlinks","sections","settings","windows"])},Kn.prototype.update=function(e){this._recursivelyUpdate(e)},Kn.prototype.addStyle=function(e,t){return b("Document.addStyle",u,"1.5",l),p(a.Style,this,"AddStyle",0,[e,t],!1,!1,null,0)},Kn.prototype.close=function(e){b("Document.close",u,"1.5",l),d(this,"Close",0,[e],0,0)},Kn.prototype.compare=function(e,t){b("Document.compare","WordApiDesktop","1.1",l),d(this,"Compare",0,[e,t],0,0)},Kn.prototype.compareFromBase64=function(e,t){b("Document.compareFromBase64","WordApiDesktop","1.2",l),d(this,"CompareFromBase64",0,[e,t],0,0)},Kn.prototype.deleteBookmark=function(e){b("Document.deleteBookmark",u,"1.4",l),d(this,"DeleteBookmark",0,[e],0,0)},Kn.prototype.detectLanguage=function(){b("Document.detectLanguage","WordApiDesktop","1.3",l),d(this,"DetectLanguage",0,[],0,0)},Kn.prototype.getAnnotationById=function(e){return b("Document.getAnnotationById",u,"1.7",l),p(a.Annotation,this,"GetAnnotationById",0,[e],!1,!1,null,0)},Kn.prototype.getAnnotationsByType=function(e){return b("Document.getAnnotationsByType","WordApiOnline","1.1",l),p(a.AugloopAnnotationCollection,this,"GetAnnotationsByType",1,[e],!0,!1,null,4)},Kn.prototype.getBookmarkRange=function(e){return b("Document.getBookmarkRange",u,"1.4",l),p(a.Range,this,"GetBookmarkRange",1,[e],!1,!1,null,4)},Kn.prototype.getBookmarkRangeOrNullObject=function(e){return b("Document.getBookmarkRangeOrNullObject",u,"1.4",l),p(a.Range,this,"GetBookmarkRangeOrNullObject",1,[e],!1,!1,null,4)},Kn.prototype.getContentControls=function(e){return b("Document.getContentControls",u,"1.5",l),p(a.ContentControlCollection,this,"GetContentControls",1,[e],!0,!1,null,4)},Kn.prototype.getEndnoteBody=function(){return b("Document.getEndnoteBody",u,"1.5",l),p(a.Body,this,"GetEndnoteBody",1,[],!1,!1,null,4)},Kn.prototype.getFootnoteBody=function(){return b("Document.getFootnoteBody",u,"1.5",l),p(a.Body,this,"GetFootnoteBody",1,[],!1,!1,null,4)},Kn.prototype.getMetadata=function(e){return d(this,"GetMetadata",1,[e],4,0)},Kn.prototype.getNeighborhoodTextAroundSelection=function(e){return d(this,"GetNeighborhoodTextAroundSelection",1,[e],5,0)},Kn.prototype.getParagraphByUniqueLocalId=function(e){return b("Document.getParagraphByUniqueLocalId",u,"1.6",l),p(a.Paragraph,this,"GetParagraphByUniqueLocalId",1,[e],!1,!1,null,4)},Kn.prototype.getSelection=function(){return p(a.Range,this,"GetSelection",1,[],!1,!0,null,4)},Kn.prototype.getStyles=function(){return b("Document.getStyles",u,"1.5",l),p(a.StyleCollection,this,"GetStyles",1,[],!0,!1,null,4)},Kn.prototype.importStylesFromJson=function(e,t){return b("Document.importStylesFromJson",u,"1.6",l),d(this,"ImportStylesFromJson",0,[e,t],0,0)},Kn.prototype.insertFileFromBase64=function(e,t,n){return b("Document.insertFileFromBase64",u,"1.5",l),p(a.SectionCollection,this,"InsertFileFromBase64",0,[e,t,n],!0,!0,null,0)},Kn.prototype.launchTapPane=function(e){d(this,"LaunchTapPane",1,[e],5,0)},Kn.prototype.manualHyphenation=function(){b("Document.manualHyphenation","WordApiDesktop","1.3",l),d(this,"ManualHyphenation",0,[],0,0)},Kn.prototype.save=function(e,t){d(this,"Save",0,[e,t],0,0)},Kn.prototype.search=function(e,t){var n=J.Document_Search(this,e,t),r=n.handled,i=n.result;return r?i:(b("Document.search",u,"1.7",l),p(a.RangeCollection,this,"Search",1,[e,t],!0,!1,null,4))},Kn.prototype.setMetadata=function(e,t){d(this,"SetMetadata",0,[e,t],0,0)},Kn.prototype.setMetadataOnTile=function(e,t,n){d(this,"SetMetadataOnTile",0,[e,t,n],0,0)},Kn.prototype.setNavigationPaneVisibility=function(e){b("Document.setNavigationPaneVisibility","WordApiOnline","1.1",l),d(this,"SetNavigationPaneVisibility",0,[e],1,0)},Kn.prototype._GetObjectByReferenceId=function(e){return d(this,"_GetObjectByReferenceId",1,[e],4,0)},Kn.prototype._GetObjectTypeNameByReferenceId=function(e){return d(this,"_GetObjectTypeNameByReferenceId",1,[e],4,0)},Kn.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Kn.prototype._RegisterEvent=function(e,t){d(this,"_RegisterEvent",1,[e,t],4,0)},Kn.prototype._RemoveAllReferences=function(){d(this,"_RemoveAllReferences",1,[],4,0)},Kn.prototype._RemoveReference=function(e){d(this,"_RemoveReference",1,[e],4,0)},Kn.prototype._Search2=function(e,t){return b("Document._Search2",u,"1.7",l),p(a.RangeCollection,this,"_Search2",1,[e,t],!0,!1,null,4)},Kn.prototype._UnregisterEvent=function(e,t){d(this,"_UnregisterEvent",1,[e,t],4,0)},Kn.prototype._handleResult=function(e){if(Vn.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.AllowCloseOnUntitled)||(this._Al=t.AllowCloseOnUntitled),m(t.AutoHyphenation)||(this._Au=t.AutoHyphenation),m(t.AutoSaveOn)||(this._Aut=t.AutoSaveOn),m(t.ChangeTrackingMode)||(this._C=t.ChangeTrackingMode),m(t.ConsecutiveHyphensLimit)||(this._Co=t.ConsecutiveHyphensLimit),m(t.HyphenateCaps)||(this._Hy=t.HyphenateCaps),m(t.LanguageDetected)||(this._L=t.LanguageDetected),m(t.Saved)||(this._S=t.Saved),m(t._ReferenceId)||(this.m__ReferenceId=t._ReferenceId),R(this,t,["activeWindow","ActiveWindow","attachedTemplate","AttachedTemplate","bibliography","Bibliography","body","Body","contentControls","ContentControls","customXmlParts","CustomXmlParts","documentLibraryVersions","DocumentLibraryVersions","frames","Frames","hyperlinks","Hyperlinks","pageSetup","PageSetup","properties","Properties","sections","Sections","settings","Settings","windows","Windows"])}},Kn.prototype.load=function(e){return v(this,e)},Kn.prototype.retrieve=function(e){return O(this,e)},Kn.prototype._handleIdResult=function(e){Vn.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.m__ReferenceId=e._ReferenceId)},Kn.prototype._handleRetrieveResult=function(e,t){Vn.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Object.defineProperty(Kn.prototype,"onAnnotationClicked",{get:function(){var n=this;return b("Document.onAnnotationClicked",u,"1.7",l),this.m_annotationClicked||(this.m_annotationClicked=new OfficeExtension.GenericEventHandlers(this.context,this,"AnnotationClicked",{eventType:18,registerFunc:function(){return n._RegisterAnnotationClickedEvent()},unregisterFunc:function(){return n._UnregisterAnnotationClickedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=J.Document_AnnotationClicked_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_annotationClicked},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"onAnnotationHovered",{get:function(){var n=this;return b("Document.onAnnotationHovered",u,"1.7",l),this.m_annotationHovered||(this.m_annotationHovered=new OfficeExtension.GenericEventHandlers(this.context,this,"AnnotationHovered",{eventType:19,registerFunc:function(){return n._RegisterAnnotationHoveredEvent()},unregisterFunc:function(){return n._UnregisterAnnotationHoveredEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=J.Document_AnnotationHovered_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_annotationHovered},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"onAnnotationInserted",{get:function(){var n=this;return b("Document.onAnnotationInserted",u,"1.7",l),this.m_annotationInserted||(this.m_annotationInserted=new OfficeExtension.GenericEventHandlers(this.context,this,"AnnotationInserted",{eventType:20,registerFunc:function(){return n._RegisterAnnotationInsertedEvent()},unregisterFunc:function(){return n._UnregisterAnnotationInsertedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=J.Document_AnnotationInserted_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_annotationInserted},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"onAnnotationPopupAction",{get:function(){var e=this;return b("Document.onAnnotationPopupAction",u,"1.8",l),this.m_annotationPopupAction||(this.m_annotationPopupAction=new OfficeExtension.GenericEventHandlers(this.context,this,"AnnotationPopupAction",{eventType:22,registerFunc:function(){return e._RegisterAnnotationPopupActionEvent()},unregisterFunc:function(){return e._UnregisterAnnotationPopupActionEvent()},getTargetIdFunc:function(){return e._ReferenceId},eventArgsTransformFunc:function(e){var t={action:e.action,critiqueSuggestion:e.critiqueSuggestion,id:e.id};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_annotationPopupAction},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"onAnnotationRemoved",{get:function(){var n=this;return b("Document.onAnnotationRemoved",u,"1.7",l),this.m_annotationRemoved||(this.m_annotationRemoved=new OfficeExtension.GenericEventHandlers(this.context,this,"AnnotationRemoved",{eventType:21,registerFunc:function(){return n._RegisterAnnotationRemovedEvent()},unregisterFunc:function(){return n._UnregisterAnnotationRemovedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=J.Document_AnnotationRemoved_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_annotationRemoved},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"onContentControlAdded",{get:function(){var n=this;return b("Document.onContentControlAdded",u,"1.5",l),this.m_contentControlAdded||(this.m_contentControlAdded=new OfficeExtension.GenericEventHandlers(this.context,this,"ContentControlAdded",{eventType:3,registerFunc:function(){return n._RegisterContentControlAddedEvent()},unregisterFunc:function(){return n._UnregisterContentControlAddedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=J.Document_ContentControlAdded_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_contentControlAdded},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"onParagraphAdded",{get:function(){var n=this;return b("Document.onParagraphAdded",u,"1.6",l),this.m_paragraphAdded||(this.m_paragraphAdded=new OfficeExtension.GenericEventHandlers(this.context,this,"ParagraphAdded",{eventType:15,registerFunc:function(){return n._RegisterParagraphAddedEvent()},unregisterFunc:function(){return n._UnregisterParagraphAddedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=J.Document_ParagraphAdded_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_paragraphAdded},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"onParagraphChanged",{get:function(){var n=this;return b("Document.onParagraphChanged",u,"1.6",l),this.m_paragraphChanged||(this.m_paragraphChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"ParagraphChanged",{eventType:16,registerFunc:function(){return n._RegisterParagraphChangedEvent()},unregisterFunc:function(){return n._UnregisterParagraphChangedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=J.Document_ParagraphChanged_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_paragraphChanged},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"onParagraphDeleted",{get:function(){var n=this;return b("Document.onParagraphDeleted",u,"1.6",l),this.m_paragraphDeleted||(this.m_paragraphDeleted=new OfficeExtension.GenericEventHandlers(this.context,this,"ParagraphDeleted",{eventType:17,registerFunc:function(){return n._RegisterParagraphDeletedEvent()},unregisterFunc:function(){return n._UnregisterParagraphDeletedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=J.Document_ParagraphDeleted_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_paragraphDeleted},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"onWordCountChanged",{get:function(){var n=this;return this.m_wordCountChanged||(this.m_wordCountChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"WordCountChanged",{eventType:14,registerFunc:function(){return n._RegisterWordCountChangedEvent()},unregisterFunc:function(){return n._UnregisterWordCountChangedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=J.Document_WordCountChanged_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_wordCountChanged},enumerable:!0,configurable:!0}),Kn.prototype.track=function(){return this.context.trackedObjects.add(this),this},Kn.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Kn.prototype.toJSON=function(){return C(this,{allowCloseOnUntitled:this._Al,autoHyphenation:this._Au,autoSaveOn:this._Aut,changeTrackingMode:this._C,consecutiveHyphensLimit:this._Co,hyphenateCaps:this._Hy,languageDetected:this._L,saved:this._S},{activeWindow:this._A,bibliography:this._B,body:this._Bo,contentControls:this._Con,customXmlParts:this._Cu,documentLibraryVersions:this._D,frames:this._F,hyperlinks:this._H,pageSetup:this._P,properties:this._Pr,sections:this._Se,settings:this._Set,windows:this._W})},Kn.prototype.setMockData=function(e){T(this,e)},Kn.prototype.ensureUnchanged=function(e){h(this,e)},Kn);function Kn(){return null!==Vn&&Vn.apply(this,arguments)||this}a.Document=zn;var Jn,Xn=(Qn.prototype._RegisterContentControlAddedEvent=function(){this._RegisterEvent(this._ReferenceId,"ContentControlAdded")},Qn.prototype._UnregisterContentControlAddedEvent=function(){this._UnregisterEvent(this._ReferenceId,"ContentControlAdded")},Qn.prototype._RegisterWordCountChangedEvent=function(){this._RegisterEvent(this._ReferenceId,"DocumentWordCountChanged")},Qn.prototype._UnregisterWordCountChangedEvent=function(){this._UnregisterEvent(this._ReferenceId,"DocumentWordCountChanged")},Qn.prototype._RegisterParagraphAddedEvent=function(){this._RegisterEvent(this._ReferenceId,"ParagraphAdded")},Qn.prototype._UnregisterParagraphAddedEvent=function(){this._UnregisterEvent(this._ReferenceId,"ParagraphAdded")},Qn.prototype._RegisterParagraphChangedEvent=function(){this._RegisterEvent(this._ReferenceId,"ParagraphChanged")},Qn.prototype._UnregisterParagraphChangedEvent=function(){this._UnregisterEvent(this._ReferenceId,"ParagraphChanged")},Qn.prototype._RegisterParagraphDeletedEvent=function(){this._RegisterEvent(this._ReferenceId,"ParagraphDeleted")},Qn.prototype._UnregisterParagraphDeletedEvent=function(){this._UnregisterEvent(this._ReferenceId,"ParagraphDeleted")},Qn.prototype._RegisterAnnotationClickedEvent=function(){this._RegisterEvent(this._ReferenceId,"AnnotationClicked")},Qn.prototype._UnregisterAnnotationClickedEvent=function(){this._UnregisterEvent(this._ReferenceId,"AnnotationClicked")},Qn.prototype._RegisterAnnotationHoveredEvent=function(){this._RegisterEvent(this._ReferenceId,"AnnotationHovered")},Qn.prototype._UnregisterAnnotationHoveredEvent=function(){this._UnregisterEvent(this._ReferenceId,"AnnotationHovered")},Qn.prototype._RegisterAnnotationInsertedEvent=function(){this._RegisterEvent(this._ReferenceId,"AnnotationInserted")},Qn.prototype._UnregisterAnnotationInsertedEvent=function(){this._UnregisterEvent(this._ReferenceId,"AnnotationInserted")},Qn.prototype._RegisterAnnotationRemovedEvent=function(){this._RegisterEvent(this._ReferenceId,"AnnotationRemoved")},Qn.prototype._UnregisterAnnotationRemovedEvent=function(){this._UnregisterEvent(this._ReferenceId,"AnnotationRemoved")},Qn.prototype._RegisterAnnotationPopupActionEvent=function(){this._RegisterEvent(this._ReferenceId,"AnnotationPopupAction")},Qn.prototype._UnregisterAnnotationPopupActionEvent=function(){this._UnregisterEvent(this._ReferenceId,"AnnotationPopupAction")},Qn);function Qn(){}a.DocumentCustom=Xn,OfficeExtension.Utility.applyMixin(zn,Xn),(Jn=J=a._CC||(a._CC={})).Document_Search=function(e,t,n){var r;if(s())n=o(e.context,n),r=p(a.RangeCollection,e,"Search",1,[t,n],!0,!1,null,4);else{var i=c(n);r=e._Search2(t,i)}return{handled:!0,result:r}},Jn.Document_AnnotationClicked_EventArgsTransform=function(e,t){return{id:t}},Jn.Document_AnnotationHovered_EventArgsTransform=function(e,t){return{id:t}},Jn.Document_AnnotationInserted_EventArgsTransform=function(e,t){return{ids:t}},Jn.Document_AnnotationRemoved_EventArgsTransform=function(e,t){return{ids:t}},Jn.Document_ContentControlAdded_EventArgsTransform=function(e,t){return{eventType:a.EventType.contentControlAdded,source:t.source,ids:t.ids}},Jn.Document_ParagraphAdded_EventArgsTransform=function(e,t){return{type:a.EventType.paragraphAdded,source:t.source,uniqueLocalIds:t.uniqueLocalIds}},Jn.Document_ParagraphChanged_EventArgsTransform=function(e,t){return{type:a.EventType.paragraphChanged,source:t.source,uniqueLocalIds:t.uniqueLocalIds}},Jn.Document_ParagraphDeleted_EventArgsTransform=function(e,t){return{type:a.EventType.paragraphDeleted,source:t.source,uniqueLocalIds:t.uniqueLocalIds}},Jn.Document_WordCountChanged_EventArgsTransform=function(e,t){return{eventType:a.EventType.documentWordCountChanged,source:t.source,wordCount:t.wordCount}};var Yn,Zn="DocumentCreated",$n=(Yn=OfficeExtension.ClientObject,__extends(er,Yn),Object.defineProperty(er.prototype,"_className",{get:function(){return"DocumentCreated"},enumerable:!0,configurable:!0}),Object.defineProperty(er.prototype,"_scalarPropertyNames",{get:function(){return["saved","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(er.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Saved","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(er.prototype,"_navigationPropertyNames",{get:function(){return["sections","body","contentControls","properties","settings","customXmlParts"]},enumerable:!0,configurable:!0}),Object.defineProperty(er.prototype,"body",{get:function(){return b("DocumentCreated.body","WordApiHiddenDocument","1.3",l),this._B||(this._B=t(a.Body,this,"Body",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(er.prototype,"contentControls",{get:function(){return b("DocumentCreated.contentControls","WordApiHiddenDocument","1.3",l),this._C||(this._C=t(a.ContentControlCollection,this,"ContentControls",!0,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(er.prototype,"customXmlParts",{get:function(){return b("DocumentCreated.customXmlParts","WordApiHiddenDocument","1.4",l),this._Cu||(this._Cu=t(a.CustomXmlPartCollection,this,"CustomXmlParts",!0,4)),this._Cu},enumerable:!0,configurable:!0}),Object.defineProperty(er.prototype,"properties",{get:function(){return b("DocumentCreated.properties","WordApiHiddenDocument","1.3",l),this._P||(this._P=t(a.DocumentProperties,this,"Properties",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(er.prototype,"sections",{get:function(){return b("DocumentCreated.sections","WordApiHiddenDocument","1.3",l),this._Se||(this._Se=t(a.SectionCollection,this,"Sections",!0,4)),this._Se},enumerable:!0,configurable:!0}),Object.defineProperty(er.prototype,"settings",{get:function(){return b("DocumentCreated.settings","WordApiHiddenDocument","1.4",l),this._Set||(this._Set=t(a.SettingCollection,this,"Settings",!0,4)),this._Set},enumerable:!0,configurable:!0}),Object.defineProperty(er.prototype,"saved",{get:function(){return _("saved",this._S,Zn,this._isNull),b("DocumentCreated.saved","WordApiHiddenDocument","1.3",l),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(er.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.m__ReferenceId,Zn,this._isNull),this.m__ReferenceId},enumerable:!0,configurable:!0}),er.prototype.set=function(e,t){this._recursivelySet(e,t,[],["body","properties"],["contentControls","customXmlParts","sections","settings"])},er.prototype.update=function(e){this._recursivelyUpdate(e)},er.prototype.addStyle=function(e,t){return b("DocumentCreated.addStyle","WordApiHiddenDocument","1.5",l),p(a.Style,this,"AddStyle",0,[e,t],!1,!1,null,0)},er.prototype.deleteBookmark=function(e){b("DocumentCreated.deleteBookmark","WordApiHiddenDocument","1.4",l),d(this,"DeleteBookmark",0,[e],0,0)},er.prototype.getBookmarkRange=function(e){return b("DocumentCreated.getBookmarkRange","WordApiHiddenDocument","1.4",l),p(a.Range,this,"GetBookmarkRange",1,[e],!1,!1,null,4)},er.prototype.getBookmarkRangeOrNullObject=function(e){return b("DocumentCreated.getBookmarkRangeOrNullObject","WordApiHiddenDocument","1.4",l),p(a.Range,this,"GetBookmarkRangeOrNullObject",1,[e],!1,!1,null,4)},er.prototype.getContentControls=function(e){return b("DocumentCreated.getContentControls","WordApiHiddenDocument","1.5",l),p(a.ContentControlCollection,this,"GetContentControls",1,[e],!0,!1,null,4)},er.prototype.getStyles=function(){return b("DocumentCreated.getStyles","WordApiHiddenDocument","1.5",l),p(a.StyleCollection,this,"GetStyles",1,[],!0,!1,null,4)},er.prototype.insertFileFromBase64=function(e,t,n){return b("DocumentCreated.insertFileFromBase64","WordApiHiddenDocument","1.5",l),p(a.SectionCollection,this,"InsertFileFromBase64",0,[e,t,n],!0,!0,null,0)},er.prototype.open=function(){d(this,"Open",1,[],4,0)},er.prototype.save=function(e,t){b("DocumentCreated.save","WordApiHiddenDocument","1.3",l),d(this,"Save",0,[e,t],0,0)},er.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},er.prototype._handleResult=function(e){if(Yn.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Saved)||(this._S=t.Saved),m(t._ReferenceId)||(this.m__ReferenceId=t._ReferenceId),R(this,t,["body","Body","contentControls","ContentControls","customXmlParts","CustomXmlParts","properties","Properties","sections","Sections","settings","Settings"])}},er.prototype.load=function(e){return v(this,e)},er.prototype.retrieve=function(e){return O(this,e)},er.prototype._handleIdResult=function(e){Yn.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.m__ReferenceId=e._ReferenceId)},er.prototype._handleRetrieveResult=function(e,t){Yn.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},er.prototype.track=function(){return this.context.trackedObjects.add(this),this},er.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},er.prototype.toJSON=function(){return C(this,{saved:this._S},{body:this._B,contentControls:this._C,customXmlParts:this._Cu,properties:this._P,sections:this._Se,settings:this._Set})},er.prototype.setMockData=function(e){T(this,e)},er.prototype.ensureUnchanged=function(e){h(this,e)},er);function er(){return null!==Yn&&Yn.apply(this,arguments)||this}a.DocumentCreated=$n;var tr,nr="DocumentProperties",rr=(tr=OfficeExtension.ClientObject,__extends(ir,tr),Object.defineProperty(ir.prototype,"_className",{get:function(){return"DocumentProperties"},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","title","subject","author","keywords","comments","template","lastAuthor","revisionNumber","applicationName","lastPrintDate","creationDate","lastSaveTime","security","category","format","manager","company"]},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Title","Subject","Author","Keywords","Comments","Template","LastAuthor","RevisionNumber","ApplicationName","LastPrintDate","CreationDate","LastSaveTime","Security","Category","Format","Manager","Company"]},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!1,!1,!1,!1,!1,!1,!1,!1,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"_navigationPropertyNames",{get:function(){return["customProperties"]},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"customProperties",{get:function(){return this._Cu||(this._Cu=t(a.CustomPropertyCollection,this,"CustomProperties",!0,4)),this._Cu},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"applicationName",{get:function(){return _("applicationName",this._A,nr,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"author",{get:function(){return _("author",this._Au,nr,this._isNull),this._Au},set:function(e){this._Au=e,g(this,"Author",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"category",{get:function(){return _("category",this._C,nr,this._isNull),this._C},set:function(e){this._C=e,g(this,"Category",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"comments",{get:function(){return _("comments",this._Co,nr,this._isNull),this._Co},set:function(e){this._Co=e,g(this,"Comments",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"company",{get:function(){return _("company",this._Com,nr,this._isNull),this._Com},set:function(e){this._Com=e,g(this,"Company",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"creationDate",{get:function(){return _("creationDate",this._Cr,nr,this._isNull),this._Cr},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"format",{get:function(){return _("format",this._F,nr,this._isNull),this._F},set:function(e){this._F=e,g(this,"Format",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"keywords",{get:function(){return _("keywords",this._K,nr,this._isNull),this._K},set:function(e){this._K=e,g(this,"Keywords",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"lastAuthor",{get:function(){return _("lastAuthor",this._L,nr,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"lastPrintDate",{get:function(){return _("lastPrintDate",this._La,nr,this._isNull),this._La},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"lastSaveTime",{get:function(){return _("lastSaveTime",this._Las,nr,this._isNull),this._Las},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"manager",{get:function(){return _("manager",this._M,nr,this._isNull),this._M},set:function(e){this._M=e,g(this,"Manager",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"revisionNumber",{get:function(){return _("revisionNumber",this._R,nr,this._isNull),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"security",{get:function(){return _("security",this._S,nr,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"subject",{get:function(){return _("subject",this._Su,nr,this._isNull),this._Su},set:function(e){this._Su=e,g(this,"Subject",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"template",{get:function(){return _("template",this._T,nr,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"title",{get:function(){return _("title",this._Ti,nr,this._isNull),this._Ti},set:function(e){this._Ti=e,g(this,"Title",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,nr,this._isNull),this.__R},enumerable:!0,configurable:!0}),ir.prototype.set=function(e,t){this._recursivelySet(e,t,["title","subject","author","keywords","comments","category","format","manager","company"],[],["customProperties"])},ir.prototype.update=function(e){this._recursivelyUpdate(e)},ir.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},ir.prototype._handleResult=function(e){if(tr.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.ApplicationName)||(this._A=t.ApplicationName),m(t.Author)||(this._Au=t.Author),m(t.Category)||(this._C=t.Category),m(t.Comments)||(this._Co=t.Comments),m(t.Company)||(this._Com=t.Company),m(t.CreationDate)||(this._Cr=S(t.CreationDate)),m(t.Format)||(this._F=t.Format),m(t.Keywords)||(this._K=t.Keywords),m(t.LastAuthor)||(this._L=t.LastAuthor),m(t.LastPrintDate)||(this._La=S(t.LastPrintDate)),m(t.LastSaveTime)||(this._Las=S(t.LastSaveTime)),m(t.Manager)||(this._M=t.Manager),m(t.RevisionNumber)||(this._R=t.RevisionNumber),m(t.Security)||(this._S=t.Security),m(t.Subject)||(this._Su=t.Subject),m(t.Template)||(this._T=t.Template),m(t.Title)||(this._Ti=t.Title),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["customProperties","CustomProperties"])}},ir.prototype.load=function(e){return v(this,e)},ir.prototype.retrieve=function(e){return O(this,e)},ir.prototype._handleIdResult=function(e){tr.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},ir.prototype._handleRetrieveResult=function(e,t){if(tr.prototype._handleRetrieveResult.call(this,e,t),!y(e)){var n=e;m(n.CreationDate)||(n.creationDate=S(n.creationDate)),m(n.LastPrintDate)||(n.lastPrintDate=S(n.lastPrintDate)),m(n.LastSaveTime)||(n.lastSaveTime=S(n.lastSaveTime)),I(this,e,t)}},ir.prototype.track=function(){return this.context.trackedObjects.add(this),this},ir.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ir.prototype.toJSON=function(){return C(this,{applicationName:this._A,author:this._Au,category:this._C,comments:this._Co,company:this._Com,creationDate:this._Cr,format:this._F,keywords:this._K,lastAuthor:this._L,lastPrintDate:this._La,lastSaveTime:this._Las,manager:this._M,revisionNumber:this._R,security:this._S,subject:this._Su,template:this._T,title:this._Ti},{customProperties:this._Cu})},ir.prototype.setMockData=function(e){T(this,e)},ir.prototype.ensureUnchanged=function(e){h(this,e)},ir);function ir(){return null!==tr&&tr.apply(this,arguments)||this}a.DocumentProperties=rr;var or,ar=(or=OfficeExtension.ClientObject,__extends(sr,or),Object.defineProperty(sr.prototype,"_className",{get:function(){return"DropDownListContentControl"},enumerable:!0,configurable:!0}),Object.defineProperty(sr.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(sr.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(sr.prototype,"_navigationPropertyNames",{get:function(){return["listItems"]},enumerable:!0,configurable:!0}),Object.defineProperty(sr.prototype,"listItems",{get:function(){return this._L||(this._L=t(a.ContentControlListItemCollection,this,"ListItems",!0,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(sr.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,"DropDownListContentControl",this._isNull),this.__R},enumerable:!0,configurable:!0}),sr.prototype.addListItem=function(e,t,n){return p(a.ContentControlListItem,this,"AddListItem",0,[e,t,n],!1,!0,null,0)},sr.prototype.deleteAllListItems=function(){d(this,"DeleteAllListItems",0,[],0,0)},sr.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},sr.prototype._handleResult=function(e){if(or.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["listItems","ListItems"])}},sr.prototype.load=function(e){return v(this,e)},sr.prototype.retrieve=function(e){return O(this,e)},sr.prototype._handleIdResult=function(e){or.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},sr.prototype._handleRetrieveResult=function(e,t){or.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},sr.prototype.track=function(){return this.context.trackedObjects.add(this),this},sr.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},sr.prototype.toJSON=function(){return C(this,{},{})},sr);function sr(){return null!==or&&or.apply(this,arguments)||this}a.DropDownListContentControl=ar;var cr,lr=(cr=OfficeExtension.ClientObject,__extends(ur,cr),Object.defineProperty(ur.prototype,"_className",{get:function(){return"ComboBoxContentControl"},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"_navigationPropertyNames",{get:function(){return["listItems"]},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"listItems",{get:function(){return this._L||(this._L=t(a.ContentControlListItemCollection,this,"ListItems",!0,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,"ComboBoxContentControl",this._isNull),this.__R},enumerable:!0,configurable:!0}),ur.prototype.addListItem=function(e,t,n){return p(a.ContentControlListItem,this,"AddListItem",0,[e,t,n],!1,!0,null,0)},ur.prototype.deleteAllListItems=function(){d(this,"DeleteAllListItems",0,[],0,0)},ur.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},ur.prototype._handleResult=function(e){if(cr.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["listItems","ListItems"])}},ur.prototype.load=function(e){return v(this,e)},ur.prototype.retrieve=function(e){return O(this,e)},ur.prototype._handleIdResult=function(e){cr.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},ur.prototype._handleRetrieveResult=function(e,t){cr.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},ur.prototype.track=function(){return this.context.trackedObjects.add(this),this},ur.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ur.prototype.toJSON=function(){return C(this,{},{})},ur);function ur(){return null!==cr&&cr.apply(this,arguments)||this}a.ComboBoxContentControl=lr;var pr,fr="Field",dr=(pr=OfficeExtension.ClientObject,__extends(hr,pr),Object.defineProperty(hr.prototype,"_className",{get:function(){return"Field"},enumerable:!0,configurable:!0}),Object.defineProperty(hr.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId","code","type","kind","showCodes","locked","data"]},enumerable:!0,configurable:!0}),Object.defineProperty(hr.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId","Code","Type","Kind","ShowCodes","Locked","Data"]},enumerable:!0,configurable:!0}),Object.defineProperty(hr.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!1,!1,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(hr.prototype,"_navigationPropertyNames",{get:function(){return["result","parentBody","parentContentControl","parentContentControlOrNullObject","parentTable","parentTableOrNullObject","parentTableCell","parentTableCellOrNullObject"]},enumerable:!0,configurable:!0}),Object.defineProperty(hr.prototype,"parentBody",{get:function(){return this._P||(this._P=t(a.Body,this,"ParentBody",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(hr.prototype,"parentContentControl",{get:function(){return this._Pa||(this._Pa=t(a.ContentControl,this,"ParentContentControl",!1,4)),this._Pa},enumerable:!0,configurable:!0}),Object.defineProperty(hr.prototype,"parentContentControlOrNullObject",{get:function(){return this._Par||(this._Par=t(a.ContentControl,this,"ParentContentControlOrNullObject",!1,4)),this._Par},enumerable:!0,configurable:!0}),Object.defineProperty(hr.prototype,"parentTable",{get:function(){return this._Pare||(this._Pare=t(a.Table,this,"ParentTable",!1,4)),this._Pare},enumerable:!0,configurable:!0}),Object.defineProperty(hr.prototype,"parentTableCell",{get:function(){return this._Paren||(this._Paren=t(a.TableCell,this,"ParentTableCell",!1,4)),this._Paren},enumerable:!0,configurable:!0}),Object.defineProperty(hr.prototype,"parentTableCellOrNullObject",{get:function(){return this._Parent||(this._Parent=t(a.TableCell,this,"ParentTableCellOrNullObject",!1,4)),this._Parent},enumerable:!0,configurable:!0}),Object.defineProperty(hr.prototype,"parentTableOrNullObject",{get:function(){return this._ParentT||(this._ParentT=t(a.Table,this,"ParentTableOrNullObject",!1,4)),this._ParentT},enumerable:!0,configurable:!0}),Object.defineProperty(hr.prototype,"result",{get:function(){return this._R||(this._R=t(a.Range,this,"Result",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(hr.prototype,"code",{get:function(){return _("code",this._C,fr,this._isNull),this._C},set:function(e){this._C=e,g(this,"Code",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(hr.prototype,"data",{get:function(){return _("data",this._D,fr,this._isNull),b("Field.data",u,"1.5",l),this._D},set:function(e){this._D=e,g(this,"Data",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(hr.prototype,"kind",{get:function(){return _("kind",this._K,fr,this._isNull),b("Field.kind",u,"1.5",l),this._K},enumerable:!0,configurable:!0}),Object.defineProperty(hr.prototype,"locked",{get:function(){return _("locked",this._L,fr,this._isNull),b("Field.locked",u,"1.5",l),this._L},set:function(e){this._L=e,g(this,"Locked",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(hr.prototype,"showCodes",{get:function(){return _("showCodes",this._S,fr,this._isNull),b("Field.showCodes","WordApiDesktop","1.1",l),this._S},set:function(e){this._S=e,g(this,"ShowCodes",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(hr.prototype,"type",{get:function(){return _("type",this._T,fr,this._isNull),b("Field.type",u,"1.5",l),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(hr.prototype,"_Id",{get:function(){return _("_Id",this.__I,fr,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(hr.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,fr,this._isNull),this.__R},enumerable:!0,configurable:!0}),hr.prototype.set=function(e,t){this._recursivelySet(e,t,["code","showCodes","locked","data"],["result"],["parentBody","parentContentControl","parentContentControlOrNullObject","parentTable","parentTableCell","parentTableCellOrNullObject","parentTableOrNullObject"])},hr.prototype.update=function(e){this._recursivelyUpdate(e)},hr.prototype.delete=function(){b("Field.delete",u,"1.5",l),d(this,"Delete",0,[],0,0)},hr.prototype.getNext=function(){return p(a.Field,this,"GetNext",1,[],!1,!1,null,4)},hr.prototype.getNextOrNullObject=function(){return p(a.Field,this,"GetNextOrNullObject",1,[],!1,!1,null,4)},hr.prototype.select=function(e){b("Field.select",u,"1.5",l),d(this,"Select",1,[e],4,0)},hr.prototype.updateResult=function(){b("Field.updateResult",u,"1.5",l),d(this,"UpdateResult",0,[],0,0)},hr.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},hr.prototype._handleResult=function(e){if(pr.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Code)||(this._C=t.Code),m(t.Data)||(this._D=t.Data),m(t.Kind)||(this._K=t.Kind),m(t.Locked)||(this._L=t.Locked),m(t.ShowCodes)||(this._S=t.ShowCodes),m(t.Type)||(this._T=t.Type),m(t._Id)||(this.__I=t._Id),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["parentBody","ParentBody","parentContentControl","ParentContentControl","parentContentControlOrNullObject","ParentContentControlOrNullObject","parentTable","ParentTable","parentTableCell","ParentTableCell","parentTableCellOrNullObject","ParentTableCellOrNullObject","parentTableOrNullObject","ParentTableOrNullObject","result","Result"])}},hr.prototype.load=function(e){return v(this,e)},hr.prototype.retrieve=function(e){return O(this,e)},hr.prototype._handleIdResult=function(e){pr.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e._Id)||(this.__I=e._Id))},hr.prototype._handleRetrieveResult=function(e,t){pr.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},hr.prototype.track=function(){return this.context.trackedObjects.add(this),this},hr.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},hr.prototype.toJSON=function(){return C(this,{code:this._C,data:this._D,kind:this._K,locked:this._L,showCodes:this._S,type:this._T},{result:this._R})},hr.prototype.setMockData=function(e){T(this,e)},hr.prototype.ensureUnchanged=function(e){h(this,e)},hr);function hr(){return null!==pr&&pr.apply(this,arguments)||this}a.Field=dr;var gr,yr="FieldCollection",mr=(gr=OfficeExtension.ClientObject,__extends(_r,gr),Object.defineProperty(_r.prototype,"_className",{get:function(){return"FieldCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(_r.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(_r.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(_r.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(_r.prototype,"items",{get:function(){return _("items",this.m__items,yr,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(_r.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,yr,this._isNull),this.__R},enumerable:!0,configurable:!0}),_r.prototype.getFirst=function(){return p(a.Field,this,"GetFirst",1,[],!1,!1,null,4)},_r.prototype.getFirstOrNullObject=function(){return p(a.Field,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},_r.prototype._GetItem=function(e){return r(a.Field,this,[e])},_r.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},_r.prototype.getByTypes=function(e){return b("FieldCollection.getByTypes",u,"1.5",l),p(a.FieldCollection,this,"getByTypes",1,[e],!0,!1,null,4)},_r.prototype._handleResult=function(e){if(gr.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Field,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},_r.prototype.load=function(e){return v(this,e)},_r.prototype.retrieve=function(e){return O(this,e)},_r.prototype._handleIdResult=function(e){gr.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},_r.prototype._handleRetrieveResult=function(e,t){var n=this;gr.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.Field,!0,n,e,t)})},_r.prototype.track=function(){return this.context.trackedObjects.add(this),this},_r.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},_r.prototype.toJSON=function(){return C(this,{},{},this.m__items)},_r.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.Field,!0,n,e,t)},function(e){return n.m__items=e})},_r);function _r(){return null!==gr&&gr.apply(this,arguments)||this}a.FieldCollection=mr;var br,vr="Font",Or=(br=OfficeExtension.ClientObject,__extends(Cr,br),Object.defineProperty(Cr.prototype,"_className",{get:function(){return"Font"},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","name","size","bold","italic","color","underline","subscript","superscript","strikeThrough","doubleStrikeThrough","highlightColor","hidden","smallCaps","allCaps","boldBidirectional","colorIndex","colorIndexBidirectional","contextualAlternates","diacriticColor","disableCharacterSpaceGrid","emboss","emphasisMark","engrave","italicBidirectional","kerning","ligature","nameAscii","nameBidirectional","nameFarEast","nameOther","numberForm","numberSpacing","outline","position","scaling","shadow","sizeBidirectional","spacing","stylisticSet","underlineColor"]},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Name","Size","Bold","Italic","Color","Underline","Subscript","Superscript","StrikeThrough","DoubleStrikeThrough","HighlightColor","Hidden","SmallCaps","AllCaps","BoldBidirectional","ColorIndex","ColorIndexBidirectional","ContextualAlternates","DiacriticColor","DisableCharacterSpaceGrid","Emboss","EmphasisMark","Engrave","ItalicBidirectional","Kerning","Ligature","NameAscii","NameBidirectional","NameFarEast","NameOther","NumberForm","NumberSpacing","Outline","Position","Scaling","Shadow","SizeBidirectional","Spacing","StylisticSet","UnderlineColor"]},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"_navigationPropertyNames",{get:function(){return["borders","fill","glow","line","reflection","textColor","textShadow","threeDimensionalFormat"]},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"borders",{get:function(){return b("Font.borders","WordApiDesktop","1.3",l),this._Bor||(this._Bor=t(a.BorderUniversalCollection,this,"Borders",!0,4)),this._Bor},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"fill",{get:function(){return b("Font.fill","WordApiDesktop","1.3",l),this._F||(this._F=t(a.FillFormat,this,"Fill",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"glow",{get:function(){return b("Font.glow","WordApiDesktop","1.3",l),this._G||(this._G=t(a.GlowFormat,this,"Glow",!1,4)),this._G},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"line",{get:function(){return b("Font.line","WordApiDesktop","1.3",l),this._Li||(this._Li=t(a.LineFormat,this,"Line",!1,4)),this._Li},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"reflection",{get:function(){return b("Font.reflection","WordApiDesktop","1.3",l),this._R||(this._R=t(a.ReflectionFormat,this,"Reflection",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"textColor",{get:function(){return b("Font.textColor","WordApiDesktop","1.3",l),this._T||(this._T=t(a.ColorFormat,this,"TextColor",!1,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"textShadow",{get:function(){return b("Font.textShadow","WordApiDesktop","1.3",l),this._Te||(this._Te=t(a.ShadowFormat,this,"TextShadow",!1,4)),this._Te},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"threeDimensionalFormat",{get:function(){return b("Font.threeDimensionalFormat","WordApiDesktop","1.3",l),this._Th||(this._Th=t(a.ThreeDimensionalFormat,this,"ThreeDimensionalFormat",!1,4)),this._Th},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"allCaps",{get:function(){return _("allCaps",this._A,vr,this._isNull),b("Font.allCaps","WordApiDesktop","1.3",l),this._A},set:function(e){this._A=e,g(this,"AllCaps",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"bold",{get:function(){return _("bold",this._B,vr,this._isNull),this._B},set:function(e){this._B=e,g(this,"Bold",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"boldBidirectional",{get:function(){return _("boldBidirectional",this._Bo,vr,this._isNull),b("Font.boldBidirectional","WordApiDesktop","1.3",l),this._Bo},set:function(e){this._Bo=e,g(this,"BoldBidirectional",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"color",{get:function(){return _("color",this._C,vr,this._isNull),this._C},set:function(e){this._C=e,g(this,"Color",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"colorIndex",{get:function(){return _("colorIndex",this._Co,vr,this._isNull),b("Font.colorIndex","WordApiDesktop","1.3",l),this._Co},set:function(e){this._Co=e,g(this,"ColorIndex",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"colorIndexBidirectional",{get:function(){return _("colorIndexBidirectional",this._Col,vr,this._isNull),b("Font.colorIndexBidirectional","WordApiDesktop","1.3",l),this._Col},set:function(e){this._Col=e,g(this,"ColorIndexBidirectional",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"contextualAlternates",{get:function(){return _("contextualAlternates",this._Con,vr,this._isNull),b("Font.contextualAlternates","WordApiDesktop","1.3",l),this._Con},set:function(e){this._Con=e,g(this,"ContextualAlternates",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"diacriticColor",{get:function(){return _("diacriticColor",this._D,vr,this._isNull),b("Font.diacriticColor","WordApiDesktop","1.3",l),this._D},set:function(e){this._D=e,g(this,"DiacriticColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"disableCharacterSpaceGrid",{get:function(){return _("disableCharacterSpaceGrid",this._Di,vr,this._isNull),b("Font.disableCharacterSpaceGrid","WordApiDesktop","1.3",l),this._Di},set:function(e){this._Di=e,g(this,"DisableCharacterSpaceGrid",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"doubleStrikeThrough",{get:function(){return _("doubleStrikeThrough",this._Do,vr,this._isNull),this._Do},set:function(e){this._Do=e,g(this,"DoubleStrikeThrough",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"emboss",{get:function(){return _("emboss",this._E,vr,this._isNull),b("Font.emboss","WordApiDesktop","1.3",l),this._E},set:function(e){this._E=e,g(this,"Emboss",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"emphasisMark",{get:function(){return _("emphasisMark",this._Em,vr,this._isNull),b("Font.emphasisMark","WordApiDesktop","1.3",l),this._Em},set:function(e){this._Em=e,g(this,"EmphasisMark",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"engrave",{get:function(){return _("engrave",this._En,vr,this._isNull),b("Font.engrave","WordApiDesktop","1.3",l),this._En},set:function(e){this._En=e,g(this,"Engrave",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"hidden",{get:function(){return _("hidden",this._H,vr,this._isNull),b("Font.hidden","WordApiDesktop","1.2",l),this._H},set:function(e){this._H=e,g(this,"Hidden",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"highlightColor",{get:function(){return _("highlightColor",this._Hi,vr,this._isNull),this._Hi},set:function(e){this._Hi=e,g(this,"HighlightColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"italic",{get:function(){return _("italic",this._I,vr,this._isNull),this._I},set:function(e){this._I=e,g(this,"Italic",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"italicBidirectional",{get:function(){return _("italicBidirectional",this._It,vr,this._isNull),b("Font.italicBidirectional","WordApiDesktop","1.3",l),this._It},set:function(e){this._It=e,g(this,"ItalicBidirectional",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"kerning",{get:function(){return _("kerning",this._K,vr,this._isNull),b("Font.kerning","WordApiDesktop","1.3",l),this._K},set:function(e){this._K=e,g(this,"Kerning",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"ligature",{get:function(){return _("ligature",this._L,vr,this._isNull),b("Font.ligature","WordApiDesktop","1.3",l),this._L},set:function(e){this._L=e,g(this,"Ligature",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"name",{get:function(){return _("name",this._N,vr,this._isNull),this._N},set:function(e){this._N=e,g(this,"Name",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"nameAscii",{get:function(){return _("nameAscii",this._Na,vr,this._isNull),b("Font.nameAscii","WordApiDesktop","1.3",l),this._Na},set:function(e){this._Na=e,g(this,"NameAscii",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"nameBidirectional",{get:function(){return _("nameBidirectional",this._Nam,vr,this._isNull),b("Font.nameBidirectional","WordApiDesktop","1.3",l),this._Nam},set:function(e){this._Nam=e,g(this,"NameBidirectional",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"nameFarEast",{get:function(){return _("nameFarEast",this._Name,vr,this._isNull),b("Font.nameFarEast","WordApiDesktop","1.3",l),this._Name},set:function(e){this._Name=e,g(this,"NameFarEast",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"nameOther",{get:function(){return _("nameOther",this._NameO,vr,this._isNull),b("Font.nameOther","WordApiDesktop","1.3",l),this._NameO},set:function(e){this._NameO=e,g(this,"NameOther",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"numberForm",{get:function(){return _("numberForm",this._Nu,vr,this._isNull),b("Font.numberForm","WordApiDesktop","1.3",l),this._Nu},set:function(e){this._Nu=e,g(this,"NumberForm",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"numberSpacing",{get:function(){return _("numberSpacing",this._Num,vr,this._isNull),b("Font.numberSpacing","WordApiDesktop","1.3",l),this._Num},set:function(e){this._Num=e,g(this,"NumberSpacing",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"outline",{get:function(){return _("outline",this._O,vr,this._isNull),b("Font.outline","WordApiDesktop","1.3",l),this._O},set:function(e){this._O=e,g(this,"Outline",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"position",{get:function(){return _("position",this._P,vr,this._isNull),b("Font.position","WordApiDesktop","1.3",l),this._P},set:function(e){this._P=e,g(this,"Position",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"scaling",{get:function(){return _("scaling",this._S,vr,this._isNull),b("Font.scaling","WordApiDesktop","1.3",l),this._S},set:function(e){this._S=e,g(this,"Scaling",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"shadow",{get:function(){return _("shadow",this._Sh,vr,this._isNull),b("Font.shadow","WordApiDesktop","1.3",l),this._Sh},set:function(e){this._Sh=e,g(this,"Shadow",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"size",{get:function(){return _("size",this._Si,vr,this._isNull),this._Si},set:function(e){this._Si=e,g(this,"Size",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"sizeBidirectional",{get:function(){return _("sizeBidirectional",this._Siz,vr,this._isNull),b("Font.sizeBidirectional","WordApiDesktop","1.3",l),this._Siz},set:function(e){this._Siz=e,g(this,"SizeBidirectional",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"smallCaps",{get:function(){return _("smallCaps",this._Sm,vr,this._isNull),b("Font.smallCaps","WordApiDesktop","1.3",l),this._Sm},set:function(e){this._Sm=e,g(this,"SmallCaps",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"spacing",{get:function(){return _("spacing",this._Sp,vr,this._isNull),b("Font.spacing","WordApiDesktop","1.3",l),this._Sp},set:function(e){this._Sp=e,g(this,"Spacing",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"strikeThrough",{get:function(){return _("strikeThrough",this._St,vr,this._isNull),this._St},set:function(e){this._St=e,g(this,"StrikeThrough",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"stylisticSet",{get:function(){return _("stylisticSet",this._Sty,vr,this._isNull),b("Font.stylisticSet","WordApiDesktop","1.3",l),this._Sty},set:function(e){this._Sty=e,g(this,"StylisticSet",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"subscript",{get:function(){return _("subscript",this._Su,vr,this._isNull),this._Su},set:function(e){this._Su=e,g(this,"Subscript",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"superscript",{get:function(){return _("superscript",this._Sup,vr,this._isNull),this._Sup},set:function(e){this._Sup=e,g(this,"Superscript",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"underline",{get:function(){return _("underline",this._U,vr,this._isNull),this._U},set:function(e){this._U=e,g(this,"Underline",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"underlineColor",{get:function(){return _("underlineColor",this._Un,vr,this._isNull),b("Font.underlineColor","WordApiDesktop","1.3",l),this._Un},set:function(e){this._Un=e,g(this,"UnderlineColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cr.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,vr,this._isNull),this.__R},enumerable:!0,configurable:!0}),Cr.prototype.set=function(e,t){this._recursivelySet(e,t,["name","size","bold","italic","color","underline","subscript","superscript","strikeThrough","doubleStrikeThrough","highlightColor","hidden","smallCaps","allCaps","boldBidirectional","colorIndex","colorIndexBidirectional","contextualAlternates","diacriticColor","disableCharacterSpaceGrid","emboss","emphasisMark","engrave","italicBidirectional","kerning","ligature","nameAscii","nameBidirectional","nameFarEast","nameOther","numberForm","numberSpacing","outline","position","scaling","shadow","sizeBidirectional","spacing","stylisticSet","underlineColor"],["fill","glow","line","reflection","textColor","textShadow","threeDimensionalFormat"],["borders"])},Cr.prototype.update=function(e){this._recursivelyUpdate(e)},Cr.prototype.decreaseFontSize=function(){b("Font.decreaseFontSize","WordApiDesktop","1.3",l),d(this,"DecreaseFontSize",0,[],0,0)},Cr.prototype.increaseFontSize=function(){b("Font.increaseFontSize","WordApiDesktop","1.3",l),d(this,"IncreaseFontSize",0,[],0,0)},Cr.prototype.reset=function(){b("Font.reset","WordApiDesktop","1.3",l),d(this,"Reset",0,[],0,0)},Cr.prototype.setAsTemplateDefault=function(){b("Font.setAsTemplateDefault","WordApiDesktop","1.3",l),d(this,"SetAsTemplateDefault",0,[],0,0)},Cr.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Cr.prototype._handleResult=function(e){if(br.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.AllCaps)||(this._A=t.AllCaps),m(t.Bold)||(this._B=t.Bold),m(t.BoldBidirectional)||(this._Bo=t.BoldBidirectional),m(t.Color)||(this._C=t.Color),m(t.ColorIndex)||(this._Co=t.ColorIndex),m(t.ColorIndexBidirectional)||(this._Col=t.ColorIndexBidirectional),m(t.ContextualAlternates)||(this._Con=t.ContextualAlternates),m(t.DiacriticColor)||(this._D=t.DiacriticColor),m(t.DisableCharacterSpaceGrid)||(this._Di=t.DisableCharacterSpaceGrid),m(t.DoubleStrikeThrough)||(this._Do=t.DoubleStrikeThrough),m(t.Emboss)||(this._E=t.Emboss),m(t.EmphasisMark)||(this._Em=t.EmphasisMark),m(t.Engrave)||(this._En=t.Engrave),m(t.Hidden)||(this._H=t.Hidden),m(t.HighlightColor)||(this._Hi=t.HighlightColor),m(t.Italic)||(this._I=t.Italic),m(t.ItalicBidirectional)||(this._It=t.ItalicBidirectional),m(t.Kerning)||(this._K=t.Kerning),m(t.Ligature)||(this._L=t.Ligature),m(t.Name)||(this._N=t.Name),m(t.NameAscii)||(this._Na=t.NameAscii),m(t.NameBidirectional)||(this._Nam=t.NameBidirectional),m(t.NameFarEast)||(this._Name=t.NameFarEast),m(t.NameOther)||(this._NameO=t.NameOther),m(t.NumberForm)||(this._Nu=t.NumberForm),m(t.NumberSpacing)||(this._Num=t.NumberSpacing),m(t.Outline)||(this._O=t.Outline),m(t.Position)||(this._P=t.Position),m(t.Scaling)||(this._S=t.Scaling),m(t.Shadow)||(this._Sh=t.Shadow),m(t.Size)||(this._Si=t.Size),m(t.SizeBidirectional)||(this._Siz=t.SizeBidirectional),m(t.SmallCaps)||(this._Sm=t.SmallCaps),m(t.Spacing)||(this._Sp=t.Spacing),m(t.StrikeThrough)||(this._St=t.StrikeThrough),m(t.StylisticSet)||(this._Sty=t.StylisticSet),m(t.Subscript)||(this._Su=t.Subscript),m(t.Superscript)||(this._Sup=t.Superscript),m(t.Underline)||(this._U=t.Underline),m(t.UnderlineColor)||(this._Un=t.UnderlineColor),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["borders","Borders","fill","Fill","glow","Glow","line","Line","reflection","Reflection","textColor","TextColor","textShadow","TextShadow","threeDimensionalFormat","ThreeDimensionalFormat"])}},Cr.prototype.load=function(e){return v(this,e)},Cr.prototype.retrieve=function(e){return O(this,e)},Cr.prototype._handleIdResult=function(e){br.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Cr.prototype._handleRetrieveResult=function(e,t){br.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Cr.prototype.track=function(){return this.context.trackedObjects.add(this),this},Cr.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Cr.prototype.toJSON=function(){return C(this,{allCaps:this._A,bold:this._B,boldBidirectional:this._Bo,color:this._C,colorIndex:this._Co,colorIndexBidirectional:this._Col,contextualAlternates:this._Con,diacriticColor:this._D,disableCharacterSpaceGrid:this._Di,doubleStrikeThrough:this._Do,emboss:this._E,emphasisMark:this._Em,engrave:this._En,hidden:this._H,highlightColor:this._Hi,italic:this._I,italicBidirectional:this._It,kerning:this._K,ligature:this._L,name:this._N,nameAscii:this._Na,nameBidirectional:this._Nam,nameFarEast:this._Name,nameOther:this._NameO,numberForm:this._Nu,numberSpacing:this._Num,outline:this._O,position:this._P,scaling:this._S,shadow:this._Sh,size:this._Si,sizeBidirectional:this._Siz,smallCaps:this._Sm,spacing:this._Sp,strikeThrough:this._St,stylisticSet:this._Sty,subscript:this._Su,superscript:this._Sup,underline:this._U,underlineColor:this._Un},{borders:this._Bor,fill:this._F,glow:this._G,line:this._Li,reflection:this._R,textColor:this._T,textShadow:this._Te,threeDimensionalFormat:this._Th})},Cr.prototype.setMockData=function(e){T(this,e)},Cr.prototype.ensureUnchanged=function(e){h(this,e)},Cr);function Cr(){return null!==br&&br.apply(this,arguments)||this}a.Font=Or;var Pr,Rr="Hyperlink",Sr=(Pr=OfficeExtension.ClientObject,__extends(Ir,Pr),Object.defineProperty(Ir.prototype,"_className",{get:function(){return"Hyperlink"},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","address","emailSubject","isExtraInfoRequired","name","screenTip","subAddress","target","textToDisplay","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Address","EmailSubject","IsExtraInfoRequired","Name","ScreenTip","SubAddress","Target","TextToDisplay","Type"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!1,!1,!0,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"_navigationPropertyNames",{get:function(){return["range"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"range",{get:function(){return this._R||(this._R=t(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"address",{get:function(){return _("address",this._A,Rr,this._isNull),this._A},set:function(e){this._A=e,g(this,"Address",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"emailSubject",{get:function(){return _("emailSubject",this._E,Rr,this._isNull),this._E},set:function(e){this._E=e,g(this,"EmailSubject",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"isExtraInfoRequired",{get:function(){return _("isExtraInfoRequired",this._I,Rr,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"name",{get:function(){return _("name",this._N,Rr,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"screenTip",{get:function(){return _("screenTip",this._S,Rr,this._isNull),this._S},set:function(e){this._S=e,g(this,"ScreenTip",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"subAddress",{get:function(){return _("subAddress",this._Su,Rr,this._isNull),this._Su},set:function(e){this._Su=e,g(this,"SubAddress",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"target",{get:function(){return _("target",this._T,Rr,this._isNull),this._T},set:function(e){this._T=e,g(this,"Target",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"textToDisplay",{get:function(){return _("textToDisplay",this._Te,Rr,this._isNull),this._Te},set:function(e){this._Te=e,g(this,"TextToDisplay",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"type",{get:function(){return _("type",this._Ty,Rr,this._isNull),this._Ty},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Rr,this._isNull),this.__R},enumerable:!0,configurable:!0}),Ir.prototype.set=function(e,t){this._recursivelySet(e,t,["address","emailSubject","screenTip","subAddress","target","textToDisplay"],["range"],[])},Ir.prototype.update=function(e){this._recursivelyUpdate(e)},Ir.prototype.addToFavorites=function(){d(this,"AddToFavorites",0,[],0,0)},Ir.prototype.createNewDocument=function(e,t,n){d(this,"CreateNewDocument",0,[e,t,n],0,0)},Ir.prototype.delete=function(){d(this,"Delete",0,[],0,0)},Ir.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Ir.prototype._handleResult=function(e){if(Pr.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Address)||(this._A=t.Address),m(t.EmailSubject)||(this._E=t.EmailSubject),m(t.IsExtraInfoRequired)||(this._I=t.IsExtraInfoRequired),m(t.Name)||(this._N=t.Name),m(t.ScreenTip)||(this._S=t.ScreenTip),m(t.SubAddress)||(this._Su=t.SubAddress),m(t.Target)||(this._T=t.Target),m(t.TextToDisplay)||(this._Te=t.TextToDisplay),m(t.Type)||(this._Ty=t.Type),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["range","Range"])}},Ir.prototype.load=function(e){return v(this,e)},Ir.prototype.retrieve=function(e){return O(this,e)},Ir.prototype._handleIdResult=function(e){Pr.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Ir.prototype._handleRetrieveResult=function(e,t){Pr.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Ir.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ir.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ir.prototype.toJSON=function(){return C(this,{address:this._A,emailSubject:this._E,isExtraInfoRequired:this._I,name:this._N,screenTip:this._S,subAddress:this._Su,target:this._T,textToDisplay:this._Te,type:this._Ty},{range:this._R})},Ir.prototype.setMockData=function(e){T(this,e)},Ir.prototype.ensureUnchanged=function(e){h(this,e)},Ir);function Ir(){return null!==Pr&&Pr.apply(this,arguments)||this}a.Hyperlink=Sr;var Tr,Ar="HyperlinkCollection",Nr=(Tr=OfficeExtension.ClientObject,__extends(xr,Tr),Object.defineProperty(xr.prototype,"_className",{get:function(){return"HyperlinkCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(xr.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(xr.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(xr.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(xr.prototype,"items",{get:function(){return _("items",this.m__items,Ar,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(xr.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Ar,this._isNull),this.__R},enumerable:!0,configurable:!0}),xr.prototype.add=function(e,t){return p(a.Hyperlink,this,"Add",0,[e,t],!1,!0,null,0)},xr.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},xr.prototype._handleResult=function(e){if(Tr.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Hyperlink,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},xr.prototype.load=function(e){return v(this,e)},xr.prototype.retrieve=function(e){return O(this,e)},xr.prototype._handleIdResult=function(e){Tr.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},xr.prototype._handleRetrieveResult=function(e,t){var n=this;Tr.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.Hyperlink,!1,n,e,t)})},xr.prototype.track=function(){return this.context.trackedObjects.add(this),this},xr.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},xr.prototype.toJSON=function(){return C(this,{},{},this.m__items)},xr.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.Hyperlink,!1,n,e,t)},function(e){return n.m__items=e})},xr);function xr(){return null!==Tr&&Tr.apply(this,arguments)||this}a.HyperlinkCollection=Nr;var Er,Dr="InlinePicture",jr=(Er=OfficeExtension.ClientObject,__extends(wr,Er),Object.defineProperty(wr.prototype,"_className",{get:function(){return"InlinePicture"},enumerable:!0,configurable:!0}),Object.defineProperty(wr.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId","altTextDescription","altTextTitle","height","hyperlink","lockAspectRatio","width","imageFormat"]},enumerable:!0,configurable:!0}),Object.defineProperty(wr.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId","AltTextDescription","AltTextTitle","Height","Hyperlink","LockAspectRatio","Width","ImageFormat"]},enumerable:!0,configurable:!0}),Object.defineProperty(wr.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!0,!0,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(wr.prototype,"_navigationPropertyNames",{get:function(){return["parentContentControl","paragraph","parentTableCell","parentTable","parentContentControlOrNullObject","parentTableCellOrNullObject","parentTableOrNullObject"]},enumerable:!0,configurable:!0}),Object.defineProperty(wr.prototype,"paragraph",{get:function(){return b("InlinePicture.paragraph",u,"1.2",l),this._P||(this._P=t(a.Paragraph,this,"Paragraph",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(wr.prototype,"parentContentControl",{get:function(){return this._Pa||(this._Pa=t(a.ContentControl,this,"ParentContentControl",!1,4)),this._Pa},enumerable:!0,configurable:!0}),Object.defineProperty(wr.prototype,"parentContentControlOrNullObject",{get:function(){return b("InlinePicture.parentContentControlOrNullObject",u,"1.3",l),this._Par||(this._Par=t(a.ContentControl,this,"ParentContentControlOrNullObject",!1,4)),this._Par},enumerable:!0,configurable:!0}),Object.defineProperty(wr.prototype,"parentTable",{get:function(){return b("InlinePicture.parentTable",u,"1.3",l),this._Pare||(this._Pare=t(a.Table,this,"ParentTable",!1,4)),this._Pare},enumerable:!0,configurable:!0}),Object.defineProperty(wr.prototype,"parentTableCell",{get:function(){return b("InlinePicture.parentTableCell",u,"1.3",l),this._Paren||(this._Paren=t(a.TableCell,this,"ParentTableCell",!1,4)),this._Paren},enumerable:!0,configurable:!0}),Object.defineProperty(wr.prototype,"parentTableCellOrNullObject",{get:function(){return b("InlinePicture.parentTableCellOrNullObject",u,"1.3",l),this._Parent||(this._Parent=t(a.TableCell,this,"ParentTableCellOrNullObject",!1,4)),this._Parent},enumerable:!0,configurable:!0}),Object.defineProperty(wr.prototype,"parentTableOrNullObject",{get:function(){return b("InlinePicture.parentTableOrNullObject",u,"1.3",l),this._ParentT||(this._ParentT=t(a.Table,this,"ParentTableOrNullObject",!1,4)),this._ParentT},enumerable:!0,configurable:!0}),Object.defineProperty(wr.prototype,"altTextDescription",{get:function(){return _("altTextDescription",this._A,Dr,this._isNull),this._A},set:function(e){this._A=e,g(this,"AltTextDescription",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(wr.prototype,"altTextTitle",{get:function(){return _("altTextTitle",this._Al,Dr,this._isNull),this._Al},set:function(e){this._Al=e,g(this,"AltTextTitle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(wr.prototype,"height",{get:function(){return _("height",this._H,Dr,this._isNull),this._H},set:function(e){this._H=e,g(this,"Height",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(wr.prototype,"hyperlink",{get:function(){return _("hyperlink",this._Hy,Dr,this._isNull),this._Hy},set:function(e){this._Hy=e,g(this,"Hyperlink",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(wr.prototype,"imageFormat",{get:function(){return _("imageFormat",this._I,Dr,this._isNull),b("InlinePicture.imageFormat","WordApiDesktop","1.1",l),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(wr.prototype,"lockAspectRatio",{get:function(){return _("lockAspectRatio",this._L,Dr,this._isNull),this._L},set:function(e){this._L=e,g(this,"LockAspectRatio",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(wr.prototype,"width",{get:function(){return _("width",this._W,Dr,this._isNull),this._W},set:function(e){this._W=e,g(this,"Width",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(wr.prototype,"_Id",{get:function(){return _("_Id",this.__I,Dr,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(wr.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Dr,this._isNull),this.__R},enumerable:!0,configurable:!0}),wr.prototype.set=function(e,t){this._recursivelySet(e,t,["altTextDescription","altTextTitle","height","hyperlink","lockAspectRatio","width"],[],["paragraph","parentContentControl","parentContentControlOrNullObject","parentTable","parentTableCell","parentTableCellOrNullObject","parentTableOrNullObject"])},wr.prototype.update=function(e){this._recursivelyUpdate(e)},wr.prototype.delete=function(){b("InlinePicture.delete",u,"1.2",l),d(this,"Delete",0,[],0,0)},wr.prototype.getBase64ImageSrc=function(){return d(this,"GetBase64ImageSrc",1,[],4,0)},wr.prototype.getNext=function(){return b("InlinePicture.getNext",u,"1.3",l),p(a.InlinePicture,this,"GetNext",1,[],!1,!1,null,4)},wr.prototype.getNextOrNullObject=function(){return b("InlinePicture.getNextOrNullObject",u,"1.3",l),p(a.InlinePicture,this,"GetNextOrNullObject",1,[],!1,!1,null,4)},wr.prototype.getRange=function(e){return b("InlinePicture.getRange",u,"1.3",l),p(a.Range,this,"GetRange",1,[e],!1,!1,null,4)},wr.prototype.insertBreak=function(e,t){b("InlinePicture.insertBreak",u,"1.2",l),d(this,"InsertBreak",0,[e,t],0,0)},wr.prototype.insertContentControl=function(){return p(a.ContentControl,this,"InsertContentControl",0,[],!1,!0,null,0)},wr.prototype.insertFileFromBase64=function(e,t){return b("InlinePicture.insertFileFromBase64",u,"1.2",l),p(a.Range,this,"InsertFileFromBase64",0,[e,t],!1,!0,null,0)},wr.prototype.insertHtml=function(e,t){return b("InlinePicture.insertHtml",u,"1.2",l),p(a.Range,this,"InsertHtml",0,[e,t],!1,!0,null,0)},wr.prototype.insertInlinePictureFromBase64=function(e,t){return b("InlinePicture.insertInlinePictureFromBase64",u,"1.2",l),p(a.InlinePicture,this,"InsertInlinePictureFromBase64",0,[e,t],!1,!0,null,0)},wr.prototype.insertOoxml=function(e,t){return b("InlinePicture.insertOoxml",u,"1.2",l),p(a.Range,this,"InsertOoxml",0,[e,t],!1,!0,null,0)},wr.prototype.insertParagraph=function(e,t){return b("InlinePicture.insertParagraph",u,"1.2",l),p(a.Paragraph,this,"InsertParagraph",0,[e,t],!1,!0,null,0)},wr.prototype.insertText=function(e,t){return b("InlinePicture.insertText",u,"1.2",l),p(a.Range,this,"InsertText",0,[e,t],!1,!0,null,0)},wr.prototype.select=function(e){b("InlinePicture.select",u,"1.2",l),d(this,"Select",1,[e],4,0)},wr.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},wr.prototype._handleResult=function(e){if(Er.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.AltTextDescription)||(this._A=t.AltTextDescription),m(t.AltTextTitle)||(this._Al=t.AltTextTitle),m(t.Height)||(this._H=t.Height),m(t.Hyperlink)||(this._Hy=t.Hyperlink),m(t.ImageFormat)||(this._I=t.ImageFormat),m(t.LockAspectRatio)||(this._L=t.LockAspectRatio),m(t.Width)||(this._W=t.Width),m(t._Id)||(this.__I=t._Id),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["paragraph","Paragraph","parentContentControl","ParentContentControl","parentContentControlOrNullObject","ParentContentControlOrNullObject","parentTable","ParentTable","parentTableCell","ParentTableCell","parentTableCellOrNullObject","ParentTableCellOrNullObject","parentTableOrNullObject","ParentTableOrNullObject"])}},wr.prototype.load=function(e){return v(this,e)},wr.prototype.retrieve=function(e){return O(this,e)},wr.prototype._handleIdResult=function(e){Er.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e._Id)||(this.__I=e._Id))},wr.prototype._handleRetrieveResult=function(e,t){Er.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},wr.prototype.track=function(){return this.context.trackedObjects.add(this),this},wr.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},wr.prototype.toJSON=function(){return C(this,{altTextDescription:this._A,altTextTitle:this._Al,height:this._H,hyperlink:this._Hy,imageFormat:this._I,lockAspectRatio:this._L,width:this._W},{})},wr.prototype.setMockData=function(e){T(this,e)},wr.prototype.ensureUnchanged=function(e){h(this,e)},wr);function wr(){return null!==Er&&Er.apply(this,arguments)||this}a.InlinePicture=jr;var kr,Fr="InlinePictureCollection",Lr=(kr=OfficeExtension.ClientObject,__extends(Mr,kr),Object.defineProperty(Mr.prototype,"_className",{get:function(){return"InlinePictureCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"items",{get:function(){return _("items",this.m__items,Fr,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Fr,this._isNull),this.__R},enumerable:!0,configurable:!0}),Mr.prototype.getFirst=function(){return b("InlinePictureCollection.getFirst",u,"1.3",l),p(a.InlinePicture,this,"GetFirst",1,[],!1,!1,null,4)},Mr.prototype.getFirstOrNullObject=function(){return b("InlinePictureCollection.getFirstOrNullObject",u,"1.3",l),p(a.InlinePicture,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},Mr.prototype._GetItem=function(e){return r(a.InlinePicture,this,[e])},Mr.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Mr.prototype._handleResult=function(e){if(kr.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.InlinePicture,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Mr.prototype.load=function(e){return v(this,e)},Mr.prototype.retrieve=function(e){return O(this,e)},Mr.prototype._handleIdResult=function(e){kr.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Mr.prototype._handleRetrieveResult=function(e,t){var n=this;kr.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.InlinePicture,!0,n,e,t)})},Mr.prototype.track=function(){return this.context.trackedObjects.add(this),this},Mr.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Mr.prototype.toJSON=function(){return C(this,{},{},this.m__items)},Mr.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.InlinePicture,!0,n,e,t)},function(e){return n.m__items=e})},Mr);function Mr(){return null!==kr&&kr.apply(this,arguments)||this}a.InlinePictureCollection=Lr;var Br,Hr="List",Ur=(Br=OfficeExtension.ClientObject,__extends(Wr,Br),Object.defineProperty(Wr.prototype,"_className",{get:function(){return"List"},enumerable:!0,configurable:!0}),Object.defineProperty(Wr.prototype,"_scalarPropertyNames",{get:function(){return["id","_ReferenceId","levelTypes","levelExistences"]},enumerable:!0,configurable:!0}),Object.defineProperty(Wr.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","_ReferenceId","LevelTypes","LevelExistences"]},enumerable:!0,configurable:!0}),Object.defineProperty(Wr.prototype,"_navigationPropertyNames",{get:function(){return["paragraphs"]},enumerable:!0,configurable:!0}),Object.defineProperty(Wr.prototype,"paragraphs",{get:function(){return this._P||(this._P=t(a.ParagraphCollection,this,"Paragraphs",!0,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(Wr.prototype,"id",{get:function(){return _("id",this._I,Hr,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(Wr.prototype,"levelExistences",{get:function(){return _("levelExistences",this._L,Hr,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(Wr.prototype,"levelTypes",{get:function(){return _("levelTypes",this._Le,Hr,this._isNull),this._Le},enumerable:!0,configurable:!0}),Object.defineProperty(Wr.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Hr,this._isNull),this.__R},enumerable:!0,configurable:!0}),Wr.prototype.getLevelFont=function(e){return b("List.getLevelFont","WordApiDesktop","1.1",l),p(a.Font,this,"GetLevelFont",1,[e],!1,!1,null,4)},Wr.prototype.getLevelParagraphs=function(e){return p(a.ParagraphCollection,this,"GetLevelParagraphs",1,[e],!0,!1,null,4)},Wr.prototype.getLevelPicture=function(e){return b("List.getLevelPicture","WordApiDesktop","1.1",l),d(this,"GetLevelPicture",1,[e],4,0)},Wr.prototype.getLevelString=function(e){return d(this,"GetLevelString",1,[e],4,0)},Wr.prototype.insertParagraph=function(e,t){return p(a.Paragraph,this,"InsertParagraph",0,[e,t],!1,!0,null,0)},Wr.prototype.resetLevelFont=function(e,t){b("List.resetLevelFont","WordApiDesktop","1.1",l),d(this,"ResetLevelFont",0,[e,t],0,0)},Wr.prototype.setLevelAlignment=function(e,t){d(this,"SetLevelAlignment",0,[e,t],0,0)},Wr.prototype.setLevelBullet=function(e,t,n,r){d(this,"SetLevelBullet",0,[e,t,n,r],0,0)},Wr.prototype.setLevelIndents=function(e,t,n){d(this,"SetLevelIndents",0,[e,t,n],0,0)},Wr.prototype.setLevelNumbering=function(e,t,n){d(this,"SetLevelNumbering",0,[e,t,n],0,0)},Wr.prototype.setLevelPicture=function(e,t){b("List.setLevelPicture","WordApiDesktop","1.1",l),d(this,"SetLevelPicture",0,[e,t],0,0)},Wr.prototype.setLevelStartingNumber=function(e,t){d(this,"SetLevelStartingNumber",0,[e,t],0,0)},Wr.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Wr.prototype._handleResult=function(e){if(Br.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Id)||(this._I=t.Id),m(t.LevelExistences)||(this._L=t.LevelExistences),m(t.LevelTypes)||(this._Le=t.LevelTypes),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["paragraphs","Paragraphs"])}},Wr.prototype.load=function(e){return v(this,e)},Wr.prototype.retrieve=function(e){return O(this,e)},Wr.prototype._handleIdResult=function(e){Br.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e.Id)||(this._I=e.Id))},Wr.prototype._handleRetrieveResult=function(e,t){Br.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Wr.prototype.track=function(){return this.context.trackedObjects.add(this),this},Wr.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Wr.prototype.toJSON=function(){return C(this,{id:this._I,levelExistences:this._L,levelTypes:this._Le},{paragraphs:this._P})},Wr.prototype.setMockData=function(e){T(this,e)},Wr.prototype.ensureUnchanged=function(e){h(this,e)},Wr);function Wr(){return null!==Br&&Br.apply(this,arguments)||this}a.List=Ur;var Gr,Vr="ListCollection",qr=(Gr=OfficeExtension.ClientObject,__extends(zr,Gr),Object.defineProperty(zr.prototype,"_className",{get:function(){return"ListCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(zr.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(zr.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(zr.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(zr.prototype,"items",{get:function(){return _("items",this.m__items,Vr,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(zr.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Vr,this._isNull),this.__R},enumerable:!0,configurable:!0}),zr.prototype.getById=function(e){return p(a.List,this,"GetById",1,[e],!1,!1,null,4)},zr.prototype.getByIdOrNullObject=function(e){return p(a.List,this,"GetByIdOrNullObject",1,[e],!1,!1,null,4)},zr.prototype.getFirst=function(){return p(a.List,this,"GetFirst",1,[],!1,!1,null,4)},zr.prototype.getFirstOrNullObject=function(){return p(a.List,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},zr.prototype.getItem=function(e){return r(a.List,this,[e])},zr.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},zr.prototype._handleResult=function(e){if(Gr.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.List,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},zr.prototype.load=function(e){return v(this,e)},zr.prototype.retrieve=function(e){return O(this,e)},zr.prototype._handleIdResult=function(e){Gr.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},zr.prototype._handleRetrieveResult=function(e,t){var n=this;Gr.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.List,!0,n,e,t)})},zr.prototype.track=function(){return this.context.trackedObjects.add(this),this},zr.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},zr.prototype.toJSON=function(){return C(this,{},{},this.m__items)},zr.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.List,!0,n,e,t)},function(e){return n.m__items=e})},zr);function zr(){return null!==Gr&&Gr.apply(this,arguments)||this}a.ListCollection=qr;var Kr,Jr="ListItem",Xr=(Kr=OfficeExtension.ClientObject,__extends(Qr,Kr),Object.defineProperty(Qr.prototype,"_className",{get:function(){return"ListItem"},enumerable:!0,configurable:!0}),Object.defineProperty(Qr.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","siblingIndex","listString","level"]},enumerable:!0,configurable:!0}),Object.defineProperty(Qr.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","SiblingIndex","ListString","Level"]},enumerable:!0,configurable:!0}),Object.defineProperty(Qr.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Qr.prototype,"level",{get:function(){return _("level",this._L,Jr,this._isNull),this._L},set:function(e){this._L=e,g(this,"Level",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qr.prototype,"listString",{get:function(){return _("listString",this._Li,Jr,this._isNull),this._Li},enumerable:!0,configurable:!0}),Object.defineProperty(Qr.prototype,"siblingIndex",{get:function(){return _("siblingIndex",this._S,Jr,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(Qr.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Jr,this._isNull),this.__R},enumerable:!0,configurable:!0}),Qr.prototype.set=function(e,t){this._recursivelySet(e,t,["level"],[],[])},Qr.prototype.update=function(e){this._recursivelyUpdate(e)},Qr.prototype.getAncestor=function(e){return p(a.Paragraph,this,"GetAncestor",1,[e],!1,!1,null,4)},Qr.prototype.getAncestorOrNullObject=function(e){return p(a.Paragraph,this,"GetAncestorOrNullObject",1,[e],!1,!1,null,4)},Qr.prototype.getDescendants=function(e){return p(a.ParagraphCollection,this,"GetDescendants",1,[e],!0,!1,null,4)},Qr.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Qr.prototype._handleResult=function(e){if(Kr.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Level)||(this._L=t.Level),m(t.ListString)||(this._Li=t.ListString),m(t.SiblingIndex)||(this._S=t.SiblingIndex),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},Qr.prototype.load=function(e){return v(this,e)},Qr.prototype.retrieve=function(e){return O(this,e)},Qr.prototype._handleIdResult=function(e){Kr.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Qr.prototype._handleRetrieveResult=function(e,t){Kr.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Qr.prototype.track=function(){return this.context.trackedObjects.add(this),this},Qr.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Qr.prototype.toJSON=function(){return C(this,{level:this._L,listString:this._Li,siblingIndex:this._S},{})},Qr.prototype.setMockData=function(e){T(this,e)},Qr.prototype.ensureUnchanged=function(e){h(this,e)},Qr);function Qr(){return null!==Kr&&Kr.apply(this,arguments)||this}a.ListItem=Xr;var Yr,Zr="ListLevel",$r=(Yr=OfficeExtension.ClientObject,__extends(ei,Yr),Object.defineProperty(ei.prototype,"_className",{get:function(){return"ListLevel"},enumerable:!0,configurable:!0}),Object.defineProperty(ei.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId","alignment","linkedStyle","numberFormat","numberPosition","numberStyle","resetOnHigher","startAt","tabPosition","textPosition","trailingCharacter"]},enumerable:!0,configurable:!0}),Object.defineProperty(ei.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId","Alignment","LinkedStyle","NumberFormat","NumberPosition","NumberStyle","ResetOnHigher","StartAt","TabPosition","TextPosition","TrailingCharacter"]},enumerable:!0,configurable:!0}),Object.defineProperty(ei.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(ei.prototype,"_navigationPropertyNames",{get:function(){return["font"]},enumerable:!0,configurable:!0}),Object.defineProperty(ei.prototype,"font",{get:function(){return this._F||(this._F=t(a.Font,this,"Font",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(ei.prototype,"alignment",{get:function(){return _("alignment",this._A,Zr,this._isNull),this._A},set:function(e){this._A=e,g(this,"Alignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ei.prototype,"linkedStyle",{get:function(){return _("linkedStyle",this._L,Zr,this._isNull),this._L},set:function(e){this._L=e,g(this,"LinkedStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ei.prototype,"numberFormat",{get:function(){return _("numberFormat",this._N,Zr,this._isNull),this._N},set:function(e){this._N=e,g(this,"NumberFormat",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ei.prototype,"numberPosition",{get:function(){return _("numberPosition",this._Nu,Zr,this._isNull),this._Nu},set:function(e){this._Nu=e,g(this,"NumberPosition",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ei.prototype,"numberStyle",{get:function(){return _("numberStyle",this._Num,Zr,this._isNull),this._Num},set:function(e){this._Num=e,g(this,"NumberStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ei.prototype,"resetOnHigher",{get:function(){return _("resetOnHigher",this._R,Zr,this._isNull),this._R},set:function(e){this._R=e,g(this,"ResetOnHigher",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ei.prototype,"startAt",{get:function(){return _("startAt",this._S,Zr,this._isNull),this._S},set:function(e){this._S=e,g(this,"StartAt",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ei.prototype,"tabPosition",{get:function(){return _("tabPosition",this._T,Zr,this._isNull),this._T},set:function(e){this._T=e,g(this,"TabPosition",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ei.prototype,"textPosition",{get:function(){return _("textPosition",this._Te,Zr,this._isNull),this._Te},set:function(e){this._Te=e,g(this,"TextPosition",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ei.prototype,"trailingCharacter",{get:function(){return _("trailingCharacter",this._Tr,Zr,this._isNull),this._Tr},set:function(e){this._Tr=e,g(this,"TrailingCharacter",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ei.prototype,"_Id",{get:function(){return _("_Id",this.__I,Zr,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(ei.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Zr,this._isNull),this.__R},enumerable:!0,configurable:!0}),ei.prototype.set=function(e,t){this._recursivelySet(e,t,["alignment","linkedStyle","numberFormat","numberPosition","numberStyle","resetOnHigher","startAt","tabPosition","textPosition","trailingCharacter"],["font"],[])},ei.prototype.update=function(e){this._recursivelyUpdate(e)},ei.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},ei.prototype._handleResult=function(e){if(Yr.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Alignment)||(this._A=t.Alignment),m(t.LinkedStyle)||(this._L=t.LinkedStyle),m(t.NumberFormat)||(this._N=t.NumberFormat),m(t.NumberPosition)||(this._Nu=t.NumberPosition),m(t.NumberStyle)||(this._Num=t.NumberStyle),m(t.ResetOnHigher)||(this._R=t.ResetOnHigher),m(t.StartAt)||(this._S=t.StartAt),m(t.TabPosition)||(this._T=t.TabPosition),m(t.TextPosition)||(this._Te=t.TextPosition),m(t.TrailingCharacter)||(this._Tr=t.TrailingCharacter),m(t._Id)||(this.__I=t._Id),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["font","Font"])}},ei.prototype.load=function(e){return v(this,e)},ei.prototype.retrieve=function(e){return O(this,e)},ei.prototype._handleIdResult=function(e){Yr.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e._Id)||(this.__I=e._Id))},ei.prototype._handleRetrieveResult=function(e,t){Yr.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},ei.prototype.track=function(){return this.context.trackedObjects.add(this),this},ei.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ei.prototype.toJSON=function(){return C(this,{alignment:this._A,linkedStyle:this._L,numberFormat:this._N,numberPosition:this._Nu,numberStyle:this._Num,resetOnHigher:this._R,startAt:this._S,tabPosition:this._T,textPosition:this._Te,trailingCharacter:this._Tr},{font:this._F})},ei.prototype.setMockData=function(e){T(this,e)},ei.prototype.ensureUnchanged=function(e){h(this,e)},ei);function ei(){return null!==Yr&&Yr.apply(this,arguments)||this}a.ListLevel=$r;var ti,ni="ListLevelCollection",ri=(ti=OfficeExtension.ClientObject,__extends(ii,ti),Object.defineProperty(ii.prototype,"_className",{get:function(){return"ListLevelCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"items",{get:function(){return _("items",this.m__items,ni,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,ni,this._isNull),this.__R},enumerable:!0,configurable:!0}),ii.prototype.getFirst=function(){return p(a.ListLevel,this,"GetFirst",1,[],!1,!1,null,4)},ii.prototype.getFirstOrNullObject=function(){return p(a.ListLevel,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},ii.prototype._GetItem=function(e){return r(a.ListLevel,this,[e])},ii.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},ii.prototype._handleResult=function(e){if(ti.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.ListLevel,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},ii.prototype.load=function(e){return v(this,e)},ii.prototype.retrieve=function(e){return O(this,e)},ii.prototype._handleIdResult=function(e){ti.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},ii.prototype._handleRetrieveResult=function(e,t){var n=this;ti.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.ListLevel,!0,n,e,t)})},ii.prototype.track=function(){return this.context.trackedObjects.add(this),this},ii.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ii.prototype.toJSON=function(){return C(this,{},{},this.m__items)},ii.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.ListLevel,!0,n,e,t)},function(e){return n.m__items=e})},ii);function ii(){return null!==ti&&ti.apply(this,arguments)||this}a.ListLevelCollection=ri;var oi,ai="ListTemplate",si=(oi=OfficeExtension.ClientObject,__extends(ci,oi),Object.defineProperty(ci.prototype,"_className",{get:function(){return"ListTemplate"},enumerable:!0,configurable:!0}),Object.defineProperty(ci.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","outlineNumbered"]},enumerable:!0,configurable:!0}),Object.defineProperty(ci.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","OutlineNumbered"]},enumerable:!0,configurable:!0}),Object.defineProperty(ci.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(ci.prototype,"_navigationPropertyNames",{get:function(){return["listLevels"]},enumerable:!0,configurable:!0}),Object.defineProperty(ci.prototype,"listLevels",{get:function(){return this._L||(this._L=t(a.ListLevelCollection,this,"ListLevels",!0,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(ci.prototype,"outlineNumbered",{get:function(){return _("outlineNumbered",this._O,ai,this._isNull),this._O},set:function(e){this._O=e,g(this,"OutlineNumbered",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ci.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,ai,this._isNull),this.__R},enumerable:!0,configurable:!0}),ci.prototype.set=function(e,t){this._recursivelySet(e,t,["outlineNumbered"],[],["listLevels"])},ci.prototype.update=function(e){this._recursivelyUpdate(e)},ci.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},ci.prototype._handleResult=function(e){if(oi.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.OutlineNumbered)||(this._O=t.OutlineNumbered),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["listLevels","ListLevels"])}},ci.prototype.load=function(e){return v(this,e)},ci.prototype.retrieve=function(e){return O(this,e)},ci.prototype._handleIdResult=function(e){oi.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},ci.prototype._handleRetrieveResult=function(e,t){oi.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},ci.prototype.track=function(){return this.context.trackedObjects.add(this),this},ci.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ci.prototype.toJSON=function(){return C(this,{outlineNumbered:this._O},{listLevels:this._L})},ci.prototype.setMockData=function(e){T(this,e)},ci.prototype.ensureUnchanged=function(e){h(this,e)},ci);function ci(){return null!==oi&&oi.apply(this,arguments)||this}a.ListTemplate=si;var li,ui="NoteItem",pi=(li=OfficeExtension.ClientObject,__extends(fi,li),Object.defineProperty(fi.prototype,"_className",{get:function(){return"NoteItem"},enumerable:!0,configurable:!0}),Object.defineProperty(fi.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(fi.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId","Type"]},enumerable:!0,configurable:!0}),Object.defineProperty(fi.prototype,"_navigationPropertyNames",{get:function(){return["body","reference"]},enumerable:!0,configurable:!0}),Object.defineProperty(fi.prototype,"body",{get:function(){return this._B||(this._B=t(a.Body,this,"Body",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(fi.prototype,"reference",{get:function(){return this._R||(this._R=t(a.Range,this,"Reference",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(fi.prototype,"type",{get:function(){return _("type",this._T,ui,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(fi.prototype,"_Id",{get:function(){return _("_Id",this.__I,ui,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(fi.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,ui,this._isNull),this.__R},enumerable:!0,configurable:!0}),fi.prototype.set=function(e,t){this._recursivelySet(e,t,[],["body","reference"],[])},fi.prototype.update=function(e){this._recursivelyUpdate(e)},fi.prototype.delete=function(){d(this,"Delete",0,[],0,0)},fi.prototype.getNext=function(){return p(a.NoteItem,this,"GetNext",1,[],!1,!1,null,4)},fi.prototype.getNextOrNullObject=function(){return p(a.NoteItem,this,"GetNextOrNullObject",1,[],!1,!1,null,4)},fi.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},fi.prototype._handleResult=function(e){if(li.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Type)||(this._T=t.Type),m(t._Id)||(this.__I=t._Id),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["body","Body","reference","Reference"])}},fi.prototype.load=function(e){return v(this,e)},fi.prototype.retrieve=function(e){return O(this,e)},fi.prototype._handleIdResult=function(e){li.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e._Id)||(this.__I=e._Id))},fi.prototype._handleRetrieveResult=function(e,t){li.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},fi.prototype.track=function(){return this.context.trackedObjects.add(this),this},fi.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},fi.prototype.toJSON=function(){return C(this,{type:this._T},{body:this._B,reference:this._R})},fi.prototype.setMockData=function(e){T(this,e)},fi.prototype.ensureUnchanged=function(e){h(this,e)},fi);function fi(){return null!==li&&li.apply(this,arguments)||this}a.NoteItem=pi;var di,hi="NoteItemCollection",gi=(di=OfficeExtension.ClientObject,__extends(yi,di),Object.defineProperty(yi.prototype,"_className",{get:function(){return"NoteItemCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(yi.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(yi.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(yi.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(yi.prototype,"items",{get:function(){return _("items",this.m__items,hi,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(yi.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,hi,this._isNull),this.__R},enumerable:!0,configurable:!0}),yi.prototype.getFirst=function(){return p(a.NoteItem,this,"GetFirst",1,[],!1,!1,null,4)},yi.prototype.getFirstOrNullObject=function(){return p(a.NoteItem,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},yi.prototype._GetItem=function(e){return r(a.NoteItem,this,[e])},yi.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},yi.prototype._handleResult=function(e){if(di.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.NoteItem,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},yi.prototype.load=function(e){return v(this,e)},yi.prototype.retrieve=function(e){return O(this,e)},yi.prototype._handleIdResult=function(e){di.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},yi.prototype._handleRetrieveResult=function(e,t){var n=this;di.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.NoteItem,!0,n,e,t)})},yi.prototype.track=function(){return this.context.trackedObjects.add(this),this},yi.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},yi.prototype.toJSON=function(){return C(this,{},{},this.m__items)},yi.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.NoteItem,!0,n,e,t)},function(e){return n.m__items=e})},yi);function yi(){return null!==di&&di.apply(this,arguments)||this}a.NoteItemCollection=gi;var mi,_i="Page",bi=(mi=OfficeExtension.ClientObject,__extends(vi,mi),Object.defineProperty(vi.prototype,"_className",{get:function(){return"Page"},enumerable:!0,configurable:!0}),Object.defineProperty(vi.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId","height","width","index"]},enumerable:!0,configurable:!0}),Object.defineProperty(vi.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId","Height","Width","Index"]},enumerable:!0,configurable:!0}),Object.defineProperty(vi.prototype,"_navigationPropertyNames",{get:function(){return["breaks"]},enumerable:!0,configurable:!0}),Object.defineProperty(vi.prototype,"breaks",{get:function(){return b("Page.breaks","WordApiDesktop","1.3",l),this._B||(this._B=t(a.BreakCollection,this,"Breaks",!0,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(vi.prototype,"height",{get:function(){return _("height",this._H,_i,this._isNull),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(vi.prototype,"index",{get:function(){return _("index",this._I,_i,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(vi.prototype,"width",{get:function(){return _("width",this._W,_i,this._isNull),this._W},enumerable:!0,configurable:!0}),Object.defineProperty(vi.prototype,"_Id",{get:function(){return _("_Id",this.__I,_i,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(vi.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,_i,this._isNull),this.__R},enumerable:!0,configurable:!0}),vi.prototype.getNext=function(){return p(a.Page,this,"GetNext",1,[],!1,!1,null,4)},vi.prototype.getNextOrNullObject=function(){return p(a.Page,this,"GetNextOrNullObject",1,[],!1,!1,null,4)},vi.prototype.getRange=function(e){return p(a.Range,this,"GetRange",1,[e],!1,!1,null,4)},vi.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},vi.prototype._handleResult=function(e){if(mi.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Height)||(this._H=t.Height),m(t.Index)||(this._I=t.Index),m(t.Width)||(this._W=t.Width),m(t._Id)||(this.__I=t._Id),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["breaks","Breaks"])}},vi.prototype.load=function(e){return v(this,e)},vi.prototype.retrieve=function(e){return O(this,e)},vi.prototype._handleIdResult=function(e){mi.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e._Id)||(this.__I=e._Id))},vi.prototype._handleRetrieveResult=function(e,t){mi.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},vi.prototype.track=function(){return this.context.trackedObjects.add(this),this},vi.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},vi.prototype.toJSON=function(){return C(this,{height:this._H,index:this._I,width:this._W},{breaks:this._B})},vi.prototype.setMockData=function(e){T(this,e)},vi.prototype.ensureUnchanged=function(e){h(this,e)},vi);function vi(){return null!==mi&&mi.apply(this,arguments)||this}a.Page=bi;var Oi,Ci="PageCollection",Pi=(Oi=OfficeExtension.ClientObject,__extends(Ri,Oi),Object.defineProperty(Ri.prototype,"_className",{get:function(){return"PageCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Ri.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Ri.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ri.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ri.prototype,"items",{get:function(){return _("items",this.m__items,Ci,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Ri.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Ci,this._isNull),this.__R},enumerable:!0,configurable:!0}),Ri.prototype.getFirst=function(){return p(a.Page,this,"GetFirst",1,[],!1,!1,null,4)},Ri.prototype.getFirstOrNullObject=function(){return p(a.Page,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},Ri.prototype._GetItem=function(e){return r(a.Page,this,[e])},Ri.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Ri.prototype._handleResult=function(e){if(Oi.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Page,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Ri.prototype.load=function(e){return v(this,e)},Ri.prototype.retrieve=function(e){return O(this,e)},Ri.prototype._handleIdResult=function(e){Oi.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Ri.prototype._handleRetrieveResult=function(e,t){var n=this;Oi.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.Page,!0,n,e,t)})},Ri.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ri.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ri.prototype.toJSON=function(){return C(this,{},{},this.m__items)},Ri.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.Page,!0,n,e,t)},function(e){return n.m__items=e})},Ri);function Ri(){return null!==Oi&&Oi.apply(this,arguments)||this}a.PageCollection=Pi;var Si,Ii=(Si=OfficeExtension.ClientObject,__extends(Ti,Si),Object.defineProperty(Ti.prototype,"_className",{get:function(){return"Pane"},enumerable:!0,configurable:!0}),Object.defineProperty(Ti.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ti.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ti.prototype,"_navigationPropertyNames",{get:function(){return["pages","pagesEnclosingViewport"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ti.prototype,"pages",{get:function(){return this._P||(this._P=t(a.PageCollection,this,"Pages",!0,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(Ti.prototype,"pagesEnclosingViewport",{get:function(){return this._Pa||(this._Pa=t(a.PageCollection,this,"PagesEnclosingViewport",!0,4)),this._Pa},enumerable:!0,configurable:!0}),Object.defineProperty(Ti.prototype,"_Id",{get:function(){return _("_Id",this.__I,"Pane",this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(Ti.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,"Pane",this._isNull),this.__R},enumerable:!0,configurable:!0}),Ti.prototype.getNext=function(){return p(a.Pane,this,"GetNext",1,[],!1,!1,null,4)},Ti.prototype.getNextOrNullObject=function(){return p(a.Pane,this,"GetNextOrNullObject",1,[],!1,!1,null,4)},Ti.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Ti.prototype._handleResult=function(e){if(Si.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t._Id)||(this.__I=t._Id),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["pages","Pages","pagesEnclosingViewport","PagesEnclosingViewport"])}},Ti.prototype.load=function(e){return v(this,e)},Ti.prototype.retrieve=function(e){return O(this,e)},Ti.prototype._handleIdResult=function(e){Si.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e._Id)||(this.__I=e._Id))},Ti.prototype._handleRetrieveResult=function(e,t){Si.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Ti.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ti.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ti.prototype.toJSON=function(){return C(this,{},{pages:this._P,pagesEnclosingViewport:this._Pa})},Ti);function Ti(){return null!==Si&&Si.apply(this,arguments)||this}a.Pane=Ii;var Ai,Ni="PaneCollection",xi=(Ai=OfficeExtension.ClientObject,__extends(Ei,Ai),Object.defineProperty(Ei.prototype,"_className",{get:function(){return"PaneCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Ei.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Ei.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ei.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ei.prototype,"items",{get:function(){return _("items",this.m__items,Ni,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Ei.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Ni,this._isNull),this.__R},enumerable:!0,configurable:!0}),Ei.prototype.getFirst=function(){return p(a.Pane,this,"GetFirst",1,[],!1,!1,null,4)},Ei.prototype.getFirstOrNullObject=function(){return p(a.Pane,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},Ei.prototype._GetItem=function(e){return r(a.Pane,this,[e])},Ei.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Ei.prototype._handleResult=function(e){if(Ai.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Pane,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Ei.prototype.load=function(e){return v(this,e)},Ei.prototype.retrieve=function(e){return O(this,e)},Ei.prototype._handleIdResult=function(e){Ai.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Ei.prototype._handleRetrieveResult=function(e,t){var n=this;Ai.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.Pane,!0,n,e,t)})},Ei.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ei.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ei.prototype.toJSON=function(){return C(this,{},{},this.m__items)},Ei);function Ei(){return null!==Ai&&Ai.apply(this,arguments)||this}a.PaneCollection=xi;var Di,ji=(Di=OfficeExtension.ClientObject,__extends(wi,Di),Object.defineProperty(wi.prototype,"_className",{get:function(){return"Window"},enumerable:!0,configurable:!0}),Object.defineProperty(wi.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(wi.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(wi.prototype,"_navigationPropertyNames",{get:function(){return["panes","activePane"]},enumerable:!0,configurable:!0}),Object.defineProperty(wi.prototype,"activePane",{get:function(){return this._A||(this._A=t(a.Pane,this,"ActivePane",!1,4)),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(wi.prototype,"panes",{get:function(){return this._P||(this._P=t(a.PaneCollection,this,"Panes",!0,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(wi.prototype,"_Id",{get:function(){return _("_Id",this.__I,"Window",this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(wi.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,"Window",this._isNull),this.__R},enumerable:!0,configurable:!0}),wi.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},wi.prototype._handleResult=function(e){if(Di.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t._Id)||(this.__I=t._Id),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["activePane","ActivePane","panes","Panes"])}},wi.prototype.load=function(e){return v(this,e)},wi.prototype.retrieve=function(e){return O(this,e)},wi.prototype._handleIdResult=function(e){Di.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e._Id)||(this.__I=e._Id))},wi.prototype._handleRetrieveResult=function(e,t){Di.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},wi.prototype.track=function(){return this.context.trackedObjects.add(this),this},wi.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},wi.prototype.toJSON=function(){return C(this,{},{})},wi);function wi(){return null!==Di&&Di.apply(this,arguments)||this}a.Window=ji;var ki,Fi="WindowCollection",Li=(ki=OfficeExtension.ClientObject,__extends(Mi,ki),Object.defineProperty(Mi.prototype,"_className",{get:function(){return"WindowCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Mi.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Mi.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Mi.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Mi.prototype,"items",{get:function(){return _("items",this.m__items,Fi,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Mi.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Fi,this._isNull),this.__R},enumerable:!0,configurable:!0}),Mi.prototype.getFirst=function(){return p(a.Window,this,"GetFirst",1,[],!1,!1,null,4)},Mi.prototype.getFirstOrNullObject=function(){return p(a.Window,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},Mi.prototype._GetItem=function(e){return r(a.Window,this,[e])},Mi.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Mi.prototype._handleResult=function(e){if(ki.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Window,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Mi.prototype.load=function(e){return v(this,e)},Mi.prototype.retrieve=function(e){return O(this,e)},Mi.prototype._handleIdResult=function(e){ki.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Mi.prototype._handleRetrieveResult=function(e,t){var n=this;ki.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.Window,!0,n,e,t)})},Mi.prototype.track=function(){return this.context.trackedObjects.add(this),this},Mi.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Mi.prototype.toJSON=function(){return C(this,{},{},this.m__items)},Mi);function Mi(){return null!==ki&&ki.apply(this,arguments)||this}a.WindowCollection=Li;var Bi,Hi="Paragraph",Ui=(Bi=OfficeExtension.ClientObject,__extends(Wi,Bi),Object.defineProperty(Wi.prototype,"_className",{get:function(){return"Paragraph"},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId","style","alignment","firstLineIndent","leftIndent","rightIndent","lineSpacing","outlineLevel","spaceBefore","spaceAfter","lineUnitBefore","lineUnitAfter","text","isListItem","tableNestingLevel","isLastParagraph","styleBuiltIn","uniqueLocalId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId","Style","Alignment","FirstLineIndent","LeftIndent","RightIndent","LineSpacing","OutlineLevel","SpaceBefore","SpaceAfter","LineUnitBefore","LineUnitAfter","Text","IsListItem","TableNestingLevel","IsLastParagraph","StyleBuiltIn","UniqueLocalId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!1,!1,!1,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"_navigationPropertyNames",{get:function(){return["font","contentControls","parentContentControl","inlinePictures","parentBody","list","parentTableCell","parentTable","listItem","parentContentControlOrNullObject","parentTableCellOrNullObject","parentTableOrNullObject","listOrNullObject","listItemOrNullObject","footnotes","endnotes","fields","shapes","shading","borders"]},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"borders",{get:function(){return b("Paragraph.borders","WordApiDesktop","1.3",l),this._B||(this._B=t(a.BorderUniversalCollection,this,"Borders",!0,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"contentControls",{get:function(){return this._C||(this._C=t(a.ContentControlCollection,this,"ContentControls",!0,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"endnotes",{get:function(){return b("Paragraph.endnotes",u,"1.5",l),this._E||(this._E=t(a.NoteItemCollection,this,"Endnotes",!0,4)),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"fields",{get:function(){return b("Paragraph.fields",u,"1.4",l),this._F||(this._F=t(a.FieldCollection,this,"Fields",!0,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"font",{get:function(){return this._Fo||(this._Fo=t(a.Font,this,"Font",!1,4)),this._Fo},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"footnotes",{get:function(){return b("Paragraph.footnotes",u,"1.5",l),this._Foo||(this._Foo=t(a.NoteItemCollection,this,"Footnotes",!0,4)),this._Foo},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"inlinePictures",{get:function(){return this._I||(this._I=t(a.InlinePictureCollection,this,"InlinePictures",!0,4)),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"list",{get:function(){return b("Paragraph.list",u,"1.3",l),this._Lis||(this._Lis=t(a.List,this,"List",!1,4)),this._Lis},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"listItem",{get:function(){return b("Paragraph.listItem",u,"1.3",l),this._List||(this._List=t(a.ListItem,this,"ListItem",!1,4)),this._List},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"listItemOrNullObject",{get:function(){return b("Paragraph.listItemOrNullObject",u,"1.3",l),this._ListI||(this._ListI=t(a.ListItem,this,"ListItemOrNullObject",!1,4)),this._ListI},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"listOrNullObject",{get:function(){return b("Paragraph.listOrNullObject",u,"1.3",l),this._ListO||(this._ListO=t(a.List,this,"ListOrNullObject",!1,4)),this._ListO},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"parentBody",{get:function(){return b("Paragraph.parentBody",u,"1.3",l),this._P||(this._P=t(a.Body,this,"ParentBody",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"parentContentControl",{get:function(){return this._Pa||(this._Pa=t(a.ContentControl,this,"ParentContentControl",!1,4)),this._Pa},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"parentContentControlOrNullObject",{get:function(){return b("Paragraph.parentContentControlOrNullObject",u,"1.3",l),this._Par||(this._Par=t(a.ContentControl,this,"ParentContentControlOrNullObject",!1,4)),this._Par},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"parentTable",{get:function(){return b("Paragraph.parentTable",u,"1.3",l),this._Pare||(this._Pare=t(a.Table,this,"ParentTable",!1,4)),this._Pare},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"parentTableCell",{get:function(){return b("Paragraph.parentTableCell",u,"1.3",l),this._Paren||(this._Paren=t(a.TableCell,this,"ParentTableCell",!1,4)),this._Paren},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"parentTableCellOrNullObject",{get:function(){return b("Paragraph.parentTableCellOrNullObject",u,"1.3",l),this._Parent||(this._Parent=t(a.TableCell,this,"ParentTableCellOrNullObject",!1,4)),this._Parent},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"parentTableOrNullObject",{get:function(){return b("Paragraph.parentTableOrNullObject",u,"1.3",l),this._ParentT||(this._ParentT=t(a.Table,this,"ParentTableOrNullObject",!1,4)),this._ParentT},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"shading",{get:function(){return b("Paragraph.shading","WordApiDesktop","1.3",l),this._S||(this._S=t(a.ShadingUniversal,this,"Shading",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"shapes",{get:function(){return b("Paragraph.shapes","WordApiDesktop","1.2",l),this._Sh||(this._Sh=t(a.ShapeCollection,this,"Shapes",!0,4)),this._Sh},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"alignment",{get:function(){return _("alignment",this._A,Hi,this._isNull),this._A},set:function(e){this._A=e,g(this,"Alignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"firstLineIndent",{get:function(){return _("firstLineIndent",this._Fi,Hi,this._isNull),this._Fi},set:function(e){this._Fi=e,g(this,"FirstLineIndent",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"isLastParagraph",{get:function(){return _("isLastParagraph",this._Is,Hi,this._isNull),b("Paragraph.isLastParagraph",u,"1.3",l),this._Is},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"isListItem",{get:function(){return _("isListItem",this._IsL,Hi,this._isNull),b("Paragraph.isListItem",u,"1.3",l),this._IsL},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"leftIndent",{get:function(){return _("leftIndent",this._L,Hi,this._isNull),this._L},set:function(e){this._L=e,g(this,"LeftIndent",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"lineSpacing",{get:function(){return _("lineSpacing",this._Li,Hi,this._isNull),this._Li},set:function(e){this._Li=e,g(this,"LineSpacing",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"lineUnitAfter",{get:function(){return _("lineUnitAfter",this._Lin,Hi,this._isNull),this._Lin},set:function(e){this._Lin=e,g(this,"LineUnitAfter",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"lineUnitBefore",{get:function(){return _("lineUnitBefore",this._Line,Hi,this._isNull),this._Line},set:function(e){this._Line=e,g(this,"LineUnitBefore",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"outlineLevel",{get:function(){return _("outlineLevel",this._O,Hi,this._isNull),this._O},set:function(e){this._O=e,g(this,"OutlineLevel",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"rightIndent",{get:function(){return _("rightIndent",this._R,Hi,this._isNull),this._R},set:function(e){this._R=e,g(this,"RightIndent",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"spaceAfter",{get:function(){return _("spaceAfter",this._Sp,Hi,this._isNull),this._Sp},set:function(e){this._Sp=e,g(this,"SpaceAfter",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"spaceBefore",{get:function(){return _("spaceBefore",this._Spa,Hi,this._isNull),this._Spa},set:function(e){this._Spa=e,g(this,"SpaceBefore",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"style",{get:function(){return _("style",this._St,Hi,this._isNull),this._St},set:function(e){this._St=e,g(this,"Style",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"styleBuiltIn",{get:function(){return _("styleBuiltIn",this._Sty,Hi,this._isNull),b("Paragraph.styleBuiltIn",u,"1.3",l),this._Sty},set:function(e){this._Sty=e,g(this,"StyleBuiltIn",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"tableNestingLevel",{get:function(){return _("tableNestingLevel",this._T,Hi,this._isNull),b("Paragraph.tableNestingLevel",u,"1.3",l),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"text",{get:function(){return _("text",this._Te,Hi,this._isNull),this._Te},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"uniqueLocalId",{get:function(){return _("uniqueLocalId",this._U,Hi,this._isNull),b("Paragraph.uniqueLocalId",u,"1.6",l),this._U},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"_Id",{get:function(){return _("_Id",this.__I,Hi,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(Wi.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Hi,this._isNull),this.__R},enumerable:!0,configurable:!0}),Wi.prototype.set=function(e,t){this._recursivelySet(e,t,["style","alignment","firstLineIndent","leftIndent","rightIndent","lineSpacing","outlineLevel","spaceBefore","spaceAfter","lineUnitBefore","lineUnitAfter","styleBuiltIn"],["font","listItem","listItemOrNullObject","shading"],["borders","contentControls","endnotes","fields","footnotes","inlinePictures","list","listOrNullObject","parentBody","parentContentControl","parentContentControlOrNullObject","parentTable","parentTableCell","parentTableCellOrNullObject","parentTableOrNullObject","shapes"])},Wi.prototype.update=function(e){this._recursivelyUpdate(e)},Wi.prototype.attachToList=function(e,t){return b("Paragraph.attachToList",u,"1.3",l),p(a.List,this,"AttachToList",0,[e,t],!1,!1,null,0)},Wi.prototype.clear=function(){d(this,"Clear",0,[],0,0)},Wi.prototype.delete=function(){d(this,"Delete",0,[],0,0)},Wi.prototype.detachFromList=function(){b("Paragraph.detachFromList",u,"1.3",l),d(this,"DetachFromList",0,[],0,0)},Wi.prototype.getAnnotations=function(){return b("Paragraph.getAnnotations",u,"1.7",l),p(a.AnnotationCollection,this,"GetAnnotations",1,[],!0,!1,null,4)},Wi.prototype.getComments=function(){return b("Paragraph.getComments",u,"1.4",l),p(a.CommentCollection,this,"GetComments",1,[],!0,!1,null,4)},Wi.prototype.getContentControls=function(e){return b("Paragraph.getContentControls",u,"1.5",l),p(a.ContentControlCollection,this,"GetContentControls",1,[e],!0,!1,null,4)},Wi.prototype.getHtml=function(){return d(this,"GetHtml",1,[],4,0)},Wi.prototype.getMetadata=function(e){return d(this,"GetMetadata",1,[e],4,0)},Wi.prototype.getNext=function(){return b("Paragraph.getNext",u,"1.3",l),p(a.Paragraph,this,"GetNext",1,[],!1,!1,null,4)},Wi.prototype.getNextOrNullObject=function(){return b("Paragraph.getNextOrNullObject",u,"1.3",l),p(a.Paragraph,this,"GetNextOrNullObject",1,[],!1,!1,null,4)},Wi.prototype.getOoxml=function(){return d(this,"GetOoxml",1,[],4,0)},Wi.prototype.getPrevious=function(){return b("Paragraph.getPrevious",u,"1.3",l),p(a.Paragraph,this,"GetPrevious",1,[],!1,!1,null,4)},Wi.prototype.getPreviousOrNullObject=function(){return b("Paragraph.getPreviousOrNullObject",u,"1.3",l),p(a.Paragraph,this,"GetPreviousOrNullObject",1,[],!1,!1,null,4)},Wi.prototype.getRange=function(e){return b("Paragraph.getRange",u,"1.3",l),p(a.Range,this,"GetRange",1,[e],!1,!1,null,4)},Wi.prototype.getReviewedText=function(e){return b("Paragraph.getReviewedText",u,"1.4",l),d(this,"GetReviewedText",1,[e],4,0)},Wi.prototype.getSubrange=function(e,t){return b("Paragraph.getSubrange",u,"1.3",l),p(a.Range,this,"GetSubrange",1,[e,t],!1,!1,null,4)},Wi.prototype.getText=function(e){return b("Paragraph.getText",u,"1.7",l),d(this,"GetText",1,[e],4,0)},Wi.prototype.getTextRanges=function(e,t){return b("Paragraph.getTextRanges",u,"1.3",l),p(a.RangeCollection,this,"GetTextRanges",1,[e,t],!0,!1,null,4)},Wi.prototype.getTrackedChanges=function(){return b("Paragraph.getTrackedChanges",u,"1.6",l),p(a.TrackedChangeCollection,this,"GetTrackedChanges",1,[],!0,!1,null,4)},Wi.prototype.insertAnnotations=function(e){return b("Paragraph.insertAnnotations",u,"1.7",l),d(this,"InsertAnnotations",0,[e],0,0)},Wi.prototype.insertBreak=function(e,t){d(this,"InsertBreak",0,[e,t],0,0)},Wi.prototype.insertCanvas=function(e){return b("Paragraph.insertCanvas","WordApiDesktop","1.2",l),p(a.Shape,this,"InsertCanvas",0,[e],!1,!1,null,0)},Wi.prototype.insertContentControl=function(e){return p(a.ContentControl,this,"InsertContentControl",0,[e],!1,!0,null,0)},Wi.prototype.insertFileFromBase64=function(e,t){return p(a.Range,this,"InsertFileFromBase64",0,[e,t],!1,!0,null,0)},Wi.prototype.insertGeometricShape=function(e,t){return b("Paragraph.insertGeometricShape","WordApiDesktop","1.2",l),p(a.Shape,this,"InsertGeometricShape",0,[e,t],!1,!1,null,0)},Wi.prototype.insertHtml=function(e,t){return p(a.Range,this,"InsertHtml",0,[e,t],!1,!0,null,0)},Wi.prototype.insertInlinePictureFromBase64=function(e,t){return p(a.InlinePicture,this,"InsertInlinePictureFromBase64",0,[e,t],!1,!0,null,0)},Wi.prototype.insertOoxml=function(e,t){return p(a.Range,this,"InsertOoxml",0,[e,t],!1,!0,null,0)},Wi.prototype.insertParagraph=function(e,t){return p(a.Paragraph,this,"InsertParagraph",0,[e,t],!1,!0,null,0)},Wi.prototype.insertPictureFromBase64=function(e,t){return b("Paragraph.insertPictureFromBase64","WordApiDesktop","1.2",l),p(a.Shape,this,"InsertPictureFromBase64",0,[e,t],!1,!1,null,0)},Wi.prototype.insertTable=function(e,t,n,r){return b("Paragraph.insertTable",u,"1.3",l),p(a.Table,this,"InsertTable",0,[e,t,n,r],!1,!0,null,0)},Wi.prototype.insertText=function(e,t){return p(a.Range,this,"InsertText",0,[e,t],!1,!0,null,0)},Wi.prototype.insertTextBox=function(e,t){return b("Paragraph.insertTextBox","WordApiDesktop","1.2",l),p(a.Shape,this,"InsertTextBox",0,[e,t],!1,!1,null,0)},Wi.prototype.search=function(e,t){var n=J.Paragraph_Search(this,e,t),r=n.handled,i=n.result;return r?i:p(a.RangeCollection,this,"Search",1,[e,t],!0,!1,null,4)},Wi.prototype.select=function(e){d(this,"Select",1,[e],4,0)},Wi.prototype.setMetadata=function(e,t){d(this,"SetMetadata",0,[e,t],0,0)},Wi.prototype.split=function(e,t,n){return b("Paragraph.split",u,"1.3",l),p(a.RangeCollection,this,"Split",1,[e,t,n],!0,!1,null,4)},Wi.prototype.startNewList=function(){return b("Paragraph.startNewList",u,"1.3",l),p(a.List,this,"StartNewList",0,[],!1,!1,null,0)},Wi.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Wi.prototype._Search2=function(e,t){return p(a.RangeCollection,this,"_Search2",1,[e,t],!0,!1,null,4)},Wi.prototype._handleResult=function(e){if(Bi.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Alignment)||(this._A=t.Alignment),m(t.FirstLineIndent)||(this._Fi=t.FirstLineIndent),m(t.IsLastParagraph)||(this._Is=t.IsLastParagraph),m(t.IsListItem)||(this._IsL=t.IsListItem),m(t.LeftIndent)||(this._L=t.LeftIndent),m(t.LineSpacing)||(this._Li=t.LineSpacing),m(t.LineUnitAfter)||(this._Lin=t.LineUnitAfter),m(t.LineUnitBefore)||(this._Line=t.LineUnitBefore),m(t.OutlineLevel)||(this._O=t.OutlineLevel),m(t.RightIndent)||(this._R=t.RightIndent),m(t.SpaceAfter)||(this._Sp=t.SpaceAfter),m(t.SpaceBefore)||(this._Spa=t.SpaceBefore),m(t.Style)||(this._St=t.Style),m(t.StyleBuiltIn)||(this._Sty=t.StyleBuiltIn),m(t.TableNestingLevel)||(this._T=t.TableNestingLevel),m(t.Text)||(this._Te=t.Text),m(t.UniqueLocalId)||(this._U=t.UniqueLocalId),m(t._Id)||(this.__I=t._Id),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["borders","Borders","contentControls","ContentControls","endnotes","Endnotes","fields","Fields","font","Font","footnotes","Footnotes","inlinePictures","InlinePictures","list","List","listItem","ListItem","listItemOrNullObject","ListItemOrNullObject","listOrNullObject","ListOrNullObject","parentBody","ParentBody","parentContentControl","ParentContentControl","parentContentControlOrNullObject","ParentContentControlOrNullObject","parentTable","ParentTable","parentTableCell","ParentTableCell","parentTableCellOrNullObject","ParentTableCellOrNullObject","parentTableOrNullObject","ParentTableOrNullObject","shading","Shading","shapes","Shapes"])}},Wi.prototype.load=function(e){return v(this,e)},Wi.prototype.retrieve=function(e){return O(this,e)},Wi.prototype._handleIdResult=function(e){Bi.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e._Id)||(this.__I=e._Id))},Wi.prototype._handleRetrieveResult=function(e,t){Bi.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Wi.prototype.track=function(){return this.context.trackedObjects.add(this),this},Wi.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Wi.prototype.toJSON=function(){return C(this,{alignment:this._A,firstLineIndent:this._Fi,isLastParagraph:this._Is,isListItem:this._IsL,leftIndent:this._L,lineSpacing:this._Li,lineUnitAfter:this._Lin,lineUnitBefore:this._Line,outlineLevel:this._O,rightIndent:this._R,spaceAfter:this._Sp,spaceBefore:this._Spa,style:this._St,styleBuiltIn:this._Sty,tableNestingLevel:this._T,text:this._Te,uniqueLocalId:this._U},{borders:this._B,fields:this._F,font:this._Fo,inlinePictures:this._I,listItem:this._List,listItemOrNullObject:this._ListI,shading:this._S,shapes:this._Sh})},Wi.prototype.setMockData=function(e){T(this,e)},Wi.prototype.ensureUnchanged=function(e){h(this,e)},Wi);function Wi(){return null!==Bi&&Bi.apply(this,arguments)||this}a.Paragraph=Ui;var Gi=(Vi.prototype.getDocument=function(){return y(this._document)&&(this._document=this.context.document),this._document},Vi.prototype.getReferenceId=function(){return y(this._refId)&&(this._refId=this._ReferenceId),this._refId},Vi.prototype._RegisterCommentAddedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentAdded")},Vi.prototype._UnregisterCommentAddedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentAdded")},Vi.prototype._RegisterCommentDeletedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentDeleted")},Vi.prototype._UnregisterCommentDeletedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentDeleted")},Vi.prototype._RegisterCommentChangedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentChanged")},Vi.prototype._UnregisterCommentChangedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentChanged")},Vi.prototype._RegisterCommentSelectedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentSelected")},Vi.prototype._UnregisterCommentSelectedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentSelected")},Vi.prototype._RegisterCommentDeselectedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentDeselected")},Vi.prototype._UnregisterCommentDeselectedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentDeselected")},Vi);function Vi(){}a.ParagraphCustom=Gi,OfficeExtension.Utility.applyMixin(Ui,Gi),(J=a._CC||(a._CC={})).Paragraph_Search=function(e,t,n){var r;if(s()){var i=c(n);r=e._Search2(t,i)}else n=o(e.context,n),r=p(a.RangeCollection,e,"Search",1,[t,n],!0,!1,null,4);return{handled:!0,result:r}};var qi,zi="ParagraphCollection",Ki=(qi=OfficeExtension.ClientObject,__extends(Ji,qi),Object.defineProperty(Ji.prototype,"_className",{get:function(){return"ParagraphCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Ji.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Ji.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ji.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ji.prototype,"items",{get:function(){return _("items",this.m__items,zi,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Ji.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,zi,this._isNull),this.__R},enumerable:!0,configurable:!0}),Ji.prototype.getById=function(e){return p(a.Paragraph,this,"GetById",1,[e],!1,!1,null,5)},Ji.prototype.getByIdOrNullObject=function(e){return p(a.Paragraph,this,"GetByIdOrNullObject",1,[e],!1,!1,null,5)},Ji.prototype.getByParaId=function(e){return p(a.Paragraph,this,"GetByParaId",1,[e],!1,!1,null,5)},Ji.prototype.getFirst=function(){return b("ParagraphCollection.getFirst",u,"1.3",l),p(a.Paragraph,this,"GetFirst",1,[],!1,!1,null,4)},Ji.prototype.getFirstOrNullObject=function(){return b("ParagraphCollection.getFirstOrNullObject",u,"1.3",l),p(a.Paragraph,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},Ji.prototype.getLast=function(){return b("ParagraphCollection.getLast",u,"1.3",l),p(a.Paragraph,this,"GetLast",1,[],!1,!1,null,4)},Ji.prototype.getLastOrNullObject=function(){return b("ParagraphCollection.getLastOrNullObject",u,"1.3",l),p(a.Paragraph,this,"GetLastOrNullObject",1,[],!1,!1,null,4)},Ji.prototype._GetItem=function(e){return r(a.Paragraph,this,[e])},Ji.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Ji.prototype._handleResult=function(e){if(qi.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Paragraph,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Ji.prototype.load=function(e){return v(this,e)},Ji.prototype.retrieve=function(e){return O(this,e)},Ji.prototype._handleIdResult=function(e){qi.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Ji.prototype._handleRetrieveResult=function(e,t){var n=this;qi.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.Paragraph,!0,n,e,t)})},Ji.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ji.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ji.prototype.toJSON=function(){return C(this,{},{},this.m__items)},Ji.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.Paragraph,!0,n,e,t)},function(e){return n.m__items=e})},Ji);function Ji(){return null!==qi&&qi.apply(this,arguments)||this}a.ParagraphCollection=Ki;var Xi,Qi="ParagraphFormat",Yi=(Xi=OfficeExtension.ClientObject,__extends(Zi,Xi),Object.defineProperty(Zi.prototype,"_className",{get:function(){return"ParagraphFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(Zi.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","alignment","firstLineIndent","keepTogether","keepWithNext","leftIndent","lineSpacing","lineUnitAfter","lineUnitBefore","mirrorIndents","outlineLevel","rightIndent","spaceAfter","spaceBefore","widowControl"]},enumerable:!0,configurable:!0}),Object.defineProperty(Zi.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Alignment","FirstLineIndent","KeepTogether","KeepWithNext","LeftIndent","LineSpacing","LineUnitAfter","LineUnitBefore","MirrorIndents","OutlineLevel","RightIndent","SpaceAfter","SpaceBefore","WidowControl"]},enumerable:!0,configurable:!0}),Object.defineProperty(Zi.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Zi.prototype,"alignment",{get:function(){return _("alignment",this._A,Qi,this._isNull),this._A},set:function(e){this._A=e,g(this,"Alignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Zi.prototype,"firstLineIndent",{get:function(){return _("firstLineIndent",this._F,Qi,this._isNull),this._F},set:function(e){this._F=e,g(this,"FirstLineIndent",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Zi.prototype,"keepTogether",{get:function(){return _("keepTogether",this._K,Qi,this._isNull),this._K},set:function(e){this._K=e,g(this,"KeepTogether",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Zi.prototype,"keepWithNext",{get:function(){return _("keepWithNext",this._Ke,Qi,this._isNull),this._Ke},set:function(e){this._Ke=e,g(this,"KeepWithNext",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Zi.prototype,"leftIndent",{get:function(){return _("leftIndent",this._L,Qi,this._isNull),this._L},set:function(e){this._L=e,g(this,"LeftIndent",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Zi.prototype,"lineSpacing",{get:function(){return _("lineSpacing",this._Li,Qi,this._isNull),this._Li},set:function(e){this._Li=e,g(this,"LineSpacing",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Zi.prototype,"lineUnitAfter",{get:function(){return _("lineUnitAfter",this._Lin,Qi,this._isNull),this._Lin},set:function(e){this._Lin=e,g(this,"LineUnitAfter",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Zi.prototype,"lineUnitBefore",{get:function(){return _("lineUnitBefore",this._Line,Qi,this._isNull),this._Line},set:function(e){this._Line=e,g(this,"LineUnitBefore",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Zi.prototype,"mirrorIndents",{get:function(){return _("mirrorIndents",this._M,Qi,this._isNull),this._M},set:function(e){this._M=e,g(this,"MirrorIndents",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Zi.prototype,"outlineLevel",{get:function(){return _("outlineLevel",this._O,Qi,this._isNull),this._O},set:function(e){this._O=e,g(this,"OutlineLevel",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Zi.prototype,"rightIndent",{get:function(){return _("rightIndent",this._R,Qi,this._isNull),this._R},set:function(e){this._R=e,g(this,"RightIndent",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Zi.prototype,"spaceAfter",{get:function(){return _("spaceAfter",this._S,Qi,this._isNull),this._S},set:function(e){this._S=e,g(this,"SpaceAfter",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Zi.prototype,"spaceBefore",{get:function(){return _("spaceBefore",this._Sp,Qi,this._isNull),this._Sp},set:function(e){this._Sp=e,g(this,"SpaceBefore",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Zi.prototype,"widowControl",{get:function(){return _("widowControl",this._W,Qi,this._isNull),this._W},set:function(e){this._W=e,g(this,"WidowControl",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Zi.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Qi,this._isNull),this.__R},enumerable:!0,configurable:!0}),Zi.prototype.set=function(e,t){this._recursivelySet(e,t,["alignment","firstLineIndent","keepTogether","keepWithNext","leftIndent","lineSpacing","lineUnitAfter","lineUnitBefore","mirrorIndents","outlineLevel","rightIndent","spaceAfter","spaceBefore","widowControl"],[],[])},Zi.prototype.update=function(e){this._recursivelyUpdate(e)},Zi.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Zi.prototype._handleResult=function(e){if(Xi.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Alignment)||(this._A=t.Alignment),m(t.FirstLineIndent)||(this._F=t.FirstLineIndent),m(t.KeepTogether)||(this._K=t.KeepTogether),m(t.KeepWithNext)||(this._Ke=t.KeepWithNext),m(t.LeftIndent)||(this._L=t.LeftIndent),m(t.LineSpacing)||(this._Li=t.LineSpacing),m(t.LineUnitAfter)||(this._Lin=t.LineUnitAfter),m(t.LineUnitBefore)||(this._Line=t.LineUnitBefore),m(t.MirrorIndents)||(this._M=t.MirrorIndents),m(t.OutlineLevel)||(this._O=t.OutlineLevel),m(t.RightIndent)||(this._R=t.RightIndent),m(t.SpaceAfter)||(this._S=t.SpaceAfter),m(t.SpaceBefore)||(this._Sp=t.SpaceBefore),m(t.WidowControl)||(this._W=t.WidowControl),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},Zi.prototype.load=function(e){return v(this,e)},Zi.prototype.retrieve=function(e){return O(this,e)},Zi.prototype._handleIdResult=function(e){Xi.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Zi.prototype._handleRetrieveResult=function(e,t){Xi.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Zi.prototype.track=function(){return this.context.trackedObjects.add(this),this},Zi.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Zi.prototype.toJSON=function(){return C(this,{alignment:this._A,firstLineIndent:this._F,keepTogether:this._K,keepWithNext:this._Ke,leftIndent:this._L,lineSpacing:this._Li,lineUnitAfter:this._Lin,lineUnitBefore:this._Line,mirrorIndents:this._M,outlineLevel:this._O,rightIndent:this._R,spaceAfter:this._S,spaceBefore:this._Sp,widowControl:this._W},{})},Zi.prototype.setMockData=function(e){T(this,e)},Zi.prototype.ensureUnchanged=function(e){h(this,e)},Zi);function Zi(){return null!==Xi&&Xi.apply(this,arguments)||this}a.ParagraphFormat=Yi;var $i,eo="Range",to=($i=OfficeExtension.ClientObject,__extends(no,$i),Object.defineProperty(no.prototype,"_className",{get:function(){return"Range"},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId","style","text","isEmpty","hyperlink","styleBuiltIn","hasNoProofing","languageDetected","languageId","languageIdFarEast","languageIdOther"]},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId","Style","Text","IsEmpty","Hyperlink","StyleBuiltIn","HasNoProofing","LanguageDetected","LanguageId","LanguageIdFarEast","LanguageIdOther"]},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"_navigationPropertyNames",{get:function(){return["font","paragraphs","contentControls","parentContentControl","inlinePictures","lists","tables","parentTableCell","parentTable","parentBody","parentContentControlOrNullObject","parentTableCellOrNullObject","parentTableOrNullObject","footnotes","endnotes","fields","shapes","pages","listFormat","tableColumns","frames","shading","hyperlinks","sections"]},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"contentControls",{get:function(){return this._C||(this._C=t(a.ContentControlCollection,this,"ContentControls",!0,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"endnotes",{get:function(){return b("Range.endnotes",u,"1.5",l),this._E||(this._E=t(a.NoteItemCollection,this,"Endnotes",!0,4)),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"fields",{get:function(){return b("Range.fields",u,"1.4",l),this._F||(this._F=t(a.FieldCollection,this,"Fields",!0,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"font",{get:function(){return this._Fo||(this._Fo=t(a.Font,this,"Font",!1,4)),this._Fo},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"footnotes",{get:function(){return b("Range.footnotes",u,"1.5",l),this._Foo||(this._Foo=t(a.NoteItemCollection,this,"Footnotes",!0,4)),this._Foo},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"frames",{get:function(){return b("Range.frames","WordApiDesktop","1.3",l),this._Fr||(this._Fr=t(a.FrameCollection,this,"Frames",!0,4)),this._Fr},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"hyperlinks",{get:function(){return b("Range.hyperlinks","WordApiDesktop","1.3",l),this._Hyp||(this._Hyp=t(a.HyperlinkCollection,this,"Hyperlinks",!0,4)),this._Hyp},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"inlinePictures",{get:function(){return b("Range.inlinePictures",u,"1.2",l),this._I||(this._I=t(a.InlinePictureCollection,this,"InlinePictures",!0,4)),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"listFormat",{get:function(){return b("Range.listFormat","WordApiDesktop","1.3",l),this._Li||(this._Li=t(a.ListFormat,this,"ListFormat",!1,4)),this._Li},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"lists",{get:function(){return b("Range.lists",u,"1.3",l),this._Lis||(this._Lis=t(a.ListCollection,this,"Lists",!0,4)),this._Lis},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"pages",{get:function(){return b("Range.pages","WordApiDesktop","1.2",l),this._P||(this._P=t(a.PageCollection,this,"Pages",!0,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"paragraphs",{get:function(){return this._Pa||(this._Pa=t(a.ParagraphCollection,this,"Paragraphs",!0,4)),this._Pa},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"parentBody",{get:function(){return b("Range.parentBody",u,"1.3",l),this._Par||(this._Par=t(a.Body,this,"ParentBody",!1,4)),this._Par},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"parentContentControl",{get:function(){return this._Pare||(this._Pare=t(a.ContentControl,this,"ParentContentControl",!1,4)),this._Pare},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"parentContentControlOrNullObject",{get:function(){return b("Range.parentContentControlOrNullObject",u,"1.3",l),this._Paren||(this._Paren=t(a.ContentControl,this,"ParentContentControlOrNullObject",!1,4)),this._Paren},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"parentTable",{get:function(){return b("Range.parentTable",u,"1.3",l),this._Parent||(this._Parent=t(a.Table,this,"ParentTable",!1,4)),this._Parent},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"parentTableCell",{get:function(){return b("Range.parentTableCell",u,"1.3",l),this._ParentT||(this._ParentT=t(a.TableCell,this,"ParentTableCell",!1,4)),this._ParentT},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"parentTableCellOrNullObject",{get:function(){return b("Range.parentTableCellOrNullObject",u,"1.3",l),this._ParentTa||(this._ParentTa=t(a.TableCell,this,"ParentTableCellOrNullObject",!1,4)),this._ParentTa},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"parentTableOrNullObject",{get:function(){return b("Range.parentTableOrNullObject",u,"1.3",l),this._ParentTab||(this._ParentTab=t(a.Table,this,"ParentTableOrNullObject",!1,4)),this._ParentTab},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"sections",{get:function(){return b("Range.sections","WordApiDesktop","1.3",l),this._S||(this._S=t(a.SectionCollection,this,"Sections",!0,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"shading",{get:function(){return b("Range.shading","WordApiDesktop","1.3",l),this._Sh||(this._Sh=t(a.ShadingUniversal,this,"Shading",!1,4)),this._Sh},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"shapes",{get:function(){return b("Range.shapes","WordApiDesktop","1.2",l),this._Sha||(this._Sha=t(a.ShapeCollection,this,"Shapes",!0,4)),this._Sha},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"tableColumns",{get:function(){return b("Range.tableColumns","WordApiDesktop","1.3",l),this._T||(this._T=t(a.TableColumnCollection,this,"TableColumns",!0,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"tables",{get:function(){return b("Range.tables",u,"1.3",l),this._Ta||(this._Ta=t(a.TableCollection,this,"Tables",!0,4)),this._Ta},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"hasNoProofing",{get:function(){return _("hasNoProofing",this._H,eo,this._isNull),b("Range.hasNoProofing","WordApiDesktop","1.3",l),this._H},set:function(e){this._H=e,g(this,"HasNoProofing",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"hyperlink",{get:function(){return _("hyperlink",this._Hy,eo,this._isNull),b("Range.hyperlink",u,"1.3",l),this._Hy},set:function(e){this._Hy=e,g(this,"Hyperlink",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"isEmpty",{get:function(){return _("isEmpty",this._Is,eo,this._isNull),b("Range.isEmpty",u,"1.3",l),this._Is},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"languageDetected",{get:function(){return _("languageDetected",this._L,eo,this._isNull),b("Range.languageDetected","WordApiDesktop","1.3",l),this._L},set:function(e){this._L=e,g(this,"LanguageDetected",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"languageId",{get:function(){return _("languageId",this._La,eo,this._isNull),b("Range.languageId","WordApiDesktop","1.3",l),this._La},set:function(e){this._La=e,g(this,"LanguageId",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"languageIdFarEast",{get:function(){return _("languageIdFarEast",this._Lan,eo,this._isNull),b("Range.languageIdFarEast","WordApiDesktop","1.3",l),this._Lan},set:function(e){this._Lan=e,g(this,"LanguageIdFarEast",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"languageIdOther",{get:function(){return _("languageIdOther",this._Lang,eo,this._isNull),b("Range.languageIdOther","WordApiDesktop","1.3",l),this._Lang},set:function(e){this._Lang=e,g(this,"LanguageIdOther",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"style",{get:function(){return _("style",this._St,eo,this._isNull),this._St},set:function(e){this._St=e,g(this,"Style",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"styleBuiltIn",{get:function(){return _("styleBuiltIn",this._Sty,eo,this._isNull),b("Range.styleBuiltIn",u,"1.3",l),this._Sty},set:function(e){this._Sty=e,g(this,"StyleBuiltIn",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"text",{get:function(){return _("text",this._Te,eo,this._isNull),this._Te},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"_Id",{get:function(){return _("_Id",this.__I,eo,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(no.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,eo,this._isNull),this.__R},enumerable:!0,configurable:!0}),no.prototype.set=function(e,t){this._recursivelySet(e,t,["style","hyperlink","styleBuiltIn","hasNoProofing","languageDetected","languageId","languageIdFarEast","languageIdOther"],["font","listFormat","shading"],["contentControls","endnotes","fields","footnotes","frames","hyperlinks","inlinePictures","lists","pages","paragraphs","parentBody","parentContentControl","parentContentControlOrNullObject","parentTable","parentTableCell","parentTableCellOrNullObject","parentTableOrNullObject","sections","shapes","tableColumns","tables"])},no.prototype.update=function(e){this._recursivelyUpdate(e)},no.prototype.clear=function(){d(this,"Clear",0,[],0,0)},no.prototype.compareLocationWith=function(e){return b("Range.compareLocationWith",u,"1.3",l),d(this,"CompareLocationWith",1,[e],4,0)},no.prototype.delete=function(){d(this,"Delete",0,[],0,0)},no.prototype.detectLanguage=function(){return b("Range.detectLanguage","WordApiDesktop","1.3",l),d(this,"DetectLanguage",0,[],0,0)},no.prototype.endPreview=function(){d(this,"EndPreview",1,[],4,0)},no.prototype.expandTo=function(e){return b("Range.expandTo",u,"1.3",l),p(a.Range,this,"ExpandTo",0,[e],!1,!1,null,0)},no.prototype.expandToOrNullObject=function(e){return b("Range.expandToOrNullObject",u,"1.3",l),p(a.Range,this,"ExpandToOrNullObject",0,[e],!1,!1,null,0)},no.prototype.getBookmarks=function(e,t){return b("Range.getBookmarks",u,"1.4",l),d(this,"GetBookmarks",1,[e,t],4,0)},no.prototype.getComments=function(){return b("Range.getComments",u,"1.4",l),p(a.CommentCollection,this,"GetComments",1,[],!0,!1,null,4)},no.prototype.getContentControls=function(e){return b("Range.getContentControls",u,"1.5",l),p(a.ContentControlCollection,this,"GetContentControls",1,[e],!0,!1,null,4)},no.prototype.getHtml=function(){return d(this,"GetHtml",1,[],4,0)},no.prototype.getHyperlinkRanges=function(){return b("Range.getHyperlinkRanges",u,"1.3",l),p(a.RangeCollection,this,"GetHyperlinkRanges",1,[],!0,!1,null,4)},no.prototype.getNextTextRange=function(e,t){return b("Range.getNextTextRange",u,"1.3",l),p(a.Range,this,"GetNextTextRange",1,[e,t],!1,!1,null,4)},no.prototype.getNextTextRangeOrNullObject=function(e,t){return b("Range.getNextTextRangeOrNullObject",u,"1.3",l),p(a.Range,this,"GetNextTextRangeOrNullObject",1,[e,t],!1,!1,null,4)},no.prototype.getOoxml=function(){return d(this,"GetOoxml",1,[],4,0)},no.prototype.getRange=function(e){return b("Range.getRange",u,"1.3",l),p(a.Range,this,"GetRange",1,[e],!1,!1,null,4)},no.prototype.getReviewedText=function(e){return b("Range.getReviewedText",u,"1.4",l),d(this,"GetReviewedText",1,[e],4,0)},no.prototype.getTextRanges=function(e,t){return b("Range.getTextRanges",u,"1.3",l),p(a.RangeCollection,this,"GetTextRanges",1,[e,t],!0,!1,null,4)},no.prototype.getTrackedChanges=function(){return b("Range.getTrackedChanges",u,"1.6",l),p(a.TrackedChangeCollection,this,"GetTrackedChanges",1,[],!0,!1,null,4)},no.prototype.highlight=function(){b("Range.highlight",u,"1.8",l),d(this,"Highlight",1,[],4,0)},no.prototype.insertBookmark=function(e){b("Range.insertBookmark",u,"1.4",l),d(this,"InsertBookmark",0,[e],0,0)},no.prototype.insertBreak=function(e,t){d(this,"InsertBreak",0,[e,t],0,0)},no.prototype.insertCanvas=function(e){return b("Range.insertCanvas","WordApiDesktop","1.2",l),p(a.Shape,this,"InsertCanvas",0,[e],!1,!1,null,0)},no.prototype.insertComment=function(e){return b("Range.insertComment",u,"1.4",l),p(a.Comment,this,"InsertComment",0,[e],!1,!0,null,0)},no.prototype.insertContentControl=function(e){return p(a.ContentControl,this,"InsertContentControl",0,[e],!1,!0,null,0)},no.prototype.insertEndnote=function(e){return b("Range.insertEndnote",u,"1.5",l),p(a.NoteItem,this,"InsertEndnote",0,[e],!1,!0,null,0)},no.prototype.insertField=function(e,t,n,r){return b("Range.insertField",u,"1.5",l),p(a.Field,this,"InsertField",0,[e,t,n,r],!1,!0,null,0)},no.prototype.insertFileFromBase64=function(e,t){return p(a.Range,this,"InsertFileFromBase64",0,[e,t],!1,!0,null,0)},no.prototype.insertFootnote=function(e){return b("Range.insertFootnote",u,"1.5",l),p(a.NoteItem,this,"InsertFootnote",0,[e],!1,!0,null,0)},no.prototype.insertGeometricShape=function(e,t){return b("Range.insertGeometricShape","WordApiDesktop","1.2",l),p(a.Shape,this,"InsertGeometricShape",0,[e,t],!1,!1,null,0)},no.prototype.insertHtml=function(e,t){return p(a.Range,this,"InsertHtml",0,[e,t],!1,!0,null,0)},no.prototype.insertInlinePictureFromBase64=function(e,t){return b("Range.insertInlinePictureFromBase64",u,"1.2",l),p(a.InlinePicture,this,"InsertInlinePictureFromBase64",0,[e,t],!1,!0,null,0)},no.prototype.insertOoxml=function(e,t){return p(a.Range,this,"InsertOoxml",0,[e,t],!1,!0,null,0)},no.prototype.insertParagraph=function(e,t){return p(a.Paragraph,this,"InsertParagraph",0,[e,t],!1,!0,null,0)},no.prototype.insertPictureFromBase64=function(e,t){return b("Range.insertPictureFromBase64","WordApiDesktop","1.2",l),p(a.Shape,this,"InsertPictureFromBase64",0,[e,t],!1,!1,null,0)},no.prototype.insertTable=function(e,t,n,r){return b("Range.insertTable",u,"1.3",l),p(a.Table,this,"InsertTable",0,[e,t,n,r],!1,!0,null,0)},no.prototype.insertTapObjectFromFileContent=function(e,t,n){return p(a.Range,this,"InsertTapObjectFromFileContent",0,[e,t,n],!1,!0,null,1)},no.prototype.insertText=function(e,t){return p(a.Range,this,"InsertText",0,[e,t],!1,!0,null,0)},no.prototype.insertTextBox=function(e,t){return b("Range.insertTextBox","WordApiDesktop","1.2",l),p(a.Shape,this,"InsertTextBox",0,[e,t],!1,!1,null,0)},no.prototype.intersectWith=function(e){return b("Range.intersectWith",u,"1.3",l),p(a.Range,this,"IntersectWith",0,[e],!1,!1,null,0)},no.prototype.intersectWithOrNullObject=function(e){return b("Range.intersectWithOrNullObject",u,"1.3",l),p(a.Range,this,"IntersectWithOrNullObject",0,[e],!1,!1,null,0)},no.prototype.previewTextReplacement=function(e){d(this,"PreviewTextReplacement",1,[e],4,0)},no.prototype.removeHighlight=function(){b("Range.removeHighlight",u,"1.8",l),d(this,"RemoveHighlight",1,[],4,0)},no.prototype.scrollIntoView=function(){d(this,"ScrollIntoView",1,[],4,0)},no.prototype.search=function(e,t){var n=J.Range_Search(this,e,t),r=n.handled,i=n.result;return r?i:p(a.RangeCollection,this,"Search",1,[e,t],!0,!1,null,4)},no.prototype.select=function(e){d(this,"Select",1,[e],4,0)},no.prototype.split=function(e,t,n,r){return b("Range.split",u,"1.3",l),p(a.RangeCollection,this,"Split",1,[e,t,n,r],!0,!1,null,4)},no.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},no.prototype._Search2=function(e,t){return p(a.RangeCollection,this,"_Search2",1,[e,t],!0,!1,null,4)},no.prototype._handleResult=function(e){if($i.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.HasNoProofing)||(this._H=t.HasNoProofing),m(t.Hyperlink)||(this._Hy=t.Hyperlink),m(t.IsEmpty)||(this._Is=t.IsEmpty),m(t.LanguageDetected)||(this._L=t.LanguageDetected),m(t.LanguageId)||(this._La=t.LanguageId),m(t.LanguageIdFarEast)||(this._Lan=t.LanguageIdFarEast),m(t.LanguageIdOther)||(this._Lang=t.LanguageIdOther),m(t.Style)||(this._St=t.Style),m(t.StyleBuiltIn)||(this._Sty=t.StyleBuiltIn),m(t.Text)||(this._Te=t.Text),m(t._Id)||(this.__I=t._Id),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["contentControls","ContentControls","endnotes","Endnotes","fields","Fields","font","Font","footnotes","Footnotes","frames","Frames","hyperlinks","Hyperlinks","inlinePictures","InlinePictures","listFormat","ListFormat","lists","Lists","pages","Pages","paragraphs","Paragraphs","parentBody","ParentBody","parentContentControl","ParentContentControl","parentContentControlOrNullObject","ParentContentControlOrNullObject","parentTable","ParentTable","parentTableCell","ParentTableCell","parentTableCellOrNullObject","ParentTableCellOrNullObject","parentTableOrNullObject","ParentTableOrNullObject","sections","Sections","shading","Shading","shapes","Shapes","tableColumns","TableColumns","tables","Tables"])}},no.prototype.load=function(e){return v(this,e)},no.prototype.retrieve=function(e){return O(this,e)},no.prototype._handleIdResult=function(e){$i.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e._Id)||(this.__I=e._Id))},no.prototype._handleRetrieveResult=function(e,t){$i.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},no.prototype.track=function(){return this.context.trackedObjects.add(this),this},no.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},no.prototype.toJSON=function(){return C(this,{hasNoProofing:this._H,hyperlink:this._Hy,isEmpty:this._Is,languageDetected:this._L,languageId:this._La,languageIdFarEast:this._Lan,languageIdOther:this._Lang,style:this._St,styleBuiltIn:this._Sty,text:this._Te},{fields:this._F,font:this._Fo,frames:this._Fr,hyperlinks:this._Hyp,inlinePictures:this._I,listFormat:this._Li,pages:this._P,sections:this._S,shading:this._Sh,shapes:this._Sha,tableColumns:this._T})},no.prototype.setMockData=function(e){T(this,e)},no.prototype.ensureUnchanged=function(e){h(this,e)},no);function no(){return null!==$i&&$i.apply(this,arguments)||this}a.Range=to;var ro=(io.prototype.getDocument=function(){return y(this._document)&&(this._document=this.context.document),this._document},io.prototype.getReferenceId=function(){return y(this._refId)&&(this._refId=this._ReferenceId),this._refId},io.prototype._RegisterCommentAddedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentAdded")},io.prototype._UnregisterCommentAddedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentAdded")},io.prototype._RegisterCommentChangedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentChanged")},io.prototype._UnregisterCommentChangedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentChanged")},io.prototype._RegisterCommentSelectedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentSelected")},io.prototype._UnregisterCommentSelectedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentSelected")},io.prototype._RegisterCommentDeselectedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentDeselected")},io.prototype._UnregisterCommentDeselectedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentDeselected")},io);function io(){}a.RangeCustom=ro,OfficeExtension.Utility.applyMixin(to,ro),(J=a._CC||(a._CC={})).Range_Search=function(e,t,n){var r;if(s()){var i=c(n);r=e._Search2(t,i)}else n=o(e.context,n),r=p(a.RangeCollection,e,"Search",1,[t,n],!0,!1,null,4);return{handled:!0,result:r}};var oo,ao="RangeCollection",so=(oo=OfficeExtension.ClientObject,__extends(co,oo),Object.defineProperty(co.prototype,"_className",{get:function(){return"RangeCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(co.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(co.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(co.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(co.prototype,"items",{get:function(){return _("items",this.m__items,ao,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(co.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,ao,this._isNull),this.__R},enumerable:!0,configurable:!0}),co.prototype.getFirst=function(){return b("RangeCollection.getFirst",u,"1.3",l),p(a.Range,this,"GetFirst",1,[],!1,!1,null,4)},co.prototype.getFirstOrNullObject=function(){return b("RangeCollection.getFirstOrNullObject",u,"1.3",l),p(a.Range,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},co.prototype._GetItem=function(e){return r(a.Range,this,[e])},co.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},co.prototype._handleResult=function(e){if(oo.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Range,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},co.prototype.load=function(e){return v(this,e)},co.prototype.retrieve=function(e){return O(this,e)},co.prototype._handleIdResult=function(e){oo.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},co.prototype._handleRetrieveResult=function(e,t){var n=this;oo.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.Range,!0,n,e,t)})},co.prototype.track=function(){return this.context.trackedObjects.add(this),this},co.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},co.prototype.toJSON=function(){return C(this,{},{},this.m__items)},co.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.Range,!0,n,e,t)},function(e){return n.m__items=e})},co);function co(){return null!==oo&&oo.apply(this,arguments)||this}a.RangeCollection=so;var lo,uo="SearchOptions",po=(lo=OfficeExtension.ClientObject,__extends(fo,lo),Object.defineProperty(fo.prototype,"_className",{get:function(){return"SearchOptions"},enumerable:!0,configurable:!0}),Object.defineProperty(fo.prototype,"_scalarPropertyNames",{get:function(){return["ignorePunct","ignoreSpace","matchCase","matchPrefix","matchSuffix","matchWildcards","matchWholeWord"]},enumerable:!0,configurable:!0}),Object.defineProperty(fo.prototype,"_scalarPropertyOriginalNames",{get:function(){return["IgnorePunct","IgnoreSpace","MatchCase","MatchPrefix","MatchSuffix","MatchWildcards","MatchWholeWord"]},enumerable:!0,configurable:!0}),Object.defineProperty(fo.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(fo.prototype,"ignorePunct",{get:function(){return _("ignorePunct",this._I,uo,this._isNull),this._I},set:function(e){this._I=e,g(this,"IgnorePunct",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fo.prototype,"ignoreSpace",{get:function(){return _("ignoreSpace",this._Ig,uo,this._isNull),this._Ig},set:function(e){this._Ig=e,g(this,"IgnoreSpace",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fo.prototype,"matchCase",{get:function(){return _("matchCase",this._M,uo,this._isNull),this._M},set:function(e){this._M=e,g(this,"MatchCase",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fo.prototype,"matchPrefix",{get:function(){return _("matchPrefix",this._Ma,uo,this._isNull),this._Ma},set:function(e){this._Ma=e,g(this,"MatchPrefix",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fo.prototype,"matchSuffix",{get:function(){return _("matchSuffix",this._Mat,uo,this._isNull),this._Mat},set:function(e){this._Mat=e,g(this,"MatchSuffix",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fo.prototype,"matchWholeWord",{get:function(){return _("matchWholeWord",this._Matc,uo,this._isNull),this._Matc},set:function(e){this._Matc=e,g(this,"MatchWholeWord",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fo.prototype,"matchWildcards",{get:function(){return _("matchWildcards",this.m_matchWildcards,uo,this._isNull),this.m_matchWildcards},set:function(e){this.m_matchWildcards=e,g(this,"MatchWildcards",e,0)},enumerable:!0,configurable:!0}),fo.prototype.set=function(e,t){this._recursivelySet(e,t,["ignorePunct","ignoreSpace","matchCase","matchPrefix","matchSuffix","matchWildcards","matchWholeWord"],[],[])},fo.prototype.update=function(e){this._recursivelyUpdate(e)},fo.prototype._handleResult=function(e){if(lo.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.IgnorePunct)||(this._I=t.IgnorePunct),m(t.IgnoreSpace)||(this._Ig=t.IgnoreSpace),m(t.MatchCase)||(this._M=t.MatchCase),m(t.MatchPrefix)||(this._Ma=t.MatchPrefix),m(t.MatchSuffix)||(this._Mat=t.MatchSuffix),m(t.MatchWholeWord)||(this._Matc=t.MatchWholeWord),m(t.MatchWildcards)||(this.m_matchWildcards=t.MatchWildcards)}},fo.prototype.load=function(e){return v(this,e)},fo.prototype.retrieve=function(e){return O(this,e)},fo.prototype._handleRetrieveResult=function(e,t){lo.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},fo.newObject=function(e){return i(a.SearchOptions,e,"Microsoft.WordServices.SearchOptions",!1,4)},fo.prototype.toJSON=function(){return C(this,{ignorePunct:this._I,ignoreSpace:this._Ig,matchCase:this._M,matchPrefix:this._Ma,matchSuffix:this._Mat,matchWholeWord:this._Matc,matchWildcards:this.m_matchWildcards},{})},fo.prototype.setMockData=function(e){T(this,e)},fo.prototype.ensureUnchanged=function(e){h(this,e)},fo);function fo(){return null!==lo&&lo.apply(this,arguments)||this}a.SearchOptions=po;var ho=(Object.defineProperty(go.prototype,"matchWildCards",{get:function(){return _("matchWildCards",this.m_matchWildcards),this.m_matchWildcards},set:function(e){this.m_matchWildcards=e,g(this,"MatchWildCards",e,0)},enumerable:!0,configurable:!0}),go);function go(){}a.SearchOptionsCustom=ho,OfficeExtension.Utility.applyMixin(po,ho);var yo,mo="Section",_o=(yo=OfficeExtension.ClientObject,__extends(bo,yo),Object.defineProperty(bo.prototype,"_className",{get:function(){return"Section"},enumerable:!0,configurable:!0}),Object.defineProperty(bo.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId","protectedForForms"]},enumerable:!0,configurable:!0}),Object.defineProperty(bo.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId","ProtectedForForms"]},enumerable:!0,configurable:!0}),Object.defineProperty(bo.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(bo.prototype,"_navigationPropertyNames",{get:function(){return["body","pageSetup","borders"]},enumerable:!0,configurable:!0}),Object.defineProperty(bo.prototype,"body",{get:function(){return this._B||(this._B=t(a.Body,this,"Body",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(bo.prototype,"borders",{get:function(){return b("Section.borders","WordApiDesktop","1.3",l),this._Bo||(this._Bo=t(a.BorderUniversalCollection,this,"Borders",!0,4)),this._Bo},enumerable:!0,configurable:!0}),Object.defineProperty(bo.prototype,"pageSetup",{get:function(){return b("Section.pageSetup","WordApiDesktop","1.3",l),this._P||(this._P=t(a.PageSetup,this,"PageSetup",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(bo.prototype,"protectedForForms",{get:function(){return _("protectedForForms",this._Pr,mo,this._isNull),b("Section.protectedForForms","WordApiDesktop","1.3",l),this._Pr},set:function(e){this._Pr=e,g(this,"ProtectedForForms",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(bo.prototype,"_Id",{get:function(){return _("_Id",this.__I,mo,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(bo.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,mo,this._isNull),this.__R},enumerable:!0,configurable:!0}),bo.prototype.set=function(e,t){this._recursivelySet(e,t,["protectedForForms"],["body","pageSetup"],["borders"])},bo.prototype.update=function(e){this._recursivelyUpdate(e)},bo.prototype.getFooter=function(e){return p(a.Body,this,"GetFooter",1,[e],!1,!0,null,4)},bo.prototype.getHeader=function(e){return p(a.Body,this,"GetHeader",1,[e],!1,!0,null,4)},bo.prototype.getNext=function(){return b("Section.getNext",u,"1.3",l),p(a.Section,this,"GetNext",1,[],!1,!1,null,4)},bo.prototype.getNextOrNullObject=function(){return b("Section.getNextOrNullObject",u,"1.3",l),p(a.Section,this,"GetNextOrNullObject",1,[],!1,!1,null,4)},bo.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},bo.prototype._handleResult=function(e){if(yo.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.ProtectedForForms)||(this._Pr=t.ProtectedForForms),m(t._Id)||(this.__I=t._Id),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["body","Body","borders","Borders","pageSetup","PageSetup"])}},bo.prototype.load=function(e){return v(this,e)},bo.prototype.retrieve=function(e){return O(this,e)},bo.prototype._handleIdResult=function(e){yo.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e._Id)||(this.__I=e._Id))},bo.prototype._handleRetrieveResult=function(e,t){yo.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},bo.prototype.track=function(){return this.context.trackedObjects.add(this),this},bo.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},bo.prototype.toJSON=function(){return C(this,{protectedForForms:this._Pr},{body:this._B,borders:this._Bo,pageSetup:this._P})},bo.prototype.setMockData=function(e){T(this,e)},bo.prototype.ensureUnchanged=function(e){h(this,e)},bo);function bo(){return null!==yo&&yo.apply(this,arguments)||this}a.Section=_o;var vo,Oo="SectionCollection",Co=(vo=OfficeExtension.ClientObject,__extends(Po,vo),Object.defineProperty(Po.prototype,"_className",{get:function(){return"SectionCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Po.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Po.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Po.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Po.prototype,"items",{get:function(){return _("items",this.m__items,Oo,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Po.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Oo,this._isNull),this.__R},enumerable:!0,configurable:!0}),Po.prototype.getFirst=function(){return b("SectionCollection.getFirst",u,"1.3",l),p(a.Section,this,"GetFirst",1,[],!1,!1,null,4)},Po.prototype.getFirstOrNullObject=function(){return b("SectionCollection.getFirstOrNullObject",u,"1.3",l),p(a.Section,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},Po.prototype._GetItem=function(e){return r(a.Section,this,[e])},Po.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Po.prototype._handleResult=function(e){if(vo.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Section,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Po.prototype.load=function(e){return v(this,e)},Po.prototype.retrieve=function(e){return O(this,e)},Po.prototype._handleIdResult=function(e){vo.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Po.prototype._handleRetrieveResult=function(e,t){var n=this;vo.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.Section,!0,n,e,t)})},Po.prototype.track=function(){return this.context.trackedObjects.add(this),this},Po.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Po.prototype.toJSON=function(){return C(this,{},{},this.m__items)},Po.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.Section,!0,n,e,t)},function(e){return n.m__items=e})},Po);function Po(){return null!==vo&&vo.apply(this,arguments)||this}a.SectionCollection=Co;var Ro,So="Setting",Io=(Ro=OfficeExtension.ClientObject,__extends(To,Ro),Object.defineProperty(To.prototype,"_className",{get:function(){return"Setting"},enumerable:!0,configurable:!0}),Object.defineProperty(To.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","key","value","_Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(To.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Key","Value","_Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(To.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(To.prototype,"key",{get:function(){return _("key",this._K,So,this._isNull),this._K},enumerable:!0,configurable:!0}),Object.defineProperty(To.prototype,"value",{get:function(){return _("value",this.m_value,So,this._isNull),this.m_value},set:function(e){J.Setting_Value_Set(this,e).handled||(this.m_value=e,g(this,"Value",e,0))},enumerable:!0,configurable:!0}),Object.defineProperty(To.prototype,"_Id",{get:function(){return _("_Id",this.__I,So,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(To.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,So,this._isNull),this.__R},enumerable:!0,configurable:!0}),To.prototype.set=function(e,t){this._recursivelySet(e,t,["value"],[],[])},To.prototype.update=function(e){this._recursivelyUpdate(e)},To.prototype.delete=function(){d(this,"Delete",0,[],0,0)},To.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},To.prototype._handleResult=function(e){if(Ro.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),J.Setting_HandleResult(this,t),m(t.Key)||(this._K=t.Key),m(t.Value)||(this.m_value=t.Value),m(t._Id)||(this.__I=t._Id),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},To.prototype.load=function(e){return v(this,e)},To.prototype.retrieve=function(e){return O(this,e)},To.prototype._handleIdResult=function(e){Ro.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e._Id)||(this.__I=e._Id))},To.prototype._handleRetrieveResult=function(e,t){Ro.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},To.prototype.track=function(){return this.context.trackedObjects.add(this),this},To.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},To.prototype.toJSON=function(){return C(this,{key:this._K,value:this.m_value},{})},To.prototype.setMockData=function(e){T(this,e)},To.prototype.ensureUnchanged=function(e){h(this,e)},To);function To(){return null!==Ro&&Ro.apply(this,arguments)||this}a.Setting=Io;var Ao,No=(xo.replaceStringDateWithDate=function(e){var t=JSON.stringify(e);return e=JSON.parse(t,function(e,t){var n;return"string"==typeof t&&t&&6<t.length&&t.slice(0,5)===xo.DateJSONPrefix&&t.slice(-1)===xo.DateJSONSuffix&&(n=new Date(parseInt(t.slice(5,-1))))?n:t})},xo.replaceDateWithStringDate=function(e){var t=JSON.stringify(e,function(e,t){return this[e]instanceof Date?xo.DateJSONPrefix+this[e].getTime()+xo.DateJSONSuffix:t});return e=JSON.parse(t)},xo.DateJSONPrefix="Date(",xo.DateJSONSuffix=")",xo);function xo(){}a.SettingCustom=No,OfficeExtension.Utility.applyMixin(Io,No),(Ao=J=a._CC||(a._CC={})).Setting_HandleResult=function(e,t){if(!m(t.Value)&&"string"==typeof t.Value){var n=JSON.parse(t.Value,function(e,t){return/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(t)?new Date(t):t});t.Value=No.replaceStringDateWithDate(n)}},Ao.Setting_Value_Set=function(e,t){var n=JSON.stringify(No.replaceDateWithStringDate(t));if(null!==n)return this.m_value=n,g(e,"Value",n,0),{handled:!0}};var Eo,Do="SettingCollection",jo=(Eo=OfficeExtension.ClientObject,__extends(wo,Eo),Object.defineProperty(wo.prototype,"_className",{get:function(){return"SettingCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(wo.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(wo.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(wo.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(wo.prototype,"items",{get:function(){return _("items",this.m__items,Do,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(wo.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Do,this._isNull),this.__R},enumerable:!0,configurable:!0}),wo.prototype.add=function(e,t){var n=J.SettingCollection_Add(this,e,t),r=n.handled,i=n.result;return r?i:p(a.Setting,this,"Add",0,[e,t],!1,!0,null,0)},wo.prototype.deleteAll=function(){d(this,"DeleteAll",0,[],0,0)},wo.prototype.getCount=function(){return d(this,"GetCount",1,[],4,0)},wo.prototype.getItem=function(e){return r(a.Setting,this,[e])},wo.prototype.getItemOrNullObject=function(e){return p(a.Setting,this,"GetItemOrNullObject",1,[e],!1,!1,null,4)},wo.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},wo.prototype._handleResult=function(e){if(Eo.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Setting,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},wo.prototype.load=function(e){return v(this,e)},wo.prototype.retrieve=function(e){return O(this,e)},wo.prototype._handleIdResult=function(e){Eo.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},wo.prototype._handleRetrieveResult=function(e,t){var n=this;Eo.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.Setting,!0,n,e,t)})},wo.prototype.track=function(){return this.context.trackedObjects.add(this),this},wo.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},wo.prototype.toJSON=function(){return C(this,{},{},this.m__items)},wo.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.Setting,!0,n,e,t)},function(e){return n.m__items=e})},wo);function wo(){return null!==Eo&&Eo.apply(this,arguments)||this}a.SettingCollection=jo,(J=a._CC||(a._CC={})).SettingCollection_Add=function(e,t,n){var r=JSON.stringify(No.replaceDateWithStringDate(n));return null===r?{handled:!1,result:null}:{handled:!0,result:p(a.Setting,e,"Add",0,[t,r],!1,!1,null,0)}};var ko,Fo="StyleCollection",Lo=(ko=OfficeExtension.ClientObject,__extends(Mo,ko),Object.defineProperty(Mo.prototype,"_className",{get:function(){return"StyleCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Mo.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Mo.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Mo.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Mo.prototype,"items",{get:function(){return _("items",this.m__items,Fo,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Mo.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Fo,this._isNull),this.__R},enumerable:!0,configurable:!0}),Mo.prototype.getByName=function(e){return p(a.Style,this,"GetByName",1,[e],!1,!1,null,4)},Mo.prototype.getByNameOrNullObject=function(e){return p(a.Style,this,"GetByNameOrNullObject",1,[e],!1,!1,null,4)},Mo.prototype.getCount=function(){return d(this,"GetCount",1,[],4,0)},Mo.prototype.getItem=function(e){return r(a.Style,this,[e])},Mo.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Mo.prototype._handleResult=function(e){if(ko.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Style,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Mo.prototype.load=function(e){return v(this,e)},Mo.prototype.retrieve=function(e){return O(this,e)},Mo.prototype._handleIdResult=function(e){ko.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Mo.prototype._handleRetrieveResult=function(e,t){var n=this;ko.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.Style,!0,n,e,t)})},Mo.prototype.track=function(){return this.context.trackedObjects.add(this),this},Mo.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Mo.prototype.toJSON=function(){return C(this,{},{},this.m__items)},Mo.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.Style,!0,n,e,t)},function(e){return n.m__items=e})},Mo);function Mo(){return null!==ko&&ko.apply(this,arguments)||this}a.StyleCollection=Lo;var Bo,Ho="Style",Uo=(Bo=OfficeExtension.ClientObject,__extends(Wo,Bo),Object.defineProperty(Wo.prototype,"_className",{get:function(){return"Style"},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","baseStyle","builtIn","inUse","linked","nameLocal","nextParagraphStyle","priority","quickStyle","type","unhideWhenUsed","visibility","automaticallyUpdate","languageId","languageIdFarEast","listLevelNumber","locked","hasProofing","noSpaceBetweenParagraphsOfSameStyle"]},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","BaseStyle","BuiltIn","InUse","Linked","NameLocal","NextParagraphStyle","Priority","QuickStyle","Type","UnhideWhenUsed","Visibility","AutomaticallyUpdate","LanguageId","LanguageIdFarEast","ListLevelNumber","Locked","HasProofing","NoSpaceBetweenParagraphsOfSameStyle"]},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!1,!1,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"_navigationPropertyNames",{get:function(){return["font","paragraphFormat","listTemplate","shading","tableStyle","borders","frame","linkStyle"]},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"borders",{get:function(){return b("Style.borders","WordApiDesktop","1.1",l),this._Bo||(this._Bo=t(a.BorderCollection,this,"Borders",!0,4)),this._Bo},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"font",{get:function(){return b("Style.font",u,"1.5",l),this._F||(this._F=t(a.Font,this,"Font",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"frame",{get:function(){return b("Style.frame","WordApiDesktop","1.3",l),this._Fr||(this._Fr=t(a.Frame,this,"Frame",!1,4)),this._Fr},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"linkStyle",{get:function(){return b("Style.linkStyle","WordApiDesktop","1.3",l),this._Lin||(this._Lin=t(a.Style,this,"LinkStyle",!1,4)),this._Lin},set:function(e){this._Lin=e,g(this,"LinkStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"listTemplate",{get:function(){return b("Style.listTemplate","WordApiDesktop","1.1",l),this._List||(this._List=t(a.ListTemplate,this,"ListTemplate",!1,4)),this._List},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"paragraphFormat",{get:function(){return b("Style.paragraphFormat",u,"1.5",l),this._P||(this._P=t(a.ParagraphFormat,this,"ParagraphFormat",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"shading",{get:function(){return b("Style.shading",u,"1.6",l),this._S||(this._S=t(a.Shading,this,"Shading",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"tableStyle",{get:function(){return b("Style.tableStyle",u,"1.6",l),this._T||(this._T=t(a.TableStyle,this,"TableStyle",!1,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"automaticallyUpdate",{get:function(){return _("automaticallyUpdate",this._A,Ho,this._isNull),b("Style.automaticallyUpdate","WordApiDesktop","1.3",l),this._A},set:function(e){this._A=e,g(this,"AutomaticallyUpdate",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"baseStyle",{get:function(){return _("baseStyle",this._B,Ho,this._isNull),b("Style.baseStyle",u,"1.5",l),this._B},set:function(e){this._B=e,g(this,"BaseStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"builtIn",{get:function(){return _("builtIn",this._Bu,Ho,this._isNull),b("Style.builtIn",u,"1.5",l),this._Bu},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"hasProofing",{get:function(){return _("hasProofing",this._H,Ho,this._isNull),b("Style.hasProofing","WordApiDesktop","1.3",l),this._H},set:function(e){this._H=e,g(this,"HasProofing",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"inUse",{get:function(){return _("inUse",this._I,Ho,this._isNull),b("Style.inUse",u,"1.5",l),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"languageId",{get:function(){return _("languageId",this._L,Ho,this._isNull),b("Style.languageId","WordApiDesktop","1.3",l),this._L},set:function(e){this._L=e,g(this,"LanguageId",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"languageIdFarEast",{get:function(){return _("languageIdFarEast",this._La,Ho,this._isNull),b("Style.languageIdFarEast","WordApiDesktop","1.3",l),this._La},set:function(e){this._La=e,g(this,"LanguageIdFarEast",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"linked",{get:function(){return _("linked",this._Li,Ho,this._isNull),b("Style.linked",u,"1.5",l),this._Li},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"listLevelNumber",{get:function(){return _("listLevelNumber",this._Lis,Ho,this._isNull),b("Style.listLevelNumber","WordApiDesktop","1.3",l),this._Lis},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"locked",{get:function(){return _("locked",this._Lo,Ho,this._isNull),b("Style.locked","WordApiDesktop","1.3",l),this._Lo},set:function(e){this._Lo=e,g(this,"Locked",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"nameLocal",{get:function(){return _("nameLocal",this._N,Ho,this._isNull),b("Style.nameLocal",u,"1.5",l),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"nextParagraphStyle",{get:function(){return _("nextParagraphStyle",this._Ne,Ho,this._isNull),b("Style.nextParagraphStyle",u,"1.5",l),this._Ne},set:function(e){this._Ne=e,g(this,"NextParagraphStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"noSpaceBetweenParagraphsOfSameStyle",{get:function(){return _("noSpaceBetweenParagraphsOfSameStyle",this._No,Ho,this._isNull),b("Style.noSpaceBetweenParagraphsOfSameStyle","WordApiDesktop","1.3",l),this._No},set:function(e){this._No=e,g(this,"NoSpaceBetweenParagraphsOfSameStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"priority",{get:function(){return _("priority",this._Pr,Ho,this._isNull),b("Style.priority",u,"1.5",l),this._Pr},set:function(e){this._Pr=e,g(this,"Priority",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"quickStyle",{get:function(){return _("quickStyle",this._Q,Ho,this._isNull),b("Style.quickStyle",u,"1.5",l),this._Q},set:function(e){this._Q=e,g(this,"QuickStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"type",{get:function(){return _("type",this._Ty,Ho,this._isNull),b("Style.type",u,"1.5",l),this._Ty},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"unhideWhenUsed",{get:function(){return _("unhideWhenUsed",this._U,Ho,this._isNull),b("Style.unhideWhenUsed",u,"1.5",l),this._U},set:function(e){this._U=e,g(this,"UnhideWhenUsed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"visibility",{get:function(){return _("visibility",this._V,Ho,this._isNull),b("Style.visibility",u,"1.5",l),this._V},set:function(e){this._V=e,g(this,"Visibility",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wo.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Ho,this._isNull),this.__R},enumerable:!0,configurable:!0}),Wo.prototype.set=function(e,t){this._recursivelySet(e,t,["baseStyle","nextParagraphStyle","priority","quickStyle","unhideWhenUsed","visibility","automaticallyUpdate","languageId","languageIdFarEast","locked","hasProofing","noSpaceBetweenParagraphsOfSameStyle"],["font","paragraphFormat","listTemplate","shading","tableStyle","frame","linkStyle"],["borders"])},Wo.prototype.update=function(e){this._recursivelyUpdate(e)},Wo.prototype.delete=function(){b("Style.delete",u,"1.5",l),d(this,"Delete",0,[],0,0)},Wo.prototype.linkToListTemplate=function(e){b("Style.linkToListTemplate","WordApiDesktop","1.3",l),d(this,"LinkToListTemplate",0,[e],0,0)},Wo.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Wo.prototype._handleResult=function(e){if(Bo.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.AutomaticallyUpdate)||(this._A=t.AutomaticallyUpdate),m(t.BaseStyle)||(this._B=t.BaseStyle),m(t.BuiltIn)||(this._Bu=t.BuiltIn),m(t.HasProofing)||(this._H=t.HasProofing),m(t.InUse)||(this._I=t.InUse),m(t.LanguageId)||(this._L=t.LanguageId),m(t.LanguageIdFarEast)||(this._La=t.LanguageIdFarEast),m(t.Linked)||(this._Li=t.Linked),m(t.ListLevelNumber)||(this._Lis=t.ListLevelNumber),m(t.Locked)||(this._Lo=t.Locked),m(t.NameLocal)||(this._N=t.NameLocal),m(t.NextParagraphStyle)||(this._Ne=t.NextParagraphStyle),m(t.NoSpaceBetweenParagraphsOfSameStyle)||(this._No=t.NoSpaceBetweenParagraphsOfSameStyle),m(t.Priority)||(this._Pr=t.Priority),m(t.QuickStyle)||(this._Q=t.QuickStyle),m(t.Type)||(this._Ty=t.Type),m(t.UnhideWhenUsed)||(this._U=t.UnhideWhenUsed),m(t.Visibility)||(this._V=t.Visibility),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["borders","Borders","font","Font","frame","Frame","linkStyle","LinkStyle","listTemplate","ListTemplate","paragraphFormat","ParagraphFormat","shading","Shading","tableStyle","TableStyle"])}},Wo.prototype.load=function(e){return v(this,e)},Wo.prototype.retrieve=function(e){return O(this,e)},Wo.prototype._handleIdResult=function(e){Bo.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Wo.prototype._handleRetrieveResult=function(e,t){Bo.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Wo.prototype.track=function(){return this.context.trackedObjects.add(this),this},Wo.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Wo.prototype.toJSON=function(){return C(this,{automaticallyUpdate:this._A,baseStyle:this._B,builtIn:this._Bu,hasProofing:this._H,inUse:this._I,languageId:this._L,languageIdFarEast:this._La,linked:this._Li,listLevelNumber:this._Lis,locked:this._Lo,nameLocal:this._N,nextParagraphStyle:this._Ne,noSpaceBetweenParagraphsOfSameStyle:this._No,priority:this._Pr,quickStyle:this._Q,type:this._Ty,unhideWhenUsed:this._U,visibility:this._V},{borders:this._Bo,font:this._F,frame:this._Fr,linkStyle:this._Lin,listTemplate:this._List,paragraphFormat:this._P,shading:this._S,tableStyle:this._T})},Wo.prototype.setMockData=function(e){T(this,e)},Wo.prototype.ensureUnchanged=function(e){h(this,e)},Wo);function Wo(){return null!==Bo&&Bo.apply(this,arguments)||this}a.Style=Uo;var Go,Vo="Shading",qo=(Go=OfficeExtension.ClientObject,__extends(zo,Go),Object.defineProperty(zo.prototype,"_className",{get:function(){return"Shading"},enumerable:!0,configurable:!0}),Object.defineProperty(zo.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","backgroundPatternColor","foregroundPatternColor","texture"]},enumerable:!0,configurable:!0}),Object.defineProperty(zo.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","BackgroundPatternColor","ForegroundPatternColor","Texture"]},enumerable:!0,configurable:!0}),Object.defineProperty(zo.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(zo.prototype,"backgroundPatternColor",{get:function(){return _("backgroundPatternColor",this._B,Vo,this._isNull),this._B},set:function(e){this._B=e,g(this,"BackgroundPatternColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(zo.prototype,"foregroundPatternColor",{get:function(){return _("foregroundPatternColor",this._F,Vo,this._isNull),b("Shading.foregroundPatternColor","WordApiDesktop","1.1",l),this._F},set:function(e){this._F=e,g(this,"ForegroundPatternColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(zo.prototype,"texture",{get:function(){return _("texture",this._T,Vo,this._isNull),b("Shading.texture","WordApiDesktop","1.1",l),this._T},set:function(e){this._T=e,g(this,"Texture",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(zo.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Vo,this._isNull),this.__R},enumerable:!0,configurable:!0}),zo.prototype.set=function(e,t){this._recursivelySet(e,t,["backgroundPatternColor","foregroundPatternColor","texture"],[],[])},zo.prototype.update=function(e){this._recursivelyUpdate(e)},zo.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},zo.prototype._handleResult=function(e){if(Go.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.BackgroundPatternColor)||(this._B=t.BackgroundPatternColor),m(t.ForegroundPatternColor)||(this._F=t.ForegroundPatternColor),m(t.Texture)||(this._T=t.Texture),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},zo.prototype.load=function(e){return v(this,e)},zo.prototype.retrieve=function(e){return O(this,e)},zo.prototype._handleIdResult=function(e){Go.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},zo.prototype._handleRetrieveResult=function(e,t){Go.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},zo.prototype.track=function(){return this.context.trackedObjects.add(this),this},zo.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},zo.prototype.toJSON=function(){return C(this,{backgroundPatternColor:this._B,foregroundPatternColor:this._F,texture:this._T},{})},zo.prototype.setMockData=function(e){T(this,e)},zo.prototype.ensureUnchanged=function(e){h(this,e)},zo);function zo(){return null!==Go&&Go.apply(this,arguments)||this}a.Shading=qo;var Ko,Jo="ShadingUniversal",Xo=(Ko=OfficeExtension.ClientObject,__extends(Qo,Ko),Object.defineProperty(Qo.prototype,"_className",{get:function(){return"ShadingUniversal"},enumerable:!0,configurable:!0}),Object.defineProperty(Qo.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","texture","backgroundPatternColor","backgroundPatternColorIndex","foregroundPatternColor","foregroundPatternColorIndex"]},enumerable:!0,configurable:!0}),Object.defineProperty(Qo.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Texture","BackgroundPatternColor","BackgroundPatternColorIndex","ForegroundPatternColor","ForegroundPatternColorIndex"]},enumerable:!0,configurable:!0}),Object.defineProperty(Qo.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Qo.prototype,"backgroundPatternColor",{get:function(){return _("backgroundPatternColor",this._B,Jo,this._isNull),this._B},set:function(e){this._B=e,g(this,"BackgroundPatternColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qo.prototype,"backgroundPatternColorIndex",{get:function(){return _("backgroundPatternColorIndex",this._Ba,Jo,this._isNull),this._Ba},set:function(e){this._Ba=e,g(this,"BackgroundPatternColorIndex",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qo.prototype,"foregroundPatternColor",{get:function(){return _("foregroundPatternColor",this._F,Jo,this._isNull),this._F},set:function(e){this._F=e,g(this,"ForegroundPatternColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qo.prototype,"foregroundPatternColorIndex",{get:function(){return _("foregroundPatternColorIndex",this._Fo,Jo,this._isNull),this._Fo},set:function(e){this._Fo=e,g(this,"ForegroundPatternColorIndex",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qo.prototype,"texture",{get:function(){return _("texture",this._T,Jo,this._isNull),this._T},set:function(e){this._T=e,g(this,"Texture",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qo.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Jo,this._isNull),this.__R},enumerable:!0,configurable:!0}),Qo.prototype.set=function(e,t){this._recursivelySet(e,t,["texture","backgroundPatternColor","backgroundPatternColorIndex","foregroundPatternColor","foregroundPatternColorIndex"],[],[])},Qo.prototype.update=function(e){this._recursivelyUpdate(e)},Qo.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Qo.prototype._handleResult=function(e){if(Ko.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.BackgroundPatternColor)||(this._B=t.BackgroundPatternColor),m(t.BackgroundPatternColorIndex)||(this._Ba=t.BackgroundPatternColorIndex),m(t.ForegroundPatternColor)||(this._F=t.ForegroundPatternColor),m(t.ForegroundPatternColorIndex)||(this._Fo=t.ForegroundPatternColorIndex),m(t.Texture)||(this._T=t.Texture),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},Qo.prototype.load=function(e){return v(this,e)},Qo.prototype.retrieve=function(e){return O(this,e)},Qo.prototype._handleIdResult=function(e){Ko.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Qo.prototype._handleRetrieveResult=function(e,t){Ko.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Qo.prototype.track=function(){return this.context.trackedObjects.add(this),this},Qo.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Qo.prototype.toJSON=function(){return C(this,{backgroundPatternColor:this._B,backgroundPatternColorIndex:this._Ba,foregroundPatternColor:this._F,foregroundPatternColorIndex:this._Fo,texture:this._T},{})},Qo.prototype.setMockData=function(e){T(this,e)},Qo.prototype.ensureUnchanged=function(e){h(this,e)},Qo);function Qo(){return null!==Ko&&Ko.apply(this,arguments)||this}a.ShadingUniversal=Xo;var Yo,Zo="Table",$o=(Yo=OfficeExtension.ClientObject,__extends(ea,Yo),Object.defineProperty(ea.prototype,"_className",{get:function(){return"Table"},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId","isUniform","nestingLevel","values","style","rowCount","headerRowCount","styleTotalRow","styleFirstColumn","styleLastColumn","styleBandedRows","styleBandedColumns","shadingColor","horizontalAlignment","verticalAlignment","width","styleBuiltIn","alignment"]},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId","IsUniform","NestingLevel","Values","Style","RowCount","HeaderRowCount","StyleTotalRow","StyleFirstColumn","StyleLastColumn","StyleBandedRows","StyleBandedColumns","ShadingColor","HorizontalAlignment","VerticalAlignment","Width","StyleBuiltIn","Alignment"]},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!1,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"_navigationPropertyNames",{get:function(){return["rows","tables","parentTableCell","parentTable","font","parentContentControl","parentBody","parentTableCellOrNullObject","parentTableOrNullObject","parentContentControlOrNullObject","footnotes","endnotes","fields"]},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"endnotes",{get:function(){return b("Table.endnotes",u,"1.5",l),this._E||(this._E=t(a.NoteItemCollection,this,"Endnotes",!0,4)),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"fields",{get:function(){return b("Table.fields",u,"1.4",l),this._F||(this._F=t(a.FieldCollection,this,"Fields",!0,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"font",{get:function(){return this._Fo||(this._Fo=t(a.Font,this,"Font",!1,4)),this._Fo},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"footnotes",{get:function(){return b("Table.footnotes",u,"1.5",l),this._Foo||(this._Foo=t(a.NoteItemCollection,this,"Footnotes",!0,4)),this._Foo},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"parentBody",{get:function(){return this._P||(this._P=t(a.Body,this,"ParentBody",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"parentContentControl",{get:function(){return this._Pa||(this._Pa=t(a.ContentControl,this,"ParentContentControl",!1,4)),this._Pa},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"parentContentControlOrNullObject",{get:function(){return this._Par||(this._Par=t(a.ContentControl,this,"ParentContentControlOrNullObject",!1,4)),this._Par},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"parentTable",{get:function(){return this._Pare||(this._Pare=t(a.Table,this,"ParentTable",!1,4)),this._Pare},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"parentTableCell",{get:function(){return this._Paren||(this._Paren=t(a.TableCell,this,"ParentTableCell",!1,4)),this._Paren},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"parentTableCellOrNullObject",{get:function(){return this._Parent||(this._Parent=t(a.TableCell,this,"ParentTableCellOrNullObject",!1,4)),this._Parent},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"parentTableOrNullObject",{get:function(){return this._ParentT||(this._ParentT=t(a.Table,this,"ParentTableOrNullObject",!1,4)),this._ParentT},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"rows",{get:function(){return this._Ro||(this._Ro=t(a.TableRowCollection,this,"Rows",!0,4)),this._Ro},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"tables",{get:function(){return this._T||(this._T=t(a.TableCollection,this,"Tables",!0,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"alignment",{get:function(){return _("alignment",this._A,Zo,this._isNull),this._A},set:function(e){this._A=e,g(this,"Alignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"headerRowCount",{get:function(){return _("headerRowCount",this._H,Zo,this._isNull),this._H},set:function(e){this._H=e,g(this,"HeaderRowCount",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"horizontalAlignment",{get:function(){return _("horizontalAlignment",this._Ho,Zo,this._isNull),this._Ho},set:function(e){this._Ho=e,g(this,"HorizontalAlignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"isUniform",{get:function(){return _("isUniform",this._I,Zo,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"nestingLevel",{get:function(){return _("nestingLevel",this._N,Zo,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"rowCount",{get:function(){return _("rowCount",this._R,Zo,this._isNull),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"shadingColor",{get:function(){return _("shadingColor",this._S,Zo,this._isNull),this._S},set:function(e){this._S=e,g(this,"ShadingColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"style",{get:function(){return _("style",this._St,Zo,this._isNull),this._St},set:function(e){this._St=e,g(this,"Style",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"styleBandedColumns",{get:function(){return _("styleBandedColumns",this._Sty,Zo,this._isNull),this._Sty},set:function(e){this._Sty=e,g(this,"StyleBandedColumns",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"styleBandedRows",{get:function(){return _("styleBandedRows",this._Styl,Zo,this._isNull),this._Styl},set:function(e){this._Styl=e,g(this,"StyleBandedRows",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"styleBuiltIn",{get:function(){return _("styleBuiltIn",this._Style,Zo,this._isNull),this._Style},set:function(e){this._Style=e,g(this,"StyleBuiltIn",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"styleFirstColumn",{get:function(){return _("styleFirstColumn",this._StyleF,Zo,this._isNull),this._StyleF},set:function(e){this._StyleF=e,g(this,"StyleFirstColumn",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"styleLastColumn",{get:function(){return _("styleLastColumn",this._StyleL,Zo,this._isNull),this._StyleL},set:function(e){this._StyleL=e,g(this,"StyleLastColumn",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"styleTotalRow",{get:function(){return _("styleTotalRow",this._StyleT,Zo,this._isNull),this._StyleT},set:function(e){this._StyleT=e,g(this,"StyleTotalRow",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"values",{get:function(){return _("values",this._V,Zo,this._isNull),this._V},set:function(e){this._V=e,g(this,"Values",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"verticalAlignment",{get:function(){return _("verticalAlignment",this._Ve,Zo,this._isNull),this._Ve},set:function(e){this._Ve=e,g(this,"VerticalAlignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"width",{get:function(){return _("width",this._W,Zo,this._isNull),this._W},set:function(e){this._W=e,g(this,"Width",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"_Id",{get:function(){return _("_Id",this.__I,Zo,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(ea.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Zo,this._isNull),this.__R},enumerable:!0,configurable:!0}),ea.prototype.set=function(e,t){this._recursivelySet(e,t,["values","style","headerRowCount","styleTotalRow","styleFirstColumn","styleLastColumn","styleBandedRows","styleBandedColumns","shadingColor","horizontalAlignment","verticalAlignment","width","styleBuiltIn","alignment"],["font"],["endnotes","fields","footnotes","parentBody","parentContentControl","parentContentControlOrNullObject","parentTable","parentTableCell","parentTableCellOrNullObject","parentTableOrNullObject","rows","tables"])},ea.prototype.update=function(e){this._recursivelyUpdate(e)},ea.prototype.addColumns=function(e,t,n){d(this,"AddColumns",0,[e,t,n],0,0)},ea.prototype.addRows=function(e,t,n){return p(a.TableRowCollection,this,"AddRows",0,[e,t,n],!0,!1,null,0)},ea.prototype.autoFitWindow=function(){d(this,"AutoFitWindow",0,[],0,0)},ea.prototype.clear=function(){d(this,"Clear",0,[],0,0)},ea.prototype.delete=function(){d(this,"Delete",0,[],0,0)},ea.prototype.deleteColumns=function(e,t){d(this,"DeleteColumns",0,[e,t],0,0)},ea.prototype.deleteRows=function(e,t){d(this,"DeleteRows",0,[e,t],0,0)},ea.prototype.distributeColumns=function(){d(this,"DistributeColumns",0,[],0,0)},ea.prototype.getBorder=function(e){return p(a.TableBorder,this,"GetBorder",1,[e],!1,!1,null,4)},ea.prototype.getCell=function(e,t){return p(a.TableCell,this,"GetCell",1,[e,t],!1,!1,null,4)},ea.prototype.getCellOrNullObject=function(e,t){return p(a.TableCell,this,"GetCellOrNullObject",1,[e,t],!1,!1,null,4)},ea.prototype.getCellPadding=function(e){return d(this,"GetCellPadding",1,[e],4,0)},ea.prototype.getNext=function(){return p(a.Table,this,"GetNext",1,[],!1,!1,null,4)},ea.prototype.getNextOrNullObject=function(){return p(a.Table,this,"GetNextOrNullObject",1,[],!1,!1,null,4)},ea.prototype.getParagraphAfter=function(){return p(a.Paragraph,this,"GetParagraphAfter",1,[],!1,!1,null,4)},ea.prototype.getParagraphAfterOrNullObject=function(){return p(a.Paragraph,this,"GetParagraphAfterOrNullObject",1,[],!1,!1,null,4)},ea.prototype.getParagraphBefore=function(){return p(a.Paragraph,this,"GetParagraphBefore",1,[],!1,!1,null,4)},ea.prototype.getParagraphBeforeOrNullObject=function(){return p(a.Paragraph,this,"GetParagraphBeforeOrNullObject",1,[],!1,!1,null,4)},ea.prototype.getRange=function(e){return p(a.Range,this,"GetRange",1,[e],!1,!1,null,4)},ea.prototype.insertContentControl=function(){return p(a.ContentControl,this,"InsertContentControl",0,[],!1,!0,null,0)},ea.prototype.insertParagraph=function(e,t){return p(a.Paragraph,this,"InsertParagraph",0,[e,t],!1,!0,null,0)},ea.prototype.insertTable=function(e,t,n,r){return p(a.Table,this,"InsertTable",0,[e,t,n,r],!1,!0,null,0)},ea.prototype.mergeCells=function(e,t,n,r){return b("Table.mergeCells",u,"1.4",l),p(a.TableCell,this,"MergeCells",0,[e,t,n,r],!1,!0,null,0)},ea.prototype.search=function(e,t){var n=J.Table_Search(this,e,t),r=n.handled,i=n.result;return r?i:p(a.RangeCollection,this,"Search",1,[e,t],!0,!1,null,4)},ea.prototype.select=function(e){d(this,"Select",1,[e],4,0)},ea.prototype.setCellPadding=function(e,t){d(this,"SetCellPadding",0,[e,t],0,0)},ea.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},ea.prototype._Search2=function(e,t){return p(a.RangeCollection,this,"_Search2",1,[e,t],!0,!1,null,4)},ea.prototype._handleResult=function(e){if(Yo.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Alignment)||(this._A=t.Alignment),m(t.HeaderRowCount)||(this._H=t.HeaderRowCount),m(t.HorizontalAlignment)||(this._Ho=t.HorizontalAlignment),m(t.IsUniform)||(this._I=t.IsUniform),m(t.NestingLevel)||(this._N=t.NestingLevel),m(t.RowCount)||(this._R=t.RowCount),m(t.ShadingColor)||(this._S=t.ShadingColor),m(t.Style)||(this._St=t.Style),m(t.StyleBandedColumns)||(this._Sty=t.StyleBandedColumns),m(t.StyleBandedRows)||(this._Styl=t.StyleBandedRows),m(t.StyleBuiltIn)||(this._Style=t.StyleBuiltIn),m(t.StyleFirstColumn)||(this._StyleF=t.StyleFirstColumn),m(t.StyleLastColumn)||(this._StyleL=t.StyleLastColumn),m(t.StyleTotalRow)||(this._StyleT=t.StyleTotalRow),m(t.Values)||(this._V=t.Values),m(t.VerticalAlignment)||(this._Ve=t.VerticalAlignment),m(t.Width)||(this._W=t.Width),m(t._Id)||(this.__I=t._Id),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["endnotes","Endnotes","fields","Fields","font","Font","footnotes","Footnotes","parentBody","ParentBody","parentContentControl","ParentContentControl","parentContentControlOrNullObject","ParentContentControlOrNullObject","parentTable","ParentTable","parentTableCell","ParentTableCell","parentTableCellOrNullObject","ParentTableCellOrNullObject","parentTableOrNullObject","ParentTableOrNullObject","rows","Rows","tables","Tables"])}},ea.prototype.load=function(e){return v(this,e)},ea.prototype.retrieve=function(e){return O(this,e)},ea.prototype._handleIdResult=function(e){Yo.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e._Id)||(this.__I=e._Id))},ea.prototype._handleRetrieveResult=function(e,t){Yo.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},ea.prototype.track=function(){return this.context.trackedObjects.add(this),this},ea.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ea.prototype.toJSON=function(){return C(this,{alignment:this._A,headerRowCount:this._H,horizontalAlignment:this._Ho,isUniform:this._I,nestingLevel:this._N,rowCount:this._R,shadingColor:this._S,style:this._St,styleBandedColumns:this._Sty,styleBandedRows:this._Styl,styleBuiltIn:this._Style,styleFirstColumn:this._StyleF,styleLastColumn:this._StyleL,styleTotalRow:this._StyleT,values:this._V,verticalAlignment:this._Ve,width:this._W},{fields:this._F,font:this._Fo,rows:this._Ro,tables:this._T})},ea.prototype.setMockData=function(e){T(this,e)},ea.prototype.ensureUnchanged=function(e){h(this,e)},ea);function ea(){return null!==Yo&&Yo.apply(this,arguments)||this}a.Table=$o,(J=a._CC||(a._CC={})).Table_Search=function(e,t,n){var r;if(s()){var i=c(n);r=e._Search2(t,i)}else n=o(e.context,n),r=p(a.RangeCollection,e,"Search",1,[t,n],!0,!1,null,4);return{handled:!0,result:r}};var ta,na="TableStyle",ra=(ta=OfficeExtension.ClientObject,__extends(ia,ta),Object.defineProperty(ia.prototype,"_className",{get:function(){return"TableStyle"},enumerable:!0,configurable:!0}),Object.defineProperty(ia.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","allowBreakAcrossPage","alignment","bottomCellMargin","leftCellMargin","rightCellMargin","topCellMargin","cellSpacing"]},enumerable:!0,configurable:!0}),Object.defineProperty(ia.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","AllowBreakAcrossPage","Alignment","BottomCellMargin","LeftCellMargin","RightCellMargin","TopCellMargin","CellSpacing"]},enumerable:!0,configurable:!0}),Object.defineProperty(ia.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(ia.prototype,"alignment",{get:function(){return _("alignment",this._A,na,this._isNull),b("TableStyle.alignment","WordApiDesktop","1.1",l),this._A},set:function(e){this._A=e,g(this,"Alignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ia.prototype,"allowBreakAcrossPage",{get:function(){return _("allowBreakAcrossPage",this._Al,na,this._isNull),b("TableStyle.allowBreakAcrossPage","WordApiDesktop","1.1",l),this._Al},set:function(e){this._Al=e,g(this,"AllowBreakAcrossPage",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ia.prototype,"bottomCellMargin",{get:function(){return _("bottomCellMargin",this._B,na,this._isNull),this._B},set:function(e){this._B=e,g(this,"BottomCellMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ia.prototype,"cellSpacing",{get:function(){return _("cellSpacing",this._C,na,this._isNull),this._C},set:function(e){this._C=e,g(this,"CellSpacing",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ia.prototype,"leftCellMargin",{get:function(){return _("leftCellMargin",this._L,na,this._isNull),this._L},set:function(e){this._L=e,g(this,"LeftCellMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ia.prototype,"rightCellMargin",{get:function(){return _("rightCellMargin",this._R,na,this._isNull),this._R},set:function(e){this._R=e,g(this,"RightCellMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ia.prototype,"topCellMargin",{get:function(){return _("topCellMargin",this._T,na,this._isNull),this._T},set:function(e){this._T=e,g(this,"TopCellMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ia.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,na,this._isNull),this.__R},enumerable:!0,configurable:!0}),ia.prototype.set=function(e,t){this._recursivelySet(e,t,["allowBreakAcrossPage","alignment","bottomCellMargin","leftCellMargin","rightCellMargin","topCellMargin","cellSpacing"],[],[])},ia.prototype.update=function(e){this._recursivelyUpdate(e)},ia.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},ia.prototype._handleResult=function(e){if(ta.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Alignment)||(this._A=t.Alignment),m(t.AllowBreakAcrossPage)||(this._Al=t.AllowBreakAcrossPage),m(t.BottomCellMargin)||(this._B=t.BottomCellMargin),m(t.CellSpacing)||(this._C=t.CellSpacing),m(t.LeftCellMargin)||(this._L=t.LeftCellMargin),m(t.RightCellMargin)||(this._R=t.RightCellMargin),m(t.TopCellMargin)||(this._T=t.TopCellMargin),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},ia.prototype.load=function(e){return v(this,e)},ia.prototype.retrieve=function(e){return O(this,e)},ia.prototype._handleIdResult=function(e){ta.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},ia.prototype._handleRetrieveResult=function(e,t){ta.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},ia.prototype.track=function(){return this.context.trackedObjects.add(this),this},ia.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ia.prototype.toJSON=function(){return C(this,{alignment:this._A,allowBreakAcrossPage:this._Al,bottomCellMargin:this._B,cellSpacing:this._C,leftCellMargin:this._L,rightCellMargin:this._R,topCellMargin:this._T},{})},ia.prototype.setMockData=function(e){T(this,e)},ia.prototype.ensureUnchanged=function(e){h(this,e)},ia);function ia(){return null!==ta&&ta.apply(this,arguments)||this}a.TableStyle=ra;var oa,aa="TableCollection",sa=(oa=OfficeExtension.ClientObject,__extends(ca,oa),Object.defineProperty(ca.prototype,"_className",{get:function(){return"TableCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(ca.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(ca.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ca.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ca.prototype,"items",{get:function(){return _("items",this.m__items,aa,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(ca.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,aa,this._isNull),this.__R},enumerable:!0,configurable:!0}),ca.prototype.getFirst=function(){return p(a.Table,this,"GetFirst",1,[],!1,!1,null,4)},ca.prototype.getFirstOrNullObject=function(){return p(a.Table,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},ca.prototype._GetItem=function(e){return r(a.Table,this,[e])},ca.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},ca.prototype._handleResult=function(e){if(oa.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Table,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},ca.prototype.load=function(e){return v(this,e)},ca.prototype.retrieve=function(e){return O(this,e)},ca.prototype._handleIdResult=function(e){oa.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},ca.prototype._handleRetrieveResult=function(e,t){var n=this;oa.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.Table,!0,n,e,t)})},ca.prototype.track=function(){return this.context.trackedObjects.add(this),this},ca.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ca.prototype.toJSON=function(){return C(this,{},{},this.m__items)},ca.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.Table,!0,n,e,t)},function(e){return n.m__items=e})},ca);function ca(){return null!==oa&&oa.apply(this,arguments)||this}a.TableCollection=sa;var la,ua="TableColumn",pa=(la=OfficeExtension.ClientObject,__extends(fa,la),Object.defineProperty(fa.prototype,"_className",{get:function(){return"TableColumn"},enumerable:!0,configurable:!0}),Object.defineProperty(fa.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","columnIndex","isFirst","isLast","nestingLevel","preferredWidth","preferredWidthType","width"]},enumerable:!0,configurable:!0}),Object.defineProperty(fa.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","ColumnIndex","IsFirst","IsLast","NestingLevel","PreferredWidth","PreferredWidthType","Width"]},enumerable:!0,configurable:!0}),Object.defineProperty(fa.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!1,!1,!1,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(fa.prototype,"_navigationPropertyNames",{get:function(){return["borders","shading"]},enumerable:!0,configurable:!0}),Object.defineProperty(fa.prototype,"borders",{get:function(){return this._B||(this._B=t(a.BorderUniversalCollection,this,"Borders",!0,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(fa.prototype,"shading",{get:function(){return this._S||(this._S=t(a.ShadingUniversal,this,"Shading",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(fa.prototype,"columnIndex",{get:function(){return _("columnIndex",this._C,ua,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(fa.prototype,"isFirst",{get:function(){return _("isFirst",this._I,ua,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(fa.prototype,"isLast",{get:function(){return _("isLast",this._Is,ua,this._isNull),this._Is},enumerable:!0,configurable:!0}),Object.defineProperty(fa.prototype,"nestingLevel",{get:function(){return _("nestingLevel",this._N,ua,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(fa.prototype,"preferredWidth",{get:function(){return _("preferredWidth",this._P,ua,this._isNull),this._P},set:function(e){this._P=e,g(this,"PreferredWidth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fa.prototype,"preferredWidthType",{get:function(){return _("preferredWidthType",this._Pr,ua,this._isNull),this._Pr},set:function(e){this._Pr=e,g(this,"PreferredWidthType",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fa.prototype,"width",{get:function(){return _("width",this._W,ua,this._isNull),this._W},set:function(e){this._W=e,g(this,"Width",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fa.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,ua,this._isNull),this.__R},enumerable:!0,configurable:!0}),fa.prototype.set=function(e,t){this._recursivelySet(e,t,["preferredWidth","preferredWidthType","width"],["shading"],["borders"])},fa.prototype.update=function(e){this._recursivelyUpdate(e)},fa.prototype.autoFit=function(){d(this,"AutoFit",0,[],0,0)},fa.prototype.delete=function(){d(this,"Delete",0,[],0,0)},fa.prototype.select=function(){d(this,"Select",0,[],0,0)},fa.prototype.setWidth=function(e,t){d(this,"SetWidth",0,[e,t],0,0)},fa.prototype.sort=function(){d(this,"Sort",0,[],0,0)},fa.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},fa.prototype._handleResult=function(e){if(la.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.ColumnIndex)||(this._C=t.ColumnIndex),m(t.IsFirst)||(this._I=t.IsFirst),m(t.IsLast)||(this._Is=t.IsLast),m(t.NestingLevel)||(this._N=t.NestingLevel),m(t.PreferredWidth)||(this._P=t.PreferredWidth),m(t.PreferredWidthType)||(this._Pr=t.PreferredWidthType),m(t.Width)||(this._W=t.Width),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["borders","Borders","shading","Shading"])}},fa.prototype.load=function(e){return v(this,e)},fa.prototype.retrieve=function(e){return O(this,e)},fa.prototype._handleIdResult=function(e){la.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},fa.prototype._handleRetrieveResult=function(e,t){la.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},fa.prototype.track=function(){return this.context.trackedObjects.add(this),this},fa.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},fa.prototype.toJSON=function(){return C(this,{columnIndex:this._C,isFirst:this._I,isLast:this._Is,nestingLevel:this._N,preferredWidth:this._P,preferredWidthType:this._Pr,width:this._W},{borders:this._B,shading:this._S})},fa.prototype.setMockData=function(e){T(this,e)},fa.prototype.ensureUnchanged=function(e){h(this,e)},fa);function fa(){return null!==la&&la.apply(this,arguments)||this}a.TableColumn=pa;var da,ha="TableColumnCollection",ga=(da=OfficeExtension.ClientObject,__extends(ya,da),Object.defineProperty(ya.prototype,"_className",{get:function(){return"TableColumnCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(ya.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(ya.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ya.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ya.prototype,"items",{get:function(){return _("items",this.m__items,ha,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(ya.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,ha,this._isNull),this.__R},enumerable:!0,configurable:!0}),ya.prototype.add=function(e){return p(a.TableColumn,this,"Add",0,[e],!1,!0,null,0)},ya.prototype.autoFit=function(){d(this,"AutoFit",0,[],0,0)},ya.prototype.delete=function(){d(this,"Delete",0,[],0,0)},ya.prototype.distributeWidth=function(){d(this,"DistributeWidth",0,[],0,0)},ya.prototype.select=function(){d(this,"Select",0,[],0,0)},ya.prototype.setWidth=function(e,t){d(this,"SetWidth",0,[e,t],0,0)},ya.prototype._GetItem=function(e){return r(a.TableColumn,this,[e])},ya.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},ya.prototype._handleResult=function(e){if(da.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.TableColumn,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},ya.prototype.load=function(e){return v(this,e)},ya.prototype.retrieve=function(e){return O(this,e)},ya.prototype._handleIdResult=function(e){da.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},ya.prototype._handleRetrieveResult=function(e,t){var n=this;da.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.TableColumn,!0,n,e,t)})},ya.prototype.track=function(){return this.context.trackedObjects.add(this),this},ya.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ya.prototype.toJSON=function(){return C(this,{},{},this.m__items)},ya.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.TableColumn,!0,n,e,t)},function(e){return n.m__items=e})},ya);function ya(){return null!==da&&da.apply(this,arguments)||this}a.TableColumnCollection=ga;var ma,_a="TableRow",ba=(ma=OfficeExtension.ClientObject,__extends(va,ma),Object.defineProperty(va.prototype,"_className",{get:function(){return"TableRow"},enumerable:!0,configurable:!0}),Object.defineProperty(va.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId","cellCount","rowIndex","values","shadingColor","horizontalAlignment","verticalAlignment","isHeader","preferredHeight"]},enumerable:!0,configurable:!0}),Object.defineProperty(va.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId","CellCount","RowIndex","Values","ShadingColor","HorizontalAlignment","VerticalAlignment","IsHeader","PreferredHeight"]},enumerable:!0,configurable:!0}),Object.defineProperty(va.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!1,!1,!0,!0,!0,!0,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(va.prototype,"_navigationPropertyNames",{get:function(){return["cells","parentTable","font","footnotes","endnotes","fields"]},enumerable:!0,configurable:!0}),Object.defineProperty(va.prototype,"cells",{get:function(){return this._Ce||(this._Ce=t(a.TableCellCollection,this,"Cells",!0,4)),this._Ce},enumerable:!0,configurable:!0}),Object.defineProperty(va.prototype,"endnotes",{get:function(){return b("TableRow.endnotes",u,"1.5",l),this._E||(this._E=t(a.NoteItemCollection,this,"Endnotes",!0,4)),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(va.prototype,"fields",{get:function(){return b("TableRow.fields",u,"1.4",l),this._F||(this._F=t(a.FieldCollection,this,"Fields",!0,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(va.prototype,"font",{get:function(){return this._Fo||(this._Fo=t(a.Font,this,"Font",!1,4)),this._Fo},enumerable:!0,configurable:!0}),Object.defineProperty(va.prototype,"footnotes",{get:function(){return b("TableRow.footnotes",u,"1.5",l),this._Foo||(this._Foo=t(a.NoteItemCollection,this,"Footnotes",!0,4)),this._Foo},enumerable:!0,configurable:!0}),Object.defineProperty(va.prototype,"parentTable",{get:function(){return this._P||(this._P=t(a.Table,this,"ParentTable",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(va.prototype,"cellCount",{get:function(){return _("cellCount",this._C,_a,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(va.prototype,"horizontalAlignment",{get:function(){return _("horizontalAlignment",this._H,_a,this._isNull),this._H},set:function(e){this._H=e,g(this,"HorizontalAlignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(va.prototype,"isHeader",{get:function(){return _("isHeader",this._I,_a,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(va.prototype,"preferredHeight",{get:function(){return _("preferredHeight",this._Pr,_a,this._isNull),this._Pr},set:function(e){this._Pr=e,g(this,"PreferredHeight",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(va.prototype,"rowIndex",{get:function(){return _("rowIndex",this._R,_a,this._isNull),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(va.prototype,"shadingColor",{get:function(){return _("shadingColor",this._S,_a,this._isNull),this._S},set:function(e){this._S=e,g(this,"ShadingColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(va.prototype,"values",{get:function(){return _("values",this._V,_a,this._isNull),this._V},set:function(e){this._V=e,g(this,"Values",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(va.prototype,"verticalAlignment",{get:function(){return _("verticalAlignment",this._Ve,_a,this._isNull),this._Ve},set:function(e){this._Ve=e,g(this,"VerticalAlignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(va.prototype,"_Id",{get:function(){return _("_Id",this.__I,_a,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(va.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,_a,this._isNull),this.__R},enumerable:!0,configurable:!0}),va.prototype.set=function(e,t){this._recursivelySet(e,t,["values","shadingColor","horizontalAlignment","verticalAlignment","preferredHeight"],["font"],["cells","endnotes","fields","footnotes","parentTable"])},va.prototype.update=function(e){this._recursivelyUpdate(e)},va.prototype.clear=function(){d(this,"Clear",0,[],0,0)},va.prototype.delete=function(){d(this,"Delete",0,[],0,0)},va.prototype.getBorder=function(e){return p(a.TableBorder,this,"GetBorder",1,[e],!1,!1,null,4)},va.prototype.getCellPadding=function(e){return d(this,"GetCellPadding",1,[e],4,0)},va.prototype.getNext=function(){return p(a.TableRow,this,"GetNext",1,[],!1,!1,null,4)},va.prototype.getNextOrNullObject=function(){return p(a.TableRow,this,"GetNextOrNullObject",1,[],!1,!1,null,4)},va.prototype.insertContentControl=function(){return b("TableRow.insertContentControl","WordApiDesktop","1.1",l),p(a.ContentControl,this,"InsertContentControl",0,[],!1,!1,null,0)},va.prototype.insertRows=function(e,t,n){return p(a.TableRowCollection,this,"InsertRows",1,[e,t,n],!0,!1,null,4)},va.prototype.merge=function(){return b("TableRow.merge",u,"1.4",l),p(a.TableCell,this,"Merge",0,[],!1,!1,null,0)},va.prototype.search=function(e,t){var n=J.TableRow_Search(this,e,t),r=n.handled,i=n.result;return r?i:p(a.RangeCollection,this,"Search",1,[e,t],!0,!1,null,4)},va.prototype.select=function(e){d(this,"Select",1,[e],4,0)},va.prototype.setCellPadding=function(e,t){d(this,"SetCellPadding",0,[e,t],0,0)},va.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},va.prototype._Search2=function(e,t){return p(a.RangeCollection,this,"_Search2",1,[e,t],!0,!1,null,4)},va.prototype._handleResult=function(e){if(ma.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.CellCount)||(this._C=t.CellCount),m(t.HorizontalAlignment)||(this._H=t.HorizontalAlignment),m(t.IsHeader)||(this._I=t.IsHeader),m(t.PreferredHeight)||(this._Pr=t.PreferredHeight),m(t.RowIndex)||(this._R=t.RowIndex),m(t.ShadingColor)||(this._S=t.ShadingColor),m(t.Values)||(this._V=t.Values),m(t.VerticalAlignment)||(this._Ve=t.VerticalAlignment),m(t._Id)||(this.__I=t._Id),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["cells","Cells","endnotes","Endnotes","fields","Fields","font","Font","footnotes","Footnotes","parentTable","ParentTable"])}},va.prototype.load=function(e){return v(this,e)},va.prototype.retrieve=function(e){return O(this,e)},va.prototype._handleIdResult=function(e){ma.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e._Id)||(this.__I=e._Id))},va.prototype._handleRetrieveResult=function(e,t){ma.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},va.prototype.track=function(){return this.context.trackedObjects.add(this),this},va.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},va.prototype.toJSON=function(){return C(this,{cellCount:this._C,horizontalAlignment:this._H,isHeader:this._I,preferredHeight:this._Pr,rowIndex:this._R,shadingColor:this._S,values:this._V,verticalAlignment:this._Ve},{cells:this._Ce,fields:this._F,font:this._Fo})},va.prototype.setMockData=function(e){T(this,e)},va.prototype.ensureUnchanged=function(e){h(this,e)},va);function va(){return null!==ma&&ma.apply(this,arguments)||this}a.TableRow=ba,(J=a._CC||(a._CC={})).TableRow_Search=function(e,t,n){var r;if(s()){var i=c(n);r=e._Search2(t,i)}else n=o(e.context,n),r=p(a.RangeCollection,e,"Search",1,[t,n],!0,!1,null,4);return{handled:!0,result:r}};var Oa,Ca="TableRowCollection",Pa=(Oa=OfficeExtension.ClientObject,__extends(Ra,Oa),Object.defineProperty(Ra.prototype,"_className",{get:function(){return"TableRowCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Ra.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Ra.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ra.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ra.prototype,"items",{get:function(){return _("items",this.m__items,Ca,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Ra.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Ca,this._isNull),this.__R},enumerable:!0,configurable:!0}),Ra.prototype.getFirst=function(){return p(a.TableRow,this,"GetFirst",1,[],!1,!1,null,4)},Ra.prototype.getFirstOrNullObject=function(){return p(a.TableRow,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},Ra.prototype._GetItem=function(e){return r(a.TableRow,this,[e])},Ra.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Ra.prototype._handleResult=function(e){if(Oa.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.TableRow,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Ra.prototype.load=function(e){return v(this,e)},Ra.prototype.retrieve=function(e){return O(this,e)},Ra.prototype._handleIdResult=function(e){Oa.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Ra.prototype._handleRetrieveResult=function(e,t){var n=this;Oa.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.TableRow,!0,n,e,t)})},Ra.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ra.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ra.prototype.toJSON=function(){return C(this,{},{},this.m__items)},Ra.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.TableRow,!0,n,e,t)},function(e){return n.m__items=e})},Ra);function Ra(){return null!==Oa&&Oa.apply(this,arguments)||this}a.TableRowCollection=Pa;var Sa,Ia="TableCell",Ta=(Sa=OfficeExtension.ClientObject,__extends(Aa,Sa),Object.defineProperty(Aa.prototype,"_className",{get:function(){return"TableCell"},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId","rowIndex","cellIndex","value","shadingColor","horizontalAlignment","verticalAlignment","columnWidth","width"]},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId","RowIndex","CellIndex","Value","ShadingColor","HorizontalAlignment","VerticalAlignment","ColumnWidth","Width"]},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!1,!1,!0,!0,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"_navigationPropertyNames",{get:function(){return["parentTable","parentRow","body"]},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"body",{get:function(){return this._B||(this._B=t(a.Body,this,"Body",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"parentRow",{get:function(){return this._P||(this._P=t(a.TableRow,this,"ParentRow",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"parentTable",{get:function(){return this._Pa||(this._Pa=t(a.Table,this,"ParentTable",!1,4)),this._Pa},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"cellIndex",{get:function(){return _("cellIndex",this._C,Ia,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"columnWidth",{get:function(){return _("columnWidth",this._Co,Ia,this._isNull),this._Co},set:function(e){this._Co=e,g(this,"ColumnWidth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"horizontalAlignment",{get:function(){return _("horizontalAlignment",this._H,Ia,this._isNull),this._H},set:function(e){this._H=e,g(this,"HorizontalAlignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"rowIndex",{get:function(){return _("rowIndex",this._R,Ia,this._isNull),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"shadingColor",{get:function(){return _("shadingColor",this._S,Ia,this._isNull),this._S},set:function(e){this._S=e,g(this,"ShadingColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"value",{get:function(){return _("value",this._V,Ia,this._isNull),this._V},set:function(e){this._V=e,g(this,"Value",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"verticalAlignment",{get:function(){return _("verticalAlignment",this._Ve,Ia,this._isNull),this._Ve},set:function(e){this._Ve=e,g(this,"VerticalAlignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"width",{get:function(){return _("width",this._W,Ia,this._isNull),this._W},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"_Id",{get:function(){return _("_Id",this.__I,Ia,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Ia,this._isNull),this.__R},enumerable:!0,configurable:!0}),Aa.prototype.set=function(e,t){this._recursivelySet(e,t,["value","shadingColor","horizontalAlignment","verticalAlignment","columnWidth"],["body"],["parentRow","parentTable"])},Aa.prototype.update=function(e){this._recursivelyUpdate(e)},Aa.prototype.deleteColumn=function(){d(this,"DeleteColumn",0,[],0,0)},Aa.prototype.deleteRow=function(){d(this,"DeleteRow",0,[],0,0)},Aa.prototype.getBorder=function(e){return p(a.TableBorder,this,"GetBorder",1,[e],!1,!1,null,4)},Aa.prototype.getCellPadding=function(e){return d(this,"GetCellPadding",1,[e],4,0)},Aa.prototype.getNext=function(){return p(a.TableCell,this,"GetNext",1,[],!1,!1,null,4)},Aa.prototype.getNextOrNullObject=function(){return p(a.TableCell,this,"GetNextOrNullObject",1,[],!1,!1,null,4)},Aa.prototype.insertColumns=function(e,t,n){d(this,"InsertColumns",0,[e,t,n],0,0)},Aa.prototype.insertRows=function(e,t,n){return p(a.TableRowCollection,this,"InsertRows",0,[e,t,n],!0,!1,null,0)},Aa.prototype.setCellPadding=function(e,t){d(this,"SetCellPadding",0,[e,t],0,0)},Aa.prototype.split=function(e,t){b("TableCell.split",u,"1.4",l),d(this,"Split",0,[e,t],0,0)},Aa.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Aa.prototype._handleResult=function(e){if(Sa.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.CellIndex)||(this._C=t.CellIndex),m(t.ColumnWidth)||(this._Co=t.ColumnWidth),m(t.HorizontalAlignment)||(this._H=t.HorizontalAlignment),m(t.RowIndex)||(this._R=t.RowIndex),m(t.ShadingColor)||(this._S=t.ShadingColor),m(t.Value)||(this._V=t.Value),m(t.VerticalAlignment)||(this._Ve=t.VerticalAlignment),m(t.Width)||(this._W=t.Width),m(t._Id)||(this.__I=t._Id),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["body","Body","parentRow","ParentRow","parentTable","ParentTable"])}},Aa.prototype.load=function(e){return v(this,e)},Aa.prototype.retrieve=function(e){return O(this,e)},Aa.prototype._handleIdResult=function(e){Sa.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e._Id)||(this.__I=e._Id))},Aa.prototype._handleRetrieveResult=function(e,t){Sa.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Aa.prototype.track=function(){return this.context.trackedObjects.add(this),this},Aa.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Aa.prototype.toJSON=function(){return C(this,{cellIndex:this._C,columnWidth:this._Co,horizontalAlignment:this._H,rowIndex:this._R,shadingColor:this._S,value:this._V,verticalAlignment:this._Ve,width:this._W},{body:this._B})},Aa.prototype.setMockData=function(e){T(this,e)},Aa.prototype.ensureUnchanged=function(e){h(this,e)},Aa);function Aa(){return null!==Sa&&Sa.apply(this,arguments)||this}a.TableCell=Ta;var Na,xa="TableCellCollection",Ea=(Na=OfficeExtension.ClientObject,__extends(Da,Na),Object.defineProperty(Da.prototype,"_className",{get:function(){return"TableCellCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Da.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Da.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Da.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Da.prototype,"items",{get:function(){return _("items",this.m__items,xa,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Da.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,xa,this._isNull),this.__R},enumerable:!0,configurable:!0}),Da.prototype.getFirst=function(){return p(a.TableCell,this,"GetFirst",1,[],!1,!1,null,4)},Da.prototype.getFirstOrNullObject=function(){return p(a.TableCell,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},Da.prototype._GetItem=function(e){return r(a.TableCell,this,[e])},Da.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Da.prototype._handleResult=function(e){if(Na.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.TableCell,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Da.prototype.load=function(e){return v(this,e)},Da.prototype.retrieve=function(e){return O(this,e)},Da.prototype._handleIdResult=function(e){Na.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Da.prototype._handleRetrieveResult=function(e,t){var n=this;Na.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.TableCell,!0,n,e,t)})},Da.prototype.track=function(){return this.context.trackedObjects.add(this),this},Da.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Da.prototype.toJSON=function(){return C(this,{},{},this.m__items)},Da.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.TableCell,!0,n,e,t)},function(e){return n.m__items=e})},Da);function Da(){return null!==Na&&Na.apply(this,arguments)||this}a.TableCellCollection=Ea;var ja,wa="TableBorder",ka=(ja=OfficeExtension.ClientObject,__extends(Fa,ja),Object.defineProperty(Fa.prototype,"_className",{get:function(){return"TableBorder"},enumerable:!0,configurable:!0}),Object.defineProperty(Fa.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","color","type","width"]},enumerable:!0,configurable:!0}),Object.defineProperty(Fa.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Color","Type","Width"]},enumerable:!0,configurable:!0}),Object.defineProperty(Fa.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Fa.prototype,"color",{get:function(){return _("color",this._C,wa,this._isNull),this._C},set:function(e){this._C=e,g(this,"Color",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Fa.prototype,"type",{get:function(){return _("type",this._T,wa,this._isNull),this._T},set:function(e){this._T=e,g(this,"Type",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Fa.prototype,"width",{get:function(){return _("width",this._W,wa,this._isNull),this._W},set:function(e){this._W=e,g(this,"Width",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Fa.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,wa,this._isNull),this.__R},enumerable:!0,configurable:!0}),Fa.prototype.set=function(e,t){this._recursivelySet(e,t,["color","type","width"],[],[])},Fa.prototype.update=function(e){this._recursivelyUpdate(e)},Fa.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Fa.prototype._handleResult=function(e){if(ja.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Color)||(this._C=t.Color),m(t.Type)||(this._T=t.Type),m(t.Width)||(this._W=t.Width),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},Fa.prototype.load=function(e){return v(this,e)},Fa.prototype.retrieve=function(e){return O(this,e)},Fa.prototype._handleIdResult=function(e){ja.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Fa.prototype._handleRetrieveResult=function(e,t){ja.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Fa.prototype.track=function(){return this.context.trackedObjects.add(this),this},Fa.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Fa.prototype.toJSON=function(){return C(this,{color:this._C,type:this._T,width:this._W},{})},Fa.prototype.setMockData=function(e){T(this,e)},Fa.prototype.ensureUnchanged=function(e){h(this,e)},Fa);function Fa(){return null!==ja&&ja.apply(this,arguments)||this}a.TableBorder=ka;var La,Ma="Template",Ba=(La=OfficeExtension.ClientObject,__extends(Ha,La),Object.defineProperty(Ha.prototype,"_className",{get:function(){return"Template"},enumerable:!0,configurable:!0}),Object.defineProperty(Ha.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","farEastLineBreakLanguage","farEastLineBreakLevel","fullName","justificationMode","kerningByAlgorithm","languageId","languageIdFarEast","noLineBreakAfter","noLineBreakBefore","hasNoProofing","path","saved","type","name"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ha.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","FarEastLineBreakLanguage","FarEastLineBreakLevel","FullName","JustificationMode","KerningByAlgorithm","LanguageId","LanguageIdFarEast","NoLineBreakAfter","NoLineBreakBefore","HasNoProofing","Path","Saved","Type","Name"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ha.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!1,!0,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(Ha.prototype,"_navigationPropertyNames",{get:function(){return["buildingBlockEntries","buildingBlockTypes"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ha.prototype,"buildingBlockEntries",{get:function(){return this._B||(this._B=t(a.BuildingBlockEntryCollection,this,"BuildingBlockEntries",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(Ha.prototype,"buildingBlockTypes",{get:function(){return this._Bu||(this._Bu=t(a.BuildingBlockTypeItemCollection,this,"BuildingBlockTypes",!1,4)),this._Bu},enumerable:!0,configurable:!0}),Object.defineProperty(Ha.prototype,"farEastLineBreakLanguage",{get:function(){return _("farEastLineBreakLanguage",this._F,Ma,this._isNull),this._F},set:function(e){this._F=e,g(this,"FarEastLineBreakLanguage",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ha.prototype,"farEastLineBreakLevel",{get:function(){return _("farEastLineBreakLevel",this._Fa,Ma,this._isNull),this._Fa},set:function(e){this._Fa=e,g(this,"FarEastLineBreakLevel",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ha.prototype,"fullName",{get:function(){return _("fullName",this._Fu,Ma,this._isNull),this._Fu},enumerable:!0,configurable:!0}),Object.defineProperty(Ha.prototype,"hasNoProofing",{get:function(){return _("hasNoProofing",this._H,Ma,this._isNull),this._H},set:function(e){this._H=e,g(this,"HasNoProofing",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ha.prototype,"justificationMode",{get:function(){return _("justificationMode",this._J,Ma,this._isNull),this._J},set:function(e){this._J=e,g(this,"JustificationMode",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ha.prototype,"kerningByAlgorithm",{get:function(){return _("kerningByAlgorithm",this._K,Ma,this._isNull),this._K},set:function(e){this._K=e,g(this,"KerningByAlgorithm",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ha.prototype,"languageId",{get:function(){return _("languageId",this._L,Ma,this._isNull),this._L},set:function(e){this._L=e,g(this,"LanguageId",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ha.prototype,"languageIdFarEast",{get:function(){return _("languageIdFarEast",this._La,Ma,this._isNull),this._La},set:function(e){this._La=e,g(this,"LanguageIdFarEast",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ha.prototype,"name",{get:function(){return _("name",this._N,Ma,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(Ha.prototype,"noLineBreakAfter",{get:function(){return _("noLineBreakAfter",this._No,Ma,this._isNull),this._No},set:function(e){this._No=e,g(this,"NoLineBreakAfter",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ha.prototype,"noLineBreakBefore",{get:function(){return _("noLineBreakBefore",this._NoL,Ma,this._isNull),this._NoL},set:function(e){this._NoL=e,g(this,"NoLineBreakBefore",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ha.prototype,"path",{get:function(){return _("path",this._P,Ma,this._isNull),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(Ha.prototype,"saved",{get:function(){return _("saved",this._S,Ma,this._isNull),this._S},set:function(e){this._S=e,g(this,"Saved",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ha.prototype,"type",{get:function(){return _("type",this._T,Ma,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(Ha.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Ma,this._isNull),this.__R},enumerable:!0,configurable:!0}),Ha.prototype.set=function(e,t){this._recursivelySet(e,t,["farEastLineBreakLanguage","farEastLineBreakLevel","justificationMode","kerningByAlgorithm","languageId","languageIdFarEast","noLineBreakAfter","noLineBreakBefore","hasNoProofing","saved"],[],["buildingBlockEntries","buildingBlockTypes"])},Ha.prototype.update=function(e){this._recursivelyUpdate(e)},Ha.prototype.save=function(){d(this,"Save",0,[],0,0)},Ha.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Ha.prototype._handleResult=function(e){if(La.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.FarEastLineBreakLanguage)||(this._F=t.FarEastLineBreakLanguage),m(t.FarEastLineBreakLevel)||(this._Fa=t.FarEastLineBreakLevel),m(t.FullName)||(this._Fu=t.FullName),m(t.HasNoProofing)||(this._H=t.HasNoProofing),m(t.JustificationMode)||(this._J=t.JustificationMode),m(t.KerningByAlgorithm)||(this._K=t.KerningByAlgorithm),m(t.LanguageId)||(this._L=t.LanguageId),m(t.LanguageIdFarEast)||(this._La=t.LanguageIdFarEast),m(t.Name)||(this._N=t.Name),m(t.NoLineBreakAfter)||(this._No=t.NoLineBreakAfter),m(t.NoLineBreakBefore)||(this._NoL=t.NoLineBreakBefore),m(t.Path)||(this._P=t.Path),m(t.Saved)||(this._S=t.Saved),m(t.Type)||(this._T=t.Type),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["buildingBlockEntries","BuildingBlockEntries","buildingBlockTypes","BuildingBlockTypes"])}},Ha.prototype.load=function(e){return v(this,e)},Ha.prototype.retrieve=function(e){return O(this,e)},Ha.prototype._handleIdResult=function(e){La.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Ha.prototype._handleRetrieveResult=function(e,t){La.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Ha.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ha.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ha.prototype.toJSON=function(){return C(this,{farEastLineBreakLanguage:this._F,farEastLineBreakLevel:this._Fa,fullName:this._Fu,hasNoProofing:this._H,justificationMode:this._J,kerningByAlgorithm:this._K,languageId:this._L,languageIdFarEast:this._La,name:this._N,noLineBreakAfter:this._No,noLineBreakBefore:this._NoL,path:this._P,saved:this._S,type:this._T},{})},Ha.prototype.setMockData=function(e){T(this,e)},Ha.prototype.ensureUnchanged=function(e){h(this,e)},Ha);function Ha(){return null!==La&&La.apply(this,arguments)||this}a.Template=Ba;var Ua,Wa="TemplateCollection",Ga=(Ua=OfficeExtension.ClientObject,__extends(Va,Ua),Object.defineProperty(Va.prototype,"_className",{get:function(){return"TemplateCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Va.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Va.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Va.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Va.prototype,"items",{get:function(){return _("items",this.m__items,Wa,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Va.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Wa,this._isNull),this.__R},enumerable:!0,configurable:!0}),Va.prototype.getCount=function(){return d(this,"GetCount",1,[],4,0)},Va.prototype.getItemAt=function(e){return p(a.Template,this,"GetItemAt",1,[e],!1,!1,null,4)},Va.prototype.importBuildingBlocks=function(){d(this,"ImportBuildingBlocks",0,[],0,0)},Va.prototype._GetItem=function(e){return r(a.Template,this,[e])},Va.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Va.prototype._handleResult=function(e){if(Ua.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Template,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Va.prototype.load=function(e){return v(this,e)},Va.prototype.retrieve=function(e){return O(this,e)},Va.prototype._handleIdResult=function(e){Ua.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Va.prototype._handleRetrieveResult=function(e,t){var n=this;Ua.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.Template,!0,n,e,t)})},Va.prototype.track=function(){return this.context.trackedObjects.add(this),this},Va.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Va.prototype.toJSON=function(){return C(this,{},{},this.m__items)},Va.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.Template,!0,n,e,t)},function(e){return n.m__items=e})},Va);function Va(){return null!==Ua&&Ua.apply(this,arguments)||this}a.TemplateCollection=Ga;var qa,za="TrackedChange",Ka=(qa=OfficeExtension.ClientObject,__extends(Ja,qa),Object.defineProperty(Ja.prototype,"_className",{get:function(){return"TrackedChange"},enumerable:!0,configurable:!0}),Object.defineProperty(Ja.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","author","date","text","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ja.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Author","Date","Text","Type"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ja.prototype,"author",{get:function(){return _("author",this._A,za,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(Ja.prototype,"date",{get:function(){return _("date",this._D,za,this._isNull),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(Ja.prototype,"text",{get:function(){return _("text",this._T,za,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(Ja.prototype,"type",{get:function(){return _("type",this._Ty,za,this._isNull),this._Ty},enumerable:!0,configurable:!0}),Object.defineProperty(Ja.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,za,this._isNull),this.__R},enumerable:!0,configurable:!0}),Ja.prototype.accept=function(){d(this,"Accept",0,[],0,0)},Ja.prototype.getNext=function(){return p(a.TrackedChange,this,"GetNext",1,[],!1,!1,null,4)},Ja.prototype.getNextOrNullObject=function(){return p(a.TrackedChange,this,"GetNextOrNullObject",1,[],!1,!1,null,4)},Ja.prototype.getRange=function(e){return p(a.Range,this,"GetRange",1,[e],!1,!1,null,4)},Ja.prototype.reject=function(){d(this,"Reject",0,[],0,0)},Ja.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Ja.prototype._handleResult=function(e){if(qa.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Author)||(this._A=t.Author),m(t.Date)||(this._D=S(t.Date)),m(t.Text)||(this._T=t.Text),m(t.Type)||(this._Ty=t.Type),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},Ja.prototype.load=function(e){return v(this,e)},Ja.prototype.retrieve=function(e){return O(this,e)},Ja.prototype._handleIdResult=function(e){qa.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Ja.prototype._handleRetrieveResult=function(e,t){if(qa.prototype._handleRetrieveResult.call(this,e,t),!y(e)){var n=e;m(n.Date)||(n.date=S(n.date)),I(this,e,t)}},Ja.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ja.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ja.prototype.toJSON=function(){return C(this,{author:this._A,date:this._D,text:this._T,type:this._Ty},{})},Ja.prototype.setMockData=function(e){T(this,e)},Ja.prototype.ensureUnchanged=function(e){h(this,e)},Ja);function Ja(){return null!==qa&&qa.apply(this,arguments)||this}a.TrackedChange=Ka;var Xa,Qa="TrackedChangeCollection",Ya=(Xa=OfficeExtension.ClientObject,__extends(Za,Xa),Object.defineProperty(Za.prototype,"_className",{get:function(){return"TrackedChangeCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Za.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Za.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Za.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Za.prototype,"items",{get:function(){return _("items",this.m__items,Qa,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Za.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Qa,this._isNull),this.__R},enumerable:!0,configurable:!0}),Za.prototype.acceptAll=function(){d(this,"AcceptAll",0,[],0,0)},Za.prototype.getFirst=function(){return p(a.TrackedChange,this,"GetFirst",1,[],!1,!1,null,4)},Za.prototype.getFirstOrNullObject=function(){return p(a.TrackedChange,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},Za.prototype.rejectAll=function(){d(this,"RejectAll",0,[],0,0)},Za.prototype._GetItem=function(e){return r(a.TrackedChange,this,[e])},Za.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Za.prototype._handleResult=function(e){if(Xa.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.TrackedChange,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Za.prototype.load=function(e){return v(this,e)},Za.prototype.retrieve=function(e){return O(this,e)},Za.prototype._handleIdResult=function(e){Xa.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Za.prototype._handleRetrieveResult=function(e,t){var n=this;Xa.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.TrackedChange,!0,n,e,t)})},Za.prototype.track=function(){return this.context.trackedObjects.add(this),this},Za.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Za.prototype.toJSON=function(){return C(this,{},{},this.m__items)},Za.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.TrackedChange,!0,n,e,t)},function(e){return n.m__items=e})},Za);function Za(){return null!==Xa&&Xa.apply(this,arguments)||this}a.TrackedChangeCollection=Ya;var $a,es="Shape",ts=($a=OfficeExtension.ClientObject,__extends(ns,$a),Object.defineProperty(ns.prototype,"_className",{get:function(){return"Shape"},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","id","type","height","width","left","top","relativeHorizontalPosition","relativeVerticalPosition","geometricShapeType","name","isChild","allowOverlap","leftRelative","topRelative","widthRelative","heightRelative","relativeHorizontalSize","relativeVerticalSize","altTextDescription","rotation","visible","lockAspectRatio"]},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Id","Type","Height","Width","Left","Top","RelativeHorizontalPosition","RelativeVerticalPosition","GeometricShapeType","Name","IsChild","AllowOverlap","LeftRelative","TopRelative","WidthRelative","HeightRelative","RelativeHorizontalSize","RelativeVerticalSize","AltTextDescription","Rotation","Visible","LockAspectRatio"]},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"_navigationPropertyNames",{get:function(){return["body","shapeGroup","parentGroup","canvas","parentCanvas","fill","textFrame","textWrap"]},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"body",{get:function(){return this._B||(this._B=t(a.Body,this,"Body",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"canvas",{get:function(){return this._C||(this._C=t(a.Canvas,this,"Canvas",!1,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"fill",{get:function(){return this._F||(this._F=t(a.ShapeFill,this,"Fill",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"parentCanvas",{get:function(){return this._P||(this._P=t(a.Shape,this,"ParentCanvas",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"parentGroup",{get:function(){return this._Pa||(this._Pa=t(a.Shape,this,"ParentGroup",!1,4)),this._Pa},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"shapeGroup",{get:function(){return this._S||(this._S=t(a.ShapeGroup,this,"ShapeGroup",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"textFrame",{get:function(){return this._T||(this._T=t(a.TextFrame,this,"TextFrame",!1,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"textWrap",{get:function(){return this._Te||(this._Te=t(a.ShapeTextWrap,this,"TextWrap",!1,4)),this._Te},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"allowOverlap",{get:function(){return _("allowOverlap",this._A,es,this._isNull),this._A},set:function(e){this._A=e,g(this,"AllowOverlap",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"altTextDescription",{get:function(){return _("altTextDescription",this._Al,es,this._isNull),this._Al},set:function(e){this._Al=e,g(this,"AltTextDescription",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"geometricShapeType",{get:function(){return _("geometricShapeType",this._G,es,this._isNull),this._G},set:function(e){this._G=e,g(this,"GeometricShapeType",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"height",{get:function(){return _("height",this._H,es,this._isNull),this._H},set:function(e){this._H=e,g(this,"Height",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"heightRelative",{get:function(){return _("heightRelative",this._He,es,this._isNull),this._He},set:function(e){this._He=e,g(this,"HeightRelative",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"id",{get:function(){return _("id",this._I,es,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"isChild",{get:function(){return _("isChild",this._Is,es,this._isNull),this._Is},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"left",{get:function(){return _("left",this._L,es,this._isNull),this._L},set:function(e){this._L=e,g(this,"Left",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"leftRelative",{get:function(){return _("leftRelative",this._Le,es,this._isNull),this._Le},set:function(e){this._Le=e,g(this,"LeftRelative",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"lockAspectRatio",{get:function(){return _("lockAspectRatio",this._Lo,es,this._isNull),this._Lo},set:function(e){this._Lo=e,g(this,"LockAspectRatio",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"name",{get:function(){return _("name",this._N,es,this._isNull),this._N},set:function(e){this._N=e,g(this,"Name",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"relativeHorizontalPosition",{get:function(){return _("relativeHorizontalPosition",this._R,es,this._isNull),this._R},set:function(e){this._R=e,g(this,"RelativeHorizontalPosition",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"relativeHorizontalSize",{get:function(){return _("relativeHorizontalSize",this._Re,es,this._isNull),this._Re},set:function(e){this._Re=e,g(this,"RelativeHorizontalSize",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"relativeVerticalPosition",{get:function(){return _("relativeVerticalPosition",this._Rel,es,this._isNull),this._Rel},set:function(e){this._Rel=e,g(this,"RelativeVerticalPosition",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"relativeVerticalSize",{get:function(){return _("relativeVerticalSize",this._Rela,es,this._isNull),this._Rela},set:function(e){this._Rela=e,g(this,"RelativeVerticalSize",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"rotation",{get:function(){return _("rotation",this._Ro,es,this._isNull),this._Ro},set:function(e){this._Ro=e,g(this,"Rotation",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"top",{get:function(){return _("top",this._To,es,this._isNull),this._To},set:function(e){this._To=e,g(this,"Top",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"topRelative",{get:function(){return _("topRelative",this._Top,es,this._isNull),this._Top},set:function(e){this._Top=e,g(this,"TopRelative",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"type",{get:function(){return _("type",this._Ty,es,this._isNull),this._Ty},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"visible",{get:function(){return _("visible",this._V,es,this._isNull),this._V},set:function(e){this._V=e,g(this,"Visible",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"width",{get:function(){return _("width",this._W,es,this._isNull),this._W},set:function(e){this._W=e,g(this,"Width",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"widthRelative",{get:function(){return _("widthRelative",this._Wi,es,this._isNull),this._Wi},set:function(e){this._Wi=e,g(this,"WidthRelative",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ns.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,es,this._isNull),this.__R},enumerable:!0,configurable:!0}),ns.prototype.set=function(e,t){this._recursivelySet(e,t,["height","width","left","top","relativeHorizontalPosition","relativeVerticalPosition","geometricShapeType","name","allowOverlap","leftRelative","topRelative","widthRelative","heightRelative","relativeHorizontalSize","relativeVerticalSize","altTextDescription","rotation","visible","lockAspectRatio"],["body","shapeGroup","parentGroup","canvas","parentCanvas","fill","textFrame","textWrap"],[])},ns.prototype.update=function(e){this._recursivelyUpdate(e)},ns.prototype.delete=function(){d(this,"Delete",0,[],0,0)},ns.prototype.moveHorizontally=function(e){d(this,"MoveHorizontally",0,[e],0,0)},ns.prototype.moveVertically=function(e){d(this,"MoveVertically",0,[e],0,0)},ns.prototype.scaleHeight=function(e,t,n){d(this,"ScaleHeight",0,[e,t,n],0,0)},ns.prototype.scaleWidth=function(e,t,n){d(this,"ScaleWidth",0,[e,t,n],0,0)},ns.prototype.select=function(e){d(this,"Select",1,[e],4,0)},ns.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},ns.prototype._handleResult=function(e){if($a.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.AllowOverlap)||(this._A=t.AllowOverlap),m(t.AltTextDescription)||(this._Al=t.AltTextDescription),m(t.GeometricShapeType)||(this._G=t.GeometricShapeType),m(t.Height)||(this._H=t.Height),m(t.HeightRelative)||(this._He=t.HeightRelative),m(t.Id)||(this._I=t.Id),m(t.IsChild)||(this._Is=t.IsChild),m(t.Left)||(this._L=t.Left),m(t.LeftRelative)||(this._Le=t.LeftRelative),m(t.LockAspectRatio)||(this._Lo=t.LockAspectRatio),m(t.Name)||(this._N=t.Name),m(t.RelativeHorizontalPosition)||(this._R=t.RelativeHorizontalPosition),m(t.RelativeHorizontalSize)||(this._Re=t.RelativeHorizontalSize),m(t.RelativeVerticalPosition)||(this._Rel=t.RelativeVerticalPosition),m(t.RelativeVerticalSize)||(this._Rela=t.RelativeVerticalSize),m(t.Rotation)||(this._Ro=t.Rotation),m(t.Top)||(this._To=t.Top),m(t.TopRelative)||(this._Top=t.TopRelative),m(t.Type)||(this._Ty=t.Type),m(t.Visible)||(this._V=t.Visible),m(t.Width)||(this._W=t.Width),m(t.WidthRelative)||(this._Wi=t.WidthRelative),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["body","Body","canvas","Canvas","fill","Fill","parentCanvas","ParentCanvas","parentGroup","ParentGroup","shapeGroup","ShapeGroup","textFrame","TextFrame","textWrap","TextWrap"])}},ns.prototype.load=function(e){return v(this,e)},ns.prototype.retrieve=function(e){return O(this,e)},ns.prototype._handleIdResult=function(e){$a.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e.Id)||(this._I=e.Id))},ns.prototype._handleRetrieveResult=function(e,t){$a.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},ns.prototype.track=function(){return this.context.trackedObjects.add(this),this},ns.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ns.prototype.toJSON=function(){return C(this,{allowOverlap:this._A,altTextDescription:this._Al,geometricShapeType:this._G,height:this._H,heightRelative:this._He,id:this._I,isChild:this._Is,left:this._L,leftRelative:this._Le,lockAspectRatio:this._Lo,name:this._N,relativeHorizontalPosition:this._R,relativeHorizontalSize:this._Re,relativeVerticalPosition:this._Rel,relativeVerticalSize:this._Rela,rotation:this._Ro,top:this._To,topRelative:this._Top,type:this._Ty,visible:this._V,width:this._W,widthRelative:this._Wi},{body:this._B,canvas:this._C,fill:this._F,parentCanvas:this._P,parentGroup:this._Pa,shapeGroup:this._S,textFrame:this._T,textWrap:this._Te})},ns.prototype.setMockData=function(e){T(this,e)},ns.prototype.ensureUnchanged=function(e){h(this,e)},ns);function ns(){return null!==$a&&$a.apply(this,arguments)||this}a.Shape=ts;function rs(){}a.ShapeCustom=rs,OfficeExtension.Utility.applyMixin(ts,rs);var is,os="ShapeGroup",as=(is=OfficeExtension.ClientObject,__extends(ss,is),Object.defineProperty(ss.prototype,"_className",{get:function(){return"ShapeGroup"},enumerable:!0,configurable:!0}),Object.defineProperty(ss.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","id"]},enumerable:!0,configurable:!0}),Object.defineProperty(ss.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(ss.prototype,"_navigationPropertyNames",{get:function(){return["shape","shapes"]},enumerable:!0,configurable:!0}),Object.defineProperty(ss.prototype,"shape",{get:function(){return this._S||(this._S=t(a.Shape,this,"Shape",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(ss.prototype,"shapes",{get:function(){return this._Sh||(this._Sh=t(a.ShapeCollection,this,"Shapes",!0,4)),this._Sh},enumerable:!0,configurable:!0}),Object.defineProperty(ss.prototype,"id",{get:function(){return _("id",this._I,os,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(ss.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,os,this._isNull),this.__R},enumerable:!0,configurable:!0}),ss.prototype.set=function(e,t){this._recursivelySet(e,t,[],["shape"],["shapes"])},ss.prototype.update=function(e){this._recursivelyUpdate(e)},ss.prototype.ungroup=function(){return p(a.ShapeCollection,this,"Ungroup",1,[],!0,!1,null,4)},ss.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},ss.prototype._handleResult=function(e){if(is.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Id)||(this._I=t.Id),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["shape","Shape","shapes","Shapes"])}},ss.prototype.load=function(e){return v(this,e)},ss.prototype.retrieve=function(e){return O(this,e)},ss.prototype._handleIdResult=function(e){is.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e.Id)||(this._I=e.Id))},ss.prototype._handleRetrieveResult=function(e,t){is.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},ss.prototype.track=function(){return this.context.trackedObjects.add(this),this},ss.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ss.prototype.toJSON=function(){return C(this,{id:this._I},{shape:this._S,shapes:this._Sh})},ss.prototype.setMockData=function(e){T(this,e)},ss.prototype.ensureUnchanged=function(e){h(this,e)},ss);function ss(){return null!==is&&is.apply(this,arguments)||this}a.ShapeGroup=as;function cs(){}a.ShapeGroupCustom=cs,OfficeExtension.Utility.applyMixin(as,cs);var ls,us=(ls=OfficeExtension.ClientObject,__extends(ps,ls),Object.defineProperty(ps.prototype,"_className",{get:function(){return"Canvas"},enumerable:!0,configurable:!0}),Object.defineProperty(ps.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","id"]},enumerable:!0,configurable:!0}),Object.defineProperty(ps.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(ps.prototype,"_navigationPropertyNames",{get:function(){return["shape","shapes"]},enumerable:!0,configurable:!0}),Object.defineProperty(ps.prototype,"shape",{get:function(){return this._S||(this._S=t(a.Shape,this,"Shape",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(ps.prototype,"shapes",{get:function(){return this._Sh||(this._Sh=t(a.ShapeCollection,this,"Shapes",!0,4)),this._Sh},enumerable:!0,configurable:!0}),Object.defineProperty(ps.prototype,"id",{get:function(){return _("id",this._I,"Canvas",this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(ps.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,"Canvas",this._isNull),this.__R},enumerable:!0,configurable:!0}),ps.prototype.set=function(e,t){this._recursivelySet(e,t,[],["shape"],["shapes"])},ps.prototype.update=function(e){this._recursivelyUpdate(e)},ps.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},ps.prototype._handleResult=function(e){if(ls.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Id)||(this._I=t.Id),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["shape","Shape","shapes","Shapes"])}},ps.prototype.load=function(e){return v(this,e)},ps.prototype.retrieve=function(e){return O(this,e)},ps.prototype._handleIdResult=function(e){ls.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e.Id)||(this._I=e.Id))},ps.prototype._handleRetrieveResult=function(e,t){ls.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},ps.prototype.track=function(){return this.context.trackedObjects.add(this),this},ps.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ps.prototype.toJSON=function(){return C(this,{id:this._I},{shape:this._S,shapes:this._Sh})},ps.prototype.setMockData=function(e){T(this,e)},ps.prototype.ensureUnchanged=function(e){h(this,e)},ps);function ps(){return null!==ls&&ls.apply(this,arguments)||this}a.Canvas=us;function fs(){}a.CanvasCustom=fs,OfficeExtension.Utility.applyMixin(us,fs);var ds,hs="ShapeCollection",gs=(ds=OfficeExtension.ClientObject,__extends(ys,ds),Object.defineProperty(ys.prototype,"_className",{get:function(){return"ShapeCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(ys.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(ys.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ys.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ys.prototype,"items",{get:function(){return _("items",this.m__items,hs,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(ys.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,hs,this._isNull),this.__R},enumerable:!0,configurable:!0}),ys.prototype.getByGeometricTypes=function(e){return p(a.ShapeCollection,this,"GetByGeometricTypes",1,[e],!0,!1,null,4)},ys.prototype.getById=function(e){return p(a.Shape,this,"GetById",1,[e],!1,!1,null,4)},ys.prototype.getByIdOrNullObject=function(e){return p(a.Shape,this,"GetByIdOrNullObject",1,[e],!1,!1,null,4)},ys.prototype.getByIds=function(e){return p(a.ShapeCollection,this,"GetByIds",1,[e],!0,!1,null,4)},ys.prototype.getByNames=function(e){return p(a.ShapeCollection,this,"GetByNames",1,[e],!0,!1,null,4)},ys.prototype.getByTypes=function(e){return p(a.ShapeCollection,this,"GetByTypes",1,[e],!0,!1,null,4)},ys.prototype.getFirst=function(){return p(a.Shape,this,"GetFirst",1,[],!1,!1,null,4)},ys.prototype.getFirstOrNullObject=function(){return p(a.Shape,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},ys.prototype.group=function(){return p(a.Shape,this,"Group",0,[],!1,!1,null,0)},ys.prototype._GetItem=function(e){return r(a.Shape,this,[e])},ys.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},ys.prototype._handleResult=function(e){if(ds.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Shape,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},ys.prototype.load=function(e){return v(this,e)},ys.prototype.retrieve=function(e){return O(this,e)},ys.prototype._handleIdResult=function(e){ds.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},ys.prototype._handleRetrieveResult=function(e,t){var n=this;ds.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.Shape,!0,n,e,t)})},ys.prototype.track=function(){return this.context.trackedObjects.add(this),this},ys.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ys.prototype.toJSON=function(){return C(this,{},{},this.m__items)},ys.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.Shape,!0,n,e,t)},function(e){return n.m__items=e})},ys);function ys(){return null!==ds&&ds.apply(this,arguments)||this}a.ShapeCollection=gs;var ms,_s="ShapeFill",bs=(ms=OfficeExtension.ClientObject,__extends(vs,ms),Object.defineProperty(vs.prototype,"_className",{get:function(){return"ShapeFill"},enumerable:!0,configurable:!0}),Object.defineProperty(vs.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","type","backgroundColor","foregroundColor","transparency"]},enumerable:!0,configurable:!0}),Object.defineProperty(vs.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Type","BackgroundColor","ForegroundColor","Transparency"]},enumerable:!0,configurable:!0}),Object.defineProperty(vs.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(vs.prototype,"backgroundColor",{get:function(){return _("backgroundColor",this._B,_s,this._isNull),this._B},set:function(e){this._B=e,g(this,"BackgroundColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(vs.prototype,"foregroundColor",{get:function(){return _("foregroundColor",this._F,_s,this._isNull),this._F},set:function(e){this._F=e,g(this,"ForegroundColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(vs.prototype,"transparency",{get:function(){return _("transparency",this._T,_s,this._isNull),this._T},set:function(e){this._T=e,g(this,"Transparency",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(vs.prototype,"type",{get:function(){return _("type",this._Ty,_s,this._isNull),this._Ty},enumerable:!0,configurable:!0}),Object.defineProperty(vs.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,_s,this._isNull),this.__R},enumerable:!0,configurable:!0}),vs.prototype.set=function(e,t){this._recursivelySet(e,t,["backgroundColor","foregroundColor","transparency"],[],[])},vs.prototype.update=function(e){this._recursivelyUpdate(e)},vs.prototype.clear=function(){d(this,"Clear",0,[],0,0)},vs.prototype.setSolidColor=function(e){d(this,"SetSolidColor",0,[e],0,0)},vs.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},vs.prototype._handleResult=function(e){if(ms.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.BackgroundColor)||(this._B=t.BackgroundColor),m(t.ForegroundColor)||(this._F=t.ForegroundColor),m(t.Transparency)||(this._T=t.Transparency),m(t.Type)||(this._Ty=t.Type),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},vs.prototype.load=function(e){return v(this,e)},vs.prototype.retrieve=function(e){return O(this,e)},vs.prototype._handleIdResult=function(e){ms.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},vs.prototype._handleRetrieveResult=function(e,t){ms.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},vs.prototype.track=function(){return this.context.trackedObjects.add(this),this},vs.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},vs.prototype.toJSON=function(){return C(this,{backgroundColor:this._B,foregroundColor:this._F,transparency:this._T,type:this._Ty},{})},vs.prototype.setMockData=function(e){T(this,e)},vs.prototype.ensureUnchanged=function(e){h(this,e)},vs);function vs(){return null!==ms&&ms.apply(this,arguments)||this}a.ShapeFill=bs;function Os(){}a.ShapeFillCustom=Os,OfficeExtension.Utility.applyMixin(bs,Os);var Cs,Ps="TextFrame",Rs=(Cs=OfficeExtension.ClientObject,__extends(Ss,Cs),Object.defineProperty(Ss.prototype,"_className",{get:function(){return"TextFrame"},enumerable:!0,configurable:!0}),Object.defineProperty(Ss.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","leftMargin","rightMargin","topMargin","bottomMargin","verticalAlignment","autoSizeSetting","orientation","hasText","noTextRotation","wordWrap"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ss.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","LeftMargin","RightMargin","TopMargin","BottomMargin","VerticalAlignment","AutoSizeSetting","Orientation","HasText","NoTextRotation","WordWrap"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ss.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Ss.prototype,"autoSizeSetting",{get:function(){return _("autoSizeSetting",this._A,Ps,this._isNull),this._A},set:function(e){this._A=e,g(this,"AutoSizeSetting",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ss.prototype,"bottomMargin",{get:function(){return _("bottomMargin",this._B,Ps,this._isNull),this._B},set:function(e){this._B=e,g(this,"BottomMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ss.prototype,"hasText",{get:function(){return _("hasText",this._H,Ps,this._isNull),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(Ss.prototype,"leftMargin",{get:function(){return _("leftMargin",this._L,Ps,this._isNull),this._L},set:function(e){this._L=e,g(this,"LeftMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ss.prototype,"noTextRotation",{get:function(){return _("noTextRotation",this._N,Ps,this._isNull),this._N},set:function(e){this._N=e,g(this,"NoTextRotation",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ss.prototype,"orientation",{get:function(){return _("orientation",this._O,Ps,this._isNull),this._O},set:function(e){this._O=e,g(this,"Orientation",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ss.prototype,"rightMargin",{get:function(){return _("rightMargin",this._R,Ps,this._isNull),this._R},set:function(e){this._R=e,g(this,"RightMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ss.prototype,"topMargin",{get:function(){return _("topMargin",this._T,Ps,this._isNull),this._T},set:function(e){this._T=e,g(this,"TopMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ss.prototype,"verticalAlignment",{get:function(){return _("verticalAlignment",this._V,Ps,this._isNull),this._V},set:function(e){this._V=e,g(this,"VerticalAlignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ss.prototype,"wordWrap",{get:function(){return _("wordWrap",this._W,Ps,this._isNull),this._W},set:function(e){this._W=e,g(this,"WordWrap",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ss.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Ps,this._isNull),this.__R},enumerable:!0,configurable:!0}),Ss.prototype.set=function(e,t){this._recursivelySet(e,t,["leftMargin","rightMargin","topMargin","bottomMargin","verticalAlignment","autoSizeSetting","orientation","noTextRotation","wordWrap"],[],[])},Ss.prototype.update=function(e){this._recursivelyUpdate(e)},Ss.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Ss.prototype._handleResult=function(e){if(Cs.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.AutoSizeSetting)||(this._A=t.AutoSizeSetting),m(t.BottomMargin)||(this._B=t.BottomMargin),m(t.HasText)||(this._H=t.HasText),m(t.LeftMargin)||(this._L=t.LeftMargin),m(t.NoTextRotation)||(this._N=t.NoTextRotation),m(t.Orientation)||(this._O=t.Orientation),m(t.RightMargin)||(this._R=t.RightMargin),m(t.TopMargin)||(this._T=t.TopMargin),m(t.VerticalAlignment)||(this._V=t.VerticalAlignment),m(t.WordWrap)||(this._W=t.WordWrap),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},Ss.prototype.load=function(e){return v(this,e)},Ss.prototype.retrieve=function(e){return O(this,e)},Ss.prototype._handleIdResult=function(e){Cs.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Ss.prototype._handleRetrieveResult=function(e,t){Cs.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Ss.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ss.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ss.prototype.toJSON=function(){return C(this,{autoSizeSetting:this._A,bottomMargin:this._B,hasText:this._H,leftMargin:this._L,noTextRotation:this._N,orientation:this._O,rightMargin:this._R,topMargin:this._T,verticalAlignment:this._V,wordWrap:this._W},{})},Ss.prototype.setMockData=function(e){T(this,e)},Ss.prototype.ensureUnchanged=function(e){h(this,e)},Ss);function Ss(){return null!==Cs&&Cs.apply(this,arguments)||this}a.TextFrame=Rs;function Is(){}a.TextFrameCustom=Is,OfficeExtension.Utility.applyMixin(Rs,Is);var Ts,As="ShapeTextWrap",Ns=(Ts=OfficeExtension.ClientObject,__extends(xs,Ts),Object.defineProperty(xs.prototype,"_className",{get:function(){return"ShapeTextWrap"},enumerable:!0,configurable:!0}),Object.defineProperty(xs.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","type","leftDistance","rightDistance","topDistance","bottomDistance","side"]},enumerable:!0,configurable:!0}),Object.defineProperty(xs.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Type","LeftDistance","RightDistance","TopDistance","BottomDistance","Side"]},enumerable:!0,configurable:!0}),Object.defineProperty(xs.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(xs.prototype,"bottomDistance",{get:function(){return _("bottomDistance",this._B,As,this._isNull),this._B},set:function(e){this._B=e,g(this,"BottomDistance",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(xs.prototype,"leftDistance",{get:function(){return _("leftDistance",this._L,As,this._isNull),this._L},set:function(e){this._L=e,g(this,"LeftDistance",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(xs.prototype,"rightDistance",{get:function(){return _("rightDistance",this._R,As,this._isNull),this._R},set:function(e){this._R=e,g(this,"RightDistance",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(xs.prototype,"side",{get:function(){return _("side",this._S,As,this._isNull),this._S},set:function(e){this._S=e,g(this,"Side",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(xs.prototype,"topDistance",{get:function(){return _("topDistance",this._T,As,this._isNull),this._T},set:function(e){this._T=e,g(this,"TopDistance",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(xs.prototype,"type",{get:function(){return _("type",this._Ty,As,this._isNull),this._Ty},set:function(e){this._Ty=e,g(this,"Type",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(xs.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,As,this._isNull),this.__R},enumerable:!0,configurable:!0}),xs.prototype.set=function(e,t){this._recursivelySet(e,t,["type","leftDistance","rightDistance","topDistance","bottomDistance","side"],[],[])},xs.prototype.update=function(e){this._recursivelyUpdate(e)},xs.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},xs.prototype._handleResult=function(e){if(Ts.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.BottomDistance)||(this._B=t.BottomDistance),m(t.LeftDistance)||(this._L=t.LeftDistance),m(t.RightDistance)||(this._R=t.RightDistance),m(t.Side)||(this._S=t.Side),m(t.TopDistance)||(this._T=t.TopDistance),m(t.Type)||(this._Ty=t.Type),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},xs.prototype.load=function(e){return v(this,e)},xs.prototype.retrieve=function(e){return O(this,e)},xs.prototype._handleIdResult=function(e){Ts.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},xs.prototype._handleRetrieveResult=function(e,t){Ts.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},xs.prototype.track=function(){return this.context.trackedObjects.add(this),this},xs.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},xs.prototype.toJSON=function(){return C(this,{bottomDistance:this._B,leftDistance:this._L,rightDistance:this._R,side:this._S,topDistance:this._T,type:this._Ty},{})},xs.prototype.setMockData=function(e){T(this,e)},xs.prototype.ensureUnchanged=function(e){h(this,e)},xs);function xs(){return null!==Ts&&Ts.apply(this,arguments)||this}a.ShapeTextWrap=Ns;function Es(){}a.ShapeTextWrapCustom=Es,OfficeExtension.Utility.applyMixin(Ns,Es);var Ds,js=(Ds=OfficeExtension.ClientObject,__extends(ws,Ds),Object.defineProperty(ws.prototype,"_className",{get:function(){return"RepeatingSectionItem"},enumerable:!0,configurable:!0}),Object.defineProperty(ws.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ws.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ws.prototype,"_navigationPropertyNames",{get:function(){return["range"]},enumerable:!0,configurable:!0}),Object.defineProperty(ws.prototype,"range",{get:function(){return this._R||(this._R=t(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(ws.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,"RepeatingSectionItem",this._isNull),this.__R},enumerable:!0,configurable:!0}),ws.prototype.set=function(e,t){this._recursivelySet(e,t,[],["range"],[])},ws.prototype.update=function(e){this._recursivelyUpdate(e)},ws.prototype.delete=function(){d(this,"Delete",0,[],0,0)},ws.prototype.insertItemAfter=function(){return p(a.RepeatingSectionItem,this,"InsertItemAfter",0,[],!1,!1,null,0)},ws.prototype.insertItemBefore=function(){return p(a.RepeatingSectionItem,this,"InsertItemBefore",0,[],!1,!1,null,0)},ws.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},ws.prototype._handleResult=function(e){if(Ds.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["range","Range"])}},ws.prototype.load=function(e){return v(this,e)},ws.prototype.retrieve=function(e){return O(this,e)},ws.prototype._handleIdResult=function(e){Ds.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},ws.prototype._handleRetrieveResult=function(e,t){Ds.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},ws.prototype.track=function(){return this.context.trackedObjects.add(this),this},ws.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ws.prototype.toJSON=function(){return C(this,{},{range:this._R})},ws.prototype.setMockData=function(e){T(this,e)},ws.prototype.ensureUnchanged=function(e){h(this,e)},ws);function ws(){return null!==Ds&&Ds.apply(this,arguments)||this}a.RepeatingSectionItem=js;var ks,Fs=(ks=OfficeExtension.ClientObject,__extends(Ls,ks),Object.defineProperty(Ls.prototype,"_className",{get:function(){return"RepeatingSectionItemCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Ls.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ls.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ls.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,"RepeatingSectionItemCollection",this._isNull),this.__R},enumerable:!0,configurable:!0}),Ls.prototype.getItemAt=function(e){return p(a.RepeatingSectionItem,this,"GetItemAt",1,[e],!1,!1,null,4)},Ls.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Ls.prototype._handleResult=function(e){if(ks.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},Ls.prototype.load=function(e){return v(this,e)},Ls.prototype._handleIdResult=function(e){ks.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Ls.prototype._handleRetrieveResult=function(e,t){ks.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Ls.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ls.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ls.prototype.toJSON=function(){return C(this,{},{})},Ls);function Ls(){return null!==ks&&ks.apply(this,arguments)||this}a.RepeatingSectionItemCollection=Fs;var Ms,Bs="DatePickerContentControl",Hs=(Ms=OfficeExtension.ClientObject,__extends(Us,Ms),Object.defineProperty(Us.prototype,"_className",{get:function(){return"DatePickerContentControl"},enumerable:!0,configurable:!0}),Object.defineProperty(Us.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","lockContentControl","lockContents","title","dateDisplayFormat","isTemporary","id","showingPlaceholderText","dateStorageFormat","dateDisplayLocale","dateCalendarType","tag","color","appearance","level"]},enumerable:!0,configurable:!0}),Object.defineProperty(Us.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","LockContentControl","LockContents","Title","DateDisplayFormat","IsTemporary","Id","ShowingPlaceholderText","DateStorageFormat","DateDisplayLocale","DateCalendarType","Tag","Color","Appearance","Level"]},enumerable:!0,configurable:!0}),Object.defineProperty(Us.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(Us.prototype,"_navigationPropertyNames",{get:function(){return["range","xmlMapping","placeholderText"]},enumerable:!0,configurable:!0}),Object.defineProperty(Us.prototype,"placeholderText",{get:function(){return this._P||(this._P=t(a.BuildingBlock,this,"PlaceholderText",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(Us.prototype,"range",{get:function(){return this._R||(this._R=t(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(Us.prototype,"xmlMapping",{get:function(){return this._X||(this._X=t(a.XmlMapping,this,"XmlMapping",!1,4)),this._X},enumerable:!0,configurable:!0}),Object.defineProperty(Us.prototype,"appearance",{get:function(){return _("appearance",this._A,Bs,this._isNull),this._A},set:function(e){this._A=e,g(this,"Appearance",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Us.prototype,"color",{get:function(){return _("color",this._C,Bs,this._isNull),this._C},set:function(e){this._C=e,g(this,"Color",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Us.prototype,"dateCalendarType",{get:function(){return _("dateCalendarType",this._D,Bs,this._isNull),this._D},set:function(e){this._D=e,g(this,"DateCalendarType",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Us.prototype,"dateDisplayFormat",{get:function(){return _("dateDisplayFormat",this._Da,Bs,this._isNull),this._Da},set:function(e){this._Da=e,g(this,"DateDisplayFormat",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Us.prototype,"dateDisplayLocale",{get:function(){return _("dateDisplayLocale",this._Dat,Bs,this._isNull),this._Dat},set:function(e){this._Dat=e,g(this,"DateDisplayLocale",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Us.prototype,"dateStorageFormat",{get:function(){return _("dateStorageFormat",this._Date,Bs,this._isNull),this._Date},set:function(e){this._Date=e,g(this,"DateStorageFormat",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Us.prototype,"id",{get:function(){return _("id",this._I,Bs,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(Us.prototype,"isTemporary",{get:function(){return _("isTemporary",this._Is,Bs,this._isNull),this._Is},set:function(e){this._Is=e,g(this,"IsTemporary",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Us.prototype,"level",{get:function(){return _("level",this._L,Bs,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(Us.prototype,"lockContentControl",{get:function(){return _("lockContentControl",this._Lo,Bs,this._isNull),this._Lo},set:function(e){this._Lo=e,g(this,"LockContentControl",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Us.prototype,"lockContents",{get:function(){return _("lockContents",this._Loc,Bs,this._isNull),this._Loc},set:function(e){this._Loc=e,g(this,"LockContents",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Us.prototype,"showingPlaceholderText",{get:function(){return _("showingPlaceholderText",this._S,Bs,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(Us.prototype,"tag",{get:function(){return _("tag",this._T,Bs,this._isNull),this._T},set:function(e){this._T=e,g(this,"Tag",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Us.prototype,"title",{get:function(){return _("title",this._Ti,Bs,this._isNull),this._Ti},set:function(e){this._Ti=e,g(this,"Title",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Us.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Bs,this._isNull),this.__R},enumerable:!0,configurable:!0}),Us.prototype.set=function(e,t){this._recursivelySet(e,t,["lockContentControl","lockContents","title","dateDisplayFormat","isTemporary","dateStorageFormat","dateDisplayLocale","dateCalendarType","tag","color","appearance"],["range","xmlMapping","placeholderText"],[])},Us.prototype.update=function(e){this._recursivelyUpdate(e)},Us.prototype.copy=function(){d(this,"Copy",0,[],0,0)},Us.prototype.cut=function(){d(this,"Cut",0,[],0,0)},Us.prototype.delete=function(e){d(this,"Delete",0,[e],0,0)},Us.prototype.setPlaceholderText=function(e){d(this,"SetPlaceholderText",0,[e],0,0)},Us.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Us.prototype._handleResult=function(e){if(Ms.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Appearance)||(this._A=t.Appearance),m(t.Color)||(this._C=t.Color),m(t.DateCalendarType)||(this._D=t.DateCalendarType),m(t.DateDisplayFormat)||(this._Da=t.DateDisplayFormat),m(t.DateDisplayLocale)||(this._Dat=t.DateDisplayLocale),m(t.DateStorageFormat)||(this._Date=t.DateStorageFormat),m(t.Id)||(this._I=t.Id),m(t.IsTemporary)||(this._Is=t.IsTemporary),m(t.Level)||(this._L=t.Level),m(t.LockContentControl)||(this._Lo=t.LockContentControl),m(t.LockContents)||(this._Loc=t.LockContents),m(t.ShowingPlaceholderText)||(this._S=t.ShowingPlaceholderText),m(t.Tag)||(this._T=t.Tag),m(t.Title)||(this._Ti=t.Title),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["placeholderText","PlaceholderText","range","Range","xmlMapping","XmlMapping"])}},Us.prototype.load=function(e){return v(this,e)},Us.prototype.retrieve=function(e){return O(this,e)},Us.prototype._handleIdResult=function(e){Ms.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e.Id)||(this._I=e.Id))},Us.prototype._handleRetrieveResult=function(e,t){Ms.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Us.prototype.track=function(){return this.context.trackedObjects.add(this),this},Us.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Us.prototype.toJSON=function(){return C(this,{appearance:this._A,color:this._C,dateCalendarType:this._D,dateDisplayFormat:this._Da,dateDisplayLocale:this._Dat,dateStorageFormat:this._Date,id:this._I,isTemporary:this._Is,level:this._L,lockContentControl:this._Lo,lockContents:this._Loc,showingPlaceholderText:this._S,tag:this._T,title:this._Ti},{placeholderText:this._P,range:this._R,xmlMapping:this._X})},Us.prototype.setMockData=function(e){T(this,e)},Us.prototype.ensureUnchanged=function(e){h(this,e)},Us);function Us(){return null!==Ms&&Ms.apply(this,arguments)||this}a.DatePickerContentControl=Hs;var Ws,Gs="PictureContentControl",Vs=(Ws=OfficeExtension.ClientObject,__extends(qs,Ws),Object.defineProperty(qs.prototype,"_className",{get:function(){return"PictureContentControl"},enumerable:!0,configurable:!0}),Object.defineProperty(qs.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","lockContentControl","lockContents","title","isTemporary","id","showingPlaceholderText","tag","color","appearance","level"]},enumerable:!0,configurable:!0}),Object.defineProperty(qs.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","LockContentControl","LockContents","Title","IsTemporary","Id","ShowingPlaceholderText","Tag","Color","Appearance","Level"]},enumerable:!0,configurable:!0}),Object.defineProperty(qs.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!1,!1,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(qs.prototype,"_navigationPropertyNames",{get:function(){return["range","xmlMapping","placeholderText"]},enumerable:!0,configurable:!0}),Object.defineProperty(qs.prototype,"placeholderText",{get:function(){return this._P||(this._P=t(a.BuildingBlock,this,"PlaceholderText",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(qs.prototype,"range",{get:function(){return this._R||(this._R=t(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(qs.prototype,"xmlMapping",{get:function(){return this._X||(this._X=t(a.XmlMapping,this,"XmlMapping",!1,4)),this._X},enumerable:!0,configurable:!0}),Object.defineProperty(qs.prototype,"appearance",{get:function(){return _("appearance",this._A,Gs,this._isNull),this._A},set:function(e){this._A=e,g(this,"Appearance",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(qs.prototype,"color",{get:function(){return _("color",this._C,Gs,this._isNull),this._C},set:function(e){this._C=e,g(this,"Color",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(qs.prototype,"id",{get:function(){return _("id",this._I,Gs,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(qs.prototype,"isTemporary",{get:function(){return _("isTemporary",this._Is,Gs,this._isNull),this._Is},set:function(e){this._Is=e,g(this,"IsTemporary",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(qs.prototype,"level",{get:function(){return _("level",this._L,Gs,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(qs.prototype,"lockContentControl",{get:function(){return _("lockContentControl",this._Lo,Gs,this._isNull),this._Lo},set:function(e){this._Lo=e,g(this,"LockContentControl",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(qs.prototype,"lockContents",{get:function(){return _("lockContents",this._Loc,Gs,this._isNull),this._Loc},set:function(e){this._Loc=e,g(this,"LockContents",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(qs.prototype,"showingPlaceholderText",{get:function(){return _("showingPlaceholderText",this._S,Gs,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(qs.prototype,"tag",{get:function(){return _("tag",this._T,Gs,this._isNull),this._T},set:function(e){this._T=e,g(this,"Tag",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(qs.prototype,"title",{get:function(){return _("title",this._Ti,Gs,this._isNull),this._Ti},set:function(e){this._Ti=e,g(this,"Title",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(qs.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Gs,this._isNull),this.__R},enumerable:!0,configurable:!0}),qs.prototype.set=function(e,t){this._recursivelySet(e,t,["lockContentControl","lockContents","title","isTemporary","tag","color","appearance"],["range","xmlMapping","placeholderText"],[])},qs.prototype.update=function(e){this._recursivelyUpdate(e)},qs.prototype.copy=function(){d(this,"Copy",0,[],0,0)},qs.prototype.cut=function(){d(this,"Cut",0,[],0,0)},qs.prototype.delete=function(e){d(this,"Delete",0,[e],0,0)},qs.prototype.setPlaceholderText=function(e){d(this,"SetPlaceholderText",0,[e],0,0)},qs.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},qs.prototype._handleResult=function(e){if(Ws.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Appearance)||(this._A=t.Appearance),m(t.Color)||(this._C=t.Color),m(t.Id)||(this._I=t.Id),m(t.IsTemporary)||(this._Is=t.IsTemporary),m(t.Level)||(this._L=t.Level),m(t.LockContentControl)||(this._Lo=t.LockContentControl),m(t.LockContents)||(this._Loc=t.LockContents),m(t.ShowingPlaceholderText)||(this._S=t.ShowingPlaceholderText),m(t.Tag)||(this._T=t.Tag),m(t.Title)||(this._Ti=t.Title),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["placeholderText","PlaceholderText","range","Range","xmlMapping","XmlMapping"])}},qs.prototype.load=function(e){return v(this,e)},qs.prototype.retrieve=function(e){return O(this,e)},qs.prototype._handleIdResult=function(e){Ws.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e.Id)||(this._I=e.Id))},qs.prototype._handleRetrieveResult=function(e,t){Ws.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},qs.prototype.track=function(){return this.context.trackedObjects.add(this),this},qs.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},qs.prototype.toJSON=function(){return C(this,{appearance:this._A,color:this._C,id:this._I,isTemporary:this._Is,level:this._L,lockContentControl:this._Lo,lockContents:this._Loc,showingPlaceholderText:this._S,tag:this._T,title:this._Ti},{placeholderText:this._P,range:this._R,xmlMapping:this._X})},qs.prototype.setMockData=function(e){T(this,e)},qs.prototype.ensureUnchanged=function(e){h(this,e)},qs);function qs(){return null!==Ws&&Ws.apply(this,arguments)||this}a.PictureContentControl=Vs;var zs,Ks="GroupContentControl",Js=(zs=OfficeExtension.ClientObject,__extends(Xs,zs),Object.defineProperty(Xs.prototype,"_className",{get:function(){return"GroupContentControl"},enumerable:!0,configurable:!0}),Object.defineProperty(Xs.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","lockContentControl","lockContents","title","isTemporary","id","showingPlaceholderText","tag","color","appearance","level"]},enumerable:!0,configurable:!0}),Object.defineProperty(Xs.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","LockContentControl","LockContents","Title","IsTemporary","Id","ShowingPlaceholderText","Tag","Color","Appearance","Level"]},enumerable:!0,configurable:!0}),Object.defineProperty(Xs.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!1,!1,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(Xs.prototype,"_navigationPropertyNames",{get:function(){return["range","xmlMapping","placeholderText"]},enumerable:!0,configurable:!0}),Object.defineProperty(Xs.prototype,"placeholderText",{get:function(){return this._P||(this._P=t(a.BuildingBlock,this,"PlaceholderText",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(Xs.prototype,"range",{get:function(){return this._R||(this._R=t(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(Xs.prototype,"xmlMapping",{get:function(){return this._X||(this._X=t(a.XmlMapping,this,"XmlMapping",!1,4)),this._X},enumerable:!0,configurable:!0}),Object.defineProperty(Xs.prototype,"appearance",{get:function(){return _("appearance",this._A,Ks,this._isNull),this._A},set:function(e){this._A=e,g(this,"Appearance",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Xs.prototype,"color",{get:function(){return _("color",this._C,Ks,this._isNull),this._C},set:function(e){this._C=e,g(this,"Color",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Xs.prototype,"id",{get:function(){return _("id",this._I,Ks,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(Xs.prototype,"isTemporary",{get:function(){return _("isTemporary",this._Is,Ks,this._isNull),this._Is},set:function(e){this._Is=e,g(this,"IsTemporary",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Xs.prototype,"level",{get:function(){return _("level",this._L,Ks,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(Xs.prototype,"lockContentControl",{get:function(){return _("lockContentControl",this._Lo,Ks,this._isNull),this._Lo},set:function(e){this._Lo=e,g(this,"LockContentControl",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Xs.prototype,"lockContents",{get:function(){return _("lockContents",this._Loc,Ks,this._isNull),this._Loc},set:function(e){this._Loc=e,g(this,"LockContents",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Xs.prototype,"showingPlaceholderText",{get:function(){return _("showingPlaceholderText",this._S,Ks,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(Xs.prototype,"tag",{get:function(){return _("tag",this._T,Ks,this._isNull),this._T},set:function(e){this._T=e,g(this,"Tag",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Xs.prototype,"title",{get:function(){return _("title",this._Ti,Ks,this._isNull),this._Ti},set:function(e){this._Ti=e,g(this,"Title",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Xs.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Ks,this._isNull),this.__R},enumerable:!0,configurable:!0}),Xs.prototype.set=function(e,t){this._recursivelySet(e,t,["lockContentControl","lockContents","title","isTemporary","tag","color","appearance"],["range","xmlMapping","placeholderText"],[])},Xs.prototype.update=function(e){this._recursivelyUpdate(e)},Xs.prototype.copy=function(){d(this,"Copy",0,[],0,0)},Xs.prototype.cut=function(){d(this,"Cut",0,[],0,0)},Xs.prototype.delete=function(e){d(this,"Delete",0,[e],0,0)},Xs.prototype.setPlaceholderText=function(e){d(this,"SetPlaceholderText",0,[e],0,0)},Xs.prototype.ungroup=function(){d(this,"Ungroup",0,[],0,0)},Xs.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Xs.prototype._handleResult=function(e){if(zs.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Appearance)||(this._A=t.Appearance),m(t.Color)||(this._C=t.Color),m(t.Id)||(this._I=t.Id),m(t.IsTemporary)||(this._Is=t.IsTemporary),m(t.Level)||(this._L=t.Level),m(t.LockContentControl)||(this._Lo=t.LockContentControl),m(t.LockContents)||(this._Loc=t.LockContents),m(t.ShowingPlaceholderText)||(this._S=t.ShowingPlaceholderText),m(t.Tag)||(this._T=t.Tag),m(t.Title)||(this._Ti=t.Title),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["placeholderText","PlaceholderText","range","Range","xmlMapping","XmlMapping"])}},Xs.prototype.load=function(e){return v(this,e)},Xs.prototype.retrieve=function(e){return O(this,e)},Xs.prototype._handleIdResult=function(e){zs.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e.Id)||(this._I=e.Id))},Xs.prototype._handleRetrieveResult=function(e,t){zs.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Xs.prototype.track=function(){return this.context.trackedObjects.add(this),this},Xs.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Xs.prototype.toJSON=function(){return C(this,{appearance:this._A,color:this._C,id:this._I,isTemporary:this._Is,level:this._L,lockContentControl:this._Lo,lockContents:this._Loc,showingPlaceholderText:this._S,tag:this._T,title:this._Ti},{placeholderText:this._P,range:this._R,xmlMapping:this._X})},Xs.prototype.setMockData=function(e){T(this,e)},Xs.prototype.ensureUnchanged=function(e){h(this,e)},Xs);function Xs(){return null!==zs&&zs.apply(this,arguments)||this}a.GroupContentControl=Js;var Qs,Ys="BuildingBlockGalleryContentControl",Zs=(Qs=OfficeExtension.ClientObject,__extends($s,Qs),Object.defineProperty($s.prototype,"_className",{get:function(){return"BuildingBlockGalleryContentControl"},enumerable:!0,configurable:!0}),Object.defineProperty($s.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","lockContentControl","lockContents","title","isTemporary","id","showingPlaceholderText","buildingBlockType","buildingBlockCategory","tag","color","appearance","level"]},enumerable:!0,configurable:!0}),Object.defineProperty($s.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","LockContentControl","LockContents","Title","IsTemporary","Id","ShowingPlaceholderText","BuildingBlockType","BuildingBlockCategory","Tag","Color","Appearance","Level"]},enumerable:!0,configurable:!0}),Object.defineProperty($s.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!1,!1,!0,!0,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty($s.prototype,"_navigationPropertyNames",{get:function(){return["range","xmlMapping","placeholderText"]},enumerable:!0,configurable:!0}),Object.defineProperty($s.prototype,"placeholderText",{get:function(){return this._P||(this._P=t(a.BuildingBlock,this,"PlaceholderText",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty($s.prototype,"range",{get:function(){return this._R||(this._R=t(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty($s.prototype,"xmlMapping",{get:function(){return this._X||(this._X=t(a.XmlMapping,this,"XmlMapping",!1,4)),this._X},enumerable:!0,configurable:!0}),Object.defineProperty($s.prototype,"appearance",{get:function(){return _("appearance",this._A,Ys,this._isNull),this._A},set:function(e){this._A=e,g(this,"Appearance",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty($s.prototype,"buildingBlockCategory",{get:function(){return _("buildingBlockCategory",this._B,Ys,this._isNull),this._B},set:function(e){this._B=e,g(this,"BuildingBlockCategory",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty($s.prototype,"buildingBlockType",{get:function(){return _("buildingBlockType",this._Bu,Ys,this._isNull),this._Bu},set:function(e){this._Bu=e,g(this,"BuildingBlockType",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty($s.prototype,"color",{get:function(){return _("color",this._C,Ys,this._isNull),this._C},set:function(e){this._C=e,g(this,"Color",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty($s.prototype,"id",{get:function(){return _("id",this._I,Ys,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty($s.prototype,"isTemporary",{get:function(){return _("isTemporary",this._Is,Ys,this._isNull),this._Is},set:function(e){this._Is=e,g(this,"IsTemporary",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty($s.prototype,"level",{get:function(){return _("level",this._L,Ys,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty($s.prototype,"lockContentControl",{get:function(){return _("lockContentControl",this._Lo,Ys,this._isNull),this._Lo},set:function(e){this._Lo=e,g(this,"LockContentControl",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty($s.prototype,"lockContents",{get:function(){return _("lockContents",this._Loc,Ys,this._isNull),this._Loc},set:function(e){this._Loc=e,g(this,"LockContents",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty($s.prototype,"showingPlaceholderText",{get:function(){return _("showingPlaceholderText",this._S,Ys,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty($s.prototype,"tag",{get:function(){return _("tag",this._T,Ys,this._isNull),this._T},set:function(e){this._T=e,g(this,"Tag",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty($s.prototype,"title",{get:function(){return _("title",this._Ti,Ys,this._isNull),this._Ti},set:function(e){this._Ti=e,g(this,"Title",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty($s.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Ys,this._isNull),this.__R},enumerable:!0,configurable:!0}),$s.prototype.set=function(e,t){this._recursivelySet(e,t,["lockContentControl","lockContents","title","isTemporary","buildingBlockType","buildingBlockCategory","tag","color","appearance"],["range","xmlMapping","placeholderText"],[])},$s.prototype.update=function(e){this._recursivelyUpdate(e)},$s.prototype.copy=function(){d(this,"Copy",0,[],0,0)},$s.prototype.cut=function(){d(this,"Cut",0,[],0,0)},$s.prototype.delete=function(e){d(this,"Delete",0,[e],0,0)},$s.prototype.setPlaceholderText=function(e){d(this,"SetPlaceholderText",0,[e],0,0)},$s.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},$s.prototype._handleResult=function(e){if(Qs.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Appearance)||(this._A=t.Appearance),m(t.BuildingBlockCategory)||(this._B=t.BuildingBlockCategory),m(t.BuildingBlockType)||(this._Bu=t.BuildingBlockType),m(t.Color)||(this._C=t.Color),m(t.Id)||(this._I=t.Id),m(t.IsTemporary)||(this._Is=t.IsTemporary),m(t.Level)||(this._L=t.Level),m(t.LockContentControl)||(this._Lo=t.LockContentControl),m(t.LockContents)||(this._Loc=t.LockContents),m(t.ShowingPlaceholderText)||(this._S=t.ShowingPlaceholderText),m(t.Tag)||(this._T=t.Tag),m(t.Title)||(this._Ti=t.Title),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["placeholderText","PlaceholderText","range","Range","xmlMapping","XmlMapping"])}},$s.prototype.load=function(e){return v(this,e)},$s.prototype.retrieve=function(e){return O(this,e)},$s.prototype._handleIdResult=function(e){Qs.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e.Id)||(this._I=e.Id))},$s.prototype._handleRetrieveResult=function(e,t){Qs.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},$s.prototype.track=function(){return this.context.trackedObjects.add(this),this},$s.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},$s.prototype.toJSON=function(){return C(this,{appearance:this._A,buildingBlockCategory:this._B,buildingBlockType:this._Bu,color:this._C,id:this._I,isTemporary:this._Is,level:this._L,lockContentControl:this._Lo,lockContents:this._Loc,showingPlaceholderText:this._S,tag:this._T,title:this._Ti},{placeholderText:this._P,range:this._R,xmlMapping:this._X})},$s.prototype.setMockData=function(e){T(this,e)},$s.prototype.ensureUnchanged=function(e){h(this,e)},$s);function $s(){return null!==Qs&&Qs.apply(this,arguments)||this}a.BuildingBlockGalleryContentControl=Zs;var ec,tc,nc,rc="RepeatingSectionContentControl",ic=(ec=OfficeExtension.ClientObject,__extends(oc,ec),Object.defineProperty(oc.prototype,"_className",{get:function(){return"RepeatingSectionContentControl"},enumerable:!0,configurable:!0}),Object.defineProperty(oc.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","lockContentControl","lockContents","title","isTemporary","id","showingPlaceholderText","tag","color","appearance","level","repeatingSectionItemTitle","allowInsertDeleteSection"]},enumerable:!0,configurable:!0}),Object.defineProperty(oc.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","LockContentControl","LockContents","Title","IsTemporary","Id","ShowingPlaceholderText","Tag","Color","Appearance","Level","RepeatingSectionItemTitle","AllowInsertDeleteSection"]},enumerable:!0,configurable:!0}),Object.defineProperty(oc.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(oc.prototype,"_navigationPropertyNames",{get:function(){return["range","placeholderText","repeatingSectionItems"]},enumerable:!0,configurable:!0}),Object.defineProperty(oc.prototype,"placeholderText",{get:function(){return this._P||(this._P=t(a.BuildingBlock,this,"PlaceholderText",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(oc.prototype,"range",{get:function(){return this._R||(this._R=t(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(oc.prototype,"repeatingSectionItems",{get:function(){return this._Re||(this._Re=t(a.RepeatingSectionItemCollection,this,"RepeatingSectionItems",!1,4)),this._Re},enumerable:!0,configurable:!0}),Object.defineProperty(oc.prototype,"allowInsertDeleteSection",{get:function(){return _("allowInsertDeleteSection",this._A,rc,this._isNull),this._A},set:function(e){this._A=e,g(this,"AllowInsertDeleteSection",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(oc.prototype,"appearance",{get:function(){return _("appearance",this._Ap,rc,this._isNull),this._Ap},set:function(e){this._Ap=e,g(this,"Appearance",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(oc.prototype,"color",{get:function(){return _("color",this._C,rc,this._isNull),this._C},set:function(e){this._C=e,g(this,"Color",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(oc.prototype,"id",{get:function(){return _("id",this._I,rc,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(oc.prototype,"isTemporary",{get:function(){return _("isTemporary",this._Is,rc,this._isNull),this._Is},set:function(e){this._Is=e,g(this,"IsTemporary",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(oc.prototype,"level",{get:function(){return _("level",this._L,rc,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(oc.prototype,"lockContentControl",{get:function(){return _("lockContentControl",this._Lo,rc,this._isNull),this._Lo},set:function(e){this._Lo=e,g(this,"LockContentControl",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(oc.prototype,"lockContents",{get:function(){return _("lockContents",this._Loc,rc,this._isNull),this._Loc},set:function(e){this._Loc=e,g(this,"LockContents",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(oc.prototype,"repeatingSectionItemTitle",{get:function(){return _("repeatingSectionItemTitle",this._Rep,rc,this._isNull),this._Rep},set:function(e){this._Rep=e,g(this,"RepeatingSectionItemTitle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(oc.prototype,"showingPlaceholderText",{get:function(){return _("showingPlaceholderText",this._S,rc,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(oc.prototype,"tag",{get:function(){return _("tag",this._T,rc,this._isNull),this._T},set:function(e){this._T=e,g(this,"Tag",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(oc.prototype,"title",{get:function(){return _("title",this._Ti,rc,this._isNull),this._Ti},set:function(e){this._Ti=e,g(this,"Title",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(oc.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,rc,this._isNull),this.__R},enumerable:!0,configurable:!0}),oc.prototype.set=function(e,t){this._recursivelySet(e,t,["lockContentControl","lockContents","title","isTemporary","tag","color","appearance","repeatingSectionItemTitle","allowInsertDeleteSection"],["range","placeholderText"],["repeatingSectionItems"])},oc.prototype.update=function(e){this._recursivelyUpdate(e)},oc.prototype.copy=function(){d(this,"Copy",0,[],0,0)},oc.prototype.cut=function(){d(this,"Cut",0,[],0,0)},oc.prototype.delete=function(e){d(this,"Delete",0,[e],0,0)},oc.prototype.setPlaceholderText=function(e){d(this,"SetPlaceholderText",0,[e],0,0)},oc.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},oc.prototype._handleResult=function(e){if(ec.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.AllowInsertDeleteSection)||(this._A=t.AllowInsertDeleteSection),m(t.Appearance)||(this._Ap=t.Appearance),m(t.Color)||(this._C=t.Color),m(t.Id)||(this._I=t.Id),m(t.IsTemporary)||(this._Is=t.IsTemporary),m(t.Level)||(this._L=t.Level),m(t.LockContentControl)||(this._Lo=t.LockContentControl),m(t.LockContents)||(this._Loc=t.LockContents),m(t.RepeatingSectionItemTitle)||(this._Rep=t.RepeatingSectionItemTitle),m(t.ShowingPlaceholderText)||(this._S=t.ShowingPlaceholderText),m(t.Tag)||(this._T=t.Tag),m(t.Title)||(this._Ti=t.Title),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["placeholderText","PlaceholderText","range","Range","repeatingSectionItems","RepeatingSectionItems"])}},oc.prototype.load=function(e){return v(this,e)},oc.prototype.retrieve=function(e){return O(this,e)},oc.prototype._handleIdResult=function(e){ec.prototype._handleIdResult.call(this,e),y(e)||(m(e._ReferenceId)||(this.__R=e._ReferenceId),m(e.Id)||(this._I=e.Id))},oc.prototype._handleRetrieveResult=function(e,t){ec.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},oc.prototype.track=function(){return this.context.trackedObjects.add(this),this},oc.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},oc.prototype.toJSON=function(){return C(this,{allowInsertDeleteSection:this._A,appearance:this._Ap,color:this._C,id:this._I,isTemporary:this._Is,level:this._L,lockContentControl:this._Lo,lockContents:this._Loc,repeatingSectionItemTitle:this._Rep,showingPlaceholderText:this._S,tag:this._T,title:this._Ti},{placeholderText:this._P,range:this._R})},oc.prototype.setMockData=function(e){T(this,e)},oc.prototype.ensureUnchanged=function(e){h(this,e)},oc);function oc(){return null!==ec&&ec.apply(this,arguments)||this}a.RepeatingSectionContentControl=ic,(tc=a.CalendarType||(a.CalendarType={})).western="Western",tc.arabic="Arabic",tc.hebrew="Hebrew",tc.taiwan="Taiwan",tc.japan="Japan",tc.thai="Thai",tc.korean="Korean",tc.sakaEra="SakaEra",tc.translitEnglish="TranslitEnglish",tc.translitFrench="TranslitFrench",tc.umalqura="Umalqura",(nc=a.ContentControlDateStorageFormat||(a.ContentControlDateStorageFormat={})).text="Text",nc.date="Date",nc.dateTime="DateTime";var ac,sc="Frame",cc=(ac=OfficeExtension.ClientObject,__extends(lc,ac),Object.defineProperty(lc.prototype,"_className",{get:function(){return"Frame"},enumerable:!0,configurable:!0}),Object.defineProperty(lc.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","height","heightRule","horizontalDistanceFromText","horizontalPosition","lockAnchor","relativeHorizontalPosition","relativeVerticalPosition","textWrap","verticalDistanceFromText","verticalPosition","width","widthRule"]},enumerable:!0,configurable:!0}),Object.defineProperty(lc.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Height","HeightRule","HorizontalDistanceFromText","HorizontalPosition","LockAnchor","RelativeHorizontalPosition","RelativeVerticalPosition","TextWrap","VerticalDistanceFromText","VerticalPosition","Width","WidthRule"]},enumerable:!0,configurable:!0}),Object.defineProperty(lc.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(lc.prototype,"_navigationPropertyNames",{get:function(){return["borders","range","shading"]},enumerable:!0,configurable:!0}),Object.defineProperty(lc.prototype,"borders",{get:function(){return this._B||(this._B=t(a.BorderUniversalCollection,this,"Borders",!0,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(lc.prototype,"range",{get:function(){return this._R||(this._R=t(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(lc.prototype,"shading",{get:function(){return this._S||(this._S=t(a.ShadingUniversal,this,"Shading",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(lc.prototype,"height",{get:function(){return _("height",this._H,sc,this._isNull),this._H},set:function(e){this._H=e,g(this,"Height",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(lc.prototype,"heightRule",{get:function(){return _("heightRule",this._He,sc,this._isNull),this._He},set:function(e){this._He=e,g(this,"HeightRule",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(lc.prototype,"horizontalDistanceFromText",{get:function(){return _("horizontalDistanceFromText",this._Ho,sc,this._isNull),this._Ho},set:function(e){this._Ho=e,g(this,"HorizontalDistanceFromText",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(lc.prototype,"horizontalPosition",{get:function(){return _("horizontalPosition",this._Hor,sc,this._isNull),this._Hor},set:function(e){this._Hor=e,g(this,"HorizontalPosition",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(lc.prototype,"lockAnchor",{get:function(){return _("lockAnchor",this._L,sc,this._isNull),this._L},set:function(e){this._L=e,g(this,"LockAnchor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(lc.prototype,"relativeHorizontalPosition",{get:function(){return _("relativeHorizontalPosition",this._Re,sc,this._isNull),this._Re},set:function(e){this._Re=e,g(this,"RelativeHorizontalPosition",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(lc.prototype,"relativeVerticalPosition",{get:function(){return _("relativeVerticalPosition",this._Rel,sc,this._isNull),this._Rel},set:function(e){this._Rel=e,g(this,"RelativeVerticalPosition",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(lc.prototype,"textWrap",{get:function(){return _("textWrap",this._T,sc,this._isNull),this._T},set:function(e){this._T=e,g(this,"TextWrap",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(lc.prototype,"verticalDistanceFromText",{get:function(){return _("verticalDistanceFromText",this._V,sc,this._isNull),this._V},set:function(e){this._V=e,g(this,"VerticalDistanceFromText",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(lc.prototype,"verticalPosition",{get:function(){return _("verticalPosition",this._Ve,sc,this._isNull),this._Ve},set:function(e){this._Ve=e,g(this,"VerticalPosition",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(lc.prototype,"width",{get:function(){return _("width",this._W,sc,this._isNull),this._W},set:function(e){this._W=e,g(this,"Width",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(lc.prototype,"widthRule",{get:function(){return _("widthRule",this._Wi,sc,this._isNull),this._Wi},set:function(e){this._Wi=e,g(this,"WidthRule",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(lc.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,sc,this._isNull),this.__R},enumerable:!0,configurable:!0}),lc.prototype.set=function(e,t){this._recursivelySet(e,t,["height","heightRule","horizontalDistanceFromText","horizontalPosition","lockAnchor","relativeHorizontalPosition","relativeVerticalPosition","textWrap","verticalDistanceFromText","verticalPosition","width","widthRule"],["range","shading"],["borders"])},lc.prototype.update=function(e){this._recursivelyUpdate(e)},lc.prototype.copy=function(){d(this,"Copy",0,[],0,0)},lc.prototype.cut=function(){d(this,"Cut",0,[],0,0)},lc.prototype.delete=function(){d(this,"Delete",0,[],0,0)},lc.prototype.select=function(){d(this,"Select",0,[],0,0)},lc.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},lc.prototype._handleResult=function(e){if(ac.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Height)||(this._H=t.Height),m(t.HeightRule)||(this._He=t.HeightRule),m(t.HorizontalDistanceFromText)||(this._Ho=t.HorizontalDistanceFromText),m(t.HorizontalPosition)||(this._Hor=t.HorizontalPosition),m(t.LockAnchor)||(this._L=t.LockAnchor),m(t.RelativeHorizontalPosition)||(this._Re=t.RelativeHorizontalPosition),m(t.RelativeVerticalPosition)||(this._Rel=t.RelativeVerticalPosition),m(t.TextWrap)||(this._T=t.TextWrap),m(t.VerticalDistanceFromText)||(this._V=t.VerticalDistanceFromText),m(t.VerticalPosition)||(this._Ve=t.VerticalPosition),m(t.Width)||(this._W=t.Width),m(t.WidthRule)||(this._Wi=t.WidthRule),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["borders","Borders","range","Range","shading","Shading"])}},lc.prototype.load=function(e){return v(this,e)},lc.prototype.retrieve=function(e){return O(this,e)},lc.prototype._handleIdResult=function(e){ac.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},lc.prototype._handleRetrieveResult=function(e,t){ac.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},lc.prototype.track=function(){return this.context.trackedObjects.add(this),this},lc.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},lc.prototype.toJSON=function(){return C(this,{height:this._H,heightRule:this._He,horizontalDistanceFromText:this._Ho,horizontalPosition:this._Hor,lockAnchor:this._L,relativeHorizontalPosition:this._Re,relativeVerticalPosition:this._Rel,textWrap:this._T,verticalDistanceFromText:this._V,verticalPosition:this._Ve,width:this._W,widthRule:this._Wi},{borders:this._B,range:this._R,shading:this._S})},lc.prototype.setMockData=function(e){T(this,e)},lc.prototype.ensureUnchanged=function(e){h(this,e)},lc);function lc(){return null!==ac&&ac.apply(this,arguments)||this}a.Frame=cc;var uc,pc="FrameCollection",fc=(uc=OfficeExtension.ClientObject,__extends(dc,uc),Object.defineProperty(dc.prototype,"_className",{get:function(){return"FrameCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(dc.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(dc.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(dc.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(dc.prototype,"items",{get:function(){return _("items",this.m__items,pc,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(dc.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,pc,this._isNull),this.__R},enumerable:!0,configurable:!0}),dc.prototype.add=function(e){return p(a.Frame,this,"Add",1,[e],!1,!0,null,4)},dc.prototype.delete=function(){d(this,"Delete",1,[],4,0)},dc.prototype.getItem=function(e){return r(a.Frame,this,[e])},dc.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},dc.prototype._handleResult=function(e){if(uc.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Frame,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},dc.prototype.load=function(e){return v(this,e)},dc.prototype.retrieve=function(e){return O(this,e)},dc.prototype._handleIdResult=function(e){uc.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},dc.prototype._handleRetrieveResult=function(e,t){var n=this;uc.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.Frame,!0,n,e,t)})},dc.prototype.track=function(){return this.context.trackedObjects.add(this),this},dc.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},dc.prototype.toJSON=function(){return C(this,{},{},this.m__items)},dc.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.Frame,!0,n,e,t)},function(e){return n.m__items=e})},dc);function dc(){return null!==uc&&uc.apply(this,arguments)||this}a.FrameCollection=fc;var hc,gc="DocumentLibraryVersion",yc=(hc=OfficeExtension.ClientObject,__extends(mc,hc),Object.defineProperty(mc.prototype,"_className",{get:function(){return"DocumentLibraryVersion"},enumerable:!0,configurable:!0}),Object.defineProperty(mc.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","comments","modified","modifiedBy"]},enumerable:!0,configurable:!0}),Object.defineProperty(mc.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Comments","Modified","ModifiedBy"]},enumerable:!0,configurable:!0}),Object.defineProperty(mc.prototype,"comments",{get:function(){return _("comments",this._C,gc,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(mc.prototype,"modified",{get:function(){return _("modified",this._M,gc,this._isNull),this._M},enumerable:!0,configurable:!0}),Object.defineProperty(mc.prototype,"modifiedBy",{get:function(){return _("modifiedBy",this._Mo,gc,this._isNull),this._Mo},enumerable:!0,configurable:!0}),Object.defineProperty(mc.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,gc,this._isNull),this.__R},enumerable:!0,configurable:!0}),mc.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},mc.prototype._handleResult=function(e){if(hc.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Comments)||(this._C=t.Comments),m(t.Modified)||(this._M=t.Modified),m(t.ModifiedBy)||(this._Mo=t.ModifiedBy),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},mc.prototype.load=function(e){return v(this,e)},mc.prototype.retrieve=function(e){return O(this,e)},mc.prototype._handleIdResult=function(e){hc.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},mc.prototype._handleRetrieveResult=function(e,t){hc.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},mc.prototype.track=function(){return this.context.trackedObjects.add(this),this},mc.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},mc.prototype.toJSON=function(){return C(this,{comments:this._C,modified:this._M,modifiedBy:this._Mo},{})},mc.prototype.setMockData=function(e){T(this,e)},mc.prototype.ensureUnchanged=function(e){h(this,e)},mc);function mc(){return null!==hc&&hc.apply(this,arguments)||this}a.DocumentLibraryVersion=yc;var _c,bc,vc,Oc,Cc,Pc,Rc,Sc,Ic,Tc,Ac,Nc,xc,Ec,Dc,jc,wc,kc,Fc,Lc,Mc,Bc,Hc,Uc,Wc,Gc,Vc,qc,zc,Kc,Jc,Xc,Qc,Yc,Zc,$c,el,tl,nl,rl,il,ol,al,sl,cl,ll,ul,pl,fl,dl,hl,gl,yl,ml,_l,bl,vl,Ol,Cl,Pl,Rl,Sl,Il,Tl,Al,Nl,xl,El,Dl,jl,wl,kl,Fl,Ll="DocumentLibraryVersionCollection",Ml=(_c=OfficeExtension.ClientObject,__extends(Bl,_c),Object.defineProperty(Bl.prototype,"_className",{get:function(){return"DocumentLibraryVersionCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Bl.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Bl.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Bl.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Bl.prototype,"items",{get:function(){return _("items",this.m__items,Ll,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Bl.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Ll,this._isNull),this.__R},enumerable:!0,configurable:!0}),Bl.prototype.getItem=function(e){return r(a.DocumentLibraryVersion,this,[e])},Bl.prototype.isVersioningEnabled=function(){return d(this,"IsVersioningEnabled",0,[],0,0)},Bl.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Bl.prototype._handleResult=function(e){if(_c.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.DocumentLibraryVersion,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Bl.prototype.load=function(e){return v(this,e)},Bl.prototype.retrieve=function(e){return O(this,e)},Bl.prototype._handleIdResult=function(e){_c.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Bl.prototype._handleRetrieveResult=function(e,t){var n=this;_c.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.DocumentLibraryVersion,!0,n,e,t)})},Bl.prototype.track=function(){return this.context.trackedObjects.add(this),this},Bl.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Bl.prototype.toJSON=function(){return C(this,{},{},this.m__items)},Bl.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.DocumentLibraryVersion,!0,n,e,t)},function(e){return n.m__items=e})},Bl);function Bl(){return null!==_c&&_c.apply(this,arguments)||this}a.DocumentLibraryVersionCollection=Ml,(bc=a.ChangeTrackingMode||(a.ChangeTrackingMode={})).off="Off",bc.trackAll="TrackAll",bc.trackMineOnly="TrackMineOnly",(vc=a.ChangeTrackingVersion||(a.ChangeTrackingVersion={})).original="Original",vc.current="Current",(Oc=a.ChangeTrackingState||(a.ChangeTrackingState={})).unknown="Unknown",Oc.normal="Normal",Oc.added="Added",Oc.deleted="Deleted",(Cc=a.TrackedChangeType||(a.TrackedChangeType={})).none="None",Cc.added="Added",Cc.deleted="Deleted",Cc.formatted="Formatted",(Pc=a.NoteItemType||(a.NoteItemType={})).footnote="Footnote",Pc.endnote="Endnote",(Rc=a.EventType||(a.EventType={})).contentControlDeleted="ContentControlDeleted",Rc.contentControlSelectionChanged="ContentControlSelectionChanged",Rc.contentControlDataChanged="ContentControlDataChanged",Rc.contentControlAdded="ContentControlAdded",Rc.annotationAdded="AnnotationAdded",Rc.annotationChanged="AnnotationChanged",Rc.annotationDeleted="AnnotationDeleted",Rc.contentControlEntered="ContentControlEntered",Rc.contentControlExited="ContentControlExited",Rc.documentWordCountChanged="DocumentWordCountChanged",Rc.paragraphAdded="ParagraphAdded",Rc.paragraphChanged="ParagraphChanged",Rc.paragraphDeleted="ParagraphDeleted",Rc.annotationClicked="AnnotationClicked",Rc.annotationHovered="AnnotationHovered",Rc.annotationInserted="AnnotationInserted",Rc.annotationRemoved="AnnotationRemoved",Rc.annotationPopupAction="AnnotationPopupAction",(Sc=a.EventSource||(a.EventSource={})).local="Local",Sc.remote="Remote",(Ic=a.ContentControlType||(a.ContentControlType={})).unknown="Unknown",Ic.richTextInline="RichTextInline",Ic.richTextParagraphs="RichTextParagraphs",Ic.richTextTableCell="RichTextTableCell",Ic.richTextTableRow="RichTextTableRow",Ic.richTextTable="RichTextTable",Ic.plainTextInline="PlainTextInline",Ic.plainTextParagraph="PlainTextParagraph",Ic.picture="Picture",Ic.buildingBlockGallery="BuildingBlockGallery",Ic.checkBox="CheckBox",Ic.comboBox="ComboBox",Ic.dropDownList="DropDownList",Ic.datePicker="DatePicker",Ic.repeatingSection="RepeatingSection",Ic.richText="RichText",Ic.plainText="PlainText",Ic.group="Group",(Tc=a.ContentControlAppearance||(a.ContentControlAppearance={})).boundingBox="BoundingBox",Tc.tags="Tags",Tc.hidden="Hidden",(Ac=a.ContentControlLevel||(a.ContentControlLevel={})).inline="Inline",Ac.paragraph="Paragraph",Ac.row="Row",Ac.cell="Cell",(Nc=a.UnderlineType||(a.UnderlineType={})).mixed="Mixed",Nc.none="None",Nc.hidden="Hidden",Nc.dotLine="DotLine",Nc.single="Single",Nc.word="Word",Nc.double="Double",Nc.thick="Thick",Nc.dotted="Dotted",Nc.dottedHeavy="DottedHeavy",Nc.dashLine="DashLine",Nc.dashLineHeavy="DashLineHeavy",Nc.dashLineLong="DashLineLong",Nc.dashLineLongHeavy="DashLineLongHeavy",Nc.dotDashLine="DotDashLine",Nc.dotDashLineHeavy="DotDashLineHeavy",Nc.twoDotDashLine="TwoDotDashLine",Nc.twoDotDashLineHeavy="TwoDotDashLineHeavy",Nc.wave="Wave",Nc.waveHeavy="WaveHeavy",Nc.waveDouble="WaveDouble",(xc=a.BreakType||(a.BreakType={})).page="Page",xc.next="Next",xc.sectionNext="SectionNext",xc.sectionContinuous="SectionContinuous",xc.sectionEven="SectionEven",xc.sectionOdd="SectionOdd",xc.line="Line",(Ec=a.InsertLocation||(a.InsertLocation={})).before="Before",Ec.after="After",Ec.start="Start",Ec.end="End",Ec.replace="Replace",(Dc=a.Alignment||(a.Alignment={})).mixed="Mixed",Dc.unknown="Unknown",Dc.left="Left",Dc.centered="Centered",Dc.right="Right",Dc.justified="Justified",(jc=a.HeaderFooterType||(a.HeaderFooterType={})).primary="Primary",jc.firstPage="FirstPage",jc.evenPages="EvenPages",(wc=a.BodyType||(a.BodyType={})).unknown="Unknown",wc.mainDoc="MainDoc",wc.section="Section",wc.header="Header",wc.footer="Footer",wc.tableCell="TableCell",wc.footnote="Footnote",wc.endnote="Endnote",wc.noteItem="NoteItem",(kc=a.SelectionMode||(a.SelectionMode={})).select="Select",kc.start="Start",kc.end="End",(Fc=a.ImageFormat||(a.ImageFormat={})).unsupported="Unsupported",Fc[void 0]="Undefined",Fc.bmp="Bmp",Fc.jpeg="Jpeg",Fc.gif="Gif",Fc.tiff="Tiff",Fc.png="Png",Fc.icon="Icon",Fc.exif="Exif",Fc.wmf="Wmf",Fc.emf="Emf",Fc.pict="Pict",Fc.pdf="Pdf",Fc.svg="Svg",(Lc=a.RangeLocation||(a.RangeLocation={})).whole="Whole",Lc.start="Start",Lc.end="End",Lc.before="Before",Lc.after="After",Lc.content="Content",(Mc=a.LocationRelation||(a.LocationRelation={})).unrelated="Unrelated",Mc.equal="Equal",Mc.containsStart="ContainsStart",Mc.containsEnd="ContainsEnd",Mc.contains="Contains",Mc.insideStart="InsideStart",Mc.insideEnd="InsideEnd",Mc.inside="Inside",Mc.adjacentBefore="AdjacentBefore",Mc.overlapsBefore="OverlapsBefore",Mc.before="Before",Mc.adjacentAfter="AdjacentAfter",Mc.overlapsAfter="OverlapsAfter",Mc.after="After",(Bc=a.BorderLocation||(a.BorderLocation={})).top="Top",Bc.left="Left",Bc.bottom="Bottom",Bc.right="Right",Bc.insideHorizontal="InsideHorizontal",Bc.insideVertical="InsideVertical",Bc.inside="Inside",Bc.outside="Outside",Bc.all="All",(Hc=a.CellPaddingLocation||(a.CellPaddingLocation={})).top="Top",Hc.left="Left",Hc.bottom="Bottom",Hc.right="Right",(Uc=a.BorderWidth||(a.BorderWidth={})).none="None",Uc.pt025="Pt025",Uc.pt050="Pt050",Uc.pt075="Pt075",Uc.pt100="Pt100",Uc.pt150="Pt150",Uc.pt225="Pt225",Uc.pt300="Pt300",Uc.pt450="Pt450",Uc.pt600="Pt600",Uc.mixed="Mixed",(Wc=a.BorderType||(a.BorderType={})).mixed="Mixed",Wc.none="None",Wc.single="Single",Wc.double="Double",Wc.dotted="Dotted",Wc.dashed="Dashed",Wc.dotDashed="DotDashed",Wc.dot2Dashed="Dot2Dashed",Wc.triple="Triple",Wc.thinThickSmall="ThinThickSmall",Wc.thickThinSmall="ThickThinSmall",Wc.thinThickThinSmall="ThinThickThinSmall",Wc.thinThickMed="ThinThickMed",Wc.thickThinMed="ThickThinMed",Wc.thinThickThinMed="ThinThickThinMed",Wc.thinThickLarge="ThinThickLarge",Wc.thickThinLarge="ThickThinLarge",Wc.thinThickThinLarge="ThinThickThinLarge",Wc.wave="Wave",Wc.doubleWave="DoubleWave",Wc.dashedSmall="DashedSmall",Wc.dashDotStroked="DashDotStroked",Wc.threeDEmboss="ThreeDEmboss",Wc.threeDEngrave="ThreeDEngrave",(Gc=a.VerticalAlignment||(a.VerticalAlignment={})).mixed="Mixed",Gc.top="Top",Gc.center="Center",Gc.bottom="Bottom",(Vc=a.ListLevelType||(a.ListLevelType={})).bullet="Bullet",Vc.number="Number",Vc.picture="Picture",(qc=a.ListBullet||(a.ListBullet={})).custom="Custom",qc.solid="Solid",qc.hollow="Hollow",qc.square="Square",qc.diamonds="Diamonds",qc.arrow="Arrow",qc.checkmark="Checkmark",(zc=a.ListNumbering||(a.ListNumbering={})).none="None",zc.arabic="Arabic",zc.upperRoman="UpperRoman",zc.lowerRoman="LowerRoman",zc.upperLetter="UpperLetter",zc.lowerLetter="LowerLetter",(Kc=a.BuiltInStyleName||(a.BuiltInStyleName={})).other="Other",Kc.normal="Normal",Kc.heading1="Heading1",Kc.heading2="Heading2",Kc.heading3="Heading3",Kc.heading4="Heading4",Kc.heading5="Heading5",Kc.heading6="Heading6",Kc.heading7="Heading7",Kc.heading8="Heading8",Kc.heading9="Heading9",Kc.toc1="Toc1",Kc.toc2="Toc2",Kc.toc3="Toc3",Kc.toc4="Toc4",Kc.toc5="Toc5",Kc.toc6="Toc6",Kc.toc7="Toc7",Kc.toc8="Toc8",Kc.toc9="Toc9",Kc.footnoteText="FootnoteText",Kc.header="Header",Kc.footer="Footer",Kc.caption="Caption",Kc.footnoteReference="FootnoteReference",Kc.endnoteReference="EndnoteReference",Kc.endnoteText="EndnoteText",Kc.title="Title",Kc.subtitle="Subtitle",Kc.hyperlink="Hyperlink",Kc.strong="Strong",Kc.emphasis="Emphasis",Kc.noSpacing="NoSpacing",Kc.listParagraph="ListParagraph",Kc.quote="Quote",Kc.intenseQuote="IntenseQuote",Kc.subtleEmphasis="SubtleEmphasis",Kc.intenseEmphasis="IntenseEmphasis",Kc.subtleReference="SubtleReference",Kc.intenseReference="IntenseReference",Kc.bookTitle="BookTitle",Kc.bibliography="Bibliography",Kc.tocHeading="TocHeading",Kc.tableGrid="TableGrid",Kc.plainTable1="PlainTable1",Kc.plainTable2="PlainTable2",Kc.plainTable3="PlainTable3",Kc.plainTable4="PlainTable4",Kc.plainTable5="PlainTable5",Kc.tableGridLight="TableGridLight",Kc.gridTable1Light="GridTable1Light",Kc.gridTable1Light_Accent1="GridTable1Light_Accent1",Kc.gridTable1Light_Accent2="GridTable1Light_Accent2",Kc.gridTable1Light_Accent3="GridTable1Light_Accent3",Kc.gridTable1Light_Accent4="GridTable1Light_Accent4",Kc.gridTable1Light_Accent5="GridTable1Light_Accent5",Kc.gridTable1Light_Accent6="GridTable1Light_Accent6",Kc.gridTable2="GridTable2",Kc.gridTable2_Accent1="GridTable2_Accent1",Kc.gridTable2_Accent2="GridTable2_Accent2",Kc.gridTable2_Accent3="GridTable2_Accent3",Kc.gridTable2_Accent4="GridTable2_Accent4",Kc.gridTable2_Accent5="GridTable2_Accent5",Kc.gridTable2_Accent6="GridTable2_Accent6",Kc.gridTable3="GridTable3",Kc.gridTable3_Accent1="GridTable3_Accent1",Kc.gridTable3_Accent2="GridTable3_Accent2",Kc.gridTable3_Accent3="GridTable3_Accent3",Kc.gridTable3_Accent4="GridTable3_Accent4",Kc.gridTable3_Accent5="GridTable3_Accent5",Kc.gridTable3_Accent6="GridTable3_Accent6",Kc.gridTable4="GridTable4",Kc.gridTable4_Accent1="GridTable4_Accent1",Kc.gridTable4_Accent2="GridTable4_Accent2",Kc.gridTable4_Accent3="GridTable4_Accent3",Kc.gridTable4_Accent4="GridTable4_Accent4",Kc.gridTable4_Accent5="GridTable4_Accent5",Kc.gridTable4_Accent6="GridTable4_Accent6",Kc.gridTable5Dark="GridTable5Dark",Kc.gridTable5Dark_Accent1="GridTable5Dark_Accent1",Kc.gridTable5Dark_Accent2="GridTable5Dark_Accent2",Kc.gridTable5Dark_Accent3="GridTable5Dark_Accent3",Kc.gridTable5Dark_Accent4="GridTable5Dark_Accent4",Kc.gridTable5Dark_Accent5="GridTable5Dark_Accent5",Kc.gridTable5Dark_Accent6="GridTable5Dark_Accent6",Kc.gridTable6Colorful="GridTable6Colorful",Kc.gridTable6Colorful_Accent1="GridTable6Colorful_Accent1",Kc.gridTable6Colorful_Accent2="GridTable6Colorful_Accent2",Kc.gridTable6Colorful_Accent3="GridTable6Colorful_Accent3",Kc.gridTable6Colorful_Accent4="GridTable6Colorful_Accent4",Kc.gridTable6Colorful_Accent5="GridTable6Colorful_Accent5",Kc.gridTable6Colorful_Accent6="GridTable6Colorful_Accent6",Kc.gridTable7Colorful="GridTable7Colorful",Kc.gridTable7Colorful_Accent1="GridTable7Colorful_Accent1",Kc.gridTable7Colorful_Accent2="GridTable7Colorful_Accent2",Kc.gridTable7Colorful_Accent3="GridTable7Colorful_Accent3",Kc.gridTable7Colorful_Accent4="GridTable7Colorful_Accent4",Kc.gridTable7Colorful_Accent5="GridTable7Colorful_Accent5",Kc.gridTable7Colorful_Accent6="GridTable7Colorful_Accent6",Kc.listTable1Light="ListTable1Light",Kc.listTable1Light_Accent1="ListTable1Light_Accent1",Kc.listTable1Light_Accent2="ListTable1Light_Accent2",Kc.listTable1Light_Accent3="ListTable1Light_Accent3",Kc.listTable1Light_Accent4="ListTable1Light_Accent4",Kc.listTable1Light_Accent5="ListTable1Light_Accent5",Kc.listTable1Light_Accent6="ListTable1Light_Accent6",Kc.listTable2="ListTable2",Kc.listTable2_Accent1="ListTable2_Accent1",Kc.listTable2_Accent2="ListTable2_Accent2",Kc.listTable2_Accent3="ListTable2_Accent3",Kc.listTable2_Accent4="ListTable2_Accent4",Kc.listTable2_Accent5="ListTable2_Accent5",Kc.listTable2_Accent6="ListTable2_Accent6",Kc.listTable3="ListTable3",Kc.listTable3_Accent1="ListTable3_Accent1",Kc.listTable3_Accent2="ListTable3_Accent2",Kc.listTable3_Accent3="ListTable3_Accent3",Kc.listTable3_Accent4="ListTable3_Accent4",Kc.listTable3_Accent5="ListTable3_Accent5",Kc.listTable3_Accent6="ListTable3_Accent6",Kc.listTable4="ListTable4",Kc.listTable4_Accent1="ListTable4_Accent1",Kc.listTable4_Accent2="ListTable4_Accent2",Kc.listTable4_Accent3="ListTable4_Accent3",Kc.listTable4_Accent4="ListTable4_Accent4",Kc.listTable4_Accent5="ListTable4_Accent5",Kc.listTable4_Accent6="ListTable4_Accent6",Kc.listTable5Dark="ListTable5Dark",Kc.listTable5Dark_Accent1="ListTable5Dark_Accent1",Kc.listTable5Dark_Accent2="ListTable5Dark_Accent2",Kc.listTable5Dark_Accent3="ListTable5Dark_Accent3",Kc.listTable5Dark_Accent4="ListTable5Dark_Accent4",Kc.listTable5Dark_Accent5="ListTable5Dark_Accent5",Kc.listTable5Dark_Accent6="ListTable5Dark_Accent6",Kc.listTable6Colorful="ListTable6Colorful",Kc.listTable6Colorful_Accent1="ListTable6Colorful_Accent1",Kc.listTable6Colorful_Accent2="ListTable6Colorful_Accent2",Kc.listTable6Colorful_Accent3="ListTable6Colorful_Accent3",Kc.listTable6Colorful_Accent4="ListTable6Colorful_Accent4",Kc.listTable6Colorful_Accent5="ListTable6Colorful_Accent5",Kc.listTable6Colorful_Accent6="ListTable6Colorful_Accent6",Kc.listTable7Colorful="ListTable7Colorful",Kc.listTable7Colorful_Accent1="ListTable7Colorful_Accent1",Kc.listTable7Colorful_Accent2="ListTable7Colorful_Accent2",Kc.listTable7Colorful_Accent3="ListTable7Colorful_Accent3",Kc.listTable7Colorful_Accent4="ListTable7Colorful_Accent4",Kc.listTable7Colorful_Accent5="ListTable7Colorful_Accent5",Kc.listTable7Colorful_Accent6="ListTable7Colorful_Accent6",(Jc=a.DocumentPropertyType||(a.DocumentPropertyType={})).string="String",Jc.number="Number",Jc.date="Date",Jc.boolean="Boolean",(Xc=a.TapObjectType||(a.TapObjectType={})).chart="Chart",Xc.smartArt="SmartArt",Xc.table="Table",Xc.image="Image",Xc.slide="Slide",Xc.ole="OLE",Xc.text="Text",(Qc=a.FileContentFormat||(a.FileContentFormat={})).base64="Base64",Qc.html="Html",Qc.ooxml="Ooxml",(Yc=a.AnnotationParentType||(a.AnnotationParentType={})).none="None",Yc.document="Document",Yc.paragraph="Paragraph",Yc.annotation="Annotation",(Zc=a.AugloopAnnotationState||(a.AugloopAnnotationState={}))[void 0]="Undefined",Zc.created="Created",Zc.sent="Sent",Zc.duplicated="Duplicated",Zc.seen="Seen",Zc.tried="Tried",Zc.kept="Kept",Zc.rejected="Rejected",($c=a.StyleType||(a.StyleType={})).character="Character",$c.list="List",$c.paragraph="Paragraph",$c.table="Table",(el=a.OutlineLevel||(a.OutlineLevel={})).outlineLevel1="OutlineLevel1",el.outlineLevel2="OutlineLevel2",el.outlineLevel3="OutlineLevel3",el.outlineLevel4="OutlineLevel4",el.outlineLevel5="OutlineLevel5",el.outlineLevel6="OutlineLevel6",el.outlineLevel7="OutlineLevel7",el.outlineLevel8="OutlineLevel8",el.outlineLevel9="OutlineLevel9",el.outlineLevelBodyText="OutlineLevelBodyText",(tl=a.CloseBehavior||(a.CloseBehavior={})).save="Save",tl.skipSave="SkipSave",(nl=a.SaveBehavior||(a.SaveBehavior={})).save="Save",nl.prompt="Prompt",(rl=a.FieldType||(a.FieldType={})).addin="Addin",rl.addressBlock="AddressBlock",rl.advance="Advance",rl.ask="Ask",rl.author="Author",rl.autoText="AutoText",rl.autoTextList="AutoTextList",rl.barCode="BarCode",rl.bibliography="Bibliography",rl.bidiOutline="BidiOutline",rl.citation="Citation",rl.comments="Comments",rl.compare="Compare",rl.createDate="CreateDate",rl.data="Data",rl.database="Database",rl.date="Date",rl.displayBarcode="DisplayBarcode",rl.docProperty="DocProperty",rl.docVariable="DocVariable",rl.editTime="EditTime",rl.embedded="Embedded",rl.eq="EQ",rl.expression="Expression",rl.fileName="FileName",rl.fileSize="FileSize",rl.fillIn="FillIn",rl.formCheckbox="FormCheckbox",rl.formDropdown="FormDropdown",rl.formText="FormText",rl.gotoButton="GotoButton",rl.greetingLine="GreetingLine",rl.hyperlink="Hyperlink",rl.if="If",rl.import="Import",rl.include="Include",rl.includePicture="IncludePicture",rl.includeText="IncludeText",rl.index="Index",rl.info="Info",rl.keywords="Keywords",rl.lastSavedBy="LastSavedBy",rl.link="Link",rl.listNum="ListNum",rl.macroButton="MacroButton",rl.mergeBarcode="MergeBarcode",rl.mergeField="MergeField",rl.mergeRec="MergeRec",rl.mergeSeq="MergeSeq",rl.next="Next",rl.nextIf="NextIf",rl.noteRef="NoteRef",rl.numChars="NumChars",rl.numPages="NumPages",rl.numWords="NumWords",rl.ocx="OCX",rl.page="Page",rl.pageRef="PageRef",rl.print="Print",rl.printDate="PrintDate",rl.private="Private",rl.quote="Quote",rl.rd="RD",rl.ref="Ref",rl.revNum="RevNum",rl.saveDate="SaveDate",rl.section="Section",rl.sectionPages="SectionPages",rl.seq="Seq",rl.set="Set",rl.shape="Shape",rl.skipIf="SkipIf",rl.styleRef="StyleRef",rl.subject="Subject",rl.subscriber="Subscriber",rl.symbol="Symbol",rl.ta="TA",rl.tc="TC",rl.template="Template",rl.time="Time",rl.title="Title",rl.toa="TOA",rl.toc="TOC",rl.userAddress="UserAddress",rl.userInitials="UserInitials",rl.userName="UserName",rl.xe="XE",rl.empty="Empty",rl.others="Others",rl[void 0]="Undefined",(il=a.FieldKind||(a.FieldKind={})).none="None",il.hot="Hot",il.warm="Warm",il.cold="Cold",(ol=a.TrailingCharacter||(a.TrailingCharacter={})).trailingTab="TrailingTab",ol.trailingSpace="TrailingSpace",ol.trailingNone="TrailingNone",(al=a.ListBuiltInNumberStyle||(a.ListBuiltInNumberStyle={})).none="None",al.arabic="Arabic",al.upperRoman="UpperRoman",al.lowerRoman="LowerRoman",al.upperLetter="UpperLetter",al.lowerLetter="LowerLetter",al.ordinal="Ordinal",al.cardinalText="CardinalText",al.ordinalText="OrdinalText",al.kanji="Kanji",al.kanjiDigit="KanjiDigit",al.aiueoHalfWidth="AiueoHalfWidth",al.irohaHalfWidth="IrohaHalfWidth",al.arabicFullWidth="ArabicFullWidth",al.kanjiTraditional="KanjiTraditional",al.kanjiTraditional2="KanjiTraditional2",al.numberInCircle="NumberInCircle",al.aiueo="Aiueo",al.iroha="Iroha",al.arabicLZ="ArabicLZ",al.bullet="Bullet",al.ganada="Ganada",al.chosung="Chosung",al.gbnum1="GBNum1",al.gbnum2="GBNum2",al.gbnum3="GBNum3",al.gbnum4="GBNum4",al.zodiac1="Zodiac1",al.zodiac2="Zodiac2",al.zodiac3="Zodiac3",al.tradChinNum1="TradChinNum1",al.tradChinNum2="TradChinNum2",al.tradChinNum3="TradChinNum3",al.tradChinNum4="TradChinNum4",al.simpChinNum1="SimpChinNum1",al.simpChinNum2="SimpChinNum2",al.simpChinNum3="SimpChinNum3",al.simpChinNum4="SimpChinNum4",al.hanjaRead="HanjaRead",al.hanjaReadDigit="HanjaReadDigit",al.hangul="Hangul",al.hanja="Hanja",al.hebrew1="Hebrew1",al.arabic1="Arabic1",al.hebrew2="Hebrew2",al.arabic2="Arabic2",al.hindiLetter1="HindiLetter1",al.hindiLetter2="HindiLetter2",al.hindiArabic="HindiArabic",al.hindiCardinalText="HindiCardinalText",al.thaiLetter="ThaiLetter",al.thaiArabic="ThaiArabic",al.thaiCardinalText="ThaiCardinalText",al.vietCardinalText="VietCardinalText",al.lowercaseRussian="LowercaseRussian",al.uppercaseRussian="UppercaseRussian",al.lowercaseGreek="LowercaseGreek",al.uppercaseGreek="UppercaseGreek",al.arabicLZ2="ArabicLZ2",al.arabicLZ3="ArabicLZ3",al.arabicLZ4="ArabicLZ4",al.lowercaseTurkish="LowercaseTurkish",al.uppercaseTurkish="UppercaseTurkish",al.lowercaseBulgarian="LowercaseBulgarian",al.uppercaseBulgarian="UppercaseBulgarian",al.pictureBullet="PictureBullet",al.legal="Legal",al.legalLZ="LegalLZ",(sl=a.ShadingTextureType||(a.ShadingTextureType={})).darkDiagonalDown="DarkDiagonalDown",sl.darkDiagonalUp="DarkDiagonalUp",sl.darkGrid="DarkGrid",sl.darkHorizontal="DarkHorizontal",sl.darkTrellis="DarkTrellis",sl.darkVertical="DarkVertical",sl.lightDiagonalDown="LightDiagonalDown",sl.lightDiagonalUp="LightDiagonalUp",sl.lightGrid="LightGrid",sl.lightHorizontal="LightHorizontal",sl.lightTrellis="LightTrellis",sl.lightVertical="LightVertical",sl.none="None",sl.percent10="Percent10",sl.percent12Pt5="Percent12Pt5",sl.percent15="Percent15",sl.percent20="Percent20",sl.percent25="Percent25",sl.percent30="Percent30",sl.percent35="Percent35",sl.percent37Pt5="Percent37Pt5",sl.percent40="Percent40",sl.percent45="Percent45",sl.percent5="Percent5",sl.percent50="Percent50",sl.percent55="Percent55",sl.percent60="Percent60",sl.percent62Pt5="Percent62Pt5",sl.percent65="Percent65",sl.percent70="Percent70",sl.percent75="Percent75",sl.percent80="Percent80",sl.percent85="Percent85",sl.percent87Pt5="Percent87Pt5",sl.percent90="Percent90",sl.percent95="Percent95",sl.solid="Solid",(cl=a.CompareTarget||(a.CompareTarget={})).compareTargetCurrent="CompareTargetCurrent",cl.compareTargetSelected="CompareTargetSelected",cl.compareTargetNew="CompareTargetNew",(ll=a.ImportedStylesConflictBehavior||(a.ImportedStylesConflictBehavior={})).ignore="Ignore",ll.overwrite="Overwrite",ll.createNew="CreateNew",(ul=a.ShapeType||(a.ShapeType={})).unsupported="Unsupported",ul.textBox="TextBox",ul.geometricShape="GeometricShape",ul.group="Group",ul.picture="Picture",ul.canvas="Canvas",(pl=a.RelativeHorizontalPosition||(a.RelativeHorizontalPosition={})).margin="Margin",pl.page="Page",pl.column="Column",pl.character="Character",pl.leftMargin="LeftMargin",pl.rightMargin="RightMargin",pl.insideMargin="InsideMargin",pl.outsideMargin="OutsideMargin",(fl=a.RelativeVerticalPosition||(a.RelativeVerticalPosition={})).margin="Margin",fl.page="Page",fl.paragraph="Paragraph",fl.line="Line",fl.topMargin="TopMargin",fl.bottomMargin="BottomMargin",fl.insideMargin="InsideMargin",fl.outsideMargin="OutsideMargin",(dl=a.RelativeSize||(a.RelativeSize={})).margin="Margin",dl.page="Page",dl.topMargin="TopMargin",dl.bottomMargin="BottomMargin",dl.insideMargin="InsideMargin",dl.outsideMargin="OutsideMargin",(hl=a.GeometricShapeType||(a.GeometricShapeType={})).lineInverse="LineInverse",hl.triangle="Triangle",hl.rightTriangle="RightTriangle",hl.rectangle="Rectangle",hl.diamond="Diamond",hl.parallelogram="Parallelogram",hl.trapezoid="Trapezoid",hl.nonIsoscelesTrapezoid="NonIsoscelesTrapezoid",hl.pentagon="Pentagon",hl.hexagon="Hexagon",hl.heptagon="Heptagon",hl.octagon="Octagon",hl.decagon="Decagon",hl.dodecagon="Dodecagon",hl.star4="Star4",hl.star5="Star5",hl.star6="Star6",hl.star7="Star7",hl.star8="Star8",hl.star10="Star10",hl.star12="Star12",hl.star16="Star16",hl.star24="Star24",hl.star32="Star32",hl.roundRectangle="RoundRectangle",hl.round1Rectangle="Round1Rectangle",hl.round2SameRectangle="Round2SameRectangle",hl.round2DiagonalRectangle="Round2DiagonalRectangle",hl.snipRoundRectangle="SnipRoundRectangle",hl.snip1Rectangle="Snip1Rectangle",hl.snip2SameRectangle="Snip2SameRectangle",hl.snip2DiagonalRectangle="Snip2DiagonalRectangle",hl.plaque="Plaque",hl.ellipse="Ellipse",hl.teardrop="Teardrop",hl.homePlate="HomePlate",hl.chevron="Chevron",hl.pieWedge="PieWedge",hl.pie="Pie",hl.blockArc="BlockArc",hl.donut="Donut",hl.noSmoking="NoSmoking",hl.rightArrow="RightArrow",hl.leftArrow="LeftArrow",hl.upArrow="UpArrow",hl.downArrow="DownArrow",hl.stripedRightArrow="StripedRightArrow",hl.notchedRightArrow="NotchedRightArrow",hl.bentUpArrow="BentUpArrow",hl.leftRightArrow="LeftRightArrow",hl.upDownArrow="UpDownArrow",hl.leftUpArrow="LeftUpArrow",hl.leftRightUpArrow="LeftRightUpArrow",hl.quadArrow="QuadArrow",hl.leftArrowCallout="LeftArrowCallout",hl.rightArrowCallout="RightArrowCallout",hl.upArrowCallout="UpArrowCallout",hl.downArrowCallout="DownArrowCallout",hl.leftRightArrowCallout="LeftRightArrowCallout",hl.upDownArrowCallout="UpDownArrowCallout",hl.quadArrowCallout="QuadArrowCallout",hl.bentArrow="BentArrow",hl.uturnArrow="UturnArrow",hl.circularArrow="CircularArrow",hl.leftCircularArrow="LeftCircularArrow",hl.leftRightCircularArrow="LeftRightCircularArrow",hl.curvedRightArrow="CurvedRightArrow",hl.curvedLeftArrow="CurvedLeftArrow",hl.curvedUpArrow="CurvedUpArrow",hl.curvedDownArrow="CurvedDownArrow",hl.swooshArrow="SwooshArrow",hl.cube="Cube",hl.can="Can",hl.lightningBolt="LightningBolt",hl.heart="Heart",hl.sun="Sun",hl.moon="Moon",hl.smileyFace="SmileyFace",hl.irregularSeal1="IrregularSeal1",hl.irregularSeal2="IrregularSeal2",hl.foldedCorner="FoldedCorner",hl.bevel="Bevel",hl.frame="Frame",hl.halfFrame="HalfFrame",hl.corner="Corner",hl.diagonalStripe="DiagonalStripe",hl.chord="Chord",hl.arc="Arc",hl.leftBracket="LeftBracket",hl.rightBracket="RightBracket",hl.leftBrace="LeftBrace",hl.rightBrace="RightBrace",hl.bracketPair="BracketPair",hl.bracePair="BracePair",hl.callout1="Callout1",hl.callout2="Callout2",hl.callout3="Callout3",hl.accentCallout1="AccentCallout1",hl.accentCallout2="AccentCallout2",hl.accentCallout3="AccentCallout3",hl.borderCallout1="BorderCallout1",hl.borderCallout2="BorderCallout2",hl.borderCallout3="BorderCallout3",hl.accentBorderCallout1="AccentBorderCallout1",hl.accentBorderCallout2="AccentBorderCallout2",hl.accentBorderCallout3="AccentBorderCallout3",hl.wedgeRectCallout="WedgeRectCallout",hl.wedgeRRectCallout="WedgeRRectCallout",hl.wedgeEllipseCallout="WedgeEllipseCallout",hl.cloudCallout="CloudCallout",hl.cloud="Cloud",hl.ribbon="Ribbon",hl.ribbon2="Ribbon2",hl.ellipseRibbon="EllipseRibbon",hl.ellipseRibbon2="EllipseRibbon2",hl.leftRightRibbon="LeftRightRibbon",hl.verticalScroll="VerticalScroll",hl.horizontalScroll="HorizontalScroll",hl.wave="Wave",hl.doubleWave="DoubleWave",hl.plus="Plus",hl.flowChartProcess="FlowChartProcess",hl.flowChartDecision="FlowChartDecision",hl.flowChartInputOutput="FlowChartInputOutput",hl.flowChartPredefinedProcess="FlowChartPredefinedProcess",hl.flowChartInternalStorage="FlowChartInternalStorage",hl.flowChartDocument="FlowChartDocument",hl.flowChartMultidocument="FlowChartMultidocument",hl.flowChartTerminator="FlowChartTerminator",hl.flowChartPreparation="FlowChartPreparation",hl.flowChartManualInput="FlowChartManualInput",hl.flowChartManualOperation="FlowChartManualOperation",hl.flowChartConnector="FlowChartConnector",hl.flowChartPunchedCard="FlowChartPunchedCard",hl.flowChartPunchedTape="FlowChartPunchedTape",hl.flowChartSummingJunction="FlowChartSummingJunction",hl.flowChartOr="FlowChartOr",hl.flowChartCollate="FlowChartCollate",hl.flowChartSort="FlowChartSort",hl.flowChartExtract="FlowChartExtract",hl.flowChartMerge="FlowChartMerge",hl.flowChartOfflineStorage="FlowChartOfflineStorage",hl.flowChartOnlineStorage="FlowChartOnlineStorage",hl.flowChartMagneticTape="FlowChartMagneticTape",hl.flowChartMagneticDisk="FlowChartMagneticDisk",hl.flowChartMagneticDrum="FlowChartMagneticDrum",hl.flowChartDisplay="FlowChartDisplay",hl.flowChartDelay="FlowChartDelay",hl.flowChartAlternateProcess="FlowChartAlternateProcess",hl.flowChartOffpageConnector="FlowChartOffpageConnector",hl.actionButtonBlank="ActionButtonBlank",hl.actionButtonHome="ActionButtonHome",hl.actionButtonHelp="ActionButtonHelp",hl.actionButtonInformation="ActionButtonInformation",hl.actionButtonForwardNext="ActionButtonForwardNext",hl.actionButtonBackPrevious="ActionButtonBackPrevious",hl.actionButtonEnd="ActionButtonEnd",hl.actionButtonBeginning="ActionButtonBeginning",hl.actionButtonReturn="ActionButtonReturn",hl.actionButtonDocument="ActionButtonDocument",hl.actionButtonSound="ActionButtonSound",hl.actionButtonMovie="ActionButtonMovie",hl.gear6="Gear6",hl.gear9="Gear9",hl.funnel="Funnel",hl.mathPlus="MathPlus",hl.mathMinus="MathMinus",hl.mathMultiply="MathMultiply",hl.mathDivide="MathDivide",hl.mathEqual="MathEqual",hl.mathNotEqual="MathNotEqual",hl.cornerTabs="CornerTabs",hl.squareTabs="SquareTabs",hl.plaqueTabs="PlaqueTabs",hl.chartX="ChartX",hl.chartStar="ChartStar",hl.chartPlus="ChartPlus";(gl=a.ShapeFillType||(a.ShapeFillType={})).noFill="NoFill",gl.solid="Solid",gl.gradient="Gradient",gl.pattern="Pattern",gl.picture="Picture",gl.texture="Texture",gl.mixed="Mixed",(yl=a.ShapeTextVerticalAlignment||(a.ShapeTextVerticalAlignment={})).top="Top",yl.middle="Middle",yl.bottom="Bottom",(ml=a.ShapeTextOrientation||(a.ShapeTextOrientation={})).none="None",ml.horizontal="Horizontal",ml.eastAsianVertical="EastAsianVertical",ml.vertical270="Vertical270",ml.vertical="Vertical",ml.eastAsianHorizontalRotated="EastAsianHorizontalRotated",ml.mixed="Mixed",(_l=a.ShapeAutoSize||(a.ShapeAutoSize={})).none="None",_l.textToFitShape="TextToFitShape",_l.shapeToFitText="ShapeToFitText",_l.mixed="Mixed",(bl=a.ShapeTextWrapType||(a.ShapeTextWrapType={})).inline="Inline",bl.square="Square",bl.tight="Tight",bl.through="Through",bl.topBottom="TopBottom",bl.behind="Behind",bl.front="Front",(vl=a.ShapeTextWrapSide||(a.ShapeTextWrapSide={})).none="None",vl.both="Both",vl.left="Left",vl.right="Right",vl.largest="Largest",(Ol=a.ShapeScaleType||(a.ShapeScaleType={})).currentSize="CurrentSize",Ol.originalSize="OriginalSize",(Cl=a.ShapeScaleFrom||(a.ShapeScaleFrom={})).scaleFromTopLeft="ScaleFromTopLeft",Cl.scaleFromMiddle="ScaleFromMiddle",Cl.scaleFromBottomRight="ScaleFromBottomRight",(Pl=a.FrameSizeRule||(a.FrameSizeRule={})).auto="Auto",Pl.atLeast="AtLeast",Pl.exact="Exact",(Rl=a.BorderLineStyle||(a.BorderLineStyle={})).none="None",Rl.single="Single",Rl.dot="Dot",Rl.dashSmallGap="DashSmallGap",Rl.dashLargeGap="DashLargeGap",Rl.dashDot="DashDot",Rl.dashDotDot="DashDotDot",Rl.double="Double",Rl.triple="Triple",Rl.thinThickSmallGap="ThinThickSmallGap",Rl.thickThinSmallGap="ThickThinSmallGap",Rl.thinThickThinSmallGap="ThinThickThinSmallGap",Rl.thinThickMedGap="ThinThickMedGap",Rl.thickThinMedGap="ThickThinMedGap",Rl.thinThickThinMedGap="ThinThickThinMedGap",Rl.thinThickLargeGap="ThinThickLargeGap",Rl.thickThinLargeGap="ThickThinLargeGap",Rl.thinThickThinLargeGap="ThinThickThinLargeGap",Rl.singleWavy="SingleWavy",Rl.doubleWavy="DoubleWavy",Rl.dashDotStroked="DashDotStroked",Rl.emboss3D="Emboss3D",Rl.engrave3D="Engrave3D",Rl.outset="Outset",Rl.inset="Inset",(Sl=a.LineWidth||(a.LineWidth={})).pt025="Pt025",Sl.pt050="Pt050",Sl.pt075="Pt075",Sl.pt100="Pt100",Sl.pt150="Pt150",Sl.pt225="Pt225",Sl.pt300="Pt300",Sl.pt450="Pt450",Sl.pt600="Pt600",(Il=a.PageBorderArt||(a.PageBorderArt={})).apples="Apples",Il.mapleMuffins="MapleMuffins",Il.cakeSlice="CakeSlice",Il.candyCorn="CandyCorn",Il.iceCreamCones="IceCreamCones",Il.champagneBottle="ChampagneBottle",Il.partyGlass="PartyGlass",Il.christmasTree="ChristmasTree",Il.trees="Trees",Il.palmsColor="PalmsColor",Il.balloons3Colors="Balloons3Colors",Il.balloonsHotAir="BalloonsHotAir",Il.partyFavor="PartyFavor",Il.confettiStreamers="ConfettiStreamers",Il.hearts="Hearts",Il.heartBalloon="HeartBalloon",Il.stars3D="Stars3D",Il.starsShadowed="StarsShadowed",Il.stars="Stars",Il.sun="Sun",Il.earth2="Earth2",Il.earth1="Earth1",Il.peopleHats="PeopleHats",Il.sombrero="Sombrero",Il.pencils="Pencils",Il.packages="Packages",Il.clocks="Clocks",Il.firecrackers="Firecrackers",Il.rings="Rings",Il.mapPins="MapPins",Il.confetti="Confetti",Il.creaturesButterfly="CreaturesButterfly",Il.creaturesLadyBug="CreaturesLadyBug",Il.creaturesFish="CreaturesFish",Il.birdsFlight="BirdsFlight",Il.scaredCat="ScaredCat",Il.bats="Bats",Il.flowersRoses="FlowersRoses",Il.flowersRedRose="FlowersRedRose",Il.poinsettias="Poinsettias",Il.holly="Holly",Il.flowersTiny="FlowersTiny",Il.flowersPansy="FlowersPansy",Il.flowersModern2="FlowersModern2",Il.flowersModern1="FlowersModern1",Il.whiteFlowers="WhiteFlowers",Il.vine="Vine",Il.flowersDaisies="FlowersDaisies",Il.flowersBlockPrint="FlowersBlockPrint",Il.decoArchColor="DecoArchColor",Il.fans="Fans",Il.film="Film",Il.lightning1="Lightning1",Il.compass="Compass",Il.doubleD="DoubleD",Il.classicalWave="ClassicalWave",Il.shadowedSquares="ShadowedSquares",Il.twistedLines1="TwistedLines1",Il.waveline="Waveline",Il.quadrants="Quadrants",Il.checkedBarColor="CheckedBarColor",Il.swirligig="Swirligig",Il.pushPinNote1="PushPinNote1",Il.pushPinNote2="PushPinNote2",Il.pumpkin1="Pumpkin1",Il.eggsBlack="EggsBlack",Il.cup="Cup",Il.heartGray="HeartGray",Il.gingerbreadMan="GingerbreadMan",Il.babyPacifier="BabyPacifier",Il.babyRattle="BabyRattle",Il.cabins="Cabins",Il.houseFunky="HouseFunky",Il.starsBlack="StarsBlack",Il.snowflakes="Snowflakes",Il.snowflakeFancy="SnowflakeFancy",Il.skyrocket="Skyrocket",Il.seattle="Seattle",Il.musicNotes="MusicNotes",Il.palmsBlack="PalmsBlack",Il.mapleLeaf="MapleLeaf",Il.paperClips="PaperClips",Il.shorebirdTracks="ShorebirdTracks",Il.people="People",Il.peopleWaving="PeopleWaving",Il.eclipsingSquares2="EclipsingSquares2",Il.hypnotic="Hypnotic",Il.diamondsGray="DiamondsGray",Il.decoArch="DecoArch",Il.decoBlocks="DecoBlocks",Il.circlesLines="CirclesLines",Il.papyrus="Papyrus",Il.woodwork="Woodwork",Il.weavingBraid="WeavingBraid",Il.weavingRibbon="WeavingRibbon",Il.weavingAngles="WeavingAngles",Il.archedScallops="ArchedScallops",Il.safari="Safari",Il.celticKnotwork="CelticKnotwork",Il.crazyMaze="CrazyMaze",Il.eclipsingSquares1="EclipsingSquares1",Il.birds="Birds",Il.flowersTeacup="FlowersTeacup",Il.northwest="Northwest",Il.southwest="Southwest",Il.tribal6="Tribal6",Il.tribal4="Tribal4",Il.tribal3="Tribal3",Il.tribal2="Tribal2",Il.tribal5="Tribal5",Il.xillusions="XIllusions",Il.zanyTriangles="ZanyTriangles",Il.pyramids="Pyramids",Il.pyramidsAbove="PyramidsAbove",Il.confettiGrays="ConfettiGrays",Il.confettiOutline="ConfettiOutline",Il.confettiWhite="ConfettiWhite",Il.mosaic="Mosaic",Il.lightning2="Lightning2",Il.heebieJeebies="HeebieJeebies",Il.lightBulb="LightBulb",Il.gradient="Gradient",Il.triangleParty="TriangleParty",Il.twistedLines2="TwistedLines2",Il.moons="Moons",Il.ovals="Ovals",Il.doubleDiamonds="DoubleDiamonds",Il.chainLink="ChainLink",Il.triangles="Triangles",Il.tribal1="Tribal1",Il.marqueeToothed="MarqueeToothed",Il.sharksTeeth="SharksTeeth",Il.sawtooth="Sawtooth",Il.sawtoothGray="SawtoothGray",Il.postageStamp="PostageStamp",Il.weavingStrips="WeavingStrips",Il.zigZag="ZigZag",Il.crossStitch="CrossStitch",Il.gems="Gems",Il.circlesRectangles="CirclesRectangles",Il.cornerTriangles="CornerTriangles",Il.creaturesInsects="CreaturesInsects",Il.zigZagStitch="ZigZagStitch",Il.checkered="Checkered",Il.checkedBarBlack="CheckedBarBlack",Il.marquee="Marquee",Il.basicWhiteDots="BasicWhiteDots",Il.basicWideMidline="BasicWideMidline",Il.basicWideOutline="BasicWideOutline",Il.basicWideInline="BasicWideInline",Il.basicThinLines="BasicThinLines",Il.basicWhiteDashes="BasicWhiteDashes",Il.basicWhiteSquares="BasicWhiteSquares",Il.basicBlackSquares="BasicBlackSquares",Il.basicBlackDashes="BasicBlackDashes",Il.basicBlackDots="BasicBlackDots",Il.starsTop="StarsTop",Il.certificateBanner="CertificateBanner",Il.handmade1="Handmade1",Il.handmade2="Handmade2",Il.tornPaper="TornPaper",Il.tornPaperBlack="TornPaperBlack",Il.couponCutoutDashes="CouponCutoutDashes",Il.couponCutoutDots="CouponCutoutDots",(Tl=a.PreferredWidthType||(a.PreferredWidthType={})).auto="Auto",Tl.percent="Percent",Tl.points="Points",(Al=a.RulerStyle||(a.RulerStyle={})).none="None",Al.proportional="Proportional",Al.firstColumn="FirstColumn",Al.sameWidth="SameWidth",(Nl=a.FarEastLineBreakLanguageId||(a.FarEastLineBreakLanguageId={})).traditionalChinese="TraditionalChinese",Nl.japanese="Japanese",Nl.korean="Korean",Nl.simplifiedChinese="SimplifiedChinese",(xl=a.FarEastLineBreakLevel||(a.FarEastLineBreakLevel={})).normal="Normal",xl.strict="Strict",xl.custom="Custom",(El=a.JustificationMode||(a.JustificationMode={})).expand="Expand",El.compress="Compress",El.compressKana="CompressKana",(Dl=a.TemplateType||(a.TemplateType={})).normal="Normal",Dl.global="Global",Dl.attached="Attached",(jl=a.LanguageId||(a.LanguageId={})).afrikaans="Afrikaans",jl.albanian="Albanian",jl.amharic="Amharic",jl.arabic="Arabic",jl.arabicAlgeria="ArabicAlgeria",jl.arabicBahrain="ArabicBahrain",jl.arabicEgypt="ArabicEgypt",jl.arabicIraq="ArabicIraq",jl.arabicJordan="ArabicJordan",jl.arabicKuwait="ArabicKuwait",jl.arabicLebanon="ArabicLebanon",jl.arabicLibya="ArabicLibya",jl.arabicMorocco="ArabicMorocco",jl.arabicOman="ArabicOman",jl.arabicQatar="ArabicQatar",jl.arabicSyria="ArabicSyria",jl.arabicTunisia="ArabicTunisia",jl.arabicUAE="ArabicUAE",jl.arabicYemen="ArabicYemen",jl.armenian="Armenian",jl.assamese="Assamese",jl.azeriCyrillic="AzeriCyrillic",jl.azeriLatin="AzeriLatin",jl.basque="Basque",jl.belgianDutch="BelgianDutch",jl.belgianFrench="BelgianFrench",jl.bengali="Bengali",jl.bulgarian="Bulgarian",jl.burmese="Burmese",jl.belarusian="Belarusian",jl.catalan="Catalan",jl.cherokee="Cherokee",jl.chineseHongKongSAR="ChineseHongKongSAR",jl.chineseMacaoSAR="ChineseMacaoSAR",jl.chineseSingapore="ChineseSingapore",jl.croatian="Croatian",jl.czech="Czech",jl.danish="Danish",jl.divehi="Divehi",jl.dutch="Dutch",jl.edo="Edo",jl.englishAUS="EnglishAUS",jl.englishBelize="EnglishBelize",jl.englishCanadian="EnglishCanadian",jl.englishCaribbean="EnglishCaribbean",jl.englishIndonesia="EnglishIndonesia",jl.englishIreland="EnglishIreland",jl.englishJamaica="EnglishJamaica",jl.englishNewZealand="EnglishNewZealand",jl.englishPhilippines="EnglishPhilippines",jl.englishSouthAfrica="EnglishSouthAfrica",jl.englishTrinidadTobago="EnglishTrinidadTobago",jl.englishUK="EnglishUK",jl.englishUS="EnglishUS",jl.englishZimbabwe="EnglishZimbabwe",jl.estonian="Estonian",jl.faeroese="Faeroese",jl.filipino="Filipino",jl.finnish="Finnish",jl.french="French",jl.frenchCameroon="FrenchCameroon",jl.frenchCanadian="FrenchCanadian",jl.frenchCongoDRC="FrenchCongoDRC",jl.frenchCotedIvoire="FrenchCotedIvoire",jl.frenchHaiti="FrenchHaiti",jl.frenchLuxembourg="FrenchLuxembourg",jl.frenchMali="FrenchMali",jl.frenchMonaco="FrenchMonaco",jl.frenchMorocco="FrenchMorocco",jl.frenchReunion="FrenchReunion",jl.frenchSenegal="FrenchSenegal",jl.frenchWestIndies="FrenchWestIndies",jl.frisianNetherlands="FrisianNetherlands",jl.fulfulde="Fulfulde",jl.gaelicIreland="GaelicIreland",jl.gaelicScotland="GaelicScotland",jl.galician="Galician",jl.georgian="Georgian",jl.german="German",jl.germanAustria="GermanAustria",jl.germanLiechtenstein="GermanLiechtenstein",jl.germanLuxembourg="GermanLuxembourg",jl.greek="Greek",jl.guarani="Guarani",jl.gujarati="Gujarati",jl.hausa="Hausa",jl.hawaiian="Hawaiian",jl.hebrew="Hebrew",jl.hindi="Hindi",jl.hungarian="Hungarian",jl.ibibio="Ibibio",jl.icelandic="Icelandic",jl.igbo="Igbo",jl.indonesian="Indonesian",jl.inuktitut="Inuktitut",jl.italian="Italian",jl.japanese="Japanese",jl.kannada="Kannada",jl.kanuri="Kanuri",jl.kashmiri="Kashmiri",jl.kazakh="Kazakh",jl.khmer="Khmer",jl.kirghiz="Kirghiz",jl.konkani="Konkani",jl.korean="Korean",jl.kyrgyz="Kyrgyz",jl.languageNone="LanguageNone",jl.lao="Lao",jl.latin="Latin",jl.latvian="Latvian",jl.lithuanian="Lithuanian",jl.macedonianFYROM="MacedonianFYROM",jl.malayalam="Malayalam",jl.malayBruneiDarussalam="MalayBruneiDarussalam",jl.malaysian="Malaysian",jl.maltese="Maltese",jl.manipuri="Manipuri",jl.marathi="Marathi",jl.mexicanSpanish="MexicanSpanish",jl.mongolian="Mongolian",jl.nepali="Nepali",jl.noProofing="NoProofing",jl.norwegianBokmol="NorwegianBokmol",jl.norwegianNynorsk="NorwegianNynorsk",jl.oriya="Oriya",jl.oromo="Oromo",jl.pashto="Pashto",jl.persian="Persian",jl.polish="Polish",jl.portuguese="Portuguese",jl.portugueseBrazil="PortugueseBrazil",jl.punjabi="Punjabi",jl.rhaetoRomanic="RhaetoRomanic",jl.romanian="Romanian",jl.romanianMoldova="RomanianMoldova",jl.russian="Russian",jl.russianMoldova="RussianMoldova",jl.samiLappish="SamiLappish",jl.sanskrit="Sanskrit",jl.serbianCyrillic="SerbianCyrillic",jl.serbianLatin="SerbianLatin",jl.sesotho="Sesotho",jl.simplifiedChinese="SimplifiedChinese",jl.sindhi="Sindhi",jl.sindhiPakistan="SindhiPakistan",jl.sinhalese="Sinhalese",jl.slovak="Slovak",jl.slovenian="Slovenian",jl.somali="Somali",jl.sorbian="Sorbian",jl.spanish="Spanish",jl.spanishArgentina="SpanishArgentina",jl.spanishBolivia="SpanishBolivia",jl.spanishChile="SpanishChile",jl.spanishColombia="SpanishColombia",jl.spanishCostaRica="SpanishCostaRica",jl.spanishDominicanRepublic="SpanishDominicanRepublic",jl.spanishEcuador="SpanishEcuador",jl.spanishElSalvador="SpanishElSalvador",jl.spanishGuatemala="SpanishGuatemala",jl.spanishHonduras="SpanishHonduras",jl.spanishModernSort="SpanishModernSort",jl.spanishNicaragua="SpanishNicaragua",jl.spanishPanama="SpanishPanama",jl.spanishParaguay="SpanishParaguay",jl.spanishPeru="SpanishPeru",jl.spanishPuertoRico="SpanishPuertoRico",jl.spanishUruguay="SpanishUruguay",jl.spanishVenezuela="SpanishVenezuela",jl.sutu="Sutu",jl.swahili="Swahili",jl.swedish="Swedish",jl.swedishFinland="SwedishFinland",jl.swissFrench="SwissFrench",jl.swissGerman="SwissGerman",jl.swissItalian="SwissItalian",jl.syriac="Syriac",jl.tajik="Tajik",jl.tamazight="Tamazight",jl.tamazightLatin="TamazightLatin",jl.tamil="Tamil",jl.tatar="Tatar",jl.telugu="Telugu",jl.thai="Thai",jl.tibetan="Tibetan",jl.tigrignaEritrea="TigrignaEritrea",jl.tigrignaEthiopic="TigrignaEthiopic",jl.traditionalChinese="TraditionalChinese",jl.tsonga="Tsonga",jl.tswana="Tswana",jl.turkish="Turkish",jl.turkmen="Turkmen",jl.ukrainian="Ukrainian",jl.urdu="Urdu",jl.uzbekCyrillic="UzbekCyrillic",jl.uzbekLatin="UzbekLatin",jl.venda="Venda",jl.vietnamese="Vietnamese",jl.welsh="Welsh",jl.xhosa="Xhosa",jl.yi="Yi",jl.yiddish="Yiddish",jl.yoruba="Yoruba",jl.zulu="Zulu",(wl=a.DocPartInsertType||(a.DocPartInsertType={})).content="Content",wl.paragraph="Paragraph",wl.page="Page",(kl=a.BuildingBlockType||(a.BuildingBlockType={})).quickParts="QuickParts",kl.coverPage="CoverPage",kl.equations="Equations",kl.footers="Footers",kl.headers="Headers",kl.pageNumber="PageNumber",kl.tables="Tables",kl.watermarks="Watermarks",kl.autoText="AutoText",kl.textBox="TextBox",kl.pageNumberTop="PageNumberTop",kl.pageNumberBottom="PageNumberBottom",kl.pageNumberPage="PageNumberPage",kl.tableOfContents="TableOfContents",kl.customQuickParts="CustomQuickParts",kl.customCoverPage="CustomCoverPage",kl.customEquations="CustomEquations",kl.customFooters="CustomFooters",kl.customHeaders="CustomHeaders",kl.customPageNumber="CustomPageNumber",kl.customTables="CustomTables",kl.customWatermarks="CustomWatermarks",kl.customAutoText="CustomAutoText",kl.customTextBox="CustomTextBox",kl.customPageNumberTop="CustomPageNumberTop",kl.customPageNumberBottom="CustomPageNumberBottom",kl.customPageNumberPage="CustomPageNumberPage",kl.customTableOfContents="CustomTableOfContents",kl.custom1="Custom1",kl.custom2="Custom2",kl.custom3="Custom3",kl.custom4="Custom4",kl.custom5="Custom5",kl.bibliography="Bibliography",kl.customBibliography="CustomBibliography",(Fl=a.CustomXmlNodeType||(a.CustomXmlNodeType={})).element="element",Fl.attribute="attribute",Fl.text="text",Fl.cData="cData",Fl.processingInstruction="processingInstruction",Fl.comment="comment",Fl.document="document";var Hl,Ul="ListFormat",Wl=(Hl=OfficeExtension.ClientObject,__extends(Gl,Hl),Object.defineProperty(Gl.prototype,"_className",{get:function(){return"ListFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(Gl.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","listLevelNumber","listString","listType","listValue","isSingleList","isSingleListTemplate"]},enumerable:!0,configurable:!0}),Object.defineProperty(Gl.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","ListLevelNumber","ListString","ListType","ListValue","IsSingleList","IsSingleListTemplate"]},enumerable:!0,configurable:!0}),Object.defineProperty(Gl.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!1,!1,!1,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(Gl.prototype,"_navigationPropertyNames",{get:function(){return["list","listTemplate"]},enumerable:!0,configurable:!0}),Object.defineProperty(Gl.prototype,"list",{get:function(){return this._L||(this._L=t(a.List,this,"List",!1,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(Gl.prototype,"listTemplate",{get:function(){return this._List||(this._List=t(a.ListTemplate,this,"ListTemplate",!1,4)),this._List},enumerable:!0,configurable:!0}),Object.defineProperty(Gl.prototype,"isSingleList",{get:function(){return _("isSingleList",this._I,Ul,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(Gl.prototype,"isSingleListTemplate",{get:function(){return _("isSingleListTemplate",this._Is,Ul,this._isNull),this._Is},enumerable:!0,configurable:!0}),Object.defineProperty(Gl.prototype,"listLevelNumber",{get:function(){return _("listLevelNumber",this._Li,Ul,this._isNull),this._Li},set:function(e){this._Li=e,g(this,"ListLevelNumber",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Gl.prototype,"listString",{get:function(){return _("listString",this._Lis,Ul,this._isNull),this._Lis},enumerable:!0,configurable:!0}),Object.defineProperty(Gl.prototype,"listType",{get:function(){return _("listType",this._ListT,Ul,this._isNull),this._ListT},enumerable:!0,configurable:!0}),Object.defineProperty(Gl.prototype,"listValue",{get:function(){return _("listValue",this._ListV,Ul,this._isNull),this._ListV},enumerable:!0,configurable:!0}),Object.defineProperty(Gl.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Ul,this._isNull),this.__R},enumerable:!0,configurable:!0}),Gl.prototype.set=function(e,t){this._recursivelySet(e,t,["listLevelNumber"],["listTemplate"],["list"])},Gl.prototype.update=function(e){this._recursivelyUpdate(e)},Gl.prototype.applyBulletDefault=function(e){d(this,"ApplyBulletDefault",0,[e],0,0)},Gl.prototype.applyListTemplateWithLevel=function(e,t){d(this,"ApplyListTemplateWithLevel",0,[e,t],0,0)},Gl.prototype.applyNumberDefault=function(e){d(this,"ApplyNumberDefault",0,[e],0,0)},Gl.prototype.applyOutlineNumberDefault=function(e){d(this,"ApplyOutlineNumberDefault",0,[e],0,0)},Gl.prototype.canContinuePreviousList=function(e){return d(this,"CanContinuePreviousList",0,[e],0,0)},Gl.prototype.convertNumbersToText=function(e){d(this,"ConvertNumbersToText",0,[e],0,0)},Gl.prototype.countNumberedItems=function(e){return d(this,"CountNumberedItems",0,[e],0,0)},Gl.prototype.listIndent=function(){d(this,"ListIndent",0,[],0,0)},Gl.prototype.listOutdent=function(){d(this,"ListOutdent",0,[],0,0)},Gl.prototype.removeNumbers=function(e){d(this,"RemoveNumbers",0,[e],0,0)},Gl.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Gl.prototype._handleResult=function(e){if(Hl.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.IsSingleList)||(this._I=t.IsSingleList),m(t.IsSingleListTemplate)||(this._Is=t.IsSingleListTemplate),m(t.ListLevelNumber)||(this._Li=t.ListLevelNumber),m(t.ListString)||(this._Lis=t.ListString),m(t.ListType)||(this._ListT=t.ListType),m(t.ListValue)||(this._ListV=t.ListValue),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["list","List","listTemplate","ListTemplate"])}},Gl.prototype.load=function(e){return v(this,e)},Gl.prototype.retrieve=function(e){return O(this,e)},Gl.prototype._handleIdResult=function(e){Hl.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Gl.prototype._handleRetrieveResult=function(e,t){Hl.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Gl.prototype.track=function(){return this.context.trackedObjects.add(this),this},Gl.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Gl.prototype.toJSON=function(){return C(this,{isSingleList:this._I,isSingleListTemplate:this._Is,listLevelNumber:this._Li,listString:this._Lis,listType:this._ListT,listValue:this._ListV},{list:this._L,listTemplate:this._List})},Gl.prototype.setMockData=function(e){T(this,e)},Gl.prototype.ensureUnchanged=function(e){h(this,e)},Gl);function Gl(){return null!==Hl&&Hl.apply(this,arguments)||this}a.ListFormat=Wl;var Vl,ql="FillFormat",zl=(Vl=OfficeExtension.ClientObject,__extends(Kl,Vl),Object.defineProperty(Kl.prototype,"_className",{get:function(){return"FillFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","gradientAngle","gradientColorType","gradientDegree","gradientStyle","gradientVariant","pattern","presetGradientType","presetTexture","rotateWithObject","textureAlignment","textureHorizontalScale","textureName","textureOffsetX","textureOffsetY","textureTile","textureType","textureVerticalScale","transparency","type","isVisible"]},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","GradientAngle","GradientColorType","GradientDegree","GradientStyle","GradientVariant","Pattern","PresetGradientType","PresetTexture","RotateWithObject","TextureAlignment","TextureHorizontalScale","TextureName","TextureOffsetX","TextureOffsetY","TextureTile","TextureType","TextureVerticalScale","Transparency","Type","IsVisible"]},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!1,!1,!1,!1,!1,!1,!1,!0,!0,!0,!1,!0,!0,!0,!1,!0,!0,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"_navigationPropertyNames",{get:function(){return["backgroundColor","foregroundColor"]},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"backgroundColor",{get:function(){return this._B||(this._B=t(a.ColorFormat,this,"BackgroundColor",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"foregroundColor",{get:function(){return this._F||(this._F=t(a.ColorFormat,this,"ForegroundColor",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"gradientAngle",{get:function(){return _("gradientAngle",this._G,ql,this._isNull),this._G},set:function(e){this._G=e,g(this,"GradientAngle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"gradientColorType",{get:function(){return _("gradientColorType",this._Gr,ql,this._isNull),this._Gr},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"gradientDegree",{get:function(){return _("gradientDegree",this._Gra,ql,this._isNull),this._Gra},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"gradientStyle",{get:function(){return _("gradientStyle",this._Grad,ql,this._isNull),this._Grad},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"gradientVariant",{get:function(){return _("gradientVariant",this._Gradi,ql,this._isNull),this._Gradi},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"isVisible",{get:function(){return _("isVisible",this._I,ql,this._isNull),this._I},set:function(e){this._I=e,g(this,"IsVisible",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"pattern",{get:function(){return _("pattern",this._P,ql,this._isNull),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"presetGradientType",{get:function(){return _("presetGradientType",this._Pr,ql,this._isNull),this._Pr},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"presetTexture",{get:function(){return _("presetTexture",this._Pre,ql,this._isNull),this._Pre},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"rotateWithObject",{get:function(){return _("rotateWithObject",this._R,ql,this._isNull),this._R},set:function(e){this._R=e,g(this,"RotateWithObject",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"textureAlignment",{get:function(){return _("textureAlignment",this._T,ql,this._isNull),this._T},set:function(e){this._T=e,g(this,"TextureAlignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"textureHorizontalScale",{get:function(){return _("textureHorizontalScale",this._Te,ql,this._isNull),this._Te},set:function(e){this._Te=e,g(this,"TextureHorizontalScale",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"textureName",{get:function(){return _("textureName",this._Tex,ql,this._isNull),this._Tex},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"textureOffsetX",{get:function(){return _("textureOffsetX",this._Text,ql,this._isNull),this._Text},set:function(e){this._Text=e,g(this,"TextureOffsetX",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"textureOffsetY",{get:function(){return _("textureOffsetY",this._Textu,ql,this._isNull),this._Textu},set:function(e){this._Textu=e,g(this,"TextureOffsetY",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"textureTile",{get:function(){return _("textureTile",this._Textur,ql,this._isNull),this._Textur},set:function(e){this._Textur=e,g(this,"TextureTile",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"textureType",{get:function(){return _("textureType",this._Texture,ql,this._isNull),this._Texture},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"textureVerticalScale",{get:function(){return _("textureVerticalScale",this._TextureV,ql,this._isNull),this._TextureV},set:function(e){this._TextureV=e,g(this,"TextureVerticalScale",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"transparency",{get:function(){return _("transparency",this._Tr,ql,this._isNull),this._Tr},set:function(e){this._Tr=e,g(this,"Transparency",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"type",{get:function(){return _("type",this._Ty,ql,this._isNull),this._Ty},enumerable:!0,configurable:!0}),Object.defineProperty(Kl.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,ql,this._isNull),this.__R},enumerable:!0,configurable:!0}),Kl.prototype.set=function(e,t){this._recursivelySet(e,t,["gradientAngle","rotateWithObject","textureAlignment","textureHorizontalScale","textureOffsetX","textureOffsetY","textureTile","textureVerticalScale","transparency","isVisible"],["backgroundColor","foregroundColor"],[])},Kl.prototype.update=function(e){this._recursivelyUpdate(e)},Kl.prototype.setOneColorGradient=function(e,t,n){d(this,"SetOneColorGradient",0,[e,t,n],0,0)},Kl.prototype.setPatterned=function(e){d(this,"SetPatterned",0,[e],0,0)},Kl.prototype.setPresetGradient=function(e,t,n){d(this,"SetPresetGradient",0,[e,t,n],0,0)},Kl.prototype.setPresetTextured=function(e){d(this,"SetPresetTextured",0,[e],0,0)},Kl.prototype.setTwoColorGradient=function(e,t){d(this,"SetTwoColorGradient",0,[e,t],0,0)},Kl.prototype.solid=function(){d(this,"Solid",0,[],0,0)},Kl.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Kl.prototype._handleResult=function(e){if(Vl.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.GradientAngle)||(this._G=t.GradientAngle),m(t.GradientColorType)||(this._Gr=t.GradientColorType),m(t.GradientDegree)||(this._Gra=t.GradientDegree),m(t.GradientStyle)||(this._Grad=t.GradientStyle),m(t.GradientVariant)||(this._Gradi=t.GradientVariant),m(t.IsVisible)||(this._I=t.IsVisible),m(t.Pattern)||(this._P=t.Pattern),m(t.PresetGradientType)||(this._Pr=t.PresetGradientType),m(t.PresetTexture)||(this._Pre=t.PresetTexture),m(t.RotateWithObject)||(this._R=t.RotateWithObject),m(t.TextureAlignment)||(this._T=t.TextureAlignment),m(t.TextureHorizontalScale)||(this._Te=t.TextureHorizontalScale),m(t.TextureName)||(this._Tex=t.TextureName),m(t.TextureOffsetX)||(this._Text=t.TextureOffsetX),m(t.TextureOffsetY)||(this._Textu=t.TextureOffsetY),m(t.TextureTile)||(this._Textur=t.TextureTile),m(t.TextureType)||(this._Texture=t.TextureType),m(t.TextureVerticalScale)||(this._TextureV=t.TextureVerticalScale),m(t.Transparency)||(this._Tr=t.Transparency),m(t.Type)||(this._Ty=t.Type),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["backgroundColor","BackgroundColor","foregroundColor","ForegroundColor"])}},Kl.prototype.load=function(e){return v(this,e)},Kl.prototype.retrieve=function(e){return O(this,e)},Kl.prototype._handleIdResult=function(e){Vl.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Kl.prototype._handleRetrieveResult=function(e,t){Vl.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Kl.prototype.track=function(){return this.context.trackedObjects.add(this),this},Kl.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Kl.prototype.toJSON=function(){return C(this,{gradientAngle:this._G,gradientColorType:this._Gr,gradientDegree:this._Gra,gradientStyle:this._Grad,gradientVariant:this._Gradi,isVisible:this._I,pattern:this._P,presetGradientType:this._Pr,presetTexture:this._Pre,rotateWithObject:this._R,textureAlignment:this._T,textureHorizontalScale:this._Te,textureName:this._Tex,textureOffsetX:this._Text,textureOffsetY:this._Textu,textureTile:this._Textur,textureType:this._Texture,textureVerticalScale:this._TextureV,transparency:this._Tr,type:this._Ty},{backgroundColor:this._B,foregroundColor:this._F})},Kl.prototype.setMockData=function(e){T(this,e)},Kl.prototype.ensureUnchanged=function(e){h(this,e)},Kl);function Kl(){return null!==Vl&&Vl.apply(this,arguments)||this}a.FillFormat=zl;var Jl,Xl="GlowFormat",Ql=(Jl=OfficeExtension.ClientObject,__extends(Yl,Jl),Object.defineProperty(Yl.prototype,"_className",{get:function(){return"GlowFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(Yl.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","radius","transparency"]},enumerable:!0,configurable:!0}),Object.defineProperty(Yl.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Radius","Transparency"]},enumerable:!0,configurable:!0}),Object.defineProperty(Yl.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Yl.prototype,"_navigationPropertyNames",{get:function(){return["color"]},enumerable:!0,configurable:!0}),Object.defineProperty(Yl.prototype,"color",{get:function(){return this._C||(this._C=t(a.ColorFormat,this,"Color",!1,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(Yl.prototype,"radius",{get:function(){return _("radius",this._R,Xl,this._isNull),this._R},set:function(e){this._R=e,g(this,"Radius",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Yl.prototype,"transparency",{get:function(){return _("transparency",this._T,Xl,this._isNull),this._T},set:function(e){this._T=e,g(this,"Transparency",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Yl.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Xl,this._isNull),this.__R},enumerable:!0,configurable:!0}),Yl.prototype.set=function(e,t){this._recursivelySet(e,t,["radius","transparency"],["color"],[])},Yl.prototype.update=function(e){this._recursivelyUpdate(e)},Yl.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Yl.prototype._handleResult=function(e){if(Jl.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Radius)||(this._R=t.Radius),m(t.Transparency)||(this._T=t.Transparency),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["color","Color"])}},Yl.prototype.load=function(e){return v(this,e)},Yl.prototype.retrieve=function(e){return O(this,e)},Yl.prototype._handleIdResult=function(e){Jl.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Yl.prototype._handleRetrieveResult=function(e,t){Jl.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Yl.prototype.track=function(){return this.context.trackedObjects.add(this),this},Yl.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Yl.prototype.toJSON=function(){return C(this,{radius:this._R,transparency:this._T},{color:this._C})},Yl.prototype.setMockData=function(e){T(this,e)},Yl.prototype.ensureUnchanged=function(e){h(this,e)},Yl);function Yl(){return null!==Jl&&Jl.apply(this,arguments)||this}a.GlowFormat=Ql;var Zl,$l="LineFormat",eu=(Zl=OfficeExtension.ClientObject,__extends(tu,Zl),Object.defineProperty(tu.prototype,"_className",{get:function(){return"LineFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(tu.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","beginArrowheadLength","beginArrowheadStyle","beginArrowheadWidth","dashStyle","endArrowheadLength","endArrowheadStyle","endArrowheadWidth","insetPen","pattern","style","transparency","isVisible","weight"]},enumerable:!0,configurable:!0}),Object.defineProperty(tu.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","BeginArrowheadLength","BeginArrowheadStyle","BeginArrowheadWidth","DashStyle","EndArrowheadLength","EndArrowheadStyle","EndArrowheadWidth","InsetPen","Pattern","Style","Transparency","IsVisible","Weight"]},enumerable:!0,configurable:!0}),Object.defineProperty(tu.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(tu.prototype,"_navigationPropertyNames",{get:function(){return["backgroundColor","foregroundColor"]},enumerable:!0,configurable:!0}),Object.defineProperty(tu.prototype,"backgroundColor",{get:function(){return this._B||(this._B=t(a.ColorFormat,this,"BackgroundColor",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(tu.prototype,"foregroundColor",{get:function(){return this._F||(this._F=t(a.ColorFormat,this,"ForegroundColor",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(tu.prototype,"beginArrowheadLength",{get:function(){return _("beginArrowheadLength",this._Be,$l,this._isNull),this._Be},set:function(e){this._Be=e,g(this,"BeginArrowheadLength",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(tu.prototype,"beginArrowheadStyle",{get:function(){return _("beginArrowheadStyle",this._Beg,$l,this._isNull),this._Beg},set:function(e){this._Beg=e,g(this,"BeginArrowheadStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(tu.prototype,"beginArrowheadWidth",{get:function(){return _("beginArrowheadWidth",this._Begi,$l,this._isNull),this._Begi},set:function(e){this._Begi=e,g(this,"BeginArrowheadWidth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(tu.prototype,"dashStyle",{get:function(){return _("dashStyle",this._D,$l,this._isNull),this._D},set:function(e){this._D=e,g(this,"DashStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(tu.prototype,"endArrowheadLength",{get:function(){return _("endArrowheadLength",this._E,$l,this._isNull),this._E},set:function(e){this._E=e,g(this,"EndArrowheadLength",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(tu.prototype,"endArrowheadStyle",{get:function(){return _("endArrowheadStyle",this._En,$l,this._isNull),this._En},set:function(e){this._En=e,g(this,"EndArrowheadStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(tu.prototype,"endArrowheadWidth",{get:function(){return _("endArrowheadWidth",this._End,$l,this._isNull),this._End},set:function(e){this._End=e,g(this,"EndArrowheadWidth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(tu.prototype,"insetPen",{get:function(){return _("insetPen",this._I,$l,this._isNull),this._I},set:function(e){this._I=e,g(this,"InsetPen",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(tu.prototype,"isVisible",{get:function(){return _("isVisible",this._Is,$l,this._isNull),this._Is},set:function(e){this._Is=e,g(this,"IsVisible",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(tu.prototype,"pattern",{get:function(){return _("pattern",this._P,$l,this._isNull),this._P},set:function(e){this._P=e,g(this,"Pattern",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(tu.prototype,"style",{get:function(){return _("style",this._S,$l,this._isNull),this._S},set:function(e){this._S=e,g(this,"Style",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(tu.prototype,"transparency",{get:function(){return _("transparency",this._T,$l,this._isNull),this._T},set:function(e){this._T=e,g(this,"Transparency",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(tu.prototype,"weight",{get:function(){return _("weight",this._W,$l,this._isNull),this._W},set:function(e){this._W=e,g(this,"Weight",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(tu.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,$l,this._isNull),this.__R},enumerable:!0,configurable:!0}),tu.prototype.set=function(e,t){this._recursivelySet(e,t,["beginArrowheadLength","beginArrowheadStyle","beginArrowheadWidth","dashStyle","endArrowheadLength","endArrowheadStyle","endArrowheadWidth","insetPen","pattern","style","transparency","isVisible","weight"],["backgroundColor","foregroundColor"],[])},tu.prototype.update=function(e){this._recursivelyUpdate(e)},tu.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},tu.prototype._handleResult=function(e){if(Zl.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.BeginArrowheadLength)||(this._Be=t.BeginArrowheadLength),m(t.BeginArrowheadStyle)||(this._Beg=t.BeginArrowheadStyle),m(t.BeginArrowheadWidth)||(this._Begi=t.BeginArrowheadWidth),m(t.DashStyle)||(this._D=t.DashStyle),m(t.EndArrowheadLength)||(this._E=t.EndArrowheadLength),m(t.EndArrowheadStyle)||(this._En=t.EndArrowheadStyle),m(t.EndArrowheadWidth)||(this._End=t.EndArrowheadWidth),m(t.InsetPen)||(this._I=t.InsetPen),m(t.IsVisible)||(this._Is=t.IsVisible),m(t.Pattern)||(this._P=t.Pattern),m(t.Style)||(this._S=t.Style),m(t.Transparency)||(this._T=t.Transparency),m(t.Weight)||(this._W=t.Weight),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["backgroundColor","BackgroundColor","foregroundColor","ForegroundColor"])}},tu.prototype.load=function(e){return v(this,e)},tu.prototype.retrieve=function(e){return O(this,e)},tu.prototype._handleIdResult=function(e){Zl.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},tu.prototype._handleRetrieveResult=function(e,t){Zl.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},tu.prototype.track=function(){return this.context.trackedObjects.add(this),this},tu.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},tu.prototype.toJSON=function(){return C(this,{beginArrowheadLength:this._Be,beginArrowheadStyle:this._Beg,beginArrowheadWidth:this._Begi,dashStyle:this._D,endArrowheadLength:this._E,endArrowheadStyle:this._En,endArrowheadWidth:this._End,insetPen:this._I,isVisible:this._Is,pattern:this._P,style:this._S,transparency:this._T,weight:this._W},{backgroundColor:this._B,foregroundColor:this._F})},tu.prototype.setMockData=function(e){T(this,e)},tu.prototype.ensureUnchanged=function(e){h(this,e)},tu);function tu(){return null!==Zl&&Zl.apply(this,arguments)||this}a.LineFormat=eu;var nu,ru="ReflectionFormat",iu=(nu=OfficeExtension.ClientObject,__extends(ou,nu),Object.defineProperty(ou.prototype,"_className",{get:function(){return"ReflectionFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(ou.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","blur","offset","size","transparency","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(ou.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Blur","Offset","Size","Transparency","Type"]},enumerable:!0,configurable:!0}),Object.defineProperty(ou.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(ou.prototype,"blur",{get:function(){return _("blur",this._B,ru,this._isNull),this._B},set:function(e){this._B=e,g(this,"Blur",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ou.prototype,"offset",{get:function(){return _("offset",this._O,ru,this._isNull),this._O},set:function(e){this._O=e,g(this,"Offset",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ou.prototype,"size",{get:function(){return _("size",this._S,ru,this._isNull),this._S},set:function(e){this._S=e,g(this,"Size",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ou.prototype,"transparency",{get:function(){return _("transparency",this._T,ru,this._isNull),this._T},set:function(e){this._T=e,g(this,"Transparency",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ou.prototype,"type",{get:function(){return _("type",this._Ty,ru,this._isNull),this._Ty},set:function(e){this._Ty=e,g(this,"Type",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ou.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,ru,this._isNull),this.__R},enumerable:!0,configurable:!0}),ou.prototype.set=function(e,t){this._recursivelySet(e,t,["blur","offset","size","transparency","type"],[],[])},ou.prototype.update=function(e){this._recursivelyUpdate(e)},ou.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},ou.prototype._handleResult=function(e){if(nu.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Blur)||(this._B=t.Blur),m(t.Offset)||(this._O=t.Offset),m(t.Size)||(this._S=t.Size),m(t.Transparency)||(this._T=t.Transparency),m(t.Type)||(this._Ty=t.Type),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},ou.prototype.load=function(e){return v(this,e)},ou.prototype.retrieve=function(e){return O(this,e)},ou.prototype._handleIdResult=function(e){nu.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},ou.prototype._handleRetrieveResult=function(e,t){nu.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},ou.prototype.track=function(){return this.context.trackedObjects.add(this),this},ou.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ou.prototype.toJSON=function(){return C(this,{blur:this._B,offset:this._O,size:this._S,transparency:this._T,type:this._Ty},{})},ou.prototype.setMockData=function(e){T(this,e)},ou.prototype.ensureUnchanged=function(e){h(this,e)},ou);function ou(){return null!==nu&&nu.apply(this,arguments)||this}a.ReflectionFormat=iu;var au,su="ColorFormat",cu=(au=OfficeExtension.ClientObject,__extends(lu,au),Object.defineProperty(lu.prototype,"_className",{get:function(){return"ColorFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(lu.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","brightness","objectThemeColor","rgb","tintAndShade","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(lu.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Brightness","ObjectThemeColor","Rgb","TintAndShade","Type"]},enumerable:!0,configurable:!0}),Object.defineProperty(lu.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(lu.prototype,"brightness",{get:function(){return _("brightness",this._B,su,this._isNull),this._B},set:function(e){this._B=e,g(this,"Brightness",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(lu.prototype,"objectThemeColor",{get:function(){return _("objectThemeColor",this._O,su,this._isNull),this._O},set:function(e){this._O=e,g(this,"ObjectThemeColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(lu.prototype,"rgb",{get:function(){return _("rgb",this._R,su,this._isNull),this._R},set:function(e){this._R=e,g(this,"Rgb",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(lu.prototype,"tintAndShade",{get:function(){return _("tintAndShade",this._T,su,this._isNull),this._T},set:function(e){this._T=e,g(this,"TintAndShade",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(lu.prototype,"type",{get:function(){return _("type",this._Ty,su,this._isNull),this._Ty},enumerable:!0,configurable:!0}),Object.defineProperty(lu.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,su,this._isNull),this.__R},enumerable:!0,configurable:!0}),lu.prototype.set=function(e,t){this._recursivelySet(e,t,["brightness","objectThemeColor","rgb","tintAndShade"],[],[])},lu.prototype.update=function(e){this._recursivelyUpdate(e)},lu.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},lu.prototype._handleResult=function(e){if(au.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Brightness)||(this._B=t.Brightness),m(t.ObjectThemeColor)||(this._O=t.ObjectThemeColor),m(t.Rgb)||(this._R=t.Rgb),m(t.TintAndShade)||(this._T=t.TintAndShade),m(t.Type)||(this._Ty=t.Type),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},lu.prototype.load=function(e){return v(this,e)},lu.prototype.retrieve=function(e){return O(this,e)},lu.prototype._handleIdResult=function(e){au.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},lu.prototype._handleRetrieveResult=function(e,t){au.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},lu.prototype.track=function(){return this.context.trackedObjects.add(this),this},lu.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},lu.prototype.toJSON=function(){return C(this,{brightness:this._B,objectThemeColor:this._O,rgb:this._R,tintAndShade:this._T,type:this._Ty},{})},lu.prototype.setMockData=function(e){T(this,e)},lu.prototype.ensureUnchanged=function(e){h(this,e)},lu);function lu(){return null!==au&&au.apply(this,arguments)||this}a.ColorFormat=cu;var uu,pu="ShadowFormat",fu=(uu=OfficeExtension.ClientObject,__extends(du,uu),Object.defineProperty(du.prototype,"_className",{get:function(){return"ShadowFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(du.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","blur","obscured","offsetX","offsetY","rotateWithShape","size","style","transparency","type","isVisible"]},enumerable:!0,configurable:!0}),Object.defineProperty(du.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Blur","Obscured","OffsetX","OffsetY","RotateWithShape","Size","Style","Transparency","Type","IsVisible"]},enumerable:!0,configurable:!0}),Object.defineProperty(du.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(du.prototype,"_navigationPropertyNames",{get:function(){return["foregroundColor"]},enumerable:!0,configurable:!0}),Object.defineProperty(du.prototype,"foregroundColor",{get:function(){return this._F||(this._F=t(a.ColorFormat,this,"ForegroundColor",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(du.prototype,"blur",{get:function(){return _("blur",this._B,pu,this._isNull),this._B},set:function(e){this._B=e,g(this,"Blur",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(du.prototype,"isVisible",{get:function(){return _("isVisible",this._I,pu,this._isNull),this._I},set:function(e){this._I=e,g(this,"IsVisible",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(du.prototype,"obscured",{get:function(){return _("obscured",this._O,pu,this._isNull),this._O},set:function(e){this._O=e,g(this,"Obscured",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(du.prototype,"offsetX",{get:function(){return _("offsetX",this._Of,pu,this._isNull),this._Of},set:function(e){this._Of=e,g(this,"OffsetX",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(du.prototype,"offsetY",{get:function(){return _("offsetY",this._Off,pu,this._isNull),this._Off},set:function(e){this._Off=e,g(this,"OffsetY",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(du.prototype,"rotateWithShape",{get:function(){return _("rotateWithShape",this._R,pu,this._isNull),this._R},set:function(e){this._R=e,g(this,"RotateWithShape",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(du.prototype,"size",{get:function(){return _("size",this._S,pu,this._isNull),this._S},set:function(e){this._S=e,g(this,"Size",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(du.prototype,"style",{get:function(){return _("style",this._St,pu,this._isNull),this._St},set:function(e){this._St=e,g(this,"Style",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(du.prototype,"transparency",{get:function(){return _("transparency",this._T,pu,this._isNull),this._T},set:function(e){this._T=e,g(this,"Transparency",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(du.prototype,"type",{get:function(){return _("type",this._Ty,pu,this._isNull),this._Ty},set:function(e){this._Ty=e,g(this,"Type",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(du.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,pu,this._isNull),this.__R},enumerable:!0,configurable:!0}),du.prototype.set=function(e,t){this._recursivelySet(e,t,["blur","obscured","offsetX","offsetY","rotateWithShape","size","style","transparency","type","isVisible"],["foregroundColor"],[])},du.prototype.update=function(e){this._recursivelyUpdate(e)},du.prototype.incrementOffsetX=function(e){d(this,"IncrementOffsetX",0,[e],0,0)},du.prototype.incrementOffsetY=function(e){d(this,"IncrementOffsetY",0,[e],0,0)},du.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},du.prototype._handleResult=function(e){if(uu.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.Blur)||(this._B=t.Blur),m(t.IsVisible)||(this._I=t.IsVisible),m(t.Obscured)||(this._O=t.Obscured),m(t.OffsetX)||(this._Of=t.OffsetX),m(t.OffsetY)||(this._Off=t.OffsetY),m(t.RotateWithShape)||(this._R=t.RotateWithShape),m(t.Size)||(this._S=t.Size),m(t.Style)||(this._St=t.Style),m(t.Transparency)||(this._T=t.Transparency),m(t.Type)||(this._Ty=t.Type),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["foregroundColor","ForegroundColor"])}},du.prototype.load=function(e){return v(this,e)},du.prototype.retrieve=function(e){return O(this,e)},du.prototype._handleIdResult=function(e){uu.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},du.prototype._handleRetrieveResult=function(e,t){uu.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},du.prototype.track=function(){return this.context.trackedObjects.add(this),this},du.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},du.prototype.toJSON=function(){return C(this,{blur:this._B,isVisible:this._I,obscured:this._O,offsetX:this._Of,offsetY:this._Off,rotateWithShape:this._R,size:this._S,style:this._St,transparency:this._T,type:this._Ty},{foregroundColor:this._F})},du.prototype.setMockData=function(e){T(this,e)},du.prototype.ensureUnchanged=function(e){h(this,e)},du);function du(){return null!==uu&&uu.apply(this,arguments)||this}a.ShadowFormat=fu;var hu,gu,yu,mu,_u,bu,vu,Ou,Cu,Pu,Ru,Su,Iu,Tu,Au,Nu,xu,Eu,Du,ju,wu,ku,Fu,Lu,Mu,Bu,Hu,Uu,Wu,Gu,Vu,qu,zu,Ku,Ju,Xu,Qu,Yu,Zu,$u,ep="ThreeDimensionalFormat",tp=(hu=OfficeExtension.ClientObject,__extends(np,hu),Object.defineProperty(np.prototype,"_className",{get:function(){return"ThreeDimensionalFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","bevelBottomDepth","bevelBottomInset","bevelBottomType","bevelTopDepth","bevelTopInset","bevelTopType","contourWidth","depth","extrusionColorType","fieldOfView","lightAngle","isPerspective","presetCamera","presetExtrusionDirection","presetLighting","presetLightingDirection","presetLightingSoftness","presetMaterial","presetThreeDimensionalFormat","projectText","rotationX","rotationY","rotationZ","isVisible","z"]},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","BevelBottomDepth","BevelBottomInset","BevelBottomType","BevelTopDepth","BevelTopInset","BevelTopType","ContourWidth","Depth","ExtrusionColorType","FieldOfView","LightAngle","IsPerspective","PresetCamera","PresetExtrusionDirection","PresetLighting","PresetLightingDirection","PresetLightingSoftness","PresetMaterial","PresetThreeDimensionalFormat","ProjectText","RotationX","RotationY","RotationZ","IsVisible","Z"]},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!1,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"_navigationPropertyNames",{get:function(){return["contourColor","extrusionColor"]},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"contourColor",{get:function(){return this._C||(this._C=t(a.ColorFormat,this,"ContourColor",!1,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"extrusionColor",{get:function(){return this._E||(this._E=t(a.ColorFormat,this,"ExtrusionColor",!1,4)),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"bevelBottomDepth",{get:function(){return _("bevelBottomDepth",this._B,ep,this._isNull),this._B},set:function(e){this._B=e,g(this,"BevelBottomDepth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"bevelBottomInset",{get:function(){return _("bevelBottomInset",this._Be,ep,this._isNull),this._Be},set:function(e){this._Be=e,g(this,"BevelBottomInset",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"bevelBottomType",{get:function(){return _("bevelBottomType",this._Bev,ep,this._isNull),this._Bev},set:function(e){this._Bev=e,g(this,"BevelBottomType",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"bevelTopDepth",{get:function(){return _("bevelTopDepth",this._Beve,ep,this._isNull),this._Beve},set:function(e){this._Beve=e,g(this,"BevelTopDepth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"bevelTopInset",{get:function(){return _("bevelTopInset",this._Bevel,ep,this._isNull),this._Bevel},set:function(e){this._Bevel=e,g(this,"BevelTopInset",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"bevelTopType",{get:function(){return _("bevelTopType",this._BevelT,ep,this._isNull),this._BevelT},set:function(e){this._BevelT=e,g(this,"BevelTopType",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"contourWidth",{get:function(){return _("contourWidth",this._Co,ep,this._isNull),this._Co},set:function(e){this._Co=e,g(this,"ContourWidth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"depth",{get:function(){return _("depth",this._D,ep,this._isNull),this._D},set:function(e){this._D=e,g(this,"Depth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"extrusionColorType",{get:function(){return _("extrusionColorType",this._Ex,ep,this._isNull),this._Ex},set:function(e){this._Ex=e,g(this,"ExtrusionColorType",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"fieldOfView",{get:function(){return _("fieldOfView",this._F,ep,this._isNull),this._F},set:function(e){this._F=e,g(this,"FieldOfView",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"isPerspective",{get:function(){return _("isPerspective",this._I,ep,this._isNull),this._I},set:function(e){this._I=e,g(this,"IsPerspective",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"isVisible",{get:function(){return _("isVisible",this._Is,ep,this._isNull),this._Is},set:function(e){this._Is=e,g(this,"IsVisible",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"lightAngle",{get:function(){return _("lightAngle",this._L,ep,this._isNull),this._L},set:function(e){this._L=e,g(this,"LightAngle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"presetCamera",{get:function(){return _("presetCamera",this._P,ep,this._isNull),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"presetExtrusionDirection",{get:function(){return _("presetExtrusionDirection",this._Pr,ep,this._isNull),this._Pr},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"presetLighting",{get:function(){return _("presetLighting",this._Pre,ep,this._isNull),this._Pre},set:function(e){this._Pre=e,g(this,"PresetLighting",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"presetLightingDirection",{get:function(){return _("presetLightingDirection",this._Pres,ep,this._isNull),this._Pres},set:function(e){this._Pres=e,g(this,"PresetLightingDirection",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"presetLightingSoftness",{get:function(){return _("presetLightingSoftness",this._Prese,ep,this._isNull),this._Prese},set:function(e){this._Prese=e,g(this,"PresetLightingSoftness",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"presetMaterial",{get:function(){return _("presetMaterial",this._Preset,ep,this._isNull),this._Preset},set:function(e){this._Preset=e,g(this,"PresetMaterial",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"presetThreeDimensionalFormat",{get:function(){return _("presetThreeDimensionalFormat",this._PresetT,ep,this._isNull),this._PresetT},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"projectText",{get:function(){return _("projectText",this._Pro,ep,this._isNull),this._Pro},set:function(e){this._Pro=e,g(this,"ProjectText",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"rotationX",{get:function(){return _("rotationX",this._R,ep,this._isNull),this._R},set:function(e){this._R=e,g(this,"RotationX",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"rotationY",{get:function(){return _("rotationY",this._Ro,ep,this._isNull),this._Ro},set:function(e){this._Ro=e,g(this,"RotationY",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"rotationZ",{get:function(){return _("rotationZ",this._Rot,ep,this._isNull),this._Rot},set:function(e){this._Rot=e,g(this,"RotationZ",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"z",{get:function(){return _("z",this._Z,ep,this._isNull),this._Z},set:function(e){this._Z=e,g(this,"Z",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(np.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,ep,this._isNull),this.__R},enumerable:!0,configurable:!0}),np.prototype.set=function(e,t){this._recursivelySet(e,t,["bevelBottomDepth","bevelBottomInset","bevelBottomType","bevelTopDepth","bevelTopInset","bevelTopType","contourWidth","depth","extrusionColorType","fieldOfView","lightAngle","isPerspective","presetLighting","presetLightingDirection","presetLightingSoftness","presetMaterial","projectText","rotationX","rotationY","rotationZ","isVisible","z"],["contourColor","extrusionColor"],[])},np.prototype.update=function(e){this._recursivelyUpdate(e)},np.prototype.incrementRotationHorizontal=function(e){d(this,"IncrementRotationHorizontal",0,[e],0,0)},np.prototype.incrementRotationVertical=function(e){d(this,"IncrementRotationVertical",0,[e],0,0)},np.prototype.incrementRotationX=function(e){d(this,"IncrementRotationX",0,[e],0,0)},np.prototype.incrementRotationY=function(e){d(this,"IncrementRotationY",0,[e],0,0)},np.prototype.incrementRotationZ=function(e){d(this,"IncrementRotationZ",0,[e],0,0)},np.prototype.resetRotation=function(){d(this,"ResetRotation",0,[],0,0)},np.prototype.setExtrusionDirection=function(e){d(this,"SetExtrusionDirection",0,[e],0,0)},np.prototype.setPresetCamera=function(e){d(this,"SetPresetCamera",0,[e],0,0)},np.prototype.setThreeDimensionalFormat=function(e){d(this,"SetThreeDimensionalFormat",0,[e],0,0)},np.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},np.prototype._handleResult=function(e){if(hu.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.BevelBottomDepth)||(this._B=t.BevelBottomDepth),m(t.BevelBottomInset)||(this._Be=t.BevelBottomInset),m(t.BevelBottomType)||(this._Bev=t.BevelBottomType),m(t.BevelTopDepth)||(this._Beve=t.BevelTopDepth),m(t.BevelTopInset)||(this._Bevel=t.BevelTopInset),m(t.BevelTopType)||(this._BevelT=t.BevelTopType),m(t.ContourWidth)||(this._Co=t.ContourWidth),m(t.Depth)||(this._D=t.Depth),m(t.ExtrusionColorType)||(this._Ex=t.ExtrusionColorType),m(t.FieldOfView)||(this._F=t.FieldOfView),m(t.IsPerspective)||(this._I=t.IsPerspective),m(t.IsVisible)||(this._Is=t.IsVisible),m(t.LightAngle)||(this._L=t.LightAngle),m(t.PresetCamera)||(this._P=t.PresetCamera),m(t.PresetExtrusionDirection)||(this._Pr=t.PresetExtrusionDirection),m(t.PresetLighting)||(this._Pre=t.PresetLighting),m(t.PresetLightingDirection)||(this._Pres=t.PresetLightingDirection),m(t.PresetLightingSoftness)||(this._Prese=t.PresetLightingSoftness),m(t.PresetMaterial)||(this._Preset=t.PresetMaterial),m(t.PresetThreeDimensionalFormat)||(this._PresetT=t.PresetThreeDimensionalFormat),m(t.ProjectText)||(this._Pro=t.ProjectText),m(t.RotationX)||(this._R=t.RotationX),m(t.RotationY)||(this._Ro=t.RotationY),m(t.RotationZ)||(this._Rot=t.RotationZ),m(t.Z)||(this._Z=t.Z),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["contourColor","ContourColor","extrusionColor","ExtrusionColor"])}},np.prototype.load=function(e){return v(this,e)},np.prototype.retrieve=function(e){return O(this,e)},np.prototype._handleIdResult=function(e){hu.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},np.prototype._handleRetrieveResult=function(e,t){hu.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},np.prototype.track=function(){return this.context.trackedObjects.add(this),this},np.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},np.prototype.toJSON=function(){return C(this,{bevelBottomDepth:this._B,bevelBottomInset:this._Be,bevelBottomType:this._Bev,bevelTopDepth:this._Beve,bevelTopInset:this._Bevel,bevelTopType:this._BevelT,contourWidth:this._Co,depth:this._D,extrusionColorType:this._Ex,fieldOfView:this._F,isPerspective:this._I,isVisible:this._Is,lightAngle:this._L,presetCamera:this._P,presetExtrusionDirection:this._Pr,presetLighting:this._Pre,presetLightingDirection:this._Pres,presetLightingSoftness:this._Prese,presetMaterial:this._Preset,presetThreeDimensionalFormat:this._PresetT,projectText:this._Pro,rotationX:this._R,rotationY:this._Ro,rotationZ:this._Rot,z:this._Z},{contourColor:this._C,extrusionColor:this._E})},np.prototype.setMockData=function(e){T(this,e)},np.prototype.ensureUnchanged=function(e){h(this,e)},np);function np(){return null!==hu&&hu.apply(this,arguments)||this}a.ThreeDimensionalFormat=tp,(gu=a.ArrowheadLength||(a.ArrowheadLength={})).mixed="Mixed",gu.short="Short",gu.medium="Medium",gu.long="Long",(yu=a.ArrowheadStyle||(a.ArrowheadStyle={})).mixed="Mixed",yu.none="None",yu.triangle="Triangle",yu.open="Open",yu.stealth="Stealth",yu.diamond="Diamond",yu.oval="Oval",(mu=a.ArrowheadWidth||(a.ArrowheadWidth={})).mixed="Mixed",mu.narrow="Narrow",mu.medium="Medium",mu.wide="Wide",(_u=a.BevelType||(a.BevelType={})).mixed="mixed",_u.none="none",_u.relaxedInset="relaxedInset",_u.circle="circle",_u.slope="slope",_u.cross="cross",_u.angle="angle",_u.softRound="softRound",_u.convex="convex",_u.coolSlant="coolSlant",_u.divot="divot",_u.riblet="riblet",_u.hardEdge="hardEdge",_u.artDeco="artDeco",(bu=a.ColorIndex||(a.ColorIndex={})).auto="Auto",bu.black="Black",bu.blue="Blue",bu.turquoise="Turquoise",bu.brightGreen="BrightGreen",bu.pink="Pink",bu.red="Red",bu.yellow="Yellow",bu.white="White",bu.darkBlue="DarkBlue",bu.teal="Teal",bu.green="Green",bu.violet="Violet",bu.darkRed="DarkRed",bu.darkYellow="DarkYellow",bu.gray50="Gray50",bu.gray25="Gray25",bu.classicRed="ClassicRed",bu.classicBlue="ClassicBlue",bu.byAuthor="ByAuthor",(vu=a.ColorType||(a.ColorType={})).rgb="rgb",vu.scheme="scheme",(Ou=a.Continue||(a.Continue={})).disabled="Disabled",Ou.list="List",Ou.reset="Reset",(Cu=a.DefaultListBehavior||(a.DefaultListBehavior={})).word97="Word97",Cu.word2000="Word2000",Cu.word2002="Word2002",(Pu=a.EmphasisMark||(a.EmphasisMark={})).none="None",Pu.overSolidCircle="OverSolidCircle",Pu.overComma="OverComma",Pu.overWhiteCircle="OverWhiteCircle",Pu.underSolidCircle="UnderSolidCircle",(Ru=a.ExtrusionColorType||(a.ExtrusionColorType={})).mixed="mixed",Ru.automatic="automatic",Ru.custom="custom",(Su=a.FillType||(a.FillType={})).mixed="Mixed",Su.solid="Solid",Su.patterned="Patterned",Su.gradient="Gradient",Su.textured="Textured",Su.background="Background",Su.picture="Picture",(Iu=a.GradientColorType||(a.GradientColorType={})).mixed="Mixed",Iu.oneColor="OneColor",Iu.twoColors="TwoColors",Iu.presetColors="PresetColors",Iu.multiColor="MultiColor",(Tu=a.GradientStyle||(a.GradientStyle={})).mixed="Mixed",Tu.horizontal="Horizontal",Tu.vertical="Vertical",Tu.diagonalUp="DiagonalUp",Tu.diagonalDown="DiagonalDown",Tu.fromCorner="FromCorner",Tu.fromTitle="FromTitle",Tu.fromCenter="FromCenter",(Au=a.Ligature||(a.Ligature={})).none="None",Au.standard="Standard",Au.contextual="Contextual",Au.standardContextual="StandardContextual",Au.historical="Historical",Au.standardHistorical="StandardHistorical",Au.contextualHistorical="ContextualHistorical",Au.standardContextualHistorical="StandardContextualHistorical",Au.discretional="Discretional",Au.standardDiscretional="StandardDiscretional",Au.contextualDiscretional="ContextualDiscretional",Au.standardContextualDiscretional="StandardContextualDiscretional",Au.historicalDiscretional="HistoricalDiscretional",Au.standardHistoricalDiscretional="StandardHistoricalDiscretional",Au.contextualHistoricalDiscretional="ContextualHistoricalDiscretional",Au.all="All",(Nu=a.LightRigType||(a.LightRigType={})).mixed="Mixed",Nu.legacyFlat1="LegacyFlat1",Nu.legacyFlat2="LegacyFlat2",Nu.legacyFlat3="LegacyFlat3",Nu.legacyFlat4="LegacyFlat4",Nu.legacyNormal1="LegacyNormal1",Nu.legacyNormal2="LegacyNormal2",Nu.legacyNormal3="LegacyNormal3",Nu.legacyNormal4="LegacyNormal4",Nu.legacyHarsh1="LegacyHarsh1",Nu.legacyHarsh2="LegacyHarsh2",Nu.legacyHarsh3="LegacyHarsh3",Nu.legacyHarsh4="LegacyHarsh4",Nu.threePoint="ThreePoint",Nu.balanced="Balanced",Nu.soft="Soft",Nu.harsh="Harsh",Nu.flood="Flood",Nu.contrasting="Contrasting",Nu.morning="Morning",Nu.sunrise="Sunrise",Nu.sunset="Sunset",Nu.chilly="Chilly",Nu.freezing="Freezing",Nu.flat="Flat",Nu.twoPoint="TwoPoint",Nu.glow="Glow",Nu.brightRoom="BrightRoom",(xu=a.LineDashStyle||(a.LineDashStyle={})).mixed="Mixed",xu.solid="Solid",xu.squareDot="SquareDot",xu.roundDot="RoundDot",xu.dash="Dash",xu.dashDot="DashDot",xu.dashDotDot="DashDotDot",xu.longDash="LongDash",xu.longDashDot="LongDashDot",xu.longDashDotDot="LongDashDotDot",xu.sysDash="SysDash",xu.sysDot="SysDot",xu.sysDashDot="SysDashDot",(Eu=a.LineFormatStyle||(a.LineFormatStyle={})).mixed="Mixed",Eu.single="Single",Eu.thinThin="ThinThin",Eu.thinThick="ThinThick",Eu.thickThin="ThickThin",Eu.thickBetweenThin="ThickBetweenThin",(Du=a.ListApplyTo||(a.ListApplyTo={})).wholeList="WholeList",Du.thisPointForward="ThisPointForward",Du.selection="Selection",(ju=a.ListType||(a.ListType={})).listNoNumbering="ListNoNumbering",ju.listListNumOnly="ListListNumOnly",ju.listBullet="ListBullet",ju.listSimpleNumbering="ListSimpleNumbering",ju.listOutlineNumbering="ListOutlineNumbering",ju.listMixedNumbering="ListMixedNumbering",ju.listPictureBullet="ListPictureBullet",(wu=a.NumberForm||(a.NumberForm={})).default="Default",wu.lining="Lining",wu.oldStyle="OldStyle",(ku=a.NumberSpacing||(a.NumberSpacing={})).default="Default",ku.proportional="Proportional",ku.tabular="Tabular",(Fu=a.NumberType||(a.NumberType={})).paragraph="Paragraph",Fu.listNum="ListNum",Fu.allNumbers="AllNumbers",(Lu=a.PatternType||(a.PatternType={})).mixed="Mixed",Lu.percent5="Percent5",Lu.percent10="Percent10",Lu.percent20="Percent20",Lu.percent25="Percent25",Lu.percent30="Percent30",Lu.percent40="Percent40",Lu.percent50="Percent50",Lu.percent60="Percent60",Lu.percent70="Percent70",Lu.percent75="Percent75",Lu.percent80="Percent80",Lu.percent90="Percent90",Lu.darkHorizontal="DarkHorizontal",Lu.darkVertical="DarkVertical",Lu.darkDownwardDiagonal="DarkDownwardDiagonal",Lu.darkUpwardDiagonal="DarkUpwardDiagonal",Lu.smallCheckerBoard="SmallCheckerBoard",Lu.trellis="Trellis",Lu.lightHorizontal="LightHorizontal",Lu.lightVertical="LightVertical",Lu.lightDownwardDiagonal="LightDownwardDiagonal",Lu.lightUpwardDiagonal="LightUpwardDiagonal",Lu.smallGrid="SmallGrid",Lu.dottedDiamond="DottedDiamond",Lu.wideDownwardDiagonal="WideDownwardDiagonal",Lu.wideUpwardDiagonal="WideUpwardDiagonal",Lu.dashedUpwardDiagonal="DashedUpwardDiagonal",Lu.dashedDownwardDiagonal="DashedDownwardDiagonal",Lu.narrowVertical="NarrowVertical",Lu.narrowHorizontal="NarrowHorizontal",Lu.dashedVertical="DashedVertical",Lu.dashedHorizontal="DashedHorizontal",Lu.largeConfetti="LargeConfetti",Lu.largeGrid="LargeGrid",Lu.horizontalBrick="HorizontalBrick",Lu.largeCheckerBoard="LargeCheckerBoard",Lu.smallConfetti="SmallConfetti",Lu.zigZag="ZigZag",Lu.solidDiamond="SolidDiamond",Lu.diagonalBrick="DiagonalBrick",Lu.outlinedDiamond="OutlinedDiamond",Lu.plaid="Plaid",Lu.sphere="Sphere",Lu.weave="Weave",Lu.dottedGrid="DottedGrid",Lu.divot="Divot",Lu.shingle="Shingle",Lu.wave="Wave",Lu.horizontal="Horizontal",Lu.vertical="Vertical",Lu.cross="Cross",Lu.downwardDiagonal="DownwardDiagonal",Lu.upwardDiagonal="UpwardDiagonal",Lu.diagonalCross="DiagonalCross",(Mu=a.PresetCamera||(a.PresetCamera={})).mixed="Mixed",Mu.legacyObliqueTopLeft="LegacyObliqueTopLeft",Mu.legacyObliqueTop="LegacyObliqueTop",Mu.legacyObliqueTopRight="LegacyObliqueTopRight",Mu.legacyObliqueLeft="LegacyObliqueLeft",Mu.legacyObliqueFront="LegacyObliqueFront",Mu.legacyObliqueRight="LegacyObliqueRight",Mu.legacyObliqueBottomLeft="LegacyObliqueBottomLeft",Mu.legacyObliqueBottom="LegacyObliqueBottom",Mu.legacyObliqueBottomRight="LegacyObliqueBottomRight",Mu.legacyPerspectiveTopLeft="LegacyPerspectiveTopLeft",Mu.legacyPerspectiveTop="LegacyPerspectiveTop",Mu.legacyPerspectiveTopRight="LegacyPerspectiveTopRight",Mu.legacyPerspectiveLeft="LegacyPerspectiveLeft",Mu.legacyPerspectiveFront="LegacyPerspectiveFront",Mu.legacyPerspectiveRight="LegacyPerspectiveRight",Mu.legacyPerspectiveBottomLeft="LegacyPerspectiveBottomLeft",Mu.legacyPerspectiveBottom="LegacyPerspectiveBottom",Mu.legacyPerspectiveBottomRight="LegacyPerspectiveBottomRight",Mu.orthographicFront="OrthographicFront",Mu.isometricTopUp="IsometricTopUp",Mu.isometricTopDown="IsometricTopDown",Mu.isometricBottomUp="IsometricBottomUp",Mu.isometricBottomDown="IsometricBottomDown",Mu.isometricLeftUp="IsometricLeftUp",Mu.isometricLeftDown="IsometricLeftDown",Mu.isometricRightUp="IsometricRightUp",Mu.isometricRightDown="IsometricRightDown",Mu.isometricOffAxis1Left="IsometricOffAxis1Left",Mu.isometricOffAxis1Right="IsometricOffAxis1Right",Mu.isometricOffAxis1Top="IsometricOffAxis1Top",Mu.isometricOffAxis2Left="IsometricOffAxis2Left",Mu.isometricOffAxis2Right="IsometricOffAxis2Right",Mu.isometricOffAxis2Top="IsometricOffAxis2Top",Mu.isometricOffAxis3Left="IsometricOffAxis3Left",Mu.isometricOffAxis3Right="IsometricOffAxis3Right",Mu.isometricOffAxis3Bottom="IsometricOffAxis3Bottom",Mu.isometricOffAxis4Left="IsometricOffAxis4Left",Mu.isometricOffAxis4Right="IsometricOffAxis4Right",Mu.isometricOffAxis4Bottom="IsometricOffAxis4Bottom",Mu.obliqueTopLeft="ObliqueTopLeft",Mu.obliqueTop="ObliqueTop",Mu.obliqueTopRight="ObliqueTopRight",Mu.obliqueLeft="ObliqueLeft",Mu.obliqueRight="ObliqueRight",Mu.obliqueBottomLeft="ObliqueBottomLeft",Mu.obliqueBottom="ObliqueBottom",Mu.obliqueBottomRight="ObliqueBottomRight",Mu.perspectiveFront="PerspectiveFront",Mu.perspectiveLeft="PerspectiveLeft",Mu.perspectiveRight="PerspectiveRight",Mu.perspectiveAbove="PerspectiveAbove",Mu.perspectiveBelow="PerspectiveBelow",Mu.perspectiveAboveLeftFacing="PerspectiveAboveLeftFacing",Mu.perspectiveAboveRightFacing="PerspectiveAboveRightFacing",Mu.perspectiveContrastingLeftFacing="PerspectiveContrastingLeftFacing",Mu.perspectiveContrastingRightFacing="PerspectiveContrastingRightFacing",Mu.perspectiveHeroicLeftFacing="PerspectiveHeroicLeftFacing",Mu.perspectiveHeroicRightFacing="PerspectiveHeroicRightFacing",Mu.perspectiveHeroicExtremeLeftFacing="PerspectiveHeroicExtremeLeftFacing",Mu.perspectiveHeroicExtremeRightFacing="PerspectiveHeroicExtremeRightFacing",Mu.perspectiveRelaxed="PerspectiveRelaxed",Mu.perspectiveRelaxedModerately="PerspectiveRelaxedModerately",(Bu=a.PresetExtrusionDirection||(a.PresetExtrusionDirection={})).mixed="Mixed",Bu.bottomRight="BottomRight",Bu.bottom="Bottom",Bu.bottomLeft="BottomLeft",Bu.right="Right",Bu.none="None",Bu.left="Left",Bu.topRight="TopRight",Bu.top="Top",Bu.topLeft="TopLeft",(Hu=a.PresetGradientType||(a.PresetGradientType={})).mixed="Mixed",Hu.earlySunset="EarlySunset",Hu.lateSunset="LateSunset",Hu.nightfall="Nightfall",Hu.daybreak="Daybreak",Hu.horizon="Horizon",Hu.desert="Desert",Hu.ocean="Ocean",Hu.calmWater="CalmWater",Hu.fire="Fire",Hu.fog="Fog",Hu.moss="Moss",Hu.peacock="Peacock",Hu.wheat="Wheat",Hu.parchment="Parchment",Hu.mahogany="Mahogany",Hu.rainbow="Rainbow",Hu.rainbowII="RainbowII",Hu.gold="Gold",Hu.goldII="GoldII",Hu.brass="Brass",Hu.chrome="Chrome",Hu.chromeII="ChromeII",Hu.silver="Silver",Hu.sapphire="Sapphire",(Uu=a.PresetLightingDirection||(a.PresetLightingDirection={})).mixed="Mixed",Uu.topLeft="TopLeft",Uu.top="Top",Uu.topRight="TopRight",Uu.left="Left",Uu.none="None",Uu.right="Right",Uu.bottomLeft="BottomLeft",Uu.bottom="Bottom",Uu.bottomRight="BottomRight",(Wu=a.PresetLightingSoftness||(a.PresetLightingSoftness={})).mixed="Mixed",Wu.dim="Dim",Wu.normal="Normal",Wu.bright="Bright",(Gu=a.PresetMaterial||(a.PresetMaterial={})).mixed="Mixed",Gu.matte="Matte",Gu.plastic="Plastic",Gu.metal="Metal",Gu.wireFrame="WireFrame",Gu.matte2="Matte2",Gu.plastic2="Plastic2",Gu.metal2="Metal2",Gu.warmMatte="WarmMatte",Gu.translucentPowder="TranslucentPowder",Gu.powder="Powder",Gu.darkEdge="DarkEdge",Gu.softEdge="SoftEdge",Gu.clear="Clear",Gu.flat="Flat",Gu.softMetal="SoftMetal",(Vu=a.PresetTexture||(a.PresetTexture={})).mixed="Mixed",Vu.papyrus="Papyrus",Vu.canvas="Canvas",Vu.denim="Denim",Vu.wovenMat="WovenMat",Vu.waterDroplets="WaterDroplets",Vu.paperBag="PaperBag",Vu.fishFossil="FishFossil",Vu.sand="Sand",Vu.greenMarble="GreenMarble",Vu.whiteMarble="WhiteMarble",Vu.brownMarble="BrownMarble",Vu.granite="Granite",Vu.newsprint="Newsprint",Vu.recycledPaper="RecycledPaper",Vu.parchment="Parchment",Vu.stationery="Stationery",Vu.blueTissuePaper="BlueTissuePaper",Vu.pinkTissuePaper="PinkTissuePaper",Vu.purpleMesh="PurpleMesh",Vu.bouquet="Bouquet",Vu.cork="Cork",Vu.walnut="Walnut",Vu.oak="Oak",Vu.mediumWood="MediumWood",(qu=a.PresetThreeDimensionalFormat||(a.PresetThreeDimensionalFormat={})).mixed="Mixed",qu.format1="Format1",qu.format2="Format2",qu.format3="Format3",qu.format4="Format4",qu.format5="Format5",qu.format6="Format6",qu.format7="Format7",qu.format8="Format8",qu.format9="Format9",qu.format10="Format10",qu.format11="Format11",qu.format12="Format12",qu.format13="Format13",qu.format14="Format14",qu.format15="Format15",qu.format16="Format16",qu.format17="Format17",qu.format18="Format18",qu.format19="Format19",qu.format20="Format20",(zu=a.ReflectionType||(a.ReflectionType={})).mixed="Mixed",zu.none="None",zu.type1="Type1",zu.type2="Type2",zu.type3="Type3",zu.type4="Type4",zu.type5="Type5",zu.type6="Type6",zu.type7="Type7",zu.type8="Type8",zu.type9="Type9",(Ku=a.ShadowStyle||(a.ShadowStyle={})).mixed="Mixed",Ku.outerShadow="OuterShadow",Ku.innerShadow="InnerShadow",(Ju=a.ShadowType||(a.ShadowType={})).mixed="Mixed",Ju.type1="Type1",Ju.type2="Type2",Ju.type3="Type3",Ju.type4="Type4",Ju.type5="Type5",Ju.type6="Type6",Ju.type7="Type7",Ju.type8="Type8",Ju.type9="Type9",Ju.type10="Type10",Ju.type11="Type11",Ju.type12="Type12",Ju.type13="Type13",Ju.type14="Type14",Ju.type15="Type15",Ju.type16="Type16",Ju.type17="Type17",Ju.type18="Type18",Ju.type19="Type19",Ju.type20="Type20",Ju.type21="Type21",Ju.type22="Type22",Ju.type23="Type23",Ju.type24="Type24",Ju.type25="Type25",Ju.type26="Type26",Ju.type27="Type27",Ju.type28="Type28",Ju.type29="Type29",Ju.type30="Type30",Ju.type31="Type31",Ju.type32="Type32",Ju.type33="Type33",Ju.type34="Type34",Ju.type35="Type35",Ju.type36="Type36",Ju.type37="Type37",Ju.type38="Type38",Ju.type39="Type39",Ju.type40="Type40",Ju.type41="Type41",Ju.type42="Type42",Ju.type43="Type43",(Xu=a.StylisticSet||(a.StylisticSet={})).default="Default",Xu.set01="Set01",Xu.set02="Set02",Xu.set03="Set03",Xu.set04="Set04",Xu.set05="Set05",Xu.set06="Set06",Xu.set07="Set07",Xu.set08="Set08",Xu.set09="Set09",Xu.set10="Set10",Xu.set11="Set11",Xu.set12="Set12",Xu.set13="Set13",Xu.set14="Set14",Xu.set15="Set15",Xu.set16="Set16",Xu.set17="Set17",Xu.set18="Set18",Xu.set19="Set19",Xu.set20="Set20",(Qu=a.TextureAlignment||(a.TextureAlignment={})).mixed="Mixed",Qu.topLeft="TopLeft",Qu.top="Top",Qu.topRight="TopRight",Qu.left="Left",Qu.center="Center",Qu.right="Right",Qu.bottomLeft="BottomLeft",Qu.bottom="Bottom",Qu.bottomRight="BottomRight",(Yu=a.TextureType||(a.TextureType={})).mixed="Mixed",Yu.preset="Preset",Yu.userDefined="UserDefined",(Zu=a.ThemeColorIndex||(a.ThemeColorIndex={})).notThemeColor="NotThemeColor",Zu.mainDark1="MainDark1",Zu.mainLight1="MainLight1",Zu.mainDark2="MainDark2",Zu.mainLight2="MainLight2",Zu.accent1="Accent1",Zu.accent2="Accent2",Zu.accent3="Accent3",Zu.accent4="Accent4",Zu.accent5="Accent5",Zu.accent6="Accent6",Zu.hyperlink="Hyperlink",Zu.hyperlinkFollowed="HyperlinkFollowed",Zu.background1="Background1",Zu.text1="Text1",Zu.background2="Background2",Zu.text2="Text2",($u=a.HyperlinkType||(a.HyperlinkType={})).range="Range",$u.shape="Shape",$u.inlineShape="InlineShape";var rp,ip="Bibliography",op=(rp=OfficeExtension.ClientObject,__extends(ap,rp),Object.defineProperty(ap.prototype,"_className",{get:function(){return"Bibliography"},enumerable:!0,configurable:!0}),Object.defineProperty(ap.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","bibliographyStyle"]},enumerable:!0,configurable:!0}),Object.defineProperty(ap.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","BibliographyStyle"]},enumerable:!0,configurable:!0}),Object.defineProperty(ap.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(ap.prototype,"_navigationPropertyNames",{get:function(){return["sources"]},enumerable:!0,configurable:!0}),Object.defineProperty(ap.prototype,"sources",{get:function(){return this._S||(this._S=t(a.SourceCollection,this,"Sources",!0,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(ap.prototype,"bibliographyStyle",{get:function(){return _("bibliographyStyle",this._B,ip,this._isNull),this._B},set:function(e){this._B=e,g(this,"BibliographyStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ap.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,ip,this._isNull),this.__R},enumerable:!0,configurable:!0}),ap.prototype.set=function(e,t){this._recursivelySet(e,t,["bibliographyStyle"],[],["sources"])},ap.prototype.update=function(e){this._recursivelyUpdate(e)},ap.prototype.generateUniqueTag=function(){return d(this,"GenerateUniqueTag",1,[],4,0)},ap.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},ap.prototype._handleResult=function(e){if(rp.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.BibliographyStyle)||(this._B=t.BibliographyStyle),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["sources","Sources"])}},ap.prototype.load=function(e){return v(this,e)},ap.prototype.retrieve=function(e){return O(this,e)},ap.prototype._handleIdResult=function(e){rp.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},ap.prototype._handleRetrieveResult=function(e,t){rp.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},ap.prototype.track=function(){return this.context.trackedObjects.add(this),this},ap.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ap.prototype.toJSON=function(){return C(this,{bibliographyStyle:this._B},{sources:this._S})},ap.prototype.setMockData=function(e){T(this,e)},ap.prototype.ensureUnchanged=function(e){h(this,e)},ap);function ap(){return null!==rp&&rp.apply(this,arguments)||this}a.Bibliography=op;var sp,cp="SourceCollection",lp=(sp=OfficeExtension.ClientObject,__extends(up,sp),Object.defineProperty(up.prototype,"_className",{get:function(){return"SourceCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(up.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(up.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(up.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(up.prototype,"items",{get:function(){return _("items",this.m__items,cp,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(up.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,cp,this._isNull),this.__R},enumerable:!0,configurable:!0}),up.prototype.add=function(e){return p(a.Source,this,"Add",0,[e],!1,!0,null,0)},up.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},up.prototype._handleResult=function(e){if(sp.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Source,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},up.prototype.load=function(e){return v(this,e)},up.prototype.retrieve=function(e){return O(this,e)},up.prototype._handleIdResult=function(e){sp.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},up.prototype._handleRetrieveResult=function(e,t){var n=this;sp.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.Source,!1,n,e,t)})},up.prototype.track=function(){return this.context.trackedObjects.add(this),this},up.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},up.prototype.toJSON=function(){return C(this,{},{},this.m__items)},up.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.Source,!1,n,e,t)},function(e){return n.m__items=e})},up);function up(){return null!==sp&&sp.apply(this,arguments)||this}a.SourceCollection=lp;var pp,fp="Source",dp=(pp=OfficeExtension.ClientObject,__extends(hp,pp),Object.defineProperty(hp.prototype,"_className",{get:function(){return"Source"},enumerable:!0,configurable:!0}),Object.defineProperty(hp.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","tag","xml","isCited"]},enumerable:!0,configurable:!0}),Object.defineProperty(hp.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Tag","Xml","IsCited"]},enumerable:!0,configurable:!0}),Object.defineProperty(hp.prototype,"isCited",{get:function(){return _("isCited",this._I,fp,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(hp.prototype,"tag",{get:function(){return _("tag",this._T,fp,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(hp.prototype,"xml",{get:function(){return _("xml",this._X,fp,this._isNull),this._X},enumerable:!0,configurable:!0}),Object.defineProperty(hp.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,fp,this._isNull),this.__R},enumerable:!0,configurable:!0}),hp.prototype.delete=function(){d(this,"Delete",0,[],0,0)},hp.prototype.getFieldByName=function(e){return d(this,"GetFieldByName",0,[e],0,0)},hp.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},hp.prototype._handleResult=function(e){if(pp.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.IsCited)||(this._I=t.IsCited),m(t.Tag)||(this._T=t.Tag),m(t.Xml)||(this._X=t.Xml),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},hp.prototype.load=function(e){return v(this,e)},hp.prototype.retrieve=function(e){return O(this,e)},hp.prototype._handleIdResult=function(e){pp.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},hp.prototype._handleRetrieveResult=function(e,t){pp.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},hp.prototype.track=function(){return this.context.trackedObjects.add(this),this},hp.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},hp.prototype.toJSON=function(){return C(this,{isCited:this._I,tag:this._T,xml:this._X},{})},hp.prototype.setMockData=function(e){T(this,e)},hp.prototype.ensureUnchanged=function(e){h(this,e)},hp);function hp(){return null!==pp&&pp.apply(this,arguments)||this}a.Source=dp;var gp,yp="PageSetup",mp=(gp=OfficeExtension.ClientObject,__extends(_p,gp),Object.defineProperty(_p.prototype,"_className",{get:function(){return"PageSetup"},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","topMargin","bottomMargin","leftMargin","rightMargin","gutter","pageWidth","pageHeight","orientation","verticalAlignment","mirrorMargins","headerDistance","footerDistance","sectionStart","oddAndEvenPagesHeaderFooter","differentFirstPageHeaderFooter","suppressEndnotes","paperSize","twoPagesOnOne","charsLine","linesPage","showGrid","gutterStyle","sectionDirection","layoutMode","gutterPosition","bookFoldPrinting","bookFoldReversePrinting","bookFoldPrintingSheets"]},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","TopMargin","BottomMargin","LeftMargin","RightMargin","Gutter","PageWidth","PageHeight","Orientation","VerticalAlignment","MirrorMargins","HeaderDistance","FooterDistance","SectionStart","OddAndEvenPagesHeaderFooter","DifferentFirstPageHeaderFooter","SuppressEndnotes","PaperSize","TwoPagesOnOne","CharsLine","LinesPage","ShowGrid","GutterStyle","SectionDirection","LayoutMode","GutterPosition","BookFoldPrinting","BookFoldReversePrinting","BookFoldPrintingSheets"]},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"_navigationPropertyNames",{get:function(){return["lineNumbering","textColumns"]},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"lineNumbering",{get:function(){return this._Li||(this._Li=t(a.LineNumbering,this,"LineNumbering",!1,4)),this._Li},set:function(e){this._Li=e,g(this,"LineNumbering",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"textColumns",{get:function(){return this._T||(this._T=t(a.TextColumnCollection,this,"TextColumns",!0,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"bookFoldPrinting",{get:function(){return _("bookFoldPrinting",this._B,yp,this._isNull),this._B},set:function(e){this._B=e,g(this,"BookFoldPrinting",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"bookFoldPrintingSheets",{get:function(){return _("bookFoldPrintingSheets",this._Bo,yp,this._isNull),this._Bo},set:function(e){this._Bo=e,g(this,"BookFoldPrintingSheets",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"bookFoldReversePrinting",{get:function(){return _("bookFoldReversePrinting",this._Boo,yp,this._isNull),this._Boo},set:function(e){this._Boo=e,g(this,"BookFoldReversePrinting",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"bottomMargin",{get:function(){return _("bottomMargin",this._Bot,yp,this._isNull),this._Bot},set:function(e){this._Bot=e,g(this,"BottomMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"charsLine",{get:function(){return _("charsLine",this._C,yp,this._isNull),this._C},set:function(e){this._C=e,g(this,"CharsLine",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"differentFirstPageHeaderFooter",{get:function(){return _("differentFirstPageHeaderFooter",this._D,yp,this._isNull),this._D},set:function(e){this._D=e,g(this,"DifferentFirstPageHeaderFooter",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"footerDistance",{get:function(){return _("footerDistance",this._F,yp,this._isNull),this._F},set:function(e){this._F=e,g(this,"FooterDistance",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"gutter",{get:function(){return _("gutter",this._G,yp,this._isNull),this._G},set:function(e){this._G=e,g(this,"Gutter",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"gutterPosition",{get:function(){return _("gutterPosition",this._Gu,yp,this._isNull),this._Gu},set:function(e){this._Gu=e,g(this,"GutterPosition",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"gutterStyle",{get:function(){return _("gutterStyle",this._Gut,yp,this._isNull),this._Gut},set:function(e){this._Gut=e,g(this,"GutterStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"headerDistance",{get:function(){return _("headerDistance",this._H,yp,this._isNull),this._H},set:function(e){this._H=e,g(this,"HeaderDistance",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"layoutMode",{get:function(){return _("layoutMode",this._L,yp,this._isNull),this._L},set:function(e){this._L=e,g(this,"LayoutMode",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"leftMargin",{get:function(){return _("leftMargin",this._Le,yp,this._isNull),this._Le},set:function(e){this._Le=e,g(this,"LeftMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"linesPage",{get:function(){return _("linesPage",this._Lin,yp,this._isNull),this._Lin},set:function(e){this._Lin=e,g(this,"LinesPage",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"mirrorMargins",{get:function(){return _("mirrorMargins",this._M,yp,this._isNull),this._M},set:function(e){this._M=e,g(this,"MirrorMargins",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"oddAndEvenPagesHeaderFooter",{get:function(){return _("oddAndEvenPagesHeaderFooter",this._O,yp,this._isNull),this._O},set:function(e){this._O=e,g(this,"OddAndEvenPagesHeaderFooter",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"orientation",{get:function(){return _("orientation",this._Or,yp,this._isNull),this._Or},set:function(e){this._Or=e,g(this,"Orientation",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"pageHeight",{get:function(){return _("pageHeight",this._P,yp,this._isNull),this._P},set:function(e){this._P=e,g(this,"PageHeight",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"pageWidth",{get:function(){return _("pageWidth",this._Pa,yp,this._isNull),this._Pa},set:function(e){this._Pa=e,g(this,"PageWidth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"paperSize",{get:function(){return _("paperSize",this._Pap,yp,this._isNull),this._Pap},set:function(e){this._Pap=e,g(this,"PaperSize",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"rightMargin",{get:function(){return _("rightMargin",this._R,yp,this._isNull),this._R},set:function(e){this._R=e,g(this,"RightMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"sectionDirection",{get:function(){return _("sectionDirection",this._S,yp,this._isNull),this._S},set:function(e){this._S=e,g(this,"SectionDirection",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"sectionStart",{get:function(){return _("sectionStart",this._Se,yp,this._isNull),this._Se},set:function(e){this._Se=e,g(this,"SectionStart",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"showGrid",{get:function(){return _("showGrid",this._Sh,yp,this._isNull),this._Sh},set:function(e){this._Sh=e,g(this,"ShowGrid",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"suppressEndnotes",{get:function(){return _("suppressEndnotes",this._Su,yp,this._isNull),this._Su},set:function(e){this._Su=e,g(this,"SuppressEndnotes",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"topMargin",{get:function(){return _("topMargin",this._To,yp,this._isNull),this._To},set:function(e){this._To=e,g(this,"TopMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"twoPagesOnOne",{get:function(){return _("twoPagesOnOne",this._Tw,yp,this._isNull),this._Tw},set:function(e){this._Tw=e,g(this,"TwoPagesOnOne",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"verticalAlignment",{get:function(){return _("verticalAlignment",this._V,yp,this._isNull),this._V},set:function(e){this._V=e,g(this,"VerticalAlignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_p.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,yp,this._isNull),this.__R},enumerable:!0,configurable:!0}),_p.prototype.set=function(e,t){this._recursivelySet(e,t,["topMargin","bottomMargin","leftMargin","rightMargin","gutter","pageWidth","pageHeight","orientation","verticalAlignment","mirrorMargins","headerDistance","footerDistance","sectionStart","oddAndEvenPagesHeaderFooter","differentFirstPageHeaderFooter","suppressEndnotes","paperSize","twoPagesOnOne","charsLine","linesPage","showGrid","gutterStyle","sectionDirection","layoutMode","gutterPosition","bookFoldPrinting","bookFoldReversePrinting","bookFoldPrintingSheets"],["lineNumbering"],["textColumns"])},_p.prototype.update=function(e){this._recursivelyUpdate(e)},_p.prototype.setAsTemplateDefault=function(){d(this,"SetAsTemplateDefault",1,[],4,0)},_p.prototype.togglePortrait=function(){d(this,"TogglePortrait",1,[],4,0)},_p.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},_p.prototype._handleResult=function(e){if(gp.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.BookFoldPrinting)||(this._B=t.BookFoldPrinting),m(t.BookFoldPrintingSheets)||(this._Bo=t.BookFoldPrintingSheets),m(t.BookFoldReversePrinting)||(this._Boo=t.BookFoldReversePrinting),m(t.BottomMargin)||(this._Bot=t.BottomMargin),m(t.CharsLine)||(this._C=t.CharsLine),m(t.DifferentFirstPageHeaderFooter)||(this._D=t.DifferentFirstPageHeaderFooter),m(t.FooterDistance)||(this._F=t.FooterDistance),m(t.Gutter)||(this._G=t.Gutter),m(t.GutterPosition)||(this._Gu=t.GutterPosition),m(t.GutterStyle)||(this._Gut=t.GutterStyle),m(t.HeaderDistance)||(this._H=t.HeaderDistance),m(t.LayoutMode)||(this._L=t.LayoutMode),m(t.LeftMargin)||(this._Le=t.LeftMargin),m(t.LinesPage)||(this._Lin=t.LinesPage),m(t.MirrorMargins)||(this._M=t.MirrorMargins),m(t.OddAndEvenPagesHeaderFooter)||(this._O=t.OddAndEvenPagesHeaderFooter),m(t.Orientation)||(this._Or=t.Orientation),m(t.PageHeight)||(this._P=t.PageHeight),m(t.PageWidth)||(this._Pa=t.PageWidth),m(t.PaperSize)||(this._Pap=t.PaperSize),m(t.RightMargin)||(this._R=t.RightMargin),m(t.SectionDirection)||(this._S=t.SectionDirection),m(t.SectionStart)||(this._Se=t.SectionStart),m(t.ShowGrid)||(this._Sh=t.ShowGrid),m(t.SuppressEndnotes)||(this._Su=t.SuppressEndnotes),m(t.TopMargin)||(this._To=t.TopMargin),m(t.TwoPagesOnOne)||(this._Tw=t.TwoPagesOnOne),m(t.VerticalAlignment)||(this._V=t.VerticalAlignment),m(t._ReferenceId)||(this.__R=t._ReferenceId),R(this,t,["lineNumbering","LineNumbering","textColumns","TextColumns"])}},_p.prototype.load=function(e){return v(this,e)},_p.prototype.retrieve=function(e){return O(this,e)},_p.prototype._handleIdResult=function(e){gp.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},_p.prototype._handleRetrieveResult=function(e,t){gp.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},_p.prototype.track=function(){return this.context.trackedObjects.add(this),this},_p.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},_p.prototype.toJSON=function(){return C(this,{bookFoldPrinting:this._B,bookFoldPrintingSheets:this._Bo,bookFoldReversePrinting:this._Boo,bottomMargin:this._Bot,charsLine:this._C,differentFirstPageHeaderFooter:this._D,footerDistance:this._F,gutter:this._G,gutterPosition:this._Gu,gutterStyle:this._Gut,headerDistance:this._H,layoutMode:this._L,leftMargin:this._Le,linesPage:this._Lin,mirrorMargins:this._M,oddAndEvenPagesHeaderFooter:this._O,orientation:this._Or,pageHeight:this._P,pageWidth:this._Pa,paperSize:this._Pap,rightMargin:this._R,sectionDirection:this._S,sectionStart:this._Se,showGrid:this._Sh,suppressEndnotes:this._Su,topMargin:this._To,twoPagesOnOne:this._Tw,verticalAlignment:this._V},{lineNumbering:this._Li,textColumns:this._T})},_p.prototype.setMockData=function(e){T(this,e)},_p.prototype.ensureUnchanged=function(e){h(this,e)},_p);function _p(){return null!==gp&&gp.apply(this,arguments)||this}a.PageSetup=mp;var bp,vp="LineNumbering",Op=(bp=OfficeExtension.ClientObject,__extends(Cp,bp),Object.defineProperty(Cp.prototype,"_className",{get:function(){return"LineNumbering"},enumerable:!0,configurable:!0}),Object.defineProperty(Cp.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","restartMode","startingNumber","distanceFromText","countBy","isActive"]},enumerable:!0,configurable:!0}),Object.defineProperty(Cp.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","RestartMode","StartingNumber","DistanceFromText","CountBy","IsActive"]},enumerable:!0,configurable:!0}),Object.defineProperty(Cp.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Cp.prototype,"countBy",{get:function(){return _("countBy",this._C,vp,this._isNull),this._C},set:function(e){this._C=e,g(this,"CountBy",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cp.prototype,"distanceFromText",{get:function(){return _("distanceFromText",this._D,vp,this._isNull),this._D},set:function(e){this._D=e,g(this,"DistanceFromText",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cp.prototype,"isActive",{get:function(){return _("isActive",this._I,vp,this._isNull),this._I},set:function(e){this._I=e,g(this,"IsActive",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cp.prototype,"restartMode",{get:function(){return _("restartMode",this._R,vp,this._isNull),this._R},set:function(e){this._R=e,g(this,"RestartMode",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cp.prototype,"startingNumber",{get:function(){return _("startingNumber",this._S,vp,this._isNull),this._S},set:function(e){this._S=e,g(this,"StartingNumber",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cp.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,vp,this._isNull),this.__R},enumerable:!0,configurable:!0}),Cp.prototype.set=function(e,t){this._recursivelySet(e,t,["restartMode","startingNumber","distanceFromText","countBy","isActive"],[],[])},Cp.prototype.update=function(e){this._recursivelyUpdate(e)},Cp.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Cp.prototype._handleResult=function(e){if(bp.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.CountBy)||(this._C=t.CountBy),m(t.DistanceFromText)||(this._D=t.DistanceFromText),m(t.IsActive)||(this._I=t.IsActive),m(t.RestartMode)||(this._R=t.RestartMode),m(t.StartingNumber)||(this._S=t.StartingNumber),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},Cp.prototype.load=function(e){return v(this,e)},Cp.prototype.retrieve=function(e){return O(this,e)},Cp.prototype._handleIdResult=function(e){bp.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Cp.prototype._handleRetrieveResult=function(e,t){bp.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Cp.prototype.track=function(){return this.context.trackedObjects.add(this),this},Cp.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Cp.prototype.toJSON=function(){return C(this,{countBy:this._C,distanceFromText:this._D,isActive:this._I,restartMode:this._R,startingNumber:this._S},{})},Cp.prototype.setMockData=function(e){T(this,e)},Cp.prototype.ensureUnchanged=function(e){h(this,e)},Cp);function Cp(){return null!==bp&&bp.apply(this,arguments)||this}a.LineNumbering=Op;var Pp,Rp="TextColumnCollection",Sp=(Pp=OfficeExtension.ClientObject,__extends(Ip,Pp),Object.defineProperty(Ip.prototype,"_className",{get:function(){return"TextColumnCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Ip.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Ip.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ip.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ip.prototype,"items",{get:function(){return _("items",this.m__items,Rp,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Ip.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Rp,this._isNull),this.__R},enumerable:!0,configurable:!0}),Ip.prototype.add=function(e){return p(a.TextColumn,this,"Add",0,[e],!1,!0,null,0)},Ip.prototype.getFlowDirection=function(){return d(this,"GetFlowDirection",0,[],0,0)},Ip.prototype.getHasLineBetween=function(){return d(this,"GetHasLineBetween",0,[],0,0)},Ip.prototype.getIsEvenlySpaced=function(){return d(this,"GetIsEvenlySpaced",0,[],0,0)},Ip.prototype.setCount=function(e){d(this,"SetCount",0,[e],0,0)},Ip.prototype.setFlowDirection=function(e){d(this,"SetFlowDirection",0,[e],0,0)},Ip.prototype.setHasLineBetween=function(e){d(this,"SetHasLineBetween",0,[e],0,0)},Ip.prototype.setIsEvenlySpaced=function(e){d(this,"SetIsEvenlySpaced",0,[e],0,0)},Ip.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Ip.prototype._handleResult=function(e){if(Pp.prototype._handleResult.call(this,e),!y(e)){var t=e;if(P(this,t),m(t._ReferenceId)||(this.__R=t._ReferenceId),!y(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.TextColumn,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Ip.prototype.load=function(e){return v(this,e)},Ip.prototype.retrieve=function(e){return O(this,e)},Ip.prototype._handleIdResult=function(e){Pp.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Ip.prototype._handleRetrieveResult=function(e,t){var n=this;Pp.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t,function(e,t){return f(a.TextColumn,!1,n,e,t)})},Ip.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ip.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ip.prototype.toJSON=function(){return C(this,{},{},this.m__items)},Ip.prototype.setMockData=function(e){var n=this;T(this,e,function(e,t){return f(a.TextColumn,!1,n,e,t)},function(e){return n.m__items=e})},Ip);function Ip(){return null!==Pp&&Pp.apply(this,arguments)||this}a.TextColumnCollection=Sp;var Tp,Ap,Np,xp,Ep,Dp,jp,wp,kp,Fp,Lp,Mp,Bp,Hp,Up="TextColumn",Wp=(Tp=OfficeExtension.ClientObject,__extends(Gp,Tp),Object.defineProperty(Gp.prototype,"_className",{get:function(){return"TextColumn"},enumerable:!0,configurable:!0}),Object.defineProperty(Gp.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","spaceAfter","width"]},enumerable:!0,configurable:!0}),Object.defineProperty(Gp.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","SpaceAfter","Width"]},enumerable:!0,configurable:!0}),Object.defineProperty(Gp.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Gp.prototype,"spaceAfter",{get:function(){return _("spaceAfter",this._S,Up,this._isNull),this._S},set:function(e){this._S=e,g(this,"SpaceAfter",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Gp.prototype,"width",{get:function(){return _("width",this._W,Up,this._isNull),this._W},set:function(e){this._W=e,g(this,"Width",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Gp.prototype,"_ReferenceId",{get:function(){return _("_ReferenceId",this.__R,Up,this._isNull),this.__R},enumerable:!0,configurable:!0}),Gp.prototype.set=function(e,t){this._recursivelySet(e,t,["spaceAfter","width"],[],[])},Gp.prototype.update=function(e){this._recursivelyUpdate(e)},Gp.prototype._KeepReference=function(){d(this,"_KeepReference",1,[],4,0)},Gp.prototype._handleResult=function(e){if(Tp.prototype._handleResult.call(this,e),!y(e)){var t=e;P(this,t),m(t.SpaceAfter)||(this._S=t.SpaceAfter),m(t.Width)||(this._W=t.Width),m(t._ReferenceId)||(this.__R=t._ReferenceId)}},Gp.prototype.load=function(e){return v(this,e)},Gp.prototype.retrieve=function(e){return O(this,e)},Gp.prototype._handleIdResult=function(e){Tp.prototype._handleIdResult.call(this,e),y(e)||m(e._ReferenceId)||(this.__R=e._ReferenceId)},Gp.prototype._handleRetrieveResult=function(e,t){Tp.prototype._handleRetrieveResult.call(this,e,t),I(this,e,t)},Gp.prototype.track=function(){return this.context.trackedObjects.add(this),this},Gp.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Gp.prototype.toJSON=function(){return C(this,{spaceAfter:this._S,width:this._W},{})},Gp.prototype.setMockData=function(e){T(this,e)},Gp.prototype.ensureUnchanged=function(e){h(this,e)},Gp);function Gp(){return null!==Tp&&Tp.apply(this,arguments)||this}a.TextColumn=Wp,(Ap=a.CharacterCase||(a.CharacterCase={})).next="Next",Ap.lower="Lower",Ap.upper="Upper",Ap.titleWord="TitleWord",Ap.titleSentence="TitleSentence",Ap.toggle="Toggle",Ap.halfWidth="HalfWidth",Ap.fullWidth="FullWidth",Ap.katakana="Katakana",Ap.hiragana="Hiragana",(Np=a.CharacterWidth||(a.CharacterWidth={})).half="Half",Np.full="Full",(xp=a.FlowDirection||(a.FlowDirection={})).leftToRight="LeftToRight",xp.rightToLeft="RightToLeft",(Ep=a.GutterPosition||(a.GutterPosition={})).left="Left",Ep.right="Right",Ep.top="Top",(Dp=a.GutterStyle||(a.GutterStyle={})).bidirectional="Bidirectional",Dp.latin="Latin",(jp=a.LayoutMode||(a.LayoutMode={})).default="Default",jp.grid="Grid",jp.lineGrid="LineGrid",jp.genko="Genko",(wp=a.NumberingRule||(a.NumberingRule={})).restartContinuous="RestartContinuous",wp.restartSection="RestartSection",wp.restartPage="RestartPage",(kp=a.PageOrientation||(a.PageOrientation={})).portrait="Portrait",kp.landscape="Landscape",(Fp=a.PageSetupVerticalAlignment||(a.PageSetupVerticalAlignment={})).top="Top",Fp.center="Center",Fp.justify="Justify",Fp.bottom="Bottom",(Lp=a.PaperSize||(a.PaperSize={})).size10x14="Size10x14",Lp.size11x17="Size11x17",Lp.letter="Letter",Lp.letterSmall="LetterSmall",Lp.legal="Legal",Lp.executive="Executive",Lp.a3="A3",Lp.a4="A4",Lp.a4Small="A4Small",Lp.a5="A5",Lp.b4="B4",Lp.b5="B5",Lp.csheet="CSheet",Lp.dsheet="DSheet",Lp.esheet="ESheet",Lp.fanfoldLegalGerman="FanfoldLegalGerman",Lp.fanfoldStdGerman="FanfoldStdGerman",Lp.fanfoldUS="FanfoldUS",Lp.folio="Folio",Lp.ledger="Ledger",Lp.note="Note",Lp.quarto="Quarto",Lp.statement="Statement",Lp.tabloid="Tabloid",Lp.envelope9="Envelope9",Lp.envelope10="Envelope10",Lp.envelope11="Envelope11",Lp.envelope12="Envelope12",Lp.envelope14="Envelope14",Lp.envelopeB4="EnvelopeB4",Lp.envelopeB5="EnvelopeB5",Lp.envelopeB6="EnvelopeB6",Lp.envelopeC3="EnvelopeC3",Lp.envelopeC4="EnvelopeC4",Lp.envelopeC5="EnvelopeC5",Lp.envelopeC6="EnvelopeC6",Lp.envelopeC65="EnvelopeC65",Lp.envelopeDL="EnvelopeDL",Lp.envelopeItaly="EnvelopeItaly",Lp.envelopeMonarch="EnvelopeMonarch",Lp.envelopePersonal="EnvelopePersonal",Lp.custom="Custom",(Mp=a.SectionDirection||(a.SectionDirection={})).rightToLeft="RightToLeft",Mp.leftToRight="LeftToRight",(Bp=a.SectionStart||(a.SectionStart={})).continuous="Continuous",Bp.newColumn="NewColumn",Bp.newPage="NewPage",Bp.evenPage="EvenPage",Bp.oddPage="OddPage",(Hp=a.ErrorCodes||(a.ErrorCodes={})).accessDenied="AccessDenied",Hp.generalException="GeneralException",Hp.invalidArgument="InvalidArgument",Hp.itemNotFound="ItemNotFound",Hp.notAllowed="NotAllowed",Hp.notImplemented="NotImplemented",Hp.searchDialogIsOpen="SearchDialogIsOpen",Hp.searchStringInvalidOrTooLong="SearchStringInvalidOrTooLong",a.Interfaces||(a.Interfaces={})}(Word=Word||{}),void 0!==Word.Style&&function(e){e.other="Other",e.normal="Normal",e.heading1="Heading1",e.heading2="Heading2",e.heading3="Heading3",e.heading4="Heading4",e.heading5="Heading5",e.heading6="Heading6",e.heading7="Heading7",e.heading8="Heading8",e.heading9="Heading9",e.toc1="Toc1",e.toc2="Toc2",e.toc3="Toc3",e.toc4="Toc4",e.toc5="Toc5",e.toc6="Toc6",e.toc7="Toc7",e.toc8="Toc8",e.toc9="Toc9",e.footnoteText="FootnoteText",e.header="Header",e.footer="Footer",e.caption="Caption",e.footnoteReference="FootnoteReference",e.endnoteReference="EndnoteReference",e.endnoteText="EndnoteText",e.title="Title",e.subtitle="Subtitle",e.hyperlink="Hyperlink",e.strong="Strong",e.emphasis="Emphasis",e.noSpacing="NoSpacing",e.listParagraph="ListParagraph",e.quote="Quote",e.intenseQuote="IntenseQuote",e.subtleEmphasis="SubtleEmphasis",e.intenseEmphasis="IntenseEmphasis",e.subtleReference="SubtleReference",e.intenseReference="IntenseReference",e.bookTitle="BookTitle",e.bibliography="Bibliography",e.tocHeading="TocHeading",e.tableGrid="TableGrid",e.plainTable1="PlainTable1",e.plainTable2="PlainTable2",e.plainTable3="PlainTable3",e.plainTable4="PlainTable4",e.plainTable5="PlainTable5",e.tableGridLight="TableGridLight",e.gridTable1Light="GridTable1Light",e.gridTable1Light_Accent1="GridTable1Light_Accent1",e.gridTable1Light_Accent2="GridTable1Light_Accent2",e.gridTable1Light_Accent3="GridTable1Light_Accent3",e.gridTable1Light_Accent4="GridTable1Light_Accent4",e.gridTable1Light_Accent5="GridTable1Light_Accent5",e.gridTable1Light_Accent6="GridTable1Light_Accent6",e.gridTable2="GridTable2",e.gridTable2_Accent1="GridTable2_Accent1",e.gridTable2_Accent2="GridTable2_Accent2",e.gridTable2_Accent3="GridTable2_Accent3",e.gridTable2_Accent4="GridTable2_Accent4",e.gridTable2_Accent5="GridTable2_Accent5",e.gridTable2_Accent6="GridTable2_Accent6",e.gridTable3="GridTable3",e.gridTable3_Accent1="GridTable3_Accent1",e.gridTable3_Accent2="GridTable3_Accent2",e.gridTable3_Accent3="GridTable3_Accent3",e.gridTable3_Accent4="GridTable3_Accent4",e.gridTable3_Accent5="GridTable3_Accent5",e.gridTable3_Accent6="GridTable3_Accent6",e.gridTable4="GridTable4",e.gridTable4_Accent1="GridTable4_Accent1",e.gridTable4_Accent2="GridTable4_Accent2",e.gridTable4_Accent3="GridTable4_Accent3",e.gridTable4_Accent4="GridTable4_Accent4",e.gridTable4_Accent5="GridTable4_Accent5",e.gridTable4_Accent6="GridTable4_Accent6",e.gridTable5Dark="GridTable5Dark",e.gridTable5Dark_Accent1="GridTable5Dark_Accent1",e.gridTable5Dark_Accent2="GridTable5Dark_Accent2",e.gridTable5Dark_Accent3="GridTable5Dark_Accent3",e.gridTable5Dark_Accent4="GridTable5Dark_Accent4",e.gridTable5Dark_Accent5="GridTable5Dark_Accent5",e.gridTable5Dark_Accent6="GridTable5Dark_Accent6",e.gridTable6Colorful="GridTable6Colorful",e.gridTable6Colorful_Accent1="GridTable6Colorful_Accent1",e.gridTable6Colorful_Accent2="GridTable6Colorful_Accent2",e.gridTable6Colorful_Accent3="GridTable6Colorful_Accent3",e.gridTable6Colorful_Accent4="GridTable6Colorful_Accent4",e.gridTable6Colorful_Accent5="GridTable6Colorful_Accent5",e.gridTable6Colorful_Accent6="GridTable6Colorful_Accent6",e.gridTable7Colorful="GridTable7Colorful",e.gridTable7Colorful_Accent1="GridTable7Colorful_Accent1",e.gridTable7Colorful_Accent2="GridTable7Colorful_Accent2",e.gridTable7Colorful_Accent3="GridTable7Colorful_Accent3",e.gridTable7Colorful_Accent4="GridTable7Colorful_Accent4",e.gridTable7Colorful_Accent5="GridTable7Colorful_Accent5",e.gridTable7Colorful_Accent6="GridTable7Colorful_Accent6",e.listTable1Light="ListTable1Light",e.listTable1Light_Accent1="ListTable1Light_Accent1",e.listTable1Light_Accent2="ListTable1Light_Accent2",e.listTable1Light_Accent3="ListTable1Light_Accent3",e.listTable1Light_Accent4="ListTable1Light_Accent4",e.listTable1Light_Accent5="ListTable1Light_Accent5",e.listTable1Light_Accent6="ListTable1Light_Accent6",e.listTable2="ListTable2",e.listTable2_Accent1="ListTable2_Accent1",e.listTable2_Accent2="ListTable2_Accent2",e.listTable2_Accent3="ListTable2_Accent3",e.listTable2_Accent4="ListTable2_Accent4",e.listTable2_Accent5="ListTable2_Accent5",e.listTable2_Accent6="ListTable2_Accent6",e.listTable3="ListTable3",e.listTable3_Accent1="ListTable3_Accent1",e.listTable3_Accent2="ListTable3_Accent2",e.listTable3_Accent3="ListTable3_Accent3",e.listTable3_Accent4="ListTable3_Accent4",e.listTable3_Accent5="ListTable3_Accent5",e.listTable3_Accent6="ListTable3_Accent6",e.listTable4="ListTable4",e.listTable4_Accent1="ListTable4_Accent1",e.listTable4_Accent2="ListTable4_Accent2",e.listTable4_Accent3="ListTable4_Accent3",e.listTable4_Accent4="ListTable4_Accent4",e.listTable4_Accent5="ListTable4_Accent5",e.listTable4_Accent6="ListTable4_Accent6",e.listTable5Dark="ListTable5Dark",e.listTable5Dark_Accent1="ListTable5Dark_Accent1",e.listTable5Dark_Accent2="ListTable5Dark_Accent2",e.listTable5Dark_Accent3="ListTable5Dark_Accent3",e.listTable5Dark_Accent4="ListTable5Dark_Accent4",e.listTable5Dark_Accent5="ListTable5Dark_Accent5",e.listTable5Dark_Accent6="ListTable5Dark_Accent6",e.listTable6Colorful="ListTable6Colorful",e.listTable6Colorful_Accent1="ListTable6Colorful_Accent1",e.listTable6Colorful_Accent2="ListTable6Colorful_Accent2",e.listTable6Colorful_Accent3="ListTable6Colorful_Accent3",e.listTable6Colorful_Accent4="ListTable6Colorful_Accent4",e.listTable6Colorful_Accent5="ListTable6Colorful_Accent5",e.listTable6Colorful_Accent6="ListTable6Colorful_Accent6",e.listTable7Colorful="ListTable7Colorful",e.listTable7Colorful_Accent1="ListTable7Colorful_Accent1",e.listTable7Colorful_Accent2="ListTable7Colorful_Accent2",e.listTable7Colorful_Accent3="ListTable7Colorful_Accent3",e.listTable7Colorful_Accent4="ListTable7Colorful_Accent4",e.listTable7Colorful_Accent5="ListTable7Colorful_Accent5",e.listTable7Colorful_Accent6="ListTable7Colorful_Accent6"}(Word.Style),function(n){var r,e=(r=OfficeCore.RequestContext,__extends(t,r),Object.defineProperty(t.prototype,"document",{get:function(){return this.m_document},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"application",{get:function(){return null==this.m_application&&(this.m_application=new n.Application(this,OfficeExtension.ObjectPathFactory.createNewObjectObjectPath(this,"Microsoft.WordServices.Application",!1))),this.m_application},enumerable:!0,configurable:!0}),t);function t(e){var t=r.call(this,e)||this;return t.m_document=new n.Document(t,OfficeExtension.ObjectPathFactory.createGlobalObjectObjectPath(t)),t._rootObject=t.m_document,t}n.RequestContext=e,n.run=function(e,t){return OfficeExtension.ClientRequestContext._runBatch("Word.run",arguments,function(){return new n.RequestContext})}}(Word=Word||{}),function(e){var t,n=OfficeExtension.BatchApiHelper.invokeMethod;(t=e.AutorunEventType||(e.AutorunEventType={})).onDocumentSave="OnDocumentSave",t.onDocumentSaveAs="OnDocumentSaveAs",(Document=e.Document||(e.Document={})).prototype.autorunEventCompleted=function(e){n(this,"AutorunEventCompleted",0,[e],0,0)}}(Word=Word||{}),function(e){var t=(Object.defineProperty(n.prototype,"type",{get:function(){return e.EventType.ActiveViewChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"activeView",{get:function(){return this.m_activeView.activeView},enumerable:!0,configurable:!0}),n);function n(e){this.m_activeView=e}e.ActiveViewChangedEventArgs=t}(OSF=OSF||{}),function(c){var e=(t.prototype.verifyArguments=function(e,t){for(var n in e){var r=e[n],i=t[n];if(r.enum)switch(typeof i){case"string":if(c.OUtil.listContainsValue(r.enum,i))break;case"undefined":throw 5007;default:throw this.getInvalidParameterString()}if(r.types&&!c.OUtil.listContainsValue(r.types,typeof i))throw this.getInvalidParameterString()}},t.prototype.extractRequiredArguments=function(e,t,n){if(e.length<this._requiredCount)throw c.Utility.createParameterException(Strings.OfficeOM.L_MissingRequiredArguments);var r,i=[];for(r=0;r<this._requiredCount;r++)i.push(e[r]);this.verifyArguments(this._requiredParameters,i);var o={};for(r=0;r<this._requiredCount;r++){var a=this._requiredParameters[r],s=i[r];if(a.verify&&!a.verify(s,t,n))throw this.getInvalidParameterString();o[a.name]=s}return o},t.prototype.fillOptions=function(e,t,n,r){for(var i in e=e||{},this._supportedOptions)if(!c.OUtil.listContainsKey(e,i)){var o=void 0,a=this._supportedOptions[i];a.calculate&&t&&(o=a.calculate(t,n,r)),o||void 0===a.defaultValue||(o=a.defaultValue),e[i]=o}return e},t.prototype.constructCallArgs=function(e,t,n,r){var i={};for(var o in e)i[o]=e[o];for(var a in t)i[a]=t[a];for(var s in this._privateStateCallbacks)i[s]=this._privateStateCallbacks[s](n,r);return this._checkCallArgs&&(i=this._checkCallArgs(i,n,r)),i},t.prototype.getInvalidParameterString=function(){var e=this;c.OUtil.delayExecutionAndCache(function(){return c.OUtil.formatString(Strings.OfficeOM.L_InvalidParameters,e._displayName)})},t);function t(e,t,n,r,i){this._requiredParameters=e,this._supportedOptions=t,this._privateStateCallbacks=n,this._checkCallArgs=r,this._displayName=i,this._requiredCount=e.length}c.ApiMethodCall=e}(OSF=OSF||{}),function(c){var e=(t.prototype.verifyAndExtractCall=function(e,t,n){var r=this._apiMethods.extractRequiredArguments(e,t,n),i=this.extractOptions(e,r,t,n);return this._apiMethods.constructCallArgs(r,i,t,n)},t.prototype.processResponse=function(e,t,n,r){return 0==e?this._onSucceeded?this._onSucceeded(t,n,r):t:this._onFailed?this._onFailed(e,t):c.DDA.ErrorCodeManager.getErrorArgs(e)},t.prototype.getCallArgs=function(e){for(var t,n,r=e.length-1;r>=this._requiredCount;r--){var i=e[r];switch(typeof i){case"object":t=i;break;case"function":n=i}}return t=t||{},n&&(t[c.ParameterNames.Callback]=n),t},t.prototype.extractOptions=function(e,t,n,r){if(e.length>this._requiredCount+2)throw c.Utility.createParameterException(Strings.OfficeOM.L_TooManyArguments);for(var i,o,a=e.length-1;a>=this._requiredCount;a--){var s=e[a];switch(typeof s){case"object":if(i)throw c.Utility.createParameterException(Strings.OfficeOM.L_TooManyOptionalObjects);i=s;break;case"function":if(o)throw c.Utility.createParameterException(Strings.OfficeOM.L_TooManyOptionalFunction);o=s;break;default:throw c.Utility.createArgumentException(Strings.OfficeOM.L_InValidOptionalArgument)}}if(i=this._apiMethods.fillOptions(i,t,n,r),o){if(i[c.ParameterNames.Callback])throw Strings.OfficeOM.L_RedundantCallbackSpecification;i[c.ParameterNames.Callback]=o}return this._apiMethods.verifyArguments(this._supportedOptions,i),i},t);function t(e,t,n,r,i,o,a){this._requiredParameters=e,this._supportedOptions=t,this._privateStateCallbacks=n,this._onSucceeded=r,this._onFailed=i,this._displayName=a,this._checkCallArgs=o,this._requiredCount=e.length,this._apiMethods=new c.ApiMethodCall(e,t,n,o,a)}c.AsyncMethodCall=e}(OSF=OSF||{}),function(i){var e,o;e=i.AsyncMethodCalls||(i.AsyncMethodCalls={}),o={},e.define=function(e){var t,n,r;o[e.method]=(n=(t=e).supportedOptions?i.OUtil.createObject(t.supportedOptions):[],r=t.privateStateCallbacks?i.OUtil.createObject(t.privateStateCallbacks):[],new i.AsyncMethodCall(t.requiredArguments||[],n,r,t.onSucceeded,t.onFailed,t.checkCallArgs,t.method))},e.get=function(e){return o[e]}}(OSF=OSF||{}),(OSF||(OSF={})).AsyncMethods={AddColumnsAsync:"addColumnsAsync",AddFromSelectionAsync:"addFromSelectionAsync",AddFromNamedItemAsync:"addFromNamedItemAsync",AddFromPromptAsync:"addFromPromptAsync",AddHandlerAsync:"addHandlerAsync",AddRowsAsync:"addRowsAsync",BindingSelectionChanged:"bindingSelectionChanged",BindingDataChanged:"bindingDataChanged",ClearFormatsAsync:"clearFormatsAsync",CloseAsync:"close",CloseContainerAsync:"closeContainer",DeleteAllDataValuesAsync:"deleteAllDataValuesAsync",DisplayDialogAsync:"displayDialogAsync",ExecuteFeature:"executeFeature",ExecuteRichApiRequestAsync:"executeRichApiRequestAsync",GetAllAsync:"getAllAsync",GetAccessTokenAsync:"getAccessTokenAsync",GetByIdAsync:"getByIdAsync",GetDataAsync:"getDataAsync",GetDocumentCopyAsync:"getFileAsync",GetDocumentCopyChunkAsync:"getSliceAsync",GetFilePropertiesAsync:"getFilePropertiesAsync",GetSelectedDataAsync:"getSelectedDataAsync",GoToByIdAsync:"goToByIdAsync",OpenBrowserWindow:"openBrowserWindow",QueryFeature:"queryFeature",ReleaseByIdAsync:"releaseByIdAsync",RemoveHandlerAsync:"removeHandlerAsync",ReleaseDocumentCopyAsync:"closeAsync",SetDataAsync:"setDataAsync",SetFormatsAsync:"setFormatsAsync",SetSelectedDataAsync:"setSelectedDataAsync",SetTableOptionsAsync:"setTableOptionsAsync",GetOfficeThemeAsync:"getOfficeThemeAsync",GetDocumentThemeAsync:"getDocumentThemeAsync"},function(e){var t;(t=e.PropertyDescriptors||(e.PropertyDescriptors={})).Subset="subset",t.BindingProperties="BindingProperties";var n=(Object.defineProperty(r.prototype,"startRow",{get:function(){return this.m_subset.startRow},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"startColumn",{get:function(){return this.m_subset.startColumn},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rowCount",{get:function(){return this.m_subset.rowCount},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"columnCount",{get:function(){return this.m_subset.columnCount},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"type",{get:function(){return e.EventType.BindingSelectionChanged},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"binding",{get:function(){return this.m_bindingInstance},enumerable:!0,configurable:!0}),r);function r(e,t){this.m_bindingInstance=e,this.m_subset=t}e.BindingSelectionChangedEventArgs=n;var i=(Object.defineProperty(o.prototype,"type",{get:function(){return e.EventType.BindingDataChanged},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"binding",{get:function(){return this.m_bindingInstance},enumerable:!0,configurable:!0}),o);function o(e){this.m_bindingInstance=e}e.BindingDataChangedEventArgs=i}(OSF=OSF||{}),function(e){var t,n,r,i,o,a;(t=e.PropertyDescriptors||(e.PropertyDescriptors={})).DataPartProperties="DataPartProperties",t.DataNodeProperties="DataNodeProperties",n=e.Marshaling||(e.Marshaling={}),r=n.Customxml||(n.Customxml={}),(i=r.DataNodeEventProperties||(r.DataNodeEventProperties={})).OldNode="OldNode",i.NewNode="NewNode",i.NextSiblingNode="NextSiblingNode",i.InUndoRedo="InUndoRedo",(o=e.EventDescriptors||(e.EventDescriptors={})).DataNodeInsertedEvent="DataNodeInsertedEvent",o.DataNodeReplacedEvent="DataNodeReplacedEvent",o.DataNodeDeletedEvent="DataNodeDeletedEvent",(a=e.DataNodeEventProperties||(e.DataNodeEventProperties={})).OldNode="OldNode",a.NewNode="NewNode",a.NextSiblingNode="NextSiblingNode",a.InUndoRedo="InUndoRedo";var s=(Object.defineProperty(c.prototype,"type",{get:function(){return e.EventType.DataNodeInserted},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"newNode",{get:function(){return this.m_newNode},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"inUndoRedo",{get:function(){return this.m_inUndoRedo},enumerable:!0,configurable:!0}),c);function c(e,t){this.m_newNode=e,this.m_inUndoRedo=t}e.NodeInsertedEventArgs=s;var l=(Object.defineProperty(u.prototype,"type",{get:function(){return e.EventType.DataNodeReplaced},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"oldNode",{get:function(){return this.m_oldNode},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"newNode",{get:function(){return this.m_newNode},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"inUndoRedo",{get:function(){return this.m_inUndoRedo},enumerable:!0,configurable:!0}),u);function u(e,t,n){this.m_oldNode=e,this.m_newNode=t,this.m_inUndoRedo=n}e.NodeReplacedEventArgs=l;var p=(Object.defineProperty(f.prototype,"type",{get:function(){return e.EventType.DataNodeDeleted},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"oldNode",{get:function(){return this.m_oldNode},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"oldNextSibling",{get:function(){return this.m_oldNextSibling},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"inUndoRedo",{get:function(){return this.m_inUndoRedo},enumerable:!0,configurable:!0}),f);function f(e,t,n){this.m_oldNode=e,this.m_oldNextSibling=t,this.m_inUndoRedo=n}e.NodeDeletedEventArgs=p}(OSF=OSF||{}),function(t){function e(e){0==e[t.PropertyDescriptors.MessageType]?t.OUtil.defineEnumerableProperties(this,{type:{value:t.EventType.DialogMessageReceived},message:{value:e[t.PropertyDescriptors.MessageContent]},origin:{value:e[t.PropertyDescriptors.MessageOrigin]}}):t.OUtil.defineEnumerableProperties(this,{type:{value:t.EventType.DialogEventReceived},error:{value:e[t.PropertyDescriptors.MessageType]}})}var n;t.DialogEventArgs=e,(n=t.PropertyDescriptors||(t.PropertyDescriptors={})).MessageType="messageType",n.MessageContent="messageContent",n.MessageOrigin="messageOrigin"}(OSF=OSF||{}),function(e){var t=(Object.defineProperty(n.prototype,"type",{get:function(){return e.EventType.DocumentSelectionChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"document",{get:function(){return this.m_docInstance},enumerable:!0,configurable:!0}),n);function n(e){this.m_docInstance=e}e.DocumentSelectionChangedEventArgs=t}(OSF=OSF||{}),function(t){function e(e){t.OUtil.defineEnumerableProperties(this,{type:{value:t.EventType.DialogParentMessageReceived},message:{value:e[t.PropertyDescriptors.MessageContent]},origin:{value:e[t.PropertyDescriptors.MessageOrigin]}})}t.DialogParentEventArgs=e}(OSF=OSF||{}),function(m){var e,o;function h(e){return e==m.EventDispId.dispidObjectDeletedEvent||e==m.EventDispId.dispidObjectSelectionChangedEvent||e==m.EventDispId.dispidObjectDataChangedEvent||e==m.EventDispId.dispidContentControlAddedEvent}function _(e,t,n,r){if("number"!=typeof e)throw e;O(r=r||t.getCallArgs(n),e,m.DDA.ErrorCodeManager.getErrorArgs(e))}function b(e){return(m._OfficeAppFactory.getHostInfo().hostPlatform==m.HostInfoPlatform.web?m.WACDelegate:m.SafeArrayDelegate)[e]}function v(){return o||function(){o={};var e={GoToByIdAsync:82,GetSelectedDataAsync:64,SetSelectedDataAsync:65,GetDocumentCopyChunkAsync:80,ReleaseDocumentCopyAsync:81,GetDocumentCopyAsync:77,AddFromSelectionAsync:66,AddFromPromptAsync:67,AddFromNamedItemAsync:78,GetAllAsync:74,GetByIdAsync:68,ReleaseByIdAsync:69,GetDataAsync:70,SetDataAsync:71,AddRowsAsync:72,AddColumnsAsync:79,DeleteAllDataValuesAsync:73,RefreshAsync:75,SaveAsync:76,GetActiveViewAsync:83,GetFilePropertiesAsync:86,GetOfficeThemeAsync:85,GetDocumentThemeAsync:84,ClearFormatsAsync:87,SetTableOptionsAsync:88,SetFormatsAsync:89,GetUserIdentityInfoAsync:92,GetAccessTokenAsync:98,GetAuthContextAsync:99,ExecuteRichApiRequestAsync:93,AppCommandInvocationCompletedAsync:94,CloseContainerAsync:97,OpenBrowserWindow:102,CreateDocumentAsync:105,InsertFormAsync:106,ExecuteFeature:146,QueryFeature:147,AddDataPartAsync:128,GetDataPartByIdAsync:129,GetDataPartsByNameSpaceAsync:130,GetPartXmlAsync:131,GetPartNodesAsync:132,DeleteDataPartAsync:133,GetNodeValueAsync:134,GetNodeXmlAsync:135,GetRelativeNodesAsync:136,SetNodeValueAsync:137,SetNodeXmlAsync:138,AddDataPartNamespaceAsync:139,GetDataPartNamespaceAsync:140,GetDataPartPrefixAsync:141,GetNodeTextAsync:142,SetNodeTextAsync:143,GetSelectedTask:110,GetTask:112,GetWSSUrl:114,GetTaskField:115,GetSelectedResource:111,GetResourceField:113,GetProjectField:116,GetSelectedView:117,GetTaskByIndex:118,GetResourceByIndex:119,SetTaskField:120,SetResourceField:121,GetMaxTaskIndex:122,GetMaxResourceIndex:123,CreateTask:124};for(var t in e)m.AsyncMethods[t]&&(o[m.AsyncMethods[t]]=e[t]);var n={MessageParent:144,SendMessage:145};for(var t in n)m.SyncMethods[t]&&(o[m.SyncMethods[t]]=n[t]);var r={SettingsChanged:m.EventDispId.dispidSettingsChangedEvent,DocumentSelectionChanged:m.EventDispId.dispidDocumentSelectionChangedEvent,BindingSelectionChanged:m.EventDispId.dispidBindingSelectionChangedEvent,BindingDataChanged:m.EventDispId.dispidBindingDataChangedEvent,ActiveViewChanged:m.EventDispId.dispidActiveViewChangedEvent,OfficeThemeChanged:m.EventDispId.dispidOfficeThemeChangedEvent,DocumentThemeChanged:m.EventDispId.dispidDocumentThemeChangedEvent,AppCommandInvoked:m.EventDispId.dispidAppCommandInvokedEvent,DialogMessageReceived:m.EventDispId.dispidDialogMessageReceivedEvent,DialogParentMessageReceived:m.EventDispId.dispidDialogParentMessageReceivedEvent,ObjectDeleted:m.EventDispId.dispidObjectDeletedEvent,ObjectSelectionChanged:m.EventDispId.dispidObjectSelectionChangedEvent,ObjectDataChanged:m.EventDispId.dispidObjectDataChangedEvent,ContentControlAdded:m.EventDispId.dispidContentControlAddedEvent,LiveShareStateChanged:m.EventDispId.dispidLiveShareStateChangedEvent,RichApiMessage:m.EventDispId.dispidRichApiMessageEvent,DataNodeInserted:m.EventDispId.dispidDataNodeAddedEvent,DataNodeReplaced:m.EventDispId.dispidDataNodeReplacedEvent,DataNodeDeleted:m.EventDispId.dispidDataNodeDeletedEvent};for(var i in r)m.EventType[i]&&(o[m.EventType[i]]=r[i])}(),o}function O(e,t,n){var r=e[m.ParameterNames.Callback];if(r){var i,o={};o[m.DDA.AsyncResultEnum.Properties.Context]=e[m.ParameterNames.AsyncContext],0==t?o[m.DDA.AsyncResultEnum.Properties.Value]=n:(i={},n=n||m.DDA.ErrorCodeManager.getErrorArgs(5001),i[m.DDA.AsyncResultEnum.ErrorProperties.Code]=t||5001,i[m.DDA.AsyncResultEnum.ErrorProperties.Name]=n.name||n,i[m.DDA.AsyncResultEnum.ErrorProperties.Message]=n.message||n),r(new m.DDA.AsyncResult(o,i))}}m.DialogShownStatus={hasDialogShown:!1,isWindowDialog:!1},(e=m.DispIdHost||(m.DispIdHost={})).InvokeMethod=function(e,t,i,n){var r,o;try{var a=m.AsyncMethodCalls.get(e);o=a.verifyAndExtractCall(t,i,n);var s=v()[e],c=b("executeAsync"),l=null,u=!1,p=void 0;if(window.Excel&&window.Office.context.requirements.isSetSupported("RedirectV1Api")&&(window.Excel._RedirectV1APIs=!0,u=(r=function(e){var t=!1,n=void 0;if(void 0!==m&&m._OfficeAppFactory&&"function"==typeof m._OfficeAppFactory.getHostInfo&&m.HostInfoPlatform&&m.HostInfoPlatform.ios){var r=m._OfficeAppFactory.getHostInfo();if(r&&r.hostPlatform&&(t=r.hostPlatform===m.HostInfoPlatform.ios)&&m.AsyncMethods)for(var i=Object.keys(m.AsyncMethods),o=0;o<i.length;o++){var a=i[o];if(m.AsyncMethods[a]===e){n=a;break}}}return{isIOSPlatformDetected:t,methodId:n}}(e)).isIOSPlatformDetected,p=r.methodId),window.Excel&&window.Excel._RedirectV1APIs&&(l=window.Excel._V1APIMap[u&&void 0!==p?p:e])){var f=m.OUtil.shallowCopy(o);delete f[m.ParameterNames.AsyncContext],l.preprocess&&(f=l.preprocess(f));var d=new window.Excel.RequestContext,h=l.call(d,f);d.sync().then(function(){var e=h.value,t=e.status;delete e.status,delete e["@odata.type"],l.postprocess&&(e=l.postprocess(e,f)),0!=t&&(e=m.DDA.ErrorCodeManager.getErrorArgs(t)),O(o,t,e)}).catch(function(e){O(o,13991,null)})}else{var g;g=m.HostParameterMap.toHost(s,o);var y=(new Date).getTime();c({dispId:s,hostCallArgs:g,onCalling:function(){},onReceiving:function(){},onComplete:function(e,t){var n;n=0==e?m.HostParameterMap.fromHost(s,t):t;var r=a.processResponse(e,n,i,o);O(o,e,r),m.AppTelemetry&&m.AppTelemetry.onMethodDone(s,g,Math.abs((new Date).getTime()-y),e)}})}}catch(e){_(e,a,t,o)}},e.AddEventHandler=function(t,n,r,e){var i,o,a,s=!1;function c(e){var t;0==e&&((s?n.addObjectEventHandler(o,i[m.ParameterNames.Id],a):n.addEventHandler(o,a))||(e=13991));0!=e&&(t=m.DDA.ErrorCodeManager.getErrorArgs(e)),O(i,e,t)}try{var l=m.AsyncMethodCalls.get(m.AsyncMethods.AddHandlerAsync);if(i=l.verifyAndExtractCall(t,r,n),o=i[m.ParameterNames.EventType],a=i[m.ParameterNames.Handler],e)return void c(0);var u=v()[o],p=(s=h(u))?i[m.ParameterNames.Id]:r.id||"";if(0==(s?n.getObjectEventHandlerCount(o,p):n.getEventHandlerCount(o)))b("registerEventAsync")({eventType:o,dispId:u,targetId:p,onCalling:function(){},onReceiving:function(){},onComplete:c,onEvent:function(e){var t=m.HostParameterMap.fromHost(u,e);s?n.fireObjectEvent(p,m.manufactureEventArgs(o,p,t)):n.fireEvent(m.manufactureEventArgs(o,r,t))}});else c(0)}catch(e){_(e,l,t,i)}},e.RemoveEventHandler=function(t,e,n){var r,i,o,a=!1;function s(e){var t;0!=e&&(t=m.DDA.ErrorCodeManager.getErrorArgs(e)),O(r,e,t)}try{var c=m.AsyncMethodCalls.get(m.AsyncMethods.RemoveHandlerAsync);i=(r=c.verifyAndExtractCall(t,n,e))[m.ParameterNames.EventType],o=r[m.ParameterNames.Handler];var l,u,p=v()[i],f=(a=h(p))?r[m.ParameterNames.Id]:n.id||"";l=null===o?(u=a?e.clearObjectEventHandlers(i,f):e.clearEventHandlers(i),0):(u=a?e.removeObjectEventHandler(i,f,o):e.removeEventHandler(i,o))?0:5003;var d=a?e.getObjectEventHandlerCount(i,f):e.getEventHandlerCount(i);if(u&&0==d)b("unregisterEventAsync")({eventType:i,dispId:p,targetId:f,onCalling:function(){},onReceiving:function(){},onComplete:s});else s(l)}catch(e){_(e,c,t,r)}},e.OpenDialog=function(t,i,o){var r,a,s=m.EventType.DialogMessageReceived,c=m.EventType.DialogEventReceived;function e(e){if(0!=e)n=m.DDA.ErrorCodeManager.getErrorArgs(e);else{var t={};t.id=a,t.data=i;var n=l.processResponse(e,t,o,r);m.DialogShownStatus.hasDialogShown=!0,i.clearEventHandlers(s),i.clearEventHandlers(c)}O(r,e,n)}try{if(null!=s&&null!=c||e(5e3),null==m.AsyncMethods.DisplayDialogAsync)return void e(5001);var l=m.AsyncMethodCalls.get(m.AsyncMethods.DisplayDialogAsync);r=l.verifyAndExtractCall(t,o,i);var u=v()[s],n=b("openDialog");a=JSON.stringify(r),m.DialogShownStatus.hasDialogShown||(i.clearQueuedEvent(s),i.clearQueuedEvent(c),i.clearQueuedEvent(m.EventType.DialogParentMessageReceived)),n({eventType:s,dispId:u,targetId:a,onCalling:function(){},onReceiving:function(){},onComplete:e,onEvent:function(e){var t=m.HostParameterMap.fromHost(u,e),n=m.manufactureEventArgs(s,o,t);if(n.type==c){m.DDA.ErrorCodeManager.getErrorArgs(n.error);var r={};r.code=status||5001,n.error=new m.DDA.Error(r[m.DDA.AsyncResultEnum.ErrorProperties.Name],r[m.DDA.AsyncResultEnum.ErrorProperties.Message],r[m.DDA.AsyncResultEnum.ErrorProperties.Code])}i.fireOrQueueEvent(n),12006==t.messageType&&(i.clearEventHandlers(s),i.clearEventHandlers(c),i.clearEventHandlers(m.EventType.DialogParentMessageReceived),m.DialogShownStatus.hasDialogShown=!1)}})}catch(e){_(e,l,t,r)}},e.CloseDialog=function(t,e,n,r){var i,o,a;try{var s=m.AsyncMethodCalls.get(m.AsyncMethods.CloseAsync);i=s.verifyAndExtractCall(t,r,n),o=m.EventType.DialogMessageReceived,a=m.EventType.DialogEventReceived,n.clearEventHandlers(o),n.clearEventHandlers(a);var c=v()[o];b("closeDialog")({eventType:o,dispId:c,targetId:e,onCalling:function(){},onReceiving:function(){},onComplete:function(e){m.DialogShownStatus.hasDialogShown=!1}})}catch(e){_(e,s,t,i)}},e.MessageParent=function(e,t){var n=m.SyncMethodCalls.get(m.SyncMethods.MessageParent).verifyAndExtractCall(e,t,{});return b("messageParent")({dispId:v()[m.SyncMethods.MessageParent],hostCallArgs:n,onCalling:function(){},onReceiving:function(){}})},e.SendMessage=function(e,t,n){var r=m.SyncMethodCalls.get(m.SyncMethods.SendMessage).verifyAndExtractCall(e,n,{});return b("sendMessage")({dispId:v()[m.SyncMethods.SendMessage],hostCallArgs:r,onCalling:function(){},onReceiving:function(){}})},e.addAsyncMethods=function(t,e,n){for(var r in e){var i=e[r];t[i]||m.OUtil.defineEnumerableProperty(t,i,{value:function(e){return function(){(0,m.DispIdHost.InvokeMethod)(e,arguments,t,n)}}(i)})}},e.addEventSupport=function(e,t,n){var r=m.AsyncMethods.AddHandlerAsync,i=m.AsyncMethods.RemoveHandlerAsync;e[r]||m.OUtil.defineEnumerableProperty(e,r,{value:function(){(0,m.DispIdHost.AddEventHandler)(arguments,t,e,n)}}),e[i]||m.OUtil.defineEnumerableProperty(e,i,{value:function(){(0,m.DispIdHost.RemoveEventHandler)(arguments,t,e)}})},e.issueAsyncResult=O}(OSF=OSF||{}),function(i){i.manufactureEventArgs=function(e,t,n){var r;switch(e){case i.EventType.DocumentSelectionChanged:r=new i.DocumentSelectionChangedEventArgs(t);break;case i.EventType.BindingSelectionChanged:r=new i.BindingSelectionChangedEventArgs(i.manufactureBinding(n,t.document),n[i.PropertyDescriptors.Subset]);break;case i.EventType.BindingDataChanged:r=new i.BindingDataChangedEventArgs(i.manufactureBinding(n,t.document));break;case i.EventType.SettingsChanged:r=new i.SettingsChangedEventArgs(t);break;case i.EventType.ActiveViewChanged:r=new i.ActiveViewChangedEventArgs(n);break;case i.EventType.LiveShareStateChanged:r=new i.LiveShareStateChangedEventArgs(n);break;case i.EventType.OfficeThemeChanged:r=new i.DDA.Theming.OfficeThemeChangedEventArgs(n);break;case i.EventType.DocumentThemeChanged:r=new i.DDA.Theming.DocumentThemeChangedEventArgs(n);break;case i.EventType.DataNodeInserted:r=new i.NodeInsertedEventArgs(i.manufactureDataNode(n[i.DataNodeEventProperties.NewNode]),n[i.DataNodeEventProperties.InUndoRedo]);break;case i.EventType.DataNodeReplaced:r=new i.NodeReplacedEventArgs(i.manufactureDataNode(n[i.DataNodeEventProperties.OldNode]),i.manufactureDataNode(n[i.DataNodeEventProperties.NewNode]),n[i.DataNodeEventProperties.InUndoRedo]);break;case i.EventType.DataNodeDeleted:r=new i.NodeDeletedEventArgs(i.manufactureDataNode(n[i.DataNodeEventProperties.OldNode]),i.manufactureDataNode(n[i.DataNodeEventProperties.NextSiblingNode]),n[i.DataNodeEventProperties.InUndoRedo]);break;case i.EventType.DialogMessageReceived:r=new i.DialogEventArgs(n);break;case i.EventType.DialogParentMessageReceived:r=new i.DialogParentEventArgs(n)}return r}}(OSF=OSF||{}),function(d){var h="toHost",g="fromHost";!function(u){var t;u.self="self",u.dynamicTypes={},u.dynamicTypes[d.ParameterNames.Data]={toHost:function(e){if(null!=e&&void 0!==e.rows){var t={};t[d.TableDataProperties.TableRows]=e.rows,t[d.TableDataProperties.TableHeaders]=e.headers,e=t}return e},fromHost:function(e){return e}},u.dynamicTypes.sampleData=u.dynamicTypes.data;var p={};function r(e,t){var n,r;if(t.map)for(var i in r={},n=t.map){var o=n[i];o==u.self&&(o=i),r[o]=i}else n=t.toHost,r=t.fromHost;var a=p[e];if(a){var s=a[h];for(var c in s)n[c]=s[c];for(var l in s=a[g])r[l]=s[l]}else a=p[e]={};a[h]=n,a[g]=r}function i(e){f().addComplexType(e)}function l(e,t){var n=e?{}:void 0;for(var r in e){var i,o=e[r];if(d.ListType.isListType(r))for(var a in i=[],o)i.push(l(o[a],t));else if(d.OUtil.listContainsKey(u.dynamicTypes,r))i=u.dynamicTypes[r][t](o);else if(t==g&&f().preserveNesting(r))i=l(o,t);else{var s=p[r];if(s){var c=s[t];c&&void 0===(i=c[o])&&(i=o)}else i=o}n[r]=i}return n}function n(e,t,n){var r,i=p[e][n];if("toHost"==n)r=function e(t,n){var r;for(var i in n){var o;if(null!=(o=f().isComplexType(i)?e(t,p[i][h]):t[i])){r=r||{};var a=n[i];a==u.self&&(a=i),r[a]=f().pack(i,o)}}return r}(l(t,n),i);else if("fromHost"==n){r=l(function e(t,n,r){for(var i in r=r||{},n){var o,a,s=n[i];if(s==u.self)o=t;else{if("sourceData"==s){r[i]=t.toArray();continue}o=t[s]}if(null==o)r[i]=void 0;else if(o=f().unpack(i,o),f().isComplexType(i))a=p[i][g],f().preserveNesting(i)?r[i]=e(o,a):e(o,a,r);else if(d.ListType.isListType(i)){(a={})[d.ListType.getDescriptor(i)]=u.self;var c=new Array(o.length);for(var l in o)c[l]=e(o[l],a);r[i]=c}else r[i]=o}return r}(t,i),n)}return r}function f(){if(!t){var e=d._OfficeAppFactory.getHostInfo();t=e.hostPlatform==d.HostInfoPlatform.web?new d.WebSpecialProcessor:new d.SafeArraySpecialProcessor}return t}function o(e){var t=null;if(e){t={};for(var n=e.length,r=0;r<n;r++)t[e[r].name]=e[r].value}return t}u.define=function(e){var t={},n=o(e.toHost);e.invertible?t.map=n:e.canonical?t.toHost=t.fromHost=n:(t.toHost=n,t.fromHost=o(e.fromHost)),r(e.type,t),e.isComplexType&&i(e.type)},u.toHost=function(e,t){return n(e,t,h)},u.fromHost=function(e,t){return n(e,t,g)},u.addMapping=r,u.addComplexType=i,u.getDynamicType=function(e){return f().getDynamicType(e)},u.setDynamicType=function(e,t){f().setDynamicType(e,t)},u.doMapValues=function(e,t){return l(e,t)}}(d.HostParameterMap||(d.HostParameterMap={}))}(OSF=OSF||{}),function(t){var e,n;e=t.ListType||(t.ListType={}),n={},e.setListType=function(e,t){n[e]=t},e.isListType=function(e){return t.OUtil.listContainsKey(n,e)},e.getDescriptor=function(e){return n[e]}}(OSF=OSF||{}),function(e){var t=(Object.defineProperty(n.prototype,"type",{get:function(){return e.EventType.LiveShareStateChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"liveShareState",{get:function(){return this.m_liveShareStateInstance},enumerable:!0,configurable:!0}),n);function n(e){this.m_liveShareStateInstance=e}e.LiveShareStateChangedEventArgs=t}(OSF=OSF||{}),function(e){var t;(t=e.EventType||(e.EventType={})).ActiveViewChanged="activeViewChanged",t.DialogMessageReceived="dialogMessageReceived",t.DialogParentMessageReceived="dialogParentMessageReceived",t.DialogParentEventReceived="dialogParentEventReceived",t.DialogEventReceived="dialogEventReceived",t.BindingDataChanged="bindingDataChanged",t.BindingSelectionChanged="bindingSelectionChanged",t.OfficeThemeChanged="officeThemeChanged",t.DocumentThemeChanged="documentThemeChanged",t.DataNodeDeleted="nodeDeleted",t.DataNodeInserted="nodeInserted",t.DataNodeReplaced="nodeReplaced",t.DocumentSelectionChanged="documentSelectionChanged",t.LiveShareStateChanged="liveShareStateChanged",t.NodeDeleted="nodeDeleted",t.NodeInserted="nodeInserted",t.NodeReplaced="nodeReplaced",t.SettingsChanged="settingsChanged"}(Office=Office||{}),function(e){var t;(t=e.TableDataProperties||(e.TableDataProperties={})).TableRows="TableRows",t.TableHeaders="TableHeaders"}(OSF=OSF||{}),function(d){!function(e){var t,n,r,i,o,a,s;function c(){try{var e=window.navigator.userAgent;return-1<e.indexOf("MSIE ")||-1<e.indexOf("Trident/")||-1<e.indexOf("Edge/")}catch(e){return f("Error happens in isInternetExplorer.",e),!1}}function l(e){if("undefined"!=typeof JSON)try{return JSON.stringify(e)}catch(e){}return""}(t=e.HostThemeButtonStyleKeys||(e.HostThemeButtonStyleKeys={})).ButtonBorderColor="buttonBorderColor",t.ButtonBackgroundColor="buttonBackgroundColor",(r=n=n||{}).HostButtonBorderColor="#86bfa0",r.HostButtonBackgroundColor="#d3f0e0",(o=i=i||{}).HostButtonBorderColor="#a3bde3",o.HostButtonBackgroundColor="#d5e1f2",(s=a=a||{}).HostButtonBorderColor="#f5ba9d",s.HostButtonBackgroundColor="#fcf0ed",e.finalizeProperties=function(e,t){t=t||{};for(var n=Object.getOwnPropertyNames(e),r=n.length,i=0;i<r;i++){var o=n[i],a=Object.getOwnPropertyDescriptor(e,o);a.get||a.set||(a.writable=t.writable||!1),a.configurable=t.configurable||!1,a.enumerable=t.enumerable||!0,Object.defineProperty(e,o,a)}return e},e.defineEnumerableProperties=function(e,t){return function(e,t,n){for(var r in t=t||{})p(e,r,t[r],n);return e}(e,t,["enumerable"])},e.defineEnumerableProperty=function(e,t,n){return p(e,t,n,["enumerable"])},e.listContainsKey=function(e,t){for(var n in e)if(t==n)return!0;return!1},e.augmentList=function(n,e){var t=n.push?function(e,t){n.push(t)}:function(e,t){n[e]=t};for(var r in e)t(r,e[r])},e.createObject=function(e){var t=null;if(e){t={};for(var n=e.length,r=0;r<n;r++)t[e[r].name]=e[r].value}return t},e.listContainsValue=function(e,t){for(var n in e)if(t==e[n])return!0;return!1},e.shouldUseLocalStorageToPassMessage=function(){try{for(var e=["Windows NT 6.1","Windows NT 6.2","Windows NT 6.3","Windows NT 10.0"],t=window.navigator.userAgent,n=0,r=e.length;n<r;n++)if(-1<t.indexOf(e[n]))return c();return!1}catch(e){return f("Error happens in shouldUseLocalStorageToPassMessage.",e),!1}},e.isInternetExplorer=c,e.serializeObjectToString=l,e.formatString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e;return r[0].replace(/{(\d+)}/gm,function(e,t){var n=parseInt(t,10)+1;return void 0===r[n]?"{"+t+"}":r[n]})},e.addHostInfoAsQueryParam=function(e,t){if(!e)return null;var n,r="#",i=(e=e.trim()||"").split(r),o=i.shift(),a=i.join(r),s=o.split("?");return 1<s.length?n=o+"&_host_Info="+t:0<s.length&&(n=o+"?_host_Info="+t),a?[n,r,a].join(""):n},e.getHostnamePortionForLogging=function(e){var t=e.split("."),n=t.length;return 2<=n?t[n-2]+"."+t[n-1]:1==n?t[0]:void 0},e.shallowCopy=function(e){if(null==e)return null;if(e instanceof Object){if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}var r=e.constructor();for(var i in e)e.hasOwnProperty(i)&&(r[i]=e[i]);return r}return e},e.getXdmEventName=function(e,t){return t==d.EventType.BindingSelectionChanged||t==d.EventType.BindingDataChanged||t==d.EventType.DataNodeDeleted||t==d.EventType.DataNodeInserted||t==d.EventType.DataNodeReplaced?e+"_"+t:t},e.getCommonUI=function(){switch(Office.context.host){case Office.HostType.Excel:return n;case Office.HostType.Word:return i;case Office.HostType.PowerPoint:return a}return null},e.getDomainForUrl=function(e){if(!e)return null;var t=document.createElement("a");return t.href=e,t.protocol+"//"+t.host},e.delayExecutionAndCache=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={calc:e[0]};return n.calc&&(n.val=n.calc.apply(this,e),delete n.calc),n.val};var u=-1;function p(e,t,n,r){for(var i in n=n||{},r){var o=r[i];null==n[o]&&(n[o]=!0)}return Object.defineProperty(e,t,n),e}function f(e,t){d.Utility.trace(e+" Exception details: "+l(t))}e.getUniqueId=function(){return(u+=1).toString()}}(d.OUtil||(d.OUtil={}))}(OSF=OSF||{}),function(e){var t;(t=e.ParameterNames||(e.ParameterNames={})).BindingType="bindingType",t.CoercionType="coercionType",t.ValueFormat="valueFormat",t.FilterType="filterType",t.Columns="columns",t.SampleData="sampleData",t.GoToType="goToType",t.SelectionMode="selectionMode",t.Id="id",t.PromptText="promptText",t.ItemName="itemName",t.FailOnCollision="failOnCollision",t.StartRow="startRow",t.StartColumn="startColumn",t.RowCount="rowCount",t.ColumnCount="columnCount",t.Rows="rows",t.OverwriteIfStale="overwriteIfStale",t.FileType="fileType",t.EventType="eventType",t.Handler="handler",t.SliceSize="sliceSize",t.SliceIndex="sliceIndex",t.ActiveView="activeView",t.Status="status",t.PlatformType="platformType",t.HostType="hostType",t.Email="email",t.OfficeTheme="officeTheme",t.DocumentTheme="documentTheme",t.ForceConsent="forceConsent",t.ForceAddAccount="forceAddAccount",t.AuthChallenge="authChallenge",t.AllowConsentPrompt="allowConsentPrompt",t.ForMSGraphAccess="forMSGraphAccess",t.AllowSignInPrompt="allowSignInPrompt",t.JsonPayload="jsonPayload",t.EnableNewHosts="enableNewHosts",t.AccountTypeFilter="accountTypeFilter",t.AddinTrustId="addinTrustId",t.Reserved="reserved",t.Tcid="tcid",t.Xml="xml",t.Namespace="namespace",t.Prefix="prefix",t.XPath="xPath",t.Text="text",t.ImageLeft="imageLeft",t.ImageTop="imageTop",t.ImageWidth="imageWidth",t.ImageHeight="imageHeight",t.TaskId="taskId",t.FieldId="fieldId",t.FieldValue="fieldValue",t.ServerUrl="serverUrl",t.ListName="listName",t.ResourceId="resourceId",t.ViewType="viewType",t.ViewName="viewName",t.GetRawValue="getRawValue",t.CellFormat="cellFormat",t.TableOptions="tableOptions",t.TaskIndex="taskIndex",t.ResourceIndex="resourceIndex",t.CustomFieldId="customFieldId",t.Url="url",t.MessageHandler="messageHandler",t.Width="width",t.Height="height",t.RequireHTTPs="requireHTTPS",t.DisplayInIframe="displayInIframe",t.HideTitle="hideTitle",t.UseDeviceIndependentPixels="useDeviceIndependentPixels",t.PromptBeforeOpen="promptBeforeOpen",t.EnforceAppDomain="enforceAppDomain",t.UrlNoHostInfo="urlNoHostInfo",t.Base64="base64",t.FormId="formId"}(OSF=OSF||{}),function(s){var e;function r(n,r){var i=(new Date).getTime();return function(e){r.onReceiving&&r.onReceiving();var t=e.toArray?e.toArray()[0]:e;return r.onComplete&&r.onComplete(t),s.AppTelemetry&&s.AppTelemetry.onRegisterDone(n,r.dispId,Math.abs((new Date).getTime()-i),t),!0}}function c(e){var t=e;if(null!=e&&e.toArray){var n=e.toArray();t=new Array(n.length);for(var r=0;r<n.length;r++)t[r]=c(n[r])}return t}(e=s.SafeArrayDelegate||(s.SafeArrayDelegate={})).executeAsync=function(a){try{a.onCalling&&a.onCalling(),s._OfficeAppFactory.getClientHostController().execute(a.dispId,function e(t){var n=t;if(s.OUtil.isArray(t))for(var r=n.length,i=0;i<r;i++)n[i]=e(n[i]);else if(s.OUtil.isDate(t))n=t.getVarDate();else if("object"==typeof t&&!s.OUtil.isArray(t))for(var o in n=[],t)s.OUtil.isFunction(t[o])||(n[o]=e(t[o]));return n}(a.hostCallArgs),function(e){var t,n;if(1==(n="number"==typeof e?(t=[],e):(t=e.toArray())[0]))return null!=(r=c(r=t[1]))&&(a._chunkResultData||(a._chunkResultData=new Array),a._chunkResultData[r[0]]=r[1]),!1;if(a.onReceiving&&a.onReceiving(),a.onComplete){var r;if(0==n){if(2<t.length){r=[];for(var i=1;i<t.length;i++)r[i-1]=t[i]}else r=t[1];if(a._chunkResultData&&null!=(r=c(r))){var o=r[r.length-1];a._chunkResultData.length==o?r[r.length-1]=a._chunkResultData:n=5001}}else r=t[1];a.onComplete(n,r)}return!0})}catch(e){s.SafeArrayDelegate.onException(e,a)}},e.registerEventAsync=function(n){n.onCalling&&n.onCalling();var e=r(!0,n);try{s._OfficeAppFactory.getClientHostController().registerEvent(n.dispId,void 0,n.targetId,function(e,t){n.onEvent&&n.onEvent(t),s.AppTelemetry&&s.AppTelemetry.onEventDone(n.dispId)},e)}catch(e){s.SafeArrayDelegate.onException(e,n)}},e.unregisterEventAsync=function(t){t.onCalling&&t.onCalling();var e=r(!1,t);try{s._OfficeAppFactory.getClientHostController().unregisterEvent(t.dispId,void 0,t.targetId,e)}catch(e){s.SafeArrayDelegate.onException(e,t)}},e.onException=function(e,t){var n,r=e.number;if(r)switch(r){case-2146828218:n=7e3;break;case-2147467259:n=t.dispId==s.EventDispId.dispidDialogMessageReceivedEvent?12007:5001;break;case-2146828283:case-2147209089:n=5010;break;case-2147208704:n=5100;break;case-2146827850:default:n=5001}t.onComplete&&t.onComplete(n||5001)},e.onExceptionSyncMethod=function(e,t){var n,r=e.number;if(r)switch(r){case-2146828218:n=7e3;break;case-2146827850:default:n=5001}return n||5001},e.getOnAfterRegisterEvent=r}(OSF=OSF||{}),function(e){var t=(Object.defineProperty(n.prototype,"type",{get:function(){return e.EventType.SettingsChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"settings",{get:function(){return this.m_settingsInstance},enumerable:!0,configurable:!0}),n);function n(e){this.m_settingsInstance=e}e.SettingsChangedEventArgs=t}(OSF=OSF||{}),function(t){var e=(n.prototype.addComplexType=function(e){this._complexTypes.push(e)},n.prototype.getDynamicType=function(e){return this.dynamicTypes[e]},n.prototype.setDynamicType=function(e,t){this.dynamicTypes[e]=t},n.prototype.isComplexType=function(e){return t.OUtil.listContainsValue(this._complexTypes,e)},n.prototype.isDynamicType=function(e){return t.OUtil.listContainsKey(this.dynamicTypes,e)},n.prototype.preserveNesting=function(e){return!1},n.prototype.pack=function(e,t){return this.isDynamicType(e)?this.dynamicTypes[e].toHost(t):t},n.prototype.unpack=function(e,t){return this.isDynamicType(e)?this.dynamicTypes[e].fromHost(t):t},n);function n(e,t){this._complexTypes=e,this.dynamicTypes=t}t.SpecialProcessor=e}(OSF=OSF||{});__extends=this&&this.__extends||function(){var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}();!function(r){var t,e=(t=r.SpecialProcessor,__extends(n,t),n.prototype.unpack=function(e,t){return this.isComplexType(e)||r.ListType.isListType(e)?void 0!==t&&void 0!==t.toArray?t.toArray():t||{}:this.isDynamicType(e)?this.dynamicTypes[e].fromHost(t):t},n);function n(){var e={};return e[r.ParameterNames.Data]={toHost:function(e){if(r.TableDataProperties&&"string"!=typeof e&&void 0!==e[r.TableDataProperties.TableRows]){var t=[];t[0]=e[r.TableDataProperties.TableRows],t[1]=e[r.TableDataProperties.TableHeaders],e=t}return e},fromHost:function(e){var t;if(e.toArray)if(2===e.dimensions())t=r.Utility.twoDVBArrayToJaggedArray(e);else{var n=e.toArray();2===n.length&&(null!=n[0]&&n[0].toArray||null!=n[1]&&n[1].toArray)?((t={})[r.TableDataProperties.TableRows]=r.Utility.twoDVBArrayToJaggedArray(n[0]),t[r.TableDataProperties.TableHeaders]=r.Utility.twoDVBArrayToJaggedArray(n[1])):t=n}else t=e;return t}},t.call(this,[],e)||this}r.SafeArraySpecialProcessor=e}(OSF=OSF||{}),function(s){var e=(t.prototype.verifyAndExtractCall=function(e,t,n){var r=this._apiMethods.extractRequiredArguments(e,t,n),i=this.extractOptions(e,r,t,n);return this._apiMethods.constructCallArgs(r,i,t,n)},t.prototype.extractOptions=function(e,t,n,r){if(e.length>this._requiredCount+1)throw s.Utility.createParameterException(Strings.OfficeOM.L_TooManyArguments);for(var i,o=e.length-1;o>=this._requiredCount;o--){var a=e[o];switch(typeof a){case"object":if(i)throw s.Utility.createParameterException(Strings.OfficeOM.L_TooManyArguments);i=a;break;default:throw s.Utility.createArgumentException(Strings.OfficeOM.L_InValidOptionalArgument)}}return i=this._apiMethods.fillOptions(i,t,n,r),this._apiMethods.verifyArguments(this._supportedOptions,i),i},t);function t(e,t,n,r,i){this._requiredCount=e.length,this._apiMethods=new s.ApiMethodCall(e,t,n,r,i),this._supportedOptions=t}s.SyncMethodCall=e}(OSF=OSF||{}),function(r){var e,i;e=r.SyncMethodCalls||(r.SyncMethodCalls={}),i={},e.define=function(e){var t,n;i[e.method]=(n=(t=e).supportedOptions?r.OUtil.createObject(t.supportedOptions):[],new r.SyncMethodCall(t.requiredArguments||[],n,t.privateStateCallbacks,t.checkCallArgs,t.method.displayName))},e.get=function(e){return i[e]}}(OSF=OSF||{}),(OSF||(OSF={})).SyncMethods={MessageParent:"messageParent",MessageChild:"messageChild",SendMessage:"sendMessage",AddMessageHandler:"addEventHandler"},function(l){var e;(function(e){var t,n,r,i;function o(e){for(var t=[{name:l.DDA.Theming.DocumentThemeEnum.PrimaryFontColor,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.PrimaryBackgroundColor,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.SecondaryFontColor,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.SecondaryBackgroundColor,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.Accent1,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.Accent2,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.Accent3,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.Accent4,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.Accent5,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.Accent6,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.Hyperlink,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.FollowedHyperlink,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.HeaderLatinFont,needToConvertToHex:!1},{name:l.DDA.Theming.DocumentThemeEnum.HeaderEastAsianFont,needToConvertToHex:!1},{name:l.DDA.Theming.DocumentThemeEnum.HeaderScriptFont,needToConvertToHex:!1},{name:l.DDA.Theming.DocumentThemeEnum.HeaderLocalizedFont,needToConvertToHex:!1},{name:l.DDA.Theming.DocumentThemeEnum.BodyLatinFont,needToConvertToHex:!1},{name:l.DDA.Theming.DocumentThemeEnum.BodyEastAsianFont,needToConvertToHex:!1},{name:l.DDA.Theming.DocumentThemeEnum.BodyScriptFont,needToConvertToHex:!1},{name:l.DDA.Theming.DocumentThemeEnum.BodyLocalizedFont,needToConvertToHex:!1}],n={},r=0;r<t.length;r++)t[r].needToConvertToHex?n[t[r].name]=l.OUtil.convertIntToCssHexColor(e[t[r].name]):n[t[r].name]=e[t[r].name];return n}function a(e){var t={};if(e){var n=l.DDA.Theming.OfficeThemeEnum,r={bodyBackgroundColor:{name:n.BodyBackgroundColor,convertToHex:!0},bodyForegroundColor:{name:n.BodyForegroundColor,convertToHex:!0},controlBackgroundColor:{name:n.ControlBackgroundColor,convertToHex:!0},controlForegroundColor:{name:n.ControlForegroundColor,convertToHex:!0},primaryFontColor:{name:n.BodyForegroundColor,convertToHex:!0},primaryBackgroundColor:{name:n.BodyBackgroundColor,convertToHex:!0},secondaryFontColor:{name:n.ControlForegroundColor,convertToHex:!0},secondaryBackgroundColor:{name:n.ControlBackgroundColor,convertToHex:!0},fluentThemeData:{name:n.FluentThemeData,convertToHex:!1}};for(var i in e){var o=!1,a=i;r[i]&&(a=r[i].name,o=r[i].convertToHex),t[a]=o?l.OUtil.convertIntToCssHexColor(e[i]):e[i]}null==t[n.IsDarkTheme]&&(t[n.IsDarkTheme]=l.DDA.Theming.GetIsDarkThemeFromCSSHexColor(t[n.BodyBackgroundColor])),null==t[n.ThemeId]&&(t[n.ThemeId]=t[n.IsDarkTheme]?l.DDA.Theming.ThemeId.Black:l.DDA.Theming.ThemeId.White)}return t}(t=e.DocumentThemeEnum||(e.DocumentThemeEnum={})).PrimaryFontColor="primaryFontColor",t.PrimaryBackgroundColor="primaryBackgroundColor",t.SecondaryFontColor="secondaryFontColor",t.SecondaryBackgroundColor="secondaryBackgroundColor",t.Accent1="accent1",t.Accent2="accent2",t.Accent3="accent3",t.Accent4="accent4",t.Accent5="accent5",t.Accent6="accent6",t.Hyperlink="hyperlink",t.FollowedHyperlink="followedHyperlink",t.HeaderLatinFont="headerLatinFont",t.HeaderEastAsianFont="headerEastAsianFont",t.HeaderScriptFont="headerScriptFont",t.HeaderLocalizedFont="headerLocalizedFont",t.BodyLatinFont="bodyLatinFont",t.BodyEastAsianFont="bodyEastAsianFont",t.BodyScriptFont="bodyScriptFont",t.BodyLocalizedFont="bodyLocalizedFont",(n=e.OfficeThemeEnum||(e.OfficeThemeEnum={})).BodyBackgroundColor="bodyBackgroundColor",n.BodyForegroundColor="bodyForegroundColor",n.ControlBackgroundColor="controlBackgroundColor",n.ControlForegroundColor="controlForegroundColor",n.IsDarkTheme="isDarkTheme",n.ThemeId="themeId",n.FluentThemeData="fluentThemeData",(r=e.OfficeThemeEnumWac||(e.OfficeThemeEnumWac={})).PrimaryFontColor="primaryFontColor",r.PrimaryBackgroundColor="primaryBackgroundColor",r.SecondaryFontColor="secondaryFontColor",r.SecondaryBackgroundColor="secondaryBackgroundColor",r.IsDarkTheme="isDarkTheme",r.ThemeId="themeId",(i=e.ThemeId||(e.ThemeId={}))[i.Colorful=0]="Colorful",i[i.DarkGray=1]="DarkGray",i[i.Black=2]="Black",i[i.White=3]="White",e.ConvertToDocumentTheme=o,e.GetIsDarkThemeFromCSSHexColor=function(e){var t="#"===e.charAt(0)?e.substring(1,7):e;return.299*parseInt(t.substring(0,2),16)+.587*parseInt(t.substring(2,4),16)+.114*parseInt(t.substring(4,6),16)<186},e.ConvertToOfficeTheme=a;function s(e){var t=null,n=l._OfficeAppFactory.getHostInfo();t=n.hostPlatform==l.HostInfoPlatform.web?e:a(e);var r=l.DDA.Theming.OfficeThemeEnum;void 0===t[r.IsDarkTheme]&&(t.isDarkTheme=l.DDA.Theming.GetIsDarkThemeFromCSSHexColor(e[r.BodyBackgroundColor])),void 0===t[r.ThemeId]&&(t.themeId=t.isDarkTheme?l.DDA.Theming.ThemeId.Black:l.DDA.Theming.ThemeId.White),n.hostPlatform!=l.HostInfoPlatform.web&&"mac"!=n.hostPlatform.toLowerCase()&&"ios"!=n.hostPlatform.toLowerCase()||Office.context&&Office.context.officeTheme&&(Office.context.officeTheme.bodyBackgroundColor=t.bodyBackgroundColor,Office.context.officeTheme.bodyForegroundColor=t.bodyForegroundColor,Office.context.officeTheme.controlBackgroundColor=t.controlBackgroundColor,Office.context.officeTheme.controlForegroundColor=t.controlForegroundColor,Office.context.officeTheme.isDarkTheme=t.isDarkTheme,Office.context.officeTheme.themeId=t.themeId),l.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.OfficeThemeChanged},officeTheme:{value:t}})}e.OfficeThemeChangedEventArgs=s;function c(e){var t=o(e);l.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DocumentThemeChanged},documentTheme:{value:t}})}e.DocumentThemeChangedEventArgs=c})((e=l.DDA||(l.DDA={})).Theming||(e.Theming={}))}(OSF=OSF||{}),function(t){var e,n;e=t.V10ApiFeatureRegistry||(t.V10ApiFeatureRegistry={}),n=[],e.initialize=function(){n.forEach(function(e){e.defineMethodsFunc(),t.OUtil.getHostPlatform()==t.HostInfoPlatform.web?"function"==typeof e.defineWebParameterMapFunc&&e.defineWebParameterMapFunc():"function"==typeof e.defineSafeArrayParameterMapFunc&&e.defineSafeArrayParameterMapFunc(),"function"==typeof e.initializeFunc&&e.initializeFunc()})},e.register=function(e){n.push(e)}}(OSF=OSF||{}),function(a){var e,t;function n(r,i){var o=(new Date).getTime();return function(e,t){var n;if(i.onReceiving&&i.onReceiving(),0!=e)switch(e){case-5:n=7e3;break;default:n=5001}else n=t?t.Error?t.Error:0:5001;i.onComplete&&i.onComplete(n),a.AppTelemetry&&a.AppTelemetry.onRegisterDone(r,i.dispId,Math.abs((new Date).getTime()-o),n)}}(e=a.WACDelegate||(a.WACDelegate={})).version=1,(t=e.UniqueArguments||(e.UniqueArguments={})).Data="Data",t.Properties="Properties",t.BindingRequest="DdaBindingsMethod",t.BindingResponse="Bindings",t.SingleBindingResponse="singleBindingResponse",t.GetData="DdaGetBindingData",t.AddRowsColumns="DdaAddRowsColumns",t.SetData="DdaSetBindingData",t.ClearFormats="DdaClearBindingFormats",t.SetFormats="DdaSetBindingFormats",t.SettingsRequest="DdaSettingsMethod",t.BindingEventSource="ddaBinding",t.ArrayData="ArrayData",e.executeAsync=function(r){r.hostCallArgs||(r.hostCallArgs={}),r.hostCallArgs.DdaMethod={ControlId:a._OfficeAppFactory.getId(),Version:a.WACDelegate.version,DispatchId:r.dispId},r.hostCallArgs.__timeout__=-1,r.onCalling&&r.onCalling(),a.getClientEndPoint()&&a.getClientEndPoint().invoke("executeMethod",function(e,t){var n;if(r.onReceiving&&r.onReceiving(),0==e)a.WACDelegate.version=t.Version,n=t.Error;else switch(e){case-5:n=7e3;break;default:n=5001}r.onComplete&&r.onComplete(n,t)},r.hostCallArgs)},e.getOnAfterRegisterEvent=n,e.registerEventAsync=function(t){t.onCalling&&t.onCalling(),a.getClientEndPoint()&&a.getClientEndPoint().registerForEvent(a.OUtil.getXdmEventName(t.targetId,t.eventType),function(e){t.onEvent&&t.onEvent(e),a.AppTelemetry&&a.AppTelemetry.onEventDone(t.dispId)},n(!0,t),{controlId:a._OfficeAppFactory.getId(),eventDispId:t.dispId,targetId:t.targetId})},e.unregisterEventAsync=function(e){e.onCalling&&e.onCalling(),a.getClientEndPoint()&&a.getClientEndPoint().unregisterForEvent(a.OUtil.getXdmEventName(e.targetId,e.eventType),n(!1,e),{controlId:a._OfficeAppFactory.getId(),eventDispId:e.dispId,targetId:e.targetId})}}(OSF=OSF||{}),function(t){var n,e=(n=t.SpecialProcessor,__extends(r,n),r);function r(){var e=[t.WACDelegate.UniqueArguments.SingleBindingResponse,t.WACDelegate.UniqueArguments.BindingRequest,t.WACDelegate.UniqueArguments.BindingResponse,t.WACDelegate.UniqueArguments.GetData,t.WACDelegate.UniqueArguments.AddRowsColumns,t.WACDelegate.UniqueArguments.SetData,t.WACDelegate.UniqueArguments.ClearFormats,t.WACDelegate.UniqueArguments.SetFormats,t.WACDelegate.UniqueArguments.SettingsRequest,t.WACDelegate.UniqueArguments.BindingEventSource];return n.call(this,e,{})||this}t.WebSpecialProcessor=e}(OSF=OSF||{});__extends=this&&this.__extends||function(){var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}();!function(e){var t,n,r;t=e.context||(e.context={}),n=t.document||(t.document={}),(r=n.bindings||(n.bindings={}))._eventDispatches=[],r.addFromSelectionAsync=function(e,t,n){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.AddFromSelectionAsync,arguments,this,void 0)},r.addFromNamedItemAsync=function(e,t,n,r){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.AddFromNamedItemAsync,arguments,this,void 0)},r.addFromPromptAsync=function(e,t,n){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.AddFromPromptAsync,arguments,this,void 0)},r.getAllAsync=function(e,t){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.GetAllAsync,arguments,this,void 0)},r.getByIdAsync=function(e,t,n){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.GetByIdAsync,arguments,this,void 0)},r.releaseByIdAsync=function(e,t,n){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.ReleaseByIdAsync,arguments,this,void 0)}}(Office=Office||{}),function(s){var e,t,n,r,i,o,a;function c(e){return s.manufactureBinding(e,Office.context.document)}function l(e){return e.id}function u(e,t,n){var r=e[s.ParameterNames.Data];return s.TableDataProperties&&r&&(null!=r[s.TableDataProperties.TableRows]||null!=r[s.TableDataProperties.TableHeaders])&&(r=Office.manufactureTableData(r)),null==(r=s.DataCoercion.coerceData(r,n[s.ParameterNames.CoercionType]))?null:r}(e=s.BindingProperties||(s.BindingProperties={})).Id="BindingId",e.Type="bindingType",e.RowCount="RowCount",e.ColumnCount="BindingColumnCount",e.HasHeaders="HasHeaders",(s.ListDescriptors||(s.ListDescriptors={})).BindingList="BindingList",s.ListType.setListType(s.ListDescriptors.BindingList,s.PropertyDescriptors.BindingProperties),(s.EventDescriptors||(s.EventDescriptors={})).BindingSelectionChangedEvent="BindingSelectionChangedEvent",t=s.Marshaling||(s.Marshaling={}),(n=t.BindingParameterKeys||(t.BindingParameterKeys={})).Id="BindingId",n.BindingType="BindingType",n.ItemName="ItemName",n.StartRow="StartRow",n.StartCol="StartCol",n.RowCount="RowCount",n.ColCount="ColCount",(r=t.TableBindingParameterKeys||(t.TableBindingParameterKeys={})).TableHeaders="TableHeaders",r.TableRows="TableRows",(i=t.AppBindingKeys||(t.AppBindingKeys={})).BindingId="Name",i.BindingType="BindingType",i[i.BindingProperties=0]="BindingProperties",i.BindingEventSource="ddaBinding",i.RowCount="RowCount",i.ColumnCount="ColCount",i.HasHeaders="HasHeaders",(o=t.TableSubsetKeys||(t.TableSubsetKeys={})).TableSubset="subset",o.StartRow="startRow",o.StartColumn="startColumn",o.RowCount="rowCount",o.ColumnCount="columnCount",(a=t.BindingType||(t.BindingType={}))[a.Table=1]="Table",a[a.Text=2]="Text",a[a.Matrix=3]="Matrix",s.Bindings||(s.Bindings={}),s.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){s.AsyncMethodCalls.define({method:s.AsyncMethods.AddFromPromptAsync,requiredArguments:[{name:s.ParameterNames.BindingType,enum:Office.BindingType}],supportedOptions:[{name:s.ParameterNames.Id,value:{types:["string"],calculate:x}},{name:s.ParameterNames.PromptText,value:{types:["string"],calculate:function(){return Strings.OfficeOM.L_AddBindingFromPromptDefaultText}}},{name:s.ParameterNames.SampleData,value:{types:["object"],defaultValue:null}}],privateStateCallbacks:[],onSucceeded:function(e){return s.manufactureBinding(e,Office.context.document)}}),s.AsyncMethodCalls.define({method:s.AsyncMethods.AddFromSelectionAsync,requiredArguments:[{name:s.ParameterNames.BindingType,enum:Office.BindingType}],supportedOptions:[{name:s.ParameterNames.Id,value:{types:["string"],calculate:x}},{name:s.ParameterNames.Columns,value:{types:["object"],defaultValue:null}}],privateStateCallbacks:[],onSucceeded:c}),s.AsyncMethodCalls.define({method:s.AsyncMethods.AddFromNamedItemAsync,requiredArguments:[{name:s.ParameterNames.ItemName,types:["string"]},{name:s.ParameterNames.BindingType,enum:Office.BindingType}],supportedOptions:[{name:s.ParameterNames.Id,value:{types:["string"],calculate:x}},{name:s.ParameterNames.Columns,value:{types:["object"],defaultValue:null}}],privateStateCallbacks:[{name:s.ParameterNames.FailOnCollision,value:function(){return!0}}],onSucceeded:c}),s.AsyncMethodCalls.define({method:s.AsyncMethods.GetAllAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[],onSucceeded:function(e){return e[s.ListDescriptors.BindingList].map(c)}}),s.AsyncMethodCalls.define({method:s.AsyncMethods.GetByIdAsync,requiredArguments:[{name:s.ParameterNames.Id,types:["string"]}],supportedOptions:[],privateStateCallbacks:[],onSucceeded:c}),s.AsyncMethodCalls.define({method:s.AsyncMethods.ReleaseByIdAsync,requiredArguments:[{name:s.ParameterNames.Id,types:["string"]}],supportedOptions:[],privateStateCallbacks:[],onSucceeded:function(e,t,n){var r=n[s.ParameterNames.Id];delete t._eventDispatches[r]}}),s.AsyncMethodCalls.define({method:s.AsyncMethods.GetDataAsync,requiredArguments:[],supportedOptions:[{name:s.ParameterNames.CoercionType,value:{enum:Office.CoercionType,calculate:function(e,t){return s.DataCoercion.getCoercionDefaultForBinding(t.type)}}},{name:s.ParameterNames.ValueFormat,value:{enum:Office.ValueFormat,defaultValue:Office.ValueFormat.Unformatted}},{name:s.ParameterNames.FilterType,value:{enum:Office.FilterType,defaultValue:Office.FilterType.All}},{name:s.ParameterNames.Rows,value:{types:["object","string"],defaultValue:null}},{name:s.ParameterNames.Columns,value:{types:["object"],defaultValue:null}},{name:s.ParameterNames.StartRow,value:{types:["number"],defaultValue:0}},{name:s.ParameterNames.StartColumn,value:{types:["number"],defaultValue:0}},{name:s.ParameterNames.RowCount,value:{types:["number"],defaultValue:0}},{name:s.ParameterNames.ColumnCount,value:{types:["number"],defaultValue:0}}],checkCallArgs:function(e,t,n){if(0==e[s.ParameterNames.StartRow]&&0==e[s.ParameterNames.StartColumn]&&0==e[s.ParameterNames.RowCount]&&0==e[s.ParameterNames.ColumnCount]&&(delete e[s.ParameterNames.StartRow],delete e[s.ParameterNames.StartColumn],delete e[s.ParameterNames.RowCount],delete e[s.ParameterNames.ColumnCount]),e[s.ParameterNames.CoercionType]!=s.DataCoercion.getCoercionDefaultForBinding(t.type)&&(e[s.ParameterNames.StartRow]||e[s.ParameterNames.StartColumn]||e[s.ParameterNames.RowCount]||e[s.ParameterNames.ColumnCount]))throw 1002;return e},privateStateCallbacks:[{name:s.ParameterNames.Id,value:l}],onSucceeded:u}),s.AsyncMethodCalls.define({method:s.AsyncMethods.SetDataAsync,requiredArguments:[{name:s.ParameterNames.Data,types:["string","object","number","boolean"]}],supportedOptions:[{name:s.ParameterNames.CoercionType,value:{enum:Office.CoercionType,calculate:function(e){return s.DataCoercion.determineCoercionType(e[s.ParameterNames.Data])}}},{name:s.ParameterNames.Rows,value:{types:["object","string"],defaultValue:null}},{name:s.ParameterNames.Columns,value:{types:["object"],defaultValue:null}},{name:s.ParameterNames.StartRow,value:{types:["number"],defaultValue:0}},{name:s.ParameterNames.StartColumn,value:{types:["number"],defaultValue:0}}],checkCallArgs:function(e,t,n){if(0==e[s.ParameterNames.StartRow]&&0==e[s.ParameterNames.StartColumn]&&(delete e[s.ParameterNames.StartRow],delete e[s.ParameterNames.StartColumn]),e[s.ParameterNames.CoercionType]!=s.DataCoercion.getCoercionDefaultForBinding(t.type)&&(e[s.ParameterNames.StartRow]||e[s.ParameterNames.StartColumn]))throw 1002;return e},privateStateCallbacks:[{name:s.ParameterNames.Id,value:l}]})},defineSafeArrayParameterMapFunc:function(){s.HostParameterMap.define({type:"bindingSpecificData",fromHost:[{name:s.BindingProperties.RowCount,value:0},{name:s.BindingProperties.ColumnCount,value:1},{name:s.BindingProperties.HasHeaders,value:2}],isComplexType:!0}),s.HostParameterMap.define({type:s.PropertyDescriptors.Subset,toHost:[{name:"offset",value:0},{name:"run",value:1}],canonical:!0,isComplexType:!0}),s.HostParameterMap.define({type:"offset",toHost:[{name:s.ParameterNames.StartRow,value:0},{name:s.ParameterNames.StartColumn,value:1}],canonical:!0,isComplexType:!0}),s.HostParameterMap.define({type:"run",toHost:[{name:s.ParameterNames.RowCount,value:0},{name:s.ParameterNames.ColumnCount,value:1}],canonical:!0,isComplexType:!0}),s.HostParameterMap.define({type:"run",toHost:[{name:s.ParameterNames.RowCount,value:0},{name:s.ParameterNames.ColumnCount,value:1}],canonical:!0,isComplexType:!0}),s.HostParameterMap.define({type:79,toHost:[{name:s.ParameterNames.Id,value:0},{name:s.ParameterNames.Data,value:1}]}),s.HostParameterMap.define({type:73,toHost:[{name:s.ParameterNames.Id,value:0}]}),s.HostParameterMap.define({type:s.PropertyDescriptors.BindingProperties,fromHost:[{name:s.BindingProperties.Id,value:0},{name:s.BindingProperties.Type,value:1},{name:"bindingSpecificData",value:2}],isComplexType:!0}),s.HostParameterMap.define({type:s.ParameterNames.BindingType,toHost:[{name:Office.BindingType.Text,value:0},{name:Office.BindingType.Matrix,value:1},{name:Office.BindingType.Table,value:2}],invertible:!0}),s.HostParameterMap.define({type:66,fromHost:[{name:s.PropertyDescriptors.BindingProperties,value:s.HostParameterMap.self}],toHost:[{name:s.ParameterNames.Id,value:0},{name:s.ParameterNames.BindingType,value:1}]}),s.HostParameterMap.define({type:78,fromHost:[{name:s.PropertyDescriptors.BindingProperties,value:s.HostParameterMap.self}],toHost:[{name:s.ParameterNames.ItemName,value:0},{name:s.ParameterNames.Id,value:1},{name:s.ParameterNames.BindingType,value:2},{name:s.ParameterNames.FailOnCollision,value:3}]}),s.HostParameterMap.define({type:67,fromHost:[{name:s.PropertyDescriptors.BindingProperties,value:s.HostParameterMap.self}],toHost:[{name:s.ParameterNames.Id,value:0},{name:s.ParameterNames.BindingType,value:1},{name:s.ParameterNames.PromptText,value:2}]}),s.HostParameterMap.define({type:69,toHost:[{name:s.ParameterNames.Id,value:0}]}),s.HostParameterMap.define({type:68,fromHost:[{name:s.PropertyDescriptors.BindingProperties,value:s.HostParameterMap.self}],toHost:[{name:s.ParameterNames.Id,value:0}]}),s.HostParameterMap.define({type:74,fromHost:[{name:s.ListDescriptors.BindingList,value:s.HostParameterMap.self}]}),s.HostParameterMap.define({type:70,fromHost:[{name:s.ParameterNames.Data,value:s.HostParameterMap.self}],toHost:[{name:s.ParameterNames.Id,value:0},{name:s.ParameterNames.CoercionType,value:1},{name:s.ParameterNames.ValueFormat,value:2},{name:s.ParameterNames.FilterType,value:3},{name:s.PropertyDescriptors.Subset,value:4}]}),s.HostParameterMap.define({type:71,toHost:[{name:s.ParameterNames.Id,value:0},{name:s.ParameterNames.CoercionType,value:1},{name:s.ParameterNames.Data,value:2},{name:"offset",value:3}]})},defineWebParameterMapFunc:function(){s.HostParameterMap.define({type:72,toHost:[{name:s.WACDelegate.UniqueArguments.AddRowsColumns,value:s.HostParameterMap.self}]}),s.HostParameterMap.define({type:79,toHost:[{name:s.WACDelegate.UniqueArguments.AddRowsColumns,value:s.HostParameterMap.self}]}),s.HostParameterMap.define({type:73,toHost:[{name:s.WACDelegate.UniqueArguments.BindingRequest,value:s.HostParameterMap.self}]}),s.HostParameterMap.define({type:s.WACDelegate.UniqueArguments.AddRowsColumns,toHost:[{name:s.ParameterNames.Id,value:"BindingId"},{name:s.ParameterNames.Data,value:s.WACDelegate.UniqueArguments.Data}]}),s.HostParameterMap.define({type:s.PropertyDescriptors.Subset,fromHost:[{name:s.ParameterNames.StartRow,value:"StartRow"},{name:s.ParameterNames.StartColumn,value:"StartCol"},{name:s.ParameterNames.RowCount,value:"RowCount"},{name:s.ParameterNames.ColumnCount,value:"ColCount"}]}),s.HostParameterMap.define({type:s.WACDelegate.UniqueArguments.BindingRequest,toHost:[{name:s.ParameterNames.ItemName,value:"ItemName"},{name:s.ParameterNames.Id,value:"BindingId"},{name:s.ParameterNames.BindingType,value:"BindingType"},{name:s.ParameterNames.PromptText,value:"PromptText"},{name:s.ParameterNames.Columns,value:"Columns"},{name:s.ParameterNames.SampleData,value:"SampleData"},{name:s.ParameterNames.FailOnCollision,value:"FailOnCollision"}]}),s.HostParameterMap.addComplexType(s.PropertyDescriptors.BindingProperties),s.HostParameterMap.define({type:s.ParameterNames.BindingType,toHost:[{name:Office.BindingType.Text,value:2},{name:Office.BindingType.Matrix,value:3},{name:Office.BindingType.Table,value:1}],invertible:!0}),s.HostParameterMap.define({type:s.PropertyDescriptors.BindingProperties,fromHost:[{name:s.BindingProperties.Id,value:"Name"},{name:s.BindingProperties.Type,value:"BindingType"},{name:s.BindingProperties.RowCount,value:"RowCount"},{name:s.BindingProperties.ColumnCount,value:"ColCount"},{name:s.BindingProperties.HasHeaders,value:"HasHeaders"}]}),s.HostParameterMap.define({type:s.WACDelegate.UniqueArguments.SingleBindingResponse,fromHost:[{name:s.PropertyDescriptors.BindingProperties,value:0}]}),s.HostParameterMap.define({type:66,fromHost:[{name:s.WACDelegate.UniqueArguments.SingleBindingResponse,value:s.WACDelegate.UniqueArguments.BindingResponse}],toHost:[{name:s.WACDelegate.UniqueArguments.BindingRequest,value:s.HostParameterMap.self}]}),s.HostParameterMap.define({type:67,fromHost:[{name:s.WACDelegate.UniqueArguments.SingleBindingResponse,value:s.WACDelegate.UniqueArguments.BindingResponse}],toHost:[{name:s.WACDelegate.UniqueArguments.BindingRequest,value:s.HostParameterMap.self}]}),s.HostParameterMap.define({type:78,fromHost:[{name:s.WACDelegate.UniqueArguments.SingleBindingResponse,value:s.WACDelegate.UniqueArguments.BindingResponse}],toHost:[{name:s.WACDelegate.UniqueArguments.BindingRequest,value:s.HostParameterMap.self}]}),s.HostParameterMap.define({type:69,toHost:[{name:s.WACDelegate.UniqueArguments.BindingRequest,value:s.HostParameterMap.self}]}),s.HostParameterMap.define({type:68,fromHost:[{name:s.WACDelegate.UniqueArguments.SingleBindingResponse,value:s.WACDelegate.UniqueArguments.BindingResponse}],toHost:[{name:s.WACDelegate.UniqueArguments.BindingRequest,value:s.HostParameterMap.self}]}),s.HostParameterMap.define({type:74,fromHost:[{name:s.ListDescriptors.BindingList,value:s.WACDelegate.UniqueArguments.BindingResponse}]}),s.HostParameterMap.define({type:70,fromHost:[{name:s.ParameterNames.Data,value:s.WACDelegate.UniqueArguments.Data}],toHost:[{name:s.WACDelegate.UniqueArguments.GetData,value:s.HostParameterMap.self}]}),s.HostParameterMap.define({type:71,toHost:[{name:s.WACDelegate.UniqueArguments.SetData,value:s.HostParameterMap.self}]})},initializeFunc:function(){s.manufactureBinding=function(e,t){var n,r=e[s.BindingProperties.Id],i=e[s.BindingProperties.RowCount],o=e[s.BindingProperties.ColumnCount],a=e[s.BindingProperties.HasHeaders];switch(e[s.BindingProperties.Type]){case Office.BindingType.Text:n=new s.TextBinding(r,t);break;case Office.BindingType.Matrix:n=null,n=new s.MatrixBinding(r,t,i,o);break;case Office.BindingType.Table:n=new(s._OfficeAppFactory.getHostInfo().hostType==s.HostInfoHostType.excel&&Office.context.document&&s.ExcelTableBinding?s.ExcelTableBinding:s.TableBinding)(r,t,i,o,a);break;default:n=new s.UnknownBinding(r,t)}return n}}}),s.BindingEvents||(s.BindingEvents={}),s.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){},defineSafeArrayParameterMapFunc:function(){s.HostParameterMap.define({type:s.EventDispId.dispidBindingSelectionChangedEvent,fromHost:[{name:s.EventDescriptors.BindingSelectionChangedEvent,value:s.HostParameterMap.self}],isComplexType:!0}),s.HostParameterMap.define({type:s.EventDispId.dispidBindingDataChangedEvent,fromHost:[{name:s.PropertyDescriptors.BindingProperties,value:s.HostParameterMap.self}]})},defineWebParameterMapFunc:function(){s.HostParameterMap.define({type:s.EventDescriptors.BindingSelectionChangedEvent,fromHost:[{name:s.PropertyDescriptors.BindingProperties,value:s.WACDelegate.UniqueArguments.BindingEventSource},{name:s.PropertyDescriptors.Subset,value:s.PropertyDescriptors.Subset}]}),s.HostParameterMap.define({type:s.EventDispId.dispidBindingSelectionChangedEvent,fromHost:[{name:s.EventDescriptors.BindingSelectionChangedEvent,value:s.HostParameterMap.self}]}),s.HostParameterMap.define({type:s.EventDispId.dispidBindingDataChangedEvent,fromHost:[{name:s.PropertyDescriptors.BindingProperties,value:s.WACDelegate.UniqueArguments.BindingEventSource}]})}});var p=(Object.defineProperty(f.prototype,"onFail",{get:function(){return this.m_errorCallback},set:function(e){var t=typeof e;if("undefined"!=t&&"function"!=t)throw s.OUtil.formatString(Strings.OfficeOM.L_CallbackNotAFunction,t);this.m_errorCallback=e},enumerable:!0,configurable:!0}),f.prototype._fetch=function(t){if(this.m_binding)t&&t(this.m_binding);else if(!this.m_binding){var n=this;Office.context.document.bindings.getByIdAsync(this.m_id,function(e){e.status==Office.AsyncResultStatus.Succeeded?(s.OUtil.defineEnumerableProperty(n,"binding",{value:e.value}),t&&t(n.m_binding)):n.onFail&&n.onFail(e)})}return this},f.prototype.getDataAsync=function(){var t=arguments;return this._fetch(function(e){e.getDataAsync.apply(e,t)}),this},f.prototype.setDataAsync=function(){var t=arguments;return this._fetch(function(e){e.setDataAsync.apply(e,t)}),this},f.prototype.addHandlerAsync=function(){var t=arguments;return this._fetch(function(e){e.addHandlerAsync.apply(e,t)}),this},f.prototype.removeHandlerAsync=function(){var t=arguments;return this._fetch(function(e){e.removeHandlerAsync.apply(e,t)}),this},f.prototype.setTableOptionsAsync=function(){var t=arguments;return this._fetch(function(e){e.setTableOptionsAsync.apply(e,t)}),this},f.prototype.setFormatsAsync=function(){var t=arguments;return this._fetch(function(e){e.setFormatsAsync.apply(e,t)}),this},f.prototype.clearFormatsAsync=function(){var t=arguments;return this._fetch(function(e){e.clearFormatsAsync.apply(e,t)}),this},f);function f(e){this.m_id=e}s.BindingPromise=p;var d=(Object.defineProperty(h.prototype,"document",{get:function(){return this.m_docInstance},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"id",{get:function(){return this.m_id},enumerable:!0,configurable:!0}),h);function h(e,t){this.m_id=e,this.m_docInstance=t}s.UnknownBinding=d;var g=(y.prototype.getDataAsync=function(e,t){s.DispIdHost.InvokeMethod(s.AsyncMethods.GetDataAsync,arguments,this,void 0)},y.prototype.setDataAsync=function(e,t,n){s.DispIdHost.InvokeMethod(s.AsyncMethods.SetDataAsync,arguments,this,void 0)},Object.defineProperty(y.prototype,"document",{get:function(){return this.m_docInstance},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"id",{get:function(){return this.m_id},enumerable:!0,configurable:!0}),y);function y(e,t){this.m_id=e,this.m_docInstance=t;var n=s.EventType,r=t.bindings._eventDispatches;r[e]||(r[e]=new s.EventDispatch([n.BindingSelectionChanged,n.BindingDataChanged]));var i=r[e];s.DispIdHost.addEventSupport(this,i)}s.Binding=g;var m,_=(m=s.Binding,__extends(b,m),Object.defineProperty(b.prototype,"type",{get:function(){return Office.BindingType.Matrix},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"rowCount",{get:function(){return this.m_rows?this.m_rows:0},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"columnCount",{get:function(){return this.m_cols?this.m_cols:0},enumerable:!0,configurable:!0}),b);function b(e,t,n,r){var i=m.call(this,e,t)||this;return i.m_rows=n,i.m_cols=r,i}s.MatrixBinding=_;var v,O=(v=s.Binding,__extends(C,v),Object.defineProperty(C.prototype,"type",{get:function(){return Office.BindingType.Table},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"rowCount",{get:function(){return this.m_rows?this.m_rows:0},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"columnCount",{get:function(){return this.m_cols?this.m_cols:0},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"hasHeaders",{get:function(){return!!this.m_hasHeaders&&this.m_hasHeaders},enumerable:!0,configurable:!0}),C.prototype.addRowsAsync=function(e,t,n){s.DispIdHost.InvokeMethod(s.AsyncMethods.AddRowsAsync,arguments,this,void 0)},C.prototype.addColumnsAsync=function(e,t,n){s.DispIdHost.InvokeMethod(s.AsyncMethods.AddColumnsAsync,arguments,this,void 0)},C.prototype.deleteAllDataValuesAsync=function(e,t){s.DispIdHost.InvokeMethod(s.AsyncMethods.DeleteAllDataValuesAsync,arguments,this,void 0)},C);function C(e,t,n,r,i){var o=v.call(this,e,t)||this;return o.m_rows=n,o.m_cols=r,o.m_hasHeaders=i,o}s.TableBinding=O;var P,R=(P=s.TableBinding,__extends(S,P),S.prototype.clearFormatsAsync=function(e,t){s.DispIdHost.InvokeMethod(s.AsyncMethods.ClearFormatsAsync,arguments,this,void 0)},S.prototype.setTableOptionsAsync=function(e,t,n){s.DispIdHost.InvokeMethod(s.AsyncMethods.SetTableOptionsAsync,arguments,this,void 0)},S.prototype.setFormatsAsync=function(e,t,n){s.DispIdHost.InvokeMethod(s.AsyncMethods.SetFormatsAsync,arguments,this,void 0)},S);function S(e,t,n,r,i){var o=P.call(this,e,t,n,r,i)||this;return s.OUtil.finalizeProperties(o),o}function I(e){return e.id}s.ExcelTableBinding=R,s.TableBindingMethods||(s.TableBindingMethods={}),s.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){s.AsyncMethodCalls.define({method:s.AsyncMethods.AddRowsAsync,requiredArguments:[{name:s.ParameterNames.Data,types:["object"]}],supportedOptions:[],privateStateCallbacks:[{name:s.ParameterNames.Id,value:I}]}),s.AsyncMethodCalls.define({method:s.AsyncMethods.AddColumnsAsync,requiredArguments:[{name:s.ParameterNames.Data,types:["object"]}],supportedOptions:[],privateStateCallbacks:[{name:s.ParameterNames.Id,value:I}]}),s.AsyncMethodCalls.define({method:s.AsyncMethods.DeleteAllDataValuesAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[{name:s.ParameterNames.Id,value:I}]})}});var T,A=(T=s.Binding,__extends(N,T),Object.defineProperty(N.prototype,"type",{get:function(){return Office.BindingType.Text},enumerable:!0,configurable:!0}),N);function N(e,t){return T.call(this,e,t)||this}function x(){return"UnnamedBinding_"+s.OUtil.getUniqueId()+"_"+(new Date).getTime()}s.TextBinding=A,s.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){s.AsyncMethodCalls.define({method:s.AsyncMethods.BindingSelectionChanged,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[]}),s.AsyncMethodCalls.define({method:s.AsyncMethods.BindingDataChanged,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[]})},defineSafeArrayParameterMapFunc:function(){s.HostParameterMap.define({type:s.EventDescriptors.BindingSelectionChangedEvent,fromHost:[{name:s.PropertyDescriptors.BindingProperties,value:0},{name:s.PropertyDescriptors.Subset,value:1}],isComplexType:!0}),s.HostParameterMap.define({type:s.EventDispId.dispidBindingSelectionChangedEvent,fromHost:[{name:s.EventDescriptors.BindingSelectionChangedEvent,value:s.HostParameterMap.self}],isComplexType:!0}),s.HostParameterMap.define({type:s.EventDispId.dispidBindingDataChangedEvent,fromHost:[{name:s.PropertyDescriptors.BindingProperties,value:s.HostParameterMap.self}]})},defineWebParameterMapFunc:function(){s.HostParameterMap.define({type:s.EventDescriptors.BindingSelectionChangedEvent,fromHost:[{name:s.PropertyDescriptors.BindingProperties,value:s.WACDelegate.UniqueArguments.BindingEventSource},{name:s.PropertyDescriptors.Subset,value:s.PropertyDescriptors.Subset}]}),s.HostParameterMap.define({type:s.EventDispId.dispidBindingSelectionChangedEvent,fromHost:[{name:s.EventDescriptors.BindingSelectionChangedEvent,value:s.HostParameterMap.self}]}),s.HostParameterMap.define({type:s.EventDispId.dispidBindingDataChangedEvent,fromHost:[{name:s.PropertyDescriptors.BindingProperties,value:s.WACDelegate.UniqueArguments.BindingEventSource}]})}})}(OSF=OSF||{}),function(e){var t,n,r;t=e.context||(e.context={}),n=t.document||(t.document={}),(r=n.customXmlParts||(n.customXmlParts={}))._eventDispatches=[],r.addAsync=function(e,t,n){"function"==typeof t&&(n=t);var r={toSafeArrayHost:function(){return[e]},fromSafeArrayHost:function(e){var t={id:e[0],DataPartBuiltIn:e[1]};return OSF.processDataPart(t)},toWebHost:function(){return{xml:e}},fromWebHost:function(e){var t={id:e.DataPartProperties.id,DataPartBuiltIn:e.DataPartProperties.DataPartBuiltIn};return OSF.processDataPart(t)}};OSF._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(128,r,n,null!=t?t.asyncContext:void 0)},r.getByIdAsync=function(e,t,n){"function"==typeof t&&(n=t);var r={toSafeArrayHost:function(){return[e]},fromSafeArrayHost:function(e){var t={id:e[0],DataPartBuiltIn:e[1]};return OSF.processDataPart(t)},toWebHost:function(){return{id:e}},fromWebHost:function(e){var t={id:e.DataPartProperties.id,DataPartBuiltIn:e.DataPartProperties.DataPartBuiltIn};return OSF.processDataPart(t)}};OSF._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(129,r,n,null!=t?t.asyncContext:void 0)},r.getByNamespaceAsync=function(e,t,n){"function"==typeof t&&(n=t);var r={toSafeArrayHost:function(){return[e]},fromSafeArrayHost:function(e){var t=[];if(e)for(var n=0;n<e.length;n++){var r={id:e[n][0],DataPartBuiltIn:e[n][1]},i=OSF.processDataPart(r);t.push(i)}return t},toWebHost:function(){return{namespace:e}},fromWebHost:function(e){for(var t=[],n=0;n<e.DataPartList.length;n++){var r={id:e.DataPartList[n].id,DataPartBuiltIn:e.DataPartList[n].DataPartBuiltIn},i=OSF.processDataPart(r);t.push(i)}return t}};OSF._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(130,r,n,null!=t?t.asyncContext:void 0)}}(Office=Office||{}),function(a){var e,t,n;(e=a.DataPartProperties||(a.DataPartProperties={})).Id="id",e.BuiltIn="DataPartBuiltIn",(t=a.DataNodeProperties||(a.DataNodeProperties={})).Handle="DataNodeHandle",t.BaseName="DataNodeBaseName",t.NamespaceUri="DataNodeNamespaceUri",t.NodeType="DataNodeType",(n=a.ListDescriptors||(a.ListDescriptors={})).DataPartList="DataPartList",n.DataNodeList="DataNodeList",a.ListType.setListType(a.ListDescriptors.DataPartList,a.PropertyDescriptors.DataPartProperties),a.ListType.setListType(a.ListDescriptors.DataNodeList,a.PropertyDescriptors.DataPartProperties);var r=(Object.defineProperty(i.prototype,"builtIn",{get:function(){return this.m_builtIn},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return this.m_id},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"namespaceManager",{get:function(){return new o(this.m_id)},enumerable:!0,configurable:!0}),i.prototype.deleteAsync=function(e,t){var n=this;"function"==typeof e&&(t=e);var r={toSafeArrayHost:function(){return[null==n.m_id?void 0:n.m_id]},fromSafeArrayHost:function(e){},toWebHost:function(){return{id:null==n.m_id?void 0:n.m_id}},fromWebHost:function(e){return{}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(133,r,t,null!=e?e.asyncContext:void 0)},i.prototype.getNodesAsync=function(e,t,n){var r=this;"function"==typeof t&&(n=t);var i={toSafeArrayHost:function(){return[null==r.m_id?void 0:r.m_id,e]},fromSafeArrayHost:function(e){for(var t=[],n=0;n<e.length;n++){var r={DataNodeHandle:e[n][0],DataNodeBaseName:e[n][1],DataNodeNamespaceUri:e[n][2],DataNodeType:e[n][3]},i=a.processDataNode(r);t.push(i)}return t},toWebHost:function(){return{id:null==r.m_id?void 0:r.m_id,xpath:e}},fromWebHost:function(e){for(var t=[],n=0;n<e.DataNodeList.length;n++){var r={DataNodeHandle:e.DataNodeList[n].DataNodeHandle,DataNodeBaseName:e.DataNodeList[n].DataNodeBaseName,DataNodeNamespaceUri:e.DataNodeList[n].DataNodeNamespaceUri,DataNodeType:e.DataNodeList[n].DataNodeType},i=a.processDataNode(r);t.push(i)}return t}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(132,i,n,null!=t?t.asyncContext:void 0)},i.prototype.getXmlAsync=function(e,t){var n=this;"function"==typeof e&&(t=e);var r={toSafeArrayHost:function(){return[null==n.m_id?void 0:n.m_id]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{id:null==n.m_id?void 0:n.m_id}},fromWebHost:function(e){return{data:e.Data}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(131,r,t,null!=e?e.asyncContext:void 0)},i);function i(e,t,n){this.m_customXmlParts=e,this.m_id=t,this.m_builtIn=n;var r=e._eventDispatches,i=r[t];if(!i){var o=a.EventType;i=new a.EventDispatch([o.DataNodeDeleted,o.DataNodeInserted,o.DataNodeReplaced]),r[t]=i}a.DispIdHost.addEventSupport(this,i)}a.CustomXmlPart=r;var o=(s.prototype.addNamespaceAsync=function(e,t,n,r){var i=this;"function"==typeof n&&(r=n);var o={toSafeArrayHost:function(){return[null==i.m_partId?void 0:i.m_partId,e,t]},fromSafeArrayHost:function(e){},toWebHost:function(){return{id:null==i.m_partId?void 0:i.m_partId,prefix:e,namespace:t}},fromWebHost:function(e){return{}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(139,o,r,null!=n?n.asyncContext:void 0)},s.prototype.getNamespaceAsync=function(e,t,n){var r=this;"function"==typeof t&&(n=t);var i={toSafeArrayHost:function(){return[null==r.m_partId?void 0:r.m_partId,e]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{id:null==r.m_partId?void 0:r.m_partId,prefix:e}},fromWebHost:function(e){return{data:e.Data}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(140,i,n,null!=t?t.asyncContext:void 0)},s.prototype.getPrefixAsync=function(e,t,n){var r=this;"function"==typeof t&&(n=t);var i={toSafeArrayHost:function(){return[null==r.m_partId?void 0:r.m_partId,e]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{id:null==r.m_partId?void 0:r.m_partId,namespace:e}},fromWebHost:function(e){return{data:e.Data}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(141,i,n,null!=t?t.asyncContext:void 0)},s);function s(e){this.m_partId=e}a.CustomXmlPrefixMappings=o;var c,l,u,p,f,d,h,g=(Object.defineProperty(y.prototype,"baseName",{get:function(){return this.m_baseName},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"namespaceUri",{get:function(){return this.m_ns},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"nodeType",{get:function(){return this.m_nodeType},enumerable:!0,configurable:!0}),y.prototype.getNodesAsync=function(e,t,n){var r=this;"function"==typeof t&&(n=t);var i={toSafeArrayHost:function(){return[m(r,r.m_handle),e]},fromSafeArrayHost:function(e){for(var t=[],n=0;n<e.length;n++){var r={DataNodeBaseName:e[n][2],DataNodeNamespaceUri:e[n][3],DataNodeType:e[n][4]},i=a.processDataNode(r);t.push(i)}return t},toWebHost:function(){return{DataNodeHandle:m(r,r.m_handle),xpath:e}},fromWebHost:function(e){for(var t=[],n=0;n<e.DataNodeList.length;n++){var r={DataNodeHandle:e.DataNodeList[n].DataNodeHandle,DataNodeBaseName:e.DataNodeList[n].DataNodeBaseName,DataNodeNamespaceUri:e.DataNodeList[n].DataNodeNamespaceUri,DataNodeType:e.DataNodeList[n].DataNodeType},i=a.processDataNode(r);t.push(i)}return t}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(136,i,n,null!=t?t.asyncContext:void 0)},y.prototype.getNodeValueAsync=function(e,t){var n=this;"function"==typeof e&&(t=e);var r={toSafeArrayHost:function(){return[m(n,n.m_handle)]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{DataNodeHandle:m(n,n.m_handle)}},fromWebHost:function(e){return{data:e.Data}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(134,r,t,null!=e?e.asyncContext:void 0)},y.prototype.setNodeValueAsync=function(e,t,n){var r=this;"function"==typeof t&&(n=t);var i={toSafeArrayHost:function(){return[m(r,r.m_handle),e]},fromSafeArrayHost:function(e){},toWebHost:function(){return{DataNodeHandle:m(r,r.m_handle),Data:e}},fromWebHost:function(e){return{}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(137,i,n,null!=t?t.asyncContext:void 0)},y.prototype.getXmlAsync=function(e,t){var n=this;"function"==typeof e&&(t=e);var r={toSafeArrayHost:function(){return[m(n,n.m_handle)]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{DataNodeHandle:m(n,n.m_handle)}},fromWebHost:function(e){return{data:e.Data}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(135,r,t,null!=e?e.asyncContext:void 0)},y.prototype.setXmlAsync=function(e,t,n){var r=this;"function"==typeof t&&(n=t);var i={toSafeArrayHost:function(){return[m(r,r.m_handle),e]},fromSafeArrayHost:function(e){},toWebHost:function(){return{DataNodeHandle:m(r,r.m_handle),xml:e}},fromWebHost:function(e){return{}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(138,i,n,null!=t?t.asyncContext:void 0)},y.prototype.getTextAsync=function(e,t){var n=this;"function"==typeof e&&(t=e);var r={toSafeArrayHost:function(){return[m(n,n.m_handle)]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{DataNodeHandle:m(n,n.m_handle)}},fromWebHost:function(e){return{data:e.Data}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(142,r,t,null!=e?e.asyncContext:void 0)},y.prototype.setTextAsync=function(e,t,n){var r=this;"function"==typeof t&&(n=t);var i={toSafeArrayHost:function(){return[m(r,r.m_handle),e]},fromSafeArrayHost:function(e){},toWebHost:function(){return{DataNodeHandle:m(r,r.m_handle),undefined:e}},fromWebHost:function(e){return{}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(143,i,n,null!=t?t.asyncContext:void 0)},y);function y(e,t,n,r){this.m_handle=e,this.m_nodeType=t,this.m_ns=n,this.m_baseName=r}function m(e,t){return t}a.CustomXmlNode=g,a.manufactureDataNode=function(e){if(e)return new a.CustomXmlNode(e[a.DataNodeProperties.Handle],e[a.DataNodeProperties.NodeType],e[a.DataNodeProperties.NamespaceUri],e[a.DataNodeProperties.BaseName])},a.manufactureDataPart=function(e,t){return new a.CustomXmlPart(t,e[a.DataPartProperties.Id],e[a.DataPartProperties.BuiltIn])},c=a.Marshaling||(a.Marshaling={}),l=c.Customxml||(c.Customxml={}),(u=l.CustomXmlPartsKeys||(l.CustomXmlPartsKeys={})).Id="id",u.Namespace="namespace",u.Xml="xml",u.XPath="xpath",u.Prefix="prefix",(p=l.DataPartProperties||(l.DataPartProperties={})).Id="id",p.BuiltIn="DataPartBuiltIn",(f=l.PropertyDescriptors||(l.PropertyDescriptors={})).DataPartProperties="DataPartProperties",f.DataNodeProperties="DataNodeProperties",(d=l.DataNodeProperties||(l.DataNodeProperties={})).Handle="DataNodeHandle",d.BaseName="DataNodeBaseName",d.NamespaceUri="DataNodeNamespaceUri",d.NodeType="DataNodeType",(h=l.ListDescriptors||(l.ListDescriptors={})).DataPartList="DataPartList",h.DataNodeList="DataNodeList",a.CustomXml||(a.CustomXml={}),a.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){},defineSafeArrayParameterMapFunc:function(){a.HostParameterMap.define({type:a.EventDescriptors.DataNodeInsertedEvent,fromHost:[{name:a.DataNodeEventProperties.InUndoRedo,value:0},{name:a.DataNodeEventProperties.NewNode,value:1}],isComplexType:!0}),a.HostParameterMap.define({type:a.EventDescriptors.DataNodeReplacedEvent,fromHost:[{name:a.DataNodeEventProperties.InUndoRedo,value:0},{name:a.DataNodeEventProperties.OldNode,value:1},{name:a.DataNodeEventProperties.NewNode,value:2}],isComplexType:!0}),a.HostParameterMap.define({type:a.EventDescriptors.DataNodeDeletedEvent,fromHost:[{name:a.DataNodeEventProperties.InUndoRedo,value:0},{name:a.DataNodeEventProperties.OldNode,value:1},{name:a.DataNodeEventProperties.NextSiblingNode,value:2}],isComplexType:!0}),a.HostParameterMap.define({type:a.DataNodeEventProperties.OldNode,fromHost:[{name:a.PropertyDescriptors.DataNodeProperties,value:a.HostParameterMap.self}],isComplexType:!0}),a.HostParameterMap.define({type:a.DataNodeEventProperties.NewNode,fromHost:[{name:a.PropertyDescriptors.DataNodeProperties,value:a.HostParameterMap.self}],isComplexType:!0}),a.HostParameterMap.define({type:a.DataNodeEventProperties.NextSiblingNode,fromHost:[{name:a.PropertyDescriptors.DataNodeProperties,value:a.HostParameterMap.self}],isComplexType:!0}),a.HostParameterMap.define({type:a.EventDispId.dispidDataNodeAddedEvent,fromHost:[{name:a.EventDescriptors.DataNodeInsertedEvent,value:a.HostParameterMap.self}]}),a.HostParameterMap.define({type:a.EventDispId.dispidDataNodeReplacedEvent,fromHost:[{name:a.EventDescriptors.DataNodeReplacedEvent,value:a.HostParameterMap.self}]}),a.HostParameterMap.define({type:a.EventDispId.dispidDataNodeDeletedEvent,fromHost:[{name:a.EventDescriptors.DataNodeDeletedEvent,value:a.HostParameterMap.self}]})},defineWebParameterMapFunc:function(){a.HostParameterMap.define({type:a.EventDescriptors.DataNodeInsertedEvent,fromHost:[{name:a.DataNodeEventProperties.InUndoRedo,value:a.Marshaling.Customxml.DataNodeEventProperties.InUndoRedo},{name:a.DataNodeEventProperties.NewNode,value:a.Marshaling.Customxml.DataNodeEventProperties.NewNode}],isComplexType:!0}),a.HostParameterMap.define({type:a.EventDescriptors.DataNodeReplacedEvent,fromHost:[{name:a.DataNodeEventProperties.InUndoRedo,value:a.Marshaling.Customxml.DataNodeEventProperties.InUndoRedo},{name:a.DataNodeEventProperties.OldNode,value:a.Marshaling.Customxml.DataNodeEventProperties.OldNode},{name:a.DataNodeEventProperties.NewNode,value:a.Marshaling.Customxml.DataNodeEventProperties.NewNode}],isComplexType:!0}),a.HostParameterMap.define({type:a.EventDescriptors.DataNodeDeletedEvent,fromHost:[{name:a.DataNodeEventProperties.InUndoRedo,value:a.Marshaling.Customxml.DataNodeEventProperties.InUndoRedo},{name:a.DataNodeEventProperties.OldNode,value:a.Marshaling.Customxml.DataNodeEventProperties.OldNode},{name:a.DataNodeEventProperties.NextSiblingNode,value:a.Marshaling.Customxml.DataNodeEventProperties.NextSiblingNode}],isComplexType:!0}),a.HostParameterMap.define({type:a.DataNodeEventProperties.OldNode,fromHost:[{name:a.PropertyDescriptors.DataNodeProperties,value:a.HostParameterMap.self}],isComplexType:!0}),a.HostParameterMap.define({type:a.DataNodeEventProperties.NewNode,fromHost:[{name:a.PropertyDescriptors.DataNodeProperties,value:a.HostParameterMap.self}],isComplexType:!0}),a.HostParameterMap.define({type:a.DataNodeEventProperties.NextSiblingNode,fromHost:[{name:a.PropertyDescriptors.DataNodeProperties,value:a.HostParameterMap.self}],isComplexType:!0}),a.HostParameterMap.define({type:a.EventDispId.dispidDataNodeAddedEvent,fromHost:[{name:a.EventDescriptors.DataNodeInsertedEvent,value:a.HostParameterMap.self}]}),a.HostParameterMap.define({type:a.EventDispId.dispidDataNodeReplacedEvent,fromHost:[{name:a.EventDescriptors.DataNodeReplacedEvent,value:a.HostParameterMap.self}]}),a.HostParameterMap.define({type:a.EventDispId.dispidDataNodeDeletedEvent,fromHost:[{name:a.EventDescriptors.DataNodeDeletedEvent,value:a.HostParameterMap.self}]})}}),a.processDataPart=function(e){return a.manufactureDataPart(e,Office.context.document.customXmlParts)},a.processDataNode=function(e){return a.manufactureDataNode(e)}}(OSF=OSF||{}),function(i){var e;function r(e){if(null==e||null==e)return null;var t=null,n=typeof e;return void 0!==e.rows?t=Office.CoercionType.Table:i.OUtil.isArray(e)?t=Office.CoercionType.Matrix:"string"!=n&&"number"!=n&&"boolean"!=n&&!i.OUtil.isDate(e)||(t=Office.CoercionType.Text),t}function o(e,t,n){return(n=n||r(e))&&n!=t&&(e=function(e,t){var n;switch(e){case Office.CoercionType.Table:n=t;break;case Office.CoercionType.Matrix:n=function(e){var t=e.rows;null!=e.headers&&t.unshift(e.headers);return t}(t);break;case Office.CoercionType.SlideRange:i.manufactureSlideRange&&null==(n=i.manufactureSlideRange(s(t)))&&(n=s(t));break;case Office.CoercionType.Text:case Office.CoercionType.Html:case Office.CoercionType.Ooxml:default:n=s(t)}return n}(t,function(e,t){null==t&&(t=r(e));var n;switch(t){case Office.CoercionType.Table:n=e;break;case Office.CoercionType.Matrix:n=new Office.TableData(e);break;case Office.CoercionType.Text:case Office.CoercionType.Html:case Office.CoercionType.Ooxml:default:n=new Office.TableData(function(e){for(var t=e.split("\n"),n=0;n<t.length;n++)t[n]=t[n].split("\t");return t}(e))}return n}(e,n))),e}function a(e){if(1==e.length&&1==e[0].length)return""+e[0][0];for(var t="",n=0;n<e.length;n++)t+=e[n].join("\t")+"\n";return t.substring(0,t.length-1)}function s(e){var t="";null!=e.headers&&(t=a([e.headers])+"\n");var n=a(e.rows);return""==n&&(t=t.substring(0,t.length-1)),t+n}e=i.DataCoercion||(i.DataCoercion={}),i.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){},defineSafeArrayParameterMapFunc:function(){i.HostParameterMap.define({type:i.ParameterNames.CoercionType,toHost:[{name:Office.CoercionType.Text,value:0},{name:Office.CoercionType.Matrix,value:1},{name:Office.CoercionType.Table,value:2},{name:Office.CoercionType.Html,value:3},{name:Office.CoercionType.Ooxml,value:4},{name:Office.CoercionType.OoxmlPackage,value:5},{name:Office.CoercionType.PdfFile,value:6},{name:Office.CoercionType.SlideRange,value:7}]});var e=i._OfficeAppFactory.getHostInfo();e.hostPlatform!=i.HostInfoPlatform.win32&&e.hostPlatform!=i.HostInfoPlatform.mac&&e.hostPlatform!=i.HostInfoPlatform.ios&&e.hostPlatform!=i.HostInfoPlatform.android||(i.OUtil.augmentList(Office.CoercionType,{Image:"image"}),i.OUtil.augmentList(Office.CoercionType,{XmlSvg:"xmlSvg"}),i.HostParameterMap.define({type:i.ParameterNames.CoercionType,toHost:[{name:"image",value:8},{name:"xmlSvg",value:9}]}));i.HostParameterMap.define({type:i.ParameterNames.ValueFormat,toHost:[{name:Office.ValueFormat.Unformatted,value:0},{name:Office.ValueFormat.Formatted,value:1}]}),i.HostParameterMap.define({type:i.ParameterNames.FilterType,toHost:[{name:Office.FilterType.All,value:0}]})},defineWebParameterMapFunc:function(){i.OUtil.augmentList(Office.CoercionType,{Image:"image"}),i.OUtil.augmentList(Office.CoercionType,{XmlSvg:"xmlSvg"}),i.HostParameterMap.define({type:i.ParameterNames.CoercionType,toHost:[{name:Office.CoercionType.Text,value:0},{name:Office.CoercionType.Matrix,value:1},{name:Office.CoercionType.Table,value:2},{name:Office.CoercionType.Html,value:3},{name:Office.CoercionType.Ooxml,value:4},{name:Office.CoercionType.OoxmlPackage,value:5},{name:Office.CoercionType.PdfFile,value:6},{name:Office.CoercionType.SlideRange,value:7},{name:"image",value:8},{name:"xmlSvg",value:9}]}),i.HostParameterMap.define({type:i.ParameterNames.ValueFormat,toHost:[{name:Office.ValueFormat.Unformatted,value:0},{name:Office.ValueFormat.Formatted,value:1}]}),i.HostParameterMap.define({type:i.ParameterNames.FilterType,toHost:[{name:Office.FilterType.All,value:0}]})}}),e.findArrayDimensionality=function e(t){if(i.OUtil.isArray(t)){for(var n=0,r=0;r<t.length;r++)n=Math.max(n,e(t[r]));return n+1}return 0},e.getCoercionDefaultForBinding=function(e){switch(e){case Office.BindingType.Matrix:return Office.CoercionType.Matrix;case Office.BindingType.Table:return Office.CoercionType.Table;case Office.BindingType.Text:default:return Office.CoercionType.Text}},e.getBindingDefaultForCoercion=function(e){switch(e){case Office.CoercionType.Matrix:return Office.BindingType.Matrix;case Office.CoercionType.Table:return Office.BindingType.Table;case Office.CoercionType.Text:case Office.CoercionType.Html:case Office.CoercionType.Ooxml:default:return Office.BindingType.Text}},e.determineCoercionType=r,e.coerceData=o,e.serializeDynamicData=function(e){if(null!=e&&void 0!==e.rows){var t={};t[i.TableDataProperties.TableRows]=e.rows,t[i.TableDataProperties.TableHeaders]=e.headers,e=t}var n;if(i._OfficeAppFactory.getHostInfo().hostPlatform==i.HostInfoPlatform.web)return"string"!=typeof e&&void 0!==e[i.TableDataProperties.TableRows]?((n={}).Rows=e[i.TableDataProperties.TableRows],n.Headers=e[i.TableDataProperties.TableHeaders],e=n):i.DataCoercion.determineCoercionType(e)==Office.CoercionType.Text&&(e=[[e]]),e;if(i.TableDataProperties&&"string"!=typeof e&&void 0!==e[i.TableDataProperties.TableRows]){(n=[])[0]=e[i.TableDataProperties.TableRows],n[1]=e[i.TableDataProperties.TableHeaders],e=n}return e},e.deserializeDynamicData=function(e,t){var n=null;if(i._OfficeAppFactory.getHostInfo().hostPlatform==i.HostInfoPlatform.web)null!=e.Rows?((n={})[i.TableDataProperties.TableRows]=e.Rows,n[i.TableDataProperties.TableHeaders]=e.Headers):n=e,!n||null==n[i.TableDataProperties.TableRows]&&null==n[i.TableDataProperties.TableHeaders]||(n=Office.manufactureTableData(n)),n=o(n,t);else{if(2===e.length){(n={})[i.TableDataProperties.TableRows]=e[0],n[i.TableDataProperties.TableHeaders]=e[1],n=Office.manufactureTableData(n)}else n=e;n=o(n,t)}return n}}(OSF=OSF||{}),function(e){var t,n,r;((t=e.Marshaling||(e.Marshaling={})).GetDataKeys||(t.GetDataKeys={})).CoercionType="CoerceType",(n=t.SetDataKeys||(t.SetDataKeys={})).CoercionType="CoerceType",n.Data="Data",n.ImageLeft="ImageLeft",n.ImageTop="ImageTop",n.ImageWidth="ImageWidth",n.ImageHeight="ImageHeight",(r=t.CoercionTypeKeys||(t.CoercionTypeKeys={})).Html="html",r.Ooxml="ooxml",r.SlideRange="slideRange",r.Text="text",r.Table="table",r.Matrix="matrix",r.Image="image",r.XmlSvg="xmlSvg",e.DataIO||(e.DataIO={}),e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){},defineWebParameterMapFunc:function(){e.HostParameterMap.define({type:e.WACDelegate.UniqueArguments.GetData,toHost:[{name:e.ParameterNames.Id,value:"BindingId"},{name:e.ParameterNames.CoercionType,value:"CoerceType"},{name:e.ParameterNames.ValueFormat,value:"ValueFormat"},{name:e.ParameterNames.FilterType,value:"FilterType"},{name:e.ParameterNames.Rows,value:"Rows"},{name:e.ParameterNames.Columns,value:"Columns"},{name:e.ParameterNames.StartRow,value:"StartRow"},{name:e.ParameterNames.StartColumn,value:"StartCol"},{name:e.ParameterNames.RowCount,value:"RowCount"},{name:e.ParameterNames.ColumnCount,value:"ColCount"}]}),e.HostParameterMap.define({type:e.WACDelegate.UniqueArguments.SetData,toHost:[{name:e.ParameterNames.Id,value:"BindingId"},{name:e.ParameterNames.CoercionType,value:"CoerceType"},{name:e.ParameterNames.Data,value:e.WACDelegate.UniqueArguments.Data},{name:e.ParameterNames.Rows,value:"Rows"},{name:e.ParameterNames.Columns,value:"Columns"},{name:e.ParameterNames.StartRow,value:"StartRow"},{name:e.ParameterNames.StartColumn,value:"StartCol"},{name:e.ParameterNames.ImageLeft,value:"ImageLeft"},{name:e.ParameterNames.ImageTop,value:"ImageTop"},{name:e.ParameterNames.ImageWidth,value:"ImageWidth"},{name:e.ParameterNames.ImageHeight,value:"ImageHeight"}]})}})}(OSF=OSF||{}),function(e){var t,n,r,i,o;t=e.Marshaling||(e.Marshaling={}),(n=t.DialogMessageReceivedEventKeys||(t.DialogMessageReceivedEventKeys={})).MessageType="messageType",n.MessageContent="messageContent",n.MessageOrigin="messageOrigin",(r=t.DialogParentMessageReceivedEventKeys||(t.DialogParentMessageReceivedEventKeys={})).MessageType="messageType",r.MessageContent="messageContent",r.MessageOrigin="messageOrigin",(i=t.MessageParentKeys||(t.MessageParentKeys={})).MessageToParent="messageToParent",i.TargetOrigin="targetOrigin",(t.DialogNotificationShownEventType||(t.DialogNotificationShownEventType={})).DialogNotificationShown="dialogNotificationShown",(o=t.SendMessageKeys||(t.SendMessageKeys={})).MessageContent="messageContent",o.TargetOrigin="targetOrigin"}(OSF=OSF||{}),function(u){var e;(e=u.EventDescriptors||(u.EventDescriptors={})).DialogParentMessageReceivedEvent="DialogParentMessageReceivedEvent",e.DialogMessageReceivedEvent="DialogMessageReceivedEvent",u.DialogParentMessageEventDispatch=new u.EventDispatch([u.EventType.DialogParentMessageReceived,u.EventType.DialogParentEventReceived]),u.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){u.AsyncMethodCalls.define({method:u.AsyncMethods.DisplayDialogAsync,requiredArguments:[{name:u.ParameterNames.Url,types:["string"]}],supportedOptions:[{name:u.ParameterNames.Width,value:{types:["number"],defaultValue:99}},{name:u.ParameterNames.Height,value:{types:["number"],defaultValue:99}},{name:u.ParameterNames.RequireHTTPs,value:{types:["boolean"],defaultValue:!0}},{name:u.ParameterNames.DisplayInIframe,value:{types:["boolean"],defaultValue:!1}},{name:u.ParameterNames.HideTitle,value:{types:["boolean"],defaultValue:!1}},{name:u.ParameterNames.UseDeviceIndependentPixels,value:{types:["boolean"],defaultValue:!1}},{name:u.ParameterNames.PromptBeforeOpen,value:{types:["boolean"],defaultValue:!0}},{name:u.ParameterNames.EnforceAppDomain,value:{types:["boolean"],defaultValue:!0}},{name:u.ParameterNames.UrlNoHostInfo,value:{types:["boolean"],defaultValue:!1}}],privateStateCallbacks:[],onSucceeded:function(e,t,n){var r=e[u.ParameterNames.Id],i=e[u.ParameterNames.Data],o={},a=u.AsyncMethods.CloseAsync;u.OUtil.defineEnumerableProperty(o,a,{value:function(){(0,u.DispIdHost.CloseDialog)(arguments,r,i,o)}});var s=u.SyncMethods.AddMessageHandler;if(u.OUtil.defineEnumerableProperty(o,s,{value:function(){var e=u.SyncMethodCalls.get(u.SyncMethods.AddMessageHandler).verifyAndExtractCall(arguments,o,i),t=e[u.ParameterNames.EventType],n=e[u.ParameterNames.Handler];return i.addEventHandlerAndFireQueuedEvent(t,n)}}),!0===u.EnableSendMessageDialogAPI){var c=u.SyncMethods.SendMessage;u.OUtil.defineEnumerableProperty(o,c,{value:function(){return(0,u.DispIdHost.SendMessage)(arguments,i,o)}})}if(!0===u.EnableMessageChildDialogAPI){var l=u.SyncMethods.MessageChild;u.OUtil.defineEnumerableProperty(o,l,{value:function(){return(0,u.DispIdHost.SendMessage)(arguments,i,o)}})}return o},checkCallArgs:function(e,t,n){return e[u.ParameterNames.Width]<=0&&(e[u.ParameterNames.Width]=1),!e[u.ParameterNames.UseDeviceIndependentPixels]&&100<e[u.ParameterNames.Width]&&(e[u.ParameterNames.Width]=99),e[u.ParameterNames.Height]<=0&&(e[u.ParameterNames.Height]=1),!e[u.ParameterNames.UseDeviceIndependentPixels]&&100<e[u.ParameterNames.Height]&&(e[u.ParameterNames.Height]=99),e[u.ParameterNames.RequireHTTPs]||(e[u.ParameterNames.RequireHTTPs]=!0),e}}),u.AsyncMethodCalls.define({method:u.AsyncMethods.CloseAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[]}),u.SyncMethodCalls.define({method:u.SyncMethods.MessageParent,requiredArguments:[{name:u.ParameterNames.MessageToParent,types:["string","number","boolean"]}],supportedOptions:[{name:u.ParameterNames.TargetOrigin,value:{types:["string"],defaultValue:""}}]}),u.SyncMethodCalls.define({method:u.SyncMethods.AddMessageHandler,requiredArguments:[{name:u.ParameterNames.EventType,enum:u.EventType,verify:function(e,t,n){return n.supportsEvent(e)}},{name:u.ParameterNames.Handler,types:["function"]}],supportedOptions:[]}),u.SyncMethodCalls.define({method:u.SyncMethods.SendMessage,requiredArguments:[{name:u.ParameterNames.MessageContent,types:["string"]}],supportedOptions:[{name:u.ParameterNames.TargetOrigin,value:{types:["string"],defaultValue:""}}],privateStateCallbacks:[]})},defineSafeArrayParameterMapFunc:function(){u.HostParameterMap.define({type:u.EventDispId.dispidDialogMessageReceivedEvent,fromHost:[{name:u.EventDescriptors.DialogMessageReceivedEvent,value:u.HostParameterMap.self}],isComplexType:!0}),u.HostParameterMap.define({type:u.EventDescriptors.DialogMessageReceivedEvent,fromHost:[{name:u.PropertyDescriptors.MessageType,value:0},{name:u.PropertyDescriptors.MessageContent,value:1},{name:u.PropertyDescriptors.MessageOrigin,value:2}],isComplexType:!0}),u.HostParameterMap.define({type:u.EventDispId.dispidDialogParentMessageReceivedEvent,fromHost:[{name:u.EventDescriptors.DialogParentMessageReceivedEvent,value:u.HostParameterMap.self}],isComplexType:!0}),u.HostParameterMap.define({type:u.EventDescriptors.DialogParentMessageReceivedEvent,fromHost:[{name:u.PropertyDescriptors.MessageType,value:0},{name:u.PropertyDescriptors.MessageContent,value:1},{name:u.PropertyDescriptors.MessageOrigin,value:2}],isComplexType:!0})},defineWebParameterMapFunc:function(){u.HostParameterMap.define({type:u.EventDispId.dispidDialogMessageReceivedEvent,fromHost:[{name:u.EventDescriptors.DialogMessageReceivedEvent,value:u.HostParameterMap.self}]}),u.HostParameterMap.addComplexType(u.EventDescriptors.DialogMessageReceivedEvent),u.HostParameterMap.define({type:u.EventDescriptors.DialogMessageReceivedEvent,fromHost:[{name:u.PropertyDescriptors.MessageType,value:u.Marshaling.DialogMessageReceivedEventKeys.MessageType},{name:u.PropertyDescriptors.MessageContent,value:u.Marshaling.DialogMessageReceivedEventKeys.MessageContent},{name:u.PropertyDescriptors.MessageOrigin,value:u.Marshaling.DialogMessageReceivedEventKeys.MessageOrigin}]}),u.HostParameterMap.define({type:u.EventDispId.dispidDialogParentMessageReceivedEvent,fromHost:[{name:u.EventDescriptors.DialogParentMessageReceivedEvent,value:u.HostParameterMap.self}]}),u.HostParameterMap.addComplexType(u.EventDescriptors.DialogParentMessageReceivedEvent),u.HostParameterMap.define({type:u.EventDescriptors.DialogParentMessageReceivedEvent,fromHost:[{name:u.PropertyDescriptors.MessageType,value:u.Marshaling.DialogParentMessageReceivedEventKeys.MessageType},{name:u.PropertyDescriptors.MessageContent,value:u.Marshaling.DialogParentMessageReceivedEventKeys.MessageContent},{name:u.PropertyDescriptors.MessageOrigin,value:u.Marshaling.DialogMessageReceivedEventKeys.MessageOrigin}]}),u.HostParameterMap.define({type:144,toHost:[{name:u.ParameterNames.MessageToParent,value:u.Marshaling.MessageParentKeys.MessageToParent},{name:u.ParameterNames.TargetOrigin,value:u.Marshaling.MessageParentKeys.TargetOrigin}]}),u.HostParameterMap.define({type:145,toHost:[{name:u.ParameterNames.MessageContent,value:u.Marshaling.SendMessageKeys.MessageContent},{name:u.ParameterNames.TargetOrigin,value:u.Marshaling.MessageParentKeys.TargetOrigin}]})},initializeFunc:function(){var e=u.OUtil.isPopupWindow();u.EnableMessageChildDialogAPI=!0,"onenote"==u._OfficeAppFactory.getHostInfo().hostType?u.EnableSendMessageDialogAPI=!1:u.EnableSendMessageDialogAPI=!0;var t=Office.context.ui;if(u.OUtil.isDialog()){var n=u.SyncMethods.MessageParent;t[n]||u.OUtil.defineEnumerableProperty(t,n,{value:function(){return(0,u.DispIdHost.MessageParent)(arguments,t)}});var r=u.SyncMethods.AddMessageHandler;t[r]||void 0===u.DialogParentMessageEventDispatch||u.DispIdHost.addEventSupport(t,u.DialogParentMessageEventDispatch,e),e&&u.WacDialogAction.registerMessageReceivedEvent()}else{var i;i=null!=u.EventType.DialogParentMessageReceived?new u.EventDispatch([u.EventType.DialogMessageReceived,u.EventType.DialogEventReceived,u.EventType.DialogParentMessageReceived]):new u.EventDispatch([u.EventType.DialogMessageReceived,u.EventType.DialogEventReceived]);var o=u.AsyncMethods.DisplayDialogAsync;t[o]||u.OUtil.defineEnumerableProperty(t,o,{value:function(){(0,u.DispIdHost.OpenDialog)(arguments,i,t)}})}u.OUtil.finalizeProperties(t)}})}(OSF=OSF||{});var OfficeExt,DialogApiManager=function(){function e(){}return e.messageChildRichApiBridge=function(){if(!0===OSF.EnableMessageChildDialogAPI)return(0,OSF.DispIdHost.SendMessage)(arguments,null,null)},e}();__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};!function(b){var e,t,f,d,h,g,s,y,m,_,i,n,o,a,r,v,c,l,O,C;function u(e,t){var n=t.message,r=t.targetOrigin;if(r)e.postMessage(n,r);else{var i=b._OfficeAppFactory.getOfficeAppContext().get_appDomains(),o=window.location.origin;if(o=o||window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""),i)for(var a=0;a<i.length&&-1!==i[a].indexOf("://");a++)e.postMessage(n,i[a]);b.XdmCommunicationManager.checkUrlWithAppDomains(i,o)||e.postMessage(n,o)}}function p(){try{g&&g.id==v&&y&&y(12009)}catch(e){b.AppTelemetry&&b.AppTelemetry.logAppException("Error happened during executing displayDialogAsync callback."+e)}x()}function P(e,t){var n=!1,r=b.WacCommonUICssManager.getDialogCssManager(t);h=D(r),document.body.insertBefore(h,document.body.firstChild),(g=function(e,t){var n=document.createElement("div");n.style.cssText=e.getDialogNotificationPanelCSS(),k(n);var r=document.createElement("div");r.style.cssText=e.getCrossZoneNotificationTextPanelCSS(),r.id=O;var i=document.createElement("a");i.id=l,i.href="#",i.innerText=Strings.OfficeOM.L_NewWindowCrossZoneConfigureBrowserLink,i.setAttribute("onclick","window.open('https://support.microsoft.com/en-us/help/17479/windows-internet-explorer-11-change-security-privacy-settings', '_blank', 'fullscreen=1')");var o=document.createElement("span");if(Strings.OfficeOM.L_NewWindowCrossZone){var a=Strings.OfficeOM.L_NewWindowCrossZone.replace(/{1+}/gm,b.OUtil.getDomainForUrl(t)).split("{0}");o.appendChild(document.createTextNode(a[0])),o.appendChild(i),o.appendChild(document.createTextNode(a[1]))}return r.appendChild(o),n.appendChild(r),n}(r,e)).id=c;var i=j(r),o=T(r,Strings.OfficeOM.L_DialogOK?Strings.OfficeOM.L_DialogOK:"OK");i.appendChild(o),g.appendChild(i),document.body.insertBefore(g,document.body.firstChild),m=!0,o.onclick=function(){x()},o.addEventListener("keydown",function(e){9==e.keyCode?(document.getElementById(l).focus(),e.preventDefault(),e.stopPropagation()):13==e.keyCode&&(n=!0,e.preventDefault(),e.stopPropagation())},!1),o.addEventListener("keyup",function(e){13==e.keyCode&&n&&(n=!1,x(),e.preventDefault(),e.stopPropagation())},!1),document.getElementById(l).addEventListener("keydown",function(e){9==e.keyCode&&(o.focus(),e.preventDefault(),e.stopPropagation())},!1),window.focus(),o.focus()}function R(e){if(e.source==f)try{var t=e.origin;if(!function(e,t,n){if(void 0===n&&(n=!0),!e||!t)return!1;var r=b.OUtil.parseUrl(e),i=b.OUtil.parseUrl(t),o=b._OfficeAppFactory.getOfficeAppContext().get_appDomains();if(!("https:"===r.protocol))return!1;var a=r.protocol===i.protocol&&r.hostname===i.hostname&&r.port===i.port,s=b.XdmCommunicationManager.checkUrlWithAppDomains(o,e),c=a||s;return!c&&n&&(c=b.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(t,e)),c}(t,b._OfficeAppFactory.getOfficeAppContext().get_docUrl(),!0))throw new Error("Received a message from a dialog with an untrusted domain.");var n={};n[b.Marshaling.DialogMessageReceivedEventKeys.MessageType]=0,n[b.Marshaling.DialogMessageReceivedEventKeys.MessageContent]=e.data,n[b.Marshaling.DialogMessageReceivedEventKeys.MessageOrigin]=t,d(n)}catch(e){b.AppTelemetry&&b.AppTelemetry.logAppException("Error happened during receive message handler."+e)}}function S(e){var t=b._OfficeAppFactory.getId()+i;if(e.key==t)try{var n={};n[b.Marshaling.DialogMessageReceivedEventKeys.MessageType]=0,n[b.Marshaling.DialogMessageReceivedEventKeys.MessageContent]=e.newValue,n[b.Marshaling.DialogMessageReceivedEventKeys.MessageOrigin]=e.origin,d(n)}catch(e){b.AppTelemetry&&b.AppTelemetry.logAppException("Error happened during storage changed handler."+e)}}function I(e){var t=b._OfficeAppFactory.getHostInfo(),n=[t.hostType,t.hostPlatform,t.hostSpecificFileVersion,t.hostLocale,t.osfControlAppCorrelationId,"isDialog",t.disableLogging?"disableLogging":"",t.flags&b.HostInfoFlags.PublicAddin].join("$"),r=b._OfficeAppFactory.getOfficeAppContext();r.set_taskpaneUrl(window.location.origin),r.get_taskpaneUrl()||r.set_taskpaneUrl(window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""));var i=e.url;e[b.ShowWindowDialogParameterKeys.UrlNoHostInfo]||(i=b.OUtil.addHostInfoAsQueryParam(i,n));var o=JSON.parse(window.name);o.hostInfo=n;var a=__assign({},r);if(a._appName===b.AppName.ExcelWebApp){if(!a._settings&&a._settingsFunc){var s=a._settingsFunc();a._settings=Object.keys(s).map(function(e){return[e,s[e]]})}if(!a._hostSettings&&a._hostSettingsFunc){var c=a._hostSettingsFunc();a._hostSettings=Object.keys(c).map(function(e){return[e,c[e]]})}o.appContext=a}else o.appContext=r;var l=e[b.ShowWindowDialogParameterKeys.Width]*screen.width/100,u=e[b.ShowWindowDialogParameterKeys.Height]*screen.height/100,p="width="+l+", height="+u+", left="+(r.get_clientWindowWidth()/2-l/2)+", top="+(r.get_clientWindowHeight()/2-u/2)+",channelmode=no,directories=no,fullscreen=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,titlebar=yes,toolbar=no";if(null==(f=window.open(i,b.OUtil.serializeObjectToString(o),p)))return b.AppTelemetry.logAppCommonMessage("Encountered cross zone issue in displayDialogAsync api."),E(),P(i,t.hostType),void y(12011);b.OUtil.shouldUseLocalStorageToPassMessage()?window.addEventListener("storage",S):window.addEventListener("message",R),_=window.setInterval(function(){try{if(null==f||f.closed){window.clearInterval(_),b.OUtil.shouldUseLocalStorageToPassMessage()?window.removeEventListener("storage",S):window.removeEventListener("message",R);var e={};e[b.Marshaling.DialogMessageReceivedEventKeys.MessageType]=12006,d(e)}}catch(e){b.AppTelemetry&&b.AppTelemetry.logAppException("Error happened during check or handle window close."+e)}},1e3),null!=y?y(0):b.AppTelemetry&&b.AppTelemetry.logAppException("showDialogCallback can not be null.")}function T(e,t){var n=document.createElement("input");n.setAttribute("type","button"),n.style.cssText=e.getDialogButtonCSS(),n.style.borderColor=o,n.style.backgroundColor=a,n.setAttribute("value",t);function r(){A(n)}function i(){N(n)}return n.addEventListener("mouseover",r),n.addEventListener("focus",r),n.addEventListener("mouseout",i),n.addEventListener("focusout",i),n}function A(e){null!=n?(e.style.borderColor=n.HostButtonBorderColor,e.style.backgroundColor=n.HostButtonBackgroundColor):b.OUtil.getCommonUI()?(e.style.borderColor=b.OUtil.getCommonUI().HostButtonBorderColor,e.style.backgroundColor=b.OUtil.getCommonUI().HostButtonBackgroundColor):e.style.backgroundColor=r}function N(e){e.style.borderColor=o,e.style.backgroundColor=a}function x(){C.onCalling=function(e){E(),w(e)},b.WACDelegate.unregisterEventAsync(C)}function E(){null!=g&&(document.body.removeChild(g),g=null),null!=h&&(document.body.removeChild(h),h=null)}function D(e){var t=document.createElement("div");return t.style.cssText=e.getOverlayElementCSS(),t}function j(e){var t=document.createElement("div");return t.style.cssText=e.getDialogNotificationButtonPanelCSS(),"rtl"==document.documentElement.getAttribute("dir")?t.style.cssFloat="left":t.style.cssFloat="right",t}function w(e){if(0!=e){var t=document.querySelectorAll(b._OfficeAppFactory.getInitializationHelper().getTabbableElements());b.OUtil.focusToFirstTabbable(t,!1)}}function k(e){e.setAttribute("role","dialog"),e.setAttribute("aria-describedby",O)}(e=b.ShowWindowDialogParameterKeys||(b.ShowWindowDialogParameterKeys={})).Url="url",e.Width="width",e.Height="height",e.DisplayInIframe="displayInIframe",e.HideTitle="hideTitle",e.UseDeviceIndependentPixels="useDeviceIndependentPixels",e.PromptBeforeOpen="promptBeforeOpen",e.EnforceAppDomain="enforceAppDomain",e.UrlNoHostInfo="urlNoHostInfo",e.TargetOrigin="targetOrigin",function(e){var t="excel",n="word",r="powerpoint",i="outlook",o="visio";e.getDialogCssManager=function(e){switch(e){case t:case n:case r:case i:case o:default:return new a}};var a=(s.prototype.getOverlayElementCSS=function(){return this.overlayElementCSS.join(";")},s.prototype.getDialogNotificationPanelCSS=function(){return this.dialogNotificationPanelCSS.join(";")},s.prototype.getNewWindowNotificationTextPanelCSS=function(){return this.newWindowNotificationTextPanelCSS.join(";")},s.prototype.getNewWindowNotificationTextSpanCSS=function(){return this.newWindowNotificationTextSpanCSS.join(";")},s.prototype.getCrossZoneNotificationTextPanelCSS=function(){return this.crossZoneNotificationTextPanelCSS.join(";")},s.prototype.getDialogNotificationButtonPanelCSS=function(){return this.dialogNotificationButtonPanelCSS},s.prototype.getDialogButtonCSS=function(){return this.buttonStyleCSS.join(";")},s);function s(){this.overlayElementCSS=["position: absolute","top: 0","left: 0","width: 100%","height: 100%","background-color: rgba(198, 198, 198, 0.5)","z-index: 99998"],this.dialogNotificationPanelCSS=["width: 100%","height: 190px","position: absolute","z-index: 99999","background-color: rgba(255, 255, 255, 1)","left: 0px","top: 50%","margin-top: -95px"],this.newWindowNotificationTextPanelCSS=["margin: 20px 14px","font-family: Segoe UI,Arial,Verdana,sans-serif","font-size: 14px","height: 100px","line-height: 100px"],this.newWindowNotificationTextSpanCSS=["display: inline-block","line-height: normal","vertical-align: middle"],this.crossZoneNotificationTextPanelCSS=["margin: 20px 14px","font-family: Segoe UI,Arial,Verdana,sans-serif","font-size: 14px","height: 100px"],this.dialogNotificationButtonPanelCSS="margin:0px 9px",this.buttonStyleCSS=["text-align: center","width: 70px","height: 25px","font-size: 14px","font-family: Segoe UI,Arial,Verdana,sans-serif","margin: 0px 5px","border-width: 1px","border-style: solid"]}e.DefaultDialogCSSManager=a}(b.WacCommonUICssManager||(b.WacCommonUICssManager={})),t=b.WacDialogAction||(b.WacDialogAction={}),m=!(s="osfDialogInternal:action=closeDialog"),_=-1,i="messageParentKey",n=y=g=h=d=f=null,o="#ababab",a="#ffffff",r="#ccc",v="newWindowNotificaiton",c="crossZoneNotification",l="configureBrowserLink",O="dialogNotificationTextPanel",C={dispId:b.EventDispId.dispidDialogNotificationShownInAddinEvent,eventType:b.Marshaling.DialogNotificationShownEventType.DialogNotificationShown,onComplete:null,onCalling:null},t.setHostThemeButtonStyle=function(e){var t=e.input;null!=t&&(n={HostButtonBorderColor:t[b.OUtil.HostThemeButtonStyleKeys.ButtonBorderColor],HostButtonBackgroundColor:t[b.OUtil.HostThemeButtonStyleKeys.ButtonBackgroundColor]}),e.completed()},t.removeEventListenersForDialog=function(e){!function(e){function t(){b._OfficeAppFactory.getWebAppState().focused||(b._OfficeAppFactory.getWebAppState().focused=!0),b.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,b.AgaveHostAction.Select])}function n(){b&&(b._OfficeAppFactory.getWebAppState().focused&&(b._OfficeAppFactory.getWebAppState().focused=!1),b.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,b.AgaveHostAction.UnSelect]))}function r(e){if(e.preventDefault=e.preventDefault||function(){e.returnValue=!1},117==e.keyCode&&(e.ctrlKey||e.metaKey)){e.preventDefault();var t=b.AgaveHostAction.CtrlF6Exit;e.shiftKey&&(t=b.AgaveHostAction.CtrlF6ExitShift),b.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,t])}else if(9==e.keyCode){e.preventDefault();var n=document.querySelectorAll(o._tabbableElements);b.OUtil.focusToNextTabbable(n,e.target||e.srcElement,e.shiftKey)||(o._hostInfo.isDialog?b.OUtil.focusToFirstTabbable(n,e.shiftKey):e.shiftKey?b.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,b.AgaveHostAction.TabExitShift]):b.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,b.AgaveHostAction.TabExit]))}else if(27==e.keyCode)e.preventDefault(),p(),b.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,b.AgaveHostAction.EscExit]);else if(113==e.keyCode)e.preventDefault(),b.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,b.AgaveHostAction.F2Exit]);else if((e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)&&1<=e.keyCode&&e.keyCode<=255){var r={keyCode:e.keyCode,shiftKey:e.shiftKey,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey};b.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,b.AgaveHostAction.KeyboardShortcuts,r])}}function i(e){117==e.keyCode&&e.ctrlKey&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}var o=this;e?(b.OUtil.addEventListener(window,"focus",t),b.OUtil.addEventListener(window,"blur",n),b.OUtil.addEventListener(window,"keydown",r),b.OUtil.addEventListener(window,"keypress",i)):(b.OUtil.removeEventListener(window,"focus",t),b.OUtil.removeEventListener(window,"blur",n),b.OUtil.removeEventListener(window,"keydown",r),b.OUtil.removeEventListener(window,"keypress",i))}(!1),e.completed()},t.handleNewWindowDialog=function(t){try{if(l=t,u=b._OfficeAppFactory.getOfficeAppContext().get_appDomains(),p=l.url,!(b.XdmCommunicationManager.checkUrlWithAppDomains(u,p)||b._OfficeAppFactory.getOfficeAppContext().get_docUrl()&&b.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(b._OfficeAppFactory.getOfficeAppContext().get_docUrl(),p)))return void y(12004);if(!t[b.ShowWindowDialogParameterKeys.PromptBeforeOpen])return void I(t);var n=m=!1,e=b._OfficeAppFactory.getHostInfo(),r=b.WacCommonUICssManager.getDialogCssManager(e.hostType),i=b.OUtil.formatString(Strings.OfficeOM.L_ShowWindowDialogNotification,b._OfficeAppFactory.getOfficeAppContext().get_addinName());h=D(r),document.body.insertBefore(h,document.body.firstChild),(g=function(e,t){var n=document.createElement("div");n.style.cssText=e.getDialogNotificationPanelCSS(),k(n);var r=document.createElement("div");r.style.cssText=e.getNewWindowNotificationTextPanelCSS(),r.id=O,"rtl"==document.documentElement.getAttribute("dir")?r.style.paddingRight="30px":r.style.paddingLeft="30px";var i=document.createElement("span");return i.style.cssText=e.getNewWindowNotificationTextSpanCSS(),i.innerText=t,r.appendChild(i),n.appendChild(r),n}(r,i)).id=v;var o=j(r),a=T(r,Strings.OfficeOM.L_ShowWindowDialogNotificationAllow),s=T(r,Strings.OfficeOM.L_ShowWindowDialogNotificationIgnore);function c(e){C.onCalling=function(e){E(),w(e),y(12009)},b.WACDelegate.unregisterEventAsync(C),e.preventDefault(),e.stopPropagation()}o.appendChild(a),o.appendChild(s),g.appendChild(o),document.body.insertBefore(g,document.body.firstChild),a.onclick=function(e){I(t),m||x(),e.preventDefault(),e.stopPropagation()},s.onclick=c,a.addEventListener("keydown",function(e){e.shiftKey&&9==e.keyCode&&(N(a),A(s),s.focus(),e.preventDefault(),e.stopPropagation())},!1),s.addEventListener("keydown",function(e){e.shiftKey||9!=e.keyCode?13==e.keyCode&&(n=!0,e.preventDefault(),e.stopPropagation()):(N(s),A(a),a.focus(),e.preventDefault(),e.stopPropagation())},!1),s.addEventListener("keyup",function(e){13==e.keyCode&&n&&(n=!1,c(e))},!1),window.focus(),C.onCalling=function(e){a.focus()},b.WACDelegate.registerEventAsync(C)}catch(e){b.AppTelemetry&&b.AppTelemetry.logAppException("Exception happens at new window dialog."+e),y(5001)}var l,u,p},t.closeDialog=function(t){try{if(null!=f){var e=b._OfficeAppFactory.getOfficeAppContext().get_appDomains();if(e)for(var n=0;n<e.length&&-1!==e[n].indexOf("://");n++)f.postMessage(s,e[n]);null==f||f.closed||f.close(),b.OUtil.shouldUseLocalStorageToPassMessage()?window.removeEventListener("storage",S):window.removeEventListener("message",R),window.clearInterval(_),f=null,t(0)}else t(5001)}catch(e){b.AppTelemetry&&b.AppTelemetry.logAppException("Exception happens at close window dialog."+e),t(5001)}},t.messageParent=function(e){var t=e.hostCallArgs[b.ParameterNames.MessageToParent],n=e.hostCallArgs[b.ParameterNames.TargetOrigin]||null;if(b.OUtil.shouldUseLocalStorageToPassMessage())try{var r=b._OfficeAppFactory.getId()+i;window.localStorage.setItem(r,t)}catch(e){b.AppTelemetry&&b.AppTelemetry.logAppException("Error happened during messageParent method:"+e)}else u(window.opener,{message:t,targetOrigin:n})},t.sendMessage=function(e){if(null!=f){var t=e.hostCallArgs,n=t[b.ParameterNames.TargetOrigin]||null;delete t[b.ParameterNames.TargetOrigin],"string"!=typeof t&&(t=JSON.stringify(t)),u(f,{message:t,targetOrigin:n})}},t.postDialogMessage=u,t.registerMessageReceivedEvent=function(){window.addEventListener("message",function(e){var t=e.origin;if(e.source==window.opener&&(!0===window.office_disable_receive_dialog_message_prompt||b.WacDialogAction.validateTaskpaneDomain(t,!0)))if("string"==typeof e.data&&-1<e.data.indexOf(s))window.close();else{var n=e.data,r=typeof n;if(n&&("object"==r||"string"==r)){var i="string"==r?JSON.parse(n):n,o={};o[b.Marshaling.DialogMessageReceivedEventKeys.MessageContent]=i.messageContent,o[b.Marshaling.DialogMessageReceivedEventKeys.MessageOrigin]=e.origin;var a=b.manufactureEventArgs(b.EventType.DialogParentMessageReceived,null,o);b.DialogParentMessageEventDispatch.fireEvent(a)}}})},t.setHandlerAndShowDialogCallback=function(e,t){d=e,y=t},t.escDismissDialogNotification=p,t.showCrossZoneNotification=P,t.getWithExpiry=function(e,t){var n=e.getItem(t);if(!n)return"undefined";var r=JSON.parse(n);return r.expiry&&r.value?(new Date).getTime()>r.expiry?(e.removeItem(t),"undefined"):r.value:"undefined"},t.setWithExpiry=function(e,t,n){var r={value:n,expiry:(new Date).getTime()+864e5};e.setItem(t,JSON.stringify(r))},t.getLocalStorage=function(){return b.SafeStorage?new b.SafeStorage(window.localStorage):window.localStorage},t.getSessionStorage=function(){return b.SafeStorage?new b.SafeStorage(window.sessionStorage):window.sessionStorage},t.getUrlProtocolHostnamePort=function(e){var t=e.port?":"+e.port:"";return e.protocol+"//"+e.hostname+t},t.validateTaskpaneDomain=function(e,t){try{if(!e)return!1;t=t||!0;var n=window.location.origin;n=n||window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"");var r=b.OUtil.parseUrl(n,!0),i=b.OUtil.parseUrl(e,!0);if(!(r.protocol&&r.hostname&&i.protocol&&i.hostname&&void 0!==i.port))return!1;var o=(y=i,(g=r).hostname==y.hostname&&g.protocol==y.protocol&&(_=y,(m=g).port==_.port||""==m.port&&"http:"==m.protocol&&"80"==_.port||""==m.port&&"https:"==m.protocol&&"443"==_.port||""==_.port&&"http:"==_.protocol&&"80"==m.port||""==_.port&&"https:"==_.protocol&&"443"==m.port)),a=!1;if(t&&(a=b.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(e,n)),o||a)return!0;var s=this.getLocalStorage(),c=this.getSessionStorage(),l="_trusts_"+(i.protocol+"//"+i.hostname+(i.port?":"+i.port:"")),u=this.getWithExpiry(s,l),p=this.getWithExpiry(c,l);if("true"===u)return!0;if("false"===p)return!1;var f=this.getUrlProtocolHostnamePort(i),d=this.getUrlProtocolHostnamePort(r),h='You are about to send and receive potentially sensitive information from "'+d+'". Only click OK if you trust the following website recieving the sensitive information: "'+f+'".';return Strings.OfficeOM.L_ConfirmDialogApiTrustsParent&&(h=Strings.OfficeOM.L_ConfirmDialogApiTrustsParent.replace("{0}",d).replace("{1}",f)),window.confirm(h)?(this.setWithExpiry(s,l,"true"),this.setWithExpiry(c,l,"true"),!0):(this.setWithExpiry(s,l,"false"),this.setWithExpiry(c,l,"false"),!1)}catch(e){return b.AppTelemetry&&b.AppTelemetry.logAppException("Error happened during validateTaskpaneDomain method:"+e),!1}var g,y,m,_}}(OSF=OSF||{}),function(r){var e;(e=r.SafeArrayDelegate||(r.SafeArrayDelegate={})).openDialog=function(n){try{n.onCalling&&n.onCalling();var e=r.SafeArrayDelegate.getOnAfterRegisterEvent(!0,n);r._OfficeAppFactory.getClientHostController().openDialog(n.dispId,void 0,n.targetId,function(e,t){n.onEvent&&n.onEvent(t),r.AppTelemetry&&r.AppTelemetry.onEventDone(n.dispId)},e)}catch(e){r.SafeArrayDelegate.onException(e,n)}},e.closeDialog=function(t){t.onCalling&&t.onCalling();var e=r.SafeArrayDelegate.getOnAfterRegisterEvent(!1,t);try{r._OfficeAppFactory.getClientHostController().closeDialog(t.dispId,void 0,t.targetId,e)}catch(e){r.SafeArrayDelegate.onException(e,t)}},e.messageParent=function(e){try{e.onCalling&&e.onCalling();var t=(new Date).getTime(),n=r._OfficeAppFactory.getClientHostController().messageParent(e.hostCallArgs);return e.onReceiving&&e.onReceiving(),r.AppTelemetry&&r.AppTelemetry.onMethodDone(e.dispId,e.hostCallArgs,Math.abs((new Date).getTime()-t),n),n}catch(e){return r.SafeArrayDelegate.onExceptionSyncMethod(e)}},e.sendMessage=function(e){try{e.onCalling&&e.onCalling();(new Date).getTime();var t=r._OfficeAppFactory.getClientHostController().sendMessage(e.hostCallArgs);return e.onReceiving&&e.onReceiving(),t}catch(e){return r.SafeArrayDelegate.onExceptionSyncMethod(e)}}}(OSF=OSF||{}),function(y){var m;(m=y.WACDelegate||(y.WACDelegate={})).openDialog=function(t){var e=JSON.parse(t.targetId),n=m.getOnAfterRegisterEvent(!0,t);function r(e){var t={Error:e};try{n(0,t)}catch(e){y.AppTelemetry&&y.AppTelemetry.logAppException("Exception happens at showDialogCallback."+e)}}if(y.DialogShownStatus.hasDialogShown)r(12007);else{var i=e[y.ShowWindowDialogParameterKeys.Url].toLowerCase(),o=window.location.href.toLowerCase();if(y.AppTelemetry){var a=!1,s=!1,c=!1,l=!1,u="",p="";if(y.OUtil){var f=y.OUtil.parseUrl(i),d=y.OUtil.parseUrl(o);a=f.protocol===d.protocol&&f.hostname===d.hostname&&f.port===d.port,u=y.OUtil.getHostnamePortionForLogging(f.hostname),a?p=u:(p=y.OUtil.getHostnamePortionForLogging(d.hostname),s=y.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(i,o),c=y.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(o,i));var h=y._OfficeAppFactory.getOfficeAppContext().get_appDomains();l=y.XdmCommunicationManager.checkUrlWithAppDomains(h,i)}var g="openDialog isInline: "+e[y.ShowWindowDialogParameterKeys.DisplayInIframe].toString()+", taskpaneHostname: "+p+", dialogHostName: "+u+", isSameDomain: "+a.toString()+", parentIsSubdomain: "+s.toString()+", childIsSubdomain: "+c.toString()+", isAppDomain: "+l.toString();y.AppTelemetry.logAppCommonMessage(g)}null!=i&&"https://"===i.substr(0,"https://".length)?e[y.ShowWindowDialogParameterKeys.DisplayInIframe]?(y.DialogShownStatus.isWindowDialog=!1,y.WACDelegate.registerEventAsync(t)):(y.DialogShownStatus.isWindowDialog=!0,y.WacDialogAction.setHandlerAndShowDialogCallback(function(e){t.onEvent&&t.onEvent(e),y.AppTelemetry&&y.AppTelemetry.onEventDone(t.dispId)},r),y.WacDialogAction.handleNewWindowDialog(e)):"http://"===i.substr(0,"http://".length)?r(12005):r(12003)}},m.validateTaskpaneDomain=function(e,t){return y.WacDialogAction.validateTaskpaneDomain(e,t)},m.messageParent=function(e){var t=e.hostCallArgs.targetOrigin,n=!!t;if(n&&"*"!=t){var r=y.WacDialogAction.getLocalStorage(),i=y.WacDialogAction.getSessionStorage(),o="_trusts_",a=y.OUtil.parseUrl(t,!0);o+=a.protocol+"//"+a.hostname+(a.port?":"+a.port:""),y.WacDialogAction.setWithExpiry(r,o,"true"),y.WacDialogAction.setWithExpiry(i,o,"true")}if(null!=window.opener){if(!n){var s=y._OfficeAppFactory.getOfficeAppContext().get_taskpaneUrl();if(s){if(!y.WacDialogAction.validateTaskpaneDomain(s,!0)){var c="messageParent called but the taskpane domain is untrusted: "+s;throw y.AppTelemetry&&y.AppTelemetry.logAppException(c),new Error(c)}}else s=window.location.origin;e.hostCallArgs.targetOrigin=s}y.WacDialogAction.messageParent(e)}else{var l=window.location.origin;l=l||window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""),n||(e.hostCallArgs.targetOrigin=l),y.WACDelegate.executeAsync(e)}},m.sendMessage=function(e){y.DialogShownStatus.hasDialogShown&&(y.DialogShownStatus.isWindowDialog?y.WacDialogAction.sendMessage(e):y.WACDelegate.executeAsync(e))},m.closeDialog=function(e){var n=m.getOnAfterRegisterEvent(!1,e);function t(e){var t={Error:e};try{n(0,t)}catch(e){y.AppTelemetry&&y.AppTelemetry.logAppException("Exception happens at closeDialogCallback."+e)}}y.DialogShownStatus.hasDialogShown?y.DialogShownStatus.isWindowDialog?(e.onCalling&&e.onCalling(),y.WacDialogAction.closeDialog(t)):y.WACDelegate.unregisterEventAsync(e):t(12006)}}(OSF=OSF||{}),function(t){t.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){},defineSafeArrayParameterMapFunc:function(){t.HostParameterMap.define({type:t.EventDispId.dispidDocumentSelectionChangedEvent})},defineWebParameterMapFunc:function(){t.HostParameterMap.define({type:t.EventDispId.dispidDocumentSelectionChangedEvent})},initializeFunc:function(){var e=Office.context.document;t.DispIdHost.addEventSupport(e,new t.EventDispatch([t.EventType.DocumentSelectionChanged,t.EventType.ActiveViewChanged]))}})}(OSF=OSF||{}),function(e){e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){e.AsyncMethodCalls.define({method:e.AsyncMethods.AddHandlerAsync,requiredArguments:[{name:e.ParameterNames.EventType,enum:e.EventType,verify:function(e,t,n){return n.supportsEvent(e)}},{name:e.ParameterNames.Handler,types:["function"]}],supportedOptions:[],privateStateCallbacks:[]}),e.AsyncMethodCalls.define({method:e.AsyncMethods.RemoveHandlerAsync,requiredArguments:[{name:e.ParameterNames.EventType,enum:e.EventType,verify:function(e,t,n){return n.supportsEvent(e)}}],supportedOptions:[{name:e.ParameterNames.Handler,value:{types:["function","object"],defaultValue:null}}],privateStateCallbacks:[]})}})}(OSF=OSF||{}),function(t){var e;function n(){t.HostParameterMap.define({type:t.PropertyDescriptors.FeatureProperties,fromHost:[{name:t.PropertyDescriptors.TcidEnabled,value:0},{name:t.PropertyDescriptors.TcidVisible,value:1}],isComplexType:!0}),t.HostParameterMap.define({type:146,toHost:[{name:t.ParameterNames.Tcid,value:0}]}),t.HostParameterMap.define({type:147,fromHost:[{name:t.PropertyDescriptors.FeatureProperties,value:t.HostParameterMap.self}],toHost:[{name:t.ParameterNames.Tcid,value:0}]})}(e=t.PropertyDescriptors||(t.PropertyDescriptors={})).FeatureProperties="FeatureProperties",e.TcidEnabled="TcidEnabled",e.TcidVisible="TcidVisible",t.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){t.AsyncMethodCalls.define({method:t.AsyncMethods.ExecuteFeature,requiredArguments:[{name:t.ParameterNames.Tcid,types:["number"]}],privateStateCallbacks:[]}),t.AsyncMethodCalls.define({method:t.AsyncMethods.QueryFeature,requiredArguments:[{name:t.ParameterNames.Tcid,types:["number"]}],privateStateCallbacks:[]})},defineSafeArrayParameterMapFunc:n,defineWebParameterMapFunc:n,initializeFunc:function(){var e=Office.context.ui;t.DispIdHost.addAsyncMethods(e,[t.AsyncMethods.ExecuteFeature]),t.DispIdHost.addAsyncMethods(e,[t.AsyncMethods.QueryFeature])}})}(OSF=OSF||{}),function(e){var t,n;((t=e.context||(e.context={})).extensionLifeCycle||(t.extensionLifeCycle={})).launchExtensionComponent=function(e,t,n,r,i){var o=OSF.OUtil.Guid.generateNewGuid();null==i&&(i={OptionalProperties:{},DevProperties:{}}),i.OptionalProperties.InstanceToken=o;var a={ExtId:e,ComponentType:t,ComponentId:n,HostProps:r,OptionalProps:i};if(OSF._OfficeAppFactory.getHostInfo().hostPlatform!=OSF.HostInfoPlatform.web)throw OSF.Utility.createNotImplementedException();var s=OSF._OfficeAppFactory.getWebAppState();return s.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[s.id,OSF.AgaveHostAction.LaunchExtensionComponent,a]),{Id:e,ComponentType:t,ComponentId:n,InstanceToken:o,LaunchProperties:i}},(n=e.ExtensionLifeCycle||(e.ExtensionLifeCycle={})).close=function(e){OSF._OfficeAppFactory.getClientHostController().closeSdxDialog(e)},n.resize=function(e,t){OSF.Utility.isNullOrUndefined(e)||OSF.Utility.isNullOrUndefined(t)||"number"!=typeof e||"number"!=typeof t?OSF.Utility.debugLog("Invaid dialog width or height. Kindly provide two numbers as input parameters."):OSF._OfficeAppFactory.getClientHostController().resizeSdxDialog(e,t)}}(Office=Office||{}),function(e){var t=(Object.defineProperty(n.prototype,"size",{get:function(){return this.m_fileSize},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"sliceCount",{get:function(){return Math.ceil(this.m_fileSize/this.m_sliceSize)},enumerable:!0,configurable:!0}),n.prototype.getSliceAsync=function(e,t){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.GetDocumentCopyChunkAsync,arguments,this,this.m_privateState)},n.prototype.closeAsync=function(e){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.ReleaseDocumentCopyAsync,arguments,this,this.m_privateState)},n);function n(e,t,n){this.m_fileSize=t,this.m_sliceSize=n,this.m_privateState={},this.m_privateState[OSF.FileProperties.Handle]=e,this.m_privateState[OSF.FileProperties.SliceSize]=n}e.File=t}(Office=Office||{}),function(r){var e;((e=r.context||(r.context={})).document||(e.document={})).getFileAsync=function(e,t,n){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.GetDocumentCopyAsync,arguments,r.context.document,void 0)}}(Office=Office||{}),function(i){var e,t,n,r,o,a,s,c;(e=i.PropertyDescriptors||(i.PropertyDescriptors={})).FileProperties="FileProperties",e.FileSliceProperties="FileSliceProperties",(t=i.FileProperties||(i.FileProperties={})).Handle="FileHandle",t.FileSize="FileSize",t.SliceSize="sliceSize",(i.additionalParameter||(i.additionalParameter={})).FileSliceOffset="fileSliceoffset",n=i.Marshaling||(i.Marshaling={}),r=n.File||(n.File={}),(o=r.FilePropertiesKeys||(r.FilePropertiesKeys={}))[o.Handle=0]="Handle",o[o.FileSize=1]="FileSize",(a=r.SlicePropertiesKeys||(r.SlicePropertiesKeys={}))[a.Data=0]="Data",a[a.SliceSize=1]="SliceSize",(s=r.FileType||(r.FileType={}))[s.Text=0]="Text",s[s.Compressed=1]="Compressed",s[s.Pdf=2]="Pdf",(c=r.ParameterKeys||(r.ParameterKeys={}))[c.FileType=0]="FileType",c[c.SliceSize=1]="SliceSize",c[c.Handle=2]="Handle",c[c.SliceIndex=3]="SliceIndex",i.File||(i.File={}),i.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){i.AsyncMethodCalls.define({method:i.AsyncMethods.GetDocumentCopyAsync,requiredArguments:[{name:i.ParameterNames.FileType,enum:Office.FileType}],supportedOptions:[{name:i.ParameterNames.SliceSize,value:{types:["number"],defaultValue:i.OUtil.getHostPlatform()==i.HostInfoPlatform.ios?65536:4194304}}],checkCallArgs:function(e,t,n){var r=e[i.ParameterNames.SliceSize];if(r<=0||4194304<r)throw 11002;return e},onSucceeded:function(e,t,n){return new Office.File(e[i.FileProperties.Handle],e[i.FileProperties.FileSize],n[i.ParameterNames.SliceSize])}}),i.AsyncMethodCalls.define({method:i.AsyncMethods.GetDocumentCopyChunkAsync,requiredArguments:[{name:i.ParameterNames.SliceIndex,types:["number"]}],privateStateCallbacks:[{name:i.FileProperties.Handle,value:function(e,t){return t[i.FileProperties.Handle]}},{name:i.FileProperties.SliceSize,value:function(e,t){return t[i.FileProperties.SliceSize]}}],checkCallArgs:function(e,t,n){var r=e[i.ParameterNames.SliceIndex];if(r<0||r>=t.sliceCount)throw 5008;return e[i.additionalParameter.FileSliceOffset]=parseInt((r*n[i.FileProperties.SliceSize]).toString()),e},onSucceeded:function(e,t,n){var r={};return i.OUtil.defineEnumerableProperties(r,{data:{value:i.OUtil.getHostPlatform()==i.HostInfoPlatform.mac?i.OUtil.shallowCopy(e[i.ParameterNames.Data]):e[i.ParameterNames.Data]},index:{value:n[i.ParameterNames.SliceIndex]},size:{value:e[i.FileProperties.SliceSize]}}),r}}),i.AsyncMethodCalls.define({method:i.AsyncMethods.ReleaseDocumentCopyAsync,privateStateCallbacks:[{name:i.FileProperties.Handle,value:function(e,t){return t[i.FileProperties.Handle]}}]})},defineSafeArrayParameterMapFunc:function(){i.HostParameterMap.define({type:i.PropertyDescriptors.FileProperties,fromHost:[{name:i.FileProperties.Handle,value:0},{name:i.FileProperties.FileSize,value:1}],isComplexType:!0}),i.HostParameterMap.define({type:i.PropertyDescriptors.FileSliceProperties,fromHost:[{name:i.ParameterNames.Data,value:0},{name:i.FileProperties.SliceSize,value:1}],isComplexType:!0}),i.HostParameterMap.define({type:i.ParameterNames.FileType,toHost:[{name:Office.FileType.Text,value:0},{name:Office.FileType.Compressed,value:5},{name:Office.FileType.Pdf,value:6}]}),i.HostParameterMap.define({type:77,toHost:[{name:i.ParameterNames.FileType,value:0}],fromHost:[{name:i.PropertyDescriptors.FileProperties,value:i.HostParameterMap.self}]}),i.HostParameterMap.define({type:80,toHost:[{name:i.FileProperties.Handle,value:0},{name:i.additionalParameter.FileSliceOffset,value:1},{name:i.FileProperties.SliceSize,value:2}],fromHost:[{name:i.PropertyDescriptors.FileSliceProperties,value:i.HostParameterMap.self}]}),i.HostParameterMap.define({type:81,toHost:[{name:i.FileProperties.Handle,value:0}]})},defineWebParameterMapFunc:function(){i.HostParameterMap.addComplexType(i.PropertyDescriptors.FileProperties),i.HostParameterMap.addComplexType(i.PropertyDescriptors.FileSliceProperties),i.HostParameterMap.define({type:i.PropertyDescriptors.FileProperties,fromHost:[{name:i.FileProperties.Handle,value:i.Marshaling.File.FilePropertiesKeys.Handle},{name:i.FileProperties.FileSize,value:i.Marshaling.File.FilePropertiesKeys.FileSize}]}),i.HostParameterMap.define({type:i.PropertyDescriptors.FileSliceProperties,fromHost:[{name:i.ParameterNames.Data,value:i.Marshaling.File.SlicePropertiesKeys.Data},{name:i.FileProperties.SliceSize,value:i.Marshaling.File.SlicePropertiesKeys.SliceSize}]}),i.HostParameterMap.define({type:i.ParameterNames.FileType,toHost:[{name:Office.FileType.Text,value:i.Marshaling.File.FileType.Text},{name:Office.FileType.Compressed,value:i.Marshaling.File.FileType.Compressed},{name:Office.FileType.Pdf,value:i.Marshaling.File.FileType.Pdf}]}),i.HostParameterMap.define({type:77,toHost:[{name:i.ParameterNames.FileType,value:i.Marshaling.File.ParameterKeys.FileType},{name:i.ParameterNames.SliceSize,value:i.Marshaling.File.ParameterKeys.SliceSize}],fromHost:[{name:i.PropertyDescriptors.FileProperties,value:i.HostParameterMap.self}]}),i.HostParameterMap.define({type:80,toHost:[{name:i.FileProperties.Handle,value:i.Marshaling.File.ParameterKeys.Handle},{name:i.ParameterNames.SliceIndex,value:i.Marshaling.File.ParameterKeys.SliceIndex}],fromHost:[{name:i.PropertyDescriptors.FileSliceProperties,value:i.HostParameterMap.self}]}),i.HostParameterMap.define({type:81,toHost:[{name:i.FileProperties.Handle,value:i.Marshaling.File.ParameterKeys.Handle}]})}})}(OSF=OSF||{}),(OfficeExt||(OfficeExt={})).FileProperties=function(e){OSF.OUtil.defineEnumerableProperties(this,{url:{value:e[OSF.FilePropertiesDescriptor.Url]}})},function(t){var e,n;t.FilePropertiesDescriptor={Url:"Url"},(t.PropertyDescriptors||(t.PropertyDescriptors={})).FilePropertiesDescriptor="FilePropertiesDescriptor",e=t.Marshaling||(t.Marshaling={}),(n=e.FilePropertiesKeys||(e.FilePropertiesKeys={}))[n.Properties=0]="Properties",n[n.Url=1]="Url",t.FileProperties||(t.FileProperties={}),t.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){t.AsyncMethodCalls.define({method:t.AsyncMethods.GetFilePropertiesAsync,fromHost:[{name:t.PropertyDescriptors.FilePropertiesDescriptor,value:0}],requiredArguments:[],supportedOptions:[],onSucceeded:function(e,t,n){return new OfficeExt.FileProperties(e)}})},defineSafeArrayParameterMapFunc:function(){t.HostParameterMap.define({type:t.PropertyDescriptors.FilePropertiesDescriptor,fromHost:[{name:t.FilePropertiesDescriptor.Url,value:0}],isComplexType:!0}),t.HostParameterMap.define({type:86,fromHost:[{name:t.PropertyDescriptors.FilePropertiesDescriptor,value:t.HostParameterMap.self}]})},defineWebParameterMapFunc:function(){t.HostParameterMap.addComplexType(t.PropertyDescriptors.FilePropertiesDescriptor),t.HostParameterMap.define({type:t.PropertyDescriptors.FilePropertiesDescriptor,fromHost:[{name:t.FilePropertiesDescriptor.Url,value:t.Marshaling.FilePropertiesKeys.Url}]}),t.HostParameterMap.define({type:86,fromHost:[{name:t.PropertyDescriptors.FilePropertiesDescriptor,value:t.Marshaling.FilePropertiesKeys.Properties}]})},initializeFunc:function(){var e=Office.context.document;t.DispIdHost.addAsyncMethods(e,[t.AsyncMethods.GetFilePropertiesAsync])}})}(OSF=OSF||{});var Office,OSF;__awaiter=this&&this.__awaiter||function(o,a,s,c){return new(s=s||Promise)(function(e,t){function n(e){try{i(c.next(e))}catch(e){t(e)}}function r(e){try{i(c.throw(e))}catch(e){t(e)}}function i(t){t.done?e(t.value):new s(function(e){e(t.value)}).then(n,r)}i((c=c.apply(o,a||[])).next())})},__generator=this&&this.__generator||function(n,r){var i,o,a,e,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return e={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,o&&(a=2&t[0]?o.return:t[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,t[1])).done)return a;switch(o=0,a&&(t=[2&t[0],a.value]),t[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,o=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=r.call(n,s)}catch(e){t=[6,e],o=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}};!function(a){var r;function e(){this._events=[]}a.NestedAppAuth||(a.NestedAppAuth={}),e.prototype.postMessage=function(e){var t,n,r,i,o=this;t=e,n=function(t){"succeeded"==t.status&&o._events.forEach(function(e){e(t.value)})},r=a._OfficeAppFactory.getAsyncMethodExecutor(),i={toSafeArrayHost:function(){return[]},fromSafeArrayHost:function(e){return null},toWebHost:function(){return{requestPayload:t}},fromWebHost:function(e){return e.responsePayload}},r.executeAsync(209,i,n)},e.prototype.addEventListener=function(e,t){"message"===e&&this._events.push(t)},e.prototype.removeEventListener=function(e,t){"message"===e&&(this._events=this._events.filter(function(e){return e!=t}))},r=e,a.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){},initializeFunc:function(){var e=a._OfficeAppFactory.getOfficeAppContext(),t=e.get_nestedAppAuthBridgeType();if(1===t)window.nestedAppAuthBridge=new r;else if(2===t&&!window.nestedAppAuthBridge){var n=e.get_topFrameOrigin();n&&a._OfficeAppFactory.getInitializationHelper().setCreateNaaBridge(function(){return function(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t=a.LoadScriptHelper.getHostBundleJsBasePath()+"webauth/hubsdknaabridge.min.js",[4,a.OUtil.loadScriptPromise(t,a.LoadScriptHelper.getTrustedTypesPolicy())];case 1:return e.sent()&&HubSdkNaaBridge.initializeBridge(n),[3,3];case 2:return e.sent(),[3,3];case 3:return[2]}})})}(n)})}}})}(OSF=OSF||{}),function(r){var e;((e=r.DDA||(r.DDA={})).Auth||(e.Auth={})).getAuthContextAsync=function(e){function t(e){var t=e.userObjectId||"",n=e.tenantId||"",r=e.userPrincipalName||"";return{userObjectId:t,tenantId:n,userPrincipalName:r,authorityType:e.authorityType||"",authorityBaseUrl:e.authorityBaseUrl||"",puid:e.puid||"",loginHint:e.loginHint||r}}var n={toSafeArrayHost:function(){return[]},fromSafeArrayHost:function(e){try{return t(JSON.parse(e))}catch(e){return null}},toWebHost:function(){return{}},fromWebHost:function(e){return t(e)}};r._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(205,n,e)}}(OSF=OSF||{}),function(r){(r.auth||(r.auth={})).getAuthContext=function(){return new r.Promise(function(t,n){OSF.DDA.Auth.getAuthContextAsync(function(e){e.status===r.AsyncResultStatus.Succeeded?t(e.value):n(e.error)})})}}(Office=Office||{}),(Office||(Office={})).select=function(e,t){var n;if(e&&"string"==typeof e){var r=e.indexOf("#");if(-1!=r){var i=e.substring(0,r),o=e.substring(r+1);switch(i){case"binding":case"bindings":o&&(n=new OSF.BindingPromise(o))}}}if(n)return n.onFail=t,n;if(t){var a=typeof t;if("function"!=a)throw OSF.OUtil.formatString(Strings.OfficeOM.L_CallbackNotAFunction,a);var s={};s[OSF.ParameterNames.Callback]=t,OSF.DispIdHost.issueAsyncResult(s,5004,OSF.DDA.ErrorCodeManager.getErrorArgs(5004))}},function(s){var e,t;function c(e){var t=0;switch(e){case s.CoercionType.Text:t=0;break;case s.CoercionType.Matrix:t=1;break;case s.CoercionType.Table:t=2;break;case s.CoercionType.Html:t=3;break;case s.CoercionType.Ooxml:t=4;break;case s.CoercionType.OoxmlPackage:t=5;break;case s.CoercionType.PdfFile:t=6;break;case s.CoercionType.SlideRange:t=7;break;case"image":t=8;break;case"xmlSvg":t=9}return t}e=s.context||(s.context={}),(t=e.document||(e.document={})).setSelectedDataAsync=function(t,n,e){var r=null==n.coercionType?OSF.DataCoercion.determineCoercionType(t):n.coercionType;"function"==typeof n&&(e=n);var i={toSafeArrayHost:function(){var e=OSF._OfficeAppFactory.getHostInfo();return e.hostType.toLowerCase()==s.HostType.Word.toLowerCase()||e.hostType.toLowerCase()==s.HostType.PowerPoint.toLowerCase()||e.hostType.toLowerCase()==s.HostType.OneNote.toLowerCase()||e.hostType.toLowerCase()==s.HostType.Visio.toLowerCase()||"image"==r||"xmlSvg"==r?[c(r),OSF.DataCoercion.serializeDynamicData(t),null!=n.imageLeft&&n.imageLeft,null!=n.imageTop&&n.imageTop,null!=n.imageWidth&&n.imageWidth,null!=n.imageHeight&&n.imageHeight]:e.hostType.toLowerCase()==s.HostType.Excel.toLowerCase()?[c(r),OSF.DataCoercion.serializeDynamicData(t),null==n.cellFormat?[]:n.cellFormat,null==n.tableOptions?[]:n.tableOptions,null!=n.imageWidth&&n.imageWidth,null!=n.imageHeight&&n.imageHeight]:[c(r),OSF.DataCoercion.serializeDynamicData(t),null==n.cellFormat?[]:n.cellFormat,null==n.tableOptions?[]:n.tableOptions]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{DdaSetBindingData:{CoerceType:r,Data:OSF.DataCoercion.serializeDynamicData(t),CellFormat:[],TableOptions:[]}}},fromWebHost:function(e){return e}};OSF._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(65,i,e,null)},t.getSelectedDataAsync=function(t,e,n){var r,i=s.ValueFormat.Unformatted,o=s.FilterType.All;"function"==typeof e?n=e:void 0!==e&&(void 0!==e.valueFormat&&(i=e.valueFormat),void 0!==e.filterType&&(o=e.filterType),void 0!==e.asyncContext&&(r=e.asyncContext));var a={toSafeArrayHost:function(){return[c(t),function(e){var t=0;switch(e){case s.ValueFormat.Unformatted:t=0;break;case s.ValueFormat.Formatted:t=1}return t}(i),function(e){var t=0;switch(e){case s.FilterType.All:t=0;break;case s.FilterType.OnlyVisible:t=1}return t}(o)]},fromSafeArrayHost:function(e){return OSF.DataCoercion.deserializeDynamicData(e,t)},toWebHost:function(){return{DdaGetBindingData:{CoerceType:t,ValueFormat:i,FilterType:o}}},fromWebHost:function(e){return OSF.DataCoercion.deserializeDynamicData(e.Data,t)}};OSF._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(64,a,n,r)}}(Office=Office||{}),function(t){var e=(Object.defineProperty(n.prototype,"headers",{get:function(){return this._header},set:function(e){this._header=this.fixData(e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rows",{get:function(){return this._rows},set:function(e){this._rows=null==e||OSF.OUtil.isArray(e)&&0==e.length?[]:this.fixData(e)},enumerable:!0,configurable:!0}),n.prototype.fixData=function(e){if(null==e||null==e)return null;try{for(var t=OSF.DataCoercion.findArrayDimensionality(e);t<2;t++)e=[e];return e}catch(e){}},n);function n(e,t){this._rows=e,this._header=t}t.TableData=e,t.manufactureTableData=function(e){return new t.TableData(e[OSF.TableDataProperties.TableRows],e[OSF.TableDataProperties.TableHeaders])}}(Office=Office||{}),function(e){e.BootStrapExtension.prepareApiSurface=function(){return new Promise(function(){e.V10ApiFeatureRegistry.initialize()})}}(OSF=OSF||{}),function(a){var e;(function(r){var e;(e=r.EventDescriptors||(r.EventDescriptors={})).OfficeThemeChangedEvent="OfficeThemeChangedEvent",e.DocumentThemeChangedEvent="DocumentThemeChangedEvent",a.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){a.AsyncMethodCalls.define({method:a.AsyncMethods.GetDocumentThemeAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[],onSucceeded:a.DDA.Theming.ConvertToDocumentTheme}),a.AsyncMethodCalls.define({method:a.AsyncMethods.GetOfficeThemeAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[],onSucceeded:a.DDA.Theming.ConvertToOfficeTheme})},defineSafeArrayParameterMapFunc:function(){a.HostParameterMap.define({type:85,fromHost:[{name:a.ParameterNames.OfficeTheme,value:a.HostParameterMap.self}]}),a.HostParameterMap.define({type:a.ParameterNames.OfficeTheme,fromHost:[{name:a.DDA.Theming.OfficeThemeEnum.BodyForegroundColor,value:0},{name:a.DDA.Theming.OfficeThemeEnum.BodyBackgroundColor,value:1},{name:a.DDA.Theming.OfficeThemeEnum.ControlForegroundColor,value:2},{name:a.DDA.Theming.OfficeThemeEnum.ControlBackgroundColor,value:3},{name:a.DDA.Theming.OfficeThemeEnum.ThemeId,value:4},{name:a.DDA.Theming.OfficeThemeEnum.IsDarkTheme,value:5},{name:a.DDA.Theming.OfficeThemeEnum.FluentThemeData,value:6}],isComplexType:!0}),a.HostParameterMap.define({type:a.EventDispId.dispidOfficeThemeChangedEvent,fromHost:[{name:a.DDA.Theming.EventDescriptors.OfficeThemeChangedEvent,value:a.HostParameterMap.self}],isComplexType:!0}),a.HostParameterMap.define({type:a.DDA.Theming.EventDescriptors.OfficeThemeChangedEvent,fromHost:[{name:a.ParameterNames.OfficeTheme,value:a.HostParameterMap.self}],isComplexType:!0})},defineWebParameterMapFunc:function(){a.HostParameterMap.addComplexType(a.ParameterNames.DocumentTheme),a.HostParameterMap.addComplexType(a.ParameterNames.OfficeTheme),a.HostParameterMap.define({type:a.EventDispId.dispidOfficeThemeChangedEvent,fromHost:[{name:a.ParameterNames.OfficeTheme,value:a.HostParameterMap.self}]}),a.HostParameterMap.define({type:a.ParameterNames.OfficeTheme,fromHost:[{name:a.DDA.Theming.OfficeThemeEnum.BodyForegroundColor,value:a.DDA.Theming.OfficeThemeEnumWac.PrimaryFontColor},{name:a.DDA.Theming.OfficeThemeEnum.BodyBackgroundColor,value:a.DDA.Theming.OfficeThemeEnumWac.PrimaryBackgroundColor},{name:a.DDA.Theming.OfficeThemeEnum.ControlForegroundColor,value:a.DDA.Theming.OfficeThemeEnumWac.SecondaryFontColor},{name:a.DDA.Theming.OfficeThemeEnum.ControlBackgroundColor,value:a.DDA.Theming.OfficeThemeEnumWac.SecondaryBackgroundColor}],isComplexType:!0})},initializeFunc:function(){var e=a._OfficeAppFactory.getHostInfo(),t=e.hostType.toLowerCase();if(e.hostPlatform==a.HostInfoPlatform.web&&(t==Office.HostType.Word.toLowerCase()||t==Office.HostType.PowerPoint.toLowerCase())&&Office.context.officeTheme){var n=r.GetIsDarkThemeFromCSSHexColor(Office.context.officeTheme.bodyBackgroundColor);Office.context.officeTheme[a.DDA.Theming.OfficeThemeEnum.IsDarkTheme]=n,Office.context.officeTheme[a.DDA.Theming.OfficeThemeEnum.ThemeId]=n?a.DDA.Theming.ThemeId.Black:a.DDA.Theming.ThemeId.White}Office.context&&Office.context.themeManager&&Office.context.themeManager.InitializeAndChangeOnce()}});var t=(n.prototype.InitializeThemeManager=function(){this._eventTarget=this,a.DispIdHost.addAsyncMethods(this,[a.AsyncMethods.GetOfficeThemeAsync,a.AsyncMethods.GetDocumentThemeAsync]),a.DispIdHost.addEventSupport(this,new a.EventDispatch([Microsoft.Office.WebExtension.EventType.OfficeThemeChanged,Microsoft.Office.WebExtension.EventType.DocumentThemeChanged]))},n.prototype.InitializeAndChangeOnce=function(e){var t=this;this._officeCss=this._getOfficeThemesCss(),this._officeCss?(this._onAsyncCallsCompleted=e,this._asyncCallsCompleted={},this._asyncCallsCompleted[a.AsyncMethods.GetOfficeThemeAsync]=!1,this._asyncCallsCompleted[a.AsyncMethods.GetDocumentThemeAsync]=!1,this._getAndProcessThemeData(this._eventTarget.getOfficeThemeAsync,function(e){t._processOfficeThemeData(e)},a.AsyncMethods.GetOfficeThemeAsync)):e&&e()},n.prototype.isDarkTheme=function(){var e=!1;if(Office.context&&Office.context.officeTheme&&Office.context.officeTheme.bodyBackgroundColor){var t=Office.context.officeTheme.bodyBackgroundColor;e=r.GetIsDarkThemeFromCSSHexColor(t)}return e},n.prototype._getOfficeThemesCss=function(){try{return function(){for(var e="officethemes.css",t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];if(!n.disabled&&n.href&&e==n.href.substring(n.href.length-e.length,n.href.length).toLowerCase())return n.cssRules||n.rules?n:(a.AppTelemetry&&a.AppTelemetry.logAppException("Browser styleSheet object does not implement cssRules or rules property. Viloates browser's css access rule"),null)}}()}catch(e){return a.AppTelemetry&&a.AppTelemetry.logAppException("Exception thrown when trying to read officethems.css:["+e+"]"),null}},n.prototype._changeCss=function(e,t,n){for(var r=e.cssRules?e.cssRules.length:e.rules.length,i=0;i<r;i++){var o=(e.cssRules?e.cssRules[i]:e.rules[i]).selectorText;o&&o.toLowerCase()==t.toLowerCase()&&(e.cssRules?(e.deleteRule(i),e.insertRule(o+n,i)):(e.removeRule(i),e.addRule(o,n,i)))}},n.prototype._changeDocumentThemeData=function(e){for(var t=[{name:a.DDA.Theming.DocumentThemeEnum.PrimaryFontColor,cssSelector:".office-docTheme-primary-fontColor",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.PrimaryBackgroundColor,cssSelector:".office-docTheme-primary-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.DocumentThemeEnum.SecondaryFontColor,cssSelector:".office-docTheme-secondary-fontColor",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.SecondaryBackgroundColor,cssSelector:".office-docTheme-secondary-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent1,cssSelector:".office-contentAccent1-color",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent2,cssSelector:".office-contentAccent2-color",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent3,cssSelector:".office-contentAccent3-color",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent4,cssSelector:".office-contentAccent4-color",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent5,cssSelector:".office-contentAccent5-color",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent6,cssSelector:".office-contentAccent6-color",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent1,cssSelector:".office-contentAccent1-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent2,cssSelector:".office-contentAccent2-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent3,cssSelector:".office-contentAccent3-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent4,cssSelector:".office-contentAccent4-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent5,cssSelector:".office-contentAccent5-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent6,cssSelector:".office-contentAccent6-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent1,cssSelector:".office-contentAccent1-borderColor",cssProperty:"border-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent2,cssSelector:".office-contentAccent2-borderColor",cssProperty:"border-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent3,cssSelector:".office-contentAccent3-borderColor",cssProperty:"border-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent4,cssSelector:".office-contentAccent4-borderColor",cssProperty:"border-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent5,cssSelector:".office-contentAccent5-borderColor",cssProperty:"border-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent6,cssSelector:".office-contentAccent6-borderColor",cssProperty:"border-color"},{name:a.DDA.Theming.DocumentThemeEnum.Hyperlink,cssSelector:".office-a",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.FollowedHyperlink,cssSelector:".office-a:visited",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.HeaderLatinFont,cssSelector:".office-headerFont-latin",cssProperty:"font-family"},{name:a.DDA.Theming.DocumentThemeEnum.HeaderEastAsianFont,cssSelector:".office-headerFont-eastAsian",cssProperty:"font-family"},{name:a.DDA.Theming.DocumentThemeEnum.HeaderScriptFont,cssSelector:".office-headerFont-script",cssProperty:"font-family"},{name:a.DDA.Theming.DocumentThemeEnum.HeaderLocalizedFont,cssSelector:".office-headerFont-localized",cssProperty:"font-family"},{name:a.DDA.Theming.DocumentThemeEnum.BodyLatinFont,cssSelector:".office-bodyFont-latin",cssProperty:"font-family"},{name:a.DDA.Theming.DocumentThemeEnum.BodyEastAsianFont,cssSelector:".office-bodyFont-eastAsian",cssProperty:"font-family"},{name:a.DDA.Theming.DocumentThemeEnum.BodyScriptFont,cssSelector:".office-bodyFont-script",cssProperty:"font-family"},{name:a.DDA.Theming.DocumentThemeEnum.BodyLocalizedFont,cssSelector:".office-bodyFont-localized",cssProperty:"font-family"}],n=e.type==a.EventType.DocumentThemeChanged?e.documentTheme:e,r=0;r<t.length;r++)if(null===this._previousDocumentThemeData||this._previousDocumentThemeData[t[r].name]!=n[t[r].name])if(null!=n[t[r].name]&&""!=n[t[r].name]){var i=n[t[r].name];"font-family"===t[r].cssProperty&&(i='"'+i.replace(new RegExp('"',"g"),'\\"')+'"'),this._changeCss(this._officeCss,t[r].cssSelector,"{"+t[r].cssProperty+":"+i+";}")}else this._changeCss(this._officeCss,t[r].cssSelector,"{}");this._previousDocumentThemeData=n},n.prototype._changeOfficeThemeData=function(e){for(var t=[{name:a.DDA.Theming.OfficeThemeEnum.BodyForegroundColor,cssSelector:".office-officeTheme-primary-fontColor",cssProperty:"color"},{name:a.DDA.Theming.OfficeThemeEnum.BodyBackgroundColor,cssSelector:".office-officeTheme-primary-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.OfficeThemeEnum.ControlForegroundColor,cssSelector:".office-officeTheme-secondary-fontColor",cssProperty:"color"},{name:a.DDA.Theming.OfficeThemeEnum.ControlBackgroundColor,cssSelector:".office-officeTheme-secondary-bgColor",cssProperty:"background-color"}],n=e.type==a.EventType.OfficeThemeChanged?e.officeTheme:e,r=0;r<t.length;r++)null!==this._previousOfficeThemeData&&this._previousOfficeThemeData[t[r].name]==n[t[r].name]||void 0!==n[t[r].name]&&this._changeCss(this._officeCss,t[r].cssSelector,"{"+t[r].cssProperty+":"+n[t[r].name]+";}");this._previousOfficeThemeData=n},n.prototype._getAndProcessThemeData=function(e,n,r){var i=this,t=a._OfficeAppFactory.getHostInfo();if(t&&t.hostPlatform==a.HostInfoPlatform.web){if(r==a.AsyncMethods.GetOfficeThemeAsync&&Office.context.officeTheme){var o={};o[a.DDA.Theming.OfficeThemeEnum.BodyBackgroundColor]=Office.context.officeTheme.bodyBackgroundColor,o[a.DDA.Theming.OfficeThemeEnum.BodyForegroundColor]=Office.context.officeTheme.bodyForegroundColor,o[a.DDA.Theming.OfficeThemeEnum.ControlBackgroundColor]=Office.context.officeTheme.controlBackgroundColor,o[a.DDA.Theming.OfficeThemeEnum.ControlForegroundColor]=Office.context.officeTheme.controlForegroundColor,o[a.DDA.Theming.OfficeThemeEnum.IsDarkTheme]=Office.context.officeTheme.isDarkTheme,o[a.DDA.Theming.OfficeThemeEnum.ThemeId]=Office.context.officeTheme.isDarkTheme?a.DDA.Theming.ThemeId.Black:a.DDA.Theming.ThemeId.White,o[a.DDA.Theming.OfficeThemeEnum.FluentThemeData]=Office.context.officeTheme.fluentThemeData,n(o)}}else e(function(e){if("succeeded"==e.status){var t=e.value;n(t)}i._areAllCallsCompleted(r)&&i._onAsyncCallsCompleted&&(i._onAsyncCallsCompleted(),i._onAsyncCallsCompleted=null)})},n.prototype._processOfficeThemeData=function(e){var t=this;this._changeOfficeThemeData(e),this._eventTarget.addHandlerAsync(Microsoft.Office.WebExtension.EventType.OfficeThemeChanged,function(e){t._changeOfficeThemeData(e)},null)},n.prototype._processDocumentThemeData=function(e){var t=this;this._changeDocumentThemeData(e),this._eventTarget.addHandlerAsync(Microsoft.Office.WebExtension.EventType.DocumentThemeChanged,function(e){t._changeDocumentThemeData(e)},null)},n.prototype._areAllCallsCompleted=function(e){var t;if(!(t=this._asyncCallsCompleted))return!0;for(var n in e&&t.hasOwnProperty(e)&&(t[e]=!0),t)if(!t.hasOwnProperty(n)||!t[n])return!1;return!0},n);function n(){this._eventTarget=null,this._previousDocumentThemeData=null,this._previousOfficeThemeData=null,this._officeCss=null,this._asyncCallsCompleted=null,this._onAsyncCallsCompleted=null}r.InternalThemeHandler=t})((e=a.DDA||(a.DDA={})).Theming||(e.Theming={}))}(OSF=OSF||{}),function(e){var t,n;t=e.context||(e.context={}),OSF.definePropertyOnNamespace(t,"themeManager",function(){return n||(n=new OSF.DDA.Theming.InternalThemeHandler).InitializeThemeManager(),n})}(Office=Office||{}),function(e){if(!function(){try{return"object"==typeof process&&"[object process]"===String(process)}catch(e){return}}()&&!e.isOfficeReactNative()){try{e.Flights=e.OUtil.parseFlights(!0),e.DisabledChangeGates=e.OUtil.parseDisabledChangeGates(!0)}catch(e){}function t(){OSFPerformance.hostSpecificFileName=e.LoadScriptHelper.getHostBundleJsName(),Office.onReadyInternal(function(){OSFPerfUtil.sendPerformanceTelemetry()}),e._OfficeAppFactory.getHostInfo().hostLocale&&setTimeout(function(){e.OUtil.ensureOfficeStringsJs().catch(function(e){console.error(e)})},0)}e._OfficeAppFactory.bootstrap(function(){},function(e){e instanceof Error?console.warn(e.message):console.warn(JSON.stringify(e))}),"complete"===document.readyState||"interactive"===document.readyState?t():window.addEventListener("DOMContentLoaded",function(e){t()})}}(OSF=OSF||{}),OSFPerformance.hostInitializationEnd=OSFPerformance.now(),OSFPerformance.totalJSHeapSize=OSFPerformance.getTotalJSHeapSize(),OSFPerformance.usedJSHeapSize=OSFPerformance.getUsedJSHeapSize(),OSFPerformance.jsHeapSizeLimit=OSFPerformance.getJSHeapSizeLimit();