Mini Kabibi Habibi

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

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

$�M��,���,���,��e����,��e����,��e�z��,��e����,��Rich�,��PEd��Rch�" *�@(�`A@< �S8.rdata@@.rsrc� @@�Rch
|���Rch��Hhhofficejs_excel.dll��GCTL@.rdata@<.edata|.rdata$voltmd��.rdata$zzzdbg `.rsrc$01` x.rsrc$02X��d0�	H` sJS/* 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={})),function(e){e.definePropertyOnNamespace=function(e,t,n){Object.defineProperty(e,t,{get:function(){return n()},configurable:!0,enumerable:!0})}}(OSF||(OSF={})),OSFPerformance.hostInitializationStart=OSFPerformance.now(),function(e){!function(e){function t(){return e.m_association||(e.m_association=new OSF.Association),e.m_association}e.m_association=e.m_association,e.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}})})),t().associate.apply(t(),arguments)},OSF.definePropertyOnNamespace(e,"_association",t)}(e.actions||(e.actions={}))}(Office||(Office={})),function(e){!function(e){e[e.Select=0]="Select",e[e.UnSelect=1]="UnSelect",e[e.CancelDialog=2]="CancelDialog",e[e.InsertAgave=3]="InsertAgave",e[e.CtrlF6In=4]="CtrlF6In",e[e.CtrlF6Exit=5]="CtrlF6Exit",e[e.CtrlF6ExitShift=6]="CtrlF6ExitShift",e[e.SelectWithError=7]="SelectWithError",e[e.NotifyHostError=8]="NotifyHostError",e[e.RefreshAddinCommands=9]="RefreshAddinCommands",e[e.PageIsReady=10]="PageIsReady",e[e.TabIn=11]="TabIn",e[e.TabInShift=12]="TabInShift",e[e.TabExit=13]="TabExit",e[e.TabExitShift=14]="TabExitShift",e[e.EscExit=15]="EscExit",e[e.F2Exit=16]="F2Exit",e[e.ExitNoFocusable=17]="ExitNoFocusable",e[e.ExitNoFocusableShift=18]="ExitNoFocusableShift",e[e.MouseEnter=19]="MouseEnter",e[e.MouseLeave=20]="MouseLeave",e[e.UpdateTargetUrl=21]="UpdateTargetUrl",e[e.InstallCustomFunctions=22]="InstallCustomFunctions",e[e.SendTelemetryEvent=23]="SendTelemetryEvent",e[e.UninstallCustomFunctions=24]="UninstallCustomFunctions",e[e.SendMessage=25]="SendMessage",e[e.LaunchExtensionComponent=26]="LaunchExtensionComponent",e[e.StopExtensionComponent=27]="StopExtensionComponent",e[e.RestartExtensionComponent=28]="RestartExtensionComponent",e[e.EnableTaskPaneHeaderButton=29]="EnableTaskPaneHeaderButton",e[e.DisableTaskPaneHeaderButton=30]="DisableTaskPaneHeaderButton",e[e.TaskPaneHeaderButtonClicked=31]="TaskPaneHeaderButtonClicked",e[e.RemoveAppCommandsAddin=32]="RemoveAppCommandsAddin",e[e.RefreshRibbonGallery=33]="RefreshRibbonGallery",e[e.GetOriginalControlId=34]="GetOriginalControlId",e[e.OfficeJsReady=35]="OfficeJsReady",e[e.InsertDevManifest=36]="InsertDevManifest",e[e.InsertDevManifestError=37]="InsertDevManifestError",e[e.SendCustomerContent=38]="SendCustomerContent",e[e.KeyboardShortcuts=39]="KeyboardShortcuts",e[e.CloseSDXDialog=42]="CloseSDXDialog",e[e.ResizeSDXDialog=43]="ResizeSDXDialog",e[e.SendNonStandardEvent=44]="SendNonStandardEvent"}(e.AgaveHostAction||(e.AgaveHostAction={}))}(OSF||(OSF={})),function(e){var t=function(){function t(){var t=this;this._processAppCommandInvocation=function(e){var n=t._verifyManifestCallback(e.callbackName);if(0==n.errorCode){var o=t._constructEventObjectForCallback(e);o?window.setTimeout((function(){n.callback(o)}),0):t._invokeAppCommandCompletedMethod(e.appCommandId,5001,"")}else t._invokeAppCommandCompletedMethod(e.appCommandId,n.errorCode,"")},this._eventDispatch=new e.EventDispatch([{type:e.EventType.AppCommandInvoked,id:e.EventDispId.dispidAppCommandInvokedEvent,getTargetId:function(){return""},fromSafeArrayHost:function(t){return{type:e.EventType.AppCommandInvoked,appCommandId:t[0],callbackName:t[1],eventObjStr:t[2]}},fromWebHost:function(t){return{type:e.EventType.AppCommandInvoked,appCommandId:t[0],callbackName:t[1],eventObjStr:t[2]}}}])}return t.prototype.initializeEventHandler=function(t){var n=this;this.addHandlerAsync(e.EventType.AppCommandInvoked,(function(e){n._processAppCommandInvocation(e)}),t)},t.prototype.appCommandInvocationCompletedAsync=function(t,n,o,r){e._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}},r)},t.prototype.addHandlerAsync=function(t,n,o){e.EventHelper.addEventHandler(t,n,o,this._eventDispatch,void 0,e.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(e){var t,n,o=this;try{t=JSON.parse(e.eventObjStr),n=JSON.parse(e.eventObjStr)}catch(e){}return t||(t={}),n||(n={}),t.completed=function(t){n.completedContext=t;var r=JSON.stringify(n);o._invokeAppCommandCompletedMethod(e.appCommandId,0,r)},t},t.initialize=function(){null==t._instance&&(t._instance=new t,t._instance.initializeEventHandler((function(e){e.status!==Office.AsyncResultStatus.Succeeded&&console.error("Cannot initialize app command: "+JSON.stringify(e))})))},t._instance=null,t}();e.AppCommandManager=t}(OSF||(OSF={})),function(e){!function(e){e[e.Unsupported=0]="Unsupported",e[e.Excel=1]="Excel",e[e.Word=2]="Word",e[e.PowerPoint=4]="PowerPoint",e[e.Outlook=8]="Outlook",e[e.ExcelWebApp=16]="ExcelWebApp",e[e.WordWebApp=32]="WordWebApp",e[e.OutlookWebApp=64]="OutlookWebApp",e[e.Project=128]="Project",e[e.AccessWebApp=256]="AccessWebApp",e[e.PowerpointWebApp=512]="PowerpointWebApp",e[e.ExcelIOS=1024]="ExcelIOS",e[e.Sway=2048]="Sway",e[e.WordIOS=4096]="WordIOS",e[e.PowerPointIOS=8192]="PowerPointIOS",e[e.Access=16384]="Access",e[e.Lync=32768]="Lync",e[e.OutlookIOS=65536]="OutlookIOS",e[e.OneNoteWebApp=131072]="OneNoteWebApp",e[e.OneNote=262144]="OneNote",e[e.ExcelWinRT=524288]="ExcelWinRT",e[e.WordWinRT=1048576]="WordWinRT",e[e.PowerpointWinRT=2097152]="PowerpointWinRT",e[e.OutlookAndroid=4194304]="OutlookAndroid",e[e.OneNoteWinRT=8388608]="OneNoteWinRT",e[e.ExcelAndroid=8388609]="ExcelAndroid",e[e.VisioWebApp=8388610]="VisioWebApp",e[e.OneNoteIOS=8388611]="OneNoteIOS",e[e.WordAndroid=8388613]="WordAndroid",e[e.PowerpointAndroid=8388614]="PowerpointAndroid",e[e.Visio=8388615]="Visio",e[e.OneNoteAndroid=4194305]="OneNoteAndroid"}(e.AppName||(e.AppName={}))}(OSF||(OSF={})),function(e){var t=function(){function e(){this.m_mappings={},this.m_onchangeHandlers=[]}return e.prototype.associate=function(e,t){function n(e){"undefined"!=typeof console&&console.warn&&console.warn(e)}if(1==arguments.length&&"object"==typeof arguments[0]&&arguments[0]){var o=arguments[0];for(var r in o)this.associate(r,o[r])}else if(2==arguments.length){var i=arguments[0],a=arguments[1];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 l=0;l<this.m_onchangeHandlers.length;l++)this.m_onchangeHandlers[l]()}else n("[InvalidArg] Function=associate")},e.prototype.onchange=function(e){e&&this.m_onchangeHandlers.push(e)},Object.defineProperty(e.prototype,"mappings",{get:function(){return this.m_mappings},enumerable:!0,configurable:!0}),e}();e.Association=t}(OSF||(OSF={})),function(e){var t=function(){function e(){}return e.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)}},e}();e.AsyncMethodExecutor=t}(OSF||(OSF={})),function(e){var t=function(){function t(e){this._asyncMethodExecutor=e}return t.prototype.handleSafeArrayHostResponse=function(t,n,o,r,i,a,s){var l,c;if("number"==typeof(t=e.Utility.fromSafeArray(t))?(l=[],c=t):c=(l=t)[0],1==c)return null!=(u=l[1])&&(o[u[0]]=u[1]),!1;if(r){var u;if(0==c){if(l.length>2){u=[];for(var d=1;d<l.length;d++)u[d-1]=l[d]}else u=l[1];if(o.length>0&&null!=u){var f=u[u.length-1];o.length==f?u[u.length-1]=o:c=5001}}else u=l[1];var p=null;0==c&&(p=i.fromSafeArrayHost(u)),this._asyncMethodExecutor.invokeCallback(a,r,c,p,s)}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}();e.AsyncMethodExecutorHelper=t}(OSF||(OSF={})),function(e){!function(e){!function(e){!function(e){e.Context="Context",e.Value="Value",e.Status="Status",e.Error="Error"}(e.Properties||(e.Properties={})),function(e){e[e.Success=0]="Success",e[e.Failed=1]="Failed"}(e.ErrorCode||(e.ErrorCode={})),function(e){e.Name="Name",e.Message="Message",e.Code="Code"}(e.ErrorProperties||(e.ErrorProperties={}))}(e.AsyncResultEnum||(e.AsyncResultEnum={}));var t=function(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 n(t.Name,t.Message,t.Code))};e.AsyncResult=t;var n=function(e,t,n){this.name=e,this.message=t,this.code=n};e.Error=n}(e.DDA||(e.DDA={}))}(OSF||(OSF={})),function(e){!function(t){t.createWebClientHostControllerHelper=function(t,n){return new e.WebClientHostControllerHelper(t,n)},t.createAsyncMethodExecutorHelper=function(t){return new e.AsyncMethodExecutorHelper(t)}}(e.BootStrapExtension||(e.BootStrapExtension={}))}(OSF||(OSF={})),function(e){!function(e){e.DefaultLocale="en-us",e.OfficeJS="office.js",e.OfficeDebugJS="office.debug.js",e.OfficeStringsId="OFFICESTRINGS",e.OfficeJsId="OFFICEJS",e.HostFileId="HOST",e.OfficeStringJS="office_strings.js",e.OfficeStringDebugJS="office_strings.debug.js",e.FileVersion="0.0.0.0"}(e.ConstantNames||(e.ConstantNames={}))}(OSF||(OSF={})),function(e){var t=function(){function e(){}return e.NotificationConversationIdSuffix="_ntf",e}();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){!function(e){!function(e){var t={},n=!1;e.getErrorArgs=function(e){var o;n||(o=Strings.OfficeOM,t[1e3]={name:o.L_InvalidCoercion,message:o.L_CoercionTypeNotSupported},t[1001]={name:o.L_DataReadError,message:o.L_GetSelectionNotSupported},t[1002]={name:o.L_InvalidCoercion,message:o.L_CoercionTypeNotMatchBinding},t[1003]={name:o.L_DataReadError,message:o.L_InvalidGetRowColumnCounts},t[1004]={name:o.L_DataReadError,message:o.L_SelectionNotSupportCoercionType},t[1005]={name:o.L_DataReadError,message:o.L_InvalidGetStartRowColumn},t[1006]={name:o.L_DataReadError,message:o.L_NonUniformPartialGetNotSupported},t[1008]={name:o.L_DataReadError,message:o.L_GetDataIsTooLarge},t[1009]={name:o.L_DataReadError,message:o.L_FileTypeNotSupported},t[1010]={name:o.L_DataReadError,message:o.L_GetDataParametersConflict},t[1011]={name:o.L_DataReadError,message:o.L_InvalidGetColumns},t[1012]={name:o.L_DataReadError,message:o.L_InvalidGetRows},t[1013]={name:o.L_DataReadError,message:o.L_InvalidReadForBlankRow},t[2e3]={name:o.L_DataWriteError,message:o.L_UnsupportedDataObject},t[2001]={name:o.L_DataWriteError,message:o.L_CannotWriteToSelection},t[2002]={name:o.L_DataWriteError,message:o.L_DataNotMatchSelection},t[2003]={name:o.L_DataWriteError,message:o.L_OverwriteWorksheetData},t[2004]={name:o.L_DataWriteError,message:o.L_DataNotMatchBindingSize},t[2005]={name:o.L_DataWriteError,message:o.L_InvalidSetStartRowColumn},t[2006]={name:o.L_InvalidFormat,message:o.L_InvalidDataFormat},t[2007]={name:o.L_InvalidDataObject,message:o.L_DataNotMatchCoercionType},t[2008]={name:o.L_InvalidDataObject,message:o.L_DataNotMatchBindingType},t[2009]={name:o.L_DataWriteError,message:o.L_SetDataIsTooLarge},t[2010]={name:o.L_DataWriteError,message:o.L_NonUniformPartialSetNotSupported},t[2011]={name:o.L_DataWriteError,message:o.L_InvalidSetColumns},t[2012]={name:o.L_DataWriteError,message:o.L_InvalidSetRows},t[2013]={name:o.L_DataWriteError,message:o.L_SetDataParametersConflict},t[3e3]={name:o.L_BindingCreationError,message:o.L_SelectionCannotBound},t[3002]={name:o.L_InvalidBindingError,message:o.L_BindingNotExist},t[3003]={name:o.L_BindingCreationError,message:o.L_BindingToMultipleSelection},t[3004]={name:o.L_BindingCreationError,message:o.L_InvalidSelectionForBindingType},t[3005]={name:o.L_InvalidBindingOperation,message:o.L_OperationNotSupportedOnThisBindingType},t[3006]={name:o.L_BindingCreationError,message:o.L_NamedItemNotFound},t[3007]={name:o.L_BindingCreationError,message:o.L_MultipleNamedItemFound},t[3008]={name:o.L_BindingCreationError,message:o.L_InvalidNamedItemForBindingType},t[3009]={name:o.L_InvalidBinding,message:o.L_UnknownBindingType},t[3010]={name:o.L_InvalidBindingOperation,message:o.L_OperationNotSupportedOnMatrixData},t[3011]={name:o.L_InvalidBinding,message:o.L_InvalidColumnsForBinding},t[4e3]={name:o.L_ReadSettingsError,message:o.L_SettingNameNotExist},t[4001]={name:o.L_SaveSettingsError,message:o.L_SettingsCannotSave},t[4002]={name:o.L_SettingsStaleError,message:o.L_SettingsAreStale},t[5e3]={name:o.L_HostError,message:o.L_OperationNotSupported},t[5001]={name:o.L_InternalError,message:o.L_InternalErrorDescription},t[5002]={name:o.L_PermissionDenied,message:o.L_DocumentReadOnly},t[5003]={name:o.L_EventRegistrationError,message:o.L_EventHandlerNotExist},t[5004]={name:o.L_InvalidAPICall,message:o.L_InvalidApiCallInContext},t[5005]={name:o.L_ShuttingDown,message:o.L_ShuttingDown},t[5007]={name:o.L_UnsupportedEnumeration,message:o.L_UnsupportedEnumerationMessage},t[5008]={name:o.L_IndexOutOfRange,message:o.L_IndexOutOfRange},t[5009]={name:o.L_APINotSupported,message:o.L_BrowserAPINotSupported},t[5011]={name:o.L_APICallFailed,message:o.L_RequestTimeout},t[5012]={name:o.L_InvalidOrTimedOutSession,message:o.L_InvalidOrTimedOutSessionMessage},t[5013]={name:o.L_APICallFailed,message:o.L_InvalidApiArgumentsMessage},t[5015]={name:o.L_APICallFailed,message:o.L_WorkbookHiddenMessage},t[5016]={name:o.L_APICallFailed,message:o.L_WriteNotSupportedWhenModalDialogOpen},t[5017]={name:o.L_APICallFailed,message:o.L_UndoNotSupportedMessage},t[5100]={name:o.L_APICallFailed,message:o.L_TooManyIncompleteRequests},t[5101]={name:o.L_APICallFailed,message:o.L_RequestTokenUnavailable},t[5102]={name:o.L_APICallFailed,message:o.L_ActivityLimitReached},t[5103]={name:o.L_APICallFailed,message:o.L_RequestPayloadSizeLimitExceededMessage},t[5104]={name:o.L_APICallFailed,message:o.L_ResponsePayloadSizeLimitExceededMessage},t[6e3]={name:o.L_InvalidNode,message:o.L_CustomXmlNodeNotFound},t[6100]={name:o.L_CustomXmlError,message:o.L_CustomXmlError},t[6101]={name:o.L_CustomXmlExceedQuotaName,message:o.L_CustomXmlExceedQuotaMessage},t[6102]={name:o.L_CustomXmlOutOfDateName,message:o.L_CustomXmlOutOfDateMessage},t[7e3]={name:o.L_PermissionDenied,message:o.L_NoCapability},t[7001]={name:o.L_CannotNavigateTo,message:o.L_CannotNavigateTo},t[7002]={name:o.L_SpecifiedIdNotExist,message:o.L_SpecifiedIdNotExist},t[7004]={name:o.L_NavOutOfBound,message:o.L_NavOutOfBound},t[2014]={name:o.L_DataWriteReminder,message:o.L_CellDataAmountBeyondLimits},t[8e3]={name:o.L_MissingParameter,message:o.L_ElementMissing},t[8001]={name:o.L_PermissionDenied,message:o.L_NoCapability},t[8010]={name:o.L_InvalidValue,message:o.L_InvalidCellsValue},t[8011]={name:o.L_InvalidValue,message:o.L_InvalidTableOptionValue},t[8012]={name:o.L_InvalidValue,message:o.L_InvalidFormatValue},t[8020]={name:o.L_OutOfRange,message:o.L_RowIndexOutOfRange},t[8021]={name:o.L_OutOfRange,message:o.L_ColIndexOutOfRange},t[8022]={name:o.L_OutOfRange,message:o.L_FormatValueOutOfRange},t[8023]={name:o.L_FormattingReminder,message:o.L_CellFormatAmountBeyondLimits},t[1e4]={name:o.L_UserNotSignedIn,message:o.L_UserNotSignedIn},t[11e3]={name:o.L_MemoryLimit,message:o.L_CloseFileBeforeRetrieve},t[11001]={name:o.L_NetworkProblem,message:o.L_NetworkProblemRetrieveFile},t[11002]={name:o.L_InvalidValue,message:o.L_SliceSizeNotSupported},t[12007]={name:o.L_DisplayDialogError,message:o.L_DialogAlreadyOpened},t[12e3]={name:o.L_IndexOutOfRange,message:o.L_IndexOutOfRange},t[12001]={name:o.L_IndexOutOfRange,message:o.L_IndexOutOfRange},t[12002]={name:o.L_DisplayDialogError,message:o.L_NetworkProblem},t[12003]={name:o.L_DialogNavigateError,message:o.L_DialogInvalidScheme},t[12004]={name:o.L_DisplayDialogError,message:o.L_DialogAddressNotTrusted},t[12005]={name:o.L_DisplayDialogError,message:o.L_DialogRequireHTTPS},t[12009]={name:o.L_DisplayDialogError,message:o.L_UserClickIgnore},t[12011]={name:o.L_DisplayDialogError,message:o.L_NewWindowCrossZoneErrorString},t[13e3]={name:o.L_APINotSupported,message:o.L_InvalidSSOAddinMessage},t[13001]={name:o.L_UserNotSignedIn,message:o.L_UserNotSignedIn},t[13002]={name:o.L_UserAborted,message:o.L_UserAbortedMessage},t[13003]={name:o.L_UnsupportedUserIdentity,message:o.L_UnsupportedUserIdentityMessage},t[13004]={name:o.L_InvalidResourceUrl,message:o.L_InvalidResourceUrlMessage},t[13005]={name:o.L_InvalidGrant,message:o.L_InvalidGrantMessage},t[13006]={name:o.L_SSOClientError,message:o.L_SSOClientErrorMessage},t[13007]={name:o.L_SSOServerError,message:o.L_SSOServerErrorMessage},t[13008]={name:o.L_AddinIsAlreadyRequestingToken,message:o.L_AddinIsAlreadyRequestingTokenMessage},t[13009]={name:o.L_SSOUserConsentNotSupportedByCurrentAddinCategory,message:o.L_SSOUserConsentNotSupportedByCurrentAddinCategoryMessage},t[13010]={name:o.L_SSOConnectionLostError,message:o.L_SSOConnectionLostErrorMessage},t[13012]={name:o.L_APINotSupported,message:o.L_SSOUnsupportedPlatform},t[13013]={name:o.L_APICallFailed,message:o.L_RequestTokenUnavailable},t[5014]={name:o.L_OperationCancelledError,message:o.L_OperationCancelledErrorMessage},n=!0);var r=t[e];return r?(r.name||(r.name=t[5001].name),r.message||(r.message=t[5001].message)):r=t[5001],r},e.addErrorMessage=function(e,n){t[e]=n}}(e.ErrorCodeManager||(e.ErrorCodeManager={}))}(e.DDA||(e.DDA={}))}(OSF||(OSF={})),function(e){var t=function(){function e(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]=[]}}return e.prototype.getSupportedEvents=function(){var e=[];for(var t in this._eventHandlers)e.push(t);return e},e.prototype.supportsEvent=function(e){for(var t in this._eventHandlers)if(e==t)return!0;return!1},e.prototype.hasEventHandler=function(e,t){var n=this._eventHandlers[e];if(n&&n.length>0)for(var o=0;o<n.length;o++)if(n[o]===t)return!0;return!1},e.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)},e.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},e.prototype.removeEventHandler=function(e,t){var n=this._eventHandlers[e];if(n&&n.length>0)for(var o=0;o<n.length;o++)if(n[o]===t)return n.splice(o,1),!0;return!1},e.prototype.clearEventHandlers=function(e){return void 0!==this._eventHandlers[e]&&this._eventHandlers[e].length>0&&(this._eventHandlers[e]=[],!0)},e.prototype.getEventHandlerCount=function(e){return null!=this._eventHandlers[e]?this._eventHandlers[e].length:-1},e.prototype.getEventInfo=function(e){return this._eventInfos[e]},e.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},e.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},e.prototype.fireQueuedEvent=function(e){if(e&&this._eventHandlers[e]){var t=this._eventHandlers[e],n=this._queuedEventsArgs[e];if(t.length>0){for(var o=t[0];n.length>0;){o(n.shift())}return!0}}return!1},e.prototype.clearQueuedEvent=function(e){e&&this._eventHandlers[e]&&(this._queuedEventsArgs[e]&&(this._queuedEventsArgs[e]=[]))},e}();e.EventDispatch=t}(OSF||(OSF={})),function(e){!function(e){e.dispidEventMin=0,e.dispidInitializeEvent=0,e.dispidSettingsChangedEvent=1,e.dispidDocumentSelectionChangedEvent=2,e.dispidBindingSelectionChangedEvent=3,e.dispidBindingDataChangedEvent=4,e.dispidDocumentOpenEvent=5,e.dispidDocumentCloseEvent=6,e.dispidActiveViewChangedEvent=7,e.dispidDocumentThemeChangedEvent=8,e.dispidOfficeThemeChangedEvent=9,e.dispidDialogMessageReceivedEvent=10,e.dispidDialogNotificationShownInAddinEvent=11,e.dispidDialogParentMessageReceivedEvent=12,e.dispidObjectDeletedEvent=13,e.dispidObjectSelectionChangedEvent=14,e.dispidObjectDataChangedEvent=15,e.dispidContentControlAddedEvent=16,e.dispidLiveShareStateChangedEvent=17,e.dispidActivationStatusChangedEvent=32,e.dispidRichApiMessageEvent=33,e.dispidAppCommandInvokedEvent=39,e.dispidOnSdxSendMessageEvent=40,e.dispidDataNodeAddedEvent=60,e.dispidDataNodeReplacedEvent=61,e.dispidDataNodeDeletedEvent=62}(e.EventDispId||(e.EventDispId={}))}(OSF||(OSF={})),function(e){var t=function(){function t(){}return t.addEventHandler=function(n,o,r,i,a,s){var l=0;function c(t){0==t&&(i.hasEventHandler(n,o)||i.addEventHandler(n,o)||(t=5010));e._OfficeAppFactory.getAsyncMethodExecutor().invokeCallback(l,r,t,null,a)}var u=i.getEventInfo(n);if(u)try{if(s)return void c(0);l=u.id;var d=u.getTargetId();if(0==i.getEventHandlerCount(n))e._OfficeAppFactory.getAsyncMethodExecutor().registerEventAsync(l,u.type,d,(function(e){i.fireEvent(e)}),u,(function(t){c(e.Utility.getErrorCodeFromAsyncResult(t))}),a);else c(0)}catch(e){t.onException(l,e,r)}else c(5010)},t.removeEventHandler=function(n,o,r,i,a,s){var l=0;function c(t){e._OfficeAppFactory.getAsyncMethodExecutor().invokeCallback(l,r,t,null,a)}var u=i.getEventInfo(n);if(u)try{l=u.id;var d=u.getTargetId(),f=0,p=!0;null===o?(p=i.clearEventHandlers(n),f=0):f=(p=i.removeEventHandler(n,o))?0:5003;var h=i.getEventHandlerCount(n);if(p&&0==h)e._OfficeAppFactory.getAsyncMethodExecutor().unregisterEventAsync(l,u.type,d,(function(t){c(e.Utility.getErrorCodeFromAsyncResult(t))}),a);else c(f)}catch(e){t.onException(l,e,r)}else c(5010)},t.onException=function(t,n,o){if("number"!=typeof n)throw n;e._OfficeAppFactory.getAsyncMethodExecutor().invokeCallback(t,o,n,null)},t}();e.EventHelper=t}(OSF||(OSF={})),function(e){!function(e){e.ActiveViewChanged="activeViewChanged",e.AppCommandInvoked="appCommandInvoked",e.RichApiMessage="richApiMessage",e.DocumentSelectionChanged="documentSelectionChanged",e.BindingSelectionChanged="bindingSelectionChanged",e.BindingDataChanged="bindingDataChanged",e.OfficeThemeChanged="officeThemeChanged",e.DocumentThemeChanged="documentThemeChanged",e.LiveShareStateChanged="liveShareStateChanged",e.DataNodeDeleted="nodeDeleted",e.DataNodeInserted="nodeInserted",e.DataNodeReplaced="nodeReplaced",e.DialogMessageReceived="dialogMessageReceived",e.DialogParentMessageReceived="dialogParentMessageReceived",e.DialogParentEventReceived="dialogParentEventReceived",e.DialogEventReceived="dialogEventReceived",e.NodeDeleted="nodeDeleted",e.NodeInserted="nodeInserted",e.NodeReplaced="nodeReplaced",e.SettingsChanged="settingsChanged"}(e.EventType||(e.EventType={}))}(OSF||(OSF={})),function(e){!function(t){var n=function(){function t(){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()}return t.prototype.capitalizeFirstLetter=function(e){return e?e[0].toUpperCase()+e.slice(1).toLowerCase():e},t.getInstance=function(){return void 0===t.hostObj&&(t.hostObj=new t),t.hostObj},t.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},t.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},t.prototype.getDefaultVersion=function(){return this.getHost()?"16.0.0000.0000":null},t.prototype.getDiagnostics=function(e){return{host:this.getHost(),version:e||this.getDefaultVersion(),platform:this.getPlatform()}},t}();t.Host=n}(e.HostName||(e.HostName={}))}(OSF||(OSF={})),function(e){!function(e){e[e.SharedApp=1]="SharedApp",e[e.CustomFunction=2]="CustomFunction",e[e.ProtectedDocDisable=4]="ProtectedDocDisable",e[e.ExperimentJsEnabled=8]="ExperimentJsEnabled",e[e.PublicAddin=16]="PublicAddin",e[e.BundleJsEnabled=32]="BundleJsEnabled",e[e.IsMos=64]="IsMos",e[e.IsMonarch=128]="IsMonarch"}(e.HostInfoFlags||(e.HostInfoFlags={}))}(OSF||(OSF={})),function(e){!function(e){e.excel="excel",e.word="word"}(e.HostInfoHostType||(e.HostInfoHostType={}))}(OSF||(OSF={})),function(e){!function(e){e.web="web",e.winrt="winrt",e.win32="win32",e.mac="mac",e.ios="ios",e.android="android"}(e.HostInfoPlatform||(e.HostInfoPlatform={}))}(OSF||(OSF={})),function(e){var t=function(){function t(e,t,n,o){this._hostInfo=e,this._webAppState=t,this._context=n,this._hostFacade=o}return 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(t){var n=e.OUtil.getSessionStorage();if(n){var o=n.getItem(e._OfficeAppFactory.getCachedSessionSettingsKey());o?t=JSON.parse(o):(o=JSON.stringify(t),n.setItem(e._OfficeAppFactory.getCachedSessionSettingsKey(),o))}var r=e.OUtil.deserializeSettings(t),i=this.createClientSettingsManager();return new Office.Settings(r,i)},t.prototype.prepareApiSurface=function(t){var n=t.get_featureGates();n&&(Microsoft.Office.WebExtension.FeatureGates=n),e.BootStrapExtension.prepareApiSurface&&e.BootStrapExtension.prepareApiSurface(),e.BootStrapExtension.prepareHostSpecificSurface&&e.BootStrapExtension.prepareHostSpecificSurface(),OSFPerformance.createOMEnd=OSFPerformance.now()},t.prototype.getTabbableElements=function(){return null},t}();e.InitializationHelper=t}(OSF||(OSF={})),function(e){!function(e){e.Inserted="inserted",e.DocumentOpened="documentOpened"}(e.InitializationReason||(e.InitializationReason={}))}(OSF||(OSF={})),OSF||(OSF={}),function(e){!function(t){var n,o=null,r=!1,i=["excel","word","powerpoint","onenote","outlook","visio","office-common","office.common","office","officebase"],a=[".js",".debug.js"],s="_osfDisableHostCheck",l=function(){try{return document.currentScript}catch(e){return null}}();function c(){return u(),n.trustedTypesOptIn}function u(){if(!n){var e=function(e){var t=null!=e?e.src:null;if(!t)return null;for(var n=t.toLowerCase(),o=0;o<i.length;o++)for(var r=0;r<a.length;r++){var l=i[o]+a[r],c=n.indexOf(l);if(c>=0&&(0===c||"/"===t.charAt(c-1)||"\\"===t.charAt(c-1))&&(c+l.length===t.length||"?"===t.charAt(c+l.length))){var u=t.substring(0,c),d=n.indexOf(".debug.js",c)>0,f=e.getAttribute("data-is-sdx"),p="1"===f||"true"===f,h=e.getAttribute("data-enable-trusted-types"),g="1"===h||"true"===h;return{basePath:u,name:l,isDebugJs:d,isSdx:p,disableHostCheck:window.hasOwnProperty(s)&&!0===window._osfDisableHostCheck,trustedTypesOptIn:g}}}return null};if(!(n=e(l))){for(var t=document.getElementsByTagName("script"),o=t.length,r=0;r<o;r++)if(n=e(t[r]))return;n={basePath:"",name:"",isDebugJs:!1,isSdx:!1,disableHostCheck:!1,trustedTypesOptIn:!1}}}}t.getHostBundleJsBasePath=function(){return u(),n.basePath},t.getHostBundleJsName=function(){return u(),n.name},t.getOfficeStringJsName=function(){return u(),n.isDebugJs?e.ConstantNames.OfficeStringDebugJS:e.ConstantNames.OfficeStringJS},t.isSdx=function(){return u(),n.isSdx},t.disableHostCheck=function(){return u(),n.disableHostCheck},t.trustedTypesOptIn=c,t.loadScriptWithBasename=function(t,o,r){u();var i=t+(n.isDebugJs?".debug.js":".js");i=i.toLowerCase();var a=n.basePath+i;e.OUtil.loadScript(a,o,f())};var d=["https://alcdn.msauth.net/browser-1p/2.28.1/js/msal-browser-1p.min.js"];function f(){if(!r){r=!0;try{if(!c()||!window.trustedTypes||!window.trustedTypes.createPolicy)return null;var e=l.src,t=new URL(e).origin.toLowerCase();if(!t)return null;o=window.trustedTypes.createPolicy("officejs",{createScriptURL:function(e){var n=e.toLowerCase(),o=new URL(n).origin;if(t&&t===o)return e;for(var r=0,i=d;r<i.length;r++){if(n===i[r])return e}throw new Error("Untrusted script URL")}})}catch(e){}}return o}t.getTrustedTypesPolicy=f}(e.LoadScriptHelper||(e.LoadScriptHelper={}))}(OSF||(OSF={})),function(e){!function(t){!function(t){t.getAuthContextAsync=function(t){function n(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 o={toSafeArrayHost:function(){return[]},fromSafeArrayHost:function(e){try{return n(JSON.parse(e))}catch(e){return null}},toWebHost:function(){return{}},fromWebHost:function(e){return n(e)}};e._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(205,o,t)}}(t.Auth||(t.Auth={}))}(e.DDA||(e.DDA={}))}(OSF||(OSF={})),function(e){var t;!function(e){e[e.MaxLiveShareStateDataSizeInBytes=1024]="MaxLiveShareStateDataSizeInBytes"}(t=e.LiveShareStateParams||(e.LiveShareStateParams={}));var n=function(){function e(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}}}])}return e.prototype.get=function(){return this._liveShareState},e.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},e.prototype.addHandlerAsync=function(e,t,n){OSF.EventHelper.addEventHandler(e,t,n,this._eventDispatch)},e.prototype.removeHandlerAsync=function(e,t,n){OSF.EventHelper.removeEventHandler(e,t,n,this._eventDispatch)},e}();e.LiveShareState=n}(Office||(Office={})),function(e){var t={"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},n={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,o){if(void 0===o&&(o="en-us"),!e)return o;var r;if((e=e.toLowerCase())in t)r=e;else{var i=e.split("-",1);i&&i.length>0&&(r=n[i[0]])}return r||(r=o),r}}(OSF||(OSF={})),function(e){e.OfficeOM||(e.OfficeOM={})}(Strings||(Strings={})),function(e){!function(t){var n;t.ensureOfficeStringsJs=function(){return n||(n=1==e.OUtil.getLibraryReleaseVehicle()?new Office.Promise((function(e,t){e()})):new Office.Promise((function(n,o){if(e._OfficeAppFactory.getHostInfo().hostLocale){var r=e.LoadScriptHelper.getHostBundleJsBasePath()+e._OfficeAppFactory.getHostInfo().hostLocale+"/"+e.LoadScriptHelper.getOfficeStringJsName();e.OUtil.loadScript(r,(function(r){if(r)n();else{var i=e.LoadScriptHelper.getHostBundleJsBasePath()+e.ConstantNames.DefaultLocale+"/"+e.LoadScriptHelper.getOfficeStringJsName();t.loadScript(i,(function(t){t?n():o(new Error("Cannot load "+e.ConstantNames.OfficeStringJS))}),e.LoadScriptHelper.getTrustedTypesPolicy())}}),e.LoadScriptHelper.getTrustedTypesPolicy())}else o(new Error("No host locale"))}))),n}}(e.OUtil||(e.OUtil={}))}(OSF||(OSF={})),function(e){!function(t){!function(t){var n;OSF.definePropertyOnNamespace(t,"url",(function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_docUrl()})),OSF.definePropertyOnNamespace(t,"mode",(function(){return 0==OSF._OfficeAppFactory.getOfficeAppContext().get_clientMode()?e.DocumentMode.ReadOnly:e.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(t,n,o,r){var i={};i[e.GoToType.Binding]=0,i[e.GoToType.NamedItem]=1,i[e.GoToType.Slide]=2,i[e.GoToType.Index]=3;var a={};a[e.SelectionMode.Default]=0,a[e.SelectionMode.Selected]=1,a[e.SelectionMode.None]=2;var s=i[n],l=0,c=r;"function"==typeof o?c=o:void 0!==o&&(l=a[o]);var u={toSafeArrayHost:function(){return[t,s,l]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{DdaGoToByIdMethod:{Id:t,GoToType:s,SelectionMode:l}}},fromWebHost:function(e){return e}};OSF._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(82,u,c)}}(t.document||(t.document={}))}(e.context||(e.context={}))}(Office||(Office={})),function(e){!function(e){!function(e){e.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)}},e.registerOnMessageEventHandler=function(t){if(OSF._OfficeAppFactory.getHostInfo().hostPlatform==OSF.HostInfoPlatform.web)e.onMessage=t;else{OSF._OfficeAppFactory.getClientHostController().registerEvent(OSF.EventDispId.dispidOnSdxSendMessageEvent,"","",(function(e,n){var o=n.toArray();t(JSON.parse(o[0]))}),null)}}}(e.messaging||(e.messaging={}))}(e.context||(e.context={}))}(Office||(Office={})),function(e){!function(t){var n,o;OSF.definePropertyOnNamespace(t,"contentLanguage",(function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_dataLocale()})),OSF.definePropertyOnNamespace(t,"displayLanguage",(function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_appUILocale()})),OSF.definePropertyOnNamespace(t,"partitionKey",(function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_partitionKey()})),OSF.definePropertyOnNamespace(t,"isDialog",(function(){return OSF._OfficeAppFactory.getHostInfo().isDialog})),OSF.definePropertyOnNamespace(t,"touchEnabled",(function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_touchEnabled()})),OSF.definePropertyOnNamespace(t,"commerceAllowed",(function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_commerceAllowed()})),OSF.definePropertyOnNamespace(t,"host",(function(){return OSF.HostName.Host.getInstance().getHost()})),OSF.definePropertyOnNamespace(t,"platform",(function(){return OSF.HostName.Host.getInstance().getPlatform()})),OSF.definePropertyOnNamespace(t,"diagnostics",(function(){return OSF.HostName.Host.getInstance().getDiagnostics(OSF._OfficeAppFactory.getOfficeAppContext().get_hostFullVersion())})),OSF.definePropertyOnNamespace(t,"requirements",(function(){if(!n){var e=OSF._OfficeAppFactory.getOfficeAppContext();e&&(n=e.get_isDialog()?OSF.Requirement.RequirementsMatrixFactory.getDefaultDialogRequirementMatrix(e):OSF.Requirement.RequirementsMatrixFactory.getDefaultRequirementMatrix(e))}return n})),OSF.definePropertyOnNamespace(t,"officeTheme",(function(){var e=OSF._OfficeAppFactory.getOfficeAppContext().get_officeThemeFunc();return e?"function"==typeof e?e():e:void 0})),OSF.definePropertyOnNamespace(t,"webAuth",(function(){if(OSF.DDA.WebAuth)return OSF.DDA.WebAuth})),OSF.definePropertyOnNamespace(t,"auth",(function(){if(OSF.DDA.Auth)return OSF.DDA.Auth})),OSF.definePropertyOnNamespace(t,"license",(function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_eToken()})),OSF.definePropertyOnNamespace(t,"hostSettings",(function(){if(!o){var t=OSF._OfficeAppFactory.getOfficeAppContext().get_hostSettingsFunc();if(void 0!==t){var n=t(),r=OSF.OUtil.deserializeSettings(n);o=new e.Settings(r,void 0)}}return o}))}(e.context||(e.context={}))}(Office||(Office={})),function(e){!function(e){!function(e){e.refreshRibbon=function(e){OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[OSF._OfficeAppFactory.getWebAppState().id,OSF.AgaveHostAction.RefreshRibbonGallery,e])}}(e.ribbonGallery||(e.ribbonGallery={}))}(e.context||(e.context={}))}(Office||(Office={})),function(e){!function(e){!function(e){e.taskPaneAction||(e.taskPaneAction={})}(e.ui||(e.ui={}))}(e.context||(e.context={}))}(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(e){function t(){e._officeOnReadyState.officeOnReadyPromise||(e._officeOnReadyState.officeOnReadyPromise=new e.Promise((function(t,n){e._officeOnReadyState.officeOnReadyPromiseResolve=t})))}function n(n){return t(),n&&(e._officeOnReadyState.officeOnReadyFired?n(e._officeOnReadyState.officeOnReadyHostAndPlatformInfo):e._officeOnReadyState.officeOnReadyCallbacks.push(n)),e._officeOnReadyState.officeOnReadyPromise}e._officeOnReadyState=e._officeOnReadyState||{isOfficeOnReadyCalled:!1,officeOnReadyPromise:null,officeOnReadyPromiseResolve:null,officeOnReadyCallbacks:[],officeOnReadyHostAndPlatformInfo:null,officeOnReadyFired:!1},e.initialize=e.initialize,e.onReadyInternal=n,e.onReady=function(t){return e._officeOnReadyState.isOfficeOnReadyCalled=!0,n(t)},e.fireOnReady=function(n){for(t(),e._officeOnReadyState.officeOnReadyHostAndPlatformInfo=__assign({},n),e._officeOnReadyState.officeOnReadyFired=!0,OSFPerformance.officeOnReady=OSFPerformance.now();e._officeOnReadyState.officeOnReadyCallbacks.length>0;)e._officeOnReadyState.officeOnReadyCallbacks.shift()(e._officeOnReadyState.officeOnReadyHostAndPlatformInfo);e._officeOnReadyState.officeOnReadyPromiseResolve(e._officeOnReadyState.officeOnReadyHostAndPlatformInfo),e._officeOnReadyState.isOfficeOnReadyCalled||OSF.OUtil.waitForFunction((function(){return"function"==typeof e.initialize}),(function(t){t&&e.initialize(OSF._OfficeAppFactory.getOfficeAppContext().get_reason())}),400,50)}}(Office||(Office={})),function(e){var t=function(){function t(t,n,o,r,i,a,s,l,c,u,d,f,p,h,g,m,y,v,b,C,_,O,S,A,E,P,R,T,I,w,F,D,x){this._id=t,this._appName=n,this._appVersion=o,this._appUILocale=r,this._dataLocale=i,this._docUrl=a,this._clientMode=s,this._settingsFunc=l,this._reason=c,this._osfControlType=u,this._eToken=d,this._correlationId=f,this._appInstanceId=p,this._touchEnabled=h,this._commerceAllowed=g,this._appMinorVersion=m,this._requirementMatrix=y,this._hostCustomMessage=v,this._hostFullVersion=b,this._isDialog=e.OUtil.isDialog(),this._clientWindowHeight=C,this._clientWindowWidth=_,this._addinName=O,this._appDomains=S,this._dialogRequirementMatrix=A,this._featureGates=E,this._officeThemeFunc=P,this._initialDisplayMode=R,this._isFromWacAutomation=T,this._wopiHostOriginForSingleSignOn=I,this._hostSettingsFunc=w,this._isWeb=F,this._nestedAppAuthBridgeType=D,this._partitionKey=x}return 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}();e.OfficeAppContext=t}(OSF||(OSF={})),function(e){!function(t){t.retrieveHostInfo=function(){var t={isO15:!0,isRichClient:!0,hostType:"",hostPlatform:"",hostSpecificFileVersion:"",hostLocale:"",osfControlAppCorrelationId:"",isDialog:!1,disableLogging:!1,flags:0},n="_host_Info",o=null;try{if(window.external=window.external||{},"undefined"!=typeof agaveHost&&agaveHost.GetHostInfo&&(window.external.GetHostInfo=function(){return agaveHost.GetHostInfo()}),window.external.GetHostInfo){var r=window.external.GetHostInfo();if("isDialog"==r)t.isO15=!0,t.isDialog=!0;else{var i=r.split("_host_Info=");o=i.length>1?i[1]:r}}}catch(t){e.Utility.log(JSON.stringify(t))}if(!o)try{var a=window.name;if(a){var s=JSON.parse(a);o=s?s.hostInfo:null}}catch(t){e.Utility.log(JSON.stringify(t))}o||(o=e.Utility.getQueryStringValue(n));var l=e.OUtil.getSessionStorage();if(!o&&l.getItem("hostInfoValue")&&(o=l.getItem("hostInfoValue")),o){o=decodeURIComponent(o),t.isO15=!1;var c=o.split("$");void 0===c[2]&&(c=o.split("|")),t.hostType=void 0===c[0]?"":c[0].toLowerCase(),t.hostPlatform=void 0===c[1]?"":c[1].toLowerCase(),t.hostSpecificFileVersion=void 0===c[2]?"":c[2].toLowerCase(),t.hostLocale=void 0===c[3]?"":c[3].toLowerCase(),t.osfControlAppCorrelationId=void 0===c[4]?"":c[4],"telemetry"==t.osfControlAppCorrelationId&&(t.osfControlAppCorrelationId=""),t.isDialog=void 0!==c[5]&&"isDialog"==c[5],t.disableLogging=void 0!==c[6]&&"disableLogging"==c[6],t.flags="string"==typeof c[7]&&c[7].length>0?parseInt(c[7]):0,l.setItem("hostInfoValue",o)}else t.isO15=!0,t.hostLocale=e.Utility.getQueryStringValue("locale");return t}}(e._OfficeAppFactory||(e._OfficeAppFactory={}))}(OSF||(OSF={})),function(e){var t;!function(t){var n,o,r,i,a,s,l,c,u;"undefined"!=typeof window&&(window.location&&(n=window.location.hash,o=window.location.search),r=window.name);var d={0:"Unknown",1:"Hidden",2:"Taskpane",3:"Dialog"};function f(t,n){e.AppCommandManager.initialize();var o=t.get_appName(),r=null;0!=(i.flags&e.HostInfoFlags.SharedApp)&&(r={visibilityMode:d[t.get_initialDisplayMode()]}),Office.fireOnReady({host:e.HostName.Host.getInstance().getHost(o),platform:e.HostName.Host.getInstance().getPlatform(o),addin:r}),i.hostPlatform==e.HostInfoPlatform.web&&null!=a.clientEndPoint&&a.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[a.id,e.AgaveHostAction.OfficeJsReady,Date.now()]),n(t)}t.bootstrap=function(n,o){if(a={id:null,webAppUrl:null,conversationID:null,clientEndPoint:null,wnd:window.parent,focused:!1,serviceEndPoint:null},i=t.retrieveHostInfo(),function(){!0;try{if(i.disableLogging)return void!1;window.external=window.external||{},void 0===window.external.GetLoggingAllowed||window.external.GetLoggingAllowed()}catch(e){}}(),function(){if(i.hostPlatform===e.HostInfoPlatform.web)s=new e.WebInitializationHelper(i,a,null,null);else if(i.hostPlatform===e.HostInfoPlatform.win32)s=new e.RichClientInitializationHelper(i,a,null,null);else if(i.hostPlatform===e.HostInfoPlatform.ios||i.hostPlatform===e.HostInfoPlatform.mac){if(!(window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.Agave))throw e.Utility.createNotImplementedException();s=new e.WebkitInitializationHelper(i,a,null,null)}else i.hostPlatform===e.HostInfoPlatform.android||i.hostPlatform===e.HostInfoPlatform.winrt?s=new e.WebViewInitializationHelper(i,a,null,null):console.warn("Office.js is loaded inside in unknown host or platform "+i.hostPlatform)}(),s){i.hostPlatform===e.HostInfoPlatform.web&&s.saveAndSetDialogInfo(e.Utility.getQueryStringValue("_host_Info")),s.setAgaveHostCommunication(),OSFPerformance.getAppContextStart=OSFPerformance.now();s.getAppContext(window,(function(t){OSFPerformance.getAppContextEnd=OSFPerformance.now(),e.AppTelemetry.initialize(t),c=t,u=s.createClientHostController(),l=s.createAsyncMethodExecutor(),s.prepareApiSurface(t),e.BootStrapExtension.onGetAppContext?e.BootStrapExtension.onGetAppContext(t,a.wnd).then((function(){f(t,n)})):f(t,n)}),(function(e){o(e)}))}else o(new Error("Office.js cannot be initialized."))},t.getWindowName=function(){return r},t.getWindowLocationHash=function(){return n},t.getWindowLocationSearch=function(){return o},t.getAsyncMethodExecutor=function(){return l},t.getOfficeAppContext=function(){return c},t.getHostInfo=function(){return i},t.getCachedSessionSettingsKey=function(){return(null!=a.conversationID?a.conversationID:c.get_appInstanceId())+"CachedSessionSettings"},t.getWebAppState=function(){return a},t.getId=function(){return a.id},t.getInitializationHelper=function(){return s},t.getClientHostController=function(){return u}}(t=e._OfficeAppFactory||(e._OfficeAppFactory={})),e.getClientEndPoint=function(){return t.getWebAppState().clientEndPoint}}(OSF||(OSF={})),function(e){!function(e){e.Succeeded="succeeded",e.Failed="failed"}(e.AsyncResultStatus||(e.AsyncResultStatus={})),function(e){e.ReadOnly="readOnly",e.ReadWrite="readWrite"}(e.DocumentMode||(e.DocumentMode={})),function(e){e.Word="Word",e.Excel="Excel",e.PowerPoint="PowerPoint",e.Outlook="Outlook",e.OneNote="OneNote",e.Project="Project",e.Access="Access",e.Visio="Visio"}(e.HostType||(e.HostType={})),function(e){e.Inserted="inserted",e.DocumentOpened="documentOpened"}(e.InitializationReason||(e.InitializationReason={})),function(e){e.PC="PC",e.OfficeOnline="OfficeOnline",e.Mac="Mac",e.iOS="iOS",e.Android="Android",e.Universal="Universal"}(e.PlatformType||(e.PlatformType={})),function(e){e.Binding="binding",e.NamedItem="namedItem",e.Slide="slide",e.Index="index"}(e.GoToType||(e.GoToType={})),function(e){e.Default="default",e.Selected="selected",e.None="none"}(e.SelectionMode||(e.SelectionMode={})),function(e){e.Unformatted="unformatted",e.Formatted="formatted"}(e.ValueFormat||(e.ValueFormat={})),function(e){e.Text="text",e.Compressed="compressed",e.Pdf="pdf"}(e.FileType||(e.FileType={})),e.CoercionType={Html:"html",Matrix:"matrix",Ooxml:"ooxml",OoxmlPackage:"ooxmlPackage",PdfFile:"pdfFile",SlideRange:"slideRange",Table:"table",Text:"text"},function(e){e.Table="table",e.Text="text",e.Matrix="matrix"}(e.BindingType||(e.BindingType={})),function(e){e.OnlyVisible="onlyVisible",e.All="all"}(e.FilterType||(e.FilterType={})),function(e){e[e.All=0]="All",e[e.Data=1]="Data",e[e.Headers=2]="Headers"}(e.Table||(e.Table={})),function(e){e.Read="read",e.Edit="edit"}(e.ActiveView||(e.ActiveView={}))}(Office||(Office={}));var OSFPerfUtil,__extends=this&&this.__extends||function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();!function(e){e.appSpecificCheckOrigin=function(e,t,n,o){return!1}}(OfficeExt||(OfficeExt={})),function(e){var t=function(){function e(e,t,n){this._method=e,this._invokeType=t,this._blockingOthers=n}return e.prototype.getMethod=function(){return this._method},e.prototype.getInvokeType=function(){return this._invokeType},e.prototype.getBlockingFlag=function(){return this._blockingOthers},e}();e.XdmMethodObject=t;var n=function(){function e(e,t){this._registerMethodObject=e,this._unregisterMethodObject=t}return e.prototype.getRegisterMethodObject=function(){return this._registerMethodObject},e.prototype.getUnregisterMethodObject=function(){return this._unregisterMethodObject},e}();e.XdmEventMethodObject=n;var o=function(){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}return o.prototype.registerMethod=function(n,o,r,i){if(0!==r&&1!==r)throw e.Utility.createArgumentException("invokeType");var a=new t(o,r,i);this._methodObjectList[n]=a},o.prototype.unregisterMethod=function(e){delete this._methodObjectList[e]},o.prototype.registerEvent=function(e,o,r){var i=new n(new t(o,4,!1),new t(r,5,!1));this._methodObjectList[e]=i},o.prototype.registerEventEx=function(e,o,r,i,a){var s=new n(new t(o,r,!1),new t(i,a,!1));this._methodObjectList[e]=s},o.prototype.unregisterEvent=function(e){this.unregisterMethod(e)},o.prototype.registerConversation=function(t,n,o){if(e.Utility.xdmDebugLog("registerConversation: cId="+t+" Url="+n),o){if(!Array.isArray(o))throw e.Utility.createArgumentException("appDomains");this._appDomains[t]=o}this._conversations[t]={url:n}},o.prototype.unregisterConversation=function(e){delete this._conversations[e]},o.prototype.setPolicyManager=function(t){if(!t.checkPermission)throw e.Utility.createArgumentException("policyManager");this._policyManager=t},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}();e.XdmServiceEndPoint=o;var r,i=function(){function e(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}return Object.defineProperty(e.prototype,"targetUrl",{get:function(){return this._targetUrl},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTrustCheckStatus",{get:function(){return this._hostTrustCheckStatus},set:function(e){this._hostTrustCheckStatus=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fHostTrusted",{get:function(){return this._fHostTrusted},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checkStatusLogged",{get:function(){return this._checkStatusLogged},set:function(e){this._checkStatusLogged=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checkReceiverOriginAndRun",{get:function(){return this._checkReceiverOriginAndRun},set:function(e){this._checkReceiverOriginAndRun=e},enumerable:!0,configurable:!0}),e.prototype.invoke=function(e,t,n){var o=this,i=function(){var i=o._callingIndex++,a=new Date,l={callback:t,createdOn:a.getTime()};n&&"object"==typeof n&&"number"==typeof n.__timeout__&&(l.timeout=n.__timeout__,delete n.__timeout__),o._callbackList[i]=l;try{if(3!==o._hostTrustCheckStatus&&"ContextActivationManager_getAppContextAsync"!==e)throw"Access Denied";var u=new s(e,0,o._conversationId,i,n),d=c.envelope(u);o._targetWindow.postMessage(d,o._targetUrl),r._startMethodTimeoutTimer()}catch(e){try{null!==t&&t(-1,e)}finally{delete o._callbackList[i]}}};this._checkReceiverOriginAndRun?this._checkReceiverOriginAndRun(i):(this._hostTrustCheckStatus=3,i())},e.prototype.registerForEvent=function(e,t,n,o){var i=this._callingIndex++,a=new Date;this._callbackList[i]={callback:n,createdOn:a.getTime()};try{var l=new s(e,1,this._conversationId,i,o),u=c.envelope(l);this._targetWindow.postMessage(u,this._targetUrl),r._startMethodTimeoutTimer(),this._eventHandlerList[e]=t}catch(e){try{null!==n&&n(-1,e)}finally{delete this._callbackList[i]}}},e.prototype.unregisterForEvent=function(e,t,n){var o=this._callingIndex++,i=new Date;this._callbackList[o]={callback:t,createdOn:i.getTime()};try{var a=new s(e,2,this._conversationId,o,n),l=c.envelope(a);this._targetWindow.postMessage(l,this._targetUrl),r._startMethodTimeoutTimer()}catch(e){try{null!==t&&t(-1,e)}finally{delete this._callbackList[o]}}finally{delete this._eventHandlerList[e]}},e}();e.XdmClientEndPoint=i,function(t){var n=[],r=null,a=null,s=!1,u={},p={},h=!1;function g(){null!==a?s||(n.length>0?m(n.shift()):(clearInterval(a),a=null)):e.Utility.xdmDebugLog("channel is not ready.")}function m(e){s=e.getInvokeBlockingFlag(),e.invoke(),r=(new Date).getTime()}function y(){s=!1}function v(t,n){var o=!1;if(!(n&&"null"!==n&&n.length&&t&&t instanceof Array&&t.length))return o;for(var r=0;r<t.length&&!o;r++)if(-1!==t[r].indexOf("://")){var i=e.OUtil.parseUrl(n,!0);o=_(e.OUtil.parseUrl(t[r],!0),i)}return o}function b(t){if(!t||"null"===t)return!1;var n=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===e.OUtil.getCustomOfficeInitializationSettings().trustAllCloudEnvironments&&n.push("^partner\\.outlook\\.cn$","^.*\\.partner\\.officewebapps\\.cn$"),new RegExp(n.join("|")).test(t)}function C(t,n){if(!t||!n||"null"===t||"null"===n)return!1;var o=e.OUtil.parseUrl(t,!0),r=e.OUtil.parseUrl(n,!0);if(null==o||null==r)return!1;var i=o.protocol===r.protocol,a=o.port===r.port,s=r.hostname,l=o.hostname,c=s===l,u=!1;return!c&&s.length>l.length+1&&(u=s.slice(-(l.length+1))==="."+l),a&&i&&(c||u)}function _(e,t){return e.hostname==t.hostname&&e.protocol==t.protocol&&e.port==t.port}function O(t){if(""!=t.data){var o,i=t.data;try{o=c.unenvelope(i)}catch(e){return}if(e.Utility.xdmDebugLog(i),0===o._messageType){var h=null==t.origin||"null"===t.origin?o._origin:t.origin;try{var O=function(t){for(var n in u)if(u[n]._conversations[t])return u[n];throw e.Utility.createArgumentException("conversationId")}(o._conversationId);e.Utility.xdmDebugLog("_receive: request, origin="+h+" sourceURL:"+O._conversations[o._conversationId]);var S=O._conversations[o._conversationId];e.Utility.xdmDebugLog("_receive: request, origin="+h+" sourceURL:"+S.url);var A=[S.url].concat(O._appDomains[o._conversationId]);if(!v(A,t.origin))if(!OfficeExt.appSpecificCheckOrigin(A,t,o._origin,v))if(!C(S.url,t.origin))throw"Failed origin check";var E=O.getPolicyManager();if(E&&!E.checkPermission(o._conversationId,o._actionName,o._data))throw"Access Denied";var P=function(t,n){var o=t._methodObjectList[n._actionName];if(!o)throw e.Utility.xdmDebugLog("The specified method is not registered on service endpoint:"+n._actionName),e.Utility.createArgumentException("messageObject");return 0===n._actionType?o:1===n._actionType?o.getRegisterMethodObject():o.getUnregisterMethodObject()}(O,o),R=new d(t.source,h,o._actionName,o._conversationId,o._correlationId,y),T=new f(P,o._data,R,O._eventHandlerProxyList,o._conversationId,o._actionName),I=!0;null==a&&((null==r||(new Date).getTime()-r>10)&&!s?(m(T),I=!1):a=setInterval(g,10)),I&&function(e){n.push(e)}(T)}catch(n){O&&O._onHandleRequestError&&O._onHandleRequestError(o,n);var w=-2;"Access Denied"==n&&(w=-5);var F=new l(o._actionName,o._conversationId,o._correlationId,w,0,n),D=c.envelope(F),x=!1;try{x=!(!t.source||!t.source.postMessage)}catch(e){}var k=!1;if(window.location.href&&t.origin&&"null"!==t.origin&&C(window.location.href,t.origin))k=!0;else if(t.origin&&"null"!==t.origin)k=b(e.OUtil.parseUrl(t.origin,!0).hostname);x&&k&&t.source.postMessage(D,h)}}else{if(1!==o._messageType)return;var N=function(t){var n=p[t];return n||e.Utility.xdmDebugLog("Unknown conversation Id."),n}(o._conversationId);if(!N)return;if(e.Utility.xdmDebugLog("_receive: response, origin="+t.origin+" targetURL:"+N._targetUrl),U=N._targetUrl,j=t.origin,!(U&&j&&"null"!==U&&"null"!==j&&U.length&&j.length&&_(e.OUtil.parseUrl(U,!0),e.OUtil.parseUrl(j,!0))))throw"Failed orgin check";if(3==N._hostTrustCheckStatus&&(N._fHostTrusted=!0),0===o._responseType){var M=N._callbackList[o._correlationId];if(M)try{M.callback&&M.callback(o._errorCode,o._data)}finally{delete N._callbackList[o._correlationId]}}else{var H=N._eventHandlerList[o._actionName];null!=H&&H(o._data)}}}var U,j}function S(){h||(!function(t){if(window.addEventListener)window.addEventListener("message",t,!1);else{if(!(navigator.userAgent.indexOf("MSIE")>-1&&window.attachEvent))throw e.Utility.xdmDebugLog("Browser doesn't support the required API."),e.Utility.createArgumentException("Browser");window.attachEvent("onmessage",t)}}(O),h=!0)}t.connect=function(e,t,n){var o=p[e];return o||(S(),o=new i(e,t,n),p[e]=o),o},t.getClientEndPoint=function(e){return p[e]},t.createServiceEndPoint=function(e){S();var t=new o(e);return u[e]=t,t},t.getServiceEndPoint=function(e){return u[e]},t.deleteClientEndPoint=function(e){delete p[e]},t.deleteServiceEndPoint=function(e){delete u[e]},t.checkUrlWithAppDomains=function(e,t){return v(e,t)},t.isTargetSubdomainOfSourceLocation=function(e,t){return C(e,t)},t._setMethodTimeout=function(e){e<=0?65e3:e},t._startMethodTimeoutTimer=function(){},t.isHostNameValidWacDomain=function(e){return b(e)}}(r=e.XdmCommunicationManager||(e.XdmCommunicationManager={}));var a=function(){function e(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}return e.prototype.getActionName=function(){return this._actionName},e.prototype.getConversationId=function(){return this._conversationId},e.prototype.getCorrelationId=function(){return this._correlationId},e.prototype.getOrigin=function(){return this._origin},e.prototype.getData=function(){return this._data},e.prototype.getMessageType=function(){return this._messageType},e}(),s=function(e){function t(t,n,o,r,i){var a=e.call(this,0,t,o,r,i)||this;return a._actionType=n,a}return __extends(t,e),t.prototype.getActionType=function(){return this._actionType},t}(a),l=function(e){function t(t,n,o,r,i,a){var s=e.call(this,1,t,n,o,a)||this;return s._errorCode=r,s._responseType=i,s}return __extends(t,e),t.prototype.getErrorCode=function(){return this._errorCode},t.prototype.getResponseType=function(){return this._responseType},t}(a),c=function(){function e(){}return e.envelope=function(e){return JSON.stringify(e)},e.unenvelope=function(e){return JSON.parse(e)},e}(),u=function(){function t(t,n,o,r,i,a){var s=this;this._invokeResultCode=0,this._requesterWindow=t,this._requesterUrl=n,this._actionName=o,this._conversationId=r,this._correlationId=i,this._invokeResultCode=0,this._responseType=a,this._send=function(t){try{var n=new l(s._actionName,s._conversationId,s._correlationId,s._invokeResultCode,s._responseType,t),o=c.envelope(n);s._requesterWindow.postMessage(o,s._requesterUrl),e.Utility.xdmDebugLog("_send: requestUrl="+s._requesterUrl+" _actionName:"+s._actionName)}catch(t){e.Utility.xdmDebugLog("ResponseSender._send error:"+t.message)}}}return t.prototype.getRequesterWindow=function(){return this._requesterWindow},t.prototype.getRequesterUrl=function(){return this._requesterUrl},t.prototype.getActionName=function(){return this._actionName},t.prototype.getConversationId=function(){return this._conversationId},t.prototype.getCorrelationId=function(){return this._correlationId},t.prototype.getSend=function(){return this._send},t.prototype.setResultCode=function(e){this._invokeResultCode=e},t}(),d=function(t){function n(n,o,r,i,a,s){var u=t.call(this,n,o,r,i,a,0)||this;return u._postCallbackHandler=s,u._send=function(t,n){null!=n&&(u._invokeResultCode=n);try{var o=new l(u._actionName,u._conversationId,u._correlationId,u._invokeResultCode,u._responseType,t),r=c.envelope(o);u._requesterWindow.postMessage(r,u._requesterUrl),u._postCallbackHandler()}catch(t){e.Utility.xdmDebugLog("InvokeCompleteCallback._send error:"+t.message)}},u}return __extends(n,t),n}(u),f=function(){function e(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}return e.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)}},e.prototype.getInvokeBlockingFlag=function(){return this._methodObject.getBlockingFlag()},e.prototype._createEventHandlerProxyObject=function(e){return new u(e.getRequesterWindow(),e.getRequesterUrl(),e.getActionName(),e.getConversationId(),e.getCorrelationId(),1)},e}()}(OSF||(OSF={})),function(e){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)]:[]}e.sendPerformanceTelemetry=function(){if(OSF.AppTelemetry.enableTelemetry&&"undefined"!=typeof performance&&performance.getEntriesByType){var e,n,o=OSF.LoadScriptHelper.getHostBundleJsName().toLowerCase();performance.getEntriesByType("resource").forEach((function(t){var r=t.name.toLowerCase();OSF.Utility.stringEndsWith(r,o)?e=t:(OSF.Utility.stringEndsWith(r,OSF.ConstantNames.OfficeDebugJS)||OSF.Utility.stringEndsWith(r,OSF.ConstantNames.OfficeJS))&&(n=t)})),OTel.OTelLogger.onTelemetryLoaded((function(){var o=[];e&&(o=o.concat(t(e,"HostJs"))),n&&(o=o.concat(t(n,"OfficeJs"))),o=o.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:o,eventFlags:{dataCategories:2,diagnosticLevel:110}})}))}}}(OSFPerfUtil||(OSFPerfUtil={})),function(e){!function(t){var n,o,r={};!function(e){var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];e.generateNewGuid=function(){for(var e="",n=(new Date).getTime(),o=0;o<32&&n>0;o++)8!=o&&12!=o&&16!=o&&20!=o||(e+="-"),e+=t[n%16],n=Math.floor(n/16);for(;o<32;o++)8!=o&&12!=o&&16!=o&&20!=o||(e+="-"),e+=t[Math.floor(16*Math.random())];return e}}(t.Guid||(t.Guid={})),t.loadScript=function(e,t,n,o){if(e&&t){var i=window.document,a=r[e];if(a)a.loaded?t(!0):a.pendingCallbacks.push(t);else{var s=i.createElement("script");s.type="text/javascript",a={loaded:!1,pendingCallbacks:[t],timer:null},r[e]=a;var l=function(){null!=a.timer&&(clearTimeout(a.timer),delete a.timer),a.loaded=!0;for(var e=a.pendingCallbacks.length,t=0;t<e;t++){a.pendingCallbacks.shift()(!0)}},c=function(){delete r[e],null!=a.timer&&(clearTimeout(a.timer),delete a.timer);for(var t=a.pendingCallbacks.length,n=0;n<t;n++){a.pendingCallbacks.shift()(!1)}};s.readyState?s.onreadystatechange=function(){"loaded"!=s.readyState&&"complete"!=s.readyState||(s.onreadystatechange=null,l())}:s.onload=l,s.onerror=c,o=o||3e4,a.timer=setTimeout(c,o),s.setAttribute("crossOrigin","anonymous"),s.src=n?n.createScriptURL(e):e,i.getElementsByTagName("head")[0].appendChild(s)}}},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):i>0?(r=window.setTimeout(a,o),i--):(window.clearTimeout(r),t(!1))};a()}}(e.OUtil||(e.OUtil={}))}(OSF||(OSF={})),function(e){e.Flights=[],e.DisabledChangeGates=[];e.FlightTreatmentNames={EnableMsal3SsoApi:"Microsoft.Office.SharedOnline.EnableMsal3SsoApi"},function(t){var n="&_flights=",o="&_disabledChangeGates=",r="_flights=",i="_disabledChangeGates=";function a(e,t){return e.substr(0,t.length)===t}function s(e,t,n,o){return a(e,t+"//"+n+":"+o)||a(e,n+":"+o)}t.isArray=function(e){return"[object Array]"===Object.prototype.toString.apply(e)},t.isFunction=function(e){return"[object Function]"===Object.prototype.toString.apply(e)},t.isDate=function(e){return"[object Date]"===Object.prototype.toString.apply(e)},t.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)}},t.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)}};var l="Date(";function c(e){var t=[];try{t=JSON.parse(e)}catch(e){}return Array.isArray(t)||(t=[]),t}function u(e,n,o){try{var r=JSON.parse(n),i=null!=r?r[o]:null,a=t.getSessionStorage();if(!e&&a&&null!=r){var s=r.baseFrameName+o;i?a.setItem(s,i):i=a.getItem(s)}return i}catch(e){return null}}function d(e,n,o,r,i){var a=i.split(e),s=a.length>1?a[a.length-1]:null;o&&null!=s&&(s.indexOf("&")>=0&&(s=s.split("&")[0]),s=decodeURIComponent(s));var l=t.getSessionStorage();if(!r&&l){var c=window.name.indexOf(n);if(c>-1){var u=window.name.indexOf(";",c);-1==u&&(u=window.name.length);var d=window.name.substring(c,u);s?l.setItem(d,s):s=l.getItem(d)}}return s}function f(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 p(e){if(e=f(e,"/"),e=f(e,"?"),"https://"==(e=f(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 h(e){var t,n,o=[],r=[],i=e.length;for(t=0;t<i;t++)(n=e[t]).tabIndex?n.tabIndex>0?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)}t.serializeSettings=function(t){var n={};for(var o in t){var r=t[o];try{r=JSON.stringify(r,(function(t,n){return e.OUtil.isDate(this[t])?l+this[t].getTime()+")":n})),n[o]=r}catch(e){}}return n},t.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&&t.length>6&&t.slice(0,5)===l&&")"===t.slice(-1)&&(n=new Date(parseInt(t.slice(5,-1))))?n:t})),t[n]=o}catch(e){}}return t},t.convertIntToCssHexColor=function(e){return"#"+(Number(e)+16777216).toString(16).slice(-6)},t.parseAppContextFromWindowName=function(e,n){return t.parseInfoFromWindowName(e,n,"appContext")},t.parseHostInfoFromWindowName=function(t,n){return e.OUtil.parseInfoFromWindowName(t,n,"hostInfo")},t.parseXdmInfo=function(e){var n=t.parseXdmInfoWithGivenFragment(e,window.location.hash);return n||(n=t.parseXdmInfoFromWindowName(e,window.name)),n},t.parseXdmInfoFromWindowName=function(t,n){return e.OUtil.parseInfoFromWindowName(t,n,"xdmInfo")},t.parseXdmInfoWithGivenFragment=function(t,n){return e.OUtil.parseInfoWithGivenFragment("&_xdm_Info=","_xdm_",!1,t,n)},t.parseFlights=function(e){var t=function(e,t){return c(d(n,r,!0,e,t))}(e,window.location.hash);return 0==t.length&&(t=function(e,t){return c(u(e,t,"flights"))}(e,window.name)),t},t.parseDisabledChangeGates=function(e){var t=function(e,t){return c(d(o,i,!0,e,t))}(e,window.location.hash);return 0==t.length&&(t=function(e,t){return c(u(e,t,"disabledChangeGates"))}(e,window.name)),t},t.checkFlight=function(t){return e.Flights&&e.Flights.indexOf(t)>=0},t.isChangeGateEnabled=function(t){return!e.DisabledChangeGates||-1===e.DisabledChangeGates.indexOf(t)},t.parseInfoFromWindowName=u,t.parseInfoWithGivenFragment=d,t.getConversationId=function(){var e=window.location.search,t=null;if(e){var n=e.indexOf("&");(t=n>0?e.substring(1,n):e.substr(1))&&"="===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1))&&(t=decodeURIComponent(t))}return t},t.getInfoItems=function(e){var t=e.split("$");return void 0===t[1]&&(t=e.split("|")),void 0===t[1]&&(t=e.split("%7C")),t},t.getXdmFieldValue=function(t,n){var o="",r=e.OUtil.parseXdmInfo(n);if(r){var i=e.OUtil.getInfoItems(r);if(null!=i&&i.length>=3)switch(t){case"ConversationUrl":o=i[2];break;case"AppId":o=i[1]}}return o},t.parseUrl=function(t,n){if(void 0===n&&(n=!1),void 0!==t&&t){var o="NotHttps",r="undefined"!=typeof window&&void 0!==window.navigator&&window.navigator.userAgent.indexOf("Trident")>0,i=("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(r){var a=document.createElement("a");if(a.href=t,!(a&&a.protocol&&a.host&&a.hostname&&a.href&&p(a.href).toLowerCase()===p(t).toLowerCase()))throw"InvalidUrl";if(e.OUtil.checkFlight(2)&&n&&"https:"!=a.protocol)throw new Error(o);var l=function(e,t){return e&&t?"https:"==t.protocol&&s(e,"https:",t.hostname,"443")?":443":"http:"==t.protocol&&s(e,"http:",t.hostname,"80")?":80":"":""}(t,a);i.protocol=a.protocol,i.hostname=a.hostname,i.port=""==l?a.port:"",i.host=""!=l?a.hostname:a.host,i.pathname=(r?"/":"")+a.pathname,i.search=a.search,i.hash=a.hash,i.isPortPartOfUrl=s(t,a.protocol,a.hostname,a.port)}else{var c=new URL(t);if(c&&c.protocol&&c.host&&c.hostname){if(e.OUtil.checkFlight(2)&&n&&"https:"!=c.protocol)throw new Error(o);i.protocol=c.protocol,i.hostname=c.hostname,i.port=c.port,i.host=c.host,i.pathname=c.pathname,i.search=c.search,i.hash=c.hash,i.isPortPartOfUrl=c.host.lastIndexOf(":"+c.port)==c.host.length-c.port.length-1}}}catch(e){if(e.message===o)throw e}return i}},t.focusToFirstTabbable=function(e,t){var n,o,r=!1,i=function(e){r=!0},a=function(e,t,n){return t<0||t>e||0===t&&n?-1:t!==e-1||n?n?t-1:t+1:-1};if(e=h(e),n=t?e.length-1:0,0===e.length)return null;for(;!r&&n>=0&&n<e.length;)o=e[n],window.focus(),o.addEventListener("focus",i),o.focus(),o.removeEventListener("focus",i),n=a(e.length,n,t),r||o!==document.activeElement||(r=!0);return r?o:null},t.focusToNextTabbable=function(e,t,n){var o,r,i,a=!1,s=function(e){a=!0},l=function(e,t,n){return t<0||t>e||0===t&&n?-1:t!==e-1||n?n?t-1:t+1:-1};if(o=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}(e=h(e),t),(r=l(e.length,o,n))<0)return null;for(;!a&&r>=0&&r<e.length;)(i=e[r]).addEventListener("focus",s),i.focus(),i.removeEventListener("focus",s),r=l(e.length,r,n),a||i!==document.activeElement||(a=!0);return a?i:null},t.defineMethodOnNamespace=function(e,t,n){e[t]=n},t.isDialog=function(){return e._OfficeAppFactory.getHostInfo().isDialog},t.isPopupWindow=function(){return e.OUtil.isDialog()&&e._OfficeAppFactory.getHostInfo().hostPlatform==e.HostInfoPlatform.web&&null!=window.opener},t.getHostPlatform=function(){return e._OfficeAppFactory.getHostInfo().hostPlatform},t.getCustomOfficeInitializationSettings=function(){return"object"==typeof officeInitializationSettings?officeInitializationSettings:{}};var g=0;t.getLibraryReleaseVehicle=function(){return g},t.setLibraryReleaseVehicle=function(e){g=e}}(e.OUtil||(e.OUtil={}))}(OSF||(OSF={})),function(e){!function(e){e.Callback="callback",e.AsyncContext="asyncContext",e.Data="data",e.MessageToParent="messageToParent",e.MessageContent="messageContent",e.MessageOrigin="messageOrigin",e.TargetOrigin="targetOrigin",e.AppCommandInvocationCompletedData="appCommandInvocationCompletedData"}(e.ParameterNames||(e.ParameterNames={}))}(OSF||(OSF={})),function(e){!function(t){var n=function(){};t.RequirementVersion=n;var o=function(){function e(e){this._setMap=e}return e.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(r.major>0&&r.major>i.major)return!0;if(r.major>0&&r.minor>=0&&r.major==i.major&&r.minor>=i.minor)return!0}catch(e){return!1}}return!1},e.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]),t.length>=2&&(o=Number(t[1])),isNaN(n)||isNaN(o))throw"version format incorrect";return{minor:o,major:n}},e}();t.RequirementMatrix=o;var r=function(){function e(e){this._sets=e}return e.prototype._addSetMap=function(e){for(var t in e)this._sets[t]=e[t]},e}();t.DefaultSetRequirement=r;var i=function(e){function t(){return e.call(this,{dialogapi:1.1})||this}return __extends(t,e),t}(r);t.DefaultRequiredDialogSetRequirement=i;var a=function(e){function t(){return e.call(this,{dialogorigin:1.1})||this}return __extends(t,e),t}(r);t.DefaultOptionalDialogSetRequirement=a;var s=function(){function t(){}return t.getDefaultRequirementMatrix=function(t){var n=void 0,i=t.get_requirementMatrix();if(null!=i&&i.length>0){var a=JSON.parse(t.get_requirementMatrix().toLowerCase());if(e._OfficeAppFactory.getHostInfo().hostPlatform==e.HostInfoPlatform.web)try{var s="dialogorigin";a.hasOwnProperty(s)||(a[s]=1.1)}catch(e){}n=new o(new r(a))}else n=new o(new r({}));return n},t.getDefaultDialogRequirementMatrix=function(t){var n=void 0,s=t.get_dialogRequirementMatrix();if(null!=s&&s.length>0){var l=JSON.parse(t.get_requirementMatrix().toLowerCase());n=new r(l)}else{n=new i;var c=t.get_requirementMatrix();if(null!=c&&c.length>0&&"undefined"!=typeof JSON){l=JSON.parse(c.toLowerCase());for(var u in n._sets)l.hasOwnProperty(u)&&(n._sets[u]=l[u]);var d=new a;for(var u in d._sets)l.hasOwnProperty(u)&&(n._sets[u]=l[u])}}if(e._OfficeAppFactory.getHostInfo().hostPlatform==e.HostInfoPlatform.web)try{var f="dialogorigin";!n._sets.hasOwnProperty(f)&&window.opener&&(n._sets[f]=1.1)}catch(e){}return new o(n)},t}();t.RequirementsMatrixFactory=s}(e.Requirement||(e.Requirement={}))}(OSF||(OSF={})),function(e){!function(t){!function(t){var n;t.executeRichApiRequestAsync=function(t,n){var o={toSafeArrayHost:function(){return[t]},fromSafeArrayHost:function(e){return{data:e}},toWebHost:function(){return{ArrayData:t}},fromWebHost:function(e){return{data:e.Data}}};e._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(93,o,n)},Object.defineProperty(t,"richApiMessageManager",{get:function(){return n||(n=new e.RichApiMessageManager),n}})}(t.RichApi||(t.RichApi={}))}(e.DDA||(e.DDA={}))}(OSF||(OSF={})),function(e){var t=function(){function t(){this._registerHandlers=[],this._eventDispatch=new e.EventDispatch([{type:e.EventType.RichApiMessage,id:e.EventDispId.dispidRichApiMessageEvent,getTargetId:function(){return""},fromSafeArrayHost:function(e){var n=e;return t.transferEventArgument(n)},fromWebHost:function(e){var n=e.ArrayData;return t.transferEventArgument(n)}}])}return t.transferEventArgument=function(t){var n=[];if(t)for(var o=0;o<t.length;o++){var r=t[o];r.toArray&&(r=r.toArray()),n.push({messageCategory:r[0],messageType:r[1],targetId:r[2],message:r[3],id:r[4],isRemoteOverride:r[5]})}return{type:e.EventType.RichApiMessage,entries:n}},t.prototype.addHandlerAsync=function(t,n,o){e.EventHelper.addEventHandler(t,n,o,this._eventDispatch)},t.prototype.removeHandlerAsync=function(t,n,o){e.EventHelper.removeEventHandler(t,n,o,this._eventDispatch)},t.prototype.register=function(t){var n=this;return this._registerPromise||(this._registerPromise=new Office.Promise((function(t,o){n.addHandlerAsync(e.EventType.RichApiMessage,(function(e){n._registerHandlers.forEach((function(t){t&&t(e)}))}),(function(e){"failed"==e.status?o(e.error):t()}))}))),this._registerPromise.then((function(){n._registerHandlers.push(t)}))},t}();e.RichApiMessageManager=t}(OSF||(OSF={})),function(e){var t=function(){function t(){}return 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(t){throw e.Utility.createNotImplementedException()},t.prototype.resizeSdxDialog=function(t,n){throw e.Utility.createNotImplementedException()},t}();e.RichClientHostController=t}(OSF||(OSF={})),function(e){var t=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.officeThemeTimeStamp=null,e.officeTheme=null,e}return __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."),e.Utility.trace(t),null;this._osfControlContext=window.external.GetContext()}catch(n){return console.error("Error when call window.external.GetContext() :"+JSON.stringify(n)),e.Utility.trace(t),null}}return this._osfControlContext},n.prototype.getAppContext=function(t,n,o){var r=this,i=this.getOsfControlContext();if(i){var a,s,l,c,u,d,f,p,h,g,m,y,v,b,C,_,O,S,A,E,P,R,T,I,w,F,D=0,x=!1;if((k=e.Utility.externalNativeFunctionExists)(typeof i.GetContextDataInJson))if("undefined"!=typeof OsfOMToken&&OsfOMToken)if((w=i.GetContextDataInJson(OsfOMToken))&&(F=JSON.parse(w)),F)a=F.appType,s=F.solutionRef,l=F.versionMajor,c=F.versionMinor,u=F.uiLocale,d=F.dataLocale,f=F.docUrl,p=F.clientMode,h=F.activationMode,m=F.controlType,y=F.eToken,v=F.correlationId,b=F.appInstanceId,C=F.touchEnabled,_=i.commerceAllowed,O=F.requirementMatrix,A=F.hostFullVersion,E=F.requirementMatrix,(N=F.featureGates)&&(P=JSON.parse(N)),D=F.initialDisplayMode,R=function(){var t={};if(F.settings)try{var n=JSON.parse(F.settings);if(n)for(var o=[n.names,n.values],r=o[0],i=o[1],a=0;a<r.length;a++)t[r[a]]=i[a]}catch(t){e.Utility.trace("Exception while parsing settings. Details: "+t)}return t},T=function(){var e=F.themeInfo;return r.getOfficeThemeFromInfoString(e)};else x=!0;else x=!0;else x=!0;if(x){a=i.GetAppType(),s=i.GetSolutionRef(),l=i.GetAppVersionMajor(),c=i.GetAppVersionMinor(),u=i.GetAppUILocale(),d=i.GetAppDataLocale(),f=i.GetDocUrl(),p=i.GetAppCapabilities(),h=i.GetActivationMode(),m=i.GetControlIntegrationLevel();try{y=i.GetSolutionToken()}catch(e){}var k;if((k=e.Utility.externalNativeFunctionExists)(typeof i.GetCorrelationId)&&(v=i.GetCorrelationId()),k(typeof i.GetInstanceId)&&(b=i.GetInstanceId()),k(typeof i.GetTouchEnabled)&&(C=i.GetTouchEnabled()),k(typeof i.GetCommerceAllowed)&&(_=i.GetCommerceAllowed()),k(typeof i.GetSupportedMatrix)&&(O=i.GetSupportedMatrix()),k(typeof i.GetHostCustomMessage)&&(S=i.GetHostCustomMessage()),k(typeof i.GetHostFullVersion)&&(A=i.GetHostFullVersion()),k(typeof i.GetDialogRequirementMatrix)&&(E=i.GetDialogRequirementMatrix()),k(typeof i.GetFeaturesForSolution))try{var N;(N=i.GetFeaturesForSolution())&&(P=JSON.parse(N))}catch(t){e.Utility.trace("Exception while creating the SDX FeatureGates object. Details: "+t)}k(typeof i.GetInitialDisplayMode)&&(D=i.GetInitialDisplayMode()),R=function(){return r.getSerializedSettings()},T=function(){return r.getOfficeTheme()},I=function(){return r.getSerializedHostSettings()}}g=2===h?Office.InitializationReason.DocumentOpened:Office.InitializationReason.Inserted,y=y?y.toString():"",n(new e.OfficeAppContext(s,a,l,u,d,f,p,R,g,m,y,v,b,C,_,c,O,S,A,void 0,void 0,void 0,void 0,E,P,T,D,void 0,void 0,I,!1,void 0,void 0))}else o(new Error("The Office.js is loaded outside of Office client"))},n.prototype.createClientHostController=function(){if(!this._clientHostController){if(this._hostInfo.hostPlatform!==e.HostInfoPlatform.win32)throw e.Utility.createNotImplementedException();this._clientHostController=new e.Win32RichClientHostController}return this._clientHostController},n.prototype.createAsyncMethodExecutor=function(){return new e.SafeArrayAsyncMethodExecutor(this._clientHostController)},n.prototype.createClientSettingsManager=function(){return new e.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(t){var n=null;if(t)try{n=JSON.parse(t)}catch(t){e.AppTelemetry&&e.AppTelemetry.logAppException("Exception while parsing officeThemeInfo. Details: "+t)}var o={};if(n){var r={bodyBackgroundColor:{name:"bodyBackgroundColor",convertToHex:!0},bodyForegroundColor:{name:"bodyForegroundColor",convertToHex:!0},controlBackgroundColor:{name:"controlBackgroundColor",convertToHex:!0},controlForegroundColor:{name:"controlForegroundColor",convertToHex:!0},primaryFontColor:{name:"bodyForegroundColor",convertToHex:!0},primaryBackgroundColor:{name:"bodyBackgroundColor",convertToHex:!0},secondaryFontColor:{name:"controlForegroundColor",convertToHex:!0},secondaryBackgroundColor:{name:"controlBackgroundColor",convertToHex:!0},fluentThemeData:{name:"fluentThemeData",convertToHex:!1}};for(var i in n){var a=!1,s=i;r[i]&&(s=r[i].name,a=r[i].convertToHex),o[s]=a?e.OUtil.convertIntToCssHexColor(n[i]):n[i]}}return o},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}(e.InitializationHelper);e.RichClientInitializationHelper=t}(OSF||(OSF={})),function(e){var t=function(){function e(e){this._osfClientContext=e}return e.prototype.read=function(e){var t,n=this._osfClientContext;t="undefined"!=typeof OsfOMToken&&OsfOMToken?n.GetSettings(OsfOMToken):n.GetSettings();var o=function(){var n=[],o=[];t.Read(n,o);for(var r={},i=0;i<n.length;i++)r[n[i]]=o[i];e&&e(0,r)};t.RefreshAsync?t.RefreshAsync((function(){o()})):o()},e.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))},e}();e.RichClientSettingsManager=t}(OSF||(OSF={})),function(e){var t=function(t){function n(n){var o=t.call(this)||this;return o._clientHostController=n,o._asyncMethodExecutorHelper=e.BootStrapExtension.createAsyncMethodExecutorHelper(o),o}return __extends(n,t),n.prototype.executeAsync=function(t,n,o,r){var i=this;try{var a=new Array;this._clientHostController.execute(t,n.toSafeArrayHost(),(function(s,l){var c=e.Utility.fromSafeArray(s);return i._asyncMethodExecutorHelper.handleSafeArrayHostResponse(c,l,a,o,n,t,r)}))}catch(e){this.onException(e,t,o)}},n.prototype.registerEventAsync=function(t,n,o,r,i,a,s){var l=this;try{this._clientHostController.registerEvent(t,n,o,(function(t,n){var o=e.Utility.fromSafeArray(n),a=i.fromSafeArrayHost(o);r(a)}),(function(n){var o,r=e.Utility.fromSafeArray(n);return"number"==typeof r?([],o=r):o=r[0],l.invokeCallback(t,a,o,null,s),!0}))}catch(e){this.onException(e,t,a)}},n.prototype.unregisterEventAsync=function(t,n,o,r,i){var a=this;try{this._clientHostController.unregisterEvent(t,n,o,(function(n,o){var s,l=e.Utility.fromSafeArray(n);return"number"==typeof l?([],s=l):s=l[0],a.invokeCallback(t,r,s,null,i),!0}))}catch(e){this.onException(e,t,r)}},n.prototype.onException=function(t,n,o){var r,i=t.number;if(i)switch(i){case-2146828218:r=7e3;break;case-2147467259:r=n==e.EventDispId.dispidDialogMessageReceivedEvent?12007:5001;break;case-2146828283:case-2147209089:r=5010;break;case-2147208704:r=5100;break;case-2146827850:default:r=5001}o&&this.invokeCallback(n,o,r||5001,null)},n}(e.AsyncMethodExecutor);e.SafeArrayAsyncMethodExecutor=t}(OSF||(OSF={})),function(e){var t=function(){function e(e){this._internalStorage=e}return e.prototype.getItem=function(e){try{return this._internalStorage&&this._internalStorage.getItem(e)}catch(e){return null}},e.prototype.setItem=function(e,t){try{this._internalStorage&&this._internalStorage.setItem(e,t)}catch(e){}},e.prototype.clear=function(){try{this._internalStorage&&this._internalStorage.clear()}catch(e){}},e.prototype.removeItem=function(e){try{this._internalStorage&&this._internalStorage.removeItem(e)}catch(e){}},e.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},e}();e.SafeStorage=t}(OSF||(OSF={})),function(e){var t=function(){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}}}])}return 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(e){var t=this._clientSettingsManager,n=OSF.OUtil.serializeSettings(this._settings);t.write(n,(function(t){var n=OSF.Utility.asyncResultFromErrorCode(t);e&&e(n)}))},t.prototype.refreshAsync=function(t){var n=this;this._clientSettingsManager.read((function(o,r){var i=OSF.Utility.asyncResultFromErrorCode(o);i.status===e.AsyncResultStatus.Succeeded&&(n._settings=OSF.OUtil.deserializeSettings(r),i.value=n),t&&t(i)}))},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}();e.Settings=t}(Office||(Office={}));var OSFWebkit,OTel,Microsoft,__awaiter=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){e.done?r(e.value):new n((function(t){t(e.value)})).then(a,s)}l((o=o.apply(e,t||[])).next())}))},__generator=this&&this.__generator||function(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};!function(e){var t=function(){function t(){}return t.isSovereignVersion=function(){return"undefined"!=typeof isOsfSovereignVersion&&!0===isOsfSovereignVersion},t.prototype.getEnvironmentName=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.getConfig()];case 1:return[2,null!=(e=t.sent())&&e.envName?e.envName:null]}}))}))},t.prototype.getEnvironmentType=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.getConfig()];case 1:return[2,null!=(e=t.sent())&&e.envType?e.envType:null]}}))}))},t.prototype.getTrustedHostOrigins=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.getConfig()];case 1:return[2,null!=(e=t.sent())?e.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(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return e?e===window.location.hostname?[2,!0]:[4,this.getTrustedHostOrigins()]:[2,!1];case 1:return(t=n.sent())&&0!=t.length?[2,new RegExp(t.join("|")).test(e)]:[2,!1]}}))}))},t.prototype.getConfigPath=function(){var t=e.LoadScriptHelper.getHostBundleJsBasePath();if(t){var n="/lib/",o=(t=t.toLowerCase()).indexOf(n);if(o>-1)return t.toLowerCase().substring(0,o+n.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(l){switch(l.label){case 0:if(!(t=this.getConfigPath()))return[3,2];if(n=e.OUtil.getLocalStorage(),o=t+"_cache",r=n.getItem(o),i=null,r){try{i=JSON.parse(r)}catch(e){}if(864e5,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=l.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(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return t.trys.push([0,3,,4]),[4,fetch(e)];case 1:return[4,t.sent().json()];case 2:return[2,t.sent()];case 3:return t.sent(),[3,4];case 4:return[2,null]}}))}))},t}();e.SovereignHelper=t}(OSF||(OSF={})),function(e){!function(e){function t(e){return void 0===e||null===e}e.createParameterException=function(e){return new Error("Parameter count mismatch: "+e)},e.createArgumentException=function(e){return new Error("Invalid argument "+e)},e.createNotImplementedException=function(){return new Error("Not implemented yet")},e.log=function(e){console.log(e)},e.trace=function(e){console.log(e)},e.debugLog=function(e){console.log(e)},e.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},e.isNullOrUndefined=t,e.isNullOrEmpty=function(e){return!!t(e)||0===e.length},e.isInUnittest=function(){return"boolean"==typeof g_osfUnittest&&g_osfUnittest}}(e.Utility||(e.Utility={}))}(OSF||(OSF={})),function(e){e.isOfficeReactNative=function(){try{return"undefined"!=typeof OfficePlatformGlobal&&void 0!==OfficePlatformGlobal.ReactNativeReka}catch(e){return!1}},function(e){function t(e){return new Promise(e)}function n(e){var t=e,r=1;if(("object"==typeof e||"unknown"==typeof e)&&null!=e&&e.toArray)if(e.dimensions&&(r=e.dimensions()),2===r)t=o(e);else{var i=e.toArray();t=new Array(i.length);for(var a=0;a<i.length;a++)t[a]=n(i[a])}return t}function o(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)}i.length>0&&t.push(i)}}}catch(e){}return t}e.xdmDebugLog=function(t){e._DebugXdm&&console.log(t)},e.enableDebugXdm=function(){e._DebugXdm=!0},e.createPromiseFromResult=function(e){return Promise.resolve(e)},e.createPromise=t,e.promisify=function(e,n){return t((function(t,o){e((function(e){0===e?t():o()})),setTimeout((function(){o()}),n)}))},e.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},e.getErrorCodeFromAsyncResult=function(e){return e.status===Office.AsyncResultStatus.Succeeded?0:e.error&&e.error.code?e.error.code:5001},e.externalNativeFunctionExists=function(e){return"unknown"===e||"undefined"!==e},e.stringEndsWith=function(t,n){if(e.isNullOrUndefined(t))throw e.createArgumentException("value");if(e.isNullOrUndefined(n))throw e.createArgumentException("subString");return!(n.length>t.length)&&t.substr(t.length-n.length)===n},e.fromSafeArray=function(e){var t=e;if(("object"==typeof e||"unknown"==typeof e)&&null!=e&&e.toArray){var o=e.toArray();t=new Array(o.length);for(var r=0;r<o.length;r++)t[r]=n(o[r])}return t},e.twoDVBArrayToJaggedArray=o,e.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}}},e._DebugXdm=!1}(e.Utility||(e.Utility={}))}(OSF||(OSF={})),function(e){var t=function(t){function n(n){var o=t.call(this)||this;return o._clientHostController=n,o._asyncMethodExecutorHelper=e.BootStrapExtension.createAsyncMethodExecutorHelper(o),o}return __extends(n,t),n.prototype.executeAsync=function(e,t,n,o){var r=this;this._clientHostController.execute(e,t.toWebHost(),(function(i,a){return n&&r._asyncMethodExecutorHelper.handleWebHostResponse(a,i,n,t,e,o),!0}))},n.prototype.registerEventAsync=function(e,t,n,o,r,i,a){var s=this;this._clientHostController.registerEvent(e,t,n,(function(e){var t=e,n=r.fromWebHost(t);o(n)}),(function(t,n){return i&&s.invokeCallback(e,i,t,null,a),!0}))},n.prototype.unregisterEventAsync=function(e,t,n,o,r){var i=this;this._clientHostController.unregisterEvent(e,t,n,(function(t,n){return o&&i.invokeCallback(e,o,t,null,r),!0}))},n}(e.AsyncMethodExecutor);e.WebAsyncMethodExecutor=t}(OSF||(OSF={})),function(e){!function(t){!function(t){t.getAuthContextAsync=function(t){e._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(99,{toSafeArrayHost:function(){return[]},fromSafeArrayHost:function(e){return null},toWebHost:function(){return{}},fromWebHost:function(e){return e.authContext}},t)}}(t.WebAuth||(t.WebAuth={}))}(e.DDA||(e.DDA={})),function(t){var n;!function(e){e.AuthCode="authcode",e.Broker="broker",e.Implicit="implicit"}(n=t.AuthFlow||(t.AuthFlow={})),t.loadAttempts=0;var o="webauth/",r="webauth.browserauth.debug.js",i="webauth.browserauth.js",a=!1;t.load=function(){return t.config&&t.config.authFlow===n.AuthCode?(t.loadAttempts++,(a=t.config&&(!0===t.config.useMsal3||!1!==t.config.useMsal3&&e.OUtil.checkFlight(e.FlightTreatmentNames.EnableMsal3SsoApi)))&&(r="webauth.browserauth.msal3.debug.js",i="webauth.browserauth.msal3.js"),new Promise((function(n,s){var l=function(t,n,o){return new Promise((function(r,i){t?e.OUtil.loadScript(t,(function(e){if("boolean"!=typeof e||e)if(e instanceof Event&&e)i(new Event("loadScript: "+e.type+" '"+t+"'"));else if(o&&!n())var a=0,s=setInterval((function(){a+=500,!(n()||a>o)||(clearInterval(s),n())||i(new Event("Missing expected object after loaded."))}),500);else r(null);else i(new Event("loadScript: failed to load '"+t+"'"))}),e.LoadScriptHelper.getTrustedTypesPolicy(),o):r(null)}))},c=[l(t.config&&t.config.authVersion?e.LoadScriptHelper.getHostBundleJsBasePath()+o+t.config.authVersion+"/"+(t.config&&t.config.debugging?r:i):e.LoadScriptHelper.getHostBundleJsBasePath()+o+(t.config&&t.config.debugging?r:i),(function(){return!!BrowserAuth}),t.config.delayWebAuth)];a||c.push(l(t.config.msal,(function(){return!!msal}),t.config.delayMsal)),Promise.all(c).then((function(){t.config?BrowserAuth.Load(t.config,e._OfficeAppFactory.getHostInfo().osfControlAppCorrelationId).then((function(e){n(e)}),(function(e){s(e)})):s(new Event("config is empty."))}),(function(e){s(e)}))}))):new Promise((function(e,t){return t(new Event("'authcode' as authFlow is only supported"))}))},t.getToken=function(e,o,r,i,s,l){return t.config&&t.config.authFlow===n.AuthCode?a?BrowserAuth.GetToken({resource:e,scopes:o,applicationId:r,correlationId:i,popup:!!s,claims:l}):BrowserAuth.GetToken(e,r,i,!!s,!!s,!1,l):Promise.reject(new Event("'authcode' as authFlow is only supported"))}}(e.WebAuth||(e.WebAuth={}))}(OSF||(OSF={})),function(e){var t=function(){function t(t){this._delegateVersion=1,this._webAppState=t,this._webClientHostControllerHelper=e.BootStrapExtension.createWebClientHostControllerHelper(this._webAppState,this._delegateVersion)}return t.prototype.execute=function(e,t,n){var o=this,r=this._webClientHostControllerHelper.getHostCallArgs(e,t),i=this._webClientHostControllerHelper.getTargetMethodName(e);this._webAppState.clientEndPoint.invoke(i,(function(t,r){var i=0;if(0==t)o._delegateVersion=r.Version,i=o._webClientHostControllerHelper.parseErrorFromPayload(e,r);else switch(t){case-5:i=7e3;break;default:i=5001}n&&n(i,r)}),r)},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(t){throw e.Utility.createNotImplementedException()},t.prototype.openDialog=function(t,n,o,r,i){throw e.Utility.createNotImplementedException()},t.prototype.closeDialog=function(t,n,o,r){throw e.Utility.createNotImplementedException()},t.prototype.sendMessage=function(t){throw e.Utility.createNotImplementedException()},t.prototype.closeSdxDialog=function(t){this._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[this._webAppState.id,e.AgaveHostAction.CloseSDXDialog,{InstanceId:this._webAppState.id,DialogCloseCallbackParam:t}])},t.prototype.resizeSdxDialog=function(t,n){this._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[this._webAppState.id,e.AgaveHostAction.ResizeSDXDialog,{InstanceId:this._webAppState.id,DialogWidth:t+"px",DialogHeight:n+"px"}])},t.prototype.getXdmEventName=function(t,n){return n==e.EventType.BindingSelectionChanged||n==e.EventType.BindingDataChanged||n==e.EventType.DataNodeDeleted||n==e.EventType.DataNodeInserted||n==e.EventType.DataNodeReplaced?t+"_"+n:n},t.prototype._getOnAfterRegisterEvent=function(t,n,o){var r=(new Date).getTime();return function(i,a){var s;if(0!=i)switch(i){case-5:s=7e3;break;default:s=5001}else s=a?a.Error?a.Error:0:5001;o&&o(s),e.AppTelemetry&&e.AppTelemetry.onRegisterDone(t,n,Math.abs((new Date).getTime()-r),s)}},t}();e.WebClientHostController=t}(OSF||(OSF={})),function(e){var t=function(){function e(e,t){this._webAppState=e,this._delegateVersion=t}return e.prototype.getHostCallArgs=function(e,t){var n=t;return n||(n={}),n.DdaMethod={ControlId:this.getControlId(),DispatchId:e,Version:this._delegateVersion},n.__timeout__=-1,n},e.prototype.getTargetMethodName=function(e){return"executeMethod"},e.prototype.parseErrorFromPayload=function(e,t){return t.Error},e.prototype.getControlId=function(){return this._webAppState.id},e}();e.WebClientHostControllerHelper=t}(OSF||(OSF={})),function(e){var t=function(){function t(){}return t.prototype.read=function(t){e._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 n={},o=0;o<e.value.length;o++){var r=e.value[o];Array.isArray(r)?n[r[0]]=r[1]:n[r.Name]=r.Value}t(0,n)}else{var i=e.error.code;t(i,{})}}))},t.prototype.write=function(t,n){var o=e._OfficeAppFactory.getAsyncMethodExecutor(),r=[];for(var i in t){var a=[];a.push(i),a.push(t[i]),r.push(a)}var s={toSafeArrayHost:function(){return null},fromSafeArrayHost:function(e){return null},toWebHost:function(){return{DdaSettingsMethod:{OverwriteIfStale:!0,Properties:r}}},fromWebHost:function(e){return null}};o.executeAsync(76,s,(function(e){if(e.status===Office.AsyncResultStatus.Succeeded)n(0);else{var t=e.error.code;n(t)}}))},t}();e.WebClientSettingsManager=t}(OSF||(OSF={})),function(e){var t=function(t){function n(e,n,o,r){var i=t.call(this,e,n,o,r)||this;return i._serializedSettings={},i._serializedHostSettings={},i._appContext={},i._tabbableElements="a[href]:not([tabindex='-1']),area[href]:not([tabindex='-1']),button:not([disabled]):not([tabindex='-1']),input:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),textarea:not([disabled]):not([tabindex='-1']),*[tabindex]:not([tabindex='-1']),*[contenteditable]:not([disabled]):not([tabindex='-1'])",i}return __extends(n,t),Object.defineProperty(n.prototype,"isHostOriginTrusted",{get:function(){return this._isHostOriginTrustedFunc},set:function(e){this._isHostOriginTrustedFunc=e},enumerable:!0,configurable:!0}),n.prototype.saveAndSetDialogInfo=function(t){var n,o=e.OUtil.getSessionStorage();if(o){if(t||(t=e.OUtil.parseHostInfoFromWindowName(!0,e._OfficeAppFactory.getWindowName())),t&&t.indexOf("isDialog")>-1){var r=(n=e.OUtil.parseXdmInfo(!0))?n.split("|")[1]:null;return null!=r&&o.setItem(r+"IsDialog","true"),void(this._hostInfo.isDialog=!0)}this._hostInfo.isDialog=null!=o.getItem(e.OUtil.getXdmFieldValue("AppId",!1)+"IsDialog")}},n.prototype.checkReceiverOriginAndRun=function(t){return __awaiter(this,void 0,void 0,(function(){var n,o,r,i,a,s,l,c,u,d;return __generator(this,(function(f){switch(f.label){case 0:return 3===(n=this)._webAppState.clientEndPoint.hostTrustCheckStatus?(t(),[2]):(o=e.OUtil.parseUrl(n._webAppState.clientEndPoint.targetUrl,!1),r="https:"==o.protocol,i=o.hostname,a="NotHttps",0!==n._webAppState.clientEndPoint.hostTrustCheckStatus?[3,4]:(r||(n._webAppState.clientEndPoint.hostTrustCheckStatus=2),2==n._webAppState.clientEndPoint.hostTrustCheckStatus?[3,4]:(s=!1,(l=e.SovereignHelper.isSovereignVersion())&&!0!==e.OUtil.getCustomOfficeInitializationSettings().trustAllCloudEnvironments||(s=e.XdmCommunicationManager.isHostNameValidWacDomain(i),n.isHostOriginTrusted&&(s=s||n.isHostOriginTrusted(i))),s||!l?[3,3]:(n._sovereignHelper||(n._sovereignHelper=new e.SovereignHelper),[4,(c=n._sovereignHelper).isConfigAvailable()]))));case 1:return f.sent()?[4,c.isSovereignHostTrusted(i)]:[2];case 2:s=f.sent(),f.label=3;case 3:s&&(n._webAppState.clientEndPoint.hostTrustCheckStatus=3),f.label=4;case 4:if(n._webAppState.clientEndPoint.checkStatusLogged||null==n._hostInfo||void 0===n._hostInfo||(e.AppTelemetry.onCheckWACHost(n._webAppState.clientEndPoint.hostTrustCheckStatus,n._webAppState.id,n._hostInfo.hostType,n._hostInfo.hostPlatform,n._webAppState.clientEndPoint.targetUrl),n._webAppState.clientEndPoint.checkStatusLogged=!0),3===n._webAppState.clientEndPoint.hostTrustCheckStatus||e.LoadScriptHelper.disableHostCheck())t();else{if(e.LoadScriptHelper.isSdx())throw new Error("Not supported host");u=function(){var o=e.LoadScriptHelper.getHostBundleJsBasePath().match(/^https?:\/\/[^:/?#]*(?::([0-9]+))?/);if(o&&o[0]){var s=e.LoadScriptHelper.getHostBundleJsBasePath()+"AgaveErrorUX/index.html#",l={error:"NotTrustedWAC",locale:e.getSupportedLocale(n._hostInfo.hostLocale,e.ConstantNames.DefaultLocale),hostname:i,noHttps:!r,validate:!1},c=document.createElement("iframe");c.style.visibility="hidden",c.style.height="0",c.style.width="0";var u=function(r){if(r.source==c.contentWindow&&r.origin==o[0])try{!0===JSON.parse(r.data).hostUserTrusted?(n._webAppState.clientEndPoint.hostTrustCheckStatus=3,e.OUtil.removeEventListener(window,"message",u),document.body.removeChild(c)):(l.validate=!1,window.location.replace(s+encodeURIComponent(JSON.stringify(l)))),t()}catch(t){e.OUtil.ensureOfficeStringsJs().then((function(){document.body.textContent=Strings.OfficeOM.L_NotTrustedWAC}))}};e.OUtil.addEventListener(window,"message",u),l.validate=!0,c.setAttribute("src",s+encodeURIComponent(JSON.stringify(l))),c.onload=function(){var e={hostname:i,noHttps:!r};c.contentWindow.postMessage(JSON.stringify(e),o[0])},document.body.appendChild(c)}else e.OUtil.ensureOfficeStringsJs().then((function(){document.body.textContent=Strings.OfficeOM.L_NotTrustedWAC}));if(e.OUtil.checkFlight(2)&&!r)throw new Error(a)},document.body?u():(d=!1,document.addEventListener("DOMContentLoaded",(function(){d||(d=!0,u())})))}return[2]}}))}))},n.prototype.setAgaveHostCommunication=function(){try{var t=this,n=e.OUtil.parseXdmInfoWithGivenFragment(!1,e._OfficeAppFactory.getWindowLocationHash());if(n||(n=e.OUtil.parseXdmInfoFromWindowName(!1,e._OfficeAppFactory.getWindowName())),n){var o=e.OUtil.getInfoItems(n);null!=o&&o.length>=3&&(t._webAppState.conversationID=o[0],t._webAppState.id=o[1],t._webAppState.webAppUrl=o[2].indexOf(":")>=0?o[2]:decodeURIComponent(o[2]))}if(t._webAppState.wnd=null!=window.opener?window.opener:window.parent,this._hostInfo.isDialog&&null!=window.opener)return;t._webAppState.clientEndPoint=e.XdmCommunicationManager.connect(t._webAppState.conversationID,t._webAppState.wnd,t._webAppState.webAppUrl),t._webAppState.serviceEndPoint=e.XdmCommunicationManager.createServiceEndPoint(t._webAppState.id),t._webAppState.clientEndPoint.checkReceiverOriginAndRun=function(e){t.checkReceiverOriginAndRun(e)};var r=t._webAppState.conversationID+e.Constants.NotificationConversationIdSuffix;t._webAppState.serviceEndPoint.registerConversation(r,t._webAppState.webAppUrl);t._webAppState.serviceEndPoint.registerMethod("Office_notifyAgave",(function(n){var o;switch(o="string"==typeof n?n:n[0]){case e.AgaveHostAction.Select:t._webAppState.focused=!0;break;case e.AgaveHostAction.UnSelect:t._webAppState.focused=!1;break;case e.AgaveHostAction.TabIn:case e.AgaveHostAction.CtrlF6In:window.focus();var r=document.querySelectorAll(t._tabbableElements);e.OUtil.focusToFirstTabbable(r,!1)||(window.blur(),t._webAppState.focused=!1,t._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[t._webAppState.id,e.AgaveHostAction.ExitNoFocusable]));break;case e.AgaveHostAction.TabInShift:window.focus();r=document.querySelectorAll(t._tabbableElements);e.OUtil.focusToFirstTabbable(r,!0)||(window.blur(),t._webAppState.focused=!1,t._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[t._webAppState.id,e.AgaveHostAction.ExitNoFocusableShift]));break;case e.AgaveHostAction.SendMessage:if(Office.context.messaging.onMessage){var i=n[1];Office.context.messaging.onMessage(i)}break;case e.AgaveHostAction.TaskPaneHeaderButtonClicked:Office.context.ui.taskPaneAction.onHeaderButtonClick&&Office.context.ui.taskPaneAction.onHeaderButtonClick();break;default:e.Utility.trace("actionId "+o+" notifyAgave is wrong.")}}),0,!1),t.addOrRemoveEventListenersForWindow(!0)}catch(t){throw e.AppTelemetry&&e.AppTelemetry.logAppException("Exception thrown in setAgaveHostCommunication. Exception:["+t+"]"),t}},n.prototype.getAppContext=function(t,n,o){var r=this,i=this,a=function(t,a){if(OSFPerformance.getAppContextXdmEnd=OSFPerformance.now(),a._appName===e.AppName.ExcelWebApp){for(var s=0,l=a._settings;s<l.length;s++){var c=l[s],u=c[0],d=c[1];r._serializedSettings[u]=d}for(var f=0,p=a._hostSettings;f<p.length;f++){var h=p[f];u=h[0],d=h[1];r._serializedHostSettings[u]=d}}else r._serializedSettings=a._settings||{},r._serializedHostSettings=a._hostSettings||{};if(!i._hostInfo.isDialog||null==window.opener){var g=window.location.href;i._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[i._webAppState.id,e.AgaveHostAction.UpdateTargetUrl,g])}if(0===t&&null!=a._id&&null!=a._appName&&null!=a._appVersion&&null!=a._appUILocale&&null!=a._dataLocale&&null!=a._docUrl&&null!=a._clientMode&&null!=a._reason){i._appContext=a;var m=a._appInstanceId?a._appInstanceId:a._id,y=0;null!=a._appMinorVersion&&(y=a._appMinorVersion);var v=void 0;null!=a._requirementMatrix&&(v=a._requirementMatrix),a.eToken=a.eToken?a.eToken:"";var b=new e.OfficeAppContext(a._id,a._appName,a._appVersion,a._appUILocale,a._dataLocale,a._docUrl,a._clientMode,(function(){return r._serializedSettings}),a._reason,a._osfControlType,a._eToken,a._correlationId,m,!1,!0,y,v,a._hostCustomMessage,a._hostFullVersion,a._clientWindowHeight,a._clientWindowWidth,a._addinName,a._appDomains,a._dialogRequirementMatrix,a._featureGates,a._officeTheme,a._initialDisplayMode,a._isFromWacAutomation,a._wopiHostOriginForSingleSignOn,(function(){return r._serializedHostSettings}),!0,a._nestedAppAuthBridgeType,a._partitionKey);b.set_taskpaneUrl(a._taskpaneUrl),n(b)}else{var C="Function ContextActivationManager_getAppContextAsync call failed. ErrorCode is "+t+", exception: "+a;e.AppTelemetry&&e.AppTelemetry.logAppException(C),o(C)}};try{var s=!0;this._hostInfo.isDialog&&null!=window.opener&&(s=!1);var l=e.OUtil.parseAppContextFromWindowName(s,e._OfficeAppFactory.getWindowName());l?a(0,l):(OSFPerformance.getAppContextXdmStart=OSFPerformance.now(),this._webAppState.clientEndPoint.invoke("ContextActivationManager_getAppContextAsync",a,this._webAppState.id))}catch(t){e.AppTelemetry&&e.AppTelemetry.logAppException("Exception thrown when trying to invoke getAppContextAsync. Exception:["+t+"]"),o(t)}},n.prototype.createClientHostController=function(){return this._clientHostController||(this._clientHostController=new e.WebClientHostController(this._webAppState)),this._clientHostController},n.prototype.createAsyncMethodExecutor=function(){return new e.WebAsyncMethodExecutor(this._clientHostController)},n.prototype.createClientSettingsManager=function(){return new e.WebClientSettingsManager},n.prototype.addOrRemoveEventListenersForWindow=function(t){var n=this,o=function(){n._webAppState.focused||(n._webAppState.focused=!0),n._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.Select])},r=function(){e&&(n._webAppState.focused&&(n._webAppState.focused=!1),n._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.UnSelect]))},i=function(t){if(t.preventDefault=t.preventDefault||function(){t.returnValue=!1},117==t.keyCode&&(t.ctrlKey||t.metaKey)){t.preventDefault();var o=e.AgaveHostAction.CtrlF6Exit;t.shiftKey&&(o=e.AgaveHostAction.CtrlF6ExitShift),n._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,o])}else if(9==t.keyCode){t.preventDefault();var r=document.querySelectorAll(n._tabbableElements);e.OUtil.focusToNextTabbable(r,t.target||t.srcElement,t.shiftKey)||(n._hostInfo.isDialog?e.OUtil.focusToFirstTabbable(r,t.shiftKey):t.shiftKey?n._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.TabExitShift]):n._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.TabExit]))}else if(27==t.keyCode)t.preventDefault(),n._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.EscExit]);else if(113==t.keyCode)t.preventDefault(),n._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.F2Exit]);else if((t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)&&t.keyCode>=1&&t.keyCode<=255){var i={keyCode:t.keyCode,shiftKey:t.shiftKey,altKey:t.altKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey};n._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.KeyboardShortcuts,i])}},a=function(e){117==e.keyCode&&e.ctrlKey&&(e.preventDefault?e.preventDefault():e.returnValue=!1)};e.Utility._DebugXdm||(t?(e.OUtil.addEventListener(window,"focus",o),e.OUtil.addEventListener(window,"blur",r),e.OUtil.addEventListener(window,"keydown",i),e.OUtil.addEventListener(window,"keypress",a)):(e.OUtil.removeEventListener(window,"focus",o),e.OUtil.removeEventListener(window,"blur",r),e.OUtil.removeEventListener(window,"keydown",i),e.OUtil.removeEventListener(window,"keypress",a)))},n.prototype.getTabbableElements=function(){return this._tabbableElements},n}(e.InitializationHelper);e.WebInitializationHelper=t}(OSF||(OSF={})),function(e){var t=function(){function t(e,t){this._initializationHelper=e,this._scriptMessager=t}return t.prototype.read=function(e){this._initializationHelper.getAppContext(null,(function(t){if(e){var n=t.get_settingsFunc()();e(0,n)}}),(function(t){e&&e(5001,{})}))},t.prototype.write=function(t,n){var o={},r=[],i=[];for(var a in t)r.push(a),i.push(t[a]);o.keys=r,o.values=i;this._scriptMessager.invokeMethod(e.Webkit.MessageHandlerName,e.Webkit.MethodId.WriteSettings,o,(function(e){n&&n(e[0])}))},t}();e.WebkitClientSettingsManager=t}(OSF||(OSF={})),function(e){!function(t){t.MessageHandlerName="Agave",t.PopupMessageHandlerName="WefPopupHandler",function(e){e[e.Settings=0]="Settings",e[e.SolutionReferenceId=1]="SolutionReferenceId",e[e.AppType=2]="AppType",e[e.MajorVersion=3]="MajorVersion",e[e.MinorVersion=4]="MinorVersion",e[e.RevisionVersion=5]="RevisionVersion",e[e.APIVersionSequence=6]="APIVersionSequence",e[e.AppCapabilities=7]="AppCapabilities",e[e.APPUILocale=8]="APPUILocale",e[e.AppDataLocale=9]="AppDataLocale",e[e.BindingCount=10]="BindingCount",e[e.DocumentUrl=11]="DocumentUrl",e[e.ActivationMode=12]="ActivationMode",e[e.ControlIntegrationLevel=13]="ControlIntegrationLevel",e[e.SolutionToken=14]="SolutionToken",e[e.APISetVersion=15]="APISetVersion",e[e.CorrelationId=16]="CorrelationId",e[e.InstanceId=17]="InstanceId",e[e.TouchEnabled=18]="TouchEnabled",e[e.CommerceAllowed=19]="CommerceAllowed",e[e.RequirementMatrix=20]="RequirementMatrix",e[e.HostCustomMessage=21]="HostCustomMessage",e[e.HostFullVersion=22]="HostFullVersion",e[e.InitialDisplayMode=23]="InitialDisplayMode",e[e.FeatureGates=24]="FeatureGates",e[e.HostSettings=25]="HostSettings",e[e.OfficeThemeInfo=26]="OfficeThemeInfo"}(t.AppContextProperties||(t.AppContextProperties={})),function(e){e[e.Execute=1]="Execute",e[e.RegisterEvent=2]="RegisterEvent",e[e.UnregisterEvent=3]="UnregisterEvent",e[e.WriteSettings=4]="WriteSettings",e[e.GetContext=5]="GetContext",e[e.SendMessage=6]="SendMessage",e[e.MessageParent=7]="MessageParent",e[e.SendMessage2=8]="SendMessage2",e[e.MessageParent2=9]="MessageParent2",e[e.CloseSdxDialog=10]="CloseSdxDialog",e[e.ResizeSdxDialog=11]="ResizeSdxDialog"}(t.MethodId||(t.MethodId={}));var n=function(){function t(e){this.hostScriptProxy=e,this.useFullDialogAPI=!!window._enableFullDialogAPI,this.osfSupportsDialogOrigin=!!window._osfEnableDialogOrigin}return t.prototype.execute=function(t,n,o){var r={id:t,apiArgs:n};this.hostScriptProxy.invokeMethod(e.Webkit.MessageHandlerName,e.Webkit.MethodId.Execute,r,(function(t){if(o){var n=[];if(e.OUtil.isArray(t))for(var r=0;r<t.length;r++){var i=t[r];e.OUtil.isArray(i)&&(i=new e.WebkitSafeArray(i)),n.unshift(i)}return o.apply(null,n)}}))},t.prototype.registerEvent=function(t,n,o,r,i){this.hostScriptProxy.registerEvent(e.Webkit.MessageHandlerName,e.Webkit.MethodId.RegisterEvent,t,o,(function(t){var n=t,o=0;e.OUtil.isArray(t)&&t.length>=2&&(n=t[0],o=t[1]),r&&r(o,new e.WebkitSafeArray(n))}),(function(t){if(i)return i(new e.WebkitSafeArray(t))}))},t.prototype.unregisterEvent=function(t,n,o,r){this.hostScriptProxy.unregisterEvent(e.Webkit.MessageHandlerName,e.Webkit.MethodId.UnregisterEvent,t,o,(function(t){return r(new e.WebkitSafeArray(t))}))},t.prototype.messageParent=function(t){var n,o;if(this.osfSupportsDialogOrigin&&t[e.ParameterNames.TargetOrigin]?(n=this.useFullDialogAPI?JSON.stringify(t):t[e.ParameterNames.MessageToParent],o=e.Webkit.MethodId.MessageParent2):(n=t[e.ParameterNames.MessageToParent],o=e.Webkit.MethodId.MessageParent),this.useFullDialogAPI)this.hostScriptProxy.invokeMethod(e.Webkit.MessageHandlerName,o,n,null);else{var r={dialogMessage:{messageType:0,messageContent:n}},i=o==e.Webkit.MethodId.MessageParent2?t[e.ParameterNames.TargetOrigin]:window.location.origin;window.opener.postMessage(JSON.stringify(r),i)}},t.prototype.openDialog=function(n,o,r,i,a){if(this.useFullDialogAPI)this.registerEvent(n,o,r,i,a);else if(!t.popup||t.popup.closed){t.OpenDialogCallback=void 0;var s=JSON.parse(r),l=s.url;if(l){var c=l.split("#"),u="?";c[0].indexOf("?")>-1&&(u="&");var d="width="+screen.width*s.width/100+", height="+screen.height*s.height/100;c[0]=c[0].concat(u).concat("action=displayDialog");var f=c.join("#");t.popup=window.open(f,"",d),t.DialogEventListener=function(t){if(t.origin==window.location.origin)try{var o=JSON.parse(t.data);o.dialogMessage&&i(n,[0,o.dialogMessage.messageContent,t.origin])}catch(n){e.Utility.trace("messages received cannot be handlered. Message:"+t.data)}},t.OpenDialogCallback=function(e){0==e&&(window.addEventListener("message",t.DialogEventListener),t.interval=window.setInterval(p,1e3),t.NotifyError=function(e){i(n,[e])}),a(e)}}else a(12003)}else a(12007);function p(){try{(null==t.popup||t.popup.closed)&&(window.clearInterval(t.interval),window.removeEventListener("message",t.DialogEventListener),t.NotifyError=null,t.popup=null,i(n,[12006]))}catch(t){e.Utility.trace("Error happened when popup window closed.")}}},t.prototype.closeDialog=function(e,n,o,r){this.useFullDialogAPI?this.unregisterEvent(e,n,o,r):t.popup?(t.interval&&window.clearInterval(t.interval),t.popup.close(),t.popup=null,window.removeEventListener("message",t.DialogEventListener),t.NotifyError=null,r(0)):r(5001)},t.prototype.sendMessage=function(t){var n,o;this.osfSupportsDialogOrigin&&t[e.ParameterNames.TargetOrigin]?(n=JSON.stringify(t),o=e.Webkit.MethodId.SendMessage2):(n=t[e.ParameterNames.MessageContent],o=e.Webkit.MethodId.SendMessage,!isNaN(parseFloat(n))&&isFinite(n)&&(n=n.toString())),this.hostScriptProxy.invokeMethod(e.Webkit.MessageHandlerName,o,n,null)},t.prototype.closeSdxDialog=function(t){var n=[t],o=e.Webkit.MethodId.CloseSdxDialog;this.hostScriptProxy.invokeMethod(e.Webkit.MessageHandlerName,o,n,null)},t.prototype.resizeSdxDialog=function(t,n){var o=[t,n],r=e.Webkit.MethodId.ResizeSdxDialog;this.hostScriptProxy.invokeMethod(e.Webkit.MessageHandlerName,r,o,null)},t}();t.WebkitHostController=n}(e.Webkit||(e.Webkit={}))}(OSF||(OSF={})),function(e){var t=function(t){function n(e,n,o,r){var i=t.call(this,e,n,o,r)||this;return i._serializedSettings={},i._serializedHostSettings={},i.initializeWebkitMessaging(),i}return __extends(n,t),n.prototype.initializeWebkitMessaging=function(){e.ScriptMessaging=OSFWebkit.ScriptMessaging},n.prototype.getAppContext=function(t,n,o){var r,i=this;r=this._hostInfo.isDialog&&window.webkit.messageHandlers[e.Webkit.PopupMessageHandlerName]?e.Webkit.PopupMessageHandlerName:e.Webkit.MessageHandlerName,e.ScriptMessaging.GetScriptMessenger().invokeMethod(r,e.Webkit.MethodId.GetContext,[],(function(t){var o,r=e.Webkit.AppContextProperties,a=t[r.AppType],s=t[r.Settings];if(s&&2===s.length)for(var l=s[0],c=s[1],u=0;u<l.length;u++)i._serializedSettings[l[u]]=c[u];var d=t[r.HostSettings];if(d&&2===d.length)for(l=d[0],c=d[1],u=0;u<l.length;u++)i._serializedHostSettings[l[u]]=c[u];var f=t[r.SolutionReferenceId],p=t[r.MajorVersion],h=t[r.MinorVersion],g=t[r.AppCapabilities],m=t[r.APPUILocale],y=t[r.AppDataLocale],v=t[r.DocumentUrl],b=t[r.ActivationMode],C=t[r.ControlIntegrationLevel],_=t[r.SolutionToken];_=_?_.toString():"";var O,S=t[r.CorrelationId],A=t[r.InstanceId],E=t[r.TouchEnabled],P=t[r.CommerceAllowed],R=t[r.RequirementMatrix],T=t[r.HostCustomMessage],I=t[r.HostFullVersion],w=t[r.InitialDisplayMode],F=t[r.FeatureGates];if(F)try{O=JSON.parse(F)}catch(t){e.AppTelemetry&&e.AppTelemetry.logAppException("Exception trying to parse FeatureGates."+t)}var D=null;if(t[r.OfficeThemeInfo])try{D=JSON.parse(t[r.OfficeThemeInfo])}catch(t){e.AppTelemetry&&e.AppTelemetry.logAppException("Exception while parsing officeThemeInfo. Details: "+t)}var x={};if(D){var k={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 N in D){var M=!1,H=N;k[N]&&(H=k[N].name,M=k[N].convertToHex),x[H]=M?e.OUtil.convertIntToCssHexColor(D[N]):D[N]}}o=new e.OfficeAppContext(f,a,p,m,y,v,g,(function(){return i._serializedSettings}),b,C,_,S,A,E,P,h,R,T,I,void 0,void 0,void 0,void 0,void 0,O,x,w,void 0,void 0,(function(){return i._serializedHostSettings}),!1,void 0,void 0),n(o)}))},n.prototype.createClientHostController=function(){return this._clientHostController||(this._clientHostController=new e.Webkit.WebkitHostController(e.ScriptMessaging.GetScriptMessenger())),this._clientHostController},n.prototype.createAsyncMethodExecutor=function(){return new e.SafeArrayAsyncMethodExecutor(this.createClientHostController())},n.prototype.createClientSettingsManager=function(){return new e.WebkitClientSettingsManager(this,e.ScriptMessaging.GetScriptMessenger())},n}(e.InitializationHelper);e.WebkitInitializationHelper=t}(OSF||(OSF={})),function(e){var t=function(){function t(e){this.data=e,this.safeArrayFlag=this.isSafeArray(e)}return t.prototype.dimensions=function(){var e=0;return this.safeArrayFlag?e=this.data[0][0]:this.isArray()&&(e=2),e},t.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},t.prototype.lbound=function(e){return 0},t.prototype.ubound=function(t){var n=0;if(this.safeArrayFlag)n=this.data[0][t];else if(this.isArray()){if(1==t)return this.data.length;if(2==t){if(e.OUtil.isArray(this.data[0]))return this.data[0].length;if(null!=this.data[0])return 1}}return n},t.prototype.toArray=function(){if(0==this.isArray())return this.data;for(var e=[],n=this.safeArrayFlag?1:0;n<this.data.length;n++){var o=this.data[n];this.isSafeArray(o)?e.push(new t(o)):e.push(o)}return e},t.prototype.isArray=function(){return e.OUtil.isArray(this.data)},t.prototype.isSafeArray=function(t){var n=!1;if(e.OUtil.isArray(t)&&e.OUtil.isArray(t[0])){var o=t[0],r=o[0];if(o.length!=r+1)return!1;for(var i=1,a=1;a<o.length;a++){var s=o[a];if(0==isFinite(s))return!1;i*=s}n=++i==t.length}return n},t}();e.WebkitSafeArray=t}(OSF||(OSF={})),function(e){!function(e){var t=null;e.agaveHostCallback=function(e,n){t.agaveHostCallback(e,n)},e.agaveHostEventCallback=function(e,n){t.agaveHostEventCallback(e,n)},e.GetScriptMessenger=function(){return null==t&&(t=o.IsSupportedByHost()?new o:new r("OSF.ScriptMessaging.agaveHostCallback","OSF.ScriptMessaging.agaveHostEventCallback")),t};var n=function(e,t,n){this.id=e,this.targetId=t,this.handler=n},o=function(){function e(){this.eventHandlers=[]}return e.IsSupportedByHost=function(){return!!window._osfHostAPI},e.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}))},e.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})},e.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;a>=0;a--){var s=this.eventHandlers[a];s.dispId===n&&s.targetId===o&&(this.eventHandlers.splice(a,1),window._osfHostUnregisterCallback(s.callbackId))}},e.prototype.agaveHostCallback=function(e,t){},e.prototype.agaveHostEventCallback=function(e,t){},e.prototype.constructMessagingArgs=function(e,t){return{params:t,methodId:e}},e}(),r=function(){function e(t,n){this.callingIndex=0,this.callbackList={},this.eventHandlerList={},this.asyncMethodCallbackFunctionName=t,this.eventCallbackFunctionName=n,this.conversationId=e.getCurrentTimeMS().toString()}return e.prototype.invokeMethod=function(e,t,n,o){this.postWebkitMessage({},e,t,n,o)},e.prototype.registerEvent=function(e,t,o,r,i,a){var s={eventCallbackFunction:this.eventCallbackFunctionName},l={id:o,targetId:r},c=this.postWebkitMessage(s,e,t,l,a);this.eventHandlerList[c]=new n(o,r,i)},e.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)},e.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]}},e.prototype.agaveHostEventCallback=function(e,t){var n=this.eventHandlerList[e];n&&n.handler(t)},e.prototype.postWebkitMessage=function(t,n,o,r,i){t.methodId=o,t.params=r;var a="";i&&(a=this.generateCorrelationId(),this.callbackList[a]=i,t.callbackId=a,t.callbackFunction=this.asyncMethodCallbackFunctionName);var s=function(){window.webkit.messageHandlers[n].postMessage(JSON.stringify(t))},l=e.getCurrentTimeMS();return null==this.lastMessageTimestamp||l-this.lastMessageTimestamp>=e.MESSAGE_TIME_DELTA?(s(),this.lastMessageTimestamp=l):(this.lastMessageTimestamp+=e.MESSAGE_TIME_DELTA,setTimeout((function(){s()}),this.lastMessageTimestamp-l)),a},e.prototype.generateCorrelationId=function(){return++this.callingIndex,this.conversationId+this.callingIndex},e.getCurrentTimeMS=function(){return(new Date).getTime()},e.MESSAGE_TIME_DELTA=10,e}()}(e.ScriptMessaging||(e.ScriptMessaging={}))}(OSFWebkit||(OSFWebkit={})),function(e){var t=function(){function t(e,t){this._initializationHelper=e,this._scriptMessager=t}return t.prototype.read=function(e){this._initializationHelper.getAppContext(null,(function(t){if(e){var n=t.get_settingsFunc()();e(0,n)}}),(function(t){e&&e(5001,{})}))},t.prototype.write=function(t,n){var o={},r=[],i=[];for(var a in t)r.push(a),i.push(t[a]);o.keys=r,o.values=i;this._scriptMessager.invokeMethod(e.WebView.MessageHandlerName,e.WebView.MethodId.WriteSettings,o,(function(e){n&&n(e[0])}))},t}();e.WebViewClientSettingsManager=t}(OSF||(OSF={})),function(e){!function(t){t.MessageHandlerName="Agave",t.PopupMessageHandlerName="WefPopupHandler",function(e){e[e.Settings=0]="Settings",e[e.SolutionReferenceId=1]="SolutionReferenceId",e[e.AppType=2]="AppType",e[e.MajorVersion=3]="MajorVersion",e[e.MinorVersion=4]="MinorVersion",e[e.RevisionVersion=5]="RevisionVersion",e[e.APIVersionSequence=6]="APIVersionSequence",e[e.AppCapabilities=7]="AppCapabilities",e[e.APPUILocale=8]="APPUILocale",e[e.AppDataLocale=9]="AppDataLocale",e[e.BindingCount=10]="BindingCount",e[e.DocumentUrl=11]="DocumentUrl",e[e.ActivationMode=12]="ActivationMode",e[e.ControlIntegrationLevel=13]="ControlIntegrationLevel",e[e.SolutionToken=14]="SolutionToken",e[e.APISetVersion=15]="APISetVersion",e[e.CorrelationId=16]="CorrelationId",e[e.InstanceId=17]="InstanceId",e[e.TouchEnabled=18]="TouchEnabled",e[e.CommerceAllowed=19]="CommerceAllowed",e[e.RequirementMatrix=20]="RequirementMatrix",e[e.OfficeThemeInfo=21]="OfficeThemeInfo"}(t.AppContextProperties||(t.AppContextProperties={})),function(e){e[e.Execute=1]="Execute",e[e.RegisterEvent=2]="RegisterEvent",e[e.UnregisterEvent=3]="UnregisterEvent",e[e.WriteSettings=4]="WriteSettings",e[e.GetContext=5]="GetContext",e[e.OnKeydown=6]="OnKeydown",e[e.AddinInitialized=7]="AddinInitialized",e[e.OpenWindow=8]="OpenWindow",e[e.MessageParent=9]="MessageParent",e[e.SendMessage=10]="SendMessage"}(t.MethodId||(t.MethodId={}));var n=function(){function t(e){this.hostScriptProxy=e}return t.prototype.execute=function(t,n,o){var r=n;null==r&&(r=[]);var i={id:t,apiArgs:r};this.hostScriptProxy.invokeMethod(e.WebView.MessageHandlerName,e.WebView.MethodId.Execute,i,(function(t){var n=t;if(e.OUtil.isArray(t)&&t.length>=2){t[0];n=t[1]}if(o)return o(new e.WebkitSafeArray(n))}))},t.prototype.registerEvent=function(t,n,o,r,i){this.hostScriptProxy.registerEvent(e.WebView.MessageHandlerName,e.WebView.MethodId.RegisterEvent,t,o,(function(t){var n=t,o=0;e.OUtil.isArray(t)&&t.length>=2&&(o=t[0],n=t[1]),r&&r(o,new e.WebkitSafeArray(n))}),(function(t){if(i)return i(new e.WebkitSafeArray(t))}))},t.prototype.unregisterEvent=function(t,n,o,r){this.hostScriptProxy.unregisterEvent(e.WebView.MessageHandlerName,e.WebView.MethodId.UnregisterEvent,t,o,(function(t){return r(new e.WebkitSafeArray(t))}))},t.prototype.messageParent=function(t){var n={dialogMessage:{messageType:0,messageContent:t[e.ParameterNames.MessageToParent]}};window.opener.postMessage(JSON.stringify(n),window.location.origin)},t.prototype.openDialog=function(n,o,r,i,a){var s=JSON.parse(r),l=s.url;if(l){var c=l.split("#"),u="?";l.indexOf("?")>-1&&(u="&");var d="width="+screen.width*s.width/100+", height="+screen.height*s.height/100;c[0]=c[0].concat(u).concat("action=displayDialog");var f,p=c.join("#");t.popup=window.open(p,"",d),window.addEventListener("message",(function(o){if(o.source==t.popup)try{var r=JSON.parse(o.data);r.dialogMessage&&i(n,[0,r.dialogMessage.messageContent])}catch(t){e.Utility.trace("messages received cannot be handled. Message:"+o.data)}})),f=window.setInterval((function(){try{(null==t.popup||t.popup.closed)&&(window.clearInterval(f),i(n,[12006]))}catch(t){e.Utility.trace("Error happened when popup window closed.")}}),1e3),a(0)}},t.prototype.closeDialog=function(e,n,o,r){t.popup?(t.popup.close(),t.popup=null,r(0)):r(5001)},t.prototype.sendMessage=function(t){var n=t[e.ParameterNames.MessageContent];!isNaN(parseFloat(n))&&isFinite(n)&&(n=n.toString()),this.hostScriptProxy.invokeMethod(e.WebView.MessageHandlerName,e.WebView.MethodId.SendMessage,n,null)},t.prototype.closeSdxDialog=function(t){throw e.Utility.createNotImplementedException()},t.prototype.resizeSdxDialog=function(t,n){throw e.Utility.createNotImplementedException()},t}();t.WebViewHostController=n}(e.WebView||(e.WebView={}))}(OSF||(OSF={})),function(e){var t=function(t){function n(e,n,o,r){var i=t.call(this,e,n,o,r)||this;return i._serializedSettings={},i.initializeWebViewMessaging(),i}return __extends(n,t),n.prototype.initializeWebViewMessaging=function(){e.ScriptMessaging=e.WebView.ScriptMessaging},n.prototype.getAppContext=function(t,n,o){var r,i=this;r=this._hostInfo.isDialog?e.WebView.PopupMessageHandlerName:e.WebView.MessageHandlerName,e.ScriptMessaging.GetScriptMessenger().invokeMethod(r,e.WebView.MethodId.GetContext,[],(function(t){var o,r=e.Webkit.AppContextProperties,a=t[r.AppType],s=t[r.Settings];if(s&&2===s.length)for(var l=s[0],c=s[1],u=0;u<l.length;u++)i._serializedSettings[l[u]]=c[u];var d=t[r.SolutionReferenceId],f=t[r.MajorVersion],p=t[r.MinorVersion],h=t[r.AppCapabilities],g=t[r.APPUILocale],m=t[r.AppDataLocale],y=t[r.DocumentUrl],v=t[r.ActivationMode],b=t[r.ControlIntegrationLevel],C=t[r.SolutionToken];C=C?C.toString():"";var _=t[r.CorrelationId],O=t[r.InstanceId],S=t[r.TouchEnabled],A=t[r.CommerceAllowed],E=t[r.RequirementMatrix],P=t[r.HostCustomMessage],R=t[r.HostFullVersion],T=t[r.InitialDisplayMode];o=new e.OfficeAppContext(d,a,f,g,m,y,h,(function(){return i._serializedSettings}),v,b,C,_,O,S,A,p,E,P,R,void 0,void 0,void 0,void 0,void 0,void 0,void 0,T,void 0,void 0,void 0,!1,void 0,void 0),n(o)}))},n.prototype.createClientHostController=function(){return this._clientHostController||(this._clientHostController=new e.WebView.WebViewHostController(e.ScriptMessaging.GetScriptMessenger())),this._clientHostController},n.prototype.createAsyncMethodExecutor=function(){return new e.SafeArrayAsyncMethodExecutor(this.createClientHostController())},n.prototype.createClientSettingsManager=function(){return new e.WebViewClientSettingsManager(this,e.ScriptMessaging.GetScriptMessenger())},n}(e.InitializationHelper);e.WebViewInitializationHelper=t}(OSF||(OSF={})),function(e){var t;!function(e){!function(e){e[e.MethodCallback=0]="MethodCallback",e[e.EventCallback=1]="EventCallback"}(e.CallbackType||(e.CallbackType={}));var t=function(e,t,n){this.callbackType=e,this.callbackId=t,this.params=n};e.CallbackData=t}(t||(t={})),function(n){var o=function(){function n(){}return n.getInstance=function(){return null==n.uniqueInstance&&(n.uniqueInstance=new n),n.uniqueInstance},n.prototype.postMessage=function(e,t){agaveHost.postMessage(t)},n.prototype.ReceiveMessage=function(n){switch(n.callbackType){case t.CallbackType.MethodCallback:e.WebView.ScriptMessaging.agaveHostCallback(n.callbackId,n.params);break;case t.CallbackType.EventCallback:e.WebView.ScriptMessaging.agaveHostEventCallback(n.callbackId,n.params)}},n}();n.Poster=o}(e.Android||(e.Android={})),function(n){var o=function(){function n(){window.addEventListener("message",this.OnReceiveMessage.bind(this))}return n.prototype.postMessage=function(e,t){window.parent.postMessage(t,"*")},n.prototype.OnReceiveMessage=function(n){if(n.source==window.parent&&window.parent==window.top&&n.origin.startsWith("ms-appx-web://")){var o;try{o=JSON.parse(n.data)}catch(e){return}switch(o.callbackType){case t.CallbackType.MethodCallback:e.WebView.ScriptMessaging.agaveHostCallback(o.callbackId,JSON.parse(o.params));break;case t.CallbackType.EventCallback:e.WebView.ScriptMessaging.agaveHostEventCallback(o.callbackId,JSON.parse(o.params))}}},n}();n.Poster=o}(e.WinRT||(e.WinRT={}))}(OSF||(OSF={})),function(e){!function(t){!function(t){var n=null;t.agaveHostCallback=function(e,t){n.agaveHostCallback(e,t)},t.agaveHostEventCallback=function(e,t){n.agaveHostEventCallback(e,t)},t.GetScriptMessenger=function(){if(null==n){var t=e._OfficeAppFactory.getHostInfo().hostPlatform;if(t===e.HostInfoPlatform.android)n=new r("OSF.ScriptMessaging.agaveHostCallback","OSF.ScriptMessaging.agaveHostEventCallback",e.Android.Poster.getInstance());else{if(t!==e.HostInfoPlatform.winrt)throw e.Utility.createNotImplementedException();n=new r("agaveHostCallback","agaveHostEventCallback",new e.WinRT.Poster)}}return n};var o=function(e,t,n){this.id=e,this.targetId=t,this.handler=n},r=function(){function e(t,n,o){this.callingIndex=0,this.callbackList={},this.eventHandlerList={},this.asyncMethodCallbackFunctionName=t,this.eventCallbackFunctionName=n,this.poster=o,this.conversationId=e.getCurrentTimeMS().toString()}return e.prototype.invokeMethod=function(e,t,n,o){this.postMessage({},e,t,n,o)},e.prototype.registerEvent=function(e,t,n,r,i,a){var s={eventCallbackFunction:this.eventCallbackFunctionName},l={id:n,targetId:r},c=this.postMessage(s,e,t,l,a);this.eventHandlerList[c]=new o(n,r,i)},e.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)},e.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]}},e.prototype.agaveHostEventCallback=function(e,t){var n=this.eventHandlerList[e];n&&n.handler(t)},e.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},e.prototype.generateCorrelationId=function(){return++this.callingIndex,this.conversationId+this.callingIndex},e.getCurrentTimeMS=function(){return(new Date).getTime()},e.MESSAGE_TIME_DELTA=10,e}()}(t.ScriptMessaging||(t.ScriptMessaging={}))}(e.WebView||(e.WebView={}))}(OSF||(OSF={})),function(e){var t=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),n.prototype.messageParent=function(t){if(e.Utility.externalNativeFunctionExists(typeof window.external.MessageParent2))"undefined"!=typeof OsfOMToken&&OsfOMToken?window.external.MessageParent2(JSON.stringify(t),OsfOMToken):window.external.MessageParent2(JSON.stringify(t));else{var n=t[e.ParameterNames.MessageToParent];window.external.MessageParent(n)}},n.prototype.openDialog=function(e,t,n,o,r){this.registerEvent(e,t,n,o,r)},n.prototype.closeDialog=function(e,t,n,o){this.unregisterEvent(e,t,n,o)},n.prototype.sendMessage=function(t){if(e.Utility.externalNativeFunctionExists(typeof window.external.MessageChild2))"undefined"!=typeof OsfOMToken&&OsfOMToken?window.external.MessageChild2(JSON.stringify(t),OsfOMToken):window.external.MessageChild2(JSON.stringify(t));else{var n=t[e.ParameterNames.MessageContent];window.external.MessageChild(n)}},n.prototype.closeSdxDialog=function(t){e.Utility.externalNativeFunctionExists(typeof window.external.closeSdxDialog)&&window.external.closeSdxDialog(t)},n.prototype.resizeSdxDialog=function(t,n){e.Utility.externalNativeFunctionExists(typeof window.external.resizeSdxDialog)&&window.external.resizeSdxDialog(t,n)},n}(e.RichClientHostController);e.Win32RichClientHostController=t}(OSF||(OSF={})),function(e){var t=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),n.prototype.openDialog=function(t,o,r,i,a){if(!n.popup||n.popup.closed){window.dialogAPIErrorCode=void 0;var s=JSON.parse(r),l=s.url;if(l){var c=l.split("#"),u="?";c[0].indexOf("?")>-1&&(u="&");var d="width="+screen.width*s.width/100+", height="+screen.height*s.height/100;c[0]=c[0].concat(u).concat("action=displayDialog");var f=c.join("#");if(n.popup=window.open(f,"",d),n.DialogEventListener=function(o){if(o.source==n.popup)try{var r=JSON.parse(o.data);r.dialogMessage&&i(t,[0,r.dialogMessage.messageContent])}catch(t){e.Utility.trace("messages received cannot be handlered. Message:"+o.data)}},null!=n.popup&&null==window.dialogAPIErrorCode)window.addEventListener("message",n.DialogEventListener),n.interval=window.setInterval((function(){try{(null==n.popup||n.popup.closed)&&(window.clearInterval(n.interval),window.removeEventListener("message",n.DialogEventListener),n.NotifyError=null,i(t,[12006]))}catch(t){e.Utility.trace("Error happened when popup window closed.")}}),500),n.NotifyError=function(e){i(t,[e])},a(0);else{var p=5001;window.dialogAPIErrorCode&&(p=window.dialogAPIErrorCode),a(p)}}else a(12003)}else a(12007)},n.prototype.messageParent=function(t){var n={dialogMessage:{messageType:0,messageContent:t[e.ParameterNames.MessageToParent]}};window.opener.postMessage(JSON.stringify(n),window.location.origin)},n.prototype.closeDialog=function(e,t,o,r){n.popup?(n.interval&&window.clearInterval(n.interval),n.popup.close(),n.popup=null,window.removeEventListener("message",n.DialogEventListener),n.NotifyError=null,r(0)):r(5001)},n}(e.Webkit.WebkitHostController);e.MacRichClientHostController=t}(OSF||(OSF={})),function(e){var t;!function(e){!function(e){e.Init=function(){return function(){"use strict";function e(e){return"function"==typeof e}var t,n=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=0,r=function(e,n){f[o]=e,f[o+1]=n,2===(o+=2)&&(t?t(p):l())};var i=("undefined"!=typeof window?window:void 0)||{},a=(i.MutationObserver||i.WebKitMutationObserver,"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)),s="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;var l,c,u,d,f=new Array(1e3);function p(){for(var e=0;e<o;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}o=0}function h(){}a?(u=process.nextTick,d=process.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/),Array.isArray(d)&&"0"===d[1]&&"10"===d[2]&&(u=setImmediate),l=function(){u(p)}):s?((c=new MessageChannel).port1.onmessage=p,l=function(){c.port2.postMessage(0)}):l=function(){setTimeout(p,1)};var g=void 0,m=new A;function y(t,n){if(n.constructor===t.constructor)!function(e,t){1===t._state?C(e,t._result):2===t._state?_(e,t._result):O(t,void 0,(function(t){v(e,t)}),(function(t){_(e,t)}))}(t,n);else{var o=function(e){try{return e.then}catch(e){return m.error=e,m}}(n);o===m?_(t,m.error):void 0===o?C(t,n):e(o)?function(e,t,n){r((function(e){var o=!1,r=function(e,t,n,o){try{e.call(t,n,o)}catch(e){return e}}(n,t,(function(n){o||(o=!0,t!==n?v(e,n):C(e,n))}),(function(t){o||(o=!0,_(e,t))}),e._label);!o&&r&&(o=!0,_(e,r))}),e)}(t,n,o):C(t,n)}}function v(e,t){var n;e===t?_(e,new TypeError("You cannot resolve a promise with itself")):"function"==typeof(n=t)||"object"==typeof n&&null!==n?y(e,t):C(e,t)}function b(e){e._onerror&&e._onerror(e._result),S(e)}function C(e,t){e._state===g&&(e._result=t,e._state=1,0!==e._subscribers.length&&r(S,e))}function _(e,t){e._state===g&&(e._state=2,e._result=t,r(b,e))}function O(e,t,n,o){var i=e._subscribers,a=i.length;e._onerror=null,i[a]=t,i[a+1]=n,i[a+2]=o,0===a&&e._state&&r(S,e)}function S(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?P(n,o,r,i):r(i);e._subscribers.length=0}}function A(){this.error=null}var E=new A;function P(t,n,o,r){var i,a,s,l,c=e(o);if(c){if((i=function(e,t){try{return e(t)}catch(e){return E.error=e,E}}(o,r))===E?(l=!0,a=i.error,i=null):s=!0,n===i)return void _(n,new TypeError("A promises callback cannot return that same promise."))}else i=r,s=!0;n._state!==g||(c&&s?v(n,i):l?_(n,a):1===t?C(n,i):2===t&&_(n,i))}function R(e,t){var n=this;n._instanceConstructor=e,n.promise=new e(h),n._validateInput(t)?(n._input=t,n.length=t.length,n._remaining=t.length,n._init(),0===n.length?C(n.promise,n._result):(n.length=n.length||0,n._enumerate(),0===n._remaining&&C(n.promise,n._result))):_(n.promise,n._validationError())}R.prototype._validateInput=function(e){return n(e)},R.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},R.prototype._init=function(){this._result=new Array(this.length)};var T=R;R.prototype._enumerate=function(){for(var e=this,t=e.length,n=e.promise,o=e._input,r=0;n._state===g&&r<t;r++)e._eachEntry(o[r],r)},R.prototype._eachEntry=function(e,t){var n,o=this,r=o._instanceConstructor;"object"==typeof(n=e)&&null!==n?e.constructor===r&&e._state!==g?(e._onerror=null,o._settledAt(e._state,t,e._result)):o._willSettleAt(r.resolve(e),t):(o._remaining--,o._result[t]=e)},R.prototype._settledAt=function(e,t,n){var o=this,r=o.promise;r._state===g&&(o._remaining--,2===e?_(r,n):o._result[t]=n),0===o._remaining&&C(r,o._result)},R.prototype._willSettleAt=function(e,t){var n=this;O(e,void 0,(function(e){n._settledAt(1,t,e)}),(function(e){n._settledAt(2,t,e)}))};var I=function(e){return new T(this,e).promise};var w=function(e){var t=new this(h);if(!n(e))return _(t,new TypeError("You must pass an array to race.")),t;var o=e.length;function r(e){v(t,e)}function i(e){_(t,e)}for(var a=0;t._state===g&&a<o;a++)O(this.resolve(e[a]),void 0,r,i);return t};var F=function(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(h);return v(t,e),t};var D=function(e){var t=new this(h);return _(t,e),t},x=0;var k=N;function N(t){this._id=x++,this._state=void 0,this._result=void 0,this._subscribers=[],h!==t&&(e(t)||function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof N||function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}(),function(e,t){try{t((function(t){v(e,t)}),(function(t){_(e,t)}))}catch(t){_(e,t)}}(this,t))}return N.all=I,N.race=w,N.resolve=F,N.reject=D,N._setScheduler=function(e){t=e},N._setAsap=function(e){r=e},N._asap=r,N.prototype={constructor:N,then:function(e,t){var n=this,o=n._state;if(1===o&&!e||2===o&&!t)return this;var i=new this.constructor(h),a=n._result;if(o){var s=arguments[o-1];r((function(){P(o,i,s,a)}))}else O(n,i,e,t);return i},catch:function(e){return this.then(null,e)}},k}.call(this)}}(e.PromiseImpl||(e.PromiseImpl={}))}(e._Internal||(e._Internal={})),function(e){e.OfficePromise=function(){if("undefined"==typeof window&&"function"==typeof Promise)return Promise;if("undefined"!=typeof window){if(window.Promise)return window.Promise;var t=e.PromiseImpl.Init();return window.Promise=t,t}}()}(t=e._Internal||(e._Internal={})),e.OfficePromise=t.OfficePromise,e.Promise=e.OfficePromise}(Office||(Office={})),function(e){!function(t){var n,o=e.OUtil.Guid.generateNewGuid(),r=new RegExp("^https?://store\\.office(ppe|-int)?\\.com/","i"),i=!1,a="PRIVATE";t.enableTelemetry=!0;var s=function(){};t.AppInfo=s;var l=function(){function t(){this.clientIDKey="Office API client",this.logIdSetKey="Office App Log Id Set"}return t.prototype.getClientId=function(){var t=this.getValue(this.clientIDKey);return(!t||t.length<=0||t.length>40)&&(t=e.OUtil.Guid.generateNewGuid(),this.setValue(this.clientIDKey,t)),t},t.prototype.getValue=function(t){var n=e.OUtil.getLocalStorage(),o="";return n&&(o=n.getItem(t)),o},t.prototype.setValue=function(t,n){var o=e.OUtil.getLocalStorage();o&&o.setItem(t,n)},t}();function c(e){return e&&(e=e.replace(/[{}]/g,"").toLowerCase()),e||""}function u(e){try{return JSON.parse(e)}catch(t){return e}}function d(){n&&(i||OTel.OTelLogger.onTelemetryLoaded((function(){var t=[],o=n.isMos?1:0;t=t.concat([oteljs.makeStringDataField("Browser",n.browser),oteljs.makeInt64DataField("AppSizeWidth",window.innerWidth),oteljs.makeInt64DataField("AppSizeHeight",window.innerHeight),oteljs.makeInt64DataField("IsMOS",o)]),e.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_10045620_CopilotAgentTelSettings")&&n.launchSource&&n.launchReason&&(t.push(oteljs.makeStringDataField("LaunchSource",n.launchSource)),t.push(oteljs.makeStringDataField("LaunchReason",n.launchReason))),Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.AppActivatedX",dataFields:t,eventFlags:{dataCategories:2,diagnosticLevel:110,samplingPolicy:191}})})))}function f(e,t){}function p(){var t=0!=(e._OfficeAppFactory.getHostInfo().flags&e.HostInfoFlags.PublicAddin);return t||!!n&&g(e._OfficeAppFactory.getHostInfo().hostPlatform,n.hostVersion)}function h(e,t){return p()||t!==e?t:a}function g(t,n){var o=!1,r=/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/.exec(n);if(r){var i=parseInt(r[1]),a=parseInt(r[2]),s=parseInt(r[3]);t==e.HostInfoPlatform.win32?(i<16||16==i&&s<14225)&&(o=!0):t==e.HostInfoPlatform.mac&&(i<16||16==i&&(a<52||52==a&&s<808))&&(o=!0)}return o}function m(){return 0!=(e._OfficeAppFactory.getHostInfo().flags&e.HostInfoFlags.IsMos)}t.initialize=function(d){if(t.enableTelemetry&&!n){n=new s,d.get_hostFullVersion()?n.hostVersion=d.get_hostFullVersion():n.hostVersion=d.get_appVersion(),n.appId=p()?d.get_id():a,n.marketplaceType=d._marketplaceType,n.host=""+d.get_appName(),n.browser=window.navigator.userAgent,n.correlationId=c(d.get_correlationId()),n.clientId=(new l).getClientId(),n.appInstanceId=d.get_appInstanceId(),n.appInstanceId&&(n.appInstanceId=c(n.appInstanceId),n.appInstanceId=h(d.get_id(),n.appInstanceId)),n.message=d.get_hostCustomMessage(),n.officeJSVersion=e.ConstantNames.FileVersion,n.hostJSVersion="NA",d._wacHostEnvironment&&(n.wacHostEnvironment=d._wacHostEnvironment);var f=d.get_isFromWacAutomation();null!=f&&(n.isFromWacAutomation=f.toString().toLowerCase());var g=d.get_docUrl();n.docUrl=r.test(g)?g:"";var y=location.href;if(y&&(n.isPreload=-1!==y.indexOf("preload=1"),y=y.split("?")[0].split("#")[0]),n.isMos=m(),e.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_10045620_CopilotAgentTelSettings")){var v=d.get_settingsFunc()();v&&v.LaunchSource&&v.LaunchReason&&(n.launchSource=u(v.LaunchSource),n.launchReason=u(v.LaunchReason))}!function(t,n){n.assetId="",n.userId="";try{if(!e.Utility.isNullOrEmpty(t)){var o=decodeURIComponent(t),r=new DOMParser,i=void 0;if(e.LoadScriptHelper.trustedTypesOptIn()&&window.trustedTypes&&window.trustedTypes.createPolicy)i=window.trustedTypes.createPolicy("officejs-domparser",{createHTML:function(e){return e}}).createHTML(o);else i=o;var a=r.parseFromString(i,"text/xml"),s=a.getElementsByTagName("t")[0].attributes.getNamedItem("cid"),l=a.getElementsByTagName("t")[0].attributes.getNamedItem("oid");s&&s.nodeValue?n.userId=s.nodeValue:l&&l.nodeValue&&(n.userId=l.nodeValue),n.assetId=a.getElementsByTagName("t")[0].attributes.getNamedItem("aid").nodeValue}}catch(e){}}(d.get_eToken(),n),n.sessionId=o,OTel.OTelLogger.initialize(n),n.isPreload?i=!0:t.onAppActivated()}},t.onAppActivated=d,t.onScriptDone=function(e,t,n,o){},t.onCallDone=function(e,t,n,o,r){},t.onMethodDone=function(e,t,n,o){},t.onPropertyDone=function(t,n){e.AppTelemetry.onCallDone("property",-1,t,n,0)},t.onCheckWACHost=function(e,t,n,o,r){},t.onEventDone=function(t,n){e.AppTelemetry.onCallDone("event",t,null,0,n)},t.onRegisterDone=function(t,n,o,r){e.AppTelemetry.onCallDone(t?"registerevent":"unregisterevent",n,null,o,r)},t.onAppClosed=function(e,t){},t.setOsfControlAppCorrelationId=function(e){c(e)},t.doAppInitializationLogging=f,t.logAppCommonMessage=function(e){},t.logAppException=function(e){},t.CallOnAppActivatedIfPending=function(){i&&(i=!1,d())},t.canSendAddinId=p,t.getCompliantAppInstanceId=h,t._isComplianceExceptedHost=g,t.isMos=m}(e.AppTelemetry||(e.AppTelemetry={}))}(OSF||(OSF={})),function(e){var t=function(){function t(){}return t.loaded=function(){return!(void 0===t.logger)},t.create=function(t){var n,o={id:t.appId,marketplaceType:t.marketplaceType,assetId:t.assetId,officeJsVersion:t.officeJSVersion,hostJsVersion:t.hostJSVersion,browserToken:t.clientId,instanceId:t.appInstanceId,sessionId:t.sessionId},r=oteljs.Contracts.Office.System.SDX.getFields("SDX",o);if("web"===OSF._OfficeAppFactory.getHostInfo().hostPlatform)n=new e.SdxWacSink;else{if(!Office.context.requirements.isSetSupported("Telemetry","1.2"))return console.error("Cannot create telemetry sink successfully"),null;n=new e.RichApiSink,this.richApiSink=n}var i=new oteljs.SimpleTelemetryLogger(void 0,r);return i.addSink(n),i.setTenantToken("Office.Extensibility.OfficeJs","db334b301e7b474db5e0f02f07c51a47-a1b5bc36-1bbe-482f-a64a-c2d9cb606706-7439",1755),oteljs.onNotification().addListener((function(e){OSF.Utility.debugLog(e.message())})),i},t.checkAndResolvePromises=function(){t.loaded()&&(t.promises.forEach((function(e){e()})),t.promises=[])},t.initialize=function(e){t.Enabled?Office.onReadyInternal().then((function(){t.loaded()||(OSF.Utility.debugLog("Creating OTelLogger"),t.logger=t.create(e),t.checkAndResolvePromises())})):t.promises=[]},t.sendTelemetryEvent=function(e){t.onTelemetryLoaded((function(){try{t.logger.sendTelemetryEvent(e)}catch(e){console.error("Cannot send telemetry event: "+JSON.stringify(e))}}))},t.sendNonStandardEvent=function(e,n){t.onTelemetryLoaded((function(){try{t.logger.sendNonStandardEvent(e,n)}catch(e){console.error("Cannot send telemetry event: "+JSON.stringify(e))}}))},t.flushTelemetryQueue=function(){var e=this;return new Office.Promise((function(n){t.onTelemetryLoaded((function(){e.richApiSink?e.richApiSink.flushTelemetryQueue().then((function(){n()})):n()}))}))},t.onTelemetryLoaded=function(e){t.Enabled&&(t.loaded()?e():t.promises.push(e))},t.promises=[],t.Enabled=!0,t}();e.OTelLogger=t}(OTel||(OTel={})),function(e){var t=function(){function e(){var e=this;this._requestIsPending=!0,this._telemetryQueue=[],this.pause(1e3).then((function(){var t=e._telemetryQueue;e._telemetryQueue=[],e._requestIsPending=!1,e.processTelemetryEvents(t)}))}return e.prototype.sendTelemetryEvent=function(e){this._telemetryQueue.push([e,1]),this._requestIsPending||this.processWorkBacklog()},e.prototype.sendNonStandardEvent=function(e,t){this._telemetryQueue.push([e,t]),this._requestIsPending||this.processWorkBacklog()},e.prototype.flushTelemetryQueue=function(){var e=this;return new Office.Promise((function(t){var n=e._telemetryQueue;e._telemetryQueue=[],e.processTelemetryEvents(n).then((function(){t()}))}))},e.prototype.processWorkBacklog=function(){var e=this;this._requestIsPending=!0;var t=this._telemetryQueue;this._telemetryQueue=[],this.processTelemetryEvents(t).then(this.waitAndProcessMore.bind(this)).catch((function(t){oteljs.logError(1,"RichApiSink Error",t),e.waitAndProcessMore.bind(e)()}))},e.prototype.waitAndProcessMore=function(){var e=this;this.pause(1e3).then((function(){e._telemetryQueue.length>0&&setTimeout((function(){return e.processWorkBacklog()}),0),e._requestIsPending=!1})).catch((function(){}))},e.prototype.processTelemetryEvents=function(e){var t=this,n=new OfficeCore.RequestContext;return e.forEach((function(e){var o=e[0],r=e[1];if(o.telemetryProperties){var i=[];t.addDataFields(i,o.dataFields);var a=o.eventContract?o.eventContract.name:"";o.eventContract&&t.addDataFields(i,o.eventContract.dataFields),1===r?n.telemetry.sendTelemetryEvent(o.telemetryProperties,o.eventName,a,oteljs.getEffectiveEventFlags(o),i):n.telemetry.sendNonStandardEvent(o.telemetryProperties,o.eventName,a,oteljs.getEffectiveEventFlags(o),i,r)}})),n.sync().catch((function(){oteljs.logNotification(2,1,(function(){return"RichApi telemetry call failed."}))}))},e.prototype.addDataFields=function(e,t){t&&t.forEach((function(t){e.push({name:t.name,value:t.value,classification:t.classification?t.classification:4,type:t.dataType})}))},e.prototype.pause=function(e){return new Office.Promise((function(t){return setTimeout(t,e)}))},e}();e.RichApiSink=t}(OTel||(OTel={})),function(e){var t=function(){function e(){}return e.prototype.sendTelemetryEvent=function(e,t){try{if(e.dataFields&&e.dataFields.filter((function(e){var t=e.classification;return t&&4!==t&&1!==t})).length>0)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)}},e.prototype.sendNonStandardEvent=function(e,t){try{if(1===t)throw new Error("Please call sendTelemetryEvent for events of type "+t);if(e.dataFields&&e.dataFields.filter((function(e){var t=e.classification;return t&&4!==t&&1!==t&&32!==t&&2048!==t})).length>0)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)}},e}();e.SdxWacSink=t}(OTel||(OTel={})),function(e){var t,n=[];function o(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 r(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{for(var i=0,a=function(e){var t=Navigator.prototype[e];t&&(Navigator.prototype[e]=function(n,a,s){if(3===arguments.length&&Function.prototype.isPrototypeOf(a)&&Function.prototype.isPrototypeOf(s)){var l=(i++).toString();return o(l,"Navigator.prototype."+e,JSON.stringify([{audio:!!n.audio,video:!!n.video}])),t.apply(this,[n,function(){return r(l,!0),a.apply(this,arguments)},function(){return r(l,!1,arguments[0]),s.apply(this,arguments)}])}return t.apply(this,arguments)},n.push("Navigator.prototype."+e))},s=0,l=["getUserMedia","webkitGetUserMedia","mozGetUserMedia"];s<l.length;s++){a(l[s])}var c=MediaDevices.prototype.getUserMedia;c&&(MediaDevices.prototype.getUserMedia=function(e){var t=(i++).toString();return 1===arguments.length&&void 0!==e?(o(t,"MediaDevices.prototype.getUserMedia",JSON.stringify([{audio:!!e.audio,video:!!e.video}])),c.apply(this,arguments).then((function(){return r(t,!0),arguments[0]}),(function(){throw r(t,!1,arguments[0]),arguments[0]}))):c.apply(this,arguments)},n.push("MediaDevices.prototype.getUserMedia"));for(var u=function(e){var t=Geolocation.prototype[e];t&&(Geolocation.prototype[e]=function(n,a,s){for(var l=[],c=3;c<arguments.length;c++)l[c-3]=arguments[c];var u=(i++).toString(),d=!1;o(u,"Geolocation.prototype."+e,JSON.stringify([]));var f=Function.prototype.isPrototypeOf(n)?function(){return d||(r(u,!0),d=!0),n.apply(this,arguments)}:n,p=Function.prototype.isPrototypeOf(a)?function(){return d||(r(u,!1,arguments[0]),d=!0),a.apply(this,arguments)}:a;return t.apply(this,[f,p,s].concat(l))},n.push("Geolocation.prototype."+e))},d=0,f=["getCurrentPosition","watchPosition"];d<f.length;d++){u(f[d])}}catch(e){t=e.toString()}OTel.OTelLogger.onTelemetryLoaded((function(){Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.AddinSpecialPermissionHookInstall",dataFields:[oteljs.makeStringDataField("hooksInstalled",JSON.stringify(n)),oteljs.makeStringDataField("error",t)],eventFlags:{dataCategories:2,diagnosticLevel:110}})}))}(Office||(Office={})),function(e){!function(e){!function(e){e.FeatureGates={},e.EventType=OSF.EventType,e.sendTelemetryEvent=function(e){OTel.OTelLogger.sendTelemetryEvent(e)},e.sendNonStandardEvent=function(e,t){OTel.OTelLogger.sendNonStandardEvent(e,t)},e.flushTelemetryQueue=function(){return OTel.OTelLogger.flushTelemetryQueue()},e.telemetrySink=OTel.OTelLogger}(e.WebExtension||(e.WebExtension={}))}(e.Office||(e.Office={}))}(Microsoft||(Microsoft={})),function(e){e.sendTelemetryEvent=function(e){Microsoft.Office.WebExtension.sendTelemetryEvent(e)},e.sendNonStandardEvent=function(e,t){Microsoft.Office.WebExtension.sendNonStandardEvent(e,t)},e.flushTelemetryQueue=function(){return Microsoft.Office.WebExtension.flushTelemetryQueue()},e.telemetrySink=Microsoft.Office.WebExtension.telemetrySink,e.isTrustedHost=function(){return __awaiter(this,void 0,void 0,(function(){var t,n,o;return __generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),OSF._OfficeAppFactory.getHostInfo().hostPlatform===OSF.HostInfoPlatform.web?[3,2]:[4,e.onReady()];case 1:return r.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 r.sent(),[2,!0];case 4:return[2,!1];case 5:return[3,7];case 6:return o=r.sent(),OSF.AppTelemetry&&OSF.AppTelemetry.logAppException("Exception happens at Office.isTrustedHost."+o),[2,!1];case 7:return[2]}}))}))},Microsoft.Office.WebExtension.onReadyInternal=e.onReadyInternal}(Office||(Office={}));var OfficeExtension;__extends=this&&this.__extends||function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();!function(e){var t;!function(e){e.graph="graph",e.wfe="wfe"}(t=e.RemoteEndpointType||(e.RemoteEndpointType={}));var n=function(){function e(){}return e.prototype._resolveRequestUrlAndHeaderInfo=function(){return u._createPromiseFromResult(null)},e.prototype._createRequestExecutorOrNull=function(){return null},e.prototype.getEventRegistration=function(e){return null},e}();e.SessionBase=n;var o=function(){function e(){}return e.setCustomSendRequestFunc=function(t){e.s_customSendRequestFunc=t},e.xhrSendRequestFunc=function(e){return u.createPromise((function(t,n){var o=new XMLHttpRequest;if(o.open(e.method,e.url),o.onload=function(){var e={statusCode:o.status,headers:u._parseHttpResponseHeaders(o.getAllResponseHeaders()),body:o.responseText};t(e)},o.onerror=function(){n(new r.RuntimeError({code:a.connectionFailure,httpStatusCode:o.status,message:u._getResourceString(s.connectionFailureWithStatus,o.statusText)}))},e.headers)for(var i in e.headers)o.setRequestHeader(i,e.headers[i]);o.send(u._getRequestBodyText(e))}))},e.fetchSendRequestFunc=function(e){var t=u._getRequestBodyText(e);return""===t&&(t=void 0),fetch(e.url,{method:e.method,headers:e.headers,body:t}).then((function(e){return e.text().then((function(t){var n=e.status,o={};return e.headers.forEach((function(e,t){o[t]=e})),{statusCode:n,headers:o,body:t}}))}))},e.sendRequest=function(t){e.validateAndNormalizeRequest(t);var n=e.s_customSendRequestFunc;return n||(n="undefined"!=typeof fetch?e.fetchSendRequestFunc:e.xhrSendRequestFunc),n(t)},e.setCustomSendLocalDocumentRequestFunc=function(t){e.s_customSendLocalDocumentRequestFunc=t},e.sendLocalDocumentRequest=function(t){return e.validateAndNormalizeRequest(t),(e.s_customSendLocalDocumentRequestFunc||e.officeJsSendLocalDocumentRequestFunc)(t)},e.officeJsSendLocalDocumentRequestFunc=function(e){e=u._validateLocalDocumentRequest(e);var t=u._buildRequestMessageSafeArray(e);return u.createPromise((function(e,n){OSF.DDA.RichApi.executeRichApiRequestAsync(t,(function(t){var n;n="succeeded"==t.status?{statusCode:c.getResponseStatusCode(t),headers:c.getResponseHeaders(t),body:c.getResponseBody(t)}:c.buildHttpResponseFromOfficeJsError(t.error.code,t.error.message),u.log("Response:"),u.log(JSON.stringify(n)),e(n)}))}))},e.validateAndNormalizeRequest=function(e){if(u.isNullOrUndefined(e))throw r.RuntimeError._createInvalidArgError({argumentName:"request"});u.isNullOrEmptyString(e.method)&&(e.method="GET"),e.method=e.method.toUpperCase();var t=!1;if("object"==typeof e.headers&&e.headers[l.testRequestNameHeader]&&(t=!0),!t){var n=d._getCurrentTestNameWithSequenceId();n&&(e.headers||(e.headers={}),e.headers[l.testRequestNameHeader]=n)}},e.logRequest=function(t){if(u._logEnabled){if(u.log("---HTTP Request---"),u.log(t.method+" "+t.url),t.headers)for(var n in t.headers)u.log(n+": "+t.headers[n]);e._logBodyEnabled&&u.log(u._getRequestBodyText(t))}},e.logResponse=function(t){if(u._logEnabled){if(u.log("---HTTP Response---"),u.log(""+t.statusCode),t.headers)for(var n in t.headers)u.log(n+": "+t.headers[n]);e._logBodyEnabled&&u.log(t.body)}},e._logBodyEnabled=!1,e}();e.HttpUtility=o;var r,i=function(){function e(e){var t=this;this.m_bridge=e,this.m_promiseResolver={},this.m_handlers=[],this.m_bridge.onMessageFromHost=function(e){var n=JSON.parse(e);if(3==n.type){var o=n.message;if(o&&o.entries)for(var r=0;r<o.entries.length;r++){var i=o.entries[r];if(Array.isArray(i)){var a={messageCategory:i[0],messageType:i[1],targetId:i[2],message:i[3],id:i[4]};o.entries[r]=a}}}t.dispatchMessage(n)}}return e.init=function(t){if("object"==typeof t&&t){var n=new e(t);e.s_instance=n,o.setCustomSendLocalDocumentRequestFunc((function(t){t=u._validateLocalDocumentRequest(t);var o=0;u.isReadonlyRestRequest(t.method)||(o=1);var r=t.url.indexOf("?");if(r>=0){var i=t.url.substr(r+1),a=u._parseRequestFlagsAndCustomDataFromQueryStringIfAny(i);a.flags>=0&&(o=a.flags)}"string"==typeof t.body&&(t.body=JSON.parse(t.body));var s={id:e.nextId(),type:1,flags:o,message:t};return n.sendMessageToHostAndExpectResponse(s).then((function(e){return e.message}))}));for(var r=0;r<e.s_onInitedHandlers.length;r++)e.s_onInitedHandlers[r](n)}},Object.defineProperty(e,"instance",{get:function(){return e.s_instance},enumerable:!0,configurable:!0}),e.prototype.sendMessageToHost=function(e){this.m_bridge.sendMessageToHost(JSON.stringify(e))},e.prototype.sendMessageToHostAndExpectResponse=function(e){var t=this,n=u.createPromise((function(n,o){t.m_promiseResolver[e.id]=n}));return this.m_bridge.sendMessageToHost(JSON.stringify(e)),n},e.prototype.addHostMessageHandler=function(e){this.m_handlers.push(e)},e.prototype.removeHostMessageHandler=function(e){var t=this.m_handlers.indexOf(e);t>=0&&this.m_handlers.splice(t,1)},e.onInited=function(t){e.s_onInitedHandlers.push(t),e.s_instance&&t(e.s_instance)},e.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)},e.nextId=function(){return e.s_nextId++},e.s_onInitedHandlers=[],e.s_nextId=1,e}();e.HostBridge=i,"object"==typeof _richApiNativeBridge&&_richApiNativeBridge&&i.init(_richApiNativeBridge),function(e){var t=function(t){function n(e){var o=t.call(this,"string"==typeof e?e:e.message)||this;if(Object.setPrototypeOf(o,n.prototype),o.name="RichApi.Error","string"==typeof e?o.message=e:(o.code=e.code,o.message=e.message,o.traceMessages=e.traceMessages||[],o.innerError=e.innerError||null,o.debugInfo=o._createDebugInfo(e.debugInfo||{}),o.httpStatusCode=e.httpStatusCode,o.data=e.data),u.isNullOrUndefined(o.httpStatusCode)||200===o.httpStatusCode){var r={};r[a.accessDenied]=401,r[a.connectionFailure]=500,r[a.generalException]=500,r[a.invalidArgument]=400,r[a.invalidObjectPath]=400,r[a.invalidOrTimedOutSession]=408,r[a.invalidRequestContext]=400,r[a.timeout]=408,r[a.valueNotLoaded]=400,o.httpStatusCode=r[o.code]}return u.isNullOrUndefined(o.httpStatusCode)&&(o.httpStatusCode=500),o}return __extends(n,t),n.prototype.toString=function(){return this.code+": "+this.message},n.prototype._createDebugInfo=function(t){var n={code:this.code,message:this.message,toString:function(){return JSON.stringify(this)}};for(var o in t)n[o]=t[o];return this.innerError&&(this.innerError instanceof e.RuntimeError?n.innerError=this.innerError.debugInfo:n.innerError=this.innerError),n},n._createInvalidArgError=function(t){return new e.RuntimeError({code:a.invalidArgument,httpStatusCode:400,message:u.isNullOrEmptyString(t.argumentName)?u._getResourceString(s.invalidArgumentGeneric):u._getResourceString(s.invalidArgument,t.argumentName),debugInfo:t.errorLocation?{errorLocation:t.errorLocation}:{},innerError:t.innerError})},n}(Error);e.RuntimeError=t}(r=e._Internal||(e._Internal={})),e.Error=r.RuntimeError;var a=function(){function e(){}return e.apiNotFound="ApiNotFound",e.accessDenied="AccessDenied",e.generalException="GeneralException",e.activityLimitReached="ActivityLimitReached",e.invalidArgument="InvalidArgument",e.connectionFailure="ConnectionFailure",e.timeout="Timeout",e.invalidOrTimedOutSession="InvalidOrTimedOutSession",e.invalidObjectPath="InvalidObjectPath",e.invalidRequestContext="InvalidRequestContext",e.valueNotLoaded="ValueNotLoaded",e.requestPayloadSizeLimitExceeded="RequestPayloadSizeLimitExceeded",e.responsePayloadSizeLimitExceeded="ResponsePayloadSizeLimitExceeded",e.writeNotSupportedWhenModalDialogOpen="WriteNotSupportedWhenModalDialogOpen",e.undoNotSupported="UndoNotSupported",e}();e.CoreErrorCodes=a;var s=function(){function e(){}return e.apiNotFoundDetails="ApiNotFoundDetails",e.connectionFailureWithStatus="ConnectionFailureWithStatus",e.connectionFailureWithDetails="ConnectionFailureWithDetails",e.invalidArgument="InvalidArgument",e.invalidArgumentGeneric="InvalidArgumentGeneric",e.timeout="Timeout",e.invalidOrTimedOutSessionMessage="InvalidOrTimedOutSessionMessage",e.invalidSheetName="InvalidSheetName",e.invalidObjectPath="InvalidObjectPath",e.invalidRequestContext="InvalidRequestContext",e.valueNotLoaded="ValueNotLoaded",e}();e.CoreResourceStrings=s;var l=function(){function e(){}return e.flags="flags",e.sourceLibHeader="SdkVersion",e.processQuery="ProcessQuery",e.localDocument="http://document.localhost/",e.localDocumentApiPrefix="http://document.localhost/_api/",e.customData="customdata",e.testRequestNameHeader="x-test-request-name",e}();e.CoreConstants=l;var c=function(){function e(){}return e.buildMessageArrayForIRequestExecutor=function(t,n,o,r){var i=JSON.stringify(o.Body);u.log("Request:"),u.log(i);var a={};return u._copyHeaders(o.Headers,a),a[l.sourceLibHeader]=r,e.buildRequestMessageSafeArray(t,n,"POST",l.processQuery,a,i)},e.buildResponseOnSuccess=function(e,t){var n={HttpStatusCode:200,ErrorCode:"",ErrorMessage:"",Headers:null,Body:null};return n.Body=JSON.parse(e),n.Headers=t,n},e.buildResponseOnError=function(t,n){var o={HttpStatusCode:500,ErrorCode:"",ErrorMessage:"",Headers:null,Body:null};return o.ErrorCode=a.generalException,o.ErrorMessage=n,t==e.OfficeJsErrorCode_ooeNoCapability?(o.ErrorCode=a.accessDenied,o.HttpStatusCode=401):t==e.OfficeJsErrorCode_ooeActivityLimitReached?(o.ErrorCode=a.activityLimitReached,o.HttpStatusCode=429):t==e.OfficeJsErrorCode_ooeInvalidOrTimedOutSession?(o.ErrorCode=a.invalidOrTimedOutSession,o.HttpStatusCode=408,o.ErrorMessage=u._getResourceString(s.invalidOrTimedOutSessionMessage)):t==e.OfficeJsErrorCode_ooeRequestPayloadSizeLimitExceeded?(o.ErrorCode=a.requestPayloadSizeLimitExceeded,o.HttpStatusCode=400):t==e.OfficeJsErrorCode_ooeResponsePayloadSizeLimitExceeded?(o.ErrorCode=a.responsePayloadSizeLimitExceeded,o.HttpStatusCode=400):t==e.OfficeJsErrorCode_ooeWriteNotSupportedWhenModalDialogOpen?(o.ErrorCode=a.writeNotSupportedWhenModalDialogOpen,o.HttpStatusCode=400):t==e.OfficeJsErrorCode_ooeInvalidSheetName?(o.ErrorCode=a.invalidRequestContext,o.HttpStatusCode=400,o.ErrorMessage=u._getResourceString(s.invalidSheetName)):t==e.OfficeJsErrorCode_ooeUndoNotSupported&&(o.ErrorCode=a.undoNotSupported,o.HttpStatusCode=400),o},e.buildHttpResponseFromOfficeJsError=function(t,n){var o=500,r={error:{}};return r.error.code=a.generalException,r.error.message=n,t===e.OfficeJsErrorCode_ooeNoCapability?(o=403,r.error.code=a.accessDenied):t===e.OfficeJsErrorCode_ooeActivityLimitReached&&(o=429,r.error.code=a.activityLimitReached),{statusCode:o,headers:{},body:JSON.stringify(r)}},e.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,"","","","","",""]},e.getResponseBody=function(t){return e.getResponseBodyFromSafeArray(t.value.data)},e.getResponseHeaders=function(t){return e.getResponseHeadersFromSafeArray(t.value.data)},e.getResponseBodyFromSafeArray=function(e){var t=e[2];return"string"==typeof t?t:t.join("")},e.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},e.getResponseStatusCode=function(t){return e.getResponseStatusCodeFromSafeArray(t.value.data)},e.getResponseStatusCodeFromSafeArray=function(e){return e[0]},e.OfficeJsErrorCode_ooeInvalidOrTimedOutSession=5012,e.OfficeJsErrorCode_ooeActivityLimitReached=5102,e.OfficeJsErrorCode_ooeNoCapability=7e3,e.OfficeJsErrorCode_ooeRequestPayloadSizeLimitExceeded=5103,e.OfficeJsErrorCode_ooeResponsePayloadSizeLimitExceeded=5104,e.OfficeJsErrorCode_ooeWriteNotSupportedWhenModalDialogOpen=5016,e.OfficeJsErrorCode_ooeInvalidSheetName=1014,e.OfficeJsErrorCode_ooeUndoNotSupported=5017,e}();e.RichApiMessageUtility=c,function(e){e.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 e.Error("No Promise implementation found")}}(r=e._Internal||(e._Internal={}));var u=function(){function e(){}return e.log=function(t){e._logEnabled&&"undefined"!=typeof console&&console.log&&console.log(t)},e.checkArgumentNull=function(t,n){if(e.isNullOrUndefined(t))throw r.RuntimeError._createInvalidArgError({argumentName:n})},e.isNullOrUndefined=function(e){return null===e||void 0===e},e.isUndefined=function(e){return void 0===e},e.isNullOrEmptyString=function(e){return null===e||(void 0===e||0==e.length)},e.isPlainJsonObject=function(t){if(e.isNullOrUndefined(t))return!1;if("object"!=typeof t)return!1;if("[object Object]"!==Object.prototype.toString.apply(t))return!1;if(t.constructor&&!Object.prototype.hasOwnProperty.call(t,"constructor")&&!Object.prototype.hasOwnProperty.call(t.constructor.prototype,"hasOwnProperty"))return!1;for(var n in t)if(!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0},e.trim=function(e){return e.replace(new RegExp("^\\s+|\\s+$","g"),"")},e.caseInsensitiveCompareString=function(t,n){return e.isNullOrUndefined(t)?e.isNullOrUndefined(n):!e.isNullOrUndefined(n)&&t.toUpperCase()==n.toUpperCase()},e.isReadonlyRestRequest=function(t){return e.caseInsensitiveCompareString(t,"GET")},e._getResourceString=function(t,n){var o;if("undefined"!=typeof window&&window.Strings&&window.Strings.OfficeOM){var r="L_"+t,i=window.Strings.OfficeOM[r];i&&(o=i)}if(o||(o=e.s_resourceStringValues[t]),o||(o=t),!e.isNullOrUndefined(n))if(Array.isArray(n)){var a=n;o=e._formatString(o,a)}else o=o.replace("{0}",n);return o},e._formatString=function(e,t){return e.replace(/\{\d\}/g,(function(e){var n=parseInt(e.substr(1,e.length-2));if(n<t.length)return t[n];throw r.RuntimeError._createInvalidArgError({argumentName:"format"})}))},Object.defineProperty(e,"Promise",{get:function(){return r.getPromiseType()},enumerable:!0,configurable:!0}),e.createPromise=function(t){return new e.Promise(t)},e._createPromiseFromResult=function(t){return e.createPromise((function(e,n){e(t)}))},e._createPromiseFromException=function(t){return e.createPromise((function(e,n){n(t)}))},e._createTimeoutPromise=function(t){return e.createPromise((function(e,n){setTimeout((function(){e(null)}),t)}))},e._createInvalidArgError=function(e){return r.RuntimeError._createInvalidArgError(e)},e._isLocalDocumentUrl=function(t){return e._getLocalDocumentUrlPrefixLength(t)>0},e._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},e._validateLocalDocumentRequest=function(t){var n=e._getLocalDocumentUrlPrefixLength(t.url);if(n<=0)throw r.RuntimeError._createInvalidArgError({argumentName:"request"});var o=t.url.substr(n),i=o.toLowerCase();return"_api"===i?o="":"_api/"===i.substr(0,"_api/".length)&&(o=o.substr("_api/".length)),{method:t.method,url:o,headers:t.headers,body:t.body}},e._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()===l.flags){var i=parseInt(r[1]);i&=65535,t.flags=i}else r[0].toLowerCase()===l.customData&&(t.customData=decodeURIComponent(r[1]))}return t},e._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},e._parseResponseBody=function(t){if("string"==typeof t.body){var n=e.trim(t.body);return JSON.parse(n)}return t.body},e._buildRequestMessageSafeArray=function(t){var n=0;e.isReadonlyRestRequest(t.method)||(n=1);var o="";if(t.url.substr(0,l.processQuery.length).toLowerCase()===l.processQuery.toLowerCase()){var r=t.url.indexOf("?");if(r>0){var i=t.url.substr(r+1),a=e._parseRequestFlagsAndCustomDataFromQueryStringIfAny(i);a.flags>=0&&(n=a.flags),o=a.customData}}return c.buildRequestMessageSafeArray(o,n,t.method,t.url,t.headers,e._getRequestBodyText(t))},e._parseHttpResponseHeaders=function(t){var n={};if(!e.isNullOrEmptyString(t))for(var o=new RegExp("\r?\n"),r=t.split(o),i=0;i<r.length;i++){var a=r[i];if(null!=a){var s=a.indexOf(":");if(s>0){var l=a.substr(0,s),c=a.substr(s+1);l=e.trim(l),c=e.trim(c),n[l.toUpperCase()]=c}}}return n},e._parseErrorResponse=function(t){var n=e._parseErrorResponseBody(t),o=t.statusCode.toString();if(e.isNullOrUndefined(n)||"object"!=typeof n||!n.error)return e._createDefaultErrorResponse(o);var r=n.error,i=r.innerError;return i&&i.code?e._createErrorResponse(i.code,o,i.message):r.code?e._createErrorResponse(r.code,o,r.message):e._createDefaultErrorResponse(o)},e._parseErrorResponseBody=function(t){if(e.isPlainJsonObject(t.body))return t.body;if(!e.isNullOrEmptyString(t.body)){var n=e.trim(t.body);try{return JSON.parse(n)}catch(t){e.log("Error when parse "+n)}}},e._createDefaultErrorResponse=function(t){return{errorCode:a.connectionFailure,errorMessage:e._getResourceString(s.connectionFailureWithStatus,t)}},e._createErrorResponse=function(t,n,o){return{errorCode:t,errorMessage:e._getResourceString(s.connectionFailureWithDetails,[n,t,o])}},e._copyHeaders=function(e,t){if(e&&t)for(var n in e)t[n]=e[n]},e.addResourceStringValues=function(t){for(var n in t)e.s_resourceStringValues[n]=t[n]},e._logEnabled=!1,e.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.'},e}();e.CoreUtility=u;var d=function(){function e(){}return e.setMock=function(t){e.s_isMock=t},e.isMock=function(){return e.s_isMock},e._setCurrentTestName=function(t){e.s_currentTestName=t,e.s_currentTestSequenceId=0},e._getCurrentTestNameWithSequenceId=function(){return e.s_currentTestName?(e.s_currentTestSequenceId++,e.s_currentTestName+"."+e.s_currentTestSequenceId):null},e}();e.TestUtility=d,e._internalConfig={showDisposeInfoInDebugInfo:!1,showInternalApiInDebugInfo:!1,enableEarlyDispose:!0,alwaysPolyfillClientObjectUpdateMethod:!1,alwaysPolyfillClientObjectRetrieveMethod:!1,enableConcurrentFlag:!0,enableUndoableFlag:!0,appendTypeNameToObjectPathInfo:!1,enablePreviewExecution:!1},e.config={extendedErrorLogging:!1};var f=function(){function t(){}return t.createSetPropertyAction=function(t,n,o,r,i){S.validateObjectPath(n);var a={Id:t._nextId(),ActionType:4,Name:o,ObjectPathId:n._objectPath.objectPathInfo.Id,ArgumentInfo:{}},s=[r],l=S.setMethodArguments(t,a.ArgumentInfo,s);S.validateReferencedObjectPaths(l);var c=new h(a,0,i);if(c.referencedObjectPath=n._objectPath,c.referencedArgumentObjectPaths=l,e._internalConfig.enablePreviewExecution&&0!=(16&i)){var u={Id:t._nextId(),ActionType:4,Name:o,ObjectId:"",ObjectType:"",Arguments:[r]};n._addPreviewExecutionAction(u)}return n._addAction(c)},t.createQueryAction=function(e,t,n,o){S.validateObjectPath(t);var r={Id:e._nextId(),ActionType:2,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,QueryInfo:n},i=new h(r,1,4);return i.referencedObjectPath=t._objectPath,t._addAction(i,o)},t.createQueryAsJsonAction=function(e,t,n,o){S.validateObjectPath(t);var r={Id:e._nextId(),ActionType:7,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,QueryInfo:n},i=new h(r,1,4);return i.referencedObjectPath=t._objectPath,t._addAction(i,o)},t.createUpdateAction=function(e,t,n){S.validateObjectPath(t);var o={Id:e._nextId(),ActionType:9,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,ObjectState:n},r=new h(o,0,0);return r.referencedObjectPath=t._objectPath,t._addAction(r)},t}();e.CommonActionFactory=f;var p=function(){function t(e,t){this.m_contextBase=e,this.m_objectPath=t}return Object.defineProperty(t.prototype,"_objectPath",{get:function(){return this.m_objectPath},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_context",{get:function(){return this.m_contextBase},enumerable:!0,configurable:!0}),t.prototype._addAction=function(e,t){var n=this;return void 0===t&&(t=null),u.createPromise((function(o,r){n._context._addServiceApiAction(e,t,o,r)}))},t.prototype._addPreviewExecutionAction=function(e){},t.prototype._retrieve=function(t,n){var o=e._internalConfig.alwaysPolyfillClientObjectRetrieveMethod;o||(o=!S.isSetSupported("RichApiRuntime","1.1"));var r=m._parseQueryOption(t);return o?f.createQueryAction(this._context,this,r,n):f.createQueryAsJsonAction(this._context,this,r,n)},t.prototype._recursivelyUpdate=function(t){var n=e._internalConfig.alwaysPolyfillClientObjectUpdateMethod;n||(n=!S.isSetSupported("RichApiRuntime","1.2"));try{var o=this[O.scalarPropertyNames];o||(o=[]);var i=this[O.scalarPropertyUpdateable];if(!i){i=[];for(var l=0;l<o.length;l++)i.push(!1)}var c=this[O.navigationPropertyNames];c||(c=[]);var d={},p={},h=0;for(var g in t){var m=o.indexOf(g);if(m>=0){if(!i[m])throw new r.RuntimeError({code:a.invalidArgument,httpStatusCode:400,message:u._getResourceString(A.attemptingToSetReadOnlyProperty,g),debugInfo:{errorLocation:g}});d[g]=t[g],++h}else{if(!(c.indexOf(g)>=0))throw new r.RuntimeError({code:a.invalidArgument,httpStatusCode:400,message:u._getResourceString(A.propertyDoesNotExist,g),debugInfo:{errorLocation:g}});p[g]=t[g]}}if(h>0)if(n)for(l=0;l<o.length;l++){var y=d[g=o[l]];S.isUndefined(y)||f.createSetPropertyAction(this._context,this,g,y)}else f.createUpdateAction(this._context,this,d);for(var g in p){var v=this[g],b=p[g];v._recursivelyUpdate(b)}}catch(e){throw new r.RuntimeError({code:a.invalidArgument,httpStatusCode:400,message:u._getResourceString(s.invalidArgument,"properties"),debugInfo:{errorLocation:this._className+".update"},innerError:e})}},t}();e.ClientObjectBase=p;var h=function(){function e(e,t,n){this.m_actionInfo=e,this.m_operationType=t,this.m_flags=n}return Object.defineProperty(e.prototype,"actionInfo",{get:function(){return this.m_actionInfo},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"operationType",{get:function(){return this.m_operationType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"flags",{get:function(){return this.m_flags},enumerable:!0,configurable:!0}),e}();e.Action=h;var g=function(){function t(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}return Object.defineProperty(t.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(t.prototype,"parent",{get:function(){var e=this.m_parentObjectPath;if(e)return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentId",{get:function(){return this.parent?this.parent.id:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectPathInfo",{get:function(){return this.m_objectPathInfo},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"operationType",{get:function(){return this.m_operationType},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"flags",{get:function(){return this.m_flags},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCollection",{get:function(){return this.m_isCollection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInvalidAfterRequest",{get:function(){return this.m_isInvalidAfterRequest},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentObjectPath",{get:function(){return this.m_parentObjectPath},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"argumentObjectPaths",{get:function(){return this.m_argumentObjectPaths},set:function(e){this.m_argumentObjectPaths=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isValid",{get:function(){return this.m_isValid},set:function(e){this.m_isValid=e,!e&&6===this.m_objectPathInfo.ObjectPathType&&this.m_savedObjectPathInfo&&(t.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(t.prototype,"originalObjectPathInfo",{get:function(){return this.m_originalObjectPathInfo},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"getByIdMethodName",{get:function(){return this.m_getByIdMethodName},set:function(e){this.m_getByIdMethodName=e},enumerable:!0,configurable:!0}),t.prototype._updateAsNullObject=function(){this.resetForUpdateUsingObjectData(),this.m_objectPathInfo.ObjectPathType=7,this.m_objectPathInfo.Name="",this.m_parentObjectPath=null},t.prototype.saveOriginalObjectPathInfo=function(){e.config.extendedErrorLogging&&!this.m_originalObjectPathInfo&&(this.m_originalObjectPathInfo={},t.copyObjectPathInfo(this.m_objectPathInfo,this.m_originalObjectPathInfo))},t.prototype.updateUsingObjectData=function(e,n){var o=e[O.referenceId];if(!u.isNullOrEmptyString(o)){if(!this.m_savedObjectPathInfo&&!this.isInvalidAfterRequest&&t.isRestorableObjectPath(this.m_objectPathInfo.ObjectPathType)){var r={};t.copyObjectPathInfo(this.m_objectPathInfo,r),this.m_savedObjectPathInfo={pathInfo:r,parent:this.m_parentObjectPath}}return this.saveOriginalObjectPathInfo(),this.resetForUpdateUsingObjectData(),this.m_objectPathInfo.ObjectPathType=6,this.m_objectPathInfo.Name=o,delete this.m_objectPathInfo.ParentObjectPathId,void(this.m_parentObjectPath=null)}if(n){var i=n[O.collectionPropertyPath];if(!u.isNullOrEmptyString(i)&&n.context){var a=S.tryGetObjectIdFromLoadOrRetrieveResult(e);if(!u.isNullOrUndefined(a)){for(var s=i.split("."),l=n.context[s[0]],c=1;c<s.length;c++)l=l[s[c]];return this.saveOriginalObjectPathInfo(),this.resetForUpdateUsingObjectData(),this.m_parentObjectPath=l._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=[a])}}}var d=this.parentObjectPath&&this.parentObjectPath.isCollection,f=this.getByIdMethodName;if(d||!u.isNullOrEmptyString(f)){a=S.tryGetObjectIdFromLoadOrRetrieveResult(e);if(!u.isNullOrUndefined(a))return this.saveOriginalObjectPathInfo(),this.resetForUpdateUsingObjectData(),u.isNullOrEmptyString(f)?(this.m_objectPathInfo.ObjectPathType=5,this.m_objectPathInfo.Name=""):(this.m_objectPathInfo.ObjectPathType=3,this.m_objectPathInfo.Name=f),void(this.m_objectPathInfo.ArgumentInfo.Arguments=[a])}},t.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},t.isRestorableObjectPath=function(e){return 1===e||5===e||3===e||4===e},t.copyObjectPathInfo=function(e,t){t.Id=e.Id,t.ArgumentInfo=e.ArgumentInfo,t.Name=e.Name,t.ObjectPathType=e.ObjectPathType,t.ParentObjectPathId=e.ParentObjectPathId},t}();e.ObjectPath=g;var m=function(){function e(){this.m_nextId=0}return e.prototype._nextId=function(){return++this.m_nextId},e.prototype._addServiceApiAction=function(e,t,n,o){this.m_serviceApiQueue||(this.m_serviceApiQueue=new C(this)),this.m_serviceApiQueue.add(e,t,n,o)},e._parseQueryOption=function(t){var n={};if("string"==typeof t){var o=t;n.Select=S._parseSelectExpand(o)}else if(Array.isArray(t))n.Select=t;else if("object"==typeof t){var i=t;if(e.isLoadOption(i)){if("string"==typeof i.select)n.Select=S._parseSelectExpand(i.select);else if(Array.isArray(i.select))n.Select=i.select;else if(!S.isNullOrUndefined(i.select))throw r.RuntimeError._createInvalidArgError({argumentName:"option.select"});if("string"==typeof i.expand)n.Expand=S._parseSelectExpand(i.expand);else if(Array.isArray(i.expand))n.Expand=i.expand;else if(!S.isNullOrUndefined(i.expand))throw r.RuntimeError._createInvalidArgError({argumentName:"option.expand"});if("number"==typeof i.top)n.Top=i.top;else if(!S.isNullOrUndefined(i.top))throw r.RuntimeError._createInvalidArgError({argumentName:"option.top"});if("number"==typeof i.skip)n.Skip=i.skip;else if(!S.isNullOrUndefined(i.skip))throw r.RuntimeError._createInvalidArgError({argumentName:"option.skip"})}else n=e.parseStrictLoadOption(t)}else if(!S.isNullOrUndefined(t))throw r.RuntimeError._createInvalidArgError({argumentName:"option"});return n},e.isLoadOption=function(e){if(!S.isUndefined(e.select)&&("string"==typeof e.select||Array.isArray(e.select)))return!0;if(!S.isUndefined(e.expand)&&("string"==typeof e.expand||Array.isArray(e.expand)))return!0;if(!S.isUndefined(e.top)&&"number"==typeof e.top)return!0;if(!S.isUndefined(e.skip)&&"number"==typeof e.skip)return!0;for(var t in e)return!1;return!0},e.parseStrictLoadOption=function(t){var n={Select:[]};return e.parseStrictLoadOptionHelper(n,"","option",t),n},e.combineQueryPath=function(e,t,n){return 0===e.length?t:e+n+t},e.parseStrictLoadOptionHelper=function(t,n,o,i){for(var a in i){var s=i[a];if("$all"===a){if("boolean"!=typeof s)throw r.RuntimeError._createInvalidArgError({argumentName:e.combineQueryPath(o,a,".")});s&&t.Select.push(e.combineQueryPath(n,"*","/"))}else if("$top"===a){if("number"!=typeof s||n.length>0)throw r.RuntimeError._createInvalidArgError({argumentName:e.combineQueryPath(o,a,".")});t.Top=s}else if("$skip"===a){if("number"!=typeof s||n.length>0)throw r.RuntimeError._createInvalidArgError({argumentName:e.combineQueryPath(o,a,".")});t.Skip=s}else if("boolean"==typeof s)s&&t.Select.push(e.combineQueryPath(n,a,"/"));else{if("object"!=typeof s)throw r.RuntimeError._createInvalidArgError({argumentName:e.combineQueryPath(o,a,".")});e.parseStrictLoadOptionHelper(t,e.combineQueryPath(n,a,"/"),e.combineQueryPath(o,a,"."),s)}}},e}();e.ClientRequestContextBase=m;var y=function(){function e(e){this.m_objectPath=e}return e.prototype._handleResult=function(e){u.isNullOrUndefined(e)?this.m_objectPath._updateAsNullObject():this.m_objectPath.updateUsingObjectData(e,null)},e}(),v=function(){function t(e){this.m_contextBase=e,this.m_actions=[],this.m_actionResultHandler={},this.m_referencedObjectPaths={},this.m_instantiatedObjectPaths={},this.m_preSyncPromises=[],this.m_previewExecutionActions=[]}return t.prototype.addAction=function(e){this.m_actions.push(e),1==e.actionInfo.ActionType&&(this.m_instantiatedObjectPaths[e.actionInfo.ObjectPathId]=e)},t.prototype.addPreviewExecutionAction=function(e){this.m_previewExecutionActions.push(e)},Object.defineProperty(t.prototype,"hasActions",{get:function(){return this.m_actions.length>0},enumerable:!0,configurable:!0}),t.prototype._getLastAction=function(){return this.m_actions[this.m_actions.length-1]},t.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 h(t,1,4);n.referencedObjectPath=e,this.addReferencedObjectPath(e),this.addAction(n);var o=new y(e);this.addActionResultHandler(n,o)}}},t.prototype.ensureInstantiateObjectPaths=function(e){if(e)for(var t=0;t<e.length;t++)this.ensureInstantiateObjectPath(e[t])},t.prototype.addReferencedObjectPath=function(e){if(e&&!this.m_referencedObjectPaths[e.objectPathInfo.Id]){if(!e.isValid)throw new r.RuntimeError({code:a.invalidObjectPath,httpStatusCode:400,message:u._getResourceString(s.invalidObjectPath,S.getObjectPathExpression(e)),debugInfo:{errorLocation:S.getObjectPathExpression(e)}});for(;e;)this.m_referencedObjectPaths[e.objectPathInfo.Id]=e,3==e.objectPathInfo.ObjectPathType&&this.addReferencedObjectPaths(e.argumentObjectPaths),e=e.parentObjectPath}},t.prototype.addReferencedObjectPaths=function(e){if(e)for(var t=0;t<e.length;t++)this.addReferencedObjectPath(e[t])},t.prototype.addActionResultHandler=function(e,t){this.m_actionResultHandler[e.actionInfo.Id]=t},t.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},t.prototype.finallyNormalizeFlags=function(t){return 0==(1&t)&&(t&=-17,t&=-257),e._internalConfig.enableConcurrentFlag||(t&=-5),e._internalConfig.enableUndoableFlag||(t&=-17),S.isSetSupported("RichApiRuntimeFlag","1.1")||(t&=-5,t&=-17),S.isSetSupported("RichApiRuntimeFlag","1.2")||(t&=-257),"number"==typeof this.m_flagsForTesting&&(t=this.m_flagsForTesting),t},t.prototype.buildRequestMessageBodyAndRequestFlags=function(){e._internalConfig.enableEarlyDispose&&t._calculateLastUsedObjectPathIds(this.m_actions);var n=276,o={};for(var r in this.m_referencedObjectPaths)n=this.aggregrateRequestFlags(n,this.m_referencedObjectPaths[r].operationType,this.m_referencedObjectPaths[r].flags),o[r]=this.m_referencedObjectPaths[r].objectPathInfo;for(var i=[],a=!1,s=0;s<this.m_actions.length;s++){var l=this.m_actions[s];3===l.actionInfo.ActionType&&l.actionInfo.Name===O.keepReference&&(a=!0),n=this.aggregrateRequestFlags(n,l.operationType,l.flags),i.push(l.actionInfo)}n=this.finallyNormalizeFlags(n);var c={AutoKeepReference:this.m_contextBase._autoCleanup&&a,Actions:i,ObjectPaths:o};return this.m_previewExecutionActions.length>0&&(c.PreviewExecutionActions=this.m_previewExecutionActions,n|=4096),{body:c,flags:n}},t.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)}},t.prototype.invalidatePendingInvalidObjectPaths=function(){for(var e in this.m_referencedObjectPaths)this.m_referencedObjectPaths[e].isInvalidAfterRequest&&(this.m_referencedObjectPaths[e].isValid=!1)},t.prototype._addPreSyncPromise=function(e){this.m_preSyncPromises.push(e)},Object.defineProperty(t.prototype,"_preSyncPromises",{get:function(){return this.m_preSyncPromises},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_actions",{get:function(){return this.m_actions},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_objectPaths",{get:function(){return this.m_referencedObjectPaths},enumerable:!0,configurable:!0}),t.prototype._removeKeepReferenceAction=function(e){for(var t=this.m_actions.length-1;t>=0;t--){var n=this.m_actions[t].actionInfo;if(n.ObjectPathId===e&&3===n.ActionType&&n.Name===O.keepReference){this.m_actions.splice(t,1);break}}},t._updateLastUsedActionIdOfObjectPathId=function(e,n,o){for(;n;){if(e[n.objectPathInfo.Id])return;e[n.objectPathInfo.Id]=o;var r=n.argumentObjectPaths;if(r)for(var i=r.length,a=0;a<i;a++)t._updateLastUsedActionIdOfObjectPathId(e,r[a],o);n=n.parentObjectPath}},t._calculateLastUsedObjectPathIds=function(e){for(var n={},o=e.length,r=o-1;r>=0;--r){var i=(f=e[r]).actionInfo.Id;f.referencedObjectPath&&t._updateLastUsedActionIdOfObjectPathId(n,f.referencedObjectPath,i);var a=f.referencedArgumentObjectPaths;if(a)for(var s=a.length,l=0;l<s;l++)t._updateLastUsedActionIdOfObjectPathId(n,a[l],i)}var c={};for(var u in n){var d=c[i=n[u]];d||(d=[],c[i]=d),d.push(parseInt(u))}for(r=0;r<o;r++){var f,p=c[(f=e[r]).actionInfo.Id];p&&p.length>0?f.actionInfo.L=p:f.actionInfo.L&&delete f.actionInfo.L}},t}();e.ClientRequestBase=v;var b=function(){function e(e){this.m_type=e}return Object.defineProperty(e.prototype,"value",{get:function(){if(!this.m_isLoaded)throw new r.RuntimeError({code:a.valueNotLoaded,httpStatusCode:400,message:u._getResourceString(s.valueNotLoaded),debugInfo:{errorLocation:"clientResult.value"}});return this.m_value},enumerable:!0,configurable:!0}),e.prototype._handleResult=function(e){this.m_isLoaded=!0,"object"==typeof e&&e&&e._IsNull||(1===this.m_type?this.m_value=S.adjustToDateTime(e):this.m_value=e)},e}();e.ClientResult=b;var C=function(){function e(e){this.m_context=e,this.m_actions=[]}return e.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)},e.prototype.processActions=function(){var e=this;if(0!==this.m_actions.length){var t=this.m_actions;this.m_actions=[];for(var n=new v(this.m_context),o=0;o<t.length;o++){var r=t[o];n.ensureInstantiateObjectPath(r.action.referencedObjectPath),n.ensureInstantiateObjectPaths(r.action.referencedArgumentObjectPaths),n.addAction(r.action),n.addReferencedObjectPath(r.action.referencedObjectPath),n.addReferencedObjectPaths(r.action.referencedArgumentObjectPaths)}var i=n.buildRequestMessageBodyAndRequestFlags(),a=i.body,s=i.flags,c={Url:l.localDocumentApiPrefix,Headers:null,Body:a};u.log("Request:"),u.log(JSON.stringify(a)),(new _).executeAsync(this.m_context._customData,s,c).then((function(o){e.processResponse(n,t,o)})).catch((function(e){for(var n=0;n<t.length;n++){t[n].reject(e)}}))}},e.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)},e.prototype.getErrorFromResponse=function(e){return u.isNullOrEmptyString(e.ErrorCode)?e.Body&&e.Body.Error?new r.RuntimeError({code:e.Body.Error.Code,httpStatusCode:e.Body.Error.HttpStatusCode,message:e.Body.Error.Message}):null:new r.RuntimeError({code:e.ErrorCode,httpStatusCode:e.HttpStatusCode,message:e.ErrorMessage})},e.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,l=0;l<n.length;l++)if(a==n[l].ActionId){var c=n[l].Value;i.resultHandler&&(i.resultHandler._handleResult(c),c=i.resultHandler.value),i.resolve&&i.resolve(c),s=!0;break}!s&&i.reject&&(o?i.reject(o):i.reject("No response for the action."))}},e}(),_=function(){function e(){}return e.prototype.getRequestUrl=function(e,n,o){void 0===o&&(o=t.graph.toString());var r=l.flags+"="+n.toString();switch(o){case t.graph.toString():"/"!=e.charAt(e.length-1)&&(e+="/"),e=(e+=l.processQuery)+"?"+r;break;case t.wfe.toString():e=(e=e+"&"+r)+"&wdRestPart=_api/"+l.processQuery}return e},e.prototype.executeAsync=function(n,r,i){var a=i.Headers?i.Headers[O.remoteEndpointTypeHeaderKey]:t.graph.toString(),s={method:"POST",url:this.getRequestUrl(i.Url,r,a),headers:{},body:i.Body};if(s.headers[l.sourceLibHeader]=e.SourceLibHeaderValue,s.headers["CONTENT-TYPE"]="application/json",i.Headers)for(var c in i.Headers)s.headers[c]=i.Headers[c];return(u._isLocalDocumentUrl(s.url)?o.sendLocalDocumentRequest:o.sendRequest)(s).then((function(e){var t;if(200===e.statusCode)t={HttpStatusCode:e.statusCode,ErrorCode:null,ErrorMessage:null,Headers:e.headers,Body:u._parseResponseBody(e)};else{u.log("Error Response:"+e.body);var n=u._parseErrorResponse(e);t={HttpStatusCode:e.statusCode,ErrorCode:n.errorCode,ErrorMessage:n.errorMessage,Headers:e.headers,Body:null,RawErrorResponseBody:u._parseErrorResponseBody(e)}}return t}))},e.SourceLibHeaderValue="officejs-rest",e}();e.HttpRequestExecutor=_;var O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.collectionPropertyPath="_collectionPropertyPath",t.id="Id",t.idLowerCase="id",t.idPrivate="_Id",t.keepReference="_KeepReference",t.objectPathIdPrivate="_ObjectPathId",t.referenceId="_ReferenceId",t.items="_Items",t.itemsLowerCase="items",t.scalarPropertyNames="_scalarPropertyNames",t.scalarPropertyOriginalNames="_scalarPropertyOriginalNames",t.navigationPropertyNames="_navigationPropertyNames",t.scalarPropertyUpdateable="_scalarPropertyUpdateable",t.previewExecutionObjectId="_previewExecutionObjectId",t.remoteEndpointTypeHeaderKey="X-EndpointType",t}(l);e.CommonConstants=O;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.validateObjectPath=function(e){for(var n=e._objectPath;n;){if(!n.isValid)throw new r.RuntimeError({code:a.invalidObjectPath,httpStatusCode:400,message:u._getResourceString(s.invalidObjectPath,t.getObjectPathExpression(n)),debugInfo:{errorLocation:t.getObjectPathExpression(n)}});n=n.parentObjectPath}},t.validateReferencedObjectPaths=function(e){if(e)for(var n=0;n<e.length;n++)for(var o=e[n];o;){if(!o.isValid)throw new r.RuntimeError({code:a.invalidObjectPath,httpStatusCode:400,message:u._getResourceString(s.invalidObjectPath,t.getObjectPathExpression(o))});o=o.parentObjectPath}},t._toCamelLowerCase=function(e){if(u.isNullOrEmptyString(e))return e;for(var t=0;t<e.length&&e.charCodeAt(t)>=65&&e.charCodeAt(t)<=90;)t++;return t<e.length?e.substr(0,t).toLowerCase()+e.substr(t):e.toLowerCase()},t.adjustToDateTime=function(e){if(u.isNullOrUndefined(e))return null;if("string"==typeof e)return new Date(e);if(Array.isArray(e)){for(var n=e,o=0;o<n.length;o++)n[o]=t.adjustToDateTime(n[o]);return n}throw u._createInvalidArgError({argumentName:"date"})},t.tryGetObjectIdFromLoadOrRetrieveResult=function(e){var t=e[O.id];return u.isNullOrUndefined(t)&&(t=e[O.idLowerCase]),u.isNullOrUndefined(t)&&(t=e[O.idPrivate]),t},t.getObjectPathExpression=function(e){for(var n="";e;){switch(e.objectPathInfo.ObjectPathType){case 1:n=n;break;case 2:n="new()"+(n.length>0?".":"")+n;break;case 3:n=t.normalizeName(e.objectPathInfo.Name)+"()"+(n.length>0?".":"")+n;break;case 4:n=t.normalizeName(e.objectPathInfo.Name)+(n.length>0?".":"")+n;break;case 5:n="getItem()"+(n.length>0?".":"")+n;break;case 6:n="_reference()"+(n.length>0?".":"")+n}e=e.parentObjectPath}return n},t.setMethodArguments=function(e,n,o){if(u.isNullOrUndefined(o))return null;var r=new Array,i=new Array,a=t.collectObjectPathInfos(e,o,r,i);return n.Arguments=o,a&&(n.ReferencedObjectPathIds=i),r},t.validateContext=function(e,t){if(e&&t&&t._context!==e)throw new r.RuntimeError({code:a.invalidRequestContext,httpStatusCode:400,message:u._getResourceString(s.invalidRequestContext)})},t.isSetSupported=function(e,n){return"function"==typeof t.isSetSupportedOverride?t.isSetSupportedOverride(e,n):!("undefined"!=typeof window&&window.Office&&window.Office.context&&window.Office.context.requirements)||window.Office.context.requirements.isSetSupported(e,n)},t.throwIfApiNotSupported=function(e,n,o,i){if(t._doApiNotSupportedCheck&&!t.isSetSupported(n,o)){var l=u._getResourceString(s.apiNotFoundDetails,[e,n+" "+o,i]);throw new r.RuntimeError({code:a.apiNotFound,httpStatusCode:404,message:l,debugInfo:{errorLocation:e}})}},t.calculateApiFlags=function(e,n,o){var r=window&&window.location&&window.location.href&&-1!==window.location.href.indexOf("eed0a086-3498-4f91-a377-1e0265ecc0cc");return("function"==typeof t.isSetSupportedOverride?t.isSetSupportedOverride(n,o):!r&&t.isSetSupported(n,o))||(e&=-3),e},t._parseSelectExpand=function(e){var t=[];if(!u.isNullOrEmptyString(e))for(var n=e.split(","),o=0;o<n.length;o++){var r=n[o];(r=i(r.trim())).length>0&&t.push(r)}return t;function i(e){var t=e.toLowerCase();if("items"===t||"items/"===t)return"*";return("items/"===t.substr(0,6)||"items."===t.substr(0,6))&&(e=e.substr(6)),e.replace(new RegExp("[/.]items[/.]","gi"),"/")}},t.changePropertyNameToCamelLowerCase=function(e){if(Array.isArray(e)){for(var n=[],o=0;o<e.length;o++)n.push(this.changePropertyNameToCamelLowerCase(e[o]));return n}if("object"==typeof e&&null!==e){n={};for(var r in e){var i=e[r];if(r===O.items){(n={})[O.itemsLowerCase]=this.changePropertyNameToCamelLowerCase(i);break}n[t._toCamelLowerCase(r)]=this.changePropertyNameToCamelLowerCase(i)}return n}return e},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){t={};for(var o in 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}return e},t.collectObjectPathInfos=function(e,n,o,r){for(var i=!1,a=0;a<n.length;a++)if(n[a]instanceof p){var s=n[a];t.validateContext(e,s),n[a]=s._objectPath.objectPathInfo.Id,r.push(s._objectPath.objectPathInfo.Id),o.push(s._objectPath),i=!0}else if(Array.isArray(n[a])){var l=new Array;t.collectObjectPathInfos(e,n[a],o,l)?(r.push(l),i=!0):r.push(0)}else u.isPlainJsonObject(n[a])?(r.push(0),t.replaceClientObjectPropertiesWithObjectPathIds(n[a],o)):r.push(0);return i},t.replaceClientObjectPropertiesWithObjectPathIds=function(e,n){var o,r;for(var i in e){var a=e[i];if(a instanceof p)n.push(a._objectPath),e[i]=((o={})[O.objectPathIdPrivate]=a._objectPath.objectPathInfo.Id,o);else if(Array.isArray(a))for(var s=0;s<a.length;s++)if(a[s]instanceof p){var l=a[s];n.push(l._objectPath),a[s]=((r={})[O.objectPathIdPrivate]=l._objectPath.objectPathInfo.Id,r)}else u.isPlainJsonObject(a[s])&&t.replaceClientObjectPropertiesWithObjectPathIds(a[s],n);else u.isPlainJsonObject(a)&&t.replaceClientObjectPropertiesWithObjectPathIds(a,n)}},t.normalizeName=function(e){return e.substr(0,1).toLowerCase()+e.substr(1)},t._doApiNotSupportedCheck=!1,t}(u);e.CommonUtility=S;var A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.propertyDoesNotExist="PropertyDoesNotExist",t.attemptingToSetReadOnlyProperty="AttemptingToSetReadOnlyProperty",t}(s);e.CommonResourceStrings=A;var E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.propertyNotLoaded="PropertyNotLoaded",t.runMustReturnPromise="RunMustReturnPromise",t.cannotRegisterEvent="CannotRegisterEvent",t.invalidOrTimedOutSession="InvalidOrTimedOutSession",t.cannotUpdateReadOnlyProperty="CannotUpdateReadOnlyProperty",t}(a);e.ErrorCodes=E;var P=function(){function e(e){this.m_callback=e}return e.prototype._handleResult=function(e){this.m_callback&&this.m_callback()},e}(),R=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),n.createMethodAction=function(t,n,o,r,i,a){z.validateObjectPath(n);var s={Id:t._nextId(),ActionType:3,Name:o,ObjectPathId:n._objectPath.objectPathInfo.Id,ArgumentInfo:{}},l=z.setMethodArguments(t,s.ArgumentInfo,i);z.validateReferencedObjectPaths(l);var c=z._fixupApiFlags(a),u=new h(s,r,c);if(u.referencedObjectPath=n._objectPath,u.referencedArgumentObjectPaths=l,n._addAction(u),e._internalConfig.enablePreviewExecution&&0!=(16&c)){var d={Id:t._nextId(),ActionType:3,Name:o,Arguments:i,ObjectId:"",ObjectType:""};n._addPreviewExecutionAction(d)}return u},n.createRecursiveQueryAction=function(e,t,n){z.validateObjectPath(t);var o={Id:e._nextId(),ActionType:6,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,RecursiveQueryInfo:n},r=new h(o,1,4);return r.referencedObjectPath=t._objectPath,t._addAction(r),r},n.createEnsureUnchangedAction=function(e,t,n){z.validateObjectPath(t);var o={Id:e._nextId(),ActionType:8,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,ObjectState:n},r=new h(o,1,4);return r.referencedObjectPath=t._objectPath,t._addAction(r),r},n.createInstantiateAction=function(e,t){z.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 h(n,1,4);return o.referencedObjectPath=t._objectPath,t._addAction(o,new L(t),!0),o},n.createTraceAction=function(e,t,n){var o={Id:e._nextId(),ActionType:5,Name:"Trace",ObjectPathId:0},r=new h(o,1,4);return e._pendingRequest.addAction(r),n&&e._pendingRequest.addTrace(o.Id,t),r},n.createTraceMarkerForCallback=function(e,t){var o=n.createTraceAction(e,null,!1);e._pendingRequest.addActionResultHandler(o,new P(t))},n}(f);e.ActionFactory=R;var T=function(t){function n(n,o){var r=t.call(this,n,o)||this;return z.checkArgumentNull(n,"context"),r.m_context=n,r._objectPath&&(!n._processingResult&&n._pendingRequest&&(R.createInstantiateAction(n,r),n._autoCleanup&&r._KeepReference&&n.trackedObjects._autoAdd(r)),e._internalConfig.appendTypeNameToObjectPathInfo&&r._objectPath.objectPathInfo&&r._className&&(r._objectPath.objectPathInfo.T=r._className)),r}return __extends(n,t),Object.defineProperty(n.prototype,"context",{get:function(){return this.m_context},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isNull",{get:function(){return(void 0!==this.m_isNull||!d.isMock())&&(z.throwIfNotLoaded("isNull",this._isNull,null,this._isNull),this._isNull)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isNullObject",{get:function(){return(void 0!==this.m_isNull||!d.isMock())&&(z.throwIfNotLoaded("isNullObject",this._isNull,null,this._isNull),this._isNull)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isNull",{get:function(){return this.m_isNull},set:function(e){this.m_isNull=e,e&&this._objectPath&&this._objectPath._updateAsNullObject()},enumerable:!0,configurable:!0}),n.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),u._createPromiseFromResult(null)},n.prototype._addPreviewExecutionAction=function(e){if(!z.isUndefined(this._className)){e.ObjectType=this._className;var t=z._getPropertyValueWithoutCheckLoaded(this,x.idLowerCase);z.isUndefined(t)&&(t=z._getPropertyValueWithoutCheckLoaded(this,x.idPrivate)),z.isUndefined(t)&&(t=z._getPropertyValueWithoutCheckLoaded(this,x.previewExecutionObjectId)),e.ObjectId=t,this.context._pendingRequest.addPreviewExecutionAction(e)}},n.prototype._handleResult=function(e){this._isNull=z.isNullOrUndefined(e),this.context.trackedObjects._autoTrackIfNecessaryWhenHandleObjectResultValue(this,e)},n.prototype._handleIdResult=function(e){this._isNull=z.isNullOrUndefined(e),z.fixObjectPathIfNecessary(this,e),this.context.trackedObjects._autoTrackIfNecessaryWhenHandleObjectResultValue(this,e)},n.prototype._handleRetrieveResult=function(e,t){this._handleIdResult(e)},n.prototype._recursivelySet=function(e,t,o,i,l){var c=e instanceof n,d=e;if(c){if(Object.getPrototypeOf(this)!==Object.getPrototypeOf(e))throw r.RuntimeError._createInvalidArgError({argumentName:"properties",errorLocation:this._className+".set"});e=JSON.parse(JSON.stringify(e))}try{for(var f,p=0;p<o.length;p++)f=o[p],e.hasOwnProperty(f)&&void 0!==e[f]&&(this[f]=e[f]);for(p=0;p<i.length;p++)if(f=i[p],e.hasOwnProperty(f)&&void 0!==e[f]){var h=c?d[f]:e[f];this[f].set(h,t)}var g=!c;t&&!z.isNullOrUndefined(g)&&(g=t.throwOnReadOnly);for(p=0;p<l.length;p++)if(f=l[p],e.hasOwnProperty(f)&&void 0!==e[f]&&g)throw new r.RuntimeError({code:a.invalidArgument,httpStatusCode:400,message:u._getResourceString(G.cannotApplyPropertyThroughSetMethod,f),debugInfo:{errorLocation:f}});for(f in e)if(o.indexOf(f)<0&&i.indexOf(f)<0){var m=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this),f);if(!m)throw new r.RuntimeError({code:a.invalidArgument,httpStatusCode:400,message:u._getResourceString(A.propertyDoesNotExist,f),debugInfo:{errorLocation:f}});if(g&&!m.set)throw new r.RuntimeError({code:a.invalidArgument,httpStatusCode:400,message:u._getResourceString(A.attemptingToSetReadOnlyProperty,f),debugInfo:{errorLocation:f}})}}catch(e){throw new r.RuntimeError({code:a.invalidArgument,httpStatusCode:400,message:u._getResourceString(s.invalidArgument,"properties"),debugInfo:{errorLocation:this._className+".set"},innerError:e})}},n}(p);e.ClientObject=T;var I=function(){function e(e){this.m_session=e}return e.prototype.executeAsync=function(e,t,n){var o={url:l.processQuery,method:"POST",headers:n.Headers,body:n.Body},r="";n.Headers&&(r=n.Headers[x.officeControlId]);var a={id:i.nextId(),type:1,flags:t,controlId:r,message:o,customData:e};return u.log(JSON.stringify(a)),this.m_session.sendMessageToHost(a).then((function(e){u.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:u._parseResponseBody(n)};else{u.log("Error Response:"+n.body);var o=u._parseErrorResponse(n);t={HttpStatusCode:n.statusCode,ErrorCode:o.errorCode,ErrorMessage:o.errorMessage,Headers:n.headers,Body:null}}return t}))},e}(),w=function(e){function t(t){var n=e.call(this)||this;return n.m_bridge=t,n.m_bridge.addHostMessageHandler((function(e){if(3===e.type){var t=e.controlId;if(u.isNullOrEmptyString(t))U.getGenericEventRegistration(t)._handleRichApiMessage(e.message);else{var n=U.peekGenericEventRegistrationOrNull(t);n&&n._handleRichApiMessage(e.message),(n=U.peekGenericEventRegistrationOrNull(""))&&n._handleRichApiMessage(e.message)}}})),n}return __extends(t,e),t.getInstanceIfHostBridgeInited=function(){return i.instance?((u.isNullOrUndefined(t.s_instance)||t.s_instance.m_bridge!==i.instance)&&(t.s_instance=new t(i.instance)),t.s_instance):null},t.prototype._resolveRequestUrlAndHeaderInfo=function(){return u._createPromiseFromResult(null)},t.prototype._createRequestExecutorOrNull=function(){return u.log("NativeBridgeSession::CreateRequestExecutor"),new I(this)},t.prototype.getEventRegistration=function(e){return U.getGenericEventRegistration(e)},t.prototype.sendMessageToHost=function(e){return this.m_bridge.sendMessageToHostAndExpectResponse(e)},t}(n);e.HostBridgeSession=w;var F=function(t){function o(e){var i=t.call(this)||this;if(i.m_customRequestHeaders={},i.m_batchMode=0,i._onRunFinishedNotifiers=[],n._overrideSession)i.m_requestUrlAndHeaderInfoResolver=n._overrideSession;else if((z.isNullOrUndefined(e)||"string"==typeof e&&0===e.length)&&((e=o.defaultRequestUrlAndHeaders)||(e={url:l.localDocument,headers:{}})),"string"==typeof e)i.m_requestUrlAndHeaderInfo={url:e,headers:{}};else if(o.isRequestUrlAndHeaderInfoResolver(e))i.m_requestUrlAndHeaderInfoResolver=e;else{if(!o.isRequestUrlAndHeaderInfo(e))throw r.RuntimeError._createInvalidArgError({argumentName:"url"});var a=e;i.m_requestUrlAndHeaderInfo={url:a.url,headers:{}},u._copyHeaders(a.headers,i.m_requestUrlAndHeaderInfo.headers)}return!i.m_requestUrlAndHeaderInfoResolver&&i.m_requestUrlAndHeaderInfo&&u._isLocalDocumentUrl(i.m_requestUrlAndHeaderInfo.url)&&w.getInstanceIfHostBridgeInited()&&(i.m_requestUrlAndHeaderInfo=null,i.m_requestUrlAndHeaderInfoResolver=w.getInstanceIfHostBridgeInited()),i.m_requestUrlAndHeaderInfoResolver instanceof n&&(i.m_session=i.m_requestUrlAndHeaderInfoResolver),i._processingResult=!1,i._customData=x.iterativeExecutor,i.sync=i.sync.bind(i),i}return __extends(o,t),Object.defineProperty(o.prototype,"session",{get:function(){return this.m_session},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"eventRegistration",{get:function(){return this.m_session?this.m_session.getEventRegistration(this._controlId):r.officeJsEventRegistration},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"_url",{get:function(){return this.m_requestUrlAndHeaderInfo?this.m_requestUrlAndHeaderInfo.url:null},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"_pendingRequest",{get:function(){return null==this.m_pendingRequest&&(this.m_pendingRequest=new k(this)),this.m_pendingRequest},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"_controlId",{get:function(){var e=this.m_customRequestHeaders[x.officeControlId];return u.isNullOrUndefined(e)&&(e=""),e},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"debugInfo",{get:function(){return{pendingStatements:new q(this._rootObjectPropertyName,this._pendingRequest._objectPaths,this._pendingRequest._actions,e._internalConfig.showDisposeInfoInDebugInfo).process()}},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"trackedObjects",{get:function(){return this.m_trackedObjects||(this.m_trackedObjects=new V(this)),this.m_trackedObjects},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"requestHeaders",{get:function(){return this.m_customRequestHeaders},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"batchMode",{get:function(){return this.m_batchMode},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"getAdditionalHeaders",{set:function(e){this.m_getAdditionalHeaders=e},enumerable:!0,configurable:!0}),o.prototype.ensureInProgressBatchIfBatchMode=function(){if(1===this.m_batchMode&&!this.m_explicitBatchInProgress)throw z.createRuntimeError(a.generalException,u._getResourceString(G.notInsideBatch),null)},o.prototype.load=function(e,t){z.validateContext(this,e);var n=o._parseQueryOption(t);f.createQueryAction(this,e,n,e)},o.prototype.loadRecursive=function(e,t,n){if(!z.isPlainJsonObject(t))throw r.RuntimeError._createInvalidArgError({argumentName:"options"});var i={};for(var a in t)i[a]=o._parseQueryOption(t[a]);var s=R.createRecursiveQueryAction(this,e,{Queries:i,MaxDepth:n});this._pendingRequest.addActionResultHandler(s,e)},o.prototype.trace=function(e){R.createTraceAction(this,e,!0)},o.prototype._processOfficeJsErrorResponse=function(e,t){},o.prototype.ensureRequestUrlAndHeaderInfo=function(){var e=this;return z._createPromiseFromResult(null).then((function(){if(!e.m_requestUrlAndHeaderInfo)return e.m_requestUrlAndHeaderInfoResolver._resolveRequestUrlAndHeaderInfo().then((function(t){if(e.m_requestUrlAndHeaderInfo=t,e.m_requestUrlAndHeaderInfo||(e.m_requestUrlAndHeaderInfo={url:l.localDocument,headers:{}}),z.isNullOrEmptyString(e.m_requestUrlAndHeaderInfo.url)&&(e.m_requestUrlAndHeaderInfo.url=l.localDocument),e.m_requestUrlAndHeaderInfo.headers||(e.m_requestUrlAndHeaderInfo.headers={}),"function"==typeof e.m_requestUrlAndHeaderInfoResolver._createRequestExecutorOrNull){var n=e.m_requestUrlAndHeaderInfoResolver._createRequestExecutorOrNull();n&&(e._requestExecutor=n)}}))}))},o.prototype.syncPrivateMain=function(){var e=this;return this.ensureRequestUrlAndHeaderInfo().then((function(){var t=e._pendingRequest;return e.m_pendingRequest=null,e.processPreSyncPromises(t).then((function(){return e.syncPrivate(t)}))}))},o.prototype.syncPrivate=function(t){var n=this;if(d.isMock())return u._createPromiseFromResult(null);if(!t.hasActions)return this.processPendingEventHandlers(t);var o=t.buildRequestMessageBodyAndRequestFlags(),i=o.body,a=o.flags;this._requestFlagModifier&&(a|=this._requestFlagModifier),this._requestExecutor||(u._isLocalDocumentUrl(this.m_requestUrlAndHeaderInfo.url)?this._requestExecutor=new W(this):this._requestExecutor=new _);var s=this._requestExecutor,c={};u._copyHeaders(this.m_requestUrlAndHeaderInfo.headers,c),u._copyHeaders(this.m_customRequestHeaders,c),delete this.m_customRequestHeaders[x.officeScriptEventId],this.m_getAdditionalHeaders&&u._copyHeaders(this.m_getAdditionalHeaders(),c);var f=d._getCurrentTestNameWithSequenceId();f&&(c[l.testRequestNameHeader]=f);var p={Url:this.m_requestUrlAndHeaderInfo.url,Headers:c,Body:i};t.invalidatePendingInvalidObjectPaths();var h=null,g=null;return this._lastSyncStart="undefined"==typeof performance?Date.now():performance.now(),this._lastRequestFlags=a,s.executeAsync(this._customData,a,p).then((function(o){return n._lastSyncEnd="undefined"==typeof performance?Date.now():performance.now(),e.config.executePerfLogFunc&&e.config.executePerfLogFunc({syncStart:n._lastSyncStart,syncEnd:n._lastSyncEnd}),h=n.processRequestExecutorResponseMessage(t,o),n.processPendingEventHandlers(t).catch((function(e){u.log("Error in processPendingEventHandlers"),u.log(JSON.stringify(e)),g=e}))})).then((function(){if(h)throw u.log("Throw error from response: "+JSON.stringify(h)),h;if(g){u.log("Throw error from ProcessEventHandler: "+JSON.stringify(g));var e=null;if(g instanceof r.RuntimeError)(e=g).traceMessages=t._responseTraceMessages;else{var n=null;n="string"==typeof g?g:g.message,z.isNullOrEmptyString(n)&&(n=u._getResourceString(G.cannotRegisterEvent)),e=new r.RuntimeError({code:E.cannotRegisterEvent,httpStatusCode:400,message:n,traceMessages:t._responseTraceMessages})}throw e}}))},o.prototype.processRequestExecutorResponseMessage=function(t,n){n.Body&&n.Body.TraceIds&&t._setResponseTraceIds(n.Body.TraceIds);var o=t._responseTraceMessages,i=null;if(n.Body){if(n.Body.Error&&n.Body.Error.ActionIndex>=0){var a=new q(this._rootObjectPropertyName,t._objectPaths,t._actions,!1,!0),s=a.processForDebugStatementInfo(n.Body.Error.ActionIndex);i={statement:s.statement,surroundingStatements:s.surroundingStatements,fullStatements:["Please enable config.extendedErrorLogging to see full statements."]},e.config.extendedErrorLogging&&(a=new q(this._rootObjectPropertyName,t._objectPaths,t._actions,!1,!1),i.fullStatements=a.process())}var l=null;if(n.Body.Results?l=n.Body.Results:n.Body.ProcessedResults&&n.Body.ProcessedResults.Results&&(l=n.Body.ProcessedResults.Results),l){this._processingResult=!0;try{t.processResponse(l)}finally{this._processingResult=!1}}}if(!z.isNullOrEmptyString(n.ErrorCode))return new r.RuntimeError({code:n.ErrorCode,httpStatusCode:n.HttpStatusCode,message:n.ErrorMessage,traceMessages:o,data:{responseBody:n.RawErrorResponseBody}});if(n.Body&&n.Body.Error){var c={errorLocation:n.Body.Error.Location};return i&&(c.statement=i.statement,c.surroundingStatements=i.surroundingStatements,c.fullStatements=i.fullStatements),new r.RuntimeError({code:n.Body.Error.Code,httpStatusCode:n.Body.Error.HttpStatusCode,message:n.Body.Error.Message,traceMessages:o,debugInfo:c})}return null},o.prototype.processPendingEventHandlers=function(e){for(var t=z._createPromiseFromResult(null),n=0;n<e._pendingProcessEventHandlers.length;n++){var o=e._pendingProcessEventHandlers[n];t=t.then(this.createProcessOneEventHandlersFunc(o,e))}return t},o.prototype.createProcessOneEventHandlersFunc=function(e,t){return function(){return e._processRegistration(t)}},o.prototype.processPreSyncPromises=function(e){for(var t=z._createPromiseFromResult(null),n=0;n<e._preSyncPromises.length;n++){var o=e._preSyncPromises[n];t=t.then(this.createProcessOneProSyncFunc(o))}return t},o.prototype.createProcessOneProSyncFunc=function(e){return function(){return e}},o.prototype.sync=function(e){return d.isMock()?u._createPromiseFromResult(e):this.syncPrivateMain().then((function(){return e}))},o.prototype.batch=function(e){var t=this;if(1!==this.m_batchMode)return u._createPromiseFromException(z.createRuntimeError(a.generalException,null,null));if(this.m_explicitBatchInProgress)return u._createPromiseFromException(z.createRuntimeError(a.generalException,u._getResourceString(G.pendingBatchInProgress),null));if(z.isNullOrUndefined(e))return z._createPromiseFromResult(null);this.m_explicitBatchInProgress=!0;var n,o,r,i=this.m_pendingRequest;this.m_pendingRequest=new k(this);try{n=e(this._rootObject,this)}catch(e){return this.m_explicitBatchInProgress=!1,this.m_pendingRequest=i,u._createPromiseFromException(e)}return"object"==typeof n&&n&&"function"==typeof n.then?r=z._createPromiseFromResult(null).then((function(){return n})).then((function(e){return t.m_explicitBatchInProgress=!1,o=t.m_pendingRequest,t.m_pendingRequest=i,e})).catch((function(e){return t.m_explicitBatchInProgress=!1,o=t.m_pendingRequest,t.m_pendingRequest=i,u._createPromiseFromException(e)})):(this.m_explicitBatchInProgress=!1,o=this.m_pendingRequest,this.m_pendingRequest=i,r=z._createPromiseFromResult(n)),r.then((function(e){return t.ensureRequestUrlAndHeaderInfo().then((function(){return t.syncPrivate(o)})).then((function(){return e}))}))},o._run=function(e,t,n,r,i,a){return void 0===n&&(n=3),void 0===r&&(r=5e3),o._runCommon("run",null,e,0,t,n,r,null,null,i,a)},o.isValidRequestInfo=function(e){return"string"==typeof e||o.isRequestUrlAndHeaderInfo(e)||o.isRequestUrlAndHeaderInfoResolver(e)},o.isRequestUrlAndHeaderInfo=function(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===Object.getPrototypeOf({})&&!z.isNullOrUndefined(e.url)},o.isRequestUrlAndHeaderInfoResolver=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e._resolveRequestUrlAndHeaderInfo},o._runBatch=function(e,t,n,r,i,a,s,l,c){return void 0===a&&(a=3),void 0===s&&(s=5e3),o._runBatchCommon(0,e,t,n,a,s,r,i,l,c)},o._runExplicitBatch=function(e,t,n,r,i,a,s,l,c){return void 0===a&&(a=3),void 0===s&&(s=5e3),o._runBatchCommon(1,e,t,n,a,s,r,i,l,c)},o._runBatchCommon=function(e,t,n,r,i,a,s,l,c,u){var d,f;void 0===i&&(i=3),void 0===a&&(a=5e3);var p=null,h=null,g=null,m=0,y=null;if(n.length>0)if(o.isValidRequestInfo(n[0]))p=n[0],m=1;else if(z.isPlainJsonObject(n[0])){if(null!=(p=(y=n[0]).session)&&!o.isValidRequestInfo(p))return o.createErrorPromise(t);h=y.getAdditionalHeaders,g=y.previousObjects,m=1}if(n.length==m+1)f=n[m+0];else{if(null!=y||n.length!=m+2)return o.createErrorPromise(t);g=n[m+0],f=n[m+1]}if(null!=g)if(g instanceof T)d=function(){return g.context};else if(g instanceof o)d=function(){return g};else{if(!Array.isArray(g))return o.createErrorPromise(t);var v=g;if(0==v.length)return o.createErrorPromise(t);for(var b=0;b<v.length;b++){if(!(v[b]instanceof T))return o.createErrorPromise(t);if(v[b].context!=v[0].context)return o.createErrorPromise(t,G.invalidRequestContext)}d=function(){return v[0].context}}else d=r;var C=null;s&&(C=function(e){return s(y||{},e)});var _=null;return l&&(_=function(e){return l(y||{},e)}),o._runCommon(t,p,d,e,f,i,a,C,_,c,u,h)},o.createErrorPromise=function(e,t){return void 0===t&&(t=s.invalidArgument),u._createPromiseFromException(z.createRuntimeError(t,u._getResourceString(t),e))},o._runCommon=function(t,r,i,a,s,l,c,d,f,p,h,g){n._overrideSession&&(r=n._overrideSession);var m,y,v,b=u.createPromise((function(e,t){e()})),C=!1;return b.then((function(){if((m=i(r)).getAdditionalHeaders=g,m._autoCleanup)return new e.Promise((function(e,t){m._onRunFinishedNotifiers.push((function(){m._autoCleanup=!0,e()}))}));m._autoCleanup=!0})).then((function(){return"function"!=typeof s?o.createErrorPromise(t):(v=m.m_batchMode,m.m_batchMode=a,d&&d(m),e=s(1==a?m.batch.bind(m):m),(z.isNullOrUndefined(e)||"function"!=typeof e.then)&&z.throwError(G.runMustReturnPromise),e);var e})).then((function(e){return 1===a?e:m.sync(e)})).then((function(e){C=!0,y=e})).catch((function(e){y=e})).then((function(){var e=m.trackedObjects._retrieveAndClearAutoCleanupList();for(var t in m._autoCleanup=!1,m.m_batchMode=v,e)e[t]._objectPath.isValid=!1;var n=0;if(z._synchronousCleanup||o.isRequestUrlAndHeaderInfoResolver(r))return i();function i(){n++;var t=m.m_pendingRequest,o=m.m_batchMode,r=new k(m);m.m_pendingRequest=r,m.m_batchMode=0;try{for(var a in e)m.trackedObjects.remove(e[a]);f&&f(m)}finally{m.m_batchMode=o,m.m_pendingRequest=t}return m.syncPrivate(r).then((function(){p&&p(n)})).catch((function(){h&&h(n),n<l&&setTimeout((function(){i()}),c)}))}i()})).then((function(){m._onRunFinishedNotifiers&&m._onRunFinishedNotifiers.length>0&&m._onRunFinishedNotifiers.shift()();if(C)return y;throw y}))},o}(m);e.ClientRequestContext=F;var D=function(){function e(e,t){this.m_proxy=e,this.m_shouldPolyfill=t;var n=e[x.scalarPropertyNames],o=e[x.navigationPropertyNames],r=e[x.className],i=e[x.isCollection];if(n)for(var a=0;a<n.length;a++)z.definePropertyThrowUnloadedException(this,r,n[a]);if(o)for(a=0;a<o.length;a++)z.definePropertyThrowUnloadedException(this,r,o[a]);i&&z.definePropertyThrowUnloadedException(this,r,x.itemsLowerCase)}return 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 r.RuntimeError({code:E.valueNotLoaded,httpStatusCode:400,message:u._getResourceString(G.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:(z.isUndefined(this.m_json)&&(this.m_json=z.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=z.changePropertyNameToCamelLowerCase(e)),this.m_value=e,this.m_proxy._handleRetrieveResult(e,this)},e}(),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getItemAt="GetItemAt",t.index="_Index",t.iterativeExecutor="IterativeExecutor",t.isTracked="_IsTracked",t.eventMessageCategory=65536,t.eventWorkbookId="Workbook",t.eventSourceRemote="Remote",t.proxy="$proxy",t.className="_className",t.isCollection="_isCollection",t.collectionPropertyPath="_collectionPropertyPath",t.objectPathInfoDoNotKeepReferenceFieldName="D",t.officeScriptEventId="X-OfficeScriptEventId",t.officeScriptFireRecordingEvent="X-OfficeScriptFireRecordingEvent",t.officeControlId="X-OfficeControlId",t}(O);e.Constants=x;var k=function(e){function t(t){var n=e.call(this,t)||this;return n.m_context=t,n.m_pendingProcessEventHandlers=[],n.m_pendingEventHandlerActions={},n.m_traceInfos={},n.m_responseTraceIds={},n.m_responseTraceMessages=[],n}return __extends(t,e),Object.defineProperty(t.prototype,"traceInfos",{get:function(){return this.m_traceInfos},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_responseTraceMessages",{get:function(){return this.m_responseTraceMessages},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_responseTraceIds",{get:function(){return this.m_responseTraceIds},enumerable:!0,configurable:!0}),t.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];u.isNullOrUndefined(o)||this.m_responseTraceMessages.push(o)}},t.prototype.addTrace=function(e,t){this.m_traceInfos[e]=t},t.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(t.prototype,"_pendingProcessEventHandlers",{get:function(){return this.m_pendingProcessEventHandlers},enumerable:!0,configurable:!0}),t.prototype._getPendingEventHandlerActions=function(e){return this.m_pendingEventHandlerActions[e._id]},t}(v);e.ClientRequest=k;var N=function(){function e(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)}))}}return Object.defineProperty(e.prototype,"_registered",{get:function(){return this.m_registered},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_id",{get:function(){return this.m_id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_handlers",{get:function(){return this.m_handlers},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_context",{get:function(){return this.m_context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_callback",{get:function(){return this.m_callback},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=R.createTraceAction(this.m_context,null,!1);return this.m_context._pendingRequest._addPendingEventHandlerAction(this,{id:t.actionInfo.Id,handler:e,operation:0}),new M(this.m_context,this,e)},e.prototype.remove=function(e){var t=R.createTraceAction(this.m_context,null,!1);this.m_context._pendingRequest._addPendingEventHandlerAction(this,{id:t.actionInfo.Id,handler:e,operation:1})},e.prototype.removeAll=function(){var e=R.createTraceAction(this.m_context,null,!1);this.m_context._pendingRequest._addPendingEventHandlerAction(this,{id:e.actionInfo.Id,handler:null,operation:2})},e.prototype._processRegistration=function(e){var t=this,n=u._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;s>=0;s--)if(r[s]===o[i].handler){r.splice(s,1);break}break;case 2:r=[]}return a&&(!this.m_registered&&r.length>0?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){u.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},e.prototype.fireEvent=function(e){for(var t=[],n=0;n<this.m_handlers.length;n++){var o=this.m_handlers[n],r=u._createPromiseFromResult(null).then(this.createFireOneEventHandlerFunc(o,e)).catch((function(e){u.log("Error when invoke handler: "+JSON.stringify(e))}));t.push(r)}u.Promise.all(t)},e.prototype.createFireOneEventHandlerFunc=function(e,t){return function(){return e(t)}},e}();e.EventHandlers=N;var M=function(){function e(e,t,n){this.m_context=e,this.m_allHandlers=t,this.m_handler=n}return Object.defineProperty(e.prototype,"context",{get:function(){return this.m_context},enumerable:!0,configurable:!0}),e.prototype.remove=function(){this.m_allHandlers&&this.m_handler&&(this.m_allHandlers.remove(this.m_handler),this.m_allHandlers=null,this.m_handler=null)},e}();e.EventHandlerResult=M,function(e){var t=function(){function t(){}return t.prototype.register=function(t,n,o){switch(t){case 4:return z.promisify((function(e){return Office.context.document.bindings.getByIdAsync(n,e)})).then((function(e){return z.promisify((function(t){return e.addHandlerAsync(Office.EventType.BindingDataChanged,o,t)}))}));case 3:return z.promisify((function(e){return Office.context.document.bindings.getByIdAsync(n,e)})).then((function(e){return z.promisify((function(t){return e.addHandlerAsync(Office.EventType.BindingSelectionChanged,o,t)}))}));case 2:return z.promisify((function(e){return Office.context.document.addHandlerAsync(Office.EventType.DocumentSelectionChanged,o,e)}));case 1:return z.promisify((function(e){return Office.context.document.settings.addHandlerAsync(Office.EventType.SettingsChanged,o,e)}));case 5:return OSF.DDA.RichApi.richApiMessageManager.register(o);case 13:return z.promisify((function(e){return Office.context.document.addHandlerAsync(Office.EventType.ObjectDeleted,o,{id:n},e)}));case 14:return z.promisify((function(e){return Office.context.document.addHandlerAsync(Office.EventType.ObjectSelectionChanged,o,{id:n},e)}));case 15:return z.promisify((function(e){return Office.context.document.addHandlerAsync(Office.EventType.ObjectDataChanged,o,{id:n},e)}));case 16:return z.promisify((function(e){return Office.context.document.addHandlerAsync(Office.EventType.ContentControlAdded,o,{id:n},e)}));default:throw e.RuntimeError._createInvalidArgError({argumentName:"eventId"})}},t.prototype.unregister=function(t,n,o){switch(t){case 4:return z.promisify((function(e){return Office.context.document.bindings.getByIdAsync(n,e)})).then((function(e){return z.promisify((function(t){return e.removeHandlerAsync(Office.EventType.BindingDataChanged,{handler:o},t)}))}));case 3:return z.promisify((function(e){return Office.context.document.bindings.getByIdAsync(n,e)})).then((function(e){return z.promisify((function(t){return e.removeHandlerAsync(Office.EventType.BindingSelectionChanged,{handler:o},t)}))}));case 2:return z.promisify((function(e){return Office.context.document.removeHandlerAsync(Office.EventType.DocumentSelectionChanged,{handler:o},e)}));case 1:return z.promisify((function(e){return Office.context.document.settings.removeHandlerAsync(Office.EventType.SettingsChanged,{handler:o},e)}));case 5:return z.promisify((function(e){return OSF.DDA.RichApi.richApiMessageManager.removeHandlerAsync("richApiMessage",{handler:o},e)}));case 13:return z.promisify((function(e){return Office.context.document.removeHandlerAsync(Office.EventType.ObjectDeleted,{id:n,handler:o},e)}));case 14:return z.promisify((function(e){return Office.context.document.removeHandlerAsync(Office.EventType.ObjectSelectionChanged,{id:n,handler:o},e)}));case 15:return z.promisify((function(e){return Office.context.document.removeHandlerAsync(Office.EventType.ObjectDataChanged,{id:n,handler:o},e)}));case 16:return z.promisify((function(e){return Office.context.document.removeHandlerAsync(Office.EventType.ContentControlAdded,{id:n,handler:o},e)}));default:throw e.RuntimeError._createInvalidArgError({argumentName:"eventId"})}},t}();e.officeJsEventRegistration=new t}(r=e._Internal||(e._Internal={}));var H=function(){function e(e,t){this.m_handlersByEventByTarget={},this.m_registerEventImpl=e,this.m_unregisterEventImpl=t}return e.getTargetIdOrDefault=function(e){return z.isNullOrUndefined(e)?"":e},e.prototype.getHandlers=function(t,n){n=e.getTargetIdOrDefault(n);var o=this.m_handlersByEventByTarget[t];o||(o={},this.m_handlersByEventByTarget[t]=o);var r=o[n];return r||(r=[],o[n]=r),r},e.prototype.callHandlers=function(e,t,n){for(var o=this.getHandlers(e,t),r=0;r<o.length;r++)o[r](n)},e.prototype.hasHandlers=function(e,t){return this.getHandlers(e,t).length>0},e.prototype.register=function(e,t,n){if(!n)throw r.RuntimeError._createInvalidArgError({argumentName:"handler"});var o=this.getHandlers(e,t);return o.push(n),1===o.length?this.m_registerEventImpl(e,t):z._createPromiseFromResult(null)},e.prototype.unregister=function(e,t,n){if(!n)throw r.RuntimeError._createInvalidArgError({argumentName:"handler"});for(var o=this.getHandlers(e,t),i=o.length-1;i>=0;i--)if(o[i]===n){o.splice(i,1);break}return 0===o.length?this.m_unregisterEventImpl(e,t):z._createPromiseFromResult(null)},e}();e.EventRegistration=H;var U=function(){function e(){this.m_eventRegistration=new H(this._registerEventImpl.bind(this),this._unregisterEventImpl.bind(this)),this.m_richApiMessageHandler=this._handleRichApiMessage.bind(this)}return e.prototype.ready=function(){var t=this;return this.m_ready||(e._testReadyImpl?this.m_ready=e._testReadyImpl().then((function(){t.m_isReady=!0})):i.instance?this.m_ready=z._createPromiseFromResult(null).then((function(){t.m_isReady=!0})):this.m_ready=r.officeJsEventRegistration.register(5,"",this.m_richApiMessageHandler).then((function(){t.m_isReady=!0}))),this.m_ready},Object.defineProperty(e.prototype,"isReady",{get:function(){return this.m_isReady},enumerable:!0,configurable:!0}),e.prototype.register=function(e,t,n){var o=this;return this.ready().then((function(){return o.m_eventRegistration.register(e,t,n)}))},e.prototype.unregister=function(e,t,n){var o=this;return this.ready().then((function(){return o.m_eventRegistration.unregister(e,t,n)}))},e.prototype._registerEventImpl=function(e,t){return z._createPromiseFromResult(null)},e.prototype._unregisterEventImpl=function(e,t){return z._createPromiseFromResult(null)},e.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==x.eventMessageCategory){u._logEnabled&&u.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=x.eventSourceRemote),this.m_eventRegistration.callHandlers(o,r,i)}}}},e.getGenericEventRegistration=function(t){u.isNullOrUndefined(t)&&(t="");var n=e.s_genericEventRegistrations[t];return n||(n=new e,e.s_genericEventRegistrations[t]=n),n},e.peekGenericEventRegistrationOrNull=function(t){return u.isNullOrUndefined(t)&&(t=""),e.s_genericEventRegistrations[t]},e.richApiMessageEventCategory=65536,e.s_genericEventRegistrations={},e}();e.GenericEventRegistration=U,e._testSetRichApiMessageReadyImpl=function(e){U._testReadyImpl=e},e._testTriggerRichApiMessageEvent=function(e){U.getGenericEventRegistration("")._handleRichApiMessage(e)};var j=function(e){function t(t,n,o,r){var i=e.call(this,t,n,o,r)||this;return i.m_genericEventInfo=r,i}return __extends(t,e),t.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 U.getGenericEventRegistration(n).isReady||this._context._pendingRequest._addPreSyncPromise(U.getGenericEventRegistration(n).ready()),R.createTraceMarkerForCallback(this._context,(function(){t._handlers.push(e),1==t._handlers.length&&U.getGenericEventRegistration(n).register(t.m_genericEventInfo.eventType,t.m_genericEventInfo.getTargetIdFunc(),t._callback)})),new M(this._context,this,e)},t.prototype.remove=function(e){var t=this;1==this._handlers.length&&this.m_genericEventInfo.unregisterFunc&&this.m_genericEventInfo.unregisterFunc();var n=this._context._controlId;R.createTraceMarkerForCallback(this._context,(function(){for(var o=t._handlers,r=o.length-1;r>=0;r--)if(o[r]===e){o.splice(r,1);break}0==o.length&&U.getGenericEventRegistration(n).unregister(t.m_genericEventInfo.eventType,t.m_genericEventInfo.getTargetIdFunc(),t._callback)}))},t.prototype.removeAll=function(){},t}(N);e.GenericEventHandlers=j;var L=function(){function e(e){this.m_clientObject=e}return e.prototype._handleResult=function(e){this.m_clientObject._handleIdResult(e)},e}(),B=function(){function e(){}return e.createGlobalObjectObjectPath=function(e){var t={Id:e._nextId(),ObjectPathType:1,Name:""};return new g(t,null,!1,!1,1,4)},e.createNewObjectObjectPath=function(e,t,n,o){var r={Id:e._nextId(),ObjectPathType:2,Name:t};return new g(r,null,n,!1,1,z._fixupApiFlags(o))},e.createPropertyObjectPath=function(e,t,n,o,r,i){var a={Id:e._nextId(),ObjectPathType:4,Name:n,ParentObjectPathId:t._objectPath.objectPathInfo.Id};return new g(a,t._objectPath,o,r,1,z._fixupApiFlags(i))},e.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 g(o,t._objectPath,!1,!1,1,4)},e.createIndexerObjectPathUsingParentPath=function(e,t,n){var o={Id:e._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:t.objectPathInfo.Id,ArgumentInfo:{}};return o.ArgumentInfo.Arguments=n,new g(o,t,!1,!1,1,4)},e.createMethodObjectPath=function(e,t,n,o,r,i,a,s,l){var c={Id:e._nextId(),ObjectPathType:3,Name:n,ParentObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}},u=z.setMethodArguments(e,c.ArgumentInfo,r),d=new g(c,t._objectPath,i,a,o,z._fixupApiFlags(l));return d.argumentObjectPaths=u,d.getByIdMethodName=s,d},e.createReferenceIdObjectPath=function(e,t){var n={Id:e._nextId(),ObjectPathType:6,Name:t,ArgumentInfo:{}};return new g(n,null,!1,!1,1,4)},e.createChildItemObjectPathUsingIndexerOrGetItemAt=function(t,n,o,r,i){var a=z.tryGetObjectIdFromLoadOrRetrieveResult(r);return t&&!z.isNullOrUndefined(a)?e.createChildItemObjectPathUsingIndexer(n,o,r):e.createChildItemObjectPathUsingGetItemAt(n,o,r,i)},e.createChildItemObjectPathUsingIndexer=function(e,t,n){var o=z.tryGetObjectIdFromLoadOrRetrieveResult(n),r=r={Id:e._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}};return r.ArgumentInfo.Arguments=[o],new g(r,t._objectPath,!1,!1,1,4)},e.createChildItemObjectPathUsingGetItemAt=function(e,t,n,o){var r=n[x.index];r&&(o=r);var i={Id:e._nextId(),ObjectPathType:3,Name:x.getItemAt,ParentObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}};return i.ArgumentInfo.Arguments=[o],new g(i,t._objectPath,!1,!1,1,4)},e}();e.ObjectPathFactory=B;var W=function(){function t(e){this.m_context=e}return t.prototype.executeAsync=function(n,o,r){var i=this,a=c.buildMessageArrayForIRequestExecutor(n,o,r,t.SourceLibHeaderValue);return new e.Promise((function(e,t){OSF.DDA.RichApi.executeRichApiRequestAsync(a,(function(t){var n;u.log("Response:"),u.log(JSON.stringify(t)),"succeeded"==t.status?n=c.buildResponseOnSuccess(c.getResponseBody(t),c.getResponseHeaders(t)):(n=c.buildResponseOnError(t.error.code,t.error.message),i.m_context._processOfficeJsErrorResponse(t.error.code,n)),e(n)}))}))},t.SourceLibHeaderValue="officejs",t}(),V=function(){function e(e){this._autoCleanupList={},this.m_context=e}return e.prototype.add=function(e){var t=this;Array.isArray(e)?e.forEach((function(e){return t._addCommon(e,!0)})):this._addCommon(e,!0)},e.prototype._autoAdd=function(e){this._addCommon(e,!1),this._autoCleanupList[e._objectPath.objectPathInfo.Id]=e},e.prototype._autoTrackIfNecessaryWhenHandleObjectResultValue=function(e,t){this.m_context._autoCleanup&&!e[x.isTracked]&&e!==this.m_context._rootObject&&t&&!z.isNullOrEmptyString(t[x.referenceId])&&(this._autoCleanupList[e._objectPath.objectPathInfo.Id]=e,e[x.isTracked]=!0)},e.prototype._addCommon=function(e,t){if(e[x.isTracked])t&&this.m_context._autoCleanup&&delete this._autoCleanupList[e._objectPath.objectPathInfo.Id];else{var n=e[x.referenceId];if(e._objectPath.objectPathInfo[x.objectPathInfoDoNotKeepReferenceFieldName])throw z.createRuntimeError(a.generalException,u._getResourceString(G.objectIsUntracked),null);z.isNullOrEmptyString(n)&&e._KeepReference&&(e._KeepReference(),R.createInstantiateAction(this.m_context,e),t&&this.m_context._autoCleanup&&delete this._autoCleanupList[e._objectPath.objectPathInfo.Id],e[x.isTracked]=!0)}},e.prototype.remove=function(e){var t=this;Array.isArray(e)?e.forEach((function(e){return t._removeCommon(e)})):this._removeCommon(e)},e.prototype._removeCommon=function(e){e._objectPath.objectPathInfo[x.objectPathInfoDoNotKeepReferenceFieldName]=!0,e.context._pendingRequest._removeKeepReferenceAction(e._objectPath.objectPathInfo.Id);var t=e[x.referenceId];if(!z.isNullOrEmptyString(t)){var n=this.m_context._rootObject;n._RemoveReference&&n._RemoveReference(t)}delete e[x.isTracked]},e.prototype._retrieveAndClearAutoCleanupList=function(){var e=this._autoCleanupList;return this._autoCleanupList={},e},e}();e.TrackedObjects=V;var q=function(){function t(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}return t.prototype.process=function(){this.m_showDispose&&k._calculateLastUsedObjectPathIds(this.m_actions);for(var e=0;e<this.m_actions.length;e++)this.processOneAction(this.m_actions[e]);return this.m_statements},t.prototype.processForDebugStatementInfo=function(e){this.m_showDispose&&k._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),!(t>=0&&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}},t.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)}},t.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}},t.prototype.processMethodAction=function(t){var n=t.actionInfo.Name;if("_KeepReference"===n){if(!e._internalConfig.showInternalApiInDebugInfo)return;n="track"}var o=this.getObjVarName(t.actionInfo.ObjectPathId)+"."+z._toCamelLowerCase(n)+"("+this.buildArgumentsExpression(t.actionInfo.ArgumentInfo)+");";o=this.appendDisposeCommentIfRelevant(o,t),this.m_statements.push(o)},t.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)},t.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)},t.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)},t.prototype.processSetPropertyAction=function(e){var t=this.getObjVarName(e.actionInfo.ObjectPathId)+"."+z._toCamelLowerCase(e.actionInfo.Name)+" = "+this.buildArgumentsExpression(e.actionInfo.ArgumentInfo)+";";t=this.appendDisposeCommentIfRelevant(t,e),this.m_statements.push(t)},t.prototype.processTraceAction=function(e){var t="context.trace();";t=this.appendDisposeCommentIfRelevant(t,e),this.m_statements.push(t)},t.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)},t.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)},t.prototype.appendDisposeCommentIfRelevant=function(e,t){var n=this;if(this.m_showDispose){var o=t.actionInfo.L;if(o&&o.length>0)return e+" // And then dispose {"+o.map((function(e){return n.getObjVarName(e)})).join(", ")+"}"}return e},t.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""},t.prototype.buildObjectPathExpressionWithParent=function(e){return(5==e.objectPathInfo.ObjectPathType||3==e.objectPathInfo.ObjectPathType||4==e.objectPathInfo.ObjectPathType)&&e.objectPathInfo.ParentObjectPathId?this.getObjVarName(e.objectPathInfo.ParentObjectPathId)+"."+this.buildObjectPathExpression(e):this.buildObjectPathExpression(e)},t.prototype.buildObjectPathExpression=function(e){var t=this.buildObjectPathInfoExpression(e.objectPathInfo),n=e.originalObjectPathInfo;return n&&(t=t+" /* originally "+this.buildObjectPathInfoExpression(n)+" */"),t},t.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 z._toCamelLowerCase(e.Name)+"("+this.buildArgumentsExpression(e.ArgumentInfo)+")";case 2:return e.Name+".newObject()";case 7:return"null";case 4:return z._toCamelLowerCase(e.Name);case 6:return"context."+this.m_globalObjName+"._getObjectByReferenceId("+JSON.stringify(e.Name)+")"}},t.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++)n>0&&(t+=", "),t+=this.buildArgumentLiteral(e.Arguments[n],e.ReferencedObjectPathIds?e.ReferencedObjectPathIds[n]:null);return"undefined"===t&&(t=""),t},t.prototype.buildArgumentLiteral=function(e,t){return"number"==typeof e&&e===t?this.getObjVarName(t):JSON.stringify(e)},t.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=z._toCamelLowerCase(n.objectPathInfo.Name);break;case 3:var o=n.objectPathInfo.Name;o.length>3&&"Get"===o.substr(0,3)&&(o=o.substr(3)),t=z._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},t.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},t}(),G=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.cannotRegisterEvent="CannotRegisterEvent",t.connectionFailureWithStatus="ConnectionFailureWithStatus",t.connectionFailureWithDetails="ConnectionFailureWithDetails",t.propertyNotLoaded="PropertyNotLoaded",t.runMustReturnPromise="RunMustReturnPromise",t.moreInfoInnerError="MoreInfoInnerError",t.cannotApplyPropertyThroughSetMethod="CannotApplyPropertyThroughSetMethod",t.invalidOperationInCellEditMode="InvalidOperationInCellEditMode",t.objectIsUntracked="ObjectIsUntracked",t.customFunctionDefintionMissing="CustomFunctionDefintionMissing",t.customFunctionImplementationMissing="CustomFunctionImplementationMissing",t.customFunctionNameContainsBadChars="CustomFunctionNameContainsBadChars",t.customFunctionNameCannotSplit="CustomFunctionNameCannotSplit",t.customFunctionUnexpectedNumberOfEntriesInResultBatch="CustomFunctionUnexpectedNumberOfEntriesInResultBatch",t.customFunctionCancellationHandlerMissing="CustomFunctionCancellationHandlerMissing",t.customFunctionInvalidFunction="CustomFunctionInvalidFunction",t.customFunctionInvalidFunctionMapping="CustomFunctionInvalidFunctionMapping",t.customFunctionWindowMissing="CustomFunctionWindowMissing",t.customFunctionDefintionMissingOnWindow="CustomFunctionDefintionMissingOnWindow",t.pendingBatchInProgress="PendingBatchInProgress",t.notInsideBatch="NotInsideBatch",t.cannotUpdateReadOnlyProperty="CannotUpdateReadOnlyProperty",t}(A);e.ResourceStrings=G,u.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 z=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),n.fixObjectPathIfNecessary=function(e,t){e&&e._objectPath&&t&&e._objectPath.updateUsingObjectData(t,e)},n.load=function(e,t){return e.context.load(e,t),e},n.loadAndSync=function(e,t){return e.context.load(e,t),e.context.sync().then((function(){return e}))},n.retrieve=function(t,o){var r=e._internalConfig.alwaysPolyfillClientObjectRetrieveMethod;r||(r=!n.isSetSupported("RichApiRuntime","1.1"));var i=new D(t,r);return t._retrieve(o,i),i},n.retrieveAndSync=function(e,t){var o=n.retrieve(e,t);return e.context.sync().then((function(){return o}))},n.toJson=function(e,t,o,r){var i={};for(var a in t){void 0!==(s=t[a])&&(i[a]=s)}for(var a in o){var s;void 0!==(s=o[a])&&(s[n.fieldName_isCollection]&&void 0!==s[n.fieldName_m__items]?i[a]=s.toJSON().items:i[a]=s.toJSON())}return r&&(i.items=r.map((function(e){return e.toJSON()}))),i},n.throwError=function(e,t,n){throw new r.RuntimeError({code:e,httpStatusCode:400,message:u._getResourceString(e,t),debugInfo:n?{errorLocation:n}:void 0})},n.createRuntimeError=function(e,t,n,o,i){return new r.RuntimeError({code:e,httpStatusCode:o,message:t,debugInfo:{errorLocation:n},data:i})},n.throwIfNotLoaded=function(e,t,o,r){if(!r&&u.isUndefined(t)&&e.charCodeAt(0)!=n.s_underscoreCharCode&&!n.s_suppressPropertyNotLoadedException)throw n.createPropertyNotLoadedException(o,e)},n._getPropertyValueWithoutCheckLoaded=function(e,t){n.s_suppressPropertyNotLoadedException=!0;try{return e[t]}finally{n.s_suppressPropertyNotLoadedException=!1}},n.createPropertyNotLoadedException=function(e,t){return new r.RuntimeError({code:E.propertyNotLoaded,httpStatusCode:400,message:u._getResourceString(G.propertyNotLoaded,t),debugInfo:e?{errorLocation:e+"."+t}:void 0})},n.createCannotUpdateReadOnlyPropertyException=function(e,t){return new r.RuntimeError({code:E.cannotUpdateReadOnlyProperty,httpStatusCode:400,message:u._getResourceString(G.cannotUpdateReadOnlyProperty,t),debugInfo:e?{errorLocation:e+"."+t}:void 0})},n.promisify=function(t){return new e.Promise((function(e,n){t((function(t){"failed"==t.status?n(t.error):e(t.value)}))}))},n._addActionResultHandler=function(e,t,n){e.context._pendingRequest.addActionResultHandler(t,n)},n._handleNavigationPropertyResults=function(e,t,n){for(var o=0;o<n.length-1;o+=2)u.isUndefined(t[n[o+1]])||e[n[o]]._handleResult(t[n[o+1]])},n._fixupApiFlags=function(e){return"boolean"==typeof e&&(e=e?1:0),e},n.definePropertyThrowUnloadedException=function(e,t,o){Object.defineProperty(e,o,{configurable:!0,enumerable:!0,get:function(){throw n.createPropertyNotLoadedException(t,o)},set:function(){throw n.createCannotUpdateReadOnlyPropertyException(t,o)}})},n.defineReadOnlyPropertyWithValue=function(e,t,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return o},set:function(){throw n.createCannotUpdateReadOnlyPropertyException(null,t)}})},n.processRetrieveResult=function(e,t,o,r){if(!u.isNullOrUndefined(t))if(r){var i=t[x.itemsLowerCase];if(Array.isArray(i)){for(var a=[],s=0;s<i.length;s++){var l=r(i[s],s),c={};c[x.proxy]=l,l._handleRetrieveResult(i[s],c),a.push(c)}n.defineReadOnlyPropertyWithValue(o,x.itemsLowerCase,a)}}else{var d=e[x.scalarPropertyNames],f=e[x.navigationPropertyNames],p=e[x.className];if(d)for(s=0;s<d.length;s++){var h=t[g=d[s]];u.isUndefined(h)?n.definePropertyThrowUnloadedException(o,p,g):n.defineReadOnlyPropertyWithValue(o,g,h)}if(f)for(s=0;s<f.length;s++){var g;h=t[g=f[s]];if(u.isUndefined(h))n.definePropertyThrowUnloadedException(o,p,g);else{var m=e[g],y={};m._handleRetrieveResult(h,y),y[x.proxy]=m,Array.isArray(y[x.itemsLowerCase])&&(y=y[x.itemsLowerCase]),n.defineReadOnlyPropertyWithValue(o,g,y)}}}},n.setMockData=function(e,t,o,r){if(u.isNullOrUndefined(t))e._handleResult(t);else{if(e[x.scalarPropertyOriginalNames]){for(var i={},a=e[x.scalarPropertyOriginalNames],s=e[x.scalarPropertyNames],l=0;l<s.length;l++)void 0!==t[s[l]]&&(i[a[l]]=t[s[l]]);e._handleResult(i)}if(e[x.navigationPropertyNames]){var c=e[x.navigationPropertyNames];for(l=0;l<c.length;l++)if(void 0!==t[c[l]]){var d=e[c[l]];d.setMockData&&d.setMockData(t[c[l]])}}if(e[x.isCollection]&&o){var f=Array.isArray(t)?t:t[x.itemsLowerCase];if(Array.isArray(f)){var p=[];for(l=0;l<f.length;l++){var h=o(f,l);n.setMockData(h,f[l]),p.push(h)}r(p)}}}},n.applyMixin=function(e,t){Object.getOwnPropertyNames(t.prototype).forEach((function(n){"constructor"!==n&&Object.defineProperty(e.prototype,n,Object.getOwnPropertyDescriptor(t.prototype,n))}))},n.ensureTypeInitialized=function(e){var t=new F;new e(t,B.createNewObjectObjectPath(t,"Temp",!1,0))},n.fieldName_m__items="m__items",n.fieldName_isCollection="_isCollection",n._synchronousCleanup=!1,n.s_underscoreCharCode="_".charCodeAt(0),n.s_suppressPropertyNotLoadedException=!1,n}(S);e.Utility=z;var J=function(){function e(){}return e.invokeMethod=function(e,t,n,o,r,i){var a=R.createMethodAction(e.context,e,t,n,o,r),s=new b(i);return z._addActionResultHandler(e,a,s),s},e.invokeEnsureUnchanged=function(e,t){R.createEnsureUnchangedAction(e.context,e,t)},e.invokeSetProperty=function(e,t,n,o){R.createSetPropertyAction(e.context,e,t,n,o)},e.createRootServiceObject=function(e,t){return new e(t,B.createGlobalObjectObjectPath(t))},e.createObjectFromReferenceId=function(e,t,n){return new e(t,B.createReferenceIdObjectPath(t,n))},e.createTopLevelServiceObject=function(e,t,n,o,r){return new e(t,B.createNewObjectObjectPath(t,n,o,r))},e.createPropertyObject=function(e,t,n,o,r){var i=B.createPropertyObjectPath(t.context,t,n,o,!1,r);return new e(t.context,i)},e.createIndexerObject=function(e,t,n){var o=B.createIndexerObjectPath(t.context,t,n);return new e(t.context,o)},e.createMethodObject=function(e,t,n,o,r,i,a,s,l){var c=B.createMethodObjectPath(t.context,t,n,o,r,i,a,s,l);return new e(t.context,c)},e.createChildItemObject=function(e,t,n,o,r){var i=B.createChildItemObjectPathUsingIndexerOrGetItemAt(t,n.context,n,o,r);return new e(n.context,i)},e}();e.BatchApiHelper=J;var Q=function(){function t(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)}}return t.prototype.ensureArraySize=function(e,t){for(var n=t-e.length;n>0;)e.push(0),n--},t.prototype.getString=function(e){return"number"==typeof e?e>0?this.m_strings[e-1]:null:e},t.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},t.prototype.buildClientObjectType=function(n,o){var r=this,i=function(t,o){T.apply(this,arguments),r.m_targetNamespaceObject[n.name]._typeInited||(r.buildPrototype(r.m_targetNamespaceObject[n.name],n),r.m_targetNamespaceObject[n.name]._typeInited=!0),e._internalConfig.appendTypeNameToObjectPathInfo&&this._objectPath&&this._objectPath.objectPathInfo&&this._className&&(this._objectPath.objectPathInfo.T=this._className)};(this.m_targetNamespaceObject[n.name]=i,this.extendsType(i,T),this.buildNewObject(i,n),0!=(2&n.behaviorFlags)&&(i.prototype._KeepReference=function(){J.invokeMethod(this,"_KeepReference",1,[],0,0)}),0!=(32&n.behaviorFlags))&&this.getFunction(t.CustomizationCodeNamespace+"."+n.name+"_StaticCustomize").call(null,i);o&&(this.buildPrototype(i,n),i._typeInited=!0)},t.prototype.extendsType=function(e,t){function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t.prototype.findObjectUnderPath=function(t,n,o){for(var r=t,i=o;i<n.length;i++){if("object"!=typeof r)throw new e.Error("Cannot find "+n.join("."));r=r[n[i]]}return r},t.prototype.getFunction=function(t){var n=this.resolveObjectByFullName(t);if("function"!=typeof n)throw new e.Error("Cannot find function or type: "+t);return n},t.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)},t.prototype.evaluateSimpleExpression=function(t,n){if(z.isNullOrUndefined(t))return null;var o=t.split(".");if(3===o.length&&"OfficeExtension"===o[0]&&"Constants"===o[1])return x[o[2]];if("this"===o[0]){for(var r=n,i=1;i<o.length;i++)r="toString()"==o[i]?r.toString():"()"===o[i].substr(o[i].length-2)?r[o[i].substr(0,o[i].length-2)]():r[o[i]];return r}throw new e.Error("Cannot evaluate: "+t)},t.prototype.evaluateEventTargetId=function(e,t){return z.isNullOrEmptyString(e)?"":this.evaluateSimpleExpression(e,t)},t.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},t.prototype.evaluateEventType=function(t){if(z.isNullOrEmptyString(t))return 0;if(this.isAllDigits(t))return parseInt(t);var n=this.resolveObjectByFullName(t);if("number"!=typeof n)throw new e.Error("Invalid event type: "+t);return n},t.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)},t.prototype.toSimpleCamelUpperCase=function(e){return e.substr(0,1).toUpperCase()+e.substr(1)},t.prototype.ensureOriginalName=function(e){null===e.originalName&&(e.originalName=this.toSimpleCamelUpperCase(e.name))},t.prototype.getFieldName=function(e){return"m_"+e.name},t.prototype.throwIfApiNotSupported=function(e,t){if(this.m_apiSets&&t.apiSetInfoOrdinal>0){var n=this.m_apiSets[t.apiSetInfoOrdinal-1];n&&z.throwIfApiNotSupported(e.name+"."+t.name,n.name,n.version,this.m_hostName)}},t.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])}},t.prototype.calculateApiFlags=function(e,t){if(t>0){var n=this.m_apiSets[t-1];n&&(e=S.calculateApiFlags(e,n.name,n.version))}return e},t.prototype.buildScalarProperty=function(e,n,o){this.ensureOriginalName(o);var r=this,i=this.getFieldName(o),a={get:function(){return z.throwIfNotLoaded(o.name,this[i],n.name,this._isNull),r.throwIfApiNotSupported(n,o),this[i]},enumerable:!0,configurable:!0};0==(2&o.behaviorFlags)&&(a.set=function(e){if(4&o.behaviorFlags&&r.getFunction(t.CustomizationCodeNamespace+"."+n.name+"_"+o.originalName+"_Set").call(this,this,e).handled)return;this[i]=e;var a=r.calculateApiFlags(o.setMethodApiFlags,o.undoableApiSetInfoOrdinal);J.invokeSetProperty(this,o.originalName,e,a)}),Object.defineProperty(e.prototype,o.name,a)},t.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])}},t.prototype.buildNavigationProperty=function(e,n,o){this.ensureOriginalName(o);var r=this,i=this.getFieldName(o),a={get:function(){(this[r.getFieldName(o)]||(r.throwIfApiNotSupported(n,o),this[i]=J.createPropertyObject(r.getFunction(o.propertyTypeFullName),this,o.originalName,0!=(16&o.behaviorFlags),o.getMethodApiFlags)),64&o.behaviorFlags)&&r.getFunction(t.CustomizationCodeNamespace+"."+n.name+"_"+o.originalName+"_Get").call(this,this,this[i]);return this[i]},enumerable:!0,configurable:!0};0==(2&o.behaviorFlags)&&(a.set=function(e){if(4&o.behaviorFlags&&r.getFunction(t.CustomizationCodeNamespace+"."+n.name+"_"+o.originalName+"_Set").call(this,this,e).handled)return;this[i]=e;var a=r.calculateApiFlags(o.setMethodApiFlags,o.undoableApiSetInfoOrdinal);J.invokeSetProperty(this,o.originalName,e,a)}),Object.defineProperty(e.prototype,o.name,a)},t.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])}},t.prototype.buildScalarMethod=function(e,n,o){this.ensureOriginalName(o);var r=this;e.prototype[o.name]=function(){var e=[];if(64&o.behaviorFlags&&o.parameterCount>0){for(var i=0;i<o.parameterCount-1;i++)e.push(arguments[i]);var a=[];for(i=o.parameterCount-1;i<arguments.length;i++)a.push(arguments[i]);e.push(a)}else for(i=0;i<arguments.length;i++)e.push(arguments[i]);if(1&o.behaviorFlags){var s=r.getFunction(t.CustomizationCodeNamespace+"."+n.name+"_"+o.originalName),l=[this];for(i=0;i<e.length;i++)l.push(e[i]);var c=s.apply(this,l),u=c.handled,d=c.result;if(u)return d}r.throwIfApiNotSupported(n,o);var f=0;32&o.behaviorFlags&&(f=1);var p=0;2&o.behaviorFlags&&(p=1);var h=r.calculateApiFlags(o.apiFlags,o.undoableApiSetInfoOrdinal);return J.invokeMethod(this,o.originalName,p,e,h,f)}},t.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])}},t.prototype.buildNavigationMethod=function(e,n,o){this.ensureOriginalName(o);var r=this;e.prototype[o.name]=function(){var e=[];if(64&o.behaviorFlags&&o.parameterCount>0){for(var i=0;i<o.parameterCount-1;i++)e.push(arguments[i]);var a=[];for(i=o.parameterCount-1;i<arguments.length;i++)a.push(arguments[i]);e.push(a)}else for(i=0;i<arguments.length;i++)e.push(arguments[i]);if(1&o.behaviorFlags){var s=r.getFunction(t.CustomizationCodeNamespace+"."+n.name+"_"+o.originalName),l=[this];for(i=0;i<e.length;i++)l.push(e[i]);var c=s.apply(this,l),u=c.handled,d=c.result;if(u)return d}if(r.throwIfApiNotSupported(n,o),0!=(16&o.behaviorFlags))return J.createIndexerObject(r.getFunction(o.returnTypeFullName),this,e);var f=0;2&o.behaviorFlags&&(f=1);var p=r.calculateApiFlags(o.apiFlags,o.undoableApiSetInfoOrdinal);return J.createMethodObject(r.getFunction(o.returnTypeFullName),this,o.originalName,f,e,0!=(4&o.behaviorFlags),0!=(8&o.behaviorFlags),o.returnObjectGetByIdMethodName,p)}},t.prototype.buildHandleResult=function(e,n){var o=this;e.prototype._handleResult=function(e){if(T.prototype._handleResult.call(this,e),!z.isNullOrUndefined(e)){if(z.fixObjectPathIfNecessary(this,e),8&n.behaviorFlags)o.getFunction(t.CustomizationCodeNamespace+"."+n.name+"_HandleResult").call(this,this,e);if(n.scalarProperties)for(var r=0;r<n.scalarProperties.length;r++)z.isUndefined(e[n.scalarProperties[r].originalName])||(0!=(8&n.scalarProperties[r].behaviorFlags)?this[o.getFieldName(n.scalarProperties[r])]=z.adjustToDateTime(e[n.scalarProperties[r].originalName]):this[o.getFieldName(n.scalarProperties[r])]=e[n.scalarProperties[r].originalName]);if(n.navigationProperties){for(var i=[],a=0;a<n.navigationProperties.length;a++)i.push(n.navigationProperties[a].name),i.push(n.navigationProperties[a].originalName);z._handleNavigationPropertyResults(this,e,i)}if(0!=(1&n.behaviorFlags)){var s=o.hasIndexMethod(n);if(!z.isNullOrUndefined(e[x.items])){this.m__items=[];for(var l=e[x.items],c=o.getFunction(n.childItemTypeFullName),u=0;u<l.length;u++){var d=J.createChildItemObject(c,s,this,l[u],u);d._handleResult(l[u]),this.m__items.push(d)}}}}}},t.prototype.buildHandleRetrieveResult=function(e,t){var n=this;e.prototype._handleRetrieveResult=function(e,o){if(T.prototype._handleRetrieveResult.call(this,e,o),!z.isNullOrUndefined(e)){if(t.scalarProperties)for(var r=0;r<t.scalarProperties.length;r++)8&t.scalarProperties[r].behaviorFlags&&(z.isNullOrUndefined(e[t.scalarProperties[r].name])||(e[t.scalarProperties[r].name]=z.adjustToDateTime(e[t.scalarProperties[r].name])));if(1&t.behaviorFlags){var i=n.hasIndexMethod(t),a=n.getFunction(t.childItemTypeFullName),s=this;z.processRetrieveResult(s,e,o,(function(e,t){return J.createChildItemObject(a,i,s,e,t)}))}else z.processRetrieveResult(this,e,o)}}},t.prototype.buildHandleIdResult=function(e,n){var o=this;e.prototype._handleIdResult=function(e){if(T.prototype._handleIdResult.call(this,e),!z.isNullOrUndefined(e)){if(16&n.behaviorFlags)o.getFunction(t.CustomizationCodeNamespace+"."+n.name+"_HandleIdResult").call(this,this,e);if(n.scalarProperties)for(var r=0;r<n.scalarProperties.length;r++){var i=n.scalarProperties[r].originalName;"Id"!==i&&"_Id"!==i&&"_ReferenceId"!==i||z.isNullOrUndefined(e[n.scalarProperties[r].originalName])||(this[o.getFieldName(n.scalarProperties[r])]=e[n.scalarProperties[r].originalName])}}}},t.prototype.buildLoad=function(e,t){e.prototype.load=function(e){return z.load(this,e)}},t.prototype.buildRetrieve=function(e,t){e.prototype.retrieve=function(e){return z.retrieve(this,e)}},t.prototype.buildNewObject=function(e,t){z.isNullOrEmptyString(t.newObjectServerTypeFullName)||(e.newObject=function(n){return J.createTopLevelServiceObject(e,n,t.newObjectServerTypeFullName,0!=(1&t.behaviorFlags),t.newObjectApiFlags)})},t.prototype.buildSetMockData=function(e,t){var n=this;if(1&t.behaviorFlags){var o=n.hasIndexMethod(t);e.prototype.setMockData=function(e){var r=this;z.setMockData(r,e,(function(e,i){return J.createChildItemObject(n.getFunction(t.childItemTypeFullName),o,r,e,i)}),(function(e){r.m__items=e}))}}else e.prototype.setMockData=function(e){z.setMockData(this,e)}},t.prototype.buildEnsureUnchanged=function(e,t){e.prototype.ensureUnchanged=function(e){J.invokeEnsureUnchanged(this,e)}},t.prototype.buildUpdate=function(e,t){e.prototype.update=function(e){this._recursivelyUpdate(e)}},t.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)})}},t.prototype.buildItems=function(e,t){0!=(1&t.behaviorFlags)&&Object.defineProperty(e.prototype,"items",{get:function(){return z.throwIfNotLoaded("items",this.m__items,t.name,this._isNull),this.m__items},enumerable:!0,configurable:!0})},t.prototype.buildToJSON=function(e,t){var n=this;0==(1&t.behaviorFlags)?e.prototype.toJSON=function(){var e={};if(t.scalarProperties)for(var o=0;o<t.scalarProperties.length;o++)0!=(1&t.scalarProperties[o].behaviorFlags)&&(e[t.scalarProperties[o].name]=this[n.getFieldName(t.scalarProperties[o])]);var r={};if(t.navigationProperties)for(o=0;o<t.navigationProperties.length;o++)0!=(1&t.navigationProperties[o].behaviorFlags)&&(r[t.navigationProperties[o].name]=this[n.getFieldName(t.navigationProperties[o])]);return z.toJson(this,e,r)}:e.prototype.toJSON=function(){return z.toJson(this,{},{},this.m__items)}},t.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}),z.isNullOrEmptyString(t.collectionPropertyPath)||Object.defineProperty(e.prototype,"_collectionPropertyPath",{get:function(){return t.collectionPropertyPath},enumerable:!0,configurable:!0}),t.scalarProperties&&t.scalarProperties.length>0&&(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&&t.navigationProperties.length>0&&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})},t.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})},t.prototype.buildMixin=function(e,t){if(4&t.behaviorFlags){var n=this.getFunction(t.name+"Custom");z.applyMixin(e,n)}},t.prototype.getOnEventName=function(e){return"_"===e[0]?"_on"+e.substr(1):"on"+e},t.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])}},t.prototype.buildEvent=function(e,t,n){1&n.behaviorFlags?this.buildV0Event(e,t,n):this.buildV2Event(e,t,n)},t.prototype.buildV2Event=function(e,n,o){var r=this,i=this.getOnEventName(o.name),a=this.getFieldName(o);Object.defineProperty(e.prototype,i,{get:function(){if(!this[a]){r.throwIfApiNotSupported(n,o);var e=this,i=null;"null"!==o.register&&(i=this[o.register].bind(this));var s=null;"null"!==o.unregister&&(s=this[o.unregister].bind(this));var l=null;2&o.behaviorFlags&&(l=r.getFunction(t.CustomizationCodeNamespace+"."+n.name+"_"+o.name+"_EventArgsTransform"));var c=r.evaluateEventType(o.typeExpression);this[a]=new j(this.context,this,o.name,{eventType:c,getTargetIdFunc:function(){return r.evaluateEventTargetId(o.targetIdExpression,e)},registerFunc:i,unregisterFunc:s,eventArgsTransformFunc:function(t){return l&&(t=l.call(e,e,t)),z._createPromiseFromResult(t)}})}return this[a]},enumerable:!0,configurable:!0})},t.prototype.buildV0Event=function(e,n,o){var r=this,i=this.getOnEventName(o.name),a=this.getFieldName(o);Object.defineProperty(e.prototype,i,{get:function(){if(!this[a]){r.throwIfApiNotSupported(n,o);var e=this,i=null;if(z.isNullOrEmptyString(o.register)){var s=r.evaluateEventType(o.typeExpression);i=function(t){var n=r.evaluateEventTargetId(o.targetIdExpression,e);return e.context.eventRegistration.register(s,n,t)}}else if("null"!==o.register){var l=r.getFunction(o.register);i=function(t){return l.call(e,e,t)}}var c=null;if(z.isNullOrEmptyString(o.unregister)){var u=r.evaluateEventType(o.typeExpression);c=function(t){var n=r.evaluateEventTargetId(o.targetIdExpression,e);return e.context.eventRegistration.unregister(u,n,t)}}else if("null"!==o.unregister){var d=r.getFunction(o.unregister);c=function(t){return d.call(e,e,t)}}var f=null;2&o.behaviorFlags&&(f=r.getFunction(t.CustomizationCodeNamespace+"."+n.name+"_"+o.name+"_EventArgsTransform"));this[a]=new N(this.context,this,o.name,{registerFunc:i,unregisterFunc:c,eventArgsTransformFunc:function(t){return f&&(t=f.call(e,e,t)),z._createPromiseFromResult(t)}})}return this[a]},enumerable:!0,configurable:!0})},t.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},t.CustomizationCodeNamespace="_CC",t}();e.LibraryBuilder=Q}(OfficeExtension||(OfficeExtension={})),function(e){var t;!function(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")}}(t||(t={})),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 t(e,t,n,o){return{name:e,dataType:t,value:n,classification:o||4}}e.makeBooleanDataField=function(e,n,o){return t(e,1,n,o)},e.makeInt64DataField=function(e,n,o){return t(e,2,n,o)},e.makeDoubleDataField=function(e,n,o){return t(e,3,n,o)},e.makeStringDataField=function(e,n,o){return t(e,0,n,o)},e.makeGuidDataField=function(e,n,o){return t(e,4,n,o)}}(oteljs||(oteljs={})),function(e){!function(e){e[e.EssentialServiceMetadata=1]="EssentialServiceMetadata",e[e.AccountData=2]="AccountData",e[e.SystemMetadata=4]="SystemMetadata",e[e.OrganizationIdentifiableInformation=8]="OrganizationIdentifiableInformation",e[e.EndUserIdentifiableInformation=16]="EndUserIdentifiableInformation",e[e.CustomerContent=32]="CustomerContent",e[e.AccessControl=64]="AccessControl",e[e.PublicNonPersonalData=128]="PublicNonPersonalData",e[e.EndUserPseudonymousInformation=256]="EndUserPseudonymousInformation",e[e.PublicPersonalData=512]="PublicPersonalData",e[e.SupportData=1024]="SupportData",e[e.DirectMeasurementData=2048]="DirectMeasurementData",e[e.Everything=65535]="Everything"}(e.DataClassification||(e.DataClassification={})),function(e){e[e.String=0]="String",e[e.Boolean=1]="Boolean",e[e.Int64=2]="Int64",e[e.Double=3]="Double",e[e.Guid=4]="Guid"}(e.DataFieldType||(e.DataFieldType={})),function(e){e[e.NotSet=0]="NotSet",e[e.Measure=1]="Measure",e[e.Diagnostics=2]="Diagnostics",e[e.CriticalBusinessImpact=191]="CriticalBusinessImpact",e[e.CriticalCensus=192]="CriticalCensus",e[e.CriticalExperimentation=193]="CriticalExperimentation",e[e.CriticalUsage=194]="CriticalUsage"}(e.SamplingPolicy||(e.SamplingPolicy={})),function(e){e[e.NotSet=0]="NotSet",e[e.Normal=1]="Normal",e[e.High=2]="High"}(e.PersistencePriority||(e.PersistencePriority={})),function(e){e[e.NotSet=0]="NotSet",e[e.Normal=1]="Normal",e[e.High=2]="High"}(e.CostPriority||(e.CostPriority={})),function(e){e[e.NotSet=0]="NotSet",e[e.SoftwareSetup=1]="SoftwareSetup",e[e.ProductServiceUsage=2]="ProductServiceUsage",e[e.ProductServicePerformance=4]="ProductServicePerformance",e[e.DeviceConfiguration=8]="DeviceConfiguration",e[e.InkingTypingSpeech=16]="InkingTypingSpeech"}(e.DataCategories||(e.DataCategories={})),function(e){e[e.ReservedDoNotUse=0]="ReservedDoNotUse",e[e.Required=10]="Required",e[e.BasicEvent=10]="BasicEvent",e[e.Optional=100]="Optional",e[e.FullEvent=100]="FullEvent",e[e.RequiredServiceData=110]="RequiredServiceData",e[e.NecessaryServiceDataEvent=110]="NecessaryServiceDataEvent",e[e.RequiredServiceDataForEssentialServices=120]="RequiredServiceDataForEssentialServices",e[e.AlwaysOnNecessaryServiceDataEvent=120]="AlwaysOnNecessaryServiceDataEvent"}(e.DiagnosticLevel||(e.DiagnosticLevel={})),function(e){e[e.None=0]="None",e[e.MocaAddIn=1]="MocaAddIn"}(e.CustomerContentType||(e.CustomerContentType={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Info=2]="Info",e[e.Verbose=3]="Verbose"}(e.LogLevel||(e.LogLevel={})),function(e){e[e.Core=0]="Core",e[e.Sink=1]="Sink",e[e.Transport=2]="Transport"}(e.Category||(e.Category={})),function(e){e[e.Hourly=1]="Hourly",e[e.Daily=2]="Daily"}(e.DnmInterval||(e.DnmInterval={})),function(e){e[e.ReleaseAudienceGroup=1]="ReleaseAudienceGroup",e[e.WacRing=2]="WacRing",e[e.AppName=3]="AppName",e[e.AppPlatform=4]="AppPlatform",e[e.AppVersion=5]="AppVersion"}(e.AllowedPartA||(e.AllowedPartA={})),function(e){e[e.SendTelemetryEvent=1]="SendTelemetryEvent",e[e.CustomerContent=2]="CustomerContent",e[e.DirectNumericEvent=3]="DirectNumericEvent"}(e.EventType||(e.EventType={}))}(oteljs||(oteljs={})),function(e){e.getEffectiveEventFlags=function(t){var n={costPriority:1,samplingPolicy:1,persistencePriority:1,dataCategories:0,diagnosticLevel:100};return t.eventFlags&&t.eventFlags.dataCategories||e.logNotification(0,0,(function(){return"DataCategories"})),t.eventFlags?(t.eventFlags.costPriority&&(n.costPriority=t.eventFlags.costPriority),t.eventFlags.samplingPolicy&&(n.samplingPolicy=t.eventFlags.samplingPolicy),t.eventFlags.persistencePriority&&(n.persistencePriority=t.eventFlags.persistencePriority),t.eventFlags.dataCategories&&(n.dataCategories=t.eventFlags.dataCategories),t.eventFlags.diagnosticLevel&&(n.diagnosticLevel=t.eventFlags.diagnosticLevel),n):n}}(oteljs||(oteljs={})),function(e){var t,n=(t=[],{fireEvent:function(e){t.forEach((function(t){return t(e)}))},addListener:function(e){e&&t.push(e)}});function o(e,t,o){n.fireEvent({level:e,category:t,message:o})}e.onNotification=function(){return n},e.logNotification=o,e.logError=function(e,t,n){o(0,e,(function(){var e=n instanceof Error?n.message:"";return"".concat(t,": ").concat(e)}))}}(oteljs||(oteljs={})),function(e){var t;function n(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}!function(e){e[e.TelemetryData=0]="TelemetryData",e[e.AnonymousData=1]="AnonymousData",e[e.CustomerContent=2]="CustomerContent"}(t||(t={})),e.SuppressNexus=-1,e.cloneEvent=n;var o=function(){function t(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)}return t.prototype.addEventContentType=function(t,n){t.push(e.makeInt64DataField("EventContent.Type",n))},t.prototype.sendTelemetryEvent=function(t){var o=n(t),r=o.telemetryProperties;r.nexusTenantToken=e.SuppressNexus;var i=r.ariaTenantToken;if(!i&&(!e.fillTenantTokens(o.eventName,r)&&!i))return void e.logNotification(0,0,(function(){return"No tenant token: "+t.eventName}));this.sendTelemetryEventInternal(o,1)},t.prototype.sendNonStandardEvent=function(e,t){var o=n(e);this.sendTelemetryEventInternal(o,t)},t.prototype.sendCustomerContent=function(e){var t=n(e),o=t.telemetryProperties,r=o.customerContentVersion;return(!r||r>2)&&(o.customerContentVersion=2),o.ariaTenantToken=void 0,o.nexusTenantToken=void 0,o.dnmToken=void 0,this.addEventContentType(t.dataFields,2),this.sendTelemetryEventInternal(t,2)},t.prototype.sendDirectNumericEvent=function(t){var o=n(t),r=o.telemetryProperties;if(!r.dnmToken&&(!e.fillTenantTokens(o.eventName,r)&&!r.dnmToken))return void e.logNotification(0,0,(function(){return"No dnm token: "+o.eventName}));this.addEventContentType(o.dataFields,1),this.sendTelemetryEventInternal(o,3)},t.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]):e.logNotification(1,0,(function(){return"No telemetry sinks are attached."})));this.processTelemetryEvent(t,n)}catch(t){return void e.logError(0,"SendTelemetryEvent",t)}this.telemetrySinks.forEach((function(e){try{3===n||2===n?e.sendNonStandardEvent&&e.sendNonStandardEvent(t,n):e.sendTelemetryEvent(t)}catch(e){}}))}else e.logNotification(0,0,(function(){return"Customer content"}))},t.prototype.processTelemetryEvent=function(t,n){var o,r,i;if(t.dataFields&&(null===(i=t.dataFields)||void 0===i||i.unshift(e.makeStringDataField("OTelJS.Version",e.oteljsVersion)),3!==n&&this.persistentDataFields&&(o=t.dataFields).unshift.apply(o,this.persistentDataFields)),this.partAFields.length>0){var a=t.eventContract||{name:"",dataFields:[]};(r=a.dataFields).push.apply(r,this.partAFields),t.eventContract=a}this.config.disableValidation||e.validateTelemetryEvent(t)},t.prototype.addSink=function(e){this.telemetrySinks.push(e),this.flushQueue()},t.prototype.flushQueue=function(){var e=this.eventQueue;if(this.eventQueue=[],this.telemetrySinks.length>0)for(var t=0,n=e;t<n.length;t++){var o=n[t],r=o[0],i=o[1];this.sendTelemetryEventInternal(r,i)}},t.prototype.setTenantToken=function(t,n,o){e.setTenantTokens(t,{ariaTenantToken:n,nexusTenantToken:o})},t.prototype.setDNMToken=function(t,n){e.setTenantTokens(t,{dnmToken:n})},t.prototype.cloneEvent=function(e){return n(e)},t.prototype.getConfig=function(){return this.config},t}();e.SimpleTelemetryLogger=o}(oteljs||(oteljs={})),function(e){var t=9007199254740991,n=/^Office(\.[A-Z][a-zA-Z0-9]*){2,}$/,o=/^[a-zA-Z0-9_\.]{1,95}$/;function r(e){return o.test(e)}function i(e){e&&e.forEach((function(e){if("string"!=typeof e.name||!r(e.name))throw new Error("Invalid dataField name");2===e.dataType&&a(e.value)}))}function a(e){if("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e<-9007199254740991||e>t)throw new Error("Invalid integer ".concat(JSON.stringify(e)))}e.validateTelemetryEvent=function(e){if(!function(e){if(!e||e.length>98)return!1;return n.test(e)}(e.eventName))throw new Error("Invalid eventName");var t=e.eventContract;if(t){if(t.name&&!r(t.name))throw new Error("Invalid eventContract");i(t.dataFields)}i(e.dataFields)},e.validateInt=a}(oteljs||(oteljs={})),function(e){var t={};e.setTenantTokens=function(n,o){"Office."===n.substring(0,7)&&"."!==n[n.length-1]?t[n]?(o.ariaTenantToken&&(t[n].ariaTenantToken=o.ariaTenantToken),o.dnmToken&&(t[n].dnmToken=o.dnmToken)):t[n]=o:e.logNotification(0,0,(function(){return"Namespace: ".concat(n)}))},e.fillTenantTokens=function(e,n){for(var o=e.length;o>0;){var r=e.substr(0,o);if(t[r]){var i=t[r];return n.ariaTenantToken=i.ariaTenantToken,n.dnmToken=i.dnmToken,!0}o=e.lastIndexOf(".",o-1)}return!1},e.clear=function(){t={}}}(oteljs||(oteljs={})),function(e){e.oteljsVersion="4.18.0"}(oteljs||(oteljs={})),function(e){var t=function(){function t(){var e=this;this._requestIsPending=!0,this._telemetryQueue=[],this._customerContentQueue=[],this.pause(1e3).then((function(){return e._requestIsPending=!1,e.processTelemetryEvents()})).catch()}return 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(n){e.logError(1,"RichApiSink Error",n),t.waitAndProcessMore()})))},t.prototype.waitAndProcessMore=function(){var e=this;this.pause(1e3).then((function(){e._requestIsPending=!1,e._telemetryQueue.length>0&&setTimeout((function(){return e.processWorkBacklog()}),0)})).catch((function(){e._requestIsPending=!1}))},t.prototype.processTelemetryEvents=function(){var t=this,n=this._telemetryQueue;this._telemetryQueue=[];var o=this._customerContentQueue;this._customerContentQueue=[];var r=new OfficeCore.RequestContext,i=function(n,o){if(n.telemetryProperties){var r=[];t.addDataFields(r,n.dataFields);var i=n.eventContract?n.eventContract.name:"";n.eventContract&&t.addDataFields(r,n.eventContract.dataFields),o(n.telemetryProperties,n.eventName,i,e.getEffectiveEventFlags(n),r)}};return n.forEach((function(e){i(e,(function(e,t,n,o,i){r.telemetry.sendTelemetryEvent(e,t,n,o,i)}))})),o.forEach((function(e){i(e,(function(e,t,n,o,i){r.telemetry.sendCustomerContent(e,t,n,o,i)}))})),r.sync().catch((function(t){e.logError(1,"RichApi telemetry failed.",t)}))},t.prototype.addDataFields=function(e,t){t&&t.forEach((function(t){e.push({name:t.name,value:t.value,classification:t.classification?t.classification:4,type:4===t.dataType?0:t.dataType})}))},t.prototype.pause=function(e){return new Office.Promise((function(t){return setTimeout(t,e)}))},t}();e.RichApiSink=t}(oteljs||(oteljs={})),function(e){!function(t){!function(t){!function(t){!function(t){t.getFields=function(t,n){var o=[];return void 0!==n.id&&o.push(e.makeStringDataField("".concat(t,".Id"),n.id)),void 0!==n.version&&o.push(e.makeStringDataField("".concat(t,".Version"),n.version)),void 0!==n.instanceId&&o.push(e.makeStringDataField("".concat(t,".InstanceId"),n.instanceId)),void 0!==n.name&&o.push(e.makeStringDataField("".concat(t,".Name"),n.name)),void 0!==n.marketplaceType&&o.push(e.makeStringDataField("".concat(t,".MarketplaceType"),n.marketplaceType)),void 0!==n.sessionId&&o.push(e.makeStringDataField("".concat(t,".SessionId"),n.sessionId)),void 0!==n.browserToken&&o.push(e.makeStringDataField("".concat(t,".BrowserToken"),n.browserToken)),void 0!==n.osfRuntimeVersion&&o.push(e.makeStringDataField("".concat(t,".OsfRuntimeVersion"),n.osfRuntimeVersion)),void 0!==n.officeJsVersion&&o.push(e.makeStringDataField("".concat(t,".OfficeJsVersion"),n.officeJsVersion)),void 0!==n.hostJsVersion&&o.push(e.makeStringDataField("".concat(t,".HostJsVersion"),n.hostJsVersion)),void 0!==n.assetId&&o.push(e.makeStringDataField("".concat(t,".AssetId"),n.assetId)),void 0!==n.providerName&&o.push(e.makeStringDataField("".concat(t,".ProviderName"),n.providerName)),void 0!==n.type&&o.push(e.makeStringDataField("".concat(t,".Type"),n.type)),o}}(t.SDX||(t.SDX={}))}(t.System||(t.System={}))}(t.Office||(t.Office={}))}(e.Contracts||(e.Contracts={}))}(oteljs||(oteljs={})),function(e){var t=function(){function t(){}return 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(t,n){try{if(t.dataFields&&t.dataFields.filter((function(e){var t=e.classification;return t&&4!==t&&1!==t})).length>0)return;var o=OSF._OfficeAppFactory.getId(),r=OSF.AgaveHostAction.SendTelemetryEvent;OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[o,r,t])}catch(t){e.logError(1,"AgaveWacSink",t)}},t.prototype.sendCustomerContent=function(t,n){try{if(t.dataFields&&t.dataFields.filter((function(e){var t=e.classification;return t&&4!==t&&1!==t&&32!==t})).length>0)return;var o=OSF._OfficeAppFactory.getId(),r=OSF.AgaveHostAction.SendCustomerContent;OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[o,r,t])}catch(t){e.logError(1,"AgaveWacSink",t)}},t}();e.SdxWacSink=t}(oteljs||(oteljs={}));var OfficeFirstPartyDialog,OfficeFirstPartyAuth,OfficeCore,OfficeFirstParty;__extends=this&&this.__extends||function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),__awaiter=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){e.done?r(e.value):new n((function(t){t(e.value)})).then(a,s)}l((o=o.apply(e,t||[])).next())}))},__generator=this&&this.__generator||function(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},__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){OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject;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),i=OfficeExtension.Utility.fixObjectPathIfNecessary,a=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult),s=(OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags),l=function(l){function c(){return null!==l&&l.apply(this,arguments)||this}return __extends(c,l),Object.defineProperty(c.prototype,"_className",{get:function(){return"BiShim"},enumerable:!0,configurable:!0}),c.prototype.initialize=function(e){n(this,"Initialize",0,[e],s(2,"SharedApiUndo","1.5"),0)},c.prototype.getData=function(){return n(this,"getData",1,[],4,0)},c.prototype.setVisualObjects=function(e){n(this,"setVisualObjects",0,[e],2,0)},c.prototype.setVisualObjectsToPersist=function(e){n(this,"setVisualObjectsToPersist",0,[e],2,0)},c.prototype._handleResult=function(e){(l.prototype._handleResult.call(this,e),o(e))||i(this,e)},c.prototype._handleRetrieveResult=function(e,t){l.prototype._handleRetrieveResult.call(this,e,t),a(this,e,t)},c.newObject=function(n){return t(e.BiShim,n,"Microsoft.AgaveVisual.BiShim",!1,4)},c.prototype.toJSON=function(){return r(this,{},{})},c}(OfficeExtension.ClientObject);e.BiShim=l,function(e){e.generalException="GeneralException"}(e.AgaveVisualErrorCodes||(e.AgaveVisualErrorCodes={}))}(OfficeCore||(OfficeCore={})),function(e){OfficeExtension.BatchApiHelper.createPropertyObject;var t=OfficeExtension.BatchApiHelper.createMethodObject,n=(OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject,OfficeExtension.BatchApiHelper.createTopLevelServiceObject),o=(OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod),r=OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,i=(OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined),a=OfficeExtension.Utility.isUndefined,s=OfficeExtension.Utility.throwIfNotLoaded,l=(OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load),c=OfficeExtension.Utility.retrieve,u=OfficeExtension.Utility.toJson,d=OfficeExtension.Utility.fixObjectPathIfNecessary,f=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult),p=function(r){function a(){return null!==r&&r.apply(this,arguments)||this}return __extends(a,r),Object.defineProperty(a.prototype,"_className",{get:function(){return"FlightingService"},enumerable:!0,configurable:!0}),a.prototype.getClientSessionId=function(){return o(this,"GetClientSessionId",1,[],4,0)},a.prototype.getDeferredFlights=function(){return o(this,"GetDeferredFlights",1,[],4,0)},a.prototype.getFeature=function(n,o,r,i){return t(e.ABType,this,"GetFeature",1,[n,o,r,i],!1,!1,null,4)},a.prototype.getFeatureGate=function(n,o){return t(e.ABType,this,"GetFeatureGate",1,[n,o],!1,!1,null,4)},a.prototype.resetOverride=function(e){o(this,"ResetOverride",0,[e],0,0)},a.prototype.setOverride=function(e,t,n){o(this,"SetOverride",0,[e,t,n],0,0)},a.prototype._handleResult=function(e){(r.prototype._handleResult.call(this,e),i(e))||d(this,e)},a.prototype._handleRetrieveResult=function(e,t){r.prototype._handleRetrieveResult.call(this,e,t),f(this,e,t)},a.newObject=function(t){return n(e.FlightingService,t,"Microsoft.Experiment.FlightingService",!1,4)},a.prototype.toJSON=function(){return u(this,{},{})},a}(OfficeExtension.ClientObject);e.FlightingService=p;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"ABType"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["value"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return s("value",this._V,"ABType",this._isNull),this._V},enumerable:!0,configurable:!0}),t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!i(t)){var n=t;d(this,n),a(n.Value)||(this._V=n.Value)}},t.prototype.load=function(e){return l(this,e)},t.prototype.retrieve=function(e){return c(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),f(this,t,n)},t.prototype.toJSON=function(){return u(this,{value:this._V},{})},t.prototype.ensureUnchanged=function(e){r(this,e)},t}(OfficeExtension.ClientObject);e.ABType=h,function(e){e.boolean="Boolean",e.integer="Integer",e.string="String"}(e.FeatureType||(e.FeatureType={})),function(e){e.generalException="GeneralException"}(e.ExperimentErrorCodes||(e.ExperimentErrorCodes={}))}(OfficeCore||(OfficeCore={})),function(e){var t,n=function(){function e(e){this._dialogService=e}return e.prototype.close=function(){return this._dialogService.close(),this._dialogService.context.sync()},e.prototype.messageChild=function(e,t){DialogApiManager&&DialogApiManager.messageChildRichApiBridge&&DialogApiManager.messageChildRichApiBridge(e,t)},e}();e.Dialog=n,e.displayWebDialog=function(t,n){return void 0===n&&(n={}),new OfficeExtension.CoreUtility.Promise((function(r,i){if(n.width&&n.height&&(!o(n.width)||!o(n.height)))throw new OfficeExtension.Error({code:"InvalidArgument",message:'Dimensions must be "number%" or number.'});var a=new OfficeExtension.ClientRequestContext,s=OfficeCore.FirstPartyDialogService.newObject(a),l=new e.Dialog(s),c=s.onDialogMessage.add((function(e){OfficeExtension.Utility.log("dialogMessageHandler:"+JSON.stringify(e));var t,o,s,u=JSON.parse(e.message),d=u.errorCode?new OfficeExtension.Error((t=u.errorCode,(o={})[12002]={code:"InvalidUrl",message:"Cannot load URL, no such page or bad URL syntax."},o[12003]={code:"InvalidUrl",message:"HTTPS is required."},o[12004]={code:"Untrusted",message:"Domain is not trusted."},o[12005]={code:"InvalidUrl",message:"HTTPS is required."},o[12007]={code:"FailedToOpen",message:"Another dialog is already opened."},(s=o)[t]?s[t]:{code:"Unknown",message:"An unknown error has occured with code: "+t})):null,f=u.type,p=u.origin,h=u.message;switch(f){case 17:d?i(d):r(l);break;case 12:n.onMessage&&n.onMessage(h,l,p);break;case 10:default:12006===u.errorCode?(c&&(c.remove(),a.sync()),n.onClose&&n.onClose()):n.onRuntimeError&&(n.onRuntimeError(d,l),i(d))}return OfficeExtension.CoreUtility.Promise.resolve()}));return a.sync().then((function(){var e={width:n.width?parseInt(n.width):50,height:n.height?parseInt(n.height):50,displayInIFrame:n.displayInIFrame,dialogTitle:n.dialogTitle,escKeyCloseDialog:void 0===n.escKeyCloseDialog||n.escKeyCloseDialog};return s.displayDialog(t,e),a.sync()})).catch((function(e){i(e)}))}));function o(e){return/^(\-|\+)?([0-9]+)%?$/.test(e)}},function(e){e[e.dialogMessageReceived=0]="dialogMessageReceived",e[e.dialogEventReceived=1]="dialogEventReceived"}(t||(t={}))}(OfficeFirstPartyDialog||(OfficeFirstPartyDialog={})),function(e){e.OfficeOnlineDomainList=["*.dod.online.office365.us","*.gov.online.office365.us","*.officeapps-df.live.com","*.officeapps.live.com","*.online.office.de","*.partner.officewebapps.cn"],e.isHostOriginTrusted=function(){if(void 0===window.external||void 0===window.external.GetContext){var t=OSF.getClientEndPoint()._targetUrl,n=t.split("/")[2].split(":")[0].split("?")[0];return 0!=t.indexOf("https:")||e.OfficeOnlineDomainList.forEach((function(e){if(0==e.indexOf("*.")&&(e=e.substring(2)),n.indexOf(e)==n.length-e.length)return!0})),!1}return!0}}(OfficeCore||(OfficeCore={})),function(e){var t=function(){function t(e){this.context=e}return Object.defineProperty(t.prototype,"roamingSettings",{get:function(){return this.m_roamingSettings||(this.m_roamingSettings=e.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=e.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=e.Skill.newObject(this.context)),this.m_skill},enumerable:!0,configurable:!0}),t}();e.FirstPartyApis=t;var n=function(n){function o(e){return n.call(this,e)||this}return __extends(o,n),Object.defineProperty(o.prototype,"firstParty",{get:function(){return this.m_firstPartyApis||(this.m_firstPartyApis=new t(this)),this.m_firstPartyApis},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"flighting",{get:function(){return this.flightingService},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"telemetry",{get:function(){return this.m_telemetry||(this.m_telemetry=e.TelemetryService.newObject(this)),this.m_telemetry},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"ribbon",{get:function(){return this.m_ribbon||(this.m_ribbon=e.DynamicRibbon.newObject(this)),this.m_ribbon},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"bi",{get:function(){return this.m_biShim||(this.m_biShim=e.BiShim.newObject(this)),this.m_biShim},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"flightingService",{get:function(){return this.m_flightingService||(this.m_flightingService=e.FlightingService.newObject(this)),this.m_flightingService},enumerable:!0,configurable:!0}),o}(OfficeExtension.ClientRequestContext);e.RequestContext=n,e.run=function(t,n){return OfficeExtension.ClientRequestContext._runBatch("OfficeCore.run",arguments,(function(t){return new e.RequestContext(t)}))}}(OfficeCore||(OfficeCore={})),function(e){!function(e){function t(){var e=new OfficeCore.RequestContext;return"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(e._customData="WacPartition"),e}e.isFeatureEnabled=function(e,n){return __awaiter(this,void 0,void 0,(function(){var o,r,i;return __generator(this,(function(a){switch(a.label){case 0:return o=t(),r=OfficeCore.License.newObject(o),i=r.isFeatureEnabled(e,n),[4,o.sync()];case 1:return a.sent(),[2,i.value]}}))}))},e.getFeatureTier=function(e,n){return __awaiter(this,void 0,void 0,(function(){var o,r,i;return __generator(this,(function(a){switch(a.label){case 0:return o=t(),r=OfficeCore.License.newObject(o),i=r.getFeatureTier(e,n),[4,o.sync()];case 1:return a.sent(),[2,i.value]}}))}))},e.isFreemiumUpsellEnabled=function(){return __awaiter(this,void 0,void 0,(function(){var e,n,o;return __generator(this,(function(r){switch(r.label){case 0:return e=t(),n=OfficeCore.License.newObject(e),o=n.isFreemiumUpsellEnabled(),[4,e.sync()];case 1:return r.sent(),[2,o.value]}}))}))},e.launchUpsellExperience=function(e){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(o){switch(o.label){case 0:return n=t(),OfficeCore.License.newObject(n).launchUpsellExperience(e),[4,n.sync()];case 1:return o.sent(),[2]}}))}))},e.onFeatureStateChanged=function(e,n){return __awaiter(this,void 0,void 0,(function(){var o,r,i,a;return __generator(this,(function(s){switch(s.label){case 0:return o=t(),r=OfficeCore.License.newObject(o),(i=r.getLicenseFeature(e)).onStateChanged.add(n),a=function(){return i.onStateChanged.remove(n),null},[4,o.sync()];case 1:return s.sent(),[2,a]}}))}))},e.getMsaDeviceTicket=function(e,n,o){return __awaiter(this,void 0,void 0,(function(){var r,i,a;return __generator(this,(function(s){switch(s.label){case 0:return r=t(),i=OfficeCore.License.newObject(r),a=i.getMsaDeviceTicket(e,n,o),[4,r.sync()];case 1:return s.sent(),[2,a.value]}}))}))}}(e.license||(e.license={}))}(Office||(Office={})),function(e){OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject;var t,n=OfficeExtension.BatchApiHelper.createTopLevelServiceObject,o=(OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod),r=(OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined),i=(OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson),a=OfficeExtension.Utility.fixObjectPathIfNecessary,s=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult),l=(OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags),c=function(c){function u(){return null!==c&&c.apply(this,arguments)||this}return __extends(u,c),Object.defineProperty(u.prototype,"_className",{get:function(){return"Skill"},enumerable:!0,configurable:!0}),u.prototype.executeAction=function(e,t,n){return o(this,"ExecuteAction",1,[e,t,n],5,0)},u.prototype.notifyPaneEvent=function(e,t){o(this,"NotifyPaneEvent",1,[e,t],5,0)},u.prototype.registerHostSkillEvent=function(){o(this,"RegisterHostSkillEvent",0,[],l(3,"SharedApiUndo","1.1"),0)},u.prototype.testFireEvent=function(){o(this,"TestFireEvent",0,[],l(3,"SharedApiUndo","1.1"),0)},u.prototype.unregisterHostSkillEvent=function(){o(this,"UnregisterHostSkillEvent",0,[],l(3,"SharedApiUndo","1.1"),0)},u.prototype._handleResult=function(e){(c.prototype._handleResult.call(this,e),r(e))||a(this,e)},u.prototype._handleRetrieveResult=function(e,t){c.prototype._handleRetrieveResult.call(this,e,t),s(this,e,t)},u.newObject=function(t){return n(e.Skill,t,"Microsoft.SkillApi.Skill",!1,4)},Object.defineProperty(u.prototype,"onHostSkillEvent",{get:function(){var e=this;return this.m_hostSkillEvent||(this.m_hostSkillEvent=new OfficeExtension.GenericEventHandlers(this.context,this,"HostSkillEvent",{eventType:65538,registerFunc:function(){return e.registerHostSkillEvent()},unregisterFunc:function(){return e.unregisterHostSkillEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(n){var o=t.Skill_HostSkillEvent_EventArgsTransform(e,n);return OfficeExtension.Utility._createPromiseFromResult(o)}})),this.m_hostSkillEvent},enumerable:!0,configurable:!0}),u.prototype.toJSON=function(){return i(this,{},{})},u}(OfficeExtension.ClientObject);e.Skill=c,function(e){e.Skill_HostSkillEvent_EventArgsTransform=function(e,t){return{type:t.type,data:t.data}}}(t=e._CC||(e._CC={})),function(e){e.generalException="GeneralException"}(e.SkillErrorCodes||(e.SkillErrorCodes={}))}(OfficeCore||(OfficeCore={})),function(e){OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject;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),i=(OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson),a=OfficeExtension.Utility.fixObjectPathIfNecessary,s=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult),l=(OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags,function(l){function c(){return null!==l&&l.apply(this,arguments)||this}return __extends(c,l),Object.defineProperty(c.prototype,"_className",{get:function(){return"TelemetryService"},enumerable:!0,configurable:!0}),c.prototype.sendNonStandardEvent=function(e,t,o,i,a,s){r("TelemetryService.sendNonStandardEvent","Telemetry","1.4","OfficeCore"),n(this,"SendNonStandardEvent",1,[e,t,o,i,a,s],4,0)},c.prototype.sendTelemetryEvent=function(e,t,o,r,i){n(this,"SendTelemetryEvent",1,[e,t,o,r,i],4,0)},c.prototype._handleResult=function(e){(l.prototype._handleResult.call(this,e),o(e))||a(this,e)},c.prototype._handleRetrieveResult=function(e,t){l.prototype._handleRetrieveResult.call(this,e,t),s(this,e,t)},c.newObject=function(n){return t(e.TelemetryService,n,"Microsoft.Telemetry.TelemetryService",!1,4)},c.prototype.toJSON=function(){return i(this,{},{})},c}(OfficeExtension.ClientObject));e.TelemetryService=l,function(e){e.unset="Unset",e.string="String",e.boolean="Boolean",e.int64="Int64",e.double="Double"}(e.DataFieldType||(e.DataFieldType={})),function(e){e.sendTelemetryEvent="SendTelemetryEvent",e.customerContent="CustomerContent",e.directNumericEvent="DirectNumericEvent"}(e.EventType||(e.EventType={})),function(e){e.generalException="GeneralException"}(e.TelemetryErrorCodes||(e.TelemetryErrorCodes={}))}(OfficeCore||(OfficeCore={})),function(e){var t="officeWebAuthReplyUrls",n=!1,o=null;function r(e){var t=null,n=null,o=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return t=e.apply(void 0,n)};return{immediateCall:o,delayCall:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n=function(){return o.apply(void 0,e)}},waitForPromise:function(){return n&&(n(),n=null),t||Promise.resolve()}}}function i(t){return __awaiter(this,void 0,void 0,(function(){var n,o;return __generator(this,(function(r){switch(r.label){case 0:return n=!1,t&&e.supportsTeamsTokenFlow?(n=!0,[3,3]):[3,1];case 1:return[4,a()];case 2:(o=r.sent()).supportsAuthToken?n=!0:t&&(n=!o.hostPageSupportsAuth),r.label=3;case 3:return[2,n]}}))}))}function a(){return Office&&Office.context&&Office.context.webAuth?o?Promise.resolve(o):new Promise((function(e,t){Office.context.webAuth.getAuthContextAsync((function(n){if("succeeded"===n.status){if(!(o=n.value)||o.isAnonymous)return void t({code:"CannotGetAuthContext",message:o?o.Error:void 0,loggableErrorMessage:"Anonymous user"});if(!o.appId)return void t({code:"CannotGetAuthContext",message:"App ID is missing from getAuthContextAsync. Please verify the WebApplicationInfo node in app manifest."});e(o)}else t({code:"CannotGetAuthContext",message:n.status,loggableErrorMessage:String(n.error.code)})}))})):Promise.reject({code:"GetAuthContextAsyncMissing",message:"Office:["+!Office+"],Office.context:["+!Office.context+"],Office.context.webAuth:["+!Office.context.webAuth+"]"})}e.authFlow="authcode",e.autoPopup=!1,e.upnCheck=!0,e.timeout=void 0,e.msal="https://alcdn.msauth.net/browser-1p/2.28.1/js/msal-browser-1p.min.js",e.debugging=!1,e.useMsal3=void 0,e.delay=0,e.delayMsal=0,e.supportsOauthManager=!1,e.supportsTeamsTokenFlow=!0,e.supportsBrowserAuth=!0;var s=r((function(o,r){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(s){switch(s.label){case 0:return e.supportsBrowserAuth?[4,a()]:[2,Promise.reject({code:"PackageNotLoaded"})];case 1:return i=s.sent(),[2,new Promise((function(a,s){try{var l="msa"===i.authorityType.toLowerCase();if(OSF.WebAuth.config={authFlow:e.authFlow,authVersion:e.authVersion?e.authVersion:null,msal:e.msal,delayWebAuth:e.delay,delayMsal:e.delayMsal,debugging:e.debugging,useMsal3:e.useMsal3,authority:e.authorityOverride?e.authorityOverride:i.authority,idp:i.authorityType.toLowerCase(),appIds:[l&&i.msaAppId?i.msaAppId:i.appId],redirectUri:o||null,upn:i.upn,puid:i.userId,prefetch:r,telemetryInstance:"otel",autoPopup:e.autoPopup,enableUpnCheck:e.upnCheck,enableConsoleLogging:e.debugging,tenantId:i.tenantId,timeout:e.timeout},OSF.WebAuth.load().then((function(e){u(e,n=!0),a()})).catch((function(e){s({code:"PackageNotLoaded",message:e instanceof Event?e.type:e,telemetryResult:e})})),"implicit"===e.authFlow){var c=o||window.location.href.split("?")[0],d=sessionStorage.getItem(t);d||""===d?d=c:d+=", "+c,d&&sessionStorage.setItem(t,d)}}catch(e){OSF.WebAuth.config=null,OSF.WebAuth.load().then((function(){a()})).catch((function(){s({code:"FailedToLoad",message:e})}))}}))]}}))}))}));var l=r((function(t,n){return __awaiter(this,void 0,void 0,(function(){var o,r;return __generator(this,(function(a){switch(a.label){case 0:if(!OSF.WebAuth||"web"!=OSF._OfficeAppFactory.getHostInfo().hostPlatform)return[3,6];a.label=1;case 1:return a.trys.push([1,5,,6]),s.delayCall(t,n),[4,i(e.supportsOauthManager)];case 2:return a.sent()?[3,4]:[4,s.waitForPromise()];case 3:a.sent(),a.label=4;case 4:return[3,6];case 5:throw o=a.sent(),u((r=o).result,!1,r),delete r.result,delete r.loggableErrorMessage,r;case 6:return[2]}}))}))}));function c(e,t){return l.immediateCall(e,t)}function u(e,t,n){void 0!==OTel&&OTel.OTelLogger.onTelemetryLoaded((function(){var o=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)]:[],r=n&&n.loggableErrorMessage?n.loggableErrorMessage:"",i=t?[]:[oteljs.makeStringDataField("ApiErrorCode",n&&n.code?n.code:""),oteljs.makeStringDataField("Error",r||(e instanceof Event?e.type:""))],a=o.concat(i,[oteljs.makeBooleanDataField("Result",t)]);if(e&&!(e instanceof Event)&&e.Telemetry)for(var s in e.Telemetry)if(e.Telemetry[s])switch(s){case"succeeded":a.push(oteljs.makeBooleanDataField(s,e.Telemetry[s]));break;case"loadedApplicationCount":case"timeToLoad":a.push(oteljs.makeInt64DataField(s,e.Telemetry[s]));break;default:a.push(oteljs.makeStringDataField(s,e.Telemetry[s]))}OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.OfficeFirstPartyAuth.Load",dataFields:a,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage}})}))}function d(e,t,n){void 0!==OTel&&OTel.OTelLogger.onTelemetryLoaded((function(){var o=[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 n&&n),oteljs.makeBooleanDataField("Result",t),oteljs.makeStringDataField("Error",e instanceof Event?e.type:e.ErrorCode)];if(e&&!(e instanceof Event)&&e.Telemetry)for(var r in e.Telemetry)if(e.Telemetry[r])switch(r){case"succeeded":o.push(oteljs.makeBooleanDataField(r,e.Telemetry[r]));break;case"timeToGetToken":o.push(oteljs.makeInt64DataField(r,e.Telemetry[r]));break;default:o.push(oteljs.makeStringDataField(r,e.Telemetry[r]))}OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.OfficeFirstPartyAuth.GetAccessToken",dataFields:o,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage}})}))}e.load=c,e.getAccessToken=function(e,t){var o=this;return l.waitForPromise().then((function(){return new Promise((function(r,a){return __awaiter(o,void 0,void 0,(function(){var o,l,c,u,f,p,h,g;return __generator(this,(function(m){switch(m.label){case 0:return m.trys.push([0,10,,11]),"web"!=OSF._OfficeAppFactory.getHostInfo().hostPlatform?[3,6]:[4,i(!!e.appName)];case 1:return m.sent()?[3,3]:[4,s.waitForPromise()];case 2:return m.sent(),OSF.WebAuth&&n?OSF.WebAuth.config.appIds[0]&&OSF.WebAuth.getToken(e.resource,null,OSF.WebAuth.config.appIds[0],e.correlationId||OSF._OfficeAppFactory.getHostInfo().osfControlAppCorrelationId,t&&t.popup?t.popup:null,e&&e.authChallenge?e.authChallenge:null).then((function(e){d(e,!0,!(!t||!t.popup)&&t.popup),r({accessToken:e.Token,tokenIdenityType:"msa"==OSF.WebAuth.config.idp.toLowerCase()?OfficeCore.IdentityType.microsoftAccount:OfficeCore.IdentityType.organizationAccount})})).catch((function(e){d(e,!1,!(!t||!t.popup)&&t.popup),a({code:e.ErrorCode,message:e instanceof Event?e.type:e.ErrorMessage})})):(y=n,v=OSF.WebAuth.loadAttempts,void 0!==OTel&&OTel.OTelLogger.onTelemetryLoaded((function(){var e=[oteljs.makeBooleanDataField("Loaded",y),oteljs.makeInt64DataField("LoadAttempts","number"==typeof v?v: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,u=OfficeCore.AuthenticationService.newObject(o),o._customData="WacPartition",l=u.getAccessToken(e,null),[4,o.sync()];case 4:m.sent(),r(l.value),m.label=5;case 5:return[3,9];case 6:return c=new OfficeCore.RequestContext,u=OfficeCore.AuthenticationService.newObject(c),f=u.onTokenReceived.add((function(e){if(!OfficeExtension.CoreUtility.isNullOrUndefined(e))if(f.remove(),c.sync().catch((function(){})),0==e.code)r(e.tokenValue);else if(OfficeExtension.CoreUtility.isNullOrUndefined(e.errorInfo))a({code:e.code});else try{a(JSON.parse(e.errorInfo))}catch(t){a({code:e.code,message:e.errorInfo})}return null})),[4,c.sync()];case 7:return m.sent(),p=u.getAccessToken(e,u._targetId),[4,c.sync()];case 8:if(m.sent(),OfficeExtension.CoreUtility.isNullOrUndefined(p.value))return[2,null];h=p.value.accessToken,OfficeExtension.CoreUtility.isNullOrUndefined(h)||r(p.value),m.label=9;case 9:return[3,11];case 10:return g=m.sent(),a(g),[3,11];case 11:return[2]}var y,v}))}))}))}))},e.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}))},e.getIdentities=function(){var e=new OfficeCore.RequestContext,t=OfficeCore.AuthenticationService.newObject(e).getIdentities();return e.sync().then((function(){return t.value}))},e.onIdentityChanged=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,o=this;return __generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),"web"===OSF._OfficeAppFactory.getHostInfo().hostPlatform?[3,2]:(t=new OfficeCore.RequestContext,n=OfficeCore.AuthenticationService.newObject(t),n.onIdentityChanged.add(e),[4,t.sync()]);case 1:return r.sent(),[2,function(){return __awaiter(o,void 0,void 0,(function(){return __generator(this,(function(o){switch(o.label){case 0:return n.onIdentityChanged.remove(e),[4,t.sync()];case 1:return o.sent(),[2]}}))}))}];case 2:return[3,4];case 3:return r.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(t);null!==e&&-1!==e.indexOf(window.location.origin+window.location.pathname)&&c()}catch(e){console.error(e)}}()}(OfficeFirstPartyAuth||(OfficeFirstPartyAuth={})),function(e){!function(e){var t,n;!function(e){e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Force=2]="Force"}(t=e.PopupOptions||(e.PopupOptions={})),function(e){e[e.UnsupportedUserIdentity=13003]="UnsupportedUserIdentity",e[e.UserAborted=13004]="UserAborted",e[e.InteractionRequired=13005]="InteractionRequired",e[e.ClientError=13006]="ClientError",e[e.ServerError=13007]="ServerError",e[e.NotAvailable=13012]="NotAvailable",e[e.InternalError=5001]="InternalError",e[e.InvalidApiArguments=5013]="InvalidApiArguments"}(n=e.AuthErrorCode||(e.AuthErrorCode={}));var o={ACCOUNT_UNAVAILABLE:n.UnsupportedUserIdentity,USER_CANCEL:n.UserAborted,USER_INTERACTION_REQUIRED:n.InteractionRequired,PERSISTENT_ERROR:n.ClientError,NO_NETWORK:n.ServerError,TRANSIENT_ERROR:n.ServerError,NESTED_APP_AUTH_UNAVAILABLE:n.NotAvailable},r={POPUP_WINDOW_ERROR:n.ClientError,USER_CANCELLED:n.UserAborted},i="access_token",a="xms_cc",s=0,l=!1,c=!1,u=void 0,d=null,f=void 0;e.clientCapabilities=[],e.upnCheck=!0,e.timeout=void 0,e.msal="https://alcdn.msauth.net/browser-1p/2.28.1/js/msal-browser-1p.min.js",e.debugging=!1,e.delay=0,e.delayMsal=0,e.useMsal3=void 0;var p={},h=function(e){try{var t="string"==typeof e?e:e.data,r=JSON.parse(t);if(r.requestId){var i=r.requestId;if(p.hasOwnProperty(i)){var a=n.InternalError,s=p[i],l=s[0],c=s[1];delete p[i];var u=r.token;if(u&&!0===r.success&&u.access_token&&"number"==typeof u.expires_in)return void l({accessToken:u.access_token,idToken:u.id_token,expiresOn:new Date(Date.now()+1e3*u.expires_in)});var d=r.error;if(d){var f=d.status;o[f]&&(a=o[f])}c({code:a})}}}catch(e){}},g={code:n.NotAvailable};function m(t){if(0===e.clientCapabilities.length)return t;var n={};if(t)try{n=JSON.parse(t)}catch(e){}return n.hasOwnProperty(i)||(n[i]={}),n[i][a]={values:e.clientCapabilities},JSON.stringify(n)}function y(e,t){var o=e.clientId||f,i=e.correlationId||OSF.OUtil.Guid.generateNewGuid(),a=Date.now(),d=function(e){var n=function(e,n){var r=Date.now()-a;!function(e,t,n,o,r,i){if(s>0&&!n)return;s++,void 0!==OTel&&OTel.OTelLogger.onTelemetryLoaded((function(){var r=[oteljs.makeStringDataField("NestedClientId",e),oteljs.makeStringDataField("CorrelationId",t),oteljs.makeBooleanDataField("Popup",n),oteljs.makeInt64DataField("Duration",o),oteljs.makeInt64DataField("ErrorCode",i?i.code:0),oteljs.makeBooleanDataField("BridgeAvailable",v())];OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.NestedAppAuth.GetAccessToken",dataFields:r,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage,diagnosticLevel:oteljs.DiagnosticLevel.NecessaryServiceDataEvent}})}))}(o,i,t,r,0,n)};return e.then((function(e){n(0,null)})).catch((function(e){n(0,e)})),e};return v()?d(new Promise((function(n,r){var a=OSF.OUtil.Guid.generateNewGuid(),s=e.scopes.join(" "),c={messageType:"NestedAppAuthRequest",method:t?"GetTokenPopup":"GetToken",requestId:a,clientLibrary:"officejs",sendTime:Date.now(),tokenParams:{clientId:o,scope:s,correlationId:i,claims:m(e.claims)}};l||(nestedAppAuthBridge.addEventListener("message",h),l=!0),p[a]=[n,r],nestedAppAuthBridge.postMessage(JSON.stringify(c))}))):d(u?u.then((function(){if(!c)return Promise.reject(g);var a=e.scopes.join(" ");return a=a.replace(/(\/.default)$/,""),OSF.WebAuth.getToken(a,e.scopes,o,i,t,e.claims).then((function(e){return{accessToken:e.Token,expiresOn:e.MsalResult?e.MsalResult.expiresOn:void 0}})).catch((function(e){var t=n.InternalError,o=void 0;if(e)if(o=e.ErrorMessage,e.MsalResult&&"InteractionRequiredAuthError"===e.MsalResult.name)t=n.InteractionRequired;else if(e.ErrorCode){var i=e.ErrorCode.toUpperCase();r[i]&&(t=r[i])}return Promise.reject({code:t,description:o})}))})):Promise.reject(g))}function v(){return"undefined"!=typeof nestedAppAuthBridge}e.isBridgeAvailable=v,e.load=function(t,n,o,r){return f=t,r&&(e.clientCapabilities=r),u||(u=new Promise((function(i,a){if(v())i();else if(Office&&Office.context&&Office.context.auth&&OSF.WebAuth)try{Office.context.auth.getAuthContextAsync((function(s){if("succeeded"===s.status){if(!(d=s.value))return void a(g);OSF.WebAuth.config={authFlow:"authcode",authVersion:e.authVersion?e.authVersion:null,msal:e.msal,delayWebAuth:e.delay,delayMsal:e.delayMsal,debugging:e.debugging,useMsal3:e.useMsal3,authority:e.authorityOverride?e.authorityOverride:d.authorityBaseUrl,idp:"msa"===d.authorityType.toLowerCase()?"msa":"aad",appIds:[t],redirectUri:n||null,upn:d.userPrincipalName,prefetch:o,telemetryInstance:"otel",enableUpnCheck:e.upnCheck,enableConsoleLogging:e.debugging,checkActiveAccount:!0,tenantId:d.tenantId,timeout:e.timeout,clientCapabilities:r},OSF.WebAuth.load().then((function(e){c=!0,i()})).catch((function(e){a(__assign({},g,{description:e instanceof Event?e.type:void 0}))}))}else a(g)}))}catch(e){a(g)}else a(g)})))},e.getAccessToken=function(e){var o=null==e.popup?t.None:e.popup;if(o===t.Auto&&!e.directUserActionCallback)throw{code:n.InvalidApiArguments};return y(e,o===t.Force).catch((function(r){if(r.code==n.InteractionRequired&&o===t.Auto&&e.directUserActionCallback)return e.directUserActionCallback().then((function(t){if(t)return y(e,!0);throw{code:n.UserAborted}})).catch((function(){throw{code:n.UserAborted}}));throw r}))}}(e.NestedAppAuth||(e.NestedAppAuth={}))}(OfficeFirstPartyAuth||(OfficeFirstPartyAuth={})),function(e){var t,n="Office",o=OfficeExtension.BatchApiHelper.createPropertyObject,r=OfficeExtension.BatchApiHelper.createMethodObject,i=OfficeExtension.BatchApiHelper.createIndexerObject,a=(OfficeExtension.BatchApiHelper.createRootServiceObject,OfficeExtension.BatchApiHelper.createTopLevelServiceObject),s=OfficeExtension.BatchApiHelper.createChildItemObject,l=OfficeExtension.BatchApiHelper.invokeMethod,c=OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,u=OfficeExtension.BatchApiHelper.invokeSetProperty,d=OfficeExtension.Utility.isNullOrUndefined,f=OfficeExtension.Utility.isUndefined,p=OfficeExtension.Utility.throwIfNotLoaded,h=OfficeExtension.Utility.throwIfApiNotSupported,g=OfficeExtension.Utility.load,m=OfficeExtension.Utility.retrieve,y=OfficeExtension.Utility.toJson,v=OfficeExtension.Utility.fixObjectPathIfNecessary,b=OfficeExtension.Utility._handleNavigationPropertyResults,C=OfficeExtension.Utility.adjustToDateTime,_=OfficeExtension.Utility.processRetrieveResult,O=OfficeExtension.Utility.setMockData,S=OfficeExtension.CommonUtility.calculateApiFlags,A=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"DialogPage"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["_Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_Id",{get:function(){return p("_Id",this.__I,"DialogPage",this._isNull),this.__I},enumerable:!0,configurable:!0}),n.prototype.close=function(){l(this,"Close",1,[],4,0)},n.prototype.readyToShow=function(){l(this,"ReadyToShow",1,[],4,0)},n.prototype.registerOnShow=function(){l(this,"RegisterOnShow",1,[],4,0)},n.prototype.sendMessageToHost=function(e){l(this,"SendMessageToHost",1,[e],4,0)},n.prototype.unregisterOnShow=function(){l(this,"UnregisterOnShow",1,[],4,0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!d(e)){var n=e;v(this,n),f(n._Id)||(this.__I=n._Id)}},n.prototype.load=function(e){return g(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),d(e)||f(e._Id)||(this.__I=e._Id)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.DialogPage,t,"Microsoft.Office.DialogPage.DialogPage",!1,4)},Object.defineProperty(n.prototype,"onOnShowEvent",{get:function(){var e=this;return this.m_onShowEvent||(this.m_onShowEvent=new OfficeExtension.GenericEventHandlers(this.context,this,"OnShowEvent",{eventType:1,registerFunc:function(){return e.registerOnShow()},unregisterFunc:function(){return e.unregisterOnShow()},getTargetIdFunc:function(){return e._Id},eventArgsTransformFunc:function(e){return OfficeExtension.Utility._createPromiseFromResult({})}})),this.m_onShowEvent},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.DialogPage=A,function(e){e.unknown="Unknown",e.basic="Basic",e.premium="Premium"}(t=e.LicenseFeatureTier||(e.LicenseFeatureTier={}));var E=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"License"},enumerable:!0,configurable:!0}),n.prototype.getFeatureTier=function(e,t){return l(this,"GetFeatureTier",1,[e,t],4,0)},n.prototype.getLicenseFeature=function(t){return r(e.LicenseFeature,this,"GetLicenseFeature",1,[t],!1,!1,null,4)},n.prototype.getMsaDeviceTicket=function(e,t,n){return l(this,"GetMsaDeviceTicket",1,[e,t,n],5,0)},n.prototype.isFeatureEnabled=function(e,t){return l(this,"IsFeatureEnabled",1,[e,t],4,0)},n.prototype.isFreemiumUpsellEnabled=function(){return l(this,"IsFreemiumUpsellEnabled",1,[],4,0)},n.prototype.launchUpsellExperience=function(e){l(this,"LaunchUpsellExperience",1,[e],4,0)},n.prototype._TestFireStateChangedEvent=function(e){l(this,"_TestFireStateChangedEvent",0,[e],S(3,"SharedApiUndo","1.2"),0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.License,t,"Microsoft.Office.Licensing.License",!1,4)},n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.License=E;var P,R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"LicenseFeature"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["id"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return p("id",this._I,"LicenseFeature",this._isNull),this._I},enumerable:!0,configurable:!0}),t.prototype._RegisterStateChange=function(){l(this,"_RegisterStateChange",1,[],4,0)},t.prototype._UnregisterStateChange=function(){l(this,"_UnregisterStateChange",1,[],4,0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!d(t)){var n=t;v(this,n),f(n.Id)||(this._I=n.Id)}},t.prototype.load=function(e){return g(this,e)},t.prototype.retrieve=function(e){return m(this,e)},t.prototype._handleIdResult=function(t){e.prototype._handleIdResult.call(this,t),d(t)||f(t.Id)||(this._I=t.Id)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),_(this,t,n)},Object.defineProperty(t.prototype,"onStateChanged",{get:function(){var e=this;return this.m_stateChanged||(this.m_stateChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"StateChanged",{eventType:1,registerFunc:function(){return e._RegisterStateChange()},unregisterFunc:function(){return e._UnregisterStateChange()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(t){var n=P.LicenseFeature_StateChanged_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_stateChanged},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){return y(this,{id:this._I},{})},t.prototype.setMockData=function(e){O(this,e)},t.prototype.ensureUnchanged=function(e){c(this,e)},t}(OfficeExtension.ClientObject);e.LicenseFeature=R,function(e){e.LicenseFeature_StateChanged_EventArgsTransform=function(e,n){var o={feature:n.featureName,isEnabled:n.isEnabled,tier:n.tierName};return n.tierName&&(o.tier=0==n.tierName?t.unknown:1==n.tierName?t.basic:2==n.tierName?t.premium:n.tierName),o}}(P=e._CC||(e._CC={}));var T=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"MsaDeviceTicketOptions"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["scopes"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Scopes"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"scopes",{get:function(){return p("scopes",this._S,"MsaDeviceTicketOptions",this._isNull),this._S},set:function(e){this._S=e,u(this,"Scopes",e,S(2,"SharedApiUndo","1.2"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["scopes"],[],[])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!d(e)){var n=e;v(this,n),f(n.Scopes)||(this._S=n.Scopes)}},n.prototype.load=function(e){return g(this,e)},n.prototype.retrieve=function(e){return m(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.MsaDeviceTicketOptions,t,"Microsoft.Office.Licensing.MsaDeviceTicketOptions",!1,4)},n.prototype.toJSON=function(){return y(this,{scopes:this._S},{})},n.prototype.setMockData=function(e){O(this,e)},n.prototype.ensureUnchanged=function(e){c(this,e)},n}(OfficeExtension.ClientObject);e.MsaDeviceTicketOptions=T;var I=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"AppRuntimePersistenceService"},enumerable:!0,configurable:!0}),n.prototype.getAppRuntimeStartState=function(){return l(this,"GetAppRuntimeStartState",1,[],4,0)},n.prototype.setAppRuntimeStartState=function(e){l(this,"SetAppRuntimeStartState",0,[e],S(2,"SharedRuntimeInternal","1.2"),0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.AppRuntimePersistenceService,t,"Microsoft.AppRuntime.AppRuntimePersistenceService",!1,4)},n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.AppRuntimePersistenceService=I;var w=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return __extends(o,t),Object.defineProperty(o.prototype,"_className",{get:function(){return"AppRuntimeService"},enumerable:!0,configurable:!0}),o.prototype.getAppRuntimeState=function(){return l(this,"GetAppRuntimeState",1,[],4,0)},o.prototype.getContentSnapshotAsBase64=function(){return h("AppRuntimeService.getContentSnapshotAsBase64","SnapshotControl","1.1",n),l(this,"GetContentSnapshotAsBase64",1,[],4,0)},o.prototype.getSnapshotEnabled=function(){return h("AppRuntimeService.getSnapshotEnabled","SnapshotControl","1.1",n),l(this,"GetSnapshotEnabled",1,[],4,0)},o.prototype.setAppRuntimeState=function(e){l(this,"SetAppRuntimeState",0,[e],S(2,"SharedRuntimeInternal","1.2"),0)},o.prototype.setSnapshotEnabled=function(e){h("AppRuntimeService.setSnapshotEnabled","SnapshotControl","1.1",n),l(this,"SetSnapshotEnabled",1,[e],4,0)},o.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},o.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},o.newObject=function(t){return a(e.AppRuntimeService,t,"Microsoft.AppRuntime.AppRuntimeService",!1,4)},Object.defineProperty(o.prototype,"onSnapshotImageReady",{get:function(){return h("AppRuntimeService.onSnapshotImageReady","SnapshotControl","1.1",n),this.m_snapshotImageReady||(this.m_snapshotImageReady=new OfficeExtension.GenericEventHandlers(this.context,this,"SnapshotImageReady",{eventType:65547,registerFunc:function(){return OfficeExtension.Utility._createPromiseFromResult(null)},unregisterFunc:function(){return OfficeExtension.Utility._createPromiseFromResult(null)},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(e){var t={imageBase64:e.imageBase64};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_snapshotImageReady},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"onVisibilityChanged",{get:function(){return this.m_visibilityChanged||(this.m_visibilityChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"VisibilityChanged",{eventType:65539,registerFunc:function(){return OfficeExtension.Utility._createPromiseFromResult(null)},unregisterFunc:function(){return OfficeExtension.Utility._createPromiseFromResult(null)},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(e){var t={visibility:e.visibility};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_visibilityChanged},enumerable:!0,configurable:!0}),o.prototype.toJSON=function(){return y(this,{},{})},o}(OfficeExtension.ClientObject);e.AppRuntimeService=w,function(e){e.inactive="Inactive",e.background="Background",e.visible="Visible"}(e.AppRuntimeState||(e.AppRuntimeState={})),function(e){e.hidden="Hidden",e.visible="Visible"}(e.Visibility||(e.Visibility={})),function(e){e.default="Default",e.menus="Menus",e.panes="Panes",e.qat="QAT",e.statusBar="StatusBar",e.backstage="Backstage",e.dialogs="Dialogs"}(e.VisualSurface||(e.VisualSurface={}));var F=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ThemeService"},enumerable:!0,configurable:!0}),n.prototype.getOfficeThemeDataForVisualSurface=function(e){return l(this,"GetOfficeThemeDataForVisualSurface",1,[e],5,0)},n.prototype.registerOfficeThemeChangedEvent=function(){l(this,"RegisterOfficeThemeChangedEvent",0,[],S(2,"SharedApiUndo","1.1"),0)},n.prototype.unregisterOfficeThemeChangedEvent=function(){l(this,"UnregisterOfficeThemeChangedEvent",0,[],S(2,"SharedApiUndo","1.1"),0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.ThemeService,t,"Microsoft.Theme.ThemeService",!1,4)},Object.defineProperty(n.prototype,"onOfficeThemeChanged",{get:function(){var e=this;return this.m_officeThemeChanged||(this.m_officeThemeChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"OfficeThemeChanged",{eventType:65548,registerFunc:function(){return e.registerOfficeThemeChangedEvent()},unregisterFunc:function(){return e.unregisterOfficeThemeChangedEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(t){var n=P.ThemeService_OfficeThemeChanged_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_officeThemeChanged},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.ThemeService=F,function(e){e.ThemeService_OfficeThemeChanged_EventArgsTransform=function(e,t){return{bodyBackgroundColor:t.bodyBackgroundColor,bodyForegroundColor:t.bodyForegroundColor,controlBackgroundColor:t.controlBackgroundColor,controlForegroundColor:t.controlForegroundColor}}}(P=e._CC||(e._CC={}));var D=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"Tap"},enumerable:!0,configurable:!0}),n.prototype.getEnterpriseUserInfo=function(){return l(this,"GetEnterpriseUserInfo",1,[],5,0)},n.prototype.getMruFriendlyPath=function(e){return l(this,"GetMruFriendlyPath",1,[e],5,0)},n.prototype.launchFileUrlInOfficeApp=function(e,t){return l(this,"LaunchFileUrlInOfficeApp",1,[e,t],5,0)},n.prototype.performLocalSearch=function(e,t,n,o){return l(this,"PerformLocalSearch",1,[e,t,n,o],5,0)},n.prototype.readSearchCache=function(e,t,n){return l(this,"ReadSearchCache",1,[e,t,n],5,0)},n.prototype.writeSearchCache=function(e,t,n){return l(this,"WriteSearchCache",1,[e,t,n],5,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.Tap,t,"Microsoft.TapRichApi.Tap",!1,4)},n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.Tap=D,function(e){e.unknown="Unknown",e.chart="Chart",e.smartArt="SmartArt",e.table="Table",e.image="Image",e.slide="Slide",e.ole="OLE",e.text="Text"}(e.ObjectType||(e.ObjectType={})),function(e){e.placeHolderRendered="PlaceHolderRendered",e.initialCardRendered="InitialCardRendered"}(e.PersonaCardPerfPoint||(e.PersonaCardPerfPoint={})),function(e){e.notSet="NotSet",e.free="Free",e.idle="Idle",e.busy="Busy",e.idleBusy="IdleBusy",e.doNotDisturb="DoNotDisturb",e.unalertable="Unalertable",e.unavailable="Unavailable"}(e.UnifiedCommunicationAvailability||(e.UnifiedCommunicationAvailability={})),function(e){e.online="Online",e.notOnline="NotOnline",e.away="Away",e.busy="Busy",e.beRightBack="BeRightBack",e.onThePhone="OnThePhone",e.outToLunch="OutToLunch",e.inAMeeting="InAMeeting",e.outOfOffice="OutOfOffice",e.doNotDisturb="DoNotDisturb",e.inAConference="InAConference",e.getting="Getting",e.notABuddy="NotABuddy",e.disconnected="Disconnected",e.notInstalled="NotInstalled",e.urgentInterruptionsOnly="UrgentInterruptionsOnly",e.mayBeAvailable="MayBeAvailable",e.idle="Idle",e.inPresentation="InPresentation"}(e.UnifiedCommunicationStatus||(e.UnifiedCommunicationStatus={})),function(e){e.free="Free",e.busy="Busy",e.idle="Idle",e.doNotDistrub="DoNotDistrub",e.blocked="Blocked",e.notSet="NotSet",e.outOfOffice="OutOfOffice"}(e.UnifiedCommunicationPresence||(e.UnifiedCommunicationPresence={})),function(e){e.unknown="Unknown",e.free="Free",e.busy="Busy",e.elsewhere="Elsewhere",e.tentative="Tentative",e.outOfOffice="OutOfOffice"}(e.FreeBusyCalendarState||(e.FreeBusyCalendarState={})),function(e){e.unknown="Unknown",e.enterprise="Enterprise",e.contact="Contact",e.bot="Bot",e.phoneOnly="PhoneOnly",e.oneOff="OneOff",e.distributionList="DistributionList",e.personalDistributionList="PersonalDistributionList",e.anonymous="Anonymous",e.unifiedGroup="UnifiedGroup"}(e.PersonaType||(e.PersonaType={})),function(e){e.workPhone="WorkPhone",e.homePhone="HomePhone",e.mobilePhone="MobilePhone",e.businessFax="BusinessFax",e.otherPhone="OtherPhone"}(e.PhoneType||(e.PhoneType={})),function(e){e.workAddress="WorkAddress",e.homeAddress="HomeAddress",e.otherAddress="OtherAddress"}(e.AddressType||(e.AddressType={})),function(e){e.unknown="Unknown",e.individual="Individual",e.group="Group"}(e.MemberType||(e.MemberType={}));var x,k="MemberInfoList",N=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"MemberInfoList"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["isWarmedUp","isWarmingUp"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["IsWarmedUp","IsWarmingUp"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isWarmedUp",{get:function(){return p("isWarmedUp",this._I,k,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isWarmingUp",{get:function(){return p("isWarmingUp",this._Is,k,this._isNull),this._Is},enumerable:!0,configurable:!0}),n.prototype.getPersonaForMember=function(t){return r(e.Persona,this,"GetPersonaForMember",1,[t],!1,!1,null,4)},n.prototype.items=function(){return l(this,"Items",1,[],4,0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!d(e)){var n=e;v(this,n),f(n.IsWarmedUp)||(this._I=n.IsWarmedUp),f(n.IsWarmingUp)||(this._Is=n.IsWarmingUp)}},n.prototype.load=function(e){return g(this,e)},n.prototype.retrieve=function(e){return m(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.prototype.toJSON=function(){return y(this,{isWarmedUp:this._I,isWarmingUp:this._Is},{})},n.prototype.setMockData=function(e){O(this,e)},n.prototype.ensureUnchanged=function(e){c(this,e)},n}(OfficeExtension.ClientObject);e.MemberInfoList=N,function(e){e.hostId="HostId",e.type="Type",e.photo="Photo",e.personaInfo="PersonaInfo",e.unifiedCommunicationInfo="UnifiedCommunicationInfo",e.organization="Organization",e.unifiedGroupInfo="UnifiedGroupInfo",e.members="Members",e.membership="Membership",e.capabilities="Capabilities",e.customizations="Customizations",e.viewableSources="ViewableSources",e.placeholder="Placeholder"}(x=e.PersonaDataUpdated||(e.PersonaDataUpdated={}));var M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"PersonaActions"},enumerable:!0,configurable:!0}),t.prototype.addContact=function(){l(this,"AddContact",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.callPhoneNumber=function(e){l(this,"CallPhoneNumber",0,[e],S(2,"SharedApiUndo","1.4"),0)},t.prototype.composeEmail=function(e){l(this,"ComposeEmail",0,[e],S(2,"SharedApiUndo","1.4"),0)},t.prototype.composeInstantMessage=function(e){l(this,"ComposeInstantMessage",0,[e],S(2,"SharedApiUndo","1.4"),0)},t.prototype.editContact=function(){l(this,"EditContact",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.editContactByIdentifier=function(e){l(this,"EditContactByIdentifier",0,[e],S(2,"SharedApiUndo","1.4"),0)},t.prototype.editUnifiedGroup=function(){l(this,"EditUnifiedGroup",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.getChangePhotoUrlAndOpenInBrowser=function(){l(this,"GetChangePhotoUrlAndOpenInBrowser",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.hideHoverCardForPersona=function(){l(this,"HideHoverCardForPersona",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.joinUnifiedGroup=function(){l(this,"JoinUnifiedGroup",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.leaveUnifiedGroup=function(){l(this,"LeaveUnifiedGroup",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.openGroupCalendar=function(){l(this,"OpenGroupCalendar",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.openLinkContactUx=function(){l(this,"OpenLinkContactUx",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.openOutlookProperties=function(){l(this,"OpenOutlookProperties",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.pinPersonaToQuickContacts=function(){l(this,"PinPersonaToQuickContacts",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.scheduleMeeting=function(){l(this,"ScheduleMeeting",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.showContactCard=function(e,t,n,o,r,i){l(this,"ShowContactCard",0,[e,t,n,o,r,i],S(2,"SharedApiUndo","1.4"),0)},t.prototype.showContextMenu=function(e,t,n,o,r,i){l(this,"ShowContextMenu",0,[e,t,n,o,r,i],S(2,"SharedApiUndo","1.4"),0)},t.prototype.showExpandedCard=function(e,t,n,o,r,i){l(this,"ShowExpandedCard",0,[e,t,n,o,r,i],S(2,"SharedApiUndo","1.4"),0)},t.prototype.showHoverCardForPersona=function(e,t,n,o,r,i){l(this,"ShowHoverCardForPersona",0,[e,t,n,o,r,i],S(2,"SharedApiUndo","1.4"),0)},t.prototype.startAudioCall=function(){l(this,"StartAudioCall",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.startVideoCall=function(){l(this,"StartVideoCall",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.subscribeToGroup=function(){l(this,"SubscribeToGroup",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.toggleTagForAlerts=function(){l(this,"ToggleTagForAlerts",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.unsubscribeFromGroup=function(){l(this,"UnsubscribeFromGroup",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype._handleResult=function(t){(e.prototype._handleResult.call(this,t),d(t))||v(this,t)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),_(this,t,n)},t.prototype.toJSON=function(){return y(this,{},{})},t}(OfficeExtension.ClientObject);e.PersonaActions=M;var H="PersonaInfoSource",U=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"PersonaInfoSource"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["displayName","email","emailAddresses","sipAddresses","birthday","birthdays","title","jobInfoDepartment","companyName","office","linkedTitles","linkedDepartments","linkedCompanyNames","linkedOffices","phones","addresses","webSites","notes"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["DisplayName","Email","EmailAddresses","SipAddresses","Birthday","Birthdays","Title","JobInfoDepartment","CompanyName","Office","LinkedTitles","LinkedDepartments","LinkedCompanyNames","LinkedOffices","Phones","Addresses","WebSites","Notes"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"addresses",{get:function(){return p("addresses",this._A,H,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"birthday",{get:function(){return p("birthday",this._B,H,this._isNull),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"birthdays",{get:function(){return p("birthdays",this._Bi,H,this._isNull),this._Bi},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"companyName",{get:function(){return p("companyName",this._C,H,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayName",{get:function(){return p("displayName",this._D,H,this._isNull),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"email",{get:function(){return p("email",this._E,H,this._isNull),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"emailAddresses",{get:function(){return p("emailAddresses",this._Em,H,this._isNull),this._Em},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"jobInfoDepartment",{get:function(){return p("jobInfoDepartment",this._J,H,this._isNull),this._J},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linkedCompanyNames",{get:function(){return p("linkedCompanyNames",this._L,H,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linkedDepartments",{get:function(){return p("linkedDepartments",this._Li,H,this._isNull),this._Li},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linkedOffices",{get:function(){return p("linkedOffices",this._Lin,H,this._isNull),this._Lin},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linkedTitles",{get:function(){return p("linkedTitles",this._Link,H,this._isNull),this._Link},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"notes",{get:function(){return p("notes",this._N,H,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"office",{get:function(){return p("office",this._O,H,this._isNull),this._O},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"phones",{get:function(){return p("phones",this._P,H,this._isNull),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sipAddresses",{get:function(){return p("sipAddresses",this._S,H,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return p("title",this._T,H,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"webSites",{get:function(){return p("webSites",this._W,H,this._isNull),this._W},enumerable:!0,configurable:!0}),t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!d(t)){var n=t;v(this,n),f(n.Addresses)||(this._A=n.Addresses),f(n.Birthday)||(this._B=n.Birthday),f(n.Birthdays)||(this._Bi=n.Birthdays),f(n.CompanyName)||(this._C=n.CompanyName),f(n.DisplayName)||(this._D=n.DisplayName),f(n.Email)||(this._E=n.Email),f(n.EmailAddresses)||(this._Em=n.EmailAddresses),f(n.JobInfoDepartment)||(this._J=n.JobInfoDepartment),f(n.LinkedCompanyNames)||(this._L=n.LinkedCompanyNames),f(n.LinkedDepartments)||(this._Li=n.LinkedDepartments),f(n.LinkedOffices)||(this._Lin=n.LinkedOffices),f(n.LinkedTitles)||(this._Link=n.LinkedTitles),f(n.Notes)||(this._N=n.Notes),f(n.Office)||(this._O=n.Office),f(n.Phones)||(this._P=n.Phones),f(n.SipAddresses)||(this._S=n.SipAddresses),f(n.Title)||(this._T=n.Title),f(n.WebSites)||(this._W=n.WebSites)}},t.prototype.load=function(e){return g(this,e)},t.prototype.retrieve=function(e){return m(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),_(this,t,n)},t.prototype.toJSON=function(){return y(this,{addresses:this._A,birthday:this._B,birthdays:this._Bi,companyName:this._C,displayName:this._D,email:this._E,emailAddresses:this._Em,jobInfoDepartment:this._J,linkedCompanyNames:this._L,linkedDepartments:this._Li,linkedOffices:this._Lin,linkedTitles:this._Link,notes:this._N,office:this._O,phones:this._P,sipAddresses:this._S,title:this._T,webSites:this._W},{})},t.prototype.setMockData=function(e){O(this,e)},t.prototype.ensureUnchanged=function(e){c(this,e)},t}(OfficeExtension.ClientObject);e.PersonaInfoSource=U;var j="PersonaInfo",L=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"PersonaInfo"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["displayName","email","emailAddresses","sipAddresses","birthday","birthdays","title","jobInfoDepartment","companyName","office","linkedTitles","linkedDepartments","linkedCompanyNames","linkedOffices","webSites","notes","isPersonResolved"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["DisplayName","Email","EmailAddresses","SipAddresses","Birthday","Birthdays","Title","JobInfoDepartment","CompanyName","Office","LinkedTitles","LinkedDepartments","LinkedCompanyNames","LinkedOffices","WebSites","Notes","IsPersonResolved"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["sources"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"sources",{get:function(){return this._So||(this._So=o(e.PersonaInfoSource,this,"Sources",!1,4)),this._So},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"birthday",{get:function(){return p("birthday",this._B,j,this._isNull),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"birthdays",{get:function(){return p("birthdays",this._Bi,j,this._isNull),this._Bi},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"companyName",{get:function(){return p("companyName",this._C,j,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"displayName",{get:function(){return p("displayName",this._D,j,this._isNull),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"email",{get:function(){return p("email",this._E,j,this._isNull),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"emailAddresses",{get:function(){return p("emailAddresses",this._Em,j,this._isNull),this._Em},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isPersonResolved",{get:function(){return p("isPersonResolved",this._I,j,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"jobInfoDepartment",{get:function(){return p("jobInfoDepartment",this._J,j,this._isNull),this._J},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"linkedCompanyNames",{get:function(){return p("linkedCompanyNames",this._L,j,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"linkedDepartments",{get:function(){return p("linkedDepartments",this._Li,j,this._isNull),this._Li},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"linkedOffices",{get:function(){return p("linkedOffices",this._Lin,j,this._isNull),this._Lin},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"linkedTitles",{get:function(){return p("linkedTitles",this._Link,j,this._isNull),this._Link},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"notes",{get:function(){return p("notes",this._N,j,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"office",{get:function(){return p("office",this._O,j,this._isNull),this._O},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"sipAddresses",{get:function(){return p("sipAddresses",this._S,j,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"title",{get:function(){return p("title",this._T,j,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"webSites",{get:function(){return p("webSites",this._W,j,this._isNull),this._W},enumerable:!0,configurable:!0}),n.prototype.getAddresses=function(){return l(this,"GetAddresses",1,[],4,0)},n.prototype.getPhones=function(){return l(this,"GetPhones",1,[],4,0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!d(e)){var n=e;v(this,n),f(n.Birthday)||(this._B=C(n.Birthday)),f(n.Birthdays)||(this._Bi=C(n.Birthdays)),f(n.CompanyName)||(this._C=n.CompanyName),f(n.DisplayName)||(this._D=n.DisplayName),f(n.Email)||(this._E=n.Email),f(n.EmailAddresses)||(this._Em=n.EmailAddresses),f(n.IsPersonResolved)||(this._I=n.IsPersonResolved),f(n.JobInfoDepartment)||(this._J=n.JobInfoDepartment),f(n.LinkedCompanyNames)||(this._L=n.LinkedCompanyNames),f(n.LinkedDepartments)||(this._Li=n.LinkedDepartments),f(n.LinkedOffices)||(this._Lin=n.LinkedOffices),f(n.LinkedTitles)||(this._Link=n.LinkedTitles),f(n.Notes)||(this._N=n.Notes),f(n.Office)||(this._O=n.Office),f(n.SipAddresses)||(this._S=n.SipAddresses),f(n.Title)||(this._T=n.Title),f(n.WebSites)||(this._W=n.WebSites),b(this,n,["sources","Sources"])}},n.prototype.load=function(e){return g(this,e)},n.prototype.retrieve=function(e){return m(this,e)},n.prototype._handleRetrieveResult=function(e,n){if(t.prototype._handleRetrieveResult.call(this,e,n),!d(e)){var o=e;f(o.Birthday)||(o.birthday=C(o.birthday)),f(o.Birthdays)||(o.birthdays=C(o.birthdays)),_(this,e,n)}},n.prototype.toJSON=function(){return y(this,{birthday:this._B,birthdays:this._Bi,companyName:this._C,displayName:this._D,email:this._E,emailAddresses:this._Em,isPersonResolved:this._I,jobInfoDepartment:this._J,linkedCompanyNames:this._L,linkedDepartments:this._Li,linkedOffices:this._Lin,linkedTitles:this._Link,notes:this._N,office:this._O,sipAddresses:this._S,title:this._T,webSites:this._W},{sources:this._So})},n.prototype.setMockData=function(e){O(this,e)},n.prototype.ensureUnchanged=function(e){c(this,e)},n}(OfficeExtension.ClientObject);e.PersonaInfo=L;var B="PersonaUnifiedCommunicationInfo",W=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"PersonaUnifiedCommunicationInfo"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["availability","status","isSelf","isTagged","customStatusString","isBlocked","presenceTooltip","isOutOfOffice","outOfOfficeNote","timezone","meetingLocation","meetingSubject","timezoneBias","idleStartTime","overallCapability","isOnBuddyList","presenceNote","voiceMailUri","availabilityText","availabilityTooltip","isDurationInAvailabilityText","freeBusyStatus","calendarState","presence"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Availability","Status","IsSelf","IsTagged","CustomStatusString","IsBlocked","PresenceTooltip","IsOutOfOffice","OutOfOfficeNote","Timezone","MeetingLocation","MeetingSubject","TimezoneBias","IdleStartTime","OverallCapability","IsOnBuddyList","PresenceNote","VoiceMailUri","AvailabilityText","AvailabilityTooltip","IsDurationInAvailabilityText","FreeBusyStatus","CalendarState","Presence"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"availability",{get:function(){return p("availability",this._A,B,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"availabilityText",{get:function(){return p("availabilityText",this._Av,B,this._isNull),this._Av},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"availabilityTooltip",{get:function(){return p("availabilityTooltip",this._Ava,B,this._isNull),this._Ava},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calendarState",{get:function(){return p("calendarState",this._C,B,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"customStatusString",{get:function(){return p("customStatusString",this._Cu,B,this._isNull),this._Cu},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"freeBusyStatus",{get:function(){return p("freeBusyStatus",this._F,B,this._isNull),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"idleStartTime",{get:function(){return p("idleStartTime",this._I,B,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isBlocked",{get:function(){return p("isBlocked",this._Is,B,this._isNull),this._Is},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDurationInAvailabilityText",{get:function(){return p("isDurationInAvailabilityText",this._IsD,B,this._isNull),this._IsD},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isOnBuddyList",{get:function(){return p("isOnBuddyList",this._IsO,B,this._isNull),this._IsO},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isOutOfOffice",{get:function(){return p("isOutOfOffice",this._IsOu,B,this._isNull),this._IsOu},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSelf",{get:function(){return p("isSelf",this._IsS,B,this._isNull),this._IsS},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isTagged",{get:function(){return p("isTagged",this._IsT,B,this._isNull),this._IsT},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"meetingLocation",{get:function(){return p("meetingLocation",this._M,B,this._isNull),this._M},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"meetingSubject",{get:function(){return p("meetingSubject",this._Me,B,this._isNull),this._Me},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outOfOfficeNote",{get:function(){return p("outOfOfficeNote",this._O,B,this._isNull),this._O},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overallCapability",{get:function(){return p("overallCapability",this._Ov,B,this._isNull),this._Ov},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"presence",{get:function(){return p("presence",this._P,B,this._isNull),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"presenceNote",{get:function(){return p("presenceNote",this._Pr,B,this._isNull),this._Pr},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"presenceTooltip",{get:function(){return p("presenceTooltip",this._Pre,B,this._isNull),this._Pre},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return p("status",this._S,B,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timezone",{get:function(){return p("timezone",this._T,B,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timezoneBias",{get:function(){return p("timezoneBias",this._Ti,B,this._isNull),this._Ti},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"voiceMailUri",{get:function(){return p("voiceMailUri",this._V,B,this._isNull),this._V},enumerable:!0,configurable:!0}),t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!d(t)){var n=t;v(this,n),f(n.Availability)||(this._A=n.Availability),f(n.AvailabilityText)||(this._Av=n.AvailabilityText),f(n.AvailabilityTooltip)||(this._Ava=n.AvailabilityTooltip),f(n.CalendarState)||(this._C=n.CalendarState),f(n.CustomStatusString)||(this._Cu=n.CustomStatusString),f(n.FreeBusyStatus)||(this._F=n.FreeBusyStatus),f(n.IdleStartTime)||(this._I=C(n.IdleStartTime)),f(n.IsBlocked)||(this._Is=n.IsBlocked),f(n.IsDurationInAvailabilityText)||(this._IsD=n.IsDurationInAvailabilityText),f(n.IsOnBuddyList)||(this._IsO=n.IsOnBuddyList),f(n.IsOutOfOffice)||(this._IsOu=n.IsOutOfOffice),f(n.IsSelf)||(this._IsS=n.IsSelf),f(n.IsTagged)||(this._IsT=n.IsTagged),f(n.MeetingLocation)||(this._M=n.MeetingLocation),f(n.MeetingSubject)||(this._Me=n.MeetingSubject),f(n.OutOfOfficeNote)||(this._O=n.OutOfOfficeNote),f(n.OverallCapability)||(this._Ov=n.OverallCapability),f(n.Presence)||(this._P=n.Presence),f(n.PresenceNote)||(this._Pr=n.PresenceNote),f(n.PresenceTooltip)||(this._Pre=n.PresenceTooltip),f(n.Status)||(this._S=n.Status),f(n.Timezone)||(this._T=n.Timezone),f(n.TimezoneBias)||(this._Ti=n.TimezoneBias),f(n.VoiceMailUri)||(this._V=n.VoiceMailUri)}},t.prototype.load=function(e){return g(this,e)},t.prototype.retrieve=function(e){return m(this,e)},t.prototype._handleRetrieveResult=function(t,n){if(e.prototype._handleRetrieveResult.call(this,t,n),!d(t)){var o=t;f(o.IdleStartTime)||(o.idleStartTime=C(o.idleStartTime)),_(this,t,n)}},t.prototype.toJSON=function(){return y(this,{availability:this._A,availabilityText:this._Av,availabilityTooltip:this._Ava,calendarState:this._C,customStatusString:this._Cu,freeBusyStatus:this._F,idleStartTime:this._I,isBlocked:this._Is,isDurationInAvailabilityText:this._IsD,isOnBuddyList:this._IsO,isOutOfOffice:this._IsOu,isSelf:this._IsS,isTagged:this._IsT,meetingLocation:this._M,meetingSubject:this._Me,outOfOfficeNote:this._O,overallCapability:this._Ov,presence:this._P,presenceNote:this._Pr,presenceTooltip:this._Pre,status:this._S,timezone:this._T,timezoneBias:this._Ti,voiceMailUri:this._V},{})},t.prototype.setMockData=function(e){O(this,e)},t.prototype.ensureUnchanged=function(e){c(this,e)},t}(OfficeExtension.ClientObject);e.PersonaUnifiedCommunicationInfo=W;var V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"PersonaPhotoInfo"},enumerable:!0,configurable:!0}),t.prototype.getImageUri=function(e){return l(this,"getImageUri",1,[e],4,0)},t.prototype.getImageUriWithMetadata=function(e){return l(this,"getImageUriWithMetadata",1,[e],4,0)},t.prototype.getPlaceholderUri=function(e){return l(this,"getPlaceholderUri",1,[e],4,0)},t.prototype.setPlaceholderColor=function(e){l(this,"setPlaceholderColor",0,[e],S(2,"SharedApiUndo","1.4"),0)},t.prototype._handleResult=function(t){(e.prototype._handleResult.call(this,t),d(t))||v(this,t)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),_(this,t,n)},t.prototype.toJSON=function(){return y(this,{},{})},t}(OfficeExtension.ClientObject);e.PersonaPhotoInfo=V;var q=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"PersonaCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return p("items",this.m__items,"PersonaCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.getCount=function(){return l(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return i(e.Persona,this,[t])},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!d(n)){var o=n;if(v(this,o),!d(o[OfficeExtension.Constants.items])){this.m__items=[];for(var r=o[OfficeExtension.Constants.items],i=0;i<r.length;i++){var a=s(e.Persona,!0,this,r[i],i);a._handleResult(r[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return g(this,e)},n.prototype.retrieve=function(e){return m(this,e)},n.prototype._handleRetrieveResult=function(n,o){var r=this;t.prototype._handleRetrieveResult.call(this,n,o),_(this,n,o,(function(t,n){return s(e.Persona,!0,r,t,n)}))},n.prototype.toJSON=function(){return y(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;O(this,t,(function(t,o){return s(e.Persona,!0,n,t,o)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.PersonaCollection=q;var G="PersonaOrganizationInfo",z=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"PersonaOrganizationInfo"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["isWarmedUp","isWarmingUp"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["IsWarmedUp","IsWarmingUp"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["hierarchy","manager","directReports"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"directReports",{get:function(){return this._D||(this._D=o(e.PersonaCollection,this,"DirectReports",!0,4)),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hierarchy",{get:function(){return this._H||(this._H=o(e.PersonaCollection,this,"Hierarchy",!0,4)),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"manager",{get:function(){return this._M||(this._M=o(e.Persona,this,"Manager",!1,4)),this._M},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isWarmedUp",{get:function(){return p("isWarmedUp",this._I,G,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isWarmingUp",{get:function(){return p("isWarmingUp",this._Is,G,this._isNull),this._Is},enumerable:!0,configurable:!0}),n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!d(e)){var n=e;v(this,n),f(n.IsWarmedUp)||(this._I=n.IsWarmedUp),f(n.IsWarmingUp)||(this._Is=n.IsWarmingUp),b(this,n,["directReports","DirectReports","hierarchy","Hierarchy","manager","Manager"])}},n.prototype.load=function(e){return g(this,e)},n.prototype.retrieve=function(e){return m(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.prototype.toJSON=function(){return y(this,{isWarmedUp:this._I,isWarmingUp:this._Is},{})},n.prototype.setMockData=function(e){O(this,e)},n.prototype.ensureUnchanged=function(e){c(this,e)},n}(OfficeExtension.ClientObject);e.PersonaOrganizationInfo=z,function(e){e.email="Email",e.workPhone="WorkPhone",e.workPhone2="WorkPhone2",e.workFax="WorkFax",e.mobilePhone="MobilePhone",e.homePhone="HomePhone",e.homePhone2="HomePhone2",e.otherPhone="OtherPhone",e.sipAddress="SipAddress",e.profile="Profile",e.office="Office",e.company="Company",e.workAddress="WorkAddress",e.homeAddress="HomeAddress",e.otherAddress="OtherAddress",e.birthday="Birthday"}(e.CustomizedData||(e.CustomizedData={}));var J="UnifiedGroupInfo",Q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"UnifiedGroupInfo"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["description","oneDrive","oneNote","isPublic","amIOwner","amIMember","amISubscribed","memberCount","ownerCount","hasGuests","site","planner","classification","subscriptionEnabled"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Description","OneDrive","OneNote","IsPublic","AmIOwner","AmIMember","AmISubscribed","MemberCount","OwnerCount","HasGuests","Site","Planner","Classification","SubscriptionEnabled"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"amIMember",{get:function(){return p("amIMember",this._A,J,this._isNull),this._A},set:function(e){this._A=e,u(this,"AmIMember",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"amIOwner",{get:function(){return p("amIOwner",this._Am,J,this._isNull),this._Am},set:function(e){this._Am=e,u(this,"AmIOwner",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"amISubscribed",{get:function(){return p("amISubscribed",this._AmI,J,this._isNull),this._AmI},set:function(e){this._AmI=e,u(this,"AmISubscribed",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classification",{get:function(){return p("classification",this._C,J,this._isNull),this._C},set:function(e){this._C=e,u(this,"Classification",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return p("description",this._D,J,this._isNull),this._D},set:function(e){this._D=e,u(this,"Description",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasGuests",{get:function(){return p("hasGuests",this._H,J,this._isNull),this._H},set:function(e){this._H=e,u(this,"HasGuests",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPublic",{get:function(){return p("isPublic",this._I,J,this._isNull),this._I},set:function(e){this._I=e,u(this,"IsPublic",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"memberCount",{get:function(){return p("memberCount",this._M,J,this._isNull),this._M},set:function(e){this._M=e,u(this,"MemberCount",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"oneDrive",{get:function(){return p("oneDrive",this._O,J,this._isNull),this._O},set:function(e){this._O=e,u(this,"OneDrive",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"oneNote",{get:function(){return p("oneNote",this._On,J,this._isNull),this._On},set:function(e){this._On=e,u(this,"OneNote",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ownerCount",{get:function(){return p("ownerCount",this._Ow,J,this._isNull),this._Ow},set:function(e){this._Ow=e,u(this,"OwnerCount",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"planner",{get:function(){return p("planner",this._P,J,this._isNull),this._P},set:function(e){this._P=e,u(this,"Planner",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"site",{get:function(){return p("site",this._S,J,this._isNull),this._S},set:function(e){this._S=e,u(this,"Site",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"subscriptionEnabled",{get:function(){return p("subscriptionEnabled",this._Su,J,this._isNull),this._Su},set:function(e){this._Su=e,u(this,"SubscriptionEnabled",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["description","oneDrive","oneNote","isPublic","amIOwner","amIMember","amISubscribed","memberCount","ownerCount","hasGuests","site","planner","classification","subscriptionEnabled"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!d(t)){var n=t;v(this,n),f(n.AmIMember)||(this._A=n.AmIMember),f(n.AmIOwner)||(this._Am=n.AmIOwner),f(n.AmISubscribed)||(this._AmI=n.AmISubscribed),f(n.Classification)||(this._C=n.Classification),f(n.Description)||(this._D=n.Description),f(n.HasGuests)||(this._H=n.HasGuests),f(n.IsPublic)||(this._I=n.IsPublic),f(n.MemberCount)||(this._M=n.MemberCount),f(n.OneDrive)||(this._O=n.OneDrive),f(n.OneNote)||(this._On=n.OneNote),f(n.OwnerCount)||(this._Ow=n.OwnerCount),f(n.Planner)||(this._P=n.Planner),f(n.Site)||(this._S=n.Site),f(n.SubscriptionEnabled)||(this._Su=n.SubscriptionEnabled)}},t.prototype.load=function(e){return g(this,e)},t.prototype.retrieve=function(e){return m(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),_(this,t,n)},t.prototype.toJSON=function(){return y(this,{amIMember:this._A,amIOwner:this._Am,amISubscribed:this._AmI,classification:this._C,description:this._D,hasGuests:this._H,isPublic:this._I,memberCount:this._M,oneDrive:this._O,oneNote:this._On,ownerCount:this._Ow,planner:this._P,site:this._S,subscriptionEnabled:this._Su},{})},t.prototype.setMockData=function(e){O(this,e)},t.prototype.ensureUnchanged=function(e){c(this,e)},t}(OfficeExtension.ClientObject);e.UnifiedGroupInfo=Q;var K,X="Persona";!function(e){e[e.immediate=0]="immediate",e[e.load=3]="load"}(K=e.PersonaPromiseType||(e.PersonaPromiseType={}));var Y=function(){};e.PersonaInfoAndSource=Y;var $=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"Persona"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["hostId","type","capabilities","diagnosticId","instanceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["HostId","Type","Capabilities","DiagnosticId","InstanceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["photo","personaInfo","unifiedCommunicationInfo","organization","unifiedGroupInfo","actions"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"actions",{get:function(){return this._A||(this._A=o(e.PersonaActions,this,"Actions",!1,4)),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"organization",{get:function(){return this._O||(this._O=o(e.PersonaOrganizationInfo,this,"Organization",!1,4)),this._O},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"personaInfo",{get:function(){return this._P||(this._P=o(e.PersonaInfo,this,"PersonaInfo",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"photo",{get:function(){return this._Ph||(this._Ph=o(e.PersonaPhotoInfo,this,"Photo",!1,4)),this._Ph},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"unifiedCommunicationInfo",{get:function(){return this._U||(this._U=o(e.PersonaUnifiedCommunicationInfo,this,"UnifiedCommunicationInfo",!1,4)),this._U},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"unifiedGroupInfo",{get:function(){return this._Un||(this._Un=o(e.UnifiedGroupInfo,this,"UnifiedGroupInfo",!1,4)),this._Un},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"capabilities",{get:function(){return p("capabilities",this._C,X,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"diagnosticId",{get:function(){return p("diagnosticId",this._D,X,this._isNull),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hostId",{get:function(){return p("hostId",this._H,X,this._isNull),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"instanceId",{get:function(){return p("instanceId",this._I,X,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return p("type",this._T,X,this._isNull),this._T},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,[],["unifiedGroupInfo"],["actions","organization","personaInfo","photo","unifiedCommunicationInfo"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.dispose=function(){l(this,"Dispose",0,[],S(2,"SharedApiUndo","1.4"),0)},n.prototype.getCustomizations=function(){return l(this,"GetCustomizations",1,[],4,0)},n.prototype.getMembers=function(){return r(e.MemberInfoList,this,"GetMembers",1,[],!1,!1,null,4)},n.prototype.getMembership=function(){return r(e.MemberInfoList,this,"GetMembership",1,[],!1,!1,null,4)},n.prototype.getViewableSources=function(){return l(this,"GetViewableSources",1,[],4,0)},n.prototype.reportTimeForRender=function(e,t){l(this,"ReportTimeForRender",0,[e,t],S(2,"SharedApiUndo","1.4"),0)},n.prototype.warmup=function(e){l(this,"Warmup",0,[e],S(2,"SharedApiUndo","1.4"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!d(e)){var n=e;v(this,n),f(n.Capabilities)||(this._C=n.Capabilities),f(n.DiagnosticId)||(this._D=n.DiagnosticId),f(n.HostId)||(this._H=n.HostId),f(n.InstanceId)||(this._I=n.InstanceId),f(n.Type)||(this._T=n.Type),b(this,n,["actions","Actions","organization","Organization","personaInfo","PersonaInfo","photo","Photo","unifiedCommunicationInfo","UnifiedCommunicationInfo","unifiedGroupInfo","UnifiedGroupInfo"])}},n.prototype.load=function(e){return g(this,e)},n.prototype.retrieve=function(e){return m(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.prototype.toJSON=function(){return y(this,{capabilities:this._C,diagnosticId:this._D,hostId:this._H,instanceId:this._I,type:this._T},{organization:this._O,personaInfo:this._P,unifiedCommunicationInfo:this._U,unifiedGroupInfo:this._Un})},n.prototype.setMockData=function(e){O(this,e)},n.prototype.ensureUnchanged=function(e){c(this,e)},n}(OfficeExtension.ClientObject);e.Persona=$;var Z=function(){function t(){}return t.prototype.performAsyncOperation=function(e,t,n,o){var r=this;e!=K.immediate?o().then((function(e){if(e)n();else{var i=r;i.load("hostId"),i.context.sync().then((function(){var e=i.hostId;r.getPersonaLifetime().then((function(r){var a=function(s){return new OfficeExtension.CoreUtility.Promise((function(l,c){if(s.sendingPersonaHostId==e)for(var u=0;u<s.dataUpdated.length;++u){var d=s.dataUpdated[u];if(t==d)return void o().then((function(e){e&&(n(),r.onPersonaUpdated.remove(a),i.context.sync()),l(e)}))}l(!1)}))};r.onPersonaUpdated.add(a),i.context.sync()}))}))}})):n()},t.prototype.getOrganizationAsync=function(e){var t=this;return new OfficeExtension.CoreUtility.Promise((function(n,o){var r=t;t.performAsyncOperation(e,x.organization,(function(){var e=r.organization;e.load("*"),r.context.sync().then((function(){n(e)}))}),(function(){return new OfficeExtension.CoreUtility.Promise((function(e,t){var n=r.organization;n.load("isWarmedUp"),r.context.sync().then((function(){e(n.isWarmedUp)}))}))}))}))},t.prototype.getIsPersonaInfoResolvedCheck=function(){var e=this;return new OfficeExtension.CoreUtility.Promise((function(t,n){var o=e.personaInfo;o.load("isPersonResolved"),e.context.sync().then((function(){t(o.isPersonResolved)}))}))},t.prototype.getPersonaInfoAsync=function(e){var t=this;return new OfficeExtension.CoreUtility.Promise((function(n,o){var r=t;t.performAsyncOperation(e,x.personaInfo,(function(){var e=r.personaInfo;e.load(),r.context.sync().then((function(){n(e)}))}),(function(){return t.getIsPersonaInfoResolvedCheck()}))}))},t.prototype.getPersonaInfoWithSourceAsync=function(e){var t=this;return new OfficeExtension.CoreUtility.Promise((function(n,o){var r=t;t.performAsyncOperation(e,x.personaInfo,(function(){var e=new Y;e.info=r.personaInfo,e.info.load(),e.source=r.personaInfo.sources,e.source.load(),r.context.sync().then((function(){n(e)}))}),(function(){return t.getIsPersonaInfoResolvedCheck()}))}))},t.prototype.getUnifiedCommunicationInfo=function(e){var t=this;return new OfficeExtension.CoreUtility.Promise((function(n,o){var r=t;t.performAsyncOperation(e,x.personaInfo,(function(){var e=r.unifiedCommunicationInfo;e.load("*"),r.context.sync().then((function(){n(e)}))}),(function(){return t.getIsPersonaInfoResolvedCheck()}))}))},t.prototype.getUnifiedGroupInfoAsync=function(e){var t=this;return new OfficeExtension.CoreUtility.Promise((function(n,o){var r=t;t.performAsyncOperation(e,x.personaInfo,(function(){var e=r.unifiedGroupInfo;e.load("*"),r.context.sync().then((function(){n(e)}))}),(function(){return t.getIsPersonaInfoResolvedCheck()}))}))},t.prototype.getTypeAsync=function(t){var n=this;return new OfficeExtension.CoreUtility.Promise((function(o,r){var i=n;n.performAsyncOperation(t,x.personaInfo,(function(){i.load("type"),i.context.sync().then((function(){o(e.PersonaType[i.type.valueOf()])}))}),(function(){return n.getIsPersonaInfoResolvedCheck()}))}))},t.prototype.getCustomizationsAsync=function(e){var t=this;return new OfficeExtension.CoreUtility.Promise((function(n,o){var r=t;t.performAsyncOperation(e,x.personaInfo,(function(){var e=r.getCustomizations();r.context.sync().then((function(){n(e.value)}))}),(function(){return t.getIsPersonaInfoResolvedCheck()}))}))},t.prototype.getMembersAsync=function(e){var t=this;return new OfficeExtension.CoreUtility.Promise((function(n,o){var r=t;t.performAsyncOperation(e,x.members,(function(){var e=r.getMembers();e.load("isWarmedUp"),r.context.sync().then((function(){n(e)}))}),(function(){return new OfficeExtension.CoreUtility.Promise((function(e,t){var n=r.getMembers();n.load("isWarmedUp"),r.context.sync().then((function(){e(n.isWarmedUp)}))}))}))}))},t.prototype.getMembershipAsync=function(e){var t=this;return new OfficeExtension.CoreUtility.Promise((function(n,o){var r=t;t.performAsyncOperation(e,x.membership,(function(){var e=r.getMembership();e.load("*"),r.context.sync().then((function(){n(e)}))}),(function(){return new OfficeExtension.CoreUtility.Promise((function(e){var t=r.getMembership();t.load("isWarmedUp"),r.context.sync().then((function(){e(t.isWarmedUp)}))}))}))}))},t.prototype.getPersonaLifetime=function(){var e=this;return new OfficeExtension.CoreUtility.Promise((function(t,n){var o=e;o.load("instanceId"),o.context.sync().then((function(){new re(o.context,o.instanceId).getPersonaLifetime().then((function(e){t(e)}))}))}))},t}();e.PersonaCustom=Z,OfficeExtension.Utility.applyMixin($,Z);var ee=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"PersonaLifetime"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["instanceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["InstanceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"instanceId",{get:function(){return p("instanceId",this._I,"PersonaLifetime",this._isNull),this._I},enumerable:!0,configurable:!0}),n.prototype.getPersona=function(t){return r(e.Persona,this,"GetPersona",1,[t],!1,!1,null,4)},n.prototype.getPersonaForOrgByEntryId=function(t,n,o,i){return r(e.Persona,this,"GetPersonaForOrgByEntryId",1,[t,n,o,i],!1,!1,null,4)},n.prototype.getPersonaForOrgEntry=function(t,n,o,i){return r(e.Persona,this,"GetPersonaForOrgEntry",1,[t,n,o,i],!1,!1,null,4)},n.prototype.getPolicies=function(){return l(this,"GetPolicies",1,[],4,0)},n.prototype.getTextScaleFactor=function(){return l(this,"GetTextScaleFactor",1,[],4,0)},n.prototype._RegisterPersonaUpdatedEvent=function(){l(this,"_RegisterPersonaUpdatedEvent",0,[],S(2,"SharedApiUndo","1.4"),0)},n.prototype._UnregisterPersonaUpdatedEvent=function(){l(this,"_UnregisterPersonaUpdatedEvent",0,[],S(2,"SharedApiUndo","1.4"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!d(e)){var n=e;v(this,n),f(n.InstanceId)||(this._I=n.InstanceId)}},n.prototype.load=function(e){return g(this,e)},n.prototype.retrieve=function(e){return m(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},Object.defineProperty(n.prototype,"onPersonaUpdated",{get:function(){var e=this;return this.m_personaUpdated||(this.m_personaUpdated=new OfficeExtension.GenericEventHandlers(this.context,this,"PersonaUpdated",{eventType:3502,registerFunc:function(){return e._RegisterPersonaUpdatedEvent()},unregisterFunc:function(){return e._UnregisterPersonaUpdatedEvent()},getTargetIdFunc:function(){return e.instanceId},eventArgsTransformFunc:function(e){var t={dataUpdated:e.dataUpdated,sendingPersonaHostId:e.sendingPersonaHostId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_personaUpdated},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return y(this,{instanceId:this._I},{})},n.prototype.setMockData=function(e){O(this,e)},n.prototype.ensureUnchanged=function(e){c(this,e)},n}(OfficeExtension.ClientObject);e.PersonaLifetime=ee;var te="LokiTokenProvider",ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"LokiTokenProvider"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["emailOrUpn","instanceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["EmailOrUpn","InstanceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"emailOrUpn",{get:function(){return p("emailOrUpn",this._E,te,this._isNull),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"instanceId",{get:function(){return p("instanceId",this._I,te,this._isNull),this._I},enumerable:!0,configurable:!0}),t.prototype.requestClientAccessToken=function(){l(this,"RequestClientAccessToken",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.requestIdentityUniqueId=function(){l(this,"RequestIdentityUniqueId",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype.requestToken=function(){l(this,"RequestToken",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype._RegisterClientAccessTokenAvailableEvent=function(){l(this,"_RegisterClientAccessTokenAvailableEvent",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype._RegisterIdentityUniqueIdAvailableEvent=function(){l(this,"_RegisterIdentityUniqueIdAvailableEvent",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype._RegisterLokiTokenAvailableEvent=function(){l(this,"_RegisterLokiTokenAvailableEvent",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype._UnregisterClientAccessTokenAvailableEvent=function(){l(this,"_UnregisterClientAccessTokenAvailableEvent",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype._UnregisterIdentityUniqueIdAvailableEvent=function(){l(this,"_UnregisterIdentityUniqueIdAvailableEvent",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype._UnregisterLokiTokenAvailableEvent=function(){l(this,"_UnregisterLokiTokenAvailableEvent",0,[],S(2,"SharedApiUndo","1.4"),0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!d(t)){var n=t;v(this,n),f(n.EmailOrUpn)||(this._E=n.EmailOrUpn),f(n.InstanceId)||(this._I=n.InstanceId)}},t.prototype.load=function(e){return g(this,e)},t.prototype.retrieve=function(e){return m(this,e)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),_(this,t,n)},Object.defineProperty(t.prototype,"onClientAccessTokenAvailable",{get:function(){var e=this;return this.m_clientAccessTokenAvailable||(this.m_clientAccessTokenAvailable=new OfficeExtension.GenericEventHandlers(this.context,this,"ClientAccessTokenAvailable",{eventType:3505,registerFunc:function(){return e._RegisterClientAccessTokenAvailableEvent()},unregisterFunc:function(){return e._UnregisterClientAccessTokenAvailableEvent()},getTargetIdFunc:function(){return e.instanceId},eventArgsTransformFunc:function(e){var t={clientAccessToken:e.clientAccessToken,isAvailable:e.isAvailable,tokenTTLInSeconds:e.tokenTTLInSeconds};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_clientAccessTokenAvailable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onIdentityUniqueIdAvailable",{get:function(){var e=this;return this.m_identityUniqueIdAvailable||(this.m_identityUniqueIdAvailable=new OfficeExtension.GenericEventHandlers(this.context,this,"IdentityUniqueIdAvailable",{eventType:3504,registerFunc:function(){return e._RegisterIdentityUniqueIdAvailableEvent()},unregisterFunc:function(){return e._UnregisterIdentityUniqueIdAvailableEvent()},getTargetIdFunc:function(){return e.instanceId},eventArgsTransformFunc:function(e){var t={isAvailable:e.isAvailable,uniqueId:e.uniqueId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_identityUniqueIdAvailable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onLokiTokenAvailable",{get:function(){var e=this;return this.m_lokiTokenAvailable||(this.m_lokiTokenAvailable=new OfficeExtension.GenericEventHandlers(this.context,this,"LokiTokenAvailable",{eventType:3503,registerFunc:function(){return e._RegisterLokiTokenAvailableEvent()},unregisterFunc:function(){return e._UnregisterLokiTokenAvailableEvent()},getTargetIdFunc:function(){return e.instanceId},eventArgsTransformFunc:function(e){var t={isAvailable:e.isAvailable,lokiAutoDiscoverUrl:e.lokiAutoDiscoverUrl,lokiToken:e.lokiToken};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_lokiTokenAvailable},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){return y(this,{emailOrUpn:this._E,instanceId:this._I},{})},t.prototype.setMockData=function(e){O(this,e)},t.prototype.ensureUnchanged=function(e){c(this,e)},t}(OfficeExtension.ClientObject);e.LokiTokenProvider=ne;var oe=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"LokiTokenProviderFactory"},enumerable:!0,configurable:!0}),n.prototype.getLokiTokenProvider=function(t){return r(e.LokiTokenProvider,this,"GetLokiTokenProvider",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.LokiTokenProviderFactory,t,"Microsoft.People.LokiTokenProviderFactory",!1,4)},n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.LokiTokenProviderFactory=oe;var re=function(){function t(e,t){this.context=e,this.instanceId=t}return Object.defineProperty(t.prototype,"serviceContext",{get:function(){return this.m_serviceConext||(this.m_serviceConext=e.ServiceContext.newObject(this.context)),this.m_serviceConext},enumerable:!0,configurable:!0}),t.prototype.getPersonaLifetime=function(){var e=this;return new OfficeExtension.CoreUtility.Promise((function(t,n){var o=e.serviceContext.getPersonaLifetime(e.instanceId);e.context.sync().then((function(){o.load("instanceId"),e.context.sync().then((function(){t(o)}))}))}))},t.prototype.getInitialPersona=function(){var e=this;return new OfficeExtension.CoreUtility.Promise((function(t,n){var o=e.serviceContext.getInitialPersona(e.instanceId);e.context.sync().then((function(){t(o)}))}))},t.prototype.getLokiTokenProvider=function(){var e=this;return new OfficeExtension.CoreUtility.Promise((function(t,n){var o=e.serviceContext.getLokiTokenProvider(e.instanceId);e.context.sync().then((function(){o.load("instanceId"),e.context.sync().then((function(){t(o)}))}))}))},t}();e.PeopleApiContext=re;var ie=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ServiceContext"},enumerable:!0,configurable:!0}),n.prototype.accountEmailOrUpn=function(e){return l(this,"AccountEmailOrUpn",1,[e],4,0)},n.prototype.dispose=function(e){l(this,"Dispose",0,[e],S(2,"SharedApiUndo","1.4"),0)},n.prototype.getInitialPersona=function(t){return r(e.Persona,this,"GetInitialPersona",1,[t],!1,!1,null,4)},n.prototype.getLokiTokenProvider=function(t){return r(e.LokiTokenProvider,this,"GetLokiTokenProvider",1,[t],!1,!1,null,4)},n.prototype.getPersonaLifetime=function(t){return r(e.PersonaLifetime,this,"GetPersonaLifetime",1,[t],!1,!1,null,4)},n.prototype.getPersonaPolicies=function(){return l(this,"GetPersonaPolicies",1,[],4,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.ServiceContext,t,"Microsoft.People.ServiceContext",!1,4)},n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.ServiceContext=ie;var ae=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"RichapiPcxFeatureChecks"},enumerable:!0,configurable:!0}),n.prototype.isAddChangePhotoLinkOnLpcPersonaImageFlightEnabled=function(){return l(this,"IsAddChangePhotoLinkOnLpcPersonaImageFlightEnabled",1,[],4,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.RichapiPcxFeatureChecks,t,"Microsoft.People.RichapiPcxFeatureChecks",!1,4)},n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.RichapiPcxFeatureChecks=ae;var se="Comment",le=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"Comment"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyNames",{get:function(){return["id","text","created","level","resolved","author","mentions"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","Text","Created","Level","Resolved","Author","Mentions"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!1,!1,!0,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_navigationPropertyNames",{get:function(){return["parent","parentOrNullObject","replies"]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"parent",{get:function(){return this._P||(this._P=o(e.Comment,this,"Parent",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"parentOrNullObject",{get:function(){return this._Pa||(this._Pa=o(e.Comment,this,"ParentOrNullObject",!1,4)),this._Pa},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"replies",{get:function(){return this._R||(this._R=o(e.CommentCollection,this,"Replies",!0,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"author",{get:function(){return p("author",this._A,se,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"created",{get:function(){return p("created",this._C,se,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return p("id",this._I,se,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"level",{get:function(){return p("level",this._L,se,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"mentions",{get:function(){return p("mentions",this._M,se,this._isNull),this._M},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"resolved",{get:function(){return p("resolved",this._Re,se,this._isNull),this._Re},set:function(e){this._Re=e,u(this,"Resolved",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"text",{get:function(){return p("text",this._T,se,this._isNull),this._T},set:function(e){this._T=e,u(this,"Text",e,S(2,"SharedApiUndo","1.4"))},enumerable:!0,configurable:!0}),n.prototype.set=function(e,t){this._recursivelySet(e,t,["text","resolved"],[],["parent","parentOrNullObject","replies"])},n.prototype.update=function(e){this._recursivelyUpdate(e)},n.prototype.delete=function(){l(this,"Delete",0,[],S(2,"SharedApiUndo","1.4"),0)},n.prototype.getParentOrSelf=function(){return r(e.Comment,this,"GetParentOrSelf",1,[],!1,!1,null,4)},n.prototype.getRichText=function(e){return l(this,"GetRichText",1,[e],4,0)},n.prototype.reply=function(t,n){return r(e.Comment,this,"Reply",0,[t,n],!1,!1,null,S(2,"SharedApiUndo","1.4"))},n.prototype.setRichText=function(e,t){return l(this,"SetRichText",0,[e,t],S(2,"SharedApiUndo","1.4"),0)},n.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!d(e)){var n=e;v(this,n),f(n.Author)||(this._A=n.Author),f(n.Created)||(this._C=C(n.Created)),f(n.Id)||(this._I=n.Id),f(n.Level)||(this._L=n.Level),f(n.Mentions)||(this._M=n.Mentions),f(n.Resolved)||(this._Re=n.Resolved),f(n.Text)||(this._T=n.Text),b(this,n,["parent","Parent","parentOrNullObject","ParentOrNullObject","replies","Replies"])}},n.prototype.load=function(e){return g(this,e)},n.prototype.retrieve=function(e){return m(this,e)},n.prototype._handleIdResult=function(e){t.prototype._handleIdResult.call(this,e),d(e)||f(e.Id)||(this._I=e.Id)},n.prototype._handleRetrieveResult=function(e,n){if(t.prototype._handleRetrieveResult.call(this,e,n),!d(e)){var o=e;f(o.Created)||(o.created=C(o.created)),_(this,e,n)}},n.prototype.toJSON=function(){return y(this,{author:this._A,created:this._C,id:this._I,level:this._L,mentions:this._M,resolved:this._Re,text:this._T},{replies:this._R})},n.prototype.setMockData=function(e){O(this,e)},n.prototype.ensureUnchanged=function(e){c(this,e)},n}(OfficeExtension.ClientObject);e.Comment=le;var ce=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"CommentCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return p("items",this.m__items,"CommentCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.getCount=function(){return l(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return i(e.Comment,this,[t])},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!d(n)){var o=n;if(v(this,o),!d(o[OfficeExtension.Constants.items])){this.m__items=[];for(var r=o[OfficeExtension.Constants.items],i=0;i<r.length;i++){var a=s(e.Comment,!0,this,r[i],i);a._handleResult(r[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return g(this,e)},n.prototype.retrieve=function(e){return m(this,e)},n.prototype._handleRetrieveResult=function(n,o){var r=this;t.prototype._handleRetrieveResult.call(this,n,o),_(this,n,o,(function(t,n){return s(e.Comment,!0,r,t,n)}))},n.prototype.toJSON=function(){return y(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;O(this,t,(function(t,o){return s(e.Comment,!0,n,t,o)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.CommentCollection=ce;var ue=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ExtensionLifeCycle"},enumerable:!0,configurable:!0}),n.prototype.launchExtensionComponent=function(e,t,n){l(this,"LaunchExtensionComponent",1,[e,t,n],5,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.ExtensionLifeCycle,t,"Microsoft.OfficeSharedApi.ExtensionLifeCycle",!1,4)},n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.ExtensionLifeCycle=ue,function(e){e.plain="Plain",e.markdown="Markdown",e.delta="Delta"}(e.CommentTextFormat||(e.CommentTextFormat={})),function(e){e.shortTime="ShortTime",e.longTime="LongTime",e.shortDate="ShortDate",e.longDate="LongDate"}(e.TimeStringFormat||(e.TimeStringFormat={}));var de=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"LocaleApi"},enumerable:!0,configurable:!0}),n.prototype.formatDateTimeString=function(e,t,n){return l(this,"FormatDateTimeString",1,[e,t,n],4,0)},n.prototype.getLocaleDateTimeFormattingInfo=function(e){return l(this,"GetLocaleDateTimeFormattingInfo",1,[e],4,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.LocaleApi,t,"Microsoft.LocaleApi.LocaleApi",!1,4)},n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.LocaleApi=de;var fe=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"FirstPartyDialogService"},enumerable:!0,configurable:!0}),n.prototype.close=function(){l(this,"Close",1,[],5,0)},n.prototype.displayDialog=function(e,t){l(this,"DisplayDialog",1,[e,t],5,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.FirstPartyDialogService,t,"Microsoft.FirstPartyDialog.FirstPartyDialogService",!1,4)},Object.defineProperty(n.prototype,"onDialogMessage",{get:function(){var e=this;return this.m_dialogMessage||(this.m_dialogMessage=new OfficeExtension.GenericEventHandlers(this.context,this,"DialogMessage",{eventType:65536,registerFunc:function(){return OfficeExtension.Utility._createPromiseFromResult(null)},unregisterFunc:function(){return OfficeExtension.Utility._createPromiseFromResult(null)},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(t){var n=P.FirstPartyDialogService_DialogMessage_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_dialogMessage},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.FirstPartyDialogService=fe,function(e){e.FirstPartyDialogService_DialogMessage_EventArgsTransform=function(e,t){return{message:t.message}}}(P=e._CC||(e._CC={}));var pe=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"DynamicRibbon"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["buttons"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"buttons",{get:function(){return this._B||(this._B=o(e.RibbonButtonCollection,this,"Buttons",!0,4)),this._B},enumerable:!0,configurable:!0}),i.prototype.executeRequestCreate=function(e){h("DynamicRibbon.executeRequestCreate","DynamicRibbon","1.2",n),l(this,"ExecuteRequestCreate",1,[e],4,0)},i.prototype.executeRequestUpdate=function(e){l(this,"ExecuteRequestUpdate",1,[e],4,0)},i.prototype.getButton=function(t){return r(e.RibbonButton,this,"GetButton",1,[t],!1,!1,null,4)},i.prototype.getTab=function(t){return r(e.RibbonTab,this,"GetTab",1,[t],!1,!1,null,4)},i.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!d(e)){var n=e;v(this,n),b(this,n,["buttons","Buttons"])}},i.prototype.load=function(e){return g(this,e)},i.prototype.retrieve=function(e){return m(this,e)},i.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},i.newObject=function(t){return a(e.DynamicRibbon,t,"Microsoft.DynamicRibbon.DynamicRibbon",!1,4)},i.prototype.toJSON=function(){return y(this,{},{buttons:this._B})},i}(OfficeExtension.ClientObject);e.DynamicRibbon=pe;var he=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"RibbonTab"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["id"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return p("id",this._I,"RibbonTab",this._isNull),this._I},enumerable:!0,configurable:!0}),t.prototype.setVisibility=function(e){l(this,"SetVisibility",0,[e],S(2,"DynamicRibbonUndo","1.1"),0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!d(t)){var n=t;v(this,n),f(n.Id)||(this._I=n.Id)}},t.prototype.load=function(e){return g(this,e)},t.prototype.retrieve=function(e){return m(this,e)},t.prototype._handleIdResult=function(t){e.prototype._handleIdResult.call(this,t),d(t)||f(t.Id)||(this._I=t.Id)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),_(this,t,n)},t.prototype.toJSON=function(){return y(this,{id:this._I},{})},t.prototype.setMockData=function(e){O(this,e)},t.prototype.ensureUnchanged=function(e){c(this,e)},t}(OfficeExtension.ClientObject);e.RibbonTab=he;var ge="RibbonButton",me=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"RibbonButton"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["id","enabled","label"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","Enabled","Label"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return p("enabled",this._E,ge,this._isNull),this._E},set:function(e){this._E=e,u(this,"Enabled",e,S(2,"DynamicRibbonUndo","1.1"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return p("id",this._I,ge,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){return p("label",this._L,ge,this._isNull),this._L},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["enabled"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype.setEnabled=function(e){l(this,"SetEnabled",0,[e],S(2,"DynamicRibbonUndo","1.1"),0)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!d(t)){var n=t;v(this,n),f(n.Enabled)||(this._E=n.Enabled),f(n.Id)||(this._I=n.Id),f(n.Label)||(this._L=n.Label)}},t.prototype.load=function(e){return g(this,e)},t.prototype.retrieve=function(e){return m(this,e)},t.prototype._handleIdResult=function(t){e.prototype._handleIdResult.call(this,t),d(t)||f(t.Id)||(this._I=t.Id)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),_(this,t,n)},t.prototype.toJSON=function(){return y(this,{enabled:this._E,id:this._I,label:this._L},{})},t.prototype.setMockData=function(e){O(this,e)},t.prototype.ensureUnchanged=function(e){c(this,e)},t}(OfficeExtension.ClientObject);e.RibbonButton=me;var ye=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"RibbonButtonCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return p("items",this.m__items,"RibbonButtonCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),n.prototype.getCount=function(){return l(this,"GetCount",1,[],4,0)},n.prototype.getItem=function(t){return i(e.RibbonButton,this,[t])},n.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!d(n)){var o=n;if(v(this,o),!d(o[OfficeExtension.Constants.items])){this.m__items=[];for(var r=o[OfficeExtension.Constants.items],i=0;i<r.length;i++){var a=s(e.RibbonButton,!0,this,r[i],i);a._handleResult(r[i]),this.m__items.push(a)}}}},n.prototype.load=function(e){return g(this,e)},n.prototype.retrieve=function(e){return m(this,e)},n.prototype._handleRetrieveResult=function(n,o){var r=this;t.prototype._handleRetrieveResult.call(this,n,o),_(this,n,o,(function(t,n){return s(e.RibbonButton,!0,r,t,n)}))},n.prototype.toJSON=function(){return y(this,{},{},this.m__items)},n.prototype.setMockData=function(t){var n=this;O(this,t,(function(t,o){return s(e.RibbonButton,!0,n,t,o)}),(function(e){return n.m__items=e}))},n}(OfficeExtension.ClientObject);e.RibbonButtonCollection=ye,function(e){e.ariaBrowserPipeUrl="AriaBrowserPipeUrl",e.ariaUploadUrl="AriaUploadUrl",e.ariaVNextUploadUrl="AriaVNextUploadUrl",e.lokiAutoDiscoverUrl="LokiAutoDiscoverUrl"}(e.ServiceProvider||(e.ServiceProvider={}));var ve=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ServiceUrlProvider"},enumerable:!0,configurable:!0}),n.prototype.getServiceUrl=function(e,t){return l(this,"GetServiceUrl",1,[e,t],4,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.ServiceUrlProvider,t,"Microsoft.DesktopCompliance.ServiceUrlProvider",!1,4)},n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.ServiceUrlProvider=ve;var be=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"LinkedIn"},enumerable:!0,configurable:!0}),n.prototype.isEnabledForOffice=function(){return l(this,"IsEnabledForOffice",1,[],4,0)},n.prototype.recordLinkedInSettingsCompliance=function(e,t){l(this,"RecordLinkedInSettingsCompliance",0,[e,t],S(2,"SharedApiUndo","1.4"),0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.LinkedIn,t,"Microsoft.DesktopCompliance.LinkedIn",!1,4)},n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.LinkedIn=be;var Ce=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"NetworkUsage"},enumerable:!0,configurable:!0}),n.prototype.isInDisconnectedMode=function(){return l(this,"IsInDisconnectedMode",1,[],4,0)},n.prototype.isInOnlineMode=function(){return l(this,"IsInOnlineMode",1,[],4,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.NetworkUsage,t,"Microsoft.DesktopCompliance.NetworkUsage",!1,4)},n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.NetworkUsage=Ce;var _e=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"BeforeDocumentCloseNotification"},enumerable:!0,configurable:!0}),n.prototype.disable=function(){l(this,"Disable",1,[],4,0)},n.prototype.enable=function(){l(this,"Enable",1,[],4,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.BeforeDocumentCloseNotification,t,"Microsoft.BeforeDocumentCloseNotification.BeforeDocumentCloseNotification",!1,4)},Object.defineProperty(n.prototype,"onBeforeCloseNotificationCancelled",{get:function(){return this.m_beforeCloseNotificationCancelled||(this.m_beforeCloseNotificationCancelled=new OfficeExtension.GenericEventHandlers(this.context,this,"BeforeCloseNotificationCancelled",{eventType:65540,registerFunc:function(){return OfficeExtension.Utility._createPromiseFromResult(null)},unregisterFunc:function(){return OfficeExtension.Utility._createPromiseFromResult(null)},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(e){return OfficeExtension.Utility._createPromiseFromResult({})}})),this.m_beforeCloseNotificationCancelled},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.BeforeDocumentCloseNotification=_e,function(e){e.organizationAccount="OrganizationAccount",e.microsoftAccount="MicrosoftAccount",e.unsupported="Unsupported"}(e.IdentityType||(e.IdentityType={}));var Oe=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return __extends(r,t),Object.defineProperty(r.prototype,"_className",{get:function(){return"AuthenticationService"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_navigationPropertyNames",{get:function(){return["roamingSettings"]},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"roamingSettings",{get:function(){return this._R||(this._R=o(e.RoamingSettingCollection,this,"RoamingSettings",!1,4)),this._R},enumerable:!0,configurable:!0}),r.prototype.getAccessToken=function(e,t){return l(this,"GetAccessToken",1,[e,t],5,0)},r.prototype.getIdentities=function(){return h("AuthenticationService.getIdentities","FirstPartyAuthentication","1.3",n),l(this,"GetIdentities",1,[],5,0)},r.prototype.getPrimaryIdentityInfo=function(){return h("AuthenticationService.getPrimaryIdentityInfo","FirstPartyAuthentication","1.2",n),l(this,"GetPrimaryIdentityInfo",1,[],5,0)},r.prototype.registerIdentityChangedEvent=function(){h("AuthenticationService.registerIdentityChangedEvent","FirstPartyAuthentication","1.5",n),l(this,"RegisterIdentityChangedEvent",0,[],S(3,"SharedApiUndo","1.1"),0)},r.prototype.unregisterIdentityChangedEvent=function(){h("AuthenticationService.unregisterIdentityChangedEvent","FirstPartyAuthentication","1.5",n),l(this,"UnregisterIdentityChangedEvent",0,[],S(3,"SharedApiUndo","1.1"),0)},r.prototype._handleResult=function(e){if(t.prototype._handleResult.call(this,e),!d(e)){var n=e;v(this,n),b(this,n,["roamingSettings","RoamingSettings"])}},r.prototype.load=function(e){return g(this,e)},r.prototype.retrieve=function(e){return m(this,e)},r.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},r.newObject=function(t){return a(e.AuthenticationService,t,"Microsoft.Authentication.AuthenticationService",!1,4)},Object.defineProperty(r.prototype,"onIdentityChanged",{get:function(){var e=this;return h("AuthenticationService.onIdentityChanged","FirstPartyAuthentication","1.5",n),this.m_identityChanged||(this.m_identityChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"IdentityChanged",{eventType:65545,registerFunc:function(){return e.registerIdentityChangedEvent()},unregisterFunc:function(){return e.unregisterIdentityChangedEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(e){var t={email:e.email,environment:e.environment,uniqueId:e.uniqueId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_identityChanged},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"onTokenReceived",{get:function(){var e=this;return h("AuthenticationService.onTokenReceived","FirstPartyAuthentication","1.2",n),this.m_tokenReceived||(this.m_tokenReceived=new OfficeExtension.GenericEventHandlers(this.context,this,"TokenReceived",{eventType:3001,registerFunc:function(){return OfficeExtension.Utility._createPromiseFromResult(null)},unregisterFunc:function(){return OfficeExtension.Utility._createPromiseFromResult(null)},getTargetIdFunc:function(){return e._targetId},eventArgsTransformFunc:function(t){var n=P.AuthenticationService_TokenReceived_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_tokenReceived},enumerable:!0,configurable:!0}),r.prototype.toJSON=function(){return y(this,{},{})},r}(OfficeExtension.ClientObject);e.AuthenticationService=Oe;var Se=function(){function e(){}return Object.defineProperty(e.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}),e}();e.AuthenticationServiceCustom=Se,OfficeExtension.Utility.applyMixin(Oe,Se),function(e){e.AuthenticationService_TokenReceived_EventArgsTransform=function(e,t){var n=t;return{tokenValue:n.tokenValue,code:n.code,errorInfo:n.errorInfo}}}(P=e._CC||(e._CC={}));var Ae="RoamingSetting",Ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"_className",{get:function(){return"RoamingSetting"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["id","value"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","Value"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return p("id",this._I,Ae,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return p("value",this._V,Ae,this._isNull),this._V},set:function(e){this._V=e,u(this,"Value",e,S(2,"SharedApiUndo","1.1"))},enumerable:!0,configurable:!0}),t.prototype.set=function(e,t){this._recursivelySet(e,t,["value"],[],[])},t.prototype.update=function(e){this._recursivelyUpdate(e)},t.prototype._handleResult=function(t){if(e.prototype._handleResult.call(this,t),!d(t)){var n=t;v(this,n),f(n.Id)||(this._I=n.Id),f(n.Value)||(this._V=n.Value)}},t.prototype.load=function(e){return g(this,e)},t.prototype.retrieve=function(e){return m(this,e)},t.prototype._handleIdResult=function(t){e.prototype._handleIdResult.call(this,t),d(t)||f(t.Id)||(this._I=t.Id)},t.prototype._handleRetrieveResult=function(t,n){e.prototype._handleRetrieveResult.call(this,t,n),_(this,t,n)},t.prototype.toJSON=function(){return y(this,{id:this._I,value:this._V},{})},t.prototype.setMockData=function(e){O(this,e)},t.prototype.ensureUnchanged=function(e){c(this,e)},t}(OfficeExtension.ClientObject);e.RoamingSetting=Ee;var Pe=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"RoamingSettingCollection"},enumerable:!0,configurable:!0}),n.prototype.getItem=function(t){return r(e.RoamingSetting,this,"GetItem",1,[t],!1,!1,null,4)},n.prototype.getItemOrNullObject=function(t){return r(e.RoamingSetting,this,"GetItemOrNullObject",1,[t],!1,!1,null,4)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.RoamingSettingCollection=Pe;var Re=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"SharedFilePicker"},enumerable:!0,configurable:!0}),n.prototype.getSharedFilePickerResponse=function(e){return l(this,"GetSharedFilePickerResponse",1,[e],4,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.SharedFilePicker,t,"Microsoft.Office.SharedFilePicker",!1,4)},n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.SharedFilePicker=Re;var Te=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ActionService"},enumerable:!0,configurable:!0}),n.prototype.areShortcutsInUse=function(e){return l(this,"AreShortcutsInUse",0,[e],S(2,"SharedApiUndo","1.1"),0)},n.prototype.getShortcuts=function(){return l(this,"GetShortcuts",1,[],4,0)},n.prototype.replaceShortcuts=function(e){l(this,"ReplaceShortcuts",0,[e],S(2,"SharedApiUndo","1.1"),0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.ActionService,t,"Microsoft.Office.ActionService",!1,4)},n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.ActionService=Te;var Ie=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"Auth"},enumerable:!0,configurable:!0}),n.prototype.getAccessTokenFirstPartyOAuth=function(e,t){return l(this,"GetAccessTokenFirstPartyOAuth",1,[e,t],5,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.Auth,t,"Microsoft.Office.Auth",!1,5)},n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.Auth=Ie;var we=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"AugLoopEventService"},enumerable:!0,configurable:!0}),n.prototype.sendMessage=function(e){l(this,"SendMessage",1,[e],5,0)},n.prototype._RegisterHostMessageReceivedEvent=function(){l(this,"_RegisterHostMessageReceivedEvent",1,[],5,0)},n.prototype._UnregisterHostMessageReceivedEvent=function(){l(this,"_UnregisterHostMessageReceivedEvent",1,[],5,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.AugLoopEventService,t,"Microsoft.Office.AugLoopEventService",!1,5)},Object.defineProperty(n.prototype,"onHostMessageReceived",{get:function(){var e=this;return this.m_hostMessageReceived||(this.m_hostMessageReceived=new OfficeExtension.GenericEventHandlers(this.context,this,"HostMessageReceived",{eventType:65542,registerFunc:function(){return e._RegisterHostMessageReceivedEvent()},unregisterFunc:function(){return e._UnregisterHostMessageReceivedEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(e){var t={data:e.data};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_hostMessageReceived},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.AugLoopEventService=we;var Fe=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"UndoService"},enumerable:!0,configurable:!0}),n.prototype.endCopilotOperation=function(e){l(this,"EndCopilotOperation",0,[e],S(3,"SharedApiUndo","1.4"),0)},n.prototype.startCopilotOperation=function(e){return l(this,"StartCopilotOperation",0,[e],S(3,"SharedApiUndo","1.4"),0)},n.prototype.undo=function(){return l(this,"Undo",0,[],S(3,"SharedApiUndo","1.4"),0)},n.prototype._RegisterUndoStackChangedEvent=function(){l(this,"_RegisterUndoStackChangedEvent",1,[],5,0)},n.prototype._UnregisterUndoStackChangedEvent=function(){l(this,"_UnregisterUndoStackChangedEvent",1,[],5,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.UndoService,t,"Microsoft.Office.UndoService",!1,5)},Object.defineProperty(n.prototype,"onCopilotOperationStarted",{get:function(){return this.m_copilotOperationStarted||(this.m_copilotOperationStarted=new OfficeExtension.GenericEventHandlers(this.context,this,"CopilotOperationStarted",{eventType:65544,registerFunc:function(){return OfficeExtension.Utility._createPromiseFromResult(null)},unregisterFunc:function(){return OfficeExtension.Utility._createPromiseFromResult(null)},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(e){var t={batchId:e.batchId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_copilotOperationStarted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onUndoStackChanged",{get:function(){var e=this;return this.m_undoStackChanged||(this.m_undoStackChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"UndoStackChanged",{eventType:65543,registerFunc:function(){return e._RegisterUndoStackChangedEvent()},unregisterFunc:function(){return e._UnregisterUndoStackChangedEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(e){return OfficeExtension.Utility._createPromiseFromResult({})}})),this.m_undoStackChanged},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.UndoService=Fe,function(e){e.notSet="NotSet",e.true="True",e.false="False"}(e.TriStateOption||(e.TriStateOption={})),function(e){e.like="Like",e.dislike="Dislike",e.idea="Idea",e.unclassified="Unclassified"}(e.UserFeedbackType||(e.UserFeedbackType={})),function(e){e.modalDialog="ModalDialog",e.taskpane="Taskpane"}(e.UserFeedbackUIType||(e.UserFeedbackUIType={})),function(e){e.autoCapture="AutoCapture",e.autoCaptureWithHtml2Canvas="AutoCaptureWithHtml2Canvas",e.providedAtInitialization="ProvidedAtInitialization",e.dynamicallyProvided="DynamicallyProvided"}(e.UserFeedbackScreenshotInfoSourceType||(e.UserFeedbackScreenshotInfoSourceType={})),function(e){e.jpeg="jpeg",e.png="png"}(e.UserFeedbackScreenshotInfoImageFormat||(e.UserFeedbackScreenshotInfoImageFormat={}));var De=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"UserFeedbackService"},enumerable:!0,configurable:!0}),n.prototype.canCollectCopilotFeedback=function(){return l(this,"CanCollectCopilotFeedback",1,[],5,0)},n.prototype.canCollectUserFeedback=function(){return l(this,"CanCollectUserFeedback",1,[],5,0)},n.prototype.checkFeedbackEligibility=function(e){return l(this,"CheckFeedbackEligibility",1,[e],5,0)},n.prototype.collectFeedbackEligibility=function(){return l(this,"CollectFeedbackEligibility",1,[],5,0)},n.prototype.collectUserFeedback=function(e,t,n,o){l(this,"CollectUserFeedback",1,[e,t,n,o],5,0)},n.prototype.getHostScreenshot=function(){return l(this,"GetHostScreenshot",1,[],5,0)},n.prototype.getInitializationData=function(){return l(this,"GetInitializationData",1,[],5,0)},n.prototype.invokeDiagnosticsLogsUpload=function(e){l(this,"InvokeDiagnosticsLogsUpload",1,[e],5,0)},n.prototype._RegisterUserFeedbackResponseEvent=function(){l(this,"_RegisterUserFeedbackResponseEvent",1,[],5,0)},n.prototype._RegisterUserFeedbackUIDismissedEvent=function(){l(this,"_RegisterUserFeedbackUIDismissedEvent",1,[],5,0)},n.prototype._UnregisterUserFeedbackResponseEvent=function(){l(this,"_UnregisterUserFeedbackResponseEvent",1,[],5,0)},n.prototype._UnregisterUserFeedbackUIDismissedEvent=function(){l(this,"_UnregisterUserFeedbackUIDismissedEvent",1,[],5,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.UserFeedbackService,t,"Microsoft.Office.UserFeedbackService",!1,5)},Object.defineProperty(n.prototype,"onUserFeedbackResponse",{get:function(){var e=this;return this.m_userFeedbackResponse||(this.m_userFeedbackResponse=new OfficeExtension.GenericEventHandlers(this.context,this,"UserFeedbackResponse",{eventType:65550,registerFunc:function(){return e._RegisterUserFeedbackResponseEvent()},unregisterFunc:function(){return e._UnregisterUserFeedbackResponseEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(e){var t={responseData:e.responseData};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_userFeedbackResponse},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onUserFeedbackUIDismissed",{get:function(){var e=this;return this.m_userFeedbackUIDismissed||(this.m_userFeedbackUIDismissed=new OfficeExtension.GenericEventHandlers(this.context,this,"UserFeedbackUIDismissed",{eventType:65546,registerFunc:function(){return e._RegisterUserFeedbackUIDismissedEvent()},unregisterFunc:function(){return e._UnregisterUserFeedbackUIDismissedEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(e){var t={isFeedbackSent:e.isFeedbackSent};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_userFeedbackUIDismissed},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.UserFeedbackService=De;var xe=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"NotificationService"},enumerable:!0,configurable:!0}),n.prototype.addNotification=function(e,t){return l(this,"AddNotification",0,[e,t],S(3,"SharedApiUndo","1.2"),0)},n.prototype.removeNotification=function(e){l(this,"RemoveNotification",0,[e],S(3,"SharedApiUndo","1.2"),0)},n.prototype.updateNotification=function(e,t){l(this,"UpdateNotification",0,[e,t],S(3,"SharedApiUndo","1.2"),0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.NotificationService,t,"Microsoft.Office.NotificationService",!1,5)},n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.NotificationService=xe;var ke=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return __extends(o,t),Object.defineProperty(o.prototype,"_className",{get:function(){return"SensitivityService"},enumerable:!0,configurable:!0}),o.prototype.getHighestSensitivityLabel=function(e){return l(this,"GetHighestSensitivityLabel",0,[e],S(3,"SensitivityUndo","1.1"),0)},o.prototype.getLabel=function(){return l(this,"GetLabel",0,[],S(3,"SensitivityUndo","1.1"),0)},o.prototype.getSensitivityResultDetails=function(e,t){return h("SensitivityService.getSensitivityResultDetails","SensitivityService","1.2",n),l(this,"GetSensitivityResultDetails",0,[e,t],S(3,"SensitivityUndo","1.2"),0)},o.prototype.getSensitivityResultDetailsByStringErrorCode=function(e,t){return h("SensitivityService.getSensitivityResultDetailsByStringErrorCode","SensitivityService","1.3",n),l(this,"GetSensitivityResultDetailsByStringErrorCode",0,[e,t],S(3,"SensitivityUndo","1.3"),0)},o.prototype.tryUpgradeLabel=function(e,t){l(this,"TryUpgradeLabel",0,[e,t],S(3,"SensitivityUndo","1.1"),0)},o.prototype._RegisterSensitivityLabelChangedEvent=function(){l(this,"_RegisterSensitivityLabelChangedEvent",1,[],5,0)},o.prototype._UnregisterSensitivityLabelChangedEvent=function(){l(this,"_UnregisterSensitivityLabelChangedEvent",1,[],5,0)},o.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},o.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},o.newObject=function(t){return a(e.SensitivityService,t,"Microsoft.Office.SensitivityService",!1,5)},Object.defineProperty(o.prototype,"onLabelChanged",{get:function(){var e=this;return this.m_labelChanged||(this.m_labelChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"LabelChanged",{eventType:65549,registerFunc:function(){return e._RegisterSensitivityLabelChangedEvent()},unregisterFunc:function(){return e._UnregisterSensitivityLabelChangedEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(e){var t={context:e.context,error:e.error,newLabel:e.newLabel,previousLabel:e.previousLabel};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_labelChanged},enumerable:!0,configurable:!0}),o.prototype.toJSON=function(){return y(this,{},{})},o}(OfficeExtension.ClientObject);e.SensitivityService=ke;var Ne=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return __extends(o,t),Object.defineProperty(o.prototype,"_className",{get:function(){return"CopilotService"},enumerable:!0,configurable:!0}),o.prototype.getWindowClientWidth=function(){return l(this,"GetWindowClientWidth",0,[],S(3,"SharedApiUndo","1.3"),0)},o.prototype.launchHelpPaneByArticleId=function(e){l(this,"LaunchHelpPaneByArticleId",0,[e],S(3,"SharedApiUndo","1.3"),0)},o.prototype.launchHelpPaneByArticleIdString=function(e){l(this,"LaunchHelpPaneByArticleIdString",0,[e],S(3,"SharedApiUndo","1.3"),0)},o.prototype.launchHelpPaneByQuery=function(e){l(this,"LaunchHelpPaneByQuery",0,[e],S(3,"SharedApiUndo","1.3"),0)},o.prototype.launchTaskPaneByAgentId=function(e){h("CopilotService.launchTaskPaneByAgentId","CopilotService","1.2",n),l(this,"LaunchTaskPaneByAgentId",0,[e],3,0)},o.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},o.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},o.newObject=function(t){return a(e.CopilotService,t,"Microsoft.Office.CopilotService",!1,5)},o.prototype.toJSON=function(){return y(this,{},{})},o}(OfficeExtension.ClientObject);e.CopilotService=Ne;var Me=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"PrivateApiService"},enumerable:!0,configurable:!0}),n.prototype.execute=function(e){return l(this,"Execute",0,[e],S(3,"PrivateAPI","1.1"),0)},n.prototype._RegisterPrivateApiEvent=function(){l(this,"_RegisterPrivateApiEvent",1,[],5,0)},n.prototype._UnregisterPrivateApiEvent=function(){l(this,"_UnregisterPrivateApiEvent",1,[],5,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.PrivateApiService,t,"Microsoft.Office.PrivateApiService",!1,5)},Object.defineProperty(n.prototype,"onOnPrivateEvent",{get:function(){var e=this;return this.m_onPrivateEvent||(this.m_onPrivateEvent=new OfficeExtension.GenericEventHandlers(this.context,this,"OnPrivateEvent",{eventType:65552,registerFunc:function(){return e._RegisterPrivateApiEvent()},unregisterFunc:function(){return e._UnregisterPrivateApiEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(e){var t={messageData:e.messageData};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_onPrivateEvent},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.PrivateApiService=Me,function(e){e.get="Get",e.post="Post",e.patch="Patch",e.delete="Delete"}(e.RequestMethod||(e.RequestMethod={})),function(e){e.executionResult="ExecutionResult",e.runtimeInfo="RuntimeInfo",e.serviceResponse="ServiceResponse"}(e.ResultType||(e.ResultType={})),function(e){e.other="Other",e.environment="Environment",e.runtime="Runtime",e.license="License",e.user="User",e.auth="Auth",e.billing="Billing",e.invalidArg="InvalidArg",e.python="Python",e.service="Service",e.unsupported="Unsupported",e.dataUpload="DataUpload"}(e.ErrorCategory||(e.ErrorCategory={}));var He=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ExternalCodeService"},enumerable:!0,configurable:!0}),n.prototype.executePythonCode=function(e){return l(this,"ExecutePythonCode",0,[e],S(3,"ExternalCodeServiceUndo","1.1"),0)},n.prototype.executePythonCodeAsync=function(e){l(this,"ExecutePythonCodeAsync",0,[e],S(3,"ExternalCodeServiceUndo","1.1"),0)},n.prototype.executePythonCodeAsync2=function(e,t){l(this,"ExecutePythonCodeAsync2",0,[e,t],S(3,"ExternalCodeServiceUndo","1.1"),0)},n.prototype.getRuntimeInfoAsync=function(){l(this,"GetRuntimeInfoAsync",1,[],5,0)},n.prototype.getRuntimeInfoAsync2=function(e){l(this,"GetRuntimeInfoAsync2",1,[e],5,0)},n.prototype.registerExternalCodeExecutionCompletedEvent=function(){l(this,"RegisterExternalCodeExecutionCompletedEvent",0,[],S(3,"ExternalCodeServiceUndo","1.1"),0)},n.prototype.registerExternalCodeServiceRequestCompletedEvent=function(){l(this,"RegisterExternalCodeServiceRequestCompletedEvent",1,[],5,0)},n.prototype.registerExternalCodeServiceResultEvent=function(){l(this,"RegisterExternalCodeServiceResultEvent",0,[],S(3,"ExternalCodeServiceUndo","1.1"),0)},n.prototype.sendRequestAsync=function(e,t,n,o){return l(this,"SendRequestAsync",1,[e,t,n,o],5,0)},n.prototype.unregisterExternalCodeExecutionCompletedEvent=function(){l(this,"UnregisterExternalCodeExecutionCompletedEvent",0,[],S(3,"ExternalCodeServiceUndo","1.1"),0)},n.prototype.unregisterExternalCodeServiceRequestCompletedEvent=function(){l(this,"UnregisterExternalCodeServiceRequestCompletedEvent",1,[],5,0)},n.prototype.unregisterExternalCodeServiceResultEvent=function(){l(this,"UnregisterExternalCodeServiceResultEvent",0,[],S(3,"ExternalCodeServiceUndo","1.1"),0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.ExternalCodeService,t,"Microsoft.Office.ExternalCodeService",!1,5)},Object.defineProperty(n.prototype,"onExternalCodeExecutionCompleted",{get:function(){var e=this;return this.m_externalCodeExecutionCompleted||(this.m_externalCodeExecutionCompleted=new OfficeExtension.GenericEventHandlers(this.context,this,"ExternalCodeExecutionCompleted",{eventType:65551,registerFunc:function(){return e.registerExternalCodeExecutionCompletedEvent()},unregisterFunc:function(){return e.unregisterExternalCodeExecutionCompletedEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(t){var n=P.ExternalCodeService_ExternalCodeExecutionCompleted_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_externalCodeExecutionCompleted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onExternalCodeServiceRequestCompleted",{get:function(){var e=this;return this.m_externalCodeServiceRequestCompleted||(this.m_externalCodeServiceRequestCompleted=new OfficeExtension.GenericEventHandlers(this.context,this,"ExternalCodeServiceRequestCompleted",{eventType:65553,registerFunc:function(){return e.registerExternalCodeServiceRequestCompletedEvent()},unregisterFunc:function(){return e.unregisterExternalCodeServiceRequestCompletedEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(t){var n=P.ExternalCodeService_ExternalCodeServiceRequestCompleted_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_externalCodeServiceRequestCompleted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onExternalCodeServiceResult",{get:function(){var e=this;return this.m_externalCodeServiceResult||(this.m_externalCodeServiceResult=new OfficeExtension.GenericEventHandlers(this.context,this,"ExternalCodeServiceResult",{eventType:65554,registerFunc:function(){return e.registerExternalCodeServiceResultEvent()},unregisterFunc:function(){return e.unregisterExternalCodeServiceResultEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(t){var n=P.ExternalCodeService_ExternalCodeServiceResult_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_externalCodeServiceResult},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.ExternalCodeService=He,function(e){e.ExternalCodeService_ExternalCodeExecutionCompleted_EventArgsTransform=function(e,t){return{result:t.result}},e.ExternalCodeService_ExternalCodeServiceRequestCompleted_EventArgsTransform=function(e,t){return t},e.ExternalCodeService_ExternalCodeServiceResult_EventArgsTransform=function(e,t){return t}}(P=e._CC||(e._CC={})),function(e){e.info="Info",e.error="Error",e.blocked="Blocked",e.severeWarning="SevereWarning",e.success="Success",e.warning="Warning"}(e.BusinessBarType||(e.BusinessBarType={}));var Ue=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"BusinessBarService"},enumerable:!0,configurable:!0}),n.prototype.hide=function(e){l(this,"Hide",0,[e],S(3,"SharedApiUndo","1.1"),0)},n.prototype.show=function(e,t){l(this,"Show",0,[e,t],S(3,"SharedApiUndo","1.1"),0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.BusinessBarService,t,"Microsoft.Office.BusinessBarService",!1,5)},n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.BusinessBarService=Ue,function(e){e.information="information",e.error="error",e.warning="warning",e.question="question",e.other="other"}(e.SimpleDialogCategory||(e.SimpleDialogCategory={}));var je=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"ShowSimpleDialog"},enumerable:!0,configurable:!0}),n.prototype.launchSimpleDialog=function(e,t,n,o,r,i,a,s){return l(this,"LaunchSimpleDialog",0,[e,t,n,o,r,i,a,s],3,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.ShowSimpleDialog,t,"Microsoft.Office.ShowSimpleDialog",!1,5)},n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.ShowSimpleDialog=je;var Le=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"DispatchApiService"},enumerable:!0,configurable:!0}),n.prototype.execute=function(e,t){return l(this,"Execute",1,[e,t],5,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.DispatchApiService,t,"Microsoft.Office.DispatchApiService",!1,5)},n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.DispatchApiService=Le,function(e){e.camera="camera",e.microphone="microphone",e.geolocation="geolocation"}(e.DevicePermissionType||(e.DevicePermissionType={}));var Be=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"DevicePermissionService"},enumerable:!0,configurable:!0}),n.prototype.requestPermissions=function(e){return l(this,"RequestPermissions",1,[e],5,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.DevicePermissionService,t,"Microsoft.Office.DevicePermissionService",!1,5)},n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.DevicePermissionService=Be;var We=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"TaskpaneService"},enumerable:!0,configurable:!0}),n.prototype.close=function(){l(this,"Close",0,[],S(3,"TaskpaneAPI","1.1"),0)},n.prototype.move=function(){l(this,"Move",0,[],S(3,"TaskpaneAPI","1.1"),0)},n.prototype.notifyHeaderLoaded=function(){l(this,"NotifyHeaderLoaded",0,[],S(3,"TaskpaneAPI","1.1"),0)},n.prototype.setWidth=function(e){l(this,"SetWidth",0,[e],S(2,"TaskpaneAPI","1.1"),0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.TaskpaneService,t,"Microsoft.Office.TaskpaneService",!1,4)},n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.TaskpaneService=We;var Ve=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"AddinSkillActionService"},enumerable:!0,configurable:!0}),n.prototype.invokeAction=function(e,t,n,o){l(this,"InvokeAction",1,[e,t,n,o],5,0)},n.prototype._RegisterReplyReceivedEvent=function(){l(this,"_RegisterReplyReceivedEvent",1,[],5,0)},n.prototype._UnregisterReplyReceivedEvent=function(){l(this,"_UnregisterReplyReceivedEvent",1,[],5,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.AddinSkillActionService,t,"Microsoft.Office.AddinSkillActionService",!1,5)},Object.defineProperty(n.prototype,"onReplyReceived",{get:function(){var e=this;return this.m_replyReceived||(this.m_replyReceived=new OfficeExtension.GenericEventHandlers(this.context,this,"ReplyReceived",{eventType:65555,registerFunc:function(){return e._RegisterReplyReceivedEvent()},unregisterFunc:function(){return e._UnregisterReplyReceivedEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(t){var n=P.AddinSkillActionService_ReplyReceived_EventArgsTransform(e,t);return OfficeExtension.Utility._createPromiseFromResult(n)}})),this.m_replyReceived},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.AddinSkillActionService=Ve,function(e){e.AddinSkillActionService_ReplyReceived_EventArgsTransform=function(e,t){return{actionCorrelationId:t.actionCorrelationId,replyMessage:t.replyMessage,resultCode:t.resultCode}}}(P=e._CC||(e._CC={}));var qe=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"_className",{get:function(){return"UnifiedStoreService"},enumerable:!0,configurable:!0}),n.prototype.launchStoreDialogWithCopilotAgentPageShown=function(){l(this,"LaunchStoreDialogWithCopilotAgentPageShown",0,[],3,0)},n.prototype._RegisterCopilotAgentEvent=function(){l(this,"_RegisterCopilotAgentEvent",1,[],5,0)},n.prototype._UnregisterCopilotAgentEvent=function(){l(this,"_UnregisterCopilotAgentEvent",1,[],5,0)},n.prototype._handleResult=function(e){(t.prototype._handleResult.call(this,e),d(e))||v(this,e)},n.prototype._handleRetrieveResult=function(e,n){t.prototype._handleRetrieveResult.call(this,e,n),_(this,e,n)},n.newObject=function(t){return a(e.UnifiedStoreService,t,"Microsoft.Office.UnifiedStoreService",!1,5)},Object.defineProperty(n.prototype,"onCopilotAgentEvent",{get:function(){var e=this;return this.m_copilotAgentEvent||(this.m_copilotAgentEvent=new OfficeExtension.GenericEventHandlers(this.context,this,"CopilotAgentEvent",{eventType:65556,registerFunc:function(){return e._RegisterCopilotAgentEvent()},unregisterFunc:function(){return e._UnregisterCopilotAgentEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(e){var t={messageData:e.messageData};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_copilotAgentEvent},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){return y(this,{},{})},n}(OfficeExtension.ClientObject);e.UnifiedStoreService=qe,function(e){e.apiNotAvailable="ApiNotAvailable",e.clientError="ClientError",e.clpSessionError="ClpSessionError",e.controlIdNotFound="ControlIdNotFound",e.docCookieError="DocCookieError",e.entryIdRequired="EntryIdRequired",e.errorPointer="ErrorPointer",e.generalException="GeneralException",e.hostIntegrationManagerError="HostIntegrationManagerError",e.hostRestartNeeded="HostRestartNeeded",e.instanceNotFound="InstanceNotFound",e.interactiveFlowAborted="InteractiveFlowAborted",e.invalidArgument="InvalidArgument",e.invalidGrant="InvalidGrant",e.invalidResourceUrl="InvalidResourceUrl",e.invalidRibbonDefinition="InvalidRibbonDefinition",e.labelingDisabledAppguard="LabelingDisabledAppguard",e.labelingDisabledNoSignedInClpCompatibleUsers="LabelingDisabledNoSignedInClpCompatibleUsers",e.labelingDisabledPrivacySettings="LabelingDisabledPrivacySettings",e.labelingDisabledProtectedView="LabelingDisabledProtectedView",e.labelingDisabledUnsupportedLabelClient="LabelingDisabledUnsupportedLabelClient",e.msoOLDocumentError="MsoOLDocumentError",e.notImplement="NotImplement",e.objectNotFound="ObjectNotFound",e.officeJSItemLabelForIdentityError="OfficeJSItemLabelForIdentityError",e.officeJSRMSLicenseError="OfficeJSRMSLicenseError",e.officeJSSessionOrDocError="OfficeJSSessionOrDocError",e.officeSolutionFrameworkHostError="OfficeSolutionFrameworkHostError",e.omworkflowUserNotFound="OMWorkflowUserNotFound",e.osfControlContainerError="OsfControlContainerError",e.outOfMemory="OutOfMemory",e.resourceNotSupported="ResourceNotSupported",e.sensitivityDocumentReadOnly="SensitivityDocumentReadOnly",e.sensitivityInsufficientPermission="SensitivityInsufficientPermission",e.sensitivityLabelDisabled="SensitivityLabelDisabled",e.sensitivityLabelingDisabled="SensitivityLabelingDisabled",e.sensitivityLabelNotFound="SensitivityLabelNotFound",e.sensitivityNewLabelSensitivityOrder="SensitivityNewLabelSensitivityOrder",e.sensitivityUnsupportedContentType="SensitivityUnsupportedContentType",e.sensitivityUnsupportedCrossTenant="SensitivityUnsupportedCrossTenant",e.sensitivityUnsupportedDke="SensitivityUnsupportedDke",e.sensitivityUnsupportedUdp="SensitivityUnsupportedUdp",e.serverError="ServerError",e.serviceUrlNotFound="ServiceUrlNotFound",e.sharedRuntimeNotAvailable="SharedRuntimeNotAvailable",e.ticketInvalidParams="TicketInvalidParams",e.ticketNetworkError="TicketNetworkError",e.ticketUnauthorized="TicketUnauthorized",e.ticketUninitialized="TicketUninitialized",e.ticketUnknownError="TicketUnknownError",e.unexpectedError="UnexpectedError",e.unsupportedUserIdentity="UnsupportedUserIdentity",e.userNotSignedIn="UserNotSignedIn"}(e.ErrorCodes||(e.ErrorCodes={})),e.Interfaces||(e.Interfaces={})}(OfficeCore||(OfficeCore={})),function(e){var t,n;!function(e){e.hidden="Hidden",e.taskpane="Taskpane"}(t=e.VisibilityMode||(e.VisibilityMode={})),function(e){e.none="None",e.load="Load"}(n=e.StartupBehavior||(e.StartupBehavior={})),function(e){function o(e){var t=new OfficeCore.RequestContext;return t._requestFlagModifier|=64,e&&(t._customData="WacPartition"),t}function r(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return t=o(!0),OfficeCore.AppRuntimeService.newObject(t).setAppRuntimeState(e),[4,t.sync()];case 1:return n.sent(),[2]}}))}))}var i;e.setStartupBehavior=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r;return __generator(this,(function(i){switch(i.label){case 0:if(e!==n.load&&e!==n.none)throw OfficeExtension.Utility.createRuntimeError(OfficeExtension.ErrorCodes.invalidArgument,null,null);return t=e==n.load?OfficeCore.AppRuntimeState.background:OfficeCore.AppRuntimeState.inactive,r=o(!1),OfficeCore.AppRuntimePersistenceService.newObject(r).setAppRuntimeStartState(t),[4,r.sync()];case 1:return i.sent(),[2]}}))}))},e.getStartupBehavior=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,i;return __generator(this,(function(a){switch(a.label){case 0:return e=o(!1),t=OfficeCore.AppRuntimePersistenceService.newObject(e),r=t.getAppRuntimeStartState(),[4,e.sync()];case 1:return a.sent(),i=r.value,[2,i==OfficeCore.AppRuntimeState.inactive?n.none:n.load]}}))}))},e.setSnapshotEnabled=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return t=o(!0),OfficeCore.AppRuntimeService.newObject(t).setSnapshotEnabled(e),[4,t.sync()];case 1:return n.sent(),[2,Promise.resolve()]}}))}))},e.getSnapshotEnabled=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n;return __generator(this,(function(r){switch(r.label){case 0:return e=o(!0),t=OfficeCore.AppRuntimeService.newObject(e),n=t.getSnapshotEnabled(),[4,e.sync()];case 1:return r.sent(),[2,n.value]}}))}))},e.getContentSnapshotAsBase64=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,new OfficeExtension.CoreUtility.Promise((function(e,t){var n=o(!0),r=OfficeCore.AppRuntimeService.newObject(n),i=setTimeout((function(){a.remove(),n.sync().catch((function(){})),t(OfficeExtension.Utility.createRuntimeError(OfficeExtension.ErrorCodes.generalException,"timeout","getContentSnapshotAsBase64"))}),7e3),a=r.onSnapshotImageReady.add((function(o){return clearTimeout(i),a.remove(),OfficeExtension.CoreUtility.isNullOrUndefined(o)?(n.sync().catch((function(){})),t(OfficeExtension.Utility.createRuntimeError(OfficeExtension.ErrorCodes.generalException,"execution failed","getContentSnapshotAsBase64"))):(n.sync().catch((function(){})),e(o.imageBase64)),null}));n.sync().then((function(){r.getContentSnapshotAsBase64();return n.sync().then((function(){return null}))})).catch((function(e){t(e)}))}))]}))}))},e._getState=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n;return __generator(this,(function(r){switch(r.label){case 0:return e=o(!0),t=OfficeCore.AppRuntimeService.newObject(e),n=t.getAppRuntimeState(),[4,e.sync()];case 1:return r.sent(),[2,n.value]}}))}))},e.showAsTaskpane=function(){return r(OfficeCore.AppRuntimeState.visible)},e.hide=function(){return r(OfficeCore.AppRuntimeState.background)},e.onVisibilityModeChanged=function(e){return __awaiter(this,void 0,void 0,(function(){var n,r,a=this;return __generator(this,(function(s){switch(s.label){case 0:return n=function(){if(!i){var e=o(!0);i=OfficeCore.AppRuntimeService.newObject(e)}return i}(),r=n.onVisibilityChanged.add((function(n){if(e){var o={visibilityMode:(r=n.visibility,r===OfficeCore.Visibility.visible?t.taskpane:t.hidden)};e(o)}var r;return null})),[4,n.context.sync()];case 1:return s.sent(),[2,function(){return __awaiter(a,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return r.remove(),[4,n.context.sync()];case 1:return e.sent(),[2]}}))}))}]}}))}))},function(e){function t(e){var t=new OfficeCore.RequestContext;return t._requestFlagModifier|=64,e&&(t._customData="WacPartition"),t}e.enable=function(){return __awaiter(this,void 0,void 0,(function(){var e,n;return __generator(this,(function(o){switch(o.label){case 0:return e=!1,"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(e=!0),n=t(e),OfficeCore.BeforeDocumentCloseNotification.newObject(n).enable(),[4,n.sync()];case 1:return o.sent(),[2]}}))}))},e.disable=function(){return __awaiter(this,void 0,void 0,(function(){var e,n;return __generator(this,(function(o){switch(o.label){case 0:return e=!1,"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(e=!0),n=t(e),OfficeCore.BeforeDocumentCloseNotification.newObject(n).disable(),[4,n.sync()];case 1:return o.sent(),[2]}}))}))},e.onCloseActionCancelled=function(e){return __awaiter(this,void 0,void 0,(function(){var n,o,r,i,a=this;return __generator(this,(function(s){switch(s.label){case 0:return n=!1,"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(n=!0),o=t(n),r=OfficeCore.BeforeDocumentCloseNotification.newObject(o),i=r.onBeforeCloseNotificationCancelled.add((function(t){return e&&e(),null})),[4,o.sync()];case 1:return s.sent(),[2,function(){return __awaiter(a,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return i.remove(),[4,o.sync()];case 1:return e.sent(),[2]}}))}))}]}}))}))}}(e.beforeDocumentCloseNotification||(e.beforeDocumentCloseNotification={}))}(e.addin||(e.addin={}))}(Office||(Office={})),function(e){var t,n;!function(e){e.taskpane="Taskpane",e.dialog="Dialog"}(t||(t={})),function(n){function o(e){return new OfficeCore.RequestContext}!function(e){function t(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}e.close=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:return e=t(),OfficeCore.TaskpaneService.newObject(e).close(),[4,e.sync()];case 1:return n.sent(),[2]}}))}))},e.move=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:return e=t(),OfficeCore.TaskpaneService.newObject(e).move(),[4,e.sync()];case 1:return n.sent(),[2]}}))}))},e.notifyHeaderLoaded=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:return e=t(),OfficeCore.TaskpaneService.newObject(e).notifyHeaderLoaded(),[4,e.sync()];case 1:return n.sent(),[2]}}))}))},e.setWidth=function(e){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(o){switch(o.label){case 0:return n=t(),OfficeCore.TaskpaneService.newObject(n).setWidth(e),[4,n.sync()];case 1:return o.sent(),[2]}}))}))}}(n.taskpane||(n.taskpane={})),n.launchTaskpane=function(n){return __awaiter(this,void 0,void 0,(function(){var r,i,a,s,l;return __generator(this,(function(c){switch(c.label){case 0:return e.context.platform&&"OfficeOnline"===e.context.platform?(r={SharedRuntimeId:n.sharedRuntimeId,SourceLocationOverrideResourceId:n.sourceLocationOverride,TaskPaneTitle:n.taskpaneTitle,TaskPaneWidth:n.taskpaneWidth},i={OptionalProperties:r,DevProperties:n.settings},e.context.extensionLifeCycle.launchExtensionComponent(null,"Taskpane",null,null,i),[3,3]):[3,1];case 1:return a=o(),s=OfficeCore.ExtensionLifeCycle.newObject(a),l=n.settings,n.settings=l&&OSF.OUtil.serializeSettings(l),s.launchExtensionComponent("",t.taskpane,n),[4,a.sync()];case 2:c.sent(),c.label=3;case 3:return[2]}}))}))},n.launchDialog=function(n){return __awaiter(this,void 0,void 0,(function(){var r,i,a,s,l;return __generator(this,(function(c){switch(c.label){case 0:return e.context.platform&&"OfficeOnline"===e.context.platform?(r={SharedRuntimeId:n.sharedRuntimeId,SourceLocationOverrideResourceId:n.sourceLocationOverride},i={OptionalProperties:r,DevProperties:n.settings},e.context.extensionLifeCycle.launchExtensionComponent(null,"SDXDialog",null,null,i),[3,3]):[3,1];case 1:return a=o(),s=OfficeCore.ExtensionLifeCycle.newObject(a),l=n.settings,n.settings=l&&OSF.OUtil.serializeSettings(l),s.launchExtensionComponent("",t.dialog,n),[4,a.sync()];case 2:c.sent(),c.label=3;case 3:return[2]}}))}))}}(n=e.ExtensionLifeCycle||(e.ExtensionLifeCycle={})),e.extensionLifeCycle=n}(Office||(Office={})),function(e){!function(e){e.executePythonCode=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,o;return __generator(this,(function(r){switch(r.label){case 0:return t=new OfficeCore.RequestContext,n=OfficeCore.ExternalCodeService.newObject(t),o=n.executePythonCode(e),[4,t.sync()];case 1:return r.sent(),[2,o.value]}}))}))}}(e.externalCodeService||(e.externalCodeService={}))}(Office||(Office={})),function(e){!function(e){function t(){return __awaiter(this,void 0,void 0,(function(){var e,t,n;return __generator(this,(function(o){switch(o.label){case 0:return e=new OfficeCore.RequestContext,t=e.flighting,n=t.getFeatureGate("Microsoft.Office.Excel.UseGenericEventForExternalCodeService"),e.load(n),[4,e.sync()];case 1:return o.sent(),"boolean"==typeof n.value?[2,n.value]:[2,!1]}}))}))}function n(){return new OfficeCore.RequestContext}var o=0;function r(e,r,i){return __awaiter(this,void 0,void 0,(function(){var a=this;return __generator(this,(function(s){return[2,new Promise((function(s){return __awaiter(a,void 0,void 0,(function(){var a,l,c,u,d,f=this;return __generator(this,(function(p){switch(p.label){case 0:return a=n(),l=OfficeCore.ExternalCodeService.newObject(a),c=++o,[4,t()];case 1:return p.sent()||Office.context.platform===Office.PlatformType.OfficeOnline?(u=function(e){return __awaiter(f,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return e.requestId!=c?[3,3]:[4,l.onExternalCodeServiceResult.remove(u)];case 1:return t.sent(),[4,a.sync()];case 2:return t.sent(),s(e),[2,null];case 3:return[2]}}))}))},[4,l.onExternalCodeServiceResult.add(u)]):[3,3];case 2:return p.sent(),[3,5];case 3:return d=function(e){return __awaiter(f,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return e.requestId!=c?[3,3]:[4,l.onExternalCodeServiceRequestCompleted.remove(d)];case 1:return t.sent(),[4,a.sync()];case 2:return t.sent(),s(e),[2,null];case 3:return[2]}}))}))},[4,l.onExternalCodeServiceRequestCompleted.add(d)];case 4:p.sent(),p.label=5;case 5:return[4,a.sync()];case 6:return p.sent(),l.sendRequestAsync(c,e,r,i),[4,a.sync()];case 7:return p.sent(),[2]}}))}))}))]}))}))}e.executePythonCode=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,i,a=this;return __generator(this,(function(s){if(null==e||""==e)throw new Error("executePythonCode: Invalid argument");return r=t&&t.correlationId?t.correlationId:OSF.OUtil.Guid.generateNewGuid(),i=Date.now(),[2,new Promise((function(t){return __awaiter(a,void 0,void 0,(function(){var a,s,l,c,u=this;return __generator(this,(function(d){switch(d.label){case 0:return(a=n()).requestHeaders["X-Correlation-ID"]=r,s=OfficeCore.ExternalCodeService.newObject(a),l=++o,c=function(e){return __awaiter(u,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return e.requestId!=l?[3,3]:[4,s.onExternalCodeServiceResult.remove(c)];case 1:return n.sent(),[4,a.sync()];case 2:return n.sent(),t(e.result),OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.ExternalCodeServiceCore.ExecutePythonCode",dataFields:[oteljs.makeInt64DataField("Duration",Date.now()-i),oteljs.makeStringDataField("CorrelationId",r)],eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage,diagnosticLevel:oteljs.DiagnosticLevel.NecessaryServiceDataEvent,samplingPolicy:oteljs.SamplingPolicy.CriticalBusinessImpact}}),[2,null];case 3:return[2]}}))}))},[4,s.onExternalCodeServiceResult.add(c)];case 1:return d.sent(),[4,a.sync()];case 2:return d.sent(),s.executePythonCodeAsync2(l,e),[4,a.sync()];case 3:return d.sent(),[2]}}))}))}))]}))}))},e.getRuntimeInfoAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){return[2,new Promise((function(t){return __awaiter(e,void 0,void 0,(function(){var e,r,i,a,s=this;return __generator(this,(function(l){switch(l.label){case 0:return e=n(),r=++o,i=OfficeCore.ExternalCodeService.newObject(e),a=function(n){return __awaiter(s,void 0,void 0,(function(){var o;return __generator(this,(function(s){switch(s.label){case 0:return n.requestId!=r?[3,3]:[4,i.onExternalCodeServiceResult.remove(a)];case 1:return s.sent(),[4,e.sync()];case 2:return s.sent(),o=JSON.parse(n.result),t(o),[2,null];case 3:return[2]}}))}))},[4,i.onExternalCodeServiceResult.add(a)];case 1:return l.sent(),[4,e.sync()];case 2:return l.sent(),i.getRuntimeInfoAsync2(r),[4,e.sync()];case 3:return l.sent(),[2]}}))}))}))]}))}))},e.sendRequestToService=function(e){return __awaiter(this,void 0,void 0,(function(){var n,o,i,a;return __generator(this,(function(s){switch(s.label){case 0:return(n="string"==typeof e.body?e.body:JSON.stringify(e.body))&&"string"==typeof e.body||(n=""),o=Date.now(),[4,r(e.method,e.serverRelativeUrl,n)];case 1:return(i=s.sent())?(a=null,[4,t()]):(OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.ExternalCodeServiceCore.SendRequestToService",dataFields:[oteljs.makeInt64DataField("Duration",Date.now()-o)],eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage}}),[2,{status:400,body:null}]);case 2:return a=s.sent()||Office.context.platform===Office.PlatformType.OfficeOnline?0==i.result.length?null:JSON.parse(i.result):0==i.body.length?null:JSON.parse(i.body),OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.ExternalCodeServiceCore.SendRequestToService",dataFields:[oteljs.makeInt64DataField("Duration",Date.now()-o),oteljs.makeInt64DataField("Status",i.status)],eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage}}),[2,{status:i.status,body:a}]}}))}))}}(e.externalCodeService||(e.externalCodeService={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){!function(e){function t(){var e=new OfficeCore.RequestContext;return"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(e._customData="WacPartition"),e}e.requestUpdate=function(e){var n=t(),o=n.ribbon;function r(e){void 0!==e.controls&&void 0!==e.controls.length&&e.controls.length&&e.controls.filter((function(e){return!!e.id})).forEach((function(e){var t=o.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=o.getTab(e.id);void 0!==e.visible&&null!==e.visible&&t.setVisibility(e.visible),e.groups&&e.groups.length?e.groups.filter((function(e){return!!e.id})).forEach((function(e){r(e)})):r(e)})),n.sync()},e.requestCreateControls=function(e){var n,o=t();return o.ribbon.executeRequestCreate(JSON.stringify(e)),(n=250,new Promise((function(e,t){return setTimeout((function(){return e()}),n)}))).then((function(){return o.sync()}))}}(e.ribbon||(e.ribbon={}))}(Office||(Office={})),function(e){!function(e){e.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()}}(e.contextMenu||(e.contextMenu={}))}(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;!function(e){e.generalException="GeneralException"}(t||(t={}));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 t;!function(t){var n,o,r=OfficeExtension.Utility.isNullOrUndefined;function i(e,t){Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:e,dataFields:t,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage,diagnosticLevel:oteljs.DiagnosticLevel.Optional,samplingPolicy:oteljs.SamplingPolicy.CriticalBusinessImpact}})}function a(e){if(e){var t=e.toUpperCase(),o=n.mappings[t];if(!r(o)&&"function"==typeof o)return o}throw OfficeExtension.Utility.createRuntimeError("invalidOperation","sourceData","ActionProxy._getFunction")}function s(e,t,n,o){var a=OSF._OfficeAppFactory.getHostInfo();if(a&&"web"===a.hostPlatform.toLowerCase())OSF._OfficeAppFactory.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[OSF._OfficeAppFactory.getId(),OSF.AgaveHostAction.ReportAddinSkillResult,{actionCorrelationId:e,resultCode:t,replyMessage:o}]);else{if(r(window.external))throw new OfficeExtension.Error({code:"GenericException",message:"API currently unsupported."});var s=r(OSF.MethodDispId)?OSF.DDA.MethodDispId.dispidAddinSkillActionReply:OSF.MethodDispId.dispidAddinSkillActionReply;window.external.Execute(s,[e,o,t],null)}i("Office.Extensibility.AddinSkill.ExecuteAction",[oteljs.makeStringDataField("CorrelationId",e),oteljs.makeStringDataField("Message",n),oteljs.makeInt64DataField("ResultCode",t)])}function l(e){try{OfficeExtension.Utility.log("ActionProxy._handleMessage"),OfficeExtension.Utility.checkArgumentNull(e,"args");for(var t=e.entries,n=function(e){if(2!==t[e].messageCategory)return"continue";if("string"==typeof t[e].message&&(t[e].message=JSON.parse(t[e].message)),1e3===t[e].messageType){var n=null,o=a(u=t[e].message[0]);if(t[e].message.length>=2){var l=t[e].message[1];l&&(n=function(e){if("string"==typeof e&&"{"===e[0])return!0;return!1}(l)?JSON.parse(l):l)}void 0!==OSF&&OSF.AppTelemetry&&OSF.AppTelemetry.CallOnAppActivatedIfPending&&OSF.AppTelemetry.CallOnAppActivatedIfPending(),o.apply(null,[n])}else if(1001===t[e].messageType){n=null;var u=t[e].message[0],d=t[e].message[1],f=JSON.parse(d);n=f.message;var p=f.correlationId,h=[oteljs.makeStringDataField("CorrelationId",p),oteljs.makeStringDataField("Message","ActionProxy._handleMessage is called")];i("Office.Extensibility.AddinSkill.ExecuteAction",h);var g=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess;o=null;try{o=a(u)}catch(e){g=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultNoActionFunctionMapping,h.push(oteljs.makeStringDataField("Message","ActionProxy._handleMessage failed to get function")),h.push(oteljs.makeInt64DataField("ResultCode",g)),i("Office.Extensibility.AddinSkill.ExecuteAction",h),c(e)}var m=null,y="";if(g==OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess)try{m=o.apply(null,[n])}catch(e){g=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvocationFailed,h.push(oteljs.makeStringDataField("Message","ActionProxy._handleMessage failed to execute function")),h.push(oteljs.makeInt64DataField("ResultCode",g)),i("Office.Extensibility.AddinSkill.ExecuteAction",h),c(e)}if(g==OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess&&r(m)?(g=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultNoResultGenerated,y="No result generated"):g!=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess||"object"==typeof m&&"function"==typeof m.then||(g=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvalidResultGenerated,y="Invalid result generated"),g==OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess)try{m.then((function(e){y="Successfully executed function",r(e)?(e="",g=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultNoResultGenerated,y="No result generated"):"string"!=typeof e&&(e="",g=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvalidResultGenerated,y="Invalid result generated"),s(p,g,y,e)}),(function(e){var t="";g=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvocationFailed,y="Failed to execute function","string"==typeof e?t=e:c(e),s(p,g,y,t)}))}catch(e){g=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvalidResultGenerated,y="Invalid result generated",c(e),s(p,g,y,"")}else try{s(p,g,y,"")}catch(e){c(e)}}else OfficeExtension.Utility.log("ActionProxy._handleMessage unknown message type "+t[e].messageType)},o=0;o<t.length;o++)n(o)}catch(e){throw c(e),e}return OfficeExtension.Utility._createPromiseFromResult(null)}function c(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 u(){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,"",l)}()})).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){}}OfficeExtension.Utility.log("ActionProxy.initOnce"),void 0!==e.actions&&(o=e.actions._association,n=o),"undefined"!=typeof document&&(document.readyState&&"loading"!==document.readyState?(OfficeExtension.Utility.log("ActionProxy.initOnce: document.readyState is not loading state"),u()):document.addEventListener&&document.addEventListener("DOMContentLoaded",(function(){OfficeExtension.Utility.log("ActionProxy.initOnce: DOMContentLoaded event triggered"),u()}))),OfficeExtension.HostBridge.onInited((function(e){!function(e){e.addHostMessageHandler((function(e){3===e.type&&l(e.message)}))}(e)}))}(t||(t={}))}(Office||(Office={})),function(e){!function(e){function t(){var e=new OfficeCore.RequestContext;return"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(e._customData="WacPartition"),e}e.areShortcutsInUse=function(e){return __awaiter(this,void 0,void 0,(function(){var n,o,r,i,a;return __generator(this,(function(s){switch(s.label){case 0:return n=t(),o=OfficeCore.ActionService.newObject(n),r=o.areShortcutsInUse(e),[4,n.sync()];case 1:for(s.sent(),i=[],a=0;a<e.length;a++)i.push({shortcut:e[a],inUse:r.value[a]});return[2,i]}}))}))},e.replaceShortcuts=function(e){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(o){switch(o.label){case 0:return n=t(),OfficeCore.ActionService.newObject(n).replaceShortcuts(e),[4,n.sync()];case 1:return o.sent(),[2]}}))}))},e.getShortcuts=function(){return __awaiter(this,void 0,void 0,(function(){var e,n,o;return __generator(this,(function(r){switch(r.label){case 0:return e=t(),n=OfficeCore.ActionService.newObject(e),o=n.getShortcuts(),[4,e.sync()];case 1:return r.sent(),[2,o.value]}}))}))}}(e.actions||(e.actions={}))}(Office||(Office={})),function(e){var t;!function(e){e[e.AddinInvokeResultNotInstalled=-1]="AddinInvokeResultNotInstalled",e[e.AddinInvokeResultSkillNotFound=-2]="AddinInvokeResultSkillNotFound",e[e.AddinInvokeResultLaunchFailed=-3]="AddinInvokeResultLaunchFailed",e[e.AddinInvokeResultSuccess=0]="AddinInvokeResultSuccess",e[e.AddinInvokeResultInvocationFailed=1]="AddinInvokeResultInvocationFailed",e[e.AddinInvokeResultNoResultGenerated=2]="AddinInvokeResultNoResultGenerated",e[e.AddinInvokeResultInvalidResultGenerated=3]="AddinInvokeResultInvalidResultGenerated",e[e.AddinInvokeResultNoActionFunctionMapping=4]="AddinInvokeResultNoActionFunctionMapping"}(t=e.AddinInvokeResult||(e.AddinInvokeResult={})),function(e){var n={},o=null;function r(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}function i(e){!function(){if(null==o){o=function(e){var t=e.actionCorrelationId,o=(e.replyMessage,e.resultCode,n[t]);return null!=o&&(o.replyMessage=e.replyMessage,o.resultCode=e.resultCode,o.replyPromiseResolver()),null};var e=r();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})),n[e]=t,t}e.InvokeAction=function(e,o,a){return __awaiter(this,void 0,void 0,(function(){var s,l,c,u;return __generator(this,(function(d){switch(d.label){case 0:s=r(),l=OfficeCore.AddinSkillActionService.newObject(s),c=OSF.OUtil.Guid.generateNewGuid(),u=i(c),d.label=1;case 1:return d.trys.push([1,,4,5]),l.invokeAction(e,o,a,c),[4,s.sync()];case 2:return d.sent(),[4,u.replyPromise];case 3:return d.sent(),[3,5];case 4:return function(e){delete n[e]}(c),[7];case 5:if(u.resultCode==t.AddinInvokeResultSuccess){if("string"==typeof u.replyMessage)return[2,u.replyMessage];u.resultCode=t.AddinInvokeResultInvalidResultGenerated}switch(u.resultCode){case t.AddinInvokeResultNotInstalled:throw new OfficeExtension.Error({code:"AddinNotInstalled",message:"Add-in not installed."});case t.AddinInvokeResultSkillNotFound:throw new OfficeExtension.Error({code:"SkillNotFound",message:"Skill not found in the add-in manifest."});case t.AddinInvokeResultLaunchFailed:throw new OfficeExtension.Error({code:"LaunchFailed",message:"Add-in launch failed."});case t.AddinInvokeResultInvocationFailed:throw new OfficeExtension.Error({code:"InvocationFailed",message:"Skill invocation failed."});case t.AddinInvokeResultNoResultGenerated:throw new OfficeExtension.Error({code:"NoResultGenerated",message:"No result generated."});case t.AddinInvokeResultInvalidResultGenerated:throw new OfficeExtension.Error({code:"InvalidResultGenerated",message:"Invalid result generated."});case t.AddinInvokeResultNoActionFunctionMapping:throw new OfficeExtension.Error({code:"NoActionFunctionMapping",message:"No action function mapping."});default:throw new OfficeExtension.Error({code:"UnknownError",message:"Unknown error (code = "+u.resultCode+")."})}return[2]}}))}))}}(e.AddinSkillAction||(e.AddinSkillAction={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){!function(e){function t(e){var t=new OfficeCore.RequestContext;return e&&e.controlId&&(t.requestHeaders[OfficeExtension.Constants.officeControlId]=e.controlId),t._customData="WacPartition",t}e.SendMessage=function(e,n){return __awaiter(this,void 0,void 0,(function(){var o,r;return __generator(this,(function(i){switch(i.label){case 0:return o=void 0!==n?n:e,r=t(void 0!==n?e:void 0),OfficeCore.AugLoopEventService.newObject(r).sendMessage(o),[4,r.sync()];case 1:return i.sent(),[2]}}))}))},e.onHostMessageReceived=function(e,n){return __awaiter(this,void 0,void 0,(function(){var o,r,i,a,s=this;return __generator(this,(function(l){switch(l.label){case 0:return o=void 0!==n?n:e,r=t(void 0!==n?e:void 0),i=OfficeCore.AugLoopEventService.newObject(r),a=function(e){if(o){var t=e.data;o(t)}return null},i.onHostMessageReceived.add(a),[4,i.context.sync()];case 1:return l.sent(),[2,function(){return __awaiter(s,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return i.onHostMessageReceived.remove(a),[4,r.sync()];case 1:return e.sent(),[2]}}))}))}]}}))}))}}(e.AugLoop||(e.AugLoop={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){!function(e){function t(e){return"object"==typeof e&&"string"==typeof e.controlId?e.controlId:void 0}function n(e){var t=new OfficeCore.RequestContext;return e&&(t.requestHeaders[OfficeExtension.Constants.officeControlId]=e),t._customData="SkipUndoRecording",t}var o,r={};e.undo=function(e){return __awaiter(this,void 0,void 0,(function(){var o,r,i;return __generator(this,(function(a){switch(a.label){case 0:return o=n(t(e)),r=OfficeCore.UndoService.newObject(o),i=r.undo(),[4,o.sync()];case 1:return a.sent(),[2,i.value]}}))}))},e.onUndoStackChanged=function(e,o){return __awaiter(this,void 0,void 0,(function(){var r,i,a,s=this;return __generator(this,(function(l){switch(l.label){case 0:return r=o||e,i=n(t(o?e:void 0)),(a=OfficeCore.UndoService.newObject(i)).onUndoStackChanged.add(r),[4,i.sync()];case 1:return l.sent(),[2,function(){return __awaiter(s,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return a.onUndoStackChanged.remove(r),[4,i.sync()];case 1:return e.sent(),[2]}}))}))}]}}))}))},e.startCopilotOperation=function(e){return __awaiter(this,void 0,void 0,(function(){var i,a,s,l,c,u,d,f;return __generator(this,(function(p){switch(p.label){case 0:if(void 0===(i=t(e))){if(void 0!==o)throw new Error("startCopilotOperation is already inprogress")}else if(r[i])throw new Error("startCopilotOperation is already in progress");a=function(){},s=new Promise((function(e){void 0===i?o=e:r[i]=e})),p.label=1;case 1:return p.trys.push([1,4,,5]),l=n(i),c=OfficeCore.UndoService.newObject(l),u=function(){return function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return void 0===e?void 0!==o&&(o(),o=void 0):r[e]&&(r[e](),delete r[e]),[2]}))}))}(i)},a=function(){try{c.onCopilotOperationStarted.remove(u),l.sync()}catch(e){}},c.onCopilotOperationStarted.add(u),[4,l.sync()];case 2:return p.sent(),d=c.startCopilotOperation(""),[4,l.sync()];case 3:return p.sent(),d.value?(void 0!==i&&s.then((function(){a()})),[2,s]):(void 0===i?o=void 0:(a(),delete r[i]),[3,5]);case 4:throw f=p.sent(),void 0===i?o=void 0:(a(),delete r[i]),f;case 5:return[2]}}))}))},e.endCopilotOperation=function(e){return __awaiter(this,void 0,void 0,(function(){var o;return __generator(this,(function(r){switch(r.label){case 0:return o=n(t(e)),OfficeCore.UndoService.newObject(o).endCopilotOperation(""),[4,o.sync()];case 1:return r.sent(),[2]}}))}))}}(e.Undo||(e.Undo={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){var t;(t=e.dialogPage||(e.dialogPage={})).close=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return e=new OfficeCore.RequestContext,OfficeCore.DialogPage.newObject(e).close(),[4,e.sync()];case 1:return t.sent(),[2]}}))}))},t.readyToShow=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return e=new OfficeCore.RequestContext,OfficeCore.DialogPage.newObject(e).readyToShow(),[4,e.sync()];case 1:return t.sent(),[2]}}))}))},t.onShow=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,o;return __generator(this,(function(r){switch(r.label){case 0:return t=new OfficeCore.RequestContext,(n=OfficeCore.DialogPage.newObject(t)).onOnShowEvent.add(e),o=function(){return n.onOnShowEvent.remove(e),null},[4,t.sync()];case 1:return r.sent(),[2,o]}}))}))},t.sendMessageToHost=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return t=new OfficeCore.RequestContext,OfficeCore.DialogPage.newObject(t).sendMessageToHost(e),[4,t.sync()];case 1:return n.sent(),[2]}}))}))}}(Office||(Office={})),function(e){!function(e){function t(e){var t=new OfficeCore.RequestContext;return t._customData="WacPartition",t}e.CollectUserFeedback=function(e,n,o,r){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(a){switch(a.label){case 0:return i=t(),OfficeCore.UserFeedbackService.newObject(i).collectUserFeedback(e,n,o,r),[4,i.sync()];case 1:return a.sent(),[2]}}))}))},e.onUserFeedbackUIDismissed=function(e){return __awaiter(this,void 0,void 0,(function(){var n,o,r,i=this;return __generator(this,(function(a){switch(a.label){case 0:return n=function(t){if(e){var n=t.isFeedbackSent;e(n)}return null},o=t(),(r=OfficeCore.UserFeedbackService.newObject(o)).onUserFeedbackUIDismissed.add(n),[4,r.context.sync()];case 1:return a.sent(),[2,function(){return __awaiter(i,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return r.onUserFeedbackUIDismissed.remove(n),[4,o.sync()];case 1:return e.sent(),[2]}}))}))}]}}))}))},e.CanCollectUserFeedback=function(){return __awaiter(this,void 0,void 0,(function(){var e,n,o;return __generator(this,(function(r){switch(r.label){case 0:return e=t(),n=OfficeCore.UserFeedbackService.newObject(e),o=n.canCollectUserFeedback(),[4,e.sync()];case 1:return r.sent(),[2,o.value]}}))}))},e.onUserFeedbackResponse=function(e){return __awaiter(this,void 0,void 0,(function(){var n,o,r,i=this;return __generator(this,(function(a){switch(a.label){case 0:return n=function(t){if(e){var n=t.responseData;e(n)}return null},o=t(),(r=OfficeCore.UserFeedbackService.newObject(o)).onUserFeedbackResponse.add(n),[4,r.context.sync()];case 1:return a.sent(),[2,function(){return __awaiter(i,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return r.onUserFeedbackResponse.remove(n),[4,o.sync()];case 1:return e.sent(),[2]}}))}))}]}}))}))},e.InvokeDiagnosticsLogsUpload=function(e){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(o){switch(o.label){case 0:return n=t(),OfficeCore.UserFeedbackService.newObject(n).invokeDiagnosticsLogsUpload(e),[4,n.sync()];case 1:return o.sent(),[2]}}))}))},e.GetInitializationData=function(){return __awaiter(this,void 0,void 0,(function(){var e,n,o;return __generator(this,(function(r){switch(r.label){case 0:return e=t(),n=OfficeCore.UserFeedbackService.newObject(e),o=n.getInitializationData(),[4,e.sync()];case 1:return r.sent(),[2,o.value]}}))}))},e.GetHostScreenshot=function(){return __awaiter(this,void 0,void 0,(function(){var e,n,o;return __generator(this,(function(r){switch(r.label){case 0:return e=t(),n=OfficeCore.UserFeedbackService.newObject(e),o=n.getHostScreenshot(),[4,e.sync()];case 1:return r.sent(),[2,o.value]}}))}))},e.CanCollectCopilotFeedback=function(){return __awaiter(this,void 0,void 0,(function(){var e,n,o;return __generator(this,(function(r){switch(r.label){case 0:return e=t(),n=OfficeCore.UserFeedbackService.newObject(e),o=n.canCollectCopilotFeedback(),[4,e.sync()];case 1:return r.sent(),[2,o.value]}}))}))},e.CollectFeedbackEligibility=function(){return __awaiter(this,void 0,void 0,(function(){var e,n,o;return __generator(this,(function(r){switch(r.label){case 0:return e=t(),n=OfficeCore.UserFeedbackService.newObject(e),o=n.collectFeedbackEligibility(),[4,e.sync()];case 1:return r.sent(),[2,o.value]}}))}))},e.CheckFeedbackEligibility=function(e){return __awaiter(this,void 0,void 0,(function(){var n,o,r;return __generator(this,(function(i){switch(i.label){case 0:return n=t(),o=OfficeCore.UserFeedbackService.newObject(n),r=o.checkFeedbackEligibility(e),[4,n.sync()];case 1:return i.sent(),[2,r.value]}}))}))}}(e.UserFeedback||(e.UserFeedback={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){!function(e){var t=function(){};function n(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}function o(e){return JSON.stringify(e instanceof t?{type:"callout",params:e.params}:{type:"custom",props:e})}e.callout=function(e){var n=new t;return n.params=e,n},e.addNotification=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,i,a;return __generator(this,(function(s){switch(s.label){case 0:return r=n(),i=OfficeCore.NotificationService.newObject(r),a=i.addNotification(o(e),function(e){return JSON.stringify(e)}(t)),[4,r.sync()];case 1:return s.sent(),[2,a.value]}}))}))},e.updateNotification=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(i){switch(i.label){case 0:return r=n(),OfficeCore.NotificationService.newObject(r).updateNotification(e,o(t)),[4,r.sync()];case 1:return i.sent(),[2]}}))}))},e.removeNotification=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(o){switch(o.label){case 0:return t=n(),OfficeCore.NotificationService.newObject(t).removeNotification(e),[4,t.sync()];case 1:return o.sent(),[2]}}))}))}}(e.Notification||(e.Notification={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){!function(e){function t(e){var t=new OfficeCore.RequestContext;return e&&e.controlId&&(t.requestHeaders[OfficeExtension.Constants.officeControlId]=e.controlId),t._customData="WacPartition",t}e.getLabel=function(e){return __awaiter(this,void 0,void 0,(function(){var n,o,r;return __generator(this,(function(i){switch(i.label){case 0:return n=t(e),o=OfficeCore.SensitivityService.newObject(n),r=o.getLabel(),[4,n.sync()];case 1:return i.sent(),[2,r.value]}}))}))},e.tryUpgradeLabel=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return __awaiter(this,void 0,void 0,(function(){var n,o,r,i,a;return __generator(this,(function(s){switch(s.label){case 0:if(n=3===e.length,2!==e.length&&3!==e.length)throw new Error("tryUpgradeLabel: Invalid number of parameters ("+e.length+")");return o=n?e[0]:void 0,r=n?e[1]:e[0],i=n?e[2]:e[1],a=t(o),OfficeCore.SensitivityService.newObject(a).tryUpgradeLabel(r,i),[4,a.sync()];case 1:return s.sent(),[2]}}))}))},e.getHighestSensitivityLabel=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return __awaiter(this,void 0,void 0,(function(){var n,o,r,i,a,s;return __generator(this,(function(l){switch(l.label){case 0:if(n=2===e.length,1!==e.length&&2!==e.length)throw new Error("getHighestSensitivityLabel: Invalid number of parameters ("+e.length+")");return o=n?e[0]:void 0,r=n?e[1]:e[0],i=t(o),a=OfficeCore.SensitivityService.newObject(i),s=a.getHighestSensitivityLabel(r),[4,i.sync()];case 1:return l.sent(),[2,s.value]}}))}))},e.getSensitivityResultDetails=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return __awaiter(this,void 0,void 0,(function(){var n,o,r,i,a,s,l;return __generator(this,(function(c){switch(c.label){case 0:if(n=3===e.length,2!==e.length&&3!==e.length)throw new Error("getSensitivityResultDetails: Invalid number of parameters ("+e.length+")");return o=n?e[0]:void 0,r=n?e[1]:e[0],i=n?e[2]:e[1],a=t(o),s=OfficeCore.SensitivityService.newObject(a),l=s.getSensitivityResultDetails(r,i),[4,a.sync()];case 1:return c.sent(),[2,l.value]}}))}))},e.getSensitivityResultDetailsByStringErrorCode=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return __awaiter(this,void 0,void 0,(function(){var n,o,r,i,a,s,l;return __generator(this,(function(c){switch(c.label){case 0:if(n=3===e.length,2!==e.length&&3!==e.length)throw new Error("getSensitivityResultDetails: Invalid number of parameters ("+e.length+")");return o=n?e[0]:void 0,r=n?e[1]:e[0],i=n?e[2]:e[1],a=t(o),s=OfficeCore.SensitivityService.newObject(a),l=s.getSensitivityResultDetailsByStringErrorCode(r,i),[4,a.sync()];case 1:return c.sent(),[2,l.value]}}))}))},e.onLabelChangedEvent=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return __awaiter(this,void 0,void 0,(function(){var n,o,r,i,a,s,l=this;return __generator(this,(function(c){switch(c.label){case 0:if(n=2===e.length,1!==e.length&&2!==e.length)throw new Error("onLabelChangedEvent: Invalid number of parameters ("+e.length+")");return o=n?e[0]:void 0,r=n?e[1]:e[0],i=function(e){if(r){var t=e.previousLabel,n=e.newLabel,o=e.context,i=e.error;r(t,n,o,i)}return null},a=t(o),(s=OfficeCore.SensitivityService.newObject(a)).onLabelChanged.add(i),[4,s.context.sync()];case 1:return c.sent(),[2,function(){return __awaiter(l,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return s.onLabelChanged.remove(i),[4,a.sync()];case 1:return e.sent(),[2]}}))}))}]}}))}))}}(e.Sensitivity||(e.Sensitivity={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){!function(e){function t(e){var t=new OfficeCore.RequestContext;return t._customData="WacPartition",t}e.launchHelpPaneByQuery=function(e){return __awaiter(this,void 0,void 0,(function(){var n,o;return __generator(this,(function(r){switch(r.label){case 0:return n=t(),o=OfficeCore.CopilotService.newObject(n),o.launchHelpPaneByQuery(e),[4,n.sync()];case 1:return r.sent(),[2]}}))}))},e.launchHelpPaneByArticleId=function(e){return __awaiter(this,void 0,void 0,(function(){var n,o;return __generator(this,(function(r){switch(r.label){case 0:return n=t(),o=OfficeCore.CopilotService.newObject(n),o.launchHelpPaneByArticleId(e),[4,n.sync()];case 1:return r.sent(),[2]}}))}))},e.launchHelpPaneByArticleIdString=function(e){return __awaiter(this,void 0,void 0,(function(){var n,o;return __generator(this,(function(r){switch(r.label){case 0:return n=t(),o=OfficeCore.CopilotService.newObject(n),o.launchHelpPaneByArticleIdString(e),[4,n.sync()];case 1:return r.sent(),[2]}}))}))},e.launchTaskPaneByAgentId=function(e){return __awaiter(this,void 0,void 0,(function(){var n,o;return __generator(this,(function(r){switch(r.label){case 0:return n=t(),o=OfficeCore.CopilotService.newObject(n),o.launchTaskPaneByAgentId(e),[4,n.sync()];case 1:return r.sent(),[2]}}))}))},e.getWindowClientWidth=function(){return __awaiter(this,void 0,void 0,(function(){var e,n,o;return __generator(this,(function(r){switch(r.label){case 0:return e=t(),n=OfficeCore.CopilotService.newObject(e),o=n.getWindowClientWidth(),[4,e.sync()];case 1:return r.sent(),[2,o.value]}}))}))}}(e.Copilot||(e.Copilot={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){!function(e){function t(e){var t=new OfficeCore.RequestContext;return e&&e.controlId&&(t.requestHeaders[OfficeExtension.Constants.officeControlId]=e.controlId),t._customData="WacPartition",t}e.execute=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return __awaiter(this,void 0,void 0,(function(){var n,o,r,i,a,s;return __generator(this,(function(l){switch(l.label){case 0:return n=e.length>=2,o=n?e[0]:void 0,r=n?e[1]:e[0],i=t(o),a=OfficeCore.PrivateApiService.newObject(i),s=a.execute(r),[4,i.sync()];case 1:return l.sent(),[2,s.value]}}))}))},e.onPrivateEvent=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return __awaiter(this,void 0,void 0,(function(){var n,o,r,i,a,s,l=this;return __generator(this,(function(c){switch(c.label){case 0:return n=e.length>=2,o=n?e[0]:void 0,r=n?e[1]:e[0],i=function(e){if(r){var t=e.messageData;r(t)}return null},a=t(o),(s=OfficeCore.PrivateApiService.newObject(a)).onOnPrivateEvent.add(i),[4,s.context.sync()];case 1:return c.sent(),[2,function(){return __awaiter(l,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return s.onOnPrivateEvent.remove(i),[4,a.sync()];case 1:return e.sent(),[2]}}))}))}]}}))}))}}(e.PrivateApi||(e.PrivateApi={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){!function(e){var t;function n(e){var t=new OfficeCore.RequestContext;return t._customData="WacPartition",t}!function(e){e.copilotAgentsPage="CopilotAgentsPage"}(t=e.DefaultPageType||(e.DefaultPageType={})),function(e){e.activated="Activated",e.removed="Removed"}(e.CopilotAgentActionType||(e.CopilotAgentActionType={})),e.launchStore=function(e){return __awaiter(this,void 0,void 0,(function(){var o,r,i;return __generator(this,(function(a){switch(a.label){case 0:if(e!==t.copilotAgentsPage)throw OfficeExtension.Utility.createRuntimeError(OfficeExtension.ErrorCodes.invalidArgument,null,null);return o=n(),r=OfficeCore.UnifiedStoreService.newObject(o),e!=t.copilotAgentsPage?[3,2]:(i=r.launchStoreDialogWithCopilotAgentPageShown(),[4,o.sync()]);case 1:return a.sent(),[2,i];case 2:return[2]}}))}))},e.onCopilotAgentEvent=function(e){return __awaiter(this,void 0,void 0,(function(){var t,o,r,i=this;return __generator(this,(function(a){switch(a.label){case 0:return t=function(t){if(e){var n=JSON.parse(t.messageData),o=n.actionType,r=n.titleId;e({actionType:o,titleId:r})}return null},o=n(),(r=OfficeCore.UnifiedStoreService.newObject(o)).onCopilotAgentEvent.add(t),[4,r.context.sync()];case 1:return a.sent(),[2,function(){return __awaiter(i,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return r.onCopilotAgentEvent.remove(t),[4,o.sync()];case 1:return e.sent(),[2]}}))}))}]}}))}))}}(e.UnifiedStore||(e.UnifiedStore={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){!function(e){function t(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}e.hide=function(e){return __awaiter(this,void 0,void 0,(function(){var n,o;return __generator(this,(function(r){switch(r.label){case 0:return n=t(),o=OfficeCore.BusinessBarService.newObject(n),o.hide(e),[4,n.sync()];case 1:return r.sent(),[2]}}))}))},e.show=function(e,n){return __awaiter(this,void 0,void 0,(function(){var o;return __generator(this,(function(r){switch(r.label){case 0:return o=t(),OfficeCore.BusinessBarService.newObject(o).show(e,n),[4,o.sync()];case 1:return r.sent(),[2]}}))}))}}(e.BusinessBar||(e.BusinessBar={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){!function(e){e.launchSimpleDialog=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,o;return __generator(this,(function(r){switch(r.label){case 0:return t=function(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}(),n=OfficeCore.ShowSimpleDialog.newObject(t),o=n.launchSimpleDialog(e.title,e.description,e.telemetryid,e.category,e.hasButton,e.buttonLabel,e.hasCheckbox,e.checkboxLabel),[4,t.sync()];case 1:return r.sent(),[2,o.value]}}))}))}}(e.SimpleDialog||(e.SimpleDialog={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){!function(e){e.execute=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n,o,r;return __generator(this,(function(i){switch(i.label){case 0:return n=function(e){var t=new OfficeCore.RequestContext;return t._customData="WacPartition",t}(),o=OfficeCore.DispatchApiService.newObject(n),r=o.execute(e,t),[4,n.sync()];case 1:return i.sent(),[2,r.value]}}))}))}}(e.DispatchApi||(e.DispatchApi={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){!function(e){e.camera="camera",e.microphone="microphone",e.geolocation="geolocation"}(e.DevicePermissionType||(e.DevicePermissionType={})),function(e){e.requestPermissions=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,o;return __generator(this,(function(r){switch(r.label){case 0:return t=function(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}(),n=OfficeCore.DevicePermissionService.newObject(t),o=n.requestPermissions(e),[4,t.sync()];case 1:return r.sent(),[2,o.value]}}))}))}}(e.devicePermission||(e.devicePermission={}))}(Office||(Office={})),function(e){!function(e){e.getofficethemedataforvisualsurface=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,o;return __generator(this,(function(r){switch(r.label){case 0:return t=function(e){var t=new OfficeCore.RequestContext;return t._customData="WacPartition",t}(),n=OfficeCore.ThemeService.newObject(t),o=n.getOfficeThemeDataForVisualSurface(e),[4,t.sync()];case 1:return r.sent(),[2,JSON.parse(o.value)]}}))}))}}(e.ThemeService||(e.ThemeService={}))}(OfficeFirstParty||(OfficeFirstParty={})),function(e){var t=function(){function t(e){this.m_activeView=e}return Object.defineProperty(t.prototype,"type",{get:function(){return e.EventType.ActiveViewChanged},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeView",{get:function(){return this.m_activeView.activeView},enumerable:!0,configurable:!0}),t}();e.ActiveViewChangedEventArgs=t}(OSF||(OSF={})),function(e){var t=function(){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}return t.prototype.verifyArguments=function(t,n){for(var o in t){var r=t[o],i=n[o];if(r.enum)switch(typeof i){case"string":if(e.OUtil.listContainsValue(r.enum,i))break;case"undefined":throw 5007;default:throw this.getInvalidParameterString()}if(r.types&&!e.OUtil.listContainsValue(r.types,typeof i))throw this.getInvalidParameterString()}},t.prototype.extractRequiredArguments=function(t,n,o){if(t.length<this._requiredCount)throw e.Utility.createParameterException(Strings.OfficeOM.L_MissingRequiredArguments);var r,i=[];for(r=0;r<this._requiredCount;r++)i.push(t[r]);this.verifyArguments(this._requiredParameters,i);var a={};for(r=0;r<this._requiredCount;r++){var s=this._requiredParameters[r],l=i[r];if(s.verify)if(!s.verify(l,n,o))throw this.getInvalidParameterString();a[s.name]=l}return a},t.prototype.fillOptions=function(t,n,o,r){for(var i in t=t||{},this._supportedOptions)if(!e.OUtil.listContainsKey(t,i)){var a=void 0,s=this._supportedOptions[i];s.calculate&&n&&(a=s.calculate(n,o,r)),a||void 0===s.defaultValue||(a=s.defaultValue),t[i]=a}return t},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 t=this;e.OUtil.delayExecutionAndCache((function(){return e.OUtil.formatString(Strings.OfficeOM.L_InvalidParameters,t._displayName)}))},t}();e.ApiMethodCall=t}(OSF||(OSF={})),function(e){var t=function(){function t(t,n,o,r,i,a,s){this._requiredParameters=t,this._supportedOptions=n,this._privateStateCallbacks=o,this._onSucceeded=r,this._onFailed=i,this._displayName=s,this._checkCallArgs=a,this._requiredCount=t.length,this._apiMethods=new e.ApiMethodCall(t,n,o,a,s)}return 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(t,n,o,r){return 0==t?this._onSucceeded?this._onSucceeded(n,o,r):n:this._onFailed?this._onFailed(t,n):e.DDA.ErrorCodeManager.getErrorArgs(t)},t.prototype.getCallArgs=function(t){for(var n,o,r=t.length-1;r>=this._requiredCount;r--){var i=t[r];switch(typeof i){case"object":n=i;break;case"function":o=i}}return n=n||{},o&&(n[e.ParameterNames.Callback]=o),n},t.prototype.extractOptions=function(t,n,o,r){if(t.length>this._requiredCount+2)throw e.Utility.createParameterException(Strings.OfficeOM.L_TooManyArguments);for(var i,a,s=t.length-1;s>=this._requiredCount;s--){var l=t[s];switch(typeof l){case"object":if(i)throw e.Utility.createParameterException(Strings.OfficeOM.L_TooManyOptionalObjects);i=l;break;case"function":if(a)throw e.Utility.createParameterException(Strings.OfficeOM.L_TooManyOptionalFunction);a=l;break;default:throw e.Utility.createArgumentException(Strings.OfficeOM.L_InValidOptionalArgument)}}if(i=this._apiMethods.fillOptions(i,n,o,r),a){if(i[e.ParameterNames.Callback])throw Strings.OfficeOM.L_RedundantCallbackSpecification;i[e.ParameterNames.Callback]=a}return this._apiMethods.verifyArguments(this._supportedOptions,i),i},t}();e.AsyncMethodCall=t}(OSF||(OSF={})),function(e){!function(t){var n={};t.define=function(t){var o,r,i;n[t.method]=(r=(o=t).supportedOptions?e.OUtil.createObject(o.supportedOptions):[],i=o.privateStateCallbacks?e.OUtil.createObject(o.privateStateCallbacks):[],new e.AsyncMethodCall(o.requiredArguments||[],r,i,o.onSucceeded,o.onFailed,o.checkCallArgs,o.method))},t.get=function(e){return n[e]}}(e.AsyncMethodCalls||(e.AsyncMethodCalls={}))}(OSF||(OSF={})),function(e){e.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"}}(OSF||(OSF={})),function(e){!function(e){e.Subset="subset",e.BindingProperties="BindingProperties"}(e.PropertyDescriptors||(e.PropertyDescriptors={}));var t=function(){function t(e,t){this.m_bindingInstance=e,this.m_subset=t}return Object.defineProperty(t.prototype,"startRow",{get:function(){return this.m_subset.startRow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startColumn",{get:function(){return this.m_subset.startColumn},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.m_subset.rowCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnCount",{get:function(){return this.m_subset.columnCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return e.EventType.BindingSelectionChanged},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"binding",{get:function(){return this.m_bindingInstance},enumerable:!0,configurable:!0}),t}();e.BindingSelectionChangedEventArgs=t;var n=function(){function t(e){this.m_bindingInstance=e}return Object.defineProperty(t.prototype,"type",{get:function(){return e.EventType.BindingDataChanged},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"binding",{get:function(){return this.m_bindingInstance},enumerable:!0,configurable:!0}),t}();e.BindingDataChangedEventArgs=n}(OSF||(OSF={})),function(e){!function(e){e.DataPartProperties="DataPartProperties",e.DataNodeProperties="DataNodeProperties"}(e.PropertyDescriptors||(e.PropertyDescriptors={})),function(e){!function(e){!function(e){e.OldNode="OldNode",e.NewNode="NewNode",e.NextSiblingNode="NextSiblingNode",e.InUndoRedo="InUndoRedo"}(e.DataNodeEventProperties||(e.DataNodeEventProperties={}))}(e.Customxml||(e.Customxml={}))}(e.Marshaling||(e.Marshaling={})),function(e){e.DataNodeInsertedEvent="DataNodeInsertedEvent",e.DataNodeReplacedEvent="DataNodeReplacedEvent",e.DataNodeDeletedEvent="DataNodeDeletedEvent"}(e.EventDescriptors||(e.EventDescriptors={})),function(e){e.OldNode="OldNode",e.NewNode="NewNode",e.NextSiblingNode="NextSiblingNode",e.InUndoRedo="InUndoRedo"}(e.DataNodeEventProperties||(e.DataNodeEventProperties={}));var t=function(){function t(e,t){this.m_newNode=e,this.m_inUndoRedo=t}return Object.defineProperty(t.prototype,"type",{get:function(){return e.EventType.DataNodeInserted},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"newNode",{get:function(){return this.m_newNode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inUndoRedo",{get:function(){return this.m_inUndoRedo},enumerable:!0,configurable:!0}),t}();e.NodeInsertedEventArgs=t;var n=function(){function t(e,t,n){this.m_oldNode=e,this.m_newNode=t,this.m_inUndoRedo=n}return Object.defineProperty(t.prototype,"type",{get:function(){return e.EventType.DataNodeReplaced},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"oldNode",{get:function(){return this.m_oldNode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"newNode",{get:function(){return this.m_newNode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inUndoRedo",{get:function(){return this.m_inUndoRedo},enumerable:!0,configurable:!0}),t}();e.NodeReplacedEventArgs=n;var o=function(){function t(e,t,n){this.m_oldNode=e,this.m_oldNextSibling=t,this.m_inUndoRedo=n}return Object.defineProperty(t.prototype,"type",{get:function(){return e.EventType.DataNodeDeleted},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"oldNode",{get:function(){return this.m_oldNode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"oldNextSibling",{get:function(){return this.m_oldNextSibling},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inUndoRedo",{get:function(){return this.m_inUndoRedo},enumerable:!0,configurable:!0}),t}();e.NodeDeletedEventArgs=o}(OSF||(OSF={})),function(e){var t=function(t){0==t[e.PropertyDescriptors.MessageType]?e.OUtil.defineEnumerableProperties(this,{type:{value:e.EventType.DialogMessageReceived},message:{value:t[e.PropertyDescriptors.MessageContent]},origin:{value:t[e.PropertyDescriptors.MessageOrigin]}}):e.OUtil.defineEnumerableProperties(this,{type:{value:e.EventType.DialogEventReceived},error:{value:t[e.PropertyDescriptors.MessageType]}})};e.DialogEventArgs=t,function(e){e.MessageType="messageType",e.MessageContent="messageContent",e.MessageOrigin="messageOrigin"}(e.PropertyDescriptors||(e.PropertyDescriptors={}))}(OSF||(OSF={})),function(e){var t=function(){function t(e){this.m_docInstance=e}return Object.defineProperty(t.prototype,"type",{get:function(){return e.EventType.DocumentSelectionChanged},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"document",{get:function(){return this.m_docInstance},enumerable:!0,configurable:!0}),t}();e.DocumentSelectionChangedEventArgs=t}(OSF||(OSF={})),function(e){var t=function(t){e.OUtil.defineEnumerableProperties(this,{type:{value:e.EventType.DialogParentMessageReceived},message:{value:t[e.PropertyDescriptors.MessageContent]},origin:{value:t[e.PropertyDescriptors.MessageOrigin]}})};e.DialogParentEventArgs=t}(OSF||(OSF={})),function(e){e.DialogShownStatus={hasDialogShown:!1,isWindowDialog:!1},function(t){var n;function o(t){return t==e.EventDispId.dispidObjectDeletedEvent||t==e.EventDispId.dispidObjectSelectionChangedEvent||t==e.EventDispId.dispidObjectDataChangedEvent||t==e.EventDispId.dispidContentControlAddedEvent}function r(t,n,o,r){if("number"!=typeof t)throw t;r||(r=n.getCallArgs(o)),s(r,t,e.DDA.ErrorCodeManager.getErrorArgs(t))}function i(t){return(e._OfficeAppFactory.getHostInfo().hostPlatform==e.HostInfoPlatform.web?e.WACDelegate:e.SafeArrayDelegate)[t]}function a(){return n||function(){n={};var t={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 o in t)e.AsyncMethods[o]&&(n[e.AsyncMethods[o]]=t[o]);var r={MessageParent:144,SendMessage:145};for(var o in r)e.SyncMethods[o]&&(n[e.SyncMethods[o]]=r[o]);var i={SettingsChanged:e.EventDispId.dispidSettingsChangedEvent,DocumentSelectionChanged:e.EventDispId.dispidDocumentSelectionChangedEvent,BindingSelectionChanged:e.EventDispId.dispidBindingSelectionChangedEvent,BindingDataChanged:e.EventDispId.dispidBindingDataChangedEvent,ActiveViewChanged:e.EventDispId.dispidActiveViewChangedEvent,OfficeThemeChanged:e.EventDispId.dispidOfficeThemeChangedEvent,DocumentThemeChanged:e.EventDispId.dispidDocumentThemeChangedEvent,AppCommandInvoked:e.EventDispId.dispidAppCommandInvokedEvent,DialogMessageReceived:e.EventDispId.dispidDialogMessageReceivedEvent,DialogParentMessageReceived:e.EventDispId.dispidDialogParentMessageReceivedEvent,ObjectDeleted:e.EventDispId.dispidObjectDeletedEvent,ObjectSelectionChanged:e.EventDispId.dispidObjectSelectionChangedEvent,ObjectDataChanged:e.EventDispId.dispidObjectDataChangedEvent,ContentControlAdded:e.EventDispId.dispidContentControlAddedEvent,LiveShareStateChanged:e.EventDispId.dispidLiveShareStateChangedEvent,RichApiMessage:e.EventDispId.dispidRichApiMessageEvent,DataNodeInserted:e.EventDispId.dispidDataNodeAddedEvent,DataNodeReplaced:e.EventDispId.dispidDataNodeReplacedEvent,DataNodeDeleted:e.EventDispId.dispidDataNodeDeletedEvent};for(var a in i)e.EventType[a]&&(n[e.EventType[a]]=i[a])}(),n}function s(t,n,o){var r=t[e.ParameterNames.Callback];if(r){var i,a={};a[e.DDA.AsyncResultEnum.Properties.Context]=t[e.ParameterNames.AsyncContext],0==n?a[e.DDA.AsyncResultEnum.Properties.Value]=o:(i={},o=o||e.DDA.ErrorCodeManager.getErrorArgs(5001),i[e.DDA.AsyncResultEnum.ErrorProperties.Code]=n||5001,i[e.DDA.AsyncResultEnum.ErrorProperties.Name]=o.name||o,i[e.DDA.AsyncResultEnum.ErrorProperties.Message]=o.message||o),r(new e.DDA.AsyncResult(a,i))}}t.InvokeMethod=function(t,n,o,l){var c;try{var u=e.AsyncMethodCalls.get(t);c=u.verifyAndExtractCall(n,o,l);var d=a()[t],f=i("executeAsync"),p=null;if(window.Excel&&window.Office.context.requirements.isSetSupported("RedirectV1Api")&&(window.Excel._RedirectV1APIs=!0),window.Excel&&window.Excel._RedirectV1APIs&&(p=window.Excel._V1APIMap[t])){var h=e.OUtil.shallowCopy(c);delete h[e.ParameterNames.AsyncContext],p.preprocess&&(h=p.preprocess(h));var g=new window.Excel.RequestContext,m=p.call(g,h);g.sync().then((function(){var t=m.value,n=t.status;delete t.status,delete t["@odata.type"],p.postprocess&&(t=p.postprocess(t,h)),0!=n&&(t=e.DDA.ErrorCodeManager.getErrorArgs(n)),s(c,n,t)})).catch((function(e){s(c,13991,null)}))}else{var y;y=e.HostParameterMap.toHost(d,c);var v=(new Date).getTime();f({dispId:d,hostCallArgs:y,onCalling:function(){},onReceiving:function(){},onComplete:function(t,n){var r;r=0==t?e.HostParameterMap.fromHost(d,n):n;var i=u.processResponse(t,r,o,c);s(c,t,i),e.AppTelemetry&&e.AppTelemetry.onMethodDone(d,y,Math.abs((new Date).getTime()-v),t)}})}}catch(e){r(e,u,n,c)}},t.AddEventHandler=function(t,n,l,c){var u,d,f,p=!1;function h(t){var o;0==t&&((p?n.addObjectEventHandler(d,u[e.ParameterNames.Id],f):n.addEventHandler(d,f))||(t=13991));0!=t&&(o=e.DDA.ErrorCodeManager.getErrorArgs(t)),s(u,t,o)}try{var g=e.AsyncMethodCalls.get(e.AsyncMethods.AddHandlerAsync);if(u=g.verifyAndExtractCall(t,l,n),d=u[e.ParameterNames.EventType],f=u[e.ParameterNames.Handler],c)return void h(0);var m=a()[d],y=(p=o(m))?u[e.ParameterNames.Id]:l.id||"";if(0==(p?n.getObjectEventHandlerCount(d,y):n.getEventHandlerCount(d)))i("registerEventAsync")({eventType:d,dispId:m,targetId:y,onCalling:function(){},onReceiving:function(){},onComplete:h,onEvent:function(t){var o=e.HostParameterMap.fromHost(m,t);p?n.fireObjectEvent(y,e.manufactureEventArgs(d,y,o)):n.fireEvent(e.manufactureEventArgs(d,l,o))}});else h(0)}catch(e){r(e,g,t,u)}},t.RemoveEventHandler=function(t,n,l){var c,u,d,f=!1;function p(t){var n;0!=t&&(n=e.DDA.ErrorCodeManager.getErrorArgs(t)),s(c,t,n)}try{var h=e.AsyncMethodCalls.get(e.AsyncMethods.RemoveHandlerAsync);u=(c=h.verifyAndExtractCall(t,l,n))[e.ParameterNames.EventType],d=c[e.ParameterNames.Handler];var g,m,y=a()[u],v=(f=o(y))?c[e.ParameterNames.Id]:l.id||"";null===d?(m=f?n.clearObjectEventHandlers(u,v):n.clearEventHandlers(u),g=0):g=(m=f?n.removeObjectEventHandler(u,v,d):n.removeEventHandler(u,d))?0:5003;var b=f?n.getObjectEventHandlerCount(u,v):n.getEventHandlerCount(u);if(m&&0==b)i("unregisterEventAsync")({eventType:u,dispId:y,targetId:v,onCalling:function(){},onReceiving:function(){},onComplete:p});else p(g)}catch(e){r(e,h,t,c)}},t.OpenDialog=function(t,n,o){var l,c,u=e.EventType.DialogMessageReceived,d=e.EventType.DialogEventReceived;function f(t){if(0!=t)i=e.DDA.ErrorCodeManager.getErrorArgs(t);else{var r={};r.id=c,r.data=n;var i=p.processResponse(t,r,o,l);e.DialogShownStatus.hasDialogShown=!0,n.clearEventHandlers(u),n.clearEventHandlers(d)}s(l,t,i)}try{if(null!=u&&null!=d||f(5e3),null==e.AsyncMethods.DisplayDialogAsync)return void f(5001);var p=e.AsyncMethodCalls.get(e.AsyncMethods.DisplayDialogAsync);l=p.verifyAndExtractCall(t,o,n);var h=a()[u],g=i("openDialog");c=JSON.stringify(l),e.DialogShownStatus.hasDialogShown||(n.clearQueuedEvent(u),n.clearQueuedEvent(d),n.clearQueuedEvent(e.EventType.DialogParentMessageReceived)),g({eventType:u,dispId:h,targetId:c,onCalling:function(){},onReceiving:function(){},onComplete:f,onEvent:function(t){var r=e.HostParameterMap.fromHost(h,t),i=e.manufactureEventArgs(u,o,r);if(i.type==d){e.DDA.ErrorCodeManager.getErrorArgs(i.error);var a={};a.code=status||5001,i.error=new e.DDA.Error(a[e.DDA.AsyncResultEnum.ErrorProperties.Name],a[e.DDA.AsyncResultEnum.ErrorProperties.Message],a[e.DDA.AsyncResultEnum.ErrorProperties.Code])}n.fireOrQueueEvent(i),12006==r.messageType&&(n.clearEventHandlers(u),n.clearEventHandlers(d),n.clearEventHandlers(e.EventType.DialogParentMessageReceived),e.DialogShownStatus.hasDialogShown=!1)}})}catch(e){r(e,p,t,l)}},t.CloseDialog=function(t,n,o,s){var l,c,u;try{var d=e.AsyncMethodCalls.get(e.AsyncMethods.CloseAsync);l=d.verifyAndExtractCall(t,s,o),c=e.EventType.DialogMessageReceived,u=e.EventType.DialogEventReceived,o.clearEventHandlers(c),o.clearEventHandlers(u);var f=a()[c];i("closeDialog")({eventType:c,dispId:f,targetId:n,onCalling:function(){},onReceiving:function(){},onComplete:function(t){t,e.DialogShownStatus.hasDialogShown=!1}})}catch(e){r(e,d,t,l)}},t.MessageParent=function(t,n){var o=e.SyncMethodCalls.get(e.SyncMethods.MessageParent).verifyAndExtractCall(t,n,{});return i("messageParent")({dispId:a()[e.SyncMethods.MessageParent],hostCallArgs:o,onCalling:function(){},onReceiving:function(){}})},t.SendMessage=function(t,n,o){var r=e.SyncMethodCalls.get(e.SyncMethods.SendMessage).verifyAndExtractCall(t,o,{});return i("sendMessage")({dispId:a()[e.SyncMethods.SendMessage],hostCallArgs:r,onCalling:function(){},onReceiving:function(){}})},t.addAsyncMethods=function(t,n,o){for(var r in n){var i=n[r];t[i]||e.OUtil.defineEnumerableProperty(t,i,{value:function(n){return function(){var r=e.DispIdHost.InvokeMethod;r(n,arguments,t,o)}}(i)})}},t.addEventSupport=function(t,n,o){var r=e.AsyncMethods.AddHandlerAsync,i=e.AsyncMethods.RemoveHandlerAsync;t[r]||e.OUtil.defineEnumerableProperty(t,r,{value:function(){var r=e.DispIdHost.AddEventHandler;r(arguments,n,t,o)}}),t[i]||e.OUtil.defineEnumerableProperty(t,i,{value:function(){var o=e.DispIdHost.RemoveEventHandler;o(arguments,n,t)}})},t.issueAsyncResult=s}(e.DispIdHost||(e.DispIdHost={}))}(OSF||(OSF={})),function(e){e.manufactureEventArgs=function(t,n,o){var r;switch(t){case e.EventType.DocumentSelectionChanged:r=new e.DocumentSelectionChangedEventArgs(n);break;case e.EventType.BindingSelectionChanged:r=new e.BindingSelectionChangedEventArgs(e.manufactureBinding(o,n.document),o[e.PropertyDescriptors.Subset]);break;case e.EventType.BindingDataChanged:r=new e.BindingDataChangedEventArgs(e.manufactureBinding(o,n.document));break;case e.EventType.SettingsChanged:r=new e.SettingsChangedEventArgs(n);break;case e.EventType.ActiveViewChanged:r=new e.ActiveViewChangedEventArgs(o);break;case e.EventType.LiveShareStateChanged:r=new e.LiveShareStateChangedEventArgs(o);break;case e.EventType.OfficeThemeChanged:r=new e.DDA.Theming.OfficeThemeChangedEventArgs(o);break;case e.EventType.DocumentThemeChanged:r=new e.DDA.Theming.DocumentThemeChangedEventArgs(o);break;case e.EventType.DataNodeInserted:r=new e.NodeInsertedEventArgs(e.manufactureDataNode(o[e.DataNodeEventProperties.NewNode]),o[e.DataNodeEventProperties.InUndoRedo]);break;case e.EventType.DataNodeReplaced:r=new e.NodeReplacedEventArgs(e.manufactureDataNode(o[e.DataNodeEventProperties.OldNode]),e.manufactureDataNode(o[e.DataNodeEventProperties.NewNode]),o[e.DataNodeEventProperties.InUndoRedo]);break;case e.EventType.DataNodeDeleted:r=new e.NodeDeletedEventArgs(e.manufactureDataNode(o[e.DataNodeEventProperties.OldNode]),e.manufactureDataNode(o[e.DataNodeEventProperties.NextSiblingNode]),o[e.DataNodeEventProperties.InUndoRedo]);break;case e.EventType.DialogMessageReceived:r=new e.DialogEventArgs(o);break;case e.EventType.DialogParentMessageReceived:r=new e.DialogParentEventArgs(o)}return r}}(OSF||(OSF={})),function(e){var t="toHost",n="fromHost";!function(o){var r;o.self="self",o.dynamicTypes={},o.dynamicTypes[e.ParameterNames.Data]={toHost:function(t){if(null!=t&&void 0!==t.rows){var n={};n[e.TableDataProperties.TableRows]=t.rows,n[e.TableDataProperties.TableHeaders]=t.headers,t=n}return t},fromHost:function(e){return e}},o.dynamicTypes.sampleData=o.dynamicTypes.data;var i={};function a(e,t){var n,r;if(t.map)for(var a in r={},n=t.map){var s=n[a];s==o.self&&(s=a),r[s]=a}else n=t.toHost,r=t.fromHost;var l=i[e];if(l){var c=l.toHost;for(var u in c)n[u]=c[u];for(var d in c=l.fromHost)r[d]=c[d]}else l=i[e]={};l.toHost=n,l.fromHost=r}function s(e){u().addComplexType(e)}function l(t,r){var a=t?{}:void 0;for(var s in t){var c,d=t[s];if(e.ListType.isListType(s))for(var f in c=[],d)c.push(l(d[f],r));else if(e.OUtil.listContainsKey(o.dynamicTypes,s))c=o.dynamicTypes[s][r](d);else if(r==n&&u().preserveNesting(s))c=l(d,r);else{var p=i[s];if(p){var h=p[r];h&&void 0===(c=h[d])&&(c=d)}else c=d}a[s]=c}return a}function c(t,n,r){var a,s=i[t][r];if("toHost"==r)a=function e(t,n){var r;for(var a in n){var s;if(null!=(s=u().isComplexType(a)?e(t,i[a].toHost):t[a])){r||(r={});var l=n[a];l==o.self&&(l=a),r[l]=u().pack(a,s)}}return r}(l(n,r),s);else if("fromHost"==r){a=l(function t(n,r,a){for(var s in a||(a={}),r){var l,c,d=r[s];if(d==o.self)l=n;else{if("sourceData"==d){a[s]=n.toArray();continue}l=n[d]}if(null==l)a[s]=void 0;else if(l=u().unpack(s,l),u().isComplexType(s))c=i[s].fromHost,u().preserveNesting(s)?a[s]=t(l,c):t(l,c,a);else if(e.ListType.isListType(s)){(c={})[e.ListType.getDescriptor(s)]=o.self;var f=new Array(l.length);for(var p in l)f[p]=t(l[p],c);a[s]=f}else a[s]=l}return a}(n,s),r)}return a}function u(){if(!r){var t=e._OfficeAppFactory.getHostInfo();r=t.hostPlatform==e.HostInfoPlatform.web?new e.WebSpecialProcessor:new e.SafeArraySpecialProcessor}return r}function d(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}o.define=function(e){var t={},n=d(e.toHost);e.invertible?t.map=n:e.canonical?t.toHost=t.fromHost=n:(t.toHost=n,t.fromHost=d(e.fromHost)),a(e.type,t),e.isComplexType&&s(e.type)},o.toHost=function(e,n){return c(e,n,t)},o.fromHost=function(e,t){return c(e,t,n)},o.addMapping=a,o.addComplexType=s,o.getDynamicType=function(e){return u().getDynamicType(e)},o.setDynamicType=function(e,t){u().setDynamicType(e,t)},o.doMapValues=function(e,t){return l(e,t)}}(e.HostParameterMap||(e.HostParameterMap={}))}(OSF||(OSF={})),function(e){!function(t){var n={};t.setListType=function(e,t){n[e]=t},t.isListType=function(t){return e.OUtil.listContainsKey(n,t)},t.getDescriptor=function(e){return n[e]}}(e.ListType||(e.ListType={}))}(OSF||(OSF={})),function(e){var t=function(){function t(e){this.m_liveShareStateInstance=e}return Object.defineProperty(t.prototype,"type",{get:function(){return e.EventType.LiveShareStateChanged},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"liveShareState",{get:function(){return this.m_liveShareStateInstance},enumerable:!0,configurable:!0}),t}();e.LiveShareStateChangedEventArgs=t}(OSF||(OSF={})),function(e){!function(e){e.ActiveViewChanged="activeViewChanged",e.DialogMessageReceived="dialogMessageReceived",e.DialogParentMessageReceived="dialogParentMessageReceived",e.DialogParentEventReceived="dialogParentEventReceived",e.DialogEventReceived="dialogEventReceived",e.BindingDataChanged="bindingDataChanged",e.BindingSelectionChanged="bindingSelectionChanged",e.OfficeThemeChanged="officeThemeChanged",e.DocumentThemeChanged="documentThemeChanged",e.DataNodeDeleted="nodeDeleted",e.DataNodeInserted="nodeInserted",e.DataNodeReplaced="nodeReplaced",e.DocumentSelectionChanged="documentSelectionChanged",e.LiveShareStateChanged="liveShareStateChanged",e.NodeDeleted="nodeDeleted",e.NodeInserted="nodeInserted",e.NodeReplaced="nodeReplaced",e.SettingsChanged="settingsChanged"}(e.EventType||(e.EventType={}))}(Office||(Office={})),function(e){!function(e){e.TableRows="TableRows",e.TableHeaders="TableHeaders"}(e.TableDataProperties||(e.TableDataProperties={}))}(OSF||(OSF={})),function(e){!function(t){var n,o,r;function i(){try{var e=window.navigator.userAgent;return e.indexOf("MSIE ")>-1||e.indexOf("Trident/")>-1||e.indexOf("Edge/")>-1}catch(e){return c("Error happens in isInternetExplorer.",e),!1}}function a(e){if("undefined"!=typeof JSON)try{return JSON.stringify(e)}catch(e){}return""}!function(e){e.ButtonBorderColor="buttonBorderColor",e.ButtonBackgroundColor="buttonBackgroundColor"}(t.HostThemeButtonStyleKeys||(t.HostThemeButtonStyleKeys={})),function(e){e.HostButtonBorderColor="#86bfa0",e.HostButtonBackgroundColor="#d3f0e0"}(n||(n={})),function(e){e.HostButtonBorderColor="#a3bde3",e.HostButtonBackgroundColor="#d5e1f2"}(o||(o={})),function(e){e.HostButtonBorderColor="#f5ba9d",e.HostButtonBackgroundColor="#fcf0ed"}(r||(r={})),t.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},t.defineEnumerableProperties=function(e,t){return function(e,t,n){for(var o in t=t||{})l(e,o,t[o],n);return e}(e,t,["enumerable"])},t.defineEnumerableProperty=function(e,t,n){return l(e,t,n,["enumerable"])},t.listContainsKey=function(e,t){for(var n in e)if(t==n)return!0;return!1},t.augmentList=function(e,t){var n=e.push?function(t,n){e.push(n)}:function(t,n){e[t]=n};for(var o in t)n(o,t[o])},t.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},t.listContainsValue=function(e,t){for(var n in e)if(t==e[n])return!0;return!1},t.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(t.indexOf(e[n])>-1)return i();return!1}catch(e){return c("Error happens in shouldUseLocalStorageToPassMessage.",e),!1}},t.isInternetExplorer=i,t.serializeObjectToString=a,t.formatString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e,o=n[0];return o.replace(/{(\d+)}/gm,(function(e,t){var o=parseInt(t,10)+1;return void 0===n[o]?"{"+t+"}":n[o]}))},t.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 s.length>1?n=i+"&_host_Info="+t:s.length>0&&(n=i+"?_host_Info="+t),a?[n,o,a].join(""):n},t.getHostnamePortionForLogging=function(e){var t=e.split("."),n=t.length;return n>=2?t[n-2]+"."+t[n-1]:1==n?t[0]:void 0},t.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},t.getXdmEventName=function(t,n){return n==e.EventType.BindingSelectionChanged||n==e.EventType.BindingDataChanged||n==e.EventType.DataNodeDeleted||n==e.EventType.DataNodeInserted||n==e.EventType.DataNodeReplaced?t+"_"+n:n},t.getCommonUI=function(){switch(Office.context.host){case Office.HostType.Excel:return n;case Office.HostType.Word:return o;case Office.HostType.PowerPoint:return r}return null},t.getDomainForUrl=function(e){if(!e)return null;var t=document.createElement("a");return t.href=e,t.protocol+"//"+t.host},t.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 s=-1;function l(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 c(t,n){e.Utility.trace(t+" Exception details: "+a(n))}t.getUniqueId=function(){return(s+=1).toString()}}(e.OUtil||(e.OUtil={}))}(OSF||(OSF={})),function(e){!function(e){e.BindingType="bindingType",e.CoercionType="coercionType",e.ValueFormat="valueFormat",e.FilterType="filterType",e.Columns="columns",e.SampleData="sampleData",e.GoToType="goToType",e.SelectionMode="selectionMode",e.Id="id",e.PromptText="promptText",e.ItemName="itemName",e.FailOnCollision="failOnCollision",e.StartRow="startRow",e.StartColumn="startColumn",e.RowCount="rowCount",e.ColumnCount="columnCount",e.Rows="rows",e.OverwriteIfStale="overwriteIfStale",e.FileType="fileType",e.EventType="eventType",e.Handler="handler",e.SliceSize="sliceSize",e.SliceIndex="sliceIndex",e.ActiveView="activeView",e.Status="status",e.PlatformType="platformType",e.HostType="hostType",e.Email="email",e.OfficeTheme="officeTheme",e.DocumentTheme="documentTheme",e.ForceConsent="forceConsent",e.ForceAddAccount="forceAddAccount",e.AuthChallenge="authChallenge",e.AllowConsentPrompt="allowConsentPrompt",e.ForMSGraphAccess="forMSGraphAccess",e.AllowSignInPrompt="allowSignInPrompt",e.JsonPayload="jsonPayload",e.EnableNewHosts="enableNewHosts",e.AccountTypeFilter="accountTypeFilter",e.AddinTrustId="addinTrustId",e.Reserved="reserved",e.Tcid="tcid",e.Xml="xml",e.Namespace="namespace",e.Prefix="prefix",e.XPath="xPath",e.Text="text",e.ImageLeft="imageLeft",e.ImageTop="imageTop",e.ImageWidth="imageWidth",e.ImageHeight="imageHeight",e.TaskId="taskId",e.FieldId="fieldId",e.FieldValue="fieldValue",e.ServerUrl="serverUrl",e.ListName="listName",e.ResourceId="resourceId",e.ViewType="viewType",e.ViewName="viewName",e.GetRawValue="getRawValue",e.CellFormat="cellFormat",e.TableOptions="tableOptions",e.TaskIndex="taskIndex",e.ResourceIndex="resourceIndex",e.CustomFieldId="customFieldId",e.Url="url",e.MessageHandler="messageHandler",e.Width="width",e.Height="height",e.RequireHTTPs="requireHTTPS",e.DisplayInIframe="displayInIframe",e.HideTitle="hideTitle",e.UseDeviceIndependentPixels="useDeviceIndependentPixels",e.PromptBeforeOpen="promptBeforeOpen",e.EnforceAppDomain="enforceAppDomain",e.UrlNoHostInfo="urlNoHostInfo",e.Base64="base64",e.FormId="formId"}(e.ParameterNames||(e.ParameterNames={}))}(OSF||(OSF={})),function(e){!function(t){function n(t,n){var o=(new Date).getTime();return function(r){n.onReceiving&&n.onReceiving();var i=r.toArray?r.toArray()[0]:r;return n.onComplete&&n.onComplete(i),e.AppTelemetry&&e.AppTelemetry.onRegisterDone(t,n.dispId,Math.abs((new Date).getTime()-o),i),!0}}function o(e){var t=e;if(null!=e&&e.toArray){var n=e.toArray();t=new Array(n.length);for(var r=0;r<n.length;r++)t[r]=o(n[r])}return t}t.executeAsync=function(t){try{t.onCalling&&t.onCalling(),e._OfficeAppFactory.getClientHostController().execute(t.dispId,function t(n){var o=n;if(e.OUtil.isArray(n))for(var r=o.length,i=0;i<r;i++)o[i]=t(o[i]);else if(e.OUtil.isDate(n))o=n.getVarDate();else if("object"==typeof n&&!e.OUtil.isArray(n))for(var a in o=[],n)e.OUtil.isFunction(n[a])||(o[a]=t(n[a]));return o}(t.hostCallArgs),(function(e,n){var r,i;if("number"==typeof e?(r=[],i=e):i=(r=e.toArray())[0],1==i)return null!=(a=o(a=r[1]))&&(t._chunkResultData||(t._chunkResultData=new Array),t._chunkResultData[a[0]]=a[1]),!1;if(t.onReceiving&&t.onReceiving(),t.onComplete){var a;if(0==i){if(r.length>2){a=[];for(var s=1;s<r.length;s++)a[s-1]=r[s]}else a=r[1];if(t._chunkResultData&&null!=(a=o(a))){var l=a[a.length-1];t._chunkResultData.length==l?a[a.length-1]=t._chunkResultData:i=5001}}else a=r[1];t.onComplete(i,a)}return!0}))}catch(n){e.SafeArrayDelegate.onException(n,t)}},t.registerEventAsync=function(t){t.onCalling&&t.onCalling();var o=n(!0,t);try{e._OfficeAppFactory.getClientHostController().registerEvent(t.dispId,void 0,t.targetId,(function(n,o){t.onEvent&&t.onEvent(o),e.AppTelemetry&&e.AppTelemetry.onEventDone(t.dispId)}),o)}catch(n){e.SafeArrayDelegate.onException(n,t)}},t.unregisterEventAsync=function(t){t.onCalling&&t.onCalling();var o=n(!1,t);try{e._OfficeAppFactory.getClientHostController().unregisterEvent(t.dispId,void 0,t.targetId,o)}catch(n){e.SafeArrayDelegate.onException(n,t)}},t.onException=function(t,n){var o,r=t.number;if(r)switch(r){case-2146828218:o=7e3;break;case-2147467259:o=n.dispId==e.EventDispId.dispidDialogMessageReceivedEvent?12007:5001;break;case-2146828283:case-2147209089:o=5010;break;case-2147208704:o=5100;break;case-2146827850:default:o=5001}n.onComplete&&n.onComplete(o||5001)},t.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},t.getOnAfterRegisterEvent=n}(e.SafeArrayDelegate||(e.SafeArrayDelegate={}))}(OSF||(OSF={})),function(e){var t=function(){function t(e){this.m_settingsInstance=e}return Object.defineProperty(t.prototype,"type",{get:function(){return e.EventType.SettingsChanged},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"settings",{get:function(){return this.m_settingsInstance},enumerable:!0,configurable:!0}),t}();e.SettingsChangedEventArgs=t}(OSF||(OSF={})),function(e){var t=function(){function t(e,t){this._complexTypes=e,this.dynamicTypes=t}return t.prototype.addComplexType=function(e){this._complexTypes.push(e)},t.prototype.getDynamicType=function(e){return this.dynamicTypes[e]},t.prototype.setDynamicType=function(e,t){this.dynamicTypes[e]=t},t.prototype.isComplexType=function(t){return e.OUtil.listContainsValue(this._complexTypes,t)},t.prototype.isDynamicType=function(t){return e.OUtil.listContainsKey(this.dynamicTypes,t)},t.prototype.preserveNesting=function(e){return!1},t.prototype.pack=function(e,t){return this.isDynamicType(e)?this.dynamicTypes[e].toHost(t):t},t.prototype.unpack=function(e,t){return this.isDynamicType(e)?this.dynamicTypes[e].fromHost(t):t},t}();e.SpecialProcessor=t}(OSF||(OSF={}));__extends=this&&this.__extends||function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();!function(e){var t=function(t){function n(){var n={};return n[e.ParameterNames.Data]={toHost:function(t){if(e.TableDataProperties&&"string"!=typeof t&&void 0!==t[e.TableDataProperties.TableRows]){var n=[];n[0]=t[e.TableDataProperties.TableRows],n[1]=t[e.TableDataProperties.TableHeaders],t=n}return t},fromHost:function(t){var n;if(t.toArray)if(2===t.dimensions())n=e.Utility.twoDVBArrayToJaggedArray(t);else{var o=t.toArray();2===o.length&&(null!=o[0]&&o[0].toArray||null!=o[1]&&o[1].toArray)?((n={})[e.TableDataProperties.TableRows]=e.Utility.twoDVBArrayToJaggedArray(o[0]),n[e.TableDataProperties.TableHeaders]=e.Utility.twoDVBArrayToJaggedArray(o[1])):n=o}else n=t;return n}},t.call(this,[],n)||this}return __extends(n,t),n.prototype.unpack=function(t,n){var o;this.isComplexType(t)||e.ListType.isListType(t)?o=void 0!==n&&void 0!==n.toArray?n.toArray():n||{}:o=this.isDynamicType(t)?this.dynamicTypes[t].fromHost(n):n;return o},n}(e.SpecialProcessor);e.SafeArraySpecialProcessor=t}(OSF||(OSF={})),function(e){var t=function(){function t(t,n,o,r,i){this._requiredCount=t.length,this._apiMethods=new e.ApiMethodCall(t,n,o,r,i),this._supportedOptions=n}return 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(t,n,o,r){if(t.length>this._requiredCount+1)throw e.Utility.createParameterException(Strings.OfficeOM.L_TooManyArguments);for(var i,a=t.length-1;a>=this._requiredCount;a--){var s=t[a];switch(typeof s){case"object":if(i)throw e.Utility.createParameterException(Strings.OfficeOM.L_TooManyArguments);i=s;break;default:throw e.Utility.createArgumentException(Strings.OfficeOM.L_InValidOptionalArgument)}}return i=this._apiMethods.fillOptions(i,n,o,r),this._apiMethods.verifyArguments(this._supportedOptions,i),i},t}();e.SyncMethodCall=t}(OSF||(OSF={})),function(e){!function(t){var n={};t.define=function(t){var o,r;n[t.method]=(r=(o=t).supportedOptions?e.OUtil.createObject(o.supportedOptions):[],new e.SyncMethodCall(o.requiredArguments||[],r,o.privateStateCallbacks,o.checkCallArgs,o.method.displayName))},t.get=function(e){return n[e]}}(e.SyncMethodCalls||(e.SyncMethodCalls={}))}(OSF||(OSF={})),function(e){e.SyncMethods={MessageParent:"messageParent",MessageChild:"messageChild",SendMessage:"sendMessage",AddMessageHandler:"addEventHandler"}}(OSF||(OSF={})),function(e){!function(t){!function(t){function n(t){for(var n=[{name:e.DDA.Theming.DocumentThemeEnum.PrimaryFontColor,needToConvertToHex:!0},{name:e.DDA.Theming.DocumentThemeEnum.PrimaryBackgroundColor,needToConvertToHex:!0},{name:e.DDA.Theming.DocumentThemeEnum.SecondaryFontColor,needToConvertToHex:!0},{name:e.DDA.Theming.DocumentThemeEnum.SecondaryBackgroundColor,needToConvertToHex:!0},{name:e.DDA.Theming.DocumentThemeEnum.Accent1,needToConvertToHex:!0},{name:e.DDA.Theming.DocumentThemeEnum.Accent2,needToConvertToHex:!0},{name:e.DDA.Theming.DocumentThemeEnum.Accent3,needToConvertToHex:!0},{name:e.DDA.Theming.DocumentThemeEnum.Accent4,needToConvertToHex:!0},{name:e.DDA.Theming.DocumentThemeEnum.Accent5,needToConvertToHex:!0},{name:e.DDA.Theming.DocumentThemeEnum.Accent6,needToConvertToHex:!0},{name:e.DDA.Theming.DocumentThemeEnum.Hyperlink,needToConvertToHex:!0},{name:e.DDA.Theming.DocumentThemeEnum.FollowedHyperlink,needToConvertToHex:!0},{name:e.DDA.Theming.DocumentThemeEnum.HeaderLatinFont,needToConvertToHex:!1},{name:e.DDA.Theming.DocumentThemeEnum.HeaderEastAsianFont,needToConvertToHex:!1},{name:e.DDA.Theming.DocumentThemeEnum.HeaderScriptFont,needToConvertToHex:!1},{name:e.DDA.Theming.DocumentThemeEnum.HeaderLocalizedFont,needToConvertToHex:!1},{name:e.DDA.Theming.DocumentThemeEnum.BodyLatinFont,needToConvertToHex:!1},{name:e.DDA.Theming.DocumentThemeEnum.BodyEastAsianFont,needToConvertToHex:!1},{name:e.DDA.Theming.DocumentThemeEnum.BodyScriptFont,needToConvertToHex:!1},{name:e.DDA.Theming.DocumentThemeEnum.BodyLocalizedFont,needToConvertToHex:!1}],o={},r=0;r<n.length;r++)n[r].needToConvertToHex?o[n[r].name]=e.OUtil.convertIntToCssHexColor(t[n[r].name]):o[n[r].name]=t[n[r].name];return o}function o(t){var n={};if(t){var o=e.DDA.Theming.OfficeThemeEnum,r={bodyBackgroundColor:{name:o.BodyBackgroundColor,convertToHex:!0},bodyForegroundColor:{name:o.BodyForegroundColor,convertToHex:!0},controlBackgroundColor:{name:o.ControlBackgroundColor,convertToHex:!0},controlForegroundColor:{name:o.ControlForegroundColor,convertToHex:!0},primaryFontColor:{name:o.BodyForegroundColor,convertToHex:!0},primaryBackgroundColor:{name:o.BodyBackgroundColor,convertToHex:!0},secondaryFontColor:{name:o.ControlForegroundColor,convertToHex:!0},secondaryBackgroundColor:{name:o.ControlBackgroundColor,convertToHex:!0},fluentThemeData:{name:o.FluentThemeData,convertToHex:!1}};for(var i in t){var a=!1,s=i;r[i]&&(s=r[i].name,a=r[i].convertToHex),n[s]=a?e.OUtil.convertIntToCssHexColor(t[i]):t[i]}null==n[o.IsDarkTheme]&&(n[o.IsDarkTheme]=e.DDA.Theming.GetIsDarkThemeFromCSSHexColor(n[o.BodyBackgroundColor])),null==n[o.ThemeId]&&(n[o.ThemeId]=n[o.IsDarkTheme]?e.DDA.Theming.ThemeId.Black:e.DDA.Theming.ThemeId.White)}return n}!function(e){e.PrimaryFontColor="primaryFontColor",e.PrimaryBackgroundColor="primaryBackgroundColor",e.SecondaryFontColor="secondaryFontColor",e.SecondaryBackgroundColor="secondaryBackgroundColor",e.Accent1="accent1",e.Accent2="accent2",e.Accent3="accent3",e.Accent4="accent4",e.Accent5="accent5",e.Accent6="accent6",e.Hyperlink="hyperlink",e.FollowedHyperlink="followedHyperlink",e.HeaderLatinFont="headerLatinFont",e.HeaderEastAsianFont="headerEastAsianFont",e.HeaderScriptFont="headerScriptFont",e.HeaderLocalizedFont="headerLocalizedFont",e.BodyLatinFont="bodyLatinFont",e.BodyEastAsianFont="bodyEastAsianFont",e.BodyScriptFont="bodyScriptFont",e.BodyLocalizedFont="bodyLocalizedFont"}(t.DocumentThemeEnum||(t.DocumentThemeEnum={})),function(e){e.BodyBackgroundColor="bodyBackgroundColor",e.BodyForegroundColor="bodyForegroundColor",e.ControlBackgroundColor="controlBackgroundColor",e.ControlForegroundColor="controlForegroundColor",e.IsDarkTheme="isDarkTheme",e.ThemeId="themeId",e.FluentThemeData="fluentThemeData"}(t.OfficeThemeEnum||(t.OfficeThemeEnum={})),function(e){e.PrimaryFontColor="primaryFontColor",e.PrimaryBackgroundColor="primaryBackgroundColor",e.SecondaryFontColor="secondaryFontColor",e.SecondaryBackgroundColor="secondaryBackgroundColor",e.IsDarkTheme="isDarkTheme",e.ThemeId="themeId"}(t.OfficeThemeEnumWac||(t.OfficeThemeEnumWac={})),function(e){e[e.Colorful=0]="Colorful",e[e.DarkGray=1]="DarkGray",e[e.Black=2]="Black",e[e.White=3]="White"}(t.ThemeId||(t.ThemeId={})),t.ConvertToDocumentTheme=n,t.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},t.ConvertToOfficeTheme=o;var r=function(t){var n=null,r=e._OfficeAppFactory.getHostInfo();n=r.hostPlatform==e.HostInfoPlatform.web?t:o(t);var i=e.DDA.Theming.OfficeThemeEnum;void 0===n[i.IsDarkTheme]&&(n.isDarkTheme=e.DDA.Theming.GetIsDarkThemeFromCSSHexColor(t[i.BodyBackgroundColor])),void 0===n[i.ThemeId]&&(n.themeId=n.isDarkTheme?e.DDA.Theming.ThemeId.Black:e.DDA.Theming.ThemeId.White),r.hostPlatform!=e.HostInfoPlatform.web&&"mac"!=r.hostPlatform.toLowerCase()&&"ios"!=r.hostPlatform.toLowerCase()||Office.context&&Office.context.officeTheme&&(Office.context.officeTheme.bodyBackgroundColor=n.bodyBackgroundColor,Office.context.officeTheme.bodyForegroundColor=n.bodyForegroundColor,Office.context.officeTheme.controlBackgroundColor=n.controlBackgroundColor,Office.context.officeTheme.controlForegroundColor=n.controlForegroundColor,Office.context.officeTheme.isDarkTheme=n.isDarkTheme,Office.context.officeTheme.themeId=n.themeId),e.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.OfficeThemeChanged},officeTheme:{value:n}})};t.OfficeThemeChangedEventArgs=r;var i=function(t){var o=n(t);e.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DocumentThemeChanged},documentTheme:{value:o}})};t.DocumentThemeChangedEventArgs=i}(t.Theming||(t.Theming={}))}(e.DDA||(e.DDA={}))}(OSF||(OSF={})),function(e){!function(t){var n=[];t.initialize=function(){n.forEach((function(t){t.defineMethodsFunc(),e.OUtil.getHostPlatform()==e.HostInfoPlatform.web?"function"==typeof t.defineWebParameterMapFunc&&t.defineWebParameterMapFunc():"function"==typeof t.defineSafeArrayParameterMapFunc&&t.defineSafeArrayParameterMapFunc(),"function"==typeof t.initializeFunc&&t.initializeFunc()}))},t.register=function(e){n.push(e)}}(e.V10ApiFeatureRegistry||(e.V10ApiFeatureRegistry={}))}(OSF||(OSF={})),function(e){!function(t){function n(t,n){var o=(new Date).getTime();return function(r,i){var a;if(n.onReceiving&&n.onReceiving(),0!=r)switch(r){case-5:a=7e3;break;default:a=5001}else a=i?i.Error?i.Error:0:5001;n.onComplete&&n.onComplete(a),e.AppTelemetry&&e.AppTelemetry.onRegisterDone(t,n.dispId,Math.abs((new Date).getTime()-o),a)}}t.version=1,function(e){e.Data="Data",e.Properties="Properties",e.BindingRequest="DdaBindingsMethod",e.BindingResponse="Bindings",e.SingleBindingResponse="singleBindingResponse",e.GetData="DdaGetBindingData",e.AddRowsColumns="DdaAddRowsColumns",e.SetData="DdaSetBindingData",e.ClearFormats="DdaClearBindingFormats",e.SetFormats="DdaSetBindingFormats",e.SettingsRequest="DdaSettingsMethod",e.BindingEventSource="ddaBinding",e.ArrayData="ArrayData"}(t.UniqueArguments||(t.UniqueArguments={})),t.executeAsync=function(t){t.hostCallArgs||(t.hostCallArgs={}),t.hostCallArgs.DdaMethod={ControlId:e._OfficeAppFactory.getId(),Version:e.WACDelegate.version,DispatchId:t.dispId},t.hostCallArgs.__timeout__=-1,t.onCalling&&t.onCalling(),e.getClientEndPoint()&&e.getClientEndPoint().invoke("executeMethod",(function(n,o){var r;if(t.onReceiving&&t.onReceiving(),0==n)e.WACDelegate.version=o.Version,r=o.Error;else switch(n){case-5:r=7e3;break;default:r=5001}t.onComplete&&t.onComplete(r,o)}),t.hostCallArgs)},t.getOnAfterRegisterEvent=n,t.registerEventAsync=function(t){t.onCalling&&t.onCalling(),e.getClientEndPoint()&&e.getClientEndPoint().registerForEvent(e.OUtil.getXdmEventName(t.targetId,t.eventType),(function(n){t.onEvent&&t.onEvent(n),e.AppTelemetry&&e.AppTelemetry.onEventDone(t.dispId)}),n(!0,t),{controlId:e._OfficeAppFactory.getId(),eventDispId:t.dispId,targetId:t.targetId})},t.unregisterEventAsync=function(t){t.onCalling&&t.onCalling(),e.getClientEndPoint()&&e.getClientEndPoint().unregisterForEvent(e.OUtil.getXdmEventName(t.targetId,t.eventType),n(!1,t),{controlId:e._OfficeAppFactory.getId(),eventDispId:t.dispId,targetId:t.targetId})}}(e.WACDelegate||(e.WACDelegate={}))}(OSF||(OSF={})),function(e){var t=function(t){function n(){var n=[e.WACDelegate.UniqueArguments.SingleBindingResponse,e.WACDelegate.UniqueArguments.BindingRequest,e.WACDelegate.UniqueArguments.BindingResponse,e.WACDelegate.UniqueArguments.GetData,e.WACDelegate.UniqueArguments.AddRowsColumns,e.WACDelegate.UniqueArguments.SetData,e.WACDelegate.UniqueArguments.ClearFormats,e.WACDelegate.UniqueArguments.SetFormats,e.WACDelegate.UniqueArguments.SettingsRequest,e.WACDelegate.UniqueArguments.BindingEventSource];return t.call(this,n,{})||this}return __extends(n,t),n}(e.SpecialProcessor);e.WebSpecialProcessor=t}(OSF||(OSF={}));__extends=this&&this.__extends||function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();!function(e){!function(e){!function(e){!function(e){e._eventDispatches=[],e.addFromSelectionAsync=function(e,t,n){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.AddFromSelectionAsync,arguments,this,void 0)},e.addFromNamedItemAsync=function(e,t,n,o){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.AddFromNamedItemAsync,arguments,this,void 0)},e.addFromPromptAsync=function(e,t,n){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.AddFromPromptAsync,arguments,this,void 0)},e.getAllAsync=function(e,t){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.GetAllAsync,arguments,this,void 0)},e.getByIdAsync=function(e,t,n){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.GetByIdAsync,arguments,this,void 0)},e.releaseByIdAsync=function(e,t,n){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.ReleaseByIdAsync,arguments,this,void 0)}}(e.bindings||(e.bindings={}))}(e.document||(e.document={}))}(e.context||(e.context={}))}(Office||(Office={})),function(e){!function(e){e.Id="BindingId",e.Type="bindingType",e.RowCount="RowCount",e.ColumnCount="BindingColumnCount",e.HasHeaders="HasHeaders"}(e.BindingProperties||(e.BindingProperties={})),function(e){e.BindingList="BindingList"}(e.ListDescriptors||(e.ListDescriptors={})),e.ListType.setListType(e.ListDescriptors.BindingList,e.PropertyDescriptors.BindingProperties),function(e){e.BindingSelectionChangedEvent="BindingSelectionChangedEvent"}(e.EventDescriptors||(e.EventDescriptors={})),function(e){!function(e){e.Id="BindingId",e.BindingType="BindingType",e.ItemName="ItemName",e.StartRow="StartRow",e.StartCol="StartCol",e.RowCount="RowCount",e.ColCount="ColCount"}(e.BindingParameterKeys||(e.BindingParameterKeys={})),function(e){e.TableHeaders="TableHeaders",e.TableRows="TableRows"}(e.TableBindingParameterKeys||(e.TableBindingParameterKeys={})),function(e){e.BindingId="Name",e.BindingType="BindingType",e[e.BindingProperties=0]="BindingProperties",e.BindingEventSource="ddaBinding",e.RowCount="RowCount",e.ColumnCount="ColCount",e.HasHeaders="HasHeaders"}(e.AppBindingKeys||(e.AppBindingKeys={})),function(e){e.TableSubset="subset",e.StartRow="startRow",e.StartColumn="startColumn",e.RowCount="rowCount",e.ColumnCount="columnCount"}(e.TableSubsetKeys||(e.TableSubsetKeys={})),function(e){e[e.Table=1]="Table",e[e.Text=2]="Text",e[e.Matrix=3]="Matrix"}(e.BindingType||(e.BindingType={}))}(e.Marshaling||(e.Marshaling={})),function(t){function n(t){return e.manufactureBinding(t,Office.context.document)}function o(e){return e.id}function r(t,n,o){var r=t[e.ParameterNames.Data];return e.TableDataProperties&&r&&(null!=r[e.TableDataProperties.TableRows]||null!=r[e.TableDataProperties.TableHeaders])&&(r=Office.manufactureTableData(r)),null==(r=e.DataCoercion.coerceData(r,o[e.ParameterNames.CoercionType]))?null:r}e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){e.AsyncMethodCalls.define({method:e.AsyncMethods.AddFromPromptAsync,requiredArguments:[{name:e.ParameterNames.BindingType,enum:Office.BindingType}],supportedOptions:[{name:e.ParameterNames.Id,value:{types:["string"],calculate:l}},{name:e.ParameterNames.PromptText,value:{types:["string"],calculate:function(){return Strings.OfficeOM.L_AddBindingFromPromptDefaultText}}},{name:e.ParameterNames.SampleData,value:{types:["object"],defaultValue:null}}],privateStateCallbacks:[],onSucceeded:function(t){return e.manufactureBinding(t,Office.context.document)}}),e.AsyncMethodCalls.define({method:e.AsyncMethods.AddFromSelectionAsync,requiredArguments:[{name:e.ParameterNames.BindingType,enum:Office.BindingType}],supportedOptions:[{name:e.ParameterNames.Id,value:{types:["string"],calculate:l}},{name:e.ParameterNames.Columns,value:{types:["object"],defaultValue:null}}],privateStateCallbacks:[],onSucceeded:n}),e.AsyncMethodCalls.define({method:e.AsyncMethods.AddFromNamedItemAsync,requiredArguments:[{name:e.ParameterNames.ItemName,types:["string"]},{name:e.ParameterNames.BindingType,enum:Office.BindingType}],supportedOptions:[{name:e.ParameterNames.Id,value:{types:["string"],calculate:l}},{name:e.ParameterNames.Columns,value:{types:["object"],defaultValue:null}}],privateStateCallbacks:[{name:e.ParameterNames.FailOnCollision,value:function(){return!0}}],onSucceeded:n}),e.AsyncMethodCalls.define({method:e.AsyncMethods.GetAllAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[],onSucceeded:function(t){return t[e.ListDescriptors.BindingList].map(n)}}),e.AsyncMethodCalls.define({method:e.AsyncMethods.GetByIdAsync,requiredArguments:[{name:e.ParameterNames.Id,types:["string"]}],supportedOptions:[],privateStateCallbacks:[],onSucceeded:n}),e.AsyncMethodCalls.define({method:e.AsyncMethods.ReleaseByIdAsync,requiredArguments:[{name:e.ParameterNames.Id,types:["string"]}],supportedOptions:[],privateStateCallbacks:[],onSucceeded:function(t,n,o){var r=o[e.ParameterNames.Id];delete n._eventDispatches[r]}}),e.AsyncMethodCalls.define({method:e.AsyncMethods.GetDataAsync,requiredArguments:[],supportedOptions:[{name:e.ParameterNames.CoercionType,value:{enum:Office.CoercionType,calculate:function(t,n){return e.DataCoercion.getCoercionDefaultForBinding(n.type)}}},{name:e.ParameterNames.ValueFormat,value:{enum:Office.ValueFormat,defaultValue:Office.ValueFormat.Unformatted}},{name:e.ParameterNames.FilterType,value:{enum:Office.FilterType,defaultValue:Office.FilterType.All}},{name:e.ParameterNames.Rows,value:{types:["object","string"],defaultValue:null}},{name:e.ParameterNames.Columns,value:{types:["object"],defaultValue:null}},{name:e.ParameterNames.StartRow,value:{types:["number"],defaultValue:0}},{name:e.ParameterNames.StartColumn,value:{types:["number"],defaultValue:0}},{name:e.ParameterNames.RowCount,value:{types:["number"],defaultValue:0}},{name:e.ParameterNames.ColumnCount,value:{types:["number"],defaultValue:0}}],checkCallArgs:function(t,n,o){if(0==t[e.ParameterNames.StartRow]&&0==t[e.ParameterNames.StartColumn]&&0==t[e.ParameterNames.RowCount]&&0==t[e.ParameterNames.ColumnCount]&&(delete t[e.ParameterNames.StartRow],delete t[e.ParameterNames.StartColumn],delete t[e.ParameterNames.RowCount],delete t[e.ParameterNames.ColumnCount]),t[e.ParameterNames.CoercionType]!=e.DataCoercion.getCoercionDefaultForBinding(n.type)&&(t[e.ParameterNames.StartRow]||t[e.ParameterNames.StartColumn]||t[e.ParameterNames.RowCount]||t[e.ParameterNames.ColumnCount]))throw 1002;return t},privateStateCallbacks:[{name:e.ParameterNames.Id,value:o}],onSucceeded:r}),e.AsyncMethodCalls.define({method:e.AsyncMethods.SetDataAsync,requiredArguments:[{name:e.ParameterNames.Data,types:["string","object","number","boolean"]}],supportedOptions:[{name:e.ParameterNames.CoercionType,value:{enum:Office.CoercionType,calculate:function(t){return e.DataCoercion.determineCoercionType(t[e.ParameterNames.Data])}}},{name:e.ParameterNames.Rows,value:{types:["object","string"],defaultValue:null}},{name:e.ParameterNames.Columns,value:{types:["object"],defaultValue:null}},{name:e.ParameterNames.StartRow,value:{types:["number"],defaultValue:0}},{name:e.ParameterNames.StartColumn,value:{types:["number"],defaultValue:0}}],checkCallArgs:function(t,n,o){if(0==t[e.ParameterNames.StartRow]&&0==t[e.ParameterNames.StartColumn]&&(delete t[e.ParameterNames.StartRow],delete t[e.ParameterNames.StartColumn]),t[e.ParameterNames.CoercionType]!=e.DataCoercion.getCoercionDefaultForBinding(n.type)&&(t[e.ParameterNames.StartRow]||t[e.ParameterNames.StartColumn]))throw 1002;return t},privateStateCallbacks:[{name:e.ParameterNames.Id,value:o}]})},defineSafeArrayParameterMapFunc:function(){e.HostParameterMap.define({type:"bindingSpecificData",fromHost:[{name:e.BindingProperties.RowCount,value:0},{name:e.BindingProperties.ColumnCount,value:1},{name:e.BindingProperties.HasHeaders,value:2}],isComplexType:!0}),e.HostParameterMap.define({type:e.PropertyDescriptors.Subset,toHost:[{name:"offset",value:0},{name:"run",value:1}],canonical:!0,isComplexType:!0}),e.HostParameterMap.define({type:"offset",toHost:[{name:e.ParameterNames.StartRow,value:0},{name:e.ParameterNames.StartColumn,value:1}],canonical:!0,isComplexType:!0}),e.HostParameterMap.define({type:"run",toHost:[{name:e.ParameterNames.RowCount,value:0},{name:e.ParameterNames.ColumnCount,value:1}],canonical:!0,isComplexType:!0}),e.HostParameterMap.define({type:"run",toHost:[{name:e.ParameterNames.RowCount,value:0},{name:e.ParameterNames.ColumnCount,value:1}],canonical:!0,isComplexType:!0}),e.HostParameterMap.define({type:79,toHost:[{name:e.ParameterNames.Id,value:0},{name:e.ParameterNames.Data,value:1}]}),e.HostParameterMap.define({type:73,toHost:[{name:e.ParameterNames.Id,value:0}]}),e.HostParameterMap.define({type:e.PropertyDescriptors.BindingProperties,fromHost:[{name:e.BindingProperties.Id,value:0},{name:e.BindingProperties.Type,value:1},{name:"bindingSpecificData",value:2}],isComplexType:!0}),e.HostParameterMap.define({type:e.ParameterNames.BindingType,toHost:[{name:Office.BindingType.Text,value:0},{name:Office.BindingType.Matrix,value:1},{name:Office.BindingType.Table,value:2}],invertible:!0}),e.HostParameterMap.define({type:66,fromHost:[{name:e.PropertyDescriptors.BindingProperties,value:e.HostParameterMap.self}],toHost:[{name:e.ParameterNames.Id,value:0},{name:e.ParameterNames.BindingType,value:1}]}),e.HostParameterMap.define({type:78,fromHost:[{name:e.PropertyDescriptors.BindingProperties,value:e.HostParameterMap.self}],toHost:[{name:e.ParameterNames.ItemName,value:0},{name:e.ParameterNames.Id,value:1},{name:e.ParameterNames.BindingType,value:2},{name:e.ParameterNames.FailOnCollision,value:3}]}),e.HostParameterMap.define({type:67,fromHost:[{name:e.PropertyDescriptors.BindingProperties,value:e.HostParameterMap.self}],toHost:[{name:e.ParameterNames.Id,value:0},{name:e.ParameterNames.BindingType,value:1},{name:e.ParameterNames.PromptText,value:2}]}),e.HostParameterMap.define({type:69,toHost:[{name:e.ParameterNames.Id,value:0}]}),e.HostParameterMap.define({type:68,fromHost:[{name:e.PropertyDescriptors.BindingProperties,value:e.HostParameterMap.self}],toHost:[{name:e.ParameterNames.Id,value:0}]}),e.HostParameterMap.define({type:74,fromHost:[{name:e.ListDescriptors.BindingList,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:70,fromHost:[{name:e.ParameterNames.Data,value:e.HostParameterMap.self}],toHost:[{name:e.ParameterNames.Id,value:0},{name:e.ParameterNames.CoercionType,value:1},{name:e.ParameterNames.ValueFormat,value:2},{name:e.ParameterNames.FilterType,value:3},{name:e.PropertyDescriptors.Subset,value:4}]}),e.HostParameterMap.define({type:71,toHost:[{name:e.ParameterNames.Id,value:0},{name:e.ParameterNames.CoercionType,value:1},{name:e.ParameterNames.Data,value:2},{name:"offset",value:3}]})},defineWebParameterMapFunc:function(){e.HostParameterMap.define({type:72,toHost:[{name:e.WACDelegate.UniqueArguments.AddRowsColumns,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:79,toHost:[{name:e.WACDelegate.UniqueArguments.AddRowsColumns,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:73,toHost:[{name:e.WACDelegate.UniqueArguments.BindingRequest,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:e.WACDelegate.UniqueArguments.AddRowsColumns,toHost:[{name:e.ParameterNames.Id,value:"BindingId"},{name:e.ParameterNames.Data,value:e.WACDelegate.UniqueArguments.Data}]}),e.HostParameterMap.define({type:e.PropertyDescriptors.Subset,fromHost:[{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.BindingRequest,toHost:[{name:e.ParameterNames.ItemName,value:"ItemName"},{name:e.ParameterNames.Id,value:"BindingId"},{name:e.ParameterNames.BindingType,value:"BindingType"},{name:e.ParameterNames.PromptText,value:"PromptText"},{name:e.ParameterNames.Columns,value:"Columns"},{name:e.ParameterNames.SampleData,value:"SampleData"},{name:e.ParameterNames.FailOnCollision,value:"FailOnCollision"}]}),e.HostParameterMap.addComplexType(e.PropertyDescriptors.BindingProperties),e.HostParameterMap.define({type:e.ParameterNames.BindingType,toHost:[{name:Office.BindingType.Text,value:2},{name:Office.BindingType.Matrix,value:3},{name:Office.BindingType.Table,value:1}],invertible:!0}),e.HostParameterMap.define({type:e.PropertyDescriptors.BindingProperties,fromHost:[{name:e.BindingProperties.Id,value:"Name"},{name:e.BindingProperties.Type,value:"BindingType"},{name:e.BindingProperties.RowCount,value:"RowCount"},{name:e.BindingProperties.ColumnCount,value:"ColCount"},{name:e.BindingProperties.HasHeaders,value:"HasHeaders"}]}),e.HostParameterMap.define({type:e.WACDelegate.UniqueArguments.SingleBindingResponse,fromHost:[{name:e.PropertyDescriptors.BindingProperties,value:0}]}),e.HostParameterMap.define({type:66,fromHost:[{name:e.WACDelegate.UniqueArguments.SingleBindingResponse,value:e.WACDelegate.UniqueArguments.BindingResponse}],toHost:[{name:e.WACDelegate.UniqueArguments.BindingRequest,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:67,fromHost:[{name:e.WACDelegate.UniqueArguments.SingleBindingResponse,value:e.WACDelegate.UniqueArguments.BindingResponse}],toHost:[{name:e.WACDelegate.UniqueArguments.BindingRequest,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:78,fromHost:[{name:e.WACDelegate.UniqueArguments.SingleBindingResponse,value:e.WACDelegate.UniqueArguments.BindingResponse}],toHost:[{name:e.WACDelegate.UniqueArguments.BindingRequest,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:69,toHost:[{name:e.WACDelegate.UniqueArguments.BindingRequest,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:68,fromHost:[{name:e.WACDelegate.UniqueArguments.SingleBindingResponse,value:e.WACDelegate.UniqueArguments.BindingResponse}],toHost:[{name:e.WACDelegate.UniqueArguments.BindingRequest,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:74,fromHost:[{name:e.ListDescriptors.BindingList,value:e.WACDelegate.UniqueArguments.BindingResponse}]}),e.HostParameterMap.define({type:70,fromHost:[{name:e.ParameterNames.Data,value:e.WACDelegate.UniqueArguments.Data}],toHost:[{name:e.WACDelegate.UniqueArguments.GetData,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:71,toHost:[{name:e.WACDelegate.UniqueArguments.SetData,value:e.HostParameterMap.self}]})},initializeFunc:function(){e.manufactureBinding=function(t,n){var o,r=t[e.BindingProperties.Id],i=t[e.BindingProperties.RowCount],a=t[e.BindingProperties.ColumnCount],s=t[e.BindingProperties.HasHeaders];switch(t[e.BindingProperties.Type]){case Office.BindingType.Text:o=new e.TextBinding(r,n);break;case Office.BindingType.Matrix:o=null,o=new e.MatrixBinding(r,n,i,a);break;case Office.BindingType.Table:o=new(e._OfficeAppFactory.getHostInfo().hostType==e.HostInfoHostType.excel&&Office.context.document&&e.ExcelTableBinding?e.ExcelTableBinding:e.TableBinding)(r,n,i,a,s);break;default:o=new e.UnknownBinding(r,n)}return o}}})}(e.Bindings||(e.Bindings={})),e.BindingEvents||(e.BindingEvents={}),e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){},defineSafeArrayParameterMapFunc:function(){e.HostParameterMap.define({type:e.EventDispId.dispidBindingSelectionChangedEvent,fromHost:[{name:e.EventDescriptors.BindingSelectionChangedEvent,value:e.HostParameterMap.self}],isComplexType:!0}),e.HostParameterMap.define({type:e.EventDispId.dispidBindingDataChangedEvent,fromHost:[{name:e.PropertyDescriptors.BindingProperties,value:e.HostParameterMap.self}]})},defineWebParameterMapFunc:function(){e.HostParameterMap.define({type:e.EventDescriptors.BindingSelectionChangedEvent,fromHost:[{name:e.PropertyDescriptors.BindingProperties,value:e.WACDelegate.UniqueArguments.BindingEventSource},{name:e.PropertyDescriptors.Subset,value:e.PropertyDescriptors.Subset}]}),e.HostParameterMap.define({type:e.EventDispId.dispidBindingSelectionChangedEvent,fromHost:[{name:e.EventDescriptors.BindingSelectionChangedEvent,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:e.EventDispId.dispidBindingDataChangedEvent,fromHost:[{name:e.PropertyDescriptors.BindingProperties,value:e.WACDelegate.UniqueArguments.BindingEventSource}]})}});var t=function(){function t(e){this.m_id=e}return Object.defineProperty(t.prototype,"onFail",{get:function(){return this.m_errorCallback},set:function(t){var n=typeof t;if("undefined"!=n&&"function"!=n)throw e.OUtil.formatString(Strings.OfficeOM.L_CallbackNotAFunction,n);this.m_errorCallback=t},enumerable:!0,configurable:!0}),t.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(o){o.status==Office.AsyncResultStatus.Succeeded?(e.OUtil.defineEnumerableProperty(n,"binding",{value:o.value}),t&&t(n.m_binding)):n.onFail&&n.onFail(o)}))}return this},t.prototype.getDataAsync=function(){var e=arguments;return this._fetch((function(t){t.getDataAsync.apply(t,e)})),this},t.prototype.setDataAsync=function(){var e=arguments;return this._fetch((function(t){t.setDataAsync.apply(t,e)})),this},t.prototype.addHandlerAsync=function(){var e=arguments;return this._fetch((function(t){t.addHandlerAsync.apply(t,e)})),this},t.prototype.removeHandlerAsync=function(){var e=arguments;return this._fetch((function(t){t.removeHandlerAsync.apply(t,e)})),this},t.prototype.setTableOptionsAsync=function(){var e=arguments;return this._fetch((function(t){t.setTableOptionsAsync.apply(t,e)})),this},t.prototype.setFormatsAsync=function(){var e=arguments;return this._fetch((function(t){t.setFormatsAsync.apply(t,e)})),this},t.prototype.clearFormatsAsync=function(){var e=arguments;return this._fetch((function(t){t.clearFormatsAsync.apply(t,e)})),this},t}();e.BindingPromise=t;var n=function(){function e(e,t){this.m_id=e,this.m_docInstance=t}return Object.defineProperty(e.prototype,"document",{get:function(){return this.m_docInstance},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.m_id},enumerable:!0,configurable:!0}),e}();e.UnknownBinding=n;var o=function(){function t(t,n){this.m_id=t,this.m_docInstance=n;var o=e.EventType,r=n.bindings._eventDispatches;r[t]||(r[t]=new e.EventDispatch([o.BindingSelectionChanged,o.BindingDataChanged]));var i=r[t];e.DispIdHost.addEventSupport(this,i)}return t.prototype.getDataAsync=function(t,n){e.DispIdHost.InvokeMethod(e.AsyncMethods.GetDataAsync,arguments,this,void 0)},t.prototype.setDataAsync=function(t,n,o){e.DispIdHost.InvokeMethod(e.AsyncMethods.SetDataAsync,arguments,this,void 0)},Object.defineProperty(t.prototype,"document",{get:function(){return this.m_docInstance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.m_id},enumerable:!0,configurable:!0}),t}();e.Binding=o;var r=function(e){function t(t,n,o,r){var i=e.call(this,t,n)||this;return i.m_rows=o,i.m_cols=r,i}return __extends(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return Office.BindingType.Matrix},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.m_rows?this.m_rows:0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnCount",{get:function(){return this.m_cols?this.m_cols:0},enumerable:!0,configurable:!0}),t}(e.Binding);e.MatrixBinding=r;var i=function(t){function n(e,n,o,r,i){var a=t.call(this,e,n)||this;return a.m_rows=o,a.m_cols=r,a.m_hasHeaders=i,a}return __extends(n,t),Object.defineProperty(n.prototype,"type",{get:function(){return Office.BindingType.Table},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rowCount",{get:function(){return this.m_rows?this.m_rows:0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columnCount",{get:function(){return this.m_cols?this.m_cols:0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hasHeaders",{get:function(){return!!this.m_hasHeaders&&this.m_hasHeaders},enumerable:!0,configurable:!0}),n.prototype.addRowsAsync=function(t,n,o){e.DispIdHost.InvokeMethod(e.AsyncMethods.AddRowsAsync,arguments,this,void 0)},n.prototype.addColumnsAsync=function(t,n,o){e.DispIdHost.InvokeMethod(e.AsyncMethods.AddColumnsAsync,arguments,this,void 0)},n.prototype.deleteAllDataValuesAsync=function(t,n){e.DispIdHost.InvokeMethod(e.AsyncMethods.DeleteAllDataValuesAsync,arguments,this,void 0)},n}(e.Binding);e.TableBinding=i;var a=function(t){function n(n,o,r,i,a){var s=t.call(this,n,o,r,i,a)||this;return e.OUtil.finalizeProperties(s),s}return __extends(n,t),n.prototype.clearFormatsAsync=function(t,n){e.DispIdHost.InvokeMethod(e.AsyncMethods.ClearFormatsAsync,arguments,this,void 0)},n.prototype.setTableOptionsAsync=function(t,n,o){e.DispIdHost.InvokeMethod(e.AsyncMethods.SetTableOptionsAsync,arguments,this,void 0)},n.prototype.setFormatsAsync=function(t,n,o){e.DispIdHost.InvokeMethod(e.AsyncMethods.SetFormatsAsync,arguments,this,void 0)},n}(e.TableBinding);e.ExcelTableBinding=a,function(t){function n(e){return e.id}e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){e.AsyncMethodCalls.define({method:e.AsyncMethods.AddRowsAsync,requiredArguments:[{name:e.ParameterNames.Data,types:["object"]}],supportedOptions:[],privateStateCallbacks:[{name:e.ParameterNames.Id,value:n}]}),e.AsyncMethodCalls.define({method:e.AsyncMethods.AddColumnsAsync,requiredArguments:[{name:e.ParameterNames.Data,types:["object"]}],supportedOptions:[],privateStateCallbacks:[{name:e.ParameterNames.Id,value:n}]}),e.AsyncMethodCalls.define({method:e.AsyncMethods.DeleteAllDataValuesAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[{name:e.ParameterNames.Id,value:n}]})}})}(e.TableBindingMethods||(e.TableBindingMethods={}));var s=function(e){function t(t,n){return e.call(this,t,n)||this}return __extends(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return Office.BindingType.Text},enumerable:!0,configurable:!0}),t}(e.Binding);function l(){return"UnnamedBinding_"+e.OUtil.getUniqueId()+"_"+(new Date).getTime()}e.TextBinding=s,e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){e.AsyncMethodCalls.define({method:e.AsyncMethods.BindingSelectionChanged,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[]}),e.AsyncMethodCalls.define({method:e.AsyncMethods.BindingDataChanged,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[]})},defineSafeArrayParameterMapFunc:function(){e.HostParameterMap.define({type:e.EventDescriptors.BindingSelectionChangedEvent,fromHost:[{name:e.PropertyDescriptors.BindingProperties,value:0},{name:e.PropertyDescriptors.Subset,value:1}],isComplexType:!0}),e.HostParameterMap.define({type:e.EventDispId.dispidBindingSelectionChangedEvent,fromHost:[{name:e.EventDescriptors.BindingSelectionChangedEvent,value:e.HostParameterMap.self}],isComplexType:!0}),e.HostParameterMap.define({type:e.EventDispId.dispidBindingDataChangedEvent,fromHost:[{name:e.PropertyDescriptors.BindingProperties,value:e.HostParameterMap.self}]})},defineWebParameterMapFunc:function(){e.HostParameterMap.define({type:e.EventDescriptors.BindingSelectionChangedEvent,fromHost:[{name:e.PropertyDescriptors.BindingProperties,value:e.WACDelegate.UniqueArguments.BindingEventSource},{name:e.PropertyDescriptors.Subset,value:e.PropertyDescriptors.Subset}]}),e.HostParameterMap.define({type:e.EventDispId.dispidBindingSelectionChangedEvent,fromHost:[{name:e.EventDescriptors.BindingSelectionChangedEvent,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:e.EventDispId.dispidBindingDataChangedEvent,fromHost:[{name:e.PropertyDescriptors.BindingProperties,value:e.WACDelegate.UniqueArguments.BindingEventSource}]})}})}(OSF||(OSF={})),function(e){!function(t){function n(t){if(null==t||null==t)return null;var n=null,o=typeof t;return void 0!==t.rows?n=Office.CoercionType.Table:e.OUtil.isArray(t)?n=Office.CoercionType.Matrix:("string"==o||"number"==o||"boolean"==o||e.OUtil.isDate(t))&&(n=Office.CoercionType.Text),n}function o(t,o,r){return(r=r||n(t))&&r!=o&&(t=function(t,n){var o;switch(t){case Office.CoercionType.Table:o=n;break;case Office.CoercionType.Matrix:o=function(e){var t=e.rows;null!=e.headers&&t.unshift(e.headers);return t}(n);break;case Office.CoercionType.SlideRange:e.manufactureSlideRange&&null==(o=e.manufactureSlideRange(i(n)))&&(o=i(n));break;case Office.CoercionType.Text:case Office.CoercionType.Html:case Office.CoercionType.Ooxml:default:o=i(n)}return o}(o,function(e,t){null==t&&(t=n(e));var o;switch(t){case Office.CoercionType.Table:o=e;break;case Office.CoercionType.Matrix:o=new Office.TableData(e);break;case Office.CoercionType.Text:case Office.CoercionType.Html:case Office.CoercionType.Ooxml:default:o=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 o}(t,r))),t}function r(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 i(e){var t="";null!=e.headers&&(t=r([e.headers])+"\n");var n=r(e.rows);return""==n&&(t=t.substring(0,t.length-1)),t+n}e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){},defineSafeArrayParameterMapFunc:function(){e.HostParameterMap.define({type:e.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 t=e._OfficeAppFactory.getHostInfo();t.hostPlatform!=e.HostInfoPlatform.win32&&t.hostPlatform!=e.HostInfoPlatform.mac&&t.hostPlatform!=e.HostInfoPlatform.ios&&t.hostPlatform!=e.HostInfoPlatform.android||(e.OUtil.augmentList(Office.CoercionType,{Image:"image"}),e.OUtil.augmentList(Office.CoercionType,{XmlSvg:"xmlSvg"}),e.HostParameterMap.define({type:e.ParameterNames.CoercionType,toHost:[{name:"image",value:8},{name:"xmlSvg",value:9}]}));e.HostParameterMap.define({type:e.ParameterNames.ValueFormat,toHost:[{name:Office.ValueFormat.Unformatted,value:0},{name:Office.ValueFormat.Formatted,value:1}]}),e.HostParameterMap.define({type:e.ParameterNames.FilterType,toHost:[{name:Office.FilterType.All,value:0}]})},defineWebParameterMapFunc:function(){e.OUtil.augmentList(Office.CoercionType,{Image:"image"}),e.OUtil.augmentList(Office.CoercionType,{XmlSvg:"xmlSvg"}),e.HostParameterMap.define({type:e.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}]}),e.HostParameterMap.define({type:e.ParameterNames.ValueFormat,toHost:[{name:Office.ValueFormat.Unformatted,value:0},{name:Office.ValueFormat.Formatted,value:1}]}),e.HostParameterMap.define({type:e.ParameterNames.FilterType,toHost:[{name:Office.FilterType.All,value:0}]})}}),t.findArrayDimensionality=function t(n){if(e.OUtil.isArray(n)){for(var o=0,r=0;r<n.length;r++)o=Math.max(o,t(n[r]));return o+1}return 0},t.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}},t.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}},t.determineCoercionType=n,t.coerceData=o,t.serializeDynamicData=function(t){if(null!=t&&void 0!==t.rows){var n={};n[e.TableDataProperties.TableRows]=t.rows,n[e.TableDataProperties.TableHeaders]=t.headers,t=n}var o;if(e._OfficeAppFactory.getHostInfo().hostPlatform==e.HostInfoPlatform.web)return"string"!=typeof t&&void 0!==t[e.TableDataProperties.TableRows]?((o={}).Rows=t[e.TableDataProperties.TableRows],o.Headers=t[e.TableDataProperties.TableHeaders],t=o):e.DataCoercion.determineCoercionType(t)==Office.CoercionType.Text&&(t=[[t]]),t;if(e.TableDataProperties&&"string"!=typeof t&&void 0!==t[e.TableDataProperties.TableRows]){(o=[])[0]=t[e.TableDataProperties.TableRows],o[1]=t[e.TableDataProperties.TableHeaders],t=o}return t},t.deserializeDynamicData=function(t,n){var r=null;if(e._OfficeAppFactory.getHostInfo().hostPlatform==e.HostInfoPlatform.web)null!=t.Rows?((r={})[e.TableDataProperties.TableRows]=t.Rows,r[e.TableDataProperties.TableHeaders]=t.Headers):r=t,!r||null==r[e.TableDataProperties.TableRows]&&null==r[e.TableDataProperties.TableHeaders]||(r=Office.manufactureTableData(r)),r=o(r,n);else{if(2===t.length){(r={})[e.TableDataProperties.TableRows]=t[0],r[e.TableDataProperties.TableHeaders]=t[1],r=Office.manufactureTableData(r)}else r=t;r=o(r,n)}return r}}(e.DataCoercion||(e.DataCoercion={}))}(OSF||(OSF={})),function(e){!function(e){!function(e){e.CoercionType="CoerceType"}(e.GetDataKeys||(e.GetDataKeys={})),function(e){e.CoercionType="CoerceType",e.Data="Data",e.ImageLeft="ImageLeft",e.ImageTop="ImageTop",e.ImageWidth="ImageWidth",e.ImageHeight="ImageHeight"}(e.SetDataKeys||(e.SetDataKeys={})),function(e){e.Html="html",e.Ooxml="ooxml",e.SlideRange="slideRange",e.Text="text",e.Table="table",e.Matrix="matrix",e.Image="image",e.XmlSvg="xmlSvg"}(e.CoercionTypeKeys||(e.CoercionTypeKeys={}))}(e.Marshaling||(e.Marshaling={})),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){!function(e){!function(e){e.MessageType="messageType",e.MessageContent="messageContent",e.MessageOrigin="messageOrigin"}(e.DialogMessageReceivedEventKeys||(e.DialogMessageReceivedEventKeys={})),function(e){e.MessageType="messageType",e.MessageContent="messageContent",e.MessageOrigin="messageOrigin"}(e.DialogParentMessageReceivedEventKeys||(e.DialogParentMessageReceivedEventKeys={})),function(e){e.MessageToParent="messageToParent",e.TargetOrigin="targetOrigin"}(e.MessageParentKeys||(e.MessageParentKeys={})),function(e){e.DialogNotificationShown="dialogNotificationShown"}(e.DialogNotificationShownEventType||(e.DialogNotificationShownEventType={})),function(e){e.MessageContent="messageContent",e.TargetOrigin="targetOrigin"}(e.SendMessageKeys||(e.SendMessageKeys={}))}(e.Marshaling||(e.Marshaling={}))}(OSF||(OSF={})),function(e){var t;!function(e){e.DialogParentMessageReceivedEvent="DialogParentMessageReceivedEvent",e.DialogMessageReceivedEvent="DialogMessageReceivedEvent"}(e.EventDescriptors||(e.EventDescriptors={})),e.DialogParentMessageEventDispatch=new e.EventDispatch([e.EventType.DialogParentMessageReceived,e.EventType.DialogParentEventReceived]),t||(t={}),e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){e.AsyncMethodCalls.define({method:e.AsyncMethods.DisplayDialogAsync,requiredArguments:[{name:e.ParameterNames.Url,types:["string"]}],supportedOptions:[{name:e.ParameterNames.Width,value:{types:["number"],defaultValue:99}},{name:e.ParameterNames.Height,value:{types:["number"],defaultValue:99}},{name:e.ParameterNames.RequireHTTPs,value:{types:["boolean"],defaultValue:!0}},{name:e.ParameterNames.DisplayInIframe,value:{types:["boolean"],defaultValue:!1}},{name:e.ParameterNames.HideTitle,value:{types:["boolean"],defaultValue:!1}},{name:e.ParameterNames.UseDeviceIndependentPixels,value:{types:["boolean"],defaultValue:!1}},{name:e.ParameterNames.PromptBeforeOpen,value:{types:["boolean"],defaultValue:!0}},{name:e.ParameterNames.EnforceAppDomain,value:{types:["boolean"],defaultValue:!0}},{name:e.ParameterNames.UrlNoHostInfo,value:{types:["boolean"],defaultValue:!1}}],privateStateCallbacks:[],onSucceeded:function(t,n,o){var r=t[e.ParameterNames.Id],i=t[e.ParameterNames.Data],a={},s=e.AsyncMethods.CloseAsync;e.OUtil.defineEnumerableProperty(a,s,{value:function(){var t=e.DispIdHost.CloseDialog;t(arguments,r,i,a)}});var l=e.SyncMethods.AddMessageHandler;if(e.OUtil.defineEnumerableProperty(a,l,{value:function(){var t=e.SyncMethodCalls.get(e.SyncMethods.AddMessageHandler),n=t.verifyAndExtractCall(arguments,a,i),o=n[e.ParameterNames.EventType],r=n[e.ParameterNames.Handler];return i.addEventHandlerAndFireQueuedEvent(o,r)}}),!0===e.EnableSendMessageDialogAPI){var c=e.SyncMethods.SendMessage;e.OUtil.defineEnumerableProperty(a,c,{value:function(){var t=e.DispIdHost.SendMessage;return t(arguments,i,a)}})}if(!0===e.EnableMessageChildDialogAPI){var u=e.SyncMethods.MessageChild;e.OUtil.defineEnumerableProperty(a,u,{value:function(){var t=e.DispIdHost.SendMessage;return t(arguments,i,a)}})}return a},checkCallArgs:function(t,n,o){return t[e.ParameterNames.Width]<=0&&(t[e.ParameterNames.Width]=1),!t[e.ParameterNames.UseDeviceIndependentPixels]&&t[e.ParameterNames.Width]>100&&(t[e.ParameterNames.Width]=99),t[e.ParameterNames.Height]<=0&&(t[e.ParameterNames.Height]=1),!t[e.ParameterNames.UseDeviceIndependentPixels]&&t[e.ParameterNames.Height]>100&&(t[e.ParameterNames.Height]=99),t[e.ParameterNames.RequireHTTPs]||(t[e.ParameterNames.RequireHTTPs]=!0),t}}),e.AsyncMethodCalls.define({method:e.AsyncMethods.CloseAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[]}),e.SyncMethodCalls.define({method:e.SyncMethods.MessageParent,requiredArguments:[{name:e.ParameterNames.MessageToParent,types:["string","number","boolean"]}],supportedOptions:[{name:e.ParameterNames.TargetOrigin,value:{types:["string"],defaultValue:""}}]}),e.SyncMethodCalls.define({method:e.SyncMethods.AddMessageHandler,requiredArguments:[{name:e.ParameterNames.EventType,enum:e.EventType,verify:function(e,t,n){return n.supportsEvent(e)}},{name:e.ParameterNames.Handler,types:["function"]}],supportedOptions:[]}),e.SyncMethodCalls.define({method:e.SyncMethods.SendMessage,requiredArguments:[{name:e.ParameterNames.MessageContent,types:["string"]}],supportedOptions:[{name:e.ParameterNames.TargetOrigin,value:{types:["string"],defaultValue:""}}],privateStateCallbacks:[]})},defineSafeArrayParameterMapFunc:function(){e.HostParameterMap.define({type:e.EventDispId.dispidDialogMessageReceivedEvent,fromHost:[{name:e.EventDescriptors.DialogMessageReceivedEvent,value:e.HostParameterMap.self}],isComplexType:!0}),e.HostParameterMap.define({type:e.EventDescriptors.DialogMessageReceivedEvent,fromHost:[{name:e.PropertyDescriptors.MessageType,value:0},{name:e.PropertyDescriptors.MessageContent,value:1},{name:e.PropertyDescriptors.MessageOrigin,value:2}],isComplexType:!0}),e.HostParameterMap.define({type:e.EventDispId.dispidDialogParentMessageReceivedEvent,fromHost:[{name:e.EventDescriptors.DialogParentMessageReceivedEvent,value:e.HostParameterMap.self}],isComplexType:!0}),e.HostParameterMap.define({type:e.EventDescriptors.DialogParentMessageReceivedEvent,fromHost:[{name:e.PropertyDescriptors.MessageType,value:0},{name:e.PropertyDescriptors.MessageContent,value:1},{name:e.PropertyDescriptors.MessageOrigin,value:2}],isComplexType:!0})},defineWebParameterMapFunc:function(){e.HostParameterMap.define({type:e.EventDispId.dispidDialogMessageReceivedEvent,fromHost:[{name:e.EventDescriptors.DialogMessageReceivedEvent,value:e.HostParameterMap.self}]}),e.HostParameterMap.addComplexType(e.EventDescriptors.DialogMessageReceivedEvent),e.HostParameterMap.define({type:e.EventDescriptors.DialogMessageReceivedEvent,fromHost:[{name:e.PropertyDescriptors.MessageType,value:e.Marshaling.DialogMessageReceivedEventKeys.MessageType},{name:e.PropertyDescriptors.MessageContent,value:e.Marshaling.DialogMessageReceivedEventKeys.MessageContent},{name:e.PropertyDescriptors.MessageOrigin,value:e.Marshaling.DialogMessageReceivedEventKeys.MessageOrigin}]}),e.HostParameterMap.define({type:e.EventDispId.dispidDialogParentMessageReceivedEvent,fromHost:[{name:e.EventDescriptors.DialogParentMessageReceivedEvent,value:e.HostParameterMap.self}]}),e.HostParameterMap.addComplexType(e.EventDescriptors.DialogParentMessageReceivedEvent),e.HostParameterMap.define({type:e.EventDescriptors.DialogParentMessageReceivedEvent,fromHost:[{name:e.PropertyDescriptors.MessageType,value:e.Marshaling.DialogParentMessageReceivedEventKeys.MessageType},{name:e.PropertyDescriptors.MessageContent,value:e.Marshaling.DialogParentMessageReceivedEventKeys.MessageContent},{name:e.PropertyDescriptors.MessageOrigin,value:e.Marshaling.DialogMessageReceivedEventKeys.MessageOrigin}]}),e.HostParameterMap.define({type:144,toHost:[{name:e.ParameterNames.MessageToParent,value:e.Marshaling.MessageParentKeys.MessageToParent},{name:e.ParameterNames.TargetOrigin,value:e.Marshaling.MessageParentKeys.TargetOrigin}]}),e.HostParameterMap.define({type:145,toHost:[{name:e.ParameterNames.MessageContent,value:e.Marshaling.SendMessageKeys.MessageContent},{name:e.ParameterNames.TargetOrigin,value:e.Marshaling.MessageParentKeys.TargetOrigin}]})},initializeFunc:function(){var t=e.OUtil.isPopupWindow();e.EnableMessageChildDialogAPI=!0,"onenote"==e._OfficeAppFactory.getHostInfo().hostType?e.EnableSendMessageDialogAPI=!1:e.EnableSendMessageDialogAPI=!0;var n=Office.context.ui;if(e.OUtil.isDialog()){var o=e.SyncMethods.MessageParent;n[o]||e.OUtil.defineEnumerableProperty(n,o,{value:function(){var t=e.DispIdHost.MessageParent;return t(arguments,n)}});var r=e.SyncMethods.AddMessageHandler;n[r]||void 0===e.DialogParentMessageEventDispatch||e.DispIdHost.addEventSupport(n,e.DialogParentMessageEventDispatch,t),t&&e.WacDialogAction.registerMessageReceivedEvent()}else{var i;i=null!=e.EventType.DialogParentMessageReceived?new e.EventDispatch([e.EventType.DialogMessageReceived,e.EventType.DialogEventReceived,e.EventType.DialogParentMessageReceived]):new e.EventDispatch([e.EventType.DialogMessageReceived,e.EventType.DialogEventReceived]);var a=e.AsyncMethods.DisplayDialogAsync;n[a]||e.OUtil.defineEnumerableProperty(n,a,{value:function(){var t=e.DispIdHost.OpenDialog;t(arguments,i,n)}})}e.OUtil.finalizeProperties(n)}})}(OSF||(OSF={}));var OfficeExt,Office,DialogApiManager=function(){function e(){}return e.messageChildRichApiBridge=function(){if(!0===OSF.EnableMessageChildDialogAPI){var e=OSF.DispIdHost.SendMessage;return e(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(e){!function(e){e.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"}(e.ShowWindowDialogParameterKeys||(e.ShowWindowDialogParameterKeys={})),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=function(){function e(){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"]}return e.prototype.getOverlayElementCSS=function(){return this.overlayElementCSS.join(";")},e.prototype.getDialogNotificationPanelCSS=function(){return this.dialogNotificationPanelCSS.join(";")},e.prototype.getNewWindowNotificationTextPanelCSS=function(){return this.newWindowNotificationTextPanelCSS.join(";")},e.prototype.getNewWindowNotificationTextSpanCSS=function(){return this.newWindowNotificationTextSpanCSS.join(";")},e.prototype.getCrossZoneNotificationTextPanelCSS=function(){return this.crossZoneNotificationTextPanelCSS.join(";")},e.prototype.getDialogNotificationButtonPanelCSS=function(){return this.dialogNotificationButtonPanelCSS},e.prototype.getDialogButtonCSS=function(){return this.buttonStyleCSS.join(";")},e}();e.DefaultDialogCSSManager=a}(e.WacCommonUICssManager||(e.WacCommonUICssManager={})),function(t){var n=null,o=null,r=null,i=null,a="osfDialogInternal:action=closeDialog",s=null,l=!1,c=-1,u="messageParentKey",d=null,f="#ababab",p="#ffffff",h="newWindowNotificaiton",g="configureBrowserLink",m="dialogNotificationTextPanel",y={dispId:e.EventDispId.dispidDialogNotificationShownInAddinEvent,eventType:e.Marshaling.DialogNotificationShownEventType.DialogNotificationShown,onComplete:null,onCalling:null};function v(t,n){var o=n.message,r=n.targetOrigin;if(r)t.postMessage(o,r);else{var i=e._OfficeAppFactory.getOfficeAppContext().get_appDomains(),a=window.location.origin;if(a||(a=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),i)for(var s=0;s<i.length&&-1!==i[s].indexOf("://");s++)t.postMessage(o,i[s]);e.XdmCommunicationManager.checkUrlWithAppDomains(i,a)||t.postMessage(o,a)}}function b(){try{i&&i.id==h&&s&&s(12009)}catch(t){e.AppTelemetry&&e.AppTelemetry.logAppException("Error happened during executing displayDialogAsync callback."+t)}R()}function C(t,n){var o=!1,a=e.WacCommonUICssManager.getDialogCssManager(n);r=I(a),document.body.insertBefore(r,document.body.firstChild),(i=function(t,n){var o=document.createElement("div");o.style.cssText=t.getDialogNotificationPanelCSS(),D(o);var r=document.createElement("div");r.style.cssText=t.getCrossZoneNotificationTextPanelCSS(),r.id=m;var i=document.createElement("a");i.id=g,i.href="#",i.innerText=Strings.OfficeOM.L_NewWindowCrossZoneConfigureBrowserLink,i.setAttribute("onclick","window.open('https://support.microsoft.com/en-us/help/17479/windows-internet-explorer-11-change-security-privacy-settings', '_blank', 'fullscreen=1')");var a=document.createElement("span");if(Strings.OfficeOM.L_NewWindowCrossZone){var s=Strings.OfficeOM.L_NewWindowCrossZone.replace(/{1+}/gm,e.OUtil.getDomainForUrl(n)).split("{0}");a.appendChild(document.createTextNode(s[0])),a.appendChild(i),a.appendChild(document.createTextNode(s[1]))}return r.appendChild(a),o.appendChild(r),o}(a,t)).id="crossZoneNotification";var s=w(a),c=A(a,Strings.OfficeOM.L_DialogOK?Strings.OfficeOM.L_DialogOK:"OK");s.appendChild(c),i.appendChild(s),document.body.insertBefore(i,document.body.firstChild),l=!0,c.onclick=function(){R()},c.addEventListener("keydown",(function(e){9==e.keyCode?(document.getElementById(g).focus(),e.preventDefault(),e.stopPropagation()):13==e.keyCode&&(o=!0,e.preventDefault(),e.stopPropagation())}),!1),c.addEventListener("keyup",(function(e){13==e.keyCode&&o&&(o=!1,R(),e.preventDefault(),e.stopPropagation())}),!1),document.getElementById(g).addEventListener("keydown",(function(e){9==e.keyCode&&(c.focus(),e.preventDefault(),e.stopPropagation())}),!1),window.focus(),c.focus()}function _(t){if(t.source==n)try{var r=t.origin;if(!function(t,n,o){if(void 0===o&&(o=!0),!t||!n)return!1;var r=e.OUtil.parseUrl(t),i=e.OUtil.parseUrl(n),a=e._OfficeAppFactory.getOfficeAppContext().get_appDomains();if("https:"!==r.protocol)return!1;var s=r.protocol===i.protocol&&r.hostname===i.hostname&&r.port===i.port,l=e.XdmCommunicationManager.checkUrlWithAppDomains(a,t),c=s||l;return!c&&o&&(c=e.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(n,t)),c}(r,e._OfficeAppFactory.getOfficeAppContext().get_docUrl(),!0))throw new Error("Received a message from a dialog with an untrusted domain.");var i={};i[e.Marshaling.DialogMessageReceivedEventKeys.MessageType]=0,i[e.Marshaling.DialogMessageReceivedEventKeys.MessageContent]=t.data,i[e.Marshaling.DialogMessageReceivedEventKeys.MessageOrigin]=r,o(i)}catch(t){e.AppTelemetry&&e.AppTelemetry.logAppException("Error happened during receive message handler."+t)}}function O(t){var n=e._OfficeAppFactory.getId()+u;if(t.key==n)try{var r={};r[e.Marshaling.DialogMessageReceivedEventKeys.MessageType]=0,r[e.Marshaling.DialogMessageReceivedEventKeys.MessageContent]=t.newValue,r[e.Marshaling.DialogMessageReceivedEventKeys.MessageOrigin]=t.origin,o(r)}catch(t){e.AppTelemetry&&e.AppTelemetry.logAppException("Error happened during storage changed handler."+t)}}function S(t){var r=e._OfficeAppFactory.getHostInfo(),i=[r.hostType,r.hostPlatform,r.hostSpecificFileVersion,r.hostLocale,r.osfControlAppCorrelationId,"isDialog",r.disableLogging?"disableLogging":"",r.flags&e.HostInfoFlags.PublicAddin].join("$"),a=e._OfficeAppFactory.getOfficeAppContext();a.set_taskpaneUrl(window.location.origin),a.get_taskpaneUrl()||a.set_taskpaneUrl(window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""));var l=t.url;t[e.ShowWindowDialogParameterKeys.UrlNoHostInfo]||(l=e.OUtil.addHostInfoAsQueryParam(l,i));var u=JSON.parse(window.name);u.hostInfo=i;var d=__assign({},a);if(d._appName===e.AppName.ExcelWebApp){if(!d._settings&&d._settingsFunc){var f=d._settingsFunc();d._settings=Object.keys(f).map((function(e){return[e,f[e]]}))}if(!d._hostSettings&&d._hostSettingsFunc){var p=d._hostSettingsFunc();d._hostSettings=Object.keys(p).map((function(e){return[e,p[e]]}))}u.appContext=d}else u.appContext=a;var h=t[e.ShowWindowDialogParameterKeys.Width]*screen.width/100,g=t[e.ShowWindowDialogParameterKeys.Height]*screen.height/100,m="width="+h+", height="+g+", left="+(a.get_clientWindowWidth()/2-h/2)+", top="+(a.get_clientWindowHeight()/2-g/2)+",channelmode=no,directories=no,fullscreen=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,titlebar=yes,toolbar=no";if(null==(n=window.open(l,e.OUtil.serializeObjectToString(u),m)))return e.AppTelemetry.logAppCommonMessage("Encountered cross zone issue in displayDialogAsync api."),T(),C(l,r.hostType),void s(12011);e.OUtil.shouldUseLocalStorageToPassMessage()?window.addEventListener("storage",O):window.addEventListener("message",_),c=window.setInterval((function(){try{if(null==n||n.closed){window.clearInterval(c),e.OUtil.shouldUseLocalStorageToPassMessage()?window.removeEventListener("storage",O):window.removeEventListener("message",_);var t={};t[e.Marshaling.DialogMessageReceivedEventKeys.MessageType]=12006,o(t)}}catch(t){e.AppTelemetry&&e.AppTelemetry.logAppException("Error happened during check or handle window close."+t)}}),1e3),null!=s?s(0):e.AppTelemetry&&e.AppTelemetry.logAppException("showDialogCallback can not be null.")}function A(e,t){var n=document.createElement("input");n.setAttribute("type","button"),n.style.cssText=e.getDialogButtonCSS(),n.style.borderColor=f,n.style.backgroundColor=p,n.setAttribute("value",t);var o=function(){E(n)},r=function(){P(n)};return n.addEventListener("mouseover",o),n.addEventListener("focus",o),n.addEventListener("mouseout",r),n.addEventListener("focusout",r),n}function E(t){null!=d?(t.style.borderColor=d.HostButtonBorderColor,t.style.backgroundColor=d.HostButtonBackgroundColor):e.OUtil.getCommonUI()?(t.style.borderColor=e.OUtil.getCommonUI().HostButtonBorderColor,t.style.backgroundColor=e.OUtil.getCommonUI().HostButtonBackgroundColor):t.style.backgroundColor="#ccc"}function P(e){e.style.borderColor=f,e.style.backgroundColor=p}function R(){y.onCalling=function(e){T(),F(e)},e.WACDelegate.unregisterEventAsync(y)}function T(){null!=i&&(document.body.removeChild(i),i=null),null!=r&&(document.body.removeChild(r),r=null)}function I(e){var t=document.createElement("div");return t.style.cssText=e.getOverlayElementCSS(),t}function w(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 F(t){if(0!=t){var n=document.querySelectorAll(e._OfficeAppFactory.getInitializationHelper().getTabbableElements());e.OUtil.focusToFirstTabbable(n,!1)}}function D(e){e.setAttribute("role","dialog"),e.setAttribute("aria-describedby",m)}t.setHostThemeButtonStyle=function(t){var n=t.input;null!=n&&(d={HostButtonBorderColor:n[e.OUtil.HostThemeButtonStyleKeys.ButtonBorderColor],HostButtonBackgroundColor:n[e.OUtil.HostThemeButtonStyleKeys.ButtonBackgroundColor]}),t.completed()},t.removeEventListenersForDialog=function(t){!function(t){var n=this,o=function(){e._OfficeAppFactory.getWebAppState().focused||(e._OfficeAppFactory.getWebAppState().focused=!0),e.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.Select])},r=function(){e&&(e._OfficeAppFactory.getWebAppState().focused&&(e._OfficeAppFactory.getWebAppState().focused=!1),e.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.UnSelect]))},i=function(t){if(t.preventDefault=t.preventDefault||function(){t.returnValue=!1},117==t.keyCode&&(t.ctrlKey||t.metaKey)){t.preventDefault();var o=e.AgaveHostAction.CtrlF6Exit;t.shiftKey&&(o=e.AgaveHostAction.CtrlF6ExitShift),e.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,o])}else if(9==t.keyCode){t.preventDefault();var r=document.querySelectorAll(n._tabbableElements);e.OUtil.focusToNextTabbable(r,t.target||t.srcElement,t.shiftKey)||(n._hostInfo.isDialog?e.OUtil.focusToFirstTabbable(r,t.shiftKey):t.shiftKey?e.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.TabExitShift]):e.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.TabExit]))}else if(27==t.keyCode)t.preventDefault(),b(),e.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.EscExit]);else if(113==t.keyCode)t.preventDefault(),e.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.F2Exit]);else if((t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)&&t.keyCode>=1&&t.keyCode<=255){var i={keyCode:t.keyCode,shiftKey:t.shiftKey,altKey:t.altKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey};e.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n._webAppState.id,e.AgaveHostAction.KeyboardShortcuts,i])}},a=function(e){117==e.keyCode&&e.ctrlKey&&(e.preventDefault?e.preventDefault():e.returnValue=!1)};t?(e.OUtil.addEventListener(window,"focus",o),e.OUtil.addEventListener(window,"blur",r),e.OUtil.addEventListener(window,"keydown",i),e.OUtil.addEventListener(window,"keypress",a)):(e.OUtil.removeEventListener(window,"focus",o),e.OUtil.removeEventListener(window,"blur",r),e.OUtil.removeEventListener(window,"keydown",i),e.OUtil.removeEventListener(window,"keypress",a))}(!1),t.completed()},t.handleNewWindowDialog=function(t){try{if(!function(t){var n=e._OfficeAppFactory.getOfficeAppContext().get_appDomains(),o=t.url,r=e.XdmCommunicationManager.checkUrlWithAppDomains(n,o);if(!r)return e._OfficeAppFactory.getOfficeAppContext().get_docUrl()&&e.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(e._OfficeAppFactory.getOfficeAppContext().get_docUrl(),o);return r}(t))return void s(12004);if(!t[e.ShowWindowDialogParameterKeys.PromptBeforeOpen])return void S(t);l=!1;var n=!1,o=e._OfficeAppFactory.getHostInfo(),a=e.WacCommonUICssManager.getDialogCssManager(o.hostType),c=e.OUtil.formatString(Strings.OfficeOM.L_ShowWindowDialogNotification,e._OfficeAppFactory.getOfficeAppContext().get_addinName());r=I(a),document.body.insertBefore(r,document.body.firstChild),(i=function(e,t){var n=document.createElement("div");n.style.cssText=e.getDialogNotificationPanelCSS(),D(n);var o=document.createElement("div");o.style.cssText=e.getNewWindowNotificationTextPanelCSS(),o.id=m,"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}(a,c)).id=h;var u=w(a),d=A(a,Strings.OfficeOM.L_ShowWindowDialogNotificationAllow),f=A(a,Strings.OfficeOM.L_ShowWindowDialogNotificationIgnore);function p(t){y.onCalling=function(e){T(),F(e),s(12009)},e.WACDelegate.unregisterEventAsync(y),t.preventDefault(),t.stopPropagation()}u.appendChild(d),u.appendChild(f),i.appendChild(u),document.body.insertBefore(i,document.body.firstChild),d.onclick=function(e){S(t),l||R(),e.preventDefault(),e.stopPropagation()},f.onclick=p,d.addEventListener("keydown",(function(e){e.shiftKey&&9==e.keyCode&&(P(d),E(f),f.focus(),e.preventDefault(),e.stopPropagation())}),!1),f.addEventListener("keydown",(function(e){e.shiftKey||9!=e.keyCode?13==e.keyCode&&(n=!0,e.preventDefault(),e.stopPropagation()):(P(f),E(d),d.focus(),e.preventDefault(),e.stopPropagation())}),!1),f.addEventListener("keyup",(function(e){13==e.keyCode&&n&&(n=!1,p(e))}),!1),window.focus(),y.onCalling=function(e){d.focus()},e.WACDelegate.registerEventAsync(y)}catch(t){e.AppTelemetry&&e.AppTelemetry.logAppException("Exception happens at new window dialog."+t),s(5001)}},t.closeDialog=function(t){try{if(null!=n){var o=e._OfficeAppFactory.getOfficeAppContext().get_appDomains();if(o)for(var r=0;r<o.length&&-1!==o[r].indexOf("://");r++)n.postMessage(a,o[r]);null==n||n.closed||n.close(),e.OUtil.shouldUseLocalStorageToPassMessage()?window.removeEventListener("storage",O):window.removeEventListener("message",_),window.clearInterval(c),n=null,t(0)}else t(5001)}catch(n){e.AppTelemetry&&e.AppTelemetry.logAppException("Exception happens at close window dialog."+n),t(5001)}},t.messageParent=function(t){var n=t.hostCallArgs[e.ParameterNames.MessageToParent],o=t.hostCallArgs[e.ParameterNames.TargetOrigin]||null;if(e.OUtil.shouldUseLocalStorageToPassMessage())try{var r=e._OfficeAppFactory.getId()+u;window.localStorage.setItem(r,n)}catch(t){e.AppTelemetry&&e.AppTelemetry.logAppException("Error happened during messageParent method:"+t)}else v(window.opener,{message:n,targetOrigin:o})},t.sendMessage=function(t){if(null!=n){var o=t.hostCallArgs,r=o[e.ParameterNames.TargetOrigin]||null;delete o[e.ParameterNames.TargetOrigin],"string"!=typeof o&&(o=JSON.stringify(o)),v(n,{message:o,targetOrigin:r})}},t.postDialogMessage=v,t.registerMessageReceivedEvent=function(){window.addEventListener("message",(function(t){var n=t.origin;if(t.source==window.opener&&(!0===window.office_disable_receive_dialog_message_prompt||e.WacDialogAction.validateTaskpaneDomain(n,!0)))if("string"==typeof t.data&&t.data.indexOf(a)>-1)window.close();else{var o=t.data,r=typeof o;if(o&&("object"==r||"string"==r)){var i="string"==r?JSON.parse(o):o,s={};s[e.Marshaling.DialogMessageReceivedEventKeys.MessageContent]=i.messageContent,s[e.Marshaling.DialogMessageReceivedEventKeys.MessageOrigin]=t.origin;var l=e.manufactureEventArgs(e.EventType.DialogParentMessageReceived,null,s);e.DialogParentMessageEventDispatch.fireEvent(l)}}}))},t.setHandlerAndShowDialogCallback=function(e,t){o=e,s=t},t.escDismissDialogNotification=b,t.showCrossZoneNotification=C,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 e.SafeStorage?new e.SafeStorage(window.localStorage):window.localStorage},t.getSessionStorage=function(){return e.SafeStorage?new e.SafeStorage(window.sessionStorage):window.sessionStorage},t.getUrlProtocolHostnamePort=function(e){var t=e.port?":"+e.port:"";return e.protocol+"//"+e.hostname+t},t.validateTaskpaneDomain=function(t,n){try{if(!t)return!1;n||(n=!0);var o=window.location.origin;o||(o=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""));var r=e.OUtil.parseUrl(o,!0),i=e.OUtil.parseUrl(t,!0);if(!(r.protocol&&r.hostname&&i.protocol&&i.hostname&&void 0!==i.port))return!1;var a=(y=i,(m=r).hostname==y.hostname&&m.protocol==y.protocol&&function(e,t){var n="80",o="443";return e.port==t.port||""==e.port&&"http:"==e.protocol&&t.port==n||""==e.port&&"https:"==e.protocol&&t.port==o||""==t.port&&"http:"==t.protocol&&e.port==n||""==t.port&&"https:"==t.protocol&&e.port==o}(m,y)),s=!1;if(n&&(s=e.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(t,o)),a||s)return!0;var l=this.getLocalStorage(),c=this.getSessionStorage(),u="_trusts_"+(i.protocol+"//"+i.hostname+(i.port?":"+i.port:"")),d=this.getWithExpiry(l,u),f=this.getWithExpiry(c,u);if("true"===d)return!0;if("false"===f)return!1;var p=this.getUrlProtocolHostnamePort(i),h=this.getUrlProtocolHostnamePort(r),g='You are about to send and receive potentially sensitive information from "'+h+'". Only click OK if you trust the following website recieving the sensitive information: "'+p+'".';return Strings.OfficeOM.L_ConfirmDialogApiTrustsParent&&(g=Strings.OfficeOM.L_ConfirmDialogApiTrustsParent.replace("{0}",h).replace("{1}",p)),window.confirm(g)?(this.setWithExpiry(l,u,"true"),this.setWithExpiry(c,u,"true"),!0):(this.setWithExpiry(l,u,"false"),this.setWithExpiry(c,u,"false"),!1)}catch(t){return e.AppTelemetry&&e.AppTelemetry.logAppException("Error happened during validateTaskpaneDomain method:"+t),!1}var m,y}}(e.WacDialogAction||(e.WacDialogAction={}))}(OSF||(OSF={})),function(e){!function(t){t.openDialog=function(t){try{t.onCalling&&t.onCalling();var n=e.SafeArrayDelegate.getOnAfterRegisterEvent(!0,t);e._OfficeAppFactory.getClientHostController().openDialog(t.dispId,void 0,t.targetId,(function(n,o){t.onEvent&&t.onEvent(o),e.AppTelemetry&&e.AppTelemetry.onEventDone(t.dispId)}),n)}catch(n){e.SafeArrayDelegate.onException(n,t)}},t.closeDialog=function(t){t.onCalling&&t.onCalling();var n=e.SafeArrayDelegate.getOnAfterRegisterEvent(!1,t);try{e._OfficeAppFactory.getClientHostController().closeDialog(t.dispId,void 0,t.targetId,n)}catch(n){e.SafeArrayDelegate.onException(n,t)}},t.messageParent=function(t){try{t.onCalling&&t.onCalling();var n=(new Date).getTime(),o=e._OfficeAppFactory.getClientHostController().messageParent(t.hostCallArgs);return t.onReceiving&&t.onReceiving(),e.AppTelemetry&&e.AppTelemetry.onMethodDone(t.dispId,t.hostCallArgs,Math.abs((new Date).getTime()-n),o),o}catch(t){return e.SafeArrayDelegate.onExceptionSyncMethod(t)}},t.sendMessage=function(t){try{t.onCalling&&t.onCalling();(new Date).getTime();var n=e._OfficeAppFactory.getClientHostController().sendMessage(t.hostCallArgs);return t.onReceiving&&t.onReceiving(),n}catch(t){return e.SafeArrayDelegate.onExceptionSyncMethod(t)}}}(e.SafeArrayDelegate||(e.SafeArrayDelegate={}))}(OSF||(OSF={})),function(e){!function(t){t.openDialog=function(n){var o="https://",r="http://",i=JSON.parse(n.targetId),a=t.getOnAfterRegisterEvent(!0,n);function s(t){var n={Error:t};try{a(0,n)}catch(t){e.AppTelemetry&&e.AppTelemetry.logAppException("Exception happens at showDialogCallback."+t)}}if(e.DialogShownStatus.hasDialogShown)s(12007);else{var l=i[e.ShowWindowDialogParameterKeys.Url].toLowerCase(),c=window.location.href.toLowerCase();if(e.AppTelemetry){var u=!1,d=!1,f=!1,p=!1,h="",g="";if(e.OUtil){var m=e.OUtil.parseUrl(l),y=e.OUtil.parseUrl(c);u=m.protocol===y.protocol&&m.hostname===y.hostname&&m.port===y.port,h=e.OUtil.getHostnamePortionForLogging(m.hostname),u?g=h:(g=e.OUtil.getHostnamePortionForLogging(y.hostname),d=e.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(l,c),f=e.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(c,l));var v=e._OfficeAppFactory.getOfficeAppContext().get_appDomains();p=e.XdmCommunicationManager.checkUrlWithAppDomains(v,l)}var b="openDialog isInline: "+i[e.ShowWindowDialogParameterKeys.DisplayInIframe].toString()+", taskpaneHostname: "+g+", dialogHostName: "+h+", isSameDomain: "+u.toString()+", parentIsSubdomain: "+d.toString()+", childIsSubdomain: "+f.toString()+", isAppDomain: "+p.toString();e.AppTelemetry.logAppCommonMessage(b)}null!=l&&l.substr(0,o.length)===o?i[e.ShowWindowDialogParameterKeys.DisplayInIframe]?(e.DialogShownStatus.isWindowDialog=!1,e.WACDelegate.registerEventAsync(n)):(e.DialogShownStatus.isWindowDialog=!0,e.WacDialogAction.setHandlerAndShowDialogCallback((function(t){n.onEvent&&n.onEvent(t),e.AppTelemetry&&e.AppTelemetry.onEventDone(n.dispId)}),s),e.WacDialogAction.handleNewWindowDialog(i)):l.substr(0,r.length)===r?s(12005):s(12003)}},t.validateTaskpaneDomain=function(t,n){return e.WacDialogAction.validateTaskpaneDomain(t,n)},t.messageParent=function(t){var n=t.hostCallArgs.targetOrigin,o=!!n;if(o&&"*"!=n){var r=e.WacDialogAction.getLocalStorage(),i=e.WacDialogAction.getSessionStorage(),a="_trusts_",s=e.OUtil.parseUrl(n,!0);a+=s.protocol+"//"+s.hostname+(s.port?":"+s.port:""),e.WacDialogAction.setWithExpiry(r,a,"true"),e.WacDialogAction.setWithExpiry(i,a,"true")}if(null!=window.opener){if(!o){var l=e._OfficeAppFactory.getOfficeAppContext().get_taskpaneUrl();if(l){if(!e.WacDialogAction.validateTaskpaneDomain(l,!0)){var c="messageParent called but the taskpane domain is untrusted: "+l;throw e.AppTelemetry&&e.AppTelemetry.logAppException(c),new Error(c)}}else l=window.location.origin;t.hostCallArgs.targetOrigin=l}e.WacDialogAction.messageParent(t)}else{var u=window.location.origin;u||(u=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),o||(t.hostCallArgs.targetOrigin=u),e.WACDelegate.executeAsync(t)}},t.sendMessage=function(t){e.DialogShownStatus.hasDialogShown&&(e.DialogShownStatus.isWindowDialog?e.WacDialogAction.sendMessage(t):e.WACDelegate.executeAsync(t))},t.closeDialog=function(n){var o=t.getOnAfterRegisterEvent(!1,n);function r(t){var n={Error:t};try{o(0,n)}catch(t){e.AppTelemetry&&e.AppTelemetry.logAppException("Exception happens at closeDialogCallback."+t)}}e.DialogShownStatus.hasDialogShown?e.DialogShownStatus.isWindowDialog?(n.onCalling&&n.onCalling(),e.WacDialogAction.closeDialog(r)):e.WACDelegate.unregisterEventAsync(n):r(12006)}}(e.WACDelegate||(e.WACDelegate={}))}(OSF||(OSF={})),function(e){var t;t||(t={}),e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){},defineSafeArrayParameterMapFunc:function(){e.HostParameterMap.define({type:e.EventDispId.dispidDocumentSelectionChangedEvent})},defineWebParameterMapFunc:function(){e.HostParameterMap.define({type:e.EventDispId.dispidDocumentSelectionChangedEvent})},initializeFunc:function(){var t=Office.context.document;e.DispIdHost.addEventSupport(t,new e.EventDispatch([e.EventType.DocumentSelectionChanged,e.EventType.ActiveViewChanged]))}})}(OSF||(OSF={})),function(e){var t;t||(t={}),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(e){var t;!function(e){e.FeatureProperties="FeatureProperties",e.TcidEnabled="TcidEnabled",e.TcidVisible="TcidVisible"}(e.PropertyDescriptors||(e.PropertyDescriptors={})),function(t){function n(){e.HostParameterMap.define({type:e.PropertyDescriptors.FeatureProperties,fromHost:[{name:e.PropertyDescriptors.TcidEnabled,value:0},{name:e.PropertyDescriptors.TcidVisible,value:1}],isComplexType:!0}),e.HostParameterMap.define({type:146,toHost:[{name:e.ParameterNames.Tcid,value:0}]}),e.HostParameterMap.define({type:147,fromHost:[{name:e.PropertyDescriptors.FeatureProperties,value:e.HostParameterMap.self}],toHost:[{name:e.ParameterNames.Tcid,value:0}]})}e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){e.AsyncMethodCalls.define({method:e.AsyncMethods.ExecuteFeature,requiredArguments:[{name:e.ParameterNames.Tcid,types:["number"]}],privateStateCallbacks:[]}),e.AsyncMethodCalls.define({method:e.AsyncMethods.QueryFeature,requiredArguments:[{name:e.ParameterNames.Tcid,types:["number"]}],privateStateCallbacks:[]})},defineSafeArrayParameterMapFunc:n,defineWebParameterMapFunc:n,initializeFunc:function(){var t=Office.context.ui;e.DispIdHost.addAsyncMethods(t,[e.AsyncMethods.ExecuteFeature]),e.DispIdHost.addAsyncMethods(t,[e.AsyncMethods.QueryFeature])}})}(t||(t={}))}(OSF||(OSF={})),function(e){!function(e){!function(e){e.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){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}}throw OSF.Utility.createNotImplementedException()}}(e.extensionLifeCycle||(e.extensionLifeCycle={}))}(e.context||(e.context={})),function(e){e.close=function(e){OSF._OfficeAppFactory.getClientHostController().closeSdxDialog(e)},e.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)}}(e.ExtensionLifeCycle||(e.ExtensionLifeCycle={}))}(Office||(Office={})),function(e){var t=function(){function e(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}return Object.defineProperty(e.prototype,"size",{get:function(){return this.m_fileSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sliceCount",{get:function(){return Math.ceil(this.m_fileSize/this.m_sliceSize)},enumerable:!0,configurable:!0}),e.prototype.getSliceAsync=function(e,t){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.GetDocumentCopyChunkAsync,arguments,this,this.m_privateState)},e.prototype.closeAsync=function(e){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.ReleaseDocumentCopyAsync,arguments,this,this.m_privateState)},e}();e.File=t}(Office||(Office={})),function(e){!function(t){!function(t){t.getFileAsync=function(t,n,o){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.GetDocumentCopyAsync,arguments,e.context.document,void 0)}}(t.document||(t.document={}))}(e.context||(e.context={}))}(Office||(Office={})),function(e){!function(e){e.FileProperties="FileProperties",e.FileSliceProperties="FileSliceProperties"}(e.PropertyDescriptors||(e.PropertyDescriptors={})),function(e){e.Handle="FileHandle",e.FileSize="FileSize",e.SliceSize="sliceSize"}(e.FileProperties||(e.FileProperties={})),function(e){e.FileSliceOffset="fileSliceoffset"}(e.additionalParameter||(e.additionalParameter={})),function(e){!function(e){!function(e){e[e.Handle=0]="Handle",e[e.FileSize=1]="FileSize"}(e.FilePropertiesKeys||(e.FilePropertiesKeys={})),function(e){e[e.Data=0]="Data",e[e.SliceSize=1]="SliceSize"}(e.SlicePropertiesKeys||(e.SlicePropertiesKeys={})),function(e){e[e.Text=0]="Text",e[e.Compressed=1]="Compressed",e[e.Pdf=2]="Pdf"}(e.FileType||(e.FileType={})),function(e){e[e.FileType=0]="FileType",e[e.SliceSize=1]="SliceSize",e[e.Handle=2]="Handle",e[e.SliceIndex=3]="SliceIndex"}(e.ParameterKeys||(e.ParameterKeys={}))}(e.File||(e.File={}))}(e.Marshaling||(e.Marshaling={})),e.File||(e.File={}),e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){e.AsyncMethodCalls.define({method:e.AsyncMethods.GetDocumentCopyAsync,requiredArguments:[{name:e.ParameterNames.FileType,enum:Office.FileType}],supportedOptions:[{name:e.ParameterNames.SliceSize,value:{types:["number"],defaultValue:e.OUtil.getHostPlatform()==e.HostInfoPlatform.ios?65536:4194304}}],checkCallArgs:function(t,n,o){var r=t[e.ParameterNames.SliceSize];if(r<=0||r>4194304)throw 11002;return t},onSucceeded:function(t,n,o){return new Office.File(t[e.FileProperties.Handle],t[e.FileProperties.FileSize],o[e.ParameterNames.SliceSize])}}),e.AsyncMethodCalls.define({method:e.AsyncMethods.GetDocumentCopyChunkAsync,requiredArguments:[{name:e.ParameterNames.SliceIndex,types:["number"]}],privateStateCallbacks:[{name:e.FileProperties.Handle,value:function(t,n){return n[e.FileProperties.Handle]}},{name:e.FileProperties.SliceSize,value:function(t,n){return n[e.FileProperties.SliceSize]}}],checkCallArgs:function(t,n,o){var r=t[e.ParameterNames.SliceIndex];if(r<0||r>=n.sliceCount)throw 5008;return t[e.additionalParameter.FileSliceOffset]=parseInt((r*o[e.FileProperties.SliceSize]).toString()),t},onSucceeded:function(t,n,o){var r={};return e.OUtil.defineEnumerableProperties(r,{data:{value:e.OUtil.getHostPlatform()==e.HostInfoPlatform.mac?e.OUtil.shallowCopy(t[e.ParameterNames.Data]):t[e.ParameterNames.Data]},index:{value:o[e.ParameterNames.SliceIndex]},size:{value:t[e.FileProperties.SliceSize]}}),r}}),e.AsyncMethodCalls.define({method:e.AsyncMethods.ReleaseDocumentCopyAsync,privateStateCallbacks:[{name:e.FileProperties.Handle,value:function(t,n){return n[e.FileProperties.Handle]}}]})},defineSafeArrayParameterMapFunc:function(){e.HostParameterMap.define({type:e.PropertyDescriptors.FileProperties,fromHost:[{name:e.FileProperties.Handle,value:0},{name:e.FileProperties.FileSize,value:1}],isComplexType:!0}),e.HostParameterMap.define({type:e.PropertyDescriptors.FileSliceProperties,fromHost:[{name:e.ParameterNames.Data,value:0},{name:e.FileProperties.SliceSize,value:1}],isComplexType:!0}),e.HostParameterMap.define({type:e.ParameterNames.FileType,toHost:[{name:Office.FileType.Text,value:0},{name:Office.FileType.Compressed,value:5},{name:Office.FileType.Pdf,value:6}]}),e.HostParameterMap.define({type:77,toHost:[{name:e.ParameterNames.FileType,value:0}],fromHost:[{name:e.PropertyDescriptors.FileProperties,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:80,toHost:[{name:e.FileProperties.Handle,value:0},{name:e.additionalParameter.FileSliceOffset,value:1},{name:e.FileProperties.SliceSize,value:2}],fromHost:[{name:e.PropertyDescriptors.FileSliceProperties,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:81,toHost:[{name:e.FileProperties.Handle,value:0}]})},defineWebParameterMapFunc:function(){e.HostParameterMap.addComplexType(e.PropertyDescriptors.FileProperties),e.HostParameterMap.addComplexType(e.PropertyDescriptors.FileSliceProperties),e.HostParameterMap.define({type:e.PropertyDescriptors.FileProperties,fromHost:[{name:e.FileProperties.Handle,value:e.Marshaling.File.FilePropertiesKeys.Handle},{name:e.FileProperties.FileSize,value:e.Marshaling.File.FilePropertiesKeys.FileSize}]}),e.HostParameterMap.define({type:e.PropertyDescriptors.FileSliceProperties,fromHost:[{name:e.ParameterNames.Data,value:e.Marshaling.File.SlicePropertiesKeys.Data},{name:e.FileProperties.SliceSize,value:e.Marshaling.File.SlicePropertiesKeys.SliceSize}]}),e.HostParameterMap.define({type:e.ParameterNames.FileType,toHost:[{name:Office.FileType.Text,value:e.Marshaling.File.FileType.Text},{name:Office.FileType.Compressed,value:e.Marshaling.File.FileType.Compressed},{name:Office.FileType.Pdf,value:e.Marshaling.File.FileType.Pdf}]}),e.HostParameterMap.define({type:77,toHost:[{name:e.ParameterNames.FileType,value:e.Marshaling.File.ParameterKeys.FileType},{name:e.ParameterNames.SliceSize,value:e.Marshaling.File.ParameterKeys.SliceSize}],fromHost:[{name:e.PropertyDescriptors.FileProperties,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:80,toHost:[{name:e.FileProperties.Handle,value:e.Marshaling.File.ParameterKeys.Handle},{name:e.ParameterNames.SliceIndex,value:e.Marshaling.File.ParameterKeys.SliceIndex}],fromHost:[{name:e.PropertyDescriptors.FileSliceProperties,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:81,toHost:[{name:e.FileProperties.Handle,value:e.Marshaling.File.ParameterKeys.Handle}]})}})}(OSF||(OSF={})),function(e){var t=function(e){OSF.OUtil.defineEnumerableProperties(this,{url:{value:e[OSF.FilePropertiesDescriptor.Url]}})};e.FileProperties=t}(OfficeExt||(OfficeExt={})),function(e){e.FilePropertiesDescriptor={Url:"Url"},function(e){e.FilePropertiesDescriptor="FilePropertiesDescriptor"}(e.PropertyDescriptors||(e.PropertyDescriptors={})),function(e){!function(e){e[e.Properties=0]="Properties",e[e.Url=1]="Url"}(e.FilePropertiesKeys||(e.FilePropertiesKeys={}))}(e.Marshaling||(e.Marshaling={})),e.FileProperties||(e.FileProperties={}),e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){e.AsyncMethodCalls.define({method:e.AsyncMethods.GetFilePropertiesAsync,fromHost:[{name:e.PropertyDescriptors.FilePropertiesDescriptor,value:0}],requiredArguments:[],supportedOptions:[],onSucceeded:function(e,t,n){return new OfficeExt.FileProperties(e)}})},defineSafeArrayParameterMapFunc:function(){e.HostParameterMap.define({type:e.PropertyDescriptors.FilePropertiesDescriptor,fromHost:[{name:e.FilePropertiesDescriptor.Url,value:0}],isComplexType:!0}),e.HostParameterMap.define({type:86,fromHost:[{name:e.PropertyDescriptors.FilePropertiesDescriptor,value:e.HostParameterMap.self}]})},defineWebParameterMapFunc:function(){e.HostParameterMap.addComplexType(e.PropertyDescriptors.FilePropertiesDescriptor),e.HostParameterMap.define({type:e.PropertyDescriptors.FilePropertiesDescriptor,fromHost:[{name:e.FilePropertiesDescriptor.Url,value:e.Marshaling.FilePropertiesKeys.Url}]}),e.HostParameterMap.define({type:86,fromHost:[{name:e.PropertyDescriptors.FilePropertiesDescriptor,value:e.Marshaling.FilePropertiesKeys.Properties}]})},initializeFunc:function(){var t=Office.context.document;e.DispIdHost.addAsyncMethods(t,[e.AsyncMethods.GetFilePropertiesAsync])}})}(OSF||(OSF={})),function(e){var t;!function(t){function n(e){return e.id}e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){e.AsyncMethodCalls.define({method:e.AsyncMethods.ClearFormatsAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[{name:e.ParameterNames.Id,value:n}]}),e.AsyncMethodCalls.define({method:e.AsyncMethods.SetTableOptionsAsync,requiredArguments:[{name:e.ParameterNames.TableOptions,defaultValue:[]}],privateStateCallbacks:[{name:e.ParameterNames.Id,value:n}]}),e.AsyncMethodCalls.define({method:e.AsyncMethods.SetFormatsAsync,requiredArguments:[{name:e.ParameterNames.CellFormat,defaultValue:[]}],privateStateCallbacks:[{name:e.ParameterNames.Id,value:n}]})}})}(e.Internal||(e.Internal={})),function(e){!function(e){e.Id="BindingId",e.CellFormat="CellFormat",e.TableOptions="TableOptions"}(e.FormatKeys||(e.FormatKeys={})),function(e){e[e.headerRow=0]="headerRow",e[e.bandedRows=1]="bandedRows",e[e.firstColumn=2]="firstColumn",e[e.lastColumn=3]="lastColumn",e[e.bandedColumns=4]="bandedColumns",e[e.filterButton=5]="filterButton",e[e.style=6]="style",e[e.totalRow=7]="totalRow"}(e.TableOptionProperties||(e.TableOptionProperties={})),function(e){e[e.row=0]="row",e[e.column=1]="column"}(e.CellProperties||(e.CellProperties={})),function(e){e[e.alignHorizontal=1]="alignHorizontal",e[e.alignVertical=2]="alignVertical",e[e.backgroundColor=101]="backgroundColor",e[e.borderStyle=201]="borderStyle",e[e.borderColor=202]="borderColor",e[e.borderTopStyle=203]="borderTopStyle",e[e.borderTopColor=204]="borderTopColor",e[e.borderBottomStyle=205]="borderBottomStyle",e[e.borderBottomColor=206]="borderBottomColor",e[e.borderLeftStyle=207]="borderLeftStyle",e[e.borderLeftColor=208]="borderLeftColor",e[e.borderRightStyle=209]="borderRightStyle",e[e.borderRightColor=210]="borderRightColor",e[e.borderOutlineStyle=211]="borderOutlineStyle",e[e.borderOutlineColor=212]="borderOutlineColor",e[e.borderInlineStyle=213]="borderInlineStyle",e[e.borderInlineColor=214]="borderInlineColor",e[e.fontFamily=301]="fontFamily",e[e.fontStyle=302]="fontStyle",e[e.fontSize=303]="fontSize",e[e.fontUnderlineStyle=304]="fontUnderlineStyle",e[e.fontColor=305]="fontColor",e[e.fontDirection=306]="fontDirection",e[e.fontStrikethrough=307]="fontStrikethrough",e[e.fontSuperscript=308]="fontSuperscript",e[e.fontSubscript=309]="fontSubscript",e[e.fontNormal=310]="fontNormal",e[e.indentLeft=401]="indentLeft",e[e.indentRight=402]="indentRight",e[e.numberFormat=501]="numberFormat",e[e.width=701]="width",e[e.height=702]="height",e[e.wrapping=703]="wrapping"}(e.CellFormatProperties||(e.CellFormatProperties={})),function(e){e[e.none=0]="none",e[e.thin=1]="thin",e[e.medium=2]="medium",e[e.dashed=3]="dashed",e[e.dotted=4]="dotted",e[e.thick=5]="thick",e[e.double=6]="double",e[e.hair=7]="hair",e[e.mediumDashed=8]="mediumDashed",e[e.dashDot=9]="dashDot",e[e.mediumDashDot=10]="mediumDashDot",e[e.dashDotDot=11]="dashDotDot",e[e.mediumDashDotDot=12]="mediumDashDotDot",e[e.slantDashDot=13]="slantDashDot"}(e.BorderStyleType||(e.BorderStyleType={})),function(e){e[e.none=0]="none",e[e.black=1]="black",e[e.blue=2]="blue",e[e.gray=3]="gray",e[e.green=4]="green",e[e.orange=5]="orange",e[e.pink=6]="pink",e[e.purple=7]="purple",e[e.red=8]="red",e[e.teal=9]="teal",e[e.turquoise=10]="turquoise",e[e.violet=11]="violet",e[e.white=12]="white",e[e.yellow=13]="yellow",e[e.automatic=14]="automatic"}(e.ColorType||(e.ColorType={})),function(e){e[e.general=0]="general",e[e.left=1]="left",e[e.center=2]="center",e[e.right=3]="right",e[e.fill=4]="fill",e[e.justify=5]="justify",e[e.centerAcrossSelection=6]="centerAcrossSelection",e[e.distributed=7]="distributed"}(e.AlignHorizontalType||(e.AlignHorizontalType={})),function(e){e[e.top=0]="top",e[e.center=1]="center",e[e.bottom=2]="bottom",e[e.justify=3]="justify",e[e.distributed=4]="distributed"}(e.AlignVerticalType||(e.AlignVerticalType={})),function(e){e[e.regular=0]="regular",e[e.italic=1]="italic",e[e.bold=2]="bold",e[e.boldItalic=3]="boldItalic"}(e.FontStyleType||(e.FontStyleType={})),function(e){e[e.none=0]="none",e[e.single=1]="single",e[e.double=2]="double",e[e.singleAccounting=3]="singleAccounting",e[e.doubleAccounting=4]="doubleAccounting"}(e.FontUnderlineStyleType||(e.FontUnderlineStyleType={})),function(e){e[e.context=0]="context",e[e.leftToRight=1]="leftToRight",e[e.rightToLeft=2]="rightToLeft"}(e.FontDirectionType||(e.FontDirectionType={})),function(e){e[e.autoFit=-1]="autoFit"}(e.WidthType||(e.WidthType={})),function(e){e[e.autoFit=-1]="autoFit"}(e.HeightType||(e.HeightType={}))}(t=e.Marshaling||(e.Marshaling={})),function(n){var o,r;!function(e){e[e.headerRow=0]="headerRow",e[e.bandedRows=1]="bandedRows",e[e.firstColumn=2]="firstColumn",e[e.lastColumn=3]="lastColumn",e[e.bandedColumns=4]="bandedColumns",e[e.filterButton=5]="filterButton",e[e.style=6]="style",e[e.totalRow=7]="totalRow"}(o||(o={})),function(e){e[e.row=0]="row",e[e.column=1]="column"}(r||(r={}));var i={alignHorizontal:{text:"alignHorizontal",type:1},alignVertical:{text:"alignVertical",type:2},backgroundColor:{text:"backgroundColor",type:101},borderStyle:{text:"borderStyle",type:201},borderColor:{text:"borderColor",type:202},borderTopStyle:{text:"borderTopStyle",type:203},borderTopColor:{text:"borderTopColor",type:204},borderBottomStyle:{text:"borderBottomStyle",type:205},borderBottomColor:{text:"borderBottomColor",type:206},borderLeftStyle:{text:"borderLeftStyle",type:207},borderLeftColor:{text:"borderLeftColor",type:208},borderRightStyle:{text:"borderRightStyle",type:209},borderRightColor:{text:"borderRightColor",type:210},borderOutlineStyle:{text:"borderOutlineStyle",type:211},borderOutlineColor:{text:"borderOutlineColor",type:212},borderInlineStyle:{text:"borderInlineStyle",type:213},borderInlineColor:{text:"borderInlineColor",type:214},fontFamily:{text:"fontFamily",type:301},fontStyle:{text:"fontStyle",type:302},fontSize:{text:"fontSize",type:303},fontUnderlineStyle:{text:"fontUnderlineStyle",type:304},fontColor:{text:"fontColor",type:305},fontDirection:{text:"fontDirection",type:306},fontStrikethrough:{text:"fontStrikethrough",type:307},fontSuperscript:{text:"fontSuperscript",type:308},fontSubscript:{text:"fontSubscript",type:309},fontNormal:{text:"fontNormal",type:310},indentLeft:{text:"indentLeft",type:401},indentRight:{text:"indentRight",type:402},numberFormat:{text:"numberFormat",type:501},width:{text:"width",type:701},height:{text:"height",type:702},wrapping:{text:"wrapping",type:703}},a=[{name:"none",value:0},{name:"thin",value:1},{name:"medium",value:2},{name:"dashed",value:3},{name:"dotted",value:4},{name:"thick",value:5},{name:"double",value:6},{name:"hair",value:7},{name:"medium dashed",value:8},{name:"dash dot",value:9},{name:"medium dash dot",value:10},{name:"dash dot dot",value:11},{name:"medium dash dot dot",value:12},{name:"slant dash dot",value:13}],s=[{name:"none",value:0},{name:"black",value:1},{name:"blue",value:2},{name:"gray",value:3},{name:"green",value:4},{name:"orange",value:5},{name:"pink",value:6},{name:"purple",value:7},{name:"red",value:8},{name:"teal",value:9},{name:"turquoise",value:10},{name:"violet",value:11},{name:"white",value:12},{name:"yellow",value:13},{name:"automatic",value:14}];e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){e.AsyncMethodCalls.define({method:e.AsyncMethods.SetDataAsync,requiredArguments:[{name:e.ParameterNames.Data,types:["string","object","number","boolean"]}],supportedOptions:[{name:e.ParameterNames.CoercionType,value:{enum:Office.CoercionType,calculate:function(t){return e.DataCoercion.determineCoercionType(t[e.ParameterNames.Data])}}},{name:e.ParameterNames.Rows,value:{types:["object","string"],defaultValue:null}},{name:e.ParameterNames.Columns,value:{types:["object"],defaultValue:null}},{name:e.ParameterNames.StartRow,value:{types:["number"],defaultValue:0}},{name:e.ParameterNames.StartColumn,value:{types:["number"],defaultValue:0}},{name:e.ParameterNames.CellFormat,value:{types:["object"],defaultValue:[]}},{name:e.ParameterNames.TableOptions,value:{types:["object"],defaultValue:[]}}],checkCallArgs:function(t,n,o){var r=e.ParameterNames;if(0==t[r.StartRow]&&0==t[r.StartColumn]&&e.OUtil.isArray(t[r.CellFormat])&&0===t[r.CellFormat].length&&e.OUtil.isArray(t[r.TableOptions])&&0===t[r.TableOptions].length&&(delete t[r.StartRow],delete t[r.StartColumn],delete t[r.CellFormat],delete t[r.TableOptions]),t[r.CoercionType]!=e.DataCoercion.getCoercionDefaultForBinding(n.type)&&(t[r.StartRow]&&0!=t[r.StartRow]||t[r.StartColumn]&&0!=t[r.StartColumn]||t[r.CellFormat]||t[r.TableOptions]))throw 1002;return t},privateStateCallbacks:[{name:e.ParameterNames.Id,value:function(e){return e.id}}]})},defineSafeArrayParameterMapFunc:function(){e.HostParameterMap.define({type:87,toHost:[{name:e.ParameterNames.Id,value:0}]}),e.HostParameterMap.define({type:88,toHost:[{name:e.ParameterNames.Id,value:0},{name:e.ParameterNames.TableOptions,value:1}]}),e.HostParameterMap.define({type:89,toHost:[{name:e.ParameterNames.Id,value:0},{name:e.ParameterNames.CellFormat,value:1}]}),e.HostParameterMap.define({type:71,toHost:[{name:e.ParameterNames.Id,value:0},{name:e.ParameterNames.CoercionType,value:1},{name:e.ParameterNames.Data,value:2},{name:"offset",value:3},{name:e.ParameterNames.CellFormat,value:4},{name:e.ParameterNames.TableOptions,value:5}]}),e.HostParameterMap.define({type:i.alignHorizontal.text,toHost:[{name:"general",value:0},{name:"left",value:1},{name:"center",value:2},{name:"right",value:3},{name:"fill",value:4},{name:"justify",value:5},{name:"center across selection",value:6},{name:"distributed",value:7}]}),e.HostParameterMap.define({type:i.alignVertical.text,toHost:[{name:"top",value:0},{name:"center",value:1},{name:"bottom",value:2},{name:"justify",value:3},{name:"distributed",value:4}]}),e.HostParameterMap.define({type:i.backgroundColor.text,toHost:s}),e.HostParameterMap.define({type:i.borderStyle.text,toHost:a}),e.HostParameterMap.define({type:i.borderColor.text,toHost:s}),e.HostParameterMap.define({type:i.borderTopStyle.text,toHost:a}),e.HostParameterMap.define({type:i.borderTopColor.text,toHost:s}),e.HostParameterMap.define({type:i.borderBottomStyle.text,toHost:a}),e.HostParameterMap.define({type:i.borderBottomColor.text,toHost:s}),e.HostParameterMap.define({type:i.borderLeftStyle.text,toHost:a}),e.HostParameterMap.define({type:i.borderLeftColor.text,toHost:s}),e.HostParameterMap.define({type:i.borderRightStyle.text,toHost:a}),e.HostParameterMap.define({type:i.borderRightColor.text,toHost:s}),e.HostParameterMap.define({type:i.borderOutlineStyle.text,toHost:a}),e.HostParameterMap.define({type:i.borderOutlineColor.text,toHost:s}),e.HostParameterMap.define({type:i.borderInlineStyle.text,toHost:a}),e.HostParameterMap.define({type:i.borderInlineColor.text,toHost:s}),e.HostParameterMap.define({type:i.fontStyle.text,toHost:[{name:"regular",value:0},{name:"italic",value:1},{name:"bold",value:2},{name:"bold italic",value:3}]}),e.HostParameterMap.define({type:i.fontUnderlineStyle.text,toHost:[{name:"none",value:0},{name:"single",value:1},{name:"double",value:2},{name:"single accounting",value:3},{name:"double accounting",value:4}]}),e.HostParameterMap.define({type:i.fontColor.text,toHost:s}),e.HostParameterMap.define({type:i.fontDirection.text,toHost:[{name:"context",value:0},{name:"left-to-right",value:1},{name:"right-to-left",value:2}]}),e.HostParameterMap.define({type:i.width.text,toHost:[{name:"auto fit",value:-1}]}),e.HostParameterMap.define({type:i.height.text,toHost:[{name:"auto fit",value:-1}]}),e.HostParameterMap.define({type:e.ParameterNames.TableOptions,toHost:[{name:"headerRow",value:0},{name:"bandedRows",value:1},{name:"firstColumn",value:2},{name:"lastColumn",value:3},{name:"bandedColumns",value:4},{name:"filterButton",value:5},{name:"style",value:6},{name:"totalRow",value:7}]}),e.HostParameterMap.dynamicTypes[e.ParameterNames.CellFormat]={toHost:function(t){for(var n in t)t[n].format&&(t[n].format=e.HostParameterMap.doMapValues(t[n].format,"toHost"));return t},fromHost:function(e){return e}},e.HostParameterMap.setDynamicType(e.ParameterNames.CellFormat,{toHost:function(e){var t=[];for(var n in e){var o=e[n],a=[];if(void 0!==o.cells){var s,l=o.cells;if("object"==typeof o.cells)for(var c in s=[],l)void 0!==r[c]&&(s[r[c]]=l[c]);else s=l;a[0]=s}if(o.format){var u=o.format,d=[];for(var f in u)void 0!==i[f]&&d.push([i[f].type,u[f]]);a[1]=d}t[n]=a}return t},fromHost:function(e){return e}}),e.HostParameterMap.setDynamicType(e.ParameterNames.TableOptions,{toHost:function(e){var t=[];for(var n in e)void 0!==o[n]&&(t[o[n]]=e[n]);return t},fromHost:function(e){return e}})},defineWebParameterMapFunc:function(){var n=t.AlignHorizontalType,o=t.AlignVerticalType,r=t.BorderStyleType,i=t.CellProperties,a=(t.CellFormatProperties,t.ColorType),s=t.FontDirectionType,l=t.FontStyleType,c=t.FontUnderlineStyleType,u=t.HeightType,d=t.FormatKeys,f=t.TableOptionProperties,p=t.WidthType,h={alignHorizontal:{text:"alignHorizontal",type:t.CellFormatProperties.alignHorizontal},alignVertical:{text:"alignVertical",type:t.CellFormatProperties.alignVertical},backgroundColor:{text:"backgroundColor",type:t.CellFormatProperties.backgroundColor},borderStyle:{text:"borderStyle",type:t.CellFormatProperties.borderStyle},borderColor:{text:"borderColor",type:t.CellFormatProperties.borderColor},borderTopStyle:{text:"borderTopStyle",type:t.CellFormatProperties.borderTopStyle},borderTopColor:{text:"borderTopColor",type:t.CellFormatProperties.borderTopColor},borderBottomStyle:{text:"borderBottomStyle",type:t.CellFormatProperties.borderBottomStyle},borderBottomColor:{text:"borderBottomColor",type:t.CellFormatProperties.borderBottomColor},borderLeftStyle:{text:"borderLeftStyle",type:t.CellFormatProperties.borderLeftStyle},borderLeftColor:{text:"borderLeftColor",type:t.CellFormatProperties.borderLeftColor},borderRightStyle:{text:"borderRightStyle",type:t.CellFormatProperties.borderRightStyle},borderRightColor:{text:"borderRightColor",type:t.CellFormatProperties.borderRightColor},borderOutlineStyle:{text:"borderOutlineStyle",type:t.CellFormatProperties.borderOutlineStyle},borderOutlineColor:{text:"borderOutlineColor",type:t.CellFormatProperties.borderOutlineColor},borderInlineStyle:{text:"borderInlineStyle",type:t.CellFormatProperties.borderInlineStyle},borderInlineColor:{text:"borderInlineColor",type:t.CellFormatProperties.borderInlineColor},fontFamily:{text:"fontFamily",type:t.CellFormatProperties.fontFamily},fontStyle:{text:"fontStyle",type:t.CellFormatProperties.fontStyle},fontSize:{text:"fontSize",type:t.CellFormatProperties.fontSize},fontUnderlineStyle:{text:"fontUnderlineStyle",type:t.CellFormatProperties.fontUnderlineStyle},fontColor:{text:"fontColor",type:t.CellFormatProperties.fontColor},fontDirection:{text:"fontDirection",type:t.CellFormatProperties.fontDirection},fontStrikethrough:{text:"fontStrikethrough",type:t.CellFormatProperties.fontStrikethrough},fontSuperscript:{text:"fontSuperscript",type:t.CellFormatProperties.fontSuperscript},fontSubscript:{text:"fontSubscript",type:t.CellFormatProperties.fontSubscript},fontNormal:{text:"fontNormal",type:t.CellFormatProperties.fontNormal},indentLeft:{text:"indentLeft",type:t.CellFormatProperties.indentLeft},indentRight:{text:"indentRight",type:t.CellFormatProperties.indentRight},numberFormat:{text:"numberFormat",type:t.CellFormatProperties.numberFormat},width:{text:"width",type:t.CellFormatProperties.width},height:{text:"height",type:t.CellFormatProperties.height},wrapping:{text:"wrapping",type:t.CellFormatProperties.wrapping}},g=[{name:"none",value:r.none},{name:"thin",value:r.thin},{name:"medium",value:r.medium},{name:"dashed",value:r.dashed},{name:"dotted",value:r.dotted},{name:"thick",value:r.thick},{name:"double",value:r.double},{name:"hair",value:r.hair},{name:"medium dashed",value:r.mediumDashed},{name:"dash dot",value:r.dashDot},{name:"medium dash dot",value:r.mediumDashDot},{name:"dash dot dot",value:r.dashDotDot},{name:"medium dash dot dot",value:r.mediumDashDotDot},{name:"slant dash dot",value:r.slantDashDot}],m=[{name:"none",value:a.none},{name:"black",value:a.black},{name:"blue",value:a.blue},{name:"gray",value:a.gray},{name:"green",value:a.green},{name:"orange",value:a.orange},{name:"pink",value:a.pink},{name:"purple",value:a.purple},{name:"red",value:a.red},{name:"teal",value:a.teal},{name:"turquoise",value:a.turquoise},{name:"violet",value:a.violet},{name:"white",value:a.white},{name:"yellow",value:a.yellow},{name:"automatic",value:a.automatic}];e.HostParameterMap.define({type:e.WACDelegate.UniqueArguments.ClearFormats,toHost:[{name:e.ParameterNames.Id,value:t.FormatKeys.Id}]}),e.HostParameterMap.define({type:87,toHost:[{name:e.WACDelegate.UniqueArguments.ClearFormats,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:e.WACDelegate.UniqueArguments.SetFormats,toHost:[{name:e.ParameterNames.Id,value:t.FormatKeys.Id},{name:e.ParameterNames.CellFormat,value:t.FormatKeys.CellFormat},{name:e.ParameterNames.TableOptions,value:t.FormatKeys.TableOptions}]}),e.HostParameterMap.define({type:88,toHost:[{name:e.WACDelegate.UniqueArguments.SetFormats,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:89,toHost:[{name:e.WACDelegate.UniqueArguments.SetFormats,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:e.WACDelegate.UniqueArguments.SetData,toHost:[{name:e.ParameterNames.Id,value:d.Id},{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.CellFormat,value:d.CellFormat},{name:e.ParameterNames.TableOptions,value:d.TableOptions}]}),e.HostParameterMap.define({type:71,toHost:[{name:e.WACDelegate.UniqueArguments.SetData,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:h.alignHorizontal.text,toHost:[{name:"general",value:n.general},{name:"left",value:n.left},{name:"center",value:n.center},{name:"right",value:n.right},{name:"fill",value:n.fill},{name:"justify",value:n.justify},{name:"center across selection",value:n.centerAcrossSelection},{name:"distributed",value:n.distributed}]}),e.HostParameterMap.define({type:h.alignVertical.text,toHost:[{name:"top",value:o.top},{name:"center",value:o.center},{name:"bottom",value:o.bottom},{name:"justify",value:o.justify},{name:"distributed",value:o.distributed}]}),e.HostParameterMap.define({type:h.backgroundColor.text,toHost:m}),e.HostParameterMap.define({type:h.borderStyle.text,toHost:g}),e.HostParameterMap.define({type:h.borderColor.text,toHost:m}),e.HostParameterMap.define({type:h.borderTopStyle.text,toHost:g}),e.HostParameterMap.define({type:h.borderTopColor.text,toHost:m}),e.HostParameterMap.define({type:h.borderBottomStyle.text,toHost:g}),e.HostParameterMap.define({type:h.borderBottomColor.text,toHost:m}),e.HostParameterMap.define({type:h.borderLeftStyle.text,toHost:g}),e.HostParameterMap.define({type:h.borderLeftColor.text,toHost:m}),e.HostParameterMap.define({type:h.borderRightStyle.text,toHost:g}),e.HostParameterMap.define({type:h.borderRightColor.text,toHost:m}),e.HostParameterMap.define({type:h.borderOutlineStyle.text,toHost:g}),e.HostParameterMap.define({type:h.borderOutlineColor.text,toHost:m}),e.HostParameterMap.define({type:h.borderInlineStyle.text,toHost:g}),e.HostParameterMap.define({type:h.borderInlineColor.text,toHost:m}),e.HostParameterMap.define({type:h.fontStyle.text,toHost:[{name:"regular",value:l.regular},{name:"italic",value:l.italic},{name:"bold",value:l.bold},{name:"bold italic",value:l.boldItalic}]}),e.HostParameterMap.define({type:h.fontUnderlineStyle.text,toHost:[{name:"none",value:c.none},{name:"single",value:c.single},{name:"double",value:c.double},{name:"single accounting",value:c.singleAccounting},{name:"double accounting",value:c.doubleAccounting}]}),e.HostParameterMap.define({type:h.fontColor.text,toHost:m}),e.HostParameterMap.define({type:h.fontDirection.text,toHost:[{name:"context",value:s.context},{name:"left-to-right",value:s.leftToRight},{name:"right-to-left",value:s.rightToLeft}]}),e.HostParameterMap.define({type:h.width.text,toHost:[{name:"auto fit",value:p.autoFit}]}),e.HostParameterMap.define({type:h.height.text,toHost:[{name:"auto fit",value:u.autoFit}]}),e.HostParameterMap.define({type:e.ParameterNames.TableOptions,toHost:[{name:"headerRow",value:f.headerRow},{name:"bandedRows",value:f.bandedRows},{name:"firstColumn",value:f.firstColumn},{name:"lastColumn",value:f.lastColumn},{name:"bandedColumns",value:f.bandedColumns},{name:"filterButton",value:f.filterButton},{name:"style",value:f.style},{name:"totalRow",value:f.totalRow}]}),e.HostParameterMap.dynamicTypes[e.ParameterNames.CellFormat]={toHost:function(t){for(var n in t)t[n].format&&(t[n].format=e.HostParameterMap.doMapValues(t[n].format,"toHost"));return t},fromHost:function(e){return e}},e.HostParameterMap.setDynamicType(e.ParameterNames.CellFormat,{toHost:function(e){var t=[];for(var n in e){var o=e[n],r=[];if(void 0!==o.cells){var a,s=o.cells;if("object"==typeof o.cells)for(var l in a=[],s)void 0!==i[l]&&(a[i[l]]=s[l]);else a=s;r[0]=a}if(o.format){var c=o.format,u=[];for(var d in c)void 0!==h[d]&&u.push([h[d].type,c[d]]);r[1]=u}t[n]=r}return t},fromHost:function(e){return e}}),e.HostParameterMap.setDynamicType(e.ParameterNames.TableOptions,{toHost:function(e){var t=[];for(var n in e)void 0!==f[n]&&(t[f[n]]=e[n]);return t},fromHost:function(e){return e}}),n=null,o=null,r=null,null,a=null,s=null,l=null,c=null,u=null,d=null,p=null}})}(e.Formats||(e.Formats={}))}(OSF||(OSF={})),function(e){!function(t){!function(t){function n(t){var n=0;switch(t){case e.CoercionType.Text:n=0;break;case e.CoercionType.Matrix:n=1;break;case e.CoercionType.Table:n=2;break;case e.CoercionType.Html:n=3;break;case e.CoercionType.Ooxml:n=4;break;case e.CoercionType.OoxmlPackage:n=5;break;case e.CoercionType.PdfFile:n=6;break;case e.CoercionType.SlideRange:n=7;break;case"image":n=8;break;case"xmlSvg":n=9}return n}function o(t){var n=0;switch(t){case e.ValueFormat.Unformatted:n=0;break;case e.ValueFormat.Formatted:n=1}return n}function r(t){var n=0;switch(t){case e.FilterType.All:n=0;break;case e.FilterType.OnlyVisible:n=1}return n}t.setSelectedDataAsync=function(t,o,r){var i=null==o.coercionType?OSF.DataCoercion.determineCoercionType(t):o.coercionType;"function"==typeof o&&(r=o);var a={toSafeArrayHost:function(){var r=OSF._OfficeAppFactory.getHostInfo();return r.hostType.toLowerCase()==e.HostType.Word.toLowerCase()||r.hostType.toLowerCase()==e.HostType.PowerPoint.toLowerCase()||r.hostType.toLowerCase()==e.HostType.OneNote.toLowerCase()||r.hostType.toLowerCase()==e.HostType.Visio.toLowerCase()||"image"==i||"xmlSvg"==i?[n(i),OSF.DataCoercion.serializeDynamicData(t),null!=o.imageLeft&&o.imageLeft,null!=o.imageTop&&o.imageTop,null!=o.imageWidth&&o.imageWidth,null!=o.imageHeight&&o.imageHeight]:r.hostType.toLowerCase()==e.HostType.Excel.toLowerCase()?[n(i),OSF.DataCoercion.serializeDynamicData(t),null==o.cellFormat?[]:o.cellFormat,null==o.tableOptions?[]:o.tableOptions,null!=o.imageWidth&&o.imageWidth,null!=o.imageHeight&&o.imageHeight]:[n(i),OSF.DataCoercion.serializeDynamicData(t),null==o.cellFormat?[]:o.cellFormat,null==o.tableOptions?[]:o.tableOptions]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{DdaSetBindingData:{CoerceType:i,Data:OSF.DataCoercion.serializeDynamicData(t),CellFormat:[],TableOptions:[]}}},fromWebHost:function(e){return e}};OSF._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(65,a,r,null)},t.getSelectedDataAsync=function(t,i,a){var s,l=e.ValueFormat.Unformatted,c=e.FilterType.All;"function"==typeof i?a=i:void 0!==i&&(void 0!==i.valueFormat&&(l=i.valueFormat),void 0!==i.filterType&&(c=i.filterType),void 0!==i.asyncContext&&(s=i.asyncContext));var u={toSafeArrayHost:function(){return[n(t),o(l),r(c)]},fromSafeArrayHost:function(e){return OSF.DataCoercion.deserializeDynamicData(e,t)},toWebHost:function(){return{DdaGetBindingData:{CoerceType:t,ValueFormat:l,FilterType:c}}},fromWebHost:function(e){return OSF.DataCoercion.deserializeDynamicData(e.Data,t)}};OSF._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(64,u,a,s)}}(t.document||(t.document={}))}(e.context||(e.context={}))}(Office||(Office={})),function(e){var t=function(){function e(e,t){this._rows=e,this._header=t}return Object.defineProperty(e.prototype,"headers",{get:function(){return this._header},set:function(e){this._header=this.fixData(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.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}),e.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){}},e}();e.TableData=t,e.manufactureTableData=function(t){return new e.TableData(t[OSF.TableDataProperties.TableRows],t[OSF.TableDataProperties.TableHeaders])}}(Office||(Office={})),function(e){!function(t){!function(t){!function(e){e.OfficeThemeChangedEvent="OfficeThemeChangedEvent",e.DocumentThemeChangedEvent="DocumentThemeChangedEvent"}(t.EventDescriptors||(t.EventDescriptors={})),e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){e.AsyncMethodCalls.define({method:e.AsyncMethods.GetDocumentThemeAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[],onSucceeded:e.DDA.Theming.ConvertToDocumentTheme}),e.AsyncMethodCalls.define({method:e.AsyncMethods.GetOfficeThemeAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[],onSucceeded:e.DDA.Theming.ConvertToOfficeTheme})},defineSafeArrayParameterMapFunc:function(){e.HostParameterMap.define({type:85,fromHost:[{name:e.ParameterNames.OfficeTheme,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:e.ParameterNames.OfficeTheme,fromHost:[{name:e.DDA.Theming.OfficeThemeEnum.BodyForegroundColor,value:0},{name:e.DDA.Theming.OfficeThemeEnum.BodyBackgroundColor,value:1},{name:e.DDA.Theming.OfficeThemeEnum.ControlForegroundColor,value:2},{name:e.DDA.Theming.OfficeThemeEnum.ControlBackgroundColor,value:3},{name:e.DDA.Theming.OfficeThemeEnum.ThemeId,value:4},{name:e.DDA.Theming.OfficeThemeEnum.IsDarkTheme,value:5},{name:e.DDA.Theming.OfficeThemeEnum.FluentThemeData,value:6}],isComplexType:!0}),e.HostParameterMap.define({type:e.EventDispId.dispidOfficeThemeChangedEvent,fromHost:[{name:e.DDA.Theming.EventDescriptors.OfficeThemeChangedEvent,value:e.HostParameterMap.self}],isComplexType:!0}),e.HostParameterMap.define({type:e.DDA.Theming.EventDescriptors.OfficeThemeChangedEvent,fromHost:[{name:e.ParameterNames.OfficeTheme,value:e.HostParameterMap.self}],isComplexType:!0})},defineWebParameterMapFunc:function(){e.HostParameterMap.addComplexType(e.ParameterNames.DocumentTheme),e.HostParameterMap.addComplexType(e.ParameterNames.OfficeTheme),e.HostParameterMap.define({type:e.EventDispId.dispidOfficeThemeChangedEvent,fromHost:[{name:e.ParameterNames.OfficeTheme,value:e.HostParameterMap.self}]}),e.HostParameterMap.define({type:e.ParameterNames.OfficeTheme,fromHost:[{name:e.DDA.Theming.OfficeThemeEnum.BodyForegroundColor,value:e.DDA.Theming.OfficeThemeEnumWac.PrimaryFontColor},{name:e.DDA.Theming.OfficeThemeEnum.BodyBackgroundColor,value:e.DDA.Theming.OfficeThemeEnumWac.PrimaryBackgroundColor},{name:e.DDA.Theming.OfficeThemeEnum.ControlForegroundColor,value:e.DDA.Theming.OfficeThemeEnumWac.SecondaryFontColor},{name:e.DDA.Theming.OfficeThemeEnum.ControlBackgroundColor,value:e.DDA.Theming.OfficeThemeEnumWac.SecondaryBackgroundColor}],isComplexType:!0})},initializeFunc:function(){var n=e._OfficeAppFactory.getHostInfo(),o=n.hostType.toLowerCase();if(n.hostPlatform==e.HostInfoPlatform.web&&(o==Office.HostType.Word.toLowerCase()||o==Office.HostType.PowerPoint.toLowerCase())&&Office.context.officeTheme){var r=t.GetIsDarkThemeFromCSSHexColor(Office.context.officeTheme.bodyBackgroundColor);Office.context.officeTheme[e.DDA.Theming.OfficeThemeEnum.IsDarkTheme]=r,Office.context.officeTheme[e.DDA.Theming.OfficeThemeEnum.ThemeId]=r?e.DDA.Theming.ThemeId.Black:e.DDA.Theming.ThemeId.White}Office.context&&Office.context.themeManager&&Office.context.themeManager.InitializeAndChangeOnce()}});var n=function(){function n(){this._eventTarget=null,this._previousDocumentThemeData=null,this._previousOfficeThemeData=null,this._officeCss=null,this._asyncCallsCompleted=null,this._onAsyncCallsCompleted=null}return n.prototype.InitializeThemeManager=function(){this._eventTarget=this,e.DispIdHost.addAsyncMethods(this,[e.AsyncMethods.GetOfficeThemeAsync,e.AsyncMethods.GetDocumentThemeAsync]),e.DispIdHost.addEventSupport(this,new e.EventDispatch([Microsoft.Office.WebExtension.EventType.OfficeThemeChanged,Microsoft.Office.WebExtension.EventType.DocumentThemeChanged]))},n.prototype.InitializeAndChangeOnce=function(t){var n=this;this._officeCss=this._getOfficeThemesCss(),this._officeCss?(this._onAsyncCallsCompleted=t,this._asyncCallsCompleted={},this._asyncCallsCompleted[e.AsyncMethods.GetOfficeThemeAsync]=!1,this._asyncCallsCompleted[e.AsyncMethods.GetDocumentThemeAsync]=!1,this._getAndProcessThemeData(this._eventTarget.getOfficeThemeAsync,(function(e){n._processOfficeThemeData(e)}),e.AsyncMethods.GetOfficeThemeAsync)):t&&t()},n.prototype.isDarkTheme=function(){var e=!1;if(Office.context&&Office.context.officeTheme&&Office.context.officeTheme.bodyBackgroundColor){var n=Office.context.officeTheme.bodyBackgroundColor;e=t.GetIsDarkThemeFromCSSHexColor(n)}return e},n.prototype._getOfficeThemesCss=function(){try{return function(){for(var t="officethemes.css",n=0;n<document.styleSheets.length;n++){var o=document.styleSheets[n];if(!o.disabled&&o.href&&t==o.href.substring(o.href.length-t.length,o.href.length).toLowerCase())return o.cssRules||o.rules?o:(e.AppTelemetry&&e.AppTelemetry.logAppException("Browser styleSheet object does not implement cssRules or rules property. Viloates browser's css access rule"),null)}}()}catch(t){return e.AppTelemetry&&e.AppTelemetry.logAppException("Exception thrown when trying to read officethems.css:["+t+"]"),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(t){for(var n=[{name:e.DDA.Theming.DocumentThemeEnum.PrimaryFontColor,cssSelector:".office-docTheme-primary-fontColor",cssProperty:"color"},{name:e.DDA.Theming.DocumentThemeEnum.PrimaryBackgroundColor,cssSelector:".office-docTheme-primary-bgColor",cssProperty:"background-color"},{name:e.DDA.Theming.DocumentThemeEnum.SecondaryFontColor,cssSelector:".office-docTheme-secondary-fontColor",cssProperty:"color"},{name:e.DDA.Theming.DocumentThemeEnum.SecondaryBackgroundColor,cssSelector:".office-docTheme-secondary-bgColor",cssProperty:"background-color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent1,cssSelector:".office-contentAccent1-color",cssProperty:"color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent2,cssSelector:".office-contentAccent2-color",cssProperty:"color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent3,cssSelector:".office-contentAccent3-color",cssProperty:"color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent4,cssSelector:".office-contentAccent4-color",cssProperty:"color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent5,cssSelector:".office-contentAccent5-color",cssProperty:"color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent6,cssSelector:".office-contentAccent6-color",cssProperty:"color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent1,cssSelector:".office-contentAccent1-bgColor",cssProperty:"background-color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent2,cssSelector:".office-contentAccent2-bgColor",cssProperty:"background-color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent3,cssSelector:".office-contentAccent3-bgColor",cssProperty:"background-color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent4,cssSelector:".office-contentAccent4-bgColor",cssProperty:"background-color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent5,cssSelector:".office-contentAccent5-bgColor",cssProperty:"background-color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent6,cssSelector:".office-contentAccent6-bgColor",cssProperty:"background-color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent1,cssSelector:".office-contentAccent1-borderColor",cssProperty:"border-color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent2,cssSelector:".office-contentAccent2-borderColor",cssProperty:"border-color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent3,cssSelector:".office-contentAccent3-borderColor",cssProperty:"border-color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent4,cssSelector:".office-contentAccent4-borderColor",cssProperty:"border-color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent5,cssSelector:".office-contentAccent5-borderColor",cssProperty:"border-color"},{name:e.DDA.Theming.DocumentThemeEnum.Accent6,cssSelector:".office-contentAccent6-borderColor",cssProperty:"border-color"},{name:e.DDA.Theming.DocumentThemeEnum.Hyperlink,cssSelector:".office-a",cssProperty:"color"},{name:e.DDA.Theming.DocumentThemeEnum.FollowedHyperlink,cssSelector:".office-a:visited",cssProperty:"color"},{name:e.DDA.Theming.DocumentThemeEnum.HeaderLatinFont,cssSelector:".office-headerFont-latin",cssProperty:"font-family"},{name:e.DDA.Theming.DocumentThemeEnum.HeaderEastAsianFont,cssSelector:".office-headerFont-eastAsian",cssProperty:"font-family"},{name:e.DDA.Theming.DocumentThemeEnum.HeaderScriptFont,cssSelector:".office-headerFont-script",cssProperty:"font-family"},{name:e.DDA.Theming.DocumentThemeEnum.HeaderLocalizedFont,cssSelector:".office-headerFont-localized",cssProperty:"font-family"},{name:e.DDA.Theming.DocumentThemeEnum.BodyLatinFont,cssSelector:".office-bodyFont-latin",cssProperty:"font-family"},{name:e.DDA.Theming.DocumentThemeEnum.BodyEastAsianFont,cssSelector:".office-bodyFont-eastAsian",cssProperty:"font-family"},{name:e.DDA.Theming.DocumentThemeEnum.BodyScriptFont,cssSelector:".office-bodyFont-script",cssProperty:"font-family"},{name:e.DDA.Theming.DocumentThemeEnum.BodyLocalizedFont,cssSelector:".office-bodyFont-localized",cssProperty:"font-family"}],o=t.type==e.EventType.DocumentThemeChanged?t.documentTheme:t,r=0;r<n.length;r++)if(null===this._previousDocumentThemeData||this._previousDocumentThemeData[n[r].name]!=o[n[r].name])if(null!=o[n[r].name]&&""!=o[n[r].name]){var i=o[n[r].name];"font-family"===n[r].cssProperty&&(i='"'+i.replace(new RegExp('"',"g"),'\\"')+'"'),this._changeCss(this._officeCss,n[r].cssSelector,"{"+n[r].cssProperty+":"+i+";}")}else this._changeCss(this._officeCss,n[r].cssSelector,"{}");this._previousDocumentThemeData=o},n.prototype._changeOfficeThemeData=function(t){for(var n=[{name:e.DDA.Theming.OfficeThemeEnum.BodyForegroundColor,cssSelector:".office-officeTheme-primary-fontColor",cssProperty:"color"},{name:e.DDA.Theming.OfficeThemeEnum.BodyBackgroundColor,cssSelector:".office-officeTheme-primary-bgColor",cssProperty:"background-color"},{name:e.DDA.Theming.OfficeThemeEnum.ControlForegroundColor,cssSelector:".office-officeTheme-secondary-fontColor",cssProperty:"color"},{name:e.DDA.Theming.OfficeThemeEnum.ControlBackgroundColor,cssSelector:".office-officeTheme-secondary-bgColor",cssProperty:"background-color"}],o=t.type==e.EventType.OfficeThemeChanged?t.officeTheme:t,r=0;r<n.length;r++)null!==this._previousOfficeThemeData&&this._previousOfficeThemeData[n[r].name]==o[n[r].name]||void 0!==o[n[r].name]&&this._changeCss(this._officeCss,n[r].cssSelector,"{"+n[r].cssProperty+":"+o[n[r].name]+";}");this._previousOfficeThemeData=o},n.prototype._getAndProcessThemeData=function(t,n,o){var r=this,i=e._OfficeAppFactory.getHostInfo();if(i&&i.hostPlatform==e.HostInfoPlatform.web){if(o==e.AsyncMethods.GetOfficeThemeAsync&&Office.context.officeTheme){var a={};a[e.DDA.Theming.OfficeThemeEnum.BodyBackgroundColor]=Office.context.officeTheme.bodyBackgroundColor,a[e.DDA.Theming.OfficeThemeEnum.BodyForegroundColor]=Office.context.officeTheme.bodyForegroundColor,a[e.DDA.Theming.OfficeThemeEnum.ControlBackgroundColor]=Office.context.officeTheme.controlBackgroundColor,a[e.DDA.Theming.OfficeThemeEnum.ControlForegroundColor]=Office.context.officeTheme.controlForegroundColor,a[e.DDA.Theming.OfficeThemeEnum.IsDarkTheme]=Office.context.officeTheme.isDarkTheme,a[e.DDA.Theming.OfficeThemeEnum.ThemeId]=Office.context.officeTheme.isDarkTheme?e.DDA.Theming.ThemeId.Black:e.DDA.Theming.ThemeId.White,a[e.DDA.Theming.OfficeThemeEnum.FluentThemeData]=Office.context.officeTheme.fluentThemeData,n(a)}}else t((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}();t.InternalThemeHandler=n}(t.Theming||(t.Theming={}))}(e.DDA||(e.DDA={}))}(OSF||(OSF={})),function(e){!function(e){var t;OSF.definePropertyOnNamespace(e,"themeManager",(function(){return t||(t=new OSF.DDA.Theming.InternalThemeHandler).InitializeThemeManager(),t}))}(e.context||(e.context={}))}(Office||(Office={})),function(e){e.BootStrapExtension.prepareApiSurface=function(){return new Promise((function(){e.V10ApiFeatureRegistry.initialize()}))}}(OSF||(OSF={})),function(e){!function(e){function t(){try{if(void 0!==OSF&&void 0!==OSF.isOfficeReactNative&&OSF.isOfficeReactNative())return!0}catch(e){}return!1}function n(){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}e.isNativeStorage=function(){var e=n();return!(function(){try{if(void 0!==OSF&&void 0!==OSF._OfficeAppFactory&&void 0!==OSF._OfficeAppFactory.getHostInfo&&OSF._OfficeAppFactory.getHostInfo().flags&OSF.HostInfoFlags.SharedApp)return!0}catch(e){}return!1}()||!(t()||"win32"===e||"mac"===e&&window._useSDXSandbox))},e.isNativeApiInfomation=function(){var e=n();return!!(t()||"win32"===e||"mac"===e&&window._useSDXSandbox)},e.isNativeDialog=function(){var e=n();return!(!t()&&"win32"!==e)}}(e.ApiHelper||(e.ApiHelper={}))}(OfficeRuntime||(OfficeRuntime={})),function(e){e.ApiHelper.isNativeApiInfomation()?e.apiInformation=t:e.apiInformation=n;var t={isSetSupported:function(e,t){if("string"!=typeof e)return!1;if(null==t&&(t="0.0.0"),void 0===global.__apiSets)return!1;var n=global.__apiSets,r=Object.keys(n).map((function(e){return e.toLowerCase()})).indexOf(e.toLowerCase());if(r>-1){var i=n[Object.keys(n)[r]];try{var a=o(t),s=void 0;if((s=Array.isArray(i)?function(e,t){for(var n=0;n<e.length;n++){var r=o(e[n]);if(r.major==t)return r}return{major:0,minor:0,patch:0}}(i,a.major):o(i)).major>0){if(s.major>a.major)return!0;if(s.major==a.major&&s.minor>a.minor)return!0;if(s.major==a.major&&s.minor==a.minor&&s.patch>=a.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 o(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]),t.length>=2&&(o=Number(t[1])),t.length>=3&&(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 e=function(t,n){return(e=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])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();!function(e){OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject;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),i=OfficeExtension.Utility.fixObjectPathIfNecessary,a=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult),s=(OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags,function(e){this._dialogService=e});e.Dialog=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.close=function(){return this._dialogService.close(),OfficeExtension.CoreUtility.Promise.resolve()},t}(s),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.close=function(){return this._dialogService.close(),this._dialogService.context.sync()},t}(s);function u(e){return/^(\-|\+)?([0-9]+)%?$/.test(e)}function d(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}}e.displayWebDialog=function(t,n){return void 0===n&&(n={}),new OfficeExtension.CoreUtility.Promise((function(o,r){if(n.width&&n.height&&(!u(n.width)||!u(n.height)))throw new OfficeExtension.Error({code:"InvalidArgument",message:'Dimensions must be "number%" or number.'});var i={width:n.width?parseInt(n.width):50,height:n.height?parseInt(n.height):50,displayInIFrame:n.displayInIFrame};e.ApiHelper.isNativeDialog()?function(e,t,n,o,r){void 0===r&&(r={});var i=new OfficeExtension.ClientRequestContext,a=p.newObject(i),s=new c(a),l=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?(l&&(l.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)}))}(i,o,r,t,n):function(e,t,n,o,r){void 0===r&&(r={});var i;function a(e){"failed"===e.status?n(new OfficeExtension.Error(d(e.error.code))):((i=e.value).addEventHandler(Office.EventType.DialogMessageReceived,s),i.addEventHandler(Office.EventType.DialogEventReceived,c),t(new l(i)))}function s(e){r.onMessage&&r.onMessage(e.message,i,e.origin)}function c(e){12006===e.error?r.onClose&&r.onClose():r.onRuntimeError&&r.onRuntimeError(new OfficeExtension.Error(d(e.error)),i)}Office.context.ui.displayDialogAsync(o,e,a)}(i,o,r,t,n)}))};var f,p=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return __extends(l,s),Object.defineProperty(l.prototype,"_className",{get:function(){return"DialogService"},enumerable:!0,configurable:!0}),l.prototype.close=function(){n(this,"Close",1,[],4,0)},l.prototype.displayDialog=function(e,t){n(this,"DisplayDialog",1,[e,t],4,0)},l.prototype._handleResult=function(e){(s.prototype._handleResult.call(this,e),o(e))||i(this,e)},l.prototype._handleRetrieveResult=function(e,t){s.prototype._handleRetrieveResult.call(this,e,t),a(this,e,t)},l.newObject=function(n){return t(e.DialogService,n,"Microsoft.Dialog.DialogService",!1,4)},Object.defineProperty(l.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(d(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}),l.prototype.toJSON=function(){return r(this,{},{})},l}(OfficeExtension.ClientObject);e.DialogService=p,function(e){e[e.dialogMessageReceived=0]="dialogMessageReceived",e[e.dialogEventReceived=1]="dialogEventReceived"}(f||(f={})),function(e){e.generalException="GeneralException"}(e.DialogErrorCodes||(e.DialogErrorCodes={}))}(OfficeRuntime||(OfficeRuntime={})),function(e){!function(e){function t(e,t){try{var n=Microsoft.Office.WebExtension.FeatureGates[e];return null==n?t:"true"===n.toString().toLowerCase()}catch(e){return t}}function n(e,t){try{var n=Microsoft.Office.WebExtension.FeatureGates,o=parseInt(n[e]);return isNaN(o)?t:o}catch(e){return t}}function o(e,t){try{var n=Microsoft.Office.WebExtension.FeatureGates[e];return null==n?t:n}catch(e){return t}}e.getBooleanFeatureGate=t,e.getIntFeatureGate=n,e.getStringFeatureGate=o,e.getBooleanFeatureGateAsync=function(e,n){return Promise.resolve(t(e,n))},e.getIntFeatureGateAsync=function(e,t){return Promise.resolve(n(e,t))},e.getStringFeatureGateAsync=function(e,t){return Promise.resolve(o(e,t))}}(e.experimentation||(e.experimentation={}))}(OfficeRuntime||(OfficeRuntime={})),function(e){!function(e){var n={};function o(e){var t=e.eventName,o=e.message;n.hasOwnProperty(t)&&n[t].call(o)}e.on=function(e,r){return function(e,r){n.hasOwnProperty(e)||(n[e]=new t,function(){Office&&Office.context&&Office.context.messaging&&!Office.context.messaging.onMessage&&(Office.context.messaging.onMessage=o.bind(this))}());n[e].add(r)}(e,r),new Promise((function(e){e()}))},e.off=function(e,t){return function(e,t){n.hasOwnProperty(e)&&(t?n[e].remove(t):delete n[e])}(e,t),new Promise((function(e){e()}))},e.emit=function(e,t){return function(e,t){var n={eventName:e,message:t};Office&&Office.context&&Office.context.messaging&&Office.context.messaging.sendMessage&&Office.context.messaging.sendMessage(n)}(e,t),new Promise((function(e){e()}))}}(e.message||(e.message={}));var t=function(){function e(){this.listeners=[]}return e.prototype.add=function(e){this.listeners.push(e)},e.prototype.remove=function(e){var t=this.listeners.lastIndexOf(e);-1!==t&&this.listeners.splice(t,1)},e.prototype.call=function(e){this.listeners.forEach((function(t){return t(e)}))},e}();e.ListenerManager=t}(OfficeRuntime||(OfficeRuntime={})),function(e){OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject;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),i=OfficeExtension.Utility.fixObjectPathIfNecessary,a=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult),s=(OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags,"_Office_AsyncStorage_"),l=s+"|_unusedKey_",c={getItem:function(e){return p((function(t,n){return t.multiGet(n,JSON.stringify([e]))}),(function(e){var t=JSON.parse(e);return t&&t[0]&&t[0][1]?t[0][1]:null}))},setItem:function(e,t){return p((function(n,o){return n.multiSet(o,JSON.stringify([[e,t]]))}),(function(){return null}))},removeItem:function(e){return p((function(t,n){return t.multiRemove(n,JSON.stringify([e]))}),(function(){return null}))},getItems:function(e){return p((function(t,n){return t.multiGet(n,JSON.stringify(e))}),(function(t){var n=JSON.parse(t),o={};return n&&n.forEach((function(e){var t=e[0],n=e[1];return o[t]=n,n})),e&&e.forEach((function(e){o[e]&&o[e]})),o}))},setItems:function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push([n,e[n]]);return p((function(e,n){return e.multiSet(n,JSON.stringify(t))}),(function(){return null}))},removeItems:function(e){return p((function(t,n){return t.multiRemove(n,JSON.stringify(e))}),(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 m((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(e){return new Promise((function(t,n){var o={},r=[];try{h()}catch(e){n(e)}e.forEach((function(e){try{var t=d(e);o[e]=t||null}catch(e){r.push(e)}})),r.length>0?n(new Error("Unknown error.")):t(o)}))},setItems:function(e){return y(e,(function(t){return f(t,e[t])}))},removeItems:function(e){return y(e,(function(e){return window.localStorage.removeItem(s+e)}))},getKeys:function(){return m((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(e,t){return new OfficeExtension.CoreUtility.Promise((function(n,o){var r=v.getInstance(),i=r.setCallBack((function(e,r){if(r)o(r);else{var i=t(e);n(i)}}));r.ctx.sync().then((function(){var t=r.getPersistentKvStorageService();return e(t,i),r.ctx.sync()})).catch((function(e){o(e)}))}))}function h(){f(l,null),window.localStorage.removeItem(l)}function g(e,t){return void 0===t&&(t=function(){}),new Promise((function(n,o){try{h(),e(),t(null),n()}catch(e){t(e),o(e)}}))}function m(e,t){return void 0===t&&(t=function(){}),new Promise((function(n,o){try{h();var r=e();t(null,r),n(r)}catch(e){t(e,null),o(e)}}))}function y(e,t,n){return void 0===n&&(n=function(){}),new Promise((function(o,r){var i=[];try{h()}catch(e){i.push(e)}for(var a in e)if(e.hasOwnProperty(a)||Array.isArray(e))try{Array.isArray(e)?t(e[a]):t(a)}catch(e){i.push(e)}n(i),i.length>0?r(i):o()}))}e.ApiHelper.isNativeStorage()?e.storage=c:e.storage=u;var v=function(){function e(){var e=this;this._invokeId=0,this._callDict={},this.ctx=new OfficeExtension.ClientRequestContext,this._perkvstorService=b.newObject(this.ctx),this._eventResult=this._perkvstorService.onPersistentStorageMessage.add((function(t){OfficeExtension.Utility.log("persistentKvStoragegMessageHandler:"+JSON.stringify(t));var n=e._callDict[t.invokeId];n&&(n(t.message,t.error),delete e._callDict[t.invokeId])}))}return e.getInstance=function(){return void 0===e.instance?e.instance=new e:e.instance._perkvstorService=b.newObject(e.instance.ctx),e.instance},e.prototype.getPersistentKvStorageService=function(){return this._perkvstorService},e.prototype.getCallBack=function(e){return this._callDict[e]},e.prototype.setCallBack=function(e){var t=this._invokeId;return this._callDict[this._invokeId++]=e,t},e}(),b=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return __extends(l,s),Object.defineProperty(l.prototype,"_className",{get:function(){return"PersistentKvStorageService"},enumerable:!0,configurable:!0}),l.prototype.clear=function(e){n(this,"Clear",1,[e],4,0)},l.prototype.getAllKeys=function(e){n(this,"GetAllKeys",1,[e],4,0)},l.prototype.multiGet=function(e,t){n(this,"MultiGet",1,[e,t],4,0)},l.prototype.multiRemove=function(e,t){n(this,"MultiRemove",1,[e,t],4,0)},l.prototype.multiSet=function(e,t){n(this,"MultiSet",1,[e,t],4,0)},l.prototype._handleResult=function(e){(s.prototype._handleResult.call(this,e),o(e))||i(this,e)},l.prototype._handleRetrieveResult=function(e,t){s.prototype._handleRetrieveResult.call(this,e,t),a(this,e,t)},l.newObject=function(n){return t(e.PersistentKvStorageService,n,"Microsoft.PersistentKvStorage.PersistentKvStorageService",!1,4)},Object.defineProperty(l.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}),l.prototype.toJSON=function(){return r(this,{},{})},l}(OfficeExtension.ClientObject);e.PersistentKvStorageService=b,function(e){e.generalException="GeneralException"}(e.ErrorCodes||(e.ErrorCodes={}))}(OfficeRuntime||(OfficeRuntime={}));var Excel,OSF;__extends=this&&this.__extends||function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),__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)};if(function(e){function t(e,t){var o=f("OfficeOnline")?new n:new h;return m(e,o),OfficeExtension.CoreUtility.Promise.resolve().then((function(){return t(o)})).then(o.sync)}!function(e){e.BMP="BMP",e.GIF="GIF",e.ICO="ICO",e.JPG="JPG",e.PNG="PNG",e.TIF="TIF",e.WEBP="WEBP"}(e.Base64EncodingType||(e.Base64EncodingType={})),function(e){e.unknown="Unknown",e.dataTypeRestrictedDomain="DataTypeRestrictedDomain",e.dataTypePrivacySetting="DataTypePrivacySetting",e.dataTypeUnsupportedApp="DataTypeUnsupportedApp",e.externalLinksGeneric="ExternalLinksGeneric",e.richDataLinkDisabled="RichDataLinkDisabled",e.signInError="SignInError",e.noLicense="NoLicense",e.xlmDisabledInTrustCenter="XlmDisabledInTrustCenter",e.xlmNotSupportedOnPlatform="XlmNotSupportedOnPlatform",e.imageDownloadBlocked="ImageDownloadBlocked",e.imageInvalidUrlNonHttps="ImageInvalidUrlNonHttps",e.imageExceedsSizeLimit="ImageExceedsSizeLimit",e.imageExceedsTotalSizeLimit="ImageExceedsTotalSizeLimit",e.environmentExceedsQuota="EnvironmentExceedsQuota",e.environmentExceedsQuotaDaily="EnvironmentExceedsQuotaDaily",e.environmentExceedsQuotaMonthly="EnvironmentExceedsQuotaMonthly",e.environmentExceedsTakerQuotaMonthly="EnvironmentExceedsTakerQuotaMonthly",e.wrongAccountType="WrongAccountType",e.environmentExceedsComputeResourceEver="EnvironmentExceedsComputeResourceEver",e.environmentExceedsComputeResourceCountDaily="EnvironmentExceedsComputeResourceCountDaily",e.pythonUnsupportedOnThisPlatform="PythonUnsupportedOnThisPlatform",e.unmetRequirements="UnmetRequirements",e.pythonFunction="PythonFunction",e.environmentConnectionExceedQuota="EnvironmentConnectionExceedQuota",e.unsupportedEnvironment="UnsupportedEnvironment",e.unsupportedInCalculationMode="UnsupportedInCalculationMode"}(e.BlockedErrorCellValueSubType||(e.BlockedErrorCellValueSubType={})),function(e){e.unknown="Unknown",e.externalLinksGeneric="ExternalLinksGeneric",e.loadingImage="LoadingImage",e.placeholderInFormula="PlaceholderInFormula"}(e.BusyErrorCellValueSubType||(e.BusyErrorCellValueSubType={})),function(e){e.unknown="Unknown",e.arrayOfArrays="ArrayOfArrays",e.arrayOfRanges="ArrayOfRanges",e.emptyArray="EmptyArray",e.unsupportedLifting="UnsupportedLifting",e.dataTableReferencedPendingFormula="DataTableReferencedPendingFormula",e.tooManyCells="TooManyCells",e.lambdaInCell="LambdaInCell",e.tooDeeplyNested="TooDeeplyNested",e.textOverflow="TextOverflow",e.requestTooLarge="RequestTooLarge",e.pythonGridQuery="PythonGridQuery",e.pythonPowerQueryDataUploadEtagChanged="PythonPowerQueryDataUploadEtagChanged",e.pythonPowerQueryDataUploadSizeLimitExceeded="PythonPowerQueryDataUploadSizeLimitExceeded",e.invalidPythonObject="InvalidPythonObject",e.queryInCell="QueryInCell",e.uninitializedPythonObject="UninitializedPythonObject",e.externalQueryRef="ExternalQueryRef",e.eRegexReplaceCharLimit="ERegexReplaceCharLimit",e.unexpectedReturnValue="UnexpectedReturnValue",e.functionInCell="FunctionInCell"}(e.CalcErrorCellValueSubType||(e.CalcErrorCellValueSubType={})),function(e){e.entity="Entity",e.array="Array"}(e.EntityCardLayoutType||(e.EntityCardLayoutType={})),function(e){e.javaScriptReference="JavaScriptReference"}(e.FunctionCellValueType||(e.FunctionCellValueType={})),function(e){e.generic="Generic",e.accessibility="Accessibility",e.airplane="Airplane",e.airplaneTakeOff="AirplaneTakeOff",e.album="Album",e.alert="Alert",e.alertUrgent="AlertUrgent",e.animal="Animal",e.animalCat="AnimalCat",e.animalDog="AnimalDog",e.animalRabbit="AnimalRabbit",e.animalTurtle="AnimalTurtle",e.appFolder="AppFolder",e.appGeneric="AppGeneric",e.apple="Apple",e.approvalsApp="ApprovalsApp",e.archive="Archive",e.archiveMultiple="ArchiveMultiple",e.arrowTrendingLines="ArrowTrendingLines",e.art="Art",e.atom="Atom",e.attach="Attach",e.automobile="Automobile",e.autosum="Autosum",e.backpack="Backpack",e.badge="Badge",e.balloon="Balloon",e.bank="Bank",e.barcodeScanner="BarcodeScanner",e.basketball="Basketball",e.battery0="Battery0",e.battery10="Battery10",e.beach="Beach",e.beaker="Beaker",e.bed="Bed",e.binFull="BinFull",e.bird="Bird",e.bluetooth="Bluetooth",e.board="Board",e.boardGames="BoardGames",e.book="Book",e.bookmark="Bookmark",e.bookmarkMultiple="BookmarkMultiple",e.bot="Bot",e.bowlChopsticks="BowlChopsticks",e.box="Box",e.boxMultiple="BoxMultiple",e.brainCircuit="BrainCircuit",e.branch="Branch",e.branchFork="BranchFork",e.branchRequest="BranchRequest",e.bridge="Bridge",e.briefcase="Briefcase",e.briefcaseMedical="BriefcaseMedical",e.broadActivityFeed="BroadActivityFeed",e.broom="Broom",e.bug="Bug",e.building="Building",e.buildingBank="BuildingBank",e.buildingFactory="BuildingFactory",e.buildingGovernment="BuildingGovernment",e.buildingHome="BuildingHome",e.buildingLighthouse="BuildingLighthouse",e.buildingMultiple="BuildingMultiple",e.buildingRetail="BuildingRetail",e.buildingRetailMore="BuildingRetailMore",e.buildingRetailToolbox="BuildingRetailToolbox",e.buildingShop="BuildingShop",e.buildingSkyscraper="BuildingSkyscraper",e.calculator="Calculator",e.calendarLtr="CalendarLtr",e.calendarRtl="CalendarRtl",e.call="Call",e.calligraphyPen="CalligraphyPen",e.camera="Camera",e.cameraDome="CameraDome",e.car="Car",e.cart="Cart",e.cat="Cat",e.certificate="Certificate",e.chartMultiple="ChartMultiple",e.chat="Chat",e.chatMultiple="ChatMultiple",e.chatVideo="ChatVideo",e.check="Check",e.checkboxChecked="CheckboxChecked",e.checkboxUnchecked="CheckboxUnchecked",e.checkmark="Checkmark",e.chess="Chess",e.city="City",e.class="Class",e.classification="Classification",e.clipboard="Clipboard",e.clipboardDataBar="ClipboardDataBar",e.clipboardPulse="ClipboardPulse",e.clipboardTask="ClipboardTask",e.clock="Clock",e.clockAlarm="ClockAlarm",e.cloud="Cloud",e.cloudWords="CloudWords",e.code="Code",e.collections="Collections",e.comment="Comment",e.commentMultiple="CommentMultiple",e.communication="Communication",e.compassNorthwest="CompassNorthwest",e.conferenceRoom="ConferenceRoom",e.connector="Connector",e.constellation="Constellation",e.contactCard="ContactCard",e.cookies="Cookies",e.couch="Couch",e.creditCardPerson="CreditCardPerson",e.creditCardToolbox="CreditCardToolbox",e.cube="Cube",e.cubeMultiple="CubeMultiple",e.cubeTree="CubeTree",e.currencyDollarEuro="CurrencyDollarEuro",e.currencyDollarRupee="CurrencyDollarRupee",e.dataArea="DataArea",e.database="Database",e.databaseMultiple="DatabaseMultiple",e.dataFunnel="DataFunnel",e.dataHistogram="DataHistogram",e.dataLine="DataLine",e.dataPie="DataPie",e.dataScatter="DataScatter",e.dataSunburst="DataSunburst",e.dataTreemap="DataTreemap",e.dataWaterfall="DataWaterfall",e.dataWhisker="DataWhisker",e.dentist="Dentist",e.designIdeas="DesignIdeas",e.desktop="Desktop",e.desktopMac="DesktopMac",e.developerBoard="DeveloperBoard",e.deviceMeetingRoom="DeviceMeetingRoom",e.diagram="Diagram",e.dialpad="Dialpad",e.diamond="Diamond",e.dinosaur="Dinosaur",e.directions="Directions",e.disaster="Disaster",e.diversity="Diversity",e.dNA="DNA",e.doctor="Doctor",e.document="Document",e.documentData="DocumentData",e.documentLandscape="DocumentLandscape",e.documentMultiple="DocumentMultiple",e.documentPdf="DocumentPdf",e.documentQueue="DocumentQueue",e.documentText="DocumentText",e.dog="Dog",e.door="Door",e.doorTag="DoorTag",e.drafts="Drafts",e.drama="Drama",e.drinkBeer="DrinkBeer",e.drinkCoffee="DrinkCoffee",e.drinkMargarita="DrinkMargarita",e.drinkToGo="DrinkToGo",e.drinkWine="DrinkWine",e.driveTrain="DriveTrain",e.drop="Drop",e.dualScreen="DualScreen",e.dumbbell="Dumbbell",e.earth="Earth",e.emoji="Emoji",e.emojiAngry="EmojiAngry",e.emojiHand="EmojiHand",e.emojiLaugh="EmojiLaugh",e.emojiMeh="EmojiMeh",e.emojiMultiple="EmojiMultiple",e.emojiSad="EmojiSad",e.emojiSadSlight="EmojiSadSlight",e.emojiSmileSlight="EmojiSmileSlight",e.emojiSparkle="EmojiSparkle",e.emojiSurprise="EmojiSurprise",e.engine="Engine",e.eraser="Eraser",e.eye="Eye",e.eyedropper="Eyedropper",e.fax="Fax",e.fingerprint="Fingerprint",e.firstAid="FirstAid",e.flag="Flag",e.flash="Flash",e.flashlight="Flashlight",e.flow="Flow",e.flowchart="Flowchart",e.folder="Folder",e.folderOpen="FolderOpen",e.folderOpenVertical="FolderOpenVertical",e.folderPerson="FolderPerson",e.folderZip="FolderZip",e.food="Food",e.foodApple="FoodApple",e.foodCake="FoodCake",e.foodEgg="FoodEgg",e.foodGrains="FoodGrains",e.foodPizza="FoodPizza",e.foodToast="FoodToast",e.galaxy="Galaxy",e.games="Games",e.ganttChart="GanttChart",e.gas="Gas",e.gasPump="GasPump",e.gauge="Gauge",e.gavel="Gavel",e.gift="Gift",e.giftCard="GiftCard",e.glasses="Glasses",e.globe="Globe",e.globeSurface="GlobeSurface",e.grid="Grid",e.gridDots="GridDots",e.gridKanban="GridKanban",e.guardian="Guardian",e.guest="Guest",e.guitar="Guitar",e.handLeft="HandLeft",e.handRight="HandRight",e.handshake="Handshake",e.hardDrive="HardDrive",e.hatGraduation="HatGraduation",e.headphones="Headphones",e.headphonesSoundWave="HeadphonesSoundWave",e.headset="Headset",e.headsetVr="HeadsetVr",e.heart="Heart",e.heartBroken="HeartBroken",e.heartCircle="HeartCircle",e.heartHuman="HeartHuman",e.heartPulse="HeartPulse",e.history="History",e.home="Home",e.homeMore="HomeMore",e.homePerson="HomePerson",e.icons="Icons",e.image="Image",e.imageGlobe="ImageGlobe",e.imageMultiple="ImageMultiple",e.iot="Iot",e.joystick="Joystick",e.justice="Justice",e.key="Key",e.keyboard="Keyboard",e.keyboardLayoutSplit="KeyboardLayoutSplit",e.keyMultiple="KeyMultiple",e.languages="Languages",e.laptop="Laptop",e.lasso="Lasso",e.launcherSettings="LauncherSettings",e.layer="Layer",e.leaf="Leaf",e.leafOne="LeafOne",e.leafThree="LeafThree",e.leafTwo="LeafTwo",e.library="Library",e.lightbulb="Lightbulb",e.lightbulbFilament="LightbulbFilament",e.likert="Likert",e.link="Link",e.localLanguage="LocalLanguage",e.location="Location",e.lockClosed="LockClosed",e.lockMultiple="LockMultiple",e.lockOpen="LockOpen",e.lottery="Lottery",e.luggage="Luggage",e.mail="Mail",e.mailInbox="MailInbox",e.mailMultiple="MailMultiple",e.map="Map",e.mapPin="MapPin",e.markdown="Markdown",e.mathFormula="MathFormula",e.mathSymbols="MathSymbols",e.max="Max",e.megaphone="Megaphone",e.megaphoneLoud="MegaphoneLoud",e.mention="Mention",e.mic="Mic",e.microscope="Microscope",e.midi="Midi",e.molecule="Molecule",e.money="Money",e.moneyHand="MoneyHand",e.mountain="Mountain",e.movieCamera="MovieCamera",e.moviesAndTv="MoviesAndTv",e.musicNote="MusicNote",e.musicNote1="MusicNote1",e.musicNote2="MusicNote2",e.myLocation="MyLocation",e.nByN="NByN",e.nByOne="NByOne",e.news="News",e.notablePeople="NotablePeople",e.note="Note",e.notebook="Notebook",e.notepad="Notepad",e.notepadPerson="NotepadPerson",e.oneByN="OneByN",e.oneByOne="OneByOne",e.options="Options",e.organization="Organization",e.organizationHorizontal="OrganizationHorizontal",e.oval="Oval",e.paintBrush="PaintBrush",e.paintBucket="PaintBucket",e.partlySunnyWeather="PartlySunnyWeather",e.password="Password",e.patch="Patch",e.patient="Patient",e.payment="Payment",e.pen="Pen",e.pentagon="Pentagon",e.people="People",e.peopleAudience="PeopleAudience",e.peopleCall="PeopleCall",e.peopleCommunity="PeopleCommunity",e.peopleMoney="PeopleMoney",e.peopleQueue="PeopleQueue",e.peopleTeam="PeopleTeam",e.peopleToolbox="PeopleToolbox",e.person="Person",e.personBoard="PersonBoard",e.personCall="PersonCall",e.personChat="PersonChat",e.personFeedback="PersonFeedback",e.personSupport="PersonSupport",e.personVoice="PersonVoice",e.phone="Phone",e.phoneDesktop="PhoneDesktop",e.phoneLaptop="PhoneLaptop",e.phoneShake="PhoneShake",e.phoneTablet="PhoneTablet",e.phoneVibrate="PhoneVibrate",e.photoFilter="PhotoFilter",e.pi="Pi",e.pictureInPicture="PictureInPicture",e.pilates="Pilates",e.pill="Pill",e.pin="Pin",e.pipeline="Pipeline",e.planet="Planet",e.playingCards="PlayingCards",e.plugConnected="PlugConnected",e.plugDisconnected="PlugDisconnected",e.pointScan="PointScan",e.poll="Poll",e.power="Power",e.predictions="Predictions",e.premium="Premium",e.presenter="Presenter",e.previewLink="PreviewLink",e.print="Print",e.production="Production",e.prohibited="Prohibited",e.projectionScreen="ProjectionScreen",e.protocolHandler="ProtocolHandler",e.pulse="Pulse",e.pulseSquare="PulseSquare",e.puzzlePiece="PuzzlePiece",e.qrCode="QrCode",e.radar="Radar",e.ram="Ram",e.readingList="ReadingList",e.realEstate="RealEstate",e.receipt="Receipt",e.reward="Reward",e.rhombus="Rhombus",e.ribbon="Ribbon",e.ribbonStar="RibbonStar",e.roadCone="RoadCone",e.rocket="Rocket",e.router="Router",e.rss="Rss",e.ruler="Ruler",e.run="Run",e.running="Running",e.satellite="Satellite",e.save="Save",e.savings="Savings",e.scales="Scales",e.scan="Scan",e.scratchpad="Scratchpad",e.screenPerson="ScreenPerson",e.screenshot="Screenshot",e.search="Search",e.serialPort="SerialPort",e.server="Server",e.serverMultiple="ServerMultiple",e.serviceBell="ServiceBell",e.settings="Settings",e.shapes="Shapes",e.shield="Shield",e.shieldTask="ShieldTask",e.shoppingBag="ShoppingBag",e.signature="Signature",e.sim="Sim",e.sleep="Sleep",e.smartwatch="Smartwatch",e.soundSource="SoundSource",e.soundWaveCircle="SoundWaveCircle",e.sparkle="Sparkle",e.speaker0="Speaker0",e.speaker2="Speaker2",e.sport="Sport",e.sportAmericanFootball="SportAmericanFootball",e.sportBaseball="SportBaseball",e.sportBasketball="SportBasketball",e.sportHockey="SportHockey",e.sportSoccer="SportSoccer",e.squareMultiple="SquareMultiple",e.squareShadow="SquareShadow",e.squaresNested="SquaresNested",e.stack="Stack",e.stackStar="StackStar",e.star="Star",e.starFilled="StarFilled",e.starHalf="StarHalf",e.starLineHorizontal3="StarLineHorizontal3",e.starOneQuarter="StarOneQuarter",e.starThreeQuarter="StarThreeQuarter",e.status="Status",e.steps="Steps",e.stethoscope="Stethoscope",e.sticker="Sticker",e.storage="Storage",e.stream="Stream",e.streamInput="StreamInput",e.streamInputOutput="StreamInputOutput",e.streamOutput="StreamOutput",e.styleGuide="StyleGuide",e.subGrid="SubGrid",e.subtitles="Subtitles",e.surfaceEarbuds="SurfaceEarbuds",e.surfaceHub="SurfaceHub",e.symbols="Symbols",e.syringe="Syringe",e.system="System",e.tabDesktop="TabDesktop",e.tabInprivateAccount="TabInprivateAccount",e.table="Table",e.tableImage="TableImage",e.tableMultiple="TableMultiple",e.tablet="Tablet",e.tabs="Tabs",e.tag="Tag",e.tagCircle="TagCircle",e.tagMultiple="TagMultiple",e.target="Target",e.targetArrow="TargetArrow",e.teddy="Teddy",e.temperature="Temperature",e.tent="Tent",e.tetrisApp="TetrisApp",e.textbox="Textbox",e.textQuote="TextQuote",e.thinking="Thinking",e.thumbDislike="ThumbDislike",e.thumbLike="ThumbLike",e.ticketDiagonal="TicketDiagonal",e.ticketHorizontal="TicketHorizontal",e.timeAndWeather="TimeAndWeather",e.timeline="Timeline",e.timer="Timer",e.toolbox="Toolbox",e.topSpeed="TopSpeed",e.translate="Translate",e.transmission="Transmission",e.treeDeciduous="TreeDeciduous",e.treeEvergreen="TreeEvergreen",e.trophy="Trophy",e.tv="Tv",e.tvUsb="TvUsb",e.umbrella="Umbrella",e.usbPlug="UsbPlug",e.usbStick="UsbStick",e.vault="Vault",e.vehicleBicycle="VehicleBicycle",e.vehicleBus="VehicleBus",e.vehicleCab="VehicleCab",e.vehicleCar="VehicleCar",e.vehicleCarCollision="VehicleCarCollision",e.vehicleCarProfileLtr="VehicleCarProfileLtr",e.vehicleCarProfileRtl="VehicleCarProfileRtl",e.vehicleShip="VehicleShip",e.vehicleSubway="VehicleSubway",e.vehicleTruck="VehicleTruck",e.vehicleTruckBag="VehicleTruckBag",e.vehicleTruckCube="VehicleTruckCube",e.vehicleTruckProfile="VehicleTruckProfile",e.video="Video",e.video360="Video360",e.videoChat="VideoChat",e.videoClip="VideoClip",e.videoClipMultiple="VideoClipMultiple",e.videoPerson="VideoPerson",e.videoRecording="VideoRecording",e.videoSecurity="VideoSecurity",e.viewDesktop="ViewDesktop",e.viewDesktopMobile="ViewDesktopMobile",e.violin="Violin",e.virtualNetwork="VirtualNetwork",e.voicemail="Voicemail",e.vote="Vote",e.walkieTalkie="WalkieTalkie",e.wallet="Wallet",e.walletCreditCard="WalletCreditCard",e.wallpaper="Wallpaper",e.wand="Wand",e.warning="Warning",e.weatherBlowingSnow="WeatherBlowingSnow",e.weatherCloudy="WeatherCloudy",e.weatherDrizzle="WeatherDrizzle",e.weatherDuststorm="WeatherDuststorm",e.weatherFog="WeatherFog",e.weatherHailDay="WeatherHailDay",e.weatherHailNight="WeatherHailNight",e.weatherHaze="WeatherHaze",e.weatherMoon="WeatherMoon",e.weatherPartlyCloudyDay="WeatherPartlyCloudyDay",e.weatherPartlyCloudyNight="WeatherPartlyCloudyNight",e.weatherRain="WeatherRain",e.weatherRainShowersDay="WeatherRainShowersDay",e.weatherRainShowersNight="WeatherRainShowersNight",e.weatherRainSnow="WeatherRainSnow",e.weatherSnow="WeatherSnow",e.weatherSnowflake="WeatherSnowflake",e.weatherSnowShowerDay="WeatherSnowShowerDay",e.weatherSnowShowerNight="WeatherSnowShowerNight",e.weatherSqualls="WeatherSqualls",e.weatherSunnyHigh="WeatherSunnyHigh",e.weatherSunnyLow="WeatherSunnyLow",e.weatherThunderstorm="WeatherThunderstorm",e.webAsset="WebAsset",e.whiteboard="Whiteboard",e.wifi1="Wifi1",e.wifi2="Wifi2",e.window="Window",e.windowMultiple="WindowMultiple",e.windowWrench="WindowWrench",e.wrench="Wrench",e.wrenchScrewdriver="WrenchScrewdriver",e.xray="Xray",e.yoga="Yoga"}(e.EntityCompactLayoutIcons||(e.EntityCompactLayoutIcons={})),function(e){e.array="Array",e.entity="Entity",e.root="Root",e.double="Double",e.string="String",e.boolean="Boolean"}(e.ReferenceValueType||(e.ReferenceValueType={})),function(e){e.array="Array",e.boolean="Boolean",e.double="Double",e.entity="Entity",e.empty="Empty",e.error="Error",e.externalCodeServiceObject="ExternalCodeServiceObject",e.formattedNumber="FormattedNumber",e.function="Function",e.linkedEntity="LinkedEntity",e.localImage="LocalImage",e.reference="Reference",e.string="String",e.notAvailable="NotAvailable",e.webImage="WebImage"}(e.CellValueType||(e.CellValueType={})),function(e){e.unknown="Unknown",e.serviceError="ServiceError",e.externalLinks="ExternalLinks",e.externalLinksNonCloudLocation="ExternalLinksNonCloudLocation",e.dataTypeNoConnection="DataTypeNoConnection",e.dataTypeServiceError="DataTypeServiceError",e.missingContent="MissingContent",e.requestThrottle="RequestThrottle",e.externalLinksFailedToRefresh="ExternalLinksFailedToRefresh",e.externalLinksAccessFailed="ExternalLinksAccessFailed",e.externalLinksServerError="ExternalLinksServerError",e.externalLinksInvalidRequest="ExternalLinksInvalidRequest",e.externalLinksUnAuthenticated="ExternalLinksUnAuthenticated",e.externalLinksThrottledByHost="ExternalLinksThrottledByHost",e.externalLinksFileTooLarge="ExternalLinksFileTooLarge",e.outdatedLinkedEntity="OutdatedLinkedEntity",e.genericServerError="GenericServerError",e.imageUnableToRetrieve="ImageUnableToRetrieve",e.externalCodeServiceEnvironmentNotFound="ExternalCodeServiceEnvironmentNotFound",e.externalCodeServiceRuntimeNotFound="ExternalCodeServiceRuntimeNotFound",e.externalCodeServiceEnvironmentBadState="ExternalCodeServiceEnvironmentBadState",e.externalCodeServiceRuntimeBadState="ExternalCodeServiceRuntimeBadState",e.externalCodeServiceComputeResourceNotAvailable="ExternalCodeServiceComputeResourceNotAvailable",e.pythonPowerQueryDataUploadHasNotStarted="PythonPowerQueryDataUploadHasNotStarted",e.excelClientMisconfigurationError="ExcelClientMisconfigurationError"}(e.ConnectErrorCellValueSubType||(e.ConnectErrorCellValueSubType={})),function(e){e.blocked="Blocked",e.busy="Busy",e.calc="Calc",e.connect="Connect",e.div0="Div0",e.external="External",e.field="Field",e.gettingData="GettingData",e.notAvailable="NotAvailable",e.name="Name",e.null="Null",e.num="Num",e.placeholder="Placeholder",e.python="Python",e.ref="Ref",e.spill="Spill",e.timeout="Timeout",e.value="Value"}(e.ErrorCellValueType||(e.ErrorCellValueType={})),function(e){e.unknown="Unknown"}(e.ExternalErrorCellValueSubType||(e.ExternalErrorCellValueSubType={})),function(e){e.unknown="Unknown",e.webImageMissingFilePart="WebImageMissingFilePart",e.dataProviderError="DataProviderError",e.richValueRelMissingFilePart="RichValueRelMissingFilePart"}(e.FieldErrorCellValueSubType||(e.FieldErrorCellValueSubType={})),function(e){e.unknown="Unknown",e.vlookupValueNotFound="VlookupValueNotFound",e.hlookupValueNotFound="HlookupValueNotFound",e.stockHistoryInvalidProperty="StockHistoryInvalidProperty",e.stockHistoryNoData="StockHistoryNoData",e.pythonObjectUnknown="PythonObjectUnknown",e.eRegexMatchNoResult="ERegexMatchNoResult",e.eRegexReplaceOccurrenceNoResult="ERegexReplaceOccurrenceNoResult",e.eRegexMatchNoCapture="ERegexMatchNoCapture"}(e.NotAvailableErrorCellValueSubType||(e.NotAvailableErrorCellValueSubType={})),function(e){e.unknown="Unknown",e.unsupportedFunction="UnsupportedFunction"}(e.NameErrorCellValueSubType||(e.NameErrorCellValueSubType={})),function(e){e.unknown="Unknown",e.arrayTooLarge="ArrayTooLarge"}(e.NumErrorCellValueSubType||(e.NumErrorCellValueSubType={})),function(e){e.unknown="Unknown",e.externalLinksStructuredRef="ExternalLinksStructuredRef",e.externalLinksCalculatedRef="ExternalLinksCalculatedRef",e.corruptCellRef="CorruptCellRef"}(e.RefErrorCellValueSubType||(e.RefErrorCellValueSubType={})),function(e){e.unknown="Unknown",e.collision="Collision",e.indeterminateSize="IndeterminateSize",e.worksheetEdge="WorksheetEdge",e.outOfMemoryWhileCalc="OutOfMemoryWhileCalc",e.table="Table",e.mergedCell="MergedCell"}(e.SpillErrorCellValueSubType||(e.SpillErrorCellValueSubType={})),function(e){e.unknown="Unknown",e.pythonTimeoutLimitReached="PythonTimeoutLimitReached"}(e.TimeoutErrorCellValueSubType||(e.TimeoutErrorCellValueSubType={})),function(e){e.unknown="Unknown",e.vlookupColumnIndexLessThanOne="VlookupColumnIndexLessThanOne",e.vlookupResultNotFound="VlookupResultNotFound",e.hlookupRowIndexLessThanOne="HlookupRowIndexLessThanOne",e.hlookupResultNotFound="HlookupResultNotFound",e.coerceStringToNumberInvalid="CoerceStringToNumberInvalid",e.coerceStringToBoolInvalid="CoerceStringToBoolInvalid",e.coerceStringToInvalidType="CoerceStringToInvalidType",e.subArrayStartRowMissingEndRowNot="SubArrayStartRowMissingEndRowNot",e.subArrayStartColumnMissingEndColumnNot="SubArrayStartColumnMissingEndColumnNot",e.invalidImageUrl="InvalidImageUrl",e.stockHistoryNonTradingDays="StockHistoryNonTradingDays",e.stockHistoryNotAStock="StockHistoryNotAStock",e.stockHistoryInvalidDate="StockHistoryInvalidDate",e.stockHistoryEndBeforeStart="StockHistoryEndBeforeStart",e.stockHistoryStartInFuture="StockHistoryStartInFuture",e.stockHistoryInvalidEnum="StockHistoryInvalidEnum",e.stockHistoryOnlyDateRequested="StockHistoryOnlyDateRequested",e.stockHistoryNotFound="StockHistoryNotFound",e.lambdaWrongParamCount="LambdaWrongParamCount",e.imageFormulaTooManyArgs="ImageFormulaTooManyArgs",e.imageFormulaInvalidImageFormat="ImageFormulaInvalidImageFormat",e.imageFormulaInvalidSource="ImageFormulaInvalidSource",e.imageFormulaInvalidAltText="ImageFormulaInvalidAltText",e.imageFormulaInvalidSizing="ImageFormulaInvalidSizing",e.imageFormulaNotEnoughArgs="ImageFormulaNotEnoughArgs",e.imageFormulaInvalidHeight="ImageFormulaInvalidHeight",e.imageFormulaInvalidWidth="ImageFormulaInvalidWidth",e.invalidCellValueTypeCoercion="InvalidCellValueTypeCoercion",e.cRegexErrorGeneric="CRegexErrorGeneric",e.cRegexEndBackslash="CRegexEndBackslash",e.cRegexEndBackslashC="CRegexEndBackslashC",e.cRegexUnknownEscape="CRegexUnknownEscape",e.cRegexQuantifierOutOfOrder="CRegexQuantifierOutOfOrder",e.cRegexQuantifierTooBig="CRegexQuantifierTooBig",e.cRegexMissingSquareBracket="CRegexMissingSquareBracket",e.cRegexEscapeInvalidInClass="CRegexEscapeInvalidInClass",e.cRegexQuantifierInvalid="CRegexQuantifierInvalid",e.cRegexInvalidAfterParensQuery="CRegexInvalidAfterParensQuery",e.cRegexPosixClassNotInClass="CRegexPosixClassNotInClass",e.cRegexPosixNoSupportCollating="CRegexPosixNoSupportCollating",e.cRegexMissingClosingParenthesis="CRegexMissingClosingParenthesis",e.cRegexBadSubpatternReference="CRegexBadSubpatternReference",e.cRegexMissingCommentClosing="CRegexMissingCommentClosing",e.cRegexParenthesesNestTooDeep="CRegexParenthesesNestTooDeep",e.cRegexPatternTooLarge="CRegexPatternTooLarge",e.cRegexUnmatchedClosingParenthesis="CRegexUnmatchedClosingParenthesis",e.cRegexMissingConditionClosing="CRegexMissingConditionClosing",e.cRegexLookbehindNotFixedLength="CRegexLookbehindNotFixedLength",e.cRegexZeroRelativeReference="CRegexZeroRelativeReference",e.cRegexTooManyConditionBranches="CRegexTooManyConditionBranches",e.cRegexBadRelativeReference="CRegexBadRelativeReference",e.cRegexUnknownPosixClass="CRegexUnknownPosixClass",e.cRegexCodePointTooBig="CRegexCodePointTooBig",e.cRegexLookbehindTooComplicated="CRegexLookbehindTooComplicated",e.cRegexUnsupportedEscapeSequence="CRegexUnsupportedEscapeSequence",e.cRegexCalloutNumberTooBig="CRegexCalloutNumberTooBig",e.cRegexMissingCalloutClosing="CRegexMissingCalloutClosing",e.cRegexEscapeInvalidInVerb="CRegexEscapeInvalidInVerb",e.cRegexUnrecognizedAfterQueryP="CRegexUnrecognizedAfterQueryP",e.cRegexMissingNameTerminator="CRegexMissingNameTerminator",e.cRegexDuplicateSubpatternName="CRegexDuplicateSubpatternName",e.cRegexInvalidSubpatternName="CRegexInvalidSubpatternName",e.cRegexUnicodePropertiesUnavailable="CRegexUnicodePropertiesUnavailable",e.cRegexMalformedUnicodeProperty="CRegexMalformedUnicodeProperty",e.cRegexUnknownUnicodeProperty="CRegexUnknownUnicodeProperty",e.cRegexSubpatternNameTooLong="CRegexSubpatternNameTooLong",e.cRegexTooManyNamedSubpatterns="CRegexTooManyNamedSubpatterns",e.cRegexClassInvalidRange="CRegexClassInvalidRange",e.cRegexDefineTooManyBranches="CRegexDefineTooManyBranches",e.cRegexBackslashOMissingBrace="CRegexBackslashOMissingBrace",e.cRegexBackslashGSyntax="CRegexBackslashGSyntax",e.cRegexParensQueryRMissingClosing="CRegexParensQueryRMissingClosing",e.cRegexVerbUnknown="CRegexVerbUnknown",e.cRegexSubpatternNumberTooBig="CRegexSubpatternNumberTooBig",e.cRegexSubpatternNameExpected="CRegexSubpatternNameExpected",e.cRegexInvalidOctal="CRegexInvalidOctal",e.cRegexSubpatternNamesMismatch="CRegexSubpatternNamesMismatch",e.cRegexMarkMissingArgument="CRegexMarkMissingArgument",e.cRegexInvalidHexadecimal="CRegexInvalidHexadecimal",e.cRegexBackslashCSyntax="CRegexBackslashCSyntax",e.cRegexBackslashNInClass="CRegexBackslashNInClass",e.cRegexCalloutStringTooLong="CRegexCalloutStringTooLong",e.cRegexUnicodeDisallowedCodePoint="CRegexUnicodeDisallowedCodePoint",e.cRegexVerbNameTooLong="CRegexVerbNameTooLong",e.cRegexBackslashUCodePointTooBig="CRegexBackslashUCodePointTooBig",e.cRegexMissingOctalOrHexDigits="CRegexMissingOctalOrHexDigits",e.cRegexVersionConditionSyntax="CRegexVersionConditionSyntax",e.cRegexCalloutNoStringDelimiter="CRegexCalloutNoStringDelimiter",e.cRegexCalloutBadStringDelimiter="CRegexCalloutBadStringDelimiter",e.cRegexQueryBarjxNestTooDeep="CRegexQueryBarjxNestTooDeep",e.cRegexPatternTooComplicated="CRegexPatternTooComplicated",e.cRegexLookbehindTooLong="CRegexLookbehindTooLong",e.cRegexPatternStringTooLong="CRegexPatternStringTooLong",e.cRegexInvalidHyphenInOptions="CRegexInvalidHyphenInOptions",e.cRegexAlphaAssertionUnknown="CRegexAlphaAssertionUnknown",e.cRegexTooManyCaptures="CRegexTooManyCaptures",e.cRegexConditionAtomicAssertionExpected="CRegexConditionAtomicAssertionExpected",e.cRegexBackslashKInLookaround="CRegexBackslashKInLookaround",e.mRegexErrorGeneric="MRegexErrorGeneric",e.mRegexBadReplacement="MRegexBadReplacement",e.mRegexMatchLimit="MRegexMatchLimit",e.mRegexNoSubstring="MRegexNoSubstring",e.mRegexDepthLimit="MRegexDepthLimit",e.mRegexBadReplacementEscape="MRegexBadReplacementEscape",e.mRegexReplacementMissingBrace="MRegexReplacementMissingBrace",e.mRegexBadSubstitution="MRegexBadSubstitution",e.mRegexRecursiveLoop="MRegexRecursiveLoop",e.eRegexErrorGeneric="ERegexErrorGeneric",e.eRegexNoCaptureGroups="ERegexNoCaptureGroups",e.translateStringTooLong="TranslateStringTooLong",e.translateUnsupportedSrcLanguage="TranslateUnsupportedSrcLanguage",e.translateUnsupportedTargetLanguage="TranslateUnsupportedTargetLanguage"}(e.ValueErrorCellValueSubType||(e.ValueErrorCellValueSubType={}));var n=function(e){function t(t){var n=e.call(this,t)||this;return n._customData="WacPartition",n.m_wacWorkbook=E(o,n),n._rootObject=n.m_wacWorkbook,n._rootObjectPropertyName="wacWorkbook",n}return __extends(t,e),Object.defineProperty(t.prototype,"wacWorkbook",{get:function(){return this.m_wacWorkbook},enumerable:!0,configurable:!0}),t}(OfficeCore.RequestContext),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.createAndOpenWorkbook=function(e){P(this,"CreateAndOpenWorkbook",0,[e],0,0)},t}(OfficeExtension.ClientObject);function r(e){return e[0].toLowerCase()+e.slice(1)}e.createWorkbook=function(e){return w("Excel.createWorkbook",S,"1.8",O),t({delayForCellEdit:!0},(function(t){t instanceof n?t.wacWorkbook.createAndOpenWorkbook(e):t.workbook.application.createWorkbook(e).open()}))};var i,a,s,l=[["RedDownArrow","YellowSideArrow","GreenUpArrow"],["GrayDownArrow","GraySideArrow","GrayUpArrow"],["RedFlag","YellowFlag","GreenFlag"],["RedCircleWithBorder","YellowCircle","GreenCircle"],["RedTrafficLight","YellowTrafficLight","GreenTrafficLight"],["RedDiamond","YellowTriangle","GreenCircle"],["RedCrossSymbol","YellowExclamationSymbol","GreenCheckSymbol"],["RedCross","YellowExclamation","GreenCheck"],["RedDownArrow","YellowDownInclineArrow","YellowUpInclineArrow","GreenUpArrow"],["GrayDownArrow","GrayDownInclineArrow","GrayUpInclineArrow","GrayUpArrow"],["BlackCircle","GrayCircle","PinkCircle","RedCircle"],["OneBar","TwoBars","ThreeBars","FourBars"],["BlackCircleWithBorder","RedCircleWithBorder","YellowCircle","GreenCircle"],["RedDownArrow","YellowDownInclineArrow","YellowSideArrow","YellowUpInclineArrow","GreenUpArrow"],["GrayDownArrow","GrayDownInclineArrow","GraySideArrow","GrayUpInclineArrow","GrayUpArrow"],["NoBars","OneBar","TwoBars","ThreeBars","FourBars"],["WhiteCircleAllWhiteQuarters","CircleWithThreeWhiteQuarters","CircleWithTwoWhiteQuarters","CircleWithOneWhiteQuarter","BlackCircle"],["SilverStar","HalfGoldStar","GoldStar"],["RedDownTriangle","YellowDash","GreenUpTriangle"],["NoFilledBoxes","OneFilledBox","TwoFilledBoxes","ThreeFilledBoxes","FourFilledBoxes"]];function c(e,t,n,o){if(Array.isArray(n)&&n.length>0&&Array.isArray(n[0])&&n.length*n[0].length>1500&&d()){var r=Math.max(1,Math.round(1500/n[0].length));e._ValidateArraySize(n.length,n[0].length);for(var i=0;i<n.length;i+=r){var a=r;i+a>n.length&&(a=n.length-i);var s=e.getRow(i).untrack().getBoundingRect(e.getRow(i+a-1).untrack()).untrack(),l=n.slice(i,i+a);R(s,t,l,null!=o?o:0)}return!0}return!1}function u(e){return OfficeExtension.Utility.isSetSupported("ExcelApi",e.toString())}function d(){return u(1.3)}function f(e){return!("undefined"==typeof window||!window.Office||!window.Office.context)&&window.Office.context.platform===e}e.icons={},["ThreeArrows","ThreeArrowsGray","ThreeFlags","ThreeTrafficLights1","ThreeTrafficLights2","ThreeSigns","ThreeSymbols","ThreeSymbols2","FourArrows","FourArrowsGray","FourRedToBlack","FourRating","FourTrafficLights","FiveArrows","FiveArrowsGray","FiveRating","FiveQuarters","ThreeStars","ThreeTriangles","FiveBoxes"].map((function(t,n){var o=r(t);e.icons[o]=[],l[n].map((function(n,i){n=r(n);var a={set:t,index:i};e.icons[o].push(a),e.icons[o][n]=a}))})),function(e){e.NotStarted="notStarted",e.Running="running",e.Succeeded="succeeded",e.Failed="failed"}(i||(i={})),function(e){e[e.OK=200]="OK",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NoContent=204]="NoContent",e[e.HighestSuccessCode=299]="HighestSuccessCode",e[e.TooManyRequests=429]="TooManyRequests",e[e.InternalServerError=500]="InternalServerError",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(a||(a={})),function(e){e.Close="Session.close",e.CommitChanges="Session.commitChanges",e.Create="Session.resolveRequestUrlAndHeaderInfo",e.Refresh="Session.refreshSession"}(s=e.SessionOperation||(e.SessionOperation={}));var p=function(){function e(t,n,o){var r=void 0===o?{}:o,i=r.persistChanges,a=void 0===i||i,s=r.commitExplicitly,l=void 0===s||s;this.m_requestId="",this.m_workbookUrl=t?e.ensureUrlFormatEndWithSlash(t):"",this.m_requestHeaders=n||{},this.m_persistChanges=a,this.m_commitExplicitly=l}return Object.defineProperty(e.prototype,"requestId",{get:function(){return this.m_requestId},enumerable:!0,configurable:!0}),e.prototype.close=function(){var t=this;if(this.m_requestUrlAndHeaderInfo&&!OfficeExtension.Utility._isLocalDocumentUrl(this.m_requestUrlAndHeaderInfo.url)){var n={method:"POST",url:this.buildRestApiUrl(this.m_requestUrlAndHeaderInfo.url,e.CLOSE_SESSION),headers:this.m_requestUrlAndHeaderInfo.headers,body:""};return OfficeExtension.HttpUtility.sendRequest(n).then((function(n){if(n.statusCode!==a.NoContent)throw e.createErrorFromResponseInfo(n,s.Close);for(var o in t.m_requestUrlAndHeaderInfo=null,t.m_requestHeaders)if(o.toLowerCase()===e.WorkbookSessionIdHeaderNameLower){delete t.m_requestHeaders[o];break}}))}return OfficeExtension.Utility._createPromiseFromResult(null)},e.prototype.commitChanges=function(t){var n=this;if(void 0===t&&(t={}),!this.m_commitExplicitly)throw e.createError(a.InternalServerError,"Can not call commitChanges() if commitExplicitly is not set.",s.CommitChanges);if(!this.m_workbookUrl||OfficeExtension.Utility._isLocalDocumentUrl(this.m_workbookUrl))throw e.createError(a.InternalServerError,"Not supported for local documents.",s.CommitChanges);if(!this.m_requestUrlAndHeaderInfo)throw e.createError(a.InternalServerError,"Need to call this._resolveRequestUrlAndHeaderInfo() to get the session id first.",s.CommitChanges);var o=this.createCommitChangesRequestInfo(t);return OfficeExtension.HttpUtility.sendRequest(o).then((function(o){var r=o.statusCode;if(r===a.Accepted)return e.delay(e.POLL_DELAY).then((function(r){return n.pollResourceLocation(e.getHeaderIgnoreCase(o.headers,e.LOCATION_HEADER),s.CommitChanges,t)})).then((function(t){if(JSON.parse(t.body).status===i.Failed)throw e.createErrorFromResponseInfo(t,s.CommitChanges);return e.parseCooldownTime(t)}));if(r>=a.OK&&r<=a.HighestSuccessCode)return e.parseCooldownTime(o);throw e.createErrorFromResponseInfo(o,s.CommitChanges)}))},e.prototype._resolveRequestUrlAndHeaderInfo=function(t){var n=this;if(void 0===t&&(t={}),this.m_requestUrlAndHeaderInfo)return OfficeExtension.Utility._createPromiseFromResult(this.m_requestUrlAndHeaderInfo);if(!this.m_workbookUrl||OfficeExtension.Utility._isLocalDocumentUrl(this.m_workbookUrl))return this.m_requestUrlAndHeaderInfo={url:this.m_workbookUrl,headers:this.m_requestHeaders},OfficeExtension.Utility._createPromiseFromResult(this.m_requestUrlAndHeaderInfo);if(e.getHeaderIgnoreCase(this.m_requestHeaders,e.WorkbookSessionIdHeaderNameLower))return this.m_requestUrlAndHeaderInfo={url:this.m_workbookUrl,headers:this.m_requestHeaders},OfficeExtension.Utility._createPromiseFromResult(this.m_requestUrlAndHeaderInfo);var o=this.createAsyncGraphSessionRequestInfo(t);return OfficeExtension.HttpUtility.sendRequest(o).then((function(o){if(n.m_requestId=e.getHeaderIgnoreCase(o.headers,e.REQUEST_ID_HEADER),o.statusCode!==a.Accepted&&o.statusCode!==a.Created)throw e.createErrorFromResponseInfo(o,s.Create);return o.statusCode===a.Created?(n.formatRequestUrlAndHeaderInfo(o),o):e.delay(e.POLL_DELAY).then((function(r){return n.pollResourceLocation(e.getHeaderIgnoreCase(o.headers,e.LOCATION_HEADER),s.Create,t)})).then((function(r){var a=JSON.parse(r.body);if(a.status===i.Failed)throw e.createErrorFromResponseInfo(r,s.Create);var l={method:"GET",url:a.resourceLocation,headers:__assign({},t,{Authorization:e.getHeaderIgnoreCase(n.m_requestHeaders,e.AUTHORIZATION_HEADER)}),body:void 0};return OfficeExtension.HttpUtility.sendRequest(l).then((function(e){return n.formatRequestUrlAndHeaderInfo(e),o}))}))}))},e.prototype.refreshSession=function(){if(!this.m_workbookUrl||OfficeExtension.Utility._isLocalDocumentUrl(this.m_workbookUrl))throw e.createError(a.InternalServerError,"Not supported for local documents.",s.Refresh);if(!this.m_requestUrlAndHeaderInfo)throw e.createError(a.InternalServerError,"Need to call this._resolveRequestUrlAndHeaderInfo() to get the session id first.",s.Refresh);var t=this.createRefreshSessionRequestInfo();return OfficeExtension.HttpUtility.sendRequest(t).then((function(t){if(t.statusCode!=a.NoContent)throw e.createErrorFromResponseInfo(t,s.Refresh);return OfficeExtension.Utility._createPromiseFromResult(null)}))},e.getHeaderIgnoreCase=function(e,t){var n=Object.keys(e).filter((function(e){return e.toLowerCase()===t.toLowerCase()}));return n.length>0?e[n[0]]:void 0},e.prototype.createCommitChangesRequestInfo=function(t){void 0===t&&(t={});var n=this.buildRestApiUrl(this.m_workbookUrl,e.COMMIT_CHANGES),o={};return OfficeExtension.Utility._copyHeaders(this.m_requestUrlAndHeaderInfo.headers,o),OfficeExtension.Utility._copyHeaders(t,o),o[e.PREFER_HEADER]=e.PREFER_HEADER_VAL,{url:n,method:"POST",headers:o,body:{}}},e.prototype.createAsyncGraphSessionRequestInfo=function(t){void 0===t&&(t={});var n=this.buildRestApiUrl(this.m_workbookUrl,e.CREATE_SESSION),o={};return OfficeExtension.Utility._copyHeaders(this.m_requestHeaders,o),OfficeExtension.Utility._copyHeaders(t,o),o[e.CONTENT_TYPE_HEADER]=e.CONTENT_TYPE_HEADER_VAL,o[e.PREFER_HEADER]=e.PREFER_HEADER_VAL,{url:n,method:"POST",headers:o,body:{persistChanges:this.m_persistChanges,commitExplicitly:this.m_commitExplicitly}}},e.prototype.createRefreshSessionRequestInfo=function(){var t=this.buildRestApiUrl(this.m_workbookUrl,e.REFRESH_SESSION),n={};return OfficeExtension.Utility._copyHeaders(this.m_requestUrlAndHeaderInfo.headers,n),n[e.CONTENT_TYPE_HEADER]=e.CONTENT_TYPE_HEADER_VAL,{url:t,method:"POST",headers:n,body:{}}},e.getCorrectGraphVersionUrl=function(t){return t.replace(new RegExp("graph.microsoft.com/.*?/"),"graph.microsoft.com/"+e.ASYNC_API_GRAPH_VERSION+"/")},e.prototype.buildRestApiUrl=function(t,n,o){void 0===o&&(o={});var r={};switch(OfficeExtension.Utility._copyHeaders(o,r),OfficeExtension.Utility._copyHeaders(this.m_requestHeaders,r),this.m_requestUrlAndHeaderInfo&&this.m_requestUrlAndHeaderInfo.headers&&OfficeExtension.Utility._copyHeaders(this.m_requestUrlAndHeaderInfo.headers,r),e.getHeaderIgnoreCase(r,OfficeExtension.CommonConstants.remoteEndpointTypeHeaderKey)){case OfficeExtension.RemoteEndpointType.graph.toString():var i=new URL(e.getCorrectGraphVersionUrl(t)),a=i.pathname.split("/");return n&&a.push(n),i.pathname=a.join("/"),i.toString();case OfficeExtension.RemoteEndpointType.wfe.toString():var s=new URL(t);n&&s.searchParams.set("wdRestPart","_api/"+n);var l=e.getHeaderIgnoreCase(r,e.WorkbookSessionIdHeaderNameLower);if(l=l||e.getHeaderIgnoreCase(r,e.WorkbookSessionIdHeaderNameLower)){var c=l.match(/cluster=(.*?[^\&]+)/);c&&s.searchParams.set("waccluster",c[1])}return s.toString();default:return t}},e.prototype.pollResourceLocation=function(t,n,o,r){var s=this;if(void 0===o&&(o={}),void 0===r&&(r=0),r>=e.MAX_POLL_ATTEMPTS)throw e.createError(a.InternalServerError,"Timout while polling for the resource location.",n);var l={method:"GET",url:t,headers:__assign({},o,{Authorization:e.getHeaderIgnoreCase(this.m_requestHeaders,e.AUTHORIZATION_HEADER)}),body:void 0};return OfficeExtension.HttpUtility.sendRequest(l).then((function(l){if(l.statusCode!==a.OK)return s.pollResourceLocation(t,n,o,r+1);switch(JSON.parse(l.body).status){case i.Succeeded:case i.Failed:return l;case i.NotStarted:case i.Running:return e.delay(e.POLL_DELAY).then((function(e){return s.pollResourceLocation(t,n,o,r+1)}));default:throw e.createErrorFromResponseInfo(l,n)}}))},e.parseCooldownTime=function(t){var n=e.getHeaderIgnoreCase(t.headers,e.RETRY_AFTER_HEADER);return n?1e3*parseInt(n):e.DEFAULT_COMMIT_CHANGES_RETRY_AFTER},e.prototype.formatRequestUrlAndHeaderInfo=function(t){if(t.statusCode!==a.OK&&t.statusCode!==a.Created)throw e.createErrorFromResponseInfo(t,s.Create);var n=JSON.parse(t.body).id,o={};OfficeExtension.Utility._copyHeaders(this.m_requestHeaders,o),o[e.WorkbookSessionIdHeaderName]=n,this.m_requestUrlAndHeaderInfo={url:this.buildRestApiUrl(this.m_workbookUrl,void 0,o),headers:o}},e.ensureUrlFormatEndWithSlash=function(e){return"/"!==e.charAt(e.length-1)&&(e+="/"),e},e.delay=function(e){return new OfficeExtension.CoreUtility.Promise((function(t,n){return setTimeout((function(){return t()}),e)}))},e.createErrorFromResponseInfo=function(t,n){var o=OfficeExtension.Utility._parseErrorResponse(t),r={retryAfter:e.getHeaderIgnoreCase(t.headers,e.RETRY_AFTER_HEADER),responseBody:OfficeExtension.Utility._parseErrorResponseBody(t)};return OfficeExtension.Utility.createRuntimeError(o.errorCode,o.errorMessage,n,t.statusCode,r)},e.createError=function(e,t,n){return OfficeExtension.Utility.createRuntimeError(""+e,t,n)},e.WorkbookSessionIdHeaderName="Workbook-Session-Id",e.WorkbookSessionIdHeaderNameLower="workbook-session-id",e.ASYNC_API_GRAPH_VERSION="beta",e.POLL_DELAY=1e4,e.MAX_POLL_ATTEMPTS=10,e.DEFAULT_COMMIT_CHANGES_RETRY_AFTER=1e4,e.LOCATION_HEADER="location",e.AUTHORIZATION_HEADER="authorization",e.REQUEST_ID_HEADER="request-id",e.RETRY_AFTER_HEADER="retry-after",e.PREFER_HEADER="Prefer",e.PREFER_HEADER_VAL="respond-async",e.CONTENT_TYPE_HEADER="Content-Type",e.CONTENT_TYPE_HEADER_VAL="application/json",e.CLOSE_SESSION="closeSession",e.COMMIT_CHANGES="commitChanges",e.CREATE_SESSION="createSession",e.REFRESH_SESSION="refreshSession",e}();e.Session=p;var h=function(t){function n(n){var o=t.call(this,n)||this;return o.m_workbook=E(e.Workbook,o),o._rootObject=o.m_workbook,o._rootObjectPropertyName="workbook",o}return __extends(n,t),n.prototype._processOfficeJsErrorResponse=function(e,t){5004===e&&(t.ErrorCode=V.invalidOperationInCellEditMode,t.HttpStatusCode=400,t.ErrorMessage=OfficeExtension.Utility._getResourceString(OfficeExtension.ResourceStrings.invalidOperationInCellEditMode))},Object.defineProperty(n.prototype,"workbook",{get:function(){return this.m_workbook},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"application",{get:function(){return this.workbook.application},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"runtime",{get:function(){return this.workbook._Runtime},enumerable:!0,configurable:!0}),n}(OfficeCore.RequestContext);e.RequestContext=h;var g=function(){function e(){}return e.enableMacroRecordingEvent=function(e){OfficeExtension._internalConfig.appendTypeNameToObjectPathInfo=!0;var t=function(e){return e.requestHeaders[OfficeExtension.Constants.officeScriptFireRecordingEvent]="true",e.workbook.onRecordingStateChangedEvent.add((function(e){return OfficeExtension._internalConfig.appendTypeNameToObjectPathInfo=e.recording,OfficeExtension.Utility._createPromiseFromResult(null)})),OfficeExtension.Utility._createPromiseFromResult(null)};return null!=e?t(e):v((function(e){return t(e)}))},e}();function m(e,t){var n=e;(n.delayForCellEdit&&OfficeExtension.CommonUtility.isSetSupported("DelayForCellEdit")?t._requestFlagModifier|=64:t._requestFlagModifier&=-65,n._makerSafe&&(t._requestFlagModifier|=1024),n.mergeUndoGroup&&OfficeExtension.CommonUtility.isSetSupported("MergeUndoGroup"))&&t.workbook.application.undoScope.open()}function y(e,t){e.mergeUndoGroup&&OfficeExtension.CommonUtility.isSetSupported("MergeUndoGroup")&&t.workbook.application.undoScope.close()}function v(t,n){return OfficeExtension.ClientRequestContext._runBatch("Excel.run",arguments,(function(t){return new e.RequestContext(t)}),m,y)}function b(e){var t={BindingColumnCount:e.bindingColumnCount,BindingId:e.bindingId,BindingRowCount:e.bindingRowCount,bindingType:e.bindingType,HasHeaders:e.hasHeaders};return window.OSF.DDA.OMFactory.manufactureBinding(t,window.Microsoft.Office.WebExtension.context.document)}function C(e,t){var n;return n=null==e.headers?e.rows:e,void 0===(n=window.OSF.DDA.DataCoercion.coerceData(n,t[window.Microsoft.Office.WebExtension.Parameters.CoercionType]))?null:n}function _(e){if(!("undefined"!=typeof window&&window.Office&&window.Office.context&&window.Office.context.diagnostics&&window.Office.context.diagnostics.version))return!1;var t=window.Office.context.diagnostics.platform.toLowerCase();if("officeonline"===t)return!1;var n=e[t];null==n&&(n=e.general);var o=window.Office.context.diagnostics.version,r=/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/.exec(o);if(r){var i=parseInt(r[1]),a=parseInt(r[2]),s=parseInt(r[3]);if(i<n.desiredMajor)return!0;if(i===n.desiredMajor&&a<n.desiredMinor)return!0;if(i===n.desiredMajor&&a===n.desiredMinor&&s<n.desiredBuild){var l=r[4];if(/^3\d\d\d+$/.exec(l))return!0}}return!1}e.Recorder=g,e.run=v,e.runBatch=function(t,n){return OfficeExtension.ClientRequestContext._runExplicitBatch("Excel.runBatch",arguments,(function(t){return new e.RequestContext(t)}),m,y)},e._RedirectV1APIs=!1,e._V1APIMap={GetDataAsync:{call:function(e,t){return e.workbook._V1Api.bindingGetData(t)},postprocess:C},GetSelectedDataAsync:{call:function(e,t){return e.workbook._V1Api.getSelectedData(t)},postprocess:C},GoToByIdAsync:{call:function(e,t){return e.workbook._V1Api.gotoById(t)}},AddColumnsAsync:{call:function(e,t){return e.workbook._V1Api.bindingAddColumns(t)}},AddFromSelectionAsync:{call:function(e,t){return e.workbook._V1Api.bindingAddFromSelection(t)},postprocess:b},AddFromNamedItemAsync:{call:function(e,t){return e.workbook._V1Api.bindingAddFromNamedItem(t)},postprocess:b},AddFromPromptAsync:{call:function(e,t){return _({ios:{desiredMajor:2,desiredMinor:20,desiredBuild:0}})&&OfficeExtension.CommonUtility.isSetSupported("DelayForCellEdit")&&(e._requestFlagModifier|=64),e.workbook._V1Api.bindingAddFromPrompt(t)},postprocess:b},AddRowsAsync:{call:function(e,t){return e.workbook._V1Api.bindingAddRows(t)}},GetByIdAsync:{call:function(e,t){return e.workbook._V1Api.bindingGetById(t)},postprocess:b},ReleaseByIdAsync:{call:function(e,t){return e.workbook._V1Api.bindingReleaseById(t)}},GetAllAsync:{call:function(e){return e.workbook._V1Api.bindingGetAll()},postprocess:function(e){return e.bindings.map((function(e){return b(e)}))}},DeleteAllDataValuesAsync:{call:function(e,t){return e.workbook._V1Api.bindingDeleteAllDataValues(t)}},SetSelectedDataAsync:{preprocess:function(e){var t=e.cellFormat;return"undefined"!=typeof window&&window.OSF.DDA.SafeArray?window.OSF.OUtil.listContainsKey(window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes,"cellFormat")&&(e.cellFormat=window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(t)):"undefined"!=typeof window&&window.OSF.DDA.WAC&&window.OSF.OUtil.listContainsKey(window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes,"cellFormat")&&(e.cellFormat=window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(t)),e},call:function(e,t){return e.workbook._V1Api.setSelectedData(t)}},SetDataAsync:{preprocess:function(e){var t=e.cellFormat;return"undefined"!=typeof window&&window.OSF.DDA.SafeArray?window.OSF.OUtil.listContainsKey(window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes,"cellFormat")&&(e.cellFormat=window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(t)):"undefined"!=typeof window&&window.OSF.DDA.WAC&&window.OSF.OUtil.listContainsKey(window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes,"cellFormat")&&(e.cellFormat=window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(t)),e},call:function(e,t){return e.workbook._V1Api.bindingSetData(t)}},SetFormatsAsync:{preprocess:function(e){var t=e.cellFormat;return"undefined"!=typeof window&&window.OSF.DDA.SafeArray?window.OSF.OUtil.listContainsKey(window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes,"cellFormat")&&(e.cellFormat=window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(t)):"undefined"!=typeof window&&window.OSF.DDA.WAC&&window.OSF.OUtil.listContainsKey(window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes,"cellFormat")&&(e.cellFormat=window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(t)),e},call:function(e,t){return e.workbook._V1Api.bindingSetFormats(t)}},SetTableOptionsAsync:{call:function(e,t){return e.workbook._V1Api.bindingSetTableOptions(t)}},ClearFormatsAsync:{call:function(e,t){return e.workbook._V1Api.bindingClearFormats(t)}},GetFilePropertiesAsync:{call:function(e){return e.workbook._V1Api.getFilePropertiesAsync()}}};!function(e){e.office10EventIdBindingSelectionChangedEvent=3,e.office10EventIdBindingDataChangedEvent=4,e.office10EventIdDocumentSelectionChangedEvent=2,e.office10EventIdRichApiMessageEvent=5,e.office10EventIdSettingsChangedEvent=1}(e._CC||(e._CC={}));var O="Excel",S="ExcelApi",A=(OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject),E=(OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject),P=(OfficeExtension.BatchApiHelper.createTopLevelServiceObject,OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod),R=(OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty),T=OfficeExtension.Utility.isNullOrUndefined,I=OfficeExtension.Utility.isUndefined,w=(OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported),F=OfficeExtension.Utility.load,D=(OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson,OfficeExtension.Utility.fixObjectPathIfNecessary,OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult,OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags),x=function(){function e(){}return Object.defineProperty(e.prototype,"_ParentObject",{get:function(){return this.m__ParentObject},set:function(e){this.m__ParentObject=e},enumerable:!0,configurable:!0}),e}();e.RangeValuesPreviewCustom=x,function(e){e.Application_SuspendApiCalculationUntilNextSync=function(e){return f("Mac")&&u(1.6)&&!u(1.7)?{handled:!0}:{handled:!1}}}(e._CC||(e._CC={})),function(t){t.Workbook_EnableOfficeScriptRecording=function(e,t){return this.context.eventId=t,{handled:!1}},t.Workbook_RecordAction=function(e,t){return this.context.sdxPayload=t,{handled:!1}},t.Workbook_Notes_Get=function(e,t){},t.Workbook_SelectionChanged_EventArgsTransform=function(e,t){return{workbook:e}},t.Workbook_WACOperationEvent_EventArgsTransform=function(t,n){return{eventId:n.eventId,payload:n.payload,type:e.EventType.wacoperationEvent}},t.Workbook__Message_EventArgsTransform=function(e,t){return{entries:t.entries,workbook:e}}}(e._CC||(e._CC={})),function(t){t.Worksheet_Charts_Get=function(e,t){t._ParentObject=e},t.Worksheet_Comments_Get=function(e,t){t._ParentObject=e},t.Worksheet_Names_Get=function(e,t){t._ParentObject=e},t.Worksheet_Notes_Get=function(e,t){},t.Worksheet_PivotTables_Get=function(e,t){t._ParentObject=e},t.Worksheet_RangeValuesPreview_Get=function(e,t){t._ParentObject=e},t.Worksheet_Shapes_Get=function(e,t){t._ParentObject=e},t.Worksheet_ShowGridlines_Set=function(e,t){return e.m_showGridlines=t,R(e,"Gridlines",t,D(2,"ExcelApiUndo","1.16")),{handled:!0}},t.Worksheet_ShowHeadings_Set=function(e,t){return e.m_showHeadings=t,R(e,"Headings",t,D(2,"ExcelApiUndo","1.30")),{handled:!0}},t.Worksheet_Tables_Get=function(e,t){t._ParentObject=e},t.Worksheet_Visuals_Get=function(e,t){t._ParentObject=e},t.Worksheet_Changed_EventArgsTransform=function(t,n){var o,r,i,a,s=n;return null==s.valueBefore&&null==s.valueAfter||(o={valueBefore:s.valueBefore,valueAfter:s.valueAfter,valueTypeBefore:s.valueTypeBefore,valueTypeAfter:s.valueTypeAfter,valueAsJsonBefore:s.valueAsJsonBefore,valueAsJsonAfter:s.valueAsJsonAfter}),s.shiftDirection==e.InsertDeleteCellsShiftDirection.shiftCellLeft?r=e.DeleteShiftDirection.left:s.shiftDirection==e.InsertDeleteCellsShiftDirection.shiftCellUp?r=e.DeleteShiftDirection.up:s.shiftDirection==e.InsertDeleteCellsShiftDirection.shiftCellRight?i=e.InsertShiftDirection.right:s.shiftDirection==e.InsertDeleteCellsShiftDirection.shiftCellDown&&(i=e.InsertShiftDirection.down),s.shiftDirection!=e.InsertDeleteCellsShiftDirection.none&&(a={deleteShiftDirection:r,insertShiftDirection:i}),{type:e.EventType.worksheetChanged,changeType:s.changeType,source:s.source,worksheetId:t.id,address:s.address,getRange:function(e){return w("WorksheetChangedEventArgs.getRange",S,"1.8",O),e.workbook._GetRangeForEventByReferenceId(s.referenceId)},getRangeOrNullObject:function(e){return w("WorksheetChangedEventArgs.getRangeOrNullObject",S,"1.8",O),e.workbook._GetRangeOrNullObjectForEventByReferenceId(s.referenceId)},details:o,triggerSource:s.triggerSource,changeDirectionState:a}},t.Worksheet_FormatChanged_EventArgsTransform=function(t,n){var o=n;return{type:e.EventType.worksheetFormatChanged,source:o.source,worksheetId:t.id,address:o.address,getRange:function(e){return w("WorksheetFormatChangedEventArgs.getRange",S,"1.9",O),e.workbook._GetRangeForEventByReferenceId(o.referenceId)},getRangeOrNullObject:function(e){return w("WorksheetFormatChangedEventArgs.getRangeOrNullObject",S,"1.9",O),e.workbook._GetRangeOrNullObjectForEventByReferenceId(o.referenceId)}}},t.Worksheet_FormulaChanged_EventArgsTransform=function(t,n){var o,r=n;return null!=r.formulaDetails&&(o=r.formulaDetails),{type:e.EventType.worksheetFormulaChanged,source:r.source,worksheetId:r.worksheetId,formulaDetails:o}}}(e._CC||(e._CC={})),function(t){function n(e,t,n){return!f("OfficeOnline")&&!u(1.12)||f("OfficeOnline")&&!u(1.11)?(w("WorksheetCollection."+t,S,n,O),P(e,t,0,[],0,0),{handled:!0}):{handled:!1}}t.WorksheetCollection__RegisterActivatedEvent=function(e){return u(1.9)?{handled:!1}:(w("WorksheetCollection._RegisterActivatedEvent",S,"1.7",O),P(e,"_RegisterActivatedEvent",0,[],0,0),{handled:!0})},t.WorksheetCollection__RegisterAddedEvent=function(e){return n(e,"_RegisterAddedEvent","1.7")},t.WorksheetCollection__RegisterColumnSortedEvent=function(e){return n(e,"_RegisterColumnSortedEvent","1.10")},t.WorksheetCollection__RegisterDataChangedEvent=function(e){return n(e,"_RegisterDataChangedEvent","1.9")},t.WorksheetCollection__RegisterDeletedEvent=function(e){return n(e,"_RegisterDeletedEvent","1.7")},t.WorksheetCollection__RegisterRowSortedEvent=function(e){return n(e,"_RegisterRowSortedEvent","1.10")},t.WorksheetCollection__UnregisterAddedEvent=function(e){return n(e,"_UnregisterAddedEvent","1.7")},t.WorksheetCollection__UnregisterColumnSortedEvent=function(e){return n(e,"_UnregisterColumnSortedEvent","1.10")},t.WorksheetCollection__UnregisterDataChangedEvent=function(e){return n(e,"_UnregisterDataChangedEvent","1.9")},t.WorksheetCollection__UnregisterDeletedEvent=function(e){return n(e,"_UnregisterDeletedEvent","1.7")},t.WorksheetCollection__UnregisterRowSortedEvent=function(e){return n(e,"_UnregisterRowSortedEvent","1.10")},t.WorksheetCollection_Changed_EventArgsTransform=function(t,n){var o,r,i,a,s=n;return null==s.valueBefore&&null==s.valueAfter||(o={valueBefore:s.valueBefore,valueAfter:s.valueAfter,valueTypeBefore:s.valueTypeBefore,valueTypeAfter:s.valueTypeAfter,valueAsJsonBefore:s.valueAsJsonBefore,valueAsJsonAfter:s.valueAsJsonAfter}),s.shiftDirection==e.InsertDeleteCellsShiftDirection.shiftCellLeft?r=e.DeleteShiftDirection.left:s.shiftDirection==e.InsertDeleteCellsShiftDirection.shiftCellUp?r=e.DeleteShiftDirection.up:s.shiftDirection==e.InsertDeleteCellsShiftDirection.shiftCellRight?i=e.InsertShiftDirection.right:s.shiftDirection==e.InsertDeleteCellsShiftDirection.shiftCellDown&&(i=e.InsertShiftDirection.down),s.shiftDirection!=e.InsertDeleteCellsShiftDirection.none&&(a={deleteShiftDirection:r,insertShiftDirection:i}),{type:e.EventType.worksheetChanged,changeType:s.changeType,source:s.source,worksheetId:s.worksheetId,address:s.address,getRange:function(e){return w("WorksheetChangedEventArgs.getRange",S,"1.9",O),e.workbook._GetRangeForEventByReferenceId(s.referenceId)},getRangeOrNullObject:function(e){return w("WorksheetChangedEventArgs.getRangeOrNullObject",S,"1.9",O),e.workbook._GetRangeOrNullObjectForEventByReferenceId(s.referenceId)},details:o,triggerSource:s.triggerSource,changeDirectionState:a}},t.WorksheetCollection_FormatChanged_EventArgsTransform=function(t,n){var o=n;return{type:e.EventType.worksheetFormatChanged,source:o.source,worksheetId:o.worksheetId,address:o.address,getRange:function(e){return w("WorksheetFormatChangedEventArgs.getRange",S,"1.9",O),e.workbook._GetRangeForEventByReferenceId(o.referenceId)},getRangeOrNullObject:function(e){return w("WorksheetFormatChangedEventArgs.getRangeOrNullObject",S,"1.9",O),e.workbook._GetRangeOrNullObjectForEventByReferenceId(o.referenceId)}}},t.WorksheetCollection_FormulaChanged_EventArgsTransform=function(t,n){var o,r=n;return null!=r.formulaDetails&&(o=r.formulaDetails),{type:e.EventType.worksheetFormulaChanged,source:r.source,worksheetId:r.worksheetId,formulaDetails:o}}}(e._CC||(e._CC={})),function(e){e.WorksheetProtection_Protect=function(e,t,n){return _({mac:{desiredMajor:16,desiredMinor:7,desiredBuild:17101600},ios:{desiredMajor:2,desiredMinor:7,desiredBuild:1016},general:{desiredMajor:16,desiredMinor:0,desiredBuild:8716}})?(P(e,"Protect",0,[t],0,0),{handled:!0}):{handled:!1}}}(e._CC||(e._CC={}));var k=function(){function t(){}return t.prototype._ensureInteger=function(t,n){"number"==typeof t&&isFinite(t)&&Math.floor(t)===t||OfficeExtension.Utility.throwError(e.ErrorCodes.invalidArgument,t,n)},t.prototype._getAdjacentRange=function(e,t,n,o,r){var i;null==t&&(t=1),this._ensureInteger(t,e);var a=0,s=0;return t>0?i=n.getOffsetRange(o,r):(i=n,a=o,s=r),1===Math.abs(t)?i:i.getBoundingRect(n.getOffsetRange(o*t+a,r*t+s))},t}();e.RangeCustom=k,function(t){t.Range_HandleResult=function(e,t){I(t.isEntireColumn)||(e.m_isEntireColumn=t.isEntireColumn),I(t.isEntireRow)||(e.m_isEntireRow=t.isEntireRow)},t.Range_GetColumnsAfter=function(t,n){return d()?{handled:!1,result:null}:(null==n&&(n=1),t._ensureInteger(n,"RowsAbove"),0===n&&OfficeExtension.Utility.throwError(e.ErrorCodes.invalidArgument,"count","RowsAbove"),{handled:!0,result:t._getAdjacentRange("getColumnsAfter",n,t.getLastColumn(),0,1)})},t.Range_GetColumnsBefore=function(t,n){return d()?{handled:!1,result:null}:(null==n&&(n=1),t._ensureInteger(n,"RowsAbove"),0===n&&OfficeExtension.Utility.throwError(e.ErrorCodes.invalidArgument,"count","RowsAbove"),{handled:!0,result:t._getAdjacentRange("getColumnsBefore",n,t.getColumn(0),0,-1)})},t.Range_GetResizedRange=function(e,t,n){return d()?{handled:!1,result:null}:(e._ensureInteger(t,"getResizedRange"),e._ensureInteger(n,"getResizedRange"),{handled:!0,result:(t>=0&&n>=0?e:e.getCell(0,0)).getBoundingRect(e.getLastCell().getOffsetRange(t,n))})},t.Range_GetRowsAbove=function(t,n){return d()?{handled:!1,result:null}:(null==n&&(n=1),t._ensureInteger(n,"RowsAbove"),0===n&&OfficeExtension.Utility.throwError(e.ErrorCodes.invalidArgument,"count","RowsAbove"),{handled:!0,result:t._getAdjacentRange("getRowsAbove",n,t.getRow(0),-1,0)})},t.Range_GetRowsBelow=function(t,n){return d()?{handled:!1,result:null}:(null==n&&(n=1),t._ensureInteger(n,"RowsAbove"),0===n&&OfficeExtension.Utility.throwError(e.ErrorCodes.invalidArgument,"count","RowsAbove"),{handled:!0,result:this._getAdjacentRange("getRowsBelow",n,t.getLastRow(),1,0)})},t.Range_Formulas_Set=function(e,t){return e.m_formulas=t,c(e,"Formulas",t)?{handled:!0}:{handled:!1}},t.Range_FormulasLocal_Set=function(e,t){return e.m_formulasLocal=t,c(e,"FormulasLocal",t)?{handled:!0}:{handled:!1}},t.Range_FormulasR1C1_Set=function(e,t){return e.m_formulasR1C1=t,c(e,"FormulasR1C1",t)?{handled:!0}:{handled:!1}},t.Range_NumberFormat_Set=function(e,t){return e.m_numberFormat=t,c(e,"NumberFormat",t,D(2,"ExcelApiUndo","1.7"))?{handled:!0}:{handled:!1}},t.Range_Values_Set=function(e,t){return e.m_values=t,c(e,"Values",t,D(2,"ExcelApiUndo","1.7"))?{handled:!0}:{handled:!1}},t.Range_ValuesAsJson_Set=function(e,t){return e.m_valuesAsJson=t,c(e,"ValuesAsJson",t,D(2,"ExcelApiUndo","1.7"))?{handled:!0}:{handled:!1}},t.Range_ValuesAsJsonLocal_Set=function(e,t){return e.m_valuesAsJsonLocal=t,c(e,"ValuesAsJsonLocal",t,D(2,"ExcelApiUndo","1.7"))?{handled:!0}:{handled:!1}}}(e._CC||(e._CC={})),function(t){t.SettingCollection_Add=function(n,o,r){return r=t._replaceDateWithStringDate(r),{handled:!0,result:A(e.Setting,n,"Add",0,[o,r],!1,!0,null,0)}},t.SettingCollection_SettingsChanged_EventArgsTransform=function(e,t){return{settings:e}}}(e._CC||(e._CC={})),function(e){var t="Date(";function n(e){var n=JSON.stringify(e,(function(e,n){return this[e]instanceof Date?t+this[e].getTime()+")":n}));return e=JSON.parse(n)}e._replaceDateWithStringDate=n,e.Setting_HandleResult=function(e,n){I(n.Value)||(n.Value=function(e){var n=JSON.stringify(e);return JSON.parse(n,(function(e,n){var o;return"string"==typeof n&&n&&n.length>6&&n.slice(0,5)===t&&")"===n.slice(-1)&&(o=new Date(parseInt(n.slice(5,-1))))?o:n}))}(n.Value))},e.Setting_Value_Set=function(e,t){if(!T(t)){e.m_value=t;var o=n(t);return R(e,"Value",o,0),{handled:!0}}return{handled:!1}}}(e._CC||(e._CC={}));var N=function(){function e(){}return Object.defineProperty(e.prototype,"_ParentObject",{get:function(){return this.m__ParentObject},set:function(e){this.m__ParentObject=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_eventTargetId",{get:function(){return this._ParentObject?this._ParentObject.id:OfficeExtension.Constants.eventWorkbookId},enumerable:!0,configurable:!0}),e}();e.NamedItemCollectionCustom=N,function(e){e.Binding_DataChanged_EventArgsTransform=function(e,t){return{binding:e}},e.Binding_SelectionChanged_EventArgsTransform=function(e,t){return{binding:e,columnCount:t.columnCount,rowCount:t.rowCount,startColumn:t.startColumn,startRow:t.startRow}}}(e._CC||(e._CC={}));var M=function(){function e(){}return Object.defineProperty(e.prototype,"_ParentObject",{get:function(){return this.m__ParentObject},set:function(e){this.m__ParentObject=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_eventTargetId",{get:function(){return this._ParentObject?this._ParentObject.id:OfficeExtension.Constants.eventWorkbookId},enumerable:!0,configurable:!0}),e}();e.TableCollectionCustom=M,function(t){t.TableCollection_Changed_EventArgsTransform=function(t,n){var o,r=n;return null==r.valueBefore&&null==r.valueAfter||(o={valueBefore:r.valueBefore,valueAfter:r.valueAfter,valueTypeBefore:r.valueTypeBefore,valueTypeAfter:r.valueTypeAfter,valueAsJsonBefore:r.valueAsJsonBefore,valueAsJsonAfter:r.valueAsJsonAfter}),{type:e.EventType.tableChanged,changeType:r.changeType,source:r.source,worksheetId:r.worksheetId,tableId:r.tableId,address:r.address,getRange:function(e){return w("TableChangedEventArgs.getRange",S,"1.8",O),e.workbook._GetRangeForEventByReferenceId(r.referenceId)},getRangeOrNullObject:function(e){return w("TableChangedEventArgs.getRangeOrNullObject",S,"1.8",O),e.workbook._GetRangeOrNullObjectForEventByReferenceId(r.referenceId)},details:o}}}(e._CC||(e._CC={})),function(t){t.Table_HandleIdResult=function(e,t){I(t.Id)||(t.Id=t.Id.toString())},t.Table_HandleResult=function(e,t){I(t.Id)||(t.Id=t.Id.toString())},t.Table_Changed_EventArgsTransform=function(t,n){var o,r=n;return null==r.valueBefore&&null==r.valueAfter||(o={valueBefore:r.valueBefore,valueAfter:r.valueAfter,valueTypeBefore:r.valueTypeBefore,valueTypeAfter:r.valueTypeAfter,valueAsJsonBefore:r.valueAsJsonBefore,valueAsJsonAfter:r.valueAsJsonAfter}),{type:e.EventType.tableChanged,changeType:r.changeType,source:r.source,worksheetId:r.worksheetId,tableId:r.tableId,address:r.address,getRange:function(e){return w("TableChangedEventArgs.getRange",S,"1.8",O),e.workbook._GetRangeForEventByReferenceId(r.referenceId)},getRangeOrNullObject:function(e){return w("TableChangedEventArgs.getRangeOrNullObject",S,"1.8",O),e.workbook._GetRangeOrNullObjectForEventByReferenceId(r.referenceId)},details:o}},t.Table_SelectionChanged_EventArgsTransform=function(t,n){var o=n,r=!o.address||0===o.address.length;return{type:e.EventType.tableSelectionChanged,isInsideTable:!r,worksheetId:o.worksheetId,tableId:t.id,address:o.address}}}(e._CC||(e._CC={}));var H=function(){function e(){}return Object.defineProperty(e.prototype,"_ParentObject",{get:function(){return this.m__ParentObject},set:function(e){this.m__ParentObject=e},enumerable:!0,configurable:!0}),e}();e.ChartCollectionCustom=H,function(t){t.ChartCollection_Add=function(t,n,o,r){if(!(o instanceof e.Range))throw OfficeExtension.Utility.createRuntimeError(OfficeExtension.ResourceStrings.invalidArgument,"sourceData","Charts.Add");return{handled:!1,result:null}}}(e._CC||(e._CC={})),function(t){t.Chart_SetData=function(t,n,o){if(!(n instanceof e.Range))throw OfficeExtension.Utility.createRuntimeError(OfficeExtension.ResourceStrings.invalidArgument,"sourceData","Chart.setData");return{handled:!1}}}(e._CC||(e._CC={}));var U=function(){function e(){}return e.prototype.load=function(e){return F(this,e),this},e}();e.ChartFillCustom=U;var j=function(){function e(){}return Object.defineProperty(e.prototype,"_ParentObject",{get:function(){return this.m__ParentObject},set:function(e){this.m__ParentObject=e},enumerable:!0,configurable:!0}),e}();e.VisualCollectionCustom=j,function(e){e.VisualCollection_AgaveVisualUpdate_EventArgsTransform=function(e,t){var n=t;return{type:n.type,payload:n.payload}}}(e._CC||(e._CC={})),function(t){t.Visual_ChangeNotification_EventArgsTransform=function(t,n){var o=n;return{targetId:o.targetId,changeType:o.changeType,payload:o.payload,type:e.EventType.visualChange}}}(e._CC||(e._CC={}));var L=function(){function e(){}return Object.defineProperty(e.prototype,"_ParentObject",{get:function(){return this.m__ParentObject},set:function(e){this.m__ParentObject=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_eventTargetId",{get:function(){return this._ParentObject?this._ParentObject.id:OfficeExtension.Constants.eventWorkbookId},enumerable:!0,configurable:!0}),e}();e.PivotTableCollectionCustom=L,function(t){t.PivotLayout_GetColumnLabelRange=function(t){return OfficeExtension.Utility.isSetSupported("Pivot","1.5")?{handled:!1,result:void 0}:{handled:!0,result:A(e.Range,t,"GetColumnLabelRange",0,[],!1,!1,null,0)}},t.PivotLayout_GetDataBodyRange=function(t){return OfficeExtension.Utility.isSetSupported("Pivot","1.5")?{handled:!1,result:void 0}:{handled:!0,result:A(e.Range,t,"GetDataBodyRange",0,[],!1,!1,null,0)}},t.PivotLayout_GetDataHierarchy=function(t,n){return OfficeExtension.Utility.isSetSupported("Pivot","1.5")?{handled:!1,result:void 0}:(w("PivotLayout.getDataHierarchy",S,"1.9",O),{handled:!0,result:A(e.DataPivotHierarchy,t,"GetDataHierarchy",0,[n],!1,!1,null,0)})},t.PivotLayout_GetFilterAxisRange=function(t){return OfficeExtension.Utility.isSetSupported("Pivot","1.5")?{handled:!1,result:void 0}:{handled:!0,result:A(e.Range,t,"GetFilterAxisRange",0,[],!1,!1,null,0)}},t.PivotLayout_GetRange=function(t){return OfficeExtension.Utility.isSetSupported("Pivot","1.5")?{handled:!1,result:void 0}:{handled:!0,result:A(e.Range,t,"GetRange",0,[],!1,!1,null,0)}},t.PivotLayout_GetRowLabelRange=function(t){return OfficeExtension.Utility.isSetSupported("Pivot","1.5")?{handled:!1,result:void 0}:{handled:!0,result:A(e.Range,t,"GetRowLabelRange",0,[],!1,!1,null,0)}}}(e._CC||(e._CC={})),function(e){e.PivotField_SortByLabels=function(e,t){return"string"==typeof t&&(t="ascending"===t.toLowerCase()),P(e,"SortByLabels",0,[t],D(2,"ExcelApiUndo","1.1"),0),{handled:!0}}}(e._CC||(e._CC={})),function(t){t.NumberFormattingService_GetFormatter=function(t,n){return OfficeExtension.Utility.isSetSupported("NumberFormatting","1.2")?{handled:!1,result:void 0}:(w("NumberFormatting.GetFormatter","NumberFormatting","1.1",O),{handled:!0,result:A(e.NumberFormatter,t,"GetFormatter",0,[n],!1,!1,null,0)})}}(e._CC||(e._CC={})),function(e){e.NumberFormatter_Format=function(e,t){return OfficeExtension.Utility.isSetSupported("NumberFormatting","1.2")?{handled:!1,result:void 0}:(w("NumberFormatter.Format","NumberFormatting","1.1",O),{handled:!0,result:P(e,"Format",0,[t],0,0)})}}(e._CC||(e._CC={}));var B=function(){function n(){}return n.register=function(n,o){return w("CustomFunctionManager.register","CustomFunctions","1.3",O),t({delayForCellEdit:!0},(function(t){return e.CustomFunctionManager.newObject(t).register(n,o)}))},n.getStatus=function(){return w("CustomFunctionManager.register","CustomFunctions","1.3",O),t({delayForCellEdit:!0},(function(t){var n=e.CustomFunctionManager.newObject(t).load("status");return t.sync().then((function(){return n.status}))}))},n.setVisibilityInternal=function(n){return t({delayForCellEdit:!0},(function(t){return e.CustomFunctionManager.newObject(t).setVisibilityInternal(n)}))},n.getAllVisibleFunctionList=function(){return t({delayForCellEdit:!0},(function(t){var n=e.CustomFunctionManager.newObject(t).getAllVisibleFunctionList();return t.sync().then((function(){return n.value}))}))},n}();e.CustomFunctionManagerCustom=B,function(e){e.CustomFunctionManager_StaticCustomize=function(e){e.register=B.register,e.getStatus=B.getStatus,e.setVisibility=B.setVisibilityInternal,e.setVisibilityInternal=B.setVisibilityInternal,e.getAllVisibleFunctionList=B.getAllVisibleFunctionList}}(e._CC||(e._CC={})),function(e){e.Style_TextOrientation_Set=function(e,t){return e.m_textOrientation=t,R(e,"Orientation",t,D(2,"ExcelApiUndoDesktopOnly","1.2")),{handled:!0}}}(e._CC||(e._CC={})),function(e){e.InternalTest_Test1Event_EventArgsTransform=function(e,t){var n=t;return{prop1:n.prop1,worksheet:e.context.workbook.worksheets.getItem(n.worksheetId)}},e.InternalTest_TestEvent_EventArgsTransform=function(e,t){var n=t;return{prop1:n.prop1,worksheet:e.context.workbook.worksheets.getItem(n.worksheetId)}}}(e._CC||(e._CC={}));var W=function(){function e(){}return Object.defineProperty(e.prototype,"_ParentObject",{get:function(){return this.m__ParentObject},set:function(e){this.m__ParentObject=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_eventTargetId",{get:function(){return this._ParentObject?this._ParentObject.id:OfficeExtension.Constants.eventWorkbookId},enumerable:!0,configurable:!0}),e}();e.CommentCollectionCustom=W;var V,q=function(){function e(){}return Object.defineProperty(e.prototype,"_ParentObject",{get:function(){return this.m__ParentObject},set:function(e){this.m__ParentObject=e},enumerable:!0,configurable:!0}),e}();e.ShapeCollectionCustom=q,function(e){e.accessDenied="AccessDenied",e.apiNotFound="ApiNotFound",e.conflict="Conflict",e.emptyChartSeries="EmptyChartSeries",e.filteredRangeConflict="FilteredRangeConflict",e.formulaLengthExceedsLimit="FormulaLengthExceedsLimit",e.generalException="GeneralException",e.inactiveWorkbook="InactiveWorkbook",e.insertDeleteConflict="InsertDeleteConflict",e.invalidArgument="InvalidArgument",e.invalidBinding="InvalidBinding",e.invalidOperation="InvalidOperation",e.invalidReference="InvalidReference",e.invalidSelection="InvalidSelection",e.itemAlreadyExists="ItemAlreadyExists",e.itemNotFound="ItemNotFound",e.mergedRangeConflict="MergedRangeConflict",e.nonBlankCellOffSheet="NonBlankCellOffSheet",e.notImplemented="NotImplemented",e.openWorkbookLinksBlocked="OpenWorkbookLinksBlocked",e.operationCellsExceedLimit="OperationCellsExceedLimit",e.pivotTableRangeConflict="PivotTableRangeConflict",e.powerQueryRefreshResourceChallenge="PowerQueryRefreshResourceChallenge",e.rangeExceedsLimit="RangeExceedsLimit",e.rangeImageExceedsLimit="RangeImageExceedsLimit",e.refreshWorkbookLinksBlocked="RefreshWorkbookLinksBlocked",e.requestAborted="RequestAborted",e.responsePayloadSizeLimitExceeded="ResponsePayloadSizeLimitExceeded",e.unsupportedFeature="UnsupportedFeature",e.unsupportedFillType="UnsupportedFillType",e.unsupportedOperation="UnsupportedOperation",e.unsupportedSheet="UnsupportedSheet",e.invalidOperationInCellEditMode="InvalidOperationInCellEditMode"}(V=e.ErrorCodes||(e.ErrorCodes={})),e.Interfaces||(e.Interfaces={});new OfficeExtension.LibraryBuilder({metadata:{version:"1.0.0",name:"Excel",defaultApiSetName:"ExcelApi",hostName:"Excel",apiSets:[["1.40","ExcelApiUndo"],["1.19","ExcelApiUndo"],["1.38","ExcelApiUndo"],["1.1","Recorder"],["1.23","ExcelApiUndo"],["1.20"],["1.1","ExcelQueryApiUndoDesktopOnly"],["1.41","ExcelApiUndo"],["99.9"],["1.20","ExcelApiUndo"],["1.30","ExcelApiUndo"],["1.44","ExcelApiUndo"],["1.32","ExcelApiUndo"],["1.4","ExcelApiUndo"],["1.45","ExcelApiUndo"],["1.8"],["1.36","ExcelApiUndo"],["1.9"],["1.11"],["1.1","ExcelApiUndoPreserveUndoStack"],["99.9","ExcelApiDesktop"],["1.6"],["1.6","ExcelApiUndo"],["1.7"],["1.1","ExcelApiUndo"],["1.2"],["1.3"],["1.4"],["1.5"],["1.10"],["1.14"],["1.1","ExcelApiOnline"],["1.19"],["1.18"],["1.1","CustomFunctions"],["1.1","WACOperationEvents"],["1.3","ExcelApiUndo"],["1.13"],["1.16"],["1.1","ExcelApiUndoOnlineOnly"],["1.8","ExcelApiUndo"],["1.1","ExcelApiUndoDesktopOnly"],["1.16","ExcelApiUndo"],["1.12"],["1.2","ExcelApiOnline"],["1.26","ExcelApiUndo"],["1.2","ExcelApiUndo"],["1.17"],["1.43","ExcelApiUndo"],["1.34","ExcelApiUndo"],["1.7","ExcelApiUndo"],["1.10","ExcelApiUndo"],["1.14","ExcelApiUndo"],["1.31","ExcelApiUndo"],["1.3","ExcelApiUndoDesktopOnly"],["1.15","ExcelApiUndo"],["1.22","ExcelApiUndo"],["1.15"],["1.37","ExcelApiUndo"],["1.49","ExcelApiUndo"],["1.24","ExcelApiUndo"],["1.17","ExcelApiUndo"],["99.99","ExcelApiUndo"],["1.25","ExcelApiUndo"],["1.47","ExcelApiUndo"],["1.9","ExcelApiUndo"],["1.2","ExcelApiUndoPreserveUndoStack"],["1.11","ExcelApiUndo"],["1.35","ExcelApiUndo"],["1.21","ExcelApiUndo"],["1.12","ExcelApiUndo"],["1.13","ExcelApiUndo"],["1.27","ExcelApiUndo"],["1.18","ExcelApiUndo"],["1.42","ExcelApiUndo"],["1.2","ExcelApiUndoDesktopOnly"],["1.28","ExcelApiUndo"],["1.29","ExcelApiUndo"],["1.48","ExcelApiUndo"],["1.46","ExcelApiUndo"],["1.33","ExcelApiUndo"],["1.39","ExcelApiUndo"],["1.3","ExcelApiUndoPreserveUndoStack"]],strings:[],enumTypes:[["PowerQueryObjectType",["connectionOnly","table"]],["CurrencyNegative",["parenthesis","lead","internal","trail"]],["DateOrder",["monthDayYear","dayMonthYear","yearMonthDay","monthYearDay","dayYearMonth","yearDayMonth"]],["ExternalCodeServiceEnvironmentDefinitionUpdateReason",["userCommit","coAuth","automation","resetToDefault","initialChange"]],["ExternalCodeServiceInitializationResponseStatus",["success","failedWithLocalSave","fail"]],["ExternalCodeServiceAutoShowDiagnostics",["enabled","disabled"]],["UndoChangeType",["undoAction","redoAction","undoOrRedoCleared","undoGroupAdded"]],["SDX",["guidedReapply"]],["BusinessBarEntryType",[],{officeScriptsRunningStatus:0}],["FormulaReferenceStyle",["a1","r1C1"]],["NavigationObjectType",["table","pivotTable","chart","shape","namedRange"]],["UserActivityType",["none","insertSheet","deleteSheet","renameSheet","changeCell","insertRow","insertColumn","deleteRow","deleteColumn","insertPartialRow","insertPartialColumn","insertPartialColumnRightToLeft","deletePartialRow","deletePartialColumn","deletePartialColumnRightToLeft","move","sort","mergeCells","unmergeCells","unknownOperation","genericEdit"]],["LineageEndOfLogStatus",["loadInProgress","success","endOfLog","purged","trimmed","unsupported","cleared","error"]],["LineageLoadType",["new","next","previous","latest"]],["LoadToType",["connectionOnly","table","pivotTable","pivotChart"]],["QueryError",["unknown","none","failedLoadToWorksheet","failedLoadToDataModel","failedDownload","failedToCompleteDownload"]],["RangeOptimizationType",["other","numberFormat","textAlignment","textProperties","cellBorder","fillColor","sheetProtection","rowHeight","rowVisibility"]],["WorkbookLinksHardToFindMessages",["none","containsDefinedNames","hiddenOrVeryHiddenSheet","hiddenFloatingObjects","lockedFloatingObjectsThroughVba","protectedSheet","containsConditionalFormatting","containsDataValidation","hiddenRowsAndColumns"]],["WorkbookLinksIconState",["ok","moreInfo","warning"]],["WorkbookLinksRefreshSettings",["ask","always","never"]],["WorkbookConditionalFormattingRulesManagerScope",["defaultScope","selectedRange","activatedWorksheet","activatedTable","activatedPivotTable"]],["WorkbookLinksRefreshMode",["manual","automatic"]],["HelpTopic",["showChanges","guidedReapply","externalCodeServiceDiagnostics","pythonInExcelHelp","pythonInitializationHelp","pythonSupportedLibraries","guidedReapplyV2","pythonEditorHelp"]],["DocumentTaskChangeAction",[],{unknown:"unknown",create:"create",assign:"assign",unassign:"unassign",unassignAll:"unassignAll",setSchedule:"setSchedule",setPercentComplete:"setPercentComplete",setPriority:"setPriority",remove:"remove",restore:"restore",setTitle:"setTitle",undo:"undo"}],["DataSourceType",["unknown","cube","localRange","localTable","oledbDefault"]],["DateFilterCondition",["unknown","equals","before","beforeOrEqualTo","after","afterOrEqualTo","between","tomorrow","today","yesterday","nextWeek","thisWeek","lastWeek","nextMonth","thisMonth","lastMonth","nextQuarter","thisQuarter","lastQuarter","nextYear","thisYear","lastYear","yearToDate","allDatesInPeriodQuarter1","allDatesInPeriodQuarter2","allDatesInPeriodQuarter3","allDatesInPeriodQuarter4","allDatesInPeriodJanuary","allDatesInPeriodFebruary","allDatesInPeriodMarch","allDatesInPeriodApril","allDatesInPeriodMay","allDatesInPeriodJune","allDatesInPeriodJuly","allDatesInPeriodAugust","allDatesInPeriodSeptember","allDatesInPeriodOctober","allDatesInPeriodNovember","allDatesInPeriodDecember"]],["LabelFilterCondition",["unknown","equals","beginsWith","endsWith","contains","greaterThan","greaterThanOrEqualTo","lessThan","lessThanOrEqualTo","between"]],["PivotFilterType",["unknown","value","manual","label","date"]],["TopBottomSelectionType",["items","percent","sum"]],["ValueFilterCondition",["unknown","equals","greaterThan","greaterThanOrEqualTo","lessThan","lessThanOrEqualTo","between","topN","bottomN"]],["BuiltInPivotTableStyle",["none","light1","light2","light3","light4","light5","light6","light7","light8","light9","light10","light11","light12","light13","light14","light15","light16","light17","light18","light19","light20","light21","light22","light23","light24","light25","light26","light27","light28","medium1","medium2","medium3","medium4","medium5","medium6","medium7","medium8","medium9","medium10","medium11","medium12","medium13","medium14","medium15","medium16","medium17","medium18","medium19","medium20","medium21","medium22","medium23","medium24","medium25","medium26","medium27","medium28","dark1","dark2","dark3","dark4","dark5","dark6","dark7","dark8","dark9","dark10","dark11","dark12","dark13","dark14","dark15","dark16","dark17","dark18","dark19","dark20","dark21","dark22","dark23","dark24","dark25","dark26","dark27","dark28"]],["BuiltInSlicerStyle",["light1","light2","light3","light4","light5","light6","other1","other2","dark1","dark2","dark3","dark4","dark5","dark6"]],["BuiltInTableStyle",["light1","light2","light3","light4","light5","light6","light7","light8","light9","light10","light11","light12","light13","light14","light15","light16","light17","light18","light19","light20","light21","medium1","medium2","medium3","medium4","medium5","medium6","medium7","medium8","medium9","medium10","medium11","medium12","medium13","medium14","medium15","medium16","medium17","medium18","medium19","medium20","medium21","medium22","medium23","medium24","medium25","medium26","medium27","medium28","dark1","dark2","dark3","dark4","dark5","dark6","dark7","dark8","dark9","dark10","dark11"]],["ChartSeriesDimension",["categories","values","bubbleSizes"],{xvalues:"XValues",yvalues:"YValues"}],["CellControlType",["unknown","empty","mixed","checkbox","dropdown"]],["PivotTableDateGroupBy",["invalid","bySeconds","byMinutes","byHours","byDays","byMonths","byQuarters","byYears"]],["PivotFilterTopBottomCriterion",["invalid","topItems","topPercent","topSum","bottomItems","bottomPercent","bottomSum"]],["SortBy",["ascending","descending"]],["AggregationFunction",["unknown","automatic","sum","count","average","max","min","product","countNumbers","standardDeviation","standardDeviationP","variance","varianceP","distinctCount","median"]],["ShowAsCalculation",["unknown","none","percentOfGrandTotal","percentOfRowTotal","percentOfColumnTotal","percentOfParentRowTotal","percentOfParentColumnTotal","percentOfParentTotal","percentOf","runningTotal","percentRunningTotal","differenceFrom","percentDifferenceFrom","rankAscending","rankDecending","index"]],["PivotAxis",["unknown","row","column","data","filter"]],["PictureColorType",["mixed","automatic","grayScale","blackAndWhite","watermark"]],["LinkedDataTypeRefreshMode",["unknown","manual","onLoad","periodic"]],["LinkedEntityDataDomainRefreshMode",["unknown","manual","onLoad","periodic"]],["AxisType",["invalid","category","value","series"]],["AxisGroup",["primary","secondary"]],["AxisScaleType",["linear","logarithmic"]],["AxisCrosses",["automatic","maximum","minimum","custom"]],["AxisTickMark",["none","cross","inside","outside"]],["AxisTickLabelPosition",["nextToAxis","high","low","none"]],["TrendlineType",["linear","exponential","logarithmic","movingAverage","polynomial","power"]],["ChartAxisType",["invalid","category","value","series"]],["ChartAxisGroup",["primary","secondary"]],["ChartAxisScaleType",["linear","logarithmic"]],["ChartAxisPosition",["automatic","maximum","minimum","custom"]],["ChartAxisTickMark",["none","cross","inside","outside"]],["CalculationState",["done","calculating","pending"]],["ChartAxisTickLabelPosition",["nextToAxis","high","low","none"]],["ChartAxisDisplayUnit",["none","hundreds","thousands","tenThousands","hundredThousands","millions","tenMillions","hundredMillions","billions","trillions","custom"]],["ChartAxisTimeUnit",["days","months","years"]],["ChartBoxQuartileCalculation",["inclusive","exclusive"]],["ChartAxisCategoryType",["automatic","textAxis","dateAxis"]],["ChartBinType",["category","auto","binWidth","binCount"]],["ChartLineStyle",["none","continuous","dash","dashDot","dashDotDot","dot","grey25","grey50","grey75","automatic","roundDot"]],["ChartDataLabelPosition",["invalid","none","center","insideEnd","insideBase","outsideEnd","left","right","top","bottom","bestFit","callout"]],["ChartErrorBarsInclude",["both","minusValues","plusValues"]],["ChartErrorBarsType",["fixedValue","percent","stDev","stError","custom"]],["ChartMapAreaLevel",["automatic","dataOnly","city","county","state","country","continent","world"]],["ChartGradientStyle",["twoPhaseColor","threePhaseColor"]],["ChartGradientStyleType",["extremeValue","number","percent"]],["ChartTitlePosition",["automatic","top","bottom","left","right"]],["ChartLegendPosition",["invalid","top","bottom","left","right","corner","custom"]],["ChartMarkerStyle",["invalid","automatic","none","square","diamond","triangle","star","dot","dash","circle","plus","picture"],{x:"X"}],["ChartPlotAreaPosition",["automatic","custom"]],["ChartMapLabelStrategy",["none","bestFit","showAll"]],["ChartMapProjectionType",["automatic","mercator","miller","robinson","albers"]],["ChartParentLabelStrategy",["none","banner","overlapping"]],["ChartSeriesBy",["auto","columns","rows"]],["ChartDataSourceType",["localRange","externalRange","list","unknown"]],["ChartTextHorizontalAlignment",["center","left","right","justify","distributed"]],["ChartTextVerticalAlignment",["center","bottom","top","justify","distributed"]],["ChartTickLabelAlignment",["center","left","right"]],["ChartType",["invalid","columnClustered","columnStacked","columnStacked100","barClustered","barStacked","barStacked100","lineStacked","lineStacked100","lineMarkers","lineMarkersStacked","lineMarkersStacked100","pieOfPie","pieExploded","barOfPie","areaStacked","areaStacked100","doughnutExploded","radarMarkers","radarFilled","surface","surfaceWireframe","surfaceTopView","surfaceTopViewWireframe","bubble","bubble3DEffect","stockHLC","stockOHLC","stockVHLC","stockVOHLC","cylinderColClustered","cylinderColStacked","cylinderColStacked100","cylinderBarClustered","cylinderBarStacked","cylinderBarStacked100","cylinderCol","coneColClustered","coneColStacked","coneColStacked100","coneBarClustered","coneBarStacked","coneBarStacked100","coneCol","pyramidColClustered","pyramidColStacked","pyramidColStacked100","pyramidBarClustered","pyramidBarStacked","pyramidBarStacked100","pyramidCol","line","pie","area","doughnut","radar","histogram","boxwhisker","pareto","regionMap","treemap","waterfall","sunburst","funnel"],{_3DColumnClustered:"3DColumnClustered",_3DColumnStacked:"3DColumnStacked",_3DColumnStacked100:"3DColumnStacked100",_3DBarClustered:"3DBarClustered",_3DBarStacked:"3DBarStacked",_3DBarStacked100:"3DBarStacked100",_3DPieExploded:"3DPieExploded",xyscatterSmooth:"XYScatterSmooth",xyscatterSmoothNoMarkers:"XYScatterSmoothNoMarkers",xyscatterLines:"XYScatterLines",xyscatterLinesNoMarkers:"XYScatterLinesNoMarkers",_3DAreaStacked:"3DAreaStacked",_3DAreaStacked100:"3DAreaStacked100",_3DColumn:"3DColumn",_3DLine:"3DLine",_3DPie:"3DPie",xyscatter:"XYScatter",_3DArea:"3DArea"}],["ChartUnderlineStyle",["none","single"]],["ChartDisplayBlanksAs",["notPlotted","zero","interplotted"]],["ChartPlotBy",["rows","columns"]],["ChartSplitType",["splitByPosition","splitByValue","splitByPercentValue","splitByCustomSplit"]],["ChartColorScheme",["colorfulPalette1","colorfulPalette2","colorfulPalette3","colorfulPalette4","monochromaticPalette1","monochromaticPalette2","monochromaticPalette3","monochromaticPalette4","monochromaticPalette5","monochromaticPalette6","monochromaticPalette7","monochromaticPalette8","monochromaticPalette9","monochromaticPalette10","monochromaticPalette11","monochromaticPalette12","monochromaticPalette13"]],["ChartTrendlineType",["linear","exponential","logarithmic","movingAverage","polynomial","power"]],["PythonMarshalMode",["pythonObject","excelValue"]],["ShapeZOrder",["bringToFront","bringForward","sendToBack","sendBackward"]],["ShapeType",["unsupported","image","geometricShape","group","line"]],["ShapeScaleType",["currentSize","originalSize"]],["ShapeScaleFrom",["scaleFromTopLeft","scaleFromMiddle","scaleFromBottomRight"]],["ShapeFillType",["noFill","solid","gradient","pattern","pictureAndTexture","mixed"]],["ShapeFontUnderlineStyle",["none","single","double","heavy","dotted","dottedHeavy","dash","dashHeavy","dashLong","dashLongHeavy","dotDash","dotDashHeavy","dotDotDash","dotDotDashHeavy","wavy","wavyHeavy","wavyDouble"]],["PictureFormat",[],{unknown:"UNKNOWN",bmp:"BMP",jpeg:"JPEG",gif:"GIF",png:"PNG",svg:"SVG"}],["ShapeLineStyle",["single","thickBetweenThin","thickThin","thinThick","thinThin"]],["ShapeLineDashStyle",["dash","dashDot","dashDotDot","longDash","longDashDot","roundDot","solid","squareDot","longDashDotDot","systemDash","systemDot","systemDashDot"]],["ArrowheadLength",["short","medium","long"]],["ArrowheadStyle",["none","triangle","stealth","diamond","oval","open"]],["ArrowheadWidth",["narrow","medium","wide"]],["PremiumLicenseName",["python"]],["BindingType",["range","table","text"]],["BorderIndex",["edgeTop","edgeBottom","edgeLeft","edgeRight","insideVertical","insideHorizontal","diagonalDown","diagonalUp"]],["BorderLineStyle",["none","continuous","dash","dashDot","dashDotDot","dot","double","slantDashDot"]],["BorderWeight",["hairline","thin","medium","thick"]],["CalculationMode",["automatic","automaticExceptTables","manual"]],["RuntimeCalculationMode",[],{undefined:0,automatic:1,automaticExceptTables:2,manual:3}],["CalculationType",["recalculate","full","fullRebuild"]],["ClearApplyTo",["all","formats","contents","hyperlinks","removeHyperlinks","resetContents"]],["VisualCategory",["column","bar","line","area","pie","donut","scatter","bubble","statistical","stock","combo","hierarchy","surface","map","funnel","radar","waterfall","threeD","other"]],["VisualPropertyType",["object","collection","string","double","int","bool","enum","color"]],["VisualChangeType",["dataChange","propertyChange","genericChange","selectionChange"]],["BoolMetaPropertyType",["writeOnly","readOnly","hideEntireSubtreeUI","hideMeButShowChildrenUI","expandableUI","nextPropOnSameLine","hideLabel","showResetUI","hasOwnExpandableSection","nextPropOnSameLineFOTP","showResetUIFOTP","untransferable","ignoreDuringChangeChartType","notTriviallyUndoable","volatileEnum","exceptionCollection","metaOnly","showHideCollection","errorMessage","infoMessage"]],["ConditionalDataBarAxisFormat",["automatic","none","cellMidPoint"]],["ConditionalDataBarDirection",["context","leftToRight","rightToLeft"]],["ConditionalFormatDirection",["top","bottom"]],["ConditionalFormatType",["custom","dataBar","colorScale","iconSet","topBottom","presetCriteria","containsText","cellValue"]],["ConditionalFormatRuleType",["invalid","automatic","lowestValue","highestValue","number","percent","formula","percentile"]],["ConditionalFormatIconRuleType",["invalid","number","percent","formula","percentile"]],["ConditionalFormatColorCriterionType",["invalid","lowestValue","highestValue","number","percent","formula","percentile"]],["ConditionalTopBottomCriterionType",["invalid","topItems","topPercent","bottomItems","bottomPercent"]],["ConditionalFormatPresetCriterion",["invalid","blanks","nonBlanks","errors","nonErrors","yesterday","today","tomorrow","lastSevenDays","lastWeek","thisWeek","nextWeek","lastMonth","thisMonth","nextMonth","aboveAverage","belowAverage","equalOrAboveAverage","equalOrBelowAverage","oneStdDevAboveAverage","oneStdDevBelowAverage","twoStdDevAboveAverage","twoStdDevBelowAverage","threeStdDevAboveAverage","threeStdDevBelowAverage","uniqueValues","duplicateValues"]],["ConditionalTextOperator",["invalid","contains","notContains","beginsWith","endsWith"]],["ConditionalCellValueOperator",["invalid","between","notBetween","equalTo","notEqualTo","greaterThan","lessThan","greaterThanOrEqual","lessThanOrEqual"]],["ConditionalIconCriterionOperator",["invalid","greaterThan","greaterThanOrEqual"]],["ConditionalRangeBorderIndex",["edgeTop","edgeBottom","edgeLeft","edgeRight"]],["ConditionalRangeBorderLineStyle",["none","continuous","dash","dashDot","dashDotDot","dot"]],["ConditionalRangeFontUnderlineStyle",["none","single","double"]],["CustomFunctionType",["invalid","script","webService"]],["CustomFunctionMetadataFormat",["invalid","openApi"]],["DataValidationType",["none","wholeNumber","decimal","list","date","time","textLength","custom","inconsistent","mixedCriteria"]],["DataValidationOperator",["between","notBetween","equalTo","notEqualTo","greaterThan","lessThan","greaterThanOrEqualTo","lessThanOrEqualTo"]],["DataValidationAlertStyle",["stop","warning","information"]],["DeleteShiftDirection",["up","left"]],["DynamicFilterCriteria",["unknown","aboveAverage","allDatesInPeriodApril","allDatesInPeriodAugust","allDatesInPeriodDecember","allDatesInPeriodFebruray","allDatesInPeriodJanuary","allDatesInPeriodJuly","allDatesInPeriodJune","allDatesInPeriodMarch","allDatesInPeriodMay","allDatesInPeriodNovember","allDatesInPeriodOctober","allDatesInPeriodQuarter1","allDatesInPeriodQuarter2","allDatesInPeriodQuarter3","allDatesInPeriodQuarter4","allDatesInPeriodSeptember","belowAverage","lastMonth","lastQuarter","lastWeek","lastYear","nextMonth","nextQuarter","nextWeek","nextYear","thisMonth","thisQuarter","thisWeek","thisYear","today","tomorrow","yearToDate","yesterday"]],["FilterDatetimeSpecificity",["year","month","day","hour","minute","second"]],["FilterOn",["bottomItems","bottomPercent","cellColor","dynamic","fontColor","values","topItems","topPercent","icon","custom"]],["FilterOperator",["and","or"]],["HorizontalAlignment",["general","left","center","right","fill","justify","centerAcrossSelection","distributed"]],["IconSet",["invalid","threeArrows","threeArrowsGray","threeFlags","threeTrafficLights1","threeTrafficLights2","threeSigns","threeSymbols","threeSymbols2","fourArrows","fourArrowsGray","fourRedToBlack","fourRating","fourTrafficLights","fiveArrows","fiveArrowsGray","fiveRating","fiveQuarters","threeStars","threeTriangles","fiveBoxes"]],["ImageFittingMode",["fit","fitAndCenter","fill"]],["InsertShiftDirection",["down","right"]],["NamedItemScope",["worksheet","workbook"]],["NamedItemType",["string","integer","double","boolean","range","error","array"]],["RangeUnderlineStyle",["none","single","double","singleAccountant","doubleAccountant"]],["SheetVisibility",["visible","hidden","veryHidden"]],["EventTriggerSource",["unknown","thisLocalAddin"]],["RangeValueType",["unknown","empty","string","integer","double","boolean","error","richValue"]],["KeyboardDirection",["left","right","up","down"]],["SearchDirection",["forward","backwards"]],["SortOrientation",["rows","columns"]],["SortOn",["value","cellColor","fontColor","icon"]],["SortDataOption",["normal","textAsNumber"]],["SortMethod",["pinYin","strokeCount"]],["VerticalAlignment",["top","center","bottom","justify","distributed"]],["MessageCategory",[],{none:0,customFunction:1,action:2,event:65536}],["MessageType",[],{none:0,testEvent:1,test1Event:2,worksheetDataChangedEvent:10,worksheetActivatedEvent:11,worksheetDeactivatedEvent:12,worksheetAddedEvent:13,worksheetSelectionChangedEvent:14,worksheetDeletedEvent:15,worksheetCalculatedEvent:16,worksheetFilteredEvent:17,worksheetFormatChangedEvent:18,worksheetRowSortedEvent:19,worksheetColumnSortedEvent:20,worksheetSingleClickedEvent:21,worksheetRowHiddenChangedEvent:22,worksheetFormulaChangedEvent:23,worksheetProtectionChangedEvent:24,worksheetNameChangedEvent:25,worksheetVisibilityChangedEvent:26,worksheetMovedEvent:27,worksheetNavigationObjectChangedEvent:28,worksheetRowHeightChangedEvent:29,workbookFormulaReferenceStyleChangedEvent:30,chartAddedEvent:50,chartActivatedEvent:51,chartDeactivatedEvent:52,chartDeletedEvent:53,tableSelectionChangedEvent:100,tableDataChangedEvent:101,tableAddedEvent:102,tableDeletedEvent:103,tableFilteredEvent:104,agaveVisualUpdateEvent:150,customFunctionExecutionBeginEvent:200,customFunctionExecutionEndEvent:201,commentAddedEvent:250,commentDeletedEvent:251,commentChangedEvent:252,invocationMessage:1e3,cancellationMessage:1001,metadataMessage:1002,visualSelectionChangedEvent:2e3,visualChangeEvent:2001,visualTrackerModelChangedEvent:2002,shapeSelectionChangedEvent:2100,shapeActivatedEvent:2101,shapeDeactivatedEvent:2102,shapeAddedEvent:2103,shapeDeletedEvent:2104,workbookAutoSaveSettingChangedEvent:2200,wacoperationEvent:2201,recordingStateChangedEvent:2202,workbookActivatedEvent:2203,workbookNavigationObjectChangedEvent:2204,ribbonCommandExecutedEvent:2300,linkedDataTypeRefreshRequestCompletedEvent:2500,linkedDataTypeRefreshModeChangedEvent:2501,linkedDataTypeLinkedDataTypeAddedEvent:2502,linkedWorkbookWorkbookLinksChangedEvent:2600,linkedWorkbookRefreshCompletedEvent:2601,rangePickerSelectionChangedEvent:2700,rangePickerDeactivatedEvent:2701,lineageActivityUpdateAvailableEvent:2800,lineageActivityFilterUpdatedEvent:2801,lineageActivityLoadCompletedEvent:2802,pivotTableAddedEvent:2900,pivotTableDeletedEvent:2901,namedItemAddedEvent:3e3,namedItemDeletedEvent:3001,guidedReapplyManagerUpdateAvailableEvent:3100,vbaRecorderRecordingChangedEvent:3200,vbaRecorderRecordingChanged2Event:3202,workbookActionRecordedEvent:3201,externalCodeServiceDiagnosticsNewEntryEvent:3300,externalCodeServiceDiagnosticsFilterUpdatedEvent:3301,rangeValuesPreviewDismissedEvent:3400,applicationUndoChangedEvent:3500,linkedEntityDataDomainLinkedEntityDataDomainAddedEvent:3600,linkedEntityDataDomainRefreshCompletedEvent:3601,linkedEntityDataDomainRefreshModeChangedEvent:3602,externalCodeServiceInitializationSettingsEnvironmentDefinitionInitializationResponseReceivedEvent:3603,tableApplyPowerQueryTableUpdatePlanCompletedEvent:3604,externalCodeServiceInitializationSettingsEnvironmentDefinitionResponseReceivedEvent:3605,queryQueryRefreshCompletedEvent:3606,appRuntimeVisibilityChangedEvent:65539,beforeCloseNotifiactionCancelledEvent:65540,augmentationLoopAnnotationAddedEvent:65541,premiumLicenseChangedEvent:65542,externalCodeServiceResultEvent:65554,externalCodeServiceDiffResultReceivedEvent:65555}],["InsertDeleteCellsShiftDirection",["none","shiftCellLeft","shiftCellUp","shiftCellRight","shiftCellDown"]],["DocumentPropertyType",["number","boolean","date","string","float"]],["EventSource",["local","remote"]],["DataChangeType",["unknown","rangeEdited","rowInserted","rowDeleted","columnInserted","columnDeleted","cellInserted","cellDeleted"]],["RowHiddenChangeType",["unhidden","hidden"]],["CommentChangeType",["commentEdited","commentResolved","commentReopened","replyAdded","replyDeleted","replyEdited"]],["EventType",["worksheetChanged","worksheetSelectionChanged","worksheetAdded","worksheetActivated","worksheetDeactivated","tableChanged","tableSelectionChanged","worksheetDeleted","chartAdded","chartActivated","chartDeactivated","chartDeleted","worksheetCalculated","visualSelectionChanged","agaveVisualUpdate","tableAdded","tableDeleted","tableFiltered","worksheetFiltered","shapeActivated","shapeDeactivated","visualChange","workbookAutoSaveSettingChanged","worksheetFormatChanged","ribbonCommandExecuted","worksheetRowSorted","worksheetColumnSorted","worksheetSingleClicked","worksheetRowHiddenChanged","recordingStateChangedEvent","commentAdded","commentDeleted","commentChanged","linkedDataTypeRefreshRequestCompleted","linkedDataTypeRefreshModeChanged","linkedDataTypeLinkedDataTypeAdded","worksheetFormulaChanged","workbookActivated","linkedWorkbookWorkbookLinksChanged","linkedWorkbookRefreshCompleted","worksheetProtectionChanged","worksheetNameChanged","worksheetVisibilityChanged","worksheetMoved","lineageActivityUpdateAvailable","lineageActivityFilterUpdated","lineageActivityLoadCompleted","shapeAdded","shapeDeleted","pivotTableAdded","pivotTableDeleted","namedItemAdded","namedItemDeleted","worksheetNavigationObjectChanged","workbookNavigationObjectChanged","worksheetRowHeightChanged","workbookFormulaReferenceStyleChanged","guidedReapplyManagerUpdateAvailable","vbaRecorderRecordingChanged","rangeValuesPreviewDismissed","annotationAdded","workbookActionRecorded","applicationUndoChanged","vbaRecorderRecordingChanged2","linkedEntityDataDomainLinkedEntityDataDomainAdded","linkedEntityDataDomainRefreshCompleted","linkedEntityDataDomainRefreshModeChanged","queryQueryRefreshCompleted","externalCodeServiceDiffResultReceived"],{wacoperationEvent:"WACOperationEvent"}],["DocumentPropertyItem",["title","subject","author","keywords","comments","template","lastAuth","revision","appName","lastPrint","creation","lastSave","category","format","manager","company"]],["SubtotalLocationType",["atTop","atBottom","off"]],["PivotLayoutType",["compact","tabular","outline"]],["ProtectionSelectionMode",["normal","unlocked","none"]],["PageOrientation",["portrait","landscape"]],["PaperType",["letter","letterSmall","tabloid","ledger","legal","statement","executive","a3","a4","a4Small","a5","b4","b5","folio","quatro","paper10x14","paper11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopeDL","envelopeC5","envelopeC3","envelopeC4","envelopeC6","envelopeC65","envelopeB4","envelopeB5","envelopeB6","envelopeItaly","envelopeMonarch","envelopePersonal","fanfoldUS","fanfoldStdGerman","fanfoldLegalGerman"]],["ReadingOrder",["context","leftToRight","rightToLeft"]],["BuiltInStyle",["normal","comma","currency","percent","wholeComma","wholeDollar","hlink","hlinkTrav","note","warningText","emphasis1","emphasis2","emphasis3","sheetTitle","heading1","heading2","heading3","heading4","input","output","calculation","checkCell","linkedCell","total","good","bad","neutral","accent1","accent1_20","accent1_40","accent1_60","accent2","accent2_20","accent2_40","accent2_60","accent3","accent3_20","accent3_40","accent3_60","accent4","accent4_20","accent4_40","accent4_60","accent5","accent5_20","accent5_40","accent5_60","accent6","accent6_20","accent6_40","accent6_60","explanatoryText"]],["PrintErrorType",["asDisplayed","blank","dash","notAvailable"]],["WorksheetPositionType",["none","before","after","beginning","end"]],["PrintComments",["noComments","endSheet","inPlace"]],["PrintOrder",["downThenOver","overThenDown"]],["PrintMarginUnit",["points","inches","centimeters"]],["HeaderFooterState",["default","firstAndDefault","oddAndEven","firstOddAndEven"]],["AutoFillType",["fillDefault","fillCopy","fillSeries","fillFormats","fillValues","fillDays","fillWeekdays","fillMonths","fillYears","linearTrend","growthTrend","flashFill"]],["GroupOption",["byRows","byColumns"]],["RangeCopyType",["all","formulas","values","formats","link","columnWidths"]],["LinkedDataTypeState",["none","validLinkedData","disambiguationNeeded","brokenLinkedData","fetchingData"]],["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"]],["ConnectorType",["straight","elbow","curve"]],["ContentType",["plain","mention"]],["SpecialCellType",["conditionalFormats","dataValidations","blanks","constants","formulas","sameConditionalFormat","sameDataValidation","visible","dirtyFormulas"]],["SpecialCellValueType",["all","errors","errorsLogical","errorsNumbers","errorsText","errorsLogicalNumber","errorsLogicalText","errorsNumberText","logical","logicalNumbers","logicalText","logicalNumbersText","numbers","numbersText","text"]],["Placement",["twoCell","oneCell","absolute"]],["FillPattern",["none","solid","gray50","gray75","gray25","horizontal","vertical","down","up","checker","semiGray75","lightHorizontal","lightVertical","lightDown","lightUp","grid","crissCross","gray16","gray8","linearGradient","rectangularGradient"]],["ShapeTextHorizontalAlignment",["left","center","right","justify","justifyLow","distributed","thaiDistributed"]],["ShapeTextVerticalAlignment",["top","middle","bottom","justified","distributed"]],["ShapeTextVerticalOverflow",["overflow","ellipsis","clip"]],["ShapeTextHorizontalOverflow",["overflow","clip"]],["ShapeTextReadingOrder",["leftToRight","rightToLeft"]],["ShapeTextOrientation",["horizontal","vertical","vertical270","wordArtVertical","eastAsianVertical","mongolianVertical","wordArtVerticalRTL"]],["ShapeAutoSize",["autoSizeNone","autoSizeTextToFitShape","autoSizeShapeToFitText","autoSizeMixed"]],["CloseBehavior",["save","skipSave"]],["SaveBehavior",["save","prompt"]],["SlicerSortType",["dataSourceOrder","ascending","descending"]],["RibbonTab",["others","home","insert","draw","pageLayout","formulas","data","review","view","developer","addIns","help"]],["NumberFormatCategory",["general","number","currency","accounting","date","time","percentage","fraction","scientific","text","special","custom"]],["WorkbookCompatibilityVersion",["version1","version2","version3"]]],clientObjectTypes:[["PythonContextObject",0,[["pythonObjectReferenceIds",2],["runtimeUrl",2]]],["GridFoil",0,[["id",2],["options",2]],[["range","Range",2,0,0,4]],[["dismiss",0,2,0,4]]],["GridFoilCollection",1,0,0,[["removeAll",0,2,0,4]],[["add","GridFoil",2,10,0,4],["getItem","GridFoil",1,2,0,4]],0,"GridFoil"],["LocalImage",0,0,0,[["getBase64EncodedImageData",1,2,0,4]]],["PremiumLicense",0,[["details",2],["valid",2],["id",2]],0,[["_RegisterEventChanged",0,0,0,2,0,1],["_UnregisterEventChanged",0,0,0,2,0,1]],0,0,0,[["Changed",0,0,"MessageType.premiumLicenseChangedEvent","this.id","_RegisterEventChanged","_UnregisterEventChanged"]]],["FormulaCultureInfo",0,[["errorTypeNames",2],["falseName",2],["leftBrace",2],["leftBracket",2],["listSeparator",2],["rightBrace",2],["rightBracket",2],["specialRefNames",2],["trueName",2],["uppercaseColumnLetter",2],["uppercaseRowLetter",2],["worksheetFunctionNames",2],["columnSeparator",2],["rowSeparator",2]]],["ExternalCodeServiceInitializationSettings",0,[["id",2]],0,[["commitEnvironmentDefinition",1,0,0,2],["resetToDefaultEnvironmentDefinition",0,0,0,2],["_RegisterEventEnvironmentDefinitionInitializationResponseReceived",0,2,0,4],["_UnregisterEventEnvironmentDefinitionInitializationResponseReceived",0,2,0,4],["_RegisterEventEnvironmentDefinitionResponseReceived",0,2,0,4],["_UnregisterEventEnvironmentDefinitionResponseReceived",0,2,0,4],["getEnvironmentDefinition",0,2,0,4],["getResult",0,2,0,4]],0,0,0,[["EnvironmentDefinitionInitializationResponseReceived",0,0,"MessageType.externalCodeServiceInitializationSettingsEnvironmentDefinitionInitializationResponseReceivedEvent","this.id","_RegisterEventEnvironmentDefinitionInitializationResponseReceived","_UnregisterEventEnvironmentDefinitionInitializationResponseReceived"],["EnvironmentDefinitionResponseReceived",0,0,"MessageType.externalCodeServiceInitializationSettingsEnvironmentDefinitionResponseReceivedEvent","this.id","_RegisterEventEnvironmentDefinitionResponseReceived","_UnregisterEventEnvironmentDefinitionResponseReceived"]]],["UndoScope",0,0,0,[["close",1,0,0,2],["open",1,0,0,2]]],["RangeValuesPreview",4,0,0,[["_RegisterEventDismissed",0,0,0,2,0,2],["_UnregisterEventDismissed",0,0,0,2,0,2],["dismiss",0,2,0,4],["show",3,2,0,4]],0,0,0,[["Dismissed",0,0,"MessageType.rangeValuesPreviewDismissedEvent","this._ParentObject.id","_RegisterEventDismissed","_UnregisterEventDismissed"]]],["AugmentationLoop",0,[["docSessionId",2]],0,[["_RegisterAnnotationAddedEvent",0,2,0,4],["_UnregisterAnnotationAddedEvent",0,2,0,4],["activateAnnotation",1,2,0,4],["submitSignal",1,2,0,4]],0,0,0,[["AnnotationAdded",0,0,"MessageType.augmentationLoopAnnotationAddedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterAnnotationAddedEvent","_UnregisterAnnotationAddedEvent"]]],["ExternalCodeService",0,[["autoShowDiagnostics",0,0,0,2,3],["id",2]],[["diagnostics","ExternalCodeServiceDiagnostics",2,0,0,4],["initializationSettings","ExternalCodeServiceInitializationSettings",2,0,0,4]],[["getHeadlessResult",1,2,0,4],["executeHeadlessRequest",1,2,0,4],["_RegisterEventDiffResultReceived",0,0,0,2],["_UnregisterEventDiffResultReceived",0,0,0,2]],0,0,0,[["DiffResultReceived",0,0,"MessageType.externalCodeServiceDiffResultReceivedEvent","this.id","_RegisterEventDiffResultReceived","_UnregisterEventDiffResultReceived"]]],["ExternalCodeServiceDiagnostics",0,[["id",2]],0,[["_RegisterEventNewEntry",0,0,0,2,0,2],["_UnregisterEventNewEntry",0,0,0,2,0,2],["clear",0,2,0,4],["fireStoredEntries",0,2,0,4],["_RegisterEventFilterUpdated",0,0,0,2,0,2],["_UnregisterEventFilterUpdated",0,0,0,2,0,2]],0,0,0,[["FilterUpdated",0,0,"MessageType.externalCodeServiceDiagnosticsFilterUpdatedEvent","this.id","_RegisterEventFilterUpdated","_UnregisterEventFilterUpdated"],["NewEntry",0,0,"MessageType.externalCodeServiceDiagnosticsNewEntryEvent","this.id","_RegisterEventNewEntry","_UnregisterEventNewEntry"]]],["VbaRecorder",0,[["id",2]],0,[["_RegisterEventRecordingChanged",0,0,0,2,0,2],["_UnregisterEventRecordingChanged",0,0,0,2,0,2],["_RegisterEventRecordingChanged2",0,2,4,4],["_UnregisterEventRecordingChanged2",0,2,4,4]],0,0,0,[["RecordingChanged",0,0,"MessageType.vbaRecorderRecordingChangedEvent","this.id","_RegisterEventRecordingChanged","_UnregisterEventRecordingChanged"],["RecordingChanged2",0,4,"MessageType.vbaRecorderRecordingChanged2Event","this.id","_RegisterEventRecordingChanged2","_UnregisterEventRecordingChanged2"]]],["WorksheetOptimizationScanResult",0,[["allocatedCells",2],["optimizableCells",2]],[["ranges","RangeOptimizationCollection",18,0,0,4]]],["UserActivityCollection",1,0,0,[["getCount",0,2,0,4]],[["getItemAt","UserActivity",1,2,0,4]],0,"UserActivity"],["GuidedReapplyManager",0,0,[["activities","UserActivityCollection",18,0,0,4],["summaryCardUserActivity","SummaryCardUserActivity",2,0,0,4],["unappliedActivities","UserActivityCollection",18,0,0,4],["reappliedActivities","UserActivityCollection",18,0,0,4],["reappliedSummaryCardUserActivity","SummaryCardUserActivity",2,0,0,4],["unappliedSummaryCardUserActivity","SummaryCardUserActivity",2,0,0,4]],[["openSavedFile",0,2,0,4],["updateActivities",0,2,0,4],["_RegisterEventUpdateAvailable",0,2,0,4],["_UnregisterEventUpdateAvailable",0,2,0,4],["discardActivites",0,2,0,4],["reapplyActivity",1,0,0,2,0,5],["saveActivities",0,2,0,4],["reapplyActivities",0,0,0,2,0,5]],[["getState","GuidedReapplyState",0,2,0,4]],0,0,[["UpdateAvailable",0,0,"MessageType.guidedReapplyManagerUpdateAvailableEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterEventUpdateAvailable","_UnregisterEventUpdateAvailable"]]],["GuidedReapplyState",0,[["dimOpenBackupButton",2],["dimApplyUnsavedChangesButton",2],["isInPostReloadState",2]]],["BusinessBar",0,0,0,[["hide",2,0,0,2,0,1],["show",2,0,0,2,0,1]]],["UserActivity",0,[["activityId",2],["activityType",2],["author",2],["createdDateTime",10],["guid",2],["rangeAddress",2],["sheetName",2],["valueChangeData",2],["authorEmail",2],["locationDeleted",2]],[["highlightRangeAreas","RangeAreas",2,0,0,4]]],["LineageActivityCollection",1,0,0,[["_RegisterEventUpdateAvailable",0,2,0,4],["_UnregisterEventUpdateAvailable",0,2,0,4],["clear",0,2,0,4],["getCount",0,2,0,4],["getState",0,2,0,4],["loadActivities",1,2,0,4],["loadLatestActivities",0,2,0,4],["loadNextActivities",0,2,0,4],["loadPreviousActivities",0,2,0,4],["updateActivities",0,2,0,4],["_RegisterEventFilterUpdated",0,2,0,4],["_RegisterEventLoadCompleted",0,2,0,4],["_UnregisterEventFilterUpdated",0,2,0,4],["_UnregisterEventLoadCompleted",0,2,0,4]],[["getItemAt","UserActivity",1,2,0,4]],0,"UserActivity",[["FilterUpdated",0,0,"MessageType.lineageActivityFilterUpdatedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterEventFilterUpdated","_UnregisterEventFilterUpdated"],["LoadCompleted",0,0,"MessageType.lineageActivityLoadCompletedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterEventLoadCompleted","_UnregisterEventLoadCompleted"],["UpdateAvailable",0,0,"MessageType.lineageActivityUpdateAvailableEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterEventUpdateAvailable","_UnregisterEventUpdateAvailable"]]],["SummaryItemUserActivity",0,[["activityType",2],["rangeAddresses",2],["sheetName",2],["valueChangeData",2]]],["SummaryItemUserActivityCollection",1,0,0,[["getCount",0,2,0,4]],[["getItemAt","SummaryItemUserActivity",1,2,0,4]],0,"SummaryItemUserActivity"],["SummaryCardUserActivity",0,[["authors",2],["currentUser",2],["displayTime",10],["numberOfDetailedCard",2],["summaryUnviewableData",2]],[["summaryItemUserActivities","SummaryItemUserActivityCollection",18,0,0,4]]],["AllowEditRange",0,[["address",1],["isPasswordProtected",3],["title",1]],0,[["delete"],["pauseProtection",1],["setPassword",1]]],["AllowEditRangeCollection",1,0,0,[["add",3],["getCount",0,2,0,4],["pauseProtection",1]],[["getItem","AllowEditRange",1,18,0,4],["getItemAt","AllowEditRange",1,2,0,4],["getItemOrNullObject","AllowEditRange",1,2,0,4]],0,"AllowEditRange"],["Query",0,[["loadedTo",2],["loadedToDataModel",2],["name",2],["refreshDate",10],["rowsLoadedCount",2],["error",2],["formula",0,6,0,2]],0,[["delete",0,0,6,2,0,7],["refresh",0,0,6,2,0,7]]],["QueryCollection",1,0,0,[["getCount",0,2,0,4],["refreshAll",0,0,6,2,0,7],["_RegisterEventQueryRefreshCompleted",0,0,6,2,0,8],["_UnregisterEventQueryRefreshCompleted",0,0,6,2,0,8]],[["getItem","Query",1,18,0,4],["loadQuery","Query",3,0,6]],0,"Query",[["QueryRefreshCompleted",0,6,"MessageType.queryQueryRefreshCompletedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterEventQueryRefreshCompleted","_UnregisterEventQueryRefreshCompleted"]]],["VisualTracker",0,[["id",2]],0,[["_RegisterEventModelChanged",0,2],["_UnregisterEventModelChanged",0,2],["requestTrackingAlteration",2,2,0,4]],0,0,0,[["ModelChanged",0,0,"MessageType.visualTrackerModelChangedEvent","this.id","_RegisterEventModelChanged","_UnregisterEventModelChanged"]]],["NumberFormatProperty",0,[["key",3],["currency",3],["dateTime",3],["dateTimeHasDayOfWeek",3],["dateTimeHasMonth",3],["dateTimeHasYear",3],["numeric",3],["percent",3],["text",3]]],["NumberFormatPropertyCollection",1,0,0,0,[["getItemAt","NumberFormatProperty",1,2,0,4]],0,"NumberFormatProperty"],["RangeOptimization",0,[["optimizationTypes",2],["range",2]]],["RangeOptimizationCollection",1,[["allocatedCells",2],["optimizableCells",2]],0,[["getCount",0,2,0,4]],[["getItemAt","RangeOptimization",1,2,0,4]],0,"RangeOptimization"],["WorksheetOptimization",0,0,0,[["formatCellCounts",1,2,0,4]],[["optimize","WorksheetOptimizationResult",0,0,0,2],["scan","RangeOptimizationCollection",0,6,0,4],["scanExtended","WorksheetOptimizationScanResult",0,2,0,4]]],["WorksheetOptimizationResult",0,[["allocatedCells",2],["optimizedCells",2]]],["LinkedWorkbook",0,[["displayUrl",2,9],["fileName",3,9],["id",2],["longErrorDescription",2,9],["refreshEnabled",2,9],["refreshing",2,9],["statusMessage",2,9],["excelIconState",2,9],["hardToFindErrorMessages",2,9],["lastUpdated",10,9],["recentlyEdited",2,9]],0,[["_RegisterRefreshCompletedEvent",0,0,9,2,0,2],["_UnregisterRefreshCompletedEvent",0,0,9,2,0,2],["breakLinks",0,0,0,2,0,10],["changeSource",1,0,9,2,0,10],["findNextLink",0,2,9,4],["openWorkbook",0,2,9,4],["refresh"],["openChangeSourceDialog",0,0,9,2,0,10],["closeChangeSourceDialog",0,2,9,4]],0,0,0,[["RefreshCompleted",0,9,"MessageType.linkedWorkbookRefreshCompletedEvent","this.id","_RegisterRefreshCompletedEvent","_UnregisterRefreshCompletedEvent"]]],["LinkedWorkbookCollection",1,[["breakAllLinksEnabled",0,9],["refreshAllEnabled",0,9],["workbookLinksRefreshMode",0,0,0,2,11],["workbookLinksRefreshSettings",0,9,0,2,12],["containsNonWorkbookLinks",0,9]],0,[["_RegisterWorkbookLinksChangedEvent",0,2,9,4],["_UnregisterWorkbookLinksChangedEvent",0,2,9,4],["breakAllLinks",0,0,0,2,0,10],["getCount",0,2,9,4],["refreshAll"],["openEditLinksDialog",0,2,9,4],["breakCheckedWorkbooks",1,0,9],["openCheckedWorkbooks",1,0,9,2],["refreshCheckedWorkbooks",1,0,9]],[["getItem","LinkedWorkbook",1,18,0,4],["getItemAt","LinkedWorkbook",1,2,9,4],["getItemOrNullObject","LinkedWorkbook",1,0,0,2,0,0,13]],0,"LinkedWorkbook",[["WorkbookLinksChanged",0,9,"MessageType.linkedWorkbookWorkbookLinksChangedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterWorkbookLinksChangedEvent","_UnregisterWorkbookLinksChangedEvent"]]],["DocumentTaskChange",0,[["type",2],["changedBy",2],["commentId",2],["createdDateTime",10],["id",2],["assignee",2],["undoChangeId",2],["priority",2],["title",2],["percentComplete",2],["startDateTime",10],["dueDateTime",10]],0,0,0,0,0,0,"Microsoft.ExcelServices.DocumentTaskChange",4],["DocumentTaskChangeCollection",1,0,0,[["getCount",0,2,0,4]],[["getItemAt","DocumentTaskChange",1,2,0,4]],0,"DocumentTaskChange"],["RangePicker",0,0,0,[["activate",1,0,0,2,0,14],["deactivate",0,0,0,2,0,14],["updateSelection",1,0,0,2,0,14],["updateSelectionWithNavigation",4,0,0,2,0,14],["_RegisterEventSelectionChanged",0,0,0,2,0,14],["_UnregisterEventSelectionChanged",0,0,0,2,0,14],["_RegisterEventDeactivated",0,2,0,4],["_UnregisterEventDeactivated",0,2,0,4]],0,0,0,[["Deactivated",0,0,"MessageType.rangePickerDeactivatedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterEventDeactivated","_UnregisterEventDeactivated"],["SelectionChanged",0,0,"MessageType.rangePickerSelectionChangedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterEventSelectionChanged","_UnregisterEventSelectionChanged"]]],["DocumentTask",0,[["startAndDueDateTime",0,0,0,2,15],["id",2],["percentComplete",0,0,0,2,8],["priority",0,0,0,2,8],["title",0,0,0,2,8],["assignees",2],["completedBy",2],["completedDateTime",10],["createdBy",2],["createdDateTime",10]],[["changes","DocumentTaskChangeCollection",18,0,0,4],["comment","Comment",2,0,0,4]],[["assign",1,0,0,2,0,8],["unassign",1,0,0,2,0,8],["unassignAll",0,0,0,2,0,8]]],["DocumentTaskCollection",1,0,0,[["getCount",0,2,0,4]],[["getItem","DocumentTask",1,18,0,4],["getItemOrNullObject","DocumentTask",1,2,0,4],["getItemAt","DocumentTask",1,2,0,4]],0,"DocumentTask"],["DataConnection",0,[["connectionString",2],["name",2],["commandText",2],["dataSourceType",2]]],["Runtime",0,[["enableEvents",1,16,0,2,11]]],["Application",0,[["calculationMode",1,0,0,2,17],["calculationEngineVersion",3,18],["calculationState",3,18],["decimalSeparator",3,19],["thousandsSeparator",3,19],["useSystemSeparators",3,19],["formatStaleValues",1,6,0,2,20],["maxSupportedCompatibilityVersion",3,9]],[["iterativeCalculation","IterativeCalculation",35,18,0,4],["ribbon","Ribbon",35,18,0,4],["cultureInfo","CultureInfo",3,19,0,4],["undoScope","UndoScope",3,6,0,4],["activeWindow","Window",35,21,0,4]],[["calculate",1,0,0,2,0,17],["suspendApiCalculationUntilNextSync",0,1,22,2,0,23],["suspendScreenUpdatingUntilNextSync",0,0,18,2,0,23],["hasLicense",1,2,6,4],["redo",0,0,9,2],["explorePremiumLicense",1,2,6,4],["undo",0,0,9,2],["_RegisterEventUndoChanged",0,2,9,4],["_UnregisterEventUndoChanged",0,2,9,4]],[["createWorkbook","WorkbookCreated",1,10,16,0,0,"_GetWorkbookCreatedById"],["_GetWorkbookCreatedById","WorkbookCreated",1,2,16,4],["getPremiumLicense","PremiumLicense",1,2,6,4]],0,0,[["UndoChanged",0,9,"MessageType.applicationUndoChangedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterEventUndoChanged","_UnregisterEventUndoChanged"]]],["IterativeCalculation",0,[["enabled",1,0,0,2,20],["maxIteration",1,0,0,2,20],["maxChange",1,0,0,2,20]]],["Workbook",0,[["name",3,24],["readOnly",3,16],["isDirty",1,18,0,2,13],["use1904DateSystem",1,6,0,2,13],["chartDataPointTrack",1,18,0,2,13],["usePrecisionAsDisplayed",1,18,0,2,13],["calculationEngineVersion",3,18],["autoSave",3,18],["previouslySaved",3,18],["showPivotFieldList",0,6,0,2,25],["formulaReferenceStyle",2,6],["externalCodeServiceTimeout",0,6,0,2],["compatibilityVersion",0,9,0,2]],[["worksheets","WorksheetCollection",19,0,0,4],["names","NamedItemCollection",19,0,0,4],["tables","TableCollection",19,0,0,4],["application","Application",2,0,0,4],["bindings","BindingCollection",19,0,0,4],["functions","Functions",2,26,0,4],["_V1Api","_V1Api",2,27,0,4],["pivotTables","PivotTableCollection",19,27,0,4],["settings","SettingCollection",19,28,0,4],["customXmlParts","CustomXmlPartCollection",19,29,0,4],["internalTest","InternalTest",2,22,0,4],["properties","DocumentProperties",35,24,0,4],["styles","StyleCollection",19,24,0,4],["protection","WorkbookProtection",3,24,0,4],["dataConnections","DataConnectionCollection",3,24,0,4],["_Runtime","Runtime",2,29,0,4],["comments","CommentCollection",19,30,0,4],["slicers","SlicerCollection",19,30,0,4],["tableStyles","TableStyleCollection",19,30,0,4],["pivotTableStyles","PivotTableStyleCollection",19,30,0,4],["slicerStyles","SlicerStyleCollection",19,30,0,4],["timelineStyles","TimelineStyleCollection",19,30,0,4],["tasks","DocumentTaskCollection",18,6,0,4],["linkedDataTypes","LinkedDataTypeCollection",18,6,0,4],["queries","QueryCollection",18,31,0,4],["linkedWorkbooks","LinkedWorkbookCollection",18,32,0,4],["rangePicker","RangePicker",2,6,0,4,0,14],["lineageActivities","LineageActivityCollection",18,9,0,4],["businessBar","BusinessBar",2,6,0,4],["guidedReapply","GuidedReapplyManager",2,9,0,4],["vbaRecorder","VbaRecorder",2,6,0,4],["externalCodeService","ExternalCodeService",2,6,0,4],["augmentationLoop","AugmentationLoop",2,6,0,4],["linkedEntityDataDomains","LinkedEntityDataDomainCollection",18,33,0,4],["localImage","LocalImage",2,6,0,4],["notes","NoteCollection",83,34,0,4]],[["_RemoveReference",1,2],["_GetObjectByReferenceId",1,2,0,4],["_GetObjectTypeNameByReferenceId",1,2,0,4],["_RemoveAllReferences",0,2],["_GetReferenceCount",0,2,0,4],["getIsActiveCollabSession",0,0,18,2,0,13],["registerCustomFunctions",7,0,35,10,0,13],["_SetOsfControlContainerReadyForCustomFunctions",0,0,35,2,0,13],["close",1,0,19],["save",1,0,19],["_RegisterAutoSaveSettingChangedEvent",0,0,18,2,0,2],["_UnregisterAutoSaveSettingChangedEvent",0,0,18,2,0,2],["_RegisterWACOperationEvent",0,2,36,4],["_UnregisterWACOperationEvent",0,2,36,4],["_RegisterRecordingStateChangedEvent",0,0,36,2,0,37],["_UnregisterRecordingStateChangedEvent",0,0,36,2,0,37],["_RegisterActivatedEvent",0,2,38],["_UnregisterActivatedEvent",0,2,38],["insertWorksheetsFromBase64",2,0,38],["enableOfficeScriptRecording",1,1,32,2,0,3],["recordAction",1,3,0,4],["focus",0,2,9,4],["_RegisterNavigationObjectChangedEvent",0,0,9,2,0,2],["_UnregisterNavigationObjectChangedEvent",0,0,9,2,0,2],["showHelp",1,2,9,4],["getLinkedEntityCellValue",1,2,39,4],["getThemeColors",0,2,6,4],["_RegisterEventFormulaReferenceStyleChanged",0,2,6,4],["_UnregisterEventFormulaReferenceStyleChanged",0,2,6,4],["notifySDXLoaded",1,2,9,4],["openConditionalFormattingRulesManager",1,0,9,2,0,12],["openNameManager",0,0,9,2,0,12],["_RegisterEventActionRecorded",0,2,4,4],["_UnregisterEventActionRecorded",0,2,4,4],["enterPreviewMode",0,2,6,5],["exitPreviewMode",1,0,6,3]],[["getSelectedRange","Range",0,10,0,4],["getActiveCell","Range",0,10,24,4],["_GetRangeForEventByReferenceId","Range",1,2,0,4],["_GetRangeOrNullObjectForEventByReferenceId","Range",1,2,0,4],["getActiveChart","Chart",0,2,18,4],["getActiveChartOrNullObject","Chart",0,2,18,4],["getSelectedRanges","RangeAreas",0,10,18,4],["_GetRangesForEventByReferenceId","RangeAreas",1,2,18,4],["_GetRangesOrNullObjectForEventByReferenceId","RangeAreas",1,2,18,4],["getActiveSlicer","Slicer",0,2,30,4],["getActiveSlicerOrNullObject","Slicer",0,2,30,4],["getActiveShape","Shape",0,2,33,4],["getActiveShapeOrNullObject","Shape",0,2,33,4]],0,0,[["ActionRecorded",0,4,"MessageType.workbookActionRecordedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterEventActionRecorded","_UnregisterEventActionRecorded"],["Activated",0,38,"MessageType.workbookActivatedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterActivatedEvent","_UnregisterActivatedEvent"],["AutoSaveSettingChanged",0,18,"MessageType.workbookAutoSaveSettingChangedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterAutoSaveSettingChangedEvent","_UnregisterAutoSaveSettingChangedEvent"],["FormulaReferenceStyleChanged",0,6,"MessageType.workbookFormulaReferenceStyleChangedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterEventFormulaReferenceStyleChanged","_UnregisterEventFormulaReferenceStyleChanged"],["NavigationObjectChanged",0,9,"MessageType.workbookNavigationObjectChangedEvent","this.id","_RegisterNavigationObjectChangedEvent","_UnregisterNavigationObjectChangedEvent"],["RecordingStateChangedEvent",0,36,"MessageType.recordingStateChangedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterRecordingStateChangedEvent","_UnregisterRecordingStateChangedEvent"],["SelectionChanged",3,27,"_CC.office10EventIdDocumentSelectionChangedEvent","","",""],["WACOperationEvent",2,36,"MessageType.wacoperationEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterWACOperationEvent","_UnregisterWACOperationEvent"],["_Message",3,24,"_CC.office10EventIdRichApiMessageEvent","","",""]]],["WorkbookProtection",0,[["protected",3]],0,[["protect",1],["unprotect",1]]],["WorkbookCreated",0,[["id",3]],0,[["open",0,2,0,4]]],["Worksheet",0,[["name",1,0,0,2,40],["id",3],["position",1,0,0,2,40],["visibility",1,0,0,2,40],["tabColor",1,24,0,2,41],["standardWidth",1,24,0,2,42],["standardHeight",3,24],["showGridlines",5,16,0,2,43],["showHeadings",5,16,0,2,11],["enableCalculation",1,18,0,2,11],["tabId",3,31],["showDataTypeIcons",1,33,0,2]],[["charts","ChartCollection",83,0,0,4],["tables","TableCollection",83,0,0,4],["protection","WorksheetProtection",3,26,0,4],["pivotTables","PivotTableCollection",83,27,0,4],["names","NamedItemCollection",83,28,0,4],["freezePanes","WorksheetFreezePanes",3,24,0,4],["pageLayout","PageLayout",35,18,0,4],["visuals","VisualCollection",83,30,0,4],["shapes","ShapeCollection",83,18,0,4],["horizontalPageBreaks","PageBreakCollection",19,18,0,4],["verticalPageBreaks","PageBreakCollection",19,18,0,4],["autoFilter","AutoFilter",3,18,0,4],["slicers","SlicerCollection",19,30,0,4],["comments","CommentCollection",83,30,0,4],["customProperties","WorksheetCustomPropertyCollection",19,44,0,4],["namedSheetViews","NamedSheetViewCollection",18,32,0,4],["optimization","WorksheetOptimization",2,6,0,4],["tasks","DocumentTaskCollection",18,6,0,4],["visualTracker","VisualTracker",2,45,0,4],["rangeValuesPreview","RangeValuesPreview",66,6,0,4],["gridFoils","GridFoilCollection",18,9,0,4],["notes","NoteCollection",83,34,0,4]],[["delete"],["activate",0,2],["calculate",1,0,22,2,0,46],["_RegisterDataChangedEvent",0,0,24,2,0,23],["_UnregisterDataChangedEvent",0,0,24,2,0,23],["_RegisterActivatedEvent",0,0,24,2,0,2],["_UnregisterActivatedEvent",0,0,24,2,0,2],["_RegisterDeactivatedEvent",0,0,24,2,0,2],["_UnregisterDeactivatedEvent",0,0,24,2,0,2],["_RegisterSelectionChangedEvent",0,0,24,2,0,47],["_UnregisterSelectionChangedEvent",0,0,24,2,0,47],["_RegisterCalculatedEvent",0,0,16,2,0,2],["_UnregisterCalculatedEvent",0,0,16,2,0,2],["replaceAll",3,0,18,2,0,11],["_RegisterFilteredEvent",0,0,6,2,0,2],["_UnregisterFilteredEvent",0,0,6,2,0,2],["_RegisterFormatChangedEvent",0,0,18,2,0,2],["_UnregisterFormatChangedEvent",0,0,18,2,0,2],["_RegisterRowSortedEvent",0,0,30,2,0,2],["_UnregisterRowSortedEvent",0,0,30,2,0,2],["_RegisterColumnSortedEvent",0,0,30,2,0,2],["_UnregisterColumnSortedEvent",0,0,30,2,0,2],["_RegisterSingleClickedEvent",0,0,30,2,0,2],["_UnregisterSingleClickedEvent",0,0,30,2,0,2],["_RegisterRowHiddenChangedEvent",0,0,19,2,0,2],["_UnregisterRowHiddenChangedEvent",0,0,19,2,0,2],["showOutlineLevels",2,0,30,2,0,11],["_RegisterFormulaChangedEvent",0,2,38],["_UnregisterFormulaChangedEvent",0,2,38],["_RegisterProtectionChangedEvent",0,2,31],["_UnregisterProtectionChangedEvent",0,2,31],["_RegisterEventNameChanged",0,0,48,2,0,2],["_RegisterEventVisibilityChanged",0,0,48,2,0,2],["_UnregisterEventNameChanged",0,0,48,2,0,2],["_UnregisterEventVisibilityChanged",0,0,48,2,0,2],["_RegisterNavigationObjectChangedEvent",0,0,9,2,0,2],["_UnregisterNavigationObjectChangedEvent",0,0,9,2,0,2],["_RegisterEventRowHeightChanged",0,2,6],["_UnregisterEventRowHeightChanged",0,2,6],["evaluate",1,2,21,4],["clearArrows",0,0,21]],[["getRange","Range",1,10,0,4],["getUsedRange","Range",1,10,0,4],["getCell","Range",2,10,0,4],["getUsedRangeOrNullObject","Range",1,10,28,4],["getRangeByIndexes","Range",4,10,24,4],["getPrevious","Worksheet",1,10,29,4,0,"_GetSheetById"],["getPreviousOrNullObject","Worksheet",1,10,29,4,0,"_GetSheetById"],["getNext","Worksheet",1,10,29,4,0,"_GetSheetById"],["getNextOrNullObject","Worksheet",1,10,29,4,0,"_GetSheetById"],["_GetSheetById","Worksheet",1,2,24,4],["copy","Worksheet",2,0,24,0,0,"_GetAnotherWorksheetById"],["_GetAnotherWorksheetById","Worksheet",1,0,24,2,0,0,11],["findAll","RangeAreas",2,10,18,4],["findAllOrNullObject","RangeAreas",2,10,18,4],["getRanges","RangeAreas",1,10,18,4],["getUsedRangeAreas","RangeAreas",1,0,9,2,0,0,49],["getRangeR1C1","Range",1,2,6,4],["getRangesR1C1","RangeAreas",1,2,6,4],["getUsedRangeAreasOrNullObject","RangeAreas",1,0,9,2,0,0,49]],"workbook.worksheets",0,[["Activated",0,24,"MessageType.worksheetActivatedEvent","this.id","_RegisterActivatedEvent","_UnregisterActivatedEvent"],["Calculated",0,16,"MessageType.worksheetCalculatedEvent","this.id","_RegisterCalculatedEvent","_UnregisterCalculatedEvent"],["Changed",2,24,"MessageType.worksheetDataChangedEvent","this.id","_RegisterDataChangedEvent","_UnregisterDataChangedEvent"],["ColumnSorted",0,30,"MessageType.worksheetColumnSortedEvent","this.id","_RegisterColumnSortedEvent","_UnregisterColumnSortedEvent"],["Deactivated",0,24,"MessageType.worksheetDeactivatedEvent","this.id","_RegisterDeactivatedEvent","_UnregisterDeactivatedEvent"],["Filtered",0,6,"MessageType.worksheetFilteredEvent","this.id","_RegisterFilteredEvent","_UnregisterFilteredEvent"],["FormatChanged",2,18,"MessageType.worksheetFormatChangedEvent","this.id","_RegisterFormatChangedEvent","_UnregisterFormatChangedEvent"],["FormulaChanged",2,38,"MessageType.worksheetFormulaChangedEvent","this.id","_RegisterFormulaChangedEvent","_UnregisterFormulaChangedEvent"],["NameChanged",0,48,"MessageType.worksheetNameChangedEvent","this.id","_RegisterEventNameChanged","_UnregisterEventNameChanged"],["NavigationObjectChanged",0,9,"MessageType.worksheetNavigationObjectChangedEvent","this.id","_RegisterNavigationObjectChangedEvent","_UnregisterNavigationObjectChangedEvent"],["ProtectionChanged",0,31,"MessageType.worksheetProtectionChangedEvent","this.id","_RegisterProtectionChangedEvent","_UnregisterProtectionChangedEvent"],["RowHeightChanged",0,6,"MessageType.worksheetRowHeightChangedEvent","this.id","_RegisterEventRowHeightChanged","_UnregisterEventRowHeightChanged"],["RowHiddenChanged",0,19,"MessageType.worksheetRowHiddenChangedEvent","this.id","_RegisterRowHiddenChangedEvent","_UnregisterRowHiddenChangedEvent"],["RowSorted",0,30,"MessageType.worksheetRowSortedEvent","this.id","_RegisterRowSortedEvent","_UnregisterRowSortedEvent"],["SelectionChanged",0,24,"MessageType.worksheetSelectionChangedEvent","this.id","_RegisterSelectionChangedEvent","_UnregisterSelectionChangedEvent"],["SingleClicked",0,30,"MessageType.worksheetSingleClickedEvent","this.id","_RegisterSingleClickedEvent","_UnregisterSingleClickedEvent"],["VisibilityChanged",0,48,"MessageType.worksheetVisibilityChangedEvent","this.id","_RegisterEventVisibilityChanged","_UnregisterEventVisibilityChanged"]]],["WorksheetCollection",1,0,0,[["getCount",1,2,28,4],["_RegisterAddedEvent",0,3,24],["_UnregisterAddedEvent",0,3,24],["_RegisterActivatedEvent",0,3,24],["_UnregisterActivatedEvent",0,0,24,2,0,47],["_RegisterDeactivatedEvent",0,0,24,2,0,47],["_UnregisterDeactivatedEvent",0,0,24,2,0,47],["_RegisterDeletedEvent",0,3,24],["_UnregisterDeletedEvent",0,3,24],["_RegisterCalculatedEvent",0,0,16,2,0,2],["_UnregisterCalculatedEvent",0,0,16,2,0,2],["_RegisterDataChangedEvent",0,3,18],["_UnregisterDataChangedEvent",0,3,18],["_RegisterSelectionChangedEvent",0,0,18,2,0,47],["_UnregisterSelectionChangedEvent",0,0,18,2,0,47],["addFromBase64",4,0,6],["_RegisterFilteredEvent",0,0,6,2,0,2],["_UnregisterFilteredEvent",0,0,6,2,0,2],["_RegisterFormatChangedEvent",0,0,18,2,0,2],["_UnregisterFormatChangedEvent",0,0,18,2,0,2],["_RegisterRowSortedEvent",0,3,30],["_UnregisterRowSortedEvent",0,3,30],["_RegisterColumnSortedEvent",0,3,30],["_UnregisterColumnSortedEvent",0,3,30],["_RegisterSingleClickedEvent",0,0,30,2,0,47],["_UnregisterSingleClickedEvent",0,0,30,2,0,47],["_RegisterRowHiddenChangedEvent",0,0,19,2,0,2],["_UnregisterRowHiddenChangedEvent",0,0,19,2,0,2],["_RegisterFormulaChangedEvent",0,2,38],["_UnregisterFormulaChangedEvent",0,2,38],["_RegisterProtectionChangedEvent",0,2,31],["_UnregisterProtectionChangedEvent",0,2,31],["_RegisterEventNameChanged",0,2,48,4],["_RegisterEventVisibilityChanged",0,2,48,4],["_UnregisterEventNameChanged",0,2,48,4],["_UnregisterEventVisibilityChanged",0,2,48,4],["_RegisterEventMoved",0,0,48,2,0,2],["_UnregisterEventMoved",0,0,48,2,0,2],["_RegisterEventRowHeightChanged",0,2,6],["_UnregisterEventRowHeightChanged",0,2,6]],[["getItem","Worksheet",1,18,0,4],["add","Worksheet",1,8,0,2,0,0,47],["getActiveWorksheet","Worksheet",0,2,0,4],["getItemOrNullObject","Worksheet",1,2,28,4],["getFirst","Worksheet",1,10,29,4],["getLast","Worksheet",1,10,29,4]],0,"Worksheet",[["Activated",0,24,"MessageType.worksheetActivatedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterActivatedEvent","_UnregisterActivatedEvent"],["Added",0,24,"MessageType.worksheetAddedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterAddedEvent","_UnregisterAddedEvent"],["Calculated",0,16,"MessageType.worksheetCalculatedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterCalculatedEvent","_UnregisterCalculatedEvent"],["Changed",2,18,"MessageType.worksheetDataChangedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterDataChangedEvent","_UnregisterDataChangedEvent"],["ColumnSorted",0,30,"MessageType.worksheetColumnSortedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterColumnSortedEvent","_UnregisterColumnSortedEvent"],["Deactivated",0,24,"MessageType.worksheetDeactivatedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterDeactivatedEvent","_UnregisterDeactivatedEvent"],["Deleted",0,24,"MessageType.worksheetDeletedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterDeletedEvent","_UnregisterDeletedEvent"],["Filtered",0,6,"MessageType.worksheetFilteredEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterFilteredEvent","_UnregisterFilteredEvent"],["FormatChanged",2,18,"MessageType.worksheetFormatChangedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterFormatChangedEvent","_UnregisterFormatChangedEvent"],["FormulaChanged",2,38,"MessageType.worksheetFormulaChangedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterFormulaChangedEvent","_UnregisterFormulaChangedEvent"],["Moved",0,48,"MessageType.worksheetMovedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterEventMoved","_UnregisterEventMoved"],["NameChanged",0,48,"MessageType.worksheetNameChangedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterEventNameChanged","_UnregisterEventNameChanged"],["ProtectionChanged",0,31,"MessageType.worksheetProtectionChangedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterProtectionChangedEvent","_UnregisterProtectionChangedEvent"],["RowHeightChanged",0,6,"MessageType.worksheetRowHeightChangedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterEventRowHeightChanged","_UnregisterEventRowHeightChanged"],["RowHiddenChanged",0,19,"MessageType.worksheetRowHiddenChangedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterRowHiddenChangedEvent","_UnregisterRowHiddenChangedEvent"],["RowSorted",0,30,"MessageType.worksheetRowSortedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterRowSortedEvent","_UnregisterRowSortedEvent"],["SelectionChanged",0,18,"MessageType.worksheetSelectionChangedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterSelectionChangedEvent","_UnregisterSelectionChangedEvent"],["SingleClicked",0,30,"MessageType.worksheetSingleClickedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterSingleClickedEvent","_UnregisterSingleClickedEvent"],["VisibilityChanged",0,48,"MessageType.worksheetVisibilityChangedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterEventVisibilityChanged","_UnregisterEventVisibilityChanged"]]],["WorksheetProtection",0,[["protected",3],["options",3],["canPauseProtection",3,32],["isPasswordProtected",3,32],["isPaused",3,32],["savedOptions",3,32]],[["allowEditRanges","AllowEditRangeCollection",19,32,0,4]],[["protect",2,1],["unprotect",1],["checkPassword",1,2,32,4],["pauseProtection",1,0,32],["resumeProtection",0,0,32],["setPassword",1,0,32],["updateOptions",1,0,32]]],["WorksheetFreezePanes",0,0,0,[["unfreeze",0,0,0,2,0,50],["freezeAt",1,0,0,2,0,50],["freezeRows",1,0,0,2,0,50],["freezeColumns",1,0,0,2,0,50]],[["getLocation","Range",0,10,0,4],["getLocationOrNullObject","Range",0,10,0,4]]],["Range",14,[["numberFormat",5,0,0,2,51],["numberFormatLocal",1,24,0,2,51],["values",5,0,0,2,51],["text",3],["formulas",5,0,0,2,52],["formulasLocal",5,0,0,2,52],["rowIndex",3],["columnIndex",3],["rowCount",3],["columnCount",3],["address",3],["addressLocal",3],["cellCount",3],["_ReferenceId",2],["valueTypes",3],["formulasR1C1",5,26,0,2,11],["hidden",3,26],["rowHidden",1,26,0,2,52],["columnHidden",1,26,0,2,52],["isEntireColumn",3,24],["isEntireRow",3,24],["hyperlink",1,24,0,2,53],["style",1,24,0,2,52],["linkedDataTypeState",3,18],["hasSpill",3,44],["top",3,30],["left",3,30],["height",3,30],["width",3,30],["savedAsArray",3,44],["numberFormatCategories",3,44],["valuesAsJson",5,39,0,2,54],["valuesAsJsonLocal",5,39,0,2,54],["addressR1C1",2,6],["control",0,34,0,2,11],["formulaArray",1,21,0,2,55]],[["format","RangeFormat",35,0,0,4],["worksheet","Worksheet",2,0,0,4],["sort","RangeSort",3,26,0,4],["conditionalFormats","ConditionalFormatCollection",19,22,0,4],["dataValidation","DataValidation",35,16,0,4]],[["clear",1,0,0,2,0,52],["delete",1,0,0,2,0,56],["select",0,2],["_KeepReference",0,2],["merge",1,0,26,2,0,52],["unmerge",0,0,26,2,0,54],["_ValidateArraySize",2,2,27,4],["calculate",0,0,22,2,0,46],["showCard",0,0,24,2,0,54],["getImage",0,2,24,4],["replaceAll",3,0,18,2,0,52],["copyFrom",4,0,18,2,0,43],["convertToLinkedDataType",2,0,18,2,0,50],["convertDataTypeToText",0,0,18,2,0,50],["setDirty",0,0,18,2,0,54],["getCellProperties",1,0,18,2,0,54],["getRowProperties",1,0,18,2,0,54],["getColumnProperties",1,0,18,2,0,54],["setCellProperties",1,0,18,2,0,54],["setRowProperties",1,0,18,2,0,54],["setColumnProperties",1,0,18,2,0,54],["autoFill",2,0,18,2,0,57],["showTeachingCallout",2,0,18,2,0,54],["flashFill",0,0,18,2,0,54],["group",1,0,30,2,0,54],["ungroup",1,0,30,2,0,54],["showGroupDetails",1,0,30,2,0,54],["hideGroupDetails",1,0,30,2,0,54],["moveTo",1,0,19,2,0,43],["getDataClassificationIds",0,2,32,4],["setExternalCodeServiceFormulasWithoutLicense",1,0,6,3,0,3],["getPythonObjectReferenceIds",0,0,6,3,0,54],["clearOrResetContents",0,0,34,2,0,11],["getDisplayedCellProperties",1,2,33,4],["togglePythonMarshalMode",1,0,6,2],["showPrecedents",1,0,21],["showDependents",1,0,21]],[["getCell","Range",2,10,0,4],["getUsedRange","Range",1,10,0,4],["insert","Range",1,8,0,2,0,0,56],["getEntireColumn","Range",0,10,0,4],["getEntireRow","Range",0,10,0,4],["getOffsetRange","Range",2,10,0,4],["getRow","Range",1,10,0,4],["getColumn","Range",1,10,0,4],["getIntersection","Range",1,10,0,4],["getBoundingRect","Range",1,10,0,4],["getLastCell","Range",0,10,0,4],["getLastColumn","Range",0,10,0,4],["getLastRow","Range",0,10,0,4],["getIntersectionOrNullObject","Range",1,10,28,4],["getRowsAbove","Range",1,11,27,4],["getRowsBelow","Range",1,11,27,4],["getColumnsBefore","Range",1,11,27,4],["getColumnsAfter","Range",1,11,27,4],["getResizedRange","Range",2,11,27,4],["getVisibleView","RangeView",0,2,27,4],["getUsedRangeOrNullObject","Range",1,10,28,4],["getSurroundingRegion","Range",0,10,24,4],["getAbsoluteResizedRange","Range",2,10,24,4],["getTables","TableScopedCollection",1,6,18,4],["find","Range",2,10,18,4],["findOrNullObject","Range",2,10,18,4],["removeDuplicates","RemoveDuplicatesResult",2,8,18,2,0,0,53],["getSpecialCells","RangeAreas",2,10,18,4],["getSpecialCellsOrNullObject","RangeAreas",2,10,18,4],["getSpillingToRange","Range",0,10,44,4],["getSpillParent","Range",0,10,44,4],["getSpillingToRangeOrNullObject","Range",0,10,44,4],["getSpillParentOrNullObject","Range",0,10,44,4],["getMergedAreas","RangeAreas",0,10,32,4],["getPivotTables","PivotTableScopedCollection",1,6,44,4],["getPrecedents","WorkbookRangeAreas",0,10,31,4],["getDirectPrecedents","WorkbookRangeAreas",0,10,44,4],["getDependents","WorkbookRangeAreas",0,10,58,4],["getDirectDependents","WorkbookRangeAreas",0,10,38,4],["getExtendedRange","Range",2,10,38,4],["getRangeEdge","Range",2,10,38,4],["getNumberFormatProperties","NumberFormatPropertyCollection",0,6,6,4],["getSurroundingDataRegion","Range",0,2,6,4],["getMergedAreasOrNullObject","RangeAreas",0,0,38,2,0,0,51],["getPythonContextObject","PythonContextObject",0,2,6,5]]],["RangeAreas",2,[["_ReferenceId",2],["address",3],["addressLocal",3],["areaCount",3],["cellCount",3],["isEntireColumn",3],["isEntireRow",3],["style",1,0,0,2,54],["addressR1C1",2,6]],[["areas","RangeCollection",19,0,0,4],["conditionalFormats","ConditionalFormatCollection",19,0,0,4],["format","RangeFormat",35,0,0,4],["dataValidation","DataValidation",35,0,0,4],["worksheet","Worksheet",2,0,0,4]],[["_KeepReference",0,2],["calculate",0,0,0,2,0,54],["clear",1,0,0,2,0,54],["setDirty",0,0,0,2,0,54],["copyFrom",4,0,0,2,0,54],["convertToLinkedDataType",2,0,0,2,0,50],["convertDataTypeToText",0,0,0,2,0,50],["select",0,2,34],["clearOrResetContents",0,0,34,2,0,11]],[["getEntireColumn","RangeAreas",0,10,0,4],["getEntireRow","RangeAreas",0,10,0,4],["getIntersection","RangeAreas",1,10,0,4],["getIntersectionOrNullObject","RangeAreas",1,10,0,4],["getOffsetRangeAreas","RangeAreas",2,10,0,4],["getUsedRangeAreas","RangeAreas",1,10,0,4],["getUsedRangeAreasOrNullObject","RangeAreas",1,10,0,4],["getTables","TableScopedCollection",1,6,0,4],["getSpecialCells","RangeAreas",2,10,0,4],["getSpecialCellsOrNullObject","RangeAreas",2,10,0,4]]],["WorkbookRangeAreas",2,[["_ReferenceId",2],["addresses",3]],[["ranges","RangeCollection",19,0,0,4],["areas","RangeAreasCollection",19,0,0,4]],[["_KeepReference",0,2]],[["getRangeAreasBySheet","RangeAreas",1,10,0,4],["getRangeAreasOrNullObjectBySheet","RangeAreas",1,10,0,4]]],["RangeView",0,[["numberFormat",1,0,0,2,54],["values",1,0,0,2,54],["text",3],["formulas",1,0,0,2,54],["formulasLocal",1,0,0,2,54],["formulasR1C1",1,0,0,2,54],["valueTypes",3],["rowCount",3],["columnCount",3],["cellAddresses",3],["index",3],["valuesAsJson",1,39,0,2,54],["valuesAsJsonLocal",1,39,0,2,54]],[["rows","RangeViewCollection",19,0,0,4]],0,[["getRange","Range",0,10,0,4]]],["RangeViewCollection",1,0,0,[["getCount",0,2,28,4]],[["getItemAt","RangeView",1,2,0,4]],0,"RangeView"],["SettingCollection",1,0,0,[["getCount",0,2,0,4]],[["getItem","Setting",1,18,0,4],["add","Setting",2,9,0,2,0,0,17],["getItemOrNullObject","Setting",1,2,0,4]],0,"Setting",[["SettingsChanged",3,0,"_CC.office10EventIdSettingsChangedEvent","","",""]]],["Setting",8,[["key",3],["value",5,0,0,2,17],["_Id",2]],0,[["delete",0,0,0,2,0,17]]],["NamedItemCollection",5,0,0,[["getCount",0,2,28,4],["_RegisterAddedEvent",0,0,9,2,0,2],["_RegisterDeletedEvent",0,0,9,2,0,2],["_UnregisterAddedEvent",0,0,9,2,0,2],["_UnregisterDeletedEvent",0,0,9,2,0,2]],[["getItem","NamedItem",1,18,0,4],["getItemOrNullObject","NamedItem",1,2,28,4],["add","NamedItem",3,8,28,2,0,0,50],["addFormulaLocal","NamedItem",3,0,28,2,0,0,50]],0,"NamedItem",[["Added",0,9,"MessageType.namedItemAddedEvent","this._eventTargetId","_RegisterAddedEvent","_UnregisterAddedEvent"],["Deleted",0,9,"MessageType.namedItemDeletedEvent","this._eventTargetId","_RegisterDeletedEvent","_UnregisterDeletedEvent"]]],["NamedItem",0,[["name",3],["type",3],["value",3],["visible",1,0,0,2,59],["_Id",2],["comment",1,28,0,2,42],["scope",3,28],["formula",1,24,0,2,50],["valueAsJson",3,39],["valueAsJsonLocal",3,39]],[["worksheet","Worksheet",2,28,0,4],["worksheetOrNullObject","Worksheet",2,28,0,4],["arrayValues","NamedItemArrayValues",3,24,0,4]],[["delete",0,0,28,2,0,50]],[["getRange","Range",0,10,0,4],["getRangeOrNullObject","Range",0,10,28,4]]],["NamedItemArrayValues",0,[["values",3],["types",3],["valuesAsJson",3,39],["valuesAsJsonLocal",3,39]]],["Binding",0,[["id",3],["type",3]],0,[["getText",0,2,0,4],["delete",0,0,27,2,0,11]],[["getTable","Table",0,2,0,4],["getRange","Range",0,2,0,4]],0,0,[["DataChanged",3,27,"_CC.office10EventIdBindingDataChangedEvent","this.id","",""],["SelectionChanged",3,27,"_CC.office10EventIdBindingSelectionChangedEvent","this.id","",""]]],["BindingCollection",1,[["count",3]],0,[["getCount",0,2,28,4]],[["getItem","Binding",1,18,0,4],["getItemAt","Binding",1,2,0,4],["add","Binding",3,8,27,2,0,0,11],["addFromNamedItem","Binding",3,0,27,2,0,0,50],["addFromSelection","Binding",2,0,27,2,0,0,50],["getItemOrNullObject","Binding",1,2,28,4]],0,"Binding"],["TableCollection",5,[["count",3]],0,[["getCount",0,2,28,4],["_RegisterDataChangedEvent",0,0,24,2,0,2],["_UnregisterDataChangedEvent",0,0,24,2,0,2],["_RegisterAddedEvent",0,0,18,2,0,2],["_UnregisterAddedEvent",0,0,18,2,0,2],["_RegisterDeletedEvent",0,0,18,2,0,2],["_UnregisterDeletedEvent",0,0,18,2,0,2],["_RegisterFilteredEvent",0,0,6,2,0,2],["_UnregisterFilteredEvent",0,0,6,2,0,2]],[["getItem","Table",1,18,0,4],["getItemAt","Table",1,2,0,4],["add","Table",2,8,0,2,0,0,53],["getItemOrNullObject","Table",1,2,28,4],["addQueryTable","Table",2,0,6]],0,"Table",[["Added",0,18,"MessageType.tableAddedEvent","this._eventTargetId","_RegisterAddedEvent","_UnregisterAddedEvent"],["Changed",2,24,"MessageType.tableDataChangedEvent","this._eventTargetId","_RegisterDataChangedEvent","_UnregisterDataChangedEvent"],["Deleted",0,18,"MessageType.tableDeletedEvent","this._eventTargetId","_RegisterDeletedEvent","_UnregisterDeletedEvent"],["Filtered",0,6,"MessageType.tableFilteredEvent","this._eventTargetId","_RegisterFilteredEvent","_UnregisterFilteredEvent"]]],["TableScopedCollection",1,0,0,[["getCount",0,2,0,4]],[["getFirst","Table",0,10,0,4],["getItem","Table",1,18,0,4],["getItemOrNullObject","Table",1,2,31,4]],0,"Table"],["Table",24,[["id",3],["name",1,0,0,2,43],["showHeaders",1,0,0,2,53],["showTotals",1,0,0,2,53],["style",1,0,0,2,53],["highlightFirstColumn",1,27,0,2,53],["highlightLastColumn",1,27,0,2,53],["showBandedRows",1,27,0,2,53],["showBandedColumns",1,27,0,2,53],["showFilterButton",1,27,0,2,53],["legacyId",3,16],["isMsFormConnected",0,6,0,2,3],["maxMsFormResponseId",0,6,0,2,3],["msFormId",0,6,0,2,3],["latestMsFormEventMarker",0,6,0,2,3],["syncedQuestionIds",0,6,0,2,3]],[["columns","TableColumnCollection",19,0,0,4],["rows","TableRowCollection",19,0,0,4],["sort","TableSort",3,26,0,4],["worksheet","Worksheet",2,26,0,4],["autoFilter","AutoFilter",3,18,0,4],["tableStyle","TableStyle",35,6,0,4]],[["delete",0,0,0,2,0,43],["clearFilters",0,0,26,2,0,50],["reapplyFilters",0,0,26,2,0,43],["_RegisterSelectionChangedEvent",0,0,24,2,0,2],["_UnregisterSelectionChangedEvent",0,0,24,2,0,2],["_RegisterDataChangedEvent",0,0,24,2,0,2],["_UnregisterDataChangedEvent",0,0,24,2,0,2],["clearStyle",0,0,6,2,0,60],["_RegisterFilteredEvent",0,0,6,2,0,2],["_UnregisterFilteredEvent",0,0,6,2,0,2],["resize",1,0,38,2,0,43],["setStyle",1,0,6,2,0,60],["applyPowerQueryTableUpdatePlan",2,0,6,2],["addSyncedQuestionId",1,0,6,2,0,3],["_RegisterEventApplyPowerQueryTableUpdatePlanCompleted",0,2,6,4],["_UnregisterEventApplyPowerQueryTableUpdatePlanCompleted",0,2,6,4]],[["getRange","Range",0,10,0,4],["getHeaderRowRange","Range",0,10,0,4],["getDataBodyRange","Range",0,10,0,4],["getTotalRowRange","Range",0,10,0,4],["convertToRange","Range",0,8,26,2,0,0,43]],"workbook.tables",0,[["ApplyPowerQueryTableUpdatePlanCompleted",0,6,"MessageType.tableApplyPowerQueryTableUpdatePlanCompletedEvent","this.id","_RegisterEventApplyPowerQueryTableUpdatePlanCompleted","_UnregisterEventApplyPowerQueryTableUpdatePlanCompleted"],["Changed",2,24,"MessageType.tableDataChangedEvent","this.id","_RegisterDataChangedEvent","_UnregisterDataChangedEvent"],["Filtered",0,6,"MessageType.tableFilteredEvent","this.id","_RegisterFilteredEvent","_UnregisterFilteredEvent"],["SelectionChanged",2,24,"MessageType.tableSelectionChangedEvent","this.id","_RegisterSelectionChangedEvent","_UnregisterSelectionChangedEvent"]]],["TableColumnCollection",1,[["count",3]],0,[["getCount",0,2,28,4]],[["getItem","TableColumn",1,18,0,4],["getItemAt","TableColumn",1,2,0,4],["add","TableColumn",3,8,0,2,0,0,56],["getItemOrNullObject","TableColumn",1,2,28,4],["addAsJson","TableColumn",3,0,39,2,0,0,50]],0,"TableColumn"],["TableColumn",0,[["id",3],["index",3],["values",1,0,0,2,11],["name",1,0,0,2,11],["valuesAsJson",1,39,0,2,50],["valuesAsJsonLocal",1,39,0,2,50],["msFormQuestionId",0,6,0,2,3]],[["filter","Filter",3,26,0,4]],[["delete",0,0,0,2,0,56]],[["getRange","Range",0,10,0,4],["getHeaderRowRange","Range",0,10,0,4],["getDataBodyRange","Range",0,10,0,4],["getTotalRowRange","Range",0,10,0,4]]],["TableRowCollection",1,[["count",3]],0,[["getCount",0,2,28,4],["deleteRows",1,0,32,2,0,50],["deleteRowsAt",2,0,32,2,0,43]],[["getItemAt","TableRow",1,2,0,4],["add","TableRow",3,8,0,2,0,0,56],["addAsJson","TableRow",3,0,39,2,0,0,50]],0,"TableRow"],["TableRow",0,[["index",3],["values",1,0,0,2,11],["valuesAsJson",1,39,0,2,50],["valuesAsJsonLocal",1,39,0,2,50]],0,[["delete",0,0,0,2,0,56]],[["getRange","Range",0,10,0,4]]],["DataValidation",0,[["type",3],["rule",1,0,0,2,13],["prompt",1,0,0,2,13],["errorAlert",1,0,0,2,13],["ignoreBlanks",1,0,0,2,13],["valid",3]],0,[["clear",0,0,0,2,0,13]],[["getInvalidCells","RangeAreas",0,10,18,4],["getInvalidCellsOrNullObject","RangeAreas",0,10,18,4]]],["RemoveDuplicatesResult",0,[["removed",3],["uniqueRemaining",3]]],["RangeFormat",0,[["wrapText",1,0,0,2,52],["horizontalAlignment",1,0,0,2,52],["verticalAlignment",1,0,0,2,52],["columnWidth",1,26,0,2,52],["rowHeight",1,26,0,2,52],["textOrientation",1,24,0,2,52],["useStandardHeight",1,24,0,2,61],["useStandardWidth",1,24,0,2,61],["readingOrder",1,18,0,2,3],["shrinkToFit",1,18,0,2,3],["indentLevel",1,18,0,2,52],["autoIndent",1,18,0,2,3]],[["fill","RangeFill",35,0,0,4],["font","RangeFont",35,0,0,4],["borders","RangeBorderCollection",51,0,0,4],["protection","FormatProtection",35,26,0,4]],[["autofitColumns",0,0,26,2,0,52],["autofitRows",0,0,26,2,0,52],["adjustIndent",1,0,19,2,0,56]]],["FormatProtection",0,[["locked",1,0,0,2,3],["formulaHidden",1,0,0,2,3]]],["RangeFill",0,[["color",1,0,0,2,52],["tintAndShade",1,18,0,2,3],["patternTintAndShade",1,18,0,2,3],["pattern",1,18,0,2,3],["patternColor",1,18,0,2,3]],0,[["clear",0,0,0,2,0,52]]],["RangeBorder",0,[["sideIndex",3],["style",1,0,0,2,52],["weight",1,0,0,2,52],["color",1,0,0,2,52],["tintAndShade",1,18,0,2,3]]],["RangeBorderCollection",1,[["count",3],["tintAndShade",1,18,0,2,3]],0,0,[["getItem","RangeBorder",1,18,0,4],["getItemAt","RangeBorder",1,2,0,4]],0,"RangeBorder"],["RangeFont",0,[["name",1,0,0,2,52],["size",1,0,0,2,52],["color",1,0,0,2,25],["italic",1,0,0,2,52],["bold",1,0,0,2,52],["underline",1,0,0,2,52],["strikethrough",1,18,0,2,52],["subscript",1,18,0,2,3],["superscript",1,18,0,2,3],["tintAndShade",1,18,0,2,3]]],["ChartCollection",5,[["count",3]],0,[["getCount",0,2,28,4],["_RegisterAddedEvent",0,0,16,2,0,2],["_UnregisterAddedEvent",0,0,16,2,0,2],["_RegisterActivatedEvent",0,0,16,2,0,47],["_UnregisterActivatedEvent",0,0,16,2,0,47],["_RegisterDeactivatedEvent",0,0,16,2,0,47],["_UnregisterDeactivatedEvent",0,0,16,2,0,47],["_RegisterDeletedEvent",0,0,16,2,0,47],["_UnregisterDeletedEvent",0,0,16,2,0,47]],[["add","Chart",3,9,0,2,0,0,62],["getItemAt","Chart",1,2,0,4],["_GetItem","Chart",1,18,0,4],["getItem","Chart",1,2,0,4],["getItemOrNullObject","Chart",1,2,28,4]],0,"Chart",[["Activated",0,16,"MessageType.chartActivatedEvent","this._ParentObject.id","_RegisterActivatedEvent","_UnregisterActivatedEvent"],["Added",0,16,"MessageType.chartAddedEvent","this._ParentObject.id","_RegisterAddedEvent","_UnregisterAddedEvent"],["Deactivated",0,16,"MessageType.chartDeactivatedEvent","this._ParentObject.id","_RegisterDeactivatedEvent","_UnregisterDeactivatedEvent"],["Deleted",0,16,"MessageType.chartDeletedEvent","this._ParentObject.id","_RegisterDeletedEvent","_UnregisterDeletedEvent"]]],["Chart",0,[["name",1,0,0,2,57],["top",1,0,0,2,62],["left",1,0,0,2,62],["width",1,0,0,2,62],["height",1,0,0,2,62],["id",3,24],["showAllFieldButtons",1,24,0,2,62],["chartType",1,24,0,2,57],["showDataLabelsOverMaximum",1,16,0,2,17],["categoryLabelLevel",1,16,0,2,63],["style",1,16,0,2,17],["displayBlanksAs",1,16,0,2,17],["plotBy",1,16,0,2,57],["plotVisibleOnly",1,16,0,2,17],["seriesNameLevel",1,16,0,2,63]],[["title","ChartTitle",35,0,0,4],["dataLabels","ChartDataLabels",35,0,0,4],["legend","ChartLegend",35,0,0,4],["series","ChartSeriesCollection",19,0,0,4],["axes","ChartAxes",35,0,0,4],["format","ChartAreaFormat",35,0,0,4],["worksheet","Worksheet",2,26,0,4],["plotArea","ChartPlotArea",35,16,0,4],["pivotOptions","ChartPivotOptions",35,18,0,4]],[["setData",2,1,0,2,0,62],["delete",0,0,0,2,0,62],["setPosition",2,0,0,2,0,62],["getImage",3,2,26,4],["_RegisterActivatedEvent",0,0,16,2,0,2],["_UnregisterActivatedEvent",0,0,16,2,0,2],["_RegisterDeactivatedEvent",0,0,16,2,0,2],["_UnregisterDeactivatedEvent",0,0,16,2,0,2],["activate",0,2,18],["getDataRange",0,0,45,2,0,17],["getDataRangeOrNullObject",0,0,45,2,0,17],["getContextDOM",0,2,9,4]],[["getDataTable","ChartDataTable",0,2,31,4],["getDataTableOrNullObject","ChartDataTable",0,2,31,4],["copyTo","Chart",1,0,6,2],["moveTo","Chart",1,0,6,2]],0,0,[["Activated",0,16,"MessageType.chartActivatedEvent","this.id","_RegisterActivatedEvent","_UnregisterActivatedEvent"],["Deactivated",0,16,"MessageType.chartDeactivatedEvent","this.id","_RegisterDeactivatedEvent","_UnregisterDeactivatedEvent"]]],["ChartPivotOptions",0,[["showAxisFieldButtons",1,0,0,2,42],["showLegendFieldButtons",1,0,0,2,42],["showReportFilterFieldButtons",1,0,0,2,42],["showValueFieldButtons",1,0,0,2,42]]],["ChartAreaFormat",0,[["roundedCorners",1,18,0,2,57],["colorScheme",1,18,0,2,17]],[["fill","ChartFill",3,0,0,4],["font","ChartFont",35,0,0,4],["border","ChartBorder",35,24,0,4]]],["ChartSeriesCollection",1,[["count",3]],0,[["getCount",0,2,28,4]],[["getItemAt","ChartSeries",1,2,0,4],["add","ChartSeries",2,8,24,2,0,0,62]],0,"ChartSeries"],["ChartSeries",0,[["name",1,0,0,2,62],["chartType",1,24,0,2,23],["hasDataLabels",1,24,0,2,57],["filtered",1,24,0,2,17],["markerSize",1,24,0,2,62],["markerStyle",1,24,0,2,62],["showShadow",1,24,0,2,57],["markerBackgroundColor",1,24,0,2,62],["markerForegroundColor",1,24,0,2,62],["smooth",1,24,0,2,57],["plotOrder",1,24,0,2,57],["gapWidth",1,24,0,2,62],["doughnutHoleSize",1,24,0,2,62],["axisGroup",1,16,0,2,62],["explosion",1,16,0,2,57],["firstSliceAngle",1,16,0,2,57],["invertIfNegative",1,16,0,2,57],["bubbleScale",1,18,0,2,57],["secondPlotSize",1,16,0,2,57],["splitType",1,16,0,2,57],["splitValue",1,18,0,2,57],["varyByCategories",1,16,0,2,57],["showLeaderLines",1,18,0,2,17],["overlap",1,16,0,2,62],["gradientStyle",1,18,0,2,15],["gradientMinimumType",1,18,0,2,15],["gradientMidpointType",1,18,0,2,15],["gradientMaximumType",1,18,0,2,15],["gradientMinimumValue",1,18,0,2,15],["gradientMidpointValue",1,18,0,2,15],["gradientMaximumValue",1,18,0,2,15],["gradientMinimumColor",1,18,0,2,15],["gradientMidpointColor",1,18,0,2,15],["gradientMaximumColor",1,18,0,2,15],["parentLabelStrategy",1,18,0,2,57],["showConnectorLines",1,18,0,2,57],["invertColor",1,18,0,2,57]],[["points","ChartPointsCollection",19,0,0,4],["format","ChartSeriesFormat",35,0,0,4],["trendlines","ChartTrendlineCollection",19,24,0,4],["xErrorBars","ChartErrorBars",35,18,0,4],["yErrorBars","ChartErrorBars",35,18,0,4],["dataLabels","ChartDataLabels",35,16,0,4],["binOptions","ChartBinOptions",35,18,0,4],["mapOptions","ChartMapOptions",35,18,0,4],["boxwhiskerOptions","ChartBoxwhiskerOptions",35,18,0,4]],[["delete",0,0,24,2,0,62],["setXAxisValues",1,0,24,2,0,62],["setValues",1,0,24,2,0,62],["setBubbleSizes",1,0,24,2,0,17],["getDimensionValues",1,0,44,2,0,17],["getDimensionDataSourceString",1,0,58,2,0,17],["getDimensionDataSourceType",1,0,58,2,0,17]]],["ChartSeriesFormat",0,0,[["fill","ChartFill",3,0,0,4],["line","ChartLineFormat",35,0,0,4]]],["ChartPointsCollection",1,[["count",3]],0,[["getCount",0,2,28,4]],[["getItemAt","ChartPoint",1,2,0,4]],0,"ChartPoint"],["ChartPoint",0,[["value",3],["hasDataLabel",1,24,0,2,57],["markerStyle",1,24,0,2,62],["markerSize",1,24,0,2,62],["markerBackgroundColor",1,24,0,2,62],["markerForegroundColor",1,24,0,2,62]],[["format","ChartPointFormat",35,0,0,4],["dataLabel","ChartDataLabel",35,24,0,4]]],["ChartPointFormat",0,0,[["fill","ChartFill",3,0,0,4],["border","ChartBorder",35,24,0,4]]],["ChartAxes",0,0,[["categoryAxis","ChartAxis",35,0,0,4],["seriesAxis","ChartAxis",35,0,0,4],["valueAxis","ChartAxis",35,0,0,4]],0,[["getItem","ChartAxis",2,2,24,4]]],["ChartAxis",0,[["majorUnit",1,0,0,2,57],["maximum",1,0,0,2,62],["minimum",1,0,0,2,62],["minorUnit",1,0,0,2,57],["displayUnit",1,24,0,2,62],["showDisplayUnitLabel",1,24,0,2,57],["customDisplayUnit",3,24],["type",3,24],["minorTimeUnitScale",1,24,0,2,57],["majorTimeUnitScale",1,24,0,2,57],["baseTimeUnit",1,24,0,2,57],["categoryType",1,24,0,2,57],["axisGroup",3,24],["scaleType",1,24,0,2,57],["logBase",1,24,0,2,57],["left",3,24],["top",3,24],["height",3,24],["width",3,24],["reversePlotOrder",1,24,0,2,62],["crosses",1,24,0,2,62],["crossesAt",3,24],["visible",1,24,0,2,57],["isBetweenCategories",1,16,0,2,62],["majorTickMark",1,24,0,2,57],["minorTickMark",1,24,0,2,57],["tickMarkSpacing",1,24,0,2,57],["tickLabelPosition",1,24,0,2,62],["tickLabelSpacing",1,24,0,2,57],["alignment",1,16,0,2,57],["multiLevel",1,16,0,2,57],["numberFormat",1,16,0,2,57],["linkNumberFormat",1,18,0,2,57],["offset",1,16,0,2,57],["textOrientation",1,16,0,2,57],["position",1,16,0,2,62],["positionAt",3,16]],[["majorGridlines","ChartGridlines",35,0,0,4],["minorGridlines","ChartGridlines",35,0,0,4],["title","ChartAxisTitle",35,0,0,4],["format","ChartAxisFormat",35,0,0,4]],[["setCategoryNames",1,0,24,2,0,17],["setCustomDisplayUnit",1,0,24,2,0,17],["setCrossesAt",1,0,24,2,0,57],["setPositionAt",1,0,16,2,0,57]]],["ChartAxisFormat",0,0,[["font","ChartFont",35,0,0,4],["line","ChartLineFormat",35,0,0,4],["fill","ChartFill",3,16,0,4]]],["ChartAxisTitle",0,[["text",1,0,0,2,62],["visible",1,0,0,2,57],["textOrientation",1,44,0,2,57]],[["format","ChartAxisTitleFormat",35,0,0,4]],[["setFormula",1,0,16,2,0,57]]],["ChartAxisTitleFormat",0,0,[["font","ChartFont",35,0,0,4],["fill","ChartFill",3,16,0,4],["border","ChartBorder",35,16,0,4]]],["ChartDataLabels",0,[["position",1,0,0,2,57],["showValue",1,0,0,2,57],["showSeriesName",1,0,0,2,17],["showCategoryName",1,0,0,2,57],["showLegendKey",1,0,0,2,57],["showPercentage",1,0,0,2,57],["showBubbleSize",1,0,0,2,57],["separator",1,0,0,2,57],["numberFormat",1,16,0,2,57],["linkNumberFormat",1,18,0,2,57],["textOrientation",1,16,0,2,57],["autoText",1,16,0,2,57],["horizontalAlignment",1,16,0,2,57],["verticalAlignment",1,16,0,2,57],["showAsStickyCallout",3,33],["geometricShapeType",1,33,0,2,63],["showLeaderLines",1,33,0,2,63]],[["format","ChartDataLabelFormat",35,0,0,4],["leaderLines","ChartLeaderLines",35,33,0,4]]],["ChartDataLabel",0,[["position",1,0,0,2,57],["showValue",1,0,0,2,57],["showSeriesName",1,0,0,2,57],["showCategoryName",1,0,0,2,57],["showLegendKey",1,0,0,2,57],["showPercentage",1,0,0,2,57],["showBubbleSize",1,0,0,2,57],["separator",1,0,0,2,57],["top",1,16,0,2,57],["left",1,16,0,2,57],["width",3,16],["height",3,16],["formula",1,16,0,2,57],["textOrientation",1,16,0,2,57],["horizontalAlignment",1,16,0,2,57],["verticalAlignment",1,16,0,2,57],["text",1,16,0,2,57],["autoText",1,16,0,2,57],["numberFormat",1,16,0,2,57],["linkNumberFormat",1,18,0,2,57],["geometricShapeType",1,33,0,2,63],["showAsStickyCallout",3,33,0,2,63]],[["format","ChartDataLabelFormat",35,16,0,4]],[["setWidth",1,0,33,2,0,63],["setHeight",1,0,33,2,0,63]],[["getSubstring","ChartFormatString",2,2,33,4],["getTailAnchor","ChartDataLabelAnchor",0,2,33,4]]],["ChartDataLabelFormat",0,0,[["font","ChartFont",35,0,0,4],["fill","ChartFill",3,0,0,4],["border","ChartBorder",35,16,0,4]]],["ChartDataLabelAnchor",0,[["left",1,0,0,2,63],["top",1,0,0,2,63]]],["ChartDataTable",0,[["visible",1,0,0,2,57],["showLegendKey",1,0,0,2,57],["showHorizontalBorder",1,0,0,2,57],["showVerticalBorder",1,0,0,2,57],["showOutlineBorder",1,0,0,2,57]],[["format","ChartDataTableFormat",35,0,0,4]]],["ChartDataTableFormat",0,0,[["fill","ChartFill",3,0,0,4],["font","ChartFont",35,0,0,4],["border","ChartBorder",35,0,0,4]]],["ChartErrorBars",0,[["endStyleCap",1,0,0,2,57],["include",1,0,0,2,57],["type",1,0,0,2,57],["visible",1,0,0,2,57]],[["format","ChartErrorBarsFormat",35,0,0,4]]],["ChartErrorBarsFormat",0,0,[["line","ChartLineFormat",35,0,0,4]]],["ChartGridlines",0,[["visible",1,0,0,2,62]],[["format","ChartGridlinesFormat",35,0,0,4]]],["ChartGridlinesFormat",0,0,[["line","ChartLineFormat",35,0,0,4]]],["ChartLegend",0,[["visible",1,0,0,2,62],["position",1,0,0,2,62],["overlay",1,0,0,2,57],["left",1,24,0,2,57],["top",1,24,0,2,57],["width",1,24,0,2,57],["height",1,24,0,2,57],["showShadow",1,24,0,2,57]],[["format","ChartLegendFormat",35,0,0,4],["legendEntries","ChartLegendEntryCollection",19,24,0,4]]],["ChartLegendEntry",0,[["visible",1,0,0,2,57],["left",3,16],["top",3,16],["width",3,16],["height",3,16],["index",3,16]]],["ChartLegendEntryCollection",1,0,0,[["getCount",0,2,0,4]],[["getItemAt","ChartLegendEntry",1,2,0,4]],0,"ChartLegendEntry"],["ChartLegendFormat",0,0,[["font","ChartFont",35,0,0,4],["fill","ChartFill",3,0,0,4],["border","ChartBorder",35,16,0,4]]],["ChartMapOptions",0,[["level",1,0,0,2,15],["labelStrategy",1,0,0,2,15],["projectionType",1,0,0,2,15]]],["ChartTitle",0,[["visible",1,0,0,2,57],["text",1,0,0,2,62],["overlay",1,0,0,2,57],["horizontalAlignment",1,24,0,2,57],["top",1,24,0,2,57],["left",1,24,0,2,57],["width",3,24],["height",3,24],["verticalAlignment",1,24,0,2,57],["textOrientation",1,24,0,2,57],["position",1,24,0,2,57],["showShadow",1,24,0,2,57]],[["format","ChartTitleFormat",35,0,0,4]],[["setFormula",1,0,24,2,0,57]],[["getSubstring","ChartFormatString",2,2,24,4]]],["ChartFormatString",0,0,[["font","ChartFont",35,0,0,4]]],["ChartTitleFormat",0,0,[["font","ChartFont",35,0,0,4],["fill","ChartFill",3,0,0,4],["border","ChartBorder",35,24,0,4]]],["ChartFill",4,0,0,[["setSolidColor",1,0,0,2,0,62],["clear",0,0,0,2,0,57],["getSolidColor",0,0,39,2,0,62]]],["ChartBorder",0,[["color",1,0,0,2,62],["lineStyle",1,0,0,2,62],["weight",1,0,0,2,62]],0,[["clear",0,0,16,2,0,57]]],["ChartBinOptions",0,[["type",1,0,0,2,62],["width",1,0,0,2,62],["count",1,0,0,2,62],["allowOverflow",1,0,0,2,62],["allowUnderflow",1,0,0,2,62],["overflowValue",1,0,0,2,62],["underflowValue",1,0,0,2,62]]],["ChartBoxwhiskerOptions",0,[["showInnerPoints",1,0,0,2,57],["showOutlierPoints",1,0,0,2,57],["showMeanMarker",1,0,0,2,57],["showMeanLine",1,0,0,2,57],["quartileCalculation",1,0,0,2,57]]],["ChartLineFormat",0,[["color",1,0,0,2,62],["lineStyle",1,24,0,2,62],["weight",1,24,0,2,62]],0,[["clear",0,0,0,2,0,57]]],["ChartFont",0,[["bold",1,0,0,2,57],["color",1,0,0,2,62],["italic",1,0,0,2,57],["name",1,0,0,2,57],["size",1,0,0,2,57],["underline",1,0,0,2,57]]],["ChartTrendline",0,[["type",1,0,0,2,57],["polynomialOrder",1,0,0,2,57],["movingAveragePeriod",1,0,0,2,57],["_Id",2],["showEquation",1,16,0,2,57],["showRSquared",1,16,0,2,57],["forwardPeriod",1,16,0,2,57],["backwardPeriod",1,16,0,2,57],["name",1,0,0,2,57],["intercept",1,0,0,2,57]],[["format","ChartTrendlineFormat",35,0,0,4],["label","ChartTrendlineLabel",35,16,0,4]],[["delete",0,0,0,2,0,57]]],["ChartTrendlineCollection",1,0,0,[["getCount",0,2,0,4]],[["add","ChartTrendline",1,8,0,2,0,0,62],["getItem","ChartTrendline",1,18,0,4]],0,"ChartTrendline"],["ChartTrendlineFormat",0,0,[["line","ChartLineFormat",35,0,0,4]]],["ChartTrendlineLabel",0,[["top",1,0,0,2,57],["left",1,0,0,2,57],["width",3],["height",3],["formula",1,0,0,2,42],["textOrientation",1,0,0,2,57],["horizontalAlignment",1,0,0,2,57],["verticalAlignment",1,0,0,2,57],["text",1,0,0,2,17],["autoText",1,0,0,2,57],["numberFormat",1,0,0,2,57],["linkNumberFormat",1,18,0,2,57]],[["format","ChartTrendlineLabelFormat",35,0,0,4]]],["ChartTrendlineLabelFormat",0,0,[["fill","ChartFill",3,0,0,4],["border","ChartBorder",35,0,0,4],["font","ChartFont",35,0,0,4]]],["ChartPlotArea",0,[["left",1,0,0,2,57],["top",1,0,0,2,57],["width",1,0,0,2,57],["height",1,0,0,2,57],["insideLeft",1,0,0,2,57],["insideTop",1,0,0,2,57],["insideWidth",1,0,0,2,57],["insideHeight",1,0,0,2,57],["position",1,0,0,2,57]],[["format","ChartPlotAreaFormat",35,0,0,4]]],["ChartPlotAreaFormat",0,0,[["border","ChartBorder",35,0,0,4],["fill","ChartFill",3,0,0,4]]],["ChartLeaderLines",0,0,[["format","ChartLeaderLinesFormat",35,0,0,4,0,63]]],["ChartLeaderLinesFormat",0,0,[["line","ChartLineFormat",35,0,0,4,0,63]]],["VisualCollection",5,0,0,[["getDefinitions",0,2,0,4],["getPreview",4,2,0,4],["bootstrapAgaveVisual",0,0,0,2],["getCount",0,2,0,4],["_RegisterSelectionChangedEvent",0,2],["_UnregisterSelectionChangedEvent",0,2]],[["add","Visual",3,8,0,2],["_GetItem","Visual",1,18,0,4],["getSelectedOrNullObject","Visual",0,2,0,4]],0,"Visual",[["AgaveVisualUpdate",2,0,"MessageType.agaveVisualUpdateEvent","","null","null"],["SelectionChanged",0,0,"MessageType.visualSelectionChangedEvent","this._ParentObject.id","_RegisterSelectionChangedEvent","_UnregisterSelectionChangedEvent"]]],["Visual",0,[["id",3],["isSupportedInVisualTaskpane",3]],[["properties","VisualPropertyCollection",18,0,0,4]],[["delete",0,0,0,2],["getProperty",1,2,0,4],["setProperty",2,0,0,2],["changeDataSource",2,0,0,2],["getDataSource",0,2,0,4],["setPropertyToDefault",1,0,0,2],["_RegisterChangeEvent",0,2],["_UnregisterChangeEvent",0,2],["serializeProperties",0,2,0,4],["deserializeProperties",1,0,0,2],["addChildProperty",2,0,32,2],["removeChildProperty",2,0,32,2],["getDataFieldAssignments",0,0,9],["getDataConfig",0,2,9,4],["modifyDataConfig",1,0,9,2]],[["getChildProperties","VisualPropertyCollection",2,6,0,4],["getDataControllerClient","DataControllerClient",0,2,0,4],["getElementChildProperties","VisualPropertyCollection",3,6,0,4]],0,0,[["ChangeNotification",2,0,"MessageType.visualChangeEvent","this.id","_RegisterChangeEvent","_UnregisterChangeEvent"]]],["VisualProperty",0,[["type",3],["value",3],["id",3],["localizedName",3],["options",3],["localizedOptions",3],["hasDefault",3],["isDefault",3],["min",3],["max",3],["stepSize",3],["hideMeButShowChildrenUI",3],["expandableUI",3],["nextPropOnSameLine",3],["showResetUI",3],["size",3,32],["minSize",3,32],["maxSize",3,32],["index",3,32],["parentName",3,32]],0,[["getBoolMetaProperty",1,2,0,4]]],["VisualPropertyCollection",1,0,0,[["getCount",0,2,0,4]],[["getItem","VisualProperty",1,18,0,4],["getItemAt","VisualProperty",1,2,0,4]],0,"VisualProperty"],["DataControllerClient",0,0,0,[["getWells",0,2,0,4],["getAssociatedFields",1,2,0,4],["getAvailableFields",1,2,0,4],["addField",3,0,0,2],["removeField",2,0,0,2],["moveField",3,0,0,2]]],["RangeSort",0,0,0,[["apply",5,0,0,2,0,52]]],["TableSort",0,[["matchCase",3],["method",3],["fields",3]],0,[["apply",3,0,0,2,0,43],["clear",0,0,0,2,0,1],["reapply",0,0,0,2,0,50]]],["Filter",0,[["criteria",3]],0,[["apply",1,0,0,2,0,1],["clear",0,0,0,2,0,56],["applyBottomItemsFilter",1,0,0,2,0,56],["applyBottomPercentFilter",1,0,0,2,0,56],["applyCellColorFilter",1,0,0,2,0,56],["applyDynamicFilter",1,0,0,2,0,56],["applyFontColorFilter",1,0,0,2,0,56],["applyValuesFilter",1,0,0,2,0,56],["applyTopItemsFilter",1,0,0,2,0,56],["applyTopPercentFilter",1,0,0,2,0,56],["applyIconFilter",1,0,0,2,0,56],["applyCustomFilter",3,0,0,2,0,56]]],["AutoFilter",0,[["enabled",3],["isDataFiltered",3],["criteria",3]],0,[["apply",3,0,0,2,0,53],["reapply",0,0,0,2,0,43],["remove",0,0,0,2,0,43],["clearCriteria",0,0,0,2,0,43],["clearColumnCriteria",1,0,31,2,0,64]],[["getRange","Range",0,10,0,4],["getRangeOrNullObject","Range",0,10,0,4]]],["CultureInfo",0,[["name",3]],[["numberFormat","NumberFormatInfo",3,0,0,4],["datetimeFormat","DatetimeFormatInfo",3,44,0,4],["formulaCulture","FormulaCultureInfo",2,6,0,4]]],["NumberFormatInfo",0,[["numberDecimalSeparator",3],["numberGroupSeparator",3],["currencySymbol",3,48],["currencyDecimals",2,6],["currencyNegative",2,6],["fractionSeparator",2,6],["isCurrencySeparatedBySpace",2,6],["isCurrencySymbolLeading",2,6],["nonCurrencyNumberDecimals",2,6],["numberGrouping",2,6],["spaceBeforePercentage",2,6],["spaceInScientificNotation",2,6]]],["DatetimeFormatInfo",0,[["dateSeparator",3],["longDatePattern",3],["shortDatePattern",3],["timeSeparator",3],["longTimePattern",3],["amSymbol",2,6],["dateOrder",2,6],["dateSeparatorAlternative",2,6],["dayNameLong",2,6],["dayNameShort",2,6],["isAmPmSeparatedBySpace",2,6],["isClock24Hour",2,6],["isDayTwoDigits",2,6],["isHourTwoDigits",2,6],["isLongDateFormat",2,6],["isMonthTwoDigits",2,6],["isYearFourDigits",2,6],["monthNameLong",2,6],["monthNameShort",2,6],["pmSymbol",2,6],["timeSeparatorAlternative",2,6],["shortDateTimePattern",3,6]]],["CustomXmlPartScopedCollection",1,0,0,[["getCount",0,2,0,4]],[["getItem","CustomXmlPart",1,18,0,4],["getItemOrNullObject","CustomXmlPart",1,2,0,4],["getOnlyItem","CustomXmlPart",0,2,0,4],["getOnlyItemOrNullObject","CustomXmlPart",0,2,0,4]],0,"CustomXmlPart"],["CustomXmlPartCollection",1,0,0,[["getCount",0,2,0,4]],[["getItem","CustomXmlPart",1,18,0,4],["add","CustomXmlPart",1,8,0,2,0,0,13],["getByNamespace","CustomXmlPartScopedCollection",1,6,0,4],["getItemOrNullObject","CustomXmlPart",1,2,0,4]],0,"CustomXmlPart"],["CustomXmlPart",0,[["id",3],["namespaceUri",3]],0,[["delete",0,0,0,2,0,50],["getXml",0,2,0,4],["setXml",1,0,0,2,0,13]]],["_V1Api",0,0,0,[["bindingGetData",1,2,0,4],["getSelectedData",1,2,0,4],["gotoById",1,2,0,4],["bindingAddFromSelection",1,2],["bindingGetById",1,2,0,4],["bindingReleaseById",1,2],["bindingGetAll",0,2,0,4],["bindingAddFromNamedItem",1,2],["bindingAddFromPrompt",1,2],["bindingDeleteAllDataValues",1],["setSelectedData",1],["bindingClearFormats",1],["bindingSetData",1],["bindingSetFormats",1],["bindingSetTableOptions",1],["bindingAddRows",1],["bindingAddColumns",1],["getFilePropertiesAsync",0,2,22,4]]],["PivotTableScopedCollection",1,0,0,[["getCount",0,2,0,4]],[["getItem","PivotTable",1,18,0,4],["getFirst","PivotTable",0,10,0,4],["getItemOrNullObject","PivotTable",1,2,0,4],["getFirstOrNullObject","PivotTable",0,2,58,4]],0,"PivotTable"],["PivotTableCollection",5,0,0,[["refreshAll",0,0,0,2,0,25],["getCount",0,2,28,4],["_RegisterAddedEvent",0,0,9,2,0,2],["_RegisterDeletedEvent",0,0,9,2,0,2],["_UnregisterAddedEvent",0,0,9,2,0,2],["_UnregisterDeletedEvent",0,0,9,2,0,2]],[["getItem","PivotTable",1,18,0,4],["getItemOrNullObject","PivotTable",1,2,28,4],["add","PivotTable",3,8,16,2,0,0,25]],0,"PivotTable",[["Added",0,9,"MessageType.pivotTableAddedEvent","this._eventTargetId","_RegisterAddedEvent","_UnregisterAddedEvent"],["Deleted",0,9,"MessageType.pivotTableDeletedEvent","this._eventTargetId","_RegisterDeletedEvent","_UnregisterDeletedEvent"]]],["PivotTable",0,[["name",1,0,0,2,25],["id",3,29],["useCustomSortLists",1,18,0,2,25],["enableDataValueEditing",1,18,0,2,25],["refreshOnOpen",0,38,0,2,47],["allowMultipleFiltersPerField",0,44,0,2,25],["autoRefresh",0,6,0,2,65]],[["worksheet","Worksheet",2,0,0,4],["hierarchies","PivotHierarchyCollection",19,16,0,4],["rowHierarchies","RowColumnPivotHierarchyCollection",19,16,0,4],["columnHierarchies","RowColumnPivotHierarchyCollection",19,16,0,4],["dataHierarchies","DataPivotHierarchyCollection",19,16,0,4],["filterHierarchies","FilterPivotHierarchyCollection",19,16,0,4],["layout","PivotLayout",2,16,0,4]],[["refresh",0,0,0,2,0,25],["delete",0,0,16,2,0,25],["getDataSourceString",0,2,58,4],["getDataSourceType",0,2,58,4]],[["addDateGroup","PivotHierarchy",2,0,6,2,0,0,66]]],["PivotLayout",0,[["showColumnGrandTotals",1,0,0,2,25],["showRowGrandTotals",1,0,0,2,25],["enableFieldList",1,30,0,2,25],["subtotalLocation",1,0,0,2,25],["layoutType",1,0,0,2,25],["autoFormat",1,18,0,2,25],["preserveFormatting",1,18,0,2,25],["altTextDescription",0,38,0,2,47],["altTextTitle",0,38,0,2,47],["emptyCellText",0,38,0,2,47],["fillEmptyCells",0,38,0,2,47],["showFieldHeaders",0,38,0,2,47],["tabularValues",3,6],["tabularText",3,6],["tabularNumberFormat",3,6],["tabularNumberFormatLocal",3,6]],[["pivotStyle","PivotTableStyle",35,6,0,4]],[["setAutoSortOnCell",2,0,18,2,0,25],["setStyle",1,0,6,2,0,25],["displayBlankLineAfterEachItem",1,0,38,2,0,47],["repeatAllItemLabels",1,0,38,2,0,47]],[["getRange","Range",0,3],["getRowLabelRange","Range",0,3],["getColumnLabelRange","Range",0,3],["getFilterAxisRange","Range",0,3],["getDataBodyRange","Range",0,3],["getCell","Range",3,2,6],["getPivotItems","PivotItemCollection",2,4,18,2,0,0,1],["getDataHierarchy","DataPivotHierarchy",1,3,18]]],["PivotHierarchyCollection",1,0,0,[["getCount",0,2,0,4]],[["getItem","PivotHierarchy",1,18,0,4],["getItemOrNullObject","PivotHierarchy",1,2,0,4]],0,"PivotHierarchy"],["PivotHierarchy",0,[["id",3],["name",1,0,0,2,25]],[["fields","PivotFieldCollection",19,0,0,4]]],["RowColumnPivotHierarchyCollection",1,0,0,[["getCount",0,2,0,4],["remove",1,0,0,2,0,25]],[["getItem","RowColumnPivotHierarchy",1,18,0,4],["getItemOrNullObject","RowColumnPivotHierarchy",1,2,0,4],["add","RowColumnPivotHierarchy",1,8,0,2,0,0,25]],0,"RowColumnPivotHierarchy"],["RowColumnPivotHierarchy",0,[["id",3],["name",1,0,0,2,25],["position",1,0,0,2,25]],[["fields","PivotFieldCollection",19,0,0,4]],[["setToDefault",0,0,0,2,0,25]]],["FilterPivotHierarchyCollection",1,0,0,[["getCount",0,2,0,4],["remove",1,0,0,2,0,25]],[["getItem","FilterPivotHierarchy",1,18,0,4],["getItemOrNullObject","FilterPivotHierarchy",1,2,0,4],["add","FilterPivotHierarchy",1,8,0,2,0,0,25]],0,"FilterPivotHierarchy"],["FilterPivotHierarchy",0,[["id",3],["name",1,0,0,2,25],["position",1,0,0,2,25],["enableMultipleFilterItems",1,0,0,2,25]],[["fields","PivotFieldCollection",19,0,0,4]],[["setToDefault",0,0,0,2,0,25]]],["DataPivotHierarchyCollection",1,0,0,[["getCount",0,2,0,4],["remove",1,0,0,2,0,25]],[["getItem","DataPivotHierarchy",1,18,0,4],["getItemOrNullObject","DataPivotHierarchy",1,2,0,4],["add","DataPivotHierarchy",1,8,0,2,0,0,25]],0,"DataPivotHierarchy"],["DataPivotHierarchy",0,[["id",3],["name",1,0,0,2,25],["position",1,0,0,2,25],["numberFormat",1,0,0,2,25],["summarizeBy",1,0,0,2,25],["showAs",1,0,0,2,25]],[["field","PivotField",35,0,0,4]],[["setToDefault",0,0,0,2,0,25]]],["PivotFieldCollection",1,0,0,[["getCount",0,2,0,4]],[["getItem","PivotField",1,18,0,4],["getItemOrNullObject","PivotField",1,2,0,4]],0,"PivotField"],["PivotField",0,[["id",3],["name",1,0,0,2,25],["subtotals",1,0,0,2,25],["showAllItems",1,0,0,2,25]],[["items","PivotItemCollection",19,0,0,4]],[["sortByLabels",1,1,0,2,0,25],["sortByValues",3,0,18,2,0,25],["applyFilter",1,0,44,2,0,25],["clearAllFilters",0,0,44,2,0,25],["clearFilter",1,0,44,2,0,25],["getFilters",0,0,44,2,0,1],["isFiltered",1,0,44,2,0,1]]],["PivotItemCollection",1,0,0,[["getCount",0,2,0,4]],[["getItem","PivotItem",1,18,0,4],["getItemOrNullObject","PivotItem",1,2,0,4]],0,"PivotItem"],["PivotItem",0,[["id",3],["name",1,0,0,2,25],["isExpanded",1,0,0,2,25],["visible",1,0,0,2,25]]],["WorksheetCustomProperty",0,[["key",3],["value",1,0,0,2,11],["_Id",2]],0,[["delete",0,0,0,2,0,11]]],["WorksheetCustomPropertyCollection",1,0,0,[["getCount",0,2,0,4]],[["getItem","WorksheetCustomProperty",1,18,0,4],["getItemOrNullObject","WorksheetCustomProperty",1,0,0,2,0,0,11],["add","WorksheetCustomProperty",2,8,0,2,0,0,11]],0,"WorksheetCustomProperty"],["DocumentProperties",0,[["title",1,0,0,2,42],["subject",1,0,0,2,42],["author",1,0,0,2,42],["keywords",1,0,0,2,42],["comments",1,0,0,2,42],["lastAuthor",3],["revisionNumber",1,0,0,2,42],["creationDate",11],["category",1,0,0,2,42],["manager",1,0,0,2,42],["company",1,0,0,2,42]],[["custom","CustomPropertyCollection",19,0,0,4]]],["CustomProperty",0,[["key",3],["value",1,0,0,2,67],["type",3]],0,[["delete",0,0,0,2,0,67]]],["CustomPropertyCollection",1,0,0,[["getCount",0,2,0,4],["deleteAll",0,0,0,2,0,67]],[["getItemOrNullObject","CustomProperty",1,2,0,4],["add","CustomProperty",2,8,0,2,0,0,67],["getItem","CustomProperty",1,18,0,4]],0,"CustomProperty"],["ConditionalFormatCollection",1,0,0,[["getCount",0,2,0,4],["clearAll",0,0,0,2,0,68]],[["getItemAt","ConditionalFormat",1,2,0,4],["add","ConditionalFormat",1,8,0,2,0,0,68],["getItem","ConditionalFormat",1,18,0,4],["getItemOrNullObject","ConditionalFormat",1,2,31,4]],0,"ConditionalFormat"],["ConditionalFormat",0,[["stopIfTrue",1,0,0,2,69],["priority",1,0,0,2,70],["type",3],["id",3]],[["dataBarOrNullObject","DataBarConditionalFormat",35,0,0,4],["dataBar","DataBarConditionalFormat",35,0,0,4],["customOrNullObject","CustomConditionalFormat",35,0,0,4],["custom","CustomConditionalFormat",35,0,0,4],["iconSet","IconSetConditionalFormat",35,0,0,4],["iconSetOrNullObject","IconSetConditionalFormat",35,0,0,4],["colorScale","ColorScaleConditionalFormat",35,0,0,4],["colorScaleOrNullObject","ColorScaleConditionalFormat",35,0,0,4],["topBottom","TopBottomConditionalFormat",35,0,0,4],["topBottomOrNullObject","TopBottomConditionalFormat",35,0,0,4],["preset","PresetCriteriaConditionalFormat",35,0,0,4],["presetOrNullObject","PresetCriteriaConditionalFormat",35,0,0,4],["textComparison","TextConditionalFormat",35,0,0,4],["textComparisonOrNullObject","TextConditionalFormat",35,0,0,4],["cellValue","CellValueConditionalFormat",35,0,0,4],["cellValueOrNullObject","CellValueConditionalFormat",35,0,0,4]],[["delete",0,0,0,2,0,71],["changeRuleToCellValue",1,0,48,2,0,69],["changeRuleToColorScale",0,0,48,2,0,69],["changeRuleToContainsText",1,0,48,2,0,69],["changeRuleToCustom",1,0,48,2,0,69],["changeRuleToDataBar",0,0,48,2,0,69],["changeRuleToIconSet",0,0,48,2,0,69],["changeRuleToPresetCriteria",1,0,48,2,0,69],["changeRuleToTopBottom",1,0,48,2,0,69],["setRanges",1,0,48,2,0,69]],[["getRange","Range",0,10,0,4],["getRangeOrNullObject","Range",0,10,0,4],["getRanges","RangeAreas",0,10,18,4]]],["DataBarConditionalFormat",0,[["showDataBarOnly",1,0,0,2,71],["barDirection",1,0,0,2,72],["axisFormat",1,0,0,2,72],["axisColor",1,0,0,2,72],["lowerBoundRule",1,0,0,2,72],["upperBoundRule",1,0,0,2,72]],[["positiveFormat","ConditionalDataBarPositiveFormat",35,0,0,4],["negativeFormat","ConditionalDataBarNegativeFormat",35,0,0,4]]],["ConditionalDataBarPositiveFormat",0,[["fillColor",1,0,0,2,71],["gradientFill",1,0,0,2,71],["borderColor",1,0,0,2,71]]],["ConditionalDataBarNegativeFormat",0,[["fillColor",1,0,0,2,71],["matchPositiveFillColor",1,0,0,2,71],["borderColor",1,0,0,2,71],["matchPositiveBorderColor",1,0,0,2,71]]],["CustomConditionalFormat",0,0,[["rule","ConditionalFormatRule",35,0,0,4],["format","ConditionalRangeFormat",35,0,0,4]]],["ConditionalFormatRule",0,[["formula",1,0,0,2,72],["formulaLocal",1,0,0,2,73],["formulaR1C1",1,0,0,2,69]]],["IconSetConditionalFormat",0,[["reverseIconOrder",1,0,0,2,72],["showIconOnly",1,0,0,2,72],["style",1,0,0,2,72],["criteria",1,0,0,2,72]]],["ColorScaleConditionalFormat",0,[["threeColorScale",3],["criteria",1,0,0,2,72]]],["TopBottomConditionalFormat",0,[["rule",1,0,0,2,72]],[["format","ConditionalRangeFormat",35,0,0,4]]],["PresetCriteriaConditionalFormat",0,[["rule",1,0,0,2,72]],[["format","ConditionalRangeFormat",35,0,0,4]]],["TextConditionalFormat",0,[["rule",1,0,0,2,72]],[["format","ConditionalRangeFormat",35,0,0,4]]],["CellValueConditionalFormat",0,[["rule",1,0,0,2,72]],[["format","ConditionalRangeFormat",35,0,0,4]]],["ConditionalRangeFormat",0,[["numberFormat",1,0,0,2,69]],[["fill","ConditionalRangeFill",35,0,0,4],["font","ConditionalRangeFont",35,0,0,4],["borders","ConditionalRangeBorderCollection",51,0,0,4]],[["clearFormat",0,0,48,2,0,69]]],["ConditionalRangeFont",0,[["color",1,0,0,2,74],["italic",1,0,0,2,74],["bold",1,0,0,2,74],["underline",1,0,0,2,74],["strikethrough",1,0,0,2,74]],0,[["clear",0,0,0,2,0,74]]],["ConditionalRangeFill",0,[["color",1,0,0,2,74]],0,[["clear",0,0,0,2,0,74]]],["ConditionalRangeBorder",0,[["sideIndex",3],["style",1,0,0,2,74],["color",1,0,0,2,74]]],["ConditionalRangeBorderCollection",1,[["count",3]],[["top","ConditionalRangeBorder",35,0,0,4],["bottom","ConditionalRangeBorder",35,0,0,4],["left","ConditionalRangeBorder",35,0,0,4],["right","ConditionalRangeBorder",35,0,0,4]],0,[["getItem","ConditionalRangeBorder",1,18,0,4],["getItemAt","ConditionalRangeBorder",1,2,0,4]],0,"ConditionalRangeBorder"],["NumberFormattingService",0,0,0,0,[["getFormatter","NumberFormatter",1,3]],0,0,0,"Microsoft.ExcelServices.NumberFormattingService",4],["NumberFormatter",0,[["isDateTime",3],["isPercent",3],["isCurrency",3],["isNumeric",3],["isText",3],["hasYear",3],["hasMonth",3],["hasDayOfWeek",3]],0,[["format",1,3]]],["CustomFunctionManager",36,[["status",2]],0,[["register",2,0,0,2,0,75],["setVisibilityInternal",1,0,6,2,"setVisibilityInternal",60],["getAllVisibleFunctionList",0,0,6,2,0,60]],0,0,0,0,"Microsoft.ExcelServices.CustomFunctionManager",4],["Style",0,[["builtIn",3],["formulaHidden",1,0,0,2,76],["horizontalAlignment",1,0,0,2,76],["includeAlignment",1,0,0,2,76],["includeBorder",1,0,0,2,76],["includeFont",1,0,0,2,76],["includeNumber",1,0,0,2,76],["includePatterns",1,0,0,2,76],["includeProtection",1,0,0,2,76],["indentLevel",1,0,0,2,76],["locked",1,0,0,2,76],["name",3],["numberFormat",1,0,0,2,76],["numberFormatLocal",1,0,0,2,76],["readingOrder",1,0,0,2,76],["shrinkToFit",1,0,0,2,76],["verticalAlignment",1,0,0,2,76],["wrapText",1,0,0,2,76],["textOrientation",5,16,0,2,76],["autoIndent",1,16,0,2,76]],[["borders","RangeBorderCollection",51,0,0,4],["font","RangeFont",35,0,0,4],["fill","RangeFill",35,0,0,4]],[["delete",0,0,0,2,0,20]]],["StyleCollection",1,0,0,[["add",1,0,0,2,0,20],["getCount",0,2,18,4]],[["getItem","Style",1,18,0,4],["getItemAt","Style",1,2,18,4],["getItemOrNullObject","Style",1,2,31,4]],0,"Style"],["TableStyleCollection",1,0,0,[["getCount",0,2,0,4],["setDefault",1,0,0,2,0,76]],[["getItem","TableStyle",1,18,0,4],["getItemOrNullObject","TableStyle",1,2,0,4],["add","TableStyle",2,8,0,2,0,0,76],["getDefault","TableStyle",0,0,0,2,0,0,1]],0,"TableStyle"],["TableStyle",0,[["name",1,0,0,2,76],["readOnly",3],["_Id",2]],0,[["delete",0,0,0,2,0,76]],[["duplicate","TableStyle",0,0,0,2,0,0,76]]],["PivotTableStyleCollection",1,0,0,[["getCount",0,2,0,4],["setDefault",1,0,0,2,0,76]],[["getItem","PivotTableStyle",1,18,0,4],["getItemOrNullObject","PivotTableStyle",1,2,0,4],["add","PivotTableStyle",2,8,0,2,0,0,76],["getDefault","PivotTableStyle",0,0,0,2,0,0,1]],0,"PivotTableStyle"],["PivotTableStyle",0,[["name",1,0,0,2,76],["readOnly",3],["_Id",2]],0,[["delete",0,0,0,2,0,76]],[["duplicate","PivotTableStyle",0,0,0,2,0,0,76]]],["SlicerStyleCollection",1,0,0,[["getCount",0,2,0,4],["setDefault",1,0,0,2,0,76]],[["getItem","SlicerStyle",1,18,0,4],["getItemOrNullObject","SlicerStyle",1,2,0,4],["add","SlicerStyle",2,8,0,2,0,0,76],["getDefault","SlicerStyle",0,0,0,2,0,0,1]],0,"SlicerStyle"],["SlicerStyle",0,[["name",1,0,0,2,76],["readOnly",3],["_Id",2]],0,[["delete",0,0,0,2,0,76]],[["duplicate","SlicerStyle",0,0,0,2,0,0,76]]],["TimelineStyleCollection",1,0,0,[["getCount",0,2,0,4],["setDefault",1,0,0,2,0,76]],[["getItem","TimelineStyle",1,18,0,4],["getItemOrNullObject","TimelineStyle",1,2,0,4],["add","TimelineStyle",2,8,0,2,0,0,76],["getDefault","TimelineStyle",0,0,0,2,0,0,1]],0,"TimelineStyle"],["TimelineStyle",0,[["name",1,0,0,2,76],["readOnly",3],["_Id",2]],0,[["delete",0,0,0,2,0,76]],[["duplicate","TimelineStyle",0,0,0,2,0,0,76]]],["InternalTest",0,0,0,[["delay",1],["triggerMessage",4,0,24],["_RegisterTestEvent",0,0,24,2,0,2],["_UnregisterTestEvent",0,0,24,2,0,2],["triggerTestEvent",2,0,24],["triggerPostProcess",0,0,24],["_RegisterTest1Event",0,0,24,2,0,2],["_UnregisterTest1Event",0,0,24,2,0,2],["triggerTestEventWithFilter",3,0,24],["firstPartyMethod",0,2,24,5],["_RegisterCustomFunctionExecutionBeginEvent",0,0,35,2,0,2],["_UnregisterCustomFunctionExecutionBeginEvent",0,0,35,2,0,2],["_RegisterCustomFunctionExecutionEndEvent",0,0,35,2,0,2],["_UnregisterCustomFunctionExecutionEndEvent",0,0,35,2,0,2],["unregisterAllCustomFunctionExecutionEvents",0,0,35],["updateRangeValueOnCurrentSheet",2,0,9,2],["triggerUserUndo",0,2,9],["triggerUserRedo",0,2,9],["enterCellEdit",1,0,18],["installCustomFunctionsFromCache",0,0,18],["recalc",2,0,18],["recalcBySolutionId",1,0,18],["safeForCellEditModeMethod",1,0,18],["exitCellEdit",0,0,18],["noPermissionMethod",1,0,18],["verifyCustomFunctionListExist",0,0,18],["enableContentWorkbookLink",0,0,9],["previewExecutionMethod",1,0,6,16],["setRapidJsonEnabled",1,0,6],["triggerVbaRecorderRecordingChanged",2,0,6]],0,0,0,[["CustomFunctionExecutionBeginEvent",0,35,"MessageType.customFunctionExecutionBeginEvent","","_RegisterCustomFunctionExecutionBeginEvent","_UnregisterCustomFunctionExecutionBeginEvent"],["CustomFunctionExecutionEndEvent",0,35,"MessageType.customFunctionExecutionEndEvent","","_RegisterCustomFunctionExecutionEndEvent","_UnregisterCustomFunctionExecutionEndEvent"],["Test1Event",2,24,"MessageType.test1Event","","_RegisterTest1Event","_UnregisterTest1Event"],["TestEvent",2,24,"MessageType.testEvent","","_RegisterTestEvent","_UnregisterTestEvent"]],"Microsoft.ExcelServices.InternalTest",4],["PageLayout",0,[["orientation",1,0,0,2,20],["paperSize",1,0,0,2,20],["blackAndWhite",1,0,0,2,20],["printErrors",1,0,0,2,20],["zoom",1,0,0,2,20],["centerHorizontally",1,0,0,2,20],["centerVertically",1,0,0,2,20],["printHeadings",1,0,0,2,20],["printGridlines",1,0,0,2,20],["leftMargin",1,0,0,2,20],["rightMargin",1,0,0,2,20],["topMargin",1,0,0,2,20],["bottomMargin",1,0,0,2,20],["headerMargin",1,0,0,2,20],["footerMargin",1,0,0,2,20],["printComments",1,0,0,2,20],["draftMode",1,0,0,2,20],["firstPageNumber",1,0,0,2,20],["printOrder",1,0,0,2,20],["printQuality",1,21,0,2,55],["alignMarginsHeaderFooter",1,21,0,2,55]],[["headersFooters","HeaderFooterGroup",35,0,0,4]],[["setPrintMargins",2,0,0,2,0,20],["setPrintArea",1,0,0,2,0,1],["setPrintTitleRows",1,0,0,2,0,1],["setPrintTitleColumns",1,0,0,2,0,1]],[["getPrintArea","RangeAreas",0,10,0,4],["getPrintAreaOrNullObject","RangeAreas",0,10,0,4],["getPrintTitleRows","Range",0,10,0,4],["getPrintTitleRowsOrNullObject","Range",0,10,0,4],["getPrintTitleColumns","Range",0,10,0,4],["getPrintTitleColumnsOrNullObject","Range",0,10,0,4]]],["HeaderFooter",0,[["leftHeader",1,0,0,2,20],["centerHeader",1,0,0,2,20],["rightHeader",1,0,0,2,20],["leftFooter",1,0,0,2,20],["centerFooter",1,0,0,2,20],["rightFooter",1,0,0,2,20]],[["leftHeaderPicture","HeaderFooterPicture",35,21,0,4],["centerHeaderPicture","HeaderFooterPicture",35,21,0,4],["rightHeaderPicture","HeaderFooterPicture",35,21,0,4],["leftFooterPicture","HeaderFooterPicture",35,21,0,4],["centerFooterPicture","HeaderFooterPicture",35,21,0,4],["rightFooterPicture","HeaderFooterPicture",35,21,0,4]]],["HeaderFooterGroup",0,[["state",1,0,0,2,20],["useSheetMargins",1,0,0,2,20],["useSheetScale",1,0,0,2,20]],[["defaultForAllPages","HeaderFooter",35,0,0,4],["firstPage","HeaderFooter",35,0,0,4],["evenPages","HeaderFooter",35,0,0,4],["oddPages","HeaderFooter",35,0,0,4]]],["HeaderFooterPicture",0,[["brightness",1,0,0,2,55],["colorType",1,0,0,2,55],["contrast",1,0,0,2,55],["cropBottom",1,0,0,2,55],["cropLeft",1,0,0,2,55],["cropRight",1,0,0,2,55],["cropTop",1,0,0,2,55],["filename",1,0,0,2,55],["height",1,0,0,2,55],["lockAspectRatio",1,0,0,2,55],["width",1,0,0,2,55]]],["PageBreak",0,[["_Id",2],["columnIndex",3],["rowIndex",3]],0,[["delete",0,0,0,2,0,1]],[["getCellAfterBreak","Range",0,10,0,4]]],["PageBreakCollection",1,0,0,[["removePageBreaks",0,0,0,2,0,1],["getCount",0,2,0,4]],[["getItem","PageBreak",1,18,0,4],["add","PageBreak",1,8,0,2,0,0,1]],0,"PageBreak"],["DataConnectionCollection",0,0,0,[["refreshAll"]],[["add","DataConnection",4,8,6,2,0,0,25]]],["RangeCollection",1,0,0,[["getCount",0,2,0,4]],[["getItemAt","Range",1,2,0,4]],0,"Range"],["RangeAreasCollection",1,0,0,[["getCount",0,2,0,4]],[["getItemAt","RangeAreas",1,2,0,4]],0,"RangeAreas"],["CommentCollection",5,0,0,[["getCount",0,2,0,4],["_RegisterAddedEvent",0,2,44],["_UnregisterAddedEvent",0,2,44],["_RegisterDeletedEvent",0,2,44],["_UnregisterDeletedEvent",0,2,44],["_RegisterChangedEvent",0,2,44],["_UnregisterChangedEvent",0,2,44]],[["getItem","Comment",1,18,0,4],["getItemAt","Comment",1,2,0,4],["add","Comment",3,8,0,2,0,0,50],["getItemByReplyId","Comment",1,2,0,4],["getItemByCell","Comment",1,2,0,4],["getItemOrNullObject","Comment",1,2,31,4]],0,"Comment",[["Added",0,44,"MessageType.commentAddedEvent","this._eventTargetId","_RegisterAddedEvent","_UnregisterAddedEvent"],["Changed",0,44,"MessageType.commentChangedEvent","this._eventTargetId","_RegisterChangedEvent","_UnregisterChangedEvent"],["Deleted",0,44,"MessageType.commentDeletedEvent","this._eventTargetId","_RegisterDeletedEvent","_UnregisterDeletedEvent"]]],["Comment",0,[["id",3],["content",1,0,0,2,50],["authorName",3],["authorEmail",3],["creationDate",11],["resolved",1,19,0,2,50],["richContent",3,19],["mentions",3,19],["contentType",3,44]],[["replies","CommentReplyCollection",19,0,0,4]],[["delete",0,0,0,2,0,50],["updateMentions",1,0,19,2,0,50]],[["getLocation","Range",0,10,0,4],["assignTask","DocumentTask",1,0,6,2,0,0,8],["getTask","DocumentTask",0,10,6,4],["getTaskOrNullObject","DocumentTask",0,10,6,4]]],["CommentReplyCollection",1,0,0,[["getCount",0,2,0,4]],[["add","CommentReply",2,8,0,2,0,0,50],["getItem","CommentReply",1,18,0,4],["getItemAt","CommentReply",1,2,0,4],["getItemOrNullObject","CommentReply",1,2,31,4]],0,"CommentReply"],["CommentReply",0,[["id",3],["content",1,0,0,2,50],["authorName",3],["authorEmail",3],["creationDate",11],["resolved",3,19],["richContent",3,19],["mentions",3,19],["contentType",3,44]],0,[["delete",0,0,0,2,0,50],["updateMentions",1,0,19,2,0,50]],[["getLocation","Range",0,10,0,4],["getParentComment","Comment",0,0,0,2,0,0,50],["assignTask","DocumentTask",1,0,6,2,0,0,8],["getTask","DocumentTask",0,10,6,4],["getTaskOrNullObject","DocumentTask",0,10,6,4]]],["ShapeCollection",5,0,0,[["getCount",0,2,0,4],["_RegisterAddedEvent",0,0,9,2,0,2],["_RegisterDeletedEvent",0,0,9,2,0,2],["_UnregisterAddedEvent",0,0,9,2,0,2],["_UnregisterDeletedEvent",0,0,9,2,0,2]],[["addImage","Shape",1,0,0,2,0,0,11],["_GetItem","Shape",1,18,0,4],["addGeometricShape","Shape",1,0,0,2,0,0,11],["addTextBox","Shape",1,0,0,2,0,0,11],["addSvg","Shape",1,0,6,2,0,0,11],["addGroup","Shape",1,0,0,2,0,0,11],["getItemAt","Shape",1,2,0,4],["getItem","Shape",1,2,0,4],["addLine","Shape",5,0,0,2,0,0,3],["getItemOrNullObject","Shape",1,2,31,4],["addLocalImageReference","Shape",1,0,6,2]],0,"Shape",[["Added",0,9,"MessageType.shapeAddedEvent","this._ParentObject.id","_RegisterAddedEvent","_UnregisterAddedEvent"],["Deleted",0,9,"MessageType.shapeDeletedEvent","this._ParentObject.id","_RegisterDeletedEvent","_UnregisterDeletedEvent"]]],["Shape",0,[["id",3],["name",1,0,0,2,77],["left",1,0,0,2,77],["top",1,0,0,2,77],["width",1,0,0,2,77],["height",1,0,0,2,77],["rotation",1,0,0,2,77],["zOrderPosition",3],["altTextTitle",1,0,0,2,77],["altTextDescription",1,0,0,2,62],["type",3],["lockAspectRatio",1,0,0,2,46],["placement",1,30,0,2,77],["geometricShapeType",1,0,0,2,11],["visible",1,0,0,2,77],["level",3],["connectionSiteCount",3],["scriptLink",1,6,0,2,8],["displayName",3,58]],[["geometricShape","GeometricShape",2,0,0,4],["image","Image",2,0,0,4],["textFrame","TextFrame",2,0,0,4],["fill","ShapeFill",35,0,0,4],["group","ShapeGroup",2,0,0,4],["parentGroup","Shape",2,0,0,4],["line","Line",2,0,0,4],["lineFormat","ShapeLineFormat",35,0,0,4]],[["setZOrder",1,0,0,2,0,77],["incrementLeft",1,0,0,2,0,46],["incrementTop",1,0,0,2,0,46],["incrementRotation",1,0,0,2,0,77],["scaleHeight",3,0,0,2,0,46],["scaleWidth",3,0,0,2,0,46],["delete",0,0,0,2,0,77],["getAsImage",1,0,0,2,0,3],["_RegisterActivatedEvent",0,0,0,2,0,2],["_UnregisterActivatedEvent",0,0,0,2,0,2],["_RegisterDeactivatedEvent",0,0,0,2,0,2],["_UnregisterDeactivatedEvent",0,0,0,2,0,2],["activate",0,0,9,2,0,12]],[["copyTo","Shape",1,8,30,2,0,"_GetShapeById",77],["_GetShapeById","Shape",1,2,30,4]],0,0,[["Activated",0,0,"MessageType.shapeActivatedEvent","this.id","_RegisterActivatedEvent","_UnregisterActivatedEvent"],["Deactivated",0,0,"MessageType.shapeDeactivatedEvent","this.id","_RegisterDeactivatedEvent","_UnregisterDeactivatedEvent"]]],["GeometricShape",0,[["id",3]],[["shape","Shape",2,0,0,4]]],["Image",0,[["id",3],["format",3,0,"format"]],[["shape","Shape",2,0,0,4]]],["ShapeGroup",0,[["id",3]],[["shapes","GroupShapeCollection",19,0,0,4],["shape","Shape",2,0,0,4]],[["ungroup",0,0,0,2,0,11]]],["GroupShapeCollection",1,0,0,[["getCount",0,2,0,4]],[["_GetItem","Shape",1,18,0,4],["getItemAt","Shape",1,2,0,4],["getItem","Shape",1,2,0,4],["getItemOrNullObject","Shape",1,2,31,4]],0,"Shape"],["Line",0,[["id",3],["connectorType",1,0,"connectorType",2,1],["beginArrowheadLength",1,0,0,2,1],["beginArrowheadStyle",1,0,0,2,1],["beginArrowheadWidth",1,0,0,2,1],["endArrowheadLength",1,0,0,2,1],["endArrowheadStyle",1,0,0,2,1],["endArrowheadWidth",1,0,0,2,1],["isBeginConnected",3],["beginConnectedSite",3],["isEndConnected",3],["endConnectedSite",3]],[["shape","Shape",2,0,0,4],["beginConnectedShape","Shape",2,0,0,4],["endConnectedShape","Shape",2,0,0,4]],[["connectBeginShape",2,0,0,2,0,1],["disconnectBeginShape",0,0,0,2,0,1],["connectEndShape",2,0,0,2,0,1],["disconnectEndShape",0,0,0,2,0,1]]],["ShapeFill",0,[["foregroundColor",1,0,0,2,11],["type",3],["transparency",1,0,0,2,11]],0,[["clear",0,0,0,2,0,11],["setSolidColor",1,0,0,2,0,11]]],["ShapeLineFormat",0,[["visible",1,0,0,2,11],["color",1,0,0,2,78],["style",1,0,0,2,11],["weight",1,0,0,2,11],["dashStyle",1,0,0,2,11],["transparency",1,0,0,2,11]]],["TextFrame",0,[["leftMargin",1,0,0,2,79],["rightMargin",1,0,0,2,79],["topMargin",1,0,0,2,79],["bottomMargin",1,0,0,2,79],["horizontalAlignment",1,0,0,2,79],["horizontalOverflow",1,0,0,2,79],["verticalAlignment",1,0,0,2,79],["verticalOverflow",1,0,0,2,79],["orientation",1,0,0,2,79],["readingOrder",1,0,0,2,79],["hasText",3],["autoSizeSetting",1,0,0,2,79]],[["textRange","TextRange",2,0,0,4]],[["deleteText",0,0,0,2,0,79]]],["TextRange",0,[["text",1,0,0,2,79]],[["font","ShapeFont",35,0,0,4]],0,[["getSubstring","TextRange",2,0,0,2,0,0,1]]],["ShapeFont",0,[["size",1,0,0,2,79],["name",1,0,0,2,79],["color",1,0,0,2,79],["bold",1,0,0,2,79],["italic",1,0,0,2,79],["underline",1,0,0,2,79]]],["Slicer",0,[["id",3],["name",1,0,0,2,76],["caption",1,0,0,2,1],["left",1,0,0,2,1],["top",1,0,0,2,1],["width",1,0,0,2,1],["height",1,0,0,2,1],["nameInFormula",1,6,0,2,76],["isFilterCleared",3],["style",1,0,0,2,80],["sortBy",1,0,0,2,80],["sortUsingCustomLists",1,9],["columnCount",1,9],["disableMoveResizeUI",1,9],["displayHeader",1,9],["rowHeight",1,9],["shapeId",2,9]],[["slicerItems","SlicerItemCollection",19,0,0,4],["worksheet","Worksheet",35,0,0,4],["slicerStyle","SlicerStyle",35,6,0,4]],[["delete",0,0,0,2,0,80],["clearFilters",0,0,0,2,0,1],["getSelectedItems",0,0,0,2,0,1],["selectItems",1,0,0,2,0,1],["activate",0,2,9],["setStyle",1,0,6,2,0,60]]],["SlicerCollection",1,0,0,[["getCount",0,2,0,4]],[["add","Slicer",3,8,0,2,0,0,80],["getItemAt","Slicer",1,2,0,4],["getItem","Slicer",1,18,0,4],["getItemOrNullObject","Slicer",1,2,0,4]],0,"Slicer"],["SlicerItem",0,[["key",3],["name",3],["isSelected",1,0,0,2,1],["hasData",3]]],["SlicerItemCollection",1,0,0,[["getCount",0,2,0,4]],[["getItemAt","SlicerItem",1,2,0,4],["getItem","SlicerItem",1,18,0,4],["getItemOrNullObject","SlicerItem",1,2,0,4]],0,"SlicerItem"],["Ribbon",0,[["activeTab",1,0,0,2,81]],0,[["executeCommand",2],["showTeachingCallout",3,0,0,2,0,81],["_RegisterCommandExecutedEvent",0,0,0,2,0,2],["_UnregisterCommandExecutedEvent",0,0,0,2,0,2],["showChartDialog",1,2,6,4]],0,0,0,[["CommandExecuted",0,0,"MessageType.ribbonCommandExecutedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterCommandExecutedEvent","_UnregisterCommandExecutedEvent"]]],["LinkedDataType",0,[["dataProvider",2],["serviceId",2],["lastRefreshed",10],["name",2],["periodicRefreshInterval",2],["refreshDataLoadWarnings",2],["refreshMode",2],["supportedRefreshModes",2],["refreshErrors",2]],0,[["requestRefresh",0,0,0,2],["requestSetRefreshMode",1,0,0,2]]],["LinkedDataTypeCollection",1,0,0,[["getCount",0,2,0,4],["requestRefreshAll",0,0,0,2],["_RegisterRefreshRequestCompletedEvent",0,2,0,4],["_UnregisterRefreshRequestCompletedEvent",0,2,0,4],["_RegisterRefreshModeChangedEvent",0,2,0,4],["_UnregisterRefreshModeChangedEvent",0,2,0,4],["_RegisterLinkedDataTypeAddedEvent",0,2,0,4],["_UnregisterLinkedDataTypeAddedEvent",0,2,0,4]],[["getItem","LinkedDataType",1,18,0,4],["getItemOrNullObject","LinkedDataType",1,0,0,2,0,0,1],["getItemAt","LinkedDataType",1,2,0,4]],0,"LinkedDataType",[["LinkedDataTypeAdded",0,0,"MessageType.linkedDataTypeLinkedDataTypeAddedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterLinkedDataTypeAddedEvent","_UnregisterLinkedDataTypeAddedEvent"],["RefreshModeChanged",0,0,"MessageType.linkedDataTypeRefreshModeChangedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterRefreshModeChangedEvent","_UnregisterRefreshModeChangedEvent"],["RefreshRequestCompleted",0,0,"MessageType.linkedDataTypeRefreshRequestCompletedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterRefreshRequestCompletedEvent","_UnregisterRefreshRequestCompletedEvent"]]],["LinkedEntityDataDomain",0,[["dataProvider",2],["id",2],["lastRefreshed",10],["loadFunctionId",2],["name",2],["periodicRefreshInterval",2],["refreshErrors",2],["refreshMode",0,0,0,2],["refreshModeWarnings",2],["serviceId",2],["supportedRefreshModes",2]],0,[["delete",0,0,0,2],["refresh",0,0,0,2]]],["LinkedEntityDataDomainCollection",1,0,0,[["_RegisterEventLinkedEntityDataDomainAdded",0,2,0,4],["_RegisterEventRefreshCompleted",0,2,0,4],["_RegisterEventRefreshModeChanged",0,2,0,4],["_UnregisterEventLinkedEntityDataDomainAdded",0,2,0,4],["_UnregisterEventRefreshCompleted",0,2,0,4],["_UnregisterEventRefreshModeChanged",0,2,0,4],["add",1,0,0,2],["getCount",0,2,0,4],["refreshAll",0,0,0,2]],[["getItem","LinkedEntityDataDomain",1,18,0,4],["getItemAt","LinkedEntityDataDomain",1,2,0,4],["getItemByName","LinkedEntityDataDomain",1,2,0,4],["getItemByNameOrNullObject","LinkedEntityDataDomain",1,2,0,4],["getItemOrNullObject","LinkedEntityDataDomain",1,2,0,4]],0,"LinkedEntityDataDomain",[["LinkedEntityDataDomainAdded",0,0,"MessageType.linkedEntityDataDomainLinkedEntityDataDomainAddedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterEventLinkedEntityDataDomainAdded","_UnregisterEventLinkedEntityDataDomainAdded"],["RefreshCompleted",0,0,"MessageType.linkedEntityDataDomainRefreshCompletedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterEventRefreshCompleted","_UnregisterEventRefreshCompleted"],["RefreshModeChanged",0,0,"MessageType.linkedEntityDataDomainRefreshModeChangedEvent","OfficeExtension.Constants.eventWorkbookId","_RegisterEventRefreshModeChanged","_UnregisterEventRefreshModeChanged"]]],["SheetView",0,[["name"]],0,[["activate"],["delete"]],[["duplicate","SheetView",1]]],["SheetViewCollection",1,0,0,[["getCount",0,2,0,4],["exit"]],[["add","SheetView",1,8],["enterTemporary","SheetView"],["getActive","SheetView"],["getItem","SheetView",1,18,0,4],["getItemAt","SheetView",1,2,0,4]],0,"SheetView"],["NamedSheetView",0,[["name",0,0,0,2,8]],0,[["activate",0,0,0,2,0,8],["delete",0,0,0,2,0,8]],[["duplicate","NamedSheetView",1,0,0,2,0,0,8]]],["NamedSheetViewCollection",1,0,0,[["getCount",0,2,0,4],["exit",0,0,0,2,0,8]],[["add","NamedSheetView",1,8,0,2,0,0,8],["enterTemporary","NamedSheetView",0,0,0,2,0,0,80],["getActive","NamedSheetView",0,0,0,2,0,0,8],["getItem","NamedSheetView",1,18,0,4],["getItemAt","NamedSheetView",1,2,0,4],["getItemOrNullObject","NamedSheetView",1,2,45,4]],0,"NamedSheetView"],["NoteCollection",1,0,0,[["getCount",0,2,0,4]],[["add","Note",2,8,0,2,0,0,82],["getItemAt","Note",1,2,0,4],["getItem","Note",1,18,0,4],["getItemOrNullObject","Note",1,2,0,4]],0,"Note"],["Note",0,[["content",1,0,0,2,82],["authorName",3],["visible",1,0,0,2,83],["height",1,0,0,2,82],["width",1,0,0,2,82],["_Id",2]],0,[["delete",0,0,0,2,0,82]],[["getLocation","Range",0,2,0,4]]],["Window",0,[["zoom",1,0,0,2,55]]],["FunctionResult",0,[["error",3],["value",3]]],["Functions",0,0,0,0,[["count","FunctionResult",1,72,0,2,0,0,82],["if","FunctionResult",3,8,0,2,0,0,82],["isNA","FunctionResult",1,8,0,2,0,0,82],["isError","FunctionResult",1,8,0,2,0,0,82],["sum","FunctionResult",1,72,0,2,0,0,82],["average","FunctionResult",1,72,0,2,0,0,82],["min","FunctionResult",1,72,0,2,0,0,82],["max","FunctionResult",1,72,0,2,0,0,82],["na","FunctionResult",0,8,0,2,0,0,82],["npv","FunctionResult",2,72,0,2,0,0,82],["dollar","FunctionResult",2,8,0,2,0,0,82],["fixed","FunctionResult",3,8,0,2,0,0,82],["sin","FunctionResult",1,8,0,2,0,0,82],["cos","FunctionResult",1,8,0,2,0,0,82],["tan","FunctionResult",1,8,0,2,0,0,82],["atan","FunctionResult",1,8,0,2,0,0,82],["pi","FunctionResult",0,8,0,2,0,0,82],["sqrt","FunctionResult",1,8,0,2,0,0,82],["exp","FunctionResult",1,8,0,2,0,0,82],["ln","FunctionResult",1,8,0,2,0,0,82],["log10","FunctionResult",1,8,0,2,0,0,82],["abs","FunctionResult",1,8,0,2,0,0,82],["int","FunctionResult",1,8,0,2,0,0,82],["sign","FunctionResult",1,8,0,2,0,0,82],["round","FunctionResult",2,8,0,2,0,0,82],["lookup","FunctionResult",3,8,0,2,0,0,82],["rept","FunctionResult",2,8,0,2,0,0,82],["mid","FunctionResult",3,8,0,2,0,0,82],["len","FunctionResult",1,8,0,2,0,0,82],["value","FunctionResult",1,8,0,2,0,0,82],["true","FunctionResult",0,8,0,2,0,0,82],["false","FunctionResult",0,8,0,2,0,0,82],["and","FunctionResult",1,72,0,2,0,0,82],["or","FunctionResult",1,72,0,2,0,0,82],["not","FunctionResult",1,8,0,2,0,0,82],["mod","FunctionResult",2,8,0,2,0,0,82],["dcount","FunctionResult",3,8,0,2,"DCount",0,82],["dsum","FunctionResult",3,8,0,2,"DSum",0,82],["daverage","FunctionResult",3,8,0,2,"DAverage",0,82],["dmin","FunctionResult",3,8,0,2,"DMin",0,82],["dmax","FunctionResult",3,8,0,2,"DMax",0,82],["dstDev","FunctionResult",3,8,0,2,"DStDev",0,82],["dvar","FunctionResult",3,8,0,2,"DVar",0,82],["text","FunctionResult",2,8,0,2,0,0,82],["pv","FunctionResult",5,8,0,2,0,0,82],["fv","FunctionResult",5,8,0,2,0,0,82],["nper","FunctionResult",5,8,0,2,"NPer",0,82],["pmt","FunctionResult",5,8,0,2,0,0,82],["rate","FunctionResult",6,8,0,2,0,0,82],["mirr","FunctionResult",3,8,0,2,"MIrr",0,82],["irr","FunctionResult",2,8,0,2,0,0,82],["rand","FunctionResult",0,8,0,2,0,0,82],["match","FunctionResult",3,8,0,2,0,0,82],["date","FunctionResult",3,8,0,2,0,0,82],["time","FunctionResult",3,8,0,2,0,0,82],["day","FunctionResult",1,8,0,2,0,0,82],["month","FunctionResult",1,8,0,2,0,0,82],["year","FunctionResult",1,8,0,2,0,0,82],["weekday","FunctionResult",2,8,0,2,0,0,82],["hour","FunctionResult",1,8,0,2,0,0,82],["minute","FunctionResult",1,8,0,2,0,0,82],["second","FunctionResult",1,8,0,2,0,0,82],["now","FunctionResult",0,8,0,2,0,0,82],["areas","FunctionResult",1,8,0,2,0,0,82],["rows","FunctionResult",1,8,0,2,0,0,82],["columns","FunctionResult",1,8,0,2,0,0,82],["type","FunctionResult",1,8,0,2,0,0,82],["atan2","FunctionResult",2,8,0,2,0,0,82],["asin","FunctionResult",1,8,0,2,0,0,82],["acos","FunctionResult",1,8,0,2,0,0,82],["choose","FunctionResult",2,72,0,2,0,0,82],["hlookup","FunctionResult",4,8,0,2,"HLookup",0,82],["vlookup","FunctionResult",4,8,0,2,"VLookup",0,82],["isref","FunctionResult",1,8,0,2,0,0,82],["log","FunctionResult",2,8,0,2,0,0,82],["char","FunctionResult",1,8,0,2,0,0,82],["lower","FunctionResult",1,8,0,2,0,0,82],["upper","FunctionResult",1,8,0,2,0,0,82],["proper","FunctionResult",1,8,0,2,0,0,82],["left","FunctionResult",2,8,0,2,0,0,82],["right","FunctionResult",2,8,0,2,0,0,82],["exact","FunctionResult",2,8,0,2,0,0,82],["trim","FunctionResult",1,8,0,2,0,0,82],["replace","FunctionResult",4,8,0,2,0,0,82],["substitute","FunctionResult",4,8,0,2,0,0,82],["code","FunctionResult",1,8,0,2,0,0,82],["find","FunctionResult",3,8,0,2,0,0,82],["isErr","FunctionResult",1,8,0,2,0,0,82],["isText","FunctionResult",1,8,0,2,0,0,82],["isNumber","FunctionResult",1,8,0,2,0,0,82],["t","FunctionResult",1,8,0,2,"T",0,82],["n","FunctionResult",1,8,0,2,"N",0,82],["datevalue","FunctionResult",1,8,0,2,0,0,82],["timevalue","FunctionResult",1,8,0,2,0,0,82],["sln","FunctionResult",3,8,0,2,0,0,82],["syd","FunctionResult",4,8,0,2,0,0,82],["ddb","FunctionResult",5,8,0,2,0,0,82],["clean","FunctionResult",1,8,0,2,0,0,82],["ipmt","FunctionResult",6,8,0,2,0,0,82],["ppmt","FunctionResult",6,8,0,2,0,0,82],["countA","FunctionResult",1,72,0,2,0,0,82],["product","FunctionResult",1,72,0,2,0,0,82],["fact","FunctionResult",1,8,0,2,0,0,82],["dproduct","FunctionResult",3,8,0,2,"DProduct",0,82],["isNonText","FunctionResult",1,8,0,2,0,0,82],["dstDevP","FunctionResult",3,8,0,2,"DStDevP",0,82],["dvarP","FunctionResult",3,8,0,2,"DVarP",0,82],["trunc","FunctionResult",2,8,0,2,0,0,82],["isLogical","FunctionResult",1,8,0,2,0,0,82],["dcountA","FunctionResult",3,8,0,2,"DCountA",0,82],["usdollar","FunctionResult",2,8,0,2,"USDollar",0,82],["findB","FunctionResult",3,8,0,2,0,0,82],["replaceB","FunctionResult",4,8,0,2,0,0,82],["leftb","FunctionResult",2,8,0,2,0,0,82],["rightb","FunctionResult",2,8,0,2,0,0,82],["midb","FunctionResult",3,8,0,2,0,0,82],["lenb","FunctionResult",1,8,0,2,0,0,82],["roundUp","FunctionResult",2,8,0,2,0,0,82],["roundDown","FunctionResult",2,8,0,2,0,0,82],["asc","FunctionResult",1,8,0,2,0,0,82],["dbcs","FunctionResult",1,8,0,2,0,0,82],["days360","FunctionResult",3,8,0,2,0,0,82],["today","FunctionResult",0,8,0,2,0,0,82],["vdb","FunctionResult",7,8,0,2,0,0,82],["median","FunctionResult",1,72,0,2,0,0,82],["sinh","FunctionResult",1,8,0,2,0,0,82],["cosh","FunctionResult",1,8,0,2,0,0,82],["tanh","FunctionResult",1,8,0,2,0,0,82],["asinh","FunctionResult",1,8,0,2,0,0,82],["acosh","FunctionResult",1,8,0,2,0,0,82],["atanh","FunctionResult",1,8,0,2,0,0,82],["dget","FunctionResult",3,8,0,2,"DGet",0,82],["db","FunctionResult",5,8,0,2,0,0,82],["error_Type","FunctionResult",1,8,0,2,0,0,82],["aveDev","FunctionResult",1,72,0,2,0,0,82],["gammaLn","FunctionResult",1,8,0,2,0,0,82],["combin","FunctionResult",2,8,0,2,0,0,82],["even","FunctionResult",1,8,0,2,0,0,82],["fisher","FunctionResult",1,8,0,2,0,0,82],["fisherInv","FunctionResult",1,8,0,2,0,0,82],["standardize","FunctionResult",3,8,0,2,0,0,82],["odd","FunctionResult",1,8,0,2,0,0,82],["permut","FunctionResult",2,8,0,2,0,0,82],["devSq","FunctionResult",1,72,0,2,0,0,82],["geoMean","FunctionResult",1,72,0,2,0,0,82],["harMean","FunctionResult",1,72,0,2,0,0,82],["sumSq","FunctionResult",1,72,0,2,0,0,82],["kurt","FunctionResult",1,72,0,2,0,0,82],["skew","FunctionResult",1,72,0,2,0,0,82],["large","FunctionResult",2,8,0,2,0,0,82],["small","FunctionResult",2,8,0,2,0,0,82],["trimMean","FunctionResult",2,8,0,2,0,0,82],["concatenate","FunctionResult",1,72,0,2,0,0,82],["power","FunctionResult",2,8,0,2,0,0,82],["radians","FunctionResult",1,8,0,2,0,0,82],["degrees","FunctionResult",1,8,0,2,0,0,82],["subtotal","FunctionResult",2,72,0,2,0,0,82],["sumIf","FunctionResult",3,8,0,2,0,0,82],["countIf","FunctionResult",2,8,0,2,0,0,82],["countBlank","FunctionResult",1,8,0,2,0,0,82],["ispmt","FunctionResult",4,8,0,2,0,0,82],["roman","FunctionResult",2,8,0,2,0,0,82],["hyperlink","FunctionResult",2,8,0,2,0,0,82],["averageA","FunctionResult",1,72,0,2,0,0,82],["maxA","FunctionResult",1,72,0,2,0,0,82],["minA","FunctionResult",1,72,0,2,0,0,82],["stDevPA","FunctionResult",1,72,0,2,0,0,82],["varPA","FunctionResult",1,72,0,2,0,0,82],["stDevA","FunctionResult",1,72,0,2,0,0,82],["varA","FunctionResult",1,72,0,2,0,0,82],["bahtText","FunctionResult",1,8,0,2,0,0,82],["hex2Bin","FunctionResult",2,8,0,2,0,0,82],["hex2Dec","FunctionResult",1,8,0,2,0,0,82],["hex2Oct","FunctionResult",2,8,0,2,0,0,82],["dec2Bin","FunctionResult",2,8,0,2,0,0,82],["dec2Hex","FunctionResult",2,8,0,2,0,0,82],["dec2Oct","FunctionResult",2,8,0,2,0,0,82],["oct2Bin","FunctionResult",2,8,0,2,0,0,82],["oct2Hex","FunctionResult",2,8,0,2,0,0,82],["oct2Dec","FunctionResult",1,8,0,2,0,0,82],["bin2Dec","FunctionResult",1,8,0,2,0,0,82],["bin2Oct","FunctionResult",2,8,0,2,0,0,82],["bin2Hex","FunctionResult",2,8,0,2,0,0,82],["imSub","FunctionResult",2,8,0,2,0,0,82],["imDiv","FunctionResult",2,8,0,2,0,0,82],["imPower","FunctionResult",2,8,0,2,0,0,82],["imAbs","FunctionResult",1,8,0,2,0,0,82],["imSqrt","FunctionResult",1,8,0,2,0,0,82],["imLn","FunctionResult",1,8,0,2,0,0,82],["imLog2","FunctionResult",1,8,0,2,0,0,82],["imLog10","FunctionResult",1,8,0,2,0,0,82],["imSin","FunctionResult",1,8,0,2,0,0,82],["imCos","FunctionResult",1,8,0,2,0,0,82],["imExp","FunctionResult",1,8,0,2,0,0,82],["imArgument","FunctionResult",1,8,0,2,0,0,82],["imConjugate","FunctionResult",1,8,0,2,0,0,82],["imaginary","FunctionResult",1,8,0,2,0,0,82],["imReal","FunctionResult",1,8,0,2,0,0,82],["complex","FunctionResult",3,8,0,2,0,0,82],["imSum","FunctionResult",1,72,0,2,0,0,82],["imProduct","FunctionResult",1,72,0,2,0,0,82],["seriesSum","FunctionResult",4,8,0,2,0,0,82],["factDouble","FunctionResult",1,8,0,2,0,0,82],["sqrtPi","FunctionResult",1,8,0,2,0,0,82],["quotient","FunctionResult",2,8,0,2,0,0,82],["delta","FunctionResult",2,8,0,2,0,0,82],["geStep","FunctionResult",2,8,0,2,0,0,82],["isEven","FunctionResult",1,8,0,2,0,0,82],["isOdd","FunctionResult",1,8,0,2,0,0,82],["mround","FunctionResult",2,8,0,2,"MRound",0,82],["erf","FunctionResult",2,8,0,2,0,0,82],["erfC","FunctionResult",1,8,0,2,0,0,82],["besselJ","FunctionResult",2,8,0,2,0,0,82],["besselK","FunctionResult",2,8,0,2,0,0,82],["besselY","FunctionResult",2,8,0,2,0,0,82],["besselI","FunctionResult",2,8,0,2,0,0,82],["xirr","FunctionResult",3,8,0,2,0,0,82],["xnpv","FunctionResult",3,8,0,2,0,0,82],["priceMat","FunctionResult",6,8,0,2,0,0,82],["yieldMat","FunctionResult",6,8,0,2,0,0,82],["intRate","FunctionResult",5,8,0,2,0,0,82],["received","FunctionResult",5,8,0,2,0,0,82],["disc","FunctionResult",5,8,0,2,0,0,82],["priceDisc","FunctionResult",5,8,0,2,0,0,82],["yieldDisc","FunctionResult",5,8,0,2,0,0,82],["tbillEq","FunctionResult",3,8,0,2,"TBillEq",0,82],["tbillPrice","FunctionResult",3,8,0,2,"TBillPrice",0,82],["tbillYield","FunctionResult",3,8,0,2,"TBillYield",0,82],["price","FunctionResult",7,8,0,2,0,0,82],["yield","FunctionResult",7,8,0,2,0,0,82],["dollarDe","FunctionResult",2,8,0,2,0,0,82],["dollarFr","FunctionResult",2,8,0,2,0,0,82],["nominal","FunctionResult",2,8,0,2,0,0,82],["effect","FunctionResult",2,8,0,2,0,0,82],["cumPrinc","FunctionResult",6,8,0,2,0,0,82],["cumIPmt","FunctionResult",6,8,0,2,0,0,82],["edate","FunctionResult",2,8,0,2,"EDate",0,82],["eoMonth","FunctionResult",2,8,0,2,0,0,82],["yearFrac","FunctionResult",3,8,0,2,0,0,82],["coupDayBs","FunctionResult",4,8,0,2,0,0,82],["coupDays","FunctionResult",4,8,0,2,0,0,82],["coupDaysNc","FunctionResult",4,8,0,2,0,0,82],["coupNcd","FunctionResult",4,8,0,2,0,0,82],["coupNum","FunctionResult",4,8,0,2,0,0,82],["coupPcd","FunctionResult",4,8,0,2,0,0,82],["duration","FunctionResult",6,8,0,2,0,0,82],["mduration","FunctionResult",6,8,0,2,"MDuration",0,82],["oddLPrice","FunctionResult",8,8,0,2,0,0,82],["oddLYield","FunctionResult",8,8,0,2,0,0,82],["oddFPrice","FunctionResult",9,8,0,2,0,0,82],["oddFYield","FunctionResult",9,8,0,2,0,0,82],["randBetween","FunctionResult",2,8,0,2,0,0,82],["weekNum","FunctionResult",2,8,0,2,0,0,82],["amorDegrc","FunctionResult",7,8,0,2,0,0,82],["amorLinc","FunctionResult",7,8,0,2,0,0,82],["convert","FunctionResult",3,8,0,2,0,0,82],["accrInt","FunctionResult",8,8,0,2,0,0,82],["accrIntM","FunctionResult",5,8,0,2,0,0,82],["workDay","FunctionResult",3,8,0,2,0,0,82],["networkDays","FunctionResult",3,8,0,2,0,0,82],["gcd","FunctionResult",1,72,0,2,0,0,82],["multiNomial","FunctionResult",1,72,0,2,0,0,82],["lcm","FunctionResult",1,72,0,2,0,0,82],["fvschedule","FunctionResult",2,8,0,2,"FVSchedule",0,82],["countIfs","FunctionResult",1,72,0,2,0,0,82],["sumIfs","FunctionResult",2,72,0,2,0,0,82],["averageIf","FunctionResult",3,8,0,2,0,0,82],["averageIfs","FunctionResult",2,72,0,2,0,0,82],["binom_Dist","FunctionResult",4,8,0,2,0,0,82],["binom_Inv","FunctionResult",3,8,0,2,0,0,82],["confidence_Norm","FunctionResult",3,8,0,2,0,0,82],["confidence_T","FunctionResult",3,8,0,2,0,0,82],["expon_Dist","FunctionResult",3,8,0,2,0,0,82],["gamma_Dist","FunctionResult",4,8,0,2,0,0,82],["gamma_Inv","FunctionResult",3,8,0,2,0,0,82],["norm_Dist","FunctionResult",4,8,0,2,0,0,82],["norm_Inv","FunctionResult",3,8,0,2,0,0,82],["percentile_Exc","FunctionResult",2,8,0,2,0,0,82],["percentile_Inc","FunctionResult",2,8,0,2,0,0,82],["percentRank_Exc","FunctionResult",3,8,0,2,0,0,82],["percentRank_Inc","FunctionResult",3,8,0,2,0,0,82],["poisson_Dist","FunctionResult",3,8,0,2,0,0,82],["quartile_Exc","FunctionResult",2,8,0,2,0,0,82],["quartile_Inc","FunctionResult",2,8,0,2,0,0,82],["rank_Avg","FunctionResult",3,8,0,2,0,0,82],["rank_Eq","FunctionResult",3,8,0,2,0,0,82],["stDev_S","FunctionResult",1,72,0,2,0,0,82],["stDev_P","FunctionResult",1,72,0,2,0,0,82],["t_Dist","FunctionResult",3,8,0,2,0,0,82],["t_Dist_2T","FunctionResult",2,8,0,2,0,0,82],["t_Dist_RT","FunctionResult",2,8,0,2,0,0,82],["t_Inv","FunctionResult",2,8,0,2,0,0,82],["t_Inv_2T","FunctionResult",2,8,0,2,0,0,82],["var_S","FunctionResult",1,72,0,2,0,0,82],["var_P","FunctionResult",1,72,0,2,0,0,82],["weibull_Dist","FunctionResult",4,8,0,2,0,0,82],["networkDays_Intl","FunctionResult",4,8,0,2,0,0,82],["workDay_Intl","FunctionResult",4,8,0,2,0,0,82],["ecma_Ceiling","FunctionResult",2,8,0,2,"ECMA_Ceiling",0,82],["iso_Ceiling","FunctionResult",2,8,0,2,"ISO_Ceiling",0,82],["beta_Dist","FunctionResult",6,8,0,2,0,0,82],["beta_Inv","FunctionResult",5,8,0,2,0,0,82],["chiSq_Dist","FunctionResult",3,8,0,2,0,0,82],["chiSq_Dist_RT","FunctionResult",2,8,0,2,0,0,82],["chiSq_Inv","FunctionResult",2,8,0,2,0,0,82],["chiSq_Inv_RT","FunctionResult",2,8,0,2,0,0,82],["f_Dist","FunctionResult",4,8,0,2,0,0,82],["f_Dist_RT","FunctionResult",3,8,0,2,0,0,82],["f_Inv","FunctionResult",3,8,0,2,0,0,82],["f_Inv_RT","FunctionResult",3,8,0,2,0,0,82],["hypGeom_Dist","FunctionResult",5,8,0,2,0,0,82],["logNorm_Dist","FunctionResult",4,8,0,2,0,0,82],["logNorm_Inv","FunctionResult",3,8,0,2,0,0,82],["negBinom_Dist","FunctionResult",4,8,0,2,0,0,82],["norm_S_Dist","FunctionResult",2,8,0,2,0,0,82],["norm_S_Inv","FunctionResult",1,8,0,2,0,0,82],["z_Test","FunctionResult",3,8,0,2,0,0,82],["erf_Precise","FunctionResult",1,8,0,2,0,0,82],["erfC_Precise","FunctionResult",1,8,0,2,0,0,82],["gammaLn_Precise","FunctionResult",1,8,0,2,0,0,82],["ceiling_Precise","FunctionResult",2,8,0,2,0,0,82],["floor_Precise","FunctionResult",2,8,0,2,0,0,82],["acot","FunctionResult",1,8,0,2,0,0,82],["acoth","FunctionResult",1,8,0,2,0,0,82],["cot","FunctionResult",1,8,0,2,0,0,82],["coth","FunctionResult",1,8,0,2,0,0,82],["csc","FunctionResult",1,8,0,2,0,0,82],["csch","FunctionResult",1,8,0,2,0,0,82],["sec","FunctionResult",1,8,0,2,0,0,82],["sech","FunctionResult",1,8,0,2,0,0,82],["imTan","FunctionResult",1,8,0,2,0,0,82],["imCot","FunctionResult",1,8,0,2,0,0,82],["imCsc","FunctionResult",1,8,0,2,0,0,82],["imCsch","FunctionResult",1,8,0,2,0,0,82],["imSec","FunctionResult",1,8,0,2,0,0,82],["imSech","FunctionResult",1,8,0,2,0,0,82],["bitand","FunctionResult",2,8,0,2,0,0,82],["bitor","FunctionResult",2,8,0,2,0,0,82],["bitxor","FunctionResult",2,8,0,2,0,0,82],["bitlshift","FunctionResult",2,8,0,2,0,0,82],["bitrshift","FunctionResult",2,8,0,2,0,0,82],["permutationa","FunctionResult",2,8,0,2,0,0,82],["combina","FunctionResult",2,8,0,2,0,0,82],["xor","FunctionResult",1,72,0,2,0,0,82],["pduration","FunctionResult",3,8,0,2,"PDuration",0,82],["base","FunctionResult",3,8,0,2,0,0,82],["decimal","FunctionResult",2,8,0,2,0,0,82],["days","FunctionResult",2,8,0,2,0,0,82],["binom_Dist_Range","FunctionResult",4,8,0,2,0,0,82],["gamma","FunctionResult",1,8,0,2,0,0,82],["skew_p","FunctionResult",1,72,0,2,0,0,82],["gauss","FunctionResult",1,8,0,2,0,0,82],["phi","FunctionResult",1,8,0,2,0,0,82],["rri","FunctionResult",3,8,0,2,0,0,82],["unichar","FunctionResult",1,8,0,2,0,0,82],["unicode","FunctionResult",1,8,0,2,0,0,82],["arabic","FunctionResult",1,8,0,2,0,0,82],["isoWeekNum","FunctionResult",1,8,0,2,0,0,82],["numberValue","FunctionResult",3,8,0,2,0,0,82],["sheet","FunctionResult",1,8,0,2,0,0,82],["sheets","FunctionResult",1,8,0,2,0,0,82],["isFormula","FunctionResult",1,8,0,2,0,0,82],["ceiling_Math","FunctionResult",3,8,0,2,0,0,82],["floor_Math","FunctionResult",3,8,0,2,0,0,82],["imSinh","FunctionResult",1,8,0,2,0,0,82],["imCosh","FunctionResult",1,8,0,2,0,0,82]]]]},targetNamespaceObject:e})}(Excel||(Excel={})),"undefined"!=typeof window&&window.OSF&&window.OSF._OfficeAppFactory&&window.OSF._OfficeAppFactory.getHostInfo&&window.OSF._OfficeAppFactory.getHostInfo()){var hostPlatform=window.OSF._OfficeAppFactory.getHostInfo().hostPlatform;"web"===hostPlatform&&(OfficeExtension._internalConfig.enablePreviewExecution=!0)}!function(e){if(!function(){try{return"object"==typeof process&&"[object process]"===String(process)}catch(e){return!1}}()&&!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-TERMINATEDS0�R�	*�H��
��R�0�R�10
	`�He0\
+�7�N0L0
+�70	���010
	`�He ӥ��O`��Ay�j��i�N���F�V2ҩࠂ
�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��3TS�g9�nW�T0
	*�H��
0_10	UUS10U
Microsoft Corporation100.U'Microsoft Windows Code Signing PCA 20240
250417180835Z
260415180835Z0t10	UUS10U
Washington10URedmond10U
Microsoft Corporation10UMicrosoft Corporation0�"0
	*�H��
�0�
�������'����j�i!�"s9W�W�ɰ��j~:�f��NC2]�ZV���P>^B�ֆ�X%�w��8��˿MvYP��ej�p�d]�D���K��Žj��m?���dk�P�'Ц�jw`>��Zuص{1C5�`<ȂZ����y�)�j�W^��tF���#O���o����닏]U��������Tx\�⋚7�\����0
 �titC���xmo���3M�Z��X��T�S�N"��l��L�;��GC�!(]+�Y��v��K��0L4G��9V`��������2��C_�[�!#�D�_p�'��Ӹvg�����A�+���y���ԨI�h���E���;^|2�%6���
֗mMz4n����|�S.4�}�� P�uhf����6h���
��v��M��]@��S�mSհ~��M���4�1k2�}]�‹��>�5�>�R��e��/�ڄ�}�!��mI>��(�����-�}�b���IlI��_i���0��0U��0+U%$0"+
+�7=
+�7L0U�00UC��O�o��*n`�0EU>0<�:0810UMicrosoft Corporation10U
500814+5043930U#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��
�Hd�Į3n�K�	r�(��a��O��I�d������J�
�e_�:�7Q�F
�Eo6��Q�b����<X3���>��И5�M|�:��(��O9���ipp_�ǂJ:`@���Us�}w<tz2`�,��TsEO��o�K�+>��1����5i�����"��
ݡ���43��� �@#��K(���*���F�*�n.�u�g��+��Gj5}���v��h]J�~����4�,R��RPy5����~G�f���O�+�5�-ø�-T�P] h"�둄�BVT8��''x	��y�E�!|��'�;�[�ve0�"���
�1��
�_���.���ܙO$�?����˱�g��q��@9���v�`AԹ�ik	�8+���'~��K�*D�Aӟ���en��?m"'�_=�p썗�6�ێ�=i�6.����>U��R��<R�M�;�o�
N��I�����A��&0F'�b��G&!_^y��xRA�TAK���n^u-�1�D�0�D�0v0_10	UUS10U
Microsoft Corporation100.U'Microsoft Windows Code Signing PCA 20243TS�g9�nW�T0
	`�He���0	*�H��
	1
+�70/	*�H��
	1" ��-�Y����s��pHN����U�qD��р�0T
+�71F0D�"� Microsoft Office��http://office.microsoft.com 0
	*�H��
���y�%u�a"�<���|ۖ�ԋca����J��.�E��H@qơ!-id�{~�ۓ�j��2�=s��˻]�\�P�l�9��1(za	[�����u!���NU�ᴇOO�Њ�j�s!�(bV�J#ԧ���Z�8U
�O���p��?ˠ8�ýg�}yi��챀�-�_„)'�Gg@�N��ۂ��w�C���c����c,53�n<<��6I'V�<��gi$�!
dj"�Yt����7��!v�`)B���P�D��:}�)m���P���;�*���"V��j_��o���s�i�LpM�lG�^��
�R�L�I�_��b񮖅AP,�òTUAͨc+�ALbTM�=��U��F��nڢ0$:s��L�]&���3��E���*aZV+��B�+_��{�&�'ԢM�!;��h2�������q����څ��5�e)yI��@�3��
�{y�l�o].��@���M����:��f���ᡂA?0��
+�71��0��	*�H��
���0��10
	`�He0�Z*�H��
	��I�E0�A
+�Y
010
	`�He ��*��f��5)iWV�
ł����	�aO��hY�M]H20250701070441.441Z0��٤��0��10	UUS10U
Washington10URedmond10U
Microsoft Corporation1-0+U$Microsoft Ireland Operations Limited1'0%UnShield TSS ESN:651A-05E0-D9471%0#UMicrosoft Time-Stamp Service���0�(0��3��	����P��0
	*�H��
0|10	UUS10U
Washington10URedmond10U
Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20100
240725183101Z
251022183101Z0��10	UUS10U
Washington10URedmond10U
Microsoft Corporation1-0+U$Microsoft Ireland Operations Limited1'0%UnShield TSS ESN:651A-05E0-D9471%0#UMicrosoft Time-Stamp Service0�"0
	*�H��
�0�
���tpTY��?�O�L!m_@�����_OI�`F���
N�g�z䖢����0����́Pv���<"�Z�XNQˡ5�/��o�ɫp�[m��� ��*�5��Y����鱜���`m�S����{��o�ymCre��m�k��G�F�%��:LM���ʒ�E�{'
Ѹc�@�`���j�5�ԝX���"Nݤ+m-RϹ~��`����
�,�-,����Y*S3����
g:<k��+V�b�ʪ���F29(H܄���� :�׽�W�&�c���wW�3���o�%[�J��t�y!T�Ǵ�ց��N����u���I�k�ÉM���?E6O	�N�I����7WK����/��I~Zf1�4>&��h.t��~uο��u�'�pZ�d���\��6L���B4�i�Q�<�S\�	�U6$�E��w�r��@�=ۓ�מ� +V{͘�]����`9��yN��������.jp?G|Y���X��z����I0�E0UU�|[�J4�p�%�^�h�{`u0U#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��
�sfT����~�&�3��hl��G[������+嫘�h�?��|b2�3����<�܎3rQ�&9yKM��9T)�-Z��'Zӣ����.�xm��OAD����a���L�G����Q�rX�g
�d�Z㩾�^��5:#A'��-2�l�
�U����q��䊞6yܠ�ؗs:��$�<�RYm�Q�Br��h�Q �E�mD-���lE�p�4���EW�|�� }A��U�&����HH%N�@�I3^/K"3f��'t�?�q�[Ezm@4h+����ҳ�i�#A|̉��vaS8�����f�#=� L��ݹl曙_��|��Z��K�=9�RU��25���Xء�wޡ6�6%�5-?��'$��'���,���PP��Md��(��Ǝ+���FrI�|<��zQ	�\K�M��ߍ�	R䙭�K"�v�`F���Y�s�̏���^x�����p3W{�hm�"Md���C%�Q�%;��Q�S�Y��*��^L�����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�V0�>0���٤��0��10	UUS10U
Washington10URedmond10U
Microsoft Corporation1-0+U$Microsoft Ireland Operations Limited1'0%UnShield TSS ESN:651A-05E0-D9471%0#UMicrosoft Time-Stamp Service�#
0+&�
��
mXF
�H�<ݒ����0���~0|10	UUS10U
Washington10URedmond10U
Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20100
	*�H��
�
�0"20250701053256Z20250702053256Z0t0:
+�Y
1,0*0
�
�0�0�0
�C06
+�Y
1(0&0
+�Y
�
0� �
0��0
	*�H��
�td��i���جr��5;���d�n�O�,K����\��r�9^vMiX�;/r&�	`�~�G�^�����J����ͬu	�*���?�Ǧ���1�[x��I�}T2t�>*�pK��Ż+T�@l��M�2h�7K�t졞'�턊6�7[b�C�}pb���a��K�/V�FO'~m�ܥפ�aD3}�>!�����,�z�����Cj_a��އ�}������(��΍�I C�������1�
0�	0��0|10	UUS10U
Washington10URedmond10U
Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20103��	����P��0
	`�He��J0	*�H��
	1
*�H��
	0/	*�H��
	1" 1m�<�1`�:��
���N�@ERUM��60��*�H��
	/1��0��0��0�� ����t��GD���בՉ<Ü{������50��0���~0|10	UUS10U
Washington10URedmond10U
Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20103��	����P��0" ֺ~��X |�̽���n+F�|	V������Z0
	*�H��
���2�Ǻ�Ӟ����t���9�JU܊�̖�RT.�z��ks��1ӹ�^�^q��+<eHʎ���p:�#F���x@mY�ݏ�nw5�\G�:�(N)E��4�<t$
>���z��–kg�
����$���Tb�;#���K��3�y�M�W��z�kjz���ޓ�ڻ�y�r:A؊g���Pc�n�6-���A��3��;H��U�ts�c�U�G��i�G7����$B&�idU��|}q���j+ψ `eun�-𖋨�Z�P&VP5�C٨�[���
��B��/�	���4`QM�$EU��qg@#)wk�璑zl�%g�"�.�[�sf�M�����]gz��c��s�U�~m/Uk����0��Y���m�"�Ҋ�0��E�m�l�x�Ә#p����zy�9�m!��x��Ne	�D�=�ꁒH#� (!��R<�!�1�(K$q۲���m1{��c�xb���� �_��
9�0�)�
+�71�)~0�)z	*�H��
��)k0�)g10
	`�He0\
+�7�N0L0
+�70	���010
	`�He ӥ��O`��Ay�j��i�N���F�V2ҩࠂ
�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��3Q~P����Q0
	*�H��
0_10	UUS10U
Microsoft Corporation100.U'Microsoft Windows Code Signing PCA 20240
250417180831Z
260415180831Z0t10	UUS10U
Washington10URedmond10U
Microsoft Corporation10UMicrosoft Corporation0�"0
	*�H��
�0�
��j��݄�a�}�mz+��l��d�j6�����孷��D�� ���$������`���B�ZFb2f�gB������v+	�GJ�IN*���D]�o<��ܰXi)W�cӗ��Rz}��P�*l�)/O�Ow�n��C�#x�o�o��٧N#ʀ����Qnr>�L~(����Z�I���"W{Cͨ�����Ԙ	���|�Z'�r� ��]�"%�M�ok�\cOv�풊����y��QDh�aM"���^i�����ΥE��Bp!M��'�
&�Jfm�_�i��NE>E,%M	^����峢�;C�&A��y�X�mA��v�Xl$I���˓W�L{:O��nX�G}upm���`����̬���o�ה�(E�"p��K�)l���헚D����~�m_2MT��й������W������"�;��d��`�����Y��T�T��+TT�bo6�����l�[C�Ʊ��x䤳F�TK60V�5�{� �eE���0��0U��0+U%$0"
+�7
+
+�7L0U�00U7I���Q�k�,B�c�VHK��0EU>0<�:0810UMicrosoft Corporation10U
500816+5043900U#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��
�}� �3����dH�VaF/�"���A�*�Rz��)�Ȑ�dL 	�:�0=��5W�M0ͱq�n$,�����l�~1`���9����2�G3S�`��
��t
$81.��f}��5=�$|}T�{���p��LT��Gk�tE���� v���n6b���V�-%B��m#V�t��l���r�Pٸ�vd��G��+��Xh�2h��������c�Q5��L.s.{���h
�!W�w��cs4�ʼn(�Mz��p�˴���L@��5�Ћ��K����^�
�O	��jY�1VZ�~�u�䤓�7
���f�9߆�FuC��ۨL�9:���M�Y��B�;�j�t���]��f�R�C�ew�q�S��6�$%�V���";��;�f��g��j��t�ihU+�\��ķia+�^��Ӵ��V���#	��dޮH5�QEGd��(E4XJSȧ�e�[J�ڰ�����6J�>�*�C-39�?lJ��L·�5�1�0�0v0_10	UUS10U
Microsoft Corporation100.U'Microsoft Windows Code Signing PCA 20243Q~P����Q0
	`�He���0
*�H��
	10	*�H��
	1
+�70/	*�H��
	1" ��-�Y����s��pHN����U�qD��р�0T
+�71F0D�"� Microsoft Office��http://office.microsoft.com 0
	*�H��
��GM��-{1�*����N�0L�.C��.�6����/c�VNN%A12\*T���u?��2X9��n��G���#U�����@o����#fr���x�&��D~��
�!�<TK�>A��k��ަ��Z��{,�3�S* �#m�1����=�;.�}��M�N�OM�7�,�!��y�Mģ���j�"$�=oJ��k
;6�6ߩ�&n�M����_|w7pGP\����)Y����L��D�:��f(|�!Ģl"�J8����O��3q�i?J���������h��7�Zڇ��*�'��+��p{�OF�G8nAfz�JGg�n\�!c5G!eTXB�Y;�;Q����mJF�v��ȍk:��I�Q
̊�SK������+|�����}���^�J�T�:\'F�	�k�w�|EZJ1|��r'���ȳع>M
�1���:A����p�z��;Ǵ�����]F2TÇ�6|�)�㾺�AϋcA���0��
+�71��0��	*�H��
���0��10
	`�He0�X*�H��
	��G�C0�?
+�Y
010
	`�He �,E�K~�?-=�t�h��.����h��=h-����20250701070444.4Z0��٤��0��10	UUS10U
Washington10URedmond10U
Microsoft Corporation1-0+U$Microsoft Ireland Operations Limited1'0%UnShield TSS ESN:401A-05E0-D9471%0#UMicrosoft Time-Stamp Service���0�(0��3��{4!�0
	*�H��
0|10	UUS10U
Washington10URedmond10U
Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20100
240725183118Z
251022183118Z0��10	UUS10U
Washington10URedmond10U
Microsoft Corporation1-0+U$Microsoft Ireland Operations Limited1'0%UnShield TSS ESN:401A-05E0-D9471%0#UMicrosoft Time-Stamp Service0�"0
	*�H��
�0�
���!��7�[�𞁞&I�ل�(F/�i�߭����u�S��1���Zn�`u"x���.�Zˀ
܊'#�;6��~�v��1})�4z��Ecwm��<����|�a�"��2(E�f�>6��0w� �	��U���23uS�r��k�!�E��Y�2�Ԕ��a_KT yU�~E-u��v�sW9�H1J�i����u���?���ӵ]�� ��5�@���Žo���d�mz,�~�!����VB١���Di��k,�k�&Ib���M^J�h[�z�u��o�(���յ�i��#�K�a)A�;��+�D���.OK��U��[�%
E:ĝ���K�M��&�.�(8�F��8Zx;�S�r�
��
�%=�ہ��fC/��X��	�r��t�ꋨ�stK�zl�=�_t_�A��K��[x��9?C�A�ү��h�a�.<��V���߂��;p�h�U���ڣ���ƺФ�%����*&�26�l#H|s�)��I0�E0Uo�{��%6���� bm���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��t3-���}��UP�t$����������jd��w����`�O;\��o��3Z1p���	��Z1cs³rA�6(�,����0
�j�$��/�D-�p�t%��S�S�r>�à���Brˈ�jΔ�\���JzGn1�K�rd�ذ�	�O�O1�@\�ԕW�lj�'���-;��S��*ݼu�%�����Ed���Q�+n������É5~��1=PQ`VE�3!v��v��g<h�Uw��s8�G��_^97V��P�k{~30��͖D�ͅ��w�%�Gp�:T�$~1�� ֵ��s�x	�BQ�����6ƙ��HzإS�,A�G�Ÿ�Վ"'����w����^%�d��%�N;3�+Œ���&E�Β�����
@t�l�t�'� č�Գ14�~�p��}N!���f����k�2lD3�����ƅg`��	�u�����
���Fq�
���婟y]Ÿ2�?�u�e'l�ٍLΡQ�Wx0�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�Y0�A0���٤��0��10	UUS10U
Washington10URedmond10U
Microsoft Corporation1-0+U$Microsoft Ireland Operations Limited1'0%UnShield TSS ESN:401A-05E0-D9471%0#UMicrosoft Time-Stamp Service�#
0+�cG��CF�-eF���^Ǡ��0���~0|10	UUS10U
Washington10URedmond10U
Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20100
	*�H��
�
�0"20250701042224Z20250702042224Z0w0=
+�Y
1/0-0
�
�0

X�0�0
�2�06
+�Y
1(0&0
+�Y
�
0� �
0��0
	*�H��
�l�b%�dC&bdl��%�� e�8�sƗ	^��(��F���8 .����ZG��h�9;h�&��u3y��r,h�� װ��R��(�u%����Ȝ��Yl��?K+9��?u	W��;i�\��O3�Zq�ŕ1��[�G�m���g6O`��Uݒ���##�BþA����!�z������99�T�&V����t�nur��!V�������\O��O�#*��s��5�/�a���6���q]4
�s1�
0�	0��0|10	UUS10U
Washington10URedmond10U
Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20103�Ш�{4!�0
	`�He��J0	*�H��
	1
*�H��
	0/	*�H��
	1" �!�ݕ�'�ߕ���rj憮�Ыc���RŲ0��*�H��
	/1��0��0��0�� ���Sȟ�i����s��8m~���@��(ty0��0���~0|10	UUS10U
Washington10URedmond10U
Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20103�Ш�{4!�0" O(T�gK/��O`j)#�(�1s盽�����B,0
	*�H��
�L�U��*y�)�^��#��n�:N�EG����yi��Qc����'�%G�tx������m橏�I ZA�� �p�g��ø�(t;&e���9��-Q���?�9��%B�2h��2����䍶�Lꔹ����;�!bp�;�y6��%^%ߤ��+��E2� ®�i�lg��XK�z��[���I7���Ǒg,�v��5�6+�*��JG��|���9v	�5d�\�*�T|	5�r��jˤmfh5u�hX3W~}���[
]k#ߛ��ܷo�=

V\b�K�D��T��v�&�����3�C��Ӕ(�{�?�=>�w�ƠGT��2��%îZd��_��-�Un�O��3�L ��,J�O�X�"�'��%�<(W���ok�B+dn��m{�u �#����}��Za�|�8�_MQҧ��Bל��>OP,�9�>���Q��b�B�;�&kbRz����<�\��4HE#Y=~	QD���QY�7G�a1�