(()=>{var t={8713:()=>{$((function(){var t,n,e,o,a,i,r,c,d=function(t){return t[t.None=0]="None",t[t.MSA=1]="MSA",t[t.AAD=2]="AAD",t}({}),s=function(t){return t[t.NotAttempted=0]="NotAttempted",t[t.DefaultAttempted=1]="DefaultAttempted",t[t.SharedStateAttempted=2]="SharedStateAttempted",t}({}),l=function(t){return t.MSA="msa",t.AAD="aad",t}({}),u=function(t){return t.Gen1="GEN1",t.Gen2="GEN2",t}({}),p=function(t){return t.Default="default",t.MsaFirst="msafirst",t.AadFirst="aadfirst",t.None="none",t}({}),m={},g="Cascade.AuthSSO",h="signin",f="signinto",A="signout",w=(c=$(".meControl-configInfo")).length?{enabled:null!==(t=c.data("isenabled"))&&void 0!==t&&t,isConvergedStack:c.data("convergedstack"),silentAuthAction:null!==(n=c.data("silentauthaction"))&&void 0!==n?n:p.None,silentAuthRequireReload:null!==(e=c.data("silentauthrequirereload"))&&void 0!==e&&e,isPublisher:null!==(o=window.msauthIsPublisher)&&void 0!==o&&o,apiGeneration:null!==(a=c.data("apigeneration"))&&void 0!==a?a:u.Gen1,appId:c.data("appid"),appCallbackUrl:c.data("appcallbackurl"),baseUrl:c.data("baseurl"),accountConstraint:c.data("accountconstraint"),preferredIdp:null!==(i=c.data("preferredidp"))&&void 0!==i?i:l.MSA,signInUrl:c.data("signinurl"),msaSignOutUrl:c.data("msasignouturl"),aadSignOutUrl:c.data("aadsignouturl")}:{enabled:!1,isConvergedStack:!1,isPublisher:null!==(r=window.msauthIsPublisher)&&void 0!==r&&r,silentAuthAction:p.None};function S(){-1!==document.cookie.indexOf("".concat(g,"="))&&(document.cookie="".concat(g,"=; expires=Thu, 01 Jan 1970 00:00:00 UTC;"))}function v(){var t=function(){var t=document.cookie.match(new RegExp("(^|;\\s*)("+g+")=([^;]*)"));if(t){var n=parseInt(decodeURIComponent(t[3]));return!isNaN(n)&&n>s.DefaultAttempted?s.SharedStateAttempted:s.DefaultAttempted}return s.NotAttempted}(),n=!(!window.msauthRpsShare||w.accountConstraint===d.AAD);if(t===s.NotAttempted||n&&t!==s.SharedStateAttempted){!function(t){var n="cascadeauthsso";$("#".concat(n)).remove();var e=document.createElement("iframe");e.src=t,e.setAttribute("width","0"),e.setAttribute("height","0"),e.setAttribute("border","0"),e.setAttribute("frameborder","0"),e.setAttribute("style","display: none"),e.id=n,document.body.appendChild(e)}("".concat(w.baseUrl,"/").concat("silentauth","?auth=").concat(w.silentAuthAction));var e=encodeURIComponent(n?s.SharedStateAttempted:s.DefaultAttempted);document.cookie="".concat(g,"=").concat(e,"; max-age=").concat(1800,";")}}function U(t){return t&&t.Type===l.AAD&&window.AadMeControlOptions?window.AadMeControlOptions.commands:null}function b(t){m=w.apiGeneration===u.Gen2?function(t){var n="webAadWithMsaProxy",e=!0,o=!0,a=!(!t||"msa"!=t.Type);w.accountConstraint==d.AAD?(n="webAadOnly",e=!1):w.accountConstraint==d.MSA?(n="webMsaOnly",o=!1):a&&(n="webMsaWithAadProxy");var i=encodeURIComponent(document.location.toString()),r=w?w.appCallbackUrl:document.location.toString(),c=encodeURIComponent(r),s=function(t){return t?t.DisplayName:null}(t),l=t?{type:t.Type,memberName:t.EmailAddress,firstName:t.FirstName,lastName:t.LastName,cid:a?t.PassportCid:void 0,tenantId:t.TenantId,authenticatedState:"signedIn",displayName:s,orgName:s}:void 0,p={type:n,appSignInUrl:"".concat(w.baseUrl,"/").concat(h),appSignInToUrl:"".concat(w.baseUrl,"/").concat(f),appSignOutUrl:"".concat(w.baseUrl,"/").concat(A),appSwitchUrl:"".concat(w.baseUrl,"/").concat("switch"),appSwitchToUrl:"".concat(w.baseUrl,"/").concat("switchto"),msa:e?{signOutAndForgetUrl:"".concat(w.baseUrl,"/").concat(A),rememberedAccountsUrl:"https://login.live.com/Me.srf?wa=wsignin1.0&rpsnv=13&ct=1544212396&rver=6.7.6631.0&wp=MBI_SSL&wreply=".concat(i,"&id=74335")}:void 0,aad:o?{signOutUrl:"https://login.microsoftonline.com/uxlogout?appid=".concat(w.appId,"&wreply=").concat(c,"&shouldForgetUser=false"),signOutAndForgetUrl:"https://login.microsoftonline.com/uxlogout?appid=".concat(w.appId,"&wreply=").concat(c,"&shouldForgetUser=true"),forgetUrl:"https://login.microsoftonline.com/forgetuser",rememberedAccountsUrl:"https://login.microsoftonline.com/savedusers?appid=".concat(w.appId,"&wreply=").concat(c)}:void 0},m={commands:U(t)};return{meControlOptions:{apiGeneration:u.Gen2,appContextConfig:m,authProviderConfig:p,currentAccount:l}}}(t):function(t){var n,e,o,a,i=l.MSA;w.isConvergedStack?(n="".concat(w.baseUrl,"/").concat(h),e=o="".concat(w.baseUrl,"/").concat(A),t&&(a=(i=t.Type)===l.MSA?t.PassportCid:t.Cid)):(n=w.signInUrl,e=w.msaSignOutUrl,o=w.aadSignOutUrl,t&&(i="OpenIdConnect"===t.AuthenticationType?l.AAD:l.MSA,a=t.PassportCid));var r=t?{idp:i,memberName:t.EmailAddress,firstName:t.FirstName,lastName:t.LastName,cid:a,authenticatedState:"1"}:void 0;return{meControlOptions:{apiGeneration:u.Gen1,rpData:{msaInfo:{signInUrl:n,signOutUrl:e},aadInfo:{signInUrl:n,signOutUrl:o},preferredIdp:w.preferredIdp},userData:r}}}(t),window.msCommonShell?window.msCommonShell.load(m):window.onShellReadyToLoad=function(){window.onShellReadyToLoad=null,window.msCommonShell.load(m)}}window.CascadeAuth={API:{silentAuthCallback:function(t){t&&(window.msauth?(S(),t.DisplayName=window.msauth.DisplayName,window.msauth=t):w.silentAuthRequireReload?location.reload():(S(),window.msauth=t,b(t)))},getUserInfo:function(){return window.msauth},getConfig:function(){return w},getShellOption:function(){return m},invokeSilentAuth:v,challengeUser:function(t){var n;if(w.isConvergedStack){var e;if(t=encodeURIComponent(null!==(n=t)&&void 0!==n?n:document.location.toString()),window.msauth){var o,a=null!==(o=window.msauth.EmailAddress)&&void 0!==o?o:"";e="".concat(w.baseUrl,"/").concat(f,"?ru=").concat(t,"&login_hint=").concat(encodeURIComponent(a),"&forcelogin=true")}else e="".concat(w.baseUrl,"/").concat(h,"?ru=").concat(t,"&forcelogin=true");location.href=e}},getSignInUrl:function(){return w.isConvergedStack?"".concat(w.baseUrl,"/").concat(h):w.signInUrl}}},w.enabled&&(window.msauth?(b(window.msauth),w.isConvergedStack&&S()):w.isPublisher?(b(void 0),w.isConvergedStack&&w.silentAuthAction!=p.None&&v()):window.UserInfoSingleton.getInstance().isConfigured()?window.UserInfoSingleton.getInstance().getUserInfo().then((function(t){window.msauth=t,b(t)}),(function(){window.msauth=void 0,b(void 0)})):b(void 0))}))}},n={};function e(o){var a=n[o];if(void 0!==a)return a.exports;var i=n[o]={exports:{}};return t[o](i,i.exports,e),i.exports}e.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},e.d=(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),(()=>{"use strict";e(8713)})()})();