/* Outlook rich client specific API library */
/* Version: 16.0.11218.10000 */
/*
/*!
Copyright (c) Microsoft Corporation.  All rights reserved.
*/
/*!
Your use of this file is governed by the Microsoft Services Agreement http://go.microsoft.com/fwlink/?LinkId=266419.
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 __extends=this&&this.__extends||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},OfficeExt;(function(n){var t=function(){var n=!0;function t(){}t.prototype.isMsAjaxLoaded=function(){var t="function",i="undefined";return typeof Sys!==i&&typeof Type!==i&&Sys.StringBuilder&&typeof Sys.StringBuilder===t&&Type.registerNamespace&&typeof Type.registerNamespace===t&&Type.registerClass&&typeof Type.registerClass===t&&typeof Function._validateParams===t&&Sys.Serialization&&Sys.Serialization.JavaScriptSerializer&&typeof Sys.Serialization.JavaScriptSerializer.serialize===t?n:!1};t.prototype.loadMsAjaxFull=function(n){var t=(window.location.protocol.toLowerCase()==="https:"?"https:":"http:")+"//ajax.aspnetcdn.com/ajax/3.5/MicrosoftAjax.js";OSF.OUtil.loadScript(t,n)};Object.defineProperty(t.prototype,"msAjaxError",{get:function(){var n=this;n._msAjaxError==null&&n.isMsAjaxLoaded()&&(n._msAjaxError=Error);return n._msAjaxError},set:function(n){this._msAjaxError=n},enumerable:n,configurable:n});Object.defineProperty(t.prototype,"msAjaxString",{get:function(){var n=this;n._msAjaxString==null&&n.isMsAjaxLoaded()&&(n._msAjaxString=String);return n._msAjaxString},set:function(n){this._msAjaxString=n},enumerable:n,configurable:n});Object.defineProperty(t.prototype,"msAjaxDebug",{get:function(){var n=this;n._msAjaxDebug==null&&n.isMsAjaxLoaded()&&(n._msAjaxDebug=Sys.Debug);return n._msAjaxDebug},set:function(n){this._msAjaxDebug=n},enumerable:n,configurable:n});return t}();n.MicrosoftAjaxFactory=t})(OfficeExt||(OfficeExt={}));var OsfMsAjaxFactory=new OfficeExt.MicrosoftAjaxFactory,OSF=OSF||{},OfficeExt;(function(n){var t=function(){function n(n){this._internalStorage=n}n.prototype.getItem=function(n){try{return this._internalStorage&&this._internalStorage.getItem(n)}catch(t){return null}};n.prototype.setItem=function(n,t){try{this._internalStorage&&this._internalStorage.setItem(n,t)}catch(i){}};n.prototype.clear=function(){try{this._internalStorage&&this._internalStorage.clear()}catch(n){}};n.prototype.removeItem=function(n){try{this._internalStorage&&this._internalStorage.removeItem(n)}catch(t){}};n.prototype.getKeysWithPrefix=function(n){var i=[];try{for(var u=this._internalStorage&&this._internalStorage.length||0,t=0;t<u;t++){var r=this._internalStorage.key(t);r.indexOf(n)===0&&i.push(r)}}catch(f){}return i};return n}();n.SafeStorage=t})(OfficeExt||(OfficeExt={}));OSF.XdmFieldName={ConversationUrl:"ConversationUrl",AppId:"AppId"};OSF.WindowNameItemKeys={BaseFrameName:"baseFrameName",HostInfo:"hostInfo",XdmInfo:"xdmInfo",SerializerVersion:"serializerVersion",AppContext:"appContext"};OSF.OUtil=function(){var o="focus",s="on",tt="configurable",it="writable",h="enumerable",u="",c="undefined",t=!1,i=!0,b=2147483647,n=null,r=-1,w=r,g="&_xdm_Info=",nt="&_serializer_version=",ut="_xdm_",ft="_serializer_version=",a="#",rt="&",f="class",v={},et=3e4,y=n,l=n,e=+new Date;function k(){var n=b*Math.random();n^=e^(new Date).getMilliseconds()<<Math.floor(Math.random()*21);return n.toString(16)}function p(){if(!y){try{var t=window.sessionStorage}catch(i){t=n}y=new OfficeExt.SafeStorage(t)}return y}function d(n){for(var u=[],i=[],f=n.length,t,r=0;r<f;r++){t=n[r];t.tabIndex?t.tabIndex>0?i.push(t):t.tabIndex===0&&u.push(t):u.push(t)}i=i.sort(function(n,t){var r=n.tabIndex-t.tabIndex;r===0&&(r=i.indexOf(n)-i.indexOf(t));return r});return[].concat(i,u)}return{set_entropy:function(n){if(typeof n=="string")for(var i=0;i<n.length;i+=4){for(var r=0,t=0;t<4&&i+t<n.length;t++)r=(r<<8)+n.charCodeAt(i+t);e^=r}else e^=typeof n=="number"?n:b*Math.random();e&=b},extend:function(n,t){var i=function(){};i.prototype=t.prototype;n.prototype=new i;n.prototype.constructor=n;n.uber=t.prototype;t.prototype.constructor===Object.prototype.constructor&&(t.prototype.constructor=t)},setNamespace:function(n,t){t&&n&&!t[n]&&(t[n]={})},unsetNamespace:function(n,t){t&&n&&t[n]&&delete t[n]},serializeSettings:function(n){var r={};for(var i in n){var t=n[i];try{t=JSON?JSON.stringify(t,function(n,t){return OSF.OUtil.isDate(this[n])?OSF.DDA.SettingsManager.DateJSONPrefix+this[n].getTime()+OSF.DDA.SettingsManager.DataJSONSuffix:t}):Sys.Serialization.JavaScriptSerializer.serialize(t);r[i]=t}catch(u){}}return r},deserializeSettings:function(n){var f={};n=n||{};for(var u in n){var t=n[u];try{t=JSON?JSON.parse(t,function(n,t){var i;if(typeof t=="string"&&t&&t.length>6&&t.slice(0,5)===OSF.DDA.SettingsManager.DateJSONPrefix&&t.slice(r)===OSF.DDA.SettingsManager.DataJSONSuffix){i=new Date(parseInt(t.slice(5,r)));if(i)return i}return t}):Sys.Serialization.JavaScriptSerializer.deserialize(t,i);f[u]=t}catch(e){}}return f},loadScript:function(r,u,f){if(r&&u){var c=window.document,e=v[r];if(e)e.loaded?u():e.pendingCallbacks.push(u);else{var o=c.createElement("script");o.type="text/javascript";e={loaded:t,pendingCallbacks:[u],timer:n};v[r]=e;var h=function(){if(e.timer!=n){clearTimeout(e.timer);delete e.timer}e.loaded=i;for(var u=e.pendingCallbacks.length,t=0;t<u;t++){var r=e.pendingCallbacks.shift();r()}},s=function(){delete v[r];if(e.timer!=n){clearTimeout(e.timer);delete e.timer}for(var u=e.pendingCallbacks.length,t=0;t<u;t++){var i=e.pendingCallbacks.shift();i()}};o.readyState?o.onreadystatechange=function(){if(o.readyState=="loaded"||o.readyState=="complete"){o.onreadystatechange=n;h()}}:o.onload=h;o.onerror=s;f=f||et;e.timer=setTimeout(s,f);o.setAttribute("crossOrigin","anonymous");o.src=r;c.getElementsByTagName("head")[0].appendChild(o)}}},loadCSS:function(n){if(n){var i=window.document,t=i.createElement("link");t.type="text/css";t.rel="stylesheet";t.href=n;i.getElementsByTagName("head")[0].appendChild(t)}},parseEnum:function(n,t){var i=t[n.trim()];if(typeof i==c){OsfMsAjaxFactory.msAjaxDebug.trace("invalid enumeration string:"+n);throw OsfMsAjaxFactory.msAjaxError.argument("str");}return i},delayExecutionAndCache:function(){var n={calc:arguments[0]};return function(){if(n.calc){n.val=n.calc.apply(this,arguments);delete n.calc}return n.val}},getUniqueId:function(){w=w+1;return w.toString()},formatString:function(){var n=arguments,t=n[0];return t.replace(/{(\d+)}/gm,function(t,i){var r=parseInt(i,10)+1;return n[r]===undefined?"{"+i+"}":n[r]})},generateConversationId:function(){return[k(),k(),(+new Date).toString()].join("_")},getFrameName:function(n){return ut+n+this.generateConversationId()},addXdmInfoAsHash:function(n,i){return OSF.OUtil.addInfoAsHash(n,g,i,t)},addSerializerVersionAsHash:function(n,t){return OSF.OUtil.addInfoAsHash(n,nt,t,i)},addInfoAsHash:function(n,t,i,r){n=n.trim()||u;var o=n.split(a),s=o.shift(),e=o.join(a),f;f=r?[t,encodeURIComponent(i),e].join(u):[e,t,i].join(u);return[s,a,f].join(u)},parseHostInfoFromWindowName:function(n,t){return OSF.OUtil.parseInfoFromWindowName(n,t,OSF.WindowNameItemKeys.HostInfo)},parseXdmInfo:function(n){var t=OSF.OUtil.parseXdmInfoWithGivenFragment(n,window.location.hash);t||(t=OSF.OUtil.parseXdmInfoFromWindowName(n,window.name));return t},parseXdmInfoFromWindowName:function(n,t){return OSF.OUtil.parseInfoFromWindowName(n,t,OSF.WindowNameItemKeys.XdmInfo)},parseXdmInfoWithGivenFragment:function(n,i){return OSF.OUtil.parseInfoWithGivenFragment(g,ut,t,n,i)},parseSerializerVersion:function(n){var t=OSF.OUtil.parseSerializerVersionWithGivenFragment(n,window.location.hash);isNaN(t)&&(t=OSF.OUtil.parseSerializerVersionFromWindowName(n,window.name));return t},parseSerializerVersionFromWindowName:function(n,t){return parseInt(OSF.OUtil.parseInfoFromWindowName(n,t,OSF.WindowNameItemKeys.SerializerVersion))},parseSerializerVersionWithGivenFragment:function(n,t){return parseInt(OSF.OUtil.parseInfoWithGivenFragment(nt,ft,i,n,t))},parseInfoFromWindowName:function(t,i,r){try{var f=JSON.parse(i),u=f!=n?f[r]:n,e=p();if(!t&&e&&f!=n){var o=f[OSF.WindowNameItemKeys.BaseFrameName]+r;u?e.setItem(o,u):u=e.getItem(o)}return u}catch(s){return n}},parseInfoWithGivenFragment:function(t,i,u,f,e){var c=e.split(t),o=c.length>1?c[c.length-1]:n;if(u&&o!=n){o.indexOf(rt)>=0&&(o=o.split(rt)[0]);o=decodeURIComponent(o)}var l=p();if(!f&&l){var s=window.name.indexOf(i);if(s>r){var h=window.name.indexOf(";",s);h==r&&(h=window.name.length);var a=window.name.substring(s,h);o?l.setItem(a,o):o=l.getItem(a)}}return o},getConversationId:function(){var i=window.location.search,t=n;if(i){var r=i.indexOf("&");t=r>0?i.substring(1,r):i.substr(1);if(t&&t.charAt(t.length-1)==="="){t=t.substring(0,t.length-1);t&&(t=decodeURIComponent(t))}}return t},getInfoItems:function(n){var t=n.split("$");typeof t[1]==c&&(t=n.split("|"));typeof t[1]==c&&(t=n.split("%7C"));return t},getXdmFieldValue:function(n,t){var r=u,f=OSF.OUtil.parseXdmInfo(t);if(f){var i=OSF.OUtil.getInfoItems(f);if(i!=undefined&&i.length>=3)switch(n){case OSF.XdmFieldName.ConversationUrl:r=i[2];break;case OSF.XdmFieldName.AppId:r=i[1]}}return r},validateParamObject:function(n,r){var u=Function._validateParams(arguments,[{name:"params",type:Object,mayBeNull:t},{name:"expectedProperties",type:Object,mayBeNull:t},{name:"callback",type:Function,mayBeNull:i}]);if(u)throw u;for(var f in r){u=Function._validateParameter(n[f],r[f],f);if(u)throw u;}},writeProfilerMark:function(n){if(window.msWriteProfilerMark){window.msWriteProfilerMark(n);OsfMsAjaxFactory.msAjaxDebug.trace(n)}},outputDebug:function(n){typeof OsfMsAjaxFactory!==c&&OsfMsAjaxFactory.msAjaxDebug&&OsfMsAjaxFactory.msAjaxDebug.trace&&OsfMsAjaxFactory.msAjaxDebug.trace(n)},defineNondefaultProperty:function(n,t,r,u){r=r||{};for(var e in u){var f=u[e];r[f]==undefined&&(r[f]=i)}Object.defineProperty(n,t,r);return n},defineNondefaultProperties:function(n,t,i){t=t||{};for(var r in t)OSF.OUtil.defineNondefaultProperty(n,r,t[r],i);return n},defineEnumerableProperty:function(n,t,i){return OSF.OUtil.defineNondefaultProperty(n,t,i,[h])},defineEnumerableProperties:function(n,t){return OSF.OUtil.defineNondefaultProperties(n,t,[h])},defineMutableProperty:function(n,t,i){return OSF.OUtil.defineNondefaultProperty(n,t,i,[it,h,tt])},defineMutableProperties:function(n,t){return OSF.OUtil.defineNondefaultProperties(n,t,[it,h,tt])},finalizeProperties:function(n,r){r=r||{};for(var o=Object.getOwnPropertyNames(n),s=o.length,f=0;f<s;f++){var e=o[f],u=Object.getOwnPropertyDescriptor(n,e);u.get||u.set||(u.writable=r.writable||t);u.configurable=r.configurable||t;u.enumerable=r.enumerable||i;Object.defineProperty(n,e,u)}return n},mapList:function(n,t){var i=[];if(n)for(var r in n)i.push(t(n[r]));return i},listContainsKey:function(n,r){for(var u in n)if(r==u)return i;return t},listContainsValue:function(n,r){for(var u in n)if(r==n[u])return i;return t},augmentList:function(n,t){var r=n.push?function(t,i){n.push(i)}:function(t,i){n[t]=i};for(var i in t)r(i,t[i])},redefineList:function(n,t){for(var r in n)delete n[r];for(var i in t)n[i]=t[i]},isArray:function(n){return Object.prototype.toString.apply(n)==="[object Array]"},isFunction:function(n){return Object.prototype.toString.apply(n)==="[object Function]"},isDate:function(n){return Object.prototype.toString.apply(n)==="[object Date]"},addEventListener:function(n,i,r){n.addEventListener?n.addEventListener(i,r,t):Sys.Browser.agent===Sys.Browser.InternetExplorer&&n.attachEvent?n.attachEvent(s+i,r):n[s+i]=r},removeEventListener:function(i,r,u){i.removeEventListener?i.removeEventListener(r,u,t):Sys.Browser.agent===Sys.Browser.InternetExplorer&&i.detachEvent?i.detachEvent(s+r,u):i[s+r]=n},getCookieValue:function(n){var t=RegExp(n+"[^;]+").exec(document.cookie);return t.toString().replace(/^[^=]+./,u)},xhrGet:function(n,t,r){var u;try{u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState==4&&(u.status==200?t(u.responseText):r(u.status))};u.open("GET",n,i);u.send()}catch(f){r(f)}},xhrGetFull:function(n,t,r,u){var f,e=t;try{f=new XMLHttpRequest;f.onreadystatechange=function(){f.readyState==4&&(f.status==200?r(f,e):u(f.status))};f.open("GET",n,i);f.send()}catch(o){u(o)}},encodeBase64:function(n){if(!n)return n;var v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=[],i=[],s=0,l,o,h,r,f,e,t,y=n.length;do{l=n.charCodeAt(s++);o=n.charCodeAt(s++);h=n.charCodeAt(s++);t=0;r=l&255;f=l>>8;e=o&255;i[t++]=r>>2;i[t++]=(r&3)<<4|f>>4;i[t++]=(f&15)<<2|e>>6;i[t++]=e&63;if(!isNaN(o)){r=o>>8;f=h&255;e=h>>8;i[t++]=r>>2;i[t++]=(r&3)<<4|f>>4;i[t++]=(f&15)<<2|e>>6;i[t++]=e&63}if(isNaN(o))i[t-1]=64;else if(isNaN(h)){i[t-2]=64;i[t-1]=64}for(var c=0;c<t;c++)a.push(v.charAt(i[c]))}while(s<y);return a.join(u)},getSessionStorage:function(){return p()},getLocalStorage:function(){if(!l){try{var t=window.localStorage}catch(i){t=n}l=new OfficeExt.SafeStorage(t)}return l},convertIntToCssHexColor:function(n){return"#"+(Number(n)+16777216).toString(16).slice(-6)},attachClickHandler:function(n,t){n.onclick=function(){t()};n.ontouchend=function(n){t();n.preventDefault()}},getQueryStringParamValue:function(n,i){var f=Function._validateParams(arguments,[{name:"queryString",type:String,mayBeNull:t},{name:"paramName",type:String,mayBeNull:t}]);if(f){OsfMsAjaxFactory.msAjaxDebug.trace("OSF_Outil_getQueryStringParamValue: Parameters cannot be null.");return u}var r=new RegExp("[\\?&]"+i+"=([^&#]*)","i");if(!r.test(n)){OsfMsAjaxFactory.msAjaxDebug.trace("OSF_Outil_getQueryStringParamValue: The parameter is not found.");return u}return r.exec(n)[1]},isiOS:function(){return window.navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?i:t},isChrome:function(){return window.navigator.userAgent.indexOf("Chrome")>0&&!OSF.OUtil.isEdge()},isEdge:function(){return window.navigator.userAgent.indexOf("Edge")>0},isIE:function(){return window.navigator.userAgent.indexOf("Trident")>0},isFirefox:function(){return window.navigator.userAgent.indexOf("Firefox")>0},shallowCopy:function(t){if(t==n)return n;else if(t instanceof Object)if(Array.isArray(t)){for(var u=[],r=0;r<t.length;r++)u.push(t[r]);return u}else{var f=t.constructor();for(var i in t)t.hasOwnProperty(i)&&(f[i]=t[i]);return f}else return t},createObject:function(t){var r=n;if(t){r={};for(var u=t.length,i=0;i<u;i++)r[t[i].name]=t[i].value}return r},addClass:function(n,t){if(!OSF.OUtil.hasClass(n,t)){var i=n.getAttribute(f);i?n.setAttribute(f,i+" "+t):n.setAttribute(f,t)}},removeClass:function(n,t){if(OSF.OUtil.hasClass(n,t)){var i=n.getAttribute(f),r=new RegExp("(\\s|^)"+t+"(\\s|$)");i=i.replace(r,u);n.setAttribute(f,i)}},hasClass:function(n,t){var i=n.getAttribute(f);return i&&i.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))},focusToFirstTabbable:function(u,f){var s,h=t,e,c=function(){h=i},l=function(n,t,i){if(t<0||t>n)return r;else if(t===0&&i)return r;else if(t===n-1&&!i)return r;return i?t-1:t+1};u=d(u);s=f?u.length-1:0;if(u.length===0)return n;while(!h&&s>=0&&s<u.length){e=u[s];window.focus();e.addEventListener(o,c);e.focus();e.removeEventListener(o,c);s=l(u.length,s,f);h||e!==document.activeElement||(h=i)}return h?e:n},focusToNextTabbable:function(u,f,e){var v,s,c=t,h,a=function(){c=i},y=function(n,t){for(var i=0;i<n.length;i++)if(n[i]===t)return i;return r},l=function(n,t,i){if(t<0||t>n)return r;else if(t===0&&i)return r;else if(t===n-1&&!i)return r;return i?t-1:t+1};u=d(u);v=y(u,f);s=l(u.length,v,e);if(s<0)return n;while(!c&&s>=0&&s<u.length){h=u[s];h.addEventListener(o,a);h.focus();h.removeEventListener(o,a);s=l(u.length,s,e);c||h!==document.activeElement||(c=i)}return c?h:n}}}();OSF.OUtil.Guid=function(){var n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];return{generateNewGuid:function(){for(var i="",r=+new Date,t=0;t<32&&r>0;t++){(t==8||t==12||t==16||t==20)&&(i+="-");i+=n[r%16];r=Math.floor(r/16)}for(;t<32;t++){(t==8||t==12||t==16||t==20)&&(i+="-");i+=n[Math.floor(Math.random()*16)]}return i}}}();window.OSF=OSF;OSF.OUtil.setNamespace("OSF",window);OSF.MessageIDs={FetchBundleUrl:0,LoadReactBundle:1,LoadBundleSuccess:2,LoadBundleError:3};OSF.AppName={Unsupported:0,Excel:1,Word:2,PowerPoint:4,Outlook:8,ExcelWebApp:16,WordWebApp:32,OutlookWebApp:64,Project:128,AccessWebApp:256,PowerpointWebApp:512,ExcelIOS:1024,Sway:2048,WordIOS:4096,PowerPointIOS:8192,Access:16384,Lync:32768,OutlookIOS:65536,OneNoteWebApp:131072,OneNote:262144,ExcelWinRT:524288,WordWinRT:1048576,PowerpointWinRT:2097152,OutlookAndroid:4194304,OneNoteWinRT:8388608,ExcelAndroid:8388609,VisioWebApp:8388610,OneNoteIOS:8388611,WordAndroid:8388613,PowerpointAndroid:8388614,Visio:8388615,OneNoteAndroid:4194305};OSF.InternalPerfMarker={DataCoercionBegin:"Agave.HostCall.CoerceDataStart",DataCoercionEnd:"Agave.HostCall.CoerceDataEnd"};OSF.HostCallPerfMarker={IssueCall:"Agave.HostCall.IssueCall",ReceiveResponse:"Agave.HostCall.ReceiveResponse",RuntimeExceptionRaised:"Agave.HostCall.RuntimeExecptionRaised"};OSF.AgaveHostAction={Select:0,UnSelect:1,CancelDialog:2,InsertAgave:3,CtrlF6In:4,CtrlF6Exit:5,CtrlF6ExitShift:6,SelectWithError:7,NotifyHostError:8,RefreshAddinCommands:9,PageIsReady:10,TabIn:11,TabInShift:12,TabExit:13,TabExitShift:14,EscExit:15,F2Exit:16,ExitNoFocusable:17,ExitNoFocusableShift:18,MouseEnter:19,MouseLeave:20,UpdateTargetUrl:21,InstallCustomFunctions:22,SendTelemetryEvent:23,UninstallCustomFunctions:24};OSF.SharedConstants={NotificationConversationIdSuffix:"_ntf"};OSF.DialogMessageType={DialogMessageReceived:0,DialogParentMessageReceived:1,DialogClosed:12006};OSF.OfficeAppContext=function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt,it){var rt=this;rt._id=n;rt._appName=t;rt._appVersion=i;rt._appUILocale=r;rt._dataLocale=u;rt._docUrl=f;rt._clientMode=e;rt._settings=o;rt._reason=s;rt._osfControlType=h;rt._eToken=c;rt._correlationId=l;rt._appInstanceId=a;rt._touchEnabled=v;rt._commerceAllowed=y;rt._appMinorVersion=p;rt._requirementMatrix=w;rt._hostCustomMessage=b;rt._hostFullVersion=k;rt._isDialog=!1;rt._clientWindowHeight=d;rt._clientWindowWidth=g;rt._addinName=nt;rt._appDomains=tt;rt._dialogRequirementMatrix=it;rt.get_id=function(){return this._id};rt.get_appName=function(){return this._appName};rt.get_appVersion=function(){return this._appVersion};rt.get_appUILocale=function(){return this._appUILocale};rt.get_dataLocale=function(){return this._dataLocale};rt.get_docUrl=function(){return this._docUrl};rt.get_clientMode=function(){return this._clientMode};rt.get_bindings=function(){return this._bindings};rt.get_settings=function(){return this._settings};rt.get_reason=function(){return this._reason};rt.get_osfControlType=function(){return this._osfControlType};rt.get_eToken=function(){return this._eToken};rt.get_correlationId=function(){return this._correlationId};rt.get_appInstanceId=function(){return this._appInstanceId};rt.get_touchEnabled=function(){return this._touchEnabled};rt.get_commerceAllowed=function(){return this._commerceAllowed};rt.get_appMinorVersion=function(){return this._appMinorVersion};rt.get_requirementMatrix=function(){return this._requirementMatrix};rt.get_dialogRequirementMatrix=function(){return this._dialogRequirementMatrix};rt.get_hostCustomMessage=function(){return this._hostCustomMessage};rt.get_hostFullVersion=function(){return this._hostFullVersion};rt.get_isDialog=function(){return this._isDialog};rt.get_clientWindowHeight=function(){return this._clientWindowHeight};rt.get_clientWindowWidth=function(){return this._clientWindowWidth};rt.get_addinName=function(){return this._addinName};rt.get_appDomains=function(){return this._appDomains}};OSF.OsfControlType={DocumentLevel:0,ContainerLevel:1};OSF.ClientMode={ReadOnly:0,ReadWrite:1};OSF.OUtil.setNamespace("Microsoft",window);OSF.OUtil.setNamespace("Office",Microsoft);OSF.OUtil.setNamespace("Client",Microsoft.Office);OSF.OUtil.setNamespace("WebExtension",Microsoft.Office);Microsoft.Office.WebExtension.InitializationReason={Inserted:"inserted",DocumentOpened:"documentOpened"};Microsoft.Office.WebExtension.ValueFormat={Unformatted:"unformatted",Formatted:"formatted"};Microsoft.Office.WebExtension.FilterType={All:"all"};Microsoft.Office.WebExtension.Parameters={BindingType:"bindingType",CoercionType:"coercionType",ValueFormat:"valueFormat",FilterType:"filterType",Columns:"columns",SampleData:"sampleData",GoToType:"goToType",SelectionMode:"selectionMode",Id:"id",PromptText:"promptText",ItemName:"itemName",FailOnCollision:"failOnCollision",StartRow:"startRow",StartColumn:"startColumn",RowCount:"rowCount",ColumnCount:"columnCount",Callback:"callback",AsyncContext:"asyncContext",Data:"data",Rows:"rows",OverwriteIfStale:"overwriteIfStale",FileType:"fileType",EventType:"eventType",Handler:"handler",SliceSize:"sliceSize",SliceIndex:"sliceIndex",ActiveView:"activeView",Status:"status",PlatformType:"platformType",HostType:"hostType",ForceConsent:"forceConsent",ForceAddAccount:"forceAddAccount",AuthChallenge:"authChallenge",Reserved:"reserved",Tcid:"tcid",Xml:"xml",Namespace:"namespace",Prefix:"prefix",XPath:"xPath",Text:"text",ImageLeft:"imageLeft",ImageTop:"imageTop",ImageWidth:"imageWidth",ImageHeight:"imageHeight",TaskId:"taskId",FieldId:"fieldId",FieldValue:"fieldValue",ServerUrl:"serverUrl",ListName:"listName",ResourceId:"resourceId",ViewType:"viewType",ViewName:"viewName",GetRawValue:"getRawValue",CellFormat:"cellFormat",TableOptions:"tableOptions",TaskIndex:"taskIndex",ResourceIndex:"resourceIndex",CustomFieldId:"customFieldId",Url:"url",MessageHandler:"messageHandler",Width:"width",Height:"height",RequireHTTPs:"requireHTTPS",MessageToParent:"messageToParent",DisplayInIframe:"displayInIframe",MessageContent:"messageContent",HideTitle:"hideTitle",UseDeviceIndependentPixels:"useDeviceIndependentPixels",PromptBeforeOpen:"promptBeforeOpen",AppCommandInvocationCompletedData:"appCommandInvocationCompletedData",Base64:"base64",FormId:"formId"};OSF.OUtil.setNamespace("DDA",OSF);OSF.DDA.DocumentMode={ReadOnly:1,ReadWrite:0};OSF.DDA.PropertyDescriptors={AsyncResultStatus:"AsyncResultStatus"};OSF.DDA.EventDescriptors={};OSF.DDA.ListDescriptors={};OSF.DDA.UI={};OSF.DDA.getXdmEventName=function(n,t){return t==Microsoft.Office.WebExtension.EventType.BindingSelectionChanged||t==Microsoft.Office.WebExtension.EventType.BindingDataChanged||t==Microsoft.Office.WebExtension.EventType.DataNodeDeleted||t==Microsoft.Office.WebExtension.EventType.DataNodeInserted||t==Microsoft.Office.WebExtension.EventType.DataNodeReplaced?n+"_"+t:t};OSF.DDA.MethodDispId={dispidMethodMin:64,dispidGetSelectedDataMethod:64,dispidSetSelectedDataMethod:65,dispidAddBindingFromSelectionMethod:66,dispidAddBindingFromPromptMethod:67,dispidGetBindingMethod:68,dispidReleaseBindingMethod:69,dispidGetBindingDataMethod:70,dispidSetBindingDataMethod:71,dispidAddRowsMethod:72,dispidClearAllRowsMethod:73,dispidGetAllBindingsMethod:74,dispidLoadSettingsMethod:75,dispidSaveSettingsMethod:76,dispidGetDocumentCopyMethod:77,dispidAddBindingFromNamedItemMethod:78,dispidAddColumnsMethod:79,dispidGetDocumentCopyChunkMethod:80,dispidReleaseDocumentCopyMethod:81,dispidNavigateToMethod:82,dispidGetActiveViewMethod:83,dispidGetDocumentThemeMethod:84,dispidGetOfficeThemeMethod:85,dispidGetFilePropertiesMethod:86,dispidClearFormatsMethod:87,dispidSetTableOptionsMethod:88,dispidSetFormatsMethod:89,dispidExecuteRichApiRequestMethod:93,dispidAppCommandInvocationCompletedMethod:94,dispidCloseContainerMethod:97,dispidGetAccessTokenMethod:98,dispidOpenBrowserWindow:102,dispidCreateDocumentMethod:105,dispidInsertFormMethod:106,dispidDisplayRibbonCalloutAsyncMethod:109,dispidGetSelectedTaskMethod:110,dispidGetSelectedResourceMethod:111,dispidGetTaskMethod:112,dispidGetResourceFieldMethod:113,dispidGetWSSUrlMethod:114,dispidGetTaskFieldMethod:115,dispidGetProjectFieldMethod:116,dispidGetSelectedViewMethod:117,dispidGetTaskByIndexMethod:118,dispidGetResourceByIndexMethod:119,dispidSetTaskFieldMethod:120,dispidSetResourceFieldMethod:121,dispidGetMaxTaskIndexMethod:122,dispidGetMaxResourceIndexMethod:123,dispidCreateTaskMethod:124,dispidAddDataPartMethod:128,dispidGetDataPartByIdMethod:129,dispidGetDataPartsByNamespaceMethod:130,dispidGetDataPartXmlMethod:131,dispidGetDataPartNodesMethod:132,dispidDeleteDataPartMethod:133,dispidGetDataNodeValueMethod:134,dispidGetDataNodeXmlMethod:135,dispidGetDataNodesMethod:136,dispidSetDataNodeValueMethod:137,dispidSetDataNodeXmlMethod:138,dispidAddDataNamespaceMethod:139,dispidGetDataUriByPrefixMethod:140,dispidGetDataPrefixByUriMethod:141,dispidGetDataNodeTextMethod:142,dispidSetDataNodeTextMethod:143,dispidMessageParentMethod:144,dispidSendMessageMethod:145,dispidExecuteFeature:146,dispidQueryFeature:147,dispidMethodMax:147};OSF.DDA.EventDispId={dispidEventMin:0,dispidInitializeEvent:0,dispidSettingsChangedEvent:1,dispidDocumentSelectionChangedEvent:2,dispidBindingSelectionChangedEvent:3,dispidBindingDataChangedEvent:4,dispidDocumentOpenEvent:5,dispidDocumentCloseEvent:6,dispidActiveViewChangedEvent:7,dispidDocumentThemeChangedEvent:8,dispidOfficeThemeChangedEvent:9,dispidDialogMessageReceivedEvent:10,dispidDialogNotificationShownInAddinEvent:11,dispidDialogParentMessageReceivedEvent:12,dispidObjectDeletedEvent:13,dispidObjectSelectionChangedEvent:14,dispidObjectDataChangedEvent:15,dispidContentControlAddedEvent:16,dispidActivationStatusChangedEvent:32,dispidRichApiMessageEvent:33,dispidAppCommandInvokedEvent:39,dispidOlkItemSelectedChangedEvent:46,dispidOlkRecipientsChangedEvent:47,dispidOlkAppointmentTimeChangedEvent:48,dispidOlkRecurrenceChangedEvent:49,dispidOlkAttachmentsChangedEvent:50,dispidOlkEnhancedLocationsChangedEvent:51,dispidTaskSelectionChangedEvent:56,dispidResourceSelectionChangedEvent:57,dispidViewSelectionChangedEvent:58,dispidDataNodeAddedEvent:60,dispidDataNodeReplacedEvent:61,dispidDataNodeDeletedEvent:62,dispidEventMax:63};OSF.DDA.ErrorCodeManager=function(){var n={};return{getErrorArgs:function(t){var i=n[t];if(i){i.name||(i.name=n[this.errorCodes.ooeInternalError].name);i.message||(i.message=n[this.errorCodes.ooeInternalError].message)}else i=n[this.errorCodes.ooeInternalError];return i},addErrorMessage:function(t,i){n[t]=i},errorCodes:{ooeSuccess:0,ooeChunkResult:1,ooeCoercionTypeNotSupported:1e3,ooeGetSelectionNotMatchDataType:1001,ooeCoercionTypeNotMatchBinding:1002,ooeInvalidGetRowColumnCounts:1003,ooeSelectionNotSupportCoercionType:1004,ooeInvalidGetStartRowColumn:1005,ooeNonUniformPartialGetNotSupported:1006,ooeGetDataIsTooLarge:1008,ooeFileTypeNotSupported:1009,ooeGetDataParametersConflict:1010,ooeInvalidGetColumns:1011,ooeInvalidGetRows:1012,ooeInvalidReadForBlankRow:1013,ooeUnsupportedDataObject:2e3,ooeCannotWriteToSelection:2001,ooeDataNotMatchSelection:2002,ooeOverwriteWorksheetData:2003,ooeDataNotMatchBindingSize:2004,ooeInvalidSetStartRowColumn:2005,ooeInvalidDataFormat:2006,ooeDataNotMatchCoercionType:2007,ooeDataNotMatchBindingType:2008,ooeSetDataIsTooLarge:2009,ooeNonUniformPartialSetNotSupported:2010,ooeInvalidSetColumns:2011,ooeInvalidSetRows:2012,ooeSetDataParametersConflict:2013,ooeCellDataAmountBeyondLimits:2014,ooeSelectionCannotBound:3e3,ooeBindingNotExist:3002,ooeBindingToMultipleSelection:3003,ooeInvalidSelectionForBindingType:3004,ooeOperationNotSupportedOnThisBindingType:3005,ooeNamedItemNotFound:3006,ooeMultipleNamedItemFound:3007,ooeInvalidNamedItemForBindingType:3008,ooeUnknownBindingType:3009,ooeOperationNotSupportedOnMatrixData:3010,ooeInvalidColumnsForBinding:3011,ooeSettingNameNotExist:4e3,ooeSettingsCannotSave:4001,ooeSettingsAreStale:4002,ooeOperationNotSupported:5e3,ooeInternalError:5001,ooeDocumentReadOnly:5002,ooeEventHandlerNotExist:5003,ooeInvalidApiCallInContext:5004,ooeShuttingDown:5005,ooeUnsupportedEnumeration:5007,ooeIndexOutOfRange:5008,ooeBrowserAPINotSupported:5009,ooeInvalidParam:5010,ooeRequestTimeout:5011,ooeInvalidOrTimedOutSession:5012,ooeInvalidApiArguments:5013,ooeOperationCancelled:5014,ooeTooManyIncompleteRequests:5100,ooeRequestTokenUnavailable:5101,ooeActivityLimitReached:5102,ooeCustomXmlNodeNotFound:6e3,ooeCustomXmlError:6100,ooeCustomXmlExceedQuota:6101,ooeCustomXmlOutOfDate:6102,ooeNoCapability:7e3,ooeCannotNavTo:7001,ooeSpecifiedIdNotExist:7002,ooeNavOutOfBound:7004,ooeElementMissing:8e3,ooeProtectedError:8001,ooeInvalidCellsValue:8010,ooeInvalidTableOptionValue:8011,ooeInvalidFormatValue:8012,ooeRowIndexOutOfRange:8020,ooeColIndexOutOfRange:8021,ooeFormatValueOutOfRange:8022,ooeCellFormatAmountBeyondLimits:8023,ooeMemoryFileLimit:11e3,ooeNetworkProblemRetrieveFile:11001,ooeInvalidSliceSize:11002,ooeInvalidCallback:11101,ooeInvalidWidth:12e3,ooeInvalidHeight:12001,ooeNavigationError:12002,ooeInvalidScheme:12003,ooeAppDomains:12004,ooeRequireHTTPS:12005,ooeWebDialogClosed:12006,ooeDialogAlreadyOpened:12007,ooeEndUserAllow:12008,ooeEndUserIgnore:12009,ooeNotUILessDialog:12010,ooeCrossZone:12011,ooeNotSSOAgave:13e3,ooeSSOUserNotSignedIn:13001,ooeSSOUserAborted:13002,ooeSSOUnsupportedUserIdentity:13003,ooeSSOInvalidResourceUrl:13004,ooeSSOInvalidGrant:13005,ooeSSOClientError:13006,ooeSSOServerError:13007,ooeAddinIsAlreadyRequestingToken:13008,ooeSSOUserConsentNotSupportedByCurrentAddinCategory:13009,ooeSSOConnectionLost:13010,ooeResourceNotAllowed:13011,ooeSSOUnsupportedPlatform:13012,ooeAccessDenied:13990,ooeGeneralException:13991},initializeErrorMessages:function(t){n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCoercionTypeNotSupported]={name:t.L_InvalidCoercion,message:t.L_CoercionTypeNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeGetSelectionNotMatchDataType]={name:t.L_DataReadError,message:t.L_GetSelectionNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCoercionTypeNotMatchBinding]={name:t.L_InvalidCoercion,message:t.L_CoercionTypeNotMatchBinding};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetRowColumnCounts]={name:t.L_DataReadError,message:t.L_InvalidGetRowColumnCounts};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSelectionNotSupportCoercionType]={name:t.L_DataReadError,message:t.L_SelectionNotSupportCoercionType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetStartRowColumn]={name:t.L_DataReadError,message:t.L_InvalidGetStartRowColumn};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNonUniformPartialGetNotSupported]={name:t.L_DataReadError,message:t.L_NonUniformPartialGetNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeGetDataIsTooLarge]={name:t.L_DataReadError,message:t.L_GetDataIsTooLarge};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeFileTypeNotSupported]={name:t.L_DataReadError,message:t.L_FileTypeNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeGetDataParametersConflict]={name:t.L_DataReadError,message:t.L_GetDataParametersConflict};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetColumns]={name:t.L_DataReadError,message:t.L_InvalidGetColumns};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetRows]={name:t.L_DataReadError,message:t.L_InvalidGetRows};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidReadForBlankRow]={name:t.L_DataReadError,message:t.L_InvalidReadForBlankRow};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedDataObject]={name:t.L_DataWriteError,message:t.L_UnsupportedDataObject};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCannotWriteToSelection]={name:t.L_DataWriteError,message:t.L_CannotWriteToSelection};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchSelection]={name:t.L_DataWriteError,message:t.L_DataNotMatchSelection};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeOverwriteWorksheetData]={name:t.L_DataWriteError,message:t.L_OverwriteWorksheetData};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchBindingSize]={name:t.L_DataWriteError,message:t.L_DataNotMatchBindingSize};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSetStartRowColumn]={name:t.L_DataWriteError,message:t.L_InvalidSetStartRowColumn};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidDataFormat]={name:t.L_InvalidFormat,message:t.L_InvalidDataFormat};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchCoercionType]={name:t.L_InvalidDataObject,message:t.L_DataNotMatchCoercionType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchBindingType]={name:t.L_InvalidDataObject,message:t.L_DataNotMatchBindingType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSetDataIsTooLarge]={name:t.L_DataWriteError,message:t.L_SetDataIsTooLarge};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNonUniformPartialSetNotSupported]={name:t.L_DataWriteError,message:t.L_NonUniformPartialSetNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSetColumns]={name:t.L_DataWriteError,message:t.L_InvalidSetColumns};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSetRows]={name:t.L_DataWriteError,message:t.L_InvalidSetRows};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSetDataParametersConflict]={name:t.L_DataWriteError,message:t.L_SetDataParametersConflict};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSelectionCannotBound]={name:t.L_BindingCreationError,message:t.L_SelectionCannotBound};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeBindingNotExist]={name:t.L_InvalidBindingError,message:t.L_BindingNotExist};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeBindingToMultipleSelection]={name:t.L_BindingCreationError,message:t.L_BindingToMultipleSelection};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSelectionForBindingType]={name:t.L_BindingCreationError,message:t.L_InvalidSelectionForBindingType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationNotSupportedOnThisBindingType]={name:t.L_InvalidBindingOperation,message:t.L_OperationNotSupportedOnThisBindingType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNamedItemNotFound]={name:t.L_BindingCreationError,message:t.L_NamedItemNotFound};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeMultipleNamedItemFound]={name:t.L_BindingCreationError,message:t.L_MultipleNamedItemFound};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidNamedItemForBindingType]={name:t.L_BindingCreationError,message:t.L_InvalidNamedItemForBindingType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeUnknownBindingType]={name:t.L_InvalidBinding,message:t.L_UnknownBindingType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationNotSupportedOnMatrixData]={name:t.L_InvalidBindingOperation,message:t.L_OperationNotSupportedOnMatrixData};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidColumnsForBinding]={name:t.L_InvalidBinding,message:t.L_InvalidColumnsForBinding};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSettingNameNotExist]={name:t.L_ReadSettingsError,message:t.L_SettingNameNotExist};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSettingsCannotSave]={name:t.L_SaveSettingsError,message:t.L_SettingsCannotSave};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSettingsAreStale]={name:t.L_SettingsStaleError,message:t.L_SettingsAreStale};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationNotSupported]={name:t.L_HostError,message:t.L_OperationNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError]={name:t.L_InternalError,message:t.L_InternalErrorDescription};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDocumentReadOnly]={name:t.L_PermissionDenied,message:t.L_DocumentReadOnly};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeEventHandlerNotExist]={name:t.L_EventRegistrationError,message:t.L_EventHandlerNotExist};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiCallInContext]={name:t.L_InvalidAPICall,message:t.L_InvalidApiCallInContext};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeShuttingDown]={name:t.L_ShuttingDown,message:t.L_ShuttingDown};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedEnumeration]={name:t.L_UnsupportedEnumeration,message:t.L_UnsupportedEnumerationMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeIndexOutOfRange]={name:t.L_IndexOutOfRange,message:t.L_IndexOutOfRange};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeBrowserAPINotSupported]={name:t.L_APINotSupported,message:t.L_BrowserAPINotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeRequestTimeout]={name:t.L_APICallFailed,message:t.L_RequestTimeout};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidOrTimedOutSession]={name:t.L_InvalidOrTimedOutSession,message:t.L_InvalidOrTimedOutSessionMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeTooManyIncompleteRequests]={name:t.L_APICallFailed,message:t.L_TooManyIncompleteRequests};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeRequestTokenUnavailable]={name:t.L_APICallFailed,message:t.L_RequestTokenUnavailable};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeActivityLimitReached]={name:t.L_APICallFailed,message:t.L_ActivityLimitReached};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiArguments]={name:t.L_APICallFailed,message:t.L_InvalidApiArgumentsMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlNodeNotFound]={name:t.L_InvalidNode,message:t.L_CustomXmlNodeNotFound};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlError]={name:t.L_CustomXmlError,message:t.L_CustomXmlError};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlExceedQuota]={name:t.L_CustomXmlExceedQuotaName,message:t.L_CustomXmlExceedQuotaMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlOutOfDate]={name:t.L_CustomXmlOutOfDateName,message:t.L_CustomXmlOutOfDateMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNoCapability]={name:t.L_PermissionDenied,message:t.L_NoCapability};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCannotNavTo]={name:t.L_CannotNavigateTo,message:t.L_CannotNavigateTo};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSpecifiedIdNotExist]={name:t.L_SpecifiedIdNotExist,message:t.L_SpecifiedIdNotExist};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNavOutOfBound]={name:t.L_NavOutOfBound,message:t.L_NavOutOfBound};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCellDataAmountBeyondLimits]={name:t.L_DataWriteReminder,message:t.L_CellDataAmountBeyondLimits};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeElementMissing]={name:t.L_MissingParameter,message:t.L_ElementMissing};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeProtectedError]={name:t.L_PermissionDenied,message:t.L_NoCapability};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidCellsValue]={name:t.L_InvalidValue,message:t.L_InvalidCellsValue};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidTableOptionValue]={name:t.L_InvalidValue,message:t.L_InvalidTableOptionValue};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidFormatValue]={name:t.L_InvalidValue,message:t.L_InvalidFormatValue};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeRowIndexOutOfRange]={name:t.L_OutOfRange,message:t.L_RowIndexOutOfRange};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeColIndexOutOfRange]={name:t.L_OutOfRange,message:t.L_ColIndexOutOfRange};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeFormatValueOutOfRange]={name:t.L_OutOfRange,message:t.L_FormatValueOutOfRange};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCellFormatAmountBeyondLimits]={name:t.L_FormattingReminder,message:t.L_CellFormatAmountBeyondLimits};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeMemoryFileLimit]={name:t.L_MemoryLimit,message:t.L_CloseFileBeforeRetrieve};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNetworkProblemRetrieveFile]={name:t.L_NetworkProblem,message:t.L_NetworkProblemRetrieveFile};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSliceSize]={name:t.L_InvalidValue,message:t.L_SliceSizeNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDialogAlreadyOpened]={name:t.L_DisplayDialogError,message:t.L_DialogAlreadyOpened};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidWidth]={name:t.L_IndexOutOfRange,message:t.L_IndexOutOfRange};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidHeight]={name:t.L_IndexOutOfRange,message:t.L_IndexOutOfRange};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNavigationError]={name:t.L_DisplayDialogError,message:t.L_NetworkProblem};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidScheme]={name:t.L_DialogNavigateError,message:t.L_DialogInvalidScheme};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeAppDomains]={name:t.L_DisplayDialogError,message:t.L_DialogAddressNotTrusted};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeRequireHTTPS]={name:t.L_DisplayDialogError,message:t.L_DialogRequireHTTPS};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeEndUserIgnore]={name:t.L_DisplayDialogError,message:t.L_UserClickIgnore};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCrossZone]={name:t.L_DisplayDialogError,message:t.L_NewWindowCrossZoneErrorString};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNotSSOAgave]={name:t.L_APINotSupported,message:t.L_InvalidSSOAddinMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOUserNotSignedIn]={name:t.L_UserNotSignedIn,message:t.L_UserNotSignedIn};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOUserAborted]={name:t.L_UserAborted,message:t.L_UserAbortedMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOUnsupportedUserIdentity]={name:t.L_UnsupportedUserIdentity,message:t.L_UnsupportedUserIdentityMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOInvalidResourceUrl]={name:t.L_InvalidResourceUrl,message:t.L_InvalidResourceUrlMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOInvalidGrant]={name:t.L_InvalidGrant,message:t.L_InvalidGrantMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOClientError]={name:t.L_SSOClientError,message:t.L_SSOClientErrorMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOServerError]={name:t.L_SSOServerError,message:t.L_SSOServerErrorMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeAddinIsAlreadyRequestingToken]={name:t.L_AddinIsAlreadyRequestingToken,message:t.L_AddinIsAlreadyRequestingTokenMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOUserConsentNotSupportedByCurrentAddinCategory]={name:t.L_SSOUserConsentNotSupportedByCurrentAddinCategory,message:t.L_SSOUserConsentNotSupportedByCurrentAddinCategoryMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOConnectionLost]={name:t.L_SSOConnectionLostError,message:t.L_SSOConnectionLostErrorMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOUnsupportedPlatform]={name:t.L_SSOConnectionLostError,message:t.L_SSOUnsupportedPlatform};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationCancelled]={name:t.L_OperationCancelledError,message:t.L_OperationCancelledErrorMessage}}}}();var OfficeExt;(function(n){var t;(function(n){var t=1.1,ut=function(){function n(){}return n}();n.RequirementVersion=ut;var r=function(){function n(n){var t=this;t.isSetSupported=function(n,t){if(n==undefined)return!1;t==undefined&&(t=0);var f=this._setMap,u=f._sets;if(u.hasOwnProperty(n.toLowerCase())){var e=u[n.toLowerCase()];try{var i=this._getVersion(e);t=t+"";var r=this._getVersion(t);if(i.major>0&&i.major>r.major||i.minor>0&&i.minor>0&&i.major==r.major&&i.minor>=r.minor)return!0}catch(o){return!1}}return!1};t._getVersion=function(n){var u="version format incorrect";n=n+"";var t=n.split("."),r=0,i=0;if(t.length<2&&isNaN(Number(n)))throw u;else{r=Number(t[0]);t.length>=2&&(i=Number(t[1]));if(isNaN(r)||isNaN(i))throw u;}return{minor:i,major:r}};t._setMap=n;t.isSetSupported=t.isSetSupported.bind(t)}return n}();n.RequirementMatrix=r;var i=function(){function n(n){this._addSetMap=function(n){for(var t in n)this._sets[t]=n[t]};this._sets=n}return n}();n.DefaultSetRequirement=i;var k=function(n){__extends(i,n);function i(){n.call(this,{dialogapi:t})}return i}(i);n.DefaultDialogSetRequirement=k;var o=function(n){__extends(i,n);function i(){n.call(this,{bindingevents:t,documentevents:t,excelapi:t,matrixbindings:t,matrixcoercion:t,selection:t,settings:t,tablebindings:t,tablecoercion:t,textbindings:t,textcoercion:t})}return i}(i);n.ExcelClientDefaultSetRequirement=o;var d=function(n){__extends(i,n);function i(){n.call(this);this._addSetMap({imagecoercion:t})}return i}(o);n.ExcelClientV1DefaultSetRequirement=d;var w=function(n){__extends(t,n);function t(){n.call(this,{mailbox:1.3})}return t}(i);n.OutlookClientDefaultSetRequirement=w;var f=function(n){__extends(i,n);function i(){n.call(this,{bindingevents:t,compressedfile:t,customxmlparts:t,documentevents:t,file:t,htmlcoercion:t,matrixbindings:t,matrixcoercion:t,ooxmlcoercion:t,pdffile:t,selection:t,settings:t,tablebindings:t,tablecoercion:t,textbindings:t,textcoercion:t,textfile:t,wordapi:t})}return i}(i);n.WordClientDefaultSetRequirement=f;var b=function(n){__extends(i,n);function i(){n.call(this);this._addSetMap({customxmlparts:1.2,wordapi:1.2,imagecoercion:t})}return i}(f);n.WordClientV1DefaultSetRequirement=b;var e=function(n){__extends(i,n);function i(){n.call(this,{activeview:t,compressedfile:t,documentevents:t,file:t,pdffile:t,selection:t,settings:t,textcoercion:t})}return i}(i);n.PowerpointClientDefaultSetRequirement=e;var tt=function(n){__extends(i,n);function i(){n.call(this);this._addSetMap({imagecoercion:t})}return i}(e);n.PowerpointClientV1DefaultSetRequirement=tt;var it=function(n){__extends(i,n);function i(){n.call(this,{selection:t,textcoercion:t})}return i}(i);n.ProjectClientDefaultSetRequirement=it;var g=function(n){__extends(i,n);function i(){n.call(this,{bindingevents:t,documentevents:t,matrixbindings:t,matrixcoercion:t,selection:t,settings:t,tablebindings:t,tablecoercion:t,textbindings:t,textcoercion:t,file:t})}return i}(i);n.ExcelWebDefaultSetRequirement=g;var nt=function(n){__extends(i,n);function i(){n.call(this,{compressedfile:t,documentevents:t,file:t,imagecoercion:t,matrixcoercion:t,ooxmlcoercion:t,pdffile:t,selection:t,settings:t,tablecoercion:t,textcoercion:t,textfile:t})}return i}(i);n.WordWebDefaultSetRequirement=nt;var h=function(n){__extends(i,n);function i(){n.call(this,{activeview:t,settings:t})}return i}(i);n.PowerpointWebDefaultSetRequirement=h;var s=function(n){__extends(t,n);function t(){n.call(this,{mailbox:1.3})}return t}(i);n.OutlookWebDefaultSetRequirement=s;var l=function(n){__extends(i,n);function i(){n.call(this,{activeview:t,documentevents:t,selection:t,settings:t,textcoercion:t})}return i}(i);n.SwayWebDefaultSetRequirement=l;var c=function(n){__extends(i,n);function i(){n.call(this,{bindingevents:t,partialtablebindings:t,settings:t,tablebindings:t,tablecoercion:t})}return i}(i);n.AccessWebDefaultSetRequirement=c;var y=function(n){__extends(i,n);function i(){n.call(this,{bindingevents:t,documentevents:t,matrixbindings:t,matrixcoercion:t,selection:t,settings:t,tablebindings:t,tablecoercion:t,textbindings:t,textcoercion:t})}return i}(i);n.ExcelIOSDefaultSetRequirement=y;var u=function(n){__extends(i,n);function i(){n.call(this,{bindingevents:t,compressedfile:t,customxmlparts:t,documentevents:t,file:t,htmlcoercion:t,matrixbindings:t,matrixcoercion:t,ooxmlcoercion:t,pdffile:t,selection:t,settings:t,tablebindings:t,tablecoercion:t,textbindings:t,textcoercion:t,textfile:t})}return i}(i);n.WordIOSDefaultSetRequirement=u;var p=function(n){__extends(t,n);function t(){n.call(this);this._addSetMap({customxmlparts:1.2,wordapi:1.2})}return t}(u);n.WordIOSV1DefaultSetRequirement=p;var a=function(n){__extends(i,n);function i(){n.call(this,{activeview:t,compressedfile:t,documentevents:t,file:t,pdffile:t,selection:t,settings:t,textcoercion:t})}return i}(i);n.PowerpointIOSDefaultSetRequirement=a;var v=function(n){__extends(i,n);function i(){n.call(this,{mailbox:t})}return i}(i);n.OutlookIOSDefaultSetRequirement=v;var rt=function(){var t="undefined";function n(){}n.initializeOsfDda=function(){OSF.OUtil.setNamespace("Requirement",OSF.DDA)};n.getDefaultRequirementMatrix=function(u){this.initializeDefaultSetMatrix();var f=undefined,o=u.get_requirementMatrix();if(o!=undefined&&o.length>0&&typeof JSON!==t){var s=JSON.parse(u.get_requirementMatrix().toLowerCase());f=new r(new i(s))}else{var e=n.getClientFullVersionString(u);f=n.DefaultSetArrayMatrix!=undefined&&n.DefaultSetArrayMatrix[e]!=undefined?new r(n.DefaultSetArrayMatrix[e]):new r(new i({}))}return f};n.getDefaultDialogRequirementMatrix=function(n){var u=undefined,f=n.get_dialogRequirementMatrix();if(f!=undefined&&f.length>0&&typeof JSON!==t){var e=JSON.parse(n.get_requirementMatrix().toLowerCase());u=new r(new i(e))}else u=new r(new k);return u};n.getClientFullVersionString=function(n){var r=n.get_appMinorVersion(),u="",i="",t=n.get_appName(),f=t==1024||t==4096||t==8192||t==65536;if(f&&n.get_appVersion()==1)i=t==4096&&r>=15?"16.00.01":"16.00";else if(n.get_appName()==64)i=n.get_appVersion();else{u=r<10?"0"+r:""+r;i=n.get_appVersion()+"."+u}return n.get_appName()+"-"+i};n.initializeDefaultSetMatrix=function(){n.DefaultSetArrayMatrix[n.Excel_RCLIENT_1600]=new o;n.DefaultSetArrayMatrix[n.Word_RCLIENT_1600]=new f;n.DefaultSetArrayMatrix[n.PowerPoint_RCLIENT_1600]=new e;n.DefaultSetArrayMatrix[n.Excel_RCLIENT_1601]=new d;n.DefaultSetArrayMatrix[n.Word_RCLIENT_1601]=new b;n.DefaultSetArrayMatrix[n.PowerPoint_RCLIENT_1601]=new tt;n.DefaultSetArrayMatrix[n.Outlook_RCLIENT_1600]=new w;n.DefaultSetArrayMatrix[n.Excel_WAC_1600]=new g;n.DefaultSetArrayMatrix[n.Word_WAC_1600]=new nt;n.DefaultSetArrayMatrix[n.Outlook_WAC_1600]=new s;n.DefaultSetArrayMatrix[n.Outlook_WAC_1601]=new s;n.DefaultSetArrayMatrix[n.Project_RCLIENT_1600]=new it;n.DefaultSetArrayMatrix[n.Access_WAC_1600]=new c;n.DefaultSetArrayMatrix[n.PowerPoint_WAC_1600]=new h;n.DefaultSetArrayMatrix[n.Excel_IOS_1600]=new y;n.DefaultSetArrayMatrix[n.SWAY_WAC_1600]=new l;n.DefaultSetArrayMatrix[n.Word_IOS_1600]=new u;n.DefaultSetArrayMatrix[n.Word_IOS_16001]=new p;n.DefaultSetArrayMatrix[n.PowerPoint_IOS_1600]=new a;n.DefaultSetArrayMatrix[n.Outlook_IOS_1600]=new v};n.Excel_RCLIENT_1600="1-16.00";n.Excel_RCLIENT_1601="1-16.01";n.Word_RCLIENT_1600="2-16.00";n.Word_RCLIENT_1601="2-16.01";n.PowerPoint_RCLIENT_1600="4-16.00";n.PowerPoint_RCLIENT_1601="4-16.01";n.Outlook_RCLIENT_1600="8-16.00";n.Excel_WAC_1600="16-16.00";n.Word_WAC_1600="32-16.00";n.Outlook_WAC_1600="64-16.00";n.Outlook_WAC_1601="64-16.01";n.Project_RCLIENT_1600="128-16.00";n.Access_WAC_1600="256-16.00";n.PowerPoint_WAC_1600="512-16.00";n.Excel_IOS_1600="1024-16.00";n.SWAY_WAC_1600="2048-16.00";n.Word_IOS_1600="4096-16.00";n.Word_IOS_16001="4096-16.00.01";n.PowerPoint_IOS_1600="8192-16.00";n.Outlook_IOS_1600="65536-16.00";n.DefaultSetArrayMatrix={};return n}();n.RequirementsMatrixFactory=rt})(t=n.Requirement||(n.Requirement={}))})(OfficeExt||(OfficeExt={}));OfficeExt.Requirement.RequirementsMatrixFactory.initializeOsfDda();Microsoft.Office.WebExtension.ApplicationMode={WebEditor:"webEditor",WebViewer:"webViewer",Client:"client"};Microsoft.Office.WebExtension.DocumentMode={ReadOnly:"readOnly",ReadWrite:"readWrite"};OSF.NamespaceManager=function(){var t,n=!1;return{enableShortcut:function(){if(!n){window.Office?t=window.Office:OSF.OUtil.setNamespace("Office",window);window.Office=Microsoft.Office.WebExtension;n=!0}},disableShortcut:function(){if(n){t?window.Office=t:OSF.OUtil.unsetNamespace("Office",window);n=!1}}}}();OSF.NamespaceManager.enableShortcut();Microsoft.Office.WebExtension.useShortNamespace=function(n){n?OSF.NamespaceManager.enableShortcut():OSF.NamespaceManager.disableShortcut()};Microsoft.Office.WebExtension.select=function(n,t){var i;if(n&&typeof n=="string"){var r=n.indexOf("#");if(r!=-1){var o=n.substring(0,r),e=n.substring(r+1);switch(o){case"binding":case"bindings":e&&(i=new OSF.DDA.BindingPromise(e))}}}if(i){i.onFail=t;return i}else if(t){var u=typeof t;if(u=="function"){var f={};f[Microsoft.Office.WebExtension.Parameters.Callback]=t;OSF.DDA.issueAsyncResult(f,OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiCallInContext,OSF.DDA.ErrorCodeManager.getErrorArgs(OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiCallInContext))}else throw OSF.OUtil.formatString(Strings.OfficeOM.L_CallbackNotAFunction,u);}};OSF.DDA.Context=function(n,t,i,r,u){var o="requirements",f=this;OSF.OUtil.defineEnumerableProperties(f,{contentLanguage:{value:n.get_dataLocale()},displayLanguage:{value:n.get_appUILocale()},touchEnabled:{value:n.get_touchEnabled()},commerceAllowed:{value:n.get_commerceAllowed()},host:{value:OfficeExt.HostName.Host.getInstance().getHost()},platform:{value:OfficeExt.HostName.Host.getInstance().getPlatform()},isDialog:{value:OSF._OfficeAppFactory.getHostInfo().isDialog},diagnostics:{value:OfficeExt.HostName.Host.getInstance().getDiagnostics(n.get_hostFullVersion())}});i&&OSF.OUtil.defineEnumerableProperty(f,"license",{value:i});n.ui&&OSF.OUtil.defineEnumerableProperty(f,"ui",{value:n.ui});n.auth&&OSF.OUtil.defineEnumerableProperty(f,"auth",{value:n.auth});n.application&&OSF.OUtil.defineEnumerableProperty(f,"application",{value:n.application});if(n.get_isDialog()){var e=OfficeExt.Requirement.RequirementsMatrixFactory.getDefaultDialogRequirementMatrix(n);OSF.OUtil.defineEnumerableProperty(f,o,{value:e})}else{t&&OSF.OUtil.defineEnumerableProperty(f,"document",{value:t});if(r){var s=r.displayName||"appOM";delete r.displayName;OSF.OUtil.defineEnumerableProperty(f,s,{value:r})}u&&OSF.OUtil.defineEnumerableProperty(f,"officeTheme",{get:function(){return u()}});var e=OfficeExt.Requirement.RequirementsMatrixFactory.getDefaultRequirementMatrix(n);OSF.OUtil.defineEnumerableProperty(f,o,{value:e})}};OSF.DDA.OutlookContext=function(n,t,i,r,u){OSF.DDA.OutlookContext.uber.constructor.call(this,n,null,i,r,u);t&&OSF.OUtil.defineEnumerableProperty(this,"roamingSettings",{value:t})};OSF.OUtil.extend(OSF.DDA.OutlookContext,OSF.DDA.Context);OSF.DDA.OutlookAppOm=function(){};OSF.DDA.Application=function(){};OSF.DDA.Document=function(n,t){var i;switch(n.get_clientMode()){case OSF.ClientMode.ReadOnly:i=Microsoft.Office.WebExtension.DocumentMode.ReadOnly;break;case OSF.ClientMode.ReadWrite:i=Microsoft.Office.WebExtension.DocumentMode.ReadWrite}t&&OSF.OUtil.defineEnumerableProperty(this,"settings",{value:t});OSF.OUtil.defineMutableProperties(this,{mode:{value:i},url:{value:n.get_docUrl()}})};OSF.DDA.JsomDocument=function(n,t,i){var r=this;OSF.DDA.JsomDocument.uber.constructor.call(r,n,i);t&&OSF.OUtil.defineEnumerableProperty(r,"bindings",{get:function(){return t}});var u=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(r,[u.GetSelectedDataAsync,u.SetSelectedDataAsync]);OSF.DDA.DispIdHost.addEventSupport(r,new OSF.EventDispatch([Microsoft.Office.WebExtension.EventType.DocumentSelectionChanged]))};OSF.OUtil.extend(OSF.DDA.JsomDocument,OSF.DDA.Document);OSF.OUtil.defineEnumerableProperty(Microsoft.Office.WebExtension,"context",{get:function(){var n;OSF&&OSF._OfficeAppFactory&&(n=OSF._OfficeAppFactory.getContext());return n}});OSF.DDA.License=function(n){OSF.OUtil.defineEnumerableProperty(this,"value",{value:n})};OSF.DDA.ApiMethodCall=function(n,t,i,r,u){var f=this,o=n.length,e=OSF.OUtil.delayExecutionAndCache(function(){return OSF.OUtil.formatString(Strings.OfficeOM.L_InvalidParameters,u)});f.verifyArguments=function(n,t){for(var u in n){var i=n[u],r=t[u];if(i["enum"])switch(typeof r){case"string":if(OSF.OUtil.listContainsValue(i["enum"],r))break;case"undefined":throw OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedEnumeration;default:throw e();}if(i.types&&!OSF.OUtil.listContainsValue(i.types,typeof r))throw e();}};f.extractRequiredArguments=function(t,i,r){if(t.length<o)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_MissingRequiredArguments);for(var s=[],u=0;u<o;u++)s.push(t[u]);this.verifyArguments(n,s);var c={};for(u=0;u<o;u++){var f=n[u],h=s[u];if(f.verify){var l=f.verify(h,i,r);if(!l)throw e();}c[f.name]=h}return c},f.fillOptions=function(n,i,r,u){n=n||{};for(var o in t)if(!OSF.OUtil.listContainsKey(n,o)){var e=undefined,f=t[o];f.calculate&&i&&(e=f.calculate(i,r,u));e||f.defaultValue===undefined||(e=f.defaultValue);n[o]=e}return n};f.constructCallArgs=function(n,t,u,f){var e={};for(var h in n)e[h]=n[h];for(var s in t)e[s]=t[s];for(var o in i)e[o]=i[o](u,f);r&&(e=r(e,u,f));return e}};OSF.OUtil.setNamespace("AsyncResultEnum",OSF.DDA);OSF.DDA.AsyncResultEnum.Properties={Context:"Context",Value:"Value",Status:"Status",Error:"Error"};Microsoft.Office.WebExtension.AsyncResultStatus={Succeeded:"succeeded",Failed:"failed"};OSF.DDA.AsyncResultEnum.ErrorCode={Success:0,Failed:1};OSF.DDA.AsyncResultEnum.ErrorProperties={Name:"Name",Message:"Message",Code:"Code"};OSF.DDA.AsyncMethodNames={};OSF.DDA.AsyncMethodNames.addNames=function(n){for(var t in n){var i={};OSF.OUtil.defineEnumerableProperties(i,{id:{value:t},displayName:{value:n[t]}});OSF.DDA.AsyncMethodNames[t]=i}};OSF.DDA.AsyncMethodCall=function(n,t,i,r,u,f,e){var h="function",s=n.length,o=new OSF.DDA.ApiMethodCall(n,t,i,f,e);function c(n,i,r,u){if(n.length>s+2)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyArguments);for(var f,e,l=n.length-1;l>=s;l--){var c=n[l];switch(typeof c){case"object":if(f)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyOptionalObjects);else f=c;break;case h:if(e)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyOptionalFunction);else e=c;break;default:throw OsfMsAjaxFactory.msAjaxError.argument(Strings.OfficeOM.L_InValidOptionalArgument);}}f=o.fillOptions(f,i,r,u);if(e)if(f[Microsoft.Office.WebExtension.Parameters.Callback])throw Strings.OfficeOM.L_RedundantCallbackSpecification;else f[Microsoft.Office.WebExtension.Parameters.Callback]=e;o.verifyArguments(t,f);return f}this.verifyAndExtractCall=function(n,t,i){var r=o.extractRequiredArguments(n,t,i),f=c(n,r,t,i);return o.constructCallArgs(r,f,t,i)};this.processResponse=function(n,t,i,f){var e;e=n==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess?r?r(t,i,f):t:u?u(n,t):OSF.DDA.ErrorCodeManager.getErrorArgs(n);return e};this.getCallArgs=function(n){for(var t,u,r=n.length-1;r>=s;r--){var i=n[r];switch(typeof i){case"object":t=i;break;case h:u=i}}t=t||{};u&&(t[Microsoft.Office.WebExtension.Parameters.Callback]=u);return t}};OSF.DDA.AsyncMethodCallFactory=function(){return{manufacture:function(n){var i=n.supportedOptions?OSF.OUtil.createObject(n.supportedOptions):[],t=n.privateStateCallbacks?OSF.OUtil.createObject(n.privateStateCallbacks):[];return new OSF.DDA.AsyncMethodCall(n.requiredArguments||[],i,t,n.onSucceeded,n.onFailed,n.checkCallArgs,n.method.displayName)}}}();OSF.DDA.AsyncMethodCalls={};OSF.DDA.AsyncMethodCalls.define=function(n){OSF.DDA.AsyncMethodCalls[n.method.id]=OSF.DDA.AsyncMethodCallFactory.manufacture(n)};OSF.DDA.Error=function(n,t,i){OSF.OUtil.defineEnumerableProperties(this,{name:{value:n},message:{value:t},code:{value:i}})};OSF.DDA.AsyncResult=function(n,t){OSF.OUtil.defineEnumerableProperties(this,{value:{value:n[OSF.DDA.AsyncResultEnum.Properties.Value]},status:{value:t?Microsoft.Office.WebExtension.AsyncResultStatus.Failed:Microsoft.Office.WebExtension.AsyncResultStatus.Succeeded}});n[OSF.DDA.AsyncResultEnum.Properties.Context]&&OSF.OUtil.defineEnumerableProperty(this,"asyncContext",{value:n[OSF.DDA.AsyncResultEnum.Properties.Context]});t&&OSF.OUtil.defineEnumerableProperty(this,"error",{value:new OSF.DDA.Error(t[OSF.DDA.AsyncResultEnum.ErrorProperties.Name],t[OSF.DDA.AsyncResultEnum.ErrorProperties.Message],t[OSF.DDA.AsyncResultEnum.ErrorProperties.Code])})};OSF.DDA.issueAsyncResult=function(n,t,i){var f=n[Microsoft.Office.WebExtension.Parameters.Callback];if(f){var u={};u[OSF.DDA.AsyncResultEnum.Properties.Context]=n[Microsoft.Office.WebExtension.Parameters.AsyncContext];var r;if(t==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)u[OSF.DDA.AsyncResultEnum.Properties.Value]=i;else{r={};i=i||OSF.DDA.ErrorCodeManager.getErrorArgs(OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError);r[OSF.DDA.AsyncResultEnum.ErrorProperties.Code]=t||OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError;r[OSF.DDA.AsyncResultEnum.ErrorProperties.Name]=i.name||i;r[OSF.DDA.AsyncResultEnum.ErrorProperties.Message]=i.message||i}f(new OSF.DDA.AsyncResult(u,r))}};OSF.DDA.SyncMethodNames={};OSF.DDA.SyncMethodNames.addNames=function(n){for(var t in n){var i={};OSF.OUtil.defineEnumerableProperties(i,{id:{value:t},displayName:{value:n[t]}});OSF.DDA.SyncMethodNames[t]=i}};OSF.DDA.SyncMethodCall=function(n,t,i,r,u){var e=n.length,f=new OSF.DDA.ApiMethodCall(n,t,i,r,u);function o(n,i,r,u){if(n.length>e+1)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyArguments);for(var o,c,s=n.length-1;s>=e;s--){var h=n[s];switch(typeof h){case"object":if(o)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyOptionalObjects);else o=h;break;default:throw OsfMsAjaxFactory.msAjaxError.argument(Strings.OfficeOM.L_InValidOptionalArgument);}}o=f.fillOptions(o,i,r,u);f.verifyArguments(t,o);return o}this.verifyAndExtractCall=function(n,t,i){var r=f.extractRequiredArguments(n,t,i),e=o(n,r,t,i);return f.constructCallArgs(r,e,t,i)}};OSF.DDA.SyncMethodCallFactory=function(){return{manufacture:function(n){var t=n.supportedOptions?OSF.OUtil.createObject(n.supportedOptions):[];return new OSF.DDA.SyncMethodCall(n.requiredArguments||[],t,n.privateStateCallbacks,n.checkCallArgs,n.method.displayName)}}}();OSF.DDA.SyncMethodCalls={};OSF.DDA.SyncMethodCalls.define=function(n){OSF.DDA.SyncMethodCalls[n.method.id]=OSF.DDA.SyncMethodCallFactory.manufacture(n)};OSF.DDA.ListType=function(){var n={};return{setListType:function(t,i){n[t]=i},isListType:function(t){return OSF.OUtil.listContainsKey(n,t)},getDescriptor:function(t){return n[t]}}}();OSF.DDA.HostParameterMap=function(n,t){var l="fromHost",i=this,o="toHost",f=l,a="sourceData",u="self",r={};r[Microsoft.Office.WebExtension.Parameters.Data]={toHost:function(n){if(n!=null&&n.rows!==undefined){var t={};t[OSF.DDA.TableDataProperties.TableRows]=n.rows;t[OSF.DDA.TableDataProperties.TableHeaders]=n.headers;n=t}return n},fromHost:function(n){return n}};r[Microsoft.Office.WebExtension.Parameters.SampleData]=r[Microsoft.Office.WebExtension.Parameters.Data];function e(i,u){var a=i?{}:undefined;for(var h in i){var s=i[h],o;if(OSF.DDA.ListType.isListType(h)){o=[];for(var v in s)o.push(e(s[v],u))}else if(OSF.OUtil.listContainsKey(r,h))o=r[h][u](s);else if(u==f&&n.preserveNesting(h))o=e(s,u);else{var c=t[h];if(c){var l=c[u];if(l){o=l[s];o===undefined&&(o=s)}}else o=s}a[h]=o}return a}function c(i,r){var s;for(var f in r){var e;e=n.isComplexType(f)?c(i,t[f][o]):i[f];if(e!=undefined){s||(s={});var h=r[f];h==u&&(h=f);s[h]=n.pack(f,e)}}return s}function s(i,r,e){e||(e={});for(var h in r){var l=r[h],o;if(l==u)o=i;else if(l==a){e[h]=i.toArray();continue}else o=i[l];if(o===null||o===undefined)e[h]=undefined;else{o=n.unpack(h,o);var c;if(n.isComplexType(h)){c=t[h][f];n.preserveNesting(h)?e[h]=s(o,c):s(o,c,e)}else if(OSF.DDA.ListType.isListType(h)){c={};var p=OSF.DDA.ListType.getDescriptor(h);c[p]=u;var v=new Array(o.length);for(var y in o)v[y]=s(o[y],c);e[h]=v}else e[h]=o}}return e}function h(n,i,r){var f=t[n][r],u;if(r=="toHost"){var h=e(i,r);u=c(h,f)}else if(r==l){var o=s(i,f);u=e(o,r)}return u}t||(t={});i.addMapping=function(n,i){var e,s;if(i.map){e=i.map;s={};for(var c in e){var l=e[c];l==u&&(l=c);s[l]=c}}else{e=i.toHost;s=i.fromHost}var r=t[n];if(r){var h=r[o];for(var v in h)e[v]=h[v];h=r[f];for(var a in h)s[a]=h[a]}else r=t[n]={};r[o]=e;r[f]=s};i.toHost=function(n,t){return h(n,t,o)};i.fromHost=function(n,t){return h(n,t,f)};i.self=u;i.sourceData=a;i.addComplexType=function(t){n.addComplexType(t)};i.getDynamicType=function(t){return n.getDynamicType(t)};i.setDynamicType=function(t,i){n.setDynamicType(t,i)};i.dynamicTypes=r;i.doMapValues=function(n,t){return e(n,t)}};OSF.DDA.SpecialProcessor=function(n,t){var i=this;i.addComplexType=function(t){n.push(t)};i.getDynamicType=function(n){return t[n]};i.setDynamicType=function(n,i){t[n]=i};i.isComplexType=function(t){return OSF.OUtil.listContainsValue(n,t)};i.isDynamicType=function(n){return OSF.OUtil.listContainsKey(t,n)};i.preserveNesting=function(n){var t=[];OSF.DDA.PropertyDescriptors&&t.push(OSF.DDA.PropertyDescriptors.Subset);OSF.DDA.DataNodeEventProperties&&(t=t.concat([OSF.DDA.DataNodeEventProperties.OldNode,OSF.DDA.DataNodeEventProperties.NewNode,OSF.DDA.DataNodeEventProperties.NextSiblingNode]));return OSF.OUtil.listContainsValue(t,n)};i.pack=function(n,i){var r;r=this.isDynamicType(n)?t[n].toHost(i):i;return r};i.unpack=function(n,i){var r;r=this.isDynamicType(n)?t[n].fromHost(i):i;return r}};OSF.DDA.getDecoratedParameterMap=function(n,t){var i=new OSF.DDA.HostParameterMap(n),f=i.self;function r(n){var i=null;if(n){i={};for(var r=n.length,t=0;t<r;t++)i[n[t].name]=n[t].value}return i}i.define=function(n){var t={},u=r(n.toHost);if(n.invertible)t.map=u;else if(n.canonical)t.toHost=t.fromHost=u;else{t.toHost=u;t.fromHost=r(n.fromHost)}i.addMapping(n.type,t);n.isComplexType&&i.addComplexType(n.type)};for(var u in t)i.define(t[u]);return i};OSF.OUtil.setNamespace("DispIdHost",OSF.DDA);OSF.DDA.DispIdHost.Methods={InvokeMethod:"invokeMethod",AddEventHandler:"addEventHandler",RemoveEventHandler:"removeEventHandler",OpenDialog:"openDialog",CloseDialog:"closeDialog",MessageParent:"messageParent",SendMessage:"sendMessage"};OSF.DDA.DispIdHost.Delegates={ExecuteAsync:"executeAsync",RegisterEventAsync:"registerEventAsync",UnregisterEventAsync:"unregisterEventAsync",ParameterMap:"parameterMap",OpenDialog:"openDialog",CloseDialog:"closeDialog",MessageParent:"messageParent",SendMessage:"sendMessage"};OSF.DDA.DispIdHost.Facade=function(n,t){var h=!1,s=null,f=this,r={},u=OSF.DDA.AsyncMethodNames,i=OSF.DDA.MethodDispId,l={GoToByIdAsync:i.dispidNavigateToMethod,GetSelectedDataAsync:i.dispidGetSelectedDataMethod,SetSelectedDataAsync:i.dispidSetSelectedDataMethod,GetDocumentCopyChunkAsync:i.dispidGetDocumentCopyChunkMethod,ReleaseDocumentCopyAsync:i.dispidReleaseDocumentCopyMethod,GetDocumentCopyAsync:i.dispidGetDocumentCopyMethod,AddFromSelectionAsync:i.dispidAddBindingFromSelectionMethod,AddFromPromptAsync:i.dispidAddBindingFromPromptMethod,AddFromNamedItemAsync:i.dispidAddBindingFromNamedItemMethod,GetAllAsync:i.dispidGetAllBindingsMethod,GetByIdAsync:i.dispidGetBindingMethod,ReleaseByIdAsync:i.dispidReleaseBindingMethod,GetDataAsync:i.dispidGetBindingDataMethod,SetDataAsync:i.dispidSetBindingDataMethod,AddRowsAsync:i.dispidAddRowsMethod,AddColumnsAsync:i.dispidAddColumnsMethod,DeleteAllDataValuesAsync:i.dispidClearAllRowsMethod,RefreshAsync:i.dispidLoadSettingsMethod,SaveAsync:i.dispidSaveSettingsMethod,GetActiveViewAsync:i.dispidGetActiveViewMethod,GetFilePropertiesAsync:i.dispidGetFilePropertiesMethod,GetOfficeThemeAsync:i.dispidGetOfficeThemeMethod,GetDocumentThemeAsync:i.dispidGetDocumentThemeMethod,ClearFormatsAsync:i.dispidClearFormatsMethod,SetTableOptionsAsync:i.dispidSetTableOptionsMethod,SetFormatsAsync:i.dispidSetFormatsMethod,GetAccessTokenAsync:i.dispidGetAccessTokenMethod,ExecuteRichApiRequestAsync:i.dispidExecuteRichApiRequestMethod,AppCommandInvocationCompletedAsync:i.dispidAppCommandInvocationCompletedMethod,CloseContainerAsync:i.dispidCloseContainerMethod,OpenBrowserWindow:i.dispidOpenBrowserWindow,CreateDocumentAsync:i.dispidCreateDocumentMethod,InsertFormAsync:i.dispidInsertFormMethod,ExecuteFeature:i.dispidExecuteFeature,QueryFeature:i.dispidQueryFeature,AddDataPartAsync:i.dispidAddDataPartMethod,GetDataPartByIdAsync:i.dispidGetDataPartByIdMethod,GetDataPartsByNameSpaceAsync:i.dispidGetDataPartsByNamespaceMethod,GetPartXmlAsync:i.dispidGetDataPartXmlMethod,GetPartNodesAsync:i.dispidGetDataPartNodesMethod,DeleteDataPartAsync:i.dispidDeleteDataPartMethod,GetNodeValueAsync:i.dispidGetDataNodeValueMethod,GetNodeXmlAsync:i.dispidGetDataNodeXmlMethod,GetRelativeNodesAsync:i.dispidGetDataNodesMethod,SetNodeValueAsync:i.dispidSetDataNodeValueMethod,SetNodeXmlAsync:i.dispidSetDataNodeXmlMethod,AddDataPartNamespaceAsync:i.dispidAddDataNamespaceMethod,GetDataPartNamespaceAsync:i.dispidGetDataUriByPrefixMethod,GetDataPartPrefixAsync:i.dispidGetDataPrefixByUriMethod,GetNodeTextAsync:i.dispidGetDataNodeTextMethod,SetNodeTextAsync:i.dispidSetDataNodeTextMethod,GetSelectedTask:i.dispidGetSelectedTaskMethod,GetTask:i.dispidGetTaskMethod,GetWSSUrl:i.dispidGetWSSUrlMethod,GetTaskField:i.dispidGetTaskFieldMethod,GetSelectedResource:i.dispidGetSelectedResourceMethod,GetResourceField:i.dispidGetResourceFieldMethod,GetProjectField:i.dispidGetProjectFieldMethod,GetSelectedView:i.dispidGetSelectedViewMethod,GetTaskByIndex:i.dispidGetTaskByIndexMethod,GetResourceByIndex:i.dispidGetResourceByIndexMethod,SetTaskField:i.dispidSetTaskFieldMethod,SetResourceField:i.dispidSetResourceFieldMethod,GetMaxTaskIndex:i.dispidGetMaxTaskIndexMethod,GetMaxResourceIndex:i.dispidGetMaxResourceIndexMethod,CreateTask:i.dispidCreateTaskMethod};for(var e in l)u[e]&&(r[u[e].id]=l[e]);u=OSF.DDA.SyncMethodNames;i=OSF.DDA.MethodDispId;var v={MessageParent:i.dispidMessageParentMethod,SendMessage:i.dispidSendMessageMethod};for(var e in v)u[e]&&(r[u[e].id]=v[e]);u=Microsoft.Office.WebExtension.EventType;i=OSF.DDA.EventDispId;var y={SettingsChanged:i.dispidSettingsChangedEvent,DocumentSelectionChanged:i.dispidDocumentSelectionChangedEvent,BindingSelectionChanged:i.dispidBindingSelectionChangedEvent,BindingDataChanged:i.dispidBindingDataChangedEvent,ActiveViewChanged:i.dispidActiveViewChangedEvent,OfficeThemeChanged:i.dispidOfficeThemeChangedEvent,DocumentThemeChanged:i.dispidDocumentThemeChangedEvent,AppCommandInvoked:i.dispidAppCommandInvokedEvent,DialogMessageReceived:i.dispidDialogMessageReceivedEvent,DialogParentMessageReceived:i.dispidDialogParentMessageReceivedEvent,ObjectDeleted:i.dispidObjectDeletedEvent,ObjectSelectionChanged:i.dispidObjectSelectionChangedEvent,ObjectDataChanged:i.dispidObjectDataChangedEvent,ContentControlAdded:i.dispidContentControlAddedEvent,RichApiMessage:i.dispidRichApiMessageEvent,ItemChanged:i.dispidOlkItemSelectedChangedEvent,RecipientsChanged:i.dispidOlkRecipientsChangedEvent,AppointmentTimeChanged:i.dispidOlkAppointmentTimeChangedEvent,RecurrenceChanged:i.dispidOlkRecurrenceChangedEvent,AttachmentsChanged:i.dispidOlkAttachmentsChangedEvent,EnhancedLocationsChanged:i.dispidOlkEnhancedLocationsChangedEvent,TaskSelectionChanged:i.dispidTaskSelectionChangedEvent,ResourceSelectionChanged:i.dispidResourceSelectionChangedEvent,ViewSelectionChanged:i.dispidViewSelectionChangedEvent,DataNodeInserted:i.dispidDataNodeAddedEvent,DataNodeReplaced:i.dispidDataNodeReplacedEvent,DataNodeDeleted:i.dispidDataNodeDeletedEvent};for(var c in y)u[c]&&(r[u[c]]=y[c]);function a(n){return n==OSF.DDA.EventDispId.dispidObjectDeletedEvent||n==OSF.DDA.EventDispId.dispidObjectSelectionChangedEvent||n==OSF.DDA.EventDispId.dispidObjectDataChangedEvent||n==OSF.DDA.EventDispId.dispidContentControlAddedEvent}function o(n,t,i,r){if(typeof n=="number"){r||(r=t.getCallArgs(i));OSF.DDA.issueAsyncResult(r,n,OSF.DDA.ErrorCodeManager.getErrorArgs(n))}else throw n;}f[OSF.DDA.DispIdHost.Methods.InvokeMethod]=function(i,u,f,e){var h;try{var y=i.id,p=OSF.DDA.AsyncMethodCalls[y];h=p.verifyAndExtractCall(u,f,e);var v=r[y],k=n(y),c=s;window.Excel&&window.Office.context.requirements.isSetSupported("RedirectV1Api")&&(window.Excel._RedirectV1APIs=!0);if(window.Excel&&window.Excel._RedirectV1APIs&&(c=window.Excel._V1APIMap[y])){var l=OSF.OUtil.shallowCopy(h);delete l[Microsoft.Office.WebExtension.Parameters.AsyncContext];c.preprocess&&(l=c.preprocess(l));var w=new window.Excel.RequestContext,d=c.call(w,l);w.sync().then(function(){var n=d.value,t=n.status;delete n.status;delete n["@odata.type"];c.postprocess&&(n=c.postprocess(n,l));t!=0&&(n=OSF.DDA.ErrorCodeManager.getErrorArgs(t));OSF.DDA.issueAsyncResult(h,t,n)})["catch"](function(){OSF.DDA.issueAsyncResult(h,OSF.DDA.ErrorCodeManager.errorCodes.ooeFailure,s)})}else{var a;a=t.toHost?t.toHost(v,h):h;var b=+new Date;k[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]({dispId:v,hostCallArgs:a,onCalling:function(){},onReceiving:function(){},onComplete:function(n,i){var r;r=n==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess?t.fromHost?t.fromHost(v,i):i:i;var u=p.processResponse(n,r,f,h);OSF.DDA.issueAsyncResult(h,n,u);OSF.AppTelemetry&&OSF.AppTelemetry.onMethodDone(v,a,Math.abs(+new Date-b),n)}})}}catch(g){o(g,p,u,h)}};f[OSF.DDA.DispIdHost.Methods.AddEventHandler]=function(i,u,f,e){var c,s,w,l=h;function p(n){if(n==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess){var i=l?u.addObjectEventHandler(s,c[Microsoft.Office.WebExtension.Parameters.Id],w):u.addEventHandler(s,w);i||(n=OSF.DDA.ErrorCodeManager.errorCodes.ooeEventHandlerAdditionFailed)}var t;n!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess&&(t=OSF.DDA.ErrorCodeManager.getErrorArgs(n));OSF.DDA.issueAsyncResult(c,n,t)}try{var b=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.AddHandlerAsync.id];c=b.verifyAndExtractCall(i,f,u);s=c[Microsoft.Office.WebExtension.Parameters.EventType];w=c[Microsoft.Office.WebExtension.Parameters.Handler];if(e){p(OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess);return}var y=r[s];l=a(y);var v=l?c[Microsoft.Office.WebExtension.Parameters.Id]:f.id||"",d=l?u.getObjectEventHandlerCount(s,v):u.getEventHandlerCount(s);if(d==0){var k=n(s)[OSF.DDA.DispIdHost.Delegates.RegisterEventAsync];k({eventType:s,dispId:y,targetId:v,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:p,onEvent:function(n){var i=t.fromHost(y,n);l?u.fireObjectEvent(v,OSF.DDA.OMFactory.manufactureEventArgs(s,v,i)):u.fireEvent(OSF.DDA.OMFactory.manufactureEventArgs(s,f,i))}})}else p(OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)}catch(g){o(g,b,i,c)}};f[OSF.DDA.DispIdHost.Methods.RemoveEventHandler]=function(t,i,u){var e,f,y,c=h;function w(n){var t;n!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess&&(t=OSF.DDA.ErrorCodeManager.getErrorArgs(n));OSF.DDA.issueAsyncResult(e,n,t)}try{var b=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.RemoveHandlerAsync.id];e=b.verifyAndExtractCall(t,u,i);f=e[Microsoft.Office.WebExtension.Parameters.EventType];y=e[Microsoft.Office.WebExtension.Parameters.Handler];var k=r[f];c=a(k);var l=c?e[Microsoft.Office.WebExtension.Parameters.Id]:u.id||"",p,v;if(y===s){v=c?i.clearObjectEventHandlers(f,l):i.clearEventHandlers(f);p=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess}else{v=c?i.removeObjectEventHandler(f,l,y):i.removeEventHandler(f,y);p=v?OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess:OSF.DDA.ErrorCodeManager.errorCodes.ooeEventHandlerNotExist}var g=c?i.getObjectEventHandlerCount(f,l):i.getEventHandlerCount(f);if(v&&g==0){var d=n(f)[OSF.DDA.DispIdHost.Delegates.UnregisterEventAsync];d({eventType:f,dispId:k,targetId:l,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:w})}else w(p)}catch(nt){o(nt,b,t,e)}};f[OSF.DDA.DispIdHost.Methods.OpenDialog]=function(i,u,f){var l,y,e=Microsoft.Office.WebExtension.EventType.DialogMessageReceived,c=Microsoft.Office.WebExtension.EventType.DialogEventReceived;function p(n){var i;if(n!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)i=OSF.DDA.ErrorCodeManager.getErrorArgs(n);else{var t={};t[Microsoft.Office.WebExtension.Parameters.Id]=y;t[Microsoft.Office.WebExtension.Parameters.Data]=u;var i=a.processResponse(n,t,f,l);OSF.DialogShownStatus.hasDialogShown=!0;u.clearEventHandlers(e);u.clearEventHandlers(c)}OSF.DDA.issueAsyncResult(l,n,i)}try{(e==undefined||c==undefined)&&p(OSF.DDA.ErrorCodeManager.ooeOperationNotSupported);if(OSF.DDA.AsyncMethodNames.DisplayDialogAsync==s){p(OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError);return}var a=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.DisplayDialogAsync.id];l=a.verifyAndExtractCall(i,f,u);var w=r[e],v=n(e),b=v[OSF.DDA.DispIdHost.Delegates.OpenDialog]!=undefined?v[OSF.DDA.DispIdHost.Delegates.OpenDialog]:v[OSF.DDA.DispIdHost.Delegates.RegisterEventAsync];y=JSON.stringify(l);if(!OSF.DialogShownStatus.hasDialogShown){u.clearQueuedEvent(e);u.clearQueuedEvent(c);u.clearQueuedEvent(Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived)}b({eventType:e,dispId:w,targetId:y,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:p,onEvent:function(n){var s=t.fromHost(w,n),r=OSF.DDA.OMFactory.manufactureEventArgs(e,f,s);if(r.type==c){var o=OSF.DDA.ErrorCodeManager.getErrorArgs(r.error),i={};i[OSF.DDA.AsyncResultEnum.ErrorProperties.Code]=status||OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError;i[OSF.DDA.AsyncResultEnum.ErrorProperties.Name]=o.name||o;i[OSF.DDA.AsyncResultEnum.ErrorProperties.Message]=o.message||o;r.error=new OSF.DDA.Error(i[OSF.DDA.AsyncResultEnum.ErrorProperties.Name],i[OSF.DDA.AsyncResultEnum.ErrorProperties.Message],i[OSF.DDA.AsyncResultEnum.ErrorProperties.Code])}u.fireOrQueueEvent(r);if(s[OSF.DDA.PropertyDescriptors.MessageType]==OSF.DialogMessageType.DialogClosed){u.clearEventHandlers(e);u.clearEventHandlers(c);u.clearEventHandlers(Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived);OSF.DialogShownStatus.hasDialogShown=h}}})}catch(k){o(k,a,i,l)}};f[OSF.DDA.DispIdHost.Methods.CloseDialog]=function(t,i,u,f){var a,e,v,s=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess;function p(n){s=n;OSF.DialogShownStatus.hasDialogShown=h}try{var l=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.CloseAsync.id];a=l.verifyAndExtractCall(t,f,u);e=Microsoft.Office.WebExtension.EventType.DialogMessageReceived;v=Microsoft.Office.WebExtension.EventType.DialogEventReceived;u.clearEventHandlers(e);u.clearEventHandlers(v);var w=r[e],c=n(e),y=c[OSF.DDA.DispIdHost.Delegates.CloseDialog]!=undefined?c[OSF.DDA.DispIdHost.Delegates.CloseDialog]:c[OSF.DDA.DispIdHost.Delegates.UnregisterEventAsync];y({eventType:e,dispId:w,targetId:i,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:p})}catch(b){o(b,l,t,a)}if(s!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)throw OSF.OUtil.formatString(Strings.OfficeOM.L_FunctionCallFailed,OSF.DDA.AsyncMethodNames.CloseAsync.displayName,s);};f[OSF.DDA.DispIdHost.Methods.MessageParent]=function(t,i){var o={},s=OSF.DDA.SyncMethodCalls[OSF.DDA.SyncMethodNames.MessageParent.id],h=s.verifyAndExtractCall(t,i,o),u=n(OSF.DDA.SyncMethodNames.MessageParent.id),f=u[OSF.DDA.DispIdHost.Delegates.MessageParent],e=r[OSF.DDA.SyncMethodNames.MessageParent.id];return f({dispId:e,hostCallArgs:h,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)}})};f[OSF.DDA.DispIdHost.Methods.SendMessage]=function(t,i,u){var s={},h=OSF.DDA.SyncMethodCalls[OSF.DDA.SyncMethodNames.SendMessage.id],c=h.verifyAndExtractCall(t,u,s),f=n(OSF.DDA.SyncMethodNames.SendMessage.id),e=f[OSF.DDA.DispIdHost.Delegates.SendMessage],o=r[OSF.DDA.SyncMethodNames.SendMessage.id];return e({dispId:o,hostCallArgs:c,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)}})}};OSF.DDA.DispIdHost.addAsyncMethods=function(n,t,i){for(var f in t){var u=t[f],r=u.displayName;n[r]||OSF.OUtil.defineEnumerableProperty(n,r,{value:function(t){return function(){var r=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.InvokeMethod];r(t,arguments,n,i)}}(u)})}};OSF.DDA.DispIdHost.addEventSupport=function(n,t,i){var u=OSF.DDA.AsyncMethodNames.AddHandlerAsync.displayName,r=OSF.DDA.AsyncMethodNames.RemoveHandlerAsync.displayName;n[u]||OSF.OUtil.defineEnumerableProperty(n,u,{value:function(){var r=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.AddEventHandler];r(arguments,t,n,i)}});n[r]||OSF.OUtil.defineEnumerableProperty(n,r,{value:function(){var i=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.RemoveEventHandler];i(arguments,t,n)}})};OSF.OUtil.setNamespace("SafeArray",OSF.DDA);OSF.DDA.SafeArray.Response={Status:0,Payload:1};OSF.DDA.SafeArray.UniqueArguments={Offset:"offset",Run:"run",BindingSpecificData:"bindingSpecificData",MergedCellGuid:"{66e7831f-81b2-42e2-823c-89e872d541b3}"};OSF.OUtil.setNamespace("Delegate",OSF.DDA.SafeArray);OSF.DDA.SafeArray.Delegate._onException=function(n,t){var i,r=n.number;if(r)switch(r){case-2146828218:i=OSF.DDA.ErrorCodeManager.errorCodes.ooeNoCapability;break;case-2147467259:i=OSF.DDA.ErrorCodeManager.errorCodes.ooeDialogAlreadyOpened;break;case-2146828283:i=OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidParam;break;case-2147209089:i=OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidParam;break;case-2147208704:i=OSF.DDA.ErrorCodeManager.errorCodes.ooeTooManyIncompleteRequests;break;case-2146827850:default:i=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError}t.onComplete&&t.onComplete(i||OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError)};OSF.DDA.SafeArray.Delegate._onExceptionSyncMethod=function(n){var t,i=n.number;if(i)switch(i){case-2146828218:t=OSF.DDA.ErrorCodeManager.errorCodes.ooeNoCapability;break;case-2146827850:default:t=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError}return t||OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError};OSF.DDA.SafeArray.Delegate.SpecialProcessor=function(){function t(n){var t;try{var o=n.ubound(1),f=n.ubound(2);n=n.toArray();if(o==1&&f==1)t=[n];else{t=[];for(var u=0;u<o;u++){for(var i=[],r=0;r<f;r++){var e=n[u*f+r];e!=OSF.DDA.SafeArray.UniqueArguments.MergedCellGuid&&i.push(e)}i.length>0&&t.push(i)}}}catch(s){}return t}var i=[],n={};n[Microsoft.Office.WebExtension.Parameters.Data]=function(){var i=0,n=1;return{toHost:function(t){if(OSF.DDA.TableDataProperties&&typeof t!="string"&&t[OSF.DDA.TableDataProperties.TableRows]!==undefined){var r=[];r[i]=t[OSF.DDA.TableDataProperties.TableRows];r[n]=t[OSF.DDA.TableDataProperties.TableHeaders];t=r}return t},fromHost:function(r){var f;if(r.toArray){var e=r.dimensions();if(e===2)f=t(r);else{var u=r.toArray();if(u.length===2&&(u[0]!=null&&u[0].toArray||u[1]!=null&&u[1].toArray)){f={};f[OSF.DDA.TableDataProperties.TableRows]=t(u[i]);f[OSF.DDA.TableDataProperties.TableHeaders]=t(u[n])}else f=u}}else f=r;return f}}}();OSF.DDA.SafeArray.Delegate.SpecialProcessor.uber.constructor.call(this,i,n);this.unpack=function(t,i){var r;if(this.isComplexType(t)||OSF.DDA.ListType.isListType(t)){var u=(i||typeof i=="unknown")&&i.toArray;r=u?i.toArray():i||{}}else r=this.isDynamicType(t)?n[t].fromHost(i):i;return r}};OSF.OUtil.extend(OSF.DDA.SafeArray.Delegate.SpecialProcessor,OSF.DDA.SpecialProcessor);OSF.DDA.SafeArray.Delegate.ParameterMap=OSF.DDA.getDecoratedParameterMap(new OSF.DDA.SafeArray.Delegate.SpecialProcessor,[{type:Microsoft.Office.WebExtension.Parameters.ValueFormat,toHost:[{name:Microsoft.Office.WebExtension.ValueFormat.Unformatted,value:0},{name:Microsoft.Office.WebExtension.ValueFormat.Formatted,value:1}]},{type:Microsoft.Office.WebExtension.Parameters.FilterType,toHost:[{name:Microsoft.Office.WebExtension.FilterType.All,value:0}]}]);OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.PropertyDescriptors.AsyncResultStatus,fromHost:[{name:Microsoft.Office.WebExtension.AsyncResultStatus.Succeeded,value:0},{name:Microsoft.Office.WebExtension.AsyncResultStatus.Failed,value:1}]});OSF.DDA.SafeArray.Delegate.executeAsync=function(n){function i(n){var t=n;if(OSF.OUtil.isArray(n))for(var f=t.length,r=0;r<f;r++)t[r]=i(t[r]);else if(OSF.OUtil.isDate(n))t=n.getVarDate();else if(typeof n=="object"&&!OSF.OUtil.isArray(n)){t=[];for(var u in n)OSF.OUtil.isFunction(n[u])||(t[u]=i(n[u]))}return t}function t(n){var r=n;if(n!=null&&n.toArray){var u=n.toArray();r=new Array(u.length);for(var i=0;i<u.length;i++)r[i]=t(u[i])}return r}try{n.onCalling&&n.onCalling();OSF.ClientHostController.execute(n.dispId,i(n.hostCallArgs),function(i){var u=i.toArray(),e=u[OSF.DDA.SafeArray.Response.Status];if(e==OSF.DDA.ErrorCodeManager.errorCodes.ooeChunkResult){var r=u[OSF.DDA.SafeArray.Response.Payload];r=t(r);if(r!=null){n._chunkResultData||(n._chunkResultData=[]);n._chunkResultData[r[0]]=r[1]}return!1}n.onReceiving&&n.onReceiving();if(n.onComplete){var r;if(e==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess){if(u.length>2){r=[];for(var f=1;f<u.length;f++)r[f-1]=u[f]}else r=u[OSF.DDA.SafeArray.Response.Payload];if(n._chunkResultData){r=t(r);if(r!=null){var o=r[r.length-1];n._chunkResultData.length==o?r[r.length-1]=n._chunkResultData:e=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError}}}else r=u[OSF.DDA.SafeArray.Response.Payload];n.onComplete(e,r)}return!0})}catch(r){OSF.DDA.SafeArray.Delegate._onException(r,n)}};OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent=function(n,t){var i=+new Date;return function(r){t.onReceiving&&t.onReceiving();var u=r.toArray?r.toArray()[OSF.DDA.SafeArray.Response.Status]:r;t.onComplete&&t.onComplete(u);OSF.AppTelemetry&&OSF.AppTelemetry.onRegisterDone(n,t.dispId,Math.abs(+new Date-i),u)}};OSF.DDA.SafeArray.Delegate.registerEventAsync=function(n){n.onCalling&&n.onCalling();var t=OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent(!0,n);try{OSF.ClientHostController.registerEvent(n.dispId,n.targetId,function(t,i){n.onEvent&&n.onEvent(i);OSF.AppTelemetry&&OSF.AppTelemetry.onEventDone(n.dispId)},t)}catch(i){OSF.DDA.SafeArray.Delegate._onException(i,n)}};OSF.DDA.SafeArray.Delegate.unregisterEventAsync=function(n){n.onCalling&&n.onCalling();var t=OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent(!1,n);try{OSF.ClientHostController.unregisterEvent(n.dispId,n.targetId,t)}catch(i){OSF.DDA.SafeArray.Delegate._onException(i,n)}};OSF.ClientMode={ReadWrite:0,ReadOnly:1};OSF.DDA.RichInitializationReason={1:Microsoft.Office.WebExtension.InitializationReason.Inserted,2:Microsoft.Office.WebExtension.InitializationReason.DocumentOpened};OSF.InitializationHelper=function(n,t,i,r,u){var f=this;f._hostInfo=n;f._webAppState=t;f._context=i;f._settings=r;f._hostFacade=u;f._initializeSettings=f.initializeSettings};OSF.InitializationHelper.prototype.deserializeSettings=function(n,t){var u,r=OSF.OUtil.getSessionStorage();if(r){var i=r.getItem(OSF._OfficeAppFactory.getCachedSessionSettingsKey());if(i)n=JSON.parse(i);else{i=JSON.stringify(n);r.setItem(OSF._OfficeAppFactory.getCachedSessionSettingsKey(),i)}}var f=OSF.DDA.SettingsManager.deserializeSettings(n);u=t?new OSF.DDA.RefreshableSettings(f):new OSF.DDA.Settings(f);return u};OSF.InitializationHelper.prototype.saveAndSetDialogInfo=function(){};OSF.InitializationHelper.prototype.setAgaveHostCommunication=function(){};OSF.InitializationHelper.prototype.prepareRightBeforeWebExtensionInitialize=function(n){this.prepareApiSurface(n);Microsoft.Office.WebExtension.initialize(this.getInitializationReason(n))};OSF.InitializationHelper.prototype.prepareApiSurface=function(n){var u=new OSF.DDA.License(n.get_eToken()),r=OSF.DDA.OfficeTheme&&OSF.DDA.OfficeTheme.getOfficeTheme?OSF.DDA.OfficeTheme.getOfficeTheme:null;if(n.get_isDialog())OSF.DDA.UI.ChildUI&&(n.ui=new OSF.DDA.UI.ChildUI);else if(OSF.DDA.UI.ParentUI){n.ui=new OSF.DDA.UI.ParentUI;OfficeExt.Container&&OSF.DDA.DispIdHost.addAsyncMethods(n.ui,[OSF.DDA.AsyncMethodNames.CloseContainerAsync])}OSF.DDA.OpenBrowser&&OSF.DDA.DispIdHost.addAsyncMethods(n.ui,[OSF.DDA.AsyncMethodNames.OpenBrowserWindow]);OSF.DDA.ExecuteFeature&&OSF.DDA.DispIdHost.addAsyncMethods(n.ui,[OSF.DDA.AsyncMethodNames.ExecuteFeature]);OSF.DDA.QueryFeature&&OSF.DDA.DispIdHost.addAsyncMethods(n.ui,[OSF.DDA.AsyncMethodNames.QueryFeature]);if(OSF.DDA.Auth){n.auth=new OSF.DDA.Auth;OSF.DDA.DispIdHost.addAsyncMethods(n.auth,[OSF.DDA.AsyncMethodNames.GetAccessTokenAsync])}OSF._OfficeAppFactory.setContext(new OSF.DDA.Context(n,n.doc,u,null,r));var t,i;t=OSF.DDA.DispIdHost.getClientDelegateMethods;i=OSF.DDA.SafeArray.Delegate.ParameterMap;OSF._OfficeAppFactory.setHostFacade(new OSF.DDA.DispIdHost.Facade(t,i))};OSF.InitializationHelper.prototype.getInitializationReason=function(n){return OSF.DDA.RichInitializationReason[n.get_reason()]};OSF.DDA.DispIdHost.getClientDelegateMethods=function(n){var t={};t[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=OSF.DDA.SafeArray.Delegate.executeAsync;t[OSF.DDA.DispIdHost.Delegates.RegisterEventAsync]=OSF.DDA.SafeArray.Delegate.registerEventAsync;t[OSF.DDA.DispIdHost.Delegates.UnregisterEventAsync]=OSF.DDA.SafeArray.Delegate.unregisterEventAsync;t[OSF.DDA.DispIdHost.Delegates.OpenDialog]=OSF.DDA.SafeArray.Delegate.openDialog;t[OSF.DDA.DispIdHost.Delegates.CloseDialog]=OSF.DDA.SafeArray.Delegate.closeDialog;t[OSF.DDA.DispIdHost.Delegates.MessageParent]=OSF.DDA.SafeArray.Delegate.messageParent;t[OSF.DDA.DispIdHost.Delegates.SendMessage]=OSF.DDA.SafeArray.Delegate.sendMessage;if(OSF.DDA.AsyncMethodNames.RefreshAsync&&n==OSF.DDA.AsyncMethodNames.RefreshAsync.id){var r=function(n,t,i){return OSF.DDA.ClientSettingsManager.read(t,i)};t[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=OSF.DDA.ClientSettingsManager.getSettingsExecuteMethod(r)}if(OSF.DDA.AsyncMethodNames.SaveAsync&&n==OSF.DDA.AsyncMethodNames.SaveAsync.id){var i=function(n,t,i){return OSF.DDA.ClientSettingsManager.write(n[OSF.DDA.SettingsManager.SerializedSettings],n[Microsoft.Office.WebExtension.Parameters.OverwriteIfStale],t,i)};t[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=OSF.DDA.ClientSettingsManager.getSettingsExecuteMethod(i)}return t};var OfficeExt;(function(n){var t=function(){function n(){}n.prototype.execute=function(n,t,i){window.external.Execute(n,t,i)};n.prototype.registerEvent=function(n,t,i,r){window.external.RegisterEvent(n,t,i,r)};n.prototype.unregisterEvent=function(n,t,i){window.external.UnregisterEvent(n,t,i)};return n}();n.RichClientHostController=t})(OfficeExt||(OfficeExt={}));var OfficeExt;(function(n){var t=function(n){__extends(t,n);function t(){n.apply(this,arguments)}t.prototype.messageParent=function(n){var t=n[Microsoft.Office.WebExtension.Parameters.MessageToParent];window.external.MessageParent(t)};t.prototype.openDialog=function(n,t,i,r){this.registerEvent(n,t,i,r)};t.prototype.closeDialog=function(n,t,i){this.unregisterEvent(n,t,i)};t.prototype.sendMessage=function(){};return t}(n.RichClientHostController);n.Win32RichClientHostController=t})(OfficeExt||(OfficeExt={}));OSF.ClientHostController=new OfficeExt.Win32RichClientHostController;var OfficeExt;(function(n){var t;(function(t){var i=function(){var t=null;function n(){this._osfOfficeTheme=t;this._osfOfficeThemeTimeStamp=t}n.prototype.getOfficeTheme=function(){var u="GetOfficeThemeInfo",t=this;if(OSF.DDA._OsfControlContext){if(t._osfOfficeTheme&&t._osfOfficeThemeTimeStamp&&+new Date-t._osfOfficeThemeTimeStamp<n._osfOfficeThemeCacheValidPeriod)OSF.AppTelemetry&&OSF.AppTelemetry.onPropertyDone(u,0);else{var f=+new Date,e=OSF.DDA._OsfControlContext.GetOfficeThemeInfo(),i=+new Date;OSF.AppTelemetry&&OSF.AppTelemetry.onPropertyDone(u,Math.abs(i-f));t._osfOfficeTheme=JSON.parse(e);for(var r in t._osfOfficeTheme)t._osfOfficeTheme[r]=OSF.OUtil.convertIntToCssHexColor(t._osfOfficeTheme[r]);t._osfOfficeThemeTimeStamp=i}return t._osfOfficeTheme}};n.instance=function(){n._instance==t&&(n._instance=new n);return n._instance};n._osfOfficeThemeCacheValidPeriod=5e3;n._instance=t;return n}();t.OfficeThemeManager=i;OSF.OUtil.setNamespace("OfficeTheme",OSF.DDA);OSF.DDA.OfficeTheme.getOfficeTheme=n.OfficeTheme.OfficeThemeManager.instance().getOfficeTheme})(t=n.OfficeTheme||(n.OfficeTheme={}))})(OfficeExt||(OfficeExt={}));OSF.DDA.ClientSettingsManager={getSettingsExecuteMethod:function(n){return function(t){var r,i;try{i=n(t.hostCallArgs,t.onCalling,t.onReceiving);r=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess}catch(u){r=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError;i={name:Strings.OfficeOM.L_InternalError,message:u}}t.onComplete&&t.onComplete(r,i)}},read:function(n,t){var r=[],u=[];n&&n();OSF.DDA._OsfControlContext.GetSettings().Read(r,u);t&&t();for(var f={},i=0;i<r.length;i++)f[r[i]]=u[i];return f},write:function(n,t,i,r){var e=[],f=[];for(var u in n){e.push(u);f.push(n[u])}i&&i();OSF.DDA._OsfControlContext.GetSettings().Write(e,f);r&&r()}};OSF.InitializationHelper.prototype.initializeSettings=function(n){var i=OSF.DDA.ClientSettingsManager.read();return this.deserializeSettings(i,n)};OSF.InitializationHelper.prototype.getAppContext=function(n,t){var r="undefined",f,i,l="Warning: Office.js is loaded outside of Office client";try{if(window.external&&typeof window.external.GetContext!==r)i=OSF.DDA._OsfControlContext=window.external.GetContext();else{OsfMsAjaxFactory.msAjaxDebug.trace(l);return}}catch(et){OsfMsAjaxFactory.msAjaxDebug.trace(l);return}var d=i.GetAppType(),g=i.GetSolutionRef(),k=i.GetAppVersionMajor(),w=i.GetAppVersionMinor(),b=i.GetAppUILocale(),rt=i.GetAppDataLocale(),ut=i.GetDocUrl(),it=i.GetAppCapabilities(),nt=i.GetActivationMode(),tt=i.GetControlIntegrationLevel(),p=[],u;try{u=i.GetSolutionToken()}catch(ft){}var s;typeof i.GetCorrelationId!==r&&(s=i.GetCorrelationId());var h;typeof i.GetInstanceId!==r&&(h=i.GetInstanceId());var e;typeof i.GetTouchEnabled!==r&&(e=i.GetTouchEnabled());var o;typeof i.GetCommerceAllowed!==r&&(o=i.GetCommerceAllowed());var v;typeof i.GetSupportedMatrix!==r&&(v=i.GetSupportedMatrix());var y;typeof i.GetHostCustomMessage!==r&&(y=i.GetHostCustomMessage());var a;typeof i.GetHostFullVersion!==r&&(a=i.GetHostFullVersion());var c;typeof i.GetDialogRequirementMatrix!=r&&(c=i.GetDialogRequirementMatrix());u=u?u.toString():"";f=new OSF.OfficeAppContext(g,d,k,b,rt,ut,it,p,nt,tt,u,s,h,e,o,w,v,y,a,undefined,undefined,undefined,c);OSF.AppTelemetry&&OSF.AppTelemetry.initialize(f);t(f)};(function(){var n=function(){var o=function(n){n&&OSF.OUtil.loadScript(n,function(){OsfMsAjaxFactory.msAjaxDebug.trace("loaded customized script:"+n)})},f,e,n,i=null,r=OSF.OUtil.parseXdmInfo();if(r){n=OSF.OUtil.getInfoItems(r);if(n&&n.length>=3){f=n[0];e=n[2];var t=OSF.OUtil.parseSerializerVersionWithGivenFragment(!1,OSF._OfficeAppFactory.getWindowLocationHash());isNaN(t)&&OSF._OfficeAppFactory.getWindowName&&(t=OSF.OUtil.parseSerializerVersionFromWindowName(!1,OSF._OfficeAppFactory.getWindowName()));i=Microsoft.Office.Common.XdmCommunicationManager.connect(f,window.parent,e,t)}}var u=null;if(i)try{i.invoke("getCustomizedScriptPathAsync",function(n,t){o(n===0?t:null)},{__timeout__:1e3})}catch(s){OsfMsAjaxFactory.msAjaxDebug.trace("no script override through cross frame communication.")}else{try{window.external&&typeof window.external.getCustomizedScriptPath!="undefined"&&(u=window.external.getCustomizedScriptPath())}catch(s){OsfMsAjaxFactory.msAjaxDebug.trace("no script override through window.external.")}o(u)}},t=!0;t&&!OsfMsAjaxFactory.isMsAjaxLoaded()?OSF._OfficeAppFactory&&OSF._OfficeAppFactory&&OSF._OfficeAppFactory.getLoadScriptHelper&&OSF._OfficeAppFactory.getLoadScriptHelper().isScriptLoading(OSF.ConstantNames.MicrosoftAjaxId)?OSF._OfficeAppFactory.getLoadScriptHelper().waitForScripts([OSF.ConstantNames.MicrosoftAjaxId],n):OsfMsAjaxFactory.loadMsAjaxFull(function(){if(OsfMsAjaxFactory.isMsAjaxLoaded())n();else throw"Not able to load MicrosoftAjax.js.";}):n()})();Microsoft.Office.WebExtension.EventType={};OSF.EventDispatch=function(n){var i=this;i._eventHandlers={};i._objectEventHandlers={};i._queuedEventsArgs={};if(n!=null)for(var r=0;r<n.length;r++){var t=n[r],u=t=="objectDeleted"||t=="objectSelectionChanged"||t=="objectDataChanged"||t=="contentControlAdded";u?i._objectEventHandlers[t]={}:i._eventHandlers[t]=[];i._queuedEventsArgs[t]=[]}};OSF.EventDispatch.prototype={getSupportedEvents:function(){var n=[];for(var t in this._eventHandlers)n.push(t);for(var t in this._objectEventHandlers)n.push(t);return n},supportsEvent:function(n){for(var t in this._eventHandlers)if(n==t)return!0;for(var t in this._objectEventHandlers)if(n==t)return!0;return!1},hasEventHandler:function(n,t){var i=this._eventHandlers[n];if(i&&i.length>0)for(var r=0;r<i.length;r++)if(i[r]===t)return!0;return!1},hasObjectEventHandler:function(n,t,i){var f=this._objectEventHandlers[n];if(f!=null)for(var u=f[t],r=0;u!=null&&r<u.length;r++)if(u[r]===i)return!0;return!1},addEventHandler:function(n,t){if(typeof t!="function")return!1;var i=this._eventHandlers[n];if(i&&!this.hasEventHandler(n,t)){i.push(t);return!0}else return!1},addObjectEventHandler:function(n,t,i){if(typeof i!="function")return!1;var r=this._objectEventHandlers[n];if(r&&!this.hasObjectEventHandler(n,t,i)){r[t]==null&&(r[t]=[]);r[t].push(i);return!0}return!1},addEventHandlerAndFireQueuedEvent:function(n,t){var r=this._eventHandlers[n],u=r.length==0,i=this.addEventHandler(n,t);u&&i&&this.fireQueuedEvent(n);return i},removeEventHandler:function(n,t){var i=this._eventHandlers[n];if(i&&i.length>0)for(var r=0;r<i.length;r++)if(i[r]===t){i.splice(r,1);return!0}return!1},removeObjectEventHandler:function(n,t,i){var f=this._objectEventHandlers[n];if(f!=null)for(var u=f[t],r=0;u!=null&&r<u.length;r++)if(u[r]===i){u.splice(r,1);return!0}return!1},clearEventHandlers:function(n){if(typeof this._eventHandlers[n]!="undefined"&&this._eventHandlers[n].length>0){this._eventHandlers[n]=[];return!0}return!1},clearObjectEventHandlers:function(n,t){if(this._objectEventHandlers[n]!=null&&this._objectEventHandlers[n][t]!=null){this._objectEventHandlers[n][t]=[];return!0}return!1},getEventHandlerCount:function(n){return this._eventHandlers[n]!=undefined?this._eventHandlers[n].length:-1},getObjectEventHandlerCount:function(n,t){return this._objectEventHandlers[n]==null||this._objectEventHandlers[n][t]==null?0:this._objectEventHandlers[n][t].length},fireEvent:function(n){if(n.type==undefined)return!1;var i=n.type;if(i&&this._eventHandlers[i]){for(var r=this._eventHandlers[i],t=0;t<r.length;t++)r[t](n);return!0}else return!1},fireObjectEvent:function(n,t){if(t.type==undefined)return!1;var u=t.type;if(u&&this._objectEventHandlers[u]){var f=this._objectEventHandlers[u],i=f[n];if(i!=null){for(var r=0;r<i.length;r++)i[r](t);return!0}}return!1},fireOrQueueEvent:function(n){var i=this,t=n.type;if(t&&i._eventHandlers[t]){var u=i._eventHandlers[t],r=i._queuedEventsArgs[t];u.length==0?r.push(n):i.fireEvent(n);return!0}else return!1},fireQueuedEvent:function(n){if(n&&this._eventHandlers[n]){var i=this._eventHandlers[n],t=this._queuedEventsArgs[n];if(i.length>0){for(var u=i[0];t.length>0;){var r=t.shift();u(r)}return!0}}return!1},clearQueuedEvent:function(n){if(n&&this._eventHandlers[n]){var t=this._queuedEventsArgs[n];t&&(this._queuedEventsArgs[n]=[])}}};OSF.DDA.OMFactory=OSF.DDA.OMFactory||{};OSF.DDA.OMFactory.manufactureEventArgs=function(n,t,i){var o="hostPlatform",e="outlook",f="hostType",u=this,r;switch(n){case Microsoft.Office.WebExtension.EventType.DocumentSelectionChanged:r=new OSF.DDA.DocumentSelectionChangedEventArgs(t);break;case Microsoft.Office.WebExtension.EventType.BindingSelectionChanged:r=new OSF.DDA.BindingSelectionChangedEventArgs(u.manufactureBinding(i,t.document),i[OSF.DDA.PropertyDescriptors.Subset]);break;case Microsoft.Office.WebExtension.EventType.BindingDataChanged:r=new OSF.DDA.BindingDataChangedEventArgs(u.manufactureBinding(i,t.document));break;case Microsoft.Office.WebExtension.EventType.SettingsChanged:r=new OSF.DDA.SettingsChangedEventArgs(t);break;case Microsoft.Office.WebExtension.EventType.ActiveViewChanged:r=new OSF.DDA.ActiveViewChangedEventArgs(i);break;case Microsoft.Office.WebExtension.EventType.OfficeThemeChanged:r=new OSF.DDA.Theming.OfficeThemeChangedEventArgs(i);break;case Microsoft.Office.WebExtension.EventType.DocumentThemeChanged:r=new OSF.DDA.Theming.DocumentThemeChangedEventArgs(i);break;case Microsoft.Office.WebExtension.EventType.AppCommandInvoked:r=OSF.DDA.AppCommand.AppCommandInvokedEventArgs.create(i);break;case Microsoft.Office.WebExtension.EventType.ObjectDeleted:case Microsoft.Office.WebExtension.EventType.ObjectSelectionChanged:case Microsoft.Office.WebExtension.EventType.ObjectDataChanged:case Microsoft.Office.WebExtension.EventType.ContentControlAdded:r=new OSF.DDA.ObjectEventArgs(n,i[Microsoft.Office.WebExtension.Parameters.Id]);break;case Microsoft.Office.WebExtension.EventType.RichApiMessage:r=new OSF.DDA.RichApiMessageEventArgs(n,i);break;case Microsoft.Office.WebExtension.EventType.DataNodeInserted:r=new OSF.DDA.NodeInsertedEventArgs(u.manufactureDataNode(i[OSF.DDA.DataNodeEventProperties.NewNode]),i[OSF.DDA.DataNodeEventProperties.InUndoRedo]);break;case Microsoft.Office.WebExtension.EventType.DataNodeReplaced:r=new OSF.DDA.NodeReplacedEventArgs(u.manufactureDataNode(i[OSF.DDA.DataNodeEventProperties.OldNode]),u.manufactureDataNode(i[OSF.DDA.DataNodeEventProperties.NewNode]),i[OSF.DDA.DataNodeEventProperties.InUndoRedo]);break;case Microsoft.Office.WebExtension.EventType.DataNodeDeleted:r=new OSF.DDA.NodeDeletedEventArgs(u.manufactureDataNode(i[OSF.DDA.DataNodeEventProperties.OldNode]),u.manufactureDataNode(i[OSF.DDA.DataNodeEventProperties.NextSiblingNode]),i[OSF.DDA.DataNodeEventProperties.InUndoRedo]);break;case Microsoft.Office.WebExtension.EventType.TaskSelectionChanged:r=new OSF.DDA.TaskSelectionChangedEventArgs(t);break;case Microsoft.Office.WebExtension.EventType.ResourceSelectionChanged:r=new OSF.DDA.ResourceSelectionChangedEventArgs(t);break;case Microsoft.Office.WebExtension.EventType.ViewSelectionChanged:r=new OSF.DDA.ViewSelectionChangedEventArgs(t);break;case Microsoft.Office.WebExtension.EventType.DialogMessageReceived:r=new OSF.DDA.DialogEventArgs(i);break;case Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived:r=new OSF.DDA.DialogParentEventArgs(i);break;case Microsoft.Office.WebExtension.EventType.ItemChanged:if(OSF._OfficeAppFactory.getHostInfo()[f]==e){r=new OSF.DDA.OlkItemSelectedChangedEventArgs(i);t.initialize(r.initialData);(OSF._OfficeAppFactory.getHostInfo()[o]=="win32"||OSF._OfficeAppFactory.getHostInfo()[o]=="mac")&&t.setCurrentItemNumber(r.itemNumber.itemNumber)}else throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,n));break;case Microsoft.Office.WebExtension.EventType.RecipientsChanged:if(OSF._OfficeAppFactory.getHostInfo()[f]==e)r=new OSF.DDA.OlkRecipientsChangedEventArgs(i);else throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,n));break;case Microsoft.Office.WebExtension.EventType.AppointmentTimeChanged:if(OSF._OfficeAppFactory.getHostInfo()[f]==e)r=new OSF.DDA.OlkAppointmentTimeChangedEventArgs(i);else throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,n));break;case Microsoft.Office.WebExtension.EventType.RecurrenceChanged:if(OSF._OfficeAppFactory.getHostInfo()[f]==e)r=new OSF.DDA.OlkRecurrenceChangedEventArgs(i);else throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,n));break;case Microsoft.Office.WebExtension.EventType.AttachmentsChanged:if(OSF._OfficeAppFactory.getHostInfo()[f]==e)r=new OSF.DDA.OlkAttachmentsChangedEventArgs(i);else throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,n));break;case Microsoft.Office.WebExtension.EventType.EnhancedLocationsChanged:if(OSF._OfficeAppFactory.getHostInfo()[f]==e)r=new OSF.DDA.OlkEnhancedLocationsChangedEventArgs(i);else throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,n));break;default:throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,n));}return r};OSF.DDA.AsyncMethodNames.addNames({AddHandlerAsync:"addHandlerAsync",RemoveHandlerAsync:"removeHandlerAsync"});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.AddHandlerAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.EventType,"enum":Microsoft.Office.WebExtension.EventType,verify:function(n,t,i){return i.supportsEvent(n)}},{name:Microsoft.Office.WebExtension.Parameters.Handler,types:["function"]}],supportedOptions:[],privateStateCallbacks:[]});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.RemoveHandlerAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.EventType,"enum":Microsoft.Office.WebExtension.EventType,verify:function(n,t,i){return i.supportsEvent(n)}}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.Handler,value:{types:["function","object"],defaultValue:null}}],privateStateCallbacks:[]});OSF.DialogShownStatus={hasDialogShown:!1,isWindowDialog:!1};OSF.OUtil.augmentList(OSF.DDA.EventDescriptors,{DialogMessageReceivedEvent:"DialogMessageReceivedEvent"});OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{DialogMessageReceived:"dialogMessageReceived",DialogEventReceived:"dialogEventReceived"});OSF.OUtil.augmentList(OSF.DDA.PropertyDescriptors,{MessageType:"messageType",MessageContent:"messageContent"});OSF.DDA.DialogEventType={};OSF.OUtil.augmentList(OSF.DDA.DialogEventType,{DialogClosed:"dialogClosed",NavigationFailed:"naviationFailed"});OSF.DDA.AsyncMethodNames.addNames({DisplayDialogAsync:"displayDialogAsync",CloseAsync:"close"});OSF.DDA.SyncMethodNames.addNames({MessageParent:"messageParent",AddMessageHandler:"addEventHandler",SendMessage:"sendMessage"});OSF.DDA.UI.ParentUI=function(){var t;t=Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived!=null?new OSF.EventDispatch([Microsoft.Office.WebExtension.EventType.DialogMessageReceived,Microsoft.Office.WebExtension.EventType.DialogEventReceived,Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived]):new OSF.EventDispatch([Microsoft.Office.WebExtension.EventType.DialogMessageReceived,Microsoft.Office.WebExtension.EventType.DialogEventReceived]);var i=OSF.DDA.AsyncMethodNames.DisplayDialogAsync.displayName,n=this;n[i]||OSF.OUtil.defineEnumerableProperty(n,i,{value:function(){var i=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.OpenDialog];i(arguments,t,n)}});OSF.OUtil.finalizeProperties(this)};OSF.DDA.UI.ChildUI=function(n){var i=OSF.DDA.SyncMethodNames.MessageParent.displayName,t=this;t[i]||OSF.OUtil.defineEnumerableProperty(t,i,{value:function(){var n=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.MessageParent];return n(arguments,t)}});var r=OSF.DDA.SyncMethodNames.AddMessageHandler.displayName;t[r]||typeof OSF.DialogParentMessageEventDispatch=="undefined"||OSF.DDA.DispIdHost.addEventSupport(t,OSF.DialogParentMessageEventDispatch,n);OSF.OUtil.finalizeProperties(this)};OSF.DialogHandler=function(){};OSF.DDA.DialogEventArgs=function(n){n[OSF.DDA.PropertyDescriptors.MessageType]==OSF.DialogMessageType.DialogMessageReceived?OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DialogMessageReceived},message:{value:n[OSF.DDA.PropertyDescriptors.MessageContent]}}):OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DialogEventReceived},error:{value:n[OSF.DDA.PropertyDescriptors.MessageType]}})};OSF.DDA.DialogParentEventArgs=function(n){OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived},message:{value:n[OSF.DDA.PropertyDescriptors.MessageContent]}})};OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.DisplayDialogAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Url,types:["string"]}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.Width,value:{types:["number"],defaultValue:99}},{name:Microsoft.Office.WebExtension.Parameters.Height,value:{types:["number"],defaultValue:99}},{name:Microsoft.Office.WebExtension.Parameters.RequireHTTPs,value:{types:["boolean"],defaultValue:!0}},{name:Microsoft.Office.WebExtension.Parameters.DisplayInIframe,value:{types:["boolean"],defaultValue:!1}},{name:Microsoft.Office.WebExtension.Parameters.HideTitle,value:{types:["boolean"],defaultValue:!1}},{name:Microsoft.Office.WebExtension.Parameters.UseDeviceIndependentPixels,value:{types:["boolean"],defaultValue:!1}},{name:Microsoft.Office.WebExtension.Parameters.PromptBeforeOpen,value:{types:["boolean"],defaultValue:!0}}],privateStateCallbacks:[],onSucceeded:function(n){var f=n[Microsoft.Office.WebExtension.Parameters.Id],i=n[Microsoft.Office.WebExtension.Parameters.Data],t=new OSF.DialogHandler,e=OSF.DDA.AsyncMethodNames.CloseAsync.displayName;OSF.OUtil.defineEnumerableProperty(t,e,{value:function(){var n=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.CloseDialog];n(arguments,f,i,t)}});var r=OSF.DDA.SyncMethodNames.AddMessageHandler.displayName;OSF.OUtil.defineEnumerableProperty(t,r,{value:function(){var f=OSF.DDA.SyncMethodCalls[OSF.DDA.SyncMethodNames.AddMessageHandler.id],n=f.verifyAndExtractCall(arguments,t,i),u=n[Microsoft.Office.WebExtension.Parameters.EventType],r=n[Microsoft.Office.WebExtension.Parameters.Handler];return i.addEventHandlerAndFireQueuedEvent(u,r)}});var u=OSF.DDA.SyncMethodNames.SendMessage.displayName;OSF.OUtil.defineEnumerableProperty(t,u,{value:function(){var n=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.SendMessage];return n(arguments,i,t)}});return t},checkCallArgs:function(n){n[Microsoft.Office.WebExtension.Parameters.Width]<=0&&(n[Microsoft.Office.WebExtension.Parameters.Width]=1);!n[Microsoft.Office.WebExtension.Parameters.UseDeviceIndependentPixels]&&n[Microsoft.Office.WebExtension.Parameters.Width]>100&&(n[Microsoft.Office.WebExtension.Parameters.Width]=99);n[Microsoft.Office.WebExtension.Parameters.Height]<=0&&(n[Microsoft.Office.WebExtension.Parameters.Height]=1);!n[Microsoft.Office.WebExtension.Parameters.UseDeviceIndependentPixels]&&n[Microsoft.Office.WebExtension.Parameters.Height]>100&&(n[Microsoft.Office.WebExtension.Parameters.Height]=99);n[Microsoft.Office.WebExtension.Parameters.RequireHTTPs]||(n[Microsoft.Office.WebExtension.Parameters.RequireHTTPs]=!0);return n}});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.CloseAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[]});OSF.DDA.SyncMethodCalls.define({method:OSF.DDA.SyncMethodNames.MessageParent,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.MessageToParent,types:["string","number","boolean"]}],supportedOptions:[]});OSF.DDA.SyncMethodCalls.define({method:OSF.DDA.SyncMethodNames.AddMessageHandler,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.EventType,"enum":Microsoft.Office.WebExtension.EventType,verify:function(n,t,i){return i.supportsEvent(n)}},{name:Microsoft.Office.WebExtension.Parameters.Handler,types:["function"]}],supportedOptions:[]});OSF.DDA.SyncMethodCalls.define({method:OSF.DDA.SyncMethodNames.SendMessage,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.MessageContent,types:["string"]}],supportedOptions:[],privateStateCallbacks:[]});OSF.DDA.SafeArray.Delegate.openDialog=function(n){try{n.onCalling&&n.onCalling();var t=OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent(!0,n);OSF.ClientHostController.openDialog(n.dispId,n.targetId,function(t,i){n.onEvent&&n.onEvent(i);OSF.AppTelemetry&&OSF.AppTelemetry.onEventDone(n.dispId)},t)}catch(i){OSF.DDA.SafeArray.Delegate._onException(i,n)}};OSF.DDA.SafeArray.Delegate.closeDialog=function(n){n.onCalling&&n.onCalling();var t=OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent(!1,n);try{OSF.ClientHostController.closeDialog(n.dispId,n.targetId,t)}catch(i){OSF.DDA.SafeArray.Delegate._onException(i,n)}};OSF.DDA.SafeArray.Delegate.messageParent=function(n){try{n.onCalling&&n.onCalling();var i=+new Date,t=OSF.ClientHostController.messageParent(n.hostCallArgs);n.onReceiving&&n.onReceiving();OSF.AppTelemetry&&OSF.AppTelemetry.onMethodDone(n.dispId,n.hostCallArgs,Math.abs(+new Date-i),t);return t}catch(r){return OSF.DDA.SafeArray.Delegate._onExceptionSyncMethod(r)}};OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidDialogMessageReceivedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.DialogMessageReceivedEvent,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}],isComplexType:!0});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDescriptors.DialogMessageReceivedEvent,fromHost:[{name:OSF.DDA.PropertyDescriptors.MessageType,value:0},{name:OSF.DDA.PropertyDescriptors.MessageContent,value:1}],isComplexType:!0});OSF.DDA.SafeArray.Delegate.sendMessage=function(n){try{n.onCalling&&n.onCalling();var r=+new Date,t=OSF.ClientHostController.sendMessage(n.hostCallArgs);n.onReceiving&&n.onReceiving();return t}catch(i){return OSF.DDA.SafeArray.Delegate._onExceptionSyncMethod(i)}};OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{ItemChanged:"olkItemSelectedChanged"});OSF.OUtil.augmentList(OSF.DDA.EventDescriptors,{OlkItemSelectedData:"OlkItemSelectedData"});OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{RecipientsChanged:"olkRecipientsChanged"});OSF.OUtil.augmentList(OSF.DDA.EventDescriptors,{OlkRecipientsData:"OlkRecipientsData"});OSF.DDA.OlkRecipientsChangedEventArgs=function(n){var t=n[OSF.DDA.EventDescriptors.OlkRecipientsData][0];t===""&&(t=null);OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.RecipientsChanged},changedRecipientFields:{value:JSON.parse(t)}})};OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{AppointmentTimeChanged:"olkAppointmentTimeChanged"});OSF.OUtil.augmentList(OSF.DDA.EventDescriptors,{OlkAppointmentTimeChangedData:"OlkAppointmentTimeChangedData"});OSF.DDA.OlkAppointmentTimeChangedEventArgs=function(n){var u=n[OSF.DDA.EventDescriptors.OlkAppointmentTimeChangedData][0],i,t;try{var r=JSON.parse(u);i=new Date(r.start).toISOString();t=new Date(r.end).toISOString()}catch(f){i=null;t=null}OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.AppointmentTimeChanged},start:{value:i},end:{value:t}})};OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{RecurrenceChanged:"olkRecurrenceChanged"});OSF.OUtil.augmentList(OSF.DDA.EventDescriptors,{OlkRecurrenceData:"OlkRecurrenceData"});OSF.DDA.OlkRecurrenceChangedEventArgs=function(n){var t=null;try{var i=JSON.parse(n[OSF.DDA.EventDescriptors.OlkRecurrenceChangedData][0]);if(i.recurrence!=null){t=JSON.parse(i.recurrence);t=Microsoft.Office.WebExtension.OutlookBase.SeriesTimeJsonConverter(t)}}catch(r){t=null}OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.RecurrenceChanged},recurrence:{value:t}})};OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{OfficeThemeChanged:"officeThemeChanged"});OSF.OUtil.augmentList(OSF.DDA.EventDescriptors,{OfficeThemeData:"OfficeThemeData"});OSF.OUtil.setNamespace("Theming",OSF.DDA);OSF.DDA.Theming.OfficeThemeChangedEventArgs=function(n){var r=JSON.parse(n.OfficeThemeData[0]),i={};for(var t in r)i[t]=OSF.OUtil.convertIntToCssHexColor(r[t]);OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.OfficeThemeChanged},officeTheme:{value:i}})};OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{AttachmentsChanged:"olkAttachmentsChanged"});OSF.OUtil.augmentList(OSF.DDA.EventDescriptors,{OlkAttachmentsChangedData:"OlkAttachmentsChangedData"});OSF.DDA.OlkAttachmentsChangedEventArgs=function(n){var i,t;try{var r=JSON.parse(n[OSF.DDA.EventDescriptors.OlkAttachmentsChangedData][0]);i=r.attachmentStatus;t=Microsoft.Office.WebExtension.OutlookBase.CreateAttachmentDetails(r.attachmentDetails)}catch(u){i=null;t=null}OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.AttachmentsChanged},attachmentStatus:{value:i},attachmentDetails:{value:t}})};OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{EnhancedLocationsChanged:"olkEnhancedLocationsChanged"});OSF.OUtil.augmentList(OSF.DDA.EventDescriptors,{OlkEnhancedLocationsChangedData:"OlkEnhancedLocationsChangedData"});OSF.DDA.OlkEnhancedLocationsChangedEventArgs=function(n){var t;try{var i=JSON.parse(n[OSF.DDA.EventDescriptors.OlkEnhancedLocationsChangedData][0]);t=i.enhancedLocations}catch(r){t=null}OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.EnhancedLocationsChanged},enhancedLocations:{value:t}})};OSF.DDA.OlkItemSelectedChangedEventArgs=function(n){var t=n[OSF.DDA.EventDescriptors.OlkItemSelectedData][0];t===""&&(t=null);OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.ItemChanged},initialData:{value:JSON.parse(t)},itemNumber:{value:JSON.parse(n[OSF.DDA.EventDescriptors.OlkItemSelectedData][1])}})};OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidOlkItemSelectedChangedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.OlkItemSelectedData,value:OSF.DDA.SafeArray.Delegate.ParameterMap.sourceData}],isComplexType:!0});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidOlkRecipientsChangedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.OlkRecipientsData,value:OSF.DDA.SafeArray.Delegate.ParameterMap.sourceData}],isComplexType:!0});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidOlkAppointmentTimeChangedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.OlkAppointmentTimeChangedData,value:OSF.DDA.SafeArray.Delegate.ParameterMap.sourceData}],isComplexType:!0});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidOlkRecurrenceChangedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.OlkRecurrenceChangedData,value:OSF.DDA.SafeArray.Delegate.ParameterMap.sourceData}],isComplexType:!0});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidOfficeThemeChangedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.OfficeThemeData,value:OSF.DDA.SafeArray.Delegate.ParameterMap.sourceData}],isComplexType:!0});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidOlkAttachmentsChangedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.OlkAttachmentsChangedData,value:OSF.DDA.SafeArray.Delegate.ParameterMap.sourceData}],isComplexType:!0});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidOlkEnhancedLocationsChangedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.OlkEnhancedLocationsChangedData,value:OSF.DDA.SafeArray.Delegate.ParameterMap.sourceData}],isComplexType:!0});var OSFLog;(function(n){var u="ResponseTime",f="Message",r="SessionId",i="CorrelationId",t=!0,e=function(){function n(n){this._table=n;this._fields={}}Object.defineProperty(n.prototype,"Fields",{get:function(){return this._fields},enumerable:t,configurable:t});Object.defineProperty(n.prototype,"Table",{get:function(){return this._table},enumerable:t,configurable:t});n.prototype.SerializeFields=function(){};n.prototype.SetSerializedField=function(n,t){typeof t!="undefined"&&t!==null&&(this._serializedFields[n]=t.toString())};n.prototype.SerializeRow=function(){var n=this;n._serializedFields={};n.SetSerializedField("Table",n._table);n.SerializeFields();return JSON.stringify(n._serializedFields)};return n}();n.BaseUsageData=e;var c=function(n){var k="IsFromWacAutomation",w="WacHostEnvironment",b="HostJSVersion",y="OfficeJSVersion",p="DocUrl",g="AppSizeHeight",nt="AppSizeWidth",l="ClientId",d="HostVersion",s="Host",h="UserId",e="Browser",o="AssetId",a="AppURL",v="AppInstanceId",c="AppId";__extends(u,n);function u(){n.call(this,"AppActivated")}Object.defineProperty(u.prototype,i,{get:function(){return this.Fields[i]},set:function(n){this.Fields[i]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,r,{get:function(){return this.Fields[r]},set:function(n){this.Fields[r]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,c,{get:function(){return this.Fields[c]},set:function(n){this.Fields[c]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,v,{get:function(){return this.Fields[v]},set:function(n){this.Fields[v]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,a,{get:function(){return this.Fields[a]},set:function(n){this.Fields[a]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,o,{get:function(){return this.Fields[o]},set:function(n){this.Fields[o]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,e,{get:function(){return this.Fields[e]},set:function(n){this.Fields[e]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,h,{get:function(){return this.Fields[h]},set:function(n){this.Fields[h]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,s,{get:function(){return this.Fields[s]},set:function(n){this.Fields[s]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,d,{get:function(){return this.Fields[d]},set:function(n){this.Fields[d]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,l,{get:function(){return this.Fields[l]},set:function(n){this.Fields[l]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,nt,{get:function(){return this.Fields[nt]},set:function(n){this.Fields[nt]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,g,{get:function(){return this.Fields[g]},set:function(n){this.Fields[g]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,f,{get:function(){return this.Fields[f]},set:function(n){this.Fields[f]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,p,{get:function(){return this.Fields[p]},set:function(n){this.Fields[p]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,y,{get:function(){return this.Fields[y]},set:function(n){this.Fields[y]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,b,{get:function(){return this.Fields[b]},set:function(n){this.Fields[b]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,w,{get:function(){return this.Fields[w]},set:function(n){this.Fields[w]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,k,{get:function(){return this.Fields[k]},set:function(n){this.Fields[k]=n},enumerable:t,configurable:t});u.prototype.SerializeFields=function(){var n=this;n.SetSerializedField(i,n.CorrelationId);n.SetSerializedField(r,n.SessionId);n.SetSerializedField(c,n.AppId);n.SetSerializedField(v,n.AppInstanceId);n.SetSerializedField(a,n.AppURL);n.SetSerializedField(o,n.AssetId);n.SetSerializedField(e,n.Browser);n.SetSerializedField(h,n.UserId);n.SetSerializedField(s,n.Host);n.SetSerializedField(d,n.HostVersion);n.SetSerializedField(l,n.ClientId);n.SetSerializedField(nt,n.AppSizeWidth);n.SetSerializedField(g,n.AppSizeHeight);n.SetSerializedField(f,n.Message);n.SetSerializedField(p,n.DocUrl);n.SetSerializedField(y,n.OfficeJSVersion);n.SetSerializedField(b,n.HostJSVersion);n.SetSerializedField(w,n.WacHostEnvironment);n.SetSerializedField(k,n.IsFromWacAutomation)};return u}(e);n.AppActivatedUsageData=c;var l=function(n){var e="StartTime",o="ScriptId";__extends(f,n);function f(){n.call(this,"ScriptLoad")}Object.defineProperty(f.prototype,i,{get:function(){return this.Fields[i]},set:function(n){this.Fields[i]=n},enumerable:t,configurable:t});Object.defineProperty(f.prototype,r,{get:function(){return this.Fields[r]},set:function(n){this.Fields[r]=n},enumerable:t,configurable:t});Object.defineProperty(f.prototype,o,{get:function(){return this.Fields[o]},set:function(n){this.Fields[o]=n},enumerable:t,configurable:t});Object.defineProperty(f.prototype,e,{get:function(){return this.Fields[e]},set:function(n){this.Fields[e]=n},enumerable:t,configurable:t});Object.defineProperty(f.prototype,u,{get:function(){return this.Fields[u]},set:function(n){this.Fields[u]=n},enumerable:t,configurable:t});f.prototype.SerializeFields=function(){var n=this;n.SetSerializedField(i,n.CorrelationId);n.SetSerializedField(r,n.SessionId);n.SetSerializedField(o,n.ScriptId);n.SetSerializedField(e,n.StartTime);n.SetSerializedField(u,n.ResponseTime)};return f}(e);n.ScriptLoadUsageData=l;var h=function(n){var h="CloseMethod",s="OpenTime",e="AppSizeFinalHeight",o="AppSizeFinalWidth",f="FocusTime";__extends(u,n);function u(){n.call(this,"AppClosed")}Object.defineProperty(u.prototype,i,{get:function(){return this.Fields[i]},set:function(n){this.Fields[i]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,r,{get:function(){return this.Fields[r]},set:function(n){this.Fields[r]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,f,{get:function(){return this.Fields[f]},set:function(n){this.Fields[f]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,o,{get:function(){return this.Fields[o]},set:function(n){this.Fields[o]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,e,{get:function(){return this.Fields[e]},set:function(n){this.Fields[e]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,s,{get:function(){return this.Fields[s]},set:function(n){this.Fields[s]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,h,{get:function(){return this.Fields[h]},set:function(n){this.Fields[h]=n},enumerable:t,configurable:t});u.prototype.SerializeFields=function(){var n=this;n.SetSerializedField(i,n.CorrelationId);n.SetSerializedField(r,n.SessionId);n.SetSerializedField(f,n.FocusTime);n.SetSerializedField(o,n.AppSizeFinalWidth);n.SetSerializedField(e,n.AppSizeFinalHeight);n.SetSerializedField(s,n.OpenTime);n.SetSerializedField(h,n.CloseMethod)};return u}(e);n.AppClosedUsageData=h;var o=function(n){var s="ErrorType",o="Parameters",h="APIID",e="APIType";__extends(f,n);function f(){n.call(this,"APIUsage")}Object.defineProperty(f.prototype,i,{get:function(){return this.Fields[i]},set:function(n){this.Fields[i]=n},enumerable:t,configurable:t});Object.defineProperty(f.prototype,r,{get:function(){return this.Fields[r]},set:function(n){this.Fields[r]=n},enumerable:t,configurable:t});Object.defineProperty(f.prototype,e,{get:function(){return this.Fields[e]},set:function(n){this.Fields[e]=n},enumerable:t,configurable:t});Object.defineProperty(f.prototype,h,{get:function(){return this.Fields[h]},set:function(n){this.Fields[h]=n},enumerable:t,configurable:t});Object.defineProperty(f.prototype,o,{get:function(){return this.Fields[o]},set:function(n){this.Fields[o]=n},enumerable:t,configurable:t});Object.defineProperty(f.prototype,u,{get:function(){return this.Fields[u]},set:function(n){this.Fields[u]=n},enumerable:t,configurable:t});Object.defineProperty(f.prototype,s,{get:function(){return this.Fields[s]},set:function(n){this.Fields[s]=n},enumerable:t,configurable:t});f.prototype.SerializeFields=function(){var n=this;n.SetSerializedField(i,n.CorrelationId);n.SetSerializedField(r,n.SessionId);n.SetSerializedField(e,n.APIType);n.SetSerializedField(h,n.APIID);n.SetSerializedField(o,n.Parameters);n.SetSerializedField(u,n.ResponseTime);n.SetSerializedField(s,n.ErrorType)};return f}(e);n.APIUsageUsageData=o;var s=function(n){var e="SuccessCode";__extends(u,n);function u(){n.call(this,"AppInitialization")}Object.defineProperty(u.prototype,i,{get:function(){return this.Fields[i]},set:function(n){this.Fields[i]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,r,{get:function(){return this.Fields[r]},set:function(n){this.Fields[r]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,e,{get:function(){return this.Fields[e]},set:function(n){this.Fields[e]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,f,{get:function(){return this.Fields[f]},set:function(n){this.Fields[f]=n},enumerable:t,configurable:t});u.prototype.SerializeFields=function(){var n=this;n.SetSerializedField(i,n.CorrelationId);n.SetSerializedField(r,n.SessionId);n.SetSerializedField(e,n.SuccessCode);n.SetSerializedField(f,n.Message)};return u}(e);n.AppInitializationUsageData=s})(OSFLog||(OSFLog={}));var Logger;(function(n){"use strict";(function(n){n[n.info=0]="info";n[n.warning=1]="warning";n[n.error=2]="error"})(n.TraceLevel||(n.TraceLevel={}));var f=n.TraceLevel;(function(n){n[n.none=0]="none";n[n.flush=1]="flush"})(n.SendFlag||(n.SendFlag={}));var e=n.SendFlag;function u(){}n.allowUploadingData=u;function t(){}n.sendLog=t;function i(){try{return new r}catch(n){return null}}var r=function(){function n(){}n.prototype.writeLog=function(){};n.prototype.loadProxyFrame=function(){};return n}();OSF.Logger||(OSF.Logger=n);n.ulsEndpoint=i()})(Logger||(Logger={}));var CDN_PATH_OTELJS="telemetry/oteljs.js",CDN_PATH_OTELJS_AGAVE="telemetry/oteljs_agave.js",OSFAriaLogger;(function(n){var h="ResponseTime",e="double",r=!1,i="int64",u=!0,t="string",f={name:"SessionId",type:t,rename:"OfficeJsSessionId"},p={name:"AppActivated",enabled:u,critical:u,points:[f,{name:"Browser",type:t},{name:"Message",type:t},{name:"AppId",type:t},{name:"AssetId",type:t},{name:"AppURL",type:t},{name:"UserId",type:t},{name:"ClientId",type:t,rename:"BrowserToken"},{name:"Host",type:t},{name:"HostVersion",type:t},{name:"CorrelationId",type:t,rename:"HostSessionId"},{name:"AppSizeWidth",type:i},{name:"AppSizeHeight",type:i},{name:"AppInstanceId",type:t},{name:"DocUrl",type:t},{name:"OfficeJSVersion",type:t},{name:"HostJSVersion",type:t},{name:"WacHostEnvironment",type:t},{name:"IsFromWacAutomation",type:t}]},y={name:"ScriptLoad",enabled:u,critical:r,points:[f,{name:"ScriptId",type:t},{name:"StartTime",type:e},{name:h,type:e}]},w={name:"APIUsage",enabled:r,critical:r,points:[f,{name:"APIType",type:t},{name:"APIID",type:i},{name:"Parameters",type:t},{name:h,type:i},{name:"ErrorType",type:i}]},k={name:"AppInitialization",enabled:u,critical:r,points:[f,{name:"SuccessCode",type:i},{name:"Message",type:t}]},b={name:"AppClosed",enabled:u,critical:r,points:[f,{name:"FocusTime",type:i},{name:"AppSizeFinalWidth",type:i},{name:"AppSizeFinalHeight",type:i},{name:"OpenTime",type:i}]},o=[p,y,w,k,b];function c(n,r){var f=r.rename===undefined?r.name:r.rename,o=r.type,u=undefined;switch(o){case t:u=oteljs.makeStringDataField(f,n);break;case e:typeof n===t&&(n=parseFloat(n));u=oteljs.makeDoubleDataField(f,n);break;case i:typeof n===t&&(n=parseInt(n));u=oteljs.makeInt64DataField(f,n);break;case"boolean":typeof n===t&&(n=n==="true");u=oteljs.makeBooleanDataField(f,n)}return u}function s(n){for(var t=0;t<o.length;t++){var i=o[t];if(i.name===n)return i}return undefined}function l(n){var t=s(n);return t===undefined?r:t.enabled}function v(n,t){var r=s(n);if(r===undefined)return undefined;for(var o=[],i=0,l=r.points;i<l.length;i++){var h=l[i],y=h.name,u=t[y];if(u!==undefined){var f=c(u,h);f!==undefined&&o.push(f)}}var e={};r.critical&&(e={samplingPolicy:oteljs.SamplingPolicy.CriticalBusinessImpact});var v="Office.Extensibility.OfficeJs."+n+"X";return{eventName:v,dataFields:o,eventFlags:e}}var a=function(){var t="db334b301e7b474db5e0f02f07c51a47-a1b5bc36-1bbe-482f-a64a-c2d9cb606706-7439";function n(){}n.prototype.getAriaCDNLocation=function(){return OSF._OfficeAppFactory.getLoadScriptHelper().getOfficeJsBasePath()+"ariatelemetry/aria-web-telemetry.js"};n.getInstance=function(){n.AriaLoggerObj===undefined&&(n.AriaLoggerObj=new n);return n.AriaLoggerObj};n.getOtelCDNLocation=function(){return OSF._OfficeAppFactory.getLoadScriptHelper().getOfficeJsBasePath()+CDN_PATH_OTELJS};n.getOtelSinkCDNLocation=function(){return OSF._OfficeAppFactory.getLoadScriptHelper().getOfficeJsBasePath()+CDN_PATH_OTELJS_AGAVE};n.setInfo=function(t){n.appInfo=t};n.getTelemetryLogger=function(){if(n.otelTelemetryLogger===undefined){var e={assetId:n.appInfo.assetId,browserToken:n.appInfo.clientId,hostJsVersion:n.appInfo.hostJSVersion,id:n.appInfo.appId,instanceId:n.appInfo.appInstanceId,name:n.appInfo.name,officeJsVersion:n.appInfo.officeJSVersion,osfRuntimeVersion:OSF.ConstantNames.FileVersion,sessionId:n.appInfo.sessionId,url:n.appInfo.appURL},h=oteljs.Contracts.Office.System.SDX.getFields("SDX",e),s=OSF._OfficeAppFactory.getHostInfo().hostType,c=OSF._OfficeAppFactory.getHostInfo().hostPlatform,a=n.appInfo.hostVersion,l={"App.Name":s,"App.Platform":c,"App.Version":a},u=oteljs_agave.AgaveSink.createInstance(l),r="Office.Extensibility.OfficeJs",f=t,o=1755,i=new oteljs.TelemetryLogger(undefined,h);i.addSink(u);i.setTenantToken(r,f,o);n.otelTelemetryLogger=i}return n.otelTelemetryLogger};n.sendOtelTelemetryEventCallback=function(t,i){var r=v(t,i);if(r!==undefined)try{var u=n.getTelemetryLogger();u.sendTelemetryEvent(r)}catch(f){}};n.sendOtelTelemetryEvent=function(t,i){var r=1e3,f=function(){Microsoft.Office.WebExtension.onReadyInternal().then(function(){return n.sendOtelTelemetryEventCallback(t,i)})},u=function(){OSF.OUtil.loadScript(n.getOtelSinkCDNLocation(),f,r)};OSF.OUtil.loadScript(n.getOtelCDNLocation(),u,r)};n.prototype.isIUsageData=function(n){return n.Fields!==undefined};n.prototype.loadAriaScriptAndLog=function(i,r){var u=1e3;OSF.OUtil.loadScript(this.getAriaCDNLocation(),function(){try{if(!this.ALogger){var e=t;this.ALogger=AWTLogManager.initialize(e)}var n=new AWTEventProperties;n.setName("Office.Extensibility.OfficeJS."+i);for(var u in r)u.toLowerCase()!=="table"&&n.setProperty(u,r[u]);var f=new Date;n.setProperty("Date",f.toISOString());this.ALogger.logEvent(n)}catch(o){}},u);n.EnableSendingTelemetryWithOTel&&l(i)&&n.sendOtelTelemetryEvent(i,r)};n.prototype.logData=function(n){this.isIUsageData(n)?this.loadAriaScriptAndLog(n.Table,n.Fields):this.loadAriaScriptAndLog(n.Table,n)};n.EnableSendingTelemetryWithOTel=r;return n}();n.AriaLogger=a})(OSFAriaLogger||(OSFAriaLogger={}));var OSFAppTelemetry;(function(n){var r=null,s=!0,i="";"use strict";var t,u=OSF.OUtil.Guid.generateNewGuid(),h=i,tt=new RegExp("^https?://store\\.office(ppe|-int)?\\.com/","i");n.enableTelemetry=s;var a=function(){function n(){}return n}();n.AppInfo=a;var e=function(){function n(n,t){this.name=n;this.handler=t}return n}(),l=function(){function n(){this.clientIDKey="Office API client";this.logIdSetKey="Office App Log Id Set"}n.prototype.getClientId=function(){var t=this,n=t.getValue(t.clientIDKey);if(!n||n.length<=0||n.length>40){n=OSF.OUtil.Guid.generateNewGuid();t.setValue(t.clientIDKey,n)}return n};n.prototype.saveLog=function(n,t){var u=this,r=u.getValue(u.logIdSetKey);r=(r&&r.length>0?r+";":i)+n;u.setValue(u.logIdSetKey,r);u.setValue(n,t)};n.prototype.enumerateLog=function(n,t){var i=this,f=i.getValue(i.logIdSetKey);if(f){var e=f.split(";");for(var o in e){var r=e[o],u=i.getValue(r);if(u){n&&n(r,u);t&&i.remove(r)}}t&&i.remove(i.logIdSetKey)}};n.prototype.getValue=function(n){var r=OSF.OUtil.getLocalStorage(),t=i;r&&(t=r.getItem(n));return t};n.prototype.setValue=function(n,t){var i=OSF.OUtil.getLocalStorage();i&&i.setItem(n,t)};n.prototype.remove=function(n){var t=OSF.OUtil.getLocalStorage();if(t)try{t.removeItem(n)}catch(i){}};return n}(),o=function(){function t(){}t.prototype.LogData=function(t){if(n.enableTelemetry)try{OSFAriaLogger.AriaLogger.getInstance().logData(t)}catch(i){}};t.prototype.LogRawData=function(t){if(n.enableTelemetry)try{OSFAriaLogger.AriaLogger.getInstance().logData(JSON.parse(t))}catch(i){}};return t}();function f(n){n&&(n=n.replace(/[{}]/g,i).toLowerCase());return n||i}var nt=function(){function n(){}n.hashString=function(n){var t=0;if(n.length===0)return t;for(var i=0;i<n.length;i++){var r=n.charCodeAt(i);t=(t<<5)-t+r;t|=0}return t};n.stringToHash=function(t){var r=n.hashString(t),i=r.toString();i=r<0?"1"+i.substring(1):"0"+i;return i};n.startsWith=function(n,t){return n.indexOf(t)==0};n.isFileUrl=function(t){return n.startsWith(t.toLowerCase(),"file:")};n.removeHttpPrefix=function(t){var r=i;n.startsWith(t.toLowerCase(),n.httpsPrefix)?r=n.httpsPrefix:n.startsWith(t.toLowerCase(),n.httpPrefix)&&(r=n.httpPrefix);return t.slice(r.length)};n.getUrlDomain=function(t){var i=n.removeHttpPrefix(t);i=i.split("/")[0];i=i.split(":")[0];return i};n.isIp4Address=function(n){var t=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;return t.test(n)};n.filter=function(t){if(n.isFileUrl(t)){var r=n.stringToHash(t);return"file://"+r}var i=n.getUrlDomain(t);if(n.isIp4Address(i)){var r=n.stringToHash(t);if(n.startsWith(i,"10."))return"IP10Range_"+r;else if(n.startsWith(i,"192."))return"IP192Range_"+r;else if(n.startsWith(i,"127."))return"IP127Range_"+r;return"IPOther_"+r}return i};n.httpPrefix="http://";n.httpsPrefix="https://";return n}();function g(o){if(n.enableTelemetry&&!t){t=new a;t.hostVersion=o.get_hostFullVersion()?o.get_hostFullVersion():o.get_appVersion();t.appId=o.get_id();t.host=o.get_appName();t.browser=window.navigator.userAgent;t.correlationId=f(o.get_correlationId());t.clientId=(new l).getClientId();t.appInstanceId=o.get_appInstanceId();t.appInstanceId&&(t.appInstanceId=t.appInstanceId.replace(/[{}]/g,i).toLowerCase());t.message=o.get_hostCustomMessage();t.officeJSVersion=OSF.ConstantNames.FileVersion;t.hostJSVersion="16.0.11218.10000";o._wacHostEnvironment&&(t.wacHostEnvironment=o._wacHostEnvironment);o._isFromWacAutomation!==undefined&&o._isFromWacAutomation!==r&&(t.isFromWacAutomation=o._isFromWacAutomation.toString().toLowerCase());var c=o.get_docUrl();t.docUrl=tt.test(c)?c:i;var h=location.href;h&&(h=h.split("?")[0].split("#")[0]);t.appURL=nt.filter(h);(function(n,t){var o,s,u;t.assetId=i;t.userId=i;try{o=decodeURIComponent(n);s=new DOMParser;u=s.parseFromString(o,"text/xml");var e=u.getElementsByTagName("t")[0].attributes.getNamedItem("cid"),f=u.getElementsByTagName("t")[0].attributes.getNamedItem("oid");e&&e.nodeValue?t.userId=e.nodeValue:f&&f.nodeValue&&(t.userId=f.nodeValue);t.assetId=u.getElementsByTagName("t")[0].attributes.getNamedItem("aid").nodeValue}catch(h){}finally{o=r;u=r;s=r}})(o.get_eToken(),t);t.sessionId=u;t.name=o.get_addinName();OSFAriaLogger.AriaLogger.setInfo(t);(function(){var l=new Date,i=r,o=0,c=!1,u=function(){if(document.hasFocus())i==r&&(i=new Date);else if(i){o+=Math.abs(+new Date-i.getTime());i=r}},t=[];t.push(new e("focus",u));t.push(new e("blur",u));t.push(new e("focusout",u));t.push(new e("focusin",u));var h=function(){for(var u=0;u<t.length;u++)OSF.OUtil.removeEventListener(window,t[u].name,t[u].handler);t.length=0;if(!c){if(document.hasFocus()&&i){o+=Math.abs(+new Date-i.getTime());i=r}n.onAppClosed(Math.abs(+new Date-l.getTime()),o);c=s}};t.push(new e("beforeunload",h));t.push(new e("unload",h));for(var f=0;f<t.length;f++)OSF.OUtil.addEventListener(window,t[f].name,t[f].handler);u()})();n.onAppActivated()}}n.initialize=g;function it(){if(t){(new l).enumerateLog(function(n,t){return(new o).LogRawData(t)},s);var n=new OSFLog.AppActivatedUsageData;n.SessionId=u;n.AppId=t.appId;n.AssetId=t.assetId;n.AppURL=t.appURL;n.UserId=i;n.ClientId=t.clientId;n.Browser=t.browser;n.Host=t.host;n.HostVersion=t.hostVersion;n.CorrelationId=f(t.correlationId);n.AppSizeWidth=window.innerWidth;n.AppSizeHeight=window.innerHeight;n.AppInstanceId=t.appInstanceId;n.Message=t.message;n.DocUrl=t.docUrl;n.OfficeJSVersion=t.officeJSVersion;n.HostJSVersion=t.hostJSVersion;t.wacHostEnvironment&&(n.WacHostEnvironment=t.wacHostEnvironment);t.isFromWacAutomation!==undefined&&t.isFromWacAutomation!==r&&(n.IsFromWacAutomation=t.isFromWacAutomation);(new o).LogData(n)}}n.onAppActivated=it;function ft(n,t,i,r){var e=new OSFLog.ScriptLoadUsageData;e.CorrelationId=f(r);e.SessionId=u;e.ScriptId=n;e.StartTime=t;e.ResponseTime=i;(new o).LogData(e)}n.onScriptDone=ft;function ut(n,i,r,e,s){if(t){var c=new OSFLog.APIUsageUsageData;c.CorrelationId=f(h);c.SessionId=u;c.APIType=n;c.APIID=i;c.Parameters=r;c.ResponseTime=e;c.ErrorType=s;(new o).LogData(c)}}n.onCallDone=ut;function rt(n,t,u,f){var e=r;if(t)if(typeof t=="number")e=String(t);else if(typeof t=="object")for(var o in t){e!==r?e+=",":e=i;typeof t[o]=="number"&&(e+=String(t[o]))}else e=i;OSF.AppTelemetry.onCallDone("method",n,e,u,f)}n.onMethodDone=rt;function d(n,t){OSF.AppTelemetry.onCallDone("property",-1,n,t)}n.onPropertyDone=d;function y(n,t){OSF.AppTelemetry.onCallDone("event",n,r,0,t)}n.onEventDone=y;function p(n,t,i,u){OSF.AppTelemetry.onCallDone(n?"registerevent":"unregisterevent",t,r,i,u)}n.onRegisterDone=p;function v(n,i){if(t){var r=new OSFLog.AppClosedUsageData;r.CorrelationId=f(h);r.SessionId=u;r.FocusTime=i;r.OpenTime=n;r.AppSizeFinalWidth=window.innerWidth;r.AppSizeFinalHeight=window.innerHeight;(new l).saveLog(u,r.SerializeRow())}}n.onAppClosed=v;function k(n){h=f(n)}n.setOsfControlAppCorrelationId=k;function c(n,t){var i=new OSFLog.AppInitializationUsageData;i.CorrelationId=f(h);i.SessionId=u;i.SuccessCode=n?1:0;i.Message=t;(new o).LogData(i)}n.doAppInitializationLogging=c;function b(n){c(!1,n)}n.logAppCommonMessage=b;function w(n){c(s,n)}n.logAppException=w;OSF.AppTelemetry=n})(OSFAppTelemetry||(OSFAppTelemetry={}));var OfficeExt;(function(n){var t;(function(t){var r=function(){var f="object",e="string",u=null;function r(){var t=this,n=t;t._pseudoDocument=u;t._eventDispatch=u;t._processAppCommandInvocation=function(t){var i=n._verifyManifestCallback(t.callbackName);if(i.errorCode!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess){n._invokeAppCommandCompletedMethod(t.appCommandId,i.errorCode,"");return}var r=n._constructEventObjectForCallback(t);r?window.setTimeout(function(){i.callback(r)},0):n._invokeAppCommandCompletedMethod(t.appCommandId,OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError,"")}}r.initializeOsfDda=function(){OSF.DDA.AsyncMethodNames.addNames({AppCommandInvocationCompletedAsync:"appCommandInvocationCompletedAsync"});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.AppCommandInvocationCompletedAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Id,types:[e]},{name:Microsoft.Office.WebExtension.Parameters.Status,types:["number"]},{name:Microsoft.Office.WebExtension.Parameters.AppCommandInvocationCompletedData,types:[e]}]});OSF.OUtil.augmentList(OSF.DDA.EventDescriptors,{AppCommandInvokedEvent:"AppCommandInvokedEvent"});OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{AppCommandInvoked:"appCommandInvoked"});OSF.OUtil.setNamespace("AppCommand",OSF.DDA);OSF.DDA.AppCommand.AppCommandInvokedEventArgs=n.AppCommand.AppCommandInvokedEventArgs};r.prototype.initializeAndChangeOnce=function(n){var i=this;t.registerDdaFacade();i._pseudoDocument={};OSF.DDA.DispIdHost.addAsyncMethods(i._pseudoDocument,[OSF.DDA.AsyncMethodNames.AppCommandInvocationCompletedAsync]);i._eventDispatch=new OSF.EventDispatch([Microsoft.Office.WebExtension.EventType.AppCommandInvoked]);var r=function(t){n&&(t.status=="succeeded"?n(OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess):n(OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError))};OSF.DDA.DispIdHost.addEventSupport(i._pseudoDocument,i._eventDispatch);i._pseudoDocument.addHandlerAsync(Microsoft.Office.WebExtension.EventType.AppCommandInvoked,i._processAppCommandInvocation,r)};r.prototype._verifyManifestCallback=function(n){var s="function",e={callback:u,errorCode:OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidCallback};n=n.trim();try{for(var t=n.split("."),r=window,i=0;i<t.length-1;i++)if(r[t[i]]&&(typeof r[t[i]]==f||typeof r[t[i]]==s))r=r[t[i]];else return e;var o=r[t[t.length-1]];if(typeof o!=s)return e}catch(h){return e}return{callback:o,errorCode:OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess}};r.prototype._invokeAppCommandCompletedMethod=function(n,t,i){this._pseudoDocument.appCommandInvocationCompletedAsync(n,t,i)};r.prototype._constructEventObjectForCallback=function(n){var f=this,t=new i;try{var r=JSON.parse(n.eventObjStr);this._translateEventObjectInternal(r,t);Object.defineProperty(t,"completed",{value:function(i){t.completedContext=i;var r=JSON.stringify(t);f._invokeAppCommandCompletedMethod(n.appCommandId,OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess,r)},enumerable:!0})}catch(e){t=u}return t};r.prototype._translateEventObjectInternal=function(n,t){for(var i in n)if(n.hasOwnProperty(i)){var r=n[i];if(typeof r==f&&r!=u){OSF.OUtil.defineEnumerableProperty(t,i,{value:{}});this._translateEventObjectInternal(r,t[i])}else Object.defineProperty(t,i,{value:r,enumerable:!0,writable:!0})}};r.prototype._constructObjectByTemplate=function(n,t){var r={};if(!n||!t)return r;for(var i in n)if(n.hasOwnProperty(i)){r[i]=u;if(t[i]!=u){var h=n[i],s=t[i],o=typeof s;typeof h==f&&h!=u?r[i]=this._constructObjectByTemplate(h,s):(o=="number"||o==e||o=="boolean")&&(r[i]=s)}}return r};r.instance=function(){r._instance==u&&(r._instance=new r);return r._instance};r._instance=u;return r}();t.AppCommandManager=r;var u=function(){function n(n,t,i){var r=this;r.type=Microsoft.Office.WebExtension.EventType.AppCommandInvoked;r.appCommandId=n;r.callbackName=t;r.eventObjStr=i}n.create=function(i){return new n(i[t.AppCommandInvokedEventEnums.AppCommandId],i[t.AppCommandInvokedEventEnums.CallbackName],i[t.AppCommandInvokedEventEnums.EventObjStr])};return n}();t.AppCommandInvokedEventArgs=u;var i=function(){function n(){}return n}();t.AppCommandCallbackEventArgs=i;t.AppCommandInvokedEventEnums={AppCommandId:"appCommandId",CallbackName:"callbackName",EventObjStr:"eventObjStr"}})(t=n.AppCommand||(n.AppCommand={}))})(OfficeExt||(OfficeExt={}));OfficeExt.AppCommand.AppCommandManager.initializeOsfDda();var OfficeExt;(function(n){var t;(function(t){function i(){if(OSF.DDA.SafeArray){var t=OSF.DDA.SafeArray.Delegate.ParameterMap;t.define({type:OSF.DDA.MethodDispId.dispidAppCommandInvocationCompletedMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0},{name:Microsoft.Office.WebExtension.Parameters.Status,value:1},{name:Microsoft.Office.WebExtension.Parameters.AppCommandInvocationCompletedData,value:2}]});t.define({type:OSF.DDA.EventDispId.dispidAppCommandInvokedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.AppCommandInvokedEvent,value:t.self}],isComplexType:!0});t.define({type:OSF.DDA.EventDescriptors.AppCommandInvokedEvent,fromHost:[{name:n.AppCommand.AppCommandInvokedEventEnums.AppCommandId,value:0},{name:n.AppCommand.AppCommandInvokedEventEnums.CallbackName,value:1},{name:n.AppCommand.AppCommandInvokedEventEnums.EventObjStr,value:2}],isComplexType:!0})}}t.registerDdaFacade=i})(t=n.AppCommand||(n.AppCommand={}))})(OfficeExt||(OfficeExt={}));OSF.DDA.AsyncMethodNames.addNames({CloseContainerAsync:"closeContainer"});var OfficeExt;(function(n){var t=function(){function n(){}return n}();n.Container=t})(OfficeExt||(OfficeExt={}));OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.CloseContainerAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidCloseContainerMethod,fromHost:[],toHost:[]});OSF.DDA.AsyncMethodNames.addNames({GetAccessTokenAsync:"getAccessTokenAsync"});OSF.DDA.Auth=function(){};OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.GetAccessTokenAsync,requiredArguments:[],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.ForceConsent,value:{types:["boolean"],defaultValue:!1}},{name:Microsoft.Office.WebExtension.Parameters.ForceAddAccount,value:{types:["boolean"],defaultValue:!1}},{name:Microsoft.Office.WebExtension.Parameters.AuthChallenge,value:{types:["string"],defaultValue:""}}],onSucceeded:function(n){return n[Microsoft.Office.WebExtension.Parameters.Data]}});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidGetAccessTokenMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.ForceConsent,value:0},{name:Microsoft.Office.WebExtension.Parameters.ForceAddAccount,value:1},{name:Microsoft.Office.WebExtension.Parameters.AuthChallenge,value:2}],fromHost:[{name:Microsoft.Office.WebExtension.Parameters.Data,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}]});OSF.DDA.AsyncMethodNames.addNames({OpenBrowserWindow:"openBrowserWindow"});OSF.DDA.OpenBrowser=function(){};OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.OpenBrowserWindow,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Url,types:["string"]}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.Reserved,value:{types:["number"],defaultValue:0}}],privateStateCallbacks:[]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidOpenBrowserWindow,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Reserved,value:0},{name:Microsoft.Office.WebExtension.Parameters.Url,value:1}]});OSF.DDA.AsyncMethodNames.addNames({ExecuteFeature:"executeFeatureAsync",QueryFeature:"queryFeatureAsync"});OSF.OUtil.augmentList(OSF.DDA.PropertyDescriptors,{FeatureProperties:"FeatureProperties",TcidEnabled:"TcidEnabled",TcidVisible:"TcidVisible"});OSF.DDA.ExecuteFeature=function(){};OSF.DDA.QueryFeature=function(){};OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.ExecuteFeature,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Tcid,types:["number"]}],privateStateCallbacks:[]});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.QueryFeature,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Tcid,types:["number"]}],privateStateCallbacks:[]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.PropertyDescriptors.FeatureProperties,fromHost:[{name:OSF.DDA.PropertyDescriptors.TcidEnabled,value:0},{name:OSF.DDA.PropertyDescriptors.TcidVisible,value:1}],isComplexType:!0});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidExecuteFeature,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Tcid,value:0}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidQueryFeature,fromHost:[{name:OSF.DDA.PropertyDescriptors.FeatureProperties,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}],toHost:[{name:Microsoft.Office.WebExtension.Parameters.Tcid,value:0}]});var OfficeJsClient_OutlookWin32;(function(n){function i(n){if(n.get_isDialog())n.ui=new OSF.DDA.UI.ChildUI;else{n.ui=new OSF.DDA.UI.ParentUI;OSF.DDA.DispIdHost.addAsyncMethods(n.ui,[OSF.DDA.AsyncMethodNames.CloseContainerAsync])}n.auth=new OSF.DDA.Auth;OSF.DDA.DispIdHost.addAsyncMethods(n.auth,[OSF.DDA.AsyncMethodNames.GetAccessTokenAsync])}n.prepareApiSurface=i;function t(){var n=OfficeExt.AppCommand.AppCommandManager.instance();n.initializeAndChangeOnce()}n.prepareRightAfterWebExtensionInitialize=t})(OfficeJsClient_OutlookWin32||(OfficeJsClient_OutlookWin32={}));OSF.InitializationHelper.prototype.prepareRightAfterWebExtensionInitialize=function(){OfficeJsClient_OutlookWin32.prepareRightAfterWebExtensionInitialize()};OSF.InitializationHelper.prototype.prepareApiSurface=function(n){var t=new OSF.DDA.License(n.get_eToken());if(n.get_appName()==OSF.AppName.OutlookWebApp){OSF.WebApp._UpdateLinksForHostAndXdmInfo();this.initWebDialog(n);this.initWebAuth(n);OSF._OfficeAppFactory.setContext(new OSF.DDA.OutlookContext(n,this._settings,t,n.appOM));OSF._OfficeAppFactory.setHostFacade(new OSF.DDA.DispIdHost.Facade(OSF.DDA.WAC.getDelegateMethods,OSF.DDA.WAC.Delegate.ParameterMap))}else{OfficeJsClient_OutlookWin32.prepareApiSurface(n);OSF._OfficeAppFactory.setContext(new OSF.DDA.OutlookContext(n,this._settings,t,n.appOM,OSF.DDA.OfficeTheme?OSF.DDA.OfficeTheme.getOfficeTheme:null,n.ui));OSF._OfficeAppFactory.setHostFacade(new OSF.DDA.DispIdHost.Facade(OSF.DDA.DispIdHost.getClientDelegateMethods,OSF.DDA.SafeArray.Delegate.ParameterMap))}};OSF.DDA.SettingsManager={SerializedSettings:"serializedSettings",DateJSONPrefix:"Date(",DataJSONSuffix:")",serializeSettings:function(n){var r={};for(var i in n){var t=n[i];try{t=JSON?JSON.stringify(t,function(n,t){return OSF.OUtil.isDate(this[n])?OSF.DDA.SettingsManager.DateJSONPrefix+this[n].getTime()+OSF.DDA.SettingsManager.DataJSONSuffix:t}):Sys.Serialization.JavaScriptSerializer.serialize(t);r[i]=t}catch(u){}}return r},deserializeSettings:function(n){var r={};n=n||{};for(var i in n){var t=n[i];try{t=JSON?JSON.parse(t,function(n,t){var i;if(typeof t=="string"&&t&&t.length>6&&t.slice(0,5)===OSF.DDA.SettingsManager.DateJSONPrefix&&t.slice(-1)===OSF.DDA.SettingsManager.DataJSONSuffix){i=new Date(parseInt(t.slice(5,-1)));if(i)return i}return t}):Sys.Serialization.JavaScriptSerializer.deserialize(t,!0);r[i]=t}catch(u){}}return r}};OSF.InitializationHelper.prototype.loadAppSpecificScriptAndCreateOM=function(n,t,i){Type.registerNamespace("Microsoft.Office.WebExtension.MailboxEnums");Microsoft.Office.WebExtension.MailboxEnums.EntityType={MeetingSuggestion:"meetingSuggestion",TaskSuggestion:"taskSuggestion",Address:"address",EmailAddress:"emailAddress",Url:"url",PhoneNumber:"phoneNumber",Contact:"contact",FlightReservations:"flightReservations",ParcelDeliveries:"parcelDeliveries"};Microsoft.Office.WebExtension.MailboxEnums.ItemType={Message:"message",Appointment:"appointment"};Microsoft.Office.WebExtension.MailboxEnums.ResponseType={None:"none",Organizer:"organizer",Tentative:"tentative",Accepted:"accepted",Declined:"declined"};Microsoft.Office.WebExtension.MailboxEnums.RecipientType={Other:"other",DistributionList:"distributionList",User:"user",ExternalUser:"externalUser"};Microsoft.Office.WebExtension.MailboxEnums.AttachmentType={File:"file",Item:"item",Cloud:"cloud"};Microsoft.Office.WebExtension.MailboxEnums.AttachmentStatus={Added:"added",Removed:"removed"};Microsoft.Office.WebExtension.MailboxEnums.AttachmentContentFormat={Base64:"base64",Url:"url",Eml:"eml",ICalendar:"iCalendar"};Microsoft.Office.WebExtension.MailboxEnums.BodyType={Text:"text",Html:"html"};Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType={ProgressIndicator:"progressIndicator",InformationalMessage:"informationalMessage",ErrorMessage:"errorMessage",InsightMessage:"insightMessage"};Microsoft.Office.WebExtension.MailboxEnums.Folder={Inbox:"inbox",Junk:"junk",DeletedItems:"deletedItems"};Microsoft.Office.WebExtension.CoercionType={Text:"text",Html:"html"};Microsoft.Office.WebExtension.MailboxEnums.UserProfileType={Office365:"office365",OutlookCom:"outlookCom",Enterprise:"enterprise"};Microsoft.Office.WebExtension.MailboxEnums.RestVersion={v1_0:"v1.0",v2_0:"v2.0",Beta:"beta"};Microsoft.Office.WebExtension.MailboxEnums.ModuleType={Addins:"addins"};Microsoft.Office.WebExtension.MailboxEnums.ActionType={ShowTaskPane:"showTaskPane"};Microsoft.Office.WebExtension.MailboxEnums.Days={Mon:"mon",Tue:"tue",Wed:"wed",Thu:"thu",Fri:"fri",Sat:"sat",Sun:"sun",Weekday:"weekday",WeekendDay:"weekendDay",Day:"day"};Microsoft.Office.WebExtension.MailboxEnums.WeekNumber={First:"first",Second:"second",Third:"third",Fourth:"fourth",Last:"last"};Microsoft.Office.WebExtension.MailboxEnums.RecurrenceType={Daily:"daily",Weekday:"weekday",Weekly:"weekly",Monthly:"monthly",Yearly:"yearly"};Microsoft.Office.WebExtension.MailboxEnums.Month={Jan:"jan",Feb:"feb",Mar:"mar",Apr:"apr",May:"may",Jun:"jun",Jul:"jul",Aug:"aug",Sep:"sep",Oct:"oct",Nov:"nov",Dec:"dec"};Microsoft.Office.WebExtension.MailboxEnums.DelegatePermissions={Read:1,Write:2,DeleteOwn:4,DeleteAll:8,EditOwn:16,EditAll:32};Microsoft.Office.WebExtension.MailboxEnums.TimeZone={AfghanistanStandardTime:"Afghanistan Standard Time",AlaskanStandardTime:"Alaskan Standard Time",AleutianStandardTime:"Aleutian Standard Time",AltaiStandardTime:"Altai Standard Time",ArabStandardTime:"Arab Standard Time",ArabianStandardTime:"Arabian Standard Time",ArabicStandardTime:"Arabic Standard Time",ArgentinaStandardTime:"Argentina Standard Time",AstrakhanStandardTime:"Astrakhan Standard Time",AtlanticStandardTime:"Atlantic Standard Time",AUSCentralStandardTime:"AUS Central Standard Time",AusCentralWStandardTime:"Aus Central W. Standard Time",AUSEasternStandardTime:"AUS Eastern Standard Time",AzerbaijanStandardTime:"Azerbaijan Standard Time",AzoresStandardTime:"Azores Standard Time",BahiaStandardTime:"Bahia Standard Time",BangladeshStandardTime:"Bangladesh Standard Time",BelarusStandardTime:"Belarus Standard Time",BougainvilleStandardTime:"Bougainville Standard Time",CanadaCentralStandardTime:"Canada Central Standard Time",CapeVerdeStandardTime:"Cape Verde Standard Time",CaucasusStandardTime:"Caucasus Standard Time",CenAustraliaStandardTime:"Cen. Australia Standard Time",CentralAmericaStandardTime:"Central America Standard Time",CentralAsiaStandardTime:"Central Asia Standard Time",CentralBrazilianStandardTime:"Central Brazilian Standard Time",CentralEuropeStandardTime:"Central Europe Standard Time",CentralEuropeanStandardTime:"Central European Standard Time",CentralPacificStandardTime:"Central Pacific Standard Time",CentralStandardTime:"Central Standard Time",CentralStandardTime_Mexico:"Central Standard Time (Mexico)",ChathamIslandsStandardTime:"Chatham Islands Standard Time",ChinaStandardTime:"China Standard Time",CubaStandardTime:"Cuba Standard Time",DatelineStandardTime:"Dateline Standard Time",EAfricaStandardTime:"E. Africa Standard Time",EAustraliaStandardTime:"E. Australia Standard Time",EEuropeStandardTime:"E. Europe Standard Time",ESouthAmericaStandardTime:"E. South America Standard Time",EasterIslandStandardTime:"Easter Island Standard Time",EasternStandardTime:"Eastern Standard Time",EasternStandardTime_Mexico:"Eastern Standard Time (Mexico)",EgyptStandardTime:"Egypt Standard Time",EkaterinburgStandardTime:"Ekaterinburg Standard Time",FijiStandardTime:"Fiji Standard Time",FLEStandardTime:"FLE Standard Time",GeorgianStandardTime:"Georgian Standard Time",GMTStandardTime:"GMT Standard Time",GreenlandStandardTime:"Greenland Standard Time",GreenwichStandardTime:"Greenwich Standard Time",GTBStandardTime:"GTB Standard Time",HaitiStandardTime:"Haiti Standard Time",HawaiianStandardTime:"Hawaiian Standard Time",IndiaStandardTime:"India Standard Time",IranStandardTime:"Iran Standard Time",IsraelStandardTime:"Israel Standard Time",JordanStandardTime:"Jordan Standard Time",KaliningradStandardTime:"Kaliningrad Standard Time",KamchatkaStandardTime:"Kamchatka Standard Time",KoreaStandardTime:"Korea Standard Time",LibyaStandardTime:"Libya Standard Time",LineIslandsStandardTime:"Line Islands Standard Time",LordHoweStandardTime:"Lord Howe Standard Time",MagadanStandardTime:"Magadan Standard Time",MagallanesStandardTime:"Magallanes Standard Time",MarquesasStandardTime:"Marquesas Standard Time",MauritiusStandardTime:"Mauritius Standard Time",MidAtlanticStandardTime:"Mid-Atlantic Standard Time",MiddleEastStandardTime:"Middle East Standard Time",MontevideoStandardTime:"Montevideo Standard Time",MoroccoStandardTime:"Morocco Standard Time",MountainStandardTime:"Mountain Standard Time",MountainStandardTime_Mexico:"Mountain Standard Time (Mexico)",MyanmarStandardTime:"Myanmar Standard Time",NCentralAsiaStandardTime:"N. Central Asia Standard Time",NamibiaStandardTime:"Namibia Standard Time",NepalStandardTime:"Nepal Standard Time",NewZealandStandardTime:"New Zealand Standard Time",NewfoundlandStandardTime:"Newfoundland Standard Time",NorfolkStandardTime:"Norfolk Standard Time",NorthAsiaEastStandardTime:"North Asia East Standard Time",NorthAsiaStandardTime:"North Asia Standard Time",NorthKoreaStandardTime:"North Korea Standard Time",OmskStandardTime:"Omsk Standard Time",PacificSAStandardTime:"Pacific SA Standard Time",PacificStandardTime:"Pacific Standard Time",PacificStandardTime_Mexico:"Pacific Standard Time (Mexico)",PakistanStandardTime:"Pakistan Standard Time",ParaguayStandardTime:"Paraguay Standard Time",RomanceStandardTime:"Romance Standard Time",RussiaTimeZone10:"Russia Time Zone 10",RussiaTimeZone11:"Russia Time Zone 11",RussiaTimeZone3:"Russia Time Zone 3",RussianStandardTime:"Russian Standard Time",SAEasternStandardTime:"SA Eastern Standard Time",SAPacificStandardTime:"SA Pacific Standard Time",SAWesternStandardTime:"SA Western Standard Time",SaintPierreStandardTime:"Saint Pierre Standard Time",SakhalinStandardTime:"Sakhalin Standard Time",SamoaStandardTime:"Samoa Standard Time",SaratovStandardTime:"Saratov Standard Time",SEAsiaStandardTime:"SE Asia Standard Time",SingaporeStandardTime:"Singapore Standard Time",SouthAfricaStandardTime:"South Africa Standard Time",SriLankaStandardTime:"Sri Lanka Standard Time",SudanStandardTime:"Sudan Standard Time",SyriaStandardTime:"Syria Standard Time",TaipeiStandardTime:"Taipei Standard Time",TasmaniaStandardTime:"Tasmania Standard Time",TocantinsStandardTime:"Tocantins Standard Time",TokyoStandardTime:"Tokyo Standard Time",TomskStandardTime:"Tomsk Standard Time",TongaStandardTime:"Tonga Standard Time",TransbaikalStandardTime:"Transbaikal Standard Time",TurkeyStandardTime:"Turkey Standard Time",TurksAndCaicosStandardTime:"Turks And Caicos Standard Time",UlaanbaatarStandardTime:"Ulaanbaatar Standard Time",USEasternStandardTime:"US Eastern Standard Time",USMountainStandardTime:"US Mountain Standard Time",UTC:"UTC",UTCPLUS12:"UTC+12",UTCPLUS13:"UTC+13",UTCMINUS02:"UTC-02",UTCMINUS08:"UTC-08",UTCMINUS09:"UTC-09",UTCMINUS11:"UTC-11",VenezuelaStandardTime:"Venezuela Standard Time",VladivostokStandardTime:"Vladivostok Standard Time",WAustraliaStandardTime:"W. Australia Standard Time",WCentralAfricaStandardTime:"W. Central Africa Standard Time",WEuropeStandardTime:"W. Europe Standard Time",WMongoliaStandardTime:"W. Mongolia Standard Time",WestAsiaStandardTime:"West Asia Standard Time",WestBankStandardTime:"West Bank Standard Time",WestPacificStandardTime:"West Pacific Standard Time",YakutskStandardTime:"Yakutsk Standard Time"};Microsoft.Office.WebExtension.MailboxEnums.LocationType={Custom:"custom",Room:"room"};Type.registerNamespace("OSF.DDA");var u=window.OSF||{};u.DDA=u.DDA||{};window.OSF.DDA.OutlookAppOm=u.DDA.OutlookAppOm=function(n,t,i){this.$$d__getSharedPropertiesAsyncApi$p$0=Function.createDelegate(this,this._getSharedPropertiesAsyncApi$p$0);this.$$d_navigateToModuleAsync=Function.createDelegate(this,this.navigateToModuleAsync);this.$$d_displayPersonaCardAsync=Function.createDelegate(this,this.displayPersonaCardAsync);this.$$d_displayNewMessageFormApi=Function.createDelegate(this,this.displayNewMessageFormApi);this.$$d__displayNewAppointmentFormApi$p$0=Function.createDelegate(this,this._displayNewAppointmentFormApi$p$0);this.$$d_windowOpenOverrideHandler=Function.createDelegate(this,this.windowOpenOverrideHandler);this.$$d__getRestUrl$p$0=Function.createDelegate(this,this._getRestUrl$p$0);this.$$d__getEwsUrl$p$0=Function.createDelegate(this,this._getEwsUrl$p$0);this.$$d__getDiagnostics$p$0=Function.createDelegate(this,this._getDiagnostics$p$0);this.$$d__getUserProfile$p$0=Function.createDelegate(this,this._getUserProfile$p$0);this.$$d_getItem=Function.createDelegate(this,this.getItem);this.$$d__callAppReadyCallback$p$0=Function.createDelegate(this,this._callAppReadyCallback$p$0);this.$$d__getInitialDataResponseHandler$p$0=Function.createDelegate(this,this._getInitialDataResponseHandler$p$0);window.OSF.DDA.OutlookAppOm._instance$p=this;this._officeAppContext$p$0=n;this._appReadyCallback$p$0=i;var r=this;var u=function(){i&&(r._officeAppContext$p$0.get_isDialog()?window.setTimeout(r.$$d__callAppReadyCallback$p$0,0):r.invokeHostMethod(1,null,r.$$d__getInitialDataResponseHandler$p$0))};this._areStringsLoaded$p$0()?u():this._loadLocalizedScript$p$0(u)};window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i=function(n){if(!n)throw Error.create(window._u.ExtensibilityStrings.l_ElevatedPermissionNeeded_Text);};window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i=function(n,t,i,r){if(n<t||n>i)throw Error.argumentOutOfRange(r);};window.OSF.DDA.OutlookAppOm._throwOnInvalidModule$p=function(n){if(r.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("module");else if(n==="")throw Error.argument("module","module cannot be empty.");if(n!==window.Microsoft.Office.WebExtension.MailboxEnums.ModuleType.Addins)throw Error.notImplemented(String.format("API not supported for module '{0}'",n));};window.OSF.DDA.OutlookAppOm._getHtmlBody$p=function(n){var t="";if("htmlBody"in n){window.OSF.DDA.OutlookAppOm._throwOnInvalidHtmlBody$p(n.htmlBody);t=n.htmlBody}return t};window.OSF.DDA.OutlookAppOm._getAttachments$p=function(n){var t=[];if("attachments"in n){t=n.attachments;window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentsArray$p(t)}return t};window.OSF.DDA.OutlookAppOm._getOptionsAndCallback$p=function(n){var t=[];"options"in n&&(t[0]=n.options);"callback"in n&&(t[t.length]=n.callback);return t};window.OSF.DDA.OutlookAppOm._createAttachmentsDataForHost$p=function(n){var r=new Array(0);if(Array.isInstanceOfType(n))for(var t=0;t<n.length;t++)if(Object.isInstanceOfType(n[t])){var i=n[t];window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachment$p(i);r[t]=window.OSF.DDA.OutlookAppOm._createAttachmentData$p(i)}else throw Error.argument("attachments");return r};window.OSF.DDA.OutlookAppOm._throwOnInvalidHtmlBody$p=function(n){if(!String.isInstanceOfType(n))throw Error.argument("htmlBody");if(r.ScriptHelpers.isNullOrUndefined(n))throw Error.argument("htmlBody");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,window.OSF.DDA.OutlookAppOm.maxBodyLength,"htmlBody")};window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentsArray$p=function(n){if(!Array.isInstanceOfType(n))throw Error.argument("attachments");};window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachment$p=function(n){if(!Object.isInstanceOfType(n))throw Error.argument("attachments");if(!("type"in n)||!("name"in n))throw Error.argument("attachments");if(!("url"in n||"itemId"in n))throw Error.argument("attachments");};window.OSF.DDA.OutlookAppOm._createAttachmentData$p=function(n){var i=null;if(n.type==="file"){var f=n.url;var t=n.name;var e=r.ScriptHelpers.isValueTrue(n.isInline);window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentUrlOrName$p(f,t);i=window.OSF.DDA.OutlookAppOm._createFileAttachmentData$p(f,t,e)}else if(n.type==="item"){var u=window.OSF.DDA.OutlookAppOm.getItemIdBasedOnHost(n.itemId);var t=n.name;window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentItemIdOrName$p(u,t);i=window.OSF.DDA.OutlookAppOm._createItemAttachmentData$p(u,t)}else throw Error.argument("attachments");return i};window.OSF.DDA.OutlookAppOm._createFileAttachmentData$p=function(n,t,i){return["file",t,n,i]};window.OSF.DDA.OutlookAppOm._createItemAttachmentData$p=function(n,t){return["item",t,n]};window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentUrlOrName$p=function(n,t){if(!String.isInstanceOfType(n)||!String.isInstanceOfType(t))throw Error.argument("attachments");if(n.length>2048)throw Error.argumentOutOfRange("attachments",n.length,window._u.ExtensibilityStrings.l_AttachmentUrlTooLong_Text);window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentName$p(t)};window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentItemIdOrName$p=function(n,t){if(!String.isInstanceOfType(n)||!String.isInstanceOfType(t))throw Error.argument("attachments");if(n.length>200)throw Error.argumentOutOfRange("attachments",n.length,window._u.ExtensibilityStrings.l_AttachmentItemIdTooLong_Text);window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentName$p(t)};window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentName$p=function(n){if(n.length>255)throw Error.argumentOutOfRange("attachments",n.length,window._u.ExtensibilityStrings.l_AttachmentNameTooLong_Text);};window.OSF.DDA.OutlookAppOm._throwOnInvalidRestVersion$p=function(n){if(!n)throw Error.argumentNull("restVersion");if(n!==window.Microsoft.Office.WebExtension.MailboxEnums.RestVersion.v1_0&&n!==window.Microsoft.Office.WebExtension.MailboxEnums.RestVersion.v2_0&&n!==window.Microsoft.Office.WebExtension.MailboxEnums.RestVersion.Beta)throw Error.argument("restVersion");};window.OSF.DDA.OutlookAppOm.getItemIdBasedOnHost=function(n){return window.OSF.DDA.OutlookAppOm._instance$p._initialData$p$0&&window.OSF.DDA.OutlookAppOm._instance$p._initialData$p$0.get__isRestIdSupported$i$0()?window.OSF.DDA.OutlookAppOm._instance$p.convertToRestId(n,window.Microsoft.Office.WebExtension.MailboxEnums.RestVersion.v1_0):window.OSF.DDA.OutlookAppOm._instance$p.convertToEwsId(n,window.Microsoft.Office.WebExtension.MailboxEnums.RestVersion.v1_0)};window.OSF.DDA.OutlookAppOm.getErrorForTelemetry=function(n,t){return!r.ScriptHelpers.isNullOrUndefined(n)&&n?n:t?"error"in t?t.error?"errorCode"in t?t.errorCode:-901:0:"wasProxySuccessful"in t?t.wasProxySuccessful?0:-902:"wasSuccessful"in t?t.wasSuccessful?0:-903:-904:-900};window.OSF.DDA.OutlookAppOm.addAdditionalArgs=function(n,t){return t};window.OSF.DDA.OutlookAppOm.throwOnArgumentType=function(n,t,i){if(Object.getType(n)!==t)throw Error.argumentType(i);};window.OSF.DDA.OutlookAppOm._validateOptionalStringParameter$p=function(n,t,i,u){if(!r.ScriptHelpers.isNullOrUndefined(n)){window.OSF.DDA.OutlookAppOm.throwOnArgumentType(n,String,u);var f=n;window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(f.length,t,i,u)}};window.OSF.DDA.OutlookAppOm._convertRecipientArrayParameterForOutlookForDisplayApi$p=function(n){return n?n.join(";"):null};window.OSF.DDA.OutlookAppOm._convertComposeEmailDictionaryParameterForSetApi$p=function(n){if(!n)return null;for(var i=new Array(n.length),t=0;t<n.length;t++)i[t]=[n[t].address,n[t].name];return i};window.OSF.DDA.OutlookAppOm._validateAndNormalizeRecipientEmails$p=function(n,t){if(r.ScriptHelpers.isNullOrUndefined(n))return null;window.OSF.DDA.OutlookAppOm.throwOnArgumentType(n,Array,t);var u=n;var f=null;var e=!1;window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(u.length,0,window.OSF.DDA.OutlookAppOm._maxRecipients$p,String.format("{0}.length",t));for(var i=0;i<u.length;i++)if(r.EmailAddressDetails.isInstanceOfType(u[i])){e=!0;break}e&&(f=[]);for(var i=0;i<u.length;i++)if(e){f[i]=r.EmailAddressDetails.isInstanceOfType(u[i])?u[i].emailAddress:u[i];window.OSF.DDA.OutlookAppOm.throwOnArgumentType(f[i],String,String.format("{0}[{1}]",t,i))}else window.OSF.DDA.OutlookAppOm.throwOnArgumentType(u[i],String,String.format("{0}[{1}]",t,i));return f};u.DDA.OutlookAppOm.prototype={_initialData$p$0:null,_item$p$0:null,_userProfile$p$0:null,_diagnostics$p$0:null,_officeAppContext$p$0:null,_appReadyCallback$p$0:null,_clientEndPoint$p$0:null,_hostItemType$p$0:0,_additionalOutlookParams$p$0:null,get_clientEndPoint:function(){this._clientEndPoint$p$0||(this._clientEndPoint$p$0=u._OfficeAppFactory.getClientEndPoint());return this._clientEndPoint$p$0},set_clientEndPoint:function(n){this._clientEndPoint$p$0=n;return n},get_initialData:function(){return this._initialData$p$0},get__appName$i$0:function(){return this._officeAppContext$p$0.get_appName()},get_additionalOutlookParams:function(){return this._additionalOutlookParams$p$0},addEventSupport:function(){this._item$p$0&&u.DDA.DispIdHost.addEventSupport(this._item$p$0,new u.EventDispatch([Microsoft.Office.WebExtension.EventType.RecipientsChanged,Microsoft.Office.WebExtension.EventType.AppointmentTimeChanged,Microsoft.Office.WebExtension.EventType.RecurrenceChanged,Microsoft.Office.WebExtension.EventType.AttachmentsChanged,Microsoft.Office.WebExtension.EventType.EnhancedLocationsChanged]))},windowOpenOverrideHandler:function(n,t,i,r){this.invokeHostMethod(403,{launchUrl:n},null)},createAsyncResult:function(n,t,i,f,e){var s={};var o=null;s[u.DDA.AsyncResultEnum.Properties.Value]=n;s[u.DDA.AsyncResultEnum.Properties.Context]=f;if(0!==t){o={};var h=r.OutlookErrorManager.getErrorArgs(i);o[u.DDA.AsyncResultEnum.ErrorProperties.Name]=h.name;o[u.DDA.AsyncResultEnum.ErrorProperties.Message]=e?e:h.message;o[u.DDA.AsyncResultEnum.ErrorProperties.Code]=i}return new u.DDA.AsyncResult(s,o)},_throwOnMethodCallForInsufficientPermission$i$0:function(n,t){if(this._initialData$p$0._permissionLevel$p$0<n)throw Error.create(String.format(window._u.ExtensibilityStrings.l_ElevatedPermissionNeededForMethod_Text,t));},_displayReplyForm$i$0:function(n){this._displayReplyFormHelper$p$0(n,!1)},_displayReplyAllForm$i$0:function(n){this._displayReplyFormHelper$p$0(n,!0)},setActionsDefinition:function(n){this._additionalOutlookParams$p$0.setActionsDefinition(n)},get_itemNumber:function(){return this._additionalOutlookParams$p$0._itemNumber$p$0},get_actionsDefinition:function(){return this._additionalOutlookParams$p$0._actionsDefinition$p$0},_displayReplyFormHelper$p$0:function(n,t){if(String.isInstanceOfType(n))this._doDisplayReplyForm$p$0(n,t);else if(Object.isInstanceOfType(n)&&Object.getTypeName(n)==="Object")this._doDisplayReplyFormWithAttachments$p$0(n,t);else throw Error.argumentType();},_doDisplayReplyForm$p$0:function(n,t){r.ScriptHelpers.isNullOrUndefined(n)||window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,window.OSF.DDA.OutlookAppOm.maxBodyLength,"htmlBody");this.invokeHostMethod(t?11:10,{htmlBody:n},null)},_doDisplayReplyFormWithAttachments$p$0:function(n,t){var f=window.OSF.DDA.OutlookAppOm._getHtmlBody$p(n);var u=window.OSF.DDA.OutlookAppOm._getAttachments$p(n);var i=r.CommonParameters.parse(window.OSF.DDA.OutlookAppOm._getOptionsAndCallback$p(n),!1);var e=this;this._standardInvokeHostMethod$i$0(t?31:30,{htmlBody:f,attachments:window.OSF.DDA.OutlookAppOm._createAttachmentsDataForHost$p(u)},function(n){return n},i._asyncContext$p$0,i._callback$p$0)},_standardInvokeHostMethod$i$0:function(n,t,i,r,u){var f=this;this.invokeHostMethod(n,t,function(n,t){if(u){var o=null;if(Object.isInstanceOfType(t)){var e=t;if("error"in e||"data"in e||"errorCode"in e)if(e.error){var s=e.errorCode;o=f.createAsyncResult(null,1,s,r,null)}else{var h=i?i(e.data):e.data;o=f.createAsyncResult(h,0,0,r,null)}}!o&&n&&(o=f.createAsyncResult(null,1,9002,r,null));u(o)}})},getItemNumberFromOutlookResponse:function(n){var i=0;if(n.length>2){var t=window.JSON.parse(n[2]);if(Object.isInstanceOfType(t)){var r=t;i=r.itemNumber}}return i},createDeserializedData:function(n,t){var i=null;var r=window.JSON.parse(n[0]);if(Object.isInstanceOfType(r))i=this._createDeserializedDataWithDictionary$p$0(n,t);else if(Number.isInstanceOfType(r))i=this._createDeserializedDataWithInt$p$0(n,t);else throw Error.notImplemented("Return data type from host must be Dictionary or int");return i},_createDeserializedDataWithDictionary$p$0:function(n,t){var i=window.JSON.parse(n[0]);if(t){i.error=!0;i.errorCode=9030}else if(n.length>1&&n[1]){i.error=!0;i.errorCode=n[1];if(n.length>2){var r=window.JSON.parse(n[2]);i.diagnostics=r.Diagnostics}}else i.error=!1;return i},_createDeserializedDataWithInt$p$0:function(n,t){var i={};i.error=!0;i.errorCode=n[0];return i},invokeHostMethod:function(n,t,i){var f=+new Date;var o=this;var e=function(t,r){if(window.OSF.AppTelemetry){var u=window.OSF.DDA.OutlookAppOm.getErrorForTelemetry(t,r);window.OSF.AppTelemetry.onMethodDone(n,null,Math.abs(+new Date-f),u)}i&&i(t,r)};if(64===this._officeAppContext$p$0.get_appName()){var r={ApiParams:t};r.MethodData={ControlId:u._OfficeAppFactory.getId(),DispatchId:n};r=window.OSF.DDA.OutlookAppOm.addAdditionalArgs(n,r);n===1?this.get_clientEndPoint().invoke("GetInitialData",e,r):this.get_clientEndPoint().invoke("ExecuteMethod",e,r)}else this._isOwaOnlyMethod$p$0(n)?i&&i(-2,null):this.callOutlookDispatcher(n,t,i,f)},callOutlookDispatcher:function(n,t,i,r){var e=this.convertToOutlookParameters(n,t);var f=this;u.ClientHostController.execute(n,e,function(t,u){var o=null;var e=t.toArray();if(e.length>0){var s=f.getItemNumberFromOutlookResponse(e);var l=s>0;var c=l&&s>f._additionalOutlookParams$p$0._itemNumber$p$0;o=f.createDeserializedData(e,c)}else if(i)throw Error.argumentNull("responseData","Unexpected null/empty data from host.");if(window.OSF.AppTelemetry){var h=window.OSF.DDA.OutlookAppOm.getErrorForTelemetry(u,o);window.OSF.AppTelemetry.onMethodDone(n,null,Math.abs(+new Date-r),h)}i&&i(u,o)})},_dictionaryToDate$i$0:function(n){var t=new Date(n.year,n.month,n.date,n.hours,n.minutes,n.seconds,n.milliseconds?n.milliseconds:0);if(window.isNaN(t.getTime()))throw Error.format(window._u.ExtensibilityStrings.l_InvalidDate_Text);return t},_dateToDictionary$i$0:function(n){var t={};t.month=n.getMonth();t.date=n.getDate();t.year=n.getFullYear();t.hours=n.getHours();t.minutes=n.getMinutes();t.seconds=n.getSeconds();t.milliseconds=n.getMilliseconds();return t},_isOwaOnlyMethod$p$0:function(n){switch(n){case 402:case 401:case 400:case 403:return!0;default:return!1}},shouldRunNewCode:function(n){return(this._initialData$p$0.get__shouldRunNewCodeForFlags$i$0()&n)===n},isOutlook16OrGreater:function(){var n=this._initialData$p$0.get__hostVersion$i$0();var i=0;var t=0;if(n){i=n.indexOf(".");t=window.parseInt(n.substring(0,i))}return t>=16},isApiVersionSupported:function(n){var r=!1;try{var u=window.JSON.parse(this._officeAppContext$p$0.get_requirementMatrix());var f=u.Mailbox;var i=f.split(".");var t=n.split(".");(window.parseInt(i[0])>window.parseInt(t[0])||window.parseInt(i[0])===window.parseInt(t[0])&&window.parseInt(i[1])>=window.parseInt(t[1]))&&(r=!0)}catch(e){}return r},convertToOutlookParameters:function(n,t){var i=null;var r={};switch(n){case 1:case 2:case 3:case 14:case 18:case 26:case 32:case 41:case 34:case 99:case 103:case 107:case 108:case 149:case 154:break;case 12:r.isRest=t.isRest;break;case 4:var f=window.JSON.stringify(t.customProperties);i=[f];break;case 5:i=[t.body];break;case 8:case 9:i=[t.itemId];break;case 7:i=[window.OSF.DDA.OutlookAppOm._convertRecipientArrayParameterForOutlookForDisplayApi$p(t.requiredAttendees),window.OSF.DDA.OutlookAppOm._convertRecipientArrayParameterForOutlookForDisplayApi$p(t.optionalAttendees),t.start,t.end,t.location,window.OSF.DDA.OutlookAppOm._convertRecipientArrayParameterForOutlookForDisplayApi$p(t.resources),t.subject,t.body];break;case 44:i=[window.OSF.DDA.OutlookAppOm._convertRecipientArrayParameterForOutlookForDisplayApi$p(t.toRecipients),window.OSF.DDA.OutlookAppOm._convertRecipientArrayParameterForOutlookForDisplayApi$p(t.ccRecipients),window.OSF.DDA.OutlookAppOm._convertRecipientArrayParameterForOutlookForDisplayApi$p(t.bccRecipients),t.subject,t.htmlBody,t.attachments];break;case 43:i=[t.ewsIdOrEmail];break;case 45:i=[t.module,t.queryString];break;case 40:i=[t.extensionId,t.consentState];break;case 11:case 10:i=[t.htmlBody];break;case 31:case 30:i=[t.htmlBody,t.attachments];break;case 23:case 13:case 38:case 29:i=[t.data,t.coercionType];break;case 37:case 28:i=[t.coercionType];break;case 17:i=[t.subject];break;case 15:i=[t.recipientField];break;case 22:case 21:i=[t.recipientField,window.OSF.DDA.OutlookAppOm._convertComposeEmailDictionaryParameterForSetApi$p(t.recipientArray)];break;case 19:i=[t.itemId,t.name];break;case 16:i=[t.uri,t.name,t.isInline];break;case 148:i=[t.base64String,t.name,t.isInline];break;case 20:i=[t.attachmentIndex];break;case 25:i=[t.TimeProperty,t.time];break;case 24:i=[t.TimeProperty];break;case 27:i=[t.location];break;case 33:case 35:i=[t.key,t.type,t.persistent,t.message,t.icon];this._additionalOutlookParams$p$0.setActionsDefinition(t.actions);break;case 36:i=[t.key];break;case 100:case 150:case 101:case 104:case 151:case 152:case 153:case 155:case 156:r=t;break;default:break}if(n!==1){var u;this._additionalOutlookParams$p$0.updateOutlookExecuteParameters(u={val:i},r),i=u.val}return i},_displayNewAppointmentFormApi$p$0:function(n){var f=window.OSF.DDA.OutlookAppOm._validateAndNormalizeRecipientEmails$p(n.requiredAttendees,"requiredAttendees");var u=window.OSF.DDA.OutlookAppOm._validateAndNormalizeRecipientEmails$p(n.optionalAttendees,"optionalAttendees");window.OSF.DDA.OutlookAppOm._validateOptionalStringParameter$p(n.location,0,window.OSF.DDA.OutlookAppOm._maxLocationLength$p,"location");window.OSF.DDA.OutlookAppOm._validateOptionalStringParameter$p(n.body,0,window.OSF.DDA.OutlookAppOm.maxBodyLength,"body");window.OSF.DDA.OutlookAppOm._validateOptionalStringParameter$p(n.subject,0,window.OSF.DDA.OutlookAppOm._maxSubjectLength$p,"subject");if(!r.ScriptHelpers.isNullOrUndefined(n.start)){window.OSF.DDA.OutlookAppOm.throwOnArgumentType(n.start,Date,"start");var s=n.start;n.start=s.getTime();if(!r.ScriptHelpers.isNullOrUndefined(n.end)){window.OSF.DDA.OutlookAppOm.throwOnArgumentType(n.end,Date,"end");var i=n.end;if(i<s)throw Error.argumentOutOfRange("end",i,window._u.ExtensibilityStrings.l_InvalidEventDates_Text);n.end=i.getTime()}}var t=null;if(f||u){t={};var h=n;for(var e in h){var o={key:e,value:h[e]};t[o.key]=o.value}f&&(t.requiredAttendees=f);u&&(t.optionalAttendees=u)}this.invokeHostMethod(7,t||n,null)},displayNewMessageFormApi:function(n){var t={};if(n){var e=window.OSF.DDA.OutlookAppOm._validateAndNormalizeRecipientEmails$p(n.toRecipients,"toRecipients");var o=window.OSF.DDA.OutlookAppOm._validateAndNormalizeRecipientEmails$p(n.ccRecipients,"ccRecipients");var s=window.OSF.DDA.OutlookAppOm._validateAndNormalizeRecipientEmails$p(n.bccRecipients,"bccRecipients");window.OSF.DDA.OutlookAppOm._validateOptionalStringParameter$p(n.htmlBody,0,window.OSF.DDA.OutlookAppOm.maxBodyLength,"htmlBody");window.OSF.DDA.OutlookAppOm._validateOptionalStringParameter$p(n.subject,0,window.OSF.DDA.OutlookAppOm._maxSubjectLength$p,"subject");var f=window.OSF.DDA.OutlookAppOm._getAttachments$p(n);var i=n;for(var r in i){var u={key:r,value:i[r]};t[u.key]=u.value}e&&(t.toRecipients=e);o&&(t.ccRecipients=o);s&&(t.bccRecipients=s);f&&(t.attachments=window.OSF.DDA.OutlookAppOm._createAttachmentsDataForHost$p(f))}this.invokeHostMethod(44,t||n,null)},displayPersonaCardAsync:function(n){for(var u=[],t=1;t<arguments.length;++t)u[t-1]=arguments[t];if(r.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("ewsIdOrEmail");else if(n==="")throw Error.argument("ewsIdOrEmail","ewsIdOrEmail cannot be empty.");var i=r.CommonParameters.parse(u,!1);this._standardInvokeHostMethod$i$0(43,{ewsIdOrEmail:n.trim()},null,i._asyncContext$p$0,i._callback$p$0)},navigateToModuleAsync:function(n){for(var e=[],i=1;i<arguments.length;++i)e[i-1]=arguments[i];window.OSF.DDA.OutlookAppOm._throwOnInvalidModule$p(n);var t=r.CommonParameters.parse(e,!1);var u={};if(n===window.Microsoft.Office.WebExtension.MailboxEnums.ModuleType.Addins){var f="";t._options$p$0&&t._options$p$0.queryString&&(f=t._options$p$0.queryString);u.queryString=f}u.module=n;this._standardInvokeHostMethod$i$0(45,u,null,t._asyncContext$p$0,t._callback$p$0)},_getSharedPropertiesAsyncApi$p$0:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"getSharedPropertiesAsync");var t=r.CommonParameters.parse(i,!0);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(108,null,null,t._asyncContext$p$0,t._callback$p$0)},_initializeMethods$p$0:function(){var n=this;if(r.Item.isInstanceOfType(this._item$p$0)||this._hostItemType$p$0===6){n.displayNewAppointmentForm=this.$$d__displayNewAppointmentFormApi$p$0;n.displayNewMessageForm=this.$$d_displayNewMessageFormApi;n.displayPersonaCardAsync=this.$$d_displayPersonaCardAsync;n.navigateToModuleAsync=this.$$d_navigateToModuleAsync}this._item$p$0&&this._item$p$0.get__isFromSharedFolder$i$0()&&this._hostItemType$p$0!==6&&(this._item$p$0.getSharedPropertiesAsync=this.$$d__getSharedPropertiesAsyncApi$p$0)},_getInitialDataResponseHandler$p$0:function(n,t){if(!n){this.initialize(t);this.displayName="mailbox";window.setTimeout(this.$$d__callAppReadyCallback$p$0,0)}},_callAppReadyCallback$p$0:function(){this._appReadyCallback$p$0()},_invokeGetTokenMethodAsync$p$0:function(n,t,i,u,f){if(r.ScriptHelpers.isNullOrUndefined(u))throw Error.argumentNull("callback");var e=this;this.invokeHostMethod(n,t,function(n,t){var r;if(n)r=e.createAsyncResult(null,1,9017,f,String.format(window._u.ExtensibilityStrings.l_InternalProtocolError_Text,n));else{var i=t;r=window.OSF.DDA.OutlookAppOm._instance$p.get__appName$i$0()===8&&"error"in i&&"errorCode"in i&&i.error&&i.errorCode===9030?e.createAsyncResult(null,1,i.errorCode,f,i.errorMessage):i.wasSuccessful?e.createAsyncResult(i.token,0,0,f,null):e.createAsyncResult(null,1,i.errorCode,f,i.errorMessage);"diagnostics"in i&&(r.diagnostics=i.diagnostics)}u(r)})},getItem:function(){return this._item$p$0},_getUserProfile$p$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._initialData$p$0._permissionLevel$p$0);return this._userProfile$p$0},_getDiagnostics$p$0:function(){return this._diagnostics$p$0},_getEwsUrl$p$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._initialData$p$0._permissionLevel$p$0);return this._initialData$p$0.get__ewsUrl$i$0()},_getRestUrl$p$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._initialData$p$0._permissionLevel$p$0);return this._shouldInferRestUrl$p$0()?this._inferRestUrlFromEwsUrl$p$0():this._initialData$p$0.get__restUrl$i$0()},_shouldInferRestUrl$p$0:function(){return window.OSF.DDA.OutlookAppOm._instance$p.get__appName$i$0()===8&&!this._initialData$p$0.get__restUrl$i$0()&&this.isApiVersionSupported("1.5")&&this._isHostBuildNumberLessThan$p$0("16.0.8414.1000")},_isHostBuildNumberLessThan$p$0:function(n){var r=this._initialData$p$0.get__hostVersion$i$0();if(r){var t=r.split(".");var i=n.split(".");return window.parseInt(t[0])<window.parseInt(i[0])||window.parseInt(t[0])===window.parseInt(i[0])&&window.parseInt(t[2])<window.parseInt(i[2])}return!1},_inferRestUrlFromEwsUrl$p$0:function(){var n="";var i="/ews/";var t=this._initialData$p$0.get__ewsUrl$i$0().toLowerCase().indexOf(i);t!==-1&&(n=String.format("{0}/{1}",this._initialData$p$0.get__ewsUrl$i$0().slice(0,t),"api"));return r.ScriptHelpers.isNonEmptyString(n)?n:null},_findOffset$p$0:function(n){for(var r=this._initialData$p$0.get__timeZoneOffsets$i$0(),i=0;i<r.length;i++){var t=r[i];var f=window.parseInt(t.start);var u=window.parseInt(t.end);if(n.getTime()-f>=0&&n.getTime()-u<0)return window.parseInt(t.offset)}throw Error.format(window._u.ExtensibilityStrings.l_InvalidDate_Text);},_areStringsLoaded$p$0:function(){var n=!1;try{n=!r.ScriptHelpers.isNullOrUndefined(window._u.ExtensibilityStrings.l_EwsRequestOversized_Text)}catch(t){}return n},_loadLocalizedScript$p$0:function(n){for(var s=null,l="",a=document.getElementsByTagName("script"),o=a.length-1;o>=0;o--){var i=null;var v=a[o].attributes;if(v){var p=v.getNamedItem("src");p&&(i=p.value);if(i){var y=!1;i=i.toLowerCase();var f=i.indexOf("office_strings.js");if(f<0){f=i.indexOf("office_strings.debug.js");y=!0}if(f>0&&f<i.length){s=i.replace(y?"office_strings.debug.js":"office_strings.js","outlook_strings.js");var r=i.substring(0,f);var u=r.lastIndexOf("/",r.length-2);u===-1&&(u=r.lastIndexOf("\\",r.length-2));u!==-1&&r.length>u+1&&(l=r.substring(0,u+1));break}}}}if(s){var h=document.getElementsByTagName("head")[0];var t=null;var b=this;var e=function(){if(n&&(!t.readyState||t.readyState&&(t.readyState==="loaded"||t.readyState==="complete"))){t.onload=null;t.onreadystatechange=null;n()}};var c=this;var w=function(){if(!c._areStringsLoaded$p$0()){var n=l+"en-us/"+"outlook_strings.js";t.onload=null;t.onreadystatechange=null;t=c._createScriptElement$p$0(n);t.onload=e;t.onreadystatechange=e;h.appendChild(t)}};t=this._createScriptElement$p$0(s);t.onload=e;t.onreadystatechange=e;window.setTimeout(w,2e3);h.appendChild(t)}},_createScriptElement$p$0:function(n){var t=document.createElement("script");t.type="text/javascript";t.src=n;return t}};u.DDA.OutlookAppOm.prototype.initialize=function(n){if(!n){this._additionalOutlookParams$p$0=new r.AdditionalGlobalParameters(!0);this._initialData$p$0=null;this._item$p$0=null;return}var t="itemType";this._initialData$p$0=new r.InitialData(n);this._hostItemType$p$0=n[t];1===n[t]?this._item$p$0=new r.Message(this._initialData$p$0):3===n[t]?this._item$p$0=new r.MeetingRequest(this._initialData$p$0):2===n[t]?this._item$p$0=new r.Appointment(this._initialData$p$0):4===n[t]?this._item$p$0=new r.MessageCompose(this._initialData$p$0):5===n[t]?this._item$p$0=new r.AppointmentCompose(this._initialData$p$0):6===n[t];this._userProfile$p$0=new r.UserProfile(this._initialData$p$0);this._diagnostics$p$0=new r.Diagnostics(this._initialData$p$0,this._officeAppContext$p$0.get_appName());var i=window.OSF.DDA.OutlookAppOm._instance$p.get__appName$i$0()!==8||this.isOutlook16OrGreater()||this.isApiVersionSupported("1.5");this._additionalOutlookParams$p$0=new r.AdditionalGlobalParameters(i);"itemNumber"in n&&this.setCurrentItemNumber(n.itemNumber);this._initializeMethods$p$0();r.InitialData._defineReadOnlyProperty$i(this,"item",this.$$d_getItem);r.InitialData._defineReadOnlyProperty$i(this,"userProfile",this.$$d__getUserProfile$p$0);r.InitialData._defineReadOnlyProperty$i(this,"diagnostics",this.$$d__getDiagnostics$p$0);r.InitialData._defineReadOnlyProperty$i(this,"ewsUrl",this.$$d__getEwsUrl$p$0);r.InitialData._defineReadOnlyProperty$i(this,"restUrl",this.$$d__getRestUrl$p$0);window.OSF.DDA.OutlookAppOm._instance$p.get__appName$i$0()===64&&this._initialData$p$0.get__overrideWindowOpen$i$0()&&(window.open=this.$$d_windowOpenOverrideHandler);this.addEventSupport()};u.DDA.OutlookAppOm.prototype.makeEwsRequestAsync=function(n){for(var u=[],i=1;i<arguments.length;++i)u[i-1]=arguments[i];if(r.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");if(n.length>window.OSF.DDA.OutlookAppOm._maxEwsRequestSize$p)throw Error.argument("data",window._u.ExtensibilityStrings.l_EwsRequestOversized_Text);this._throwOnMethodCallForInsufficientPermission$i$0(3,"makeEwsRequestAsync");var f=r.CommonParameters.parse(u,!0,!0);var t=new r.EwsRequest(f._asyncContext$p$0);var e=this;t.onreadystatechange=function(){4===t.get__requestState$i$1()&&f._callback$p$0(t._asyncResult$p$0)};t.send(n)};u.DDA.OutlookAppOm.prototype.recordDataPoint=function(n){if(r.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");this.invokeHostMethod(402,n,null)};u.DDA.OutlookAppOm.prototype.recordTrace=function(n){if(r.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");this.invokeHostMethod(401,n,null)};u.DDA.OutlookAppOm.prototype.trackCtq=function(n){if(r.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");this.invokeHostMethod(400,n,null)};u.DDA.OutlookAppOm.prototype.convertToLocalClientTime=function(n){var t=new Date(n.getTime());var i=t.getTimezoneOffset()*-1;if(this._initialData$p$0&&this._initialData$p$0.get__timeZoneOffsets$i$0()){t.setUTCMinutes(t.getUTCMinutes()-i);i=this._findOffset$p$0(t);t.setUTCMinutes(t.getUTCMinutes()+i)}var r=this._dateToDictionary$i$0(t);r.timezoneOffset=i;return r};u.DDA.OutlookAppOm.prototype.convertToUtcClientTime=function(n){var t=this._dictionaryToDate$i$0(n);if(this._initialData$p$0&&this._initialData$p$0.get__timeZoneOffsets$i$0()){var i=this._findOffset$p$0(t);t.setUTCMinutes(t.getUTCMinutes()-i);i=n.timezoneOffset?n.timezoneOffset:t.getTimezoneOffset()*-1;t.setUTCMinutes(t.getUTCMinutes()+i)}return t};u.DDA.OutlookAppOm.prototype.convertToRestId=function(n,t){if(!n)throw Error.argumentNull("itemId");window.OSF.DDA.OutlookAppOm._throwOnInvalidRestVersion$p(t);return n.replace(new RegExp("[/]","g"),"-").replace(new RegExp("[+]","g"),"_")};u.DDA.OutlookAppOm.prototype.convertToEwsId=function(n,t){if(!n)throw Error.argumentNull("itemId");window.OSF.DDA.OutlookAppOm._throwOnInvalidRestVersion$p(t);return n.replace(new RegExp("[-]","g"),"/").replace(new RegExp("[_]","g"),"+")};u.DDA.OutlookAppOm.prototype.getUserIdentityTokenAsync=function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];this._throwOnMethodCallForInsufficientPermission$i$0(1,"getUserIdentityTokenAsync");var t=r.CommonParameters.parse(i,!0,!0);this._invokeGetTokenMethodAsync$p$0(2,null,"GetUserIdentityToken",t._callback$p$0,t._asyncContext$p$0)};u.DDA.OutlookAppOm.prototype.getCallbackTokenAsync=function(){for(var e=[],i=0;i<arguments.length;++i)e[i]=arguments[i];this._throwOnMethodCallForInsufficientPermission$i$0(1,"getCallbackTokenAsync");var n=r.CommonParameters.parse(e,!0,!0);var t={};if(n._options$p$0)for(var o=Object.keys(n._options$p$0),s=o.length,u=0;u<s;++u){var f=o[u];t[f]=n._options$p$0[f]}"isRest"in t||(t.isRest=!1);this._invokeGetTokenMethodAsync$p$0(12,t,"GetCallbackToken",n._callback$p$0,n._asyncContext$p$0)};u.DDA.OutlookAppOm.prototype.displayMessageForm=function(n){if(r.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("itemId");this.invokeHostMethod(8,{itemId:window.OSF.DDA.OutlookAppOm.getItemIdBasedOnHost(n)},null)};u.DDA.OutlookAppOm.prototype.displayAppointmentForm=function(n){if(r.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("itemId");this.invokeHostMethod(9,{itemId:window.OSF.DDA.OutlookAppOm.getItemIdBasedOnHost(n)},null)};u.DDA.OutlookAppOm.prototype.RegisterConsentAsync=function(n){if(n!==2&&n!==1&&n)throw Error.argumentOutOfRange("consentState");var t={};t.consentState=n.toString();t.extensionId=this.GetExtensionId();this.invokeHostMethod(40,t,null)};u.DDA.OutlookAppOm.prototype.CloseApp=function(){this.invokeHostMethod(42,null,null)};u.DDA.OutlookAppOm.prototype.GetIsRead=function(){return this._initialData$p$0.get__isRead$i$0()};u.DDA.OutlookAppOm.prototype.GetEndNodeUrl=function(){return this._initialData$p$0.get__endNodeUrl$i$0()};u.DDA.OutlookAppOm.prototype.GetConsentMetadata=function(){return this._initialData$p$0.get__consentMetadata$i$0()};u.DDA.OutlookAppOm.prototype.GetEntryPointUrl=function(){return this._initialData$p$0.get__entryPointUrl$i$0()};u.DDA.OutlookAppOm.prototype.GetMarketplaceContentMarket=function(){return this._initialData$p$0.get__marketplaceContentMarket$i$0()};u.DDA.OutlookAppOm.prototype.GetMarketplaceAssetId=function(){return this._initialData$p$0.get__marketplaceAssetId$i$0()};u.DDA.OutlookAppOm.prototype.GetExtensionId=function(){return this._initialData$p$0.get__extensionId$i$0()};u.DDA.OutlookAppOm.prototype.setCurrentItemNumber=function(n){this._additionalOutlookParams$p$0.setCurrentItemNumber(n)};window.OSF.DDA.Settings=u.DDA.Settings=function(n){this._rawData$p$0=n};window.OSF.DDA.Settings._convertFromRawSettings$p=function(n){if(!n)return{};if(window.OSF.DDA.OutlookAppOm._instance$p.get__appName$i$0()===8||window.OSF.DDA.OutlookAppOm._instance$p.get__appName$i$0()===65536||window.OSF.DDA.OutlookAppOm._instance$p.get__appName$i$0()===4194304){var t=n.SettingsKey;if(t)return u.DDA.SettingsManager.deserializeSettings(t)}return n};u.DDA.Settings.prototype={_rawData$p$0:null,_settingsData$p$0:null,get__data$p$0:function(){if(!this._settingsData$p$0){this._settingsData$p$0=window.OSF.DDA.Settings._convertFromRawSettings$p(this._rawData$p$0);this._rawData$p$0=null}return this._settingsData$p$0},_saveSettingsForOutlook$p$0:function(n,t){var r=null;var s=+new Date;var i=-1;try{var h=u.DDA.SettingsManager.serializeSettings(this.get__data$p$0());var o=window.JSON.stringify(h);var e={SettingsKey:o};u.DDA.ClientSettingsManager.write(e)}catch(c){r=c}var f;if(r){i=9019;f=window.OSF.DDA.OutlookAppOm._instance$p.createAsyncResult(null,1,i,t,r.message)}else{i=0;f=window.OSF.DDA.OutlookAppOm._instance$p.createAsyncResult(null,0,i,t,null)}window.OSF.AppTelemetry.onMethodDone(404,null,Math.abs(+new Date-s),i);n&&n(f)},_saveSettingsForOwa$p$0:function(n,t){var i=u.DDA.SettingsManager.serializeSettings(this.get__data$p$0());var r=this;window.OSF.DDA.OutlookAppOm._instance$p.invokeHostMethod(404,[i],function(i,r){if(n){var u;if(i)u=window.OSF.DDA.OutlookAppOm._instance$p.createAsyncResult(null,1,9017,t,String.format(window._u.ExtensibilityStrings.l_InternalProtocolError_Text,i));else{var f=r;u=f.error?window.OSF.DDA.OutlookAppOm._instance$p.createAsyncResult(null,1,9019,t,f.errorMessage):window.OSF.DDA.OutlookAppOm._instance$p.createAsyncResult(null,0,0,t,null)}n(u)}})}};u.DDA.Settings.prototype.get=function(n){return this.get__data$p$0()[n]};u.DDA.Settings.prototype.set=function(n,t){this.get__data$p$0()[n]=t};u.DDA.Settings.prototype.remove=function(n){delete this.get__data$p$0()[n]};u.DDA.Settings.prototype.saveAsync=function(){for(var i=[],t=0;t<arguments.length;++t)i[t]=arguments[t];var n=r.CommonParameters.parse(i,!1);if(window.JSON.stringify(u.DDA.SettingsManager.serializeSettings(this.get__data$p$0())).length>32768){var f=window.OSF.DDA.OutlookAppOm._instance$p.createAsyncResult(null,1,9019,n._asyncContext$p$0,"");var e=this;window.setTimeout(function(){n._callback$p$0(f)},0);return}window.OSF.DDA.OutlookAppOm._instance$p.get__appName$i$0()===64?this._saveSettingsForOwa$p$0(n._callback$p$0,n._asyncContext$p$0):this._saveSettingsForOutlook$p$0(n._callback$p$0,n._asyncContext$p$0)};Type.registerNamespace("$h");var r=window.$h||{};Type.registerNamespace("Office.cast");var f=window.Office||{};f.cast=f.cast||{};r.AdditionalGlobalParameters=function(n){this._parameterBlobSupported$p$0=n;this._itemNumber$p$0=0};r.AdditionalGlobalParameters.prototype={_parameterBlobSupported$p$0:!1,_itemNumber$p$0:0,_actionsDefinition$p$0:null,setActionsDefinition:function(n){this._actionsDefinition$p$0=n},setCurrentItemNumber:function(n){n>0&&(this._itemNumber$p$0=n)},get_itemNumber:function(){return this._itemNumber$p$0},get_actionsDefinition:function(){return this._actionsDefinition$p$0},updateOutlookExecuteParameters:function(n,t){if(this._parameterBlobSupported$p$0){this._itemNumber$p$0>0&&(t.itemNumber=this._itemNumber$p$0.toString());this._actionsDefinition$p$0&&(t.actions=this._actionsDefinition$p$0);if(!Object.keys(t).length)return;n.val||(n.val=[]);n.val.push(window.JSON.stringify(t))}}};r.Appointment=function(n){this.$$d__getEnhancedLocation$p$2=Function.createDelegate(this,this._getEnhancedLocation$p$2);this.$$d__getSeriesId$p$2=Function.createDelegate(this,this._getSeriesId$p$2);this.$$d__getRecurrence$p$2=Function.createDelegate(this,this._getRecurrence$p$2);this.$$d__getOrganizer$p$2=Function.createDelegate(this,this._getOrganizer$p$2);this.$$d__getNormalizedSubject$p$2=Function.createDelegate(this,this._getNormalizedSubject$p$2);this.$$d__getSubject$p$2=Function.createDelegate(this,this._getSubject$p$2);this.$$d__getResources$p$2=Function.createDelegate(this,this._getResources$p$2);this.$$d__getRequiredAttendees$p$2=Function.createDelegate(this,this._getRequiredAttendees$p$2);this.$$d__getOptionalAttendees$p$2=Function.createDelegate(this,this._getOptionalAttendees$p$2);this.$$d__getLocation$p$2=Function.createDelegate(this,this._getLocation$p$2);this.$$d__getEnd$p$2=Function.createDelegate(this,this._getEnd$p$2);this.$$d__getStart$p$2=Function.createDelegate(this,this._getStart$p$2);r.Appointment.initializeBase(this,[n]);r.InitialData._defineReadOnlyProperty$i(this,"start",this.$$d__getStart$p$2);r.InitialData._defineReadOnlyProperty$i(this,"end",this.$$d__getEnd$p$2);r.InitialData._defineReadOnlyProperty$i(this,"location",this.$$d__getLocation$p$2);r.InitialData._defineReadOnlyProperty$i(this,"optionalAttendees",this.$$d__getOptionalAttendees$p$2);r.InitialData._defineReadOnlyProperty$i(this,"requiredAttendees",this.$$d__getRequiredAttendees$p$2);r.InitialData._defineReadOnlyProperty$i(this,"resources",this.$$d__getResources$p$2);r.InitialData._defineReadOnlyProperty$i(this,"subject",this.$$d__getSubject$p$2);r.InitialData._defineReadOnlyProperty$i(this,"normalizedSubject",this.$$d__getNormalizedSubject$p$2);r.InitialData._defineReadOnlyProperty$i(this,"organizer",this.$$d__getOrganizer$p$2);r.InitialData._defineReadOnlyProperty$i(this,"recurrence",this.$$d__getRecurrence$p$2);r.InitialData._defineReadOnlyProperty$i(this,"seriesId",this.$$d__getSeriesId$p$2);r.InitialData._defineReadOnlyProperty$i(this,"enhancedLocation",this.$$d__getEnhancedLocation$p$2)};r.Appointment.prototype={_enhancedLocation$p$2:null,getItemType:function(){return window.Microsoft.Office.WebExtension.MailboxEnums.ItemType.Appointment},_getStart$p$2:function(){return this._data$p$0.get__start$i$0()},_getEnd$p$2:function(){return this._data$p$0.get__end$i$0()},_getLocation$p$2:function(){return this._data$p$0.get__location$i$0()},_getOptionalAttendees$p$2:function(){return this._data$p$0.get__cc$i$0()},_getRequiredAttendees$p$2:function(){return this._data$p$0.get__to$i$0()},_getResources$p$2:function(){return this._data$p$0.get__resources$i$0()},_getSubject$p$2:function(){return this._data$p$0.get__subject$i$0()},_getNormalizedSubject$p$2:function(){return this._data$p$0.get__normalizedSubject$i$0()},_getOrganizer$p$2:function(){return this._data$p$0.get__organizer$i$0()},_getRecurrence$p$2:function(){return this._data$p$0.get__recurrence$i$0()&&this._data$p$0.get__recurrence$i$0().seriesTimeJson?r.ComposeRecurrence.copyRecurrenceObjectConvertSeriesTimeJson(this._data$p$0.get__recurrence$i$0()):this._data$p$0.get__recurrence$i$0()},_getSeriesId$p$2:function(){return this._data$p$0.get__seriesId$i$0()},_getEnhancedLocation$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._enhancedLocation$p$2||(this._enhancedLocation$p$2=new window.$h.EnhancedLocation(!1));return this._enhancedLocation$p$2}};r.Appointment.prototype.getEntities=function(){return this._data$p$0._getEntities$i$0()};r.Appointment.prototype.getEntitiesByType=function(n){return this._data$p$0._getEntitiesByType$i$0(n)};r.Appointment.prototype.getSelectedEntities=function(){return this._data$p$0._getSelectedEntities$i$0()};r.Appointment.prototype.getRegExMatches=function(){window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"getRegExMatches");return this._data$p$0._getRegExMatches$i$0()};r.Appointment.prototype.getFilteredEntitiesByName=function(n){return this._data$p$0._getFilteredEntitiesByName$i$0(n)};r.Appointment.prototype.getRegExMatchesByName=function(n){window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"getRegExMatchesByName");return this._data$p$0._getRegExMatchesByName$i$0(n)};r.Appointment.prototype.getSelectedRegExMatches=function(){window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"getSelectedRegExMatches");return this._data$p$0._getSelectedRegExMatches$i$0()};r.Appointment.prototype.displayReplyForm=function(n){window.OSF.DDA.OutlookAppOm._instance$p._displayReplyForm$i$0(n)};r.Appointment.prototype.displayReplyAllForm=function(n){window.OSF.DDA.OutlookAppOm._instance$p._displayReplyAllForm$i$0(n)};r.AppointmentCompose=function(n){this.$$d__getEnhancedLocation$p$2=Function.createDelegate(this,this._getEnhancedLocation$p$2);this.$$d__getOrganizer$p$2=Function.createDelegate(this,this._getOrganizer$p$2);this.$$d__getSeriesId$p$2=Function.createDelegate(this,this._getSeriesId$p$2);this.$$d__getRecurrence$p$2=Function.createDelegate(this,this._getRecurrence$p$2);this.$$d__getLocation$p$2=Function.createDelegate(this,this._getLocation$p$2);this.$$d__getEnd$p$2=Function.createDelegate(this,this._getEnd$p$2);this.$$d__getStart$p$2=Function.createDelegate(this,this._getStart$p$2);this.$$d__getOptionalAttendees$p$2=Function.createDelegate(this,this._getOptionalAttendees$p$2);this.$$d__getRequiredAttendees$p$2=Function.createDelegate(this,this._getRequiredAttendees$p$2);r.AppointmentCompose.initializeBase(this,[n]);r.InitialData._defineReadOnlyProperty$i(this,"requiredAttendees",this.$$d__getRequiredAttendees$p$2);r.InitialData._defineReadOnlyProperty$i(this,"optionalAttendees",this.$$d__getOptionalAttendees$p$2);r.InitialData._defineReadOnlyProperty$i(this,"start",this.$$d__getStart$p$2);r.InitialData._defineReadOnlyProperty$i(this,"end",this.$$d__getEnd$p$2);r.InitialData._defineReadOnlyProperty$i(this,"location",this.$$d__getLocation$p$2);r.InitialData._defineReadOnlyProperty$i(this,"recurrence",this.$$d__getRecurrence$p$2);r.InitialData._defineReadOnlyProperty$i(this,"seriesId",this.$$d__getSeriesId$p$2);r.InitialData._defineReadOnlyProperty$i(this,"organizer",this.$$d__getOrganizer$p$2);r.InitialData._defineReadOnlyProperty$i(this,"enhancedLocation",this.$$d__getEnhancedLocation$p$2)};r.AppointmentCompose.prototype={_requiredAttendees$p$2:null,_optionalAttendees$p$2:null,_start$p$2:null,_end$p$2:null,_location$p$2:null,_enhancedLocation$p$2:null,_recurrence$p$2:null,_organizer$p$2:null,getItemType:function(){return window.Microsoft.Office.WebExtension.MailboxEnums.ItemType.Appointment},_getRequiredAttendees$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._requiredAttendees$p$2||(this._requiredAttendees$p$2=new r.ComposeRecipient(0,"requiredAttendees"));return this._requiredAttendees$p$2},_getOptionalAttendees$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._optionalAttendees$p$2||(this._optionalAttendees$p$2=new r.ComposeRecipient(1,"optionalAttendees"));return this._optionalAttendees$p$2},_getStart$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._start$p$2||(this._start$p$2=new r.ComposeTime(1));return this._start$p$2},_getEnd$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._end$p$2||(this._end$p$2=new r.ComposeTime(2));return this._end$p$2},_getLocation$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._location$p$2||(this._location$p$2=new r.ComposeLocation);return this._location$p$2},_getEnhancedLocation$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._enhancedLocation$p$2||(this._enhancedLocation$p$2=new window.$h.EnhancedLocation(!0));return this._enhancedLocation$p$2},_getRecurrence$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();if(!this._recurrence$p$2){var n=!!this._data$p$0.get__seriesId$i$0()&&this._data$p$0.get__seriesId$i$0().length>0;this._recurrence$p$2=new r.ComposeRecurrence(n)}return this._recurrence$p$2},_getSeriesId$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();return this._data$p$0.get__seriesId$i$0()},_getOrganizer$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._organizer$p$2||(this._organizer$p$2=new r.ComposeFrom);return this._organizer$p$2}};r.AttachmentConstants=function(){};r.AttachmentDetails=function(n){this.$$d__getUrl$p$0=Function.createDelegate(this,this._getUrl$p$0);this.$$d__getIsInline$p$0=Function.createDelegate(this,this._getIsInline$p$0);this.$$d__getAttachmentType$p$0=Function.createDelegate(this,this._getAttachmentType$p$0);this.$$d__getSize$p$0=Function.createDelegate(this,this._getSize$p$0);this.$$d__getContentType$p$0=Function.createDelegate(this,this._getContentType$p$0);this.$$d__getName$p$0=Function.createDelegate(this,this._getName$p$0);this.$$d__getId$p$0=Function.createDelegate(this,this._getId$p$0);this._data$p$0=n;r.InitialData._defineReadOnlyProperty$i(this,"id",this.$$d__getId$p$0);r.InitialData._defineReadOnlyProperty$i(this,"name",this.$$d__getName$p$0);"contentType"in this._data$p$0&&r.InitialData._defineReadOnlyProperty$i(this,"contentType",this.$$d__getContentType$p$0);r.InitialData._defineReadOnlyProperty$i(this,"size",this.$$d__getSize$p$0);r.InitialData._defineReadOnlyProperty$i(this,"attachmentType",this.$$d__getAttachmentType$p$0);"isInline"in this._data$p$0&&r.InitialData._defineReadOnlyProperty$i(this,"isInline",this.$$d__getIsInline$p$0);"url"in this._data$p$0&&r.InitialData._defineReadOnlyProperty$i(this,"url",this.$$d__getUrl$p$0)};r.AttachmentDetails.createFromJsonArray=function(n){var i=n;if(r.ScriptHelpers.isNullOrUndefined(i))return new Array(0);for(var u=[],t=0;t<i.length;t++)r.ScriptHelpers.isNullOrUndefined(i[t])||u.push(new r.AttachmentDetails(i[t]));return u};r.AttachmentDetails.prototype={_data$p$0:null,_getId$p$0:function(){return this._data$p$0.id},_getName$p$0:function(){return this._data$p$0.name},_getContentType$p$0:function(){return this._data$p$0.contentType},_getSize$p$0:function(){return this._data$p$0.size},_getAttachmentType$p$0:function(){var n=this._data$p$0.attachmentType;return n<r.AttachmentDetails._attachmentTypeMap$p.length?r.AttachmentDetails._attachmentTypeMap$p[n]:window.Microsoft.Office.WebExtension.MailboxEnums.AttachmentType.File},_getIsInline$p$0:function(){return this._data$p$0.isInline},_getUrl$p$0:function(){return this._data$p$0.url}};r.Body=function(){};r.Body._tryMapToHostCoercionType$i=function(n,t){t.val=undefined;if(n===window.Microsoft.Office.WebExtension.CoercionType.Html)t.val=3;else if(n===window.Microsoft.Office.WebExtension.CoercionType.Text)t.val=0;else return!1;return!0};r.Body.prototype.getAsync=function(n){for(var e=[],t=1;t<arguments.length;++t)e[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"body.getAsync");var o=r.CommonParameters.parse(e,!0);var i;var f,u;if(!(u=r.Body._tryMapToHostCoercionType$i(n,f={val:i}),i=f.val,u))throw Error.argument("coercionType");var s={coercionType:i};window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(37,s,null,o._asyncContext$p$0,o._callback$p$0)};r.ComposeFrom=function(){this.$$d__getAsyncFormatter$p$0=Function.createDelegate(this,this._getAsyncFormatter$p$0)};r.ComposeFrom.prototype={_getAsyncFormatter$p$0:function(n){var t=n;return r.ScriptHelpers.isNullOrUndefined(t)?null:new r.EmailAddressDetails(t)}};r.ComposeFrom.prototype.getAsync=function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"from.getAsync");var t=r.CommonParameters.parse(i,!0);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(107,null,this.$$d__getAsyncFormatter$p$0,t._asyncContext$p$0,t._callback$p$0)};window.$h.InternetHeaders=r.InternetHeaders=function(n){this.$$d_getAsyncApi=Function.createDelegate(this,this.getAsyncApi);this.$$d_removeAsyncApi=Function.createDelegate(this,this.removeAsyncApi);this.$$d_setAsyncApi=Function.createDelegate(this,this.setAsyncApi);var t=this;if(n){t.setAsync=this.$$d_setAsyncApi;t.removeAsync=this.$$d_removeAsyncApi}t.getAsync=this.$$d_getAsyncApi};r.InternetHeaders.prototype={getAsyncApi:function(n){for(var u=[],t=1;t<arguments.length;++t)u[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"internetHeaders.getAsync");var i=r.CommonParameters.parse(u,!0);this.validateInternetHeaderArray(n);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(151,{internetHeaderKeys:n},null,i._asyncContext$p$0,i._callback$p$0)},setAsyncApi:function(n){for(var e=[],t=1;t<arguments.length;++t)e[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"internetHeaders.setAsync");var o=r.CommonParameters.parse(e,!1);if(r.ScriptHelpers.isNullOrUndefined(n))throw Error.argument("internetHeaders");var u=Object.keys(n);if(!u.length)throw Error.argument("internetHeaders");for(var f=0;f<u.length;f++){var i=u[f];if(!String.isInstanceOfType(n[i]))throw Error.argument("internetHeaders");var s=n[i];window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(i.length+s.length,0,998,i)}window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(152,{internetHeaderNameValuePairs:n},null,o._asyncContext$p$0,o._callback$p$0)},removeAsyncApi:function(n){for(var u=[],t=1;t<arguments.length;++t)u[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"internetHeaders.removeAsync");var i=r.CommonParameters.parse(u,!1);this.validateInternetHeaderArray(n);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(153,{internetHeaderKeys:n},null,i._asyncContext$p$0,i._callback$p$0)},validateInternetHeaderArray:function(n){if(r.ScriptHelpers.isNullOrUndefined(n))throw Error.argument("internetHeaders");if(!Array.isInstanceOfType(n))throw Error.argumentType("internetHeaders",Object.getType(n),Array);if(!n.length)throw Error.argument("internetHeaders");for(var t=0;t<n.length;t++)if(!r.ScriptHelpers.isNonEmptyString(n[t]))throw Error.argument("internetHeaders");}};r.ComposeBody=function(){r.ComposeBody.initializeBase(this)};r.ComposeBody._createParameterDictionaryToHost$i=function(n,t){var i={data:n};return r.ComposeBody._addCoercionTypeToDictionary$i(i,t)};r.ComposeBody._createAppendParameterDictionaryToHost$i=function(n,t){var i={appendTxt:n};return r.ComposeBody._addCoercionTypeToDictionary$i(i,t)};r.ComposeBody._addCoercionTypeToDictionary$i=function(n,t){if(t._options$p$0&&t._options$p$0.hasOwnProperty("coercionType")&&!r.ScriptHelpers.isNull(t._options$p$0.coercionType)){var i;var f,u;if(!(u=r.Body._tryMapToHostCoercionType$i(t._options$p$0.coercionType,f={val:i}),i=f.val,u)){t._callback$p$0&&t._callback$p$0(window.OSF.DDA.OutlookAppOm._instance$p.createAsyncResult(null,1,1e3,t._asyncContext$p$0,null));return null}n.coercionType=i}else n.coercionType=0;return n};r.ComposeBody.prototype.getTypeAsync=function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"body.getTypeAsync");var t=r.CommonParameters.parse(i,!0);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(14,null,null,t._asyncContext$p$0,t._callback$p$0)};r.ComposeBody.prototype.setSelectedDataAsync=function(n){for(var f=[],t=1;t<arguments.length;++t)f[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"body.setSelectedDataAsync");var i=r.CommonParameters.parse(f,!1);if(!String.isInstanceOfType(n))throw Error.argumentType("data",Object.getType(n),String);window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,1e6,"data");var u=r.ComposeBody._createParameterDictionaryToHost$i(n,i);u&&window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(13,u,null,i._asyncContext$p$0,i._callback$p$0)};r.ComposeBody.prototype.prependAsync=function(n){for(var f=[],t=1;t<arguments.length;++t)f[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"body.prependAsync");var i=r.CommonParameters.parse(f,!1);if(!String.isInstanceOfType(n))throw Error.argumentType("data",Object.getType(n),String);window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,1e6,"data");var u=r.ComposeBody._createParameterDictionaryToHost$i(n,i);u&&window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(23,u,null,i._asyncContext$p$0,i._callback$p$0)};r.ComposeBody.prototype.appendOnSendAsync=function(n){for(var f=[],t=1;t<arguments.length;++t)f[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"body.appendOnSendAsync");var i=r.CommonParameters.parse(f,!1);n||(n="");if(!String.isInstanceOfType(n))throw Error.argumentType("data",Object.getType(n),String);window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,5e3,"data");var u=r.ComposeBody._createAppendParameterDictionaryToHost$i(n,i);u&&window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(100,u,null,i._asyncContext$p$0,i._callback$p$0)};r.ComposeBody.prototype.setAsync=function(n){for(var f=[],t=1;t<arguments.length;++t)f[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"body.setAsync");var i=r.CommonParameters.parse(f,!1);if(!String.isInstanceOfType(n))throw Error.argumentType("data",Object.getType(n),String);window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,1e6,"data");var u=r.ComposeBody._createParameterDictionaryToHost$i(n,i);u&&window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(38,u,null,i._asyncContext$p$0,i._callback$p$0)};r.ComposeItem=function(n){this.$$d__getBody$p$1=Function.createDelegate(this,this._getBody$p$1);this.$$d__getSubject$p$1=Function.createDelegate(this,this._getSubject$p$1);r.ComposeItem.initializeBase(this,[n]);r.InitialData._defineReadOnlyProperty$i(this,"subject",this.$$d__getSubject$p$1);r.InitialData._defineReadOnlyProperty$i(this,"body",this.$$d__getBody$p$1)};r.ComposeItem._validateAndExtractCommonParametersForAddFileAttachmentApis$p=function(n,t,i,u,f,e){window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,i);if(!r.ScriptHelpers.isNonEmptyString(n))throw Error.argument("attachmentName");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,255,"attachmentName");var o=r.CommonParameters.parse(t,!1);var s=!1;r.ScriptHelpers.isNull(o._options$p$0)||(s=r.ScriptHelpers.isValueTrue(o._options$p$0.isInline));u.val={name:n,isInline:s,__timeout__:6e5};f.val=o._asyncContext$p$0;e.val=o._callback$p$0};r.ComposeItem.prototype={_subject$p$1:null,_body$p$1:null,_getBody$p$1:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._body$p$1||(this._body$p$1=new r.ComposeBody);return this._body$p$1},_getSubject$p$1:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._subject$p$1||(this._subject$p$1=new r.ComposeSubject);return this._subject$p$1}};r.ComposeItem.prototype.addFileAttachmentAsync=function(n,t){for(var h=[],u=2;u<arguments.length;++u)h[u-2]=arguments[u];var i;var f;var e;if(!r.ScriptHelpers.isNonEmptyString(n))throw Error.argument("uri");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,2048,"uri");var c,o,s;r.ComposeItem._validateAndExtractCommonParametersForAddFileAttachmentApis$p(t,h,"addFileAttachmentAsync",c={val:i},o={val:f},s={val:e}),i=c.val,f=o.val,e=s.val;i.uri=n;window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(16,i,null,f,e)};r.ComposeItem.prototype.addBase64FileAttachmentAsync=function(n,t){for(var h=[],u=2;u<arguments.length;++u)h[u-2]=arguments[u];var i;var f;var e;if(!r.ScriptHelpers.isNonEmptyString(n))throw Error.argument("base64Encoded");var c,o,s;r.ComposeItem._validateAndExtractCommonParametersForAddFileAttachmentApis$p(t,h,"addBase64FileAttachmentAsync",c={val:i},o={val:f},s={val:e}),i=c.val,f=o.val,e=s.val;i.base64String=n;window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(148,i,null,f,e)};r.ComposeItem.prototype.addItemAttachmentAsync=function(n,t){for(var f=[],i=2;i<arguments.length;++i)f[i-2]=arguments[i];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"addItemAttachmentAsync");if(!r.ScriptHelpers.isNonEmptyString(n))throw Error.argument("itemId");if(!r.ScriptHelpers.isNonEmptyString(t))throw Error.argument("attachmentName");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,200,"itemId");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(t.length,0,255,"attachmentName");var u=r.CommonParameters.parse(f,!1);var e={itemId:window.OSF.DDA.OutlookAppOm.getItemIdBasedOnHost(n),name:t,__timeout__:6e5};window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(19,e,null,u._asyncContext$p$0,u._callback$p$0)};r.ComposeItem.prototype.getAttachmentsAsync=function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"getAttachmentsAsync");var t=r.CommonParameters.parse(i,!0);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(149,null,r.AttachmentDetails.createFromJsonArray,t._asyncContext$p$0,t._callback$p$0)};r.ComposeItem.prototype.removeAttachmentAsync=function(n){for(var u=[],t=1;t<arguments.length;++t)u[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"removeAttachmentAsync");if(!r.ScriptHelpers.isNonEmptyString(n))throw Error.argument("attachmentId");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,200,"attachmentId");var i=r.CommonParameters.parse(u,!1);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(20,{attachmentIndex:n},null,i._asyncContext$p$0,i._callback$p$0)};r.ComposeItem.prototype.getSelectedDataAsync=function(n){for(var e=[],t=1;t<arguments.length;++t)e[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"getSelectedDataAsync");var o=r.CommonParameters.parse(e,!0);var i;var f,u;if(n!==window.Microsoft.Office.WebExtension.CoercionType.Html&&n!==window.Microsoft.Office.WebExtension.CoercionType.Text||!(u=r.Body._tryMapToHostCoercionType$i(n,f={val:i}),i=f.val,u))throw Error.argument("coercionType");var s={coercionType:i};window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(28,s,null,o._asyncContext$p$0,o._callback$p$0)};r.ComposeItem.prototype.setSelectedDataAsync=function(n){for(var f=[],t=1;t<arguments.length;++t)f[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"setSelectedDataAsync");var i=r.CommonParameters.parse(f,!1);if(!String.isInstanceOfType(n))throw Error.argumentType("data",Object.getType(n),String);window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,1e6,"data");var u=r.ComposeBody._createParameterDictionaryToHost$i(n,i);u&&window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(29,u,null,i._asyncContext$p$0,i._callback$p$0)};r.ComposeItem.prototype.close=function(){window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(41,null,null,null,null)};r.ComposeItem.prototype.saveAsync=function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"saveAsync");var t=r.CommonParameters.parse(i,!1);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(32,null,null,t._asyncContext$p$0,t._callback$p$0)};r.ComposeRecipient=function(n,t){this._type$p$0=n;this._propertyName$p$0=t};r.ComposeRecipient._throwOnInvalidDisplayNameOrEmail$p=function(n,t){if(!n&&!t)throw Error.argument("recipients");if(n&&n.length>255)throw Error.argumentOutOfRange("recipients",n.length,window._u.ExtensibilityStrings.l_DisplayNameTooLong_Text);if(t&&t.length>571)throw Error.argumentOutOfRange("recipients",t.length,window._u.ExtensibilityStrings.l_EmailAddressTooLong_Text);};r.ComposeRecipient._getAsyncFormatter$p=function(n){for(var u=n,i=[],t=0;t<u.length;t++){var f=new r.EmailAddressDetails(u[t]);i[t]=f}return i};r.ComposeRecipient._createEmailDictionaryForHost$p=function(n,t){return{address:n,name:t}};r.ComposeRecipient.prototype={_propertyName$p$0:null,_type$p$0:0,setAddHelper:function(n,t,i){window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,100,"recipients");var h=r.CommonParameters.parse(t,!1);var e=[];if(Array.isInstanceOfType(n))for(var u=0;u<n.length;u++)if(String.isInstanceOfType(n[u])){r.ComposeRecipient._throwOnInvalidDisplayNameOrEmail$p(n[u],n[u]);e[u]=r.ComposeRecipient._createEmailDictionaryForHost$p(n[u],n[u])}else if(r.EmailAddressDetails.isInstanceOfType(n[u])){var f=n[u];r.ComposeRecipient._throwOnInvalidDisplayNameOrEmail$p(f.displayName,f.emailAddress);e[u]=r.ComposeRecipient._createEmailDictionaryForHost$p(f.emailAddress,f.displayName)}else if(Object.isInstanceOfType(n[u])){var c=n[u];var o=c.emailAddress;var s=c.displayName;r.ComposeRecipient._throwOnInvalidDisplayNameOrEmail$p(s,o);e[u]=r.ComposeRecipient._createEmailDictionaryForHost$p(o,s)}else throw Error.argument("recipients");else throw Error.argument("recipients");var l=this;window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(i?21:22,{recipientField:this._type$p$0,recipientArray:e},function(n){return n},h._asyncContext$p$0,h._callback$p$0)}};r.ComposeRecipient.prototype.getAsync=function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];var t=r.CommonParameters.parse(i,!0);window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,this._propertyName$p$0+".getAsync");window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(15,{recipientField:this._type$p$0},r.ComposeRecipient._getAsyncFormatter$p,t._asyncContext$p$0,t._callback$p$0)};r.ComposeRecipient.prototype.setAsync=function(n){for(var i=[],t=1;t<arguments.length;++t)i[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,this._propertyName$p$0+".setAsync");this.setAddHelper(n,i,!0)};r.ComposeRecipient.prototype.addAsync=function(n){for(var i=[],t=1;t<arguments.length;++t)i[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,this._propertyName$p$0+".addAsync");this.setAddHelper(n,i,!1)};r.ComposeRecipient.RecipientField=function(){};r.ComposeRecipient.RecipientField.prototype={to:0,cc:1,bcc:2,requiredAttendees:0,optionalAttendees:1};r.ComposeRecipient.RecipientField.registerEnum("$h.ComposeRecipient.RecipientField",!1);r.ComposeRecurrence=function(n){this._isInstance$p$0=n};r.ComposeRecurrence.copyRecurrenceObjectConvertSeriesTimeJson=function(n){var u=new window.Microsoft.Office.WebExtension.SeriesTime;var i=n;var t={};t.recurrenceProperties=r.ScriptHelpers.isNullOrUndefined(i.recurrenceProperties)?null:r.ScriptHelpers.deepClone(i.recurrenceProperties);t.recurrenceType=i.recurrenceType;t.recurrenceTimeZone=r.ScriptHelpers.isNullOrUndefined(i.recurrenceTimeZone)?null:r.ScriptHelpers.deepClone(i.recurrenceTimeZone);u.importFromSeriesTimeJsonObject(i.seriesTimeJson);t.seriesTime=u;return t};r.ComposeRecurrence._throwOnNullParameter$p=function(n,t){var i=n;if(!i[t])throw Error.argumentNull(t);};r.ComposeRecurrence._throwOnInvalidRecurrenceType$p=function(n){if(n!==window.Microsoft.Office.WebExtension.MailboxEnums.RecurrenceType.Daily&&n!==window.Microsoft.Office.WebExtension.MailboxEnums.RecurrenceType.Weekly&&n!==window.Microsoft.Office.WebExtension.MailboxEnums.RecurrenceType.Weekday&&n!==window.Microsoft.Office.WebExtension.MailboxEnums.RecurrenceType.Yearly&&n!==window.Microsoft.Office.WebExtension.MailboxEnums.RecurrenceType.Monthly)throw Error.argument("recurrenceType");};r.ComposeRecurrence._throwOnInvalidDailyRecurrence$p=function(n){r.ComposeRecurrence._throwOnNullParameter$p(n,"interval");window.OSF.DDA.OutlookAppOm.throwOnArgumentType(n.interval,Number,"interval")};r.ComposeRecurrence._verifyDays$p=function(n,t){var i=n===window.Microsoft.Office.WebExtension.MailboxEnums.Days.Mon||n===window.Microsoft.Office.WebExtension.MailboxEnums.Days.Tue||n===window.Microsoft.Office.WebExtension.MailboxEnums.Days.Wed||n===window.Microsoft.Office.WebExtension.MailboxEnums.Days.Thu||n===window.Microsoft.Office.WebExtension.MailboxEnums.Days.Fri||n===window.Microsoft.Office.WebExtension.MailboxEnums.Days.Sat||n===window.Microsoft.Office.WebExtension.MailboxEnums.Days.Sun;if(t){var r=n===window.Microsoft.Office.WebExtension.MailboxEnums.Days.WeekendDay||n===window.Microsoft.Office.WebExtension.MailboxEnums.Days.Weekday||n===window.Microsoft.Office.WebExtension.MailboxEnums.Days.Day;return r||i}else return i};r.ComposeRecurrence._throwOnInvalidDaysArray$p=function(n){for(var t=0;t<n.length;t++)if(!r.ComposeRecurrence._verifyDays$p(n[t],!1))throw Error.argument("days");};r.ComposeRecurrence._throwOnInvalidWeeklyRecurrence$p=function(n){var t=n;r.ComposeRecurrence._throwOnNullParameter$p(n,"interval");window.OSF.DDA.OutlookAppOm.throwOnArgumentType(t.interval,Number,"interval");r.ComposeRecurrence._throwOnNullParameter$p(n,"days");window.OSF.DDA.OutlookAppOm.throwOnArgumentType(t.days,Array,"days");r.ComposeRecurrence._throwOnInvalidDaysArray$p(t.days);if(t.firstDayOfWeek){window.OSF.DDA.OutlookAppOm.throwOnArgumentType(t.firstDayOfWeek,String,"firstDayOfWeek");if(!r.ComposeRecurrence._verifyDays$p(t.firstDayOfWeek,!1))throw Error.argument("firstDayOfWeek");}};r.ComposeRecurrence._throwOnInvalidWeekNumber$p=function(n){if(n!==window.Microsoft.Office.WebExtension.MailboxEnums.WeekNumber.First&&n!==window.Microsoft.Office.WebExtension.MailboxEnums.WeekNumber.Second&&n!==window.Microsoft.Office.WebExtension.MailboxEnums.WeekNumber.Third&&n!==window.Microsoft.Office.WebExtension.MailboxEnums.WeekNumber.Fourth&&n!==window.Microsoft.Office.WebExtension.MailboxEnums.WeekNumber.Last)throw Error.argument("weekNumber");};r.ComposeRecurrence._throwOnInvalidDayOfMonth$p=function(n){if(n<1||n>31)throw Error.argument("dayOfMonth");};r.ComposeRecurrence._throwOnInvalidMonthlyRecurrence$p=function(n){var t=n;r.ComposeRecurrence._throwOnNullParameter$p(n,"interval");window.OSF.DDA.OutlookAppOm.throwOnArgumentType(t.interval,Number,"interval");if(t.dayOfMonth){window.OSF.DDA.OutlookAppOm.throwOnArgumentType(t.dayOfMonth,Number,"dayOfMonth");r.ComposeRecurrence._throwOnInvalidDayOfMonth$p(t.dayOfMonth)}else if(t.dayOfWeek&&t.weekNumber){window.OSF.DDA.OutlookAppOm.throwOnArgumentType(t.dayOfWeek,String,"dayOfMonth");if(!r.ComposeRecurrence._verifyDays$p(t.dayOfWeek,!0))throw Error.argument("dayOfWeek");window.OSF.DDA.OutlookAppOm.throwOnArgumentType(t.weekNumber,String,"dayOfMonth");r.ComposeRecurrence._throwOnInvalidWeekNumber$p(t.weekNumber)}else throw Error.create(window._u.ExtensibilityStrings.l_Recurrence_Error_Properties_Invalid_Text);};r.ComposeRecurrence._throwOnInvalidMonth$p=function(n){if(n!==window.Microsoft.Office.WebExtension.MailboxEnums.Month.Jan&&n!==window.Microsoft.Office.WebExtension.MailboxEnums.Month.Feb&&n!==window.Microsoft.Office.WebExtension.MailboxEnums.Month.Mar&&n!==window.Microsoft.Office.WebExtension.MailboxEnums.Month.Apr&&n!==window.Microsoft.Office.WebExtension.MailboxEnums.Month.May&&n!==window.Microsoft.Office.WebExtension.MailboxEnums.Month.Jun&&n!==window.Microsoft.Office.WebExtension.MailboxEnums.Month.Jul&&n!==window.Microsoft.Office.WebExtension.MailboxEnums.Month.Aug&&n!==window.Microsoft.Office.WebExtension.MailboxEnums.Month.Sep&&n!==window.Microsoft.Office.WebExtension.MailboxEnums.Month.Oct&&n!==window.Microsoft.Office.WebExtension.MailboxEnums.Month.Nov&&n!==window.Microsoft.Office.WebExtension.MailboxEnums.Month.Dec)throw Error.argument("month");};r.ComposeRecurrence._throwOnInvalidYearlyRecurrence$p=function(n){var t=n;r.ComposeRecurrence._throwOnNullParameter$p(n,"interval");window.OSF.DDA.OutlookAppOm.throwOnArgumentType(t.interval,Number,"interval");r.ComposeRecurrence._throwOnNullParameter$p(n,"month");window.OSF.DDA.OutlookAppOm.throwOnArgumentType(t.month,String,"month");r.ComposeRecurrence._throwOnInvalidMonth$p(t.month);if(t.dayOfMonth){window.OSF.DDA.OutlookAppOm.throwOnArgumentType(t.dayOfMonth,Number,"dayOfMonth");r.ComposeRecurrence._throwOnInvalidDayOfMonth$p(t.dayOfMonth)}else if(t.weekNumber&&t.dayOfWeek){window.OSF.DDA.OutlookAppOm.throwOnArgumentType(t.dayOfWeek,String,"dayOfMonth");if(!r.ComposeRecurrence._verifyDays$p(t.dayOfWeek,!0))throw Error.argument("dayOfWeek");window.OSF.DDA.OutlookAppOm.throwOnArgumentType(t.weekNumber,String,"dayOfMonth");r.ComposeRecurrence._throwOnInvalidWeekNumber$p(t.weekNumber)}else throw Error.create(window._u.ExtensibilityStrings.l_Recurrence_Error_Properties_Invalid_Text);};r.ComposeRecurrence.verifyRecurrenceObject=function(n){if(n){var t=n;r.ComposeRecurrence._throwOnNullParameter$p(n,"recurrenceType");r.ComposeRecurrence._throwOnNullParameter$p(n,"seriesTime");if(!window.Microsoft.Office.WebExtension.SeriesTime.isInstanceOfType(t.seriesTime)||!t.seriesTime.isValid())throw Error.argument("seriesTime");if(!t.seriesTime.isEndAfterStart())throw Error.create(window._u.ExtensibilityStrings.l_InvalidEventDates_Text);r.ComposeRecurrence._throwOnInvalidRecurrenceType$p(t.recurrenceType);t.recurrenceType!==window.Microsoft.Office.WebExtension.MailboxEnums.RecurrenceType.Weekday&&r.ComposeRecurrence._throwOnNullParameter$p(n,"recurrenceProperties");if(t.recurrenceTimeZone){window.OSF.DDA.OutlookAppOm.throwOnArgumentType(t.recurrenceTimeZone,Object,"recurrenceTimeZone");var i=t.recurrenceTimeZone;r.ComposeRecurrence._throwOnNullParameter$p(i,"name");window.OSF.DDA.OutlookAppOm.throwOnArgumentType(i.name,String,"name")}t.recurrenceType===window.Microsoft.Office.WebExtension.MailboxEnums.RecurrenceType.Daily?r.ComposeRecurrence._throwOnInvalidDailyRecurrence$p(t.recurrenceProperties):t.recurrenceType===window.Microsoft.Office.WebExtension.MailboxEnums.RecurrenceType.Weekly?r.ComposeRecurrence._throwOnInvalidWeeklyRecurrence$p(t.recurrenceProperties):t.recurrenceType===window.Microsoft.Office.WebExtension.MailboxEnums.RecurrenceType.Monthly?r.ComposeRecurrence._throwOnInvalidMonthlyRecurrence$p(t.recurrenceProperties):t.recurrenceType===window.Microsoft.Office.WebExtension.MailboxEnums.RecurrenceType.Yearly&&r.ComposeRecurrence._throwOnInvalidYearlyRecurrence$p(t.recurrenceProperties)}};r.ComposeRecurrence.prototype={_isInstance$p$0:!1,convertSeriesTime:function(n){var t=n;if(t&&t.seriesTime&&window.Microsoft.Office.WebExtension.SeriesTime.isInstanceOfType(t.seriesTime)){var i={};i.recurrenceProperties=r.ScriptHelpers.isNullOrUndefined(t.recurrenceProperties)?null:r.ScriptHelpers.deepClone(t.recurrenceProperties);i.recurrenceType=t.recurrenceType;i.recurrenceTimeZone=r.ScriptHelpers.isNullOrUndefined(t.recurrenceTimeZone)?null:r.ScriptHelpers.deepClone(t.recurrenceTimeZone);i.seriesTimeJson=t.seriesTime.exportToSeriesTimeJsonDictionary();return i}return n}};r.ComposeRecurrence.prototype.getAsync=function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"recurrence.getAsync");var t=r.CommonParameters.parse(i,!0);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(103,null,window.Microsoft.Office.WebExtension.OutlookBase.SeriesTimeJsonConverter,t._asyncContext$p$0,t._callback$p$0)};r.ComposeRecurrence.prototype.setAsync=function(n){for(var u=[],t=1;t<arguments.length;++t)u[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"recurrence.setAsync");if(this._isInstance$p$0)throw Error.create(window._u.ExtensibilityStrings.l_Recurrence_Error_Instance_SetAsync_Text);r.ComposeRecurrence.verifyRecurrenceObject(n);var i=r.CommonParameters.parse(u,!1);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(104,{recurrenceData:this.convertSeriesTime(n)},null,i._asyncContext$p$0,i._callback$p$0)};r.ComposeLocation=function(){};r.ComposeLocation.prototype.getAsync=function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"location.getAsync");var t=r.CommonParameters.parse(i,!0);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(26,null,null,t._asyncContext$p$0,t._callback$p$0)};r.ComposeLocation.prototype.setAsync=function(n){for(var u=[],t=1;t<arguments.length;++t)u[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"location.setAsync");var i=r.CommonParameters.parse(u,!1);window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,255,"location");window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(27,{location:n},null,i._asyncContext$p$0,i._callback$p$0)};r.ComposeSubject=function(){};r.ComposeSubject.prototype.getAsync=function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];var t=r.CommonParameters.parse(i,!0);window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"subject.getAsync");window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(18,null,null,t._asyncContext$p$0,t._callback$p$0)};r.ComposeSubject.prototype.setAsync=function(n){for(var u=[],t=1;t<arguments.length;++t)u[t-1]=arguments[t];var i=r.CommonParameters.parse(u,!1);window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"subject.setAsync");if(!String.isInstanceOfType(n))throw Error.argument("data");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,255,"data");window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(17,{subject:n},null,i._asyncContext$p$0,i._callback$p$0)};r.ComposeTime=function(n){this.$$d__ticksToDateFormatter$p$0=Function.createDelegate(this,this._ticksToDateFormatter$p$0);this._timeType$p$0=n};r.ComposeTime.prototype={_timeType$p$0:0,_ticksToDateFormatter$p$0:function(n){var t=n;return new Date(t)},_getPropertyName$p$0:function(){return this._timeType$p$0===1?"start":"end"}};r.ComposeTime.prototype.getAsync=function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,this._getPropertyName$p$0()+".getAsync");var t=r.CommonParameters.parse(i,!0);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(24,{TimeProperty:this._timeType$p$0},this.$$d__ticksToDateFormatter$p$0,t._asyncContext$p$0,t._callback$p$0)};r.ComposeTime.prototype.setAsync=function(n){for(var u=[],t=1;t<arguments.length;++t)u[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,this._getPropertyName$p$0()+".setAsync");if(!Date.isInstanceOfType(n))throw Error.argumentType("dateTime",Object.getType(n),Date);if(window.isNaN(n.getTime()))throw Error.argument("dateTime");if(n.getTime()<-864e13||n.getTime()>864e13)throw Error.argumentOutOfRange("dateTime");var i=r.CommonParameters.parse(u,!1);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(25,{TimeProperty:this._timeType$p$0,time:n.getTime()},null,i._asyncContext$p$0,i._callback$p$0)};r.ComposeTime.TimeType=function(){};r.ComposeTime.TimeType.prototype={start:1,end:2};r.ComposeTime.TimeType.registerEnum("$h.ComposeTime.TimeType",!1);r.Contact=function(n){this.$$d__getContactString$p$0=Function.createDelegate(this,this._getContactString$p$0);this.$$d__getAddresses$p$0=Function.createDelegate(this,this._getAddresses$p$0);this.$$d__getUrls$p$0=Function.createDelegate(this,this._getUrls$p$0);this.$$d__getEmailAddresses$p$0=Function.createDelegate(this,this._getEmailAddresses$p$0);this.$$d__getPhoneNumbers$p$0=Function.createDelegate(this,this._getPhoneNumbers$p$0);this.$$d__getBusinessName$p$0=Function.createDelegate(this,this._getBusinessName$p$0);this.$$d__getPersonName$p$0=Function.createDelegate(this,this._getPersonName$p$0);this._data$p$0=n;r.InitialData._defineReadOnlyProperty$i(this,"personName",this.$$d__getPersonName$p$0);r.InitialData._defineReadOnlyProperty$i(this,"businessName",this.$$d__getBusinessName$p$0);r.InitialData._defineReadOnlyProperty$i(this,"phoneNumbers",this.$$d__getPhoneNumbers$p$0);r.InitialData._defineReadOnlyProperty$i(this,"emailAddresses",this.$$d__getEmailAddresses$p$0);r.InitialData._defineReadOnlyProperty$i(this,"urls",this.$$d__getUrls$p$0);r.InitialData._defineReadOnlyProperty$i(this,"addresses",this.$$d__getAddresses$p$0);r.InitialData._defineReadOnlyProperty$i(this,"contactString",this.$$d__getContactString$p$0)};r.Contact.prototype={_data$p$0:null,_phoneNumbers$p$0:null,_getPersonName$p$0:function(){return this._data$p$0.PersonName},_getBusinessName$p$0:function(){return this._data$p$0.BusinessName},_getAddresses$p$0:function(){return r.Entities._getExtractedStringProperty$i(this._data$p$0,"Addresses")},_getEmailAddresses$p$0:function(){return r.Entities._getExtractedStringProperty$i(this._data$p$0,"EmailAddresses")},_getUrls$p$0:function(){return r.Entities._getExtractedStringProperty$i(this._data$p$0,"Urls")},_getPhoneNumbers$p$0:function(){if(!this._phoneNumbers$p$0){var n=this;this._phoneNumbers$p$0=r.Entities._getExtractedObjects$i(r.PhoneNumber,this._data$p$0,"PhoneNumbers",function(n){return new r.PhoneNumber(n)})}return this._phoneNumbers$p$0},_getContactString$p$0:function(){return this._data$p$0.ContactString}};r.CustomProperties=function(n){if(r.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");if(Array.isInstanceOfType(n)){var t=n;if(t.length>0)this._data$p$0=t[0];else throw Error.argument("data");}else this._data$p$0=n};r.CustomProperties.prototype={_data$p$0:null};r.CustomProperties.prototype.get=function(n){var i=this._data$p$0[n];if(typeof i=="string"){var t=i;if(t.length>6&&t.startsWith("Date(")&&t.endsWith(")")){var f=t.substring(5,t.length-1);var r=window.parseInt(f);if(!window.isNaN(r)){var u=new Date(r);u&&(i=u)}}}return i};r.CustomProperties.prototype.set=function(n,t){window.OSF.OUtil.isDate(t)&&(t="Date("+t.getTime()+")");this._data$p$0[n]=t};r.CustomProperties.prototype.remove=function(n){delete this._data$p$0[n]};r.CustomProperties.prototype.saveAsync=function(){for(var i=[],t=0;t<arguments.length;++t)i[t]=arguments[t];var f=2500;if(window.JSON.stringify(this._data$p$0).length>f)throw Error.argument();var n=r.CommonParameters.parse(i,!1,!0);if(window.OSF.DDA.OutlookAppOm._instance$p.shouldRunNewCode(r.ShouldRunNewCodeForFlags.saveCustomProperties))window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(4,{customProperties:this._data$p$0},null,n._asyncContext$p$0,n._callback$p$0);else{var u=new r.SaveDictionaryRequest(n._callback$p$0,n._asyncContext$p$0);u._sendRequest$i$0(4,"SaveCustomProperties",{customProperties:this._data$p$0})}};r.Diagnostics=function(n,t){this.$$d__getOwaView$p$0=Function.createDelegate(this,this._getOwaView$p$0);this.$$d__getHostVersion$p$0=Function.createDelegate(this,this._getHostVersion$p$0);this.$$d__getHostName$p$0=Function.createDelegate(this,this._getHostName$p$0);this._data$p$0=n;this._appName$p$0=t;r.InitialData._defineReadOnlyProperty$i(this,"hostName",this.$$d__getHostName$p$0);r.InitialData._defineReadOnlyProperty$i(this,"hostVersion",this.$$d__getHostVersion$p$0);64===this._appName$p$0&&r.InitialData._defineReadOnlyProperty$i(this,"OWAView",this.$$d__getOwaView$p$0)};r.Diagnostics.prototype={_data$p$0:null,_appName$p$0:0,_getHostName$p$0:function(){switch(this._appName$p$0){case 8:return"Outlook";case 64:return"OutlookWebApp";case 65536:return"OutlookIOS";case 4194304:return"OutlookAndroid";default:return null}},_getHostVersion$p$0:function(){return this._data$p$0.get__hostVersion$i$0()},_getOwaView$p$0:function(){return this._data$p$0.get__owaView$i$0()}};r.EmailAddressDetails=function(n){this.$$d__getRecipientType$p$0=Function.createDelegate(this,this._getRecipientType$p$0);this.$$d__getAppointmentResponse$p$0=Function.createDelegate(this,this._getAppointmentResponse$p$0);this.$$d__getDisplayName$p$0=Function.createDelegate(this,this._getDisplayName$p$0);this.$$d__getEmailAddress$p$0=Function.createDelegate(this,this._getEmailAddress$p$0);this._data$p$0=n;r.InitialData._defineReadOnlyProperty$i(this,"emailAddress",this.$$d__getEmailAddress$p$0);r.InitialData._defineReadOnlyProperty$i(this,"displayName",this.$$d__getDisplayName$p$0);r.ScriptHelpers.dictionaryContainsKey(n,"appointmentResponse")&&r.InitialData._defineReadOnlyProperty$i(this,"appointmentResponse",this.$$d__getAppointmentResponse$p$0);r.ScriptHelpers.dictionaryContainsKey(n,"recipientType")&&r.InitialData._defineReadOnlyProperty$i(this,"recipientType",this.$$d__getRecipientType$p$0)};r.EmailAddressDetails._createFromEmailUserDictionary$i=function(n){var t={};var u=n.Name;var i=n.UserId;t.name=u||r.EmailAddressDetails._emptyString$p;t.address=i||r.EmailAddressDetails._emptyString$p;return new r.EmailAddressDetails(t)};r.EmailAddressDetails.prototype={_data$p$0:null,_getEmailAddress$p$0:function(){return this._data$p$0.address},_getDisplayName$p$0:function(){return this._data$p$0.name},_getAppointmentResponse$p$0:function(){var n=this._data$p$0.appointmentResponse;return n<r.EmailAddressDetails._responseTypeMap$p.length?r.EmailAddressDetails._responseTypeMap$p[n]:window.Microsoft.Office.WebExtension.MailboxEnums.ResponseType.None},_getRecipientType$p$0:function(){var n=this._data$p$0.recipientType;return n<r.EmailAddressDetails._recipientTypeMap$p.length?r.EmailAddressDetails._recipientTypeMap$p[n]:window.Microsoft.Office.WebExtension.MailboxEnums.RecipientType.Other}};r.EmailAddressDetails.prototype.toJSON=function(){var n={};n.emailAddress=this._getEmailAddress$p$0();n.displayName=this._getDisplayName$p$0();r.ScriptHelpers.dictionaryContainsKey(this._data$p$0,"appointmentResponse")&&(n.appointmentResponse=this._getAppointmentResponse$p$0());r.ScriptHelpers.dictionaryContainsKey(this._data$p$0,"recipientType")&&(n.recipientType=this._getRecipientType$p$0());return n};window.$h.EnhancedLocation=r.EnhancedLocation=function(n){this.$$d_getAsyncApi=Function.createDelegate(this,this.getAsyncApi);this.$$d_removeAsyncApi=Function.createDelegate(this,this.removeAsyncApi);this.$$d_addAsyncApi=Function.createDelegate(this,this.addAsyncApi);var t=this;if(n){t.addAsync=this.$$d_addAsyncApi;t.removeAsync=this.$$d_removeAsyncApi}t.getAsync=this.$$d_getAsyncApi};r.EnhancedLocation.prototype={getAsyncApi:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"enhancedLocation.getAsync");var t=r.CommonParameters.parse(i,!0);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(154,null,null,t._asyncContext$p$0,t._callback$p$0)},addAsyncApi:function(n){for(var u=[],t=1;t<arguments.length;++t)u[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"enhancedLocation.addAsync");var i=r.CommonParameters.parse(u,!1);this._validateLocationIdentifiers$p$0(n);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(155,{enhancedLocations:n},null,i._asyncContext$p$0,i._callback$p$0)},removeAsyncApi:function(n){for(var u=[],t=1;t<arguments.length;++t)u[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"enhancedLocation.removeAsync");var i=r.CommonParameters.parse(u,!1);this._validateLocationIdentifiers$p$0(n);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(156,{enhancedLocations:n},null,i._asyncContext$p$0,i._callback$p$0)},_validateLocationIdentifiers$p$0:function(n){if(r.ScriptHelpers.isNullOrUndefined(n))throw Error.argument("locationIdentifier");if(!Array.isInstanceOfType(n))throw Error.argumentType("locationIdentifier",Object.getType(n),Array);if(!n.length)throw Error.argument("locationIdentifier");for(var f=n,e=f.length,t=0;t<e;++t){var i=f[t];this._validateLocationIdentifierDictionary$p$0(i);var u=i.type;if(u===window.Microsoft.Office.WebExtension.MailboxEnums.LocationType.Room||u===window.Microsoft.Office.WebExtension.MailboxEnums.LocationType.Custom)this._validateIdParameter$p$0(i.id,u);else throw Error.argument("type");}},_validateIdParameter$p$0:function(n,t){if(!r.ScriptHelpers.isNonEmptyString(n))throw Error.argument("id");if(t===window.Microsoft.Office.WebExtension.MailboxEnums.LocationType.Room&&n.length>571)throw Error.argument("id");},_validateLocationIdentifierDictionary$p$0:function(n){if(r.ScriptHelpers.isNullOrUndefined(n))throw Error.argument("locationIdentifier");var t=Object.keys(n);if(t.length<2)throw Error.argument("locationIdentifier");}};r.Entities=function(n,t,i,u){this.$$d__createMeetingSuggestion$p$0=Function.createDelegate(this,this._createMeetingSuggestion$p$0);this.$$d__getParcelDeliveries$p$0=Function.createDelegate(this,this._getParcelDeliveries$p$0);this.$$d__getFlightReservations$p$0=Function.createDelegate(this,this._getFlightReservations$p$0);this.$$d__getContacts$p$0=Function.createDelegate(this,this._getContacts$p$0);this.$$d__getPhoneNumbers$p$0=Function.createDelegate(this,this._getPhoneNumbers$p$0);this.$$d__getUrls$p$0=Function.createDelegate(this,this._getUrls$p$0);this.$$d__getEmailAddresses$p$0=Function.createDelegate(this,this._getEmailAddresses$p$0);this.$$d__getMeetingSuggestions$p$0=Function.createDelegate(this,this._getMeetingSuggestions$p$0);this.$$d__getTaskSuggestions$p$0=Function.createDelegate(this,this._getTaskSuggestions$p$0);this.$$d__getAddresses$p$0=Function.createDelegate(this,this._getAddresses$p$0);this._data$p$0=n||{};this._filteredData$p$0=t||{};this._dateTimeSent$p$0=i;r.InitialData._defineReadOnlyProperty$i(this,"addresses",this.$$d__getAddresses$p$0);r.InitialData._defineReadOnlyProperty$i(this,"taskSuggestions",this.$$d__getTaskSuggestions$p$0);r.InitialData._defineReadOnlyProperty$i(this,"meetingSuggestions",this.$$d__getMeetingSuggestions$p$0);r.InitialData._defineReadOnlyProperty$i(this,"emailAddresses",this.$$d__getEmailAddresses$p$0);r.InitialData._defineReadOnlyProperty$i(this,"urls",this.$$d__getUrls$p$0);r.InitialData._defineReadOnlyProperty$i(this,"phoneNumbers",this.$$d__getPhoneNumbers$p$0);r.InitialData._defineReadOnlyProperty$i(this,"contacts",this.$$d__getContacts$p$0);r.InitialData._defineReadOnlyProperty$i(this,"flightReservations",this.$$d__getFlightReservations$p$0);r.InitialData._defineReadOnlyProperty$i(this,"parcelDeliveries",this.$$d__getParcelDeliveries$p$0);this._permissionLevel$p$0=u};r.Entities._getExtractedObjects$i=function(n,t,i,u,f,e){var s=null;var o=t[i];if(!o)return new Array(0);f&&(o=r.Entities._removeDuplicate$p(Object,o,r.Entities._entityDictionaryEquals$p,e));s=new Array(o.length);for(var a=0,l=o,v=l.length,h=0;h<v;++h){var c=l[h];i==="MeetingSuggestions"&&(c.IsLegacyEntityExtraction="IsLegacyEntityExtraction"in t?t.IsLegacyEntityExtraction:!0);s[a++]=u?u(c):c}return s};r.Entities._getExtractedStringProperty$i=function(n,t,i){var u=n[t];if(!u)return new Array(0);i&&(u=r.Entities._removeDuplicate$p(String,u,r.Entities._stringEquals$p,null));return u};r.Entities._createContact$p=function(n){return new r.Contact(n)};r.Entities._createTaskSuggestion$p=function(n){return new r.TaskSuggestion(n)};r.Entities._createPhoneNumber$p=function(n){return new r.PhoneNumber(n)};r.Entities._entityDictionaryEquals$p=function(n,t,i){return n===t?!0:!n||!t?!1:n[i]===t[i]?!0:!1};r.Entities._stringEquals$p=function(n,t,i){return n===t};r.Entities._removeDuplicate$p=function(n,t,i,r){for(var u=t.length-1;u>=0;u--){for(var e=!1,f=u-1;f>=0;f--)if(i(t[u],t[f],r)){e=!0;break}e&&Array.removeAt(t,u)}return t};r.Entities.prototype={_dateTimeSent$p$0:null,_data$p$0:null,_filteredData$p$0:null,_filteredEntitiesCache$p$0:null,_permissionLevel$p$0:0,_taskSuggestions$p$0:null,_meetingSuggestions$p$0:null,_phoneNumbers$p$0:null,_contacts$p$0:null,_addresses$p$0:null,_emailAddresses$p$0:null,_urls$p$0:null,_flightReservations$p$0:null,_parcelDeliveries$p$0:null,_getByType$i$0:function(n){if(n===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.MeetingSuggestion)return this._getMeetingSuggestions$p$0();else if(n===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.TaskSuggestion)return this._getTaskSuggestions$p$0();else if(n===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.Address)return this._getAddresses$p$0();else if(n===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.PhoneNumber)return this._getPhoneNumbers$p$0();else if(n===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.EmailAddress)return this._getEmailAddresses$p$0();else if(n===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.Url)return this._getUrls$p$0();else if(n===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.Contact)return this._getContacts$p$0();else if(n===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.FlightReservations)return this._getFlightReservations$p$0();else if(n===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.ParcelDeliveries)return this._getParcelDeliveries$p$0();return null},_getFilteredEntitiesByName$i$0:function(n){this._filteredEntitiesCache$p$0||(this._filteredEntitiesCache$p$0={});if(!r.ScriptHelpers.dictionaryContainsKey(this._filteredEntitiesCache$p$0,n)){for(var u=!1,i=0;i<r.Entities._allEntityKeys$p.length;i++){var f=r.Entities._allEntityKeys$p[i];var t=this._filteredData$p$0[f];if(t&&r.ScriptHelpers.dictionaryContainsKey(t,n)){switch(f){case"EmailAddresses":case"Urls":this._filteredEntitiesCache$p$0[n]=r.Entities._getExtractedStringProperty$i(t,n);break;case"Addresses":this._filteredEntitiesCache$p$0[n]=r.Entities._getExtractedStringProperty$i(t,n,!0);break;case"PhoneNumbers":this._filteredEntitiesCache$p$0[n]=r.Entities._getExtractedObjects$i(r.PhoneNumber,t,n,r.Entities._createPhoneNumber$p,!1,null);break;case"TaskSuggestions":this._filteredEntitiesCache$p$0[n]=r.Entities._getExtractedObjects$i(r.TaskSuggestion,t,n,r.Entities._createTaskSuggestion$p,!0,"TaskString");break;case"MeetingSuggestions":this._filteredEntitiesCache$p$0[n]=r.Entities._getExtractedObjects$i(r.MeetingSuggestion,t,n,this.$$d__createMeetingSuggestion$p$0,!0,"MeetingString");break;case"Contacts":this._filteredEntitiesCache$p$0[n]=r.Entities._getExtractedObjects$i(r.Contact,t,n,r.Entities._createContact$p,!0,"ContactString");break}u=!0;break}}u||(this._filteredEntitiesCache$p$0[n]=null)}return this._filteredEntitiesCache$p$0[n]},_createMeetingSuggestion$p$0:function(n){return new r.MeetingSuggestion(n,this._dateTimeSent$p$0)},_getAddresses$p$0:function(){this._addresses$p$0||(this._addresses$p$0=r.Entities._getExtractedStringProperty$i(this._data$p$0,"Addresses",!0));return this._addresses$p$0},_getEmailAddresses$p$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._permissionLevel$p$0);this._emailAddresses$p$0||(this._emailAddresses$p$0=r.Entities._getExtractedStringProperty$i(this._data$p$0,"EmailAddresses",!1));return this._emailAddresses$p$0},_getUrls$p$0:function(){this._urls$p$0||(this._urls$p$0=r.Entities._getExtractedStringProperty$i(this._data$p$0,"Urls",!1));return this._urls$p$0},_getPhoneNumbers$p$0:function(){this._phoneNumbers$p$0||(this._phoneNumbers$p$0=r.Entities._getExtractedObjects$i(r.PhoneNumber,this._data$p$0,"PhoneNumbers",r.Entities._createPhoneNumber$p));return this._phoneNumbers$p$0},_getTaskSuggestions$p$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._permissionLevel$p$0);this._taskSuggestions$p$0||(this._taskSuggestions$p$0=r.Entities._getExtractedObjects$i(r.TaskSuggestion,this._data$p$0,"TaskSuggestions",r.Entities._createTaskSuggestion$p,!0,"TaskString"));return this._taskSuggestions$p$0},_getMeetingSuggestions$p$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._permissionLevel$p$0);this._meetingSuggestions$p$0||(this._meetingSuggestions$p$0=r.Entities._getExtractedObjects$i(r.MeetingSuggestion,this._data$p$0,"MeetingSuggestions",this.$$d__createMeetingSuggestion$p$0,!0,"MeetingString"));return this._meetingSuggestions$p$0},_getContacts$p$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._permissionLevel$p$0);this._contacts$p$0||(this._contacts$p$0=r.Entities._getExtractedObjects$i(r.Contact,this._data$p$0,"Contacts",r.Entities._createContact$p,!0,"ContactString"));return this._contacts$p$0},_getParcelDeliveries$p$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._permissionLevel$p$0);this._parcelDeliveries$p$0||(this._parcelDeliveries$p$0=r.Entities._getExtractedObjects$i(Object,this._data$p$0,"ParcelDeliveries",null));return this._parcelDeliveries$p$0},_getFlightReservations$p$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._permissionLevel$p$0);this._flightReservations$p$0||(this._flightReservations$p$0=r.Entities._getExtractedObjects$i(Object,this._data$p$0,"FlightReservations",null));return this._flightReservations$p$0}};window.Microsoft.Office.WebExtension.SeriesTime=function(){this._startYear$p$0=0;this._startMonth$p$0=0;this._startDay$p$0=0;this._endYear$p$0=0;this._endMonth$p$0=0;this._endDay$p$0=0;this._startTimeMinutes$p$0=0;this._durationMinutes$p$0=0};Microsoft.Office.WebExtension.SeriesTime.prototype={_startYear$p$0:0,_startMonth$p$0:0,_startDay$p$0:0,_endYear$p$0:0,_endMonth$p$0:0,_endDay$p$0:0,_startTimeMinutes$p$0:0,_durationMinutes$p$0:0,exportToSeriesTimeJsonDictionary:function(){var n={};n.startYear=this._startYear$p$0;n.startMonth=this._startMonth$p$0;n.startDay=this._startDay$p$0;if(this._endYear$p$0||this._endMonth$p$0||this._endDay$p$0){n.endYear=this._endYear$p$0;n.endMonth=this._endMonth$p$0;n.endDay=this._endDay$p$0}else n.noEndDate=!0;n.startTimeMin=this._startTimeMinutes$p$0;this._durationMinutes$p$0>0&&(n.durationMin=this._durationMinutes$p$0);return n},importFromSeriesTimeJsonObject:function(n){var t=n;this._startYear$p$0=t.startYear;this._startMonth$p$0=t.startMonth;this._startDay$p$0=t.startDay;if(t.noEndDate&&t.noEndDate){this._endYear$p$0=0;this._endMonth$p$0=0;this._endDay$p$0=0}else{this._endYear$p$0=t.endYear;this._endMonth$p$0=t.endMonth;this._endDay$p$0=t.endDay}this._startTimeMinutes$p$0=t.startTimeMin;this._durationMinutes$p$0=t.durationMin},isValid:function(){return this._isValidDate$p$0(this._startYear$p$0,this._startMonth$p$0,this._startDay$p$0)?this._endDay$p$0&&this._endMonth$p$0&&this._endYear$p$0&&!this._isValidDate$p$0(this._endYear$p$0,this._endMonth$p$0,this._endDay$p$0)?!1:this._startTimeMinutes$p$0<0||this._durationMinutes$p$0<=0?!1:!0:!1},isEndAfterStart:function(){if(!this._endYear$p$0&&!this._endMonth$p$0&&!this._endDay$p$0)return!0;var t=new Date;t.setFullYear(this._startYear$p$0);t.setMonth(this._startMonth$p$0-1);t.setDate(this._startDay$p$0);var n=new Date;n.setFullYear(this._endYear$p$0);n.setMonth(this._endMonth$p$0-1);n.setDate(this._endDay$p$0);return n>=t},_prependZeroToString$p$0:function(n){n<0&&(n=1);return n<10?"0"+n.toString():n.toString()},_throwOnInvalidDateString$p$0:function(n){var t=new RegExp("^\\d{4}-(?:[0]\\d|1[0-2])-(?:[0-2]\\d|3[01])$");if(!t.test(n))throw Error.create(window._u.ExtensibilityStrings.l_InvalidDate_Text);},_throwOnInvalidDate$p$0:function(n,t,i){if(!this._isValidDate$p$0(n,t,i))throw Error.create(window._u.ExtensibilityStrings.l_InvalidDate_Text);},_isValidDate$p$0:function(n,t,i){return n<1601||t<1||t>12||i<1||i>31?!1:!0},_setDateHelper$p$0:function(n,t,i,u){var e=0;var s=0;var o=0;if(t&&!r.ScriptHelpers.isNullOrUndefined(i)&&u){this._throwOnInvalidDate$p$0(t,i+1,u);e=t;s=i+1;o=u}else if(t){var h=t;this._throwOnInvalidDateString$p$0(h);var f=new Date(h);if(f&&!window.isNaN(f.getUTCFullYear())&&!window.isNaN(f.getUTCMonth())&&!window.isNaN(f.getUTCDate())){this._throwOnInvalidDate$p$0(f.getUTCFullYear(),f.getUTCMonth()+1,f.getUTCDate());e=f.getUTCFullYear();s=f.getUTCMonth()+1;o=f.getUTCDate()}}if(e&&s&&o)if(n){this._startYear$p$0=e;this._startMonth$p$0=s;this._startDay$p$0=o}else{this._endYear$p$0=e;this._endMonth$p$0=s;this._endDay$p$0=o}}};Microsoft.Office.WebExtension.SeriesTime.prototype.setStartDate=function(n,t,i){n&&!r.ScriptHelpers.isNullOrUndefined(t)&&i?this._setDateHelper$p$0(!0,n,t,i):n&&this._setDateHelper$p$0(!0,n,null,null)};Microsoft.Office.WebExtension.SeriesTime.prototype.getStartDate=function(){return this._startYear$p$0.toString()+"-"+this._prependZeroToString$p$0(this._startMonth$p$0)+"-"+this._prependZeroToString$p$0(this._startDay$p$0)};Microsoft.Office.WebExtension.SeriesTime.prototype.setEndDate=function(n,t,i){if(n&&!r.ScriptHelpers.isNullOrUndefined(t)&&i)this._setDateHelper$p$0(!1,n,t,i);else if(n)this._setDateHelper$p$0(!1,n,null,null);else if(!n){this._endYear$p$0=0;this._endMonth$p$0=0;this._endDay$p$0=0}};Microsoft.Office.WebExtension.SeriesTime.prototype.getEndDate=function(){return!this._endYear$p$0&&!this._endMonth$p$0&&!this._endDay$p$0?null:this._endYear$p$0.toString()+"-"+this._prependZeroToString$p$0(this._endMonth$p$0)+"-"+this._prependZeroToString$p$0(this._endDay$p$0)};Microsoft.Office.WebExtension.SeriesTime.prototype.setStartTime=function(n,t){if(r.ScriptHelpers.isNullOrUndefined(n)||r.ScriptHelpers.isNullOrUndefined(t)){if(!r.ScriptHelpers.isNullOrUndefined(n)){var u=n;var e="2017-01-15"+u+"Z";var o=new RegExp("^T[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d{3}$");if(!o.test(u))throw Error.create(window._u.ExtensibilityStrings.l_InvalidTime_Text);var i=new Date(e);if(!i||window.isNaN(i.getUTCHours())||window.isNaN(i.getUTCMinutes()))throw Error.create(window._u.ExtensibilityStrings.l_InvalidTime_Text);else this._startTimeMinutes$p$0=i.getUTCHours()*60+i.getUTCMinutes()}}else{var f=n*60+t;if(f>=0)this._startTimeMinutes$p$0=f;else throw Error.create(window._u.ExtensibilityStrings.l_InvalidTime_Text);}};Microsoft.Office.WebExtension.SeriesTime.prototype.getStartTime=function(){var t=this._startTimeMinutes$p$0%60;var n=Math.floor(this._startTimeMinutes$p$0/60);return"T"+this._prependZeroToString$p$0(n)+":"+this._prependZeroToString$p$0(t)+":00.000"};Microsoft.Office.WebExtension.SeriesTime.prototype.getEndTime=function(){var n=this._startTimeMinutes$p$0+this._durationMinutes$p$0;var i=n%60;var t=Math.floor(n/60)%24;return"T"+this._prependZeroToString$p$0(t)+":"+this._prependZeroToString$p$0(i)+":00.000"};Microsoft.Office.WebExtension.SeriesTime.prototype.setDuration=function(n){if(n>=0)this._durationMinutes$p$0=n;else throw Error.create(window._u.ExtensibilityStrings.l_InvalidTime_Text);};Microsoft.Office.WebExtension.SeriesTime.prototype.getDuration=function(){return this._durationMinutes$p$0};r.ReplyConstants=function(){};r.EmailAddressConstants=function(){};r.AsyncConstants=function(){};r.ApiTelemetryCode=function(){};window.Office.cast.item=f.cast.item=function(){};window.Office.cast.item.toItemRead=function(n){if(r.Item.isInstanceOfType(n))return n;throw Error.argumentType();};window.Office.cast.item.toItemCompose=function(n){if(r.ComposeItem.isInstanceOfType(n))return n;throw Error.argumentType();};window.Office.cast.item.toMessage=function(n){return window.Office.cast.item.toMessageRead(n)};window.Office.cast.item.toMessageRead=function(n){if(r.Message.isInstanceOfType(n))return n;throw Error.argumentType();};window.Office.cast.item.toMessageCompose=function(n){if(r.MessageCompose.isInstanceOfType(n))return n;throw Error.argumentType();};window.Office.cast.item.toMeetingRequest=function(n){if(r.MeetingRequest.isInstanceOfType(n))return n;throw Error.argumentType();};window.Office.cast.item.toAppointment=function(n){return window.Office.cast.item.toAppointmentRead(n)};window.Office.cast.item.toAppointmentRead=function(n){if(r.Appointment.isInstanceOfType(n))return n;throw Error.argumentType();};window.Office.cast.item.toAppointmentCompose=function(n){if(r.AppointmentCompose.isInstanceOfType(n))return n;throw Error.argumentType();};r.Item=function(n){this.$$d__getBody$p$1=Function.createDelegate(this,this._getBody$p$1);this.$$d__getAttachments$p$1=Function.createDelegate(this,this._getAttachments$p$1);this.$$d__getItemClass$p$1=Function.createDelegate(this,this._getItemClass$p$1);this.$$d__getItemId$p$1=Function.createDelegate(this,this._getItemId$p$1);this.$$d__getDateTimeModified$p$1=Function.createDelegate(this,this._getDateTimeModified$p$1);this.$$d__getDateTimeCreated$p$1=Function.createDelegate(this,this._getDateTimeCreated$p$1);r.Item.initializeBase(this,[n]);r.InitialData._defineReadOnlyProperty$i(this,"dateTimeCreated",this.$$d__getDateTimeCreated$p$1);r.InitialData._defineReadOnlyProperty$i(this,"dateTimeModified",this.$$d__getDateTimeModified$p$1);r.InitialData._defineReadOnlyProperty$i(this,"itemId",this.$$d__getItemId$p$1);r.InitialData._defineReadOnlyProperty$i(this,"itemClass",this.$$d__getItemClass$p$1);r.InitialData._defineReadOnlyProperty$i(this,"attachments",this.$$d__getAttachments$p$1);r.InitialData._defineReadOnlyProperty$i(this,"body",this.$$d__getBody$p$1)};r.Item.prototype={_body$p$1:null,_getItemId$p$1:function(){return this._data$p$0.get__itemId$i$0()},_getItemClass$p$1:function(){return this._data$p$0.get__itemClass$i$0()},_getDateTimeCreated$p$1:function(){return this._data$p$0.get__dateTimeCreated$i$0()},_getDateTimeModified$p$1:function(){return this._data$p$0.get__dateTimeModified$i$0()},_getAttachments$p$1:function(){return this._data$p$0.get__attachments$i$0()},_getBody$p$1:function(){this._body$p$1||(this._body$p$1=new r.Body);return this._body$p$1},_validateDestinationFolder$p$1:function(n){if(n!==window.Microsoft.Office.WebExtension.MailboxEnums.Folder.Inbox&&n!==window.Microsoft.Office.WebExtension.MailboxEnums.Folder.Junk&&n!==window.Microsoft.Office.WebExtension.MailboxEnums.Folder.DeletedItems)throw Error.argument("destinationFolder");}};r.Item.prototype.move=function(n){for(var i=[],t=1;t<arguments.length;++t)i[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(3,"item.move");this._validateDestinationFolder$p$1(n);var f=r.CommonParameters.parse(i,!1);var u={destinationFolder:n};window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(101,u,null,null,f._callback$p$0)};r.ItemBase=function(n){this.$$d__createCustomProperties$i$0=Function.createDelegate(this,this._createCustomProperties$i$0);this.$$d__getNotificationMessages$p$0=Function.createDelegate(this,this._getNotificationMessages$p$0);this.$$d_getItemType=Function.createDelegate(this,this.getItemType);this._data$p$0=n;r.InitialData._defineReadOnlyProperty$i(this,"itemType",this.$$d_getItemType);r.InitialData._defineReadOnlyProperty$i(this,"notificationMessages",this.$$d__getNotificationMessages$p$0)};r.ItemBase.prototype={get__isFromSharedFolder$i$0:function(){return this._data$p$0.get__isFromSharedFolder$i$0()},_data$p$0:null,_notificationMessages$p$0:null,get_data:function(){return this._data$p$0},_createCustomProperties$i$0:function(n){return new r.CustomProperties(n)},_getNotificationMessages$p$0:function(){this._notificationMessages$p$0||(this._notificationMessages$p$0=new r.NotificationMessages);return this._notificationMessages$p$0}};r.ItemBase.prototype.loadCustomPropertiesAsync=function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];var t=r.CommonParameters.parse(i,!0,!0);var u=new r._loadDictionaryRequest(this.$$d__createCustomProperties$i$0,"customProperties",t._callback$p$0,t._asyncContext$p$0);u._sendRequest$i$0(3,"LoadCustomProperties",{})};r.ItemBase.prototype.getInitializationContextAsync=function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"getInitializationContextAsync");var t=r.CommonParameters.parse(i,!0);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(99,null,null,t._asyncContext$p$0,t._callback$p$0)};r.ItemBase.prototype.getAttachmentContentAsync=function(n){for(var u=[],t=1;t<arguments.length;++t)u[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"getAttachmentContentAsync");if(!r.ScriptHelpers.isNonEmptyString(n))throw Error.argument("attachmentId");var i=r.CommonParameters.parse(u,!0);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(150,{id:n},null,i._asyncContext$p$0,i._callback$p$0)};r.MeetingRequest=function(n){this.$$d__getEnhancedLocation$p$3=Function.createDelegate(this,this._getEnhancedLocation$p$3);this.$$d__getSeriesId$p$3=Function.createDelegate(this,this._getSeriesId$p$3);this.$$d__getRecurrence$p$3=Function.createDelegate(this,this._getRecurrence$p$3);this.$$d__getRequiredAttendees$p$3=Function.createDelegate(this,this._getRequiredAttendees$p$3);this.$$d__getOptionalAttendees$p$3=Function.createDelegate(this,this._getOptionalAttendees$p$3);this.$$d__getLocation$p$3=Function.createDelegate(this,this._getLocation$p$3);this.$$d__getEnd$p$3=Function.createDelegate(this,this._getEnd$p$3);this.$$d__getStart$p$3=Function.createDelegate(this,this._getStart$p$3);r.MeetingRequest.initializeBase(this,[n]);r.InitialData._defineReadOnlyProperty$i(this,"start",this.$$d__getStart$p$3);r.InitialData._defineReadOnlyProperty$i(this,"end",this.$$d__getEnd$p$3);r.InitialData._defineReadOnlyProperty$i(this,"location",this.$$d__getLocation$p$3);r.InitialData._defineReadOnlyProperty$i(this,"optionalAttendees",this.$$d__getOptionalAttendees$p$3);r.InitialData._defineReadOnlyProperty$i(this,"requiredAttendees",this.$$d__getRequiredAttendees$p$3);r.InitialData._defineReadOnlyProperty$i(this,"recurrence",this.$$d__getRecurrence$p$3);r.InitialData._defineReadOnlyProperty$i(this,"seriesId",this.$$d__getSeriesId$p$3);r.InitialData._defineReadOnlyProperty$i(this,"enhancedLocation",this.$$d__getEnhancedLocation$p$3)};r.MeetingRequest.prototype={_enhancedLocation$p$3:null,_getStart$p$3:function(){return this._data$p$0.get__start$i$0()},_getEnd$p$3:function(){return this._data$p$0.get__end$i$0()},_getLocation$p$3:function(){return this._data$p$0.get__location$i$0()},_getOptionalAttendees$p$3:function(){return this._data$p$0.get__cc$i$0()},_getRequiredAttendees$p$3:function(){return this._data$p$0.get__to$i$0()},_getRecurrence$p$3:function(){return this._data$p$0.get__recurrence$i$0()&&this._data$p$0.get__recurrence$i$0().seriesTimeJson?r.ComposeRecurrence.copyRecurrenceObjectConvertSeriesTimeJson(this._data$p$0.get__recurrence$i$0()):this._data$p$0.get__recurrence$i$0()},_getSeriesId$p$3:function(){return this._data$p$0.get__seriesId$i$0()},_getEnhancedLocation$p$3:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._enhancedLocation$p$3||(this._enhancedLocation$p$3=new window.$h.EnhancedLocation(!1));return this._enhancedLocation$p$3}};r.MeetingSuggestion=function(n,t){this.$$d__getEndTime$p$0=Function.createDelegate(this,this._getEndTime$p$0);this.$$d__getStartTime$p$0=Function.createDelegate(this,this._getStartTime$p$0);this.$$d__getSubject$p$0=Function.createDelegate(this,this._getSubject$p$0);this.$$d__getLocation$p$0=Function.createDelegate(this,this._getLocation$p$0);this.$$d__getAttendees$p$0=Function.createDelegate(this,this._getAttendees$p$0);this.$$d__getMeetingString$p$0=Function.createDelegate(this,this._getMeetingString$p$0);this._data$p$0=n;this._dateTimeSent$p$0=t;r.InitialData._defineReadOnlyProperty$i(this,"meetingString",this.$$d__getMeetingString$p$0);r.InitialData._defineReadOnlyProperty$i(this,"attendees",this.$$d__getAttendees$p$0);r.InitialData._defineReadOnlyProperty$i(this,"location",this.$$d__getLocation$p$0);r.InitialData._defineReadOnlyProperty$i(this,"subject",this.$$d__getSubject$p$0);r.InitialData._defineReadOnlyProperty$i(this,"start",this.$$d__getStartTime$p$0);r.InitialData._defineReadOnlyProperty$i(this,"end",this.$$d__getEndTime$p$0)};r.MeetingSuggestion.prototype={_dateTimeSent$p$0:null,_data$p$0:null,_attendees$p$0:null,_getMeetingString$p$0:function(){return this._data$p$0.MeetingString},_getLocation$p$0:function(){return this._data$p$0.Location},_getSubject$p$0:function(){return this._data$p$0.Subject},_isUTC$p$0:function(){return"IsLegacyEntityExtraction"in this._data$p$0?this._data$p$0.IsLegacyEntityExtraction:!0},_getStartTime$p$0:function(){var n=this._createDateTimeFromParameter$p$0("StartTime");var t=r.MeetingSuggestionTimeDecoder.resolve(n,this._dateTimeSent$p$0,this._isUTC$p$0());return t.getTime()!==n.getTime()?window.OSF.DDA.OutlookAppOm._instance$p.convertToUtcClientTime(window.OSF.DDA.OutlookAppOm._instance$p._dateToDictionary$i$0(t)):n},_getEndTime$p$0:function(){var n=this._createDateTimeFromParameter$p$0("EndTime");var t=r.MeetingSuggestionTimeDecoder.resolve(n,this._dateTimeSent$p$0,this._isUTC$p$0());return t.getTime()!==n.getTime()?window.OSF.DDA.OutlookAppOm._instance$p.convertToUtcClientTime(window.OSF.DDA.OutlookAppOm._instance$p._dateToDictionary$i$0(t)):n},_createDateTimeFromParameter$p$0:function(n){var t=this._data$p$0[n];return t?new Date(t):null},_getAttendees$p$0:function(){if(!this._attendees$p$0){var n=this;this._attendees$p$0=r.Entities._getExtractedObjects$i(r.EmailAddressDetails,this._data$p$0,"Attendees",function(n){return r.EmailAddressDetails._createFromEmailUserDictionary$i(n)})}return this._attendees$p$0}};r.MeetingSuggestionTimeDecoder=function(){};r.MeetingSuggestionTimeDecoder.resolve=function(n,t,i){if(!t)return n;try{var o;var u;var f;var e=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0);var c,h,s;if(s=r.MeetingSuggestionTimeDecoder._decode$p(n,i,c={val:f},h={val:o}),f=c.val,o=h.val,s){u=r._preciseDate.isInstanceOfType(f)?r.MeetingSuggestionTimeDecoder._resolvePreciseDate$p(e,f):r._relativeDate.isInstanceOfType(f)?r.MeetingSuggestionTimeDecoder._resolveRelativeDate$p(e,f):e;if(window.isNaN(u.getTime()))return t;u.setMilliseconds(u.getMilliseconds()+o);return u}else return n}catch(l){return t}};r.MeetingSuggestionTimeDecoder._isNullOrUndefined$i=function(n){return null===n||n===undefined};r.MeetingSuggestionTimeDecoder._resolvePreciseDate$p=function(n,t){var u=t._year$i$1;var e=t._month$i$1?t._month$i$1-1:n.getMonth();var f=t._day$i$1;if(!f)return n;var i;if(r.MeetingSuggestionTimeDecoder._isNullOrUndefined$i(u)){i=new Date(n.getFullYear(),e,f);i.getTime()<n.getTime()&&(i=new Date(n.getFullYear()+1,e,f))}else i=new Date(u<50?2e3+u:1900+u,e,f);return i.getMonth()!==e?n:i};r.MeetingSuggestionTimeDecoder._resolveRelativeDate$p=function(n,t){var i;switch(t._unit$i$1){case 0:i=new Date(n.getFullYear(),n.getMonth(),n.getDate());i.setDate(i.getDate()+t._offset$i$1);return i;case 5:return r.MeetingSuggestionTimeDecoder._findBestDateForWeekDate$p(n,t._offset$i$1,t._tag$i$1);case 2:var u=1;switch(t._modifier$i$1){case 1:break;case 2:u=16;break;default:t._offset$i$1||(u=n.getDate());break}i=new Date(n.getFullYear(),n.getMonth(),u);i.setMonth(i.getMonth()+t._offset$i$1);i.getTime()<n.getTime()&&i.setDate(i.getDate()+n.getDate()-1);return i;case 1:i=new Date(n.getFullYear(),n.getMonth(),n.getDate());i.setDate(n.getDate()+7*t._offset$i$1);if(t._modifier$i$1!==1&&t._modifier$i$1){if(t._modifier$i$1===2){i.setDate(i.getDate()+5-i.getDay());return i}}else{i.setDate(i.getDate()+1-i.getDay());return i.getTime()<n.getTime()?n:i}break;case 4:return r.MeetingSuggestionTimeDecoder._findBestDateForWeekOfMonthDate$p(n,t);case 3:if(t._offset$i$1>0)return new Date(n.getFullYear()+t._offset$i$1,0,1);break;default:break}return n};r.MeetingSuggestionTimeDecoder._findBestDateForWeekDate$p=function(n,t,i){if(t>-5&&t<5){var u=(i+6)%7+1;var r=7*t+(u-n.getDay());n.setDate(n.getDate()+r);return n}else{var r=(i-n.getDay())%7;r<0&&(r+=7);n.setDate(n.getDate()+r);return n}};r.MeetingSuggestionTimeDecoder._findBestDateForWeekOfMonthDate$p=function(n,t){var e;var i;var u;e=n;if(t._tag$i$1<=0||t._tag$i$1>12||t._offset$i$1<=0||t._offset$i$1>5)return n;var o=(12+t._tag$i$1-e.getMonth()-1)%12;i=new Date(e.getFullYear(),e.getMonth()+o,1);if(t._modifier$i$1===1)if(t._offset$i$1===1&&i.getDay()!==6&&i.getDay())return i;else{u=new Date(i.getFullYear(),i.getMonth(),i.getDate());u.setDate(u.getDate()+(8-i.getDay())%7);i.getDay()!==6&&i.getDay()&&i.getDay()!==1&&u.setDate(u.getDate()-7);u.setDate(u.getDate()+7*(t._offset$i$1-1));return u.getMonth()+1!==t._tag$i$1?n:u}else{u=new Date(i.getFullYear(),i.getMonth(),r.MeetingSuggestionTimeDecoder._daysInMonth$p(i.getMonth(),i.getFullYear()));var f=1-u.getDay();f>0&&(f=f-7);u.setDate(u.getDate()+f);u.setDate(u.getDate()+7*(1-t._offset$i$1));return u.getMonth()+1!==t._tag$i$1?i.getDay()!==6&&i.getDay()?i:n:u}};r.MeetingSuggestionTimeDecoder._decode$p=function(n,t,i,u){var o=32767;i.val=null;u.val=0;if(!n)return!1;u.val=t?r.MeetingSuggestionTimeDecoder._getTimeOfDayInMillisecondsUTC$p(n):r.MeetingSuggestionTimeDecoder._getTimeOfDayInMilliseconds$p(n);var s=n.getTime()-u.val;var f=(s-r.MeetingSuggestionTimeDecoder._baseDate$p.getTime())/864e5;if(f<0)return!1;else if(f>=262144)return!1;else{var e=f>>15;f=f&o;switch(e){case 0:return r.MeetingSuggestionTimeDecoder._decodePreciseDate$p(f,i);case 1:return r.MeetingSuggestionTimeDecoder._decodeRelativeDate$p(f,i);default:return!1}}};r.MeetingSuggestionTimeDecoder._decodePreciseDate$p=function(n,t){var c=7;var o=15;var s=31;var h=127;var f=null;var u=0;var e=0;t.val=null;var i=n>>12&c;if((i&4)==4){f=n>>5&h;if((i&2)==2){if((i&1)==1)return!1;u=n>>1&o}}else{(i&2)==2&&(u=n>>8&o);(i&1)==1&&(e=n>>3&s)}t.val=new r._preciseDate(e,u,f);return!0};r.MeetingSuggestionTimeDecoder._decodeRelativeDate$p=function(n,t){var s=15;var o=63;var c=7;var h=3;var u=n&s;n>>=4;var i=r.MeetingSuggestionTimeDecoder._fromComplement$p(n&o,6);n>>=6;var e=n&c;n>>=3;var f=n&h;try{t.val=new r._relativeDate(f,i,e,u);return!0}catch(l){t.val=null;return!1}};r.MeetingSuggestionTimeDecoder._fromComplement$p=function(n,t){var i=1<<t-1;var r=(1<<t)-1;return(n&i)===i?-((n^r)+1):n};r.MeetingSuggestionTimeDecoder._daysInMonth$p=function(n,t){return 32-new Date(t,n,32).getDate()};r.MeetingSuggestionTimeDecoder._getTimeOfDayInMilliseconds$p=function(n){var t=0;t+=n.getHours()*3600;t+=n.getMinutes()*60;t+=n.getSeconds();t*=1e3;t+=n.getMilliseconds();return t};r.MeetingSuggestionTimeDecoder._getTimeOfDayInMillisecondsUTC$p=function(n){var t=0;t+=n.getUTCHours()*3600;t+=n.getUTCMinutes()*60;t+=n.getUTCSeconds();t*=1e3;t+=n.getUTCMilliseconds();return t};r._extractedDate=function(){};r._preciseDate=function(n,t,i){r._preciseDate.initializeBase(this);this._day$i$1=n;this._month$i$1=t;r.MeetingSuggestionTimeDecoder._isNullOrUndefined$i(i)||(this._year$i$1=i%100)};r._preciseDate.prototype={_day$i$1:0,_month$i$1:0,_year$i$1:null};r._relativeDate=function(n,t,i,u){r._relativeDate.initializeBase(this);this._modifier$i$1=n;this._offset$i$1=t;this._unit$i$1=i;this._tag$i$1=u};r._relativeDate.prototype={_modifier$i$1:0,_offset$i$1:0,_unit$i$1:0,_tag$i$1:0};r.Message=function(n){this.$$d__getInternetHeaders$p$2=Function.createDelegate(this,this._getInternetHeaders$p$2);this.$$d__getConversationId$p$2=Function.createDelegate(this,this._getConversationId$p$2);this.$$d__getInternetMessageId$p$2=Function.createDelegate(this,this._getInternetMessageId$p$2);this.$$d__getCc$p$2=Function.createDelegate(this,this._getCc$p$2);this.$$d__getTo$p$2=Function.createDelegate(this,this._getTo$p$2);this.$$d__getFrom$p$2=Function.createDelegate(this,this._getFrom$p$2);this.$$d__getSender$p$2=Function.createDelegate(this,this._getSender$p$2);this.$$d__getNormalizedSubject$p$2=Function.createDelegate(this,this._getNormalizedSubject$p$2);this.$$d__getSubject$p$2=Function.createDelegate(this,this._getSubject$p$2);r.Message.initializeBase(this,[n]);r.InitialData._defineReadOnlyProperty$i(this,"subject",this.$$d__getSubject$p$2);r.InitialData._defineReadOnlyProperty$i(this,"normalizedSubject",this.$$d__getNormalizedSubject$p$2);r.InitialData._defineReadOnlyProperty$i(this,"sender",this.$$d__getSender$p$2);r.InitialData._defineReadOnlyProperty$i(this,"from",this.$$d__getFrom$p$2);r.InitialData._defineReadOnlyProperty$i(this,"to",this.$$d__getTo$p$2);r.InitialData._defineReadOnlyProperty$i(this,"cc",this.$$d__getCc$p$2);r.InitialData._defineReadOnlyProperty$i(this,"internetMessageId",this.$$d__getInternetMessageId$p$2);r.InitialData._defineReadOnlyProperty$i(this,"conversationId",this.$$d__getConversationId$p$2);r.InitialData._defineReadOnlyProperty$i(this,"internetHeaders",this.$$d__getInternetHeaders$p$2)};r.Message.prototype={_internetHeaders$p$2:null,getItemType:function(){return window.Microsoft.Office.WebExtension.MailboxEnums.ItemType.Message},_getSubject$p$2:function(){return this._data$p$0.get__subject$i$0()},_getNormalizedSubject$p$2:function(){return this._data$p$0.get__normalizedSubject$i$0()},_getSender$p$2:function(){return this._data$p$0.get__sender$i$0()},_getFrom$p$2:function(){return this._data$p$0.get__from$i$0()},_getTo$p$2:function(){return this._data$p$0.get__to$i$0()},_getCc$p$2:function(){return this._data$p$0.get__cc$i$0()},_getInternetMessageId$p$2:function(){return this._data$p$0.get__internetMessageId$i$0()},_getConversationId$p$2:function(){return this._data$p$0.get__conversationId$i$0()},_getInternetHeaders$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._internetHeaders$p$2||(this._internetHeaders$p$2=new window.$h.InternetHeaders(!1));return this._internetHeaders$p$2}};r.Message.prototype.getEntities=function(){return this._data$p$0._getEntities$i$0()};r.Message.prototype.getEntitiesByType=function(n){return this._data$p$0._getEntitiesByType$i$0(n)};r.Message.prototype.getFilteredEntitiesByName=function(n){return this._data$p$0._getFilteredEntitiesByName$i$0(n)};r.Message.prototype.getSelectedEntities=function(){return this._data$p$0._getSelectedEntities$i$0()};r.Message.prototype.getRegExMatches=function(){window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"getRegExMatches");return this._data$p$0._getRegExMatches$i$0()};r.Message.prototype.getRegExMatchesByName=function(n){window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"getRegExMatchesByName");return this._data$p$0._getRegExMatchesByName$i$0(n)};r.Message.prototype.getSelectedRegExMatches=function(){window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"getSelectedRegExMatches");return this._data$p$0._getSelectedRegExMatches$i$0()};r.Message.prototype.displayReplyForm=function(n){window.OSF.DDA.OutlookAppOm._instance$p._displayReplyForm$i$0(n)};r.Message.prototype.displayReplyAllForm=function(n){window.OSF.DDA.OutlookAppOm._instance$p._displayReplyAllForm$i$0(n)};r.MessageCompose=function(n){this.$$d__getInternetHeaders$p$2=Function.createDelegate(this,this._getInternetHeaders$p$2);this.$$d__getFrom$p$2=Function.createDelegate(this,this._getFrom$p$2);this.$$d__getConversationId$p$2=Function.createDelegate(this,this._getConversationId$p$2);this.$$d__getBcc$p$2=Function.createDelegate(this,this._getBcc$p$2);this.$$d__getCc$p$2=Function.createDelegate(this,this._getCc$p$2);this.$$d__getTo$p$2=Function.createDelegate(this,this._getTo$p$2);r.MessageCompose.initializeBase(this,[n]);r.InitialData._defineReadOnlyProperty$i(this,"to",this.$$d__getTo$p$2);r.InitialData._defineReadOnlyProperty$i(this,"cc",this.$$d__getCc$p$2);r.InitialData._defineReadOnlyProperty$i(this,"bcc",this.$$d__getBcc$p$2);r.InitialData._defineReadOnlyProperty$i(this,"conversationId",this.$$d__getConversationId$p$2);r.InitialData._defineReadOnlyProperty$i(this,"from",this.$$d__getFrom$p$2);r.InitialData._defineReadOnlyProperty$i(this,"internetHeaders",this.$$d__getInternetHeaders$p$2)};r.MessageCompose.prototype={_from$p$2:null,_to$p$2:null,_cc$p$2:null,_bcc$p$2:null,_internetHeaders$p$2:null,getItemType:function(){return window.Microsoft.Office.WebExtension.MailboxEnums.ItemType.Message},_getTo$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._to$p$2||(this._to$p$2=new r.ComposeRecipient(0,"to"));return this._to$p$2},_getCc$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._cc$p$2||(this._cc$p$2=new r.ComposeRecipient(1,"cc"));return this._cc$p$2},_getBcc$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._bcc$p$2||(this._bcc$p$2=new r.ComposeRecipient(2,"bcc"));return this._bcc$p$2},_getConversationId$p$2:function(){return this._data$p$0.get__conversationId$i$0()},_getFrom$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._from$p$2||(this._from$p$2=new r.ComposeFrom);return this._from$p$2},_getInternetHeaders$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._internetHeaders$p$2||(this._internetHeaders$p$2=new window.$h.InternetHeaders(!0));return this._internetHeaders$p$2}};r.NotificationMessages=function(){};r.NotificationMessages._mapToHostItemNotificationMessageType$p=function(n){var i;var t;i=n.type;if(i===window.Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType.ProgressIndicator)t=1;else if(i===window.Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType.InformationalMessage)t=0;else if(i===window.Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType.ErrorMessage)t=2;else if(i===window.Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType.InsightMessage)t=3;else throw Error.argument("type");n.type=t};r.NotificationMessages._validateKey$p=function(n){if(!r.ScriptHelpers.isNonEmptyString(n))throw Error.argument("key");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,32,"key")};r.NotificationMessages._validateDictionary$p=function(n){if(!r.ScriptHelpers.isNonEmptyString(n.type))throw Error.argument("type");if(n.type===window.Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType.InformationalMessage){if(!r.ScriptHelpers.isNonEmptyString(n.icon))throw Error.argument("icon");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.icon.length,0,32,"icon");if(r.ScriptHelpers.isUndefined(n.persistent))throw Error.argument("persistent");if(!Boolean.isInstanceOfType(n.persistent))throw Error.argumentType("persistent",Object.getType(n.persistent),Boolean);r.NotificationMessages._verifyActionDefinitionIsNotDefined$p(n)}else if(n.type===window.Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType.InsightMessage){if(!r.ScriptHelpers.isNonEmptyString(n.icon))throw Error.argument("icon");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.icon.length,0,32,"icon");if(!r.ScriptHelpers.isUndefined(n.persistent))throw Error.argument("persistent");n.actions&&r.NotificationMessages._validateActionsDefinitionBlob$p(n.actions,n)}else{if(!r.ScriptHelpers.isUndefined(n.icon))throw Error.argument("icon");if(!r.ScriptHelpers.isUndefined(n.persistent))throw Error.argument("persistent");r.NotificationMessages._verifyActionDefinitionIsNotDefined$p(n)}if(!r.ScriptHelpers.isNonEmptyString(n.message))throw Error.argument("message");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.message.length,0,150,"message")};r.NotificationMessages._validateActionsDefinitionBlob$p=function(n,t){var i=r.NotificationMessages._extractActionDefinitionDictionary$p(n);if(i){r.NotificationMessages._validateActionsDefinitionActionType$p(i,t);r.NotificationMessages._validateActionsDefinitionActionText$p(i)}};r.NotificationMessages._verifyActionDefinitionIsNotDefined$p=function(n){if(!r.ScriptHelpers.isUndefined(n.actions))throw Error.argument("actions",window._u.ExtensibilityStrings.l_ActionsDefinitionWrongNotificationMessageError_Text);};r.NotificationMessages._extractActionDefinitionDictionary$p=function(n){var i=null;if(Array.isInstanceOfType(n)){var t=n;if(t.length===1)i=t[0];else if(t.length>1)throw Error.argument("actions",window._u.ExtensibilityStrings.l_ActionsDefinitionMultipleActionsError_Text);}else throw Error.argument("actions",String.format(window._u.ExtensibilityStrings.l_InvalidParameterValueError_Text,"actions"));return i};r.NotificationMessages._validateActionsDefinitionActionType$p=function(n,t){if(!n.actionType)throw Error.argument("actionType",String.format(window._u.ExtensibilityStrings.l_NullOrEmptyParameterError_Text,"actionType"));if("showTaskPane"!==n.actionType)throw Error.argument("actionType",window._u.ExtensibilityStrings.l_InvalidActionType_Text);else if(!r.ScriptHelpers.isNonEmptyString(n.commandId))throw Error.argument("commandId",String.format(window._u.ExtensibilityStrings.l_InvalidCommandIdError_Text,"commandId"));};r.NotificationMessages._validateActionsDefinitionActionText$p=function(n){if(!r.ScriptHelpers.isNonEmptyString(n.actionText))throw Error.argument("actionText",String.format(window._u.ExtensibilityStrings.l_NullOrEmptyParameterError_Text,"actionText"));if(n.actionText.length>30)throw Error.argument(window._u.ExtensibilityStrings.l_ParameterValueTooLongError_Text,String.format(window._u.ExtensibilityStrings.l_ParameterValueTooLongError_Text,"actionText",30));};r.NotificationMessages.prototype.addAsync=function(n,t){for(var f=[],i=2;i<arguments.length;++i)f[i-2]=arguments[i];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(0,"NotificationMessages.addAsync");var e=r.CommonParameters.parse(f,!1);r.NotificationMessages._validateKey$p(n);r.NotificationMessages._validateDictionary$p(t);var u={};u=r.ScriptHelpers.deepClone(t);u.key=n;r.NotificationMessages._mapToHostItemNotificationMessageType$p(u);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(33,u,null,e._asyncContext$p$0,e._callback$p$0)};r.NotificationMessages.prototype.getAllAsync=function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(0,"NotificationMessages.getAllAsync");var t=r.CommonParameters.parse(i,!0);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(34,null,null,t._asyncContext$p$0,t._callback$p$0)};r.NotificationMessages.prototype.replaceAsync=function(n,t){for(var f=[],i=2;i<arguments.length;++i)f[i-2]=arguments[i];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(0,"NotificationMessages.replaceAsync");var e=r.CommonParameters.parse(f,!1);r.NotificationMessages._validateKey$p(n);r.NotificationMessages._validateDictionary$p(t);var u={};u=r.ScriptHelpers.deepClone(t);u.key=n;r.NotificationMessages._mapToHostItemNotificationMessageType$p(u);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(35,u,null,e._asyncContext$p$0,e._callback$p$0)};r.NotificationMessages.prototype.removeAsync=function(n){for(var u=[],t=1;t<arguments.length;++t)u[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(0,"NotificationMessages.removeAsync");var i=r.CommonParameters.parse(u,!1);r.NotificationMessages._validateKey$p(n);var f={key:n};window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(36,f,null,i._asyncContext$p$0,i._callback$p$0)};window.Microsoft.Office.WebExtension.OutlookBase=function(){};window.Microsoft.Office.WebExtension.OutlookBase.SeriesTimeJsonConverter=function(n){if(n&&Object.isInstanceOfType(n)){var t=n;if(t.seriesTimeJson){var i=new window.Microsoft.Office.WebExtension.SeriesTime;i.importFromSeriesTimeJsonObject(t.seriesTimeJson);delete t.seriesTimeJson;t.seriesTime=i}}return n};window.Microsoft.Office.WebExtension.OutlookBase.CreateAttachmentDetails=function(n){return new r.AttachmentDetails(n)};r.OutlookErrorManager=function(){};r.OutlookErrorManager.getErrorArgs=function(n){r.OutlookErrorManager._isInitialized$p||r.OutlookErrorManager._initialize$p();return u.DDA.ErrorCodeManager.getErrorArgs(n)};r.OutlookErrorManager._initialize$p=function(){r.OutlookErrorManager._addErrorMessage$p(9e3,"AttachmentSizeExceeded",window._u.ExtensibilityStrings.l_AttachmentExceededSize_Text);r.OutlookErrorManager._addErrorMessage$p(9001,"NumberOfAttachmentsExceeded",window._u.ExtensibilityStrings.l_ExceededMaxNumberOfAttachments_Text);r.OutlookErrorManager._addErrorMessage$p(9002,"InternalFormatError",window._u.ExtensibilityStrings.l_InternalFormatError_Text);r.OutlookErrorManager._addErrorMessage$p(9003,"InvalidAttachmentId",window._u.ExtensibilityStrings.l_InvalidAttachmentId_Text);r.OutlookErrorManager._addErrorMessage$p(9004,"InvalidAttachmentPath",window._u.ExtensibilityStrings.l_InvalidAttachmentPath_Text);r.OutlookErrorManager._addErrorMessage$p(9005,"CannotAddAttachmentBeforeUpgrade",window._u.ExtensibilityStrings.l_CannotAddAttachmentBeforeUpgrade_Text);r.OutlookErrorManager._addErrorMessage$p(9006,"AttachmentDeletedBeforeUploadCompletes",window._u.ExtensibilityStrings.l_AttachmentDeletedBeforeUploadCompletes_Text);r.OutlookErrorManager._addErrorMessage$p(9007,"AttachmentUploadGeneralFailure",window._u.ExtensibilityStrings.l_AttachmentUploadGeneralFailure_Text);r.OutlookErrorManager._addErrorMessage$p(9008,"AttachmentToDeleteDoesNotExist",window._u.ExtensibilityStrings.l_DeleteAttachmentDoesNotExist_Text);r.OutlookErrorManager._addErrorMessage$p(9009,"AttachmentDeleteGeneralFailure",window._u.ExtensibilityStrings.l_AttachmentDeleteGeneralFailure_Text);r.OutlookErrorManager._addErrorMessage$p(9010,"InvalidEndTime",window._u.ExtensibilityStrings.l_InvalidEndTime_Text);r.OutlookErrorManager._addErrorMessage$p(9011,"HtmlSanitizationFailure",window._u.ExtensibilityStrings.l_HtmlSanitizationFailure_Text);r.OutlookErrorManager._addErrorMessage$p(9012,"NumberOfRecipientsExceeded",String.format(window._u.ExtensibilityStrings.l_NumberOfRecipientsExceeded_Text,500));r.OutlookErrorManager._addErrorMessage$p(9013,"NoValidRecipientsProvided",window._u.ExtensibilityStrings.l_NoValidRecipientsProvided_Text);r.OutlookErrorManager._addErrorMessage$p(9014,"CursorPositionChanged",window._u.ExtensibilityStrings.l_CursorPositionChanged_Text);r.OutlookErrorManager._addErrorMessage$p(9016,"InvalidSelection",window._u.ExtensibilityStrings.l_InvalidSelection_Text);r.OutlookErrorManager._addErrorMessage$p(9017,"AccessRestricted","");r.OutlookErrorManager._addErrorMessage$p(9018,"GenericTokenError","");r.OutlookErrorManager._addErrorMessage$p(9019,"GenericSettingsError","");r.OutlookErrorManager._addErrorMessage$p(9020,"GenericResponseError","");r.OutlookErrorManager._addErrorMessage$p(9021,"SaveError",window._u.ExtensibilityStrings.l_SaveError_Text);r.OutlookErrorManager._addErrorMessage$p(9022,"MessageInDifferentStoreError",window._u.ExtensibilityStrings.l_MessageInDifferentStoreError_Text);r.OutlookErrorManager._addErrorMessage$p(9023,"DuplicateNotificationKey",window._u.ExtensibilityStrings.l_DuplicateNotificationKey_Text);r.OutlookErrorManager._addErrorMessage$p(9024,"NotificationKeyNotFound",window._u.ExtensibilityStrings.l_NotificationKeyNotFound_Text);r.OutlookErrorManager._addErrorMessage$p(9025,"NumberOfNotificationsExceeded",window._u.ExtensibilityStrings.l_NumberOfNotificationsExceeded_Text);r.OutlookErrorManager._addErrorMessage$p(9026,"PersistedNotificationArrayReadError",window._u.ExtensibilityStrings.l_PersistedNotificationArrayReadError_Text);r.OutlookErrorManager._addErrorMessage$p(9027,"PersistedNotificationArraySaveError",window._u.ExtensibilityStrings.l_PersistedNotificationArraySaveError_Text);r.OutlookErrorManager._addErrorMessage$p(9028,"CannotPersistPropertyInUnsavedDraftError",window._u.ExtensibilityStrings.l_CannotPersistPropertyInUnsavedDraftError_Text);r.OutlookErrorManager._addErrorMessage$p(9029,"CanOnlyGetTokenForSavedItem",window._u.ExtensibilityStrings.l_CallSaveAsyncBeforeToken_Text);r.OutlookErrorManager._addErrorMessage$p(9030,"APICallFailedDueToItemChange",window._u.ExtensibilityStrings.l_APICallFailedDueToItemChange_Text);r.OutlookErrorManager._addErrorMessage$p(9031,"InvalidParameterValueError",window._u.ExtensibilityStrings.l_InvalidParameterValueError_Text);r.OutlookErrorManager._addErrorMessage$p(9033,"SetRecurrenceOnInstanceError",window._u.ExtensibilityStrings.l_Recurrence_Error_Instance_SetAsync_Text);r.OutlookErrorManager._addErrorMessage$p(9034,"InvalidRecurrenceError",window._u.ExtensibilityStrings.l_Recurrence_Error_Properties_Invalid_Text);r.OutlookErrorManager._addErrorMessage$p(9035,"RecurrenceZeroOccurrences",window._u.ExtensibilityStrings.l_RecurrenceErrorZeroOccurrences_Text);r.OutlookErrorManager._addErrorMessage$p(9036,"RecurrenceMaxOccurrences",window._u.ExtensibilityStrings.l_RecurrenceErrorMaxOccurrences_Text);r.OutlookErrorManager._addErrorMessage$p(9037,"RecurrenceInvalidTimeZone",window._u.ExtensibilityStrings.l_RecurrenceInvalidTimeZone_Text);r.OutlookErrorManager._addErrorMessage$p(9038,"InsufficientItemPermissionsError",window._u.ExtensibilityStrings.l_Insufficient_Item_Permissions_Text);r.OutlookErrorManager._addErrorMessage$p(9039,"RecurrenceUnsupportedAlternateCalendar",window._u.ExtensibilityStrings.l_RecurrenceUnsupportedAlternateCalendar_Text);r.OutlookErrorManager._addErrorMessage$p(9040,"HTTPRequestFailure",window._u.ExtensibilityStrings.l_Olk_Http_Error_Text);r.OutlookErrorManager._addErrorMessage$p(9041,"NetworkError",window._u.ExtensibilityStrings.l_Internet_Not_Connected_Error_Text);r.OutlookErrorManager._addErrorMessage$p(9042,"InternalServerError",window._u.ExtensibilityStrings.l_Internal_Server_Error_Text);r.OutlookErrorManager._addErrorMessage$p(9043,"AttachmentTypeNotSupported",window._u.ExtensibilityStrings.l_AttachmentNotSupported_Text);r.OutlookErrorManager._isInitialized$p=!0};r.OutlookErrorManager._addErrorMessage$p=function(n,t,i){u.DDA.ErrorCodeManager.addErrorMessage(n,{name:t,message:i})};r.OutlookErrorManager.OutlookErrorCodes=function(){};r.OutlookErrorManager.OsfDdaErrorCodes=function(){};r.PhoneNumber=function(n){this.$$d__getPhoneType$p$0=Function.createDelegate(this,this._getPhoneType$p$0);this.$$d__getOriginalPhoneString$p$0=Function.createDelegate(this,this._getOriginalPhoneString$p$0);this.$$d__getPhoneString$p$0=Function.createDelegate(this,this._getPhoneString$p$0);this._data$p$0=n;r.InitialData._defineReadOnlyProperty$i(this,"phoneString",this.$$d__getPhoneString$p$0);r.InitialData._defineReadOnlyProperty$i(this,"originalPhoneString",this.$$d__getOriginalPhoneString$p$0);r.InitialData._defineReadOnlyProperty$i(this,"type",this.$$d__getPhoneType$p$0)};r.PhoneNumber.prototype={_data$p$0:null,_getPhoneString$p$0:function(){return this._data$p$0.PhoneString},_getOriginalPhoneString$p$0:function(){return this._data$p$0.OriginalPhoneString},_getPhoneType$p$0:function(){return this._data$p$0.Type}};r.TaskSuggestion=function(n){this.$$d__getAssignees$p$0=Function.createDelegate(this,this._getAssignees$p$0);this.$$d__getTaskString$p$0=Function.createDelegate(this,this._getTaskString$p$0);this._data$p$0=n;r.InitialData._defineReadOnlyProperty$i(this,"taskString",this.$$d__getTaskString$p$0);r.InitialData._defineReadOnlyProperty$i(this,"assignees",this.$$d__getAssignees$p$0)};r.TaskSuggestion.prototype={_data$p$0:null,_assignees$p$0:null,_getTaskString$p$0:function(){return this._data$p$0.TaskString},_getAssignees$p$0:function(){if(!this._assignees$p$0){var n=this;this._assignees$p$0=r.Entities._getExtractedObjects$i(r.EmailAddressDetails,this._data$p$0,"Assignees",function(n){return r.EmailAddressDetails._createFromEmailUserDictionary$i(n)})}return this._assignees$p$0}};r.UserProfile=function(n){this.$$d__getUserProfileType$p$0=Function.createDelegate(this,this._getUserProfileType$p$0);this.$$d__getTimeZone$p$0=Function.createDelegate(this,this._getTimeZone$p$0);this.$$d__getEmailAddress$p$0=Function.createDelegate(this,this._getEmailAddress$p$0);this.$$d__getDisplayName$p$0=Function.createDelegate(this,this._getDisplayName$p$0);this._data$p$0=n;r.InitialData._defineReadOnlyProperty$i(this,"displayName",this.$$d__getDisplayName$p$0);r.InitialData._defineReadOnlyProperty$i(this,"emailAddress",this.$$d__getEmailAddress$p$0);r.InitialData._defineReadOnlyProperty$i(this,"timeZone",this.$$d__getTimeZone$p$0);r.InitialData._defineReadOnlyProperty$i(this,"accountType",this.$$d__getUserProfileType$p$0)};r.UserProfile.prototype={_data$p$0:null,_getUserProfileType$p$0:function(){return this._data$p$0.get__userProfileType$i$0()},_getDisplayName$p$0:function(){return this._data$p$0.get__userDisplayName$i$0()},_getEmailAddress$p$0:function(){return this._data$p$0.get__userEmailAddress$i$0()},_getTimeZone$p$0:function(){return this._data$p$0.get__userTimeZone$i$0()}};r.OutlookDispid=function(){};r.OutlookDispid.prototype={owaOnlyMethod:0,getInitialData:1,getUserIdentityToken:2,loadCustomProperties:3,saveCustomProperties:4,ewsRequest:5,displayNewAppointmentForm:7,displayMessageForm:8,displayAppointmentForm:9,displayReplyForm:10,displayReplyAllForm:11,getCallbackToken:12,bodySetSelectedDataAsync:13,getBodyTypeAsync:14,getRecipientsAsync:15,addFileAttachmentAsync:16,setSubjectAsync:17,getSubjectAsync:18,addItemAttachmentAsync:19,removeAttachmentAsync:20,setRecipientsAsync:21,addRecipientsAsync:22,bodyPrependAsync:23,getTimeAsync:24,setTimeAsync:25,getLocationAsync:26,setLocationAsync:27,getSelectedDataAsync:28,setSelectedDataAsync:29,displayReplyFormWithAttachments:30,displayReplyAllFormWithAttachments:31,saveAsync:32,addNotficationMessageAsync:33,getAllNotficationMessagesAsync:34,replaceNotficationMessageAsync:35,removeNotficationMessageAsync:36,getBodyAsync:37,setBodyAsync:38,appCommands1:39,registerConsentAsync:40,close:41,closeApp:42,displayPersonaCardAsync:43,displayNewMessageForm:44,navigateToModuleAsync:45,eventCompleted:94,closeContainer:97,getInitializationContextAsync:99,appendOnSendAsync:100,moveToFolder:101,getRecurrenceAsync:103,setRecurrenceAsync:104,getFromAsync:107,getSharedPropertiesAsync:108,messageParent:144,addBase64FileAttachmentAsync:148,getAttachmentsAsync:149,getAttachmentContentAsync:150,getInternetHeadersAsync:151,setInternetHeadersAsync:152,removeInternetHeadersAsync:153,getEnhancedLocationsAsync:154,addEnhancedLocationsAsync:155,removeEnhancedLocationsAsync:156,trackCtq:400,recordTrace:401,recordDataPoint:402,windowOpenOverrideHandler:403,saveSettingsRequest:404};r.OutlookDispid.registerEnum("$h.OutlookDispid",!1);r.RequestState=function(){};r.RequestState.prototype={unsent:0,opened:1,headersReceived:2,loading:3,done:4};r.RequestState.registerEnum("$h.RequestState",!1);r.CommonParameters=function(n,t,i){this._options$p$0=n;this._callback$p$0=t;this._asyncContext$p$0=i};r.CommonParameters.parse=function(n,t,i){var o;var h,c;if(i&&(c=r.CommonParameters._tryParseLegacy$p(n,h={val:o}),o=h.val,c))return o;var e=n.length;var u=null;var f=null;var s=null;if(e===1)if(r.CommonParameters._argIsFunction$p(n[0]))f=n[0];else if(Object.isInstanceOfType(n[0]))u=n[0];else throw Error.argumentType();else if(e===2){if(!Object.isInstanceOfType(n[0]))throw Error.argument("options");if(!r.CommonParameters._argIsFunction$p(n[1]))throw Error.argument("callback");u=n[0];f=n[1]}else if(e)throw Error.parameterCount(window._u.ExtensibilityStrings.l_ParametersNotAsExpected_Text);if(t&&!f)throw Error.argumentNull("callback");u&&!r.ScriptHelpers.isNullOrUndefined(u.asyncContext)&&(s=u.asyncContext);return new r.CommonParameters(u,f,s)};r.CommonParameters._tryParseLegacy$p=function(n,t){t.val=null;var i=n.length;var f=null;var u=null;if(!i||i>2||!r.CommonParameters._argIsFunction$p(n[0]))return!1;f=n[0];i>1&&(u=n[1]);t.val=new r.CommonParameters(null,f,u);return!0};r.CommonParameters._argIsFunction$p=function(n){return typeof n=="function"};r.CommonParameters.prototype={_options$p$0:null,_callback$p$0:null,_asyncContext$p$0:null,get_options:function(){return this._options$p$0},get_callback:function(){return this._callback$p$0},get_asyncContext:function(){return this._asyncContext$p$0}};r.ShouldRunNewCodeForFlags=function(){};r.EwsRequest=function(n){r.EwsRequest.initializeBase(this,[n])};r.EwsRequest.prototype={readyState:1,status:0,statusText:null,onreadystatechange:null,responseText:null,get__statusCode$i$1:function(){return this.status},set__statusCode$i$1:function(n){this.status=n;return n},get__statusDescription$i$1:function(){return this.statusText},set__statusDescription$i$1:function(n){this.statusText=n;return n},get__requestState$i$1:function(){return this.readyState},set__requestState$i$1:function(n){this.readyState=n;return n},get_hasOnReadyStateChangeCallback:function(){return!r.ScriptHelpers.isNullOrUndefined(this.onreadystatechange)},get__response$i$1:function(){return this.responseText},set__response$i$1:function(n){this.responseText=n;return n},send:function(n){this._checkSendConditions$i$1();r.ScriptHelpers.isNullOrUndefined(n)&&this._throwInvalidStateException$i$1();this._sendRequest$i$0(5,"EwsRequest",{body:n})},_callOnReadyStateChangeCallback$i$1:function(){r.ScriptHelpers.isNullOrUndefined(this.onreadystatechange)||this.onreadystatechange()},_parseExtraResponseData$i$1:function(n){},executeExtraFailedResponseSteps:function(){}};r.InitialData=function(n){this._data$p$0=n;this._permissionLevel$p$0=this._calculatePermissionLevel$p$0()};r.InitialData._defineReadOnlyProperty$i=function(n,t,i){var r={get:i,configurable:!1};window.Object.defineProperty(n,t,r)};r.InitialData.prototype={_toRecipients$p$0:null,_ccRecipients$p$0:null,_attachments$p$0:null,_resources$p$0:null,_entities$p$0:null,_selectedEntities$p$0:null,_data$p$0:null,_permissionLevel$p$0:0,get__isRestIdSupported$i$0:function(){return this._data$p$0.isRestIdSupported},get__itemId$i$0:function(){return this._data$p$0.id},get__itemClass$i$0:function(){return this._data$p$0.itemClass},get__dateTimeCreated$i$0:function(){return new Date(this._data$p$0.dateTimeCreated)},get__dateTimeModified$i$0:function(){return new Date(this._data$p$0.dateTimeModified)},get__dateTimeSent$i$0:function(){return new Date(this._data$p$0.dateTimeSent)},get__subject$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();return this._data$p$0.subject},get__normalizedSubject$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();return this._data$p$0.normalizedSubject},get__internetMessageId$i$0:function(){return this._data$p$0.internetMessageId},get__conversationId$i$0:function(){return this._data$p$0.conversationId},get__sender$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();var n=this._data$p$0.sender;return r.ScriptHelpers.isNullOrUndefined(n)?null:new r.EmailAddressDetails(n)},get__from$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();var n=this._data$p$0.from;return r.ScriptHelpers.isNullOrUndefined(n)?null:new r.EmailAddressDetails(n)},get__to$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();null===this._toRecipients$p$0&&(this._toRecipients$p$0=this._createEmailAddressDetails$p$0("to"));return this._toRecipients$p$0},get__cc$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();null===this._ccRecipients$p$0&&(this._ccRecipients$p$0=this._createEmailAddressDetails$p$0("cc"));return this._ccRecipients$p$0},get__attachments$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();null===this._attachments$p$0&&(this._attachments$p$0=r.AttachmentDetails.createFromJsonArray(this._data$p$0.attachments));return this._attachments$p$0},get__ewsUrl$i$0:function(){return this._data$p$0.ewsUrl},get__restUrl$i$0:function(){return this._data$p$0.restUrl},get__marketplaceAssetId$i$0:function(){return this._data$p$0.marketplaceAssetId},get__extensionId$i$0:function(){return this._data$p$0.extensionId},get__marketplaceContentMarket$i$0:function(){return this._data$p$0.marketplaceContentMarket},get__consentMetadata$i$0:function(){return this._data$p$0.consentMetadata},get__isRead$i$0:function(){return this._data$p$0.isRead},get__isFromSharedFolder$i$0:function(){return!!this._data$p$0.isFromSharedFolder&&this._data$p$0.isFromSharedFolder},get__shouldRunNewCodeForFlags$i$0:function(){return this._data$p$0.shouldRunNewCodeForFlags?this._data$p$0.shouldRunNewCodeForFlags:0},get__endNodeUrl$i$0:function(){return this._data$p$0.endNodeUrl},get__entryPointUrl$i$0:function(){return this._data$p$0.entryPointUrl},get__start$i$0:function(){return new Date(this._data$p$0.start)},get__end$i$0:function(){return new Date(this._data$p$0.end)},get__location$i$0:function(){return this._data$p$0.location},get__userProfileType$i$0:function(){return this._data$p$0.userProfileType},get__resources$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();null===this._resources$p$0&&(this._resources$p$0=this._createEmailAddressDetails$p$0("resources"));return this._resources$p$0},get__organizer$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();var n=this._data$p$0.organizer;return r.ScriptHelpers.isNullOrUndefined(n)?null:new r.EmailAddressDetails(n)},get__recurrence$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();return this._data$p$0.recurrence},get__seriesId$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();return this._data$p$0.seriesId},get__userDisplayName$i$0:function(){return this._data$p$0.userDisplayName},get__userEmailAddress$i$0:function(){return this._data$p$0.userEmailAddress},get__userTimeZone$i$0:function(){return this._data$p$0.userTimeZone},get__timeZoneOffsets$i$0:function(){return this._data$p$0.timeZoneOffsets},get__hostVersion$i$0:function(){return this._data$p$0.hostVersion},get__owaView$i$0:function(){return this._data$p$0.owaView},get__overrideWindowOpen$i$0:function(){return this._data$p$0.overrideWindowOpen},_getEntities$i$0:function(){this._entities$p$0||(this._entities$p$0=new r.Entities(this._data$p$0.entities,this._data$p$0.filteredEntities,this.get__dateTimeSent$i$0(),this._permissionLevel$p$0));return this._entities$p$0},_getSelectedEntities$i$0:function(){this._selectedEntities$p$0||(this._selectedEntities$p$0=new r.Entities(this._data$p$0.selectedEntities,null,this.get__dateTimeSent$i$0(),this._permissionLevel$p$0));return this._selectedEntities$p$0},_getEntitiesByType$i$0:function(n){var t=this._getEntities$i$0();return t._getByType$i$0(n)},_getFilteredEntitiesByName$i$0:function(n){var t=this._getEntities$i$0();return t._getFilteredEntitiesByName$i$0(n)},_getRegExMatches$i$0:function(){return this._data$p$0.regExMatches?this._data$p$0.regExMatches:null},_getSelectedRegExMatches$i$0:function(){return this._data$p$0.selectedRegExMatches?this._data$p$0.selectedRegExMatches:null},_getRegExMatchesByName$i$0:function(n){var t=this._getRegExMatches$i$0();return!t||!t[n]?null:t[n]},_throwOnRestrictedPermissionLevel$i$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._permissionLevel$p$0)},_createEmailAddressDetails$p$0:function(n){var i=this._data$p$0[n];if(r.ScriptHelpers.isNullOrUndefined(i))return[];for(var u=[],t=0;t<i.length;t++)r.ScriptHelpers.isNullOrUndefined(i[t])||(u[t]=new r.EmailAddressDetails(i[t]));return u},_calculatePermissionLevel$p$0:function(){var i=1;var u=2;var n=3;var t=this._data$p$0.permissionLevel;if(r.ScriptHelpers.isUndefined(this._permissionLevel$p$0))return 0;switch(t){case i:return 1;case n:return 2;case u:return 3;default:return 0}}};r._loadDictionaryRequest=function(n,t,i,u){r._loadDictionaryRequest.initializeBase(this,[u]);this._createResultObject$p$1=n;this._dictionaryName$p$1=t;this._callback$p$1=i};r._loadDictionaryRequest.prototype={_dictionaryName$p$1:null,_createResultObject$p$1:null,_callback$p$1:null,handleResponse:function(n){if(n.wasSuccessful){var i=n[this._dictionaryName$p$1];var t=window.JSON.parse(i);this.createAsyncResult(this._createResultObject$p$1(t),0,0,null)}else this.createAsyncResult(null,1,9020,n.errorMessage);this._callback$p$1(this._asyncResult$p$0)}};r.ProxyRequestBase=function(n){r.ProxyRequestBase.initializeBase(this,[n])};r.ProxyRequestBase.prototype={handleResponse:function(n){if(n.wasProxySuccessful){this.set__statusCode$i$1(n.statusCode);this.set__statusDescription$i$1(n.statusDescription);this.set__response$i$1(n.body);this.createAsyncResult(this.get__response$i$1(),0,0,null)}else{this.set__statusCode$i$1(500);this.set__statusDescription$i$1("Error");var t=n.errorMessage;this.set__response$i$1(t);this.createAsyncResult(null,1,9020,t)}this._parseExtraResponseData$i$1(n);this._cycleReadyStateFromHeadersReceivedToLoadingToDone$i$1()},_throwInvalidStateException$i$1:function(){throw Error.create("DOMException",{code:11,message:"INVALID_STATE_ERR"});},_cycleReadyStateFromHeadersReceivedToLoadingToDone$i$1:function(){var n=this;this._changeReadyState$i$1(2,function(){n._changeReadyState$i$1(3,function(){n._changeReadyState$i$1(4,null)})})},_changeReadyState$i$1:function(n,t){this.set__requestState$i$1(n);var i=this;window.setTimeout(function(){try{i._callOnReadyStateChangeCallback$i$1()}finally{r.ScriptHelpers.isNullOrUndefined(t)||t()}},0)},_checkSendConditions$i$1:function(){this.get__requestState$i$1()!==1&&this._throwInvalidStateException$i$1();this._isSent$p$0&&this._throwInvalidStateException$i$1()}};r.RequestBase=function(n){this._userContext$p$0=n};r.RequestBase.prototype={_isSent$p$0:!1,_asyncResult$p$0:null,_userContext$p$0:null,get_asyncResult:function(){return this._asyncResult$p$0},_sendRequest$i$0:function(n,t,i){this._isSent$p$0=!0;var r=this;window.OSF.DDA.OutlookAppOm._instance$p.invokeHostMethod(n,i,function(n,t){n?r.createAsyncResult(null,1,9017,String.format(window._u.ExtensibilityStrings.l_InternalProtocolError_Text,n)):r.handleResponse(t)})},createAsyncResult:function(n,t,i,r){this._asyncResult$p$0=window.OSF.DDA.OutlookAppOm._instance$p.createAsyncResult(n,t,i,this._userContext$p$0,r)}};r.SaveDictionaryRequest=function(n,t){r.SaveDictionaryRequest.initializeBase(this,[t]);r.ScriptHelpers.isNullOrUndefined(n)||(this._callback$p$1=n)};r.SaveDictionaryRequest.prototype={_callback$p$1:null,handleResponse:function(n){n.wasSuccessful?this.createAsyncResult(null,0,0,null):this.createAsyncResult(null,1,9020,n.errorMessage);r.ScriptHelpers.isNullOrUndefined(this._callback$p$1)||this._callback$p$1(this._asyncResult$p$0)}};r.ScriptHelpers=function(){};r.ScriptHelpers.isNull=function(n){return null===n};r.ScriptHelpers.isNullOrUndefined=function(n){return r.ScriptHelpers.isNull(n)||r.ScriptHelpers.isUndefined(n)};r.ScriptHelpers.isUndefined=function(n){return n===undefined};r.ScriptHelpers.dictionaryContainsKey=function(n,t){return Object.isInstanceOfType(n)?t in n:!1};r.ScriptHelpers.isNonEmptyString=function(n){return n?String.isInstanceOfType(n):!1};r.ScriptHelpers.deepClone=function(n){return window.JSON.parse(window.JSON.stringify(n))};r.ScriptHelpers.isValueTrue=function(n){return r.ScriptHelpers.isNullOrUndefined(n)?!1:n.toString().toLowerCase()==="true"};window.OSF.DDA.OutlookAppOm.registerClass("OSF.DDA.OutlookAppOm");window.OSF.DDA.Settings.registerClass("OSF.DDA.Settings");r.AdditionalGlobalParameters.registerClass("$h.AdditionalGlobalParameters");r.ItemBase.registerClass("$h.ItemBase");r.Item.registerClass("$h.Item",r.ItemBase);r.Appointment.registerClass("$h.Appointment",r.Item);r.ComposeItem.registerClass("$h.ComposeItem",r.ItemBase);r.AppointmentCompose.registerClass("$h.AppointmentCompose",r.ComposeItem);r.AttachmentDetails.registerClass("$h.AttachmentDetails");r.Body.registerClass("$h.Body");r.ComposeFrom.registerClass("$h.ComposeFrom");window.$h.InternetHeaders.registerClass("$h.InternetHeaders");r.ComposeBody.registerClass("$h.ComposeBody",r.Body);r.ComposeRecipient.registerClass("$h.ComposeRecipient");r.ComposeRecurrence.registerClass("$h.ComposeRecurrence");r.ComposeLocation.registerClass("$h.ComposeLocation");r.ComposeSubject.registerClass("$h.ComposeSubject");r.ComposeTime.registerClass("$h.ComposeTime");r.Contact.registerClass("$h.Contact");r.CustomProperties.registerClass("$h.CustomProperties");r.Diagnostics.registerClass("$h.Diagnostics");r.EmailAddressDetails.registerClass("$h.EmailAddressDetails");window.$h.EnhancedLocation.registerClass("$h.EnhancedLocation");r.Entities.registerClass("$h.Entities");window.Microsoft.Office.WebExtension.SeriesTime.registerClass("Microsoft.Office.WebExtension.SeriesTime");r.Message.registerClass("$h.Message",r.Item);r.MeetingRequest.registerClass("$h.MeetingRequest",r.Message);r.MeetingSuggestion.registerClass("$h.MeetingSuggestion");r._extractedDate.registerClass("$h._extractedDate");r._preciseDate.registerClass("$h._preciseDate",r._extractedDate);r._relativeDate.registerClass("$h._relativeDate",r._extractedDate);r.MessageCompose.registerClass("$h.MessageCompose",r.ComposeItem);r.NotificationMessages.registerClass("$h.NotificationMessages");window.Microsoft.Office.WebExtension.OutlookBase.registerClass("Microsoft.Office.WebExtension.OutlookBase");r.PhoneNumber.registerClass("$h.PhoneNumber");r.TaskSuggestion.registerClass("$h.TaskSuggestion");r.UserProfile.registerClass("$h.UserProfile");r.CommonParameters.registerClass("$h.CommonParameters");r.RequestBase.registerClass("$h.RequestBase");r.ProxyRequestBase.registerClass("$h.ProxyRequestBase",r.RequestBase);r.EwsRequest.registerClass("$h.EwsRequest",r.ProxyRequestBase);r.InitialData.registerClass("$h.InitialData");r._loadDictionaryRequest.registerClass("$h._loadDictionaryRequest",r.RequestBase);r.SaveDictionaryRequest.registerClass("$h.SaveDictionaryRequest",r.RequestBase);window.OSF.DDA.OutlookAppOm.asyncMethodTimeoutKeyName="__timeout__";window.OSF.DDA.OutlookAppOm.ewsIdOrEmailParamName="ewsIdOrEmail";window.OSF.DDA.OutlookAppOm.moduleParamName="module";window.OSF.DDA.OutlookAppOm.queryStringParamName="queryString";window.OSF.DDA.OutlookAppOm._maxRecipients$p=100;window.OSF.DDA.OutlookAppOm._maxSubjectLength$p=255;window.OSF.DDA.OutlookAppOm.maxBodyLength=32768;window.OSF.DDA.OutlookAppOm._maxLocationLength$p=255;window.OSF.DDA.OutlookAppOm._maxEwsRequestSize$p=1e6;window.OSF.DDA.OutlookAppOm.executeMethodName="ExecuteMethod";window.OSF.DDA.OutlookAppOm.getInitialDataMethodName="GetInitialData";window.OSF.DDA.OutlookAppOm.standardInvokeHostMethodErrorCodeKey="errorCode";window.OSF.DDA.OutlookAppOm.standardInvokeHostMethodErrorKey="error";window.OSF.DDA.OutlookAppOm.standardInvokeHostMethodDiagnosticsKey="diagnostics";window.OSF.DDA.OutlookAppOm.outlookAsyncResponseWasSuccessfulKey="wasSuccessful";window.OSF.DDA.OutlookAppOm.outlookAsyncResponseErrorMessageKey="errorMessage";window.OSF.DDA.OutlookAppOm.itemIdParameterName="itemId";window.OSF.DDA.OutlookAppOm.restVersionParameterName="restVersion";window.OSF.DDA.OutlookAppOm._instance$p=null;r.AdditionalGlobalParameters.itemNumberKey="itemNumber";r.AdditionalGlobalParameters.actionsDefinitionKey="actions";r.AttachmentConstants.maxAttachmentNameLength=255;r.AttachmentConstants.maxUrlLength=2048;r.AttachmentConstants.maxItemIdLength=200;r.AttachmentConstants.maxRemoveIdLength=200;r.AttachmentConstants.attachmentParameterName="attachments";r.AttachmentConstants.attachmentTypeParameterName="type";r.AttachmentConstants.attachmentUrlParameterName="url";r.AttachmentConstants.base64StringParameterName="base64String";r.AttachmentConstants.attachmentItemIdParameterName="itemId";r.AttachmentConstants.attachmentNameParameterName="name";r.AttachmentConstants.attachmentIsInlineParameterName="isInline";r.AttachmentConstants.attachmentTypeFileName="file";r.AttachmentConstants.attachmentTypeItemName="item";r.AttachmentConstants.attachmentIdParameterName="id";r.AttachmentDetails._attachmentTypeMap$p=[window.Microsoft.Office.WebExtension.MailboxEnums.AttachmentType.File,window.Microsoft.Office.WebExtension.MailboxEnums.AttachmentType.Item,window.Microsoft.Office.WebExtension.MailboxEnums.AttachmentType.Cloud];r.Body.coercionTypeParameterName="coercionType";window.$h.InternetHeaders.internetHeadersLimit=998;r.ComposeRecipient.displayNameLengthLimit=255;r.ComposeRecipient.recipientsLimit=100;r.ComposeRecipient.totalRecipientsLimit=500;r.ComposeRecipient.addressParameterName="address";r.ComposeRecipient.nameParameterName="name";r.ComposeRecurrence.startDateKey="startDate";r.ComposeRecurrence.endDateKey="endDate";r.ComposeRecurrence.startTimeKey="startTime";r.ComposeRecurrence.endTimeKey="endTime";r.ComposeRecurrence.recurrenceTypeKey="recurrenceType";r.ComposeRecurrence.seriesTimeKey="seriesTime";r.ComposeRecurrence.seriesTimeJsonKey="seriesTimeJson";r.ComposeRecurrence.recurrenceTimeZoneKey="recurrenceTimeZone";r.ComposeRecurrence.recurrenceTimeZoneName="name";r.ComposeRecurrence.recurrencePropertiesKey="recurrenceProperties";r.ComposeRecurrence.intervalKey="interval";r.ComposeRecurrence.daysKey="days";r.ComposeRecurrence.dayOfMonthKey="dayOfMonth";r.ComposeRecurrence.dayOfWeekKey="dayOfWeek";r.ComposeRecurrence.weekNumberKey="weekNumber";r.ComposeRecurrence.monthKey="month";r.ComposeRecurrence.firstDayOfWeekKey="firstDayOfWeek";r.ComposeLocation.locationKey="location";r.ComposeLocation.maximumLocationLength=255;r.ComposeSubject.maximumSubjectLength=255;r.ComposeTime.timeTypeName="TimeProperty";r.ComposeTime.timeDataName="time";r.Diagnostics.outlookAppName="Outlook";r.Diagnostics.outlookWebAppName="OutlookWebApp";r.Diagnostics.outlookIOSAppName="OutlookIOS";r.Diagnostics.outlookAndroidAppName="OutlookAndroid";r.EmailAddressDetails._emptyString$p="";r.EmailAddressDetails._responseTypeMap$p=[window.Microsoft.Office.WebExtension.MailboxEnums.ResponseType.None,window.Microsoft.Office.WebExtension.MailboxEnums.ResponseType.Organizer,window.Microsoft.Office.WebExtension.MailboxEnums.ResponseType.Tentative,window.Microsoft.Office.WebExtension.MailboxEnums.ResponseType.Accepted,window.Microsoft.Office.WebExtension.MailboxEnums.ResponseType.Declined];r.EmailAddressDetails._recipientTypeMap$p=[window.Microsoft.Office.WebExtension.MailboxEnums.RecipientType.Other,window.Microsoft.Office.WebExtension.MailboxEnums.RecipientType.DistributionList,window.Microsoft.Office.WebExtension.MailboxEnums.RecipientType.User,window.Microsoft.Office.WebExtension.MailboxEnums.RecipientType.ExternalUser];r.Entities._allEntityKeys$p=["Addresses","EmailAddresses","Urls","PhoneNumbers","TaskSuggestions","MeetingSuggestions","Contacts","FlightReservations","ParcelDeliveries"];window.Microsoft.Office.WebExtension.SeriesTime.startYearKey="startYear";window.Microsoft.Office.WebExtension.SeriesTime.startMonthKey="startMonth";window.Microsoft.Office.WebExtension.SeriesTime.startDayKey="startDay";window.Microsoft.Office.WebExtension.SeriesTime.endYearKey="endYear";window.Microsoft.Office.WebExtension.SeriesTime.endMonthKey="endMonth";window.Microsoft.Office.WebExtension.SeriesTime.endDayKey="endDay";window.Microsoft.Office.WebExtension.SeriesTime.noEndDateKey="noEndDate";window.Microsoft.Office.WebExtension.SeriesTime.startTimeMinKey="startTimeMin";window.Microsoft.Office.WebExtension.SeriesTime.durationMinKey="durationMin";r.ReplyConstants.htmlBodyKeyName="htmlBody";r.EmailAddressConstants.maxSmtpLength=571;r.AsyncConstants.optionsKeyName="options";r.AsyncConstants.callbackKeyName="callback";r.AsyncConstants.asyncResultKeyName="asyncResult";r.ApiTelemetryCode.success=0;r.ApiTelemetryCode.noResponseDictionary=-900;r.ApiTelemetryCode.noErrorCodeForStandardInvokeMethod=-901;r.ApiTelemetryCode.genericProxyError=-902;r.ApiTelemetryCode.genericLegacyApiError=-903;r.ApiTelemetryCode.genericUnknownError=-904;r.Item.destFolderParameterName="destinationFolder";r.MeetingSuggestionTimeDecoder._baseDate$p=new Date("0001-01-01T00:00:00Z");r.NotificationMessages.maximumKeyLength=32;r.NotificationMessages.maximumIconLength=32;r.NotificationMessages.maximumMessageLength=150;r.NotificationMessages.maximumActionTextLength=30;r.NotificationMessages.notificationsKeyParameterName="key";r.NotificationMessages.notificationsTypeParameterName="type";r.NotificationMessages.notificationsIconParameterName="icon";r.NotificationMessages.notificationsMessageParameterName="message";r.NotificationMessages.notificationsPersistentParameterName="persistent";r.NotificationMessages.notificationsActionsDefinitionParameterName="actions";r.NotificationMessages.notificationsActionTypeParameterName="actionType";r.NotificationMessages.notificationsActionTextParameterName="actionText";r.NotificationMessages.notificationsActionCommandIdParameterName="commandId";r.NotificationMessages.notificationsActionContextDataParameterName="contextData";r.NotificationMessages.notificationsActionShowTaskPaneActionId="showTaskPane";r.OutlookErrorManager.errorNameKey="name";r.OutlookErrorManager.errorMessageKey="message";r.OutlookErrorManager._isInitialized$p=!1;r.OutlookErrorManager.OutlookErrorCodes.attachmentSizeExceeded=9e3;r.OutlookErrorManager.OutlookErrorCodes.numberOfAttachmentsExceeded=9001;r.OutlookErrorManager.OutlookErrorCodes.internalFormatError=9002;r.OutlookErrorManager.OutlookErrorCodes.invalidAttachmentId=9003;r.OutlookErrorManager.OutlookErrorCodes.invalidAttachmentPath=9004;r.OutlookErrorManager.OutlookErrorCodes.cannotAddAttachmentBeforeUpgrade=9005;r.OutlookErrorManager.OutlookErrorCodes.attachmentDeletedBeforeUploadCompletes=9006;r.OutlookErrorManager.OutlookErrorCodes.attachmentUploadGeneralFailure=9007;r.OutlookErrorManager.OutlookErrorCodes.attachmentToDeleteDoesNotExist=9008;r.OutlookErrorManager.OutlookErrorCodes.attachmentDeleteGeneralFailure=9009;r.OutlookErrorManager.OutlookErrorCodes.invalidEndTime=9010;r.OutlookErrorManager.OutlookErrorCodes.htmlSanitizationFailure=9011;r.OutlookErrorManager.OutlookErrorCodes.numberOfRecipientsExceeded=9012;r.OutlookErrorManager.OutlookErrorCodes.noValidRecipientsProvided=9013;r.OutlookErrorManager.OutlookErrorCodes.cursorPositionChanged=9014;r.OutlookErrorManager.OutlookErrorCodes.invalidSelection=9016;r.OutlookErrorManager.OutlookErrorCodes.accessRestricted=9017;r.OutlookErrorManager.OutlookErrorCodes.genericTokenError=9018;r.OutlookErrorManager.OutlookErrorCodes.genericSettingsError=9019;r.OutlookErrorManager.OutlookErrorCodes.genericResponseError=9020;r.OutlookErrorManager.OutlookErrorCodes.saveError=9021;r.OutlookErrorManager.OutlookErrorCodes.messageInDifferentStoreError=9022;r.OutlookErrorManager.OutlookErrorCodes.duplicateNotificationKey=9023;r.OutlookErrorManager.OutlookErrorCodes.notificationKeyNotFound=9024;r.OutlookErrorManager.OutlookErrorCodes.numberOfNotificationsExceeded=9025;r.OutlookErrorManager.OutlookErrorCodes.persistedNotificationArrayReadError=9026;r.OutlookErrorManager.OutlookErrorCodes.persistedNotificationArraySaveError=9027;r.OutlookErrorManager.OutlookErrorCodes.cannotPersistPropertyInUnsavedDraftError=9028;r.OutlookErrorManager.OutlookErrorCodes.callSaveAsyncBeforeToken=9029;r.OutlookErrorManager.OutlookErrorCodes.apiCallFailedDueToItemChange=9030;r.OutlookErrorManager.OutlookErrorCodes.invalidParameterValueError=9031;r.OutlookErrorManager.OutlookErrorCodes.setRecurrenceOnInstance=9033;r.OutlookErrorManager.OutlookErrorCodes.invalidRecurrence=9034;r.OutlookErrorManager.OutlookErrorCodes.recurrenceZeroOccurrences=9035;r.OutlookErrorManager.OutlookErrorCodes.recurrenceMaxOccurrences=9036;r.OutlookErrorManager.OutlookErrorCodes.recurrenceInvalidTimeZone=9037;r.OutlookErrorManager.OutlookErrorCodes.insufficientItemPermissions=9038;r.OutlookErrorManager.OutlookErrorCodes.recurrenceUnsupportedAlternateCalendar=9039;r.OutlookErrorManager.OutlookErrorCodes.olkHTTPError=9040;r.OutlookErrorManager.OutlookErrorCodes.olkInternetNotConnectedError=9041;r.OutlookErrorManager.OutlookErrorCodes.olkInternalServerError=9042;r.OutlookErrorManager.OutlookErrorCodes.attachmentTypeNotSupported=9043;r.OutlookErrorManager.OutlookErrorCodes.ooeInvalidDataFormat=2006;r.OutlookErrorManager.OsfDdaErrorCodes.ooeCoercionTypeNotSupported=1e3;r.CommonParameters.asyncContextKeyName="asyncContext";r.ShouldRunNewCodeForFlags.saveCustomProperties=1;r.InitialData.userProfileTypeKey="userProfileType";r.ScriptHelpers.emptyString="";u.DDA.ErrorCodeManager.initializeErrorMessages(Strings.OfficeOM);this._settings=n.get_appName()==u.AppName.OutlookWebApp||n.get_appName()==u.AppName.OutlookIOS||n.get_appName()==u.AppName.OutlookAndroid?this._initializeSettings(n,!1):this._initializeSettings(!1);n.appOM=new u.DDA.OutlookAppOm(n,this._webAppState.wnd,t);(n.get_appName()==u.AppName.Outlook||n.get_appName()==u.AppName.OutlookWebApp||n.get_appName()==u.AppName.OutlookIOS||n.get_appName()==u.AppName.OutlookAndroid)&&u.DDA.DispIdHost.addEventSupport(n.appOM,new u.EventDispatch([Microsoft.Office.WebExtension.EventType.ItemChanged,Microsoft.Office.WebExtension.EventType.OfficeThemeChanged]))};
OSFAriaLogger.AriaLogger.EnableSendingTelemetryWithOTel=true;