Mini Kabibi Habibi

Current Path : C:/Program Files/Microsoft Office/root/Office16/
Upload File :
Current File : C:/Program Files/Microsoft Office/root/Office16/OFFICEJS_WORD.DLL

MZ����@���	�!�L�!This program cannot be run in DOS mode.

$�M��,���,���,��e����,��e����,��e�z��,��e����,��Rich�,��PEd�S��h�" *�
��
�`A@< (�
�
�R8.rdata@@.rsrc(�
 �
@@S��h
|��S��h3Ihhofficejs_word.dll��GCTL@.rdata@<.edata|.rdata$voltmd��.rdata$zzzdbg `.rsrc$01` Ȏ
.rsrc$02X��d0�	H` Ȏ
JS/* Office Platform 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(r){var e=(t.prototype.initializeEventHandler=function(e){var t=this;this.addHandlerAsync(r.EventType.AppCommandInvoked,function(e){t._processAppCommandInvocation(e)},e)},t.prototype.appCommandInvocationCompletedAsync=function(t,n,o,e){r._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(94,{fromSafeArrayHost:function(e){return e},fromWebHost:function(e){return e},toSafeArrayHost:function(){return[t,n,o]},toWebHost:function(){var e={};return e[0]=t,e[1]=n,e[2]=o,e}},e)},t.prototype.addHandlerAsync=function(e,t,n){r.EventHelper.addEventHandler(e,t,n,this._eventDispatch,void 0,r.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,o,r=this;try{e=JSON.parse(n.eventObjStr),o=JSON.parse(n.eventObjStr)}catch(e){}return o=o||{},(e=e||{}).completed=function(e){o.completedContext=e;var t=JSON.stringify(o);r._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 o=this;this._processAppCommandInvocation=function(e){var t=o._verifyManifestCallback(e.callbackName);if(0==t.errorCode){var n=o._constructEventObjectForCallback(e);n?window.setTimeout(function(){t.callback(n)},0):o._invokeAppCommandCompletedMethod(e.appCommandId,5001,"")}else o._invokeAppCommandCompletedMethod(e.appCommandId,t.errorCode,"")},this._eventDispatch=new r.EventDispatch([{type:r.EventType.AppCommandInvoked,id:r.EventDispId.dispidAppCommandInvokedEvent,getTargetId:function(){return""},fromSafeArrayHost:function(e){return{type:r.EventType.AppCommandInvoked,appCommandId:e[0],callbackName:e[1],eventObjStr:e[2]}},fromWebHost:function(e){return{type:r.EventType.AppCommandInvoked,appCommandId:e[0],callbackName:e[1],eventObjStr:e[2]}}}])}r.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 o=e;for(var r in o)this.associate(r,o[r])}else if(2==arguments.length){var i=e,a=t;if("string"!=typeof i)return void n("[InvalidArg] Function=associate");if("function"!=typeof a)return void n("[InvalidArg] Function=associate");var s=i.toUpperCase();this.m_mappings[s]&&n("[DuplicatedName] Function="+i),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,o,r){if(0==n){var i={status:Office.AsyncResultStatus.Succeeded,value:o,asyncContext:r};"function"==typeof t&&t(i)}else{var a={status:Office.AsyncResultStatus.Failed,error:{code:n},asyncContext:r};"function"==typeof t&&t(a)}},n);function n(){}e.AsyncMethodExecutor=t}(OSF=OSF||{}),function(p){var e=(t.prototype.handleSafeArrayHostResponse=function(e,t,n,o,r,i,a){var s,c;if(1==(c="number"==typeof(e=p.Utility.fromSafeArray(e))?(s=[],e):(s=e)[0]))return null!=(l=s[1])&&(n[l[0]]=l[1]),!1;if(o){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 d=l[l.length-1];n.length==d?l[l.length-1]=n:c=5001}}else l=s[1];var f=null;0==c&&(f=r.fromSafeArrayHost(l)),this._asyncMethodExecutor.invokeCallback(i,o,c,f,a)}return!0},t.prototype.handleWebHostResponse=function(e,t,n,o,r,i){var a=null;0==t&&(a=o.fromWebHost(e)),this._asyncMethodExecutor.invokeCallback(r,n,t,a,i)},t);function t(e){this._asyncMethodExecutor=e}p.AsyncMethodExecutorHelper=e}(OSF=OSF||{}),function(e){!function(e){var t,n,o,r;t=e.AsyncResultEnum||(e.AsyncResultEnum={}),(n=t.Properties||(t.Properties={})).Context="Context",n.Value="Value",n.Status="Status",n.Error="Error",(o=t.ErrorCode||(t.ErrorCode={}))[o.Success=0]="Success",o[o.Failed=1]="Failed",(r=t.ErrorProperties||(t.ErrorProperties={})).Name="Name",r.Message="Message",r.Code="Code";function i(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=i;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,o,r;t=e.DDA||(e.DDA={}),n=t.ErrorCodeManager||(t.ErrorCodeManager={}),r=!(o={}),n.getErrorArgs=function(e){var t;r||(t=Strings.OfficeOM,o[1e3]={name:t.L_InvalidCoercion,message:t.L_CoercionTypeNotSupported},o[1001]={name:t.L_DataReadError,message:t.L_GetSelectionNotSupported},o[1002]={name:t.L_InvalidCoercion,message:t.L_CoercionTypeNotMatchBinding},o[1003]={name:t.L_DataReadError,message:t.L_InvalidGetRowColumnCounts},o[1004]={name:t.L_DataReadError,message:t.L_SelectionNotSupportCoercionType},o[1005]={name:t.L_DataReadError,message:t.L_InvalidGetStartRowColumn},o[1006]={name:t.L_DataReadError,message:t.L_NonUniformPartialGetNotSupported},o[1008]={name:t.L_DataReadError,message:t.L_GetDataIsTooLarge},o[1009]={name:t.L_DataReadError,message:t.L_FileTypeNotSupported},o[1010]={name:t.L_DataReadError,message:t.L_GetDataParametersConflict},o[1011]={name:t.L_DataReadError,message:t.L_InvalidGetColumns},o[1012]={name:t.L_DataReadError,message:t.L_InvalidGetRows},o[1013]={name:t.L_DataReadError,message:t.L_InvalidReadForBlankRow},o[2e3]={name:t.L_DataWriteError,message:t.L_UnsupportedDataObject},o[2001]={name:t.L_DataWriteError,message:t.L_CannotWriteToSelection},o[2002]={name:t.L_DataWriteError,message:t.L_DataNotMatchSelection},o[2003]={name:t.L_DataWriteError,message:t.L_OverwriteWorksheetData},o[2004]={name:t.L_DataWriteError,message:t.L_DataNotMatchBindingSize},o[2005]={name:t.L_DataWriteError,message:t.L_InvalidSetStartRowColumn},o[2006]={name:t.L_InvalidFormat,message:t.L_InvalidDataFormat},o[2007]={name:t.L_InvalidDataObject,message:t.L_DataNotMatchCoercionType},o[2008]={name:t.L_InvalidDataObject,message:t.L_DataNotMatchBindingType},o[2009]={name:t.L_DataWriteError,message:t.L_SetDataIsTooLarge},o[2010]={name:t.L_DataWriteError,message:t.L_NonUniformPartialSetNotSupported},o[2011]={name:t.L_DataWriteError,message:t.L_InvalidSetColumns},o[2012]={name:t.L_DataWriteError,message:t.L_InvalidSetRows},o[2013]={name:t.L_DataWriteError,message:t.L_SetDataParametersConflict},o[3e3]={name:t.L_BindingCreationError,message:t.L_SelectionCannotBound},o[3002]={name:t.L_InvalidBindingError,message:t.L_BindingNotExist},o[3003]={name:t.L_BindingCreationError,message:t.L_BindingToMultipleSelection},o[3004]={name:t.L_BindingCreationError,message:t.L_InvalidSelectionForBindingType},o[3005]={name:t.L_InvalidBindingOperation,message:t.L_OperationNotSupportedOnThisBindingType},o[3006]={name:t.L_BindingCreationError,message:t.L_NamedItemNotFound},o[3007]={name:t.L_BindingCreationError,message:t.L_MultipleNamedItemFound},o[3008]={name:t.L_BindingCreationError,message:t.L_InvalidNamedItemForBindingType},o[3009]={name:t.L_InvalidBinding,message:t.L_UnknownBindingType},o[3010]={name:t.L_InvalidBindingOperation,message:t.L_OperationNotSupportedOnMatrixData},o[3011]={name:t.L_InvalidBinding,message:t.L_InvalidColumnsForBinding},o[4e3]={name:t.L_ReadSettingsError,message:t.L_SettingNameNotExist},o[4001]={name:t.L_SaveSettingsError,message:t.L_SettingsCannotSave},o[4002]={name:t.L_SettingsStaleError,message:t.L_SettingsAreStale},o[5e3]={name:t.L_HostError,message:t.L_OperationNotSupported},o[5001]={name:t.L_InternalError,message:t.L_InternalErrorDescription},o[5002]={name:t.L_PermissionDenied,message:t.L_DocumentReadOnly},o[5003]={name:t.L_EventRegistrationError,message:t.L_EventHandlerNotExist},o[5004]={name:t.L_InvalidAPICall,message:t.L_InvalidApiCallInContext},o[5005]={name:t.L_ShuttingDown,message:t.L_ShuttingDown},o[5007]={name:t.L_UnsupportedEnumeration,message:t.L_UnsupportedEnumerationMessage},o[5008]={name:t.L_IndexOutOfRange,message:t.L_IndexOutOfRange},o[5009]={name:t.L_APINotSupported,message:t.L_BrowserAPINotSupported},o[5011]={name:t.L_APICallFailed,message:t.L_RequestTimeout},o[5012]={name:t.L_InvalidOrTimedOutSession,message:t.L_InvalidOrTimedOutSessionMessage},o[5013]={name:t.L_APICallFailed,message:t.L_InvalidApiArgumentsMessage},o[5015]={name:t.L_APICallFailed,message:t.L_WorkbookHiddenMessage},o[5016]={name:t.L_APICallFailed,message:t.L_WriteNotSupportedWhenModalDialogOpen},o[5017]={name:t.L_APICallFailed,message:t.L_UndoNotSupportedMessage},o[5100]={name:t.L_APICallFailed,message:t.L_TooManyIncompleteRequests},o[5101]={name:t.L_APICallFailed,message:t.L_RequestTokenUnavailable},o[5102]={name:t.L_APICallFailed,message:t.L_ActivityLimitReached},o[5103]={name:t.L_APICallFailed,message:t.L_RequestPayloadSizeLimitExceededMessage},o[5104]={name:t.L_APICallFailed,message:t.L_ResponsePayloadSizeLimitExceededMessage},o[6e3]={name:t.L_InvalidNode,message:t.L_CustomXmlNodeNotFound},o[6100]={name:t.L_CustomXmlError,message:t.L_CustomXmlError},o[6101]={name:t.L_CustomXmlExceedQuotaName,message:t.L_CustomXmlExceedQuotaMessage},o[6102]={name:t.L_CustomXmlOutOfDateName,message:t.L_CustomXmlOutOfDateMessage},o[7e3]={name:t.L_PermissionDenied,message:t.L_NoCapability},o[7001]={name:t.L_CannotNavigateTo,message:t.L_CannotNavigateTo},o[7002]={name:t.L_SpecifiedIdNotExist,message:t.L_SpecifiedIdNotExist},o[7004]={name:t.L_NavOutOfBound,message:t.L_NavOutOfBound},o[2014]={name:t.L_DataWriteReminder,message:t.L_CellDataAmountBeyondLimits},o[8e3]={name:t.L_MissingParameter,message:t.L_ElementMissing},o[8001]={name:t.L_PermissionDenied,message:t.L_NoCapability},o[8010]={name:t.L_InvalidValue,message:t.L_InvalidCellsValue},o[8011]={name:t.L_InvalidValue,message:t.L_InvalidTableOptionValue},o[8012]={name:t.L_InvalidValue,message:t.L_InvalidFormatValue},o[8020]={name:t.L_OutOfRange,message:t.L_RowIndexOutOfRange},o[8021]={name:t.L_OutOfRange,message:t.L_ColIndexOutOfRange},o[8022]={name:t.L_OutOfRange,message:t.L_FormatValueOutOfRange},o[8023]={name:t.L_FormattingReminder,message:t.L_CellFormatAmountBeyondLimits},o[1e4]={name:t.L_UserNotSignedIn,message:t.L_UserNotSignedIn},o[11e3]={name:t.L_MemoryLimit,message:t.L_CloseFileBeforeRetrieve},o[11001]={name:t.L_NetworkProblem,message:t.L_NetworkProblemRetrieveFile},o[11002]={name:t.L_InvalidValue,message:t.L_SliceSizeNotSupported},o[12007]={name:t.L_DisplayDialogError,message:t.L_DialogAlreadyOpened},o[12e3]={name:t.L_IndexOutOfRange,message:t.L_IndexOutOfRange},o[12001]={name:t.L_IndexOutOfRange,message:t.L_IndexOutOfRange},o[12002]={name:t.L_DisplayDialogError,message:t.L_NetworkProblem},o[12003]={name:t.L_DialogNavigateError,message:t.L_DialogInvalidScheme},o[12004]={name:t.L_DisplayDialogError,message:t.L_DialogAddressNotTrusted},o[12005]={name:t.L_DisplayDialogError,message:t.L_DialogRequireHTTPS},o[12009]={name:t.L_DisplayDialogError,message:t.L_UserClickIgnore},o[12011]={name:t.L_DisplayDialogError,message:t.L_NewWindowCrossZoneErrorString},o[13e3]={name:t.L_APINotSupported,message:t.L_InvalidSSOAddinMessage},o[13001]={name:t.L_UserNotSignedIn,message:t.L_UserNotSignedIn},o[13002]={name:t.L_UserAborted,message:t.L_UserAbortedMessage},o[13003]={name:t.L_UnsupportedUserIdentity,message:t.L_UnsupportedUserIdentityMessage},o[13004]={name:t.L_InvalidResourceUrl,message:t.L_InvalidResourceUrlMessage},o[13005]={name:t.L_InvalidGrant,message:t.L_InvalidGrantMessage},o[13006]={name:t.L_SSOClientError,message:t.L_SSOClientErrorMessage},o[13007]={name:t.L_SSOServerError,message:t.L_SSOServerErrorMessage},o[13008]={name:t.L_AddinIsAlreadyRequestingToken,message:t.L_AddinIsAlreadyRequestingTokenMessage},o[13009]={name:t.L_SSOUserConsentNotSupportedByCurrentAddinCategory,message:t.L_SSOUserConsentNotSupportedByCurrentAddinCategoryMessage},o[13010]={name:t.L_SSOConnectionLostError,message:t.L_SSOConnectionLostErrorMessage},o[13012]={name:t.L_APINotSupported,message:t.L_SSOUnsupportedPlatform},o[13013]={name:t.L_APICallFailed,message:t.L_RequestTokenUnavailable},o[5014]={name:t.L_OperationCancelledError,message:t.L_OperationCancelledErrorMessage},r=!0);var n=o[e];return n?(n.name||(n.name=o[5001].name),n.message||(n.message=o[5001].message)):n=o[5001],n},n.addErrorMessage=function(e,t){o[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 o=0;o<n.length;o++)if(n[o]===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],o=!n||0==n.length,r=this.addEventHandler(e,t);return o&&r&&this.fireQueuedEvent(e),r},n.prototype.removeEventHandler=function(e,t){var n=this._eventHandlers[e];if(n&&0<n.length)for(var o=0;o<n.length;o++)if(n[o]===t)return n.splice(o,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],o=0;o<n.length;o++)n[o](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],o=this._queuedEventsArgs[t];return 0==n.length?o.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 o=t[0];0<n.length;)o(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(p){var e=(m.addEventHandler=function(t,n,o,r,i,e){var a=0;function s(e){0==e&&(r.hasEventHandler(t,n)||r.addEventHandler(t,n)||(e=5010)),p._OfficeAppFactory.getAsyncMethodExecutor().invokeCallback(a,o,e,null,i)}var c=r.getEventInfo(t);if(c)try{if(e)return void s(0);a=c.id;var l=c.getTargetId();0==r.getEventHandlerCount(t)?p._OfficeAppFactory.getAsyncMethodExecutor().registerEventAsync(a,c.type,l,function(e){r.fireEvent(e)},c,function(e){s(p.Utility.getErrorCodeFromAsyncResult(e))},i):s(0)}catch(e){m.onException(a,e,o)}else s(5010)},m.removeEventHandler=function(e,t,n,o,r,i){var a=0;function s(e){p._OfficeAppFactory.getAsyncMethodExecutor().invokeCallback(a,n,e,null,r)}var c=o.getEventInfo(e);if(c)try{a=c.id;var l=c.getTargetId(),u=0,d=!0;u=null===t?(d=o.clearEventHandlers(e),0):(d=o.removeEventHandler(e,t))?0:5003;var f=o.getEventHandlerCount(e);d&&0==f?p._OfficeAppFactory.getAsyncMethodExecutor().unregisterEventAsync(a,c.type,l,function(e){s(p.Utility.getErrorCodeFromAsyncResult(e))},r):s(u)}catch(e){m.onException(a,e,n)}else s(5010)},m.onException=function(e,t,n){if("number"!=typeof t)throw t;p._OfficeAppFactory.getAsyncMethodExecutor().invokeCallback(e,n,t,null)},m);function m(){}p.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 o(){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={}),o.prototype.capitalizeFirstLetter=function(e){return e?e[0].toUpperCase()+e.slice(1).toLowerCase():e},o.getInstance=function(){return void 0===o.hostObj&&(o.hostObj=new o),o.hostObj},o.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},o.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},o.prototype.getDefaultVersion=function(){return this.getHost()?"16.0.0000.0000":null},o.prototype.getDiagnostics=function(e){return{host:this.getHost(),version:e||this.getDefaultVersion(),platform:this.getPlatform()}},n=o,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(i){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=i.OUtil.getSessionStorage();if(t){var n=t.getItem(i._OfficeAppFactory.getCachedSessionSettingsKey());n?e=JSON.parse(n):(n=JSON.stringify(e),t.setItem(i._OfficeAppFactory.getCachedSessionSettingsKey(),n))}var o=i.OUtil.deserializeSettings(e),r=this.createClientSettingsManager();return new Office.Settings(o,r)},t.prototype.prepareApiSurface=function(e){var t=e.get_featureGates();t&&(Microsoft.Office.WebExtension.FeatureGates=t),i.BootStrapExtension.prepareApiSurface&&i.BootStrapExtension.prepareApiSurface(),i.BootStrapExtension.prepareHostSpecificSurface&&i.BootStrapExtension.prepareHostSpecificSurface(),OSFPerformance.createOMEnd=OSFPerformance.now()},t.prototype.getTabbableElements=function(){return null},t);function t(e,t,n,o){this._hostInfo=e,this._webAppState=t,this._context=n,this._hostFacade=o}i.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 i,t=null,n=!1,p=["excel","word","powerpoint","onenote","outlook","visio","office-common","office.common","office","officebase"],m=[".js",".debug.js"],g="_osfDisableHostCheck",r=function(){try{return document.currentScript}catch(e){return null}}();function o(){return a(),i.trustedTypesOptIn}function a(){if(!i){function e(e){var t=null!=e?e.src:null;if(!t)return null;for(var n=t.toLowerCase(),o=0;o<p.length;o++)for(var r=0;r<m.length;r++){var i=p[o]+m[r],a=n.indexOf(i);if(0<=a&&(0===a||"/"===t.charAt(a-1)||"\\"===t.charAt(a-1))&&(a+i.length===t.length||"?"===t.charAt(a+i.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,d=e.getAttribute("data-enable-trusted-types"),f="1"===d||"true"===d;return{basePath:s,name:i,isDebugJs:c,isSdx:u,disableHostCheck:window.hasOwnProperty(g)&&!0===window[g],trustedTypesOptIn:f}}}return null}if(!(i=e(r))){for(var t=document.getElementsByTagName("script"),n=t.length,o=0;o<n;o++)if(i=e(t[o]))return;i={basePath:"",name:"",isDebugJs:!1,isSdx:!1,disableHostCheck:!1,trustedTypesOptIn:!1}}}}e.getHostBundleJsBasePath=function(){return a(),i.basePath},e.getHostBundleJsName=function(){return a(),i.name},e.getOfficeStringJsName=function(){return a(),i.isDebugJs?l.ConstantNames.OfficeStringDebugJS:l.ConstantNames.OfficeStringJS},e.isSdx=function(){return a(),i.isSdx},e.disableHostCheck=function(){return a(),i.disableHostCheck},e.trustedTypesOptIn=o,e.loadScriptWithBasename=function(e,t,n){a();var o=e+(i.isDebugJs?".debug.js":".js");o=o.toLowerCase();var r=i.basePath+o;l.OUtil.loadScript(r,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(!o()||!window.trustedTypes||!window.trustedTypes.createPolicy)return null;var e=r.src,i=new URL(e).origin.toLowerCase();if(!i)return null;t=window.trustedTypes.createPolicy("officejs",{createScriptURL:function(e){var t=e.toLowerCase(),n=new URL(t).origin;if(i&&i===n)return e;for(var o=0,r=s;o<r.length;o++){if(t===r[o])return e}throw new Error("Untrusted script URL")}})}catch(e){}}return t}e.getTrustedTypesPolicy=c}(l.LoadScriptHelper||(l.LoadScriptHelper={}))}(OSF=(OSF=OSF||{})||{}),function(o){var e;((e=o.DDA||(o.DDA={})).Auth||(e.Auth={})).getAuthContextAsync=function(e){function t(e){var t=e.userObjectId||"",n=e.tenantId||"",o=e.userPrincipalName||"";return{userObjectId:t,tenantId:n,userPrincipalName:o,authorityType:e.authorityType||"",authorityBaseUrl:e.authorityBaseUrl||"",puid:e.puid||"",loginHint:e.loginHint||o}}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)}};o._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(205,n,e)}}(OSF=OSF||{}),function(e){var t,n;(n=t=e.LiveShareStateParams||(e.LiveShareStateParams={}))[n.MaxLiveShareStateDataSizeInBytes=1024]="MaxLiveShareStateDataSizeInBytes";var o=(r.prototype.get=function(){return this._liveShareState},r.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},r.prototype.addHandlerAsync=function(e,t,n){OSF.EventHelper.addEventHandler(e,t,n,this._eventDispatch)},r.prototype.removeHandlerAsync=function(e,t,n){OSF.EventHelper.removeEventHandler(e,t,n,this._eventDispatch)},r);function r(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=o}(Office=Office||{}),function(e){var r={"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},i={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 r)n=e;else{var o=e.split("-",1);o&&0<o.length&&(n=i[o[0]])}return n=n||t}}(OSF=OSF||{}),function(e){e.OfficeOM||(e.OfficeOM={})}(Strings=Strings||{}),function(r){var i,e;(i=r.OUtil||(r.OUtil={})).ensureOfficeStringsJs=function(){return e=e||(1==r.OUtil.getLibraryReleaseVehicle()?new Office.Promise(function(e,t){e()}):new Office.Promise(function(n,o){if(r._OfficeAppFactory.getHostInfo().hostLocale){var e=r.LoadScriptHelper.getHostBundleJsBasePath()+r._OfficeAppFactory.getHostInfo().hostLocale+"/"+r.LoadScriptHelper.getOfficeStringJsName();r.OUtil.loadScript(e,function(e){if(e)n();else{var t=r.LoadScriptHelper.getHostBundleJsBasePath()+r.ConstantNames.DefaultLocale+"/"+r.LoadScriptHelper.getOfficeStringJsName();i.loadScript(t,function(e){e?n():o(new Error("Cannot load "+r.ConstantNames.OfficeStringJS))},r.LoadScriptHelper.getTrustedTypesPolicy())}},r.LoadScriptHelper.getTrustedTypesPolicy())}else o(new Error("No host locale"))}))}}(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,o){var r={};r[u.GoToType.Binding]=0,r[u.GoToType.NamedItem]=1,r[u.GoToType.Slide]=2,r[u.GoToType.Index]=3;var i={};i[u.SelectionMode.Default]=0,i[u.SelectionMode.Selected]=1,i[u.SelectionMode.None]=2;var a=r[t],s=0,c=o;"function"==typeof n?c=n:void 0!==n&&(s=i[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(o){if(OSF._OfficeAppFactory.getHostInfo().hostPlatform==OSF.HostInfoPlatform.web)n.onMessage=o;else{OSF._OfficeAppFactory.getClientHostController().registerEvent(OSF.EventDispId.dispidOnSdxSendMessageEvent,"","",function(e,t){var n=t.toArray();o(JSON.parse(n[0]))},null)}}}(Office=Office||{}),function(o){var e,t,r;e=o.context||(o.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(!r){var e=OSF._OfficeAppFactory.getOfficeAppContext().get_hostSettingsFunc();if(void 0!==e){var t=e(),n=OSF.OUtil.deserializeSettings(t);r=new o.Settings(n,void 0)}}return r})}(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,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);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 o(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=o,n.onReady=function(e){return n._officeOnReadyState.isOfficeOnReadyCalled=!0,o(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(R){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);function t(e,t,n,o,r,i,a,s,c,l,u,d,f,p,m,g,h,y,v,b,C,O,_,A,S,P,w,T,E,D,I,x,F){this._id=e,this._appName=t,this._appVersion=n,this._appUILocale=o,this._dataLocale=r,this._docUrl=i,this._clientMode=a,this._settingsFunc=s,this._reason=c,this._osfControlType=l,this._eToken=u,this._correlationId=d,this._appInstanceId=f,this._touchEnabled=p,this._commerceAllowed=m,this._appMinorVersion=g,this._requirementMatrix=h,this._hostCustomMessage=y,this._hostFullVersion=v,this._isDialog=R.OUtil.isDialog(),this._clientWindowHeight=b,this._clientWindowWidth=C,this._addinName=O,this._appDomains=_,this._dialogRequirementMatrix=A,this._featureGates=S,this._officeThemeFunc=P,this._initialDisplayMode=w,this._isFromWacAutomation=T,this._wopiHostOriginForSingleSignOn=E,this._hostSettingsFunc=D,this._isWeb=I,this._nestedAppAuthBridgeType=x,this._partitionKey=F}R.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 o=window.external.GetHostInfo();if("isDialog"==o)e.isO15=!0,e.isDialog=!0;else{var r=o.split(t+"=");n=1<r.length?r[1]:o}}}catch(e){l.Utility.log(JSON.stringify(e))}if(!n)try{var i=window.name;if(i){var a=JSON.parse(i);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,o,r,i,a,s,c,l;"undefined"!=typeof window&&(window.location&&(t=window.location.hash,n=window.location.search),o=window.name);var u={0:"Unknown",1:"Hidden",2:"Taskpane",3:"Dialog"};function d(e,t){f.AppCommandManager.initialize();var n=e.get_appName(),o=null;0!=(r.flags&f.HostInfoFlags.SharedApp)&&(o={visibilityMode:u[e.get_initialDisplayMode()]}),Office.fireOnReady({host:f.HostName.Host.getInstance().getHost(n),platform:f.HostName.Host.getInstance().getPlatform(n),addin:o}),r.hostPlatform==f.HostInfoPlatform.web&&null!=i.clientEndPoint&&i.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[i.id,f.AgaveHostAction.OfficeJsReady,Date.now()]),t(e)}e.bootstrap=function(t,n){if(i={id:null,webAppUrl:null,conversationID:null,clientEndPoint:null,wnd:window.parent,focused:!1,serviceEndPoint:null},r=e.retrieveHostInfo(),function(){0;try{if(r.disableLogging)return 0;window.external=window.external||{},void 0===window.external.GetLoggingAllowed||window.external.GetLoggingAllowed()}catch(e){}}(),function(){if(r.hostPlatform===f.HostInfoPlatform.web)a=new f.WebInitializationHelper(r,i,null,null);else if(r.hostPlatform===f.HostInfoPlatform.win32)a=new f.RichClientInitializationHelper(r,i,null,null);else if(r.hostPlatform===f.HostInfoPlatform.ios||r.hostPlatform===f.HostInfoPlatform.mac){if(!(window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.Agave))throw f.Utility.createNotImplementedException();a=new f.WebkitInitializationHelper(r,i,null,null)}else r.hostPlatform===f.HostInfoPlatform.android||r.hostPlatform===f.HostInfoPlatform.winrt?a=new f.WebViewInitializationHelper(r,i,null,null):console.warn("Office.js is loaded inside in unknown host or platform "+r.hostPlatform)}(),a){r.hostPlatform===f.HostInfoPlatform.web&&a.saveAndSetDialogInfo(f.Utility.getQueryStringValue("_host_Info")),a.setAgaveHostCommunication(),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,i.wnd).then(function(){d(e,t)}):d(e,t)},function(e){n(e)})}else n(new Error("Office.js cannot be initialized."))},e.getWindowName=function(){return o},e.getWindowLocationHash=function(){return t},e.getWindowLocationSearch=function(){return n},e.getAsyncMethodExecutor=function(){return s},e.getOfficeAppContext=function(){return c},e.getHostInfo=function(){return r},e.getCachedSessionSettingsKey=function(){return(null!=i.conversationID?i.conversationID:c.get_appInstanceId())+"CachedSessionSettings"},e.getWebAppState=function(){return i},e.getId=function(){return i.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,o,r,i,a,s,c,l,u,d,f,p;(t=e.AsyncResultStatus||(e.AsyncResultStatus={})).Succeeded="succeeded",t.Failed="failed",(n=e.DocumentMode||(e.DocumentMode={})).ReadOnly="readOnly",n.ReadWrite="readWrite",(o=e.HostType||(e.HostType={})).Word="Word",o.Excel="Excel",o.PowerPoint="PowerPoint",o.Outlook="Outlook",o.OneNote="OneNote",o.Project="Project",o.Access="Access",o.Visio="Visio",(r=e.InitializationReason||(e.InitializationReason={})).Inserted="inserted",r.DocumentOpened="documentOpened",(i=e.PlatformType||(e.PlatformType={})).PC="PC",i.OfficeOnline="OfficeOnline",i.Mac="Mac",i.iOS="iOS",i.Android="Android",i.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",(d=e.FilterType||(e.FilterType={})).OnlyVisible="onlyVisible",d.All="all",(f=e.Table||(e.Table={}))[f.All=0]="All",f[f.Data=1]="Data",f[f.Headers=2]="Headers",(p=e.ActiveView||(e.ActiveView={})).Read="read",p.Edit="edit"}(Office=Office||{});var OSFPerfUtil,__extends=this&&this.__extends||function(){var o=function(e,t){return(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}();(OfficeExt||(OfficeExt={})).appSpecificCheckOrigin=function(e,t,n,o){return!1},function(P){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}P.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}P.XdmEventMethodObject=s;var n=(o.prototype.registerMethod=function(e,t,n,o){if(0!==n&&1!==n)throw P.Utility.createArgumentException("invokeType");var r=new a(t,n,o);this._methodObjectList[e]=r},o.prototype.unregisterMethod=function(e){delete this._methodObjectList[e]},o.prototype.registerEvent=function(e,t,n){var o=new s(new a(t,4,!1),new a(n,5,!1));this._methodObjectList[e]=o},o.prototype.registerEventEx=function(e,t,n,o,r){var i=new s(new a(t,n,!1),new a(o,r,!1));this._methodObjectList[e]=i},o.prototype.unregisterEvent=function(e){this.unregisterMethod(e)},o.prototype.registerConversation=function(e,t,n){if(P.Utility.xdmDebugLog("registerConversation: cId="+e+" Url="+t),n){if(!Array.isArray(n))throw P.Utility.createArgumentException("appDomains");this._appDomains[e]=n}this._conversations[e]={url:t}},o.prototype.unregisterConversation=function(e){delete this._conversations[e]},o.prototype.setPolicyManager=function(e){if(!e.checkPermission)throw P.Utility.createArgumentException("policyManager");this._policyManager=e},o.prototype.getPolicyManager=function(){return this._policyManager},o.prototype.dispose=function(){this._methodObjectList=null,this._eventHandlerProxyList=null,this._Id=null,this._conversations=null,this._policyManager=null,this._appDomains=null,this._onHandleRequestError=null},o);function o(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}P.XdmServiceEndPoint=n;var l,r,w,T,E,D,I,x,F,i,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(i,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"!==i)throw"Access Denied";var o=new h(i,0,c._conversationId,t,s),r=B.envelope(o);c._targetWindow.postMessage(r,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,o){var r=this._callingIndex++,i=new Date;this._callbackList[r]={callback:n,createdOn:i.getTime()};try{var a=new h(e,1,this._conversationId,r,o),s=B.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[r]}}},u.prototype.unregisterForEvent=function(e,t,n){var o=this._callingIndex++,r=new Date;this._callbackList[o]={callback:t,createdOn:r.getTime()};try{var i=new h(e,2,this._conversationId,o,n),a=B.envelope(i);this._targetWindow.postMessage(a,this._targetUrl),l._startMethodTimeoutTimer()}catch(e){try{null!==t&&t(-1,e)}finally{delete this._callbackList[o]}}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 R(){null!==E?I||(0<w.length?N(w.shift()):(clearInterval(E),E=null)):P.Utility.xdmDebugLog("channel is not ready.")}function N(e){I=e.getInvokeBlockingFlag(),e.invoke(),T=(new Date).getTime()}function M(){I=!1}function k(e,t){var n=!1;if(!(t&&"null"!==t&&t.length&&e&&e instanceof Array&&e.length))return n;for(var o=0;o<e.length&&!n;o++)if(-1!==e[o].indexOf("://")){var r=P.OUtil.parseUrl(t,!0);n=U(P.OUtil.parseUrl(e[o],!0),r)}return n}function H(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===P.OUtil.getCustomOfficeInitializationSettings().trustAllCloudEnvironments&&t.push("^partner\\.outlook\\.cn$","^.*\\.partner\\.officewebapps\\.cn$"),new RegExp(t.join("|")).test(e)}function L(e,t){if(!e||!t||"null"===e||"null"===t)return!1;var n=P.OUtil.parseUrl(e,!0),o=P.OUtil.parseUrl(t,!0);if(null==n||null==o)return!1;var r=n.protocol===o.protocol,i=n.port===o.port,a=o.hostname,s=n.hostname,c=a===s,l=!1;return!c&&a.length>s.length+1&&(l=a.slice(-(s.length+1))==="."+s),i&&r&&(c||l)}function U(e,t){return e.hostname==t.hostname&&e.protocol==t.protocol&&e.port==t.port}function d(t){if(""!=t.data){var n,e=t.data;try{n=B.unenvelope(e)}catch(e){return}if(P.Utility.xdmDebugLog(e),0===n._messageType){var o=null==t.origin||"null"===t.origin?n._origin:t.origin;try{var r=function(e){for(var t in x)if(x[t]._conversations[e])return x[t];throw P.Utility.createArgumentException("conversationId")}(n._conversationId);P.Utility.xdmDebugLog("_receive: request, origin="+o+" sourceURL:"+r._conversations[n._conversationId]);var i=r._conversations[n._conversationId];P.Utility.xdmDebugLog("_receive: request, origin="+o+" sourceURL:"+i.url);var a=[i.url].concat(r._appDomains[n._conversationId]);if(!k(a,t.origin))if(!OfficeExt.appSpecificCheckOrigin(a,t,n._origin,k))if(!L(i.url,t.origin))throw"Failed origin check";var s=r.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 P.Utility.xdmDebugLog("The specified method is not registered on service endpoint:"+t._actionName),P.Utility.createArgumentException("messageObject");return 0===t._actionType?n:1===t._actionType?n.getRegisterMethodObject():n.getUnregisterMethodObject()}(r,n),l=new W(t.source,o,n._actionName,n._conversationId,n._correlationId,M),u=new q(c,n._data,l,r._eventHandlerProxyList,n._conversationId,n._actionName),d=!0;null==E&&((null==T||(new Date).getTime()-T>D)&&!I?(N(u),d=!1):E=setInterval(R,D)),d&&(S=u,w.push(S))}catch(e){r&&r._onHandleRequestError&&r._onHandleRequestError(n,e);var f=-2;"Access Denied"==e&&(f=-5);var p=new j(n._actionName,n._conversationId,n._correlationId,f,0,e),m=B.envelope(p),g=!1;try{g=!(!t.source||!t.source.postMessage)}catch(e){}var h=!1;if(window.location.href&&t.origin&&"null"!==t.origin&&L(window.location.href,t.origin))h=!0;else if(t.origin&&"null"!==t.origin)h=H(P.OUtil.parseUrl(t.origin,!0).hostname);g&&h&&t.source.postMessage(m,o)}}else{if(1!==n._messageType)return;var y=(_=n._conversationId,(A=F[_])||P.Utility.xdmDebugLog("Unknown conversation Id."),A);if(!y)return;if(P.Utility.xdmDebugLog("_receive: response, origin="+t.origin+" targetURL:"+y._targetUrl),C=y._targetUrl,O=t.origin,!(C&&O&&"null"!==C&&"null"!==O&&C.length&&O.length&&U(P.OUtil.parseUrl(C,!0),P.OUtil.parseUrl(O,!0))))throw"Failed orgin check";if(3==y._hostTrustCheckStatus&&(y._fHostTrusted=!0),0===n._responseType){var v=y._callbackList[n._correlationId];if(v)try{v.callback&&v.callback(n._errorCode,n._data)}finally{delete y._callbackList[n._correlationId]}}else{var b=y._eventHandlerList[n._actionName];null!=b&&b(n._data)}}}var C,O,_,A,S}function f(){i||(function(e){if(window.addEventListener)window.addEventListener("message",e,!1);else{if(!(-1<navigator.userAgent.indexOf("MSIE")&&window.attachEvent))throw P.Utility.xdmDebugLog("Browser doesn't support the required API."),P.Utility.createArgumentException("Browser");window.attachEvent("onmessage",e)}}(d),i=!0)}P.XdmClientEndPoint=c,r=l=P.XdmCommunicationManager||(P.XdmCommunicationManager={}),w=[],E=T=null,I=!(D=10),x={},i=!(F={}),r.connect=function(e,t,n){var o=F[e];return o||(f(),o=new c(e,t,n),F[e]=o),o},r.getClientEndPoint=function(e){return F[e]},r.createServiceEndPoint=function(e){f();var t=new n(e);return x[e]=t},r.getServiceEndPoint=function(e){return x[e]},r.deleteClientEndPoint=function(e){delete F[e]},r.deleteServiceEndPoint=function(e){delete x[e]},r.checkUrlWithAppDomains=function(e,t){return k(e,t)},r.isTargetSubdomainOfSourceLocation=function(e,t){return L(e,t)},r._setMethodTimeout=function(e){0},r._startMethodTimeoutTimer=function(){},r.isHostNameValidWacDomain=function(e){return H(e)};var p=(m.prototype.getActionName=function(){return this._actionName},m.prototype.getConversationId=function(){return this._conversationId},m.prototype.getCorrelationId=function(){return this._correlationId},m.prototype.getOrigin=function(){return this._origin},m.prototype.getData=function(){return this._data},m.prototype.getMessageType=function(){return this._messageType},m);function m(e,t,n,o,r){this._messageType=e,this._actionName=t,this._conversationId=n,this._correlationId=o,this._origin=window.location.origin,this._data=void 0===r?null:r}var g,h=(__extends(y,g=p),y.prototype.getActionType=function(){return this._actionType},y);function y(e,t,n,o,r){var i=g.call(this,0,e,n,o,r)||this;return i._actionType=t,i}var v,j=(__extends(b,v=p),b.prototype.getErrorCode=function(){return this._errorCode},b.prototype.getResponseType=function(){return this._responseType},b);function b(e,t,n,o,r,i){var a=v.call(this,1,e,t,n,i)||this;return a._errorCode=o,a._responseType=r,a}var B=(C.envelope=function(e){return JSON.stringify(e)},C.unenvelope=function(e){return JSON.parse(e)},C);function C(){}var O=(_.prototype.getRequesterWindow=function(){return this._requesterWindow},_.prototype.getRequesterUrl=function(){return this._requesterUrl},_.prototype.getActionName=function(){return this._actionName},_.prototype.getConversationId=function(){return this._conversationId},_.prototype.getCorrelationId=function(){return this._correlationId},_.prototype.getSend=function(){return this._send},_.prototype.setResultCode=function(e){this._invokeResultCode=e},_);function _(e,t,n,o,r,i){var a=this;this._invokeResultCode=0,this._requesterWindow=e,this._requesterUrl=t,this._actionName=n,this._conversationId=o,this._correlationId=r,this._invokeResultCode=0,this._responseType=i,this._send=function(e){try{var t=new j(a._actionName,a._conversationId,a._correlationId,a._invokeResultCode,a._responseType,e),n=B.envelope(t);a._requesterWindow.postMessage(n,a._requesterUrl),P.Utility.xdmDebugLog("_send: requestUrl="+a._requesterUrl+" _actionName:"+a._actionName)}catch(e){P.Utility.xdmDebugLog("ResponseSender._send error:"+e.message)}}}var A,W=(__extends(S,A=O),S);function S(e,t,n,o,r,i){var a=A.call(this,e,t,n,o,r,0)||this;return a._postCallbackHandler=i,a._send=function(e,t){null!=t&&(a._invokeResultCode=t);try{var n=new j(a._actionName,a._conversationId,a._correlationId,a._invokeResultCode,a._responseType,e),o=B.envelope(n);a._requesterWindow.postMessage(o,a._requesterUrl),a._postCallbackHandler()}catch(e){P.Utility.xdmDebugLog("InvokeCompleteCallback._send error:"+e.message)}},a}var q=(G.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 o=this._createEventHandlerProxyObject(this._invokeCompleteCallback);this._methodObject.getMethod()(o.getSend(),this._invokeCompleteCallback.getSend(),this._param),this._eventHandlerProxyList[this._callerId+this._eventName]=o.getSend();break;case 3:var r=this._eventHandlerProxyList[this._callerId+this._eventName];this._methodObject.getMethod()(r,this._invokeCompleteCallback.getSend(),this._param),delete this._eventHandlerProxyList[this._callerId+this._eventName]}}catch(e){this._invokeCompleteCallback.setResultCode(-3),this._invokeCompleteCallback.getSend()(e)}},G.prototype.getInvokeBlockingFlag=function(){return this._methodObject.getBlockingFlag()},G.prototype._createEventHandlerProxyObject=function(e){return new O(e.getRequesterWindow(),e.getRequesterUrl(),e.getActionName(),e.getConversationId(),e.getCorrelationId(),1)},G);function G(e,t,n,o,r,i){this._callerId="",this._methodObject=e,this._param=t,this._invokeCompleteCallback=n,this._eventHandlerProxyList=o,this._conversationId=r,this._eventName=i}}(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,o,r=OSF.LoadScriptHelper.getHostBundleJsName().toLowerCase();performance.getEntriesByType("resource").forEach(function(e){var t=e.name.toLowerCase();OSF.Utility.stringEndsWith(t,r)?n=e:(OSF.Utility.stringEndsWith(t,OSF.ConstantNames.OfficeDebugJS)||OSF.Utility.stringEndsWith(t,OSF.ConstantNames.OfficeJS))&&(o=e)}),OTel.OTelLogger.onTelemetryLoaded(function(){var e=[];n&&(e=e.concat(t(n,"HostJs"))),o&&(e=e.concat(t(o,"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))]),Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.JSPerformanceTelemetryV06",dataFields:e,eventFlags:{dataCategories:2,diagnosticLevel:110}})})}}}(),function(e){var t,n,o,r,i,l;t=e.OUtil||(e.OUtil={}),l={},r=t.Guid||(t.Guid={}),i=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],r.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+=i[t%16],t=Math.floor(t/16);for(;n<32;n++)8!=n&&12!=n&&16!=n&&20!=n||(e+="-"),e+=i[Math.floor(16*Math.random())];return e},t.loadScript=function(n,e,t,o){if(n&&e){var r=window.document,i=l[n];if(i)i.loaded?e(!0):i.pendingCallbacks.push(e);else{var a=r.createElement("script");a.type="text/javascript",i={loaded:!1,pendingCallbacks:[e],timer:null},l[n]=i;function s(){null!=i.timer&&(clearTimeout(i.timer),delete i.timer),i.loaded=!0;for(var e=i.pendingCallbacks.length,t=0;t<e;t++){i.pendingCallbacks.shift()(!0)}}function c(){delete l[n],null!=i.timer&&(clearTimeout(i.timer),delete i.timer);for(var e=i.pendingCallbacks.length,t=0;t<e;t++){i.pendingCallbacks.shift()(!1)}}a.readyState?a.onreadystatechange=function(){"loaded"!=a.readyState&&"complete"!=a.readyState||(a.onreadystatechange=null,s())}:a.onload=s,a.onerror=c,o=o||3e4,i.timer=setTimeout(c,o),a.setAttribute("crossOrigin","anonymous"),a.src=t?t.createScriptURL(n):n,r.getElementsByTagName("head")[0].appendChild(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(!o){try{var t=window.localStorage}catch(e){t=null}o=new e.SafeStorage(t)}return o},t.waitForFunction=function(e,t,n,o){var r,i=n,a=function(){i--,e()?t(!0):0<i?(r=window.setTimeout(a,o),i--):(window.clearTimeout(r),t(!1))};a()}}(OSF=OSF||{}),function(v){v.Flights=[],v.DisabledChangeGates=[];v.FlightTreatmentNames={EnableMsal3SsoApi:"Microsoft.Office.SharedOnline.EnableMsal3SsoApi"},function(d){var a="&_flights=",s="&_disabledChangeGates=",c="_flights=",l="_disabledChangeGates=",f="&";function r(e,t){return e.substr(0,t.length)===t}function u(e,t,n,o){return r(e,t+"//"+n+":"+o)||r(e,n+":"+o)}d.isArray=function(e){return"[object Array]"===Object.prototype.toString.apply(e)},d.isFunction=function(e){return"[object Function]"===Object.prototype.toString.apply(e)},d.isDate=function(e){return"[object Date]"===Object.prototype.toString.apply(e)},d.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)}},d.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 p(e){var t=[];try{t=JSON.parse(e)}catch(e){}return Array.isArray(t)||(t=[]),t}function m(e,t,n){try{var o=JSON.parse(t),r=null!=o?o[n]:null,i=d.getSessionStorage();if(!e&&i&&null!=o){var a=o.baseFrameName+n;r?i.setItem(a,r):r=i.getItem(a)}return r}catch(e){return null}}function g(e,t,n,o,r){var i=r.split(e),a=1<i.length?i[i.length-1]:null;n&&null!=a&&(0<=a.indexOf(f)&&(a=a.split(f)[0]),a=decodeURIComponent(a));var s=d.getSessionStorage();if(!o&&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 h(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 y(e){var t,n,o=[],r=[],i=e.length;for(t=0;t<i;t++)(n=e[t]).tabIndex?0<n.tabIndex?r.push(n):0===n.tabIndex&&o.push(n):o.push(n);return r=r.sort(function(e,t){var n=e.tabIndex-t.tabIndex;return 0===n&&(n=r.indexOf(e)-r.indexOf(t)),n}),[].concat(r,o)}d.serializeSettings=function(e){var t={};for(var n in e){var o=e[n];try{o=JSON.stringify(o,function(e,t){return v.OUtil.isDate(this[e])?"Date("+this[e].getTime()+")":t}),t[n]=o}catch(e){}}return t},d.deserializeSettings=function(e){var t={};for(var n in e=e||{}){var o=e[n];try{o=JSON.parse(o,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]=o}catch(e){}}return t},d.convertIntToCssHexColor=function(e){return"#"+(Number(e)+16777216).toString(16).slice(-6)},d.parseAppContextFromWindowName=function(e,t){return d.parseInfoFromWindowName(e,t,"appContext")},d.parseHostInfoFromWindowName=function(e,t){return v.OUtil.parseInfoFromWindowName(e,t,"hostInfo")},d.parseXdmInfo=function(e){var t=d.parseXdmInfoWithGivenFragment(e,window.location.hash);return t=t||d.parseXdmInfoFromWindowName(e,window.name)},d.parseXdmInfoFromWindowName=function(e,t){return v.OUtil.parseInfoFromWindowName(e,t,"xdmInfo")},d.parseXdmInfoWithGivenFragment=function(e,t){return v.OUtil.parseInfoWithGivenFragment("&_xdm_Info=","_xdm_",!1,e,t)},d.parseFlights=function(e){var t,n,o,r,i=(t=e,n=window.location.hash,p(g(a,c,!0,t,n)));return 0==i.length&&(o=e,r=window.name,i=p(m(o,r,"flights"))),i},d.parseDisabledChangeGates=function(e){var t,n,o,r,i=(t=e,n=window.location.hash,p(g(s,l,!0,t,n)));return 0==i.length&&(o=e,r=window.name,i=p(m(o,r,"disabledChangeGates"))),i},d.checkFlight=function(e){return v.Flights&&0<=v.Flights.indexOf(e)},d.isChangeGateEnabled=function(e){return!v.DisabledChangeGates||-1===v.DisabledChangeGates.indexOf(e)},d.parseInfoFromWindowName=m,d.parseInfoWithGivenFragment=g,d.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},d.getInfoItems=function(e){var t=e.split("$");return void 0===t[1]&&(t=e.split("|")),void 0===t[1]&&(t=e.split("%7C")),t},d.getXdmFieldValue=function(e,t){var n="",o=v.OUtil.parseXdmInfo(t);if(o){var r=v.OUtil.getInfoItems(o);if(null!=r&&3<=r.length)switch(e){case"ConversationUrl":n=r[2];break;case"AppId":n=r[1]}}return n},d.parseUrl=function(e,t){if(void 0===t&&(t=!1),void 0!==e&&e){var n,o,r="NotHttps",i="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(i){var s=document.createElement("a");if(s.href=e,!(s&&s.protocol&&s.host&&s.hostname&&s.href&&h(s.href).toLowerCase()===h(e).toLowerCase()))throw"InvalidUrl";if(v.OUtil.checkFlight(2)&&t&&"https:"!=s.protocol)throw new Error(r);var c=(o=s,(n=e)&&o?"https:"==o.protocol&&u(n,"https:",o.hostname,"443")?":443":"http:"==o.protocol&&u(n,"http:",o.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=(i?"/":"")+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(v.OUtil.checkFlight(2)&&t&&"https:"!=l.protocol)throw new Error(r);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===r)throw e}return a}},d.focusToFirstTabbable=function(e,t){function n(e){c=!0}var o,r,i,a,s,c=!1;if(e=y(e),o=t?e.length-1:0,0===e.length)return null;for(;!c&&0<=o&&o<e.length;)r=e[o],window.focus(),r.addEventListener("focus",n),r.focus(),r.removeEventListener("focus",n),i=e.length,s=t,o=(a=o)<0||i<a||0===a&&s||a===i-1&&!s?-1:s?a-1:a+1,c||r!==document.activeElement||(c=!0);return c?r:null},d.focusToNextTabbable=function(e,t,n){function o(e){c=!0}function r(e,t,n){return!(t<0||e<t)&&(0!==t||!n)&&(t!==e-1||n)?n?t-1:t+1:-1}var i,a,s,c=!1;if(i=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}(e=y(e),t),(a=r(e.length,i,n))<0)return null;for(;!c&&0<=a&&a<e.length;)(s=e[a]).addEventListener("focus",o),s.focus(),s.removeEventListener("focus",o),a=r(e.length,a,n),c||s!==document.activeElement||(c=!0);return c?s:null},d.defineMethodOnNamespace=function(e,t,n){e[t]=n},d.isDialog=function(){return v._OfficeAppFactory.getHostInfo().isDialog},d.isPopupWindow=function(){return v.OUtil.isDialog()&&v._OfficeAppFactory.getHostInfo().hostPlatform==v.HostInfoPlatform.web&&null!=window.opener},d.getHostPlatform=function(){return v._OfficeAppFactory.getHostInfo().hostPlatform},d.getCustomOfficeInitializationSettings=function(){return"object"==typeof officeInitializationSettings?officeInitializationSettings:{}};var t=0;d.getLibraryReleaseVehicle=function(){return t},d.setLibraryReleaseVehicle=function(e){t=e}}(v.OUtil||(v.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(m){!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 o=n[e.toLowerCase()];try{var r=this._getVersion(o+"");t+="";var i=this._getVersion(t);if(0<r.major&&r.major>i.major)return!0;if(0<r.major&&0<=r.minor&&r.major==i.major&&r.minor>=i.minor)return!0}catch(e){return!1}}return!1},n.prototype._getVersion=function(e){var t=(e+="").split("."),n=0,o=0;if(t.length<2&&isNaN(Number(e)))throw"version format incorrect";if(n=Number(t[0]),2<=t.length&&(o=Number(t[1])),isNaN(n)||isNaN(o))throw"version format incorrect";return{minor:o,major:n}},n);function n(e){this._setMap=e}e.RequirementMatrix=c;var l=(o.prototype._addSetMap=function(e){for(var t in e)this._sets[t]=e[t]},o);function o(e){this._sets=e}e.DefaultSetRequirement=l;var r,u=(__extends(i,r=l),i);function i(){return r.call(this,{dialogapi:1.1})||this}e.DefaultRequiredDialogSetRequirement=u;var a,d=(__extends(s,a=l),s);function s(){return a.call(this,{dialogorigin:1.1})||this}e.DefaultOptionalDialogSetRequirement=d;var f=(p.getDefaultRequirementMatrix=function(e){var t=void 0,n=e.get_requirementMatrix();if(null!=n&&0<n.length){var o=JSON.parse(e.get_requirementMatrix().toLowerCase());if(m._OfficeAppFactory.getHostInfo().hostPlatform==m.HostInfoPlatform.web)try{var r="dialogorigin";o.hasOwnProperty(r)||(o[r]=1.1)}catch(e){}t=new c(new l(o))}else t=new c(new l({}));return t},p.getDefaultDialogRequirementMatrix=function(e){var t=void 0,n=e.get_dialogRequirementMatrix();if(null!=n&&0<n.length){var o=JSON.parse(e.get_requirementMatrix().toLowerCase());t=new l(o)}else{t=new u;var r=e.get_requirementMatrix();if(null!=r&&0<r.length&&"undefined"!=typeof JSON){for(var i in o=JSON.parse(r.toLowerCase()),t._sets)o.hasOwnProperty(i)&&(t._sets[i]=o[i]);var a=new d;for(var i in a._sets)o.hasOwnProperty(i)&&(t._sets[i]=o[i])}}if(m._OfficeAppFactory.getHostInfo().hostPlatform==m.HostInfoPlatform.web)try{var s="dialogorigin";!t._sets.hasOwnProperty(s)&&window.opener&&(t._sets[s]=1.1)}catch(e){}return new c(t)},p);function p(){}e.RequirementsMatrixFactory=f}(m.Requirement||(m.Requirement={}))}(OSF=OSF||{}),function(o){var e,t,n;e=o.DDA||(o.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}}};o._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(93,n,t)},Object.defineProperty(t,"richApiMessageManager",{get:function(){return n=n||new o.RichApiMessageManager}})}(OSF=OSF||{}),function(r){var e=(n.transferEventArgument=function(e){var t=[];if(e)for(var n=0;n<e.length;n++){var o=e[n];o.toArray&&(o=o.toArray()),t.push({messageCategory:o[0],messageType:o[1],targetId:o[2],message:o[3],id:o[4],isRemoteOverride:o[5]})}return{type:r.EventType.RichApiMessage,entries:t}},n.prototype.addHandlerAsync=function(e,t,n){r.EventHelper.addEventHandler(e,t,n,this._eventDispatch)},n.prototype.removeHandlerAsync=function(e,t,n){r.EventHelper.removeEventHandler(e,t,n,this._eventDispatch)},n.prototype.register=function(e){var o=this;return this._registerPromise||(this._registerPromise=new Office.Promise(function(t,n){o.addHandlerAsync(r.EventType.RichApiMessage,function(t){o._registerHandlers.forEach(function(e){e&&e(t)})},function(e){"failed"==e.status?n(e.error):t()})})),this._registerPromise.then(function(){o._registerHandlers.push(e)})},n);function n(){this._registerHandlers=[],this._eventDispatch=new r.EventDispatch([{type:r.EventType.RichApiMessage,id:r.EventDispId.dispidRichApiMessageEvent,getTargetId:function(){return""},fromSafeArrayHost:function(e){return n.transferEventArgument(e)},fromWebHost:function(e){var t=e.ArrayData;return n.transferEventArgument(t)}}])}r.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,o,r){"undefined"!=typeof OsfOMToken&&OsfOMToken?window.external.RegisterEvent(e,n,o,r,OsfOMToken):window.external.RegisterEvent(e,n,o,r)},t.prototype.unregisterEvent=function(e,t,n,o){"undefined"!=typeof OsfOMToken&&OsfOMToken?window.external.UnregisterEvent(e,n,o,OsfOMToken):window.external.UnregisterEvent(e,n,o)},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(M){var t,e=(t=M.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."),M.Utility.trace(t),null;this._osfControlContext=window.external.GetContext()}catch(e){return console.error("Error when call window.external.GetContext() :"+JSON.stringify(e)),M.Utility.trace(t),null}}return this._osfControlContext},n.prototype.getAppContext=function(e,t,n){var o=this,r=this.getOsfControlContext();if(r){var i,a,s,c,l,u,d,f,p,m,g,h,y,v,b,C,O,_,A,S,P,w,T,E,D,I,x=0,F=!1;if((R=M.Utility.externalNativeFunctionExists)(typeof r.GetContextDataInJson)&&"undefined"!=typeof OsfOMToken&&OsfOMToken?((D=r.GetContextDataInJson(OsfOMToken))&&(I=JSON.parse(D)),I?(i=I.appType,a=I.solutionRef,s=I.versionMajor,c=I.versionMinor,l=I.uiLocale,u=I.dataLocale,d=I.docUrl,f=I.clientMode,p=I.activationMode,g=I.controlType,h=I.eToken,y=I.correlationId,v=I.appInstanceId,b=I.touchEnabled,C=r.commerceAllowed,O=I.requirementMatrix,A=I.hostFullVersion,S=I.requirementMatrix,(N=I.featureGates)&&(P=JSON.parse(N)),x=I.initialDisplayMode,w=function(){var e={};if(I.settings)try{var t=JSON.parse(I.settings);if(t)for(var n=[t.names,t.values],o=n[0],r=n[1],i=0;i<o.length;i++)e[o[i]]=r[i]}catch(e){M.Utility.trace("Exception while parsing settings. Details: "+e)}return e},T=function(){var e=I.themeInfo;return o.getOfficeThemeFromInfoString(e)}):F=!0):F=!0,F){i=r.GetAppType(),a=r.GetSolutionRef(),s=r.GetAppVersionMajor(),c=r.GetAppVersionMinor(),l=r.GetAppUILocale(),u=r.GetAppDataLocale(),d=r.GetDocUrl(),f=r.GetAppCapabilities(),p=r.GetActivationMode(),g=r.GetControlIntegrationLevel();try{h=r.GetSolutionToken()}catch(e){}var R;if((R=M.Utility.externalNativeFunctionExists)(typeof r.GetCorrelationId)&&(y=r.GetCorrelationId()),R(typeof r.GetInstanceId)&&(v=r.GetInstanceId()),R(typeof r.GetTouchEnabled)&&(b=r.GetTouchEnabled()),R(typeof r.GetCommerceAllowed)&&(C=r.GetCommerceAllowed()),R(typeof r.GetSupportedMatrix)&&(O=r.GetSupportedMatrix()),R(typeof r.GetHostCustomMessage)&&(_=r.GetHostCustomMessage()),R(typeof r.GetHostFullVersion)&&(A=r.GetHostFullVersion()),R(typeof r.GetDialogRequirementMatrix)&&(S=r.GetDialogRequirementMatrix()),R(typeof r.GetFeaturesForSolution))try{var N;(N=r.GetFeaturesForSolution())&&(P=JSON.parse(N))}catch(e){M.Utility.trace("Exception while creating the SDX FeatureGates object. Details: "+e)}R(typeof r.GetInitialDisplayMode)&&(x=r.GetInitialDisplayMode()),w=function(){return o.getSerializedSettings()},T=function(){return o.getOfficeTheme()},E=function(){return o.getSerializedHostSettings()}}m=2===p?Office.InitializationReason.DocumentOpened:Office.InitializationReason.Inserted,h=h?h.toString():"",t(new M.OfficeAppContext(a,i,s,l,u,d,f,w,m,g,h,y,v,b,C,c,O,_,A,void 0,void 0,void 0,void 0,S,P,T,x,void 0,void 0,E,!1,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!==M.HostInfoPlatform.win32)throw M.Utility.createNotImplementedException();this._clientHostController=new M.Win32RichClientHostController}return this._clientHostController},n.prototype.createAsyncMethodExecutor=function(){return new M.SafeArrayAsyncMethodExecutor(this._clientHostController)},n.prototype.createClientSettingsManager=function(){return new M.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 o={},r=0;r<t.length;r++)o[t[r]]=n[r];return o},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){M.AppTelemetry&&M.AppTelemetry.logAppException("Exception while parsing officeThemeInfo. Details: "+e)}var n={};if(t){var o={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 r in t){var i=!1,a=r;o[r]&&(a=o[r].name,i=o[r].convertToHex),n[a]=i?M.OUtil.convertIntToCssHexColor(t[r]):t[r]}}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 o={},r=0;r<t.length;r++)o[t[r]]=n[r];return o},n.officeThemeCacheValidPeriod=5e3,n);function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.officeThemeTimeStamp=null,e.officeTheme=null,e}M.RichClientInitializationHelper=e}(OSF=OSF||{}),function(e){var t=(n.prototype.read=function(r){var i,e=this._osfClientContext;function t(){var e=[],t=[];i.Read(e,t);for(var n={},o=0;o<e.length;o++)n[e[o]]=t[o];r&&r(0,n)}(i="undefined"!=typeof OsfOMToken&&OsfOMToken?e.GetSettings(OsfOMToken):e.GetSettings()).RefreshAsync?i.RefreshAsync(function(){t()}):t()},n.prototype.write=function(e,t){var n=[],o=[];for(var r in e)n.push(r),o.push(e[r]);var i,a=this._osfClientContext;void 0!==(i="undefined"!=typeof OsfOMToken&&OsfOMToken?a.GetSettings(OsfOMToken):a.GetSettings()).WriteAsync?i.WriteAsync(n,o,t):(i.Write(n,o),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(o,r,i,a){var s=this;try{var c=new Array;this._clientHostController.execute(o,r.toSafeArrayHost(),function(e,t){var n=l.Utility.fromSafeArray(e);return s._asyncMethodExecutorHelper.handleSafeArrayHostResponse(n,t,c,i,r,o,a)})}catch(e){this.onException(e,o,i)}},t.prototype.registerEventAsync=function(o,e,t,r,i,a,s){var c=this;try{this._clientHostController.registerEvent(o,e,t,function(e,t){var n=l.Utility.fromSafeArray(t),o=i.fromSafeArrayHost(n);r(o)},function(e){var t,n=l.Utility.fromSafeArray(e);return t="number"==typeof n?n:n[0],c.invokeCallback(o,a,t,null,s),!0})}catch(e){this.onException(e,o,a)}},t.prototype.unregisterEventAsync=function(r,e,t,i,a){var s=this;try{this._clientHostController.unregisterEvent(r,e,t,function(e,t){var n,o=l.Utility.fromSafeArray(e);return n="number"==typeof o?o:o[0],s.invokeCallback(r,i,n,null,a),!0})}catch(e){this.onException(e,r,i)}},t.prototype.onException=function(e,t,n){var o,r=e.number;if(r)switch(r){case-2146828218:o=7e3;break;case-2147467259:o=t==l.EventDispId.dispidDialogMessageReceivedEvent?12007:5001;break;case-2146828283:case-2147209089:o=5010;break;case-2147208704:o=5100;break;case-2146827850:default:o=5001}n&&this.invokeCallback(t,n,o||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,o=0;o<n;o++){var r=this._internalStorage.key(o);0===r.indexOf(e)&&t.push(r)}}catch(e){}return t},n);function n(e){this._internalStorage=e}e.SafeStorage=t}(OSF=OSF||{}),function(i){var e=(t.prototype.cacheSessionSettings=function(e){var t=OSF.OUtil.getSessionStorage();if(t){var n=OSF.OUtil.serializeSettings(e),o=JSON.stringify(n);t.setItem(OSF._OfficeAppFactory.getCachedSessionSettingsKey(),o)}},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(o){var r=this;this._clientSettingsManager.read(function(e,t){var n=OSF.Utility.asyncResultFromErrorCode(e);n.status===i.AsyncResultStatus.Succeeded&&(r._settings=OSF.OUtil.deserializeSettings(t),n.value=r),o&&o(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}}}])}i.Settings=e}(Office=Office||{});var OSFWebkit,OTel,Microsoft,__awaiter=this&&this.__awaiter||function(i,a,s,c){return new(s=s||Promise)(function(e,t){function n(e){try{r(c.next(e))}catch(e){t(e)}}function o(e){try{r(c.throw(e))}catch(e){t(e)}}function r(t){t.done?e(t.value):new s(function(e){e(t.value)}).then(n,o)}r((c=c.apply(i,a||[])).next())})},__generator=this&&this.__generator||function(n,o){var r,i,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(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,i&&(a=2&t[0]?i.return:t[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,t[1])).done)return a;switch(i=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++,i=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=o.call(n,s)}catch(e){t=[6,e],i=0}finally{r=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,o,r,i,a,s;return __generator(this,function(e){switch(e.label){case 0:if(!(t=this.getConfigPath()))return[3,2];if(n=c.OUtil.getLocalStorage(),o=t+"_cache",r=n.getItem(o),i=null,r){try{i=JSON.parse(r)}catch(e){}if(a=(new Date).getTime(),i&&i.config&&i.createTime<=a&&i.createTime+864e5>=a)return[2,i.config]}return[4,this.downloadConfig(t)];case 1:return(s=e.sent())?(i={createTime:(new Date).getTime(),config:s},n.setItem(o,JSON.stringify(i))):i&&(s=i.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 i(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 o=e.toArray();t=new Array(o.length);for(var r=0;r<o.length;r++)t[r]=i(o[r])}return t}function a(e){var t;try{var n=e.ubound(1),o=e.ubound(2);if(e=e.toArray(),1==n&&1==o)t=[e];else{t=[];for(var r=0;r<n;r++){for(var i=[],a=0;a<o;a++){var s=e[r*o+a];"{66e7831f-81b2-42e2-823c-89e872d541b3}"!=s&&i.push(s)}0<i.length&&t.push(i)}}}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,o){return t(function(t,n){e(function(e){(0===e?t:n)()}),setTimeout(function(){n()},o)})},n.compareVersions=function(e,t){var n,o=e.split("."),r=t.split(".");for(n in o){if(parseInt(o[n])<parseInt(r[n]))return!1;if(parseInt(o[n])>parseInt(r[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 o=0;o<n.length;o++)t[o]=i(n[o])}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 o,e=(o=n.AsyncMethodExecutor,__extends(t,o),t.prototype.executeAsync=function(n,o,r,i){var a=this;this._clientHostController.execute(n,o.toWebHost(),function(e,t){return r&&a._asyncMethodExecutorHelper.handleWebHostResponse(t,e,r,o,n,i),!0})},t.prototype.registerEventAsync=function(n,e,t,o,r,i,a){var s=this;this._clientHostController.registerEvent(n,e,t,function(e){var t=e,n=r.fromWebHost(t);o(n)},function(e,t){return i&&s.invokeCallback(n,i,e,null,a),!0})},t.prototype.unregisterEventAsync=function(n,e,t,o,r){var i=this;this._clientHostController.unregisterEvent(n,e,t,function(e,t){return o&&i.invokeCallback(n,o,e,null,r),!0})},t);function t(e){var t=o.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 r="webauth/",i="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)))&&(i="webauth.browserauth.msal3.debug.js",c="webauth.browserauth.msal3.js"),new Promise(function(t,n){function e(i,a,s){return new Promise(function(o,r){i?u.OUtil.loadScript(i,function(e){if("boolean"!=typeof e||e)if(e instanceof Event&&e)r(new Event("loadScript: "+e.type+" '"+i+"'"));else if(s&&!a())var t=0,n=setInterval(function(){t+=500,!(a()||s<t)||(clearInterval(n),a())||r(new Event("Missing expected object after loaded."))},500);else o(null);else r(new Event("loadScript: failed to load '"+i+"'"))},u.LoadScriptHelper.getTrustedTypesPolicy(),s):o(null)})}var o=[e(a.config&&a.config.authVersion?u.LoadScriptHelper.getHostBundleJsBasePath()+r+a.config.authVersion+"/"+(a.config&&a.config.debugging?i:c):u.LoadScriptHelper.getHostBundleJsBasePath()+r+(a.config&&a.config.debugging?i:c),function(){return BrowserAuth},a.config.delayWebAuth)];l||o.push(e(a.config.msal,function(){return msal},a.config.delayMsal)),Promise.all(o).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,o,r,i){return a.config&&a.config.authFlow===s.AuthCode?l?BrowserAuth.GetToken({resource:e,scopes:t,applicationId:n,correlationId:o,popup:!!r,claims:i}):BrowserAuth.GetToken(e,n,o,!!r,!!r,!1,i):Promise.reject(new Event("'authcode' as authFlow is only supported"))}}(u.WebAuth||(u.WebAuth={}))}(OSF=OSF||{}),function(s){var e=(t.prototype.execute=function(o,e,r){var i=this,t=this._webClientHostControllerHelper.getHostCallArgs(o,e),n=this._webClientHostControllerHelper.getTargetMethodName(o);this._webAppState.clientEndPoint.invoke(n,function(e,t){var n=0;if(0==e)i._delegateVersion=t.Version,n=i._webClientHostControllerHelper.parseErrorFromPayload(o,t);else switch(e){case-5:n=7e3;break;default:n=5001}r&&r(n,t)},t)},t.prototype.registerEvent=function(e,t,n,o,r){this._webAppState.clientEndPoint.registerForEvent(this.getXdmEventName(n,t),function(e){o&&o(e)},this._getOnAfterRegisterEvent(!0,e,r),{controlId:this._webAppState.id,eventDispId:e,targetId:n,__timeout__:-1})},t.prototype.unregisterEvent=function(e,t,n,o){this._webAppState.clientEndPoint.unregisterForEvent(this.getXdmEventName(n,t),this._getOnAfterRegisterEvent(!1,e,o),{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,o,r){throw s.Utility.createNotImplementedException()},t.prototype.closeDialog=function(e,t,n,o){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(o,r,i){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;i&&i(n),s.AppTelemetry&&s.AppTelemetry.onRegisterDone(o,r,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(i){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 o=e.value[n];Array.isArray(o)?t[o[0]]=o[1]:t[o.Name]=o.Value}i(0,t)}else{var r=e.error.code;i(r,{})}})},t.prototype.write=function(e,n){var t=s._OfficeAppFactory.getAsyncMethodExecutor(),o=[];for(var r in e){var i=[];i.push(r),i.push(e[r]),o.push(i)}var a={toSafeArrayHost:function(){return null},fromSafeArrayHost:function(e){return null},toWebHost:function(){return{DdaSettingsMethod:{OverwriteIfStale:!0,Properties:o}}},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(C){var i,e=(i=C.InitializationHelper,__extends(t,i),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=C.OUtil.getSessionStorage();if(n){if((e=e||C.OUtil.parseHostInfoFromWindowName(!0,C._OfficeAppFactory.getWindowName()))&&-1<e.indexOf("isDialog")){var o=(t=C.OUtil.parseXdmInfo(!0))?t.split("|")[1]:null;return null!=o&&n.setItem(o+"IsDialog","true"),void(this._hostInfo.isDialog=!0)}this._hostInfo.isDialog=null!=n.getItem(C.OUtil.getXdmFieldValue("AppId",!1)+"IsDialog")}},t.prototype.checkReceiverOriginAndRun=function(d){return __awaiter(this,void 0,void 0,function(){var a,t,s,c,l,n,o,r,i,u;return __generator(this,function(e){switch(e.label){case 0:return 3===(a=this)._webAppState.clientEndPoint.hostTrustCheckStatus?(d(),[2]):(t=C.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,(o=C.SovereignHelper.isSovereignVersion())&&!0!==C.OUtil.getCustomOfficeInitializationSettings().trustAllCloudEnvironments||(n=C.XdmCommunicationManager.isHostNameValidWacDomain(c),a.isHostOriginTrusted&&(n=n||a.isHostOriginTrusted(c))),n||!o?[3,3]:(a._sovereignHelper||(a._sovereignHelper=new C.SovereignHelper),[4,(r=a._sovereignHelper).isConfigAvailable()]))));case 1:return e.sent()?[4,r.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||(C.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||C.LoadScriptHelper.disableHostCheck())d();else{if(C.LoadScriptHelper.isSdx())throw new Error("Not supported host");i=function(){var t=C.LoadScriptHelper.getHostBundleJsBasePath().match(/^https?:\/\/[^:/?#]*(?::([0-9]+))?/);if(t&&t[0]){var n=C.LoadScriptHelper.getHostBundleJsBasePath()+"AgaveErrorUX/index.html#",o={error:"NotTrustedWAC",locale:C.getSupportedLocale(a._hostInfo.hostLocale,C.ConstantNames.DefaultLocale),hostname:c,noHttps:!s,validate:!1},r=document.createElement("iframe");r.style.visibility="hidden",r.style.height="0",r.style.width="0";var i=function(e){if(e.source==r.contentWindow&&e.origin==t[0])try{!0===JSON.parse(e.data).hostUserTrusted?(a._webAppState.clientEndPoint.hostTrustCheckStatus=3,C.OUtil.removeEventListener(window,"message",i),document.body.removeChild(r)):(o.validate=!1,window.location.replace(n+encodeURIComponent(JSON.stringify(o)))),d()}catch(e){C.OUtil.ensureOfficeStringsJs().then(function(){document.body.textContent=Strings.OfficeOM.L_NotTrustedWAC})}};C.OUtil.addEventListener(window,"message",i),o.validate=!0,r.setAttribute("src",n+encodeURIComponent(JSON.stringify(o))),r.onload=function(){var e={hostname:c,noHttps:!s};r.contentWindow.postMessage(JSON.stringify(e),t[0])},document.body.appendChild(r)}else C.OUtil.ensureOfficeStringsJs().then(function(){document.body.textContent=Strings.OfficeOM.L_NotTrustedWAC});if(C.OUtil.checkFlight(2)&&!s)throw new Error(l)},document.body?i():(u=!1,document.addEventListener("DOMContentLoaded",function(){u||(u=!0,i())}))}return[2]}})})},t.prototype.setAgaveHostCommunication=function(){try{var r=this,e=C.OUtil.parseXdmInfoWithGivenFragment(!1,C._OfficeAppFactory.getWindowLocationHash());if(e=e||C.OUtil.parseXdmInfoFromWindowName(!1,C._OfficeAppFactory.getWindowName())){var t=C.OUtil.getInfoItems(e);null!=t&&3<=t.length&&(r._webAppState.conversationID=t[0],r._webAppState.id=t[1],r._webAppState.webAppUrl=0<=t[2].indexOf(":")?t[2]:decodeURIComponent(t[2]))}if(r._webAppState.wnd=null!=window.opener?window.opener:window.parent,this._hostInfo.isDialog&&null!=window.opener)return;r._webAppState.clientEndPoint=C.XdmCommunicationManager.connect(r._webAppState.conversationID,r._webAppState.wnd,r._webAppState.webAppUrl),r._webAppState.serviceEndPoint=C.XdmCommunicationManager.createServiceEndPoint(r._webAppState.id),r._webAppState.clientEndPoint.checkReceiverOriginAndRun=function(e){r.checkReceiverOriginAndRun(e)};var n=r._webAppState.conversationID+C.Constants.NotificationConversationIdSuffix;r._webAppState.serviceEndPoint.registerConversation(n,r._webAppState.webAppUrl),r._webAppState.serviceEndPoint.registerMethod("Office_notifyAgave",function(e){var t;switch(t="string"==typeof e?e:e[0]){case C.AgaveHostAction.Select:r._webAppState.focused=!0;break;case C.AgaveHostAction.UnSelect:r._webAppState.focused=!1;break;case C.AgaveHostAction.TabIn:case C.AgaveHostAction.CtrlF6In:window.focus();var n=document.querySelectorAll(r._tabbableElements);C.OUtil.focusToFirstTabbable(n,!1)||(window.blur(),r._webAppState.focused=!1,r._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[r._webAppState.id,C.AgaveHostAction.ExitNoFocusable]));break;case C.AgaveHostAction.TabInShift:window.focus(),n=document.querySelectorAll(r._tabbableElements),C.OUtil.focusToFirstTabbable(n,!0)||(window.blur(),r._webAppState.focused=!1,r._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[r._webAppState.id,C.AgaveHostAction.ExitNoFocusableShift]));break;case C.AgaveHostAction.SendMessage:if(Office.context.messaging.onMessage){var o=e[1];Office.context.messaging.onMessage(o)}break;case C.AgaveHostAction.TaskPaneHeaderButtonClicked:Office.context.ui.taskPaneAction.onHeaderButtonClick&&Office.context.ui.taskPaneAction.onHeaderButtonClick();break;default:C.Utility.trace("actionId "+t+" notifyAgave is wrong.")}},0,!1),r.addOrRemoveEventListenersForWindow(!0)}catch(e){throw C.AppTelemetry&&C.AppTelemetry.logAppException("Exception thrown in setAgaveHostCommunication. Exception:["+e+"]"),e}},t.prototype.getAppContext=function(e,h,y){function t(e,t){if(OSFPerformance.getAppContextXdmEnd=OSFPerformance.now(),t._appName===C.AppName.ExcelWebApp){for(var n=0,o=t._settings;n<o.length;n++){var r=o[n],i=r[0],a=r[1];v._serializedSettings[i]=a}for(var s=0,c=t._hostSettings;s<c.length;s++){var l=c[s];i=l[0],a=l[1],v._serializedHostSettings[i]=a}}else v._serializedSettings=t._settings||{},v._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,C.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 d=(b._appContext=t)._appInstanceId?t._appInstanceId:t._id,f=0;null!=t._appMinorVersion&&(f=t._appMinorVersion);var p=void 0;null!=t._requirementMatrix&&(p=t._requirementMatrix),t.eToken=t.eToken?t.eToken:"";var m=new C.OfficeAppContext(t._id,t._appName,t._appVersion,t._appUILocale,t._dataLocale,t._docUrl,t._clientMode,function(){return v._serializedSettings},t._reason,t._osfControlType,t._eToken,t._correlationId,d,!1,!0,f,p,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 v._serializedHostSettings},!0,t._nestedAppAuthBridgeType,t._partitionKey);m.set_taskpaneUrl(t._taskpaneUrl),h(m)}else{var g="Function ContextActivationManager_getAppContextAsync call failed. ErrorCode is "+e+", exception: "+t;C.AppTelemetry&&C.AppTelemetry.logAppException(g),y(g)}}var v=this,b=this;try{var n=!0;this._hostInfo.isDialog&&null!=window.opener&&(n=!1);var o=C.OUtil.parseAppContextFromWindowName(n,C._OfficeAppFactory.getWindowName());o?t(0,o):(OSFPerformance.getAppContextXdmStart=OSFPerformance.now(),this._webAppState.clientEndPoint.invoke("ContextActivationManager_getAppContextAsync",t,this._webAppState.id))}catch(e){C.AppTelemetry&&C.AppTelemetry.logAppException("Exception thrown when trying to invoke getAppContextAsync. Exception:["+e+"]"),y(e)}},t.prototype.createClientHostController=function(){return this._clientHostController||(this._clientHostController=new C.WebClientHostController(this._webAppState)),this._clientHostController},t.prototype.createAsyncMethodExecutor=function(){return new C.WebAsyncMethodExecutor(this._clientHostController)},t.prototype.createClientSettingsManager=function(){return new C.WebClientSettingsManager},t.prototype.addOrRemoveEventListenersForWindow=function(e){function t(){i._webAppState.focused||(i._webAppState.focused=!0),i._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[i._webAppState.id,C.AgaveHostAction.Select])}function n(){C&&(i._webAppState.focused&&(i._webAppState.focused=!1),i._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[i._webAppState.id,C.AgaveHostAction.UnSelect]))}function o(e){if(e.preventDefault=e.preventDefault||function(){e.returnValue=!1},117==e.keyCode&&(e.ctrlKey||e.metaKey)){e.preventDefault();var t=C.AgaveHostAction.CtrlF6Exit;e.shiftKey&&(t=C.AgaveHostAction.CtrlF6ExitShift),i._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[i._webAppState.id,t])}else if(9==e.keyCode){e.preventDefault();var n=document.querySelectorAll(i._tabbableElements);C.OUtil.focusToNextTabbable(n,e.target||e.srcElement,e.shiftKey)||(i._hostInfo.isDialog?C.OUtil.focusToFirstTabbable(n,e.shiftKey):e.shiftKey?i._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[i._webAppState.id,C.AgaveHostAction.TabExitShift]):i._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[i._webAppState.id,C.AgaveHostAction.TabExit]))}else if(27==e.keyCode)e.preventDefault(),i._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[i._webAppState.id,C.AgaveHostAction.EscExit]);else if(113==e.keyCode)e.preventDefault(),i._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[i._webAppState.id,C.AgaveHostAction.F2Exit]);else if((e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)&&1<=e.keyCode&&e.keyCode<=255){var o={keyCode:e.keyCode,shiftKey:e.shiftKey,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey};i._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[i._webAppState.id,C.AgaveHostAction.KeyboardShortcuts,o])}}function r(e){117==e.keyCode&&e.ctrlKey&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}var i=this;C.Utility._DebugXdm||(e?(C.OUtil.addEventListener(window,"focus",t),C.OUtil.addEventListener(window,"blur",n),C.OUtil.addEventListener(window,"keydown",o),C.OUtil.addEventListener(window,"keypress",r)):(C.OUtil.removeEventListener(window,"focus",t),C.OUtil.removeEventListener(window,"blur",n),C.OUtil.removeEventListener(window,"keydown",o),C.OUtil.removeEventListener(window,"keypress",r)))},t.prototype.getTabbableElements=function(){return this._tabbableElements},t);function t(e,t,n,o){var r=i.call(this,e,t,n,o)||this;return r._serializedSettings={},r._serializedHostSettings={},r._appContext={},r._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'])",r}C.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={},o=[],r=[];for(var i in e)o.push(i),r.push(e[i]);n.keys=o,n.values=r,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(p){!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 o=(f.prototype.execute=function(e,t,r){var n={id:e,apiArgs:t};this.hostScriptProxy.invokeMethod(p.Webkit.MessageHandlerName,p.Webkit.MethodId.Execute,n,function(e){if(r){var t=[];if(p.OUtil.isArray(e))for(var n=0;n<e.length;n++){var o=e[n];p.OUtil.isArray(o)&&(o=new p.WebkitSafeArray(o)),t.unshift(o)}return r.apply(null,t)}})},f.prototype.registerEvent=function(e,t,n,o,r){this.hostScriptProxy.registerEvent(p.Webkit.MessageHandlerName,p.Webkit.MethodId.RegisterEvent,e,n,function(e){var t=e,n=0;p.OUtil.isArray(e)&&2<=e.length&&(t=e[0],n=e[1]),o&&o(n,new p.WebkitSafeArray(t))},function(e){if(r)return r(new p.WebkitSafeArray(e))})},f.prototype.unregisterEvent=function(e,t,n,o){this.hostScriptProxy.unregisterEvent(p.Webkit.MessageHandlerName,p.Webkit.MethodId.UnregisterEvent,e,n,function(e){return o(new p.WebkitSafeArray(e))})},f.prototype.messageParent=function(e){var t,n;if(n=this.osfSupportsDialogOrigin&&e[p.ParameterNames.TargetOrigin]?(t=this.useFullDialogAPI?JSON.stringify(e):e[p.ParameterNames.MessageToParent],p.Webkit.MethodId.MessageParent2):(t=e[p.ParameterNames.MessageToParent],p.Webkit.MethodId.MessageParent),this.useFullDialogAPI)this.hostScriptProxy.invokeMethod(p.Webkit.MessageHandlerName,n,t,null);else{var o={dialogMessage:{messageType:0,messageContent:t}},r=n==p.Webkit.MethodId.MessageParent2?e[p.ParameterNames.TargetOrigin]:window.location.origin;window.opener.postMessage(JSON.stringify(o),r)}},f.prototype.openDialog=function(n,e,t,o,r){if(this.useFullDialogAPI)this.registerEvent(n,e,t,o,r);else if(!f.popup||f.popup.closed){f.OpenDialogCallback=void 0;var i=JSON.parse(t),a=i.url;if(a){var s=a.split("#"),c="?";-1<s[0].indexOf("?")&&(c="&");var l="width="+screen.width*i.width/100+", height="+screen.height*i.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&&o(n,[0,e.dialogMessage.messageContent,t.origin])}catch(e){p.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(d,1e3),f.NotifyError=function(e){o(n,[e])}),r(e)}}else r(12003)}else r(12007);function d(){try{null!=f.popup&&!f.popup.closed||(window.clearInterval(f.interval),window.removeEventListener("message",f.DialogEventListener),f.NotifyError=null,f.popup=null,o(n,[12006]))}catch(e){p.Utility.trace("Error happened when popup window closed.")}}},f.prototype.closeDialog=function(e,t,n,o){this.useFullDialogAPI?this.unregisterEvent(e,t,n,o):f.popup?(f.interval&&window.clearInterval(f.interval),f.popup.close(),f.popup=null,window.removeEventListener("message",f.DialogEventListener),f.NotifyError=null,o(0)):o(5001)},f.prototype.sendMessage=function(e){var t,n;this.osfSupportsDialogOrigin&&e[p.ParameterNames.TargetOrigin]?(t=JSON.stringify(e),n=p.Webkit.MethodId.SendMessage2):(t=e[p.ParameterNames.MessageContent],n=p.Webkit.MethodId.SendMessage,!isNaN(parseFloat(t))&&isFinite(t)&&(t=t.toString())),this.hostScriptProxy.invokeMethod(p.Webkit.MessageHandlerName,n,t,null)},f.prototype.closeSdxDialog=function(e){var t=[e],n=p.Webkit.MethodId.CloseSdxDialog;this.hostScriptProxy.invokeMethod(p.Webkit.MessageHandlerName,n,t,null)},f.prototype.resizeSdxDialog=function(e,t){var n=[e,t],o=p.Webkit.MethodId.ResizeSdxDialog;this.hostScriptProxy.invokeMethod(p.Webkit.MessageHandlerName,o,n,null)},f);function f(e){this.hostScriptProxy=e,this.useFullDialogAPI=!!window._enableFullDialogAPI,this.osfSupportsDialogOrigin=!!window._osfEnableDialogOrigin}e.WebkitHostController=o}(p.Webkit||(p.Webkit={}))}(OSF=OSF||{}),function(H){var i,e=(i=H.InitializationHelper,__extends(t,i),t.prototype.initializeWebkitMessaging=function(){H.ScriptMessaging=OSFWebkit.ScriptMessaging},t.prototype.getAppContext=function(e,M,t){var n,k=this;n=this._hostInfo.isDialog&&window.webkit.messageHandlers[H.Webkit.PopupMessageHandlerName]?H.Webkit.PopupMessageHandlerName:H.Webkit.MessageHandlerName,H.ScriptMessaging.GetScriptMessenger().invokeMethod(n,H.Webkit.MethodId.GetContext,[],function(e){var t,n=H.Webkit.AppContextProperties,o=e[n.AppType],r=e[n.Settings];if(r&&2===r.length)for(var i=r[0],a=r[1],s=0;s<i.length;s++)k._serializedSettings[i[s]]=a[s];var c=e[n.HostSettings];if(c&&2===c.length)for(i=c[0],a=c[1],s=0;s<i.length;s++)k._serializedHostSettings[i[s]]=a[s];var l=e[n.SolutionReferenceId],u=e[n.MajorVersion],d=e[n.MinorVersion],f=e[n.AppCapabilities],p=e[n.APPUILocale],m=e[n.AppDataLocale],g=e[n.DocumentUrl],h=e[n.ActivationMode],y=e[n.ControlIntegrationLevel],v=e[n.SolutionToken];v=v?v.toString():"";var b,C=e[n.CorrelationId],O=e[n.InstanceId],_=e[n.TouchEnabled],A=e[n.CommerceAllowed],S=e[n.RequirementMatrix],P=e[n.HostCustomMessage],w=e[n.HostFullVersion],T=e[n.InitialDisplayMode],E=e[n.FeatureGates];if(E)try{b=JSON.parse(E)}catch(e){H.AppTelemetry&&H.AppTelemetry.logAppException("Exception trying to parse FeatureGates."+e)}var D=null;if(e[n.OfficeThemeInfo])try{D=JSON.parse(e[n.OfficeThemeInfo])}catch(e){H.AppTelemetry&&H.AppTelemetry.logAppException("Exception while parsing officeThemeInfo. Details: "+e)}var I={};if(D){var x={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 F in D){var R=!1,N=F;x[F]&&(N=x[F].name,R=x[F].convertToHex),I[N]=R?H.OUtil.convertIntToCssHexColor(D[F]):D[F]}}t=new H.OfficeAppContext(l,o,u,p,m,g,f,function(){return k._serializedSettings},h,y,v,C,O,_,A,d,S,P,w,void 0,void 0,void 0,void 0,void 0,b,I,T,void 0,void 0,function(){return k._serializedHostSettings},!1,void 0,void 0),M(t)})},t.prototype.createClientHostController=function(){return this._clientHostController||(this._clientHostController=new H.Webkit.WebkitHostController(H.ScriptMessaging.GetScriptMessenger())),this._clientHostController},t.prototype.createAsyncMethodExecutor=function(){return new H.SafeArrayAsyncMethodExecutor(this.createClientHostController())},t.prototype.createClientSettingsManager=function(){return new H.WebkitClientSettingsManager(this,H.ScriptMessaging.GetScriptMessenger())},t);function t(e,t,n,o){var r=i.call(this,e,t,n,o)||this;return r._serializedSettings={},r._serializedHostSettings={},r.initializeWebkitMessaging(),r}H.WebkitInitializationHelper=e}(OSF=OSF||{}),function(s){var e=(o.prototype.dimensions=function(){var e=0;return this.safeArrayFlag?e=this.data[0][0]:this.isArray()&&(e=2),e},o.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},o.prototype.lbound=function(e){return 0},o.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},o.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 o(n)):e.push(n)}return e},o.prototype.isArray=function(){return s.OUtil.isArray(this.data)},o.prototype.isSafeArray=function(e){var t=!1;if(s.OUtil.isArray(e)&&s.OUtil.isArray(e[0])){var n=e[0],o=n[0];if(n.length!=o+1)return!1;for(var r=1,i=1;i<n.length;i++){var a=n[i];if(0==isFinite(a))return!1;r*=a}t=++r==e.length}return t},o);function o(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 r("OSF.ScriptMessaging.agaveHostCallback","OSF.ScriptMessaging.agaveHostEventCallback")),n};var l=function(e,t,n){this.id=e,this.targetId=t,this.handler=n},t=(o.IsSupportedByHost=function(){return!!window._osfHostAPI},o.prototype.invokeMethod=function(e,t,n,o){window._osfHostAPI(e,this.constructMessagingArgs(t,n),function(e){var t=o(e);return void 0===t||!0===t})},o.prototype.registerEvent=function(e,t,n,o,r,i){var a={id:n,targetId:o},s=window._osfHostRegisterEvent(e,this.constructMessagingArgs(t,a),function(e){return r(e),!1},function(e){return i(e),!0});this.eventHandlers.push({targetId:o,dispId:n,callbackId:s.eventCallbackId})},o.prototype.unregisterEvent=function(e,t,n,o,r){var i={id:n,targetId:o};window._osfHostAPI(e,this.constructMessagingArgs(t,i),function(e){return r(e),!0});for(var a=this.eventHandlers.length-1;0<=a;a--){var s=this.eventHandlers[a];s.dispId===n&&s.targetId===o&&(this.eventHandlers.splice(a,1),window._osfHostUnregisterCallback(s.callbackId))}},o.prototype.agaveHostCallback=function(e,t){},o.prototype.agaveHostEventCallback=function(e,t){},o.prototype.constructMessagingArgs=function(e,t){return{params:t,methodId:e}},o);function o(){this.eventHandlers=[]}var r=(c.prototype.invokeMethod=function(e,t,n,o){this.postWebkitMessage({},e,t,n,o)},c.prototype.registerEvent=function(e,t,n,o,r,i){var a={eventCallbackFunction:this.eventCallbackFunctionName},s={id:n,targetId:o},c=this.postWebkitMessage(a,e,t,s,i);this.eventHandlerList[c]=new l(n,o,r)},c.prototype.unregisterEvent=function(e,t,n,o,r){var i={id:n,targetId:o};for(var a in this.eventHandlerList)if(this.eventHandlerList.hasOwnProperty(a)){var s=this.eventHandlerList[a];s.id==n&&s.targetId==o&&delete this.eventHandlerList[a]}this.invokeMethod(e,t,i,r)},c.prototype.agaveHostCallback=function(e,t){var n=this.callbackList[e];if(n){var o=n(t);void 0!==o&&!0!==o||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,o,r){e.methodId=n,e.params=o;var i="";function a(){window.webkit.messageHandlers[t].postMessage(JSON.stringify(e))}r&&(i=this.generateCorrelationId(),this.callbackList[i]=r,e.callbackId=i,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)),i},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={},o=[],r=[];for(var i in e)o.push(i),r.push(e[i]);n.keys=o,n.values=r,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(p){!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 o=(f.prototype.execute=function(e,t,n){var o=t;null==o&&(o=[]);var r={id:e,apiArgs:o};this.hostScriptProxy.invokeMethod(p.WebView.MessageHandlerName,p.WebView.MethodId.Execute,r,function(e){var t=e;if(p.OUtil.isArray(e)&&2<=e.length&&(e[0],t=e[1]),n)return n(new p.WebkitSafeArray(t))})},f.prototype.registerEvent=function(e,t,n,o,r){this.hostScriptProxy.registerEvent(p.WebView.MessageHandlerName,p.WebView.MethodId.RegisterEvent,e,n,function(e){var t=e,n=0;p.OUtil.isArray(e)&&2<=e.length&&(n=e[0],t=e[1]),o&&o(n,new p.WebkitSafeArray(t))},function(e){if(r)return r(new p.WebkitSafeArray(e))})},f.prototype.unregisterEvent=function(e,t,n,o){this.hostScriptProxy.unregisterEvent(p.WebView.MessageHandlerName,p.WebView.MethodId.UnregisterEvent,e,n,function(e){return o(new p.WebkitSafeArray(e))})},f.prototype.messageParent=function(e){var t={dialogMessage:{messageType:0,messageContent:e[p.ParameterNames.MessageToParent]}};window.opener.postMessage(JSON.stringify(t),window.location.origin)},f.prototype.openDialog=function(n,e,t,o,r){var i=JSON.parse(t),a=i.url;if(a){var s=a.split("#"),c="?";-1<a.indexOf("?")&&(c="&");var l="width="+screen.width*i.width/100+", height="+screen.height*i.height/100;s[0]=s[0].concat(c).concat("action=displayDialog");var u,d=s.join("#");f.popup=window.open(d,"",l),window.addEventListener("message",function(t){if(t.source==f.popup)try{var e=JSON.parse(t.data);e.dialogMessage&&o(n,[0,e.dialogMessage.messageContent])}catch(e){p.Utility.trace("messages received cannot be handled. Message:"+t.data)}}),u=window.setInterval(function(){try{null!=f.popup&&!f.popup.closed||(window.clearInterval(u),o(n,[12006]))}catch(e){p.Utility.trace("Error happened when popup window closed.")}},1e3),r(0)}},f.prototype.closeDialog=function(e,t,n,o){f.popup?(f.popup.close(),f.popup=null,o(0)):o(5001)},f.prototype.sendMessage=function(e){var t=e[p.ParameterNames.MessageContent];!isNaN(parseFloat(t))&&isFinite(t)&&(t=t.toString()),this.hostScriptProxy.invokeMethod(p.WebView.MessageHandlerName,p.WebView.MethodId.SendMessage,t,null)},f.prototype.closeSdxDialog=function(e){throw p.Utility.createNotImplementedException()},f.prototype.resizeSdxDialog=function(e,t){throw p.Utility.createNotImplementedException()},f);function f(e){this.hostScriptProxy=e}e.WebViewHostController=o}(p.WebView||(p.WebView={}))}(OSF=OSF||{}),function(E){var i,e=(i=E.InitializationHelper,__extends(t,i),t.prototype.initializeWebViewMessaging=function(){E.ScriptMessaging=E.WebView.ScriptMessaging},t.prototype.getAppContext=function(e,w,t){var n,T=this;n=this._hostInfo.isDialog?E.WebView.PopupMessageHandlerName:E.WebView.MessageHandlerName,E.ScriptMessaging.GetScriptMessenger().invokeMethod(n,E.WebView.MethodId.GetContext,[],function(e){var t,n=E.Webkit.AppContextProperties,o=e[n.AppType],r=e[n.Settings];if(r&&2===r.length)for(var i=r[0],a=r[1],s=0;s<i.length;s++)T._serializedSettings[i[s]]=a[s];var c=e[n.SolutionReferenceId],l=e[n.MajorVersion],u=e[n.MinorVersion],d=e[n.AppCapabilities],f=e[n.APPUILocale],p=e[n.AppDataLocale],m=e[n.DocumentUrl],g=e[n.ActivationMode],h=e[n.ControlIntegrationLevel],y=e[n.SolutionToken];y=y?y.toString():"";var v=e[n.CorrelationId],b=e[n.InstanceId],C=e[n.TouchEnabled],O=e[n.CommerceAllowed],_=e[n.RequirementMatrix],A=e[n.HostCustomMessage],S=e[n.HostFullVersion],P=e[n.InitialDisplayMode];t=new E.OfficeAppContext(c,o,l,f,p,m,d,function(){return T._serializedSettings},g,h,y,v,b,C,O,u,_,A,S,void 0,void 0,void 0,void 0,void 0,void 0,void 0,P,void 0,void 0,void 0,!1,void 0,void 0),w(t)})},t.prototype.createClientHostController=function(){return this._clientHostController||(this._clientHostController=new E.WebView.WebViewHostController(E.ScriptMessaging.GetScriptMessenger())),this._clientHostController},t.prototype.createAsyncMethodExecutor=function(){return new E.SafeArrayAsyncMethodExecutor(this.createClientHostController())},t.prototype.createClientSettingsManager=function(){return new E.WebViewClientSettingsManager(this,E.ScriptMessaging.GetScriptMessenger())},t);function t(e,t,n,o){var r=i.call(this,e,t,n,o)||this;return r._serializedSettings={},r.initializeWebViewMessaging(),r}E.WebViewInitializationHelper=e}(OSF=OSF||{}),function(n){var o,e,t,r,i;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}(o=o||{}),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 o.CallbackType.MethodCallback:n.WebView.ScriptMessaging.agaveHostCallback(e.callbackId,e.params);break;case o.CallbackType.EventCallback:n.WebView.ScriptMessaging.agaveHostEventCallback(e.callbackId,e.params)}},t=a,e.Poster=t,r=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 o.CallbackType.MethodCallback:n.WebView.ScriptMessaging.agaveHostCallback(t.callbackId,JSON.parse(t.params));break;case o.CallbackType.EventCallback:n.WebView.ScriptMessaging.agaveHostEventCallback(t.callbackId,JSON.parse(t.params))}}},i=s,r.Poster=i}(OSF=OSF||{}),function(r){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=r._OfficeAppFactory.getHostInfo().hostPlatform;if(e===r.HostInfoPlatform.android)n=new t("OSF.ScriptMessaging.agaveHostCallback","OSF.ScriptMessaging.agaveHostEventCallback",r.Android.Poster.getInstance());else{if(e!==r.HostInfoPlatform.winrt)throw r.Utility.createNotImplementedException();n=new t("agaveHostCallback","agaveHostEventCallback",new r.WinRT.Poster)}}return n};var l=function(e,t,n){this.id=e,this.targetId=t,this.handler=n},t=(o.prototype.invokeMethod=function(e,t,n,o){this.postMessage({},e,t,n,o)},o.prototype.registerEvent=function(e,t,n,o,r,i){var a={eventCallbackFunction:this.eventCallbackFunctionName},s={id:n,targetId:o},c=this.postMessage(a,e,t,s,i);this.eventHandlerList[c]=new l(n,o,r)},o.prototype.unregisterEvent=function(e,t,n,o,r){var i={id:n,targetId:o};for(var a in this.eventHandlerList)if(this.eventHandlerList.hasOwnProperty(a)){var s=this.eventHandlerList[a];s.id==n&&s.targetId==o&&delete this.eventHandlerList[a]}this.invokeMethod(e,t,i,r)},o.prototype.agaveHostCallback=function(e,t){var n=this.callbackList[e];if(n){var o=n(t);void 0!==o&&!0!==o||delete this.callbackList[e]}},o.prototype.agaveHostEventCallback=function(e,t){var n=this.eventHandlerList[e];n&&n.handler(t)},o.prototype.postMessage=function(e,t,n,o,r){var i=this.generateCorrelationId();return this.callbackList[i]=r,e.methodId=n,e.params=o,e.callbackId=i,e.callbackFunction=this.asyncMethodCallbackFunctionName,this.poster.postMessage(t,JSON.stringify(e)),i},o.prototype.generateCorrelationId=function(){return++this.callingIndex,this.conversationId+this.callingIndex},o.getCurrentTimeMS=function(){return(new Date).getTime()},o.MESSAGE_TIME_DELTA=10,o);function o(e,t,n){this.callingIndex=0,this.callbackList={},this.eventHandlerList={},this.asyncMethodCallbackFunctionName=e,this.eventCallbackFunctionName=t,this.poster=n,this.conversationId=o.getCurrentTimeMS().toString()}})((e=r.WebView||(r.WebView={})).ScriptMessaging||(e.ScriptMessaging={}))}(OSF=OSF||{}),function(n){var e,t=(e=n.RichClientHostController,__extends(o,e),o.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)}},o.prototype.openDialog=function(e,t,n,o,r){this.registerEvent(e,t,n,o,r)},o.prototype.closeDialog=function(e,t,n,o){this.unregisterEvent(e,t,n,o)},o.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)}},o.prototype.closeSdxDialog=function(e){n.Utility.externalNativeFunctionExists(typeof window.external.closeSdxDialog)&&window.external.closeSdxDialog(e)},o.prototype.resizeSdxDialog=function(e,t){n.Utility.externalNativeFunctionExists(typeof window.external.resizeSdxDialog)&&window.external.resizeSdxDialog(e,t)},o);function o(){return null!==e&&e.apply(this,arguments)||this}n.Win32RichClientHostController=t}(OSF=OSF||{}),function(f){var e,t=(e=f.Webkit.WebkitHostController,__extends(p,e),p.prototype.openDialog=function(n,e,t,o,r){if(!p.popup||p.popup.closed){window.dialogAPIErrorCode=void 0;var i=JSON.parse(t),a=i.url;if(a){var s=a.split("#"),c="?";-1<s[0].indexOf("?")&&(c="&");var l="width="+screen.width*i.width/100+", height="+screen.height*i.height/100;s[0]=s[0].concat(c).concat("action=displayDialog");var u=s.join("#");if(p.popup=window.open(u,"",l),p.DialogEventListener=function(t){if(t.source==p.popup)try{var e=JSON.parse(t.data);e.dialogMessage&&o(n,[0,e.dialogMessage.messageContent])}catch(e){f.Utility.trace("messages received cannot be handlered. Message:"+t.data)}},null!=p.popup&&null==window.dialogAPIErrorCode)window.addEventListener("message",p.DialogEventListener),p.interval=window.setInterval(function(){try{null!=p.popup&&!p.popup.closed||(window.clearInterval(p.interval),window.removeEventListener("message",p.DialogEventListener),p.NotifyError=null,o(n,[12006]))}catch(e){f.Utility.trace("Error happened when popup window closed.")}},500),p.NotifyError=function(e){o(n,[e])},r(0);else{var d=5001;window.dialogAPIErrorCode&&(d=window.dialogAPIErrorCode),r(d)}}else r(12003)}else r(12007)},p.prototype.messageParent=function(e){var t={dialogMessage:{messageType:0,messageContent:e[f.ParameterNames.MessageToParent]}};window.opener.postMessage(JSON.stringify(t),window.location.origin)},p.prototype.closeDialog=function(e,t,n,o){p.popup?(p.interval&&window.clearInterval(p.interval),p.popup.close(),p.popup=null,window.removeEventListener("message",p.DialogEventListener),p.NotifyError=null,o(0)):o(5001)},p);function p(){return null!==e&&e.apply(this,arguments)||this}f.MacRichClientHostController=t}(OSF=OSF||{}),function(e){var t,n,o;((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)},o=0,s=function(e,t){d[o]=e,d[o+1]=t,2===(o+=2)&&(n?n(f):r())};var e="undefined"!=typeof process&&"[object process]"==={}.toString.call(process),t="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;var r,i,c,u,d=new Array(1e3);function f(){for(var e=0;e<o;e+=2){(0,d[e])(d[e+1]),d[e]=void 0,d[e+1]=void 0}o=0}function p(){}r=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?((i=new MessageChannel).port1.onmessage=f,function(){i.port2.postMessage(0)}):function(){setTimeout(f,1)};var m=void 0,g=1,h=2,y=new w;function v(e,o,r){s(function(t){var n=!1,e=function(e,t,n,o){try{e.call(t,n,o)}catch(e){return e}}(r,o,function(e){n||(n=!0,(o!==e?C:_)(t,e))},function(e){n||(n=!0,A(t,e))},t._label);!n&&e&&(n=!0,A(t,e))},e)}function b(e,t){if(t.constructor===e.constructor)o=e,(r=t)._state===g?_(o,r._result):r._state===h?A(o,r._result):S(r,void 0,function(e){C(o,e)},function(e){A(o,e)});else{var n=function(e){try{return e.then}catch(e){return y.error=e,y}}(t);n===y?A(e,y.error):void 0!==n&&l(n)?v(e,t,n):_(e,t)}var o,r}function C(e,t){var n;e===t?A(e,new TypeError("You cannot resolve a promise with itself")):("function"==typeof(n=t)||"object"==typeof n&&null!==n?b:_)(e,t)}function O(e){e._onerror&&e._onerror(e._result),P(e)}function _(e,t){e._state===m&&(e._result=t,e._state=g,0!==e._subscribers.length&&s(P,e))}function A(e,t){e._state===m&&(e._state=h,e._result=t,s(O,e))}function S(e,t,n,o){var r=e._subscribers,i=r.length;e._onerror=null,r[i]=t,r[i+g]=n,r[i+h]=o,0===i&&e._state&&s(P,e)}function P(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var o,r,i=e._result,a=0;a<t.length;a+=3)o=t[a],r=t[a+n],o?E(n,o,r,i):r(i);e._subscribers.length=0}}function w(){this.error=null}var T=new w;function E(e,t,n,o){var r,i,a,s,c=l(n);if(c){if((r=function(e,t){try{return e(t)}catch(e){return T.error=e,T}}(n,o))===T?(s=!0,i=r.error,r=null):a=!0,t===r)return void A(t,new TypeError("A promises callback cannot return that same promise."))}else r=o,a=!0;t._state!==m||(c&&a?C(t,r):s?A(t,i):e===g?_(t,r):e===h&&A(t,r))}function D(e,t){var n=this;n._instanceConstructor=e,n.promise=new e(p),n._validateInput(t)?(n._input=t,n.length=t.length,n._remaining=t.length,n._init(),0===n.length?_(n.promise,n._result):(n.length=n.length||0,n._enumerate(),0===n._remaining&&_(n.promise,n._result))):A(n.promise,n._validationError())}D.prototype._validateInput=function(e){return a(e)},D.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},D.prototype._init=function(){this._result=new Array(this.length)};var I=D;D.prototype._enumerate=function(){for(var e=this.length,t=this.promise,n=this._input,o=0;t._state===m&&o<e;o++)this._eachEntry(n[o],o)},D.prototype._eachEntry=function(e,t){var n,o=this,r=o._instanceConstructor;"object"==typeof(n=e)&&null!==n?e.constructor===r&&e._state!==m?(e._onerror=null,o._settledAt(e._state,t,e._result)):o._willSettleAt(r.resolve(e),t):(o._remaining--,o._result[t]=e)},D.prototype._settledAt=function(e,t,n){var o=this,r=o.promise;r._state===m&&(o._remaining--,e===h?A(r,n):o._result[t]=n),0===o._remaining&&_(r,o._result)},D.prototype._willSettleAt=function(e,t){var n=this;S(e,void 0,function(e){n._settledAt(g,t,e)},function(e){n._settledAt(h,t,e)})};function x(e){var t=new this(p);if(!a(e))return A(t,new TypeError("You must pass an array to race.")),t;var n=e.length;function o(e){C(t,e)}function r(e){A(t,e)}for(var i=0;t._state===m&&i<n;i++)S(this.resolve(e[i]),void 0,o,r);return t}function F(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(p);return C(t,e),t}function R(e){var t=new this(p);return A(t,e),t}var N=0;var M=k;function k(e){this._id=N++,this._state=void 0,this._result=void 0,this._subscribers=[],p!==e&&(l(e)||function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof k||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){C(t,e)},function(e){A(t,e)})}catch(e){A(t,e)}}(this,e))}return k.all=function(e){return new I(this,e).promise},k.race=x,k.resolve=F,k.reject=R,k._setScheduler=function(e){n=e},k._setAsap=function(e){s=e},k._asap=s,k.prototype={constructor:k,then:function(e,t){var n=this._state;if(n===g&&!e||n===h&&!t)return this;var o=new this.constructor(p),r=this._result;if(n){var i=arguments[n-1];s(function(){E(n,o,i,r)})}else S(this,o,e,t);return o},catch:function(e){return this.then(null,e)}},M}.call(this)},(o=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=o.PromiseImpl.Init();return window.Promise=e}}(),e.OfficePromise=t.OfficePromise,e.Promise=e.OfficePromise}(Office=Office||{}),function(v){!function(i){var a,s=v.OUtil.Guid.generateNewGuid(),c=new RegExp("^https?://store\\.office(ppe|-int)?\\.com/","i"),l=!1,u="PRIVATE";i.enableTelemetry=!0;var d=function(){};i.AppInfo=d;var f=(e.prototype.getClientId=function(){var e=this.getValue(this.clientIDKey);return(!e||e.length<=0||40<e.length)&&(e=v.OUtil.Guid.generateNewGuid(),this.setValue(this.clientIDKey,e)),e},e.prototype.getValue=function(e){var t=v.OUtil.getLocalStorage(),n="";return t&&(n=t.getItem(e)),n},e.prototype.setValue=function(e,t){var n=v.OUtil.getLocalStorage();n&&n.setItem(e,t)},e);function e(){this.clientIDKey="Office API client",this.logIdSetKey="Office App Log Id Set"}function p(e){return(e=e&&e.replace(/[{}]/g,"").toLowerCase())||""}function m(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)]),v.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!=(v._OfficeAppFactory.getHostInfo().flags&v.HostInfoFlags.PublicAddin);return e||!!a&&o(v._OfficeAppFactory.getHostInfo().hostPlatform,a.hostVersion)}function h(e,t){return g()||t!==e?t:u}function o(e,t){var n=!1,o=/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/.exec(t);if(o){var r=parseInt(o[1]),i=parseInt(o[2]),a=parseInt(o[3]);e==v.HostInfoPlatform.win32?(r<16||16==r&&a<14225)&&(n=!0):e==v.HostInfoPlatform.mac&&(r<16||16==r&&(i<52||52==i&&a<808))&&(n=!0)}return n}function y(){return 0!=(v._OfficeAppFactory.getHostInfo().flags&v.HostInfoFlags.IsMos)}i.initialize=function(e){if(i.enableTelemetry&&!a){a=new d,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=p(e.get_correlationId()),a.clientId=(new f).getClientId(),a.appInstanceId=e.get_appInstanceId(),a.appInstanceId&&(a.appInstanceId=p(a.appInstanceId),a.appInstanceId=h(e.get_id(),a.appInstanceId)),a.message=e.get_hostCustomMessage(),a.officeJSVersion=v.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 o=location.href;if(o&&(a.isPreload=-1!==o.indexOf("preload=1"),o=o.split("?")[0].split("#")[0]),a.isMos=y(),v.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_10045620_CopilotAgentTelSettings")){var r=e.get_settingsFunc()();r&&r.LaunchSource&&r.LaunchReason&&(a.launchSource=m(r.LaunchSource),a.launchReason=m(r.LaunchReason))}!function(e,t){t.assetId="",t.userId="";try{if(!v.Utility.isNullOrEmpty(e)){var n=decodeURIComponent(e),o=new DOMParser,r=void 0;if(v.LoadScriptHelper.trustedTypesOptIn()&&window.trustedTypes&&window.trustedTypes.createPolicy)r=window.trustedTypes.createPolicy("officejs-domparser",{createHTML:function(e){return e}}).createHTML(n);else r=n;var i=o.parseFromString(r,"text/xml"),a=i.getElementsByTagName("t")[0].attributes.getNamedItem("cid"),s=i.getElementsByTagName("t")[0].attributes.getNamedItem("oid");a&&a.nodeValue?t.userId=a.nodeValue:s&&s.nodeValue&&(t.userId=s.nodeValue),t.assetId=i.getElementsByTagName("t")[0].attributes.getNamedItem("aid").nodeValue}}catch(e){}}(e.get_eToken(),a),a.sessionId=s,OTel.OTelLogger.initialize(a),a.isPreload?l=!0:i.onAppActivated()}},i.onAppActivated=t,i.onScriptDone=function(e,t,n,o){},i.onCallDone=function(e,t,n,o,r){},i.onMethodDone=function(e,t,n,o){},i.onPropertyDone=function(e,t){v.AppTelemetry.onCallDone("property",-1,e,t,0)},i.onCheckWACHost=function(e,t,n,o,r){},i.onEventDone=function(e,t){v.AppTelemetry.onCallDone("event",e,null,0,t)},i.onRegisterDone=function(e,t,n,o){v.AppTelemetry.onCallDone(e?"registerevent":"unregisterevent",t,null,n,o)},i.onAppClosed=function(e,t){},i.setOsfControlAppCorrelationId=function(e){p(e)},i.doAppInitializationLogging=n,i.logAppCommonMessage=function(e){},i.logAppException=function(e){},i.CallOnAppActivatedIfPending=function(){l&&(l=!1,t())},i.canSendAddinId=g,i.getCompliantAppInstanceId=h,i._isComplianceExceptedHost=o,i.isMos=y}(v.AppTelemetry||(v.AppTelemetry={}))}(OSF=OSF||{}),function(i){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},o=oteljs.Contracts.Office.System.SDX.getFields("SDX",n);if("web"===OSF._OfficeAppFactory.getHostInfo().hostPlatform)t=new i.SdxWacSink;else{if(!Office.context.requirements.isSetSupported("Telemetry","1.2"))return console.error("Cannot create telemetry sink successfully"),null;t=new i.RichApiSink,this.richApiSink=t}var r=new oteljs.SimpleTelemetryLogger(void 0,o);return r.addSink(t),r.setTenantToken("Office.Extensibility.OfficeJs","db334b301e7b474db5e0f02f07c51a47-a1b5bc36-1bbe-482f-a64a-c2d9cb606706-7439",1755),oteljs.onNotification().addListener(function(e){OSF.Utility.debugLog(e.message())}),r},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(){}i.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 i=this,a=new OfficeCore.RequestContext;return e.forEach(function(e){var t=e[0],n=e[1];if(t.telemetryProperties){var o=[];i.addDataFields(o,t.dataFields);var r=t.eventContract?t.eventContract.name:"";t.eventContract&&i.addDataFields(o,t.eventContract.dataFields),1===n?a.telemetry.sendTelemetryEvent(t.telemetryProperties,t.eventName,r,oteljs.getEffectiveEventFlags(t),o):a.telemetry.sendNonStandardEvent(t.telemetryProperties,t.eventName,r,oteljs.getEffectiveEventFlags(t),o,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(),o=OSF.AgaveHostAction.SendTelemetryEvent;OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n,o,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(),o=OSF.AgaveHostAction.SendNonStandardEvent;OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n,o,e])}catch(e){oteljs.logError(1,"AgaveWacSink",e)}},n);function n(){}e.SdxWacSink=t}(OTel=OTel||{}),function(){var t,e=[];function d(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(r){var i=Navigator.prototype[r];i&&(Navigator.prototype[r]=function(e,t,n){if(3===arguments.length&&Function.prototype.isPrototypeOf(t)&&Function.prototype.isPrototypeOf(n)){var o=(p++).toString();return d(o,"Navigator.prototype."+r,JSON.stringify([{audio:!!e.audio,video:!!e.video}])),i.apply(this,[e,function(){return f(o,!0),t.apply(this,arguments)},function(){return f(o,!1,arguments[0]),n.apply(this,arguments)}])}return i.apply(this,arguments)},e.push("Navigator.prototype."+r))}for(var p=0,o=0,r=["getUserMedia","webkitGetUserMedia","mozGetUserMedia"];o<r.length;o++){n(r[o])}var i=MediaDevices.prototype.getUserMedia;i&&(MediaDevices.prototype.getUserMedia=function(e){var t=(p++).toString();return 1===arguments.length&&void 0!==e?(d(t,"MediaDevices.prototype.getUserMedia",JSON.stringify([{audio:!!e.audio,video:!!e.video}])),i.apply(this,arguments).then(function(){return f(t,!0),arguments[0]},function(){throw f(t,!1,arguments[0]),arguments[0]})):i.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 o=[],r=3;r<arguments.length;r++)o[r-3]=arguments[r];var i=(p++).toString(),a=!1;d(i,"Geolocation.prototype."+l,JSON.stringify([]));var s=Function.prototype.isPrototypeOf(e)?function(){return a||(f(i,!0),a=!0),e.apply(this,arguments)}:e,c=Function.prototype.isPrototypeOf(t)?function(){return a||(f(i,!1,arguments[0]),a=!0),t.apply(this,arguments)}:t;return u.apply(this,[s,c,n].concat(o))},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(r){r.sendTelemetryEvent=function(e){Microsoft.Office.WebExtension.sendTelemetryEvent(e)},r.sendNonStandardEvent=function(e,t){Microsoft.Office.WebExtension.sendNonStandardEvent(e,t)},r.flushTelemetryQueue=function(){return Microsoft.Office.WebExtension.flushTelemetryQueue()},r.telemetrySink=Microsoft.Office.WebExtension.telemetrySink,r.isTrustedHost=function(){return __awaiter(this,void 0,void 0,function(){var t,n,o;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,r.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 o=e.sent(),OSF.AppTelemetry&&OSF.AppTelemetry.logAppException("Exception happens at Office.isTrustedHost."+o),[2,!1];case 7:return[2]}})})},Microsoft.Office.WebExtension.onReadyInternal=r.onReadyInternal}(Office=Office||{});var OfficeExtension;__extends=this&&this.__extends||function(){var o=function(e,t){return(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}();!function(y){var a,e;(e=a=y.RemoteEndpointType||(y.RemoteEndpointType={})).graph="graph",e.wfe="wfe";var v=(t.prototype._resolveRequestUrlAndHeaderInfo=function(){return A._createPromiseFromResult(null)},t.prototype._createRequestExecutorOrNull=function(){return null},t.prototype.getEventRegistration=function(e){return null},t);function t(){}y.SessionBase=v;var s=(n.setCustomSendRequestFunc=function(e){n.s_customSendRequestFunc=e},n.xhrSendRequestFunc=function(r){return A.createPromise(function(t,e){var n=new XMLHttpRequest;if(n.open(r.method,r.url),n.onload=function(){var e={statusCode:n.status,headers:A._parseHttpResponseHeaders(n.getAllResponseHeaders()),body:n.responseText};t(e)},n.onerror=function(){e(new m.RuntimeError({code:g.connectionFailure,httpStatusCode:n.status,message:A._getResourceString(h.connectionFailureWithStatus,n.statusText)}))},r.headers)for(var o in r.headers)n.setRequestHeader(o,r.headers[o]);n.send(A._getRequestBodyText(r))})},n.fetchSendRequestFunc=function(e){var t=A._getRequestBodyText(e);return""===t&&(t=void 0),fetch(e.url,{method:e.method,headers:e.headers,body:t}).then(function(o){return o.text().then(function(e){var t=o.status,n={};return o.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=A._validateLocalDocumentRequest(e);var t=A._buildRequestMessageSafeArray(e);return A.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),A.log("Response:"),A.log(JSON.stringify(t)),n(t)})})},n.validateAndNormalizeRequest=function(e){if(A.isNullOrUndefined(e))throw m.RuntimeError._createInvalidArgError({argumentName:"request"});A.isNullOrEmptyString(e.method)&&(e.method="GET"),e.method=e.method.toUpperCase();var t=!1;if("object"==typeof e.headers&&e.headers[p.testRequestNameHeader]&&(t=!0),!t){var n=P._getCurrentTestNameWithSequenceId();n&&(e.headers||(e.headers={}),e.headers[p.testRequestNameHeader]=n)}},n.logRequest=function(e){if(A._logEnabled){if(A.log("---HTTP Request---"),A.log(e.method+" "+e.url),e.headers)for(var t in e.headers)A.log(t+": "+e.headers[t]);n._logBodyEnabled&&A.log(A._getRequestBodyText(e))}},n.logResponse=function(e){if(A._logEnabled){if(A.log("---HTTP Response---"),A.log(""+e.statusCode),e.headers)for(var t in e.headers)A.log(t+": "+e.headers[t]);n._logBodyEnabled&&A.log(e.body)}},n._logBodyEnabled=!1,n);function n(){}y.HttpUtility=s;var m,o,r,i,c=(l.init=function(e){if("object"==typeof e&&e){var a=new l(e);l.s_instance=a,s.setCustomSendLocalDocumentRequestFunc(function(e){e=A._validateLocalDocumentRequest(e);var t=0;A.isReadonlyRestRequest(e.method)||(t=1);var n=e.url.indexOf("?");if(0<=n){var o=e.url.substr(n+1),r=A._parseRequestFlagsAndCustomDataFromQueryStringIfAny(o);0<=r.flags&&(t=r.flags)}"string"==typeof e.body&&(e.body=JSON.parse(e.body));var i={id:l.nextId(),type:1,flags:t,message:e};return a.sendMessageToHostAndExpectResponse(i).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 o=this,e=A.createPromise(function(e,t){o.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 o=0;o<n.entries.length;o++){var r=n.entries[o];if(Array.isArray(r)){var i={messageCategory:r[0],messageType:r[1],targetId:r[2],message:r[3],id:r[4]};n.entries[o]=i}}}a.dispatchMessage(t)}}function u(e){var t=r.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),A.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 A.isNullOrUndefined(t.httpStatusCode)&&(t.httpStatusCode=500),t}y.HostBridge=c,"object"==typeof _richApiNativeBridge&&_richApiNativeBridge&&c.init(_richApiNativeBridge),o=m=y._Internal||(y._Internal={}),r=Error,__extends(u,r),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 o.RuntimeError?t.innerError=this.innerError.debugInfo:t.innerError=this.innerError),t},u._createInvalidArgError=function(e){return new o.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:A.isNullOrEmptyString(e.argumentName)?A._getResourceString(h.invalidArgumentGeneric):A._getResourceString(h.invalidArgument,e.argumentName),debugInfo:e.errorLocation?{errorLocation:e.errorLocation}:{},innerError:e.innerError})},i=u,o.RuntimeError=i,y.Error=m.RuntimeError;var g=(d.apiNotFound="ApiNotFound",d.accessDenied="AccessDenied",d.generalException="GeneralException",d.activityLimitReached="ActivityLimitReached",d.invalidArgument="InvalidArgument",d.connectionFailure="ConnectionFailure",d.timeout="Timeout",d.invalidOrTimedOutSession="InvalidOrTimedOutSession",d.invalidObjectPath="InvalidObjectPath",d.invalidRequestContext="InvalidRequestContext",d.valueNotLoaded="ValueNotLoaded",d.requestPayloadSizeLimitExceeded="RequestPayloadSizeLimitExceeded",d.responsePayloadSizeLimitExceeded="ResponsePayloadSizeLimitExceeded",d.writeNotSupportedWhenModalDialogOpen="WriteNotSupportedWhenModalDialogOpen",d.undoNotSupported="UndoNotSupported",d);function d(){}y.CoreErrorCodes=g;var h=(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(){}y.CoreResourceStrings=h;var p=(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(){}y.CoreConstants=p;var C,O=(_.buildMessageArrayForIRequestExecutor=function(e,t,n,o){var r=JSON.stringify(n.Body);A.log("Request:"),A.log(r);var i={};return A._copyHeaders(n.Headers,i),i[p.sourceLibHeader]=o,_.buildRequestMessageSafeArray(e,t,"POST",p.processQuery,i,r)},_.buildResponseOnSuccess=function(e,t){var n={HttpStatusCode:200,ErrorCode:"",ErrorMessage:"",Headers:null,Body:null};return n.Body=JSON.parse(e),n.Headers=t,n},_.buildResponseOnError=function(e,t){var n={HttpStatusCode:500,ErrorCode:"",ErrorMessage:"",Headers:null,Body:null};return n.ErrorCode=g.generalException,n.ErrorMessage=t,e==_.OfficeJsErrorCode_ooeNoCapability?(n.ErrorCode=g.accessDenied,n.HttpStatusCode=401):e==_.OfficeJsErrorCode_ooeActivityLimitReached?(n.ErrorCode=g.activityLimitReached,n.HttpStatusCode=429):e==_.OfficeJsErrorCode_ooeInvalidOrTimedOutSession?(n.ErrorCode=g.invalidOrTimedOutSession,n.HttpStatusCode=408,n.ErrorMessage=A._getResourceString(h.invalidOrTimedOutSessionMessage)):e==_.OfficeJsErrorCode_ooeRequestPayloadSizeLimitExceeded?(n.ErrorCode=g.requestPayloadSizeLimitExceeded,n.HttpStatusCode=400):e==_.OfficeJsErrorCode_ooeResponsePayloadSizeLimitExceeded?(n.ErrorCode=g.responsePayloadSizeLimitExceeded,n.HttpStatusCode=400):e==_.OfficeJsErrorCode_ooeWriteNotSupportedWhenModalDialogOpen?(n.ErrorCode=g.writeNotSupportedWhenModalDialogOpen,n.HttpStatusCode=400):e==_.OfficeJsErrorCode_ooeInvalidSheetName?(n.ErrorCode=g.invalidRequestContext,n.HttpStatusCode=400,n.ErrorMessage=A._getResourceString(h.invalidSheetName)):e==_.OfficeJsErrorCode_ooeUndoNotSupported&&(n.ErrorCode=g.undoNotSupported,n.HttpStatusCode=400),n},_.buildHttpResponseFromOfficeJsError=function(e,t){var n=500,o={error:{}};return o.error.code=g.generalException,o.error.message=t,e===_.OfficeJsErrorCode_ooeNoCapability?(n=403,o.error.code=g.accessDenied):e===_.OfficeJsErrorCode_ooeActivityLimitReached&&(n=429,o.error.code=g.activityLimitReached),{statusCode:n,headers:{},body:JSON.stringify(o)}},_.buildRequestMessageSafeArray=function(e,t,n,o,r,i){var a=[];if(r)for(var s in r)a.push(s),a.push(r[s]);return[e,n,o,a,i,0,t,"","","","","",""]},_.getResponseBody=function(e){return _.getResponseBodyFromSafeArray(e.value.data)},_.getResponseHeaders=function(e){return _.getResponseHeadersFromSafeArray(e.value.data)},_.getResponseBodyFromSafeArray=function(e){var t=e[2];return"string"==typeof t?t:t.join("")},_.getResponseHeadersFromSafeArray=function(e){var t=e[1];if(!t)return null;for(var n={},o=0;o<t.length-1;o+=2)n[t[o]]=t[o+1];return n},_.getResponseStatusCode=function(e){return _.getResponseStatusCodeFromSafeArray(e.value.data)},_.getResponseStatusCodeFromSafeArray=function(e){return e[0]},_.OfficeJsErrorCode_ooeInvalidOrTimedOutSession=5012,_.OfficeJsErrorCode_ooeActivityLimitReached=5102,_.OfficeJsErrorCode_ooeNoCapability=7e3,_.OfficeJsErrorCode_ooeRequestPayloadSizeLimitExceeded=5103,_.OfficeJsErrorCode_ooeResponsePayloadSizeLimitExceeded=5104,_.OfficeJsErrorCode_ooeWriteNotSupportedWhenModalDialogOpen=5016,_.OfficeJsErrorCode_ooeInvalidSheetName=1014,_.OfficeJsErrorCode_ooeUndoNotSupported=5017,_);function _(){}y.RichApiMessageUtility=O,(C=m=y._Internal||(y._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 C.Error("No Promise implementation found")};var A=(S.log=function(e){S._logEnabled&&"undefined"!=typeof console&&console.log&&console.log(e)},S.checkArgumentNull=function(e,t){if(S.isNullOrUndefined(e))throw m.RuntimeError._createInvalidArgError({argumentName:t})},S.isNullOrUndefined=function(e){return null==e},S.isUndefined=function(e){return void 0===e},S.isNullOrEmptyString=function(e){return null==e||0==e.length},S.isPlainJsonObject=function(e){if(S.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},S.trim=function(e){return e.replace(new RegExp("^\\s+|\\s+$","g"),"")},S.caseInsensitiveCompareString=function(e,t){return S.isNullOrUndefined(e)?S.isNullOrUndefined(t):!S.isNullOrUndefined(t)&&e.toUpperCase()==t.toUpperCase()},S.isReadonlyRestRequest=function(e){return S.caseInsensitiveCompareString(e,"GET")},S._getResourceString=function(e,t){var n;if("undefined"!=typeof window&&window.Strings&&window.Strings.OfficeOM){var o="L_"+e,r=window.Strings.OfficeOM[o];r&&(n=r)}return n=(n=n||S.s_resourceStringValues[e])||e,S.isNullOrUndefined(t)||(n=Array.isArray(t)?S._formatString(n,t):n.replace("{0}",t)),n},S._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 m.RuntimeError._createInvalidArgError({argumentName:"format"})})},Object.defineProperty(S,"Promise",{get:function(){return m.getPromiseType()},enumerable:!0,configurable:!0}),S.createPromise=function(e){return new S.Promise(e)},S._createPromiseFromResult=function(n){return S.createPromise(function(e,t){e(n)})},S._createPromiseFromException=function(n){return S.createPromise(function(e,t){t(n)})},S._createTimeoutPromise=function(n){return S.createPromise(function(e,t){setTimeout(function(){e(null)},n)})},S._createInvalidArgError=function(e){return m.RuntimeError._createInvalidArgError(e)},S._isLocalDocumentUrl=function(e){return 0<S._getLocalDocumentUrlPrefixLength(e)},S._getLocalDocumentUrlPrefixLength=function(e){for(var t=["http://document.localhost","https://document.localhost","//document.localhost"],n=e.toLowerCase().trim(),o=0;o<t.length;o++){if(n===t[o])return t[o].length;if(n.substr(0,t[o].length+1)===t[o]+"/")return t[o].length+1}return 0},S._validateLocalDocumentRequest=function(e){var t=S._getLocalDocumentUrlPrefixLength(e.url);if(t<=0)throw m.RuntimeError._createInvalidArgError({argumentName:"request"});var n=e.url.substr(t),o=n.toLowerCase();return"_api"===o?n="":"_api/"===o.substr(0,"_api/".length)&&(n=n.substr("_api/".length)),{method:e.method,url:n,headers:e.headers,body:e.body}},S._parseRequestFlagsAndCustomDataFromQueryStringIfAny=function(e){for(var t={flags:-1,customData:""},n=e.split("&"),o=0;o<n.length;o++){var r=n[o].split("=");if(r[0].toLowerCase()===p.flags){var i=parseInt(r[1]);i&=65535,t.flags=i}else r[0].toLowerCase()===p.customData&&(t.customData=decodeURIComponent(r[1]))}return t},S._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},S._parseResponseBody=function(e){if("string"!=typeof e.body)return e.body;var t=S.trim(e.body);return JSON.parse(t)},S._buildRequestMessageSafeArray=function(e){var t=0;S.isReadonlyRestRequest(e.method)||(t=1);var n="";if(e.url.substr(0,p.processQuery.length).toLowerCase()===p.processQuery.toLowerCase()){var o=e.url.indexOf("?");if(0<o){var r=e.url.substr(o+1),i=S._parseRequestFlagsAndCustomDataFromQueryStringIfAny(r);0<=i.flags&&(t=i.flags),n=i.customData}}return O.buildRequestMessageSafeArray(n,t,e.method,e.url,e.headers,S._getRequestBodyText(e))},S._parseHttpResponseHeaders=function(e){var t={};if(!S.isNullOrEmptyString(e))for(var n=new RegExp("\r?\n"),o=e.split(n),r=0;r<o.length;r++){var i=o[r];if(null!=i){var a=i.indexOf(":");if(0<a){var s=i.substr(0,a),c=i.substr(a+1);s=S.trim(s),c=S.trim(c),t[s.toUpperCase()]=c}}}return t},S._parseErrorResponse=function(e){var t=S._parseErrorResponseBody(e),n=e.statusCode.toString();if(S.isNullOrUndefined(t)||"object"!=typeof t||!t.error)return S._createDefaultErrorResponse(n);var o=t.error,r=o.innerError;return r&&r.code?S._createErrorResponse(r.code,n,r.message):o.code?S._createErrorResponse(o.code,n,o.message):S._createDefaultErrorResponse(n)},S._parseErrorResponseBody=function(e){if(S.isPlainJsonObject(e.body))return e.body;if(!S.isNullOrEmptyString(e.body)){var t=S.trim(e.body);try{return JSON.parse(t)}catch(e){S.log("Error when parse "+t)}}},S._createDefaultErrorResponse=function(e){return{errorCode:g.connectionFailure,errorMessage:S._getResourceString(h.connectionFailureWithStatus,e)}},S._createErrorResponse=function(e,t,n){return{errorCode:e,errorMessage:S._getResourceString(h.connectionFailureWithDetails,[t,e,n])}},S._copyHeaders=function(e,t){if(e&&t)for(var n in e)t[n]=e[n]},S.addResourceStringValues=function(e){for(var t in e)S.s_resourceStringValues[t]=e[t]},S._logEnabled=!1,S.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.'},S);function S(){}y.CoreUtility=A;var P=(w.setMock=function(e){w.s_isMock=e},w.isMock=function(){return w.s_isMock},w._setCurrentTestName=function(e){w.s_currentTestName=e,w.s_currentTestSequenceId=0},w._getCurrentTestNameWithSequenceId=function(){return w.s_currentTestName?w.s_currentTestName+"."+ ++w.s_currentTestSequenceId:null},w);function w(){}y.TestUtility=P,y._internalConfig={showDisposeInfoInDebugInfo:!1,showInternalApiInDebugInfo:!1,enableEarlyDispose:!0,alwaysPolyfillClientObjectUpdateMethod:!1,alwaysPolyfillClientObjectRetrieveMethod:!1,enableConcurrentFlag:!0,enableUndoableFlag:!0,appendTypeNameToObjectPathInfo:!1,enablePreviewExecution:!1},y.config={extendedErrorLogging:!1};var T=(E.createSetPropertyAction=function(e,t,n,o,r){Y.validateObjectPath(t);var i={Id:e._nextId(),ActionType:4,Name:n,ObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}},a=[o],s=Y.setMethodArguments(e,i.ArgumentInfo,a);Y.validateReferencedObjectPaths(s);var c=new x(i,0,r);if(c.referencedObjectPath=t._objectPath,c.referencedArgumentObjectPaths=s,y._internalConfig.enablePreviewExecution&&0!=(16&r)){var l={Id:e._nextId(),ActionType:4,Name:n,ObjectId:"",ObjectType:"",Arguments:[o]};t._addPreviewExecutionAction(l)}return t._addAction(c)},E.createQueryAction=function(e,t,n,o){Y.validateObjectPath(t);var r={Id:e._nextId(),ActionType:2,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,QueryInfo:n},i=new x(r,1,4);return i.referencedObjectPath=t._objectPath,t._addAction(i,o)},E.createQueryAsJsonAction=function(e,t,n,o){Y.validateObjectPath(t);var r={Id:e._nextId(),ActionType:7,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,QueryInfo:n},i=new x(r,1,4);return i.referencedObjectPath=t._objectPath,t._addAction(i,o)},E.createUpdateAction=function(e,t,n){Y.validateObjectPath(t);var o={Id:e._nextId(),ActionType:9,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,ObjectState:n},r=new x(o,0,0);return r.referencedObjectPath=t._objectPath,t._addAction(r)},E);function E(){}y.CommonActionFactory=T;var D=(Object.defineProperty(I.prototype,"_objectPath",{get:function(){return this.m_objectPath},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"_context",{get:function(){return this.m_contextBase},enumerable:!0,configurable:!0}),I.prototype._addAction=function(n,o){var r=this;return void 0===o&&(o=null),A.createPromise(function(e,t){r._context._addServiceApiAction(n,o,e,t)})},I.prototype._addPreviewExecutionAction=function(e){},I.prototype._retrieve=function(e,t){var n=y._internalConfig.alwaysPolyfillClientObjectRetrieveMethod;n=n||!Y.isSetSupported("RichApiRuntime","1.1");var o=M._parseQueryOption(e);return n?T.createQueryAction(this._context,this,o,t):T.createQueryAsJsonAction(this._context,this,o,t)},I.prototype._recursivelyUpdate=function(e){var t=y._internalConfig.alwaysPolyfillClientObjectUpdateMethod;t=t||!Y.isSetSupported("RichApiRuntime","1.2");try{var n=this[K.scalarPropertyNames];n=n||[];var o=this[K.scalarPropertyUpdateable];if(!o){o=[];for(var r=0;r<n.length;r++)o.push(!1)}var i=this[K.navigationPropertyNames];i=i||[];var a={},s={},c=0;for(var l in e){var u=n.indexOf(l);if(0<=u){if(!o[u])throw new m.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:A._getResourceString(ee.attemptingToSetReadOnlyProperty,l),debugInfo:{errorLocation:l}});a[l]=e[l],++c}else{if(!(0<=i.indexOf(l)))throw new m.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:A._getResourceString(ee.propertyDoesNotExist,l),debugInfo:{errorLocation:l}});s[l]=e[l]}}if(0<c)if(t)for(r=0;r<n.length;r++){var d=a[l=n[r]];Y.isUndefined(d)||T.createSetPropertyAction(this._context,this,l,d)}else T.createUpdateAction(this._context,this,a);for(var l in s){var f=this[l],p=s[l];f._recursivelyUpdate(p)}}catch(e){throw new m.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:A._getResourceString(h.invalidArgument,"properties"),debugInfo:{errorLocation:this._className+".update"},innerError:e})}},I);function I(e,t){this.m_contextBase=e,this.m_objectPath=t}y.ClientObjectBase=D;var x=(Object.defineProperty(F.prototype,"actionInfo",{get:function(){return this.m_actionInfo},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"operationType",{get:function(){return this.m_operationType},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"flags",{get:function(){return this.m_flags},enumerable:!0,configurable:!0}),F);function F(e,t,n){this.m_actionInfo=e,this.m_operationType=t,this.m_flags=n}y.Action=x;var R=(Object.defineProperty(N.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(N.prototype,"parent",{get:function(){var e=this.m_parentObjectPath;if(e)return e},enumerable:!0,configurable:!0}),Object.defineProperty(N.prototype,"parentId",{get:function(){return this.parent?this.parent.id:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(N.prototype,"objectPathInfo",{get:function(){return this.m_objectPathInfo},enumerable:!0,configurable:!0}),Object.defineProperty(N.prototype,"operationType",{get:function(){return this.m_operationType},enumerable:!0,configurable:!0}),Object.defineProperty(N.prototype,"flags",{get:function(){return this.m_flags},enumerable:!0,configurable:!0}),Object.defineProperty(N.prototype,"isCollection",{get:function(){return this.m_isCollection},enumerable:!0,configurable:!0}),Object.defineProperty(N.prototype,"isInvalidAfterRequest",{get:function(){return this.m_isInvalidAfterRequest},enumerable:!0,configurable:!0}),Object.defineProperty(N.prototype,"parentObjectPath",{get:function(){return this.m_parentObjectPath},enumerable:!0,configurable:!0}),Object.defineProperty(N.prototype,"argumentObjectPaths",{get:function(){return this.m_argumentObjectPaths},set:function(e){this.m_argumentObjectPaths=e},enumerable:!0,configurable:!0}),Object.defineProperty(N.prototype,"isValid",{get:function(){return this.m_isValid},set:function(e){!(this.m_isValid=e)&&6===this.m_objectPathInfo.ObjectPathType&&this.m_savedObjectPathInfo&&(N.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(N.prototype,"originalObjectPathInfo",{get:function(){return this.m_originalObjectPathInfo},enumerable:!0,configurable:!0}),Object.defineProperty(N.prototype,"getByIdMethodName",{get:function(){return this.m_getByIdMethodName},set:function(e){this.m_getByIdMethodName=e},enumerable:!0,configurable:!0}),N.prototype._updateAsNullObject=function(){this.resetForUpdateUsingObjectData(),this.m_objectPathInfo.ObjectPathType=7,this.m_objectPathInfo.Name="",this.m_parentObjectPath=null},N.prototype.saveOriginalObjectPathInfo=function(){y.config.extendedErrorLogging&&!this.m_originalObjectPathInfo&&(this.m_originalObjectPathInfo={},N.copyObjectPathInfo(this.m_objectPathInfo,this.m_originalObjectPathInfo))},N.prototype.updateUsingObjectData=function(e,t){var n=e[K.referenceId];if(!A.isNullOrEmptyString(n)){if(!this.m_savedObjectPathInfo&&!this.isInvalidAfterRequest&&N.isRestorableObjectPath(this.m_objectPathInfo.ObjectPathType)){var o={};N.copyObjectPathInfo(this.m_objectPathInfo,o),this.m_savedObjectPathInfo={pathInfo:o,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 r=t[K.collectionPropertyPath];if(!A.isNullOrEmptyString(r)&&t.context){var i=Y.tryGetObjectIdFromLoadOrRetrieveResult(e);if(!A.isNullOrUndefined(i)){for(var a=r.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=[i])}}}var l=this.parentObjectPath&&this.parentObjectPath.isCollection,u=this.getByIdMethodName;if((l||!A.isNullOrEmptyString(u))&&(i=Y.tryGetObjectIdFromLoadOrRetrieveResult(e),!A.isNullOrUndefined(i)))return this.saveOriginalObjectPathInfo(),this.resetForUpdateUsingObjectData(),A.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=[i])},N.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},N.isRestorableObjectPath=function(e){return 1===e||5===e||3===e||4===e},N.copyObjectPathInfo=function(e,t){t.Id=e.Id,t.ArgumentInfo=e.ArgumentInfo,t.Name=e.Name,t.ObjectPathType=e.ObjectPathType,t.ParentObjectPathId=e.ParentObjectPathId},N);function N(e,t,n,o,r,i){this.m_objectPathInfo=e,this.m_parentObjectPath=t,this.m_isCollection=n,this.m_isInvalidAfterRequest=o,this.m_isValid=!0,this.m_operationType=r,this.m_flags=i}y.ObjectPath=R;var M=(k.prototype._nextId=function(){return++this.m_nextId},k.prototype._addServiceApiAction=function(e,t,n,o){this.m_serviceApiQueue||(this.m_serviceApiQueue=new q(this)),this.m_serviceApiQueue.add(e,t,n,o)},k._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 o=e;if(k.isLoadOption(o)){if("string"==typeof o.select)t.Select=Y._parseSelectExpand(o.select);else if(Array.isArray(o.select))t.Select=o.select;else if(!Y.isNullOrUndefined(o.select))throw m.RuntimeError._createInvalidArgError({argumentName:"option.select"});if("string"==typeof o.expand)t.Expand=Y._parseSelectExpand(o.expand);else if(Array.isArray(o.expand))t.Expand=o.expand;else if(!Y.isNullOrUndefined(o.expand))throw m.RuntimeError._createInvalidArgError({argumentName:"option.expand"});if("number"==typeof o.top)t.Top=o.top;else if(!Y.isNullOrUndefined(o.top))throw m.RuntimeError._createInvalidArgError({argumentName:"option.top"});if("number"==typeof o.skip)t.Skip=o.skip;else if(!Y.isNullOrUndefined(o.skip))throw m.RuntimeError._createInvalidArgError({argumentName:"option.skip"})}else t=k.parseStrictLoadOption(e)}else if(!Y.isNullOrUndefined(e))throw m.RuntimeError._createInvalidArgError({argumentName:"option"});return t},k.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},k.parseStrictLoadOption=function(e){var t={Select:[]};return k.parseStrictLoadOptionHelper(t,"","option",e),t},k.combineQueryPath=function(e,t,n){return 0===e.length?t:e+n+t},k.parseStrictLoadOptionHelper=function(e,t,n,o){for(var r in o){var i=o[r];if("$all"===r){if("boolean"!=typeof i)throw m.RuntimeError._createInvalidArgError({argumentName:k.combineQueryPath(n,r,".")});i&&e.Select.push(k.combineQueryPath(t,"*","/"))}else if("$top"===r){if("number"!=typeof i||0<t.length)throw m.RuntimeError._createInvalidArgError({argumentName:k.combineQueryPath(n,r,".")});e.Top=i}else if("$skip"===r){if("number"!=typeof i||0<t.length)throw m.RuntimeError._createInvalidArgError({argumentName:k.combineQueryPath(n,r,".")});e.Skip=i}else if("boolean"==typeof i)i&&e.Select.push(k.combineQueryPath(t,r,"/"));else{if("object"!=typeof i)throw m.RuntimeError._createInvalidArgError({argumentName:k.combineQueryPath(n,r,".")});k.parseStrictLoadOptionHelper(e,k.combineQueryPath(t,r,"/"),k.combineQueryPath(n,r,"."),i)}}},k);function k(){this.m_nextId=0}y.ClientRequestContextBase=M;var H=(L.prototype._handleResult=function(e){A.isNullOrUndefined(e)?this.m_objectPath._updateAsNullObject():this.m_objectPath.updateUsingObjectData(e,null)},L);function L(e){this.m_objectPath=e}var U=(j.prototype.addAction=function(e){this.m_actions.push(e),1==e.actionInfo.ActionType&&(this.m_instantiatedObjectPaths[e.actionInfo.ObjectPathId]=e)},j.prototype.addPreviewExecutionAction=function(e){this.m_previewExecutionActions.push(e)},Object.defineProperty(j.prototype,"hasActions",{get:function(){return 0<this.m_actions.length},enumerable:!0,configurable:!0}),j.prototype._getLastAction=function(){return this.m_actions[this.m_actions.length-1]},j.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 x(t,1,4);n.referencedObjectPath=e,this.addReferencedObjectPath(e),this.addAction(n);var o=new H(e);this.addActionResultHandler(n,o)}}},j.prototype.ensureInstantiateObjectPaths=function(e){if(e)for(var t=0;t<e.length;t++)this.ensureInstantiateObjectPath(e[t])},j.prototype.addReferencedObjectPath=function(e){if(e&&!this.m_referencedObjectPaths[e.objectPathInfo.Id]){if(!e.isValid)throw new m.RuntimeError({code:g.invalidObjectPath,httpStatusCode:400,message:A._getResourceString(h.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}},j.prototype.addReferencedObjectPaths=function(e){if(e)for(var t=0;t<e.length;t++)this.addReferencedObjectPath(e[t])},j.prototype.addActionResultHandler=function(e,t){this.m_actionResultHandler[e.actionInfo.Id]=t},j.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},j.prototype.finallyNormalizeFlags=function(e){return 0==(1&e)&&(e&=-17,e&=-257),y._internalConfig.enableConcurrentFlag||(e&=-5),y._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},j.prototype.buildRequestMessageBodyAndRequestFlags=function(){y._internalConfig.enableEarlyDispose&&j._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 o=[],r=!1,i=0;i<this.m_actions.length;i++){var a=this.m_actions[i];3===a.actionInfo.ActionType&&a.actionInfo.Name===K.keepReference&&(r=!0),e=this.aggregrateRequestFlags(e,a.operationType,a.flags),o.push(a.actionInfo)}e=this.finallyNormalizeFlags(e);var s={AutoKeepReference:this.m_contextBase._autoCleanup&&r,Actions:o,ObjectPaths:t};return 0<this.m_previewExecutionActions.length&&(s.PreviewExecutionActions=this.m_previewExecutionActions,e|=4096),{body:s,flags:e}},j.prototype.processResponse=function(e){if(e)for(var t=0;t<e.length;t++){var n=e[t],o=this.m_actionResultHandler[n.ActionId];o&&o._handleResult(n.Value)}},j.prototype.invalidatePendingInvalidObjectPaths=function(){for(var e in this.m_referencedObjectPaths)this.m_referencedObjectPaths[e].isInvalidAfterRequest&&(this.m_referencedObjectPaths[e].isValid=!1)},j.prototype._addPreSyncPromise=function(e){this.m_preSyncPromises.push(e)},Object.defineProperty(j.prototype,"_preSyncPromises",{get:function(){return this.m_preSyncPromises},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"_actions",{get:function(){return this.m_actions},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"_objectPaths",{get:function(){return this.m_referencedObjectPaths},enumerable:!0,configurable:!0}),j.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===K.keepReference){this.m_actions.splice(t,1);break}}},j._updateLastUsedActionIdOfObjectPathId=function(e,t,n){for(;t;){if(e[t.objectPathInfo.Id])return;e[t.objectPathInfo.Id]=n;var o=t.argumentObjectPaths;if(o)for(var r=o.length,i=0;i<r;i++)j._updateLastUsedActionIdOfObjectPathId(e,o[i],n);t=t.parentObjectPath}},j._calculateLastUsedObjectPathIds=function(e){for(var t={},n=e.length,o=n-1;0<=o;--o){var r=(d=e[o]).actionInfo.Id;d.referencedObjectPath&&j._updateLastUsedActionIdOfObjectPathId(t,d.referencedObjectPath,r);var i=d.referencedArgumentObjectPaths;if(i)for(var a=i.length,s=0;s<a;s++)j._updateLastUsedActionIdOfObjectPathId(t,i[s],r)}var c={};for(var l in t){var u=c[r=t[l]];u||(u=[],c[r]=u),u.push(parseInt(l))}for(o=0;o<n;o++){var d,f=c[(d=e[o]).actionInfo.Id];f&&0<f.length?d.actionInfo.L=f:d.actionInfo.L&&delete d.actionInfo.L}},j);function j(e){this.m_contextBase=e,this.m_actions=[],this.m_actionResultHandler={},this.m_referencedObjectPaths={},this.m_instantiatedObjectPaths={},this.m_preSyncPromises=[],this.m_previewExecutionActions=[]}y.ClientRequestBase=U;var B=(Object.defineProperty(W.prototype,"value",{get:function(){if(!this.m_isLoaded)throw new m.RuntimeError({code:g.valueNotLoaded,httpStatusCode:400,message:A._getResourceString(h.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}y.ClientResult=B;var q=(G.prototype.add=function(e,t,n,o){var r=this;this.m_actions.push({action:e,resultHandler:t,resolve:n,reject:o}),1===this.m_actions.length&&setTimeout(function(){return r.processActions()},0)},G.prototype.processActions=function(){var t=this;if(0!==this.m_actions.length){var n=this.m_actions;this.m_actions=[];for(var o=new U(this.m_context),e=0;e<n.length;e++){var r=n[e];o.ensureInstantiateObjectPath(r.action.referencedObjectPath),o.ensureInstantiateObjectPaths(r.action.referencedArgumentObjectPaths),o.addAction(r.action),o.addReferencedObjectPath(r.action.referencedObjectPath),o.addReferencedObjectPaths(r.action.referencedArgumentObjectPaths)}var i=o.buildRequestMessageBodyAndRequestFlags(),a=i.body,s=i.flags,c={Url:p.localDocumentApiPrefix,Headers:null,Body:a};A.log("Request:"),A.log(JSON.stringify(a)),(new V).executeAsync(this.m_context._customData,s,c).then(function(e){t.processResponse(o,n,e)}).catch(function(e){for(var t=0;t<n.length;t++)n[t].reject(e)})}},G.prototype.processResponse=function(e,t,n){var o=this.getErrorFromResponse(n),r=null;n.Body.Results?r=n.Body.Results:n.Body.ProcessedResults&&n.Body.ProcessedResults.Results&&(r=n.Body.ProcessedResults.Results),r=r||[],this.processActionResults(e,t,r,o)},G.prototype.getErrorFromResponse=function(e){return A.isNullOrEmptyString(e.ErrorCode)?e.Body&&e.Body.Error?new m.RuntimeError({code:e.Body.Error.Code,httpStatusCode:e.Body.Error.HttpStatusCode,message:e.Body.Error.Message}):null:new m.RuntimeError({code:e.ErrorCode,httpStatusCode:e.HttpStatusCode,message:e.ErrorMessage})},G.prototype.processActionResults=function(e,t,n,o){e.processResponse(n);for(var r=0;r<t.length;r++){for(var i=t[r],a=i.action.actionInfo.Id,s=!1,c=0;c<n.length;c++)if(a==n[c].ActionId){var l=n[c].Value;i.resultHandler&&(i.resultHandler._handleResult(l),l=i.resultHandler.value),i.resolve&&i.resolve(l),s=!0;break}!s&&i.reject&&(o?i.reject(o):i.reject("No response for the action."))}},G);function G(e){this.m_context=e,this.m_actions=[]}var V=(z.prototype.getRequestUrl=function(e,t,n){void 0===n&&(n=a.graph.toString());var o=p.flags+"="+t.toString();switch(n){case a.graph.toString():"/"!=e.charAt(e.length-1)&&(e+="/"),e=(e+=p.processQuery)+"?"+o;break;case a.wfe.toString():e=(e=e+"&"+o)+"&wdRestPart=_api/"+p.processQuery}return e},z.prototype.executeAsync=function(e,t,n){var o=n.Headers?n.Headers[K.remoteEndpointTypeHeaderKey]:a.graph.toString(),r={method:"POST",url:this.getRequestUrl(n.Url,t,o),headers:{},body:n.Body};if(r.headers[p.sourceLibHeader]=z.SourceLibHeaderValue,r.headers["CONTENT-TYPE"]="application/json",n.Headers)for(var i in n.Headers)r.headers[i]=n.Headers[i];return(A._isLocalDocumentUrl(r.url)?s.sendLocalDocumentRequest:s.sendRequest)(r).then(function(e){var t;if(200===e.statusCode)t={HttpStatusCode:e.statusCode,ErrorCode:null,ErrorMessage:null,Headers:e.headers,Body:A._parseResponseBody(e)};else{A.log("Error Response:"+e.body);var n=A._parseErrorResponse(e);t={HttpStatusCode:e.statusCode,ErrorCode:n.errorCode,ErrorMessage:n.errorMessage,Headers:e.headers,Body:null,RawErrorResponseBody:A._parseErrorResponseBody(e)}}return t})},z.SourceLibHeaderValue="officejs-rest",z);function z(){}y.HttpRequestExecutor=V;var J,K=(__extends(X,J=p),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!==J&&J.apply(this,arguments)||this}y.CommonConstants=K;var Q,Y=(__extends($,Q=A),$.validateObjectPath=function(e){for(var t=e._objectPath;t;){if(!t.isValid)throw new m.RuntimeError({code:g.invalidObjectPath,httpStatusCode:400,message:A._getResourceString(h.invalidObjectPath,$.getObjectPathExpression(t)),debugInfo:{errorLocation:$.getObjectPathExpression(t)}});t=t.parentObjectPath}},$.validateReferencedObjectPaths=function(e){if(e)for(var t=0;t<e.length;t++)for(var n=e[t];n;){if(!n.isValid)throw new m.RuntimeError({code:g.invalidObjectPath,httpStatusCode:400,message:A._getResourceString(h.invalidObjectPath,$.getObjectPathExpression(n))});n=n.parentObjectPath}},$._toCamelLowerCase=function(e){if(A.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()},$.adjustToDateTime=function(e){if(A.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]=$.adjustToDateTime(t[n]);return t}throw A._createInvalidArgError({argumentName:"date"})},$.tryGetObjectIdFromLoadOrRetrieveResult=function(e){var t=e[K.id];return A.isNullOrUndefined(t)&&(t=e[K.idLowerCase]),A.isNullOrUndefined(t)&&(t=e[K.idPrivate]),t},$.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=$.normalizeName(e.objectPathInfo.Name)+"()"+(0<t.length?".":"")+t;break;case 4:t=$.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},$.setMethodArguments=function(e,t,n){if(A.isNullOrUndefined(n))return null;var o=new Array,r=new Array,i=$.collectObjectPathInfos(e,n,o,r);return t.Arguments=n,i&&(t.ReferencedObjectPathIds=r),o},$.validateContext=function(e,t){if(e&&t&&t._context!==e)throw new m.RuntimeError({code:g.invalidRequestContext,httpStatusCode:400,message:A._getResourceString(h.invalidRequestContext)})},$.isSetSupported=function(e,t){return"function"==typeof $.isSetSupportedOverride?$.isSetSupportedOverride(e,t):!("undefined"!=typeof window&&window.Office&&window.Office.context&&window.Office.context.requirements)||window.Office.context.requirements.isSetSupported(e,t)},$.throwIfApiNotSupported=function(e,t,n,o){if($._doApiNotSupportedCheck&&!$.isSetSupported(t,n)){var r=A._getResourceString(h.apiNotFoundDetails,[e,t+" "+n,o]);throw new m.RuntimeError({code:g.apiNotFound,httpStatusCode:404,message:r,debugInfo:{errorLocation:e}})}},$.calculateApiFlags=function(e,t,n){var o=window&&window.location&&window.location.href&&-1!==window.location.href.indexOf("eed0a086-3498-4f91-a377-1e0265ecc0cc");return("function"==typeof $.isSetSupportedOverride?$.isSetSupportedOverride(t,n):!o&&$.isSetSupported(t,n))||(e&=-3),e},$._parseSelectExpand=function(e){var t=[];if(!A.isNullOrEmptyString(e))for(var n=e.split(","),o=0;o<n.length;o++){var r=n[o];0<(r=i(r.trim())).length&&t.push(r)}return t;function i(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"),"/"))}},$.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 o in t={},e){var r=e[o];if(o===K.items){(t={})[K.itemsLowerCase]=this.changePropertyNameToCamelLowerCase(r);break}t[$._toCamelLowerCase(o)]=this.changePropertyNameToCamelLowerCase(r)}return t},$.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 o in t={},e)if(95!==o.charCodeAt(0)){var r=e[o];"object"==typeof r&&null!==r&&Array.isArray(r.items)&&(r=r.items),t[o]=this.purifyJson(r)}return t},$.collectObjectPathInfos=function(e,t,n,o){for(var r=!1,i=0;i<t.length;i++)if(t[i]instanceof D){var a=t[i];$.validateContext(e,a),t[i]=a._objectPath.objectPathInfo.Id,o.push(a._objectPath.objectPathInfo.Id),n.push(a._objectPath),r=!0}else if(Array.isArray(t[i])){var s=new Array;$.collectObjectPathInfos(e,t[i],n,s)?(o.push(s),r=!0):o.push(0)}else A.isPlainJsonObject(t[i])?(o.push(0),$.replaceClientObjectPropertiesWithObjectPathIds(t[i],n)):o.push(0);return r},$.replaceClientObjectPropertiesWithObjectPathIds=function(e,t){var n,o;for(var r in e){var i=e[r];if(i instanceof D)t.push(i._objectPath),e[r]=((n={})[K.objectPathIdPrivate]=i._objectPath.objectPathInfo.Id,n);else if(Array.isArray(i))for(var a=0;a<i.length;a++)if(i[a]instanceof D){var s=i[a];t.push(s._objectPath),i[a]=((o={})[K.objectPathIdPrivate]=s._objectPath.objectPathInfo.Id,o)}else A.isPlainJsonObject(i[a])&&$.replaceClientObjectPropertiesWithObjectPathIds(i[a],t);else A.isPlainJsonObject(i)&&$.replaceClientObjectPropertiesWithObjectPathIds(i,t)}},$.normalizeName=function(e){return e.substr(0,1).toLowerCase()+e.substr(1)},$._doApiNotSupportedCheck=!1,$);function $(){return null!==Q&&Q.apply(this,arguments)||this}y.CommonUtility=Y;var Z,ee=(__extends(te,Z=h),te.propertyDoesNotExist="PropertyDoesNotExist",te.attemptingToSetReadOnlyProperty="AttemptingToSetReadOnlyProperty",te);function te(){return null!==Z&&Z.apply(this,arguments)||this}y.CommonResourceStrings=ee;var ne,oe=(__extends(re,ne=g),re.propertyNotLoaded="PropertyNotLoaded",re.runMustReturnPromise="RunMustReturnPromise",re.cannotRegisterEvent="CannotRegisterEvent",re.invalidOrTimedOutSession="InvalidOrTimedOutSession",re.cannotUpdateReadOnlyProperty="CannotUpdateReadOnlyProperty",re);function re(){return null!==ne&&ne.apply(this,arguments)||this}y.ErrorCodes=oe;var ie=(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,o,r,i){ot.validateObjectPath(t);var a={Id:e._nextId(),ActionType:3,Name:n,ObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}},s=ot.setMethodArguments(e,a.ArgumentInfo,r);ot.validateReferencedObjectPaths(s);var c=ot._fixupApiFlags(i),l=new x(a,o,c);if(l.referencedObjectPath=t._objectPath,l.referencedArgumentObjectPaths=s,t._addAction(l),y._internalConfig.enablePreviewExecution&&0!=(16&c)){var u={Id:e._nextId(),ActionType:3,Name:n,Arguments:r,ObjectId:"",ObjectType:""};t._addPreviewExecutionAction(u)}return l},le.createRecursiveQueryAction=function(e,t,n){ot.validateObjectPath(t);var o={Id:e._nextId(),ActionType:6,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,RecursiveQueryInfo:n},r=new x(o,1,4);return r.referencedObjectPath=t._objectPath,t._addAction(r),r},le.createEnsureUnchangedAction=function(e,t,n){ot.validateObjectPath(t);var o={Id:e._nextId(),ActionType:8,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,ObjectState:n},r=new x(o,1,4);return r.referencedObjectPath=t._objectPath,t._addAction(r),r},le.createInstantiateAction=function(e,t){ot.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},o=new x(n,1,4);return o.referencedObjectPath=t._objectPath,t._addAction(o,new qe(t),!0),o},le.createTraceAction=function(e,t,n){var o={Id:e._nextId(),ActionType:5,Name:"Trace",ObjectPathId:0},r=new x(o,1,4);return e._pendingRequest.addAction(r),n&&e._pendingRequest.addTrace(o.Id,t),r},le.createTraceMarkerForCallback=function(e,t){var n=le.createTraceAction(e,null,!1);e._pendingRequest.addActionResultHandler(n,new ie(t))},le);function le(){return null!==se&&se.apply(this,arguments)||this}y.ActionFactory=ce;var ue,de=(__extends(fe,ue=D),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||!P.isMock())&&(ot.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||!P.isMock())&&(ot.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),A._createPromiseFromResult(null)},fe.prototype._addPreviewExecutionAction=function(e){if(!ot.isUndefined(this._className)){e.ObjectType=this._className;var t=ot._getPropertyValueWithoutCheckLoaded(this,Se.idLowerCase);ot.isUndefined(t)&&(t=ot._getPropertyValueWithoutCheckLoaded(this,Se.idPrivate)),ot.isUndefined(t)&&(t=ot._getPropertyValueWithoutCheckLoaded(this,Se.previewExecutionObjectId)),e.ObjectId=t,this.context._pendingRequest.addPreviewExecutionAction(e)}},fe.prototype._handleResult=function(e){this._isNull=ot.isNullOrUndefined(e),this.context.trackedObjects._autoTrackIfNecessaryWhenHandleObjectResultValue(this,e)},fe.prototype._handleIdResult=function(e){this._isNull=ot.isNullOrUndefined(e),ot.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,o,r){var i=e instanceof fe,a=e;if(i){if(Object.getPrototypeOf(this)!==Object.getPrototypeOf(e))throw m.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<o.length;c++)if(s=o[c],e.hasOwnProperty(s)&&void 0!==e[s]){var l=i?a[s]:e[s];this[s].set(l,t)}var u=!i;for(t&&!ot.isNullOrUndefined(u)&&(u=t.throwOnReadOnly),c=0;c<r.length;c++)if(s=r[c],e.hasOwnProperty(s)&&void 0!==e[s]&&u)throw new m.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:A._getResourceString(et.cannotApplyPropertyThroughSetMethod,s),debugInfo:{errorLocation:s}});for(s in e)if(n.indexOf(s)<0&&o.indexOf(s)<0){var d=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this),s);if(!d)throw new m.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:A._getResourceString(ee.propertyDoesNotExist,s),debugInfo:{errorLocation:s}});if(u&&!d.set)throw new m.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:A._getResourceString(ee.attemptingToSetReadOnlyProperty,s),debugInfo:{errorLocation:s}})}}catch(e){throw new m.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:A._getResourceString(h.invalidArgument,"properties"),debugInfo:{errorLocation:this._className+".set"},innerError:e})}},fe);function fe(e,t){var n=ue.call(this,e,t)||this;return ot.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)),y._internalConfig.appendTypeNameToObjectPathInfo&&n._objectPath.objectPathInfo&&n._className&&(n._objectPath.objectPathInfo.T=n._className)),n}y.ClientObject=de;var pe=(me.prototype.executeAsync=function(e,t,n){var o={url:p.processQuery,method:"POST",headers:n.Headers,body:n.Body},r="";n.Headers&&(r=n.Headers[Se.officeControlId]);var i={id:c.nextId(),type:1,flags:t,controlId:r,message:o,customData:e};return A.log(JSON.stringify(i)),this.m_session.sendMessageToHost(i).then(function(e){A.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:A._parseResponseBody(n)};else{A.log("Error Response:"+n.body);var o=A._parseErrorResponse(n);t={HttpStatusCode:n.statusCode,ErrorCode:o.errorCode,ErrorMessage:o.errorMessage,Headers:n.headers,Body:null}}return t})},me);function me(e){this.m_session=e}var ge,he=(__extends(ye,ge=v),ye.getInstanceIfHostBridgeInited=function(){return c.instance?(!A.isNullOrUndefined(ye.s_instance)&&ye.s_instance.m_bridge===c.instance||(ye.s_instance=new ye(c.instance)),ye.s_instance):null},ye.prototype._resolveRequestUrlAndHeaderInfo=function(){return A._createPromiseFromResult(null)},ye.prototype._createRequestExecutorOrNull=function(){return A.log("NativeBridgeSession::CreateRequestExecutor"),new pe(this)},ye.prototype.getEventRegistration=function(e){return Le.getGenericEventRegistration(e)},ye.prototype.sendMessageToHost=function(e){return this.m_bridge.sendMessageToHostAndExpectResponse(e)},ye);function ye(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(A.isNullOrEmptyString(t))Le.getGenericEventRegistration(t)._handleRichApiMessage(e.message);else{var n=Le.peekGenericEventRegistrationOrNull(t);n&&n._handleRichApiMessage(e.message),(n=Le.peekGenericEventRegistrationOrNull(""))&&n._handleRichApiMessage(e.message)}}}),t}y.HostBridgeSession=he;var ve,be=(__extends(Ce,ve=M),Object.defineProperty(Ce.prototype,"session",{get:function(){return this.m_session},enumerable:!0,configurable:!0}),Object.defineProperty(Ce.prototype,"eventRegistration",{get:function(){return this.m_session?this.m_session.getEventRegistration(this._controlId):m.officeJsEventRegistration},enumerable:!0,configurable:!0}),Object.defineProperty(Ce.prototype,"_url",{get:function(){return this.m_requestUrlAndHeaderInfo?this.m_requestUrlAndHeaderInfo.url:null},enumerable:!0,configurable:!0}),Object.defineProperty(Ce.prototype,"_pendingRequest",{get:function(){return null==this.m_pendingRequest&&(this.m_pendingRequest=new Te(this)),this.m_pendingRequest},enumerable:!0,configurable:!0}),Object.defineProperty(Ce.prototype,"_controlId",{get:function(){var e=this.m_customRequestHeaders[Se.officeControlId];return A.isNullOrUndefined(e)&&(e=""),e},enumerable:!0,configurable:!0}),Object.defineProperty(Ce.prototype,"debugInfo",{get:function(){return{pendingStatements:new Ye(this._rootObjectPropertyName,this._pendingRequest._objectPaths,this._pendingRequest._actions,y._internalConfig.showDisposeInfoInDebugInfo).process()}},enumerable:!0,configurable:!0}),Object.defineProperty(Ce.prototype,"trackedObjects",{get:function(){return this.m_trackedObjects||(this.m_trackedObjects=new Xe(this)),this.m_trackedObjects},enumerable:!0,configurable:!0}),Object.defineProperty(Ce.prototype,"requestHeaders",{get:function(){return this.m_customRequestHeaders},enumerable:!0,configurable:!0}),Object.defineProperty(Ce.prototype,"batchMode",{get:function(){return this.m_batchMode},enumerable:!0,configurable:!0}),Object.defineProperty(Ce.prototype,"getAdditionalHeaders",{set:function(e){this.m_getAdditionalHeaders=e},enumerable:!0,configurable:!0}),Ce.prototype.ensureInProgressBatchIfBatchMode=function(){if(1===this.m_batchMode&&!this.m_explicitBatchInProgress)throw ot.createRuntimeError(g.generalException,A._getResourceString(et.notInsideBatch),null)},Ce.prototype.load=function(e,t){ot.validateContext(this,e);var n=Ce._parseQueryOption(t);T.createQueryAction(this,e,n,e)},Ce.prototype.loadRecursive=function(e,t,n){if(!ot.isPlainJsonObject(t))throw m.RuntimeError._createInvalidArgError({argumentName:"options"});var o={};for(var r in t)o[r]=Ce._parseQueryOption(t[r]);var i=ce.createRecursiveQueryAction(this,e,{Queries:o,MaxDepth:n});this._pendingRequest.addActionResultHandler(i,e)},Ce.prototype.trace=function(e){ce.createTraceAction(this,e,!0)},Ce.prototype._processOfficeJsErrorResponse=function(e,t){},Ce.prototype.ensureRequestUrlAndHeaderInfo=function(){var n=this;return ot._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:p.localDocument,headers:{}}),ot.isNullOrEmptyString(n.m_requestUrlAndHeaderInfo.url)&&(n.m_requestUrlAndHeaderInfo.url=p.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)}})})},Ce.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)})})},Ce.prototype.syncPrivate=function(n){var t=this;if(P.isMock())return A._createPromiseFromResult(null);if(!n.hasActions)return this.processPendingEventHandlers(n);var e=n.buildRequestMessageBodyAndRequestFlags(),o=e.body,r=e.flags;this._requestFlagModifier&&(r|=this._requestFlagModifier),this._requestExecutor||(A._isLocalDocumentUrl(this.m_requestUrlAndHeaderInfo.url)?this._requestExecutor=new Je(this):this._requestExecutor=new V);var i=this._requestExecutor,a={};A._copyHeaders(this.m_requestUrlAndHeaderInfo.headers,a),A._copyHeaders(this.m_customRequestHeaders,a),delete this.m_customRequestHeaders[Se.officeScriptEventId],this.m_getAdditionalHeaders&&A._copyHeaders(this.m_getAdditionalHeaders(),a);var s=P._getCurrentTestNameWithSequenceId();s&&(a[p.testRequestNameHeader]=s);var c={Url:this.m_requestUrlAndHeaderInfo.url,Headers:a,Body:o};n.invalidatePendingInvalidObjectPaths();var l=null,u=null;return this._lastSyncStart="undefined"==typeof performance?Date.now():performance.now(),this._lastRequestFlags=r,i.executeAsync(this._customData,r,c).then(function(e){return t._lastSyncEnd="undefined"==typeof performance?Date.now():performance.now(),y.config.executePerfLogFunc&&y.config.executePerfLogFunc({syncStart:t._lastSyncStart,syncEnd:t._lastSyncEnd}),l=t.processRequestExecutorResponseMessage(n,e),t.processPendingEventHandlers(n).catch(function(e){A.log("Error in processPendingEventHandlers"),A.log(JSON.stringify(e)),u=e})}).then(function(){if(l)throw A.log("Throw error from response: "+JSON.stringify(l)),l;if(u){A.log("Throw error from ProcessEventHandler: "+JSON.stringify(u));var e=null;if(u instanceof m.RuntimeError)(e=u).traceMessages=n._responseTraceMessages;else{var t=null;t="string"==typeof u?u:u.message,ot.isNullOrEmptyString(t)&&(t=A._getResourceString(et.cannotRegisterEvent)),e=new m.RuntimeError({code:oe.cannotRegisterEvent,httpStatusCode:400,message:t,traceMessages:n._responseTraceMessages})}throw e}})},Ce.prototype.processRequestExecutorResponseMessage=function(e,t){t.Body&&t.Body.TraceIds&&e._setResponseTraceIds(t.Body.TraceIds);var n=e._responseTraceMessages,o=null;if(t.Body){if(t.Body.Error&&0<=t.Body.Error.ActionIndex){var r=new Ye(this._rootObjectPropertyName,e._objectPaths,e._actions,!1,!0),i=r.processForDebugStatementInfo(t.Body.Error.ActionIndex);o={statement:i.statement,surroundingStatements:i.surroundingStatements,fullStatements:["Please enable config.extendedErrorLogging to see full statements."]},y.config.extendedErrorLogging&&(r=new Ye(this._rootObjectPropertyName,e._objectPaths,e._actions,!1,!1),o.fullStatements=r.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(!ot.isNullOrEmptyString(t.ErrorCode))return new m.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 o&&(s.statement=o.statement,s.surroundingStatements=o.surroundingStatements,s.fullStatements=o.fullStatements),new m.RuntimeError({code:t.Body.Error.Code,httpStatusCode:t.Body.Error.HttpStatusCode,message:t.Body.Error.Message,traceMessages:n,debugInfo:s})}return null},Ce.prototype.processPendingEventHandlers=function(e){for(var t=ot._createPromiseFromResult(null),n=0;n<e._pendingProcessEventHandlers.length;n++){var o=e._pendingProcessEventHandlers[n];t=t.then(this.createProcessOneEventHandlersFunc(o,e))}return t},Ce.prototype.createProcessOneEventHandlersFunc=function(e,t){return function(){return e._processRegistration(t)}},Ce.prototype.processPreSyncPromises=function(e){for(var t=ot._createPromiseFromResult(null),n=0;n<e._preSyncPromises.length;n++){var o=e._preSyncPromises[n];t=t.then(this.createProcessOneProSyncFunc(o))}return t},Ce.prototype.createProcessOneProSyncFunc=function(e){return function(){return e}},Ce.prototype.sync=function(e){return P.isMock()?A._createPromiseFromResult(e):this.syncPrivateMain().then(function(){return e})},Ce.prototype.batch=function(e){var t=this;if(1!==this.m_batchMode)return A._createPromiseFromException(ot.createRuntimeError(g.generalException,null,null));if(this.m_explicitBatchInProgress)return A._createPromiseFromException(ot.createRuntimeError(g.generalException,A._getResourceString(et.pendingBatchInProgress),null));if(ot.isNullOrUndefined(e))return ot._createPromiseFromResult(null);this.m_explicitBatchInProgress=!0;var n,o,r=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=r,A._createPromiseFromException(e)}return("object"==typeof n&&n&&"function"==typeof n.then?ot._createPromiseFromResult(null).then(function(){return n}).then(function(e){return t.m_explicitBatchInProgress=!1,o=t.m_pendingRequest,t.m_pendingRequest=r,e}).catch(function(e){return t.m_explicitBatchInProgress=!1,o=t.m_pendingRequest,t.m_pendingRequest=r,A._createPromiseFromException(e)}):(this.m_explicitBatchInProgress=!1,o=this.m_pendingRequest,this.m_pendingRequest=r,ot._createPromiseFromResult(n))).then(function(e){return t.ensureRequestUrlAndHeaderInfo().then(function(){return t.syncPrivate(o)}).then(function(){return e})})},Ce._run=function(e,t,n,o,r,i){return void 0===n&&(n=3),void 0===o&&(o=5e3),Ce._runCommon("run",null,e,0,t,n,o,null,null,r,i)},Ce.isValidRequestInfo=function(e){return"string"==typeof e||Ce.isRequestUrlAndHeaderInfo(e)||Ce.isRequestUrlAndHeaderInfoResolver(e)},Ce.isRequestUrlAndHeaderInfo=function(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===Object.getPrototypeOf({})&&!ot.isNullOrUndefined(e.url)},Ce.isRequestUrlAndHeaderInfoResolver=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e._resolveRequestUrlAndHeaderInfo},Ce._runBatch=function(e,t,n,o,r,i,a,s,c){return void 0===i&&(i=3),void 0===a&&(a=5e3),Ce._runBatchCommon(0,e,t,n,i,a,o,r,s,c)},Ce._runExplicitBatch=function(e,t,n,o,r,i,a,s,c){return void 0===i&&(i=3),void 0===a&&(a=5e3),Ce._runBatchCommon(1,e,t,n,i,a,o,r,s,c)},Ce._runBatchCommon=function(e,t,n,o,r,i,a,s,c,l){var u,d;void 0===r&&(r=3),void 0===i&&(i=5e3);var f=null,p=null,m=null,g=0,h=null;if(0<n.length)if(Ce.isValidRequestInfo(n[0]))f=n[0],g=1;else if(ot.isPlainJsonObject(n[0])){if(null!=(f=(h=n[0]).session)&&!Ce.isValidRequestInfo(f))return Ce.createErrorPromise(t);p=h.getAdditionalHeaders,m=h.previousObjects,g=1}if(n.length==g+1)d=n[g+0];else{if(null!=h||n.length!=g+2)return Ce.createErrorPromise(t);m=n[g+0],d=n[g+1]}if(null!=m)if(m instanceof de)u=function(){return m.context};else if(m instanceof Ce)u=function(){return m};else{if(!Array.isArray(m))return Ce.createErrorPromise(t);var y=m;if(0==y.length)return Ce.createErrorPromise(t);for(var v=0;v<y.length;v++){if(!(y[v]instanceof de))return Ce.createErrorPromise(t);if(y[v].context!=y[0].context)return Ce.createErrorPromise(t,et.invalidRequestContext)}u=function(){return y[0].context}}else u=o;var b=null;a&&(b=function(e){return a(h||{},e)});var C=null;return s&&(C=function(e){return s(h||{},e)}),Ce._runCommon(t,f,u,e,d,r,i,b,C,c,l,p)},Ce.createErrorPromise=function(e,t){return void 0===t&&(t=h.invalidArgument),A._createPromiseFromException(ot.createRuntimeError(t,A._getResourceString(t),e))},Ce._runCommon=function(t,n,e,o,r,s,c,i,l,u,d,a){v._overrideSession&&(n=v._overrideSession);var f,p,m,g=A.createPromise(function(e,t){e()}),h=!1;return g.then(function(){if((f=e(n)).getAdditionalHeaders=a,f._autoCleanup)return new y.Promise(function(e,t){f._onRunFinishedNotifiers.push(function(){f._autoCleanup=!0,e()})});f._autoCleanup=!0}).then(function(){return"function"!=typeof r?Ce.createErrorPromise(t):(m=f.m_batchMode,f.m_batchMode=o,i&&i(f),e=r(1==o?f.batch.bind(f):f),!ot.isNullOrUndefined(e)&&"function"==typeof e.then||ot.throwError(et.runMustReturnPromise),e);var e}).then(function(e){return 1===o?e:f.sync(e)}).then(function(e){h=!0,p=e}).catch(function(e){p=e}).then(function(){var r=f.trackedObjects._retrieveAndClearAutoCleanupList();for(var e in f._autoCleanup=!1,f.m_batchMode=m,r)r[e]._objectPath.isValid=!1;var i=0;if(ot._synchronousCleanup||Ce.isRequestUrlAndHeaderInfoResolver(n))return a();function a(){i++;var e=f.m_pendingRequest,t=f.m_batchMode,n=new Te(f);f.m_pendingRequest=n,f.m_batchMode=0;try{for(var o in r)f.trackedObjects.remove(r[o]);l&&l(f)}finally{f.m_batchMode=t,f.m_pendingRequest=e}return f.syncPrivate(n).then(function(){u&&u(i)}).catch(function(){d&&d(i),i<s&&setTimeout(function(){a()},c)})}a()}).then(function(){if(f._onRunFinishedNotifiers&&0<f._onRunFinishedNotifiers.length&&f._onRunFinishedNotifiers.shift()(),h)return p;throw p})},Ce);function Ce(e){var t=ve.call(this)||this;if(t.m_customRequestHeaders={},t.m_batchMode=0,t._onRunFinishedNotifiers=[],v._overrideSession)t.m_requestUrlAndHeaderInfoResolver=v._overrideSession;else if((ot.isNullOrUndefined(e)||"string"==typeof e&&0===e.length)&&(e=(e=Ce.defaultRequestUrlAndHeaders)||{url:p.localDocument,headers:{}}),"string"==typeof e)t.m_requestUrlAndHeaderInfo={url:e,headers:{}};else if(Ce.isRequestUrlAndHeaderInfoResolver(e))t.m_requestUrlAndHeaderInfoResolver=e;else{if(!Ce.isRequestUrlAndHeaderInfo(e))throw m.RuntimeError._createInvalidArgError({argumentName:"url"});var n=e;t.m_requestUrlAndHeaderInfo={url:n.url,headers:{}},A._copyHeaders(n.headers,t.m_requestUrlAndHeaderInfo.headers)}return!t.m_requestUrlAndHeaderInfoResolver&&t.m_requestUrlAndHeaderInfo&&A._isLocalDocumentUrl(t.m_requestUrlAndHeaderInfo.url)&&he.getInstanceIfHostBridgeInited()&&(t.m_requestUrlAndHeaderInfo=null,t.m_requestUrlAndHeaderInfoResolver=he.getInstanceIfHostBridgeInited()),t.m_requestUrlAndHeaderInfoResolver instanceof v&&(t.m_session=t.m_requestUrlAndHeaderInfoResolver),t._processingResult=!1,t._customData=Se.iterativeExecutor,t.sync=t.sync.bind(t),t}y.ClientRequestContext=be;var Oe=(Object.defineProperty(_e.prototype,"$proxy",{get:function(){return this.m_proxy},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"$isNullObject",{get:function(){if(!this.m_isLoaded)throw new m.RuntimeError({code:oe.valueNotLoaded,httpStatusCode:400,message:A._getResourceString(et.valueNotLoaded),debugInfo:{errorLocation:"retrieveResult.$isNullObject"}});return this.m_isNullObject},enumerable:!0,configurable:!0}),_e.prototype.toJSON=function(){if(this.m_isLoaded)return this.m_isNullObject?null:(ot.isUndefined(this.m_json)&&(this.m_json=ot.purifyJson(this.m_value)),this.m_json)},_e.prototype.toString=function(){return JSON.stringify(this.toJSON())},_e.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=ot.changePropertyNameToCamelLowerCase(e)),this.m_value=e,this.m_proxy._handleRetrieveResult(e,this)},_e);function _e(e,t){this.m_proxy=e,this.m_shouldPolyfill=t;var n=e[Se.scalarPropertyNames],o=e[Se.navigationPropertyNames],r=e[Se.className],i=e[Se.isCollection];if(n)for(var a=0;a<n.length;a++)ot.definePropertyThrowUnloadedException(this,r,n[a]);if(o)for(a=0;a<o.length;a++)ot.definePropertyThrowUnloadedException(this,r,o[a]);i&&ot.definePropertyThrowUnloadedException(this,r,Se.itemsLowerCase)}var Ae,Se=(__extends(Pe,Ae=K),Pe.getItemAt="GetItemAt",Pe.index="_Index",Pe.iterativeExecutor="IterativeExecutor",Pe.isTracked="_IsTracked",Pe.eventMessageCategory=65536,Pe.eventWorkbookId="Workbook",Pe.eventSourceRemote="Remote",Pe.proxy="$proxy",Pe.className="_className",Pe.isCollection="_isCollection",Pe.collectionPropertyPath="_collectionPropertyPath",Pe.objectPathInfoDoNotKeepReferenceFieldName="D",Pe.officeScriptEventId="X-OfficeScriptEventId",Pe.officeScriptFireRecordingEvent="X-OfficeScriptFireRecordingEvent",Pe.officeControlId="X-OfficeControlId",Pe);function Pe(){return null!==Ae&&Ae.apply(this,arguments)||this}y.Constants=Se;var we,Te=(__extends(Ee,we=U),Object.defineProperty(Ee.prototype,"traceInfos",{get:function(){return this.m_traceInfos},enumerable:!0,configurable:!0}),Object.defineProperty(Ee.prototype,"_responseTraceMessages",{get:function(){return this.m_responseTraceMessages},enumerable:!0,configurable:!0}),Object.defineProperty(Ee.prototype,"_responseTraceIds",{get:function(){return this.m_responseTraceIds},enumerable:!0,configurable:!0}),Ee.prototype._setResponseTraceIds=function(e){if(e)for(var t=0;t<e.length;t++){var n=e[t];this.m_responseTraceIds[n]=n;var o=this.m_traceInfos[n];A.isNullOrUndefined(o)||this.m_responseTraceMessages.push(o)}},Ee.prototype.addTrace=function(e,t){this.m_traceInfos[e]=t},Ee.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(Ee.prototype,"_pendingProcessEventHandlers",{get:function(){return this.m_pendingProcessEventHandlers},enumerable:!0,configurable:!0}),Ee.prototype._getPendingEventHandlerActions=function(e){return this.m_pendingEventHandlerActions[e._id]},Ee);function Ee(e){var t=we.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}y.ClientRequest=Te;var De=(Object.defineProperty(Ie.prototype,"_registered",{get:function(){return this.m_registered},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"_id",{get:function(){return this.m_id},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"_handlers",{get:function(){return this.m_handlers},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"_context",{get:function(){return this.m_context},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"_callback",{get:function(){return this.m_callback},enumerable:!0,configurable:!0}),Ie.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 Re(this.m_context,this,e)},Ie.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})},Ie.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})},Ie.prototype._processRegistration=function(e){var t=this,n=A._createPromiseFromResult(null),o=e._getPendingEventHandlerActions(this);if(!o)return n;for(var r=[],i=0;i<this.m_handlers.length;i++)r.push(this.m_handlers[i]);var a=!1;for(i=0;i<o.length;i++)if(e._responseTraceIds[o[i].id])switch(a=!0,o[i].operation){case 0:r.push(o[i].handler);break;case 1:for(var s=r.length-1;0<=s;s--)if(r[s]===o[i].handler){r.splice(s,1);break}break;case 2:r=[]}return a&&(!this.m_registered&&0<r.length?n=n.then(function(){return t.m_eventInfo.registerFunc(t.m_callback)}).then(function(){return t.m_registered=!0}):this.m_registered&&0==r.length&&(n=n.then(function(){return t.m_eventInfo.unregisterFunc(t.m_callback)}).catch(function(e){A.log("Error when unregister event: "+JSON.stringify(e))}).then(function(){return t.m_registered=!1})),n=n.then(function(){return t.m_handlers=r})),n},Ie.prototype.fireEvent=function(e){for(var t=[],n=0;n<this.m_handlers.length;n++){var o=this.m_handlers[n],r=A._createPromiseFromResult(null).then(this.createFireOneEventHandlerFunc(o,e)).catch(function(e){A.log("Error when invoke handler: "+JSON.stringify(e))});t.push(r)}A.Promise.all(t)},Ie.prototype.createFireOneEventHandlerFunc=function(e,t){return function(){return e(t)}},Ie);function Ie(e,t,n,o){var r=this;this.m_id=e._nextId(),this.m_context=e,this.m_name=n,this.m_handlers=[],this.m_registered=!1,this.m_eventInfo=o,this.m_callback=function(e){r.m_eventInfo.eventArgsTransformFunc(e).then(function(e){return r.fireEvent(e)})}}y.EventHandlers=De;var xe,Fe,Re=(Object.defineProperty(Ne.prototype,"context",{get:function(){return this.m_context},enumerable:!0,configurable:!0}),Ne.prototype.remove=function(){this.m_allHandlers&&this.m_handler&&(this.m_allHandlers.remove(this.m_handler),this.m_allHandlers=null,this.m_handler=null)},Ne);function Ne(e,t,n){this.m_context=e,this.m_allHandlers=t,this.m_handler=n}function Me(){}y.EventHandlerResult=Re,xe=m=y._Internal||(y._Internal={}),Me.prototype.register=function(e,t,n){switch(e){case 4:return ot.promisify(function(e){return Office.context.document.bindings.getByIdAsync(t,e)}).then(function(t){return ot.promisify(function(e){return t.addHandlerAsync(Office.EventType.BindingDataChanged,n,e)})});case 3:return ot.promisify(function(e){return Office.context.document.bindings.getByIdAsync(t,e)}).then(function(t){return ot.promisify(function(e){return t.addHandlerAsync(Office.EventType.BindingSelectionChanged,n,e)})});case 2:return ot.promisify(function(e){return Office.context.document.addHandlerAsync(Office.EventType.DocumentSelectionChanged,n,e)});case 1:return ot.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 ot.promisify(function(e){return Office.context.document.addHandlerAsync(Office.EventType.ObjectDeleted,n,{id:t},e)});case 14:return ot.promisify(function(e){return Office.context.document.addHandlerAsync(Office.EventType.ObjectSelectionChanged,n,{id:t},e)});case 15:return ot.promisify(function(e){return Office.context.document.addHandlerAsync(Office.EventType.ObjectDataChanged,n,{id:t},e)});case 16:return ot.promisify(function(e){return Office.context.document.addHandlerAsync(Office.EventType.ContentControlAdded,n,{id:t},e)});default:throw xe.RuntimeError._createInvalidArgError({argumentName:"eventId"})}},Me.prototype.unregister=function(e,t,n){switch(e){case 4:return ot.promisify(function(e){return Office.context.document.bindings.getByIdAsync(t,e)}).then(function(t){return ot.promisify(function(e){return t.removeHandlerAsync(Office.EventType.BindingDataChanged,{handler:n},e)})});case 3:return ot.promisify(function(e){return Office.context.document.bindings.getByIdAsync(t,e)}).then(function(t){return ot.promisify(function(e){return t.removeHandlerAsync(Office.EventType.BindingSelectionChanged,{handler:n},e)})});case 2:return ot.promisify(function(e){return Office.context.document.removeHandlerAsync(Office.EventType.DocumentSelectionChanged,{handler:n},e)});case 1:return ot.promisify(function(e){return Office.context.document.settings.removeHandlerAsync(Office.EventType.SettingsChanged,{handler:n},e)});case 5:return ot.promisify(function(e){return OSF.DDA.RichApi.richApiMessageManager.removeHandlerAsync("richApiMessage",{handler:n},e)});case 13:return ot.promisify(function(e){return Office.context.document.removeHandlerAsync(Office.EventType.ObjectDeleted,{id:t,handler:n},e)});case 14:return ot.promisify(function(e){return Office.context.document.removeHandlerAsync(Office.EventType.ObjectSelectionChanged,{id:t,handler:n},e)});case 15:return ot.promisify(function(e){return Office.context.document.removeHandlerAsync(Office.EventType.ObjectDataChanged,{id:t,handler:n},e)});case 16:return ot.promisify(function(e){return Office.context.document.removeHandlerAsync(Office.EventType.ContentControlAdded,{id:t,handler:n},e)});default:throw xe.RuntimeError._createInvalidArgError({argumentName:"eventId"})}},Fe=Me,xe.officeJsEventRegistration=new Fe;var ke=(He.getTargetIdOrDefault=function(e){return ot.isNullOrUndefined(e)?"":e},He.prototype.getHandlers=function(e,t){t=He.getTargetIdOrDefault(t);var n=this.m_handlersByEventByTarget[e];n||(n={},this.m_handlersByEventByTarget[e]=n);var o=n[t];return o||(o=[],n[t]=o),o},He.prototype.callHandlers=function(e,t,n){for(var o=this.getHandlers(e,t),r=0;r<o.length;r++)o[r](n)},He.prototype.hasHandlers=function(e,t){return 0<this.getHandlers(e,t).length},He.prototype.register=function(e,t,n){if(!n)throw m.RuntimeError._createInvalidArgError({argumentName:"handler"});var o=this.getHandlers(e,t);return o.push(n),1===o.length?this.m_registerEventImpl(e,t):ot._createPromiseFromResult(null)},He.prototype.unregister=function(e,t,n){if(!n)throw m.RuntimeError._createInvalidArgError({argumentName:"handler"});for(var o=this.getHandlers(e,t),r=o.length-1;0<=r;r--)if(o[r]===n){o.splice(r,1);break}return 0===o.length?this.m_unregisterEventImpl(e,t):ot._createPromiseFromResult(null)},He);function He(e,t){this.m_handlersByEventByTarget={},this.m_registerEventImpl=e,this.m_unregisterEventImpl=t}y.EventRegistration=ke;var Le=(Ue.prototype.ready=function(){var e=this;return this.m_ready||(Ue._testReadyImpl?this.m_ready=Ue._testReadyImpl().then(function(){e.m_isReady=!0}):c.instance?this.m_ready=ot._createPromiseFromResult(null).then(function(){e.m_isReady=!0}):this.m_ready=m.officeJsEventRegistration.register(5,"",this.m_richApiMessageHandler).then(function(){e.m_isReady=!0})),this.m_ready},Object.defineProperty(Ue.prototype,"isReady",{get:function(){return this.m_isReady},enumerable:!0,configurable:!0}),Ue.prototype.register=function(e,t,n){var o=this;return this.ready().then(function(){return o.m_eventRegistration.register(e,t,n)})},Ue.prototype.unregister=function(e,t,n){var o=this;return this.ready().then(function(){return o.m_eventRegistration.unregister(e,t,n)})},Ue.prototype._registerEventImpl=function(e,t){return ot._createPromiseFromResult(null)},Ue.prototype._unregisterEventImpl=function(e,t){return ot._createPromiseFromResult(null)},Ue.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==Se.eventMessageCategory){A._logEnabled&&A.log(JSON.stringify(n));var o=n.messageType,r=n.targetId;if(this.m_eventRegistration.hasHandlers(o,r)){var i=JSON.parse(n.message);n.isRemoteOverride&&(i.source=Se.eventSourceRemote),this.m_eventRegistration.callHandlers(o,r,i)}}}},Ue.getGenericEventRegistration=function(e){A.isNullOrUndefined(e)&&(e="");var t=Ue.s_genericEventRegistrations[e];return t||(t=new Ue,Ue.s_genericEventRegistrations[e]=t),t},Ue.peekGenericEventRegistrationOrNull=function(e){return A.isNullOrUndefined(e)&&(e=""),Ue.s_genericEventRegistrations[e]},Ue.richApiMessageEventCategory=65536,Ue.s_genericEventRegistrations={},Ue);function Ue(){this.m_eventRegistration=new ke(this._registerEventImpl.bind(this),this._unregisterEventImpl.bind(this)),this.m_richApiMessageHandler=this._handleRichApiMessage.bind(this)}y.GenericEventRegistration=Le,y._testSetRichApiMessageReadyImpl=function(e){Le._testReadyImpl=e},y._testTriggerRichApiMessageEvent=function(e){Le.getGenericEventRegistration("")._handleRichApiMessage(e)};var je,Be=(__extends(We,je=De),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 Le.getGenericEventRegistration(n).isReady||this._context._pendingRequest._addPreSyncPromise(Le.getGenericEventRegistration(n).ready()),ce.createTraceMarkerForCallback(this._context,function(){t._handlers.push(e),1==t._handlers.length&&Le.getGenericEventRegistration(n).register(t.m_genericEventInfo.eventType,t.m_genericEventInfo.getTargetIdFunc(),t._callback)}),new Re(this._context,this,e)},We.prototype.remove=function(n){var o=this;1==this._handlers.length&&this.m_genericEventInfo.unregisterFunc&&this.m_genericEventInfo.unregisterFunc();var r=this._context._controlId;ce.createTraceMarkerForCallback(this._context,function(){for(var e=o._handlers,t=e.length-1;0<=t;t--)if(e[t]===n){e.splice(t,1);break}0==e.length&&Le.getGenericEventRegistration(r).unregister(o.m_genericEventInfo.eventType,o.m_genericEventInfo.getTargetIdFunc(),o._callback)})},We.prototype.removeAll=function(){},We);function We(e,t,n,o){var r=je.call(this,e,t,n,o)||this;return r.m_genericEventInfo=o,r}y.GenericEventHandlers=Be;var qe=(Ge.prototype._handleResult=function(e){this.m_clientObject._handleIdResult(e)},Ge);function Ge(e){this.m_clientObject=e}var Ve=(ze.createGlobalObjectObjectPath=function(e){var t={Id:e._nextId(),ObjectPathType:1,Name:""};return new R(t,null,!1,!1,1,4)},ze.createNewObjectObjectPath=function(e,t,n,o){var r={Id:e._nextId(),ObjectPathType:2,Name:t};return new R(r,null,n,!1,1,ot._fixupApiFlags(o))},ze.createPropertyObjectPath=function(e,t,n,o,r,i){var a={Id:e._nextId(),ObjectPathType:4,Name:n,ParentObjectPathId:t._objectPath.objectPathInfo.Id};return new R(a,t._objectPath,o,r,1,ot._fixupApiFlags(i))},ze.createIndexerObjectPath=function(e,t,n){var o={Id:e._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}};return o.ArgumentInfo.Arguments=n,new R(o,t._objectPath,!1,!1,1,4)},ze.createIndexerObjectPathUsingParentPath=function(e,t,n){var o={Id:e._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:t.objectPathInfo.Id,ArgumentInfo:{}};return o.ArgumentInfo.Arguments=n,new R(o,t,!1,!1,1,4)},ze.createMethodObjectPath=function(e,t,n,o,r,i,a,s,c){var l={Id:e._nextId(),ObjectPathType:3,Name:n,ParentObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}},u=ot.setMethodArguments(e,l.ArgumentInfo,r),d=new R(l,t._objectPath,i,a,o,ot._fixupApiFlags(c));return d.argumentObjectPaths=u,d.getByIdMethodName=s,d},ze.createReferenceIdObjectPath=function(e,t){var n={Id:e._nextId(),ObjectPathType:6,Name:t,ArgumentInfo:{}};return new R(n,null,!1,!1,1,4)},ze.createChildItemObjectPathUsingIndexerOrGetItemAt=function(e,t,n,o,r){var i=ot.tryGetObjectIdFromLoadOrRetrieveResult(o);return e&&!ot.isNullOrUndefined(i)?ze.createChildItemObjectPathUsingIndexer(t,n,o):ze.createChildItemObjectPathUsingGetItemAt(t,n,o,r)},ze.createChildItemObjectPathUsingIndexer=function(e,t,n){var o=ot.tryGetObjectIdFromLoadOrRetrieveResult(n),r=r={Id:e._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}};return r.ArgumentInfo.Arguments=[o],new R(r,t._objectPath,!1,!1,1,4)},ze.createChildItemObjectPathUsingGetItemAt=function(e,t,n,o){var r=n[Se.index];r&&(o=r);var i={Id:e._nextId(),ObjectPathType:3,Name:Se.getItemAt,ParentObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}};return i.ArgumentInfo.Arguments=[o],new R(i,t._objectPath,!1,!1,1,4)},ze);function ze(){}y.ObjectPathFactory=Ve;var Je=(Ke.prototype.executeAsync=function(e,t,n){var o=this,r=O.buildMessageArrayForIRequestExecutor(e,t,n,Ke.SourceLibHeaderValue);return new y.Promise(function(n,e){OSF.DDA.RichApi.executeRichApiRequestAsync(r,function(e){var t;A.log("Response:"),A.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),o.m_context._processOfficeJsErrorResponse(e.error.code,t)),n(t)})})},Ke.SourceLibHeaderValue="officejs",Ke);function Ke(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[Se.isTracked]&&e!==this.m_context._rootObject&&t&&!ot.isNullOrEmptyString(t[Se.referenceId])&&((this._autoCleanupList[e._objectPath.objectPathInfo.Id]=e)[Se.isTracked]=!0)},Qe.prototype._addCommon=function(e,t){if(e[Se.isTracked])t&&this.m_context._autoCleanup&&delete this._autoCleanupList[e._objectPath.objectPathInfo.Id];else{var n=e[Se.referenceId];if(e._objectPath.objectPathInfo[Se.objectPathInfoDoNotKeepReferenceFieldName])throw ot.createRuntimeError(g.generalException,A._getResourceString(et.objectIsUntracked),null);ot.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[Se.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[Se.objectPathInfoDoNotKeepReferenceFieldName]=!0,e.context._pendingRequest._removeKeepReferenceAction(e._objectPath.objectPathInfo.Id);var t=e[Se.referenceId];if(!ot.isNullOrEmptyString(t)){var n=this.m_context._rootObject;n._RemoveReference&&n._RemoveReference(t)}delete e[Se.isTracked]},Qe.prototype._retrieveAndClearAutoCleanupList=function(){var e=this._autoCleanupList;return this._autoCleanupList={},e},Qe);function Qe(e){this._autoCleanupList={},this.m_context=e}y.TrackedObjects=Xe;var Ye=($e.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},$e.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 o=t-5;o<0&&(o=0);var r=t+1+5;r>this.m_statements.length&&(r=this.m_statements.length);var i=[];0!=o&&i.push("...");for(var a=o;a<t;a++)i.push(this.m_statements[a]);i.push("// >>>>>"),i.push(this.m_statements[t]),i.push("// <<<<<");for(var s=t+1;s<r;s++)i.push(this.m_statements[s]);return r<this.m_statements.length&&i.push("..."),{statement:this.m_statements[t],surroundingStatements:i}},$e.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)}},$e.prototype.processInstantiateAction=function(e){var t=e.actionInfo.ObjectPathId,n=this.m_referencedObjectPaths[t],o=this.getObjVarName(t);if(this.m_declaredObjectPathMap[t])r="// Instantiate {"+o+"}",r=this.appendDisposeCommentIfRelevant(r,e),this.m_statements.push(r);else{var r="var "+o+" = "+this.buildObjectPathExpressionWithParent(n)+";";r=this.appendDisposeCommentIfRelevant(r,e),this.m_statements.push(r),this.m_declaredObjectPathMap[t]=o}},$e.prototype.processMethodAction=function(e){var t=e.actionInfo.Name;if("_KeepReference"===t){if(!y._internalConfig.showInternalApiInDebugInfo)return;t="track"}var n=this.getObjVarName(e.actionInfo.ObjectPathId)+"."+ot._toCamelLowerCase(t)+"("+this.buildArgumentsExpression(e.actionInfo.ArgumentInfo)+");";n=this.appendDisposeCommentIfRelevant(n,e),this.m_statements.push(n)},$e.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)},$e.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)},$e.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)},$e.prototype.processSetPropertyAction=function(e){var t=this.getObjVarName(e.actionInfo.ObjectPathId)+"."+ot._toCamelLowerCase(e.actionInfo.Name)+" = "+this.buildArgumentsExpression(e.actionInfo.ArgumentInfo)+";";t=this.appendDisposeCommentIfRelevant(t,e),this.m_statements.push(t)},$e.prototype.processTraceAction=function(e){var t="context.trace();";t=this.appendDisposeCommentIfRelevant(t,e),this.m_statements.push(t)},$e.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)},$e.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)},$e.prototype.appendDisposeCommentIfRelevant=function(e,t){var n=this;if(this.m_showDispose){var o=t.actionInfo.L;if(o&&0<o.length)return e+" // And then dispose {"+o.map(function(e){return n.getObjVarName(e)}).join(", ")+"}"}return e},$e.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""},$e.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)},$e.prototype.buildObjectPathExpression=function(e){var t=this.buildObjectPathInfoExpression(e.objectPathInfo),n=e.originalObjectPathInfo;return n&&(t=t+" /* originally "+this.buildObjectPathInfoExpression(n)+" */"),t},$e.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 ot._toCamelLowerCase(e.Name)+"("+this.buildArgumentsExpression(e.ArgumentInfo)+")";case 2:return e.Name+".newObject()";case 7:return"null";case 4:return ot._toCamelLowerCase(e.Name);case 6:return"context."+this.m_globalObjName+"._getObjectByReferenceId("+JSON.stringify(e.Name)+")"}},$e.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},$e.prototype.buildArgumentLiteral=function(e,t){return"number"==typeof e&&e===t?this.getObjVarName(t):JSON.stringify(e)},$e.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=ot._toCamelLowerCase(n.objectPathInfo.Name);break;case 3:var o=n.objectPathInfo.Name;3<o.length&&"Get"===o.substr(0,3)&&(o=o.substr(3)),t=ot._toCamelLowerCase(o);break;case 5:var r=this.getObjVarNameBase(n.objectPathInfo.ParentObjectPathId);t="s"===r.charAt(r.length-1)?r.substr(0,r.length-1):r+"Item"}return t},$e.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},$e);function $e(e,t,n,o,r){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=o,this.m_removePII=r}var Ze,et=(__extends(tt,Ze=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!==Ze&&Ze.apply(this,arguments)||this}y.ResourceStrings=et,A.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,ot=(__extends(rt,nt=Y),rt.fixObjectPathIfNecessary=function(e,t){e&&e._objectPath&&t&&e._objectPath.updateUsingObjectData(t,e)},rt.load=function(e,t){return e.context.load(e,t),e},rt.loadAndSync=function(e,t){return e.context.load(e,t),e.context.sync().then(function(){return e})},rt.retrieve=function(e,t){var n=y._internalConfig.alwaysPolyfillClientObjectRetrieveMethod;n=n||!rt.isSetSupported("RichApiRuntime","1.1");var o=new Oe(e,n);return e._retrieve(t,o),o},rt.retrieveAndSync=function(e,t){var n=rt.retrieve(e,t);return e.context.sync().then(function(){return n})},rt.toJson=function(e,t,n,o){var r={};for(var i in t)void 0!==(a=t[i])&&(r[i]=a);for(var i in n){var a;void 0!==(a=n[i])&&(a[rt.fieldName_isCollection]&&void 0!==a[rt.fieldName_m__items]?r[i]=a.toJSON().items:r[i]=a.toJSON())}return o&&(r.items=o.map(function(e){return e.toJSON()})),r},rt.throwError=function(e,t,n){throw new m.RuntimeError({code:e,httpStatusCode:400,message:A._getResourceString(e,t),debugInfo:n?{errorLocation:n}:void 0})},rt.createRuntimeError=function(e,t,n,o,r){return new m.RuntimeError({code:e,httpStatusCode:o,message:t,debugInfo:{errorLocation:n},data:r})},rt.throwIfNotLoaded=function(e,t,n,o){if(!o&&A.isUndefined(t)&&e.charCodeAt(0)!=rt.s_underscoreCharCode&&!rt.s_suppressPropertyNotLoadedException)throw rt.createPropertyNotLoadedException(n,e)},rt._getPropertyValueWithoutCheckLoaded=function(e,t){rt.s_suppressPropertyNotLoadedException=!0;try{return e[t]}finally{rt.s_suppressPropertyNotLoadedException=!1}},rt.createPropertyNotLoadedException=function(e,t){return new m.RuntimeError({code:oe.propertyNotLoaded,httpStatusCode:400,message:A._getResourceString(et.propertyNotLoaded,t),debugInfo:e?{errorLocation:e+"."+t}:void 0})},rt.createCannotUpdateReadOnlyPropertyException=function(e,t){return new m.RuntimeError({code:oe.cannotUpdateReadOnlyProperty,httpStatusCode:400,message:A._getResourceString(et.cannotUpdateReadOnlyProperty,t),debugInfo:e?{errorLocation:e+"."+t}:void 0})},rt.promisify=function(e){return new y.Promise(function(t,n){e(function(e){"failed"==e.status?n(e.error):t(e.value)})})},rt._addActionResultHandler=function(e,t,n){e.context._pendingRequest.addActionResultHandler(t,n)},rt._handleNavigationPropertyResults=function(e,t,n){for(var o=0;o<n.length-1;o+=2)A.isUndefined(t[n[o+1]])||e[n[o]]._handleResult(t[n[o+1]])},rt._fixupApiFlags=function(e){return"boolean"==typeof e&&(e=e?1:0),e},rt.definePropertyThrowUnloadedException=function(e,t,n){Object.defineProperty(e,n,{configurable:!0,enumerable:!0,get:function(){throw rt.createPropertyNotLoadedException(t,n)},set:function(){throw rt.createCannotUpdateReadOnlyPropertyException(t,n)}})},rt.defineReadOnlyPropertyWithValue=function(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return n},set:function(){throw rt.createCannotUpdateReadOnlyPropertyException(null,t)}})},rt.processRetrieveResult=function(e,t,n,o){if(!A.isNullOrUndefined(t))if(o){var r=t[Se.itemsLowerCase];if(Array.isArray(r)){for(var i=[],a=0;a<r.length;a++){var s=o(r[a],a),c={};(c[Se.proxy]=s)._handleRetrieveResult(r[a],c),i.push(c)}rt.defineReadOnlyPropertyWithValue(n,Se.itemsLowerCase,i)}}else{var l=e[Se.scalarPropertyNames],u=e[Se.navigationPropertyNames],d=e[Se.className];if(l)for(a=0;a<l.length;a++){var f=t[p=l[a]];A.isUndefined(f)?rt.definePropertyThrowUnloadedException(n,d,p):rt.defineReadOnlyPropertyWithValue(n,p,f)}if(u)for(a=0;a<u.length;a++){var p;if(f=t[p=u[a]],A.isUndefined(f))rt.definePropertyThrowUnloadedException(n,d,p);else{var m=e[p],g={};m._handleRetrieveResult(f,g),g[Se.proxy]=m,Array.isArray(g[Se.itemsLowerCase])&&(g=g[Se.itemsLowerCase]),rt.defineReadOnlyPropertyWithValue(n,p,g)}}}},rt.setMockData=function(e,t,n,o){if(A.isNullOrUndefined(t))e._handleResult(t);else{if(e[Se.scalarPropertyOriginalNames]){for(var r={},i=e[Se.scalarPropertyOriginalNames],a=e[Se.scalarPropertyNames],s=0;s<a.length;s++)void 0!==t[a[s]]&&(r[i[s]]=t[a[s]]);e._handleResult(r)}if(e[Se.navigationPropertyNames]){var c=e[Se.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[Se.isCollection]&&n){var u=Array.isArray(t)?t:t[Se.itemsLowerCase];if(Array.isArray(u)){var d=[];for(s=0;s<u.length;s++){var f=n(u,s);rt.setMockData(f,u[s]),d.push(f)}o(d)}}}},rt.applyMixin=function(t,n){Object.getOwnPropertyNames(n.prototype).forEach(function(e){"constructor"!==e&&Object.defineProperty(t.prototype,e,Object.getOwnPropertyDescriptor(n.prototype,e))})},rt.ensureTypeInitialized=function(e){var t=new be;new e(t,Ve.createNewObjectObjectPath(t,"Temp",!1,0))},rt.fieldName_m__items="m__items",rt.fieldName_isCollection="_isCollection",rt._synchronousCleanup=!1,rt.s_underscoreCharCode="_".charCodeAt(0),rt.s_suppressPropertyNotLoadedException=!1,rt);function rt(){return null!==nt&&nt.apply(this,arguments)||this}y.Utility=ot;var it=(at.invokeMethod=function(e,t,n,o,r,i){var a=ce.createMethodAction(e.context,e,t,n,o,r),s=new B(i);return ot._addActionResultHandler(e,a,s),s},at.invokeEnsureUnchanged=function(e,t){ce.createEnsureUnchangedAction(e.context,e,t)},at.invokeSetProperty=function(e,t,n,o){ce.createSetPropertyAction(e.context,e,t,n,o)},at.createRootServiceObject=function(e,t){return new e(t,Ve.createGlobalObjectObjectPath(t))},at.createObjectFromReferenceId=function(e,t,n){return new e(t,Ve.createReferenceIdObjectPath(t,n))},at.createTopLevelServiceObject=function(e,t,n,o,r){return new e(t,Ve.createNewObjectObjectPath(t,n,o,r))},at.createPropertyObject=function(e,t,n,o,r){var i=Ve.createPropertyObjectPath(t.context,t,n,o,!1,r);return new e(t.context,i)},at.createIndexerObject=function(e,t,n){var o=Ve.createIndexerObjectPath(t.context,t,n);return new e(t.context,o)},at.createMethodObject=function(e,t,n,o,r,i,a,s,c){var l=Ve.createMethodObjectPath(t.context,t,n,o,r,i,a,s,c);return new e(t.context,l)},at.createChildItemObject=function(e,t,n,o,r){var i=Ve.createChildItemObjectPathUsingIndexerOrGetItemAt(t,n.context,n,o,r);return new e(n.context,i)},at);function at(){}y.BatchApiHelper=it;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 o=0;o<n.length;o++)t.fields[n[o]]=this.toSimpleCamelUpperCase(n[o])}else t=e;this.m_targetNamespaceObject[t.name]=t.fields},ct.prototype.buildClientObjectType=function(n,e){function t(e,t){de.apply(this,arguments),o.m_targetNamespaceObject[n.name]._typeInited||(o.buildPrototype(o.m_targetNamespaceObject[n.name],n),o.m_targetNamespaceObject[n.name]._typeInited=!0),y._internalConfig.appendTypeNameToObjectPathInfo&&this._objectPath&&this._objectPath.objectPathInfo&&this._className&&(this._objectPath.objectPathInfo.T=this._className)}var o=this;this.m_targetNamespaceObject[n.name]=t,this.extendsType(t,de),this.buildNewObject(t,n),0!=(2&n.behaviorFlags)&&(t.prototype._KeepReference=function(){it.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 o=e,r=n;r<t.length;r++){if("object"!=typeof o)throw new y.Error("Cannot find "+t.join("."));o=o[t[r]]}return o},ct.prototype.getFunction=function(e){var t=this.resolveObjectByFullName(e);if("function"!=typeof t)throw new y.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(ot.isNullOrUndefined(e))return null;var n=e.split(".");if(3===n.length&&"OfficeExtension"===n[0]&&"Constants"===n[1])return Se[n[2]];if("this"!==n[0])throw new y.Error("Cannot evaluate: "+e);for(var o=t,r=1;r<n.length;r++)o="toString()"==n[r]?o.toString():"()"===n[r].substr(n[r].length-2)?o[n[r].substr(0,n[r].length-2)]():o[n[r]];return o},ct.prototype.evaluateEventTargetId=function(e,t){return ot.isNullOrEmptyString(e)?"":this.evaluateSimpleExpression(e,t)},ct.prototype.isAllDigits=function(e){for(var t="0".charCodeAt(0),n="9".charCodeAt(0),o=0;o<e.length;o++)if(e.charCodeAt(o)<t||e.charCodeAt(o)>n)return!1;return!0},ct.prototype.evaluateEventType=function(e){if(ot.isNullOrEmptyString(e))return 0;if(this.isAllDigits(e))return parseInt(e);var t=this.resolveObjectByFullName(e);if("number"!=typeof t)throw new y.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&&ot.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 o=t.scalarProperties[n];Array.isArray(o)&&(this.ensureArraySize(o,6),t.scalarProperties[n]={name:this.getString(o[0]),behaviorFlags:o[1],apiSetInfoOrdinal:o[2],originalName:this.getString(o[3]),setMethodApiFlags:o[4],undoableApiSetInfoOrdinal:o[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,o){this.ensureOriginalName(o);var r=this,i=this.getFieldName(o),t={get:function(){return ot.throwIfNotLoaded(o.name,this[i],n.name,this._isNull),r.throwIfApiNotSupported(n,o),this[i]},enumerable:!0,configurable:!0};0==(2&o.behaviorFlags)&&(t.set=function(e){if(!(4&o.behaviorFlags&&r.getFunction(ct.CustomizationCodeNamespace+"."+n.name+"_"+o.originalName+"_Set").call(this,this,e).handled)){this[i]=e;var t=r.calculateApiFlags(o.setMethodApiFlags,o.undoableApiSetInfoOrdinal);it.invokeSetProperty(this,o.originalName,e,t)}}),Object.defineProperty(e.prototype,o.name,t)},ct.prototype.buildNavigationProperties=function(e,t){if(Array.isArray(t.navigationProperties))for(var n=0;n<t.navigationProperties.length;n++){var o=t.navigationProperties[n];Array.isArray(o)&&(this.ensureArraySize(o,8),t.navigationProperties[n]={name:this.getString(o[0]),behaviorFlags:o[2],apiSetInfoOrdinal:o[3],originalName:this.getString(o[4]),getMethodApiFlags:o[5],setMethodApiFlags:o[6],propertyTypeFullName:this.getString(o[1]),undoableApiSetInfoOrdinal:o[7]}),this.buildNavigationProperty(e,t,t.navigationProperties[n])}},ct.prototype.buildNavigationProperty=function(e,n,o){this.ensureOriginalName(o);var r=this,i=this.getFieldName(o),t={get:function(){return this[r.getFieldName(o)]||(r.throwIfApiNotSupported(n,o),this[i]=it.createPropertyObject(r.getFunction(o.propertyTypeFullName),this,o.originalName,0!=(16&o.behaviorFlags),o.getMethodApiFlags)),64&o.behaviorFlags&&r.getFunction(ct.CustomizationCodeNamespace+"."+n.name+"_"+o.originalName+"_Get").call(this,this,this[i]),this[i]},enumerable:!0,configurable:!0};0==(2&o.behaviorFlags)&&(t.set=function(e){if(!(4&o.behaviorFlags&&r.getFunction(ct.CustomizationCodeNamespace+"."+n.name+"_"+o.originalName+"_Set").call(this,this,e).handled)){this[i]=e;var t=r.calculateApiFlags(o.setMethodApiFlags,o.undoableApiSetInfoOrdinal);it.invokeSetProperty(this,o.originalName,e,t)}}),Object.defineProperty(e.prototype,o.name,t)},ct.prototype.buildScalarMethods=function(e,t){if(Array.isArray(t.scalarMethods))for(var n=0;n<t.scalarMethods.length;n++){var o=t.scalarMethods[n];Array.isArray(o)&&(this.ensureArraySize(o,7),t.scalarMethods[n]={name:this.getString(o[0]),behaviorFlags:o[2],apiSetInfoOrdinal:o[3],originalName:this.getString(o[5]),apiFlags:o[4],parameterCount:o[1],undoableApiSetInfoOrdinal:o[6]}),this.buildScalarMethod(e,t,t.scalarMethods[n])}},ct.prototype.buildScalarMethod=function(e,d,f){this.ensureOriginalName(f);var p=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 o=p.getFunction(ct.CustomizationCodeNamespace+"."+d.name+"_"+f.originalName),r=[this];for(t=0;t<e.length;t++)r.push(e[t]);var i=o.apply(this,r),a=i.handled,s=i.result;if(a)return s}p.throwIfApiNotSupported(d,f);var c=0;32&f.behaviorFlags&&(c=1);var l=0;2&f.behaviorFlags&&(l=1);var u=p.calculateApiFlags(f.apiFlags,f.undoableApiSetInfoOrdinal);return it.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 o=t.navigationMethods[n];Array.isArray(o)&&(this.ensureArraySize(o,9),t.navigationMethods[n]={name:this.getString(o[0]),behaviorFlags:o[3],apiSetInfoOrdinal:o[4],originalName:this.getString(o[6]),apiFlags:o[5],parameterCount:o[2],returnTypeFullName:this.getString(o[1]),returnObjectGetByIdMethodName:this.getString(o[7]),undoableApiSetInfoOrdinal:o[8]}),this.buildNavigationMethod(e,t,t.navigationMethods[n])}},ct.prototype.buildNavigationMethod=function(e,u,d){this.ensureOriginalName(d);var f=this;e.prototype[d.name]=function(){var e=[];if(64&d.behaviorFlags&&0<d.parameterCount){for(var t=0;t<d.parameterCount-1;t++)e.push(arguments[t]);var n=[];for(t=d.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&d.behaviorFlags){var o=f.getFunction(ct.CustomizationCodeNamespace+"."+u.name+"_"+d.originalName),r=[this];for(t=0;t<e.length;t++)r.push(e[t]);var i=o.apply(this,r),a=i.handled,s=i.result;if(a)return s}if(f.throwIfApiNotSupported(u,d),0!=(16&d.behaviorFlags))return it.createIndexerObject(f.getFunction(d.returnTypeFullName),this,e);var c=0;2&d.behaviorFlags&&(c=1);var l=f.calculateApiFlags(d.apiFlags,d.undoableApiSetInfoOrdinal);return it.createMethodObject(f.getFunction(d.returnTypeFullName),this,d.originalName,c,e,0!=(4&d.behaviorFlags),0!=(8&d.behaviorFlags),d.returnObjectGetByIdMethodName,l)}},ct.prototype.buildHandleResult=function(e,l){var u=this;e.prototype._handleResult=function(e){if(de.prototype._handleResult.call(this,e),!ot.isNullOrUndefined(e)){if(ot.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++)ot.isUndefined(e[l.scalarProperties[t].originalName])||(0!=(8&l.scalarProperties[t].behaviorFlags)?this[u.getFieldName(l.scalarProperties[t])]=ot.adjustToDateTime(e[l.scalarProperties[t].originalName]):this[u.getFieldName(l.scalarProperties[t])]=e[l.scalarProperties[t].originalName]);if(l.navigationProperties){for(var n=[],o=0;o<l.navigationProperties.length;o++)n.push(l.navigationProperties[o].name),n.push(l.navigationProperties[o].originalName);ot._handleNavigationPropertyResults(this,e,n)}if(0!=(1&l.behaviorFlags)){var r=u.hasIndexMethod(l);if(!ot.isNullOrUndefined(e[Se.items])){this.m__items=[];for(var i=e[Se.items],a=u.getFunction(l.childItemTypeFullName),s=0;s<i.length;s++){var c=it.createChildItemObject(a,r,this,i[s],s);c._handleResult(i[s]),this.m__items.push(c)}}}}}},ct.prototype.buildHandleRetrieveResult=function(e,a){var s=this;e.prototype._handleRetrieveResult=function(e,t){if(de.prototype._handleRetrieveResult.call(this,e,t),!ot.isNullOrUndefined(e)){if(a.scalarProperties)for(var n=0;n<a.scalarProperties.length;n++)8&a.scalarProperties[n].behaviorFlags&&(ot.isNullOrUndefined(e[a.scalarProperties[n].name])||(e[a.scalarProperties[n].name]=ot.adjustToDateTime(e[a.scalarProperties[n].name])));if(1&a.behaviorFlags){var o=s.hasIndexMethod(a),r=s.getFunction(a.childItemTypeFullName),i=this;ot.processRetrieveResult(i,e,t,function(e,t){return it.createChildItemObject(r,o,i,e,t)})}else ot.processRetrieveResult(this,e,t)}}},ct.prototype.buildHandleIdResult=function(e,o){var r=this;e.prototype._handleIdResult=function(e){if(de.prototype._handleIdResult.call(this,e),!ot.isNullOrUndefined(e)&&(16&o.behaviorFlags&&r.getFunction(ct.CustomizationCodeNamespace+"."+o.name+"_HandleIdResult").call(this,this,e),o.scalarProperties))for(var t=0;t<o.scalarProperties.length;t++){var n=o.scalarProperties[t].originalName;"Id"!==n&&"_Id"!==n&&"_ReferenceId"!==n||ot.isNullOrUndefined(e[o.scalarProperties[t].originalName])||(this[r.getFieldName(o.scalarProperties[t])]=e[o.scalarProperties[t].originalName])}}},ct.prototype.buildLoad=function(e,t){e.prototype.load=function(e){return ot.load(this,e)}},ct.prototype.buildRetrieve=function(e,t){e.prototype.retrieve=function(e){return ot.retrieve(this,e)}},ct.prototype.buildNewObject=function(t,n){ot.isNullOrEmptyString(n.newObjectServerTypeFullName)||(t.newObject=function(e){return it.createTopLevelServiceObject(t,e,n.newObjectServerTypeFullName,0!=(1&n.behaviorFlags),n.newObjectApiFlags)})},ct.prototype.buildSetMockData=function(e,o){var r=this;if(1&o.behaviorFlags){var i=r.hasIndexMethod(o);e.prototype.setMockData=function(e){var n=this;ot.setMockData(n,e,function(e,t){return it.createChildItemObject(r.getFunction(o.childItemTypeFullName),i,n,e,t)},function(e){n.m__items=e})}}else e.prototype.setMockData=function(e){ot.setMockData(this,e)}},ct.prototype.buildEnsureUnchanged=function(e,t){e.prototype.ensureUnchanged=function(e){it.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=[],o=[];if(t.scalarProperties)for(var r=0;r<t.scalarProperties.length;r++)0==(2&t.scalarProperties[r].behaviorFlags)&&0!=(1&t.scalarProperties[r].behaviorFlags)?o.push(t.scalarProperties[r].name):n.push(t.scalarProperties[r].name);var i=[];if(t.navigationProperties)for(r=0;r<t.navigationProperties.length;r++)0!=(16&t.navigationProperties[r].behaviorFlags)||0==(1&t.navigationProperties[r].behaviorFlags)||0==(32&t.navigationProperties[r].behaviorFlags)?n.push(t.navigationProperties[r].name):i.push(t.navigationProperties[r].name);0===i.length&&0===o.length||(e.prototype.set=function(e,t){this._recursivelySet(e,t,o,i,n)})}},ct.prototype.buildItems=function(e,t){0!=(1&t.behaviorFlags)&&Object.defineProperty(e.prototype,"items",{get:function(){return ot.throwIfNotLoaded("items",this.m__items,t.name,this._isNull),this.m__items},enumerable:!0,configurable:!0})},ct.prototype.buildToJSON=function(e,o){var r=this;0==(1&o.behaviorFlags)?e.prototype.toJSON=function(){var e={};if(o.scalarProperties)for(var t=0;t<o.scalarProperties.length;t++)0!=(1&o.scalarProperties[t].behaviorFlags)&&(e[o.scalarProperties[t].name]=this[r.getFieldName(o.scalarProperties[t])]);var n={};if(o.navigationProperties)for(t=0;t<o.navigationProperties.length;t++)0!=(1&o.navigationProperties[t].behaviorFlags)&&(n[o.navigationProperties[t].name]=this[r.getFieldName(o.navigationProperties[t])]);return ot.toJson(this,e,n)}:e.prototype.toJSON=function(){return ot.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}),ot.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");ot.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 o=t.events[n];Array.isArray(o)&&(this.ensureArraySize(o,7),t.events[n]={name:this.getString(o[0]),behaviorFlags:o[1],apiSetInfoOrdinal:o[2],typeExpression:this.getString(o[3]),targetIdExpression:this.getString(o[4]),register:this.getString(o[5]),unregister:this.getString(o[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,i,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(i,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 o=null;2&a.behaviorFlags&&(o=s.getFunction(ct.CustomizationCodeNamespace+"."+i.name+"_"+a.name+"_EventArgsTransform"));var r=s.evaluateEventType(a.typeExpression);this[c]=new Be(this.context,this,a.name,{eventType:r,getTargetIdFunc:function(){return s.evaluateEventTargetId(a.targetIdExpression,t)},registerFunc:e,unregisterFunc:n,eventArgsTransformFunc:function(e){return o&&(e=o.call(t,t,e)),ot._createPromiseFromResult(e)}})}return this[c]},enumerable:!0,configurable:!0})},ct.prototype.buildV0Event=function(e,c,l){var u=this,t=this.getOnEventName(l.name),d=this.getFieldName(l);Object.defineProperty(e.prototype,t,{get:function(){if(!this[d]){u.throwIfApiNotSupported(c,l);var n=this,e=null;if(ot.isNullOrEmptyString(l.register)){var o=u.evaluateEventType(l.typeExpression);e=function(e){var t=u.evaluateEventTargetId(l.targetIdExpression,n);return n.context.eventRegistration.register(o,t,e)}}else if("null"!==l.register){var t=u.getFunction(l.register);e=function(e){return t.call(n,n,e)}}var r=null;if(ot.isNullOrEmptyString(l.unregister)){var i=u.evaluateEventType(l.typeExpression);r=function(e){var t=u.evaluateEventTargetId(l.targetIdExpression,n);return n.context.eventRegistration.unregister(i,t,e)}}else if("null"!==l.unregister){var a=u.getFunction(l.unregister);r=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[d]=new De(this.context,this,l.name,{registerFunc:e,unregisterFunc:r,eventArgsTransformFunc:function(e){return s&&(e=s.call(n,n,e)),ot._createPromiseFromResult(e)}})}return this[d]},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 o=0;o<n.enumTypes.length;o++)this.buildEnumType(n.enumTypes[o]);if(n.apiSets){for(o=0;o<n.apiSets.length;o++){var r=n.apiSets[o];Array.isArray(r)&&(n.apiSets[o]={version:r[0],name:r[1]||this.m_defaultApiSetName})}this.m_apiSets=n.apiSets}if(this.m_strings=n.strings,n.clientObjectTypes)for(o=0;o<n.clientObjectTypes.length;o++){r=n.clientObjectTypes[o];Array.isArray(r)&&(this.ensureArraySize(r,11),n.clientObjectTypes[o]={name:this.getString(r[0]),behaviorFlags:r[1],collectionPropertyPath:this.getString(r[6]),newObjectServerTypeFullName:this.getString(r[9]),newObjectApiFlags:r[10],childItemTypeFullName:this.getString(r[7]),scalarProperties:r[2],navigationProperties:r[3],scalarMethods:r[4],navigationMethods:r[5],events:r[8]}),this.buildClientObjectType(n.clientObjectTypes[o],e.fullyInitialize)}}y.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,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};!function(e){function o(e,t,n,o){return{name:e,dataType:t,value:n,classification:o||4}}e.makeBooleanDataField=function(e,t,n){return o(e,1,t,n)},e.makeInt64DataField=function(e,t,n){return o(e,2,t,n)},e.makeDoubleDataField=function(e,t,n){return o(e,3,t,n)},e.makeStringDataField=function(e,t,n){return o(e,0,t,n)},e.makeGuidDataField=function(e,t,n){return o(e,4,t,n)}}(oteljs=oteljs||{}),function(e){var t,n,o,r,i,a,s,c,l,u,d,f,p;(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",(o=e.SamplingPolicy||(e.SamplingPolicy={}))[o.NotSet=0]="NotSet",o[o.Measure=1]="Measure",o[o.Diagnostics=2]="Diagnostics",o[o.CriticalBusinessImpact=191]="CriticalBusinessImpact",o[o.CriticalCensus=192]="CriticalCensus",o[o.CriticalExperimentation=193]="CriticalExperimentation",o[o.CriticalUsage=194]="CriticalUsage",(r=e.PersistencePriority||(e.PersistencePriority={}))[r.NotSet=0]="NotSet",r[r.Normal=1]="Normal",r[r.High=2]="High",(i=e.CostPriority||(e.CostPriority={}))[i.NotSet=0]="NotSet",i[i.Normal=1]="Normal",i[i.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",(d=e.DnmInterval||(e.DnmInterval={}))[d.Hourly=1]="Hourly",d[d.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",(p=e.EventType||(e.EventType={}))[p.SendTelemetryEvent=1]="SendTelemetryEvent",p[p.CustomerContent=2]="CustomerContent",p[p.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,o=(n=[],{fireEvent:function(t){n.forEach(function(e){return e(t)})},addListener:function(e){e&&n.push(e)}});function r(e,t,n){o.fireEvent({level:e,category:t,message:n})}e.onNotification=function(){return o},e.logNotification=r,e.logError=function(e,t,n){r(0,e,function(){var e=n instanceof Error?n.message:"";return"".concat(t,": ").concat(e)})}}(oteljs=oteljs||{}),function(a){var e,t;function r(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=r;var n=(o.prototype.addEventContentType=function(e,t){e.push(a.makeInt64DataField("EventContent.Type",t))},o.prototype.sendTelemetryEvent=function(e){var t=r(e),n=t.telemetryProperties;n.nexusTenantToken=a.SuppressNexus;var o=n.ariaTenantToken;o||a.fillTenantTokens(t.eventName,n)||o?this.sendTelemetryEventInternal(t,1):a.logNotification(0,0,function(){return"No tenant token: "+e.eventName})},o.prototype.sendNonStandardEvent=function(e,t){var n=r(e);this.sendTelemetryEventInternal(n,t)},o.prototype.sendCustomerContent=function(e){var t=r(e),n=t.telemetryProperties,o=n.customerContentVersion;return(!o||2<o)&&(n.customerContentVersion=2),n.ariaTenantToken=void 0,n.nexusTenantToken=void 0,n.dnmToken=void 0,this.addEventContentType(t.dataFields,2),this.sendTelemetryEventInternal(t,2)},o.prototype.sendDirectNumericEvent=function(e){var t=r(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})},o.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"})},o.prototype.processTelemetryEvent=function(e,t){var n,o,r;if(e.dataFields&&(null!==(r=e.dataFields)&&void 0!==r&&r.unshift(a.makeStringDataField("OTelJS.Version",a.oteljsVersion)),3!==t&&this.persistentDataFields&&(n=e.dataFields).unshift.apply(n,this.persistentDataFields)),0<this.partAFields.length){var i=e.eventContract||{name:"",dataFields:[]};(o=i.dataFields).push.apply(o,this.partAFields),e.eventContract=i}this.config.disableValidation||a.validateTelemetryEvent(e)},o.prototype.addSink=function(e){this.telemetrySinks.push(e),this.flushQueue()},o.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 o=n[t],r=o[0],i=o[1];this.sendTelemetryEventInternal(r,i)}},o.prototype.setTenantToken=function(e,t,n){a.setTenantTokens(e,{ariaTenantToken:t,nexusTenantToken:n})},o.prototype.setDNMToken=function(e,t){a.setTenantTokens(e,{dnmToken:t})},o.prototype.cloneEvent=function(e){return r(e)},o.prototype.getConfig=function(){return this.config},o);function o(e,t,n){var o,r,i;this.telemetrySinks=[],this.persistentDataFields=[],this.partAFields=[],this.eventQueue=[],this.config=n||{},e&&(this.telemetrySinks=e.telemetrySinks,(o=this.persistentDataFields).push.apply(o,e.persistentDataFields),this.config=__assign(__assign({},e.getConfig()),this.config),(r=this.partAFields).push.apply(r,e.partAFields)),t&&(i=this.persistentDataFields).push.apply(i,t)}a.SimpleTelemetryLogger=n}(oteljs=oteljs||{}),function(e){var t=9007199254740991,n=-t,o=98,r=/^Office(\.[A-Z][a-zA-Z0-9]*){2,}$/,i=/^[a-zA-Z0-9_\.]{1,95}$/;function a(e){return i.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>o)return;return r.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 i={};n.setTenantTokens=function(e,t){"Office."===e.substring(0,7)&&"."!==e[e.length-1]?i[e]?(t.ariaTenantToken&&(i[e].ariaTenantToken=t.ariaTenantToken),t.dnmToken&&(i[e].dnmToken=t.dnmToken)):i[e]=t:n.logNotification(0,0,function(){return"Namespace: ".concat(e)})},n.fillTenantTokens=function(e,t){for(var n=e.length;0<n;){var o=e.substr(0,n);if(i[o]){var r=i[o];return t.ariaTenantToken=r.ariaTenantToken,t.dnmToken=r.dnmToken,!0}n=e.lastIndexOf(".",n-1)}return!1},n.clear=function(){i={}}}(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 r=this,e=this._telemetryQueue;this._telemetryQueue=[];var t=this._customerContentQueue;function n(e,t){if(e.telemetryProperties){var n=[];r.addDataFields(n,e.dataFields);var o=e.eventContract?e.eventContract.name:"";e.eventContract&&r.addDataFields(n,e.eventContract.dataFields),t(e.telemetryProperties,e.eventName,o,a.getEffectiveEventFlags(e),n)}}this._customerContentQueue=[];var i=new OfficeCore.RequestContext;return e.forEach(function(e){n(e,function(e,t,n,o,r){i.telemetry.sendTelemetryEvent(e,t,n,o,r)})}),t.forEach(function(e){n(e,function(e,t,n,o,r){i.telemetry.sendCustomerContent(e,t,n,o,r)})}),i.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(o){var e,t,n;e=o.Contracts||(o.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(o.makeStringDataField("".concat(e,".Id"),t.id)),void 0!==t.version&&n.push(o.makeStringDataField("".concat(e,".Version"),t.version)),void 0!==t.instanceId&&n.push(o.makeStringDataField("".concat(e,".InstanceId"),t.instanceId)),void 0!==t.name&&n.push(o.makeStringDataField("".concat(e,".Name"),t.name)),void 0!==t.marketplaceType&&n.push(o.makeStringDataField("".concat(e,".MarketplaceType"),t.marketplaceType)),void 0!==t.sessionId&&n.push(o.makeStringDataField("".concat(e,".SessionId"),t.sessionId)),void 0!==t.browserToken&&n.push(o.makeStringDataField("".concat(e,".BrowserToken"),t.browserToken)),void 0!==t.osfRuntimeVersion&&n.push(o.makeStringDataField("".concat(e,".OsfRuntimeVersion"),t.osfRuntimeVersion)),void 0!==t.officeJsVersion&&n.push(o.makeStringDataField("".concat(e,".OfficeJsVersion"),t.officeJsVersion)),void 0!==t.hostJsVersion&&n.push(o.makeStringDataField("".concat(e,".HostJsVersion"),t.hostJsVersion)),void 0!==t.assetId&&n.push(o.makeStringDataField("".concat(e,".AssetId"),t.assetId)),void 0!==t.providerName&&n.push(o.makeStringDataField("".concat(e,".ProviderName"),t.providerName)),void 0!==t.type&&n.push(o.makeStringDataField("".concat(e,".Type"),t.type)),n}}(oteljs=oteljs||{}),function(r){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(),o=OSF.AgaveHostAction.SendTelemetryEvent;OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n,o,e])}catch(e){r.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(),o=OSF.AgaveHostAction.SendCustomerContent;OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n,o,e])}catch(e){r.logError(1,"AgaveWacSink",e)}},t);function t(){}r.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 o(){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=o();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=o();return!!(n()||"win32"===e||"mac"===e&&window._useSDXSandbox)},t.isNativeDialog=function(){var e=o();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,o=Object.keys(n).map(function(e){return e.toLowerCase()}).indexOf(e.toLowerCase());if(-1<o){var r=n[Object.keys(n)[o]];try{var i=s(t),a=void 0;if(0<(a=Array.isArray(r)?function(e,t){for(var n=0;n<e.length;n++){var o=s(e[n]);if(o.major==t)return o}return{major:0,minor:0,patch:0}}(r,i.major):s(r)).major){if(a.major>i.major)return!0;if(a.major==i.major&&a.minor>i.minor)return!0;if(a.major==i.major&&a.minor==i.minor&&a.patch>=i.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,o=0,r=0;if(t.length<2&&isNaN(Number(e)))throw"version format incorrect";if(n=Number(t[0]),2<=t.length&&(o=Number(t[1])),3<=t.length&&(r=Number(t[2])),isNaN(n)||isNaN(o)||isNaN(r))throw"version format incorrect";return{major:n,minor:o,patch:r}}}(OfficeRuntime=OfficeRuntime||{});var OfficeRuntime;__extends=this&&this.__extends||function(){var o=function(e,t){return(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}();!function(i){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),o=(OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined),r=(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;i.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 d,f=(__extends(p,d=e),p.prototype.close=function(){return this._dialogService.close(),this._dialogService.context.sync()},p);function p(){return null!==d&&d.apply(this,arguments)||this}function m(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}}i.displayWebDialog=function(o,r){return void 0===r&&(r={}),new OfficeExtension.CoreUtility.Promise(function(e,t){if(r.width&&r.height&&(!m(r.width)||!m(r.height)))throw new OfficeExtension.Error({code:"InvalidArgument",message:'Dimensions must be "number%" or number.'});var n={width:r.width?parseInt(r.width):50,height:r.height?parseInt(r.height):50,displayInIFrame:r.displayInIFrame};(i.ApiHelper.isNativeDialog()?function(e,t,n,o,r){void 0===r&&(r={});var i=new OfficeExtension.ClientRequestContext,a=b.newObject(i),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:r.onMessage&&r.onMessage(e.message,s);break;case 10:default:12006===e.originalErrorCode?(c&&(c.remove(),i.sync()),r.onClose&&r.onClose()):r.onRuntimeError&&(r.onRuntimeError(e.error,s),n(e.error))}return OfficeExtension.CoreUtility.Promise.resolve()});i.sync().then(function(){return a.displayDialog(o,e),i.sync()}).catch(function(e){n(e)})}:function(e,t,n,o,r){void 0===r&&(r={});var i;function a(e){r.onMessage&&r.onMessage(e.message,i,e.origin)}function s(e){12006===e.error?r.onClose&&r.onClose():r.onRuntimeError&&r.onRuntimeError(new OfficeExtension.Error(g(e.error)),i)}Office.context.ui.displayDialogAsync(o,e,function(e){"failed"===e.status?n(new OfficeExtension.Error(g(e.error.code))):((i=e.value).addEventHandler(Office.EventType.DialogMessageReceived,a),i.addEventHandler(Office.EventType.DialogEventReceived,s),t(new l(i)))})})(n,e,t,o,r)})};var h,y,v,b=(h=OfficeExtension.ClientObject,__extends(C,h),Object.defineProperty(C.prototype,"_className",{get:function(){return"DialogService"},enumerable:!0,configurable:!0}),C.prototype.close=function(){n(this,"Close",1,[],4,0)},C.prototype.displayDialog=function(e,t){n(this,"DisplayDialog",1,[e,t],4,0)},C.prototype._handleResult=function(e){h.prototype._handleResult.call(this,e),o(e)||a(this,e)},C.prototype._handleRetrieveResult=function(e,t){h.prototype._handleRetrieveResult.call(this,e,t),s(this,e,t)},C.newObject=function(e){return t(i.DialogService,e,"Microsoft.Dialog.DialogService",!1,4)},Object.defineProperty(C.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),o=n.errorCode?new OfficeExtension.Error(g(n.errorCode)):null;t={originalErrorCode:n.errorCode,type:n.type,error:o,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}),C.prototype.toJSON=function(){return r(this,{},{})},C);function C(){return null!==h&&h.apply(this,arguments)||this}i.DialogService=b,(v=y=y||{})[v.dialogMessageReceived=0]="dialogMessageReceived",v[v.dialogEventReceived=1]="dialogEventReceived",(i.DialogErrorCodes||(i.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 o(e,t){try{var n=Microsoft.Office.WebExtension.FeatureGates,o=parseInt(n[e]);return isNaN(o)?t:o}catch(e){return t}}function r(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=o,t.getStringFeatureGate=r,t.getBooleanFeatureGateAsync=function(e,t){return Promise.resolve(n(e,t))},t.getIntFeatureGateAsync=function(e,t){return Promise.resolve(o(e,t))},t.getStringFeatureGateAsync=function(e,t){return Promise.resolve(r(e,t))}}(OfficeRuntime=OfficeRuntime||{}),function(e){var t,r;t=e.message||(e.message={}),r={},t.on=function(e,t){return function(e,t){r.hasOwnProperty(e)||(r[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;r.hasOwnProperty(t)&&r[t].call(n)}.bind(this))}());r[e].add(t)}(e,t),new Promise(function(e){e()})},t.off=function(e,t){var n,o;return n=e,o=t,r.hasOwnProperty(n)&&(o?r[n].remove(o):delete r[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=(o.prototype.add=function(e){this.listeners.push(e)},o.prototype.remove=function(e){var t=this.listeners.lastIndexOf(e);-1!==t&&this.listeners.splice(t,1)},o.prototype.call=function(t){this.listeners.forEach(function(e){return e(t)})},o);function o(){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,o=(OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod),r=(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),i=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 p(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,o){return p(function(e,t){return e.multiSet(t,JSON.stringify([[n,o]]))},function(){return null})},removeItem:function(n){return p(function(e,t){return e.multiRemove(t,JSON.stringify([n]))},function(){return null})},getItems:function(n){return p(function(e,t){return e.multiGet(t,JSON.stringify(n))},function(e){var t=JSON.parse(e),o={};return t&&t.forEach(function(e){var t=e[0],n=e[1];return o[t]=n}),n&&n.forEach(function(e){o[e]&&o[e]}),o})},setItems:function(e){var n=[];for(var t in e)e.hasOwnProperty(t)&&n.push([t,e[t]]);return p(function(e,t){return e.multiSet(t,JSON.stringify(n))},function(){return null})},removeItems:function(n){return p(function(e,t){return e.multiRemove(t,JSON.stringify(n))},function(){return null})},getKeys:function(){return p(function(e,t){return e.getAllKeys(t)},function(e){return JSON.parse(e)})}},u={getItem:function(e){return h(function(){return d(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(r){return new Promise(function(e,t){var n={},o=[];try{m()}catch(e){t(e)}r.forEach(function(e){try{var t=d(e);n[e]=t||null}catch(e){o.push(e)}}),0<o.length?t(new Error("Unknown error.")):e(n)})},setItems:function(t){return y(t,function(e){return f(e,t[e])})},removeItems:function(e){return y(e,function(e){return window.localStorage.removeItem(s+e)})},getKeys:function(){return h(function(){return Object.keys(window.localStorage).filter(function(e){return 0===e.indexOf(s)}).map(function(e){return e.substr(s.length)})})}};function d(e){return window.localStorage.getItem(s+e)}function f(e,t){window.localStorage.setItem(s+e,t)}function p(i,a){return new OfficeExtension.CoreUtility.Promise(function(o,r){var t=v.getInstance(),n=t.setCallBack(function(e,t){if(t)r(t);else{var n=a(e);o(n)}});t.ctx.sync().then(function(){var e=t.getPersistentKvStorageService();return i(e,n),t.ctx.sync()}).catch(function(e){r(e)})})}function m(){f(c,null),window.localStorage.removeItem(c)}function g(n,o){return void 0===o&&(o=function(){}),new Promise(function(e,t){try{m(),n(),o(null),e()}catch(e){o(e),t(e)}})}function h(o,r){return void 0===r&&(r=function(){}),new Promise(function(e,t){try{m();var n=o();r(null,n),e(n)}catch(e){r(e,null),t(e)}})}function y(r,i,a){return void 0===a&&(a=function(){}),new Promise(function(e,t){var n=[];try{m()}catch(e){n.push(e)}for(var o in r)if(r.hasOwnProperty(o)||Array.isArray(r))try{Array.isArray(r)?i(r[o]):i(o)}catch(e){n.push(e)}a(n),0<n.length?t(n):e()})}t.ApiHelper.isNativeStorage()?t.storage=l:t.storage=u;var v=(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 C,O=(C=OfficeExtension.ClientObject,__extends(_,C),Object.defineProperty(_.prototype,"_className",{get:function(){return"PersistentKvStorageService"},enumerable:!0,configurable:!0}),_.prototype.clear=function(e){o(this,"Clear",1,[e],4,0)},_.prototype.getAllKeys=function(e){o(this,"GetAllKeys",1,[e],4,0)},_.prototype.multiGet=function(e,t){o(this,"MultiGet",1,[e,t],4,0)},_.prototype.multiRemove=function(e,t){o(this,"MultiRemove",1,[e,t],4,0)},_.prototype.multiSet=function(e,t){o(this,"MultiSet",1,[e,t],4,0)},_.prototype._handleResult=function(e){C.prototype._handleResult.call(this,e),r(e)||i(this,e)},_.prototype._handleRetrieveResult=function(e,t){C.prototype._handleRetrieveResult.call(this,e,t),a(this,e,t)},_.newObject=function(e){return n(t.PersistentKvStorageService,e,"Microsoft.PersistentKvStorage.PersistentKvStorageService",!1,4)},Object.defineProperty(_.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,o,r;try{var i=JSON.parse(e.message),a=parseInt(i.errorCode),s=0!=a?new OfficeExtension.Error((n=a,(o={})[16389]={code:"GenericException",message:"Unknown error."},o[65535]={code:"Unexcepted",message:"Catastrophic failure."},o[14]={code:"OutOfMemory",message:"Ran out of memory."},o[87]={code:"InvalidArg",message:"One or more arguments are invalid."},o[16385]={code:"NotImplemented",message:"Not implemented."},o[6]={code:"BadHandle",message:"File Handle is not Set."},o[5]={code:"AccessDenied",message:"Can't read the Storage File."},(r=o)[n]?r[n]:{code:"Unknown",message:"An unknown error has occured"})):null;t={invokeId:i.invokeId,message:i.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}),_.prototype.toJSON=function(){return e(this,{},{})},_);function _(){return null!==C&&C.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 o=function(e,t){return(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(i,a,s,c){return new(s=s||Promise)(function(e,t){function n(e){try{r(c.next(e))}catch(e){t(e)}}function o(e){try{r(c.throw(e))}catch(e){t(e)}}function r(t){t.done?e(t.value):new s(function(e){e(t.value)}).then(n,o)}r((c=c.apply(i,a||[])).next())})},__generator=this&&this.__generator||function(n,o){var r,i,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(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,i&&(a=2&t[0]?i.return:t[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,t[1])).done)return a;switch(i=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++,i=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=o.call(n,s)}catch(e){t=[6,e],i=0}finally{r=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,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};!function(t){OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject;var n,o=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),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){r(this,"Initialize",0,[e],c(2,"SharedApiUndo","1.5"),0)},u.prototype.getData=function(){return r(this,"getData",1,[],4,0)},u.prototype.setVisualObjects=function(e){r(this,"setVisualObjects",0,[e],2,0)},u.prototype.setVisualObjectsToPersist=function(e){r(this,"setVisualObjectsToPersist",0,[e],2,0)},u.prototype._handleResult=function(e){n.prototype._handleResult.call(this,e),i(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 o(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(r){OfficeExtension.BatchApiHelper.createPropertyObject;var n,i=OfficeExtension.BatchApiHelper.createMethodObject,t=(OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject,OfficeExtension.BatchApiHelper.createTopLevelServiceObject),o=(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,d=OfficeExtension.Utility.toJson,f=OfficeExtension.Utility.fixObjectPathIfNecessary,p=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult),m=(n=OfficeExtension.ClientObject,__extends(g,n),Object.defineProperty(g.prototype,"_className",{get:function(){return"FlightingService"},enumerable:!0,configurable:!0}),g.prototype.getClientSessionId=function(){return o(this,"GetClientSessionId",1,[],4,0)},g.prototype.getDeferredFlights=function(){return o(this,"GetDeferredFlights",1,[],4,0)},g.prototype.getFeature=function(e,t,n,o){return i(r.ABType,this,"GetFeature",1,[e,t,n,o],!1,!1,null,4)},g.prototype.getFeatureGate=function(e,t){return i(r.ABType,this,"GetFeatureGate",1,[e,t],!1,!1,null,4)},g.prototype.resetOverride=function(e){o(this,"ResetOverride",0,[e],0,0)},g.prototype.setOverride=function(e,t,n){o(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),p(this,e,t)},g.newObject=function(e){return t(r.FlightingService,e,"Microsoft.Experiment.FlightingService",!1,4)},g.prototype.toJSON=function(){return d(this,{},{})},g);function g(){return null!==n&&n.apply(this,arguments)||this}r.FlightingService=m;var h,y,v=(h=OfficeExtension.ClientObject,__extends(b,h),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(h.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){h.prototype._handleRetrieveResult.call(this,e,t),p(this,e,t)},b.prototype.toJSON=function(){return d(this,{value:this._V},{})},b.prototype.ensureUnchanged=function(e){a(this,e)},b);function b(){return null!==h&&h.apply(this,arguments)||this}r.ABType=v,(y=r.FeatureType||(r.FeatureType={})).boolean="Boolean",y.integer="Integer",y.string="String",(r.ExperimentErrorCodes||(r.ExperimentErrorCodes={})).generalException="GeneralException"}(OfficeCore=OfficeCore||{}),function(o){var e,t,n=(r.prototype.close=function(){return this._dialogService.close(),this._dialogService.context.sync()},r.prototype.messageChild=function(e,t){DialogApiManager&&DialogApiManager.messageChildRichApiBridge&&DialogApiManager.messageChildRichApiBridge(e,t)},r);function r(e){this._dialogService=e}o.Dialog=n,o.displayWebDialog=function(n,m){return void 0===m&&(m={}),new OfficeExtension.CoreUtility.Promise(function(l,u){if(m.width&&m.height&&(!e(m.width)||!e(m.height)))throw new OfficeExtension.Error({code:"InvalidArgument",message:'Dimensions must be "number%" or number.'});var d=new OfficeExtension.ClientRequestContext,t=OfficeCore.FirstPartyDialogService.newObject(d),f=new o.Dialog(t),p=t.onDialogMessage.add(function(e){OfficeExtension.Utility.log("dialogMessageHandler:"+JSON.stringify(e));var t,n,o,r=JSON.parse(e.message),i=r.errorCode?new OfficeExtension.Error((t=r.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."},(o=n)[t]?o[t]:{code:"Unknown",message:"An unknown error has occured with code: "+t})):null,a=r.type,s=r.origin,c=r.message;switch(a){case 17:i?u(i):l(f);break;case 12:m.onMessage&&m.onMessage(c,f,s);break;case 10:default:12006===r.errorCode?(p&&(p.remove(),d.sync()),m.onClose&&m.onClose()):m.onRuntimeError&&(m.onRuntimeError(i,f),u(i))}return OfficeExtension.CoreUtility.Promise.resolve()});return d.sync().then(function(){var e={width:m.width?parseInt(m.width):50,height:m.height?parseInt(m.height):50,displayInIFrame:m.displayInIFrame,dialogTitle:m.dialogTitle,escKeyCloseDialog:void 0===m.escKeyCloseDialog||m.escKeyCloseDialog};return t.displayDialog(n,e),d.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 o,r=(o=OfficeExtension.ClientRequestContext,__extends(i,o),Object.defineProperty(i.prototype,"firstParty",{get:function(){return this.m_firstPartyApis||(this.m_firstPartyApis=new e(this)),this.m_firstPartyApis},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"flighting",{get:function(){return this.flightingService},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"telemetry",{get:function(){return this.m_telemetry||(this.m_telemetry=n.TelemetryService.newObject(this)),this.m_telemetry},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ribbon",{get:function(){return this.m_ribbon||(this.m_ribbon=n.DynamicRibbon.newObject(this)),this.m_ribbon},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bi",{get:function(){return this.m_biShim||(this.m_biShim=n.BiShim.newObject(this)),this.m_biShim},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"flightingService",{get:function(){return this.m_flightingService||(this.m_flightingService=n.FlightingService.newObject(this)),this.m_flightingService},enumerable:!0,configurable:!0}),i);function i(e){return o.call(this,e)||this}n.RequestContext=r,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(r,i){return __awaiter(this,void 0,void 0,function(){var t,n,o;return __generator(this,function(e){switch(e.label){case 0:return t=s(),n=OfficeCore.License.newObject(t),o=n.isFeatureEnabled(r,i),[4,t.sync()];case 1:return e.sent(),[2,o.value]}})})},t.getFeatureTier=function(r,i){return __awaiter(this,void 0,void 0,function(){var t,n,o;return __generator(this,function(e){switch(e.label){case 0:return t=s(),n=OfficeCore.License.newObject(t),o=n.getFeatureTier(r,i),[4,t.sync()];case 1:return e.sent(),[2,o.value]}})})},t.isFreemiumUpsellEnabled=function(){return __awaiter(this,void 0,void 0,function(){var t,n,o;return __generator(this,function(e){switch(e.label){case 0:return t=s(),n=OfficeCore.License.newObject(t),o=n.isFreemiumUpsellEnabled(),[4,t.sync()];case 1:return e.sent(),[2,o.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(i,a){return __awaiter(this,void 0,void 0,function(){var t,n,o,r;return __generator(this,function(e){switch(e.label){case 0:return t=s(),n=OfficeCore.License.newObject(t),(o=n.getLicenseFeature(i)).onStateChanged.add(a),r=function(){return o.onStateChanged.remove(a),null},[4,t.sync()];case 1:return e.sent(),[2,r]}})})},t.getMsaDeviceTicket=function(r,i,a){return __awaiter(this,void 0,void 0,function(){var t,n,o;return __generator(this,function(e){switch(e.label){case 0:return t=s(),n=OfficeCore.License.newObject(t),o=n.getMsaDeviceTicket(r,i,a),[4,t.sync()];case 1:return e.sent(),[2,o.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,o,r=OfficeExtension.BatchApiHelper.createTopLevelServiceObject,a=(OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod),i=(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),d=(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,o,r,i){s("TelemetryService.sendNonStandardEvent","Telemetry","1.4","OfficeCore"),a(this,"SendNonStandardEvent",1,[e,t,n,o,r,i],4,0)},f.prototype.sendTelemetryEvent=function(e,t,n,o,r){a(this,"SendTelemetryEvent",1,[e,t,n,o,r],4,0)},f.prototype._handleResult=function(e){n.prototype._handleResult.call(this,e),i(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 r(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=d,(e=t.DataFieldType||(t.DataFieldType={})).unset="Unset",e.string="String",e.boolean="Boolean",e.int64="Int64",e.double="Double",(o=t.EventType||(t.EventType={})).sendTelemetryEvent="SendTelemetryEvent",o.customerContent="CustomerContent",o.directNumericEvent="DirectNumericEvent",(t.TelemetryErrorCodes||(t.TelemetryErrorCodes={})).generalException="GeneralException"}(OfficeCore=OfficeCore||{}),function(c){var l="officeWebAuthReplyUrls",g=!1,o=null;function e(n){function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r=n.apply(void 0,e)}var r=null,i=null;return{immediateCall:o,delayCall:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i=function(){return o.apply(void 0,e)}},waitForPromise:function(){return i&&(i(),i=null),r||Promise.resolve()}}}function h(o){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return(t=!1,o&&c.supportsTeamsTokenFlow)?(t=!0,[3,3]):[3,1];case 1:return[4,r()];case 2:(n=e.sent()).supportsAuthToken?t=!0:o&&(t=!n.hostPageSupportsAuth),e.label=3;case 3:return[2,t]}})})}function r(){return Office&&Office.context&&Office.context.webAuth?o?Promise.resolve(o):new Promise(function(t,n){Office.context.webAuth.getAuthContextAsync(function(e){if("succeeded"===e.status){if(!(o=e.value)||o.isAnonymous)return void n({code:"CannotGetAuthContext",message:o?o.Error:void 0,loggableErrorMessage:"Anonymous user"});if(!o.appId)return void n({code:"CannotGetAuthContext",message:"App ID is missing from getAuthContextAsync. Please verify the WebApplicationInfo node in app manifest."});t(o)}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 y=e(function(a,s){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(e){switch(e.label){case 0:return c.supportsBrowserAuth?[4,r()]:[2,Promise.reject({code:"PackageNotLoaded"})];case 1:return i=e.sent(),[2,new Promise(function(t,n){try{var e="msa"===i.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:i.authority,idp:i.authorityType.toLowerCase(),appIds:[e&&i.msaAppId?i.msaAppId:i.appId],redirectUri:a||null,upn:i.upn,puid:i.userId,prefetch:s,telemetryInstance:"otel",autoPopup:c.autoPopup,enableUpnCheck:c.upnCheck,enableConsoleLogging:c.debugging,tenantId:i.tenantId,timeout:c.timeout},OSF.WebAuth.load().then(function(e){u(e,g=!0),t()}).catch(function(e){n({code:"PackageNotLoaded",message:e instanceof Event?e.type:e,telemetryResult:e})}),"implicit"===c.authFlow){var o=a||window.location.href.split("?")[0],r=sessionStorage.getItem(l);r||""===r?r=o:r+=", "+o,r&&sessionStorage.setItem(l,r)}}catch(e){OSF.WebAuth.config=null,OSF.WebAuth.load().then(function(){t()}).catch(function(){n({code:"FailedToLoad",message:e})})}})]}})})});var n=e(function(o,r){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]),y.delayCall(o,r),[4,h(c.supportsOauthManager)];case 2:return e.sent()?[3,4]:[4,y.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(i,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||(i instanceof Event?i.type:""))],o=e.concat(n,[oteljs.makeBooleanDataField("Result",a)]);if(i&&!(i instanceof Event)&&i.Telemetry)for(var r in i.Telemetry)if(i.Telemetry[r])switch(r){case"succeeded":o.push(oteljs.makeBooleanDataField(r,i.Telemetry[r]));break;case"loadedApplicationCount":case"timeToLoad":o.push(oteljs.makeInt64DataField(r,i.Telemetry[r]));break;default:o.push(oteljs.makeStringDataField(r,i.Telemetry[r]))}OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.OfficeFirstPartyAuth.Load",dataFields:o,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage}})})}function v(n,o,r){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("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 r&&r),oteljs.makeBooleanDataField("Result",o),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(p,m){var e=this;return n.waitForPromise().then(function(){return new Promise(function(d,f){return __awaiter(e,void 0,void 0,function(){var o,r,i,a,s,c,l,u;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,h(!!p.appName)];case 1:return e.sent()?[3,3]:[4,y.waitForPromise()];case 2:return e.sent(),OSF.WebAuth&&g?OSF.WebAuth.config.appIds[0]&&OSF.WebAuth.getToken(p.resource,null,OSF.WebAuth.config.appIds[0],p.correlationId||OSF._OfficeAppFactory.getHostInfo().osfControlAppCorrelationId,m&&m.popup?m.popup:null,p&&p.authChallenge?p.authChallenge:null).then(function(e){v(e,!0,!(!m||!m.popup)&&m.popup),d({accessToken:e.Token,tokenIdenityType:"msa"==OSF.WebAuth.config.idp.toLowerCase()?OfficeCore.IdentityType.microsoftAccount:OfficeCore.IdentityType.organizationAccount})}).catch(function(e){v(e,!1,!(!m||!m.popup)&&m.popup),f({code:e.ErrorCode,message:e instanceof Event?e.type:e.ErrorMessage})}):(t=g,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 o=new OfficeCore.RequestContext,a=OfficeCore.AuthenticationService.newObject(o),o._customData="WacPartition",r=a.getAccessToken(p,null),[4,o.sync()];case 4:e.sent(),d(r.value),e.label=5;case 5:return[3,9];case 6:return i=new OfficeCore.RequestContext,a=OfficeCore.AuthenticationService.newObject(i),s=a.onTokenReceived.add(function(t){if(!OfficeExtension.CoreUtility.isNullOrUndefined(t))if(s.remove(),i.sync().catch(function(){}),0==t.code)d(t.tokenValue);else if(OfficeExtension.CoreUtility.isNullOrUndefined(t.errorInfo))f({code:t.code});else try{f(JSON.parse(t.errorInfo))}catch(e){f({code:t.code,message:t.errorInfo})}return null}),[4,i.sync()];case 7:return e.sent(),c=a.getAccessToken(p,a._targetId),[4,i.sync()];case 8:if(e.sent(),OfficeExtension.CoreUtility.isNullOrUndefined(c.value))return[2,null];l=c.value.accessToken,OfficeExtension.CoreUtility.isNullOrUndefined(l)||d(c.value),e.label=9;case 9:return[3,11];case 10:return u=e.sent(),f(u),[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(r){return __awaiter(this,void 0,void 0,function(){var t,n,o=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(r),[4,t.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 n.onIdentityChanged.remove(r),[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 o,e,d,t;(e=o=l.PopupOptions||(l.PopupOptions={}))[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Force=2]="Force",(t=d=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:d.UnsupportedUserIdentity,USER_CANCEL:d.UserAborted,USER_INTERACTION_REQUIRED:d.InteractionRequired,PERSISTENT_ERROR:d.ClientError,NO_NETWORK:d.ServerError,TRANSIENT_ERROR:d.ServerError,NESTED_APP_AUTH_UNAVAILABLE:d.NotAvailable},r={POPUP_WINDOW_ERROR:d.ClientError,USER_CANCELLED:d.UserAborted},u={ACCESS_TOKEN:"access_token",XMS_CC:"xms_cc"},p=0,m=!1,g=!1,n=void 0,s=null,h=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 y={},v=function(e){try{var t="string"==typeof e?e:e.data,n=JSON.parse(t);if(n.requestId){var o=n.requestId;if(y.hasOwnProperty(o)){var r=d.InternalError,i=y[o],a=i[0],s=i[1];delete y[o];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]&&(r=f[u])}s({code:r})}}}catch(e){}},b={code:d.NotAvailable};function i(i,a){function e(e){function t(e,t){var n=Date.now()-o;!function(t,n,o,r,i){if(0<p&&!o)return;p++,void 0!==OTel&&OTel.OTelLogger.onTelemetryLoaded(function(){var e=[oteljs.makeStringDataField("NestedClientId",t),oteljs.makeStringDataField("CorrelationId",n),oteljs.makeBooleanDataField("Popup",o),oteljs.makeInt64DataField("Duration",r),oteljs.makeInt64DataField("ErrorCode",i?i.code:0),oteljs.makeBooleanDataField("BridgeAvailable",C())];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=i.clientId||h,c=i.correlationId||OSF.OUtil.Guid.generateNewGuid(),o=Date.now();return C()?e(new Promise(function(e,t){var n=OSF.OUtil.Guid.generateNewGuid(),o=i.scopes.join(" "),r={messageType:"NestedAppAuthRequest",method:a?"GetTokenPopup":"GetToken",requestId:n,clientLibrary:"officejs",sendTime:Date.now(),tokenParams:{clientId:s,scope:o,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)}(i.claims)}};m||(nestedAppAuthBridge.addEventListener("message",v),m=!0),y[n]=[e,t],nestedAppAuthBridge.postMessage(JSON.stringify(r))})):e(n?n.then(function(){if(!g)return Promise.reject(b);var e=i.scopes.join(" ");return e=e.replace(/(\/.default)$/,""),OSF.WebAuth.getToken(e,i.scopes,s,c,a,i.claims).then(function(e){return{accessToken:e.Token,expiresOn:e.MsalResult?e.MsalResult.expiresOn:void 0}}).catch(function(e){var t=d.InternalError,n=void 0;if(e)if(n=e.ErrorMessage,e.MsalResult&&"InteractionRequiredAuthError"===e.MsalResult.name)t=d.InteractionRequired;else if(e.ErrorCode){var o=e.ErrorCode.toUpperCase();r[o]&&(t=r[o])}return Promise.reject({code:t,description:n})})}):Promise.reject(b))}function C(){return"undefined"!=typeof nestedAppAuthBridge}l.isBridgeAvailable=C,l.load=function(o,r,i,a){return h=o,a&&(l.clientCapabilities=a),n||(n=new Promise(function(t,n){if(C())t();else if(Office&&Office.context&&Office.context.auth&&OSF.WebAuth)try{Office.context.auth.getAuthContextAsync(function(e){if("succeeded"===e.status){if(!(s=e.value))return void n(b);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:s.authorityBaseUrl,idp:"msa"===s.authorityType.toLowerCase()?"msa":"aad",appIds:[o],redirectUri:r||null,upn:s.userPrincipalName,prefetch:i,telemetryInstance:"otel",enableUpnCheck:l.upnCheck,enableConsoleLogging:l.debugging,checkActiveAccount:!0,tenantId:s.tenantId,timeout:l.timeout,clientCapabilities:a},OSF.WebAuth.load().then(function(e){g=!0,t()}).catch(function(e){n(__assign({},b,{description:e instanceof Event?e.type:void 0}))})}else n(b)})}catch(e){n(b)}else n(b)}))},l.getAccessToken=function(t){var n=null==t.popup?o.None:t.popup;if(n===o.Auto&&!t.directUserActionCallback)throw{code:d.InvalidApiArguments};return i(t,n===o.Force).catch(function(e){if(e.code==d.InteractionRequired&&n===o.Auto&&t.directUserActionCallback)return t.directUserActionCallback().then(function(e){if(e)return i(t,!0);throw{code:d.UserAborted}}).catch(function(){throw{code:d.UserAborted}});throw e})}}(e.NestedAppAuth||(e.NestedAppAuth={}))}(OfficeFirstPartyAuth=OfficeFirstPartyAuth||{}),function(i){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;(i._CC||(i._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},(i._CC||(i._CC={})).ThemeService_OfficeThemeChanged_EventArgsTransform=function(e,t){return{bodyBackgroundColor:t.bodyBackgroundColor,bodyForegroundColor:t.bodyForegroundColor,controlBackgroundColor:t.controlBackgroundColor,controlForegroundColor:t.controlForegroundColor}},(e=n=i.PersonaPromiseType||(i.PersonaPromiseType={}))[e.immediate=0]="immediate",e[e.load=3]="load";var a=function(){};i.PersonaInfoAndSource=a;var t=(o.prototype.performAsyncOperation=function(e,l,u,d){var t=this;e!=n.immediate?d().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(i){var a=function(r){return new OfficeExtension.CoreUtility.Promise(function(t,e){if(r.sendingPersonaHostId==s)for(var n=0;n<r.dataUpdated.length;++n){var o=r.dataUpdated[n];if(l==o)return void d().then(function(e){e&&(u(),i.onPersonaUpdated.remove(a),c.context.sync()),t(e)})}t(!1)})};i.onPersonaUpdated.add(a),c.context.sync()})})}}):u()},o.prototype.getOrganizationAsync=function(n){var r=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var o=r;r.performAsyncOperation(n,PersonaDataUpdated.organization,function(){var e=o.organization;e.load("*"),o.context.sync().then(function(){t(e)})},function(){return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=o.organization;n.load("isWarmedUp"),o.context.sync().then(function(){e(n.isWarmedUp)})})})})},o.prototype.getIsPersonaInfoResolvedCheck=function(){var o=this;return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=o.personaInfo;n.load("isPersonResolved"),o.context.sync().then(function(){e(n.isPersonResolved)})})},o.prototype.getPersonaInfoAsync=function(o){var r=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=r;r.performAsyncOperation(o,PersonaDataUpdated.personaInfo,function(){var e=n.personaInfo;e.load(),n.context.sync().then(function(){t(e)})},function(){return r.getIsPersonaInfoResolvedCheck()})})},o.prototype.getPersonaInfoWithSourceAsync=function(o){var r=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=r;r.performAsyncOperation(o,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 r.getIsPersonaInfoResolvedCheck()})})},o.prototype.getUnifiedCommunicationInfo=function(o){var r=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=r;r.performAsyncOperation(o,PersonaDataUpdated.personaInfo,function(){var e=n.unifiedCommunicationInfo;e.load("*"),n.context.sync().then(function(){t(e)})},function(){return r.getIsPersonaInfoResolvedCheck()})})},o.prototype.getUnifiedGroupInfoAsync=function(o){var r=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=r;r.performAsyncOperation(o,PersonaDataUpdated.personaInfo,function(){var e=n.unifiedGroupInfo;e.load("*"),n.context.sync().then(function(){t(e)})},function(){return r.getIsPersonaInfoResolvedCheck()})})},o.prototype.getTypeAsync=function(o){var r=this;return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=r;r.performAsyncOperation(o,PersonaDataUpdated.personaInfo,function(){n.load("type"),n.context.sync().then(function(){e(i.PersonaType[n.type.valueOf()])})},function(){return r.getIsPersonaInfoResolvedCheck()})})},o.prototype.getCustomizationsAsync=function(o){var r=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=r;r.performAsyncOperation(o,PersonaDataUpdated.personaInfo,function(){var e=n.getCustomizations();n.context.sync().then(function(){t(e.value)})},function(){return r.getIsPersonaInfoResolvedCheck()})})},o.prototype.getMembersAsync=function(n){var r=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var o=r;r.performAsyncOperation(n,PersonaDataUpdated.members,function(){var e=o.getMembers();e.load("isWarmedUp"),o.context.sync().then(function(){t(e)})},function(){return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=o.getMembers();n.load("isWarmedUp"),o.context.sync().then(function(){e(n.isWarmedUp)})})})})},o.prototype.getMembershipAsync=function(o){var r=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=r;r.performAsyncOperation(o,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)})})})})},o.prototype.getPersonaLifetime=function(){var o=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=o;n.load("instanceId"),n.context.sync().then(function(){new r(n.context,n.instanceId).getPersonaLifetime().then(function(e){t(e)})})})},o);function o(){}i.PersonaCustom=t;var r=(Object.defineProperty(s.prototype,"serviceContext",{get:function(){return this.m_serviceConext||(this.m_serviceConext=i.ServiceContext.newObject(this.context)),this.m_serviceConext},enumerable:!0,configurable:!0}),s.prototype.getPersonaLifetime=function(){var o=this;return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=o.serviceContext.getPersonaLifetime(o.instanceId);o.context.sync().then(function(){n.load("instanceId"),o.context.sync().then(function(){e(n)})})})},s.prototype.getInitialPersona=function(){var o=this;return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=o.serviceContext.getInitialPersona(o.instanceId);o.context.sync().then(function(){e(n)})})},s.prototype.getLokiTokenProvider=function(){var o=this;return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=o.serviceContext.getLokiTokenProvider(o.instanceId);o.context.sync().then(function(){n.load("instanceId"),o.context.sync().then(function(){e(n)})})})},s);function s(e,t){this.context=e,this.instanceId=t}i.PeopleApiContext=r,(i._CC||(i._CC={})).FirstPartyDialogService_DialogMessage_EventArgsTransform=function(e,t){return{message:t.message}};var c,l,u=(Object.defineProperty(d.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}),d);function d(){}i.AuthenticationServiceCustom=u,(i._CC||(i._CC={})).AuthenticationService_TokenReceived_EventArgsTransform=function(e,t){return{tokenValue:t.tokenValue,code:t.code,errorInfo:t.errorInfo}},(c=i._CC||(i._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},(i._CC||(i._CC={})).AddinSkillActionService_ReplyReceived_EventArgsTransform=function(e,t){return{actionCorrelationId:t.actionCorrelationId,replyMessage:t.replyMessage,resultCode:t.resultCode}},(l=i.ErrorCodes||(i.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",i.Interfaces||(i.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"],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}]],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],[128,0,2,0,5],[129,0,2,0,5]],0,0,0,[["CopilotAgentEvent",0,0,"CopilotAgentEventType.onCopilotAgentEvent",65,128,129]],"Microsoft.Office.UnifiedStoreService",5]]},targetNamespaceObject:i})}(OfficeCore=OfficeCore||{}),function(e){var i,t,a,n,o,s,r;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=i=e.VisibilityMode||(e.VisibilityMode={})).hidden="Hidden",t.taskpane="Taskpane",(n=a=e.StartupBehavior||(e.StartupBehavior={})).none="None",n.load="Load",(o=e.addin||(e.addin={})).setStartupBehavior=function(o){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:if(o!==a.load&&o!==a.none)throw OfficeExtension.Utility.createRuntimeError(OfficeExtension.ErrorCodes.invalidArgument,null,null);return t=o==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]}})})},o.getStartupBehavior=function(){return __awaiter(this,void 0,void 0,function(){var t,n,o,r;return __generator(this,function(e){switch(e.label){case 0:return t=c(!1),n=OfficeCore.AppRuntimePersistenceService.newObject(t),o=n.getAppRuntimeStartState(),[4,t.sync()];case 1:return e.sent(),r=o.value,[2,r==OfficeCore.AppRuntimeState.inactive?a.none:a.load]}})})},o.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()]}})})},o.getSnapshotEnabled=function(){return __awaiter(this,void 0,void 0,function(){var t,n,o;return __generator(this,function(e){switch(e.label){case 0:return t=c(!0),n=OfficeCore.AppRuntimeService.newObject(t),o=n.getSnapshotEnabled(),[4,t.sync()];case 1:return e.sent(),[2,o.value]}})})},o.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 o=c(!0),e=OfficeCore.AppRuntimeService.newObject(o),r=setTimeout(function(){i.remove(),o.sync().catch(function(){}),n(OfficeExtension.Utility.createRuntimeError(OfficeExtension.ErrorCodes.generalException,"timeout","getContentSnapshotAsBase64"))},7e3),i=e.onSnapshotImageReady.add(function(e){return clearTimeout(r),i.remove(),OfficeExtension.CoreUtility.isNullOrUndefined(e)?(o.sync().catch(function(){}),n(OfficeExtension.Utility.createRuntimeError(OfficeExtension.ErrorCodes.generalException,"execution failed","getContentSnapshotAsBase64"))):(o.sync().catch(function(){}),t(e.imageBase64)),null});o.sync().then(function(){e.getContentSnapshotAsBase64();return o.sync().then(function(){return null})}).catch(function(e){n(e)})})]})})},o._getState=function(){return __awaiter(this,void 0,void 0,function(){var t,n,o;return __generator(this,function(e){switch(e.label){case 0:return t=c(!0),n=OfficeCore.AppRuntimeService.newObject(t),o=n.getAppRuntimeState(),[4,t.sync()];case 1:return e.sent(),[2,o.value]}})})},o.showAsTaskpane=function(){return l(OfficeCore.AppRuntimeState.visible)},o.hide=function(){return l(OfficeCore.AppRuntimeState.background)},o.onVisibilityModeChanged=function(r){return __awaiter(this,void 0,void 0,function(){var t,n,o=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(r){var t={visibilityMode:e.visibility===OfficeCore.Visibility.visible?i.taskpane:i.hidden};r(t)}return null}),[4,t.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 n.remove(),[4,t.context.sync()];case 1:return e.sent(),[2]}})})}]}})})},(r=o.beforeDocumentCloseNotification||(o.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]}})})},r.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]}})})},r.onCloseActionCancelled=function(a){return __awaiter(this,void 0,void 0,function(){var t,n,o,r,i=this;return __generator(this,function(e){switch(e.label){case 0:return t=!1,"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(t=!0),n=u(t),o=OfficeCore.BeforeDocumentCloseNotification.newObject(n),r=o.onBeforeCloseNotificationCancelled.add(function(e){return a&&a(),null}),[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.remove(),[4,n.sync()];case 1:return e.sent(),[2]}})})}]}})})}}(Office=Office||{}),function(s){var c,e,t,n,o;function r(){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={}),(o=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=r(),OfficeCore.TaskpaneService.newObject(t).close(),[4,t.sync()];case 1:return e.sent(),[2]}})})},o.move=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=r(),OfficeCore.TaskpaneService.newObject(t).move(),[4,t.sync()];case 1:return e.sent(),[2]}})})},o.notifyHeaderLoaded=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=r(),OfficeCore.TaskpaneService.newObject(t).notifyHeaderLoaded(),[4,t.sync()];case 1:return e.sent(),[2]}})})},o.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=r(),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,o,r,i;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 o=l(),r=OfficeCore.ExtensionLifeCycle.newObject(o),i=a.settings,a.settings=i&&OSF.OUtil.serializeSettings(i),r.launchExtensionComponent("",c.taskpane,a),[4,o.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,o,r,i;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 o=l(),r=OfficeCore.ExtensionLifeCycle.newObject(o),i=a.settings,a.settings=i&&OSF.OUtil.serializeSettings(i),r.launchExtensionComponent("",c.dialog,a),[4,o.sync()];case 2:e.sent(),e.label=3;case 3:return[2]}})})},s.extensionLifeCycle=t}(Office=Office||{}),function(e){var t;function r(){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=r(),n=t.ribbon;function o(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){o(e)}):o(e)}),t.sync()},t.requestCreateControls=function(e){var n,t=r();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),o=n.ribbon;return e.controls.filter(function(e){return!!e.id}).forEach(function(e){var t=o.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 o,t,m,g,h,y;function v(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=o.mappings[t];if(!m(n)&&"function"==typeof n)return n}throw OfficeExtension.Utility.createRuntimeError("invalidOperation","sourceData","ActionProxy._getFunction")}function C(e,t,n,o){var r=OSF._OfficeAppFactory.getHostInfo();if(r&&"web"===r.hostPlatform.toLowerCase())OSF._OfficeAppFactory.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[OSF._OfficeAppFactory.getId(),OSF.AgaveHostAction.ReportAddinSkillResult,{actionCorrelationId:e,resultCode:t,replyMessage:o}]);else{if(m(window.external))throw new OfficeExtension.Error({code:"GenericException",message:"API currently unsupported."});var i=m(OSF.MethodDispId)?OSF.DDA.MethodDispId.dispidAddinSkillActionReply:OSF.MethodDispId.dispidAddinSkillActionReply;window.external.Execute(i,[e,o,t],null)}v("Office.Extensibility.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(p[e].messageCategory!==g)return"continue";if("string"==typeof p[e].message&&(p[e].message=JSON.parse(p[e].message)),p[e].messageType===h){var t=null,n=b(r=p[e].message[0]);if(2<=p[e].message.length){var o=p[e].message[1];o&&(t="string"==typeof(f=o)&&"{"===f[0]?JSON.parse(o):o)}void 0!==OSF&&OSF.AppTelemetry&&OSF.AppTelemetry.CallOnAppActivatedIfPending&&OSF.AppTelemetry.CallOnAppActivatedIfPending(),n.apply(null,[t])}else if(p[e].messageType===y){t=null;var r=p[e].message[0],i=p[e].message[1],a=JSON.parse(i);t=a.message;var s=a.correlationId,c=[oteljs.makeStringDataField("CorrelationId",s),oteljs.makeStringDataField("Message","ActionProxy._handleMessage is called")];v("Office.Extensibility.AddinSkill.ExecuteAction",c);var l=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess;n=null;try{n=b(r)}catch(e){l=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultNoActionFunctionMapping,c.push(oteljs.makeStringDataField("Message","ActionProxy._handleMessage failed to get function")),c.push(oteljs.makeInt64DataField("ResultCode",l)),v("Office.Extensibility.AddinSkill.ExecuteAction",c),O(e)}var u=null,d="";if(l==OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess)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)),v("Office.Extensibility.AddinSkill.ExecuteAction",c),O(e)}if(l==OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess&&m(u)?(l=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultNoResultGenerated,d="No result generated"):l!=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess||"object"==typeof u&&"function"==typeof u.then||(l=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvalidResultGenerated,d="Invalid result generated"),l==OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess)try{u.then(function(e){d="Successfully executed function",m(e)?(e="",l=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultNoResultGenerated,d="No result generated"):"string"!=typeof e&&(e="",l=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvalidResultGenerated,d="Invalid result generated"),C(s,l,d,e)},function(e){var t="";l=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvocationFailed,d="Failed to execute function","string"==typeof e?t=e:O(e),C(s,l,d,t)})}catch(e){l=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvalidResultGenerated,d="Invalid result generated",O(e),C(s,l,d,"")}else try{C(s,l,d,"")}catch(e){O(e)}}else OfficeExtension.Utility.log("ActionProxy._handleMessage unknown message type "+p[e].messageType);var f}for(var p=e.entries,n=0;n<p.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 r(){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&&"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){}}m=OfficeExtension.Utility.isNullOrUndefined,g=2,h=1e3,y=1001,OfficeExtension.Utility.log("ActionProxy.initOnce"),void 0!==e.actions&&(t=e.actions._association,o=t),"undefined"!=typeof document&&(document.readyState&&"loading"!==document.readyState?(OfficeExtension.Utility.log("ActionProxy.initOnce: document.readyState is not loading state"),r()):document.addEventListener&&document.addEventListener("DOMContentLoaded",function(){OfficeExtension.Utility.log("ActionProxy.initOnce: DOMContentLoaded event triggered"),r()})),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(o,r){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!==r?r:o,n=c(void 0!==r?o: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,o,r,i=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),o=OfficeCore.AugLoopEventService.newObject(t),r=function(e){if(n){var t=e.data;n(t)}return null},o.onHostMessageReceived.add(r),[4,o.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 o.onHostMessageReceived.remove(r),[4,t.sync()];case 1:return e.sent(),[2]}})})}]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t,u,d;function f(e){return"object"==typeof e&&"string"==typeof e.controlId?e.controlId:void 0}function p(e){var t=new OfficeCore.RequestContext;return e&&(t.requestHeaders[OfficeExtension.Constants.officeControlId]=e),t._customData="SkipUndoRecording",t}t=e.Undo||(e.Undo={}),d={},t.undo=function(r){return __awaiter(this,void 0,void 0,function(){var t,n,o;return __generator(this,function(e){switch(e.label){case 0:return t=p(f(r)),n=OfficeCore.UndoService.newObject(t),o=n.undo(),[4,t.sync()];case 1:return e.sent(),[2,o.value]}})})},t.onUndoStackChanged=function(i,a){return __awaiter(this,void 0,void 0,function(){var t,n,o,r=this;return __generator(this,function(e){switch(e.label){case 0:return t=a||i,n=p(f(a?i:void 0)),(o=OfficeCore.UndoService.newObject(n)).onUndoStackChanged.add(t),[4,n.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 o.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,o,r,i,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(d[t])throw new Error("startCopilotOperation is already in progress");n=function(){},o=new Promise(function(e){void 0===t?u=e:d[t]=e}),e.label=1;case 1:return e.trys.push([1,4,,5]),r=p(t),i=OfficeCore.UndoService.newObject(r),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):d[t]&&(d[t](),delete d[t]),[2]})})}(t)},n=function(){try{i.onCopilotOperationStarted.remove(a),r.sync()}catch(e){}},i.onCopilotOperationStarted.add(a),[4,r.sync()];case 2:return e.sent(),s=i.startCopilotOperation(""),[4,r.sync()];case 3:return(e.sent(),s.value)?(void 0!==t&&o.then(function(){n()}),[2,o]):(void 0===t?u=void 0:(n(),delete d[t]),[3,5]);case 4:throw c=e.sent(),void 0===t?u=void 0:(n(),delete d[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=p(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(r){return __awaiter(this,void 0,void 0,function(){var t,n,o;return __generator(this,function(e){switch(e.label){case 0:return t=new OfficeCore.RequestContext,(n=OfficeCore.DialogPage.newObject(t)).onOnShowEvent.add(r),o=function(){return n.onOnShowEvent.remove(r),null},[4,t.sync()];case 1:return e.sent(),[2,o]}})})},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,o,r,i){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,o,r,i),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.onUserFeedbackUIDismissed=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,o,r=this;return __generator(this,function(e){switch(e.label){case 0:return t=function(e){if(i){var t=e.isFeedbackSent;i(t)}return null},n=a(),(o=OfficeCore.UserFeedbackService.newObject(n)).onUserFeedbackUIDismissed.add(t),[4,o.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 o.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,o;return __generator(this,function(e){switch(e.label){case 0:return t=a(),n=OfficeCore.UserFeedbackService.newObject(t),o=n.canCollectUserFeedback(),[4,t.sync()];case 1:return e.sent(),[2,o.value]}})})},t.onUserFeedbackResponse=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,o,r=this;return __generator(this,function(e){switch(e.label){case 0:return t=function(e){if(i){var t=e.responseData;i(t)}return null},n=a(),(o=OfficeCore.UserFeedbackService.newObject(n)).onUserFeedbackResponse.add(t),[4,o.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 o.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,o;return __generator(this,function(e){switch(e.label){case 0:return t=a(),n=OfficeCore.UserFeedbackService.newObject(t),o=n.getInitializationData(),[4,t.sync()];case 1:return e.sent(),[2,o.value]}})})},t.GetHostScreenshot=function(){return __awaiter(this,void 0,void 0,function(){var t,n,o;return __generator(this,function(e){switch(e.label){case 0:return t=a(),n=OfficeCore.UserFeedbackService.newObject(t),o=n.getHostScreenshot(),[4,t.sync()];case 1:return e.sent(),[2,o.value]}})})},t.CanCollectCopilotFeedback=function(){return __awaiter(this,void 0,void 0,function(){var t,n,o;return __generator(this,function(e){switch(e.label){case 0:return t=a(),n=OfficeCore.UserFeedbackService.newObject(t),o=n.canCollectCopilotFeedback(),[4,t.sync()];case 1:return e.sent(),[2,o.value]}})})},t.CollectFeedbackEligibility=function(){return __awaiter(this,void 0,void 0,function(){var t,n,o;return __generator(this,function(e){switch(e.label){case 0:return t=a(),n=OfficeCore.UserFeedbackService.newObject(t),o=n.collectFeedbackEligibility(),[4,t.sync()];case 1:return e.sent(),[2,o.value]}})})},t.CheckFeedbackEligibility=function(r){return __awaiter(this,void 0,void 0,function(){var t,n,o;return __generator(this,function(e){switch(e.label){case 0:return t=a(),n=OfficeCore.UserFeedbackService.newObject(t),o=n.checkFeedbackEligibility(r),[4,t.sync()];case 1:return e.sent(),[2,o.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(i,a){return __awaiter(this,void 0,void 0,function(){var n,o,r;return __generator(this,function(e){switch(e.label){case 0:return n=s(),o=OfficeCore.NotificationService.newObject(n),r=o.addNotification(c(i),(t=a,JSON.stringify(t))),[4,n.sync()];case 1:return e.sent(),[2,r.value]}var t})})},t.updateNotification=function(n,o){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(o)),[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(r){return __awaiter(this,void 0,void 0,function(){var t,n,o;return __generator(this,function(e){switch(e.label){case 0:return t=l(r),n=OfficeCore.SensitivityService.newObject(t),o=n.getLabel(),[4,t.sync()];case 1:return e.sent(),[2,o.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,o,r,i;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,o=t?a[1]:a[0],r=t?a[2]:a[1],i=l(n),OfficeCore.SensitivityService.newObject(i).tryUpgradeLabel(o,r),[4,i.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,o,r,i,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,o=t?s[1]:s[0],r=l(n),i=OfficeCore.SensitivityService.newObject(r),a=i.getHighestSensitivityLabel(o),[4,r.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,o,r,i,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,o=t?c[1]:c[0],r=t?c[2]:c[1],i=l(n),a=OfficeCore.SensitivityService.newObject(i),s=a.getSensitivityResultDetails(o,r),[4,i.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,o,r,i,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,o=t?c[1]:c[0],r=t?c[2]:c[1],i=l(n),a=OfficeCore.SensitivityService.newObject(i),s=a.getSensitivityResultDetailsByStringErrorCode(o,r),[4,i.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,i,o,r,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,i=t?c[1]:c[0],o=function(e){if(i){var t=e.previousLabel,n=e.newLabel,o=e.context,r=e.error;i(t,n,o,r)}return null},r=l(n),(a=OfficeCore.SensitivityService.newObject(r)).onLabelChanged.add(o),[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(o),[4,r.sync()];case 1:return e.sent(),[2]}})})}]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t;function r(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}(t=e.Copilot||(e.Copilot={})).launchHelpPaneByQuery=function(o){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=r(),n=OfficeCore.CopilotService.newObject(t),n.launchHelpPaneByQuery(o),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.launchHelpPaneByArticleId=function(o){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=r(),n=OfficeCore.CopilotService.newObject(t),n.launchHelpPaneByArticleId(o),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.launchHelpPaneByArticleIdString=function(o){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=r(),n=OfficeCore.CopilotService.newObject(t),n.launchHelpPaneByArticleIdString(o),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.launchTaskPaneByAgentId=function(o){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=r(),n=OfficeCore.CopilotService.newObject(t),n.launchTaskPaneByAgentId(o),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.getWindowClientWidth=function(){return __awaiter(this,void 0,void 0,function(){var t,n,o;return __generator(this,function(e){switch(e.label){case 0:return t=r(),n=OfficeCore.CopilotService.newObject(t),o=n.getWindowClientWidth(),[4,t.sync()];case 1:return e.sent(),[2,o.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,o,r,i,a;return __generator(this,function(e){switch(e.label){case 0:return t=2<=s.length,n=t?s[0]:void 0,o=t?s[1]:s[0],r=l(n),i=OfficeCore.PrivateApiService.newObject(r),a=i.execute(o),[4,r.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,o,r,i,a,s=this;return __generator(this,function(e){switch(e.label){case 0:return t=2<=c.length,n=t?c[0]:void 0,o=t?c[1]:c[0],r=function(e){if(o){var t=e.messageData;o(t)}return null},i=l(n),(a=OfficeCore.PrivateApiService.newObject(i)).onOnPrivateEvent.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.onOnPrivateEvent.remove(r),[4,i.sync()];case 1:return e.sent(),[2]}})})}]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t,i,n;function a(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}t=e.UnifiedStore||(e.UnifiedStore={}),(i=t.DefaultPageType||(t.DefaultPageType={})).copilotAgentsPage="CopilotAgentsPage",(n=t.CopilotAgentActionType||(t.CopilotAgentActionType={})).activated="Activated",n.removed="Removed",t.launchStore=function(r){return __awaiter(this,void 0,void 0,function(){var t,n,o;return __generator(this,function(e){switch(e.label){case 0:if(r!==i.copilotAgentsPage)throw OfficeExtension.Utility.createRuntimeError(OfficeExtension.ErrorCodes.invalidArgument,null,null);return(t=a(),n=OfficeCore.UnifiedStoreService.newObject(t),r!=i.copilotAgentsPage)?[3,2]:(o=n.launchStoreDialogWithCopilotAgentPageShown(),[4,t.sync()]);case 1:return e.sent(),[2,o];case 2:return[2]}})})},t.onCopilotAgentEvent=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,o,r=this;return __generator(this,function(e){switch(e.label){case 0:return t=function(e){if(i){var t=JSON.parse(e.messageData),n=t.actionType,o=t.titleId;i({actionType:n,titleId:o})}return null},n=a(),(o=OfficeCore.UnifiedStoreService.newObject(n)).onCopilotAgentEvent.add(t),[4,o.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 o.onCopilotAgentEvent.remove(t),[4,n.sync()];case 1:return e.sent(),[2]}})})}]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t;function r(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}(t=e.BusinessBar||(e.BusinessBar={})).hide=function(o){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=r(),n=OfficeCore.BusinessBarService.newObject(t),n.hide(o),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.show=function(n,o){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=r(),OfficeCore.BusinessBarService.newObject(t).show(n,o),[4,t.sync()];case 1:return e.sent(),[2]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){(e.SimpleDialog||(e.SimpleDialog={})).launchSimpleDialog=function(i){return __awaiter(this,void 0,void 0,function(){var n,o,r;return __generator(this,function(e){switch(e.label){case 0:return(t=new OfficeCore.RequestContext)._customData="WacPartition",n=t,o=OfficeCore.ShowSimpleDialog.newObject(n),r=o.launchSimpleDialog(i.title,i.description,i.telemetryid,i.category,i.hasButton,i.buttonLabel,i.hasCheckbox,i.checkboxLabel),[4,n.sync()];case 1:return e.sent(),[2,r.value]}var t})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){(e.DispatchApi||(e.DispatchApi={})).execute=function(i,a){return __awaiter(this,void 0,void 0,function(){var n,o,r;return __generator(this,function(e){switch(e.label){case 0:return(t=new OfficeCore.RequestContext)._customData="WacPartition",n=t,o=OfficeCore.DispatchApiService.newObject(n),r=o.execute(i,a),[4,n.sync()];case 1:return e.sent(),[2,r.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(i){return __awaiter(this,void 0,void 0,function(){var n,o,r;return __generator(this,function(e){switch(e.label){case 0:return(t=new OfficeCore.RequestContext)._customData="WacPartition",n=t,o=OfficeCore.DevicePermissionService.newObject(n),r=o.requestPermissions(i),[4,n.sync()];case 1:return e.sent(),[2,r.value]}var t})})}}(Office=Office||{}),function(e){var c,t,n,l,o;function u(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}function d(e){!function(){if(null==o){o=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(o),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={},o=null,n.InvokeAction=function(i,a,s){return __awaiter(this,void 0,void 0,function(){var t,n,o,r;return __generator(this,function(e){switch(e.label){case 0:t=u(),n=OfficeCore.AddinSkillActionService.newObject(t),o=OSF.OUtil.Guid.generateNewGuid(),r=d(o),e.label=1;case 1:return e.trys.push([1,,4,5]),n.invokeAction(i,a,s,o),[4,t.sync()];case 2:return e.sent(),[4,r.replyPromise];case 3:return e.sent(),[3,5];case 4:return delete l[o],[7];case 5:if(r.resultCode==c.AddinInvokeResultSuccess){if("string"==typeof r.replyMessage)return[2,r.replyMessage];r.resultCode=c.AddinInvokeResultInvalidResultGenerated}switch(r.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 = "+r.resultCode+")."})}return[2]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){(e.ThemeService||(e.ThemeService={})).getofficethemedataforvisualsurface=function(i){return __awaiter(this,void 0,void 0,function(){var n,o,r;return __generator(this,function(e){switch(e.label){case 0:return(t=new OfficeCore.RequestContext)._customData="WacPartition",n=t,o=OfficeCore.ThemeService.newObject(n),r=o.getOfficeThemeDataForVisualSurface(i),[4,n.sync()];case 1:return e.sent(),[2,JSON.parse(r.value)]}var t})})}}(OfficeFirstParty=OfficeFirstParty||{});var Word;__extends=this&&this.__extends||function(){var o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}();!function(i){function a(e,t){if(OfficeExtension.Utility.isNullOrUndefined(t))return null;if("object"!=typeof t&&OfficeExtension.Utility.throwError(OfficeExtension.ResourceStrings.invalidArgument,"searchOptions"),t instanceof i.SearchOptions)return t;var n=i.SearchOptions.newObject(e);for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);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 i.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}OfficeExtension.BatchApiHelper.createPropertyObject;var e,l=OfficeExtension.BatchApiHelper.createMethodObject,o=(OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject,OfficeExtension.BatchApiHelper.createTopLevelServiceObject,OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod,OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty),t=OfficeExtension.Utility.isNullOrUndefined,r=OfficeExtension.Utility.isUndefined,n=OfficeExtension.Utility.throwIfNotLoaded,u=(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,d.prototype.getDocument=function(){return t(this._document)&&(this._document=this.context.document),this._document},d.prototype.getReferenceId=function(){return t(this._refId)&&(this._refId=this._ReferenceId),this._refId},d.prototype._RegisterAddedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"AnnotationAdded")},d.prototype._UnregisterAddedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"AnnotationAdded")},d.prototype._RegisterChangedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"AnnotationChanged")},d.prototype._UnregisterChangedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"AnnotationChanged")},d.prototype._RegisterDeletedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"AnnotationDeleted")},d.prototype._UnregisterDeletedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"AnnotationDeleted")},d);function d(){}i.AugloopAnnotationCollectionCustom=u,(e=i._CC||(i._CC={})).AugloopAnnotationCollection_AnnotationAdded_EventArgsTransform=function(e,t){var n={eventType:i.EventType.annotationAdded,annotation:OfficeExtension.BatchApiHelper.createObjectFromReferenceId(i.AugloopAnnotation,e.context,t)};return n.annotation.load(),n},e.AugloopAnnotationCollection_AnnotationChanged_EventArgsTransform=function(e,t){var n={eventType:i.EventType.annotationChanged,annotation:OfficeExtension.BatchApiHelper.createObjectFromReferenceId(i.AugloopAnnotation,e.context,t)};return n.annotation.load(),n},e.AugloopAnnotationCollection_AnnotationDeleted_EventArgsTransform=function(e,t){var n={eventType:i.EventType.annotationDeleted,annotation:OfficeExtension.BatchApiHelper.createObjectFromReferenceId(i.AugloopAnnotation,e.context,t)};return n.annotation.load(),n};var f,p=(m.prototype.getDocument=function(){return t(this._document)&&(this._document=this.context.document),this._document},m.prototype.getReferenceId=function(){return t(this._refId)&&(this._refId=this._ReferenceId),this._refId},m.prototype._RegisterCommentAddedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentAdded")},m.prototype._UnregisterCommentAddedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentAdded")},m.prototype._RegisterCommentDeletedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentDeleted")},m.prototype._UnregisterCommentDeletedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentDeleted")},m.prototype._RegisterCommentChangedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentChanged")},m.prototype._UnregisterCommentChangedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentChanged")},m.prototype._RegisterCommentSelectedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentSelected")},m.prototype._UnregisterCommentSelectedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentSelected")},m.prototype._RegisterCommentDeselectedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentDeselected")},m.prototype._UnregisterCommentDeselectedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentDeselected")},m);function m(){}i.BodyCustom=p,(f=i._CC||(i._CC={})).Body_Search=function(e,t,n){var o;if(s()){var r=c(n);o=e._Search2(t,r)}else n=a(e.context,n),o=l(i.RangeCollection,e,"Search",1,[t,n],!0,!1,null,4);return{handled:!0,result:o}},f.Body_CommentAdded_EventArgsTransform=function(e,t){return{type:i.EventType.commentAdded,source:t.source,commentDetails:t.commentDetails,changeType:i.CommentChangeType.none}},f.Body_CommentChanged_EventArgsTransform=function(e,t){return{type:i.EventType.commentChanged,source:t.source,commentDetails:t.commentDetails,changeType:t.changeType}},f.Body_CommentDeleted_EventArgsTransform=function(e,t){return{type:i.EventType.commentDeleted,source:t.source,commentDetails:t.commentDetails,changeType:i.CommentChangeType.none}},f.Body_CommentDeselected_EventArgsTransform=function(e,t){return{type:i.EventType.commentDeselected,source:i.EventSource.local,commentDetails:t.commentDetails,changeType:i.CommentChangeType.none}},f.Body_CommentSelected_EventArgsTransform=function(e,t){return{type:i.EventType.commentSelected,source:i.EventSource.local,commentDetails:t.commentDetails,changeType:i.CommentChangeType.none}};function g(){}i.XmlMappingCustom=g;function h(){}i.CustomXmlSchemaCustom=h;function y(){}i.CustomXmlSchemaCollectionCustom=y;function v(){}i.CustomXmlValidationErrorCollectionCustom=v;function b(){}i.CustomXmlValidationErrorCustom=b;function C(){}i.CustomXmlNodeCollectionCustom=C;function O(){}i.CustomXmlNodeCustom=O;var _,A=(S.prototype.getDocument=function(){return t(this._document)&&(this._document=this.context.document),this._document},S.prototype.getReferenceId=function(){return t(this._refId)&&(this._refId=this._ReferenceId),this._refId},S.prototype._RegisterDataChangedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"ContentControlDataChanged")},S.prototype._UnregisterDataChangedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"ContentControlDataChanged")},S.prototype._RegisterDeletedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"ContentControlDeleted")},S.prototype._UnregisterDeletedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"ContentControlDeleted")},S.prototype._RegisterSelectionChangedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"ContentControlSelectionChanged")},S.prototype._UnregisterSelectionChangedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"ContentControlSelectionChanged")},S.prototype._RegisterCommentAddedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentAdded")},S.prototype._UnregisterCommentAddedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentAdded")},S.prototype._RegisterCommentChangedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentChanged")},S.prototype._UnregisterCommentChangedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentChanged")},S.prototype._RegisterCommentSelectedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentSelected")},S.prototype._UnregisterCommentSelectedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentSelected")},S.prototype._RegisterCommentDeselectedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentDeselected")},S.prototype._UnregisterCommentDeselectedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentDeselected")},S.prototype._RegisterEnteredEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"ContentControlEntered")},S.prototype._UnregisterEnteredEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"ContentControlEntered")},S.prototype._RegisterExitedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"ContentControlExited")},S.prototype._UnregisterExitedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"ContentControlExited")},S);function S(){}i.ContentControlCustom=A,(_=i._CC||(i._CC={})).ContentControl_Search=function(e,t,n){var o;if(s()){var r=c(n);o=e._Search2(t,r)}else n=a(e.context,n),o=l(i.RangeCollection,e,"Search",1,[t,n],!0,!1,null,4);return{handled:!0,result:o}},_.ContentControl_CommentAdded_EventArgsTransform=function(e,t){return{type:i.EventType.commentAdded,source:t.source,commentDetails:t.commentDetails,changeType:i.CommentChangeType.none}},_.ContentControl_CommentChanged_EventArgsTransform=function(e,t){return{type:i.EventType.commentChanged,source:t.source,commentDetails:t.commentDetails,changeType:t.changeType}},_.ContentControl_CommentDeselected_EventArgsTransform=function(e,t){return{type:i.EventType.commentDeselected,source:i.EventSource.local,commentDetails:t.commentDetails,changeType:i.CommentChangeType.none}},_.ContentControl_CommentSelected_EventArgsTransform=function(e,t){return{type:i.EventType.commentSelected,source:i.EventSource.local,commentDetails:t.commentDetails,changeType:i.CommentChangeType.none}},_.ContentControl_DataChanged_EventArgsTransform=function(e,t){return{eventType:i.EventType.contentControlDataChanged,source:t.source,ids:[e.id]}},_.ContentControl_Deleted_EventArgsTransform=function(e,t){return{eventType:i.EventType.contentControlDeleted,source:t.source,ids:[e.id]}},_.ContentControl_Entered_EventArgsTransform=function(e,t){return{eventType:i.EventType.contentControlEntered,source:i.EventSource.local,ids:[e.id]}},_.ContentControl_Exited_EventArgsTransform=function(e,t){return{eventType:i.EventType.contentControlExited,source:i.EventSource.local,ids:[e.id]}},_.ContentControl_SelectionChanged_EventArgsTransform=function(e,t){return{eventType:i.EventType.contentControlSelectionChanged,source:i.EventSource.local,ids:[e.id]}},(i._CC||(i._CC={})).CustomProperty_HandleResult=function(e,t){r(t.Value)||r(t.Type)||"Date"!=t.Type||(t.Value=new Date(t.Value))};var P,w=(T.prototype._RegisterContentControlAddedEvent=function(){this._RegisterEvent(this._ReferenceId,"ContentControlAdded")},T.prototype._UnregisterContentControlAddedEvent=function(){this._UnregisterEvent(this._ReferenceId,"ContentControlAdded")},T.prototype._RegisterWordCountChangedEvent=function(){this._RegisterEvent(this._ReferenceId,"DocumentWordCountChanged")},T.prototype._UnregisterWordCountChangedEvent=function(){this._UnregisterEvent(this._ReferenceId,"DocumentWordCountChanged")},T.prototype._RegisterParagraphAddedEvent=function(){this._RegisterEvent(this._ReferenceId,"ParagraphAdded")},T.prototype._UnregisterParagraphAddedEvent=function(){this._UnregisterEvent(this._ReferenceId,"ParagraphAdded")},T.prototype._RegisterParagraphChangedEvent=function(){this._RegisterEvent(this._ReferenceId,"ParagraphChanged")},T.prototype._UnregisterParagraphChangedEvent=function(){this._UnregisterEvent(this._ReferenceId,"ParagraphChanged")},T.prototype._RegisterParagraphDeletedEvent=function(){this._RegisterEvent(this._ReferenceId,"ParagraphDeleted")},T.prototype._UnregisterParagraphDeletedEvent=function(){this._UnregisterEvent(this._ReferenceId,"ParagraphDeleted")},T.prototype._RegisterAnnotationClickedEvent=function(){this._RegisterEvent(this._ReferenceId,"AnnotationClicked")},T.prototype._UnregisterAnnotationClickedEvent=function(){this._UnregisterEvent(this._ReferenceId,"AnnotationClicked")},T.prototype._RegisterAnnotationHoveredEvent=function(){this._RegisterEvent(this._ReferenceId,"AnnotationHovered")},T.prototype._UnregisterAnnotationHoveredEvent=function(){this._UnregisterEvent(this._ReferenceId,"AnnotationHovered")},T.prototype._RegisterAnnotationInsertedEvent=function(){this._RegisterEvent(this._ReferenceId,"AnnotationInserted")},T.prototype._UnregisterAnnotationInsertedEvent=function(){this._UnregisterEvent(this._ReferenceId,"AnnotationInserted")},T.prototype._RegisterAnnotationRemovedEvent=function(){this._RegisterEvent(this._ReferenceId,"AnnotationRemoved")},T.prototype._UnregisterAnnotationRemovedEvent=function(){this._UnregisterEvent(this._ReferenceId,"AnnotationRemoved")},T.prototype._RegisterAnnotationPopupActionEvent=function(){this._RegisterEvent(this._ReferenceId,"AnnotationPopupAction")},T.prototype._UnregisterAnnotationPopupActionEvent=function(){this._UnregisterEvent(this._ReferenceId,"AnnotationPopupAction")},T);function T(){}i.DocumentCustom=w,(P=i._CC||(i._CC={})).Document_Search=function(e,t,n){var o;if(s())n=a(e.context,n),o=l(i.RangeCollection,e,"Search",1,[t,n],!0,!1,null,4);else{var r=c(n);o=e._Search2(t,r)}return{handled:!0,result:o}},P.Document_AnnotationClicked_EventArgsTransform=function(e,t){return{id:t}},P.Document_AnnotationHovered_EventArgsTransform=function(e,t){return{id:t}},P.Document_AnnotationInserted_EventArgsTransform=function(e,t){return{ids:t}},P.Document_AnnotationRemoved_EventArgsTransform=function(e,t){return{ids:t}},P.Document_ContentControlAdded_EventArgsTransform=function(e,t){return{eventType:i.EventType.contentControlAdded,source:t.source,ids:t.ids}},P.Document_ParagraphAdded_EventArgsTransform=function(e,t){return{type:i.EventType.paragraphAdded,source:t.source,uniqueLocalIds:t.uniqueLocalIds}},P.Document_ParagraphChanged_EventArgsTransform=function(e,t){return{type:i.EventType.paragraphChanged,source:t.source,uniqueLocalIds:t.uniqueLocalIds}},P.Document_ParagraphDeleted_EventArgsTransform=function(e,t){return{type:i.EventType.paragraphDeleted,source:t.source,uniqueLocalIds:t.uniqueLocalIds}},P.Document_WordCountChanged_EventArgsTransform=function(e,t){return{eventType:i.EventType.documentWordCountChanged,source:t.source,wordCount:t.wordCount}};var E,D=(I.prototype.getDocument=function(){return t(this._document)&&(this._document=this.context.document),this._document},I.prototype.getReferenceId=function(){return t(this._refId)&&(this._refId=this._ReferenceId),this._refId},I.prototype._RegisterCommentAddedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentAdded")},I.prototype._UnregisterCommentAddedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentAdded")},I.prototype._RegisterCommentDeletedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentDeleted")},I.prototype._UnregisterCommentDeletedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentDeleted")},I.prototype._RegisterCommentChangedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentChanged")},I.prototype._UnregisterCommentChangedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentChanged")},I.prototype._RegisterCommentSelectedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentSelected")},I.prototype._UnregisterCommentSelectedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentSelected")},I.prototype._RegisterCommentDeselectedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentDeselected")},I.prototype._UnregisterCommentDeselectedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentDeselected")},I);function I(){}i.ParagraphCustom=D,(E=i._CC||(i._CC={})).Paragraph_Search=function(e,t,n){var o;if(s()){var r=c(n);o=e._Search2(t,r)}else n=a(e.context,n),o=l(i.RangeCollection,e,"Search",1,[t,n],!0,!1,null,4);return{handled:!0,result:o}},E.Paragraph_CommentAdded_EventArgsTransform=function(e,t){return{type:i.EventType.commentAdded,source:t.source,commentDetails:t.commentDetails,changeType:CommentChangeType.none}},E.Paragraph_CommentChanged_EventArgsTransform=function(e,t){return{type:i.EventType.commentChanged,source:t.source,commentDetails:t.commentDetails,changeType:t.changeType}},E.Paragraph_CommentDeleted_EventArgsTransform=function(e,t){return{type:i.EventType.commentDeleted,source:t.source,commentDetails:t.commentDetails,changeType:i.CommentChangeType.none}},E.Paragraph_CommentDeselected_EventArgsTransform=function(e,t){return{type:i.EventType.commentDeselected,source:i.EventSource.local,commentDetails:t.commentDetails,changeType:i.CommentChangeType.none}},E.Paragraph_CommentSelected_EventArgsTransform=function(e,t){return{type:i.EventType.commentSelected,source:i.EventSource.local,commentDetails:t.commentDetails,changeType:i.CommentChangeType.none}};var x,F=(R.prototype.getDocument=function(){return t(this._document)&&(this._document=this.context.document),this._document},R.prototype.getReferenceId=function(){return t(this._refId)&&(this._refId=this._ReferenceId),this._refId},R.prototype._RegisterCommentAddedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentAdded")},R.prototype._UnregisterCommentAddedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentAdded")},R.prototype._RegisterCommentChangedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentChanged")},R.prototype._UnregisterCommentChangedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentChanged")},R.prototype._RegisterCommentSelectedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentSelected")},R.prototype._UnregisterCommentSelectedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentSelected")},R.prototype._RegisterCommentDeselectedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentDeselected")},R.prototype._UnregisterCommentDeselectedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentDeselected")},R);function R(){}i.RangeCustom=F,(x=i._CC||(i._CC={})).Range_Search=function(e,t,n){var o;if(s()){var r=c(n);o=e._Search2(t,r)}else n=a(e.context,n),o=l(i.RangeCollection,e,"Search",1,[t,n],!0,!1,null,4);return{handled:!0,result:o}},x.Range_CommentAdded_EventArgsTransform=function(e,t){return{type:i.EventType.commentAdded,source:t.source,commentDetails:t.commentDetails,changeType:i.CommentChangeType.none}},x.Range_CommentChanged_EventArgsTransform=function(e,t){return{type:i.EventType.commentChanged,source:t.source,commentDetails:t.commentDetails,changeType:t.changeType}},x.Range_CommentDeselected_EventArgsTransform=function(e,t){return{type:i.EventType.commentDeselected,source:i.EventSource.local,commentDetails:t.commentDetails,changeType:i.CommentChangeType.none}},x.Range_CommentSelected_EventArgsTransform=function(e,t){return{type:i.EventType.commentSelected,source:i.EventSource.local,commentDetails:t.commentDetails,changeType:i.CommentChangeType.none}};var N=(Object.defineProperty(M.prototype,"matchWildCards",{get:function(){return n("matchWildCards",this.m_matchWildcards),this.m_matchWildcards},set:function(e){this.m_matchWildcards=e,o(this,"MatchWildCards",e,0)},enumerable:!0,configurable:!0}),M);function M(){}i.SearchOptionsCustom=N;var k,H=(L.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)===L.DateJSONPrefix&&t.slice(-1)===L.DateJSONSuffix&&(n=new Date(parseInt(t.slice(5,-1))))?n:t})},L.replaceDateWithStringDate=function(e){var t=JSON.stringify(e,function(e,t){return this[e]instanceof Date?L.DateJSONPrefix+this[e].getTime()+L.DateJSONSuffix:t});return e=JSON.parse(t)},L.DateJSONPrefix="Date(",L.DateJSONSuffix=")",L);function L(){}i.SettingCustom=H,(k=i._CC||(i._CC={})).Setting_HandleResult=function(e,t){if(!r(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=H.replaceStringDateWithDate(n)}},k.Setting_Value_Set=function(e,t){var n=JSON.stringify(H.replaceDateWithStringDate(t));if(null!==n)return this.m_value=n,o(e,"Value",n,0),{handled:!0}},(i._CC||(i._CC={})).SettingCollection_Add=function(e,t,n){var o=JSON.stringify(H.replaceDateWithStringDate(n));return null===o?{handled:!1,result:null}:{handled:!0,result:l(i.Setting,e,"Add",0,[t,o],!1,!1,null,0)}},(i._CC||(i._CC={})).Table_Search=function(e,t,n){var o;if(s()){var r=c(n);o=e._Search2(t,r)}else n=a(e.context,n),o=l(i.RangeCollection,e,"Search",1,[t,n],!0,!1,null,4);return{handled:!0,result:o}},(i._CC||(i._CC={})).TableRow_Search=function(e,t,n){var o;if(s()){var r=c(n);o=e._Search2(t,r)}else n=a(e.context,n),o=l(i.RangeCollection,e,"Search",1,[t,n],!0,!1,null,4);return{handled:!0,result:o}};function U(){}i.ShapeCustom=U;function j(){}i.ShapeGroupCustom=j;function B(){}i.CanvasCustom=B;function W(){}i.ShapeFillCustom=W;function q(){}i.TextFrameCustom=q;function G(){}var V;i.ShapeTextWrapCustom=G,(V=i.ErrorCodes||(i.ErrorCodes={})).accessDenied="AccessDenied",V.generalException="GeneralException",V.invalidArgument="InvalidArgument",V.itemNotFound="ItemNotFound",V.notAllowed="NotAllowed",V.notImplemented="NotImplemented",V.searchDialogIsOpen="SearchDialogIsOpen",V.searchStringInvalidOrTooLong="SearchStringInvalidOrTooLong",i.Interfaces||(i.Interfaces={});new OfficeExtension.LibraryBuilder({metadata:{version:"1.0.0",name:"Word",defaultApiSetName:"WordApi",hostName:"Word",apiSets:[["1.3","WordApiDesktop"],["99.9"],["1.5"],["1.6"],["1.3"],["1.4"],["1.10"],["1.2","WordApiDesktop"],["1.2"],["1.2","WordApiOnline"],["1.7"],["1.9"],["1.1","WordApiOnline"],["1.1","WordApiDesktop"],["1.8"],["1.3","WordApiHiddenDocument"],["1.4","WordApiHiddenDocument"],["1.5","WordApiHiddenDocument"],["99.9","WordApiDesktop"]],strings:["AugloopAnnotation","CritiqueAnnotation","Annotation","AnnotationCollection","AugloopAnnotationCollection","Application","Body","Border","BorderUniversal","BorderCollection","BorderUniversalCollection","Break","BreakCollection","BuildingBlock","BuildingBlockCollection","BuildingBlockEntryCollection","BuildingBlockCategory","BuildingBlockCategoryCollection","BuildingBlockTypeItem","BuildingBlockTypeItemCollection","CheckboxContentControl","Comment","CommentCollection","CommentContentRange","CommentReply","CommentReplyCollection","XmlMapping","CustomXmlPrefixMappingCollection","CustomXmlPrefixMapping","CustomXmlSchema","CustomXmlSchemaCollection","CustomXmlValidationErrorCollection","CustomXmlValidationError","CustomXmlNodeCollection","CustomXmlNode","ContentControl","ContentControlCollection","ContentControlListItem","ContentControlListItemCollection","CustomProperty","CustomPropertyCollection","CustomXmlPart","CustomXmlPartCollection","CustomXmlPartScopedCollection","Document","DocumentCreated","DocumentProperties","DropDownListContentControl","ComboBoxContentControl","Field","FieldCollection","Font","Hyperlink","HyperlinkCollection","InclusionItem","InclusionItemCollection","InlinePicture","InlinePictureCollection","List","ListCollection","ListItem","ListLevel","ListLevelCollection","ListTemplate","NoteItem","NoteItemCollection","Page","PageCollection","Pane","PaneCollection","Window","WindowCollection","Paragraph","ParagraphCollection","ParagraphFormat","Range","RangeCollection","LabelInfo","SearchOptions","Section","SectionCollection","SensitivityLabel","Setting","SettingCollection","StyleCollection","Style","Shading","ShadingUniversal","Table","TableStyle","TableCollection","TableColumn","TableColumnCollection","TableRow","TableRowCollection","TableCell","TableCellCollection","TableBorder","Template","TemplateCollection","TrackedChange","TrackedChangeCollection","Shape","ShapeGroup","Canvas","ShapeCollection","ShapeFill","TextFrame","ShapeTextWrap","RepeatingSectionItem","RepeatingSectionItemCollection","DatePickerContentControl","PictureContentControl","GroupContentControl","BuildingBlockGalleryContentControl","RepeatingSectionContentControl","Frame","FrameCollection","DocumentLibraryVersion","DocumentLibraryVersionCollection","ListFormat","FillFormat","GlowFormat","LineFormat","ReflectionFormat","ColorFormat","ShadowFormat","ThreeDimensionalFormat","Bibliography","SourceCollection","Source","PageSetup","LineNumbering","TextColumnCollection","TextColumn","content","id","_ReferenceId","_KeepReference","delete","range","accept","reject","_GetItem","getFirst","getFirstOrNullObject","getItem","this._ReferenceId","_RegisterDeletedEvent","_UnregisterDeletedEvent","bibliography","style","text","type","styleBuiltIn","paragraphs","contentControls","parentContentControl","font","inlinePictures","parentBody","lists","tables","parentContentControlOrNullObject","footnotes","endnotes","fields","inclusions","shapes","insertBreak","clear","getHtml","getOoxml","select","getReviewedText","insertText","insertHtml","insertOoxml","insertParagraph","insertContentControl","insertFileFromBase64","insertInlinePictureFromBase64","search","getRange","insertTable","_Search2","getComments","getContentControls","getTrackedChanges","CommentAdded","NumericEventType.commentAdded","_RegisterCommentAddedEvent","_UnregisterCommentAddedEvent","CommentChanged","NumericEventType.commentChanged","_RegisterCommentChangedEvent","_UnregisterCommentChangedEvent","CommentDeleted","NumericEventType.commentDeleted","_RegisterCommentDeletedEvent","_UnregisterCommentDeletedEvent","CommentDeselected","NumericEventType.commentDeselected","_RegisterCommentDeselectedEvent","_UnregisterCommentDeselectedEvent","CommentSelected","NumericEventType.commentSelected","_RegisterCommentSelectedEvent","_UnregisterCommentSelectedEvent","color","width","visible","location","isVisible","colorIndex","index","name","description","value","category","getCount","getItemAt","add","authorEmail","authorName","creationDate","contentRange","isEmpty","hyperlink","bold","italic","strikeThrough","underline","xpath","XPath","namespaceUri","xml","selectNodes","selectSingleNode","title","tag","placeholderText","appearance","parentTableCell","parentTable","parentTableCellOrNullObject","parentTableOrNullObject","xmlMapping","split","getTextRanges","getById","getByTypes","getByIdOrNullObject","_Id","key","deleteAll","getItemOrNullObject","builtIn","saved","languageDetected","sections","body","properties","settings","customXmlParts","frames","hyperlinks","pageSetup","save","deleteBookmark","getMetadata","setMetadata","detectLanguage","getBookmarkRange","getBookmarkRangeOrNullObject","addStyle","getStyles","open","author","comments","listItems","deleteAllListItems","addListItem","locked","getNext","getNextOrNullObject","size","borders","fill","reset","setAsTemplateDefault","altTextDescription","height","lockAspectRatio","listString","level","alignment","pages","firstLineIndent","leftIndent","rightIndent","lineSpacing","outlineLevel","spaceBefore","spaceAfter","lineUnitBefore","lineUnitAfter","readingDirection","list","shading","insertTextBox","insertGeometricShape","insertPictureFromBase64","insertCanvas","hasNoProofing","languageId","languageIdFarEast","tableCells","listLevelNumber","listTemplate","backgroundPatternColor","foregroundPatternColor","texture","nestingLevel","values","shadingColor","horizontalAlignment","verticalAlignment","getCellPadding","setCellPadding","getBorder","autoFit","setWidth","rowIndex","insertRows","relativeHorizontalPosition","relativeVerticalPosition","textWrap","shape","ungroup","backgroundColor","foregroundColor","transparency","leftMargin","rightMargin","topMargin","bottomMargin","orientation","lockContentControl","lockContents","isTemporary","showingPlaceholderText","copy","cut","setPlaceholderText","pattern","blur"],enumTypes:[["CritiqueColorScheme",["red","green","blue","lavender","berry"]],["AnnotationState",["created","accepted","rejected"]],["WdBuildingBlockTypes",[],{wdTypeQuickParts:"wdTypeQuickParts",wdTypeCoverPage:"wdTypeCoverPage",wdTypeEquations:"wdTypeEquations",wdTypeFooters:"wdTypeFooters",wdTypeHeaders:"wdTypeHeaders",wdTypePageNumber:"wdTypePageNumber",wdTypeTables:"wdTypeTables",wdTypeWatermarks:"wdTypeWatermarks",wdTypeAutoText:"wdTypeAutoText",wdTypeTextBox:"wdTypeTextBox",wdTypePageNumberTop:"wdTypePageNumberTop",wdTypePageNumberBottom:"wdTypePageNumberBottom",wdTypePageNumberPage:"wdTypePageNumberPage",wdTypeTableOfContents:"wdTypeTableOfContents",wdTypeCustomQuickParts:"wdTypeCustomQuickParts",wdTypeCustomCoverPage:"wdTypeCustomCoverPage",wdTypeCustomEquations:"wdTypeCustomEquations",wdTypeCustomFooters:"wdTypeCustomFooters",wdTypeCustomHeaders:"wdTypeCustomHeaders",wdTypeCustomPageNumber:"wdTypeCustomPageNumber",wdTypeCustomTables:"wdTypeCustomTables",wdTypeCustomWatermarks:"wdTypeCustomWatermarks",wdTypeCustomAutoText:"wdTypeCustomAutoText",wdTypeCustomTextBox:"wdTypeCustomTextBox",wdTypeCustomPageNumberTop:"wdTypeCustomPageNumberTop",wdTypeCustomPageNumberBottom:"wdTypeCustomPageNumberBottom",wdTypeCustomPageNumberPage:"wdTypeCustomPageNumberPage",wdTypeCustomTableOfContents:"wdTypeCustomTableOfContents",wdTypeCustom1:"wdTypeCustom1",wdTypeCustom2:"wdTypeCustom2",wdTypeCustom3:"wdTypeCustom3",wdTypeCustom4:"wdTypeCustom4",wdTypeCustom5:"wdTypeCustom5",wdTypeBibliography:"wdTypeBibliography",wdTypeCustomBibliography:"wdTypeCustomBibliography"}],["WdContentControlDateStorageFormat",[],{wdContentControlDateStorageText:"wdContentControlDateStorageText",wdContentControlDateStorageDate:"wdContentControlDateStorageDate",wdContentControlDateStorageDateTime:"wdContentControlDateStorageDateTime"}],["WdContentControlType",[],{wdContentControlRichText:"wdContentControlRichText",wdContentControlText:"wdContentControlText",wdContentControlPicture:"wdContentControlPicture",wdContentControlComboBox:"wdContentControlComboBox",wdContentControlDropdownList:"wdContentControlDropdownList",wdContentControlBuildingBlockGallery:"wdContentControlBuildingBlockGallery",wdContentControlDate:"wdContentControlDate",wdContentControlGroup:"wdContentControlGroup",wdContentControlCheckBox:"wdContentControlCheckBox",wdContentControlRepeatingSection:"wdContentControlRepeatingSection"}],["WdLanguageID",[],{wdLanguageNone:"wdLanguageNone",wdNoProofing:"wdNoProofing",wdAfrikaans:"wdAfrikaans",wdAlbanian:"wdAlbanian",wdAmharic:"wdAmharic",wdArabicAlgeria:"wdArabicAlgeria",wdArabicBahrain:"wdArabicBahrain",wdArabicEgypt:"wdArabicEgypt",wdArabicIraq:"wdArabicIraq",wdArabicJordan:"wdArabicJordan",wdArabicKuwait:"wdArabicKuwait",wdArabicLebanon:"wdArabicLebanon",wdArabicLibya:"wdArabicLibya",wdArabicMorocco:"wdArabicMorocco",wdArabicOman:"wdArabicOman",wdArabicQatar:"wdArabicQatar",wdArabic:"wdArabic",wdArabicSyria:"wdArabicSyria",wdArabicTunisia:"wdArabicTunisia",wdArabicUAE:"wdArabicUAE",wdArabicYemen:"wdArabicYemen",wdArmenian:"wdArmenian",wdAssamese:"wdAssamese",wdAzeriCyrillic:"wdAzeriCyrillic",wdAzeriLatin:"wdAzeriLatin",wdBasque:"wdBasque",wdByelorussian:"wdByelorussian",wdBengali:"wdBengali",wdBulgarian:"wdBulgarian",wdBurmese:"wdBurmese",wdCatalan:"wdCatalan",wdCherokee:"wdCherokee",wdChineseHongKongSAR:"wdChineseHongKongSAR",wdChineseMacaoSAR:"wdChineseMacaoSAR",wdSimplifiedChinese:"wdSimplifiedChinese",wdChineseSingapore:"wdChineseSingapore",wdTraditionalChinese:"wdTraditionalChinese",wdCroatian:"wdCroatian",wdCzech:"wdCzech",wdDanish:"wdDanish",wdDivehi:"wdDivehi",wdBelgianDutch:"wdBelgianDutch",wdDutch:"wdDutch",wdEdo:"wdEdo",wdEnglishAUS:"wdEnglishAUS",wdEnglishBelize:"wdEnglishBelize",wdEnglishCanadian:"wdEnglishCanadian",wdEnglishCaribbean:"wdEnglishCaribbean",wdEnglishIreland:"wdEnglishIreland",wdEnglishJamaica:"wdEnglishJamaica",wdEnglishNewZealand:"wdEnglishNewZealand",wdEnglishPhilippines:"wdEnglishPhilippines",wdEnglishSouthAfrica:"wdEnglishSouthAfrica",wdEnglishTrinidadTobago:"wdEnglishTrinidadTobago",wdEnglishUK:"wdEnglishUK",wdEnglishUS:"wdEnglishUS",wdEnglishZimbabwe:"wdEnglishZimbabwe",wdEnglishIndonesia:"wdEnglishIndonesia",wdEstonian:"wdEstonian",wdFaeroese:"wdFaeroese",wdPersian:"wdPersian",wdFilipino:"wdFilipino",wdFinnish:"wdFinnish",wdFulfulde:"wdFulfulde",wdBelgianFrench:"wdBelgianFrench",wdFrenchCameroon:"wdFrenchCameroon",wdFrenchCanadian:"wdFrenchCanadian",wdFrenchCotedIvoire:"wdFrenchCotedIvoire",wdFrench:"wdFrench",wdFrenchLuxembourg:"wdFrenchLuxembourg",wdFrenchMali:"wdFrenchMali",wdFrenchMonaco:"wdFrenchMonaco",wdFrenchReunion:"wdFrenchReunion",wdFrenchSenegal:"wdFrenchSenegal",wdFrenchMorocco:"wdFrenchMorocco",wdFrenchHaiti:"wdFrenchHaiti",wdSwissFrench:"wdSwissFrench",wdFrenchWestIndies:"wdFrenchWestIndies",wdFrenchCongoDRC:"wdFrenchCongoDRC",wdFrisianNetherlands:"wdFrisianNetherlands",wdGaelicIreland:"wdGaelicIreland",wdGaelicScotland:"wdGaelicScotland",wdGalician:"wdGalician",wdGeorgian:"wdGeorgian",wdGermanAustria:"wdGermanAustria",wdGerman:"wdGerman",wdGermanLiechtenstein:"wdGermanLiechtenstein",wdGermanLuxembourg:"wdGermanLuxembourg",wdSwissGerman:"wdSwissGerman",wdGreek:"wdGreek",wdGuarani:"wdGuarani",wdGujarati:"wdGujarati",wdHausa:"wdHausa",wdHawaiian:"wdHawaiian",wdHebrew:"wdHebrew",wdHindi:"wdHindi",wdHungarian:"wdHungarian",wdIbibio:"wdIbibio",wdIcelandic:"wdIcelandic",wdIgbo:"wdIgbo",wdIndonesian:"wdIndonesian",wdInuktitut:"wdInuktitut",wdItalian:"wdItalian",wdSwissItalian:"wdSwissItalian",wdJapanese:"wdJapanese",wdKannada:"wdKannada",wdKanuri:"wdKanuri",wdKashmiri:"wdKashmiri",wdKazakh:"wdKazakh",wdKhmer:"wdKhmer",wdKirghiz:"wdKirghiz",wdKonkani:"wdKonkani",wdKorean:"wdKorean",wdKyrgyz:"wdKyrgyz",wdLao:"wdLao",wdLatin:"wdLatin",wdLatvian:"wdLatvian",wdLithuanian:"wdLithuanian",wdMacedonianFYROM:"wdMacedonianFYROM",wdMalaysian:"wdMalaysian",wdMalayBruneiDarussalam:"wdMalayBruneiDarussalam",wdMalayalam:"wdMalayalam",wdMaltese:"wdMaltese",wdManipuri:"wdManipuri",wdMarathi:"wdMarathi",wdMongolian:"wdMongolian",wdNepali:"wdNepali",wdNorwegianBokmol:"wdNorwegianBokmol",wdNorwegianNynorsk:"wdNorwegianNynorsk",wdOriya:"wdOriya",wdOromo:"wdOromo",wdPashto:"wdPashto",wdPolish:"wdPolish",wdPortugueseBrazil:"wdPortugueseBrazil",wdPortuguese:"wdPortuguese",wdPunjabi:"wdPunjabi",wdRhaetoRomanic:"wdRhaetoRomanic",wdRomanianMoldova:"wdRomanianMoldova",wdRomanian:"wdRomanian",wdRussianMoldova:"wdRussianMoldova",wdRussian:"wdRussian",wdSamiLappish:"wdSamiLappish",wdSanskrit:"wdSanskrit",wdSerbianCyrillic:"wdSerbianCyrillic",wdSerbianLatin:"wdSerbianLatin",wdSinhalese:"wdSinhalese",wdSindhi:"wdSindhi",wdSindhiPakistan:"wdSindhiPakistan",wdSlovak:"wdSlovak",wdSlovenian:"wdSlovenian",wdSomali:"wdSomali",wdSorbian:"wdSorbian",wdSpanishArgentina:"wdSpanishArgentina",wdSpanishBolivia:"wdSpanishBolivia",wdSpanishChile:"wdSpanishChile",wdSpanishColombia:"wdSpanishColombia",wdSpanishCostaRica:"wdSpanishCostaRica",wdSpanishDominicanRepublic:"wdSpanishDominicanRepublic",wdSpanishEcuador:"wdSpanishEcuador",wdSpanishElSalvador:"wdSpanishElSalvador",wdSpanishGuatemala:"wdSpanishGuatemala",wdSpanishHonduras:"wdSpanishHonduras",wdMexicanSpanish:"wdMexicanSpanish",wdSpanishNicaragua:"wdSpanishNicaragua",wdSpanishPanama:"wdSpanishPanama",wdSpanishParaguay:"wdSpanishParaguay",wdSpanishPeru:"wdSpanishPeru",wdSpanishPuertoRico:"wdSpanishPuertoRico",wdSpanishModernSort:"wdSpanishModernSort",wdSpanish:"wdSpanish",wdSpanishUruguay:"wdSpanishUruguay",wdSpanishVenezuela:"wdSpanishVenezuela",wdSesotho:"wdSesotho",wdSutu:"wdSutu",wdSwahili:"wdSwahili",wdSwedishFinland:"wdSwedishFinland",wdSwedish:"wdSwedish",wdSyriac:"wdSyriac",wdTajik:"wdTajik",wdTamazight:"wdTamazight",wdTamazightLatin:"wdTamazightLatin",wdTamil:"wdTamil",wdTatar:"wdTatar",wdTelugu:"wdTelugu",wdThai:"wdThai",wdTibetan:"wdTibetan",wdTigrignaEthiopic:"wdTigrignaEthiopic",wdTigrignaEritrea:"wdTigrignaEritrea",wdTsonga:"wdTsonga",wdTswana:"wdTswana",wdTurkish:"wdTurkish",wdTurkmen:"wdTurkmen",wdUkrainian:"wdUkrainian",wdUrdu:"wdUrdu",wdUzbekCyrillic:"wdUzbekCyrillic",wdUzbekLatin:"wdUzbekLatin",wdVenda:"wdVenda",wdVietnamese:"wdVietnamese",wdWelsh:"wdWelsh",wdXhosa:"wdXhosa",wdYi:"wdYi",wdYiddish:"wdYiddish",wdYoruba:"wdYoruba",wdZulu:"wdZulu"}],["CalendarType",["western","arabic","hebrew","taiwan","japan","thai","korean","sakaEra","translitEnglish","translitFrench","umalqura"]],["ContentControlDateStorageFormat",["text","date","dateTime"]],["WdContentControlAppearance",[],{wdContentControlBoundingBox:"wdContentControlBoundingBox",wdContentControlTags:"wdContentControlTags",wdContentControlHidden:"wdContentControlHidden"}],["WdContentControlLevel",[],{wdContentControlLevelInline:"wdContentControlLevelInline",wdContentControlLevelParagraph:"wdContentControlLevelParagraph",wdContentControlLevelRow:"wdContentControlLevelRow",wdContentControlLevelCell:"wdContentControlLevelCell"}],["ChangeTrackingMode",["off","trackAll","trackMineOnly"]],["ChangeTrackingVersion",["original","current"]],["ChangeTrackingState",["unknown","normal","added","deleted"]],["TrackedChangeType",["none","added","deleted","formatted"]],["NoteItemType",["footnote","endnote"]],["NumericEventType",[],{contentControlDeleted:0,contentControlSelectionChanged:1,contentControlDataChanged:2,contentControlAdded:3,annotationAdded:4,annotationChanged:5,annotationDeleted:6,commentDeleted:7,commentSelected:8,commentDeselected:9,commentChanged:10,commentAdded:11,contentControlEntered:12,contentControlExited:13,documentWordCountChanged:14,paragraphAdded:15,paragraphChanged:16,paragraphDeleted:17,annotationClicked:18,annotationHovered:19,annotationInserted:20,annotationRemoved:21,annotationPopupAction:22}],["EventType",["contentControlDeleted","contentControlSelectionChanged","contentControlDataChanged","contentControlAdded","annotationAdded","annotationChanged","annotationDeleted","commentDeleted","commentSelected","commentDeselected","commentChanged","commentAdded","contentControlEntered","contentControlExited","documentWordCountChanged","paragraphAdded","paragraphChanged","paragraphDeleted","annotationClicked","annotationHovered","annotationInserted","annotationRemoved","annotationPopupAction"]],["EventSource",["local","remote"]],["CommentChangeType",[],{none:"none",edited:"edited",resolved:"resolved",reopened:"reopened",replyAdded:"replyAdded",replyDeleted:"replyDeleted",replyEdited:"replyEdited"}],["ContentControlType",["unknown","richTextInline","richTextParagraphs","richTextTableCell","richTextTableRow","richTextTable","plainTextInline","plainTextParagraph","picture","buildingBlockGallery","checkBox","comboBox","dropDownList","datePicker","repeatingSection","richText","plainText","group"]],["ContentControlAppearance",["boundingBox","tags","hidden"]],["ContentControlLevel",["inline","paragraph","row","cell"]],["ContentControlState",["error","warning"]],["UnderlineType",["mixed","none","hidden","dotLine","single","word","double","thick","dotted","dottedHeavy","dashLine","dashLineHeavy","dashLineLong","dashLineLongHeavy","dotDashLine","dotDashLineHeavy","twoDotDashLine","twoDotDashLineHeavy","wave","waveHeavy","waveDouble"]],["BreakType",["page","next","sectionNext","sectionContinuous","sectionEven","sectionOdd","line"]],["InsertLocation",["before","after","start","end","replace"]],["Alignment",["mixed","unknown","left","centered","right","justified"]],["HeaderFooterType",["primary","firstPage","evenPages"]],["BodyType",["unknown","mainDoc","section","header","footer","tableCell","footnote","endnote","noteItem","shape"]],["SelectionMode",["select","start","end"]],["ImageFormat",["unsupported","undefined","bmp","jpeg","gif","tiff","png","icon","exif","wmf","emf","pict","pdf","svg"]],["RangeLocation",["whole","start","end","before","after","content"]],["LocationRelation",["unrelated","equal","containsStart","containsEnd","contains","insideStart","insideEnd","inside","adjacentBefore","overlapsBefore","before","adjacentAfter","overlapsAfter","after"]],["BorderLocation",["top","left","bottom","right","insideHorizontal","insideVertical","inside","outside","all"]],["CellPaddingLocation",["top","left","bottom","right"]],["BorderWidth",["none","pt025","pt050","pt075","pt100","pt150","pt225","pt300","pt450","pt600","mixed"]],["BorderType",["mixed","none","single","double","dotted","dashed","dotDashed","dot2Dashed","triple","thinThickSmall","thickThinSmall","thinThickThinSmall","thinThickMed","thickThinMed","thinThickThinMed","thinThickLarge","thickThinLarge","thinThickThinLarge","wave","doubleWave","dashedSmall","dashDotStroked","threeDEmboss","threeDEngrave"]],["VerticalAlignment",["mixed","top","center","bottom"]],["ListLevelType",["bullet","number","picture"]],["ListBullet",["custom","solid","hollow","square","diamonds","arrow","checkmark"]],["ListNumbering",["none","arabic","upperRoman","lowerRoman","upperLetter","lowerLetter"]],["BuiltInStyleName",["other","normal","heading1","heading2","heading3","heading4","heading5","heading6","heading7","heading8","heading9","toc1","toc2","toc3","toc4","toc5","toc6","toc7","toc8","toc9","footnoteText","header","footer","caption","footnoteReference","endnoteReference","endnoteText","title","subtitle","hyperlink","strong","emphasis","noSpacing","listParagraph","quote","intenseQuote","subtleEmphasis","intenseEmphasis","subtleReference","intenseReference","bookTitle","bibliography","tocHeading","tableGrid","plainTable1","plainTable2","plainTable3","plainTable4","plainTable5","tableGridLight","gridTable1Light","gridTable1Light_Accent1","gridTable1Light_Accent2","gridTable1Light_Accent3","gridTable1Light_Accent4","gridTable1Light_Accent5","gridTable1Light_Accent6","gridTable2","gridTable2_Accent1","gridTable2_Accent2","gridTable2_Accent3","gridTable2_Accent4","gridTable2_Accent5","gridTable2_Accent6","gridTable3","gridTable3_Accent1","gridTable3_Accent2","gridTable3_Accent3","gridTable3_Accent4","gridTable3_Accent5","gridTable3_Accent6","gridTable4","gridTable4_Accent1","gridTable4_Accent2","gridTable4_Accent3","gridTable4_Accent4","gridTable4_Accent5","gridTable4_Accent6","gridTable5Dark","gridTable5Dark_Accent1","gridTable5Dark_Accent2","gridTable5Dark_Accent3","gridTable5Dark_Accent4","gridTable5Dark_Accent5","gridTable5Dark_Accent6","gridTable6Colorful","gridTable6Colorful_Accent1","gridTable6Colorful_Accent2","gridTable6Colorful_Accent3","gridTable6Colorful_Accent4","gridTable6Colorful_Accent5","gridTable6Colorful_Accent6","gridTable7Colorful","gridTable7Colorful_Accent1","gridTable7Colorful_Accent2","gridTable7Colorful_Accent3","gridTable7Colorful_Accent4","gridTable7Colorful_Accent5","gridTable7Colorful_Accent6","listTable1Light","listTable1Light_Accent1","listTable1Light_Accent2","listTable1Light_Accent3","listTable1Light_Accent4","listTable1Light_Accent5","listTable1Light_Accent6","listTable2","listTable2_Accent1","listTable2_Accent2","listTable2_Accent3","listTable2_Accent4","listTable2_Accent5","listTable2_Accent6","listTable3","listTable3_Accent1","listTable3_Accent2","listTable3_Accent3","listTable3_Accent4","listTable3_Accent5","listTable3_Accent6","listTable4","listTable4_Accent1","listTable4_Accent2","listTable4_Accent3","listTable4_Accent4","listTable4_Accent5","listTable4_Accent6","listTable5Dark","listTable5Dark_Accent1","listTable5Dark_Accent2","listTable5Dark_Accent3","listTable5Dark_Accent4","listTable5Dark_Accent5","listTable5Dark_Accent6","listTable6Colorful","listTable6Colorful_Accent1","listTable6Colorful_Accent2","listTable6Colorful_Accent3","listTable6Colorful_Accent4","listTable6Colorful_Accent5","listTable6Colorful_Accent6","listTable7Colorful","listTable7Colorful_Accent1","listTable7Colorful_Accent2","listTable7Colorful_Accent3","listTable7Colorful_Accent4","listTable7Colorful_Accent5","listTable7Colorful_Accent6"]],["DocumentPropertyType",["string","number","date","boolean"]],["TapObjectType",["chart","smartArt","table","image","slide","text"],{ole:"OLE"}],["FileContentFormat",["base64","html","ooxml"]],["AnnotationParentType",["none","document","paragraph","annotation"]],["AugloopAnnotationState",["undefined","created","sent","duplicated","seen","tried","kept","rejected"]],["StyleType",["character","list","paragraph","table"]],["OutlineLevel",["outlineLevel1","outlineLevel2","outlineLevel3","outlineLevel4","outlineLevel5","outlineLevel6","outlineLevel7","outlineLevel8","outlineLevel9","outlineLevelBodyText"]],["CloseBehavior",["save","skipSave"]],["SaveBehavior",["save","prompt"]],["FieldType",["addin","addressBlock","advance","ask","author","autoText","autoTextList","barCode","bibliography","bidiOutline","citation","comments","compare","createDate","data","database","date","displayBarcode","docProperty","docVariable","editTime","embedded","expression","fileName","fileSize","fillIn","formCheckbox","formDropdown","formText","gotoButton","greetingLine","hyperlink","if","import","include","includePicture","includeText","index","info","keywords","lastSavedBy","link","listNum","macroButton","mergeBarcode","mergeField","mergeRec","mergeSeq","next","nextIf","noteRef","numChars","numPages","numWords","page","pageRef","print","printDate","private","quote","ref","revNum","saveDate","section","sectionPages","seq","set","shape","skipIf","styleRef","subject","subscriber","symbol","template","time","title","userAddress","userInitials","userName","empty","others","undefined"],{eq:"EQ",ocx:"OCX",rd:"RD",ta:"TA",tc:"TC",toa:"TOA",toc:"TOC",xe:"XE"}],["FieldKind",["none","hot","warm","cold"]],["TrailingCharacter",["trailingTab","trailingSpace","trailingNone"]],["ListBuiltInNumberStyle",["none","arabic","upperRoman","lowerRoman","upperLetter","lowerLetter","ordinal","cardinalText","ordinalText","kanji","kanjiDigit","aiueoHalfWidth","irohaHalfWidth","arabicFullWidth","kanjiTraditional","kanjiTraditional2","numberInCircle","aiueo","iroha","arabicLZ","bullet","ganada","chosung","zodiac1","zodiac2","zodiac3","tradChinNum1","tradChinNum2","tradChinNum3","tradChinNum4","simpChinNum1","simpChinNum2","simpChinNum3","simpChinNum4","hanjaRead","hanjaReadDigit","hangul","hanja","hebrew1","arabic1","hebrew2","arabic2","hindiLetter1","hindiLetter2","hindiArabic","hindiCardinalText","thaiLetter","thaiArabic","thaiCardinalText","vietCardinalText","lowercaseRussian","uppercaseRussian","lowercaseGreek","uppercaseGreek","arabicLZ2","arabicLZ3","arabicLZ4","lowercaseTurkish","uppercaseTurkish","lowercaseBulgarian","uppercaseBulgarian","pictureBullet","legal","legalLZ"],{gbnum1:"GBNum1",gbnum2:"GBNum2",gbnum3:"GBNum3",gbnum4:"GBNum4"}],["ShadingTextureType",["darkDiagonalDown","darkDiagonalUp","darkGrid","darkHorizontal","darkTrellis","darkVertical","lightDiagonalDown","lightDiagonalUp","lightGrid","lightHorizontal","lightTrellis","lightVertical","none","percent10","percent12Pt5","percent15","percent20","percent25","percent30","percent35","percent37Pt5","percent40","percent45","percent5","percent50","percent55","percent60","percent62Pt5","percent65","percent70","percent75","percent80","percent85","percent87Pt5","percent90","percent95","solid"]],["CompareTarget",["compareTargetCurrent","compareTargetSelected","compareTargetNew"]],["ImportedStylesConflictBehavior",["ignore","overwrite","createNew"]],["ShapeType",["unsupported","textBox","geometricShape","group","picture","canvas"]],["RelativeHorizontalPosition",["margin","page","column","character","leftMargin","rightMargin","insideMargin","outsideMargin"]],["RelativeVerticalPosition",["margin","page","paragraph","line","topMargin","bottomMargin","insideMargin","outsideMargin"]],["RelativeSize",["margin","page","topMargin","bottomMargin","insideMargin","outsideMargin"]],["GeometricShapeType",["lineInverse","triangle","rightTriangle","rectangle","diamond","parallelogram","trapezoid","nonIsoscelesTrapezoid","pentagon","hexagon","heptagon","octagon","decagon","dodecagon","star4","star5","star6","star7","star8","star10","star12","star16","star24","star32","roundRectangle","round1Rectangle","round2SameRectangle","round2DiagonalRectangle","snipRoundRectangle","snip1Rectangle","snip2SameRectangle","snip2DiagonalRectangle","plaque","ellipse","teardrop","homePlate","chevron","pieWedge","pie","blockArc","donut","noSmoking","rightArrow","leftArrow","upArrow","downArrow","stripedRightArrow","notchedRightArrow","bentUpArrow","leftRightArrow","upDownArrow","leftUpArrow","leftRightUpArrow","quadArrow","leftArrowCallout","rightArrowCallout","upArrowCallout","downArrowCallout","leftRightArrowCallout","upDownArrowCallout","quadArrowCallout","bentArrow","uturnArrow","circularArrow","leftCircularArrow","leftRightCircularArrow","curvedRightArrow","curvedLeftArrow","curvedUpArrow","curvedDownArrow","swooshArrow","cube","can","lightningBolt","heart","sun","moon","smileyFace","irregularSeal1","irregularSeal2","foldedCorner","bevel","frame","halfFrame","corner","diagonalStripe","chord","arc","leftBracket","rightBracket","leftBrace","rightBrace","bracketPair","bracePair","callout1","callout2","callout3","accentCallout1","accentCallout2","accentCallout3","borderCallout1","borderCallout2","borderCallout3","accentBorderCallout1","accentBorderCallout2","accentBorderCallout3","wedgeRectCallout","wedgeRRectCallout","wedgeEllipseCallout","cloudCallout","cloud","ribbon","ribbon2","ellipseRibbon","ellipseRibbon2","leftRightRibbon","verticalScroll","horizontalScroll","wave","doubleWave","plus","flowChartProcess","flowChartDecision","flowChartInputOutput","flowChartPredefinedProcess","flowChartInternalStorage","flowChartDocument","flowChartMultidocument","flowChartTerminator","flowChartPreparation","flowChartManualInput","flowChartManualOperation","flowChartConnector","flowChartPunchedCard","flowChartPunchedTape","flowChartSummingJunction","flowChartOr","flowChartCollate","flowChartSort","flowChartExtract","flowChartMerge","flowChartOfflineStorage","flowChartOnlineStorage","flowChartMagneticTape","flowChartMagneticDisk","flowChartMagneticDrum","flowChartDisplay","flowChartDelay","flowChartAlternateProcess","flowChartOffpageConnector","actionButtonBlank","actionButtonHome","actionButtonHelp","actionButtonInformation","actionButtonForwardNext","actionButtonBackPrevious","actionButtonEnd","actionButtonBeginning","actionButtonReturn","actionButtonDocument","actionButtonSound","actionButtonMovie","gear6","gear9","funnel","mathPlus","mathMinus","mathMultiply","mathDivide","mathEqual","mathNotEqual","cornerTabs","squareTabs","plaqueTabs","chartX","chartStar","chartPlus"]],["ShapeFillType",["noFill","solid","gradient","pattern","picture","texture","mixed"]],["ShapeTextVerticalAlignment",["top","middle","bottom"]],["ShapeTextOrientation",["none","horizontal","eastAsianVertical","vertical270","vertical","eastAsianHorizontalRotated","mixed"]],["ShapeAutoSize",["none","textToFitShape","shapeToFitText","mixed"]],["ShapeTextWrapType",["inline","square","tight","through","topBottom","behind","front"]],["ShapeTextWrapSide",["none","both","left","right","largest"]],["ShapeScaleType",["currentSize","originalSize"]],["ShapeScaleFrom",["scaleFromTopLeft","scaleFromMiddle","scaleFromBottomRight"]],["ReadingDirection",["leftToRight","rightToLeft"]],["FrameSizeRule",["auto","atLeast","exact"]],["BorderDistanceFrom",[],{wdBorderDistanceFromText:"wdBorderDistanceFromText",wdBorderDistanceFromPageEdge:"wdBorderDistanceFromPageEdge"}],["BorderLineStyle",["none","single","dot","dashSmallGap","dashLargeGap","dashDot","dashDotDot","double","triple","thinThickSmallGap","thickThinSmallGap","thinThickThinSmallGap","thinThickMedGap","thickThinMedGap","thinThickThinMedGap","thinThickLargeGap","thickThinLargeGap","thinThickThinLargeGap","singleWavy","doubleWavy","dashDotStroked","emboss3D","engrave3D","outset","inset"]],["LineWidth",["pt025","pt050","pt075","pt100","pt150","pt225","pt300","pt450","pt600"]],["PageBorderArt",["apples","mapleMuffins","cakeSlice","candyCorn","iceCreamCones","champagneBottle","partyGlass","christmasTree","trees","palmsColor","balloons3Colors","balloonsHotAir","partyFavor","confettiStreamers","hearts","heartBalloon","stars3D","starsShadowed","stars","sun","earth2","earth1","peopleHats","sombrero","pencils","packages","clocks","firecrackers","rings","mapPins","confetti","creaturesButterfly","creaturesLadyBug","creaturesFish","birdsFlight","scaredCat","bats","flowersRoses","flowersRedRose","poinsettias","holly","flowersTiny","flowersPansy","flowersModern2","flowersModern1","whiteFlowers","vine","flowersDaisies","flowersBlockPrint","decoArchColor","fans","film","lightning1","compass","doubleD","classicalWave","shadowedSquares","twistedLines1","waveline","quadrants","checkedBarColor","swirligig","pushPinNote1","pushPinNote2","pumpkin1","eggsBlack","cup","heartGray","gingerbreadMan","babyPacifier","babyRattle","cabins","houseFunky","starsBlack","snowflakes","snowflakeFancy","skyrocket","seattle","musicNotes","palmsBlack","mapleLeaf","paperClips","shorebirdTracks","people","peopleWaving","eclipsingSquares2","hypnotic","diamondsGray","decoArch","decoBlocks","circlesLines","papyrus","woodwork","weavingBraid","weavingRibbon","weavingAngles","archedScallops","safari","celticKnotwork","crazyMaze","eclipsingSquares1","birds","flowersTeacup","northwest","southwest","tribal6","tribal4","tribal3","tribal2","tribal5","zanyTriangles","pyramids","pyramidsAbove","confettiGrays","confettiOutline","confettiWhite","mosaic","lightning2","heebieJeebies","lightBulb","gradient","triangleParty","twistedLines2","moons","ovals","doubleDiamonds","chainLink","triangles","tribal1","marqueeToothed","sharksTeeth","sawtooth","sawtoothGray","postageStamp","weavingStrips","zigZag","crossStitch","gems","circlesRectangles","cornerTriangles","creaturesInsects","zigZagStitch","checkered","checkedBarBlack","marquee","basicWhiteDots","basicWideMidline","basicWideOutline","basicWideInline","basicThinLines","basicWhiteDashes","basicWhiteSquares","basicBlackSquares","basicBlackDashes","basicBlackDots","starsTop","certificateBanner","handmade1","handmade2","tornPaper","tornPaperBlack","couponCutoutDashes","couponCutoutDots"],{xillusions:"XIllusions"}],["PreferredWidthType",["auto","percent","points"]],["RulerStyle",["none","proportional","firstColumn","sameWidth"]],["FarEastLineBreakLanguageId",["traditionalChinese","japanese","korean","simplifiedChinese"]],["FarEastLineBreakLevel",["normal","strict","custom"]],["JustificationMode",["expand","compress","compressKana"]],["TemplateType",["normal","global","attached"]],["LanguageId",["afrikaans","albanian","amharic","arabic","arabicAlgeria","arabicBahrain","arabicEgypt","arabicIraq","arabicJordan","arabicKuwait","arabicLebanon","arabicLibya","arabicMorocco","arabicOman","arabicQatar","arabicSyria","arabicTunisia","arabicUAE","arabicYemen","armenian","assamese","azeriCyrillic","azeriLatin","basque","belgianDutch","belgianFrench","bengali","bulgarian","burmese","belarusian","catalan","cherokee","chineseHongKongSAR","chineseMacaoSAR","chineseSingapore","croatian","czech","danish","divehi","dutch","edo","englishAUS","englishBelize","englishCanadian","englishCaribbean","englishIndonesia","englishIreland","englishJamaica","englishNewZealand","englishPhilippines","englishSouthAfrica","englishTrinidadTobago","englishUK","englishUS","englishZimbabwe","estonian","faeroese","filipino","finnish","french","frenchCameroon","frenchCanadian","frenchCongoDRC","frenchCotedIvoire","frenchHaiti","frenchLuxembourg","frenchMali","frenchMonaco","frenchMorocco","frenchReunion","frenchSenegal","frenchWestIndies","frisianNetherlands","fulfulde","gaelicIreland","gaelicScotland","galician","georgian","german","germanAustria","germanLiechtenstein","germanLuxembourg","greek","guarani","gujarati","hausa","hawaiian","hebrew","hindi","hungarian","ibibio","icelandic","igbo","indonesian","inuktitut","italian","japanese","kannada","kanuri","kashmiri","kazakh","khmer","kirghiz","konkani","korean","kyrgyz","languageNone","lao","latin","latvian","lithuanian","macedonianFYROM","malayalam","malayBruneiDarussalam","malaysian","maltese","manipuri","marathi","mexicanSpanish","mongolian","nepali","noProofing","norwegianBokmol","norwegianNynorsk","oriya","oromo","pashto","persian","polish","portuguese","portugueseBrazil","punjabi","rhaetoRomanic","romanian","romanianMoldova","russian","russianMoldova","samiLappish","sanskrit","serbianCyrillic","serbianLatin","sesotho","simplifiedChinese","sindhi","sindhiPakistan","sinhalese","slovak","slovenian","somali","sorbian","spanish","spanishArgentina","spanishBolivia","spanishChile","spanishColombia","spanishCostaRica","spanishDominicanRepublic","spanishEcuador","spanishElSalvador","spanishGuatemala","spanishHonduras","spanishModernSort","spanishNicaragua","spanishPanama","spanishParaguay","spanishPeru","spanishPuertoRico","spanishUruguay","spanishVenezuela","sutu","swahili","swedish","swedishFinland","swissFrench","swissGerman","swissItalian","syriac","tajik","tamazight","tamazightLatin","tamil","tatar","telugu","thai","tibetan","tigrignaEritrea","tigrignaEthiopic","traditionalChinese","tsonga","tswana","turkish","turkmen","ukrainian","urdu","uzbekCyrillic","uzbekLatin","venda","vietnamese","welsh","xhosa","yi","yiddish","yoruba","zulu"]],["DocPartInsertType",["content","paragraph","page"]],["BuildingBlockType",["quickParts","coverPage","equations","footers","headers","pageNumber","tables","watermarks","autoText","textBox","pageNumberTop","pageNumberBottom","pageNumberPage","tableOfContents","customQuickParts","customCoverPage","customEquations","customFooters","customHeaders","customPageNumber","customTables","customWatermarks","customAutoText","customTextBox","customPageNumberTop","customPageNumberBottom","customPageNumberPage","customTableOfContents","custom1","custom2","custom3","custom4","custom5","bibliography","customBibliography"]],["CustomXmlValidationErrorType",[],{schemaGenerated:"schemaGenerated",automaticallyCleared:"automaticallyCleared",manual:"manual"}],["CustomXmlNodeType",[],{element:"element",attribute:"attribute",text:"text",cData:"cData",processingInstruction:"processingInstruction",comment:"comment",document:"document"}],["WdColor",[],{wdColorAutomatic:"wdColorAutomatic",wdColorBlack:"wdColorBlack",wdColorBlue:"wdColorBlue",wdColorTurquoise:"wdColorTurquoise",wdColorBrightGreen:"wdColorBrightGreen",wdColorPink:"wdColorPink",wdColorRed:"wdColorRed",wdColorYellow:"wdColorYellow",wdColorWhite:"wdColorWhite",wdColorDarkBlue:"wdColorDarkBlue",wdColorTeal:"wdColorTeal",wdColorGreen:"wdColorGreen",wdColorViolet:"wdColorViolet",wdColorDarkRed:"wdColorDarkRed",wdColorDarkYellow:"wdColorDarkYellow",wdColorBrown:"wdColorBrown",wdColorOliveGreen:"wdColorOliveGreen",wdColorDarkGreen:"wdColorDarkGreen",wdColorDarkTeal:"wdColorDarkTeal",wdColorIndigo:"wdColorIndigo",wdColorOrange:"wdColorOrange",wdColorBlueGray:"wdColorBlueGray",wdColorLightOrange:"wdColorLightOrange",wdColorLime:"wdColorLime",wdColorSeaGreen:"wdColorSeaGreen",wdColorAqua:"wdColorAqua",wdColorLightBlue:"wdColorLightBlue",wdColorGold:"wdColorGold",wdColorSkyBlue:"wdColorSkyBlue",wdColorPlum:"wdColorPlum",wdColorRose:"wdColorRose",wdColorTan:"wdColorTan",wdColorLightYellow:"wdColorLightYellow",wdColorLightGreen:"wdColorLightGreen",wdColorLightTurquoise:"wdColorLightTurquoise",wdColorPaleBlue:"wdColorPaleBlue",wdColorLavender:"wdColorLavender",wdColorGray05:"wdColorGray05",wdColorGray10:"wdColorGray10",wdColorGray125:"wdColorGray125",wdColorGray15:"wdColorGray15",wdColorGray20:"wdColorGray20",wdColorGray25:"wdColorGray25",wdColorGray30:"wdColorGray30",wdColorGray35:"wdColorGray35",wdColorGray375:"wdColorGray375",wdColorGray40:"wdColorGray40",wdColorGray45:"wdColorGray45",wdColorGray50:"wdColorGray50",wdColorGray55:"wdColorGray55",wdColorGray60:"wdColorGray60",wdColorGray625:"wdColorGray625",wdColorGray65:"wdColorGray65",wdColorGray70:"wdColorGray70",wdColorGray75:"wdColorGray75",wdColorGray80:"wdColorGray80",wdColorGray85:"wdColorGray85",wdColorGray875:"wdColorGray875",wdColorGray90:"wdColorGray90",wdColorGray95:"wdColorGray95"}],["ArrowheadLength",["mixed","short","medium","long"]],["ArrowheadStyle",["mixed","none","triangle","open","stealth","diamond","oval"]],["ArrowheadWidth",["mixed","narrow","medium","wide"]],["BevelType",["mixed","none","relaxedInset","circle","slope","cross","angle","softRound","convex","coolSlant","divot","riblet","hardEdge","artDeco"]],["ColorIndex",["auto","black","blue","turquoise","brightGreen","pink","red","yellow","white","darkBlue","teal","green","violet","darkRed","darkYellow","gray50","gray25","classicRed","classicBlue","byAuthor"]],["ColorType",["rgb","scheme"]],["Continue",["disabled","list","reset"]],["DefaultListBehavior",["word97","word2000","word2002"]],["EmphasisMark",["none","overSolidCircle","overComma","overWhiteCircle","underSolidCircle"]],["ExtrusionColorType",["mixed","automatic","custom"]],["FillType",["mixed","solid","patterned","gradient","textured","background","picture"]],["GradientColorType",["mixed","oneColor","twoColors","presetColors","multiColor"]],["GradientStyle",["mixed","horizontal","vertical","diagonalUp","diagonalDown","fromCorner","fromTitle","fromCenter"]],["Ligature",["none","standard","contextual","standardContextual","historical","standardHistorical","contextualHistorical","standardContextualHistorical","discretional","standardDiscretional","contextualDiscretional","standardContextualDiscretional","historicalDiscretional","standardHistoricalDiscretional","contextualHistoricalDiscretional","all"]],["LightRigType",["mixed","legacyFlat1","legacyFlat2","legacyFlat3","legacyFlat4","legacyNormal1","legacyNormal2","legacyNormal3","legacyNormal4","legacyHarsh1","legacyHarsh2","legacyHarsh3","legacyHarsh4","threePoint","balanced","soft","harsh","flood","contrasting","morning","sunrise","sunset","chilly","freezing","flat","twoPoint","glow","brightRoom"]],["LineDashStyle",["mixed","solid","squareDot","roundDot","dash","dashDot","dashDotDot","longDash","longDashDot","longDashDotDot","sysDash","sysDot","sysDashDot"]],["LineFormatStyle",["mixed","single","thinThin","thinThick","thickThin","thickBetweenThin"]],["ListApplyTo",["wholeList","thisPointForward","selection"]],["ListType",["listNoNumbering","listListNumOnly","listBullet","listSimpleNumbering","listOutlineNumbering","listMixedNumbering","listPictureBullet"]],["NumberForm",["default","lining","oldStyle"]],["NumberSpacing",["default","proportional","tabular"]],["NumberType",["paragraph","listNum","allNumbers"]],["PatternType",["mixed","percent5","percent10","percent20","percent25","percent30","percent40","percent50","percent60","percent70","percent75","percent80","percent90","darkHorizontal","darkVertical","darkDownwardDiagonal","darkUpwardDiagonal","smallCheckerBoard","trellis","lightHorizontal","lightVertical","lightDownwardDiagonal","lightUpwardDiagonal","smallGrid","dottedDiamond","wideDownwardDiagonal","wideUpwardDiagonal","dashedUpwardDiagonal","dashedDownwardDiagonal","narrowVertical","narrowHorizontal","dashedVertical","dashedHorizontal","largeConfetti","largeGrid","horizontalBrick","largeCheckerBoard","smallConfetti","zigZag","solidDiamond","diagonalBrick","outlinedDiamond","plaid","sphere","weave","dottedGrid","divot","shingle","wave","horizontal","vertical","cross","downwardDiagonal","upwardDiagonal","diagonalCross"]],["PresetCamera",["mixed","legacyObliqueTopLeft","legacyObliqueTop","legacyObliqueTopRight","legacyObliqueLeft","legacyObliqueFront","legacyObliqueRight","legacyObliqueBottomLeft","legacyObliqueBottom","legacyObliqueBottomRight","legacyPerspectiveTopLeft","legacyPerspectiveTop","legacyPerspectiveTopRight","legacyPerspectiveLeft","legacyPerspectiveFront","legacyPerspectiveRight","legacyPerspectiveBottomLeft","legacyPerspectiveBottom","legacyPerspectiveBottomRight","orthographicFront","isometricTopUp","isometricTopDown","isometricBottomUp","isometricBottomDown","isometricLeftUp","isometricLeftDown","isometricRightUp","isometricRightDown","isometricOffAxis1Left","isometricOffAxis1Right","isometricOffAxis1Top","isometricOffAxis2Left","isometricOffAxis2Right","isometricOffAxis2Top","isometricOffAxis3Left","isometricOffAxis3Right","isometricOffAxis3Bottom","isometricOffAxis4Left","isometricOffAxis4Right","isometricOffAxis4Bottom","obliqueTopLeft","obliqueTop","obliqueTopRight","obliqueLeft","obliqueRight","obliqueBottomLeft","obliqueBottom","obliqueBottomRight","perspectiveFront","perspectiveLeft","perspectiveRight","perspectiveAbove","perspectiveBelow","perspectiveAboveLeftFacing","perspectiveAboveRightFacing","perspectiveContrastingLeftFacing","perspectiveContrastingRightFacing","perspectiveHeroicLeftFacing","perspectiveHeroicRightFacing","perspectiveHeroicExtremeLeftFacing","perspectiveHeroicExtremeRightFacing","perspectiveRelaxed","perspectiveRelaxedModerately"]],["PresetExtrusionDirection",["mixed","bottomRight","bottom","bottomLeft","right","none","left","topRight","top","topLeft"]],["PresetGradientType",["mixed","earlySunset","lateSunset","nightfall","daybreak","horizon","desert","ocean","calmWater","fire","fog","moss","peacock","wheat","parchment","mahogany","rainbow","rainbowII","gold","goldII","brass","chrome","chromeII","silver","sapphire"]],["PresetLightingDirection",["mixed","topLeft","top","topRight","left","none","right","bottomLeft","bottom","bottomRight"]],["PresetLightingSoftness",["mixed","dim","normal","bright"]],["PresetMaterial",["mixed","matte","plastic","metal","wireFrame","matte2","plastic2","metal2","warmMatte","translucentPowder","powder","darkEdge","softEdge","clear","flat","softMetal"]],["PresetTexture",["mixed","papyrus","canvas","denim","wovenMat","waterDroplets","paperBag","fishFossil","sand","greenMarble","whiteMarble","brownMarble","granite","newsprint","recycledPaper","parchment","stationery","blueTissuePaper","pinkTissuePaper","purpleMesh","bouquet","cork","walnut","oak","mediumWood"]],["PresetThreeDimensionalFormat",["mixed","format1","format2","format3","format4","format5","format6","format7","format8","format9","format10","format11","format12","format13","format14","format15","format16","format17","format18","format19","format20"]],["ReflectionType",["mixed","none","type1","type2","type3","type4","type5","type6","type7","type8","type9"]],["ShadowStyle",["mixed","outerShadow","innerShadow"]],["ShadowType",["mixed","type1","type2","type3","type4","type5","type6","type7","type8","type9","type10","type11","type12","type13","type14","type15","type16","type17","type18","type19","type20","type21","type22","type23","type24","type25","type26","type27","type28","type29","type30","type31","type32","type33","type34","type35","type36","type37","type38","type39","type40","type41","type42","type43"]],["StylisticSet",["default","set01","set02","set03","set04","set05","set06","set07","set08","set09","set10","set11","set12","set13","set14","set15","set16","set17","set18","set19","set20"]],["TextureAlignment",["mixed","topLeft","top","topRight","left","center","right","bottomLeft","bottom","bottomRight"]],["TextureType",["mixed","preset","userDefined"]],["ThemeColorIndex",["notThemeColor","mainDark1","mainLight1","mainDark2","mainLight2","accent1","accent2","accent3","accent4","accent5","accent6","hyperlink","hyperlinkFollowed","background1","text1","background2","text2"]],["MsoAssignmentMethod",[],{not_SET:"NOT_SET",standard:"STANDARD",privileged:"PRIVILEGED",auto:"AUTO"}],["MsoSensitivityLabelError",[],{msoNoError:"msoNoError",msoUserNotSignedIn:"msoUserNotSignedIn"}],["HyperlinkType",["range","shape","inlineShape"]],["FlowDirection",["leftToRight","rightToLeft"]],["GutterPosition",["left","right","top"]],["GutterStyle",["bidirectional","latin"]],["LayoutMode",["default","grid","lineGrid","genko"]],["NumberingRule",["restartContinuous","restartSection","restartPage"]],["PageOrientation",["portrait","landscape"]],["PageSetupVerticalAlignment",["top","center","justify","bottom"]],["PaperSize",["size10x14","size11x17","letter","letterSmall","legal","executive","a3","a4","a4Small","a5","b4","b5","fanfoldLegalGerman","fanfoldStdGerman","fanfoldUS","folio","ledger","note","quarto","statement","tabloid","envelope9","envelope10","envelope11","envelope12","envelope14","envelopeB4","envelopeB5","envelopeB6","envelopeC3","envelopeC4","envelopeC5","envelopeC6","envelopeC65","envelopeDL","envelopeItaly","envelopeMonarch","envelopePersonal","custom"],{csheet:"CSheet",dsheet:"DSheet",esheet:"ESheet"}],["SectionDirection",["rightToLeft","leftToRight"]],["SectionStart",["continuous","newColumn","newPage","evenPage","oddPage"]]],clientObjectTypes:[[1,2,[[136,3],[137,3],[138,2],["_State"]],0,[[139,0,2,0,4],["getParentType",0,2,0,4],[140]],[["getParentAsParagraph",73,0,2,0,4],["getParentAsAnnotation",1,0,2,0,4]]],[2,2,[[138,2],["critique",3]],[[141,76,2,0,0,4]],[[139,0,2,0,4],[142],[143]]],[3,2,[[137,3],[138,2],["state",3]],[["critiqueAnnotation",2,2,0,0,4]],[[139,0,2,0,4],[140]]],[4,3,[[138,2]],0,[[139,0,2,0,4]],[[144,3,1,18,0,4],[145,3],[146,3]],0,3],[5,7,[[138,2]],0,[[139,0,2,0,4],["refresh",0,2,0,4]],[[147,1,1,18,0,4],[145,1,0,2,0,4],[146,1,0,2,0,4]],0,1,[["AnnotationAdded",2,0,"NumericEventType.annotationAdded",148,"_RegisterAddedEvent","_UnregisterAddedEvent"],["AnnotationChanged",2,0,"NumericEventType.annotationChanged",148,"_RegisterChangedEvent","_UnregisterChangedEvent"],["AnnotationDeleted",2,0,"NumericEventType.annotationDeleted",148,149,150]]],[6,0,[["checkLanguage",1,1],["language",3,1]],[["templates",100,18,1,0,4],[151,129,35,1,0,4],["activeDocument",45,2,2,0,4]],[["isTapEnabled",0,2,0,5],["getSharePointTenantRoot",0,2,0,5],["getEnterpriseUserInfo",0,2,0,5],["getMruFriendlyPath",1,2,0,5],["launchFileUrlInOfficeApp",2,2,0,5],["retrieveStylesFromBase64",1,2,3,4],["openDocument",1,2,4,4]],[["createDocument",46,1,2,0,4]],0,0,0,"Microsoft.WordServices.Application",4],[7,6,[[138,2],[152,1],[153,3],[154,3,5],[155,1,5]],[[156,74,19,0,0,4],[157,37,19,0,0,4],[158,36,2,0,0,4],[159,52,35,0,0,4],[160,58,19,0,0,4],[161,7,2,5,0,4],[162,60,19,5,0,4],[163,91,19,5,0,4],["parentSection",80,2,5,0,4],[164,36,2,5,0,4],["parentBodyOrNullObject",7,2,5,0,4],["parentSectionOrNullObject",80,2,5,0,4],[165,66,18,3,0,4],[166,66,18,3,0,4],[167,51,19,6,0,4],[168,56,18,7,0,4],[169,106,19,8,0,4]],[[139,0,2,0,4],[170,2],[171],[172,0,2,0,4],[173,0,2,0,4],[174,1,2,0,4],[175,1,2,6,4]],[[176,76,2,8],[177,76,2,8],[178,76,2,8],[179,73,2,8],[180,36,1,8],[181,76,2,8],[182,57,2,8,9],[183,77,2,7,0,4],[184,76,1,2,5,4],[185,89,4,8,5],[186,77,2,6,0,4],[187,23,0,6,6,4],[188,37,1,6,3,4],[189,102,0,6,4,4]],0,0,[[190,2,10,191,148,192,193],[194,2,10,195,148,196,197],[198,2,10,199,148,200,201],[202,2,10,203,148,204,205],[206,2,10,207,148,208,209]]],[8,2,[[138,2],[210,1],[154,1],[211,1],[212,1],[213,3]],0,[[139,0,2,0,4]]],[9,2,[[138,2],[214,1],["artStyle",1],["artWidth",1],[210,1],[215,1],["inside",3],["lineStyle",1],["lineWidth",1]],0,[[139,0,2,0,4]]],[10,3,[["insideBorderColor",1],["insideBorderType",1],["insideBorderWidth",1],["outsideBorderColor",1],["outsideBorderType",1],["outsideBorderWidth",1],[138,2]],0,[[139,0,2,0,4]],[[147,8,1,18,0,4],["getByLocation",8,1,2,0,4],[145,8,0,2,0,4],[146,8,0,2,0,4]],0,8],[11,3,[[138,2]],0,[[139,0,2,0,4],["applyPageBordersToAllSections"]],[[147,9,1,18,0,4]],0,9],[12,2,[[138,2],["pageIndex",3]],[[141,76,35,0,0,4]],[[139,0,2,0,4]]],[13,3,[[138,2]],0,[[139,0,2,0,4]],[[144,12,1,18,0,4]],0,12],[14,2,[[138,2],[216,3],[217,1],[218,1],[137,3],[219,1],["insertType",1]],[[154,19,2,0,0,4],[220,17,2,0,0,4]],[[139,0,2,0,4],[140]],[["insert",76,2]]],[15,2,[[138,2]],0,[[139,0,2,0,4],[221,0,2,0,4]],[[222,14,1,2,0,4],[223,14,4,8]]],[16,2,[[138,2]],0,[[139,0,2,0,4],[221,0,2,0,4]],[[222,14,1,2,0,4],[223,14,6,8]]],[17,2,[[138,2],[216,3],[217,3]],[["buildingBlocks",15,2,0,0,4],[154,19,2,0,0,4]],[[139,0,2,0,4]]],[18,2,[[138,2]],0,[[139,0,2,0,4],[221,0,2,0,4]],[[222,17,1,2,0,4]]],[19,2,[[138,2],[216,3],[217,3]],[["categories",18,2,0,0,4]],[[139,0,2,0,4]]],[20,2,[[138,2]],0,[[139,0,2,0,4],[221,0,2,0,4]],[["getByType",19,1,2,0,4]]],[21,2,[["isChecked",1],[138,2]],0,[[139,0,2,0,4]]],[22,2,[[224,3],[225,3],[136,1],[226,11],[137,3],[138,2],["resolved",1]],[["replies",26,19,0,0,4],[227,24,33,0,0,4]],[[140],[139,0,2,0,4]],[[184,76],["reply",25,1]]],[23,3,[[138,2]],0,[[139,0,2,0,4]],[[144,22,1,18,0,4],[145,22,0,2,0,4],[146,22,0,2,0,4]],0,22],[24,2,[[138,2],[153,3],[228,3],[229,1],[230,1],[231,1],[232,1],[233,1]],0,[[139,0,2,0,4]],[[176,24,2]]],[25,2,[[224,3],[225,3],[136,1],[226,11],[137,3],[138,2]],[["parentComment",22,35,0,0,4],[227,24,33,0,0,4]],[[139,0,2,0,4],[140]]],[26,3,[[138,2]],0,[[139,0,2,0,4]],[[144,25,1,18,0,4],[145,25,0,2,0,4],[146,25,0,2,0,4]],0,25],[27,6,[["isMapped",3],[234,3,0,235],["prefixMappings",3],[138,2]],[["customXmlNode",35,35,0,0,4],["customXmlPart",42,35,0,0,4]],[[140],["setMapping",2],["setMappingByNode",1],[139,0,2,0,4]]],[28,3,[[138,2]],0,[["addNamespace",2],["lookupNamespace",1],["lookupPrefix",1],[139,0,2,0,4],[221,0,2,0,4]],[[147,29,1,18,0,4]],0,29],[29,2,[["prefix",3],[236,3],[138,2]],0,[[139,0,2,0,4]]],[30,6,[[213,3],[236,3],[138,2]],0,[[140],["reload"],[139,0,2,0,4]]],[31,7,[[138,2]],0,[["validate"],[139,0,2,0,4],[221,0,2,0,4],["getNamespaceUri",0,2,0,4]],[[147,30,1,18,0,4],[223,30,1,8],["addCollection",31,1,4]],0,30],[32,7,[[138,2]],0,[[223,3],[139,0,2,0,4],[221,0,2,0,4]],[[147,33,1,18,0,4]],0,33],[33,6,[[217,3],[153,3],[154,3],["errorCode",3],[138,2]],[["node",35,35,0,0,4]],[[140],[139,0,2,0,4]]],[34,7,[[138,2]],0,[[139,0,2,0,4],[221,0,2,0,4]],[[147,35,1,18,0,4]],0,35],[35,6,[["baseName",3],[236,3],["nodeType",3],["nodeValue",1],[153,1],[234,3,0,235],[237,3],[138,2]],[["attributes",34,19,0,0,4],["childNodes",34,19,0,0,4],["firstChild",35,35,0,0,4],["lastChild",35,35,0,0,4],["nextSibling",35,35,0,0,4],["ownerPart",42,35,0,0,4],["previousSibling",35,35,0,0,4],["parentNode",35,35,0,0,4]],[[140],["appendChildNode",1],["appendChildSubtree",1],["hasChildNodes"],["insertNodeBefore",1],["insertSubtreeBefore",2],["removeChild",1],["replaceChildNode",2],["replaceChildSubtree",2],[139,0,2,0,4]],[[238,34,1,4],[239,35,1]]],[36,6,[[137,3],[138,2],[240,1],[241,1],[242,1],[154,3],[243,1],[210,1],["removeWhenEdited",1],["cannotDelete",1],["cannotEdit",1],[152,1],[153,3],["subtype",3,5],[155,1,5],["canOnlyFormat",0,7]],[[159,52,35,0,0,4],[156,74,19,0,0,4],[157,37,19,0,0,4],[158,36,2,0,0,4],[160,58,19,0,0,4],[162,60,19,5,0,4],[163,91,19,5,0,4],[244,96,2,5,0,4],[245,89,2,5,0,4],[161,7,2,5,0,4],[164,36,2,5,0,4],[246,96,2,5,0,4],[247,89,2,5,0,4],[165,66,18,3,0,4],[166,66,18,3,0,4],[167,51,19,6,0,4],["checkboxContentControl",21,35,11,0,4],["dropDownListContentControl",48,3,12,0,4],["comboBoxContentControl",49,3,12,0,4],[248,27,35,1,0,4],["datePickerContentControl",112,35,1,0,4],["groupContentControl",114,35,1,0,4],["pictureContentControl",113,35,1,0,4],["repeatingSectionContentControl",116,35,1,0,4],["buildingBlockGalleryContentControl",115,35,1,0,4]],[[139,0,2,0,4],[170,2],[171],[140,1],[174,1,2,0,4],[172,0,2,0,4],[173,0,2,0,4],[175,1,2,6,4],["setState",1,0,7],["resetState",0,0,7]],[[176,76,2,8],[177,76,2,8],[178,76,2,8],[181,76,2,8],[179,73,2,8],[182,57,2,8,9],[183,77,2,7,0,4],[184,76,1,2,5,4],[249,77,4,6,5,4],[185,89,4,8,5],[250,77,2,6,5,4],[186,77,2,6,0,4],[187,23,0,6,6,4],[188,37,1,6,3,4],[189,102,0,6,4,4]],0,0,[[190,2,10,191,148,192,193],[194,2,10,195,148,196,197],[202,2,10,203,148,204,205],[206,2,10,207,148,208,209],["DataChanged",2,3,"NumericEventType.contentControlDataChanged",148,"_RegisterDataChangedEvent","_UnregisterDataChangedEvent"],["Deleted",2,3,"NumericEventType.contentControlDeleted",148,149,150],["Entered",2,3,"NumericEventType.contentControlEntered",148,"_RegisterEnteredEvent","_UnregisterEnteredEvent"],["Exited",2,3,"NumericEventType.contentControlExited",148,"_RegisterExitedEvent","_UnregisterExitedEvent"],["SelectionChanged",2,3,"NumericEventType.contentControlSelectionChanged",148,"_RegisterSelectionChangedEvent","_UnregisterSelectionChangedEvent"]]],[37,3,[[138,2]],0,[[139,0,2,0,4]],[[147,36,1,18,0,4],[251,36,1,2,0,4],["getByTitle",37,1,6,0,4],["getByTag",37,1,6,0,4],[252,37,1,6,5,4],[145,36,0,2,5,4],[253,36,1,2,5,4],[146,36,0,2,5,4],["getByChangeTrackingStates",37,1,6,3,4]],0,36],[38,2,[[254,2],[138,2],["displayText",1],[219,1],[216,1]],0,[[139,0,2,0,4],[140],[174]]],[39,3,[[138,2]],0,[[139,0,2,0,4]],[[144,38,1,18,0,4],[145,38],[146,38]],0,38],[40,10,[[138,2],[255,3],[219,1],[154,3],[254,2]],0,[[139,0,2,0,4],[140]]],[41,3,[[138,2]],0,[[139,0,2,0,4],[221,0,2,0,4],[256]],[[147,40,1,18,0,4],[223,40,2,8],[257,40,1,2,0,4]],0,40],[42,2,[[138,2],[137,3],[236,3],[237,3,1],[258,3,1]],[["documentElement",35,35,1,0,4],["schemaCollection",31,17,1,0,4],["namespaceManager",28,19,1,0,4],["errors",32,19,1,0,4]],[[139,0,2,0,4],[140],["getXml",0,2,0,4],["setXml",1],["query",2],["insertElement",4],["updateElement",3],["deleteElement",2],["insertAttribute",4],["updateAttribute",4],["deleteAttribute",3],["addNode",2,0,1],["loadXml",1,0,1]],[[238,34,1,4,1],[239,35,1,0,1]]],[43,3,[[138,2]],0,[[139,0,2,0,4],[221,0,2,0,4]],[[147,42,1,18,0,4],[223,42,1,8],["getByNamespace",44,1,6,0,4],[257,42,1,2,0,4]],0,42],[44,3,[[138,2]],0,[[139,0,2,0,4],[221,0,2,0,4]],[[147,42,1,18,0,4],[257,42,1,2,0,4],["getOnlyItem",42,0,2,0,4],["getOnlyItemOrNullObject",42,0,2,0,4]],0,42],[45,6,[[259,3],[138,2],["allowCloseOnUntitled",1],["changeTrackingMode",1,6],[217,3,2],["autoSaveOn",1,1],[260,1,1],["autoHyphenation",1,1],["consecutiveHyphensLimit",1,1],["hyphenateCaps",1,1]],[[261,81,19,0,0,4],[262,7,35,0,0,4],[157,37,19,0,0,4],[263,47,35,5,0,4],[264,84,19,6,0,4],[265,43,19,6,0,4],["windows",72,19,8,0,4],["activeWindow",71,3,8,0,4],["sensitivityLabel",82,2,1,0,4],["attachedTemplate",99,0,1,0,4],["documentLibraryVersions",120,19,1,0,4],[266,118,19,1,0,4],[267,54,19,1,0,4],[151,129,35,1,0,4],[268,132,35,1,0,4]],[["_GetObjectByReferenceId",1,2,0,4],["_GetObjectTypeNameByReferenceId",1,2,0,4],["_RemoveReference",1,2,0,4],["_RemoveAllReferences",0,2,0,4],[269,2],[139,0,2,0,4],[270,1,0,6],[271,1,2,0,4],[272,2],["setMetadataOnTile",3],["launchTapPane",1,2,0,5],["getNeighborhoodTextAroundSelection",1,2,0,5],["_RegisterEvent",2,2,0,4],["_UnregisterEvent",2,2,0,4],["setNavigationPaneVisibility",1,0,13,1],["close",1,0,3],["importStylesFromJson",2,0,4],["compare",2,0,14],["compareFromBase64",2,0,8],[273,0,0,1],["manualHyphenation",0,0,1]],[["getSelection",76,0,10,0,4],[274,76,1,2,6,4],[275,76,1,2,6,4],["getAnnotationsByType",5,1,6,13,4],[183,77,2,7,11,4],[186,77,2,6,11,4],["getFootnoteBody",7,0,2,3,4],["getEndnoteBody",7,0,2,3,4],[188,37,1,6,3,4],[276,86,2,0,3],[277,85,0,6,3,4],[181,81,3,12,3],["getAnnotationById",3,1,0,11],["getParagraphByUniqueLocalId",73,1,2,4,4],["getSelections",77,0,6,7,4]],0,0,[["AnnotationClicked",2,11,"NumericEventType.annotationClicked",148,"_RegisterAnnotationClickedEvent","_UnregisterAnnotationClickedEvent"],["AnnotationHovered",2,11,"NumericEventType.annotationHovered",148,"_RegisterAnnotationHoveredEvent","_UnregisterAnnotationHoveredEvent"],["AnnotationInserted",2,11,"NumericEventType.annotationInserted",148,"_RegisterAnnotationInsertedEvent","_UnregisterAnnotationInsertedEvent"],["AnnotationPopupAction",0,15,"NumericEventType.annotationPopupAction",148,"_RegisterAnnotationPopupActionEvent","_UnregisterAnnotationPopupActionEvent"],["AnnotationRemoved",2,11,"NumericEventType.annotationRemoved",148,"_RegisterAnnotationRemovedEvent","_UnregisterAnnotationRemovedEvent"],["ContentControlAdded",2,3,"NumericEventType.contentControlAdded",148,"_RegisterContentControlAddedEvent","_UnregisterContentControlAddedEvent"],["ParagraphAdded",2,4,"NumericEventType.paragraphAdded",148,"_RegisterParagraphAddedEvent","_UnregisterParagraphAddedEvent"],["ParagraphChanged",2,4,"NumericEventType.paragraphChanged",148,"_RegisterParagraphChangedEvent","_UnregisterParagraphChangedEvent"],["ParagraphDeleted",2,4,"NumericEventType.paragraphDeleted",148,"_RegisterParagraphDeletedEvent","_UnregisterParagraphDeletedEvent"],["WordCountChanged",2,0,"NumericEventType.documentWordCountChanged",148,"_RegisterWordCountChangedEvent","_UnregisterWordCountChangedEvent"]]],[46,2,[[259,3,16],[138,2]],[[261,81,19,16,0,4],[262,7,35,16,0,4],[157,37,19,16,0,4],[263,47,35,16,0,4],[264,84,19,17,0,4],[265,43,19,17,0,4]],[[269,2,0,16],[139,0,2,0,4],[278,0,2,0,4],[270,1,0,17]],[[274,76,1,2,17,4],[275,76,1,2,17,4],[188,37,1,6,18,4],[276,86,2,0,18],[277,85,0,6,18,4],[181,81,3,12,18]]],[47,2,[[138,2],[240,1],["subject",1],[279,1],["keywords",1],[280,1],["template",3],["lastAuthor",3],["revisionNumber",3],["applicationName",3],["lastPrintDate",11],[226,11],["lastSaveTime",11],["security",3],[220,1],["format",1],["manager",1],["company",1]],[["customProperties",41,19,0,0,4]],[[139,0,2,0,4]]],[48,2,[[138,2]],[[281,39,18,0,0,4]],[[139,0,2,0,4],[282]],[[283,38,3,8]]],[49,2,[[138,2]],[[281,39,18,0,0,4]],[[139,0,2,0,4],[282]],[[283,38,3,8]]],[50,2,[[254,2],[138,2],["code",1],[154,3,3],["kind",3,3],["showCodes",1,14],[284,1,3],["data",1,3]],[["result",76,35,0,0,4],[161,7,2,0,0,4],[158,36,2,0,0,4],[164,36,2,0,0,4],[245,89,2,0,0,4],[247,89,2,0,0,4],[244,96,2,0,0,4],[246,96,2,0,0,4]],[[139,0,2,0,4],[140,0,0,3],["updateResult",0,0,3],[174,1,2,3,4]],[[285,50,0,2,0,4],[286,50,0,2,0,4]]],[51,3,[[138,2]],0,[[139,0,2,0,4]],[[144,50,1,18,0,4],[145,50,0,2,0,4],[146,50,0,2,0,4],[252,51,1,6,3,4,252]],0,50],[52,2,[[138,2],[217,1],[287,1],[230,1],[231,1],[210,1],[233,1],["subscript",1],["superscript",1],[232,1],["doubleStrikeThrough",1],["highlightColor",1],["hidden",1,8],["smallCaps",1,1],["allCaps",1,1],["boldBidirectional",1,1],[215,1,1],["colorIndexBidirectional",1,1],["contextualAlternates",1,1],["diacriticColor",1,1],["disableCharacterSpaceGrid",1,1],["emboss",1,1],["emphasisMark",1,1],["engrave",1,1],["italicBidirectional",1,1],["kerning",1,1],["ligature",1,1],["nameAscii",1,1],["nameBidirectional",1,1],["nameFarEast",1,1],["nameOther",1,1],["numberForm",1,1],["numberSpacing",1,1],["outline",1,1],["position",1,1],["scaling",1,1],["shadow",1,1],["sizeBidirectional",1,1],["spacing",1,1],["stylisticSet",1,1],["underlineColor",1,1]],[[288,11,19,1,0,4],[289,122,35,1,0,4],["glow",123,35,1,0,4],["line",124,35,1,0,4],["reflection",125,35,1,0,4],["textColor",126,35,1,0,4],["textShadow",127,35,1,0,4],["threeDimensionalFormat",128,35,1,0,4]],[[139,0,2,0,4],["increaseFontSize",0,0,1],[290,0,0,1],[291,0,0,1],["decreaseFontSize",0,0,1]]],[53,2,[[138,2],["address",1],["emailSubject",1],["isExtraInfoRequired",3],[217,3],["screenTip",1],["subAddress",1],["target",1],["textToDisplay",1],[154,3]],[[141,76,35,0,0,4]],[[139,0,2,0,4],["addToFavorites"],["createNewDocument",3],[140]]],[54,3,[[138,2]],0,[[139,0,2,0,4]],[[144,53,1,18,0,4],[223,53,2,8]],0,53],[55,2,[[254,2],[138,2],["articleId",3]],[["anchorRange",76,2,0,0,4],["articleBody",7,2,0,0,4]],[[139,0,2,0,4],["discard"],["keep"],[290]]],[56,3,[[138,2]],0,[[139,0,2,0,4]],[[144,55,1,18,0,4],[145,55,0,2,0,4],[146,55,0,2,0,4]],0,55],[57,2,[[254,2],[138,2],[292,1],["altTextTitle",1],[293,1],[229,1],[294,1],[211,1],["imageFormat",3,14]],[[158,36,2,0,0,4],["paragraph",73,2,9,0,4],[244,96,2,5,0,4],[245,89,2,5,0,4],[164,36,2,5,0,4],[246,96,2,5,0,4],[247,89,2,5,0,4]],[[139,0,2,0,4],["getBase64ImageSrc",0,2,0,4],[170,2,0,9],[140,0,0,9],[174,1,2,9,4]],[[180,36,0,8],[182,57,2,8,9],[176,76,2,8,9],[177,76,2,8,9],[178,76,2,8,9],[179,73,2,8,9],[181,76,2,8,9],[184,76,1,2,5,4],[285,57,0,2,5,4],[286,57,0,2,5,4]]],[58,3,[[138,2]],0,[[139,0,2,0,4]],[[144,57,1,18,0,4],[145,57,0,2,5,4],[146,57,0,2,5,4]],0,57],[59,2,[[137,3],[138,2],["levelTypes",3],["levelExistences",3]],[[156,74,19,0,0,4]],[[139,0,2,0,4],["setLevelBullet",4],["setLevelNumbering",3],["getLevelString",1,2,0,4],["setLevelPicture",2,0,14],["getLevelPicture",1,2,14,4],["resetLevelFont",2,0,14],["setLevelAlignment",2],["setLevelIndents",3],["setLevelStartingNumber",2]],[[179,73,2,8],["getLevelParagraphs",74,1,6,0,4],["getLevelFont",52,1,2,14,4]]],[60,3,[[138,2]],0,[[139,0,2,0,4]],[[147,59,1,18,0,4],[251,59,1,2,0,4],[145,59,0,2,0,4],[253,59,1,2,0,4],[146,59,0,2,0,4]],0,59],[61,2,[[138,2],["siblingIndex",3],[295,3],[296,1]],0,[[139,0,2,0,4]],[["getAncestor",73,1,2,0,4],["getDescendants",74,1,6,0,4],["getAncestorOrNullObject",73,1,2,0,4]]],[62,2,[[254,2],[138,2],[297,1],["linkedStyle",1],["numberFormat",1],["numberPosition",1],["numberStyle",1],["resetOnHigher",1],["startAt",1],["tabPosition",1],["textPosition",1],["trailingCharacter",1]],[[159,52,35,0,0,4]],[[139,0,2,0,4]]],[63,3,[[138,2]],0,[[139,0,2,0,4]],[[144,62,1,18,0,4],[145,62,0,2,0,4],[146,62,0,2,0,4]],0,62],[64,2,[[138,2],["outlineNumbered",1]],[["listLevels",63,19,0,0,4]],[[139,0,2,0,4]]],[65,2,[[254,2],[138,2],[154,3]],[[262,7,35,0,0,4],["reference",76,35,0,0,4]],[[139,0,2,0,4],[140]],[[285,65,0,2,0,4],[286,65,0,2,0,4]]],[66,3,[[138,2]],0,[[139,0,2,0,4]],[[144,65,1,18,0,4],[145,65,0,2,0,4],[146,65,0,2,0,4]],0,65],[67,2,[[254,2],[138,2],[293,3],[211,3],[216,3]],[["breaks",13,19,1,0,4]],[[139,0,2,0,4]],[[184,76,1,2,0,4],[285,67,0,2,0,4],[286,67,0,2,0,4]]],[68,3,[[138,2]],0,[[139,0,2,0,4]],[[144,67,1,18,0,4],[145,67,0,2,0,4],[146,67,0,2,0,4]],0,67],[69,2,[[254,2],[138,2]],[[298,68,19,0,0,4],["pagesEnclosingViewport",68,19,0,0,4]],[[139,0,2,0,4]],[[285,69,0,2,0,4],[286,69,0,2,0,4]]],[70,3,[[138,2]],0,[[139,0,2,0,4]],[[144,69,1,18,0,4],[145,69,0,2,0,4],[146,69,0,2,0,4]],0,69],[71,2,[[254,2],[138,2]],[["panes",70,18,0,0,4],["activePane",69,2,0,0,4]],[[139,0,2,0,4]]],[72,3,[[138,2]],0,[[139,0,2,0,4]],[[144,71,1,18,0,4],[145,71,0,2,0,4],[146,71,0,2,0,4]],0,71],[73,6,[[254,2],[138,2],[152,1],[297,1],[299,1],[300,1],[301,1],[302,1],[303,1],[304,1],[305,1],[306,1],[307,1],[153,3],["isListItem",3,5],["tableNestingLevel",3,5],["isLastParagraph",3,5],[155,1,5],["uniqueLocalId",3,4],[308,1,7]],[[159,52,35,0,0,4],[157,37,18,0,0,4],[158,36,2,0,0,4],[160,58,19,0,0,4],[161,7,2,5,0,4],[309,59,2,5,0,4],[244,96,2,5,0,4],[245,89,2,5,0,4],["listItem",61,35,5,0,4],[164,36,2,5,0,4],[246,96,2,5,0,4],[247,89,2,5,0,4],["listOrNullObject",59,2,5,0,4],["listItemOrNullObject",61,35,5,0,4],[165,66,18,3,0,4],[166,66,18,3,0,4],[167,51,19,6,0,4],[168,56,18,7,0,4],[169,106,19,8,0,4],[310,88,35,1,0,4],[288,11,19,1,0,4]],[[139,0,2,0,4],[170,2],[171],[140],[174,1,2,0,4],[172,0,2,0,4],[173,0,2,0,4],["detachFromList",0,0,5],[271,1,2,0,4],[272,2],[175,1,2,6,4],["insertAnnotations",1,0,11],["getText",1,2,11,4]],[[182,57,2,8],[180,36,1,8],[176,76,2,8],[177,76,2,8],[178,76,2,8],[181,76,2,8],[179,73,2,8],[183,77,2,7,0,4],[184,76,1,2,5,4],[249,77,3,6,5,4],[185,89,4,8,5],[250,77,2,6,5,4],["startNewList",59,0,0,5],["attachToList",59,2,0,5],[285,73,0,2,5,4],["getPrevious",73,0,2,5,4],[286,73,0,2,5,4],["getPreviousOrNullObject",73,0,2,5,4],["getSubrange",76,2,2,5,4],[186,77,2,6,0,4],[187,23,0,6,6,4],[188,37,1,6,3,4],[189,102,0,6,4,4],["getAnnotations",4,0,6,11,4],[311,103,2,0,8],[312,103,2,0,8],[313,103,2,0,8],[314,103,1,0,8]],0,0,[[190,2,10,191,148,192,193],[194,2,10,195,148,196,197],[198,2,10,199,148,200,201],[202,2,10,203,148,204,205],[206,2,10,207,148,208,209]]],[74,3,[[138,2]],0,[[139,0,2,0,4]],[[144,73,1,18,0,4],[145,73,0,2,5,4],["getLast",73,0,2,5,4],[146,73,0,2,5,4],["getLastOrNullObject",73,0,2,5,4],[251,73,1,2,0,5],[253,73,1,2,0,5]],0,73],[75,2,[[138,2],[297,1],[299,1],["keepTogether",1],["keepWithNext",1],[300,1],[302,1],[307,1],[306,1],["mirrorIndents",1],[303,1],[301,1],[305,1],[304,1],["widowControl",1]],0,[[139,0,2,0,4]]],[76,6,[[254,2],[138,2],[152,1],[153,3],[228,3,5],[229,1,5],[155,1,5],[315,1,1],[260,1,1],[316,1,1],[317,1,1],["languageIdOther",1,1]],[[159,52,35,0,0,4],[156,74,18,0,0,4],[157,37,18,0,0,4],[158,36,2,0,0,4],[160,58,19,9,0,4],[162,60,18,5,0,4],[163,91,18,5,0,4],[244,96,2,5,0,4],[245,89,2,5,0,4],[161,7,2,5,0,4],[164,36,2,5,0,4],[246,96,2,5,0,4],[247,89,2,5,0,4],[165,66,18,3,0,4],[166,66,18,3,0,4],[167,51,19,6,0,4],[168,56,18,7,0,4],[169,106,19,8,0,4],[298,68,19,8,0,4],[318,97,18,7,0,4],["listFormat",121,35,1,0,4],["tableColumns",93,19,1,0,4],[266,118,19,1,0,4],[310,88,35,1,0,4],[288,11,19,1,0,4],[267,54,19,1,0,4],[261,81,19,1,0,4]],[[139,0,2,0,4],[170,2],[171],[140],[174,1,2,0,4],[172,0,2,0,4],[173,0,2,0,4],["compareLocationWith",1,2,5,4],["getBookmarks",2,2,6,4],["insertBookmark",1,0,6],["highlight",0,2,15,4],["removeHighlight",0,2,15,4],["previewTextReplacement",1,2,0,4],["endPreview",0,2,0,4],[175,1,2,6,4],["scrollIntoView",0,2,0,4],["getHtmlWithOptions",1,2,7,4],[273,0,0,1]],[[180,36,1,8],[176,76,2,8],[177,76,2,8],[178,76,2,8],[181,76,2,8],[179,73,2,8],[182,57,2,8,9],[183,77,2,7,0,4],[184,76,1,2,5,4],[249,77,4,6,5,4],["expandTo",76,1,0,5],["intersectWith",76,1,0,5],["getNextTextRange",76,2,2,5,4],["getHyperlinkRanges",77,0,6,5,4],[185,89,4,8,5],[250,77,2,6,5,4],["expandToOrNullObject",76,1,0,5],["intersectWithOrNullObject",76,1,0,5],["getNextTextRangeOrNullObject",76,2,2,5,4],["insertTapObjectFromFileContent",76,3,8,0,1],[186,77,2,6,0,4],["insertFootnote",65,1,8,3],["insertEndnote",65,1,8,3],["insertComment",22,1,8,6],[187,23,0,6,6,4],[188,37,1,6,3,4],["insertField",50,4,8,3],[189,102,0,6,4,4],["insertInclusion",55,0,8,7],[311,103,2,0,8],[312,103,2,0,8],[313,103,2,0,8],[314,103,1,0,8]],0,0,[[190,2,10,191,148,192,193],[194,2,10,195,148,196,197],[202,2,10,203,148,204,205],[206,2,10,207,148,208,209]]],[77,3,[[138,2]],0,[[139,0,2,0,4]],[[144,76,1,18,0,4],[145,76,0,2,5,4],[146,76,0,2,5,4]],0,76],[78,2,[[138,2],["actionId"],["assignmentMethod"],["contentBits"],["isEnabled"],["justification"],["labelId"],["labelName"],["setDate"],["siteId"]],0,[[139,0,2,0,4]]],[79,4,[["ignorePunct",1],["ignoreSpace",1],["matchCase",1],["matchPrefix",1],["matchSuffix",1],["matchWildcards",1],["matchWholeWord",1]],0,0,0,0,0,0,"Microsoft.WordServices.SearchOptions",4],[80,2,[[254,2],[138,2],["protectedForForms",1,1]],[[262,7,35,0,0,4],[268,132,35,1,0,4],[288,11,19,1,0,4]],[[139,0,2,0,4]],[["getHeader",7,1,10,0,4],["getFooter",7,1,10,0,4],[285,80,0,2,5,4],[286,80,0,2,5,4]]],[81,3,[[138,2]],0,[[139,0,2,0,4]],[[144,80,1,18,0,4],[145,80,0,2,5,4],[146,80,0,2,5,4]],0,80],[82,2,[[138,2],["sensitivityLabelError",2]],0,[[139,0,2,0,4],["setLabel",2]],[["createLabelInfo",78],["getLabel",78]]],[83,14,[[138,2],[255,3],[219,5],[254,2]],0,[[139,0,2,0,4],[140]]],[84,3,[[138,2]],0,[[139,0,2,0,4],[221,0,2,0,4],[256]],[[147,83,1,18,0,4],[223,83,2,9],[257,83,1,2,0,4]],0,83],[85,3,[[138,2]],0,[[139,0,2,0,4],[221,0,2,0,4]],[[147,86,1,18,0,4],["getByName",86,1,2,0,4],["getByNameOrNullObject",86,1,2,0,4]],0,86],[86,2,[[138,2],["baseStyle",1,3],[258,3,3],[218,3,7],["inUse",3,3],["linked",3,3],["nameLocal",3,3],["nextParagraphStyle",1,3],["priority",1,3],["quickStyle",1,3],[154,3,3],["unhideWhenUsed",1,3],["visibility",1,3],["automaticallyUpdate",1,1],[316,1,1],[317,1,1],[319,3,1],[284,1,1],["hasProofing",1,1],["noSpaceBetweenParagraphsOfSameStyle",1,1]],[[159,52,35,3,0,4],["paragraphFormat",75,35,3,0,4],[320,64,35,14,0,4],[310,87,35,4,0,4],["tableStyle",90,35,4,0,4],[288,10,51,14,0,4],["frame",117,35,1,0,4],["linkStyle",86,33,1,0,4]],[[139,0,2,0,4],[140,0,0,3],["linkToListTemplate",1,0,1]]],[87,2,[[138,2],[321,1],[322,1,14],[323,1,14]],0,[[139,0,2,0,4]]],[88,2,[[138,2],[323,1],[321,1],["backgroundPatternColorIndex",1],[322,1],["foregroundPatternColorIndex",1]],0,[[139,0,2,0,4]]],[89,2,[[254,2],[138,2],["isUniform",3],[324,3],[325,1],[152,1],["rowCount",3],["headerRowCount",1],["styleTotalRow",1],["styleFirstColumn",1],["styleLastColumn",1],["styleBandedRows",1],["styleBandedColumns",1],[326,1],[327,1],[328,1],[211,1],[155,1],[297,1],[308,1,7]],[["rows",95,19,0,0,4],[163,91,19,0,0,4],[244,96,2,0,0,4],[245,89,2,0,0,4],[159,52,35,0,0,4],[158,36,2,0,0,4],[161,7,2,0,0,4],[246,96,2,0,0,4],[247,89,2,0,0,4],[164,36,2,0,0,4],[165,66,18,3,0,4],[166,66,18,3,0,4],[167,51,19,6,0,4]],[[139,0,2,0,4],["addColumns",3],[140],[171],["deleteRows",2],["deleteColumns",2],["autoFitWindow"],["distributeColumns"],[174,1,2,0,4],[329,1,2,0,4],[330,2]],[["addRows",95,3,4],["getCell",96,2,2,0,4],["mergeCells",96,4,8,6],[331,98,1,2,0,4],[183,77,2,7,0,4],[184,76,1,2,0,4],[180,36,0,8],[185,89,4,8],[179,73,2,8],[285,89,0,2,0,4],["getParagraphBefore",73,0,2,0,4],["getParagraphAfter",73,0,2,0,4],["getCellOrNullObject",96,2,2,0,4],[286,89,0,2,0,4],["getParagraphBeforeOrNullObject",73,0,2,0,4],["getParagraphAfterOrNullObject",73,0,2,0,4],[186,77,2,6,0,4]]],[90,2,[[138,2],["allowBreakAcrossPage",1,14],[297,1,14],["bottomCellMargin",1],["leftCellMargin",1],["rightCellMargin",1],["topCellMargin",1],["cellSpacing",1]],0,[[139,0,2,0,4]]],[91,3,[[138,2]],0,[[139,0,2,0,4]],[[144,89,1,18,0,4],[145,89,0,2,0,4],[146,89,0,2,0,4]],0,89],[92,2,[[138,2],["columnIndex",3],["isFirst",3],["isLast",3],[324,3],["preferredWidth",1],["preferredWidthType",1],[211,1]],[[288,11,19,0,0,4],[318,97,19,19,0,4],[310,88,35,0,0,4]],[[139,0,2,0,4],[332],[140],[174],[333,2],["sort"]]],[93,3,[[138,2]],0,[[139,0,2,0,4],[332],[140],["distributeWidth"],[174],[333,2]],[[144,92,1,18,0,4],[223,92,1,8]],0,92],[94,2,[[254,2],[138,2],["cellCount",3],[334,3],[325,1],[326,1],[327,1],[328,1],["isHeader",3],["preferredHeight",1]],[["cells",97,19,0,0,4],[245,89,2,0,0,4],[159,52,35,0,0,4],[165,66,18,3,0,4],[166,66,18,3,0,4],[167,51,19,6,0,4]],[[139,0,2,0,4],[140],[171],[174,1,2,0,4],[329,1,2,0,4],[330,2]],[[335,95,3,6,0,4],["merge",96,0,0,6],[183,77,2,7,0,4],[331,98,1,2,0,4],[285,94,0,2,0,4],[286,94,0,2,0,4],[180,36,0,0,14],[186,77,2,6,0,4]]],[95,3,[[138,2]],0,[[139,0,2,0,4]],[[144,94,1,18,0,4],[145,94,0,2,0,4],[146,94,0,2,0,4]],0,94],[96,2,[[254,2],[138,2],[334,3],["cellIndex",3],[219,1],[326,1],[327,1],[328,1],["columnWidth",1],[211,3]],[[245,89,2,0,0,4],["parentRow",94,2,0,0,4],[262,7,35,0,0,4]],[[139,0,2,0,4],["insertColumns",3],[249,2,0,6],["deleteRow"],["deleteColumn"],[329,1,2,0,4],[330,2]],[[335,95,3,4],[331,98,1,2,0,4],[285,96,0,2,0,4],[286,96,0,2,0,4]]],[97,3,[[138,2]],0,[[139,0,2,0,4]],[[144,96,1,18,0,4],[145,96,0,2,0,4],[146,96,0,2,0,4]],0,96],[98,2,[[138,2],[210,1],[154,1],[211,1]],0,[[139,0,2,0,4]]],[99,2,[[138,2],["farEastLineBreakLanguage",1],["farEastLineBreakLevel",1],["fullName",3],["justificationMode",1],["kerningByAlgorithm",1],[316,1],[317,1],["noLineBreakAfter",1],["noLineBreakBefore",1],[315,1],["path",3],[259,1],[154,3],[217,3]],[["buildingBlockEntries",16,2,0,0,4],["buildingBlockTypes",20,2,0,0,4]],[[139,0,2,0,4],[269]]],[100,3,[[138,2]],0,[[139,0,2,0,4],["importBuildingBlocks"],[221,0,2,0,4]],[[144,99,1,18,0,4],[222,99,1,2,0,4]],0,99],[101,2,[[138,2],[279,3],["date",11],[153,3],[154,3]],0,[[139,0,2,0,4],[142],[143]],[[184,76,1,2,0,4],[285,101,0,2,0,4],[286,101,0,2,0,4]]],[102,3,[[138,2]],0,[[139,0,2,0,4],["acceptAll"],["rejectAll"]],[[144,101,1,18,0,4],[145,101,0,2,0,4],[146,101,0,2,0,4]],0,101],[103,6,[[138,2],[137,3],[154,3],[293,1],[211,1],["left",1],["top",1],[336,1],[337,1],["geometricShapeType",1],[217,1],["isChild",3],["allowOverlap",1],["leftRelative",1],["topRelative",1],["widthRelative",1],["heightRelative",1],["relativeHorizontalSize",1],["relativeVerticalSize",1],[292,1],["rotation",1],[212,1],[294,1]],[[262,7,35,0,0,4],["shapeGroup",104,35,0,0,4],["parentGroup",103,35,0,0,4],["canvas",105,35,0,0,4],["parentCanvas",103,35,0,0,4],[289,107,35,0,0,4],["textFrame",108,35,0,0,4],[338,109,35,0,0,4]],[[139,0,2,0,4],[174,1,2,0,4],[140],["moveHorizontally",1],["moveVertically",1],["scaleHeight",3],["scaleWidth",3]]],[104,6,[[138,2],[137,3]],[[339,103,35,0,0,4],[169,106,19,0,0,4]],[[139,0,2,0,4]],[[340,106,0,6,0,4]]],[105,6,[[138,2],[137,3]],[[339,103,35,0,0,4],[169,106,19,0,0,4]],[[139,0,2,0,4]]],[106,3,[[138,2]],0,[[139,0,2,0,4]],[[144,103,1,18,0,4],[145,103,0,2,0,4],[146,103,0,2,0,4],[251,103,1,2,0,4],[253,103,1,2,0,4],["getByIds",106,1,6,0,4],[252,106,1,6,0,4],["getByGeometricTypes",106,1,6,0,4],["group",103],["getByNames",106,1,6,0,4]],0,103],[107,6,[[138,2],[154,3],[341,1],[342,1],[343,1]],0,[[139,0,2,0,4],["setSolidColor",1],[171]]],[108,6,[[138,2],[344,1],[345,1],[346,1],[347,1],[328,1],["autoSizeSetting",1],[348,1],["hasText",3],["noTextRotation",1],["wordWrap",1]],0,[[139,0,2,0,4]]],[109,6,[[138,2],[154,1],["leftDistance",1],["rightDistance",1],["topDistance",1],["bottomDistance",1],["side",1]],0,[[139,0,2,0,4]]],[110,2,[[138,2]],[[141,76,35,0,0,4]],[[139,0,2,0,4],[140]],[["insertItemBefore",110],["insertItemAfter",110]]],[111,2,[[138,2]],0,[[139,0,2,0,4]],[[222,110,1,2,0,4]]],[112,2,[[138,2],[349,1],[350,1],[240,1],["dateDisplayFormat",1],[351,1],[137,3],[352,3],["dateStorageFormat",1],["dateDisplayLocale",1],["dateCalendarType",1],[241,1],[210,1],[243,1],[296,3]],[[141,76,35,0,0,4],[248,27,35,0,0,4],[242,14,35,0,0,4]],[[139,0,2,0,4],[353],[354],[140,1],[355,1]]],[113,2,[[138,2],[349,1],[350,1],[240,1],[351,1],[137,3],[352,3],[241,1],[210,1],[243,1],[296,3]],[[141,76,35,0,0,4],[248,27,35,0,0,4],[242,14,35,0,0,4]],[[139,0,2,0,4],[353],[354],[140,1],[355,1]]],[114,2,[[138,2],[349,1],[350,1],[240,1],[351,1],[137,3],[352,3],[241,1],[210,1],[243,1],[296,3]],[[141,76,35,0,0,4],[248,27,35,0,0,4],[242,14,35,0,0,4]],[[139,0,2,0,4],[353],[354],[140,1],[355,1],[340]]],[115,2,[[138,2],[349,1],[350,1],[240,1],[351,1],[137,3],[352,3],["buildingBlockType",1],["buildingBlockCategory",1],[241,1],[210,1],[243,1],[296,3]],[[141,76,35,0,0,4],[248,27,35,0,0,4],[242,14,35,0,0,4]],[[139,0,2,0,4],[353],[354],[140,1],[355,1]]],[116,2,[[138,2],[349,1],[350,1],[240,1],[351,1],[137,3],[352,3],[241,1],[210,1],[243,1],[296,3],["repeatingSectionItemTitle",1],["allowInsertDeleteSection",1]],[[141,76,35,0,0,4],["xmlapping",27,35,0,0,4],[242,14,35,0,0,4],["repeatingSectionItems",111,3,0,0,4]],[[139,0,2,0,4],[353],[354],[140,1],[355,1]]],[117,2,[[138,2],[293,1],["heightRule",1],["horizontalDistanceFromText",1],["horizontalPosition",1],["lockAnchor",1],[336,1],[337,1],[338,1],["verticalDistanceFromText",1],["verticalPosition",1],[211,1],["widthRule",1]],[[288,11,19,0,0,4],[141,76,35,0,0,4],[310,88,35,0,0,4]],[[139,0,2,0,4],[353],[354],[140],[174]]],[118,3,[[138,2]],0,[[139,0,2,0,4],[140,0,2,0,4]],[[147,117,1,18,0,4],[223,117,1,10,0,4]],0,117],[119,2,[[138,2],[280,3],["modified",3],["modifiedBy",3]],0,[[139,0,2,0,4],[140,0,0,19],[278,0,0,19],["restore",0,0,19]]],[120,3,[[138,2]],0,[[139,0,2,0,4],["isVersioningEnabled"]],[[147,119,1,18,0,4]],0,119],[121,2,[[138,2],[319,1],[295,3],["listType",3],["listValue",3],["isSingleList",3],["isSingleListTemplate",3]],[[309,59,3,0,0,4],[320,64,35,0,0,4]],[[139,0,2,0,4],["applyBulletDefault",1],["applyListTemplateWithLevel",2],["applyNumberDefault",1],["applyOutlineNumberDefault",1],["canContinuePreviousList",1],["convertNumbersToText",1],["countNumberedItems",1],["listOutdent"],["listIndent"],["removeNumbers",1]]],[122,2,[[138,2],["gradientAngle",1],["gradientColorType",3],["gradientDegree",3],["gradientStyle",3],["gradientVariant",3],[356,3],["presetGradientType",3],["presetTexture",3],["rotateWithObject",1],["textureAlignment",1],["textureHorizontalScale",1],["textureName",3],["textureOffsetX",1],["textureOffsetY",1],["textureTile",1],["textureType",3],["textureVerticalScale",1],[343,1],[154,3],[214,1]],[[341,126,35,0,0,4],[342,126,35,0,0,4]],[[139,0,2,0,4],["setOneColorGradient",3],["setPatterned",1],["setPresetGradient",3],["setPresetTextured",1],["solid"],["setTwoColorGradient",2]]],[123,2,[[138,2],["radius",1],[343,1]],[[210,126,35,0,0,4]],[[139,0,2,0,4]]],[124,2,[[138,2],["beginArrowheadLength",1],["beginArrowheadStyle",1],["beginArrowheadWidth",1],["dashStyle",1],["endArrowheadLength",1],["endArrowheadStyle",1],["endArrowheadWidth",1],["insetPen",1],[356,1],[152,1],[343,1],[214,1],["weight",1]],[[341,126,35,0,0,4],[342,126,35,0,0,4]],[[139,0,2,0,4]]],[125,2,[[138,2],[357,1],["offset",1],[287,1],[343,1],[154,1]],0,[[139,0,2,0,4]]],[126,2,[[138,2],["brightness",1],["objectThemeColor",1],["rgb",1],["tintAndShade",1],[154,3]],0,[[139,0,2,0,4]]],[127,2,[[138,2],[357,1],["obscured",1],["offsetX",1],["offsetY",1],["rotateWithShape",1],[287,1],[152,1],[343,1],[154,1],[214,1]],[[342,126,35,0,0,4]],[[139,0,2,0,4],["incrementOffsetX",1],["incrementOffsetY",1]]],[128,2,[[138,2],["bevelBottomDepth",1],["bevelBottomInset",1],["bevelBottomType",1],["bevelTopDepth",1],["bevelTopInset",1],["bevelTopType",1],["contourWidth",1],["depth",1],["extrusionColorType",1],["fieldOfView",1],["lightAngle",1],["isPerspective",1],["presetCamera",3],["presetExtrusionDirection",3],["presetLighting",1],["presetLightingDirection",1],["presetLightingSoftness",1],["presetMaterial",1],["presetThreeDimensionalFormat",3],["projectText",1],["rotationX",1],["rotationY",1],["rotationZ",1],[214,1],["z",1,0,"Z"]],[["contourColor",126,35,0,0,4],["extrusionColor",126,35,0,0,4]],[[139,0,2,0,4],["incrementRotationHorizontal",1],["incrementRotationVertical",1],["incrementRotationX",1],["incrementRotationY",1],["incrementRotationZ",1],["resetRotation"],["setExtrusionDirection",1],["setPresetCamera",1],["setThreeDimensionalFormat",1]]],[129,2,[[138,2],["bibliographyStyle",1]],[["sources",130,19,0,0,4]],[[139,0,2,0,4],["generateUniqueTag",0,2,0,4]]],[130,3,[[138,2]],0,[[139,0,2,0,4]],[[147,131,1,18,0,4],[223,131,1,8]],0,131],[131,2,[[138,2],[241,3],[237,3],["isCited",3]],0,[[139,0,2,0,4],[140],["getFieldByName",1]]],[132,2,[[138,2],[346,1],[347,1],[344,1],[345,1],["gutter",1],["pageWidth",1],["pageHeight",1],[348,1],[328,1],["mirrorMargins",1],["headerDistance",1],["footerDistance",1],["sectionStart",1],["oddAndEvenPagesHeaderFooter",1],["differentFirstPageHeaderFooter",1],["suppressEndnotes",1],["paperSize",1],["twoPagesOnOne",1],["charsLine",1],["linesPage",1],["showGrid",1],["gutterStyle",1],["sectionDirection",1],["layoutMode",1],["gutterPosition",1],["bookFoldPrinting",1],["bookFoldReversePrinting",1],["bookFoldPrintingSheets",1]],[["lineNumbering",133,33,0,0,4],["textColumns",134,19,0,0,4]],[[139,0,2,0,4],[291,0,2,0,4],["togglePortrait",0,2,0,4]]],[133,2,[[138,2],["restartMode",1],["startingNumber",1],["distanceFromText",1],["countBy",1],["isActive",1]],0,[[139,0,2,0,4]]],[134,3,[[138,2]],0,[[139,0,2,0,4],["setCount",1],["getIsEvenlySpaced"],["setIsEvenlySpaced",1],["getFlowDirection"],["setFlowDirection",1],["getHasLineBetween"],["setHasLineBetween",1]],[[147,135,1,18,0,4],[223,135,1,8]],0,135],[135,2,[[138,2],[305,1],[211,1]],0,[[139,0,2,0,4]]]]},targetNamespaceObject:i})}(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 o,e=(o=OfficeCore.RequestContext,__extends(t,o),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=OfficeExtension.BatchApiHelper.createTopLevelServiceObject(n.Application,this,"Microsoft.WordServices.Application",!1,0)),this.m_application},enumerable:!0,configurable:!0}),t);function t(e){var t=o.call(this,e)||this;return t.m_document=OfficeExtension.BatchApiHelper.createRootServiceObject(n.Document,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=(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 o=e[n],r=t[n];if(o.enum)switch(typeof r){case"string":if(c.OUtil.listContainsValue(o.enum,r))break;case"undefined":throw 5007;default:throw this.getInvalidParameterString()}if(o.types&&!c.OUtil.listContainsValue(o.types,typeof r))throw this.getInvalidParameterString()}},t.prototype.extractRequiredArguments=function(e,t,n){if(e.length<this._requiredCount)throw c.Utility.createParameterException(Strings.OfficeOM.L_MissingRequiredArguments);var o,r=[];for(o=0;o<this._requiredCount;o++)r.push(e[o]);this.verifyArguments(this._requiredParameters,r);var i={};for(o=0;o<this._requiredCount;o++){var a=this._requiredParameters[o],s=r[o];if(a.verify&&!a.verify(s,t,n))throw this.getInvalidParameterString();i[a.name]=s}return i},t.prototype.fillOptions=function(e,t,n,o){for(var r in e=e||{},this._supportedOptions)if(!c.OUtil.listContainsKey(e,r)){var i=void 0,a=this._supportedOptions[r];a.calculate&&t&&(i=a.calculate(t,n,o)),i||void 0===a.defaultValue||(i=a.defaultValue),e[r]=i}return e},t.prototype.constructCallArgs=function(e,t,n,o){var r={};for(var i in e)r[i]=e[i];for(var a in t)r[a]=t[a];for(var s in this._privateStateCallbacks)r[s]=this._privateStateCallbacks[s](n,o);return this._checkCallArgs&&(r=this._checkCallArgs(r,n,o)),r},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,o,r){this._requiredParameters=e,this._supportedOptions=t,this._privateStateCallbacks=n,this._checkCallArgs=o,this._displayName=r,this._requiredCount=e.length}c.ApiMethodCall=e}(OSF=OSF||{}),function(c){var e=(t.prototype.verifyAndExtractCall=function(e,t,n){var o=this._apiMethods.extractRequiredArguments(e,t,n),r=this.extractOptions(e,o,t,n);return this._apiMethods.constructCallArgs(o,r,t,n)},t.prototype.processResponse=function(e,t,n,o){return 0==e?this._onSucceeded?this._onSucceeded(t,n,o):t:this._onFailed?this._onFailed(e,t):c.DDA.ErrorCodeManager.getErrorArgs(e)},t.prototype.getCallArgs=function(e){for(var t,n,o=e.length-1;o>=this._requiredCount;o--){var r=e[o];switch(typeof r){case"object":t=r;break;case"function":n=r}}return t=t||{},n&&(t[c.ParameterNames.Callback]=n),t},t.prototype.extractOptions=function(e,t,n,o){if(e.length>this._requiredCount+2)throw c.Utility.createParameterException(Strings.OfficeOM.L_TooManyArguments);for(var r,i,a=e.length-1;a>=this._requiredCount;a--){var s=e[a];switch(typeof s){case"object":if(r)throw c.Utility.createParameterException(Strings.OfficeOM.L_TooManyOptionalObjects);r=s;break;case"function":if(i)throw c.Utility.createParameterException(Strings.OfficeOM.L_TooManyOptionalFunction);i=s;break;default:throw c.Utility.createArgumentException(Strings.OfficeOM.L_InValidOptionalArgument)}}if(r=this._apiMethods.fillOptions(r,t,n,o),i){if(r[c.ParameterNames.Callback])throw Strings.OfficeOM.L_RedundantCallbackSpecification;r[c.ParameterNames.Callback]=i}return this._apiMethods.verifyArguments(this._supportedOptions,r),r},t);function t(e,t,n,o,r,i,a){this._requiredParameters=e,this._supportedOptions=t,this._privateStateCallbacks=n,this._onSucceeded=o,this._onFailed=r,this._displayName=a,this._checkCallArgs=i,this._requiredCount=e.length,this._apiMethods=new c.ApiMethodCall(e,t,n,i,a)}c.AsyncMethodCall=e}(OSF=OSF||{}),function(r){var e,i;e=r.AsyncMethodCalls||(r.AsyncMethodCalls={}),i={},e.define=function(e){var t,n,o;i[e.method]=(n=(t=e).supportedOptions?r.OUtil.createObject(t.supportedOptions):[],o=t.privateStateCallbacks?r.OUtil.createObject(t.privateStateCallbacks):[],new r.AsyncMethodCall(t.requiredArguments||[],n,o,t.onSucceeded,t.onFailed,t.checkCallArgs,t.method))},e.get=function(e){return i[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(o.prototype,"startRow",{get:function(){return this.m_subset.startRow},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"startColumn",{get:function(){return this.m_subset.startColumn},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"rowCount",{get:function(){return this.m_subset.rowCount},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"columnCount",{get:function(){return this.m_subset.columnCount},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"type",{get:function(){return e.EventType.BindingSelectionChanged},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"binding",{get:function(){return this.m_bindingInstance},enumerable:!0,configurable:!0}),o);function o(e,t){this.m_bindingInstance=e,this.m_subset=t}e.BindingSelectionChangedEventArgs=n;var r=(Object.defineProperty(i.prototype,"type",{get:function(){return e.EventType.BindingDataChanged},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"binding",{get:function(){return this.m_bindingInstance},enumerable:!0,configurable:!0}),i);function i(e){this.m_bindingInstance=e}e.BindingDataChangedEventArgs=r}(OSF=OSF||{}),function(e){var t,n,o,r,i,a;(t=e.PropertyDescriptors||(e.PropertyDescriptors={})).DataPartProperties="DataPartProperties",t.DataNodeProperties="DataNodeProperties",n=e.Marshaling||(e.Marshaling={}),o=n.Customxml||(n.Customxml={}),(r=o.DataNodeEventProperties||(o.DataNodeEventProperties={})).OldNode="OldNode",r.NewNode="NewNode",r.NextSiblingNode="NextSiblingNode",r.InUndoRedo="InUndoRedo",(i=e.EventDescriptors||(e.EventDescriptors={})).DataNodeInsertedEvent="DataNodeInsertedEvent",i.DataNodeReplacedEvent="DataNodeReplacedEvent",i.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 d=(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=d}(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,i;function g(e){return e==m.EventDispId.dispidObjectDeletedEvent||e==m.EventDispId.dispidObjectSelectionChangedEvent||e==m.EventDispId.dispidObjectDataChangedEvent||e==m.EventDispId.dispidContentControlAddedEvent}function h(e,t,n,o){if("number"!=typeof e)throw e;b(o=o||t.getCallArgs(n),e,m.DDA.ErrorCodeManager.getErrorArgs(e))}function y(e){return(m._OfficeAppFactory.getHostInfo().hostPlatform==m.HostInfoPlatform.web?m.WACDelegate:m.SafeArrayDelegate)[e]}function v(){return i||function(){i={};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]&&(i[m.AsyncMethods[t]]=e[t]);var n={MessageParent:144,SendMessage:145};for(var t in n)m.SyncMethods[t]&&(i[m.SyncMethods[t]]=n[t]);var o={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 r in o)m.EventType[r]&&(i[m.EventType[r]]=o[r])}(),i}function b(e,t,n){var o=e[m.ParameterNames.Callback];if(o){var r,i={};i[m.DDA.AsyncResultEnum.Properties.Context]=e[m.ParameterNames.AsyncContext],0==t?i[m.DDA.AsyncResultEnum.Properties.Value]=n:(r={},n=n||m.DDA.ErrorCodeManager.getErrorArgs(5001),r[m.DDA.AsyncResultEnum.ErrorProperties.Code]=t||5001,r[m.DDA.AsyncResultEnum.ErrorProperties.Name]=n.name||n,r[m.DDA.AsyncResultEnum.ErrorProperties.Message]=n.message||n),o(new m.DDA.AsyncResult(i,r))}}m.DialogShownStatus={hasDialogShown:!1,isWindowDialog:!1},(e=m.DispIdHost||(m.DispIdHost={})).InvokeMethod=function(e,t,r,n){var i;try{var a=m.AsyncMethodCalls.get(e);i=a.verifyAndExtractCall(t,r,n);var s=v()[e],o=y("executeAsync"),c=null;if(window.Excel&&window.Office.context.requirements.isSetSupported("RedirectV1Api")&&(window.Excel._RedirectV1APIs=!0),window.Excel&&window.Excel._RedirectV1APIs&&(c=window.Excel._V1APIMap[e])){var l=m.OUtil.shallowCopy(i);delete l[m.ParameterNames.AsyncContext],c.preprocess&&(l=c.preprocess(l));var u=new window.Excel.RequestContext,d=c.call(u,l);u.sync().then(function(){var e=d.value,t=e.status;delete e.status,delete e["@odata.type"],c.postprocess&&(e=c.postprocess(e,l)),0!=t&&(e=m.DDA.ErrorCodeManager.getErrorArgs(t)),b(i,t,e)}).catch(function(e){b(i,13991,null)})}else{var f;f=m.HostParameterMap.toHost(s,i);var p=(new Date).getTime();o({dispId:s,hostCallArgs:f,onCalling:function(){},onReceiving:function(){},onComplete:function(e,t){var n;n=0==e?m.HostParameterMap.fromHost(s,t):t;var o=a.processResponse(e,n,r,i);b(i,e,o),m.AppTelemetry&&m.AppTelemetry.onMethodDone(s,f,Math.abs((new Date).getTime()-p),e)}})}}catch(e){h(e,a,t,i)}},e.AddEventHandler=function(t,n,o,e){var r,i,a,s=!1;function c(e){var t;0==e&&((s?n.addObjectEventHandler(i,r[m.ParameterNames.Id],a):n.addEventHandler(i,a))||(e=13991));0!=e&&(t=m.DDA.ErrorCodeManager.getErrorArgs(e)),b(r,e,t)}try{var l=m.AsyncMethodCalls.get(m.AsyncMethods.AddHandlerAsync);if(r=l.verifyAndExtractCall(t,o,n),i=r[m.ParameterNames.EventType],a=r[m.ParameterNames.Handler],e)return void c(0);var u=v()[i],d=(s=g(u))?r[m.ParameterNames.Id]:o.id||"";if(0==(s?n.getObjectEventHandlerCount(i,d):n.getEventHandlerCount(i)))y("registerEventAsync")({eventType:i,dispId:u,targetId:d,onCalling:function(){},onReceiving:function(){},onComplete:c,onEvent:function(e){var t=m.HostParameterMap.fromHost(u,e);s?n.fireObjectEvent(d,m.manufactureEventArgs(i,d,t)):n.fireEvent(m.manufactureEventArgs(i,o,t))}});else c(0)}catch(e){h(e,l,t,r)}},e.RemoveEventHandler=function(t,e,n){var o,r,i,a=!1;function s(e){var t;0!=e&&(t=m.DDA.ErrorCodeManager.getErrorArgs(e)),b(o,e,t)}try{var c=m.AsyncMethodCalls.get(m.AsyncMethods.RemoveHandlerAsync);r=(o=c.verifyAndExtractCall(t,n,e))[m.ParameterNames.EventType],i=o[m.ParameterNames.Handler];var l,u,d=v()[r],f=(a=g(d))?o[m.ParameterNames.Id]:n.id||"";l=null===i?(u=a?e.clearObjectEventHandlers(r,f):e.clearEventHandlers(r),0):(u=a?e.removeObjectEventHandler(r,f,i):e.removeEventHandler(r,i))?0:5003;var p=a?e.getObjectEventHandlerCount(r,f):e.getEventHandlerCount(r);if(u&&0==p)y("unregisterEventAsync")({eventType:r,dispId:d,targetId:f,onCalling:function(){},onReceiving:function(){},onComplete:s});else s(l)}catch(e){h(e,c,t,o)}},e.OpenDialog=function(t,r,i){var o,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=r;var n=l.processResponse(e,t,i,o);m.DialogShownStatus.hasDialogShown=!0,r.clearEventHandlers(s),r.clearEventHandlers(c)}b(o,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);o=l.verifyAndExtractCall(t,i,r);var u=v()[s],n=y("openDialog");a=JSON.stringify(o),m.DialogShownStatus.hasDialogShown||(r.clearQueuedEvent(s),r.clearQueuedEvent(c),r.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,i,t);if(n.type==c){m.DDA.ErrorCodeManager.getErrorArgs(n.error);var o={};o.code=status||5001,n.error=new m.DDA.Error(o[m.DDA.AsyncResultEnum.ErrorProperties.Name],o[m.DDA.AsyncResultEnum.ErrorProperties.Message],o[m.DDA.AsyncResultEnum.ErrorProperties.Code])}r.fireOrQueueEvent(n),12006==t.messageType&&(r.clearEventHandlers(s),r.clearEventHandlers(c),r.clearEventHandlers(m.EventType.DialogParentMessageReceived),m.DialogShownStatus.hasDialogShown=!1)}})}catch(e){h(e,l,t,o)}},e.CloseDialog=function(t,e,n,o){var r,i,a;try{var s=m.AsyncMethodCalls.get(m.AsyncMethods.CloseAsync);r=s.verifyAndExtractCall(t,o,n),i=m.EventType.DialogMessageReceived,a=m.EventType.DialogEventReceived,n.clearEventHandlers(i),n.clearEventHandlers(a);var c=v()[i];y("closeDialog")({eventType:i,dispId:c,targetId:e,onCalling:function(){},onReceiving:function(){},onComplete:function(e){m.DialogShownStatus.hasDialogShown=!1}})}catch(e){h(e,s,t,r)}},e.MessageParent=function(e,t){var n=m.SyncMethodCalls.get(m.SyncMethods.MessageParent).verifyAndExtractCall(e,t,{});return y("messageParent")({dispId:v()[m.SyncMethods.MessageParent],hostCallArgs:n,onCalling:function(){},onReceiving:function(){}})},e.SendMessage=function(e,t,n){var o=m.SyncMethodCalls.get(m.SyncMethods.SendMessage).verifyAndExtractCall(e,n,{});return y("sendMessage")({dispId:v()[m.SyncMethods.SendMessage],hostCallArgs:o,onCalling:function(){},onReceiving:function(){}})},e.addAsyncMethods=function(t,e,n){for(var o in e){var r=e[o];t[r]||m.OUtil.defineEnumerableProperty(t,r,{value:function(e){return function(){(0,m.DispIdHost.InvokeMethod)(e,arguments,t,n)}}(r)})}},e.addEventSupport=function(e,t,n){var o=m.AsyncMethods.AddHandlerAsync,r=m.AsyncMethods.RemoveHandlerAsync;e[o]||m.OUtil.defineEnumerableProperty(e,o,{value:function(){(0,m.DispIdHost.AddEventHandler)(arguments,t,e,n)}}),e[r]||m.OUtil.defineEnumerableProperty(e,r,{value:function(){(0,m.DispIdHost.RemoveEventHandler)(arguments,t,e)}})},e.issueAsyncResult=b}(OSF=OSF||{}),function(r){r.manufactureEventArgs=function(e,t,n){var o;switch(e){case r.EventType.DocumentSelectionChanged:o=new r.DocumentSelectionChangedEventArgs(t);break;case r.EventType.BindingSelectionChanged:o=new r.BindingSelectionChangedEventArgs(r.manufactureBinding(n,t.document),n[r.PropertyDescriptors.Subset]);break;case r.EventType.BindingDataChanged:o=new r.BindingDataChangedEventArgs(r.manufactureBinding(n,t.document));break;case r.EventType.SettingsChanged:o=new r.SettingsChangedEventArgs(t);break;case r.EventType.ActiveViewChanged:o=new r.ActiveViewChangedEventArgs(n);break;case r.EventType.LiveShareStateChanged:o=new r.LiveShareStateChangedEventArgs(n);break;case r.EventType.OfficeThemeChanged:o=new r.DDA.Theming.OfficeThemeChangedEventArgs(n);break;case r.EventType.DocumentThemeChanged:o=new r.DDA.Theming.DocumentThemeChangedEventArgs(n);break;case r.EventType.DataNodeInserted:o=new r.NodeInsertedEventArgs(r.manufactureDataNode(n[r.DataNodeEventProperties.NewNode]),n[r.DataNodeEventProperties.InUndoRedo]);break;case r.EventType.DataNodeReplaced:o=new r.NodeReplacedEventArgs(r.manufactureDataNode(n[r.DataNodeEventProperties.OldNode]),r.manufactureDataNode(n[r.DataNodeEventProperties.NewNode]),n[r.DataNodeEventProperties.InUndoRedo]);break;case r.EventType.DataNodeDeleted:o=new r.NodeDeletedEventArgs(r.manufactureDataNode(n[r.DataNodeEventProperties.OldNode]),r.manufactureDataNode(n[r.DataNodeEventProperties.NextSiblingNode]),n[r.DataNodeEventProperties.InUndoRedo]);break;case r.EventType.DialogMessageReceived:o=new r.DialogEventArgs(n);break;case r.EventType.DialogParentMessageReceived:o=new r.DialogParentEventArgs(n)}return o}}(OSF=OSF||{}),function(p){var m="toHost",g="fromHost";!function(u){var t;u.self="self",u.dynamicTypes={},u.dynamicTypes[p.ParameterNames.Data]={toHost:function(e){if(null!=e&&void 0!==e.rows){var t={};t[p.TableDataProperties.TableRows]=e.rows,t[p.TableDataProperties.TableHeaders]=e.headers,e=t}return e},fromHost:function(e){return e}},u.dynamicTypes.sampleData=u.dynamicTypes.data;var d={};function o(e,t){var n,o;if(t.map)for(var r in o={},n=t.map){var i=n[r];i==u.self&&(i=r),o[i]=r}else n=t.toHost,o=t.fromHost;var a=d[e];if(a){var s=a[m];for(var c in s)n[c]=s[c];for(var l in s=a[g])o[l]=s[l]}else a=d[e]={};a[m]=n,a[g]=o}function r(e){f().addComplexType(e)}function l(e,t){var n=e?{}:void 0;for(var o in e){var r,i=e[o];if(p.ListType.isListType(o))for(var a in r=[],i)r.push(l(i[a],t));else if(p.OUtil.listContainsKey(u.dynamicTypes,o))r=u.dynamicTypes[o][t](i);else if(t==g&&f().preserveNesting(o))r=l(i,t);else{var s=d[o];if(s){var c=s[t];c&&void 0===(r=c[i])&&(r=i)}else r=i}n[o]=r}return n}function n(e,t,n){var o,r=d[e][n];if("toHost"==n)o=function e(t,n){var o;for(var r in n){var i;if(null!=(i=f().isComplexType(r)?e(t,d[r][m]):t[r])){o=o||{};var a=n[r];a==u.self&&(a=r),o[a]=f().pack(r,i)}}return o}(l(t,n),r);else if("fromHost"==n){o=l(function e(t,n,o){for(var r in o=o||{},n){var i,a,s=n[r];if(s==u.self)i=t;else{if("sourceData"==s){o[r]=t.toArray();continue}i=t[s]}if(null==i)o[r]=void 0;else if(i=f().unpack(r,i),f().isComplexType(r))a=d[r][g],f().preserveNesting(r)?o[r]=e(i,a):e(i,a,o);else if(p.ListType.isListType(r)){(a={})[p.ListType.getDescriptor(r)]=u.self;var c=new Array(i.length);for(var l in i)c[l]=e(i[l],a);o[r]=c}else o[r]=i}return o}(t,r),n)}return o}function f(){if(!t){var e=p._OfficeAppFactory.getHostInfo();t=e.hostPlatform==p.HostInfoPlatform.web?new p.WebSpecialProcessor:new p.SafeArraySpecialProcessor}return t}function i(e){var t=null;if(e){t={};for(var n=e.length,o=0;o<n;o++)t[e[o].name]=e[o].value}return t}u.define=function(e){var t={},n=i(e.toHost);e.invertible?t.map=n:e.canonical?t.toHost=t.fromHost=n:(t.toHost=n,t.fromHost=i(e.fromHost)),o(e.type,t),e.isComplexType&&r(e.type)},u.toHost=function(e,t){return n(e,t,m)},u.fromHost=function(e,t){return n(e,t,g)},u.addMapping=o,u.addComplexType=r,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)}}(p.HostParameterMap||(p.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(p){!function(e){var t,n,o,r,i,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",(o=n=n||{}).HostButtonBorderColor="#86bfa0",o.HostButtonBackgroundColor="#d3f0e0",(i=r=r||{}).HostButtonBorderColor="#a3bde3",i.HostButtonBackgroundColor="#d5e1f2",(s=a=a||{}).HostButtonBorderColor="#f5ba9d",s.HostButtonBackgroundColor="#fcf0ed",e.finalizeProperties=function(e,t){t=t||{};for(var n=Object.getOwnPropertyNames(e),o=n.length,r=0;r<o;r++){var i=n[r],a=Object.getOwnPropertyDescriptor(e,i);a.get||a.set||(a.writable=t.writable||!1),a.configurable=t.configurable||!1,a.enumerable=t.enumerable||!0,Object.defineProperty(e,i,a)}return e},e.defineEnumerableProperties=function(e,t){return function(e,t,n){for(var o in t=t||{})d(e,o,t[o],n);return e}(e,t,["enumerable"])},e.defineEnumerableProperty=function(e,t,n){return d(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 o in e)t(o,e[o])},e.createObject=function(e){var t=null;if(e){t={};for(var n=e.length,o=0;o<n;o++)t[e[o].name]=e[o].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,o=e.length;n<o;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 o=e;return o[0].replace(/{(\d+)}/gm,function(e,t){var n=parseInt(t,10)+1;return void 0===o[n]?"{"+t+"}":o[n]})},e.addHostInfoAsQueryParam=function(e,t){if(!e)return null;var n,o="#",r=(e=e.trim()||"").split(o),i=r.shift(),a=r.join(o),s=i.split("?");return 1<s.length?n=i+"&_host_Info="+t:0<s.length&&(n=i+"?_host_Info="+t),a?[n,o,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 o=e.constructor();for(var r in e)e.hasOwnProperty(r)&&(o[r]=e[r]);return o}return e},e.getXdmEventName=function(e,t){return t==p.EventType.BindingSelectionChanged||t==p.EventType.BindingDataChanged||t==p.EventType.DataNodeDeleted||t==p.EventType.DataNodeInserted||t==p.EventType.DataNodeReplaced?e+"_"+t:t},e.getCommonUI=function(){switch(Office.context.host){case Office.HostType.Excel:return n;case Office.HostType.Word:return r;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 d(e,t,n,o){for(var r in n=n||{},o){var i=o[r];null==n[i]&&(n[i]=!0)}return Object.defineProperty(e,t,n),e}function f(e,t){p.Utility.trace(e+" Exception details: "+l(t))}e.getUniqueId=function(){return(u+=1).toString()}}(p.OUtil||(p.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 o(n,o){var r=(new Date).getTime();return function(e){o.onReceiving&&o.onReceiving();var t=e.toArray?e.toArray()[0]:e;return o.onComplete&&o.onComplete(t),s.AppTelemetry&&s.AppTelemetry.onRegisterDone(n,o.dispId,Math.abs((new Date).getTime()-r),t),!0}}function c(e){var t=e;if(null!=e&&e.toArray){var n=e.toArray();t=new Array(n.length);for(var o=0;o<n.length;o++)t[o]=c(n[o])}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 o=n.length,r=0;r<o;r++)n[r]=e(n[r]);else if(s.OUtil.isDate(t))n=t.getVarDate();else if("object"==typeof t&&!s.OUtil.isArray(t))for(var i in n=[],t)s.OUtil.isFunction(t[i])||(n[i]=e(t[i]));return n}(a.hostCallArgs),function(e){var t,n;if(1==(n="number"==typeof e?(t=[],e):(t=e.toArray())[0]))return null!=(o=c(o=t[1]))&&(a._chunkResultData||(a._chunkResultData=new Array),a._chunkResultData[o[0]]=o[1]),!1;if(a.onReceiving&&a.onReceiving(),a.onComplete){var o;if(0==n){if(2<t.length){o=[];for(var r=1;r<t.length;r++)o[r-1]=t[r]}else o=t[1];if(a._chunkResultData&&null!=(o=c(o))){var i=o[o.length-1];a._chunkResultData.length==i?o[o.length-1]=a._chunkResultData:n=5001}}else o=t[1];a.onComplete(n,o)}return!0})}catch(e){s.SafeArrayDelegate.onException(e,a)}},e.registerEventAsync=function(n){n.onCalling&&n.onCalling();var e=o(!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=o(!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,o=e.number;if(o)switch(o){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,o=e.number;if(o)switch(o){case-2146828218:n=7e3;break;case-2146827850:default:n=5001}return n||5001},e.getOnAfterRegisterEvent=o}(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 o=function(e,t){return(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}();!function(o){var t,e=(t=o.SpecialProcessor,__extends(n,t),n.prototype.unpack=function(e,t){return this.isComplexType(e)||o.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[o.ParameterNames.Data]={toHost:function(e){if(o.TableDataProperties&&"string"!=typeof e&&void 0!==e[o.TableDataProperties.TableRows]){var t=[];t[0]=e[o.TableDataProperties.TableRows],t[1]=e[o.TableDataProperties.TableHeaders],e=t}return e},fromHost:function(e){var t;if(e.toArray)if(2===e.dimensions())t=o.Utility.twoDVBArrayToJaggedArray(e);else{var n=e.toArray();2===n.length&&(null!=n[0]&&n[0].toArray||null!=n[1]&&n[1].toArray)?((t={})[o.TableDataProperties.TableRows]=o.Utility.twoDVBArrayToJaggedArray(n[0]),t[o.TableDataProperties.TableHeaders]=o.Utility.twoDVBArrayToJaggedArray(n[1])):t=n}else t=e;return t}},t.call(this,[],e)||this}o.SafeArraySpecialProcessor=e}(OSF=OSF||{}),function(s){var e=(t.prototype.verifyAndExtractCall=function(e,t,n){var o=this._apiMethods.extractRequiredArguments(e,t,n),r=this.extractOptions(e,o,t,n);return this._apiMethods.constructCallArgs(o,r,t,n)},t.prototype.extractOptions=function(e,t,n,o){if(e.length>this._requiredCount+1)throw s.Utility.createParameterException(Strings.OfficeOM.L_TooManyArguments);for(var r,i=e.length-1;i>=this._requiredCount;i--){var a=e[i];switch(typeof a){case"object":if(r)throw s.Utility.createParameterException(Strings.OfficeOM.L_TooManyArguments);r=a;break;default:throw s.Utility.createArgumentException(Strings.OfficeOM.L_InValidOptionalArgument)}}return r=this._apiMethods.fillOptions(r,t,n,o),this._apiMethods.verifyArguments(this._supportedOptions,r),r},t);function t(e,t,n,o,r){this._requiredCount=e.length,this._apiMethods=new s.ApiMethodCall(e,t,n,o,r),this._supportedOptions=t}s.SyncMethodCall=e}(OSF=OSF||{}),function(o){var e,r;e=o.SyncMethodCalls||(o.SyncMethodCalls={}),r={},e.define=function(e){var t,n;r[e.method]=(n=(t=e).supportedOptions?o.OUtil.createObject(t.supportedOptions):[],new o.SyncMethodCall(t.requiredArguments||[],n,t.privateStateCallbacks,t.checkCallArgs,t.method.displayName))},e.get=function(e){return r[e]}}(OSF=OSF||{}),(OSF||(OSF={})).SyncMethods={MessageParent:"messageParent",MessageChild:"messageChild",SendMessage:"sendMessage",AddMessageHandler:"addEventHandler"},function(l){var e;(function(e){var t,n,o,r;function i(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={},o=0;o<t.length;o++)t[o].needToConvertToHex?n[t[o].name]=l.OUtil.convertIntToCssHexColor(e[t[o].name]):n[t[o].name]=e[t[o].name];return n}function a(e){var t={};if(e){var n=l.DDA.Theming.OfficeThemeEnum,o={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 r in e){var i=!1,a=r;o[r]&&(a=o[r].name,i=o[r].convertToHex),t[a]=i?l.OUtil.convertIntToCssHexColor(e[r]):e[r]}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",(o=e.OfficeThemeEnumWac||(e.OfficeThemeEnumWac={})).PrimaryFontColor="primaryFontColor",o.PrimaryBackgroundColor="primaryBackgroundColor",o.SecondaryFontColor="secondaryFontColor",o.SecondaryBackgroundColor="secondaryBackgroundColor",o.IsDarkTheme="isDarkTheme",o.ThemeId="themeId",(r=e.ThemeId||(e.ThemeId={}))[r.Colorful=0]="Colorful",r[r.DarkGray=1]="DarkGray",r[r.Black=2]="Black",r[r.White=3]="White",e.ConvertToDocumentTheme=i,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 o=l.DDA.Theming.OfficeThemeEnum;void 0===t[o.IsDarkTheme]&&(t.isDarkTheme=l.DDA.Theming.GetIsDarkThemeFromCSSHexColor(e[o.BodyBackgroundColor])),void 0===t[o.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=i(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(o,r){var i=(new Date).getTime();return function(e,t){var n;if(r.onReceiving&&r.onReceiving(),0!=e)switch(e){case-5:n=7e3;break;default:n=5001}else n=t?t.Error?t.Error:0:5001;r.onComplete&&r.onComplete(n),a.AppTelemetry&&a.AppTelemetry.onRegisterDone(o,r.dispId,Math.abs((new Date).getTime()-i),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(o){o.hostCallArgs||(o.hostCallArgs={}),o.hostCallArgs.DdaMethod={ControlId:a._OfficeAppFactory.getId(),Version:a.WACDelegate.version,DispatchId:o.dispId},o.hostCallArgs.__timeout__=-1,o.onCalling&&o.onCalling(),a.getClientEndPoint()&&a.getClientEndPoint().invoke("executeMethod",function(e,t){var n;if(o.onReceiving&&o.onReceiving(),0==e)a.WACDelegate.version=t.Version,n=t.Error;else switch(e){case-5:n=7e3;break;default:n=5001}o.onComplete&&o.onComplete(n,t)},o.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(o,n),o);function o(){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 o=function(e,t){return(o=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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}();!function(e){var t,n,o;t=e.context||(e.context={}),n=t.document||(t.document={}),(o=n.bindings||(n.bindings={}))._eventDispatches=[],o.addFromSelectionAsync=function(e,t,n){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.AddFromSelectionAsync,arguments,this,void 0)},o.addFromNamedItemAsync=function(e,t,n,o){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.AddFromNamedItemAsync,arguments,this,void 0)},o.addFromPromptAsync=function(e,t,n){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.AddFromPromptAsync,arguments,this,void 0)},o.getAllAsync=function(e,t){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.GetAllAsync,arguments,this,void 0)},o.getByIdAsync=function(e,t,n){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.GetByIdAsync,arguments,this,void 0)},o.releaseByIdAsync=function(e,t,n){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.ReleaseByIdAsync,arguments,this,void 0)}}(Office=Office||{}),function(s){var e,t,n,o,r,i,a;function c(e){return s.manufactureBinding(e,Office.context.document)}function l(e){return e.id}function u(e,t,n){var o=e[s.ParameterNames.Data];return s.TableDataProperties&&o&&(null!=o[s.TableDataProperties.TableRows]||null!=o[s.TableDataProperties.TableHeaders])&&(o=Office.manufactureTableData(o)),null==(o=s.DataCoercion.coerceData(o,n[s.ParameterNames.CoercionType]))?null:o}(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",(o=t.TableBindingParameterKeys||(t.TableBindingParameterKeys={})).TableHeaders="TableHeaders",o.TableRows="TableRows",(r=t.AppBindingKeys||(t.AppBindingKeys={})).BindingId="Name",r.BindingType="BindingType",r[r.BindingProperties=0]="BindingProperties",r.BindingEventSource="ddaBinding",r.RowCount="RowCount",r.ColumnCount="ColCount",r.HasHeaders="HasHeaders",(i=t.TableSubsetKeys||(t.TableSubsetKeys={})).TableSubset="subset",i.StartRow="startRow",i.StartColumn="startColumn",i.RowCount="rowCount",i.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:I}},{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:I}},{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:I}},{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 o=n[s.ParameterNames.Id];delete t._eventDispatches[o]}}),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,o=e[s.BindingProperties.Id],r=e[s.BindingProperties.RowCount],i=e[s.BindingProperties.ColumnCount],a=e[s.BindingProperties.HasHeaders];switch(e[s.BindingProperties.Type]){case Office.BindingType.Text:n=new s.TextBinding(o,t);break;case Office.BindingType.Matrix:n=null,n=new s.MatrixBinding(o,t,r,i);break;case Office.BindingType.Table:n=new(s._OfficeAppFactory.getHostInfo().hostType==s.HostInfoHostType.excel&&Office.context.document&&s.ExcelTableBinding?s.ExcelTableBinding:s.TableBinding)(o,t,r,i,a);break;default:n=new s.UnknownBinding(o,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 d=(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=d;var p=(Object.defineProperty(m.prototype,"document",{get:function(){return this.m_docInstance},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"id",{get:function(){return this.m_id},enumerable:!0,configurable:!0}),m);function m(e,t){this.m_id=e,this.m_docInstance=t}s.UnknownBinding=p;var g=(h.prototype.getDataAsync=function(e,t){s.DispIdHost.InvokeMethod(s.AsyncMethods.GetDataAsync,arguments,this,void 0)},h.prototype.setDataAsync=function(e,t,n){s.DispIdHost.InvokeMethod(s.AsyncMethods.SetDataAsync,arguments,this,void 0)},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;var n=s.EventType,o=t.bindings._eventDispatches;o[e]||(o[e]=new s.EventDispatch([n.BindingSelectionChanged,n.BindingDataChanged]));var r=o[e];s.DispIdHost.addEventSupport(this,r)}s.Binding=g;var y,v=(y=s.Binding,__extends(b,y),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,o){var r=y.call(this,e,t)||this;return r.m_rows=n,r.m_cols=o,r}s.MatrixBinding=v;var C,O=(C=s.Binding,__extends(_,C),Object.defineProperty(_.prototype,"type",{get:function(){return Office.BindingType.Table},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"rowCount",{get:function(){return this.m_rows?this.m_rows:0},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"columnCount",{get:function(){return this.m_cols?this.m_cols:0},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"hasHeaders",{get:function(){return!!this.m_hasHeaders&&this.m_hasHeaders},enumerable:!0,configurable:!0}),_.prototype.addRowsAsync=function(e,t,n){s.DispIdHost.InvokeMethod(s.AsyncMethods.AddRowsAsync,arguments,this,void 0)},_.prototype.addColumnsAsync=function(e,t,n){s.DispIdHost.InvokeMethod(s.AsyncMethods.AddColumnsAsync,arguments,this,void 0)},_.prototype.deleteAllDataValuesAsync=function(e,t){s.DispIdHost.InvokeMethod(s.AsyncMethods.DeleteAllDataValuesAsync,arguments,this,void 0)},_);function _(e,t,n,o,r){var i=C.call(this,e,t)||this;return i.m_rows=n,i.m_cols=o,i.m_hasHeaders=r,i}s.TableBinding=O;var A,S=(A=s.TableBinding,__extends(P,A),P.prototype.clearFormatsAsync=function(e,t){s.DispIdHost.InvokeMethod(s.AsyncMethods.ClearFormatsAsync,arguments,this,void 0)},P.prototype.setTableOptionsAsync=function(e,t,n){s.DispIdHost.InvokeMethod(s.AsyncMethods.SetTableOptionsAsync,arguments,this,void 0)},P.prototype.setFormatsAsync=function(e,t,n){s.DispIdHost.InvokeMethod(s.AsyncMethods.SetFormatsAsync,arguments,this,void 0)},P);function P(e,t,n,o,r){var i=A.call(this,e,t,n,o,r)||this;return s.OUtil.finalizeProperties(i),i}function w(e){return e.id}s.ExcelTableBinding=S,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:w}]}),s.AsyncMethodCalls.define({method:s.AsyncMethods.AddColumnsAsync,requiredArguments:[{name:s.ParameterNames.Data,types:["object"]}],supportedOptions:[],privateStateCallbacks:[{name:s.ParameterNames.Id,value:w}]}),s.AsyncMethodCalls.define({method:s.AsyncMethods.DeleteAllDataValuesAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[{name:s.ParameterNames.Id,value:w}]})}});var T,E=(T=s.Binding,__extends(D,T),Object.defineProperty(D.prototype,"type",{get:function(){return Office.BindingType.Text},enumerable:!0,configurable:!0}),D);function D(e,t){return T.call(this,e,t)||this}function I(){return"UnnamedBinding_"+s.OUtil.getUniqueId()+"_"+(new Date).getTime()}s.TextBinding=E,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,o;t=e.context||(e.context={}),n=t.document||(t.document={}),(o=n.customXmlParts||(n.customXmlParts={}))._eventDispatches=[],o.addAsync=function(e,t,n){"function"==typeof t&&(n=t);var o={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,o,n,null!=t?t.asyncContext:void 0)},o.getByIdAsync=function(e,t,n){"function"==typeof t&&(n=t);var o={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,o,n,null!=t?t.asyncContext:void 0)},o.getByNamespaceAsync=function(e,t,n){"function"==typeof t&&(n=t);var o={toSafeArrayHost:function(){return[e]},fromSafeArrayHost:function(e){var t=[];if(e)for(var n=0;n<e.length;n++){var o={id:e[n][0],DataPartBuiltIn:e[n][1]},r=OSF.processDataPart(o);t.push(r)}return t},toWebHost:function(){return{namespace:e}},fromWebHost:function(e){for(var t=[],n=0;n<e.DataPartList.length;n++){var o={id:e.DataPartList[n].id,DataPartBuiltIn:e.DataPartList[n].DataPartBuiltIn},r=OSF.processDataPart(o);t.push(r)}return t}};OSF._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(130,o,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 o=(Object.defineProperty(r.prototype,"builtIn",{get:function(){return this.m_builtIn},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"id",{get:function(){return this.m_id},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"namespaceManager",{get:function(){return new i(this.m_id)},enumerable:!0,configurable:!0}),r.prototype.deleteAsync=function(e,t){var n=this;"function"==typeof e&&(t=e);var o={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,o,t,null!=e?e.asyncContext:void 0)},r.prototype.getNodesAsync=function(e,t,n){var o=this;"function"==typeof t&&(n=t);var r={toSafeArrayHost:function(){return[null==o.m_id?void 0:o.m_id,e]},fromSafeArrayHost:function(e){for(var t=[],n=0;n<e.length;n++){var o={DataNodeHandle:e[n][0],DataNodeBaseName:e[n][1],DataNodeNamespaceUri:e[n][2],DataNodeType:e[n][3]},r=a.processDataNode(o);t.push(r)}return t},toWebHost:function(){return{id:null==o.m_id?void 0:o.m_id,xpath:e}},fromWebHost:function(e){for(var t=[],n=0;n<e.DataNodeList.length;n++){var o={DataNodeHandle:e.DataNodeList[n].DataNodeHandle,DataNodeBaseName:e.DataNodeList[n].DataNodeBaseName,DataNodeNamespaceUri:e.DataNodeList[n].DataNodeNamespaceUri,DataNodeType:e.DataNodeList[n].DataNodeType},r=a.processDataNode(o);t.push(r)}return t}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(132,r,n,null!=t?t.asyncContext:void 0)},r.prototype.getXmlAsync=function(e,t){var n=this;"function"==typeof e&&(t=e);var o={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,o,t,null!=e?e.asyncContext:void 0)},r);function r(e,t,n){this.m_customXmlParts=e,this.m_id=t,this.m_builtIn=n;var o=e._eventDispatches,r=o[t];if(!r){var i=a.EventType;r=new a.EventDispatch([i.DataNodeDeleted,i.DataNodeInserted,i.DataNodeReplaced]),o[t]=r}a.DispIdHost.addEventSupport(this,r)}a.CustomXmlPart=o;var i=(s.prototype.addNamespaceAsync=function(e,t,n,o){var r=this;"function"==typeof n&&(o=n);var i={toSafeArrayHost:function(){return[null==r.m_partId?void 0:r.m_partId,e,t]},fromSafeArrayHost:function(e){},toWebHost:function(){return{id:null==r.m_partId?void 0:r.m_partId,prefix:e,namespace:t}},fromWebHost:function(e){return{}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(139,i,o,null!=n?n.asyncContext:void 0)},s.prototype.getNamespaceAsync=function(e,t,n){var o=this;"function"==typeof t&&(n=t);var r={toSafeArrayHost:function(){return[null==o.m_partId?void 0:o.m_partId,e]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{id:null==o.m_partId?void 0:o.m_partId,prefix:e}},fromWebHost:function(e){return{data:e.Data}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(140,r,n,null!=t?t.asyncContext:void 0)},s.prototype.getPrefixAsync=function(e,t,n){var o=this;"function"==typeof t&&(n=t);var r={toSafeArrayHost:function(){return[null==o.m_partId?void 0:o.m_partId,e]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{id:null==o.m_partId?void 0:o.m_partId,namespace:e}},fromWebHost:function(e){return{data:e.Data}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(141,r,n,null!=t?t.asyncContext:void 0)},s);function s(e){this.m_partId=e}a.CustomXmlPrefixMappings=i;var c,l,u,d,f,p,m,g=(Object.defineProperty(h.prototype,"baseName",{get:function(){return this.m_baseName},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"namespaceUri",{get:function(){return this.m_ns},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"nodeType",{get:function(){return this.m_nodeType},enumerable:!0,configurable:!0}),h.prototype.getNodesAsync=function(e,t,n){var o=this;"function"==typeof t&&(n=t);var r={toSafeArrayHost:function(){return[y(o,o.m_handle),e]},fromSafeArrayHost:function(e){for(var t=[],n=0;n<e.length;n++){var o={DataNodeBaseName:e[n][2],DataNodeNamespaceUri:e[n][3],DataNodeType:e[n][4]},r=a.processDataNode(o);t.push(r)}return t},toWebHost:function(){return{DataNodeHandle:y(o,o.m_handle),xpath:e}},fromWebHost:function(e){for(var t=[],n=0;n<e.DataNodeList.length;n++){var o={DataNodeHandle:e.DataNodeList[n].DataNodeHandle,DataNodeBaseName:e.DataNodeList[n].DataNodeBaseName,DataNodeNamespaceUri:e.DataNodeList[n].DataNodeNamespaceUri,DataNodeType:e.DataNodeList[n].DataNodeType},r=a.processDataNode(o);t.push(r)}return t}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(136,r,n,null!=t?t.asyncContext:void 0)},h.prototype.getNodeValueAsync=function(e,t){var n=this;"function"==typeof e&&(t=e);var o={toSafeArrayHost:function(){return[y(n,n.m_handle)]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{DataNodeHandle:y(n,n.m_handle)}},fromWebHost:function(e){return{data:e.Data}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(134,o,t,null!=e?e.asyncContext:void 0)},h.prototype.setNodeValueAsync=function(e,t,n){var o=this;"function"==typeof t&&(n=t);var r={toSafeArrayHost:function(){return[y(o,o.m_handle),e]},fromSafeArrayHost:function(e){},toWebHost:function(){return{DataNodeHandle:y(o,o.m_handle),Data:e}},fromWebHost:function(e){return{}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(137,r,n,null!=t?t.asyncContext:void 0)},h.prototype.getXmlAsync=function(e,t){var n=this;"function"==typeof e&&(t=e);var o={toSafeArrayHost:function(){return[y(n,n.m_handle)]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{DataNodeHandle:y(n,n.m_handle)}},fromWebHost:function(e){return{data:e.Data}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(135,o,t,null!=e?e.asyncContext:void 0)},h.prototype.setXmlAsync=function(e,t,n){var o=this;"function"==typeof t&&(n=t);var r={toSafeArrayHost:function(){return[y(o,o.m_handle),e]},fromSafeArrayHost:function(e){},toWebHost:function(){return{DataNodeHandle:y(o,o.m_handle),xml:e}},fromWebHost:function(e){return{}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(138,r,n,null!=t?t.asyncContext:void 0)},h.prototype.getTextAsync=function(e,t){var n=this;"function"==typeof e&&(t=e);var o={toSafeArrayHost:function(){return[y(n,n.m_handle)]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{DataNodeHandle:y(n,n.m_handle)}},fromWebHost:function(e){return{data:e.Data}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(142,o,t,null!=e?e.asyncContext:void 0)},h.prototype.setTextAsync=function(e,t,n){var o=this;"function"==typeof t&&(n=t);var r={toSafeArrayHost:function(){return[y(o,o.m_handle),e]},fromSafeArrayHost:function(e){},toWebHost:function(){return{DataNodeHandle:y(o,o.m_handle),undefined:e}},fromWebHost:function(e){return{}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(143,r,n,null!=t?t.asyncContext:void 0)},h);function h(e,t,n,o){this.m_handle=e,this.m_nodeType=t,this.m_ns=n,this.m_baseName=o}function y(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",(d=l.DataPartProperties||(l.DataPartProperties={})).Id="id",d.BuiltIn="DataPartBuiltIn",(f=l.PropertyDescriptors||(l.PropertyDescriptors={})).DataPartProperties="DataPartProperties",f.DataNodeProperties="DataNodeProperties",(p=l.DataNodeProperties||(l.DataNodeProperties={})).Handle="DataNodeHandle",p.BaseName="DataNodeBaseName",p.NamespaceUri="DataNodeNamespaceUri",p.NodeType="DataNodeType",(m=l.ListDescriptors||(l.ListDescriptors={})).DataPartList="DataPartList",m.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(r){var e;function o(e){if(null==e||null==e)return null;var t=null,n=typeof e;return void 0!==e.rows?t=Office.CoercionType.Table:r.OUtil.isArray(e)?t=Office.CoercionType.Matrix:"string"!=n&&"number"!=n&&"boolean"!=n&&!r.OUtil.isDate(e)||(t=Office.CoercionType.Text),t}function i(e,t,n){return(n=n||o(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:r.manufactureSlideRange&&null==(n=r.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=o(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=r.DataCoercion||(r.DataCoercion={}),r.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){},defineSafeArrayParameterMapFunc:function(){r.HostParameterMap.define({type:r.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=r._OfficeAppFactory.getHostInfo();e.hostPlatform!=r.HostInfoPlatform.win32&&e.hostPlatform!=r.HostInfoPlatform.mac&&e.hostPlatform!=r.HostInfoPlatform.ios&&e.hostPlatform!=r.HostInfoPlatform.android||(r.OUtil.augmentList(Office.CoercionType,{Image:"image"}),r.OUtil.augmentList(Office.CoercionType,{XmlSvg:"xmlSvg"}),r.HostParameterMap.define({type:r.ParameterNames.CoercionType,toHost:[{name:"image",value:8},{name:"xmlSvg",value:9}]}));r.HostParameterMap.define({type:r.ParameterNames.ValueFormat,toHost:[{name:Office.ValueFormat.Unformatted,value:0},{name:Office.ValueFormat.Formatted,value:1}]}),r.HostParameterMap.define({type:r.ParameterNames.FilterType,toHost:[{name:Office.FilterType.All,value:0}]})},defineWebParameterMapFunc:function(){r.OUtil.augmentList(Office.CoercionType,{Image:"image"}),r.OUtil.augmentList(Office.CoercionType,{XmlSvg:"xmlSvg"}),r.HostParameterMap.define({type:r.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}]}),r.HostParameterMap.define({type:r.ParameterNames.ValueFormat,toHost:[{name:Office.ValueFormat.Unformatted,value:0},{name:Office.ValueFormat.Formatted,value:1}]}),r.HostParameterMap.define({type:r.ParameterNames.FilterType,toHost:[{name:Office.FilterType.All,value:0}]})}}),e.findArrayDimensionality=function e(t){if(r.OUtil.isArray(t)){for(var n=0,o=0;o<t.length;o++)n=Math.max(n,e(t[o]));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=o,e.coerceData=i,e.serializeDynamicData=function(e){if(null!=e&&void 0!==e.rows){var t={};t[r.TableDataProperties.TableRows]=e.rows,t[r.TableDataProperties.TableHeaders]=e.headers,e=t}var n;if(r._OfficeAppFactory.getHostInfo().hostPlatform==r.HostInfoPlatform.web)return"string"!=typeof e&&void 0!==e[r.TableDataProperties.TableRows]?((n={}).Rows=e[r.TableDataProperties.TableRows],n.Headers=e[r.TableDataProperties.TableHeaders],e=n):r.DataCoercion.determineCoercionType(e)==Office.CoercionType.Text&&(e=[[e]]),e;if(r.TableDataProperties&&"string"!=typeof e&&void 0!==e[r.TableDataProperties.TableRows]){(n=[])[0]=e[r.TableDataProperties.TableRows],n[1]=e[r.TableDataProperties.TableHeaders],e=n}return e},e.deserializeDynamicData=function(e,t){var n=null;if(r._OfficeAppFactory.getHostInfo().hostPlatform==r.HostInfoPlatform.web)null!=e.Rows?((n={})[r.TableDataProperties.TableRows]=e.Rows,n[r.TableDataProperties.TableHeaders]=e.Headers):n=e,!n||null==n[r.TableDataProperties.TableRows]&&null==n[r.TableDataProperties.TableHeaders]||(n=Office.manufactureTableData(n)),n=i(n,t);else{if(2===e.length){(n={})[r.TableDataProperties.TableRows]=e[0],n[r.TableDataProperties.TableHeaders]=e[1],n=Office.manufactureTableData(n)}else n=e;n=i(n,t)}return n}}(OSF=OSF||{}),function(e){var t,n,o;((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",(o=t.CoercionTypeKeys||(t.CoercionTypeKeys={})).Html="html",o.Ooxml="ooxml",o.SlideRange="slideRange",o.Text="text",o.Table="table",o.Matrix="matrix",o.Image="image",o.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,o,r,i;t=e.Marshaling||(e.Marshaling={}),(n=t.DialogMessageReceivedEventKeys||(t.DialogMessageReceivedEventKeys={})).MessageType="messageType",n.MessageContent="messageContent",n.MessageOrigin="messageOrigin",(o=t.DialogParentMessageReceivedEventKeys||(t.DialogParentMessageReceivedEventKeys={})).MessageType="messageType",o.MessageContent="messageContent",o.MessageOrigin="messageOrigin",(r=t.MessageParentKeys||(t.MessageParentKeys={})).MessageToParent="messageToParent",r.TargetOrigin="targetOrigin",(t.DialogNotificationShownEventType||(t.DialogNotificationShownEventType={})).DialogNotificationShown="dialogNotificationShown",(i=t.SendMessageKeys||(t.SendMessageKeys={})).MessageContent="messageContent",i.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 o=e[u.ParameterNames.Id],r=e[u.ParameterNames.Data],i={},a=u.AsyncMethods.CloseAsync;u.OUtil.defineEnumerableProperty(i,a,{value:function(){(0,u.DispIdHost.CloseDialog)(arguments,o,r,i)}});var s=u.SyncMethods.AddMessageHandler;if(u.OUtil.defineEnumerableProperty(i,s,{value:function(){var e=u.SyncMethodCalls.get(u.SyncMethods.AddMessageHandler).verifyAndExtractCall(arguments,i,r),t=e[u.ParameterNames.EventType],n=e[u.ParameterNames.Handler];return r.addEventHandlerAndFireQueuedEvent(t,n)}}),!0===u.EnableSendMessageDialogAPI){var c=u.SyncMethods.SendMessage;u.OUtil.defineEnumerableProperty(i,c,{value:function(){return(0,u.DispIdHost.SendMessage)(arguments,r,i)}})}if(!0===u.EnableMessageChildDialogAPI){var l=u.SyncMethods.MessageChild;u.OUtil.defineEnumerableProperty(i,l,{value:function(){return(0,u.DispIdHost.SendMessage)(arguments,r,i)}})}return i},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 o=u.SyncMethods.AddMessageHandler;t[o]||void 0===u.DialogParentMessageEventDispatch||u.DispIdHost.addEventSupport(t,u.DialogParentMessageEventDispatch,e),e&&u.WacDialogAction.registerMessageReceivedEvent()}else{var r;r=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 i=u.AsyncMethods.DisplayDialogAsync;t[i]||u.OUtil.defineEnumerableProperty(t,i,{value:function(){(0,u.DispIdHost.OpenDialog)(arguments,r,t)}})}u.OUtil.finalizeProperties(t)}})}(OSF=OSF||{});var OfficeExt,Office,OSF,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,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};!function(b){var e,t,f,p,m,g,s,h,y,v,r,n,i,a,o,C,c,l,O,_;function u(e,t){var n=t.message,o=t.targetOrigin;if(o)e.postMessage(n,o);else{var r=b._OfficeAppFactory.getOfficeAppContext().get_appDomains(),i=window.location.origin;if(i=i||window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""),r)for(var a=0;a<r.length&&-1!==r[a].indexOf("://");a++)e.postMessage(n,r[a]);b.XdmCommunicationManager.checkUrlWithAppDomains(r,i)||e.postMessage(n,i)}}function d(){try{g&&g.id==C&&h&&h(12009)}catch(e){b.AppTelemetry&&b.AppTelemetry.logAppException("Error happened during executing displayDialogAsync callback."+e)}I()}function A(e,t){var n=!1,o=b.WacCommonUICssManager.getDialogCssManager(t);m=F(o),document.body.insertBefore(m,document.body.firstChild),(g=function(e,t){var n=document.createElement("div");n.style.cssText=e.getDialogNotificationPanelCSS(),M(n);var o=document.createElement("div");o.style.cssText=e.getCrossZoneNotificationTextPanelCSS(),o.id=O;var r=document.createElement("a");r.id=l,r.href="#",r.innerText=Strings.OfficeOM.L_NewWindowCrossZoneConfigureBrowserLink,r.setAttribute("onclick","window.open('https://support.microsoft.com/en-us/help/17479/windows-internet-explorer-11-change-security-privacy-settings', '_blank', 'fullscreen=1')");var i=document.createElement("span");if(Strings.OfficeOM.L_NewWindowCrossZone){var a=Strings.OfficeOM.L_NewWindowCrossZone.replace(/{1+}/gm,b.OUtil.getDomainForUrl(t)).split("{0}");i.appendChild(document.createTextNode(a[0])),i.appendChild(r),i.appendChild(document.createTextNode(a[1]))}return o.appendChild(i),n.appendChild(o),n}(o,e)).id=c;var r=R(o),i=T(o,Strings.OfficeOM.L_DialogOK?Strings.OfficeOM.L_DialogOK:"OK");r.appendChild(i),g.appendChild(r),document.body.insertBefore(g,document.body.firstChild),y=!0,i.onclick=function(){I()},i.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),i.addEventListener("keyup",function(e){13==e.keyCode&&n&&(n=!1,I(),e.preventDefault(),e.stopPropagation())},!1),document.getElementById(l).addEventListener("keydown",function(e){9==e.keyCode&&(i.focus(),e.preventDefault(),e.stopPropagation())},!1),window.focus(),i.focus()}function S(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 o=b.OUtil.parseUrl(e),r=b.OUtil.parseUrl(t),i=b._OfficeAppFactory.getOfficeAppContext().get_appDomains();if(!("https:"===o.protocol))return!1;var a=o.protocol===r.protocol&&o.hostname===r.hostname&&o.port===r.port,s=b.XdmCommunicationManager.checkUrlWithAppDomains(i,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,p(n)}catch(e){b.AppTelemetry&&b.AppTelemetry.logAppException("Error happened during receive message handler."+e)}}function P(e){var t=b._OfficeAppFactory.getId()+r;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,p(n)}catch(e){b.AppTelemetry&&b.AppTelemetry.logAppException("Error happened during storage changed handler."+e)}}function w(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("$"),o=b._OfficeAppFactory.getOfficeAppContext();o.set_taskpaneUrl(window.location.origin),o.get_taskpaneUrl()||o.set_taskpaneUrl(window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""));var r=e.url;e[b.ShowWindowDialogParameterKeys.UrlNoHostInfo]||(r=b.OUtil.addHostInfoAsQueryParam(r,n));var i=JSON.parse(window.name);i.hostInfo=n;var a=__assign({},o);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]]})}i.appContext=a}else i.appContext=o;var l=e[b.ShowWindowDialogParameterKeys.Width]*screen.width/100,u=e[b.ShowWindowDialogParameterKeys.Height]*screen.height/100,d="width="+l+", height="+u+", left="+(o.get_clientWindowWidth()/2-l/2)+", top="+(o.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(r,b.OUtil.serializeObjectToString(i),d)))return b.AppTelemetry.logAppCommonMessage("Encountered cross zone issue in displayDialogAsync api."),x(),A(r,t.hostType),void h(12011);b.OUtil.shouldUseLocalStorageToPassMessage()?window.addEventListener("storage",P):window.addEventListener("message",S),v=window.setInterval(function(){try{if(null==f||f.closed){window.clearInterval(v),b.OUtil.shouldUseLocalStorageToPassMessage()?window.removeEventListener("storage",P):window.removeEventListener("message",S);var e={};e[b.Marshaling.DialogMessageReceivedEventKeys.MessageType]=12006,p(e)}}catch(e){b.AppTelemetry&&b.AppTelemetry.logAppException("Error happened during check or handle window close."+e)}},1e3),null!=h?h(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=i,n.style.backgroundColor=a,n.setAttribute("value",t);function o(){E(n)}function r(){D(n)}return n.addEventListener("mouseover",o),n.addEventListener("focus",o),n.addEventListener("mouseout",r),n.addEventListener("focusout",r),n}function E(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=o}function D(e){e.style.borderColor=i,e.style.backgroundColor=a}function I(){_.onCalling=function(e){x(),N(e)},b.WACDelegate.unregisterEventAsync(_)}function x(){null!=g&&(document.body.removeChild(g),g=null),null!=m&&(document.body.removeChild(m),m=null)}function F(e){var t=document.createElement("div");return t.style.cssText=e.getOverlayElementCSS(),t}function R(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 N(e){if(0!=e){var t=document.querySelectorAll(b._OfficeAppFactory.getInitializationHelper().getTabbableElements());b.OUtil.focusToFirstTabbable(t,!1)}}function M(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",o="powerpoint",r="outlook",i="visio";e.getDialogCssManager=function(e){switch(e){case t:case n:case o:case r:case i: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={}),y=!(s="osfDialogInternal:action=closeDialog"),v=-1,r="messageParentKey",n=h=g=m=p=f=null,i="#ababab",a="#ffffff",o="#ccc",C="newWindowNotificaiton",c="crossZoneNotification",l="configureBrowserLink",O="dialogNotificationTextPanel",_={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,[i._webAppState.id,b.AgaveHostAction.Select])}function n(){b&&(b._OfficeAppFactory.getWebAppState().focused&&(b._OfficeAppFactory.getWebAppState().focused=!1),b.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[i._webAppState.id,b.AgaveHostAction.UnSelect]))}function o(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,[i._webAppState.id,t])}else if(9==e.keyCode){e.preventDefault();var n=document.querySelectorAll(i._tabbableElements);b.OUtil.focusToNextTabbable(n,e.target||e.srcElement,e.shiftKey)||(i._hostInfo.isDialog?b.OUtil.focusToFirstTabbable(n,e.shiftKey):e.shiftKey?b.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[i._webAppState.id,b.AgaveHostAction.TabExitShift]):b.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[i._webAppState.id,b.AgaveHostAction.TabExit]))}else if(27==e.keyCode)e.preventDefault(),d(),b.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[i._webAppState.id,b.AgaveHostAction.EscExit]);else if(113==e.keyCode)e.preventDefault(),b.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[i._webAppState.id,b.AgaveHostAction.F2Exit]);else if((e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)&&1<=e.keyCode&&e.keyCode<=255){var o={keyCode:e.keyCode,shiftKey:e.shiftKey,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey};b.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[i._webAppState.id,b.AgaveHostAction.KeyboardShortcuts,o])}}function r(e){117==e.keyCode&&e.ctrlKey&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}var i=this;e?(b.OUtil.addEventListener(window,"focus",t),b.OUtil.addEventListener(window,"blur",n),b.OUtil.addEventListener(window,"keydown",o),b.OUtil.addEventListener(window,"keypress",r)):(b.OUtil.removeEventListener(window,"focus",t),b.OUtil.removeEventListener(window,"blur",n),b.OUtil.removeEventListener(window,"keydown",o),b.OUtil.removeEventListener(window,"keypress",r))}(!1),e.completed()},t.handleNewWindowDialog=function(t){try{if(l=t,u=b._OfficeAppFactory.getOfficeAppContext().get_appDomains(),d=l.url,!(b.XdmCommunicationManager.checkUrlWithAppDomains(u,d)||b._OfficeAppFactory.getOfficeAppContext().get_docUrl()&&b.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(b._OfficeAppFactory.getOfficeAppContext().get_docUrl(),d)))return void h(12004);if(!t[b.ShowWindowDialogParameterKeys.PromptBeforeOpen])return void w(t);var n=y=!1,e=b._OfficeAppFactory.getHostInfo(),o=b.WacCommonUICssManager.getDialogCssManager(e.hostType),r=b.OUtil.formatString(Strings.OfficeOM.L_ShowWindowDialogNotification,b._OfficeAppFactory.getOfficeAppContext().get_addinName());m=F(o),document.body.insertBefore(m,document.body.firstChild),(g=function(e,t){var n=document.createElement("div");n.style.cssText=e.getDialogNotificationPanelCSS(),M(n);var o=document.createElement("div");o.style.cssText=e.getNewWindowNotificationTextPanelCSS(),o.id=O,"rtl"==document.documentElement.getAttribute("dir")?o.style.paddingRight="30px":o.style.paddingLeft="30px";var r=document.createElement("span");return r.style.cssText=e.getNewWindowNotificationTextSpanCSS(),r.innerText=t,o.appendChild(r),n.appendChild(o),n}(o,r)).id=C;var i=R(o),a=T(o,Strings.OfficeOM.L_ShowWindowDialogNotificationAllow),s=T(o,Strings.OfficeOM.L_ShowWindowDialogNotificationIgnore);function c(e){_.onCalling=function(e){x(),N(e),h(12009)},b.WACDelegate.unregisterEventAsync(_),e.preventDefault(),e.stopPropagation()}i.appendChild(a),i.appendChild(s),g.appendChild(i),document.body.insertBefore(g,document.body.firstChild),a.onclick=function(e){w(t),y||I(),e.preventDefault(),e.stopPropagation()},s.onclick=c,a.addEventListener("keydown",function(e){e.shiftKey&&9==e.keyCode&&(D(a),E(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()):(D(s),E(a),a.focus(),e.preventDefault(),e.stopPropagation())},!1),s.addEventListener("keyup",function(e){13==e.keyCode&&n&&(n=!1,c(e))},!1),window.focus(),_.onCalling=function(e){a.focus()},b.WACDelegate.registerEventAsync(_)}catch(e){b.AppTelemetry&&b.AppTelemetry.logAppException("Exception happens at new window dialog."+e),h(5001)}var l,u,d},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",P):window.removeEventListener("message",S),window.clearInterval(v),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 o=b._OfficeAppFactory.getId()+r;window.localStorage.setItem(o,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,o=typeof n;if(n&&("object"==o||"string"==o)){var r="string"==o?JSON.parse(n):n,i={};i[b.Marshaling.DialogMessageReceivedEventKeys.MessageContent]=r.messageContent,i[b.Marshaling.DialogMessageReceivedEventKeys.MessageOrigin]=e.origin;var a=b.manufactureEventArgs(b.EventType.DialogParentMessageReceived,null,i);b.DialogParentMessageEventDispatch.fireEvent(a)}}})},t.setHandlerAndShowDialogCallback=function(e,t){p=e,h=t},t.escDismissDialogNotification=d,t.showCrossZoneNotification=A,t.getWithExpiry=function(e,t){var n=e.getItem(t);if(!n)return"undefined";var o=JSON.parse(n);return o.expiry&&o.value?(new Date).getTime()>o.expiry?(e.removeItem(t),"undefined"):o.value:"undefined"},t.setWithExpiry=function(e,t,n){var o={value:n,expiry:(new Date).getTime()+864e5};e.setItem(t,JSON.stringify(o))},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 o=b.OUtil.parseUrl(n,!0),r=b.OUtil.parseUrl(e,!0);if(!(o.protocol&&o.hostname&&r.protocol&&r.hostname&&void 0!==r.port))return!1;var i=(h=r,(g=o).hostname==h.hostname&&g.protocol==h.protocol&&(v=h,(y=g).port==v.port||""==y.port&&"http:"==y.protocol&&"80"==v.port||""==y.port&&"https:"==y.protocol&&"443"==v.port||""==v.port&&"http:"==v.protocol&&"80"==y.port||""==v.port&&"https:"==v.protocol&&"443"==y.port)),a=!1;if(t&&(a=b.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(e,n)),i||a)return!0;var s=this.getLocalStorage(),c=this.getSessionStorage(),l="_trusts_"+(r.protocol+"//"+r.hostname+(r.port?":"+r.port:"")),u=this.getWithExpiry(s,l),d=this.getWithExpiry(c,l);if("true"===u)return!0;if("false"===d)return!1;var f=this.getUrlProtocolHostnamePort(r),p=this.getUrlProtocolHostnamePort(o),m='You are about to send and receive potentially sensitive information from "'+p+'". Only click OK if you trust the following website recieving the sensitive information: "'+f+'".';return Strings.OfficeOM.L_ConfirmDialogApiTrustsParent&&(m=Strings.OfficeOM.L_ConfirmDialogApiTrustsParent.replace("{0}",p).replace("{1}",f)),window.confirm(m)?(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,h,y,v}}(OSF=OSF||{}),function(o){var e;(e=o.SafeArrayDelegate||(o.SafeArrayDelegate={})).openDialog=function(n){try{n.onCalling&&n.onCalling();var e=o.SafeArrayDelegate.getOnAfterRegisterEvent(!0,n);o._OfficeAppFactory.getClientHostController().openDialog(n.dispId,void 0,n.targetId,function(e,t){n.onEvent&&n.onEvent(t),o.AppTelemetry&&o.AppTelemetry.onEventDone(n.dispId)},e)}catch(e){o.SafeArrayDelegate.onException(e,n)}},e.closeDialog=function(t){t.onCalling&&t.onCalling();var e=o.SafeArrayDelegate.getOnAfterRegisterEvent(!1,t);try{o._OfficeAppFactory.getClientHostController().closeDialog(t.dispId,void 0,t.targetId,e)}catch(e){o.SafeArrayDelegate.onException(e,t)}},e.messageParent=function(e){try{e.onCalling&&e.onCalling();var t=(new Date).getTime(),n=o._OfficeAppFactory.getClientHostController().messageParent(e.hostCallArgs);return e.onReceiving&&e.onReceiving(),o.AppTelemetry&&o.AppTelemetry.onMethodDone(e.dispId,e.hostCallArgs,Math.abs((new Date).getTime()-t),n),n}catch(e){return o.SafeArrayDelegate.onExceptionSyncMethod(e)}},e.sendMessage=function(e){try{e.onCalling&&e.onCalling();(new Date).getTime();var t=o._OfficeAppFactory.getClientHostController().sendMessage(e.hostCallArgs);return e.onReceiving&&e.onReceiving(),t}catch(e){return o.SafeArrayDelegate.onExceptionSyncMethod(e)}}}(OSF=OSF||{}),function(h){var y;(y=h.WACDelegate||(h.WACDelegate={})).openDialog=function(t){var e=JSON.parse(t.targetId),n=y.getOnAfterRegisterEvent(!0,t);function o(e){var t={Error:e};try{n(0,t)}catch(e){h.AppTelemetry&&h.AppTelemetry.logAppException("Exception happens at showDialogCallback."+e)}}if(h.DialogShownStatus.hasDialogShown)o(12007);else{var r=e[h.ShowWindowDialogParameterKeys.Url].toLowerCase(),i=window.location.href.toLowerCase();if(h.AppTelemetry){var a=!1,s=!1,c=!1,l=!1,u="",d="";if(h.OUtil){var f=h.OUtil.parseUrl(r),p=h.OUtil.parseUrl(i);a=f.protocol===p.protocol&&f.hostname===p.hostname&&f.port===p.port,u=h.OUtil.getHostnamePortionForLogging(f.hostname),a?d=u:(d=h.OUtil.getHostnamePortionForLogging(p.hostname),s=h.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(r,i),c=h.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(i,r));var m=h._OfficeAppFactory.getOfficeAppContext().get_appDomains();l=h.XdmCommunicationManager.checkUrlWithAppDomains(m,r)}var g="openDialog isInline: "+e[h.ShowWindowDialogParameterKeys.DisplayInIframe].toString()+", taskpaneHostname: "+d+", dialogHostName: "+u+", isSameDomain: "+a.toString()+", parentIsSubdomain: "+s.toString()+", childIsSubdomain: "+c.toString()+", isAppDomain: "+l.toString();h.AppTelemetry.logAppCommonMessage(g)}null!=r&&"https://"===r.substr(0,"https://".length)?e[h.ShowWindowDialogParameterKeys.DisplayInIframe]?(h.DialogShownStatus.isWindowDialog=!1,h.WACDelegate.registerEventAsync(t)):(h.DialogShownStatus.isWindowDialog=!0,h.WacDialogAction.setHandlerAndShowDialogCallback(function(e){t.onEvent&&t.onEvent(e),h.AppTelemetry&&h.AppTelemetry.onEventDone(t.dispId)},o),h.WacDialogAction.handleNewWindowDialog(e)):"http://"===r.substr(0,"http://".length)?o(12005):o(12003)}},y.validateTaskpaneDomain=function(e,t){return h.WacDialogAction.validateTaskpaneDomain(e,t)},y.messageParent=function(e){var t=e.hostCallArgs.targetOrigin,n=!!t;if(n&&"*"!=t){var o=h.WacDialogAction.getLocalStorage(),r=h.WacDialogAction.getSessionStorage(),i="_trusts_",a=h.OUtil.parseUrl(t,!0);i+=a.protocol+"//"+a.hostname+(a.port?":"+a.port:""),h.WacDialogAction.setWithExpiry(o,i,"true"),h.WacDialogAction.setWithExpiry(r,i,"true")}if(null!=window.opener){if(!n){var s=h._OfficeAppFactory.getOfficeAppContext().get_taskpaneUrl();if(s){if(!h.WacDialogAction.validateTaskpaneDomain(s,!0)){var c="messageParent called but the taskpane domain is untrusted: "+s;throw h.AppTelemetry&&h.AppTelemetry.logAppException(c),new Error(c)}}else s=window.location.origin;e.hostCallArgs.targetOrigin=s}h.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),h.WACDelegate.executeAsync(e)}},y.sendMessage=function(e){h.DialogShownStatus.hasDialogShown&&(h.DialogShownStatus.isWindowDialog?h.WacDialogAction.sendMessage(e):h.WACDelegate.executeAsync(e))},y.closeDialog=function(e){var n=y.getOnAfterRegisterEvent(!1,e);function t(e){var t={Error:e};try{n(0,t)}catch(e){h.AppTelemetry&&h.AppTelemetry.logAppException("Exception happens at closeDialogCallback."+e)}}h.DialogShownStatus.hasDialogShown?h.DialogShownStatus.isWindowDialog?(e.onCalling&&e.onCalling(),h.WacDialogAction.closeDialog(t)):h.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,o,r){var i=OSF.OUtil.Guid.generateNewGuid();null==r&&(r={OptionalProperties:{},DevProperties:{}}),r.OptionalProperties.InstanceToken=i;var a={ExtId:e,ComponentType:t,ComponentId:n,HostProps:o,OptionalProps:r};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:i,LaunchProperties:r}},(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(o){var e;((e=o.context||(o.context={})).document||(e.document={})).getFileAsync=function(e,t,n){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.GetDocumentCopyAsync,arguments,o.context.document,void 0)}}(Office=Office||{}),function(r){var e,t,n,o,i,a,s,c;(e=r.PropertyDescriptors||(r.PropertyDescriptors={})).FileProperties="FileProperties",e.FileSliceProperties="FileSliceProperties",(t=r.FileProperties||(r.FileProperties={})).Handle="FileHandle",t.FileSize="FileSize",t.SliceSize="sliceSize",(r.additionalParameter||(r.additionalParameter={})).FileSliceOffset="fileSliceoffset",n=r.Marshaling||(r.Marshaling={}),o=n.File||(n.File={}),(i=o.FilePropertiesKeys||(o.FilePropertiesKeys={}))[i.Handle=0]="Handle",i[i.FileSize=1]="FileSize",(a=o.SlicePropertiesKeys||(o.SlicePropertiesKeys={}))[a.Data=0]="Data",a[a.SliceSize=1]="SliceSize",(s=o.FileType||(o.FileType={}))[s.Text=0]="Text",s[s.Compressed=1]="Compressed",s[s.Pdf=2]="Pdf",(c=o.ParameterKeys||(o.ParameterKeys={}))[c.FileType=0]="FileType",c[c.SliceSize=1]="SliceSize",c[c.Handle=2]="Handle",c[c.SliceIndex=3]="SliceIndex",r.File||(r.File={}),r.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){r.AsyncMethodCalls.define({method:r.AsyncMethods.GetDocumentCopyAsync,requiredArguments:[{name:r.ParameterNames.FileType,enum:Office.FileType}],supportedOptions:[{name:r.ParameterNames.SliceSize,value:{types:["number"],defaultValue:r.OUtil.getHostPlatform()==r.HostInfoPlatform.ios?65536:4194304}}],checkCallArgs:function(e,t,n){var o=e[r.ParameterNames.SliceSize];if(o<=0||4194304<o)throw 11002;return e},onSucceeded:function(e,t,n){return new Office.File(e[r.FileProperties.Handle],e[r.FileProperties.FileSize],n[r.ParameterNames.SliceSize])}}),r.AsyncMethodCalls.define({method:r.AsyncMethods.GetDocumentCopyChunkAsync,requiredArguments:[{name:r.ParameterNames.SliceIndex,types:["number"]}],privateStateCallbacks:[{name:r.FileProperties.Handle,value:function(e,t){return t[r.FileProperties.Handle]}},{name:r.FileProperties.SliceSize,value:function(e,t){return t[r.FileProperties.SliceSize]}}],checkCallArgs:function(e,t,n){var o=e[r.ParameterNames.SliceIndex];if(o<0||o>=t.sliceCount)throw 5008;return e[r.additionalParameter.FileSliceOffset]=parseInt((o*n[r.FileProperties.SliceSize]).toString()),e},onSucceeded:function(e,t,n){var o={};return r.OUtil.defineEnumerableProperties(o,{data:{value:r.OUtil.getHostPlatform()==r.HostInfoPlatform.mac?r.OUtil.shallowCopy(e[r.ParameterNames.Data]):e[r.ParameterNames.Data]},index:{value:n[r.ParameterNames.SliceIndex]},size:{value:e[r.FileProperties.SliceSize]}}),o}}),r.AsyncMethodCalls.define({method:r.AsyncMethods.ReleaseDocumentCopyAsync,privateStateCallbacks:[{name:r.FileProperties.Handle,value:function(e,t){return t[r.FileProperties.Handle]}}]})},defineSafeArrayParameterMapFunc:function(){r.HostParameterMap.define({type:r.PropertyDescriptors.FileProperties,fromHost:[{name:r.FileProperties.Handle,value:0},{name:r.FileProperties.FileSize,value:1}],isComplexType:!0}),r.HostParameterMap.define({type:r.PropertyDescriptors.FileSliceProperties,fromHost:[{name:r.ParameterNames.Data,value:0},{name:r.FileProperties.SliceSize,value:1}],isComplexType:!0}),r.HostParameterMap.define({type:r.ParameterNames.FileType,toHost:[{name:Office.FileType.Text,value:0},{name:Office.FileType.Compressed,value:5},{name:Office.FileType.Pdf,value:6}]}),r.HostParameterMap.define({type:77,toHost:[{name:r.ParameterNames.FileType,value:0}],fromHost:[{name:r.PropertyDescriptors.FileProperties,value:r.HostParameterMap.self}]}),r.HostParameterMap.define({type:80,toHost:[{name:r.FileProperties.Handle,value:0},{name:r.additionalParameter.FileSliceOffset,value:1},{name:r.FileProperties.SliceSize,value:2}],fromHost:[{name:r.PropertyDescriptors.FileSliceProperties,value:r.HostParameterMap.self}]}),r.HostParameterMap.define({type:81,toHost:[{name:r.FileProperties.Handle,value:0}]})},defineWebParameterMapFunc:function(){r.HostParameterMap.addComplexType(r.PropertyDescriptors.FileProperties),r.HostParameterMap.addComplexType(r.PropertyDescriptors.FileSliceProperties),r.HostParameterMap.define({type:r.PropertyDescriptors.FileProperties,fromHost:[{name:r.FileProperties.Handle,value:r.Marshaling.File.FilePropertiesKeys.Handle},{name:r.FileProperties.FileSize,value:r.Marshaling.File.FilePropertiesKeys.FileSize}]}),r.HostParameterMap.define({type:r.PropertyDescriptors.FileSliceProperties,fromHost:[{name:r.ParameterNames.Data,value:r.Marshaling.File.SlicePropertiesKeys.Data},{name:r.FileProperties.SliceSize,value:r.Marshaling.File.SlicePropertiesKeys.SliceSize}]}),r.HostParameterMap.define({type:r.ParameterNames.FileType,toHost:[{name:Office.FileType.Text,value:r.Marshaling.File.FileType.Text},{name:Office.FileType.Compressed,value:r.Marshaling.File.FileType.Compressed},{name:Office.FileType.Pdf,value:r.Marshaling.File.FileType.Pdf}]}),r.HostParameterMap.define({type:77,toHost:[{name:r.ParameterNames.FileType,value:r.Marshaling.File.ParameterKeys.FileType},{name:r.ParameterNames.SliceSize,value:r.Marshaling.File.ParameterKeys.SliceSize}],fromHost:[{name:r.PropertyDescriptors.FileProperties,value:r.HostParameterMap.self}]}),r.HostParameterMap.define({type:80,toHost:[{name:r.FileProperties.Handle,value:r.Marshaling.File.ParameterKeys.Handle},{name:r.ParameterNames.SliceIndex,value:r.Marshaling.File.ParameterKeys.SliceIndex}],fromHost:[{name:r.PropertyDescriptors.FileSliceProperties,value:r.HostParameterMap.self}]}),r.HostParameterMap.define({type:81,toHost:[{name:r.FileProperties.Handle,value:r.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||{}),(Office||(Office={})).select=function(e,t){var n;if(e&&"string"==typeof e){var o=e.indexOf("#");if(-1!=o){var r=e.substring(0,o),i=e.substring(o+1);switch(r){case"binding":case"bindings":i&&(n=new OSF.BindingPromise(i))}}}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 o=null==n.coercionType?OSF.DataCoercion.determineCoercionType(t):n.coercionType;"function"==typeof n&&(e=n);var r={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"==o||"xmlSvg"==o?[c(o),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(o),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(o),OSF.DataCoercion.serializeDynamicData(t),null==n.cellFormat?[]:n.cellFormat,null==n.tableOptions?[]:n.tableOptions]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{DdaSetBindingData:{CoerceType:o,Data:OSF.DataCoercion.serializeDynamicData(t),CellFormat:[],TableOptions:[]}}},fromWebHost:function(e){return e}};OSF._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(65,r,e,null)},t.getSelectedDataAsync=function(t,e,n){var o,r=s.ValueFormat.Unformatted,i=s.FilterType.All;"function"==typeof e?n=e:void 0!==e&&(void 0!==e.valueFormat&&(r=e.valueFormat),void 0!==e.filterType&&(i=e.filterType),void 0!==e.asyncContext&&(o=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}(r),function(e){var t=0;switch(e){case s.FilterType.All:t=0;break;case s.FilterType.OnlyVisible:t=1}return t}(i)]},fromSafeArrayHost:function(e){return OSF.DataCoercion.deserializeDynamicData(e,t)},toWebHost:function(){return{DdaGetBindingData:{CoerceType:t,ValueFormat:r,FilterType:i}}},fromWebHost:function(e){return OSF.DataCoercion.deserializeDynamicData(e.Data,t)}};OSF._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(64,a,n,o)}}(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(o){var e;(e=o.EventDescriptors||(o.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=o.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=o.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 o=e.cssRules?e.cssRules.length:e.rules.length,r=0;r<o;r++){var i=(e.cssRules?e.cssRules[r]:e.rules[r]).selectorText;i&&i.toLowerCase()==t.toLowerCase()&&(e.cssRules?(e.deleteRule(r),e.insertRule(i+n,r)):(e.removeRule(r),e.addRule(i,n,r)))}},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,o=0;o<t.length;o++)if(null===this._previousDocumentThemeData||this._previousDocumentThemeData[t[o].name]!=n[t[o].name])if(null!=n[t[o].name]&&""!=n[t[o].name]){var r=n[t[o].name];"font-family"===t[o].cssProperty&&(r='"'+r.replace(new RegExp('"',"g"),'\\"')+'"'),this._changeCss(this._officeCss,t[o].cssSelector,"{"+t[o].cssProperty+":"+r+";}")}else this._changeCss(this._officeCss,t[o].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,o=0;o<t.length;o++)null!==this._previousOfficeThemeData&&this._previousOfficeThemeData[t[o].name]==n[t[o].name]||void 0!==n[t[o].name]&&this._changeCss(this._officeCss,t[o].cssSelector,"{"+t[o].cssProperty+":"+n[t[o].name]+";}");this._previousOfficeThemeData=n},n.prototype._getAndProcessThemeData=function(e,n,o){var r=this,t=a._OfficeAppFactory.getHostInfo();if(t&&t.hostPlatform==a.HostInfoPlatform.web){if(o==a.AsyncMethods.GetOfficeThemeAsync&&Office.context.officeTheme){var i={};i[a.DDA.Theming.OfficeThemeEnum.BodyBackgroundColor]=Office.context.officeTheme.bodyBackgroundColor,i[a.DDA.Theming.OfficeThemeEnum.BodyForegroundColor]=Office.context.officeTheme.bodyForegroundColor,i[a.DDA.Theming.OfficeThemeEnum.ControlBackgroundColor]=Office.context.officeTheme.controlBackgroundColor,i[a.DDA.Theming.OfficeThemeEnum.ControlForegroundColor]=Office.context.officeTheme.controlForegroundColor,i[a.DDA.Theming.OfficeThemeEnum.IsDarkTheme]=Office.context.officeTheme.isDarkTheme,i[a.DDA.Theming.OfficeThemeEnum.ThemeId]=Office.context.officeTheme.isDarkTheme?a.DDA.Theming.ThemeId.Black:a.DDA.Theming.ThemeId.White,i[a.DDA.Theming.OfficeThemeEnum.FluentThemeData]=Office.context.officeTheme.fluentThemeData,n(i)}}else e(function(e){if("succeeded"==e.status){var t=e.value;n(t)}r._areAllCallsCompleted(o)&&r._onAsyncCallsCompleted&&(r._onAsyncCallsCompleted(),r._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}o.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();
//NULL-TERMINATED�R0�R�	*�H��
��R�0�R�10
	`�He0\
+�7�N0L0
+�70	���010
	`�He �V~)�W	�6��0�	�*7z�����d3��
�0��0���3H��ߡ��w0
	*�H��
0��10	UUS10U
Washington10URedmond10U
Microsoft Corporation1200U)Microsoft Root Certificate Authority 20100
240808213623Z
350623220401Z0_10	UUS10U
Microsoft Corporation100.U'Microsoft Windows Code Signing PCA 20240�"0
	*�H��
�0�
��}k}'�v*.���4��+m�T� ���d��h(e;9_R]F?\���z�����^z]i��_0Oio=NA���W}���`H�?u�I��G�W����,֕oQ���Fl`v�mNdBP
{���9� tP�܍�b��_k��;�3�
�9b��7�7�L��A��S�5�3���=�4�"�]�����\�zc��م����ayL�]5�:��{zc0�AZo�sXP�D��K�'9�nn���8Q�8�e���ju��NRx�F��nh�ϴ��ٲV���Pl��:9���L%�,�3����UN�`�?;}��O�J�OF
�v���aB��� �%fN�g+��^$N��e~�<��u`�����+^�s�G�G��V_�g�q-��%TQ���I���;U�f3�ȧW��&��y ��p�)l:��IS��O��,��1§��
t1�K@���	ι��u+��9(�uժ�_�/x���J u0\5�:���ߤ��	(���F0�B0U��0	+�70U��׌��4�ګ�e����0	+�7
SubCA0U�0�0U#0��Vˏ�\bh�=��[�Κ�0VUO0M0K�I�G�Ehttp://crl.microsoft.com/pki/crl/products/MicRooCerAut_2010-06-23.crl0Z+N0L0J+0�>http://www.microsoft.com/pki/certs/MicRooCerAut_2010-06-23.crt0
	*�H��
�C_��?�锌;\��h���T4�1L������E��pj3!�Θ�A~L�"�0))��?���E)�κE��'�T�X��ٖ���Tx*:Қj�;:�7o�Sn>�Ą�|�$�����.9`�qҬ1��i ��jcG���᨞7_��
��eN�/k�ц���o�Ly�Ni(��e�F5g
��[q��݌�ZI}��!?�2��Ke��MԦGc�:�s��QI!!w��\�yMx�J�*�g4��?#��~�������v̋��Z����9PXGd��M��r�l���q���1��g�B��0�')�‚�*E���]l�ߥ�NtX׏1�A�=|�����
m5�߈��!�9#�0&8��d4;��q�y�!=N�Q��O��QV�~崀�y.�c�~�xD�ɻۣ��
��1~`���m~iˈLH����}�UK��4�.'��5
���rw�>]�T�*���D��d)�Uw0�0��3�3�,�B���0
	*�H��
0_10	UUS10U
Microsoft Corporation100.U'Microsoft Windows Code Signing PCA 20240
250619180326Z
260618180326Z0t10	UUS10U
Washington10URedmond10U
Microsoft Corporation10UMicrosoft Corporation0�"0
	*�H��
�0�
���l��i�'h;]ЙZ\�F,q�3U�]�r&�h�����9'��8�u4�q�Y���Q��N�k����q�搲���
~�+�ԹB��(��g���@+�V��n�v���PV���嗜|Wm
A���I1%����	%�j��g>�u��^J� ��K��>�UԽ��sNu(����Z����^�"�R�,r\�	؆��]���Lŧtl�
a��goc�ˁ�;-�~�"������Ӄ<��
"�c�c;(�5nۜ��ʵ�V��w�l�a��N���HA;!QQDJ�\�f;u�m�Mb��G�()����`��ie�U�e�ǚG���z��>�h#���L��VΎ�����Q����]�����nPr��D�d��
����lŵ�{����{'1����.yN�E��(a,�b��"�,p8σ9TjV���i��<�x���XKZmQ��4T;��3zK�a��I�e�Nƥ�Ǻ�$��q�s����iI��П���0��0U��0,U%%0#+
+�7=+�7L0U�00U�r�zy���U�IlEnH�0EU>0<�:0810UMicrosoft Corporation10U
500814+5055710U#0���׌��4�ګ�e����0jUc0a0_�]�[�Yhttp://www.microsoft.com/pkiops/crl/Microsoft%20Windows%20Code%20Signing%20PCA%202024.crl0w+k0i0g+0�[http://www.microsoft.com/pkiops/certs/Microsoft%20Windows%20Code%20Signing%20PCA%202024.crt0
	*�H��
�r�0�qo�;���˝v4٘9k&���ඦ����vT����i�1|�]V�=?��"ʭj|jQ�œ�p�������&���7�au�<6b�@�'�~��r���gM	��c~�N�����/���p���� ���@*�B�s��t$yGw&[�W$F���`��+/�(2�7��k�F�7|7�_��=�%�_��N����
)9�3Po�c%x/xrgs��F���7w���4g3�^6��H�.���ڰ�Zž�qe�5n�В���b�F[dip��l�ՠ59��F���*�Κ���t��d�{!��雭�T���8�p����7~����U
�K���b��^@(ā"�*c�l䌱�y���G������� 2�Z�gJ��n�O
����T�<9#�n����G���ě�Q/fp��R��Y�^_��Fݑ��ԥ��٪�0<��!����肉:$�5֤<n�w@d��eG'��!����Fc�eW��rK�+\��1�DW0�DS0v0_10	UUS10U
Microsoft Corporation100.U'Microsoft Windows Code Signing PCA 20243�3�,�B���0
	`�He���0	*�H��
	1
+�70/	*�H��
	1" �r�&��L7��7�.�oY����E�u@ۤb0T
+�71F0D�"� Microsoft Office��http://office.microsoft.com 0
	*�H��
�>�}�Xc.eE��)�Ӌ��p����q����Y�t��ƍ��e��kx�;��"��k���13|e��w�<
�x�p��zR�x6ɻf�}��aus�{aV�7��Q|�/��ɢ�|�:�H}6N.m��.�O*NЗ��7�[j�AMj���+5懜nCH�j"�a�{�|�VJ;�`x�:��e�nl�*
�ZQF��q��.6���8ɥ
g⸃����0����S�(��(`ƭ���^
�^Y�!�׿�� ��}��j+_DY�����4z�Z6�)M�#�%�7��{�e�l��%ay�$;�
�2VˇF��s�t��Z�JS��.�S)u�
�j��iR��pk��=�CSX�X�A�L��w���l�ͤ0p�[�#�3��9�nqYY�?G!�fP-Z�ժ��pS�hqy$Cn|<c��5�%�?~�~�.���V!��䧹��D�9gw�|z�S�.��4����1;J��Xlq.�1/��{E�S����?}\e��	�A
0��
+�71��0�|	*�H��
��m0�i10
	`�He0�R*�H��
	��A�=0�9
+�Y
010
	`�He �m�ebʂ r]��dN�H���
�'�B��h[�>{20250806181529.336Z0��Ѥ��0��10	UUS10U
Washington10URedmond10U
Microsoft Corporation1%0#UMicrosoft America Operations1'0%UnShield TSS ESN:9600-05E0-D9471%0#UMicrosoft Time-Stamp Service���0� 0��3���2X�0
	*�H��
0|10	UUS10U
Washington10URedmond10U
Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20100
250130194247Z
260422194247Z0��10	UUS10U
Washington10URedmond10U
Microsoft Corporation1%0#UMicrosoft America Operations1'0%UnShield TSS ESN:9600-05E0-D9471%0#UMicrosoft Time-Stamp Service0�"0
	*�H��
�0�
���&�y���Xd�^ƪ�Nz��yT���J��.Ӹ��E_��F�~��6A]�;�R�b�����[�ȿY@�0�������s��y΍+��r�X��[TvT�=����
G�/�:�r�!<����wL�5q�	�!��� �f����4]��v�c��]6���a��<Ȥ6��Qi�ET$y�(Z�J�Aa�4V�Ι�7��>#�S�! ��Ƭ5�%l�g!�j�m�%���}TbT�-�:�I���~�3wᥫ���MÂZ�>��*��:��bS�ӿC�fq�7�(yYD-vΛ���
q3�2��1i(�������obC(��`-1���Affd,i5g\����}Zt��O?����A�� ?�`%����F.�v�Z
����1�)'�G|d��db�h������O�CL��ǰ)�����T�H��vn��Q/�0��	����#���J
�UFϣ(���p�©e���
k�j��:Ҝ�
ә�8*���I0�E0UuvK@pjV����o���5�_0U#0���]^b]����e�S5�r0_UX0V0T�R�P�Nhttp://www.microsoft.com/pkiops/crl/Microsoft%20Time-Stamp%20PCA%202010(1).crl0l+`0^0\+0�Phttp://www.microsoft.com/pkiops/certs/Microsoft%20Time-Stamp%20PCA%202010(1).crt0U�00U%�0
+0U��0
	*�H��
�^r��G
�L�2P-V$��G���d�IF��x˯B��G���R��ijLj5����rM�#j��b�v�y�+����>�]32�S�:S>�z[rW��;^f��
C��T~|h�t�KNG<Vp@^A�:��E��z�]�^�"t�1�y���f"�t�L�5�T�Q] l��b#���+ ���u��d+�tQ�����O�Y��ޞ[�7����X��RODX��{��9��<����Oq2$[<i���
ث�L;8:�0"�/`��[��`S���1�
�Mq���^��s���D[�	ڮS��Y���g��4���)�_�-��[���´B5�Z�Ѳi�����;�(I&?������0��{F�#Y.�^�hg���E&�2ԱJ�Y��8�a+�z�	������E�p��D�
�,�_ݺ�Tľ!"�W"[>$�*b�o)��ú&gL�o��o(���9�7^�x�O|�y#�²�y@�p�E�ӿԻ�@7P�K�90�q0�Y�3��k��I�0
	*�H��
0��10	UUS10U
Washington10URedmond10U
Microsoft Corporation1200U)Microsoft Root Certificate Authority 20100
210930182225Z
300930183225Z0|10	UUS10U
Washington10URedmond10U
Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20100�"0
	*�H��
�0�
���L�r!y���$y�Ղ��ҩlNu��5W�lJ�⽹>`3�\O�f��SqZ�~JZ��6g�F#���w2��`}jR�D���Fk��v��P�D�q\Q17�
8n����&S|9azĪ�ri����6�5&dژ;�{3��[~��R���b%�j�]�S���VM�ݼ��㑏�9,Q��pi
�6-p�1�5(�㴇$��ɏ~�T��U�mh;�F��z)7���E�Fn�2��0\O,�b�͹⍈䖬J��q�[g`���=� �s}A�Fu��_4���� }~�ٞE߶r/�}_��۪~6�6L�+n�Q���s�M7t�4���G��|?Lۯ^����s=CN�39L��Bh.�QF�ѽjZas�g�^�(v�3rק ��
�co�6d�[���!]_0t���عP��a�65�G������k�\RQ]�%��Pzl�r�Rą��<�7�?x�E���^ڏ�riƮ{��>j�.����0��0	+�70#	+�7*�R�dĚ���<F5)��/�0U��]^b]����e�S5�r0\U U0S0Q+�7L�}0A0?+3http://www.microsoft.com/pkiops/Docs/Repository.htm0U%0
+0	+�7
SubCA0U�0U�0�0U#0��Vˏ�\bh�=��[�Κ�0VUO0M0K�I�G�Ehttp://crl.microsoft.com/pki/crl/products/MicRooCerAut_2010-06-23.crl0Z+N0L0J+0�>http://www.microsoft.com/pki/certs/MicRooCerAut_2010-06-23.crt0
	*�H��
��U}�*��,g1$[�rK��o�\�>NGdx���=13�9��q6?�dl|�u9m�1��lѡ�"��fg:SMݘ��x�6.���V����i�	�{�jo�)�n�?Hu��m��m#T�xSu$W�ݟ�=��h�e��V����(U'�$�@���]='�@�8���)�ü�T�B�������j�BRu�6��as.,k{n?,	x鑲�[�I�t�쑀�=�J>f;O���2ٖ����t��Lro�u0�4�z�P�
X�@<�Tm�ctH,�NG-�q�d�$�smʎ	��WITd�s�[D�Z�k
��(�g($�8K�n�!TkjEG����^O���Lv�WT	�iD~|�als�
��Af=i��AI~~���;����>�1Q������{��p���(��6ںL���
�4�$5g+�
�挙��"��'B=%��tt[jў>�~�13}���{�8pDѐ�ȫ:�:b�pcSM��m��qj�U3X��pf�M0�50����Ѥ��0��10	UUS10U
Washington10URedmond10U
Microsoft Corporation1%0#UMicrosoft America Operations1'0%UnShield TSS ESN:9600-05E0-D9471%0#UMicrosoft Time-Stamp Service�#
0+�=���߽H����5F�Oen���0���~0|10	UUS10U
Washington10URedmond10U
Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20100
	*�H��
�>	�0"20250806170421Z20250807170421Z0t0:
+�Y
1,0*0
�>	�0a0"0
�?[06
+�Y
1(0&0
+�Y
�
0� �
0��0
	*�H��
�f��@�$�	��)�k���s���sنʑֵD@}�DJ��&��%�Q���km�q��	��3}m!w��az�*����������@J˫��޶��7J�?u�-��'T��U�pF�{ܨG^���	'	2���]��mރ|��?�b
��]�/ݴ�}u�/g�ս��g{k*�1F1����~FxnTXCi"��5��L^gH�
=�[|{��>��o��bv:��c#��E�l^e�@
A1�
0�	0��0|10	UUS10U
Washington10URedmond10U
Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20103���2X�0
	`�He��J0	*�H��
	1
*�H��
	0/	*�H��
	1" NUED��������w�'h��o��0��*�H��
	/1��0��0��0�� ��xe�[
�U�L�h��Q�&˻���]K��y��0��0���~0|10	UUS10U
Washington10URedmond10U
Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20103���2X�0" ��y���'A��h�,�7���m �HT�J�0
	*�H��
��2n./#�"��UzQe`#�Q�2i�ܭU�A�t1ѕxMjjotI�wm�i~�3��-�*��B�5���gW��(֭(����p	q�B)�0x�ѭ�;ja���}͝ˊ�,S2+��^2���/�ui��ѩ�;)�Hd�~l�jP2)����QkE�<	Ap�*�	n�G��ֿ:��[�1��<�*:b��~� �s�onbYߴ���@���Vb؞�;��5;�ەߙ��_�\R�2�4�ɀW`[��X���?ϑr�Du�~d����A�Ր�0�9�x���g�[��d�9����
�iv�;u�s,Żz�6�v�TCô�$���~���4�5"Sv��Ξ�D��� <�^]����Hy��Bqcr�&#W�S����C^�%�I�6�St�b��(���mb��T=�Z����+��ֿ���C!Nn�~ˍŊ�	��f�	���ꘟ@n�����(������mQ5�𥶞C�-�9����\AXk0�)u
+�71�)e0�)a	*�H��
��)R0�)N10
	`�He0\
+�7�N0L0
+�70	���010
	`�He �V~)�W	�6��0�	�*7z�����d3��
�0��0���3H��ߡ��w0
	*�H��
0��10	UUS10U
Washington10URedmond10U
Microsoft Corporation1200U)Microsoft Root Certificate Authority 20100
240808213623Z
350623220401Z0_10	UUS10U
Microsoft Corporation100.U'Microsoft Windows Code Signing PCA 20240�"0
	*�H��
�0�
��}k}'�v*.���4��+m�T� ���d��h(e;9_R]F?\���z�����^z]i��_0Oio=NA���W}���`H�?u�I��G�W����,֕oQ���Fl`v�mNdBP
{���9� tP�܍�b��_k��;�3�
�9b��7�7�L��A��S�5�3���=�4�"�]�����\�zc��م����ayL�]5�:��{zc0�AZo�sXP�D��K�'9�nn���8Q�8�e���ju��NRx�F��nh�ϴ��ٲV���Pl��:9���L%�,�3����UN�`�?;}��O�J�OF
�v���aB��� �%fN�g+��^$N��e~�<��u`�����+^�s�G�G��V_�g�q-��%TQ���I���;U�f3�ȧW��&��y ��p�)l:��IS��O��,��1§��
t1�K@���	ι��u+��9(�uժ�_�/x���J u0\5�:���ߤ��	(���F0�B0U��0	+�70U��׌��4�ګ�e����0	+�7
SubCA0U�0�0U#0��Vˏ�\bh�=��[�Κ�0VUO0M0K�I�G�Ehttp://crl.microsoft.com/pki/crl/products/MicRooCerAut_2010-06-23.crl0Z+N0L0J+0�>http://www.microsoft.com/pki/certs/MicRooCerAut_2010-06-23.crt0
	*�H��
�C_��?�锌;\��h���T4�1L������E��pj3!�Θ�A~L�"�0))��?���E)�κE��'�T�X��ٖ���Tx*:Қj�;:�7o�Sn>�Ą�|�$�����.9`�qҬ1��i ��jcG���᨞7_��
��eN�/k�ц���o�Ly�Ni(��e�F5g
��[q��݌�ZI}��!?�2��Ke��MԦGc�:�s��QI!!w��\�yMx�J�*�g4��?#��~�������v̋��Z����9PXGd��M��r�l���q���1��g�B��0�')�‚�*E���]l�ߥ�NtX׏1�A�=|�����
m5�߈��!�9#�0&8��d4;��q�y�!=N�Q��O��QV�~崀�y.�c�~�xD�ɻۣ��
��1~`���m~iˈLH����}�UK��4�.'��5
���rw�>]�T�*���D��d)�Uw0�0��3�\u��*f�5�0
	*�H��
0_10	UUS10U
Microsoft Corporation100.U'Microsoft Windows Code Signing PCA 20240
250619180323Z
260618180323Z0t10	UUS10U
Washington10URedmond10U
Microsoft Corporation10UMicrosoft Corporation0�"0
	*�H��
�0�
��r��0n�,��T�'�u�:���9Zr���D�Y[/��/ɷϳ���DO�3x���I���ǥ��q_���lޱ�ǯ�׭��U�<�S7vLH/�������]=X�-�0i���tl�b��o�#L҆V���dzy{9�K�m:�h�Ii��௾�}^
x� �<@���;�����g�=k�{�J������t��p�L��I�`&{ 5>x�q��=P�>w�ߍ�l�����=:��B�"���A,l��7ج<D�uth'm�����%��>KoPw��aI4�7��P&�Nn]�A ׁ�1���зifL';�沬��W�����-3k��Xq�A�W��d���J��I'2u $��=��F�`V���-�2Ghk���H,�~�9 ,���w=17���}���p�1�F
i�$A���B����b��
���`�_<��9@�!�w�H�	2}����+���@�';�S�z,���:�a;Df����0��0U��0,U%%0#
+�7
++�7L0U�00Uǝ/�e
G�7�aqN�����0EU>0<�:0810UMicrosoft Corporation10U
500816+5055690U#0���׌��4�ګ�e����0jUc0a0_�]�[�Yhttp://www.microsoft.com/pkiops/crl/Microsoft%20Windows%20Code%20Signing%20PCA%202024.crl0w+k0i0g+0�[http://www.microsoft.com/pkiops/certs/Microsoft%20Windows%20Code%20Signing%20PCA%202024.crt0
	*�H��
���oy+��d�LK�Q�r�t�'����7T�Fz�z.��~X�S�u�w��j�R��*�D�a�Ø�<�˄�w
����wvJF�&�C����r	�Cp�[����̠@X|�8mP����)��1%�(�>2)>�x\)K�w��`�g{ �9��G��{�Z՞���4��B�G�����	�z	�I�/]r.��,�i�}���^k�/�,�\�`�g˞�:@�eK�
i<��L��s�Q�{x`�\��M�F�EcK_E1�#��=t�*��b����z��тF��PF��֝~�9����h0zx$Vpk�K�h�َ�Z��$�q@�`uAm��z�(<�����{����&]�����P�ぺ�����4>ԲӨg��Bkv�4-]�g%i$��6x)�,b`
\5��J��{ƒ66�9��짠��㇭;�������\��D2O�	�IK��t���|37X�	 b/�l�-����R��
��&�/n��@O���X�p�]1��0��0v0_10	UUS10U
Microsoft Corporation100.U'Microsoft Windows Code Signing PCA 20243�\u��*f�5�0
	`�He���0
*�H��
	10	*�H��
	1
+�70/	*�H��
	1" �r�&��L7��7�.�oY����E�u@ۤb0T
+�71F0D�"� Microsoft Office��http://office.microsoft.com 0
	*�H��
���0ƙ������#to���Q�������9�c֧̃w�^nvl��%x~{��UQ���A'B���P�P)�Rp��ϭ�O���-
��O�_s�"�츂ɑ����i�/���뻍a�8�o��}�|��(��ȴ��Z��.��m.0�\�t�w��뀷�����+C�Pc��It9MWf� ўpmLf�����"����8*�6�����D<�"

�d9��y�Q���s���:��Qߥ"�Le�<��������=�]��INu��~�ZJ�f�k�kUE�Z��R�X�����0��, ~���O���n��H��B�2B�m��Z>l% ��PL���g�e�{�jT}ɹ�/q6��kͬP��~D�>l̂�3����3Ow�ݤ���v�M�l�V�B����
/][���2�vf<��\���9T�W/m���g]�g�V o:3��,z{��R�8��vfm�7��PC�o��w�ď�TF��Q�B�I;�z�E�����0��
+�71��0�|	*�H��
��m0�i10
	`�He0�R*�H��
	��A�=0�9
+�Y
010
	`�He :�
��L�C����D��A��}/?��hpky�20250806181533.398Z0��Ѥ��0��10	UUS10U
Washington10URedmond10U
Microsoft Corporation1%0#UMicrosoft America Operations1'0%UnShield TSS ESN:A935-03E0-D9471%0#UMicrosoft Time-Stamp Service���0� 0��3�d�5���0
	*�H��
0|10	UUS10U
Washington10URedmond10U
Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20100
250130194300Z
260422194300Z0��10	UUS10U
Washington10URedmond10U
Microsoft Corporation1%0#UMicrosoft America Operations1'0%UnShield TSS ESN:A935-03E0-D9471%0#UMicrosoft Time-Stamp Service0�"0
	*�H��
�0�
��V&=�m����<�ʢ��(�]���M�ϙ�{$cI����rA�|t����B�"sY�&�$�5ZC}��Dl�-����[�w��3���s��Vף��rm�Dd�5�2B�"���ܮ�/������x'�Ϳm0Uf��8�]G=Cu�=�B�k苳� ݣ�4��v2���ҍ����ꄅ�ƥ��CvC����΃w��Ꮜ�<�i���Y�����_I��a��Q�w�8a�ꇢ�x8�\���T�^%�ّ�1�K����۷�)W�/�li�Jϔ�G����
�تv
�'��?V�U.�&O_9�긎Eex����ޗ�zݓa|��f��g�4Ԧ�
}s<,/[ʯ�`��H"FG������R�ą�,#ݦ�|�J�8��n�dJ�v�4S-�&	陚�^��.M9��S�0����t���x�X{�4E��e)v�! ��>�}�-Hd�󠒇7�]��˫�Ć�^�l�޻����'�]b�"l�.�A��I0�E0UuE!���C��IyW;ӡ�0U#0���]^b]����e�S5�r0_UX0V0T�R�P�Nhttp://www.microsoft.com/pkiops/crl/Microsoft%20Time-Stamp%20PCA%202010(1).crl0l+`0^0\+0�Phttp://www.microsoft.com/pkiops/certs/Microsoft%20Time-Stamp%20PCA%202010(1).crt0U�00U%�0
+0U��0
	*�H��
��0���Y���0Y|t�ߋ�����Q?�X�j�ۡ-�h_���҉���
�����e���ʩ��|�Q��N�1ǚ�ک*V�E�e��r�8��:ۘ�2U�,Չ�����~0�`g~��\
v��m�"�U<_�I�7�RMX�ήl&#i5��p��b�e�7B�����R.d
5��g
�`zC��ݔZ�����p���>*
}�6�"��RԿ���j$�!����UB�6:��V�)�XU�f��Q�~�BV)~�7�7�����g	�_L�3�7�i����tQF����<��W�q1.�&��P��T�T�L�����^�߭�I�So#m(9��|��f��WIe�j9�Z���շ��w9�L��wnPd{<�$���F�8��a<��#�Ym|4�b§"�YT6�V	3�ᆔ16,$��x�'�<�u��<	N2c�D�F_o�?|<6rS�xT��������P
��*���׍mp�9B&�=����K����0�q0�Y�3��k��I�0
	*�H��
0��10	UUS10U
Washington10URedmond10U
Microsoft Corporation1200U)Microsoft Root Certificate Authority 20100
210930182225Z
300930183225Z0|10	UUS10U
Washington10URedmond10U
Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20100�"0
	*�H��
�0�
���L�r!y���$y�Ղ��ҩlNu��5W�lJ�⽹>`3�\O�f��SqZ�~JZ��6g�F#���w2��`}jR�D���Fk��v��P�D�q\Q17�
8n����&S|9azĪ�ri����6�5&dژ;�{3��[~��R���b%�j�]�S���VM�ݼ��㑏�9,Q��pi
�6-p�1�5(�㴇$��ɏ~�T��U�mh;�F��z)7���E�Fn�2��0\O,�b�͹⍈䖬J��q�[g`���=� �s}A�Fu��_4���� }~�ٞE߶r/�}_��۪~6�6L�+n�Q���s�M7t�4���G��|?Lۯ^����s=CN�39L��Bh.�QF�ѽjZas�g�^�(v�3rק ��
�co�6d�[���!]_0t���عP��a�65�G������k�\RQ]�%��Pzl�r�Rą��<�7�?x�E���^ڏ�riƮ{��>j�.����0��0	+�70#	+�7*�R�dĚ���<F5)��/�0U��]^b]����e�S5�r0\U U0S0Q+�7L�}0A0?+3http://www.microsoft.com/pkiops/Docs/Repository.htm0U%0
+0	+�7
SubCA0U�0U�0�0U#0��Vˏ�\bh�=��[�Κ�0VUO0M0K�I�G�Ehttp://crl.microsoft.com/pki/crl/products/MicRooCerAut_2010-06-23.crl0Z+N0L0J+0�>http://www.microsoft.com/pki/certs/MicRooCerAut_2010-06-23.crt0
	*�H��
��U}�*��,g1$[�rK��o�\�>NGdx���=13�9��q6?�dl|�u9m�1��lѡ�"��fg:SMݘ��x�6.���V����i�	�{�jo�)�n�?Hu��m��m#T�xSu$W�ݟ�=��h�e��V����(U'�$�@���]='�@�8���)�ü�T�B�������j�BRu�6��as.,k{n?,	x鑲�[�I�t�쑀�=�J>f;O���2ٖ����t��Lro�u0�4�z�P�
X�@<�Tm�ctH,�NG-�q�d�$�smʎ	��WITd�s�[D�Z�k
��(�g($�8K�n�!TkjEG����^O���Lv�WT	�iD~|�als�
��Af=i��AI~~���;����>�1Q������{��p���(��6ںL���
�4�$5g+�
�挙��"��'B=%��tt[jў>�~�13}���{�8pDѐ�ȫ:�:b�pcSM��m��qj�U3X��pf�M0�50����Ѥ��0��10	UUS10U
Washington10URedmond10U
Microsoft Corporation1%0#UMicrosoft America Operations1'0%UnShield TSS ESN:A935-03E0-D9471%0#UMicrosoft Time-Stamp Service�#
0+��d�C-�u�峼�-U<����0���~0|10	UUS10U
Washington10URedmond10U
Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20100
	*�H��
�=װ0"20250806133128Z20250807133128Z0t0:
+�Y
1,0*0
�=װ0o0�0
�?)006
+�Y
1(0&0
+�Y
�
0� �
0��0
	*�H��
�3�4���N�S�(;k�s\3�$�ض�h�@���%�iy�M��}2{|���E���b��Yڊ�^�Ӯ [yi
[��?�lʞ���q�2M.)y,���si��"*P�I3l��j��Ь8��>:�������� �@;M!��Wex2%��i���;��O���>��05�斋�<�nV2�:@�n qy�׹+����緝�}L�]N��]l��ՍPr	A�'�% �Yˀ�K�_�Q������1�
0�	0��0|10	UUS10U
Washington10URedmond10U
Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20103�d�5���0
	`�He��J0	*�H��
	1
*�H��
	0/	*�H��
	1" ��FE[1
��I@C��h���Z�.�p-�f�0��*�H��
	/1��0��0��0�� �(׷1�x��95���1�ù��b����+�g�-0��0���~0|10	UUS10U
Washington10URedmond10U
Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20103�d�5���0" ��z�\��{e��޳Z��j%�:�k�h>�.g0
	*�H��
����~z�ڿCg���ͅ����ૉ}!=;Lt�+Gs�6��U]�r|6]9��"܀��K�m�?��*ކ�U}f�
ך�y�c&o��"e�uk�]®{\S9q�U��� �O���QY�>h�.���n�G��@`���ĺ��E�;e��к��l���p��cUCxU|��F�����%--"�6#6C&�5T�;�^��託`��ꂼ|�!�H�[�o���\B�Z�Uݘ���aY��LЪ�;8�)&C;j��z:O�����c��,��E��V4�?tS��ֶE���M�V#�l�K!�ڝʈQ�B�d:����+�����VιQȈ~,Е!�����M�o_õ�?�R���V�j)�,C&��'_�1�y��[z��F��%����B�򉳸�͕o@�Dϱ3�/�t�rM����||,M/�"y�a����&�h�xEHJw�x�(�qL����o|j�=�r/w�U��}���|��*̪��??