| Server IP : 121.121.20.254 / Your IP : 216.73.217.51 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Program Files/Microsoft Office/root/Office16/ |
Upload File : |
MZ� �� � @ � � � �!�L�!This program cannot be run in DOS mode.
$ 1:�umT�umT�umT���T�tmT��䫎tmT���V�tmT�RichumT� PE d� �=j � " , � � � � `A @ @ �� � �R 8 .rdata @ @.rsrc �� � @ @ �=j
| � � �=j F2j h officejs_powerpoint.dll � � @ .rdata @ @ .edata � .rdata$voltmd � � .rdata$zzzdbg ` .rsrc$01 ` 0� .rsrc$02 X � � d 0 � H ` ,� J S /* Office Platform Bundle */
/*
* Office JavaScript API library
*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
* Your use of this file is governed by the license terms for the Microsoft Office JavaScript (Office.js) API library: https://github.com/OfficeDev/office-js/blob/release/LICENSE.md
*
* This file also contains the following Promise implementation (with a few small modifications):
* * @overview es6-promise - a tiny implementation of Promises/A+.
* * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* * @license Licensed under MIT license
* * See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
* * @version 2.3.0
*/
var OSFPerformance,CustomFunctionMappings,CustomFunctions,Strings;!function(e){e.now=function(){return"undefined"!=typeof performance&&performance.now?performance.now():0},e.getTotalJSHeapSize=function(){return"undefined"!=typeof performance&&performance.memory?performance.memory.totalJSHeapSize:0},e.getUsedJSHeapSize=function(){return"undefined"!=typeof performance&&performance.memory?performance.memory.usedJSHeapSize:0},e.getJSHeapSizeLimit=function(){return"undefined"!=typeof performance&&performance.memory?performance.memory.jsHeapSizeLimit:0},e.officeExecuteStartDate=e.officeExecuteStartDate||Date.now(),e.officeExecuteStart=e.officeExecuteStart||0,e.officeExecuteEnd=e.officeExecuteEnd||0,e.hostInitializationStart=0,e.hostInitializationEnd=0,e.totalJSHeapSize=0,e.usedJSHeapSize=0,e.jsHeapSizeLimit=0,e.createOMEnd=0,e.hostSpecificFileName="",e.getAppContextStart=0,e.getAppContextEnd=0,e.getAppContextXdmStart=0,e.getAppContextXdmEnd=0,e.officeOnReady=0}(OSFPerformance=OSFPerformance||{}),(OSF||(OSF={})).definePropertyOnNamespace=function(e,t,n){Object.defineProperty(e,t,{get:function(){return n()},configurable:!0,enumerable:!0})},OSFPerformance.hostInitializationStart=OSFPerformance.now(),function(e){var t;function n(){return t.m_association||(t.m_association=new OSF.Association),t.m_association}(t=e.actions||(e.actions={})).m_association=t.m_association,t.associate=function(){OTel&&OTel.OTelLogger&&OTel.OTelLogger.onTelemetryLoaded(function(){Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.ApiCall",dataFields:[oteljs.makeStringDataField("Api","Office.actions.associate")],eventFlags:{dataCategories:2,diagnosticLevel:110}})}),n().associate.apply(n(),arguments)},OSF.definePropertyOnNamespace(t,"_association",n)}(Office=Office||{}),function(e){var t;(t=e.AgaveHostAction||(e.AgaveHostAction={}))[t.Select=0]="Select",t[t.UnSelect=1]="UnSelect",t[t.CancelDialog=2]="CancelDialog",t[t.InsertAgave=3]="InsertAgave",t[t.CtrlF6In=4]="CtrlF6In",t[t.CtrlF6Exit=5]="CtrlF6Exit",t[t.CtrlF6ExitShift=6]="CtrlF6ExitShift",t[t.SelectWithError=7]="SelectWithError",t[t.NotifyHostError=8]="NotifyHostError",t[t.RefreshAddinCommands=9]="RefreshAddinCommands",t[t.PageIsReady=10]="PageIsReady",t[t.TabIn=11]="TabIn",t[t.TabInShift=12]="TabInShift",t[t.TabExit=13]="TabExit",t[t.TabExitShift=14]="TabExitShift",t[t.EscExit=15]="EscExit",t[t.F2Exit=16]="F2Exit",t[t.ExitNoFocusable=17]="ExitNoFocusable",t[t.ExitNoFocusableShift=18]="ExitNoFocusableShift",t[t.MouseEnter=19]="MouseEnter",t[t.MouseLeave=20]="MouseLeave",t[t.UpdateTargetUrl=21]="UpdateTargetUrl",t[t.InstallCustomFunctions=22]="InstallCustomFunctions",t[t.SendTelemetryEvent=23]="SendTelemetryEvent",t[t.UninstallCustomFunctions=24]="UninstallCustomFunctions",t[t.SendMessage=25]="SendMessage",t[t.LaunchExtensionComponent=26]="LaunchExtensionComponent",t[t.StopExtensionComponent=27]="StopExtensionComponent",t[t.RestartExtensionComponent=28]="RestartExtensionComponent",t[t.EnableTaskPaneHeaderButton=29]="EnableTaskPaneHeaderButton",t[t.DisableTaskPaneHeaderButton=30]="DisableTaskPaneHeaderButton",t[t.TaskPaneHeaderButtonClicked=31]="TaskPaneHeaderButtonClicked",t[t.RemoveAppCommandsAddin=32]="RemoveAppCommandsAddin",t[t.RefreshRibbonGallery=33]="RefreshRibbonGallery",t[t.GetOriginalControlId=34]="GetOriginalControlId",t[t.OfficeJsReady=35]="OfficeJsReady",t[t.InsertDevManifest=36]="InsertDevManifest",t[t.InsertDevManifestError=37]="InsertDevManifestError",t[t.SendCustomerContent=38]="SendCustomerContent",t[t.KeyboardShortcuts=39]="KeyboardShortcuts",t[t.CloseSDXDialog=42]="CloseSDXDialog",t[t.ResizeSDXDialog=43]="ResizeSDXDialog",t[t.SendNonStandardEvent=44]="SendNonStandardEvent",t[t.Interactive=48]="Interactive"}(OSF=OSF||{}),function(i){var e=(t.prototype.initializeEventHandler=function(e){var t=this;this.addHandlerAsync(i.EventType.AppCommandInvoked,function(e){t._processAppCommandInvocation(e)},e)},t.prototype.appCommandInvocationCompletedAsync=function(t,n,r,e){i._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(94,{fromSafeArrayHost:function(e){return e},fromWebHost:function(e){return e},toSafeArrayHost:function(){return[t,n,r]},toWebHost:function(){var e={};return e[0]=t,e[1]=n,e[2]=r,e}},e)},t.prototype.addHandlerAsync=function(e,t,n){i.EventHelper.addEventHandler(e,t,n,this._eventDispatch,void 0,i.OUtil.isPopupWindow())},t.prototype._verifyManifestCallback=function(e){var t={callback:null,errorCode:11101};e=e.trim();try{var n=this._getCallbackFunc(e);if("function"!=typeof n)return t}catch(e){return t}return{callback:n,errorCode:0}},t.prototype._getCallbackFuncFromActionAssociateTable=function(e){var t=e.toUpperCase();return Office.actions._association.mappings[t]},t.prototype._getCallbackFunc=function(e){return this._getCallbackFuncFromActionAssociateTable(e)},t.prototype._invokeAppCommandCompletedMethod=function(e,t,n){this.appCommandInvocationCompletedAsync(e,t,n,function(e){e.status!==Office.AsyncResultStatus.Succeeded&&console.error("Failed to notify the host thta app command is completed")})},t.prototype._constructEventObjectForCallback=function(n){var e,r,i=this;try{e=JSON.parse(n.eventObjStr),r=JSON.parse(n.eventObjStr)}catch(e){}return r=r||{},(e=e||{}).completed=function(e){r.completedContext=e;var t=JSON.stringify(r);i._invokeAppCommandCompletedMethod(n.appCommandId,0,t)},e},t.initialize=function(){null==t._instance&&(t._instance=new t).initializeEventHandler(function(e){e.status!==Office.AsyncResultStatus.Succeeded&&console.error("Cannot initialize app command: "+JSON.stringify(e))})},t._instance=null,t);function t(){var r=this;this._processAppCommandInvocation=function(e){var t=r._verifyManifestCallback(e.callbackName);if(0==t.errorCode){var n=r._constructEventObjectForCallback(e);n?window.setTimeout(function(){t.callback(n)},0):r._invokeAppCommandCompletedMethod(e.appCommandId,5001,"")}else r._invokeAppCommandCompletedMethod(e.appCommandId,t.errorCode,"")},this._eventDispatch=new i.EventDispatch([{type:i.EventType.AppCommandInvoked,id:i.EventDispId.dispidAppCommandInvokedEvent,getTargetId:function(){return""},fromSafeArrayHost:function(e){return{type:i.EventType.AppCommandInvoked,appCommandId:e[0],callbackName:e[1],eventObjStr:e[2]}},fromWebHost:function(e){return{type:i.EventType.AppCommandInvoked,appCommandId:e[0],callbackName:e[1],eventObjStr:e[2]}}}])}i.AppCommandManager=e}(OSF=OSF||{}),function(e){var t;(t=e.AppName||(e.AppName={}))[t.Unsupported=0]="Unsupported",t[t.Excel=1]="Excel",t[t.Word=2]="Word",t[t.PowerPoint=4]="PowerPoint",t[t.Outlook=8]="Outlook",t[t.ExcelWebApp=16]="ExcelWebApp",t[t.WordWebApp=32]="WordWebApp",t[t.OutlookWebApp=64]="OutlookWebApp",t[t.Project=128]="Project",t[t.AccessWebApp=256]="AccessWebApp",t[t.PowerpointWebApp=512]="PowerpointWebApp",t[t.ExcelIOS=1024]="ExcelIOS",t[t.Sway=2048]="Sway",t[t.WordIOS=4096]="WordIOS",t[t.PowerPointIOS=8192]="PowerPointIOS",t[t.Access=16384]="Access",t[t.Lync=32768]="Lync",t[t.OutlookIOS=65536]="OutlookIOS",t[t.OneNoteWebApp=131072]="OneNoteWebApp",t[t.OneNote=262144]="OneNote",t[t.ExcelWinRT=524288]="ExcelWinRT",t[t.WordWinRT=1048576]="WordWinRT",t[t.PowerpointWinRT=2097152]="PowerpointWinRT",t[t.OutlookAndroid=4194304]="OutlookAndroid",t[t.OneNoteWinRT=8388608]="OneNoteWinRT",t[t.ExcelAndroid=8388609]="ExcelAndroid",t[t.VisioWebApp=8388610]="VisioWebApp",t[t.OneNoteIOS=8388611]="OneNoteIOS",t[t.WordAndroid=8388613]="WordAndroid",t[t.PowerpointAndroid=8388614]="PowerpointAndroid",t[t.Visio=8388615]="Visio",t[t.OneNoteAndroid=4194305]="OneNoteAndroid"}(OSF=OSF||{}),function(e){var t=(n.prototype.associate=function(e,t){function n(e){"undefined"!=typeof console&&console.warn&&console.warn(e)}if(1==arguments.length&&"object"==typeof e&&e){var r=e;for(var i in r)this.associate(i,r[i])}else if(2==arguments.length){var o=e,a=t;if("string"!=typeof o)return void n("[InvalidArg] Function=associate");if("function"!=typeof a)return void n("[InvalidArg] Function=associate");var s=o.toUpperCase();this.m_mappings[s]&&n("[DuplicatedName] Function="+o),this.m_mappings[s]=a;for(var c=0;c<this.m_onchangeHandlers.length;c++)this.m_onchangeHandlers[c]()}else n("[InvalidArg] Function=associate")},n.prototype.onchange=function(e){e&&this.m_onchangeHandlers.push(e)},Object.defineProperty(n.prototype,"mappings",{get:function(){return this.m_mappings},enumerable:!0,configurable:!0}),n);function n(){this.m_mappings={},this.m_onchangeHandlers=[]}e.Association=t}(OSF=OSF||{}),function(e){var t=(n.prototype.invokeCallback=function(e,t,n,r,i){if(0==n){var o={status:Office.AsyncResultStatus.Succeeded,value:r,asyncContext:i};"function"==typeof t&&t(o)}else{var a={status:Office.AsyncResultStatus.Failed,error:{code:n},asyncContext:i};"function"==typeof t&&t(a)}},n);function n(){}e.AsyncMethodExecutor=t}(OSF=OSF||{}),function(d){var e=(t.prototype.handleSafeArrayHostResponse=function(e,t,n,r,i,o,a){var s,c;if(1==(c="number"==typeof(e=d.Utility.fromSafeArray(e))?(s=[],e):(s=e)[0]))return null!=(l=s[1])&&(n[l[0]]=l[1]),!1;if(r){var l;if(0==c){if(2<s.length){l=[];for(var u=1;u<s.length;u++)l[u-1]=s[u]}else l=s[1];if(0<n.length&&null!=l){var p=l[l.length-1];n.length==p?l[l.length-1]=n:c=5001}}else l=s[1];var f=null;0==c&&(f=i.fromSafeArrayHost(l)),this._asyncMethodExecutor.invokeCallback(o,r,c,f,a)}return!0},t.prototype.handleWebHostResponse=function(e,t,n,r,i,o){var a=null;0==t&&(a=r.fromWebHost(e)),this._asyncMethodExecutor.invokeCallback(i,n,t,a,o)},t);function t(e){this._asyncMethodExecutor=e}d.AsyncMethodExecutorHelper=e}(OSF=OSF||{}),function(e){!function(e){var t,n,r,i;t=e.AsyncResultEnum||(e.AsyncResultEnum={}),(n=t.Properties||(t.Properties={})).Context="Context",n.Value="Value",n.Status="Status",n.Error="Error",(r=t.ErrorCode||(t.ErrorCode={}))[r.Success=0]="Success",r[r.Failed=1]="Failed",(i=t.ErrorProperties||(t.ErrorProperties={})).Name="Name",i.Message="Message",i.Code="Code";function o(e,t){this.value=e.Value,this.status=t?Office.AsyncResultStatus.Failed:Office.AsyncResultStatus.Succeeded,e.Context&&(this.asyncContext=e.Context),t&&(this.error=new a(t.Name,t.Message,t.Code))}e.AsyncResult=o;var a=function(e,t,n){this.name=e,this.message=t,this.code=n};e.Error=a}(e.DDA||(e.DDA={}))}(OSF=OSF||{}),function(n){var e;(e=n.BootStrapExtension||(n.BootStrapExtension={})).createWebClientHostControllerHelper=function(e,t){return new n.WebClientHostControllerHelper(e,t)},e.createAsyncMethodExecutorHelper=function(e){return new n.AsyncMethodExecutorHelper(e)}}(OSF=OSF||{}),function(e){var t;(t=e.ConstantNames||(e.ConstantNames={})).DefaultLocale="en-us",t.OfficeJS="office.js",t.OfficeDebugJS="office.debug.js",t.OfficeStringsId="OFFICESTRINGS",t.OfficeJsId="OFFICEJS",t.HostFileId="HOST",t.OfficeStringJS="office_strings.js",t.OfficeStringDebugJS="office_strings.debug.js",t.FileVersion="0.0.0.0"}(OSF=OSF||{}),function(e){var t=(n.NotificationConversationIdSuffix="_ntf",n);function n(){}e.Constants=t}(OSF=OSF||{}),CustomFunctionMappings=CustomFunctionMappings||{},function(e){e.delayInitialization=function(){CustomFunctionMappings.__delay__=!0},e._association=e._association||new OSF.Association,e.associate=function(){e._association.associate.apply(e._association,arguments),delete CustomFunctionMappings.__delay__}}(CustomFunctions=CustomFunctions||{}),function(n){var e,t,r,i;e=n.DDA||(n.DDA={}),t=e.ErrorCodeManager||(e.ErrorCodeManager={}),i=!(r={}),t.getErrorArgs=function(e){i||(r[1e3]={name:n.ErrorNames.InvalidCoercion},r[1001]={name:n.ErrorNames.DataReadError},r[1002]={name:n.ErrorNames.InvalidCoercion},r[1003]={name:n.ErrorNames.DataReadError},r[1004]={name:n.ErrorNames.DataReadError},r[1005]={name:n.ErrorNames.DataReadError},r[1006]={name:n.ErrorNames.DataReadError},r[1008]={name:n.ErrorNames.DataReadError},r[1009]={name:n.ErrorNames.DataReadError},r[1010]={name:n.ErrorNames.DataReadError},r[1011]={name:n.ErrorNames.DataReadError},r[1012]={name:n.ErrorNames.DataReadError},r[1013]={name:n.ErrorNames.DataReadError},r[2e3]={name:n.ErrorNames.DataWriteError},r[2001]={name:n.ErrorNames.DataWriteError},r[2002]={name:n.ErrorNames.DataWriteError},r[2003]={name:n.ErrorNames.DataWriteError},r[2004]={name:n.ErrorNames.DataWriteError},r[2005]={name:n.ErrorNames.DataWriteError},r[2006]={name:n.ErrorNames.InvalidFormat},r[2007]={name:n.ErrorNames.InvalidDataObject},r[2008]={name:n.ErrorNames.InvalidDataObject},r[2009]={name:n.ErrorNames.DataWriteError},r[2010]={name:n.ErrorNames.DataWriteError},r[2011]={name:n.ErrorNames.DataWriteError},r[2012]={name:n.ErrorNames.DataWriteError},r[2013]={name:n.ErrorNames.DataWriteError},r[3e3]={name:n.ErrorNames.BindingCreationError},r[3002]={name:n.ErrorNames.InvalidBindingError},r[3003]={name:n.ErrorNames.BindingCreationError},r[3004]={name:n.ErrorNames.BindingCreationError},r[3005]={name:n.ErrorNames.InvalidBindingOperation},r[3006]={name:n.ErrorNames.BindingCreationError},r[3007]={name:n.ErrorNames.BindingCreationError},r[3008]={name:n.ErrorNames.BindingCreationError},r[3009]={name:n.ErrorNames.InvalidBinding},r[3010]={name:n.ErrorNames.InvalidBindingOperation},r[3011]={name:n.ErrorNames.InvalidBinding},r[4e3]={name:n.ErrorNames.ReadSettingsError},r[4001]={name:n.ErrorNames.SaveSettingsError},r[4002]={name:n.ErrorNames.SettingsStaleError},r[5e3]={name:n.ErrorNames.HostError},r[5001]={name:n.ErrorNames.InternalError},r[5002]={name:n.ErrorNames.PermissionDenied},r[5003]={name:n.ErrorNames.EventRegistrationError},r[5004]={name:n.ErrorNames.InvalidAPICall},r[5005]={name:n.ErrorNames.ShuttingDown},r[5007]={name:n.ErrorNames.UnsupportedEnumeration},r[5008]={name:n.ErrorNames.IndexOutOfRange},r[5009]={name:n.ErrorNames.APINotSupported},r[5011]={name:n.ErrorNames.APICallFailed},r[5012]={name:n.ErrorNames.InvalidOrTimedOutSession},r[5013]={name:n.ErrorNames.APICallFailed},r[5015]={name:n.ErrorNames.APICallFailed},r[5016]={name:n.ErrorNames.APICallFailed},r[5017]={name:n.ErrorNames.APICallFailed},r[5018]={name:n.ErrorNames.APICallFailed},r[5100]={name:n.ErrorNames.APICallFailed},r[5101]={name:n.ErrorNames.APICallFailed},r[5102]={name:n.ErrorNames.APICallFailed},r[5103]={name:n.ErrorNames.APICallFailed},r[5104]={name:n.ErrorNames.APICallFailed},r[6e3]={name:n.ErrorNames.InvalidNode},r[6100]={name:n.ErrorNames.CustomXmlError},r[6101]={name:n.ErrorNames.CustomXmlExceedQuotaName},r[6102]={name:n.ErrorNames.CustomXmlOutOfDateName},r[7e3]={name:n.ErrorNames.PermissionDenied},r[7001]={name:n.ErrorNames.CannotNavigateTo},r[7002]={name:n.ErrorNames.SpecifiedIdNotExist},r[7004]={name:n.ErrorNames.NavOutOfBounds},r[2014]={name:n.ErrorNames.DataWriteReminder},r[8e3]={name:n.ErrorNames.MissingParameter},r[8001]={name:n.ErrorNames.PermissionDenied},r[8010]={name:n.ErrorNames.InvalidValue},r[8011]={name:n.ErrorNames.InvalidValue},r[8012]={name:n.ErrorNames.InvalidValue},r[8020]={name:n.ErrorNames.OutOfRange},r[8021]={name:n.ErrorNames.OutOfRange},r[8022]={name:n.ErrorNames.OutOfRange},r[8023]={name:n.ErrorNames.FormattingReminder},r[1e4]={name:n.ErrorNames.UserNotSignedIn},r[11e3]={name:n.ErrorNames.MemoryLimitExceeded},r[11001]={name:n.ErrorNames.NetworkProblem},r[11002]={name:n.ErrorNames.InvalidValue},r[12007]={name:n.ErrorNames.DisplayDialogError},r[12e3]={name:n.ErrorNames.IndexOutOfRange},r[12001]={name:n.ErrorNames.IndexOutOfRange},r[12002]={name:n.ErrorNames.DisplayDialogError},r[12003]={name:n.ErrorNames.DialogNavigateError},r[12004]={name:n.ErrorNames.DisplayDialogError},r[12005]={name:n.ErrorNames.DisplayDialogError},r[12009]={name:n.ErrorNames.DisplayDialogError},r[12011]={name:n.ErrorNames.DisplayDialogError},r[13e3]={name:n.ErrorNames.APINotSupported},r[13001]={name:n.ErrorNames.UserNotSignedIn},r[13002]={name:n.ErrorNames.UserAborted},r[13003]={name:n.ErrorNames.UnsupportedUserIdentity},r[13004]={name:n.ErrorNames.InvalidResourceUrl},r[13005]={name:n.ErrorNames.InvalidGrant},r[13006]={name:n.ErrorNames.SSOClientError},r[13007]={name:n.ErrorNames.SSOServerError},r[13008]={name:n.ErrorNames.AddinIsAlreadyRequestingToken},r[13009]={name:n.ErrorNames.SSOUserConsentNotSupportedByCurrentAddinCategory},r[13010]={name:n.ErrorNames.SSOConnectionLostError},r[13012]={name:n.ErrorNames.APINotSupported},r[13013]={name:n.ErrorNames.APICallFailed},r[5014]={name:n.ErrorNames.OperationCancelledError},i=!0);var t=r[e];return(t=t||r[5001]).name||(t.name=r[5001].name),t.message||(t.message=t.name),t},t.addErrorMessage=function(e,t){r[e]=t}}(OSF=OSF||{}),(OSF||(OSF={})).ErrorNames={AddinIsAlreadyRequestingToken:"AddinIsAlreadyRequestingToken",APICallFailed:"APICallFailed",APINotSupported:"APINotSupported",BindingCreationError:"BindingCreationError",CallbackNotFunction:"CallbackNotFunction",CannotNavigateTo:"CannotNavigateTo",CustomXmlError:"CustomXmlError",CustomXmlExceedQuotaName:"CustomXmlExceedQuota",CustomXmlOutOfDateName:"CustomXmlOutOfDate",DataReadError:"DataReadError",DataWriteError:"DataWriteError",DataWriteReminder:"DataWriteReminder",DialogNavigateError:"DialogNavigateError",DisplayDialogError:"DisplayDialogError",EventRegistrationError:"EventRegistrationError",FormattingReminder:"FormattingReminder",HostError:"HostError",IndexOutOfRange:"IndexOutOfRange",InternalError:"InternalError",InvalidAPICall:"InvalidAPICall",InvalidBinding:"InvalidBinding",InvalidBindingError:"InvalidBindingError",InvalidBindingOperation:"InvalidBindingOperation",InvalidCoercion:"InvalidCoercion",InvalidDataObject:"InvalidDataObject",InvalidFormat:"InvalidFormat",InvalidGrant:"InvalidGrant",InvalidNode:"InvalidNode",InvalidOptionalArgument:"InvalidOptionalArgument",InvalidOrTimedOutSession:"InvalidOrTimedOutSession",InvalidResourceUrl:"InvalidResourceUrl",InvalidValue:"InvalidValue",MemoryLimitExceeded:"MemoryLimitExceeded",MissingParameter:"MissingParameter",MissingRequiredArguments:"MissingRequiredArguments",NavOutOfBounds:"NavOutOfBounds",NetworkProblem:"NetworkProblem",OperationCancelledError:"OperationCancelledError",OutOfRange:"OutOfRange",PermissionDenied:"PermissionDenied",ReadSettingsError:"ReadSettingsError",RedundantCallbackSpecification:"RedundantCallbackSpecification",SaveSettingsError:"SaveSettingsError",SettingsStaleError:"SettingsStaleError",ShuttingDown:"ShuttingDown",SSOClientError:"SSOClientError",SSOConnectionLostError:"SSOConnectionLostError",SSOServerError:"SSOServerError",SSOUserConsentNotSupportedByCurrentAddinCategory:"SSOUserConsentNotSupportedByCurrentAddinCategory",SpecifiedIdNotExist:"SpecifiedIdNotExist",TooManyArguments:"TooManyArguments",TooManyOptionalFunctions:"TooManyOptionalFunctions",TooManyOptionalObjects:"TooManyOptionalObjects",UnsupportedEnumeration:"UnsupportedEnumeration",UnsupportedUserIdentity:"UnsupportedUserIdentity",UserAborted:"UserAborted",UserNotSignedIn:"UserNotSignedIn"},function(e){var t=(n.prototype.getSupportedEvents=function(){var e=[];for(var t in this._eventHandlers)e.push(t);return e},n.prototype.supportsEvent=function(e){for(var t in this._eventHandlers)if(e==t)return!0;return!1},n.prototype.hasEventHandler=function(e,t){var n=this._eventHandlers[e];if(n&&0<n.length)for(var r=0;r<n.length;r++)if(n[r]===t)return!0;return!1},n.prototype.addEventHandler=function(e,t){if("function"!=typeof t)return!1;var n=this._eventHandlers[e];return!(!n||this.hasEventHandler(e,t)||(n.push(t),0))},n.prototype.addEventHandlerAndFireQueuedEvent=function(e,t){var n=this._eventHandlers[e],r=!n||0==n.length,i=this.addEventHandler(e,t);return r&&i&&this.fireQueuedEvent(e),i},n.prototype.removeEventHandler=function(e,t){var n=this._eventHandlers[e];if(n&&0<n.length)for(var r=0;r<n.length;r++)if(n[r]===t)return n.splice(r,1),!0;return!1},n.prototype.clearEventHandlers=function(e){return void 0!==this._eventHandlers[e]&&0<this._eventHandlers[e].length&&(this._eventHandlers[e]=[],!0)},n.prototype.getEventHandlerCount=function(e){return null!=this._eventHandlers[e]?this._eventHandlers[e].length:-1},n.prototype.getEventInfo=function(e){return this._eventInfos[e]},n.prototype.fireEvent=function(e){if(null==e.type)return!1;var t=e.type;if(t&&this._eventHandlers[t]){for(var n=this._eventHandlers[t],r=0;r<n.length;r++)n[r](e);return!0}return!1},n.prototype.fireOrQueueEvent=function(e){if(null==e.type)return!1;var t=e.type;if(t&&this._eventHandlers[t]){var n=this._eventHandlers[t],r=this._queuedEventsArgs[t];return 0==n.length?r.push(e):this.fireEvent(e),!0}return!1},n.prototype.fireQueuedEvent=function(e){if(e&&this._eventHandlers[e]){var t=this._eventHandlers[e],n=this._queuedEventsArgs[e];if(0<t.length){for(var r=t[0];0<n.length;)r(n.shift());return!0}}return!1},n.prototype.clearQueuedEvent=function(e){e&&this._eventHandlers[e]&&this._queuedEventsArgs[e]&&(this._queuedEventsArgs[e]=[])},n);function n(e){if(this._eventInfos={},this._queuedEventsArgs={},this._eventHandlers={},this._queuedEventsArgs={},null!=e)for(var t=0;t<e.length;t++)if("string"==typeof e[t]){var n=e[t];this._eventHandlers[n]=[],this._queuedEventsArgs[n]=[]}else{n=e[t].type;this._eventInfos[n]=e[t],this._eventHandlers[n]=[],this._queuedEventsArgs[n]=[]}}e.EventDispatch=t}(OSF=OSF||{}),function(e){var t;(t=e.EventDispId||(e.EventDispId={})).dispidEventMin=0,t.dispidInitializeEvent=0,t.dispidSettingsChangedEvent=1,t.dispidDocumentSelectionChangedEvent=2,t.dispidBindingSelectionChangedEvent=3,t.dispidBindingDataChangedEvent=4,t.dispidDocumentOpenEvent=5,t.dispidDocumentCloseEvent=6,t.dispidActiveViewChangedEvent=7,t.dispidDocumentThemeChangedEvent=8,t.dispidOfficeThemeChangedEvent=9,t.dispidDialogMessageReceivedEvent=10,t.dispidDialogNotificationShownInAddinEvent=11,t.dispidDialogParentMessageReceivedEvent=12,t.dispidObjectDeletedEvent=13,t.dispidObjectSelectionChangedEvent=14,t.dispidObjectDataChangedEvent=15,t.dispidContentControlAddedEvent=16,t.dispidLiveShareStateChangedEvent=17,t.dispidActivationStatusChangedEvent=32,t.dispidRichApiMessageEvent=33,t.dispidAppCommandInvokedEvent=39,t.dispidOnSdxSendMessageEvent=40,t.dispidDataNodeAddedEvent=60,t.dispidDataNodeReplacedEvent=61,t.dispidDataNodeDeletedEvent=62}(OSF=OSF||{}),function(d){var e=(h.addEventHandler=function(t,n,r,i,o,e){var a=0;function s(e){0==e&&(i.hasEventHandler(t,n)||i.addEventHandler(t,n)||(e=5010)),d._OfficeAppFactory.getAsyncMethodExecutor().invokeCallback(a,r,e,null,o)}var c=i.getEventInfo(t);if(c)try{if(e)return void s(0);a=c.id;var l=c.getTargetId();0==i.getEventHandlerCount(t)?d._OfficeAppFactory.getAsyncMethodExecutor().registerEventAsync(a,c.type,l,function(e){i.fireEvent(e)},c,function(e){s(d.Utility.getErrorCodeFromAsyncResult(e))},o):s(0)}catch(e){h.onException(a,e,r)}else s(5010)},h.removeEventHandler=function(e,t,n,r,i,o){var a=0;function s(e){d._OfficeAppFactory.getAsyncMethodExecutor().invokeCallback(a,n,e,null,i)}var c=r.getEventInfo(e);if(c)try{a=c.id;var l=c.getTargetId(),u=0,p=!0;u=null===t?(p=r.clearEventHandlers(e),0):(p=r.removeEventHandler(e,t))?0:5003;var f=r.getEventHandlerCount(e);p&&0==f?d._OfficeAppFactory.getAsyncMethodExecutor().unregisterEventAsync(a,c.type,l,function(e){s(d.Utility.getErrorCodeFromAsyncResult(e))},i):s(u)}catch(e){h.onException(a,e,n)}else s(5010)},h.onException=function(e,t,n){if("number"!=typeof t)throw t;d._OfficeAppFactory.getAsyncMethodExecutor().invokeCallback(e,n,t,null)},h);function h(){}d.EventHelper=e}(OSF=OSF||{}),function(e){var t;(t=e.EventType||(e.EventType={})).ActiveViewChanged="activeViewChanged",t.AppCommandInvoked="appCommandInvoked",t.RichApiMessage="richApiMessage",t.DocumentSelectionChanged="documentSelectionChanged",t.BindingSelectionChanged="bindingSelectionChanged",t.BindingDataChanged="bindingDataChanged",t.OfficeThemeChanged="officeThemeChanged",t.DocumentThemeChanged="documentThemeChanged",t.LiveShareStateChanged="liveShareStateChanged",t.DataNodeDeleted="nodeDeleted",t.DataNodeInserted="nodeInserted",t.DataNodeReplaced="nodeReplaced",t.DialogMessageReceived="dialogMessageReceived",t.DialogParentMessageReceived="dialogParentMessageReceived",t.DialogParentEventReceived="dialogParentEventReceived",t.DialogEventReceived="dialogEventReceived",t.NodeDeleted="nodeDeleted",t.NodeInserted="nodeInserted",t.NodeReplaced="nodeReplaced",t.SettingsChanged="settingsChanged"}(OSF=OSF||{}),function(e){var t,n;function r(){this.platformRemappings={web:Office.PlatformType.OfficeOnline,winrt:Office.PlatformType.Universal,win32:Office.PlatformType.PC,mac:Office.PlatformType.Mac,ios:Office.PlatformType.iOS,android:Office.PlatformType.Android},this.camelCaseMappings={powerpoint:Office.HostType.PowerPoint,onenote:Office.HostType.OneNote},this.hostInfo=e._OfficeAppFactory.getHostInfo()}t=e.HostName||(e.HostName={}),r.prototype.capitalizeFirstLetter=function(e){return e?e[0].toUpperCase()+e.slice(1).toLowerCase():e},r.getInstance=function(){return void 0===r.hostObj&&(r.hostObj=new r),r.hostObj},r.prototype.getPlatform=function(e){if(this.hostInfo&&this.hostInfo.hostPlatform){var t=this.hostInfo.hostPlatform.toLowerCase();if(this.platformRemappings[t])return this.platformRemappings[t]}return null},r.prototype.getHost=function(e){if(this.hostInfo&&this.hostInfo.hostType){var t=this.hostInfo.hostType.toLowerCase();if(this.camelCaseMappings[t])return this.camelCaseMappings[t];if(t=this.capitalizeFirstLetter(this.hostInfo.hostType),Office.HostType[t])return Office.HostType[t]}return null},r.prototype.getDefaultVersion=function(){return this.getHost()?"16.0.0000.0000":null},r.prototype.getDiagnostics=function(e){return{host:this.getHost(),version:e||this.getDefaultVersion(),platform:this.getPlatform()}},n=r,t.Host=n}(OSF=OSF||{}),function(e){var t;(t=e.HostInfoFlags||(e.HostInfoFlags={}))[t.SharedApp=1]="SharedApp",t[t.CustomFunction=2]="CustomFunction",t[t.ProtectedDocDisable=4]="ProtectedDocDisable",t[t.ExperimentJsEnabled=8]="ExperimentJsEnabled",t[t.PublicAddin=16]="PublicAddin",t[t.BundleJsEnabled=32]="BundleJsEnabled",t[t.IsMos=64]="IsMos",t[t.IsMonarch=128]="IsMonarch",t[t.CustomFunctionsInitAfterCFRuntimeReady=256]="CustomFunctionsInitAfterCFRuntimeReady"}(OSF=OSF||{}),function(e){var t;(t=e.HostInfoHostType||(e.HostInfoHostType={})).excel="excel",t.word="word"}(OSF=OSF||{}),function(e){var t;(t=e.HostInfoPlatform||(e.HostInfoPlatform={})).web="web",t.winrt="winrt",t.win32="win32",t.mac="mac",t.ios="ios",t.android="android"}(OSF=OSF||{}),function(o){var e=(t.prototype.saveAndSetDialogInfo=function(e){},t.prototype.setAgaveHostCommunication=function(){},t.prototype.createClientHostController=function(){return null},t.prototype.createAsyncMethodExecutor=function(){return null},t.prototype.createClientSettingsManager=function(){return null},t.prototype.createSettings=function(e){var t=o.OUtil.getSessionStorage();if(t){var n=t.getItem(o._OfficeAppFactory.getCachedSessionSettingsKey());n?e=JSON.parse(n):(n=JSON.stringify(e),t.setItem(o._OfficeAppFactory.getCachedSessionSettingsKey(),n))}var r=o.OUtil.deserializeSettings(e),i=this.createClientSettingsManager();return new Office.Settings(r,i)},t.prototype.prepareApiSurface=function(e){var t=e.get_featureGates();t&&(Microsoft.Office.WebExtension.FeatureGates=t),o.BootStrapExtension.prepareApiSurface&&o.BootStrapExtension.prepareApiSurface(),o.BootStrapExtension.prepareHostSpecificSurface&&o.BootStrapExtension.prepareHostSpecificSurface(),OSFPerformance.createOMEnd=OSFPerformance.now()},t.prototype.getTabbableElements=function(){return null},t.prototype.setupNestedAppAuthDependencies=function(){},t.prototype.setCreateNaaBridge=function(e){this._createNaaBridge=e},t);function t(e,t,n,r){this._hostInfo=e,this._webAppState=t,this._context=n,this._hostFacade=r}o.InitializationHelper=e}(OSF=OSF||{}),function(e){var t;(t=e.InitializationReason||(e.InitializationReason={})).Inserted="inserted",t.DocumentOpened="documentOpened"}(OSF=OSF||{}),function(p){var f;p.DisabledChangeGates=[],function(e){var t=0,r="resources.office.net",i="officeapps.live.com";e.getLibraryReleaseVehicle=function(){return t},e.setLibraryReleaseVehicle=function(e){t=e},e.isChangeGateEnabled=function(e){return!p.DisabledChangeGates||-1===p.DisabledChangeGates.indexOf(e)};var n=null,o=null;function a(){if(!o&&n&&n.officeCdnEndpoint)if(n.officeCdnEndpoint.origin&&0<n.officeCdnEndpoint.origin.length){var e="";e=n.officeCdnEndpoint.isOCDICompliant?"/"===n.officeCdnEndpoint.origin[n.officeCdnEndpoint.origin.length-1]?"beta/":"/beta/":"/"===n.officeCdnEndpoint.origin[n.officeCdnEndpoint.origin.length-1]?"appsforoffice/lib/beta/hosted/":"/appsforoffice/lib/beta/hosted/",o=n.officeCdnEndpoint.origin+e}else{var t=function(e){var t=new URL(e).hostname.toLowerCase();if(-1!==t.indexOf(r,t.length-r.length))return r;if(-1!==t.indexOf(i,t.length-i.length))return i;var n=t.split(".");return n.length<5||"mro1cdnstorage"!==n[1]?void 0:n.slice(2).join(".")}(window.location.href);o=t&&"public.onecdn.static.microsoft"!==t?"public.cdn.office.net"===t||t===r||t===i?(n.officeCdnEndpoint.isOCDICompliant=!1,n.officeCdnEndpoint.isSovereign=!1,"https://appsforoffice.microsoft.com/lib/beta/hosted/"):(n.officeCdnEndpoint.isOCDICompliant=!1,n.officeCdnEndpoint.isSovereign=!0,"https://appsforoffice."+t+"/appsforoffice/lib/beta/hosted/"):(n.officeCdnEndpoint.isOCDICompliant=!0,n.officeCdnEndpoint.isSovereign=!1,"https://officeapis.public.onecdn.static.microsoft/beta/")}}function s(){if(!p.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_10910853_OfficeJsNPMDownloadTrustedDomainList"))return"object"==typeof officeInitializationSettings&&officeInitializationSettings?officeInitializationSettings:{};if(!n){var e="officeInitializationSettings";if(window.hasOwnProperty(e)){var t=window[e];"object"==typeof t&&null!==t&&(n=t)}1!==p.OUtil.getLibraryReleaseVehicle()?n?n.officeCdnEndpoint={}:n={trustAllCloudEnvironments:!1,officeCdnEndpoint:{}}:(n&&n.officeCdnEndpoint&&"object"==typeof n.officeCdnEndpoint||(n={trustAllCloudEnvironments:!1,officeCdnEndpoint:{origin:"",isSovereign:!1,isOCDICompliant:!1,isSdx:!0,trustedTypesOptIn:!1}}),"string"==typeof n.officeCdnEndpoint.origin?n.officeCdnEndpoint.origin=n.officeCdnEndpoint.origin.trim():n.officeCdnEndpoint.origin="",n.officeCdnEndpoint.isSdx=!0,a())}return n}e.getCustomOfficeInitializationSettings=s,e.getAppsForOfficeBaseForNpm=function(){return o||s(),o||""}}(f=p.OUtil||(p.OUtil={})),function(e){var s,n=null,r=!1,d=["excel","word","powerpoint","onenote","outlook","visio","office-common","office.common","office","officebase"],h=[".js",".debug.js"],g="_osfDisableHostCheck",c=function(){try{return document.currentScript}catch(e){return null}}();function i(){return 1===p.OUtil.getLibraryReleaseVehicle()?p.OUtil.getCustomOfficeInitializationSettings().officeCdnEndpoint.trustedTypesOptIn:(o(),s.trustedTypesOptIn)}function l(e,t){var n=null!=e?e.src:null;if(!n)return null;var r=n.toLowerCase(),i="",o=!1,a=!0,s=void 0,c=!1;if(t){var l=r.indexOf(t);if(!(0<=l)||0!==l&&"/"!==n.charAt(l-1)&&"\\"!==n.charAt(l-1)||l+t.length!==n.length&&"?"!==n.charAt(l+t.length))a=!1;else{i=n.substring(0,l),o=0<r.indexOf(".debug.js",l);var u=e.getAttribute("data-is-sdx");c="1"===u||"true"===u;var p=e.getAttribute("data-enable-trusted-types");s=null!=p?"1"===p||"true"===p:void 0}}return a?{basePath:i,name:t||"",isDebugJs:o,isSdx:c,disableHostCheck:window.hasOwnProperty(g)&&!0===window[g],trustedTypesOptIn:s}:null}function o(){if(!s){if(p.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_10910853_OfficeJsNPMDownloadTrustedDomainList")){function e(e){for(var t=0;t<d.length;t++)for(var n=0;n<h.length;n++){var r=l(e,d[t]+h[n]);if(r)return r}return null}if(1===p.OUtil.getLibraryReleaseVehicle())return void(s=l(c,null));if(s=e(c))return;for(var t=document.getElementsByTagName("script"),n=t.length,r=0;r<n;r++)if(s=e(t[r]))return}else{function i(e){var t=null!=e?e.src:null;if(!t)return null;for(var n=t.toLowerCase(),r=0;r<d.length;r++)for(var i=0;i<h.length;i++){var o=d[r]+h[i],a=n.indexOf(o);if(0<=a&&(0===a||"/"===t.charAt(a-1)||"\\"===t.charAt(a-1))&&(a+o.length===t.length||"?"===t.charAt(a+o.length))){var s=t.substring(0,a),c=0<n.indexOf(".debug.js",a),l=e.getAttribute("data-is-sdx"),u="1"===l||"true"===l,p=e.getAttribute("data-enable-trusted-types"),f=null!=p?"1"===p||"true"===p:void 0;return{basePath:s,name:o,isDebugJs:c,isSdx:u,disableHostCheck:window.hasOwnProperty(g)&&!0===window[g],trustedTypesOptIn:f}}}return null}if(s=i(c))return;var o=document.getElementsByTagName("script"),a=o.length;for(r=0;r<a;r++)if(s=i(o[r]))return}s={basePath:"",name:"",isDebugJs:!1,isSdx:!1,disableHostCheck:!1,trustedTypesOptIn:!1}}}e.getHostBundleJsBasePath=function(){return p.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_10910853_OfficeJsNPMDownloadTrustedDomainList")&&1===p.OUtil.getLibraryReleaseVehicle()?p.OUtil.getAppsForOfficeBaseForNpm():(o(),s.basePath)},e.getHostBundleJsName=function(){return o(),s.name},e.getOfficeStringJsName=function(){return o(),s.isDebugJs?p.ConstantNames.OfficeStringDebugJS:p.ConstantNames.OfficeStringJS},e.isSdx=function(){return 1===p.OUtil.getLibraryReleaseVehicle()?p.OUtil.getCustomOfficeInitializationSettings().officeCdnEndpoint.isSdx:(o(),s.isSdx)},e.disableHostCheck=function(){return o(),s.disableHostCheck},e.getTrustedTypesOptIn=i,e.loadScriptWithBasename=function(e,t,n){o();var r=e+(s.isDebugJs?".debug.js":".js");r=r.toLowerCase();var i=s.basePath+r;f.loadScript(i,t,u())};var a=["https://alcdn.msauth.net/browser-1p/2.28.1/js/msal-browser-1p.min.js"];function u(){if(!r){r=!0;try{var e=i();if(!(null!=e?e:p.OUtil.isSecureDefaultsEnabled())||!window.trustedTypes||!window.trustedTypes.createPolicy)return null;var t=c.src,o=new URL(t).origin.toLowerCase();if(!o)return null;n=window.trustedTypes.createPolicy("officejs",{createScriptURL:function(e){var t=e.toLowerCase(),n=new URL(t).origin;if(o&&o===n)return e;for(var r=0,i=a;r<i.length;r++){if(t===i[r])return e}throw new Error("Untrusted script URL")}})}catch(e){}}return n}e.getTrustedTypesPolicy=u}(p.LoadScriptHelper||(p.LoadScriptHelper={}))}(OSF=(OSF=OSF||{})||{}),function(e){var t,n;(n=t=e.LiveShareStateParams||(e.LiveShareStateParams={}))[n.MaxLiveShareStateDataSizeInBytes=1024]="MaxLiveShareStateDataSizeInBytes";var r=(i.prototype.get=function(){return this._liveShareState},i.prototype.set=function(e){if((new TextEncoder).encode(e).length>t.MaxLiveShareStateDataSizeInBytes)throw new Error("State data size is limited to "+t.MaxLiveShareStateDataSizeInBytes+" bytes.");this._liveShareState=e},i.prototype.addHandlerAsync=function(e,t,n){OSF.EventHelper.addEventHandler(e,t,n,this._eventDispatch)},i.prototype.removeHandlerAsync=function(e,t,n){OSF.EventHelper.removeEventHandler(e,t,n,this._eventDispatch)},i);function i(e){var t=this;e=e||null,this._liveShareState=e,this._eventDispatch=new OSF.EventDispatch([{id:OSF.EventDispId.dispidLiveShareStateChangedEvent,type:OSF.EventType.LiveShareStateChanged,getTargetId:function(){return""},fromSafeArrayHost:function(e){return{type:OSF.EventType.LiveShareStateChanged,liveShareState:t}},fromWebHost:function(e){return{type:OSF.EventType.LiveShareStateChanged,liveShareState:t}}}])}e.LiveShareState=r}(Office=Office||{}),function(e){var i={"ar-sa":!0,"bg-bg":!0,"bn-in":!0,"ca-es":!0,"cs-cz":!0,"da-dk":!0,"de-de":!0,"el-gr":!0,"en-us":!0,"es-es":!0,"et-ee":!0,"eu-es":!0,"fa-ir":!0,"fi-fi":!0,"fr-fr":!0,"gl-es":!0,"he-il":!0,"hi-in":!0,"hr-hr":!0,"hu-hu":!0,"id-id":!0,"it-it":!0,"ja-jp":!0,"kk-kz":!0,"ko-kr":!0,"lo-la":!0,"lt-lt":!0,"lv-lv":!0,"ms-my":!0,"nb-no":!0,"nl-nl":!0,"nn-no":!0,"pl-pl":!0,"pt-br":!0,"pt-pt":!0,"ro-ro":!0,"ru-ru":!0,"sk-sk":!0,"sl-si":!0,"sr-cyrl-cs":!0,"sr-cyrl-rs":!0,"sr-latn-cs":!0,"sr-latn-rs":!0,"sv-se":!0,"th-th":!0,"tr-tr":!0,"uk-ua":!0,"ur-pk":!0,"vi-vn":!0,"zh-cn":!0,"zh-tw":!0},o={ar:"ar-sa",bg:"bg-bg",bn:"bn-in",ca:"ca-es",cs:"cs-cz",da:"da-dk",de:"de-de",el:"el-gr",en:"en-us",es:"es-es",et:"et-ee",eu:"eu-es",fa:"fa-ir",fi:"fi-fi",fr:"fr-fr",gl:"gl-es",he:"he-il",hi:"hi-in",hr:"hr-hr",hu:"hu-hu",id:"id-id",it:"it-it",ja:"ja-jp",kk:"kk-kz",ko:"ko-kr",lo:"lo-la",lt:"lt-lt",lv:"lv-lv",ms:"ms-my",nb:"nb-no",nl:"nl-nl",nn:"nn-no",pl:"pl-pl",pt:"pt-br",ro:"ro-ro",ru:"ru-ru",sk:"sk-sk",sl:"sl-si",sr:"sr-cyrl-cs",sv:"sv-se",th:"th-th",tr:"tr-tr",uk:"uk-ua",ur:"ur-pk",vi:"vi-vn",zh:"zh-cn"};e.getSupportedLocale=function(e,t){if(void 0===t&&(t="en-us"),!e)return t;var n;if((e=e.toLowerCase())in i)n=e;else{var r=e.split("-",1);r&&0<r.length&&(n=o[r[0]])}return n=n||t}}(OSF=OSF||{}),function(e){e.OfficeOM||(e.OfficeOM={})}(Strings=Strings||{}),function(i){var o,e;(o=i.OUtil||(i.OUtil={})).ensureOfficeStringsJs=function(){return e=e||(1==i.OUtil.getLibraryReleaseVehicle()?new Office.Promise(function(e,t){e()}):new Office.Promise(function(n,r){if(i.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_9441111_DefaultLocaleOfficeStrings")){var e=i.LoadScriptHelper.getHostBundleJsBasePath()+i.ConstantNames.DefaultLocale+"/"+i.LoadScriptHelper.getOfficeStringJsName();i.OUtil.loadScript(e,function(e){e?n():r(new Error("Cannot load "+i.ConstantNames.OfficeStringJS))},i.LoadScriptHelper.getTrustedTypesPolicy())}else{if(!i._OfficeAppFactory.getHostInfo().hostLocale)return void r(new Error("No host locale"));e=i.LoadScriptHelper.getHostBundleJsBasePath()+i._OfficeAppFactory.getHostInfo().hostLocale+"/"+i.LoadScriptHelper.getOfficeStringJsName();i.OUtil.loadScript(e,function(e){if(e)n();else{var t=i.LoadScriptHelper.getHostBundleJsBasePath()+i.ConstantNames.DefaultLocale+"/"+i.LoadScriptHelper.getOfficeStringJsName();o.loadScript(t,function(e){e?n():r(new Error("Cannot load "+i.ConstantNames.OfficeStringJS))},i.LoadScriptHelper.getTrustedTypesPolicy())}},i.LoadScriptHelper.getTrustedTypesPolicy())}}))}}(OSF=OSF||{}),function(u){var e,t,n;e=u.context||(u.context={}),t=e.document||(e.document={}),OSF.definePropertyOnNamespace(t,"url",function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_docUrl()}),OSF.definePropertyOnNamespace(t,"mode",function(){return 0==OSF._OfficeAppFactory.getOfficeAppContext().get_clientMode()?u.DocumentMode.ReadOnly:u.DocumentMode.ReadWrite}),OSF.definePropertyOnNamespace(t,"settings",function(){if(!n){var e=OSF._OfficeAppFactory.getOfficeAppContext().get_settingsFunc()();n=OSF._OfficeAppFactory.getInitializationHelper().createSettings(e)}return n}),t.goToByIdAsync=function(e,t,n,r){var i={};i[u.GoToType.Binding]=0,i[u.GoToType.NamedItem]=1,i[u.GoToType.Slide]=2,i[u.GoToType.Index]=3;var o={};o[u.SelectionMode.Default]=0,o[u.SelectionMode.Selected]=1,o[u.SelectionMode.None]=2;var a=i[t],s=0,c=r;"function"==typeof n?c=n:void 0!==n&&(s=o[n]);var l={toSafeArrayHost:function(){return[e,a,s]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{DdaGoToByIdMethod:{Id:e,GoToType:a,SelectionMode:s}}},fromWebHost:function(e){return e}};OSF._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(82,l,c)}}(Office=Office||{}),function(e){var t,n;t=e.context||(e.context={}),(n=t.messaging||(t.messaging={})).sendMessage=function(e){if(OSF._OfficeAppFactory.getHostInfo().hostPlatform==OSF.HostInfoPlatform.web){var t=OSF._OfficeAppFactory.getWebAppState();t.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[t.id,OSF.AgaveHostAction.SendMessage,e])}else{var n=JSON.stringify(e);OSF._OfficeAppFactory.getClientHostController().execute(208,[n],null)}},n.registerOnMessageEventHandler=function(r){if(OSF._OfficeAppFactory.getHostInfo().hostPlatform==OSF.HostInfoPlatform.web)n.onMessage=r;else{OSF._OfficeAppFactory.getClientHostController().registerEvent(OSF.EventDispId.dispidOnSdxSendMessageEvent,"","",function(e,t){var n=t.toArray();r(JSON.parse(n[0]))},null)}}}(Office=Office||{}),function(r){var e,t,i;e=r.context||(r.context={}),OSF.definePropertyOnNamespace(e,"contentLanguage",function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_dataLocale()}),OSF.definePropertyOnNamespace(e,"displayLanguage",function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_appUILocale()}),OSF.definePropertyOnNamespace(e,"partitionKey",function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_partitionKey()}),OSF.definePropertyOnNamespace(e,"isDialog",function(){return OSF._OfficeAppFactory.getHostInfo().isDialog}),OSF.definePropertyOnNamespace(e,"touchEnabled",function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_touchEnabled()}),OSF.definePropertyOnNamespace(e,"commerceAllowed",function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_commerceAllowed()}),OSF.definePropertyOnNamespace(e,"host",function(){return OSF.HostName.Host.getInstance().getHost()}),OSF.definePropertyOnNamespace(e,"platform",function(){return OSF.HostName.Host.getInstance().getPlatform()}),OSF.definePropertyOnNamespace(e,"diagnostics",function(){return OSF.HostName.Host.getInstance().getDiagnostics(OSF._OfficeAppFactory.getOfficeAppContext().get_hostFullVersion())}),OSF.definePropertyOnNamespace(e,"requirements",function(){if(!t){var e=OSF._OfficeAppFactory.getOfficeAppContext();e&&(t=e.get_isDialog()?OSF.Requirement.RequirementsMatrixFactory.getDefaultDialogRequirementMatrix(e):OSF.Requirement.RequirementsMatrixFactory.getDefaultRequirementMatrix(e))}return t}),OSF.definePropertyOnNamespace(e,"officeTheme",function(){var e=OSF._OfficeAppFactory.getOfficeAppContext().get_officeThemeFunc();return e?"function"==typeof e?e():e:void 0}),OSF.definePropertyOnNamespace(e,"webAuth",function(){if(OSF.DDA.WebAuth)return OSF.DDA.WebAuth}),OSF.definePropertyOnNamespace(e,"auth",function(){if(OSF.DDA.Auth)return OSF.DDA.Auth}),OSF.definePropertyOnNamespace(e,"license",function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_eToken()}),OSF.definePropertyOnNamespace(e,"hostSettings",function(){if(!i){var e=OSF._OfficeAppFactory.getOfficeAppContext().get_hostSettingsFunc();if(void 0!==e){var t=e(),n=OSF.OUtil.deserializeSettings(t);i=new r.Settings(n,void 0)}}return i})}(Office=Office||{}),function(e){var t;((t=e.context||(e.context={})).ribbonGallery||(t.ribbonGallery={})).refreshRibbon=function(e){OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[OSF._OfficeAppFactory.getWebAppState().id,OSF.AgaveHostAction.RefreshRibbonGallery,e])}}(Office=Office||{}),function(e){var t,n;t=e.context||(e.context={}),(n=t.ui||(t.ui={})).taskPaneAction||(n.taskPaneAction={})}(Office=Office||{});var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};!function(r){function i(){r._officeOnReadyState.officeOnReadyPromise||(r._officeOnReadyState.officeOnReadyPromise=new r.Promise(function(e,t){r._officeOnReadyState.officeOnReadyPromiseResolve=e,r._officeOnReadyState.officeOnReadyPromiseReject=t}))}function t(){if(!r._officeOnReadyState.onReadyAllowsRejection||!r._officeOnReadyState.officeOnReadyRejected){for(OSFPerformance.officeOnReady||(OSFPerformance.officeOnReady=OSFPerformance.now()),r._officeOnReadyState.officeOnReadyPromiseResolve(r._officeOnReadyState.officeOnReadyHostAndPlatformInfo),r._officeOnReadyState.officeOnReadyPromiseReject=null;0<r._officeOnReadyState.officeOnReadyExternalCallbacks.length;)r._officeOnReadyState.officeOnReadyExternalCallbacks.shift()(r._officeOnReadyState.officeOnReadyHostAndPlatformInfo);r._officeOnReadyState.isOfficeOnReadyCalled||OSF.OUtil.waitForFunction(function(){return"function"==typeof r.initialize},function(e){e&&r.initialize(OSF._OfficeAppFactory.getOfficeAppContext().get_reason())},400,50)}}function n(e,t){i();var n=r._officeOnReadyState.officeOnReadyFired&&(!t||0===Object.keys(r._officeOnReadyState.heldLocks).length);return t&&r._officeOnReadyState.onReadyAllowsRejection&&r._officeOnReadyState.officeOnReadyRejected||e&&(n?e(r._officeOnReadyState.officeOnReadyHostAndPlatformInfo):t?r._officeOnReadyState.officeOnReadyExternalCallbacks.push(e):r._officeOnReadyState.officeOnReadyInternalCallbacks.push(e)),r._officeOnReadyState.officeOnReadyPromise}r.OnReadyLockId=r.OnReadyLockId||{CustomFunctionsRuntimeReady:"CustomFunctionsRuntimeReady"},r._officeOnReadyState=r._officeOnReadyState||{isOfficeOnReadyCalled:!1,officeOnReadyPromise:null,officeOnReadyPromiseResolve:null,officeOnReadyPromiseReject:null,officeOnReadyInternalCallbacks:[],officeOnReadyExternalCallbacks:[],officeOnReadyHostAndPlatformInfo:null,officeOnReadyFired:!1,officeOnReadyRejected:!1,officeOnReadyRejectionError:null,heldLocks:{},onReadyAllowsRejection:!1},r.initialize=r.initialize,r.onReadyInternal=function(e){return n(e,!1)},r.onReady=function(e){return n(e,r._officeOnReadyState.isOfficeOnReadyCalled=!0)},r.onReadyOptions=r.onReadyOptions||{setRejectionEnabled:function(){r._officeOnReadyState.onReadyAllowsRejection=!0}},r.rejectOfficeOnReady=function(e){r._officeOnReadyState.officeOnReadyRejected||(r._officeOnReadyState.officeOnReadyRejectionError=e,r._officeOnReadyState.officeOnReadyRejected=!0,r._officeOnReadyState.onReadyAllowsRejection&&(i(),r._officeOnReadyState.officeOnReadyPromiseReject&&(r._officeOnReadyState.officeOnReadyPromiseReject(e),r._officeOnReadyState.officeOnReadyExternalCallbacks=[])))},r.fireOnReady=function(e){i(),r._officeOnReadyState.officeOnReadyHostAndPlatformInfo=__assign({},e),r._officeOnReadyState.officeOnReadyFired=!0,function(){for(;0<r._officeOnReadyState.officeOnReadyInternalCallbacks.length;)r._officeOnReadyState.officeOnReadyInternalCallbacks.shift()(r._officeOnReadyState.officeOnReadyHostAndPlatformInfo)}(),0<Object.keys(r._officeOnReadyState.heldLocks).length||t()},r.acquireOnReadyLock=function(t){return Object.keys(r.OnReadyLockId).some(function(e){return r.OnReadyLockId[e]===t})?(r._officeOnReadyState.heldLocks[t]=!0,t):null},r.releaseOnReadyLock=function(e){r._officeOnReadyState.heldLocks[e]&&(delete r._officeOnReadyState.heldLocks[e],0===Object.keys(r._officeOnReadyState.heldLocks).length&&r._officeOnReadyState.officeOnReadyPromise&&r._officeOnReadyState.officeOnReadyFired&&t())}}(Office=Office||{}),function(N){var e=(t.prototype.get_id=function(){return this._id},t.prototype.get_appName=function(){return this._appName},t.prototype.get_appVersion=function(){return this._appVersion},t.prototype.get_appUILocale=function(){return this._appUILocale},t.prototype.get_dataLocale=function(){return this._dataLocale},t.prototype.get_docUrl=function(){return this._docUrl},t.prototype.get_clientMode=function(){return this._isWeb?this._clientMode:0==this._clientMode?Office.DocumentMode.ReadWrite:Office.DocumentMode.ReadOnly},t.prototype.get_settingsFunc=function(){return this._settingsFunc},t.prototype.get_reason=function(){return this._reason},t.prototype.get_osfControlType=function(){return this._osfControlType},t.prototype.get_eToken=function(){return this._eToken},t.prototype.get_correlationId=function(){return this._correlationId},t.prototype.get_appInstanceId=function(){return this._appInstanceId},t.prototype.get_touchEnabled=function(){return this._touchEnabled},t.prototype.get_commerceAllowed=function(){return this._commerceAllowed},t.prototype.get_appMinorVersion=function(){return this._appMinorVersion},t.prototype.get_requirementMatrix=function(){return this._requirementMatrix},t.prototype.get_dialogRequirementMatrix=function(){return this._dialogRequirementMatrix},t.prototype.get_hostCustomMessage=function(){return this._hostCustomMessage},t.prototype.get_hostFullVersion=function(){return this._hostFullVersion},t.prototype.get_isDialog=function(){return this._isDialog},t.prototype.get_clientWindowHeight=function(){return this._clientWindowHeight},t.prototype.get_clientWindowWidth=function(){return this._clientWindowWidth},t.prototype.get_addinName=function(){return this._addinName},t.prototype.get_appDomains=function(){return this._appDomains},t.prototype.get_taskpaneUrl=function(){return this._taskpaneUrl},t.prototype.set_taskpaneUrl=function(e){this._taskpaneUrl=e},t.prototype.get_featureGates=function(){return this._featureGates},t.prototype.get_officeThemeFunc=function(){return this._officeThemeFunc},t.prototype.get_initialDisplayMode=function(){return this._initialDisplayMode?this._initialDisplayMode:0},t.prototype.get_isFromWacAutomation=function(){return this._isFromWacAutomation},t.prototype.get_wopiHostOriginForSingleSignOn=function(){return this._wopiHostOriginForSingleSignOn},t.prototype.get_hostSettingsFunc=function(){return this._hostSettingsFunc},t.prototype.get_isWeb=function(){return this._isWeb},t.prototype.get_nestedAppAuthBridgeType=function(){return this._nestedAppAuthBridgeType},t.prototype.get_partitionKey=function(){return this._partitionKey},t.prototype.get_topFrameOrigin=function(){return this._topFrameOrigin},t);function t(e,t,n,r,i,o,a,s,c,l,u,p,f,d,h,g,m,y,v,b,_,O,S,C,A,P,E,T,I,w,R,D,x,F){this._id=e,this._appName=t,this._appVersion=n,this._appUILocale=r,this._dataLocale=i,this._docUrl=o,this._clientMode=a,this._settingsFunc=s,this._reason=c,this._osfControlType=l,this._eToken=u,this._correlationId=p,this._appInstanceId=f,this._touchEnabled=d,this._commerceAllowed=h,this._appMinorVersion=g,this._requirementMatrix=m,this._hostCustomMessage=y,this._hostFullVersion=v,this._isDialog=N.OUtil.isDialog(),this._clientWindowHeight=b,this._clientWindowWidth=_,this._addinName=O,this._appDomains=S,this._dialogRequirementMatrix=C,this._featureGates=A,this._officeThemeFunc=P,this._initialDisplayMode=E,this._isFromWacAutomation=T,this._wopiHostOriginForSingleSignOn=I,this._hostSettingsFunc=w,this._isWeb=R,this._nestedAppAuthBridgeType=D,this._partitionKey=x,this._topFrameOrigin=F}N.OfficeAppContext=e}(OSF=OSF||{}),function(l){(l._OfficeAppFactory||(l._OfficeAppFactory={})).retrieveHostInfo=function(){var e={isO15:!0,isRichClient:!0,hostType:"",hostPlatform:"",hostSpecificFileVersion:"",hostLocale:"",osfControlAppCorrelationId:"",isDialog:!1,disableLogging:!1,flags:0},t="_host_Info",n=null;try{if(window.external=window.external||{},"undefined"!=typeof agaveHost&&agaveHost.GetHostInfo&&(window.external.GetHostInfo=function(){return agaveHost.GetHostInfo()}),window.external.GetHostInfo){var r=window.external.GetHostInfo();if("isDialog"==r)e.isO15=!0,e.isDialog=!0;else{var i=r.split(t+"=");n=1<i.length?i[1]:r}}}catch(e){l.Utility.log(JSON.stringify(e))}if(!n)try{var o=window.name;if(o){var a=JSON.parse(o);n=a?a.hostInfo:null}}catch(e){l.Utility.log(JSON.stringify(e))}n=n||l.Utility.getQueryStringValue(t);var s=l.OUtil.getSessionStorage();if(!n&&s.getItem("hostInfoValue")&&(n=s.getItem("hostInfoValue")),n){n=decodeURIComponent(n),e.isO15=!1;var c=n.split("$");void 0===c[2]&&(c=n.split("|")),e.hostType=void 0===c[0]?"":c[0].toLowerCase(),e.hostPlatform=void 0===c[1]?"":c[1].toLowerCase(),e.hostSpecificFileVersion=void 0===c[2]?"":c[2].toLowerCase(),e.hostLocale=void 0===c[3]?"":c[3].toLowerCase(),e.osfControlAppCorrelationId=void 0===c[4]?"":c[4],"telemetry"==e.osfControlAppCorrelationId&&(e.osfControlAppCorrelationId=""),e.isDialog=void 0!==c[5]&&"isDialog"==c[5],e.disableLogging=void 0!==c[6]&&"disableLogging"==c[6],e.flags="string"==typeof c[7]&&0<c[7].length?parseInt(c[7]):0,s.setItem("hostInfoValue",n)}else e.isO15=!0,e.hostLocale=l.Utility.getQueryStringValue("locale");return e}}(OSF=OSF||{}),function(f){var e;!function(e){var t,n,r,o,a,i,s,c,l;"undefined"!=typeof window&&(window.location&&(t=window.location.hash,n=window.location.search),r=window.name);var u={0:"Unknown",1:"Hidden",2:"Taskpane",3:"Dialog"};function p(e,t){f.AppCommandManager.initialize();var n=e.get_appName(),r=null;0!=(o.flags&f.HostInfoFlags.SharedApp)&&(r={visibilityMode:u[e.get_initialDisplayMode()]});var i={host:f.HostName.Host.getInstance().getHost(n),platform:f.HostName.Host.getInstance().getPlatform(n),addin:r};0==(o.flags&f.HostInfoFlags.CustomFunctionsInitAfterCFRuntimeReady)||0==(o.flags&f.HostInfoFlags.CustomFunction)||e.get_isDialog()||"function"==typeof Office.acquireOnReadyLock&&Office.OnReadyLockId,o.hostPlatform!=f.HostInfoPlatform.web||Microsoft.Office.WebExtension.Interactive||(Microsoft.Office.WebExtension.Interactive=function(e){null!=a.clientEndPoint&&a.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[a.id,f.AgaveHostAction.Interactive,{isInteractive:e,timestamp:Date.now()}])}),Office.fireOnReady(i),o.hostPlatform==f.HostInfoPlatform.web&&null!=a.clientEndPoint&&a.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[a.id,f.AgaveHostAction.OfficeJsReady,Date.now()]),t(e)}e.bootstrap=function(t,n){if(a={id:null,webAppUrl:null,conversationID:null,clientEndPoint:null,wnd:window.parent,focused:!1,serviceEndPoint:null},o=e.retrieveHostInfo(),function(){0;try{if(o.disableLogging)return 0;window.external=window.external||{},void 0===window.external.GetLoggingAllowed||window.external.GetLoggingAllowed()}catch(e){}}(),function(){if(o.hostPlatform===f.HostInfoPlatform.web)i=new f.WebInitializationHelper(o,a,null,null);else if(o.hostPlatform===f.HostInfoPlatform.win32)i=new f.RichClientInitializationHelper(o,a,null,null);else if(o.hostPlatform===f.HostInfoPlatform.ios||o.hostPlatform===f.HostInfoPlatform.mac){if(!(window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.Agave))throw f.Utility.createNotImplementedException();i=new f.WebkitInitializationHelper(o,a,null,null)}else o.hostPlatform===f.HostInfoPlatform.android||o.hostPlatform===f.HostInfoPlatform.winrt?i=new f.WebViewInitializationHelper(o,a,null,null):console.warn("Office.js is loaded inside in unknown host or platform "+o.hostPlatform)}(),i){o.hostPlatform===f.HostInfoPlatform.web&&i.saveAndSetDialogInfo(f.Utility.getQueryStringValue("_host_Info")),i.setAgaveHostCommunication(),i.setupNestedAppAuthDependencies(),OSFPerformance.getAppContextStart=OSFPerformance.now();i.getAppContext(window,function(e){OSFPerformance.getAppContextEnd=OSFPerformance.now(),f.AppTelemetry.initialize(e),c=e,l=i.createClientHostController(),s=i.createAsyncMethodExecutor(),i.prepareApiSurface(e),f.BootStrapExtension.onGetAppContext?f.BootStrapExtension.onGetAppContext(e,a.wnd).then(function(){p(e,t)}):p(e,t)},function(e){n(e)})}else n(new Error("Office.js cannot be initialized."))},e.getWindowName=function(){return r},e.getWindowLocationHash=function(){return t},e.getWindowLocationSearch=function(){return n},e.getAsyncMethodExecutor=function(){return s},e.getOfficeAppContext=function(){return c},e.getHostInfo=function(){return o},e.getCachedSessionSettingsKey=function(){return(null!=a.conversationID?a.conversationID:c.get_appInstanceId())+"CachedSessionSettings"},e.getWebAppState=function(){return a},e.getId=function(){return a.id},e.getInitializationHelper=function(){return i},e.getClientHostController=function(){return l}}(e=f._OfficeAppFactory||(f._OfficeAppFactory={})),f.getClientEndPoint=function(){return e.getWebAppState().clientEndPoint}}(OSF=OSF||{}),function(e){var t,n,r,i,o,a,s,c,l,u,p,f,d,h;(t=e.AsyncResultStatus||(e.AsyncResultStatus={})).Succeeded="succeeded",t.Failed="failed",(n=e.DocumentMode||(e.DocumentMode={})).ReadOnly="readOnly",n.ReadWrite="readWrite",(r=e.HostType||(e.HostType={})).Word="Word",r.Excel="Excel",r.PowerPoint="PowerPoint",r.Outlook="Outlook",r.OneNote="OneNote",r.Project="Project",r.Access="Access",r.Visio="Visio",(i=e.InitializationReason||(e.InitializationReason={})).Inserted="inserted",i.DocumentOpened="documentOpened",(o=e.PlatformType||(e.PlatformType={})).PC="PC",o.OfficeOnline="OfficeOnline",o.Mac="Mac",o.iOS="iOS",o.Android="Android",o.Universal="Universal",(a=e.GoToType||(e.GoToType={})).Binding="binding",a.NamedItem="namedItem",a.Slide="slide",a.Index="index",(s=e.SelectionMode||(e.SelectionMode={})).Default="default",s.Selected="selected",s.None="none",(c=e.ValueFormat||(e.ValueFormat={})).Unformatted="unformatted",c.Formatted="formatted",(l=e.FileType||(e.FileType={})).Text="text",l.Compressed="compressed",l.Pdf="pdf",e.CoercionType={Html:"html",Matrix:"matrix",Ooxml:"ooxml",OoxmlPackage:"ooxmlPackage",PdfFile:"pdfFile",SlideRange:"slideRange",Table:"table",Text:"text"},(u=e.BindingType||(e.BindingType={})).Table="table",u.Text="text",u.Matrix="matrix",(p=e.FilterType||(e.FilterType={})).OnlyVisible="onlyVisible",p.All="all",(f=e.Table||(e.Table={}))[f.All=0]="All",f[f.Data=1]="Data",f[f.Headers=2]="Headers",(d=e.ActiveView||(e.ActiveView={})).Read="read",d.Edit="edit",(h=e.UndoStackChangedReason||(e.UndoStackChangedReason={}))[h.None=0]="None",h[h.EditOccurred=1]="EditOccurred",h[h.NewUndoEntry=2]="NewUndoEntry",h[h.UndoPerformed=4]="UndoPerformed",h[h.RedoPerformed=8]="RedoPerformed",h[h.UndoStackCleared=16]="UndoStackCleared"}(Office=Office||{});var OSFPerfUtil,OSFWebkit,SDX,OTel,Microsoft,__extends=this&&this.__extends||function(){var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(o,a,s,c){return new(s=s||Promise)(function(e,t){function n(e){try{i(c.next(e))}catch(e){t(e)}}function r(e){try{i(c.throw(e))}catch(e){t(e)}}function i(t){t.done?e(t.value):new s(function(e){e(t.value)}).then(n,r)}i((c=c.apply(o,a||[])).next())})},__generator=this&&this.__generator||function(n,r){var i,o,a,e,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return e={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,o&&(a=2&t[0]?o.return:t[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,t[1])).done)return a;switch(o=0,a&&(t=[2&t[0],a.value]),t[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,o=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=r.call(n,s)}catch(e){t=[6,e],o=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}};(OfficeExt||(OfficeExt={})).appSpecificCheckOrigin=function(e,t,n,r){return!1},function(A){var a=(e.prototype.getMethod=function(){return this._method},e.prototype.getInvokeType=function(){return this._invokeType},e.prototype.getBlockingFlag=function(){return this._blockingOthers},e);function e(e,t,n){this._method=e,this._invokeType=t,this._blockingOthers=n}A.XdmMethodObject=a;var s=(t.prototype.getRegisterMethodObject=function(){return this._registerMethodObject},t.prototype.getUnregisterMethodObject=function(){return this._unregisterMethodObject},t);function t(e,t){this._registerMethodObject=e,this._unregisterMethodObject=t}A.XdmEventMethodObject=s;var n=(r.prototype.registerMethod=function(e,t,n,r){if(0!==n&&1!==n)throw A.Utility.createArgumentException("invokeType");var i=new a(t,n,r);this._methodObjectList[e]=i},r.prototype.unregisterMethod=function(e){delete this._methodObjectList[e]},r.prototype.registerEvent=function(e,t,n){var r=new s(new a(t,4,!1),new a(n,5,!1));this._methodObjectList[e]=r},r.prototype.registerEventEx=function(e,t,n,r,i){var o=new s(new a(t,n,!1),new a(r,i,!1));this._methodObjectList[e]=o},r.prototype.unregisterEvent=function(e){this.unregisterMethod(e)},r.prototype.registerConversation=function(e,t,n){if(A.Utility.xdmDebugLog("registerConversation: cId="+e+" Url="+t),n){if(!Array.isArray(n))throw A.Utility.createArgumentException("appDomains");this._appDomains[e]=n}this._conversations[e]={url:t}},r.prototype.unregisterConversation=function(e){delete this._conversations[e]},r.prototype.setPolicyManager=function(e){if(!e.checkPermission)throw A.Utility.createArgumentException("policyManager");this._policyManager=e},r.prototype.getPolicyManager=function(){return this._policyManager},r.prototype.dispose=function(){this._methodObjectList=null,this._eventHandlerProxyList=null,this._Id=null,this._conversations=null,this._policyManager=null,this._appDomains=null,this._onHandleRequestError=null},r);function r(e){this._methodObjectList={},this._eventHandlerProxyList={},this._conversations={},this._policyManager=null,this._appDomains={},this._onHandleRequestError=null,this._methodObjectList={},this._eventHandlerProxyList={},this._Id=e,this._conversations={},this._policyManager=null,this._appDomains={},this._onHandleRequestError=null}A.XdmServiceEndPoint=n;var l,i,o,c,P,E,T,I,u,p,f,d=(Object.defineProperty(h.prototype,"targetUrl",{get:function(){return this._targetUrl},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"hostTrustCheckStatus",{get:function(){return this._hostTrustCheckStatus},set:function(e){this._hostTrustCheckStatus=e},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"fHostTrusted",{get:function(){return this._fHostTrusted},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"checkStatusLogged",{get:function(){return this._checkStatusLogged},set:function(e){this._checkStatusLogged=e},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"checkReceiverOriginAndRun",{get:function(){return this._checkReceiverOriginAndRun},set:function(e){this._checkReceiverOriginAndRun=e},enumerable:!0,configurable:!0}),h.prototype.invoke=function(o,a,s){function e(){var t=c._callingIndex++,e=new Date,n={callback:a,createdOn:e.getTime()};s&&"object"==typeof s&&"number"==typeof s.__timeout__&&(n.timeout=s.__timeout__,delete s.__timeout__),c._callbackList[t]=n;try{if(3!==c._hostTrustCheckStatus&&"ContextActivationManager_getAppContextAsync"!==o)throw"Access Denied";var r=new B(o,0,c._conversationId,t,s),i=J.envelope(r);c._targetWindow.postMessage(i,c._targetUrl),l._startMethodTimeoutTimer()}catch(e){try{null!==a&&a(-1,e)}finally{delete c._callbackList[t]}}}var c=this;this._checkReceiverOriginAndRun?this._checkReceiverOriginAndRun(e):(this._hostTrustCheckStatus=3,e())},h.prototype.registerForEvent=function(e,t,n,r){var i=this._callingIndex++,o=new Date;this._callbackList[i]={callback:n,createdOn:o.getTime()};try{var a=new B(e,1,this._conversationId,i,r),s=J.envelope(a);this._targetWindow.postMessage(s,this._targetUrl),l._startMethodTimeoutTimer(),this._eventHandlerList[e]=t}catch(e){try{null!==n&&n(-1,e)}finally{delete this._callbackList[i]}}},h.prototype.unregisterForEvent=function(e,t,n){var r=this._callingIndex++,i=new Date;this._callbackList[r]={callback:t,createdOn:i.getTime()};try{var o=new B(e,2,this._conversationId,r,n),a=J.envelope(o);this._targetWindow.postMessage(a,this._targetUrl),l._startMethodTimeoutTimer()}catch(e){try{null!==t&&t(-1,e)}finally{delete this._callbackList[r]}}finally{delete this._eventHandlerList[e]}},h);function h(e,t,n){this._callbackList={},this._eventHandlerList={},this._hostTrustCheckStatus=0,this._checkStatusLogged=!1,this._fHostTrusted=!1,this._conversationId=e,this._targetWindow=t,this._targetUrl=n,this._callingIndex=0,this._callbackList={},this._eventHandlerList={},this._checkReceiverOriginAndRun=null}function w(e){for(var t in u)if(u[t]._conversations[e])return u[t];throw A.Utility.createArgumentException("conversationId")}function R(e){var t=p[e];return t||A.Utility.xdmDebugLog("Unknown conversation Id."),t}function D(e,t){var n=e._methodObjectList[t._actionName];if(!n)throw A.Utility.xdmDebugLog("The specified method is not registered on service endpoint:"+t._actionName),A.Utility.createArgumentException("messageObject");return 0===t._actionType?n:1===t._actionType?n.getRegisterMethodObject():n.getUnregisterMethodObject()}function x(e){c.push(e)}function F(){null!==E?I||(0<c.length?N(c.shift()):(clearInterval(E),E=null)):A.Utility.xdmDebugLog("channel is not ready.")}function N(e){I=e.getInvokeBlockingFlag(),e.invoke(),P=(new Date).getTime()}function k(){I=!1}function g(e){if(window.addEventListener)window.addEventListener("message",e,!1);else{if(!(-1<navigator.userAgent.indexOf("MSIE")&&window.attachEvent))throw A.Utility.xdmDebugLog("Browser doesn't support the required API."),A.Utility.createArgumentException("Browser");window.attachEvent("onmessage",e)}}function j(e,t){return e&&t&&"null"!==e&&"null"!==t&&e.length&&t.length&&y(A.OUtil.parseUrl(e,!0),A.OUtil.parseUrl(t,!0))}function M(e,t){var n=!1;if(!(t&&"null"!==t&&t.length&&e&&e instanceof Array&&e.length))return n;for(var r=0;r<e.length&&!n;r++)if(-1!==e[r].indexOf("://")){var i=A.OUtil.parseUrl(t,!0);n=y(A.OUtil.parseUrl(e[r],!0),i)}return n}function _(e){if(!e||"null"===e)return!1;var t=new Array("^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===A.OUtil.getCustomOfficeInitializationSettings().trustAllCloudEnvironments&&t.push("^partner\\.outlook\\.cn$","^.*\\.partner\\.officewebapps\\.cn$"),new RegExp(t.join("|")).test(e)}function m(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return o=o||new A.SovereignHelper,[4,(t=o).isConfigAvailable()];case 1:return e.sent()?[4,t.isSovereignHostTrusted(n)]:[2,!1];case 2:return[2,e.sent()]}})})}function H(e,t){if(!e||!t||"null"===e||"null"===t)return!1;var n=A.OUtil.parseUrl(e,!0),r=A.OUtil.parseUrl(t,!0);if(null==n||null==r)return!1;var i=n.protocol===r.protocol,o=n.port===r.port,a=r.hostname,s=n.hostname,c=a===s,l=!1;return!c&&a.length>s.length+1&&(l=a.slice(-(s.length+1))==="."+s),o&&i&&(c||l)}function y(e,t){return e.hostname==t.hostname&&e.protocol==t.protocol&&e.port==t.port}function v(C){return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o,a,s,c,l,u,p,f,d,h,g,m,y,v,b,_,O,S;return __generator(this,function(e){switch(e.label){case 0:if(""==C.data)return[3,10];n=C.data;try{t=J.unenvelope(n)}catch(e){return[2]}if(A.Utility.xdmDebugLog(n),0!==t._messageType)return[3,9];r=null==C.origin||"null"===C.origin?t._origin:C.origin,e.label=1;case 1:if(e.trys.push([1,2,,8]),i=w(t._conversationId),A.Utility.xdmDebugLog("_receiveAsync: request, origin="+r+" sourceURL:"+i._conversations[t._conversationId]),o=i._conversations[t._conversationId],A.Utility.xdmDebugLog("_receiveAsync: request, origin="+r+" sourceURL:"+o.url),!M(a=[o.url].concat(i._appDomains[t._conversationId]),C.origin)&&!OfficeExt.appSpecificCheckOrigin(a,C,t._origin,M)&&!H(o.url,C.origin))throw"Failed origin check";if((s=i.getPolicyManager())&&!s.checkPermission(t._conversationId,t._actionName,t._data))throw"Access Denied";return c=D(i,t),l=new $(C.source,r,t._actionName,t._conversationId,t._correlationId,k),u=new Y(c,t._data,l,i._eventHandlerProxyList,t._conversationId,t._actionName),p=!0,null==E&&((null==P||(new Date).getTime()-P>T)&&!I?(N(u),p=!1):E=setInterval(F,T)),p&&x(u),[3,8];case 2:f=e.sent(),i&&i._onHandleRequestError&&i._onHandleRequestError(t,f),d=-2,"Access Denied"==f&&(d=-5),h=new V(t._actionName,t._conversationId,t._correlationId,d,0,f),g=J.envelope(h),m=!1;try{m=!(!C.source||!C.source.postMessage)}catch(e){}return(y=!1,window.location.href&&C.origin&&"null"!==C.origin&&H(window.location.href,C.origin))?(y=!0,[3,7]):[3,3];case 3:if(!C.origin||"null"===C.origin)return[3,7];v=A.OUtil.parseUrl(C.origin,!0).hostname,e.label=4;case 4:return e.trys.push([4,6,,7]),[4,U(v,null)];case 5:return y=e.sent(),[3,7];case 6:return b=e.sent(),A.Utility.xdmDebugLog("isHostNameValidWacDomainAsync failed with exception: "+b),y=!1,[3,7];case 7:return m&&y&&C.source.postMessage(g,r),[3,8];case 8:return[3,10];case 9:if(1!==t._messageType)return[2];if(!(_=R(t._conversationId)))return[2];if(A.Utility.xdmDebugLog("_receiveAsync: response, origin="+C.origin+" targetURL:"+_._targetUrl),!j(_._targetUrl,C.origin))throw"Failed orgin check";if(3==_._hostTrustCheckStatus&&(_._fHostTrusted=!0),0===t._responseType){if(O=_._callbackList[t._correlationId])try{O.callback&&O.callback(t._errorCode,t._data)}finally{delete _._callbackList[t._correlationId]}}else null!=(S=_._eventHandlerList[t._actionName])&&S(t._data);e.label=10;case 10:return[2]}})})}function b(t){if(""!=t.data){var n,e=t.data;try{n=J.unenvelope(e)}catch(e){return}if(A.Utility.xdmDebugLog(e),0===n._messageType){var r=null==t.origin||"null"===t.origin?n._origin:t.origin;try{var i=w(n._conversationId);A.Utility.xdmDebugLog("_receive: request, origin="+r+" sourceURL:"+i._conversations[n._conversationId]);var o=i._conversations[n._conversationId];A.Utility.xdmDebugLog("_receive: request, origin="+r+" sourceURL:"+o.url);var a=[o.url].concat(i._appDomains[n._conversationId]);if(!M(a,t.origin))if(!OfficeExt.appSpecificCheckOrigin(a,t,n._origin,M))if(!H(o.url,t.origin))throw"Failed origin check";var s=i.getPolicyManager();if(s&&!s.checkPermission(n._conversationId,n._actionName,n._data))throw"Access Denied";var c=D(i,n),l=new $(t.source,r,n._actionName,n._conversationId,n._correlationId,k),u=new Y(c,n._data,l,i._eventHandlerProxyList,n._conversationId,n._actionName),p=!0;null==E&&((null==P||(new Date).getTime()-P>T)&&!I?(N(u),p=!1):E=setInterval(F,T)),p&&x(u)}catch(e){i&&i._onHandleRequestError&&i._onHandleRequestError(n,e);var f=-2;"Access Denied"==e&&(f=-5);var d=new V(n._actionName,n._conversationId,n._correlationId,f,0,e),h=J.envelope(d),g=!1;try{g=!(!t.source||!t.source.postMessage)}catch(e){}var m=!1;if(window.location.href&&t.origin&&"null"!==t.origin&&H(window.location.href,t.origin))m=!0;else if(t.origin&&"null"!==t.origin)m=_(A.OUtil.parseUrl(t.origin,!0).hostname);g&&m&&t.source.postMessage(h,r)}}else{if(1!==n._messageType)return;var y=R(n._conversationId);if(!y)return;if(A.Utility.xdmDebugLog("_receive: response, origin="+t.origin+" targetURL:"+y._targetUrl),!j(y._targetUrl,t.origin))throw"Failed orgin check";if(3==y._hostTrustCheckStatus&&(y._fHostTrusted=!0),0===n._responseType){var v=y._callbackList[n._correlationId];if(v)try{v.callback&&v.callback(n._errorCode,n._data)}finally{delete y._callbackList[n._correlationId]}}else{var b=y._eventHandlerList[n._actionName];null!=b&&b(n._data)}}}}function O(){f||(A.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_10910853_OfficeJsNPMDownloadTrustedDomainList")?g(v):g(b),f=!0)}function U(r,i){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return(t=!1,1===A.OUtil.getLibraryReleaseVehicle())?[3,3]:((n=A.SovereignHelper.isSovereignVersion())&&!0!==A.OUtil.getCustomOfficeInitializationSettings().trustAllCloudEnvironments||(t=_(r),i&&(t=t||i(r))),t||!n?[3,2]:[4,m(r)]);case 1:t=e.sent(),e.label=2;case 2:return[3,5];case 3:return[4,m(r)];case 4:(t=e.sent())||!A.LoadScriptHelper.isSdx()||A.SovereignHelper.isSovereignVersion()||(t=_(r)),e.label=5;case 5:return[2,t]}})})}A.XdmClientEndPoint=d,i=l=A.XdmCommunicationManager||(A.XdmCommunicationManager={}),c=[],E=P=null,I=!(T=10),u={},f=!(p={}),i.connect=function(e,t,n){var r=p[e];return r||(O(),r=new d(e,t,n),p[e]=r),r},i.getClientEndPoint=function(e){return p[e]},i.createServiceEndPoint=function(e){O();var t=new n(e);return u[e]=t},i.getServiceEndPoint=function(e){return u[e]},i.deleteClientEndPoint=function(e){delete p[e]},i.deleteServiceEndPoint=function(e){delete u[e]},i.checkUrlWithAppDomains=function(e,t){return M(e,t)},i.isTargetSubdomainOfSourceLocation=function(e,t){return H(e,t)},i._setMethodTimeout=function(e){0},i._startMethodTimeoutTimer=function(){},i.isHostNameValidWacDomain=function(e){return _(e)},i.isHostNameValidWacDomainAsync=U;var S=(C.prototype.getActionName=function(){return this._actionName},C.prototype.getConversationId=function(){return this._conversationId},C.prototype.getCorrelationId=function(){return this._correlationId},C.prototype.getOrigin=function(){return this._origin},C.prototype.getData=function(){return this._data},C.prototype.getMessageType=function(){return this._messageType},C);function C(e,t,n,r,i){this._messageType=e,this._actionName=t,this._conversationId=n,this._correlationId=r,this._origin=window.location.origin,this._data=void 0===i?null:i}var L,B=(__extends(W,L=S),W.prototype.getActionType=function(){return this._actionType},W);function W(e,t,n,r,i){var o=L.call(this,0,e,n,r,i)||this;return o._actionType=t,o}var G,V=(__extends(q,G=S),q.prototype.getErrorCode=function(){return this._errorCode},q.prototype.getResponseType=function(){return this._responseType},q);function q(e,t,n,r,i,o){var a=G.call(this,1,e,t,n,o)||this;return a._errorCode=r,a._responseType=i,a}var J=(z.envelope=function(e){return JSON.stringify(e)},z.unenvelope=function(e){return JSON.parse(e)},z);function z(){}var K=(X.prototype.getRequesterWindow=function(){return this._requesterWindow},X.prototype.getRequesterUrl=function(){return this._requesterUrl},X.prototype.getActionName=function(){return this._actionName},X.prototype.getConversationId=function(){return this._conversationId},X.prototype.getCorrelationId=function(){return this._correlationId},X.prototype.getSend=function(){return this._send},X.prototype.setResultCode=function(e){this._invokeResultCode=e},X);function X(e,t,n,r,i,o){var a=this;this._invokeResultCode=0,this._requesterWindow=e,this._requesterUrl=t,this._actionName=n,this._conversationId=r,this._correlationId=i,this._invokeResultCode=0,this._responseType=o,this._send=function(e){try{var t=new V(a._actionName,a._conversationId,a._correlationId,a._invokeResultCode,a._responseType,e),n=J.envelope(t);a._requesterWindow.postMessage(n,a._requesterUrl),A.Utility.xdmDebugLog("_send: requestUrl="+a._requesterUrl+" _actionName:"+a._actionName)}catch(e){A.Utility.xdmDebugLog("ResponseSender._send error:"+e.message)}}}var Q,$=(__extends(Z,Q=K),Z);function Z(e,t,n,r,i,o){var a=Q.call(this,e,t,n,r,i,0)||this;return a._postCallbackHandler=o,a._send=function(e,t){null!=t&&(a._invokeResultCode=t);try{var n=new V(a._actionName,a._conversationId,a._correlationId,a._invokeResultCode,a._responseType,e),r=J.envelope(n);a._requesterWindow.postMessage(r,a._requesterUrl),a._postCallbackHandler()}catch(e){A.Utility.xdmDebugLog("InvokeCompleteCallback._send error:"+e.message)}},a}var Y=(ee.prototype.invoke=function(){try{var e;switch(this._methodObject.getInvokeType()){case 0:this._methodObject.getMethod()(this._param,this._invokeCompleteCallback.getSend());break;case 1:e=this._methodObject.getMethod()(this._param),this._invokeCompleteCallback.getSend()(e);break;case 4:var t=this._createEventHandlerProxyObject(this._invokeCompleteCallback);e=this._methodObject.getMethod()(t.getSend(),this._param),this._eventHandlerProxyList[this._conversationId+this._eventName]=t.getSend(),this._invokeCompleteCallback.getSend()(e);break;case 5:var n=this._eventHandlerProxyList[this._conversationId+this._eventName];e=this._methodObject.getMethod()(n,this._param),delete this._eventHandlerProxyList[this._conversationId+this._eventName],this._invokeCompleteCallback.getSend()(e);break;case 2:var r=this._createEventHandlerProxyObject(this._invokeCompleteCallback);this._methodObject.getMethod()(r.getSend(),this._invokeCompleteCallback.getSend(),this._param),this._eventHandlerProxyList[this._callerId+this._eventName]=r.getSend();break;case 3:var i=this._eventHandlerProxyList[this._callerId+this._eventName];this._methodObject.getMethod()(i,this._invokeCompleteCallback.getSend(),this._param),delete this._eventHandlerProxyList[this._callerId+this._eventName]}}catch(e){this._invokeCompleteCallback.setResultCode(-3),this._invokeCompleteCallback.getSend()(e)}},ee.prototype.getInvokeBlockingFlag=function(){return this._methodObject.getBlockingFlag()},ee.prototype._createEventHandlerProxyObject=function(e){return new K(e.getRequesterWindow(),e.getRequesterUrl(),e.getActionName(),e.getConversationId(),e.getCorrelationId(),1)},ee);function ee(e,t,n,r,i,o){this._callerId="",this._methodObject=e,this._param=t,this._invokeCompleteCallback=n,this._eventHandlerProxyList=r,this._conversationId=i,this._eventName=o}}(OSF=OSF||{}),function(){function t(e,t){return t+="_Resource",void 0!==oteljs?[oteljs.makeDoubleDataField(t+"_responseEnd",e.responseEnd),oteljs.makeDoubleDataField(t+"_responseStart",e.responseStart),oteljs.makeDoubleDataField(t+"_startTime",e.startTime),oteljs.makeDoubleDataField(t+"_transferSize",e.transferSize)]:[]}(OSFPerfUtil||(OSFPerfUtil={})).sendPerformanceTelemetry=function(){if(OSF.AppTelemetry.enableTelemetry&&"undefined"!=typeof performance&&performance.getEntriesByType){var n,r,i=OSF.LoadScriptHelper.getHostBundleJsName().toLowerCase();performance.getEntriesByType("resource").forEach(function(e){var t=e.name.toLowerCase();OSF.Utility.stringEndsWith(t,i)?n=e:(OSF.Utility.stringEndsWith(t,OSF.ConstantNames.OfficeDebugJS)||OSF.Utility.stringEndsWith(t,OSF.ConstantNames.OfficeJS))&&(r=e)}),OTel.OTelLogger.onTelemetryLoaded(function(){var e=[];n&&(e=e.concat(t(n,"HostJs"))),r&&(e=e.concat(t(r,"OfficeJs"))),e=e.concat([oteljs.makeDoubleDataField("officeExecuteStartDate",OSFPerformance.officeExecuteStartDate),oteljs.makeDoubleDataField("officeExecuteStart",OSFPerformance.officeExecuteStart),oteljs.makeDoubleDataField("officeExecuteEnd",OSFPerformance.officeExecuteEnd),oteljs.makeDoubleDataField("hostInitializationStart",OSFPerformance.hostInitializationStart),oteljs.makeDoubleDataField("hostInitializationEnd",OSFPerformance.hostInitializationEnd),oteljs.makeDoubleDataField("totalJSHeapSize",OSFPerformance.totalJSHeapSize),oteljs.makeDoubleDataField("usedJSHeapSize",OSFPerformance.usedJSHeapSize),oteljs.makeDoubleDataField("jsHeapSizeLimit",OSFPerformance.jsHeapSizeLimit),oteljs.makeDoubleDataField("getAppContextStart",OSFPerformance.getAppContextStart),oteljs.makeDoubleDataField("getAppContextEnd",OSFPerformance.getAppContextEnd),oteljs.makeDoubleDataField("getAppContextXdmStart",OSFPerformance.getAppContextXdmStart),oteljs.makeDoubleDataField("getAppContextXdmEnd",OSFPerformance.getAppContextXdmEnd),oteljs.makeDoubleDataField("createOMEnd",OSFPerformance.createOMEnd),oteljs.makeDoubleDataField("officeOnReady",OSFPerformance.officeOnReady),oteljs.makeBooleanDataField("isSharedRuntime",0!=(OSF._OfficeAppFactory.getHostInfo().flags&OSF.HostInfoFlags.SharedApp)),oteljs.makeBooleanDataField("isExperimentJsEnabled",0!=(OSF._OfficeAppFactory.getHostInfo().flags&OSF.HostInfoFlags.ExperimentJsEnabled))]),Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.JSPerformanceTelemetryV06",dataFields:e,eventFlags:{dataCategories:2,diagnosticLevel:110}})})}}}(),function(e){var t,n,r,i,o,l,u;function a(n,e,t,r){if(n&&e){var i=window.document,o=l[n];if(o)o.loaded?e(!0):o.pendingCallbacks.push(e);else{var a=i.createElement("script");a.type="text/javascript",o={loaded:!1,pendingCallbacks:[e],timer:null},l[n]=o;function s(){null!=o.timer&&(clearTimeout(o.timer),delete o.timer),o.loaded=!0;for(var e=o.pendingCallbacks.length,t=0;t<e;t++){o.pendingCallbacks.shift()(!0)}}function c(){delete l[n],null!=o.timer&&(clearTimeout(o.timer),delete o.timer);for(var e=o.pendingCallbacks.length,t=0;t<e;t++){o.pendingCallbacks.shift()(!1)}}a.readyState?a.onreadystatechange=function(){"loaded"!=a.readyState&&"complete"!=a.readyState||(a.onreadystatechange=null,s())}:a.onload=s,a.onerror=c,r=r||u,o.timer=setTimeout(c,r),a.setAttribute("crossOrigin","anonymous"),a.src=t?t.createScriptURL(n):n,i.getElementsByTagName("head")[0].appendChild(a)}}}t=e.OUtil||(e.OUtil={}),l={},u=3e4,i=t.Guid||(t.Guid={}),o=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],i.generateNewGuid=function(){for(var e="",t=(new Date).getTime(),n=0;n<32&&0<t;n++)8!=n&&12!=n&&16!=n&&20!=n||(e+="-"),e+=o[t%16],t=Math.floor(t/16);for(;n<32;n++)8!=n&&12!=n&&16!=n&&20!=n||(e+="-"),e+=o[Math.floor(16*Math.random())];return e},t.loadScriptPromise=function(n,r,i){return new Promise(function(t,e){a(n,function(e){t(e)},r,i)})},t.loadScript=a,t.getSessionStorage=function(){if(!n){try{var t=window.sessionStorage}catch(e){t=null}n=new e.SafeStorage(t)}return n},t.getLocalStorage=function(){if(!r){try{var t=window.localStorage}catch(e){t=null}r=new e.SafeStorage(t)}return r},t.waitForFunction=function(e,t,n,r){var i,o=n,a=function(){o--,e()?t(!0):0<o?(i=window.setTimeout(a,r),o--):(window.clearTimeout(i),t(!1))};a()},t.isSecureDefaultsEnabled=function(){return"undefined"!=typeof isOsfSecurityDefaultsEnabled&&!0===isOsfSecurityDefaultsEnabled}}(OSF=OSF||{}),function(v){v.Flights=[];!function(p){var a="&_flights=",s="&_disabledChangeGates=",c="_flights=",l="_disabledChangeGates=",f="&";function i(e,t){return e.substr(0,t.length)===t}function u(e,t,n,r){return i(e,t+"//"+n+":"+r)||i(e,n+":"+r)}p.isArray=function(e){return"[object Array]"===Object.prototype.toString.apply(e)},p.isFunction=function(e){return"[object Function]"===Object.prototype.toString.apply(e)},p.isDate=function(e){return"[object Date]"===Object.prototype.toString.apply(e)},p.addEventListener=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else{if(!e.attachEvent)throw new Error("Cannot attach event");e.attachEvent("on"+t,n)}},p.removeEventListener=function(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else{if(!e.detachEvent)throw new Error("Cannot remove event");e.detachEvent("on"+t,n)}};function d(e){var t=[];try{t=JSON.parse(e)}catch(e){}return Array.isArray(t)||(t=[]),t}function h(e,t,n){try{var r=JSON.parse(t),i=null!=r?r[n]:null,o=p.getSessionStorage();if(!e&&o&&null!=r){var a=r.baseFrameName+n;i?o.setItem(a,i):i=o.getItem(a)}return i}catch(e){return null}}function g(e,t,n,r,i){var o=i.split(e),a=1<o.length?o[o.length-1]:null;n&&null!=a&&(0<=a.indexOf(f)&&(a=a.split(f)[0]),a=decodeURIComponent(a));var s=p.getSessionStorage();if(!r&&s){var c=window.name.indexOf(t);if(-1<c){var l=window.name.indexOf(";",c);-1==l&&(l=window.name.length);var u=window.name.substring(c,l);a?s.setItem(u,a):a=s.getItem(u)}}return a}function n(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)===t){if(n+1>=e.length)return this.removeChar(e,n);if("/"===t){if("?"===e.charAt(n+1)||"#"===e.charAt(n+1))return this.removeChar(e,n)}else if("?"===t&&"#"===e.charAt(n+1))return this.removeChar(e,n)}return e}function m(e){if(e=n(e,"/"),e=n(e,"?"),"https://"==(e=n(e,"#")).substr(0,8))-1!=(t=e.indexOf(":443"))&&(t!=e.length-4&&"/"!=e.charAt(t+4)&&"?"!=e.charAt(t+4)&&"#"!=e.charAt(t+4)||(e=e.substring(0,t)+e.substring(t+4)));else if("http://"==e.substr(0,7)){var t;-1!=(t=e.indexOf(":80"))&&(t!=e.length-3&&"/"!=e.charAt(t+3)&&"?"!=e.charAt(t+3)&&"#"!=e.charAt(t+3)||(e=e.substring(0,t)+e.substring(t+3)))}return e}function y(e){var t,n,r=[],i=[],o=e.length;for(t=0;t<o;t++)(n=e[t]).tabIndex?0<n.tabIndex?i.push(n):0===n.tabIndex&&r.push(n):r.push(n);return i=i.sort(function(e,t){var n=e.tabIndex-t.tabIndex;return 0===n&&(n=i.indexOf(e)-i.indexOf(t)),n}),[].concat(i,r)}p.serializeSettings=function(e){var t={};for(var n in e){var r=e[n];try{r=JSON.stringify(r,function(e,t){return v.OUtil.isDate(this[e])?"Date("+this[e].getTime()+")":t}),t[n]=r}catch(e){}}return t},p.deserializeSettings=function(e){var t={};for(var n in e=e||{}){var r=e[n];try{r=JSON.parse(r,function(e,t){var n;return"string"==typeof t&&t&&6<t.length&&"Date("===t.slice(0,5)&&")"===t.slice(-1)&&(n=new Date(parseInt(t.slice(5,-1))))?n:t}),t[n]=r}catch(e){}}return t},p.convertIntToCssHexColor=function(e){return"#"+(Number(e)+16777216).toString(16).slice(-6)},p.parseAppContextFromWindowName=function(e,t){return p.parseInfoFromWindowName(e,t,"appContext")},p.parseHostInfoFromWindowName=function(e,t){return v.OUtil.parseInfoFromWindowName(e,t,"hostInfo")},p.parseXdmInfo=function(e){var t=p.parseXdmInfoWithGivenFragment(e,window.location.hash);return t=t||p.parseXdmInfoFromWindowName(e,window.name)},p.parseXdmInfoFromWindowName=function(e,t){return v.OUtil.parseInfoFromWindowName(e,t,"xdmInfo")},p.parseXdmInfoWithGivenFragment=function(e,t){return v.OUtil.parseInfoWithGivenFragment("&_xdm_Info=","_xdm_",!1,e,t)},p.parseFlights=function(e){var t,n,r,i,o=(t=e,n=window.location.hash,d(g(a,c,!0,t,n)));return 0==o.length&&(r=e,i=window.name,o=d(h(r,i,"flights"))),o},p.parseDisabledChangeGates=function(e){var t,n,r,i,o=(t=e,n=window.location.hash,d(g(s,l,!0,t,n)));return 0==o.length&&(r=e,i=window.name,o=d(h(r,i,"disabledChangeGates"))),o},p.checkFlight=function(e){return v.Flights&&0<=v.Flights.indexOf(e)},p.parseInfoFromWindowName=h,p.parseInfoWithGivenFragment=g,p.getConversationId=function(){var e=window.location.search,t=null;if(e){var n=e.indexOf("&");(t=0<n?e.substring(1,n):e.substr(1))&&"="===t.charAt(t.length-1)&&(t=(t=t.substring(0,t.length-1))&&decodeURIComponent(t))}return t},p.getInfoItems=function(e){var t=e.split("$");return void 0===t[1]&&(t=e.split("|")),void 0===t[1]&&(t=e.split("%7C")),t},p.getXdmFieldValue=function(e,t){var n="",r=v.OUtil.parseXdmInfo(t);if(r){var i=v.OUtil.getInfoItems(r);if(null!=i&&3<=i.length)switch(e){case"ConversationUrl":n=i[2];break;case"AppId":n=i[1]}}return n},p.parseUrl=function(e,t){if(void 0===t&&(t=!1),void 0!==e&&e){var n,r,i="NotHttps",o="undefined"!=typeof window&&void 0!==window.navigator&&0<window.navigator.userAgent.indexOf("Trident"),a=("undefined"!=typeof window&&void 0!==window.navigator&&window.navigator.userAgent.indexOf("Edge"),{protocol:void 0,hostname:void 0,host:void 0,port:void 0,pathname:void 0,search:void 0,hash:void 0,isPortPartOfUrl:void 0});try{if(o){var s=document.createElement("a");if(s.href=e,!(s&&s.protocol&&s.host&&s.hostname&&s.href&&m(s.href).toLowerCase()===m(e).toLowerCase()))throw"InvalidUrl";if(v.OUtil.checkFlight(2)&&t&&"https:"!=s.protocol)throw new Error(i);var c=(r=s,(n=e)&&r?"https:"==r.protocol&&u(n,"https:",r.hostname,"443")?":443":"http:"==r.protocol&&u(n,"http:",r.hostname,"80")?":80":"":"");a.protocol=s.protocol,a.hostname=s.hostname,a.port=c?"":s.port,a.host=c?s.hostname:s.host,a.pathname=(o?"/":"")+s.pathname,a.search=s.search,a.hash=s.hash,a.isPortPartOfUrl=u(e,s.protocol,s.hostname,s.port)}else{var l=new URL(e);if(l&&l.protocol&&l.host&&l.hostname){if(v.OUtil.checkFlight(2)&&t&&"https:"!=l.protocol)throw new Error(i);a.protocol=l.protocol,a.hostname=l.hostname,a.port=l.port,a.host=l.host,a.pathname=l.pathname,a.search=l.search,a.hash=l.hash,a.isPortPartOfUrl=l.host.lastIndexOf(":"+l.port)==l.host.length-l.port.length-1}}}catch(e){if(e.message===i)throw e}return a}},p.focusToFirstTabbable=function(e,t){function n(e){c=!0}var r,i,o,a,s,c=!1;if(e=y(e),r=t?e.length-1:0,0===e.length)return null;for(;!c&&0<=r&&r<e.length;)i=e[r],window.focus(),i.addEventListener("focus",n),i.focus(),i.removeEventListener("focus",n),o=e.length,s=t,r=(a=r)<0||o<a||0===a&&s||a===o-1&&!s?-1:s?a-1:a+1,c||i!==document.activeElement||(c=!0);return c?i:null},p.focusToNextTabbable=function(e,t,n){function r(e){c=!0}function i(e,t,n){return!(t<0||e<t)&&(0!==t||!n)&&(t!==e-1||n)?n?t-1:t+1:-1}var o,a,s,c=!1;if(o=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}(e=y(e),t),(a=i(e.length,o,n))<0)return null;for(;!c&&0<=a&&a<e.length;)(s=e[a]).addEventListener("focus",r),s.focus(),s.removeEventListener("focus",r),a=i(e.length,a,n),c||s!==document.activeElement||(c=!0);return c?s:null},p.defineMethodOnNamespace=function(e,t,n){e[t]=n},p.isDialog=function(){return v._OfficeAppFactory.getHostInfo().isDialog},p.isPopupWindow=function(){return v.OUtil.isDialog()&&v._OfficeAppFactory.getHostInfo().hostPlatform==v.HostInfoPlatform.web&&null!=window.opener},p.getHostPlatform=function(){return v._OfficeAppFactory.getHostInfo().hostPlatform}}(v.OUtil||(v.OUtil={}))}(OSF=OSF||{}),function(e){var t;(t=e.ParameterNames||(e.ParameterNames={})).Callback="callback",t.AsyncContext="asyncContext",t.Data="data",t.MessageToParent="messageToParent",t.MessageContent="messageContent",t.MessageOrigin="messageOrigin",t.TargetOrigin="targetOrigin",t.AppCommandInvocationCompletedData="appCommandInvocationCompletedData"}(OSF=OSF||{}),function(h){!function(e){function t(){}e.RequirementVersion=t;var c=(n.prototype.isSetSupported=function(e,t){if(null==e)return!1;null==t&&(t=0);var n=this._setMap._sets;if(n.hasOwnProperty(e.toLowerCase())){var r=n[e.toLowerCase()];try{var i=this._getVersion(r+"");t+="";var o=this._getVersion(t);if(0<i.major&&i.major>o.major)return!0;if(0<i.major&&0<=i.minor&&i.major==o.major&&i.minor>=o.minor)return!0}catch(e){return!1}}return!1},n.prototype._getVersion=function(e){var t=(e+="").split("."),n=0,r=0;if(t.length<2&&isNaN(Number(e)))throw"version format incorrect";if(n=Number(t[0]),2<=t.length&&(r=Number(t[1])),isNaN(n)||isNaN(r))throw"version format incorrect";return{minor:r,major:n}},n);function n(e){this._setMap=e}e.RequirementMatrix=c;var l=(r.prototype._addSetMap=function(e){for(var t in e)this._sets[t]=e[t]},r);function r(e){this._sets=e}e.DefaultSetRequirement=l;var i,u=(__extends(o,i=l),o);function o(){return i.call(this,{dialogapi:1.1})||this}e.DefaultRequiredDialogSetRequirement=u;var a,p=(__extends(s,a=l),s);function s(){return a.call(this,{dialogorigin:1.1})||this}e.DefaultOptionalDialogSetRequirement=p;var f=(d.getDefaultRequirementMatrix=function(e){var t=void 0,n=e.get_requirementMatrix();if(null!=n&&0<n.length){var r=JSON.parse(e.get_requirementMatrix().toLowerCase());if(h._OfficeAppFactory.getHostInfo().hostPlatform==h.HostInfoPlatform.web)try{var i="dialogorigin";r.hasOwnProperty(i)||(r[i]=1.1)}catch(e){}t=new c(new l(r))}else t=new c(new l({}));return t},d.getDefaultDialogRequirementMatrix=function(e){var t=void 0,n=e.get_dialogRequirementMatrix();if(null!=n&&0<n.length){var r=JSON.parse(e.get_requirementMatrix().toLowerCase());t=new l(r)}else{t=new u;var i=e.get_requirementMatrix();if(null!=i&&0<i.length&&"undefined"!=typeof JSON){for(var o in r=JSON.parse(i.toLowerCase()),t._sets)r.hasOwnProperty(o)&&(t._sets[o]=r[o]);var a=new p;for(var o in a._sets)r.hasOwnProperty(o)&&(t._sets[o]=r[o])}}if(h._OfficeAppFactory.getHostInfo().hostPlatform==h.HostInfoPlatform.web)try{var s="dialogorigin";!t._sets.hasOwnProperty(s)&&window.opener&&(t._sets[s]=1.1)}catch(e){}return new c(t)},d);function d(){}e.RequirementsMatrixFactory=f}(h.Requirement||(h.Requirement={}))}(OSF=OSF||{}),function(r){var e,t,n;e=r.DDA||(r.DDA={}),(t=e.RichApi||(e.RichApi={})).executeRichApiRequestAsync=function(e,t){var n={toSafeArrayHost:function(){return[e]},fromSafeArrayHost:function(e){return{data:e}},toWebHost:function(){return{ArrayData:e}},fromWebHost:function(e){return{data:e.Data}}};r._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(93,n,t)},Object.defineProperty(t,"richApiMessageManager",{get:function(){return n=n||new r.RichApiMessageManager}})}(OSF=OSF||{}),function(i){var e=(n.transferEventArgument=function(e){var t=[];if(e)for(var n=0;n<e.length;n++){var r=e[n];r.toArray&&(r=r.toArray()),t.push({messageCategory:r[0],messageType:r[1],targetId:r[2],message:r[3],id:r[4],isRemoteOverride:r[5]})}return{type:i.EventType.RichApiMessage,entries:t}},n.prototype.addHandlerAsync=function(e,t,n){i.EventHelper.addEventHandler(e,t,n,this._eventDispatch)},n.prototype.removeHandlerAsync=function(e,t,n){i.EventHelper.removeEventHandler(e,t,n,this._eventDispatch)},n.prototype.register=function(e){var r=this;return this._registerPromise||(this._registerPromise=new Office.Promise(function(t,n){r.addHandlerAsync(i.EventType.RichApiMessage,function(t){r._registerHandlers.forEach(function(e){e&&e(t)})},function(e){"failed"==e.status?n(e.error):t()})})),this._registerPromise.then(function(){r._registerHandlers.push(e)})},n);function n(){this._registerHandlers=[],this._eventDispatch=new i.EventDispatch([{type:i.EventType.RichApiMessage,id:i.EventDispId.dispidRichApiMessageEvent,getTargetId:function(){return""},fromSafeArrayHost:function(e){return n.transferEventArgument(e)},fromWebHost:function(e){var t=e.ArrayData;return n.transferEventArgument(t)}}])}i.RichApiMessageManager=e}(OSF=OSF||{}),function(n){var e=(t.prototype.execute=function(e,t,n){"undefined"!=typeof OsfOMToken&&OsfOMToken?window.external.Execute(e,t,n,OsfOMToken):window.external.Execute(e,t,n)},t.prototype.registerEvent=function(e,t,n,r,i){"undefined"!=typeof OsfOMToken&&OsfOMToken?window.external.RegisterEvent(e,n,r,i,OsfOMToken):window.external.RegisterEvent(e,n,r,i)},t.prototype.unregisterEvent=function(e,t,n,r){"undefined"!=typeof OsfOMToken&&OsfOMToken?window.external.UnregisterEvent(e,n,r,OsfOMToken):window.external.UnregisterEvent(e,n,r)},t.prototype.closeSdxDialog=function(e){throw n.Utility.createNotImplementedException()},t.prototype.resizeSdxDialog=function(e,t){throw n.Utility.createNotImplementedException()},t);function t(){}n.RichClientHostController=e}(OSF=OSF||{}),function(k){var t,e=(t=k.InitializationHelper,__extends(n,t),n.prototype.getOsfControlContext=function(){if(!this._osfControlContext){var t="Warning: Office.js is loaded outside of Office client";try{if(!window.external)return console.error("There is no window.external."),k.Utility.trace(t),null;this._osfControlContext=window.external.GetContext()}catch(e){return console.error("Error when call window.external.GetContext() :"+JSON.stringify(e)),k.Utility.trace(t),null}}return this._osfControlContext},n.prototype.getAppContext=function(e,t,n){var r=this,i=this.getOsfControlContext();if(i){var o,a,s,c,l,u,p,f,d,h,g,m,y,v,b,_,O,S,C,A,P,E,T,I,w,R,D=0,x=!1;if((F=k.Utility.externalNativeFunctionExists)(typeof i.GetContextDataInJson)&&"undefined"!=typeof OsfOMToken&&OsfOMToken?((w=i.GetContextDataInJson(OsfOMToken))&&(R=JSON.parse(w)),R?(o=R.appType,a=R.solutionRef,s=R.versionMajor,c=R.versionMinor,l=R.uiLocale,u=R.dataLocale,p=R.docUrl,f=R.clientMode,d=R.activationMode,g=R.controlType,m=R.eToken,y=R.correlationId,v=R.appInstanceId,b=R.touchEnabled,_=i.commerceAllowed,O=R.requirementMatrix,C=R.hostFullVersion,A=R.requirementMatrix,(N=R.featureGates)&&(P=JSON.parse(N)),D=R.initialDisplayMode,E=function(){var e={};if(R.settings)try{var t=JSON.parse(R.settings);if(t)for(var n=[t.names,t.values],r=n[0],i=n[1],o=0;o<r.length;o++)e[r[o]]=i[o]}catch(e){k.Utility.trace("Exception while parsing settings. Details: "+e)}return e},T=function(){var e=R.themeInfo;return r.getOfficeThemeFromInfoString(e)}):x=!0):x=!0,x){o=i.GetAppType(),a=i.GetSolutionRef(),s=i.GetAppVersionMajor(),c=i.GetAppVersionMinor(),l=i.GetAppUILocale(),u=i.GetAppDataLocale(),p=i.GetDocUrl(),f=i.GetAppCapabilities(),d=i.GetActivationMode(),g=i.GetControlIntegrationLevel();try{m=i.GetSolutionToken()}catch(e){}var F;if((F=k.Utility.externalNativeFunctionExists)(typeof i.GetCorrelationId)&&(y=i.GetCorrelationId()),F(typeof i.GetInstanceId)&&(v=i.GetInstanceId()),F(typeof i.GetTouchEnabled)&&(b=i.GetTouchEnabled()),F(typeof i.GetCommerceAllowed)&&(_=i.GetCommerceAllowed()),F(typeof i.GetSupportedMatrix)&&(O=i.GetSupportedMatrix()),F(typeof i.GetHostCustomMessage)&&(S=i.GetHostCustomMessage()),F(typeof i.GetHostFullVersion)&&(C=i.GetHostFullVersion()),F(typeof i.GetDialogRequirementMatrix)&&(A=i.GetDialogRequirementMatrix()),F(typeof i.GetFeaturesForSolution))try{var N;(N=i.GetFeaturesForSolution())&&(P=JSON.parse(N))}catch(e){k.Utility.trace("Exception while creating the SDX FeatureGates object. Details: "+e)}F(typeof i.GetInitialDisplayMode)&&(D=i.GetInitialDisplayMode()),E=function(){return r.getSerializedSettings()},T=function(){return r.getOfficeTheme()},I=function(){return r.getSerializedHostSettings()}}h=2===d?Office.InitializationReason.DocumentOpened:Office.InitializationReason.Inserted,m=m?m.toString():"",t(new k.OfficeAppContext(a,o,s,l,u,p,f,E,h,g,m,y,v,b,_,c,O,S,C,void 0,void 0,void 0,void 0,A,P,T,D,void 0,void 0,I,!1,void 0,void 0,void 0))}else n(new Error("The Office.js is loaded outside of Office client"))},n.prototype.createClientHostController=function(){if(!this._clientHostController){if(this._hostInfo.hostPlatform!==k.HostInfoPlatform.win32)throw k.Utility.createNotImplementedException();this._clientHostController=new k.Win32RichClientHostController}return this._clientHostController},n.prototype.createAsyncMethodExecutor=function(){return new k.SafeArrayAsyncMethodExecutor(this._clientHostController)},n.prototype.createClientSettingsManager=function(){return new k.RichClientSettingsManager(this.getOsfControlContext())},n.prototype.getSerializedSettings=function(){var e=this.getOsfControlContext(),t=[],n=[];"undefined"!=typeof OsfOMToken&&OsfOMToken?e.GetSettings(OsfOMToken).Read(t,n):e.GetSettings().Read(t,n);for(var r={},i=0;i<t.length;i++)r[t[i]]=n[i];return r},n.prototype.getOfficeTheme=function(){var e=this.getOsfControlContext();if(e){if(!(this.officeTheme&&this.officeThemeTimeStamp&&(new Date).getTime()-this.officeThemeTimeStamp<n.officeThemeCacheValidPeriod)){var t=e.GetOfficeThemeInfo();this.officeTheme=this.getOfficeThemeFromInfoString(t),this.officeThemeTimeStamp=(new Date).getTime()}return this.officeTheme}},n.prototype.getOfficeThemeFromInfoString=function(e){var t=null;if(e)try{t=JSON.parse(e)}catch(e){k.AppTelemetry&&k.AppTelemetry.logAppException("Exception while parsing officeThemeInfo. Details: "+e)}var n={};if(t){var r={bodyBackgroundColor:{name:"bodyBackgroundColor",convertToHex:!0},bodyForegroundColor:{name:"bodyForegroundColor",convertToHex:!0},controlBackgroundColor:{name:"controlBackgroundColor",convertToHex:!0},controlForegroundColor:{name:"controlForegroundColor",convertToHex:!0},primaryFontColor:{name:"bodyForegroundColor",convertToHex:!0},primaryBackgroundColor:{name:"bodyBackgroundColor",convertToHex:!0},secondaryFontColor:{name:"controlForegroundColor",convertToHex:!0},secondaryBackgroundColor:{name:"controlBackgroundColor",convertToHex:!0},fluentThemeData:{name:"fluentThemeData",convertToHex:!1}};for(var i in t){var o=!1,a=i;r[i]&&(a=r[i].name,o=r[i].convertToHex),n[a]=o?k.OUtil.convertIntToCssHexColor(t[i]):t[i]}}return n},n.prototype.getSerializedHostSettings=function(){var e=this.getOsfControlContext(),t=[],n=[];"function"==typeof e.GetSettings().ReadHost&&("undefined"!=typeof OsfOMToken&&OsfOMToken?e.GetSettings(OsfOMToken).ReadHost(t,n):e.GetSettings().ReadHost(t,n));for(var r={},i=0;i<t.length;i++)r[t[i]]=n[i];return r},n.officeThemeCacheValidPeriod=5e3,n);function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.officeThemeTimeStamp=null,e.officeTheme=null,e}k.RichClientInitializationHelper=e}(OSF=OSF||{}),function(e){var t=(n.prototype.read=function(i){var o,e=this._osfClientContext;function t(){var e=[],t=[];o.Read(e,t);for(var n={},r=0;r<e.length;r++)n[e[r]]=t[r];i&&i(0,n)}(o="undefined"!=typeof OsfOMToken&&OsfOMToken?e.GetSettings(OsfOMToken):e.GetSettings()).RefreshAsync?o.RefreshAsync(function(){t()}):t()},n.prototype.write=function(e,t){var n=[],r=[];for(var i in e)n.push(i),r.push(e[i]);var o,a=this._osfClientContext;void 0!==(o="undefined"!=typeof OsfOMToken&&OsfOMToken?a.GetSettings(OsfOMToken):a.GetSettings()).WriteAsync?o.WriteAsync(n,r,t):(o.Write(n,r),t(0))},n);function n(e){this._osfClientContext=e}e.RichClientSettingsManager=t}(OSF=OSF||{}),function(l){var n,e=(n=l.AsyncMethodExecutor,__extends(t,n),t.prototype.executeAsync=function(r,i,o,a){var s=this;try{var c=new Array;this._clientHostController.execute(r,i.toSafeArrayHost(),function(e,t){var n=l.Utility.fromSafeArray(e);return s._asyncMethodExecutorHelper.handleSafeArrayHostResponse(n,t,c,o,i,r,a)})}catch(e){this.onException(e,r,o)}},t.prototype.registerEventAsync=function(r,e,t,i,o,a,s){var c=this;try{this._clientHostController.registerEvent(r,e,t,function(e,t){var n=l.Utility.fromSafeArray(t),r=o.fromSafeArrayHost(n);i(r)},function(e){var t,n=l.Utility.fromSafeArray(e);return t="number"==typeof n?n:n[0],c.invokeCallback(r,a,t,null,s),!0})}catch(e){this.onException(e,r,a)}},t.prototype.unregisterEventAsync=function(i,e,t,o,a){var s=this;try{this._clientHostController.unregisterEvent(i,e,t,function(e,t){var n,r=l.Utility.fromSafeArray(e);return n="number"==typeof r?r:r[0],s.invokeCallback(i,o,n,null,a),!0})}catch(e){this.onException(e,i,o)}},t.prototype.onException=function(e,t,n){var r,i=e.number;if(i)switch(i){case-2146828218:r=7e3;break;case-2147467259:r=t==l.EventDispId.dispidDialogMessageReceivedEvent?12007:5001;break;case-2146828283:case-2147209089:r=5010;break;case-2147208704:r=5100;break;case-2146827850:default:r=5001}n&&this.invokeCallback(t,n,r||5001,null)},t);function t(e){var t=n.call(this)||this;return t._clientHostController=e,t._asyncMethodExecutorHelper=l.BootStrapExtension.createAsyncMethodExecutorHelper(t),t}l.SafeArrayAsyncMethodExecutor=e}(OSF=OSF||{}),function(e){var t=(n.prototype.getItem=function(e){try{return this._internalStorage&&this._internalStorage.getItem(e)}catch(e){return null}},n.prototype.setItem=function(e,t){try{this._internalStorage&&this._internalStorage.setItem(e,t)}catch(e){}},n.prototype.clear=function(){try{this._internalStorage&&this._internalStorage.clear()}catch(e){}},n.prototype.removeItem=function(e){try{this._internalStorage&&this._internalStorage.removeItem(e)}catch(e){}},n.prototype.getKeysWithPrefix=function(e){var t=[];try{for(var n=this._internalStorage&&this._internalStorage.length||0,r=0;r<n;r++){var i=this._internalStorage.key(r);0===i.indexOf(e)&&t.push(i)}}catch(e){}return t},n);function n(e){this._internalStorage=e}e.SafeStorage=t}(OSF=OSF||{}),function(o){var e=(t.prototype.cacheSessionSettings=function(e){var t=OSF.OUtil.getSessionStorage();if(t){var n=OSF.OUtil.serializeSettings(e),r=JSON.stringify(n);t.setItem(OSF._OfficeAppFactory.getCachedSessionSettingsKey(),r)}},t.prototype.get=function(e){var t=this._settings[e];return void 0===t?null:t},t.prototype.set=function(e,t){this._settings[e]=t,this.cacheSessionSettings(this._settings)},t.prototype.remove=function(e){delete this._settings[e],this.cacheSessionSettings(this._settings)},t.prototype.saveAsync=function(n){var e=this._clientSettingsManager,t=OSF.OUtil.serializeSettings(this._settings);e.write(t,function(e){var t=OSF.Utility.asyncResultFromErrorCode(e);n&&n(t)})},t.prototype.refreshAsync=function(r){var i=this;this._clientSettingsManager.read(function(e,t){var n=OSF.Utility.asyncResultFromErrorCode(e);n.status===o.AsyncResultStatus.Succeeded&&(i._settings=OSF.OUtil.deserializeSettings(t),n.value=i),r&&r(n)})},t.prototype.addHandlerAsync=function(e,t,n){OSF.EventHelper.addEventHandler(e,t,n,this._eventDispatch)},t.prototype.removeHandlerAsync=function(e,t,n){OSF.EventHelper.removeEventHandler(e,t,n,this._eventDispatch)},t.prototype.toJSON=function(){return this._settings},t);function t(e,t){var n=this;this._clientSettingsManager=t,e=e||{},this._settings=e,this._eventDispatch=new OSF.EventDispatch([{id:OSF.EventDispId.dispidSettingsChangedEvent,type:OSF.EventType.SettingsChanged,getTargetId:function(){return""},fromSafeArrayHost:function(e){return{type:OSF.EventType.SettingsChanged,settings:n}},fromWebHost:function(e){return{type:OSF.EventType.SettingsChanged,settings:n}}}])}o.Settings=e}(Office=Office||{}),function(c){var e=(t.isSovereignVersion=function(){return 1!==c.OUtil.getLibraryReleaseVehicle()?"undefined"!=typeof isOsfSovereignVersion&&!0===isOsfSovereignVersion:c.OUtil.getCustomOfficeInitializationSettings().officeCdnEndpoint.isSovereign},t.prototype.getEnvironmentName=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return[4,this.getConfig()];case 1:return[2,null!=(t=e.sent())&&t.envName?t.envName:null]}})})},t.prototype.getEnvironmentType=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return[4,this.getConfig()];case 1:return[2,null!=(t=e.sent())&&t.envType?t.envType:null]}})})},t.prototype.getTrustedHostOrigins=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return[4,this.getConfig()];case 1:return[2,null!=(t=e.sent())?t.trustedHostOrigins:null]}})})},t.prototype.isConfigAvailable=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return[4,this.getConfig()];case 1:return[2,!!e.sent()]}})})},t.prototype.isSovereignHostTrusted=function(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return n?n===window.location.hostname?[2,!0]:[4,this.getTrustedHostOrigins()]:[2,!1];case 1:return(t=e.sent())&&0!=t.length?[2,new RegExp(t.join("|")).test(n)]:[2,!1]}})})},t.prototype.getConfigPath=function(){var e=c.LoadScriptHelper.getHostBundleJsBasePath(),t="undefined"!=typeof isOsfSecurityDefaultsEnabled&&!0===isOsfSecurityDefaultsEnabled;if(e){if(e=e.toLowerCase(),c.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_10910853_OfficeJsNPMDownloadTrustedDomainList")&&1===c.OUtil.getLibraryReleaseVehicle()){if(c.OUtil.getCustomOfficeInitializationSettings().officeCdnEndpoint.isOCDICompliant){var n=e.indexOf("beta/");return-1<n?e.substring(0,n)+"officeconfig.json":""}return-1<(r=e.indexOf("/lib/"))?e.substring(0,r+"/lib/".length)+"officeconfig.json":""}var r;if(t)try{return new URL(e).origin.toLowerCase()+"/officeconfig.json"}catch(e){}else if(-1<(r=e.indexOf("/lib/")))return e.toLowerCase().substring(0,r+"/lib/".length)+"officeconfig.json"}return""},t.prototype.getConfig=function(){return this._configPromise||(this._configPromise=this.tryLoadConfig()),this._configPromise},t.prototype.tryLoadConfig=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o,a,s;return __generator(this,function(e){switch(e.label){case 0:if(!(t=this.getConfigPath()))return[3,2];if(n=c.OUtil.getLocalStorage(),r=t+"_cache",i=n.getItem(r),o=null,i){try{o=JSON.parse(i)}catch(e){}if(a=(new Date).getTime(),o&&o.config&&o.createTime<=a&&o.createTime+864e5>=a)return[2,o.config]}return[4,this.downloadConfig(t)];case 1:return(s=e.sent())?(o={createTime:(new Date).getTime(),config:s},n.setItem(r,JSON.stringify(o))):o&&(s=o.config),[2,s];case 2:return[2,null]}})})},t.prototype.downloadConfig=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),[4,fetch(t)];case 1:return[4,e.sent().json()];case 2:return[2,e.sent()];case 3:return e.sent(),[3,4];case 4:return[2,null]}})})},t);function t(){}c.SovereignHelper=e}(OSF=OSF||{}),function(e){var t;function n(e){return void 0===e||null===e}(t=e.Utility||(e.Utility={})).createParameterException=function(e){return new Error("Parameter count mismatch: "+e)},t.createArgumentException=function(e){return new Error("Invalid argument "+e)},t.createNotImplementedException=function(){return new Error("Not implemented yet")},t.log=function(e){console.log(e)},t.trace=function(e){console.log(e)},t.debugLog=function(e){console.log(e)},t.getQueryStringValue=function(e){if("undefined"!=typeof window&&window.location&&window.location.search){var t=new RegExp("[?&]"+e+"=([^&]*)").exec(window.location.search);if(t)return t[1]}return null},t.isNullOrUndefined=n,t.isNullOrEmpty=function(e){return!!n(e)||0===e.length},t.isInUnittest=function(){return"boolean"==typeof g_osfUnittest&&g_osfUnittest}}(OSF=OSF||{}),function(e){var n;function t(e){return new Promise(e)}function o(e){var t=e,n=1;if(("object"==typeof e||"unknown"==typeof e)&&null!=e&&e.toArray)if(e.dimensions&&(n=e.dimensions()),2===n)t=a(e);else{var r=e.toArray();t=new Array(r.length);for(var i=0;i<r.length;i++)t[i]=o(r[i])}return t}function a(e){var t;try{var n=e.ubound(1),r=e.ubound(2);if(e=e.toArray(),1==n&&1==r)t=[e];else{t=[];for(var i=0;i<n;i++){for(var o=[],a=0;a<r;a++){var s=e[i*r+a];"{66e7831f-81b2-42e2-823c-89e872d541b3}"!=s&&o.push(s)}0<o.length&&t.push(o)}}}catch(e){}return t}e.isOfficeReactNative=function(){try{return"undefined"!=typeof OfficePlatformGlobal&&void 0!==OfficePlatformGlobal.ReactNativeReka}catch(e){return!1}},(n=e.Utility||(e.Utility={})).xdmDebugLog=function(e){n._DebugXdm&&console.log(e)},n.enableDebugXdm=function(){n._DebugXdm=!0},n.createPromiseFromResult=function(e){return Promise.resolve(e)},n.createPromise=t,n.promisify=function(e,r){return t(function(t,n){e(function(e){(0===e?t:n)()}),setTimeout(function(){n()},r)})},n.compareVersions=function(e,t){var n,r=e.split("."),i=t.split(".");for(n in r){if(parseInt(r[n])<parseInt(i[n]))return!1;if(parseInt(r[n])>parseInt(i[n]))return!0}return!1},n.getErrorCodeFromAsyncResult=function(e){return e.status===Office.AsyncResultStatus.Succeeded?0:e.error&&e.error.code?e.error.code:5001},n.externalNativeFunctionExists=function(e){return"unknown"===e||"undefined"!==e},n.stringEndsWith=function(e,t){if(n.isNullOrUndefined(e))throw n.createArgumentException("value");if(n.isNullOrUndefined(t))throw n.createArgumentException("subString");return!(t.length>e.length)&&e.substr(e.length-t.length)===t},n.fromSafeArray=function(e){var t=e;if(("object"==typeof e||"unknown"==typeof e)&&null!=e&&e.toArray){var n=e.toArray();t=new Array(n.length);for(var r=0;r<n.length;r++)t[r]=o(n[r])}return t},n.twoDVBArrayToJaggedArray=a,n.asyncResultFromErrorCode=function(e){return Array.isArray(e)&&1===e.length&&(e=e[0]),0===e?{status:Office.AsyncResultStatus.Succeeded}:{status:Office.AsyncResultStatus.Failed,error:{code:e}}},n._DebugXdm=!1}(OSF=OSF||{}),function(n){var r,e=(r=n.AsyncMethodExecutor,__extends(t,r),t.prototype.executeAsync=function(n,r,i,o){var a=this;this._clientHostController.execute(n,r.toWebHost(),function(e,t){return i&&a._asyncMethodExecutorHelper.handleWebHostResponse(t,e,i,r,n,o),!0})},t.prototype.registerEventAsync=function(n,e,t,r,i,o,a){var s=this;this._clientHostController.registerEvent(n,e,t,function(e){var t=e,n=i.fromWebHost(t);r(n)},function(e,t){return o&&s.invokeCallback(n,o,e,null,a),!0})},t.prototype.unregisterEventAsync=function(n,e,t,r,i){var o=this;this._clientHostController.unregisterEvent(n,e,t,function(e,t){return r&&o.invokeCallback(n,r,e,null,i),!0})},t);function t(e){var t=r.call(this)||this;return t._clientHostController=e,t._asyncMethodExecutorHelper=n.BootStrapExtension.createAsyncMethodExecutorHelper(t),t}n.WebAsyncMethodExecutor=e}(OSF=OSF||{}),function(p){var e;((e=p.DDA||(p.DDA={})).WebAuth||(e.WebAuth={})).getAuthContextAsync=function(e){p._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(99,{toSafeArrayHost:function(){return[]},fromSafeArrayHost:function(e){return null},toWebHost:function(){return{}},fromWebHost:function(e){return e.authContext}},e)},function(a){var s,e;(e=s=a.AuthFlow||(a.AuthFlow={})).AuthCode="authcode",e.Broker="broker",e.Implicit="implicit",a.loadAttempts=0;var o="webauth/",c="webauth.browserauth.debug.js",l="webauth.browserauth.js",t=!0,u=!1;a.load=function(i){return a.config&&a.config.authFlow===s.AuthCode?(a.loadAttempts++,a.config&&!0===a.config.useMsal5?(c="webauth.browserauth.msal5.debug.js",l="webauth.browserauth.msal5.js",u=!0):(a.config&&!1===a.config.useMsal3&&(t=!1),t&&(c="webauth.browserauth.msal3.debug.js",l="webauth.browserauth.msal3.js",u=!0)),new Promise(function(t,n){function e(o,a,s){return new Promise(function(r,i){o?p.OUtil.loadScript(o,function(e){if("boolean"!=typeof e||e)if(e instanceof Event&&e)i(new Event("loadScript: "+e.type+" '"+o+"'"));else if(s&&!a())var t=0,n=setInterval(function(){t+=500,!(a()||s<t)||(clearInterval(n),a())||i(new Event("Missing expected object after loaded."))},500);else r(null);else i(new Event("loadScript: failed to load '"+o+"'"))},p.LoadScriptHelper.getTrustedTypesPolicy(),s):r(null)})}var r=[e(a.config&&a.config.authVersion?p.LoadScriptHelper.getHostBundleJsBasePath()+o+a.config.authVersion+"/"+(a.config&&a.config.debugging?c:l):p.LoadScriptHelper.getHostBundleJsBasePath()+o+(a.config&&a.config.debugging?c:l),function(){return BrowserAuth},a.config.delayWebAuth)];u||r.push(e(a.config.msal,function(){return msal},a.config.delayMsal)),Promise.all(r).then(function(){if(a.config){var e=__assign({},a.config);i&&(e.appIds=i.appIds,e.redirectUri=i.redirectUri,e.prefetch=i.prefetch,e.clientCapabilities=i.clientCapabilities,e.usePairwiseBroker=i.usePairwiseBroker,e.trustedBrokerDomain=i.trustedBrokerDomain),BrowserAuth.Load(e,p._OfficeAppFactory.getHostInfo().osfControlAppCorrelationId).then(function(e){t(e)},function(e){n(e)})}else n(new Event("config is empty."))},function(e){n(e)})})):new Promise(function(e,t){return t(new Event("'authcode' as authFlow is only supported"))})},a.getToken=function(e,t,n,r,i,o){return a.config&&a.config.authFlow===s.AuthCode?u?BrowserAuth.GetToken({resource:e,scopes:t,applicationId:n,correlationId:r,popup:!!i,claims:o}):BrowserAuth.GetToken(e,n,r,!!i,!!i,!1,o):Promise.reject(new Event("'authcode' as authFlow is only supported"))}}(p.WebAuth||(p.WebAuth={}))}(OSF=OSF||{}),function(s){var e=(t.prototype.execute=function(r,e,i){var o=this,t=this._webClientHostControllerHelper.getHostCallArgs(r,e),n=this._webClientHostControllerHelper.getTargetMethodName(r);this._webAppState.clientEndPoint.invoke(n,function(e,t){var n=0;if(0==e)o._delegateVersion=t.Version,n=o._webClientHostControllerHelper.parseErrorFromPayload(r,t);else switch(e){case-5:n=7e3;break;default:n=5001}i&&i(n,t)},t)},t.prototype.registerEvent=function(e,t,n,r,i){this._webAppState.clientEndPoint.registerForEvent(this.getXdmEventName(n,t),function(e){r&&r(e)},this._getOnAfterRegisterEvent(!0,e,i),{controlId:this._webAppState.id,eventDispId:e,targetId:n,__timeout__:-1})},t.prototype.unregisterEvent=function(e,t,n,r){this._webAppState.clientEndPoint.unregisterForEvent(this.getXdmEventName(n,t),this._getOnAfterRegisterEvent(!1,e,r),{controlId:this._webAppState.id,eventDispId:e,targetId:n,__timeout__:-1})},t.prototype.messageParent=function(e){throw s.Utility.createNotImplementedException()},t.prototype.openDialog=function(e,t,n,r,i){throw s.Utility.createNotImplementedException()},t.prototype.closeDialog=function(e,t,n,r){throw s.Utility.createNotImplementedException()},t.prototype.sendMessage=function(e){throw s.Utility.createNotImplementedException()},t.prototype.closeSdxDialog=function(e){this._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[this._webAppState.id,s.AgaveHostAction.CloseSDXDialog,{InstanceId:this._webAppState.id,DialogCloseCallbackParam:e}])},t.prototype.resizeSdxDialog=function(e,t){this._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[this._webAppState.id,s.AgaveHostAction.ResizeSDXDialog,{InstanceId:this._webAppState.id,DialogWidth:e+"px",DialogHeight:t+"px"}])},t.prototype.getXdmEventName=function(e,t){return t==s.EventType.BindingSelectionChanged||t==s.EventType.BindingDataChanged||t==s.EventType.DataNodeDeleted||t==s.EventType.DataNodeInserted||t==s.EventType.DataNodeReplaced?e+"_"+t:t},t.prototype._getOnAfterRegisterEvent=function(r,i,o){var a=(new Date).getTime();return function(e,t){var n;if(0!=e)switch(e){case-5:n=7e3;break;default:n=5001}else n=t?t.Error?t.Error:0:5001;o&&o(n),s.AppTelemetry&&s.AppTelemetry.onRegisterDone(r,i,Math.abs((new Date).getTime()-a),n)}},t);function t(e){this._delegateVersion=1,this._webAppState=e,this._webClientHostControllerHelper=s.BootStrapExtension.createWebClientHostControllerHelper(this._webAppState,this._delegateVersion)}s.WebClientHostController=e}(OSF=OSF||{}),function(e){var t=(n.prototype.getHostCallArgs=function(e,t){var n=t;return(n=n||{}).DdaMethod={ControlId:this.getControlId(),DispatchId:e,Version:this._delegateVersion},n.__timeout__=-1,n},n.prototype.getTargetMethodName=function(e){return"executeMethod"},n.prototype.parseErrorFromPayload=function(e,t){return t.Error},n.prototype.getControlId=function(){return this._webAppState.id},n);function n(e,t){this._webAppState=e,this._delegateVersion=t}e.WebClientHostControllerHelper=t}(OSF=OSF||{}),function(s){var e=(t.prototype.read=function(o){s._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(75,{toSafeArrayHost:function(){return[]},fromSafeArrayHost:function(e){return null},toWebHost:function(){return{}},fromWebHost:function(e){return e.Properties.Settings}},function(e){if(e.status===Office.AsyncResultStatus.Succeeded){for(var t={},n=0;n<e.value.length;n++){var r=e.value[n];Array.isArray(r)?t[r[0]]=r[1]:t[r.Name]=r.Value}o(0,t)}else{var i=e.error.code;o(i,{})}})},t.prototype.write=function(e,n){var t=s._OfficeAppFactory.getAsyncMethodExecutor(),r=[];for(var i in e){var o=[];o.push(i),o.push(e[i]),r.push(o)}var a={toSafeArrayHost:function(){return null},fromSafeArrayHost:function(e){return null},toWebHost:function(){return{DdaSettingsMethod:{OverwriteIfStale:!0,Properties:r}}},fromWebHost:function(e){return null}};t.executeAsync(76,a,function(e){if(e.status===Office.AsyncResultStatus.Succeeded)n(0);else{var t=e.error.code;n(t)}})},t);function t(){}s.WebClientSettingsManager=e}(OSF=OSF||{}),function(_){var o,e=(o=_.InitializationHelper,__extends(t,o),Object.defineProperty(t.prototype,"isHostOriginTrusted",{get:function(){return this._isHostOriginTrustedFunc},set:function(e){this._isHostOriginTrustedFunc=e},enumerable:!0,configurable:!0}),t.prototype.saveAndSetDialogInfo=function(e){var t,n=_.OUtil.getSessionStorage();if(n){if((e=e||_.OUtil.parseHostInfoFromWindowName(!0,_._OfficeAppFactory.getWindowName()))&&-1<e.indexOf("isDialog")){var r=(t=_.OUtil.parseXdmInfo(!0))?t.split("|")[1]:null;return null!=r&&n.setItem(r+"IsDialog","true"),void(this._hostInfo.isDialog=!0)}this._hostInfo.isDialog=null!=n.getItem(_.OUtil.getXdmFieldValue("AppId",!1)+"IsDialog")}},t.prototype.checkReceiverOriginAndRun=function(p){return __awaiter(this,void 0,void 0,function(){var a,t,s,c,l,n,r,i,o,u;return __generator(this,function(e){switch(e.label){case 0:return 3===(a=this)._webAppState.clientEndPoint.hostTrustCheckStatus?(p(),[2]):(t=_.OUtil.parseUrl(a._webAppState.clientEndPoint.targetUrl,!1),s="https:"==t.protocol,c=t.hostname,l="NotHttps",0!==a._webAppState.clientEndPoint.hostTrustCheckStatus?[3,6]:(s||(a._webAppState.clientEndPoint.hostTrustCheckStatus=2),2==a._webAppState.clientEndPoint.hostTrustCheckStatus?[3,6]:(n=!1,_.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_10910853_OfficeJsNPMDownloadTrustedDomainList")?[4,_.XdmCommunicationManager.isHostNameValidWacDomainAsync(c,a.isHostOriginTrusted)]:[3,2])));case 1:return n=e.sent(),[3,5];case 2:return(r=_.SovereignHelper.isSovereignVersion())&&!0!==_.OUtil.getCustomOfficeInitializationSettings().trustAllCloudEnvironments||(n=_.XdmCommunicationManager.isHostNameValidWacDomain(c),a.isHostOriginTrusted&&(n=n||a.isHostOriginTrusted(c))),n||!r?[3,5]:(a._sovereignHelper||(a._sovereignHelper=new _.SovereignHelper),[4,(i=a._sovereignHelper).isConfigAvailable()]);case 3:return e.sent()?[4,i.isSovereignHostTrusted(c)]:[2];case 4:n=e.sent(),e.label=5;case 5:n&&(a._webAppState.clientEndPoint.hostTrustCheckStatus=3),e.label=6;case 6:if(a._webAppState.clientEndPoint.checkStatusLogged||null==a._hostInfo||void 0===a._hostInfo||(_.AppTelemetry.onCheckWACHost(a._webAppState.clientEndPoint.hostTrustCheckStatus,a._webAppState.id,a._hostInfo.hostType,a._hostInfo.hostPlatform,a._webAppState.clientEndPoint.targetUrl),a._webAppState.clientEndPoint.checkStatusLogged=!0),3===a._webAppState.clientEndPoint.hostTrustCheckStatus||_.LoadScriptHelper.disableHostCheck())p();else{if(_.LoadScriptHelper.isSdx())throw new Error("Not supported host");o=function(){var t=_.LoadScriptHelper.getHostBundleJsBasePath().match(/^https?:\/\/[^:/?#]*(?::([0-9]+))?/);if(t&&t[0]){var n=_.LoadScriptHelper.getHostBundleJsBasePath()+"AgaveErrorUX/index.html#",r={error:"NotTrustedWAC",locale:_.getSupportedLocale(a._hostInfo.hostLocale,_.ConstantNames.DefaultLocale),hostname:c,noHttps:!s,validate:!1},i=document.createElement("iframe");i.style.visibility="hidden",i.style.height="0",i.style.width="0";var o=function(e){if(e.source==i.contentWindow&&e.origin==t[0])try{!0===JSON.parse(e.data).hostUserTrusted?(a._webAppState.clientEndPoint.hostTrustCheckStatus=3,_.OUtil.removeEventListener(window,"message",o),document.body.removeChild(i)):(r.validate=!1,window.location.replace(n+encodeURIComponent(JSON.stringify(r)))),p()}catch(e){_.OUtil.ensureOfficeStringsJs().then(function(){document.body.textContent=Strings.OfficeOM.L_NotTrustedWAC})}};_.OUtil.addEventListener(window,"message",o),r.validate=!0,i.setAttribute("src",n+encodeURIComponent(JSON.stringify(r))),i.onload=function(){var e={hostname:c,noHttps:!s};i.contentWindow.postMessage(JSON.stringify(e),t[0])},document.body.appendChild(i)}else _.OUtil.ensureOfficeStringsJs().then(function(){document.body.textContent=Strings.OfficeOM.L_NotTrustedWAC});if(_.OUtil.checkFlight(2)&&!s)throw new Error(l)},document.body?o():(u=!1,document.addEventListener("DOMContentLoaded",function(){u||(u=!0,o())}))}return[2]}})})},t.prototype.setAgaveHostCommunication=function(){try{var i=this,e=_.OUtil.parseXdmInfoWithGivenFragment(!1,_._OfficeAppFactory.getWindowLocationHash());if(e=e||_.OUtil.parseXdmInfoFromWindowName(!1,_._OfficeAppFactory.getWindowName())){var t=_.OUtil.getInfoItems(e);null!=t&&3<=t.length&&(i._webAppState.conversationID=t[0],i._webAppState.id=t[1],i._webAppState.webAppUrl=0<=t[2].indexOf(":")?t[2]:decodeURIComponent(t[2]))}if(i._webAppState.wnd=null!=window.opener?window.opener:window.parent,this._hostInfo.isDialog&&null!=window.opener)return;i._webAppState.clientEndPoint=_.XdmCommunicationManager.connect(i._webAppState.conversationID,i._webAppState.wnd,i._webAppState.webAppUrl),i._webAppState.serviceEndPoint=_.XdmCommunicationManager.createServiceEndPoint(i._webAppState.id),i._webAppState.clientEndPoint.checkReceiverOriginAndRun=function(e){i.checkReceiverOriginAndRun(e)};var n=i._webAppState.conversationID+_.Constants.NotificationConversationIdSuffix;i._webAppState.serviceEndPoint.registerConversation(n,i._webAppState.webAppUrl),i._webAppState.serviceEndPoint.registerMethod("Office_notifyAgave",function(e){var t;switch(t="string"==typeof e?e:e[0]){case _.AgaveHostAction.Select:i._webAppState.focused=!0;break;case _.AgaveHostAction.UnSelect:i._webAppState.focused=!1;break;case _.AgaveHostAction.TabIn:case _.AgaveHostAction.CtrlF6In:window.focus();var n=document.querySelectorAll(i._tabbableElements);_.OUtil.focusToFirstTabbable(n,!1)||(window.blur(),i._webAppState.focused=!1,i._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[i._webAppState.id,_.AgaveHostAction.ExitNoFocusable]));break;case _.AgaveHostAction.TabInShift:window.focus(),n=document.querySelectorAll(i._tabbableElements),_.OUtil.focusToFirstTabbable(n,!0)||(window.blur(),i._webAppState.focused=!1,i._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[i._webAppState.id,_.AgaveHostAction.ExitNoFocusableShift]));break;case _.AgaveHostAction.SendMessage:if(Office.context.messaging.onMessage){var r=e[1];Office.context.messaging.onMessage(r)}break;case _.AgaveHostAction.TaskPaneHeaderButtonClicked:Office.context.ui.taskPaneAction.onHeaderButtonClick&&Office.context.ui.taskPaneAction.onHeaderButtonClick();break;default:_.Utility.trace("actionId "+t+" notifyAgave is wrong.")}},0,!1),i.addOrRemoveEventListenersForWindow(!0)}catch(e){throw _.AppTelemetry&&_.AppTelemetry.logAppException("Exception thrown in setAgaveHostCommunication. Exception:["+e+"]"),e}},t.prototype.getAppContext=function(e,m,y){function t(e,t){if(OSFPerformance.getAppContextXdmEnd=OSFPerformance.now(),t._appName===_.AppName.ExcelWebApp&&Array.isArray(t._settings))for(var n=0,r=t._settings;n<r.length;n++){var i=r[n],o=i[0],a=i[1];v._serializedSettings[o]=a}else v._serializedSettings=t._settings||{};if(t._appName===_.AppName.ExcelWebApp&&Array.isArray(t._hostSettings))for(var s=0,c=t._hostSettings;s<c.length;s++){var l=c[s];o=l[0],a=l[1],v._serializedHostSettings[o]=a}else v._serializedHostSettings=t._hostSettings||{};if(t._appAndHostSettingsEqual&&(v._serializedHostSettings=__assign({},v._serializedSettings)),!b._hostInfo.isDialog||null==window.opener){var u=window.location.origin;b._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[b._webAppState.id,_.AgaveHostAction.UpdateTargetUrl,u])}if(0===e&&null!=t._id&&null!=t._appName&&null!=t._appVersion&&null!=t._appUILocale&&null!=t._dataLocale&&null!=t._docUrl&&null!=t._clientMode&&null!=t._reason){var p=(b._appContext=t)._appInstanceId?t._appInstanceId:t._id,f=0;null!=t._appMinorVersion&&(f=t._appMinorVersion);var d=void 0;null!=t._requirementMatrix&&(d=t._requirementMatrix),t.eToken=t.eToken?t.eToken:"";var h=new _.OfficeAppContext(t._id,t._appName,t._appVersion,t._appUILocale,t._dataLocale,t._docUrl,t._clientMode,function(){return v._serializedSettings},t._reason,t._osfControlType,t._eToken,t._correlationId,p,!1,!0,f,d,t._hostCustomMessage,t._hostFullVersion,t._clientWindowHeight,t._clientWindowWidth,t._addinName,t._appDomains,t._dialogRequirementMatrix,t._featureGates,t._officeTheme,t._initialDisplayMode,t._isFromWacAutomation,t._wopiHostOriginForSingleSignOn,function(){return v._serializedHostSettings},!0,t._nestedAppAuthBridgeType,t._partitionKey,t._topFrameOrigin);h.set_taskpaneUrl(t._taskpaneUrl),m(h)}else{var g="Function ContextActivationManager_getAppContextAsync call failed. ErrorCode is "+e+", exception: "+t;_.AppTelemetry&&_.AppTelemetry.logAppException(g),y(g)}}var v=this,b=this;try{var n=!0;this._hostInfo.isDialog&&null!=window.opener&&(n=!1);var r=_.OUtil.parseAppContextFromWindowName(n,_._OfficeAppFactory.getWindowName());r?t(0,r):(OSFPerformance.getAppContextXdmStart=OSFPerformance.now(),this._webAppState.clientEndPoint.invoke("ContextActivationManager_getAppContextAsync",t,this._webAppState.id))}catch(e){_.AppTelemetry&&_.AppTelemetry.logAppException("Exception thrown when trying to invoke getAppContextAsync. Exception:["+e+"]"),y(e)}},t.prototype.createClientHostController=function(){return this._clientHostController||(this._clientHostController=new _.WebClientHostController(this._webAppState)),this._clientHostController},t.prototype.createAsyncMethodExecutor=function(){return new _.WebAsyncMethodExecutor(this._clientHostController)},t.prototype.createClientSettingsManager=function(){return new _.WebClientSettingsManager},t.prototype.addOrRemoveEventListenersForWindow=function(e){function t(){o._webAppState.focused||(o._webAppState.focused=!0),o._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,_.AgaveHostAction.Select])}function n(){_&&(o._webAppState.focused&&(o._webAppState.focused=!1),o._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,_.AgaveHostAction.UnSelect]))}function r(e){if(e.preventDefault=e.preventDefault||function(){e.returnValue=!1},117==e.keyCode&&(e.ctrlKey||e.metaKey)){e.preventDefault();var t=_.AgaveHostAction.CtrlF6Exit;e.shiftKey&&(t=_.AgaveHostAction.CtrlF6ExitShift),o._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,t])}else if(9==e.keyCode){e.preventDefault();var n=document.querySelectorAll(o._tabbableElements);_.OUtil.focusToNextTabbable(n,e.target||e.srcElement,e.shiftKey)||(o._hostInfo.isDialog?_.OUtil.focusToFirstTabbable(n,e.shiftKey):e.shiftKey?o._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,_.AgaveHostAction.TabExitShift]):o._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,_.AgaveHostAction.TabExit]))}else if(27==e.keyCode)e.preventDefault(),o._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,_.AgaveHostAction.EscExit]);else if(113==e.keyCode)e.preventDefault(),o._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,_.AgaveHostAction.F2Exit]);else if((e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)&&1<=e.keyCode&&e.keyCode<=255){var r={keyCode:e.keyCode,shiftKey:e.shiftKey,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey};o._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,_.AgaveHostAction.KeyboardShortcuts,r])}}function i(e){117==e.keyCode&&e.ctrlKey&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}var o=this;_.Utility._DebugXdm||(e?(_.OUtil.addEventListener(window,"focus",t),_.OUtil.addEventListener(window,"blur",n),_.OUtil.addEventListener(window,"keydown",r),_.OUtil.addEventListener(window,"keypress",i)):(_.OUtil.removeEventListener(window,"focus",t),_.OUtil.removeEventListener(window,"blur",n),_.OUtil.removeEventListener(window,"keydown",r),_.OUtil.removeEventListener(window,"keypress",i)))},t.prototype.getTabbableElements=function(){return this._tabbableElements},t.prototype.setupNestedAppAuthDependencies=function(){var e=this;window.__initializeNestedAppAuth=function(){return e._initializeNestedAppAuthPromise||(e._initializeNestedAppAuthPromise=__awaiter(e,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return[4,Office.onReadyInternal()];case 1:return e.sent(),this._createNaaBridge?[4,this._createNaaBridge()]:[3,3];case 2:e.sent(),e.label=3;case 3:return[2]}})})),e._initializeNestedAppAuthPromise}},t);function t(e,t,n,r){var i=o.call(this,e,t,n,r)||this;return i._serializedSettings={},i._serializedHostSettings={},i._initializeNestedAppAuthPromise=null,i._appContext={},i._tabbableElements="a[href]:not([tabindex='-1']),area[href]:not([tabindex='-1']),button:not([disabled]):not([tabindex='-1']),input:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),textarea:not([disabled]):not([tabindex='-1']),*[tabindex]:not([tabindex='-1']),*[contenteditable]:not([disabled]):not([tabindex='-1'])",i}_.WebInitializationHelper=e}(OSF=OSF||{}),function(a){var e=(t.prototype.read=function(n){this._initializationHelper.getAppContext(null,function(e){if(n){var t=e.get_settingsFunc()();n(0,t)}},function(e){n&&n(5001,{})})},t.prototype.write=function(e,t){var n={},r=[],i=[];for(var o in e)r.push(o),i.push(e[o]);n.keys=r,n.values=i,this._scriptMessager.invokeMethod(a.Webkit.MessageHandlerName,a.Webkit.MethodId.WriteSettings,n,function(e){t&&t(e[0])})},t);function t(e,t){this._initializationHelper=e,this._scriptMessager=t}a.WebkitClientSettingsManager=e}(OSF=OSF||{}),function(d){!function(e){var t,n;e.MessageHandlerName="Agave",e.PopupMessageHandlerName="WefPopupHandler",(t=e.AppContextProperties||(e.AppContextProperties={}))[t.Settings=0]="Settings",t[t.SolutionReferenceId=1]="SolutionReferenceId",t[t.AppType=2]="AppType",t[t.MajorVersion=3]="MajorVersion",t[t.MinorVersion=4]="MinorVersion",t[t.RevisionVersion=5]="RevisionVersion",t[t.APIVersionSequence=6]="APIVersionSequence",t[t.AppCapabilities=7]="AppCapabilities",t[t.APPUILocale=8]="APPUILocale",t[t.AppDataLocale=9]="AppDataLocale",t[t.BindingCount=10]="BindingCount",t[t.DocumentUrl=11]="DocumentUrl",t[t.ActivationMode=12]="ActivationMode",t[t.ControlIntegrationLevel=13]="ControlIntegrationLevel",t[t.SolutionToken=14]="SolutionToken",t[t.APISetVersion=15]="APISetVersion",t[t.CorrelationId=16]="CorrelationId",t[t.InstanceId=17]="InstanceId",t[t.TouchEnabled=18]="TouchEnabled",t[t.CommerceAllowed=19]="CommerceAllowed",t[t.RequirementMatrix=20]="RequirementMatrix",t[t.HostCustomMessage=21]="HostCustomMessage",t[t.HostFullVersion=22]="HostFullVersion",t[t.InitialDisplayMode=23]="InitialDisplayMode",t[t.FeatureGates=24]="FeatureGates",t[t.HostSettings=25]="HostSettings",t[t.OfficeThemeInfo=26]="OfficeThemeInfo",(n=e.MethodId||(e.MethodId={}))[n.Execute=1]="Execute",n[n.RegisterEvent=2]="RegisterEvent",n[n.UnregisterEvent=3]="UnregisterEvent",n[n.WriteSettings=4]="WriteSettings",n[n.GetContext=5]="GetContext",n[n.SendMessage=6]="SendMessage",n[n.MessageParent=7]="MessageParent",n[n.SendMessage2=8]="SendMessage2",n[n.MessageParent2=9]="MessageParent2",n[n.CloseSdxDialog=10]="CloseSdxDialog",n[n.ResizeSdxDialog=11]="ResizeSdxDialog";var r=(f.prototype.execute=function(e,t,i){var n={id:e,apiArgs:t};this.hostScriptProxy.invokeMethod(d.Webkit.MessageHandlerName,d.Webkit.MethodId.Execute,n,function(e){if(i){var t=[];if(d.OUtil.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];d.OUtil.isArray(r)&&(r=new d.WebkitSafeArray(r)),t.unshift(r)}return i.apply(null,t)}})},f.prototype.registerEvent=function(e,t,n,r,i){this.hostScriptProxy.registerEvent(d.Webkit.MessageHandlerName,d.Webkit.MethodId.RegisterEvent,e,n,function(e){var t=e,n=0;d.OUtil.isArray(e)&&2<=e.length&&(t=e[0],n=e[1]),r&&r(n,new d.WebkitSafeArray(t))},function(e){if(i)return i(new d.WebkitSafeArray(e))})},f.prototype.unregisterEvent=function(e,t,n,r){this.hostScriptProxy.unregisterEvent(d.Webkit.MessageHandlerName,d.Webkit.MethodId.UnregisterEvent,e,n,function(e){return r(new d.WebkitSafeArray(e))})},f.prototype.messageParent=function(e){var t,n;if(n=this.osfSupportsDialogOrigin&&e[d.ParameterNames.TargetOrigin]?(t=this.useFullDialogAPI?JSON.stringify(e):e[d.ParameterNames.MessageToParent],d.Webkit.MethodId.MessageParent2):(t=e[d.ParameterNames.MessageToParent],d.Webkit.MethodId.MessageParent),this.useFullDialogAPI)this.hostScriptProxy.invokeMethod(d.Webkit.MessageHandlerName,n,t,null);else{var r={dialogMessage:{messageType:0,messageContent:t}},i=n==d.Webkit.MethodId.MessageParent2?e[d.ParameterNames.TargetOrigin]:window.location.origin;window.opener.postMessage(JSON.stringify(r),i)}},f.prototype.openDialog=function(n,e,t,r,i){if(this.useFullDialogAPI)this.registerEvent(n,e,t,r,i);else if(!f.popup||f.popup.closed){f.OpenDialogCallback=void 0;var o=JSON.parse(t),a=o.url;if(a){var s=a.split("#"),c="?";-1<s[0].indexOf("?")&&(c="&");var l="width="+screen.width*o.width/100+", height="+screen.height*o.height/100;s[0]=s[0].concat(c).concat("action=displayDialog");var u=s.join("#");f.popup=window.open(u,"",l),f.DialogEventListener=function(t){if(t.origin==window.location.origin)try{var e=JSON.parse(t.data);e.dialogMessage&&r(n,[0,e.dialogMessage.messageContent,t.origin])}catch(e){d.Utility.trace("messages received cannot be handlered. Message:"+t.data)}},f.OpenDialogCallback=function(e){0==e&&(window.addEventListener("message",f.DialogEventListener),f.interval=window.setInterval(p,1e3),f.NotifyError=function(e){r(n,[e])}),i(e)}}else i(12003)}else i(12007);function p(){try{null!=f.popup&&!f.popup.closed||(window.clearInterval(f.interval),window.removeEventListener("message",f.DialogEventListener),f.NotifyError=null,f.popup=null,r(n,[12006]))}catch(e){d.Utility.trace("Error happened when popup window closed.")}}},f.prototype.closeDialog=function(e,t,n,r){this.useFullDialogAPI?this.unregisterEvent(e,t,n,r):f.popup?(f.interval&&window.clearInterval(f.interval),f.popup.close(),f.popup=null,window.removeEventListener("message",f.DialogEventListener),f.NotifyError=null,r(0)):r(5001)},f.prototype.sendMessage=function(e){var t,n;this.osfSupportsDialogOrigin&&e[d.ParameterNames.TargetOrigin]?(t=JSON.stringify(e),n=d.Webkit.MethodId.SendMessage2):(t=e[d.ParameterNames.MessageContent],n=d.Webkit.MethodId.SendMessage,!isNaN(parseFloat(t))&&isFinite(t)&&(t=t.toString())),this.hostScriptProxy.invokeMethod(d.Webkit.MessageHandlerName,n,t,null)},f.prototype.closeSdxDialog=function(e){var t=[e],n=d.Webkit.MethodId.CloseSdxDialog;this.hostScriptProxy.invokeMethod(d.Webkit.MessageHandlerName,n,t,null)},f.prototype.resizeSdxDialog=function(e,t){var n=[e,t],r=d.Webkit.MethodId.ResizeSdxDialog;this.hostScriptProxy.invokeMethod(d.Webkit.MessageHandlerName,r,n,null)},f);function f(e){this.hostScriptProxy=e,this.useFullDialogAPI=!!window._enableFullDialogAPI,this.osfSupportsDialogOrigin=!!window._osfEnableDialogOrigin}e.WebkitHostController=r}(d.Webkit||(d.Webkit={}))}(OSF=OSF||{}),function(M){var o,e=(o=M.InitializationHelper,__extends(t,o),t.prototype.initializeWebkitMessaging=function(){M.ScriptMessaging=OSFWebkit.ScriptMessaging},t.prototype.getAppContext=function(e,k,t){var n,j=this;n=this._hostInfo.isDialog&&window.webkit.messageHandlers[M.Webkit.PopupMessageHandlerName]?M.Webkit.PopupMessageHandlerName:M.Webkit.MessageHandlerName,M.ScriptMessaging.GetScriptMessenger().invokeMethod(n,M.Webkit.MethodId.GetContext,[],function(e){var t,n=M.Webkit.AppContextProperties,r=e[n.AppType],i=e[n.Settings];if(i&&2===i.length)for(var o=i[0],a=i[1],s=0;s<o.length;s++)j._serializedSettings[o[s]]=a[s];var c=e[n.HostSettings];if(c&&2===c.length)for(o=c[0],a=c[1],s=0;s<o.length;s++)j._serializedHostSettings[o[s]]=a[s];var l=e[n.SolutionReferenceId],u=e[n.MajorVersion],p=e[n.MinorVersion],f=e[n.AppCapabilities],d=e[n.APPUILocale],h=e[n.AppDataLocale],g=e[n.DocumentUrl],m=e[n.ActivationMode],y=e[n.ControlIntegrationLevel],v=e[n.SolutionToken];v=v?v.toString():"";var b,_=e[n.CorrelationId],O=e[n.InstanceId],S=e[n.TouchEnabled],C=e[n.CommerceAllowed],A=e[n.RequirementMatrix],P=e[n.HostCustomMessage],E=e[n.HostFullVersion],T=e[n.InitialDisplayMode],I=e[n.FeatureGates];if(I)try{b=JSON.parse(I)}catch(e){M.AppTelemetry&&M.AppTelemetry.logAppException("Exception trying to parse FeatureGates."+e)}var w=null;if(e[n.OfficeThemeInfo])try{w=JSON.parse(e[n.OfficeThemeInfo])}catch(e){M.AppTelemetry&&M.AppTelemetry.logAppException("Exception while parsing officeThemeInfo. Details: "+e)}var R={};if(w){var D={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 x in w){var F=!1,N=x;D[x]&&(N=D[x].name,F=D[x].convertToHex),R[N]=F?M.OUtil.convertIntToCssHexColor(w[x]):w[x]}}t=new M.OfficeAppContext(l,r,u,d,h,g,f,function(){return j._serializedSettings},m,y,v,_,O,S,C,p,A,P,E,void 0,void 0,void 0,void 0,void 0,b,R,T,void 0,void 0,function(){return j._serializedHostSettings},!1,void 0,void 0,void 0),k(t)})},t.prototype.createClientHostController=function(){return this._clientHostController||(this._clientHostController=new M.Webkit.WebkitHostController(M.ScriptMessaging.GetScriptMessenger())),this._clientHostController},t.prototype.createAsyncMethodExecutor=function(){return new M.SafeArrayAsyncMethodExecutor(this.createClientHostController())},t.prototype.createClientSettingsManager=function(){return new M.WebkitClientSettingsManager(this,M.ScriptMessaging.GetScriptMessenger())},t);function t(e,t,n,r){var i=o.call(this,e,t,n,r)||this;return i._serializedSettings={},i._serializedHostSettings={},i.initializeWebkitMessaging(),i}M.WebkitInitializationHelper=e}(OSF=OSF||{}),function(s){var e=(r.prototype.dimensions=function(){var e=0;return this.safeArrayFlag?e=this.data[0][0]:this.isArray()&&(e=2),e},r.prototype.getItem=function(){var e=null;e=this.safeArrayFlag?this.toArray():this.data;for(var t=0;t<arguments.length;t++)e=e[arguments[t]];return e},r.prototype.lbound=function(e){return 0},r.prototype.ubound=function(e){var t=0;if(this.safeArrayFlag)t=this.data[0][e];else if(this.isArray()){if(1==e)return this.data.length;if(2==e){if(s.OUtil.isArray(this.data[0]))return this.data[0].length;if(null!=this.data[0])return 1}}return t},r.prototype.toArray=function(){if(0==this.isArray())return this.data;for(var e=[],t=this.safeArrayFlag?1:0;t<this.data.length;t++){var n=this.data[t];this.isSafeArray(n)?e.push(new r(n)):e.push(n)}return e},r.prototype.isArray=function(){return s.OUtil.isArray(this.data)},r.prototype.isSafeArray=function(e){var t=!1;if(s.OUtil.isArray(e)&&s.OUtil.isArray(e[0])){var n=e[0],r=n[0];if(n.length!=r+1)return!1;for(var i=1,o=1;o<n.length;o++){var a=n[o];if(0==isFinite(a))return!1;i*=a}t=++i==e.length}return t},r);function r(e){this.data=e,this.safeArrayFlag=this.isSafeArray(e)}s.WebkitSafeArray=e}(OSF=OSF||{}),function(e){!function(e){var n=null;e.agaveHostCallback=function(e,t){n.agaveHostCallback(e,t)},e.agaveHostEventCallback=function(e,t){n.agaveHostEventCallback(e,t)},e.GetScriptMessenger=function(){return null==n&&(n=t.IsSupportedByHost()?new t:new i("OSF.ScriptMessaging.agaveHostCallback","OSF.ScriptMessaging.agaveHostEventCallback")),n};var l=function(e,t,n){this.id=e,this.targetId=t,this.handler=n},t=(r.IsSupportedByHost=function(){return!!window._osfHostAPI},r.prototype.invokeMethod=function(e,t,n,r){window._osfHostAPI(e,this.constructMessagingArgs(t,n),function(e){var t=r(e);return void 0===t||!0===t})},r.prototype.registerEvent=function(e,t,n,r,i,o){var a={id:n,targetId:r},s=window._osfHostRegisterEvent(e,this.constructMessagingArgs(t,a),function(e){return i(e),!1},function(e){return o(e),!0});this.eventHandlers.push({targetId:r,dispId:n,callbackId:s.eventCallbackId})},r.prototype.unregisterEvent=function(e,t,n,r,i){var o={id:n,targetId:r};window._osfHostAPI(e,this.constructMessagingArgs(t,o),function(e){return i(e),!0});for(var a=this.eventHandlers.length-1;0<=a;a--){var s=this.eventHandlers[a];s.dispId===n&&s.targetId===r&&(this.eventHandlers.splice(a,1),window._osfHostUnregisterCallback(s.callbackId))}},r.prototype.agaveHostCallback=function(e,t){},r.prototype.agaveHostEventCallback=function(e,t){},r.prototype.constructMessagingArgs=function(e,t){return{params:t,methodId:e}},r);function r(){this.eventHandlers=[]}var i=(c.prototype.invokeMethod=function(e,t,n,r){this.postWebkitMessage({},e,t,n,r)},c.prototype.registerEvent=function(e,t,n,r,i,o){var a={eventCallbackFunction:this.eventCallbackFunctionName},s={id:n,targetId:r},c=this.postWebkitMessage(a,e,t,s,o);this.eventHandlerList[c]=new l(n,r,i)},c.prototype.unregisterEvent=function(e,t,n,r,i){var o={id:n,targetId:r};for(var a in this.eventHandlerList)if(this.eventHandlerList.hasOwnProperty(a)){var s=this.eventHandlerList[a];s.id==n&&s.targetId==r&&delete this.eventHandlerList[a]}this.invokeMethod(e,t,o,i)},c.prototype.agaveHostCallback=function(e,t){var n=this.callbackList[e];if(n){var r=n(t);void 0!==r&&!0!==r||delete this.callbackList[e]}},c.prototype.agaveHostEventCallback=function(e,t){var n=this.eventHandlerList[e];n&&n.handler(t)},c.prototype.postWebkitMessage=function(e,t,n,r,i){e.methodId=n,e.params=r;var o="";function a(){window.webkit.messageHandlers[t].postMessage(JSON.stringify(e))}i&&(o=this.generateCorrelationId(),this.callbackList[o]=i,e.callbackId=o,e.callbackFunction=this.asyncMethodCallbackFunctionName);var s=c.getCurrentTimeMS();return null==this.lastMessageTimestamp||s-this.lastMessageTimestamp>=c.MESSAGE_TIME_DELTA?(a(),this.lastMessageTimestamp=s):(this.lastMessageTimestamp+=c.MESSAGE_TIME_DELTA,setTimeout(function(){a()},this.lastMessageTimestamp-s)),o},c.prototype.generateCorrelationId=function(){return++this.callingIndex,this.conversationId+this.callingIndex},c.getCurrentTimeMS=function(){return(new Date).getTime()},c.MESSAGE_TIME_DELTA=10,c);function c(e,t){this.callingIndex=0,this.callbackList={},this.eventHandlerList={},this.asyncMethodCallbackFunctionName=e,this.eventCallbackFunctionName=t,this.conversationId=c.getCurrentTimeMS().toString()}}(e.ScriptMessaging||(e.ScriptMessaging={}))}(OSFWebkit=OSFWebkit||{}),function(a){var e=(t.prototype.read=function(n){this._initializationHelper.getAppContext(null,function(e){if(n){var t=e.get_settingsFunc()();n(0,t)}},function(e){n&&n(5001,{})})},t.prototype.write=function(e,t){var n={},r=[],i=[];for(var o in e)r.push(o),i.push(e[o]);n.keys=r,n.values=i,this._scriptMessager.invokeMethod(a.WebView.MessageHandlerName,a.WebView.MethodId.WriteSettings,n,function(e){t&&t(e[0])})},t);function t(e,t){this._initializationHelper=e,this._scriptMessager=t}a.WebViewClientSettingsManager=e}(OSF=OSF||{}),function(d){!function(e){var t,n;e.MessageHandlerName="Agave",e.PopupMessageHandlerName="WefPopupHandler",(t=e.AppContextProperties||(e.AppContextProperties={}))[t.Settings=0]="Settings",t[t.SolutionReferenceId=1]="SolutionReferenceId",t[t.AppType=2]="AppType",t[t.MajorVersion=3]="MajorVersion",t[t.MinorVersion=4]="MinorVersion",t[t.RevisionVersion=5]="RevisionVersion",t[t.APIVersionSequence=6]="APIVersionSequence",t[t.AppCapabilities=7]="AppCapabilities",t[t.APPUILocale=8]="APPUILocale",t[t.AppDataLocale=9]="AppDataLocale",t[t.BindingCount=10]="BindingCount",t[t.DocumentUrl=11]="DocumentUrl",t[t.ActivationMode=12]="ActivationMode",t[t.ControlIntegrationLevel=13]="ControlIntegrationLevel",t[t.SolutionToken=14]="SolutionToken",t[t.APISetVersion=15]="APISetVersion",t[t.CorrelationId=16]="CorrelationId",t[t.InstanceId=17]="InstanceId",t[t.TouchEnabled=18]="TouchEnabled",t[t.CommerceAllowed=19]="CommerceAllowed",t[t.RequirementMatrix=20]="RequirementMatrix",t[t.OfficeThemeInfo=21]="OfficeThemeInfo",(n=e.MethodId||(e.MethodId={}))[n.Execute=1]="Execute",n[n.RegisterEvent=2]="RegisterEvent",n[n.UnregisterEvent=3]="UnregisterEvent",n[n.WriteSettings=4]="WriteSettings",n[n.GetContext=5]="GetContext",n[n.OnKeydown=6]="OnKeydown",n[n.AddinInitialized=7]="AddinInitialized",n[n.OpenWindow=8]="OpenWindow",n[n.MessageParent=9]="MessageParent",n[n.SendMessage=10]="SendMessage";var r=(f.prototype.execute=function(e,t,n){var r=t;null==r&&(r=[]);var i={id:e,apiArgs:r};this.hostScriptProxy.invokeMethod(d.WebView.MessageHandlerName,d.WebView.MethodId.Execute,i,function(e){var t=e;if(d.OUtil.isArray(e)&&2<=e.length&&(e[0],t=e[1]),n)return n(new d.WebkitSafeArray(t))})},f.prototype.registerEvent=function(e,t,n,r,i){this.hostScriptProxy.registerEvent(d.WebView.MessageHandlerName,d.WebView.MethodId.RegisterEvent,e,n,function(e){var t=e,n=0;d.OUtil.isArray(e)&&2<=e.length&&(n=e[0],t=e[1]),r&&r(n,new d.WebkitSafeArray(t))},function(e){if(i)return i(new d.WebkitSafeArray(e))})},f.prototype.unregisterEvent=function(e,t,n,r){this.hostScriptProxy.unregisterEvent(d.WebView.MessageHandlerName,d.WebView.MethodId.UnregisterEvent,e,n,function(e){return r(new d.WebkitSafeArray(e))})},f.prototype.messageParent=function(e){var t={dialogMessage:{messageType:0,messageContent:e[d.ParameterNames.MessageToParent]}};window.opener.postMessage(JSON.stringify(t),window.location.origin)},f.prototype.openDialog=function(n,e,t,r,i){var o=JSON.parse(t),a=o.url;if(a){var s=a.split("#"),c="?";-1<a.indexOf("?")&&(c="&");var l="width="+screen.width*o.width/100+", height="+screen.height*o.height/100;s[0]=s[0].concat(c).concat("action=displayDialog");var u,p=s.join("#");f.popup=window.open(p,"",l),window.addEventListener("message",function(t){if(t.source==f.popup)try{var e=JSON.parse(t.data);e.dialogMessage&&r(n,[0,e.dialogMessage.messageContent])}catch(e){d.Utility.trace("messages received cannot be handled. Message:"+t.data)}}),u=window.setInterval(function(){try{null!=f.popup&&!f.popup.closed||(window.clearInterval(u),r(n,[12006]))}catch(e){d.Utility.trace("Error happened when popup window closed.")}},1e3),i(0)}},f.prototype.closeDialog=function(e,t,n,r){f.popup?(f.popup.close(),f.popup=null,r(0)):r(5001)},f.prototype.sendMessage=function(e){var t=e[d.ParameterNames.MessageContent];!isNaN(parseFloat(t))&&isFinite(t)&&(t=t.toString()),this.hostScriptProxy.invokeMethod(d.WebView.MessageHandlerName,d.WebView.MethodId.SendMessage,t,null)},f.prototype.closeSdxDialog=function(e){throw d.Utility.createNotImplementedException()},f.prototype.resizeSdxDialog=function(e,t){throw d.Utility.createNotImplementedException()},f);function f(e){this.hostScriptProxy=e}e.WebViewHostController=r}(d.WebView||(d.WebView={}))}(OSF=OSF||{}),function(I){var o,e=(o=I.InitializationHelper,__extends(t,o),t.prototype.initializeWebViewMessaging=function(){I.ScriptMessaging=I.WebView.ScriptMessaging},t.prototype.getAppContext=function(e,E,t){var n,T=this;n=this._hostInfo.isDialog?I.WebView.PopupMessageHandlerName:I.WebView.MessageHandlerName,I.ScriptMessaging.GetScriptMessenger().invokeMethod(n,I.WebView.MethodId.GetContext,[],function(e){var t,n=I.Webkit.AppContextProperties,r=e[n.AppType],i=e[n.Settings];if(i&&2===i.length)for(var o=i[0],a=i[1],s=0;s<o.length;s++)T._serializedSettings[o[s]]=a[s];var c=e[n.SolutionReferenceId],l=e[n.MajorVersion],u=e[n.MinorVersion],p=e[n.AppCapabilities],f=e[n.APPUILocale],d=e[n.AppDataLocale],h=e[n.DocumentUrl],g=e[n.ActivationMode],m=e[n.ControlIntegrationLevel],y=e[n.SolutionToken];y=y?y.toString():"";var v=e[n.CorrelationId],b=e[n.InstanceId],_=e[n.TouchEnabled],O=e[n.CommerceAllowed],S=e[n.RequirementMatrix],C=e[n.HostCustomMessage],A=e[n.HostFullVersion],P=e[n.InitialDisplayMode];t=new I.OfficeAppContext(c,r,l,f,d,h,p,function(){return T._serializedSettings},g,m,y,v,b,_,O,u,S,C,A,void 0,void 0,void 0,void 0,void 0,void 0,void 0,P,void 0,void 0,void 0,!1,void 0,void 0,void 0),E(t)})},t.prototype.createClientHostController=function(){return this._clientHostController||(this._clientHostController=new I.WebView.WebViewHostController(I.ScriptMessaging.GetScriptMessenger())),this._clientHostController},t.prototype.createAsyncMethodExecutor=function(){return new I.SafeArrayAsyncMethodExecutor(this.createClientHostController())},t.prototype.createClientSettingsManager=function(){return new I.WebViewClientSettingsManager(this,I.ScriptMessaging.GetScriptMessenger())},t);function t(e,t,n,r){var i=o.call(this,e,t,n,r)||this;return i._serializedSettings={},i.initializeWebViewMessaging(),i}I.WebViewInitializationHelper=e}(OSF=OSF||{}),function(n){var r,e,t,i,o;function a(){}function s(){window.addEventListener("message",this.OnReceiveMessage.bind(this))}!function(e){var t;(t=e.CallbackType||(e.CallbackType={}))[t.MethodCallback=0]="MethodCallback",t[t.EventCallback=1]="EventCallback";function n(e,t,n){this.callbackType=e,this.callbackId=t,this.params=n}e.CallbackData=n}(r=r||{}),e=n.Android||(n.Android={}),a.getInstance=function(){return null==a.uniqueInstance&&(a.uniqueInstance=new a),a.uniqueInstance},a.prototype.postMessage=function(e,t){agaveHost.postMessage(t)},a.prototype.ReceiveMessage=function(e){switch(e.callbackType){case r.CallbackType.MethodCallback:n.WebView.ScriptMessaging.agaveHostCallback(e.callbackId,e.params);break;case r.CallbackType.EventCallback:n.WebView.ScriptMessaging.agaveHostEventCallback(e.callbackId,e.params)}},t=a,e.Poster=t,i=n.WinRT||(n.WinRT={}),s.prototype.postMessage=function(e,t){window.parent.postMessage(t,"*")},s.prototype.OnReceiveMessage=function(e){if(e.source==window.parent&&window.parent==window.top&&e.origin.startsWith("ms-appx-web://")){var t;try{t=JSON.parse(e.data)}catch(e){return}switch(t.callbackType){case r.CallbackType.MethodCallback:n.WebView.ScriptMessaging.agaveHostCallback(t.callbackId,JSON.parse(t.params));break;case r.CallbackType.EventCallback:n.WebView.ScriptMessaging.agaveHostEventCallback(t.callbackId,JSON.parse(t.params))}}},o=s,i.Poster=o}(OSF=OSF||{}),function(i){var e;(function(e){var n=null;e.agaveHostCallback=function(e,t){n.agaveHostCallback(e,t)},e.agaveHostEventCallback=function(e,t){n.agaveHostEventCallback(e,t)},e.GetScriptMessenger=function(){if(null==n){var e=i._OfficeAppFactory.getHostInfo().hostPlatform;if(e===i.HostInfoPlatform.android)n=new t("OSF.ScriptMessaging.agaveHostCallback","OSF.ScriptMessaging.agaveHostEventCallback",i.Android.Poster.getInstance());else{if(e!==i.HostInfoPlatform.winrt)throw i.Utility.createNotImplementedException();n=new t("agaveHostCallback","agaveHostEventCallback",new i.WinRT.Poster)}}return n};var l=function(e,t,n){this.id=e,this.targetId=t,this.handler=n},t=(r.prototype.invokeMethod=function(e,t,n,r){this.postMessage({},e,t,n,r)},r.prototype.registerEvent=function(e,t,n,r,i,o){var a={eventCallbackFunction:this.eventCallbackFunctionName},s={id:n,targetId:r},c=this.postMessage(a,e,t,s,o);this.eventHandlerList[c]=new l(n,r,i)},r.prototype.unregisterEvent=function(e,t,n,r,i){var o={id:n,targetId:r};for(var a in this.eventHandlerList)if(this.eventHandlerList.hasOwnProperty(a)){var s=this.eventHandlerList[a];s.id==n&&s.targetId==r&&delete this.eventHandlerList[a]}this.invokeMethod(e,t,o,i)},r.prototype.agaveHostCallback=function(e,t){var n=this.callbackList[e];if(n){var r=n(t);void 0!==r&&!0!==r||delete this.callbackList[e]}},r.prototype.agaveHostEventCallback=function(e,t){var n=this.eventHandlerList[e];n&&n.handler(t)},r.prototype.postMessage=function(e,t,n,r,i){var o=this.generateCorrelationId();return this.callbackList[o]=i,e.methodId=n,e.params=r,e.callbackId=o,e.callbackFunction=this.asyncMethodCallbackFunctionName,this.poster.postMessage(t,JSON.stringify(e)),o},r.prototype.generateCorrelationId=function(){return++this.callingIndex,this.conversationId+this.callingIndex},r.getCurrentTimeMS=function(){return(new Date).getTime()},r.MESSAGE_TIME_DELTA=10,r);function r(e,t,n){this.callingIndex=0,this.callbackList={},this.eventHandlerList={},this.asyncMethodCallbackFunctionName=e,this.eventCallbackFunctionName=t,this.poster=n,this.conversationId=r.getCurrentTimeMS().toString()}})((e=i.WebView||(i.WebView={})).ScriptMessaging||(e.ScriptMessaging={}))}(OSF=OSF||{}),function(n){var e,t=(e=n.RichClientHostController,__extends(r,e),r.prototype.messageParent=function(e){if(n.Utility.externalNativeFunctionExists(typeof window.external.MessageParent2))"undefined"!=typeof OsfOMToken&&OsfOMToken?window.external.MessageParent2(JSON.stringify(e),OsfOMToken):window.external.MessageParent2(JSON.stringify(e));else{var t=e[n.ParameterNames.MessageToParent];window.external.MessageParent(t)}},r.prototype.openDialog=function(e,t,n,r,i){this.registerEvent(e,t,n,r,i)},r.prototype.closeDialog=function(e,t,n,r){this.unregisterEvent(e,t,n,r)},r.prototype.sendMessage=function(e){if(n.Utility.externalNativeFunctionExists(typeof window.external.MessageChild2))"undefined"!=typeof OsfOMToken&&OsfOMToken?window.external.MessageChild2(JSON.stringify(e),OsfOMToken):window.external.MessageChild2(JSON.stringify(e));else{var t=e[n.ParameterNames.MessageContent];window.external.MessageChild(t)}},r.prototype.closeSdxDialog=function(e){n.Utility.externalNativeFunctionExists(typeof window.external.closeSdxDialog)&&window.external.closeSdxDialog(e)},r.prototype.resizeSdxDialog=function(e,t){n.Utility.externalNativeFunctionExists(typeof window.external.resizeSdxDialog)&&window.external.resizeSdxDialog(e,t)},r);function r(){return null!==e&&e.apply(this,arguments)||this}n.Win32RichClientHostController=t}(OSF=OSF||{}),function(f){var e,t=(e=f.Webkit.WebkitHostController,__extends(d,e),d.prototype.openDialog=function(n,e,t,r,i){if(!d.popup||d.popup.closed){window.dialogAPIErrorCode=void 0;var o=JSON.parse(t),a=o.url;if(a){var s=a.split("#"),c="?";-1<s[0].indexOf("?")&&(c="&");var l="width="+screen.width*o.width/100+", height="+screen.height*o.height/100;s[0]=s[0].concat(c).concat("action=displayDialog");var u=s.join("#");if(d.popup=window.open(u,"",l),d.DialogEventListener=function(t){if(t.source==d.popup)try{var e=JSON.parse(t.data);e.dialogMessage&&r(n,[0,e.dialogMessage.messageContent])}catch(e){f.Utility.trace("messages received cannot be handlered. Message:"+t.data)}},null!=d.popup&&null==window.dialogAPIErrorCode)window.addEventListener("message",d.DialogEventListener),d.interval=window.setInterval(function(){try{null!=d.popup&&!d.popup.closed||(window.clearInterval(d.interval),window.removeEventListener("message",d.DialogEventListener),d.NotifyError=null,r(n,[12006]))}catch(e){f.Utility.trace("Error happened when popup window closed.")}},500),d.NotifyError=function(e){r(n,[e])},i(0);else{var p=5001;window.dialogAPIErrorCode&&(p=window.dialogAPIErrorCode),i(p)}}else i(12003)}else i(12007)},d.prototype.messageParent=function(e){var t={dialogMessage:{messageType:0,messageContent:e[f.ParameterNames.MessageToParent]}};window.opener.postMessage(JSON.stringify(t),window.location.origin)},d.prototype.closeDialog=function(e,t,n,r){d.popup?(d.interval&&window.clearInterval(d.interval),d.popup.close(),d.popup=null,window.removeEventListener("message",d.DialogEventListener),d.NotifyError=null,r(0)):r(5001)},d);function d(){return null!==e&&e.apply(this,arguments)||this}f.MacRichClientHostController=t}(OSF=OSF||{}),function(e){var t,n,r;((n=e._Internal||(e._Internal={})).PromiseImpl||(n.PromiseImpl={})).Init=function(){return function(){"use strict";function l(e){return"function"==typeof e}var n,a=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=0,s=function(e,t){p[r]=e,p[r+1]=t,2===(r+=2)&&(n?n(f):i())};var e="undefined"!=typeof process&&"[object process]"==={}.toString.call(process),t="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;var i,o,c,u,p=new Array(1e3);function f(){for(var e=0;e<r;e+=2){(0,p[e])(p[e+1]),p[e]=void 0,p[e+1]=void 0}r=0}function d(){}i=e?(c=process.nextTick,u=process.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/),Array.isArray(u)&&"0"===u[1]&&"10"===u[2]&&(c=setImmediate),function(){c(f)}):t?((o=new MessageChannel).port1.onmessage=f,function(){o.port2.postMessage(0)}):function(){setTimeout(f,1)};var h=void 0,g=1,m=2,y=new E;function v(e,r,i){s(function(t){var n=!1,e=function(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}(i,r,function(e){n||(n=!0,(r!==e?_:S)(t,e))},function(e){n||(n=!0,C(t,e))},t._label);!n&&e&&(n=!0,C(t,e))},e)}function b(e,t){if(t.constructor===e.constructor)r=e,(i=t)._state===g?S(r,i._result):i._state===m?C(r,i._result):A(i,void 0,function(e){_(r,e)},function(e){C(r,e)});else{var n=function(e){try{return e.then}catch(e){return y.error=e,y}}(t);n===y?C(e,y.error):void 0!==n&&l(n)?v(e,t,n):S(e,t)}var r,i}function _(e,t){var n;e===t?C(e,new TypeError("You cannot resolve a promise with itself")):("function"==typeof(n=t)||"object"==typeof n&&null!==n?b:S)(e,t)}function O(e){e._onerror&&e._onerror(e._result),P(e)}function S(e,t){e._state===h&&(e._result=t,e._state=g,0!==e._subscribers.length&&s(P,e))}function C(e,t){e._state===h&&(e._state=m,e._result=t,s(O,e))}function A(e,t,n,r){var i=e._subscribers,o=i.length;e._onerror=null,i[o]=t,i[o+g]=n,i[o+m]=r,0===o&&e._state&&s(P,e)}function P(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r,i,o=e._result,a=0;a<t.length;a+=3)r=t[a],i=t[a+n],r?I(n,r,i,o):i(o);e._subscribers.length=0}}function E(){this.error=null}var T=new E;function I(e,t,n,r){var i,o,a,s,c=l(n);if(c){if((i=function(e,t){try{return e(t)}catch(e){return T.error=e,T}}(n,r))===T?(s=!0,o=i.error,i=null):a=!0,t===i)return void C(t,new TypeError("A promises callback cannot return that same promise."))}else i=r,a=!0;t._state!==h||(c&&a?_(t,i):s?C(t,o):e===g?S(t,i):e===m&&C(t,i))}function w(e,t){var n=this;n._instanceConstructor=e,n.promise=new e(d),n._validateInput(t)?(n._input=t,n.length=t.length,n._remaining=t.length,n._init(),0===n.length?S(n.promise,n._result):(n.length=n.length||0,n._enumerate(),0===n._remaining&&S(n.promise,n._result))):C(n.promise,n._validationError())}w.prototype._validateInput=function(e){return a(e)},w.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},w.prototype._init=function(){this._result=new Array(this.length)};var R=w;w.prototype._enumerate=function(){for(var e=this.length,t=this.promise,n=this._input,r=0;t._state===h&&r<e;r++)this._eachEntry(n[r],r)},w.prototype._eachEntry=function(e,t){var n,r=this,i=r._instanceConstructor;"object"==typeof(n=e)&&null!==n?e.constructor===i&&e._state!==h?(e._onerror=null,r._settledAt(e._state,t,e._result)):r._willSettleAt(i.resolve(e),t):(r._remaining--,r._result[t]=e)},w.prototype._settledAt=function(e,t,n){var r=this,i=r.promise;i._state===h&&(r._remaining--,e===m?C(i,n):r._result[t]=n),0===r._remaining&&S(i,r._result)},w.prototype._willSettleAt=function(e,t){var n=this;A(e,void 0,function(e){n._settledAt(g,t,e)},function(e){n._settledAt(m,t,e)})};function D(e){var t=new this(d);if(!a(e))return C(t,new TypeError("You must pass an array to race.")),t;var n=e.length;function r(e){_(t,e)}function i(e){C(t,e)}for(var o=0;t._state===h&&o<n;o++)A(this.resolve(e[o]),void 0,r,i);return t}function x(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(d);return _(t,e),t}function F(e){var t=new this(d);return C(t,e),t}var N=0;var k=j;function j(e){this._id=N++,this._state=void 0,this._result=void 0,this._subscribers=[],d!==e&&(l(e)||function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof j||function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}(),function(t,e){try{e(function(e){_(t,e)},function(e){C(t,e)})}catch(e){C(t,e)}}(this,e))}return j.all=function(e){return new R(this,e).promise},j.race=D,j.resolve=x,j.reject=F,j._setScheduler=function(e){n=e},j._setAsap=function(e){s=e},j._asap=s,j.prototype={constructor:j,then:function(e,t){var n=this._state;if(n===g&&!e||n===m&&!t)return this;var r=new this.constructor(d),i=this._result;if(n){var o=arguments[n-1];s(function(){I(n,r,o,i)})}else A(this,r,e,t);return r},catch:function(e){return this.then(null,e)}},k}.call(this)},(r=t=e._Internal||(e._Internal={})).OfficePromise=function(){if("undefined"==typeof window&&"function"==typeof Promise)return Promise;if("undefined"!=typeof window){if(window.Promise)return window.Promise;var e=r.PromiseImpl.Init();return window.Promise=e}}(),e.OfficePromise=t.OfficePromise,e.Promise=e.OfficePromise}(Office=Office||{}),(SDX||(SDX={})).getFields=function(e,t){var n=[];return void 0!==t.id&&n.push(oteljs.makeStringDataField(e+".Id",t.id)),void 0!==t.version&&n.push(oteljs.makeStringDataField(e+".Version",t.version)),void 0!==t.instanceId&&n.push(oteljs.makeStringDataField(e+".InstanceId",t.instanceId)),void 0!==t.name&&n.push(oteljs.makeStringDataField(e+".Name",t.name)),void 0!==t.marketplaceType&&n.push(oteljs.makeStringDataField(e+".MarketplaceType",t.marketplaceType)),void 0!==t.sessionId&&n.push(oteljs.makeStringDataField(e+".SessionId",t.sessionId)),void 0!==t.browserToken&&n.push(oteljs.makeStringDataField(e+".BrowserToken",t.browserToken)),void 0!==t.osfRuntimeVersion&&n.push(oteljs.makeStringDataField(e+".OsfRuntimeVersion",t.osfRuntimeVersion)),void 0!==t.officeJsVersion&&n.push(oteljs.makeStringDataField(e+".OfficeJsVersion",t.officeJsVersion)),void 0!==t.hostJsVersion&&n.push(oteljs.makeStringDataField(e+".HostJsVersion",t.hostJsVersion)),void 0!==t.assetId&&n.push(oteljs.makeStringDataField(e+".AssetId",t.assetId)),void 0!==t.providerName&&n.push(oteljs.makeStringDataField(e+".ProviderName",t.providerName)),void 0!==t.type&&n.push(oteljs.makeStringDataField(e+".Type",t.type)),void 0!==t.officeJSSource&&n.push(oteljs.makeInt64DataField(e+".OfficeJSSource",t.officeJSSource)),void 0!==t.isSecureDefaultsEnabled&&n.push(oteljs.makeBooleanDataField(e+".IsSecureDefaultsEnabled",t.isSecureDefaultsEnabled)),n},function(v){!function(o){var a,s=v.OUtil.Guid.generateNewGuid(),c=new RegExp("^https?://store\\.office(ppe|-int)?\\.com/","i"),l=!1,u="PRIVATE";o.enableTelemetry=!0;var p=function(){};o.AppInfo=p;var f=(e.prototype.getClientId=function(){var e=this.getValue(this.clientIDKey);return(!e||e.length<=0||40<e.length)&&(e=v.OUtil.Guid.generateNewGuid(),this.setValue(this.clientIDKey,e)),e},e.prototype.getValue=function(e){var t=v.OUtil.getLocalStorage(),n="";return t&&(n=t.getItem(e)),n},e.prototype.setValue=function(e,t){var n=v.OUtil.getLocalStorage();n&&n.setItem(e,t)},e);function e(){this.clientIDKey="Office API client",this.logIdSetKey="Office App Log Id Set"}function d(e){return(e=e&&e.replace(/[{}]/g,"").toLowerCase())||""}function h(t){try{return JSON.parse(t)}catch(e){return t}}function t(){a&&(l||OTel.OTelLogger.onTelemetryLoaded(function(){var e=[],t=a.isMos?1:0;e=e.concat([oteljs.makeStringDataField("Browser",a.browser),oteljs.makeInt64DataField("AppSizeWidth",window.innerWidth),oteljs.makeInt64DataField("AppSizeHeight",window.innerHeight),oteljs.makeInt64DataField("IsMOS",t)]),v.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_10045620_CopilotAgentTelSettings")&&a.launchSource&&a.launchReason&&(e.push(oteljs.makeStringDataField("LaunchSource",a.launchSource)),e.push(oteljs.makeStringDataField("LaunchReason",a.launchReason))),Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.AppActivatedX",dataFields:e,eventFlags:{dataCategories:2,diagnosticLevel:110,samplingPolicy:191}})}))}function n(e,t){}function g(){var e=0!=(v._OfficeAppFactory.getHostInfo().flags&v.HostInfoFlags.PublicAddin);return e||!!a&&r(v._OfficeAppFactory.getHostInfo().hostPlatform,a.hostVersion)}function m(e,t){return g()||t!==e?t:u}function r(e,t){var n=!1,r=/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/.exec(t);if(r){var i=parseInt(r[1]),o=parseInt(r[2]),a=parseInt(r[3]);e==v.HostInfoPlatform.win32?(i<16||16==i&&a<14225)&&(n=!0):e==v.HostInfoPlatform.mac&&(i<16||16==i&&(o<52||52==o&&a<808))&&(n=!0)}return n}function y(){return 0!=(v._OfficeAppFactory.getHostInfo().flags&v.HostInfoFlags.IsMos)}o.initialize=function(e){if(o.enableTelemetry&&!a){a=new p,e.get_hostFullVersion()?a.hostVersion=e.get_hostFullVersion():a.hostVersion=e.get_appVersion(),a.appId=g()?e.get_id():u,a.marketplaceType=e._marketplaceType,a.host=""+e.get_appName(),a.browser=window.navigator.userAgent,a.correlationId=d(e.get_correlationId()),a.clientId=(new f).getClientId(),a.appInstanceId=e.get_appInstanceId(),a.appInstanceId&&(a.appInstanceId=d(a.appInstanceId),a.appInstanceId=m(e.get_id(),a.appInstanceId)),a.message=e.get_hostCustomMessage(),a.officeJSVersion=v.ConstantNames.FileVersion,a.hostJSVersion="NA",e._wacHostEnvironment&&(a.wacHostEnvironment=e._wacHostEnvironment);var t=e.get_isFromWacAutomation();null!=t&&(a.isFromWacAutomation=t.toString().toLowerCase()),a.officeJSSource=v.OUtil.getLibraryReleaseVehicle(),a.isSecureDefaultsEnabled="undefined"!=typeof isOsfSecurityDefaultsEnabled&&!0===isOsfSecurityDefaultsEnabled;var n=e.get_docUrl();a.docUrl=c.test(n)?n:"";var r=location.href;if(r&&(a.isPreload=-1!==r.indexOf("preload=1"),r=r.split("?")[0].split("#")[0]),a.isMos=y(),v.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_10045620_CopilotAgentTelSettings")){var i=e.get_settingsFunc()();i&&i.LaunchSource&&i.LaunchReason&&(a.launchSource=h(i.LaunchSource),a.launchReason=h(i.LaunchReason))}!function(e,t){t.assetId="",t.userId="";try{if(!v.Utility.isNullOrEmpty(e)){var n=decodeURIComponent(e),r=new DOMParser,i=void 0,o=v.LoadScriptHelper.getTrustedTypesOptIn();if((null!=o?o:v.OUtil.isSecureDefaultsEnabled())&&window.trustedTypes&&window.trustedTypes.createPolicy)i=window.trustedTypes.createPolicy("officejs-domparser",{createHTML:function(e){return e}}).createHTML(n);else i=n;var a=r.parseFromString(i,"text/xml"),s=a.getElementsByTagName("t")[0].attributes.getNamedItem("cid"),c=a.getElementsByTagName("t")[0].attributes.getNamedItem("oid");s&&s.nodeValue?t.userId=s.nodeValue:c&&c.nodeValue&&(t.userId=c.nodeValue),t.assetId=a.getElementsByTagName("t")[0].attributes.getNamedItem("aid").nodeValue}}catch(e){}}(e.get_eToken(),a),a.sessionId=s,OTel.OTelLogger.initialize(a),a.isPreload?(l=!0,function(){try{Microsoft.Office.WebExtension.onReadyInternal().then(function(){var t=Office,n=OfficeCore;t.addin&&t.addin.onVisibilityModeChanged&&t.addin.onVisibilityModeChanged(function(e){e.visibilityMode===t.VisibilityMode.taskpane&&v.AppTelemetry.CallOnAppActivatedIfPending()}),t.addin&&t.addin._getState&&t.addin._getState().then(function(e){n.AppRuntimeState&&e===n.AppRuntimeState.visible&&v.AppTelemetry.CallOnAppActivatedIfPending()})})}catch(e){v.AppTelemetry&&v.AppTelemetry.logAppException("Exception happens at registerVisibilityEventOnPreload"+e)}}()):o.onAppActivated()}},o.onAppActivated=t,o.onScriptDone=function(e,t,n,r){},o.onCallDone=function(e,t,n,r,i){},o.onMethodDone=function(e,t,n,r){},o.onPropertyDone=function(e,t){v.AppTelemetry.onCallDone("property",-1,e,t,0)},o.onCheckWACHost=function(e,t,n,r,i){},o.onEventDone=function(e,t){v.AppTelemetry.onCallDone("event",e,null,0,t)},o.onRegisterDone=function(e,t,n,r){v.AppTelemetry.onCallDone(e?"registerevent":"unregisterevent",t,null,n,r)},o.onAppClosed=function(e,t){},o.setOsfControlAppCorrelationId=function(e){d(e)},o.doAppInitializationLogging=n,o.logAppCommonMessage=function(e){},o.logAppException=function(e){},o.CallOnAppActivatedIfPending=function(){l&&(l=!1,t())},o.canSendAddinId=g,o.getCompliantAppInstanceId=m,o._isComplianceExceptedHost=r,o.isMos=y}(v.AppTelemetry||(v.AppTelemetry={}))}(OSF=OSF||{}),function(s){var e=(c.loaded=function(){return!(void 0===c.logger)},c.ensureValue=function(e,t){return e||t},c.create=function(e){var t,n={id:e.appId,marketplaceType:e.marketplaceType,assetId:e.assetId,officeJsVersion:e.officeJSVersion,hostJsVersion:e.hostJSVersion,browserToken:e.clientId,instanceId:e.appInstanceId,sessionId:e.sessionId,officeJSSource:e.officeJSSource,isSecureDefaultsEnabled:e.isSecureDefaultsEnabled},r=SDX.getFields("SDX",n),i=OSF._OfficeAppFactory.getHostInfo().hostPlatform;if("web"===i)t=new s.SdxWacSink;else if(Office.context.requirements.isSetSupported("Telemetry","1.2"))t=new s.RichApiSink,this.richApiSink=t;else{if(!oteljs.AgaveSink)return console.error("Cannot create telemetry sink successfully"),null;var o={"App.Name":OSF._OfficeAppFactory.getHostInfo().hostType,"App.Platform":i,"App.Version":e.hostVersion,"Session.Id":c.ensureValue(e.correlationId,"00000000-0000-0000-0000-000000000000")};t=oteljs.AgaveSink.createInstance(o)}var a=new oteljs.SimpleTelemetryLogger(void 0,r);return a.addSink(t),a.setTenantToken("Office.Extensibility.OfficeJs","db334b301e7b474db5e0f02f07c51a47-a1b5bc36-1bbe-482f-a64a-c2d9cb606706-7439",1755),oteljs.onNotification().addListener(function(e){OSF.Utility.debugLog(e.message())}),a},c.checkAndResolvePromises=function(){c.loaded()&&(c.promises.forEach(function(e){e()}),c.promises=[])},c.initialize=function(e){c.Enabled?Office.onReadyInternal().then(function(){c.loaded()||(OSF.Utility.debugLog("Creating OTelLogger"),c.logger=c.create(e),c.checkAndResolvePromises())}):c.promises=[]},c.sendTelemetryEvent=function(e){c.onTelemetryLoaded(function(){try{c.logger.sendTelemetryEvent(e)}catch(e){console.error("Cannot send telemetry event: "+JSON.stringify(e))}})},c.sendNonStandardEvent=function(e,t){c.onTelemetryLoaded(function(){try{c.logger.sendNonStandardEvent(e,t)}catch(e){console.error("Cannot send telemetry event: "+JSON.stringify(e))}})},c.flushTelemetryQueue=function(){var t=this;return new Office.Promise(function(e){c.onTelemetryLoaded(function(){t.richApiSink?t.richApiSink.flushTelemetryQueue().then(function(){e()}):e()})})},c.onTelemetryLoaded=function(e){c.Enabled&&(c.loaded()?e():c.promises.push(e))},c.promises=[],c.Enabled=!0,c);function c(){}s.OTelLogger=e}(OTel=OTel||{}),function(e){var t=(n.prototype.sendTelemetryEvent=function(e){this._telemetryQueue.push([e,1]),this._requestIsPending||this.processWorkBacklog()},n.prototype.sendNonStandardEvent=function(e,t){this._telemetryQueue.push([e,t]),this._requestIsPending||this.processWorkBacklog()},n.prototype.flushTelemetryQueue=function(){var n=this;return new Office.Promise(function(e){var t=n._telemetryQueue;n._telemetryQueue=[],n.processTelemetryEvents(t).then(function(){e()})})},n.prototype.processWorkBacklog=function(){var t=this;this._requestIsPending=!0;var e=this._telemetryQueue;this._telemetryQueue=[],this.processTelemetryEvents(e).then(this.waitAndProcessMore.bind(this)).catch(function(e){oteljs.logError(1,"RichApiSink Error",e),t.waitAndProcessMore.bind(t)()})},n.prototype.waitAndProcessMore=function(){var e=this;this.pause(1e3).then(function(){0<e._telemetryQueue.length&&setTimeout(function(){return e.processWorkBacklog()},0),e._requestIsPending=!1}).catch(function(){})},n.prototype.processTelemetryEvents=function(e){var o=this,a=new OfficeCore.RequestContext;return e.forEach(function(e){var t=e[0],n=e[1];if(t.telemetryProperties){var r=[];o.addDataFields(r,t.dataFields);var i=t.eventContract?t.eventContract.name:"";t.eventContract&&o.addDataFields(r,t.eventContract.dataFields),1===n?a.telemetry.sendTelemetryEvent(t.telemetryProperties,t.eventName,i,oteljs.getEffectiveEventFlags(t),r):a.telemetry.sendNonStandardEvent(t.telemetryProperties,t.eventName,i,oteljs.getEffectiveEventFlags(t),r,n)}}),a.sync().catch(function(){oteljs.logNotification(2,1,function(){return"RichApi telemetry call failed."})})},n.prototype.addDataFields=function(t,e){e&&e.forEach(function(e){t.push({name:e.name,value:e.value,classification:e.classification?e.classification:4,type:e.dataType})})},n.prototype.pause=function(t){return new Office.Promise(function(e){return setTimeout(e,t)})},n);function n(){var t=this;this._requestIsPending=!0,this._telemetryQueue=[],this.pause(1e3).then(function(){var e=t._telemetryQueue;t._telemetryQueue=[],t._requestIsPending=!1,t.processTelemetryEvents(e)})}e.RichApiSink=t}(OTel=OTel||{}),function(e){var t=(n.prototype.sendTelemetryEvent=function(e,t){try{if(e.dataFields&&0<e.dataFields.filter(function(e){var t=e.classification;return t&&4!==t&&1!==t}).length)return;var n=OSF._OfficeAppFactory.getId(),r=OSF.AgaveHostAction.SendTelemetryEvent;OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n,r,e])}catch(e){oteljs.logError(1,"AgaveWacSink",e)}},n.prototype.sendNonStandardEvent=function(e,t){try{if(1===t)throw new Error("Please call sendTelemetryEvent for events of type "+t);if(e.dataFields&&0<e.dataFields.filter(function(e){var t=e.classification;return t&&4!==t&&1!==t&&32!==t&&2048!==t}).length)return;var n=OSF._OfficeAppFactory.getId(),r=OSF.AgaveHostAction.SendNonStandardEvent;OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n,r,e])}catch(e){oteljs.logError(1,"AgaveWacSink",e)}},n);function n(){}e.SdxWacSink=t}(OTel=OTel||{}),function(){var t,e=[];function p(e,t,n){OTel.OTelLogger.onTelemetryLoaded(function(){Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.AddinSpecialPermissionRequest",dataFields:[oteljs.makeStringDataField("invocationId",e),oteljs.makeStringDataField("methodPath",t),oteljs.makeStringDataField("params",n)],eventFlags:{dataCategories:2,diagnosticLevel:110}})})}function f(e,t,n){OTel.OTelLogger.onTelemetryLoaded(function(){Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.AddinSpecialPermissionResponse",dataFields:[oteljs.makeStringDataField("invocationId",e),oteljs.makeBooleanDataField("isSuccessful",t),oteljs.makeStringDataField("error",n?JSON.stringify({name:n.name,code:n.code,message:n.message}):void 0)],eventFlags:{dataCategories:2,diagnosticLevel:110}})})}try{function n(i){var o=Navigator.prototype[i];o&&(Navigator.prototype[i]=function(e,t,n){if(3===arguments.length&&Function.prototype.isPrototypeOf(t)&&Function.prototype.isPrototypeOf(n)){var r=(d++).toString();return p(r,"Navigator.prototype."+i,JSON.stringify([{audio:!!e.audio,video:!!e.video}])),o.apply(this,[e,function(){return f(r,!0),t.apply(this,arguments)},function(){return f(r,!1,arguments[0]),n.apply(this,arguments)}])}return o.apply(this,arguments)},e.push("Navigator.prototype."+i))}for(var d=0,r=0,i=["getUserMedia","webkitGetUserMedia","mozGetUserMedia"];r<i.length;r++){n(i[r])}var o=MediaDevices.prototype.getUserMedia;o&&(MediaDevices.prototype.getUserMedia=function(e){var t=(d++).toString();return 1===arguments.length&&void 0!==e?(p(t,"MediaDevices.prototype.getUserMedia",JSON.stringify([{audio:!!e.audio,video:!!e.video}])),o.apply(this,arguments).then(function(){return f(t,!0),arguments[0]},function(){throw f(t,!1,arguments[0]),arguments[0]})):o.apply(this,arguments)},e.push("MediaDevices.prototype.getUserMedia"));function a(l){var u=Geolocation.prototype[l];u&&(Geolocation.prototype[l]=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];var o=(d++).toString(),a=!1;p(o,"Geolocation.prototype."+l,JSON.stringify([]));var s=Function.prototype.isPrototypeOf(e)?function(){return a||(f(o,!0),a=!0),e.apply(this,arguments)}:e,c=Function.prototype.isPrototypeOf(t)?function(){return a||(f(o,!1,arguments[0]),a=!0),t.apply(this,arguments)}:t;return u.apply(this,[s,c,n].concat(r))},e.push("Geolocation.prototype."+l))}for(var s=0,c=["getCurrentPosition","watchPosition"];s<c.length;s++){a(c[s])}}catch(e){t=e.toString()}OTel.OTelLogger.onTelemetryLoaded(function(){Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.AddinSpecialPermissionHookInstall",dataFields:[oteljs.makeStringDataField("hooksInstalled",JSON.stringify(e)),oteljs.makeStringDataField("error",t)],eventFlags:{dataCategories:2,diagnosticLevel:110}})})}(Office=Office||{}),function(e){var t,n;t=e.Office||(e.Office={}),(n=t.WebExtension||(t.WebExtension={})).FeatureGates={},n.EventType=OSF.EventType,n.sendTelemetryEvent=function(e){OTel.OTelLogger.sendTelemetryEvent(e)},n.sendNonStandardEvent=function(e,t){OTel.OTelLogger.sendNonStandardEvent(e,t)},n.flushTelemetryQueue=function(){return OTel.OTelLogger.flushTelemetryQueue()},n.telemetrySink=OTel.OTelLogger}(Microsoft=Microsoft||{}),function(a){a.sendTelemetryEvent=function(e){Microsoft.Office.WebExtension.sendTelemetryEvent(e)},a.sendNonStandardEvent=function(e,t){Microsoft.Office.WebExtension.sendNonStandardEvent(e,t)},a.flushTelemetryQueue=function(){return Microsoft.Office.WebExtension.flushTelemetryQueue()},a.telemetrySink=Microsoft.Office.WebExtension.telemetrySink,a.isTrustedHost=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o;return __generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,10,,11]),OSF._OfficeAppFactory.getHostInfo().hostPlatform===OSF.HostInfoPlatform.web?[3,2]:[4,a.onReady()];case 1:return e.sent(),[2,!0];case 2:return null!=(t=OSF._OfficeAppFactory.getWebAppState().clientEndPoint)&&t.fHostTrusted?[2,!0]:null==document.referrer?[3,6]:(n=OSF.OUtil.parseUrl(document.referrer,!1),r="https:"==n.protocol,i=!1,OSF.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_10910853_OfficeJsNPMDownloadTrustedDomainList")?[4,OSF.XdmCommunicationManager.isHostNameValidWacDomainAsync(n.hostname,null)]:[3,4]);case 3:return i=e.sent(),[3,5];case 4:i=OSF.XdmCommunicationManager.isHostNameValidWacDomain(n.hostname),e.label=5;case 5:if(r&&i&&!new RegExp("^"+document.domain.replace(new RegExp("\\.","g"),"\\.")+"$").test(n.hostname))return[2,!0];e.label=6;case 6:return null==t?[3,8]:[4,OSF.Utility.promisify(function(e){t.invoke("ContextActivationManager_getAppContextAsync",e,OSF._OfficeAppFactory.getWebAppState().id)},1e4)];case 7:return e.sent(),[2,!0];case 8:return[2,!1];case 9:return[3,11];case 10:return o=e.sent(),OSF.AppTelemetry&&OSF.AppTelemetry.logAppException("Exception happens at Office.isTrustedHost."+o),[2,!1];case 11:return[2]}})})},Microsoft.Office.WebExtension.onReadyInternal=a.onReadyInternal}(Office=Office||{});var OfficeExtension;__extends=this&&this.__extends||function(){var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}();!function(y){var a,e;(e=a=y.RemoteEndpointType||(y.RemoteEndpointType={})).graph="graph",e.wfe="wfe";var v=(t.prototype._resolveRequestUrlAndHeaderInfo=function(){return C._createPromiseFromResult(null)},t.prototype._createRequestExecutorOrNull=function(){return null},t.prototype.getEventRegistration=function(e){return null},t);function t(){}y.SessionBase=v;var s=(n.setCustomSendRequestFunc=function(e){n.s_customSendRequestFunc=e},n.xhrSendRequestFunc=function(i){return C.createPromise(function(t,e){var n=new XMLHttpRequest;if(n.open(i.method,i.url),n.onload=function(){var e={statusCode:n.status,headers:C._parseHttpResponseHeaders(n.getAllResponseHeaders()),body:n.responseText};t(e)},n.onerror=function(){e(new h.RuntimeError({code:g.connectionFailure,httpStatusCode:n.status,message:C._getResourceString(m.connectionFailureWithStatus,n.statusText)}))},i.headers)for(var r in i.headers)n.setRequestHeader(r,i.headers[r]);n.send(C._getRequestBodyText(i))})},n.fetchSendRequestFunc=function(e){var t=C._getRequestBodyText(e);return""===t&&(t=void 0),fetch(e.url,{method:e.method,headers:e.headers,body:t}).then(function(r){return r.text().then(function(e){var t=r.status,n={};return r.headers.forEach(function(e,t){n[t]=e}),{statusCode:t,headers:n,body:e}})})},n.sendRequest=function(e){n.validateAndNormalizeRequest(e);var t=n.s_customSendRequestFunc;return(t=t||("undefined"!=typeof fetch?n.fetchSendRequestFunc:n.xhrSendRequestFunc))(e)},n.setCustomSendLocalDocumentRequestFunc=function(e){n.s_customSendLocalDocumentRequestFunc=e},n.sendLocalDocumentRequest=function(e){return n.validateAndNormalizeRequest(e),(n.s_customSendLocalDocumentRequestFunc||n.officeJsSendLocalDocumentRequestFunc)(e)},n.officeJsSendLocalDocumentRequestFunc=function(e){e=C._validateLocalDocumentRequest(e);var t=C._buildRequestMessageSafeArray(e);return C.createPromise(function(n,e){OSF.DDA.RichApi.executeRichApiRequestAsync(t,function(e){var t;t="succeeded"==e.status?{statusCode:O.getResponseStatusCode(e),headers:O.getResponseHeaders(e),body:O.getResponseBody(e)}:O.buildHttpResponseFromOfficeJsError(e.error.code,e.error.message),C.log("Response:"),C.log(JSON.stringify(t)),n(t)})})},n.validateAndNormalizeRequest=function(e){if(C.isNullOrUndefined(e))throw h.RuntimeError._createInvalidArgError({argumentName:"request"});C.isNullOrEmptyString(e.method)&&(e.method="GET"),e.method=e.method.toUpperCase();var t=!1;if("object"==typeof e.headers&&e.headers[d.testRequestNameHeader]&&(t=!0),!t){var n=P._getCurrentTestNameWithSequenceId();n&&(e.headers||(e.headers={}),e.headers[d.testRequestNameHeader]=n)}},n.logRequest=function(e){if(C._logEnabled){if(C.log("---HTTP Request---"),C.log(e.method+" "+e.url),e.headers)for(var t in e.headers)C.log(t+": "+e.headers[t]);n._logBodyEnabled&&C.log(C._getRequestBodyText(e))}},n.logResponse=function(e){if(C._logEnabled){if(C.log("---HTTP Response---"),C.log(""+e.statusCode),e.headers)for(var t in e.headers)C.log(t+": "+e.headers[t]);n._logBodyEnabled&&C.log(e.body)}},n._logBodyEnabled=!1,n);function n(){}y.HttpUtility=s;var h,r,i,o,c=(l.init=function(e){if("object"==typeof e&&e){var a=new l(e);l.s_instance=a,s.setCustomSendLocalDocumentRequestFunc(function(e){e=C._validateLocalDocumentRequest(e);var t=0;C.isReadonlyRestRequest(e.method)||(t=1);var n=e.url.indexOf("?");if(0<=n){var r=e.url.substr(n+1),i=C._parseRequestFlagsAndCustomDataFromQueryStringIfAny(r);0<=i.flags&&(t=i.flags)}"string"==typeof e.body&&(e.body=JSON.parse(e.body));var o={id:l.nextId(),type:1,flags:t,message:e};return a.sendMessageToHostAndExpectResponse(o).then(function(e){return e.message})});for(var t=0;t<l.s_onInitedHandlers.length;t++)l.s_onInitedHandlers[t](a)}},Object.defineProperty(l,"instance",{get:function(){return l.s_instance},enumerable:!0,configurable:!0}),l.prototype.sendMessageToHost=function(e){this.m_bridge.sendMessageToHost(JSON.stringify(e))},l.prototype.sendMessageToHostAndExpectResponse=function(n){var r=this,e=C.createPromise(function(e,t){r.m_promiseResolver[n.id]=e});return this.m_bridge.sendMessageToHost(JSON.stringify(n)),e},l.prototype.addHostMessageHandler=function(e){this.m_handlers.push(e)},l.prototype.removeHostMessageHandler=function(e){var t=this.m_handlers.indexOf(e);0<=t&&this.m_handlers.splice(t,1)},l.onInited=function(e){l.s_onInitedHandlers.push(e),l.s_instance&&e(l.s_instance)},l.prototype.dispatchMessage=function(e){if("number"==typeof e.id){var t=this.m_promiseResolver[e.id];if(t)return t(e),void delete this.m_promiseResolver[e.id]}for(var n=0;n<this.m_handlers.length;n++)this.m_handlers[n](e)},l.nextId=function(){return l.s_nextId++},l.s_onInitedHandlers=[],l.s_nextId=1,l);function l(e){var a=this;this.m_bridge=e,this.m_promiseResolver={},this.m_handlers=[],this.m_bridge.onMessageFromHost=function(e){var t=JSON.parse(e);if(3==t.type){var n=t.message;if(n&&n.entries)for(var r=0;r<n.entries.length;r++){var i=n.entries[r];if(Array.isArray(i)){var o={messageCategory:i[0],messageType:i[1],targetId:i[2],message:i[3],id:i[4]};n.entries[r]=o}}}a.dispatchMessage(t)}}function u(e){var t=i.call(this,"string"==typeof e?e:e.message)||this;if(Object.setPrototypeOf(t,u.prototype),t.name="RichApi.Error","string"==typeof e?t.message=e:(t.code=e.code,t.message=e.message,t.traceMessages=e.traceMessages||[],t.innerError=e.innerError||null,t.debugInfo=t._createDebugInfo(e.debugInfo||{}),t.httpStatusCode=e.httpStatusCode,t.data=e.data),C.isNullOrUndefined(t.httpStatusCode)||200===t.httpStatusCode){var n={};n[g.accessDenied]=401,n[g.connectionFailure]=500,n[g.generalException]=500,n[g.invalidArgument]=400,n[g.invalidObjectPath]=400,n[g.invalidOrTimedOutSession]=408,n[g.invalidRequestContext]=400,n[g.timeout]=408,n[g.valueNotLoaded]=400,t.httpStatusCode=n[t.code]}return C.isNullOrUndefined(t.httpStatusCode)&&(t.httpStatusCode=500),t}y.HostBridge=c,"object"==typeof _richApiNativeBridge&&_richApiNativeBridge&&c.init(_richApiNativeBridge),r=h=y._Internal||(y._Internal={}),i=Error,__extends(u,i),u.prototype.toString=function(){return this.code+": "+this.message},u.prototype._createDebugInfo=function(e){var t={code:this.code,message:this.message,toString:function(){return JSON.stringify(this)}};for(var n in e)t[n]=e[n];return this.innerError&&(this.innerError instanceof r.RuntimeError?t.innerError=this.innerError.debugInfo:t.innerError=this.innerError),t},u._createInvalidArgError=function(e){return new r.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:C.isNullOrEmptyString(e.argumentName)?C._getResourceString(m.invalidArgumentGeneric):C._getResourceString(m.invalidArgument,e.argumentName),debugInfo:e.errorLocation?{errorLocation:e.errorLocation}:{},innerError:e.innerError})},o=u,r.RuntimeError=o,y.Error=h.RuntimeError;var g=(p.apiNotFound="ApiNotFound",p.accessDenied="AccessDenied",p.generalException="GeneralException",p.activityLimitReached="ActivityLimitReached",p.invalidArgument="InvalidArgument",p.connectionFailure="ConnectionFailure",p.timeout="Timeout",p.invalidOrTimedOutSession="InvalidOrTimedOutSession",p.invalidObjectPath="InvalidObjectPath",p.invalidRequestContext="InvalidRequestContext",p.valueNotLoaded="ValueNotLoaded",p.requestPayloadSizeLimitExceeded="RequestPayloadSizeLimitExceeded",p.responsePayloadSizeLimitExceeded="ResponsePayloadSizeLimitExceeded",p.writeNotSupportedWhenModalDialogOpen="WriteNotSupportedWhenModalDialogOpen",p.undoNotSupported="UndoNotSupported",p);function p(){}y.CoreErrorCodes=g;var m=(f.apiNotFoundDetails="ApiNotFoundDetails",f.connectionFailureWithStatus="ConnectionFailureWithStatus",f.connectionFailureWithDetails="ConnectionFailureWithDetails",f.invalidArgument="InvalidArgument",f.invalidArgumentGeneric="InvalidArgumentGeneric",f.timeout="Timeout",f.invalidOrTimedOutSessionMessage="InvalidOrTimedOutSessionMessage",f.invalidSheetName="InvalidSheetName",f.invalidObjectPath="InvalidObjectPath",f.invalidRequestContext="InvalidRequestContext",f.valueNotLoaded="ValueNotLoaded",f);function f(){}y.CoreResourceStrings=m;var d=(b.flags="flags",b.sourceLibHeader="SdkVersion",b.processQuery="ProcessQuery",b.localDocument="http://document.localhost/",b.localDocumentApiPrefix="http://document.localhost/_api/",b.customData="customdata",b.testRequestNameHeader="x-test-request-name",b);function b(){}y.CoreConstants=d;var _,O=(S.buildMessageArrayForIRequestExecutor=function(e,t,n,r,i){var o=JSON.stringify(n.Body);C.log("Request:"),C.log(o);var a={};return C._copyHeaders(n.Headers,a),a[d.sourceLibHeader]=r,S.buildRequestMessageSafeArray(e,t,"POST",d.processQuery,a,o,i)},S.buildResponseOnSuccess=function(e,t){var n={HttpStatusCode:200,ErrorCode:"",ErrorMessage:"",Headers:null,Body:null};return n.Body=JSON.parse(e),n.Headers=t,n},S.buildResponseOnError=function(e,t){var n={HttpStatusCode:500,ErrorCode:"",ErrorMessage:"",Headers:null,Body:null};return n.ErrorCode=g.generalException,n.ErrorMessage=t,e==S.OfficeJsErrorCode_ooeNoCapability?(n.ErrorCode=g.accessDenied,n.HttpStatusCode=401):e==S.OfficeJsErrorCode_ooeActivityLimitReached?(n.ErrorCode=g.activityLimitReached,n.HttpStatusCode=429):e==S.OfficeJsErrorCode_ooeInvalidOrTimedOutSession?(n.ErrorCode=g.invalidOrTimedOutSession,n.HttpStatusCode=408,n.ErrorMessage=C._getResourceString(m.invalidOrTimedOutSessionMessage)):e==S.OfficeJsErrorCode_ooeRequestPayloadSizeLimitExceeded?(n.ErrorCode=g.requestPayloadSizeLimitExceeded,n.HttpStatusCode=400):e==S.OfficeJsErrorCode_ooeResponsePayloadSizeLimitExceeded?(n.ErrorCode=g.responsePayloadSizeLimitExceeded,n.HttpStatusCode=400):e==S.OfficeJsErrorCode_ooeWriteNotSupportedWhenModalDialogOpen?(n.ErrorCode=g.writeNotSupportedWhenModalDialogOpen,n.HttpStatusCode=400):e==S.OfficeJsErrorCode_ooeInvalidSheetName?(n.ErrorCode=g.invalidRequestContext,n.HttpStatusCode=400,n.ErrorMessage=C._getResourceString(m.invalidSheetName)):e==S.OfficeJsErrorCode_ooeUndoNotSupported&&(n.ErrorCode=g.undoNotSupported,n.HttpStatusCode=400),n},S.buildHttpResponseFromOfficeJsError=function(e,t){var n=500,r={error:{}};return r.error.code=g.generalException,r.error.message=t,e===S.OfficeJsErrorCode_ooeNoCapability?(n=403,r.error.code=g.accessDenied):e===S.OfficeJsErrorCode_ooeActivityLimitReached&&(n=429,r.error.code=g.activityLimitReached),{statusCode:n,headers:{},body:JSON.stringify(r)}},S.buildRequestMessageSafeArray=function(e,t,n,r,i,o,a){var s=[];if(i)for(var c in i)s.push(c),s.push(i[c]);return[e,n,r,s,o,0,t,"","","","","",""].concat(a?["",a]:[])},S.getResponseBody=function(e){return S.getResponseBodyFromSafeArray(e.value.data)},S.getResponseHeaders=function(e){return S.getResponseHeadersFromSafeArray(e.value.data)},S.getResponseBodyFromSafeArray=function(e){var t=e[2];return"string"==typeof t?t:t.join("")},S.getResponseHeadersFromSafeArray=function(e){var t=e[1];if(!t)return null;for(var n={},r=0;r<t.length-1;r+=2)n[t[r]]=t[r+1];return n},S.getResponseStatusCode=function(e){return S.getResponseStatusCodeFromSafeArray(e.value.data)},S.getResponseStatusCodeFromSafeArray=function(e){return e[0]},S.OfficeJsErrorCode_ooeInvalidOrTimedOutSession=5012,S.OfficeJsErrorCode_ooeActivityLimitReached=5102,S.OfficeJsErrorCode_ooeNoCapability=7e3,S.OfficeJsErrorCode_ooeRequestPayloadSizeLimitExceeded=5103,S.OfficeJsErrorCode_ooeResponsePayloadSizeLimitExceeded=5104,S.OfficeJsErrorCode_ooeWriteNotSupportedWhenModalDialogOpen=5016,S.OfficeJsErrorCode_ooeInvalidSheetName=1014,S.OfficeJsErrorCode_ooeUndoNotSupported=5017,S);function S(){}y.RichApiMessageUtility=O,(_=h=y._Internal||(y._Internal={})).getPromiseType=function(){if("undefined"!=typeof Promise)return Promise;if(void 0!==Office&&Office.Promise)return Office.Promise;if(void 0!==OfficeExtension&&OfficeExtension.Promise)return OfficeExtension.Promise;throw new _.Error("No Promise implementation found")};var C=(A.log=function(e){A._logEnabled&&"undefined"!=typeof console&&console.log&&console.log(e)},A.checkArgumentNull=function(e,t){if(A.isNullOrUndefined(e))throw h.RuntimeError._createInvalidArgError({argumentName:t})},A.isNullOrUndefined=function(e){return null==e},A.isUndefined=function(e){return void 0===e},A.isNullOrEmptyString=function(e){return null==e||0==e.length},A.isPlainJsonObject=function(e){if(A.isNullOrUndefined(e))return!1;if("object"!=typeof e)return!1;if("[object Object]"!==Object.prototype.toString.apply(e))return!1;if(e.constructor&&!Object.prototype.hasOwnProperty.call(e,"constructor")&&!Object.prototype.hasOwnProperty.call(e.constructor.prototype,"hasOwnProperty"))return!1;for(var t in e)if(!Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},A.trim=function(e){return e.replace(new RegExp("^\\s+|\\s+$","g"),"")},A.caseInsensitiveCompareString=function(e,t){return A.isNullOrUndefined(e)?A.isNullOrUndefined(t):!A.isNullOrUndefined(t)&&e.toUpperCase()==t.toUpperCase()},A.isReadonlyRestRequest=function(e){return A.caseInsensitiveCompareString(e,"GET")},A._getResourceString=function(e,t){var n;if("undefined"!=typeof window&&window.Strings&&window.Strings.OfficeOM){var r="L_"+e,i=window.Strings.OfficeOM[r];i&&(n=i)}return n=(n=n||A.s_resourceStringValues[e])||e,A.isNullOrUndefined(t)||(n=Array.isArray(t)?A._formatString(n,t):n.replace("{0}",t)),n},A._formatString=function(e,n){return e.replace(/\{\d\}/g,function(e){var t=parseInt(e.substr(1,e.length-2));if(t<n.length)return n[t];throw h.RuntimeError._createInvalidArgError({argumentName:"format"})})},Object.defineProperty(A,"Promise",{get:function(){return h.getPromiseType()},enumerable:!0,configurable:!0}),A.createPromise=function(e){return new A.Promise(e)},A._createPromiseFromResult=function(n){return A.createPromise(function(e,t){e(n)})},A._createPromiseFromException=function(n){return A.createPromise(function(e,t){t(n)})},A._createTimeoutPromise=function(n){return A.createPromise(function(e,t){setTimeout(function(){e(null)},n)})},A._createInvalidArgError=function(e){return h.RuntimeError._createInvalidArgError(e)},A._isLocalDocumentUrl=function(e){return 0<A._getLocalDocumentUrlPrefixLength(e)},A._getLocalDocumentUrlPrefixLength=function(e){for(var t=["http://document.localhost","https://document.localhost","//document.localhost"],n=e.toLowerCase().trim(),r=0;r<t.length;r++){if(n===t[r])return t[r].length;if(n.substr(0,t[r].length+1)===t[r]+"/")return t[r].length+1}return 0},A._validateLocalDocumentRequest=function(e){var t=A._getLocalDocumentUrlPrefixLength(e.url);if(t<=0)throw h.RuntimeError._createInvalidArgError({argumentName:"request"});var n=e.url.substr(t),r=n.toLowerCase();return"_api"===r?n="":"_api/"===r.substr(0,"_api/".length)&&(n=n.substr("_api/".length)),{method:e.method,url:n,headers:e.headers,body:e.body}},A._parseRequestFlagsAndCustomDataFromQueryStringIfAny=function(e){for(var t={flags:-1,customData:""},n=e.split("&"),r=0;r<n.length;r++){var i=n[r].split("=");if(i[0].toLowerCase()===d.flags){var o=parseInt(i[1]);o&=65535,t.flags=o}else i[0].toLowerCase()===d.customData&&(t.customData=decodeURIComponent(i[1]))}return t},A._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},A._parseResponseBody=function(e){if("string"!=typeof e.body)return e.body;var t=A.trim(e.body);return JSON.parse(t)},A._buildRequestMessageSafeArray=function(e){var t=0;A.isReadonlyRestRequest(e.method)||(t=1);var n="";if(e.url.substr(0,d.processQuery.length).toLowerCase()===d.processQuery.toLowerCase()){var r=e.url.indexOf("?");if(0<r){var i=e.url.substr(r+1),o=A._parseRequestFlagsAndCustomDataFromQueryStringIfAny(i);0<=o.flags&&(t=o.flags),n=o.customData}}return O.buildRequestMessageSafeArray(n,t,e.method,e.url,e.headers,A._getRequestBodyText(e))},A._parseHttpResponseHeaders=function(e){var t={};if(!A.isNullOrEmptyString(e))for(var n=new RegExp("\r?\n"),r=e.split(n),i=0;i<r.length;i++){var o=r[i];if(null!=o){var a=o.indexOf(":");if(0<a){var s=o.substr(0,a),c=o.substr(a+1);s=A.trim(s),c=A.trim(c),t[s.toUpperCase()]=c}}}return t},A._parseErrorResponse=function(e){var t=A._parseErrorResponseBody(e),n=e.statusCode.toString();if(A.isNullOrUndefined(t)||"object"!=typeof t||!t.error)return A._createDefaultErrorResponse(n);var r=t.error,i=r.innerError;return i&&i.code?A._createErrorResponse(i.code,n,i.message):r.code?A._createErrorResponse(r.code,n,r.message):A._createDefaultErrorResponse(n)},A._parseErrorResponseBody=function(e){if(A.isPlainJsonObject(e.body))return e.body;if(!A.isNullOrEmptyString(e.body)){var t=A.trim(e.body);try{return JSON.parse(t)}catch(e){A.log("Error when parse "+t)}}},A._createDefaultErrorResponse=function(e){return{errorCode:g.connectionFailure,errorMessage:A._getResourceString(m.connectionFailureWithStatus,e)}},A._createErrorResponse=function(e,t,n){return{errorCode:e,errorMessage:A._getResourceString(m.connectionFailureWithDetails,[t,e,n])}},A._copyHeaders=function(e,t){if(e&&t)for(var n in e)t[n]=e[n]},A.addResourceStringValues=function(e){for(var t in e)A.s_resourceStringValues[t]=e[t]},A._logEnabled=!1,A.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.'},A);function A(){}y.CoreUtility=C;var P=(E.setMock=function(e){E.s_isMock=e},E.isMock=function(){return E.s_isMock},E._setCurrentTestName=function(e){E.s_currentTestName=e,E.s_currentTestSequenceId=0},E._getCurrentTestNameWithSequenceId=function(){return E.s_currentTestName?E.s_currentTestName+"."+ ++E.s_currentTestSequenceId:null},E);function E(){}y.TestUtility=P,y._internalConfig={showDisposeInfoInDebugInfo:!1,showInternalApiInDebugInfo:!1,enableEarlyDispose:!0,alwaysPolyfillClientObjectUpdateMethod:!1,alwaysPolyfillClientObjectRetrieveMethod:!1,enableConcurrentFlag:!0,enableUndoableFlag:!0,appendTypeNameToObjectPathInfo:!1,enablePreviewExecution:!1},y.config={extendedErrorLogging:!1};var T=(I.createSetPropertyAction=function(e,t,n,r,i){$.validateObjectPath(t);var o={Id:e._nextId(),ActionType:4,Name:n,ObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}},a=[r],s=$.setMethodArguments(e,o.ArgumentInfo,a);$.validateReferencedObjectPaths(s);var c=new D(o,0,i);if(c.referencedObjectPath=t._objectPath,c.referencedArgumentObjectPaths=s,y._internalConfig.enablePreviewExecution&&0!=(16&i)){var l={Id:e._nextId(),ActionType:4,Name:n,ObjectId:"",ObjectType:"",Arguments:[r]};t._addPreviewExecutionAction(l)}return t._addAction(c)},I.createQueryAction=function(e,t,n,r){$.validateObjectPath(t);var i={Id:e._nextId(),ActionType:2,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,QueryInfo:n},o=new D(i,1,4);return o.referencedObjectPath=t._objectPath,t._addAction(o,r)},I.createQueryAsJsonAction=function(e,t,n,r){$.validateObjectPath(t);var i={Id:e._nextId(),ActionType:7,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,QueryInfo:n},o=new D(i,1,4);return o.referencedObjectPath=t._objectPath,t._addAction(o,r)},I.createUpdateAction=function(e,t,n){$.validateObjectPath(t);var r={Id:e._nextId(),ActionType:9,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,ObjectState:n},i=new D(r,0,0);return i.referencedObjectPath=t._objectPath,t._addAction(i)},I);function I(){}y.CommonActionFactory=T;var w=(Object.defineProperty(R.prototype,"_objectPath",{get:function(){return this.m_objectPath},enumerable:!0,configurable:!0}),Object.defineProperty(R.prototype,"_context",{get:function(){return this.m_contextBase},enumerable:!0,configurable:!0}),R.prototype._addAction=function(n,r){var i=this;return void 0===r&&(r=null),C.createPromise(function(e,t){i._context._addServiceApiAction(n,r,e,t)})},R.prototype._addPreviewExecutionAction=function(e){},R.prototype._retrieve=function(e,t){var n=y._internalConfig.alwaysPolyfillClientObjectRetrieveMethod;n=n||!$.isSetSupported("RichApiRuntime","1.1");var r=k._parseQueryOption(e);return n?T.createQueryAction(this._context,this,r,t):T.createQueryAsJsonAction(this._context,this,r,t)},R.prototype._recursivelyUpdate=function(e){var t=y._internalConfig.alwaysPolyfillClientObjectUpdateMethod;t=t||!$.isSetSupported("RichApiRuntime","1.2");try{var n=this[K.scalarPropertyNames];n=n||[];var r=this[K.scalarPropertyUpdateable];if(!r){r=[];for(var i=0;i<n.length;i++)r.push(!1)}var o=this[K.navigationPropertyNames];o=o||[];var a={},s={},c=0;for(var l in e){var u=n.indexOf(l);if(0<=u){if(!r[u])throw new h.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:C._getResourceString(ee.attemptingToSetReadOnlyProperty,l),debugInfo:{errorLocation:l}});a[l]=e[l],++c}else{if(!(0<=o.indexOf(l)))throw new h.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:C._getResourceString(ee.propertyDoesNotExist,l),debugInfo:{errorLocation:l}});s[l]=e[l]}}if(0<c)if(t)for(i=0;i<n.length;i++){var p=a[l=n[i]];$.isUndefined(p)||T.createSetPropertyAction(this._context,this,l,p)}else T.createUpdateAction(this._context,this,a);for(var l in s){var f=this[l],d=s[l];f._recursivelyUpdate(d)}}catch(e){throw new h.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:C._getResourceString(m.invalidArgument,"properties"),debugInfo:{errorLocation:this._className+".update"},innerError:e})}},R);function R(e,t){this.m_contextBase=e,this.m_objectPath=t}y.ClientObjectBase=w;var D=(Object.defineProperty(x.prototype,"actionInfo",{get:function(){return this.m_actionInfo},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"operationType",{get:function(){return this.m_operationType},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"flags",{get:function(){return this.m_flags},enumerable:!0,configurable:!0}),x);function x(e,t,n){this.m_actionInfo=e,this.m_operationType=t,this.m_flags=n}y.Action=D;var F=(Object.defineProperty(N.prototype,"id",{get:function(){var e=this.m_objectPathInfo.ArgumentInfo;if(e){var t=e.Arguments;if(t)return t[0]}},enumerable:!0,configurable:!0}),Object.defineProperty(N.prototype,"parent",{get:function(){var e=this.m_parentObjectPath;if(e)return e},enumerable:!0,configurable:!0}),Object.defineProperty(N.prototype,"parentId",{get:function(){return this.parent?this.parent.id:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(N.prototype,"objectPathInfo",{get:function(){return this.m_objectPathInfo},enumerable:!0,configurable:!0}),Object.defineProperty(N.prototype,"operationType",{get:function(){return this.m_operationType},enumerable:!0,configurable:!0}),Object.defineProperty(N.prototype,"flags",{get:function(){return this.m_flags},enumerable:!0,configurable:!0}),Object.defineProperty(N.prototype,"isCollection",{get:function(){return this.m_isCollection},enumerable:!0,configurable:!0}),Object.defineProperty(N.prototype,"isInvalidAfterRequest",{get:function(){return this.m_isInvalidAfterRequest},enumerable:!0,configurable:!0}),Object.defineProperty(N.prototype,"parentObjectPath",{get:function(){return this.m_parentObjectPath},enumerable:!0,configurable:!0}),Object.defineProperty(N.prototype,"argumentObjectPaths",{get:function(){return this.m_argumentObjectPaths},set:function(e){this.m_argumentObjectPaths=e},enumerable:!0,configurable:!0}),Object.defineProperty(N.prototype,"isValid",{get:function(){return this.m_isValid},set:function(e){!(this.m_isValid=e)&&6===this.m_objectPathInfo.ObjectPathType&&this.m_savedObjectPathInfo&&(N.copyObjectPathInfo(this.m_savedObjectPathInfo.pathInfo,this.m_objectPathInfo),this.m_parentObjectPath=this.m_savedObjectPathInfo.parent,this.m_isValid=!0,this.m_savedObjectPathInfo=null)},enumerable:!0,configurable:!0}),Object.defineProperty(N.prototype,"originalObjectPathInfo",{get:function(){return this.m_originalObjectPathInfo},enumerable:!0,configurable:!0}),Object.defineProperty(N.prototype,"getByIdMethodName",{get:function(){return this.m_getByIdMethodName},set:function(e){this.m_getByIdMethodName=e},enumerable:!0,configurable:!0}),N.prototype._updateAsNullObject=function(){this.resetForUpdateUsingObjectData(),this.m_objectPathInfo.ObjectPathType=7,this.m_objectPathInfo.Name="",this.m_parentObjectPath=null},N.prototype.saveOriginalObjectPathInfo=function(){y.config.extendedErrorLogging&&!this.m_originalObjectPathInfo&&(this.m_originalObjectPathInfo={},N.copyObjectPathInfo(this.m_objectPathInfo,this.m_originalObjectPathInfo))},N.prototype.updateUsingObjectData=function(e,t){var n=e[K.referenceId];if(!C.isNullOrEmptyString(n)){if(!this.m_savedObjectPathInfo&&!this.isInvalidAfterRequest&&N.isRestorableObjectPath(this.m_objectPathInfo.ObjectPathType)){var r={};N.copyObjectPathInfo(this.m_objectPathInfo,r),this.m_savedObjectPathInfo={pathInfo:r,parent:this.m_parentObjectPath}}return this.saveOriginalObjectPathInfo(),this.resetForUpdateUsingObjectData(),this.m_objectPathInfo.ObjectPathType=6,this.m_objectPathInfo.Name=n,delete this.m_objectPathInfo.ParentObjectPathId,void(this.m_parentObjectPath=null)}if(t){var i=t[K.collectionPropertyPath];if(!C.isNullOrEmptyString(i)&&t.context){var o=$.tryGetObjectIdFromLoadOrRetrieveResult(e);if(!C.isNullOrUndefined(o)){for(var a=i.split("."),s=t.context[a[0]],c=1;c<a.length;c++)s=s[a[c]];return this.saveOriginalObjectPathInfo(),this.resetForUpdateUsingObjectData(),this.m_parentObjectPath=s._objectPath,this.m_objectPathInfo.ParentObjectPathId=this.m_parentObjectPath.objectPathInfo.Id,this.m_objectPathInfo.ObjectPathType=5,this.m_objectPathInfo.Name="",void(this.m_objectPathInfo.ArgumentInfo.Arguments=[o])}}}var l=this.parentObjectPath&&this.parentObjectPath.isCollection,u=this.getByIdMethodName;if((l||!C.isNullOrEmptyString(u))&&(o=$.tryGetObjectIdFromLoadOrRetrieveResult(e),!C.isNullOrUndefined(o)))return this.saveOriginalObjectPathInfo(),this.resetForUpdateUsingObjectData(),C.isNullOrEmptyString(u)?(this.m_objectPathInfo.ObjectPathType=5,this.m_objectPathInfo.Name=""):(this.m_objectPathInfo.ObjectPathType=3,this.m_objectPathInfo.Name=u),void(this.m_objectPathInfo.ArgumentInfo.Arguments=[o])},N.prototype.resetForUpdateUsingObjectData=function(){this.m_isInvalidAfterRequest=!1,this.m_isValid=!0,this.m_operationType=1,this.m_flags=4,this.m_objectPathInfo.ArgumentInfo={},this.m_argumentObjectPaths=null,this.m_getByIdMethodName=null},N.isRestorableObjectPath=function(e){return 1===e||5===e||3===e||4===e},N.copyObjectPathInfo=function(e,t){t.Id=e.Id,t.ArgumentInfo=e.ArgumentInfo,t.Name=e.Name,t.ObjectPathType=e.ObjectPathType,t.ParentObjectPathId=e.ParentObjectPathId},N);function N(e,t,n,r,i,o){this.m_objectPathInfo=e,this.m_parentObjectPath=t,this.m_isCollection=n,this.m_isInvalidAfterRequest=r,this.m_isValid=!0,this.m_operationType=i,this.m_flags=o}y.ObjectPath=F;var k=(j.prototype._nextId=function(){return++this.m_nextId},j.prototype._addServiceApiAction=function(e,t,n,r){this.m_serviceApiQueue||(this.m_serviceApiQueue=new G(this)),this.m_serviceApiQueue.add(e,t,n,r)},j._parseQueryOption=function(e){var t={};if("string"==typeof e){var n=e;t.Select=$._parseSelectExpand(n)}else if(Array.isArray(e))t.Select=$._parseSelectExpand(e);else if("object"==typeof e){var r=e;if(j.isLoadOption(r)){if("string"==typeof r.select)t.Select=$._parseSelectExpand(r.select);else if(Array.isArray(r.select))t.Select=$._parseSelectExpand(r.select);else if(!$.isNullOrUndefined(r.select))throw h.RuntimeError._createInvalidArgError({argumentName:"option.select"});if("string"==typeof r.expand)t.Expand=$._parseSelectExpand(r.expand);else if(Array.isArray(r.expand))t.Expand=$._parseSelectExpand(r.expand);else if(!$.isNullOrUndefined(r.expand))throw h.RuntimeError._createInvalidArgError({argumentName:"option.expand"});if("number"==typeof r.top)t.Top=r.top;else if(!$.isNullOrUndefined(r.top))throw h.RuntimeError._createInvalidArgError({argumentName:"option.top"});if("number"==typeof r.skip)t.Skip=r.skip;else if(!$.isNullOrUndefined(r.skip))throw h.RuntimeError._createInvalidArgError({argumentName:"option.skip"})}else t=j.parseStrictLoadOption(e)}else if(!$.isNullOrUndefined(e))throw h.RuntimeError._createInvalidArgError({argumentName:"option"});return t},j.isLoadOption=function(e){if(!$.isUndefined(e.select)&&("string"==typeof e.select||Array.isArray(e.select)))return!0;if(!$.isUndefined(e.expand)&&("string"==typeof e.expand||Array.isArray(e.expand)))return!0;if(!$.isUndefined(e.top)&&"number"==typeof e.top)return!0;if(!$.isUndefined(e.skip)&&"number"==typeof e.skip)return!0;for(var t in e)return!1;return!0},j.parseStrictLoadOption=function(e){var t={Select:[]};return j.parseStrictLoadOptionHelper(t,"","option",e),t},j.combineQueryPath=function(e,t,n){return 0===e.length?t:e+n+t},j.parseStrictLoadOptionHelper=function(e,t,n,r){for(var i in r){var o=r[i];if("$all"===i){if("boolean"!=typeof o)throw h.RuntimeError._createInvalidArgError({argumentName:j.combineQueryPath(n,i,".")});o&&e.Select.push(j.combineQueryPath(t,"*","/"))}else if("$top"===i){if("number"!=typeof o||0<t.length)throw h.RuntimeError._createInvalidArgError({argumentName:j.combineQueryPath(n,i,".")});e.Top=o}else if("$skip"===i){if("number"!=typeof o||0<t.length)throw h.RuntimeError._createInvalidArgError({argumentName:j.combineQueryPath(n,i,".")});e.Skip=o}else if("boolean"==typeof o)o&&e.Select.push(j.combineQueryPath(t,i,"/"));else{if("object"!=typeof o)throw h.RuntimeError._createInvalidArgError({argumentName:j.combineQueryPath(n,i,".")});j.parseStrictLoadOptionHelper(e,j.combineQueryPath(t,i,"/"),j.combineQueryPath(n,i,"."),o)}}},j);function j(){this.m_nextId=0}y.ClientRequestContextBase=k;var M=(H.prototype._handleResult=function(e){C.isNullOrUndefined(e)?this.m_objectPath._updateAsNullObject():this.m_objectPath.updateUsingObjectData(e,null)},H);function H(e){this.m_objectPath=e}var U=(L.prototype.addAction=function(e){this.m_actions.push(e),1==e.actionInfo.ActionType&&(this.m_instantiatedObjectPaths[e.actionInfo.ObjectPathId]=e)},L.prototype.addPreviewExecutionAction=function(e){this.m_previewExecutionActions.push(e)},Object.defineProperty(L.prototype,"hasActions",{get:function(){return 0<this.m_actions.length},enumerable:!0,configurable:!0}),L.prototype._getLastAction=function(){return this.m_actions[this.m_actions.length-1]},L.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 D(t,1,4);n.referencedObjectPath=e,this.addReferencedObjectPath(e),this.addAction(n);var r=new M(e);this.addActionResultHandler(n,r)}}},L.prototype.ensureInstantiateObjectPaths=function(e){if(e)for(var t=0;t<e.length;t++)this.ensureInstantiateObjectPath(e[t])},L.prototype.addReferencedObjectPath=function(e){if(e&&!this.m_referencedObjectPaths[e.objectPathInfo.Id]){if(!e.isValid)throw new h.RuntimeError({code:g.invalidObjectPath,httpStatusCode:400,message:C._getResourceString(m.invalidObjectPath,$.getObjectPathExpression(e)),debugInfo:{errorLocation:$.getObjectPathExpression(e)}});for(;e;)3==(this.m_referencedObjectPaths[e.objectPathInfo.Id]=e).objectPathInfo.ObjectPathType&&this.addReferencedObjectPaths(e.argumentObjectPaths),e=e.parentObjectPath}},L.prototype.addReferencedObjectPaths=function(e){if(e)for(var t=0;t<e.length;t++)this.addReferencedObjectPath(e[t])},L.prototype.addActionResultHandler=function(e,t){this.m_actionResultHandler[e.actionInfo.Id]=t},L.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},L.prototype.finallyNormalizeFlags=function(e){return 0==(1&e)&&(e&=-17,e&=-257),y._internalConfig.enableConcurrentFlag||(e&=-5),y._internalConfig.enableUndoableFlag||(e&=-17),$.isSetSupported("RichApiRuntimeFlag","1.1")||(e&=-5,e&=-17),$.isSetSupported("RichApiRuntimeFlag","1.2")||(e&=-257),"number"==typeof this.m_flagsForTesting&&(e=this.m_flagsForTesting),e},L.prototype.buildRequestMessageBodyAndRequestFlags=function(){y._internalConfig.enableEarlyDispose&&L._calculateLastUsedObjectPathIds(this.m_actions);var e=276,t={};for(var n in this.m_referencedObjectPaths)e=this.aggregrateRequestFlags(e,this.m_referencedObjectPaths[n].operationType,this.m_referencedObjectPaths[n].flags),t[n]=this.m_referencedObjectPaths[n].objectPathInfo;for(var r=[],i=!1,o=0;o<this.m_actions.length;o++){var a=this.m_actions[o];3===a.actionInfo.ActionType&&a.actionInfo.Name===K.keepReference&&(i=!0),e=this.aggregrateRequestFlags(e,a.operationType,a.flags),r.push(a.actionInfo)}e=this.finallyNormalizeFlags(e);var s={AutoKeepReference:this.m_contextBase._autoCleanup&&i,Actions:r,ObjectPaths:t};return 0<this.m_previewExecutionActions.length&&(s.PreviewExecutionActions=this.m_previewExecutionActions,e|=4096),{body:s,flags:e}},L.prototype.processResponse=function(e){if(e)for(var t=0;t<e.length;t++){var n=e[t],r=this.m_actionResultHandler[n.ActionId];r&&r._handleResult(n.Value)}},L.prototype.invalidatePendingInvalidObjectPaths=function(){for(var e in this.m_referencedObjectPaths)this.m_referencedObjectPaths[e].isInvalidAfterRequest&&(this.m_referencedObjectPaths[e].isValid=!1)},L.prototype._addPreSyncPromise=function(e){this.m_preSyncPromises.push(e)},Object.defineProperty(L.prototype,"_preSyncPromises",{get:function(){return this.m_preSyncPromises},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"_actions",{get:function(){return this.m_actions},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"_objectPaths",{get:function(){return this.m_referencedObjectPaths},enumerable:!0,configurable:!0}),L.prototype._removeKeepReferenceAction=function(e){for(var t=this.m_actions.length-1;0<=t;t--){var n=this.m_actions[t].actionInfo;if(n.ObjectPathId===e&&3===n.ActionType&&n.Name===K.keepReference){this.m_actions.splice(t,1);break}}},L._updateLastUsedActionIdOfObjectPathId=function(e,t,n){for(;t;){if(e[t.objectPathInfo.Id])return;e[t.objectPathInfo.Id]=n;var r=t.argumentObjectPaths;if(r)for(var i=r.length,o=0;o<i;o++)L._updateLastUsedActionIdOfObjectPathId(e,r[o],n);t=t.parentObjectPath}},L._calculateLastUsedObjectPathIds=function(e){for(var t={},n=e.length,r=n-1;0<=r;--r){var i=(p=e[r]).actionInfo.Id;p.referencedObjectPath&&L._updateLastUsedActionIdOfObjectPathId(t,p.referencedObjectPath,i);var o=p.referencedArgumentObjectPaths;if(o)for(var a=o.length,s=0;s<a;s++)L._updateLastUsedActionIdOfObjectPathId(t,o[s],i)}var c={};for(var l in t){var u=c[i=t[l]];u||(u=[],c[i]=u),u.push(parseInt(l))}for(r=0;r<n;r++){var p,f=c[(p=e[r]).actionInfo.Id];f&&0<f.length?p.actionInfo.L=f:p.actionInfo.L&&delete p.actionInfo.L}},L);function L(e){this.m_contextBase=e,this.m_actions=[],this.m_actionResultHandler={},this.m_referencedObjectPaths={},this.m_instantiatedObjectPaths={},this.m_preSyncPromises=[],this.m_previewExecutionActions=[]}y.ClientRequestBase=U;var B=(Object.defineProperty(W.prototype,"value",{get:function(){if(!this.m_isLoaded)throw new h.RuntimeError({code:g.valueNotLoaded,httpStatusCode:400,message:C._getResourceString(m.valueNotLoaded),debugInfo:{errorLocation:"clientResult.value"}});return this.m_value},enumerable:!0,configurable:!0}),W.prototype._handleResult=function(e){this.m_isLoaded=!0,"object"==typeof e&&e&&e._IsNull||(1===this.m_type?this.m_value=$.adjustToDateTime(e):this.m_value=e)},W);function W(e){this.m_type=e}y.ClientResult=B;var G=(V.prototype.add=function(e,t,n,r){var i=this;this.m_actions.push({action:e,resultHandler:t,resolve:n,reject:r}),1===this.m_actions.length&&setTimeout(function(){return i.processActions()},0)},V.prototype.processActions=function(){var t=this;if(0!==this.m_actions.length){var n=this.m_actions;this.m_actions=[];for(var r=new U(this.m_context),e=0;e<n.length;e++){var i=n[e];r.ensureInstantiateObjectPath(i.action.referencedObjectPath),r.ensureInstantiateObjectPaths(i.action.referencedArgumentObjectPaths),r.addAction(i.action),r.addReferencedObjectPath(i.action.referencedObjectPath),r.addReferencedObjectPaths(i.action.referencedArgumentObjectPaths)}var o=r.buildRequestMessageBodyAndRequestFlags(),a=o.body,s=o.flags,c={Url:d.localDocumentApiPrefix,Headers:null,Body:a};C.log("Request:"),C.log(JSON.stringify(a)),(new q).executeAsync(this.m_context._customData,s,c).then(function(e){t.processResponse(r,n,e)}).catch(function(e){for(var t=0;t<n.length;t++)n[t].reject(e)})}},V.prototype.processResponse=function(e,t,n){var r=this.getErrorFromResponse(n),i=null;n.Body.Results?i=n.Body.Results:n.Body.ProcessedResults&&n.Body.ProcessedResults.Results&&(i=n.Body.ProcessedResults.Results),i=i||[],this.processActionResults(e,t,i,r)},V.prototype.getErrorFromResponse=function(e){return C.isNullOrEmptyString(e.ErrorCode)?e.Body&&e.Body.Error?new h.RuntimeError({code:e.Body.Error.Code,httpStatusCode:e.Body.Error.HttpStatusCode,message:e.Body.Error.Message}):null:new h.RuntimeError({code:e.ErrorCode,httpStatusCode:e.HttpStatusCode,message:e.ErrorMessage})},V.prototype.processActionResults=function(e,t,n,r){e.processResponse(n);for(var i=0;i<t.length;i++){for(var o=t[i],a=o.action.actionInfo.Id,s=!1,c=0;c<n.length;c++)if(a==n[c].ActionId){var l=n[c].Value;o.resultHandler&&(o.resultHandler._handleResult(l),l=o.resultHandler.value),o.resolve&&o.resolve(l),s=!0;break}!s&&o.reject&&(r?o.reject(r):o.reject("No response for the action."))}},V);function V(e){this.m_context=e,this.m_actions=[]}var q=(J.prototype.getRequestUrl=function(e,t,n){void 0===n&&(n=a.graph.toString());var r=d.flags+"="+t.toString();switch(n){case a.graph.toString():"/"!=e.charAt(e.length-1)&&(e+="/"),e=(e+=d.processQuery)+"?"+r;break;case a.wfe.toString():e=(e=e+"&"+r)+"&wdRestPart=_api/"+d.processQuery}return e},J.prototype.executeAsync=function(e,t,n){var r=n.Headers?n.Headers[K.remoteEndpointTypeHeaderKey]:a.graph.toString(),i={method:"POST",url:this.getRequestUrl(n.Url,t,r),headers:{},body:n.Body};if(i.headers[d.sourceLibHeader]=J.SourceLibHeaderValue,i.headers["CONTENT-TYPE"]="application/json",n.Headers)for(var o in n.Headers)i.headers[o]=n.Headers[o];return(C._isLocalDocumentUrl(i.url)?s.sendLocalDocumentRequest:s.sendRequest)(i).then(function(e){var t;if(200===e.statusCode)t={HttpStatusCode:e.statusCode,ErrorCode:null,ErrorMessage:null,Headers:e.headers,Body:C._parseResponseBody(e)};else{C.log("Error Response:"+e.body);var n=C._parseErrorResponse(e);t={HttpStatusCode:e.statusCode,ErrorCode:n.errorCode,ErrorMessage:n.errorMessage,Headers:e.headers,Body:null,RawErrorResponseBody:C._parseErrorResponseBody(e)}}return t})},J.SourceLibHeaderValue="officejs-rest",J);function J(){}y.HttpRequestExecutor=q;var z,K=(__extends(X,z=d),X.collectionPropertyPath="_collectionPropertyPath",X.id="Id",X.idLowerCase="id",X.idPrivate="_Id",X.keepReference="_KeepReference",X.objectPathIdPrivate="_ObjectPathId",X.referenceId="_ReferenceId",X.items="_Items",X.itemsLowerCase="items",X.scalarPropertyNames="_scalarPropertyNames",X.scalarPropertyOriginalNames="_scalarPropertyOriginalNames",X.navigationPropertyNames="_navigationPropertyNames",X.scalarPropertyUpdateable="_scalarPropertyUpdateable",X.previewExecutionObjectId="_previewExecutionObjectId",X.remoteEndpointTypeHeaderKey="X-EndpointType",X);function X(){return null!==z&&z.apply(this,arguments)||this}y.CommonConstants=K;var Q,$=(__extends(Z,Q=C),Z.validateObjectPath=function(e){for(var t=e._objectPath;t;){if(!t.isValid)throw new h.RuntimeError({code:g.invalidObjectPath,httpStatusCode:400,message:C._getResourceString(m.invalidObjectPath,Z.getObjectPathExpression(t)),debugInfo:{errorLocation:Z.getObjectPathExpression(t)}});t=t.parentObjectPath}},Z.validateReferencedObjectPaths=function(e){if(e)for(var t=0;t<e.length;t++)for(var n=e[t];n;){if(!n.isValid)throw new h.RuntimeError({code:g.invalidObjectPath,httpStatusCode:400,message:C._getResourceString(m.invalidObjectPath,Z.getObjectPathExpression(n))});n=n.parentObjectPath}},Z._toCamelLowerCase=function(e){if(C.isNullOrEmptyString(e))return e;for(var t=0;t<e.length&&65<=e.charCodeAt(t)&&e.charCodeAt(t)<=90;)t++;return t<e.length?e.substr(0,t).toLowerCase()+e.substr(t):e.toLowerCase()},Z.adjustToDateTime=function(e){if(C.isNullOrUndefined(e))return null;if("string"==typeof e)return new Date(e);if(Array.isArray(e)){for(var t=e,n=0;n<t.length;n++)t[n]=Z.adjustToDateTime(t[n]);return t}throw C._createInvalidArgError({argumentName:"date"})},Z.tryGetObjectIdFromLoadOrRetrieveResult=function(e){var t=e[K.id];return C.isNullOrUndefined(t)&&(t=e[K.idLowerCase]),C.isNullOrUndefined(t)&&(t=e[K.idPrivate]),t},Z.getObjectPathExpression=function(e){for(var t="";e;){switch(e.objectPathInfo.ObjectPathType){case 1:t=t;break;case 2:t="new()"+(0<t.length?".":"")+t;break;case 3:t=Z.normalizeName(e.objectPathInfo.Name)+"()"+(0<t.length?".":"")+t;break;case 4:t=Z.normalizeName(e.objectPathInfo.Name)+(0<t.length?".":"")+t;break;case 5:t="getItem()"+(0<t.length?".":"")+t;break;case 6:t="_reference()"+(0<t.length?".":"")+t}e=e.parentObjectPath}return t},Z.setMethodArguments=function(e,t,n){if(C.isNullOrUndefined(n))return null;var r=new Array,i=new Array,o=Z.collectObjectPathInfos(e,n,r,i);return t.Arguments=n,o&&(t.ReferencedObjectPathIds=i),r},Z.validateContext=function(e,t){if(e&&t&&t._context!==e)throw new h.RuntimeError({code:g.invalidRequestContext,httpStatusCode:400,message:C._getResourceString(m.invalidRequestContext)})},Z.isSetSupported=function(e,t){return"function"==typeof Z.isSetSupportedOverride?Z.isSetSupportedOverride(e,t):!("undefined"!=typeof window&&window.Office&&window.Office.context&&window.Office.context.requirements)||window.Office.context.requirements.isSetSupported(e,t)},Z.throwIfApiNotSupported=function(e,t,n,r){if(Z._doApiNotSupportedCheck&&!Z.isSetSupported(t,n)){var i=C._getResourceString(m.apiNotFoundDetails,[e,t+" "+n,r]);throw new h.RuntimeError({code:g.apiNotFound,httpStatusCode:404,message:i,debugInfo:{errorLocation:e}})}},Z.calculateApiFlags=function(e,t,n){var r="undefined"!=typeof window&&window&&window.location&&window.location.href&&-1!==window.location.href.indexOf("eed0a086-3498-4f91-a377-1e0265ecc0cc");return("function"==typeof Z.isSetSupportedOverride?Z.isSetSupportedOverride(t,n):!r&&Z.isSetSupported(t,n))||(e&=-3),e},Z._parseSelectExpand=function(e){var t,n=[];if(Array.isArray(e))t=e;else{if(C.isNullOrEmptyString(e))return n;t=e.split(",")}for(var r=0;r<t.length;r++){var i=t[r];if("string"!=typeof i)throw h.RuntimeError._createInvalidArgError({argumentName:"select"});0<(i=o(i.trim())).length&&n.push(i)}return n;function o(e){var t=e.toLowerCase();return"items"===t||"items/"===t?"*":("items/"!==t.substr(0,6)&&"items."!==t.substr(0,6)||(e=e.substr(6)),e.replace(new RegExp("[/.]items[/.]","gi"),"/"))}},Z.changePropertyNameToCamelLowerCase=function(e){if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)t.push(this.changePropertyNameToCamelLowerCase(e[n]));return t}if("object"!=typeof e||null===e)return e;for(var r in t={},e){var i=e[r];if(r===K.items){(t={})[K.itemsLowerCase]=this.changePropertyNameToCamelLowerCase(i);break}t[Z._toCamelLowerCase(r)]=this.changePropertyNameToCamelLowerCase(i)}return t},Z.purifyJson=function(e){if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)t.push(this.purifyJson(e[n]));return t}if("object"!=typeof e||null===e)return e;for(var r in t={},e)if(95!==r.charCodeAt(0)){var i=e[r];"object"==typeof i&&null!==i&&Array.isArray(i.items)&&(i=i.items),t[r]=this.purifyJson(i)}return t},Z.collectObjectPathInfos=function(e,t,n,r){for(var i=!1,o=0;o<t.length;o++)if(t[o]instanceof w){var a=t[o];Z.validateContext(e,a),t[o]=a._objectPath.objectPathInfo.Id,r.push(a._objectPath.objectPathInfo.Id),n.push(a._objectPath),i=!0}else if(Array.isArray(t[o])){var s=new Array;Z.collectObjectPathInfos(e,t[o],n,s)?(r.push(s),i=!0):r.push(0)}else C.isPlainJsonObject(t[o])?(r.push(0),Z.replaceClientObjectPropertiesWithObjectPathIds(t[o],n)):r.push(0);return i},Z.replaceClientObjectPropertiesWithObjectPathIds=function(e,t){var n,r;for(var i in e){var o=e[i];if(o instanceof w)t.push(o._objectPath),e[i]=((n={})[K.objectPathIdPrivate]=o._objectPath.objectPathInfo.Id,n);else if(Array.isArray(o))for(var a=0;a<o.length;a++)if(o[a]instanceof w){var s=o[a];t.push(s._objectPath),o[a]=((r={})[K.objectPathIdPrivate]=s._objectPath.objectPathInfo.Id,r)}else C.isPlainJsonObject(o[a])&&Z.replaceClientObjectPropertiesWithObjectPathIds(o[a],t);else C.isPlainJsonObject(o)&&Z.replaceClientObjectPropertiesWithObjectPathIds(o,t)}},Z.normalizeName=function(e){return e.substr(0,1).toLowerCase()+e.substr(1)},Z._doApiNotSupportedCheck=!1,Z);function Z(){return null!==Q&&Q.apply(this,arguments)||this}y.CommonUtility=$;var Y,ee=(__extends(te,Y=m),te.propertyDoesNotExist="PropertyDoesNotExist",te.attemptingToSetReadOnlyProperty="AttemptingToSetReadOnlyProperty",te);function te(){return null!==Y&&Y.apply(this,arguments)||this}y.CommonResourceStrings=ee;var ne,re=(__extends(ie,ne=g),ie.propertyNotLoaded="PropertyNotLoaded",ie.runMustReturnPromise="RunMustReturnPromise",ie.cannotRegisterEvent="CannotRegisterEvent",ie.invalidOrTimedOutSession="InvalidOrTimedOutSession",ie.cannotUpdateReadOnlyProperty="CannotUpdateReadOnlyProperty",ie);function ie(){return null!==ne&&ne.apply(this,arguments)||this}y.ErrorCodes=re;var oe=(ae.prototype._handleResult=function(e){this.m_callback&&this.m_callback()},ae);function ae(e){this.m_callback=e}var se,ce=(__extends(le,se=T),le.createMethodAction=function(e,t,n,r,i,o){rt.validateObjectPath(t);var a={Id:e._nextId(),ActionType:3,Name:n,ObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}},s=rt.setMethodArguments(e,a.ArgumentInfo,i);rt.validateReferencedObjectPaths(s);var c=rt._fixupApiFlags(o),l=new D(a,r,c);if(l.referencedObjectPath=t._objectPath,l.referencedArgumentObjectPaths=s,t._addAction(l),y._internalConfig.enablePreviewExecution&&0!=(16&c)){var u={Id:e._nextId(),ActionType:3,Name:n,Arguments:i,ObjectId:"",ObjectType:""};t._addPreviewExecutionAction(u)}return l},le.createRecursiveQueryAction=function(e,t,n){rt.validateObjectPath(t);var r={Id:e._nextId(),ActionType:6,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,RecursiveQueryInfo:n},i=new D(r,1,4);return i.referencedObjectPath=t._objectPath,t._addAction(i),i},le.createEnsureUnchangedAction=function(e,t,n){rt.validateObjectPath(t);var r={Id:e._nextId(),ActionType:8,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,ObjectState:n},i=new D(r,1,4);return i.referencedObjectPath=t._objectPath,t._addAction(i),i},le.createInstantiateAction=function(e,t){rt.validateObjectPath(t),e._pendingRequest.ensureInstantiateObjectPath(t._objectPath.parentObjectPath),e._pendingRequest.ensureInstantiateObjectPaths(t._objectPath.argumentObjectPaths);var n={Id:e._nextId(),ActionType:1,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id},r=new D(n,1,4);return r.referencedObjectPath=t._objectPath,t._addAction(r,new Ge(t),!0),r},le.createTraceAction=function(e,t,n){var r={Id:e._nextId(),ActionType:5,Name:"Trace",ObjectPathId:0},i=new D(r,1,4);return e._pendingRequest.addAction(i),n&&e._pendingRequest.addTrace(r.Id,t),i},le.createTraceMarkerForCallback=function(e,t){var n=le.createTraceAction(e,null,!1);e._pendingRequest.addActionResultHandler(n,new oe(t))},le);function le(){return null!==se&&se.apply(this,arguments)||this}y.ActionFactory=ce;var ue,pe=(__extends(fe,ue=w),Object.defineProperty(fe.prototype,"context",{get:function(){return this.m_context},enumerable:!0,configurable:!0}),Object.defineProperty(fe.prototype,"isNull",{get:function(){return(void 0!==this.m_isNull||!P.isMock())&&(rt.throwIfNotLoaded("isNull",this._isNull,null,this._isNull),this._isNull)},enumerable:!0,configurable:!0}),Object.defineProperty(fe.prototype,"isNullObject",{get:function(){return(void 0!==this.m_isNull||!P.isMock())&&(rt.throwIfNotLoaded("isNullObject",this._isNull,null,this._isNull),this._isNull)},enumerable:!0,configurable:!0}),Object.defineProperty(fe.prototype,"_isNull",{get:function(){return this.m_isNull},set:function(e){(this.m_isNull=e)&&this._objectPath&&this._objectPath._updateAsNullObject()},enumerable:!0,configurable:!0}),fe.prototype._addAction=function(e,t,n){return void 0===t&&(t=null),n||(this.context._pendingRequest.ensureInstantiateObjectPath(this._objectPath),this.context._pendingRequest.ensureInstantiateObjectPaths(e.referencedArgumentObjectPaths)),this.context._pendingRequest.addAction(e),this.context._pendingRequest.addReferencedObjectPath(this._objectPath),this.context._pendingRequest.addReferencedObjectPaths(e.referencedArgumentObjectPaths),this.context._pendingRequest.addActionResultHandler(e,t),C._createPromiseFromResult(null)},fe.prototype._addPreviewExecutionAction=function(e){if(!rt.isUndefined(this._className)){e.ObjectType=this._className;var t=rt._getPropertyValueWithoutCheckLoaded(this,Ae.idLowerCase);rt.isUndefined(t)&&(t=rt._getPropertyValueWithoutCheckLoaded(this,Ae.idPrivate)),rt.isUndefined(t)&&(t=rt._getPropertyValueWithoutCheckLoaded(this,Ae.previewExecutionObjectId)),e.ObjectId=t,this.context._pendingRequest.addPreviewExecutionAction(e)}},fe.prototype._handleResult=function(e){this._isNull=rt.isNullOrUndefined(e),this.context.trackedObjects._autoTrackIfNecessaryWhenHandleObjectResultValue(this,e)},fe.prototype._handleIdResult=function(e){this._isNull=rt.isNullOrUndefined(e),rt.fixObjectPathIfNecessary(this,e),this.context.trackedObjects._autoTrackIfNecessaryWhenHandleObjectResultValue(this,e)},fe.prototype._handleRetrieveResult=function(e,t){this._handleIdResult(e)},fe.prototype._recursivelySet=function(e,t,n,r,i){var o=e instanceof fe,a=e;if(o){if(Object.getPrototypeOf(this)!==Object.getPrototypeOf(e))throw h.RuntimeError._createInvalidArgError({argumentName:"properties",errorLocation:this._className+".set"});e=JSON.parse(JSON.stringify(e))}try{for(var s,c=0;c<n.length;c++)s=n[c],e.hasOwnProperty(s)&&void 0!==e[s]&&(this[s]=e[s]);for(c=0;c<r.length;c++)if(s=r[c],e.hasOwnProperty(s)&&void 0!==e[s]){var l=o?a[s]:e[s];this[s].set(l,t)}var u=!o;for(t&&!rt.isNullOrUndefined(u)&&(u=t.throwOnReadOnly),c=0;c<i.length;c++)if(s=i[c],e.hasOwnProperty(s)&&void 0!==e[s]&&u)throw new h.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:C._getResourceString(et.cannotApplyPropertyThroughSetMethod,s),debugInfo:{errorLocation:s}});for(s in e)if(n.indexOf(s)<0&&r.indexOf(s)<0){var p=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this),s);if(!p)throw new h.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:C._getResourceString(ee.propertyDoesNotExist,s),debugInfo:{errorLocation:s}});if(u&&!p.set)throw new h.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:C._getResourceString(ee.attemptingToSetReadOnlyProperty,s),debugInfo:{errorLocation:s}})}}catch(e){throw new h.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:C._getResourceString(m.invalidArgument,"properties"),debugInfo:{errorLocation:this._className+".set"},innerError:e})}},fe);function fe(e,t){var n=ue.call(this,e,t)||this;return rt.checkArgumentNull(e,"context"),n.m_context=e,n._objectPath&&(!e._processingResult&&e._pendingRequest&&(ce.createInstantiateAction(e,n),e._autoCleanup&&n._KeepReference&&e.trackedObjects._autoAdd(n)),y._internalConfig.appendTypeNameToObjectPathInfo&&n._objectPath.objectPathInfo&&n._className&&(n._objectPath.objectPathInfo.T=n._className)),n}y.ClientObject=pe;var de=(he.prototype.executeAsync=function(e,t,n){var r={url:d.processQuery,method:"POST",headers:n.Headers,body:n.Body},i="";n.Headers&&(i=n.Headers[Ae.officeControlId]);var o={id:c.nextId(),type:1,flags:t,controlId:i,message:r,customData:e};return C.log(JSON.stringify(o)),this.m_session.sendMessageToHost(o).then(function(e){C.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:C._parseResponseBody(n)};else{C.log("Error Response:"+n.body);var r=C._parseErrorResponse(n);t={HttpStatusCode:n.statusCode,ErrorCode:r.errorCode,ErrorMessage:r.errorMessage,Headers:n.headers,Body:null}}return t})},he);function he(e){this.m_session=e}var ge,me=(__extends(ye,ge=v),ye.getInstanceIfHostBridgeInited=function(){return c.instance?(!C.isNullOrUndefined(ye.s_instance)&&ye.s_instance.m_bridge===c.instance||(ye.s_instance=new ye(c.instance)),ye.s_instance):null},ye.prototype._resolveRequestUrlAndHeaderInfo=function(){return C._createPromiseFromResult(null)},ye.prototype._createRequestExecutorOrNull=function(){return C.log("NativeBridgeSession::CreateRequestExecutor"),new de(this)},ye.prototype.getEventRegistration=function(e){return He.getGenericEventRegistration(e)},ye.prototype.sendMessageToHost=function(e){return this.m_bridge.sendMessageToHostAndExpectResponse(e)},ye);function ye(e){var t=ge.call(this)||this;return t.m_bridge=e,t.m_bridge.addHostMessageHandler(function(e){if(3===e.type){var t=e.controlId;if(C.isNullOrEmptyString(t))He.getGenericEventRegistration(t)._handleRichApiMessage(e.message);else{var n=He.peekGenericEventRegistrationOrNull(t);n&&n._handleRichApiMessage(e.message),(n=He.peekGenericEventRegistrationOrNull(""))&&n._handleRichApiMessage(e.message)}}}),t}y.HostBridgeSession=me;var ve,be=(__extends(_e,ve=k),Object.defineProperty(_e.prototype,"session",{get:function(){return this.m_session},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"eventRegistration",{get:function(){return this.m_session?this.m_session.getEventRegistration(this._controlId):h.officeJsEventRegistration},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"_url",{get:function(){return this.m_requestUrlAndHeaderInfo?this.m_requestUrlAndHeaderInfo.url:null},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"_pendingRequest",{get:function(){return null==this.m_pendingRequest&&(this.m_pendingRequest=new Te(this)),this.m_pendingRequest},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"_controlId",{get:function(){var e=this.m_customRequestHeaders[Ae.officeControlId];return C.isNullOrUndefined(e)&&(e=""),e},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"debugInfo",{get:function(){return{pendingStatements:new $e(this._rootObjectPropertyName,this._pendingRequest._objectPaths,this._pendingRequest._actions,y._internalConfig.showDisposeInfoInDebugInfo).process()}},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"trackedObjects",{get:function(){return this.m_trackedObjects||(this.m_trackedObjects=new Xe(this)),this.m_trackedObjects},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"requestHeaders",{get:function(){return this.m_customRequestHeaders},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"batchMode",{get:function(){return this.m_batchMode},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"getAdditionalHeaders",{set:function(e){this.m_getAdditionalHeaders=e},enumerable:!0,configurable:!0}),_e.prototype.ensureInProgressBatchIfBatchMode=function(){if(1===this.m_batchMode&&!this.m_explicitBatchInProgress)throw rt.createRuntimeError(g.generalException,C._getResourceString(et.notInsideBatch),null)},_e.prototype.load=function(e,t){rt.validateContext(this,e);var n=_e._parseQueryOption(t);T.createQueryAction(this,e,n,e)},_e.prototype.loadRecursive=function(e,t,n){if(!rt.isPlainJsonObject(t))throw h.RuntimeError._createInvalidArgError({argumentName:"options"});var r={};for(var i in t)r[i]=_e._parseQueryOption(t[i]);var o=ce.createRecursiveQueryAction(this,e,{Queries:r,MaxDepth:n});this._pendingRequest.addActionResultHandler(o,e)},_e.prototype.trace=function(e){ce.createTraceAction(this,e,!0)},_e.prototype._processOfficeJsErrorResponse=function(e,t){},_e.prototype.ensureRequestUrlAndHeaderInfo=function(){var n=this;return rt._createPromiseFromResult(null).then(function(){if(!n.m_requestUrlAndHeaderInfo)return n.m_requestUrlAndHeaderInfoResolver._resolveRequestUrlAndHeaderInfo().then(function(e){if(n.m_requestUrlAndHeaderInfo=e,n.m_requestUrlAndHeaderInfo||(n.m_requestUrlAndHeaderInfo={url:d.localDocument,headers:{}}),rt.isNullOrEmptyString(n.m_requestUrlAndHeaderInfo.url)&&(n.m_requestUrlAndHeaderInfo.url=d.localDocument),n.m_requestUrlAndHeaderInfo.headers||(n.m_requestUrlAndHeaderInfo.headers={}),"function"==typeof n.m_requestUrlAndHeaderInfoResolver._createRequestExecutorOrNull){var t=n.m_requestUrlAndHeaderInfoResolver._createRequestExecutorOrNull();t&&(n._requestExecutor=t)}})})},_e.prototype.syncPrivateMain=function(){var t=this;return this.ensureRequestUrlAndHeaderInfo().then(function(){var e=t._pendingRequest;return t.m_pendingRequest=null,t.processPreSyncPromises(e).then(function(){return t.syncPrivate(e)})})},_e.prototype.syncPrivate=function(n){var t=this;if(P.isMock())return C._createPromiseFromResult(null);if(!n.hasActions)return this.processPendingEventHandlers(n);var e=n.buildRequestMessageBodyAndRequestFlags(),r=e.body,i=e.flags;this._requestFlagModifier&&(i|=this._requestFlagModifier),this._requestExecutor||(C._isLocalDocumentUrl(this.m_requestUrlAndHeaderInfo.url)?this._requestExecutor=new ze(this):this._requestExecutor=new q);var o=this._requestExecutor,a={};C._copyHeaders(this.m_requestUrlAndHeaderInfo.headers,a),C._copyHeaders(this.m_customRequestHeaders,a),delete this.m_customRequestHeaders[Ae.officeScriptEventId],this.m_getAdditionalHeaders&&C._copyHeaders(this.m_getAdditionalHeaders(),a);var s=P._getCurrentTestNameWithSequenceId();s&&(a[d.testRequestNameHeader]=s);var c={Url:this.m_requestUrlAndHeaderInfo.url,Headers:a,Body:r};n.invalidatePendingInvalidObjectPaths();var l=null,u=null;return this._lastSyncStart="undefined"==typeof performance?Date.now():performance.now(),this._lastRequestFlags=i,o.executeAsync(this._customData,i,c,this._invocationId).then(function(e){return t._lastSyncEnd="undefined"==typeof performance?Date.now():performance.now(),y.config.executePerfLogFunc&&y.config.executePerfLogFunc({syncStart:t._lastSyncStart,syncEnd:t._lastSyncEnd}),l=t.processRequestExecutorResponseMessage(n,e),t.processPendingEventHandlers(n).catch(function(e){C.log("Error in processPendingEventHandlers"),C.log(JSON.stringify(e)),u=e})}).then(function(){if(l)throw C.log("Throw error from response: "+JSON.stringify(l)),l;if(u){C.log("Throw error from ProcessEventHandler: "+JSON.stringify(u));var e=null;if(u instanceof h.RuntimeError)(e=u).traceMessages=n._responseTraceMessages;else{var t=null;t="string"==typeof u?u:u.message,rt.isNullOrEmptyString(t)&&(t=C._getResourceString(et.cannotRegisterEvent)),e=new h.RuntimeError({code:re.cannotRegisterEvent,httpStatusCode:400,message:t,traceMessages:n._responseTraceMessages})}throw e}})},_e.prototype.processRequestExecutorResponseMessage=function(e,t){t.Body&&t.Body.TraceIds&&e._setResponseTraceIds(t.Body.TraceIds);var n=e._responseTraceMessages,r=null;if(t.Body){if(t.Body.Error&&0<=t.Body.Error.ActionIndex){var i=new $e(this._rootObjectPropertyName,e._objectPaths,e._actions,!1,!0),o=i.processForDebugStatementInfo(t.Body.Error.ActionIndex);r={statement:o.statement,surroundingStatements:o.surroundingStatements,fullStatements:["Please enable config.extendedErrorLogging to see full statements."]},y.config.extendedErrorLogging&&(i=new $e(this._rootObjectPropertyName,e._objectPaths,e._actions,!1,!1),r.fullStatements=i.process())}var a=null;if(t.Body.Results?a=t.Body.Results:t.Body.ProcessedResults&&t.Body.ProcessedResults.Results&&(a=t.Body.ProcessedResults.Results),a){this._processingResult=!0;try{e.processResponse(a)}finally{this._processingResult=!1}}}if(!rt.isNullOrEmptyString(t.ErrorCode))return new h.RuntimeError({code:t.ErrorCode,httpStatusCode:t.HttpStatusCode,message:t.ErrorMessage,traceMessages:n,data:{responseBody:t.RawErrorResponseBody}});if(t.Body&&t.Body.Error){var s={errorLocation:t.Body.Error.Location};return r&&(s.statement=r.statement,s.surroundingStatements=r.surroundingStatements,s.fullStatements=r.fullStatements),new h.RuntimeError({code:t.Body.Error.Code,httpStatusCode:t.Body.Error.HttpStatusCode,message:t.Body.Error.Message,traceMessages:n,debugInfo:s})}return null},_e.prototype.processPendingEventHandlers=function(e){for(var t=rt._createPromiseFromResult(null),n=0;n<e._pendingProcessEventHandlers.length;n++){var r=e._pendingProcessEventHandlers[n];t=t.then(this.createProcessOneEventHandlersFunc(r,e))}return t},_e.prototype.createProcessOneEventHandlersFunc=function(e,t){return function(){return e._processRegistration(t)}},_e.prototype.processPreSyncPromises=function(e){for(var t=rt._createPromiseFromResult(null),n=0;n<e._preSyncPromises.length;n++){var r=e._preSyncPromises[n];t=t.then(this.createProcessOneProSyncFunc(r))}return t},_e.prototype.createProcessOneProSyncFunc=function(e){return function(){return e}},_e.prototype.sync=function(e){return P.isMock()?C._createPromiseFromResult(e):this.syncPrivateMain().then(function(){return e})},_e.prototype.batch=function(e){var t=this;if(1!==this.m_batchMode)return C._createPromiseFromException(rt.createRuntimeError(g.generalException,null,null));if(this.m_explicitBatchInProgress)return C._createPromiseFromException(rt.createRuntimeError(g.generalException,C._getResourceString(et.pendingBatchInProgress),null));if(rt.isNullOrUndefined(e))return rt._createPromiseFromResult(null);this.m_explicitBatchInProgress=!0;var n,r,i=this.m_pendingRequest;this.m_pendingRequest=new Te(this);try{n=e(this._rootObject,this)}catch(e){return this.m_explicitBatchInProgress=!1,this.m_pendingRequest=i,C._createPromiseFromException(e)}return("object"==typeof n&&n&&"function"==typeof n.then?rt._createPromiseFromResult(null).then(function(){return n}).then(function(e){return t.m_explicitBatchInProgress=!1,r=t.m_pendingRequest,t.m_pendingRequest=i,e}).catch(function(e){return t.m_explicitBatchInProgress=!1,r=t.m_pendingRequest,t.m_pendingRequest=i,C._createPromiseFromException(e)}):(this.m_explicitBatchInProgress=!1,r=this.m_pendingRequest,this.m_pendingRequest=i,rt._createPromiseFromResult(n))).then(function(e){return t.ensureRequestUrlAndHeaderInfo().then(function(){return t.syncPrivate(r)}).then(function(){return e})})},_e._run=function(e,t,n,r,i,o){return void 0===n&&(n=3),void 0===r&&(r=5e3),_e._runCommon("run",null,e,0,t,n,r,null,null,i,o)},_e.isValidRequestInfo=function(e){return"string"==typeof e||_e.isRequestUrlAndHeaderInfo(e)||_e.isRequestUrlAndHeaderInfoResolver(e)},_e.isRequestUrlAndHeaderInfo=function(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===Object.getPrototypeOf({})&&!rt.isNullOrUndefined(e.url)},_e.isRequestUrlAndHeaderInfoResolver=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e._resolveRequestUrlAndHeaderInfo},_e._runBatch=function(e,t,n,r,i,o,a,s,c){return void 0===o&&(o=3),void 0===a&&(a=5e3),_e._runBatchCommon(0,e,t,n,o,a,r,i,s,c)},_e._runExplicitBatch=function(e,t,n,r,i,o,a,s,c){return void 0===o&&(o=3),void 0===a&&(a=5e3),_e._runBatchCommon(1,e,t,n,o,a,r,i,s,c)},_e._runBatchCommon=function(e,t,n,r,i,o,a,s,c,l){var u,p;void 0===i&&(i=3),void 0===o&&(o=5e3);var f=null,d=null,h=null,g=0,m=null;if(0<n.length)if(_e.isValidRequestInfo(n[0]))f=n[0],g=1;else if(rt.isPlainJsonObject(n[0])){if(null!=(f=(m=n[0]).session)&&!_e.isValidRequestInfo(f))return _e.createErrorPromise(t);d=m.getAdditionalHeaders,h=m.previousObjects,g=1}if(n.length==g+1)p=n[g+0];else{if(null!=m||n.length!=g+2)return _e.createErrorPromise(t);h=n[g+0],p=n[g+1]}if(null!=h)if(h instanceof pe)u=function(){return h.context};else if(h instanceof _e)u=function(){return h};else{if(!Array.isArray(h))return _e.createErrorPromise(t);var y=h;if(0==y.length)return _e.createErrorPromise(t);for(var v=0;v<y.length;v++){if(!(y[v]instanceof pe))return _e.createErrorPromise(t);if(y[v].context!=y[0].context)return _e.createErrorPromise(t,et.invalidRequestContext)}u=function(){return y[0].context}}else u=r;var b=null;a&&(b=function(e){return a(m||{},e)});var _=null;return s&&(_=function(e){return s(m||{},e)}),_e._runCommon(t,f,u,e,p,i,o,b,_,c,l,d)},_e.createErrorPromise=function(e,t){return void 0===t&&(t=m.invalidArgument),C._createPromiseFromException(rt.createRuntimeError(t,C._getResourceString(t),e))},_e._runCommon=function(t,n,e,r,i,s,c,o,l,u,p,a){v._overrideSession&&(n=v._overrideSession);var f,d,h,g=C.createPromise(function(e,t){e()}),m=!1;return g.then(function(){if((f=e(n)).getAdditionalHeaders=a,f._autoCleanup)return new y.Promise(function(e,t){f._onRunFinishedNotifiers.push(function(){f._autoCleanup=!0,e()})});f._autoCleanup=!0}).then(function(){return"function"!=typeof i?_e.createErrorPromise(t):(h=f.m_batchMode,f.m_batchMode=r,o&&o(f),e=i(1==r?f.batch.bind(f):f),!rt.isNullOrUndefined(e)&&"function"==typeof e.then||rt.throwError(et.runMustReturnPromise),e);var e}).then(function(e){return 1===r?e:f.sync(e)}).then(function(e){m=!0,d=e}).catch(function(e){d=e}).then(function(){var i=f.trackedObjects._retrieveAndClearAutoCleanupList();for(var e in f._autoCleanup=!1,f.m_batchMode=h,i)i[e]._objectPath.isValid=!1;var o=0;if(rt._synchronousCleanup||_e.isRequestUrlAndHeaderInfoResolver(n))return a();function a(){o++;var e=f.m_pendingRequest,t=f.m_batchMode,n=new Te(f);f.m_pendingRequest=n,f.m_batchMode=0;try{for(var r in i)f.trackedObjects.remove(i[r]);l&&l(f)}finally{f.m_batchMode=t,f.m_pendingRequest=e}return f.syncPrivate(n).then(function(){u&&u(o)}).catch(function(){p&&p(o),o<s&&setTimeout(function(){a()},c)})}a()}).then(function(){if(f._onRunFinishedNotifiers&&0<f._onRunFinishedNotifiers.length&&f._onRunFinishedNotifiers.shift()(),m)return d;throw d})},_e);function _e(e){var t=ve.call(this)||this;if(t.m_customRequestHeaders={},t.m_batchMode=0,t._onRunFinishedNotifiers=[],v._overrideSession)t.m_requestUrlAndHeaderInfoResolver=v._overrideSession;else if((rt.isNullOrUndefined(e)||"string"==typeof e&&0===e.length)&&(e=(e=_e.defaultRequestUrlAndHeaders)||{url:d.localDocument,headers:{}}),"string"==typeof e)t.m_requestUrlAndHeaderInfo={url:e,headers:{}};else if(_e.isRequestUrlAndHeaderInfoResolver(e))t.m_requestUrlAndHeaderInfoResolver=e;else{if(!_e.isRequestUrlAndHeaderInfo(e))throw h.RuntimeError._createInvalidArgError({argumentName:"url"});var n=e;t.m_requestUrlAndHeaderInfo={url:n.url,headers:{}},C._copyHeaders(n.headers,t.m_requestUrlAndHeaderInfo.headers)}return!t.m_requestUrlAndHeaderInfoResolver&&t.m_requestUrlAndHeaderInfo&&C._isLocalDocumentUrl(t.m_requestUrlAndHeaderInfo.url)&&me.getInstanceIfHostBridgeInited()&&(t.m_requestUrlAndHeaderInfo=null,t.m_requestUrlAndHeaderInfoResolver=me.getInstanceIfHostBridgeInited()),t.m_requestUrlAndHeaderInfoResolver instanceof v&&(t.m_session=t.m_requestUrlAndHeaderInfoResolver),t._processingResult=!1,t._customData=Ae.iterativeExecutor,t.sync=t.sync.bind(t),t}y.ClientRequestContext=be;var Oe=(Object.defineProperty(Se.prototype,"$proxy",{get:function(){return this.m_proxy},enumerable:!0,configurable:!0}),Object.defineProperty(Se.prototype,"$isNullObject",{get:function(){if(!this.m_isLoaded)throw new h.RuntimeError({code:re.valueNotLoaded,httpStatusCode:400,message:C._getResourceString(et.valueNotLoaded),debugInfo:{errorLocation:"retrieveResult.$isNullObject"}});return this.m_isNullObject},enumerable:!0,configurable:!0}),Se.prototype.toJSON=function(){if(this.m_isLoaded)return this.m_isNullObject?null:(rt.isUndefined(this.m_json)&&(this.m_json=rt.purifyJson(this.m_value)),this.m_json)},Se.prototype.toString=function(){return JSON.stringify(this.toJSON())},Se.prototype._handleResult=function(e){this.m_isLoaded=!0,null===e||"object"==typeof e&&e&&e._IsNull?(this.m_isNullObject=!0,e=null):this.m_isNullObject=!1,this.m_shouldPolyfill&&(e=rt.changePropertyNameToCamelLowerCase(e)),this.m_value=e,this.m_proxy._handleRetrieveResult(e,this)},Se);function Se(e,t){this.m_proxy=e,this.m_shouldPolyfill=t;var n=e[Ae.scalarPropertyNames],r=e[Ae.navigationPropertyNames],i=e[Ae.className],o=e[Ae.isCollection];if(n)for(var a=0;a<n.length;a++)rt.definePropertyThrowUnloadedException(this,i,n[a]);if(r)for(a=0;a<r.length;a++)rt.definePropertyThrowUnloadedException(this,i,r[a]);o&&rt.definePropertyThrowUnloadedException(this,i,Ae.itemsLowerCase)}var Ce,Ae=(__extends(Pe,Ce=K),Pe.getItemAt="GetItemAt",Pe.index="_Index",Pe.iterativeExecutor="IterativeExecutor",Pe.isTracked="_IsTracked",Pe.eventMessageCategory=65536,Pe.eventWorkbookId="Workbook",Pe.eventSourceRemote="Remote",Pe.proxy="$proxy",Pe.className="_className",Pe.isCollection="_isCollection",Pe.collectionPropertyPath="_collectionPropertyPath",Pe.objectPathInfoDoNotKeepReferenceFieldName="D",Pe.officeScriptEventId="X-OfficeScriptEventId",Pe.officeScriptFireRecordingEvent="X-OfficeScriptFireRecordingEvent",Pe.officeControlId="X-OfficeControlId",Pe);function Pe(){return null!==Ce&&Ce.apply(this,arguments)||this}y.Constants=Ae;var Ee,Te=(__extends(Ie,Ee=U),Object.defineProperty(Ie.prototype,"traceInfos",{get:function(){return this.m_traceInfos},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"_responseTraceMessages",{get:function(){return this.m_responseTraceMessages},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"_responseTraceIds",{get:function(){return this.m_responseTraceIds},enumerable:!0,configurable:!0}),Ie.prototype._setResponseTraceIds=function(e){if(e)for(var t=0;t<e.length;t++){var n=e[t];this.m_responseTraceIds[n]=n;var r=this.m_traceInfos[n];C.isNullOrUndefined(r)||this.m_responseTraceMessages.push(r)}},Ie.prototype.addTrace=function(e,t){this.m_traceInfos[e]=t},Ie.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(Ie.prototype,"_pendingProcessEventHandlers",{get:function(){return this.m_pendingProcessEventHandlers},enumerable:!0,configurable:!0}),Ie.prototype._getPendingEventHandlerActions=function(e){return this.m_pendingEventHandlerActions[e._id]},Ie);function Ie(e){var t=Ee.call(this,e)||this;return t.m_context=e,t.m_pendingProcessEventHandlers=[],t.m_pendingEventHandlerActions={},t.m_traceInfos={},t.m_responseTraceIds={},t.m_responseTraceMessages=[],t}y.ClientRequest=Te;var we=(Object.defineProperty(Re.prototype,"_registered",{get:function(){return this.m_registered},enumerable:!0,configurable:!0}),Object.defineProperty(Re.prototype,"_id",{get:function(){return this.m_id},enumerable:!0,configurable:!0}),Object.defineProperty(Re.prototype,"_handlers",{get:function(){return this.m_handlers},enumerable:!0,configurable:!0}),Object.defineProperty(Re.prototype,"_context",{get:function(){return this.m_context},enumerable:!0,configurable:!0}),Object.defineProperty(Re.prototype,"_callback",{get:function(){return this.m_callback},enumerable:!0,configurable:!0}),Re.prototype.add=function(e){var t=ce.createTraceAction(this.m_context,null,!1);return this.m_context._pendingRequest._addPendingEventHandlerAction(this,{id:t.actionInfo.Id,handler:e,operation:0}),new Fe(this.m_context,this,e)},Re.prototype.remove=function(e){var t=ce.createTraceAction(this.m_context,null,!1);this.m_context._pendingRequest._addPendingEventHandlerAction(this,{id:t.actionInfo.Id,handler:e,operation:1})},Re.prototype.removeAll=function(){var e=ce.createTraceAction(this.m_context,null,!1);this.m_context._pendingRequest._addPendingEventHandlerAction(this,{id:e.actionInfo.Id,handler:null,operation:2})},Re.prototype._processRegistration=function(e){var t=this,n=C._createPromiseFromResult(null),r=e._getPendingEventHandlerActions(this);if(!r)return n;for(var i=[],o=0;o<this.m_handlers.length;o++)i.push(this.m_handlers[o]);var a=!1;for(o=0;o<r.length;o++)if(e._responseTraceIds[r[o].id])switch(a=!0,r[o].operation){case 0:i.push(r[o].handler);break;case 1:for(var s=i.length-1;0<=s;s--)if(i[s]===r[o].handler){i.splice(s,1);break}break;case 2:i=[]}return a&&(!this.m_registered&&0<i.length?n=n.then(function(){return t.m_eventInfo.registerFunc(t.m_callback)}).then(function(){return t.m_registered=!0}):this.m_registered&&0==i.length&&(n=n.then(function(){return t.m_eventInfo.unregisterFunc(t.m_callback)}).catch(function(e){C.log("Error when unregister event: "+JSON.stringify(e))}).then(function(){return t.m_registered=!1})),n=n.then(function(){return t.m_handlers=i})),n},Re.prototype.fireEvent=function(e){for(var t=[],n=0;n<this.m_handlers.length;n++){var r=this.m_handlers[n],i=C._createPromiseFromResult(null).then(this.createFireOneEventHandlerFunc(r,e)).catch(function(e){C.log("Error when invoke handler: "+JSON.stringify(e))});t.push(i)}C.Promise.all(t)},Re.prototype.createFireOneEventHandlerFunc=function(e,t){return function(){return e(t)}},Re);function Re(e,t,n,r){var i=this;this.m_id=e._nextId(),this.m_context=e,this.m_name=n,this.m_handlers=[],this.m_registered=!1,this.m_eventInfo=r,this.m_callback=function(e){i.m_eventInfo.eventArgsTransformFunc(e).then(function(e){return i.fireEvent(e)})}}y.EventHandlers=we;var De,xe,Fe=(Object.defineProperty(Ne.prototype,"context",{get:function(){return this.m_context},enumerable:!0,configurable:!0}),Ne.prototype.remove=function(){this.m_allHandlers&&this.m_handler&&(this.m_allHandlers.remove(this.m_handler),this.m_allHandlers=null,this.m_handler=null)},Ne);function Ne(e,t,n){this.m_context=e,this.m_allHandlers=t,this.m_handler=n}function ke(){}y.EventHandlerResult=Fe,De=h=y._Internal||(y._Internal={}),ke.prototype.register=function(e,t,n){switch(e){case 4:return rt.promisify(function(e){return Office.context.document.bindings.getByIdAsync(t,e)}).then(function(t){return rt.promisify(function(e){return t.addHandlerAsync(Office.EventType.BindingDataChanged,n,e)})});case 3:return rt.promisify(function(e){return Office.context.document.bindings.getByIdAsync(t,e)}).then(function(t){return rt.promisify(function(e){return t.addHandlerAsync(Office.EventType.BindingSelectionChanged,n,e)})});case 2:return rt.promisify(function(e){return Office.context.document.addHandlerAsync(Office.EventType.DocumentSelectionChanged,n,e)});case 1:return rt.promisify(function(e){return Office.context.document.settings.addHandlerAsync(Office.EventType.SettingsChanged,n,e)});case 5:return OSF.DDA.RichApi.richApiMessageManager.register(n);case 13:return rt.promisify(function(e){return Office.context.document.addHandlerAsync(Office.EventType.ObjectDeleted,n,{id:t},e)});case 14:return rt.promisify(function(e){return Office.context.document.addHandlerAsync(Office.EventType.ObjectSelectionChanged,n,{id:t},e)});case 15:return rt.promisify(function(e){return Office.context.document.addHandlerAsync(Office.EventType.ObjectDataChanged,n,{id:t},e)});case 16:return rt.promisify(function(e){return Office.context.document.addHandlerAsync(Office.EventType.ContentControlAdded,n,{id:t},e)});default:throw De.RuntimeError._createInvalidArgError({argumentName:"eventId"})}},ke.prototype.unregister=function(e,t,n){switch(e){case 4:return rt.promisify(function(e){return Office.context.document.bindings.getByIdAsync(t,e)}).then(function(t){return rt.promisify(function(e){return t.removeHandlerAsync(Office.EventType.BindingDataChanged,{handler:n},e)})});case 3:return rt.promisify(function(e){return Office.context.document.bindings.getByIdAsync(t,e)}).then(function(t){return rt.promisify(function(e){return t.removeHandlerAsync(Office.EventType.BindingSelectionChanged,{handler:n},e)})});case 2:return rt.promisify(function(e){return Office.context.document.removeHandlerAsync(Office.EventType.DocumentSelectionChanged,{handler:n},e)});case 1:return rt.promisify(function(e){return Office.context.document.settings.removeHandlerAsync(Office.EventType.SettingsChanged,{handler:n},e)});case 5:return rt.promisify(function(e){return OSF.DDA.RichApi.richApiMessageManager.removeHandlerAsync("richApiMessage",{handler:n},e)});case 13:return rt.promisify(function(e){return Office.context.document.removeHandlerAsync(Office.EventType.ObjectDeleted,{id:t,handler:n},e)});case 14:return rt.promisify(function(e){return Office.context.document.removeHandlerAsync(Office.EventType.ObjectSelectionChanged,{id:t,handler:n},e)});case 15:return rt.promisify(function(e){return Office.context.document.removeHandlerAsync(Office.EventType.ObjectDataChanged,{id:t,handler:n},e)});case 16:return rt.promisify(function(e){return Office.context.document.removeHandlerAsync(Office.EventType.ContentControlAdded,{id:t,handler:n},e)});default:throw De.RuntimeError._createInvalidArgError({argumentName:"eventId"})}},xe=ke,De.officeJsEventRegistration=new xe;var je=(Me.getTargetIdOrDefault=function(e){return rt.isNullOrUndefined(e)?"":e},Me.prototype.getHandlers=function(e,t){t=Me.getTargetIdOrDefault(t);var n=this.m_handlersByEventByTarget[e];n||(n={},this.m_handlersByEventByTarget[e]=n);var r=n[t];return r||(r=[],n[t]=r),r},Me.prototype.callHandlers=function(e,t,n){for(var r=this.getHandlers(e,t),i=0;i<r.length;i++)r[i](n)},Me.prototype.hasHandlers=function(e,t){return 0<this.getHandlers(e,t).length},Me.prototype.register=function(e,t,n){if(!n)throw h.RuntimeError._createInvalidArgError({argumentName:"handler"});var r=this.getHandlers(e,t);return r.push(n),1===r.length?this.m_registerEventImpl(e,t):rt._createPromiseFromResult(null)},Me.prototype.unregister=function(e,t,n){if(!n)throw h.RuntimeError._createInvalidArgError({argumentName:"handler"});for(var r=this.getHandlers(e,t),i=r.length-1;0<=i;i--)if(r[i]===n){r.splice(i,1);break}return 0===r.length?this.m_unregisterEventImpl(e,t):rt._createPromiseFromResult(null)},Me);function Me(e,t){this.m_handlersByEventByTarget={},this.m_registerEventImpl=e,this.m_unregisterEventImpl=t}y.EventRegistration=je;var He=(Ue.prototype.ready=function(){var e=this;return this.m_ready||(Ue._testReadyImpl?this.m_ready=Ue._testReadyImpl().then(function(){e.m_isReady=!0}):c.instance?this.m_ready=rt._createPromiseFromResult(null).then(function(){e.m_isReady=!0}):this.m_ready=h.officeJsEventRegistration.register(5,"",this.m_richApiMessageHandler).then(function(){e.m_isReady=!0})),this.m_ready},Object.defineProperty(Ue.prototype,"isReady",{get:function(){return this.m_isReady},enumerable:!0,configurable:!0}),Ue.prototype.register=function(e,t,n){var r=this;return this.ready().then(function(){return r.m_eventRegistration.register(e,t,n)})},Ue.prototype.unregister=function(e,t,n){var r=this;return this.ready().then(function(){return r.m_eventRegistration.unregister(e,t,n)})},Ue.prototype._registerEventImpl=function(e,t){return rt._createPromiseFromResult(null)},Ue.prototype._unregisterEventImpl=function(e,t){return rt._createPromiseFromResult(null)},Ue.prototype._handleRichApiMessage=function(e){if(e&&e.entries)for(var t=0;t<e.entries.length;t++){var n=e.entries[t];if(n.messageCategory==Ae.eventMessageCategory){C._logEnabled&&C.log(JSON.stringify(n));var r=n.messageType,i=n.targetId;if(this.m_eventRegistration.hasHandlers(r,i)){var o=JSON.parse(n.message);n.isRemoteOverride&&(o.source=Ae.eventSourceRemote),this.m_eventRegistration.callHandlers(r,i,o)}}}},Ue.getGenericEventRegistration=function(e){C.isNullOrUndefined(e)&&(e="");var t=Ue.s_genericEventRegistrations[e];return t||(t=new Ue,Ue.s_genericEventRegistrations[e]=t),t},Ue.peekGenericEventRegistrationOrNull=function(e){return C.isNullOrUndefined(e)&&(e=""),Ue.s_genericEventRegistrations[e]},Ue.richApiMessageEventCategory=65536,Ue.s_genericEventRegistrations={},Ue);function Ue(){this.m_eventRegistration=new je(this._registerEventImpl.bind(this),this._unregisterEventImpl.bind(this)),this.m_richApiMessageHandler=this._handleRichApiMessage.bind(this)}y.GenericEventRegistration=He,y._testSetRichApiMessageReadyImpl=function(e){He._testReadyImpl=e},y._testTriggerRichApiMessageEvent=function(e){He.getGenericEventRegistration("")._handleRichApiMessage(e)};var Le,Be=(__extends(We,Le=we),We.prototype.add=function(e){var t=this;0==this._handlers.length&&this.m_genericEventInfo.registerFunc&&this.m_genericEventInfo.registerFunc();var n=this._context._controlId;return He.getGenericEventRegistration(n).isReady||this._context._pendingRequest._addPreSyncPromise(He.getGenericEventRegistration(n).ready()),ce.createTraceMarkerForCallback(this._context,function(){t._handlers.push(e),1==t._handlers.length&&He.getGenericEventRegistration(n).register(t.m_genericEventInfo.eventType,t.m_genericEventInfo.getTargetIdFunc(),t._callback)}),new Fe(this._context,this,e)},We.prototype.remove=function(n){var r=this;1==this._handlers.length&&this.m_genericEventInfo.unregisterFunc&&this.m_genericEventInfo.unregisterFunc();var i=this._context._controlId;ce.createTraceMarkerForCallback(this._context,function(){for(var e=r._handlers,t=e.length-1;0<=t;t--)if(e[t]===n){e.splice(t,1);break}0==e.length&&He.getGenericEventRegistration(i).unregister(r.m_genericEventInfo.eventType,r.m_genericEventInfo.getTargetIdFunc(),r._callback)})},We.prototype.removeAll=function(){},We);function We(e,t,n,r){var i=Le.call(this,e,t,n,r)||this;return i.m_genericEventInfo=r,i}y.GenericEventHandlers=Be;var Ge=(Ve.prototype._handleResult=function(e){this.m_clientObject._handleIdResult(e)},Ve);function Ve(e){this.m_clientObject=e}var qe=(Je.createGlobalObjectObjectPath=function(e){var t={Id:e._nextId(),ObjectPathType:1,Name:""};return new F(t,null,!1,!1,1,4)},Je.createNewObjectObjectPath=function(e,t,n,r){var i={Id:e._nextId(),ObjectPathType:2,Name:t};return new F(i,null,n,!1,1,rt._fixupApiFlags(r))},Je.createPropertyObjectPath=function(e,t,n,r,i,o){var a={Id:e._nextId(),ObjectPathType:4,Name:n,ParentObjectPathId:t._objectPath.objectPathInfo.Id};return new F(a,t._objectPath,r,i,1,rt._fixupApiFlags(o))},Je.createIndexerObjectPath=function(e,t,n){var r={Id:e._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}};return r.ArgumentInfo.Arguments=n,new F(r,t._objectPath,!1,!1,1,4)},Je.createIndexerObjectPathUsingParentPath=function(e,t,n){var r={Id:e._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:t.objectPathInfo.Id,ArgumentInfo:{}};return r.ArgumentInfo.Arguments=n,new F(r,t,!1,!1,1,4)},Je.createMethodObjectPath=function(e,t,n,r,i,o,a,s,c){var l={Id:e._nextId(),ObjectPathType:3,Name:n,ParentObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}},u=rt.setMethodArguments(e,l.ArgumentInfo,i),p=new F(l,t._objectPath,o,a,r,rt._fixupApiFlags(c));return p.argumentObjectPaths=u,p.getByIdMethodName=s,p},Je.createReferenceIdObjectPath=function(e,t){var n={Id:e._nextId(),ObjectPathType:6,Name:t,ArgumentInfo:{}};return new F(n,null,!1,!1,1,4)},Je.createChildItemObjectPathUsingIndexerOrGetItemAt=function(e,t,n,r,i){var o=rt.tryGetObjectIdFromLoadOrRetrieveResult(r);return e&&!rt.isNullOrUndefined(o)?Je.createChildItemObjectPathUsingIndexer(t,n,r):Je.createChildItemObjectPathUsingGetItemAt(t,n,r,i)},Je.createChildItemObjectPathUsingIndexer=function(e,t,n){var r=rt.tryGetObjectIdFromLoadOrRetrieveResult(n),i=i={Id:e._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}};return i.ArgumentInfo.Arguments=[r],new F(i,t._objectPath,!1,!1,1,4)},Je.createChildItemObjectPathUsingGetItemAt=function(e,t,n,r){var i=n[Ae.index];i&&(r=i);var o={Id:e._nextId(),ObjectPathType:3,Name:Ae.getItemAt,ParentObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}};return o.ArgumentInfo.Arguments=[r],new F(o,t._objectPath,!1,!1,1,4)},Je);function Je(){}y.ObjectPathFactory=qe;var ze=(Ke.prototype.executeAsync=function(e,t,n,r){var i=this,o=O.buildMessageArrayForIRequestExecutor(e,t,n,Ke.SourceLibHeaderValue,r),a=this.m_context._blockWrite&&0!=(1&t);if(a)throw"Block Write: "+a;return new y.Promise(function(n,e){OSF.DDA.RichApi.executeRichApiRequestAsync(o,function(e){var t;C.log("Response:"),C.log(JSON.stringify(e)),"succeeded"==e.status?t=O.buildResponseOnSuccess(O.getResponseBody(e),O.getResponseHeaders(e)):(t=O.buildResponseOnError(e.error.code,e.error.message),i.m_context._processOfficeJsErrorResponse(e.error.code,t)),n(t)})})},Ke.SourceLibHeaderValue="officejs",Ke);function Ke(e){this.m_context=e}var Xe=(Qe.prototype.add=function(e){var t=this;Array.isArray(e)?e.forEach(function(e){return t._addCommon(e,!0)}):this._addCommon(e,!0)},Qe.prototype._autoAdd=function(e){this._addCommon(e,!1),this._autoCleanupList[e._objectPath.objectPathInfo.Id]=e},Qe.prototype._autoTrackIfNecessaryWhenHandleObjectResultValue=function(e,t){this.m_context._autoCleanup&&!e[Ae.isTracked]&&e!==this.m_context._rootObject&&t&&!rt.isNullOrEmptyString(t[Ae.referenceId])&&((this._autoCleanupList[e._objectPath.objectPathInfo.Id]=e)[Ae.isTracked]=!0)},Qe.prototype._addCommon=function(e,t){if(e[Ae.isTracked])t&&this.m_context._autoCleanup&&delete this._autoCleanupList[e._objectPath.objectPathInfo.Id];else{var n=e[Ae.referenceId];if(e._objectPath.objectPathInfo[Ae.objectPathInfoDoNotKeepReferenceFieldName])throw rt.createRuntimeError(g.generalException,C._getResourceString(et.objectIsUntracked),null);rt.isNullOrEmptyString(n)&&e._KeepReference&&(e._KeepReference(),ce.createInstantiateAction(this.m_context,e),t&&this.m_context._autoCleanup&&delete this._autoCleanupList[e._objectPath.objectPathInfo.Id],e[Ae.isTracked]=!0)}},Qe.prototype.remove=function(e){var t=this;Array.isArray(e)?e.forEach(function(e){return t._removeCommon(e)}):this._removeCommon(e)},Qe.prototype._removeCommon=function(e){e._objectPath.objectPathInfo[Ae.objectPathInfoDoNotKeepReferenceFieldName]=!0,e.context._pendingRequest._removeKeepReferenceAction(e._objectPath.objectPathInfo.Id);var t=e[Ae.referenceId];if(!rt.isNullOrEmptyString(t)){var n=this.m_context._rootObject;n._RemoveReference&&n._RemoveReference(t)}delete e[Ae.isTracked]},Qe.prototype._retrieveAndClearAutoCleanupList=function(){var e=this._autoCleanupList;return this._autoCleanupList={},e},Qe);function Qe(e){this._autoCleanupList={},this.m_context=e}y.TrackedObjects=Xe;var $e=(Ze.prototype.process=function(){this.m_showDispose&&Te._calculateLastUsedObjectPathIds(this.m_actions);for(var e=0;e<this.m_actions.length;e++)this.processOneAction(this.m_actions[e]);return this.m_statements},Ze.prototype.processForDebugStatementInfo=function(e){this.m_showDispose&&Te._calculateLastUsedObjectPathIds(this.m_actions),this.m_statements=[];for(var t=-1,n=0;n<this.m_actions.length&&(this.processOneAction(this.m_actions[n]),e==n&&(t=this.m_statements.length-1),!(0<=t&&this.m_statements.length>t+5+1));n++);if(t<0)return null;var r=t-5;r<0&&(r=0);var i=t+1+5;i>this.m_statements.length&&(i=this.m_statements.length);var o=[];0!=r&&o.push("...");for(var a=r;a<t;a++)o.push(this.m_statements[a]);o.push("// >>>>>"),o.push(this.m_statements[t]),o.push("// <<<<<");for(var s=t+1;s<i;s++)o.push(this.m_statements[s]);return i<this.m_statements.length&&o.push("..."),{statement:this.m_statements[t],surroundingStatements:o}},Ze.prototype.processOneAction=function(e){switch(e.actionInfo.ActionType){case 1:this.processInstantiateAction(e);break;case 3:this.processMethodAction(e);break;case 2:this.processQueryAction(e);break;case 7:this.processQueryAsJsonAction(e);break;case 6:this.processRecursiveQueryAction(e);break;case 4:this.processSetPropertyAction(e);break;case 5:this.processTraceAction(e);break;case 8:this.processEnsureUnchangedAction(e);break;case 9:this.processUpdateAction(e)}},Ze.prototype.processInstantiateAction=function(e){var t=e.actionInfo.ObjectPathId,n=this.m_referencedObjectPaths[t],r=this.getObjVarName(t);if(this.m_declaredObjectPathMap[t])i="// Instantiate {"+r+"}",i=this.appendDisposeCommentIfRelevant(i,e),this.m_statements.push(i);else{var i="var "+r+" = "+this.buildObjectPathExpressionWithParent(n)+";";i=this.appendDisposeCommentIfRelevant(i,e),this.m_statements.push(i),this.m_declaredObjectPathMap[t]=r}},Ze.prototype.processMethodAction=function(e){var t=e.actionInfo.Name;if("_KeepReference"===t){if(!y._internalConfig.showInternalApiInDebugInfo)return;t="track"}var n=this.getObjVarName(e.actionInfo.ObjectPathId)+"."+rt._toCamelLowerCase(t)+"("+this.buildArgumentsExpression(e.actionInfo.ArgumentInfo)+");";n=this.appendDisposeCommentIfRelevant(n,e),this.m_statements.push(n)},Ze.prototype.processQueryAction=function(e){var t=this.buildQueryExpression(e),n=this.getObjVarName(e.actionInfo.ObjectPathId)+".load("+t+");";n=this.appendDisposeCommentIfRelevant(n,e),this.m_statements.push(n)},Ze.prototype.processQueryAsJsonAction=function(e){var t=this.buildQueryExpression(e),n=this.getObjVarName(e.actionInfo.ObjectPathId)+".retrieve("+t+");";n=this.appendDisposeCommentIfRelevant(n,e),this.m_statements.push(n)},Ze.prototype.processRecursiveQueryAction=function(e){var t="";e.actionInfo.RecursiveQueryInfo&&(t=JSON.stringify(e.actionInfo.RecursiveQueryInfo));var n=this.getObjVarName(e.actionInfo.ObjectPathId)+".loadRecursive("+t+");";n=this.appendDisposeCommentIfRelevant(n,e),this.m_statements.push(n)},Ze.prototype.processSetPropertyAction=function(e){var t=this.getObjVarName(e.actionInfo.ObjectPathId)+"."+rt._toCamelLowerCase(e.actionInfo.Name)+" = "+this.buildArgumentsExpression(e.actionInfo.ArgumentInfo)+";";t=this.appendDisposeCommentIfRelevant(t,e),this.m_statements.push(t)},Ze.prototype.processTraceAction=function(e){var t="context.trace();";t=this.appendDisposeCommentIfRelevant(t,e),this.m_statements.push(t)},Ze.prototype.processEnsureUnchangedAction=function(e){var t=this.getObjVarName(e.actionInfo.ObjectPathId)+".ensureUnchanged("+JSON.stringify(e.actionInfo.ObjectState)+");";t=this.appendDisposeCommentIfRelevant(t,e),this.m_statements.push(t)},Ze.prototype.processUpdateAction=function(e){var t=this.getObjVarName(e.actionInfo.ObjectPathId)+".update("+JSON.stringify(e.actionInfo.ObjectState)+");";t=this.appendDisposeCommentIfRelevant(t,e),this.m_statements.push(t)},Ze.prototype.appendDisposeCommentIfRelevant=function(e,t){var n=this;if(this.m_showDispose){var r=t.actionInfo.L;if(r&&0<r.length)return e+" // And then dispose {"+r.map(function(e){return n.getObjVarName(e)}).join(", ")+"}"}return e},Ze.prototype.buildQueryExpression=function(e){if(e.actionInfo.QueryInfo){var t={};return t.select=e.actionInfo.QueryInfo.Select,t.expand=e.actionInfo.QueryInfo.Expand,t.skip=e.actionInfo.QueryInfo.Skip,t.top=e.actionInfo.QueryInfo.Top,void 0===t.top&&void 0===t.skip&&void 0===t.expand?void 0===t.select?"":JSON.stringify(t.select):JSON.stringify(t)}return""},Ze.prototype.buildObjectPathExpressionWithParent=function(e){return 5!=e.objectPathInfo.ObjectPathType&&3!=e.objectPathInfo.ObjectPathType&&4!=e.objectPathInfo.ObjectPathType||!e.objectPathInfo.ParentObjectPathId?this.buildObjectPathExpression(e):this.getObjVarName(e.objectPathInfo.ParentObjectPathId)+"."+this.buildObjectPathExpression(e)},Ze.prototype.buildObjectPathExpression=function(e){var t=this.buildObjectPathInfoExpression(e.objectPathInfo),n=e.originalObjectPathInfo;return n&&(t=t+" /* originally "+this.buildObjectPathInfoExpression(n)+" */"),t},Ze.prototype.buildObjectPathInfoExpression=function(e){switch(e.ObjectPathType){case 1:return"context."+this.m_globalObjName;case 5:return"getItem("+this.buildArgumentsExpression(e.ArgumentInfo)+")";case 3:return rt._toCamelLowerCase(e.Name)+"("+this.buildArgumentsExpression(e.ArgumentInfo)+")";case 2:return e.Name+".newObject()";case 7:return"null";case 4:return rt._toCamelLowerCase(e.Name);case 6:return"context."+this.m_globalObjName+"._getObjectByReferenceId("+JSON.stringify(e.Name)+")"}},Ze.prototype.buildArgumentsExpression=function(e){var t="";if(!e.Arguments||0===e.Arguments.length)return t;if(this.m_removePII)return void 0===e.Arguments[0]?t:"...";for(var n=0;n<e.Arguments.length;n++)0<n&&(t+=", "),t+=this.buildArgumentLiteral(e.Arguments[n],e.ReferencedObjectPathIds?e.ReferencedObjectPathIds[n]:null);return"undefined"===t&&(t=""),t},Ze.prototype.buildArgumentLiteral=function(e,t){return"number"==typeof e&&e===t?this.getObjVarName(t):JSON.stringify(e)},Ze.prototype.getObjVarNameBase=function(e){var t="v",n=this.m_referencedObjectPaths[e];if(n)switch(n.objectPathInfo.ObjectPathType){case 1:t=this.m_globalObjName;break;case 4:t=rt._toCamelLowerCase(n.objectPathInfo.Name);break;case 3:var r=n.objectPathInfo.Name;3<r.length&&"Get"===r.substr(0,3)&&(r=r.substr(3)),t=rt._toCamelLowerCase(r);break;case 5:var i=this.getObjVarNameBase(n.objectPathInfo.ParentObjectPathId);t="s"===i.charAt(i.length-1)?i.substr(0,i.length-1):i+"Item"}return t},Ze.prototype.getObjVarName=function(e){if(this.m_variableNameForObjectPathMap[e])return this.m_variableNameForObjectPathMap[e];var t=this.getObjVarNameBase(e);if(!this.m_variableNameToObjectPathMap[t])return this.m_variableNameForObjectPathMap[e]=t,this.m_variableNameToObjectPathMap[t]=e,t;for(var n=1;this.m_variableNameToObjectPathMap[t+n.toString()];)n++;return t+=n.toString(),this.m_variableNameForObjectPathMap[e]=t,this.m_variableNameToObjectPathMap[t]=e,t},Ze);function Ze(e,t,n,r,i){e=e||"root",this.m_globalObjName=e,this.m_referencedObjectPaths=t,this.m_actions=n,this.m_statements=[],this.m_variableNameForObjectPathMap={},this.m_variableNameToObjectPathMap={},this.m_declaredObjectPathMap={},this.m_showDispose=r,this.m_removePII=i}var Ye,et=(__extends(tt,Ye=ee),tt.cannotRegisterEvent="CannotRegisterEvent",tt.connectionFailureWithStatus="ConnectionFailureWithStatus",tt.connectionFailureWithDetails="ConnectionFailureWithDetails",tt.propertyNotLoaded="PropertyNotLoaded",tt.runMustReturnPromise="RunMustReturnPromise",tt.moreInfoInnerError="MoreInfoInnerError",tt.cannotApplyPropertyThroughSetMethod="CannotApplyPropertyThroughSetMethod",tt.invalidOperationInCellEditMode="InvalidOperationInCellEditMode",tt.objectIsUntracked="ObjectIsUntracked",tt.customFunctionDefintionMissing="CustomFunctionDefintionMissing",tt.customFunctionImplementationMissing="CustomFunctionImplementationMissing",tt.customFunctionNameContainsBadChars="CustomFunctionNameContainsBadChars",tt.customFunctionNameCannotSplit="CustomFunctionNameCannotSplit",tt.customFunctionUnexpectedNumberOfEntriesInResultBatch="CustomFunctionUnexpectedNumberOfEntriesInResultBatch",tt.customFunctionCancellationHandlerMissing="CustomFunctionCancellationHandlerMissing",tt.customFunctionInvalidFunction="CustomFunctionInvalidFunction",tt.customFunctionInvalidFunctionMapping="CustomFunctionInvalidFunctionMapping",tt.customFunctionWindowMissing="CustomFunctionWindowMissing",tt.customFunctionDefintionMissingOnWindow="CustomFunctionDefintionMissingOnWindow",tt.pendingBatchInProgress="PendingBatchInProgress",tt.notInsideBatch="NotInsideBatch",tt.cannotUpdateReadOnlyProperty="CannotUpdateReadOnlyProperty",tt);function tt(){return null!==Ye&&Ye.apply(this,arguments)||this}y.ResourceStrings=et,C.addResourceStringValues({CannotRegisterEvent:"The event handler cannot be registered.",PropertyNotLoaded:"The property '{0}' is not available. Before reading the property's value, call the load method on the containing object and call \"context.sync()\" on the associated request context.",RunMustReturnPromise:'The batch function passed to the ".run" method didn\'t return a promise. The function must return a promise, so that any automatically-tracked objects can be released at the completion of the batch operation. Typically, you return a promise by returning the response from "context.sync()".',InvalidOrTimedOutSessionMessage:"Your Office Online session has expired or is invalid. To continue, refresh the page.",InvalidOperationInCellEditMode:"Excel is in cell-editing mode. Please exit the edit mode by pressing ENTER or TAB or selecting another cell, and then try again.",InvalidSheetName:"The request cannot be processed because the specified worksheet cannot be found. Please try again.",CustomFunctionDefintionMissing:"A property with the name '{0}' that represents the function's definition must exist on Excel.Script.CustomFunctions.",CustomFunctionDefintionMissingOnWindow:"A property with the name '{0}' that represents the function's definition must exist on the window object.",CustomFunctionImplementationMissing:"The property with the name '{0}' on Excel.Script.CustomFunctions that represents the function's definition must contain a 'call' property that implements the function.",CustomFunctionNameContainsBadChars:"The function name may only contain letters, digits, underscores, and periods.",CustomFunctionNameCannotSplit:"The function name must contain a non-empty namespace and a non-empty short name.",CustomFunctionUnexpectedNumberOfEntriesInResultBatch:"The batching function returned a number of results that doesn't match the number of parameter value sets that were passed into it.",CustomFunctionCancellationHandlerMissing:"The cancellation handler onCanceled is missing in the function. The handler must be present as the function is defined as cancelable.",CustomFunctionInvalidFunction:"The property with the name '{0}' that represents the function's definition is not a valid function.",CustomFunctionInvalidFunctionMapping:"The property with the name '{0}' on CustomFunctionMappings that represents the function's definition is not a valid function.",CustomFunctionWindowMissing:"The window object was not found.",PendingBatchInProgress:"There is a pending batch in progress. The batch method may not be called inside another batch, or simultaneously with another batch.",NotInsideBatch:"Operations may not be invoked outside of a batch method.",CannotUpdateReadOnlyProperty:"The property '{0}' is read-only and it cannot be updated.",ObjectIsUntracked:"The object is untracked."});var nt,rt=(__extends(it,nt=$),it.fixObjectPathIfNecessary=function(e,t){e&&e._objectPath&&t&&e._objectPath.updateUsingObjectData(t,e)},it.load=function(e,t){return e.context.load(e,t),e},it.loadAndSync=function(e,t){return e.context.load(e,t),e.context.sync().then(function(){return e})},it.retrieve=function(e,t){var n=y._internalConfig.alwaysPolyfillClientObjectRetrieveMethod;n=n||!it.isSetSupported("RichApiRuntime","1.1");var r=new Oe(e,n);return e._retrieve(t,r),r},it.retrieveAndSync=function(e,t){var n=it.retrieve(e,t);return e.context.sync().then(function(){return n})},it.toJson=function(e,t,n,r){var i={};for(var o in t)void 0!==(a=t[o])&&(i[o]=a);for(var o in n){var a;void 0!==(a=n[o])&&(a[it.fieldName_isCollection]&&void 0!==a[it.fieldName_m__items]?i[o]=a.toJSON().items:i[o]=a.toJSON())}return r&&(i.items=r.map(function(e){return e.toJSON()})),i},it.throwError=function(e,t,n){throw new h.RuntimeError({code:e,httpStatusCode:400,message:C._getResourceString(e,t),debugInfo:n?{errorLocation:n}:void 0})},it.createRuntimeError=function(e,t,n,r,i){return new h.RuntimeError({code:e,httpStatusCode:r,message:t,debugInfo:{errorLocation:n},data:i})},it.throwIfNotLoaded=function(e,t,n,r){if(!r&&C.isUndefined(t)&&e.charCodeAt(0)!=it.s_underscoreCharCode&&!it.s_suppressPropertyNotLoadedException)throw it.createPropertyNotLoadedException(n,e)},it._getPropertyValueWithoutCheckLoaded=function(e,t){it.s_suppressPropertyNotLoadedException=!0;try{return e[t]}finally{it.s_suppressPropertyNotLoadedException=!1}},it.createPropertyNotLoadedException=function(e,t){return new h.RuntimeError({code:re.propertyNotLoaded,httpStatusCode:400,message:C._getResourceString(et.propertyNotLoaded,t),debugInfo:e?{errorLocation:e+"."+t}:void 0})},it.createCannotUpdateReadOnlyPropertyException=function(e,t){return new h.RuntimeError({code:re.cannotUpdateReadOnlyProperty,httpStatusCode:400,message:C._getResourceString(et.cannotUpdateReadOnlyProperty,t),debugInfo:e?{errorLocation:e+"."+t}:void 0})},it.promisify=function(e){return new y.Promise(function(t,n){e(function(e){"failed"==e.status?n(e.error):t(e.value)})})},it._addActionResultHandler=function(e,t,n){e.context._pendingRequest.addActionResultHandler(t,n)},it._handleNavigationPropertyResults=function(e,t,n){for(var r=0;r<n.length-1;r+=2)C.isUndefined(t[n[r+1]])||e[n[r]]._handleResult(t[n[r+1]])},it._fixupApiFlags=function(e){return"boolean"==typeof e&&(e=e?1:0),e},it.definePropertyThrowUnloadedException=function(e,t,n){Object.defineProperty(e,n,{configurable:!0,enumerable:!0,get:function(){throw it.createPropertyNotLoadedException(t,n)},set:function(){throw it.createCannotUpdateReadOnlyPropertyException(t,n)}})},it.defineReadOnlyPropertyWithValue=function(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return n},set:function(){throw it.createCannotUpdateReadOnlyPropertyException(null,t)}})},it.processRetrieveResult=function(e,t,n,r){if(!C.isNullOrUndefined(t))if(r){var i=t[Ae.itemsLowerCase];if(Array.isArray(i)){for(var o=[],a=0;a<i.length;a++){var s=r(i[a],a),c={};(c[Ae.proxy]=s)._handleRetrieveResult(i[a],c),o.push(c)}it.defineReadOnlyPropertyWithValue(n,Ae.itemsLowerCase,o)}}else{var l=e[Ae.scalarPropertyNames],u=e[Ae.navigationPropertyNames],p=e[Ae.className];if(l)for(a=0;a<l.length;a++){var f=t[d=l[a]];C.isUndefined(f)?it.definePropertyThrowUnloadedException(n,p,d):it.defineReadOnlyPropertyWithValue(n,d,f)}if(u)for(a=0;a<u.length;a++){var d;if(f=t[d=u[a]],C.isUndefined(f))it.definePropertyThrowUnloadedException(n,p,d);else{var h=e[d],g={};h._handleRetrieveResult(f,g),g[Ae.proxy]=h,Array.isArray(g[Ae.itemsLowerCase])&&(g=g[Ae.itemsLowerCase]),it.defineReadOnlyPropertyWithValue(n,d,g)}}}},it.setMockData=function(e,t,n,r){if(C.isNullOrUndefined(t))e._handleResult(t);else{if(e[Ae.scalarPropertyOriginalNames]){for(var i={},o=e[Ae.scalarPropertyOriginalNames],a=e[Ae.scalarPropertyNames],s=0;s<a.length;s++)void 0!==t[a[s]]&&(i[o[s]]=t[a[s]]);e._handleResult(i)}if(e[Ae.navigationPropertyNames]){var c=e[Ae.navigationPropertyNames];for(s=0;s<c.length;s++)if(void 0!==t[c[s]]){var l=e[c[s]];l.setMockData&&l.setMockData(t[c[s]])}}if(e[Ae.isCollection]&&n){var u=Array.isArray(t)?t:t[Ae.itemsLowerCase];if(Array.isArray(u)){var p=[];for(s=0;s<u.length;s++){var f=n(u,s);it.setMockData(f,u[s]),p.push(f)}r(p)}}}},it.applyMixin=function(t,n){Object.getOwnPropertyNames(n.prototype).forEach(function(e){"constructor"!==e&&Object.defineProperty(t.prototype,e,Object.getOwnPropertyDescriptor(n.prototype,e))})},it.ensureTypeInitialized=function(e){var t=new be;new e(t,qe.createNewObjectObjectPath(t,"Temp",!1,0))},it.fieldName_m__items="m__items",it.fieldName_isCollection="_isCollection",it._synchronousCleanup=!1,it.s_underscoreCharCode="_".charCodeAt(0),it.s_suppressPropertyNotLoadedException=!1,it);function it(){return null!==nt&&nt.apply(this,arguments)||this}y.Utility=rt;var ot=(at.invokeMethod=function(e,t,n,r,i,o){var a=ce.createMethodAction(e.context,e,t,n,r,i),s=new B(o);return rt._addActionResultHandler(e,a,s),s},at.invokeEnsureUnchanged=function(e,t){ce.createEnsureUnchangedAction(e.context,e,t)},at.invokeSetProperty=function(e,t,n,r){ce.createSetPropertyAction(e.context,e,t,n,r)},at.createRootServiceObject=function(e,t){return new e(t,qe.createGlobalObjectObjectPath(t))},at.createObjectFromReferenceId=function(e,t,n){return new e(t,qe.createReferenceIdObjectPath(t,n))},at.createTopLevelServiceObject=function(e,t,n,r,i){return new e(t,qe.createNewObjectObjectPath(t,n,r,i))},at.createPropertyObject=function(e,t,n,r,i){var o=qe.createPropertyObjectPath(t.context,t,n,r,!1,i);return new e(t.context,o)},at.createIndexerObject=function(e,t,n){var r=qe.createIndexerObjectPath(t.context,t,n);return new e(t.context,r)},at.createMethodObject=function(e,t,n,r,i,o,a,s,c){var l=qe.createMethodObjectPath(t.context,t,n,r,i,o,a,s,c);return new e(t.context,l)},at.createChildItemObject=function(e,t,n,r,i){var o=qe.createChildItemObjectPathUsingIndexerOrGetItemAt(t,n.context,n,r,i);return new e(n.context,o)},at);function at(){}y.BatchApiHelper=ot;var st=(ct.prototype.ensureArraySize=function(e,t){for(var n=t-e.length;0<n;)e.push(0),n--},ct.prototype.getString=function(e){return"number"==typeof e?0<e?this.m_strings[e-1]:null:e},ct.prototype.buildEnumType=function(e){var t;if(Array.isArray(e)){(t={name:e[0],fields:e[2]}).fields||(t.fields={});var n=e[1];if(Array.isArray(n))for(var r=0;r<n.length;r++)t.fields[n[r]]=this.toSimpleCamelUpperCase(n[r])}else t=e;this.m_targetNamespaceObject[t.name]=t.fields},ct.prototype.buildClientObjectType=function(n,e){function t(e,t){pe.apply(this,arguments),r.m_targetNamespaceObject[n.name]._typeInited||(r.buildPrototype(r.m_targetNamespaceObject[n.name],n),r.m_targetNamespaceObject[n.name]._typeInited=!0),y._internalConfig.appendTypeNameToObjectPathInfo&&this._objectPath&&this._objectPath.objectPathInfo&&this._className&&(this._objectPath.objectPathInfo.T=this._className)}var r=this;this.m_targetNamespaceObject[n.name]=t,this.extendsType(t,pe),this.buildNewObject(t,n),0!=(2&n.behaviorFlags)&&(t.prototype._KeepReference=function(){ot.invokeMethod(this,"_KeepReference",1,[],0,0)}),0!=(32&n.behaviorFlags)&&this.getFunction(ct.CustomizationCodeNamespace+"."+n.name+"_StaticCustomize").call(null,t),e&&(this.buildPrototype(t,n),t._typeInited=!0)},ct.prototype.extendsType=function(e,t){function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ct.prototype.findObjectUnderPath=function(e,t,n){for(var r=e,i=n;i<t.length;i++){if("object"!=typeof r)throw new y.Error("Cannot find "+t.join("."));r=r[t[i]]}return r},ct.prototype.getFunction=function(e){var t=this.resolveObjectByFullName(e);if("function"!=typeof t)throw new y.Error("Cannot find function or type: "+e);return t},ct.prototype.resolveObjectByFullName=function(e){var t=e.split(".");if(1===t.length)return this.m_targetNamespaceObject[t[0]];var n=t[0];return n===this.m_namespace?this.findObjectUnderPath(this.m_targetNamespaceObject,t,1):this.m_namespaceMap[n]?this.findObjectUnderPath(this.m_namespaceMap[n],t,1):this.findObjectUnderPath(this.m_targetNamespaceObject,t,0)},ct.prototype.evaluateSimpleExpression=function(e,t){if(rt.isNullOrUndefined(e))return null;var n=e.split(".");if(3===n.length&&"OfficeExtension"===n[0]&&"Constants"===n[1])return Ae[n[2]];if("this"!==n[0])throw new y.Error("Cannot evaluate: "+e);for(var r=t,i=1;i<n.length;i++)r="toString()"==n[i]?r.toString():"()"===n[i].substr(n[i].length-2)?r[n[i].substr(0,n[i].length-2)]():r[n[i]];return r},ct.prototype.evaluateEventTargetId=function(e,t){return rt.isNullOrEmptyString(e)?"":this.evaluateSimpleExpression(e,t)},ct.prototype.isAllDigits=function(e){for(var t="0".charCodeAt(0),n="9".charCodeAt(0),r=0;r<e.length;r++)if(e.charCodeAt(r)<t||e.charCodeAt(r)>n)return!1;return!0},ct.prototype.evaluateEventType=function(e){if(rt.isNullOrEmptyString(e))return 0;if(this.isAllDigits(e))return parseInt(e);var t=this.resolveObjectByFullName(e);if("number"!=typeof t)throw new y.Error("Invalid event type: "+e);return t},ct.prototype.buildPrototype=function(e,t){this.buildScalarProperties(e,t),this.buildNavigationProperties(e,t),this.buildScalarMethods(e,t),this.buildNavigationMethods(e,t),this.buildEvents(e,t),this.buildHandleResult(e,t),this.buildHandleIdResult(e,t),this.buildHandleRetrieveResult(e,t),this.buildLoad(e,t),this.buildRetrieve(e,t),this.buildSetMockData(e,t),this.buildEnsureUnchanged(e,t),this.buildUpdate(e,t),this.buildSet(e,t),this.buildToJSON(e,t),this.buildItems(e,t),this.buildTypeMetadataInfo(e,t),this.buildTrackUntrack(e,t),this.buildMixin(e,t)},ct.prototype.toSimpleCamelUpperCase=function(e){return e.substr(0,1).toUpperCase()+e.substr(1)},ct.prototype.ensureOriginalName=function(e){null===e.originalName&&(e.originalName=this.toSimpleCamelUpperCase(e.name))},ct.prototype.getFieldName=function(e){return"m_"+e.name},ct.prototype.throwIfApiNotSupported=function(e,t){if(this.m_apiSets&&0<t.apiSetInfoOrdinal){var n=this.m_apiSets[t.apiSetInfoOrdinal-1];n&&rt.throwIfApiNotSupported(e.name+"."+t.name,n.name,n.version,this.m_hostName)}},ct.prototype.buildScalarProperties=function(e,t){if(Array.isArray(t.scalarProperties))for(var n=0;n<t.scalarProperties.length;n++){var r=t.scalarProperties[n];Array.isArray(r)&&(this.ensureArraySize(r,6),t.scalarProperties[n]={name:this.getString(r[0]),behaviorFlags:r[1],apiSetInfoOrdinal:r[2],originalName:this.getString(r[3]),setMethodApiFlags:r[4],undoableApiSetInfoOrdinal:r[5]}),this.buildScalarProperty(e,t,t.scalarProperties[n])}},ct.prototype.calculateApiFlags=function(e,t){if(0<t){var n=this.m_apiSets[t-1];n&&(e=$.calculateApiFlags(e,n.name,n.version))}return e},ct.prototype.buildScalarProperty=function(e,n,r){this.ensureOriginalName(r);var i=this,o=this.getFieldName(r),t={get:function(){return rt.throwIfNotLoaded(r.name,this[o],n.name,this._isNull),i.throwIfApiNotSupported(n,r),this[o]},enumerable:!0,configurable:!0};0==(2&r.behaviorFlags)&&(t.set=function(e){if(!(4&r.behaviorFlags&&i.getFunction(ct.CustomizationCodeNamespace+"."+n.name+"_"+r.originalName+"_Set").call(this,this,e).handled)){this[o]=e;var t=i.calculateApiFlags(r.setMethodApiFlags,r.undoableApiSetInfoOrdinal);ot.invokeSetProperty(this,r.originalName,e,t)}}),Object.defineProperty(e.prototype,r.name,t)},ct.prototype.buildNavigationProperties=function(e,t){if(Array.isArray(t.navigationProperties))for(var n=0;n<t.navigationProperties.length;n++){var r=t.navigationProperties[n];Array.isArray(r)&&(this.ensureArraySize(r,8),t.navigationProperties[n]={name:this.getString(r[0]),behaviorFlags:r[2],apiSetInfoOrdinal:r[3],originalName:this.getString(r[4]),getMethodApiFlags:r[5],setMethodApiFlags:r[6],propertyTypeFullName:this.getString(r[1]),undoableApiSetInfoOrdinal:r[7]}),this.buildNavigationProperty(e,t,t.navigationProperties[n])}},ct.prototype.buildNavigationProperty=function(e,n,r){this.ensureOriginalName(r);var i=this,o=this.getFieldName(r),t={get:function(){return this[i.getFieldName(r)]||(i.throwIfApiNotSupported(n,r),this[o]=ot.createPropertyObject(i.getFunction(r.propertyTypeFullName),this,r.originalName,0!=(16&r.behaviorFlags),r.getMethodApiFlags)),64&r.behaviorFlags&&i.getFunction(ct.CustomizationCodeNamespace+"."+n.name+"_"+r.originalName+"_Get").call(this,this,this[o]),this[o]},enumerable:!0,configurable:!0};0==(2&r.behaviorFlags)&&(t.set=function(e){if(!(4&r.behaviorFlags&&i.getFunction(ct.CustomizationCodeNamespace+"."+n.name+"_"+r.originalName+"_Set").call(this,this,e).handled)){this[o]=e;var t=i.calculateApiFlags(r.setMethodApiFlags,r.undoableApiSetInfoOrdinal);ot.invokeSetProperty(this,r.originalName,e,t)}}),Object.defineProperty(e.prototype,r.name,t)},ct.prototype.buildScalarMethods=function(e,t){if(Array.isArray(t.scalarMethods))for(var n=0;n<t.scalarMethods.length;n++){var r=t.scalarMethods[n];Array.isArray(r)&&(this.ensureArraySize(r,7),t.scalarMethods[n]={name:this.getString(r[0]),behaviorFlags:r[2],apiSetInfoOrdinal:r[3],originalName:this.getString(r[5]),apiFlags:r[4],parameterCount:r[1],undoableApiSetInfoOrdinal:r[6]}),this.buildScalarMethod(e,t,t.scalarMethods[n])}},ct.prototype.buildScalarMethod=function(e,p,f){this.ensureOriginalName(f);var d=this;e.prototype[f.name]=function(){var e=[];if(64&f.behaviorFlags&&0<f.parameterCount){for(var t=0;t<f.parameterCount-1;t++)e.push(arguments[t]);var n=[];for(t=f.parameterCount-1;t<arguments.length;t++)n.push(arguments[t]);e.push(n)}else for(t=0;t<arguments.length;t++)e.push(arguments[t]);if(1&f.behaviorFlags){var r=d.getFunction(ct.CustomizationCodeNamespace+"."+p.name+"_"+f.originalName),i=[this];for(t=0;t<e.length;t++)i.push(e[t]);var o=r.apply(this,i),a=o.handled,s=o.result;if(a)return s}d.throwIfApiNotSupported(p,f);var c=0;32&f.behaviorFlags&&(c=1);var l=0;2&f.behaviorFlags&&(l=1);var u=d.calculateApiFlags(f.apiFlags,f.undoableApiSetInfoOrdinal);return ot.invokeMethod(this,f.originalName,l,e,u,c)}},ct.prototype.buildNavigationMethods=function(e,t){if(Array.isArray(t.navigationMethods))for(var n=0;n<t.navigationMethods.length;n++){var r=t.navigationMethods[n];Array.isArray(r)&&(this.ensureArraySize(r,9),t.navigationMethods[n]={name:this.getString(r[0]),behaviorFlags:r[3],apiSetInfoOrdinal:r[4],originalName:this.getString(r[6]),apiFlags:r[5],parameterCount:r[2],returnTypeFullName:this.getString(r[1]),returnObjectGetByIdMethodName:this.getString(r[7]),undoableApiSetInfoOrdinal:r[8]}),this.buildNavigationMethod(e,t,t.navigationMethods[n])}},ct.prototype.buildNavigationMethod=function(e,u,p){this.ensureOriginalName(p);var f=this;e.prototype[p.name]=function(){var e=[];if(64&p.behaviorFlags&&0<p.parameterCount){for(var t=0;t<p.parameterCount-1;t++)e.push(arguments[t]);var n=[];for(t=p.parameterCount-1;t<arguments.length;t++)n.push(arguments[t]);e.push(n)}else for(t=0;t<arguments.length;t++)e.push(arguments[t]);if(1&p.behaviorFlags){var r=f.getFunction(ct.CustomizationCodeNamespace+"."+u.name+"_"+p.originalName),i=[this];for(t=0;t<e.length;t++)i.push(e[t]);var o=r.apply(this,i),a=o.handled,s=o.result;if(a)return s}if(f.throwIfApiNotSupported(u,p),0!=(16&p.behaviorFlags))return ot.createIndexerObject(f.getFunction(p.returnTypeFullName),this,e);var c=0;2&p.behaviorFlags&&(c=1);var l=f.calculateApiFlags(p.apiFlags,p.undoableApiSetInfoOrdinal);return ot.createMethodObject(f.getFunction(p.returnTypeFullName),this,p.originalName,c,e,0!=(4&p.behaviorFlags),0!=(8&p.behaviorFlags),p.returnObjectGetByIdMethodName,l)}},ct.prototype.buildHandleResult=function(e,l){var u=this;e.prototype._handleResult=function(e){if(pe.prototype._handleResult.call(this,e),!rt.isNullOrUndefined(e)){if(rt.fixObjectPathIfNecessary(this,e),8&l.behaviorFlags&&u.getFunction(ct.CustomizationCodeNamespace+"."+l.name+"_HandleResult").call(this,this,e),l.scalarProperties)for(var t=0;t<l.scalarProperties.length;t++)rt.isUndefined(e[l.scalarProperties[t].originalName])||(0!=(8&l.scalarProperties[t].behaviorFlags)?this[u.getFieldName(l.scalarProperties[t])]=rt.adjustToDateTime(e[l.scalarProperties[t].originalName]):this[u.getFieldName(l.scalarProperties[t])]=e[l.scalarProperties[t].originalName]);if(l.navigationProperties){for(var n=[],r=0;r<l.navigationProperties.length;r++)n.push(l.navigationProperties[r].name),n.push(l.navigationProperties[r].originalName);rt._handleNavigationPropertyResults(this,e,n)}if(0!=(1&l.behaviorFlags)){var i=u.hasIndexMethod(l);if(!rt.isNullOrUndefined(e[Ae.items])){this.m__items=[];for(var o=e[Ae.items],a=u.getFunction(l.childItemTypeFullName),s=0;s<o.length;s++){var c=ot.createChildItemObject(a,i,this,o[s],s);c._handleResult(o[s]),this.m__items.push(c)}}}}}},ct.prototype.buildHandleRetrieveResult=function(e,a){var s=this;e.prototype._handleRetrieveResult=function(e,t){if(pe.prototype._handleRetrieveResult.call(this,e,t),!rt.isNullOrUndefined(e)){if(a.scalarProperties)for(var n=0;n<a.scalarProperties.length;n++)8&a.scalarProperties[n].behaviorFlags&&(rt.isNullOrUndefined(e[a.scalarProperties[n].name])||(e[a.scalarProperties[n].name]=rt.adjustToDateTime(e[a.scalarProperties[n].name])));if(1&a.behaviorFlags){var r=s.hasIndexMethod(a),i=s.getFunction(a.childItemTypeFullName),o=this;rt.processRetrieveResult(o,e,t,function(e,t){return ot.createChildItemObject(i,r,o,e,t)})}else rt.processRetrieveResult(this,e,t)}}},ct.prototype.buildHandleIdResult=function(e,r){var i=this;e.prototype._handleIdResult=function(e){if(pe.prototype._handleIdResult.call(this,e),!rt.isNullOrUndefined(e)&&(16&r.behaviorFlags&&i.getFunction(ct.CustomizationCodeNamespace+"."+r.name+"_HandleIdResult").call(this,this,e),r.scalarProperties))for(var t=0;t<r.scalarProperties.length;t++){var n=r.scalarProperties[t].originalName;"Id"!==n&&"_Id"!==n&&"_ReferenceId"!==n||rt.isNullOrUndefined(e[r.scalarProperties[t].originalName])||(this[i.getFieldName(r.scalarProperties[t])]=e[r.scalarProperties[t].originalName])}}},ct.prototype.buildLoad=function(e,t){e.prototype.load=function(e){return rt.load(this,e)}},ct.prototype.buildRetrieve=function(e,t){e.prototype.retrieve=function(e){return rt.retrieve(this,e)}},ct.prototype.buildNewObject=function(t,n){rt.isNullOrEmptyString(n.newObjectServerTypeFullName)||(t.newObject=function(e){return ot.createTopLevelServiceObject(t,e,n.newObjectServerTypeFullName,0!=(1&n.behaviorFlags),n.newObjectApiFlags)})},ct.prototype.buildSetMockData=function(e,r){var i=this;if(1&r.behaviorFlags){var o=i.hasIndexMethod(r);e.prototype.setMockData=function(e){var n=this;rt.setMockData(n,e,function(e,t){return ot.createChildItemObject(i.getFunction(r.childItemTypeFullName),o,n,e,t)},function(e){n.m__items=e})}}else e.prototype.setMockData=function(e){rt.setMockData(this,e)}},ct.prototype.buildEnsureUnchanged=function(e,t){e.prototype.ensureUnchanged=function(e){ot.invokeEnsureUnchanged(this,e)}},ct.prototype.buildUpdate=function(e,t){e.prototype.update=function(e){this._recursivelyUpdate(e)}},ct.prototype.buildSet=function(e,t){if(0==(1&t.behaviorFlags)){var n=[],r=[];if(t.scalarProperties)for(var i=0;i<t.scalarProperties.length;i++)0==(2&t.scalarProperties[i].behaviorFlags)&&0!=(1&t.scalarProperties[i].behaviorFlags)?r.push(t.scalarProperties[i].name):n.push(t.scalarProperties[i].name);var o=[];if(t.navigationProperties)for(i=0;i<t.navigationProperties.length;i++)0!=(16&t.navigationProperties[i].behaviorFlags)||0==(1&t.navigationProperties[i].behaviorFlags)||0==(32&t.navigationProperties[i].behaviorFlags)?n.push(t.navigationProperties[i].name):o.push(t.navigationProperties[i].name);0===o.length&&0===r.length||(e.prototype.set=function(e,t){this._recursivelySet(e,t,r,o,n)})}},ct.prototype.buildItems=function(e,t){0!=(1&t.behaviorFlags)&&Object.defineProperty(e.prototype,"items",{get:function(){return rt.throwIfNotLoaded("items",this.m__items,t.name,this._isNull),this.m__items},enumerable:!0,configurable:!0})},ct.prototype.buildToJSON=function(e,r){var i=this;0==(1&r.behaviorFlags)?e.prototype.toJSON=function(){var e={};if(r.scalarProperties)for(var t=0;t<r.scalarProperties.length;t++)0!=(1&r.scalarProperties[t].behaviorFlags)&&(e[r.scalarProperties[t].name]=this[i.getFieldName(r.scalarProperties[t])]);var n={};if(r.navigationProperties)for(t=0;t<r.navigationProperties.length;t++)0!=(1&r.navigationProperties[t].behaviorFlags)&&(n[r.navigationProperties[t].name]=this[i.getFieldName(r.navigationProperties[t])]);return rt.toJson(this,e,n)}:e.prototype.toJSON=function(){return rt.toJson(this,{},{},this.m__items)}},ct.prototype.buildTypeMetadataInfo=function(e,t){Object.defineProperty(e.prototype,"_className",{get:function(){return t.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_isCollection",{get:function(){return 0!=(1&t.behaviorFlags)},enumerable:!0,configurable:!0}),rt.isNullOrEmptyString(t.collectionPropertyPath)||Object.defineProperty(e.prototype,"_collectionPropertyPath",{get:function(){return t.collectionPropertyPath},enumerable:!0,configurable:!0}),t.scalarProperties&&0<t.scalarProperties.length&&(Object.defineProperty(e.prototype,"_scalarPropertyNames",{get:function(){return this.m__scalarPropertyNames||(this.m__scalarPropertyNames=t.scalarProperties.map(function(e){return e.name})),this.m__scalarPropertyNames},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_scalarPropertyOriginalNames",{get:function(){return this.m__scalarPropertyOriginalNames||(this.m__scalarPropertyOriginalNames=t.scalarProperties.map(function(e){return e.originalName})),this.m__scalarPropertyOriginalNames},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_scalarPropertyUpdateable",{get:function(){return this.m__scalarPropertyUpdateable||(this.m__scalarPropertyUpdateable=t.scalarProperties.map(function(e){return 0==(2&e.behaviorFlags)})),this.m__scalarPropertyUpdateable},enumerable:!0,configurable:!0})),t.navigationProperties&&0<t.navigationProperties.length&&Object.defineProperty(e.prototype,"_navigationPropertyNames",{get:function(){return this.m__navigationPropertyNames||(this.m__navigationPropertyNames=t.navigationProperties.map(function(e){return e.name})),this.m__navigationPropertyNames},enumerable:!0,configurable:!0})},ct.prototype.buildTrackUntrack=function(e,t){2&t.behaviorFlags&&(e.prototype.track=function(){return this.context.trackedObjects.add(this),this},e.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this})},ct.prototype.buildMixin=function(e,t){if(4&t.behaviorFlags){var n=this.getFunction(t.name+"Custom");rt.applyMixin(e,n)}},ct.prototype.getOnEventName=function(e){return"_"===e[0]?"_on"+e.substr(1):"on"+e},ct.prototype.buildEvents=function(e,t){if(t.events)for(var n=0;n<t.events.length;n++){var r=t.events[n];Array.isArray(r)&&(this.ensureArraySize(r,7),t.events[n]={name:this.getString(r[0]),behaviorFlags:r[1],apiSetInfoOrdinal:r[2],typeExpression:this.getString(r[3]),targetIdExpression:this.getString(r[4]),register:this.getString(r[5]),unregister:this.getString(r[6])}),this.buildEvent(e,t,t.events[n])}},ct.prototype.buildEvent=function(e,t,n){1&n.behaviorFlags?this.buildV0Event(e,t,n):this.buildV2Event(e,t,n)},ct.prototype.buildV2Event=function(e,o,a){var s=this,t=this.getOnEventName(a.name),c=this.getFieldName(a);Object.defineProperty(e.prototype,t,{get:function(){if(!this[c]){s.throwIfApiNotSupported(o,a);var t=this,e=null;"null"!==a.register&&(e=this[a.register].bind(this));var n=null;"null"!==a.unregister&&(n=this[a.unregister].bind(this));var r=null;2&a.behaviorFlags&&(r=s.getFunction(ct.CustomizationCodeNamespace+"."+o.name+"_"+a.name+"_EventArgsTransform"));var i=s.evaluateEventType(a.typeExpression);this[c]=new Be(this.context,this,a.name,{eventType:i,getTargetIdFunc:function(){return s.evaluateEventTargetId(a.targetIdExpression,t)},registerFunc:e,unregisterFunc:n,eventArgsTransformFunc:function(e){return r&&(e=r.call(t,t,e)),rt._createPromiseFromResult(e)}})}return this[c]},enumerable:!0,configurable:!0})},ct.prototype.buildV0Event=function(e,c,l){var u=this,t=this.getOnEventName(l.name),p=this.getFieldName(l);Object.defineProperty(e.prototype,t,{get:function(){if(!this[p]){u.throwIfApiNotSupported(c,l);var n=this,e=null;if(rt.isNullOrEmptyString(l.register)){var r=u.evaluateEventType(l.typeExpression);e=function(e){var t=u.evaluateEventTargetId(l.targetIdExpression,n);return n.context.eventRegistration.register(r,t,e)}}else if("null"!==l.register){var t=u.getFunction(l.register);e=function(e){return t.call(n,n,e)}}var i=null;if(rt.isNullOrEmptyString(l.unregister)){var o=u.evaluateEventType(l.typeExpression);i=function(e){var t=u.evaluateEventTargetId(l.targetIdExpression,n);return n.context.eventRegistration.unregister(o,t,e)}}else if("null"!==l.unregister){var a=u.getFunction(l.unregister);i=function(e){return a.call(n,n,e)}}var s=null;2&l.behaviorFlags&&(s=u.getFunction(ct.CustomizationCodeNamespace+"."+c.name+"_"+l.name+"_EventArgsTransform")),this[p]=new we(this.context,this,l.name,{registerFunc:e,unregisterFunc:i,eventArgsTransformFunc:function(e){return s&&(e=s.call(n,n,e)),rt._createPromiseFromResult(e)}})}return this[p]},enumerable:!0,configurable:!0})},ct.prototype.hasIndexMethod=function(e){var t=!1;if(e.navigationMethods)for(var n=0;n<e.navigationMethods.length;n++)if(0!=(16&e.navigationMethods[n].behaviorFlags)){t=!0;break}return t},ct.CustomizationCodeNamespace="_CC",ct);function ct(e){if(this.m_namespaceMap={},this.m_namespace=e.metadata.name,this.m_targetNamespaceObject=e.targetNamespaceObject,this.m_namespaceMap[this.m_namespace]=e.targetNamespaceObject,e.namespaceMap)for(var t in e.namespaceMap)this.m_namespaceMap[t]=e.namespaceMap[t];this.m_defaultApiSetName=e.metadata.defaultApiSetName,this.m_hostName=e.metadata.hostName;var n=e.metadata;if(n.enumTypes)for(var r=0;r<n.enumTypes.length;r++)this.buildEnumType(n.enumTypes[r]);if(n.apiSets){for(r=0;r<n.apiSets.length;r++){var i=n.apiSets[r];Array.isArray(i)&&(n.apiSets[r]={version:i[0],name:i[1]||this.m_defaultApiSetName})}this.m_apiSets=n.apiSets}if(this.m_strings=n.strings,n.clientObjectTypes)for(r=0;r<n.clientObjectTypes.length;r++){i=n.clientObjectTypes[r];Array.isArray(i)&&(this.ensureArraySize(i,11),n.clientObjectTypes[r]={name:this.getString(i[0]),behaviorFlags:i[1],collectionPropertyPath:this.getString(i[6]),newObjectServerTypeFullName:this.getString(i[9]),newObjectApiFlags:i[10],childItemTypeFullName:this.getString(i[7]),scalarProperties:i[2],navigationProperties:i[3],scalarMethods:i[4],navigationMethods:i[5],events:i[8]}),this.buildClientObjectType(n.clientObjectTypes[r],e.fullyInitialize)}}y.LibraryBuilder=st}(OfficeExtension=OfficeExtension||{}),function(e){var t;(t||(t={})).getPromiseType=function(){if("undefined"!=typeof Promise)return Promise;if(void 0!==Office&&Office.Promise)return Office.Promise;throw new e.Error("No Promise implementation found")},Object.defineProperty(e,"Promise",{get:function(){return t.getPromiseType()},enumerable:!0,configurable:!0})}(OfficeExtension=OfficeExtension||{});try{if("undefined"!=typeof OfficePlatformGlobal&&void 0!==OfficePlatformGlobal.ReactNativeReka){var RichApiBridgeImpl=function(){function e(){}return e.prototype.sendMessageToHost=function(e){OfficePlatformGlobal.ReactNativeReka.RekaInstance.InvokeNative("RichApiDataService","ProcessMessageToHost",e)},e}(),RichApiBridge_1=new RichApiBridgeImpl,RichApiDataService_1=function(){function e(){}return e.prototype.Invoke=function(e,t){"ProcessMessageFromHost"===e&&RichApiBridge_1.onMessageFromHost&&RichApiBridge_1.onMessageFromHost(t)},e}();OfficePlatformGlobal.ReactNativeReka.initReka(),OfficePlatformGlobal.ReactNativeReka.RekaInstance.RegisterService("RichApiDataService",function(){return new RichApiDataService_1}),OfficeExtension.HostBridge.init(RichApiBridge_1),OfficeExtension.HostBridgeSession.getInstanceIfHostBridgeInited()}}catch(e){}var oteljs;__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};!function(e){function r(e,t,n,r){return{name:e,dataType:t,value:n,classification:r||4}}e.makeBooleanDataField=function(e,t,n){return r(e,1,t,n)},e.makeInt64DataField=function(e,t,n){return r(e,2,t,n)},e.makeDoubleDataField=function(e,t,n){return r(e,3,t,n)},e.makeStringDataField=function(e,t,n){return r(e,0,t,n)},e.makeGuidDataField=function(e,t,n){return r(e,4,t,n)}}(oteljs=oteljs||{}),function(e){var t,n,r,i,o,a,s,c,l,u,p,f,d;(t=e.DataClassification||(e.DataClassification={}))[t.EssentialServiceMetadata=1]="EssentialServiceMetadata",t[t.AccountData=2]="AccountData",t[t.SystemMetadata=4]="SystemMetadata",t[t.OrganizationIdentifiableInformation=8]="OrganizationIdentifiableInformation",t[t.EndUserIdentifiableInformation=16]="EndUserIdentifiableInformation",t[t.CustomerContent=32]="CustomerContent",t[t.AccessControl=64]="AccessControl",t[t.PublicNonPersonalData=128]="PublicNonPersonalData",t[t.EndUserPseudonymousInformation=256]="EndUserPseudonymousInformation",t[t.PublicPersonalData=512]="PublicPersonalData",t[t.SupportData=1024]="SupportData",t[t.DirectMeasurementData=2048]="DirectMeasurementData",t[t.Everything=65535]="Everything",(n=e.DataFieldType||(e.DataFieldType={}))[n.String=0]="String",n[n.Boolean=1]="Boolean",n[n.Int64=2]="Int64",n[n.Double=3]="Double",n[n.Guid=4]="Guid",(r=e.SamplingPolicy||(e.SamplingPolicy={}))[r.NotSet=0]="NotSet",r[r.Measure=1]="Measure",r[r.Diagnostics=2]="Diagnostics",r[r.CriticalBusinessImpact=191]="CriticalBusinessImpact",r[r.CriticalCensus=192]="CriticalCensus",r[r.CriticalExperimentation=193]="CriticalExperimentation",r[r.CriticalUsage=194]="CriticalUsage",(i=e.PersistencePriority||(e.PersistencePriority={}))[i.NotSet=0]="NotSet",i[i.Normal=1]="Normal",i[i.High=2]="High",(o=e.CostPriority||(e.CostPriority={}))[o.NotSet=0]="NotSet",o[o.Normal=1]="Normal",o[o.High=2]="High",(a=e.DataCategories||(e.DataCategories={}))[a.NotSet=0]="NotSet",a[a.SoftwareSetup=1]="SoftwareSetup",a[a.ProductServiceUsage=2]="ProductServiceUsage",a[a.ProductServicePerformance=4]="ProductServicePerformance",a[a.DeviceConfiguration=8]="DeviceConfiguration",a[a.InkingTypingSpeech=16]="InkingTypingSpeech",(s=e.DiagnosticLevel||(e.DiagnosticLevel={}))[s.ReservedDoNotUse=0]="ReservedDoNotUse",s[s.Required=10]="Required",s[s.BasicEvent=10]="BasicEvent",s[s.Optional=100]="Optional",s[s.FullEvent=100]="FullEvent",s[s.RequiredServiceData=110]="RequiredServiceData",s[s.NecessaryServiceDataEvent=110]="NecessaryServiceDataEvent",s[s.RequiredServiceDataForEssentialServices=120]="RequiredServiceDataForEssentialServices",s[s.AlwaysOnNecessaryServiceDataEvent=120]="AlwaysOnNecessaryServiceDataEvent",(c=e.CustomerContentType||(e.CustomerContentType={}))[c.None=0]="None",c[c.MocaAddIn=1]="MocaAddIn",(l=e.LogLevel||(e.LogLevel={}))[l.Error=0]="Error",l[l.Warning=1]="Warning",l[l.Info=2]="Info",l[l.Verbose=3]="Verbose",(u=e.Category||(e.Category={}))[u.Core=0]="Core",u[u.Sink=1]="Sink",u[u.Transport=2]="Transport",(p=e.DnmInterval||(e.DnmInterval={}))[p.Hourly=1]="Hourly",p[p.Daily=2]="Daily",(f=e.AllowedPartA||(e.AllowedPartA={}))[f.ReleaseAudienceGroup=1]="ReleaseAudienceGroup",f[f.WacRing=2]="WacRing",f[f.AppName=3]="AppName",f[f.AppPlatform=4]="AppPlatform",f[f.AppVersion=5]="AppVersion",(d=e.EventType||(e.EventType={}))[d.SendTelemetryEvent=1]="SendTelemetryEvent",d[d.CustomerContent=2]="CustomerContent",d[d.DirectNumericEvent=3]="DirectNumericEvent"}(oteljs=oteljs||{}),function(n){n.getEffectiveEventFlags=function(e){var t={costPriority:1,samplingPolicy:1,persistencePriority:1,dataCategories:0,diagnosticLevel:100};return e.eventFlags&&e.eventFlags.dataCategories||n.logNotification(0,0,function(){return"DataCategories"}),e.eventFlags&&(e.eventFlags.costPriority&&(t.costPriority=e.eventFlags.costPriority),e.eventFlags.samplingPolicy&&(t.samplingPolicy=e.eventFlags.samplingPolicy),e.eventFlags.persistencePriority&&(t.persistencePriority=e.eventFlags.persistencePriority),e.eventFlags.dataCategories&&(t.dataCategories=e.eventFlags.dataCategories),e.eventFlags.diagnosticLevel&&(t.diagnosticLevel=e.eventFlags.diagnosticLevel)),t}}(oteljs=oteljs||{}),function(e){var n,r=(n=[],{fireEvent:function(t){n.forEach(function(e){return e(t)})},addListener:function(e){e&&n.push(e)}});function i(e,t,n){r.fireEvent({level:e,category:t,message:n})}e.onNotification=function(){return r},e.logNotification=i,e.logError=function(e,t,n){i(0,e,function(){var e=n instanceof Error?n.message:"";return"".concat(t,": ").concat(e)})}}(oteljs=oteljs||{}),function(a){var e,t;function i(e){var t={eventName:e.eventName,eventFlags:e.eventFlags||{},telemetryProperties:e.telemetryProperties?__assign({},e.telemetryProperties):{},dataFields:e.dataFields?e.dataFields.slice():[],timestamp:e.timestamp||(new Date).getTime()};return e.eventContract&&(t.eventContract={name:e.eventContract.name,dataFields:e.eventContract.dataFields.slice()}),t}(t=e=e||{})[t.TelemetryData=0]="TelemetryData",t[t.AnonymousData=1]="AnonymousData",t[t.CustomerContent=2]="CustomerContent",a.SuppressNexus=-1,a.cloneEvent=i;var n=(r.prototype.addEventContentType=function(e,t){e.push(a.makeInt64DataField("EventContent.Type",t))},r.prototype.sendTelemetryEvent=function(e){var t=i(e),n=t.telemetryProperties;n.nexusTenantToken=a.SuppressNexus;var r=n.ariaTenantToken;r||a.fillTenantTokens(t.eventName,n)||r?this.sendTelemetryEventInternal(t,1):a.logNotification(0,0,function(){return"No tenant token: "+e.eventName})},r.prototype.sendNonStandardEvent=function(e,t){var n=i(e);this.sendTelemetryEventInternal(n,t)},r.prototype.sendCustomerContent=function(e){var t=i(e),n=t.telemetryProperties,r=n.customerContentVersion;return(!r||2<r)&&(n.customerContentVersion=2),n.ariaTenantToken=void 0,n.nexusTenantToken=void 0,n.dnmToken=void 0,this.addEventContentType(t.dataFields,2),this.sendTelemetryEventInternal(t,2)},r.prototype.sendDirectNumericEvent=function(e){var t=i(e),n=t.telemetryProperties;n.dnmToken||a.fillTenantTokens(t.eventName,n)||n.dnmToken?(this.addEventContentType(t.dataFields,1),this.sendTelemetryEventInternal(t,3)):a.logNotification(0,0,function(){return"No dnm token: "+t.eventName})},r.prototype.sendTelemetryEventInternal=function(t,n){if(2===n||!t.telemetryProperties.customerContentVersion&&!t.telemetryProperties.customerContentType){try{if(0===this.telemetrySinks.length)return void(this.config.enableQueue&&this.eventQueue.length<1e3?this.eventQueue.push([t,n]):a.logNotification(1,0,function(){return"No telemetry sinks are attached."}));this.processTelemetryEvent(t,n)}catch(e){return void a.logError(0,"SendTelemetryEvent",e)}this.telemetrySinks.forEach(function(e){try{3===n||2===n?e.sendNonStandardEvent&&e.sendNonStandardEvent(t,n):e.sendTelemetryEvent(t)}catch(e){}})}else a.logNotification(0,0,function(){return"Customer content"})},r.prototype.processTelemetryEvent=function(e,t){var n,r,i;if(e.dataFields&&(null!==(i=e.dataFields)&&void 0!==i&&i.unshift(a.makeStringDataField("OTelJS.Version",a.oteljsVersion)),3!==t&&this.persistentDataFields&&(n=e.dataFields).unshift.apply(n,this.persistentDataFields)),0<this.partAFields.length){var o=e.eventContract||{name:"",dataFields:[]};(r=o.dataFields).push.apply(r,this.partAFields),e.eventContract=o}this.config.disableValidation||a.validateTelemetryEvent(e)},r.prototype.addSink=function(e){this.telemetrySinks.push(e),this.flushQueue()},r.prototype.flushQueue=function(){var e=this.eventQueue;if(this.eventQueue=[],0<this.telemetrySinks.length)for(var t=0,n=e;t<n.length;t++){var r=n[t],i=r[0],o=r[1];this.sendTelemetryEventInternal(i,o)}},r.prototype.setTenantToken=function(e,t,n){a.setTenantTokens(e,{ariaTenantToken:t,nexusTenantToken:n})},r.prototype.setDNMToken=function(e,t){a.setTenantTokens(e,{dnmToken:t})},r.prototype.cloneEvent=function(e){return i(e)},r.prototype.getConfig=function(){return this.config},r);function r(e,t,n){var r,i,o;this.telemetrySinks=[],this.persistentDataFields=[],this.partAFields=[],this.eventQueue=[],this.config=n||{},e&&(this.telemetrySinks=e.telemetrySinks,(r=this.persistentDataFields).push.apply(r,e.persistentDataFields),this.config=__assign(__assign({},e.getConfig()),this.config),(i=this.partAFields).push.apply(i,e.partAFields)),t&&(o=this.persistentDataFields).push.apply(o,t)}a.SimpleTelemetryLogger=n}(oteljs=oteljs||{}),function(e){var t=9007199254740991,n=-t,r=98,i=/^Office(\.[A-Z][a-zA-Z0-9]*){2,}$/,o=/^[a-zA-Z0-9_\.]{1,95}$/;function a(e){return o.test(e)}function s(e){e&&e.forEach(function(e){if("string"!=typeof e.name||!a(e.name))throw new Error("Invalid dataField name");2===e.dataType&&c(e.value)})}function c(e){if("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e<n||t<e)throw new Error("Invalid integer ".concat(JSON.stringify(e)))}e.validateTelemetryEvent=function(e){if(!function(e){if(!e||e.length>r)return;return i.test(e)}(e.eventName))throw new Error("Invalid eventName");var t=e.eventContract;if(t){if(t.name&&!a(t.name))throw new Error("Invalid eventContract");s(t.dataFields)}s(e.dataFields)},e.validateInt=c}(oteljs=oteljs||{}),function(n){var o={};n.setTenantTokens=function(e,t){"Office."===e.substring(0,7)&&"."!==e[e.length-1]?o[e]?(t.ariaTenantToken&&(o[e].ariaTenantToken=t.ariaTenantToken),t.dnmToken&&(o[e].dnmToken=t.dnmToken)):o[e]=t:n.logNotification(0,0,function(){return"Namespace: ".concat(e)})},n.fillTenantTokens=function(e,t){for(var n=e.length;0<n;){var r=e.substr(0,n);if(o[r]){var i=o[r];return t.ariaTenantToken=i.ariaTenantToken,t.dnmToken=i.dnmToken,!0}n=e.lastIndexOf(".",n-1)}return!1},n.clear=function(){o={}}}(oteljs=oteljs||{}),(oteljs||(oteljs={})).oteljsVersion="4.18.0",function(n){var e="AppTelemetry is disabled for this platform.",r="AgaveSink has no available sink",t=(i.createInstance=function(e){void 0===e&&(e={});var t=new i(e);if(t._sink)return t},i.prototype.initialize=function(){if(!this.isTelemetryEnabled())return this.failToInitialize(e);if(n.RichApiSink.isSupportedByDeclaration())this.connectRichApiSink();else if(n.OutlookSink.isSupported())this.connectSink("OutlookSink",new n.OutlookSink);else{if(!n.TelemetryContext.isWacAgave()||!n.SdxWacSink.isSupported())return this.failToInitialize();this.connectSink("SdxWacSink",new n.SdxWacSink)}},i.prototype.failToInitialize=function(e){this._sink=void 0;var t=e||r;n.logNotification(0,1,function(){return t})},i.prototype.sendTelemetryEvent=function(e){if(this._sink)try{this._sink.sendTelemetryEvent(e)}catch(e){n.logError(1,"AgaveSink",e)}else n.logNotification(0,1,function(){return r})},i.prototype.sendCustomerContent=function(e){if(this._sink&&this._sink.sendCustomerContent)try{this._sink.sendCustomerContent(e)}catch(e){n.logError(1,"AgaveSink",e)}else n.logNotification(0,1,function(){return r})},i.prototype.connectSink=function(e,t){this._sink=t,n.logNotification(2,1,function(){return"AgaveSink is using "+e})},i.prototype.connectRichApiSink=function(){this.connectSink("RichApiSink",new n.RichApiSink)},i.prototype.isTelemetryEnabled=function(){return!(void 0===OSF||void 0===OSF.AppTelemetry||"boolean"!=typeof OSF.AppTelemetry.enableTelemetry||!OSF.AppTelemetry.enableTelemetry)||(n.logNotification(1,0,function(){return e}),!1)},i);function i(e){n.TelemetryContext.setTelemetryContext(e),this.initialize()}n.AgaveSink=t}(oteljs=oteljs||{}),function(t){function n(e){return Office.context.requirements.isSetSupported("OutlookTelemetry",e)}var e=(r.isSupported=function(){try{return n()}catch(e){return!1}},r.prototype.sendTelemetryEvent=function(e){this._supportsAllEvents||e.eventName.match(/^Office\.Extensibility\.OfficeJs\.[a-zA-Z]*$/)?(this.addAdditionalDataFields(e),Office.context.mailbox.logTelemetry(JSON.stringify(e))):t.logNotification(2,1,function(){return"This version of Outlook only accepts OfficeJS telemetry events"})},r.prototype.sendCustomerContent=function(e){n("1.2")&&(this.addAdditionalDataFields(e),Office.context.mailbox.logCustomerContentTelemetry(JSON.stringify(e)))},r.prototype.addAdditionalDataFields=function(e){var t;e.dataFields=e.dataFields||[],(t=e.dataFields).push.apply(t,this._contextDataFields)},r);function r(){this._supportsAllEvents=!1,this._contextDataFields=[],this._supportsAllEvents=n("1.1");var e=t.TelemetryContext.getAppPlatform();"iOS"!==e&&"Android"!==e||(this._contextDataFields=t.TelemetryContext.getDataFieldsFromContext())}t.OutlookSink=e}(oteljs=oteljs||{}),function(a){var e=(t.isSupportedByDeclaration=function(){return t.isSupportedVersion("1.2")},t.isSupportedVersion=function(e){return Office.context.requirements.isSetSupported("Telemetry",e)},t.prototype.sendCustomerContent=function(e){t.isSupportedVersion("1.3")&&(this._customerContentQueue.push(e),this.processWorkBacklog())},t.prototype.sendTelemetryEvent=function(e){this._telemetryQueue.push(e),this.processWorkBacklog()},t.prototype.processWorkBacklog=function(){var t=this;this._requestIsPending||(this._requestIsPending=!0,this.processTelemetryEvents().then(function(){t.waitAndProcessMore()}).catch(function(e){a.logError(1,"RichApiSink Error",e),t.waitAndProcessMore()}))},t.prototype.waitAndProcessMore=function(){var e=this;this.pause(1e3).then(function(){e._requestIsPending=!1,0<e._telemetryQueue.length&&setTimeout(function(){return e.processWorkBacklog()},0)}).catch(function(){e._requestIsPending=!1})},t.prototype.processTelemetryEvents=function(){var i=this,e=this._telemetryQueue;this._telemetryQueue=[];var t=this._customerContentQueue;function n(e,t){if(e.telemetryProperties){var n=[];i.addDataFields(n,e.dataFields);var r=e.eventContract?e.eventContract.name:"";e.eventContract&&i.addDataFields(n,e.eventContract.dataFields),t(e.telemetryProperties,e.eventName,r,a.getEffectiveEventFlags(e),n)}}this._customerContentQueue=[];var o=new OfficeCore.RequestContext;return e.forEach(function(e){n(e,function(e,t,n,r,i){o.telemetry.sendTelemetryEvent(e,t,n,r,i)})}),t.forEach(function(e){n(e,function(e,t,n,r,i){o.telemetry.sendCustomerContent(e,t,n,r,i)})}),o.sync().catch(function(e){a.logError(1,"RichApi telemetry failed.",e)})},t.prototype.addDataFields=function(t,e){e&&e.forEach(function(e){t.push({name:e.name,value:e.value,classification:e.classification?e.classification:4,type:4===e.dataType?0:e.dataType})})},t.prototype.pause=function(t){return new Office.Promise(function(e){return setTimeout(e,t)})},t);function t(){var e=this;this._requestIsPending=!0,this._telemetryQueue=[],this._customerContentQueue=[],this.pause(1e3).then(function(){return e._requestIsPending=!1,e.processTelemetryEvents()}).catch()}a.RichApiSink=e}(oteljs=oteljs||{}),function(r){var e,t,n;e=r.Contracts||(r.Contracts={}),t=e.Office||(e.Office={}),((n=t.System||(t.System={})).SDX||(n.SDX={})).getFields=function(e,t){var n=[];return void 0!==t.id&&n.push(r.makeStringDataField("".concat(e,".Id"),t.id)),void 0!==t.version&&n.push(r.makeStringDataField("".concat(e,".Version"),t.version)),void 0!==t.instanceId&&n.push(r.makeStringDataField("".concat(e,".InstanceId"),t.instanceId)),void 0!==t.name&&n.push(r.makeStringDataField("".concat(e,".Name"),t.name)),void 0!==t.marketplaceType&&n.push(r.makeStringDataField("".concat(e,".MarketplaceType"),t.marketplaceType)),void 0!==t.sessionId&&n.push(r.makeStringDataField("".concat(e,".SessionId"),t.sessionId)),void 0!==t.browserToken&&n.push(r.makeStringDataField("".concat(e,".BrowserToken"),t.browserToken)),void 0!==t.osfRuntimeVersion&&n.push(r.makeStringDataField("".concat(e,".OsfRuntimeVersion"),t.osfRuntimeVersion)),void 0!==t.officeJsVersion&&n.push(r.makeStringDataField("".concat(e,".OfficeJsVersion"),t.officeJsVersion)),void 0!==t.hostJsVersion&&n.push(r.makeStringDataField("".concat(e,".HostJsVersion"),t.hostJsVersion)),void 0!==t.assetId&&n.push(r.makeStringDataField("".concat(e,".AssetId"),t.assetId)),void 0!==t.providerName&&n.push(r.makeStringDataField("".concat(e,".ProviderName"),t.providerName)),void 0!==t.type&&n.push(r.makeStringDataField("".concat(e,".Type"),t.type)),n}}(oteljs=oteljs||{}),function(i){var e=(t.isSupported=function(){return Office.context&&Office.context.platform?Office.context.platform===Office.PlatformType.OfficeOnline:OfficeExt&&OfficeExt.HostName&&OfficeExt.HostName.Host&&OfficeExt.HostName.Host.getInstance().getPlatform()===Office.PlatformType.OfficeOnline},t.prototype.sendTelemetryEvent=function(e,t){try{if(e.dataFields&&0<e.dataFields.filter(function(e){var t=e.classification;return t&&4!==t&&1!==t}).length)return;var n=OSF._OfficeAppFactory.getId(),r=OSF.AgaveHostAction.SendTelemetryEvent;OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n,r,e])}catch(e){i.logError(1,"AgaveWacSink",e)}},t.prototype.sendCustomerContent=function(e,t){try{if(e.dataFields&&0<e.dataFields.filter(function(e){var t=e.classification;return t&&4!==t&&1!==t&&32!==t}).length)return;var n=OSF._OfficeAppFactory.getId(),r=OSF.AgaveHostAction.SendCustomerContent;OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n,r,e])}catch(e){i.logError(1,"AgaveWacSink",e)}},t);function t(){}i.SdxWacSink=e}(oteljs=oteljs||{}),function(e){var t=(n.setTelemetryContext=function(e){this._steContext=e},n.getDataFieldsFromContext=function(){var t=this,n=[];return Object.keys(this._steContext).forEach(function(e){n.push({name:e,value:t._steContext[e],dataType:0})}),n},n.getAppName=function(){return this._steContext["App.Name"]},n.getAppPlatform=function(){return this._steContext["App.Platform"]},n.getAppVersion=function(){return this._steContext["App.Version"]},n.isWacAgave=function(){return"Web"===this._steContext["App.Platform"]},n._steContext={},n);function n(){}e.TelemetryContext=t}(oteljs=oteljs||{});var OfficeFirstPartyDialog,OfficeFirstPartyAuth,OfficeCore,OfficeFirstParty;__extends=this&&this.__extends||function(){var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(o,a,s,c){return new(s=s||Promise)(function(e,t){function n(e){try{i(c.next(e))}catch(e){t(e)}}function r(e){try{i(c.throw(e))}catch(e){t(e)}}function i(t){t.done?e(t.value):new s(function(e){e(t.value)}).then(n,r)}i((c=c.apply(o,a||[])).next())})},__generator=this&&this.__generator||function(n,r){var i,o,a,e,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return e={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,o&&(a=2&t[0]?o.return:t[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,t[1])).done)return a;switch(o=0,a&&(t=[2&t[0],a.value]),t[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,o=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=r.call(n,s)}catch(e){t=[6,e],o=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}},__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};!function(t){OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject;var n,r=OfficeExtension.BatchApiHelper.createTopLevelServiceObject,i=(OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod),o=(OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined),e=(OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson),a=OfficeExtension.Utility.fixObjectPathIfNecessary,s=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult),c=(OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags),l=(n=OfficeExtension.ClientObject,__extends(u,n),Object.defineProperty(u.prototype,"_className",{get:function(){return"BiShim"},enumerable:!0,configurable:!0}),u.prototype.initialize=function(e){i(this,"Initialize",0,[e],c(2,"SharedApiUndo","1.5"),0)},u.prototype.getData=function(){return i(this,"getData",1,[],4,0)},u.prototype.setVisualObjects=function(e){i(this,"setVisualObjects",0,[e],2,0)},u.prototype.setVisualObjectsToPersist=function(e){i(this,"setVisualObjectsToPersist",0,[e],2,0)},u.prototype._handleResult=function(e){n.prototype._handleResult.call(this,e),o(e)||a(this,e)},u.prototype._handleRetrieveResult=function(e,t){n.prototype._handleRetrieveResult.call(this,e,t),s(this,e,t)},u.newObject=function(e){return r(t.BiShim,e,"Microsoft.AgaveVisual.BiShim",!1,4)},u.prototype.toJSON=function(){return e(this,{},{})},u);function u(){return null!==n&&n.apply(this,arguments)||this}t.BiShim=l,(t.AgaveVisualErrorCodes||(t.AgaveVisualErrorCodes={})).generalException="GeneralException"}(OfficeCore=OfficeCore||{}),function(i){OfficeExtension.BatchApiHelper.createPropertyObject;var n,o=OfficeExtension.BatchApiHelper.createMethodObject,t=(OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject,OfficeExtension.BatchApiHelper.createTopLevelServiceObject),r=(OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod),a=OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,s=(OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined),c=OfficeExtension.Utility.isUndefined,e=OfficeExtension.Utility.throwIfNotLoaded,l=(OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load),u=OfficeExtension.Utility.retrieve,p=OfficeExtension.Utility.toJson,f=OfficeExtension.Utility.fixObjectPathIfNecessary,d=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult),h=(n=OfficeExtension.ClientObject,__extends(g,n),Object.defineProperty(g.prototype,"_className",{get:function(){return"FlightingService"},enumerable:!0,configurable:!0}),g.prototype.getClientSessionId=function(){return r(this,"GetClientSessionId",1,[],4,0)},g.prototype.getDeferredFlights=function(){return r(this,"GetDeferredFlights",1,[],4,0)},g.prototype.getFeature=function(e,t,n,r){return o(i.ABType,this,"GetFeature",1,[e,t,n,r],!1,!1,null,4)},g.prototype.getFeatureGate=function(e,t){return o(i.ABType,this,"GetFeatureGate",1,[e,t],!1,!1,null,4)},g.prototype.resetOverride=function(e){r(this,"ResetOverride",0,[e],0,0)},g.prototype.setOverride=function(e,t,n){r(this,"SetOverride",0,[e,t,n],0,0)},g.prototype._handleResult=function(e){n.prototype._handleResult.call(this,e),s(e)||f(this,e)},g.prototype._handleRetrieveResult=function(e,t){n.prototype._handleRetrieveResult.call(this,e,t),d(this,e,t)},g.newObject=function(e){return t(i.FlightingService,e,"Microsoft.Experiment.FlightingService",!1,4)},g.prototype.toJSON=function(){return p(this,{},{})},g);function g(){return null!==n&&n.apply(this,arguments)||this}i.FlightingService=h;var m,y,v=(m=OfficeExtension.ClientObject,__extends(b,m),Object.defineProperty(b.prototype,"_className",{get:function(){return"ABType"},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"_scalarPropertyNames",{get:function(){return["value"]},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"value",{get:function(){return e("value",this._V,"ABType",this._isNull),this._V},enumerable:!0,configurable:!0}),b.prototype._handleResult=function(e){if(m.prototype._handleResult.call(this,e),!s(e)){var t=e;f(this,t),c(t.Value)||(this._V=t.Value)}},b.prototype.load=function(e){return l(this,e)},b.prototype.retrieve=function(e){return u(this,e)},b.prototype._handleRetrieveResult=function(e,t){m.prototype._handleRetrieveResult.call(this,e,t),d(this,e,t)},b.prototype.toJSON=function(){return p(this,{value:this._V},{})},b.prototype.ensureUnchanged=function(e){a(this,e)},b);function b(){return null!==m&&m.apply(this,arguments)||this}i.ABType=v,(y=i.FeatureType||(i.FeatureType={})).boolean="Boolean",y.integer="Integer",y.string="String",(i.ExperimentErrorCodes||(i.ExperimentErrorCodes={})).generalException="GeneralException"}(OfficeCore=OfficeCore||{}),function(r){var e,t,n=(i.prototype.close=function(){return this._dialogService.close(),this._dialogService.context.sync()},i.prototype.messageChild=function(e,t){DialogApiManager&&DialogApiManager.messageChildRichApiBridge&&DialogApiManager.messageChildRichApiBridge(e,t)},i);function i(e){this._dialogService=e}r.Dialog=n,r.displayWebDialog=function(n,h){return void 0===h&&(h={}),new OfficeExtension.CoreUtility.Promise(function(l,u){if(h.width&&h.height&&(!e(h.width)||!e(h.height)))throw new OfficeExtension.Error({code:"InvalidArgument",message:'Dimensions must be "number%" or number.'});var p=new OfficeExtension.ClientRequestContext,t=OfficeCore.FirstPartyDialogService.newObject(p),f=new r.Dialog(t),d=t.onDialogMessage.add(function(e){OfficeExtension.Utility.log("dialogMessageHandler:"+JSON.stringify(e));var t,n,r,i=JSON.parse(e.message),o=i.errorCode?new OfficeExtension.Error((t=i.errorCode,(n={})[12002]={code:"InvalidUrl",message:"Cannot load URL, no such page or bad URL syntax."},n[12003]={code:"InvalidUrl",message:"HTTPS is required."},n[12004]={code:"Untrusted",message:"Domain is not trusted."},n[12005]={code:"InvalidUrl",message:"HTTPS is required."},n[12007]={code:"FailedToOpen",message:"Another dialog is already opened."},(r=n)[t]?r[t]:{code:"Unknown",message:"An unknown error has occured with code: "+t})):null,a=i.type,s=i.origin,c=i.message;switch(a){case 17:o?u(o):l(f);break;case 12:h.onMessage&&h.onMessage(c,f,s);break;case 10:default:12006===i.errorCode?(d&&(d.remove(),p.sync()),h.onClose&&h.onClose()):h.onRuntimeError&&(h.onRuntimeError(o,f),u(o))}return OfficeExtension.CoreUtility.Promise.resolve()});return p.sync().then(function(){var e={width:h.width?parseInt(h.width):50,height:h.height?parseInt(h.height):50,displayInIFrame:h.displayInIFrame,dialogTitle:h.dialogTitle,escKeyCloseDialog:void 0===h.escKeyCloseDialog||h.escKeyCloseDialog};return t.displayDialog(n,e),p.sync()}).catch(function(e){u(e)})});function e(e){return/^(\-|\+)?([0-9]+)%?$/.test(e)}},(t=e=e||{})[t.dialogMessageReceived=0]="dialogMessageReceived",t[t.dialogEventReceived=1]="dialogEventReceived"}(OfficeFirstPartyDialog=OfficeFirstPartyDialog||{}),function(n){n.OfficeOnlineDomainList=["*.dod.online.office365.us","*.gov.online.office365.us","*.officeapps-df.live.com","*.officeapps.live.com","*.online.office.de","*.partner.officewebapps.cn"],n.isHostOriginTrusted=function(){if(void 0!==window.external&&void 0!==window.external.GetContext)return!0;var e=OSF.getClientEndPoint()._targetUrl,t=e.split("/")[2].split(":")[0].split("?")[0];return 0!=e.indexOf("https:")||n.OfficeOnlineDomainList.forEach(function(e){if(0==e.indexOf("*.")&&(e=e.substring(2)),t.indexOf(e)==t.length-e.length)return!0}),!1}}(OfficeCore=OfficeCore||{}),function(n){var e=(Object.defineProperty(t.prototype,"roamingSettings",{get:function(){return this.m_roamingSettings||(this.m_roamingSettings=n.AuthenticationService.newObject(this.context).roamingSettings),this.m_roamingSettings},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tap",{get:function(){return this.m_tap||(this.m_tap=n.Tap.newObject(this.context)),this.m_tap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"skill",{get:function(){return this.m_skill||(this.m_skill=n.Skill.newObject(this.context)),this.m_skill},enumerable:!0,configurable:!0}),t);function t(e){this.context=e}n.FirstPartyApis=e;var r,i=(r=OfficeExtension.ClientRequestContext,__extends(o,r),Object.defineProperty(o.prototype,"firstParty",{get:function(){return this.m_firstPartyApis||(this.m_firstPartyApis=new e(this)),this.m_firstPartyApis},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"flighting",{get:function(){return this.flightingService},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"telemetry",{get:function(){return this.m_telemetry||(this.m_telemetry=n.TelemetryService.newObject(this)),this.m_telemetry},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"ribbon",{get:function(){return this.m_ribbon||(this.m_ribbon=n.DynamicRibbon.newObject(this)),this.m_ribbon},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"bi",{get:function(){return this.m_biShim||(this.m_biShim=n.BiShim.newObject(this)),this.m_biShim},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"flightingService",{get:function(){return this.m_flightingService||(this.m_flightingService=n.FlightingService.newObject(this)),this.m_flightingService},enumerable:!0,configurable:!0}),o);function o(e){return r.call(this,e)||this}n.RequestContext=i,n.run=function(e,t){return OfficeExtension.ClientRequestContext._runBatch("OfficeCore.run",arguments,function(e){return new n.RequestContext(e)})}}(OfficeCore=OfficeCore||{}),function(e){var t;function s(){var e=new OfficeCore.RequestContext;return"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(e._customData="WacPartition"),e}(t=e.license||(e.license={})).isFeatureEnabled=function(i,o){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=s(),n=OfficeCore.License.newObject(t),r=n.isFeatureEnabled(i,o),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.getFeatureTier=function(i,o){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=s(),n=OfficeCore.License.newObject(t),r=n.getFeatureTier(i,o),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.isFreemiumUpsellEnabled=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=s(),n=OfficeCore.License.newObject(t),r=n.isFreemiumUpsellEnabled(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.launchUpsellExperience=function(n,r){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=s(),OfficeCore.License.newObject(t).launchUpsellExperience(n,r),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.onFeatureStateChanged=function(o,a){return __awaiter(this,void 0,void 0,function(){var t,n,r,i;return __generator(this,function(e){switch(e.label){case 0:return t=s(),n=OfficeCore.License.newObject(t),(r=n.getLicenseFeature(o)).onStateChanged.add(a),i=function(){return r.onStateChanged.remove(a),null},[4,t.sync()];case 1:return e.sent(),[2,i]}})})},t.getMsaDeviceTicket=function(i,o,a){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=s(),n=OfficeCore.License.newObject(t),r=n.getMsaDeviceTicket(i,o,a),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})}}(Office=Office||{}),function(e){OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject,OfficeExtension.BatchApiHelper.createTopLevelServiceObject,OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod,OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined,OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson,OfficeExtension.Utility.fixObjectPathIfNecessary,OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult,OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags;(e._CC||(e._CC={})).Skill_HostSkillEvent_EventArgsTransform=function(e,t){return{type:t.type,data:t.data}},(e.SkillErrorCodes||(e.SkillErrorCodes={})).generalException="GeneralException";new OfficeExtension.LibraryBuilder({metadata:{version:"1.0.0",name:"OfficeCore",defaultApiSetName:"OfficeSharedApi",hostName:"Office",apiSets:[["1.1","SharedApiUndo"]],strings:["Skill","registerHostSkillEvent","unregisterHostSkillEvent"],enumTypes:[],clientObjectTypes:[[1,0,0,0,[["executeAction",3,2,0,5],["notifyPaneEvent",2,2,0,5],[2,0,0,0,3,0,1],[3,0,0,0,3,0,1],["testFireEvent",0,0,0,3,0,1]],0,0,0,[["HostSkillEvent",2,0,"65538","",2,3]],"Microsoft.SkillApi.Skill",4]]},targetNamespaceObject:e})}(OfficeCore=OfficeCore||{}),function(t){OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject;var n,e,r,i=OfficeExtension.BatchApiHelper.createTopLevelServiceObject,a=(OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod),o=(OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined),s=(OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported),c=(OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson),l=OfficeExtension.Utility.fixObjectPathIfNecessary,u=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult),p=(OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags,n=OfficeExtension.ClientObject,__extends(f,n),Object.defineProperty(f.prototype,"_className",{get:function(){return"TelemetryService"},enumerable:!0,configurable:!0}),f.prototype.sendNonStandardEvent=function(e,t,n,r,i,o){s("TelemetryService.sendNonStandardEvent","Telemetry","1.4","OfficeCore"),a(this,"SendNonStandardEvent",1,[e,t,n,r,i,o],4,0)},f.prototype.sendTelemetryEvent=function(e,t,n,r,i){a(this,"SendTelemetryEvent",1,[e,t,n,r,i],4,0)},f.prototype._handleResult=function(e){n.prototype._handleResult.call(this,e),o(e)||l(this,e)},f.prototype._handleRetrieveResult=function(e,t){n.prototype._handleRetrieveResult.call(this,e,t),u(this,e,t)},f.newObject=function(e){return i(t.TelemetryService,e,"Microsoft.Telemetry.TelemetryService",!1,4)},f.prototype.toJSON=function(){return c(this,{},{})},f);function f(){return null!==n&&n.apply(this,arguments)||this}t.TelemetryService=p,(e=t.DataFieldType||(t.DataFieldType={})).unset="Unset",e.string="String",e.boolean="Boolean",e.int64="Int64",e.double="Double",(r=t.EventType||(t.EventType={})).sendTelemetryEvent="SendTelemetryEvent",r.customerContent="CustomerContent",r.directNumericEvent="DirectNumericEvent",(t.TelemetryErrorCodes||(t.TelemetryErrorCodes={})).generalException="GeneralException"}(OfficeCore=OfficeCore||{}),function(p){var f="officeWebAuthReplyUrls",b=!1,i=null;function e(n){function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i=n.apply(void 0,e)}var i=null,o=null;return{immediateCall:r,delayCall:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];o=function(){return r.apply(void 0,e)}},waitForPromise:function(){return o&&(o(),o=null),i||Promise.resolve()}}}function _(r){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return(t=!1,r&&p.supportsTeamsTokenFlow)?(t=!0,[3,3]):[3,1];case 1:return[4,o()];case 2:(n=e.sent()).supportsAuthToken?t=!0:r&&(t=!n.hostPageSupportsAuth),e.label=3;case 3:return[2,t]}})})}function o(){return Office&&Office.context&&Office.context.webAuth?i?Promise.resolve(i):new Promise(function(n,r){Office.context.webAuth.getAuthContextAsync(function(e){if("succeeded"===e.status){var t=e.value;if(!t||t.isAnonymous)return void r({code:"CannotGetAuthContext",message:t?t.Error:void 0,loggableErrorMessage:"Anonymous user"});if(!t.appId)return void r({code:"CannotGetAuthContext",message:"App ID is missing from getAuthContextAsync. Please verify the WebApplicationInfo node in app manifest."});n(i=t)}else r({code:"CannotGetAuthContext",message:e.status,loggableErrorMessage:String(e.error.code)})})}):Promise.reject({code:"GetAuthContextAsyncMissing",message:"Office:["+!Office+"],Office.context:["+!Office.context+"],Office.context.webAuth:["+!Office.context.webAuth+"]"})}p.authFlow="authcode",p.autoPopup=!1,p.upnCheck=!0,p.timeout=void 0,p.clientCapabilities=[],p.msal="https://alcdn.msauth.net/browser-1p/2.28.1/js/msal-browser-1p.min.js",p.debugging=!1,p.useMsal3=void 0,p.useMsal5=void 0,p.delay=0,p.delayMsal=0,p.supportsOauthManager=!1,p.supportsTeamsTokenFlow=!0,p.supportsBrowserAuth=!0,p.supportsPairWiseBroker=!1;var O=e(function(l,u){return __awaiter(this,void 0,void 0,function(){var c;return __generator(this,function(e){switch(e.label){case 0:return p.supportsBrowserAuth?[4,o()]:[2,Promise.reject({code:"PackageNotLoaded"})];case 1:return c=e.sent(),[2,new Promise(function(t,n){try{var e="msa"===c.authorityType.toLowerCase(),r=!0===p.supportsPairWiseBroker?OSF.pairwiseBrokerConfig:void 0,i=null!=r&&!0===r.enabled,o=null!=r?r.trustedBrokerDomain:void 0;if(OSF.WebAuth.config={authFlow:p.authFlow,authVersion:p.authVersion?p.authVersion:null,msal:p.msal,delayWebAuth:p.delay,delayMsal:p.delayMsal,debugging:p.debugging,useMsal3:p.useMsal3,useMsal5:p.useMsal5,authority:p.authorityOverride?p.authorityOverride:c.authority,idp:c.authorityType.toLowerCase(),appIds:[e&&c.msaAppId?c.msaAppId:c.appId],redirectUri:l||null,upn:c.upn,puid:c.userId,prefetch:u,telemetryInstance:"otel",autoPopup:p.autoPopup,enableUpnCheck:p.upnCheck,enableConsoleLogging:p.debugging,tenantId:c.tenantId,timeout:p.timeout,clientCapabilities:p.clientCapabilities,usePairwiseBroker:i,trustedBrokerDomain:o},OSF.WebAuth.load().then(function(e){d(e,b=!0),t()}).catch(function(e){n({code:"PackageNotLoaded",message:e instanceof Event?e.type:e,telemetryResult:e})}),"implicit"===p.authFlow){var a=l||window.location.href.split("?")[0],s=sessionStorage.getItem(f);s||""===s?s=a:s+=", "+a,s&&sessionStorage.setItem(f,s)}}catch(e){OSF.WebAuth.config=null,OSF.WebAuth.load().then(function(){t()}).catch(function(){n({code:"FailedToLoad",message:e})})}})]}})})});var n=e(function(r,i){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:if(!OSF.WebAuth||"web"!=OSF._OfficeAppFactory.getHostInfo().hostPlatform)return[3,6];e.label=1;case 1:return e.trys.push([1,5,,6]),O.delayCall(r,i),[4,_(p.supportsOauthManager)];case 2:return e.sent()?[3,4]:[4,O.waitForPromise()];case 3:e.sent(),e.label=4;case 4:return[3,6];case 5:throw t=e.sent(),d((n=t).result,!1,n),delete n.result,delete n.loggableErrorMessage,n;case 6:return[2]}})})});function t(e,t){return n.immediateCall(e,t)}function d(o,a,s){void 0!==OTel&&OTel.OTelLogger.onTelemetryLoaded(function(){var e=OSF.WebAuth.config?[oteljs.makeStringDataField("IdentityProvider",OSF.WebAuth.config.idp),oteljs.makeStringDataField("AppId",OSF.WebAuth.config.appIds[0]),oteljs.makeStringDataField("Target",{authFlow:OSF.WebAuth.config.authFlow,authVersion:OSF.WebAuth.config.authVersion,msal:OSF.WebAuth.config.msal,autoPopup:OSF.WebAuth.config.autoPopup,enableUpnCheck:OSF.WebAuth.config.upnCheck}),oteljs.makeBooleanDataField("UseMsal3",!0===OSF.WebAuth.config.useMsal3),oteljs.makeBooleanDataField("UseMsal5",!0===OSF.WebAuth.config.useMsal5),oteljs.makeBooleanDataField("UsePairwiseBroker",!0===OSF.WebAuth.config.usePairwiseBroker)]:[],t=s&&s.loggableErrorMessage?s.loggableErrorMessage:"",n=a?[]:[oteljs.makeStringDataField("ApiErrorCode",s&&s.code?s.code:""),oteljs.makeStringDataField("Error",t||(o instanceof Event?o.type:""))],r=e.concat(n,[oteljs.makeBooleanDataField("Result",a)]);if(o&&!(o instanceof Event)&&o.Telemetry)for(var i in o.Telemetry)if(o.Telemetry[i])switch(i){case"succeeded":r.push(oteljs.makeBooleanDataField(i,o.Telemetry[i]));break;case"loadedApplicationCount":case"timeToLoad":r.push(oteljs.makeInt64DataField(i,o.Telemetry[i]));break;default:r.push(oteljs.makeStringDataField(i,o.Telemetry[i]))}OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.OfficeFirstPartyAuth.Load",dataFields:r,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage}})})}function S(i,o,a,s,c){void 0!==OTel&&OTel.OTelLogger.onTelemetryLoaded(function(){var e=OSF.WebAuth.config?[oteljs.makeStringDataField("IdentityProvider",OSF.WebAuth.config.idp),oteljs.makeStringDataField("AppId",OSF.WebAuth.config.appIds[0]),oteljs.makeStringDataField("Target",{authFlow:OSF.WebAuth.config.authFlow,authVersion:OSF.WebAuth.config.authVersion,msal:OSF.WebAuth.config.msal,autoPopup:OSF.WebAuth.config.autoPopup,enableUpnCheck:OSF.WebAuth.config.upnCheck}),oteljs.makeBooleanDataField("UseMsal5",!0===OSF.WebAuth.config.useMsal5),oteljs.makeBooleanDataField("UsePairwiseBroker",!0===OSF.WebAuth.config.usePairwiseBroker)]:[],t="";i instanceof Event?t=i.type||"":i&&(t=i.ErrorCode||i.code||"");var n=e.concat([oteljs.makeStringDataField("CorrelationId",a),oteljs.makeBooleanDataField("Popup","boolean"==typeof s&&s),oteljs.makeBooleanDataField("Result",o),oteljs.makeStringDataField("Error",t),oteljs.makeBooleanDataField("UseOauthManager",!0===c)]);if(i&&!(i instanceof Event)&&i.Telemetry)for(var r in i.Telemetry)if(i.Telemetry[r])switch(r){case"succeeded":n.push(oteljs.makeBooleanDataField(r,i.Telemetry[r]));break;case"timeToGetToken":n.push(oteljs.makeInt64DataField(r,i.Telemetry[r]));break;default:n.push(oteljs.makeStringDataField(r,i.Telemetry[r]))}OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.OfficeFirstPartyAuth.GetAccessToken",dataFields:n,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage}})})}p.load=t,p.getAccessToken=function(y,v){var e=this;return n.waitForPromise().then(function(){return new Promise(function(g,m){return __awaiter(e,void 0,void 0,function(){var r,i,o,a,s,c,l,u,p,f,d,h;return __generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,12,,13]),"web"!=OSF._OfficeAppFactory.getHostInfo().hostPlatform?[3,8]:[4,_(!!y.appName)];case 1:return e.sent()?[3,3]:[4,O.waitForPromise()];case 2:return e.sent(),OSF.WebAuth&&b?(r=y.correlationId||OSF._OfficeAppFactory.getHostInfo().osfControlAppCorrelationId,OSF.WebAuth.config.appIds[0]&&OSF.WebAuth.getToken(y.resource,null,OSF.WebAuth.config.appIds[0],r,v&&v.popup?v.popup:null,y&&y.authChallenge?y.authChallenge:null).then(function(e){S(e,!0,r,!(!v||!v.popup)&&v.popup),g({accessToken:e.Token,tokenIdenityType:"msa"==OSF.WebAuth.config.idp.toLowerCase()?OfficeCore.IdentityType.microsoftAccount:OfficeCore.IdentityType.organizationAccount})}).catch(function(e){S(e,!1,r,!(!v||!v.popup)&&v.popup),m({code:e.ErrorCode,message:e instanceof Event?e.type:e.ErrorMessage})})):(t=b,n=OSF.WebAuth.loadAttempts,void 0!==OTel&&OTel.OTelLogger.onTelemetryLoaded(function(){var e=[oteljs.makeBooleanDataField("Loaded",t),oteljs.makeInt64DataField("LoadAttempts","number"==typeof n?n:0)];OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.OfficeFirstPartyAuth.UnexpectedAcquire",dataFields:e,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage}})})),[3,7];case 3:i=new OfficeCore.RequestContext,u=OfficeCore.AuthenticationService.newObject(i),i._customData="WacPartition",o=!!y.appName,a=y.correlationId,e.label=4;case 4:return e.trys.push([4,6,,7]),s=u.getAccessToken(y,null),[4,i.sync()];case 5:return e.sent(),o&&S(s.value,!0,a,void 0,!0),g(s.value),[3,7];case 6:throw c=e.sent(),o&&S(c,!1,a,void 0,!0),c;case 7:return[3,11];case 8:return l=new OfficeCore.RequestContext,u=OfficeCore.AuthenticationService.newObject(l),p=u.onTokenReceived.add(function(t){if(!OfficeExtension.CoreUtility.isNullOrUndefined(t))if(p.remove(),l.sync().catch(function(){}),0==t.code)g(t.tokenValue);else if(OfficeExtension.CoreUtility.isNullOrUndefined(t.errorInfo))m({code:t.code});else try{m(JSON.parse(t.errorInfo))}catch(e){m({code:t.code,message:t.errorInfo})}return null}),[4,l.sync()];case 9:return e.sent(),f=u.getAccessToken(y,u._targetId),[4,l.sync()];case 10:if(e.sent(),OfficeExtension.CoreUtility.isNullOrUndefined(f.value))return[2,null];d=f.value.accessToken,OfficeExtension.CoreUtility.isNullOrUndefined(d)||g(f.value),e.label=11;case 11:return[3,13];case 12:return h=e.sent(),m(h),[3,13];case 13:return[2]}var t,n})})})})},p.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})},p.getIdentities=function(){var e=new OfficeCore.RequestContext,t=OfficeCore.AuthenticationService.newObject(e).getIdentities();return e.sync().then(function(){return t.value})},p.onIdentityChanged=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r=this;return __generator(this,function(e){switch(e.label){case 0:return(e.trys.push([0,3,,4]),"web"===OSF._OfficeAppFactory.getHostInfo().hostPlatform)?[3,2]:(t=new OfficeCore.RequestContext,n=OfficeCore.AuthenticationService.newObject(t),n.onIdentityChanged.add(i),[4,t.sync()]);case 1:return e.sent(),[2,function(){return __awaiter(r,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return n.onIdentityChanged.remove(i),[4,t.sync()];case 1:return e.sent(),[2]}})})}];case 2:return[3,4];case 3:return e.sent(),[3,4];case 4:return[2,function(){return Promise.resolve()}]}})})},"undefined"!=typeof window&&window.OSF&&function(){try{if("undefined"==typeof window||!window.sessionStorage)return;var e=sessionStorage.getItem(f);null!==e&&-1!==e.indexOf(window.location.origin+window.location.pathname)&&t()}catch(e){console.error(e)}}()}(OfficeFirstPartyAuth=OfficeFirstPartyAuth||{}),function(e){!function(d){var r,e,p,t;(e=r=d.PopupOptions||(d.PopupOptions={}))[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Force=2]="Force",(t=p=d.AuthErrorCode||(d.AuthErrorCode={}))[t.UnsupportedUserIdentity=13003]="UnsupportedUserIdentity",t[t.UserAborted=13004]="UserAborted",t[t.InteractionRequired=13005]="InteractionRequired",t[t.ClientError=13006]="ClientError",t[t.ServerError=13007]="ServerError",t[t.NotAvailable=13012]="NotAvailable",t[t.PopupAuthFlowNotSupported=13014]="PopupAuthFlowNotSupported",t[t.InternalError=5001]="InternalError",t[t.InvalidApiArguments=5013]="InvalidApiArguments";var f={ACCOUNT_UNAVAILABLE:p.UnsupportedUserIdentity,USER_CANCEL:p.UserAborted,USER_INTERACTION_REQUIRED:p.InteractionRequired,PERSISTENT_ERROR:p.ClientError,NO_NETWORK:p.ServerError,TRANSIENT_ERROR:p.ServerError,NESTED_APP_AUTH_UNAVAILABLE:p.NotAvailable},i={POPUP_WINDOW_ERROR:p.ClientError,USER_CANCELLED:p.UserAborted,POPUP_AUTH_FLOW_NOT_SUPPORTED:p.PopupAuthFlowNotSupported},l={ACCESS_TOKEN:"access_token",XMS_CC:"xms_cc"},u=0,h=!1,n={};function g(e){return n[e]||(n[e]={loaded:!1,usePairwiseBroker:!1}),n[e]}var m=void 0;d.clientCapabilities=[],d.upnCheck=!0,d.timeout=void 0,d.msal="https://alcdn.msauth.net/browser-1p/2.28.1/js/msal-browser-1p.min.js",d.debugging=!1,d.delay=0,d.delayMsal=0,d.useMsal3=void 0;var y=d.useMsal5=void 0,v={},b=function(e){try{var t="string"==typeof e?e:e.data,n=JSON.parse(t);if(n.requestId){var r=n.requestId;if(v.hasOwnProperty(r)){var i=p.InternalError,o=v[r],a=o[0],s=o[1];delete v[r];var c=n.token;if(c&&!0===n.success&&c.access_token&&"number"==typeof c.expires_in)return void a({accessToken:c.access_token,idToken:c.id_token,expiresOn:new Date(Date.now()+1e3*c.expires_in)});var l=n.error;if(l){var u=l.status;f[u]&&(i=f[u])}s({code:i})}}}catch(e){}},_={code:p.NotAvailable};function o(o,a){var s=o.clientId||m;if(!s)return Promise.reject({code:p.InvalidApiArguments});function e(e){function t(e,t){var n=Date.now()-r;!function(t,n,r,i,o){if(0<u&&!r)return;u++,void 0!==OTel&&OTel.OTelLogger.onTelemetryLoaded(function(){var e=[oteljs.makeStringDataField("NestedClientId",t),oteljs.makeStringDataField("CorrelationId",n),oteljs.makeBooleanDataField("Popup",r),oteljs.makeInt64DataField("Duration",i),oteljs.makeInt64DataField("ErrorCode",o?o.code:0),oteljs.makeBooleanDataField("BridgeAvailable",O()),oteljs.makeBooleanDataField("UseMsal5",!0===d.useMsal5),oteljs.makeBooleanDataField("UsePairwiseBroker",!0===g(t).usePairwiseBroker)];OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.NestedAppAuth.GetAccessToken",dataFields:e,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage,diagnosticLevel:oteljs.DiagnosticLevel.NecessaryServiceDataEvent}})})}(s,c,a,n,t)}return e.then(function(e){t(0,null)}).catch(function(e){t(0,e)}),e}var c=o.correlationId||OSF.OUtil.Guid.generateNewGuid(),r=Date.now();if(O())return e(new Promise(function(e,t){var n=OSF.OUtil.Guid.generateNewGuid(),r=o.scopes.join(" "),i={messageType:"NestedAppAuthRequest",method:a?"GetTokenPopup":"GetToken",requestId:n,clientLibrary:"officejs",sendTime:Date.now(),tokenParams:{clientId:s,scope:r,correlationId:c,claims:function(e){if(0===d.clientCapabilities.length)return e;var t={};if(e)try{t=JSON.parse(e)}catch(e){}return t.hasOwnProperty(l.ACCESS_TOKEN)||(t[l.ACCESS_TOKEN]={}),t[l.ACCESS_TOKEN][l.XMS_CC]={values:d.clientCapabilities},JSON.stringify(t)}(o.claims)}};h||(nestedAppAuthBridge.addEventListener("message",b),h=!0),v[n]=[e,t],nestedAppAuthBridge.postMessage(JSON.stringify(i))}));var t=g(s);return t.loadPromise?e(t.loadPromise.then(function(){if(!t.loaded)return Promise.reject(_);var e=o.scopes.join(" ");return e=e.replace(/(\/.default)$/,""),OSF.WebAuth.getToken(e,o.scopes,s,c,a,o.claims).then(function(e){return{accessToken:e.Token,expiresOn:e.MsalResult?e.MsalResult.expiresOn:void 0}}).catch(function(e){var t=p.InternalError,n=void 0;if(e)if(n=e.ErrorMessage,e.MsalResult&&"InteractionRequiredAuthError"===e.MsalResult.name)t=p.InteractionRequired;else if(e.ErrorCode){var r=e.ErrorCode.toUpperCase();i[r]&&(t=i[r])}return Promise.reject({code:t,description:n})})})):e(Promise.reject(_))}function a(){return O()||"function"!=typeof __initializeNestedAppAuth?Promise.resolve():__initializeNestedAppAuth()}function O(){return"undefined"!=typeof nestedAppAuthBridge}function S(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return[4,a()];case 1:return e.sent(),[2,O()]}})})}d.isBridgeAvailable=O,d.isBridgeAvailableAsync=S,d.load=function(e,t,n,r,i){var o=g(e);return o.loadPromise=o.loadPromise||function(c,l,u,p,f){return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o,a,s;return __generator(this,function(e){switch(e.label){case 0:return m=c,t=p||d.clientCapabilities,p&&0===d.clientCapabilities.length&&(d.clientCapabilities=p),Office&&Office.context&&Office.context.auth&&OSF.WebAuth?[4,S()]:[2];case 1:return e.sent()?[2]:[4,y=y||function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,new Promise(function(t){Office.context.auth.getAuthContextAsync(function(e){"succeeded"===e.status?t(e.value):t(null)})}).catch(function(){return null})]})})}()];case 2:if(!(n=e.sent()))throw _;OSF.WebAuth.config={authFlow:"authcode",authVersion:d.authVersion?d.authVersion:null,msal:d.msal,delayWebAuth:d.delay,delayMsal:d.delayMsal,debugging:d.debugging,useMsal3:d.useMsal3,useMsal5:d.useMsal5,authority:d.authorityOverride?d.authorityOverride:n.authorityBaseUrl,idp:"msa"===n.authorityType.toLowerCase()?"msa":"aad",appIds:[c],redirectUri:l||null,upn:n.userPrincipalName,prefetch:u,telemetryInstance:"otel",enableUpnCheck:d.upnCheck,enableConsoleLogging:d.debugging,checkActiveAccount:!0,tenantId:n.tenantId,timeout:d.timeout,clientCapabilities:t},r=OSF.pairwiseBrokerConfig,i=!0===f&&null!=r&&!0===r.enabled,o=null!=r?r.trustedBrokerDomain:void 0,(a=g(c)).usePairwiseBroker=i,e.label=3;case 3:return e.trys.push([3,5,,6]),[4,OSF.WebAuth.load({appIds:[c],redirectUri:l||null,prefetch:u,clientCapabilities:t,usePairwiseBroker:i,trustedBrokerDomain:o})];case 4:return e.sent(),a.loaded=!0,[3,6];case 5:throw s=e.sent(),__assign({},_,{description:s instanceof Event?s.type:void 0});case 6:return[2]}})})}(e,t,n,r,i),o.loadPromise},d.getAccessToken=function(t){var n=null==t.popup?r.None:t.popup;if(n===r.Auto&&!t.directUserActionCallback)throw{code:p.InvalidApiArguments};return a().then(function(){return o(t,n===r.Force).catch(function(e){if(e.code==p.InteractionRequired&&n===r.Auto&&t.directUserActionCallback)return t.directUserActionCallback().then(function(e){if(e)return o(t,!0);throw{code:p.UserAborted}}).catch(function(){throw{code:p.UserAborted}});throw e})})}}(e.NestedAppAuth||(e.NestedAppAuth={}))}(OfficeFirstPartyAuth=OfficeFirstPartyAuth||{}),function(o){var n,e;OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject,OfficeExtension.BatchApiHelper.createTopLevelServiceObject,OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod,OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined,OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson,OfficeExtension.Utility.fixObjectPathIfNecessary,OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult,OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags;(o._CC||(o._CC={})).LicenseFeature_StateChanged_EventArgsTransform=function(e,t){var n={feature:t.featureName,isEnabled:t.isEnabled,tier:t.tierName};return t.tierName&&(n.tier=0==t.tierName?LicenseFeatureTier.unknown:1==t.tierName?LicenseFeatureTier.basic:2==t.tierName?LicenseFeatureTier.premium:t.tierName),n},(o._CC||(o._CC={})).ThemeService_OfficeThemeChanged_EventArgsTransform=function(e,t){return{bodyBackgroundColor:t.bodyBackgroundColor,bodyForegroundColor:t.bodyForegroundColor,controlBackgroundColor:t.controlBackgroundColor,controlForegroundColor:t.controlForegroundColor,themeId:t.themeId,isDarkTheme:t.isDarkTheme,fluentThemeData:t.fluentThemeData}},(e=n=o.PersonaPromiseType||(o.PersonaPromiseType={}))[e.immediate=0]="immediate",e[e.load=3]="load";var a=function(){};o.PersonaInfoAndSource=a;var t=(r.prototype.performAsyncOperation=function(e,l,u,p){var t=this;e!=n.immediate?p().then(function(e){if(e)u();else{var c=t;c.load("hostId"),c.context.sync().then(function(){var s=c.hostId;t.getPersonaLifetime().then(function(o){var a=function(i){return new OfficeExtension.CoreUtility.Promise(function(t,e){if(i.sendingPersonaHostId==s)for(var n=0;n<i.dataUpdated.length;++n){var r=i.dataUpdated[n];if(l==r)return void p().then(function(e){e&&(u(),o.onPersonaUpdated.remove(a),c.context.sync()),t(e)})}t(!1)})};o.onPersonaUpdated.add(a),c.context.sync()})})}}):u()},r.prototype.getOrganizationAsync=function(n){var i=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var r=i;i.performAsyncOperation(n,PersonaDataUpdated.organization,function(){var e=r.organization;e.load("*"),r.context.sync().then(function(){t(e)})},function(){return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=r.organization;n.load("isWarmedUp"),r.context.sync().then(function(){e(n.isWarmedUp)})})})})},r.prototype.getIsPersonaInfoResolvedCheck=function(){var r=this;return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=r.personaInfo;n.load("isPersonResolved"),r.context.sync().then(function(){e(n.isPersonResolved)})})},r.prototype.getPersonaInfoAsync=function(r){var i=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=i;i.performAsyncOperation(r,PersonaDataUpdated.personaInfo,function(){var e=n.personaInfo;e.load(),n.context.sync().then(function(){t(e)})},function(){return i.getIsPersonaInfoResolvedCheck()})})},r.prototype.getPersonaInfoWithSourceAsync=function(r){var i=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=i;i.performAsyncOperation(r,PersonaDataUpdated.personaInfo,function(){var e=new a;e.info=n.personaInfo,e.info.load(),e.source=n.personaInfo.sources,e.source.load(),n.context.sync().then(function(){t(e)})},function(){return i.getIsPersonaInfoResolvedCheck()})})},r.prototype.getUnifiedCommunicationInfo=function(r){var i=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=i;i.performAsyncOperation(r,PersonaDataUpdated.personaInfo,function(){var e=n.unifiedCommunicationInfo;e.load("*"),n.context.sync().then(function(){t(e)})},function(){return i.getIsPersonaInfoResolvedCheck()})})},r.prototype.getUnifiedGroupInfoAsync=function(r){var i=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=i;i.performAsyncOperation(r,PersonaDataUpdated.personaInfo,function(){var e=n.unifiedGroupInfo;e.load("*"),n.context.sync().then(function(){t(e)})},function(){return i.getIsPersonaInfoResolvedCheck()})})},r.prototype.getTypeAsync=function(r){var i=this;return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=i;i.performAsyncOperation(r,PersonaDataUpdated.personaInfo,function(){n.load("type"),n.context.sync().then(function(){e(o.PersonaType[n.type.valueOf()])})},function(){return i.getIsPersonaInfoResolvedCheck()})})},r.prototype.getCustomizationsAsync=function(r){var i=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=i;i.performAsyncOperation(r,PersonaDataUpdated.personaInfo,function(){var e=n.getCustomizations();n.context.sync().then(function(){t(e.value)})},function(){return i.getIsPersonaInfoResolvedCheck()})})},r.prototype.getMembersAsync=function(n){var i=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var r=i;i.performAsyncOperation(n,PersonaDataUpdated.members,function(){var e=r.getMembers();e.load("isWarmedUp"),r.context.sync().then(function(){t(e)})},function(){return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=r.getMembers();n.load("isWarmedUp"),r.context.sync().then(function(){e(n.isWarmedUp)})})})})},r.prototype.getMembershipAsync=function(r){var i=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=i;i.performAsyncOperation(r,PersonaDataUpdated.membership,function(){var e=n.getMembership();e.load("*"),n.context.sync().then(function(){t(e)})},function(){return new OfficeExtension.CoreUtility.Promise(function(e){var t=n.getMembership();t.load("isWarmedUp"),n.context.sync().then(function(){e(t.isWarmedUp)})})})})},r.prototype.getPersonaLifetime=function(){var r=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=r;n.load("instanceId"),n.context.sync().then(function(){new i(n.context,n.instanceId).getPersonaLifetime().then(function(e){t(e)})})})},r);function r(){}o.PersonaCustom=t;var i=(Object.defineProperty(s.prototype,"serviceContext",{get:function(){return this.m_serviceConext||(this.m_serviceConext=o.ServiceContext.newObject(this.context)),this.m_serviceConext},enumerable:!0,configurable:!0}),s.prototype.getPersonaLifetime=function(){var r=this;return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=r.serviceContext.getPersonaLifetime(r.instanceId);r.context.sync().then(function(){n.load("instanceId"),r.context.sync().then(function(){e(n)})})})},s.prototype.getInitialPersona=function(){var r=this;return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=r.serviceContext.getInitialPersona(r.instanceId);r.context.sync().then(function(){e(n)})})},s.prototype.getLokiTokenProvider=function(){var r=this;return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=r.serviceContext.getLokiTokenProvider(r.instanceId);r.context.sync().then(function(){n.load("instanceId"),r.context.sync().then(function(){e(n)})})})},s);function s(e,t){this.context=e,this.instanceId=t}o.PeopleApiContext=i,(o._CC||(o._CC={})).FirstPartyDialogService_DialogMessage_EventArgsTransform=function(e,t){return{message:t.message}};var c,l,u=(Object.defineProperty(p.prototype,"_targetId",{get:function(){return null==this.m_targetId&&(void 0!==OSF&&OSF.OUtil?this.m_targetId=OSF.OUtil.Guid.generateNewGuid():this.m_targetId=""+this.context._nextId()),this.m_targetId},enumerable:!0,configurable:!0}),p);function p(){}o.AuthenticationServiceCustom=u,(o._CC||(o._CC={})).AuthenticationService_TokenReceived_EventArgsTransform=function(e,t){return{tokenValue:t.tokenValue,code:t.code,errorInfo:t.errorInfo}},(c=o._CC||(o._CC={})).ExternalCodeService_ExternalCodeExecutionCompleted_EventArgsTransform=function(e,t){return{result:t.result}},c.ExternalCodeService_ExternalCodeServiceRequestCompleted_EventArgsTransform=function(e,t){return t},c.ExternalCodeService_ExternalCodeServiceResult_EventArgsTransform=function(e,t){return t},(o._CC||(o._CC={})).AddinSkillActionService_ReplyReceived_EventArgsTransform=function(e,t){return{actionCorrelationId:t.actionCorrelationId,replyMessage:t.replyMessage,resultCode:t.resultCode}},(l=o.ErrorCodes||(o.ErrorCodes={})).apiNotAvailable="ApiNotAvailable",l.clientError="ClientError",l.clpSessionError="ClpSessionError",l.controlIdNotFound="ControlIdNotFound",l.docCookieError="DocCookieError",l.entryIdRequired="EntryIdRequired",l.errorPointer="ErrorPointer",l.generalException="GeneralException",l.hostIntegrationManagerError="HostIntegrationManagerError",l.hostRestartNeeded="HostRestartNeeded",l.instanceNotFound="InstanceNotFound",l.interactiveFlowAborted="InteractiveFlowAborted",l.invalidArgument="InvalidArgument",l.invalidGrant="InvalidGrant",l.invalidResourceUrl="InvalidResourceUrl",l.invalidRibbonDefinition="InvalidRibbonDefinition",l.labelingDisabledAppguard="LabelingDisabledAppguard",l.labelingDisabledNoSignedInClpCompatibleUsers="LabelingDisabledNoSignedInClpCompatibleUsers",l.labelingDisabledPrivacySettings="LabelingDisabledPrivacySettings",l.labelingDisabledProtectedView="LabelingDisabledProtectedView",l.labelingDisabledUnsupportedLabelClient="LabelingDisabledUnsupportedLabelClient",l.msoOLDocumentError="MsoOLDocumentError",l.notImplement="NotImplement",l.objectNotFound="ObjectNotFound",l.officeJSItemLabelForIdentityError="OfficeJSItemLabelForIdentityError",l.officeJSRMSLicenseError="OfficeJSRMSLicenseError",l.officeJSSessionOrDocError="OfficeJSSessionOrDocError",l.officeSolutionFrameworkHostError="OfficeSolutionFrameworkHostError",l.omworkflowUserNotFound="OMWorkflowUserNotFound",l.osfControlContainerError="OsfControlContainerError",l.outOfMemory="OutOfMemory",l.resourceNotSupported="ResourceNotSupported",l.sensitivityDocumentReadOnly="SensitivityDocumentReadOnly",l.sensitivityInsufficientPermission="SensitivityInsufficientPermission",l.sensitivityLabelDisabled="SensitivityLabelDisabled",l.sensitivityLabelingDisabled="SensitivityLabelingDisabled",l.sensitivityLabelNotFound="SensitivityLabelNotFound",l.sensitivityNewLabelSensitivityOrder="SensitivityNewLabelSensitivityOrder",l.sensitivityUnsupportedContentType="SensitivityUnsupportedContentType",l.sensitivityUnsupportedCrossTenant="SensitivityUnsupportedCrossTenant",l.sensitivityUnsupportedDke="SensitivityUnsupportedDke",l.sensitivityUnsupportedUdp="SensitivityUnsupportedUdp",l.serverError="ServerError",l.serviceUrlNotFound="ServiceUrlNotFound",l.sharedRuntimeNotAvailable="SharedRuntimeNotAvailable",l.ticketInvalidParams="TicketInvalidParams",l.ticketNetworkError="TicketNetworkError",l.ticketUnauthorized="TicketUnauthorized",l.ticketUninitialized="TicketUninitialized",l.ticketUnknownError="TicketUnknownError",l.unexpectedError="UnexpectedError",l.unsupportedUserIdentity="UnsupportedUserIdentity",l.userNotSignedIn="UserNotSignedIn",o.Interfaces||(o.Interfaces={});new OfficeExtension.LibraryBuilder({metadata:{version:"1.0.0",name:"OfficeCore",defaultApiSetName:"OfficeSharedApi",hostName:"Office",apiSets:[["1.2","SharedApiUndo"],["1.2","SharedRuntimeInternal"],["1.1","SnapshotControl"],["1.1","SharedApiUndo"],["1.4","SharedApiUndo"],["1.2","DynamicRibbon"],["1.4","DynamicRibbon"],["1.1","DynamicRibbonUndo"],["1.3","DynamicRibbon"],["1.2","FirstPartyAuthentication"],["1.3","FirstPartyAuthentication"],["1.5","FirstPartyAuthentication"],["1.1","SensitivityUndo"],["1.2","SensitivityService"],["1.2","SensitivityUndo"],["1.3","SensitivityService"],["1.3","SensitivityUndo"],["1.3","SharedApiUndo"],["1.2","CopilotService"],["1.1","PrivateAPI"],["1.1","ExternalCodeServiceUndo"],["1.1","TaskPaneApi"]],strings:["DialogPage","License","LicenseFeature","MsaDeviceTicketOptions","AppRuntimePersistenceService","AppRuntimeService","ThemeService","Tap","MemberInfoList","PersonaActions","PersonaInfoSource","PersonaInfo","PersonaUnifiedCommunicationInfo","PersonaPhotoInfo","PersonaCollection","PersonaOrganizationInfo","UnifiedGroupInfo","Persona","PersonaLifetime","LokiTokenProvider","LokiTokenProviderFactory","ServiceContext","RichapiPcxFeatureChecks","Comment","CommentCollection","ExtensionLifeCycle","OfficeServicesManagerApi","LocaleApi","FirstPartyDialogService","DynamicRibbon","RibbonTab","RibbonButton","RibbonButtonCollection","ServiceUrlProvider","LinkedIn","NetworkUsage","BeforeDocumentCloseNotification","AuthenticationService","RoamingSetting","RoamingSettingCollection","SharedFilePicker","ActionService","Auth","AugLoopEventService","UndoService","UserFeedbackService","NotificationService","SensitivityService","CopilotService","PrivateApiService","ExternalCodeService","BusinessBarService","ShowSimpleDialog","DispatchApiService","DevicePermissionService","TaskpaneService","AddinSkillActionService","UnifiedStoreService","SdxMessaging","HostMcpService","close","registerOnShow","unregisterOnShow","id","_RegisterStateChange","_UnregisterStateChange","","null","registerOfficeThemeChangedEvent","unregisterOfficeThemeChangedEvent","isWarmedUp","isWarmingUp","displayName","email","emailAddresses","sipAddresses","birthday","birthdays","title","jobInfoDepartment","companyName","office","linkedTitles","linkedDepartments","linkedCompanyNames","linkedOffices","webSites","notes","getImageUri","setPlaceholderColor","getPlaceholderUri","getImageUriWithMetadata","getCount","getItem","instanceId","dispose","_RegisterPersonaUpdatedEvent","_UnregisterPersonaUpdatedEvent","this.instanceId","_RegisterLokiTokenAvailableEvent","_UnregisterLokiTokenAvailableEvent","_RegisterIdentityUniqueIdAvailableEvent","_UnregisterIdentityUniqueIdAvailableEvent","_RegisterClientAccessTokenAvailableEvent","_UnregisterClientAccessTokenAvailableEvent","getLokiTokenProvider","registerIdentityChangedEvent","unregisterIdentityChangedEvent","sendMessage","_RegisterHostMessageReceivedEvent","_UnregisterHostMessageReceivedEvent","_RegisterUndoStackChangedEvent","_UnregisterUndoStackChangedEvent","_RegisterUserFeedbackUIDismissedEvent","_UnregisterUserFeedbackUIDismissedEvent","_RegisterUserFeedbackResponseEvent","_UnregisterUserFeedbackResponseEvent","_RegisterSensitivityLabelChangedEvent","_UnregisterSensitivityLabelChangedEvent","execute","_RegisterPrivateApiEvent","_UnregisterPrivateApiEvent","registerExternalCodeExecutionCompletedEvent","unregisterExternalCodeExecutionCompletedEvent","registerExternalCodeServiceRequestCompletedEvent","unregisterExternalCodeServiceRequestCompletedEvent","registerExternalCodeServiceResultEvent","unregisterExternalCodeServiceResultEvent","_RegisterReplyReceivedEvent","_UnregisterReplyReceivedEvent","_RegisterCopilotAgentEvent","_UnregisterCopilotAgentEvent","_RegisterRefreshedAcquisitionStateEvent","_UnregisterRefreshedAcquisitionStateEvent","_RegisterMessageReceived","_UnregisterMessageReceived","_RegisterSubscriberChanged","_UnregisterSubscriberChanged","_RegisterSdxReady","_UnregisterSdxReady"],enumTypes:[["DialogPageEventType",[],{onShow:1}],["LicenseFeatureTier",["unknown","basic","premium"]],["LicenseEventType",[],{featureStateChanged:1}],["AppRuntimeState",["inactive","background","visible"]],["Visibility",["hidden","visible"]],["VisualSurface",["default","menus","panes","statusBar","backstage","dialogs"],{qat:"QAT"}],["ObjectType",["unknown","chart","smartArt","table","image","slide","text"],{ole:"OLE"}],["PersonaCardPerfPoint",["placeHolderRendered","initialCardRendered"]],["MessageType",[],{personaLifetimePersonaUpdatedEvent:3502,lokiTokenProviderLokiTokenAvailableEvent:3503,lokiTokenProviderIdentityUniqueIdAvailableEvent:3504,lokiTokenProviderClientAccessTokenAvailableEvent:3505}],["UnifiedCommunicationAvailability",["notSet","free","idle","busy","idleBusy","doNotDisturb","unalertable","unavailable"]],["UnifiedCommunicationStatus",["online","notOnline","away","busy","beRightBack","onThePhone","outToLunch","inAMeeting","outOfOffice","doNotDisturb","inAConference","getting","notABuddy","disconnected","notInstalled","urgentInterruptionsOnly","mayBeAvailable","idle","inPresentation"]],["UnifiedCommunicationPresence",["free","busy","idle","doNotDistrub","blocked","notSet","outOfOffice"]],["FreeBusyCalendarState",["unknown","free","busy","elsewhere","tentative","outOfOffice"]],["PersonaType",["unknown","enterprise","contact","bot","phoneOnly","oneOff","distributionList","personalDistributionList","anonymous","unifiedGroup"]],["PhoneType",["workPhone","homePhone","mobilePhone","businessFax","otherPhone"]],["AddressType",["workAddress","homeAddress","otherAddress"]],["MemberType",["unknown","individual","group"]],["PersonaDataUpdated",["hostId","type","photo","personaInfo","unifiedCommunicationInfo","organization","unifiedGroupInfo","members","membership","capabilities","customizations","viewableSources","placeholder"]],["CustomizedData",["email","workPhone","workPhone2","workFax","mobilePhone","homePhone","homePhone2","otherPhone","sipAddress","profile","office","company","workAddress","homeAddress","otherAddress","birthday"]],["CommentTextFormat",["plain","markdown","delta"]],["TimeStringFormat",["shortTime","longTime","shortDate","longDate"]],["ServiceProvider",["ariaBrowserPipeUrl","ariaUploadUrl","ariaVNextUploadUrl","lokiAutoDiscoverUrl"]],["IdentityType",["organizationAccount","microsoftAccount","unsupported"]],["AugLoopEventType",[],{onHostMessageReceivedEvent:65542}],["UndoType",[],{onUndoStackChangedEvent:65543,onCopilotOperationStartedEvent:65544}],["TriStateOption",["notSet","true","false"]],["UserFeedbackType",["like","dislike","idea","unclassified"]],["UserFeedbackUIType",["modalDialog","taskpane"]],["UserFeedbackEventType",[],{onUserFeedbackUIDismissedEvent:65546,onUserFeedbackResponseEvent:65550}],["UserFeedbackScreenshotInfoSourceType",["autoCapture","autoCaptureWithHtml2Canvas","providedAtInitialization","dynamicallyProvided"]],["UserFeedbackScreenshotInfoImageFormat",[],{jpeg:"jpeg",png:"png"}],["LabelMessageContext",[],{generic:0,firstPerson:1}],["LabelResultSeverity",[],{info:0,warning:1,error:2}],["SensitivityLabelEventType",[],{onLabelChangedEvent:65549}],["EncryptionType",[],{none:0,irmtemplate:1,irmuserDefinedPermission:2,irmencryptOnly:3,irmdoNotForward:4}],["TryUpgradeLabelError",[],{s_APPLYLABEL_OK:0,e_APPLYLABEL_FAIL:2147467259,e_APPLYLABEL_UNSUPPORTED_CROSSTENANT:2147205120,e_APPLYLABEL_DOCUMENT_READONLY:2147205119,e_APPLYLABEL_INSUFFICIENTPERMISSION:2147205118,e_APPLYLABEL_LABELDISABLED:2147205117,e_APPLYLABEL_UNSUPPORTED_UDP:2147205116,e_APPLYLABEL_LABELING_DISABLED:2147205115,e_APPLYLABEL_UNSUPPORTED_CONTENTTYPE:2147205114,e_APPLYLABEL_UNSUPPORTED_DKE:2147205113,e_APPLYLABEL_LABELNOTFOUND:2147205112,e_APPLYLABEL_USERNOTFOUND:2147220727,e_APPLYLABEL_NEWLABELSENSITIVITYORDER:2147205105}],["PrivateApiEventType",[],{onPrivateEvent:65552}],["RequestMethod",["get","post","patch","delete"]],["ResultType",["executionResult","runtimeInfo","serviceResponse"]],["ErrorCategory",["other","environment","runtime","license","user","auth","billing","invalidArg","python","service","unsupported","dataUpload"]],["BusinessBarType",["info","error","blocked","severeWarning","success","warning"]],["SimpleDialogState",[],{cancel:0,confirm:1,checkedConfirm:2}],["SimpleDialogCategory",[],{information:"information",error:"error",warning:"warning",question:"question",other:"other"}],["DevicePermissionType",[],{camera:"camera",microphone:"microphone",geolocation:"geolocation"}],["CopilotAgentEventType",[],{onCopilotAgentEvent:65556}],["UnifiedStoreEventType",[],{onRefreshedAcquisitionStateEvent:65557}]],clientObjectTypes:[[1,0,[["_Id",2]],0,[[61,0,2,0,4],["readyToShow",0,2,0,4],[62,0,2,0,4],[63,0,2,0,4],["sendMessageToHost",1,2,0,4]],0,0,0,[["OnShowEvent",0,0,"DialogPageEventType.onShow","this._Id",62,63]],"Microsoft.Office.DialogPage.DialogPage",4],[2,0,0,0,[["isFeatureEnabled",2,2,0,4],["getFeatureTier",2,2,0,4],["isFreemiumUpsellEnabled",0,2,0,4],["launchUpsellExperience",2,2,0,4],["_TestFireStateChangedEvent",1,0,0,3,0,1],["getMsaDeviceTicket",3,2,0,5]],[["getLicenseFeature",3,1,2,0,4]],0,0,0,"Microsoft.Office.Licensing.License",4],[3,0,[[64,3]],0,[[65,0,2,0,4],[66,0,2,0,4]],0,0,0,[["StateChanged",2,0,"LicenseEventType.featureStateChanged","this.id",65,66]]],[4,0,[["scopes",1,0,0,2,1]],0,0,0,0,0,0,"Microsoft.Office.Licensing.MsaDeviceTicketOptions",4],[5,0,0,0,[["setAppRuntimeStartState",1,0,0,2,0,2],["getAppRuntimeStartState",0,2,0,4]],0,0,0,0,"Microsoft.AppRuntime.AppRuntimePersistenceService",4],[6,0,0,0,[["setAppRuntimeState",1,0,0,2,0,2],["getAppRuntimeState",0,2,0,4],["setSnapshotEnabled",1,2,3,4],["getSnapshotEnabled",0,2,3,4],["getContentSnapshotAsBase64",0,2,3,4]],0,0,0,[["SnapshotImageReady",0,3,"65547",67,68,68],["VisibilityChanged",0,0,"65539",67,68,68]],"Microsoft.AppRuntime.AppRuntimeService",4],[7,0,0,0,[[69,0,0,0,2,0,4],[70,0,0,0,2,0,4],["getOfficeThemeDataForVisualSurface",1,2,0,5]],0,0,0,[["OfficeThemeChanged",2,0,"65548",67,69,70]],"Microsoft.Theme.ThemeService",4],[8,0,0,0,[["getEnterpriseUserInfo",0,2,0,5],["getMruFriendlyPath",1,2,0,5],["launchFileUrlInOfficeApp",2,2,0,5],["performLocalSearch",4,2,0,5],["readSearchCache",3,2,0,5],["writeSearchCache",3,2,0,5]],0,0,0,0,"Microsoft.TapRichApi.Tap",4],[9,0,[[71,3],[72,3]],0,[["items",0,2,0,4]],[["getPersonaForMember",18,1,2,0,4]]],[10,0,0,0,[["addContact",0,0,0,2,0,5],["editContact",0,0,0,2,0,5],["composeEmail",1,0,0,2,0,5],["composeInstantMessage",1,0,0,2,0,5],["callPhoneNumber",1,0,0,2,0,5],["pinPersonaToQuickContacts",0,0,0,2,0,5],["toggleTagForAlerts",0,0,0,2,0,5],["scheduleMeeting",0,0,0,2,0,5],["openLinkContactUx",0,0,0,2,0,5],["editContactByIdentifier",1,0,0,2,0,5],["showHoverCardForPersona",6,0,0,2,0,5],["hideHoverCardForPersona",0,0,0,2,0,5],["showContextMenu",6,0,0,2,0,5],["showContactCard",6,0,0,2,0,5],["showExpandedCard",6,0,0,2,0,5],["openGroupCalendar",0,0,0,2,0,5],["subscribeToGroup",0,0,0,2,0,5],["unsubscribeFromGroup",0,0,0,2,0,5],["getChangePhotoUrlAndOpenInBrowser",0,0,0,2,0,5],["startAudioCall",0,0,0,2,0,5],["startVideoCall",0,0,0,2,0,5],["openOutlookProperties",0,0,0,2,0,5],["editUnifiedGroup",0,0,0,2,0,5],["joinUnifiedGroup",0,0,0,2,0,5],["leaveUnifiedGroup",0,0,0,2,0,5]]],[11,0,[[73,3],[74,3],[75,3],[76,3],[77,3],[78,3],[79,3],[80,3],[81,3],[82,3],[83,3],[84,3],[85,3],[86,3],["phones",3],["addresses",3],[87,3],[88,3]]],[12,0,[[73,3],[74,3],[75,3],[76,3],[77,11],[78,11],[79,3],[80,3],[81,3],[82,3],[83,3],[84,3],[85,3],[86,3],[87,3],[88,3],["isPersonResolved",3]],[["sources",11,3,0,0,4]],[["getPhones",0,2,0,4],["getAddresses",0,2,0,4]]],[13,0,[["availability",3],["status",3],["isSelf",3],["isTagged",3],["customStatusString",3],["isBlocked",3],["presenceTooltip",3],["isOutOfOffice",3],["outOfOfficeNote",3],["timezone",3],["meetingLocation",3],["meetingSubject",3],["timezoneBias",3],["idleStartTime",11],["overallCapability",3],["isOnBuddyList",3],["presenceNote",3],["voiceMailUri",3],["availabilityText",3],["availabilityTooltip",3],["isDurationInAvailabilityText",3],["freeBusyStatus",3],["calendarState",3],["presence",3]]],[14,0,0,0,[[89,1,2,0,4,89],[90,1,0,0,2,90,5],[91,1,2,0,4,91],[92,1,2,0,4,92]]],[15,1,0,0,[[93,0,2,0,4]],[[94,18,1,18,0,4]],0,18],[16,0,[[71,3],[72,3]],[["hierarchy",15,18,0,0,4],["manager",18,2,0,0,4],["directReports",15,18,0,0,4]]],[17,0,[["description",1,0,0,2,5],["oneDrive",1,0,0,2,5],["oneNote",1,0,0,2,5],["isPublic",1,0,0,2,5],["amIOwner",1,0,0,2,5],["amIMember",1,0,0,2,5],["amISubscribed",1,0,0,2,5],["memberCount",1,0,0,2,5],["ownerCount",1,0,0,2,5],["hasGuests",1,0,0,2,5],["site",1,0,0,2,5],["planner",1,0,0,2,5],["classification",1,0,0,2,5],["subscriptionEnabled",1,0,0,2,5]]],[18,4,[["hostId",3],["type",3],["capabilities",3],["diagnosticId",3],[95,3]],[["photo",14,3,0,0,4],["personaInfo",12,3,0,0,4],["unifiedCommunicationInfo",13,3,0,0,4],["organization",16,3,0,0,4],["unifiedGroupInfo",17,35,0,0,4],["actions",10,2,0,0,4]],[["getCustomizations",0,2,0,4],["warmup",1,0,0,2,0,5],[96,0,0,0,2,0,5],["getViewableSources",0,2,0,4],["reportTimeForRender",2,0,0,2,0,5]],[["getMembers",9,0,2,0,4],["getMembership",9,0,2,0,4]]],[19,0,[[95,3]],0,[["getPolicies",0,2,0,4],[97,0,0,0,2,0,5],[98,0,0,0,2,0,5],["getTextScaleFactor",0,2,0,4]],[["getPersona",18,1,2,0,4],["getPersonaForOrgEntry",18,4,2,0,4],["getPersonaForOrgByEntryId",18,4,2,0,4]],0,0,[["PersonaUpdated",0,0,"MessageType.personaLifetimePersonaUpdatedEvent",99,97,98]]],[20,0,[["emailOrUpn",3],[95,3]],0,[["requestToken",0,0,0,2,0,5],[100,0,0,0,2,0,5],[101,0,0,0,2,0,5],["requestIdentityUniqueId",0,0,0,2,0,5],[102,0,0,0,2,0,5],[103,0,0,0,2,0,5],["requestClientAccessToken",0,0,0,2,0,5],[104,0,0,0,2,0,5],[105,0,0,0,2,0,5]],0,0,0,[["ClientAccessTokenAvailable",0,0,"MessageType.lokiTokenProviderClientAccessTokenAvailableEvent",99,104,105],["IdentityUniqueIdAvailable",0,0,"MessageType.lokiTokenProviderIdentityUniqueIdAvailableEvent",99,102,103],["LokiTokenAvailable",0,0,"MessageType.lokiTokenProviderLokiTokenAvailableEvent",99,100,101]]],[21,0,0,0,0,[[106,20,1,2,0,4]],0,0,0,"Microsoft.People.LokiTokenProviderFactory",4],[22,0,0,0,[[96,1,0,0,2,0,5],["accountEmailOrUpn",1,2,0,4],["getPersonaPolicies",0,2,0,4]],[[106,20,1,2,0,4],["getPersonaLifetime",19,1,2,0,4],["getInitialPersona",18,1,2,0,4]],0,0,0,"Microsoft.People.ServiceContext",4],[23,0,0,0,[["isAddChangePhotoLinkOnLpcPersonaImageFlightEnabled",0,2,0,4]],0,0,0,0,"Microsoft.People.RichapiPcxFeatureChecks",4],[24,0,[[64,3],["text",1,0,0,2,5],["created",11],["level",3],["resolved",1,0,0,2,5],["author",3],["mentions",3]],[["parent",24,2,0,0,4],["parentOrNullObject",24,2,0,0,4],["replies",25,19,0,0,4]],[["getRichText",1,2,0,4],["setRichText",2,0,0,2,0,5],["delete",0,0,0,2,0,5]],[["getParentOrSelf",24,0,2,0,4],["reply",24,2,0,0,2,0,0,5]]],[25,1,0,0,[[93,0,2,0,4]],[[94,24,1,18,0,4]],0,24],[26,0,0,0,[["launchExtensionComponent",3,2,0,5],["launchAgent",2,2,0,4]],0,0,0,0,"Microsoft.OfficeSharedApi.ExtensionLifeCycle",4],[27,0,0,0,[["bindServiceToProfile",3,0,0,2,0,5]],0,0,0,0,"Microsoft.OfficeServicesManager.OfficeServicesManagerApi",4],[28,0,0,0,[["getLocaleDateTimeFormattingInfo",1,2,0,4],["formatDateTimeString",3,2,0,4]],0,0,0,0,"Microsoft.LocaleApi.LocaleApi",4],[29,0,0,0,[["displayDialog",2,2,0,5],[61,0,2,0,5]],0,0,0,[["DialogMessage",2,0,"65536",67,68,68]],"Microsoft.FirstPartyDialog.FirstPartyDialogService",4],[30,0,0,[["buttons",33,19,0,0,4]],[["executeRequestUpdate",1,2,0,4],["executeRequestCreate",1,2,6,4],["executeSaveState",0,2,7,4]],[["getButton",32,1,2,0,4],["getTab",31,1,2,0,4]],0,0,0,"Microsoft.DynamicRibbon.DynamicRibbon",4],[31,0,[[64,3]],0,[["setVisibility",1,0,0,2,0,8]]],[32,0,[[64,3],["enabled",1,0,0,2,8],["label",3],["visible",1,9,0,2,8]],0,[["setEnabled",1,0,0,2,0,8]]],[33,1,0,0,[[93,0,2,0,4]],[[94,32,1,18,0,4]],0,32],[34,0,0,0,[["getServiceUrl",2,2,0,4]],0,0,0,0,"Microsoft.DesktopCompliance.ServiceUrlProvider",4],[35,0,0,0,[["isEnabledForOffice",0,2,0,4],["recordLinkedInSettingsCompliance",2,0,0,2,0,5]],0,0,0,0,"Microsoft.DesktopCompliance.LinkedIn",4],[36,0,0,0,[["isInOnlineMode",0,2,0,4],["isInDisconnectedMode",0,2,0,4]],0,0,0,0,"Microsoft.DesktopCompliance.NetworkUsage",4],[37,0,0,0,[["enable",0,2,0,4],["disable",0,2,0,4]],0,0,0,[["BeforeCloseNotificationCancelled",0,0,"65540",67,68,68]],"Microsoft.BeforeDocumentCloseNotification.BeforeDocumentCloseNotification",4],[38,4,0,[["roamingSettings",40,2,0,0,4]],[["getAccessToken",2,2,0,5],["getPrimaryIdentityInfo",0,2,10,5],["getIdentities",0,2,11,5],[107,0,0,12,3,0,4],[108,0,0,12,3,0,4]],0,0,0,[["IdentityChanged",0,12,"65545",67,107,108],["TokenReceived",2,10,"3001","this._targetId",68,68]],"Microsoft.Authentication.AuthenticationService",4],[39,0,[[64,3],["value",1,0,0,2,4]]],[40,0,0,0,0,[[94,39,1,2,0,4],["getItemOrNullObject",39,1,2,0,4]]],[41,0,0,0,[["getSharedFilePickerResponse",1,2,0,4]],0,0,0,0,"Microsoft.Office.SharedFilePicker",4],[42,0,0,0,[["getShortcuts",0,2,0,4],["replaceShortcuts",1,0,0,2,0,4],["areShortcutsInUse",1,0,0,2,0,4]],0,0,0,0,"Microsoft.Office.ActionService",4],[43,0,0,0,[["getAccessTokenFirstPartyOAuth",2,2,0,5]],0,0,0,0,"Microsoft.Office.Auth",5],[44,0,0,0,[[109,1,2,0,5],[110,0,2,0,5],[111,0,2,0,5]],0,0,0,[["HostMessageReceived",0,0,"AugLoopEventType.onHostMessageReceivedEvent",67,110,111]],"Microsoft.Office.AugLoopEventService",5],[45,0,0,0,[["undo",0,0,0,3,0,5],[112,0,2,0,5],[113,0,2,0,5],["startCopilotOperation",1,0,0,3,0,5],["endCopilotOperation",1,0,0,3,0,5]],0,0,0,[["CopilotOperationStarted",0,0,"UndoType.onCopilotOperationStartedEvent",67,68,68],["UndoStackChanged",0,0,"UndoType.onUndoStackChangedEvent",67,112,113]],"Microsoft.Office.UndoService",5],[46,0,0,0,[["collectUserFeedback",4,2,0,5],[114,0,2,0,5],[115,0,2,0,5],["canCollectUserFeedback",0,2,0,5],[116,0,2,0,5],[117,0,2,0,5],["getInitializationData",0,2,0,5],["getHostScreenshot",0,2,0,5],["invokeDiagnosticsLogsUpload",1,2,0,5],["canCollectCopilotFeedback",0,2,0,5],["collectFeedbackEligibility",0,2,0,5],["checkFeedbackEligibility",1,2,0,5]],0,0,0,[["UserFeedbackResponse",0,0,"UserFeedbackEventType.onUserFeedbackResponseEvent",67,116,117],["UserFeedbackUIDismissed",0,0,"UserFeedbackEventType.onUserFeedbackUIDismissedEvent",67,114,115]],"Microsoft.Office.UserFeedbackService",5],[47,0,0,0,[["addNotification",2,0,0,3,0,1],["updateNotification",2,0,0,3,0,1],["removeNotification",1,0,0,3,0,1]],0,0,0,0,"Microsoft.Office.NotificationService",5],[48,0,0,0,[["getLabel",0,0,0,3,0,13],["tryUpgradeLabel",2,0,0,3,0,13],["getHighestSensitivityLabel",1,0,0,3,0,13],[118,0,2,0,5],[119,0,2,0,5],["getSensitivityResultDetails",2,0,14,3,0,15],["getSensitivityResultDetailsByStringErrorCode",2,0,16,3,0,17]],0,0,0,[["LabelChanged",0,0,"SensitivityLabelEventType.onLabelChangedEvent",67,118,119]],"Microsoft.Office.SensitivityService",5],[49,0,0,0,[["launchHelpPaneByQuery",1,0,0,3,0,18],["launchHelpPaneByArticleId",1,0,0,3,0,18],["launchHelpPaneByArticleIdString",1,0,0,3,0,18],["launchTaskPaneByAgentId",1,0,19,3],["getWindowClientWidth",0,0,0,3,0,18]],0,0,0,0,"Microsoft.Office.CopilotService",5],[50,0,0,0,[[120,1,0,0,3,0,20],[121,0,2,0,5],[122,0,2,0,5]],0,0,0,[["OnPrivateEvent",0,0,"PrivateApiEventType.onPrivateEvent",67,121,122]],"Microsoft.Office.PrivateApiService",5],[51,0,0,0,[["executePythonCode",1,0,0,3,0,21],["executePythonCodeAsync",1,0,0,3,0,21],[123,0,0,0,3,0,21],[124,0,0,0,3,0,21],["executePythonCodeAsync2",2,0,0,3,0,21],["sendRequestAsync",4,2,0,5],[125,0,2,0,5],[126,0,2,0,5],["getRuntimeInfoAsync",0,2,0,5],[127,0,0,0,3,0,21],[128,0,0,0,3,0,21],["getRuntimeInfoAsync2",1,2,0,5]],0,0,0,[["ExternalCodeExecutionCompleted",2,0,"65551",67,123,124],["ExternalCodeServiceRequestCompleted",2,0,"65553",67,125,126],["ExternalCodeServiceResult",2,0,"65554",67,127,128]],"Microsoft.Office.ExternalCodeService",5],[52,0,0,0,[["show",2,0,0,3,0,4],["hide",1,0,0,3,0,4]],0,0,0,0,"Microsoft.Office.BusinessBarService",5],[53,0,0,0,[["launchSimpleDialog",8,0,0,3]],0,0,0,0,"Microsoft.Office.ShowSimpleDialog",5],[54,0,0,0,[[120,2,2,0,5]],0,0,0,0,"Microsoft.Office.DispatchApiService",5],[55,0,0,0,[["requestPermissions",1,2,0,5]],0,0,0,0,"Microsoft.Office.DevicePermissionService",5],[56,0,0,0,[["notifyHeaderLoaded",0,0,0,3,0,22],[61,0,0,0,3,0,22],["move",0,0,0,3,0,22],["setWidth",1,0,0,2,0,22]],0,0,0,0,"Microsoft.Office.TaskpaneService",4],[57,0,0,0,[["invokeAction",4,2,0,5],[129,0,2,0,5],[130,0,2,0,5]],0,0,0,[["ReplyReceived",2,0,"65555",67,129,130]],"Microsoft.Office.AddinSkillActionService",5],[58,0,0,0,[["launchStoreDialogWithCopilotAgentPageShown",0,0,0,3],["refreshAcquisitionState",0,0,0,1],["getAcquisitionState",0,0,0,1],[131,0,2,0,5],[132,0,2,0,5],[133,0,2,0,5],[134,0,2,0,5]],0,0,0,[["CopilotAgentEvent",0,0,"CopilotAgentEventType.onCopilotAgentEvent",67,131,132],["RefreshedAcquisitionStateEvent",0,0,"UnifiedStoreEventType.onRefreshedAcquisitionStateEvent",67,133,134]],"Microsoft.Office.UnifiedStoreService",5],[59,0,0,0,[[109,2,2,0,5],["setSubscriptions",1,2,0,5],["getSubscriptions",0,2,0,5],["getSubscribers",0,2,0,5],["launch",1,2,0,5],["ready",0,2,0,4],["isReady",1,2,0,5],[135,0,2,0,4],[136,0,2,0,4],[137,0,2,0,4],[138,0,2,0,4],[139,0,2,0,4],[140,0,2,0,4]],0,0,0,[["MessageReceived",0,0,"65541",67,135,136],["SdxReady",0,0,"65543",67,139,140],["SubscriberChanged",0,0,"65542",67,137,138]],"Microsoft.Office.SdxMessaging",4],[60,0,0,0,[["listServers",0,2,0,5],["executeTool",3,0,0,3]],0,0,0,0,"Microsoft.Office.HostMcpService",5]]},targetNamespaceObject:o})}(OfficeCore=OfficeCore||{}),function(e){var o,t,a,n,r,s,i;function c(e){var t=new OfficeCore.RequestContext;return t._requestFlagModifier|=64,e&&(t._customData="WacPartition"),t}function l(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=c(!0),OfficeCore.AppRuntimeService.newObject(t).setAppRuntimeState(n),[4,t.sync()];case 1:return e.sent(),[2]}})})}function u(e){var t=new OfficeCore.RequestContext;return t._requestFlagModifier|=64,e&&(t._customData="WacPartition"),t}(t=o=e.VisibilityMode||(e.VisibilityMode={})).hidden="Hidden",t.taskpane="Taskpane",(n=a=e.StartupBehavior||(e.StartupBehavior={})).none="None",n.load="Load",(r=e.addin||(e.addin={})).setStartupBehavior=function(r){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:if(r!==a.load&&r!==a.none)throw OfficeExtension.Utility.createRuntimeError(OfficeExtension.ErrorCodes.invalidArgument,null,null);return t=r==a.load?OfficeCore.AppRuntimeState.background:OfficeCore.AppRuntimeState.inactive,n=c(!1),OfficeCore.AppRuntimePersistenceService.newObject(n).setAppRuntimeStartState(t),[4,n.sync()];case 1:return e.sent(),[2]}})})},r.getStartupBehavior=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r,i;return __generator(this,function(e){switch(e.label){case 0:return t=c(!1),n=OfficeCore.AppRuntimePersistenceService.newObject(t),r=n.getAppRuntimeStartState(),[4,t.sync()];case 1:return e.sent(),i=r.value,[2,i==OfficeCore.AppRuntimeState.inactive?a.none:a.load]}})})},r.setSnapshotEnabled=function(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=c(!0),OfficeCore.AppRuntimeService.newObject(t).setSnapshotEnabled(n),[4,t.sync()];case 1:return e.sent(),[2,Promise.resolve()]}})})},r.getSnapshotEnabled=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=c(!0),n=OfficeCore.AppRuntimeService.newObject(t),r=n.getSnapshotEnabled(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},r.getContentSnapshotAsBase64=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,new OfficeExtension.CoreUtility.Promise(function(t,n){var r=c(!0),e=OfficeCore.AppRuntimeService.newObject(r),i=setTimeout(function(){o.remove(),r.sync().catch(function(){}),n(OfficeExtension.Utility.createRuntimeError(OfficeExtension.ErrorCodes.generalException,"timeout","getContentSnapshotAsBase64"))},7e3),o=e.onSnapshotImageReady.add(function(e){return clearTimeout(i),o.remove(),OfficeExtension.CoreUtility.isNullOrUndefined(e)?(r.sync().catch(function(){}),n(OfficeExtension.Utility.createRuntimeError(OfficeExtension.ErrorCodes.generalException,"execution failed","getContentSnapshotAsBase64"))):(r.sync().catch(function(){}),t(e.imageBase64)),null});r.sync().then(function(){e.getContentSnapshotAsBase64();return r.sync().then(function(){return null})}).catch(function(e){n(e)})})]})})},r._getState=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=c(!0),n=OfficeCore.AppRuntimeService.newObject(t),r=n.getAppRuntimeState(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},r.showAsTaskpane=function(){return l(OfficeCore.AppRuntimeState.visible)},r.hide=function(){return l(OfficeCore.AppRuntimeState.background)},r.onVisibilityModeChanged=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r=this;return __generator(this,function(e){switch(e.label){case 0:return t=function(){if(!s){var e=c(!0);s=OfficeCore.AppRuntimeService.newObject(e)}return s}(),n=t.onVisibilityChanged.add(function(e){if(i){var t={visibilityMode:e.visibility===OfficeCore.Visibility.visible?o.taskpane:o.hidden};i(t)}return null}),[4,t.context.sync()];case 1:return e.sent(),[2,function(){return __awaiter(r,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return n.remove(),[4,t.context.sync()];case 1:return e.sent(),[2]}})})}]}})})},(i=r.beforeDocumentCloseNotification||(r.beforeDocumentCloseNotification={})).enable=function(){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=!1,"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(t=!0),n=u(t),OfficeCore.BeforeDocumentCloseNotification.newObject(n).enable(),[4,n.sync()];case 1:return e.sent(),[2]}})})},i.disable=function(){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=!1,"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(t=!0),n=u(t),OfficeCore.BeforeDocumentCloseNotification.newObject(n).disable(),[4,n.sync()];case 1:return e.sent(),[2]}})})},i.onCloseActionCancelled=function(a){return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o=this;return __generator(this,function(e){switch(e.label){case 0:return t=!1,"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(t=!0),n=u(t),r=OfficeCore.BeforeDocumentCloseNotification.newObject(n),i=r.onBeforeCloseNotificationCancelled.add(function(e){return a&&a(),null}),[4,n.sync()];case 1:return e.sent(),[2,function(){return __awaiter(o,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return i.remove(),[4,n.sync()];case 1:return e.sent(),[2]}})})}]}})})}}(Office=Office||{}),function(s){var c,e,t,n,r;function i(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}function l(){return new OfficeCore.RequestContext}(e=c=c||{}).taskpane="Taskpane",e.dialog="Dialog",n=t=s.ExtensionLifeCycle||(s.ExtensionLifeCycle={}),(r=n.taskpane||(n.taskpane={})).close=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=i(),OfficeCore.TaskpaneService.newObject(t).close(),[4,t.sync()];case 1:return e.sent(),[2]}})})},r.move=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=i(),OfficeCore.TaskpaneService.newObject(t).move(),[4,t.sync()];case 1:return e.sent(),[2]}})})},r.notifyHeaderLoaded=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=i(),OfficeCore.TaskpaneService.newObject(t).notifyHeaderLoaded(),[4,t.sync()];case 1:return e.sent(),[2]}})})},r.setWidth=function(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=i(),OfficeCore.TaskpaneService.newObject(t).setWidth(n),[4,t.sync()];case 1:return e.sent(),[2]}})})},n.launchTaskpane=function(a){return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o;return __generator(this,function(e){switch(e.label){case 0:return s.context.platform&&"OfficeOnline"===s.context.platform?(t={SharedRuntimeId:a.sharedRuntimeId,SourceLocationOverrideResourceId:a.sourceLocationOverride,TaskPaneTitle:a.taskpaneTitle,TaskPaneWidth:a.taskpaneWidth},n={OptionalProperties:t,DevProperties:a.settings},s.context.extensionLifeCycle.launchExtensionComponent(null,"Taskpane",null,null,n),[3,3]):[3,1];case 1:return r=l(),i=OfficeCore.ExtensionLifeCycle.newObject(r),o=a.settings,a.settings=o&&OSF.OUtil.serializeSettings(o),i.launchExtensionComponent("",c.taskpane,a),[4,r.sync()];case 2:e.sent(),e.label=3;case 3:return[2]}})})},n.launchDialog=function(a){return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o;return __generator(this,function(e){switch(e.label){case 0:return s.context.platform&&"OfficeOnline"===s.context.platform?(t={SharedRuntimeId:a.sharedRuntimeId,SourceLocationOverrideResourceId:a.sourceLocationOverride},n={OptionalProperties:t,DevProperties:a.settings},s.context.extensionLifeCycle.launchExtensionComponent(null,"SDXDialog",null,null,n),[3,3]):[3,1];case 1:return r=l(),i=OfficeCore.ExtensionLifeCycle.newObject(r),o=a.settings,a.settings=o&&OSF.OUtil.serializeSettings(o),i.launchExtensionComponent("",c.dialog,a),[4,r.sync()];case 2:e.sent(),e.label=3;case 3:return[2]}})})},n.launchAgent=function(n,r){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=l(),OfficeCore.ExtensionLifeCycle.newObject(t).launchAgent(n,r),[4,t.sync()];case 1:return e.sent(),[2]}})})},s.extensionLifeCycle=t}(Office=Office||{}),function(e){var t;function i(){var e=new OfficeCore.RequestContext;return"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(e._customData="WacPartition"),e}(t=e.ribbon||(e.ribbon={})).requestUpdate=function(e){var t=i(),n=t.ribbon;function r(e){void 0!==e.controls&&void 0!==e.controls.length&&e.controls.length&&e.controls.filter(function(e){return!!e.id}).forEach(function(e){var t=n.getButton(e.id);void 0!==e.enabled&&null!==e.enabled&&(t.enabled=e.enabled),void 0!==e.visible&&null!==e.visible&&(t.visible=e.visible)})}return e.tabs.filter(function(e){return!!e.id}).forEach(function(e){var t=n.getTab(e.id);void 0!==e.visible&&null!==e.visible&&t.setVisibility(e.visible),e.groups&&e.groups.length?e.groups.filter(function(e){return!!e.id}).forEach(function(e){void 0!==e.visible&&null!==e.visible&&(n.getButton(e.id).visible=e.visible),r(e)}):r(e)}),t.sync()},t.requestCreateControls=function(e){var n,t=i();return t.ribbon.executeRequestCreate(JSON.stringify(e)),n=250,new Promise(function(e,t){return setTimeout(function(){return e()},n)}).then(function(){return t.sync()})},t.saveState=function(){var e=i();return e.ribbon.executeSaveState(),e.sync()}}(Office=Office||{}),function(e){(e.contextMenu||(e.contextMenu={})).requestUpdate=function(e){if(OfficeExtension&&OfficeExtension.Utility&&!OfficeExtension.Utility.isSetSupported("ContextMenuApi","1.1"))throw OfficeExtension.Utility.createRuntimeError(OfficeCore.ErrorCodes.apiNotAvailable,null,null);var t,n=(t=new OfficeCore.RequestContext,"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(t._customData="WacPartition"),t),r=n.ribbon;return e.controls.filter(function(e){return!!e.id}).forEach(function(e){var t=r.getButton(e.id);void 0!==e.enabled&&null!==e.enabled&&(t.enabled=e.enabled)}),n.sync()}}(Office=Office||{}),function(e){var t;OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject,OfficeExtension.BatchApiHelper.createTopLevelServiceObject,OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod,OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined,OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson,OfficeExtension.Utility.fixObjectPathIfNecessary,OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult,OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags;(t||(t={})).generalException="GeneralException";new OfficeExtension.LibraryBuilder({metadata:{version:"1.0.0",name:"OfficeCore",defaultApiSetName:"OfficeSharedApi",hostName:"Office",apiSets:[],strings:["AddinInternalService"],enumTypes:[],clientObjectTypes:[[1,0,0,0,[["notifyActionHandlerReady",0,2,0,4]],0,0,0,0,"Microsoft.InternalService.AddinInternalService",4]]},targetNamespaceObject:e})}(OfficeCore=OfficeCore||{}),function(e){var r,t,d,h,g,m;function y(e){if(e){var t=e.toUpperCase(),n=r.mappings[t];if(!d(n)&&"function"==typeof n)return n}throw OfficeExtension.Utility.createRuntimeError("invalidOperation","sourceData","ActionProxy._getFunction")}function v(e,t,n,r){var i=OSF._OfficeAppFactory.getHostInfo();if(i&&"web"===i.hostPlatform.toLowerCase())OSF._OfficeAppFactory.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[OSF._OfficeAppFactory.getId(),OSF.AgaveHostAction.ReportAddinSkillResult,{actionCorrelationId:e,resultCode:t,replyMessage:r}]);else{if(d(OSF.ClientHostController)||d(OSF.ClientHostController.execute))throw new OfficeExtension.Error({code:"GenericException",message:"API currently unsupported."});var o=d(OSF.MethodDispId)?OSF.DDA.MethodDispId.dispidAddinSkillActionReply:OSF.MethodDispId.dispidAddinSkillActionReply;OSF.ClientHostController.execute(o,[e,r,t],null)}var a,s,c=[oteljs.makeStringDataField("CorrelationId",e),oteljs.makeStringDataField("Message",n),oteljs.makeInt64DataField("ResultCode",t)];a="Office.Extensibility.OfficeJs.AddinSkill.ExecuteAction",s=c,Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:a,dataFields:s,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage,diagnosticLevel:oteljs.DiagnosticLevel.Optional,samplingPolicy:oteljs.SamplingPolicy.CriticalBusinessImpact}})}function n(e){try{OfficeExtension.Utility.log("ActionProxy._handleMessage"),OfficeExtension.Utility.checkArgumentNull(e,"args");function t(e){if(f[e].messageCategory!==h)return"continue";if("string"==typeof f[e].message&&(f[e].message=JSON.parse(f[e].message)),f[e].messageType===g){var t=null,n=y(i=f[e].message[0]);if(2<=f[e].message.length){var r=f[e].message[1];r&&("string"==typeof(p=r)&&"{"===p[0]?"autorunEventType"in(t=JSON.parse(r))&&"autorunEventHost"in t&&"autorunEventPlatform"in t&&("win32"!==t.autorunEventPlatform&&"mac"!==t.autorunEventPlatform||("word"===t.autorunEventHost?t.completed=function(r){return __awaiter(this,void 0,void 0,function(){var n=this;return __generator(this,function(e){switch(e.label){case 0:return r.autorunEventType=this.autorunEventType,[4,Word.run(function(t){return __awaiter(n,void 0,void 0,function(){return __generator(this,function(e){return t.document.autorunEventCompleted(r),[2]})})})];case 1:return e.sent(),[2]}})})}:"excel"===t.autorunEventHost?t.completed=function(r){return __awaiter(this,void 0,void 0,function(){var n=this;return __generator(this,function(e){switch(e.label){case 0:return r.autorunEventType=this.autorunEventType,[4,Excel.run(function(t){return __awaiter(n,void 0,void 0,function(){return __generator(this,function(e){return t.workbook.autorunEventCompleted(r),[2]})})})];case 1:return e.sent(),[2]}})})}:"powerpoint"===t.autorunEventHost&&(t.completed=function(r){return __awaiter(this,void 0,void 0,function(){var n=this;return __generator(this,function(e){switch(e.label){case 0:return r.autorunEventType=this.autorunEventType,[4,PowerPoint.run(function(t){return __awaiter(n,void 0,void 0,function(){return __generator(this,function(e){return t.presentation.autorunEventCompleted(r),[2]})})})];case 1:return e.sent(),[2]}})})}))):t=r)}n.apply(null,[t])}else if(f[e].messageType===m){t=null;var i=f[e].message[0],o=f[e].message[1],a=JSON.parse(o);t=a.message;var s=a.correlationId,c=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess,l=null,u="";n=null;try{n=y(i)}catch(e){c=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultNoActionFunctionMapping,u="ActionProxy._handleMessage failed to get function",b(e)}if(c==OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess&&n)try{l=n.apply(null,[t])}catch(e){c=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvocationFailed,u="ActionProxy._handleMessage failed to execute function",b(e)}if(c==OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess&&d(l)?(c=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultNoResultGenerated,u="No result generated"):c!=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess||"object"==typeof l&&"function"==typeof l.then||(c=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvalidResultGenerated,u="Invalid result generated"),c==OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess)try{l.then(function(e){u="Successfully executed function",d(e)?(e="",c=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultNoResultGenerated,u="No result generated"):"string"!=typeof e&&(e="",c=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvalidResultGenerated,u="Invalid result generated"),v(s,c,u,e)},function(e){var t="";c=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvocationFailed,u="Failed to execute function","string"==typeof e?t=e:b(e),v(s,c,u,t)})}catch(e){c=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvalidResultGenerated,u="Invalid result generated",b(e),v(s,c,u,"")}else try{v(s,c,u,"")}catch(e){b(e)}}else OfficeExtension.Utility.log("ActionProxy._handleMessage unknown message type "+f[e].messageType);var p}for(var f=e.entries,n=0;n<f.length;n++)t(n)}catch(e){throw b(e),e}return OfficeExtension.Utility._createPromiseFromResult(null)}function b(e){var t=function(e){var t="Unknown Error";if(e)try{e.toString&&(t=e.toString()),t=t+" "+JSON.stringify(e)}catch(e){t="Unexpected Error"}return t}(e);OfficeExtension.Utility.log(t)}function i(){try{Microsoft.Office.WebExtension.onReadyInternal().then(function(){return function(){if(void 0!==OSF&&OSF.DDA&&OSF.DDA.RichApi&&OSF.DDA.RichApi.richApiMessageManager)return(new OfficeExtension.ClientRequestContext).eventRegistration.register(5,"",n)}()}).then(function(){var e,t,n=OSF._OfficeAppFactory.getHostInfo();return!0===n.isDialog||"web"===n.hostPlatform.toLowerCase()&&"word"!==n.hostType&&"excel"!==n.hostType&&"powerpoint"!==n.hostType?void 0:(e=new OfficeExtension.ClientRequestContext,t=OfficeCore.AddinInternalService.newObject(e),e._customData="WacPartition",t.notifyActionHandlerReady(),e.sync())})}catch(e){}}d=OfficeExtension.Utility.isNullOrUndefined,h=2,g=1e3,m=1001,OfficeExtension.Utility.log("ActionProxy.initOnce"),void 0!==e.actions&&(t=e.actions._association,r=t),"undefined"!=typeof document&&(document.readyState&&"loading"!==document.readyState?(OfficeExtension.Utility.log("ActionProxy.initOnce: document.readyState is not loading state"),i()):document.addEventListener&&document.addEventListener("DOMContentLoaded",function(){OfficeExtension.Utility.log("ActionProxy.initOnce: DOMContentLoaded event triggered"),i()})),OfficeExtension.HostBridge.onInited(function(e){e.addHostMessageHandler(function(e){3===e.type&&n(e.message)})})}(Office=Office||{}),function(e){var t;function c(e){var t=new OfficeCore.RequestContext;return e&&e.controlId&&(t.requestHeaders[OfficeExtension.Constants.officeControlId]=e.controlId),t._customData="WacPartition",t}(t=e.AugLoop||(e.AugLoop={})).SendMessage=function(r,i){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=void 0!==i?i:r,n=c(void 0!==i?r:void 0),OfficeCore.AugLoopEventService.newObject(n).sendMessage(t),[4,n.sync()];case 1:return e.sent(),[2]}})})},t.onHostMessageReceived=function(a,s){return __awaiter(this,void 0,void 0,function(){var n,t,r,i,o=this;return __generator(this,function(e){switch(e.label){case 0:return n=void 0!==s?s:a,t=c(void 0!==s?a:void 0),r=OfficeCore.AugLoopEventService.newObject(t),i=function(e){if(n){var t=e.data;n(t)}return null},r.onHostMessageReceived.add(i),[4,r.context.sync()];case 1:return e.sent(),[2,function(){return __awaiter(o,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return r.onHostMessageReceived.remove(i),[4,t.sync()];case 1:return e.sent(),[2]}})})}]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t,u,p;function f(e){return"object"==typeof e&&"string"==typeof e.controlId?e.controlId:void 0}function d(e){var t=new OfficeCore.RequestContext;return e&&(t.requestHeaders[OfficeExtension.Constants.officeControlId]=e),t._customData="SkipUndoRecording",t}t=e.Undo||(e.Undo={}),p={},t.undo=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=d(f(i)),n=OfficeCore.UndoService.newObject(t),r=n.undo(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.onUndoStackChanged=function(o,a){return __awaiter(this,void 0,void 0,function(){var t,n,r,i=this;return __generator(this,function(e){switch(e.label){case 0:return t=a||o,n=d(f(a?o:void 0)),(r=OfficeCore.UndoService.newObject(n)).onUndoStackChanged.add(t),[4,n.sync()];case 1:return e.sent(),[2,function(){return __awaiter(i,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return r.onUndoStackChanged.remove(t),[4,n.sync()];case 1:return e.sent(),[2]}})})}]}})})},t.startCopilotOperation=function(l){return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o,a,s,c;return __generator(this,function(e){switch(e.label){case 0:if(void 0===(t=f(l))){if(void 0!==u)throw new Error("startCopilotOperation is already inprogress")}else if(p[t])throw new Error("startCopilotOperation is already in progress");n=function(){},r=new Promise(function(e){void 0===t?u=e:p[t]=e}),e.label=1;case 1:return e.trys.push([1,4,,5]),i=d(t),o=OfficeCore.UndoService.newObject(i),a=function(){return function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return void 0===t?void 0!==u&&(u(),u=void 0):p[t]&&(p[t](),delete p[t]),[2]})})}(t)},n=function(){try{o.onCopilotOperationStarted.remove(a),i.sync()}catch(e){}},o.onCopilotOperationStarted.add(a),[4,i.sync()];case 2:return e.sent(),s=o.startCopilotOperation(""),[4,i.sync()];case 3:return(e.sent(),s.value)?(void 0!==t&&r.then(function(){n()}),[2,r]):(void 0===t?u=void 0:(n(),delete p[t]),[3,5]);case 4:throw c=e.sent(),void 0===t?u=void 0:(n(),delete p[t]),c;case 5:return[2]}})})},t.endCopilotOperation=function(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=d(f(n)),OfficeCore.UndoService.newObject(t).endCopilotOperation(""),[4,t.sync()];case 1:return e.sent(),[2]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t;(t=e.dialogPage||(e.dialogPage={})).close=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=new OfficeCore.RequestContext,OfficeCore.DialogPage.newObject(t).close(),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.readyToShow=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=new OfficeCore.RequestContext,OfficeCore.DialogPage.newObject(t).readyToShow(),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.onShow=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=new OfficeCore.RequestContext,(n=OfficeCore.DialogPage.newObject(t)).onOnShowEvent.add(i),r=function(){return n.onOnShowEvent.remove(i),null},[4,t.sync()];case 1:return e.sent(),[2,r]}})})},t.sendMessageToHost=function(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=new OfficeCore.RequestContext,OfficeCore.DialogPage.newObject(t).sendMessageToHost(n),[4,t.sync()];case 1:return e.sent(),[2]}})})}}(Office=Office||{}),function(e){var t;function a(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}(t=e.UserFeedback||(e.UserFeedback={})).CollectUserFeedback=function(n,r,i,o){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=a(),OfficeCore.UserFeedbackService.newObject(t).collectUserFeedback(n,r,i,o),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.onUserFeedbackUIDismissed=function(o){return __awaiter(this,void 0,void 0,function(){var t,n,r,i=this;return __generator(this,function(e){switch(e.label){case 0:return t=function(e){if(o){var t=e.isFeedbackSent;o(t)}return null},n=a(),(r=OfficeCore.UserFeedbackService.newObject(n)).onUserFeedbackUIDismissed.add(t),[4,r.context.sync()];case 1:return e.sent(),[2,function(){return __awaiter(i,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return r.onUserFeedbackUIDismissed.remove(t),[4,n.sync()];case 1:return e.sent(),[2]}})})}]}})})},t.CanCollectUserFeedback=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=a(),n=OfficeCore.UserFeedbackService.newObject(t),r=n.canCollectUserFeedback(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.onUserFeedbackResponse=function(o){return __awaiter(this,void 0,void 0,function(){var t,n,r,i=this;return __generator(this,function(e){switch(e.label){case 0:return t=function(e){if(o){var t=e.responseData;o(t)}return null},n=a(),(r=OfficeCore.UserFeedbackService.newObject(n)).onUserFeedbackResponse.add(t),[4,r.context.sync()];case 1:return e.sent(),[2,function(){return __awaiter(i,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return r.onUserFeedbackResponse.remove(t),[4,n.sync()];case 1:return e.sent(),[2]}})})}]}})})},t.InvokeDiagnosticsLogsUpload=function(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=a(),OfficeCore.UserFeedbackService.newObject(t).invokeDiagnosticsLogsUpload(n),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.GetInitializationData=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=a(),n=OfficeCore.UserFeedbackService.newObject(t),r=n.getInitializationData(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.GetHostScreenshot=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=a(),n=OfficeCore.UserFeedbackService.newObject(t),r=n.getHostScreenshot(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.CanCollectCopilotFeedback=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=a(),n=OfficeCore.UserFeedbackService.newObject(t),r=n.canCollectCopilotFeedback(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.CollectFeedbackEligibility=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=a(),n=OfficeCore.UserFeedbackService.newObject(t),r=n.collectFeedbackEligibility(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.CheckFeedbackEligibility=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=a(),n=OfficeCore.UserFeedbackService.newObject(t),r=n.checkFeedbackEligibility(i),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t,n;function s(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}function c(e){return JSON.stringify(e instanceof n?{type:"callout",params:e.params}:{type:"custom",props:e})}t=e.Notification||(e.Notification={}),n=function(){},t.callout=function(e){var t=new n;return t.params=e,t},t.addNotification=function(o,a){return __awaiter(this,void 0,void 0,function(){var n,r,i;return __generator(this,function(e){switch(e.label){case 0:return n=s(),r=OfficeCore.NotificationService.newObject(n),i=r.addNotification(c(o),(t=a,JSON.stringify(t))),[4,n.sync()];case 1:return e.sent(),[2,i.value]}var t})})},t.updateNotification=function(n,r){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=s(),OfficeCore.NotificationService.newObject(t).updateNotification(n,c(r)),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.removeNotification=function(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=s(),OfficeCore.NotificationService.newObject(t).removeNotification(n),[4,t.sync()];case 1:return e.sent(),[2]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t;function l(e){var t=new OfficeCore.RequestContext;return e&&e.controlId&&(t.requestHeaders[OfficeExtension.Constants.officeControlId]=e.controlId),t._customData="WacPartition",t}(t=e.Sensitivity||(e.Sensitivity={})).getLabel=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=l(i),n=OfficeCore.SensitivityService.newObject(t),r=n.getLabel(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.tryUpgradeLabel=function(){for(var a=[],e=0;e<arguments.length;e++)a[e]=arguments[e];return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o;return __generator(this,function(e){switch(e.label){case 0:if(t=3===a.length,2!==a.length&&3!==a.length)throw new Error("tryUpgradeLabel: Invalid number of parameters ("+a.length+")");return n=t?a[0]:void 0,r=t?a[1]:a[0],i=t?a[2]:a[1],o=l(n),OfficeCore.SensitivityService.newObject(o).tryUpgradeLabel(r,i),[4,o.sync()];case 1:return e.sent(),[2]}})})},t.getHighestSensitivityLabel=function(){for(var s=[],e=0;e<arguments.length;e++)s[e]=arguments[e];return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o,a;return __generator(this,function(e){switch(e.label){case 0:if(t=2===s.length,1!==s.length&&2!==s.length)throw new Error("getHighestSensitivityLabel: Invalid number of parameters ("+s.length+")");return n=t?s[0]:void 0,r=t?s[1]:s[0],i=l(n),o=OfficeCore.SensitivityService.newObject(i),a=o.getHighestSensitivityLabel(r),[4,i.sync()];case 1:return e.sent(),[2,a.value]}})})},t.getSensitivityResultDetails=function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e];return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o,a,s;return __generator(this,function(e){switch(e.label){case 0:if(t=3===c.length,2!==c.length&&3!==c.length)throw new Error("getSensitivityResultDetails: Invalid number of parameters ("+c.length+")");return n=t?c[0]:void 0,r=t?c[1]:c[0],i=t?c[2]:c[1],o=l(n),a=OfficeCore.SensitivityService.newObject(o),s=a.getSensitivityResultDetails(r,i),[4,o.sync()];case 1:return e.sent(),[2,s.value]}})})},t.getSensitivityResultDetailsByStringErrorCode=function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e];return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o,a,s;return __generator(this,function(e){switch(e.label){case 0:if(t=3===c.length,2!==c.length&&3!==c.length)throw new Error("getSensitivityResultDetails: Invalid number of parameters ("+c.length+")");return n=t?c[0]:void 0,r=t?c[1]:c[0],i=t?c[2]:c[1],o=l(n),a=OfficeCore.SensitivityService.newObject(o),s=a.getSensitivityResultDetailsByStringErrorCode(r,i),[4,o.sync()];case 1:return e.sent(),[2,s.value]}})})},t.onLabelChangedEvent=function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e];return __awaiter(this,void 0,void 0,function(){var t,n,o,r,i,a,s=this;return __generator(this,function(e){switch(e.label){case 0:if(t=2===c.length,1!==c.length&&2!==c.length)throw new Error("onLabelChangedEvent: Invalid number of parameters ("+c.length+")");return n=t?c[0]:void 0,o=t?c[1]:c[0],r=function(e){if(o){var t=e.previousLabel,n=e.newLabel,r=e.context,i=e.error;o(t,n,r,i)}return null},i=l(n),(a=OfficeCore.SensitivityService.newObject(i)).onLabelChanged.add(r),[4,a.context.sync()];case 1:return e.sent(),[2,function(){return __awaiter(s,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return a.onLabelChanged.remove(r),[4,i.sync()];case 1:return e.sent(),[2]}})})}]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t;function i(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}(t=e.Copilot||(e.Copilot={})).launchHelpPaneByQuery=function(r){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=i(),n=OfficeCore.CopilotService.newObject(t),n.launchHelpPaneByQuery(r),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.launchHelpPaneByArticleId=function(r){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=i(),n=OfficeCore.CopilotService.newObject(t),n.launchHelpPaneByArticleId(r),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.launchHelpPaneByArticleIdString=function(r){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=i(),n=OfficeCore.CopilotService.newObject(t),n.launchHelpPaneByArticleIdString(r),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.launchTaskPaneByAgentId=function(r){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=i(),n=OfficeCore.CopilotService.newObject(t),n.launchTaskPaneByAgentId(r),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.getWindowClientWidth=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=i(),n=OfficeCore.CopilotService.newObject(t),r=n.getWindowClientWidth(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t;function l(e){var t=new OfficeCore.RequestContext;return e&&e.controlId&&(t.requestHeaders[OfficeExtension.Constants.officeControlId]=e.controlId),t._customData="WacPartition",t}(t=e.PrivateApi||(e.PrivateApi={})).execute=function(){for(var s=[],e=0;e<arguments.length;e++)s[e]=arguments[e];return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o,a;return __generator(this,function(e){switch(e.label){case 0:return t=2<=s.length,n=t?s[0]:void 0,r=t?s[1]:s[0],i=l(n),o=OfficeCore.PrivateApiService.newObject(i),a=o.execute(r),[4,i.sync()];case 1:return e.sent(),[2,a.value]}})})},t.onPrivateEvent=function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e];return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o,a,s=this;return __generator(this,function(e){switch(e.label){case 0:return t=2<=c.length,n=t?c[0]:void 0,r=t?c[1]:c[0],i=function(e){if(r){var t=e.messageData;r(t)}return null},o=l(n),(a=OfficeCore.PrivateApiService.newObject(o)).onOnPrivateEvent.add(i),[4,a.context.sync()];case 1:return e.sent(),[2,function(){return __awaiter(s,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return a.onOnPrivateEvent.remove(i),[4,o.sync()];case 1:return e.sent(),[2]}})})}]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t,o,n,r;function a(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}t=e.UnifiedStore||(e.UnifiedStore={}),(o=t.DefaultPageType||(t.DefaultPageType={})).copilotAgentsPage="CopilotAgentsPage",(n=t.CopilotAgentActionType||(t.CopilotAgentActionType={})).activated="Activated",n.removed="Removed",(r=t.RefreshAcquisitionStateTriggerType||(t.RefreshAcquisitionStateTriggerType={})).host="Host",r.api="Api",t.launchStore=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:if(i!==o.copilotAgentsPage)throw OfficeExtension.Utility.createRuntimeError(OfficeExtension.ErrorCodes.invalidArgument,null,null);return(t=a(),n=OfficeCore.UnifiedStoreService.newObject(t),i!=o.copilotAgentsPage)?[3,2]:(r=n.launchStoreDialogWithCopilotAgentPageShown(),[4,t.sync()]);case 1:return e.sent(),[2,r];case 2:return[2]}})})},t.refreshAcquisitionState=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){return t=a(),n=OfficeCore.UnifiedStoreService.newObject(t),r=n.refreshAcquisitionState(),t.sync().then(function(){var e=JSON.parse(r.value);i(e)}),[2,null]})})},t.getAcquisitionState=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){return t=a(),n=OfficeCore.UnifiedStoreService.newObject(t),r=n.getAcquisitionState(),t.sync().then(function(){var e=JSON.parse(r.value);i(e)}),[2,null]})})},t.onCopilotAgentEvent=function(o){return __awaiter(this,void 0,void 0,function(){var t,n,r,i=this;return __generator(this,function(e){switch(e.label){case 0:return t=function(e){if(o){var t=JSON.parse(e.messageData),n=t.actionType,r=t.titleId;o({actionType:n,titleId:r})}return null},n=a(),(r=OfficeCore.UnifiedStoreService.newObject(n)).onCopilotAgentEvent.add(t),[4,r.context.sync()];case 1:return e.sent(),[2,function(){return __awaiter(i,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return r.onCopilotAgentEvent.remove(t),[4,n.sync()];case 1:return e.sent(),[2]}})})}]}})})},t.onRefreshedAcquisitionState=function(o){return __awaiter(this,void 0,void 0,function(){var t,n,r,i=this;return __generator(this,function(e){switch(e.label){case 0:return t=function(e){if(o){var t=JSON.parse(e.messageData);o(t)}return null},n=a(),(r=OfficeCore.UnifiedStoreService.newObject(n)).onRefreshedAcquisitionStateEvent.add(t),[4,r.context.sync()];case 1:return e.sent(),[2,function(){return __awaiter(i,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return r.onRefreshedAcquisitionStateEvent.remove(t),[4,n.sync()];case 1:return e.sent(),[2]}})})}]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t;function i(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}(t=e.BusinessBar||(e.BusinessBar={})).hide=function(r){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=i(),n=OfficeCore.BusinessBarService.newObject(t),n.hide(r),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.show=function(n,r){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=i(),OfficeCore.BusinessBarService.newObject(t).show(n,r),[4,t.sync()];case 1:return e.sent(),[2]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){(e.SimpleDialog||(e.SimpleDialog={})).launchSimpleDialog=function(o){return __awaiter(this,void 0,void 0,function(){var n,r,i;return __generator(this,function(e){switch(e.label){case 0:return(t=new OfficeCore.RequestContext)._customData="WacPartition",n=t,r=OfficeCore.ShowSimpleDialog.newObject(n),i=r.launchSimpleDialog(o.title,o.description,o.telemetryid,o.category,o.hasButton,o.buttonLabel,o.hasCheckbox,o.checkboxLabel),[4,n.sync()];case 1:return e.sent(),[2,i.value]}var t})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){(e.DispatchApi||(e.DispatchApi={})).execute=function(o,a){return __awaiter(this,void 0,void 0,function(){var n,r,i;return __generator(this,function(e){switch(e.label){case 0:return(t=new OfficeCore.RequestContext)._customData="WacPartition",n=t,r=OfficeCore.DispatchApiService.newObject(n),i=r.execute(o,a),[4,n.sync()];case 1:return e.sent(),[2,i.value]}var t})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t;(t=e.DevicePermissionType||(e.DevicePermissionType={})).camera="camera",t.microphone="microphone",t.geolocation="geolocation",(e.devicePermission||(e.devicePermission={})).requestPermissions=function(o){return __awaiter(this,void 0,void 0,function(){var n,r,i;return __generator(this,function(e){switch(e.label){case 0:return(t=new OfficeCore.RequestContext)._customData="WacPartition",n=t,r=OfficeCore.DevicePermissionService.newObject(n),i=r.requestPermissions(o),[4,n.sync()];case 1:return e.sent(),[2,i.value]}var t})})}}(Office=Office||{}),function(e){var c,t,n,l,r;function u(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}function p(e){!function(){if(null==r){r=function(e){var t=e.actionCorrelationId,n=(e.replyMessage,e.resultCode,l[t]);return null!=n&&(n.replyMessage=e.replyMessage,n.resultCode=e.resultCode,n.replyPromiseResolver()),null};var e=u();OfficeCore.AddinSkillActionService.newObject(e).onReplyReceived.add(r),e.sync().then(null,function(e){console.log("There was an error registering the reply event listener!")})}}();var t={correlationId:e,replyPromise:null,replyPromiseResolver:null,replyMessage:null,resultCode:0};return t.replyPromise=new Promise(function(e){t.replyPromiseResolver=e}),l[e]=t}(t=c=e.AddinInvokeResult||(e.AddinInvokeResult={}))[t.AddinInvokeResultNotInstalled=-1]="AddinInvokeResultNotInstalled",t[t.AddinInvokeResultSkillNotFound=-2]="AddinInvokeResultSkillNotFound",t[t.AddinInvokeResultLaunchFailed=-3]="AddinInvokeResultLaunchFailed",t[t.AddinInvokeResultSuccess=0]="AddinInvokeResultSuccess",t[t.AddinInvokeResultInvocationFailed=1]="AddinInvokeResultInvocationFailed",t[t.AddinInvokeResultNoResultGenerated=2]="AddinInvokeResultNoResultGenerated",t[t.AddinInvokeResultInvalidResultGenerated=3]="AddinInvokeResultInvalidResultGenerated",t[t.AddinInvokeResultNoActionFunctionMapping=4]="AddinInvokeResultNoActionFunctionMapping",n=e.AddinSkillAction||(e.AddinSkillAction={}),l={},r=null,n.InvokeAction=function(o,a,s){return __awaiter(this,void 0,void 0,function(){var t,n,r,i;return __generator(this,function(e){switch(e.label){case 0:t=u(),n=OfficeCore.AddinSkillActionService.newObject(t),r=OSF.OUtil.Guid.generateNewGuid(),i=p(r),e.label=1;case 1:return e.trys.push([1,,4,5]),n.invokeAction(o,a,s,r),[4,t.sync()];case 2:return e.sent(),[4,i.replyPromise];case 3:return e.sent(),[3,5];case 4:return delete l[r],[7];case 5:if(i.resultCode==c.AddinInvokeResultSuccess){if("string"==typeof i.replyMessage)return[2,i.replyMessage];i.resultCode=c.AddinInvokeResultInvalidResultGenerated}switch(i.resultCode){case c.AddinInvokeResultNotInstalled:throw new OfficeExtension.Error({code:"AddinNotInstalled",message:"Add-in not installed."});case c.AddinInvokeResultSkillNotFound:throw new OfficeExtension.Error({code:"SkillNotFound",message:"Skill not found in the add-in manifest."});case c.AddinInvokeResultLaunchFailed:throw new OfficeExtension.Error({code:"LaunchFailed",message:"Add-in launch failed."});case c.AddinInvokeResultInvocationFailed:throw new OfficeExtension.Error({code:"InvocationFailed",message:"Skill invocation failed."});case c.AddinInvokeResultNoResultGenerated:throw new OfficeExtension.Error({code:"NoResultGenerated",message:"No result generated."});case c.AddinInvokeResultInvalidResultGenerated:throw new OfficeExtension.Error({code:"InvalidResultGenerated",message:"Invalid result generated."});case c.AddinInvokeResultNoActionFunctionMapping:throw new OfficeExtension.Error({code:"NoActionFunctionMapping",message:"No action function mapping."});default:throw new OfficeExtension.Error({code:"UnknownError",message:"Unknown error (code = "+i.resultCode+")."})}return[2]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){(e.ThemeService||(e.ThemeService={})).getofficethemedataforvisualsurface=function(o){return __awaiter(this,void 0,void 0,function(){var n,r,i;return __generator(this,function(e){switch(e.label){case 0:return(t=new OfficeCore.RequestContext)._customData="WacPartition",n=t,r=OfficeCore.ThemeService.newObject(n),i=r.getOfficeThemeDataForVisualSurface(o),[4,n.sync()];case 1:return e.sent(),[2,JSON.parse(i.value)]}var t})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t;function n(){try{if(void 0!==OSF&&void 0!==OSF.isOfficeReactNative&&OSF.isOfficeReactNative())return 1}catch(e){}}function r(){var e="web";try{void 0!==OSF&&void 0!==OSF._OfficeAppFactory&&void 0!==OSF._OfficeAppFactory.getHostInfo&&(e=OSF._OfficeAppFactory.getHostInfo().hostPlatform)}catch(e){}return e}(t=e.ApiHelper||(e.ApiHelper={})).isNativeStorage=function(){var e=r();return!(function(){try{if(void 0!==OSF&&void 0!==OSF._OfficeAppFactory&&void 0!==OSF._OfficeAppFactory.getHostInfo)if(OSF._OfficeAppFactory.getHostInfo().flags&OSF.HostInfoFlags.SharedApp)return 1}catch(e){}}()||!(n()||"win32"===e||"mac"===e&&window._useSDXSandbox))},t.isNativeApiInfomation=function(){var e=r();return!!(n()||"win32"===e||"mac"===e&&window._useSDXSandbox)},t.isNativeDialog=function(){var e=r();return!(!n()&&"win32"!==e)}}(OfficeRuntime=OfficeRuntime||{}),function(e){e.ApiHelper.isNativeApiInfomation()?e.apiInformation=t:e.apiInformation=n;var t={isSetSupported:function(e,t){if("string"!=typeof e)return!1;if(null==t&&(t="0.0.0"),void 0===global.__apiSets)return!1;var n=global.__apiSets,r=Object.keys(n).map(function(e){return e.toLowerCase()}).indexOf(e.toLowerCase());if(-1<r){var i=n[Object.keys(n)[r]];try{var o=s(t),a=void 0;if(0<(a=Array.isArray(i)?function(e,t){for(var n=0;n<e.length;n++){var r=s(e[n]);if(r.major==t)return r}return{major:0,minor:0,patch:0}}(i,o.major):s(i)).major){if(a.major>o.major)return!0;if(a.major==o.major&&a.minor>o.minor)return!0;if(a.major==o.major&&a.minor==o.minor&&a.patch>=o.patch)return!0}}catch(e){return!1}}return!1}},n={isSetSupported:function(e,t){try{return!!(Office&&Office.context&&Office.context.requirements)&&Office.context.requirements.isSetSupported(e,Number(t))}catch(e){return!1}}};function s(e){var t=e.split("."),n=0,r=0,i=0;if(t.length<2&&isNaN(Number(e)))throw"version format incorrect";if(n=Number(t[0]),2<=t.length&&(r=Number(t[1])),3<=t.length&&(i=Number(t[2])),isNaN(n)||isNaN(r)||isNaN(i))throw"version format incorrect";return{major:n,minor:r,patch:i}}}(OfficeRuntime=OfficeRuntime||{});var OfficeRuntime;__extends=this&&this.__extends||function(){var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}();!function(o){OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject;function e(e){this._dialogService=e}var t=OfficeExtension.BatchApiHelper.createTopLevelServiceObject,n=(OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod),r=(OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined),i=(OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson),a=OfficeExtension.Utility.fixObjectPathIfNecessary,s=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult);OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags;o.Dialog=e;var c,l=(__extends(u,c=e),u.prototype.close=function(){return this._dialogService.close(),OfficeExtension.CoreUtility.Promise.resolve()},u);function u(){return null!==c&&c.apply(this,arguments)||this}var p,f=(__extends(d,p=e),d.prototype.close=function(){return this._dialogService.close(),this._dialogService.context.sync()},d);function d(){return null!==p&&p.apply(this,arguments)||this}function h(e){return/^(\-|\+)?([0-9]+)%?$/.test(e)}function g(e){var t,n=((t={})[12002]={code:"InvalidUrl",message:"Cannot load URL, no such page or bad URL syntax."},t[12003]={code:"InvalidUrl",message:"HTTPS is required."},t[12004]={code:"Untrusted",message:"Domain is not trusted."},t[12005]={code:"InvalidUrl",message:"HTTPS is required."},t[12007]={code:"FailedToOpen",message:"Another dialog is already opened."},t);return n[e]?n[e]:{code:"Unknown",message:"An unknown error has occured with code: "+e}}o.displayWebDialog=function(r,i){return void 0===i&&(i={}),new OfficeExtension.CoreUtility.Promise(function(e,t){if(i.width&&i.height&&(!h(i.width)||!h(i.height)))throw new OfficeExtension.Error({code:"InvalidArgument",message:'Dimensions must be "number%" or number.'});var n={width:i.width?parseInt(i.width):50,height:i.height?parseInt(i.height):50,displayInIFrame:i.displayInIFrame};(o.ApiHelper.isNativeDialog()?function(e,t,n,r,i){void 0===i&&(i={});var o=new OfficeExtension.ClientRequestContext,a=b.newObject(o),s=new f(a),c=a.onDialogMessage.add(function(e){switch(OfficeExtension.Utility.log("dialogMessageHandler:"+JSON.stringify(e)),e.type){case 17:e.error?n(e.error):t(s);break;case 12:i.onMessage&&i.onMessage(e.message,s);break;case 10:default:12006===e.originalErrorCode?(c&&(c.remove(),o.sync()),i.onClose&&i.onClose()):i.onRuntimeError&&(i.onRuntimeError(e.error,s),n(e.error))}return OfficeExtension.CoreUtility.Promise.resolve()});o.sync().then(function(){return a.displayDialog(r,e),o.sync()}).catch(function(e){n(e)})}:function(e,t,n,r,i){void 0===i&&(i={});var o;function a(e){i.onMessage&&i.onMessage(e.message,o,e.origin)}function s(e){12006===e.error?i.onClose&&i.onClose():i.onRuntimeError&&i.onRuntimeError(new OfficeExtension.Error(g(e.error)),o)}Office.context.ui.displayDialogAsync(r,e,function(e){"failed"===e.status?n(new OfficeExtension.Error(g(e.error.code))):((o=e.value).addEventHandler(Office.EventType.DialogMessageReceived,a),o.addEventHandler(Office.EventType.DialogEventReceived,s),t(new l(o)))})})(n,e,t,r,i)})};var m,y,v,b=(m=OfficeExtension.ClientObject,__extends(_,m),Object.defineProperty(_.prototype,"_className",{get:function(){return"DialogService"},enumerable:!0,configurable:!0}),_.prototype.close=function(){n(this,"Close",1,[],4,0)},_.prototype.displayDialog=function(e,t){n(this,"DisplayDialog",1,[e,t],4,0)},_.prototype._handleResult=function(e){m.prototype._handleResult.call(this,e),r(e)||a(this,e)},_.prototype._handleRetrieveResult=function(e,t){m.prototype._handleRetrieveResult.call(this,e,t),s(this,e,t)},_.newObject=function(e){return t(o.DialogService,e,"Microsoft.Dialog.DialogService",!1,4)},Object.defineProperty(_.prototype,"onDialogMessage",{get:function(){return this.m_dialogMessage||(this.m_dialogMessage=new OfficeExtension.GenericEventHandlers(this.context,this,"DialogMessage",{eventType:65536,registerFunc:function(){},unregisterFunc:function(){},getTargetIdFunc:function(){return null},eventArgsTransformFunc:function(e){var t;try{var n=JSON.parse(e.message),r=n.errorCode?new OfficeExtension.Error(g(n.errorCode)):null;t={originalErrorCode:n.errorCode,type:n.type,error:r,message:n.message,origin:n.origin}}catch(e){t={originalErrorCode:null,type:17,error:new OfficeExtension.Error({code:"GenericException",message:"Unknown error"}),message:e.message}}return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_dialogMessage},enumerable:!0,configurable:!0}),_.prototype.toJSON=function(){return i(this,{},{})},_);function _(){return null!==m&&m.apply(this,arguments)||this}o.DialogService=b,(v=y=y||{})[v.dialogMessageReceived=0]="dialogMessageReceived",v[v.dialogEventReceived=1]="dialogEventReceived",(o.DialogErrorCodes||(o.DialogErrorCodes={})).generalException="GeneralException"}(OfficeRuntime=OfficeRuntime||{}),function(e){var t;function n(e,t){try{var n=Microsoft.Office.WebExtension.FeatureGates[e];return null==n?t:"true"===n.toString().toLowerCase()}catch(e){return t}}function r(e,t){try{var n=Microsoft.Office.WebExtension.FeatureGates,r=parseInt(n[e]);return isNaN(r)?t:r}catch(e){return t}}function i(e,t){try{var n=Microsoft.Office.WebExtension.FeatureGates[e];return null==n?t:n}catch(e){return t}}(t=e.experimentation||(e.experimentation={})).getBooleanFeatureGate=n,t.getIntFeatureGate=r,t.getStringFeatureGate=i,t.getBooleanFeatureGateAsync=function(e,t){return Promise.resolve(n(e,t))},t.getIntFeatureGateAsync=function(e,t){return Promise.resolve(r(e,t))},t.getStringFeatureGateAsync=function(e,t){return Promise.resolve(i(e,t))}}(OfficeRuntime=OfficeRuntime||{}),function(e){var t,i;t=e.message||(e.message={}),i={},t.on=function(e,t){return function(e,t){i.hasOwnProperty(e)||(i[e]=new n,function(){Office&&Office.context&&Office.context.messaging&&!Office.context.messaging.onMessage&&(Office.context.messaging.onMessage=function(e){var t=e.eventName,n=e.message;i.hasOwnProperty(t)&&i[t].call(n)}.bind(this))}());i[e].add(t)}(e,t),new Promise(function(e){e()})},t.off=function(e,t){var n,r;return n=e,r=t,i.hasOwnProperty(n)&&(r?i[n].remove(r):delete i[n]),new Promise(function(e){e()})},t.emit=function(e,t){var n;return n={eventName:e,message:t},Office&&Office.context&&Office.context.messaging&&Office.context.messaging.sendMessage&&Office.context.messaging.sendMessage(n),new Promise(function(e){e()})};var n=(r.prototype.add=function(e){this.listeners.push(e)},r.prototype.remove=function(e){var t=this.listeners.lastIndexOf(e);-1!==t&&this.listeners.splice(t,1)},r.prototype.call=function(t){this.listeners.forEach(function(e){return e(t)})},r);function r(){this.listeners=[]}e.ListenerManager=n}(OfficeRuntime=OfficeRuntime||{}),function(t){OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject;var n=OfficeExtension.BatchApiHelper.createTopLevelServiceObject,r=(OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod),i=(OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined),e=(OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson),o=OfficeExtension.Utility.fixObjectPathIfNecessary,a=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult),s=(OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags,"_Office_AsyncStorage_"),c=s+"|_unusedKey_",l={getItem:function(n){return d(function(e,t){return e.multiGet(t,JSON.stringify([n]))},function(e){var t=JSON.parse(e);return t&&t[0]&&t[0][1]?t[0][1]:null})},setItem:function(n,r){return d(function(e,t){return e.multiSet(t,JSON.stringify([[n,r]]))},function(){return null})},removeItem:function(n){return d(function(e,t){return e.multiRemove(t,JSON.stringify([n]))},function(){return null})},getItems:function(n){return d(function(e,t){return e.multiGet(t,JSON.stringify(n))},function(e){var t=JSON.parse(e),r={};return t&&t.forEach(function(e){var t=e[0],n=e[1];return r[t]=n}),n&&n.forEach(function(e){r[e]&&r[e]}),r})},setItems:function(e){var n=[];for(var t in e)e.hasOwnProperty(t)&&n.push([t,e[t]]);return d(function(e,t){return e.multiSet(t,JSON.stringify(n))},function(){return null})},removeItems:function(n){return d(function(e,t){return e.multiRemove(t,JSON.stringify(n))},function(){return null})},getKeys:function(){return d(function(e,t){return e.getAllKeys(t)},function(e){return JSON.parse(e)})}},u={getItem:function(e){return m(function(){return p(e)})},setItem:function(e,t){return g(function(){return f(e,t)})},removeItem:function(e){return g(function(){return window.localStorage.removeItem(s+e)})},getItems:function(i){return new Promise(function(e,t){var n={},r=[];try{h()}catch(e){t(e)}i.forEach(function(e){try{var t=p(e);n[e]=t||null}catch(e){r.push(e)}}),0<r.length?t(new Error("Unknown error.")):e(n)})},setItems:function(t){return y(t,function(e){return f(e,t[e])})},removeItems:function(e){return y(e,function(e){return window.localStorage.removeItem(s+e)})},getKeys:function(){return m(function(){return Object.keys(window.localStorage).filter(function(e){return 0===e.indexOf(s)}).map(function(e){return e.substr(s.length)})})}};function p(e){return window.localStorage.getItem(s+e)}function f(e,t){window.localStorage.setItem(s+e,t)}function d(o,a){return new OfficeExtension.CoreUtility.Promise(function(r,i){var t=v.getInstance(),n=t.setCallBack(function(e,t){if(t)i(t);else{var n=a(e);r(n)}});t.ctx.sync().then(function(){var e=t.getPersistentKvStorageService();return o(e,n),t.ctx.sync()}).catch(function(e){i(e)})})}function h(){f(c,null),window.localStorage.removeItem(c)}function g(n,r){return void 0===r&&(r=function(){}),new Promise(function(e,t){try{h(),n(),r(null),e()}catch(e){r(e),t(e)}})}function m(r,i){return void 0===i&&(i=function(){}),new Promise(function(e,t){try{h();var n=r();i(null,n),e(n)}catch(e){i(e,null),t(e)}})}function y(i,o,a){return void 0===a&&(a=function(){}),new Promise(function(e,t){var n=[];try{h()}catch(e){n.push(e)}for(var r in i)if(i.hasOwnProperty(r)||Array.isArray(i))try{Array.isArray(i)?o(i[r]):o(r)}catch(e){n.push(e)}a(n),0<n.length?t(n):e()})}t.ApiHelper.isNativeStorage()?t.storage=l:t.storage=u;var v=(b.getInstance=function(){return void 0===b.instance?b.instance=new b:b.instance._perkvstorService=O.newObject(b.instance.ctx),b.instance},b.prototype.getPersistentKvStorageService=function(){return this._perkvstorService},b.prototype.getCallBack=function(e){return this._callDict[e]},b.prototype.setCallBack=function(e){var t=this._invokeId;return this._callDict[this._invokeId++]=e,t},b);function b(){var n=this;this._invokeId=0,this._callDict={},this.ctx=new OfficeExtension.ClientRequestContext,this._perkvstorService=O.newObject(this.ctx),this._eventResult=this._perkvstorService.onPersistentStorageMessage.add(function(e){OfficeExtension.Utility.log("persistentKvStoragegMessageHandler:"+JSON.stringify(e));var t=n._callDict[e.invokeId];t&&(t(e.message,e.error),delete n._callDict[e.invokeId])})}var _,O=(_=OfficeExtension.ClientObject,__extends(S,_),Object.defineProperty(S.prototype,"_className",{get:function(){return"PersistentKvStorageService"},enumerable:!0,configurable:!0}),S.prototype.clear=function(e){r(this,"Clear",1,[e],4,0)},S.prototype.getAllKeys=function(e){r(this,"GetAllKeys",1,[e],4,0)},S.prototype.multiGet=function(e,t){r(this,"MultiGet",1,[e,t],4,0)},S.prototype.multiRemove=function(e,t){r(this,"MultiRemove",1,[e,t],4,0)},S.prototype.multiSet=function(e,t){r(this,"MultiSet",1,[e,t],4,0)},S.prototype._handleResult=function(e){_.prototype._handleResult.call(this,e),i(e)||o(this,e)},S.prototype._handleRetrieveResult=function(e,t){_.prototype._handleRetrieveResult.call(this,e,t),a(this,e,t)},S.newObject=function(e){return n(t.PersistentKvStorageService,e,"Microsoft.PersistentKvStorage.PersistentKvStorageService",!1,4)},Object.defineProperty(S.prototype,"onPersistentStorageMessage",{get:function(){return this.m_persistentStorageMessage||(this.m_persistentStorageMessage=new OfficeExtension.GenericEventHandlers(this.context,this,"PersistentStorageMessage",{eventType:65537,registerFunc:function(){},unregisterFunc:function(){},getTargetIdFunc:function(){return null},eventArgsTransformFunc:function(e){var t,n,r,i;try{var o=JSON.parse(e.message),a=parseInt(o.errorCode),s=0!=a?new OfficeExtension.Error((n=a,(r={})[16389]={code:"GenericException",message:"Unknown error."},r[65535]={code:"Unexcepted",message:"Catastrophic failure."},r[14]={code:"OutOfMemory",message:"Ran out of memory."},r[87]={code:"InvalidArg",message:"One or more arguments are invalid."},r[16385]={code:"NotImplemented",message:"Not implemented."},r[6]={code:"BadHandle",message:"File Handle is not Set."},r[5]={code:"AccessDenied",message:"Can't read the Storage File."},(i=r)[n]?i[n]:{code:"Unknown",message:"An unknown error has occured"})):null;t={invokeId:o.invokeId,message:o.message,error:s}}catch(e){t={invokeId:-1,message:e.message,error:new OfficeExtension.Error({code:"GenericException",message:"Unknown error"})}}return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_persistentStorageMessage},enumerable:!0,configurable:!0}),S.prototype.toJSON=function(){return e(this,{},{})},S);function S(){return null!==_&&_.apply(this,arguments)||this}t.PersistentKvStorageService=O,(t.ErrorCodes||(t.ErrorCodes={})).generalException="GeneralException"}(OfficeRuntime=OfficeRuntime||{});var PowerPoint;__extends=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}();!function(o){var n,i="PowerPoint",a="PowerPointApi",e=OfficeExtension.BatchApiHelper.createPropertyObject,r=OfficeExtension.BatchApiHelper.createMethodObject,t=OfficeExtension.BatchApiHelper.createIndexerObject,s=(OfficeExtension.BatchApiHelper.createRootServiceObject,OfficeExtension.BatchApiHelper.createTopLevelServiceObject),c=OfficeExtension.BatchApiHelper.createChildItemObject,l=OfficeExtension.BatchApiHelper.invokeMethod,u=OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,p=OfficeExtension.BatchApiHelper.invokeSetProperty,f=OfficeExtension.Utility.isNullOrUndefined,d=OfficeExtension.Utility.isUndefined,h=OfficeExtension.Utility.throwIfNotLoaded,g=OfficeExtension.Utility.throwIfApiNotSupported,m=OfficeExtension.Utility.load,y=OfficeExtension.Utility.retrieve,v=OfficeExtension.Utility.toJson,b=OfficeExtension.Utility.fixObjectPathIfNecessary,_=OfficeExtension.Utility._handleNavigationPropertyResults,O=OfficeExtension.Utility.adjustToDateTime,S=OfficeExtension.Utility.processRetrieveResult,C=OfficeExtension.Utility.setMockData,A=(OfficeExtension.CommonUtility.calculateApiFlags,n=OfficeExtension.ClientObject,__extends(P,n),Object.defineProperty(P.prototype,"_className",{get:function(){return"Application"},enumerable:!0,configurable:!0}),P.prototype.insertHyperLink=function(e,t){g("Application.insertHyperLink",a,"1.1",i),l(this,"InsertHyperLink",0,[e,t],1,0)},P.prototype.insertSlideFromContent=function(e){return g("Application.insertSlideFromContent",a,"1.1",i),l(this,"InsertSlideFromContent",0,[e],1,0)},P.prototype._handleResult=function(e){n.prototype._handleResult.call(this,e),f(e)||b(this,e)},P.prototype._handleRetrieveResult=function(e,t){n.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},P.newObject=function(e){return s(o.Application,e,"Microsoft.Office.PowerPoint.Application",!1,4)},P.prototype.toJSON=function(){return v(this,{},{})},P);function P(){return null!==n&&n.apply(this,arguments)||this}o.Application=A;var E,T=(E=OfficeExtension.ClientObject,__extends(I,E),Object.defineProperty(I.prototype,"_className",{get:function(){return"SensitivityLabelsCatalog"},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"_scalarPropertyNames",{get:function(){return["getLabelingCapability"]},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"_scalarPropertyOriginalNames",{get:function(){return["GetLabelingCapability"]},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"getLabelingCapability",{get:function(){return h("getLabelingCapability",this._G,"SensitivityLabelsCatalog",this._isNull),this._G},enumerable:!0,configurable:!0}),I.prototype.getLabels=function(){return r(o.SensitivityLabelDetailsCollection,this,"GetLabels",1,[],!0,!1,null,4)},I.prototype._handleResult=function(e){if(E.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.GetLabelingCapability)||(this._G=t.GetLabelingCapability)}},I.prototype.load=function(e){return m(this,e)},I.prototype.retrieve=function(e){return y(this,e)},I.prototype._handleRetrieveResult=function(e,t){E.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},I.newObject=function(e){return s(o.SensitivityLabelsCatalog,e,"Microsoft.Office.PowerPoint.SensitivityLabelsCatalog",!1,4)},I.prototype.toJSON=function(){return v(this,{},{})},I.prototype.setMockData=function(e){C(this,e)},I.prototype.ensureUnchanged=function(e){u(this,e)},I);function I(){return null!==E&&E.apply(this,arguments)||this}o.SensitivityLabelsCatalog=T;var w,R="Presentation",D=(w=OfficeExtension.ClientObject,__extends(x,w),Object.defineProperty(x.prototype,"_className",{get:function(){return"Presentation"},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"_scalarPropertyNames",{get:function(){return["title","id"]},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Title","Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"_navigationPropertyNames",{get:function(){return["slides","slideMasters","tags","bindings","customXmlParts","properties","pageSetup","sensitivityLabel","experiment"]},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"bindings",{get:function(){return g("Presentation.bindings",a,"1.8",i),this._B||(this._B=e(o.BindingCollection,this,"Bindings",!0,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"customXmlParts",{get:function(){return g("Presentation.customXmlParts",a,"1.7",i),this._C||(this._C=e(o.CustomXmlPartCollection,this,"CustomXmlParts",!0,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"experiment",{get:function(){return g("Presentation.experiment",a,"99.9",i),this._E||(this._E=e(o.Experiment,this,"Experiment",!1,5)),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"pageSetup",{get:function(){return g("Presentation.pageSetup",a,"1.10",i),this._P||(this._P=e(o.PageSetup,this,"PageSetup",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"properties",{get:function(){return g("Presentation.properties",a,"1.7",i),this._Pr||(this._Pr=e(o.DocumentProperties,this,"Properties",!1,4)),this._Pr},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"sensitivityLabel",{get:function(){return g("Presentation.sensitivityLabel",a,"1.11",i),this._S||(this._S=e(o.SensitivityLabel,this,"SensitivityLabel",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"slideMasters",{get:function(){return g("Presentation.slideMasters",a,"1.3",i),this._Sl||(this._Sl=e(o.SlideMasterCollection,this,"SlideMasters",!0,4)),this._Sl},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"slides",{get:function(){return g("Presentation.slides",a,"1.2",i),this._Sli||(this._Sli=e(o.SlideCollection,this,"Slides",!0,4)),this._Sli},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"tags",{get:function(){return g("Presentation.tags",a,"1.3",i),this._T||(this._T=e(o.TagCollection,this,"Tags",!0,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"id",{get:function(){return h("id",this._I,R,this._isNull),g("Presentation.id",a,"1.5",i),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"title",{get:function(){return h("title",this._Ti,R,this._isNull),this._Ti},enumerable:!0,configurable:!0}),x.prototype.applyJOfcCommands=function(e,t){return g("Presentation.applyJOfcCommands","PptCopilotActionApi","1.0",i),l(this,"ApplyJOfcCommands",0,[e,t],1,0)},x.prototype.applyJOfcCommandsAsync=function(e,t){return g("Presentation.applyJOfcCommandsAsync","PptCopilotActionApi","1.0",i),l(this,"ApplyJOfcCommandsAsync",0,[e,t],1,0)},x.prototype.autorunEventCompleted=function(e){g("Presentation.autorunEventCompleted",a,"99.9",i),l(this,"AutorunEventCompleted",0,[e],0,0)},x.prototype.copilotAction=function(e,t){return g("Presentation.copilotAction","PptCopilotActionApi","1.1",i),l(this,"CopilotAction",0,[e,t],1,0)},x.prototype.copilotActionAsync=function(e,t){return g("Presentation.copilotActionAsync","PptCopilotActionApi","1.1",i),l(this,"CopilotActionAsync",0,[e,t],1,0)},x.prototype.getActiveSlideOrNullObject=function(){return g("Presentation.getActiveSlideOrNullObject",a,"1.11",i),r(o.Slide,this,"GetActiveSlideOrNullObject",0,[],!1,!1,null,0)},x.prototype.getSelectedShapes=function(){return g("Presentation.getSelectedShapes",a,"1.5",i),r(o.ShapeScopedCollection,this,"GetSelectedShapes",0,[],!0,!1,null,0)},x.prototype.getSelectedSlides=function(){return g("Presentation.getSelectedSlides",a,"1.5",i),r(o.SlideScopedCollection,this,"GetSelectedSlides",0,[],!0,!1,null,0)},x.prototype.getSelectedTextRange=function(){return g("Presentation.getSelectedTextRange",a,"1.5",i),r(o.TextRange,this,"GetSelectedTextRange",0,[],!1,!1,null,0)},x.prototype.getSelectedTextRangeOrNullObject=function(){return g("Presentation.getSelectedTextRangeOrNullObject",a,"1.5",i),r(o.TextRange,this,"GetSelectedTextRangeOrNullObject",0,[],!1,!1,null,0)},x.prototype.insertSlidesFromBase64=function(e,t){g("Presentation.insertSlidesFromBase64",a,"1.2",i),l(this,"InsertSlidesFromBase64",0,[e,t],0,0)},x.prototype.setSelectedSlides=function(e){g("Presentation.setSelectedSlides",a,"1.5",i),l(this,"SetSelectedSlides",0,[e],0,0)},x.prototype._RegisterEvent=function(e,t){l(this,"_RegisterEvent",1,[e,t],4,0)},x.prototype._RegisterEventApplyJOfcCommandsCompleted=function(){g("Presentation._RegisterEventApplyJOfcCommandsCompleted","PptCopilotActionApi","1.0",i),l(this,"_RegisterEventApplyJOfcCommandsCompleted",0,[],0,0)},x.prototype._RegisterEventCopilotActionCompleted=function(){g("Presentation._RegisterEventCopilotActionCompleted","PptCopilotActionApi","1.1",i),l(this,"_RegisterEventCopilotActionCompleted",0,[],0,0)},x.prototype._RegisterEventShapeSelectionChanged=function(){g("Presentation._RegisterEventShapeSelectionChanged",a,"99.9",i),l(this,"_RegisterEventShapeSelectionChanged",0,[],0,0)},x.prototype._RegisterEventSlideSelectionChanged=function(){g("Presentation._RegisterEventSlideSelectionChanged",a,"1.11",i),l(this,"_RegisterEventSlideSelectionChanged",0,[],0,0)},x.prototype._UnregisterEvent=function(e,t){l(this,"_UnregisterEvent",1,[e,t],4,0)},x.prototype._UnregisterEventApplyJOfcCommandsCompleted=function(){g("Presentation._UnregisterEventApplyJOfcCommandsCompleted","PptCopilotActionApi","1.0",i),l(this,"_UnregisterEventApplyJOfcCommandsCompleted",0,[],0,0)},x.prototype._UnregisterEventCopilotActionCompleted=function(){g("Presentation._UnregisterEventCopilotActionCompleted","PptCopilotActionApi","1.1",i),l(this,"_UnregisterEventCopilotActionCompleted",0,[],0,0)},x.prototype._UnregisterEventShapeSelectionChanged=function(){g("Presentation._UnregisterEventShapeSelectionChanged",a,"99.9",i),l(this,"_UnregisterEventShapeSelectionChanged",0,[],0,0)},x.prototype._UnregisterEventSlideSelectionChanged=function(){g("Presentation._UnregisterEventSlideSelectionChanged",a,"1.11",i),l(this,"_UnregisterEventSlideSelectionChanged",0,[],0,0)},x.prototype._handleResult=function(e){if(w.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.Id)||(this._I=t.Id),d(t.Title)||(this._Ti=t.Title),_(this,t,["bindings","Bindings","customXmlParts","CustomXmlParts","experiment","Experiment","pageSetup","PageSetup","properties","Properties","sensitivityLabel","SensitivityLabel","slideMasters","SlideMasters","slides","Slides","tags","Tags"])}},x.prototype.load=function(e){return m(this,e)},x.prototype.retrieve=function(e){return y(this,e)},x.prototype._handleIdResult=function(e){w.prototype._handleIdResult.call(this,e),f(e)||d(e.Id)||(this._I=e.Id)},x.prototype._handleRetrieveResult=function(e,t){w.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Object.defineProperty(x.prototype,"onApplyJOfcCommandsCompleted",{get:function(){var e=this;return g("Presentation.onApplyJOfcCommandsCompleted","PptCopilotActionApi","1.0",i),this.m_applyJOfcCommandsCompleted||(this.m_applyJOfcCommandsCompleted=new OfficeExtension.GenericEventHandlers(this.context,this,"ApplyJOfcCommandsCompleted",{eventType:1,registerFunc:function(){return e._RegisterEventApplyJOfcCommandsCompleted()},unregisterFunc:function(){return e._UnregisterEventApplyJOfcCommandsCompleted()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(e){var t={requestId:e.requestId,result:e.result};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_applyJOfcCommandsCompleted},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"onCopilotActionCompleted",{get:function(){var e=this;return g("Presentation.onCopilotActionCompleted","PptCopilotActionApi","1.1",i),this.m_copilotActionCompleted||(this.m_copilotActionCompleted=new OfficeExtension.GenericEventHandlers(this.context,this,"CopilotActionCompleted",{eventType:2,registerFunc:function(){return e._RegisterEventCopilotActionCompleted()},unregisterFunc:function(){return e._UnregisterEventCopilotActionCompleted()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(e){var t={requestId:e.requestId,result:e.result};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_copilotActionCompleted},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"onShapeSelectionChanged",{get:function(){var e=this;return g("Presentation.onShapeSelectionChanged",a,"99.9",i),this.m_shapeSelectionChanged||(this.m_shapeSelectionChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"ShapeSelectionChanged",{eventType:4,registerFunc:function(){return e._RegisterEventShapeSelectionChanged()},unregisterFunc:function(){return e._UnregisterEventShapeSelectionChanged()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(e){var t={shapeIds:e.shapeIds,slideId:e.slideId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_shapeSelectionChanged},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"onSlideSelectionChanged",{get:function(){var e=this;return g("Presentation.onSlideSelectionChanged",a,"1.11",i),this.m_slideSelectionChanged||(this.m_slideSelectionChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"SlideSelectionChanged",{eventType:3,registerFunc:function(){return e._RegisterEventSlideSelectionChanged()},unregisterFunc:function(){return e._UnregisterEventSlideSelectionChanged()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(e){var t={slideIds:e.slideIds};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_slideSelectionChanged},enumerable:!0,configurable:!0}),x.prototype.toJSON=function(){return v(this,{title:this._Ti},{})},x.prototype.setMockData=function(e){C(this,e)},x.prototype.ensureUnchanged=function(e){u(this,e)},x);function x(){return null!==w&&w.apply(this,arguments)||this}o.Presentation=D;var F,N,k=(F=OfficeExtension.ClientObject,__extends(j,F),Object.defineProperty(j.prototype,"_className",{get:function(){return"Adjustments"},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"_scalarPropertyNames",{get:function(){return["count"]},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Count"]},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"count",{get:function(){return h("count",this._C,"Adjustments",this._isNull),this._C},enumerable:!0,configurable:!0}),j.prototype.get=function(e){return l(this,"Get",1,[e],4,0)},j.prototype.set=function(e,t){l(this,"Set",0,[e,t],0,0)},j.prototype._handleResult=function(e){if(F.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.Count)||(this._C=t.Count)}},j.prototype.load=function(e){return m(this,e)},j.prototype.retrieve=function(e){return y(this,e)},j.prototype._handleRetrieveResult=function(e,t){F.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},j.prototype.toJSON=function(){return v(this,{},{})},j.prototype.setMockData=function(e){C(this,e)},j.prototype.ensureUnchanged=function(e){u(this,e)},j);function j(){return null!==F&&F.apply(this,arguments)||this}o.Adjustments=k,(N=o.AutorunEventType||(o.AutorunEventType={})).unknown="Unknown",N.onDocumentSave="OnDocumentSave",N.onDocumentSaveAs="OnDocumentSaveAs",(o.BindingType||(o.BindingType={})).shape="Shape";var M,H="CustomXmlPart",U=(M=OfficeExtension.ClientObject,__extends(L,M),Object.defineProperty(L.prototype,"_className",{get:function(){return"CustomXmlPart"},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"_scalarPropertyNames",{get:function(){return["id","namespaceUri"]},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","NamespaceUri"]},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"id",{get:function(){return h("id",this._I,H,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"namespaceUri",{get:function(){return h("namespaceUri",this._N,H,this._isNull),this._N},enumerable:!0,configurable:!0}),L.prototype.delete=function(){l(this,"Delete",0,[],0,0)},L.prototype.getXml=function(){return l(this,"GetXml",1,[],4,0)},L.prototype.setXml=function(e){l(this,"SetXml",0,[e],0,0)},L.prototype._handleResult=function(e){if(M.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.Id)||(this._I=t.Id),d(t.NamespaceUri)||(this._N=t.NamespaceUri)}},L.prototype.load=function(e){return m(this,e)},L.prototype.retrieve=function(e){return y(this,e)},L.prototype._handleIdResult=function(e){M.prototype._handleIdResult.call(this,e),f(e)||d(e.Id)||(this._I=e.Id)},L.prototype._handleRetrieveResult=function(e,t){M.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},L.prototype.toJSON=function(){return v(this,{},{})},L.prototype.setMockData=function(e){C(this,e)},L.prototype.ensureUnchanged=function(e){u(this,e)},L);function L(){return null!==M&&M.apply(this,arguments)||this}o.CustomXmlPart=U;var B,W=(B=OfficeExtension.ClientObject,__extends(G,B),Object.defineProperty(G.prototype,"_className",{get:function(){return"CustomXmlPartScopedCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"items",{get:function(){return h("items",this.m__items,"CustomXmlPartScopedCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),G.prototype.getCount=function(){return l(this,"GetCount",1,[],4,0)},G.prototype.getItem=function(e){return t(o.CustomXmlPart,this,[e])},G.prototype.getItemAt=function(e){return g("CustomXmlPartScopedCollection.getItemAt",a,"1.10",i),r(o.CustomXmlPart,this,"GetItemAt",1,[e],!1,!1,null,4)},G.prototype.getItemOrNullObject=function(e){return r(o.CustomXmlPart,this,"GetItemOrNullObject",1,[e],!1,!1,null,4)},G.prototype.getOnlyItem=function(){return r(o.CustomXmlPart,this,"GetOnlyItem",1,[],!1,!1,null,4)},G.prototype.getOnlyItemOrNullObject=function(){return r(o.CustomXmlPart,this,"GetOnlyItemOrNullObject",1,[],!1,!1,null,4)},G.prototype._handleResult=function(e){if(B.prototype._handleResult.call(this,e),!f(e)){var t=e;if(b(this,t),!f(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=c(o.CustomXmlPart,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},G.prototype.load=function(e){return m(this,e)},G.prototype.retrieve=function(e){return y(this,e)},G.prototype._handleRetrieveResult=function(e,t){var n=this;B.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return c(o.CustomXmlPart,!0,n,e,t)})},G.prototype.toJSON=function(){return v(this,{},{},this.m__items)},G.prototype.setMockData=function(e){var n=this;C(this,e,function(e,t){return c(o.CustomXmlPart,!0,n,e,t)},function(e){return n.m__items=e})},G);function G(){return null!==B&&B.apply(this,arguments)||this}o.CustomXmlPartScopedCollection=W;var V,q=(V=OfficeExtension.ClientObject,__extends(J,V),Object.defineProperty(J.prototype,"_className",{get:function(){return"CustomXmlPartCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"items",{get:function(){return h("items",this.m__items,"CustomXmlPartCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),J.prototype.add=function(e){return r(o.CustomXmlPart,this,"Add",0,[e],!1,!0,null,0)},J.prototype.getByNamespace=function(e){return r(o.CustomXmlPartScopedCollection,this,"GetByNamespace",1,[e],!0,!1,null,4)},J.prototype.getCount=function(){return l(this,"GetCount",1,[],4,0)},J.prototype.getItem=function(e){return t(o.CustomXmlPart,this,[e])},J.prototype.getItemAt=function(e){return g("CustomXmlPartCollection.getItemAt",a,"1.10",i),r(o.CustomXmlPart,this,"GetItemAt",1,[e],!1,!1,null,4)},J.prototype.getItemOrNullObject=function(e){return r(o.CustomXmlPart,this,"GetItemOrNullObject",1,[e],!1,!1,null,4)},J.prototype._handleResult=function(e){if(V.prototype._handleResult.call(this,e),!f(e)){var t=e;if(b(this,t),!f(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=c(o.CustomXmlPart,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},J.prototype.load=function(e){return m(this,e)},J.prototype.retrieve=function(e){return y(this,e)},J.prototype._handleRetrieveResult=function(e,t){var n=this;V.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return c(o.CustomXmlPart,!0,n,e,t)})},J.prototype.toJSON=function(){return v(this,{},{},this.m__items)},J.prototype.setMockData=function(e){var n=this;C(this,e,function(e,t){return c(o.CustomXmlPart,!0,n,e,t)},function(e){return n.m__items=e})},J);function J(){return null!==V&&V.apply(this,arguments)||this}o.CustomXmlPartCollection=q;var z,K=(z=OfficeExtension.ClientObject,__extends(X,z),Object.defineProperty(X.prototype,"_className",{get:function(){return"Graphic"},enumerable:!0,configurable:!0}),Object.defineProperty(X.prototype,"_navigationPropertyNames",{get:function(){return["shape"]},enumerable:!0,configurable:!0}),Object.defineProperty(X.prototype,"shape",{get:function(){return this._S||(this._S=e(o.Shape,this,"Shape",!1,4)),this._S},enumerable:!0,configurable:!0}),X.prototype.convertToShape=function(){return r(o.ShapeScopedCollection,this,"ConvertToShape",0,[],!0,!1,null,0)},X.prototype._handleResult=function(e){if(z.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),_(this,t,["shape","Shape"])}},X.prototype.load=function(e){return m(this,e)},X.prototype.retrieve=function(e){return y(this,e)},X.prototype._handleRetrieveResult=function(e,t){z.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},X.prototype.toJSON=function(){return v(this,{},{})},X.prototype.setMockData=function(e){C(this,e)},X.prototype.ensureUnchanged=function(e){u(this,e)},X);function X(){return null!==z&&z.apply(this,arguments)||this}o.Graphic=K;var Q,$,Z,Y,ee=(Q=OfficeExtension.ClientObject,__extends(te,Q),Object.defineProperty(te.prototype,"_className",{get:function(){return"HyperlinkScopedCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(te.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(te.prototype,"items",{get:function(){return h("items",this.m__items,"HyperlinkScopedCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),te.prototype.getCount=function(){return l(this,"GetCount",1,[],4,0)},te.prototype.getItemAt=function(e){return r(o.Hyperlink,this,"GetItemAt",1,[e],!1,!1,null,4)},te.prototype._handleResult=function(e){if(Q.prototype._handleResult.call(this,e),!f(e)){var t=e;if(b(this,t),!f(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=c(o.Hyperlink,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},te.prototype.load=function(e){return m(this,e)},te.prototype.retrieve=function(e){return y(this,e)},te.prototype._handleRetrieveResult=function(e,t){var n=this;Q.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return c(o.Hyperlink,!1,n,e,t)})},te.prototype.toJSON=function(){return v(this,{},{},this.m__items)},te.prototype.setMockData=function(e){var n=this;C(this,e,function(e,t){return c(o.Hyperlink,!1,n,e,t)},function(e){return n.m__items=e})},te);function te(){return null!==Q&&Q.apply(this,arguments)||this}o.HyperlinkScopedCollection=ee,($=o.ParagraphHorizontalAlignment||(o.ParagraphHorizontalAlignment={})).left="Left",$.center="Center",$.right="Right",$.justify="Justify",$.justifyLow="JustifyLow",$.distributed="Distributed",$.thaiDistributed="ThaiDistributed",(Z=o.BulletStyle||(o.BulletStyle={})).unsupported="Unsupported",Z.alphabetLowercasePeriod="AlphabetLowercasePeriod",Z.alphabetUppercasePeriod="AlphabetUppercasePeriod",Z.arabicNumeralParenthesisRight="ArabicNumeralParenthesisRight",Z.arabicNumeralPeriod="ArabicNumeralPeriod",Z.romanLowercaseParenthesesBoth="RomanLowercaseParenthesesBoth",Z.romanLowercaseParenthesisRight="RomanLowercaseParenthesisRight",Z.romanLowercasePeriod="RomanLowercasePeriod",Z.romanUppercasePeriod="RomanUppercasePeriod",Z.alphabetLowercaseParenthesesBoth="AlphabetLowercaseParenthesesBoth",Z.alphabetLowercaseParenthesisRight="AlphabetLowercaseParenthesisRight",Z.alphabetUppercaseParenthesesBoth="AlphabetUppercaseParenthesesBoth",Z.alphabetUppercaseParenthesisRight="AlphabetUppercaseParenthesisRight",Z.arabicNumeralParenthesesBoth="ArabicNumeralParenthesesBoth",Z.arabicNumeralPlain="ArabicNumeralPlain",Z.romanUppercaseParenthesesBoth="RomanUppercaseParenthesesBoth",Z.romanUppercaseParenthesisRight="RomanUppercaseParenthesisRight",Z.simplifiedChinesePlain="SimplifiedChinesePlain",Z.simplifiedChinesePeriod="SimplifiedChinesePeriod",Z.circleNumberDoubleBytePlain="CircleNumberDoubleBytePlain",Z.circleNumberWideDoubleByteWhitePlain="CircleNumberWideDoubleByteWhitePlain",Z.circleNumberWideDoubleByteBlackPlain="CircleNumberWideDoubleByteBlackPlain",Z.traditionalChinesePlain="TraditionalChinesePlain",Z.traditionalChinesePeriod="TraditionalChinesePeriod",Z.arabicAlphabetDash="ArabicAlphabetDash",Z.arabicAbjadDash="ArabicAbjadDash",Z.hebrewAlphabetDash="HebrewAlphabetDash",Z.kanjiKoreanPlain="KanjiKoreanPlain",Z.kanjiKoreanPeriod="KanjiKoreanPeriod",Z.arabicDoubleBytePlain="ArabicDoubleBytePlain",Z.arabicDoubleBytePeriod="ArabicDoubleBytePeriod",Z.thaiAlphabetPeriod="ThaiAlphabetPeriod",Z.thaiAlphabetParenthesisRight="ThaiAlphabetParenthesisRight",Z.thaiAlphabetParenthesesBoth="ThaiAlphabetParenthesesBoth",Z.thaiNumeralPeriod="ThaiNumeralPeriod",Z.thaiNumeralParenthesisRight="ThaiNumeralParenthesisRight",Z.thaiNumeralParenthesesBoth="ThaiNumeralParenthesesBoth",Z.hindiAlphabetPeriod="HindiAlphabetPeriod",Z.hindiNumeralPeriod="HindiNumeralPeriod",Z.kanjiSimplifiedChineseDoubleBytePeriod="KanjiSimplifiedChineseDoubleBytePeriod",Z.hindiNumeralParenthesisRight="HindiNumeralParenthesisRight",Z.hindiAlphabet1Period="HindiAlphabet1Period",(Y=o.BulletType||(o.BulletType={})).unsupported="Unsupported",Y.none="None",Y.numbered="Numbered",Y.unnumbered="Unnumbered";var ne,re="BulletFormat",ie=(ne=OfficeExtension.ClientObject,__extends(oe,ne),Object.defineProperty(oe.prototype,"_className",{get:function(){return"BulletFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"_scalarPropertyNames",{get:function(){return["visible","style","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Visible","Style","Type"]},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"style",{get:function(){return h("style",this._S,re,this._isNull),g("BulletFormat.style",a,"1.10",i),this._S},set:function(e){this._S=e,p(this,"Style",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"type",{get:function(){return h("type",this._T,re,this._isNull),g("BulletFormat.type",a,"1.10",i),this._T},set:function(e){this._T=e,p(this,"Type",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(oe.prototype,"visible",{get:function(){return h("visible",this._V,re,this._isNull),this._V},set:function(e){this._V=e,p(this,"Visible",e,0)},enumerable:!0,configurable:!0}),oe.prototype._handleResult=function(e){if(ne.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.Style)||(this._S=t.Style),d(t.Type)||(this._T=t.Type),d(t.Visible)||(this._V=t.Visible)}},oe.prototype.load=function(e){return m(this,e)},oe.prototype.retrieve=function(e){return y(this,e)},oe.prototype._handleRetrieveResult=function(e,t){ne.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},oe.prototype.toJSON=function(){return v(this,{},{})},oe.prototype.setMockData=function(e){C(this,e)},oe.prototype.ensureUnchanged=function(e){u(this,e)},oe);function oe(){return null!==ne&&ne.apply(this,arguments)||this}o.BulletFormat=ie;var ae,se,ce="ParagraphFormat",le=(ae=OfficeExtension.ClientObject,__extends(ue,ae),Object.defineProperty(ue.prototype,"_className",{get:function(){return"ParagraphFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"_scalarPropertyNames",{get:function(){return["horizontalAlignment","indentLevel"]},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"_scalarPropertyOriginalNames",{get:function(){return["HorizontalAlignment","IndentLevel"]},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"_navigationPropertyNames",{get:function(){return["bulletFormat"]},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"bulletFormat",{get:function(){return this._B||(this._B=e(o.BulletFormat,this,"BulletFormat",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"horizontalAlignment",{get:function(){return h("horizontalAlignment",this._H,ce,this._isNull),this._H},set:function(e){this._H=e,p(this,"HorizontalAlignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"indentLevel",{get:function(){return h("indentLevel",this._I,ce,this._isNull),g("ParagraphFormat.indentLevel",a,"1.10",i),this._I},set:function(e){this._I=e,p(this,"IndentLevel",e,0)},enumerable:!0,configurable:!0}),ue.prototype._handleResult=function(e){if(ae.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.HorizontalAlignment)||(this._H=t.HorizontalAlignment),d(t.IndentLevel)||(this._I=t.IndentLevel),_(this,t,["bulletFormat","BulletFormat"])}},ue.prototype.load=function(e){return m(this,e)},ue.prototype.retrieve=function(e){return y(this,e)},ue.prototype._handleRetrieveResult=function(e,t){ae.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},ue.prototype.toJSON=function(){return v(this,{},{})},ue.prototype.setMockData=function(e){C(this,e)},ue.prototype.ensureUnchanged=function(e){u(this,e)},ue);function ue(){return null!==ae&&ae.apply(this,arguments)||this}o.ParagraphFormat=le,(se=o.ShapeFontUnderlineStyle||(o.ShapeFontUnderlineStyle={})).none="None",se.single="Single",se.double="Double",se.heavy="Heavy",se.dotted="Dotted",se.dottedHeavy="DottedHeavy",se.dash="Dash",se.dashHeavy="DashHeavy",se.dashLong="DashLong",se.dashLongHeavy="DashLongHeavy",se.dotDash="DotDash",se.dotDashHeavy="DotDashHeavy",se.dotDotDash="DotDotDash",se.dotDotDashHeavy="DotDotDashHeavy",se.wavy="Wavy",se.wavyHeavy="WavyHeavy",se.wavyDouble="WavyDouble";var pe,fe,de,he="ShapeFont",ge=(pe=OfficeExtension.ClientObject,__extends(me,pe),Object.defineProperty(me.prototype,"_className",{get:function(){return"ShapeFont"},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"_scalarPropertyNames",{get:function(){return["bold","color","italic","name","size","underline","allCaps","doubleStrikethrough","smallCaps","strikethrough","subscript","superscript"]},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Bold","Color","Italic","Name","Size","Underline","AllCaps","DoubleStrikethrough","SmallCaps","Strikethrough","Subscript","Superscript"]},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"allCaps",{get:function(){return h("allCaps",this._A,he,this._isNull),g("ShapeFont.allCaps",a,"1.8",i),this._A},set:function(e){this._A=e,p(this,"AllCaps",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"bold",{get:function(){return h("bold",this._B,he,this._isNull),this._B},set:function(e){this._B=e,p(this,"Bold",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"color",{get:function(){return h("color",this._C,he,this._isNull),this._C},set:function(e){this._C=e,p(this,"Color",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"doubleStrikethrough",{get:function(){return h("doubleStrikethrough",this._D,he,this._isNull),g("ShapeFont.doubleStrikethrough",a,"1.8",i),this._D},set:function(e){this._D=e,p(this,"DoubleStrikethrough",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"italic",{get:function(){return h("italic",this._I,he,this._isNull),this._I},set:function(e){this._I=e,p(this,"Italic",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"name",{get:function(){return h("name",this._N,he,this._isNull),this._N},set:function(e){this._N=e,p(this,"Name",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"size",{get:function(){return h("size",this._S,he,this._isNull),this._S},set:function(e){this._S=e,p(this,"Size",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"smallCaps",{get:function(){return h("smallCaps",this._Sm,he,this._isNull),g("ShapeFont.smallCaps",a,"1.8",i),this._Sm},set:function(e){this._Sm=e,p(this,"SmallCaps",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"strikethrough",{get:function(){return h("strikethrough",this._St,he,this._isNull),g("ShapeFont.strikethrough",a,"1.8",i),this._St},set:function(e){this._St=e,p(this,"Strikethrough",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"subscript",{get:function(){return h("subscript",this._Su,he,this._isNull),g("ShapeFont.subscript",a,"1.8",i),this._Su},set:function(e){this._Su=e,p(this,"Subscript",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"superscript",{get:function(){return h("superscript",this._Sup,he,this._isNull),g("ShapeFont.superscript",a,"1.8",i),this._Sup},set:function(e){this._Sup=e,p(this,"Superscript",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"underline",{get:function(){return h("underline",this._U,he,this._isNull),this._U},set:function(e){this._U=e,p(this,"Underline",e,0)},enumerable:!0,configurable:!0}),me.prototype._handleResult=function(e){if(pe.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.AllCaps)||(this._A=t.AllCaps),d(t.Bold)||(this._B=t.Bold),d(t.Color)||(this._C=t.Color),d(t.DoubleStrikethrough)||(this._D=t.DoubleStrikethrough),d(t.Italic)||(this._I=t.Italic),d(t.Name)||(this._N=t.Name),d(t.Size)||(this._S=t.Size),d(t.SmallCaps)||(this._Sm=t.SmallCaps),d(t.Strikethrough)||(this._St=t.Strikethrough),d(t.Subscript)||(this._Su=t.Subscript),d(t.Superscript)||(this._Sup=t.Superscript),d(t.Underline)||(this._U=t.Underline)}},me.prototype.load=function(e){return m(this,e)},me.prototype.retrieve=function(e){return y(this,e)},me.prototype._handleRetrieveResult=function(e,t){pe.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},me.prototype.toJSON=function(){return v(this,{},{})},me.prototype.setMockData=function(e){C(this,e)},me.prototype.ensureUnchanged=function(e){u(this,e)},me);function me(){return null!==pe&&pe.apply(this,arguments)||this}o.ShapeFont=ge,(fe=o.ShapeAutoSize||(o.ShapeAutoSize={})).autoSizeNone="AutoSizeNone",fe.autoSizeTextToFitShape="AutoSizeTextToFitShape",fe.autoSizeShapeToFitText="AutoSizeShapeToFitText",fe.autoSizeMixed="AutoSizeMixed",(de=o.TextVerticalAlignment||(o.TextVerticalAlignment={})).top="Top",de.middle="Middle",de.bottom="Bottom",de.topCentered="TopCentered",de.middleCentered="MiddleCentered",de.bottomCentered="BottomCentered";var ye,ve="TextFrame",be=(ye=OfficeExtension.ClientObject,__extends(_e,ye),Object.defineProperty(_e.prototype,"_className",{get:function(){return"TextFrame"},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"_scalarPropertyNames",{get:function(){return["autoSizeSetting","bottomMargin","hasText","leftMargin","rightMargin","topMargin","verticalAlignment","wordWrap"]},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"_scalarPropertyOriginalNames",{get:function(){return["AutoSizeSetting","BottomMargin","HasText","LeftMargin","RightMargin","TopMargin","VerticalAlignment","WordWrap"]},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!1,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"_navigationPropertyNames",{get:function(){return["textRange"]},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"textRange",{get:function(){return this._T||(this._T=e(o.TextRange,this,"TextRange",!1,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"autoSizeSetting",{get:function(){return h("autoSizeSetting",this._A,ve,this._isNull),this._A},set:function(e){this._A=e,p(this,"AutoSizeSetting",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"bottomMargin",{get:function(){return h("bottomMargin",this._B,ve,this._isNull),this._B},set:function(e){this._B=e,p(this,"BottomMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"hasText",{get:function(){return h("hasText",this._H,ve,this._isNull),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"leftMargin",{get:function(){return h("leftMargin",this._L,ve,this._isNull),this._L},set:function(e){this._L=e,p(this,"LeftMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"rightMargin",{get:function(){return h("rightMargin",this._R,ve,this._isNull),this._R},set:function(e){this._R=e,p(this,"RightMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"topMargin",{get:function(){return h("topMargin",this._To,ve,this._isNull),this._To},set:function(e){this._To=e,p(this,"TopMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"verticalAlignment",{get:function(){return h("verticalAlignment",this._V,ve,this._isNull),this._V},set:function(e){this._V=e,p(this,"VerticalAlignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"wordWrap",{get:function(){return h("wordWrap",this._W,ve,this._isNull),this._W},set:function(e){this._W=e,p(this,"WordWrap",e,0)},enumerable:!0,configurable:!0}),_e.prototype.deleteText=function(){l(this,"DeleteText",0,[],0,0)},_e.prototype.getParentShape=function(){return g("TextFrame.getParentShape",a,"1.5",i),r(o.Shape,this,"GetParentShape",0,[],!1,!1,null,0)},_e.prototype._handleResult=function(e){if(ye.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.AutoSizeSetting)||(this._A=t.AutoSizeSetting),d(t.BottomMargin)||(this._B=t.BottomMargin),d(t.HasText)||(this._H=t.HasText),d(t.LeftMargin)||(this._L=t.LeftMargin),d(t.RightMargin)||(this._R=t.RightMargin),d(t.TopMargin)||(this._To=t.TopMargin),d(t.VerticalAlignment)||(this._V=t.VerticalAlignment),d(t.WordWrap)||(this._W=t.WordWrap),_(this,t,["textRange","TextRange"])}},_e.prototype.load=function(e){return m(this,e)},_e.prototype.retrieve=function(e){return y(this,e)},_e.prototype._handleRetrieveResult=function(e,t){ye.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},_e.prototype.toJSON=function(){return v(this,{},{})},_e.prototype.setMockData=function(e){C(this,e)},_e.prototype.ensureUnchanged=function(e){u(this,e)},_e);function _e(){return null!==ye&&ye.apply(this,arguments)||this}o.TextFrame=be;var Oe,Se,Ce="TextRange",Ae=(Oe=OfficeExtension.ClientObject,__extends(Pe,Oe),Object.defineProperty(Pe.prototype,"_className",{get:function(){return"TextRange"},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"_scalarPropertyNames",{get:function(){return["text","length","start"]},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Text","Length","Start"]},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"_navigationPropertyNames",{get:function(){return["font","paragraphFormat","hyperlinks"]},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"font",{get:function(){return this._F||(this._F=e(o.ShapeFont,this,"Font",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"hyperlinks",{get:function(){return g("TextRange.hyperlinks",a,"1.10",i),this._H||(this._H=e(o.HyperlinkScopedCollection,this,"Hyperlinks",!0,4)),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"paragraphFormat",{get:function(){return this._P||(this._P=e(o.ParagraphFormat,this,"ParagraphFormat",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"length",{get:function(){return h("length",this._L,Ce,this._isNull),g("TextRange.length",a,"1.5",i),this._L},set:function(e){this._L=e,p(this,"Length",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"start",{get:function(){return h("start",this._S,Ce,this._isNull),g("TextRange.start",a,"1.5",i),this._S},set:function(e){this._S=e,p(this,"Start",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"text",{get:function(){return h("text",this._T,Ce,this._isNull),this._T},set:function(e){this._T=e,p(this,"Text",e,0)},enumerable:!0,configurable:!0}),Pe.prototype.getParentTextFrame=function(){return g("TextRange.getParentTextFrame",a,"1.5",i),r(o.TextFrame,this,"GetParentTextFrame",0,[],!1,!1,null,0)},Pe.prototype.getSubstring=function(e,t){return r(o.TextRange,this,"GetSubstring",0,[e,t],!1,!1,null,0)},Pe.prototype.setHyperlink=function(e){return g("TextRange.setHyperlink",a,"1.10",i),r(o.Hyperlink,this,"SetHyperlink",0,[e],!1,!1,null,0)},Pe.prototype.setSelected=function(){g("TextRange.setSelected",a,"1.5",i),l(this,"SetSelected",0,[],0,0)},Pe.prototype._handleResult=function(e){if(Oe.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.Length)||(this._L=t.Length),d(t.Start)||(this._S=t.Start),d(t.Text)||(this._T=t.Text),_(this,t,["font","Font","hyperlinks","Hyperlinks","paragraphFormat","ParagraphFormat"])}},Pe.prototype.load=function(e){return m(this,e)},Pe.prototype.retrieve=function(e){return y(this,e)},Pe.prototype._handleRetrieveResult=function(e,t){Oe.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Pe.prototype.toJSON=function(){return v(this,{},{})},Pe.prototype.setMockData=function(e){C(this,e)},Pe.prototype.ensureUnchanged=function(e){u(this,e)},Pe);function Pe(){return null!==Oe&&Oe.apply(this,arguments)||this}o.TextRange=Ae,(Se=o.HyperlinkType||(o.HyperlinkType={})).textRange="TextRange",Se.shape="Shape";var Ee,Te,Ie,we="Hyperlink",Re=(Ee=OfficeExtension.ClientObject,__extends(De,Ee),Object.defineProperty(De.prototype,"_className",{get:function(){return"Hyperlink"},enumerable:!0,configurable:!0}),Object.defineProperty(De.prototype,"_scalarPropertyNames",{get:function(){return["address","screenTip","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(De.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Address","ScreenTip","Type"]},enumerable:!0,configurable:!0}),Object.defineProperty(De.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(De.prototype,"address",{get:function(){return h("address",this._A,we,this._isNull),this._A},set:function(e){this._A=e,p(this,"Address",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(De.prototype,"screenTip",{get:function(){return h("screenTip",this._S,we,this._isNull),this._S},set:function(e){this._S=e,p(this,"ScreenTip",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(De.prototype,"type",{get:function(){return h("type",this._T,we,this._isNull),g("Hyperlink.type",a,"1.10",i),this._T},enumerable:!0,configurable:!0}),De.prototype.delete=function(){g("Hyperlink.delete",a,"1.10",i),l(this,"Delete",0,[],0,0)},De.prototype.getLinkedShapeOrNullObject=function(){return g("Hyperlink.getLinkedShapeOrNullObject",a,"1.10",i),r(o.Shape,this,"GetLinkedShapeOrNullObject",0,[],!1,!1,null,0)},De.prototype.getLinkedTextRangeOrNullObject=function(){return g("Hyperlink.getLinkedTextRangeOrNullObject",a,"1.10",i),r(o.TextRange,this,"GetLinkedTextRangeOrNullObject",0,[],!1,!1,null,0)},De.prototype._handleResult=function(e){if(Ee.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.Address)||(this._A=t.Address),d(t.ScreenTip)||(this._S=t.ScreenTip),d(t.Type)||(this._T=t.Type)}},De.prototype.load=function(e){return m(this,e)},De.prototype.retrieve=function(e){return y(this,e)},De.prototype._handleRetrieveResult=function(e,t){Ee.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},De.prototype.toJSON=function(){return v(this,{},{})},De.prototype.setMockData=function(e){C(this,e)},De.prototype.ensureUnchanged=function(e){u(this,e)},De);function De(){return null!==Ee&&Ee.apply(this,arguments)||this}o.Hyperlink=Re,(Te=o.PlaceholderType||(o.PlaceholderType={})).unsupported="Unsupported",Te.date="Date",Te.slideNumber="SlideNumber",Te.footer="Footer",Te.header="Header",Te.title="Title",Te.body="Body",Te.centerTitle="CenterTitle",Te.subtitle="Subtitle",Te.verticalTitle="VerticalTitle",Te.verticalBody="VerticalBody",Te.content="Content",Te.chart="Chart",Te.table="Table",Te.onlinePicture="OnlinePicture",Te.smartArt="SmartArt",Te.media="Media",Te.verticalContent="VerticalContent",Te.picture="Picture",Te.cameo="Cameo",(Ie=o.ShapeType||(o.ShapeType={})).unsupported="Unsupported",Ie.image="Image",Ie.geometricShape="GeometricShape",Ie.group="Group",Ie.line="Line",Ie.table="Table",Ie.callout="Callout",Ie.chart="Chart",Ie.contentApp="ContentApp",Ie.diagram="Diagram",Ie.freeform="Freeform",Ie.graphic="Graphic",Ie.ink="Ink",Ie.media="Media",Ie.model3D="Model3D",Ie.ole="Ole",Ie.placeholder="Placeholder",Ie.smartArt="SmartArt",Ie.textBox="TextBox";var xe,Fe,Ne,ke="PlaceholderFormat",je=(xe=OfficeExtension.ClientObject,__extends(Me,xe),Object.defineProperty(Me.prototype,"_className",{get:function(){return"PlaceholderFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"_scalarPropertyNames",{get:function(){return["containedType","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"_scalarPropertyOriginalNames",{get:function(){return["ContainedType","Type"]},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"containedType",{get:function(){return h("containedType",this._C,ke,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"type",{get:function(){return h("type",this._T,ke,this._isNull),this._T},enumerable:!0,configurable:!0}),Me.prototype._handleResult=function(e){if(xe.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.ContainedType)||(this._C=t.ContainedType),d(t.Type)||(this._T=t.Type)}},Me.prototype.load=function(e){return m(this,e)},Me.prototype.retrieve=function(e){return y(this,e)},Me.prototype._handleRetrieveResult=function(e,t){xe.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Me.prototype.toJSON=function(){return v(this,{},{})},Me.prototype.setMockData=function(e){C(this,e)},Me.prototype.ensureUnchanged=function(e){u(this,e)},Me);function Me(){return null!==xe&&xe.apply(this,arguments)||this}o.PlaceholderFormat=je,(Fe=o.CommentAnchorType||(o.CommentAnchorType={})).unsupported="Unsupported",Fe.slide="Slide",Fe.shape="Shape",Fe.textRange="TextRange",(Ne=o.CommentContentType||(o.CommentContentType={})).plain="Plain",Ne.mention="Mention";var He,Ue="DocumentTask",Le=(He=OfficeExtension.ClientObject,__extends(Be,He),Object.defineProperty(Be.prototype,"_className",{get:function(){return"DocumentTask"},enumerable:!0,configurable:!0}),Object.defineProperty(Be.prototype,"_scalarPropertyNames",{get:function(){return["assignees","completedBy","completedDateTime","createdBy","createdDateTime","title"]},enumerable:!0,configurable:!0}),Object.defineProperty(Be.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Assignees","CompletedBy","CompletedDateTime","CreatedBy","CreatedDateTime","Title"]},enumerable:!0,configurable:!0}),Object.defineProperty(Be.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!1,!1,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Be.prototype,"_navigationPropertyNames",{get:function(){return["comment"]},enumerable:!0,configurable:!0}),Object.defineProperty(Be.prototype,"comment",{get:function(){return this._C||(this._C=e(o.Comment,this,"Comment",!1,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(Be.prototype,"assignees",{get:function(){return h("assignees",this._A,Ue,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(Be.prototype,"completedBy",{get:function(){return h("completedBy",this._Co,Ue,this._isNull),this._Co},enumerable:!0,configurable:!0}),Object.defineProperty(Be.prototype,"completedDateTime",{get:function(){return h("completedDateTime",this._Com,Ue,this._isNull),this._Com},enumerable:!0,configurable:!0}),Object.defineProperty(Be.prototype,"createdBy",{get:function(){return h("createdBy",this._Cr,Ue,this._isNull),this._Cr},enumerable:!0,configurable:!0}),Object.defineProperty(Be.prototype,"createdDateTime",{get:function(){return h("createdDateTime",this._Cre,Ue,this._isNull),this._Cre},enumerable:!0,configurable:!0}),Object.defineProperty(Be.prototype,"title",{get:function(){return h("title",this._T,Ue,this._isNull),this._T},set:function(e){this._T=e,p(this,"Title",e,0)},enumerable:!0,configurable:!0}),Be.prototype.assign=function(e){l(this,"Assign",0,[e],1,0)},Be.prototype.unassign=function(e){l(this,"Unassign",0,[e],1,0)},Be.prototype.unassignAll=function(){l(this,"UnassignAll",0,[],1,0)},Be.prototype._handleResult=function(e){if(He.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.Assignees)||(this._A=t.Assignees),d(t.CompletedBy)||(this._Co=t.CompletedBy),d(t.CompletedDateTime)||(this._Com=t.CompletedDateTime),d(t.CreatedBy)||(this._Cr=t.CreatedBy),d(t.CreatedDateTime)||(this._Cre=t.CreatedDateTime),d(t.Title)||(this._T=t.Title),_(this,t,["comment","Comment"])}},Be.prototype.load=function(e){return m(this,e)},Be.prototype.retrieve=function(e){return y(this,e)},Be.prototype._handleRetrieveResult=function(e,t){He.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Be.prototype.toJSON=function(){return v(this,{},{})},Be.prototype.setMockData=function(e){C(this,e)},Be.prototype.ensureUnchanged=function(e){u(this,e)},Be);function Be(){return null!==He&&He.apply(this,arguments)||this}o.DocumentTask=Le;var We,Ge="CommentReply",Ve=(We=OfficeExtension.ClientObject,__extends(qe,We),Object.defineProperty(qe.prototype,"_className",{get:function(){return"CommentReply"},enumerable:!0,configurable:!0}),Object.defineProperty(qe.prototype,"_scalarPropertyNames",{get:function(){return["author","content","contentType","creationDate","id","mentions","resolved","richContent"]},enumerable:!0,configurable:!0}),Object.defineProperty(qe.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Author","Content","ContentType","CreationDate","Id","Mentions","Resolved","RichContent"]},enumerable:!0,configurable:!0}),Object.defineProperty(qe.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!1,!1,!1,!1,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(qe.prototype,"author",{get:function(){return h("author",this._A,Ge,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(qe.prototype,"content",{get:function(){return h("content",this._C,Ge,this._isNull),this._C},set:function(e){this._C=e,p(this,"Content",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(qe.prototype,"contentType",{get:function(){return h("contentType",this._Co,Ge,this._isNull),this._Co},enumerable:!0,configurable:!0}),Object.defineProperty(qe.prototype,"creationDate",{get:function(){return h("creationDate",this._Cr,Ge,this._isNull),this._Cr},enumerable:!0,configurable:!0}),Object.defineProperty(qe.prototype,"id",{get:function(){return h("id",this._I,Ge,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(qe.prototype,"mentions",{get:function(){return h("mentions",this._M,Ge,this._isNull),this._M},enumerable:!0,configurable:!0}),Object.defineProperty(qe.prototype,"resolved",{get:function(){return h("resolved",this._R,Ge,this._isNull),this._R},set:function(e){this._R=e,p(this,"Resolved",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(qe.prototype,"richContent",{get:function(){return h("richContent",this._Ri,Ge,this._isNull),this._Ri},enumerable:!0,configurable:!0}),qe.prototype.assignTask=function(e){return r(o.DocumentTask,this,"AssignTask",0,[e],!1,!1,null,1)},qe.prototype.delete=function(){l(this,"Delete",0,[],1,0)},qe.prototype.getParentComment=function(){return r(o.Comment,this,"GetParentComment",1,[],!1,!1,null,5)},qe.prototype.getTask=function(){return r(o.DocumentTask,this,"GetTask",1,[],!1,!1,null,5)},qe.prototype.getTaskOrNullObject=function(){return r(o.DocumentTask,this,"GetTaskOrNullObject",1,[],!1,!1,null,5)},qe.prototype.updateMentions=function(e){l(this,"UpdateMentions",0,[e],1,0)},qe.prototype._handleResult=function(e){if(We.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.Author)||(this._A=t.Author),d(t.Content)||(this._C=t.Content),d(t.ContentType)||(this._Co=t.ContentType),d(t.CreationDate)||(this._Cr=O(t.CreationDate)),d(t.Id)||(this._I=t.Id),d(t.Mentions)||(this._M=t.Mentions),d(t.Resolved)||(this._R=t.Resolved),d(t.RichContent)||(this._Ri=t.RichContent)}},qe.prototype.load=function(e){return m(this,e)},qe.prototype.retrieve=function(e){return y(this,e)},qe.prototype._handleIdResult=function(e){We.prototype._handleIdResult.call(this,e),f(e)||d(e.Id)||(this._I=e.Id)},qe.prototype._handleRetrieveResult=function(e,t){if(We.prototype._handleRetrieveResult.call(this,e,t),!f(e)){var n=e;d(n.CreationDate)||(n.creationDate=O(n.creationDate)),S(this,e,t)}},qe.prototype.toJSON=function(){return v(this,{},{})},qe.prototype.setMockData=function(e){C(this,e)},qe.prototype.ensureUnchanged=function(e){u(this,e)},qe);function qe(){return null!==We&&We.apply(this,arguments)||this}o.CommentReply=Ve;var Je,ze=(Je=OfficeExtension.ClientObject,__extends(Ke,Je),Object.defineProperty(Ke.prototype,"_className",{get:function(){return"CommentReplyCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Ke.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Ke.prototype,"items",{get:function(){return h("items",this.m__items,"CommentReplyCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),Ke.prototype.add=function(e){return r(o.CommentReply,this,"Add",0,[e],!1,!0,null,1)},Ke.prototype.getCount=function(){return l(this,"GetCount",1,[],5,0)},Ke.prototype.getItem=function(e){return t(o.CommentReply,this,[e])},Ke.prototype.getItemAt=function(e){return r(o.CommentReply,this,"GetItemAt",1,[e],!1,!1,null,5)},Ke.prototype.getItemOrNullObject=function(e){return r(o.CommentReply,this,"GetItemOrNullObject",1,[e],!1,!1,null,5)},Ke.prototype._handleResult=function(e){if(Je.prototype._handleResult.call(this,e),!f(e)){var t=e;if(b(this,t),!f(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=c(o.CommentReply,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Ke.prototype.load=function(e){return m(this,e)},Ke.prototype.retrieve=function(e){return y(this,e)},Ke.prototype._handleRetrieveResult=function(e,t){var n=this;Je.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return c(o.CommentReply,!0,n,e,t)})},Ke.prototype.toJSON=function(){return v(this,{},{},this.m__items)},Ke.prototype.setMockData=function(e){var n=this;C(this,e,function(e,t){return c(o.CommentReply,!0,n,e,t)},function(e){return n.m__items=e})},Ke);function Ke(){return null!==Je&&Je.apply(this,arguments)||this}o.CommentReplyCollection=ze;var Xe,Qe="Comment",$e=(Xe=OfficeExtension.ClientObject,__extends(Ze,Xe),Object.defineProperty(Ze.prototype,"_className",{get:function(){return"Comment"},enumerable:!0,configurable:!0}),Object.defineProperty(Ze.prototype,"_scalarPropertyNames",{get:function(){return["anchorType","author","content","contentType","creationDate","id","mentions","resolved","richContent"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ze.prototype,"_scalarPropertyOriginalNames",{get:function(){return["AnchorType","Author","Content","ContentType","CreationDate","Id","Mentions","Resolved","RichContent"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ze.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!1,!1,!1,!1,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(Ze.prototype,"_navigationPropertyNames",{get:function(){return["replies"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ze.prototype,"replies",{get:function(){return this._R||(this._R=e(o.CommentReplyCollection,this,"Replies",!0,5)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(Ze.prototype,"anchorType",{get:function(){return h("anchorType",this._A,Qe,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(Ze.prototype,"author",{get:function(){return h("author",this._Au,Qe,this._isNull),this._Au},enumerable:!0,configurable:!0}),Object.defineProperty(Ze.prototype,"content",{get:function(){return h("content",this._C,Qe,this._isNull),this._C},set:function(e){this._C=e,p(this,"Content",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ze.prototype,"contentType",{get:function(){return h("contentType",this._Co,Qe,this._isNull),this._Co},enumerable:!0,configurable:!0}),Object.defineProperty(Ze.prototype,"creationDate",{get:function(){return h("creationDate",this._Cr,Qe,this._isNull),this._Cr},enumerable:!0,configurable:!0}),Object.defineProperty(Ze.prototype,"id",{get:function(){return h("id",this._I,Qe,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(Ze.prototype,"mentions",{get:function(){return h("mentions",this._M,Qe,this._isNull),this._M},enumerable:!0,configurable:!0}),Object.defineProperty(Ze.prototype,"resolved",{get:function(){return h("resolved",this._Re,Qe,this._isNull),this._Re},set:function(e){this._Re=e,p(this,"Resolved",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ze.prototype,"richContent",{get:function(){return h("richContent",this._Ri,Qe,this._isNull),this._Ri},enumerable:!0,configurable:!0}),Ze.prototype.addReply=function(e){return r(o.CommentReply,this,"AddReply",0,[e],!1,!1,null,1)},Ze.prototype.assignTask=function(e){return r(o.DocumentTask,this,"AssignTask",0,[e],!1,!1,null,1)},Ze.prototype.delete=function(){l(this,"Delete",0,[],1,0)},Ze.prototype.getShapeAnchorOrNullObject=function(){return r(o.Shape,this,"GetShapeAnchorOrNullObject",1,[],!1,!1,null,5)},Ze.prototype.getSlideAnchorOrNullObject=function(){return r(o.Slide,this,"GetSlideAnchorOrNullObject",1,[],!1,!1,null,5)},Ze.prototype.getTask=function(){return r(o.DocumentTask,this,"GetTask",1,[],!1,!1,null,5)},Ze.prototype.getTaskOrNullObject=function(){return r(o.DocumentTask,this,"GetTaskOrNullObject",1,[],!1,!1,null,5)},Ze.prototype.getTextRangeAnchorOrNullObject=function(){return r(o.TextRange,this,"GetTextRangeAnchorOrNullObject",1,[],!1,!1,null,5)},Ze.prototype.updateMentions=function(e){l(this,"UpdateMentions",0,[e],1,0)},Ze.prototype._handleResult=function(e){if(Xe.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.AnchorType)||(this._A=t.AnchorType),d(t.Author)||(this._Au=t.Author),d(t.Content)||(this._C=t.Content),d(t.ContentType)||(this._Co=t.ContentType),d(t.CreationDate)||(this._Cr=O(t.CreationDate)),d(t.Id)||(this._I=t.Id),d(t.Mentions)||(this._M=t.Mentions),d(t.Resolved)||(this._Re=t.Resolved),d(t.RichContent)||(this._Ri=t.RichContent),_(this,t,["replies","Replies"])}},Ze.prototype.load=function(e){return m(this,e)},Ze.prototype.retrieve=function(e){return y(this,e)},Ze.prototype._handleIdResult=function(e){Xe.prototype._handleIdResult.call(this,e),f(e)||d(e.Id)||(this._I=e.Id)},Ze.prototype._handleRetrieveResult=function(e,t){if(Xe.prototype._handleRetrieveResult.call(this,e,t),!f(e)){var n=e;d(n.CreationDate)||(n.creationDate=O(n.creationDate)),S(this,e,t)}},Ze.prototype.toJSON=function(){return v(this,{},{})},Ze.prototype.setMockData=function(e){C(this,e)},Ze.prototype.ensureUnchanged=function(e){u(this,e)},Ze);function Ze(){return null!==Xe&&Xe.apply(this,arguments)||this}o.Comment=$e;var Ye,et=(Ye=OfficeExtension.ClientObject,__extends(tt,Ye),Object.defineProperty(tt.prototype,"_className",{get:function(){return"CommentCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(tt.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(tt.prototype,"items",{get:function(){return h("items",this.m__items,"CommentCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),tt.prototype.add=function(e,t){return r(o.Comment,this,"Add",0,[e,t],!1,!0,null,1)},tt.prototype.getCount=function(){return l(this,"GetCount",1,[],5,0)},tt.prototype.getItem=function(e){return t(o.Comment,this,[e])},tt.prototype.getItemAt=function(e){return r(o.Comment,this,"GetItemAt",1,[e],!1,!1,null,5)},tt.prototype.getItemOrNullObject=function(e){return r(o.Comment,this,"GetItemOrNullObject",1,[e],!1,!1,null,5)},tt.prototype._handleResult=function(e){if(Ye.prototype._handleResult.call(this,e),!f(e)){var t=e;if(b(this,t),!f(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=c(o.Comment,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},tt.prototype.load=function(e){return m(this,e)},tt.prototype.retrieve=function(e){return y(this,e)},tt.prototype._handleRetrieveResult=function(e,t){var n=this;Ye.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return c(o.Comment,!0,n,e,t)})},tt.prototype.toJSON=function(){return v(this,{},{},this.m__items)},tt.prototype.setMockData=function(e){var n=this;C(this,e,function(e,t){return c(o.Comment,!0,n,e,t)},function(e){return n.m__items=e})},tt);function tt(){return null!==Ye&&Ye.apply(this,arguments)||this}o.CommentCollection=et;var nt,rt=(nt=OfficeExtension.ClientObject,__extends(it,nt),Object.defineProperty(it.prototype,"_className",{get:function(){return"DocumentTaskCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(it.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(it.prototype,"items",{get:function(){return h("items",this.m__items,"DocumentTaskCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),it.prototype.getCount=function(){return l(this,"GetCount",1,[],5,0)},it.prototype.getItemAt=function(e){return r(o.DocumentTask,this,"GetItemAt",1,[e],!1,!1,null,5)},it.prototype._handleResult=function(e){if(nt.prototype._handleResult.call(this,e),!f(e)){var t=e;if(b(this,t),!f(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=c(o.DocumentTask,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},it.prototype.load=function(e){return m(this,e)},it.prototype.retrieve=function(e){return y(this,e)},it.prototype._handleRetrieveResult=function(e,t){var n=this;nt.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return c(o.DocumentTask,!1,n,e,t)})},it.prototype.toJSON=function(){return v(this,{},{},this.m__items)},it.prototype.setMockData=function(e){var n=this;C(this,e,function(e,t){return c(o.DocumentTask,!1,n,e,t)},function(e){return n.m__items=e})},it);function it(){return null!==nt&&nt.apply(this,arguments)||this}o.DocumentTaskCollection=rt;var ot,at,st,ct=(ot=OfficeExtension.ClientObject,__extends(lt,ot),Object.defineProperty(lt.prototype,"_className",{get:function(){return"HyperlinkCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(lt.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(lt.prototype,"items",{get:function(){return h("items",this.m__items,"HyperlinkCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),lt.prototype.add=function(e,t){return g("HyperlinkCollection.add",a,"1.10",i),r(o.Hyperlink,this,"Add",0,[e,t],!1,!0,null,0)},lt.prototype.getCount=function(){return l(this,"GetCount",1,[],4,0)},lt.prototype.getItemAt=function(e){return r(o.Hyperlink,this,"GetItemAt",1,[e],!1,!1,null,4)},lt.prototype._handleResult=function(e){if(ot.prototype._handleResult.call(this,e),!f(e)){var t=e;if(b(this,t),!f(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=c(o.Hyperlink,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},lt.prototype.load=function(e){return m(this,e)},lt.prototype.retrieve=function(e){return y(this,e)},lt.prototype._handleRetrieveResult=function(e,t){var n=this;ot.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return c(o.Hyperlink,!1,n,e,t)})},lt.prototype.toJSON=function(){return v(this,{},{},this.m__items)},lt.prototype.setMockData=function(e){var n=this;C(this,e,function(e,t){return c(o.Hyperlink,!1,n,e,t)},function(e){return n.m__items=e})},lt);function lt(){return null!==ot&&ot.apply(this,arguments)||this}o.HyperlinkCollection=ct,(at=o.ConnectorType||(o.ConnectorType={})).straight="Straight",at.elbow="Elbow",at.curve="Curve",(st=o.GeometricShapeType||(o.GeometricShapeType={})).lineInverse="LineInverse",st.triangle="Triangle",st.rightTriangle="RightTriangle",st.rectangle="Rectangle",st.diamond="Diamond",st.parallelogram="Parallelogram",st.trapezoid="Trapezoid",st.nonIsoscelesTrapezoid="NonIsoscelesTrapezoid",st.pentagon="Pentagon",st.hexagon="Hexagon",st.heptagon="Heptagon",st.octagon="Octagon",st.decagon="Decagon",st.dodecagon="Dodecagon",st.star4="Star4",st.star5="Star5",st.star6="Star6",st.star7="Star7",st.star8="Star8",st.star10="Star10",st.star12="Star12",st.star16="Star16",st.star24="Star24",st.star32="Star32",st.roundRectangle="RoundRectangle",st.round1Rectangle="Round1Rectangle",st.round2SameRectangle="Round2SameRectangle",st.round2DiagonalRectangle="Round2DiagonalRectangle",st.snipRoundRectangle="SnipRoundRectangle",st.snip1Rectangle="Snip1Rectangle",st.snip2SameRectangle="Snip2SameRectangle",st.snip2DiagonalRectangle="Snip2DiagonalRectangle",st.plaque="Plaque",st.ellipse="Ellipse",st.teardrop="Teardrop",st.homePlate="HomePlate",st.chevron="Chevron",st.pieWedge="PieWedge",st.pie="Pie",st.blockArc="BlockArc",st.donut="Donut",st.noSmoking="NoSmoking",st.rightArrow="RightArrow",st.leftArrow="LeftArrow",st.upArrow="UpArrow",st.downArrow="DownArrow",st.stripedRightArrow="StripedRightArrow",st.notchedRightArrow="NotchedRightArrow",st.bentUpArrow="BentUpArrow",st.leftRightArrow="LeftRightArrow",st.upDownArrow="UpDownArrow",st.leftUpArrow="LeftUpArrow",st.leftRightUpArrow="LeftRightUpArrow",st.quadArrow="QuadArrow",st.leftArrowCallout="LeftArrowCallout",st.rightArrowCallout="RightArrowCallout",st.upArrowCallout="UpArrowCallout",st.downArrowCallout="DownArrowCallout",st.leftRightArrowCallout="LeftRightArrowCallout",st.upDownArrowCallout="UpDownArrowCallout",st.quadArrowCallout="QuadArrowCallout",st.bentArrow="BentArrow",st.uturnArrow="UturnArrow",st.circularArrow="CircularArrow",st.leftCircularArrow="LeftCircularArrow",st.leftRightCircularArrow="LeftRightCircularArrow",st.curvedRightArrow="CurvedRightArrow",st.curvedLeftArrow="CurvedLeftArrow",st.curvedUpArrow="CurvedUpArrow",st.curvedDownArrow="CurvedDownArrow",st.swooshArrow="SwooshArrow",st.cube="Cube",st.can="Can",st.lightningBolt="LightningBolt",st.heart="Heart",st.sun="Sun",st.moon="Moon",st.smileyFace="SmileyFace",st.irregularSeal1="IrregularSeal1",st.irregularSeal2="IrregularSeal2",st.foldedCorner="FoldedCorner",st.bevel="Bevel",st.frame="Frame",st.halfFrame="HalfFrame",st.corner="Corner",st.diagonalStripe="DiagonalStripe",st.chord="Chord",st.arc="Arc",st.leftBracket="LeftBracket",st.rightBracket="RightBracket",st.leftBrace="LeftBrace",st.rightBrace="RightBrace",st.bracketPair="BracketPair",st.bracePair="BracePair",st.callout1="Callout1",st.callout2="Callout2",st.callout3="Callout3",st.accentCallout1="AccentCallout1",st.accentCallout2="AccentCallout2",st.accentCallout3="AccentCallout3",st.borderCallout1="BorderCallout1",st.borderCallout2="BorderCallout2",st.borderCallout3="BorderCallout3",st.accentBorderCallout1="AccentBorderCallout1",st.accentBorderCallout2="AccentBorderCallout2",st.accentBorderCallout3="AccentBorderCallout3",st.wedgeRectCallout="WedgeRectCallout",st.wedgeRRectCallout="WedgeRRectCallout",st.wedgeEllipseCallout="WedgeEllipseCallout",st.cloudCallout="CloudCallout",st.cloud="Cloud",st.ribbon="Ribbon",st.ribbon2="Ribbon2",st.ellipseRibbon="EllipseRibbon",st.ellipseRibbon2="EllipseRibbon2",st.leftRightRibbon="LeftRightRibbon",st.verticalScroll="VerticalScroll",st.horizontalScroll="HorizontalScroll",st.wave="Wave",st.doubleWave="DoubleWave",st.plus="Plus",st.flowChartProcess="FlowChartProcess",st.flowChartDecision="FlowChartDecision",st.flowChartInputOutput="FlowChartInputOutput",st.flowChartPredefinedProcess="FlowChartPredefinedProcess",st.flowChartInternalStorage="FlowChartInternalStorage",st.flowChartDocument="FlowChartDocument",st.flowChartMultidocument="FlowChartMultidocument",st.flowChartTerminator="FlowChartTerminator",st.flowChartPreparation="FlowChartPreparation",st.flowChartManualInput="FlowChartManualInput",st.flowChartManualOperation="FlowChartManualOperation",st.flowChartConnector="FlowChartConnector",st.flowChartPunchedCard="FlowChartPunchedCard",st.flowChartPunchedTape="FlowChartPunchedTape",st.flowChartSummingJunction="FlowChartSummingJunction",st.flowChartOr="FlowChartOr",st.flowChartCollate="FlowChartCollate",st.flowChartSort="FlowChartSort",st.flowChartExtract="FlowChartExtract",st.flowChartMerge="FlowChartMerge",st.flowChartOfflineStorage="FlowChartOfflineStorage",st.flowChartOnlineStorage="FlowChartOnlineStorage",st.flowChartMagneticTape="FlowChartMagneticTape",st.flowChartMagneticDisk="FlowChartMagneticDisk",st.flowChartMagneticDrum="FlowChartMagneticDrum",st.flowChartDisplay="FlowChartDisplay",st.flowChartDelay="FlowChartDelay",st.flowChartAlternateProcess="FlowChartAlternateProcess",st.flowChartOffpageConnector="FlowChartOffpageConnector",st.actionButtonBlank="ActionButtonBlank",st.actionButtonHome="ActionButtonHome",st.actionButtonHelp="ActionButtonHelp",st.actionButtonInformation="ActionButtonInformation",st.actionButtonForwardNext="ActionButtonForwardNext",st.actionButtonBackPrevious="ActionButtonBackPrevious",st.actionButtonEnd="ActionButtonEnd",st.actionButtonBeginning="ActionButtonBeginning",st.actionButtonReturn="ActionButtonReturn",st.actionButtonDocument="ActionButtonDocument",st.actionButtonSound="ActionButtonSound",st.actionButtonMovie="ActionButtonMovie",st.gear6="Gear6",st.gear9="Gear9",st.funnel="Funnel",st.mathPlus="MathPlus",st.mathMinus="MathMinus",st.mathMultiply="MathMultiply",st.mathDivide="MathDivide",st.mathEqual="MathEqual",st.mathNotEqual="MathNotEqual",st.cornerTabs="CornerTabs",st.squareTabs="SquareTabs",st.plaqueTabs="PlaqueTabs",st.chartX="ChartX",st.chartStar="ChartStar",st.chartPlus="ChartPlus";var ut,pt,ft=(ut=OfficeExtension.ClientObject,__extends(dt,ut),Object.defineProperty(dt.prototype,"_className",{get:function(){return"ShapeScopedCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(dt.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(dt.prototype,"items",{get:function(){return h("items",this.m__items,"ShapeScopedCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),dt.prototype.getCount=function(){return l(this,"GetCount",1,[],4,0)},dt.prototype.getItem=function(e){return t(o.Shape,this,[e])},dt.prototype.getItemAt=function(e){return r(o.Shape,this,"GetItemAt",1,[e],!1,!1,null,4)},dt.prototype.getItemOrNullObject=function(e){return r(o.Shape,this,"GetItemOrNullObject",0,[e],!1,!1,null,0)},dt.prototype.group=function(){return g("ShapeScopedCollection.group",a,"1.8",i),r(o.Shape,this,"Group",0,[],!1,!1,null,0)},dt.prototype._handleResult=function(e){if(ut.prototype._handleResult.call(this,e),!f(e)){var t=e;if(b(this,t),!f(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=c(o.Shape,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},dt.prototype.load=function(e){return m(this,e)},dt.prototype.retrieve=function(e){return y(this,e)},dt.prototype._handleRetrieveResult=function(e,t){var n=this;ut.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return c(o.Shape,!0,n,e,t)})},dt.prototype.toJSON=function(){return v(this,{},{},this.m__items)},dt.prototype.setMockData=function(e){var n=this;C(this,e,function(e,t){return c(o.Shape,!0,n,e,t)},function(e){return n.m__items=e})},dt);function dt(){return null!==ut&&ut.apply(this,arguments)||this}o.ShapeScopedCollection=ft,(pt=o.ShapeLineDashStyle||(o.ShapeLineDashStyle={})).dash="Dash",pt.dashDot="DashDot",pt.dashDotDot="DashDotDot",pt.longDash="LongDash",pt.longDashDot="LongDashDot",pt.roundDot="RoundDot",pt.solid="Solid",pt.squareDot="SquareDot",pt.longDashDotDot="LongDashDotDot",pt.systemDash="SystemDash",pt.systemDot="SystemDot",pt.systemDashDot="SystemDashDot";var ht,gt="Border",mt=(ht=OfficeExtension.ClientObject,__extends(yt,ht),Object.defineProperty(yt.prototype,"_className",{get:function(){return"Border"},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"_scalarPropertyNames",{get:function(){return["color","dashStyle","transparency","weight"]},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Color","DashStyle","Transparency","Weight"]},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"color",{get:function(){return h("color",this._C,gt,this._isNull),this._C},set:function(e){this._C=e,p(this,"Color",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"dashStyle",{get:function(){return h("dashStyle",this._D,gt,this._isNull),this._D},set:function(e){this._D=e,p(this,"DashStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"transparency",{get:function(){return h("transparency",this._T,gt,this._isNull),this._T},set:function(e){this._T=e,p(this,"Transparency",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"weight",{get:function(){return h("weight",this._W,gt,this._isNull),this._W},set:function(e){this._W=e,p(this,"Weight",e,0)},enumerable:!0,configurable:!0}),yt.prototype._handleResult=function(e){if(ht.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.Color)||(this._C=t.Color),d(t.DashStyle)||(this._D=t.DashStyle),d(t.Transparency)||(this._T=t.Transparency),d(t.Weight)||(this._W=t.Weight)}},yt.prototype.load=function(e){return m(this,e)},yt.prototype.retrieve=function(e){return y(this,e)},yt.prototype._handleRetrieveResult=function(e,t){ht.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},yt.prototype.toJSON=function(){return v(this,{},{})},yt.prototype.setMockData=function(e){C(this,e)},yt.prototype.ensureUnchanged=function(e){u(this,e)},yt);function yt(){return null!==ht&&ht.apply(this,arguments)||this}o.Border=mt;var vt,bt=(vt=OfficeExtension.ClientObject,__extends(_t,vt),Object.defineProperty(_t.prototype,"_className",{get:function(){return"Borders"},enumerable:!0,configurable:!0}),Object.defineProperty(_t.prototype,"_navigationPropertyNames",{get:function(){return["bottom","diagonalDown","diagonalUp","left","right","top"]},enumerable:!0,configurable:!0}),Object.defineProperty(_t.prototype,"bottom",{get:function(){return this._B||(this._B=e(o.Border,this,"Bottom",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(_t.prototype,"diagonalDown",{get:function(){return this._D||(this._D=e(o.Border,this,"DiagonalDown",!1,4)),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(_t.prototype,"diagonalUp",{get:function(){return this._Di||(this._Di=e(o.Border,this,"DiagonalUp",!1,4)),this._Di},enumerable:!0,configurable:!0}),Object.defineProperty(_t.prototype,"left",{get:function(){return this._L||(this._L=e(o.Border,this,"Left",!1,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(_t.prototype,"right",{get:function(){return this._R||(this._R=e(o.Border,this,"Right",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(_t.prototype,"top",{get:function(){return this._T||(this._T=e(o.Border,this,"Top",!1,4)),this._T},enumerable:!0,configurable:!0}),_t.prototype._handleResult=function(e){if(vt.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),_(this,t,["bottom","Bottom","diagonalDown","DiagonalDown","diagonalUp","DiagonalUp","left","Left","right","Right","top","Top"])}},_t.prototype.load=function(e){return m(this,e)},_t.prototype.retrieve=function(e){return y(this,e)},_t.prototype._handleRetrieveResult=function(e,t){vt.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},_t.prototype.toJSON=function(){return v(this,{},{})},_t.prototype.setMockData=function(e){C(this,e)},_t.prototype.ensureUnchanged=function(e){u(this,e)},_t);function _t(){return null!==vt&&vt.apply(this,arguments)||this}o.Borders=bt;var Ot,St,Ct="Margins",At=(Ot=OfficeExtension.ClientObject,__extends(Pt,Ot),Object.defineProperty(Pt.prototype,"_className",{get:function(){return"Margins"},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"_scalarPropertyNames",{get:function(){return["bottom","left","right","top"]},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Bottom","Left","Right","Top"]},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"bottom",{get:function(){return h("bottom",this._B,Ct,this._isNull),this._B},set:function(e){this._B=e,p(this,"Bottom",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"left",{get:function(){return h("left",this._L,Ct,this._isNull),this._L},set:function(e){this._L=e,p(this,"Left",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"right",{get:function(){return h("right",this._R,Ct,this._isNull),this._R},set:function(e){this._R=e,p(this,"Right",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"top",{get:function(){return h("top",this._T,Ct,this._isNull),this._T},set:function(e){this._T=e,p(this,"Top",e,0)},enumerable:!0,configurable:!0}),Pt.prototype._handleResult=function(e){if(Ot.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.Bottom)||(this._B=t.Bottom),d(t.Left)||(this._L=t.Left),d(t.Right)||(this._R=t.Right),d(t.Top)||(this._T=t.Top)}},Pt.prototype.load=function(e){return m(this,e)},Pt.prototype.retrieve=function(e){return y(this,e)},Pt.prototype._handleRetrieveResult=function(e,t){Ot.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Pt.prototype.toJSON=function(){return v(this,{},{})},Pt.prototype.setMockData=function(e){C(this,e)},Pt.prototype.ensureUnchanged=function(e){u(this,e)},Pt);function Pt(){return null!==Ot&&Ot.apply(this,arguments)||this}o.Margins=At,(St=o.ShapeFillType||(o.ShapeFillType={})).noFill="NoFill",St.solid="Solid",St.gradient="Gradient",St.pattern="Pattern",St.pictureAndTexture="PictureAndTexture",St.slideBackground="SlideBackground";var Et,Tt="ShapeFill",It=(Et=OfficeExtension.ClientObject,__extends(wt,Et),Object.defineProperty(wt.prototype,"_className",{get:function(){return"ShapeFill"},enumerable:!0,configurable:!0}),Object.defineProperty(wt.prototype,"_scalarPropertyNames",{get:function(){return["foregroundColor","transparency","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(wt.prototype,"_scalarPropertyOriginalNames",{get:function(){return["ForegroundColor","Transparency","Type"]},enumerable:!0,configurable:!0}),Object.defineProperty(wt.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(wt.prototype,"foregroundColor",{get:function(){return h("foregroundColor",this._F,Tt,this._isNull),this._F},set:function(e){this._F=e,p(this,"ForegroundColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(wt.prototype,"transparency",{get:function(){return h("transparency",this._T,Tt,this._isNull),this._T},set:function(e){this._T=e,p(this,"Transparency",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(wt.prototype,"type",{get:function(){return h("type",this._Ty,Tt,this._isNull),this._Ty},enumerable:!0,configurable:!0}),wt.prototype.clear=function(){l(this,"Clear",0,[],0,0)},wt.prototype.setImage=function(e){g("ShapeFill.setImage",a,"1.8",i),l(this,"SetImage",0,[e],0,0)},wt.prototype.setSolidColor=function(e){l(this,"SetSolidColor",0,[e],0,0)},wt.prototype._handleResult=function(e){if(Et.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.ForegroundColor)||(this._F=t.ForegroundColor),d(t.Transparency)||(this._T=t.Transparency),d(t.Type)||(this._Ty=t.Type)}},wt.prototype.load=function(e){return m(this,e)},wt.prototype.retrieve=function(e){return y(this,e)},wt.prototype._handleRetrieveResult=function(e,t){Et.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},wt.prototype.toJSON=function(){return v(this,{},{})},wt.prototype.setMockData=function(e){C(this,e)},wt.prototype.ensureUnchanged=function(e){u(this,e)},wt);function wt(){return null!==Et&&Et.apply(this,arguments)||this}o.ShapeFill=It;var Rt,Dt="TableCell",xt=(Rt=OfficeExtension.ClientObject,__extends(Ft,Rt),Object.defineProperty(Ft.prototype,"_className",{get:function(){return"TableCell"},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"_scalarPropertyNames",{get:function(){return["horizontalAlignment","indentLevel","text","textRuns","verticalAlignment","columnCount","columnIndex","rowCount","rowIndex"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"_scalarPropertyOriginalNames",{get:function(){return["HorizontalAlignment","IndentLevel","Text","TextRuns","VerticalAlignment","ColumnCount","ColumnIndex","RowCount","RowIndex"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!1,!1,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"_navigationPropertyNames",{get:function(){return["borders","fill","font","margins"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"borders",{get:function(){return g("TableCell.borders",a,"1.9",i),this._B||(this._B=e(o.Borders,this,"Borders",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"fill",{get:function(){return g("TableCell.fill",a,"1.9",i),this._F||(this._F=e(o.ShapeFill,this,"Fill",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"font",{get:function(){return g("TableCell.font",a,"1.9",i),this._Fo||(this._Fo=e(o.ShapeFont,this,"Font",!1,4)),this._Fo},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"margins",{get:function(){return g("TableCell.margins",a,"1.9",i),this._M||(this._M=e(o.Margins,this,"Margins",!1,4)),this._M},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"columnCount",{get:function(){return h("columnCount",this._C,Dt,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"columnIndex",{get:function(){return h("columnIndex",this._Co,Dt,this._isNull),this._Co},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"horizontalAlignment",{get:function(){return h("horizontalAlignment",this._H,Dt,this._isNull),g("TableCell.horizontalAlignment",a,"1.9",i),this._H},set:function(e){this._H=e,p(this,"HorizontalAlignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"indentLevel",{get:function(){return h("indentLevel",this._I,Dt,this._isNull),g("TableCell.indentLevel",a,"1.9",i),this._I},set:function(e){this._I=e,p(this,"IndentLevel",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"rowCount",{get:function(){return h("rowCount",this._R,Dt,this._isNull),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"rowIndex",{get:function(){return h("rowIndex",this._Ro,Dt,this._isNull),this._Ro},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"text",{get:function(){return h("text",this._T,Dt,this._isNull),this._T},set:function(e){this._T=e,p(this,"Text",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"textRuns",{get:function(){return h("textRuns",this._Te,Dt,this._isNull),g("TableCell.textRuns",a,"1.9",i),this._Te},set:function(e){this._Te=e,p(this,"TextRuns",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"verticalAlignment",{get:function(){return h("verticalAlignment",this._V,Dt,this._isNull),g("TableCell.verticalAlignment",a,"1.9",i),this._V},set:function(e){this._V=e,p(this,"VerticalAlignment",e,0)},enumerable:!0,configurable:!0}),Ft.prototype.resize=function(e,t){g("TableCell.resize",a,"1.9",i),l(this,"Resize",0,[e,t],0,0)},Ft.prototype.split=function(e,t){g("TableCell.split",a,"1.9",i),l(this,"Split",0,[e,t],0,0)},Ft.prototype._handleResult=function(e){if(Rt.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.ColumnCount)||(this._C=t.ColumnCount),d(t.ColumnIndex)||(this._Co=t.ColumnIndex),d(t.HorizontalAlignment)||(this._H=t.HorizontalAlignment),d(t.IndentLevel)||(this._I=t.IndentLevel),d(t.RowCount)||(this._R=t.RowCount),d(t.RowIndex)||(this._Ro=t.RowIndex),d(t.Text)||(this._T=t.Text),d(t.TextRuns)||(this._Te=t.TextRuns),d(t.VerticalAlignment)||(this._V=t.VerticalAlignment),_(this,t,["borders","Borders","fill","Fill","font","Font","margins","Margins"])}},Ft.prototype.load=function(e){return m(this,e)},Ft.prototype.retrieve=function(e){return y(this,e)},Ft.prototype._handleRetrieveResult=function(e,t){Rt.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Ft.prototype.toJSON=function(){return v(this,{},{})},Ft.prototype.setMockData=function(e){C(this,e)},Ft.prototype.ensureUnchanged=function(e){u(this,e)},Ft);function Ft(){return null!==Rt&&Rt.apply(this,arguments)||this}o.TableCell=xt;var Nt,kt=(Nt=OfficeExtension.ClientObject,__extends(jt,Nt),Object.defineProperty(jt.prototype,"_className",{get:function(){return"TableCellCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"items",{get:function(){return h("items",this.m__items,"TableCellCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),jt.prototype.getCount=function(){return l(this,"GetCount",1,[],4,0)},jt.prototype.getItemAtOrNullObject=function(e,t){return r(o.TableCell,this,"GetItemAtOrNullObject",1,[e,t],!1,!1,null,4)},jt.prototype._handleResult=function(e){if(Nt.prototype._handleResult.call(this,e),!f(e)){var t=e;if(b(this,t),!f(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=c(o.TableCell,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},jt.prototype.load=function(e){return m(this,e)},jt.prototype.retrieve=function(e){return y(this,e)},jt.prototype._handleRetrieveResult=function(e,t){var n=this;Nt.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return c(o.TableCell,!1,n,e,t)})},jt.prototype.toJSON=function(){return v(this,{},{},this.m__items)},jt.prototype.setMockData=function(e){var n=this;C(this,e,function(e,t){return c(o.TableCell,!1,n,e,t)},function(e){return n.m__items=e})},jt);function jt(){return null!==Nt&&Nt.apply(this,arguments)||this}o.TableCellCollection=kt;var Mt,Ht="TableColumn",Ut=(Mt=OfficeExtension.ClientObject,__extends(Lt,Mt),Object.defineProperty(Lt.prototype,"_className",{get:function(){return"TableColumn"},enumerable:!0,configurable:!0}),Object.defineProperty(Lt.prototype,"_scalarPropertyNames",{get:function(){return["width","columnIndex"]},enumerable:!0,configurable:!0}),Object.defineProperty(Lt.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Width","ColumnIndex"]},enumerable:!0,configurable:!0}),Object.defineProperty(Lt.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(Lt.prototype,"columnIndex",{get:function(){return h("columnIndex",this._C,Ht,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(Lt.prototype,"width",{get:function(){return h("width",this._W,Ht,this._isNull),this._W},set:function(e){this._W=e,p(this,"Width",e,0)},enumerable:!0,configurable:!0}),Lt.prototype.delete=function(){l(this,"Delete",0,[],0,0)},Lt.prototype._handleResult=function(e){if(Mt.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.ColumnIndex)||(this._C=t.ColumnIndex),d(t.Width)||(this._W=t.Width)}},Lt.prototype.load=function(e){return m(this,e)},Lt.prototype.retrieve=function(e){return y(this,e)},Lt.prototype._handleRetrieveResult=function(e,t){Mt.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Lt.prototype.toJSON=function(){return v(this,{},{})},Lt.prototype.setMockData=function(e){C(this,e)},Lt.prototype.ensureUnchanged=function(e){u(this,e)},Lt);function Lt(){return null!==Mt&&Mt.apply(this,arguments)||this}o.TableColumn=Ut;var Bt,Wt=(Bt=OfficeExtension.ClientObject,__extends(Gt,Bt),Object.defineProperty(Gt.prototype,"_className",{get:function(){return"TableColumnCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Gt.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Gt.prototype,"items",{get:function(){return h("items",this.m__items,"TableColumnCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),Gt.prototype.add=function(e,t){l(this,"Add",0,[e,t],0,0)},Gt.prototype.deleteColumns=function(e){l(this,"DeleteColumns",0,[e],0,0)},Gt.prototype.getCount=function(){return l(this,"GetCount",1,[],4,0)},Gt.prototype.getItemAt=function(e){return r(o.TableColumn,this,"GetItemAt",1,[e],!1,!1,null,4)},Gt.prototype._handleResult=function(e){if(Bt.prototype._handleResult.call(this,e),!f(e)){var t=e;if(b(this,t),!f(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=c(o.TableColumn,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Gt.prototype.load=function(e){return m(this,e)},Gt.prototype.retrieve=function(e){return y(this,e)},Gt.prototype._handleRetrieveResult=function(e,t){var n=this;Bt.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return c(o.TableColumn,!1,n,e,t)})},Gt.prototype.toJSON=function(){return v(this,{},{},this.m__items)},Gt.prototype.setMockData=function(e){var n=this;C(this,e,function(e,t){return c(o.TableColumn,!1,n,e,t)},function(e){return n.m__items=e})},Gt);function Gt(){return null!==Bt&&Bt.apply(this,arguments)||this}o.TableColumnCollection=Wt;var Vt,qt="TableRow",Jt=(Vt=OfficeExtension.ClientObject,__extends(zt,Vt),Object.defineProperty(zt.prototype,"_className",{get:function(){return"TableRow"},enumerable:!0,configurable:!0}),Object.defineProperty(zt.prototype,"_scalarPropertyNames",{get:function(){return["height","currentHeight","rowIndex"]},enumerable:!0,configurable:!0}),Object.defineProperty(zt.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Height","CurrentHeight","RowIndex"]},enumerable:!0,configurable:!0}),Object.defineProperty(zt.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(zt.prototype,"currentHeight",{get:function(){return h("currentHeight",this._C,qt,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(zt.prototype,"height",{get:function(){return h("height",this._H,qt,this._isNull),this._H},set:function(e){this._H=e,p(this,"Height",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(zt.prototype,"rowIndex",{get:function(){return h("rowIndex",this._R,qt,this._isNull),this._R},enumerable:!0,configurable:!0}),zt.prototype.delete=function(){l(this,"Delete",0,[],0,0)},zt.prototype._handleResult=function(e){if(Vt.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.CurrentHeight)||(this._C=t.CurrentHeight),d(t.Height)||(this._H=t.Height),d(t.RowIndex)||(this._R=t.RowIndex)}},zt.prototype.load=function(e){return m(this,e)},zt.prototype.retrieve=function(e){return y(this,e)},zt.prototype._handleRetrieveResult=function(e,t){Vt.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},zt.prototype.toJSON=function(){return v(this,{},{})},zt.prototype.setMockData=function(e){C(this,e)},zt.prototype.ensureUnchanged=function(e){u(this,e)},zt);function zt(){return null!==Vt&&Vt.apply(this,arguments)||this}o.TableRow=Jt;var Kt,Xt,Qt=(Kt=OfficeExtension.ClientObject,__extends($t,Kt),Object.defineProperty($t.prototype,"_className",{get:function(){return"TableRowCollection"},enumerable:!0,configurable:!0}),Object.defineProperty($t.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty($t.prototype,"items",{get:function(){return h("items",this.m__items,"TableRowCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),$t.prototype.add=function(e,t){l(this,"Add",0,[e,t],0,0)},$t.prototype.deleteRows=function(e){l(this,"DeleteRows",0,[e],0,0)},$t.prototype.getCount=function(){return l(this,"GetCount",1,[],4,0)},$t.prototype.getItemAt=function(e){return r(o.TableRow,this,"GetItemAt",1,[e],!1,!1,null,4)},$t.prototype._handleResult=function(e){if(Kt.prototype._handleResult.call(this,e),!f(e)){var t=e;if(b(this,t),!f(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=c(o.TableRow,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},$t.prototype.load=function(e){return m(this,e)},$t.prototype.retrieve=function(e){return y(this,e)},$t.prototype._handleRetrieveResult=function(e,t){var n=this;Kt.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return c(o.TableRow,!1,n,e,t)})},$t.prototype.toJSON=function(){return v(this,{},{},this.m__items)},$t.prototype.setMockData=function(e){var n=this;C(this,e,function(e,t){return c(o.TableRow,!1,n,e,t)},function(e){return n.m__items=e})},$t);function $t(){return null!==Kt&&Kt.apply(this,arguments)||this}o.TableRowCollection=Qt,(Xt=o.TableStyle||(o.TableStyle={})).noStyleNoGrid="NoStyleNoGrid",Xt.themedStyle1Accent1="ThemedStyle1Accent1",Xt.themedStyle1Accent2="ThemedStyle1Accent2",Xt.themedStyle1Accent3="ThemedStyle1Accent3",Xt.themedStyle1Accent4="ThemedStyle1Accent4",Xt.themedStyle1Accent5="ThemedStyle1Accent5",Xt.themedStyle1Accent6="ThemedStyle1Accent6",Xt.noStyleTableGrid="NoStyleTableGrid",Xt.themedStyle2Accent1="ThemedStyle2Accent1",Xt.themedStyle2Accent2="ThemedStyle2Accent2",Xt.themedStyle2Accent3="ThemedStyle2Accent3",Xt.themedStyle2Accent4="ThemedStyle2Accent4",Xt.themedStyle2Accent5="ThemedStyle2Accent5",Xt.themedStyle2Accent6="ThemedStyle2Accent6",Xt.lightStyle1="LightStyle1",Xt.lightStyle1Accent1="LightStyle1Accent1",Xt.lightStyle1Accent2="LightStyle1Accent2",Xt.lightStyle1Accent3="LightStyle1Accent3",Xt.lightStyle1Accent4="LightStyle1Accent4",Xt.lightStyle1Accent5="LightStyle1Accent5",Xt.lightStyle1Accent6="LightStyle1Accent6",Xt.lightStyle2="LightStyle2",Xt.lightStyle2Accent1="LightStyle2Accent1",Xt.lightStyle2Accent2="LightStyle2Accent2",Xt.lightStyle2Accent3="LightStyle2Accent3",Xt.lightStyle2Accent4="LightStyle2Accent4",Xt.lightStyle2Accent5="LightStyle2Accent5",Xt.lightStyle2Accent6="LightStyle2Accent6",Xt.lightStyle3="LightStyle3",Xt.lightStyle3Accent1="LightStyle3Accent1",Xt.lightStyle3Accent2="LightStyle3Accent2",Xt.lightStyle3Accent3="LightStyle3Accent3",Xt.lightStyle3Accent4="LightStyle3Accent4",Xt.lightStyle3Accent5="LightStyle3Accent5",Xt.lightStyle3Accent6="LightStyle3Accent6",Xt.mediumStyle1="MediumStyle1",Xt.mediumStyle1Accent1="MediumStyle1Accent1",Xt.mediumStyle1Accent2="MediumStyle1Accent2",Xt.mediumStyle1Accent3="MediumStyle1Accent3",Xt.mediumStyle1Accent4="MediumStyle1Accent4",Xt.mediumStyle1Accent5="MediumStyle1Accent5",Xt.mediumStyle1Accent6="MediumStyle1Accent6",Xt.mediumStyle2="MediumStyle2",Xt.mediumStyle2Accent1="MediumStyle2Accent1",Xt.mediumStyle2Accent2="MediumStyle2Accent2",Xt.mediumStyle2Accent3="MediumStyle2Accent3",Xt.mediumStyle2Accent4="MediumStyle2Accent4",Xt.mediumStyle2Accent5="MediumStyle2Accent5",Xt.mediumStyle2Accent6="MediumStyle2Accent6",Xt.mediumStyle3="MediumStyle3",Xt.mediumStyle3Accent1="MediumStyle3Accent1",Xt.mediumStyle3Accent2="MediumStyle3Accent2",Xt.mediumStyle3Accent3="MediumStyle3Accent3",Xt.mediumStyle3Accent4="MediumStyle3Accent4",Xt.mediumStyle3Accent5="MediumStyle3Accent5",Xt.mediumStyle3Accent6="MediumStyle3Accent6",Xt.mediumStyle4="MediumStyle4",Xt.mediumStyle4Accent1="MediumStyle4Accent1",Xt.mediumStyle4Accent2="MediumStyle4Accent2",Xt.mediumStyle4Accent3="MediumStyle4Accent3",Xt.mediumStyle4Accent4="MediumStyle4Accent4",Xt.mediumStyle4Accent5="MediumStyle4Accent5",Xt.mediumStyle4Accent6="MediumStyle4Accent6",Xt.darkStyle1="DarkStyle1",Xt.darkStyle1Accent1="DarkStyle1Accent1",Xt.darkStyle1Accent2="DarkStyle1Accent2",Xt.darkStyle1Accent3="DarkStyle1Accent3",Xt.darkStyle1Accent4="DarkStyle1Accent4",Xt.darkStyle1Accent5="DarkStyle1Accent5",Xt.darkStyle1Accent6="DarkStyle1Accent6",Xt.darkStyle2="DarkStyle2",Xt.darkStyle2Accent1="DarkStyle2Accent1",Xt.darkStyle2Accent2="DarkStyle2Accent2",Xt.darkStyle2Accent3="DarkStyle2Accent3";var Zt,Yt="TableStyleSettings",en=(Zt=OfficeExtension.ClientObject,__extends(tn,Zt),Object.defineProperty(tn.prototype,"_className",{get:function(){return"TableStyleSettings"},enumerable:!0,configurable:!0}),Object.defineProperty(tn.prototype,"_scalarPropertyNames",{get:function(){return["areColumnsBanded","areRowsBanded","isFirstColumnHighlighted","isFirstRowHighlighted","isLastColumnHighlighted","isLastRowHighlighted","style"]},enumerable:!0,configurable:!0}),Object.defineProperty(tn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["AreColumnsBanded","AreRowsBanded","IsFirstColumnHighlighted","IsFirstRowHighlighted","IsLastColumnHighlighted","IsLastRowHighlighted","Style"]},enumerable:!0,configurable:!0}),Object.defineProperty(tn.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(tn.prototype,"areColumnsBanded",{get:function(){return h("areColumnsBanded",this._A,Yt,this._isNull),this._A},set:function(e){this._A=e,p(this,"AreColumnsBanded",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(tn.prototype,"areRowsBanded",{get:function(){return h("areRowsBanded",this._Ar,Yt,this._isNull),this._Ar},set:function(e){this._Ar=e,p(this,"AreRowsBanded",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(tn.prototype,"isFirstColumnHighlighted",{get:function(){return h("isFirstColumnHighlighted",this._I,Yt,this._isNull),this._I},set:function(e){this._I=e,p(this,"IsFirstColumnHighlighted",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(tn.prototype,"isFirstRowHighlighted",{get:function(){return h("isFirstRowHighlighted",this._Is,Yt,this._isNull),this._Is},set:function(e){this._Is=e,p(this,"IsFirstRowHighlighted",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(tn.prototype,"isLastColumnHighlighted",{get:function(){return h("isLastColumnHighlighted",this._IsL,Yt,this._isNull),this._IsL},set:function(e){this._IsL=e,p(this,"IsLastColumnHighlighted",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(tn.prototype,"isLastRowHighlighted",{get:function(){return h("isLastRowHighlighted",this._IsLa,Yt,this._isNull),this._IsLa},set:function(e){this._IsLa=e,p(this,"IsLastRowHighlighted",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(tn.prototype,"style",{get:function(){return h("style",this._S,Yt,this._isNull),this._S},set:function(e){this._S=e,p(this,"Style",e,0)},enumerable:!0,configurable:!0}),tn.prototype._handleResult=function(e){if(Zt.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.AreColumnsBanded)||(this._A=t.AreColumnsBanded),d(t.AreRowsBanded)||(this._Ar=t.AreRowsBanded),d(t.IsFirstColumnHighlighted)||(this._I=t.IsFirstColumnHighlighted),d(t.IsFirstRowHighlighted)||(this._Is=t.IsFirstRowHighlighted),d(t.IsLastColumnHighlighted)||(this._IsL=t.IsLastColumnHighlighted),d(t.IsLastRowHighlighted)||(this._IsLa=t.IsLastRowHighlighted),d(t.Style)||(this._S=t.Style)}},tn.prototype.load=function(e){return m(this,e)},tn.prototype.retrieve=function(e){return y(this,e)},tn.prototype._handleRetrieveResult=function(e,t){Zt.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},tn.prototype.toJSON=function(){return v(this,{},{})},tn.prototype.setMockData=function(e){C(this,e)},tn.prototype.ensureUnchanged=function(e){u(this,e)},tn);function tn(){return null!==Zt&&Zt.apply(this,arguments)||this}o.TableStyleSettings=en;var nn,rn=(nn=OfficeExtension.ClientObject,__extends(on,nn),Object.defineProperty(on.prototype,"_className",{get:function(){return"Table"},enumerable:!0,configurable:!0}),Object.defineProperty(on.prototype,"_scalarPropertyNames",{get:function(){return["columnCount","rowCount","values"]},enumerable:!0,configurable:!0}),Object.defineProperty(on.prototype,"_scalarPropertyOriginalNames",{get:function(){return["ColumnCount","RowCount","Values"]},enumerable:!0,configurable:!0}),Object.defineProperty(on.prototype,"_navigationPropertyNames",{get:function(){return["columns","rows","styleSettings"]},enumerable:!0,configurable:!0}),Object.defineProperty(on.prototype,"columns",{get:function(){return g("Table.columns",a,"1.9",i),this._Co||(this._Co=e(o.TableColumnCollection,this,"Columns",!0,4)),this._Co},enumerable:!0,configurable:!0}),Object.defineProperty(on.prototype,"rows",{get:function(){return g("Table.rows",a,"1.9",i),this._Ro||(this._Ro=e(o.TableRowCollection,this,"Rows",!0,4)),this._Ro},enumerable:!0,configurable:!0}),Object.defineProperty(on.prototype,"styleSettings",{get:function(){return g("Table.styleSettings",a,"1.9",i),this._S||(this._S=e(o.TableStyleSettings,this,"StyleSettings",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(on.prototype,"columnCount",{get:function(){return h("columnCount",this._C,"Table",this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(on.prototype,"rowCount",{get:function(){return h("rowCount",this._R,"Table",this._isNull),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(on.prototype,"values",{get:function(){return h("values",this._V,"Table",this._isNull),this._V},enumerable:!0,configurable:!0}),on.prototype.clear=function(e){g("Table.clear",a,"1.9",i),l(this,"Clear",0,[e],0,0)},on.prototype.getCellOrNullObject=function(e,t){return r(o.TableCell,this,"GetCellOrNullObject",1,[e,t],!1,!1,null,4)},on.prototype.getMergedAreas=function(){return r(o.TableCellCollection,this,"GetMergedAreas",0,[],!0,!1,null,0)},on.prototype.getShape=function(){return r(o.Shape,this,"GetShape",1,[],!1,!1,null,4)},on.prototype.mergeCells=function(e,t,n,r){g("Table.mergeCells",a,"1.9",i),l(this,"MergeCells",0,[e,t,n,r],0,0)},on.prototype._handleResult=function(e){if(nn.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.ColumnCount)||(this._C=t.ColumnCount),d(t.RowCount)||(this._R=t.RowCount),d(t.Values)||(this._V=t.Values),_(this,t,["columns","Columns","rows","Rows","styleSettings","StyleSettings"])}},on.prototype.load=function(e){return m(this,e)},on.prototype.retrieve=function(e){return y(this,e)},on.prototype._handleRetrieveResult=function(e,t){nn.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},on.prototype.toJSON=function(){return v(this,{},{})},on.prototype.setMockData=function(e){C(this,e)},on.prototype.ensureUnchanged=function(e){u(this,e)},on);function on(){return null!==nn&&nn.apply(this,arguments)||this}o.Table=rn;var an,sn,cn=(an=OfficeExtension.ClientObject,__extends(ln,an),Object.defineProperty(ln.prototype,"_className",{get:function(){return"ShapeCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(ln.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(ln.prototype,"items",{get:function(){return h("items",this.m__items,"ShapeCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),ln.prototype.addGeometricShape=function(e,t){return g("ShapeCollection.addGeometricShape",a,"1.4",i),r(o.Shape,this,"AddGeometricShape",0,[e,t],!1,!1,null,0)},ln.prototype.addGroup=function(e){return g("ShapeCollection.addGroup",a,"1.8",i),r(o.Shape,this,"AddGroup",0,[e],!1,!1,null,0)},ln.prototype.addLine=function(e,t){return g("ShapeCollection.addLine",a,"1.4",i),r(o.Shape,this,"AddLine",0,[e,t],!1,!1,null,0)},ln.prototype.addPicture=function(e,t){return g("ShapeCollection.addPicture",a,"1.11",i),r(o.Shape,this,"AddPicture",0,[e,t],!1,!1,null,0)},ln.prototype.addTable=function(e,t,n){return g("ShapeCollection.addTable",a,"1.8",i),r(o.Shape,this,"AddTable",0,[e,t,n],!1,!1,null,0)},ln.prototype.addTextBox=function(e,t){return g("ShapeCollection.addTextBox",a,"1.4",i),r(o.Shape,this,"AddTextBox",0,[e,t],!1,!1,null,0)},ln.prototype.getCount=function(){return l(this,"GetCount",1,[],4,0)},ln.prototype.getItem=function(e){return t(o.Shape,this,[e])},ln.prototype.getItemAt=function(e){return r(o.Shape,this,"GetItemAt",1,[e],!1,!1,null,4)},ln.prototype.getItemOrNullObject=function(e){return r(o.Shape,this,"GetItemOrNullObject",0,[e],!1,!1,null,0)},ln.prototype.insertFromBase64Presentation=function(e,t){return g("ShapeCollection.insertFromBase64Presentation",a,"1.11",i),r(o.ShapeScopedCollection,this,"InsertFromBase64Presentation",0,[e,t],!0,!1,null,1)},ln.prototype._handleResult=function(e){if(an.prototype._handleResult.call(this,e),!f(e)){var t=e;if(b(this,t),!f(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=c(o.Shape,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},ln.prototype.load=function(e){return m(this,e)},ln.prototype.retrieve=function(e){return y(this,e)},ln.prototype._handleRetrieveResult=function(e,t){var n=this;an.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return c(o.Shape,!0,n,e,t)})},ln.prototype.toJSON=function(){return v(this,{},{},this.m__items)},ln.prototype.setMockData=function(e){var n=this;C(this,e,function(e,t){return c(o.Shape,!0,n,e,t)},function(e){return n.m__items=e})},ln);function ln(){return null!==an&&an.apply(this,arguments)||this}o.ShapeCollection=cn,(sn=o.SlideBackgroundGradientFillType||(o.SlideBackgroundGradientFillType={})).unsupported="Unsupported",sn.linear="Linear",sn.radial="Radial",sn.rectangular="Rectangular",sn.path="Path",sn.shadeFromTitle="ShadeFromTitle";var un,pn,fn=(un=OfficeExtension.ClientObject,__extends(dn,un),Object.defineProperty(dn.prototype,"_className",{get:function(){return"SlideBackgroundGradientFill"},enumerable:!0,configurable:!0}),Object.defineProperty(dn.prototype,"_scalarPropertyNames",{get:function(){return["type"]},enumerable:!0,configurable:!0}),Object.defineProperty(dn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Type"]},enumerable:!0,configurable:!0}),Object.defineProperty(dn.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0]},enumerable:!0,configurable:!0}),Object.defineProperty(dn.prototype,"type",{get:function(){return h("type",this._T,"SlideBackgroundGradientFill",this._isNull),this._T},set:function(e){this._T=e,p(this,"Type",e,0)},enumerable:!0,configurable:!0}),dn.prototype._handleResult=function(e){if(un.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.Type)||(this._T=t.Type)}},dn.prototype.load=function(e){return m(this,e)},dn.prototype.retrieve=function(e){return y(this,e)},dn.prototype._handleRetrieveResult=function(e,t){un.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},dn.prototype.toJSON=function(){return v(this,{},{})},dn.prototype.setMockData=function(e){C(this,e)},dn.prototype.ensureUnchanged=function(e){u(this,e)},dn);function dn(){return null!==un&&un.apply(this,arguments)||this}o.SlideBackgroundGradientFill=fn,(pn=o.SlideBackgroundPatternFillType||(o.SlideBackgroundPatternFillType={})).unsupported="Unsupported",pn.percent5="Percent5",pn.percent10="Percent10",pn.percent20="Percent20",pn.percent25="Percent25",pn.percent30="Percent30",pn.percent40="Percent40",pn.percent50="Percent50",pn.percent60="Percent60",pn.percent70="Percent70",pn.percent75="Percent75",pn.percent80="Percent80",pn.percent90="Percent90",pn.horizontal="Horizontal",pn.vertical="Vertical",pn.lightHorizontal="LightHorizontal",pn.lightVertical="LightVertical",pn.darkHorizontal="DarkHorizontal",pn.darkVertical="DarkVertical",pn.narrowHorizontal="NarrowHorizontal",pn.narrowVertical="NarrowVertical",pn.dashedHorizontal="DashedHorizontal",pn.dashedVertical="DashedVertical",pn.cross="Cross",pn.downwardDiagonal="DownwardDiagonal",pn.upwardDiagonal="UpwardDiagonal",pn.lightDownwardDiagonal="LightDownwardDiagonal",pn.lightUpwardDiagonal="LightUpwardDiagonal",pn.darkDownwardDiagonal="DarkDownwardDiagonal",pn.darkUpwardDiagonal="DarkUpwardDiagonal",pn.wideDownwardDiagonal="WideDownwardDiagonal",pn.wideUpwardDiagonal="WideUpwardDiagonal",pn.dashedDownwardDiagonal="DashedDownwardDiagonal",pn.dashedUpwardDiagonal="DashedUpwardDiagonal",pn.diagonalCross="DiagonalCross",pn.smallCheckerBoard="SmallCheckerBoard",pn.largeCheckerBoard="LargeCheckerBoard",pn.smallGrid="SmallGrid",pn.largeGrid="LargeGrid",pn.dottedGrid="DottedGrid",pn.smallConfetti="SmallConfetti",pn.largeConfetti="LargeConfetti",pn.horizontalBrick="HorizontalBrick",pn.diagonalBrick="DiagonalBrick",pn.solidDiamond="SolidDiamond",pn.outlinedDiamond="OutlinedDiamond",pn.dottedDiamond="DottedDiamond",pn.plaid="Plaid",pn.sphere="Sphere",pn.weave="Weave",pn.divot="Divot",pn.shingle="Shingle",pn.wave="Wave",pn.trellis="Trellis",pn.zigZag="ZigZag";var hn,gn="SlideBackgroundPatternFill",mn=(hn=OfficeExtension.ClientObject,__extends(yn,hn),Object.defineProperty(yn.prototype,"_className",{get:function(){return"SlideBackgroundPatternFill"},enumerable:!0,configurable:!0}),Object.defineProperty(yn.prototype,"_scalarPropertyNames",{get:function(){return["backgroundColor","foregroundColor","pattern"]},enumerable:!0,configurable:!0}),Object.defineProperty(yn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["BackgroundColor","ForegroundColor","Pattern"]},enumerable:!0,configurable:!0}),Object.defineProperty(yn.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(yn.prototype,"backgroundColor",{get:function(){return h("backgroundColor",this._B,gn,this._isNull),this._B},set:function(e){this._B=e,p(this,"BackgroundColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(yn.prototype,"foregroundColor",{get:function(){return h("foregroundColor",this._F,gn,this._isNull),this._F},set:function(e){this._F=e,p(this,"ForegroundColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(yn.prototype,"pattern",{get:function(){return h("pattern",this._P,gn,this._isNull),this._P},set:function(e){this._P=e,p(this,"Pattern",e,0)},enumerable:!0,configurable:!0}),yn.prototype._handleResult=function(e){if(hn.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.BackgroundColor)||(this._B=t.BackgroundColor),d(t.ForegroundColor)||(this._F=t.ForegroundColor),d(t.Pattern)||(this._P=t.Pattern)}},yn.prototype.load=function(e){return m(this,e)},yn.prototype.retrieve=function(e){return y(this,e)},yn.prototype._handleRetrieveResult=function(e,t){hn.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},yn.prototype.toJSON=function(){return v(this,{},{})},yn.prototype.setMockData=function(e){C(this,e)},yn.prototype.ensureUnchanged=function(e){u(this,e)},yn);function yn(){return null!==hn&&hn.apply(this,arguments)||this}o.SlideBackgroundPatternFill=mn;var vn,bn,_n=(vn=OfficeExtension.ClientObject,__extends(On,vn),Object.defineProperty(On.prototype,"_className",{get:function(){return"SlideBackgroundPictureOrTextureFill"},enumerable:!0,configurable:!0}),Object.defineProperty(On.prototype,"_scalarPropertyNames",{get:function(){return["transparency"]},enumerable:!0,configurable:!0}),Object.defineProperty(On.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Transparency"]},enumerable:!0,configurable:!0}),Object.defineProperty(On.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0]},enumerable:!0,configurable:!0}),Object.defineProperty(On.prototype,"transparency",{get:function(){return h("transparency",this._T,"SlideBackgroundPictureOrTextureFill",this._isNull),this._T},set:function(e){this._T=e,p(this,"Transparency",e,0)},enumerable:!0,configurable:!0}),On.prototype.setImage=function(e){l(this,"SetImage",0,[e],0,0)},On.prototype._handleResult=function(e){if(vn.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.Transparency)||(this._T=t.Transparency)}},On.prototype.load=function(e){return m(this,e)},On.prototype.retrieve=function(e){return y(this,e)},On.prototype._handleRetrieveResult=function(e,t){vn.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},On.prototype.toJSON=function(){return v(this,{},{})},On.prototype.setMockData=function(e){C(this,e)},On.prototype.ensureUnchanged=function(e){u(this,e)},On);function On(){return null!==vn&&vn.apply(this,arguments)||this}o.SlideBackgroundPictureOrTextureFill=_n,(bn=o.SlideBackgroundFillType||(o.SlideBackgroundFillType={})).unsupported="Unsupported",bn.solid="Solid",bn.gradient="Gradient",bn.pictureOrTexture="PictureOrTexture",bn.pattern="Pattern";var Sn,Cn="SlideBackgroundSolidFill",An=(Sn=OfficeExtension.ClientObject,__extends(Pn,Sn),Object.defineProperty(Pn.prototype,"_className",{get:function(){return"SlideBackgroundSolidFill"},enumerable:!0,configurable:!0}),Object.defineProperty(Pn.prototype,"_scalarPropertyNames",{get:function(){return["color","transparency"]},enumerable:!0,configurable:!0}),Object.defineProperty(Pn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Color","Transparency"]},enumerable:!0,configurable:!0}),Object.defineProperty(Pn.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Pn.prototype,"color",{get:function(){return h("color",this._C,Cn,this._isNull),this._C},set:function(e){this._C=e,p(this,"Color",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Pn.prototype,"transparency",{get:function(){return h("transparency",this._T,Cn,this._isNull),this._T},set:function(e){this._T=e,p(this,"Transparency",e,0)},enumerable:!0,configurable:!0}),Pn.prototype._handleResult=function(e){if(Sn.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.Color)||(this._C=t.Color),d(t.Transparency)||(this._T=t.Transparency)}},Pn.prototype.load=function(e){return m(this,e)},Pn.prototype.retrieve=function(e){return y(this,e)},Pn.prototype._handleRetrieveResult=function(e,t){Sn.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Pn.prototype.toJSON=function(){return v(this,{},{})},Pn.prototype.setMockData=function(e){C(this,e)},Pn.prototype.ensureUnchanged=function(e){u(this,e)},Pn);function Pn(){return null!==Sn&&Sn.apply(this,arguments)||this}o.SlideBackgroundSolidFill=An;var En,Tn=(En=OfficeExtension.ClientObject,__extends(In,En),Object.defineProperty(In.prototype,"_className",{get:function(){return"SlideBackgroundFill"},enumerable:!0,configurable:!0}),Object.defineProperty(In.prototype,"_scalarPropertyNames",{get:function(){return["type"]},enumerable:!0,configurable:!0}),Object.defineProperty(In.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Type"]},enumerable:!0,configurable:!0}),Object.defineProperty(In.prototype,"type",{get:function(){return h("type",this._T,"SlideBackgroundFill",this._isNull),this._T},enumerable:!0,configurable:!0}),In.prototype.getGradientFillOrNullObject=function(){return r(o.SlideBackgroundGradientFill,this,"GetGradientFillOrNullObject",1,[],!1,!1,null,4)},In.prototype.getPatternFillOrNullObject=function(){return r(o.SlideBackgroundPatternFill,this,"GetPatternFillOrNullObject",1,[],!1,!1,null,4)},In.prototype.getPictureOrTextureFillOrNullObject=function(){return r(o.SlideBackgroundPictureOrTextureFill,this,"GetPictureOrTextureFillOrNullObject",1,[],!1,!1,null,4)},In.prototype.getSolidFillOrNullObject=function(){return r(o.SlideBackgroundSolidFill,this,"GetSolidFillOrNullObject",1,[],!1,!1,null,4)},In.prototype.setGradientFill=function(e){l(this,"SetGradientFill",0,[e],0,0)},In.prototype.setPatternFill=function(e){l(this,"SetPatternFill",0,[e],0,0)},In.prototype.setPictureOrTextureFill=function(e){l(this,"SetPictureOrTextureFill",0,[e],0,0)},In.prototype.setSolidFill=function(e){l(this,"SetSolidFill",0,[e],0,0)},In.prototype._handleResult=function(e){if(En.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.Type)||(this._T=t.Type)}},In.prototype.load=function(e){return m(this,e)},In.prototype.retrieve=function(e){return y(this,e)},In.prototype._handleRetrieveResult=function(e,t){En.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},In.prototype.toJSON=function(){return v(this,{},{})},In.prototype.setMockData=function(e){C(this,e)},In.prototype.ensureUnchanged=function(e){u(this,e)},In);function In(){return null!==En&&En.apply(this,arguments)||this}o.SlideBackgroundFill=Tn;var wn,Rn="SlideBackground",Dn=(wn=OfficeExtension.ClientObject,__extends(xn,wn),Object.defineProperty(xn.prototype,"_className",{get:function(){return"SlideBackground"},enumerable:!0,configurable:!0}),Object.defineProperty(xn.prototype,"_scalarPropertyNames",{get:function(){return["areBackgroundGraphicsHidden","isMasterBackgroundFollowed"]},enumerable:!0,configurable:!0}),Object.defineProperty(xn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["AreBackgroundGraphicsHidden","IsMasterBackgroundFollowed"]},enumerable:!0,configurable:!0}),Object.defineProperty(xn.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(xn.prototype,"_navigationPropertyNames",{get:function(){return["fill"]},enumerable:!0,configurable:!0}),Object.defineProperty(xn.prototype,"fill",{get:function(){return this._F||(this._F=e(o.SlideBackgroundFill,this,"Fill",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(xn.prototype,"areBackgroundGraphicsHidden",{get:function(){return h("areBackgroundGraphicsHidden",this._A,Rn,this._isNull),this._A},set:function(e){this._A=e,p(this,"AreBackgroundGraphicsHidden",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(xn.prototype,"isMasterBackgroundFollowed",{get:function(){return h("isMasterBackgroundFollowed",this._I,Rn,this._isNull),this._I},set:function(e){this._I=e,p(this,"IsMasterBackgroundFollowed",e,0)},enumerable:!0,configurable:!0}),xn.prototype.reset=function(){l(this,"Reset",0,[],0,0)},xn.prototype._handleResult=function(e){if(wn.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.AreBackgroundGraphicsHidden)||(this._A=t.AreBackgroundGraphicsHidden),d(t.IsMasterBackgroundFollowed)||(this._I=t.IsMasterBackgroundFollowed),_(this,t,["fill","Fill"])}},xn.prototype.load=function(e){return m(this,e)},xn.prototype.retrieve=function(e){return y(this,e)},xn.prototype._handleRetrieveResult=function(e,t){wn.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},xn.prototype.toJSON=function(){return v(this,{},{})},xn.prototype.setMockData=function(e){C(this,e)},xn.prototype.ensureUnchanged=function(e){u(this,e)},xn);function xn(){return null!==wn&&wn.apply(this,arguments)||this}o.SlideBackground=Dn;var Fn,Nn,kn,jn="SlideLayoutBackground",Mn=(Fn=OfficeExtension.ClientObject,__extends(Hn,Fn),Object.defineProperty(Hn.prototype,"_className",{get:function(){return"SlideLayoutBackground"},enumerable:!0,configurable:!0}),Object.defineProperty(Hn.prototype,"_scalarPropertyNames",{get:function(){return["areBackgroundGraphicsHidden","isMasterBackgroundFollowed"]},enumerable:!0,configurable:!0}),Object.defineProperty(Hn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["AreBackgroundGraphicsHidden","IsMasterBackgroundFollowed"]},enumerable:!0,configurable:!0}),Object.defineProperty(Hn.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Hn.prototype,"_navigationPropertyNames",{get:function(){return["fill"]},enumerable:!0,configurable:!0}),Object.defineProperty(Hn.prototype,"fill",{get:function(){return this._F||(this._F=e(o.SlideBackgroundFill,this,"Fill",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(Hn.prototype,"areBackgroundGraphicsHidden",{get:function(){return h("areBackgroundGraphicsHidden",this._A,jn,this._isNull),this._A},set:function(e){this._A=e,p(this,"AreBackgroundGraphicsHidden",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Hn.prototype,"isMasterBackgroundFollowed",{get:function(){return h("isMasterBackgroundFollowed",this._I,jn,this._isNull),this._I},set:function(e){this._I=e,p(this,"IsMasterBackgroundFollowed",e,0)},enumerable:!0,configurable:!0}),Hn.prototype.reset=function(){l(this,"Reset",0,[],0,0)},Hn.prototype._handleResult=function(e){if(Fn.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.AreBackgroundGraphicsHidden)||(this._A=t.AreBackgroundGraphicsHidden),d(t.IsMasterBackgroundFollowed)||(this._I=t.IsMasterBackgroundFollowed),_(this,t,["fill","Fill"])}},Hn.prototype.load=function(e){return m(this,e)},Hn.prototype.retrieve=function(e){return y(this,e)},Hn.prototype._handleRetrieveResult=function(e,t){Fn.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Hn.prototype.toJSON=function(){return v(this,{},{})},Hn.prototype.setMockData=function(e){C(this,e)},Hn.prototype.ensureUnchanged=function(e){u(this,e)},Hn);function Hn(){return null!==Fn&&Fn.apply(this,arguments)||this}o.SlideLayoutBackground=Mn,(Nn=o.SlideLayoutType||(o.SlideLayoutType={})).blank="Blank",Nn.chart="Chart",Nn.chartAndText="ChartAndText",Nn.clipArtAndText="ClipArtAndText",Nn.clipArtAndVerticalText="ClipArtAndVerticalText",Nn.comparison="Comparison",Nn.contentWithCaption="ContentWithCaption",Nn.custom="Custom",Nn.fourObjects="FourObjects",Nn.largeObject="LargeObject",Nn.mediaClipAndText="MediaClipAndText",Nn.mixed="Mixed",Nn.object="Object",Nn.objectAndText="ObjectAndText",Nn.objectAndTwoObjects="ObjectAndTwoObjects",Nn.objectOverText="ObjectOverText",Nn.organizationChart="OrganizationChart",Nn.pictureWithCaption="PictureWithCaption",Nn.sectionHeader="SectionHeader",Nn.table="Table",Nn.text="Text",Nn.textAndChart="TextAndChart",Nn.textAndClipArt="TextAndClipArt",Nn.textAndMediaClip="TextAndMediaClip",Nn.textAndObject="TextAndObject",Nn.textAndTwoObjects="TextAndTwoObjects",Nn.textOverObject="TextOverObject",Nn.title="Title",Nn.titleOnly="TitleOnly",Nn.twoColumnText="TwoColumnText",Nn.twoObjects="TwoObjects",Nn.twoObjectsAndObject="TwoObjectsAndObject",Nn.twoObjectsAndText="TwoObjectsAndText",Nn.twoObjectsOverText="TwoObjectsOverText",Nn.verticalText="VerticalText",Nn.verticalTitleAndText="VerticalTitleAndText",Nn.verticalTitleAndTextOverChart="VerticalTitleAndTextOverChart",(kn=o.ThemeColor||(o.ThemeColor={})).mixed="Mixed",kn.none="None",kn.accent1="Accent1",kn.accent2="Accent2",kn.accent3="Accent3",kn.accent4="Accent4",kn.accent5="Accent5",kn.accent6="Accent6",kn.dark1="Dark1",kn.dark2="Dark2",kn.followedHyperlink="FollowedHyperlink",kn.hyperlink="Hyperlink",kn.light1="Light1",kn.light2="Light2";var Un,Ln=(Un=OfficeExtension.ClientObject,__extends(Bn,Un),Object.defineProperty(Bn.prototype,"_className",{get:function(){return"ThemeColorScheme"},enumerable:!0,configurable:!0}),Bn.prototype.getThemeColor=function(e){return l(this,"GetThemeColor",1,[e],4,0)},Bn.prototype.setThemeColor=function(e,t){l(this,"SetThemeColor",0,[e,t],0,0)},Bn.prototype._handleResult=function(e){Un.prototype._handleResult.call(this,e),f(e)||b(this,e)},Bn.prototype._handleRetrieveResult=function(e,t){Un.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Bn.prototype.toJSON=function(){return v(this,{},{})},Bn);function Bn(){return null!==Un&&Un.apply(this,arguments)||this}o.ThemeColorScheme=Ln;var Wn,Gn="SlideLayout",Vn=(Wn=OfficeExtension.ClientObject,__extends(qn,Wn),Object.defineProperty(qn.prototype,"_className",{get:function(){return"SlideLayout"},enumerable:!0,configurable:!0}),Object.defineProperty(qn.prototype,"_scalarPropertyNames",{get:function(){return["id","name","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(qn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","Name","Type"]},enumerable:!0,configurable:!0}),Object.defineProperty(qn.prototype,"_navigationPropertyNames",{get:function(){return["shapes","customXmlParts","background","themeColorScheme"]},enumerable:!0,configurable:!0}),Object.defineProperty(qn.prototype,"background",{get:function(){return g("SlideLayout.background",a,"1.10",i),this._B||(this._B=e(o.SlideLayoutBackground,this,"Background",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(qn.prototype,"customXmlParts",{get:function(){return g("SlideLayout.customXmlParts",a,"1.7",i),this._C||(this._C=e(o.CustomXmlPartCollection,this,"CustomXmlParts",!0,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(qn.prototype,"shapes",{get:function(){return this._S||(this._S=e(o.ShapeCollection,this,"Shapes",!0,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(qn.prototype,"themeColorScheme",{get:function(){return g("SlideLayout.themeColorScheme",a,"1.10",i),this._T||(this._T=e(o.ThemeColorScheme,this,"ThemeColorScheme",!1,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(qn.prototype,"id",{get:function(){return h("id",this._I,Gn,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(qn.prototype,"name",{get:function(){return h("name",this._N,Gn,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(qn.prototype,"type",{get:function(){return h("type",this._Ty,Gn,this._isNull),g("SlideLayout.type",a,"1.8",i),this._Ty},enumerable:!0,configurable:!0}),qn.prototype.delete=function(){g("SlideLayout.delete",a,"1.11",i),l(this,"Delete",0,[],0,0)},qn.prototype._handleResult=function(e){if(Wn.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.Id)||(this._I=t.Id),d(t.Name)||(this._N=t.Name),d(t.Type)||(this._Ty=t.Type),_(this,t,["background","Background","customXmlParts","CustomXmlParts","shapes","Shapes","themeColorScheme","ThemeColorScheme"])}},qn.prototype.load=function(e){return m(this,e)},qn.prototype.retrieve=function(e){return y(this,e)},qn.prototype._handleIdResult=function(e){Wn.prototype._handleIdResult.call(this,e),f(e)||d(e.Id)||(this._I=e.Id)},qn.prototype._handleRetrieveResult=function(e,t){Wn.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},qn.prototype.toJSON=function(){return v(this,{},{})},qn.prototype.setMockData=function(e){C(this,e)},qn.prototype.ensureUnchanged=function(e){u(this,e)},qn);function qn(){return null!==Wn&&Wn.apply(this,arguments)||this}o.SlideLayout=Vn;var Jn,zn=(Jn=OfficeExtension.ClientObject,__extends(Kn,Jn),Object.defineProperty(Kn.prototype,"_className",{get:function(){return"SlideLayoutCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"items",{get:function(){return h("items",this.m__items,"SlideLayoutCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),Kn.prototype.getCount=function(){return l(this,"GetCount",1,[],4,0)},Kn.prototype.getItem=function(e){return t(o.SlideLayout,this,[e])},Kn.prototype.getItemAt=function(e){return r(o.SlideLayout,this,"GetItemAt",1,[e],!1,!1,null,4)},Kn.prototype.getItemOrNullObject=function(e){return r(o.SlideLayout,this,"GetItemOrNullObject",0,[e],!1,!1,null,0)},Kn.prototype._handleResult=function(e){if(Jn.prototype._handleResult.call(this,e),!f(e)){var t=e;if(b(this,t),!f(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=c(o.SlideLayout,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Kn.prototype.load=function(e){return m(this,e)},Kn.prototype.retrieve=function(e){return y(this,e)},Kn.prototype._handleRetrieveResult=function(e,t){var n=this;Jn.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return c(o.SlideLayout,!0,n,e,t)})},Kn.prototype.toJSON=function(){return v(this,{},{},this.m__items)},Kn.prototype.setMockData=function(e){var n=this;C(this,e,function(e,t){return c(o.SlideLayout,!0,n,e,t)},function(e){return n.m__items=e})},Kn);function Kn(){return null!==Jn&&Jn.apply(this,arguments)||this}o.SlideLayoutCollection=zn;var Xn,Qn=(Xn=OfficeExtension.ClientObject,__extends($n,Xn),Object.defineProperty($n.prototype,"_className",{get:function(){return"SlideMasterBackground"},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"_navigationPropertyNames",{get:function(){return["fill"]},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"fill",{get:function(){return this._F||(this._F=e(o.SlideBackgroundFill,this,"Fill",!1,4)),this._F},enumerable:!0,configurable:!0}),$n.prototype._handleResult=function(e){if(Xn.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),_(this,t,["fill","Fill"])}},$n.prototype.load=function(e){return m(this,e)},$n.prototype.retrieve=function(e){return y(this,e)},$n.prototype._handleRetrieveResult=function(e,t){Xn.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},$n.prototype.toJSON=function(){return v(this,{},{})},$n.prototype.setMockData=function(e){C(this,e)},$n.prototype.ensureUnchanged=function(e){u(this,e)},$n);function $n(){return null!==Xn&&Xn.apply(this,arguments)||this}o.SlideMasterBackground=Qn;var Zn,Yn="SlideMaster",er=(Zn=OfficeExtension.ClientObject,__extends(tr,Zn),Object.defineProperty(tr.prototype,"_className",{get:function(){return"SlideMaster"},enumerable:!0,configurable:!0}),Object.defineProperty(tr.prototype,"_scalarPropertyNames",{get:function(){return["id","name"]},enumerable:!0,configurable:!0}),Object.defineProperty(tr.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","Name"]},enumerable:!0,configurable:!0}),Object.defineProperty(tr.prototype,"_navigationPropertyNames",{get:function(){return["layouts","shapes","customXmlParts","background","themeColorScheme"]},enumerable:!0,configurable:!0}),Object.defineProperty(tr.prototype,"background",{get:function(){return g("SlideMaster.background",a,"1.10",i),this._B||(this._B=e(o.SlideMasterBackground,this,"Background",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(tr.prototype,"customXmlParts",{get:function(){return g("SlideMaster.customXmlParts",a,"1.7",i),this._C||(this._C=e(o.CustomXmlPartCollection,this,"CustomXmlParts",!0,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(tr.prototype,"layouts",{get:function(){return this._L||(this._L=e(o.SlideLayoutCollection,this,"Layouts",!0,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(tr.prototype,"shapes",{get:function(){return this._S||(this._S=e(o.ShapeCollection,this,"Shapes",!0,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(tr.prototype,"themeColorScheme",{get:function(){return g("SlideMaster.themeColorScheme",a,"1.10",i),this._T||(this._T=e(o.ThemeColorScheme,this,"ThemeColorScheme",!1,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(tr.prototype,"id",{get:function(){return h("id",this._I,Yn,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(tr.prototype,"name",{get:function(){return h("name",this._N,Yn,this._isNull),this._N},enumerable:!0,configurable:!0}),tr.prototype.delete=function(){g("SlideMaster.delete",a,"1.11",i),l(this,"Delete",0,[],0,0)},tr.prototype._handleResult=function(e){if(Zn.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.Id)||(this._I=t.Id),d(t.Name)||(this._N=t.Name),_(this,t,["background","Background","customXmlParts","CustomXmlParts","layouts","Layouts","shapes","Shapes","themeColorScheme","ThemeColorScheme"])}},tr.prototype.load=function(e){return m(this,e)},tr.prototype.retrieve=function(e){return y(this,e)},tr.prototype._handleIdResult=function(e){Zn.prototype._handleIdResult.call(this,e),f(e)||d(e.Id)||(this._I=e.Id)},tr.prototype._handleRetrieveResult=function(e,t){Zn.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},tr.prototype.toJSON=function(){return v(this,{},{})},tr.prototype.setMockData=function(e){C(this,e)},tr.prototype.ensureUnchanged=function(e){u(this,e)},tr);function tr(){return null!==Zn&&Zn.apply(this,arguments)||this}o.SlideMaster=er;var nr,rr=(nr=OfficeExtension.ClientObject,__extends(ir,nr),Object.defineProperty(ir.prototype,"_className",{get:function(){return"Tag"},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"_scalarPropertyNames",{get:function(){return["key","value"]},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Key","Value"]},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"key",{get:function(){return h("key",this._K,"Tag",this._isNull),this._K},enumerable:!0,configurable:!0}),Object.defineProperty(ir.prototype,"value",{get:function(){return h("value",this._V,"Tag",this._isNull),this._V},set:function(e){this._V=e,p(this,"Value",e,0)},enumerable:!0,configurable:!0}),ir.prototype._handleResult=function(e){if(nr.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.Key)||(this._K=t.Key),d(t.Value)||(this._V=t.Value)}},ir.prototype.load=function(e){return m(this,e)},ir.prototype.retrieve=function(e){return y(this,e)},ir.prototype._handleRetrieveResult=function(e,t){nr.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},ir.prototype.toJSON=function(){return v(this,{},{})},ir.prototype.setMockData=function(e){C(this,e)},ir.prototype.ensureUnchanged=function(e){u(this,e)},ir);function ir(){return null!==nr&&nr.apply(this,arguments)||this}o.Tag=rr;var or,ar=(or=OfficeExtension.ClientObject,__extends(sr,or),Object.defineProperty(sr.prototype,"_className",{get:function(){return"TagCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(sr.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(sr.prototype,"items",{get:function(){return h("items",this.m__items,"TagCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),sr.prototype.add=function(e,t){l(this,"Add",0,[e,t],0,0)},sr.prototype.delete=function(e){l(this,"Delete",0,[e],0,0)},sr.prototype.getCount=function(){return l(this,"GetCount",1,[],4,0)},sr.prototype.getItem=function(e){return t(o.Tag,this,[e])},sr.prototype.getItemAt=function(e){return r(o.Tag,this,"GetItemAt",1,[e],!1,!1,null,4)},sr.prototype.getItemOrNullObject=function(e){return r(o.Tag,this,"GetItemOrNullObject",0,[e],!1,!1,null,0)},sr.prototype._handleResult=function(e){if(or.prototype._handleResult.call(this,e),!f(e)){var t=e;if(b(this,t),!f(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=c(o.Tag,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},sr.prototype.load=function(e){return m(this,e)},sr.prototype.retrieve=function(e){return y(this,e)},sr.prototype._handleRetrieveResult=function(e,t){var n=this;or.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return c(o.Tag,!0,n,e,t)})},sr.prototype.toJSON=function(){return v(this,{},{},this.m__items)},sr.prototype.setMockData=function(e){var n=this;C(this,e,function(e,t){return c(o.Tag,!0,n,e,t)},function(e){return n.m__items=e})},sr);function sr(){return null!==or&&or.apply(this,arguments)||this}o.TagCollection=ar;var cr,lr=(cr=OfficeExtension.ClientObject,__extends(ur,cr),Object.defineProperty(ur.prototype,"_className",{get:function(){return"Slide"},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"_scalarPropertyNames",{get:function(){return["id","index"]},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","Index"]},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"_navigationPropertyNames",{get:function(){return["background","comments","customXmlParts","hyperlinks","layout","shapes","slideMaster","tags","themeColorScheme","tasks"]},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"background",{get:function(){return g("Slide.background",a,"1.10",i),this._B||(this._B=e(o.SlideBackground,this,"Background",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"comments",{get:function(){return g("Slide.comments",a,"1.11",i),this._C||(this._C=e(o.CommentCollection,this,"Comments",!0,5)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"customXmlParts",{get:function(){return g("Slide.customXmlParts",a,"1.7",i),this._Cu||(this._Cu=e(o.CustomXmlPartCollection,this,"CustomXmlParts",!0,4)),this._Cu},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"hyperlinks",{get:function(){return g("Slide.hyperlinks",a,"1.6",i),this._H||(this._H=e(o.HyperlinkCollection,this,"Hyperlinks",!0,4)),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"layout",{get:function(){return g("Slide.layout",a,"1.3",i),this._L||(this._L=e(o.SlideLayout,this,"Layout",!1,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"shapes",{get:function(){return g("Slide.shapes",a,"1.3",i),this._S||(this._S=e(o.ShapeCollection,this,"Shapes",!0,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"slideMaster",{get:function(){return g("Slide.slideMaster",a,"1.3",i),this._Sl||(this._Sl=e(o.SlideMaster,this,"SlideMaster",!1,4)),this._Sl},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"tags",{get:function(){return g("Slide.tags",a,"1.3",i),this._T||(this._T=e(o.TagCollection,this,"Tags",!0,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"tasks",{get:function(){return g("Slide.tasks",a,"1.11",i),this._Ta||(this._Ta=e(o.DocumentTaskCollection,this,"Tasks",!0,5)),this._Ta},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"themeColorScheme",{get:function(){return g("Slide.themeColorScheme",a,"1.10",i),this._Th||(this._Th=e(o.ThemeColorScheme,this,"ThemeColorScheme",!1,4)),this._Th},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"id",{get:function(){return h("id",this._I,"Slide",this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"index",{get:function(){return h("index",this._In,"Slide",this._isNull),g("Slide.index",a,"1.8",i),this._In},enumerable:!0,configurable:!0}),ur.prototype.applyLayout=function(e){g("Slide.applyLayout",a,"1.8",i),l(this,"ApplyLayout",0,[e],0,0)},ur.prototype.delete=function(){l(this,"Delete",0,[],0,0)},ur.prototype.exportAsBase64=function(){return g("Slide.exportAsBase64",a,"1.8",i),l(this,"ExportAsBase64",1,[],4,0)},ur.prototype.getImageAsBase64=function(e){return g("Slide.getImageAsBase64",a,"1.8",i),l(this,"GetImageAsBase64",1,[e],4,0)},ur.prototype.moveTo=function(e){g("Slide.moveTo",a,"1.8",i),l(this,"MoveTo",0,[e],0,0)},ur.prototype.setSelectedShapes=function(e){g("Slide.setSelectedShapes",a,"1.5",i),l(this,"SetSelectedShapes",0,[e],0,0)},ur.prototype._handleResult=function(e){if(cr.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.Id)||(this._I=t.Id),d(t.Index)||(this._In=t.Index),_(this,t,["background","Background","comments","Comments","customXmlParts","CustomXmlParts","hyperlinks","Hyperlinks","layout","Layout","shapes","Shapes","slideMaster","SlideMaster","tags","Tags","tasks","Tasks","themeColorScheme","ThemeColorScheme"])}},ur.prototype.load=function(e){return m(this,e)},ur.prototype.retrieve=function(e){return y(this,e)},ur.prototype._handleIdResult=function(e){cr.prototype._handleIdResult.call(this,e),f(e)||d(e.Id)||(this._I=e.Id)},ur.prototype._handleRetrieveResult=function(e,t){cr.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},ur.prototype.toJSON=function(){return v(this,{},{})},ur.prototype.setMockData=function(e){C(this,e)},ur.prototype.ensureUnchanged=function(e){u(this,e)},ur);function ur(){return null!==cr&&cr.apply(this,arguments)||this}o.Slide=lr,(o.ShapeGetImageFormatType||(o.ShapeGetImageFormatType={})).png="Png";var pr,fr,dr="ShapeGroup",hr=(pr=OfficeExtension.ClientObject,__extends(gr,pr),Object.defineProperty(gr.prototype,"_className",{get:function(){return"ShapeGroup"},enumerable:!0,configurable:!0}),Object.defineProperty(gr.prototype,"_scalarPropertyNames",{get:function(){return["id","creationId"]},enumerable:!0,configurable:!0}),Object.defineProperty(gr.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","CreationId"]},enumerable:!0,configurable:!0}),Object.defineProperty(gr.prototype,"_navigationPropertyNames",{get:function(){return["shape","shapes"]},enumerable:!0,configurable:!0}),Object.defineProperty(gr.prototype,"shape",{get:function(){return this._S||(this._S=e(o.Shape,this,"Shape",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(gr.prototype,"shapes",{get:function(){return this._Sh||(this._Sh=e(o.ShapeScopedCollection,this,"Shapes",!0,4)),this._Sh},enumerable:!0,configurable:!0}),Object.defineProperty(gr.prototype,"creationId",{get:function(){return h("creationId",this._C,dr,this._isNull),g("ShapeGroup.creationId",a,"1.10",i),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(gr.prototype,"id",{get:function(){return h("id",this._I,dr,this._isNull),this._I},enumerable:!0,configurable:!0}),gr.prototype.ungroup=function(){l(this,"Ungroup",0,[],0,0)},gr.prototype._handleResult=function(e){if(pr.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.CreationId)||(this._C=t.CreationId),d(t.Id)||(this._I=t.Id),_(this,t,["shape","Shape","shapes","Shapes"])}},gr.prototype.load=function(e){return m(this,e)},gr.prototype.retrieve=function(e){return y(this,e)},gr.prototype._handleIdResult=function(e){pr.prototype._handleIdResult.call(this,e),f(e)||d(e.Id)||(this._I=e.Id)},gr.prototype._handleRetrieveResult=function(e,t){pr.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},gr.prototype.toJSON=function(){return v(this,{},{})},gr.prototype.setMockData=function(e){C(this,e)},gr.prototype.ensureUnchanged=function(e){u(this,e)},gr);function gr(){return null!==pr&&pr.apply(this,arguments)||this}o.ShapeGroup=hr,(fr=o.ShapeLineStyle||(o.ShapeLineStyle={})).single="Single",fr.thickBetweenThin="ThickBetweenThin",fr.thickThin="ThickThin",fr.thinThick="ThinThick",fr.thinThin="ThinThin";var mr,yr,vr="ShapeLineFormat",br=(mr=OfficeExtension.ClientObject,__extends(_r,mr),Object.defineProperty(_r.prototype,"_className",{get:function(){return"ShapeLineFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(_r.prototype,"_scalarPropertyNames",{get:function(){return["color","dashStyle","style","transparency","visible","weight"]},enumerable:!0,configurable:!0}),Object.defineProperty(_r.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Color","DashStyle","Style","Transparency","Visible","Weight"]},enumerable:!0,configurable:!0}),Object.defineProperty(_r.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(_r.prototype,"color",{get:function(){return h("color",this._C,vr,this._isNull),this._C},set:function(e){this._C=e,p(this,"Color",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_r.prototype,"dashStyle",{get:function(){return h("dashStyle",this._D,vr,this._isNull),this._D},set:function(e){this._D=e,p(this,"DashStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_r.prototype,"style",{get:function(){return h("style",this._S,vr,this._isNull),this._S},set:function(e){this._S=e,p(this,"Style",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_r.prototype,"transparency",{get:function(){return h("transparency",this._T,vr,this._isNull),this._T},set:function(e){this._T=e,p(this,"Transparency",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_r.prototype,"visible",{get:function(){return h("visible",this._V,vr,this._isNull),this._V},set:function(e){this._V=e,p(this,"Visible",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_r.prototype,"weight",{get:function(){return h("weight",this._W,vr,this._isNull),this._W},set:function(e){this._W=e,p(this,"Weight",e,0)},enumerable:!0,configurable:!0}),_r.prototype._handleResult=function(e){if(mr.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.Color)||(this._C=t.Color),d(t.DashStyle)||(this._D=t.DashStyle),d(t.Style)||(this._S=t.Style),d(t.Transparency)||(this._T=t.Transparency),d(t.Visible)||(this._V=t.Visible),d(t.Weight)||(this._W=t.Weight)}},_r.prototype.load=function(e){return m(this,e)},_r.prototype.retrieve=function(e){return y(this,e)},_r.prototype._handleRetrieveResult=function(e,t){mr.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},_r.prototype.toJSON=function(){return v(this,{},{})},_r.prototype.setMockData=function(e){C(this,e)},_r.prototype.ensureUnchanged=function(e){u(this,e)},_r);function _r(){return null!==mr&&mr.apply(this,arguments)||this}o.ShapeLineFormat=br,(yr=o.ShapeZOrder||(o.ShapeZOrder={})).bringForward="BringForward",yr.bringToFront="BringToFront",yr.sendBackward="SendBackward",yr.sendToBack="SendToBack";var Or,Sr="Image",Cr=(Or=OfficeExtension.ClientObject,__extends(Ar,Or),Object.defineProperty(Ar.prototype,"_className",{get:function(){return"Image"},enumerable:!0,configurable:!0}),Object.defineProperty(Ar.prototype,"_scalarPropertyNames",{get:function(){return["cropBottom","cropGeometry","cropLeft","cropRight","cropTop"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ar.prototype,"_scalarPropertyOriginalNames",{get:function(){return["CropBottom","CropGeometry","CropLeft","CropRight","CropTop"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ar.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Ar.prototype,"_navigationPropertyNames",{get:function(){return["shape"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ar.prototype,"shape",{get:function(){return this._S||(this._S=e(o.Shape,this,"Shape",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(Ar.prototype,"cropBottom",{get:function(){return h("cropBottom",this._C,Sr,this._isNull),this._C},set:function(e){this._C=e,p(this,"CropBottom",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ar.prototype,"cropGeometry",{get:function(){return h("cropGeometry",this._Cr,Sr,this._isNull),this._Cr},set:function(e){this._Cr=e,p(this,"CropGeometry",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ar.prototype,"cropLeft",{get:function(){return h("cropLeft",this._Cro,Sr,this._isNull),this._Cro},set:function(e){this._Cro=e,p(this,"CropLeft",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ar.prototype,"cropRight",{get:function(){return h("cropRight",this._Crop,Sr,this._isNull),this._Crop},set:function(e){this._Crop=e,p(this,"CropRight",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ar.prototype,"cropTop",{get:function(){return h("cropTop",this._CropT,Sr,this._isNull),this._CropT},set:function(e){this._CropT=e,p(this,"CropTop",e,0)},enumerable:!0,configurable:!0}),Ar.prototype.getSourceImageAsBase64=function(){return l(this,"GetSourceImageAsBase64",1,[],5,0)},Ar.prototype.replace=function(e){l(this,"Replace",0,[e],1,0)},Ar.prototype._handleResult=function(e){if(Or.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.CropBottom)||(this._C=t.CropBottom),d(t.CropGeometry)||(this._Cr=t.CropGeometry),d(t.CropLeft)||(this._Cro=t.CropLeft),d(t.CropRight)||(this._Crop=t.CropRight),d(t.CropTop)||(this._CropT=t.CropTop),_(this,t,["shape","Shape"])}},Ar.prototype.load=function(e){return m(this,e)},Ar.prototype.retrieve=function(e){return y(this,e)},Ar.prototype._handleRetrieveResult=function(e,t){Or.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Ar.prototype.toJSON=function(){return v(this,{},{})},Ar.prototype.setMockData=function(e){C(this,e)},Ar.prototype.ensureUnchanged=function(e){u(this,e)},Ar);function Ar(){return null!==Or&&Or.apply(this,arguments)||this}o.Image=Cr;var Pr,Er="Shape",Tr=(Pr=OfficeExtension.ClientObject,__extends(Ir,Pr),Object.defineProperty(Ir.prototype,"_className",{get:function(){return"Shape"},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"_scalarPropertyNames",{get:function(){return["id","height","left","name","top","type","width","zOrderPosition","level","altTextDescription","isDecorative","altTextTitle","rotation","visible","creationId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","Height","Left","Name","Top","Type","Width","ZOrderPosition","Level","AltTextDescription","IsDecorative","AltTextTitle","Rotation","Visible","CreationId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!1,!0,!1,!1,!0,!0,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"_navigationPropertyNames",{get:function(){return["tags","fill","lineFormat","textFrame","customXmlParts","group","parentGroup","placeholderFormat","adjustments"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"adjustments",{get:function(){return g("Shape.adjustments",a,"1.10",i),this._A||(this._A=e(o.Adjustments,this,"Adjustments",!1,4)),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"customXmlParts",{get:function(){return g("Shape.customXmlParts",a,"1.7",i),this._Cu||(this._Cu=e(o.CustomXmlPartCollection,this,"CustomXmlParts",!0,4)),this._Cu},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"fill",{get:function(){return g("Shape.fill",a,"1.4",i),this._F||(this._F=e(o.ShapeFill,this,"Fill",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"group",{get:function(){return g("Shape.group",a,"1.8",i),this._G||(this._G=e(o.ShapeGroup,this,"Group",!1,4)),this._G},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"lineFormat",{get:function(){return g("Shape.lineFormat",a,"1.4",i),this._Li||(this._Li=e(o.ShapeLineFormat,this,"LineFormat",!1,4)),this._Li},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"parentGroup",{get:function(){return g("Shape.parentGroup",a,"1.8",i),this._P||(this._P=e(o.Shape,this,"ParentGroup",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"placeholderFormat",{get:function(){return g("Shape.placeholderFormat",a,"1.8",i),this._Pl||(this._Pl=e(o.PlaceholderFormat,this,"PlaceholderFormat",!1,4)),this._Pl},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"tags",{get:function(){return this._T||(this._T=e(o.TagCollection,this,"Tags",!0,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"textFrame",{get:function(){return g("Shape.textFrame",a,"1.4",i),this._Te||(this._Te=e(o.TextFrame,this,"TextFrame",!1,4)),this._Te},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"altTextDescription",{get:function(){return h("altTextDescription",this._Al,Er,this._isNull),g("Shape.altTextDescription",a,"1.10",i),this._Al},set:function(e){this._Al=e,p(this,"AltTextDescription",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"altTextTitle",{get:function(){return h("altTextTitle",this._Alt,Er,this._isNull),g("Shape.altTextTitle",a,"1.10",i),this._Alt},set:function(e){this._Alt=e,p(this,"AltTextTitle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"creationId",{get:function(){return h("creationId",this._C,Er,this._isNull),g("Shape.creationId",a,"1.10",i),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"height",{get:function(){return h("height",this._H,Er,this._isNull),g("Shape.height",a,"1.4",i),this._H},set:function(e){this._H=e,p(this,"Height",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"id",{get:function(){return h("id",this._I,Er,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"isDecorative",{get:function(){return h("isDecorative",this._Is,Er,this._isNull),g("Shape.isDecorative",a,"1.10",i),this._Is},set:function(e){this._Is=e,p(this,"IsDecorative",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"left",{get:function(){return h("left",this._L,Er,this._isNull),g("Shape.left",a,"1.4",i),this._L},set:function(e){this._L=e,p(this,"Left",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"level",{get:function(){return h("level",this._Le,Er,this._isNull),g("Shape.level",a,"1.8",i),this._Le},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"name",{get:function(){return h("name",this._N,Er,this._isNull),g("Shape.name",a,"1.4",i),this._N},set:function(e){this._N=e,p(this,"Name",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"rotation",{get:function(){return h("rotation",this._R,Er,this._isNull),g("Shape.rotation",a,"1.10",i),this._R},set:function(e){this._R=e,p(this,"Rotation",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"top",{get:function(){return h("top",this._To,Er,this._isNull),g("Shape.top",a,"1.4",i),this._To},set:function(e){this._To=e,p(this,"Top",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"type",{get:function(){return h("type",this._Ty,Er,this._isNull),g("Shape.type",a,"1.4",i),this._Ty},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"visible",{get:function(){return h("visible",this._V,Er,this._isNull),g("Shape.visible",a,"1.10",i),this._V},set:function(e){this._V=e,p(this,"Visible",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"width",{get:function(){return h("width",this._W,Er,this._isNull),g("Shape.width",a,"1.4",i),this._W},set:function(e){this._W=e,p(this,"Width",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"zOrderPosition",{get:function(){return h("zOrderPosition",this._Z,Er,this._isNull),g("Shape.zOrderPosition",a,"1.8",i),this._Z},enumerable:!0,configurable:!0}),Ir.prototype.delete=function(){l(this,"Delete",0,[],0,0)},Ir.prototype.duplicate=function(e){return g("Shape.duplicate",a,"1.11",i),r(o.Shape,this,"Duplicate",0,[e],!1,!1,null,1)},Ir.prototype.getGraphicOrNullObject=function(){return g("Shape.getGraphicOrNullObject",a,"1.11",i),r(o.Graphic,this,"GetGraphicOrNullObject",1,[],!1,!1,null,4)},Ir.prototype.getImageAsBase64=function(e){return g("Shape.getImageAsBase64",a,"1.10",i),l(this,"GetImageAsBase64",1,[e],4,0)},Ir.prototype.getImageOrNullObject=function(){return g("Shape.getImageOrNullObject",a,"99.9",i),r(o.Image,this,"GetImageOrNullObject",1,[],!1,!1,null,5)},Ir.prototype.getParentSlide=function(){return g("Shape.getParentSlide",a,"1.5",i),r(o.Slide,this,"GetParentSlide",0,[],!1,!1,null,0)},Ir.prototype.getParentSlideLayout=function(){return g("Shape.getParentSlideLayout",a,"1.5",i),r(o.SlideLayout,this,"GetParentSlideLayout",0,[],!1,!1,null,0)},Ir.prototype.getParentSlideLayoutOrNullObject=function(){return g("Shape.getParentSlideLayoutOrNullObject",a,"1.5",i),r(o.SlideLayout,this,"GetParentSlideLayoutOrNullObject",0,[],!1,!1,null,0)},Ir.prototype.getParentSlideMaster=function(){return g("Shape.getParentSlideMaster",a,"1.5",i),r(o.SlideMaster,this,"GetParentSlideMaster",0,[],!1,!1,null,0)},Ir.prototype.getParentSlideMasterOrNullObject=function(){return g("Shape.getParentSlideMasterOrNullObject",a,"1.5",i),r(o.SlideMaster,this,"GetParentSlideMasterOrNullObject",0,[],!1,!1,null,0)},Ir.prototype.getParentSlideOrNullObject=function(){return g("Shape.getParentSlideOrNullObject",a,"1.5",i),r(o.Slide,this,"GetParentSlideOrNullObject",0,[],!1,!1,null,0)},Ir.prototype.getTable=function(){return g("Shape.getTable",a,"1.8",i),r(o.Table,this,"GetTable",1,[],!1,!1,null,4)},Ir.prototype.getTextFrameOrNullObject=function(){return g("Shape.getTextFrameOrNullObject",a,"1.10",i),r(o.TextFrame,this,"GetTextFrameOrNullObject",0,[],!1,!1,null,0)},Ir.prototype.resize=function(e){g("Shape.resize",a,"99.9",i),l(this,"Resize",0,[e],1,0)},Ir.prototype.setHyperlink=function(e){return g("Shape.setHyperlink",a,"1.10",i),r(o.Hyperlink,this,"SetHyperlink",0,[e],!1,!1,null,0)},Ir.prototype.setZOrder=function(e){g("Shape.setZOrder",a,"1.8",i),l(this,"SetZOrder",0,[e],0,0)},Ir.prototype._handleResult=function(e){if(Pr.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.AltTextDescription)||(this._Al=t.AltTextDescription),d(t.AltTextTitle)||(this._Alt=t.AltTextTitle),d(t.CreationId)||(this._C=t.CreationId),d(t.Height)||(this._H=t.Height),d(t.Id)||(this._I=t.Id),d(t.IsDecorative)||(this._Is=t.IsDecorative),d(t.Left)||(this._L=t.Left),d(t.Level)||(this._Le=t.Level),d(t.Name)||(this._N=t.Name),d(t.Rotation)||(this._R=t.Rotation),d(t.Top)||(this._To=t.Top),d(t.Type)||(this._Ty=t.Type),d(t.Visible)||(this._V=t.Visible),d(t.Width)||(this._W=t.Width),d(t.ZOrderPosition)||(this._Z=t.ZOrderPosition),_(this,t,["adjustments","Adjustments","customXmlParts","CustomXmlParts","fill","Fill","group","Group","lineFormat","LineFormat","parentGroup","ParentGroup","placeholderFormat","PlaceholderFormat","tags","Tags","textFrame","TextFrame"])}},Ir.prototype.load=function(e){return m(this,e)},Ir.prototype.retrieve=function(e){return y(this,e)},Ir.prototype._handleIdResult=function(e){Pr.prototype._handleIdResult.call(this,e),f(e)||d(e.Id)||(this._I=e.Id)},Ir.prototype._handleRetrieveResult=function(e,t){Pr.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Ir.prototype.toJSON=function(){return v(this,{},{})},Ir.prototype.setMockData=function(e){C(this,e)},Ir.prototype.ensureUnchanged=function(e){u(this,e)},Ir);function Ir(){return null!==Pr&&Pr.apply(this,arguments)||this}o.Shape=Tr;var wr,Rr=(wr=OfficeExtension.ClientObject,__extends(Dr,wr),Object.defineProperty(Dr.prototype,"_className",{get:function(){return"Binding"},enumerable:!0,configurable:!0}),Object.defineProperty(Dr.prototype,"_scalarPropertyNames",{get:function(){return["id","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(Dr.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","Type"]},enumerable:!0,configurable:!0}),Object.defineProperty(Dr.prototype,"id",{get:function(){return h("id",this._I,"Binding",this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(Dr.prototype,"type",{get:function(){return h("type",this._T,"Binding",this._isNull),this._T},enumerable:!0,configurable:!0}),Dr.prototype.delete=function(){l(this,"Delete",0,[],0,0)},Dr.prototype.getShape=function(){return r(o.Shape,this,"GetShape",0,[],!1,!1,null,0)},Dr.prototype._handleResult=function(e){if(wr.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.Id)||(this._I=t.Id),d(t.Type)||(this._T=t.Type)}},Dr.prototype.load=function(e){return m(this,e)},Dr.prototype.retrieve=function(e){return y(this,e)},Dr.prototype._handleIdResult=function(e){wr.prototype._handleIdResult.call(this,e),f(e)||d(e.Id)||(this._I=e.Id)},Dr.prototype._handleRetrieveResult=function(e,t){wr.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Dr.prototype.toJSON=function(){return v(this,{},{})},Dr.prototype.setMockData=function(e){C(this,e)},Dr.prototype.ensureUnchanged=function(e){u(this,e)},Dr);function Dr(){return null!==wr&&wr.apply(this,arguments)||this}o.Binding=Rr;var xr,Fr,Nr=(xr=OfficeExtension.ClientObject,__extends(kr,xr),Object.defineProperty(kr.prototype,"_className",{get:function(){return"BindingCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(kr.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(kr.prototype,"items",{get:function(){return h("items",this.m__items,"BindingCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),kr.prototype.add=function(e,t,n){return r(o.Binding,this,"Add",0,[e,t,n],!1,!0,null,0)},kr.prototype.addFromSelection=function(e,t){return r(o.Binding,this,"AddFromSelection",0,[e,t],!1,!1,null,0)},kr.prototype.getCount=function(){return l(this,"GetCount",1,[],4,0)},kr.prototype.getItem=function(e){return t(o.Binding,this,[e])},kr.prototype.getItemAt=function(e){return r(o.Binding,this,"GetItemAt",1,[e],!1,!1,null,4)},kr.prototype.getItemOrNullObject=function(e){return r(o.Binding,this,"GetItemOrNullObject",0,[e],!1,!1,null,0)},kr.prototype._handleResult=function(e){if(xr.prototype._handleResult.call(this,e),!f(e)){var t=e;if(b(this,t),!f(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=c(o.Binding,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},kr.prototype.load=function(e){return m(this,e)},kr.prototype.retrieve=function(e){return y(this,e)},kr.prototype._handleRetrieveResult=function(e,t){var n=this;xr.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return c(o.Binding,!0,n,e,t)})},kr.prototype.toJSON=function(){return v(this,{},{},this.m__items)},kr.prototype.setMockData=function(e){var n=this;C(this,e,function(e,t){return c(o.Binding,!0,n,e,t)},function(e){return n.m__items=e})},kr);function kr(){return null!==xr&&xr.apply(this,arguments)||this}o.BindingCollection=Nr,(Fr=o.DocumentPropertyType||(o.DocumentPropertyType={})).boolean="Boolean",Fr.date="Date",Fr.number="Number",Fr.string="String";var jr,Mr="CustomProperty",Hr=(jr=OfficeExtension.ClientObject,__extends(Ur,jr),Object.defineProperty(Ur.prototype,"_className",{get:function(){return"CustomProperty"},enumerable:!0,configurable:!0}),Object.defineProperty(Ur.prototype,"_scalarPropertyNames",{get:function(){return["key","type","value"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ur.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Key","Type","Value"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ur.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Ur.prototype,"key",{get:function(){return h("key",this._K,Mr,this._isNull),this._K},enumerable:!0,configurable:!0}),Object.defineProperty(Ur.prototype,"type",{get:function(){return h("type",this._T,Mr,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(Ur.prototype,"value",{get:function(){return h("value",this._V,Mr,this._isNull),this._V},set:function(e){this._V=e,p(this,"Value",e,0)},enumerable:!0,configurable:!0}),Ur.prototype.delete=function(){l(this,"Delete",0,[],0,0)},Ur.prototype._handleResult=function(e){if(jr.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.Key)||(this._K=t.Key),d(t.Type)||(this._T=t.Type),d(t.Value)||(this._V=t.Value)}},Ur.prototype.load=function(e){return m(this,e)},Ur.prototype.retrieve=function(e){return y(this,e)},Ur.prototype._handleRetrieveResult=function(e,t){jr.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Ur.prototype.toJSON=function(){return v(this,{},{})},Ur.prototype.setMockData=function(e){C(this,e)},Ur.prototype.ensureUnchanged=function(e){u(this,e)},Ur);function Ur(){return null!==jr&&jr.apply(this,arguments)||this}o.CustomProperty=Hr;var Lr,Br=(Lr=OfficeExtension.ClientObject,__extends(Wr,Lr),Object.defineProperty(Wr.prototype,"_className",{get:function(){return"CustomPropertyCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Wr.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Wr.prototype,"items",{get:function(){return h("items",this.m__items,"CustomPropertyCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),Wr.prototype.add=function(e,t){return r(o.CustomProperty,this,"Add",0,[e,t],!1,!0,null,0)},Wr.prototype.deleteAll=function(){l(this,"DeleteAll",0,[],0,0)},Wr.prototype.getCount=function(){return l(this,"GetCount",1,[],4,0)},Wr.prototype.getItem=function(e){return t(o.CustomProperty,this,[e])},Wr.prototype.getItemAt=function(e){return g("CustomPropertyCollection.getItemAt",a,"1.10",i),r(o.CustomProperty,this,"GetItemAt",1,[e],!1,!1,null,4)},Wr.prototype.getItemOrNullObject=function(e){return r(o.CustomProperty,this,"GetItemOrNullObject",1,[e],!1,!1,null,4)},Wr.prototype._handleResult=function(e){if(Lr.prototype._handleResult.call(this,e),!f(e)){var t=e;if(b(this,t),!f(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=c(o.CustomProperty,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Wr.prototype.load=function(e){return m(this,e)},Wr.prototype.retrieve=function(e){return y(this,e)},Wr.prototype._handleRetrieveResult=function(e,t){var n=this;Lr.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return c(o.CustomProperty,!0,n,e,t)})},Wr.prototype.toJSON=function(){return v(this,{},{},this.m__items)},Wr.prototype.setMockData=function(e){var n=this;C(this,e,function(e,t){return c(o.CustomProperty,!0,n,e,t)},function(e){return n.m__items=e})},Wr);function Wr(){return null!==Lr&&Lr.apply(this,arguments)||this}o.CustomPropertyCollection=Br;var Gr,Vr="DocumentProperties",qr=(Gr=OfficeExtension.ClientObject,__extends(Jr,Gr),Object.defineProperty(Jr.prototype,"_className",{get:function(){return"DocumentProperties"},enumerable:!0,configurable:!0}),Object.defineProperty(Jr.prototype,"_scalarPropertyNames",{get:function(){return["author","category","comments","company","creationDate","keywords","lastAuthor","manager","revisionNumber","subject","title"]},enumerable:!0,configurable:!0}),Object.defineProperty(Jr.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Author","Category","Comments","Company","CreationDate","Keywords","LastAuthor","Manager","RevisionNumber","Subject","Title"]},enumerable:!0,configurable:!0}),Object.defineProperty(Jr.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!1,!0,!1,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Jr.prototype,"_navigationPropertyNames",{get:function(){return["customProperties"]},enumerable:!0,configurable:!0}),Object.defineProperty(Jr.prototype,"customProperties",{get:function(){return this._Cu||(this._Cu=e(o.CustomPropertyCollection,this,"CustomProperties",!0,4)),this._Cu},enumerable:!0,configurable:!0}),Object.defineProperty(Jr.prototype,"author",{get:function(){return h("author",this._A,Vr,this._isNull),this._A},set:function(e){this._A=e,p(this,"Author",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Jr.prototype,"category",{get:function(){return h("category",this._C,Vr,this._isNull),this._C},set:function(e){this._C=e,p(this,"Category",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Jr.prototype,"comments",{get:function(){return h("comments",this._Co,Vr,this._isNull),this._Co},set:function(e){this._Co=e,p(this,"Comments",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Jr.prototype,"company",{get:function(){return h("company",this._Com,Vr,this._isNull),this._Com},set:function(e){this._Com=e,p(this,"Company",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Jr.prototype,"creationDate",{get:function(){return h("creationDate",this._Cr,Vr,this._isNull),this._Cr},enumerable:!0,configurable:!0}),Object.defineProperty(Jr.prototype,"keywords",{get:function(){return h("keywords",this._K,Vr,this._isNull),this._K},set:function(e){this._K=e,p(this,"Keywords",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Jr.prototype,"lastAuthor",{get:function(){return h("lastAuthor",this._L,Vr,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(Jr.prototype,"manager",{get:function(){return h("manager",this._M,Vr,this._isNull),this._M},set:function(e){this._M=e,p(this,"Manager",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Jr.prototype,"revisionNumber",{get:function(){return h("revisionNumber",this._R,Vr,this._isNull),this._R},set:function(e){this._R=e,p(this,"RevisionNumber",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Jr.prototype,"subject",{get:function(){return h("subject",this._S,Vr,this._isNull),this._S},set:function(e){this._S=e,p(this,"Subject",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Jr.prototype,"title",{get:function(){return h("title",this._T,Vr,this._isNull),this._T},set:function(e){this._T=e,p(this,"Title",e,0)},enumerable:!0,configurable:!0}),Jr.prototype._handleResult=function(e){if(Gr.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.Author)||(this._A=t.Author),d(t.Category)||(this._C=t.Category),d(t.Comments)||(this._Co=t.Comments),d(t.Company)||(this._Com=t.Company),d(t.CreationDate)||(this._Cr=O(t.CreationDate)),d(t.Keywords)||(this._K=t.Keywords),d(t.LastAuthor)||(this._L=t.LastAuthor),d(t.Manager)||(this._M=t.Manager),d(t.RevisionNumber)||(this._R=t.RevisionNumber),d(t.Subject)||(this._S=t.Subject),d(t.Title)||(this._T=t.Title),_(this,t,["customProperties","CustomProperties"])}},Jr.prototype.load=function(e){return m(this,e)},Jr.prototype.retrieve=function(e){return y(this,e)},Jr.prototype._handleRetrieveResult=function(e,t){if(Gr.prototype._handleRetrieveResult.call(this,e,t),!f(e)){var n=e;d(n.CreationDate)||(n.creationDate=O(n.creationDate)),S(this,e,t)}},Jr.prototype.toJSON=function(){return v(this,{},{})},Jr.prototype.setMockData=function(e){C(this,e)},Jr.prototype.ensureUnchanged=function(e){u(this,e)},Jr);function Jr(){return null!==Gr&&Gr.apply(this,arguments)||this}o.DocumentProperties=qr;var zr,Kr,Xr,Qr=(zr=OfficeExtension.ClientObject,__extends($r,zr),Object.defineProperty($r.prototype,"_className",{get:function(){return"Experiment"},enumerable:!0,configurable:!0}),Object.defineProperty($r.prototype,"_scalarPropertyNames",{get:function(){return["id"]},enumerable:!0,configurable:!0}),Object.defineProperty($r.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id"]},enumerable:!0,configurable:!0}),Object.defineProperty($r.prototype,"id",{get:function(){return h("id",this._I,"Experiment",this._isNull),this._I},enumerable:!0,configurable:!0}),$r.prototype.runAction=function(e,t){return l(this,"RunAction",0,[e,t],1,0)},$r.prototype.runActionAsync=function(e,t){return l(this,"RunActionAsync",0,[e,t],1,0)},$r.prototype._RegisterEventActionCompleted=function(){l(this,"_RegisterEventActionCompleted",0,[],0,0)},$r.prototype._UnregisterEventActionCompleted=function(){l(this,"_UnregisterEventActionCompleted",0,[],0,0)},$r.prototype._handleResult=function(e){if(zr.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.Id)||(this._I=t.Id)}},$r.prototype.load=function(e){return m(this,e)},$r.prototype.retrieve=function(e){return y(this,e)},$r.prototype._handleIdResult=function(e){zr.prototype._handleIdResult.call(this,e),f(e)||d(e.Id)||(this._I=e.Id)},$r.prototype._handleRetrieveResult=function(e,t){zr.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Object.defineProperty($r.prototype,"onActionCompleted",{get:function(){var e=this;return this.m_actionCompleted||(this.m_actionCompleted=new OfficeExtension.GenericEventHandlers(this.context,this,"ActionCompleted",{eventType:5,registerFunc:function(){return e._RegisterEventActionCompleted()},unregisterFunc:function(){return e._UnregisterEventActionCompleted()},getTargetIdFunc:function(){return e.id},eventArgsTransformFunc:function(e){var t={requestId:e.requestId,result:e.result};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_actionCompleted},enumerable:!0,configurable:!0}),$r.prototype.toJSON=function(){return v(this,{},{})},$r.prototype.setMockData=function(e){C(this,e)},$r.prototype.ensureUnchanged=function(e){u(this,e)},$r);function $r(){return null!==zr&&zr.apply(this,arguments)||this}o.Experiment=Qr,(Kr=o.InsertSlideFormatting||(o.InsertSlideFormatting={})).keepSourceFormatting="KeepSourceFormatting",Kr.useDestinationTheme="UseDestinationTheme",(Xr=o.LabelingCapability||(o.LabelingCapability={})).noLicense="NoLicense",Xr.labelingDisabled="LabelingDisabled",Xr.labelingPolicyNotFound="LabelingPolicyNotFound",Xr.labelingEnabled="LabelingEnabled";var Zr,Yr=(Zr=OfficeExtension.ClientObject,__extends(ei,Zr),Object.defineProperty(ei.prototype,"_className",{get:function(){return"PageSetup"},enumerable:!0,configurable:!0}),Object.defineProperty(ei.prototype,"_scalarPropertyNames",{get:function(){return["slideHeight","slideWidth"]},enumerable:!0,configurable:!0}),Object.defineProperty(ei.prototype,"_scalarPropertyOriginalNames",{get:function(){return["SlideHeight","SlideWidth"]},enumerable:!0,configurable:!0}),Object.defineProperty(ei.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(ei.prototype,"slideHeight",{get:function(){return h("slideHeight",this._S,"PageSetup",this._isNull),this._S},set:function(e){this._S=e,p(this,"SlideHeight",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ei.prototype,"slideWidth",{get:function(){return h("slideWidth",this._Sl,"PageSetup",this._isNull),this._Sl},set:function(e){this._Sl=e,p(this,"SlideWidth",e,0)},enumerable:!0,configurable:!0}),ei.prototype._handleResult=function(e){if(Zr.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.SlideHeight)||(this._S=t.SlideHeight),d(t.SlideWidth)||(this._Sl=t.SlideWidth)}},ei.prototype.load=function(e){return m(this,e)},ei.prototype.retrieve=function(e){return y(this,e)},ei.prototype._handleRetrieveResult=function(e,t){Zr.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},ei.prototype.toJSON=function(){return v(this,{},{})},ei.prototype.setMockData=function(e){C(this,e)},ei.prototype.ensureUnchanged=function(e){u(this,e)},ei);function ei(){return null!==Zr&&Zr.apply(this,arguments)||this}o.PageSetup=Yr;var ti,ni,ri=(ti=OfficeExtension.ClientObject,__extends(ii,ti),Object.defineProperty(ii.prototype,"_className",{get:function(){return"SensitivityLabelDetailsCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"items",{get:function(){return h("items",this.m__items,"SensitivityLabelDetailsCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),ii.prototype.getCount=function(){return l(this,"GetCount",1,[],4,0)},ii.prototype.getItem=function(e){return t(o.SensitivityLabelDetails,this,[e])},ii.prototype.getItemAt=function(e){return r(o.SensitivityLabelDetails,this,"GetItemAt",1,[e],!1,!1,null,4)},ii.prototype.getItemOrNullObject=function(e){return r(o.SensitivityLabelDetails,this,"GetItemOrNullObject",1,[e],!1,!1,null,4)},ii.prototype._handleResult=function(e){if(ti.prototype._handleResult.call(this,e),!f(e)){var t=e;if(b(this,t),!f(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=c(o.SensitivityLabelDetails,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},ii.prototype.load=function(e){return m(this,e)},ii.prototype.retrieve=function(e){return y(this,e)},ii.prototype._handleRetrieveResult=function(e,t){var n=this;ti.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return c(o.SensitivityLabelDetails,!0,n,e,t)})},ii.prototype.toJSON=function(){return v(this,{},{},this.m__items)},ii.prototype.setMockData=function(e){var n=this;C(this,e,function(e,t){return c(o.SensitivityLabelDetails,!0,n,e,t)},function(e){return n.m__items=e})},ii);function ii(){return null!==ti&&ti.apply(this,arguments)||this}o.SensitivityLabelDetailsCollection=ri,(ni=o.SensitivityLabelProtectionType||(o.SensitivityLabelProtectionType={})).noProtection="NoProtection",ni.adminDefined="AdminDefined",ni.userDefined="UserDefined";var oi,ai,si="SensitivityLabelDetails",ci=(oi=OfficeExtension.ClientObject,__extends(li,oi),Object.defineProperty(li.prototype,"_className",{get:function(){return"SensitivityLabelDetails"},enumerable:!0,configurable:!0}),Object.defineProperty(li.prototype,"_scalarPropertyNames",{get:function(){return["color","id","name","order","siteId","tooltip","isEnabled","protectionType"]},enumerable:!0,configurable:!0}),Object.defineProperty(li.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Color","Id","Name","Order","SiteId","Tooltip","IsEnabled","ProtectionType"]},enumerable:!0,configurable:!0}),Object.defineProperty(li.prototype,"_navigationPropertyNames",{get:function(){return["children"]},enumerable:!0,configurable:!0}),Object.defineProperty(li.prototype,"children",{get:function(){return this._C||(this._C=e(o.SensitivityLabelDetailsCollection,this,"Children",!0,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(li.prototype,"color",{get:function(){return h("color",this._Co,si,this._isNull),this._Co},enumerable:!0,configurable:!0}),Object.defineProperty(li.prototype,"id",{get:function(){return h("id",this._I,si,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(li.prototype,"isEnabled",{get:function(){return h("isEnabled",this._Is,si,this._isNull),this._Is},enumerable:!0,configurable:!0}),Object.defineProperty(li.prototype,"name",{get:function(){return h("name",this._N,si,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(li.prototype,"order",{get:function(){return h("order",this._O,si,this._isNull),this._O},enumerable:!0,configurable:!0}),Object.defineProperty(li.prototype,"protectionType",{get:function(){return h("protectionType",this._P,si,this._isNull),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(li.prototype,"siteId",{get:function(){return h("siteId",this._S,si,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(li.prototype,"tooltip",{get:function(){return h("tooltip",this._T,si,this._isNull),this._T},enumerable:!0,configurable:!0}),li.prototype._handleResult=function(e){if(oi.prototype._handleResult.call(this,e),!f(e)){var t=e;b(this,t),d(t.Color)||(this._Co=t.Color),d(t.Id)||(this._I=t.Id),d(t.IsEnabled)||(this._Is=t.IsEnabled),d(t.Name)||(this._N=t.Name),d(t.Order)||(this._O=t.Order),d(t.ProtectionType)||(this._P=t.ProtectionType),d(t.SiteId)||(this._S=t.SiteId),d(t.Tooltip)||(this._T=t.Tooltip),_(this,t,["children","Children"])}},li.prototype.load=function(e){return m(this,e)},li.prototype.retrieve=function(e){return y(this,e)},li.prototype._handleIdResult=function(e){oi.prototype._handleIdResult.call(this,e),f(e)||d(e.Id)||(this._I=e.Id)},li.prototype._handleRetrieveResult=function(e,t){oi.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},li.prototype.toJSON=function(){return v(this,{},{})},li.prototype.setMockData=function(e){C(this,e)},li.prototype.ensureUnchanged=function(e){u(this,e)},li);function li(){return null!==oi&&oi.apply(this,arguments)||this}o.SensitivityLabelDetails=ci,(ai=o.SensitivityLabelUpdateResult||(o.SensitivityLabelUpdateResult={})).success="Success",ai.unspecifiedFailure="UnspecifiedFailure",ai.labelNotFound="LabelNotFound",ai.documentReadOnly="DocumentReadOnly",ai.insufficientPermission="InsufficientPermission",ai.unsupportedDoubleKeyEncryption="UnsupportedDoubleKeyEncryption",ai.labelingDisabled="LabelingDisabled",ai.userNotFound="UserNotFound",ai.unsupportedUdp="UnsupportedUdp",ai.parentLabelNotSupported="ParentLabelNotSupported",ai.crossTenant="CrossTenant";var ui,pi=(ui=OfficeExtension.ClientObject,__extends(fi,ui),Object.defineProperty(fi.prototype,"_className",{get:function(){return"SensitivityLabel"},enumerable:!0,configurable:!0}),fi.prototype.getCurrentOrNullObject=function(){return r(o.SensitivityLabelDetails,this,"GetCurrentOrNullObject",1,[],!1,!1,null,4)},fi.prototype.tryToUpdate=function(e){return l(this,"TryToUpdate",0,[e],0,0)},fi.prototype._handleResult=function(e){ui.prototype._handleResult.call(this,e),f(e)||b(this,e)},fi.prototype._handleRetrieveResult=function(e,t){ui.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},fi.prototype.toJSON=function(){return v(this,{},{})},fi);function fi(){return null!==ui&&ui.apply(this,arguments)||this}o.SensitivityLabel=pi;var di,hi=(di=OfficeExtension.ClientObject,__extends(gi,di),Object.defineProperty(gi.prototype,"_className",{get:function(){return"SlideCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(gi.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(gi.prototype,"items",{get:function(){return h("items",this.m__items,"SlideCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),gi.prototype.add=function(e){g("SlideCollection.add",a,"1.3",i),l(this,"Add",0,[e],0,0)},gi.prototype.exportAsBase64Presentation=function(e){return g("SlideCollection.exportAsBase64Presentation",a,"1.10",i),l(this,"ExportAsBase64Presentation",1,[e],4,0)},gi.prototype.getCount=function(){return l(this,"GetCount",1,[],4,0)},gi.prototype.getItem=function(e){return t(o.Slide,this,[e])},gi.prototype.getItemAt=function(e){return r(o.Slide,this,"GetItemAt",1,[e],!1,!1,null,4)},gi.prototype.getItemOrNullObject=function(e){return r(o.Slide,this,"GetItemOrNullObject",0,[e],!1,!1,null,0)},gi.prototype._handleResult=function(e){if(di.prototype._handleResult.call(this,e),!f(e)){var t=e;if(b(this,t),!f(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=c(o.Slide,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},gi.prototype.load=function(e){return m(this,e)},gi.prototype.retrieve=function(e){return y(this,e)},gi.prototype._handleRetrieveResult=function(e,t){var n=this;di.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return c(o.Slide,!0,n,e,t)})},gi.prototype.toJSON=function(){return v(this,{},{},this.m__items)},gi.prototype.setMockData=function(e){var n=this;C(this,e,function(e,t){return c(o.Slide,!0,n,e,t)},function(e){return n.m__items=e})},gi);function gi(){return null!==di&&di.apply(this,arguments)||this}o.SlideCollection=hi;var mi,yi=(mi=OfficeExtension.ClientObject,__extends(vi,mi),Object.defineProperty(vi.prototype,"_className",{get:function(){return"SlideScopedCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(vi.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(vi.prototype,"items",{get:function(){return h("items",this.m__items,"SlideScopedCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),vi.prototype.exportAsBase64Presentation=function(){return g("SlideScopedCollection.exportAsBase64Presentation",a,"1.10",i),l(this,"ExportAsBase64Presentation",1,[],4,0)},vi.prototype.getCount=function(){return l(this,"GetCount",1,[],4,0)},vi.prototype.getItem=function(e){return t(o.Slide,this,[e])},vi.prototype.getItemAt=function(e){return r(o.Slide,this,"GetItemAt",1,[e],!1,!1,null,4)},vi.prototype.getItemOrNullObject=function(e){return r(o.Slide,this,"GetItemOrNullObject",0,[e],!1,!1,null,0)},vi.prototype._handleResult=function(e){if(mi.prototype._handleResult.call(this,e),!f(e)){var t=e;if(b(this,t),!f(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=c(o.Slide,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},vi.prototype.load=function(e){return m(this,e)},vi.prototype.retrieve=function(e){return y(this,e)},vi.prototype._handleRetrieveResult=function(e,t){var n=this;mi.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return c(o.Slide,!0,n,e,t)})},vi.prototype.toJSON=function(){return v(this,{},{},this.m__items)},vi.prototype.setMockData=function(e){var n=this;C(this,e,function(e,t){return c(o.Slide,!0,n,e,t)},function(e){return n.m__items=e})},vi);function vi(){return null!==mi&&mi.apply(this,arguments)||this}o.SlideScopedCollection=yi;var bi,_i=(bi=OfficeExtension.ClientObject,__extends(Oi,bi),Object.defineProperty(Oi.prototype,"_className",{get:function(){return"SlideMasterCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Oi.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Oi.prototype,"items",{get:function(){return h("items",this.m__items,"SlideMasterCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),Oi.prototype.getCount=function(){return l(this,"GetCount",1,[],4,0)},Oi.prototype.getItem=function(e){return t(o.SlideMaster,this,[e])},Oi.prototype.getItemAt=function(e){return r(o.SlideMaster,this,"GetItemAt",1,[e],!1,!1,null,4)},Oi.prototype.getItemOrNullObject=function(e){return r(o.SlideMaster,this,"GetItemOrNullObject",0,[e],!1,!1,null,0)},Oi.prototype._handleResult=function(e){if(bi.prototype._handleResult.call(this,e),!f(e)){var t=e;if(b(this,t),!f(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=c(o.SlideMaster,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Oi.prototype.load=function(e){return m(this,e)},Oi.prototype.retrieve=function(e){return y(this,e)},Oi.prototype._handleRetrieveResult=function(e,t){var n=this;bi.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return c(o.SlideMaster,!0,n,e,t)})},Oi.prototype.toJSON=function(){return v(this,{},{},this.m__items)},Oi.prototype.setMockData=function(e){var n=this;C(this,e,function(e,t){return c(o.SlideMaster,!0,n,e,t)},function(e){return n.m__items=e})},Oi);function Oi(){return null!==bi&&bi.apply(this,arguments)||this}o.SlideMasterCollection=_i,(o.ErrorCodes||(o.ErrorCodes={})).generalException="GeneralException",o.Interfaces||(o.Interfaces={})}(PowerPoint=PowerPoint||{}),function(n){var r,e=(r=OfficeCore.RequestContext,__extends(t,r),Object.defineProperty(t.prototype,"presentation",{get:function(){return this.m_presentation},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"application",{get:function(){return null==this.m_application&&(this.m_application=new n.Application(this,OfficeExtension.ObjectPathFactory.createNewObjectObjectPath(this,"Microsoft.Office.PowerPoint.Application",!1))),this.m_application},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sensitivityLabelsCatalog",{get:function(){if(null==this.m_sensitivityLabelsCatalog){var e=n.SensitivityLabelsCatalog;e&&(this.m_sensitivityLabelsCatalog=new e(this,OfficeExtension.ObjectPathFactory.createNewObjectObjectPath(this,"Microsoft.Office.PowerPoint.SensitivityLabelsCatalog",!1)))}return this.m_sensitivityLabelsCatalog},enumerable:!0,configurable:!0}),t);function t(e){var t=r.call(this,e)||this;return t.m_presentation=new n.Presentation(t,OfficeExtension.ObjectPathFactory.createGlobalObjectObjectPath(t)),t._rootObject=t.m_presentation,t}n.RequestContext=e,n.run=function(e,t){return OfficeExtension.ClientRequestContext._runBatch("PowerPoint.run",arguments,function(){return new n.RequestContext})}}(PowerPoint=PowerPoint||{}),function(e){var t=(Object.defineProperty(n.prototype,"type",{get:function(){return e.EventType.ActiveViewChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"activeView",{get:function(){return this.m_activeView.activeView},enumerable:!0,configurable:!0}),n);function n(e){this.m_activeView=e}e.ActiveViewChangedEventArgs=t}(OSF=OSF||{}),function(c){var e=(t.prototype.verifyArguments=function(e,t){for(var n in e){var r=e[n],i=t[n];if(r.enum)switch(typeof i){case"string":if(c.OUtil.listContainsValue(r.enum,i))break;case"undefined":throw 5007;default:throw c.Utility.createArgumentException(this._displayName)}if(r.types&&!c.OUtil.listContainsValue(r.types,typeof i))throw c.Utility.createArgumentException(this._displayName)}},t.prototype.extractRequiredArguments=function(e,t,n){if(e.length<this._requiredCount)throw c.Utility.createParameterException(c.ErrorNames.MissingRequiredArguments);var r,i=[];for(r=0;r<this._requiredCount;r++)i.push(e[r]);this.verifyArguments(this._requiredParameters,i);var o={};for(r=0;r<this._requiredCount;r++){var a=this._requiredParameters[r],s=i[r];if(a.verify&&!a.verify(s,t,n))throw c.Utility.createArgumentException(this._displayName);o[a.name]=s}return o},t.prototype.fillOptions=function(e,t,n,r){for(var i in e=e||{},this._supportedOptions)if(!c.OUtil.listContainsKey(e,i)){var o=void 0,a=this._supportedOptions[i];a.calculate&&t&&(o=a.calculate(t,n,r)),o||void 0===a.defaultValue||(o=a.defaultValue),e[i]=o}return e},t.prototype.constructCallArgs=function(e,t,n,r){var i={};for(var o in e)i[o]=e[o];for(var a in t)i[a]=t[a];for(var s in this._privateStateCallbacks)i[s]=this._privateStateCallbacks[s](n,r);return this._checkCallArgs&&(i=this._checkCallArgs(i,n,r)),i},t);function t(e,t,n,r,i){this._requiredParameters=e,this._supportedOptions=t,this._privateStateCallbacks=n,this._checkCallArgs=r,this._displayName=i,this._requiredCount=e.length}c.ApiMethodCall=e}(OSF=OSF||{}),function(c){var e=(t.prototype.verifyAndExtractCall=function(e,t,n){var r=this._apiMethods.extractRequiredArguments(e,t,n),i=this.extractOptions(e,r,t,n);return this._apiMethods.constructCallArgs(r,i,t,n)},t.prototype.processResponse=function(e,t,n,r){return 0==e?this._onSucceeded?this._onSucceeded(t,n,r):t:this._onFailed?this._onFailed(e,t):c.DDA.ErrorCodeManager.getErrorArgs(e)},t.prototype.getCallArgs=function(e){for(var t,n,r=e.length-1;r>=this._requiredCount;r--){var i=e[r];switch(typeof i){case"object":t=i;break;case"function":n=i}}return t=t||{},n&&(t[c.ParameterNames.Callback]=n),t},t.prototype.extractOptions=function(e,t,n,r){if(e.length>this._requiredCount+2)throw c.Utility.createParameterException(c.ErrorNames.TooManyArguments);for(var i,o,a=e.length-1;a>=this._requiredCount;a--){var s=e[a];switch(typeof s){case"object":if(i)throw c.Utility.createParameterException(c.ErrorNames.TooManyOptionalObjects);i=s;break;case"function":if(o)throw c.Utility.createParameterException(c.ErrorNames.TooManyOptionalFunctions);o=s;break;default:throw c.Utility.createArgumentException(c.ErrorNames.InvalidValue)}}if(i=this._apiMethods.fillOptions(i,t,n,r),o){if(i[c.ParameterNames.Callback])throw c.ErrorNames.RedundantCallbackSpecification;i[c.ParameterNames.Callback]=o}return this._apiMethods.verifyArguments(this._supportedOptions,i),i},t);function t(e,t,n,r,i,o,a){this._requiredParameters=e,this._supportedOptions=t,this._privateStateCallbacks=n,this._onSucceeded=r,this._onFailed=i,this._displayName=a,this._checkCallArgs=o,this._requiredCount=e.length,this._apiMethods=new c.ApiMethodCall(e,t,n,o,a)}c.AsyncMethodCall=e}(OSF=OSF||{}),function(i){var e,o;e=i.AsyncMethodCalls||(i.AsyncMethodCalls={}),o={},e.define=function(e){var t,n,r;o[e.method]=(n=(t=e).supportedOptions?i.OUtil.createObject(t.supportedOptions):[],r=t.privateStateCallbacks?i.OUtil.createObject(t.privateStateCallbacks):[],new i.AsyncMethodCall(t.requiredArguments||[],n,r,t.onSucceeded,t.onFailed,t.checkCallArgs,t.method))},e.get=function(e){return o[e]}}(OSF=OSF||{}),(OSF||(OSF={})).AsyncMethods={AddColumnsAsync:"addColumnsAsync",AddFromSelectionAsync:"addFromSelectionAsync",AddFromNamedItemAsync:"addFromNamedItemAsync",AddFromPromptAsync:"addFromPromptAsync",AddHandlerAsync:"addHandlerAsync",AddRowsAsync:"addRowsAsync",BindingSelectionChanged:"bindingSelectionChanged",BindingDataChanged:"bindingDataChanged",ClearFormatsAsync:"clearFormatsAsync",CloseAsync:"close",CloseContainerAsync:"closeContainer",DeleteAllDataValuesAsync:"deleteAllDataValuesAsync",DisplayDialogAsync:"displayDialogAsync",ExecuteFeature:"executeFeature",ExecuteRichApiRequestAsync:"executeRichApiRequestAsync",GetAllAsync:"getAllAsync",GetAccessTokenAsync:"getAccessTokenAsync",GetByIdAsync:"getByIdAsync",GetDataAsync:"getDataAsync",GetDocumentCopyAsync:"getFileAsync",GetDocumentCopyChunkAsync:"getSliceAsync",GetFilePropertiesAsync:"getFilePropertiesAsync",GetSelectedDataAsync:"getSelectedDataAsync",GoToByIdAsync:"goToByIdAsync",OpenBrowserWindow:"openBrowserWindow",QueryFeature:"queryFeature",ReleaseByIdAsync:"releaseByIdAsync",RemoveHandlerAsync:"removeHandlerAsync",ReleaseDocumentCopyAsync:"closeAsync",SetDataAsync:"setDataAsync",SetFormatsAsync:"setFormatsAsync",SetSelectedDataAsync:"setSelectedDataAsync",SetTableOptionsAsync:"setTableOptionsAsync",GetOfficeThemeAsync:"getOfficeThemeAsync",GetDocumentThemeAsync:"getDocumentThemeAsync"},function(e){var t;(t=e.PropertyDescriptors||(e.PropertyDescriptors={})).Subset="subset",t.BindingProperties="BindingProperties";var n=(Object.defineProperty(r.prototype,"startRow",{get:function(){return this.m_subset.startRow},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"startColumn",{get:function(){return this.m_subset.startColumn},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rowCount",{get:function(){return this.m_subset.rowCount},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"columnCount",{get:function(){return this.m_subset.columnCount},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"type",{get:function(){return e.EventType.BindingSelectionChanged},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"binding",{get:function(){return this.m_bindingInstance},enumerable:!0,configurable:!0}),r);function r(e,t){this.m_bindingInstance=e,this.m_subset=t}e.BindingSelectionChangedEventArgs=n;var i=(Object.defineProperty(o.prototype,"type",{get:function(){return e.EventType.BindingDataChanged},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"binding",{get:function(){return this.m_bindingInstance},enumerable:!0,configurable:!0}),o);function o(e){this.m_bindingInstance=e}e.BindingDataChangedEventArgs=i}(OSF=OSF||{}),function(e){var t,n,r,i,o,a;(t=e.PropertyDescriptors||(e.PropertyDescriptors={})).DataPartProperties="DataPartProperties",t.DataNodeProperties="DataNodeProperties",n=e.Marshaling||(e.Marshaling={}),r=n.Customxml||(n.Customxml={}),(i=r.DataNodeEventProperties||(r.DataNodeEventProperties={})).OldNode="OldNode",i.NewNode="NewNode",i.NextSiblingNode="NextSiblingNode",i.InUndoRedo="InUndoRedo",(o=e.EventDescriptors||(e.EventDescriptors={})).DataNodeInsertedEvent="DataNodeInsertedEvent",o.DataNodeReplacedEvent="DataNodeReplacedEvent",o.DataNodeDeletedEvent="DataNodeDeletedEvent",(a=e.DataNodeEventProperties||(e.DataNodeEventProperties={})).OldNode="OldNode",a.NewNode="NewNode",a.NextSiblingNode="NextSiblingNode",a.InUndoRedo="InUndoRedo";var s=(Object.defineProperty(c.prototype,"type",{get:function(){return e.EventType.DataNodeInserted},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"newNode",{get:function(){return this.m_newNode},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"inUndoRedo",{get:function(){return this.m_inUndoRedo},enumerable:!0,configurable:!0}),c);function c(e,t){this.m_newNode=e,this.m_inUndoRedo=t}e.NodeInsertedEventArgs=s;var l=(Object.defineProperty(u.prototype,"type",{get:function(){return e.EventType.DataNodeReplaced},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"oldNode",{get:function(){return this.m_oldNode},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"newNode",{get:function(){return this.m_newNode},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"inUndoRedo",{get:function(){return this.m_inUndoRedo},enumerable:!0,configurable:!0}),u);function u(e,t,n){this.m_oldNode=e,this.m_newNode=t,this.m_inUndoRedo=n}e.NodeReplacedEventArgs=l;var p=(Object.defineProperty(f.prototype,"type",{get:function(){return e.EventType.DataNodeDeleted},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"oldNode",{get:function(){return this.m_oldNode},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"oldNextSibling",{get:function(){return this.m_oldNextSibling},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"inUndoRedo",{get:function(){return this.m_inUndoRedo},enumerable:!0,configurable:!0}),f);function f(e,t,n){this.m_oldNode=e,this.m_oldNextSibling=t,this.m_inUndoRedo=n}e.NodeDeletedEventArgs=p}(OSF=OSF||{}),function(t){function e(e){0==e[t.PropertyDescriptors.MessageType]?t.OUtil.defineEnumerableProperties(this,{type:{value:t.EventType.DialogMessageReceived},message:{value:e[t.PropertyDescriptors.MessageContent]},origin:{value:e[t.PropertyDescriptors.MessageOrigin]}}):t.OUtil.defineEnumerableProperties(this,{type:{value:t.EventType.DialogEventReceived},error:{value:e[t.PropertyDescriptors.MessageType]}})}var n;t.DialogEventArgs=e,(n=t.PropertyDescriptors||(t.PropertyDescriptors={})).MessageType="messageType",n.MessageContent="messageContent",n.MessageOrigin="messageOrigin"}(OSF=OSF||{}),function(e){var t=(Object.defineProperty(n.prototype,"type",{get:function(){return e.EventType.DocumentSelectionChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"document",{get:function(){return this.m_docInstance},enumerable:!0,configurable:!0}),n);function n(e){this.m_docInstance=e}e.DocumentSelectionChangedEventArgs=t}(OSF=OSF||{}),function(t){function e(e){t.OUtil.defineEnumerableProperties(this,{type:{value:t.EventType.DialogParentMessageReceived},message:{value:e[t.PropertyDescriptors.MessageContent]},origin:{value:e[t.PropertyDescriptors.MessageOrigin]}})}t.DialogParentEventArgs=e}(OSF=OSF||{}),function(y){var e,o;function h(e){return e==y.EventDispId.dispidObjectDeletedEvent||e==y.EventDispId.dispidObjectSelectionChangedEvent||e==y.EventDispId.dispidObjectDataChangedEvent||e==y.EventDispId.dispidContentControlAddedEvent}function v(e,t,n,r){if("number"!=typeof e)throw e;O(r=r||t.getCallArgs(n),e,y.DDA.ErrorCodeManager.getErrorArgs(e))}function b(e){return(y._OfficeAppFactory.getHostInfo().hostPlatform==y.HostInfoPlatform.web?y.WACDelegate:y.SafeArrayDelegate)[e]}function _(){return o||function(){o={};var e={GoToByIdAsync:82,GetSelectedDataAsync:64,SetSelectedDataAsync:65,GetDocumentCopyChunkAsync:80,ReleaseDocumentCopyAsync:81,GetDocumentCopyAsync:77,AddFromSelectionAsync:66,AddFromPromptAsync:67,AddFromNamedItemAsync:78,GetAllAsync:74,GetByIdAsync:68,ReleaseByIdAsync:69,GetDataAsync:70,SetDataAsync:71,AddRowsAsync:72,AddColumnsAsync:79,DeleteAllDataValuesAsync:73,RefreshAsync:75,SaveAsync:76,GetActiveViewAsync:83,GetFilePropertiesAsync:86,GetOfficeThemeAsync:85,GetDocumentThemeAsync:84,ClearFormatsAsync:87,SetTableOptionsAsync:88,SetFormatsAsync:89,GetUserIdentityInfoAsync:92,GetAccessTokenAsync:98,GetAuthContextAsync:99,ExecuteRichApiRequestAsync:93,AppCommandInvocationCompletedAsync:94,CloseContainerAsync:97,OpenBrowserWindow:102,CreateDocumentAsync:105,InsertFormAsync:106,ExecuteFeature:146,QueryFeature:147,AddDataPartAsync:128,GetDataPartByIdAsync:129,GetDataPartsByNameSpaceAsync:130,GetPartXmlAsync:131,GetPartNodesAsync:132,DeleteDataPartAsync:133,GetNodeValueAsync:134,GetNodeXmlAsync:135,GetRelativeNodesAsync:136,SetNodeValueAsync:137,SetNodeXmlAsync:138,AddDataPartNamespaceAsync:139,GetDataPartNamespaceAsync:140,GetDataPartPrefixAsync:141,GetNodeTextAsync:142,SetNodeTextAsync:143,GetSelectedTask:110,GetTask:112,GetWSSUrl:114,GetTaskField:115,GetSelectedResource:111,GetResourceField:113,GetProjectField:116,GetSelectedView:117,GetTaskByIndex:118,GetResourceByIndex:119,SetTaskField:120,SetResourceField:121,GetMaxTaskIndex:122,GetMaxResourceIndex:123,CreateTask:124};for(var t in e)y.AsyncMethods[t]&&(o[y.AsyncMethods[t]]=e[t]);var n={MessageParent:144,SendMessage:145};for(var t in n)y.SyncMethods[t]&&(o[y.SyncMethods[t]]=n[t]);var r={SettingsChanged:y.EventDispId.dispidSettingsChangedEvent,DocumentSelectionChanged:y.EventDispId.dispidDocumentSelectionChangedEvent,BindingSelectionChanged:y.EventDispId.dispidBindingSelectionChangedEvent,BindingDataChanged:y.EventDispId.dispidBindingDataChangedEvent,ActiveViewChanged:y.EventDispId.dispidActiveViewChangedEvent,OfficeThemeChanged:y.EventDispId.dispidOfficeThemeChangedEvent,DocumentThemeChanged:y.EventDispId.dispidDocumentThemeChangedEvent,AppCommandInvoked:y.EventDispId.dispidAppCommandInvokedEvent,DialogMessageReceived:y.EventDispId.dispidDialogMessageReceivedEvent,DialogParentMessageReceived:y.EventDispId.dispidDialogParentMessageReceivedEvent,ObjectDeleted:y.EventDispId.dispidObjectDeletedEvent,ObjectSelectionChanged:y.EventDispId.dispidObjectSelectionChangedEvent,ObjectDataChanged:y.EventDispId.dispidObjectDataChangedEvent,ContentControlAdded:y.EventDispId.dispidContentControlAddedEvent,LiveShareStateChanged:y.EventDispId.dispidLiveShareStateChangedEvent,RichApiMessage:y.EventDispId.dispidRichApiMessageEvent,DataNodeInserted:y.EventDispId.dispidDataNodeAddedEvent,DataNodeReplaced:y.EventDispId.dispidDataNodeReplacedEvent,DataNodeDeleted:y.EventDispId.dispidDataNodeDeletedEvent};for(var i in r)y.EventType[i]&&(o[y.EventType[i]]=r[i])}(),o}function O(e,t,n){var r=e[y.ParameterNames.Callback];if(r){var i,o={};o[y.DDA.AsyncResultEnum.Properties.Context]=e[y.ParameterNames.AsyncContext],0==t?o[y.DDA.AsyncResultEnum.Properties.Value]=n:(i={},n=n||y.DDA.ErrorCodeManager.getErrorArgs(5001),i[y.DDA.AsyncResultEnum.ErrorProperties.Code]=t||5001,i[y.DDA.AsyncResultEnum.ErrorProperties.Name]=n.name||n,i[y.DDA.AsyncResultEnum.ErrorProperties.Message]=n.message||n),r(new y.DDA.AsyncResult(o,i))}}y.DialogShownStatus={hasDialogShown:!1,isWindowDialog:!1},(e=y.DispIdHost||(y.DispIdHost={})).InvokeMethod=function(e,t,i,n){var r,o;try{var a=y.AsyncMethodCalls.get(e);o=a.verifyAndExtractCall(t,i,n);var s=_()[e],c=b("executeAsync"),l=null,u=!1,p=void 0;if(window.Excel&&window.Office.context.requirements.isSetSupported("RedirectV1Api")&&(window.Excel._RedirectV1APIs=!0,u=(r=function(e){var t=!1,n=void 0;if(void 0!==y&&y._OfficeAppFactory&&"function"==typeof y._OfficeAppFactory.getHostInfo&&y.HostInfoPlatform&&y.HostInfoPlatform.ios){var r=y._OfficeAppFactory.getHostInfo();if(r&&r.hostPlatform&&(t=r.hostPlatform===y.HostInfoPlatform.ios)&&y.AsyncMethods)for(var i=Object.keys(y.AsyncMethods),o=0;o<i.length;o++){var a=i[o];if(y.AsyncMethods[a]===e){n=a;break}}}return{isIOSPlatformDetected:t,methodId:n}}(e)).isIOSPlatformDetected,p=r.methodId),window.Excel&&window.Excel._RedirectV1APIs&&(l=window.Excel._V1APIMap[u&&void 0!==p?p:e])){var f=y.OUtil.shallowCopy(o);delete f[y.ParameterNames.AsyncContext],l.preprocess&&(f=l.preprocess(f));var d=new window.Excel.RequestContext,h=l.call(d,f);d.sync().then(function(){var e=h.value,t=e.status;delete e.status,delete e["@odata.type"],l.postprocess&&(e=l.postprocess(e,f)),0!=t&&(e=y.DDA.ErrorCodeManager.getErrorArgs(t)),O(o,t,e)}).catch(function(e){O(o,13991,null)})}else{var g;g=y.HostParameterMap.toHost(s,o);var m=(new Date).getTime();c({dispId:s,hostCallArgs:g,onCalling:function(){},onReceiving:function(){},onComplete:function(e,t){var n;n=0==e?y.HostParameterMap.fromHost(s,t):t;var r=a.processResponse(e,n,i,o);O(o,e,r),y.AppTelemetry&&y.AppTelemetry.onMethodDone(s,g,Math.abs((new Date).getTime()-m),e)}})}}catch(e){v(e,a,t,o)}},e.AddEventHandler=function(t,n,r,e){var i,o,a,s=!1;function c(e){var t;0==e&&((s?n.addObjectEventHandler(o,i[y.ParameterNames.Id],a):n.addEventHandler(o,a))||(e=13991));0!=e&&(t=y.DDA.ErrorCodeManager.getErrorArgs(e)),O(i,e,t)}try{var l=y.AsyncMethodCalls.get(y.AsyncMethods.AddHandlerAsync);if(i=l.verifyAndExtractCall(t,r,n),o=i[y.ParameterNames.EventType],a=i[y.ParameterNames.Handler],e)return void c(0);var u=_()[o],p=(s=h(u))?i[y.ParameterNames.Id]:r.id||"";if(0==(s?n.getObjectEventHandlerCount(o,p):n.getEventHandlerCount(o)))b("registerEventAsync")({eventType:o,dispId:u,targetId:p,onCalling:function(){},onReceiving:function(){},onComplete:c,onEvent:function(e){var t=y.HostParameterMap.fromHost(u,e);s?n.fireObjectEvent(p,y.manufactureEventArgs(o,p,t)):n.fireEvent(y.manufactureEventArgs(o,r,t))}});else c(0)}catch(e){v(e,l,t,i)}},e.RemoveEventHandler=function(t,e,n){var r,i,o,a=!1;function s(e){var t;0!=e&&(t=y.DDA.ErrorCodeManager.getErrorArgs(e)),O(r,e,t)}try{var c=y.AsyncMethodCalls.get(y.AsyncMethods.RemoveHandlerAsync);i=(r=c.verifyAndExtractCall(t,n,e))[y.ParameterNames.EventType],o=r[y.ParameterNames.Handler];var l,u,p=_()[i],f=(a=h(p))?r[y.ParameterNames.Id]:n.id||"";l=null===o?(u=a?e.clearObjectEventHandlers(i,f):e.clearEventHandlers(i),0):(u=a?e.removeObjectEventHandler(i,f,o):e.removeEventHandler(i,o))?0:5003;var d=a?e.getObjectEventHandlerCount(i,f):e.getEventHandlerCount(i);if(u&&0==d)b("unregisterEventAsync")({eventType:i,dispId:p,targetId:f,onCalling:function(){},onReceiving:function(){},onComplete:s});else s(l)}catch(e){v(e,c,t,r)}},e.OpenDialog=function(t,i,o){var r,a,s=y.EventType.DialogMessageReceived,c=y.EventType.DialogEventReceived;function e(e){if(0!=e)n=y.DDA.ErrorCodeManager.getErrorArgs(e);else{var t={};t.id=a,t.data=i;var n=l.processResponse(e,t,o,r);y.DialogShownStatus.hasDialogShown=!0,i.clearEventHandlers(s),i.clearEventHandlers(c)}O(r,e,n)}try{if(null!=s&&null!=c||e(5e3),null==y.AsyncMethods.DisplayDialogAsync)return void e(5001);var l=y.AsyncMethodCalls.get(y.AsyncMethods.DisplayDialogAsync);r=l.verifyAndExtractCall(t,o,i);var u=_()[s],n=b("openDialog");a=JSON.stringify(r),y.DialogShownStatus.hasDialogShown||(i.clearQueuedEvent(s),i.clearQueuedEvent(c),i.clearQueuedEvent(y.EventType.DialogParentMessageReceived)),n({eventType:s,dispId:u,targetId:a,onCalling:function(){},onReceiving:function(){},onComplete:e,onEvent:function(e){var t=y.HostParameterMap.fromHost(u,e),n=y.manufactureEventArgs(s,o,t);if(n.type==c){y.DDA.ErrorCodeManager.getErrorArgs(n.error);var r={};r.code=status||5001,n.error=new y.DDA.Error(r[y.DDA.AsyncResultEnum.ErrorProperties.Name],r[y.DDA.AsyncResultEnum.ErrorProperties.Message],r[y.DDA.AsyncResultEnum.ErrorProperties.Code])}i.fireOrQueueEvent(n),12006==t.messageType&&(i.clearEventHandlers(s),i.clearEventHandlers(c),i.clearEventHandlers(y.EventType.DialogParentMessageReceived),y.DialogShownStatus.hasDialogShown=!1)}})}catch(e){v(e,l,t,r)}},e.CloseDialog=function(t,e,n,r){var i,o,a;try{var s=y.AsyncMethodCalls.get(y.AsyncMethods.CloseAsync);i=s.verifyAndExtractCall(t,r,n),o=y.EventType.DialogMessageReceived,a=y.EventType.DialogEventReceived,n.clearEventHandlers(o),n.clearEventHandlers(a);var c=_()[o];b("closeDialog")({eventType:o,dispId:c,targetId:e,onCalling:function(){},onReceiving:function(){},onComplete:function(e){y.DialogShownStatus.hasDialogShown=!1}})}catch(e){v(e,s,t,i)}},e.MessageParent=function(e,t){var n=y.SyncMethodCalls.get(y.SyncMethods.MessageParent).verifyAndExtractCall(e,t,{});return b("messageParent")({dispId:_()[y.SyncMethods.MessageParent],hostCallArgs:n,onCalling:function(){},onReceiving:function(){}})},e.SendMessage=function(e,t,n){var r=y.SyncMethodCalls.get(y.SyncMethods.SendMessage).verifyAndExtractCall(e,n,{});return b("sendMessage")({dispId:_()[y.SyncMethods.SendMessage],hostCallArgs:r,onCalling:function(){},onReceiving:function(){}})},e.addAsyncMethods=function(t,e,n){for(var r in e){var i=e[r];t[i]||y.OUtil.defineEnumerableProperty(t,i,{value:function(e){return function(){(0,y.DispIdHost.InvokeMethod)(e,arguments,t,n)}}(i)})}},e.addEventSupport=function(e,t,n){var r=y.AsyncMethods.AddHandlerAsync,i=y.AsyncMethods.RemoveHandlerAsync;e[r]||y.OUtil.defineEnumerableProperty(e,r,{value:function(){(0,y.DispIdHost.AddEventHandler)(arguments,t,e,n)}}),e[i]||y.OUtil.defineEnumerableProperty(e,i,{value:function(){(0,y.DispIdHost.RemoveEventHandler)(arguments,t,e)}})},e.issueAsyncResult=O}(OSF=OSF||{}),function(i){i.manufactureEventArgs=function(e,t,n){var r;switch(e){case i.EventType.DocumentSelectionChanged:r=new i.DocumentSelectionChangedEventArgs(t);break;case i.EventType.BindingSelectionChanged:r=new i.BindingSelectionChangedEventArgs(i.manufactureBinding(n,t.document),n[i.PropertyDescriptors.Subset]);break;case i.EventType.BindingDataChanged:r=new i.BindingDataChangedEventArgs(i.manufactureBinding(n,t.document));break;case i.EventType.SettingsChanged:r=new i.SettingsChangedEventArgs(t);break;case i.EventType.ActiveViewChanged:r=new i.ActiveViewChangedEventArgs(n);break;case i.EventType.LiveShareStateChanged:r=new i.LiveShareStateChangedEventArgs(n);break;case i.EventType.OfficeThemeChanged:r=new i.DDA.Theming.OfficeThemeChangedEventArgs(n);break;case i.EventType.DocumentThemeChanged:r=new i.DDA.Theming.DocumentThemeChangedEventArgs(n);break;case i.EventType.DataNodeInserted:r=new i.NodeInsertedEventArgs(i.manufactureDataNode(n[i.DataNodeEventProperties.NewNode]),n[i.DataNodeEventProperties.InUndoRedo]);break;case i.EventType.DataNodeReplaced:r=new i.NodeReplacedEventArgs(i.manufactureDataNode(n[i.DataNodeEventProperties.OldNode]),i.manufactureDataNode(n[i.DataNodeEventProperties.NewNode]),n[i.DataNodeEventProperties.InUndoRedo]);break;case i.EventType.DataNodeDeleted:r=new i.NodeDeletedEventArgs(i.manufactureDataNode(n[i.DataNodeEventProperties.OldNode]),i.manufactureDataNode(n[i.DataNodeEventProperties.NextSiblingNode]),n[i.DataNodeEventProperties.InUndoRedo]);break;case i.EventType.DialogMessageReceived:r=new i.DialogEventArgs(n);break;case i.EventType.DialogParentMessageReceived:r=new i.DialogParentEventArgs(n)}return r}}(OSF=OSF||{}),function(d){var h="toHost",g="fromHost";!function(u){var t;u.self="self",u.dynamicTypes={},u.dynamicTypes[d.ParameterNames.Data]={toHost:function(e){if(null!=e&&void 0!==e.rows){var t={};t[d.TableDataProperties.TableRows]=e.rows,t[d.TableDataProperties.TableHeaders]=e.headers,e=t}return e},fromHost:function(e){return e}},u.dynamicTypes.sampleData=u.dynamicTypes.data;var p={};function r(e,t){var n,r;if(t.map)for(var i in r={},n=t.map){var o=n[i];o==u.self&&(o=i),r[o]=i}else n=t.toHost,r=t.fromHost;var a=p[e];if(a){var s=a[h];for(var c in s)n[c]=s[c];for(var l in s=a[g])r[l]=s[l]}else a=p[e]={};a[h]=n,a[g]=r}function i(e){f().addComplexType(e)}function l(e,t){var n=e?{}:void 0;for(var r in e){var i,o=e[r];if(d.ListType.isListType(r))for(var a in i=[],o)i.push(l(o[a],t));else if(d.OUtil.listContainsKey(u.dynamicTypes,r))i=u.dynamicTypes[r][t](o);else if(t==g&&f().preserveNesting(r))i=l(o,t);else{var s=p[r];if(s){var c=s[t];c&&void 0===(i=c[o])&&(i=o)}else i=o}n[r]=i}return n}function n(e,t,n){var r,i=p[e][n];if("toHost"==n)r=function e(t,n){var r;for(var i in n){var o;if(null!=(o=f().isComplexType(i)?e(t,p[i][h]):t[i])){r=r||{};var a=n[i];a==u.self&&(a=i),r[a]=f().pack(i,o)}}return r}(l(t,n),i);else if("fromHost"==n){r=l(function e(t,n,r){for(var i in r=r||{},n){var o,a,s=n[i];if(s==u.self)o=t;else{if("sourceData"==s){r[i]=t.toArray();continue}o=t[s]}if(null==o)r[i]=void 0;else if(o=f().unpack(i,o),f().isComplexType(i))a=p[i][g],f().preserveNesting(i)?r[i]=e(o,a):e(o,a,r);else if(d.ListType.isListType(i)){(a={})[d.ListType.getDescriptor(i)]=u.self;var c=new Array(o.length);for(var l in o)c[l]=e(o[l],a);r[i]=c}else r[i]=o}return r}(t,i),n)}return r}function f(){if(!t){var e=d._OfficeAppFactory.getHostInfo();t=e.hostPlatform==d.HostInfoPlatform.web?new d.WebSpecialProcessor:new d.SafeArraySpecialProcessor}return t}function o(e){var t=null;if(e){t={};for(var n=e.length,r=0;r<n;r++)t[e[r].name]=e[r].value}return t}u.define=function(e){var t={},n=o(e.toHost);e.invertible?t.map=n:e.canonical?t.toHost=t.fromHost=n:(t.toHost=n,t.fromHost=o(e.fromHost)),r(e.type,t),e.isComplexType&&i(e.type)},u.toHost=function(e,t){return n(e,t,h)},u.fromHost=function(e,t){return n(e,t,g)},u.addMapping=r,u.addComplexType=i,u.getDynamicType=function(e){return f().getDynamicType(e)},u.setDynamicType=function(e,t){f().setDynamicType(e,t)},u.doMapValues=function(e,t){return l(e,t)}}(d.HostParameterMap||(d.HostParameterMap={}))}(OSF=OSF||{}),function(t){var e,n;e=t.ListType||(t.ListType={}),n={},e.setListType=function(e,t){n[e]=t},e.isListType=function(e){return t.OUtil.listContainsKey(n,e)},e.getDescriptor=function(e){return n[e]}}(OSF=OSF||{}),function(e){var t=(Object.defineProperty(n.prototype,"type",{get:function(){return e.EventType.LiveShareStateChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"liveShareState",{get:function(){return this.m_liveShareStateInstance},enumerable:!0,configurable:!0}),n);function n(e){this.m_liveShareStateInstance=e}e.LiveShareStateChangedEventArgs=t}(OSF=OSF||{}),function(e){var t;(t=e.EventType||(e.EventType={})).ActiveViewChanged="activeViewChanged",t.DialogMessageReceived="dialogMessageReceived",t.DialogParentMessageReceived="dialogParentMessageReceived",t.DialogParentEventReceived="dialogParentEventReceived",t.DialogEventReceived="dialogEventReceived",t.BindingDataChanged="bindingDataChanged",t.BindingSelectionChanged="bindingSelectionChanged",t.OfficeThemeChanged="officeThemeChanged",t.DocumentThemeChanged="documentThemeChanged",t.DataNodeDeleted="nodeDeleted",t.DataNodeInserted="nodeInserted",t.DataNodeReplaced="nodeReplaced",t.DocumentSelectionChanged="documentSelectionChanged",t.LiveShareStateChanged="liveShareStateChanged",t.NodeDeleted="nodeDeleted",t.NodeInserted="nodeInserted",t.NodeReplaced="nodeReplaced",t.SettingsChanged="settingsChanged"}(Office=Office||{}),function(e){var t;(t=e.TableDataProperties||(e.TableDataProperties={})).TableRows="TableRows",t.TableHeaders="TableHeaders"}(OSF=OSF||{}),function(d){!function(e){var t,n,r,i,o,a,s;function c(){try{var e=window.navigator.userAgent;return-1<e.indexOf("MSIE ")||-1<e.indexOf("Trident/")||-1<e.indexOf("Edge/")}catch(e){return f("Error happens in isInternetExplorer.",e),!1}}function l(e){if("undefined"!=typeof JSON)try{return JSON.stringify(e)}catch(e){}return""}(t=e.HostThemeButtonStyleKeys||(e.HostThemeButtonStyleKeys={})).ButtonBorderColor="buttonBorderColor",t.ButtonBackgroundColor="buttonBackgroundColor",(r=n=n||{}).HostButtonBorderColor="#86bfa0",r.HostButtonBackgroundColor="#d3f0e0",(o=i=i||{}).HostButtonBorderColor="#a3bde3",o.HostButtonBackgroundColor="#d5e1f2",(s=a=a||{}).HostButtonBorderColor="#f5ba9d",s.HostButtonBackgroundColor="#fcf0ed",e.finalizeProperties=function(e,t){t=t||{};for(var n=Object.getOwnPropertyNames(e),r=n.length,i=0;i<r;i++){var o=n[i],a=Object.getOwnPropertyDescriptor(e,o);a.get||a.set||(a.writable=t.writable||!1),a.configurable=t.configurable||!1,a.enumerable=t.enumerable||!0,Object.defineProperty(e,o,a)}return e},e.defineEnumerableProperties=function(e,t){return function(e,t,n){for(var r in t=t||{})p(e,r,t[r],n);return e}(e,t,["enumerable"])},e.defineEnumerableProperty=function(e,t,n){return p(e,t,n,["enumerable"])},e.listContainsKey=function(e,t){for(var n in e)if(t==n)return!0;return!1},e.augmentList=function(n,e){var t=n.push?function(e,t){n.push(t)}:function(e,t){n[e]=t};for(var r in e)t(r,e[r])},e.createObject=function(e){var t=null;if(e){t={};for(var n=e.length,r=0;r<n;r++)t[e[r].name]=e[r].value}return t},e.listContainsValue=function(e,t){for(var n in e)if(t==e[n])return!0;return!1},e.shouldUseLocalStorageToPassMessage=function(){try{for(var e=["Windows NT 6.1","Windows NT 6.2","Windows NT 6.3","Windows NT 10.0"],t=window.navigator.userAgent,n=0,r=e.length;n<r;n++)if(-1<t.indexOf(e[n]))return c();return!1}catch(e){return f("Error happens in shouldUseLocalStorageToPassMessage.",e),!1}},e.isInternetExplorer=c,e.serializeObjectToString=l,e.formatString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e;return r[0].replace(/{(\d+)}/gm,function(e,t){var n=parseInt(t,10)+1;return void 0===r[n]?"{"+t+"}":r[n]})},e.addHostInfoAsQueryParam=function(e,t){if(!e)return null;var n,r="#",i=(e=e.trim()||"").split(r),o=i.shift(),a=i.join(r),s=o.split("?");return 1<s.length?n=o+"&_host_Info="+t:0<s.length&&(n=o+"?_host_Info="+t),a?[n,r,a].join(""):n},e.getHostnamePortionForLogging=function(e){var t=e.split("."),n=t.length;return 2<=n?t[n-2]+"."+t[n-1]:1==n?t[0]:void 0},e.shallowCopy=function(e){if(null==e)return null;if(e instanceof Object){if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}var r=e.constructor();for(var i in e)e.hasOwnProperty(i)&&(r[i]=e[i]);return r}return e},e.getXdmEventName=function(e,t){return t==d.EventType.BindingSelectionChanged||t==d.EventType.BindingDataChanged||t==d.EventType.DataNodeDeleted||t==d.EventType.DataNodeInserted||t==d.EventType.DataNodeReplaced?e+"_"+t:t},e.getCommonUI=function(){switch(Office.context.host){case Office.HostType.Excel:return n;case Office.HostType.Word:return i;case Office.HostType.PowerPoint:return a}return null},e.getDomainForUrl=function(e){if(!e)return null;var t=document.createElement("a");return t.href=e,t.protocol+"//"+t.host};var u=-1;function p(e,t,n,r){for(var i in n=n||{},r){var o=r[i];null==n[o]&&(n[o]=!0)}return Object.defineProperty(e,t,n),e}function f(e,t){d.Utility.trace(e+" Exception details: "+l(t))}e.getUniqueId=function(){return(u+=1).toString()}}(d.OUtil||(d.OUtil={}))}(OSF=OSF||{}),function(e){var t;(t=e.ParameterNames||(e.ParameterNames={})).BindingType="bindingType",t.CoercionType="coercionType",t.ValueFormat="valueFormat",t.FilterType="filterType",t.Columns="columns",t.SampleData="sampleData",t.GoToType="goToType",t.SelectionMode="selectionMode",t.Id="id",t.PromptText="promptText",t.ItemName="itemName",t.FailOnCollision="failOnCollision",t.StartRow="startRow",t.StartColumn="startColumn",t.RowCount="rowCount",t.ColumnCount="columnCount",t.Rows="rows",t.OverwriteIfStale="overwriteIfStale",t.FileType="fileType",t.EventType="eventType",t.Handler="handler",t.SliceSize="sliceSize",t.SliceIndex="sliceIndex",t.ActiveView="activeView",t.Status="status",t.PlatformType="platformType",t.HostType="hostType",t.Email="email",t.OfficeTheme="officeTheme",t.DocumentTheme="documentTheme",t.ForceConsent="forceConsent",t.ForceAddAccount="forceAddAccount",t.AuthChallenge="authChallenge",t.AllowConsentPrompt="allowConsentPrompt",t.ForMSGraphAccess="forMSGraphAccess",t.AllowSignInPrompt="allowSignInPrompt",t.JsonPayload="jsonPayload",t.EnableNewHosts="enableNewHosts",t.AccountTypeFilter="accountTypeFilter",t.AddinTrustId="addinTrustId",t.Reserved="reserved",t.Tcid="tcid",t.Xml="xml",t.Namespace="namespace",t.Prefix="prefix",t.XPath="xPath",t.Text="text",t.ImageLeft="imageLeft",t.ImageTop="imageTop",t.ImageWidth="imageWidth",t.ImageHeight="imageHeight",t.TaskId="taskId",t.FieldId="fieldId",t.FieldValue="fieldValue",t.ServerUrl="serverUrl",t.ListName="listName",t.ResourceId="resourceId",t.ViewType="viewType",t.ViewName="viewName",t.GetRawValue="getRawValue",t.CellFormat="cellFormat",t.TableOptions="tableOptions",t.TaskIndex="taskIndex",t.ResourceIndex="resourceIndex",t.CustomFieldId="customFieldId",t.Url="url",t.MessageHandler="messageHandler",t.Width="width",t.Height="height",t.RequireHTTPs="requireHTTPS",t.DisplayInIframe="displayInIframe",t.HideTitle="hideTitle",t.UseDeviceIndependentPixels="useDeviceIndependentPixels",t.PromptBeforeOpen="promptBeforeOpen",t.EnforceAppDomain="enforceAppDomain",t.UrlNoHostInfo="urlNoHostInfo",t.Base64="base64",t.FormId="formId"}(OSF=OSF||{}),function(s){var e;function r(n,r){var i=(new Date).getTime();return function(e){r.onReceiving&&r.onReceiving();var t=e.toArray?e.toArray()[0]:e;return r.onComplete&&r.onComplete(t),s.AppTelemetry&&s.AppTelemetry.onRegisterDone(n,r.dispId,Math.abs((new Date).getTime()-i),t),!0}}function c(e){var t=e;if(null!=e&&e.toArray){var n=e.toArray();t=new Array(n.length);for(var r=0;r<n.length;r++)t[r]=c(n[r])}return t}(e=s.SafeArrayDelegate||(s.SafeArrayDelegate={})).executeAsync=function(a){try{a.onCalling&&a.onCalling(),s._OfficeAppFactory.getClientHostController().execute(a.dispId,function e(t){var n=t;if(s.OUtil.isArray(t))for(var r=n.length,i=0;i<r;i++)n[i]=e(n[i]);else if(s.OUtil.isDate(t))n=t.getVarDate();else if("object"==typeof t&&!s.OUtil.isArray(t))for(var o in n=[],t)s.OUtil.isFunction(t[o])||(n[o]=e(t[o]));return n}(a.hostCallArgs),function(e){var t,n;if(1==(n="number"==typeof e?(t=[],e):(t=e.toArray())[0]))return null!=(r=c(r=t[1]))&&(a._chunkResultData||(a._chunkResultData=new Array),a._chunkResultData[r[0]]=r[1]),!1;if(a.onReceiving&&a.onReceiving(),a.onComplete){var r;if(0==n){if(2<t.length){r=[];for(var i=1;i<t.length;i++)r[i-1]=t[i]}else r=t[1];if(a._chunkResultData&&null!=(r=c(r))){var o=r[r.length-1];a._chunkResultData.length==o?r[r.length-1]=a._chunkResultData:n=5001}}else r=t[1];a.onComplete(n,r)}return!0})}catch(e){s.SafeArrayDelegate.onException(e,a)}},e.registerEventAsync=function(n){n.onCalling&&n.onCalling();var e=r(!0,n);try{s._OfficeAppFactory.getClientHostController().registerEvent(n.dispId,void 0,n.targetId,function(e,t){n.onEvent&&n.onEvent(t),s.AppTelemetry&&s.AppTelemetry.onEventDone(n.dispId)},e)}catch(e){s.SafeArrayDelegate.onException(e,n)}},e.unregisterEventAsync=function(t){t.onCalling&&t.onCalling();var e=r(!1,t);try{s._OfficeAppFactory.getClientHostController().unregisterEvent(t.dispId,void 0,t.targetId,e)}catch(e){s.SafeArrayDelegate.onException(e,t)}},e.onException=function(e,t){var n,r=e.number;if(r)switch(r){case-2146828218:n=7e3;break;case-2147467259:n=t.dispId==s.EventDispId.dispidDialogMessageReceivedEvent?12007:5001;break;case-2146828283:case-2147209089:n=5010;break;case-2147208704:n=5100;break;case-2146827850:default:n=5001}t.onComplete&&t.onComplete(n||5001)},e.onExceptionSyncMethod=function(e,t){var n,r=e.number;if(r)switch(r){case-2146828218:n=7e3;break;case-2146827850:default:n=5001}return n||5001},e.getOnAfterRegisterEvent=r}(OSF=OSF||{}),function(e){var t=(Object.defineProperty(n.prototype,"type",{get:function(){return e.EventType.SettingsChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"settings",{get:function(){return this.m_settingsInstance},enumerable:!0,configurable:!0}),n);function n(e){this.m_settingsInstance=e}e.SettingsChangedEventArgs=t}(OSF=OSF||{}),function(t){var e=(n.prototype.addComplexType=function(e){this._complexTypes.push(e)},n.prototype.getDynamicType=function(e){return this.dynamicTypes[e]},n.prototype.setDynamicType=function(e,t){this.dynamicTypes[e]=t},n.prototype.isComplexType=function(e){return t.OUtil.listContainsValue(this._complexTypes,e)},n.prototype.isDynamicType=function(e){return t.OUtil.listContainsKey(this.dynamicTypes,e)},n.prototype.preserveNesting=function(e){return!1},n.prototype.pack=function(e,t){return this.isDynamicType(e)?this.dynamicTypes[e].toHost(t):t},n.prototype.unpack=function(e,t){return this.isDynamicType(e)?this.dynamicTypes[e].fromHost(t):t},n);function n(e,t){this._complexTypes=e,this.dynamicTypes=t}t.SpecialProcessor=e}(OSF=OSF||{});__extends=this&&this.__extends||function(){var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}();!function(r){var t,e=(t=r.SpecialProcessor,__extends(n,t),n.prototype.unpack=function(e,t){return this.isComplexType(e)||r.ListType.isListType(e)?void 0!==t&&void 0!==t.toArray?t.toArray():t||{}:this.isDynamicType(e)?this.dynamicTypes[e].fromHost(t):t},n);function n(){var e={};return e[r.ParameterNames.Data]={toHost:function(e){if(r.TableDataProperties&&"string"!=typeof e&&void 0!==e[r.TableDataProperties.TableRows]){var t=[];t[0]=e[r.TableDataProperties.TableRows],t[1]=e[r.TableDataProperties.TableHeaders],e=t}return e},fromHost:function(e){var t;if(e.toArray)if(2===e.dimensions())t=r.Utility.twoDVBArrayToJaggedArray(e);else{var n=e.toArray();2===n.length&&(null!=n[0]&&n[0].toArray||null!=n[1]&&n[1].toArray)?((t={})[r.TableDataProperties.TableRows]=r.Utility.twoDVBArrayToJaggedArray(n[0]),t[r.TableDataProperties.TableHeaders]=r.Utility.twoDVBArrayToJaggedArray(n[1])):t=n}else t=e;return t}},t.call(this,[],e)||this}r.SafeArraySpecialProcessor=e}(OSF=OSF||{}),function(s){var e=(t.prototype.verifyAndExtractCall=function(e,t,n){var r=this._apiMethods.extractRequiredArguments(e,t,n),i=this.extractOptions(e,r,t,n);return this._apiMethods.constructCallArgs(r,i,t,n)},t.prototype.extractOptions=function(e,t,n,r){if(e.length>this._requiredCount+1)throw s.Utility.createParameterException(s.ErrorNames.TooManyArguments);for(var i,o=e.length-1;o>=this._requiredCount;o--){var a=e[o];switch(typeof a){case"object":if(i)throw s.Utility.createParameterException(s.ErrorNames.TooManyArguments);i=a;break;default:throw s.Utility.createArgumentException(s.ErrorNames.InvalidOptionalArgument)}}return i=this._apiMethods.fillOptions(i,t,n,r),this._apiMethods.verifyArguments(this._supportedOptions,i),i},t);function t(e,t,n,r,i){this._requiredCount=e.length,this._apiMethods=new s.ApiMethodCall(e,t,n,r,i),this._supportedOptions=t}s.SyncMethodCall=e}(OSF=OSF||{}),function(r){var e,i;e=r.SyncMethodCalls||(r.SyncMethodCalls={}),i={},e.define=function(e){var t,n;i[e.method]=(n=(t=e).supportedOptions?r.OUtil.createObject(t.supportedOptions):[],new r.SyncMethodCall(t.requiredArguments||[],n,t.privateStateCallbacks,t.checkCallArgs,t.method.displayName))},e.get=function(e){return i[e]}}(OSF=OSF||{}),(OSF||(OSF={})).SyncMethods={MessageParent:"messageParent",MessageChild:"messageChild",SendMessage:"sendMessage",AddMessageHandler:"addEventHandler"},function(l){var e;(function(e){var t,n,r,i;function o(e){for(var t=[{name:l.DDA.Theming.DocumentThemeEnum.PrimaryFontColor,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.PrimaryBackgroundColor,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.SecondaryFontColor,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.SecondaryBackgroundColor,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.Accent1,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.Accent2,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.Accent3,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.Accent4,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.Accent5,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.Accent6,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.Hyperlink,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.FollowedHyperlink,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.HeaderLatinFont,needToConvertToHex:!1},{name:l.DDA.Theming.DocumentThemeEnum.HeaderEastAsianFont,needToConvertToHex:!1},{name:l.DDA.Theming.DocumentThemeEnum.HeaderScriptFont,needToConvertToHex:!1},{name:l.DDA.Theming.DocumentThemeEnum.HeaderLocalizedFont,needToConvertToHex:!1},{name:l.DDA.Theming.DocumentThemeEnum.BodyLatinFont,needToConvertToHex:!1},{name:l.DDA.Theming.DocumentThemeEnum.BodyEastAsianFont,needToConvertToHex:!1},{name:l.DDA.Theming.DocumentThemeEnum.BodyScriptFont,needToConvertToHex:!1},{name:l.DDA.Theming.DocumentThemeEnum.BodyLocalizedFont,needToConvertToHex:!1}],n={},r=0;r<t.length;r++)t[r].needToConvertToHex?n[t[r].name]=l.OUtil.convertIntToCssHexColor(e[t[r].name]):n[t[r].name]=e[t[r].name];return n}function a(e){var t={};if(e){var n=l.DDA.Theming.OfficeThemeEnum,r={bodyBackgroundColor:{name:n.BodyBackgroundColor,convertToHex:!0},bodyForegroundColor:{name:n.BodyForegroundColor,convertToHex:!0},controlBackgroundColor:{name:n.ControlBackgroundColor,convertToHex:!0},controlForegroundColor:{name:n.ControlForegroundColor,convertToHex:!0},primaryFontColor:{name:n.BodyForegroundColor,convertToHex:!0},primaryBackgroundColor:{name:n.BodyBackgroundColor,convertToHex:!0},secondaryFontColor:{name:n.ControlForegroundColor,convertToHex:!0},secondaryBackgroundColor:{name:n.ControlBackgroundColor,convertToHex:!0},fluentThemeData:{name:n.FluentThemeData,convertToHex:!1}};for(var i in e){var o=!1,a=i;r[i]&&(a=r[i].name,o=r[i].convertToHex),t[a]=o?l.OUtil.convertIntToCssHexColor(e[i]):e[i]}null==t[n.IsDarkTheme]&&(t[n.IsDarkTheme]=l.DDA.Theming.GetIsDarkThemeFromCSSHexColor(t[n.BodyBackgroundColor])),null==t[n.ThemeId]&&(t[n.ThemeId]=t[n.IsDarkTheme]?l.DDA.Theming.ThemeId.Black:l.DDA.Theming.ThemeId.White)}return t}(t=e.DocumentThemeEnum||(e.DocumentThemeEnum={})).PrimaryFontColor="primaryFontColor",t.PrimaryBackgroundColor="primaryBackgroundColor",t.SecondaryFontColor="secondaryFontColor",t.SecondaryBackgroundColor="secondaryBackgroundColor",t.Accent1="accent1",t.Accent2="accent2",t.Accent3="accent3",t.Accent4="accent4",t.Accent5="accent5",t.Accent6="accent6",t.Hyperlink="hyperlink",t.FollowedHyperlink="followedHyperlink",t.HeaderLatinFont="headerLatinFont",t.HeaderEastAsianFont="headerEastAsianFont",t.HeaderScriptFont="headerScriptFont",t.HeaderLocalizedFont="headerLocalizedFont",t.BodyLatinFont="bodyLatinFont",t.BodyEastAsianFont="bodyEastAsianFont",t.BodyScriptFont="bodyScriptFont",t.BodyLocalizedFont="bodyLocalizedFont",(n=e.OfficeThemeEnum||(e.OfficeThemeEnum={})).BodyBackgroundColor="bodyBackgroundColor",n.BodyForegroundColor="bodyForegroundColor",n.ControlBackgroundColor="controlBackgroundColor",n.ControlForegroundColor="controlForegroundColor",n.IsDarkTheme="isDarkTheme",n.ThemeId="themeId",n.FluentThemeData="fluentThemeData",(r=e.OfficeThemeEnumWac||(e.OfficeThemeEnumWac={})).PrimaryFontColor="primaryFontColor",r.PrimaryBackgroundColor="primaryBackgroundColor",r.SecondaryFontColor="secondaryFontColor",r.SecondaryBackgroundColor="secondaryBackgroundColor",r.IsDarkTheme="isDarkTheme",r.ThemeId="themeId",(i=e.ThemeId||(e.ThemeId={}))[i.Colorful=0]="Colorful",i[i.DarkGray=1]="DarkGray",i[i.Black=2]="Black",i[i.White=3]="White",e.ConvertToDocumentTheme=o,e.GetIsDarkThemeFromCSSHexColor=function(e){var t="#"===e.charAt(0)?e.substring(1,7):e;return.299*parseInt(t.substring(0,2),16)+.587*parseInt(t.substring(2,4),16)+.114*parseInt(t.substring(4,6),16)<186},e.ConvertToOfficeTheme=a;function s(e){var t=null,n=l._OfficeAppFactory.getHostInfo();t=n.hostPlatform==l.HostInfoPlatform.web?e:a(e);var r=l.DDA.Theming.OfficeThemeEnum;void 0===t[r.IsDarkTheme]&&(t.isDarkTheme=l.DDA.Theming.GetIsDarkThemeFromCSSHexColor(e[r.BodyBackgroundColor])),void 0===t[r.ThemeId]&&(t.themeId=t.isDarkTheme?l.DDA.Theming.ThemeId.Black:l.DDA.Theming.ThemeId.White),n.hostPlatform!=l.HostInfoPlatform.web&&"mac"!=n.hostPlatform.toLowerCase()&&"ios"!=n.hostPlatform.toLowerCase()||Office.context&&Office.context.officeTheme&&(Office.context.officeTheme.bodyBackgroundColor=t.bodyBackgroundColor,Office.context.officeTheme.bodyForegroundColor=t.bodyForegroundColor,Office.context.officeTheme.controlBackgroundColor=t.controlBackgroundColor,Office.context.officeTheme.controlForegroundColor=t.controlForegroundColor,Office.context.officeTheme.isDarkTheme=t.isDarkTheme,Office.context.officeTheme.themeId=t.themeId),l.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.OfficeThemeChanged},officeTheme:{value:t}})}e.OfficeThemeChangedEventArgs=s;function c(e){var t=o(e);l.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DocumentThemeChanged},documentTheme:{value:t}})}e.DocumentThemeChangedEventArgs=c})((e=l.DDA||(l.DDA={})).Theming||(e.Theming={}))}(OSF=OSF||{}),function(t){var e,n;e=t.V10ApiFeatureRegistry||(t.V10ApiFeatureRegistry={}),n=[],e.initialize=function(){n.forEach(function(e){e.defineMethodsFunc(),t.OUtil.getHostPlatform()==t.HostInfoPlatform.web?"function"==typeof e.defineWebParameterMapFunc&&e.defineWebParameterMapFunc():"function"==typeof e.defineSafeArrayParameterMapFunc&&e.defineSafeArrayParameterMapFunc(),"function"==typeof e.initializeFunc&&e.initializeFunc()})},e.register=function(e){n.push(e)}}(OSF=OSF||{}),function(a){var e,t;function n(r,i){var o=(new Date).getTime();return function(e,t){var n;if(i.onReceiving&&i.onReceiving(),0!=e)switch(e){case-5:n=7e3;break;default:n=5001}else n=t?t.Error?t.Error:0:5001;i.onComplete&&i.onComplete(n),a.AppTelemetry&&a.AppTelemetry.onRegisterDone(r,i.dispId,Math.abs((new Date).getTime()-o),n)}}(e=a.WACDelegate||(a.WACDelegate={})).version=1,(t=e.UniqueArguments||(e.UniqueArguments={})).Data="Data",t.Properties="Properties",t.BindingRequest="DdaBindingsMethod",t.BindingResponse="Bindings",t.SingleBindingResponse="singleBindingResponse",t.GetData="DdaGetBindingData",t.AddRowsColumns="DdaAddRowsColumns",t.SetData="DdaSetBindingData",t.ClearFormats="DdaClearBindingFormats",t.SetFormats="DdaSetBindingFormats",t.SettingsRequest="DdaSettingsMethod",t.BindingEventSource="ddaBinding",t.ArrayData="ArrayData",e.executeAsync=function(r){r.hostCallArgs||(r.hostCallArgs={}),r.hostCallArgs.DdaMethod={ControlId:a._OfficeAppFactory.getId(),Version:a.WACDelegate.version,DispatchId:r.dispId},r.hostCallArgs.__timeout__=-1,r.onCalling&&r.onCalling(),a.getClientEndPoint()&&a.getClientEndPoint().invoke("executeMethod",function(e,t){var n;if(r.onReceiving&&r.onReceiving(),0==e)a.WACDelegate.version=t.Version,n=t.Error;else switch(e){case-5:n=7e3;break;default:n=5001}r.onComplete&&r.onComplete(n,t)},r.hostCallArgs)},e.getOnAfterRegisterEvent=n,e.registerEventAsync=function(t){t.onCalling&&t.onCalling(),a.getClientEndPoint()&&a.getClientEndPoint().registerForEvent(a.OUtil.getXdmEventName(t.targetId,t.eventType),function(e){t.onEvent&&t.onEvent(e),a.AppTelemetry&&a.AppTelemetry.onEventDone(t.dispId)},n(!0,t),{controlId:a._OfficeAppFactory.getId(),eventDispId:t.dispId,targetId:t.targetId})},e.unregisterEventAsync=function(e){e.onCalling&&e.onCalling(),a.getClientEndPoint()&&a.getClientEndPoint().unregisterForEvent(a.OUtil.getXdmEventName(e.targetId,e.eventType),n(!1,e),{controlId:a._OfficeAppFactory.getId(),eventDispId:e.dispId,targetId:e.targetId})}}(OSF=OSF||{}),function(t){var n,e=(n=t.SpecialProcessor,__extends(r,n),r);function r(){var e=[t.WACDelegate.UniqueArguments.SingleBindingResponse,t.WACDelegate.UniqueArguments.BindingRequest,t.WACDelegate.UniqueArguments.BindingResponse,t.WACDelegate.UniqueArguments.GetData,t.WACDelegate.UniqueArguments.AddRowsColumns,t.WACDelegate.UniqueArguments.SetData,t.WACDelegate.UniqueArguments.ClearFormats,t.WACDelegate.UniqueArguments.SetFormats,t.WACDelegate.UniqueArguments.SettingsRequest,t.WACDelegate.UniqueArguments.BindingEventSource];return n.call(this,e,{})||this}t.WebSpecialProcessor=e}(OSF=OSF||{}),function(e){(e.EventDescriptors||(e.EventDescriptors={})).ActiveViewChangedEvent="ActiveViewChangedEvent",e.ActiveView||(e.ActiveView={}),e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){},defineSafeArrayParameterMapFunc:function(){e.HostParameterMap.define({type:e.ParameterNames.ActiveView,fromHost:[{name:0,value:Office.ActiveView.Read},{name:1,value:Office.ActiveView.Edit}]}),e.HostParameterMap.define({type:e.EventDescriptors.ActiveViewChangedEvent,fromHost:[{name:e.ParameterNames.ActiveView,value:0}],isComplexType:!0}),e.HostParameterMap.define({type:e.EventDispId.dispidActiveViewChangedEvent,fromHost:[{name:e.EventDescriptors.ActiveViewChangedEvent,value:e.HostParameterMap.self}]})}})}(OSF=OSF||{}),function(r){var e;((e=r.context||(r.context={})).document||(e.document={})).getActiveViewAsync=function(e,t){"function"==typeof e&&(t=e);var n={toSafeArrayHost:function(){return[]},fromSafeArrayHost:function(e){return 0==e?r.ActiveView.Read:1==e?r.ActiveView.Edit:void 0},toWebHost:function(){return[]},fromWebHost:function(e){return 0==e?r.ActiveView.Read:1==e?r.ActiveView.Edit:void 0}};OSF._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(83,n,t,null!=e?e.asyncContext:void 0)}}(Office=Office||{}),function(i){var e;function r(e){if(null==e||null==e)return null;var t=null,n=typeof e;return void 0!==e.rows?t=Office.CoercionType.Table:i.OUtil.isArray(e)?t=Office.CoercionType.Matrix:"string"!=n&&"number"!=n&&"boolean"!=n&&!i.OUtil.isDate(e)||(t=Office.CoercionType.Text),t}function o(e,t,n){return(n=n||r(e))&&n!=t&&(e=function(e,t){var n;switch(e){case Office.CoercionType.Table:n=t;break;case Office.CoercionType.Matrix:n=function(e){var t=e.rows;null!=e.headers&&t.unshift(e.headers);return t}(t);break;case Office.CoercionType.SlideRange:i.manufactureSlideRange&&null==(n=i.manufactureSlideRange(s(t)))&&(n=s(t));break;case Office.CoercionType.Text:case Office.CoercionType.Html:case Office.CoercionType.Ooxml:default:n=s(t)}return n}(t,function(e,t){null==t&&(t=r(e));var n;switch(t){case Office.CoercionType.Table:n=e;break;case Office.CoercionType.Matrix:n=new Office.TableData(e);break;case Office.CoercionType.Text:case Office.CoercionType.Html:case Office.CoercionType.Ooxml:default:n=new Office.TableData(function(e){for(var t=e.split("\n"),n=0;n<t.length;n++)t[n]=t[n].split("\t");return t}(e))}return n}(e,n))),e}function a(e){if(1==e.length&&1==e[0].length)return""+e[0][0];for(var t="",n=0;n<e.length;n++)t+=e[n].join("\t")+"\n";return t.substring(0,t.length-1)}function s(e){var t="";null!=e.headers&&(t=a([e.headers])+"\n");var n=a(e.rows);return""==n&&(t=t.substring(0,t.length-1)),t+n}e=i.DataCoercion||(i.DataCoercion={}),i.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){},defineSafeArrayParameterMapFunc:function(){i.HostParameterMap.define({type:i.ParameterNames.CoercionType,toHost:[{name:Office.CoercionType.Text,value:0},{name:Office.CoercionType.Matrix,value:1},{name:Office.CoercionType.Table,value:2},{name:Office.CoercionType.Html,value:3},{name:Office.CoercionType.Ooxml,value:4},{name:Office.CoercionType.OoxmlPackage,value:5},{name:Office.CoercionType.PdfFile,value:6},{name:Office.CoercionType.SlideRange,value:7}]});var e=i._OfficeAppFactory.getHostInfo();e.hostPlatform!=i.HostInfoPlatform.win32&&e.hostPlatform!=i.HostInfoPlatform.mac&&e.hostPlatform!=i.HostInfoPlatform.ios&&e.hostPlatform!=i.HostInfoPlatform.android||(i.OUtil.augmentList(Office.CoercionType,{Image:"image"}),i.OUtil.augmentList(Office.CoercionType,{XmlSvg:"xmlSvg"}),i.HostParameterMap.define({type:i.ParameterNames.CoercionType,toHost:[{name:"image",value:8},{name:"xmlSvg",value:9}]}));i.HostParameterMap.define({type:i.ParameterNames.ValueFormat,toHost:[{name:Office.ValueFormat.Unformatted,value:0},{name:Office.ValueFormat.Formatted,value:1}]}),i.HostParameterMap.define({type:i.ParameterNames.FilterType,toHost:[{name:Office.FilterType.All,value:0}]})},defineWebParameterMapFunc:function(){i.OUtil.augmentList(Office.CoercionType,{Image:"image"}),i.OUtil.augmentList(Office.CoercionType,{XmlSvg:"xmlSvg"}),i.HostParameterMap.define({type:i.ParameterNames.CoercionType,toHost:[{name:Office.CoercionType.Text,value:0},{name:Office.CoercionType.Matrix,value:1},{name:Office.CoercionType.Table,value:2},{name:Office.CoercionType.Html,value:3},{name:Office.CoercionType.Ooxml,value:4},{name:Office.CoercionType.OoxmlPackage,value:5},{name:Office.CoercionType.PdfFile,value:6},{name:Office.CoercionType.SlideRange,value:7},{name:"image",value:8},{name:"xmlSvg",value:9}]}),i.HostParameterMap.define({type:i.ParameterNames.ValueFormat,toHost:[{name:Office.ValueFormat.Unformatted,value:0},{name:Office.ValueFormat.Formatted,value:1}]}),i.HostParameterMap.define({type:i.ParameterNames.FilterType,toHost:[{name:Office.FilterType.All,value:0}]})}}),e.findArrayDimensionality=function e(t){if(i.OUtil.isArray(t)){for(var n=0,r=0;r<t.length;r++)n=Math.max(n,e(t[r]));return n+1}return 0},e.getCoercionDefaultForBinding=function(e){switch(e){case Office.BindingType.Matrix:return Office.CoercionType.Matrix;case Office.BindingType.Table:return Office.CoercionType.Table;case Office.BindingType.Text:default:return Office.CoercionType.Text}},e.getBindingDefaultForCoercion=function(e){switch(e){case Office.CoercionType.Matrix:return Office.BindingType.Matrix;case Office.CoercionType.Table:return Office.BindingType.Table;case Office.CoercionType.Text:case Office.CoercionType.Html:case Office.CoercionType.Ooxml:default:return Office.BindingType.Text}},e.determineCoercionType=r,e.coerceData=o,e.serializeDynamicData=function(e){if(null!=e&&void 0!==e.rows){var t={};t[i.TableDataProperties.TableRows]=e.rows,t[i.TableDataProperties.TableHeaders]=e.headers,e=t}var n;if(i._OfficeAppFactory.getHostInfo().hostPlatform==i.HostInfoPlatform.web)return"string"!=typeof e&&void 0!==e[i.TableDataProperties.TableRows]?((n={}).Rows=e[i.TableDataProperties.TableRows],n.Headers=e[i.TableDataProperties.TableHeaders],e=n):i.DataCoercion.determineCoercionType(e)==Office.CoercionType.Text&&(e=[[e]]),e;if(i.TableDataProperties&&"string"!=typeof e&&void 0!==e[i.TableDataProperties.TableRows]){(n=[])[0]=e[i.TableDataProperties.TableRows],n[1]=e[i.TableDataProperties.TableHeaders],e=n}return e},e.deserializeDynamicData=function(e,t){var n=null;if(i._OfficeAppFactory.getHostInfo().hostPlatform==i.HostInfoPlatform.web)null!=e.Rows?((n={})[i.TableDataProperties.TableRows]=e.Rows,n[i.TableDataProperties.TableHeaders]=e.Headers):n=e,!n||null==n[i.TableDataProperties.TableRows]&&null==n[i.TableDataProperties.TableHeaders]||(n=Office.manufactureTableData(n)),n=o(n,t);else{if(2===e.length){(n={})[i.TableDataProperties.TableRows]=e[0],n[i.TableDataProperties.TableHeaders]=e[1],n=Office.manufactureTableData(n)}else n=e;n=o(n,t)}return n}}(OSF=OSF||{}),function(e){var t,n,r,i,o;t=e.Marshaling||(e.Marshaling={}),(n=t.DialogMessageReceivedEventKeys||(t.DialogMessageReceivedEventKeys={})).MessageType="messageType",n.MessageContent="messageContent",n.MessageOrigin="messageOrigin",(r=t.DialogParentMessageReceivedEventKeys||(t.DialogParentMessageReceivedEventKeys={})).MessageType="messageType",r.MessageContent="messageContent",r.MessageOrigin="messageOrigin",(i=t.MessageParentKeys||(t.MessageParentKeys={})).MessageToParent="messageToParent",i.TargetOrigin="targetOrigin",(t.DialogNotificationShownEventType||(t.DialogNotificationShownEventType={})).DialogNotificationShown="dialogNotificationShown",(o=t.SendMessageKeys||(t.SendMessageKeys={})).MessageContent="messageContent",o.TargetOrigin="targetOrigin"}(OSF=OSF||{}),function(u){var e;(e=u.EventDescriptors||(u.EventDescriptors={})).DialogParentMessageReceivedEvent="DialogParentMessageReceivedEvent",e.DialogMessageReceivedEvent="DialogMessageReceivedEvent",u.DialogParentMessageEventDispatch=new u.EventDispatch([u.EventType.DialogParentMessageReceived,u.EventType.DialogParentEventReceived]),u.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){u.AsyncMethodCalls.define({method:u.AsyncMethods.DisplayDialogAsync,requiredArguments:[{name:u.ParameterNames.Url,types:["string"]}],supportedOptions:[{name:u.ParameterNames.Width,value:{types:["number"],defaultValue:99}},{name:u.ParameterNames.Height,value:{types:["number"],defaultValue:99}},{name:u.ParameterNames.RequireHTTPs,value:{types:["boolean"],defaultValue:!0}},{name:u.ParameterNames.DisplayInIframe,value:{types:["boolean"],defaultValue:!1}},{name:u.ParameterNames.HideTitle,value:{types:["boolean"],defaultValue:!1}},{name:u.ParameterNames.UseDeviceIndependentPixels,value:{types:["boolean"],defaultValue:!1}},{name:u.ParameterNames.PromptBeforeOpen,value:{types:["boolean"],defaultValue:!0}},{name:u.ParameterNames.EnforceAppDomain,value:{types:["boolean"],defaultValue:!0}},{name:u.ParameterNames.UrlNoHostInfo,value:{types:["boolean"],defaultValue:!1}}],privateStateCallbacks:[],onSucceeded:function(e,t,n){var r=e[u.ParameterNames.Id],i=e[u.ParameterNames.Data],o={},a=u.AsyncMethods.CloseAsync;u.OUtil.defineEnumerableProperty(o,a,{value:function(){(0,u.DispIdHost.CloseDialog)(arguments,r,i,o)}});var s=u.SyncMethods.AddMessageHandler;if(u.OUtil.defineEnumerableProperty(o,s,{value:function(){var e=u.SyncMethodCalls.get(u.SyncMethods.AddMessageHandler).verifyAndExtractCall(arguments,o,i),t=e[u.ParameterNames.EventType],n=e[u.ParameterNames.Handler];return i.addEventHandlerAndFireQueuedEvent(t,n)}}),!0===u.EnableSendMessageDialogAPI){var c=u.SyncMethods.SendMessage;u.OUtil.defineEnumerableProperty(o,c,{value:function(){return(0,u.DispIdHost.SendMessage)(arguments,i,o)}})}if(!0===u.EnableMessageChildDialogAPI){var l=u.SyncMethods.MessageChild;u.OUtil.defineEnumerableProperty(o,l,{value:function(){return(0,u.DispIdHost.SendMessage)(arguments,i,o)}})}return o},checkCallArgs:function(e,t,n){return e[u.ParameterNames.Width]<=0&&(e[u.ParameterNames.Width]=1),!e[u.ParameterNames.UseDeviceIndependentPixels]&&100<e[u.ParameterNames.Width]&&(e[u.ParameterNames.Width]=99),e[u.ParameterNames.Height]<=0&&(e[u.ParameterNames.Height]=1),!e[u.ParameterNames.UseDeviceIndependentPixels]&&100<e[u.ParameterNames.Height]&&(e[u.ParameterNames.Height]=99),e[u.ParameterNames.RequireHTTPs]||(e[u.ParameterNames.RequireHTTPs]=!0),e}}),u.AsyncMethodCalls.define({method:u.AsyncMethods.CloseAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[]}),u.SyncMethodCalls.define({method:u.SyncMethods.MessageParent,requiredArguments:[{name:u.ParameterNames.MessageToParent,types:["string","number","boolean"]}],supportedOptions:[{name:u.ParameterNames.TargetOrigin,value:{types:["string"],defaultValue:""}}]}),u.SyncMethodCalls.define({method:u.SyncMethods.AddMessageHandler,requiredArguments:[{name:u.ParameterNames.EventType,enum:u.EventType,verify:function(e,t,n){return n.supportsEvent(e)}},{name:u.ParameterNames.Handler,types:["function"]}],supportedOptions:[]}),u.SyncMethodCalls.define({method:u.SyncMethods.SendMessage,requiredArguments:[{name:u.ParameterNames.MessageContent,types:["string"]}],supportedOptions:[{name:u.ParameterNames.TargetOrigin,value:{types:["string"],defaultValue:""}}],privateStateCallbacks:[]})},defineSafeArrayParameterMapFunc:function(){u.HostParameterMap.define({type:u.EventDispId.dispidDialogMessageReceivedEvent,fromHost:[{name:u.EventDescriptors.DialogMessageReceivedEvent,value:u.HostParameterMap.self}],isComplexType:!0}),u.HostParameterMap.define({type:u.EventDescriptors.DialogMessageReceivedEvent,fromHost:[{name:u.PropertyDescriptors.MessageType,value:0},{name:u.PropertyDescriptors.MessageContent,value:1},{name:u.PropertyDescriptors.MessageOrigin,value:2}],isComplexType:!0}),u.HostParameterMap.define({type:u.EventDispId.dispidDialogParentMessageReceivedEvent,fromHost:[{name:u.EventDescriptors.DialogParentMessageReceivedEvent,value:u.HostParameterMap.self}],isComplexType:!0}),u.HostParameterMap.define({type:u.EventDescriptors.DialogParentMessageReceivedEvent,fromHost:[{name:u.PropertyDescriptors.MessageType,value:0},{name:u.PropertyDescriptors.MessageContent,value:1},{name:u.PropertyDescriptors.MessageOrigin,value:2}],isComplexType:!0})},defineWebParameterMapFunc:function(){u.HostParameterMap.define({type:u.EventDispId.dispidDialogMessageReceivedEvent,fromHost:[{name:u.EventDescriptors.DialogMessageReceivedEvent,value:u.HostParameterMap.self}]}),u.HostParameterMap.addComplexType(u.EventDescriptors.DialogMessageReceivedEvent),u.HostParameterMap.define({type:u.EventDescriptors.DialogMessageReceivedEvent,fromHost:[{name:u.PropertyDescriptors.MessageType,value:u.Marshaling.DialogMessageReceivedEventKeys.MessageType},{name:u.PropertyDescriptors.MessageContent,value:u.Marshaling.DialogMessageReceivedEventKeys.MessageContent},{name:u.PropertyDescriptors.MessageOrigin,value:u.Marshaling.DialogMessageReceivedEventKeys.MessageOrigin}]}),u.HostParameterMap.define({type:u.EventDispId.dispidDialogParentMessageReceivedEvent,fromHost:[{name:u.EventDescriptors.DialogParentMessageReceivedEvent,value:u.HostParameterMap.self}]}),u.HostParameterMap.addComplexType(u.EventDescriptors.DialogParentMessageReceivedEvent),u.HostParameterMap.define({type:u.EventDescriptors.DialogParentMessageReceivedEvent,fromHost:[{name:u.PropertyDescriptors.MessageType,value:u.Marshaling.DialogParentMessageReceivedEventKeys.MessageType},{name:u.PropertyDescriptors.MessageContent,value:u.Marshaling.DialogParentMessageReceivedEventKeys.MessageContent},{name:u.PropertyDescriptors.MessageOrigin,value:u.Marshaling.DialogMessageReceivedEventKeys.MessageOrigin}]}),u.HostParameterMap.define({type:144,toHost:[{name:u.ParameterNames.MessageToParent,value:u.Marshaling.MessageParentKeys.MessageToParent},{name:u.ParameterNames.TargetOrigin,value:u.Marshaling.MessageParentKeys.TargetOrigin}]}),u.HostParameterMap.define({type:145,toHost:[{name:u.ParameterNames.MessageContent,value:u.Marshaling.SendMessageKeys.MessageContent},{name:u.ParameterNames.TargetOrigin,value:u.Marshaling.MessageParentKeys.TargetOrigin}]})},initializeFunc:function(){var e=u.OUtil.isPopupWindow();u.EnableMessageChildDialogAPI=!0,"onenote"==u._OfficeAppFactory.getHostInfo().hostType?u.EnableSendMessageDialogAPI=!1:u.EnableSendMessageDialogAPI=!0;var t=Office.context.ui;if(u.OUtil.isDialog()){var n=u.SyncMethods.MessageParent;t[n]||u.OUtil.defineEnumerableProperty(t,n,{value:function(){return(0,u.DispIdHost.MessageParent)(arguments,t)}});var r=u.SyncMethods.AddMessageHandler;t[r]||void 0===u.DialogParentMessageEventDispatch||u.DispIdHost.addEventSupport(t,u.DialogParentMessageEventDispatch,e),e&&u.WacDialogAction.registerMessageReceivedEvent()}else{var i;i=null!=u.EventType.DialogParentMessageReceived?new u.EventDispatch([u.EventType.DialogMessageReceived,u.EventType.DialogEventReceived,u.EventType.DialogParentMessageReceived]):new u.EventDispatch([u.EventType.DialogMessageReceived,u.EventType.DialogEventReceived]);var o=u.AsyncMethods.DisplayDialogAsync;t[o]||u.OUtil.defineEnumerableProperty(t,o,{value:function(){(0,u.DispIdHost.OpenDialog)(arguments,i,t)}})}u.OUtil.finalizeProperties(t)}})}(OSF=OSF||{});var OfficeExt,Office,OSF,DialogApiManager=function(){function e(){}return e.messageChildRichApiBridge=function(){if(!0===OSF.EnableMessageChildDialogAPI)return(0,OSF.DispIdHost.SendMessage)(arguments,null,null)},e}();__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},__awaiter=this&&this.__awaiter||function(o,a,s,c){return new(s=s||Promise)(function(e,t){function n(e){try{i(c.next(e))}catch(e){t(e)}}function r(e){try{i(c.throw(e))}catch(e){t(e)}}function i(t){t.done?e(t.value):new s(function(e){e(t.value)}).then(n,r)}i((c=c.apply(o,a||[])).next())})},__generator=this&&this.__generator||function(n,r){var i,o,a,e,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return e={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,o&&(a=2&t[0]?o.return:t[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,t[1])).done)return a;switch(o=0,a&&(t=[2&t[0],a.value]),t[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,o=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=r.call(n,s)}catch(e){t=[6,e],o=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}};!function(g){var e,t,f,d,m,y,a,v,b,h,i,n,o,s,r,_,c,l,O,S;function u(e,t){var n=t.message,r=t.targetOrigin;if(r)e.postMessage(n,r);else{var i=window.location.origin;i=i||window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""),e.postMessage(n,i)}}function p(){try{y&&y.id==_&&v&&v(12009)}catch(e){g.AppTelemetry&&g.AppTelemetry.logAppException("Error happened during executing displayDialogAsync callback."+e)}R()}function C(o,a){return __awaiter(this,void 0,void 0,function(){var t,n,r,i;return __generator(this,function(e){switch(e.label){case 0:return[4,g.OUtil.ensureOfficeStringsJs()];case 1:return e.sent(),t=!1,n=g.WacCommonUICssManager.getDialogCssManager(a),m=x(n),document.body.insertBefore(m,document.body.firstChild),(y=function(e,t){var n=document.createElement("div");n.style.cssText=e.getDialogNotificationPanelCSS(),k(n);var r=document.createElement("div");r.style.cssText=e.getCrossZoneNotificationTextPanelCSS(),r.id=O;var i=document.createElement("a");i.id=l,i.href="#",i.innerText=Strings.OfficeOM.L_NewWindowCrossZoneConfigureBrowserLink,i.setAttribute("onclick","window.open('https://support.microsoft.com/en-us/help/17479/windows-internet-explorer-11-change-security-privacy-settings', '_blank', 'fullscreen=1')");var o=document.createElement("span");if(Strings.OfficeOM.L_NewWindowCrossZone){var a=Strings.OfficeOM.L_NewWindowCrossZone.replace(/{1+}/gm,g.OUtil.getDomainForUrl(t)).split("{0}");o.appendChild(document.createTextNode(a[0])),o.appendChild(i),o.appendChild(document.createTextNode(a[1]))}return r.appendChild(o),n.appendChild(r),n}(n,o)).id=c,r=F(n),i=T(n,Strings.OfficeOM.L_DialogOK?Strings.OfficeOM.L_DialogOK:"OK"),r.appendChild(i),y.appendChild(r),document.body.insertBefore(y,document.body.firstChild),b=!0,i.onclick=function(){R()},i.addEventListener("keydown",function(e){9==e.keyCode?(document.getElementById(l).focus(),e.preventDefault(),e.stopPropagation()):13==e.keyCode&&(t=!0,e.preventDefault(),e.stopPropagation())},!1),i.addEventListener("keyup",function(e){13==e.keyCode&&t&&(t=!1,R(),e.preventDefault(),e.stopPropagation())},!1),document.getElementById(l).addEventListener("keydown",function(e){9==e.keyCode&&(i.focus(),e.preventDefault(),e.stopPropagation())},!1),window.focus(),i.focus(),[2]}})})}function A(e){if(e.source==f)try{var t=e.origin;if(!function(e,t,n){if(void 0===n&&(n=!0),!e||!t)return!1;var r=g.OUtil.parseUrl(e),i=g.OUtil.parseUrl(t),o=g._OfficeAppFactory.getOfficeAppContext().get_appDomains();if(!("https:"===r.protocol))return!1;var a=r.protocol===i.protocol&&r.hostname===i.hostname&&r.port===i.port,s=g.XdmCommunicationManager.checkUrlWithAppDomains(o,e),c=a||s;return!c&&n&&(c=g.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(t,e)),c}(t,g._OfficeAppFactory.getOfficeAppContext().get_docUrl(),!0))throw new Error("Received a message from a dialog with an untrusted domain.");var n={};n[g.Marshaling.DialogMessageReceivedEventKeys.MessageType]=0,n[g.Marshaling.DialogMessageReceivedEventKeys.MessageContent]=e.data,n[g.Marshaling.DialogMessageReceivedEventKeys.MessageOrigin]=t,d(n)}catch(e){g.AppTelemetry&&g.AppTelemetry.logAppException("Error happened during receive message handler."+e)}}function P(e){var t=g._OfficeAppFactory.getId()+i;if(e.key==t)try{var n={};n[g.Marshaling.DialogMessageReceivedEventKeys.MessageType]=0,n[g.Marshaling.DialogMessageReceivedEventKeys.MessageContent]=e.newValue,n[g.Marshaling.DialogMessageReceivedEventKeys.MessageOrigin]=e.origin,d(n)}catch(e){g.AppTelemetry&&g.AppTelemetry.logAppException("Error happened during storage changed handler."+e)}}function E(e){var t=g._OfficeAppFactory.getHostInfo(),n=[t.hostType,t.hostPlatform,t.hostSpecificFileVersion,t.hostLocale,t.osfControlAppCorrelationId,"isDialog",t.disableLogging?"disableLogging":"",t.flags&g.HostInfoFlags.PublicAddin].join("$"),r=g._OfficeAppFactory.getOfficeAppContext();r.set_taskpaneUrl(window.location.origin),r.get_taskpaneUrl()||r.set_taskpaneUrl(window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""));var i=e.url;e[g.ShowWindowDialogParameterKeys.UrlNoHostInfo]||(i=g.OUtil.addHostInfoAsQueryParam(i,n));var o=JSON.parse(window.name);o.hostInfo=n;var a=__assign({},r);if(a._appName===g.AppName.ExcelWebApp){if(!a._settings&&a._settingsFunc){var s=a._settingsFunc();a._settings=Object.keys(s).map(function(e){return[e,s[e]]})}if(!a._hostSettings&&a._hostSettingsFunc){var c=a._hostSettingsFunc();a._hostSettings=Object.keys(c).map(function(e){return[e,c[e]]})}o.appContext=a}else o.appContext=r;var l=e[g.ShowWindowDialogParameterKeys.Width]*screen.width/100,u=e[g.ShowWindowDialogParameterKeys.Height]*screen.height/100,p="width="+l+", height="+u+", left="+(r.get_clientWindowWidth()/2-l/2)+", top="+(r.get_clientWindowHeight()/2-u/2)+",channelmode=no,directories=no,fullscreen=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,titlebar=yes,toolbar=no";if(null==(f=window.open(i,g.OUtil.serializeObjectToString(o),p)))return g.AppTelemetry.logAppCommonMessage("Encountered cross zone issue in displayDialogAsync api."),D(),C(i,t.hostType),void v(12011);g.OUtil.shouldUseLocalStorageToPassMessage()?window.addEventListener("storage",P):window.addEventListener("message",A),h=window.setInterval(function(){try{if(null==f||f.closed){window.clearInterval(h),g.OUtil.shouldUseLocalStorageToPassMessage()?window.removeEventListener("storage",P):window.removeEventListener("message",A);var e={};e[g.Marshaling.DialogMessageReceivedEventKeys.MessageType]=12006,d(e)}}catch(e){g.AppTelemetry&&g.AppTelemetry.logAppException("Error happened during check or handle window close."+e)}},1e3),null!=v?v(0):g.AppTelemetry&&g.AppTelemetry.logAppException("showDialogCallback can not be null.")}function T(e,t){var n=document.createElement("input");n.setAttribute("type","button"),n.style.cssText=e.getDialogButtonCSS(),n.style.borderColor=o,n.style.backgroundColor=s,n.setAttribute("value",t);function r(){I(n)}function i(){w(n)}return n.addEventListener("mouseover",r),n.addEventListener("focus",r),n.addEventListener("mouseout",i),n.addEventListener("focusout",i),n}function I(e){null!=n?(e.style.borderColor=n.HostButtonBorderColor,e.style.backgroundColor=n.HostButtonBackgroundColor):g.OUtil.getCommonUI()?(e.style.borderColor=g.OUtil.getCommonUI().HostButtonBorderColor,e.style.backgroundColor=g.OUtil.getCommonUI().HostButtonBackgroundColor):e.style.backgroundColor=r}function w(e){e.style.borderColor=o,e.style.backgroundColor=s}function R(){S.onCalling=function(e){D(),N(e)},g.WACDelegate.unregisterEventAsync(S)}function D(){null!=y&&(document.body.removeChild(y),y=null),null!=m&&(document.body.removeChild(m),m=null)}function x(e){var t=document.createElement("div");return t.style.cssText=e.getOverlayElementCSS(),t}function F(e){var t=document.createElement("div");return t.style.cssText=e.getDialogNotificationButtonPanelCSS(),"rtl"==document.documentElement.getAttribute("dir")?t.style.cssFloat="left":t.style.cssFloat="right",t}function N(e){if(0!=e){var t=document.querySelectorAll(g._OfficeAppFactory.getInitializationHelper().getTabbableElements());g.OUtil.focusToFirstTabbable(t,!1)}}function k(e){e.setAttribute("role","dialog"),e.setAttribute("aria-describedby",O)}(e=g.ShowWindowDialogParameterKeys||(g.ShowWindowDialogParameterKeys={})).Url="url",e.Width="width",e.Height="height",e.DisplayInIframe="displayInIframe",e.HideTitle="hideTitle",e.UseDeviceIndependentPixels="useDeviceIndependentPixels",e.PromptBeforeOpen="promptBeforeOpen",e.EnforceAppDomain="enforceAppDomain",e.UrlNoHostInfo="urlNoHostInfo",e.TargetOrigin="targetOrigin",function(e){var t="excel",n="word",r="powerpoint",i="outlook",o="visio";e.getDialogCssManager=function(e){switch(e){case t:case n:case r:case i:case o:default:return new a}};var a=(s.prototype.getOverlayElementCSS=function(){return this.overlayElementCSS.join(";")},s.prototype.getDialogNotificationPanelCSS=function(){return this.dialogNotificationPanelCSS.join(";")},s.prototype.getNewWindowNotificationTextPanelCSS=function(){return this.newWindowNotificationTextPanelCSS.join(";")},s.prototype.getNewWindowNotificationTextSpanCSS=function(){return this.newWindowNotificationTextSpanCSS.join(";")},s.prototype.getCrossZoneNotificationTextPanelCSS=function(){return this.crossZoneNotificationTextPanelCSS.join(";")},s.prototype.getDialogNotificationButtonPanelCSS=function(){return this.dialogNotificationButtonPanelCSS},s.prototype.getDialogButtonCSS=function(){return this.buttonStyleCSS.join(";")},s);function s(){this.overlayElementCSS=["position: absolute","top: 0","left: 0","width: 100%","height: 100%","background-color: rgba(198, 198, 198, 0.5)","z-index: 99998"],this.dialogNotificationPanelCSS=["width: 100%","height: 190px","position: absolute","z-index: 99999","background-color: rgba(255, 255, 255, 1)","left: 0px","top: 50%","margin-top: -95px"],this.newWindowNotificationTextPanelCSS=["margin: 20px 14px","font-family: Segoe UI,Arial,Verdana,sans-serif","font-size: 14px","height: 100px","line-height: 100px"],this.newWindowNotificationTextSpanCSS=["display: inline-block","line-height: normal","vertical-align: middle"],this.crossZoneNotificationTextPanelCSS=["margin: 20px 14px","font-family: Segoe UI,Arial,Verdana,sans-serif","font-size: 14px","height: 100px"],this.dialogNotificationButtonPanelCSS="margin:0px 9px",this.buttonStyleCSS=["text-align: center","width: 70px","height: 25px","font-size: 14px","font-family: Segoe UI,Arial,Verdana,sans-serif","margin: 0px 5px","border-width: 1px","border-style: solid"]}e.DefaultDialogCSSManager=a}(g.WacCommonUICssManager||(g.WacCommonUICssManager={})),t=g.WacDialogAction||(g.WacDialogAction={}),b=!(a="osfDialogInternal:action=closeDialog"),h=-1,i="messageParentKey",n=v=y=m=d=f=null,o="#ababab",s="#ffffff",r="#ccc",_="newWindowNotificaiton",c="crossZoneNotification",l="configureBrowserLink",O="dialogNotificationTextPanel",S={dispId:g.EventDispId.dispidDialogNotificationShownInAddinEvent,eventType:g.Marshaling.DialogNotificationShownEventType.DialogNotificationShown,onComplete:null,onCalling:null},t.setHostThemeButtonStyle=function(e){var t=e.input;null!=t&&(n={HostButtonBorderColor:t[g.OUtil.HostThemeButtonStyleKeys.ButtonBorderColor],HostButtonBackgroundColor:t[g.OUtil.HostThemeButtonStyleKeys.ButtonBackgroundColor]}),e.completed()},t.removeEventListenersForDialog=function(e){!function(e){function t(){g._OfficeAppFactory.getWebAppState().focused||(g._OfficeAppFactory.getWebAppState().focused=!0),g.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,g.AgaveHostAction.Select])}function n(){g&&(g._OfficeAppFactory.getWebAppState().focused&&(g._OfficeAppFactory.getWebAppState().focused=!1),g.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,g.AgaveHostAction.UnSelect]))}function r(e){if(e.preventDefault=e.preventDefault||function(){e.returnValue=!1},117==e.keyCode&&(e.ctrlKey||e.metaKey)){e.preventDefault();var t=g.AgaveHostAction.CtrlF6Exit;e.shiftKey&&(t=g.AgaveHostAction.CtrlF6ExitShift),g.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,t])}else if(9==e.keyCode){e.preventDefault();var n=document.querySelectorAll(o._tabbableElements);g.OUtil.focusToNextTabbable(n,e.target||e.srcElement,e.shiftKey)||(o._hostInfo.isDialog?g.OUtil.focusToFirstTabbable(n,e.shiftKey):e.shiftKey?g.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,g.AgaveHostAction.TabExitShift]):g.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,g.AgaveHostAction.TabExit]))}else if(27==e.keyCode)e.preventDefault(),p(),g.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,g.AgaveHostAction.EscExit]);else if(113==e.keyCode)e.preventDefault(),g.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,g.AgaveHostAction.F2Exit]);else if((e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)&&1<=e.keyCode&&e.keyCode<=255){var r={keyCode:e.keyCode,shiftKey:e.shiftKey,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey};g.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,g.AgaveHostAction.KeyboardShortcuts,r])}}function i(e){117==e.keyCode&&e.ctrlKey&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}var o=this;e?(g.OUtil.addEventListener(window,"focus",t),g.OUtil.addEventListener(window,"blur",n),g.OUtil.addEventListener(window,"keydown",r),g.OUtil.addEventListener(window,"keypress",i)):(g.OUtil.removeEventListener(window,"focus",t),g.OUtil.removeEventListener(window,"blur",n),g.OUtil.removeEventListener(window,"keydown",r),g.OUtil.removeEventListener(window,"keypress",i))}(!1),e.completed()},t.handleNewWindowDialog=function(h){return __awaiter(this,void 0,void 0,function(){function i(e){S.onCalling=function(e){D(),N(e),v(12009)},g.WACDelegate.unregisterEventAsync(S),e.preventDefault(),e.stopPropagation()}function o(e){p.focus()}var a,s,c,l,u,p,f,d;return __generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t=h,n=g._OfficeAppFactory.getOfficeAppContext().get_appDomains(),r=t.url,g.XdmCommunicationManager.checkUrlWithAppDomains(n,r)||g._OfficeAppFactory.getOfficeAppContext().get_docUrl()&&g.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(g._OfficeAppFactory.getOfficeAppContext().get_docUrl(),r)?h[g.ShowWindowDialogParameterKeys.PromptBeforeOpen]?[4,g.OUtil.ensureOfficeStringsJs()]:(E(h),[2]):(v(12004),[2]);case 1:return e.sent(),a=b=!1,s=g._OfficeAppFactory.getHostInfo(),c=g.WacCommonUICssManager.getDialogCssManager(s.hostType),l=g.OUtil.formatString(Strings.OfficeOM.L_ShowWindowDialogNotification,g._OfficeAppFactory.getOfficeAppContext().get_addinName()),m=x(c),document.body.insertBefore(m,document.body.firstChild),(y=function(e,t){var n=document.createElement("div");n.style.cssText=e.getDialogNotificationPanelCSS(),k(n);var r=document.createElement("div");r.style.cssText=e.getNewWindowNotificationTextPanelCSS(),r.id=O,"rtl"==document.documentElement.getAttribute("dir")?r.style.paddingRight="30px":r.style.paddingLeft="30px";var i=document.createElement("span");return i.style.cssText=e.getNewWindowNotificationTextSpanCSS(),i.innerText=t,r.appendChild(i),n.appendChild(r),n}(c,l)).id=_,u=F(c),p=T(c,Strings.OfficeOM.L_ShowWindowDialogNotificationAllow),f=T(c,Strings.OfficeOM.L_ShowWindowDialogNotificationIgnore),u.appendChild(p),u.appendChild(f),y.appendChild(u),document.body.insertBefore(y,document.body.firstChild),p.onclick=function(e){E(h),b||R(),e.preventDefault(),e.stopPropagation()},f.onclick=i,p.addEventListener("keydown",function(e){e.shiftKey&&9==e.keyCode&&(w(p),I(f),f.focus(),e.preventDefault(),e.stopPropagation())},!1),f.addEventListener("keydown",function(e){e.shiftKey||9!=e.keyCode?13==e.keyCode&&(a=!0,e.preventDefault(),e.stopPropagation()):(w(f),I(p),p.focus(),e.preventDefault(),e.stopPropagation())},!1),f.addEventListener("keyup",function(e){13==e.keyCode&&a&&(a=!1,i(e))},!1),window.focus(),S.onCalling=o,g.WACDelegate.registerEventAsync(S),[3,3];case 2:return d=e.sent(),g.AppTelemetry&&g.AppTelemetry.logAppException("Exception happens at new window dialog."+d),v(5001),[3,3];case 3:return[2]}var t,n,r})})},t.closeDialog=function(t){try{if(null!=f){var e=g._OfficeAppFactory.getOfficeAppContext().get_appDomains();if(e)for(var n=0;n<e.length&&-1!==e[n].indexOf("://");n++)f.postMessage(a,e[n]);null==f||f.closed||f.close(),g.OUtil.shouldUseLocalStorageToPassMessage()?window.removeEventListener("storage",P):window.removeEventListener("message",A),window.clearInterval(h),f=null,t(0)}else t(5001)}catch(e){g.AppTelemetry&&g.AppTelemetry.logAppException("Exception happens at close window dialog."+e),t(5001)}},t.messageParent=function(e){var t=e.hostCallArgs[g.ParameterNames.MessageToParent],n=e.hostCallArgs[g.ParameterNames.TargetOrigin]||null;if(g.OUtil.shouldUseLocalStorageToPassMessage())try{var r=g._OfficeAppFactory.getId()+i;window.localStorage.setItem(r,t)}catch(e){g.AppTelemetry&&g.AppTelemetry.logAppException("Error happened during messageParent method:"+e)}else u(window.opener,{message:t,targetOrigin:n})},t.sendMessage=function(e){if(null!=f){var t=e.hostCallArgs,n=t[g.ParameterNames.TargetOrigin]||null;delete t[g.ParameterNames.TargetOrigin],"string"!=typeof t&&(t=JSON.stringify(t)),u(f,{message:t,targetOrigin:n})}},t.postDialogMessage=u,t.registerMessageReceivedEvent=function(){window.addEventListener("message",function(e){if(e.source==window.opener)if("string"==typeof e.data&&-1<e.data.indexOf(a))window.close();else{var t=e.data,n=typeof t;if(t&&("object"==n||"string"==n)){var r="string"==n?JSON.parse(t):t,i={};i[g.Marshaling.DialogMessageReceivedEventKeys.MessageContent]=r.messageContent,i[g.Marshaling.DialogMessageReceivedEventKeys.MessageOrigin]=e.origin;var o=g.manufactureEventArgs(g.EventType.DialogParentMessageReceived,null,i);g.DialogParentMessageEventDispatch.fireEvent(o)}}})},t.setHandlerAndShowDialogCallback=function(e,t){d=e,v=t},t.escDismissDialogNotification=p,t.showCrossZoneNotification=C,t.getUrlProtocolHostnamePort=function(e){var t=e.port?":"+e.port:"";return e.protocol+"//"+e.hostname+t}}(OSF=OSF||{}),function(r){var e;(e=r.SafeArrayDelegate||(r.SafeArrayDelegate={})).openDialog=function(n){try{n.onCalling&&n.onCalling();var e=r.SafeArrayDelegate.getOnAfterRegisterEvent(!0,n);r._OfficeAppFactory.getClientHostController().openDialog(n.dispId,void 0,n.targetId,function(e,t){n.onEvent&&n.onEvent(t),r.AppTelemetry&&r.AppTelemetry.onEventDone(n.dispId)},e)}catch(e){r.SafeArrayDelegate.onException(e,n)}},e.closeDialog=function(t){t.onCalling&&t.onCalling();var e=r.SafeArrayDelegate.getOnAfterRegisterEvent(!1,t);try{r._OfficeAppFactory.getClientHostController().closeDialog(t.dispId,void 0,t.targetId,e)}catch(e){r.SafeArrayDelegate.onException(e,t)}},e.messageParent=function(e){try{e.onCalling&&e.onCalling();var t=(new Date).getTime(),n=r._OfficeAppFactory.getClientHostController().messageParent(e.hostCallArgs);return e.onReceiving&&e.onReceiving(),r.AppTelemetry&&r.AppTelemetry.onMethodDone(e.dispId,e.hostCallArgs,Math.abs((new Date).getTime()-t),n),n}catch(e){return r.SafeArrayDelegate.onExceptionSyncMethod(e)}},e.sendMessage=function(e){try{e.onCalling&&e.onCalling();(new Date).getTime();var t=r._OfficeAppFactory.getClientHostController().sendMessage(e.hostCallArgs);return e.onReceiving&&e.onReceiving(),t}catch(e){return r.SafeArrayDelegate.onExceptionSyncMethod(e)}}}(OSF=OSF||{}),function(m){var y;(y=m.WACDelegate||(m.WACDelegate={})).openDialog=function(t){var e=JSON.parse(t.targetId),n=y.getOnAfterRegisterEvent(!0,t);function r(e){var t={Error:e};try{n(0,t)}catch(e){m.AppTelemetry&&m.AppTelemetry.logAppException("Exception happens at showDialogCallback."+e)}}if(m.DialogShownStatus.hasDialogShown)r(12007);else{var i=e[m.ShowWindowDialogParameterKeys.Url].toLowerCase(),o=window.location.href.toLowerCase();if(m.AppTelemetry){var a=!1,s=!1,c=!1,l=!1,u="",p="";if(m.OUtil){var f=m.OUtil.parseUrl(i),d=m.OUtil.parseUrl(o);a=f.protocol===d.protocol&&f.hostname===d.hostname&&f.port===d.port,u=m.OUtil.getHostnamePortionForLogging(f.hostname),a?p=u:(p=m.OUtil.getHostnamePortionForLogging(d.hostname),s=m.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(i,o),c=m.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(o,i));var h=m._OfficeAppFactory.getOfficeAppContext().get_appDomains();l=m.XdmCommunicationManager.checkUrlWithAppDomains(h,i)}var g="openDialog isInline: "+e[m.ShowWindowDialogParameterKeys.DisplayInIframe].toString()+", taskpaneHostname: "+p+", dialogHostName: "+u+", isSameDomain: "+a.toString()+", parentIsSubdomain: "+s.toString()+", childIsSubdomain: "+c.toString()+", isAppDomain: "+l.toString();m.AppTelemetry.logAppCommonMessage(g)}null!=i&&"https://"===i.substr(0,"https://".length)?e[m.ShowWindowDialogParameterKeys.DisplayInIframe]?(m.DialogShownStatus.isWindowDialog=!1,m.WACDelegate.registerEventAsync(t)):(m.DialogShownStatus.isWindowDialog=!0,m.WacDialogAction.setHandlerAndShowDialogCallback(function(e){t.onEvent&&t.onEvent(e),m.AppTelemetry&&m.AppTelemetry.onEventDone(t.dispId)},r),m.WacDialogAction.handleNewWindowDialog(e)):"http://"===i.substr(0,"http://".length)?r(12005):r(12003)}},y.messageParent=function(e){var t=!!e.hostCallArgs.targetOrigin;if(null!=window.opener)m.WacDialogAction.messageParent(e);else{var n=window.location.origin;n=n||window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""),t||(e.hostCallArgs.targetOrigin=n),m.WACDelegate.executeAsync(e)}},y.sendMessage=function(e){m.DialogShownStatus.hasDialogShown&&(m.DialogShownStatus.isWindowDialog?m.WacDialogAction.sendMessage(e):m.WACDelegate.executeAsync(e))},y.closeDialog=function(e){var n=y.getOnAfterRegisterEvent(!1,e);function t(e){var t={Error:e};try{n(0,t)}catch(e){m.AppTelemetry&&m.AppTelemetry.logAppException("Exception happens at closeDialogCallback."+e)}}m.DialogShownStatus.hasDialogShown?m.DialogShownStatus.isWindowDialog?(e.onCalling&&e.onCalling(),m.WacDialogAction.closeDialog(t)):m.WACDelegate.unregisterEventAsync(e):t(12006)}}(OSF=OSF||{}),function(t){t.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){},defineSafeArrayParameterMapFunc:function(){t.HostParameterMap.define({type:t.EventDispId.dispidDocumentSelectionChangedEvent})},defineWebParameterMapFunc:function(){t.HostParameterMap.define({type:t.EventDispId.dispidDocumentSelectionChangedEvent})},initializeFunc:function(){var e=Office.context.document;t.DispIdHost.addEventSupport(e,new t.EventDispatch([t.EventType.DocumentSelectionChanged,t.EventType.ActiveViewChanged]))}})}(OSF=OSF||{}),function(e){e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){e.AsyncMethodCalls.define({method:e.AsyncMethods.AddHandlerAsync,requiredArguments:[{name:e.ParameterNames.EventType,enum:e.EventType,verify:function(e,t,n){return n.supportsEvent(e)}},{name:e.ParameterNames.Handler,types:["function"]}],supportedOptions:[],privateStateCallbacks:[]}),e.AsyncMethodCalls.define({method:e.AsyncMethods.RemoveHandlerAsync,requiredArguments:[{name:e.ParameterNames.EventType,enum:e.EventType,verify:function(e,t,n){return n.supportsEvent(e)}}],supportedOptions:[{name:e.ParameterNames.Handler,value:{types:["function","object"],defaultValue:null}}],privateStateCallbacks:[]})}})}(OSF=OSF||{}),function(t){var e;function n(){t.HostParameterMap.define({type:t.PropertyDescriptors.FeatureProperties,fromHost:[{name:t.PropertyDescriptors.TcidEnabled,value:0},{name:t.PropertyDescriptors.TcidVisible,value:1}],isComplexType:!0}),t.HostParameterMap.define({type:146,toHost:[{name:t.ParameterNames.Tcid,value:0}]}),t.HostParameterMap.define({type:147,fromHost:[{name:t.PropertyDescriptors.FeatureProperties,value:t.HostParameterMap.self}],toHost:[{name:t.ParameterNames.Tcid,value:0}]})}(e=t.PropertyDescriptors||(t.PropertyDescriptors={})).FeatureProperties="FeatureProperties",e.TcidEnabled="TcidEnabled",e.TcidVisible="TcidVisible",t.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){t.AsyncMethodCalls.define({method:t.AsyncMethods.ExecuteFeature,requiredArguments:[{name:t.ParameterNames.Tcid,types:["number"]}],privateStateCallbacks:[]}),t.AsyncMethodCalls.define({method:t.AsyncMethods.QueryFeature,requiredArguments:[{name:t.ParameterNames.Tcid,types:["number"]}],privateStateCallbacks:[]})},defineSafeArrayParameterMapFunc:n,defineWebParameterMapFunc:n,initializeFunc:function(){var e=Office.context.ui;t.DispIdHost.addAsyncMethods(e,[t.AsyncMethods.ExecuteFeature]),t.DispIdHost.addAsyncMethods(e,[t.AsyncMethods.QueryFeature])}})}(OSF=OSF||{}),function(e){var t,n;((t=e.context||(e.context={})).extensionLifeCycle||(t.extensionLifeCycle={})).launchExtensionComponent=function(e,t,n,r,i){var o=OSF.OUtil.Guid.generateNewGuid();null==i&&(i={OptionalProperties:{},DevProperties:{}}),i.OptionalProperties.InstanceToken=o;var a={ExtId:e,ComponentType:t,ComponentId:n,HostProps:r,OptionalProps:i};if(OSF._OfficeAppFactory.getHostInfo().hostPlatform!=OSF.HostInfoPlatform.web)throw OSF.Utility.createNotImplementedException();var s=OSF._OfficeAppFactory.getWebAppState();return s.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[s.id,OSF.AgaveHostAction.LaunchExtensionComponent,a]),{Id:e,ComponentType:t,ComponentId:n,InstanceToken:o,LaunchProperties:i}},(n=e.ExtensionLifeCycle||(e.ExtensionLifeCycle={})).close=function(e){OSF._OfficeAppFactory.getClientHostController().closeSdxDialog(e)},n.resize=function(e,t){OSF.Utility.isNullOrUndefined(e)||OSF.Utility.isNullOrUndefined(t)||"number"!=typeof e||"number"!=typeof t?OSF.Utility.debugLog("Invaid dialog width or height. Kindly provide two numbers as input parameters."):OSF._OfficeAppFactory.getClientHostController().resizeSdxDialog(e,t)}}(Office=Office||{}),function(e){var t=(Object.defineProperty(n.prototype,"size",{get:function(){return this.m_fileSize},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"sliceCount",{get:function(){return Math.ceil(this.m_fileSize/this.m_sliceSize)},enumerable:!0,configurable:!0}),n.prototype.getSliceAsync=function(e,t){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.GetDocumentCopyChunkAsync,arguments,this,this.m_privateState)},n.prototype.closeAsync=function(e){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.ReleaseDocumentCopyAsync,arguments,this,this.m_privateState)},n);function n(e,t,n){this.m_fileSize=t,this.m_sliceSize=n,this.m_privateState={},this.m_privateState[OSF.FileProperties.Handle]=e,this.m_privateState[OSF.FileProperties.SliceSize]=n}e.File=t}(Office=Office||{}),function(r){var e;((e=r.context||(r.context={})).document||(e.document={})).getFileAsync=function(e,t,n){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.GetDocumentCopyAsync,arguments,r.context.document,void 0)}}(Office=Office||{}),function(i){var e,t,n,r,o,a,s,c;(e=i.PropertyDescriptors||(i.PropertyDescriptors={})).FileProperties="FileProperties",e.FileSliceProperties="FileSliceProperties",(t=i.FileProperties||(i.FileProperties={})).Handle="FileHandle",t.FileSize="FileSize",t.SliceSize="sliceSize",(i.additionalParameter||(i.additionalParameter={})).FileSliceOffset="fileSliceoffset",n=i.Marshaling||(i.Marshaling={}),r=n.File||(n.File={}),(o=r.FilePropertiesKeys||(r.FilePropertiesKeys={}))[o.Handle=0]="Handle",o[o.FileSize=1]="FileSize",(a=r.SlicePropertiesKeys||(r.SlicePropertiesKeys={}))[a.Data=0]="Data",a[a.SliceSize=1]="SliceSize",(s=r.FileType||(r.FileType={}))[s.Text=0]="Text",s[s.Compressed=1]="Compressed",s[s.Pdf=2]="Pdf",(c=r.ParameterKeys||(r.ParameterKeys={}))[c.FileType=0]="FileType",c[c.SliceSize=1]="SliceSize",c[c.Handle=2]="Handle",c[c.SliceIndex=3]="SliceIndex",i.File||(i.File={}),i.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){i.AsyncMethodCalls.define({method:i.AsyncMethods.GetDocumentCopyAsync,requiredArguments:[{name:i.ParameterNames.FileType,enum:Office.FileType}],supportedOptions:[{name:i.ParameterNames.SliceSize,value:{types:["number"],defaultValue:i.OUtil.getHostPlatform()==i.HostInfoPlatform.ios?65536:4194304}}],checkCallArgs:function(e,t,n){var r=e[i.ParameterNames.SliceSize];if(r<=0||4194304<r)throw 11002;return e},onSucceeded:function(e,t,n){return new Office.File(e[i.FileProperties.Handle],e[i.FileProperties.FileSize],n[i.ParameterNames.SliceSize])}}),i.AsyncMethodCalls.define({method:i.AsyncMethods.GetDocumentCopyChunkAsync,requiredArguments:[{name:i.ParameterNames.SliceIndex,types:["number"]}],privateStateCallbacks:[{name:i.FileProperties.Handle,value:function(e,t){return t[i.FileProperties.Handle]}},{name:i.FileProperties.SliceSize,value:function(e,t){return t[i.FileProperties.SliceSize]}}],checkCallArgs:function(e,t,n){var r=e[i.ParameterNames.SliceIndex];if(r<0||r>=t.sliceCount)throw 5008;return e[i.additionalParameter.FileSliceOffset]=parseInt((r*n[i.FileProperties.SliceSize]).toString()),e},onSucceeded:function(e,t,n){var r={};return i.OUtil.defineEnumerableProperties(r,{data:{value:i.OUtil.getHostPlatform()==i.HostInfoPlatform.mac?i.OUtil.shallowCopy(e[i.ParameterNames.Data]):e[i.ParameterNames.Data]},index:{value:n[i.ParameterNames.SliceIndex]},size:{value:e[i.FileProperties.SliceSize]}}),r}}),i.AsyncMethodCalls.define({method:i.AsyncMethods.ReleaseDocumentCopyAsync,privateStateCallbacks:[{name:i.FileProperties.Handle,value:function(e,t){return t[i.FileProperties.Handle]}}]})},defineSafeArrayParameterMapFunc:function(){i.HostParameterMap.define({type:i.PropertyDescriptors.FileProperties,fromHost:[{name:i.FileProperties.Handle,value:0},{name:i.FileProperties.FileSize,value:1}],isComplexType:!0}),i.HostParameterMap.define({type:i.PropertyDescriptors.FileSliceProperties,fromHost:[{name:i.ParameterNames.Data,value:0},{name:i.FileProperties.SliceSize,value:1}],isComplexType:!0}),i.HostParameterMap.define({type:i.ParameterNames.FileType,toHost:[{name:Office.FileType.Text,value:0},{name:Office.FileType.Compressed,value:5},{name:Office.FileType.Pdf,value:6}]}),i.HostParameterMap.define({type:77,toHost:[{name:i.ParameterNames.FileType,value:0}],fromHost:[{name:i.PropertyDescriptors.FileProperties,value:i.HostParameterMap.self}]}),i.HostParameterMap.define({type:80,toHost:[{name:i.FileProperties.Handle,value:0},{name:i.additionalParameter.FileSliceOffset,value:1},{name:i.FileProperties.SliceSize,value:2}],fromHost:[{name:i.PropertyDescriptors.FileSliceProperties,value:i.HostParameterMap.self}]}),i.HostParameterMap.define({type:81,toHost:[{name:i.FileProperties.Handle,value:0}]})},defineWebParameterMapFunc:function(){i.HostParameterMap.addComplexType(i.PropertyDescriptors.FileProperties),i.HostParameterMap.addComplexType(i.PropertyDescriptors.FileSliceProperties),i.HostParameterMap.define({type:i.PropertyDescriptors.FileProperties,fromHost:[{name:i.FileProperties.Handle,value:i.Marshaling.File.FilePropertiesKeys.Handle},{name:i.FileProperties.FileSize,value:i.Marshaling.File.FilePropertiesKeys.FileSize}]}),i.HostParameterMap.define({type:i.PropertyDescriptors.FileSliceProperties,fromHost:[{name:i.ParameterNames.Data,value:i.Marshaling.File.SlicePropertiesKeys.Data},{name:i.FileProperties.SliceSize,value:i.Marshaling.File.SlicePropertiesKeys.SliceSize}]}),i.HostParameterMap.define({type:i.ParameterNames.FileType,toHost:[{name:Office.FileType.Text,value:i.Marshaling.File.FileType.Text},{name:Office.FileType.Compressed,value:i.Marshaling.File.FileType.Compressed},{name:Office.FileType.Pdf,value:i.Marshaling.File.FileType.Pdf}]}),i.HostParameterMap.define({type:77,toHost:[{name:i.ParameterNames.FileType,value:i.Marshaling.File.ParameterKeys.FileType},{name:i.ParameterNames.SliceSize,value:i.Marshaling.File.ParameterKeys.SliceSize}],fromHost:[{name:i.PropertyDescriptors.FileProperties,value:i.HostParameterMap.self}]}),i.HostParameterMap.define({type:80,toHost:[{name:i.FileProperties.Handle,value:i.Marshaling.File.ParameterKeys.Handle},{name:i.ParameterNames.SliceIndex,value:i.Marshaling.File.ParameterKeys.SliceIndex}],fromHost:[{name:i.PropertyDescriptors.FileSliceProperties,value:i.HostParameterMap.self}]}),i.HostParameterMap.define({type:81,toHost:[{name:i.FileProperties.Handle,value:i.Marshaling.File.ParameterKeys.Handle}]})}})}(OSF=OSF||{}),(OfficeExt||(OfficeExt={})).FileProperties=function(e){OSF.OUtil.defineEnumerableProperties(this,{url:{value:e[OSF.FilePropertiesDescriptor.Url]}})},function(t){var e,n;t.FilePropertiesDescriptor={Url:"Url"},(t.PropertyDescriptors||(t.PropertyDescriptors={})).FilePropertiesDescriptor="FilePropertiesDescriptor",e=t.Marshaling||(t.Marshaling={}),(n=e.FilePropertiesKeys||(e.FilePropertiesKeys={}))[n.Properties=0]="Properties",n[n.Url=1]="Url",t.FileProperties||(t.FileProperties={}),t.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){t.AsyncMethodCalls.define({method:t.AsyncMethods.GetFilePropertiesAsync,fromHost:[{name:t.PropertyDescriptors.FilePropertiesDescriptor,value:0}],requiredArguments:[],supportedOptions:[],onSucceeded:function(e,t,n){return new OfficeExt.FileProperties(e)}})},defineSafeArrayParameterMapFunc:function(){t.HostParameterMap.define({type:t.PropertyDescriptors.FilePropertiesDescriptor,fromHost:[{name:t.FilePropertiesDescriptor.Url,value:0}],isComplexType:!0}),t.HostParameterMap.define({type:86,fromHost:[{name:t.PropertyDescriptors.FilePropertiesDescriptor,value:t.HostParameterMap.self}]})},defineWebParameterMapFunc:function(){t.HostParameterMap.addComplexType(t.PropertyDescriptors.FilePropertiesDescriptor),t.HostParameterMap.define({type:t.PropertyDescriptors.FilePropertiesDescriptor,fromHost:[{name:t.FilePropertiesDescriptor.Url,value:t.Marshaling.FilePropertiesKeys.Url}]}),t.HostParameterMap.define({type:86,fromHost:[{name:t.PropertyDescriptors.FilePropertiesDescriptor,value:t.Marshaling.FilePropertiesKeys.Properties}]})},initializeFunc:function(){var e=Office.context.document;t.DispIdHost.addAsyncMethods(e,[t.AsyncMethods.GetFilePropertiesAsync])}})}(OSF=OSF||{}),function(a){var i;function e(){this._events=[]}a.NestedAppAuth||(a.NestedAppAuth={}),e.prototype.postMessage=function(e){var t,n,r,i,o=this;t=e,n=function(t){"succeeded"==t.status&&o._events.forEach(function(e){e(t.value)})},r=a._OfficeAppFactory.getAsyncMethodExecutor(),i={toSafeArrayHost:function(){return[]},fromSafeArrayHost:function(e){return null},toWebHost:function(){return{requestPayload:t}},fromWebHost:function(e){return e.responsePayload}},r.executeAsync(209,i,n)},e.prototype.addEventListener=function(e,t){"message"===e&&this._events.push(t)},e.prototype.removeEventListener=function(e,t){"message"===e&&(this._events=this._events.filter(function(e){return e!=t}))},i=e,a.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){},initializeFunc:function(){var e=a._OfficeAppFactory.getOfficeAppContext(),t=e.get_nestedAppAuthBridgeType();if(1===t)window.nestedAppAuthBridge=new i;else if(2!==t||window.nestedAppAuthBridge){if(3===t){var n=e.get_topFrameOrigin();a.pairwiseBrokerConfig={enabled:!0,trustedBrokerDomain:n||void 0}}}else{var r=e.get_topFrameOrigin();r&&a._OfficeAppFactory.getInitializationHelper().setCreateNaaBridge(function(){return function(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t=a.LoadScriptHelper.getHostBundleJsBasePath()+"webauth/hubsdknaabridge.min.js",[4,a.OUtil.loadScriptPromise(t,a.LoadScriptHelper.getTrustedTypesPolicy())];case 1:return e.sent()&&HubSdkNaaBridge.initializeBridge(n),[3,3];case 2:return e.sent(),[3,3];case 3:return[2]}})})}(r)})}}})}(OSF=OSF||{}),function(r){var e;((e=r.DDA||(r.DDA={})).Auth||(e.Auth={})).getAuthContextAsync=function(e){function t(e){var t=e.userObjectId||"",n=e.tenantId||"",r=e.userPrincipalName||"";return{userObjectId:t,tenantId:n,userPrincipalName:r,authorityType:e.authorityType||"",authorityBaseUrl:e.authorityBaseUrl||"",puid:e.puid||"",loginHint:e.loginHint||r}}var n={toSafeArrayHost:function(){return[]},fromSafeArrayHost:function(e){try{return t(JSON.parse(e))}catch(e){return null}},toWebHost:function(){return{}},fromWebHost:function(e){return t(e)}};r._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(205,n,e)}}(OSF=OSF||{}),function(r){(r.auth||(r.auth={})).getAuthContext=function(){return new r.Promise(function(t,n){OSF.DDA.Auth.getAuthContextAsync(function(e){e.status===r.AsyncResultStatus.Succeeded?t(e.value):n(e.error)})})}}(Office=Office||{}),function(s){var e,t;function c(e){var t=0;switch(e){case s.CoercionType.Text:t=0;break;case s.CoercionType.Matrix:t=1;break;case s.CoercionType.Table:t=2;break;case s.CoercionType.Html:t=3;break;case s.CoercionType.Ooxml:t=4;break;case s.CoercionType.OoxmlPackage:t=5;break;case s.CoercionType.PdfFile:t=6;break;case s.CoercionType.SlideRange:t=7;break;case"image":t=8;break;case"xmlSvg":t=9}return t}e=s.context||(s.context={}),(t=e.document||(e.document={})).setSelectedDataAsync=function(t,n,e){var r=null==n.coercionType?OSF.DataCoercion.determineCoercionType(t):n.coercionType;"function"==typeof n&&(e=n);var i={toSafeArrayHost:function(){var e=OSF._OfficeAppFactory.getHostInfo();return e.hostType.toLowerCase()==s.HostType.Word.toLowerCase()||e.hostType.toLowerCase()==s.HostType.PowerPoint.toLowerCase()||e.hostType.toLowerCase()==s.HostType.OneNote.toLowerCase()||e.hostType.toLowerCase()==s.HostType.Visio.toLowerCase()||"image"==r||"xmlSvg"==r?[c(r),OSF.DataCoercion.serializeDynamicData(t),null!=n.imageLeft&&n.imageLeft,null!=n.imageTop&&n.imageTop,null!=n.imageWidth&&n.imageWidth,null!=n.imageHeight&&n.imageHeight]:e.hostType.toLowerCase()==s.HostType.Excel.toLowerCase()?[c(r),OSF.DataCoercion.serializeDynamicData(t),null==n.cellFormat?[]:n.cellFormat,null==n.tableOptions?[]:n.tableOptions,null!=n.imageWidth&&n.imageWidth,null!=n.imageHeight&&n.imageHeight]:[c(r),OSF.DataCoercion.serializeDynamicData(t),null==n.cellFormat?[]:n.cellFormat,null==n.tableOptions?[]:n.tableOptions]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{DdaSetBindingData:{CoerceType:r,Data:OSF.DataCoercion.serializeDynamicData(t),CellFormat:[],TableOptions:[]}}},fromWebHost:function(e){return e}};OSF._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(65,i,e,null)},t.getSelectedDataAsync=function(t,e,n){var r,i=s.ValueFormat.Unformatted,o=s.FilterType.All;"function"==typeof e?n=e:void 0!==e&&(void 0!==e.valueFormat&&(i=e.valueFormat),void 0!==e.filterType&&(o=e.filterType),void 0!==e.asyncContext&&(r=e.asyncContext));var a={toSafeArrayHost:function(){return[c(t),function(e){var t=0;switch(e){case s.ValueFormat.Unformatted:t=0;break;case s.ValueFormat.Formatted:t=1}return t}(i),function(e){var t=0;switch(e){case s.FilterType.All:t=0;break;case s.FilterType.OnlyVisible:t=1}return t}(o)]},fromSafeArrayHost:function(e){return OSF.DataCoercion.deserializeDynamicData(e,t)},toWebHost:function(){return{DdaGetBindingData:{CoerceType:t,ValueFormat:i,FilterType:o}}},fromWebHost:function(e){return OSF.DataCoercion.deserializeDynamicData(e.Data,t)}};OSF._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(64,a,n,r)}}(Office=Office||{}),function(u){u.SlideProperties={Id:0,Title:1,Index:2};var e=(Object.defineProperty(t.prototype,"id",{get:function(){return this.m_id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.m_title},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.m_index},enumerable:!0,configurable:!0}),t);function t(e,t,n){this.m_id=e,this.m_title=t,this.m_index=n}u.Slide=e;var n=(Object.defineProperty(r.prototype,"slides",{get:function(){return this.m_slides},enumerable:!0,configurable:!0}),r);function r(e){this.m_slides=e}u.SlideRange=n,u.manufactureSlideRange=function(e){var t=JSON.parse(e);if(null==t)return null;var n=0;for(var r in u.SlideProperties)u.SlideProperties.hasOwnProperty(r)&&n++;for(var i=[],o=!0,a=0;a<t.length&&o;a++)if(o=!1,t[a].length==n){var s=parseInt(t[a][u.SlideProperties.Id]),c=t[a][u.SlideProperties.Title],l=parseInt(t[a][u.SlideProperties.Index]);isNaN(s)||isNaN(l)||(o=!0,i.push(new u.Slide(s,c,l)))}return o?new u.SlideRange(i):null}}(OSF=OSF||{}),function(t){var e=(Object.defineProperty(n.prototype,"headers",{get:function(){return this._header},set:function(e){this._header=this.fixData(e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rows",{get:function(){return this._rows},set:function(e){this._rows=null==e||OSF.OUtil.isArray(e)&&0==e.length?[]:this.fixData(e)},enumerable:!0,configurable:!0}),n.prototype.fixData=function(e){if(null==e||null==e)return null;try{for(var t=OSF.DataCoercion.findArrayDimensionality(e);t<2;t++)e=[e];return e}catch(e){}},n);function n(e,t){this._rows=e,this._header=t}t.TableData=e,t.manufactureTableData=function(e){return new t.TableData(e[OSF.TableDataProperties.TableRows],e[OSF.TableDataProperties.TableHeaders])}}(Office=Office||{}),function(e){e.BootStrapExtension.prepareApiSurface=function(){return new Promise(function(){e.V10ApiFeatureRegistry.initialize()})}}(OSF=OSF||{}),function(a){var e;(function(r){var e;(e=r.EventDescriptors||(r.EventDescriptors={})).OfficeThemeChangedEvent="OfficeThemeChangedEvent",e.DocumentThemeChangedEvent="DocumentThemeChangedEvent",a.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){a.AsyncMethodCalls.define({method:a.AsyncMethods.GetDocumentThemeAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[],onSucceeded:a.DDA.Theming.ConvertToDocumentTheme}),a.AsyncMethodCalls.define({method:a.AsyncMethods.GetOfficeThemeAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[],onSucceeded:a.DDA.Theming.ConvertToOfficeTheme})},defineSafeArrayParameterMapFunc:function(){a.HostParameterMap.define({type:85,fromHost:[{name:a.ParameterNames.OfficeTheme,value:a.HostParameterMap.self}]}),a.HostParameterMap.define({type:a.ParameterNames.OfficeTheme,fromHost:[{name:a.DDA.Theming.OfficeThemeEnum.BodyForegroundColor,value:0},{name:a.DDA.Theming.OfficeThemeEnum.BodyBackgroundColor,value:1},{name:a.DDA.Theming.OfficeThemeEnum.ControlForegroundColor,value:2},{name:a.DDA.Theming.OfficeThemeEnum.ControlBackgroundColor,value:3},{name:a.DDA.Theming.OfficeThemeEnum.ThemeId,value:4},{name:a.DDA.Theming.OfficeThemeEnum.IsDarkTheme,value:5},{name:a.DDA.Theming.OfficeThemeEnum.FluentThemeData,value:6}],isComplexType:!0}),a.HostParameterMap.define({type:a.EventDispId.dispidOfficeThemeChangedEvent,fromHost:[{name:a.DDA.Theming.EventDescriptors.OfficeThemeChangedEvent,value:a.HostParameterMap.self}],isComplexType:!0}),a.HostParameterMap.define({type:a.DDA.Theming.EventDescriptors.OfficeThemeChangedEvent,fromHost:[{name:a.ParameterNames.OfficeTheme,value:a.HostParameterMap.self}],isComplexType:!0})},defineWebParameterMapFunc:function(){a.HostParameterMap.addComplexType(a.ParameterNames.DocumentTheme),a.HostParameterMap.addComplexType(a.ParameterNames.OfficeTheme),a.HostParameterMap.define({type:a.EventDispId.dispidOfficeThemeChangedEvent,fromHost:[{name:a.ParameterNames.OfficeTheme,value:a.HostParameterMap.self}]}),a.HostParameterMap.define({type:a.ParameterNames.OfficeTheme,fromHost:[{name:a.DDA.Theming.OfficeThemeEnum.BodyForegroundColor,value:a.DDA.Theming.OfficeThemeEnumWac.PrimaryFontColor},{name:a.DDA.Theming.OfficeThemeEnum.BodyBackgroundColor,value:a.DDA.Theming.OfficeThemeEnumWac.PrimaryBackgroundColor},{name:a.DDA.Theming.OfficeThemeEnum.ControlForegroundColor,value:a.DDA.Theming.OfficeThemeEnumWac.SecondaryFontColor},{name:a.DDA.Theming.OfficeThemeEnum.ControlBackgroundColor,value:a.DDA.Theming.OfficeThemeEnumWac.SecondaryBackgroundColor}],isComplexType:!0})},initializeFunc:function(){var e=a._OfficeAppFactory.getHostInfo(),t=e.hostType.toLowerCase();if(e.hostPlatform==a.HostInfoPlatform.web&&(t==Office.HostType.Word.toLowerCase()||t==Office.HostType.PowerPoint.toLowerCase())&&Office.context.officeTheme){var n=r.GetIsDarkThemeFromCSSHexColor(Office.context.officeTheme.bodyBackgroundColor);Office.context.officeTheme[a.DDA.Theming.OfficeThemeEnum.IsDarkTheme]=n,Office.context.officeTheme[a.DDA.Theming.OfficeThemeEnum.ThemeId]=n?a.DDA.Theming.ThemeId.Black:a.DDA.Theming.ThemeId.White}Office.context&&Office.context.themeManager&&Office.context.themeManager.InitializeAndChangeOnce()}});var t=(n.prototype.InitializeThemeManager=function(){this._eventTarget=this,a.DispIdHost.addAsyncMethods(this,[a.AsyncMethods.GetOfficeThemeAsync,a.AsyncMethods.GetDocumentThemeAsync]),a.DispIdHost.addEventSupport(this,new a.EventDispatch([Microsoft.Office.WebExtension.EventType.OfficeThemeChanged,Microsoft.Office.WebExtension.EventType.DocumentThemeChanged]))},n.prototype.InitializeAndChangeOnce=function(e){var t=this;this._officeCss=this._getOfficeThemesCss(),this._officeCss?(this._onAsyncCallsCompleted=e,this._asyncCallsCompleted={},this._asyncCallsCompleted[a.AsyncMethods.GetOfficeThemeAsync]=!1,this._asyncCallsCompleted[a.AsyncMethods.GetDocumentThemeAsync]=!1,this._getAndProcessThemeData(this._eventTarget.getOfficeThemeAsync,function(e){t._processOfficeThemeData(e)},a.AsyncMethods.GetOfficeThemeAsync)):e&&e()},n.prototype.isDarkTheme=function(){var e=!1;if(Office.context&&Office.context.officeTheme&&Office.context.officeTheme.bodyBackgroundColor){var t=Office.context.officeTheme.bodyBackgroundColor;e=r.GetIsDarkThemeFromCSSHexColor(t)}return e},n.prototype._getOfficeThemesCss=function(){try{return function(){for(var e="officethemes.css",t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];if(!n.disabled&&n.href&&e==n.href.substring(n.href.length-e.length,n.href.length).toLowerCase())return n.cssRules||n.rules?n:(a.AppTelemetry&&a.AppTelemetry.logAppException("Browser styleSheet object does not implement cssRules or rules property. Viloates browser's css access rule"),null)}}()}catch(e){return a.AppTelemetry&&a.AppTelemetry.logAppException("Exception thrown when trying to read officethems.css:["+e+"]"),null}},n.prototype._changeCss=function(e,t,n){for(var r=e.cssRules?e.cssRules.length:e.rules.length,i=0;i<r;i++){var o=(e.cssRules?e.cssRules[i]:e.rules[i]).selectorText;o&&o.toLowerCase()==t.toLowerCase()&&(e.cssRules?(e.deleteRule(i),e.insertRule(o+n,i)):(e.removeRule(i),e.addRule(o,n,i)))}},n.prototype._changeDocumentThemeData=function(e){for(var t=[{name:a.DDA.Theming.DocumentThemeEnum.PrimaryFontColor,cssSelector:".office-docTheme-primary-fontColor",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.PrimaryBackgroundColor,cssSelector:".office-docTheme-primary-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.DocumentThemeEnum.SecondaryFontColor,cssSelector:".office-docTheme-secondary-fontColor",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.SecondaryBackgroundColor,cssSelector:".office-docTheme-secondary-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent1,cssSelector:".office-contentAccent1-color",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent2,cssSelector:".office-contentAccent2-color",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent3,cssSelector:".office-contentAccent3-color",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent4,cssSelector:".office-contentAccent4-color",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent5,cssSelector:".office-contentAccent5-color",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent6,cssSelector:".office-contentAccent6-color",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent1,cssSelector:".office-contentAccent1-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent2,cssSelector:".office-contentAccent2-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent3,cssSelector:".office-contentAccent3-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent4,cssSelector:".office-contentAccent4-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent5,cssSelector:".office-contentAccent5-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent6,cssSelector:".office-contentAccent6-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent1,cssSelector:".office-contentAccent1-borderColor",cssProperty:"border-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent2,cssSelector:".office-contentAccent2-borderColor",cssProperty:"border-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent3,cssSelector:".office-contentAccent3-borderColor",cssProperty:"border-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent4,cssSelector:".office-contentAccent4-borderColor",cssProperty:"border-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent5,cssSelector:".office-contentAccent5-borderColor",cssProperty:"border-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent6,cssSelector:".office-contentAccent6-borderColor",cssProperty:"border-color"},{name:a.DDA.Theming.DocumentThemeEnum.Hyperlink,cssSelector:".office-a",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.FollowedHyperlink,cssSelector:".office-a:visited",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.HeaderLatinFont,cssSelector:".office-headerFont-latin",cssProperty:"font-family"},{name:a.DDA.Theming.DocumentThemeEnum.HeaderEastAsianFont,cssSelector:".office-headerFont-eastAsian",cssProperty:"font-family"},{name:a.DDA.Theming.DocumentThemeEnum.HeaderScriptFont,cssSelector:".office-headerFont-script",cssProperty:"font-family"},{name:a.DDA.Theming.DocumentThemeEnum.HeaderLocalizedFont,cssSelector:".office-headerFont-localized",cssProperty:"font-family"},{name:a.DDA.Theming.DocumentThemeEnum.BodyLatinFont,cssSelector:".office-bodyFont-latin",cssProperty:"font-family"},{name:a.DDA.Theming.DocumentThemeEnum.BodyEastAsianFont,cssSelector:".office-bodyFont-eastAsian",cssProperty:"font-family"},{name:a.DDA.Theming.DocumentThemeEnum.BodyScriptFont,cssSelector:".office-bodyFont-script",cssProperty:"font-family"},{name:a.DDA.Theming.DocumentThemeEnum.BodyLocalizedFont,cssSelector:".office-bodyFont-localized",cssProperty:"font-family"}],n=e.type==a.EventType.DocumentThemeChanged?e.documentTheme:e,r=0;r<t.length;r++)if(null===this._previousDocumentThemeData||this._previousDocumentThemeData[t[r].name]!=n[t[r].name])if(null!=n[t[r].name]&&""!=n[t[r].name]){var i=n[t[r].name];"font-family"===t[r].cssProperty&&(i='"'+i.replace(new RegExp('"',"g"),'\\"')+'"'),this._changeCss(this._officeCss,t[r].cssSelector,"{"+t[r].cssProperty+":"+i+";}")}else this._changeCss(this._officeCss,t[r].cssSelector,"{}");this._previousDocumentThemeData=n},n.prototype._changeOfficeThemeData=function(e){for(var t=[{name:a.DDA.Theming.OfficeThemeEnum.BodyForegroundColor,cssSelector:".office-officeTheme-primary-fontColor",cssProperty:"color"},{name:a.DDA.Theming.OfficeThemeEnum.BodyBackgroundColor,cssSelector:".office-officeTheme-primary-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.OfficeThemeEnum.ControlForegroundColor,cssSelector:".office-officeTheme-secondary-fontColor",cssProperty:"color"},{name:a.DDA.Theming.OfficeThemeEnum.ControlBackgroundColor,cssSelector:".office-officeTheme-secondary-bgColor",cssProperty:"background-color"}],n=e.type==a.EventType.OfficeThemeChanged?e.officeTheme:e,r=0;r<t.length;r++)null!==this._previousOfficeThemeData&&this._previousOfficeThemeData[t[r].name]==n[t[r].name]||void 0!==n[t[r].name]&&this._changeCss(this._officeCss,t[r].cssSelector,"{"+t[r].cssProperty+":"+n[t[r].name]+";}");this._previousOfficeThemeData=n},n.prototype._getAndProcessThemeData=function(e,n,r){var i=this,t=a._OfficeAppFactory.getHostInfo();if(t&&t.hostPlatform==a.HostInfoPlatform.web){if(r==a.AsyncMethods.GetOfficeThemeAsync&&Office.context.officeTheme){var o={};o[a.DDA.Theming.OfficeThemeEnum.BodyBackgroundColor]=Office.context.officeTheme.bodyBackgroundColor,o[a.DDA.Theming.OfficeThemeEnum.BodyForegroundColor]=Office.context.officeTheme.bodyForegroundColor,o[a.DDA.Theming.OfficeThemeEnum.ControlBackgroundColor]=Office.context.officeTheme.controlBackgroundColor,o[a.DDA.Theming.OfficeThemeEnum.ControlForegroundColor]=Office.context.officeTheme.controlForegroundColor,o[a.DDA.Theming.OfficeThemeEnum.IsDarkTheme]=Office.context.officeTheme.isDarkTheme,o[a.DDA.Theming.OfficeThemeEnum.ThemeId]=Office.context.officeTheme.isDarkTheme?a.DDA.Theming.ThemeId.Black:a.DDA.Theming.ThemeId.White,o[a.DDA.Theming.OfficeThemeEnum.FluentThemeData]=Office.context.officeTheme.fluentThemeData,n(o)}}else e(function(e){if("succeeded"==e.status){var t=e.value;n(t)}i._areAllCallsCompleted(r)&&i._onAsyncCallsCompleted&&(i._onAsyncCallsCompleted(),i._onAsyncCallsCompleted=null)})},n.prototype._processOfficeThemeData=function(e){var t=this;this._changeOfficeThemeData(e),this._eventTarget.addHandlerAsync(Microsoft.Office.WebExtension.EventType.OfficeThemeChanged,function(e){t._changeOfficeThemeData(e)},null)},n.prototype._processDocumentThemeData=function(e){var t=this;this._changeDocumentThemeData(e),this._eventTarget.addHandlerAsync(Microsoft.Office.WebExtension.EventType.DocumentThemeChanged,function(e){t._changeDocumentThemeData(e)},null)},n.prototype._areAllCallsCompleted=function(e){var t;if(!(t=this._asyncCallsCompleted))return!0;for(var n in e&&t.hasOwnProperty(e)&&(t[e]=!0),t)if(!t.hasOwnProperty(n)||!t[n])return!1;return!0},n);function n(){this._eventTarget=null,this._previousDocumentThemeData=null,this._previousOfficeThemeData=null,this._officeCss=null,this._asyncCallsCompleted=null,this._onAsyncCallsCompleted=null}r.InternalThemeHandler=t})((e=a.DDA||(a.DDA={})).Theming||(e.Theming={}))}(OSF=OSF||{}),function(e){var t,n;t=e.context||(e.context={}),OSF.definePropertyOnNamespace(t,"themeManager",function(){return n||(n=new OSF.DDA.Theming.InternalThemeHandler).InitializeThemeManager(),n})}(Office=Office||{}),(OSF||(OSF={})).BootStrapExtension.prepareHostSpecificSurface=function(){},function(e){if(!function(){try{return"object"==typeof process&&"[object process]"===String(process)}catch(e){return}}()&&!e.isOfficeReactNative()){try{e.Flights=e.OUtil.parseFlights(!0),e.DisabledChangeGates=e.OUtil.parseDisabledChangeGates(!0)}catch(e){}function t(){OSFPerformance.hostSpecificFileName=e.LoadScriptHelper.getHostBundleJsName(),Office.onReadyInternal(function(){OSFPerfUtil.sendPerformanceTelemetry()})}e._OfficeAppFactory.bootstrap(function(){},function(e){e instanceof Error?console.warn(e.message):console.warn(JSON.stringify(e))}),"complete"===document.readyState||"interactive"===document.readyState?t():window.addEventListener("DOMContentLoaded",function(e){t()})}}(OSF=OSF||{}),OSFPerformance.hostInitializationEnd=OSFPerformance.now(),OSFPerformance.totalJSHeapSize=OSFPerformance.getTotalJSHeapSize(),OSFPerformance.usedJSHeapSize=OSFPerformance.getUsedJSHeapSize(),OSFPerformance.jsHeapSizeLimit=OSFPerformance.getJSHeapSizeLimit();
//NULL-TERMINATED �R 0�R� *�H��
��R�0�R�10
`�He 0\
+�7�N0L0
+�70 ��� 010
`�He �#�*D4�����Y��f<d��COSiQ����*�O��
�0��0���3 H��ߡ��w 0
*�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���8Q�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 +�7 0U����4�ګ�e����0 +�7
S u b C A0U�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�1 L������E��pj3!�Θ�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�ߥ�NtX1�A�=|�����
m5�߈��!�9#�0&8��d4;��q�y�!=N�Q��O��QV�~崀�y .�c�~�xD�ɻۣ��
��1~`���m~iˈLH����}�UK��4�.'��5
���rw�>]�T�*� ��D��d)�Uw0�0��3 Mg����x M0
*�H��
0_10 UUS10U
Microsoft Corporation100.U'Microsoft Windows Code Signing PCA 20240
260423224643Z
270421224643Z0t10 UUS10U
Washington10URedmond10U
Microsoft Corporation10UMicrosoft Corporation0�"0
*�H��
� 0�
� ��N]\���e@XFQ'�!<�{��h�Xُ.)�?O�Օ*�~I@s�\�1������L�>���^<AB�d�l���y�����䠤�VrQhϼ�FL���2�M��P���.��+�|�Zz��z�-��2z�:���O�f�Z�j���1U"��eA'gIS����k[� n��>�.���:�#+;�=�M:�ů�Β�H��:�;��U���Z�Nn{��ȣ'�}�i�
�pz̊�x�5բ\Ere����d�:g��8��v�Wk��J_xq��Oq"V�Q�Tj��'@Wq��%�+A�|�;��}!z���NA�Kg��Z�M^��1b��ب��?��i��䊊Dt�-�w<��KQ)3"
�a((�D��!�'�+�iYv�k�F�=3�YW�M�>7)��~�!QX� X,'!��Aa��X�( ��
0�h@uS8}Oa�nƺ�2����%���R�w 3�� �$%@Kʉ8�ϩ������ݰ= ���0��0U��0,U%%0#+
+�7=+�7L0U�0 0U5�g�~�ޙ]pK�)���0EU>0<�:0810UMicrosoft Corporation10U
500814+5077340U#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��
� )���;�;
���� ҷu5��
UXyu���鹢�f�.<��Q�)�e��FBscM�t����W��so��{�ZŒ���o�q
��l��T�����a2�c�I��c[�.&-�+������2�ݻ��c�U�J��f
t��۱����� ���4�0�q��e(F�P�;�+[}�a\s�>%�}���r�m,�f?�t��Z�$U��X��zI`jى�|������=�����>)���u�՝CpzU��9s%+Kq�Sn�~\/u��L�I^drY־�"T�/ń�&3��F�!�ʛ���.�<���0� m3P��&��E��Vo�!���B��w��Ys�q��rK�uU����܆OW��gXP�����at(d��7���>�l�%Y�~�|u孛�Rj���r�^D�S^K�v`�ݍjXN�w8�~���
�6��*�\���<�ڨ3}��2��x�o���7a�0��X?�5C�As�w��qk}� 1�Dq0�Dm0v0_10 UUS10U
Microsoft Corporation100.U'Microsoft Windows Code Signing PCA 20243 Mg����x M0
`�He ���0 *�H��
1
+�70
+�710
+�70/ *�H��
1" \ؾ4$ʸ�X���7�z������o�_ M��70T
+�71F0D�"� M i c r o s o f t O f f i c e��http://office.microsoft.com 0
*�H��
� ����-%��'N��,�ȗ�FOG�a��d���ҥ����KC�H_G�ba3Z�25YmY�!U+/��ܒ�q�0Xp�-hn���=�h�k���͆����&W֏ W5Ƞ�����/������.���
Tr�J :q
��정˖J{�θ�⽾�����]B�?����ģ|rmlD��J�}�TJ�e���r���9�(,�pD�k��8����`4v@�~�7o��ַ��\tQ�ZSw�q#��B}C+k�̫��Il�
V=%'J��ྡ����g/�*��a�M0���|Οڑ#1�4�osf1~)��#C���S9 do�Qx���UjA�LKp�l�}�EW � �F̳�Yz�#�hʯ���� n[u�h��D:�E�f�0��{����n��!��ޅhb���:�Jw����N`ޅ���f��>-?A1�,@
&GV#o^���-Ǒ�;��J^{�[�t�� ӊ��z�v���B�-���A 0��
+�71��0� *�H��
��p0�l10
`�He 0�R*�H��
��A�=0�9
+�Y
010
`�He ��૱9%xU����D(�|�5t��ή���.Ωj1���20260626041005.569Z0��Ѥ��0��10 UUS10U
Washington10URedmond10U
Microsoft Corporation1%0#UMicrosoft America Operations1'0%UnShield TSS ESN:9600-05E0-D9471%0#UMicrosoft Time-Stamp Service���0� 0��3 &5�>gC�� &0
*�H��
0|10 UUS10U
Washington10URedmond10U
Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20100
260219194002Z
270517194002Z0��10 UUS10U
Washington10URedmond10U
Microsoft Corporation1%0#UMicrosoft America Operations1'0%UnShield TSS ESN:9600-05E0-D9471%0#UMicrosoft Time-Stamp Service0�"0
*�H��
� 0�
� ���d��DQiT�ݜ�6��8=�8�#�}��xܬ�NK:Is�^S2�.��^���Q���o�b��9L�XlbVwEr�o�����7HA��'�sr7[O~^qP �E_�F�om2A����2D�;#����"c��vk}��m ~����)���Z����
�f��6N���JɆ�s��/��0�y�7v#�5
��J#fG� ٙ+|�Af��NY�!���$�:�N9�<&�{몄sQ��%l�ְ*��T�A�����6�<9+|ߚ��:k��!�h��b����cI�k�
���t�~! �LDd֑�M��m�**��s�a*�Er;nk��f�����T�
J/^�p��s=ş"Q�9(M�v����a�H��i������(}]�:nFT� �y��>��H&�KA�TLX�?���{!����)U$��3[�+��K=*���<ġ^A�k��w_�S��}*p����av1H5ǻp�xVqdІH�C� ��I0�E0U]���$ݘ��KU�O#3\{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).crt0U�0 0U%�0
+0U��0
*�H��
� 6S-��
;*�Tr�Zqד����� ;���S��|8���Lٵv��N��)&��~�^���y�8.^v{�$V
�/���q�%I��؟���m���<W�� C9(�y^����!�e�na��\��v&)+�Yjd�"��>??�L��q��v.f��¸��&�W�I&Y�:��G���5
;���*3�<�e�j\�w����z.��[
Mw������,��Va�䷶4�ߝ��E�~Ep�8�gs ��_���a�Z�W-_�i�O�^jj~]�Ͼ�A|
u�f��7�h�ȟ� ÐҸ���
,q�"����g���o6���B��Tc��D��P�o:�$>�V�9��w��W)�'�y�@���H�����l�����ȑ��{���.a��F����n�$}&��
��u�:����������
բ4@��
��
_����1�/����K���� Ղ�^iQ���s<;g������F�[՜S����ψ�~��+P
�e0�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 +�7 0# +�7*�R�dĚ���<F5)��/�0U��] ^b]����e�S5�r0\U U0S0Q+�7L�}0A0?+3http://www.microsoft.com/pkiops/Docs/Repository.htm0U%0
+0 +�7
S u b C A0U�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�P0�80����Ѥ��0��10 UUS10U
Washington10URedmond10U
Microsoft Corporation1%0#UMicrosoft America Operations1'0%UnShield TSS ESN:9600-05E0-D9471%0#UMicrosoft Time-Stamp Service�#
0+ ���1�*���]��e4�"�g���0���~0|10 UUS10U
Washington10URedmond10U
Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20100
*�H��
���0"20260625204041Z20260626204041Z0w0=
+�Y
1/0-0
��� 0
2?�0 Z0
��bI 06
+�Y
1(0&0
+�Y
�
0 � �
0 ��0
*�H��
� 3��n@=�O�|4E*������]-^�Q0>�
ta��N��P�p�G[V7����b<�]բ�ȝ�Xۻ�DsY����|���sI��
�>ZqqE��
�� ��A�A�l��o�|>�b��,���I ���ޝ�`/夽t���M��X?�hg8�a3� )���'c�_npo�!���f%�;�^V�\Ras�����49X�&��7�
�R�����<�Z/�h���I���=n-n2mb�]K/q1�
0� 0��0|10 UUS10U
Washington10URedmond10U
Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20103 &5�>gC�� &0
`�He ��J0 *�H��
1
*�H��
0/ *�H��
1" U���\̲�0u�ԫ�*�}{h:ɤ=i?�r�>f0��*�H��
/1��0��0��0�� �2\agL�D��c�t�F�?uAb�ōK��*0��0���~0|10 UUS10U
Washington10URedmond10U
Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20103 &5�>gC�� &0" �<O�4�t����}O�J|Q��qzX�?�0
*�H��
� ��Tw�K�e�8O]��W/�A��A(o����%��e�1L��xt0[�E"����1�W�9�.��G�'l�}�f�YIKe�$;��c?��o��g��+�k��]㉖w����Jx}e
5h���5跱kIn �R���?�M�1��ϓ���~���S�!v��=<�����L��W|h����~=��y�)M��E����
L��M�d�r�@��̴P��}/�^g�
4�H�
�Ji�DN�4ih@�\o���3\?��h�&%�����jZ!x/k��8x?`B�̄�_�X��^nnT�C-գ�$^�3?��Sd["ݼ���I$Q�/�:�e�~���~�,2 �J�_��')j�QV]ŭ_O��E�����,�<m���z�^9l��,b��lϖP[�س{�Oj��S?-\�a��%�g�.�-ގo�9N�r�H]�ec�� �0Ƈq=h�|$� `�K�;өw�f�`?�ᒴ�
��/^��ti0�)n
+�71�)^0�)Z *�H��
��)K0�)G10
`�He 0\
+�7�N0L0
+�70 ��� 010
`�He �#�*D4�����Y��f<d��COSiQ����*�O��
�0��0���3 9;�7�g 90
*�H��
0��10 UUS10U
Washington10URedmond10U
Microsoft Corporation1200U)Microsoft Root Certificate Authority 20110
240808205418Z
360322221304Z0W10 UUS10U
Microsoft Corporation1(0&UMicrosoft Code Signing PCA 20240�"0
*�H��
� 0�
� ���8Ǫ�5���c���2�za�<�^�
Ki]݆
��lӢ��g��3b�����R�E�#��/��I�!*��B宰��a�� o�6�&�5���:
�T�AR����ݤ�r�A�3I�tNl�P���־�<C���A�|:@+���Z�����`���Q�&��mu!� SG(0�֘�'2 ^��%�m����;�$+GՑ���)��9�����M�m�[�wR����ұ����\��%� �xb��M>�6ܹDJ#��
��g1Z��7��C���Ga�{�Ӯյg]�ڨ�%ڳ��H��r�Uk!����M{z�a/�z�]TzՆ�,D剻=�\���,;�S���;&�y���Ftr.I�� Vh�w�іI�aJ�R���>�폕=�y�!�7 9��Y
�B�z�%r���?�aL�re�U
)߬UF$�L����xH��;�z����ĈC��|�`'����1E¬�JA?ĉ ��v��5��ߙ�^C(�Me ��N0�J0U��0 +�7 0UY?T!ڭO����-�10 +�7
S u b C A0U�0�0U#0�r-:1�C�N���1�#�40ZUS0Q0O�M�K�Ihttp://crl.microsoft.com/pki/crl/products/MicRooCerAut2011_2011_03_22.crl0^+R0P0N+0�Bhttp://www.microsoft.com/pki/certs/MicRooCerAut2011_2011_03_22.crt0
*�H��
� �8(O�����0�Ҕ�V`� w)�P�Ŭ���$:�~��n03/+-pJ��<�5DQ���2�rG4!ຣ�R�7 �Z);�~O��X����1ҹQ�{ESL�a�\��!k���O�/������M�� $��/�a� �&KST�P��r�ADS1�~��8$;�d�_mˡ�7�ݝ��k�:ir߆�3Z�ŬA����#e�.�݉1g`2Ӧ������d�
�0б�>0<��:a��4��
�F�u�S�A��.�.J�¼}="�����}c�F�E5��O�B:8J#s�Vmң���XY:��L���t��M�r��1;̫��<j�[�O���^n�����EH��k0+��>�$f3�z`1���.��d�`�V+�`yO�����tj�%8|�`�\�'���/�\��N� 0a;����jC��Y U
dP ��;��Ȭ
��(+e��Q \��^��V2SB]/� �&@�V�}t��6/�;4��p/}X�0�0��3 �w���p{d �0
*�H��
0W10 UUS10U
Microsoft Corporation1(0&UMicrosoft Code Signing PCA 20240
251113191215Z
261110191215Z0t10 UUS10U
Washington10URedmond10U
Microsoft Corporation10UMicrosoft Corporation0�"0
*�H��
� 0�
� ���f?�ZE�ym^|rK��f���`�[�B�A}�Z���j�%��\�p��`��fI'U�~3�U)<�z���/���~���Ċ4TbF%�V�n&���=Cc B K���E����b�]��v��j,Le$f�������j����jI�s_ 2^b2���#�K��J����z�!�OY�§`�t���ox�f�bE#�_��-����(GK���qaۅV�̓�$�S����L��ɫ��Q6���-������'I��
�V�o�-��n�"4#���� a�P�)��Іa$a4�߯ ��� }�����Tp�옫D�wQ���� �~�J�~$S�Eq6�]�.����}�d�7�ϙ�#E�G�#ǂ�wD�r�<>3)Uts%痚�dc��
���峘���v�>v'f��Kxoo�K�B�QSk�у�F+�a:l��t�B�3芾I8��o��3{O�U9S��8s�s�h��&yBX�!� ���0��0U��0,U%%0#
+�7
++�7L0U�0 0U����:`������Y$0EU>0<�:0810UMicrosoft Corporation10U
500816+5062890U#0�Y?T!ڭO����-�10`UY0W0U�S�Q�Ohttp://www.microsoft.com/pkiops/crl/Microsoft%20Code%20Signing%20PCA%202024.crl0m+a0_0]+0�Qhttp://www.microsoft.com/pkiops/certs/Microsoft%20Code%20Signing%20PCA%202024.crt0
*�H��
� =�<Th��ZT�(����QG8���0Z�������`B�>�� ��״!A��b� �s /��'HtVp��~6�$��ٲ���C>[�紐�s�q&�дi���y2tR�m㬢P���&{�=9�-��B���_`�3�MՒb �8��tG
(EZ�/:[���{D�ա����A�S���6Y~�̶BaP���eKF��G4�qX��C�JIJ�@��}o�w5��~��V��0O��v�}b�cr��QGiJd;D#D����=![�R�#��laݩ�s�D�w��{�x��B8� ��V�@�益����i0y]J��+W̱&}�%;�,�V*RI �'L民��ç�+7+ k��~�Ä��}�U�F:�Hy�_��ºM���NKܯ���M#���L�!�N�9}-�G~D
�3ν��L�AjK1ؓ��������kTƖt�L>�h�g_��Ԏ�
��7=�!=H�ڨ
v1�0�0n0W10 UUS10U
Microsoft Corporation1(0&UMicrosoft Code Signing PCA 20243 �w���p{d �0
`�He ���0
*�H��
10 *�H��
1
+�70
+�710
+�70/ *�H��
1" \ؾ4$ʸ�X���7�z������o�_ M��70T
+�71F0D�"� M i c r o s o f t O f f i c e��http://office.microsoft.com 0
*�H��
� lf}�(��OӅ�% {���j_&���0{�ܪ�b�+��;̆z/(L�vS��V�?����
&q1,�^˖~��D�B�������aE!v�5�vs������,�[�����Mw}�߱�d?x�5ۺF(�(g�~���@���+ʀ �3��5ڝ�����!� }�Ŝ�dvx���o��r�@<W�-`}cz��y�'fn����6����-�A��\C�)EM;�A`!��V�R�\�u���kU����!��&�cLE�|}�Q/wv�d�QCh
��2�=���k���X}<L\f�ϩ�Q��U�J}��T0d�M��}^�����;��{���O��VR�<��x��$��|��F�bF����6��L�}��U8Uܽ
6��Q*Z�~IDw��+�S�d~k�=�xS�R|7ӝ�|�͋�G�hC���N��u�]��W��#V����3��@4�ƔA1N�x�oj�=|]�q� _@�{�\dH��M��𩡂�0��
+�71�0�{ *�H��
��l0�h10
`�He 0�Q*�H��
��@�<0�8
+�Y
010
`�He ͜3��W匲x%+$�c�my�nƴ+{�zj10MZ20260626041006.43Z0��Ѥ��0��10 UUS10U
Washington10URedmond10U
Microsoft Corporation1%0#UMicrosoft America Operations1'0%UnShield TSS ESN:A000-05E0-D9471%0#UMicrosoft Time-Stamp Service���0� 0��3 +� P�M;�� +0
*�H��
0|10 UUS10U
Washington10URedmond10U
Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20100
260219194011Z
270517194011Z0��10 UUS10U
Washington10URedmond10U
Microsoft Corporation1%0#UMicrosoft America Operations1'0%UnShield TSS ESN:A000-05E0-D9471%0#UMicrosoft Time-Stamp Service0�"0
*�H��
� 0�
� ��h�8=��J���*�J�=�,+�1���>T�n9�ۢ���8�E�ӣ��:������D��<D+�z㜀�ݾ�b���9-�L�Mp@^�����Es�db�R��)[��W
4*O�
룯�s�0����'?�m��y��;?�i���_+\X�6 3ƛ�k
[w�j9VOk�y�^������0!��ӭ!q���
�IY�z�)F�Ko�Q�i��?�kb�M��s�$~���4��ٯ�3�Y�r�
��z�#�]������E�����G�l �M�L�|��� nj�-;�d]�F�1+Al-�\�*�%��N�p�g"wJ�l�q���=���P��O4�@�l Ǝ��4͡�0�p�"rx`H�K��/�*v�c��뜊�:@Y�X���K���y��3dڗ!x�����Nk��d��v�EKu�u�b�_scCm�9$�:Y2��q�T�Y\������NgƏ X/��59�AhߒQ�ȍ����RܾW�.tY5� ��I0�E0U>��P��m��d�AY��60U#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).crt0U�0 0U%�0
+0U��0
*�H��
� �"�r!�J�~��NW��
�8�_5Ҝ��Cݮ�~���`ϰ��z��C���2ᛪS�]BbA���>1N�1������'��(ZG��Ҋѳ0�8뒄a��u������;�w�
���&#-�
��v�E D[��sY$�|�@�?�2�ywYV<#hdu��x��{���J(�^��q��Ez�_��&����r�T�fI�����viz��85����L�Q��|��ש��d\hwc07p(����'�!���x��|��1q�'5b��7BtaKژ3����!*�X��$ m��"�z���;�9�(�ɷʜ_���W��k�v�'�|
���6����1�t1��#�dL4�sn���5��(M
��,:ÆY������1�u��S�����+���3jit)C�8���ݩ�9~�ǘݮ|�LSQ(�^��t�ԓ�)�-3����.�O��$�~?b'�M�Mo�Pd���g�վ��4��j]�VL�8��"�u�K0�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 +�7 0# +�7*�R�dĚ���<F5)��/�0U��] ^b]����e�S5�r0\U U0S0Q+�7L�}0A0?+3http://www.microsoft.com/pkiops/Docs/Repository.htm0U%0
+0 +�7
S u b C A0U�0U�0�0U#0��Vˏ�\bh�=��[�Κ�0VUO0M0K�I�G�Ehttp://crl.microsoft.com/pki/crl/products/MicRooCerAut_2010-06-23.crl0Z+N0L0J+0�>http://www.microsoft.com/pki/certs/MicRooCerAut_2010-06-23.crt0
*�H��
� �U}�*��,g1$[�rK��o�\�>NGdx���=13�9��q6?�dl|�u9m�1��lѡ�"��fg:SMݘ��x�6.���V ����i� �{�jo�)�n�?Hu��m��m#T�xSu$W�ݟ�=��h�e��V����(U'�$�@���]='�@�8���)�ü�T�B�������j�BRu�6��as.,k{n?, x鑲�[�I�t�쑀�=�J>f;O���2ٖ����t��Lro�u0�4�z�P�
X�@<�Tm�ctH,�NG-�q�d�$�smʎ ��WITd�s�[D�Z�k
��(�g($�8K�n�!TkjEG����^O���Lv�WT �iD~|�als�
��Af=i��AI~~���;����>�1Q������{��p���(��6ںL���
�4�$5g+�
�挙��"��'B=%��tt[jў>�~�13}���{�8pDѐ�ȫ:�:b�pcSM��m��qj�U3X��pf�M0�50����Ѥ��0��10 UUS10U
Washington10URedmond10U
Microsoft Corporation1%0#UMicrosoft America Operations1'0%UnShield TSS ESN:A000-05E0-D9471%0#UMicrosoft Time-Stamp Service�#
0+ �?t�A� ���
ڑ9���0���~0|10 UUS10U
Washington10URedmond10U
Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20100
*�H��
��3�0"20260625230923Z20260626230923Z0t0:
+�Y
1,0*0
��3� 0 '�0 �0
��# 06
+�Y
1(0&0
+�Y
�
0 � �
0 ��0
*�H��
� VP7��S7i�}�)���]��\�p��!8@��\�#���$@jtXH��
� ��%��6̲e�|��yS=:�Rs�J��՟�P斱����7�^2�G�)1j�}���8;�AO�G����ִ7�()a��w���@��5�4X���O!'��L�ɲ��B<�ɽE����ev0#��Z;��I�6pđ<�'��R
�{���H4ޱ
��5�?N�!))R�����|� ��r��#W�1�
0� 0��0|10 UUS10U
Washington10URedmond10U
Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20103 +� P�M;�� +0
`�He ��J0 *�H��
1
*�H��
0/ *�H��
1" ��LQ:#�W �H��geޟ<���3�!)���u=0��*�H��
/1��0��0��0�� r#�?�W�`���>�wj0C�����d�nR0��0���~0|10 UUS10U
Washington10URedmond10U
Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20103 +� P�M;�� +0" +�7�g�'�n���1Pp��,D\�&-0
*�H��
� .�s2�BE�$��`5'�0��6{��)Y������\������(J`�
��顏�|m�P��@96���:�Cj�V�7�b�4�u�5�,6Yt�J*���( ����@:Fy7�q�{o���n��A�(=B�?��&0f�������"�9�4O*D��{o"�Y�"��@9A\���,�g擄�;9�?r�ǥ�ː�P��ō�f�"_d9%��S�:��H�ɢ�B �ٹ�!��{�b�|�*�N˿�h<Fx�5=f���q�'�5r���Qݶ�Jt�}���89_b!�~����bq���[���AL����+罷��q�C�i䈎�|���ᆖ�l&cO��)�}*�o"�z����V $ާ�,�^vɹb>�1�O~0�u�U|-��u�-��*�'l�,����}�"QyI���!ƻ��75�mG4��9�*d��"�%��:X���_�ڽ
�.Pt�J�����J��o�u;N��E
�