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"],{101:function(e,t,n){"use strict";var i=n(20),r=n(118),a=n(1),o=n(23),s=n(26),u=n(14),c=n(91),l=n(123),p=n(146),d=n(96),f=n(28),h=n(159),g=n(16),m=n(161);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=0:this.mode=1,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.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.d)().tag("RequestExecutor_IFrameLoadError",4,-1007,s.k),e.sPostMessageIdToRequestInfoMap[t]=null,delete e.sPostMessageIdToRequestInfoMap[t],u.reportSimpleError(n.requestInfo,-1001,s.h,"IFrameRequest"),Object(a.d)().serverRequest(n.command,n.requestInfo.method,e.sIFrameInstanceCode[n.appWebProxyUrl].toString(),n.requestInfo.url,-1001),e.fireDataWatchReceivedCallbackGivenResponseInfo(n.requestInfo,null,-1001,s.h))}},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.h,"ensureFormDigest"),Object(a.d)().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.j,p.status.toString(),p.getResponseHeader("content-type"));u.reportSimpleError(o,-1002,r),Object(a.d)().tag("RequestExecutor_UnexpectedResponse",6,p.status.toString(),p.getResponseHeader("content-type")),Object(a.d)().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.d)().serverRequest(f.a.Query,o.method,null,o.url,p.status,o.isTokenGeneratedFromWorkload,n,u.getXMLHttpResponseLength(p))}else u.reportSimpleError(o,-1002,s.g),Object(a.d)().tag("RequestExecutor_UnableToParseJson",6,p.status.toString(),p.responseText),Object(a.d)().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(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){switch(e.sIFrameInstanceCode[t]){case d.a.OWA:Object(a.d)().perfMarker("OwaIframeLoadStarted");break;case d.a.Portal:Object(a.d)().perfMarker("PortalIframeLoadStarted");break;case d.a.TokenFactory:Object(a.d)().perfMarker("TokenFactoryIframeLoadStarted")}var n=document.createElement("iframe");n.src=t,n.id=t,n.style.display="none",n.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms");n.addEventListener("load",function(){e.internalProcessIFrameOnload(t)}),document.body.appendChild(n);var i=window.setTimeout(function(){delete e.sFrameLoadTimeoutId[t],e.processPingTimeoutOrIFrameLoadTimeout(t)},this.IFrameLoadTimeout);return e.sFrameLoadTimeoutId[t]=i,n},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
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.d)().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(t.appWebProxyUrl);if(null==n)throw Object(a.d)().tag("RequestExecutor_IFrameNull",6,t.appWebProxyUrl),new o.b(s.f,-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=200&&o.statusCode<300||1223===o.statusCode||(y=-1003,v=o.statusCode),0===y?4===o.readyState?(m.performanceTrace=o.performanceTrace,null!=s.requestInfo.success&&s.requestInfo.success(m),e.fireDataWatchReceivedCallbackGivenResponseInfo(s.requestInfo,m,0,null),Object(a.d)().serverRequest(s.command,s.requestInfo.method,e.sIFrameInstanceCode[s.appWebProxyUrl].toString(),s.requestInfo.url,o.statusCode,s.requestInfo.isTokenGeneratedFromWorkload,d,o.responseText?o.responseText.length:0)):3===o.readyState&&null!=s.requestInfo.loading&&s.requestInfo.loading(m):4!==o.readyState&&0!==o.readyState&&null!=o.readyState||(m.performanceTrace=o.performanceTrace,null!=s.requestInfo.error&&s.requestInfo.error(m,y,v),Object(a.d)().tag("RequestExecutor_IFrameError",4,y,v),e.fireDataWatchReceivedCallbackGivenResponseInfo(s.requestInfo,m,y,v),Object(a.d)().serverRequest(s.command,s.requestInfo.method,e.sIFrameInstanceCode[s.appWebProxyUrl].toString(),s.requestInfo.url,y,s.requestInfo.isTokenGeneratedFromWorkload,d,o.responseText?o.responseText.length:0))}else if(o.command===f.a.Storage||o.command===f.a.TokenPrefetch||o.command===f.a.OwaUserConfig){m={responseObject:o.responseObject},y=o.errorCode,v=o.errorMessage;0===y&&u.isNullOrEmptyString(v)?(null!=s.requestInfo.success&&s.requestInfo.success(m),e.fireDataWatchReceivedCallbackGivenResponseInfo(s.requestInfo,m,0,null)):(null!=s.requestInfo.error&&s.requestInfo.error(m,y,v),e.fireDataWatchReceivedCallbackGivenResponseInfo(s.requestInfo,m,y,v)),Object(a.d)().serverRequest(s.command,s.requestInfo.method,e.sIFrameInstanceCode[s.appWebProxyUrl].toString(),s.requestInfo.url,0!==y?y:200,s.requestInfo.isTokenGeneratedFromWorkload,d,o.responseText?o.responseText.length:0)}else o.command===f.a.Notification&&(0!==o.errorCode&&null!=s.requestInfo.error&&s.requestInfo.error({responseObject:o.responseObject},o.errorCode,o.errorMessage),e.NotificationCallback(JSON.stringify(o.responseObject)),e.fireDataWatchReceivedCallbackGivenPostMessageResponseInfo(s.requestInfo,o))}}}}}},e.internalProcessXMLHttpRequestTimeoutCallback=function(t,n){t.onreadystatechange=function(){};try{t.abort()}catch(e){}u.reportSimpleError(n,-1001,s.h,"XMLHttpRequest"),Object(a.d)().serverRequest(f.a.Query,n.method,null,n.url,-1001),e.fireDataWatchReceivedCallbackGivenResponseInfo(n,null,-1001,s.h)},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.d)().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.d)().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.d)().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.d)().perfMarker("OwaIframeLoadFailed");break;case d.a.Portal:Object(a.d)().perfMarker("PortalIframeLoadFailed");break;case d.a.TokenFactory:Object(a.d)().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.d)().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////");return new e(n[0],n[1],n[2])},e}(),d=function(e,t){this.Key=e,this.Value=t,Object(l.throwOnNull)(e,"key"),Object(l.throwOnNull)(t,"value")},f=function(){function e(e){void 0===e&&(e={}),this.values=e}return e.fromStorageSessionResponseData=function(t){l.throwOnNullOrUndefined(t,"data");for(var n=new e({}),i=0,r=Object.keys(t.Reads);i0},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=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=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-1?e.substring(0,t):""},t.isBeaconsSupported=function(){return null===u&&(u="undefined"!=typeof navigator&&Boolean(navigator.sendBeacon)),u},t.isUint8ArrayAvailable=function(){return null===c&&(c="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()),c},t.isPriority=function(e){return!(!d(e)||!(e>=1&&e<=3||5===e))},t.sanitizeProperty=function(e,n){if(!t.PropertyNameRegex.test(e)||null==n||""===n)return null;if(p(n)||d(n)||f(n))n={value:n,type:r.AWTPropertyType.Unspecified};else if(void 0===n.value||null===n.value||""===n.value||!p(n.value)&&!d(n.value)&&!f(n.value))return null;return n.type=function(e,t){if(!function(e){if(d(e)&&e>=0&&e<=4)return!0;return!1}(t)||t===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}return r.AWTPropertyType.Unspecified}(e);if(t===r.AWTPropertyType.String&&"string"==typeof e)return t;if((t===r.AWTPropertyType.Double||t===r.AWTPropertyType.Int64)&&"number"==typeof e)return t===r.AWTPropertyType.Int64&&e%1!=0?null:t;if(t===r.AWTPropertyType.Boolean&&"boolean"==typeof e)return t}(n.value,n.type),n.type?n.pii>0&&n.cc>0?null:n.pii?function(e){if(d(e)&&e>=0&&e<=13)return!0;return!1}(n.pii)?n:null:n.cc?function(e){if(d(e)&&e>=0&&e<=1)return!0;return!1}(n.cc)?n:null:n:null},t.getISOString=function(e){return e.getUTCFullYear()+"-"+g(e.getUTCMonth()+1)+"-"+g(e.getUTCDate())+"T"+g(e.getUTCHours())+":"+g(e.getUTCMinutes())+":"+g(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===l){var e=new XMLHttpRequest;l=void 0===e.withCredentials&&"undefined"!=typeof XDomainRequest}return l},t.isReactNative=h},122:function(e,t,n){"use strict";n.d(t,"e",function(){return o}),n.d(t,"j",function(){return u}),n.d(t,"f",function(){return c}),n.d(t,"a",function(){return l}),n.d(t,"i",function(){return p}),n.d(t,"c",function(){return d}),n.d(t,"h",function(){return f}),n.d(t,"b",function(){return h}),n.d(t,"g",function(){return g}),n.d(t,"d",function(){return m});var i=n(95),r=n(1),a=n(4),o={IsVirtual:!0,ParallelView:!0,Style:"o365shell",CanCollapse:!0,SuppressBackgroundRinging:!0},s="Chat API not available";function u(e,t){!t&&swc&&(e?swc.API.triggerEvent(i.b.ApiRecentsShown):swc.API.triggerEvent(i.b.ApiRecentsHidden))}function c(e,t){!t&&swc&&swc.SDK.Recents.refreshDOM(e)}function l(e,t,n){!n&&swc?(swc.API.registerEvent(i.b.ApiRecentsReady,t),swc.create(i.c.Recents,{},e)):TeamsClient&&TeamsClient.client&&TeamsClient.client.conversations.get().then(function(n){n.render(e).then(t)})}function p(e,t){swc&&swc.getPresence().then(function(t){t.setMyStatus(e.key)}).catch(function(e){Object(r.d)().exception("UserPresence_SetMyStatus_Exception",6,e),t()})}function d(){return new Promise(function(e,t){swc?swc.getNotificationSettings().then(function(n){n.readOption(i.e.NewMessage).then(function(t){e(m(t.value))}).catch(function(e){Object(r.d)().exception("Chat_Notification_Settings_readOption_Exception",6,e),t(e)})}).catch(function(e){Object(r.d)().exception("ChatApi_Get_Chat_Notification_Settings_Exception",6,e),t(e)}):t(new a.a(s))})}function f(e){return new Promise(function(t,n){swc?swc.getNotificationSettings().then(function(n){n.setOption({name:i.e.NewMessage,value:y(e)}),t()}).catch(function(e){Object(r.d)().exception("ChatApi_Set_Chat_Notification_Settings_Exception",6,e),n()}):n(new a.a(s))})}function h(){return new Promise(function(e,t){swc?swc.getNotificationSettings().then(function(n){n.readOption(i.e.IncomingCall).then(function(t){e(m(t.value))}).catch(function(e){Object(r.d)().exception("Chat_Notification_Settings_readOption_Exception",6,e),t(e)})}).catch(function(e){Object(r.d)().exception("ChatApi_Get_Call_Notification_Settings_Exception",6,e),t(e)}):t(new a.a(s))})}function g(e){return new Promise(function(t,n){swc?swc.getNotificationSettings().then(function(n){n.setOption({name:i.e.IncomingCall,value:y(e)}),t()}).catch(function(e){Object(r.d)().exception("ChatApi_Set_Call_Notification_Settings_Exception",6,e),n()}):n(new a.a(s))})}function m(e){var t;switch(e){case i.d.All:t={Enabled:!0,SoundEnabled:!0};break;case i.d.Notification:t={Enabled:!0,SoundEnabled:!1};break;case i.d.Off:t={Enabled:!1,SoundEnabled:!1}}return t}function y(e){return e.Enabled&&e.SoundEnabled?i.d.All:e.Enabled?i.d.Notification:i.d.Off}},123:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(14),r=n(105),a=(n(28),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;a253)return!1;for(var n=!1,i=0;in.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=y;rDate.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=y;i0){Object(i.a)().unsubscribe("ShellDataUpdated",O);var n=Object(s.L)();a.render(r.createElement(o.a,{store:n},r.createElement(S,null)),document.createElement("div"))}}var D=n(208),w=n(62),E=n(31),P=n(36),N=n(164),R=n(59),k=n(21),L=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.d)().perfMarker("HelpTimeToInteractive")},t.prototype.render=function(){var e={controlID:this.props.id,isVisible:this.props.isAvailable,ariaLabel:L.a.Help_Title,affordanceMenuItemText:L.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.onDimensionsChanged};return 0===this.props.renderContext?r.createElement(R.b,Object(l.__assign)({},e)):r.createElement(R.a,Object(l.__assign)({},e))},t}(r.Component),j=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}},function(e){return{onClick:function(t,n){t.stopPropagation(),Object(i.d)().click("Help","HelpPane",null,null,"Active state: "+n.isActive+", Render context: "+n.renderContext),e(Object(s.db)(t&&t.currentTarget&&t.currentTarget.id));var r=Object(i.e)();!r||null!=r.OnHelpButtonClick&&r.OnHelpButtonClick()||e(Object(E.f)("Help")),n.onClick&&n.onClick(t)},onDimensionsChanged:function(e){Object(i.a)().invoke("ComponentDimensionChanged","HelpIcon",(e.isAvailable&&0===e.renderContext).toString())}}},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 U=n(112),M=n(115),B=n(41),W=null,F=function(){function e(e,t,n,i,r){this.serverRequestInfluxControl=r,this.context={};var a={disableCookiesUsage:!0};t&&t.length>0&&(a.collectorUri=t),U.AWTLogManager.setTransmitProfile(U.AWT_NEAR_REAL_TIME),this.ariaLogger=U.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?U.AWTPiiKind.NotSet:U.AWTPiiKind.GenericData)},e.prototype.writeEvent=function(e){if(null!=e){if(!(e.name!==M.a.Impression&&e.name!==M.a.Click||"true"!==this.context.Context_IsConsumer||"ToDo"!==this.context.Context_Site&&"StickyNotes"!==this.context.Context_Site))return;if(e.name===M.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 U.AWTEventProperties(M.a[e.name]);n.setType(M.c[e.type]),n.setTimestamp(e.timestamp),e.properties.forEach(function(e){n.setPropertyWithPii(e.name,e.value,0===e.piiKind?U.AWTPiiKind.NotSet:U.AWTPiiKind.GenericData)}),this.ariaLogger.logEvent(n)}},e}();function q(e,t){null==W&&t.AriaTelemetryEnabled&&t.AriaTelemetryTenantToken&&(!t.IsConsumerShell&&t.PUID?t.CLSID&&t.SHSID&&t.TID&&H(e,t):H(e,t))}function H(e,t){var n=window.O365ShellVerStr||"unknown",r=t.Environment||"unknown",a=t.AriaTelemetryTenantToken||"c6c190a1b73c4a63bba89835d546cf28-f2a0482f-a00d-48d9-822e-e89cc89eb64d-7688",o=Object(i.e)();o&&o.testTraffic&&(a="c0c8ed88b81549bd84e261ebe62ccaae-cea55197-8121-49f9-826d-f682812729c3-7350"),(W=new F(a,t.AriaTelemetryUri,"OneShell",n,t.AriaTelemetryServerRequestInfluxControl)).registerContextParam("Context_Env",r),W.registerContextParam("Context_Site",t.WorkloadId),W.registerContextParam("Context_SiteSubId",e.CurrentMainLinkElementID),W.registerContextParam("Context_WorkloadAppId",Object(c.b)(t.WorkloadId,e.CurrentMainLinkElementID,document.URL)),W.registerContextParam("Context_Page",B.b(document.URL)),W.registerContextParam("Context_SID",t.CLSID),W.registerContextParam("Context_CID",t.SHSID),W.registerContextParam("Context_PID",M.b.getNewID()),W.registerContextParam("Context_TID",t.TID),W.registerContextParam("Context_UID",t.UID),W.registerContextParam("Context_PUID",t.PUID?t.PUID.toUpperCase():""),W.registerContextParam("Context_IsConsumer",t.IsConsumerShell?"true":"false"),W.registerContextParam("Context_Flights",e.FlightName),W.registerContextParam("Context_FlightRings",t.FlightRing),W.registerContextParam("Context_Segment",t.ActiveExperiences),W.registerContextParam("UserInfo.OMSTenantId",t.TID),W.registerContextParam("UserInfo.Id",t.PUID?t.PUID.toUpperCase():""),W.registerContextParam("UserInfo.IdType",t.IsConsumerShell?"MSAPUID":"OrgIdPUID");var s=Object(i.d)();s.registerService(W),s.IsConsumer=t.IsConsumerShell,Object(i.a)().unsubscribe("ShellDataUpdated",q),window.addEventListener("beforeunload",G)}function G(){try{U.AWTLogManager.flushAndTeardown()}catch(e){}}var z=!1;function K(e,t){var n;!z&&t&&t.FootprintTelemetryEnabled&&(z=!0,s.s.isMobileClient()||Object(s.bb)(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="",a=Object(c.b)(t.WorkloadId,e.CurrentMainLinkElementID,document.URL);t.IsConsumerShell?(r="O365s",n="84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa"):(r="O365se",t.TID&&(n=t.TID));try{Footprint.start(r,["config.fp.measure.office.com/conf/v2/owa/fpconfig.min.json","r4.res.office365.com/footprint/v3.2/scripts/fpconfig.json"],1e4,JSON.stringify([{TenantId:n,AppId:a}]))}catch(e){Object(i.d)().tag("Footprint_StartFailed",6,e||"")}}).catch(function(e){Object(i.d)().tag("Footprint_LoadFailed",4,e.ResourceName,e.Details)}),Object(i.a)().unsubscribe("ShellDataUpdated",K))}var V=n(165),Z=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.d)().perfMarker("SettingsTimeToInteractive")},t.prototype.render=function(){var e={controlID:this.props.id,isVisible:this.props.isAvailable,ariaLabel:L.a.Settings,affordanceMenuItemText:L.a.Settings,iconID:"Settings",iconFontSize:k.f.toString(),isActive:this.props.isActive,isDarkModeEnabled:this.props.isDarkModeEnabled,onClick:this.props.onClick,onDimensionsChanged:this.props.onDimensionsChanged};return 0===this.props.renderContext?r.createElement(R.b,Object(l.__assign)({},e)):r.createElement(R.a,Object(l.__assign)({},e))},t}(r.Component),Q=n(160),X=Object(o.b)(function(e,t){var n=!1;e.shellInitDataState.layout&&(n=!!e.shellInitDataState.clientData.SettingsPaneEnabled&&Object(Q.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}},function(e){return{onClick:function(t,n){t.stopPropagation(),Object(i.d)().click("Settings","SettingsPane",null,null,"Active state: "+n.isActive+", Render context: "+n.renderContext),n.onClick&&n.onClick(t),e(Object(s.db)(t.currentTarget&&t.currentTarget.id)),e(Object(E.f)("Settings"))},onDimensionsChanged:function(e){Object(i.a)().invoke("ComponentDimensionChanged","SettingsIcon",(e.isAvailable&&0===e.renderContext).toString())}}},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)}})})(Z),J=n(128),Y=n(145),$=n(25),ee=n(57),te=n(200),ne=n(24);function ie(e,t,n,r){var a=Object(J.c)();return e?Object(l.__assign)(Object(l.__assign)({},e),{workloadData:n,workloadSettingLinksTitle:r&&r.workloadSettingsSubLinksTitle||t.CurrentWorkloadSettingsSubLinksTitle,workloadSettingLinks:Object(l.__spreadArrays)(t.CurrentWorkloadSettingsSubLinks||[],r&&r.workloadSettingsSubLinks||[])}):Object(l.__assign)(Object(l.__assign)({},e),{themeCardState:{selectedThemeId:Object(i.f)().getUserThemesManager().getCurrentThemeId(),themeData:[],preferOfficeTheme:Object(i.f)().getBrandingThemeManager().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:L.a.NotAvailable,sessionID:r&&r.sessionID?r.sessionID:L.a.NotAvailable,version:r.version?r.version:L.a.NotAvailable},navBarLinksCardState:{titles:{}},workloadData:n,workloadId:n&&n.WorkloadId?n.WorkloadId:"",expandO365Settings:!1,workloadSettingLinksTitle:r&&r.workloadSettingsSubLinksTitle||t.CurrentWorkloadSettingsSubLinksTitle,workloadSettingLinks:Object(l.__spreadArrays)(t.CurrentWorkloadSettingsSubLinks||[],r&&r.workloadSettingsSubLinks||[]),cards:[]})}function re(e){var t=-1!==e.indexOf("HH");return new ee.a(2018,8,1,t?21:9,5).format(e).replace("Sep",L.a.SeptemberAbbrev).replace("September",L.a.September)}var ae={settingsFlexPaneState:function(e,t){if(!e){var n=t.shellInitData.shellInitDataState;e=ie(null,n.navBarData,n.clientData,n.renderSettings)}switch(t.type){case s.k:var r=t;return ie(e,r.navBarData,r.shellClientData,r.renderSettings);case ne.a:return function(e,t){var n=t,i=Object(s.F)(e.workloadSettingLinks,function(e){return e.Id===n.newWorkloadSettingLink.Id});if(!Object(Y.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 ne.j: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 ne.p:return function(e,t){var n=t.newWorkloadSettingsLinks.filter(function(e){return Object(Y.b)(e)});if(0===n.length)return e;return Object(l.__assign)(Object(l.__assign)({},e),{workloadSettingLinks:n})}(e,t);case ne.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.f)().getUserThemesManager().getUserPersonalizationAllowed(),a=Object(te.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||$.DefaultThemeId,preferOfficeTheme:n.themeInfo.PreferOfficeTheme})})}(e,t);case ne.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 ne.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 ne.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),{selectedLanguage:n.selectedLanguage})})}(e,t);case ne.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),{selectedTimeZone:n.timeZoneChoice,selectedDateFormat:n.dateFormatChoice,selectedTimeFormat:n.timeFormatChoice,savedTimeZone:n.timeZoneChoice,savedDateFormat:n.dateFormatChoice,savedTimeFormat:n.timeFormatChoice})})}(e,t);case ne.s: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 ne.o: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 ne.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:re(e)}})})})}(e,t);case ne.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),{selectedDateFormat:n.selectedDateFormat})})}(e,t);case ne.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),{timeFormatChoices:n.timeFormatChoices.map(function(e){return{id:e,text:re(e)}})})})}(e,t);case ne.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),{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 ne.k: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 ne.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 ne.h:return function(e,t){var n=t;return Object(l.__assign)(Object(l.__assign)({},e),{parentCardId:n.cardId})}(e,t);case ne.i:return function(e,t){var n=t;return Object(l.__assign)(Object(l.__assign)({},e),{expandO365Settings:n.isExpanded})}(e,t);case ne.g:return function(e,t){var n=t,i=Object(l.__assign)({},e);return i.navBarLinksCardState.titles[n.cardId]=n.cardTitle,i}(e,t);default:return e}}},oe=n(152),se=function(){function e(){}return e.prototype.AddOrUpdateWorkloadSettingLink=function(e){Object(s.L)().dispatch(Object(oe.a)(e))},e.prototype.RemoveWorkloadSettingLink=function(e){Object(s.L)().dispatch(Object(oe.j)(e))},e.prototype.SetWorkloadSettingsLinks=function(e){Object(s.L)().dispatch(Object(oe.p)(e))},e}();function ue(e,t){var n=Object(i.e)().layout,r=Object(s.L)().getState().settingsFlexPaneState.workloadSettingLinks;if(!n){var a=t.SettingsPaneEnabled&&Object(Q.a)(Object(l.__assign)(Object(l.__assign)({},t),{CurrentMainLinkElementID:e.CurrentMainLinkElementID}),null,r).length>0,o=document.getElementById(P.h);o&&a&&(o.style.display="block")}}var ce=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:L.a.StickyNotes_Title,affordanceMenuItemText:L.a.StickyNotes,iconID:"Page",iconFontSize:k.f.toString(),isActive:this.props.isActive,isDarkModeEnabled:this.props.isDarkModeEnabled,onClick:this.props.onClick,onDimensionsChanged:this.props.onDimensionsChanged};return 0===this.props.renderContext?r.createElement(R.b,Object(l.__assign)({},e)):r.createElement(R.a,Object(l.__assign)({},e))},t}(r.Component),le=Object(o.b)(function(e,t){return{isAvailable:!0,id:t&&t.id,isActive:e.flexPaneState&&"StickyNotes"===e.flexPaneState.activeProviderKey}},function(e){return{onClick:function(t,n){t.stopPropagation(),Object(i.d)().click("StickyNotesButton","StickyNotesPane"),e(Object(E.f)("StickyNotes")),n.onClick&&n.onClick(t)},onDimensionsChanged:function(e){Object(i.a)().invoke("ComponentDimensionChanged","StickyNotesIcon",(e.isAvailable&&0===e.renderContext).toString())}}},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)}})})(ce),pe=n(163);var de=n(166),fe=n(99),he=n(22),ge=Object(o.b)(function(e,t){return Object(l.__assign)(Object(l.__assign)({},t),{unseenItemCount:e.chatState.unreadBadgeValue})})(s.r),me=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.d)().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:L.a.Chat,affordanceMenuItemText:L.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.onDimensionsChanged};return 0===this.props.renderContext?r.createElement(R.b,Object(l.__assign)({},t),r.createElement(ge,{unseenItemCount:0,isParentHovered:this.state.isHovered,badgeStyles:he.headerButtonBadgePosition})):r.createElement(R.a,Object(l.__assign)({},t),r.createElement(ge,{unseenItemCount:0,isParentHovered:this.state.isHovered,badgeStyles:fe.affordanceContextMenuItemBadgePosition}))},t}(r.Component),ye=n(194);var ve=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}},function(e){return{onClick:function(t,n){t.stopPropagation(),Object(i.d)().click("ChatButton","Chat",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)):(e(Object(ye.c)(!n.isActive)),e(Object(s.db)(t.currentTarget&&t.currentTarget.id)))},onDimensionsChanged:function(e){Object(i.a)().invoke("ComponentDimensionChanged","ChatIcon",(e.isAvailable&&0===e.renderContext).toString())}}},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)}})})(me),Se=n(199),be=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}})(Se.a),Te=n(122),_e=function(){function e(){}return e.prototype.getChatNotificationSettings=function(){return Object(Te.c)()},e.prototype.getCallNotificationSettings=function(){return Object(Te.b)()},e.prototype.setCallNotificationSettings=function(e){return Object(Te.g)(e)},e.prototype.setChatNotificationSettings=function(e){return Object(Te.h)(e)},e}(),Ce=n(111);function Ie(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 Ae={chatState:function(e,t){if(!e){var n=t.shellInitData.shellInitDataState;e=Ie(s.x,n.clientData||{})}switch(t.type){case s.k:return Ie(e,t.shellClientData);case s.p:return function(e,t){var n=t;return Object(Te.j)(n.isRecentsOpen,e.isTeamsChatActivated),Object(l.__assign)(Object(l.__assign)({},e),{isChatRecentsPaneOpen:n.isRecentsOpen})}(e,t);case Ce.b:return function(e,t){var n=t;return Object(l.__assign)(Object(l.__assign)({},e),{isChatRecentsPaneInitialized:n.isRecentsInitialized})}(e,t);case Ce.a:return function(e,t){var n=t;return Object(l.__assign)(Object(l.__assign)({},e),{isChatAPIInitialized:n.isChatAPIInitialized})}(e,t);case Ce.d:return function(e,t){var n=t;return Object(l.__assign)(Object(l.__assign)({},e),{unreadBadgeValue:n.unreadBadgeValue})}(e,t);case Ce.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 Oe=!1;function De(e,t){if(!Oe){var n=Object(s.L)(),u=Object(i.e)()&&Object(i.e)().layout;if(u)u.centerCustomizationRegion&&Object(s.E)("ChatIcon",u.centerCustomizationRegion.children)&&(Object(i.a)().invoke("LazyComponentLoaded",de.b,ve),Object(i.a)().invoke("ComponentDimensionChanged","ChatIcon","connected"),we());else{var c=document.getElementById(P.a);c&&(a.render(r.createElement(o.a,{store:n},r.createElement(be,null)),c),we())}}}function we(){var e=Object(w.a)(function(){return n.e("notifications").then(n.bind(null,1254)).then(function(e){return e.ChatBaseControlConnector})});Oe=!0;var t=document.createElement("div");document.getElementById(Object(i.e)().top).appendChild(t);var u=Object(s.L)();a.render(r.createElement(o.a,{store:u},r.createElement(e,null)),t)}var Ee=n(162),Pe=n(177),Ne=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.d)().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(E.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)(Pe.flexPaneContentContainer,(e={},e[Pe.flexPaneContentContainerForThinHeader]=this.props.isThinHeader,e)),onKeyDown:this.props.customEscapeKeyHandling&&this.preventEscPropagation,ref:function(e){return t.customRenderContainer=e}}))},t}(E.a),Re=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.e)().isThinHeader,customTitle:n.customTitle,render:n.render,customEscapeKeyHandling:n.customEscapeKeyHandling,onFlexPaneOpen:n.onFlexPaneOpen,onFlexPaneClose:n.onFlexPaneClose,triggerControlID:n.triggerControlID}):(Object(i.d)().tag("UnrecognizedCustomFlexPane",6,t.flexPaneProviderID),null)})(Ne),ke=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||"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.onDimensionsChanged,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:he.headerButtonBadgePosition})):r.createElement(R.a,Object(l.__assign)({},t),r.createElement(s.r,{unseenItemCount:this.props.badgeValue,isParentHovered:this.state.isHovered,badgeStyles:fe.affordanceContextMenuItemBadgePosition}))},t}(r.Component),Le=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.db)(i.currentTarget&&i.currentTarget.id)),n&&e(Object(E.f)(n))},onDimensionsChanged:function(){Object(i.a)().invoke("ComponentDimensionChanged",t.id,"shown")}}},function(e,t){return Object(l.__assign)(Object(l.__assign)(Object(l.__assign)({},e),t),{onClick:function(n){t.onClickDispatch(e.flexPaneProviderID,n)}})})(ke),xe="suiteux-extensibility.SET_BADGE_VALUE",je="suiteux-extensibility.UPDATE_CUSTOMHEADERBUTTON",Ue=n(110);function Me(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 Be={extensibilityState:function(e,t){if(!e){var n=t.shellInitData.shellInitDataState;e=Me(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.l:return Me(e,t.shellLayout);case je: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 Ue.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 xe: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}}},We=n(135),Fe=n(148),qe=n(17),He=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(qe.a)(),i=Object(s.y)(he.button,Fe.customHeaderButton,n.headerButton,((e={})[n.activeHeaderButton]=this.props.isActive,e));return r.createElement(We.a,{controlID:this.props.id,isActive:this.props.isActive,controlElement:this.buttonElement},r.createElement("div",{className:Fe.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.g,{fontSize:"16",fontValue:this.props.iconFontName}))))},t}(r.Component),Ge=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.db)(t))}}})(He),ze="O365_CustomHeaderButtonsContainer",Ke=Object(s.L)(),Ve=[];var Ze=Object(s.L)(),Qe=function(){function e(){}return e.prototype.AddOrUpdateCustomHeaderButton=function(e){Object(i.d)().tag("AddOrUpdateCustomHeaderButton",1,e.id,e.iconFontName),function(e){var t=Object(s.F)(Ve,function(t){return t.id===e.id});if(t>=0?Ve=Object(l.__spreadArrays)(Ve.slice(0,t),[e],Ve.slice(t+1)):Ve.unshift(e),Ke.getState().shellInitDataState.layout){var n=Object(i.c)();n.DefaultLayoutState.CustomHeaderButtons=Ve,Object(i.a)().invoke("ShellLayoutUpdated",n.GetDefaultLayout())}else{var u=Ve.map(function(e){return r.createElement(Ge,{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(ze);Object(i.e)().isThinHeader&&(c.style.height="48px"),a.render(r.createElement(o.a,{store:Ke},r.createElement("div",{className:Fe.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.db)(e)):n.dispatch(Object(s.db)(""))},e.prototype.SetCustomHeaderButtonBadgeValue=function(e,t){Ze.dispatch(function(e,t){return{type:xe,buttonID:e,badgeValue:t}}(e,t))},e}();var Xe=function(){function e(){this.GetDiagnosticsUrl="/api/myapps/Diagnostics/"}return e.prototype.GetServiceDiagnostics=function(){var e=this;window.O365Shell.OnSuiteAPILoaded(function(){var t=console.info;f.b.Instance.Service.callWebClientShellServiceFunction(e.GetDiagnosticsUrl,"GET",null,null).then(function(e){t("Service diagnostics information: "+JSON.stringify(e))}).catch(function(e){t("Error retrieving service diagnostics information. Error: "+JSON.stringify(e))})})},e}();var Je,Ye,$e,et,tt,nt=n(20),it=!1,rt=function(){function e(){}return e.prototype.Init=function(e,t,n,r){it||(it=!0,this.Timeout=e,this.SigninState=t,this.SessionId=n,this.DisableTrackEvents=r,Object(i.a)().subscribe("ShellDataUpdated",at,!0))},e}();function at(e,t){t.PUID&&(t.AuthAbtEnabled&&(it=!0,window.LoadAbtPromptJs={Download:ot},n.e("abt").then(n.t.bind(null,1267,7)).then(function(n){var i=n.Environment.WorldWide;Object(nt.a)(t.Environment.toLowerCase(),"tbprod")?i=n.Environment.Trailblazer:Object(nt.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.a)().unsubscribe("ShellDataUpdated",at))}function ot(e){n.e("abtprompt").then(n.t.bind(null,1266,7)).then(function(t){e&&e()})}($e=Object(s.L)().getState()).userState.isConsumer||s.ab.register(T),Je=new A,Ye=window.O365Shell.Apps,window.O365Shell.Apps=Je,Ye.applyCalls(Je),$e.userState.isConsumer||Object(i.a)().subscribe("ShellDataUpdated",O,!0),Object(D.c)(),function(){var e=function(){return n.e("extraflexpane").then(n.bind(null,1258))},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.e)(),o={component:r,key:"Help",width:E.b,overrideOnClick:a.OnHelpButtonClick};if(a.layout){var u=Object(i.a)();u.invoke("LazyComponentLoaded",N.b,j),u.invoke("ComponentDimensionChanged","HelpIcon","connected"),o.nativeControlID="HelpIcon"}else o.btnId=P.d;Object(s.L)().dispatch(Object(E.e)(o))}(),Object(i.a)().subscribe("ShellDataUpdated",q,!0),Object(i.a)().subscribe("ShellDataUpdated",K,!0),function(){var e,t;s.ab.register(ae),e=new se,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,1261)).then(function(e){return e.SettingsFlexPanePanelConnector})});Object(i.a)().subscribe("ShellDataUpdated",ue,!0);var a=Object(i.e)().layout,o={component:r,key:"Settings",width:E.b};if(a){var u=Object(i.a)();u.invoke("LazyComponentLoaded",V.b,X),u.invoke("ComponentDimensionChanged","SettingsIcon","connected"),o.nativeControlID="SettingsIcon"}else o.btnId=P.h;Object(s.L)().dispatch(Object(E.e)(o))}(),Object(i.a)().subscribe("ShellDataUpdated",function(e,t){t.StickyNotesEnabled&&function(){var e=Object(w.a)(function(){return n.e("stickynotes").then(n.bind(null,1263)).then(function(e){return e.StickyNotesFlexPanePanelConnector})}),t=Object(i.e)().layout,r={component:e,key:"StickyNotes",width:E.b};if(t){var a=Object(i.a)();a.invoke("LazyComponentLoaded",pe.b,le),a.invoke("ComponentDimensionChanged","StickyNotesIcon","connected"),r.nativeControlID="StickyNotesIcon"}Object(s.L)().dispatch(Object(E.e)(r))}()},!0),s.ab.register(Ae),Object(s.V)(new _e),Object(i.a)().subscribe("ShellDataUpdated",De,!0),function(){var e,t;s.ab.register(Be),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(E.e)({component:Re,btnId:n.triggerControlID,shellControlID:n.triggerControlID,key:t,width:E.b}))}});n=e.extensibilityState.customFlexPaneHash}a(),Object(i.a)().invoke("LazyComponentLoaded",Ee.b,Le),Object(i.a)().invoke("ComponentDimensionChanged","CustomHeaderButtonPlaceHolder","connected"),r.subscribe(a)}(),Object(p.l)(),et=new Xe,tt=window.O365Shell.Diagnostics,window.O365Shell.Diagnostics=et,tt.applyCalls(et),function(){var e=new rt,t=window.O365Shell.Abt;window.O365Shell.Abt=e,t.applyCalls(e);var n=Object(i.e)();n.abtTimeout&&window.O365Shell.Abt.Init(n.abtTimeout,n.abtSigninState,n.abtSessionId,n.abtDisableTrackEvents)}();var st=function(e,t){var n=Object(i.b)();t.DisableLazyLoading&&(n.loadChunk("notifications").catch(function(e){return Object(i.d)().exception("OnDemandPackageLoadError",6,e,"notifications")}),n.loadChunk("docsmodule").catch(function(e){return Object(i.d)().exception("OnDemandPackageLoadError",6,e,"docsmodule")}),n.loadChunk("extraflexpane").catch(function(e){return Object(i.d)().exception("OnDemandPackageLoadError",6,e,"extraflexpane")})),Object(i.a)().unsubscribe("ShellDataUpdated",st)},ut=function(e){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(t){if(e){var n={messageType:"ShellCacheMessage",resourcesToCache:[]};e.Strings.StringsJsonUrl&&n.resourcesToCache.push(e.Strings.StringsJsonUrl),e.ShellResources&&("string"==typeof e.ShellResources.bootstrapper&&n.resourcesToCache.push(e.ShellResources.bootstrapper),"string"==typeof e.ShellResources.core&&n.resourcesToCache.push(e.ShellResources.core),"string"==typeof e.ShellResources.plus&&n.resourcesToCache.push(e.ShellResources.plus),e.ShellResources.notifications&&"string"==typeof e.ShellResources.notifications&&n.resourcesToCache.push(e.ShellResources.notifications),"string"==typeof e.ShellResources.responsive&&n.resourcesToCache.push(e.ShellResources.responsive)),navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage(n)}})};Object(i.a)().subscribe("ShellDataUpdated",st,!0),setTimeout(function(){"serviceWorker"in navigator&&Object(i.a)().subscribe("BootInfoFullReady",ut,!0)},1e4),Object(i.a)().invoke("PlusLoaded"),Object(i.d)().perfMarker("shell_plus_executioncomplete")},127:function(e,t){
// 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 n=n||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>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>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=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;n1&&(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;n255)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;w.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>>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=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,T,_={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],T=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;i6&&d%n==4&&_(t);var h=l(I(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)_(n),a(n),u(n),p(n,r,4*t*4);return _(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),C(n),p(n,r,4*t*4),c(n);return o(n),C(n),p(n,r,0),n},clear:function(){},keyLength:t,blockSize:128}}},C=C||{};C.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=0&&(e[t]+=1,e[t]>=256&&(e[t]=0),!e[t]);t-=1);}function c(){e=s.getVector(32),t=s.getVector(16),n=32,i=48,a=1}function l(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=65536)throw new Error("too much random requested");if(a>o)throw new Error("Reseeding is required");if(r&&r.length>0){for(;r.length=0;t-=1)o[t].isWebWorker===e&&(o[t].terminate(),o.splice(t,1))}(!a);for(var e=0;e0){var t=s.shift();m(t.operation,t.data)}else(function(){for(var e=0,t=0;tr&&l(e)}function h(e){var n;if(a)try{(n=new Worker(t)).postMessage({prngSeed:w.getBytes(48)}),n.isWebWorker=!0}catch(e){a=!1,y.forceSync=!0,(n=i()).isWebWorker=!1}else(n=i()).isWebWorker=!1;return n.operation=e,n.busy=!1,n.onmessage=function(e){for(var t=n.operation,i=0;i=e)d(t,i);else{if(null===r&&(r=h(t)),null===r)throw d(t,i),new Error("could not create new worker");r.operation=t,r.busy=!0,v(r,i)}}function m(e,t){var n=p(e);n?v(n,t):g(e,t)}function v(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:g,continueJob:m,abortJob:function(e){var t=p(e);t&&l(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=n&&l.stopCollectors()}var l={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;c([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();c([255&e,e>>8&255,e>>16&255,e>>24&255])}};return{init:function(){if(u(),!a)try{l.startCollectors()}catch(e){}},reseed:function(e){i.reseed(e)},read:function(e){if(!r)throw new Error("Entropy pool is not initialized.");var t=i.getBytes(e);return u(),t}}}).init();var N=E.read(48);w.init(N)}return P}();e.exports=n},129: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;r0&&(e=e.substr(0,n)),e+t}return"/"!==e.charAt(e.length-1)&&(e+="/"),e+t}function A(e,t){void 0===t&&(t=!1),t&&b(e,"url");var n=e.indexOf("://");return(n=e.indexOf("/",n+3))>0&&(e=e.substr(0,n)),e.substr(0,y.length).toLowerCase()===y&&":443"===e.substr(e.length-4,4)&&(e=e.substr(0,e.length-4)),e}function O(e){var t=A(e),n=e.indexOf("?");return n>t.length+1?e.substring(t.length+1,n):e.substring(t.length+1,e.length)}function D(e){return(e=A(e)).substr(0,y.length).toLowerCase()===y&&(e=e.substr(y.length)),e.toLowerCase()}function w(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 E(){if(!("XMLHttpRequest"in window))throw new s.b(u.c,-2003);return new XMLHttpRequest}function P(e){if(null==e)throw _("requestInfo");if(v(e.url,"requestInfo.url",c,!0),v(e.body,"requestInfo.body",c,!1),v(e.success,"requestInfo.success",p,!1),v(e.error,"requestInfo.error",p,!1),v(e.timeout,"requestInfo.timeout",d,!1),v(e.method,"requestInfo.method",c,!1),v(e.binaryStringRequestBody,"requestInfo.BinaryRequestBody",l,!1),v(e.binaryStringResponseBody,"requestInfo.BinaryResponseBody",l,!1),C(e.method)?e.method="GET":e.method=e.method.toUpperCase(),null==e.timeout&&(e.timeout=o.a.DefaultTimeout),e.timeout<0)throw _("requestInfo.timeout");if(C(e.url))throw _("requestInfo.url")}function N(e){for(var t="",n=new Uint8Array(e),i=0;i0&&(t=e.substr(n+1,e.length)),t}function L(e){var t={};if(null!=e)for(var n=new RegExp("\r?\n"),i=0,r=e.split(n);i0){var s=a.substr(0,o),u=a.substr(o+1);s=x(s),u=x(u),t[s.toUpperCase()]=u}}}return t}function x(e){return e.replace(/^\s+|\s+$/g,"")}function j(e,t){return 0===e.lastIndexOf(t,0)}function U(e,t){return e.lastIndexOf(t)===e.length-t.length}function M(){if(!("ArrayBuffer"in window))throw Object(r.d)().tag("RequestExecutor_ArrayBufferNotSupported",6),new s.b(u.b,-2003);if(!("Uint8Array"in window))throw Object(r.d)().tag("RequestExecutor_Uint8ArrayNotSupported",6),new s.b(u.b,-2003);if(!("BlobBuilder"in window||"MozBlobBuilder"in window||"Blob"in window))throw Object(r.d)().tag("RequestExecutor_BlobBuilderNotSupported",6),new s.b(u.b,-2003)}function B(e){if(window.addEventListener)return window.addEventListener("message",e,!1),!0;throw new s.b(u.f,-2002)}function W(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.d)().tag("RequestExecutor_NoErrorCallback",6,t.toString(),n)}function F(e){return Q(e,!0,!0)}var q=224,H=192,G=240,z=128,K=55296,V=64512,Z=65536;function Q(e,t,n){var i="";if(C(e)||void 0===e||0===e.length)return"";for(var r=0;r=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+="%"+(H|a>>6).toString(16).toUpperCase(),i+="%"+(z|63&a).toString(16).toUpperCase();else if((a&V)!==K)i+="%"+(q|a>>12).toString(16).toUpperCase(),i+="%"+(z|(4032&a)>>6).toString(16).toUpperCase(),i+="%"+(z|63&a).toString(16).toUpperCase();else if(r>18).toString(16).toUpperCase(),i+="%"+(z|(258048&a)>>12).toString(16).toUpperCase(),i+="%"+(z|(4032&a)>>6).toString(16).toUpperCase(),i+="%"+(z|63&a).toString(16).toUpperCase()}}return i}function X(e){return document.getElementById(e)}function J(e){return"arraybuffer"===e.responseType?e.response?e.response.byteLength:0:e.responseText?e.responseText.length:0}},142:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
/**
* AWTTransmissionManagerCore.ts
* @author Abhilash Panwar (abpanwar)
* @copyright Microsoft 2017
*/
var i=n(207),r=n(64),a=n(256),o=n(205),s=n(156),u=n(202),c=n(121),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<=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-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},144:function(e,t,n){"use strict";var i=n(0),r=n(4),a=n(19),o=n(1),s=n(176),u=n(236),c=n.n(u),l=n(235),p=n.n(l),d=n(181),f=n.n(d),h=n(180),g=n.n(h),m=n(179),y=n.n(m),v=n(234),S=n.n(v),b=n(178),T=n.n(b),_=n(124),C=n(42),I=n(57),A=n(113),O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__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(s.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=c()({Header:Object(_.getJsonRequestHeader)(),Body:p()(o)});r.SuiteApi.Service.callSuiteServiceAction("GetReminders",s).then(function(e){null==e||null==e.Body||null==e.Body.Reminders||0===e.Body.Reminders.length?i([]):i(e.Body.Reminders)}).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(S()({})):new Promise(function(t,i){var r=e.map(function(e){return T()({ActionType:0,ItemId:f()(e)})}),a=g()({Header:Object(_.getJsonRequestHeader)(),Body:y()({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 T()({ActionType:1,ItemId:f()(e),NewReminderTime:I.a.generateISO8601DateTimeMsStringWithOffset(I.a.parseISO8601DateTime(t))})}),o=g()({Header:Object(_.getJsonRequestHeader)(),Body:y()({ReminderItemActions:a})});i.SuiteApi.Service.callSuiteServiceAction("PerformReminderAction",o).then(function(e){n(e.Body)}).catch(function(e){return r(e)})})},t}(C.a),D=n(3),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.initializeComponent=function(){},t.prototype.getMruDocuments=function(e,t){var n=this;return new Promise(function(i,a){var s=Object(D.I)("{0}?rs={1}&show={2}&sort=date",n.SuiteApi.Configuration.MruOauthEndpointUrl,n.SuiteApi.Configuration.CultureName,e.toString());null!=t&&(s+="&apps="+t);var u={method:r.b.GET,resource:n.SuiteApi.Configuration.MruOauthResourceUrl,url:s};n.SuiteApi.Service.callEndpointWithOauthToken(u).then(function(e){Object(o.d)().perfMarker("shell_mru_fetch_complete"),i(e)}).catch(function(e){r.i.genericServiceRejection("Documents_GetMRUDocuments_Failed",6,e,a)})})},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:r.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){r.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}(C.a),E=function(){function e(){var e=r.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=r.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:r.j.Instance.suiteServiceHostPageBaseUrl,requestObject:e,success:function(e){},error:function(e,t,n){}}},e}(),P=function(){function e(){}return e.prototype.subscribe=function(e,t){window.owaNotification.subscribe(e,t)},e.prototype.handleIFrameNotificationMessage=function(e){},e}(),N=n(37),R=r.f.SuiteServiceApiRelativePath+"Notifications/",k=r.f.SuiteServiceApiRelativePath+"Notifications/MarkAsSeen/",L=r.f.SuiteServiceApiRelativePath+"Notifications/SystemAlerts",x=function(e){function t(t){var n=e.call(this)||this;return n.initialized=!1,n.workloadID=t,n}return Object(i.__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(N.c)(this.workloadID)?void 0===window.owaNotification?window.addEventListener("owaNotificationLoaded",this.owaNotificationLoaded,!1):this.owaNotificationLoaded():(this.notificationHandler=new E,r.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 P,this.initialized=!0},t.prototype.areSuiteNotificationsEnabled=function(){return r.j.Instance.configuration.UserHasExchangeLicense},t.prototype.createSuiteNotification=function(e){var t=this;return new Promise(function(n,i){t.SuiteApi.Service.callO365SuiteServiceAction(R,e,r.b.POST).then(function(e){null!=e&&n(e)}).catch(function(e){return r.i.genericServiceRejection("Notifications_CreateSuiteNotification_Failed",4,e,i)})})},t.prototype.acknowledgeReceipt=function(e){var t=this;return new Promise(function(n,i){D.C.throwOnNullOrUndefined(e,"notificationId"),t.SuiteApi.Service.callO365SuiteServiceAction(R+encodeURIComponent(e),{Status:2},r.b.PATCH).then(function(){return n()}).catch(function(e){return r.i.genericServiceRejection("Notifications_AcknowledgeReceipt_Failed",4,e,i)})})},t.prototype.snoozeNotification=function(e,t){var n=this;return new Promise(function(i,a){D.C.throwOnNullOrUndefined(e,"notificationId"),D.C.throwOnNullOrUndefined(t,"snoozeDurationInMinutes"),n.SuiteApi.Service.callO365SuiteServiceAction(R+encodeURIComponent(e),{Status:5,NewNotificationTime:I.a.UTCNow.addMinutes(t).getNativeDateTime()},r.b.PATCH).then(function(){return i()}).catch(function(e){return r.i.genericServiceRejection("Notifications_SnoozeNotification_Failed",4,e,a)})})},t.prototype.getSuiteNotification=function(e){var t=this;return new Promise(function(n,i){var a=null==e?"":encodeURIComponent(e);t.SuiteApi.Service.callO365SuiteServiceAction(R+a,null,r.b.GET).then(function(t){var i=[];null!=t&&null!=t.Notifications&&(i=t.Notifications.filter(function(t){return 6!==t.Status||null!=e})),n(i)}).catch(function(e){return r.i.genericServiceRejection("Notifications_GetSuiteNotification_Failed",4,e,i)})})},t.prototype.getSuiteNotificationHistory=function(){return this.getSuiteNotification(null)},t.prototype.getSystemAlertNotifications=function(){var e=this;return new Promise(function(t,n){e.SuiteApi.Service.callO365SuiteServiceAction(L,null,r.b.GET).then(function(e){null!=e&&null!=e.Notifications?t(e.Notifications):t([])}).catch(function(e){return r.i.genericServiceRejection("Notifications_GetSystemAlertNotifications_Failed",4,e,n)})})},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){r.i.genericServiceRejection("Notifications_GetSystemAlertsFromAdmin_Failed",4,e,n)})})},t.prototype.markAsSeen=function(e){var t=this;return new Promise(function(n,i){D.C.throwOnNullOrUndefined(e,"latestSeenNotification"),D.C.throwOnNullOrUndefined(e.CreationDate,"latestSeenNotification.CreationDate"),t.SuiteApi.Service.callO365SuiteServiceAction(k,e.CreationDate,r.b.POST).then(function(){Object(o.d)().tag("Notifications_MarkAsSeen_Success",1),n()}).catch(function(e){return r.i.genericServiceRejection("Notifications_MarkAsSeen_Failed",4,e,i)})})},t.prototype.dismissNotification=function(e){var t=this;return new Promise(function(n,i){D.C.throwOnNullOrUndefined(e,"notificationId"),t.SuiteApi.Service.callO365SuiteServiceAction(R+encodeURIComponent(e),{Status:6},r.b.PATCH).then(function(){return n()}).catch(function(e){return r.i.genericServiceRejection("Notifications_DismissNotification_Failed",4,e,i)})})},t}(C.a),j=n(233),U=n.n(j),M=n(119),B=n(20),W=n(25),F=n(120),q=function(){function e(e){this.userTheme=e}return e.prototype.GetUserThemeId=function(){return Object(o.f)().getUserThemesManager().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.cb)(e))},e}(),H=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.initializeComponent=function(){var e=this;Object(o.f)().getUserThemesManager().setUserThemesHandler(new q(this)),this.SuiteApi.User.IsInitialized&&this.SuiteApi.Configuration.IsConsumer&&Object(o.a)().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(o.f)().getUserThemesManager().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()===W.DefaultThemeId&&t&&(r="basewithofficethemepreferred"),n?M.b(function(){return i.setUserThemeInExchange(r,!1)},2):M.b(function(){return i.setUserThemeInWCSS(e,e.toLowerCase()===W.DefaultThemeId&&t).then(function(){return M.b(function(){return i.setUserThemeInExchange(r,!0)},2)})},2)},t.prototype.setUserThemeInWCSS=function(e,t){var n=this;return new Promise(function(i,a){var o={url:Object(B.b)(n.SuiteApi.Configuration.IsConsumer?"{0}/api/settings/usertheme":"{0}/api/settings/theme",n.SuiteApi.Configuration.TokenFactoryIframeOrigin),resource:n.SuiteApi.Configuration.TokenFactoryIframeOrigin,method:r.b.PUT,headers:F.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){r.i.genericServiceRejection("Settings_SetUserThemeInWCSS_Failed",6,e,a)})})},t.prototype.setUserThemeSettingsInWCSS=function(e){var t=this;return new Promise(function(n,i){var a={url:Object(B.b)("{0}/api/settings/usertheme",t.SuiteApi.Configuration.TokenFactoryIframeOrigin),resource:t.SuiteApi.Configuration.TokenFactoryIframeOrigin,method:r.b.PATCH,headers:F.b,body:JSON.stringify({IsDarkmode:e})};t.SuiteApi.Service.callEndpointWithOauthToken(a).then(function(e){n({O365Success:!0})}).catch(function(e){r.i.genericServiceRejection("Settings_SetUserThemeSettingsInWCSS_Failed",6,e,i)})})},t.prototype.setUserThemeInExchange=function(e,t){var n=this;return new Promise(function(i,a){var o={ThemeId:e,SkipO365Call:t},s={request:U()(o)};n.SuiteApi.Service.callSuiteServiceAction("SetUserTheme",s).then(function(e){i({OwaSuccess:e.OwaSuccess,O365Success:e.O365Success||t})}).catch(function(e){r.i.genericServiceRejection("Settings_SetUserThemeInExchange_Failed",6,e,a)})})},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}(C.a),G=n(232),z=n.n(G),K=n(231),V=n.n(K),Z=n(210),Q=null,X=r.f.SuiteServiceApiRelativePath+"LanguageTimezone",J=null,Y=null,$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.initializeComponent=function(){null!=(Q=this.SuiteApi.Configuration.GraphOauthResourceUrl)&&(Q=Object(D.I)("{0}/{1}",Q,"v1.0/me"),J=Object(D.I)("{0}/{1}",Q,"outlook/supportedLanguages"),Y=Object(D.I)("{0}/{1}",Q,"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:Y,method:r.b.GET};e.SuiteApi.Service.callEndpointWithOauthToken(i).then(function(e){t(e.value)}).catch(function(e){r.i.genericServiceRejection("Settings_GetTimeZoneChoices_Failed",6,e,n)})})},t.prototype.getDateTimeFormats=function(e){var t=this;return new Promise(function(n,i){var a={url:Object(D.I)("{0}/api/settings/datetimeformats?cultureName={1}",t.SuiteApi.Configuration.TokenFactoryIframeOrigin,e),resource:t.SuiteApi.Configuration.TokenFactoryIframeOrigin,method:r.b.GET,headers:F.b};t.SuiteApi.Service.callEndpointWithOauthToken(a).then(n).catch(function(e){r.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 a={url:Q,method:r.b.PATCH,headers:F.a,body:JSON.stringify({preferredLanguage:e})};t.SuiteApi.Service.callEndpointWithOauthToken(a).then(function(e){n()}).catch(function(e){r.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 a={Language:e.CurrentCultureName,TimeZone:e.CurrentTimeZone,DateFormat:e.CurrentDateFormat,TimeFormat:e.CurrentTimeFormat},o=V()({Header:Object(_.getJsonRequestHeader)(),Options:a});t.SuiteApi.Service.callSuiteServiceActionWithAdditionalHeaders("SetMailboxRegionalConfiguration",o,null).then(function(i){t.setSuiteLanguage(e.CurrentCultureName),n()}).catch(function(e){r.i.genericServiceRejection("Settings_SetOwsOwaLanguageAndTimeZone_Failed",6,e,i)})}):new Promise(function(n,i){e.CurrentCultureLcid=null,t.SuiteApi.Service.callO365SuiteServiceAction(X,e,r.b.PUT).then(n).catch(function(e){r.i.genericServiceRejection("Settings_SetLanguageAndTimeZoneViaOwa_Failed",6,e,i)})})},t.prototype.getSuiteLanguageChoices=function(){return new Promise(function(e,t){Z?e(Z):t(new Error("Supported languages not found"))})},t.prototype.getOwaLanguageChoices=function(){var e=this;return new Promise(function(t,n){var i={url:J,method:r.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){r.i.genericServiceRejection("Settings_GetOwaLanguageChoices_Failed",6,e,n)})})},t.prototype.getSuiteLanguage=function(){var e=this;return new Promise(function(t,n){var i={url:Q,method:r.b.GET};e.SuiteApi.Service.callEndpointWithOauthToken(i).then(function(e){var n={CurrentCultureName:e.preferredLanguage};t(n)}).catch(function(e){r.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(_.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){r.i.genericServiceRejection("Settings_GetOwsOwaLanguageAndTimeZone_Failed",6,e,n)})}):new Promise(function(t,n){e.SuiteApi.Service.callO365SuiteServiceAction(X,null,r.b.GET).then(function(e){var n=e.Body.Configuration;t(n)}).catch(function(e){r.i.genericServiceRejection("Settings_GetOwaLanguageAndTimeZone_Failed",6,e,n)})})},t}(C.a),ee=n(128),te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__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(ee.f)(t,e)),n(i)}).catch(function(e){Object(o.d)().exception("Settings_GetNotificationPreferences_Failed",6,e),i(e)})})},t.prototype.setNotificationPreferences=function(e){var t=this;return new Promise(function(n,i){var a=0;e.EnableNewItemNotify&&(a|=2),e.EnableNewItemSoundNotify&&(a|=1);var o={body:{EnableReminders:e.EnableReminders,EnableReminderSound:e.EnableReminderSound,NewItemNotify:a},header:null};return t.SuiteApi.Service.callSuiteServiceAction("SetNotificationSettings",o).then(n).catch(function(e){r.i.genericServiceRejection("Settings_SetNotificationPreferences_Failed",6,e,i)})})},t}(C.a),ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.initializeComponent=function(){this.userTheme=null==this.SuiteApi.Configuration.IUserThemeOverride?new H:this.SuiteApi.Configuration.IUserThemeOverride,this.languageAndTimeZone=null==this.SuiteApi.Configuration.ILanguageAndTimeZoneOverride?new $:this.SuiteApi.Configuration.ILanguageAndTimeZoneOverride,this.notificationPreferences=null==this.SuiteApi.Configuration.INotificationPreferencesOverride?new te: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}(C.a),ie=n(109),re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__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:r.c.OwaUserConfig,timeout:1e4,success:function(n){e.userConfig=n.responseObject,"GetOwaUserConfiguration"===r.j.Instance.configuration.StartupActionName&&e.SuiteApi.Service.setStartupActionCompleted(),e.onOwaUserConfigSucceeded(t)},error:function(i,a,s){Object(o.d)().exception("GetOwaUserConfiguration_ContextUnavailable",4,new r.a(s,a)),e.SuiteApi.Service.callSuiteServiceAction("GetOwaUserConfiguration",{}).then(function(i){if(e.userConfig=i,null!=e.userConfig&&""!==e.userConfig)e.onOwaUserConfigSucceeded(t);else{var a=new r.a("null OwaUserConfiguration received from server");Object(o.d)().exception("User_GetOwaUserConfiguration_NullConfig",4,a),n(a)}}).catch(function(e){r.i.genericServiceRejection("User_GetOwaUserConfiguration_Failed",4,e,n)})}},a=r.e.SuiteServiceInstance;null==a?n(new r.a("SuiteService",-1011)):a.getOwaUserConfiguration(i)});var t=window.setTimeout(function(){return Object(o.d)().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){r.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){r.i.genericServiceRejection("User_GetOwaUserOofSettings_Failed",6,e,n)})})},t.prototype.getPhotoFromGraph=function(){var e=this,t={method:r.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(""):r.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],a=n[1],o={method:r.b.PUT,headers:{"Content-Type":i},timeout:7e3,body:window.atob(a),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){r.i.genericServiceRejection("User_UploadPhotoToGraph_Failed",6,e,n)})})},t.prototype.onOwaUserConfigSucceeded=function(e){null!=this.userConfig.SessionSettings?r.j.Instance.MailboxGuid=this.userConfig.SessionSettings.MailboxGuid:Object(o.d)().tag("User_GetOwaUserConfiguration_SessionSettingsNull",4),e(this.userConfig)},t}(C.a);n.d(t,"a",function(){return ae});var ae=function(){function e(e){this.configuration=e,this.StartupActionName="GetOwaUserConfiguration",this.validateConfiguration(e),this.owaUrlSpecialHandling(e),r.j.Initialize(Object(i.__assign)(Object(i.__assign)({},e),{StartupActionName:this.StartupActionName})),this.service=r.g.Instance,this.storage=null==e.IStorageOverride?new ie.a:e.IStorageOverride,this.webShellStorage=null==e.IWebShellStorageOverride?new ie.e:e.IWebShellStorageOverride,this.user=null==e.IUserOverride?new re:e.IUserOverride,this.calendar=null==e.ICalendarOverride?new O:e.ICalendarOverride,this.notification=null==e.INotificationOverride?new x(e.WorkloadId):e.INotificationOverride,this.settings=null==e.ISettingsOverride?new ne:e.ISettingsOverride,this.documentsModule=null==e.IDocumentsOverride?new w:e.IDocumentsOverride,this.service=r.g.Instance,e.UserHasExchangeLicense?e.SuiteServiceCallsDisabled?this.service.blockSuiteServiceCalls(r.h.Brs):e.IsPwa&&this.service.blockSuiteServiceCalls(r.h.Pwa):this.service.blockSuiteServiceCalls(r.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),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,"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(o.d)().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(){r.j.isUnitTestMode&&(e.instance=null,r.e.resetAllInstancesForTesting())},e.prototype.validateConfiguration=function(e){a.throwOnNullOrUndefined(e,"configuration"),a.throwOnNullOrUndefined(e.SuiteServiceUrl,"SuiteApiConfiguration.SuiteServiceUrl")},e.prototype.owaUrlSpecialHandling=function(e){if(e.IsOwa){var t=e.SuiteServiceUrl.toLowerCase(),n=r.f.getUrlDomainPart(t),i=r.f.getUrlDomainPart(window.location.href).toLowerCase();n!==i&&(e.SuiteServiceUrl=t.replace(n,i))}},e}()},145: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})},146:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(14),r=n(105),a=n(23),o=n(26),s=n(116),u=n(137),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.i,-2007);p=decodeURIComponent(p)}var d=p.split("&");if(2!==d.length)throw new a.a(o.i,-2007);if(s=d[0],c=d[1],i.isNullOrEmptyString(t.UserId))throw new a.a(o.i,-2004);var f=window.sessionStorage;if(null==f)throw new a.a(o.i,-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.doDeletes(t,l,f),e.doWritesAndReads(t,s,c,f,l,n)}).catch(function(e){var t=null==e?o.i: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.i,-2005);if(e.hasRegisteredLocalStorageEvent||(window.addEventListener("storage",function(){},!1),e.hasRegisteredLocalStorageEvent=!0),t.Clear)throw new a.a(o.f,-2010);var r={};if(null!=t.Deletes)try{for(var u=0,c=t.Deletes;u-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.d)().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.d)().exception("Service_ProxyIdentityProvider_ReqExecutorFactoryErr",6,c),c}u.executeIdentityProviderRequest(s)})},e.prototype.callSuiteServiceWithRetry=function(t,n,i,r){var a=this,s={};if(null!=n)for(var u=0,c=Object.keys(n);u-1?(this.blockSuiteServiceCalls(c.a.LanguageNotSet,e),Object(i.a)().invoke("CultureNotSet")):"InvalidMailbox"===e?this.blockSuiteServiceCalls(c.a.InvalidMailbox,e):"ShardMailbox"===e&&this.blockSuiteServiceCalls(c.a.ShardMailbox,e)},e.prototype.getExchangeServiceToCall=function(e){if(null!=e){var t=u.getUrlPath(e),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.d)().exception("Service_ExchangeServiceAcquireFail",6,r),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=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}()},16: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}()},160:function(e,t,n){"use strict";var i=n(0),r=n(37),a=n(3),o=n(1),s=n(145);var u,c=n(15),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],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,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 h});var f="default";function h(e,t,n){var u,p,h=((u={})[c.a.LanguageAndRegion]=function(e){return 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.e)();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&&!0!==e.CSSExperiencesEnabled}(e),u);p=e.CurrentMainLinkElementID&&"shellofficedotcom"===e.CurrentMainLinkElementID.toLowerCase()?"iwapp":e.CurrentMainLinkElementID&&"shellofficepwa"===e.CurrentMainLinkElementID.toLowerCase()?"officepwa":e.WorkloadId.toLowerCase();var g=null!=t?d[t].ChildCardIds:l[p]?l[p]:l[f],m=e.IsConsumerShell;return g?g.filter(function(t){return!e.IsGuestMode||t===c.a.NavBarDataLinks}).filter(function(e){return!m||d[e].EnableConsumer}).filter(function(e){return!h[e]}).map(function(e){return Object(i.__assign)({Id:e},d[e])}):[]}},161:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(1),r=n(16),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.d)().tag("GetAccessToken_Empty",6),n({responseType:2}))},s=function(e){Object(i.d)().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}()},172: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={}))},174:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
/**
* AWTAutoCollection.ts
* @author Abhilash Panwar (abpanwar)
* @copyright Microsoft 2017
*/
var i=n(121),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",T="Linux",_=/(windows|win32)/i,C=/ arm;/i,I=/windows\sphone\s\d+\.\d+/i,A=/(macintosh|mac os x)/i,O=/(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,w=/android/i,E={5.1:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1","10.0":"10"},P=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){e&&(this._getData(r)!==e&&(this._saveData(r,e),this._saveData(a,i.getISOString(new Date))),this._setFirstLaunchTime(this._getData(a)))},e._autoCollectDeviceId=function(){var e=this._getData(r);e?this._setFirstLaunchTime(this._getData(a)):(e=i.newGuid(),this.checkAndSaveDeviceId(e)),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)?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){return t===o?this._getIeVersion(e):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(C)?v:e.match(O)?S:e.match(w)?b:e.match(D)?T:e.match(A)?m:e.match(_)?g:"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?E[n[1]]?E[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=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},176: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}},177:function(e,t,n){var i=n(242);"string"==typeof i&&(i=[[e.i,i,""]]);n(29)(i,{});i.locals&&(e.exports=i.locals)},178: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)}},179: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)}},180: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)}},181: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)}},187: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={}))},193: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={}))},194: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(111),r=n(32);function a(e){return{type:r.h,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}}},199:function(e,t,n){"use strict";n.d(t,"b",function(){return m}),n.d(t,"a",function(){return v});var i,r=n(0),a=n(2),o=n(3),s=n(1),u=n(17),c=n(147),l=n(66),p=n(230),d=n(22),f=n(5),h=n(21),g=[!1,!1],m=function(e){if(!(e instanceof KeyboardEvent&&"keydown"===e.type&&13!==e.which&&32!==e.which&&18!==e.which&&40!==e.which))if(e instanceof MouseEvent)y(e);else if(e instanceof KeyboardEvent){switch(e.which){case 18:g[0]="keydown"===e.type;break;case 40:g[1]="keydown"===e.type;break;case 13:case 32:y(e)}if(!0!==g[0]||!0!==g[1])return;y(e),g=[!1,!1]}};function y(e){e.preventDefault(),window.open(i),Object(s.d)().click("ChatButton","Chat",null,null,"Default chat web page")}var v=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.b,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.g,{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.b],c.a.CLICK+" "+c.a.KEYDOWN,m)},t}(a.Component)},200:function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return u});var i=n(1),r=n(25),a="office",o=[r.DefaultThemeId,a,r.ContrastThemeId,"rainbow","ribbon","unicorn","supplies","backpack","fish","leaf","mountain","beach","circuit","blueprint","far","whale","super","jelly","wrld"],s=function(e,t){var n=e[t];return delete e[t],n};function u(e,t,n,u){for(var c={},l=0,p=e;l0&&(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._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}},e}();t.default=l},203:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),
/**
* Version.ts
* @author Abhilash Panwar (abpanwar)
* @copyright Microsoft 2017
* File for SDK version.
*/
t.Version="1.6.1",t.FullVersionString="AWT-Web-JS-"+t.Version},204: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(254),r=n(64),a=n(129),o=n(121),s=function(){function e(){}return e.getPayloadBlob=function(e,t){var n,s=new i.IO.MemoryStream,u=new i.CompactBinaryProtocolWriter(s);for(var c in u._WriteFieldBegin(i._BondDataType._BT_MAP,3,null),u._WriteMapContainerBegin(t,i._BondDataType._BT_STRING,i._BondDataType._BT_LIST),e)if(e.hasOwnProperty(c)){u._WriteString(c);var l=e[c];u._WriteContainerBegin(1,i._BondDataType._BT_STRUCT),u._WriteFieldBegin(i._BondDataType._BT_STRING,2,null),u._WriteString("act_default_source"),u._WriteFieldBegin(i._BondDataType._BT_STRING,5,null),u._WriteString(o.newGuid()),u._WriteFieldBegin(i._BondDataType._BT_INT64,6,null),u._WriteInt64(o.numberToBondInt64(Date.now())),u._WriteFieldBegin(i._BondDataType._BT_LIST,8,null);var p=s._GetBuffer().length+1;u._WriteContainerBegin(e[c].length,i._BondDataType._BT_STRUCT);for(var d=s._GetBuffer().length-p,f=0;f2936012)a.default.eventsRejected([l[f]],r.AWTEventsRejectedReason.SizeLimitExceeded),l.splice(f--,1),s._GetBuffer().splice(h),this._addNewDataPackageSize(l.length,s,d,p);else if(s._GetBuffer().length>2936012){s._GetBuffer().splice(h),n||(n={}),e[c]=l.splice(0,f),n[c]=l,this._addNewDataPackageSize(e[c].length,s,d,p);break}}u._WriteStructEnd(!1)}return u._WriteStructEnd(!1),{payloadBlob:s._GetBuffer(),remainingRequest:n}},e._addNewDataPackageSize=function(e,t,n,r){for(var a=i._Encoding._Varint_GetBytes(i.Number._ToUInt32(e)),o=0;o0)g[y]=S,m++;else if(S.pii>0)f[y]=S,h++;else switch(S.type){case r.AWTPropertyType.String:n[y]=S.value,a++;break;case r.AWTPropertyType.Int64:s[y]=S.value,u++;break;case r.AWTPropertyType.Double:c[y]=S.value,l++;break;case r.AWTPropertyType.Boolean:p[y]=S.value,d++}}if(a)for(var y in t._WriteFieldBegin(i._BondDataType._BT_MAP,13,null),t._WriteMapContainerBegin(a,i._BondDataType._BT_STRING,i._BondDataType._BT_STRING),n)if(n.hasOwnProperty(y)){var v=n[y];t._WriteString(y),t._WriteString(v.toString())}if(h)for(var y in t._WriteFieldBegin(i._BondDataType._BT_MAP,30,null),t._WriteMapContainerBegin(h,i._BondDataType._BT_STRING,i._BondDataType._BT_STRUCT),f)if(f.hasOwnProperty(y)){var S=f[y];t._WriteString(y),t._WriteFieldBegin(i._BondDataType._BT_INT32,1,null),t._WriteInt32(1),t._WriteFieldBegin(i._BondDataType._BT_INT32,2,null),t._WriteInt32(S.pii),t._WriteFieldBegin(i._BondDataType._BT_STRING,3,null),t._WriteString(S.value.toString()),t._WriteStructEnd(!1)}if(d)for(var y in t._WriteFieldBegin(i._BondDataType._BT_MAP,31,null),t._WriteMapContainerBegin(d,i._BondDataType._BT_STRING,i._BondDataType._BT_BOOL),p)if(p.hasOwnProperty(y)){v=p[y];t._WriteString(y),t._WriteBool(v)}if(u)for(var y in t._WriteFieldBegin(i._BondDataType._BT_MAP,33,null),t._WriteMapContainerBegin(u,i._BondDataType._BT_STRING,i._BondDataType._BT_INT64),s)if(s.hasOwnProperty(y)){v=s[y];t._WriteString(y),t._WriteInt64(o.numberToBondInt64(v))}if(l)for(var y in t._WriteFieldBegin(i._BondDataType._BT_MAP,34,null),t._WriteMapContainerBegin(l,i._BondDataType._BT_STRING,i._BondDataType._BT_DOUBLE),c)if(c.hasOwnProperty(y)){v=c[y];t._WriteString(y),t._WriteDouble(v)}if(m)for(var y in t._WriteFieldBegin(i._BondDataType._BT_MAP,36,null),t._WriteMapContainerBegin(m,i._BondDataType._BT_STRING,i._BondDataType._BT_STRUCT),g)if(g.hasOwnProperty(y)){S=g[y];t._WriteString(y),t._WriteFieldBegin(i._BondDataType._BT_INT32,1,null),t._WriteInt32(S.cc),t._WriteFieldBegin(i._BondDataType._BT_STRING,2,null),t._WriteString(S.value.toString()),t._WriteStructEnd(!1)}t._WriteStructEnd(!1)},e.base64Encode=function(e){return i._Encoding._Base64_GetString(e)},e}();t.default=s},205:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
/**
* AWTStatsManager.ts
* @author Abhilash Panwar (abpanwar)
* @copyright Microsoft 2017
*/
var i=n(121),r=n(129),a=n(64),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.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},206:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
/**
* AWTLogger.ts
* @author Abhilash Panwar (abpanwar)
* @copyright Microsoft 2017
*/
var i=n(64),r=n(157),a=n(156),o=n(121),s=n(205),u=n(129),c=n(142),l=n(201),p=n(203),d=n(175),f=n(174),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){var i=e;if(i.id=o.newGuid(),i.apiKey=t,i.properties=i.properties||{},n)for(var r in i.properties)i.properties.hasOwnProperty(r)&&(i.properties[r]=o.sanitizeProperty(r,i.properties[r]),null===i.properties[r]&&delete i.properties[r]);return i},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},207: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"},208:function(e,t,n){"use strict";n.d(t,"c",function(){return s});var i=n(108),r=n(1),a=n(193);n.d(t,"a",function(){return a.a});var o=n(187);function s(){var e=function(){return n.e("notifications").then(n.bind(null,309)).catch(function(e){return Object(r.d)().exception("NotificationsPackage_LoadFail",6,e)})},t=Object(r.e)();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.a)().subscribe("ShellDataUpdated",function(t,n){(n.NotificationsEnabled||n.ChatEnabled)&&e()},!0)}n.d(t,"b",function(){return o.a})},209:function(e,t,n){var i;
/*
* Date Format 1.2.3
* (c) 2007-2009 Steven Levithan
* MIT license
*
* Includes enhancements by Scott Trenda
* and 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"](),T=e[f+"Milliseconds"](),_=n?0:e.getTimezoneOffset(),C=l(e),I=p(e),A={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(T,3),L:c(Math.round(T/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:(_>0?"-":"+")+c(100*Math.floor(Math.abs(_)/60)+Math.abs(_)%60,4),S:["th","st","nd","rd"][h%10>3?0:(h%100-h%10!=10)*h%10],W:C,N:I};return t.replace(a,function(e){return e in A?A[e]:e.slice(1,e.length-1)})});function c(e,t){for(e=String(e),t=t||2;e.length=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},246: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(){this._allowRequestSending=!0,this._shouldAddClockSkewHeaders=!0,this._isFirstRequest=!0,this._clockSkewHeaderValue="use-collector-delta",this._clockSkewSet=!1}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}();t.default=i},247: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;rDate.now()||(delete this._killedTokenDictionary[e],!1)},e}();t.default=i},248: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},249:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
/**
* microsoft.bond.io.ts
* Copyright: Microsoft 2016
*/
var i=n(155),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},250: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},251: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;p0;)(u*=2)>=1?(l[++p]=1,--u):l[++p]=0;for(var d=0;dd&&(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>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},252:function(e,t,n){"use strict";
/**
* microsoft.bond.encoding.ts
* Copyright: Microsoft 2016
*/Object.defineProperty(t,"__esModule",{value:!0});var i=n(155),r=n(251),a=n(250);t._Utf8_GetBytes=function(e){for(var t=[],n=0;n>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>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}},253: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={}))},254:function(e,t,n){"use strict";
/**
* microsoft.bond.ts
* Copyright: Microsoft 2016
*/Object.defineProperty(t,"__esModule",{value:!0});var i=n(253);t._BondDataType=i._BondDataType;var r=n(252);t._Encoding=r;var a=n(249);t.IO=a;var o=n(155);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},255:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(64),r=n(204),a=n(248),o=n(247),s=n(246),u=n(203),c=n(121),l=n(129),p=n(142),d="POST",f=function(){function e(e,t,n,i){var r=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._clockSkewManager=new s.default,this._useBeacons=!1,this._activeConnections=0,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,a,o){if(c.useXDomainRequest()){var s=new XDomainRequest;s.open(d,e),s.onload=function(){a(200,null)},s.onerror=function(){i(400,null)},s.ontimeout=function(){n(500,null)},s.send(t)}else if(c.isReactNative())fetch(e,{body:t,method:d}).then(function(e){var t={};e.headers&&e.headers.forEach(function(e,n){t[n]=e}),a(e.status,t)}).catch(function(e){i(0,{})});else{var u=new XMLHttpRequest;u.open(d,e,!o),u.onload=function(){a(u.status,r._convertAllHeadersToMap(u.getAllResponseHeaders()))},u.onerror=function(){i(u.status,r._convertAllHeadersToMap(u.getAllResponseHeaders()))},u.ontimeout=function(){n(u.status,r._convertAllHeadersToMap(u.getAllResponseHeaders()))},u.send(t)}}})}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;if(void 0===a&&(a=!1),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;g0?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(null,{},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;g0||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;n0)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},257: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)}},258: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)}},259: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)}},26:function(e,t,n){"use strict";n.d(t,"h",function(){return i}),n.d(t,"c",function(){return r}),n.d(t,"e",function(){return a}),n.d(t,"d",function(){return o}),n.d(t,"b",function(){return s}),n.d(t,"f",function(){return u}),n.d(t,"i",function(){return c}),n.d(t,"g",function(){return l}),n.d(t,"j",function(){return p}),n.d(t,"a",function(){return d}),n.d(t,"k",function(){return f});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"},260: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)}},28: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"}(i||(i={}))},4:function(e,t,n){"use strict";var i=n(101),r=n(103),a=n(159),o=n(16),s=n(23),u=n(123),c=n(116),l=n(136),p=n(91),d=n(146),f=n(137),h=n(14),g=(n(26),n(92)),m=n(28),y=null;try{window.MSA&&window.MSA.MeControl&&(y=window.MSA.MeControl.UserStateModel)}catch(e){}var v=y;(function(){function e(){}e.createUserStateModel=function(e){return null!=window.MSA?new v(e):null}})(),function(){function e(){}e.MSA="msa",e.AAD="aad",e.MSAFed="msaFed"}();function S(){"complete"===document.readyState?i.a.internalProcessWindowLoad():window.onload=i.a.internalProcessWindowLoad}n.d(t,"l",function(){return S}),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,!1,function(){return s.b}),n.d(t,!1,function(){return u.a}),n.d(t,"k",function(){return c.a}),n.d(t,"b",function(){return l.a}),n.d(t,"h",function(){return p.a}),n.d(t,!1,function(){return d.a}),n.d(t,!1,function(){return f.a}),n.d(t,"f",function(){return h}),n.d(t,!1,function(){}),n.d(t,"i",function(){return g}),n.d(t,"c",function(){return m.a}),n.d(t,!1,function(){return v}),n.d(t,!1,function(){}),n.d(t,!1,function(){})},42:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(19),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}()},56:function(e,t,n){"use strict";var i=n(1),r=n(37),a=n(144);n.d(t,"b",function(){return a.a});var o=n(104);n.d(t,"a",function(){return o.b}),Object(i.a)().subscribe("ShellDataUpdated",function e(t,n){if(n.SuiteServiceUrl&&(n.IsConsumerShell||n.TokenFactoryIframeOrigin)&&!a.a.isInitialized()){var o=Object(i.e)(),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,NavBarDataWorkloadLinks:t.WorkloadLinks,AdminLink:t.AdminLink,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};a.a.CreateInstance(s);var u=Object(i.a)();u.invoke("SuiteAPILoaded",a.a.Instance),u.unsubscribe("ShellDataUpdated",e)}},!0)},57:function(e,t,n){"use strict";n.d(t,"a",function(){return u}),n.d(t,"b",function(){return c});var i=n(209),r=n(20),a=n(19),o=n(113),s=n(65),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