/
suiteux.shell.plus.js.download
145 lines (145 loc) · 309 KB
/
suiteux.shell.plus.js.download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
var shellPerformance=window.performance,HighResolutionTimingSupported=!!shellPerformance&&"function"==typeof shellPerformance.mark;HighResolutionTimingSupported&&shellPerformance.mark("shell_plus_start"),(window.suiteux_shell_webpackJsonp_main=window.suiteux_shell_webpackJsonp_main||[]).push([["plus"],[,,,,function(e,t,n){"use strict";var i=n(57),r=n(55),a=n(125),o=n(8),s=n(15),u=(n(85),n(74)),c=n(101),l=n(36),p=(n(109),n(100),n(6)),d=(n(18),n(39)),f=n(20),h=null;try{window.MSA&&window.MSA.MeControl&&(h=window.MSA.MeControl.UserStateModel)}catch(e){}var g=h;(function(){function e(){}e.createUserStateModel=function(e){return null!=window.MSA?new g(e):null}})(),function(){function e(){}e.MSA="msa",e.AAD="aad",e.MSAFed="msaFed"}();function m(){"complete"===document.readyState?i.a.internalProcessWindowLoad():window.onload=i.a.internalProcessWindowLoad}n.d(t,"l",(function(){return m})),n.d(t,"d",(function(){return i.a})),n.d(t,"e",(function(){return r.a})),n.d(t,"g",(function(){return a.a})),n.d(t,"j",(function(){return o.a})),n.d(t,"a",(function(){return s.a})),n.d(t,"k",(function(){return u.a})),n.d(t,"b",(function(){return c.a})),n.d(t,"h",(function(){return l.a})),n.d(t,"f",(function(){return p})),n.d(t,"i",(function(){return d})),n.d(t,"c",(function(){return f.a}))},,function(e,t,n){"use strict";n.r(t),n.d(t,"StringTypeString",(function(){return l})),n.d(t,"BooleanTypeString",(function(){return p})),n.d(t,"FunctionTypeString",(function(){return d})),n.d(t,"NumberTypeString",(function(){return f})),n.d(t,"OwaIFrameID",(function(){return h})),n.d(t,"TokenFactoryIFrameID",(function(){return g})),n.d(t,"AdminIframeID",(function(){return m})),n.d(t,"SuiteServiceApiRelativePath",(function(){return y})),n.d(t,"OwsRelativePath",(function(){return v})),n.d(t,"DevFabricOwsRelativePath",(function(){return S})),n.d(t,"PostMessageIdPrefix",(function(){return b})),n.d(t,"validateField",(function(){return C})),n.d(t,"isFullUrl",(function(){return T})),n.d(t,"validateFullUrl",(function(){return O})),n.d(t,"getCurrentWindowLocation",(function(){return I})),n.d(t,"createInvalidParameterException",(function(){return A})),n.d(t,"isNullOrEmptyString",(function(){return w})),n.d(t,"buildUrl",(function(){return D})),n.d(t,"getUrlDomainPart",(function(){return E})),n.d(t,"getUrlPath",(function(){return P})),n.d(t,"getUrlAuthorityPart",(function(){return R})),n.d(t,"buildIframeResourceData",(function(){return k})),n.d(t,"getXMLHttpRequest",(function(){return N})),n.d(t,"validateRequestInfo",(function(){return x})),n.d(t,"convertArrayBufferToBinaryString",(function(){return L})),n.d(t,"convertBinaryStringToXmlHttpRequestBody",(function(){return j})),n.d(t,"parseQueryString",(function(){return U})),n.d(t,"parseResponseHeaders",(function(){return M})),n.d(t,"startsWith",(function(){return B})),n.d(t,"endsWith",(function(){return W})),n.d(t,"checkBrowserBinaryDataSupport",(function(){return q})),n.d(t,"ensureAttachMessageListener",(function(){return H})),n.d(t,"reportSimpleError",(function(){return G})),n.d(t,"encodeUrlForXmlHttpRequest",(function(){return z})),n.d(t,"urlEncodeCore",(function(){return V})),n.d(t,"getFrameElement",(function(){return K})),n.d(t,"getFrameID",(function(){return Z})),n.d(t,"getXMLHttpResponseLength",(function(){return Q}));var i=n(11),r=n(1),a=n(35),o=n(57),s=n(15),u=n(18),c=n(42),l="string",p="boolean",d="function",f="number",h="o365shellowaframe",g="o365shellwcssframe",m="o365shelladminframe",y="O365SuiteService/api/",v="owa/service.svc",S="SuiteService.svc",b="SP.RequestExecutor",_="https://";function C(e,t,n,r){if(r){if(null==e||typeof e!==n)throw new s.b(Object(i.b)(u.f,t),-2001)}else if(null!=e&&typeof e!==n)throw new s.b(Object(i.b)(u.f,t),-2001)}function T(e){return e.substr(0,_.length).toLowerCase()===_}function O(e,t){if(!T(e))throw A(t)}function I(){return window.location.href}function A(e){return new s.b(Object(i.b)(u.f,e),-2001)}function w(e){return""===e||null==e}function D(e,t){if(O(e,"baseUrl"),T(t))return t;if("/"===t.charAt(0)){var n=e.indexOf("://");return(n=e.indexOf("/",n+3))>0&&(e=e.substr(0,n)),e+t}return"/"!==e.charAt(e.length-1)&&(e+="/"),e+t}function E(e,t){void 0===t&&(t=!1),t&&O(e,"url");var n=e.indexOf("://");return(n=e.indexOf("/",n+3))>0&&(e=e.substr(0,n)),e.substr(0,_.length).toLowerCase()===_&&":443"===e.substr(e.length-4,4)&&(e=e.substr(0,e.length-4)),e}function P(e){var t=E(e),n=e.indexOf("?");return n>t.length+1?e.substring(t.length+1,n):e.substring(t.length+1,e.length)}function R(e){return(e=E(e)).substr(0,_.length).toLowerCase()===_&&(e=e.substr(_.length)),e.toLowerCase()}function k(e,t){var n=Object(a.f)(t.ShellResources.tokenfactoryiframe),i=Object(a.f)(t.ShellResources.crossdomainproxyiframe);return{version:e,tokenfactoryJsHash:n.hash,crossdomainproxyJsHash:i.hash}}function N(){if(!("XMLHttpRequest"in window))throw new s.b(u.c,-2003);return new XMLHttpRequest}function x(e){if(null==e)throw A("requestInfo");if(C(e.url,"requestInfo.url",l,!0),C(e.body,"requestInfo.body",l,!1),C(e.success,"requestInfo.success",d,!1),C(e.error,"requestInfo.error",d,!1),C(e.timeout,"requestInfo.timeout",f,!1),C(e.method,"requestInfo.method",l,!1),C(e.binaryStringRequestBody,"requestInfo.BinaryRequestBody",p,!1),C(e.binaryStringResponseBody,"requestInfo.BinaryResponseBody",p,!1),w(e.method)?e.method="GET":e.method=e.method.toUpperCase(),null==e.timeout&&(e.timeout=o.a.DefaultTimeout),e.timeout<0)throw A("requestInfo.timeout");if(w(e.url))throw A("requestInfo.url")}function L(e){for(var t="",n=new Uint8Array(e),i=0;i<n.length;i++)t+=String.fromCharCode(n[i]);return t}function j(e){var t=null;if(typeof e===l){for(var n=new ArrayBuffer(e.length),i=new Uint8Array(n),r=0;r<e.length;r++)i[r]=255&e.charCodeAt(r);var a=new Blob([n]);t=a||n}return t}function U(e){var t="",n=e.indexOf("?");return n>0&&(t=e.substr(n+1,e.length)),t}function M(e){var t={};if(null!=e)for(var n=new RegExp("\r?\n"),i=0,r=e.split(n);i<r.length;i++){var a=r[i];if(null!=a){var o=a.indexOf(":");if(o>0){var s=a.substr(0,o),u=a.substr(o+1);s=F(s),u=F(u),t[s.toUpperCase()]=u}}}return t}function F(e){return e.replace(/^\s+|\s+$/g,"")}function B(e,t){return 0===e.lastIndexOf(t,0)}function W(e,t){return e.lastIndexOf(t)===e.length-t.length}function q(){if(!("ArrayBuffer"in window))throw Object(r.e)().tag("RequestExecutor_ArrayBufferNotSupported",6,-2003,u.b),new s.b(u.b,-2003);if(!("Uint8Array"in window))throw Object(r.e)().tag("RequestExecutor_Uint8ArrayNotSupported",6,-2003,u.b),new s.b(u.b,-2003);if(!("BlobBuilder"in window)&&!("MozBlobBuilder"in window)&&!("Blob"in window))throw Object(r.e)().tag("RequestExecutor_BlobBuilderNotSupported",6,-2003,u.b),new s.b(u.b,-2003)}function H(e){if(window.addEventListener)return window.addEventListener("message",e,!1),!0;throw new s.b(u.h,-2002)}function G(e,t,n,i){if(null!=e.error){var a={state:e.state,body:""};i&&(n=n+" target: "+i),e.error(a,t,n)}else Object(r.e)().tag("RequestExecutor_NoErrorCallback",6,t.toString(),n)}function z(e){return V(e,!0,!0)}function V(e,t,n){var i="";if(w(e)||void 0===e||0===e.length)return"";for(var r=0;r<e.length;r++){var a=e.charCodeAt(r),o=e.charAt(r);if(t&&("#"===o||"?"===o)){i+=e.substr(r);break}if(a<=127)n||a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a>=32&&a<=95&&" \"%<>'&".indexOf(o)<0?i+=o:a<=15?i+="%0"+a.toString(16).toUpperCase():a<=127&&(i+="%"+a.toString(16).toUpperCase());else if(a<=2047)i+="%"+(192|a>>6).toString(16).toUpperCase(),i+="%"+(128|63&a).toString(16).toUpperCase();else if(55296!=(64512&a))i+="%"+(224|a>>12).toString(16).toUpperCase(),i+="%"+(128|(4032&a)>>6).toString(16).toUpperCase(),i+="%"+(128|63&a).toString(16).toUpperCase();else if(r<e.length-1){a=(1023&a)<<10,r++,a|=1023&e.charCodeAt(r),i+="%"+(240|(a+=65536)>>18).toString(16).toUpperCase(),i+="%"+(128|(258048&a)>>12).toString(16).toUpperCase(),i+="%"+(128|(4032&a)>>6).toString(16).toUpperCase(),i+="%"+(128|63&a).toString(16).toUpperCase()}}return i}function K(e){return document.getElementById(Z(e))}function Z(e){switch(e){case c.a.OWA:return h;case c.a.Portal:return m;case c.a.TokenFactory:return g;default:return Object(r.e)().tag("RequestExecutor_UnsupportedFrameCodeSpecified",6),""}}function Q(e){return"arraybuffer"===e.responseType?e.response?e.response.byteLength:0:e.responseText?e.responseText.length:0}},function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),function(e){e.Theme="theme",e.LanguageAndRegion="languageandregion",e.NotificationBase="notificationbase",e.Notification="notifications",e.NavBarDataLinks="navbardatalinks",e.ChangePassword="changepassword",e.ContactPreferences="contactpreferences",e.AboutBase="aboutbase",e.About="about",e.DarkMode="darkmode",e.CPNIPin="cpnipin"}(i||(i={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(){function e(e){this.suiteServiceHostPageBaseUrl=e.SuiteServiceUrl.substring(0,e.SuiteServiceUrl.lastIndexOf("/")),this.configuration=e}return e.Initialize=function(t){this.instance=new e(t)},Object.defineProperty(e,"Instance",{get:function(){return this.instance},enumerable:!0,configurable:!0}),e.assertInitialized=function(){if(null===e.Instance)throw new Error("SessionData not initialized.")},e.isUnitTestMode=!1,e}()},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var i=n(0),r=function(e,t,n){if(void 0===e&&(e=""),this.message=e,this.errorCode=t,this.errorInfo=n,this.name="ShellException",null!=n)for(var i=0,r=Object.keys(n);i<r.length;i++){var a=r[i];this[a]=n[a]}},a=function(e){function t(t,n,i){void 0===t&&(t="");var r=e.call(this,t,n,i)||this;return r.message=t,r.errorCode=n,r.errorInfo=i,r.name="RequestExecutorException",r}return Object(i.__extends)(t,e),t}(r)},,,function(e,t,n){"use strict";n.d(t,"j",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"f",(function(){return a})),n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"g",(function(){return u})),n.d(t,"k",(function(){return c})),n.d(t,"i",(function(){return l})),n.d(t,"l",(function(){return p})),n.d(t,"a",(function(){return d})),n.d(t,"m",(function(){return f})),n.d(t,"e",(function(){return h})),n.d(t,"h",(function(){return g}));var i="Request was aborted or timed out",r="Browser not supported",a="Invalid field or parameter {0}",o="Cannot access {0}",s="Binary data not supported",u="Invalid operation",c="Session storage error",l="Unable to parse json",p="Status:{0}, Content-type:{1}",d="Access denied",f="Timeout due to trusted sites",h="Could not find IFrame element.",g="Message listener is not attached."},function(e,t,n){"use strict";n.d(t,"j",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"i",(function(){return o})),n.d(t,"o",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"n",(function(){return p})),n.d(t,"q",(function(){return d})),n.d(t,"r",(function(){return f})),n.d(t,"l",(function(){return h})),n.d(t,"k",(function(){return g})),n.d(t,"c",(function(){return m})),n.d(t,"m",(function(){return y})),n.d(t,"p",(function(){return v})),n.d(t,"g",(function(){return S})),n.d(t,"h",(function(){return b}));var i="suiteux-settings.SAVE_SELECTIONS",r="suiteux-settings.CANCEL_SELECTIONS",a="suiteux-settings.ADDORUPDATE_WORKLOADSETTINGLINK",o="suiteux-settings.REMOVE_WORKLOADSETTINGLINK",s="suiteux-settings.SET_WORKLOADSETTINGSLINKS",u="suiteux-settings.INITIALCARDS_AVAILABLE",c="suiteux-settings.LANGUAGECHOICE_AVAILABLE",l="suiteux-settings.LANGUAGECHOICES_AVAILABLE",p="suiteux-settings.SELECTEDTIMEZONE_CHANGED",d="suiteux-settings.TIMEZONEANDFORMATSCHOICE_AVAILABLE",f="suiteux-settings.TIMEZONECHOICES_AVAILABLE",h="suiteux-settings.SELECTEDLANGUAGE_CHANGED",g="suiteux-settings.SELECTEDDATEFORMAT_CHANGED",m="suiteux-settings.DATEFORMATCHOICES_AVAILABLE",y="suiteux-settings.SELECTEDTIMEFORMAT_CHANGED",v="suiteux-settings.TIMEFORMATCHOICES_AVAILABLE",S="suiteux-settings.NAVIGATE_TO_CARD",b="suiteux-settings.O365_SETTINGS_EXPANDED"},function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),function(e){e.Ping="Ping",e.Query="Query",e.OwaUserConfig="OwaUserConfig",e.TokenPrefetch="TokenPrefetch",e.Storage="Storage",e.Notification="Notification",e.UserState="UserState",e.SignalR="SignalR",e.IncomingOpxMessage="IncomingOpxMessage",e.OutgoingOpxMessage="OutgoingOpxMessage",e.RegisterOpxHost="RegisterOpxHost"}(i||(i={}))},,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n(12),r=n(4),a=function(){function e(){this.isInitialized=!1}return Object.defineProperty(e.prototype,"SuiteApi",{get:function(){return this.suiteApi},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"IsInitialized",{get:function(){return this.isInitialized},enumerable:!0,configurable:!0}),e.prototype.initialize=function(e){i.throwOnNullOrUndefined(e,"suiteApi"),this.IsInitialized||(this.suiteApi=e,this.initializeComponent(),this.isInitialized=!0)},e.prototype.checkInitialized=function(){if(!this.isInitialized)throw new r.a("SuiteApiComponent_InvalidInitializationCheck",-2002)},e}()},,function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),function(e){e[e.NoExoLicense=1]="NoExoLicense",e[e.Brs=2]="Brs",e[e.TokenExpired=3]="TokenExpired",e[e.LanguageNotSet=4]="LanguageNotSet",e[e.InitFailed=5]="InitFailed",e[e.SecurityZoneMismatched=6]="SecurityZoneMismatched",e[e.IframeLoadError=7]="IframeLoadError",e[e.CallerOriginNotAllowed=8]="CallerOriginNotAllowed",e[e.InvalidMailbox=9]="InvalidMailbox",e[e.ShardMailbox=10]="ShardMailbox",e[e.ShardNotDetected=11]="ShardNotDetected",e[e.Pwa=12]="Pwa"}(i||(i={}))},,,function(e,t,n){"use strict";n.r(t);var i=n(11),r=n(1),a=n(8),o=n(15),s=function(){function e(e){this.value=e}return e.newSuid=function(){var t=(new Date).getTime();return e.disambiguationIndex=99===e.disambiguationIndex?0:e.disambiguationIndex+1,new e(100*t+e.disambiguationIndex)},e.disambiguationIndex=-1,e}();n.d(t,"XSuiteError",(function(){return u})),n.d(t,"generateCorrelationId",(function(){return l})),n.d(t,"getOwaServerName",(function(){return p})),n.d(t,"getOwaError",(function(){return d})),n.d(t,"convertErrorToException",(function(){return f})),n.d(t,"isCallsBlockedException",(function(){return h})),n.d(t,"genericServiceExceptionLog",(function(){return g})),n.d(t,"genericServiceRejection",(function(){return m}));var u="X-SUITE-ERROR",c=["X-OWA-CORRELATIONID","X-FESERVER","X-BESERVER","X-OWA-ERROR",u];function l(e){return e+"_"+s.newSuid().value.toString()}function p(){return Object(i.b)("FE_{0}_BE_{1}",a.a.Instance.OwaFrontEndServerName,a.a.Instance.OwaBackEndServerName)}function d(e){return null==e?null:(null!=e["X-FESERVER"]&&(a.a.Instance.OwaFrontEndServerName=e["X-FESERVER"]),null!=e["X-BESERVER"]&&(a.a.Instance.OwaBackEndServerName=e["X-BESERVER"]),e["X-OWA-ERROR"])}function f(e,t,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r];var a=y(e);a.errorCode=t;for(var s=0,u=0,c=i;u<c.length;u++){var l=c[u];a["arg"+s]=l,s++}return new o.a(n,t,a)}function h(e){return-1010===e.errorCode||-1007===e.errorCode}function g(e,t,n){if(n){var a=n.errorCode||"",o=n.errorInfo&&n.errorInfo.HttpStatus?n.errorInfo.HttpStatus:"",s=n["X-OWA-ERROR"]||n[u]||"",c=null!=n["X-FESERVER"]&&null!=n["X-BESERVER"]?Object(i.b)("FE_{0}_BE_{1}",n["X-FESERVER"],n["X-BESERVER"]):"",l=n["X-OWA-CORRELATIONID"]||"";Object(r.e)().exception(e,t,n,a,o,s,c,l)}else Object(r.e)().exception(e,t,n)}function m(e,t,n,i){h(n)&&g(e,t,n),i(n)}function y(e){var t={};if(null!=e&&(t.HttpStatus=e.statusCode,null!=e.headers))for(var n=0,i=c;n<i.length;n++){var r=i[n];null!=e.headers[r]&&(t[r]=e.headers[r])}return t}},,,function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),function(e){e[e.OWA=1]="OWA",e[e.Portal=2]="Portal",e[e.TokenFactory=3]="TokenFactory",e[e.DataSharing=4]="DataSharing"}(i||(i={}))},,,,,function(e,t,n){"use strict";var i=n(1),r=n(31),a=n(108);n.d(t,"b",(function(){return a.a}));var o=n(63);n.d(t,"a",(function(){return o.b})),Object(i.b)().subscribe("ShellDataUpdated",(function e(t,n){if(n.SuiteServiceUrl&&(n.IsConsumerShell||n.TokenFactoryIframeOrigin)&&!a.a.isInitialized()){var o=Object(i.f)(),s={SuiteServiceUrl:n.SuiteServiceUrl,AdminServiceUrl:n.PortalUrl,CurrentUserUpn:n.UPN,CurrentUserPuid:n.PUID,UserHasExchangeLicense:n.HasEXOLicense,SuiteServiceCallsDisabled:n.SuiteServiceCallsDisabled,TokenFactoryIframeOrigin:n.TokenFactoryIframeOrigin,IsOwa:Object(r.c)(n.WorkloadId),ShellSID:n.SHSID,HintUserName:null!=n.EnableUsernameHinting&&n.EnableUsernameHinting,CultureName:t.CultureName,MruOauthEndpointUrl:n.MruOauthEndpointUrl,MruOauthResourceUrl:n.MruOauthResourceUrl,GraphOauthEndpointUrl:n.GraphOauthEndpointUrl,GraphOauthResourceUrl:n.GraphOauthResourceUrl,NotificationsEnabled:n.NotificationsEnabled&&n.HasEXOLicense,WorkloadId:n.WorkloadId,ClientShellVersion:window.O365ShellVerStr,IsPwa:Object(r.d)(n.WorkloadId,t.CurrentMainLinkElementID),IsOwsLanguageTimezoneCallEnabled:n.OwsLanguageTimezoneCallEnabled,GetTokenRequestDictionary:o.GetTokenRequestDictionary,ServiceWorkerCacheId:o.serviceWorkerCacheId,ServiceWorkerFetchStrategy:o.serviceWorkerFetchStrategy,UserDisambiguationEnabled:n.AADDisambiguationEnabled,ClearThemeCacheData:null!=n.ClearUserThemeCacheUrls&&n.ClearUserThemeCacheUrls.length>0?JSON.parse(n.ClearUserThemeCacheUrls):[],IsConsumer:n.IsConsumerShell,CSSExperiencesEnabled:n.CSSExperiencesEnabled,OpxEnabled:n.OpxEnabled};a.a.CreateInstance(s);var u=Object(i.b)();u.invoke("SuiteAPILoaded",a.a.Instance),u.unsubscribe("ShellDataUpdated",e)}}),!0)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c}));var i=n(183),r=n(11),a=n(12),o=n(73),s=n(62),u=function(){function e(t,n,i,r,a,o,s,u){if(void 0===r&&(r=0),void 0===a&&(a=0),void 0===o&&(o=0),void 0===s&&(s=0),void 0===u&&(u=0),n<0||n>11||i<0||i>31||r<0||r>23||a<0||a>59||o<0||o>59||s<0||s>999)throw new Error("Date part out of range.");this.localTime=new Date(Date.UTC(t,n,i,r,a,o,s)),this.utcOffsetInMinutes=null==u?e.timeZoneConverter.findOffsetInLocal(e.timeZone,e.fromNativeDateTime(this.localTime)):u,e.throwIfDateOutOfRange(this)}return Object.defineProperty(e.prototype,"date",{get:function(){return this.localTime.getUTCDate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"month",{get:function(){return this.localTime.getUTCMonth()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"year",{get:function(){return this.localTime.getUTCFullYear()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hour",{get:function(){return this.localTime.getUTCHours()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"second",{get:function(){return this.localTime.getUTCSeconds()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minute",{get:function(){return this.localTime.getUTCMinutes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"millisecond",{get:function(){return this.localTime.getUTCMilliseconds()},enumerable:!0,configurable:!0}),Object.defineProperty(e,"timeZone",{get:function(){return o.a.Instance.timeZone},enumerable:!0,configurable:!0}),Object.defineProperty(e,"Now",{get:function(){var t=e.timeZoneConverter.convert(s.d,e.timeZone,e.generateISO8601DateTimeMsStringWithOffset(e.UTCNow));return e.parseISO8601DateTime(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"timeZoneConverter",{get:function(){return o.a.Instance.timeZoneConverter},enumerable:!0,configurable:!0}),Object.defineProperty(e,"UTCNow",{get:function(){return e.fromNativeDateTime(new Date).toUTC()},enumerable:!0,configurable:!0}),Object.defineProperty(e,"now",{get:function(){var t=e.timeZoneConverter.convert(s.d,e.timeZone,e.generateISO8601DateTimeMsStringWithOffset(e.UTCNow));return e.parseISO8601DateTime(t)},enumerable:!0,configurable:!0}),e.fromNativeDateTime=function(t){return new e(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds(),-t.getTimezoneOffset())},e.prototype.format=function(t){return i(this.localTime,e.getDateFormatMask(t),!0)},e.parseISO8601DateTime=function(t){void 0===t&&(t="");var n=e.isoRegex.exec(t);if(null==n||15!==n.length)throw new Error(Object(r.b)("Unexpected datetime format (value: {0}).",t));var i=parseInt(n[1],10),a=parseInt(n[2],10),o=parseInt(n[3],10),s=0,u=0,c=0,l=0,p=0;return null!=n[5]&&null!=n[6]&&null!=n[7]&&(s=parseInt(n[5],10),u=parseInt(n[6],10),c=parseInt(n[7],10),null!=n[9]&&(l=parseInt(n[9],10))),null!=n[10]&&"Z"!==n[10].toUpperCase()&&(p+=60*parseInt(n[13],10),p+=parseInt(n[14],10),"-"===n[12]&&(p=-p)),new e(i,a-1,o,s,u,c,l,p)},e.generateISO8601DateTimeString=function(t){return e.generateISO8601DateTimeMsString(t,!1)},e.generateISO8601DateTimeMsString=function(e,t){void 0===t&&(t=!0);var n="yyyy-MM-dd'T'HH:mm:ss"+(t?".l":"");return e.format(n)},e.generateISO8601DateTimeMsStringWithOffset=function(t){return e.generateISO8601DateTimeMsString(t)+t.getUtcOffsetDisplayString()},e.prototype.getUtcOffsetDisplayString=function(){if(0===this.utcOffsetInMinutes)return"Z";var e=Math.floor(Math.abs(this.utcOffsetInMinutes)/60),t=Math.abs(this.utcOffsetInMinutes)%60,n=this.utcOffsetInMinutes<0?"-":"+";return Object(r.b)("{0}{1}:{2}",n,l(e,2),l(t,2))},e.areDatePartsEqual=function(e,t){return null===e&&null===t||null!==e&&null!=t&&0===e.compareDatePart(t)},e.prototype.compare=function(e){return a.throwOnNullOrUndefined(e,"other"),this.localTime.getTime()-e.localTime.getTime()},e.prototype.clone=function(){var t=new e(0,0,0,0,0,0,0,0);return t.localTime.setTime(this.localTime.getTime()),t.utcOffsetInMinutes=this.utcOffsetInMinutes,t},e.prototype.addMilliseconds=function(t){e.throwIfNotNumber(t);var n=this.clone(),i=n.localTime.getTime()+t;return n.localTime.setTime(i),e.throwIfDateOutOfRange(n),n},e.prototype.Subtract=function(e){return a.throwOnNullOrUndefined(e,"value"),this.localTime.getTime()-e.localTime.getTime()},e.prototype.addSeconds=function(t){return e.throwIfNotNumber(t),this.addMilliseconds(1e3*t)},e.prototype.addMinutes=function(t){return e.throwIfNotNumber(t),this.addMilliseconds(t*s.c)},e.prototype.addHours=function(t){return e.throwIfNotNumber(t),this.addMilliseconds(t*s.b)},e.prototype.addDays=function(t){return e.throwIfNotNumber(t),this.addMilliseconds(t*s.a)},e.prototype.toUTC=function(){if(0===this.utcOffsetInMinutes)return this;var e=this.addMinutes(-this.utcOffsetInMinutes);return e.utcOffsetInMinutes=0,e},e.prototype.getNativeDateTime=function(){return new Date(this.toUTC().getUTCMilliseconds())},e.prototype.getUTCMilliseconds=function(){return this.toUTC().localTime.getTime()},e.prototype.GetMilliseconds=function(){return this.localTime.getTime()},e.prototype.compareDatePart=function(t){return e.getDatePartHashValue(this)-e.getDatePartHashValue(t)},e.throwIfNotNumber=function(e){if("number"!=typeof e)throw Error("Argument must be of type number, but is type "+typeof e)},e.throwIfDateOutOfRange=function(t){if(!e.isValidDate(t))throw new Error("The resulting DateTime is less than MinValue or greater than MaxValue")},e.isValidDate=function(e){return null!=e&&!isNaN(e.localTime.getTime())&&e.localTime.getTime()>=-864e13&&e.localTime.getTime()<=864e13},e.getDatePartHashValue=function(e){return e.date+(e.month<<5)+(e.year<<9)},e.getDateFormatMask=function(e){var t=!1;return e.replace(/[mMtT']/g,(function(e){if(t)return t="'"!==e,e;switch(e){case"'":return t=!0,e;case"m":return"M";case"M":return"m";case"t":return"T";case"T":return"t";default:return e}}))},e.isoRegex=/^(\d{4})-(\d{2})-(\d{2})(T(\d{2}):(\d{2}):(\d{2})([,\.](\d{3})\d*){0,1}){0,1}(Z|(([-\+])(\d{2}):?(\d{2}))){0,1}$/,e.MaxValue=new e(275760,8,13,0,0,0,0,0),e.MinValue=new e(-271821,3,20,0,0,0,0,0),e}();function c(e){return u.generateISO8601DateTimeMsStringWithOffset(u.fromNativeDateTime(e).toUTC())}function l(e,t){for(var n=e.toString();n.length<t;)n="0"+n;return n}},,,function(e,t,n){"use strict";var i,r,a,o,s;n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return o})),n.d(t,"d",(function(){return s})),function(e){e.ChatCoreReady="swc:core:ready",e.ChatAPIReady="swc:ready",e.ApiRecentsReady="recentsReady",e.ApiRecentsShown="recentsShown",e.ApiRecentsHidden="recentsHidden",e.ApiReceivedNotification="receivedNotification",e.ApiUnreadConversationUpdate="unreadConversationsUpdate",e.ApiHideNotification="hideNotification",e.ApiStartChat="startChat",e.ApiOnCallStart="onCallStart",e.ApiRecentItemsLoaded="recentItemsLoaded",e.ApiOnRecentItemSelected="onRecentItemSelected",e.ApiSettingsChanged="notificationSettingsChange"}(i||(i={})),function(e){e.ChatRecents="skype-recents",e.ChatWrapper="chat-wrapper"}(r||(r={})),function(e){e.Calling="calling",e.Messaging="chat",e.Recents="recents"}(a||(a={})),function(e){e.IncomingCall="swc.notification.incoming-call",e.NewMessage="swc.notification.new-message"}(o||(o={})),function(e){e.All="ALL",e.Notification="NOTIFICATION",e.Off="OFF"}(s||(s={}))},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n(11),r=n(85),a=n(42),o=n(57),s=n(8),u=function(){function e(){}return Object.defineProperty(e,"AdminInstance",{get:function(){return null==e.adminInstance?e.createAdminRequestExecutor():e.adminInstance},enumerable:!0,configurable:!0}),Object.defineProperty(e,"SuiteServiceInstance",{get:function(){return null==e.suiteSvcInstance?e.createSuiteServiceRequestExecutor():e.suiteSvcInstance},enumerable:!0,configurable:!0}),Object.defineProperty(e,"SuiteDataSharingInstance",{get:function(){return null==e.suiteDataSharingInstance?e.createSuiteDataSharingRequestExecutor():e.suiteDataSharingInstance},enumerable:!0,configurable:!0}),Object.defineProperty(e,"OauthTokenFactoryInstance",{get:function(){return null==e.tokenFactoryInstance?e.createOauthTokenFactoryRequestExecutor():e.tokenFactoryInstance},enumerable:!0,configurable:!0}),e.setAdminInstanceForTesting=function(t){s.a.isUnitTestMode&&(e.adminInstance=t)},e.setSuiteServiceInstanceForTesting=function(t){s.a.isUnitTestMode&&(e.suiteSvcInstance=t)},e.setOauthTokenFactoryInstanceForTesting=function(t){s.a.isUnitTestMode&&(e.tokenFactoryInstance=t)},e.setSuiteDataSharingInstanceForTesting=function(t){s.a.isUnitTestMode&&(e.suiteDataSharingInstance=t)},e.resetAllInstancesForTesting=function(){e.suiteDataSharingInstance=null,e.adminInstance=null,e.tokenFactoryInstance=null,e.suiteSvcInstance=null},e.createAdminRequestExecutor=function(){if(s.a.assertInitialized(),null!=s.a.Instance.configuration.AdminServiceUrl){var t=void 0;t=null!=s.a.Instance.configuration.HintUserName?Object(i.b)("{0}?upn={1}&{2}={3}&returnUrl={3}&{4}","SuiteServiceProxy.aspx",encodeURIComponent(s.a.Instance.configuration.CurrentUserUpn),e.SuiteServiceReturnUrlParam,encodeURIComponent(window.location.href),e.SuiteServiceProxyIframeApiVersion):Object(i.b)("{0}?{1}","SuiteServiceProxy.aspx",e.SuiteServiceProxyIframeApiVersion),e.adminInstance=new o.a(a.a.Portal,s.a.Instance.configuration.AdminServiceUrl,t),e.adminInstance.setBeforeSendRequestAction(r.a.onBeforeSendRequestAdmin)}return e.adminInstance},e.createOauthTokenFactoryRequestExecutor=function(){if(s.a.assertInitialized(),null!=s.a.Instance.configuration.TokenFactoryIframeOrigin){var t=Object(i.b)("{0}//{1}",window.location.protocol,window.location.host),n=Object(i.b)(e.TokenFactoryIframePath,encodeURIComponent(t),encodeURIComponent(s.a.Instance.configuration.ShellSID),encodeURIComponent(e.TokenFactoryIframeApiVersion),encodeURIComponent(s.a.Instance.configuration.ClientShellVersion));s.a.Instance.configuration.UserDisambiguationEnabled&&(n+="&upn="+encodeURIComponent(s.a.Instance.configuration.CurrentUserUpn));var r="https://consumer.suite.office.com"===s.a.Instance.configuration.TokenFactoryIframeOrigin;e.tokenFactoryInstance=new o.a(a.a.TokenFactory,s.a.Instance.configuration.TokenFactoryIframeOrigin,n,r)}return e.tokenFactoryInstance},e.createSuiteServiceRequestExecutor=function(){if(s.a.assertInitialized(),null!=s.a.Instance.suiteServiceHostPageBaseUrl&&s.a.Instance.configuration.UserHasExchangeLicense){var t=void 0;t=s.a.Instance.configuration.HintUserName?Object(i.b)("{0}?suiteServiceUserName={1}&{2}={3}&returnUrl={3}&{4}","SuiteServiceProxy.aspx",encodeURIComponent(s.a.Instance.configuration.CurrentUserUpn),e.SuiteServiceReturnUrlParam,encodeURIComponent(window.location.href),e.SuiteServiceProxyIframeApiVersion):Object(i.b)("{0}?{1}={2}&returnUrl={2}&{3}","SuiteServiceProxy.aspx",e.SuiteServiceReturnUrlParam,encodeURIComponent(window.location.href),e.SuiteServiceProxyIframeApiVersion),e.suiteSvcInstance=new o.a(a.a.OWA,s.a.Instance.suiteServiceHostPageBaseUrl,t),e.suiteSvcInstance.setBeforeSendRequestAction(r.a.onBeforeSendRequestSuiteService)}return e.suiteSvcInstance},e.createSuiteDataSharingRequestExecutor=function(){if(s.a.assertInitialized(),null!=s.a.Instance.configuration.SuiteDataSharingUrl){var t=Object(i.b)("{0}?{1}",e.UnAuthHostPagePath,e.SuiteServiceProxyIframeApiVersion);e.suiteDataSharingInstance=new o.a(a.a.DataSharing,s.a.Instance.configuration.SuiteDataSharingUrl,t)}return e.suiteDataSharingInstance},e.TokenFactoryIframePath="/iframe/TokenFactoryIframe?origin={0}&shsid={1}&apiver={2}&cshver={3}",e.TokenFactoryIframeApiVersion="oneshell",e.SuiteServiceProxyIframeApiVersion="apiver=1",e.UnAuthHostPagePath="SuiteDataSharingProxy.aspx",e.SuiteServiceReturnUrlParam="suiteServiceReturnUrl",e}()},function(e,t,n){var i=n(283);"string"==typeof i&&(i=[[e.i,i,""]]);n(25)(i,{});i.locals&&(e.exports=i.locals)},function(e,t,n){"use strict";var i=n(11),r=n(79),a=n(1),o=n(15),s=n(18),u=n(6),c=n(36),l=n(85),p=n(109),d=n(42),f=n(20),h=n(125),g=n(8),m=n(134);function y(){return function(e){var t=null;try{null!=sessionStorage&&(t=sessionStorage.getItem(e))}catch(e){}return t}("shellver")}n.d(t,"a",(function(){return v}));var v=function(){function e(t,n,i,r){if(void 0===r&&(r=!1),u.validateField(n,"url",u.StringTypeString,!0),u.isNullOrEmptyString(n))throw u.createInvalidParameterException("url");if(n.indexOf("?")>=0)throw u.createInvalidParameterException("url");"/"===n.charAt(0)&&(n=u.buildUrl(u.getCurrentWindowLocation(),n)),u.validateFullUrl(n,"url"),n.charCodeAt(n.length-1)==="/".charCodeAt(0)&&(n=n.substr(0,n.length-1)),n=n.toLowerCase(),this.url=n,u.getUrlDomainPart(n,!0)!==u.getUrlDomainPart(u.getCurrentWindowLocation(),!0)&&!r||window.IsO365ShellTestPage?this.mode=1:this.mode=0,this.formDigestHandlingEnabled=!1,this.iFrameSourceUrl=i,e.sIFrameInstanceCode[this.appWebProxyUrl]=t,window.addEventListener("unload",e.resetMessageListenerAttachedFlag)}return Object.defineProperty(e.prototype,"appWebProxyUrl",{get:function(){return u.buildUrl(this.url,this.iFrameSourceUrl)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"canExecuteNow",{get:function(){return null!==document.body||e.sWindowLoadCalled},enumerable:!0,configurable:!0}),e.prototype.executeAsync=function(e){return this.validateRequest(e,!1),this.executeValidatedRequestInternal(e)},e.prototype.executeCrossDomainRequestAsync=function(e,t){return void 0===t&&(t=!1),this.validateRequest(e,!0),this.executeValidatedRequestInternal(e,t)},e.prototype.ping=function(){return null!=e.sFramePinged&&e.sFramePinged[this.appWebProxyUrl]},e.prototype.registerOpxHost=function(){this.executeOrQueueCrossDomainRequest(f.a.RegisterOpxHost,{})},e.prototype.executeOpxRequest=function(e){var t={requestObject:e};this.executeOrQueueCrossDomainRequest(f.a.OutgoingOpxMessage,t)},e.prototype.executeStorageRequest=function(t){if(1===this.mode)this.executeOrQueueCrossDomainRequest(f.a.Storage,t);else if(0===this.mode)try{var n=t.requestObject,i=function(n){var i={responseObject:n};e.fireDataWatchSentCallback(t),null!=t.success&&t.success(i),e.fireDataWatchReceivedCallbackGivenResponseInfo(t,i,0,"")};1===n.RequestType?p.a.processSuiteDataSharingRequest(n,i):p.a.processRequest(n,i)}catch(n){null!=t.error&&t.error({},0,n.message),e.fireDataWatchReceivedCallbackGivenResponseInfo(t,{},n.errorCode||0,n.message)}},e.prototype.executeIdentityProviderRequest=function(e){1===this.mode&&this.executeOrQueueCrossDomainRequest(f.a.UserState,e)},e.prototype.executeSignalRRequest=function(e){this.validateRequest(e,!1),e.timeout=0,this.executeOrQueueCrossDomainRequest(f.a.SignalR,e)},e.prototype.setBeforeSendRequestAction=function(e){this.beforeSendRequest=e},e.prototype.prefetchOAuthAccessToken=function(e){var t=this;g.a.Instance.configuration.IsPwa?m.a.getToken(e).catch((function(n){1===n.responseType&&t.executeOrQueueCrossDomainRequest(f.a.TokenPrefetch,e)})):this.executeOrQueueCrossDomainRequest(f.a.TokenPrefetch,e)},e.prototype.getOwaUserConfiguration=function(e){this.executeOrQueueCrossDomainRequest(f.a.OwaUserConfig,e)},e.internalProcessIFrameRequestTimeoutCallback=function(t){if(null!==e.sPostMessageIdToRequestInfoMap){var n=e.sPostMessageIdToRequestInfoMap[t];null!=n&&(e.isCurrentSiteInTrustOrLocalZone()&&Object(a.e)().tag("RequestExecutor_IFrameLoadError",4,-1007,s.m),e.sPostMessageIdToRequestInfoMap[t]=null,delete e.sPostMessageIdToRequestInfoMap[t],u.reportSimpleError(n.requestInfo,-1001,s.j,"IFrameRequest"),Object(a.e)().serverRequest(n.command,n.requestInfo.method,e.sIFrameInstanceCode[n.appWebProxyUrl].toString(),n.requestInfo.url,-1001),e.fireDataWatchReceivedCallbackGivenResponseInfo(n.requestInfo,null,-1001,s.j))}},e.prototype.validateRequest=function(e,t){if(u.validateRequestInfo(e),u.isFullUrl(e.url)){if(!t&&u.getUrlDomainPart(e.url,!0).toLowerCase()!==u.getUrlDomainPart(this.url,!0))throw u.createInvalidParameterException("requestInfo.url")}else e.url=u.buildUrl(this.url,e.url);(e.binaryStringRequestBody||e.binaryStringResponseBody)&&u.checkBrowserBinaryDataSupport()},e.prototype.executeValidatedRequestInternal=function(e,t){return void 0===t&&(t=!1),t?this.executeQueryDirect(e):1===this.mode?this.executeOrQueueCrossDomainRequest(f.a.Query,e):this.executeQueryDirect(e),e.postMessageId},e.prototype.executeQueryDirect=function(t){var n=this,i=u.buildUrl(this.url,"_api/contextinfo");i=u.encodeUrlForXmlHttpRequest(i),e.ensureFormDigest(this.url,i,this.formDigestHandlingEnabled,t,(function(e,t){return n.executeQueryUsingXMLHttpRequest(e,t)}))},e.ensureFormDigest=function(t,n,r,o,c){t=t.toLowerCase();var l=new Date;if(!r||"GET"===o.method.toUpperCase()||null!=e.sFormDigestExpirationCache[t]&&e.sFormDigestExpirationCache[t]>l.getTime())c(e.sFormDigestValueCache[t],o);else{var p=u.getXMLHttpRequest();p.open("POST",n),p.setRequestHeader("accept","application/json;odata=verbose");var d=Date.now(),h=0;o.timeout>0&&(h=window.setTimeout((function(){p.onreadystatechange=function(){};try{p.abort()}catch(e){}u.reportSimpleError(o,-1001,s.j,"ensureFormDigest"),Object(a.e)().serverRequest(f.a.Query,o.method,null,o.url,-1001,o.isTokenGeneratedFromWorkload)}),o.timeout)),p.onreadystatechange=function(){if(4===p.readyState){var n=Date.now()-d;if(0!==h&&window.clearTimeout(h),p.onreadystatechange=function(){},200!==p.status||null===p.getResponseHeader("content-type")||p.getResponseHeader("content-type").toLowerCase().indexOf("application/json")<0){var r=Object(i.b)(s.l,p.status.toString(),p.getResponseHeader("content-type"));u.reportSimpleError(o,-1002,r),Object(a.e)().tag("RequestExecutor_UnexpectedResponse",6,-1002,p.status.toString(),p.getResponseHeader("content-type")),Object(a.e)().serverRequest(f.a.Query,o.method,null,o.url,-1002,o.isTokenGeneratedFromWorkload,n,u.getXMLHttpResponseLength(p))}else{var l=JSON.parse(p.responseText);if(null!=l){var g=l.d.GetContextWebInformation.FormDigestValue,m=l.d.GetContextWebInformation.FormDigestTimeoutSeconds,y=(new Date).getTime()+750*m;e.sFormDigestValueCache[t]=g,e.sFormDigestExpirationCache[t]=y,c(g,o),Object(a.e)().serverRequest(f.a.Query,o.method,null,o.url,p.status,o.isTokenGeneratedFromWorkload,n,u.getXMLHttpResponseLength(p))}else u.reportSimpleError(o,-1002,s.i),Object(a.e)().tag("RequestExecutor_UnableToParseJson",6,-1002,s.i,p.status.toString(),p.responseText),Object(a.e)().serverRequest(f.a.Query,o.method,null,o.url,-1002,o.isTokenGeneratedFromWorkload,n,u.getXMLHttpResponseLength(p))}}},p.send("")}},e.prototype.executeOrQueueCrossDomainRequest=function(t,n){e.sMessageListenerAttached=!!e.sMessageListenerAttached||u.ensureAttachMessageListener(e.internalOnMessage),e.fireDataWatchSentCallback(n),n.postMessageId=e.getPostMessageId(),this.canExecuteNow?this.executeCommandByIFrame(t,this.appWebProxyUrl,n):e.addToRequestExecutorQueue(this,n)},e.prototype.executeCommandByIFrame=function(t,n,i){var r={command:t,postMessageId:i.postMessageId,appWebProxyUrl:n,requestInfo:i,timeoutId:null},a=e.sPendingRequestInfo[n];null==a&&(a=[],e.sPendingRequestInfo[n]=a),e.sPostMessageIdToRequestInfoMap[r.postMessageId]=r,r.requestInfo.timeout>0&&(r.timeoutId=window.setTimeout((function(){return e.internalProcessIFrameRequestTimeoutCallback(r.postMessageId)}),r.requestInfo.timeout));var o=u.getFrameElement(e.sIFrameInstanceCode[n]);null!=o?e.sFrameLoaded[n]&&e.sFramePinged[n]?e.sendPostMessage(r):a.push(r):(a.push(r),o=e.createIFrame(n))},e.createIFrame=function(t){var n=e.sIFrameInstanceCode[t],i=u.getFrameID(n);switch(n){case d.a.OWA:Object(a.e)().perfMarker("OwaIframeLoadStarted");break;case d.a.Portal:Object(a.e)().perfMarker("PortalIframeLoadStarted");break;case d.a.TokenFactory:Object(a.e)().perfMarker("TokenFactoryIframeLoadStarted")}var r=document.createElement("iframe");r.src=t,r.id=i,r.name=i,r.style.display="none",r.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms");r.addEventListener("load",(function(){e.internalProcessIFrameOnload(t)})),document.body.appendChild(r);var o=window.setTimeout((function(){delete e.sFrameLoadTimeoutId[t],e.processPingTimeoutOrIFrameLoadTimeout(t)}),this.IFrameLoadTimeout);return e.sFrameLoadTimeoutId[t]=o,r},e.prototype.executeQueryUsingXMLHttpRequest=function(t,n){var i=u.getXMLHttpRequest(),r=u.encodeUrlForXmlHttpRequest(n.url);i.open(n.method,r);var o=!1;if(null!=n.headers)for(var c=0,p=Object.keys(n.headers);c<p.length;c++){var d=p[c];null!=d&&(i.setRequestHeader(d,n.headers[d]),"x-requestdigest"===d.toLowerCase()&&(o=!0))}o||null==t||i.setRequestHeader("X-RequestDigest",t),n.binaryStringResponseBody&&(i.responseType="arraybuffer");var h=0;n.timeout>0&&(h=window.setTimeout((function(){return e.internalProcessXMLHttpRequestTimeoutCallback(i,n)}),n.timeout)),i.onreadystatechange=function(){return e.internalProcessXMLHttpRequestOnreadystatechange(i,n,h)};var g=n.body;if(n.binaryStringRequestBody&&(g=u.convertBinaryStringToXmlHttpRequestBody(n.body)),null!=this.beforeSendRequest&&this.beforeSendRequest(i,null,null),!l.a.isAllowedApi(r))return u.reportSimpleError(n,-1009,s.a),void Object(a.e)().serverRequest(f.a.Query,n.method,null,r,-1009);e.fireDataWatchSentCallback(n),n.requestSentTime=Date.now(),i.send(g)},e.sendPostMessage=function(t){u.validateField(t.postMessageId,"requestInfo.postMessageId",u.StringTypeString,!0),u.validateField(t.appWebProxyUrl,"requestInfo.appWebProxyUrl",u.StringTypeString,!0);var n=u.getFrameElement(e.sIFrameInstanceCode[t.appWebProxyUrl]);if(null==n)throw Object(a.e)().tag("RequestExecutor_IFrameNull",6,-2002,s.e,t.appWebProxyUrl),new o.b(s.e,-2002);null==e.sPostMessageIdToRequestInfoMap&&(e.sPostMessageIdToRequestInfoMap={}),e.sPostMessageIdToRequestInfoMap[t.postMessageId]=t;var i={command:t.command,url:t.requestInfo.url,resource:t.requestInfo.resource,method:t.requestInfo.method,body:t.requestInfo.body,headers:t.requestInfo.headers,postMessageId:t.postMessageId,timeout:t.requestInfo.timeout,binaryStringRequestBody:t.requestInfo.binaryStringRequestBody,binaryStringResponseBody:t.requestInfo.binaryStringResponseBody,requestObject:t.requestInfo.requestObject,getPerformanceTrace:t.requestInfo.getPerformanceTrace},r=JSON.stringify(i),c=t.appWebProxyUrl;t.requestInfo.requestSentTime=Date.now(),g.a.isUnitTestMode||n.contentWindow.postMessage(r,c)},e.getPostMessageId=function(){return e.sPostMessageIdCount++,u.PostMessageIdPrefix+e.sPostMessageIdCount.toString()},e.internalProcessWindowLoad=function(){e.sWindowLoadCalled=!0;var t=e.sRequestExecutorQueue;e.sRequestExecutorQueue=null;var n=e.sRequestExecutorParameterQueue;if(e.sRequestExecutorParameterQueue=null,null!==t)for(var i=0;i<t.length;i++)t[i].executeAsync(n[i])},e.resetMessageListenerAttachedFlag=function(){e.sMessageListenerAttached=!1},e.internalProcessIFrameOnload=function(t){e.sFrameLoaded[t]=!0,null!=e.sFrameLoadTimeoutId[t]&&(window.clearTimeout(e.sFrameLoadTimeoutId[t]),delete e.sFrameLoadTimeoutId[t]),u.ensureAttachMessageListener(e.internalOnMessage),null!=e.sFramePingTimeoutId[t]&&(window.clearTimeout(e.sFramePingTimeoutId[t]),delete e.sFramePingTimeoutId[t]);var n={requestObject:{upn:g.a.Instance.configuration.CurrentUserUpn,puid:g.a.Instance.configuration.CurrentUserPuid,shellConfig:{enableOpx:g.a.Instance.configuration.OpxEnabled}}},i=y();i&&window.O365ShellBootInfo&&(n.requestObject.overrideRequest=u.buildIframeResourceData(i,window.O365ShellBootInfo));var r={command:f.a.Ping,postMessageId:e.getPostMessageId(),appWebProxyUrl:t,timeoutId:-1,requestInfo:n};e.sPostMessageIdToRequestInfoMap[r.postMessageId]=r;var a=window.setTimeout((function(){delete e.sFrameLoadTimeoutId[t],e.processPingTimeout(r.postMessageId,t)}),e.IFramePingTimeout);r.timeoutId=a,g.a.isUnitTestMode||(e.sFramePingTimeoutId[t]=a),e.sendPostMessage(r)},e.internalOnMessage=function(t){if(null!=t){var n=t.origin,i=t.data;if(null!=n&&""!==n&&null!=i&&""!==i)try{var r=JSON.parse(i);e.isPostMessageResponseInfo(r)&&e.onResponseMessageReceived(n,r)}catch(t){}}},e.isPostMessageResponseInfo=function(e){var t=e;return null!=t.postMessageId&&null!=t.command},e.onResponseMessageReceived=function(t,n){var i=Date.now();if(null!=e.sPostMessageIdToRequestInfoMap&&null!=n.postMessageId){var r=e.sPostMessageIdToRequestInfoMap[n.postMessageId];if(null!=r){var o=u.getUrlDomainPart(t,!0),s=u.getUrlDomainPart(r.appWebProxyUrl,!0);if(o.toLowerCase()===s.toLowerCase()){var c=n.postMessageId,l=i-r.requestInfo.requestSentTime,p=n.command===f.a.Query&&0===n.errorCode&&3===n.readyState,d=n.command===f.a.Notification&&null==n.errorMessage;if(p||d||(delete e.sPostMessageIdToRequestInfoMap[c],null!=r.timeoutId&&(window.clearTimeout(r.timeoutId),r.timeoutId=0,delete r.timeoutId)),n.command===f.a.Ping)e.processPingMessage(r.appWebProxyUrl,n),e.fireDataWatchReceivedCallbackGivenPostMessageResponseInfo(r.requestInfo,n),Object(a.e)().serverRequest(r.command,r.requestInfo.method,e.sIFrameInstanceCode[r.appWebProxyUrl].toString(),u.getUrlDomainPart(r.appWebProxyUrl),0===n.errorCode?200:n.errorCode,r.requestInfo.isTokenGeneratedFromWorkload,l,n.responseText?n.responseText.length:0);else if(n.command===f.a.Query){var h={responseAvailable:n.responseAvailable,body:n.responseText||"",statusCode:n.statusCode,statusText:n.statusText,contentType:n.contentType,state:r.requestInfo.state,allResponseHeaders:n.allResponseHeaders,headers:u.parseResponseHeaders(n.allResponseHeaders),binaryStringResponseBody:n.binaryStringResponseBody},g=0,m=null;0!==n.errorCode?(g=n.errorCode,m=n.errorMessage):n.statusCode>=200&&n.statusCode<300||1223===n.statusCode||(g=-1003,m=n.statusCode),0===g?4===n.readyState?(h.performanceTrace=n.performanceTrace,null!=r.requestInfo.success&&r.requestInfo.success(h),e.fireDataWatchReceivedCallbackGivenResponseInfo(r.requestInfo,h,0,null),Object(a.e)().serverRequest(r.command,r.requestInfo.method,e.sIFrameInstanceCode[r.appWebProxyUrl].toString(),r.requestInfo.url,n.statusCode,r.requestInfo.isTokenGeneratedFromWorkload,l,n.responseText?n.responseText.length:0)):3===n.readyState&&null!=r.requestInfo.loading&&r.requestInfo.loading(h):4!==n.readyState&&0!==n.readyState&&null!=n.readyState||(h.performanceTrace=n.performanceTrace,null!=r.requestInfo.error&&r.requestInfo.error(h,g,m),Object(a.e)().tag("RequestExecutor_IFrameError",4,g,m),e.fireDataWatchReceivedCallbackGivenResponseInfo(r.requestInfo,h,g,m),Object(a.e)().serverRequest(r.command,r.requestInfo.method,e.sIFrameInstanceCode[r.appWebProxyUrl].toString(),r.requestInfo.url,g,r.requestInfo.isTokenGeneratedFromWorkload,l,n.responseText?n.responseText.length:0))}else if(n.command===f.a.Storage||n.command===f.a.TokenPrefetch||n.command===f.a.OwaUserConfig){h={responseObject:n.responseObject},g=n.errorCode,m=n.errorMessage;0===g&&u.isNullOrEmptyString(m)?(null!=r.requestInfo.success&&r.requestInfo.success(h),e.fireDataWatchReceivedCallbackGivenResponseInfo(r.requestInfo,h,0,null)):(null!=r.requestInfo.error&&r.requestInfo.error(h,g,m),e.fireDataWatchReceivedCallbackGivenResponseInfo(r.requestInfo,h,g,m)),Object(a.e)().serverRequest(r.command,r.requestInfo.method,e.sIFrameInstanceCode[r.appWebProxyUrl].toString(),r.requestInfo.url,0!==g?g:200,r.requestInfo.isTokenGeneratedFromWorkload,l,n.responseText?n.responseText.length:0)}else n.command===f.a.Notification&&(0!==n.errorCode&&null!=r.requestInfo.error&&r.requestInfo.error({responseObject:n.responseObject},n.errorCode,n.errorMessage),e.NotificationCallback(JSON.stringify(n.responseObject)),e.fireDataWatchReceivedCallbackGivenPostMessageResponseInfo(r.requestInfo,n))}}}},e.internalProcessXMLHttpRequestTimeoutCallback=function(t,n){t.onreadystatechange=function(){};try{t.abort()}catch(e){}u.reportSimpleError(n,-1001,s.j,"XMLHttpRequest"),Object(a.e)().serverRequest(f.a.Query,n.method,null,n.url,-1001),e.fireDataWatchReceivedCallbackGivenResponseInfo(n,null,-1001,s.j)},e.internalProcessXMLHttpRequestOnreadystatechange=function(t,n,i){if(4===t.readyState){var r=Date.now();0!==i&&window.clearTimeout(i),t.onreadystatechange=function(){};var o={state:n.state,responseAvailable:!0,body:n.binaryStringResponseBody?u.convertArrayBufferToBinaryString(t.response):t.responseText,statusCode:t.status,statusText:t.statusText,contentType:t.getResponseHeader("content-type"),allResponseHeaders:t.getAllResponseHeaders(),headers:u.parseResponseHeaders(t.getAllResponseHeaders()),performanceTrace:null},s=r-n.requestSentTime;if(n.getPerformanceTrace){var c=performance.getEntriesByName(n.url);null!=c&&c.length>0&&(o.performanceTrace=c[0])}t.status>=200&&t.status<300||1223===t.status?(null!=n.success&&n.success(o),e.fireDataWatchReceivedCallbackGivenResponseInfo(n,o,0,null),Object(a.e)().serverRequest(f.a.Query,n.method,null,n.url,o.statusCode,n.isTokenGeneratedFromWorkload,s,u.getXMLHttpResponseLength(t))):(null!=n.error&&n.error(o,-1003,t.statusText),e.fireDataWatchReceivedCallbackGivenResponseInfo(n,o,-1003,t.statusText),Object(a.e)().serverRequest(f.a.Query,n.method,null,n.url,t.status,n.isTokenGeneratedFromWorkload,s,u.getXMLHttpResponseLength(t)))}},e.isCurrentSiteInTrustOrLocalZone=function(){if(!e.isTrustedSiteEvaluated){if(r.isBrowserIE()){var t=window.status,n=window.status+(new Date).getTime();window.status=n,e.isTrustedSite=window.status===n,window.status=t}e.isTrustedSiteEvaluated=!0}return e.isTrustedSite},e.processPingTimeout=function(t,n){null==e.sPostMessageIdToRequestInfoMap[t]&&(e.sFramePinged[n]||(Object(a.e)().tag("PingTimeout",0,e.sIFrameInstanceCode[n].toString()),e.sPostMessageIdToRequestInfoMap[t]=null,delete e.sPostMessageIdToRequestInfoMap[t],e.processPingTimeoutOrIFrameLoadTimeout(n)))},e.processPingTimeoutOrIFrameLoadTimeout=function(t){switch(e.sIFrameInstanceCode[t]){case d.a.OWA:Object(a.e)().perfMarker("OwaIframeLoadFailed");break;case d.a.Portal:Object(a.e)().perfMarker("PortalIframeLoadFailed");break;case d.a.TokenFactory:Object(a.e)().perfMarker("TokenFactoryIframeLoadFailed")}var n=u.getUrlDomainPart(t,!0);if(n.toLowerCase()===u.getUrlDomainPart(g.a.Instance.configuration.SuiteServiceUrl,!0)){var r=e.isCurrentSiteInTrustOrLocalZone()?c.a.SecurityZoneMismatched:c.a.IframeLoadError;h.a.Instance.blockSuiteServiceCalls(r,n)}var o=Object(i.b)(s.d,n);e.reportFrameLoadError(t,o)},e.reportFrameLoadError=function(t,n,i){void 0===i&&(i=-1007),e.sFrameLoadError[t]=!0;var r=e.sPendingRequestInfo[t];e.sPendingRequestInfo[t]=[];var o=!1;if(o=e.isTrustedSiteEvaluated?e.isTrustedSite:e.isCurrentSiteInTrustOrLocalZone(),Object(a.e)().tag("RequestExecutor_IFrameLoadError",4,i,n,"isTrustedSite: "+o),null!=e.sFrameLoadTimeoutId[t]&&(window.clearTimeout(e.sFrameLoadTimeoutId[t]),delete e.sFrameLoadTimeoutId[t]),e.removeIFrame(t),null!=r)for(var s=0,c=r;s<c.length;s++){var l=c[s],p=l.postMessageId;null!=e.sPostMessageIdToRequestInfoMap[p]&&(e.sPostMessageIdToRequestInfoMap[p]=null,delete e.sPostMessageIdToRequestInfoMap[p],null!=l.timeoutId&&window.clearTimeout(l.timeoutId),u.reportSimpleError(l.requestInfo,i,n),Object(a.e)().serverRequest(l.command,l.requestInfo.method,e.sIFrameInstanceCode[t].toString(),l.requestInfo.url,-1007))}},e.removeIFrame=function(t){var n=u.getFrameElement(e.sIFrameInstanceCode[t]);null!=n&&null!=n.parentNode&&n.parentNode.removeChild(n),null!=e.sPendingRequestInfo&&delete e.sPendingRequestInfo[t],null!=e.sFrameLoadTimeoutId&&delete e.sFrameLoadTimeoutId[t],null!=e.sFrameLoaded&&delete e.sFrameLoaded[t],null!=e.sFramePinged&&delete e.sFramePinged[t],null!=e.sFramePingTimeoutId&&delete e.sFramePingTimeoutId[t],null!=e.sFrameLoadError&&delete e.sFrameLoadError[t]},e.processPingMessage=function(t,n){switch(e.sIFrameInstanceCode[t]){case d.a.OWA:Object(a.e)().perfMarker("OwaIframeLoadCompleted");break;case d.a.Portal:Object(a.e)().perfMarker("PortalIframeLoadCompleted");break;case d.a.TokenFactory:Object(a.e)().perfMarker("TokenFactoryIframeLoadCompleted")}if(n.errorCode&&0!==n.errorCode)e.reportFrameLoadError(t,n.errorMessage,n.errorCode);else{e.sFramePinged[t]=!0;var i=e.sPendingRequestInfo[t];if(null!=i){e.sPendingRequestInfo[t]=[];for(var r=0,o=i;r<o.length;r++){var s=o[r];null!=e.sPostMessageIdToRequestInfoMap[s.postMessageId]&&e.sendPostMessage(s)}}}},e.addToRequestExecutorQueue=function(t,n){null===e.sRequestExecutorQueue&&(e.sRequestExecutorQueue=[]),null===e.sRequestExecutorParameterQueue&&(e.sRequestExecutorParameterQueue=[]),e.sRequestExecutorQueue.push(t),e.sRequestExecutorParameterQueue.push(n)},e.fireDataWatchSentCallback=function(t){null!==e.DataWatchSentCallback&&(e.DataWatchRequestId++,t.dataRequestId=e.DataWatchRequestId,e.DataWatchSentCallback(e.DataWatchRequestId,t))},e.fireDataWatchReceivedCallbackGivenPostMessageResponseInfo=function(t,n){if(null!=e.DataWatchReceivedCallback){var i={body:n.responseText,responseAvailable:n.responseAvailable,statusCode:n.statusCode,statusText:n.statusText,contentType:n.contentType,allResponseHeaders:n.allResponseHeaders,headers:u.parseResponseHeaders(n.allResponseHeaders),binaryStringResponseBody:n.binaryStringResponseBody,responseObject:n.responseObject,state:t.state,performanceTrace:n.performanceTrace};e.fireDataWatchReceivedCallbackGivenResponseInfo(t,i,n.errorCode,n.errorMessage)}},e.fireDataWatchReceivedCallbackGivenResponseInfo=function(t,n,i,r){null!==e.DataWatchReceivedCallback&&null!=t.dataRequestId&&e.DataWatchReceivedCallback(t.dataRequestId,n,i,r)},e.DefaultTimeout=6e4,e.IFrameLoadTimeout=15e3,e.IFramePingTimeout=1e4,e.sPendingRequestInfo={},e.sFrameLoaded={},e.sFramePinged={},e.sFramePingTimeoutId={},e.sFrameLoadTimeoutId={},e.sFrameLoadError={},e.sPostMessageIdToRequestInfoMap={},e.sIFrameInstanceCode={},e.sFormDigestValueCache={},e.sFormDigestExpirationCache={},e.sPostMessageIdCount=0,e.sWindowLoadCalled=!1,e.sRequestExecutorQueue=[],e.sRequestExecutorParameterQueue=[],e.DataWatchSentCallback=null,e.DataWatchRequestId=0,e.DataWatchReceivedCallback=null,e}()},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Unspecified=0]="Unspecified",e[e.String=1]="String",e[e.Int64=2]="Int64",e[e.Double=3]="Double",e[e.Boolean=4]="Boolean",e[e.Date=5]="Date"}(t.AWTPropertyType||(t.AWTPropertyType={})),function(e){e[e.NotSet=0]="NotSet",e[e.DistinguishedName=1]="DistinguishedName",e[e.GenericData=2]="GenericData",e[e.IPV4Address=3]="IPV4Address",e[e.IPv6Address=4]="IPv6Address",e[e.MailSubject=5]="MailSubject",e[e.PhoneNumber=6]="PhoneNumber",e[e.QueryString=7]="QueryString",e[e.SipAddress=8]="SipAddress",e[e.SmtpAddress=9]="SmtpAddress",e[e.Identity=10]="Identity",e[e.Uri=11]="Uri",e[e.Fqdn=12]="Fqdn",e[e.IPV4AddressLegacy=13]="IPV4AddressLegacy"}(t.AWTPiiKind||(t.AWTPiiKind={})),function(e){e[e.NotSet=0]="NotSet",e[e.GenericContent=1]="GenericContent"}(t.AWTCustomerContentKind||(t.AWTCustomerContentKind={})),function(e){e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Immediate_sync=5]="Immediate_sync"}(t.AWTEventPriority||(t.AWTEventPriority={})),function(e){e[e.NonRetryableStatus=1]="NonRetryableStatus",e[e.QueueFull=3]="QueueFull",e[e.MaxRetryLimit=4]="MaxRetryLimit"}(t.AWTEventsDroppedReason||(t.AWTEventsDroppedReason={})),function(e){e[e.InvalidEvent=1]="InvalidEvent",e[e.SizeLimitExceeded=2]="SizeLimitExceeded",e[e.KillSwitch=3]="KillSwitch"}(t.AWTEventsRejectedReason||(t.AWTEventsRejectedReason={}))},,function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return o}));var i=6e4,r=60*i,a=24*r,o="UTC"},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var i=n(4);function r(e){return new i.a("Argument Exception: "+e,-2001)}function a(e){return new i.a("Invalid Operation: "+e,-2002)}},,,,function(e,t,n){"use strict";var i=n(0),r=n(4),a=n(34),o=n(63),s=r.f.SuiteServiceApiRelativePath+"AppDataCache",u=function(){function e(e){this.suiteApi=e}return e.prototype.readAppDataCache=function(e){var t=this;return new Promise((function(n,i){var a=s+"/User/?collectorIds="+e.map((function(e){return encodeURIComponent(e)})).join();t.suiteApi.Service.callO365SuiteServiceAction(a,null,r.b.GET).then((function(e){n(e)})).catch((function(e){r.i.genericServiceRejection("ReadAppDataCache",6,e,i)}))}))},e}(),c=n(12),l=function(){function e(e,t,n){this.Scope=e,this.Namespace=t,this.Name=n,Object(c.throwOnNullOrEmpty)(e,"keyScope"),Object(c.throwOnNullOrEmpty)(t,"keyNamespace"),Object(c.throwOnNullOrEmpty)(n,"keyName")}return e.prototype.toString=function(){return this.Scope+r.k.DictionaryStringPartsSeparator+this.Namespace+r.k.DictionaryStringPartsSeparator+this.Name},e.fromDictionaryKey=function(t){Object(c.throwOnNullOrEmpty)(t,"keyString");var n=t.split(r.k.DictionaryStringPartsSeparator);if(n.length<3)throw Object(o.b)("Malformed keyString: Expected format <Scope>//<Namespace>//<Name>");return new e(n[0],n[1],n[2])},e}(),p=function(e,t){this.Key=e,this.Value=t,Object(c.throwOnNull)(e,"key"),Object(c.throwOnNull)(t,"value")},d=function(){function e(e){void 0===e&&(e={}),this.values=e}return e.fromStorageSessionResponseData=function(t){c.throwOnNullOrUndefined(t,"data");for(var n=new e({}),i=0,r=Object.keys(t.Reads);i<r.length;i++){var a=r[i],o=new p(l.fromDictionaryKey(a),JSON.parse(t.Reads[a]));n.values[o.Key.toString()]=o.Value}return n},e.fromStorageServerResponseData=function(t){c.throwOnNullOrUndefined(t,"data");for(var n=new e({}),i=0,r=t.Settings;i<r.length;i++){var a=r[i],o=new p(a.Key,JSON.parse(a.Value));n.values[o.Key.toString()]=o.Value}return n},e.prototype.hasKey=function(e){return c.throwOnNullOrUndefined(e,"key"),e.toString()in this.values},e.prototype.value=function(e){if(c.throwOnNullOrUndefined(e,"key"),!(e.toString()in this.values))throw new r.a("Key value missing.",-2002);return this.values[e.toString()]},e.prototype.getStorageKeyValues=function(){var e=this;return Object.keys(this.values).map((function(t){return e.values[t]}))},e}(),f=r.f.SuiteServiceApiRelativePath+"AppLauncherCustomization",h=function(){function e(e){this.suiteApi=e}return e.prototype.readAppLauncherSettings=function(e){var t=this;return new Promise((function(n,i){Object(c.throwOnNull)(e,"mailBox");var a=f+"/"+encodeURIComponent(e);t.suiteApi.Service.callO365SuiteServiceAction(a,null,r.b.GET).then((function(e){n(d.fromStorageServerResponseData(e.Body))})).catch((function(e){r.i.genericServiceRejection("ReadAppLauncherSettings",6,e,i)}))}))},e.prototype.writeAppLauncherSettings=function(e,t,n){var i=this;return Object(c.throwOnNull)(e,"mailBox"),Object(c.throwOnNull)(t,"settingName"),Object(c.throwOnNull)(n,"settingValue"),new Promise((function(a,o){var s=f+"/"+encodeURIComponent(e)+"/"+encodeURIComponent(t);i.suiteApi.Service.callO365SuiteServiceAction(s,n,r.b.PUT).then((function(e){a(d.fromStorageServerResponseData(e.Body))})).catch((function(e){r.i.genericServiceRejection("WriteAppLauncherSettings",6,e,o)}))}))},e}(),g=r.f.SuiteServiceApiRelativePath+"NotificationsSettings/User",m=function(){function e(e){this.suiteApi=e}return e.prototype.readNotificationSettings=function(){var e=this;return new Promise((function(t,n){e.suiteApi.Service.callO365SuiteServiceAction(g,null,r.b.GET).then((function(e){t(e)})).catch((function(e){r.i.genericServiceRejection("ReadNotificationSettings",6,e,n)}))}))},e.prototype.writeNotificationSettings=function(e){var t=this;return new Promise((function(n,i){if(null==e)throw Object(o.a)("settingValue");t.suiteApi.Service.callO365SuiteServiceAction(g,e,r.b.PUT).then((function(){n()})).catch((function(e){r.i.genericServiceRejection("WriteNotificationSettings",6,e,i)}))}))},e}(),y=function(){function e(e){this.suiteApi=e,this.createMappingList()}return e.prototype.readSettings=function(e,t,n){var i=this;return Object(c.throwOnNull)(e,"feature"),Object(c.throwOnNull)(t,"mailBox"),Object(c.throwOnNull)(n,"settingName"),Object(c.throwOnNullOrUndefined)(this.featureToResourceMappingList[e],"featureToResourceMapping"),new Promise((function(a,o){var s=r.f.SuiteServiceApiRelativePath+"/"+i.featureToResourceMappingList[e]+"/"+encodeURIComponent(t)+"/"+encodeURIComponent(n);i.suiteApi.Service.callO365SuiteServiceAction(s,null,r.b.GET).then((function(e){a(d.fromStorageServerResponseData(e.Body))})).catch((function(e){r.i.genericServiceRejection("ReadSettings",6,e,o)}))}))},e.prototype.writeSettings=function(e,t,n,i){var a=this;return Object(c.throwOnNull)(e,"feature"),Object(c.throwOnNull)(t,"mailBox"),Object(c.throwOnNull)(n,"settingName"),Object(c.throwOnNull)(i,"settingValue"),Object(c.throwOnNullOrUndefined)(this.featureToResourceMappingList[e],"featureToResourceMapping"),new Promise((function(o,s){var u=r.f.SuiteServiceApiRelativePath+"/"+a.featureToResourceMappingList[e]+"/"+encodeURIComponent(t)+"/"+encodeURIComponent(n);a.suiteApi.Service.callO365SuiteServiceAction(u,i,r.b.PUT).then((function(e){o(d.fromStorageServerResponseData(e.Body))})).catch((function(e){r.i.genericServiceRejection("WriteSettings",6,e,s)}))}))},e.prototype.createMappingList=function(){this.featureToResourceMappingList={NFD:"NFDSettings",GallatinAlert:"GallatinAlertSettings",AdminPortalSettings:"O365SettingsStorage/AdminPortalSettings"}},e}(),v=function(e){function t(t,n){var i=e.call(this,t)||this;return i.Header=t,i.Body=n,i}return Object(i.__extends)(t,e),t}((function(e){this.Header=e})),S=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Object(i.__extends)(t,e)}((function(){})),"Cannot remove a key needed for read or write."),b=function(){function e(e,t,n,i,r){var a=this;void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===n&&(n=[]),void 0===i&&(i={}),void 0===r&&(r=[]),this.clear=e,this.clearAll=t,this.writes=i,this.reads={},this.removes={},n.forEach((function(e){return a.reads[e.toString()]=e})),r.forEach((function(e){return a.removes[e.toString()]=e}))}return e.prototype.getReadStorageKeys=function(){var e=this;return Object.keys(this.reads).map((function(t){return e.reads[t]}))},e.prototype.getWriteStorageKeyValues=function(){var e=this;return Object.keys(this.writes).map((function(t){return e.writes[t]}))},e.prototype.getRemoveStorageKeys=function(){var e=this;return Object.keys(this.removes).map((function(t){return e.removes[t]}))},e.prototype.requestRead=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];Object(c.throwOnNullOrEmptyArray)(e,"keys");for(var n=0,i=e;n<i.length;n++){var a=i[n];if(Object(c.throwOnNull)(a,"key"),this.isRemoveRequested(a))throw new r.a(S,-2002);this.reads[a.toString()]=a}},e.prototype.requestWrite=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Object(c.throwOnUndefined)(e,"value"),Object(c.throwOnNullOrEmptyArray)(t,"keys");for(var i=0,a=t;i<a.length;i++){var o=a[i];if(Object(c.throwOnNull)(o,"key"),this.isRemoveRequested(o))throw new r.a(S,-2002);this.writes[o.toString()]=new p(o,e)}},e.prototype.requestRemove=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];Object(c.throwOnNullOrEmptyArray)(e,"keys");for(var n=0,i=e;n<i.length;n++){var a=i[n];if(Object(c.throwOnNull)(a,"key"),a.toString()in this.reads||a.toString()in this.writes)throw new r.a(S,-2002);this.removes[a.toString()]=a}},e.prototype.requestClear=function(){this.clear=!0},e.prototype.requestClearAll=function(){this.clearAll=!0},e.prototype.combine=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];Object(c.throwOnNullOrEmptyArray)(t,"requests");for(var i=new e(this.clear,this.clearAll),r=0,a=t.concat(this);r<a.length;r++){var o=a[r];o.getReadStorageKeys().length&&i.requestRead.apply(i,o.getReadStorageKeys());for(var s=0,u=Object.keys(o.writes);s<u.length;s++){var l=u[s];i.requestWrite(o.writes[l].Value,o.writes[l].Key)}o.getRemoveStorageKeys().length&&i.requestRemove.apply(i,o.getRemoveStorageKeys())}return i},e.prototype.valueToBeWritten=function(e){Object(c.throwOnNullOrUndefined)(e,"key");var t=this.writes[e.toString()];if(null==t)throw new r.a("Cannot read key without value.",-2002);return t.Value},e.prototype.isRemoveRequested=function(e){return Object(c.throwOnNullOrUndefined)(e,"key"),e.toString()in this.removes},e.prototype.isClearRequested=function(){return this.clear},e.prototype.isClearAllRequested=function(){return this.clearAll},e.prototype.toStorageServerJsonRequest=function(){var e={ReadSettings:this.getReadStorageKeys().slice(),WriteSettings:this.getWriteStorageKeyValues().map((function(e){return new p(e.Key,JSON.stringify(e.Value))}))};return new v({},e)},e.prototype.toStorageDataRequest=function(e){return{UserId:e,Clear:this.clear,ClearAll:this.clearAll,Reads:this.getReadStorageKeys().map((function(e){return e.toString()})),Writes:this.getWriteStorageKeyValues().map((function(e){return{Key:e.Key.toString(),Value:JSON.stringify(e.Value)}})),Deletes:this.getRemoveStorageKeys().map((function(e){return e.toString()})),RequestType:0}},e}(),_=n(1),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.initializeComponent=function(){this.appLauncherSettingStorage=new h(this.SuiteApi),this.o365SettingStorage=new y(this.SuiteApi),this.NotificationsStorage=new m(this.SuiteApi),this.appDataCacheStorage=new u(this.SuiteApi)},t.prototype.createStorageRequest=function(){return this.checkInitialized(),new b},t.prototype.submitStorageRequestToServer=function(e){},t.prototype.submitStorageRequestToSessionStorage=function(e,t){var n=this;return this.checkInitialized(),new Promise((function(i,a){if(null==e)return a(o.a("request"));n.SuiteApi.Service.sessionStorageRequest(e.toStorageDataRequest(n.SuiteApi.Configuration.CurrentUserUpn)).then((function(e){n.checkStorageResponseErrors(e,a)||i(d.fromStorageSessionResponseData(e))})).catch((function(e){r.i.isCallsBlockedException(e)||Object(_.e)().exception("SubmitStorageRequestToSessionStorage_Failed",4,e,e.errorCode),a(e)})),null!=t&&window.setTimeout((function(){var e=new Error("Session Storage Request Timeout");Object(_.e)().exception("SubmitStorageRequestToSessionStorage_Failed",4,e,-1001),a(e)}),t)}))},t.prototype.submitSuiteDataSharingRequest=function(e){var t=this;return this.checkInitialized(),new Promise((function(n,i){if(null==e)return i(o.a("request"));var a=e.toStorageDataRequest(t.SuiteApi.Configuration.CurrentUserUpn);a.RequestType=1,t.SuiteApi.Service.suiteDataSharingRequest(a).then((function(e){t.checkStorageResponseErrors(e,i)||n(d.fromStorageSessionResponseData(e))})).catch((function(e){r.i.isCallsBlockedException(e)||Object(_.e)().exception("SubmitSuiteDataSharingRequest_Failed",4,e,e.errorCode),i(e)}))}))},t.prototype.readAppDataCache=function(e){return this.checkInitialized(),this.appDataCacheStorage.readAppDataCache(e)},t.prototype.isServerStorageEnabled=function(e){return r.j.Instance.configuration.UserHasExchangeLicense||e},t.prototype.readAppLauncherSettings=function(e){return this.checkInitialized(),this.appLauncherSettingStorage.readAppLauncherSettings(e)},t.prototype.writeAppLauncherSettings=function(e,t,n){return this.checkInitialized(),this.appLauncherSettingStorage.writeAppLauncherSettings(e,t,n)},t.prototype.readNotificationSettings=function(){return this.checkInitialized(),this.NotificationsStorage.readNotificationSettings()},t.prototype.writeNotificationSettings=function(e){return this.checkInitialized(),this.NotificationsStorage.writeNotificationSettings(e)},t.prototype.readSettings=function(e,t,n){return this.checkInitialized(),this.o365SettingStorage.readSettings(e,t,n)},t.prototype.writeSettings=function(e,t,n,i){return this.checkInitialized(),this.o365SettingStorage.writeSettings(e,t,n,i)},t.prototype.checkStorageResponseErrors=function(e,t){var n=e;return n.ClearError,n.WriteError,n.ReadError,null!=n.ResetError&&(t(n.ResetError),!0)},t}(a.a),T=n(139),O=n(3),I=n(35),A=n(83),w=function(){function e(e){void 0===e&&(e=new b),this.storageRequest=e}return e.prototype.requestRead=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.storageRequest).requestRead.apply(e,t)},e.prototype.requestWrite=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(t=this.storageRequest).requestWrite.apply(t,Object(i.__spreadArrays)([e],n))},e.prototype.toStorageDataRequest=function(e){return this.storageRequest.toStorageDataRequest(e)},e.prototype.requestClear=function(){this.storageRequest.requestClear()},e.prototype.requestClearAll=function(){this.storageRequest.requestClearAll()},e}(),D=function(){function e(e){void 0===e&&(e=void 0),this.value=e}return e.prototype.fromStorageSessionResponseData=function(e){this.storageResponse=d.fromStorageSessionResponseData(e)},e.prototype.hasValue=function(e){return O.C.throwOnNullOrUndefined(this.storageResponse,"storageResponse"),this.storageResponse.hasKey(e)&&null!=this.storageResponse.value(e)},e.prototype.getValue=function(e){return O.C.throwOnNullOrUndefined(this.storageResponse,"storageResponse"),this.storageResponse.value(e)},e}(),E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.initializeComponent=function(){},t.prototype.createWebShellStorageRequest=function(){return this.checkInitialized(),new w},t.prototype.readStorage=function(e,t,n){this.checkInitialized();var i=this.createTokenFactoryRequest(t,e,n,r.b.GET);return this.useStorage(i)},t.prototype.batchReadStorage=function(e,t,n){this.checkInitialized();var i=this.createTokenFactoryBatchRequest(t,e,n,r.b.GET);return this.useStorage(i)},t.prototype.writeStorage=function(e,t,n,i){this.checkInitialized();var a=this.createTokenFactoryRequest(t,e,n,r.b.PUT);return a.body=JSON.stringify(i),this.useStorage(a)},t.prototype.removeStorage=function(e,t,n){this.checkInitialized();var i=this.createTokenFactoryRequest(t,e,n,r.b.DELETE);return this.useStorage(i)},t.prototype.readSessionStorage=function(e){return this.checkInitialized(),this.useBrowserStorage(e)},t.prototype.writeSessionStorage=function(e){return this.checkInitialized(),this.useBrowserStorage(e)},t.prototype.removeSessionStorage=function(e){return this.checkInitialized(),this.useBrowserStorage(e)},t.prototype.readLocalStorage=function(e){return this.checkInitialized(),this.useBrowserStorage(e)},t.prototype.writeLocalStorage=function(e){return this.checkInitialized(),this.useBrowserStorage(e)},t.prototype.removeLocalStorage=function(e){return Promise.reject(new Error("not implemented"))},t.prototype.createTokenFactoryRequest=function(e,n,i,r){O.C.throwOnNullOrEmpty(i,"keyName");var a=Object(O.I)("{0}/api/storage/{1}/{2}/{3}?api-version={4}&shellType=OneShell",this.SuiteApi.Configuration.TokenFactoryIframeOrigin,e,n,encodeURIComponent(i),t.ApiVersion);return this.createTokenFactoryRequestHelper(a,r)},t.prototype.createTokenFactoryBatchRequest=function(e,n,i,r){O.C.throwOnNullOrEmptyArray(i,"keyNames");var a=Object(O.I)("{0}/api/storage/{1}/{2}/{3}?api-version={4}",this.SuiteApi.Configuration.TokenFactoryIframeOrigin,e,n,encodeURIComponent(i.join(",")),t.ApiVersion);return this.createTokenFactoryRequestHelper(a,r)},t.prototype.createTokenFactoryRequestHelper=function(e,t){return{url:e,resource:this.SuiteApi.Configuration.TokenFactoryIframeOrigin,method:t,headers:A.b}},t.prototype.useStorage=function(e){var t=this;return new Promise((function(n,i){t.SuiteApi.Service.callEndpointWithOauthToken(e).then((function(e){n(new D(e))})).catch(i)}))},t.prototype.useBrowserStorage=function(e){var t=this;return new Promise((function(n,i){O.C.throwOnNull(e,"StorageRequest");var a=!1,s=e.toStorageDataRequest(t.SuiteApi.Configuration.CurrentUserUpn),u={url:r.j.Instance.configuration.TokenFactoryIframeOrigin,requestObject:s,timeout:3e4,success:function(e){a=!0;var r=e.responseObject;if(!t.checkStorageResponseErrors(r,i)){var o=new D;o.fromStorageSessionResponseData(r),n(o)}},error:function(e,t,n){a=!0;var r=I.g(n);Object(_.e)().tag("StorageApi_RequestError",6,t,r),i(Object(o.b)(r))}},c=null;t.SuiteApi.Service.AreSuiteServiceCallsBlocked||(c=r.e.OauthTokenFactoryInstance),null!=c?(setTimeout((function(){if(!a){a=!0;var e=new Error("StorageTimeout");Object(_.e)().exception("StorageApi_TimeoutError",6,e),i(e)}}),u.timeout),c.executeStorageRequest(u)):i(new r.a("OauthTokenFactoryIframe",-1011))}))},t.prototype.checkStorageResponseErrors=function(e,t){var n=e;if(!n){var i=new Error("Empty response received.");Object(_.e)().exception("StorageApi_NoResponse",6,i),t(i)}if(null!=n.ClearError)t(n.ClearError);else if(null!=n.WriteError)t(n.WriteError);else if(null!=n.ReadError)t(n.ReadError);else{if(null==n.ResetError)return!1;t(n.ResetError)}return!0},t.ApiVersion="1",t}(a.a);n.d(t,"a",(function(){return C})),n.d(t,"d",(function(){return b})),n.d(t,"c",(function(){return l})),n.d(t,"f",(function(){return T.b})),n.d(t,"b",(function(){return T.a})),n.d(t,"e",(function(){return E}))},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
/**
* AriaSDK.ts
* @author Abhilash Panwar (abpanwar)
* @copyright Microsoft 2017
* File to export public classes, interfaces and enums.
*/
var i=n(60);t.AWTPropertyType=i.AWTPropertyType,t.AWTPiiKind=i.AWTPiiKind,t.AWTEventPriority=i.AWTEventPriority,t.AWTEventsDroppedReason=i.AWTEventsDroppedReason,t.AWTEventsRejectedReason=i.AWTEventsRejectedReason,t.AWTCustomerContentKind=i.AWTCustomerContentKind;var r=n(119);t.AWTUserIdType=r.AWTUserIdType,t.AWTSessionState=r.AWTSessionState;var a=n(186);t.AWT_BEST_EFFORT=a.AWT_BEST_EFFORT,t.AWT_NEAR_REAL_TIME=a.AWT_NEAR_REAL_TIME,t.AWT_REAL_TIME=a.AWT_REAL_TIME;var o=n(120);t.AWTEventProperties=o.default;var s=n(187);t.AWTLogger=s.default;var u=n(191);t.AWTLogManager=u.default;var c=n(279);t.AWTTransmissionManager=c.default;var l=n(189);t.AWTSerializer=l.default;var p=n(140);t.AWTSemanticContext=p.default,t.AWT_COLLECTOR_URL_UNITED_STATES="https://us.pipe.aria.microsoft.com/Collector/3.0/",t.AWT_COLLECTOR_URL_GERMANY="https://de.pipe.aria.microsoft.com/Collector/3.0/",t.AWT_COLLECTOR_URL_JAPAN="https://jp.pipe.aria.microsoft.com/Collector/3.0/",t.AWT_COLLECTOR_URL_AUSTRALIA="https://au.pipe.aria.microsoft.com/Collector/3.0/",t.AWT_COLLECTOR_URL_EUROPE="https://eu.pipe.aria.microsoft.com/Collector/3.0/",t.AWT_COLLECTOR_URL_USGOV_DOD="https://pf.pipe.aria.microsoft.com/Collector/3.0",t.AWT_COLLECTOR_URL_USGOV_DOJ="https://tb.pipe.aria.microsoft.com/Collector/3.0"},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return o}));var i="suiteux-chat.UPDATE_IS_CHAT_RECENTS_INITIALIZED",r="suiteux-chat.UPDATE_IS_CHAT_API_INITIALIZED",a="suiteux-chat.UPDATE_UNREAD_CONVERSATION_COUNT",o="suiteux-chat.UPDATE_IS_TEAMS_CHAT_ACTIVATED"},function(e,t,n){"use strict";n.d(t,"f",(function(){return c})),n.d(t,"k",(function(){return l})),n.d(t,"g",(function(){return p})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"j",(function(){return h})),n.d(t,"d",(function(){return g})),n.d(t,"i",(function(){return m})),n.d(t,"c",(function(){return y})),n.d(t,"h",(function(){return v})),n.d(t,"e",(function(){return S}));var i,r=n(51),a=n(1),o=n(4),s=n(17),u=n(194),c={IsVirtual:!0,ParallelView:!0,Style:"o365shell",CanCollapse:!0,SuppressBackgroundRinging:!0};function l(e,t){!t&&swc&&(e?swc.API.triggerEvent(r.b.ApiRecentsShown):swc.API.triggerEvent(r.b.ApiRecentsHidden))}function p(e,t){!t&&swc&&swc.SDK.Recents.refreshDOM(e)}function d(e,t,n){!n&&swc?(swc.API.registerEvent(r.b.ApiRecentsReady,t),swc.create(r.c.Recents,{},e)):n&&(i=e)}function f(e,t){TeamsClient&&TeamsClient.client&&TeamsClient.client.conversations.get().then((function(n){n.render(i).then(e),n.subscribe((function(e){e.type===u.b.ConversationOpened&&t(!1,s.a)}))}))}function h(e,t){swc&&swc.getPresence().then((function(t){t.setMyStatus(e.key)})).catch((function(e){Object(a.e)().exception("UserPresence_SetMyStatus_Exception",6,e),t()}))}function g(){return new Promise((function(e,t){swc?swc.getNotificationSettings().then((function(n){n.readOption(r.e.NewMessage).then((function(t){e(S(t.value))})).catch((function(e){Object(a.e)().exception("Chat_Notification_Settings_readOption_Exception",6,e),t(e)}))})).catch((function(e){Object(a.e)().exception("ChatApi_Get_Chat_Notification_Settings_Exception",6,e),t(e)})):t(new o.a("Chat API not available"))}))}function m(e){return new Promise((function(t,n){swc?swc.getNotificationSettings().then((function(n){n.setOption({name:r.e.NewMessage,value:b(e)}),t()})).catch((function(e){Object(a.e)().exception("ChatApi_Set_Chat_Notification_Settings_Exception",6,e),n()})):n(new o.a("Chat API not available"))}))}function y(){return new Promise((function(e,t){swc?swc.getNotificationSettings().then((function(n){n.readOption(r.e.IncomingCall).then((function(t){e(S(t.value))})).catch((function(e){Object(a.e)().exception("Chat_Notification_Settings_readOption_Exception",6,e),t(e)}))})).catch((function(e){Object(a.e)().exception("ChatApi_Get_Call_Notification_Settings_Exception",6,e),t(e)})):t(new o.a("Chat API not available"))}))}function v(e){return new Promise((function(t,n){swc?swc.getNotificationSettings().then((function(n){n.setOption({name:r.e.IncomingCall,value:b(e)}),t()})).catch((function(e){Object(a.e)().exception("ChatApi_Set_Call_Notification_Settings_Exception",6,e),n()})):n(new o.a("Chat API not available"))}))}function S(e){var t;switch(e){case r.d.All:t={Enabled:!0,SoundEnabled:!0};break;case r.d.Notification:t={Enabled:!0,SoundEnabled:!1};break;case r.d.Off:t={Enabled:!1,SoundEnabled:!1}}return t}function b(e){return e.Enabled&&e.SoundEnabled?r.d.All:e.Enabled?r.d.Notification:r.d.Off}},,function(e,t,n){"use strict";var i=n(1),r=n(48),a=n(62),o=function(){function e(){this.timeZones=null,this.timeZoneOffsets=[]}return Object.defineProperty(e.prototype,"isInitialized",{get:function(){return null!=this.timeZones&&this.timeZoneOffsets.length>0},enumerable:!0,configurable:!0}),e.prototype.initializeTimeZoneConverter=function(e){this.timeZoneOffsets=e,this.timeZones={}},e.prototype.convert=function(e,t,n){if(null===this.timeZones)throw Error("LoadTimeZoneOffsets must be called before convert.");if("tzone://Microsoft/Utc"===e&&(e=a.d),"tzone://Microsoft/Utc"===t&&(t=a.d),null==n||e===t)return n;var i=r.a.parseISO8601DateTime(n),o=0;e===a.d?(o=this.findOffsetInUTC(t,i),i=i.addMinutes(o)):t===a.d?(o=this.findOffsetInLocal(e,i),i=i.addMinutes(0-o)):(o=this.findOffsetInLocal(e,i),i=i.addMinutes(0-o),o=this.findOffsetInUTC(t,i),i=i.addMinutes(o));var s=-1===n.indexOf(".")?r.a.generateISO8601DateTimeString(i):r.a.generateISO8601DateTimeMsString(i);if(t===a.d)s+="Z";else{var u=Math.abs(o),c=Math.floor(u/60),l=u%60;s+=(o<0?"-":"+")+(c<10?"0"+c:c.toString())+":"+(l<10?"0"+l:l.toString())}return s},e.prototype.findOffsetInLocal=function(e,t){var n=this.getTimeZoneRanges(e);if(null==n)throw Error("Unknown time zone specified: "+e);for(var i=0,r=n;i<r.length;i++){var a=r[i];if(t.compare(a.localStart)>=0&&t.compare(a.localEnd)<0)return a.offset}throw new Error("Could not find an offset for this time stamp")},e.prototype.findOffsetInUTC=function(e,t){var n=this.getTimeZoneRanges(e);if(null==n)throw Error("Unknown time zone specified: "+e);for(var i=0,r=n;i<r.length;i++){var a=r[i];if(t.compare(a.utcStart)>=0&&t.compare(a.utcEnd)<0)return a.offset}throw new Error("Could not find an offset for this time stamp")},e.prototype.ConvertDateTimeMembersTimeZone=function(e,t,n,i,r,a){throw new Error("Unimplemented.")},e.prototype.getTimeZoneRanges=function(e){var t=this.timeZones[e];return null==t&&(this.loadOffsetsForTimezone(e),t=this.timeZones[e]),t},e.prototype.loadOffsetsForTimezone=function(e){for(var t,n=0,a=this.timeZoneOffsets;n<a.length;n++){var o=a[n];if(e===o.TimeZoneId){t=o.OffsetRanges;break}}if(t&&0!==t.length){var s=t.map((function(e){return{utcStart:r.a.parseISO8601DateTime(e.UtcTime),offset:e.Offset}}));s.forEach((function(e,t){if(0===t?(e.utcStart=r.a.MinValue,e.localStart=r.a.MinValue):e.localStart=e.utcStart.addMinutes(e.offset),t+1===s.length)e.utcEnd=r.a.MaxValue,e.localEnd=r.a.MaxValue;else{var n=s[t+1];e.utcEnd=n.utcStart,e.localEnd=e.utcEnd.addMinutes(Math.max(e.offset,n.offset))}})),this.timeZones[e]=s}else Object(i.e)().tag("TimeZoneConverter_NoIncomingOffsetRanges",6,e)},e}();n.d(t,"a",(function(){return u}));var s={TimeFormat:"hh:mm tt",DateFormat:"MM/dd/yyyy",TimeZone:"Pacific Standard Time",UserCulture:"default",WeekStartDay:0,FirstWeekOfYear:0,get TimeZoneOffsets(){return[{TimeZoneId:this.TimeZone,OffsetRanges:[{UtcTime:"1970-01-01T00:00:00Z",Offset:-180}]}]}},u=function(){function e(e){var t=e.UserOptions||{},n=t.MailboxTimeZoneOffset;this.timeFormat=t.TimeFormat||s.TimeFormat,this.dateFormat=t.DateFormat||s.DateFormat,this.timeZone=t.TimeZone||s.TimeZone,this.userCulture=null!=e.SessionSettings?e.SessionSettings.UserCulture:s.UserCulture,this.weekStartDay=null!=t.WeekStartDay?t.WeekStartDay:s.WeekStartDay,this.firstWeekOfYear=null!=t.FirstWeekOfYear?t.FirstWeekOfYear:s.FirstWeekOfYear,this.timeZoneConverter=new o,this.timeZoneConverter.initializeTimeZoneConverter(null!=n?n:s.TimeZoneOffsets)}return Object.defineProperty(e,"Instance",{get:function(){return null==e.instance&&(e.instance=new e({})),e.instance},enumerable:!0,configurable:!0}),e.populate=function(t){e.instance=new e(t)},e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(6),r=n(15),a=n(18),o=function(){function e(){}return e.checkScope=function(t,n){if(null!=t&&!Object(i.startsWith)(t,n+e.DictionaryStringPartsSeparator))throw new r.a(a.a,-2010)},e.SuiteScope="O365S",e.DictionaryStringPartsSeparator="//",e}()},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
/**
* Utils.ts
* @author Brent Erickson (brericks) and Abhilash Panwar (abpanwar)
* @copyright Microsoft 2017
* File containing utility functions.
*/
var i=n(121),r=n(60),a=/[xy]/g;t.EventNameAndTypeRegex=/^[a-zA-Z]([a-zA-Z0-9]|_){2,98}[a-zA-Z0-9]$/,t.EventNameDotRegex=/\./g,t.PropertyNameRegex=/^[a-zA-Z](([a-zA-Z0-9|_|\.]){0,98}[a-zA-Z0-9])?$/,t.StatsApiKey="a387cfcf60114a43a7699f9fbb49289e-9bceb9fe-1c06-460f-96c5-6a0b247358bc-7238";var o=null,s=null,u=null;function c(e){return"string"==typeof e}function l(e){return"number"==typeof e}function p(e){return"boolean"==typeof e}function d(e){return e instanceof Date}function f(e){return 1e4*(e+621355968e5)}function h(){return!("undefined"==typeof navigator||!navigator.product)&&"ReactNative"===navigator.product}function g(){return"object"==typeof self&&"ServiceWorkerGlobalScope"===self.constructor.name}function m(e){return e<10?"0"+e:e.toString()}function y(e){return null==e||""===e}t.numberToBondInt64=function(e){var t=new i.Int64("0");return t.low=4294967295&e,t.high=Math.floor(e/4294967296),t},t.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(a,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},t.isString=c,t.isNumber=l,t.isBoolean=p,t.isDate=d,t.msToTicks=f,t.getTenantId=function(e){var t=e.indexOf("-");return t>-1?e.substring(0,t):""},t.isBeaconsSupported=function(){return null===o&&(o="undefined"!=typeof navigator&&Boolean(navigator.sendBeacon)),o},t.isUint8ArrayAvailable=function(){return null===s&&(s="undefined"!=typeof Uint8Array&&!function(){if("undefined"!=typeof navigator&&navigator.userAgent){var e=navigator.userAgent.toLowerCase();if((e.indexOf("safari")>=0||e.indexOf("firefox")>=0)&&e.indexOf("chrome")<0)return!0}return!1}()&&!h()),s},t.isPriority=function(e){return!(!l(e)||!(e>=1&&e<=3||5===e))},t.sanitizeProperty=function(e,n){return!t.PropertyNameRegex.test(e)||y(n)?null:(y(n.value)&&(n={value:n,type:r.AWTPropertyType.Unspecified}),n.type=function(e,t){switch(t=function(e){if(l(e)&&e>=0&&e<=4)return!0;return!1}(t)?t:r.AWTPropertyType.Unspecified){case r.AWTPropertyType.Unspecified:return function(e){switch(typeof e){case"string":return r.AWTPropertyType.String;case"boolean":return r.AWTPropertyType.Boolean;case"number":return r.AWTPropertyType.Double;case"object":return d(e)?r.AWTPropertyType.Date:null}return null}(e);case r.AWTPropertyType.String:return c(e)?t:null;case r.AWTPropertyType.Boolean:return p(e)?t:null;case r.AWTPropertyType.Date:return d(e)&&NaN!==e.getTime()?t:null;case r.AWTPropertyType.Int64:return l(e)&&e%1==0?t:null;case r.AWTPropertyType.Double:return l(e)?t:null}return null}(n.value,n.type),n.type?(d(n.value)&&(n.value=f(n.value.getTime())),n.pii>0&&n.cc>0?null:n.pii?function(e){if(l(e)&&e>=0&&e<=13)return!0;return!1}(n.pii)?n:null:n.cc?function(e){if(l(e)&&e>=0&&e<=1)return!0;return!1}(n.cc)?n:null:n):null)},t.getISOString=function(e){return e.getUTCFullYear()+"-"+m(e.getUTCMonth()+1)+"-"+m(e.getUTCDate())+"T"+m(e.getUTCHours())+":"+m(e.getUTCMinutes())+":"+m(e.getUTCSeconds())+"."+function(e){if(e<10)return"00"+e;if(e<100)return"0"+e;return e.toString()}(e.getUTCMilliseconds())+"Z"},t.useXDomainRequest=function(){if(null===u){var e=new XMLHttpRequest;u=void 0===e.withCredentials&&"undefined"!=typeof XDomainRequest}return u},t.useFetchRequest=function(){return h()||g()},t.isReactNative=h,t.isServiceWorkerGlobalScope=g},,,,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}));var i={Accept:"application/json","Content-Type":"application/json; charset=utf-8"},r={Accept:"application/json","Content-Type":"application/json; charset=utf-8"}},function(e,t,n){"use strict";var i,r;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),function(e){e.LifeCycle="LifeCycle"}(i||(i={})),function(e){e.GetConfig="GetConfig",e.RefreshToken="RefreshToken",e.PageReady="PageReady",e.Closed="Closed",e.FatalError="FatalError"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n(6),r=n(64),a=(n(20),function(){function e(){}return e.onBeforeSendRequestAdmin=function(e,t,n){var i=Object(r.a)("s.AjaxSessionKey");return null!=i&&e.setRequestHeader("AjaxSessionKey",i),null},e.onBeforeSendRequestSuiteService=function(e,t,n){if(null!=n&&null!=n.userMailboxType&&null!=t&&-1!==i.parseQueryString(t.url.toLowerCase()).indexOf("getowauserconfiguration"))try{JSON.parse(n.userMailboxType)}catch(e){}var a=Object(r.a)("X-OWA-CANARY"),o=Object(r.a)("X-OWA-CANARY-DEBUG");return null!=a&&e.setRequestHeader("X-OWA-CANARY",a),null!=o&&e.setRequestHeader("X-OWA-CANARY-DEBUG",o),null},e.validateOriginWithAllowedEndpoints=function(t,n){for(var r=[],a=0;a<n.length;a++)r[a]=n[a].host;return e.validateOrigin(i.getUrlAuthorityPart(t),r)},e.validateOrigin=function(e,t){if(null==t||e.length>253)return!1;for(var n=!1,i=0;i<t.length;i++)if(""!==t[i]&&new RegExp(t[i],"i").test(e)){n=!0;break}return n},e.validatePathWithAllowedEndpoints=function(e,t){if(i.isNullOrEmptyString(e))return!1;for(var n=!1,r=i.getUrlAuthorityPart(e),a=i.getUrlPath(e),o=0,s=t;o<s.length;o++){var u=s[o];if(new RegExp(u.host,"i").test(r)){if(null==u.paths)return!1;for(var c=0,l=u.paths;c<l.length;c++){var p=l[c];if(new RegExp(p,"i").test(a)){n=!0;break}}break}}return n},e.validatePathWithAllowedResources=function(e,t,n){if(null==e||i.isNullOrEmptyString(t)||null==n)return!1;for(var r=!1,a=i.getUrlAuthorityPart(e),o=i.getUrlAuthorityPart(t),s=0,u=n;s<u.length;s++){var c=u[s],l=!1;if("^"===c.resource.charAt(0))l=new RegExp(c.resource,"i").test(a);else l=i.getUrlAuthorityPart(c.resource)===a;if(l){if(null==c.hosts)return!1;for(var p=0,d=c.hosts;p<d.length;p++){var f=d[p],h=!1;if("^"===f.charAt(0))h=new RegExp(f,"i").test(o);else h=i.getUrlAuthorityPart(f)===o;if(h){r=!0;break}}break}}return r},e.isAllowedApi=function(t){if(null==t)return!1;var n=i.getUrlPath(t);if(n in e.allowedPath){if(!e.allowedPath[n])return!0;if(i.parseQueryString(t).replace("&UA=0","")in e.allowedListOfApi)return!0}else if(i.startsWith(n,i.SuiteServiceApiRelativePath))return!0;return("owa/ev.owa2"===n||"ev.owa2"===n)&&e.checkAllowedPgmParameters(t)},e.checkAllowedPgmParameters=function(t){if(i.isNullOrEmptyString(t)||""===t.trim())return!1;var n=t.split("?");if(2===n.length){var r=n[1];if(i.isNullOrEmptyString(r)||""===r.trim())return!1;for(var a=0,o=r.split("&");a<o.length;a++){var s=o[a].split("=");if(2!==s.length)return!1;if(!(s[0]in e.AllowedPgmQueryStringParametersList))return!1}return!0}return!1},e.createAllowedPgmParamters=function(){return{ecnsq:!0,brwnm:!0,cid:!0,syncFnshRq:!0,ns:!0,ev:!0,Fn:!0,UA:!0,"UX-E4E-CANARY":!0,"X-OWA-CANARY":!0,"X-OWA-CANARY-DEBUG":!0,"X-E4E-CANARY-DEBUG":!0}},e.createAllowedApiList=function(){return{"action=GetReminders":!0,"action=GetOwaUserConfiguration":!0,"action=SetNotificationSettings":!0,"action=FindItem":!0,"action=GetUserAvailabilityInternal":!0,"action=GetCalendarFolders":!0,"action=ProcessSuiteStorage":!0,"action=SubscribeToNotification":!0,"action=PerformReminderAction":!0,"action=GetOwaUserOofSettings":!0,"action=SetUserTheme":!0,"action=SetUserLocale":!0,"action=UnsubscribeToNotification":!0,"action=GetDaysUntilPasswordExpiration":!0,"action=GetModernGroups":!0,"action=GetModernGroup":!0,"action=GetModernGroupUnseenItems":!0,"action=GetCalendarFolderConfiguration":!0,"action=SubscribeToGroupUnseenNotification":!0,"action=SubscribeToGroupNotification":!0,"action=GetSocialActivityNotifications":!0,"action=GetSocialActivityNotifications2":!0,"action=MarkSocialActivityNotificationsAsSeen":!0,"action=MarkSocialActivityNotificationsAsSeen2":!0,"action=GetBingHelpSearchResults":!0,"action=GetMailboxRegionalConfiguration":!0,"action=SetMailboxRegionalConfiguration":!0,"format=json":!0,"api-version=1":!0,"action=TestAddReminders":!0,"action=TestDeleteAllReminders":!0,"action=TestAddItems":!0,"action=TestDeleteAllItems":!0,"action=TestAddCalendarFolders":!0,"action=TestAddCalendarGroups":!0,"action=TestDeleteAllCalendarFolders":!0,"action=TestDeleteAllCalendarGroups":!0,"action=TestAddUserAvailability":!0,"action=TestDeleteAllUserAvailability":!0,"action=TestAddOwaUserOofSettings":!0,"action=TestDeleteNotifications":!0,"action=TestAddNotifications":!0,"action=TestGetSettings":!0}},e.createAllowedPath=function(){var e;return(e={})[i.OwsRelativePath]=!0,e["SuiteService.svc/"]=!0,e["SuiteService.svc"]=!0,e["owa/ev.owa2"]=!0,e["ev.owa2"]=!0,e["Microsoft.Online.BOX.Admin.UI.SystemAlert.GetAlerts.model"]=!0,e["Microsoft.Online.BOX.Admin.UI.AppHub.AppUICallbacks.GetPrePinnedAppTiles.model"]=!0,e["Microsoft.Online.BOX.Admin.UI.AppHub.AppUICallbacks.GetAllAppTilesForAllCollectors.model"]=!0,e["api/myapps/GetAllApps"]=!1,e["api/myapps/GetAppDetails"]=!1,e["api/myapps/GetCompleteAppData"]=!1,e["api/myapps/ExecuteAppCustomAction"]=!1,e["api/myapps/ActivatePendingProvisioningApps"]=!1,e["owa/service.svc/s/GetPersonaPhoto"]=!1,e["api/settings/cards"]=!1,e["api/settings/cards/data"]=!1,e["api/settings/theme"]=!1,e["api/settings/usertheme"]=!1,e["api/settings/language"]=!1,e["api/settings/contactPreferences"]=!1,e["api/NotificationsSettings/User"]=!1,e["api/settings/SPO/MySiteUrl"]=!1,e["api/settings/regiontimezone"]=!1,e["api/profile/photo"]=!1,e["v1.0/me/photo/$value"]=!1,e["api/storage/CustomerContent/Tenant/CustomSupportData"]=!0,e},e.allowedPath=e.createAllowedPath(),e.allowedListOfApi=e.createAllowedApiList(),e.AllowedPgmQueryStringParametersList=e.createAllowedPgmParamters(),e}())},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(264),r=n(265),a=n(266),o=n(267),s=n(142);t.getJsonRequestHeader=function(){var e=s.getConfig().timezone;return e?i.default({RequestServerVersion:"Exchange2016",TimeZoneContext:r.default({TimeZoneDefinition:a.default({Id:e})})}):i.default({RequestServerVersion:"Exchange2016"})},t.getExtendedPropertyUri=function(e,t,n){return o.default({PropertySetId:e,PropertyName:t,PropertyType:n})}},,function(e,t,n){
// Copyright 2014 Microsoft
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// distributed under the License is distributed on an "AS IS" BASIS,
// See the License for the specific language governing permissions and
// limitations under the License.
var i=i||function(){"use strict";var e={register:function(t,n,i){e[t]||(e[t]={});var r=e[t];r[n]||(r[n]=i)},exists:function(t,n){return!!e[t]&&!!e[t][n]}},t=function(){if("undefined"!=typeof document)try{throw new Error}catch(t){if(t.stack){var e=/\w+:\/\/(.+?\/)*.+\.js/.exec(t.stack);return e&&e.length>0?e[0]:null}}else if("undefined"!=typeof self)return self.location.href;return null}(),n="undefined"!=typeof Worker,i="undefined"!=typeof importScripts,r="undefined"!=typeof Uint8Array,a=(function(){try{Object.defineProperty({},"oncomplete",{})}catch(e){return!1}}(),n),o={},s=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",t="undefined"!=typeof btoa;function n(t){for(t=t.replace(/-/g,"+").replace(/_/g,"/");t.length%4!=0;)t+="=";var n,i,r,a,o,s,u,c=[];for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,""),u=0;u<t.length;u+=4)n=e.indexOf(t.charAt(u))<<2|(a=e.indexOf(t.charAt(u+1)))>>4,i=(15&a)<<4|(o=e.indexOf(t.charAt(u+2)))>>2,r=(3&o)<<6|(s=e.indexOf(t.charAt(u+3))),c.push(n),64!==o&&c.push(i),64!==s&&c.push(r);return c}function i(e){return Object.prototype.toString.call(e).slice(8,-1)}function r(e){return[e>>>24&255,e>>>16&255,e>>>8&255,255&e]}return{toBase64:function(n,i){var r,a,o,s,u,c,l,p,d="";if(i||(i=!1),(n.pop||n.subarray)&&(n=String.fromCharCode.apply(null,n)),t)d=btoa(n);else for(p=0;p<n.length;p+=3)s=(r=n.charCodeAt(p))>>2,u=(3&r)<<4|(a=n.charCodeAt(p+1))>>4,c=(15&a)<<2|(o=n.charCodeAt(p+2))>>6,l=63&o,isNaN(a)?c=l=64:isNaN(o)&&(l=64),d=d+e.charAt(s)+e.charAt(u)+e.charAt(c)+e.charAt(l);return i?d.replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,""):d},base64ToString:function(e){if(t){for(e=e.replace(/-/g,"+").replace(/_/g,"/");e.length%4!=0;)e+="=";return atob(e)}return String.fromCharCode.apply(null,n(e))},base64ToBytes:n,getObjectType:i,bytesToHexString:function(e,t){var n="";void 0===t&&(t=!1);for(var i=0;i<e.length;i++){t&&i%4==0&&0!==i&&(n+="-");var r=e[i].toString(16).toUpperCase();1===r.length&&(n+="0"),n+=r}return n},bytesToInt32:function(e,t){return e[t=t||0]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]},stringToBytes:function(e){for(var t=new Array(e.length),n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t},unpackData:function(e,t,i){var r,a=n(e),o=[];if(isNaN(t))return a;for(r=0;r<a.length;r+=t)o.push(a.slice(r,r+t));if(i)for(r=0;r<o.length;r++)o[r]=(o[r][0]<<24)+(o[r][1]<<16)+(o[r][2]<<8)+o[r][3];return o},hexToBytesArray:function(e){e=e.replace(/\-/g,"");for(var t=[];e.length>=2;)t.push(parseInt(e.substring(0,2),16)),e=e.substring(2,e.length);return t},int32ToBytes:r,int32ArrayToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t=t.concat(r(e[n]));return t},toArray:function(e){if(!e)return[];if(e.pop)return e;if("ArrayBuffer"==i(e)?e=new Uint8Array(e):e.BYTES_PER_ELEMENT>1&&(e=new Uint8Array(e.buffer)),1===e.length)return[e[0]];if(e.length<65536)return Array.apply(null,e);for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=e[n];return t},arraysEqual:function(e,t){var n=!0;e.length!==t.length&&(n=!1);for(var i=0;i<e.length;i++)e[i]!==t[i]&&(n=!1);return n},clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},xorVectors:function(e,t){for(var n=Math.min(e.length,t.length),i=new Array(n),r=0;r<n;r+=1)i[r]=e[r]^t[r];return i},padEnd:function(e,t,n){for(;e.length<n;)e.push(t);return e},padFront:function(e,t,n){for(;e.length<n;)e.unshift(t);return e},getVector:function(e,t){t||(t=0);for(var n=new Array(e),i=0;i<e;i+=1)n[i]=t;return n},verifyByteArray:function(e){if("Array"!==i(e))return!1;for(var t,n=0;n<e.length;n++)if(t=e[n],isNaN(t)||t<0||t>255)return!1;return!0}}}(),u=function(){function t(e){return i&&self.postMessage(e),e}return{jsCryptoRunner:function(n){var i,r=n.data.operationType;if(!e.exists(r,n.data.algorithm.name))throw new Error("unregistered algorithm.");var a=e[r][n.data.algorithm.name],o=n.data;return"process"===o.operationSubType?(a(o),i=t({type:"process"})):i=t(a(o)),i}}}();i&&(self.onmessage=function(e){if(e.data.prngSeed){var t=e.data.prngSeed;D.init(t)}else u.jsCryptoRunner(e)});var c=function(){var e=s;function t(e){var t=e.algorithm.name.slice(0,3).toLowerCase();return"rsa"===t?"RSA":"ecd"===t?"EC":"oct"}var n={hmac:function(e){return"HS"+e.hash.name.substring(e.hash.name.indexOf("-")+1)},"aes-cbc":function(e){return"A"+e.length.toString()+"CBC"},"aes-gcm":function(e){return"A"+e.length.toString()+"GCM"},"rsaes-pkcs1-v1_5":function(e){return"RSA1_5"},"rsassa-pkcs1-v1_5":function(e){return"RS"+e.hash.name.substring(e.hash.name.indexOf("-")+1)},"rsa-oaep":function(e){return"RS-OAEP-"+e.hash.name.substring(e.hash.name.indexOf("-")+1)},"rsa-pss":function(e){return"PS-"+e.hash.name.substring(e.hash.name.indexOf("-")+1)},ecdsa:function(e){return"EC-"+e.namedCurve.substring(e.namedCurve.indexOf("-")+1)}};return{keyToJwkOld:function(n,i){var r={};if(r.kty=t(n),r.extractable=n.extractable,i.pop)r.k=e.toBase64(i,!0);else for(var a in i)i[a].pop&&(r[a]=e.toBase64(i[a],!0));return n.algorithm.namedCurve&&(r.crv=n.algorithm.namedCurve),function(e){for(var t=[],n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return 0===t[t.length-1]&&t.pop(),t}(JSON.stringify(r,null,"\t"))},keyToJwk:function(i,r){var a={};if(a.kty=t(i),a.ext=i.extractable,a.alg=n[i.algorithm.name.toLowerCase()](i.algorithm),a.key_ops=i.keyUsage,r.pop)a.k=e.toBase64(r,!0);else for(var o in r)r[o].pop&&(a[o]=e.toBase64(r[o],!0));return i.algorithm.namedCurve&&(a.crv=i.algorithm.namedCurve),a},jwkToKey:function(t,n,i){for(var r=JSON.parse(JSON.stringify(t)),a=0;a<i.length;a+=1){var o=r[i[a]];o&&(r[i[a]]=e.base64ToBytes(o))}return r}}}();var l=function(e,t,n,i,r,a,o){var u=s,c=n.slice(),l=new Array(r),p=[],d=0;function f(e){for(var t=Math.floor(e.length/r),n=0;n<t;n++)a(e,n,c,i,l);return d+=t,e.slice(t*r)}function h(){if(0!==f(function(e){var t=r-e.length%r;t<=r/8&&(t+=r);var n=u.getVector(t);n[0]=128;var i=8*(e.length+d*r);return n[t-4]=i>>>24&255,n[t-3]=i>>>16&255,n[t-2]=i>>>8&255,n[t-1]=255&i,e.concat(n)}(p)).length)throw new Error("buffer.length !== 0");var e=function(){for(var e=[],t=0;t<c.length;t++)e=e.concat(u.int32ToBytes(c[t]));return e.length=o/8,e}();return p=[],c=n.slice(),d=0,e}return{name:e,computeHash:function(e){return p=f(e),h()},process:function(e){(p=p.concat(e)).length>=r&&(p=f(p))},finish:h,der:t,hashLen:o,maxMessageSize:4294967295}},p=function(){var e=s;function t(t,n,i,r,a){var o,s,u,c,l,p=4294967295,d=i[0],f=i[1],h=i[2],g=i[3],m=i[4],y=i[5],v=i[6],S=i[7];for(s=0;s<16;s++)a[s]=e.bytesToInt32(t,64*n+4*s);for(o=16;o<64;o++)c=a[o-15],l=a[o-2],a[o]=((l>>>17|l<<15)^(l>>>19|l<<13)^l>>>10)+a[o-7]+((c>>>7|c<<25)^(c>>>18|c<<14)^c>>>3)+a[o-16],a[o]=a[o]&p;for(s=0;s<64;s++)g+=u=S+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&y^~m&v)+r[s]+a[s],u+=((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+(d&(f^h)^f&h),S=v,v=y,y=m,m=g,g=h,h=f,f=d,d=u;return i[0]+=d&p,i[1]+=f&p,i[2]+=h&p,i[3]+=g&p,i[4]+=m&p,i[5]+=y&p,i[6]+=v&p,i[7]+=S&p,i}var n,i,r,a,o,u=e.unpackData;return i=u("wQWe2DZ81QcwcN0X9w5ZOf/ACzFoWBURZPmPp776T6Q",4,1),r=u("agnmZ7tnroU8bvNypU/1OlEOUn+bBWiMH4PZq1vgzRk",4,1),n=u("QoovmHE3RJG1wPvP6bXbpTlWwltZ8RHxkj+CpKscXtXYB6qYEoNbASQxhb5VDH3Dcr5ddIDesf6b3AanwZvxdOSbacHvvkeGD8GdxiQMocwt6SxvSnSEqlywqdx2+YjamD5RUqgxxm2wAyfIv1l/x8bgC/PVp5FHBspjURQpKWcntwqFLhshOE0sbfxTOA0TZQpzVHZqCruBwskuknIshaK/6KGoGmZLwkuLcMdsUaPRkugZ1pkGJPQONYUQaqBwGaTBFh43bAgnSHdMNLC8tTkcDLNO2KpKW5zKT2gub/N0j4LueKVjb4TIeBSMxwIIkL7/+qRQbOu++aP3xnF48g",4,1),a=u("MC0wDQYJYIZIAWUDBAIEBQAEHA"),o=u("MDEwDQYJYIZIAWUDBAIBBQAEIA"),{sha224:l("SHA-224",a,i,n,64,t,224),sha256:l("SHA-256",o,r,n,64,t,256)}}();void 0!==e&&(p.hash256=function(e){if("process"!==e.operationSubType)return"finish"===e.operationSubType?p.sha256.finish():p.sha256.computeHash(e.buffer);p.sha256.process(e.buffer)},p.hash224=function(e){if("process"!==e.operationSubType)return"finish"===e.operationSubType?p.sha224.finish():p.sha224.computeHash(e.buffer);p.sha224.process(e.buffer)},e.register("digest","sha-224",p.hash224),e.register("digest","sha-256",p.hash256)),o["sha-224"]=p.sha224,o["sha-256"]=p.sha256;var d,f,h,g,m,y,v,S,b,_,C={aes:function(e){var t,n,i,r;switch(d||(d=s.unpackData("AAIEBggKDA4QEhQWGBocHiAiJCYoKiwuMDI0Njg6PD5AQkRGSEpMTlBSVFZYWlxeYGJkZmhqbG5wcnR2eHp8foCChIaIioyOkJKUlpianJ6goqSmqKqsrrCytLa4ury+wMLExsjKzM7Q0tTW2Nrc3uDi5Obo6uzu8PL09vj6/P4bGR8dExEXFQsJDw0DAQcFOzk/PTMxNzUrKS8tIyEnJVtZX11TUVdVS0lPTUNBR0V7eX99c3F3dWtpb21jYWdlm5mfnZORl5WLiY+Ng4GHhbu5v72zsbe1q6mvraOhp6Xb2d/d09HX1cvJz83DwcfF+/n//fPx9/Xr6e/t4+Hn5QADBgUMDwoJGBseHRQXEhEwMzY1PD86OSgrLi0kJyIhYGNmZWxvaml4e359dHdycVBTVlVcX1pZSEtOTURHQkHAw8bFzM/Kydjb3t3U19LR8PP29fz/+vno6+7t5Ofi4aCjpqWsr6qpuLu+vbS3srGQk5aVnJ+amYiLjo2Eh4KBm5idnpeUkZKDgIWGj4yJiquora6npKGis7C1tr+8ubr7+P3+9/Tx8uPg5ebv7Onqy8jNzsfEwcLT0NXW39zZ2ltYXV5XVFFSQ0BFRk9MSUpraG1uZ2RhYnNwdXZ/fHl6Ozg9Pjc0MTIjICUmLywpKgsIDQ4HBAECExAVFh8cGRoADhwSODYkKnB+bGJIRlRa4O788tjWxMqQnoyCqKa0utvVx8nj7f/xq6W3uZOdj4E7NScpAw0fEUtFV1lzfW9hraOxv5WbiYfd08HP5ev5901DUV91e2lnPTMhLwULGRd2eGpkTkBSXAYIGhQ+MCIslpiKhK6gsrzm6Pr03tDCzEFPXVN5d2VrMT8tIwkHFRuhr72zmZeFi9HfzcPp5/X7mpSGiKKsvrDq5Pb40tzOwHp0ZmhCTF5QCgQWGDI8LiDs4vD+1NrIxpySgI6kqri2DAIQHjQ6KCZ8cmBuREpYVjc5KyUPARMdR0lbVX9xY23X2cvF7+Hz/aepu7WfkYONAA0aFzQ5LiNoZXJ/XFFGS9Ddysfk6f7zuLWir4yBlpu7tqGsj4KVmNPeycTn6v3wa2ZxfF9SRUgDDhkUNzotIG1gd3pZVENOBQgfEjE8Kya9sKeqiYSTntXYz8Lh7Pv21tvMweLv+PW+s6SpioeQnQYLHBEyPyglbmN0eVpXQE3a18DN7uP0+bK/qKWGi5yRCgcQHT4zJClib3h1VltMQWFse3ZVWE9CCQQTHj0wJyqxvKumhYifktnUw87t4Pf6t7qtoIOOmZTf0sXI6+bx/GdqfXBTXklEDwIVGDs2ISwMARYbODUiL2RpfnNQXUpH3NHGy+jl8v+0ua6jgI2alwALFh0sJzoxWFNORXR/Ymmwu6atnJeKgejj/vXEz9LZe3BtZldcQUojKDU+DwQZEsvA3dbn7PH6k5iFjr+0qaL2/eDr2tHMx66luLOCiZSfRk1QW2phfHceFQgDMjkkL42Gm5Chqre81d7DyPny7+Q9NisgERoHDGVuc3hJQl9U9/zh6tvQzcavpLmyg4iVnkdMUVprYH12HxQJAjM4JS6Mh5qRoKu2vdTfwsn48+7lPDcqIRAbBg1kb3J5SENeVQEKFxwtJjswWVJPRHV+Y2ixuqesnZaLgOni//TFztPYenFsZ1ZdQEsiKTQ/DgUYE8rB3Nfm7fD7kpmEj761qKMACRIbJC02P0hBWlNsZX53kJmCi7S9pq/Y0crD/PXu5zsyKSAfFg0Ec3phaFdeRUyrormwj4adlOPq8fjHztXcdn9kbVJbQEk+NywlGhMIAebv9P3Cy9DZrqe8tYqDmJFNRF9WaWB7cgUMFx4hKDM63dTPxvnw6+KVnIeOsbijquzl/vfIwdrTpK22v4CJkpt8dW5nWFFKQzQ9Ji8QGQIL197FzPP64eiflo2Eu7KpoEdOVVxjanF4DwYdFCsiOTCak4iBvrespdLbwMn2/+TtCgMYES4nPDVCS1BZZm90faGos7qFjJee6eD78s3E39YxOCMqFRwHDnlwa2JdVE9GY3x3e/Jrb8UwAWcr/terdsqCyX36WUfwrdSir5ykcsC3/ZMmNj/3zDSl5fFx2DEVBMcjwxiWBZoHEoDi6yeydQmDLBobblqgUjvWsynjL4RT0QDtIPyxW2rLvjlKTFjP0O+q+0NNM4VF+QJ/UDyfqFGjQI+SnTj1vLbaIRD/89LNDBPsX5dEF8Snfj1kXRlzYIFP3CIqkIhG7rgU3l4L2+AyOgpJBiRcwtOsYpGV5HnnyDdtjdVOqWxW9Opleq4IunglLhymtMbo3XQfS72LinA+tWZIA/YOYTVXuYbBHZ7h+JgRadmOlJseh+nOVSjfjKGJDb/mQmhBmS0PsFS7FlIJatUwNqU4v0CjnoHz1/t84zmCmy//hzSOQ0TE3unLVHuUMqbCIz3uTJULQvrDTgguoWYo2SSydluiSW2L0SVy+PZkhmiYFtSkXMxdZbaSbHBIUP3tudpeFUZXp42dhJDYqwCMvNMK9+RYBbizRQbQLB6Pyj8PAsGvvQMBE4prOpERQU9n3OqX8s/O8LTmc5asdCLnrTWF4vk36Bx1325H8RpxHSnFiW+3Yg6qGL4b/FY+S8bSeSCa28D+eM1a9B/dqDOIB8cxsRIQWSeA7F9gUX+pGbVKDS3lep+TyZzvoOA7Ta4q9bDI67s8g1OZYRcrBH66d9Ym4WkUY1UhDH2NAQIECBAgQIAbNmzYq02aL168Y8aXNWrUs33678WROXLk071hwp8lSpQzZsyDHTp06MuNAQIECBAgQIAbNmzYq02aL168Y8aXNWrUs33678WROXLk071hwp8lSpQzZsyDHTp06MuNAQIECBAgQIAbNmzYq02aL168Y8aXNWrUs33678WROXLk071hwp8lSpQzZsyDHTp06MuNAQIECBAgQIAbNmzYq02aL168Y8aXNWrUs33678WROXLk071hwp8lSpQzZsyDHTp06MuNAQIECBAgQIAbNmzYq02aL168Y8aXNWrUs33678WROXLk071hwp8lSpQzZsyDHTp06MuN",256,!1),f=d[0],h=d[1],g=d[2],m=d[3],y=d[4],v=d[5],S=d[6],b=d[7],_=d[8]),8*e.length){case 128:t=128,n=4,i=10;break;case 192:t=192,n=6,i=12;break;case 256:t=256,n=8,i=14;break;default:throw new Error("Unsupported keyLength")}var a=function(e){var t=e[1];e[1]=e[5],e[5]=e[9],e[9]=e[13],e[13]=t,t=e[2],e[2]=e[10],e[10]=t,t=e[6],e[6]=e[14],e[14]=t,t=e[15],e[15]=e[11],e[11]=e[7],e[7]=e[3],e[3]=t},o=function(e){var t=e[13];e[13]=e[9],e[9]=e[5],e[5]=e[1],e[1]=t,t=e[10],e[10]=e[2],e[2]=t,t=e[14],e[14]=e[6],e[6]=t,t=e[3],e[3]=e[7],e[7]=e[11],e[11]=e[15],e[15]=t},u=function(e){var t=e[0],n=e[1],i=e[2],r=e[3],a=e[4],o=e[5],s=e[6],u=e[7],c=e[8],l=e[9],p=e[10],d=e[11],g=e[12],m=e[13],y=e[14],v=e[15];e[0]=f[t]^h[n]^i^r,e[1]=t^f[n]^h[i]^r,e[2]=t^n^f[i]^h[r],e[3]=h[t]^n^i^f[r],e[4]=f[a]^h[o]^s^u,e[5]=a^f[o]^h[s]^u,e[6]=a^o^f[s]^h[u],e[7]=h[a]^o^s^f[u],e[8]=f[c]^h[l]^p^d,e[9]=c^f[l]^h[p]^d,e[10]=c^l^f[p]^h[d],e[11]=h[c]^l^p^f[d],e[12]=f[g]^h[m]^y^v,e[13]=g^f[m]^h[y]^v,e[14]=g^m^f[y]^h[v],e[15]=h[g]^m^y^f[v]},c=function(e){var t=e[0],n=e[1],i=e[2],r=e[3],a=e[4],o=e[5],s=e[6],u=e[7],c=e[8],l=e[9],p=e[10],d=e[11],f=e[12],h=e[13],S=e[14],b=e[15];e[0]=g[t]^y[n]^m[i]^v[r],e[1]=v[t]^g[n]^y[i]^m[r],e[2]=m[t]^v[n]^g[i]^y[r],e[3]=y[t]^m[n]^v[i]^g[r],e[4]=g[a]^y[o]^m[s]^v[u],e[5]=v[a]^g[o]^y[s]^m[u],e[6]=m[a]^v[o]^g[s]^y[u],e[7]=y[a]^m[o]^v[s]^g[u],e[8]=g[c]^y[l]^m[p]^v[d],e[9]=v[c]^g[l]^y[p]^m[d],e[10]=m[c]^v[l]^g[p]^y[d],e[11]=y[c]^m[l]^v[p]^g[d],e[12]=g[f]^y[h]^m[S]^v[b],e[13]=v[f]^g[h]^y[S]^m[b],e[14]=m[f]^v[h]^g[S]^y[b],e[15]=y[f]^m[h]^v[S]^g[b]},l=function(e,t){return[e[0]^t[0],e[1]^t[1],e[2]^t[2],e[3]^t[3]]},p=function(e,t,n){for(var i=0;i<e.length;i+=1)e[i]^=t[i+n]},C=function(e){for(var t=0;t<e.length;t+=1)e[t]=S[e[t]]},T=function(e){for(var t=0;t<e.length;t+=1)e[t]=b[e[t]]},O=function(e,t){return[e[4*t],e[4*t+1],e[4*t+2],e[4*t+3]]};return r=function(e){for(var t,r,a,o,s,u,c,p=[],d=0;d<4*n;)p.push(e[d++]);for(d=n;d<4*(i+1);){if(t=O(p,d-1),d%n==0){var f=[_[d/n],0,0,0];c=void 0,c=(u=t)[0],u[0]=u[1],u[1]=u[2],u[2]=u[3],u[3]=c,C(t),t=l(t,f)}else n>6&&d%n==4&&C(t);var h=l(O(p,d-n),t);a=h,s=0,(r=p)[4*(o=d)]=a[4*s],r[4*o+1]=a[4*s+1],r[4*o+2]=a[4*s+2],r[4*o+3]=a[4*s+3],d+=1}return p}(e),{encrypt:function(e){var t,n=e;for(p(n,r,0),t=1;t<=i-1;t+=1)C(n),a(n),u(n),p(n,r,4*t*4);return C(n),a(n),p(n,r,4*i*4),n},decrypt:function(e){var t,n=e;for(p(n,r,4*i*4),t=i-1;t>=1;t-=1)o(n),T(n),p(n,r,4*t*4),c(n);return o(n),T(n),p(n,r,0),n},clear:function(){},keyLength:t,blockSize:128}}},T=T||{};T.pkcsv7=function(e){return{pad:function(t){var n=t[t.length-1>=0?t.length-1:0],i=n.length;if(i===e){var r,a=[];for(r=0;r<e;r+=1)a.push(e);t.push(a)}else for(var o=e-i&255;n.length!==e;)n.push(o)},unpad:function(t){var n=!0;t.length%e!=0&&(n=!1);for(var i=t.slice(-e),r=i[i.length-1],a=0;a<e;a++){var o=e-a<=r,s=i[a]===r;n=(!o||s)&&n}var u=n?r:0;return t.length-=u,n}}};var O=function(e){var t=e.blockSize/8,n=T.pkcsv7(t),i=function(e){var t,n,i=[];for(t=0;t<e.length;t+=1){var r=e[t];for(n=0;n<r.length;n+=1)i.push(r[n])}return i};function r(e){var n=[];c=c.concat(e);for(var i=Math.floor(c.length/t),r=0;r<i;r++)n.push(c.slice(r*t,(r+1)*t));return c=c.slice(i*t),n}function a(t){for(var n,i=[],r=0;r<t.length;r++)n=s.xorVectors(u,t[r]),i.push(e.encrypt(n)),u=i[r];return i}function o(){c=[],l=[],u=null}var u,c=[],l=[];return{init:function(e){if(e.length!==t)throw new Error("Invalid iv size");u=e.slice()},encrypt:function(e){return this.processEncrypt(e),this.finishEncrypt()},processEncrypt:function(e){var t=a(r(e));l=l.concat(i(t))},finishEncrypt:function(){var e=1===c.length?[[c[0]]]:[c];n.pad(e);var t=l.concat(i(a(e)));return o(),t},decrypt:function(e){return this.processDecrypt(e),this.finishDecrypt()},processDecrypt:function(t){var n=function(t){for(var n,i,r=[],a=0;a<t.length;a+=1)n=t[a].slice(0,t[a].length),i=e.decrypt(n),r.push(s.xorVectors(u,i)),u=t[a];return r}(r(t));l=l.concat(i(n))},finishDecrypt:function(){var e=l;n.unpad(e);return o(),e}}},I=null;function A(){if(!(this instanceof A))throw new Error("create MsrcryptoPrng object with new keyword");var e,t,n,i,r=!1,a=1;function o(e){var t;for(t=e.length-1;t>=0&&(e[t]+=1,e[t]>=256&&(e[t]=0),!e[t]);t-=1);}function u(){e=s.getVector(32),t=s.getVector(16),n=32,i=48,a=1}function c(e,t){if((t=t||[0]).length>i)throw new Error("Incorrect entropy or additionalEntropy length");t=t.concat(s.getVector(i-t.length)),e=e.concat(s.getVector((i-e.length%i)%i));for(var n=0;n<e.length;n+=i){l(s.xorVectors(e.slice(n,n+i),t))}a=1}function l(r){for(var a=[],u=new C.aes(e);a.length<i;){o(t);var c=t.slice(0,16),l=u.encrypt(c);a=a.concat(l)}a=s.xorVectors(a,r),e=a.slice(0,n),t=a.slice(n)}function p(n,r){if(n>=65536)throw new Error("too much random requested");if(a>1<<24)throw new Error("Reseeding is required");if(r&&r.length>0){for(;r.length<i;)r=r.concat(s.getVector(i-r.length));l(r)}else r=s.getVector(i);for(var u=[],c=new C.aes(e);u.length<n;){o(t);var p=t.slice(0,t.length),d=c.encrypt(p);u=u.concat(d)}return u=u.slice(0,n),l(r),a+=1,u}return u(),{reseed:c,init:function(e,t){if(e.length<i)throw new Error("Initial entropy length too short");u(),c(e,t),r=!0},getBytes:function(e,t){if(!r)throw new Error("can't get randomness before initialization");return p(e,t)},getNonZeroBytes:function(e,t){if(!r)throw new Error("can't get randomness before initialization");for(var n,i=[];i.length<e;){n=p(e,t);for(var a=0;a<n.length;a+=1)0!==n[a]&&i.push(n[a])}return i.slice(0,e)}}}void 0!==e&&(O.workerEncrypt=function(e){var t;if(I||(I=O(C.aes(e.keyData))).init(e.algorithm.iv),"process"!==e.operationSubType)return"finish"===e.operationSubType?(t=I.finishEncrypt(),I=null,t):(t=I.encrypt(e.buffer),I=null,t);I.processEncrypt(e.buffer)},O.workerDecrypt=function(e){var t;if(I||(I=O(C.aes(e.keyData))).init(e.algorithm.iv),"process"!==e.operationSubType)return"finish"===e.operationSubType?(t=I.finishDecrypt(),I=null,t):(t=I.decrypt(e.buffer),I=null,t);I.processDecrypt(e.buffer)},O.generateKey=function(e){if(e.algorithm.length%8!=0)throw new Error;return{type:"keyGeneration",keyData:D.getBytes(Math.floor(e.algorithm.length/8)),keyHandle:{algorithm:e.algorithm,extractable:e.extractable,keyUsage:e.keyUsage,type:"secret"}}},O.importKey=function(e){var t=c.jwkToKey(e.keyData,e.algorithm,["k"]);return e.algorithm.length=8*t.k.length,{type:"keyImport",keyData:t.k,keyHandle:{algorithm:e.algorithm,extractable:e.extractable||t.extractable,keyUsage:e.keyUsage,type:"secret"}}},O.exportKey=function(e){return{type:"keyExport",keyHandle:c.keyToJwk(e.keyHandle,e.keyData)}},e.register("importKey","aes-cbc",O.importKey),e.register("exportKey","aes-cbc",O.exportKey),e.register("generateKey","aes-cbc",O.generateKey),e.register("encrypt","aes-cbc",O.workerEncrypt),e.register("decrypt","aes-cbc",O.workerDecrypt));var w,D=new A;i||(w=function(){function i(){var e;return{postMessage:function(t){try{e=u.jsCryptoRunner({data:t})}catch(e){return void this.onerror({data:e.description,type:"error"})}t.operationSubType&&"process"===t.operationSubType||this.onmessage({data:e})},onmessage:null,onerror:null,terminate:function(){}}}function o(e){var t,n,i;return{dispatchEvent:function(r){"error"!==r.type?(this.result=e(r.data),n.apply(t,[this.result])):i&&i.apply(t,[r.message?r.message:r])},promise:t=new Promise((function(e,t){n=e,i=t})),result:null}}function c(e){var t=o((function(e){return e=function(e){if(r&&e.pop)return new Uint8Array(e).buffer;return e}(e)}));return t.process=function(t){e.operationSubType="process",e.buffer=d.toArray(t),p.continueJob(this,d.clone(e))},t.finish=function(){e.operationSubType="finish",e.buffer=[],p.continueJob(this,d.clone(e))},t.abort=function(){p.abortJob(this)},t.onabort=null,t.onprogress=null,t.algorithm=e.algorithm||null,t.key=e.keyHandle||null,t}window.Promise||(window.Promise=function(e,t){if(!(this instanceof Promise))throw new Error("use 'new' keyword with Promise constructor");var n=null,i=null,r=[],a=[],o=[],s=[];this.then=function(e,t){var u;return n?(u=e(n.result))&&u.then?u:Promise.resolve(u):i?(u=t?t(i.result):i.result)&&u.then?u:Promise.resolve(u):(r.push(e),t&&a.push(t),new Promise((function(e,t){s.push(e),o.push(t)})))},this.catch=function(e){var t;return i?(t=e(i.result))&&t.then?t:Promise.resolve(t):(a.push(e),new Promise((function(e,t){s.push(e),o.push(t)})))};e((function(e){for(var t=0;t<r.length;t++){var i=r[t](e);i&&i.then?i.then(s[t]):s[t]&&s[t](i)}n={result:e}}),(function(e){for(var t=0;t<a.length;t++){var n=a[t](e);n&&n.then?n.then(s[t],o[t]):s[t]&&s[t](n)}i={result:e}}))},window.Promise.all=function(e){var t=[],n=0;function i(i,r){return function(a){t[i]=a,++n==e.length&&r(t)}}return new Promise((function(t,n){for(var r=0;r<e.length;r++)e[r].then(i(r,t)),e[r].catch((function(e){n(e)}))}))},window.Promise.race=function(e){var t=!1;function n(e){return function(n){t||(t=!0,e(n))}}return new Promise((function(t,i){for(var r=0;r<e.length;r++)e[r].then(n(t),n(i))}))},window.Promise.reject=function(e){return new Promise((function(t,n){n(e)}))},window.Promise.resolve=function(e){return new Promise((function(t,n){t(e)}))});var l=[];l.add=function(e,t){l.push({keyHandle:e,keyData:t})},l.remove=function(e){for(var t=0;t<l.length;t++)if(l[t].keyHandle===e)return void(l=l.splice(t,1))},l.lookup=function(e){for(var t=0;t<l.length;t++)if(l[t].keyHandle===e)return l[t].keyData;return null};var p=function(){var e=[],r=[],o=0;function s(){!function(t){for(var n=e.length-1;n>=0;n-=1)e[n].isWebWorker===t&&(e[n].terminate(),e.splice(n,1))}(!a);for(var t=0;t<e.length;t++)if(!e[t].busy)return e[t];return null}function u(t){for(var n=0;n<e.length;n++)if(e[n]===t)return t.terminate(),void e.splice(n,1)}function c(t){for(var n=0;n<e.length;n++)if(e[n].operation===t)return e[n];return null}function l(e,t){r.push({operation:e,data:t,id:o++})}function p(t){if(t.busy=!1,t.operation=null,a)if(r.length>0){var n=r.shift();h(n.operation,n.data)}else(function(){for(var t=0,n=0;n<e.length;n++)e[n].busy||(t+=1);return t})()>2&&u(t)}function d(n){var o;if(a)try{(o=new Worker(t)).postMessage({prngSeed:D.getBytes(48)}),o.isWebWorker=!0}catch(e){a=!1,y.forceSync=!0,(o=i()).isWebWorker=!1}else(o=i()).isWebWorker=!1;return o.operation=n,o.busy=!1,o.onmessage=function(e){for(var t=o.operation,n=0;n<r.length;n++)if(r[n].operation===o.operation){var i=r[n];return r.splice(n,1),void g(o,i.data)}t&&"process"!==e.data.type&&(p(o),t.dispatchEvent(e))},o.onerror=function(e){var t=o.operation;p(o),t.dispatchEvent(e)},function(t){e.push(t)}(o),o}function f(t,i){var r=null;if(a=n&&!y.forceSync,r=s(),a&&null===r&&e.length>=12)l(t,i);else{if(null===r&&(r=d(t)),null===r)throw l(t,i),new Error("could not create new worker");r.operation=t,r.busy=!0,g(r,i)}}function h(e,t){var n=c(e);n?g(n,t):f(e,t)}function g(e,t){if(a)e.data=t,e.postMessage(t);else{var n=(i=t,function(){return e.postMessage(i)});setTimeout(n,0)}var i}return{runJob:f,continueJob:h,abortJob:function(e){var t=c(e);t&&u(t)}}}(),d=s;var f=[{name:"algorithm",type:"Object",required:!0},{name:"keyHandle",type:"Object",required:!0},{name:"buffer",type:"Array",required:!1},{name:"signature",type:"Array",required:!0},{name:"format",type:"String",required:!0},{name:"keyData",type:"Object",required:!0},{name:"extractable",type:"Boolean",required:!1},{name:"keyUsage",type:"Array",required:!1},{name:"derivedKeyType",type:"Object",required:!0},{name:"length",type:"Number",required:!1},{name:"extractable",type:"Boolean",required:!0},{name:"keyUsage",type:"Array",required:!0}],h={encrypt:[0,1,2],decrypt:[0,1,2],sign:[0,1,2],verify:[0,1,3,2],digest:[0,2],generateKey:[0,6,7],importKey:[4,5,0,10,11],exportKey:[0,4,1,6,7],deriveKey:[0,1,8,6,7],deriveBits:[0,1,9],wrapKey:[1,1,0],unwrapKey:[2,0,1,6,7]};function g(e){var t=l.lookup(e);if(!t)throw new Error("key not found");return t}function m(t,n,i){var r=function(e,t){for(var n={operationType:e},i=h[e],r=0;r<i.length;r+=1){var a=f[i[r]],o=t[r];if(o){if(o.subarray&&(o=d.toArray(o)),"ArrayBuffer"==d.getObjectType(o)&&(o=d.toArray(o)),s.getObjectType(o)!==a.type)throw new Error(a.name);"algorithm"===a.name&&(o.name=o.name.toLowerCase(),o.iv&&(o.iv=d.toArray(o.iv)),o.salt&&(o.salt=d.toArray(o.salt)),o.additionalData&&(o.additionalData=d.toArray(o.additionalData)),o.hash&&!o.hash.name&&"String"===s.getObjectType(o.hash)&&(o.hash={name:o.hash})),n.hasOwnProperty(a.name)?n[a.name+"1"]=o:n[a.name]=o}else if(a.required)throw new Error(a.name)}return n}(t,n);!function(t,n){if(!e.exists(t,n))throw new Error("unsupported algorithm")}(t,r.algorithm.name),r.keyHandle&&(r.keyData=g(r.keyHandle)),r.keyHandle1&&(r.keyData1=g(r.keyHandle1)),r.algorithm&&r.algorithm.public&&(r.additionalKeyData=g(r.algorithm.public));var a=i?o((function(e){switch(e.type){case"keyGeneration":case"keyImport":case"keyDerive":return l.add(e.keyHandle,e.keyData),e.keyHandle;case"keyExport":return e.keyHandle;case"keyPairGeneration":return l.add(e.keyPair.publicKey.keyHandle,e.keyPair.publicKey.keyData),l.add(e.keyPair.privateKey.keyHandle,e.keyPair.privateKey.keyData),{publicKey:e.keyPair.publicKey.keyHandle,privateKey:e.keyPair.privateKey.keyHandle};default:throw new Error("Unknown key operation")}})):c(r);return(i||r.buffer||"deriveBits"===t||"wrapKey"===t)&&p.runJob(a,r),a.promise}var y={encrypt:function(e,t,n){return m("encrypt",arguments,0)},decrypt:function(e,t,n){return m("decrypt",arguments,0)},sign:function(e,t,n){return m("sign",arguments,0)},verify:function(e,t,n,i){return m("verify",arguments,0)},digest:function(e,t){return m("digest",arguments,0)},generateKey:function(e,t,n){return m("generateKey",arguments,1)},deriveKey:function(e,t,n,i,r){return m("deriveKey",arguments,1)},deriveBits:function(e,t,n){return m("deriveBits",arguments,0)},importKey:function(e,t,n,i,r){return m("importKey",arguments,1)},exportKey:function(e,t){return m("exportKey",[t.algorithm,e,t],1)},wrapKey:function(e,t,n,i){return m("wrapKey",arguments,0)},unwrapKey:function(e,t,n,i,r,a){return m("unwrapKey",arguments,1)}};return y}());var E,P={subtle:w,getRandomValues:function(e){var t,n=D.getBytes(e.length);for(t=0;t<e.length;t+=1)e[t]=n[t];return e},initPrng:function(e){var t=Object.prototype.toString.call(e);if("[object Array]"!==t&&"[object Uint8Array]"!==t)throw new Error("entropyData must be a Array or Uint8Array");E&&E.reseed(e),D.reseed(E.read(48)),!0},toBase64:function(e,t){return s.toBase64(e,!1)},base64ToString:function(e){return s.base64ToString(e)},url:t};if("undefined"!=typeof cryptoMath&&(P.cryptoMath=cryptoMath),"undefined"!=typeof testInterface&&(P.testInterface=testInterface),!i){(E=E||new function(){var e=[],t=new A,n=!1,i=!1,r=["Cookie","RedirectUri","ETag","x-ms-client-antiforgery-id","x-ms-client-request-id","x-ms-client-session-id","SubscriptionPool"];function a(){var a,o=[];for(a=0;a<48;a+=1)o[a]=Math.floor(256*Math.random());var c=window.crypto||window.msCrypto;if(c&&"function"==typeof c.getRandomValues&&window.Uint8Array){var l=new window.Uint8Array(48);c.getRandomValues(l),o=o.concat(Array.apply(null,l)),i=!0}var p=new XMLHttpRequest;for(a=0;a<r.length;a+=1)try{var d=p.getResponseHeader(r[a]);if(d){var f=s.stringToBytes(d);o=o.concat(f)}}catch(e){}i||(o=o.concat(e.splice(0,e.length)),u.startCollectors()),n?t.reseed(o):t.init(o),n=!0}function o(t){for(var n=0;n<t.length;++n)e.push(t[n]);e.length>=128&&u.stopCollectors()}var u={startCollectors:function(){if(!this.collectorsRegistered){if(window.addEventListener)window.addEventListener("mousemove",this.MouseEventCallBack,!0),window.addEventListener("load",this.LoadTimeCallBack,!0);else{if(!document.attachEvent)throw new Error("Can't attach events for entropy collection");document.attachEvent("onmousemove",this.MouseEventCallBack),document.attachEvent("onload",this.LoadTimeCallBack)}this.collectorsRegistered=1}},stopCollectors:function(){this.collectorsRegistered&&(window.removeEventListener?(window.removeEventListener("mousemove",this.MouseEventCallBack,1),window.removeEventListener("load",this.LoadTimeCallBack,1)):window.detachEvent&&(window.detachEvent("onmousemove",this.MouseEventCallBack),window.detachEvent("onload",this.LoadTimeCallBack)),this.collectorsRegistered=0)},MouseEventCallBack:function(e){var t=(new Date).valueOf(),n=e.x||e.clientX||e.offsetX||0,i=e.y||e.clientY||e.offsetY||0;o([255&t,t>>8&255,t>>16&255,t>>24&255,255&n,n>>8&255,255&i,i>>8&255])},LoadTimeCallBack:function(){var e=(new Date).valueOf();o([255&e,e>>8&255,e>>16&255,e>>24&255])}};return{init:function(){if(a(),!i)try{u.startCollectors()}catch(e){}},reseed:function(e){t.reseed(e)},read:function(e){if(!n)throw new Error("Entropy pool is not initialized.");var i=t.getBytes(e);return a(),i}}}).init();var R=E.read(48);D.init(R)}return P}();e.exports=i},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.addNotificationListener=function(e){this.listeners.push(e)},e.removeNotificationListener=function(e){for(var t=this.listeners.indexOf(e);t>-1;)this.listeners.splice(t,1),t=this.listeners.indexOf(e)},e.eventsSent=function(e){for(var t=this,n=function(n){i.listeners[n].eventsSent&&setTimeout((function(){return t.listeners[n].eventsSent(e)}),0)},i=this,r=0;r<this.listeners.length;++r)n(r)},e.eventsDropped=function(e,t){for(var n=this,i=function(i){r.listeners[i].eventsDropped&&setTimeout((function(){return n.listeners[i].eventsDropped(e,t)}),0)},r=this,a=0;a<this.listeners.length;++a)i(a)},e.eventsRetrying=function(e){for(var t=this,n=function(n){i.listeners[n].eventsRetrying&&setTimeout((function(){return t.listeners[n].eventsRetrying(e)}),0)},i=this,r=0;r<this.listeners.length;++r)n(r)},e.eventsRejected=function(e,t){for(var n=this,i=function(i){r.listeners[i].eventsRejected&&setTimeout((function(){return n.listeners[i].eventsRejected(e,t)}),0)},r=this,a=0;a<this.listeners.length;++a)i(a)},e.listeners=[],e}();t.default=i},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n(90),r=n(11),a=n(6),o='{ "kty": "oct", "k": "{0}", "extractable": true }',s=null!=window.crypto?window.crypto:i,u=function(){function e(){}return e.computeSHA256=function(t,n){return void 0===n&&(n=!0),new Promise((function(r,a){try{var o=e.textToUInt8Array(t,n),u=s.subtle.digest({name:"SHA-256"},o);u.then((function(t){if(e.verifyResult(t,a)){var n=Array.prototype.map.call(new Uint8Array(t),(function(e){return("00"+e.toString(16)).slice(-2)})).join("");r(i.toBase64(n))}}),(function(t){e.verifyResult(t,a)&&a(t.toString())}))}catch(e){a(e.toString())}}))},e.encryptAES=function(t,n,a){return new Promise((function(u,c){try{var l=Object(r.b)(o,e.base64ToBase64Url(t)),p=s.subtle.importKey("jwk",JSON.parse(l),{name:"AES-CBC"},!0,["encrypt","decrypt"]);p.then((function(t){try{var r=t,o=e.textToUInt8Array(i.base64ToString(n),!1),l=e.textToUInt8Array(a,!0),p={name:"AES-CBC",iv:o},d=s.subtle.encrypt(p,r,l);d.then((function(t){try{e.verifyResult(t,c)&&u(i.toBase64(e.bytesToText(t,!1)))}catch(e){c(e.toString())}}),(function(t){e.verifyResult(t,c)&&c(t.toString())}))}catch(e){c(e.toString())}}),(function(t){e.verifyResult(t,c)&&c(t)}))}catch(e){c(e.toString())}}))},e.decryptAES=function(t,n,a){return new Promise((function(u,c){try{var l=Object(r.b)(o,e.base64ToBase64Url(t)),p=s.subtle.importKey("jwk",JSON.parse(l),{name:"AES-CBC"},!0,["encrypt","decrypt"]);p.then((function(t){try{var r=t,o=e.textToUInt8Array(i.base64ToString(n),!1),l=e.textToUInt8Array(i.base64ToString(a),!1),p={name:"AES-CBC",iv:o},d=s.subtle.decrypt(p,r,l);d.then((function(t){try{e.verifyResult(t,c)&&u(e.bytesToText(t,!0))}catch(e){c(e.toString())}}),(function(t){e.verifyResult(t,c)&&c(t.toString())}))}catch(e){c(e.toString())}}),(function(t){e.verifyResult(t,c)&&c(t.toString())}))}catch(e){c(e.toString())}}))},e.textToUInt8Array=function(e,t){e=t?encodeURI(e):e;for(var n=[],i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return new Uint8Array(n)},e.bytesToText=function(e,t){var n=Object(a.convertArrayBufferToBinaryString)(e);return t?decodeURI(n):n},e.base64ToBase64Url=function(e){return e.replace(new RegExp("\\+","g"),"-").replace(new RegExp("/","g"),"_").replace(new RegExp("=","g"),"")},e.verifyResult=function(e,t){return null!=e||(t("result undefined"),!1)},e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(){function e(){}return e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.DELETE="DELETE",e}()},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
/**
* AWTTransmissionManagerCore.ts
* @author Abhilash Panwar (abpanwar)
* @copyright Microsoft 2017
*/
var i=n(186),r=n(60),a=n(208),o=n(188),s=n(120),u=n(191),c=n(76),l=function(){function e(){}return e.setEventsHandler=function(e){this._eventHandler=e},e.getEventsHandler=function(){return this._eventHandler},e.scheduleTimer=function(){var e=this,t=this._profiles[this._currentProfile][2];this._timeout<0&&t>=0&&!this._paused&&(this._eventHandler.hasEvents()?(0===t&&this._currentBackoffCount>0&&(t=1),this._timeout=setTimeout((function(){return e._batchAndSendEvents()}),t*(1<<this._currentBackoffCount)*1e3)):this._timerCount=0)},e.initialize=function(e){var t=this;this._newEventsAllowed=!0,this._config=e,this._eventHandler=new a.default(e.collectorUri,e.cacheMemorySizeLimitInNumberOfEvents,e.httpXHROverride,e.clockSkewRefreshDurationInMins),this._initializeProfiles(),o.default.initialize((function(e,n){if(t._config.canSendStatEvent("awt_stats")){var i=new s.default("awt_stats");for(var a in i.setEventPriority(r.AWTEventPriority.High),i.setProperty("TenantId",n),e)e.hasOwnProperty(a)&&i.setProperty(a,e[a].toString());u.default.getLogger(c.StatsApiKey).logEvent(i)}}))},e.setTransmitProfile=function(e){this._currentProfile!==e&&void 0!==this._profiles[e]&&(this.clearTimeout(),this._currentProfile=e,this.scheduleTimer())},e.loadTransmitProfiles=function(e){for(var t in this._resetTransmitProfiles(),e)if(e.hasOwnProperty(t)){if(3!==e[t].length)continue;for(var n=2;n>=0;--n)if(e[t][n]<0){for(var i=n;i>=0;--i)e[t][i]=-1;break}for(n=2;n>0;--n)if(e[t][n]>0&&e[t][n-1]>0){var r=e[t][n-1]/e[t][n];e[t][n-1]=Math.ceil(r)*e[t][n]}this._profiles[t]=e[t]}},e.sendEvent=function(e){this._newEventsAllowed&&(this._currentBackoffCount>0&&e.priority===r.AWTEventPriority.Immediate_sync&&(e.priority=r.AWTEventPriority.High),this._eventHandler.addEvent(e),this.scheduleTimer())},e.flush=function(e){var t=(new Date).getTime();!this._paused&&this._lastUploadNowCall+3e4<t&&(this._lastUploadNowCall=t,this._timeout>-1&&(clearTimeout(this._timeout),this._timeout=-1),this._eventHandler.uploadNow(e))},e.pauseTransmission=function(){this._paused||(this.clearTimeout(),this._eventHandler.pauseTransmission(),this._paused=!0)},e.resumeTransmision=function(){this._paused&&(this._paused=!1,this._eventHandler.resumeTransmission(),this.scheduleTimer())},e.flushAndTeardown=function(){o.default.teardown(),this._newEventsAllowed=!1,this.clearTimeout(),this._eventHandler.teardown()},e.backOffTransmission=function(){this._currentBackoffCount<4&&(this._currentBackoffCount++,this.clearTimeout(),this.scheduleTimer())},e.clearBackOff=function(){this._currentBackoffCount>0&&(this._currentBackoffCount=0,this.clearTimeout(),this.scheduleTimer())},e._resetTransmitProfiles=function(){this.clearTimeout(),this._initializeProfiles(),this._currentProfile=i.AWT_REAL_TIME,this.scheduleTimer()},e.clearTimeout=function(){this._timeout>0&&(clearTimeout(this._timeout),this._timeout=-1,this._timerCount=0)},e._batchAndSendEvents=function(){var e=r.AWTEventPriority.High;this._timerCount++,this._timerCount*this._profiles[this._currentProfile][2]===this._profiles[this._currentProfile][0]?(e=r.AWTEventPriority.Low,this._timerCount=0):this._timerCount*this._profiles[this._currentProfile][2]===this._profiles[this._currentProfile][1]&&(e=r.AWTEventPriority.Normal),this._eventHandler.sendEventsForPriorityAndAbove(e),this._timeout=-1,this.scheduleTimer()},e._initializeProfiles=function(){this._profiles={},this._profiles[i.AWT_REAL_TIME]=[4,2,1],this._profiles[i.AWT_NEAR_REAL_TIME]=[12,6,3],this._profiles[i.AWT_BEST_EFFORT]=[36,18,9]},e._newEventsAllowed=!1,e._currentProfile=i.AWT_REAL_TIME,e._timeout=-1,e._currentBackoffCount=0,e._paused=!1,e._timerCount=0,e._lastUploadNowCall=0,e}();t.default=l},,function(e,t,n){"use strict";var i,r=n(0),a=n(4),o=n(12),s=n(1),u=n(142),c=n(200),l=n.n(c),p=n(201),d=n.n(p),f=n(148),h=n.n(f),g=n(149),m=n.n(g),y=n(150),v=n.n(y),S=n(202),b=n.n(S),_=n(151),C=n.n(_),T=n(88),O=n(34),I=n(48),A=n(73),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.initializeComponent=function(){this.SuiteApi.User.IsInitialized&&this.SuiteApi.User.getOwaUserConfiguration().then((function(e){A.a.populate(e)})).catch((function(){}))},t.prototype.getReminders=function(e,t,n,i){var r=this;return void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=!0),void 0===i&&(i=A.a.Instance.timeZone),Object(u.setTimezone)(i),new Promise((function(i,a){var o={MaxItems:0};null!==e&&(o.BeginTime=Object(I.b)(e)),null!=t&&(o.EndTime=Object(I.b)(t)),n||(o.ReminderGroupType=0);var s=l()({Header:Object(T.getJsonRequestHeader)(),Body:d()(o)});r.SuiteApi.Service.callSuiteServiceAction("GetReminders",s,!1).then((function(e){null==e||null==e.Body||null==e.Body.Reminders||0===e.Body.Reminders.length?i({ResponseCode:"",Reminders:[]}):i(e.Body)})).catch((function(e){return a(e)}))}))},t.prototype.dismissReminders=function(e,t){var n=this;return void 0===t&&(t=A.a.Instance.timeZone),null==e||0===e.length?Promise.resolve(b()({})):new Promise((function(t,i){var r=e.map((function(e){return C()({ActionType:0,ItemId:h()(e)})})),a=m()({Header:Object(T.getJsonRequestHeader)(),Body:v()({ReminderItemActions:r})});n.SuiteApi.Service.callSuiteServiceAction("PerformReminderAction",a).then((function(e){t(e.Body)})).catch((function(e){return i(e)}))}))},t.prototype.snoozeReminders=function(e,t,n){var i=this;return null==e||0===e.length?Promise.resolve(null):new Promise((function(n,r){var a=e.map((function(e){return C()({ActionType:1,ItemId:h()(e),NewReminderTime:I.a.generateISO8601DateTimeMsStringWithOffset(I.a.parseISO8601DateTime(t))})})),o=m()({Header:Object(T.getJsonRequestHeader)(),Body:v()({ReminderItemActions:a})});i.SuiteApi.Service.callSuiteServiceAction("PerformReminderAction",o).then((function(e){n(e.Body)})).catch((function(e){return r(e)}))}))},t}(O.a),D=n(3),E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.initializeComponent=function(){},t.prototype.getMruDocuments=function(e,t){var n=this;return new Promise((function(i,r){var o=Object(D.I)("{0}?rs={1}&show={2}&sort=date",n.SuiteApi.Configuration.MruOauthEndpointUrl,n.SuiteApi.Configuration.CultureName,e.toString());null!=t&&(o+="&apps="+t);var u={method:a.b.GET,resource:n.SuiteApi.Configuration.MruOauthResourceUrl,url:o};n.SuiteApi.Service.callEndpointWithOauthToken(u).then((function(e){Object(s.e)().perfMarker("shell_mru_fetch_complete"),i(e)})).catch((function(e){a.i.genericServiceRejection("Documents_GetMRUDocuments_Failed",6,e,r)}))}))},t.prototype.prefetchMruAccessToken=function(){null!=this.SuiteApi.Configuration.MruOauthResourceUrl&&this.SuiteApi.Service.prefetchAccessToken(this.SuiteApi.Configuration.MruOauthEndpointUrl,this.SuiteApi.Configuration.MruOauthResourceUrl)},t.prototype.initializeGraphApi=function(){null!=this.SuiteApi.Configuration.GraphOauthResourceUrl&&this.SuiteApi.Service.prefetchAccessToken(this.SuiteApi.Configuration.GraphOauthEndpointUrl,this.SuiteApi.Configuration.GraphOauthResourceUrl)},t.prototype.createNewDocument=function(e){var t=this,n={name:e,file:{},"@microsoft.graph.conflictBehavior":"rename"},i={method:a.b.POST,resource:this.SuiteApi.Configuration.GraphOauthResourceUrl,url:this.SuiteApi.Configuration.GraphOauthEndpointUrl,headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(n)};return new Promise((function(e,n){t.SuiteApi.Service.callEndpointWithOauthToken(i).then(e).catch((function(e){a.i.genericServiceRejection("Documents_CreateNewDocument_Failed",4,e,n)}))}))},t.prototype.getDocumentUrl=function(e,t){var n,i=this;return new Promise((function(r){null!=e?i.createNewDocument(e).then((function(e){null!=e&&null!=e.webUrl?-1===(n=e.webUrl.replace(new RegExp("([?&])action[^&]*"),"$1action=editnew")).lastIndexOf("action=editnew")&&(n=Object(D.u)(n,"action","editnew")):n=t,r(n)})):r(n=t)}))},t}(O.a),P=function(){function e(){var e=a.j.Instance.suiteServiceHostPageBaseUrl+"/notificationchannel";this.subscriptionsMap={};var t={requestType:0,requestPayload:{channelInit:{channelEndpoint:e,pingInterval:3e5,backoffMaximum:64e3,minimumReconnectInterval:1e3,readyCheckTimeout:6e4},timezone:A.a.Instance.timeZone}};this.requestExecutor=a.e.SuiteServiceInstance,this.requestExecutor.executeSignalRRequest(this.wrapSignalRRequest(t))}return e.prototype.subscribe=function(e,t){var n=e.subscriptionId;n in this.subscriptionsMap?this.subscriptionsMap[n].push(t):this.subscriptionsMap[n]=[t];var i={requestType:1,requestPayload:e};this.requestExecutor.executeSignalRRequest(this.wrapSignalRRequest(i))},e.prototype.handleIFrameNotificationMessage=function(e){if(null!=e){var t=JSON.parse(e);if(null!=t.id){var n=this.subscriptionsMap[t.id];null!=n&&n.forEach((function(e){e(t)}))}}},e.prototype.wrapSignalRRequest=function(e){return{url:a.j.Instance.suiteServiceHostPageBaseUrl,requestObject:e,success:function(e){},error:function(e,t,n){}}},e}(),R=function(){function e(){}return e.prototype.subscribe=function(e,t){window.owaNotification.subscribe(e,t)},e.prototype.handleIFrameNotificationMessage=function(e){},e}(),k=n(31),N=function(e){function t(t){var n=e.call(this)||this;return n.initialized=!1,n.workloadID=t,n}return Object(r.__extends)(t,e),t.prototype.subscribe=function(e,t){this.notificationHandler.subscribe(e,t)},Object.defineProperty(t.prototype,"Initialized",{get:function(){return this.initialized},enumerable:!0,configurable:!0}),t.prototype.initializeComponent=function(){var e=this;Object(k.c)(this.workloadID)?void 0===window.owaNotification?window.addEventListener("owaNotificationLoaded",this.owaNotificationLoaded,!1):this.owaNotificationLoaded():(this.notificationHandler=new P,a.d.NotificationCallback=function(t){return e.handleNotification(t)},this.initialized=!0)},t.prototype.handleNotification=function(e){this.notificationHandler.handleIFrameNotificationMessage(e)},t.prototype.owaNotificationLoaded=function(){this.notificationHandler=new R,this.initialized=!0},t.prototype.getSystemAlertsFromAdmin=function(){var e=this;return new Promise((function(t,n){e.SuiteApi.Service.callAdminServiceFunction("Microsoft.Online.BOX.Admin.UI.SystemAlert.GetAlerts").then((function(e){return t(e)})).catch((function(e){a.i.genericServiceRejection("Notifications_GetSystemAlertsFromAdmin_Failed",4,e,n)}))}))},t}(O.a),x=n(184),L=n(84),j=n(6);function U(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return JSON.stringify({ResultCode:e,Message:t,Details:n})}!function(e){e.UpdateConfig="UpdateConfig",e.UpdateToken="UpdateToken",e.ChangeTheme="ChangeTheme"}(i||(i={}));var M=function(e){function t(){var t=e.call(this)||this;return t.opxFrameToComponentMap={},t.opxComponentData={},t.handleIncomingOpxMessage=function(e){var n,i=!1,r=t.opxFrameToComponentMap[e.instanceId];if(null!=r)switch(e.notificationType){case L.a.LifeCycle:switch(e.asyncContext){case L.b.GetConfig:var a=null===(n=t.opxComponentData[r])||void 0===n?void 0:n.opxComponentConfiguration;null!=a&&(i=t.onGetConfigRequest(e.instanceId,a));break;case L.b.RefreshToken:i=t.onRefreshTokenRequest(e.instanceId,"");break;case L.b.Closed:i=t.onOpxClosedRequest(r);break;case L.b.PageReady:case L.b.FatalError:i=t.onReadyOrError(r,e)}}return i},t.validateIncomingOpxMessage=function(e){return"OPX"===e.apiName},t.validateIncomingOpxMessageOrigin=function(e){return e.toLowerCase()===t.SuiteApi.Configuration.TokenFactoryIframeOrigin},t.onGetConfigRequest=function(e,n){return t.SuiteApi.Service.callOpxIframe({targetOpxInstance:e,message:{eventType:i.UpdateConfig,asyncResult:n}}),!0},t.onRefreshTokenRequest=function(e,n){return t.SuiteApi.Service.callOpxIframe({targetOpxInstance:e,message:{eventType:i.UpdateToken,asyncResult:n}}),!0},t.onOpxClosedRequest=function(e){var t=null;switch(e){case x.a.MyDay:t="MyDay"}return null!=t&&window.O365Shell.FlexPane.CloseFlexPaneForProvider(t),!0},t.onReadyOrError=function(e,n){var i=t.opxComponentData[e];if(!i)throw new Error("Message received for an OPX component that no longer exists.");if(i.initCompleteCallback&&!i.initializationResult){var r=n.asyncContext===L.b.PageReady?0:8;i.initializationResult=r,i.initCompleteCallback(r)}else i.messageListener&&i.messageListener(n);return!0},t}return Object(r.__extends)(t,e),t.prototype.initializeComponent=function(){this.opxSystemConfigurationPromise=this.initializeOpxOrchestrator()},t.prototype.prefetchOpxAccessToken=function(e){var t=this;this.opxSystemConfigurationPromise.then((function(n){null==t.opxSystemConfiguration&&(t.opxSystemConfiguration=n);var i=t.opxSystemConfiguration.OpxEndpoints[e];void 0!==i&&t.SuiteApi.Service.prefetchAccessToken(i.OpxEndpointUrl,i.OpxOAuthResourceUrl)})).catch((function(){}))},t.prototype.initializeOpx=function(e,t,n,i){var r=this,a=document.getElementById(t);return a||Promise.reject(U(2,"Frame with name not found.",t)),new Promise((function(o,u){r.opxSystemConfigurationPromise.then((function(c){null==r.opxSystemConfiguration&&(r.opxSystemConfiguration=c),r.opxFrameToComponentMap[t]=e,r.opxComponentData[e]={frameID:t,opxComponentConfiguration:n,initCompleteCallback:function(t){switch(t){case 0:r.opxComponentData[e].initializationResult=0,o();break;case 8:r.opxComponentData[e].initializationResult=8,u(U(8,"OPX loaded with fatal error."))}},messageListener:i},a.onerror=function(e,t,n,i,r){var a=JSON.stringify(null!=e?e:"Script error");Object(s.e)().exception(a,6,r,t,n,i),u(U(5,"OPX frame loaded with error.",a))},a.src=r.createOpxFrameUrl(e,t)})).catch((function(e){u(e)}))}))},t.prototype.changeTheme=function(e,t,n){var r=this.opxComponentData[e];if(0!==r.initializationResult)return Promise.reject("Theme cannot be changed before OPX is in the operational state.");var a=r.frameID,o={UseDarkMode:n};return n?o.DarkPalette=t:o.LightPalette=t,this.SuiteApi.Service.callOpxIframe({targetOpxInstance:a,message:{eventType:i.ChangeTheme,asyncResult:o}})},t.prototype.createOpxFrameUrl=function(e,t){if(null==this.opxSystemConfiguration||null==this.opxSystemConfiguration.OpxRootUrlLowerCase||null==this.opxSystemConfiguration.OpxEndpoints[e]||null==this.opxSystemConfiguration.OpxEndpoints[e].OpxEndpointUrl)throw new Error("OPX system configuration incomplete.");return""+this.opxSystemConfiguration.OpxRootUrlLowerCase+this.opxSystemConfiguration.OpxEndpoints[e].OpxEndpointUrl+"?cspoff=true&hostApp=o365shell&isanonymous=true&frameName="+j.TokenFactoryIFrameID+"&opxInstanceId="+t},t.prototype.initializeOpxOrchestrator=function(){var e=this;return new Promise((function(t,n){e.fetchSystemConfiguration().then((function(i){e.SuiteApi.Service.registerOpxHost().then((function(){e.registerOpxMessageListener(),t(i)})).catch((function(e){n(U(4,"Failed to register OPX with host.",e))}))})).catch((function(e){n(U(3,"Failed to fetch OPX system configuration.",e))}))}))},t.prototype.fetchSystemConfiguration=function(){return Promise.resolve({OpxEndpoints:{MyDay:{OpxEndpointUrl:"/calendar/opxdeeplink/myday",OpxOAuthResourceUrl:"https://outlook.office.com/calendar/opxdeeplink/myday"}},OpxRootUrlLowerCase:"https://outlook.office.com",OpxSupported:!0})},t.prototype.registerOpxMessageListener=function(){this.SuiteApi.Service.registerPostMessageHandler({handleMessage:this.handleIncomingOpxMessage,validateMessage:this.validateIncomingOpxMessage,validateOrigin:this.validateIncomingOpxMessageOrigin})},t}(O.a),F=n(203),B=n.n(F),W=n(82),q=n(11),H=n(14),G=n(83),z=function(){function e(e){this.userTheme=e}return e.prototype.GetUserThemeId=function(){return Object(s.g)().getCurrentThemeId()},e.prototype.ChangeTheme=function(e){},e.prototype.SaveTheme=function(e,t){var n=this;return new Promise((function(i,r){n.userTheme.setUserTheme(e,t).then((function(e){e.O365Success||e.OwaSuccess?i():r(new Error("SaveThemeFailure"))})).catch(r)}))},e.prototype.SaveDarkTheme=function(e){var t=this;return new Promise((function(n,i){t.userTheme.setUserThemeSettingsInWCSS(e).then((function(e){e.O365Success||e.OwaSuccess?n():i(new Error("SaveThemeFailure"))})).catch(i)}))},e.prototype.SetUserThemesData=function(e){Object(D.L)().dispatch(Object(D.db)(e))},e}(),V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.initializeComponent=function(){var e=this;Object(s.g)().setUserThemesHandler(new z(this)),this.SuiteApi.User.IsInitialized&&this.SuiteApi.Configuration.IsConsumer&&Object(s.b)().subscribe("ConsumerShellDataAvailable",(function(t){var n=t.ShellClientData.ThemeData.ThemeSettings.ThemeID;e.SuiteApi.User.getOwaUserConfiguration().then((function(t){t&&(null!=n&&n===t.UserOptions.ThemeStorageId||e.setUserThemeInWCSS(""===t.UserOptions.ThemeStorageId?"Base":t.UserOptions.ThemeStorageId,!0))})).catch((function(){}))}),!0)},t.prototype.loadUserThemeChoices=function(){return this.checkInitialized(),Object(s.g)().loadAllThemeJson()},t.prototype.setUserTheme=function(e,t,n){var i=this;void 0===n&&(n=!1),this.checkInitialized(),this.clearUserThemeCache();var r=e=e.replace(/^\w/,(function(e){return e.toUpperCase()}));return e.toLowerCase()===H.DefaultThemeId&&t&&(r="basewithofficethemepreferred"),n?W.b((function(){return i.setUserThemeInExchange(r,!1)}),2):W.b((function(){return i.setUserThemeInWCSS(e,e.toLowerCase()===H.DefaultThemeId&&t)}),2).then((function(){return W.b((function(){return i.setUserThemeInExchange(r,!0)}),2)}))},t.prototype.setUserThemeInWCSS=function(e,t){var n=this;return new Promise((function(i,r){var o={url:Object(q.b)(n.SuiteApi.Configuration.IsConsumer?"{0}/api/settings/usertheme":"{0}/api/settings/theme",n.SuiteApi.Configuration.TokenFactoryIframeOrigin),resource:n.SuiteApi.Configuration.TokenFactoryIframeOrigin,method:a.b.PUT,headers:G.b,body:JSON.stringify({ThemeID:e,PreferOfficeTheme:t})};n.SuiteApi.Service.callEndpointWithOauthToken(o).then((function(e){i({OwaSuccess:void 0,O365Success:!0})})).catch((function(e){a.i.genericServiceRejection("Settings_SetUserThemeInWCSS_Failed",6,e,r)}))}))},t.prototype.setUserThemeSettingsInWCSS=function(e){var t=this;return new Promise((function(n,i){var r={url:Object(q.b)("{0}/api/settings/usertheme",t.SuiteApi.Configuration.TokenFactoryIframeOrigin),resource:t.SuiteApi.Configuration.TokenFactoryIframeOrigin,method:a.b.PATCH,headers:G.b,body:JSON.stringify({IsDarkmode:e})};t.SuiteApi.Service.callEndpointWithOauthToken(r).then((function(e){n({O365Success:!0})})).catch((function(e){a.i.genericServiceRejection("Settings_SetUserThemeSettingsInWCSS_Failed",6,e,i)}))}))},t.prototype.setUserThemeInExchange=function(e,t){var n=this;return new Promise((function(i,r){var o={ThemeId:e,SkipO365Call:t},s={request:B()(o)};n.SuiteApi.Service.callSuiteServiceAction("SetUserTheme",s).then((function(e){i({OwaSuccess:e.OwaSuccess,O365Success:e.O365Success||t})})).catch((function(e){a.i.genericServiceRejection("Settings_SetUserThemeInExchange_Failed",6,e,r)}))}))},t.prototype.clearUserThemeCache=function(){var e=this;this.SuiteApi.Configuration.ClearThemeCacheData&&0!==this.SuiteApi.Configuration.ClearThemeCacheData.length&&this.SuiteApi.Configuration.ClearThemeCacheData.map((function(t){if(null!=t.WorkloadUrl&&t.WorkloadUrl.length>0&&(!t.NoRequestInSameWorkload||e.SuiteApi.Configuration.WorkloadId.toLowerCase()!==t.WorkloadId.toLowerCase())&&null!=t.RequestType&&t.RequestType.length>0&&("img"===t.RequestType.toLowerCase()||"iframe"===t.RequestType.toLowerCase())){var n=document.createElement(t.RequestType);n.setAttribute("src",t.WorkloadUrl),n.setAttribute("style","display:none"),"iframe"===t.RequestType.toLowerCase()&&(n.addEventListener("load",(function(){return document.body.removeChild(n)})),document.body.appendChild(n))}}))},t}(O.a),K=n(204),Z=n.n(K),Q=n(205),X=n.n(Q),J=n(182),Y=null,$=a.f.SuiteServiceApiRelativePath+"LanguageTimezone",ee=null,te=null,ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.initializeComponent=function(){null!=(Y=this.SuiteApi.Configuration.GraphOauthResourceUrl)&&(Y=Object(D.I)("{0}/{1}",Y,"v1.0/me"),ee=Object(D.I)("{0}/{1}",Y,"outlook/supportedLanguages"),te=Object(D.I)("{0}/{1}",Y,"outlook/supportedTimeZones"))},t.prototype.getLanguageAndTimeZone=function(){return this.SuiteApi.Configuration.IsOwa||this.SuiteApi.Configuration.UserHasExchangeLicense?this.getOwaLanguageAndTimeZone():this.getSuiteLanguage()},t.prototype.getLanguageChoices=function(){return this.SuiteApi.Configuration.IsOwa||this.SuiteApi.Configuration.UserHasExchangeLicense?this.getOwaLanguageChoices():this.getSuiteLanguageChoices()},t.prototype.getTimeZoneChoices=function(){var e=this;return new Promise((function(t,n){var i={url:te,method:a.b.GET};e.SuiteApi.Service.callEndpointWithOauthToken(i).then((function(e){t(e.value)})).catch((function(e){a.i.genericServiceRejection("Settings_GetTimeZoneChoices_Failed",6,e,n)}))}))},t.prototype.getDateTimeFormats=function(e){var t=this;return new Promise((function(n,i){var r={url:Object(D.I)("{0}/api/settings/datetimeformats?cultureName={1}",t.SuiteApi.Configuration.TokenFactoryIframeOrigin,e),resource:t.SuiteApi.Configuration.TokenFactoryIframeOrigin,method:a.b.GET,headers:G.b};t.SuiteApi.Service.callEndpointWithOauthToken(r).then(n).catch((function(e){a.i.genericServiceRejection("Settings_GetDateTimeFormats_Failed",6,e,i)}))}))},t.prototype.setLanguageAndTimeZone=function(e){return this.SuiteApi.Configuration.IsOwa||this.SuiteApi.Configuration.UserHasExchangeLicense?this.setOwaLanguageAndTimeZone(e):this.setSuiteLanguage(e.CurrentCultureName)},t.prototype.setSuiteLanguage=function(e){var t=this;return new Promise((function(n,i){var r={url:Y,method:a.b.PATCH,headers:G.a,body:JSON.stringify({preferredLanguage:e})};t.SuiteApi.Service.callEndpointWithOauthToken(r).then((function(e){n()})).catch((function(e){a.i.genericServiceRejection("Settings_SetSuiteLanguage_Failed",6,e,i)}))}))},t.prototype.setOwaLanguageAndTimeZone=function(e){var t=this;return this.SuiteApi.Configuration.IsOwsLanguageTimezoneCallEnabled?new Promise((function(n,i){e.CurrentCultureLcid=null;var r={Language:e.CurrentCultureName,TimeZone:e.CurrentTimeZone,DateFormat:e.CurrentDateFormat,TimeFormat:e.CurrentTimeFormat},o=X()({Header:Object(T.getJsonRequestHeader)(),Options:r});t.SuiteApi.Service.callSuiteServiceActionWithAdditionalHeaders("SetMailboxRegionalConfiguration",o,null).then((function(i){t.setSuiteLanguage(e.CurrentCultureName),n()})).catch((function(e){a.i.genericServiceRejection("Settings_SetOwsOwaLanguageAndTimeZone_Failed",6,e,i)}))})):new Promise((function(n,i){e.CurrentCultureLcid=null,t.SuiteApi.Service.callO365SuiteServiceAction($,e,a.b.PUT).then(n).catch((function(e){a.i.genericServiceRejection("Settings_SetLanguageAndTimeZoneViaOwa_Failed",6,e,i)}))}))},t.prototype.getSuiteLanguageChoices=function(){return new Promise((function(e,t){J?e(J):t(new Error("Supported languages not found"))}))},t.prototype.getOwaLanguageChoices=function(){var e=this;return new Promise((function(t,n){var i={url:ee,method:a.b.GET};e.SuiteApi.Service.callEndpointWithOauthToken(i).then((function(e){var n=e.value.map((function(e){return{Locale:e.locale,DisplayName:e.displayName}}));t(n)})).catch((function(e){a.i.genericServiceRejection("Settings_GetOwaLanguageChoices_Failed",6,e,n)}))}))},t.prototype.getSuiteLanguage=function(){var e=this;return new Promise((function(t,n){var i={url:Y,method:a.b.GET};e.SuiteApi.Service.callEndpointWithOauthToken(i).then((function(e){var n={CurrentCultureName:e.preferredLanguage};t(n)})).catch((function(e){a.i.genericServiceRejection("Settings_GetSuiteLanguage_Failed",6,e,n)}))}))},t.prototype.getOwaLanguageAndTimeZone=function(){var e=this;return this.SuiteApi.Configuration.IsOwsLanguageTimezoneCallEnabled?new Promise((function(t,n){var i=Z()({Header:Object(T.getJsonRequestHeader)(),VerifyDefaultFolderNameLanguage:!1});e.SuiteApi.Service.callSuiteServiceActionWithAdditionalHeaders("GetMailboxRegionalConfiguration",i,null).then((function(e){var n=e.Options,i={CurrentCultureLcid:0,CurrentCultureName:n.Language,CurrentTimeZone:n.TimeZone,CurrentDateFormat:n.DateFormat,CurrentTimeFormat:n.TimeFormat};t(i)})).catch((function(e){a.i.genericServiceRejection("Settings_GetOwsOwaLanguageAndTimeZone_Failed",6,e,n)}))})):new Promise((function(t,n){e.SuiteApi.Service.callO365SuiteServiceAction($,null,a.b.GET).then((function(e){var n=e.Body.Configuration;t(n)})).catch((function(e){a.i.genericServiceRejection("Settings_GetOwaLanguageAndTimeZone_Failed",6,e,n)}))}))},t}(O.a),ie=n(91),re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.initializeComponent=function(){},t.prototype.getNotificationPreferences=function(e){var t=this;return new Promise((function(n,i){t.SuiteApi.User.getOwaUserConfiguration().then((function(t){var i=null;null!=t.UserOptions&&(i=Object(ie.f)(t,e)),n(i)})).catch((function(e){Object(s.e)().exception("Settings_GetNotificationPreferences_Failed",6,e),i(e)}))}))},t.prototype.setNotificationPreferences=function(e){var t=this;return new Promise((function(n,i){var r=0;e.EnableNewItemNotify&&(r|=2),e.EnableNewItemSoundNotify&&(r|=1);var o={body:{EnableReminders:e.EnableReminders,EnableReminderSound:e.EnableReminderSound,NewItemNotify:r},header:null};return t.SuiteApi.Service.callSuiteServiceAction("SetNotificationSettings",o).then(n).catch((function(e){a.i.genericServiceRejection("Settings_SetNotificationPreferences_Failed",6,e,i)}))}))},t}(O.a),ae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.initializeComponent=function(){this.userTheme=null==this.SuiteApi.Configuration.IUserThemeOverride?new V:this.SuiteApi.Configuration.IUserThemeOverride,this.languageAndTimeZone=null==this.SuiteApi.Configuration.ILanguageAndTimeZoneOverride?new ne:this.SuiteApi.Configuration.ILanguageAndTimeZoneOverride,this.notificationPreferences=null==this.SuiteApi.Configuration.INotificationPreferencesOverride?new re:this.SuiteApi.Configuration.INotificationPreferencesOverride,this.userTheme.initialize(this.SuiteApi),this.languageAndTimeZone.initialize(this.SuiteApi),this.notificationPreferences.initialize(this.SuiteApi)},t.prototype.loadUserThemeChoices=function(){return this.userTheme.loadUserThemeChoices()},t.prototype.setUserTheme=function(e,t,n){return void 0===n&&(n=!1),this.userTheme.setUserTheme(e,t,n)},t.prototype.getLanguageAndTimeZone=function(){return this.languageAndTimeZone.getLanguageAndTimeZone()},t.prototype.getLanguageChoices=function(){return this.languageAndTimeZone.getLanguageChoices()},t.prototype.getTimeZoneChoices=function(){return this.languageAndTimeZone.getTimeZoneChoices()},t.prototype.getDateTimeFormats=function(e){return this.languageAndTimeZone.getDateTimeFormats(e)},t.prototype.setLanguageAndTimeZone=function(e){return this.languageAndTimeZone.setLanguageAndTimeZone(e)},t.prototype.getNotificationPreferences=function(e){return this.notificationPreferences.getNotificationPreferences(e)},t.prototype.setNotificationPreferences=function(e){return this.notificationPreferences.setNotificationPreferences(e)},t}(O.a),oe=n(67),se=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.initializeComponent=function(){},Object.defineProperty(t.prototype,"OwaUserConfig",{get:function(){return this.userConfig},enumerable:!0,configurable:!0}),t.prototype.getOwaUserConfiguration=function(){var e=this;if(null==this.userConfigPromise){this.userConfigPromise=new Promise((function(t,n){var i={command:a.c.OwaUserConfig,timeout:1e4},r=function(){e.SuiteApi.Service.callSuiteServiceAction("GetOwaUserConfiguration",{}).then((function(i){if(e.userConfig=i,null!=e.userConfig&&""!==e.userConfig)e.onOwaUserConfigSucceeded(t);else{var r=new a.a("null OwaUserConfiguration received from server");Object(s.e)().exception("User_GetOwaUserConfiguration_NullConfig",4,r),n(r)}})).catch((function(e){a.i.genericServiceRejection("User_GetOwaUserConfiguration_Failed",4,e,n)}))};if(e.SuiteApi.Configuration.IsOwa)r();else{i.success=function(n){e.userConfig=n.responseObject,"GetOwaUserConfiguration"===a.j.Instance.configuration.StartupActionName&&e.SuiteApi.Service.setStartupActionCompleted(),e.onOwaUserConfigSucceeded(t)},i.error=function(e,t,n){Object(s.e)().exception("GetOwaUserConfiguration_ContextUnavailable",4,new a.a(n,t)),r()};var o=a.e.SuiteServiceInstance;null==o?n(new a.a("SuiteService",-1011)):o.getOwaUserConfiguration(i)}}));var t=window.setTimeout((function(){return Object(s.e)().tag("User_GetOwaUserConfiguration_MessageTimeout",6)}),15e3);this.userConfigPromise.then((function(){return clearTimeout(t)})).catch((function(){return clearTimeout(t)}))}return this.userConfigPromise},t.prototype.getDaysUntilPasswordExpiration=function(){var e=this;return new Promise((function(t,n){e.SuiteApi.Service.callSuiteServiceAction("GetDaysUntilPasswordExpiration",{}).then(t).catch((function(e){a.i.genericServiceRejection("User_GetDaysUntilPasswordExpiration_Failed",6,e,n)}))}))},t.prototype.getOwaUserOofSettings=function(){var e=this;return new Promise((function(t,n){e.SuiteApi.Service.callSuiteServiceAction("GetOwaUserOofSettings",{}).then(t).catch((function(e){a.i.genericServiceRejection("User_GetOwaUserOofSettings_Failed",6,e,n)}))}))},t.prototype.getPhotoFromGraph=function(){var e=this,t={method:a.b.GET,resource:this.SuiteApi.Configuration.GraphOauthResourceUrl,url:this.SuiteApi.Configuration.GraphOauthResourceUrl+"/v1.0/me/photo/$value",binaryStringResponseBody:!0};return new Promise((function(n,i){e.SuiteApi.Service.callEndpointWithOauthToken(t).then((function(e){n(window.btoa(e))})).catch((function(e){404===e.errorInfo.HttpStatus?n(""):a.i.genericServiceRejection("User_GetPhotoFromGraph_Failed",4,e,i)}))}))},t.prototype.prefetchGraphToken=function(){var e=this;return new Promise((function(t,n){null!=e.SuiteApi.Configuration.GraphOauthResourceUrl?e.SuiteApi.Service.prefetchAccessToken(e.SuiteApi.Configuration.GraphOauthResourceUrl+"/v1.0/me/photo/$value",e.SuiteApi.Configuration.GraphOauthResourceUrl).then(t).catch(n):n()}))},t.prototype.uploadPhotoToGraph=function(e){var t=this,n=e.split(","),i=n[0].split(":")[1].split(";")[0],r=n[1],o={method:a.b.PUT,headers:{"Content-Type":i},timeout:7e3,body:window.atob(r),resource:this.SuiteApi.Configuration.GraphOauthResourceUrl,url:this.SuiteApi.Configuration.GraphOauthResourceUrl+"/v1.0/me/photo/$value",binaryStringRequestBody:!0};return new Promise((function(e,n){t.SuiteApi.Service.callEndpointWithOauthToken(o).then(e).catch((function(e){a.i.genericServiceRejection("User_UploadPhotoToGraph_Failed",6,e,n)}))}))},t.prototype.onOwaUserConfigSucceeded=function(e){null!=this.userConfig.SessionSettings?a.j.Instance.MailboxGuid=this.userConfig.SessionSettings.MailboxGuid:Object(s.e)().tag("User_GetOwaUserConfiguration_SessionSettingsNull",4),e(this.userConfig)},t}(O.a);n.d(t,"a",(function(){return ue}));var ue=function(){function e(e){this.configuration=e,this.StartupActionName="GetOwaUserConfiguration",this.validateConfiguration(e),this.owaUrlSpecialHandling(e),a.j.Initialize(Object(r.__assign)(Object(r.__assign)({},e),{StartupActionName:this.StartupActionName})),this.service=a.g.Instance,this.storage=null==e.IStorageOverride?new oe.a:e.IStorageOverride,this.webShellStorage=null==e.IWebShellStorageOverride?new oe.e:e.IWebShellStorageOverride,this.user=null==e.IUserOverride?new se:e.IUserOverride,this.calendar=null==e.ICalendarOverride?new w:e.ICalendarOverride,this.notification=null==e.INotificationOverride?new N(e.WorkloadId):e.INotificationOverride,this.settings=null==e.ISettingsOverride?new ae:e.ISettingsOverride,this.documentsModule=null==e.IDocumentsOverride?new E:e.IDocumentsOverride,this.owaPoweredExperiences=null==e.IOwaPoweredExperiencesOverride?new M:e.IOwaPoweredExperiencesOverride,this.service=a.g.Instance,e.UserHasExchangeLicense?e.SuiteServiceCallsDisabled?this.service.blockSuiteServiceCalls(a.h.Brs):e.IsPwa&&this.service.blockSuiteServiceCalls(a.h.Pwa):this.service.blockSuiteServiceCalls(a.h.NoExoLicense),this.storage.initialize(this),this.webShellStorage.initialize(this),this.user.initialize(this),this.calendar.initialize(this),this.documentsModule.initialize(this),this.settings.initialize(this),e.OpxEnabled&&this.owaPoweredExperiences.initialize(this),null!=e.NotificationsEnabled&&e.NotificationsEnabled&&!e.IsPwa&&this.notification.initialize(this)}return Object.defineProperty(e.prototype,"Configuration",{get:function(){return this.configuration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Service",{get:function(){return this.service},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"User",{get:function(){return this.user},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Storage",{get:function(){return this.storage},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"WebShellStorage",{get:function(){return this.webShellStorage},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Notification",{get:function(){return this.notification},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Calendar",{get:function(){return this.calendar},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"DocumentsModule",{get:function(){return this.documentsModule},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OwaPoweredExperiences",{get:function(){return this.owaPoweredExperiences},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Settings",{get:function(){return this.settings},enumerable:!0,configurable:!0}),e.CreateInstance=function(t){if(null!=this.instance){var n=new Error("Instance already exists.");throw Object(s.e)().exception("SuiteApi_InstanceAlreadyExists",6,n),n}return this.instance=new e(t),this.instance},e.isInitialized=function(){return null!=this.instance},Object.defineProperty(e,"Instance",{get:function(){if(null==e.instance)throw new Error("Instance not yet created.");return e.instance},enumerable:!0,configurable:!0}),e.clearInstanceForTesting=function(){a.j.isUnitTestMode&&(e.instance=null,a.e.resetAllInstancesForTesting())},e.prototype.validateConfiguration=function(e){o.throwOnNullOrUndefined(e,"configuration"),o.throwOnNullOrUndefined(e.SuiteServiceUrl,"SuiteApiConfiguration.SuiteServiceUrl")},e.prototype.owaUrlSpecialHandling=function(e){if(e.IsOwa){var t=e.SuiteServiceUrl.toLowerCase(),n=a.f.getUrlDomainPart(t),i=a.f.getUrlDomainPart(window.location.href).toLowerCase();n!==i&&(e.SuiteServiceUrl=t.replace(n,i))}},e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n(6),r=n(64),a=n(15),o=n(18),s=n(74),u=n(100),c=function(){function e(){}return e.processRequest=function(t,n){var s,c,l={},p=Object(r.a)("SuiteServiceProxyKey");if(i.isNullOrEmptyString(p)){if(p=Object(r.a)("ClientStorageCookie"),i.isNullOrEmptyString(p))throw new a.a(o.k,-2007);p=decodeURIComponent(p)}var d=p.split("&");if(2!==d.length)throw new a.a(o.k,-2007);if(s=d[0],c=d[1],i.isNullOrEmptyString(t.UserId))throw new a.a(o.k,-2004);var f=window.sessionStorage;if(null==f)throw new a.a(o.k,-2005);try{var h=t.UserId;u.a.computeSHA256(h).then((function(i){var r=f.getItem("CurrentUserId");null!=r&&i!==r&&e.doClear({Clear:!0},l,f),f.setItem("CurrentUserId",i),e.doClear(t,l,f),e.doClearAll(t,l,f),e.doDeletes(t,l,f),e.doWritesAndReads(t,s,c,f,l,n)})).catch((function(e){var t=null==e?o.k:e;l.ResetError=new a.a(t,-2008),n(l)}))}catch(e){l.ResetError=e,n(l)}},e.processSuiteDataSharingRequest=function(t,n){var i=window.localStorage;if(null==i)throw new a.a(o.k,-2005);if(e.hasRegisteredLocalStorageEvent||(window.addEventListener("storage",(function(){}),!1),e.hasRegisteredLocalStorageEvent=!0),t.Clear)throw new a.a(o.g,-2010);var r={};if(null!=t.Deletes)try{for(var u=0,c=t.Deletes;u<c.length;u++){var l=c[u];s.a.checkScope(l,s.a.SuiteScope),i.removeItem(l)}}catch(e){r.DeleteError=e}if(null!=t.Writes)try{for(var p=0,d=t.Writes;p<d.length;p++){var f=d[p];s.a.checkScope(f.Key,s.a.SuiteScope),i.setItem(f.Key,f.Value)}}catch(e){r.WriteError=e}if(null!=t.Reads)try{for(var h={},g=0,m=t.Reads;g<m.length;g++){l=m[g];s.a.checkScope(l,s.a.SuiteScope),null!=i.getItem(l)&&(h[l]=i.getItem(l))}r.Reads=h}catch(e){r.ReadError=e}n(r)},e.doClear=function(t,n,r){try{if(!0===t.Clear){var a=Object.keys(r).filter((function(e){return!i.startsWith(e,"adal.")}));e.doDeletes({Deletes:a},n,r)}}catch(e){n.ClearError=e}},e.doClearAll=function(t,n,i){try{if(!0===t.ClearAll){var r=Object.keys(i);e.doDeletes({Deletes:r},n,i)}}catch(e){n.ClearError=e}},e.doDeletes=function(e,t,n){try{if(null!=e.Deletes)for(var i=0,r=e.Deletes;i<r.length;i++){var a=r[i];n.removeItem(a)}}catch(e){t.DeleteError=e}},e.doWritesAndReads=function(t,n,i,r,a,o){try{null!=t.Writes?e.encryptWrites(n,i,t.Writes,0,r,(function(){e.doReads(t,n,i,r,a,o)}),(function(s){a.WriteError=s,e.doReads(t,n,i,r,a,o)})):e.doReads(t,n,i,r,a,o)}catch(s){a.WriteError=s,e.doReads(t,n,i,r,a,o)}},e.doReads=function(t,n,i,r,a,o){try{if(null!=t.Reads){e.decryptReads(n,i,t.Reads,0,{},r,(function(e){a.Reads=e,o(a)}),(function(e){a.ReadError=e,o(a)}))}}catch(e){a.ReadError=e,o(a)}},e.encryptWrites=function(t,n,i,r,s,c,l){null!=i&&r<i.length?null==t?(s.setItem(i[r].Key,i[r].Value),e.encryptWrites(t,n,i,r+1,s,c,l)):u.a.encryptAES(t,n,"$"+i[r].Value+"$").then((function(a){s.setItem(i[r].Key,a),e.encryptWrites(t,n,i,r+1,s,c,l)})).catch((function(e){var t=null==e?o.k:e;l(new a.a(t,-2009))})):c()},e.decryptReads=function(t,n,r,o,s,c,l,p){if(null!=r&&o<r.length){var d=r[o],f=c.getItem(d);null===f?e.decryptReads(t,n,r,o+1,s,c,l,p):(null===t&&(s[d]=f,e.decryptReads(t,n,r,o+1,s,c,l,p)),u.a.decryptAES(t,n,f).then((function(a){null==a||!i.startsWith(a,"$")||!i.endsWith(a,"$")||a.length<2?e.doClear({Clear:!0},{},c):s[d]=a.substr(1,a.length-2),e.decryptReads(t,n,r,o+1,s,c,l,p)})).catch((function(i){"OperationError"===i?(e.doClear({Clear:!0},{},c),e.decryptReads(t,n,r,o+1,s,c,l,p)):p(new a.a(i))})))}else l(s)},e}()},function(e,t,n){"use strict";function i(e){return null!=e&&0!==e.length&&e.some((function(e){return r(e)}))}function r(e){return!(null==e||a(e.Id)||a(e.Text)||a(e.Url)&&null==e.Action)}function a(e){return""===e||null==e}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}))},,,,function(e,t,n){var i=n(282);"string"==typeof i&&(i=[[e.i,i,""]]);n(25)(i,{});i.locals&&(e.exports=i.locals)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"i",(function(){return a})),n.d(t,"o",(function(){return o})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return c})),n.d(t,"n",(function(){return l})),n.d(t,"q",(function(){return p})),n.d(t,"r",(function(){return d})),n.d(t,"l",(function(){return f})),n.d(t,"k",(function(){return h})),n.d(t,"c",(function(){return g})),n.d(t,"m",(function(){return m})),n.d(t,"p",(function(){return y})),n.d(t,"j",(function(){return v})),n.d(t,"b",(function(){return S})),n.d(t,"h",(function(){return b})),n.d(t,"d",(function(){return _}));var i=n(19);function r(e){return{type:i.a,newWorkloadSettingLink:e}}function a(e){return{type:i.i,settingLinkID:e}}function o(e){return{type:i.o,newWorkloadSettingsLinks:e}}function s(e){return{type:i.d,cardData:e}}function u(e){return{type:i.f,selectedLanguage:e}}function c(e){return{type:i.e,languageChoices:e}}function l(e){return{type:i.n,selectedTimeZone:e}}function p(e,t,n){return{type:i.q,timeZoneChoice:e,dateFormatChoice:t,timeFormatChoice:n}}function d(e){return{type:i.r,timeZoneChoices:e}}function f(e){return{type:i.l,selectedLanguage:e}}function h(e){return{type:i.k,selectedDateFormat:e}}function g(e){return{type:i.c,dateFormatChoices:e}}function m(e){return{type:i.m,selectedTimeFormat:e}}function y(e){return{type:i.p,timeFormatChoices:e}}function v(){return{type:i.j}}function S(){return{type:i.b}}function b(e){return{type:i.g,cardId:e}}function _(e){return{type:i.h,isExpanded:e}}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Unknown=0]="Unknown",e[e.MSACID=1]="MSACID",e[e.MSAPUID=2]="MSAPUID",e[e.ANID=3]="ANID",e[e.OrgIdCID=4]="OrgIdCID",e[e.OrgIdPUID=5]="OrgIdPUID",e[e.UserObjectId=6]="UserObjectId",e[e.Skype=7]="Skype",e[e.Yammer=8]="Yammer",e[e.EmailAddress=9]="EmailAddress",e[e.PhoneNumber=10]="PhoneNumber",e[e.SipAddress=11]="SipAddress",e[e.MUID=12]="MUID"}(t.AWTUserIdType||(t.AWTUserIdType={})),function(e){e[e.Started=0]="Started",e[e.Ended=1]="Ended"}(t.AWTSessionState||(t.AWTSessionState={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
/**
* AWTEventProperties.ts
* @author Abhilash Panwar (abpanwar)
* @copyright Microsoft 2018
*/
var i=n(76),r=n(60),a=function(){function e(e){this._event={name:"",properties:{}},e&&this.setName(e)}return e.prototype.setName=function(e){this._event.name=e},e.prototype.getName=function(){return this._event.name},e.prototype.setType=function(e){this._event.type=e},e.prototype.getType=function(){return this._event.type},e.prototype.setTimestamp=function(e){this._event.timestamp=e},e.prototype.getTimestamp=function(){return this._event.timestamp},e.prototype.setEventPriority=function(e){this._event.priority=e},e.prototype.getEventPriority=function(){return this._event.priority},e.prototype.setProperty=function(e,t,n){void 0===n&&(n=r.AWTPropertyType.Unspecified);var a={value:t,type:n,pii:r.AWTPiiKind.NotSet,cc:r.AWTCustomerContentKind.NotSet};null!==(a=i.sanitizeProperty(e,a))?this._event.properties[e]=a:delete this._event.properties[e]},e.prototype.setPropertyWithPii=function(e,t,n,a){void 0===a&&(a=r.AWTPropertyType.Unspecified);var o={value:t,type:a,pii:n,cc:r.AWTCustomerContentKind.NotSet};null!==(o=i.sanitizeProperty(e,o))?this._event.properties[e]=o:delete this._event.properties[e]},e.prototype.setPropertyWithCustomerContent=function(e,t,n,a){void 0===a&&(a=r.AWTPropertyType.Unspecified);var o={value:t,type:a,pii:r.AWTPiiKind.NotSet,cc:n};null!==(o=i.sanitizeProperty(e,o))?this._event.properties[e]=o:delete this._event.properties[e]},e.prototype.getPropertyMap=function(){return this._event.properties},e.prototype.getEvent=function(){return this._event},e}();t.default=a},function(e,t,n){"use strict";
/**
* microsoft.bond.primitives.ts
* Copyright: Microsoft 2016
*/Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.low=0,this.high=0,this.low=parseInt(e,10),this.low<0&&(this.high=-1)}return e.prototype._Equals=function(t){var n=new e(t);return this.low===n.low&&this.high===n.high},e}();t.Int64=i;var r=function(){function e(e){this.low=0,this.high=0,this.low=parseInt(e,10)}return e.prototype._Equals=function(t){var n=new e(t);return this.low===n.low&&this.high===n.high},e}();t.UInt64=r;var a=function(){function e(){}return e._ToByte=function(e){return this._ToUInt8(e)},e._ToUInt8=function(e){return 255&e},e._ToInt32=function(e){return 2147483647&e|2147483648&e},e._ToUInt32=function(e){return 4294967295&e},e}();t.Number=a},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"d",(function(){return c}));var i=n(70),r=n(21);function a(e){return{type:r.i,isRecentsOpen:e}}function o(e){return{type:i.b,isRecentsInitialized:e}}function s(e){return{type:i.a,isChatAPIInitialized:e}}function u(e){return{type:i.d,unreadBadgeValue:e}}function c(e){return{type:i.c,isTeamsChatActivated:e}}},,function(e,t,n){"use strict";var i=n(0),r=n(31),a=n(3),o=n(1),s=n(110);var u,c=n(7),l={default:[c.a.NavBarDataLinks,c.a.Theme,c.a.LanguageAndRegion,c.a.DarkMode,c.a.NotificationBase,c.a.ChangePassword,c.a.ContactPreferences],iwapp:[c.a.NavBarDataLinks,c.a.Theme,c.a.LanguageAndRegion,c.a.DarkMode,c.a.NotificationBase,c.a.ChangePassword,c.a.ContactPreferences],exchange:[],officepwa:[c.a.Theme,c.a.DarkMode,c.a.AboutBase,c.a.NavBarDataLinks],botdesigner:[c.a.NavBarDataLinks,c.a.Theme,c.a.NotificationBase,c.a.ChangePassword,c.a.ContactPreferences],dynamics365:[c.a.NavBarDataLinks,c.a.Theme,c.a.LanguageAndRegion,c.a.ChangePassword,c.a.ContactPreferences],dynamics365ci:[c.a.NavBarDataLinks,c.a.Theme,c.a.NotificationBase,c.a.ChangePassword,c.a.ContactPreferences],dynamics365fraudprotection:[c.a.NavBarDataLinks,c.a.Theme,c.a.ChangePassword,c.a.ContactPreferences],dynamics365powerplatform:[c.a.NavBarDataLinks,c.a.Theme,c.a.NotificationBase,c.a.ChangePassword,c.a.ContactPreferences],dynamics365productinsights:[c.a.NavBarDataLinks,c.a.NotificationBase,c.a.ChangePassword,c.a.ContactPreferences],adminportal:[c.a.NavBarDataLinks,c.a.Theme,c.a.LanguageAndRegion,c.a.NotificationBase,c.a.ChangePassword,c.a.ContactPreferences,c.a.CPNIPin],flow:[c.a.NavBarDataLinks,c.a.Theme,c.a.NotificationBase,c.a.ChangePassword,c.a.ContactPreferences]},p=n(5),d=((u={})[c.a.NavBarDataLinks]={EnableConsumer:!0},u[c.a.Theme]={Title:p.a.Themes,EnableConsumer:!0},u[c.a.NotificationBase]={Title:p.a.Notifications,EnableConsumer:!1,ChildCardIds:[c.a.Notification]},u[c.a.Notification]={EnableConsumer:!1},u[c.a.ChangePassword]={Title:p.a.Password,Description:p.a.PasswordDescription,EnableConsumer:!1,ChangePasswordCardData:[{WorkloadId:"dynamics365businesscentral",QueryStringData:[{Key:"ru",Value:"https://businesscentral.dynamics.com?redirectedfromsignup=1"}]}]},u[c.a.ContactPreferences]={Title:p.a.ContactPreferences,Description:p.a.ContactPreferencesDescription,EnableConsumer:!1},u[c.a.LanguageAndRegion]={Title:p.a.LanguageAndTimeZone,Description:p.a.LanguageAndTimeZoneDescription,EnableConsumer:!1},u[c.a.AboutBase]={Title:p.a.About,EnableConsumer:!0,ChildCardIds:[c.a.About]},u[c.a.About]={Title:p.a.About,EnableConsumer:!0},u[c.a.DarkMode]={Title:p.a.DarkThemeTitle,EnableConsumer:!1},u[c.a.CPNIPin]={Title:p.a.CPNIPinCardTitle,EnableConsumer:!1},u);n.d(t,"a",(function(){return f}));function f(e,t,n){var u,p,f=((u={})[c.a.LanguageAndRegion]=function(e){return!e.UseSimplifiedLanguageCard&&(1==(1&e.UserType)&&!Object(r.c)(e.WorkloadId))}(e),u[c.a.NavBarDataLinks]=function(e){return!Object(s.a)(e)}(n),u[c.a.NotificationBase]=function(e){var t=Object(o.f)();if(t&&!t.layout)return!e.NotificationsEnabled;var n=null!=(t.layout.centerCustomizationRegion&&Object(a.E)("NotificationBellIcon",t.layout.centerCustomizationRegion.children));return!e.NotificationsEnabled||!n}(e),u[c.a.Theme]=function(e){return!!e.IsConsumerShell&&!(e.CSSExperiencesEnabled&&e.ConsumerThemingEnabled)}(e),u);p=e.CurrentMainLinkElementID&&"shellofficedotcom"===e.CurrentMainLinkElementID.toLowerCase()?"iwapp":e.CurrentMainLinkElementID&&"shellofficepwa"===e.CurrentMainLinkElementID.toLowerCase()?"officepwa":e.WorkloadId.toLowerCase();var h=null!=t?d[t].ChildCardIds:l[p]?l[p]:l.default,g=e.IsConsumerShell;return h?h.filter((function(t){return!e.IsGuestMode||t===c.a.NavBarDataLinks})).filter((function(e){return!g||d[e].EnableConsumer})).filter((function(e){return!f[e]})).map((function(e){return Object(i.__assign)({Id:e},d[e])})):[]}},function(e,t,n){"use strict";var i=n(1),r=n(12),a=n(11),o=n(15),s=n(101),u=n(6),c=n(36),l=n(39),p=n(8),d=function(){function e(e){this.service=e,this.NumMinutesToADReplication=2}return e.prototype.setTargetServerReceivedTime=function(e){if(!p.a.isUnitTestMode)throw new o.a("Operation not allowed if it is not a unit test",-2002);this.targetServerReceivedTime=e},e.prototype.beforeSuiteServiceCall=function(t){null!=this.targetServer&&((new Date).getTime()-this.targetServerReceivedTime.getTime()<=60*this.NumMinutesToADReplication*1e3&&(t[e.TargetServerHeader]=this.targetServer))},e.prototype.afterSuiteServiceSuccess=function(t){null==this.targetServer&&null!=t[e.TargetServerHeader]&&(this.targetServer=t[e.TargetServerHeader],this.targetServerReceivedTime=new Date)},e.prototype.afterSuiteServiceError=function(t,n){null!=t[v.XSuiteError]&&t[v.XSuiteError]===e.ShardNotFoundException?(this.service.blockSuiteServiceCalls(c.a.ShardNotDetected),n(l.convertErrorToException(null,-1010,c.a.ShardNotDetected.toString()))):n(t)},e.TargetServerHeader="X-TARGETSERVER",e.ShardNotFoundException="InvalidOrUnavailableMailboxException",e}(),f=n(57),h=n(55),g=n(134),m=function(){function e(){var e=this;this.handleMessage=function(t){var n=!1;if(null!=t)for(var i=0;!n&&i<e.handlers.length;i++)if(t&&t.data&&t.origin){var r=e.handlers[i];if(r.validateOrigin(t.origin)){var a=t.data;r.validateMessage(a)&&(n=r.handleMessage(a))}}},this.handlers=[],Object(u.ensureAttachMessageListener)(this.handleMessage)}return e.prototype.registerHandler=function(e){this.handlers.push(e)},e}();n.d(t,"a",(function(){return v}));var y=function(e,t,n){this.RequestExecutor=e,this.RequestInfo=t,this.ErrorCallback=n},v=function(){function e(){this.firstDataRequestSent=!1,this.startupCallbacks=[],this.owsStartupActionCompleted=!1,this.queuedCalls=[],this.messageDispatcher=new m}return Object.defineProperty(e,"Instance",{get:function(){return this.instance},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ConnectionEstablished",{get:function(){return this.owsStartupActionCompleted},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"AreSuiteServiceCallsBlocked",{get:function(){return null!=this.suiteServiceCallsBlockedReason},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ShouldQueueOwsCalls",{get:function(){return!this.owsStartupActionCompleted&&!p.a.Instance.configuration.IsOwa},enumerable:!0,configurable:!0}),e.prototype.registerPostMessageHandler=function(e){this.messageDispatcher.registerHandler(e)},e.prototype.setStartupActionCompleted=function(){this.owsStartupActionCompleted=!0;for(var e=0,t=this.queuedCalls;e<t.length;e++){var n=t[e];try{n.RequestExecutor.executeAsync(n.RequestInfo)}catch(e){}}this.queuedCalls=[],this.callStartupCallbacks()},e.setInstanceForTesting=function(e){p.a.isUnitTestMode&&(this.instance=e)},e.prototype.callSuiteServiceAction=function(e,t,n){return void 0===n&&(n=!0),this.callSuiteServiceActionWithAdditionalHeaders(e,t,null,n)},e.prototype.callO365SuiteServiceAction=function(t,n,i){var a=this;return new Promise((function(o,c){r.throwOnNullOrEmpty(t,"resourceUrl"),r.throwOnUndefined(i,"method"),null!==a.o365SuiteServiceCallsInterceptor||p.a.Instance.configuration.UserHasExchangeLicense||(a.o365SuiteServiceCallsInterceptor=new d(a)),i===s.a.PUT&&r.throwOnUndefined(n,"data");var l={};null!==p.a.Instance.configuration.CurrentUserUpn&&(l[e.UPNAnchorMailboxHeaderKey]=p.a.Instance.configuration.CurrentUserUpn);var f=p.a.Instance.configuration.SuiteServiceUrl.replace(u.OwsRelativePath,t);null!=a.o365SuiteServiceCallsInterceptor&&a.o365SuiteServiceCallsInterceptor.beforeSuiteServiceCall(l);var h=c;null!=a.o365SuiteServiceCallsInterceptor&&(h=function(e){a.o365SuiteServiceCallsInterceptor.afterSuiteServiceError(e,c)}),a.callSuiteServiceWithOrWithoutRetry(f,l,n,i).then((function(e){return o(""!==e?JSON.parse(e):"")})).catch(h)}))},e.prototype.callSuiteServiceActionWithAdditionalHeaders=function(t,n,i,o){var u=this;return void 0===o&&(o=!0),new Promise((function(c,l){r.throwOnNullOrEmpty(t,"action"),r.throwOnUndefined(n,"data");var d=p.a.Instance.configuration.SuiteServiceUrl,f=-1!==d.toLowerCase().indexOf("suiteservice.svc",d.length-"suiteservice.svc".length)?"{0}/?action={1}":"{0}?action={1}",h=u.isUserInitiatedCall(t)?t:t+"&UA=0",g=Object(a.b)(f,d,h);null===i&&(i={}),i[e.ActionHeaderKey]=t,u.callSuiteServiceWithOrWithoutRetry(g,i,n,s.a.POST,o).then((function(e){return c(""!==e?JSON.parse(e):"")})).catch(l)}))},e.prototype.prefetchAccessToken=function(e,t){void 0===t&&(t=null);var n={url:e,resource:t};return new Promise((function(e,t){n.error=function(e,n,i){t(l.convertErrorToException(e,n,i))},n.success=function(t){return e(t)};var i=h.a.OauthTokenFactoryInstance;null!=i&&i.prefetchOAuthAccessToken(n)}))},e.prototype.registerOpxHost=function(){return new Promise((function(e,t){var n=h.a.OauthTokenFactoryInstance;null==n?t(new o.a("OauthTokenFactoryIframe",-1011)):(n.registerOpxHost(),e())}))},e.prototype.callOpxIframe=function(e){return new Promise((function(t,n){var i=h.a.OauthTokenFactoryInstance;null==i?n(new o.a("OauthTokenFactoryIframe",-1011)):(i.executeOpxRequest(e),t())}))},e.prototype.callEndpointWithOauthToken=function(e){return new Promise((function(t,n){null==e.body&&(e.body=""),null==e.method&&(e.method="GET"),null==e.headers&&(e.headers={}),e.resource===p.a.Instance.configuration.TokenFactoryIframeOrigin&&(e.headers["x-o365suiteuxshell-workloadid"]=p.a.Instance.configuration.WorkloadId),e.success=function(e){try{var i=void 0;i=null!=e.contentType&&e.contentType.indexOf("application/json")>-1?JSON.parse(e.body):e.body,t(i)}catch(e){return void n(new o.a("Invalid response format."))}},e.error=function(e,t,i){n(l.convertErrorToException(e,t,i))};var i=h.a.OauthTokenFactoryInstance;null!=i?p.a.Instance.configuration.IsPwa||0===i.mode?g.a.getToken(e).then((function(t){0===t.responseType&&(e.headers.Authorization="Bearer "+t.token,null!=p.a.Instance.configuration.ServiceWorkerCacheId&&null!=p.a.Instance.configuration.ServiceWorkerCacheId&&(e.headers["X-SW-OHP-UserCacheId"]=p.a.Instance.configuration.ServiceWorkerCacheId,e.headers["X-SW-OHP-FetchStrategy"]=p.a.Instance.configuration.ServiceWorkerFetchStrategy),e.isTokenGeneratedFromWorkload=!0,delete e.headers["x-o365suiteuxshell-workloadid"],i.executeCrossDomainRequestAsync(e,!0))})).catch((function(t){1===t.responseType&&i.executeCrossDomainRequestAsync(e)})):i.executeCrossDomainRequestAsync(e):n(new o.a("OauthTokenFactoryIframe",-1011))}))},e.prototype.callAdminServiceGenericFunction=function(e,t,n,i,r){return void 0===r&&(r=!0),new Promise((function(s,u){var c=Object(a.b)("{0}{1}",p.a.Instance.configuration.AdminServiceUrl,"/"===e.charAt(0)?e.substr(1):e);null==n&&(n={}),"Content-Type"in n||(n["Content-Type"]="application/json;charset=UTF-8"),"Accept"in n||(n.Accept="application/json");var d={method:t,url:c,body:JSON.stringify(i),headers:n,getPerformanceTrace:r,success:function(e){if(null==e.headers||"error"!==e.headers.error){r&&e.performanceTrace;try{var t=JSON.parse(e.body);s(t)}catch(e){return void s(new o.a("AdminGeneric",-1002))}}else u(l.convertErrorToException(null,-1003,"AdminGeneric"))},error:function(e,t,n){u(l.convertErrorToException(e,t,n)),r&&e.performanceTrace}},f=h.a.AdminInstance;null==f?u(new o.a("AdminGeneric",-1011)):f.executeAsync(d)}))},e.prototype.callAdminServiceFunction=function(e){return new Promise((function(t,n){var i={method:"POST",url:Object(a.b)("{0}{1}.model?format=json",p.a.Instance.configuration.AdminServiceUrl,e),body:"",headers:{Accept:"*/*","Content-Type":"application/json"},success:function(e){if(null==e.headers||"error"!==i.headers.error)try{t(JSON.parse(e.body))}catch(e){return void n(new o.a("Invalid alerts response format."))}else n(new o.a("Failed to retrieve alerts."))},error:function(e,t,i){n(l.convertErrorToException(e,t,i))}},r=h.a.AdminInstance;null==r?n(new o.a("Admin",-1011)):r.executeAsync(i)}))},e.prototype.callWebClientShellServiceFunction=function(e,t,n,i){var r=Object(a.b)("{0}/{1}",p.a.Instance.configuration.TokenFactoryIframeOrigin,"/"===e.charAt(0)?e.substr(1):e);null==n&&(n={}),"Content-Type"in n||(n["Content-Type"]="application/json;charset=UTF-8"),"Accept"in n||(n.Accept="application/json");var o={method:t,url:r,resource:p.a.Instance.configuration.TokenFactoryIframeOrigin,body:JSON.stringify(i),headers:n};return this.callEndpointWithOauthToken(o)},e.prototype.sessionStorageRequest=function(e){var t=this;return new Promise((function(n,i){if(r.throwOnUndefined(e,"data"),t.shouldBlockCall(4))i(new o.a("SuiteService",-1011));else{var a={url:p.a.Instance.suiteServiceHostPageBaseUrl,requestObject:e,timeout:3e4,success:function(e){return n(e.responseObject)},error:function(e,t,n){return i(new o.a(n,-2002))}},s=h.a.SuiteServiceInstance;null==s?i(new o.a("SuiteService",-1011)):s.executeStorageRequest(a)}}))},e.prototype.suiteDataSharingRequest=function(e){var t=this;return new Promise((function(n,i){r.throwOnUndefined(e,"data");var a={requestObject:e,timeout:3e4,success:function(e){return n(e.responseObject)},error:function(e,t,n){return i(new o.a(n,-2002))}},s=null;null!=p.a.Instance.configuration.SuiteDataSharingUrl?(a.url=p.a.Instance.configuration.SuiteDataSharingUrl,s=h.a.SuiteDataSharingInstance):t.AreSuiteServiceCallsBlocked||(a.url=p.a.Instance.suiteServiceHostPageBaseUrl,s=h.a.SuiteServiceInstance),null==s?i(new o.a("SuiteDataSharing",-1011)):s.executeStorageRequest(a)}))},e.prototype.proxyIdentityProviderRequest=function(e){var t=this;return new Promise((function(n,r){if(null!=t.suiteServiceCallsBlockedReason){var a=new o.a(t.suiteServiceCallsBlockedReason,-1010);throw Object(i.e)().exception("Service_ProxyIdentityProvider_CallsBlocked",6,a),a}var s={requestObject:e,timeout:f.a.DefaultTimeout,success:function(e){return n(e.responseObject)},error:function(e,t,n){return r(new o.a(n,-2002))}},u=h.a.SuiteServiceInstance;if(null==u){var c=new o.a("SuiteService",-1011);throw p.a.Instance.configuration.UserHasExchangeLicense&&Object(i.e)().exception("Service_ProxyIdentityProvider_ReqExecutorFactoryErr",6,c),c}u.executeIdentityProviderRequest(s)}))},e.prototype.callSuiteServiceWithOrWithoutRetry=function(t,n,i,r,a){var s=this;void 0===a&&(a=!0);var u={};if(null!=n)for(var c=0,d=Object.keys(n);c<d.length;c++){var f=d[c];u[f]=n[f]}u.Accept="application/json",u["Content-Type"]="application/json; charset=utf-8";var g=p.a.Instance.MailboxGuid,m=p.a.Instance.configuration.ShellSID,y=g||m,v=l.generateCorrelationId(y);u["X-OWA-CorrelationId"]=v;var S=JSON.stringify(i);return new Promise((function(i,c){if(null!=s.suiteServiceCallsBlockedReason){var p=new o.a(s.suiteServiceCallsBlockedReason,-1010);return c(p)}var d=h.a.SuiteServiceInstance;if(null!==d){s.firstDataRequestSent||(!0,s.firstDataRequestSent=!0);var f=function(e){null!=s.o365SuiteServiceCallsInterceptor&&s.o365SuiteServiceCallsInterceptor.afterSuiteServiceSuccess(e.headers),i(e.body)};s.suiteServiceHttpRequest(d,t,S,u,r).then(f).catch(a?function(i){449===i.HttpStatus?s.suiteServiceHttpRequest(d,t,S,u,r).then(f).catch((function(e){return s.executeErrorCallback(n,c,e)})):null!=i[e.XSuiteError]&&i[e.XSuiteError]===e.WrongServerException?(v=l.generateCorrelationId(y),u["X-OWA-CorrelationId"]=v,s.suiteServiceHttpRequest(d,t,S,u,r).then((function(e){f(e)})).catch((function(e){s.executeErrorCallback(n,c,e)}))):c(i)}:function(){c()})}else s.executeErrorCallback(n,c,l.convertErrorToException(null,-1011,"SuiteService"))}))},e.prototype.suiteServiceHttpRequest=function(t,n,a,o,u){var p=this;return new Promise((function(d,f){if(r.throwOnNullOrUndefined(n,"url"),p.shouldBlockCall(p.getExchangeServiceToCall(n)))return f(l.convertErrorToException(null,-1010,p.suiteServiceCallsBlockedReason));var h=null,g={headers:o,url:n,method:u.toString(),body:u!==s.a.GET?a:void 0,success:function(e){var t=l.getOwaError(e.headers);if(null!=t)return p.checkAndHandleBlockingOwaErrors(t),void f(l.convertErrorToException(e,e.statusCode,t));try{d(e)}catch(e){}null!=h&&h()},error:function(t,n,r){var a=l.getOwaError(t.headers);null!=a&&p.checkAndHandleBlockingOwaErrors(a),t.statusCode!==e.HttpStatusCodeTokenExpired&&t.statusCode!==e.HttpStatusCodeUnauthorized||(p.blockSuiteServiceCalls(c.a.TokenExpired,n,r),Object(i.b)().invoke("AuthenticationExpired")),f(l.convertErrorToException(t,n,r))}};if(p.ShouldQueueOwsCalls)if(p.isStartupAction(o))h=function(){p.setStartupActionCompleted(),h=null};else if(2===p.getExchangeServiceToCall(g.url))return void p.queuedCalls.push(new y(t,g,f));t.executeAsync(g)}))},e.prototype.registerAuthenticationExpiredCallback=function(e){Object(i.b)().subscribe("AuthenticationExpired",e,!0)},e.prototype.registerCultureNotSetCallback=function(e){Object(i.b)().subscribe("CultureNotSet",e,!0)},e.prototype.guaranteeConnectionEstablished=function(e){this.ConnectionEstablished||p.a.Instance.configuration.IsOwa?e():this.startupCallbacks.push(e)},e.prototype.blockSuiteServiceCalls=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];
// the more important blocking reasons are evaluated first e.g. NoExoLicense etc
null!=this.suiteServiceCallsBlockedReason&&e!==c.a.ShardNotDetected||(this.suiteServiceCallsBlockedReason=e.toString(),Object(i.e)().tag("RequestExecuter_SuiteServiceCallsBlocked",4,c.a[e],t))},e.prototype.stopBlockingCalls=function(){this.suiteServiceCallsBlockedReason=null},e.prototype.callStartupCallbacks=function(){for(var e=0,t=this.startupCallbacks;e<t.length;e++){var n=t[e];null!=n&&n()}this.startupCallbacks=[]},e.prototype.checkAndHandleBlockingOwaErrors=function(e){e.indexOf("OwaInvalidUserLanguageException")>-1?(this.blockSuiteServiceCalls(c.a.LanguageNotSet,e),Object(i.b)().invoke("CultureNotSet")):"InvalidMailbox"===e?this.blockSuiteServiceCalls(c.a.InvalidMailbox,e):"ShardMailbox"===e&&this.blockSuiteServiceCalls(c.a.ShardMailbox,e)},e.prototype.getExchangeServiceToCall=function(e){var t=null!=e?u.getUrlPath(e):null;if(t){var n=function(e,t){return e.substr(0,t.length)===t};if(n(t,u.SuiteServiceApiRelativePath))return 3;if(n(t,u.OwsRelativePath))return 2;if(n(t,u.DevFabricOwsRelativePath))return 2}var r=new Error("Cannot Acquire Exchange Service to Call");throw Object(i.e)().exception("Service_ExchangeServiceAcquireFail",6,r,t),r},e.prototype.shouldBlockCall=function(t){return null!=this.suiteServiceCallsBlockedReason&&!(2!==t&&e.callBlockingReasonsSpecificToOws.indexOf(this.suiteServiceCallsBlockedReason))},e.prototype.executeErrorCallback=function(e,t,n){try{t(n)}catch(e){}if(!this.owsStartupActionCompleted&&this.isStartupAction(e)){var i=n.errorCode||0,r=-1005===i?c.a.CallerOriginNotAllowed:c.a.InitFailed;this.blockSuiteServiceCalls(r,i,n.message);for(var a=l.convertErrorToException(null,-1010,"App initialization failed, call canceled",i,n.message),o=0,s=this.queuedCalls;o<s.length;o++){var u=s[o];try{u.ErrorCallback(a)}catch(e){}}this.queuedCalls=[]}},e.prototype.isUserInitiatedCall=function(t){return e.userInitiatedCalls.indexOf(t.toLowerCase())>=0},e.prototype.isStartupAction=function(t){var n=p.a.Instance.configuration.StartupActionName;return null!=n&&n===t[e.ActionHeaderKey]},e.ActionHeaderKey="Action",e.UPNAnchorMailboxHeaderKey="X-UpnAnchorMailbox",e.XSuiteError=l.XSuiteError,e.HttpStatusCodeUnauthorized=401,e.HttpStatusCodeTokenExpired=440,e.WrongServerException="WrongServerException",e.instance=new e,e.callBlockingReasonsSpecificToOws=[c.a.LanguageNotSet.toString(),c.a.InitFailed.toString(),c.a.InvalidMailbox.toString(),c.a.ShardMailbox.toString()],e.userInitiatedCalls=["getowauserconfiguration"],e}()},,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n(1),r=n(8),a=function(){function e(){}return e.getToken=function(e){return new Promise((function(t,n){if(r.a.Instance.configuration.GetTokenRequestDictionary){var a=r.a.Instance.configuration.GetTokenRequestDictionary(),o=function(e){e?t({token:e,responseType:0}):(Object(i.e)().tag("GetAccessToken_Empty",6),n({responseType:2}))},s=function(e){Object(i.e)().exception("GetAccessToken_Failed",6,e),n({responseType:2,exception:e})};if(a[e.resource]){var u=a[e.resource];"function"==typeof u?u().then((function(e){o(e)})).catch((function(e){s(e)})):u.then((function(e){o(e)})).catch((function(e){s(e)}))}else n({responseType:1})}else n({responseType:1})}))},e}()},,,,,function(e,t,n){"use strict";var i,r;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),function(e){e.SystemMetadata="SystemMetadata",e.CustomerContent="CustomerContent"}(i||(i={})),function(e){e.User="User",e.Tenant="Tenant"}(r||(r={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(141),r=n(60),a=n(119),o=function(){function e(e,t){this._allowDeviceFields=e,this._properties=t}return e.prototype.setAppId=function(e){this._addContext("AppInfo.Id",e)},e.prototype.setAppVersion=function(e){this._addContext("AppInfo.Version",e)},e.prototype.setAppLanguage=function(e){this._addContext("AppInfo.Language",e)},e.prototype.setDeviceId=function(e){this._allowDeviceFields&&(i.default.checkAndSaveDeviceId(e),this._addContext("DeviceInfo.Id",e))},e.prototype.setDeviceOsName=function(e){this._allowDeviceFields&&this._addContext("DeviceInfo.OsName",e)},e.prototype.setDeviceOsVersion=function(e){this._allowDeviceFields&&this._addContext("DeviceInfo.OsVersion",e)},e.prototype.setDeviceBrowserName=function(e){this._allowDeviceFields&&this._addContext("DeviceInfo.BrowserName",e)},e.prototype.setDeviceBrowserVersion=function(e){this._allowDeviceFields&&this._addContext("DeviceInfo.BrowserVersion",e)},e.prototype.setDeviceMake=function(e){this._allowDeviceFields&&this._addContext("DeviceInfo.Make",e)},e.prototype.setDeviceModel=function(e){this._allowDeviceFields&&this._addContext("DeviceInfo.Model",e)},e.prototype.setUserId=function(e,t,n){if(!isNaN(n)&&null!==n&&n>=0&&n<=12)this._addContext("UserInfo.IdType",n.toString());else{var i=void 0;switch(t){case r.AWTPiiKind.SipAddress:i=a.AWTUserIdType.SipAddress;break;case r.AWTPiiKind.PhoneNumber:i=a.AWTUserIdType.PhoneNumber;break;case r.AWTPiiKind.SmtpAddress:i=a.AWTUserIdType.EmailAddress;break;default:i=a.AWTUserIdType.Unknown}this._addContext("UserInfo.IdType",i.toString())}if(isNaN(t)||null===t||t===r.AWTPiiKind.NotSet||t>13)switch(n){case a.AWTUserIdType.Skype:t=r.AWTPiiKind.Identity;break;case a.AWTUserIdType.EmailAddress:t=r.AWTPiiKind.SmtpAddress;break;case a.AWTUserIdType.PhoneNumber:t=r.AWTPiiKind.PhoneNumber;break;case a.AWTUserIdType.SipAddress:t=r.AWTPiiKind.SipAddress;break;default:t=r.AWTPiiKind.NotSet}this._addContextWithPii("UserInfo.Id",e,t)},e.prototype.setUserAdvertisingId=function(e){this._addContext("UserInfo.AdvertisingId",e)},e.prototype.setUserTimeZone=function(e){this._addContext("UserInfo.TimeZone",e)},e.prototype.setUserLanguage=function(e){this._addContext("UserInfo.Language",e)},e.prototype._addContext=function(e,t){"string"==typeof t&&this._properties.setProperty(e,t)},e.prototype._addContextWithPii=function(e,t,n){"string"==typeof t&&this._properties.setPropertyWithPii(e,t,n)},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
/**
* AWTAutoCollection.ts
* @author Abhilash Panwar (abpanwar)
* @copyright Microsoft 2018
*/
var i=n(76),r="MicrosoftApplicationsTelemetryDeviceId",a="MicrosoftApplicationsTelemetryFirstLaunchTime",o="MSIE",s="Chrome",u="Firefox",c="Safari",l="Edge",p="Electron",d="SkypeShell",f="PhantomJS",h="Opera",g="Windows",m="Mac OS X",y="Windows Phone",v="Windows RT",S="iOS",b="Android",_="Linux",C="Chrome OS",T=/(windows|win32)/i,O=/ arm;/i,I=/windows\sphone\s\d+\.\d+/i,A=/(macintosh|mac os x)/i,w=/(iPad|iPhone|iPod)(?=.*like Mac OS X)/i,D=/(linux|joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk)/i,E=/android/i,P=/CrOS/i,R={5.1:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1","10.0":"10"},k=function(){function e(){}return e.addPropertyStorageOverride=function(e){return!!e&&(this._propertyStorage=e,!0)},e.autoCollect=function(e,t,n){if(this._semanticContext=e,this._disableCookies=t,this._autoCollect(),n||"undefined"==typeof navigator||(n=navigator.userAgent||""),this._autoCollectFromUserAgent(n),this._disableCookies&&!this._propertyStorage)return this._deleteCookie(r),void this._deleteCookie(a);(this._propertyStorage||this._areCookiesAvailable&&!this._disableCookies)&&this._autoCollectDeviceId()},e.checkAndSaveDeviceId=function(e){if(e){var t=this._getData(r),n=this._getData(a);t!==e&&(n=i.getISOString(new Date)),this._saveData(r,e),this._saveData(a,n),this._setFirstLaunchTime(n)}},e._autoCollectDeviceId=function(){var e=this._getData(r);e||(e=i.newGuid()),this._semanticContext.setDeviceId(e)},e._autoCollect=function(){"undefined"!=typeof document&&document.documentElement&&this._semanticContext.setAppLanguage(document.documentElement.lang),"undefined"!=typeof navigator&&this._semanticContext.setUserLanguage(navigator.userLanguage||navigator.language);var e=(new Date).getTimezoneOffset(),t=e%60,n=(e-t)/60,i="+";n>0&&(i="-"),n=Math.abs(n),t=Math.abs(t),this._semanticContext.setUserTimeZone(i+(n<10?"0"+n:n.toString())+":"+(t<10?"0"+t:t.toString()))},e._autoCollectFromUserAgent=function(e){if(e){var t=this._getBrowserName(e);this._semanticContext.setDeviceBrowserName(t),this._semanticContext.setDeviceBrowserVersion(this._getBrowserVersion(e,t));var n=this._getOsName(e);this._semanticContext.setDeviceOsName(n),this._semanticContext.setDeviceOsVersion(this._getOsVersion(e,n))}},e._getBrowserName=function(e){return this._userAgentContainsString("OPR/",e)?h:this._userAgentContainsString(f,e)?f:this._userAgentContainsString(l,e)||this._userAgentContainsString("Edg",e)?l:this._userAgentContainsString(p,e)?p:this._userAgentContainsString(s,e)?s:this._userAgentContainsString("Trident",e)?o:this._userAgentContainsString(u,e)?u:this._userAgentContainsString(c,e)?c:this._userAgentContainsString(d,e)?d:"Unknown"},e._setFirstLaunchTime=function(e){if(!isNaN(e)){var t=new Date;t.setTime(parseInt(e,10)),e=i.getISOString(t)}this.firstLaunchTime=e},e._userAgentContainsString=function(e,t){return t.indexOf(e)>-1},e._getBrowserVersion=function(e,t){if(t===o)return this._getIeVersion(e);if(t===l){var n=this._getOtherVersion(t,e);return"Unknown"===n?this._getOtherVersion("Edg",e):n}return this._getOtherVersion(t,e)},e._getIeVersion=function(e){var t=e.match(new RegExp(o+" ([\\d,.]+)"));if(t)return t[1];var n=e.match(new RegExp("rv:([\\d,.]+)"));return n?n[1]:void 0},e._getOtherVersion=function(e,t){e===c&&(e="Version");var n=t.match(new RegExp(e+"/([\\d,.]+)"));return n?n[1]:"Unknown"},e._getOsName=function(e){return e.match(I)?y:e.match(O)?v:e.match(w)?S:e.match(E)?b:e.match(D)?_:e.match(A)?m:e.match(T)?g:e.match(P)?C:"Unknown"},e._getOsVersion=function(e,t){return t===g?this._getGenericOsVersion(e,"Windows NT"):t===b?this._getGenericOsVersion(e,t):t===m?this._getMacOsxVersion(e):"Unknown"},e._getGenericOsVersion=function(e,t){var n=e.match(new RegExp(t+" ([\\d,.]+)"));return n?R[n[1]]?R[n[1]]:n[1]:"Unknown"},e._getMacOsxVersion=function(e){var t=e.match(new RegExp(m+" ([\\d,_,.]+)"));if(t){var n=t[1].replace(/_/g,".");if(n){var i=this._getDelimiter(n);return i?n.split(i)[0]:n}}return"Unknown"},e._getDelimiter=function(e){return e.indexOf(".")>-1?".":e.indexOf("_")>-1?"_":null},e._saveData=function(e,t){if(this._propertyStorage)this._propertyStorage.setProperty(e,t);else if(this._areCookiesAvailable){var n=new Date;n.setTime(n.getTime()+31536e6);var i="expires="+n.toUTCString();document.cookie=e+"="+t+"; "+i}},e._getData=function(e){if(this._propertyStorage)return this._propertyStorage.getProperty(e)||"";if(this._areCookiesAvailable){e+="=";for(var t=document.cookie.split(";"),n=0;n<t.length;n++){for(var i=t[n],r=0;" "===i.charAt(r);)r++;if(0===(i=i.substring(r)).indexOf(e))return i.substring(e.length,i.length)}}return""},e._deleteCookie=function(e){this._areCookiesAvailable&&(document.cookie=e+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},e._disableCookies=!1,e._areCookiesAvailable="undefined"!=typeof document&&void 0!==document.cookie,e}();t.default=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={baseUrl:null,isServer:!1};t.initializeServiceRequest=function(e){i=e},t.getConfig=function(){return i},t.setTimezone=function(e){i.timezone=e},t.setUseJsonNetSerializer=function(e){i.useJsonNetSerializer=e}},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.default=function(e){return i.__assign({__type:"ItemId:#Exchange"},e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.default=function(e){return i.__assign({__type:"PerformReminderActionJsonRequest:#Exchange"},e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.default=function(e){return i.__assign({__type:"PerformReminderActionRequest:#Exchange"},e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.default=function(e){return i.__assign({__type:"ReminderItemAction:#Exchange"},e)}},function(e,t,n){var i=n(281);"string"==typeof i&&(i=[[e.i,i,""]]);n(25)(i,{});i.locals&&(e.exports=i.locals)},function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),function(e){e[e.SystemAlert=0]="SystemAlert",e[e.ReminderNotification=1]="ReminderNotification",e[e.EmailMentionNotification=2]="EmailMentionNotification",e[e.NewMailNotification=3]="NewMailNotification",e[e.NewAppNotification=4]="NewAppNotification",e[e.SuiteNotification=5]="SuiteNotification",e[e.ChatNotification=6]="ChatNotification"}(i||(i={}))},,,,,function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),function(e){e.call="Calling",e.message="UnreadMessage",e.summary="Summary"}(i||(i={}))},,,,,,,,,,,,,,,,,,,,,,,,function(e){e.exports=JSON.parse('[{"Locale":"af-NA","DisplayName":"Afrikaans (Namibië)"},{"Locale":"af-ZA","DisplayName":"Afrikaans (Suid-Afrika)"},{"Locale":"am-ET","DisplayName":"አማርኛ (ኢትዮጵያ)"},{"Locale":"ar-AE","DisplayName":"العربية (الإمارات العربية المتحدة)"},{"Locale":"ar-BH","DisplayName":"العربية (البحرين)"},{"Locale":"ar-DJ","DisplayName":"العربية (جيبوتي)"},{"Locale":"ar-DZ","DisplayName":"العربية (الجزائر)"},{"Locale":"ar-EG","DisplayName":"العربية (مصر)"},{"Locale":"ar-ER","DisplayName":"العربية (إريتريا)"},{"Locale":"ar-IL","DisplayName":"العربية (إسرائيل)"},{"Locale":"ar-IQ","DisplayName":"العربية (العراق)"},{"Locale":"ar-JO","DisplayName":"العربية (الأردن)"},{"Locale":"ar-KM","DisplayName":"العربية (جزر القمر)"},{"Locale":"ar-KW","DisplayName":"العربية (الكويت)"},{"Locale":"ar-LB","DisplayName":"العربية (لبنان)"},{"Locale":"ar-LY","DisplayName":"العربية (ليبيا)"},{"Locale":"ar-MA","DisplayName":"العربية (المملكة المغربية)"},{"Locale":"ar-MR","DisplayName":"العربية (موريتانيا)"},{"Locale":"ar-OM","DisplayName":"العربية (عمان)"},{"Locale":"ar-PS","DisplayName":"العربية (السلطة الفلسطينية)"},{"Locale":"ar-QA","DisplayName":"العربية (قطر)"},{"Locale":"ar-SA","DisplayName":"العربية (المملكة العربية السعودية)"},{"Locale":"ar-SO","DisplayName":"العربية (الصومال)"},{"Locale":"ar-SS","DisplayName":"العربية (جنوب السودان)"},{"Locale":"ar-TD","DisplayName":"العربية (تشاد)"},{"Locale":"ar-TN","DisplayName":"العربية (تونس)"},{"Locale":"as-IN","DisplayName":"অসমীয়া (ভাৰত)"},{"Locale":"az-Latn-AZ","DisplayName":"azərbaycan (Azərbaycan)"},{"Locale":"be-BY","DisplayName":"Беларуская (Беларусь)"},{"Locale":"bg-BG","DisplayName":"български (България)"},{"Locale":"bn-BD","DisplayName":"বাংলা (বাংলাদেশ)"},{"Locale":"bn-IN","DisplayName":"বাংলা (ভারত)"},{"Locale":"bs-Latn-BA","DisplayName":"bosanski (Bosna i Hercegovina)"},{"Locale":"ca-AD","DisplayName":"català (Andorra)"},{"Locale":"ca-ES","DisplayName":"català (català)"},{"Locale":"ca-FR","DisplayName":"català (França)"},{"Locale":"ca-IT","DisplayName":"català (Itàlia)"},{"Locale":"cs-CZ","DisplayName":"čeština (Česko)"},{"Locale":"cy-GB","DisplayName":"Cymraeg (Y Deyrnas Unedig)"},{"Locale":"da-DK","DisplayName":"dansk (Danmark)"},{"Locale":"da-GL","DisplayName":"dansk (Grønland)"},{"Locale":"de-AT","DisplayName":"Deutsch (Österreich)"},{"Locale":"de-BE","DisplayName":"Deutsch (Belgien)"},{"Locale":"de-CH","DisplayName":"Deutsch (Schweiz)"},{"Locale":"de-DE","DisplayName":"Deutsch (Deutschland)"},{"Locale":"de-IT","DisplayName":"Deutsch (Italien)"},{"Locale":"de-LI","DisplayName":"Deutsch (Liechtenstein)"},{"Locale":"de-LU","DisplayName":"Deutsch (Luxemburg)"},{"Locale":"el-CY","DisplayName":"Ελληνικά (Κύπρος)"},{"Locale":"el-GR","DisplayName":"Ελληνικά (Ελλάδα)"},{"Locale":"en-GB","DisplayName":"English (United Kingdom)"},{"Locale":"es-AR","DisplayName":"español (Argentina)"},{"Locale":"es-BO","DisplayName":"español (Bolivia)"},{"Locale":"es-BR","DisplayName":"español (Brasil)"},{"Locale":"es-BZ","DisplayName":"español (Belice)"},{"Locale":"es-CL","DisplayName":"español (Chile)"},{"Locale":"es-CO","DisplayName":"español (Colombia)"},{"Locale":"es-CR","DisplayName":"español (Costa Rica)"},{"Locale":"es-CU","DisplayName":"español (Cuba)"},{"Locale":"es-DO","DisplayName":"español (República Dominicana)"},{"Locale":"es-EC","DisplayName":"español (Ecuador)"},{"Locale":"es-ES","DisplayName":"español (España, alfabetización internacional)"},{"Locale":"es-GQ","DisplayName":"español (Guinea Ecuatorial)"},{"Locale":"es-GT","DisplayName":"español (Guatemala)"},{"Locale":"es-HN","DisplayName":"español (Honduras)"},{"Locale":"es-MX","DisplayName":"español (México)"},{"Locale":"es-NI","DisplayName":"español (Nicaragua)"},{"Locale":"es-PA","DisplayName":"español (Panamá)"},{"Locale":"es-PE","DisplayName":"español (Perú)"},{"Locale":"es-PH","DisplayName":"español (Filipinas)"},{"Locale":"es-PR","DisplayName":"español (Puerto Rico)"},{"Locale":"es-PY","DisplayName":"español (Paraguay)"},{"Locale":"es-SV","DisplayName":"español (El Salvador)"},{"Locale":"es-US","DisplayName":"español (Estados Unidos)"},{"Locale":"es-UY","DisplayName":"español (Uruguay)"},{"Locale":"es-VE","DisplayName":"español (Venezuela)"},{"Locale":"et-EE","DisplayName":"eesti (Eesti)"},{"Locale":"eu-ES","DisplayName":"euskara (euskara)"},{"Locale":"fa-IR","DisplayName":"فارسی (ایران)"},{"Locale":"fi-FI","DisplayName":"suomi (Suomi)"},{"Locale":"fil-PH","DisplayName":"Filipino (Pilipinas)"},{"Locale":"fr-BE","DisplayName":"français (Belgique)"},{"Locale":"fr-BF","DisplayName":"français (Burkina Faso)"},{"Locale":"fr-BI","DisplayName":"français (Burundi)"},{"Locale":"fr-BJ","DisplayName":"français (Bénin)"},{"Locale":"fr-BL","DisplayName":"français (Saint-Barthélemy)"},{"Locale":"fr-CA","DisplayName":"français (Canada)"},{"Locale":"fr-CF","DisplayName":"français (République centrafricaine)"},{"Locale":"fr-CG","DisplayName":"français (Congo)"},{"Locale":"fr-CH","DisplayName":"français (Suisse)"},{"Locale":"fr-CI","DisplayName":"français (Côte d’Ivoire)"},{"Locale":"fr-CM","DisplayName":"français (Cameroun)"},{"Locale":"fr-DJ","DisplayName":"français (Djibouti)"},{"Locale":"fr-DZ","DisplayName":"français (Algérie)"},{"Locale":"fr-FR","DisplayName":"français (France)"},{"Locale":"fr-GA","DisplayName":"français (Gabon)"},{"Locale":"fr-GF","DisplayName":"français (Guyane française)"},{"Locale":"fr-GN","DisplayName":"français (Guinée)"},{"Locale":"fr-GP","DisplayName":"français (Guadeloupe)"},{"Locale":"fr-GQ","DisplayName":"français (Guinée équatoriale)"},{"Locale":"fr-HT","DisplayName":"français (Haïti)"},{"Locale":"fr-KM","DisplayName":"français (Comores)"},{"Locale":"fr-LU","DisplayName":"français (Luxembourg)"},{"Locale":"fr-MA","DisplayName":"français (Maroc)"},{"Locale":"fr-MC","DisplayName":"français (Monaco)"},{"Locale":"fr-MF","DisplayName":"français (Saint-Martin)"},{"Locale":"fr-MG","DisplayName":"français (Madagascar)"},{"Locale":"fr-ML","DisplayName":"français (Mali)"},{"Locale":"fr-MQ","DisplayName":"français (Martinique)"},{"Locale":"fr-MR","DisplayName":"français (Mauritanie)"},{"Locale":"fr-MU","DisplayName":"français (Maurice)"},{"Locale":"fr-NC","DisplayName":"français (Nouvelle-Calédonie)"},{"Locale":"fr-NE","DisplayName":"français (Niger)"},{"Locale":"fr-PF","DisplayName":"français (Polynésie française)"},{"Locale":"fr-PM","DisplayName":"français (Saint-Pierre-et-Miquelon)"},{"Locale":"fr-RE","DisplayName":"français (La Réunion)"},{"Locale":"fr-RW","DisplayName":"français (Rwanda)"},{"Locale":"fr-SC","DisplayName":"français (Seychelles)"},{"Locale":"fr-SN","DisplayName":"français (Sénégal)"},{"Locale":"fr-TD","DisplayName":"français (Tchad)"},{"Locale":"fr-TG","DisplayName":"français (Togo)"},{"Locale":"fr-TN","DisplayName":"français (Tunisie)"},{"Locale":"fr-VU","DisplayName":"français (Vanuatu)"},{"Locale":"fr-WF","DisplayName":"français (Wallis-et-Futuna)"},{"Locale":"fr-YT","DisplayName":"français (Mayotte)"},{"Locale":"ga-IE","DisplayName":"Gaeilge (Éire)"},{"Locale":"gd-GB","DisplayName":"Gàidhlig (An Rìoghachd Aonaichte)"},{"Locale":"gl-ES","DisplayName":"galego (galego)"},{"Locale":"gu-IN","DisplayName":"ગુજરાતી (ભારત)"},{"Locale":"ha-Latn-NG","DisplayName":"Hausa (Najeriya)"},{"Locale":"he-IL","DisplayName":"עברית (ישראל)"},{"Locale":"hi-IN","DisplayName":"हिन्दी (भारत)"},{"Locale":"hr-BA","DisplayName":"hrvatski (Bosna i Hercegovina)"},{"Locale":"hr-HR","DisplayName":"hrvatski (Hrvatska)"},{"Locale":"hu-HU","DisplayName":"magyar (Magyarország)"},{"Locale":"hy-AM","DisplayName":"Հայերեն (Հայաստան)"},{"Locale":"id-ID","DisplayName":"Indonesia (Indonesia)"},{"Locale":"is-IS","DisplayName":"íslenska (Ísland)"},{"Locale":"it-CH","DisplayName":"italiano (Svizzera)"},{"Locale":"it-IT","DisplayName":"italiano (Italia)"},{"Locale":"it-SM","DisplayName":"italiano (San Marino)"},{"Locale":"it-VA","DisplayName":"italiano (Città del Vaticano)"},{"Locale":"ja-JP","DisplayName":"日本語 (日本)"},{"Locale":"ka-GE","DisplayName":"ქართული (საქართველო)"},{"Locale":"kk-KZ","DisplayName":"қазақ тілі (Қазақстан)"},{"Locale":"km-KH","DisplayName":"ភាសាខ្មែរ (កម្ពុជា)"},{"Locale":"kn-IN","DisplayName":"ಕನ್ನಡ (ಭಾರತ)"},{"Locale":"ko-KR","DisplayName":"한국어(대한민국)"},{"Locale":"kok-IN","DisplayName":"कोंकणी (भारत)"},{"Locale":"ky-KG","DisplayName":"Кыргыз (Кыргызстан)"},{"Locale":"lb-LU","DisplayName":"Lëtzebuergesch (Lëtzebuerg)"},{"Locale":"lo-LA","DisplayName":"ລາວ (ລາວ)"},{"Locale":"lt-LT","DisplayName":"lietuvių (Lietuva)"},{"Locale":"lv-LV","DisplayName":"latviešu (Latvija)"},{"Locale":"mi-NZ","DisplayName":"te reo Māori (Aotearoa)"},{"Locale":"mk-MK","DisplayName":"македонски (Северна Македонија)"},{"Locale":"ml-IN","DisplayName":"മലയാളം (ഇന്ത്യ)"},{"Locale":"mn-MN","DisplayName":"монгол (Монгол)"},{"Locale":"mr-IN","DisplayName":"मराठी (भारत)"},{"Locale":"ms-BN","DisplayName":"Melayu (Brunei)"},{"Locale":"ms-MY","DisplayName":"Melayu (Malaysia)"},{"Locale":"ms-SG","DisplayName":"Melayu (Singapura)"},{"Locale":"mt-MT","DisplayName":"Malti (Malta)"},{"Locale":"nb-NO","DisplayName":"norsk bokmål (Norge)"},{"Locale":"nb-SJ","DisplayName":"norsk bokmål (Svalbard og Jan Mayen)"},{"Locale":"ne-NP","DisplayName":"नेपाली (नेपाल)"},{"Locale":"nl-AW","DisplayName":"Nederlands (Aruba)"},{"Locale":"nl-BE","DisplayName":"Nederlands (België)"},{"Locale":"nl-BQ","DisplayName":"Nederlands (Bonaire, Sint Eustatius en Saba)"},{"Locale":"nl-CW","DisplayName":"Nederlands (Curaçao)"},{"Locale":"nl-NL","DisplayName":"Nederlands (Nederland)"},{"Locale":"nl-SR","DisplayName":"Nederlands (Suriname)"},{"Locale":"nl-SX","DisplayName":"Nederlands (Sint-Maarten)"},{"Locale":"or-IN","DisplayName":"ଓଡ଼ିଆ (ଭାରତ)"},{"Locale":"pa-IN","DisplayName":"ਪੰਜਾਬੀ (ਭਾਰਤ)"},{"Locale":"pl-PL","DisplayName":"polski (Polska)"},{"Locale":"prs-AF","DisplayName":"درى (افغانستان)"},{"Locale":"pt-AO","DisplayName":"português (Angola)"},{"Locale":"pt-BR","DisplayName":"português (Brasil)"},{"Locale":"pt-CH","DisplayName":"português (Suíça)"},{"Locale":"pt-CV","DisplayName":"português (Cabo Verde)"},{"Locale":"pt-GQ","DisplayName":"português (Guiné Equatorial)"},{"Locale":"pt-GW","DisplayName":"português (Guiné-Bissau)"},{"Locale":"pt-LU","DisplayName":"português (Luxemburgo)"},{"Locale":"pt-MO","DisplayName":"português (RAE de Macau)"},{"Locale":"pt-MZ","DisplayName":"português (Moçambique)"},{"Locale":"pt-PT","DisplayName":"português (Portugal)"},{"Locale":"pt-ST","DisplayName":"português (São Tomé e Príncipe)"},{"Locale":"pt-TL","DisplayName":"português (Timor-Leste)"},{"Locale":"quz-PE","DisplayName":"Runasimi (Perú)"},{"Locale":"ro-MD","DisplayName":"română (Republica Moldova)"},{"Locale":"ro-RO","DisplayName":"română (România)"},{"Locale":"ru-BY","DisplayName":"русский (Беларусь)"},{"Locale":"ru-KG","DisplayName":"русский (Киргизия)"},{"Locale":"ru-KZ","DisplayName":"русский (Казахстан)"},{"Locale":"ru-MD","DisplayName":"русский (Молдова)"},{"Locale":"ru-RU","DisplayName":"русский (Россия)"},{"Locale":"ru-UA","DisplayName":"русский (Украина)"},{"Locale":"sd-Arab-PK","DisplayName":"سنڌي (پاکستان)"},{"Locale":"si-LK","DisplayName":"සිංහල (ශ්රී ලංකාව)"},{"Locale":"sk-SK","DisplayName":"slovenčina (Slovensko)"},{"Locale":"sl-SI","DisplayName":"slovenščina (Slovenija)"},{"Locale":"sq-AL","DisplayName":"shqip (Shqipëri)"},{"Locale":"sq-MK","DisplayName":"shqip (Maqedonia e Veriut)"},{"Locale":"sq-XK","DisplayName":"shqip (Kosovë)"},{"Locale":"sr-Cyrl-BA","DisplayName":"српски (Босна и Херцеговина)"},{"Locale":"sr-Cyrl-ME","DisplayName":"српски (Црна Гора)"},{"Locale":"sr-Cyrl-RS","DisplayName":"српски (Србија)"},{"Locale":"sr-Cyrl-XK","DisplayName":"српски (Косово)"},{"Locale":"sr-Latn-BA","DisplayName":"srpski (Bosna i Hercegovina)"},{"Locale":"sr-Latn-ME","DisplayName":"srpski (Crna Gora)"},{"Locale":"sr-Latn-RS","DisplayName":"srpski (Srbija)"},{"Locale":"sr-Latn-XK","DisplayName":"srpski (Kosovo)"},{"Locale":"sv-AX","DisplayName":"svenska (Åland)"},{"Locale":"sv-FI","DisplayName":"svenska (Finland)"},{"Locale":"sv-SE","DisplayName":"svenska (Sverige)"},{"Locale":"sw-KE","DisplayName":"Kiswahili (Kenya)"},{"Locale":"sw-TZ","DisplayName":"Kiswahili (Tanzania)"},{"Locale":"sw-UG","DisplayName":"Kiswahili (Uganda)"},{"Locale":"ta-IN","DisplayName":"தமிழ் (இந்தியா)"},{"Locale":"ta-LK","DisplayName":"தமிழ் (இலங்கை)"},{"Locale":"ta-MY","DisplayName":"தமிழ் (மலேசியா)"},{"Locale":"ta-SG","DisplayName":"தமிழ் (சிங்கப்பூர்)"},{"Locale":"te-IN","DisplayName":"తెలుగు (భారత దేశం)"},{"Locale":"th-TH","DisplayName":"ไทย (ไทย)"},{"Locale":"tk-TM","DisplayName":"Türkmen dili (Türkmenistan)"},{"Locale":"tr-CY","DisplayName":"Türkçe (Kıbrıs)"},{"Locale":"tr-TR","DisplayName":"Türkçe (Türkiye)"},{"Locale":"tt-RU","DisplayName":"Татар (Россия)"},{"Locale":"ug-CN","DisplayName":"ئۇيغۇرچە (جۇڭخۇا خەلق جۇمھۇرىيىتى)"},{"Locale":"uk-UA","DisplayName":"українська (Україна)"},{"Locale":"ur-IN","DisplayName":"اردو (بھارت)"},{"Locale":"ur-PK","DisplayName":"اُردو (پاکستان)"},{"Locale":"uz-Arab-AF","DisplayName":"اوزبیک (افغانستان)"},{"Locale":"uz-Cyrl-UZ","DisplayName":"ўзбекча (Ўзбекистон)"},{"Locale":"uz-Latn-UZ","DisplayName":"o‘zbek (Oʻzbekiston)"},{"Locale":"vi-VN","DisplayName":"Tiếng Việt (Việt Nam)"},{"Locale":"zh-CN","DisplayName":"中文(中国)"},{"Locale":"zh-Hans-HK","DisplayName":"中文 (香港特别行政区)"},{"Locale":"zh-Hans-MO","DisplayName":"中文 (澳门特别行政区)"},{"Locale":"zh-HK","DisplayName":"中文(香港特別行政區)"},{"Locale":"zh-MO","DisplayName":"中文(澳門特別行政區)"},{"Locale":"zh-SG","DisplayName":"中文(新加坡)"},{"Locale":"zh-TW","DisplayName":"中文(台灣)"}]')},function(e,t,n){var i;
/*
* Date Format 1.2.3
* (c) 2007-2009 Steven Levithan <stevenlevithan.com>
* MIT license
*
* Includes enhancements by Scott Trenda <scott.trenda.net>
* and Kris Kowal <cixar.com/~kris.kowal/>
*
* Accepts a date, a mask, or a date and a mask.
* Returns a formatted version of the given date.
* The date defaults to the current date/time.
* The mask defaults to dateFormat.masks.default.
*/!function(r){"use strict";var a,o,s,u=(a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|"[^"]*"|'[^']*'/g,o=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,s=/[^-+\dA-Z]/g,function(e,t,n,i){if(1!==arguments.length||"string"!==d(e)||/\d/.test(e)||(t=e,e=void 0),(e=e||new Date)instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");var r=(t=String(u.masks[t]||t||u.masks.default)).slice(0,4);"UTC:"!==r&&"GMT:"!==r||(t=t.slice(4),n=!0,"GMT:"===r&&(i=!0));var f=n?"getUTC":"get",h=e[f+"Date"](),g=e[f+"Day"](),m=e[f+"Month"](),y=e[f+"FullYear"](),v=e[f+"Hours"](),S=e[f+"Minutes"](),b=e[f+"Seconds"](),_=e[f+"Milliseconds"](),C=n?0:e.getTimezoneOffset(),T=l(e),O=p(e),I={d:h,dd:c(h),ddd:u.i18n.dayNames[g],dddd:u.i18n.dayNames[g+7],m:m+1,mm:c(m+1),mmm:u.i18n.monthNames[m],mmmm:u.i18n.monthNames[m+12],yy:String(y).slice(2),yyyy:y,h:v%12||12,hh:c(v%12||12),H:v,HH:c(v),M:S,MM:c(S),s:b,ss:c(b),l:c(_,3),L:c(Math.round(_/10)),t:v<12?u.i18n.timeNames[0]:u.i18n.timeNames[1],tt:v<12?u.i18n.timeNames[2]:u.i18n.timeNames[3],T:v<12?u.i18n.timeNames[4]:u.i18n.timeNames[5],TT:v<12?u.i18n.timeNames[6]:u.i18n.timeNames[7],Z:i?"GMT":n?"UTC":(String(e).match(o)||[""]).pop().replace(s,""),o:(C>0?"-":"+")+c(100*Math.floor(Math.abs(C)/60)+Math.abs(C)%60,4),S:["th","st","nd","rd"][h%10>3?0:(h%100-h%10!=10)*h%10],W:T,N:O};return t.replace(a,(function(e){return e in I?I[e]:e.slice(1,e.length-1)}))});function c(e,t){for(e=String(e),t=t||2;e.length<t;)e="0"+e;return e}function l(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);var n=new Date(t.getFullYear(),0,4);n.setDate(n.getDate()-(n.getDay()+6)%7+3);var i=t.getTimezoneOffset()-n.getTimezoneOffset();t.setHours(t.getHours()-i);var r=(t-n)/6048e5;return 1+Math.floor(r)}function p(e){var t=e.getDay();return 0===t&&(t=7),t}function d(e){return null===e?"null":void 0===e?"undefined":"object"!=typeof e?typeof e:Array.isArray(e)?"array":{}.toString.call(e).slice(8,-1).toLowerCase()}u.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},u.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]},void 0===(i=function(){return u}.call(t,n,t,e))||(e.exports=i)}()},function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),function(e){e.MyDay="MyDay"}(i||(i={}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return s}));var i=n(50),r=n(1),a=n(158);n.d(t,"a",(function(){return a.a}));var o=n(153);function s(){var e=function(){return n.e("notifications").then(n.bind(null,285)).catch((function(e){return Object(r.e)().exception("NotificationsPackage_LoadFail",6,e)}))},t=Object(r.f)();t&&t.layout?(t.layout.centerCustomizationRegion&&Object(i.a)("NotificationBellIcon",t.layout.centerCustomizationRegion.children)||Object(i.a)("ChatIcon",t.layout.centerCustomizationRegion.children))&&e():Object(r.b)().subscribe("ShellDataUpdated",(function(t,n){(n.NotificationsEnabled||n.ChatEnabled)&&e()}),!0)}n.d(t,"b",(function(){return o.a}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AWT_REAL_TIME="REAL_TIME",t.AWT_NEAR_REAL_TIME="NEAR_REAL_TIME",t.AWT_BEST_EFFORT="BEST_EFFORT"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
/**
* AWTLogger.ts
* @author Abhilash Panwar (abpanwar)
* @copyright Microsoft 2017
*/
var i=n(60),r=n(119),a=n(120),o=n(76),s=n(188),u=n(93),c=n(106),l=n(192),p=n(190),d=n(140),f=n(141),h=function(){function e(e){this._apiKey=e,this._contextProperties=new a.default,this._semanticContext=new d.default(!1,this._contextProperties),this._sessionStartTime=0,this._createInitId()}return e.prototype.setContext=function(e,t,n){void 0===n&&(n=i.AWTPropertyType.Unspecified),this._contextProperties.setProperty(e,t,n)},e.prototype.setContextWithPii=function(e,t,n,r){void 0===r&&(r=i.AWTPropertyType.Unspecified),this._contextProperties.setPropertyWithPii(e,t,n,r)},e.prototype.setContextWithCustomerContent=function(e,t,n,r){void 0===r&&(r=i.AWTPropertyType.Unspecified),this._contextProperties.setPropertyWithCustomerContent(e,t,n,r)},e.prototype.getSemanticContext=function(){return this._semanticContext},e.prototype.logEvent=function(t){if(l.default.loggingEnabled){this._apiKey||(this._apiKey=l.default.defaultTenantToken,this._createInitId());var n=!0;o.isString(t)?t={name:t}:t instanceof a.default&&(t=t.getEvent(),n=!1),s.default.eventReceived(this._apiKey),e._logEvent(e._getInternalEvent(t,this._apiKey,n),this._contextProperties)}},e.prototype.logSession=function(t,n){if(l.default.sessionEnabled){var a={name:"session",type:"session",properties:{}};if(e._addPropertiesToEvent(a,n),a.priority=i.AWTEventPriority.High,t===r.AWTSessionState.Started){if(this._sessionStartTime>0)return;this._sessionStartTime=(new Date).getTime(),this._sessionId=o.newGuid(),this.setContext("Session.Id",this._sessionId),a.properties["Session.State"]="Started"}else{if(t!==r.AWTSessionState.Ended)return;if(0===this._sessionStartTime)return;var s=Math.floor(((new Date).getTime()-this._sessionStartTime)/1e3);a.properties["Session.Id"]=this._sessionId,a.properties["Session.State"]="Ended",a.properties["Session.Duration"]=s.toString(),a.properties["Session.DurationBucket"]=e._getSessionDurationFromTime(s),this._sessionStartTime=0,this.setContext("Session.Id",null),this._sessionId=void 0}a.properties["Session.FirstLaunchTime"]=f.default.firstLaunchTime,this.logEvent(a)}},e.prototype.getSessionId=function(){return this._sessionId},e.prototype.logFailure=function(t,n,r,a,o){if(t&&n){var s={name:"failure",type:"failure",properties:{}};e._addPropertiesToEvent(s,o),s.properties["Failure.Signature"]=t,s.properties["Failure.Detail"]=n,r&&(s.properties["Failure.Category"]=r),a&&(s.properties["Failure.Id"]=a),s.priority=i.AWTEventPriority.High,this.logEvent(s)}},e.prototype.logPageView=function(t,n,i,r,a,o){if(t&&n){var s={name:"pageview",type:"pageview",properties:{}};e._addPropertiesToEvent(s,o),s.properties["PageView.Id"]=t,s.properties["PageView.Name"]=n,i&&(s.properties["PageView.Category"]=i),r&&(s.properties["PageView.Uri"]=r),a&&(s.properties["PageView.ReferrerUri"]=a),this.logEvent(s)}},e.prototype._createInitId=function(){!e._initIdMap[this._apiKey]&&this._apiKey&&(e._initIdMap[this._apiKey]=o.newGuid())},e._addPropertiesToEvent=function(e,t){if(t)for(var n in t instanceof a.default&&(t=t.getEvent()),t.name&&(e.name=t.name),t.priority&&(e.priority=t.priority),t.properties)t.properties.hasOwnProperty(n)&&(e.properties[n]=t.properties[n])},e._getSessionDurationFromTime=function(e){return e<0?"Undefined":e<=3?"UpTo3Sec":e<=10?"UpTo10Sec":e<=30?"UpTo30Sec":e<=60?"UpTo60Sec":e<=180?"UpTo3Min":e<=600?"UpTo10Min":e<=1800?"UpTo30Min":"Above30Min"},e._logEvent=function(e,t){e.name&&o.isString(e.name)?(e.name=e.name.toLowerCase(),e.name=e.name.replace(o.EventNameDotRegex,"_"),e.type&&o.isString(e.type)?e.type=e.type.toLowerCase():e.type="custom",o.EventNameAndTypeRegex.test(e.name)&&o.EventNameAndTypeRegex.test(e.type)?((!o.isNumber(e.timestamp)||e.timestamp<0)&&(e.timestamp=(new Date).getTime()),e.properties||(e.properties={}),this._addContextIfAbsent(e,t.getPropertyMap()),this._addContextIfAbsent(e,l.default.logManagerContext.getPropertyMap()),this._setDefaultProperty(e,"EventInfo.InitId",this._getInitId(e.apiKey)),this._setDefaultProperty(e,"EventInfo.Sequence",this._getSequenceId(e.apiKey)),this._setDefaultProperty(e,"EventInfo.SdkVersion",p.FullVersionString),this._setDefaultProperty(e,"EventInfo.Name",e.name),this._setDefaultProperty(e,"EventInfo.Time",new Date(e.timestamp).toISOString()),o.isPriority(e.priority)||(e.priority=i.AWTEventPriority.Normal),this._sendEvent(e)):u.default.eventsRejected([e],i.AWTEventsRejectedReason.InvalidEvent)):u.default.eventsRejected([e],i.AWTEventsRejectedReason.InvalidEvent)},e._addContextIfAbsent=function(e,t){if(t)for(var n in t)t.hasOwnProperty(n)&&(e.properties[n]||(e.properties[n]=t[n]))},e._setDefaultProperty=function(e,t,n){e.properties[t]={value:n,pii:i.AWTPiiKind.NotSet,type:i.AWTPropertyType.String}},e._sendEvent=function(e){c.default.sendEvent(e)},e._getInternalEvent=function(e,t,n){if(e.properties=e.properties||{},n)for(var i in e.properties)e.properties.hasOwnProperty(i)&&(e.properties[i]=o.sanitizeProperty(i,e.properties[i]),null===e.properties[i]&&delete e.properties[i]);var r=e;return r.id=o.newGuid(),r.apiKey=t,r},e._getInitId=function(t){return e._initIdMap[t]},e._getSequenceId=function(t){return void 0===e._sequenceIdMap[t]&&(e._sequenceIdMap[t]=0),(++e._sequenceIdMap[t]).toString()},e._sequenceIdMap={},e._initIdMap={},e}();t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
/**
* AWTStatsManager.ts
* @author Abhilash Panwar (abpanwar)
* @copyright Microsoft 2017
*/
var i=n(76),r=n(93),a=n(60),o=function(){function e(){}return e.initialize=function(e){var t=this;this._sendStats=e,this._isInitalized=!0,r.default.addNotificationListener({eventsSent:function(e){t._addStat("records_sent_count",e.length,e[0].apiKey)},eventsDropped:function(e,n){switch(n){case a.AWTEventsDroppedReason.NonRetryableStatus:t._addStat("d_send_fail",e.length,e[0].apiKey),t._addStat("records_dropped_count",e.length,e[0].apiKey);break;case a.AWTEventsDroppedReason.MaxRetryLimit:t._addStat("d_retry_limit",e.length,e[0].apiKey),t._addStat("records_dropped_count",e.length,e[0].apiKey);break;case a.AWTEventsDroppedReason.QueueFull:t._addStat("d_queue_full",e.length,e[0].apiKey)}},eventsRejected:function(e,n){switch(n){case a.AWTEventsRejectedReason.InvalidEvent:t._addStat("r_inv",e.length,e[0].apiKey);break;case a.AWTEventsRejectedReason.KillSwitch:t._addStat("r_kl",e.length,e[0].apiKey);break;case a.AWTEventsRejectedReason.SizeLimitExceeded:t._addStat("r_size",e.length,e[0].apiKey)}t._addStat("r_count",e.length,e[0].apiKey)},eventsRetrying:null}),setTimeout((function(){return t.flush()}),6e4)},e.teardown=function(){this._isInitalized&&(this.flush(),this._isInitalized=!1)},e.eventReceived=function(t){e._addStat("records_received_count",1,t)},e.flush=function(){var e=this;if(this._isInitalized){for(var t in this._stats)this._stats.hasOwnProperty(t)&&this._sendStats(this._stats[t],t);this._stats={},setTimeout((function(){return e.flush()}),6e4)}},e._addStat=function(e,t,n){if(this._isInitalized&&n!==i.StatsApiKey){var r=i.getTenantId(n);this._stats[r]||(this._stats[r]={}),this._stats[r][e]?this._stats[r][e]=this._stats[r][e]+t:this._stats[r][e]=t}},e._isInitalized=!1,e._stats={},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
/**
* AWTSerializer.ts
* @author Brent Erickson (brericks) and Abhilash Panwar (abpanwar)
* @copyright Microsoft 2017
*/
var i=n(269),r=n(60),a=n(93),o=n(76),s=function(){function e(){}return e.getPayloadBlob=function(e,t){var n,s=!1,u=new i.IO.MemoryStream,c=new i.CompactBinaryProtocolWriter(u);for(var l in c._WriteFieldBegin(i._BondDataType._BT_MAP,3,null),c._WriteMapContainerBegin(t,i._BondDataType._BT_STRING,i._BondDataType._BT_LIST),e)if(s)n||(n={}),n[l]=e[l],delete e[l];else if(e.hasOwnProperty(l)){c._WriteString(l);var p=e[l];c._WriteContainerBegin(1,i._BondDataType._BT_STRUCT),c._WriteFieldBegin(i._BondDataType._BT_STRING,2,null),c._WriteString("act_default_source"),c._WriteFieldBegin(i._BondDataType._BT_STRING,5,null),c._WriteString(o.newGuid()),c._WriteFieldBegin(i._BondDataType._BT_INT64,6,null),c._WriteInt64(o.numberToBondInt64(Date.now())),c._WriteFieldBegin(i._BondDataType._BT_LIST,8,null);var d=u._GetBuffer().length+1;c._WriteContainerBegin(e[l].length,i._BondDataType._BT_STRUCT);for(var f=u._GetBuffer().length-d,h=0;h<p.length;++h){var g=u._GetBuffer().length;if(this.writeEvent(p[h],c),u._GetBuffer().length-g>2936012)a.default.eventsRejected([p[h]],r.AWTEventsRejectedReason.SizeLimitExceeded),p.splice(h--,1),u._GetBuffer().splice(g),this._addNewDataPackageSize(p.length,u,f,d);else if(u._GetBuffer().length>2936012){u._GetBuffer().splice(g),n||(n={}),e[l]=p.splice(0,h),n[l]=p,this._addNewDataPackageSize(e[l].length,u,f,d),s=!0;break}}c._WriteStructEnd(!1)}return c._WriteStructEnd(!1),{payloadBlob:u._GetBuffer(),remainingRequest:n}},e._addNewDataPackageSize=function(e,t,n,r){for(var a=i._Encoding._Varint_GetBytes(i.Number._ToUInt32(e)),o=0;o<n;++o){if(!(o<a.length)){t._GetBuffer().slice(r+o,n-o);break}t._GetBuffer()[r+o]=a[o]}},e.writeEvent=function(e,t){t._WriteFieldBegin(i._BondDataType._BT_STRING,1,null),t._WriteString(e.id),t._WriteFieldBegin(i._BondDataType._BT_INT64,3,null),t._WriteInt64(o.numberToBondInt64(e.timestamp)),t._WriteFieldBegin(i._BondDataType._BT_STRING,5,null),t._WriteString(e.type),t._WriteFieldBegin(i._BondDataType._BT_STRING,6,null),t._WriteString(e.name);var n={},a=0,s={},u=0,c={},l=0,p={},d=0,f={},h=0,g={},m=0,y={},v=0;for(var S in e.properties){if(e.properties.hasOwnProperty(S))if((_=e.properties[S]).cc>0)y[S]=_,v++;else if(_.pii>0)g[S]=_,m++;else switch(_.type){case r.AWTPropertyType.String:n[S]=_.value,a++;break;case r.AWTPropertyType.Int64:s[S]=_.value,u++;break;case r.AWTPropertyType.Double:c[S]=_.value,l++;break;case r.AWTPropertyType.Boolean:p[S]=_.value,d++;break;case r.AWTPropertyType.Date:f[S]=_.value,h++}}if(a)for(var S in t._WriteFieldBegin(i._BondDataType._BT_MAP,13,null),t._WriteMapContainerBegin(a,i._BondDataType._BT_STRING,i._BondDataType._BT_STRING),n)if(n.hasOwnProperty(S)){var b=n[S];t._WriteString(S),t._WriteString(b.toString())}if(m)for(var S in t._WriteFieldBegin(i._BondDataType._BT_MAP,30,null),t._WriteMapContainerBegin(m,i._BondDataType._BT_STRING,i._BondDataType._BT_STRUCT),g)if(g.hasOwnProperty(S)){var _=g[S];t._WriteString(S),t._WriteFieldBegin(i._BondDataType._BT_INT32,1,null),t._WriteInt32(1),t._WriteFieldBegin(i._BondDataType._BT_INT32,2,null),t._WriteInt32(_.pii),t._WriteFieldBegin(i._BondDataType._BT_STRING,3,null),t._WriteString(_.value.toString()),t._WriteStructEnd(!1)}if(d)for(var S in t._WriteFieldBegin(i._BondDataType._BT_MAP,31,null),t._WriteMapContainerBegin(d,i._BondDataType._BT_STRING,i._BondDataType._BT_BOOL),p)if(p.hasOwnProperty(S)){b=p[S];t._WriteString(S),t._WriteBool(b)}if(h)for(var S in t._WriteFieldBegin(i._BondDataType._BT_MAP,32,null),t._WriteMapContainerBegin(h,i._BondDataType._BT_STRING,i._BondDataType._BT_INT64),f)if(f.hasOwnProperty(S)){b=f[S];t._WriteString(S),t._WriteInt64(o.numberToBondInt64(b))}if(u)for(var S in t._WriteFieldBegin(i._BondDataType._BT_MAP,33,null),t._WriteMapContainerBegin(u,i._BondDataType._BT_STRING,i._BondDataType._BT_INT64),s)if(s.hasOwnProperty(S)){b=s[S];t._WriteString(S),t._WriteInt64(o.numberToBondInt64(b))}if(l)for(var S in t._WriteFieldBegin(i._BondDataType._BT_MAP,34,null),t._WriteMapContainerBegin(l,i._BondDataType._BT_STRING,i._BondDataType._BT_DOUBLE),c)if(c.hasOwnProperty(S)){b=c[S];t._WriteString(S),t._WriteDouble(b)}if(v)for(var S in t._WriteFieldBegin(i._BondDataType._BT_MAP,36,null),t._WriteMapContainerBegin(v,i._BondDataType._BT_STRING,i._BondDataType._BT_STRUCT),y)if(y.hasOwnProperty(S)){_=y[S];t._WriteString(S),t._WriteFieldBegin(i._BondDataType._BT_INT32,1,null),t._WriteInt32(_.cc),t._WriteFieldBegin(i._BondDataType._BT_STRING,2,null),t._WriteString(_.value.toString()),t._WriteStructEnd(!1)}t._WriteStructEnd(!1)},e.base64Encode=function(e){return i._Encoding._Base64_GetString(e)},e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),
/**
* Version.ts
* @author Abhilash Panwar (abpanwar)
* @copyright Microsoft 2018
* File for SDK version.
*/
t.Version="1.8.6",t.FullVersionString="AWT-Web-JS-"+t.Version},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(60),r=n(119),a=n(192),o=n(187),s=n(106),u=n(93),c=n(141),l=function(){function e(){}return e.initialize=function(e,t){if(void 0===t&&(t={}),!this._isInitialized)return this._isInitialized=!0,a.default.defaultTenantToken=e,this._overrideValuesFromConfig(t),this._config.disableCookiesUsage&&!this._config.propertyStorageOverride&&(a.default.sessionEnabled=!1),c.default.addPropertyStorageOverride(this._config.propertyStorageOverride),c.default.autoCollect(a.default.semanticContext,this._config.disableCookiesUsage,this._config.userAgent),s.default.initialize(this._config),a.default.loggingEnabled=!0,this._config.enableAutoUserSession&&(this.getLogger().logSession(r.AWTSessionState.Started),window.addEventListener("beforeunload",this.flushAndTeardown)),this.getLogger()},e.getSemanticContext=function(){return a.default.semanticContext},e.flush=function(e){this._isInitialized&&!this._isDestroyed&&s.default.flush(e)},e.flushAndTeardown=function(){this._isInitialized&&!this._isDestroyed&&(this._config.enableAutoUserSession&&this.getLogger().logSession(r.AWTSessionState.Ended),s.default.flushAndTeardown(),a.default.loggingEnabled=!1,this._isDestroyed=!0)},e.pauseTransmission=function(){this._isInitialized&&!this._isDestroyed&&s.default.pauseTransmission()},e.resumeTransmision=function(){this._isInitialized&&!this._isDestroyed&&s.default.resumeTransmision()},e.setTransmitProfile=function(e){this._isInitialized&&!this._isDestroyed&&s.default.setTransmitProfile(e)},e.loadTransmitProfiles=function(e){this._isInitialized&&!this._isDestroyed&&s.default.loadTransmitProfiles(e)},e.setContext=function(e,t,n){void 0===n&&(n=i.AWTPropertyType.Unspecified),a.default.logManagerContext.setProperty(e,t,n)},e.setContextWithPii=function(e,t,n,r){void 0===r&&(r=i.AWTPropertyType.Unspecified),a.default.logManagerContext.setPropertyWithPii(e,t,n,r)},e.setContextWithCustomerContent=function(e,t,n,r){void 0===r&&(r=i.AWTPropertyType.Unspecified),a.default.logManagerContext.setPropertyWithCustomerContent(e,t,n,r)},e.getLogger=function(e){var t=e;return t&&t!==a.default.defaultTenantToken||(t=""),this._loggers[t]||(this._loggers[t]=new o.default(t)),this._loggers[t]},e.addNotificationListener=function(e){u.default.addNotificationListener(e)},e.removeNotificationListener=function(e){u.default.removeNotificationListener(e)},e._overrideValuesFromConfig=function(e){e.collectorUri&&(this._config.collectorUri=e.collectorUri),e.cacheMemorySizeLimitInNumberOfEvents>0&&(this._config.cacheMemorySizeLimitInNumberOfEvents=e.cacheMemorySizeLimitInNumberOfEvents),e.httpXHROverride&&e.httpXHROverride.sendPOST&&(this._config.httpXHROverride=e.httpXHROverride),e.propertyStorageOverride&&e.propertyStorageOverride.getProperty&&e.propertyStorageOverride.setProperty&&(this._config.propertyStorageOverride=e.propertyStorageOverride),e.userAgent&&(this._config.userAgent=e.userAgent),e.disableCookiesUsage&&(this._config.disableCookiesUsage=e.disableCookiesUsage),e.canSendStatEvent&&(this._config.canSendStatEvent=e.canSendStatEvent),e.enableAutoUserSession&&"undefined"!=typeof window&&window.addEventListener&&(this._config.enableAutoUserSession=e.enableAutoUserSession),e.clockSkewRefreshDurationInMins>0&&(this._config.clockSkewRefreshDurationInMins=e.clockSkewRefreshDurationInMins)},e._loggers={},e._isInitialized=!1,e._isDestroyed=!1,e._config={collectorUri:"https://browser.pipe.aria.microsoft.com/Collector/3.0/",cacheMemorySizeLimitInNumberOfEvents:1e4,disableCookiesUsage:!1,canSendStatEvent:function(e){return!0},clockSkewRefreshDurationInMins:0},e}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
/**
* AWTLogManagerSettings.ts
* @author Abhilash Panwar (abpanwar)
* @copyright Microsoft 2017
*/
var i=n(120),r=n(140),a=function(){function e(){}return e.logManagerContext=new i.default,e.sessionEnabled=!0,e.loggingEnabled=!1,e.defaultTenantToken="",e.semanticContext=new r.default(!0,e.logManagerContext),e}();t.default=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(1),r=n(14),a="office",o=[r.DefaultThemeId,a,r.ContrastThemeId,"rainbow","ribbon","unicorn","supplies","backpack","fish","leaf","mountain","beach","circuit","blueprint","far","whale","super","jelly","wrld"];function s(e,t,n,s){for(var u={},c=0,l=e;c<l.length;c++){var p=l[c];u[p.Id.toLowerCase()]=p}return s&&Object(i.g)().getThemeState().tenantTheme&&(u[a]={Id:a}),s?[t=n?a:t].concat(o).concat(e.map((function(e){return e.Id}))).reduce((function(e,t){var n,i,r,a=(n=u,i=t.toLowerCase(),r=n[i],delete n[i],r);return null!=a&&e.push(a),e}),[]):[u[r.DefaultThemeId],u[r.ContrastThemeId]]}},function(e,t,n){"use strict";var i,r;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),function(e){e[e.UnreadCounterUpdate=0]="UnreadCounterUpdate"}(i||(i={})),function(e){e.TeamsChatAPIReady="ms-teams-sdk-loaded",e.ConversationOpened="conversationOpened"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return m}));var i,r=n(0),a=n(2),o=n(3),s=n(1),u=n(13),c=n(58),l=n(17),p=n(206),d=n(16),f=n(5),h=n(9),g=function(e){var t=e instanceof MouseEvent;if(e instanceof KeyboardEvent)switch(e.which){case 40:t=e.altKey;break;case 13:case 32:t=!0}t&&function(e){e.preventDefault(),window.open(i),Object(s.e)().click("ChatButton","NavBar",null,null,"Default chat web page")}(e)};var m=function(e){function t(t){var n=e.call(this,t)||this;return n.onMouseChange=function(e){return n.setState({isHovered:e})},n.state={isHovered:!1},i=n.props.chatWebLink,n}return Object(r.__extends)(t,e),t.prototype.render=function(){if(!this.props.chatEnabled)return null;var e=this.props.isConsumerShell?"SkypeLogo":"OfficeChat",t=Object(u.a)();return a.createElement("button",{type:"button",id:l.a,className:Object(o.y)(d.button,t.headerButton),"aria-disabled":"false",title:f.a.Chat,"aria-label":f.a.Chat,role:"button",onMouseEnter:this.onMouseChange.bind(this,!0),onMouseLeave:this.onMouseChange.bind(this,!1)},a.createElement(o.f,{fontIconCss:"ms-Icon--"+e,fontSize:h.f.toString(),className:Object(o.y)(p.icon),isAriaHidden:!0}),a.createElement(o.r,{unseenItemCount:this.props.unreadBadgeValue,isParentHovered:this.state.isHovered,badgeStyles:Object(o.y)(d.headerButtonBadgePosition)}))},t.prototype.componentDidMount=function(){Object(o.t)([l.a],c.a.CLICK+" "+c.a.KEYDOWN,g)},t}(a.Component)},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.default=function(e){return i.__assign({__type:"GetRemindersJsonRequest:#Exchange"},e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.default=function(e){return i.__assign({__type:"GetRemindersRequest:#Exchange"},e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.default=function(e){return i.__assign({__type:"PerformReminderActionResponse:#Exchange"},e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.default=function(e){return i.__assign({__type:"SetUserThemeRequest:#Exchange"},e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.default=function(e){return i.__assign({__type:"GetMailboxRegionalConfigurationRequest:#Exchange"},e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.default=function(e){return i.__assign({__type:"SetMailboxRegionalConfigurationRequest:#Exchange"},e)}},function(e,t,n){var i=n(280);"string"==typeof i&&(i=[[e.i,i,""]]);n(25)(i,{});i.locals&&(e.exports=i.locals)},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(60),r=n(268),a=n(106),o=n(278),s=n(93),u=n(76),c=function(){function e(e,t,n,a){this._queueSizeLimit=t,this._isCurrentlyUploadingNow=!1,this._uploadNowQueue=[],this._shouldDropEventsOnPause=!1,this._paused=!1,this._queueSize=0,this._outboundQueue=[],this._inboundQueues={},this._inboundQueues[i.AWTEventPriority.High]=[],this._inboundQueues[i.AWTEventPriority.Normal]=[],this._inboundQueues[i.AWTEventPriority.Low]=[],this._addEmptyQueues(),this._batcher=new o.default(this._outboundQueue,500),this._httpManager=new r.default(this._outboundQueue,e,this,n,a)}return e.prototype.addEvent=function(e){u.isPriority(e.priority)||(e.priority=i.AWTEventPriority.Normal),e.priority===i.AWTEventPriority.Immediate_sync?this._httpManager.sendSynchronousRequest(this._batcher.addEventToBatch(e),e.apiKey):this._queueSize<this._queueSizeLimit||this._dropEventWithPriorityOrLess(e.priority)?this._addEventToProperQueue(e):s.default.eventsDropped([e],i.AWTEventsDroppedReason.QueueFull)},e.prototype.sendEventsForPriorityAndAbove=function(e){this._batchEvents(e),this._httpManager.sendQueuedRequests()},e.prototype.hasEvents=function(){return(this._inboundQueues[i.AWTEventPriority.High][0].length>0||this._inboundQueues[i.AWTEventPriority.Normal][0].length>0||this._inboundQueues[i.AWTEventPriority.Low][0].length>0||this._batcher.hasBatch())&&this._httpManager.hasIdleConnection()},e.prototype.addBackRequest=function(e){if(!this._paused||!this._shouldDropEventsOnPause){for(var t in e)if(e.hasOwnProperty(t))for(var n=0;n<e[t].length;++n)e[t][n].sendAttempt<6?this.addEvent(e[t][n]):s.default.eventsDropped([e[t][n]],i.AWTEventsDroppedReason.MaxRetryLimit);a.default.scheduleTimer()}},e.prototype.teardown=function(){this._paused||(this._batchEvents(i.AWTEventPriority.Low),this._httpManager.teardown())},e.prototype.uploadNow=function(e){var t=this;this._addEmptyQueues(),this._isCurrentlyUploadingNow?this._uploadNowQueue.push(e):(this._isCurrentlyUploadingNow=!0,setTimeout((function(){return t._uploadNow(e)}),0))},e.prototype.pauseTransmission=function(){this._paused=!0,this._httpManager.pause(),this.shouldDropEventsOnPause&&(this._queueSize-=this._inboundQueues[i.AWTEventPriority.High][0].length+this._inboundQueues[i.AWTEventPriority.Normal][0].length+this._inboundQueues[i.AWTEventPriority.Low][0].length,this._inboundQueues[i.AWTEventPriority.High][0]=[],this._inboundQueues[i.AWTEventPriority.Normal][0]=[],this._inboundQueues[i.AWTEventPriority.Low][0]=[],this._httpManager.removeQueuedRequests())},e.prototype.resumeTransmission=function(){this._paused=!1,this._httpManager.resume()},e.prototype.shouldDropEventsOnPause=function(e){this._shouldDropEventsOnPause=e},e.prototype._removeFirstQueues=function(){this._inboundQueues[i.AWTEventPriority.High].shift(),this._inboundQueues[i.AWTEventPriority.Normal].shift(),this._inboundQueues[i.AWTEventPriority.Low].shift()},e.prototype._addEmptyQueues=function(){this._inboundQueues[i.AWTEventPriority.High].push([]),this._inboundQueues[i.AWTEventPriority.Normal].push([]),this._inboundQueues[i.AWTEventPriority.Low].push([])},e.prototype._addEventToProperQueue=function(e){this._paused&&this._shouldDropEventsOnPause||(this._queueSize++,this._inboundQueues[e.priority][this._inboundQueues[e.priority].length-1].push(e))},e.prototype._dropEventWithPriorityOrLess=function(e){for(var t=i.AWTEventPriority.Low;t<=e;){if(this._inboundQueues[t][this._inboundQueues[t].length-1].length>0)return s.default.eventsDropped([this._inboundQueues[t][this._inboundQueues[t].length-1].shift()],i.AWTEventsDroppedReason.QueueFull),!0;t++}return!1},e.prototype._batchEvents=function(e){for(var t=i.AWTEventPriority.High;t>=e;){for(;this._inboundQueues[t][0].length>0;){var n=this._inboundQueues[t][0].pop();this._queueSize--,this._batcher.addEventToBatch(n)}t--}this._batcher.flushBatch()},e.prototype._uploadNow=function(e){var t=this;this.hasEvents()&&this.sendEventsForPriorityAndAbove(i.AWTEventPriority.Low),this._checkOutboundQueueEmptyAndSent((function(){t._removeFirstQueues(),null!=e&&e(),t._uploadNowQueue.length>0?setTimeout((function(){return t._uploadNow(t._uploadNowQueue.shift())}),0):(t._isCurrentlyUploadingNow=!1,t.hasEvents()&&a.default.scheduleTimer())}))},e.prototype._checkOutboundQueueEmptyAndSent=function(e){var t=this;this._httpManager.isCompletelyIdle()?e():setTimeout((function(){return t._checkOutboundQueueEmptyAndSent(e)}),250)},e}();t.default=c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.default=function(e){return i.__assign({__type:"JsonRequestHeaders:#Exchange"},e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.default=function(e){return i.__assign({__type:"TimeZoneContext:#Exchange"},e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.default=function(e){return i.__assign({__type:"TimeZoneDefinitionType:#Exchange"},e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.default=function(e){return i.__assign({__type:"ExtendedPropertyUri:#Exchange"},e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(60),r=n(189),a=n(275),o=n(276),s=n(277),u=n(190),c=n(76),l=n(93),p=n(106),d=function(){function e(e,t,n,i,r){var a=this;this._requestQueue=e,this._queueManager=n,this._httpInterface=i,this._urlString="?qsp=true&content-type=application%2Fbond-compact-binary&client-id=NO_AUTH&sdk-version="+u.FullVersionString,this._killSwitch=new o.default,this._paused=!1,this._useBeacons=!1,this._activeConnections=0,this._clockSkewManager=new s.default(r),c.isUint8ArrayAvailable()||(this._urlString+="&content-encoding=base64"),this._urlString=t+this._urlString,this._httpInterface||(this._useBeacons=!c.isReactNative(),this._httpInterface={sendPOST:function(e,t,n,i,r,o){try{if(c.useFetchRequest())fetch(e,{body:t,method:"POST"}).then((function(e){var t={};e.headers&&e.headers.forEach((function(e,n){t[n]=e})),r(e.status,t)})).catch((function(e){i(0,{})}));else if(c.useXDomainRequest()){var s=new XDomainRequest;s.open("POST",e),s.onload=function(){r(200,null)},s.onerror=function(){i(400,null)},s.ontimeout=function(){n(500,null)},s.send(t)}else{var u=new XMLHttpRequest;u.open("POST",e,!o),u.onload=function(){r(u.status,a._convertAllHeadersToMap(u.getAllResponseHeaders()))},u.onerror=function(){i(u.status,a._convertAllHeadersToMap(u.getAllResponseHeaders()))},u.ontimeout=function(){n(u.status,a._convertAllHeadersToMap(u.getAllResponseHeaders()))},u.send(t)}}catch(e){i(400,null)}}})}return e.prototype.hasIdleConnection=function(){return this._activeConnections<2},e.prototype.sendQueuedRequests=function(){for(;this.hasIdleConnection()&&!this._paused&&this._requestQueue.length>0&&this._clockSkewManager.allowRequestSending();)this._activeConnections++,this._sendRequest(this._requestQueue.shift(),0,!1);this.hasIdleConnection()&&p.default.scheduleTimer()},e.prototype.isCompletelyIdle=function(){return 0===this._activeConnections},e.prototype.teardown=function(){for(;this._requestQueue.length>0;)this._sendRequest(this._requestQueue.shift(),0,!0)},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1,this.sendQueuedRequests()},e.prototype.removeQueuedRequests=function(){this._requestQueue.length=0},e.prototype.sendSynchronousRequest=function(e,t){this._paused&&(e[t][0].priority=i.AWTEventPriority.High),this._activeConnections++,this._sendRequest(e,0,!1,!0)},e.prototype._sendRequest=function(e,t,n,a){var o=this;void 0===a&&(a=!1);try{if(this._paused)return this._activeConnections--,void this._queueManager.addBackRequest(e);var s=0,u="";for(var p in e)e.hasOwnProperty(p)&&(this._killSwitch.isTenantKilled(p)?(l.default.eventsRejected(e[p],i.AWTEventsRejectedReason.KillSwitch),delete e[p]):(u.length>0&&(u+=","),u+=p,s++));if(s>0){var d=r.default.getPayloadBlob(e,s);d.remainingRequest&&this._requestQueue.push(d.remainingRequest);var f=this._urlString+"&x-apikey="+u+"&client-time-epoch-millis="+Date.now().toString();this._clockSkewManager.shouldAddClockSkewHeaders()&&(f=f+"&time-delta-to-apply-millis="+this._clockSkewManager.getClockSkewHeaderValue());var h=void 0;for(var p in h=c.isUint8ArrayAvailable()?new Uint8Array(d.payloadBlob):r.default.base64Encode(d.payloadBlob),e)if(e.hasOwnProperty(p))for(var g=0;g<e[p].length;++g)e[p][g].sendAttempt>0?e[p][g].sendAttempt++:e[p][g].sendAttempt=1;if(this._useBeacons&&n&&c.isBeaconsSupported()&&navigator.sendBeacon(f,h))return;this._httpInterface.sendPOST(f,h,(function(i,r){o._retryRequestIfNeeded(i,r,e,s,u,t,n,a)}),(function(i,r){o._retryRequestIfNeeded(i,r,e,s,u,t,n,a)}),(function(i,r){o._retryRequestIfNeeded(i,r,e,s,u,t,n,a)}),n||a)}else n||this._handleRequestFinished(!1,{},n,a)}catch(e){this._handleRequestFinished(!1,{},n,a)}},e.prototype._retryRequestIfNeeded=function(e,t,n,r,o,s,u,c){var d=this,f=!0;if(void 0!==e){if(t){var h=this._killSwitch.setKillSwitchTenants(t["kill-tokens"],t["kill-duration-seconds"]);this._clockSkewManager.setClockSkew(t["time-delta-millis"]);for(var g=0;g<h.length;++g)l.default.eventsRejected(n[h[g]],i.AWTEventsRejectedReason.KillSwitch),delete n[h[g]],r--}else this._clockSkewManager.setClockSkew(null);if(200===e)return void this._handleRequestFinished(!0,n,u,c);(!a.default.shouldRetryForStatus(e)||r<=0)&&(f=!1)}if(f)if(c)this._activeConnections--,n[o][0].priority=i.AWTEventPriority.High,this._queueManager.addBackRequest(n);else if(s<1){for(var m in n)n.hasOwnProperty(m)&&l.default.eventsRetrying(n[m]);setTimeout((function(){return d._sendRequest(n,s+1,!1)}),a.default.getMillisToBackoffForRetry(s))}else this._activeConnections--,p.default.backOffTransmission(),this._queueManager.addBackRequest(n);else this._handleRequestFinished(!1,n,u,c)},e.prototype._handleRequestFinished=function(e,t,n,r){for(var a in e&&p.default.clearBackOff(),t)t.hasOwnProperty(a)&&(e?l.default.eventsSent(t[a]):l.default.eventsDropped(t[a],i.AWTEventsDroppedReason.NonRetryableStatus));this._activeConnections--,r||n||this.sendQueuedRequests()},e.prototype._convertAllHeadersToMap=function(e){var t={};if(e)for(var n=e.split("\n"),i=0;i<n.length;++i){var r=n[i].split(": ");t[r[0]]=r[1]}return t},e}();t.default=d},function(e,t,n){"use strict";
/**
* microsoft.bond.ts
* Copyright: Microsoft 2016
*/Object.defineProperty(t,"__esModule",{value:!0});var i=n(270);t._BondDataType=i._BondDataType;var r=n(271);t._Encoding=r;var a=n(274);t.IO=a;var o=n(121);t.Int64=o.Int64,t.UInt64=o.UInt64,t.Number=o.Number;var s=function(){function e(e){this._stream=e}return e.prototype._WriteBlob=function(e){this._stream._Write(e,0,e.length)},e.prototype._WriteBool=function(e){this._stream._WriteByte(e?1:0)},e.prototype._WriteContainerBegin=function(e,t){this._WriteUInt8(t),this._WriteUInt32(e)},e.prototype._WriteMapContainerBegin=function(e,t,n){this._WriteUInt8(t),this._WriteUInt8(n),this._WriteUInt32(e)},e.prototype._WriteDouble=function(e){var t=r._Double_GetBytes(e);this._stream._Write(t,0,t.length)},e.prototype._WriteFieldBegin=function(e,t,n){t<=5?this._stream._WriteByte(e|t<<5):t<=255?(this._stream._WriteByte(192|e),this._stream._WriteByte(t)):(this._stream._WriteByte(224|e),this._stream._WriteByte(t),this._stream._WriteByte(t>>8))},e.prototype._WriteInt32=function(e){e=r._Zigzag_EncodeZigzag32(e),this._WriteUInt32(e)},e.prototype._WriteInt64=function(e){this._WriteUInt64(r._Zigzag_EncodeZigzag64(e))},e.prototype._WriteString=function(e){if(""===e)this._WriteUInt32(0);else{var t=r._Utf8_GetBytes(e);this._WriteUInt32(t.length),this._stream._Write(t,0,t.length)}},e.prototype._WriteStructEnd=function(e){this._WriteUInt8(e?i._BondDataType._BT_STOP_BASE:i._BondDataType._BT_STOP)},e.prototype._WriteUInt32=function(e){var t=r._Varint_GetBytes(o.Number._ToUInt32(e));this._stream._Write(t,0,t.length)},e.prototype._WriteUInt64=function(e){var t=r._Varint64_GetBytes(e);this._stream._Write(t,0,t.length)},e.prototype._WriteUInt8=function(e){this._stream._WriteByte(o.Number._ToUInt8(e))},e}();t.CompactBinaryProtocolWriter=s},function(e,t,n){"use strict";
/**
* bond_const.ts
* Copyright: Microsoft 2016
*/Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e._BT_STOP=0]="_BT_STOP",e[e._BT_STOP_BASE=1]="_BT_STOP_BASE",e[e._BT_BOOL=2]="_BT_BOOL",e[e._BT_DOUBLE=8]="_BT_DOUBLE",e[e._BT_STRING=9]="_BT_STRING",e[e._BT_STRUCT=10]="_BT_STRUCT",e[e._BT_LIST=11]="_BT_LIST",e[e._BT_MAP=13]="_BT_MAP",e[e._BT_INT32=16]="_BT_INT32",e[e._BT_INT64=17]="_BT_INT64"}(t._BondDataType||(t._BondDataType={}))},function(e,t,n){"use strict";
/**
* microsoft.bond.encoding.ts
* Copyright: Microsoft 2016
*/Object.defineProperty(t,"__esModule",{value:!0});var i=n(121),r=n(272),a=n(273);t._Utf8_GetBytes=function(e){for(var t=[],n=0;n<e.length;++n){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||i>=57344?t.push(224|i>>12,128|i>>6&63,128|63&i):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++n)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return t},t._Base64_GetString=function(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=[],r=e.length%3,a=0,o=e.length-r;a<o;a+=3){var s=(e[a]<<16)+(e[a+1]<<8)+e[a+2];i.push([n.charAt((t=s)>>18&63),n.charAt(t>>12&63),n.charAt(t>>6&63),n.charAt(63&t)].join(""))}switch(r){case 1:s=e[e.length-1];i.push(n.charAt(s>>2)),i.push(n.charAt(s<<4&63)),i.push("==");break;case 2:var u=(e[e.length-2]<<8)+e[e.length-1];i.push(n.charAt(u>>10)),i.push(n.charAt(u>>4&63)),i.push(n.charAt(u<<2&63)),i.push("=")}return i.join("")},t._Varint_GetBytes=function(e){for(var t=[];4294967168&e;)t.push(127&e|128),e>>>=7;return t.push(127&e),t},t._Varint64_GetBytes=function(e){for(var t=e.low,n=e.high,i=[];n||4294967168&t;)i.push(127&t|128),t=(127&n)<<25|t>>>7,n>>>=7;return i.push(127&t),i},t._Double_GetBytes=function(e){if(a.BrowserChecker._IsDataViewSupport()){var t=new DataView(new ArrayBuffer(8));t.setFloat64(0,e,!0);for(var n=[],i=0;i<8;++i)n.push(t.getUint8(i));return n}return r.FloatUtils._ConvertNumberToArray(e,!0)},t._Zigzag_EncodeZigzag32=function(e){return(e=i.Number._ToInt32(e))<<1^e>>31},t._Zigzag_EncodeZigzag64=function(e){var t=e.low,n=e.high,r=n<<1|t>>>31,a=t<<1;2147483648&n&&(r=~r,a=~a);var o=new i.UInt64("0");return o.low=a,o.high=r,o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
/**
* microsoft.bond.floatutils.ts
* Copyright: Microsoft 2016
*
* This class will be used to convert float/double to byte array on browsers which don't support html5.
*
* Format: IEEE-754, littleEndian, http://en.wikipedia.org/wiki/IEEE_754-1985
*
* \note
* 1. Don't have negative zero. All zero will be positive zero.
* 2. If the buffer array passed to ConvertArrayToFloat() is actual NaN or Inifinity value,
* exception will be raised.
*/
var i=function(){function e(){}return e._ConvertNumberToArray=function(e,t){if(!e)return t?this._doubleZero:this._floatZero;var n=t?52:23,i=(1<<(t?11:8)-1)-1,r=1-i,a=i,o=e<0?1:0;e=Math.abs(e);for(var s=Math.floor(e),u=e-s,c=2*(i+2)+n,l=new Array(c),p=0;p<c;)l[p++]=0;for(p=i+2;p&&s;)l[--p]=s%2,s=Math.floor(s/2);for(p=i+1;p<c-1&&u>0;)(u*=2)>=1?(l[++p]=1,--u):l[++p]=0;for(var d=0;d<c&&!l[d];)d++;var f=i+1-d,h=d+n;if(l[h+1]){for(p=h;p>d&&(l[p]=1-l[p],!l);--p);p===d&&++f}if(f>a||s)return o?t?this._doubleNegInifinity:this._floatNegInifinity:t?this._doubleInifinity:this._floatInifinity;if(f<r)return t?this._doubleZero:this._floatZero;if(t){var g=0;for(p=0;p<20;++p)g=g<<1|l[++d];for(var m=0;p<52;++p)m=m<<1|l[++d];return[255&m,m>>8&255,m>>16&255,m>>>24,255&(g=o<<31|2147483647&(g|=f+i<<20)),g>>8&255,g>>16&255,g>>>24]}var y=0;for(p=0;p<23;++p)y=y<<1|l[++d];return[255&(y=o<<31|2147483647&(y|=f+i<<23)),y>>8&255,y>>16&255,y>>>24]},e._floatZero=[0,0,0,0],e._doubleZero=[0,0,0,0,0,0,0,0],e._floatInifinity=[0,0,128,127],e._floatNegInifinity=[0,0,128,255],e._doubleInifinity=[0,0,0,0,0,0,240,127],e._doubleNegInifinity=[0,0,0,0,0,0,240,255],e}();t.FloatUtils=i},function(e,t,n){"use strict";
/**
* microsoft.bond.utils.ts
* Copyright: Microsoft 2016
*/Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e._IsDataViewSupport=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},e}();t.BrowserChecker=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
/**
* microsoft.bond.io.ts
* Copyright: Microsoft 2016
*/
var i=n(121),r=function(){function e(){this._buffer=[]}return e.prototype._WriteByte=function(e){this._buffer.push(i.Number._ToByte(e))},e.prototype._Write=function(e,t,n){for(;n--;)this._WriteByte(e[t++])},e.prototype._GetBuffer=function(){return this._buffer},e}();t.MemoryStream=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
/**
* AWTRetryPolicy.ts
* @author Abhilash Panwar (abpanwar)
* @copyright Microsoft 2017
*/
var i=function(){function e(){}return e.shouldRetryForStatus=function(e){return!(e>=300&&e<500&&408!==e||501===e||505===e)},e.getMillisToBackoffForRetry=function(e){var t,n=Math.floor(1200*Math.random())+2400;return t=Math.pow(4,e)*n,Math.min(t,12e4)},e}();t.default=i},function(e,t,n){"use strict";
/**
* AWTKillSwitch.ts
* @author Abhilash Panwar (abpanwar)
* @copyright Microsoft 2017
*/Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this._killedTokenDictionary={}}return e.prototype.setKillSwitchTenants=function(e,t){if(e&&t)try{var n=e.split(",");if("this-request-only"===t)return n;for(var i=1e3*parseInt(t,10),r=0;r<n.length;++r)this._killedTokenDictionary[n[r]]=Date.now()+i}catch(e){return[]}return[]},e.prototype.isTenantKilled=function(e){return void 0!==this._killedTokenDictionary[e]&&this._killedTokenDictionary[e]>Date.now()||(delete this._killedTokenDictionary[e],!1)},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
/**
* AWTClockSkewManager.ts
* @author Abhilash Panwar (abpanwar)
* @copyright Microsoft 2017
*/
var i=function(){function e(e){this.clockSkewRefreshDurationInMins=e,this._reset()}return e.prototype.allowRequestSending=function(){return this._isFirstRequest&&!this._clockSkewSet?(this._isFirstRequest=!1,this._allowRequestSending=!1,!0):this._allowRequestSending},e.prototype.shouldAddClockSkewHeaders=function(){return this._shouldAddClockSkewHeaders},e.prototype.getClockSkewHeaderValue=function(){return this._clockSkewHeaderValue},e.prototype.setClockSkew=function(e){this._clockSkewSet||(e?this._clockSkewHeaderValue=e:this._shouldAddClockSkewHeaders=!1,this._clockSkewSet=!0,this._allowRequestSending=!0)},e.prototype._reset=function(){var e=this;this._isFirstRequest=!0,this._clockSkewSet=!1,this._allowRequestSending=!0,this._shouldAddClockSkewHeaders=!0,this._clockSkewHeaderValue="use-collector-delta",this.clockSkewRefreshDurationInMins>0&&setTimeout((function(){return e._reset()}),6e4*this.clockSkewRefreshDurationInMins)},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(60),r=function(){function e(e,t){this._outboundQueue=e,this._maxNumberOfEvents=t,this._currentBatch={},this._currentNumEventsInBatch=0}return e.prototype.addEventToBatch=function(e){if(e.priority===i.AWTEventPriority.Immediate_sync){var t={};return t[e.apiKey]=[e],t}return this._currentNumEventsInBatch>=this._maxNumberOfEvents&&this.flushBatch(),void 0===this._currentBatch[e.apiKey]&&(this._currentBatch[e.apiKey]=[]),this._currentBatch[e.apiKey].push(e),this._currentNumEventsInBatch++,null},e.prototype.flushBatch=function(){this._currentNumEventsInBatch>0&&(this._outboundQueue.push(this._currentBatch),this._currentBatch={},this._currentNumEventsInBatch=0)},e.prototype.hasBatch=function(){return this._currentNumEventsInBatch>0},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(106),r=function(){function e(){}return e.setEventsHandler=function(e){i.default.setEventsHandler(e)},e.getEventsHandler=function(){return i.default.getEventsHandler()},e.scheduleTimer=function(){i.default.scheduleTimer()},e}();t.default=r},function(e,t,n){(t=e.exports=n(24)(!1)).push([e.i,".b8ed2c1e3f87fa5afb01b05f07cb11d1\\.scss{display:inline-block;font-size:19px;vertical-align:middle}",""]),t.locals={icon:"b8ed2c1e3f87fa5afb01b05f07cb11d1.scss"}},function(e,t,n){(t=e.exports=n(24)(!1)).push([e.i,"._9c9ac2ba8022a76fe0da22bf2d7c929e\\.scss{height:calc(100vh - 115px)}._5a9983af2393f57bba4fb6a532cbe0a9\\.scss{height:calc(100vh - 113px)}",""]),t.locals={flexPaneContentContainer:"_9c9ac2ba8022a76fe0da22bf2d7c929e.scss",flexPaneContentContainerForThinHeader:"_5a9983af2393f57bba4fb6a532cbe0a9.scss"}},function(e,t,n){(t=e.exports=n(24)(!1)).push([e.i,'.dd9cc5bed244fa1257115c0dfb92398f\\.scss{font-family:ShellFabricMDL2IconsLite,ShellFabricMDL2Icons;line-height:1}.dd9cc5bed244fa1257115c0dfb92398f\\.scss .o365cs-base [class*=" ms-Icon--"]:before,.dd9cc5bed244fa1257115c0dfb92398f\\.scss .o365cs-base [class^=ms-Icon--]:before{font-family:inherit}.ce6ea4d8dc00d0a7e4577fa400ff962c\\.scss,.f9a6de03151dad8c2d59d8da658e3e36\\.scss{height:100%}',""]),t.locals={customHeaderButton:"dd9cc5bed244fa1257115c0dfb92398f.scss",customHeaderButtonsContainer:"ce6ea4d8dc00d0a7e4577fa400ff962c.scss",customHeaderButtonWrapper:"f9a6de03151dad8c2d59d8da658e3e36.scss"}},function(e,t,n){(t=e.exports=n(24)(!1)).push([e.i,"._142972ea3ec03ca2ccf6a74671a2e848\\.scss,._2712d22ab8cca89e641732658484a880\\.scss{-webkit-transform-origin:top;-ms-transform-origin:top;transform-origin:top;-webkit-animation-duration:.18s;animation-duration:.18s;-webkit-animation-timing-function:cubic-bezier(.1,.9,.2,1);animation-timing-function:cubic-bezier(.1,.9,.2,1)}.bc95acb3ec3465cd8a2b4a6b3f07452c\\.scss,._095aed890600525c1e645361fdce40d3\\.scss{width:100%;height:8px;visibility:hidden;display:none}._095aed890600525c1e645361fdce40d3\\.scss{background:transparent;cursor:pointer}._095aed890600525c1e645361fdce40d3\\.scss:hover{opacity:.4;background:#404040}.c164744661b2a8c11c64dddd0e3e4cdf\\.scss{position:absolute;left:47.81%;right:47.81%;border-radius:6px;width:14px;height:2px;align-self:center;pointer-events:none}._83236f0eb826a19022686832264618fb\\.scss{-webkit-animation-name:headerSlideInFrames;animation-name:headerSlideInFrames}._57f2e78611e692bd24c8b56920101fe4\\.scss{-webkit-animation-name:headerSlideOutFrames;animation-name:headerSlideOutFrames}._17dc91bc678f7b899af09f6ef416c968\\.scss{-webkit-animation-name:workloadDivSlideInFrames;animation-name:workloadDivSlideInFrames;animation-fill-mode:forwards}._26f979a3fe18ee993b5349ebc39b510b\\.scss{-webkit-animation-name:workloadDivSlideOutFrames;animation-name:workloadDivSlideOutFrames;animation-fill-mode:forwards}@-webkit-keyframes headerSlideInFrames{0%{height:8px;opacity:0;-webkit-transform:scale(.95);-ms-transform:scale(.95);transform:scale(.95)}to{height:48px;opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}@keyframes headerSlideInFrames{0%{height:8px;opacity:0;-webkit-transform:scale(.95);-ms-transform:scale(.95);transform:scale(.95)}to{height:48px;opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}@-webkit-keyframes headerSlideOutFrames{0%{visibility:visible;display:flex;height:48px;opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}to{visibility:hidden;display:none;height:8px;opacity:0;-webkit-transform:scale(.95);-ms-transform:scale(.95);transform:scale(.95)}}@keyframes headerSlideOutFrames{0%{visibility:visible;display:flex;height:48px;opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}to{visibility:hidden;display:none;height:8px;opacity:0;-webkit-transform:scale(.95);-ms-transform:scale(.95);transform:scale(.95)}}@-webkit-keyframes workloadDivSlideInFrames{0%{height:8px;min-height:8px}to{height:48px;min-height:48px}}@keyframes workloadDivSlideInFrames{0%{height:8px;min-height:8px}to{height:48px;min-height:48px}}@-webkit-keyframes workloadDivSlideOutFrames{0%{height:48px;min-height:48px}to{height:8px;min-height:8px}}@keyframes workloadDivSlideOutFrames{0%{height:48px;min-height:48px}to{height:8px;min-height:8px}}",""]),t.locals={headerAnimations:"_142972ea3ec03ca2ccf6a74671a2e848.scss",workloadDivAnimations:"_2712d22ab8cca89e641732658484a880.scss",shyHeader:"bc95acb3ec3465cd8a2b4a6b3f07452c.scss",shyHeaderOverlay:"_095aed890600525c1e645361fdce40d3.scss",shyHeaderGripper:"c164744661b2a8c11c64dddd0e3e4cdf.scss",headerSlideIn:"_83236f0eb826a19022686832264618fb.scss",headerSlideOut:"_57f2e78611e692bd24c8b56920101fe4.scss",workloadDivSlideIn:"_17dc91bc678f7b899af09f6ef416c968.scss",workloadDivSlideOut:"_26f979a3fe18ee993b5349ebc39b510b.scss"}},,,function(e,t,n){"use strict";n.r(t);var i=n(1),r=n(2),a=n(27),o=n(10),s=n(3),u=n(102),c=n(31),l=n(0),p=n(4),d=n(32),f=n(47),h=n(67);function g(e){return new Promise((function(t,n){var r=Object(s.I)("/api/myapps/GetIcon?appDataJson={0}",encodeURIComponent(JSON.stringify({Id:e.Id,CollectorId:e.CollectorId,Properties:e.Properties})));f.b.Instance.Service.callWebClientShellServiceFunction(r,"GET",null,null).then((function(e){t(e)})).catch((function(e){p.i.isCallsBlockedException(e)||Object(i.e)().exception("AppsManager_GetAppIcon_Failed",6,e),n(e)}))}))}var m=["FirstParty","SharePoint","Graph","LineOfBusiness","Dynamics"],y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastAppsPinnedDataWriteTimestampKey=new h.c("User","Suite","LastAppsPinnedDataWriteTimestamp"),t.cachedAppsDataKey=new h.c("User","Suite","CachedAppsData"),t}return Object(l.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this;window.O365Shell.OnSuiteAPILoaded((function(){e.initializeInternal()}))},t.prototype.componentDidUpdate=function(e){this.props.appsPinnedData&&e.appsPinnedData&&this.props.appsPinnedData!==e.appsPinnedData&&((!this.props.appsPinnedData.timestamp||!e.appsPinnedData.timestamp||this.props.appsPinnedData.timestamp>=e.appsPinnedData.timestamp)&&this.hasAppsPinnedDataChanged(e.appsPinnedData)&&this.saveCustomization())},t.prototype.render=function(){return null},t.prototype.initializeInternal=function(){var e=this,t=this.props.appsPinnedData;this.props.disableSessionStorageCache?this.updateAppsFromStorage():null!=t?Date.now()-this.props.timestamp<6e4?this.readLastAppsPinnedDataWriteTimestampFromSessionStorageAsync().then((function(n){n&&t.timestamp<n?e.readAppsPinnedData(1):e.updateApps(t,!0)})).catch((function(){e.readAppsPinnedData(3)})):this.readAppsPinnedData(2):this.readAppsPinnedData(0);var n=Object(i.b)();n.subscribe("AppIconRequested",(function(t){g(t).then((function(n){e.props.onSetImageDataUrl(t.CollectorId,t.Id,"data:"+n.MimeType+";base64,"+n.Base64EncodedImage)})).catch((function(){}))})),n.subscribe("AppDataDetailsRequested",(function(t){e.getAppDataDetailsAsync(t).then((function(n){n.CollectorId=t.CollectorId,e.props.onSetAppDataDetails(n)})).catch((function(){}))}),!0),n.subscribe("AppsReset",(function(){e.props.onSetAppsPinnedData({apps:[]})})),n.subscribe("AppsUpdate",(function(){e.updateAppsFromCollectors()}))},t.prototype.readAppsPinnedData=function(e){var t=this;this.readAppsPinnedDataFromStorageAsync().then((function(e){t.updateApps(e,!0)})).catch((function(){t.updateApps(t.props.appsPinnedData,!1),Object(i.e)().tag("AppsManager_ReadAppsPinnedDataFromStorageReason",1,e)}))},t.prototype.updateApps=function(e,t){var n=this;e&&e!==this.props.appsPinnedData&&this.props.onSetAppsPinnedData(e),t&&this.props.onEnableCustomization(),this.readCachedAppsFromSessionStorageAsync().then((function(e){if(e)if(Date.now()-e.timestamp>n.props.appsUpdateTimeSpan||e.cultureName!==n.props.cultureName)n.updateAppsFromStorage();else{var t=!0;n.props.appDataCache&&!n.props.moreAppDataAvailable&&n.props.timestamp>=e.timestamp&&(t=!1),t&&n.updateMyApps(e.apps,1)}else n.updateAppsFromStorage()})).catch((function(){n.updateAppsFromStorage()}))},t.prototype.updateAppsFromStorage=function(){var e=this;this.props.appDataCache&&!this.props.moreAppDataAvailable?this.updateAppsFromCollectors():this.readAppDataCacheFromStorageAsync().then((function(t){e.onReadAppDataCacheSucceeded(t)})).catch((function(){e.updateAppsFromCollectors()}))},t.prototype.onReadAppDataCacheSucceeded=function(e){for(var t={},n=function(n){var r=e[n];if(r&&r.Apps)t[n]=r.Apps;else{var a=i.props.appsData.filter((function(e){return e.CollectorId===n}));a.length>0&&(t[n]=a)}},i=this,r=0,a=m;r<a.length;r++){n(a[r])}this.onAppDataDictionaryFetched(t,2),this.updateAppsFromCollectors()},t.prototype.updateAppsFromCollectors=function(){var e=this;this.props.doNotCallGetAllAppsUntil&&this.props.doNotCallGetAllAppsUntil>Date.now()||this.getAllAppsFromCollectorsAsync().then((function(t){e.onGetAllAppsSucceeded(t)})).catch((function(){e.invokeAppsUpdatedEvent(null,0,3)}))},t.prototype.onGetAllAppsSucceeded=function(e){if(0!==Object.keys(e).length){for(var t=function(t){if(!e[t]){var i=n.props.appsData.filter((function(e){return e.CollectorId===t}));i.length>0&&(e[t]=i)}},n=this,i=0,r=m;i<r.length;i++){t(r[i])}this.onAppDataDictionaryFetched(e,3)}},t.prototype.onAppDataDictionaryFetched=function(e,t){e.FirstParty&&(e.FirstParty=this.getFirstPartyAppsFromAppsData(this.props.appsData,e.FirstParty)),this.updateMyApps(e,t),this.writeCachedAppsToSessionStorageAsync({timestamp:Date.now(),apps:e,cultureName:this.props.cultureName}).catch((function(){}))},t.prototype.getFirstPartyAppsFromAppsData=function(e,t){for(var n=[],i=0,r=e.filter((function(e){return"FirstParty"===e.CollectorId}));i<r.length;i++){var a=r[i],o=Object(d.a)(t,"FirstParty",a.Id);null!=o&&(a.AlternateNames=o.AlternateNames,a.DateInstalled=o.DateInstalled),n.push(a)}if(!n.some((function(e){return"Partner"===e.Id}))){var s=Object(d.a)(t,"FirstParty","Partner");null!=s&&n.push(s)}return n},t.prototype.updateMyApps=function(e,t){var n=this.aggregateAppDatas(e);this.props.onSetAppsData(n,t)},t.prototype.invokeAppsUpdatedEvent=function(e,t,n){var r={Apps:e,DataSource:t,FailureReason:n},a=null!=e?"AppsRetrievalSucceeded":"AppsRetrievalFailed";Object(i.b)().invoke(a,r)},t.prototype.hasAppsPinnedDataChanged=function(e){var t=this.props.appsPinnedData.apps,n=e.apps;if(t.length!==n.length)return!0;for(var i=0;i<t.length;i++)if(t[i].CollectorId!==n[i].CollectorId||t[i].Id!==n[i].Id)return!0;return!1},t.prototype.saveCustomization=function(){var e=this,t=this.props.appsPinnedData.apps.map((function(e){return e.Id}));Object(i.e)().tag("AppsManager_SavingAppsCustomizationData",1,t.join());var n=Date.now();if("number"==typeof n)this.props.appsPinnedData.timestamp=n,this.props.appsPinnedData.cultureName=this.props.cultureName,this.writeAppsPinnedDataToStorageAsync(this.props.appsPinnedData).then((function(){e.writeLastAppsPinnedDataWriteTimestampToSessionStorageAsync(e.props.appsPinnedData.timestamp).catch((function(){}))})).catch((function(){}));else{var r=null;try{r=Date.now.toString()}catch(e){}Object(i.e)().tag("AppsManager_InvalidDateNowFunction",6,n,r)}},t.prototype.aggregateAppDatas=function(e){for(var t=[],n=0,i=Object.keys(e);n<i.length;n++){var r=i[n];e[r]&&t.push.apply(t,e[r])}return t},t.prototype.readLastAppsPinnedDataWriteTimestampFromSessionStorageAsync=function(){var e=this;return new Promise((function(t,n){var r=f.b.Instance.WebShellStorage.createWebShellStorageRequest();r.requestRead(e.lastAppsPinnedDataWriteTimestampKey),f.b.Instance.WebShellStorage.readSessionStorage(r).then((function(n){n.hasValue(e.lastAppsPinnedDataWriteTimestampKey)?t(n.getValue(e.lastAppsPinnedDataWriteTimestampKey)):t()})).catch((function(e){Object(i.e)().exception("AppsManager_ReadLastAppsPinnedDataWriteTimestamp_Failed",6,e),n(e)}))}))},t.prototype.writeLastAppsPinnedDataWriteTimestampToSessionStorageAsync=function(e){var t=this;return new Promise((function(n,i){var r=f.b.Instance.WebShellStorage.createWebShellStorageRequest();r.requestWrite(e,t.lastAppsPinnedDataWriteTimestampKey),f.b.Instance.WebShellStorage.writeSessionStorage(r).then((function(){n()})).catch((function(e){p.i.genericServiceRejection("AppsManager_WriteLastAppsPinnedDataWriteTimestamp_Failed",6,e,i)}))}))},t.prototype.readAppsPinnedDataFromStorageAsync=function(){return new Promise((function(e,t){f.b.Instance.WebShellStorage.readStorage(h.f.User,h.b.SystemMetadata,"AppsPinnedData").then((function(t){var n=t.value;n&&"string"==typeof n.timestamp&&(n.timestamp=Object(s.R)(n.timestamp).getTime()),e(n)})).catch((function(e){p.i.genericServiceRejection("AppsManager_ReadPinnedAppsData_Failed",6,e,t)}))}))},t.prototype.writeAppsPinnedDataToStorageAsync=function(e){return new Promise((function(t,n){f.b.Instance.WebShellStorage.writeStorage(h.f.User,h.b.SystemMetadata,"AppsPinnedData",e).then((function(){t()})).catch((function(e){p.i.isCallsBlockedException(e)||Object(i.e)().exception("AppsManager_WriteAppsPinnedData_Failed",6,e),n(e)}))}))},t.prototype.readAppDataCacheFromStorageAsync=function(){var e=this;return new Promise((function(t,n){var r=Object(s.I)("/api/myapps/GetAppDataCache?hasMailboxInCloud={0}&culture={1}",e.props.hasMailboxInCloud.toString(),e.props.cultureName);f.b.Instance.Service.callWebClientShellServiceFunction(r,"GET",null,null).then((function(e){t(e)})).catch((function(e){p.i.isCallsBlockedException(e)||Object(i.e)().exception("AppsManager_ReadAppDataCacheFromWCSS_Failed",6,e),n(e)}))}))},t.prototype.getAllAppsFromCollectorsAsync=function(){var e=this;return new Promise((function(t,n){var r=Object(s.I)("/api/myapps/GetAllApps?culture={0}",e.props.cultureName);f.b.Instance.Service.callWebClientShellServiceFunction(r,"GET",null,null).then((function(e){t(e)})).catch((function(e){p.i.isCallsBlockedException(e)||Object(i.e)().exception("AppsManager_AppCollectorFetch_Failed",6,e),n(e)}))}))},t.prototype.readCachedAppsFromSessionStorageAsync=function(){var e=this;return new Promise((function(t,n){var r=f.b.Instance.WebShellStorage.createWebShellStorageRequest();r.requestRead(e.cachedAppsDataKey),f.b.Instance.WebShellStorage.readSessionStorage(r).then((function(n){n.hasValue(e.cachedAppsDataKey)?t(n.getValue(e.cachedAppsDataKey)):t()})).catch((function(e){p.i.isCallsBlockedException(e)||Object(i.e)().exception("AppsManager_ReadCacheAppsData_Failed",6,e,e.errorCode),n(e)}))}))},t.prototype.writeCachedAppsToSessionStorageAsync=function(e){var t=this;return new Promise((function(n,i){var r=f.b.Instance.WebShellStorage.createWebShellStorageRequest();r.requestWrite(e,t.cachedAppsDataKey),f.b.Instance.WebShellStorage.writeSessionStorage(r).then((function(){n()})).catch((function(e){p.i.genericServiceRejection("AppsManager_WriteCacheAppsData_Failed",6,e,i)}))}))},t.prototype.getAppDataDetailsAsync=function(e){var t=this;return new Promise((function(n,r){var a=Object(s.I)("/api/myapps/GetAppDetails?culture={0}",t.props.cultureName),o={CollectorId:e.CollectorId,Id:e.Id,Title:e.Title,Properties:e.Properties};f.b.Instance.Service.callWebClientShellServiceFunction(a,"POST",null,o).then((function(e){n(e)})).catch((function(e){p.i.isCallsBlockedException(e)||Object(i.e)().exception("Apps_FetchDetailsForCollector_Failed",6,e),r(e)}))}))},t}(r.Component),v=Object(o.b)((function(e){return{appsData:e.appsDataState.apps,appsPinnedData:e.appLauncherState.appsPinnedData,cultureName:e.userState.cultureName,timestamp:e.appsManagerState.timestamp,appsUpdateTimeSpan:e.appsManagerState.appsUpdateTimeSpan,hasMailboxInCloud:e.userState.hasMailboxInCloud,appDataCache:e.appsManagerState.appDataCache,moreAppDataAvailable:e.appsManagerState.moreAppDataAvailable,doNotCallGetAllAppsUntil:e.appsManagerState.doNotCallGetAllAppsUntil,disableSessionStorageCache:Object(c.d)(e.shellInitDataState.clientData.WorkloadId,e.shellInitDataState.navBarData.CurrentMainLinkElementID)}}),(function(e){return{onSetAppsData:function(t,n){e(Object(s.V)(t,n))},onSetAppsPinnedData:function(t){e(Object(u.d)(t))},onEnableCustomization:function(){e(Object(u.a)())},onSetImageDataUrl:function(t,n,i){e(Object(s.Y)(t,n,i))},onSetAppDataDetails:function(t){e(Object(u.c)(t))}}}))(y);function S(e,t){return t?Object(l.__assign)(Object(l.__assign)({},e),{appsUpdateTimeSpan:t.AppsUpdateTimeSpan,timestamp:t.Timestamp,appDataCache:t.AppDataCache,moreAppDataAvailable:t.MoreAppDataAvailable,doNotCallGetAllAppsUntil:t.DoNotCallGetAllAppsUntil}):e}var b={appsManagerState:function(e,t){if(!e){var n=t.shellInitData.shellInitDataState;e=S(s.w,n.clientData)}switch(t.type){case s.j:return S(e,t.shellClientData);default:return e}}},_=n(28),C=n(23),T=Object(s.L)(),O=function(){function e(){this.callbackPairings=[]}return e.prototype.IsCustomizationEnabled=function(){return T.getState().appLauncherState.isCustomizable},e.prototype.IsPinned=function(e,t){return null!=C.b(T.getState().appLauncherState.pinnedAppTiles,e,t)},e.prototype.Pin=function(e,t){var n;"string"==typeof e?n=d.a(T.getState().appsDataState.apps,e,t):(Object(i.e)().tag("AppLauncher_PinnedCalledWithAppData",1),n=d.a(T.getState().appsDataState.apps,e.CollectorId,e.Id)),n&&T.dispatch(Object(_.g)(n))},e.prototype.Unpin=function(e,t){T.dispatch(Object(_.n)(e,t))},e.prototype.Reset=function(){Object(i.b)().invoke("AppsReset")},e.prototype.Update=function(){Object(i.b)().invoke("AppsUpdate")},e.prototype.OnAppsUpdated=function(e){var t=this,n=function(n){e(t.deepCloneAppsUpdatedEventArgs(n))},r=Object(i.b)(),a=r.subscribe("AppsRetrievalSucceeded",n,!0),o=r.subscribe("AppsRetrievalFailed",n,!0);return this.callbackPairings.push({successCallbackToken:a,failureCallbackToken:o}),a},e.prototype.RemoveOnAppsUpdated=function(e){for(var t=0,n=Object(i.b)(),r=0,a=this.callbackPairings;r<a.length;r++){var o=a[r];if(o.successCallbackToken===e){n.unsubscribe("AppsRetrievalSucceeded",o.successCallbackToken),n.unsubscribe("AppsRetrievalFailed",o.failureCallbackToken);break}t++}t<this.callbackPairings.length&&this.callbackPairings.splice(t,1)},e.prototype.GetAuthenticatedAppIcon=function(e,t){null==e.FontIconCss&&null==e.IconAnonymousUrl?g(e).then(t).catch((function(){t(null)})):t(null)},e.prototype.deepCloneAppsUpdatedEventArgs=function(e){var t=JSON.parse(JSON.stringify(e));if(t.Apps)for(var n=0,i=t.Apps;n<i.length;n++){var r=i[n];"FirstParty"===r.CollectorId&&(r.Id=d.d(r.Id,"add"))}return t},e}();function I(e,t){if(e.IsAuthenticated&&t.Timestamp>0){Object(i.b)().unsubscribe("ShellDataUpdated",I);var n=Object(s.L)();a.render(r.createElement(o.a,{store:n},r.createElement(v,null)),document.createElement("div"))}}var A=n(185),w=n(49),D=n(26),E=n(17),P=n(130),R=n(44),k=n(9),N=n(5),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(l.__extends)(t,e),t.prototype.componentDidMount=function(){this.props.isAvailable&&Object(i.e)().perfMarker("HelpTimeToInteractive")},t.prototype.render=function(){var e={controlID:this.props.id,isVisible:this.props.isAvailable,ariaLabel:N.a.Help_Title,affordanceMenuItemText:N.a.Help,iconID:this.props.flipHelpIcon?"HelpMirrored":"Help",iconFontSize:k.f.toString(),isActive:this.props.isActive,isDarkModeEnabled:this.props.isDarkModeEnabled,onClick:this.props.onClick,onDimensionsChanged:this.props.controlDimensionsChanged};return 0===this.props.renderContext?r.createElement(R.b,Object(l.__assign)({},e)):r.createElement(R.a,Object(l.__assign)({},e))},t}(r.Component),L=Object(o.b)((function(e,t){return{isAvailable:!0,id:t&&t.id,isActive:e.flexPaneState&&"Help"===e.flexPaneState.activeProviderKey,flipHelpIcon:e.headerState&&e.headerState.flipHelpIcon,controlDimensionsChanged:t.controlDimensionsChanged}}),(function(e){return{onClick:function(t,n){t.stopPropagation(),Object(i.e)().click("Help","NavBar",null,null,"Active state: "+n.isActive+", Render context: "+n.renderContext),e(Object(s.eb)(t&&t.currentTarget&&t.currentTarget.id));var r=Object(i.f)();!r||null!=r.OnHelpButtonClick&&r.OnHelpButtonClick()||e(Object(D.f)("Help")),n.onClick&&n.onClick(t)}}}),(function(e,t,n){var i=Object(l.__assign)(Object(l.__assign)({},n),e);return Object(l.__assign)(Object(l.__assign)(Object(l.__assign)({},i),t),{onClick:function(e){return t.onClick(e,i)},onDimensionsChanged:function(){return t.onDimensionsChanged(i)}})}))(x);var j=n(69),U=n(75),M=n(35),F=null,B=function(){function e(e,t,n,i,r){this.serverRequestInfluxControl=r,this.context={};var a={disableCookiesUsage:!0};t&&t.length>0&&(a.collectorUri=t),j.AWTLogManager.setTransmitProfile(j.AWT_NEAR_REAL_TIME),this.ariaLogger=j.AWTLogManager.initialize(e,a),n||(n="undefined"),i||(i="undefined"),this.registerContextParam("AppInfo.Id",n),this.registerContextParam("AppInfo.Version",i),this.serverRequestInfluxControl||(this.serverRequestInfluxControl=5),this.serverRequestInfluxControl<0&&(this.serverRequestInfluxControl=0),this.serverRequestInfluxControl>100&&(this.serverRequestInfluxControl=100)}return e.prototype.registerContextParam=function(e,t,n){void 0===n&&(n=0),this.context[e]=t,this.ariaLogger.setContextWithPii(e,t,0===n?j.AWTPiiKind.NotSet:j.AWTPiiKind.GenericData)},e.prototype.writeEvent=function(e){if(null!=e){if(!(e.name!==U.a.Impression&&e.name!==U.a.Click||"true"!==this.context.Context_IsConsumer||"ToDo"!==this.context.Context_Site&&"StickyNotes"!==this.context.Context_Site))return;if(e.name===U.a.ServerRequest){var t=e.properties.filter((function(e){return"ServerRequest_Status"===e.name}));if(t.length>0&&t[0].value>=200&&t[0].value<300)if(Math.floor(100*Math.random())+1>this.serverRequestInfluxControl)return}var n=new j.AWTEventProperties(U.a[e.name]);n.setType(U.c[e.type]),n.setTimestamp(e.timestamp),e.properties.forEach((function(e){n.setPropertyWithPii(e.name,e.value,0===e.piiKind?j.AWTPiiKind.NotSet:j.AWTPiiKind.GenericData)})),this.ariaLogger.logEvent(n)}},e}();function W(e,t){null==F&&t.AriaTelemetryEnabled&&t.AriaTelemetryTenantToken&&(!t.IsConsumerShell&&t.PUID?t.CLSID&&t.SHSID&&t.TID&&q(e,t):q(e,t))}function q(e,t){var n=window.O365ShellVerStr||"unknown",r=t.Environment||"unknown",a=t.AriaTelemetryTenantToken||"c6c190a1b73c4a63bba89835d546cf28-f2a0482f-a00d-48d9-822e-e89cc89eb64d-7688",o=Object(i.f)();o&&o.testTraffic&&(a="c0c8ed88b81549bd84e261ebe62ccaae-cea55197-8121-49f9-826d-f682812729c3-7350"),(F=new B(a,t.AriaTelemetryUri,"OneShell",n,t.AriaTelemetryServerRequestInfluxControl)).registerContextParam("Context_Env",r),F.registerContextParam("Context_Site",t.WorkloadId),F.registerContextParam("Context_SiteSubId",e.CurrentMainLinkElementID),F.registerContextParam("Context_WorkloadAppId",Object(c.b)(t.WorkloadId,e.CurrentMainLinkElementID,document.URL)),F.registerContextParam("Context_Page",M.b(document.URL)),F.registerContextParam("Context_SID",t.CLSID),F.registerContextParam("Context_CID",t.SHSID),window.O365ShellContext.CID=t.CLSID;var s=U.b.getNewID();F.registerContextParam("Context_PID",s),window.O365ShellContext.PID=s,F.registerContextParam("Context_TID",t.TID),F.registerContextParam("Context_UID",t.UID),F.registerContextParam("Context_PUID",t.PUID?t.PUID.toUpperCase():""),F.registerContextParam("Context_IsConsumer",t.IsConsumerShell?"true":"false"),F.registerContextParam("Context_Flights",e.FlightName),F.registerContextParam("Context_FlightRings",t.FlightRing),F.registerContextParam("Context_Segment",t.ActiveExperiences),F.registerContextParam("UserInfo.OMSTenantId",t.TID),F.registerContextParam("UserInfo.Id",t.PUID?t.PUID.toUpperCase():""),F.registerContextParam("UserInfo.IdType",t.IsConsumerShell?"MSAPUID":"OrgIdPUID");var u=Object(i.e)();u.registerService(F),u.IsConsumer=t.IsConsumerShell,Object(i.b)().unsubscribe("ShellDataUpdated",W),window.addEventListener("beforeunload",H)}function H(){try{j.AWTLogManager.flushAndTeardown()}catch(e){}}var G=!1;function z(e,t){var n;!G&&t&&t.FootprintTelemetryEnabled&&(G=!0,s.s.isMobileClient()||Object(s.cb)(t.WorkloadId,t.FootprintWorkloadExcludeList)||(n="https://r4.res.office365.com/footprint/v3.2/scripts/fp-min.js",new Promise((function(e,t){var i=encodeURI(n),r=document.createElement("script");r.src=i,r.type="text/javascript",r.crossOrigin="anonymous",r.onerror=function(e){t({ResourceName:n,Details:e.message})},r.onload=function(){e()},document.body.appendChild(r)}))).then((function(){var n="",r=Object(c.b)(t.WorkloadId,e.CurrentMainLinkElementID,document.URL);t.IsConsumerShell?n="84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa":t.TID&&(n=t.TID);try{Footprint.start("O365se",["config.fp.measure.office.com/conf/v2/o365se/fpconfig.min.json","r4.res.office365.com/footprint/v3.2/scripts/fpconfig.json"],1e4,JSON.stringify([{TenantId:n,AppId:r}]))}catch(e){Object(i.e)().tag("Footprint_StartFailed",6,e||"")}})).catch((function(e){Object(i.e)().tag("Footprint_LoadFailed",4,e.ResourceName,e.Details)})),Object(i.b)().unsubscribe("ShellDataUpdated",z))}var V=n(129),K=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(l.__extends)(t,e),t.prototype.componentDidMount=function(){this.props.isAvailable&&Object(i.e)().perfMarker("SettingsTimeToInteractive")},t.prototype.render=function(){var e={controlID:this.props.id,isVisible:this.props.isAvailable,ariaLabel:N.a.Settings,affordanceMenuItemText:N.a.Settings,iconID:"Settings",iconFontSize:k.f.toString(),isActive:this.props.isActive,isDarkModeEnabled:this.props.isDarkModeEnabled,onClick:this.props.onClick,onDimensionsChanged:this.props.controlDimensionsChanged};return 0===this.props.renderContext?r.createElement(R.b,Object(l.__assign)({},e)):r.createElement(R.a,Object(l.__assign)({},e))},t}(r.Component),Z=n(124),Q=Object(o.b)((function(e,t){var n=!1;e.shellInitDataState.layout&&(n=!!e.shellInitDataState.clientData.SettingsPaneEnabled&&Object(Z.a)(Object(l.__assign)(Object(l.__assign)({},e.shellInitDataState.clientData),{CurrentMainLinkElementID:e.shellInitDataState.navBarData.CurrentMainLinkElementID}),null,e.settingsFlexPaneState.workloadSettingLinks).length>0);return{isAvailable:n,id:t&&t.id,isActive:e.flexPaneState&&"Settings"===e.flexPaneState.activeProviderKey,controlDimensionsChanged:t.controlDimensionsChanged}}),(function(e){return{onClick:function(t,n){t.stopPropagation(),Object(i.e)().click("Settings","NavBar",null,null,"Active state: "+n.isActive+", Render context: "+n.renderContext),n.onClick&&n.onClick(t),e(Object(s.eb)(t.currentTarget&&t.currentTarget.id)),e(Object(D.f)("Settings"))}}}),(function(e,t,n){var i=Object(l.__assign)(Object(l.__assign)({},n),e);return Object(l.__assign)(Object(l.__assign)(Object(l.__assign)({},i),t),{onClick:function(e){return t.onClick(e,i)},onDimensionsChanged:function(){return t.onDimensionsChanged(i)}})}))(K),X=n(91),J=n(110),Y=n(14),$=n(48),ee=n(193),te=n(19);function ne(e,t,n,r){var a=Object(X.c)();return e?Object(l.__assign)(Object(l.__assign)({},e),{workloadData:n,workloadSettingLinksTitle:e.workloadSettingLinksTitle||r&&r.workloadSettingsSubLinksTitle||t.CurrentWorkloadSettingsSubLinksTitle||n.AppHeaderLinkText,workloadSettingLinks:Object(l.__spreadArrays)(t.CurrentWorkloadSettingsSubLinks||[],r&&r.workloadSettingsSubLinks||[])}):Object(l.__assign)(Object(l.__assign)({},e),{themeCardState:{selectedThemeId:Object(i.g)().getCurrentThemeId(),themeData:[],preferOfficeTheme:Object(i.g)().getThemeState().preferOfficeTheme,fullBleedThemesEnabled:n&&n.EduThemingEnabled&&(n.ActiveExperiences||"").split(",").some((function(e){return"edu"===e.toLowerCase()}))},languageAndRegionCardState:{selectedLanguage:"",selectedDateFormat:"",selectedTimeFormat:"",selectedTimeZone:"",languageChoices:[],timeZoneChoices:[],dateFormatChoices:[],timeFormatChoices:[],savedLanguage:"",savedDateFormat:"",savedTimeFormat:"",savedTimeZone:""},notificationsCardState:{notificationsFetchCompleted:!1,newMailNotification:!1,newMailSoundNotification:!1,remindersNotification:!1,remindersSoundNotification:!1,chatNotification:a.EnableChat,chatSoundNotification:a.EnableChatSound,callingNotification:a.EnableCalling,callingSoundNotification:a.EnableCallingSound},aboutCardState:{correlationID:r&&r.correlationID?r.correlationID:N.a.NotAvailable,sessionID:r&&r.sessionID?r.sessionID:N.a.NotAvailable,version:r.version?r.version:N.a.NotAvailable},workloadData:n,workloadId:n&&n.WorkloadId?n.WorkloadId:"",expandO365Settings:!1,workloadSettingLinksTitle:r&&r.workloadSettingsSubLinksTitle||t.CurrentWorkloadSettingsSubLinksTitle||n.AppHeaderLinkText,workloadSettingLinks:Object(l.__spreadArrays)(t.CurrentWorkloadSettingsSubLinks||[],r&&r.workloadSettingsSubLinks||[]),cards:[]})}function ie(e){var t=-1!==e.indexOf("HH");return new $.a(2018,8,1,t?21:9,5).format(e).replace("Sep",N.a.SeptemberAbbrev).replace("September",N.a.September)}var re={settingsFlexPaneState:function(e,t){if(!e){var n=t.shellInitData.shellInitDataState;e=ne(null,n.navBarData,n.clientData,n.renderSettings)}switch(t.type){case s.j:var r=t;return ne(e,r.navBarData,r.shellClientData,r.renderSettings);case te.a:return function(e,t){var n=t,i=Object(s.F)(e.workloadSettingLinks,(function(e){return e.Id===n.newWorkloadSettingLink.Id}));if(!Object(J.b)(n.newWorkloadSettingLink))return e;return i>=0?Object(l.__assign)(Object(l.__assign)({},e),{workloadSettingLinks:Object(l.__spreadArrays)(e.workloadSettingLinks.slice(0,i),[n.newWorkloadSettingLink],e.workloadSettingLinks.slice(i+1))}):Object(l.__assign)(Object(l.__assign)({},e),{workloadSettingLinks:e.workloadSettingLinks.concat(n.newWorkloadSettingLink)})}(e,t);case te.i:return function(e,t){var n=t,i=Object(s.F)(e.workloadSettingLinks,(function(e){return e.Id===n.settingLinkID}));if(i>=0)return Object(l.__assign)(Object(l.__assign)({},e),{workloadSettingLinks:Object(l.__spreadArrays)(e.workloadSettingLinks.slice(0,i),e.workloadSettingLinks.slice(i+1))});return e}(e,t);case te.o:return function(e,t){var n=t.newWorkloadSettingsLinks.filter((function(e){return Object(J.b)(e)}));if(0===n.length)return e;return Object(l.__assign)(Object(l.__assign)({},e),{workloadSettingLinks:n})}(e,t);case te.d:return function(e,t){var n=t;return Object(l.__assign)(Object(l.__assign)({},e),{cards:n.cardData})}(e,t);case s.n:return function(e,t){var n=t,r=Object(i.g)().getUserPersonalizationAllowed(),a=Object(ee.b)(n.themeData||[],e.themeCardState.selectedThemeId,e.themeCardState.preferOfficeTheme,r);return Object(l.__assign)(Object(l.__assign)({},e),{themeCardState:Object(l.__assign)(Object(l.__assign)({},e.themeCardState),{themeData:a})})}(e,t);case s.b:return function(e,t){var n=t;return Object(l.__assign)(Object(l.__assign)({},e),{themeCardState:Object(l.__assign)(Object(l.__assign)({},e.themeCardState),{selectedThemeId:n.themeInfo.ThemeId||Y.DefaultThemeId,preferOfficeTheme:n.themeInfo.PreferOfficeTheme})})}(e,t);case te.f:return function(e,t){var n=t;return Object(l.__assign)(Object(l.__assign)({},e),{languageAndRegionCardState:Object(l.__assign)(Object(l.__assign)({},e.languageAndRegionCardState),{selectedLanguage:n.selectedLanguage,savedLanguage:n.selectedLanguage})})}(e,t);case te.e:return function(e,t){var n=t;return Object(l.__assign)(Object(l.__assign)({},e),{languageAndRegionCardState:Object(l.__assign)(Object(l.__assign)({},e.languageAndRegionCardState),{languageChoices:n.languageChoices.map((function(e){return{id:e.Locale,text:e.DisplayName,language:e.Locale}}))})})}(e,t);case te.l:return function(e,t){var n=t;return Object(l.__assign)(Object(l.__assign)({},e),{languageAndRegionCardState:Object(l.__assign)(Object(l.__assign)({},e.languageAndRegionCardState),{selectedLanguage:n.selectedLanguage})})}(e,t);case te.q:return function(e,t){var n=t;return Object(l.__assign)(Object(l.__assign)({},e),{languageAndRegionCardState:Object(l.__assign)(Object(l.__assign)({},e.languageAndRegionCardState),{selectedTimeZone:n.timeZoneChoice,selectedDateFormat:n.dateFormatChoice,selectedTimeFormat:n.timeFormatChoice,savedTimeZone:n.timeZoneChoice,savedDateFormat:n.dateFormatChoice,savedTimeFormat:n.timeFormatChoice})})}(e,t);case te.r:return function(e,t){var n=t;return Object(l.__assign)(Object(l.__assign)({},e),{languageAndRegionCardState:Object(l.__assign)(Object(l.__assign)({},e.languageAndRegionCardState),{timeZoneChoices:n.timeZoneChoices.map((function(e){return{id:e.alias,text:e.displayName}}))})})}(e,t);case te.n:return function(e,t){var n=t;return Object(l.__assign)(Object(l.__assign)({},e),{languageAndRegionCardState:Object(l.__assign)(Object(l.__assign)({},e.languageAndRegionCardState),{selectedTimeZone:n.selectedTimeZone})})}(e,t);case te.c:return function(e,t){var n=t;return Object(l.__assign)(Object(l.__assign)({},e),{languageAndRegionCardState:Object(l.__assign)(Object(l.__assign)({},e.languageAndRegionCardState),{dateFormatChoices:n.dateFormatChoices.map((function(e){return{id:e,text:ie(e)}}))})})}(e,t);case te.k:return function(e,t){var n=t;return Object(l.__assign)(Object(l.__assign)({},e),{languageAndRegionCardState:Object(l.__assign)(Object(l.__assign)({},e.languageAndRegionCardState),{selectedDateFormat:n.selectedDateFormat})})}(e,t);case te.p:return function(e,t){var n=t;return Object(l.__assign)(Object(l.__assign)({},e),{languageAndRegionCardState:Object(l.__assign)(Object(l.__assign)({},e.languageAndRegionCardState),{timeFormatChoices:n.timeFormatChoices.map((function(e){return{id:e,text:ie(e)}}))})})}(e,t);case te.m:return function(e,t){var n=t;return Object(l.__assign)(Object(l.__assign)({},e),{languageAndRegionCardState:Object(l.__assign)(Object(l.__assign)({},e.languageAndRegionCardState),{selectedTimeFormat:n.selectedTimeFormat})})}(e,t);case s.q:return function(e,t){var n=t;if(null!==n.notificationPreferenceData){var i=n.notificationPreferenceData;return Object(l.__assign)(Object(l.__assign)({},e),{notificationsCardState:{notificationsFetchCompleted:!0,newMailNotification:i.EnableNewItemNotify,newMailSoundNotification:i.EnableNewItemSoundNotify,remindersNotification:i.EnableReminders,remindersSoundNotification:i.EnableReminderSound,chatNotification:i.EnableChat,chatSoundNotification:i.EnableChatSound,callingNotification:i.EnableCalling,callingSoundNotification:i.EnableCallingSound}})}return e}(e,t);case te.j:return function(e){var t=e.languageAndRegionCardState;return Object(l.__assign)(Object(l.__assign)({},e),{languageAndRegionCardState:Object(l.__assign)(Object(l.__assign)({},t),{savedLanguage:t.selectedLanguage,savedTimeZone:t.selectedTimeZone,savedDateFormat:t.selectedDateFormat,savedTimeFormat:t.selectedTimeFormat})})}(e);case te.b:return function(e){var t=e.languageAndRegionCardState;return Object(l.__assign)(Object(l.__assign)({},e),{languageAndRegionCardState:Object(l.__assign)(Object(l.__assign)({},t),{selectedLanguage:t.savedLanguage,selectedTimeZone:t.savedTimeZone,selectedDateFormat:t.savedDateFormat,selectedTimeFormat:t.savedTimeFormat})})}(e);case te.g:return function(e,t){var n=t;return Object(l.__assign)(Object(l.__assign)({},e),{parentCardId:n.cardId})}(e,t);case te.h:return function(e,t){var n=t;return Object(l.__assign)(Object(l.__assign)({},e),{expandO365Settings:n.isExpanded})}(e,t);default:return e}}},ae=n(116),oe=function(){function e(){}return e.prototype.AddOrUpdateWorkloadSettingLink=function(e){Object(s.L)().dispatch(Object(ae.a)(e))},e.prototype.RemoveWorkloadSettingLink=function(e){Object(s.L)().dispatch(Object(ae.i)(e))},e.prototype.SetWorkloadSettingsLinks=function(e){Object(s.L)().dispatch(Object(ae.o)(e))},e}();function se(e,t){var n=Object(i.f)().layout,r=Object(s.L)().getState().settingsFlexPaneState.workloadSettingLinks;if(!n){var a=t.SettingsPaneEnabled&&Object(Z.a)(Object(l.__assign)(Object(l.__assign)({},t),{CurrentMainLinkElementID:e.CurrentMainLinkElementID}),null,r).length>0,o=document.getElementById(E.k);o&&a&&(o.style.display="block")}}var ue=n(128),ce=n(54),le=n(16),pe=Object(o.b)((function(e,t){return Object(l.__assign)(Object(l.__assign)({},t),{unseenItemCount:e.chatState.unreadBadgeValue})}))(s.r),de=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isHovered:!1},n}return Object(l.__extends)(t,e),t.prototype.componentDidMount=function(){this.props.isAvailable&&Object(i.e)().perfMarker("ChatTimeToInteractive")},t.prototype.render=function(){var e=this;if(!this.props.chatEnabled)return null;var t={controlID:this.props.id,isVisible:this.props.isAvailable,ariaLabel:N.a.Chat,affordanceMenuItemText:N.a.Chat,iconID:this.props.isConsumerShell?"SkypeLogo":"OfficeChat",iconFontSize:k.f.toString(),isActive:this.props.isActive,isDarkModeEnabled:this.props.isDarkModeEnabled,onClick:this.props.onClick,onHoverStateChanged:function(t){e.setState({isHovered:t})},onDimensionsChanged:this.props.controlDimensionsChanged};return 0===this.props.renderContext?r.createElement(R.b,Object(l.__assign)({},t),r.createElement(pe,{unseenItemCount:0,isParentHovered:this.state.isHovered,badgeStyles:le.headerButtonBadgePosition})):r.createElement(R.a,Object(l.__assign)({},t),r.createElement(pe,{unseenItemCount:0,isParentHovered:this.state.isHovered,badgeStyles:ce.affordanceContextMenuItemBadgePosition}))},t}(r.Component),fe=n(122),he=n(71);var ge=Object(o.b)((function(e,t){var n=function(e){var t=!1,n=!1;e.chatState.chatEnabled&&null!==e.chatState.isChatAPIInitialized&&(e.chatState.isChatAPIInitialized?t=!0:e.userState.isConsumer&&(t=!0,n=!0));return{showButton:t,useButtonAsLink:n}}(e);return{isAvailable:n.showButton,id:t&&t.id,isActive:e.chatState&&e.chatState.isChatRecentsPaneOpen,useButtonAsLink:n.useButtonAsLink,chatWebLink:e.chatState&&e.chatState.chatWebLink,chatEnabled:e.chatState&&e.chatState.chatEnabled,isConsumerShell:e.shellInitDataState&&e.shellInitDataState.clientData.IsConsumerShell,controlDimensionsChanged:t.controlDimensionsChanged,isChatRecentsPaneInitialized:e.chatState.isChatRecentsPaneInitialized}}),(function(e){return{onClick:function(t,n){t.stopPropagation(),Object(i.e)().click("ChatButton","NavBar",null,null,"Active state: "+n.isActive+", Render context: "+n.renderContext+", Use Button as Link: "+n.useButtonAsLink),n.onClick&&n.onClick(t),n.useButtonAsLink?(t.preventDefault(),window.open(n.chatWebLink)):(n.isChatRecentsPaneInitialized||Object(he.b)((function(){e(Object(fe.b)(!0))}),(function(t,n){e(Object(fe.c)(t)),e(Object(s.eb)(n))})),e(Object(fe.c)(!n.isActive)),e(Object(s.eb)(t.currentTarget&&t.currentTarget.id)))}}}),(function(e,t,n){var i=Object(l.__assign)(Object(l.__assign)({},n),e);return Object(l.__assign)(Object(l.__assign)(Object(l.__assign)({},i),t),{onClick:function(e){return t.onClick(e,i)},onDimensionsChanged:function(){return t.onDimensionsChanged(i)}})}))(de),me=n(195),ye=Object(o.b)((function(e){return{unreadBadgeValue:e.chatState.unreadBadgeValue,chatEnabled:e.chatState.chatEnabled,chatWebLink:e.chatState.chatWebLink,isConsumerShell:e.shellInitDataState&&e.shellInitDataState.clientData.IsConsumerShell}}))(me.a),ve=function(){function e(){}return e.prototype.getChatNotificationSettings=function(){return Object(he.d)()},e.prototype.getCallNotificationSettings=function(){return Object(he.c)()},e.prototype.setCallNotificationSettings=function(e){return Object(he.h)(e)},e.prototype.setChatNotificationSettings=function(e){return Object(he.i)(e)},e}(),Se=n(70);function be(e,t){return Object(l.__assign)(Object(l.__assign)({},e),{webChatSDKUrl:t.WebChatSDKUrl||null,chatWebLink:t.ChatWebLink||null,chatEnabled:!!t.ChatEnabled&&!s.s.isMobileClient()})}var _e={chatState:function(e,t){if(!e){var n=t.shellInitData.shellInitDataState;e=be(s.x,n.clientData||{})}switch(t.type){case s.j:return be(e,t.shellClientData);case s.p:return function(e,t){var n=t;return Object(he.k)(n.isRecentsOpen,e.isTeamsChatActivated),Object(l.__assign)(Object(l.__assign)({},e),{isChatRecentsPaneOpen:n.isRecentsOpen})}(e,t);case Se.b:return function(e,t){var n=t;return Object(l.__assign)(Object(l.__assign)({},e),{isChatRecentsPaneInitialized:n.isRecentsInitialized})}(e,t);case Se.a:return function(e,t){var n=t;return Object(l.__assign)(Object(l.__assign)({},e),{isChatAPIInitialized:n.isChatAPIInitialized})}(e,t);case Se.d:return function(e,t){var n=t;return Object(l.__assign)(Object(l.__assign)({},e),{unreadBadgeValue:n.unreadBadgeValue})}(e,t);case Se.c:return function(e,t){var n=t;return Object(l.__assign)(Object(l.__assign)({},e),{isTeamsChatActivated:n.isTeamsChatActivated})}(e,t);default:return e}}};var Ce=!1;function Te(e,t){if(!Ce){var n=Object(s.L)(),u=Object(i.f)()&&Object(i.f)().layout;if(u)u.centerCustomizationRegion&&Object(s.E)("ChatIcon",u.centerCustomizationRegion.children)&&(Object(i.b)().invoke("LazyComponentLoaded",ue.b,ge),Oe());else{var c=document.getElementById(E.b);c&&(a.render(r.createElement(o.a,{store:n},r.createElement(ye,null)),c),Oe())}}}function Oe(){var e=Object(w.a)((function(){return n.e("notifications").then(n.bind(null,669)).then((function(e){return e.ChatBaseControlConnector}))}));Ce=!0;var t=document.createElement("div");document.getElementById(Object(i.f)().top).appendChild(t);var u=Object(s.L)();a.render(r.createElement(o.a,{store:u},r.createElement(e,null)),t)}var Ie=n(132),Ae=n(152),we=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.preventEscPropagation=function(e){27===e.keyCode&&e.stopPropagation()},t}return Object(l.__extends)(t,e),t.prototype.onComponentVisible=function(){e.prototype.onComponentVisible.call(this),Object(i.e)().impression("CustomFlexPane","FlexPane",0,void 0,"Loaded"),this.props.onFlexPaneOpen&&this.props.onFlexPaneOpen(),this.customRenderContainer&&this.props.render&&this.props.render(this.customRenderContainer)},t.prototype.onComponentHide=function(){e.prototype.onComponentHide.call(this),this.props.onFlexPaneClose&&this.props.onFlexPaneClose()},t.prototype.componentWillUnmount=function(){this.customRenderContainer&&a.unmountComponentAtNode(this.customRenderContainer),e.prototype.componentWillUnmount.call(this)},t.prototype.render=function(){var e,t=this;return r.createElement(D.c,{isActive:this.props.isActive,title:this.props.flexPaneTitle(),customTitle:this.props.customTitle,flexPaneProviderID:this.props.flexPaneProviderID,className:this.props.className},r.createElement("div",{id:"CustomFlexPane_"+this.props.flexPaneProviderID,role:"region",className:Object(s.y)(Ae.flexPaneContentContainer,(e={},e[Ae.flexPaneContentContainerForThinHeader]=this.props.isThinHeader,e)),onKeyDown:this.props.customEscapeKeyHandling&&this.preventEscPropagation,ref:function(e){return t.customRenderContainer=e}}))},t}(D.a),De=Object(o.b)((function(e,t){var n=e.extensibilityState.customFlexPanes[t.flexPaneProviderID];return n?Object(l.__assign)(Object(l.__assign)({},t),{className:n.containerClassName,flexPaneTitle:function(){return"function"==typeof n.flexPaneTitle?n.flexPaneTitle():n.flexPaneTitle},isThinHeader:Object(i.f)().isThinHeader,customTitle:n.customTitle,render:n.render,customEscapeKeyHandling:n.customEscapeKeyHandling,onFlexPaneOpen:n.onFlexPaneOpen,onFlexPaneClose:n.onFlexPaneClose,triggerControlID:n.triggerControlID}):(Object(i.e)().tag("UnrecognizedCustomFlexPane",6,t.flexPaneProviderID),null)}))(we),Ee=function(e){function t(t){var n=e.call(this,t)||this;return n.setClickableElement=function(e){n.headerButtonElement=e},n.onClick=function(e){n.props.isStateless&&n.props.onShow&&n.props.onShow(e.currentTarget.getBoundingClientRect()),n.props.onClick&&n.props.onClick(e)},n.state={isHovered:!1},n}return Object(l.__extends)(t,e),t.prototype.componentDidUpdate=function(e,t){this.props.isActive&&!e.isActive&&null!=this.headerButtonElement?this.props.onShow&&this.props.onShow(this.headerButtonElement.getBoundingClientRect()):!this.props.isActive&&e.isActive&&this.props.onHide&&this.props.onHide()},t.prototype.render=function(){var e=this,t={controlID:this.props.id,isVisible:this.props.isAvailable,ariaLabel:"function"==typeof this.props.ariaLabel?this.props.ariaLabel():this.props.ariaLabel,affordanceMenuItemText:"function"==typeof this.props.affordanceMenuItemText?this.props.affordanceMenuItemText():this.props.affordanceMenuItemText,iconFontName:this.props.iconFontName,iconFontFamily:this.props.iconFontFamily||"ShellFabricMDL2IconsLite,ShellFabricMDL2Icons",iconFontSize:k.f.toString(),isActive:this.props.isActive,isDarkModeEnabled:this.props.isDarkModeEnabled,onClick:this.onClick,onHoverStateChanged:function(t){e.setState({isHovered:t})},onDimensionsChanged:this.props.controlDimensionsChanged,setClickableElement:this.setClickableElement};return 0===this.props.renderContext?r.createElement(R.b,Object(l.__assign)({},t),r.createElement(s.r,{unseenItemCount:this.props.badgeValue,isParentHovered:this.state.isHovered,badgeStyles:le.headerButtonBadgePosition})):r.createElement(R.a,Object(l.__assign)({},t),r.createElement(s.r,{unseenItemCount:this.props.badgeValue,isParentHovered:this.state.isHovered,badgeStyles:ce.affordanceContextMenuItemBadgePosition}))},t}(r.Component),Pe=Object(o.b)((function(e,t){return Object(l.__assign)(Object(l.__assign)({},t),{badgeValue:e.extensibilityState.badgeValues[t.id],isActive:!!e.extensibilityState&&t.id===e.extensibilityState.activeButtonId,flexPaneProviderID:e.extensibilityState.customHeaderButtonFlexPaneTriggers[t.id]})}),(function(e,t){return{onClickDispatch:function(n,i){i.stopPropagation(),t.onClick&&t.onClick(i),t.isStateless||e(Object(s.eb)(i.currentTarget&&i.currentTarget.id)),n&&e(Object(D.f)(n))}}}),(function(e,t){return Object(l.__assign)(Object(l.__assign)(Object(l.__assign)({},e),t),{onClick:function(n){t.onClickDispatch(e.flexPaneProviderID,n)}})}))(Ee),Re=n(68);function ke(e,t){var n=Object(l.__assign)(Object(l.__assign)({},e),{customFlexPanes:{},customFlexPaneHash:void 0});if(t&&t.flexPaneCollection){t.flexPaneCollection.forEach((function(e){var t=e;t.render&&(n.customFlexPanes[t.flexPaneID]=t)}));var i=Object.keys(n.customFlexPanes).sort();n.customFlexPaneHash=Object(s.M)(JSON.stringify(i))}return n}var Ne={extensibilityState:function(e,t){if(!e){var n=t.shellInitData.shellInitDataState;e=ke(s.D,n.layout)}switch(t.type){case s.o:return function(e,t){var n=t.buttonId;e.activeButtonId===n&&(n="");return Object(l.__assign)(Object(l.__assign)({},e),{activeButtonId:n})}(e,t);case s.k:return ke(e,t.shellLayout);case"suiteux-extensibility.UPDATE_CUSTOMHEADERBUTTON":return function(e,t){var n=Object(l.__assign)({},e),i=Object(s.F)(e.customHeaderButtons,(function(e){return e.id===t.buttonData.id}));i>=0?n.customHeaderButtons=Object(l.__spreadArrays)(e.customHeaderButtons.slice(0,i),[t.buttonData],e.customHeaderButtons.slice(i+1)):(n.customHeaderButtons=Object(l.__spreadArrays)(e.customHeaderButtons),n.customHeaderButtons.unshift(t.buttonData));return n}(e,t);case Re.a:return function(e,t){var n=e;t.newProvider.shellControlID&&e.customHeaderButtonFlexPaneTriggers[t.newProvider.shellControlID]!==t.newProvider.key&&((n=Object(l.__assign)(Object(l.__assign)({},e),{customHeaderButtonFlexPaneTriggers:Object(l.__assign)({},e.customHeaderButtonFlexPaneTriggers)})).customHeaderButtonFlexPaneTriggers[t.newProvider.shellControlID]=t.newProvider.key);return n}(e,t);case"suiteux-extensibility.SET_BADGE_VALUE":return function(e,t){var n=e;e.badgeValues[t.buttonID]!==t.badgeValue&&((n=Object(l.__assign)(Object(l.__assign)({},e),{badgeValues:Object(l.__assign)({},e.badgeValues)})).badgeValues[t.buttonID]=t.badgeValue);return n}(e,t);default:return e}}},xe=n(97),Le=n(114),je=n(13),Ue=function(e){function t(t){return e.call(this,t)||this}return Object(l.__extends)(t,e),t.prototype.componentDidUpdate=function(e,t){this.props.isActive&&!e.isActive&&this.buttonElement?this.props.onShow(this.buttonElement.getBoundingClientRect()):!this.props.isActive&&e.isActive&&this.props.onHide()},t.prototype.render=function(){var e,t=this,n=Object(je.a)(),i=Object(s.y)(le.button,Le.customHeaderButton,n.headerButton,((e={})[n.activeHeaderButton]=this.props.isActive,e));return r.createElement(xe.a,{controlID:this.props.id,isActive:this.props.isActive,controlElement:this.buttonElement},r.createElement("div",{className:Le.customHeaderButtonWrapper},r.createElement("button",{className:i,type:"button",id:"CustomHeader_"+this.props.id,ref:function(e){return t.buttonElement=e},onClick:function(){t.props.isStateless?t.props.onShow(t.buttonElement.getBoundingClientRect()):t.props.onToggleButtonState(t.props.id)},"aria-label":this.props.ariaLabel,style:{fontFamily:this.props.iconFontFamily},title:this.props.ariaLabel,"aria-expanded":this.props.isActive},r.createElement(s.f,{fontSize:"16",fontValue:this.props.iconFontName}))))},t}(r.Component),Me=Object(o.b)((function(e,t){return Object(l.__assign)(Object(l.__assign)({},t),{isActive:!!e.extensibilityState&&t.id===e.extensibilityState.activeButtonId})}),(function(e){return{onToggleButtonState:function(t){e(Object(s.eb)(t))}}}))(Ue),Fe=Object(s.L)(),Be=[];var We=Object(s.L)(),qe=function(){function e(){}return e.prototype.AddOrUpdateCustomHeaderButton=function(e){Object(i.e)().tag("AddOrUpdateCustomHeaderButton",1,e.id,e.iconFontName),function(e){var t=Object(s.F)(Be,(function(t){return t.id===e.id}));if(t>=0?Be=Object(l.__spreadArrays)(Be.slice(0,t),[e],Be.slice(t+1)):Be.unshift(e),Fe.getState().shellInitDataState.layout){var n=Object(i.d)();n.DefaultLayoutState.CustomHeaderButtons=Be,Object(i.b)().invoke("ShellLayoutUpdated",n.GetDefaultLayout())}else{var u=Be.map((function(e){return r.createElement(Me,{key:e.id,id:e.id,iconFontName:e.iconFontName,iconFontFamily:e.iconFontFamily,onHide:e.onHide,onShow:e.onShow,isStateless:e.isStateless,ariaLabel:"function"==typeof e.ariaLabel?e.ariaLabel():e.ariaLabel})})),c=document.getElementById("O365_CustomHeaderButtonsContainer");Object(i.f)().isThinHeader&&(c.style.height="48px"),a.render(r.createElement(o.a,{store:Fe},r.createElement("div",{className:Le.customHeaderButtonsContainer},u)),c)}}(e)},e.prototype.UpdateButtonState=function(e,t){var n=Object(s.L)(),i=n.getState().extensibilityState;i.activeButtonId!==e||t?i.activeButtonId!==e&&t&&n.dispatch(Object(s.eb)(e)):n.dispatch(Object(s.eb)(""))},e.prototype.SetCustomHeaderButtonBadgeValue=function(e,t){We.dispatch(function(e,t){return{type:"suiteux-extensibility.SET_BADGE_VALUE",buttonID:e,badgeValue:t}}(e,t))},e}();var He=n(11),Ge=!1,ze=function(){function e(){}return e.prototype.Init=function(e,t,n,r){Ge||(Ge=!0,this.Timeout=e,this.SigninState=t,this.SessionId=n,this.DisableTrackEvents=r,Object(i.b)().subscribe("ShellDataUpdated",Ve,!0))},e}();function Ve(e,t){t.PUID&&(t.AuthAbtEnabled&&(Ge=!0,window.LoadAbtPromptJs={Download:Ke},n.e("abt").then(n.t.bind(null,649,7)).then((function(n){var i=n.Environment.WorldWide;Object(He.a)(t.Environment.toLowerCase(),"tbprod")?i=n.Environment.Trailblazer:Object(He.a)(t.Environment.toLowerCase(),"pfprod")&&(i=n.Environment.Pathfinder),n.initializeAbt({market:e.CultureName||"en-US",workloadName:Object(c.b)(t.WorkloadId,e.CurrentMainLinkElementID,document.URL),environment:i,userId:t.PUID,authType:t.IsConsumerShell?n.AuthType.Msa:n.AuthType.Aad,timeout:window.O365Shell.Abt.Timeout,trackEvents:!window.O365Shell.Abt.DisableTrackEvents,enableLogging:!0,sessionId:window.O365Shell.Abt.SessionId,tenantId:t.TID,signinState:window.O365Shell.Abt.SigninState})}))),Object(i.b)().unsubscribe("ShellDataUpdated",Ve))}function Ke(e){n.e("abtprompt").then(n.t.bind(null,650,7)).then((function(t){e&&e()}))}var Ze=n(131),Qe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(l.__extends)(t,e),t.prototype.render=function(){var e={controlID:this.props.id,isVisible:this.props.isAvailable,ariaLabel:N.a.FeatureFlags_Title,affordanceMenuItemText:N.a.FeatureFlags_Title,iconID:"FeatureFlagsLogo",iconFontSize:k.f.toString(),isActive:this.props.isActive,isDarkModeEnabled:this.props.isDarkModeEnabled,onClick:this.props.onClick,onDimensionsChanged:this.props.controlDimensionsChanged};return 0===this.props.renderContext?r.createElement(R.b,Object(l.__assign)({},e)):r.createElement(R.a,Object(l.__assign)({},e))},t}(r.Component),Xe=Object(o.b)((function(e,t){return{id:t&&t.id,isAvailable:!0,isActive:e.flexPaneState&&"FeatureFlags"===e.flexPaneState.activeProviderKey,controlDimensionsChanged:t.controlDimensionsChanged}}),(function(e){return{onClick:function(t,n){t.stopPropagation(),n.onClick&&n.onClick(t),e(Object(s.eb)(t.currentTarget&&t.currentTarget.id)),e(Object(D.f)("FeatureFlags"))}}}),(function(e,t,n){var i=Object(l.__assign)(Object(l.__assign)({},n),e);return Object(l.__assign)(Object(l.__assign)(Object(l.__assign)({},i),t),{onClick:function(e){return t.onClick(e,i)},onDimensionsChanged:function(){return t.onDimensionsChanged(i)}})}))(Qe);var Je=function(){function e(){}return e.prototype.AddFeatureFlags=function(e){e?Object(s.L)().dispatch(function(e){return{type:"suiteux-mecontrol.UPDATE_WORKLOAD_FEATURE_FLAG_LIST",workloadFeatureFlagList:e}}(e)):Object(i.e)().tag("FeatureFlags_Shim_FeatureFlags_Param_Invalid",6)},e.prototype.SubscribeToFeatureFlagStatusChange=function(e){return Object(i.b)().subscribe("FeatureFlagChanged",e,!1)},e}();var Ye={featureFlagsState:function(e,t){switch(e||(e={enabled:!1,workloadFeatureFlagList:{}}),t.type){case"suiteux-mecontrol.UPDATE_WORKLOAD_FEATURE_FLAG_LIST":return function(e,t){var n=t;return Object(l.__assign)(Object(l.__assign)({},e),{workloadFeatureFlagList:n.workloadFeatureFlagList})}(e,t);default:return e}}};function $e(e,t){if(t.FeatureFlagsEnabled){var r=Object(w.a)((function(){return n.e("featureflags").then(n.bind(null,666)).then((function(e){return e.FeatureFlagsFlexPanePanelConnector}))})),a=Object(i.f)().layout,o={component:r,key:"FeatureFlags",width:D.b};if(a)Object(i.b)().invoke("LazyComponentLoaded",Ze.b,Xe),o.nativeControlID="FeatureFlags";else o.btnId=E.c;Object(s.L)().dispatch(Object(D.e)(o))}}var et,tt,nt,it,rt,at,ot,st,ut,ct,lt,pt,dt,ft,ht=n(58),gt=n(56),mt=n(29);function yt(){Dt()?(0!==st&&window.clearTimeout(st),st=window.setTimeout((function(){Dt()&&null!=ct&&null!=dt&&(ft||function(){if(null!=dt&&null!=ct){var e=Object(je.a)();(lt=Object(k.b)(gt.shyHeader+" o365cs-base "+e.navbar,"O365_ShyHeader")).setAttribute("tabindex","0"),pt=Object(k.b)(gt.shyHeaderOverlay);var t=Object(k.b)(gt.shyHeaderGripper+" "+e.shyHeader);lt.appendChild(pt),lt.appendChild(t),dt.appendChild(lt),lt.addEventListener(ht.a.MOUSEDOWN,St),lt.addEventListener(ht.a.FOCUS,bt),Object(k.a)(ct,gt.headerAnimations),Object(k.a)(dt,gt.workloadDivAnimations),ft=!0}}(),Object(k.g)(ct,gt.headerSlideIn),Object(k.g)(dt,gt.workloadDivSlideIn),Object(k.a)(ct,gt.headerSlideOut),Object(k.a)(dt,gt.workloadDivSlideOut),ct.onanimationend=function(e){"headerSlideOutFrames"===e.animationName&&(et.invoke("ShyHeaderActivated",!0),nt=!0)})}),2e3)):tt.matches&&!ot||vt()}function vt(e){nt&&null!=lt&&null!=ct&&null!=dt&&(lt.style.visibility="hidden",lt.style.display="none",pt.style.visibility="hidden",pt.style.display="none",ct.style.display="flex",Object(k.g)(ct,gt.headerSlideOut),Object(k.g)(dt,gt.workloadDivSlideOut),Object(k.a)(ct,gt.headerSlideIn),Object(k.a)(dt,gt.workloadDivSlideIn),ct.onanimationend=function(t){"headerSlideInFrames"===t.animationName&&(et.invoke("ShyHeaderActivated",!1),nt=!1,e&&document.getElementById(mt.b).focus())})}function St(e){rt=!0}function bt(e){vt(!rt),rt=!1}function _t(e){it=!0}function Ct(e){it=!1,yt()}function Tt(e){at=!0}function Ot(e){at=!1,0!==ut&&window.clearTimeout(ut),ut=window.setTimeout((function(){at||yt()}),50)}function It(e){ot=e,e||yt()}function At(e){ot=e,e?vt():yt()}function wt(e){e&&null!=lt&&null!=ct&&(lt.style.visibility="visible",lt.style.display="flex",pt.style.visibility="visible",pt.style.display="flex",ct.style.display="none")}function Dt(){return tt.matches&&!nt&&!it&&!at&&!ot}var Et=n(81),Pt=!1;function Rt(e,t){if(!Pt){var n=Object(i.f)();if(n&&n.supportShyHeaderMode){var r=document.getElementById(n.top);!function(e,t,n){et=Object(i.b)(),tt=window.matchMedia("(max-height: "+t+"px)"),st=0,ut=0,dt=n,ct=e,window.addEventListener(ht.a.RESIZE,yt),ct.addEventListener(ht.a.MOUSEENTER,_t),ct.addEventListener(ht.a.MOUSELEAVE,Ct),ct.addEventListener(ht.a.FOCUS,Tt,!0),ct.addEventListener(ht.a.BLUR,Ot,!0),et.subscribe("ContextMenuPopup",It),et.subscribe("FlexPaneVisibilityChanged",At,!1),et.subscribe("ShyHeaderActivated",wt,!0),yt()}(document.getElementById(E.e),n.shyHeaderActivationHeight?n.shyHeaderActivationHeight:Et.b,r),Pt=!0}}}var kt,Nt,xt,Lt,jt,Ut,Mt,Ft,Bt=n(80),Wt=n(66),qt=n(43),Ht=n(133),Gt=n(99),zt=n(123),Vt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(l.__extends)(t,e),t.prototype.componentDidMount=function(){this.props.isAvailable&&Object(i.e)().perfMarker("MyDayTimeToInteractive")},t.prototype.render=function(){var e={controlID:this.props.id,isVisible:this.props.isAvailable,ariaLabel:N.a.MyDay,affordanceMenuItemText:N.a.MyDay,iconID:"EventToDoLogo",iconFontSize:k.f.toString(),isActive:this.props.isActive,isDarkModeEnabled:this.props.isDarkModeEnabled,onClick:this.props.onClick,onDimensionsChanged:this.props.controlDimensionsChanged};return 0===this.props.renderContext?r.createElement(Gt.a,Object(l.__assign)({},e)):r.createElement(zt.a,Object(l.__assign)({},e))},t}(r.Component),Kt=Object(o.b)((function(e,t){var n;return{isAvailable:e.shellInitDataState.clientData.OpxEnabled&&e.shellInitDataState.clientData.MyDayOpxEnabled,id:null==t?void 0:t.id,isActive:"MyDay"===(null===(n=e.flexPaneState)||void 0===n?void 0:n.activeProviderKey),controlDimensionsChanged:t.controlDimensionsChanged}}),(function(e){return{onClick:function(t,n){var r;t.stopPropagation(),Object(i.e)().click("MyDay","NavBar",null,null,"Active state: "+n.isActive+", Render context: "+n.renderContext),e(Object(s.eb)(null===(r=t.currentTarget)||void 0===r?void 0:r.id)),e(Object(qt.b)("MyDay")),n.onClick&&n.onClick(t)}}}),(function(e,t,n){var i=Object(l.__assign)(Object(l.__assign)({},n),e);return Object(l.__assign)(Object(l.__assign)(Object(l.__assign)({},i),t),{onClick:function(e){return t.onClick(e,i)},onDimensionsChanged:function(){return t.onDimensionsChanged(i)}})}))(Vt),Zt=n(50);function Qt(e,t){if(t.OpxEnabled&&t.MyDayOpxEnabled){Object(i.b)().unsubscribe("ShellDataUpdated",Qt);var r={component:Object(w.a)((function(){return n.e("myday").then(n.bind(null,668)).then((function(e){return e.MyDayFlexPaneConnector}))})),key:"MyDay",width:Bt.a};Object(i.b)().invoke("LazyComponentLoaded",Ht.b,Kt),r.nativeControlID="MyDay",Object(Wt.a)().dispatch(Object(qt.a)(r))}}(xt=Object(s.L)().getState()).userState.isConsumer||s.bb.register(b),kt=new O,Nt=window.O365Shell.Apps,window.O365Shell.Apps=kt,Nt.applyCalls(kt),xt.userState.isConsumer||Object(i.b)().subscribe("ShellDataUpdated",I,!0),Object(A.c)(),function(){var e=function(){return n.e("extraflexpane").then(n.bind(null,663))},t=window.O365Shell.NFD;t.registerShimCallback&&t.registerShimCallback((function(){e()}),["OpenHelp","OpenFeedback"]);var r=Object(w.a)((function(){return e().then((function(e){return e.HelpFlexPanePanelConnector}))})),a=Object(i.f)(),o={component:r,key:"Help",width:D.b,overrideOnClick:a.OnHelpButtonClick};a.layout?(Object(i.b)().invoke("LazyComponentLoaded",P.b,L),o.nativeControlID="HelpIcon"):o.btnId=E.f,Object(s.L)().dispatch(Object(D.e)(o))}(),Object(i.b)().subscribe("ShellDataUpdated",W,!0),Object(i.b)().subscribe("ShellDataUpdated",z,!0),function(){var e,t;s.bb.register(re),e=new oe,t=window.O365Shell.Settings,window.O365Shell.Settings=e,t.applyCalls(e);var r=Object(w.a)((function(){return n.e("extraflexpane").then(n.bind(null,661)).then((function(e){return e.SettingsFlexPanePanelConnector}))}));Object(i.b)().subscribe("ShellDataUpdated",se,!0);var a=Object(i.f)().layout,o={component:r,key:"Settings",width:D.b};a?(Object(i.b)().invoke("LazyComponentLoaded",V.b,Q),o.nativeControlID="SettingsIcon"):o.btnId=E.k,Object(s.L)().dispatch(Object(D.e)(o))}(),s.bb.register(_e),Object(s.W)(new ve),Object(i.b)().subscribe("ShellDataUpdated",Te,!0),function(){var e,t;s.bb.register(Ne),e=new qe,t=window.O365Shell.Extensibility,window.O365Shell.Extensibility=e,t.applyCalls(e);var n,r=Object(s.L)();function a(){var e=r.getState();n!==e.extensibilityState.customFlexPaneHash&&Object.keys(e.extensibilityState.customFlexPanes).forEach((function(t){if(!e.flexPaneState.registeredProviders.some((function(e){return e.key===t}))){var n=e.extensibilityState.customFlexPanes[t];r.dispatch(Object(D.e)({component:De,btnId:n.triggerControlID,shellControlID:n.triggerControlID,key:t,width:D.b}))}}));n=e.extensibilityState.customFlexPaneHash}a(),Object(i.b)().invoke("LazyComponentLoaded",Ie.b,Pe),r.subscribe(a)}(),Object(p.l)(),Lt=function(){return n.e("diagnostics").then(n.bind(null,670))},(jt=window.O365Shell.Diagnostics).registerShimCallback&&jt.registerShimCallback((function(){Lt()}),["GetServiceDiagnostics","GetClientDiagnostics"]),window.O365ShellContext.DiagnosticsEnabled&&Lt(),function(){var e=new ze,t=window.O365Shell.Abt;window.O365Shell.Abt=e,t.applyCalls(e);var n=Object(i.f)();n.abtTimeout&&window.O365Shell.Abt.Init(n.abtTimeout,n.abtSigninState,n.abtSessionId,n.abtDisableTrackEvents)}(),s.bb.register(Ye),Ut=new Je,Mt=window.O365Shell.FeatureFlags,window.O365Shell.FeatureFlags=Ut,Mt.applyCalls(Ut),Object(i.b)().subscribe("ShellDataUpdated",$e,!0),Object(i.b)().subscribe("ShellDataUpdated",Rt,!0),(Ft=Object(i.f)())&&Ft.layout&&Ft.layout.centerCustomizationRegion&&Object(Zt.a)("MyDay",Ft.layout.centerCustomizationRegion.children)&&Object(i.b)().subscribe("ShellDataUpdated",Qt,!0),Object(i.b)().invoke("PlusLoaded"),Object(i.e)().perfMarker("shell_plus_executioncomplete")}]]),HighResolutionTimingSupported&&(shellPerformance.mark("shell_plus_end"),shellPerformance.measure("shell_plus","shell_plus_start","shell_plus_end"));
//# sourceMappingURL=https://oneshellprcorp.blob.core.windows.net/oneshellpr/20200714.3/plus.map