/*! * ------------------------------------------- START OF THIRD PARTY NOTICE ----------------------------------------- * * This file is based on or incorporates material from the projects listed below (Third Party IP). The original copyright notice and the license under which Microsoft received such Third Party IP, are set forth below. Such licenses and notices are provided for informational purposes only. Microsoft licenses the Third Party IP to you under the licensing terms for the Microsoft product. Microsoft reserves all other rights not expressly granted under this agreement, whether by implication, estoppel or otherwise. * * json2.js (2016-05-01) * https://github.com/douglascrockford/JSON-js * License: Public Domain * * Provided for Informational Purposes Only * * ----------------------------------------------- END OF THIRD PARTY NOTICE ------------------------------------------ */!function(e){function n(n){for(var t,i,o=n[0],r=n[1],s=0,c=[];s0){var e=o.slice();o=[],setTimeout((function(){for(var n=0,t=e.length;n=10){var n=k.getIEVersion();u=null!==n&&n>=12}}return u},isChrome:function(){return null===m&&(m=navigator.userAgent.toLowerCase().indexOf("chrome")>-1),m},isFirefoxNewerThan:function(e){if(f[e]===undefined){var n=k.getFirefoxVersion();f[e]=n&&n>e}return f[e]},isChromeNewerThan:function(e){if(g[e]===undefined){var n=k.getChromeVersion();g[e]=n&&n>e}return g[e]},isIOSSafari:function(){if(null===b){var e=l.navigator.userAgent.toLowerCase();b=/safari/.test(e)&&/iphone|ipod|ipad/.test(e)&&!l.MSStream}return b},isIOSUIWebView:function(){if(null===v){var e=l.navigator.userAgent.toLowerCase();v=!1===/safari/.test(e)&&/iphone|ipod|ipad/.test(e)&&!l.MSStream}return v},isQtCarBrowser:function(){return null===h&&(h=navigator.userAgent.toLowerCase().indexOf("qtcarbrowser")>-1),h},isEdgeClientBrowser:function(){return null===_&&(_=navigator.userAgent.toLowerCase().indexOf("edgeclient/")>-1),_},isOnTouchStartEventSupported:function(){return"ontouchstart"in document.documentElement},getIEVersion:function(){var e=l.navigator.userAgent,n=e.indexOf("MSIE ");if(n>0)return parseInt(e.substring(n+5,e.indexOf(".",n)),10);if(e.indexOf("Trident/")>0){var t=e.indexOf("rv:");return parseInt(e.substring(t+3,e.indexOf(".",t)),10)}var i=e.indexOf("Edge/");return i>0?parseInt(e.substring(i+5,e.indexOf(".",i)),10):null},getFirefoxVersion:function(){var e=l.navigator.userAgent.match(/(firefox(?=\/))\/?\s*(\d+)/i);return e&&3===e.length&&"firefox"===e[1].toLowerCase()?parseInt(e[2]):null},getChromeVersion:function(){var e=l.navigator.userAgent.match(/(chrome(?=\/))\/?\s*(\d+)/i);return e&&3===e.length&&"chrome"===e[1].toLowerCase()?parseInt(e[2]):null},getWindowsVersion:function(){return null!==new RegExp("Windows NT ([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent)?parseFloat(RegExp.$1):null},htmlEscape:function(e){if(!e)return"";var n=document.createElement("textarea");return n.innerText=e,n.innerHTML},htmlUnescape:function(e){if(!e)return"";if(e.match(/<[^<>]+>/))return e;var n=document.createElement("textarea");return n.innerHTML=e,n.value},getStackSize:function(e){var n=0,t=null==e;try{!function i(){n++,(t||n<=e)&&i()}()}catch(i){}return n},getAnimationEndEventName:function(){var e=document.createElement("div"),n={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(var t in n)if(e.style[t]!==undefined)return n[t];return""},isStackSizeGreaterThan:function(e){return e=e||0,k.getStackSize(e)>e},isSvgImgSupported:function(){return null===y&&(y=document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")),y},isPlaceholderAttributeAllowed:function(e){return null===C&&(C=k.isChromeNewerThan(16)||k.isEdge()||k.isFirefoxNewerThan(14)||e&&k.isIOSUIWebView()||k.isIOSSafari()||k.isQtCarBrowser()),C},isCSSAnimationSupported:function(){var e=!1,n=document.createElement("div");(e=n.style.animationName!==undefined)||(e=!!d.first(["Webkit","Moz","O"],(function(e){return n.style[e+"AnimationName"]!==undefined})));return e},isStyleSupported:function(e){return e in document.documentElement.style},isCORSSupported:function(){return l.XDomainRequest||l.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest},isHistorySupported:function(){if(null===w){if(w=l.history&&l.history.pushState&&"undefined"!=typeof l.history.state&&"undefined"!=typeof l.onpopstate)try{l.history.replaceState("__history_test",""),("__history_test"!==l.history.state||k.isEdgeClientBrowser())&&(w=!1)}catch(e){w=!1}}return w},isFidoSupportedAsync:function(e){return l.navigator.credentials!==undefined&&l.navigator.credentials.create!==undefined&&l.navigator.credentials.get!==undefined&&l.PublicKeyCredential!==undefined&&l.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable!==undefined?l.PublicKeyCredential.isExternalCTAP2SecurityKeySupported?r.newPromiseWithTimeout(l.PublicKeyCredential.isExternalCTAP2SecurityKeySupported,i.PromiseTimeout,!1):o.resolve(e):o.resolve(!1)},isChangingInputTypeSupported:function(){return!k.isIEOlderThan(9)},isHighContrast:function(){if(null===S){var e=document.createElement("span");e.style.borderLeftColor="red",e.style.borderRightColor="blue",e.style.position="absolute",e.style.top="-999px",document.body.appendChild(e);var n=k.getComputedStyle(e);S=n.borderLeftColor===n.borderRightColor,document.body.removeChild(e)}return S},getHighContrastTheme:function(){if(k.isHighContrast()){var e=document.getElementsByTagName("body")[0],n=k.getComputedStyle(e);if(n.backgroundColor){var t=n.backgroundColor.toLowerCase().replace(new RegExp(" ","g"),"");if("rgb(0,0,0)"===t||"#000000"===t||"#000"===t||("rgb(32,32,32)"===t||"#202020"===t)||("rgb(45,50,54)"===t||"#2d3236"===t))return"black";if("rgb(255,255,255)"===t||"#ffffff"===t||"#fff"===t||("rgb(255,250,239)"===t||"#fffaef"===t))return"white"}}},getComputedStyle:function(e){return document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(e,null):e.currentStyle?e.currentStyle:{}},history:{pushState:function(e,n){k.isHistorySupported()&&l.history.pushState(e,n)},replaceState:function(e,n){k.isHistorySupported()&&l.history.replaceState(e,n)}},addEventListener:function(e,n,t,i){e.addEventListener?e.addEventListener(n,t,i):e.attachEvent&&e.attachEvent("on"+n,t)},removeEventListener:function(e,n,t,i){e.removeEventListener?e.removeEventListener(n,t,i):e.detachEvent&&e.detachEvent("on"+n,t)},getEventTarget:function(e){return e?e.target?e.target:e.srcElement?e.srcElement:null:null}},T=n.QueryString={parse:function(e){var n=e,t=null,i=null;if(e){var a=e.indexOf("?"),o=e.indexOf("#");-1!==o&&(-1===a||oi?e:r},remove:function(e,n){var t=T.parse(e);t.query=t.query||{};var i=s.findOwnProperty(t.query,n,!0);return i&&delete t.query[i],T.join(t)},extract:function(e,n){n||""===n||(n=document.location.search);var t=T.parse(n);t.query=t.query||{};var i=s.findOwnProperty(t.query,e,!0);return i?t.query[i]:""},appendOrReplaceFromCurrentUrl:function(e,n){var t=T.extract(n);return t?T.appendOrReplace(e,n,t):e},stripQueryStringAndFragment:function(e){return T.parse(e).originAndPath}},P=n.Cookies={expireDate:"Thu, 30-Oct-1980 16:00:00 GMT",persistTTLDays:390,cookieSafeRegex:/^[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]+$/,enabled:function(){var e="G"+(new Date).getTime();P.write("CkTst",e);var n=!!P.getCookie("CkTst");return P.remove("CkTst"),n},getCookies:function(){return c.doubleSplit(document.cookie,";","=",!1,c.trim)},getCookie:function(e){var n=P.getCookies();return n[e]?n[e]:null},getObject:function(e){var n=P.getCookie(e)||"";return c.doubleSplit(n,"&","=")},remove:function(e,n,t){var i=n||document.location.hostname,a=i.split("."),o=a.length,r=a[o-2]+"."+a[o-1],s=t||"/",d="https:"===document.location.protocol,l=d?";secure":"",u=P.getDefaultSameSiteAttribute(d);document.cookie=c.format("{0}= ;domain=.{1};path={2};expires={3}{4}{5}",e,r,s,P.expireDate,l,u),document.cookie=c.format("{0}= ;domain=.{1};path={2};expires={3}{4}{5}",e,i,s,P.expireDate,l,u)},write:function(e,n,t,i,a,o,r,s,c){var d=o?".":"",l=document.domain.split(".");a&&l.splice(0,Math.max(0,l.length-2));var u=d+l.join(".");P.writeWithExpiration(e,n,t,i?P.getPersistDate():null,u,r,s,c)},writeWithExpiration:function(e,n,t,i,a,o,r,d){if(""===n)P.remove(e,a);else{"object"==typeof n&&(n=s.join(n,"&","="));var l,u=i?";expires="+i:"",p=a?";domain="+a:"",f=o||"/",g=t?";secure":"";l=r&&"none"!==r.toLowerCase()?";SameSite="+r:P.getDefaultSameSiteAttribute(t);var m=c.format("{0};path={1}{2}{3}{4}",p,f,u,g,l);if(d){for(var b=4e3-m.length-e.length-1,v=Math.ceil(n.length/b),h=P.getCookies(),_=0;_"~"||-1!==e.indexOf(" "))return!1;var n=e.indexOf("@");if(-1===n||-1===e.indexOf(".",n))return!1;var t=e.split("@");if(t.length>2||t[0].length<1||t[1].length<2)return!1;if(r.ServerData.fApplyAsciiRegexOnInput){var i=new RegExp(/^[\x21-\x7E]+$/);return!!e.match(i)}return!0},isPhoneNumber:function(e){var n=e.replace(/\D+/g,"");return n.length>=4&&n.length<=50},isSkypeName:function(e){e=c.trim(e);var n=new RegExp(/^[a-zA-Z][a-zA-Z0-9.,\-_:']{0,128}$/);return!!e.match(n)},extractDomain:function(e,n,t){if(!c.isEmailAddress(e))return e;var i=c.trim(e).split("@")[1];return e=t?"@":"",n?e+i.slice(0,i.lastIndexOf(".")+1):e+i},extractDomainFromUrl:function(e){if(e){var n=document.createElement("a");return n.href=e,n.hostname}return""},extractOriginFromUrl:function(e){if(e){var n=document.createElement("a");n.href=e;var t=n.origin;return t||(t=n.protocol+"//"+n.hostname+(n.port?":"+n.port:"")),t}return""},doOriginsMatch:function(e,n){var t=c.extractOriginFromUrl(e);return c.extractOriginFromUrl(n)===t},capFirst:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},cleanseUsername:function(e,n){if(!e)return"";if(e=c.trim(e).toLowerCase(),!c.isEmailAddress(e)&&!c.isSkypeName(e)&&c.isPhoneNumber(e)){var t="";return n&&"+"===e.charAt(0)&&(t="+"),t+e.replace(/\D+/g,"")}return e},maskString:function(e,n){if(!e)return"";if(e.length<=2*n)return e;var t=e.length-2*n,i=Array(t+1).join("*");return e.substring(0,n)+i+e.substring(n+t)}},d=n.Array={first:i.utils.arrayFirst,forEach:i.utils.arrayForEach,map:i.utils.arrayMap,removeItem:i.utils.arrayRemoveItem,arrayFilter:i.utils.arrayFilter,findIndex:function(e,n){if(e&&"object"==typeof e&&e.length)for(var t=0;t=400&&(a=!0);break;case"parsererror":r="Unable to parse response",a=!0}t.error={code:o,message:r,debugMessage:"(xhr status "+e.status+") xhr.responseText: "+e.responseText,stackTrace:"",isFatal:a}}return t}function S(e){var t,a=(e=e||{}).error||null,o={startTime:f,endTime:(new Date).getTime()};if(e.apiCanary&&(u.apiCanary=e.apiCanary,delete e.apiCanary),a){t=(t=a.stackTrace)&&t.encodeJson?t.encodeJson():"";var c=i.stringify({code:a.code,message:a.message,debug:a.debugMessage,stacktrace:t,requestUrl:g});n.Errors.push(c),n.Errors.length>100&&n.Errors.shift(),(8002!==a.code||m)&&s&&s(e,o)}else r&&r(e,o)}function C(e){return setTimeout((function(){S({error:{code:e,message:"Request Failed!",isFatal:!0}})}),0),null}if(t&&!u.apiCanary)return v?C(8002):(setTimeout((function(){S({error:{code:8002,message:"Request Failed!",isFatal:!0}})}),0),null);if(b&&null===a&&null!==d)n.Get(e,o.ContentType.Json,(function(e,n){if(p)if(v)try{S(i.parse(n))}catch(t){C(8e3)}else S(i.parse(n))}),(function(e,n,t,i){p&&S(h(n,t))}),c,d,l);else{var w=_(a);n.Post(e,o.ContentType.Json,w,(function(e,n){if(p)if(v)try{S(i.parse(n))}catch(t){C(8e3)}else S(i.parse(n))}),(function(e,n,t,i){p&&S(h(n,t))}),c)}},n.Post=function(e,t,i,o,r,s){var c=e.url,d={},l=!1;o||r||(l=!0),C(d,e,a.RequestType.Post,s,t,l);var u={targetUrl:c,contentType:t,data:i,requestType:a.RequestType.Post,timeout:s||3e4,successCallback:function(e,n){w(d,"Success",n,!0,(function(){o&&o(e,n)}))},failureCallback:function(e,n,t){w(d,"Failed",x(n,t),!1,(function(){r&&r(e,n,t)}))},timeoutCallback:function(e,n,t){w(d,"Timeout",x(n,t),!1,(function(){r&&r(e,n,t)}))}};S(u),a.Handler.call(n,u),n.sendRequest()},n.Get=function(e,t,i,o,r,s,c){var d=e.url,l={},u=!1;i||o||(u=!0),C(l,e,a.RequestType.Get,r,t,u);var p={targetUrl:d,contentType:t,requestType:a.RequestType.Get,timeout:r||3e4,successCallback:function(e,n){w(l,"Success",n,!0,(function(){i&&i(e,n)}))},failureCallback:function(e,n,t){w(l,"Failed",x(n,t),!1,(function(){o&&o(e,n,t)}))},timeoutCallback:function(e,n,t){w(l,"Timeout",x(n,t),!1,(function(){o&&o(e,n,t)}))}};if(S(p),b){if(s)for(var g in s)s.hasOwnProperty(g)&&(p.headers[g]=s[g]);if(c){var m=f.add(d,c);p.targetUrl=m}}a.Handler.call(n,p),n.sendRequest()},n.Beacon=function(e,t,i,a,o){var r=[],s=h(!0);p.forEach(s,(function(e,n){r.push([e,n])}));var c=e.url;if(c=f.add(c,r),e.url=c,navigator.sendBeacon){var d={};C(d,e,"Beacon",o,null,!1);var l=_(t),u=navigator.sendBeacon(c,l);w(d,u?"Success":"Failed",null,u,(function(){u&&i?i():!u&&a&&a()}))}else n.Json(e,t,i,a,o)}}},function(e,n,t){var i=t(2),a=t(1),o=t(4);var r=window;function s(e){var n=this,t=((e=e||{}).serverData,e.primaryButtonId),r=e.secondaryButtonId,s=e.primaryButtonText,c=e.secondaryButtonText,d=!1!==e.isPrimaryButtonVisible,l=!1!==e.isSecondaryButtonVisible,u=!1!==e.isPrimaryButtonEnabled,p=!1!==e.isSecondaryButtonEnabled,f=e.focusOnPrimaryButton||!1,g=e.focusOnSecondaryButton||!1,m=e.primaryButtonDescribedBy,b=e.secondaryButtonDescribedBy,v=e.primaryButtonCss,h=e.secondaryButtonCss,_=e.primaryButtonType||"submit",S=e.removeBottomMargin,C=e.primaryButtonPreventTabbing||{direction:"none"};n.primaryButtonId=t,n.secondaryButtonId=r,n.primaryButtonCss=v,n.secondaryButtonCss=h,n.primaryButtonText=i.observable(s),n.secondaryButtonText=i.observable(c),n.isPrimaryButtonVisible=i.observable(d),n.isSecondaryButtonVisible=i.observable(l),n.isPrimaryButtonEnabled=i.observable(u),n.isSecondaryButtonEnabled=i.observable(p),n.focusOnPrimaryButton=i.observable(f),n.focusOnSecondaryButton=i.observable(g),n.hasOneButtonVisible=i.pureComputed((function(){var e=0;return n.isPrimaryButtonVisible()&&e++,n.isSecondaryButtonVisible()&&e++,1===e})),n.primaryButtonDescribedBy=m,n.secondaryButtonDescribedBy=b,n.removeBottomMargin=S,n.primaryButtonPreventTabbing=C,n.primaryButtonAttributes=i.pureComputed((function(){var e={id:n.primaryButtonId||"idSIButton9","aria-describedby":n.primaryButtonDescribedBy};return a.Helper.isChangingInputTypeSupported()&&(e.type=_),e})),n.onPrimaryButtonClick=o.create(),n.onSecondaryButtonClick=o.create(),n.setTextPrimaryButton=function(e){n.primaryButtonText(e)},n.setTextSecondaryButton=function(e){n.secondaryButtonText(e)},n.setVisibilityPrimaryButton=function(e){n.isPrimaryButtonVisible(e)},n.setVisibilitySecondaryButton=function(e){n.isSecondaryButtonVisible(e)},n.setEnabledPrimaryButton=function(e){n.isPrimaryButtonEnabled(e)},n.setEnabledSecondaryButton=function(e){n.isSecondaryButtonEnabled(e)},n.primaryButton_onClick=function(){n.onPrimaryButtonClick()},n.secondaryButton_onClick=function(){n.onSecondaryButtonClick()}}i.components.register("footer-buttons-field",{viewModel:s,template:t(337),synchronous:!r.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(r.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0}),e.exports=s},function(e,n,t){var i=t(2),a=t(3),o=t(1),r=t(0),s=t(9),c=t(70),d=t(78),l=t(227),u=window,p=o.Helper,f=a.String,g=a.Object,m=r.LayoutTemplateType,b=r.Branding,v=u.ServerData.fUseNonMicrosoftDefaultBrandingForCiam,h=u.ServerData.fIsCiamUserFlowUx,_=u.ServerData.fMergeComplexBrandingProperties,S=u.ServerData.fRemoveCustomCss,C=u.ServerData.fDeprecateBrandingProperties,w=u.ServerData.fFixDynamicTenantBranding,x={loadTenantBranding:function(e){var n={};if(e){var t=["BoilerPlateText","UserIdLabel","TileLogo","TileDarkLogo","BannerLogo","BackgroundColor","Illustration","KeepMeSignedInDisabled","UseTransparentLightBox","LayoutTemplateConfig","CustomizationFiles","AccessRecoveryLink","CantAccessYourAccountText","ForgotPasswordText","FooterTOULink","FooterTOUText","FooterPrivacyLink","FooterPrivacyText","Favicon"],a=e[0]||{},o=e[1]||{};_?i.utils.arrayForEach(t,(function(e){if("LayoutTemplateConfig"===e||"CustomizationFiles"===e){var t=o[e],i=a[e];n[e]=g.assignRecursive({},i,t)}else n[e]=o[e]||a[e]||""})):i.utils.arrayForEach(t,(function(e){n[e]=o[e]||a[e]||""})),n.TileDarkLogo||(n.TileDarkLogo=n.TileLogo)}return n},getPageBranding:function(e,n,t){var i={useDefaultBackground:!1};if(e&&(i.bannerLogoUrl=e.BannerLogo),e&&(e.BackgroundColor||e.Illustration))i.color=e.BackgroundColor,i.backgroundImageUrl=e.Illustration,i.useTransparentLightBox=e.UseTransparentLightBox,i.useImageMask=!v||!h;else if(n&&(n.backgroundImageIndex>=0||n.backgroundLogoIndex>=0||n.backgroundColor||n.friendlyAppName))n.backgroundImageIndex>=0&&(i.backgroundImageUrl=d(f.format("./{0}.jpg",n.backgroundImageIndex)),p.isStyleSupported("backgroundSize")&&(i.smallImageUrl=d(f.format("./{0}-small.jpg",n.backgroundImageIndex)))),n.backgroundLogoIndex>=0&&(i.backgroundLogoUrl=l(f.format("./{0}.png",n.backgroundLogoIndex))),i.color=n.backgroundColor,i.friendlyAppName=n.friendlyAppName;else if(n&&n.urlLegacyBackgroundLogo)i.backgroundLogoUrl=n.urlLegacyBackgroundLogo;else if(v&&h)i.color=b.DefaultBackgroundColor;else if(t>=0){var a=p.isSvgImgSupported();i.backgroundImageUrl=c(f.format("./{0}.{1}",t,a?"svg":"jpg")),!a&&p.isStyleSupported("backgroundSize")&&(i.smallImageUrl=c(f.format("./{0}-small.jpg",t))),i.useDefaultBackground=!0}return i},getMergedBranding:function(e,n,t,i){var a;if(t)a=n;else if(a=e,w){n=n||{},i?(n.BannerLogo&&(a.BannerLogo=n.BannerLogo),n.BoilerPlateText&&(a.BoilerPlateText=n.BoilerPlateText),n.KeepMeSignedInDisabled&&(a.KeepMeSignedInDisabled=n.KeepMeSignedInDisabled),n.AccessRecoveryLink&&(a.AccessRecoveryLink=n.AccessRecoveryLink),n.CantAccessYourAccountText&&(a.CantAccessYourAccountText=n.CantAccessYourAccountText),n.ForgotPasswordText&&(a.ForgotPasswordText=n.ForgotPasswordText)):(a.BannerLogo=n.BannerLogo||"",a.BoilerPlateText=n.BoilerPlateText||"",a.KeepMeSignedInDisabled=n.KeepMeSignedInDisabled||!1,a.AccessRecoveryLink=n.AccessRecoveryLink||"",a.CantAccessYourAccountText=n.CantAccessYourAccountText||"",a.ForgotPasswordText=n.ForgotPasswordText||"");var o=!1;if(n.LayoutTemplateConfig&&(o=n.LayoutTemplateConfig.hideAccountResetCredentials),a.LayoutTemplateConfig=a.LayoutTemplateConfig||x.getLayoutTemplateConfig({}),a.LayoutTemplateConfig.hideAccountResetCredentials=o,a.CustomizationFiles=a.CustomizationFiles||{},n.CustomizationFiles){var r={strings:n.CustomizationFiles.strings,customCssUrl:n.CustomizationFiles.customCssUrl};a.CustomizationFiles.customCssUrl!==r.customCssUrl&&(r.customCssUrl=null),a.CustomizationFiles=r}}else if(n&&(n.BannerLogo&&(a.BannerLogo=n.BannerLogo),n.BoilerPlateText&&(a.BoilerPlateText=n.BoilerPlateText),n.KeepMeSignedInDisabled&&(a.KeepMeSignedInDisabled=n.KeepMeSignedInDisabled),n.CustomizationFiles)){var s={strings:n.CustomizationFiles.strings,customCssUrl:n.CustomizationFiles.customCssUrl};a.CustomizationFiles&&a.CustomizationFiles.customCssUrl&&(s.customCssUrl=a.CustomizationFiles.customCssUrl),n.CustomizationFiles.customCssUrl!==s.customCssUrl&&(s.customCssUrl=null),a.CustomizationFiles=s}return a},getLayoutTemplateConfig:function(e){var n=e.LayoutTemplateConfig;if(w)return n&&n!=={}||(n=C?{showHeader:!1,headerLogo:"",layoutType:m.Lightbox,showFooter:!0,hideTOU:!1,hidePrivacy:!1,hideAccountResetCredentials:!1}:{showHeader:!1,headerLogo:"",layoutType:m.Lightbox,hideCantAccessYourAccount:!u.ServerData.showCantAccessAccountLink,hideForgotMyPassword:!1,hideResetItNow:!1,showFooter:!0,hideTOU:!1,hidePrivacy:!1,hideAccountResetCredentials:!1},v&&h&&(n.showFooter=!1)),n;if(n&&n!=={})return n;var t={showHeader:!1,headerLogo:"",layoutType:m.Lightbox,hideCantAccessYourAccount:!u.ServerData.showCantAccessAccountLink,hideForgotMyPassword:!1,hideResetItNow:!1,showFooter:!0,hideTOU:!1,hidePrivacy:!1,hideAccountResetCredentials:!1};return v&&h&&(t.showFooter=!1),t},createMergedBrandingObservables:function(e){e.masterPageMethods=i.observable(),e.isVerticalSplitTemplate=i.observable(),e.showHeader=i.observable(!1),e.headerLogo=i.observable(),e.showFooter=i.observable(!0),e.hideTOU=i.observable(!1),e.hidePrivacy=i.observable(!1),e.termsText=i.observable(),e.termsLink=i.observable(),e.privacyText=i.observable(),e.privacyLink=i.observable()},updateMergedBrandingObservables:function(e,n){if(n){var t=x.getLayoutTemplateConfig(n);e.masterPageMethods()&&e.masterPageMethods().updateBranding(n),e.isVerticalSplitTemplate(t.layoutType===m.VerticalSplit),e.showHeader(t.showHeader),e.headerLogo(t.headerLogo),e.showFooter(t.showFooter),e.hideTOU(t.hideTOU),e.hidePrivacy(t.hidePrivacy),e.termsText(n.FooterTOUText),e.termsLink(n.FooterTOULink),e.privacyText(n.FooterPrivacyText),e.privacyLink(n.FooterPrivacyLink)}},updateFavicon:function(e,n){var t=document.querySelector("link[rel~='icon']");t&&(e&&e.Favicon?t.href=e.Favicon:n&&(t.href=n))},removeCustomCss:function(){var e=document.head.querySelector("#customCssStyle");e&&document.head.removeChild(e)},loadCustomizationFiles:function(e,n){if(!S||n&&e&&e.CustomizationFiles&&e.CustomizationFiles.customCssUrl||x.removeCustomCss(),n){if(!e||!e.CustomizationFiles)return n.isLoadComplete(!0),void n.strings.isLoadComplete(!0);var t=e.CustomizationFiles,i=t.customCssUrl,a=t.strings;if(a||i){n.initialize();var o={customStringsFiles:a,customCss:i};s.throwUnhandledExceptionOnRejection(n.load(o))}else n.isLoadComplete(!0),n.strings.isLoadComplete(!0)}},createCustomizationLoader:function(e,n,i,a){t.e(8).then(function(){var o=new(t(500))({serverData:e,pageId:a});i?(i(o),x.loadCustomizationFiles(n,i())):x.loadCustomizationFiles(n,o)}.bind(null,t))["catch"](t.oe)}};e.exports=x},function(e,n,t){var i=t(2),a=t(1),o=window,r=a.Helper;function s(){var e=this;e.useCssAnimation=!1,r.isCSSAnimationSupported()&&!r.isHighContrast()&&(e.useCssAnimation=!0)}i.components.register("marching-ants-control",{viewModel:s,template:t(341),synchronous:!o.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(o.ServerData.iMaxStackForKnockoutAsyncComponents)}),e.exports=s},function(e,n,t){var i=t(22),a=t(1),o=i.Helper,r=a.QueryString,s=n.Properties={State:"State",SessionLookupKey:"SessionLookupKey",DisplaySignForUI:"DisplaySignForUI",FlowToken:"FlowToken"},c=n.Purpose={Password:"eOTT_OneTimePassword",RemoteNGC:"eOTT_RemoteNGC",NoPassword:"eOTT_NoPasswordAccountLoginCode",OtcLogin:"eOTT_OtcLogin",XboxRemoteConnect:"RemoteSignInWithUserCode"},d=n.Channel={Authenticator:"Authenticator",MobileSms:"SMS",EmailAddress:"Email",VoiceCall:"Voice",PushNotifications:"PushNotifications"},l=n.Type={EmailAddress:"AltEmail",EmailAddressEncrypted:"AltEmailE",Mobile:"MobileNum",MobileEncrypted:"MobileNumE",SessionApprover:"SAPId"};n.Event={OnSend:"otcsend",OnSendFail:"otcsendfailed",OnFlowExpired:"otcflowexpired"};var u=n.RequestParam={Username:"login",Purpose:"purpose",FlowToken:"flowtoken",CanaryFlowToken:"canaryFlowToken",Channel:"channel",UIMode:"UIMode",PhoneCountry:"MobileCountry",PhoneCountryCode:"MobileCC",UnauthSessionId:"uaid",ProofConfirmation:"ProofConfirmation"},p=n.Status={None:0,Error:200,Success:201,HIPError:202,FTError:203,InputError:204,DestinationError:205,Timeout:300},f=n.ProofTypeToChannel=function(e){var n=null;switch(e){case PROOF.Type.SMS:n=d.MobileSms;break;case PROOF.Type.Voice:n=d.VoiceCall;break;case PROOF.Type.Email:case PROOF.Type.AltEmail:n=d.EmailAddress;break;case PROOF.Type.TOTPAuthenticatorV2:n=d.PushNotifications}return n},g=n.ProofTypeToOtcType=function(e,n){var t=null;switch(e){case PROOF.Type.Voice:case PROOF.Type.SMS:t=n?l.MobileEncrypted:l.Mobile;break;case PROOF.Type.Email:case PROOF.Type.AltEmail:t=n?l.EmailAddressEncrypted:l.EmailAddress;break;case PROOF.Type.TOTPAuthenticatorV2:t=l.SessionApprover}return t};n.Proof=function(e){var n=e.username||"",t=e.flowToken||"",i=e.purpose||c.Password,a=e.proofType,o=e.proofData||"",r=e.isEncrypted,s=e.uiMode,d=e.lcid,l=e.phoneCountry||"",p=e.phoneCountryCode||"",m=e.unauthSessionId,b=e.proofConfirmation,v=e.canaryFlowToken;this[u.Username]=n,this[u.FlowToken]=t,this[u.Purpose]=i,this[u.Channel]=f(a),this[g(a,r)]=o,s&&(this[u.UIMode]=s),d&&(this.lcid=d),r||a!==PROOF.Type.SMS&&a!==PROOF.Type.Voice||(this[u.PhoneCountry]=l,this[u.PhoneCountryCode]=p),m&&(this[u.UnauthSessionId]=m),b&&(this[u.ProofConfirmation]=b),v&&(this[u.CanaryFlowToken]=v)},n.Request=function(e){var n,t,a,c,d=this,l=p.None,u="",f="",g="",m=e.data,b=e.onSend,v=e.onSendFail,h=e.onFlowExpired,_=e.timeout||3e4,S=e.siteId,C=e.clientId,w=e.forwardedClientId,x=e.noPaBubbleVersion;function y(e){var n=!1,t=d.getResponseJson();g=t[s.FlowToken]||"",t[s.State]?(l=t[s.State],u=t[s.SessionLookupKey]||"",f=t[s.DisplaySignForUI]||"",n=l!==p.Success):(l=p.Error,u="",f="",n=!0),n?l===p.FTError?h(e,d):v(e,d):b(e)}function k(){g="",l=p.Error,u="",f="",v(d)}function T(){l=p.Timeout,u="",f="",g="",v(d)}d.getOtcStatus=function(){return d.isComplete()?l:p.None},d.getSessionKey=function(){return d.isComplete()?u:""},d.getDisplaySign=function(){return d.isComplete()?f:""},d.getFlowToken=function(){return d.isComplete()?g:""},n=r.extract("mkt"),t=r.extract("lc"),a=[].concat(n?[["mkt",n]]:[],t?[["lcid",t]]:[],S?[["id",S]]:[],C?[["client_id",C]]:[],w?[["fci",w]]:[],x?[["nopa",x]]:[]),c={targetUrl:r.add("GetOneTimeCode.srf",a),requestType:i.RequestType.Post,data:o.generateRequestString(m),isAsync:!0,timeout:_,successCallback:y,failureCallback:k,timeoutCallback:T},i.Handler.call(d,c)}},function(e,n,t){var i=t(25),a=t(9),o=t(41),r=t(5),s=window,c=s.navigator,d=s.ServerData.fShouldPlatformKeyBeSuppressed;n.makeCredential=function(e,n,t,a,r,s,d,l){var u=[];s&&(u=s.map((function(e){return{type:"public-key",id:o.base64UrlStringToArrayBuffer(e)}})));var p=i.SupportedKeyAlgorithms.map((function(e){return{type:"public-key",alg:e}})),f={challenge:o.stringToArrayBuffer(e),rp:{name:"Microsoft",id:l},user:{id:o.base64UrlStringToArrayBuffer(n),name:t,displayName:a,icon:r},pubKeyCredParams:p,timeout:i.Timeout,excludeCredentials:u,authenticatorSelection:{authenticatorAttachment:d,requireResidentKey:!0,userVerification:"required"},attestation:"direct",extensions:{hmacCreateSecret:!0,credentialProtectionPolicy:"userVerificationOptional"}};return c.credentials.create({publicKey:f})},n.getAssertion=function(e,n,t){var a=[];n&&(a=n.map((function(e){return{type:"public-key",id:o.base64UrlStringToArrayBuffer(e)}})));var r={challenge:o.stringToArrayBuffer(e),timeout:i.Timeout,rpId:t,allowCredentials:a,userVerification:"required"};return c.credentials.get({publicKey:r})},n.isPlatformAuthenticatorAvailable=function(){return d?r.resolve(null):a.newPromiseWithTimeout(s.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable,i.PromiseTimeout,!1)}},function(e,n,t){(function(n){e.exports=n.ko=t(64)}).call(this,t(40))},function(e,n,t){t(325);var i=t(326);function a(e,n){return e&&e[n]?e[n]:""}function o(e){if(!e||!e.ver)return"";var n=e.ver.v||e.ver||"";return Array.isArray(n)&&n.length>0?n.join("."):n}var r=null;n.getInstance=function(e){if(e.fEnableOneDSClientTelemetry)try{r=r||function(e){var n=e||{},t=e.browser||{},r=n.clientEvents||{},s=n.serverDetails||{},c=n.correlationId?n.correlationId:"";return r.correlationID=c,r.hostPageID=n.hpgid,r.pageName=n.pgid||n.sPageId,r.actorID=n.hpgact||n.sCID,r.appId=n.appId,r.autoCaptureJsErrors=n.fAutoCaptureJsErrors||!1,r.autoCaptureClicks=n.fAutoCaptureClicks||!1,r.autoCaptureEvents=n.fAutoCaptureEvents||!1,r.environment=n.environment,r.serverDetails={datacenter:a(s,"dc"),role:a(s,"r"),roleInstance:a(s,"ri"),version:o(s)},t.IE&&r.appInsightsConfig&&(r.appInsightsConfig.PostChannel?r.appInsightsConfig.PostChannel.disableXhrSync=!0:r.appInsightsConfig.PostChannel={disableXhrSync:!0}),new i.TelemetryHelper(r)}(e)}catch(n){}return r}},function(e,n,t){var i=t(16),a=t(8),o=t(11).getInstance(window.ServerData);e.exports=function(e){var n=null,t=e.username,r=e.proofData,s=e.proofType,c=e.purpose||i.Purpose.Password,d=e.flowToken,l=e.canaryFlowToken,u=!1!==e.isEncrypted,p=e.uiMode,f=e.lcid,g=e.unauthSessionId,m=e.proofConfirmation,b=e.phoneCountry,v=e.phoneCountryCode,h=e.siteId,_=e.clientId,S=e.forwardedClientId,C=e.noPaBubbleVersion,w=e.successCallback,x=e.failureCallback,y=e.clientTracingOptions,k={};function T(e,n,t,i,a){o.traceEndRequest(e,n,t,i,a)}function P(){T(k,"Success",null,!0,(function(){w&&w(n)}))}function D(){var e={otcStatus:n.getOtcStatus()};T(k,"Failed",e,!1,(function(){x&&x(n)}))}this.sendRequest=function(){var e,w={data:(e={username:t,proofData:r,proofType:s,purpose:c,flowToken:d,canaryFlowToken:l,isEncrypted:u,uiMode:p,lcid:f,unauthSessionId:g,proofConfirmation:m,phoneCountry:b,phoneCountryCode:v},new i.Proof(e)),siteId:h,clientId:_,forwardedClientId:S,noPaBubbleVersion:C,onSend:P,onSendFail:D,onFlowExpired:D},x={};x.proofType=s,x.purpose=c,x.uiMode=p,x.lcid=f,x.phoneCountry=b,x.phoneCountryCode=v,function(e,n){var t=y||{};t.hasOwnProperty("eventId")||(t.eventId=a.EventIds.Api_GetOneTimeToken);if(t.eventId){var i={eventType:"POST",eventId:t.eventId,eventLevel:t.eventLevel||a.EventLevel.Info,eventArgs:n,eventOptions:t};o.traceBeginRequest(e,i)}}(k,x),(n=new i.Request(w)).sendRequest()}}},function(e,n,t){var i=t(0),a=t(7),o=t(5),r=t(14),s=t(1),c=t(3),d=t(12),l=t(8),u=s.Helper,p=s.QueryString,f=c.String,g=c.Object,m=i.CredentialType,b=i.RemoteNgcType,v=i.Error,h=i.ApiErrorCodes,_=i.EstsError,S=i.PaginatedState,C=i.IfExistsResult,w=i.ThrottleStatus,x=i.DomainType,y=i.BindProvider,k=a.AllowedIdentitiesType,T=i.SessionPullFlags;var P=E.GctResultAction={ShowError:1,SwitchView:2,Redirect:3},D=E.GctRequestHelperFlags={CheckCurrentIdpOnly:1,IsPhoneNumberFullyQualified:2,DisableDesktopSsoPreferredCred:4,DisableAutoSend:8,ForceOtcLogin:16,IsPostRequest:32,IsSignup:64};function E(e,n){var a=this,s=!1,E=null,I=null,A=null,R=!1,L={},O=null,B=e,F=0!=(n&D.CheckCurrentIdpOnly),U=0!=(n&D.IsPhoneNumberFullyQualified),N=0!=(n&D.DisableDesktopSsoPreferredCred),M=0!=(n&D.DisableAutoSend),V=0!=(n&D.ForceOtcLogin),j=0!=(n&D.IsPostRequest),H=0!=(n&D.IsSignup),W=B.str,$=B.sUnauthSessionID,G=B.iAllowedIdentities,q=B.fIsFedDisabled,z=!!B.fIsRemoteNGCSupported,K=!!B.fShowCookieBanner,J=!!B.fIsFidoSupported,X=B.fIsOtcLoginDisabled,Q=B.fIsNoPaOtcDisabled,Y=!!B.fIsExternalFederationDisallowed,Z=!!B.fIsPassthroughDisallowed,ee=!!B.fIsPhoneNumberSignupDisallowed,ne=B.sCtx,te=B.fDoIfExists,ie=B.fCheckProofForAliases,ae=B.fCheckApiCanary,oe=B.urlGetCredentialType,re=B.fCBShowSignUp,se=B.fAllowSkypeNameLogin,ce=e.urlMsaSignUp,de=B.urlSignUp,le=B.fUseCertificateInterstitialView,ue=B.oSignUpPostParams,pe=B.fUseConsumerEmailError,fe=B.oUrlOtherIdpPostParams,ge=B.desktopSsoConfig,me=B.sFedQS,be=B.staticTenantBranding,ve=B.dynamicTenantBranding,he=B.isGlobalTenant,_e=(B.fCheckForWindowsSku,B.country),Se=B.arrProofData||{},Ce=parseInt(B.sProofType),we=B.urlChangePassword,xe=!!B.fAllowRemoteConnect,ye=B.fBindCookiesUsingPoP,ke=B.iGctFederationFlags||0,Te=B.fIgnoreViralUsers,Pe=B.fAccessPassSupported,De=B.fHidePhoneCobasiInOtherSignIn,Ee=B.fIsRestrictedWsi,Ie=B.fUseResetPwdUrlForPwdRequiredErr,Ae=B.urlResetPassword,Re=B.fIsSelfServiceSignupUxEnabled,Le=B.fEnableWebNativeBridge,Oe=B.sWAMExtension,Be=B.sWAMChannel,Fe=B.canaryTokenName,Ue=B.canary,Ne=B.fAddCanaryToGctProviderCertAuth;function Me(e,n,t){var i=e.Credentials&&e.Credentials.OtcLoginEligibleProofs,a=[];if(i){var o=e.Credentials&&e.Credentials.HasPhone&&e.Credentials.CobasiApp;c.Array.forEach(i,(function(e){if(e.isDefault===n){var t={credType:m.OneTimeCode,proof:e};switch(t.proof.isEncrypted=!0,e.type){case PROOF.Type.SMS:case PROOF.Type.Voice:if(!e.isVoiceOnly){var i=g.clone(t);i.proof.otcSent&&j&&Ce===PROOF.Type.Voice&&(i.proof.otcSent=!1),i.proof.type=PROOF.Type.SMS,De&&!o&&(i.shownOnlyOnPicker=!0),a.push(i)}if(e.voiceEnabled){var r=g.clone(t);!r.proof.otcSent||j&&Ce===PROOF.Type.Voice||(r.proof.otcSent=!1),r.proof.type=PROOF.Type.Voice,a.push(r)}break;case PROOF.Type.Email:a.push(g.clone(t))}}}))}if(n&&0===a.length&&We(e,t)===m.OneTimeCode){var r=e.Credentials&&e.Credentials.HasPassword,s={credType:m.OneTimeCode,proof:{display:e.Display,data:f.cleanseUsername(e.Display),otcSent:!0,isEncrypted:!1,isDefault:!0,isNopa:!r,type:f.isEmailAddress(e.Username)?PROOF.Type.Email:PROOF.Type.SMS}};a.push(s)}return a}function Ve(e){e.proof.str={},g.extend(e.proof.str,Se[e.proof.type]||{}),g.forEach(e.proof.str,(function(n,t){t&&(e.proof.str[n]=f.format(t,e.proof.display+"\u200e",e.proof.clearDigits||""))}))}function je(n,t,i,o,r,c){var d={},l=ge&&o.EstsProperties&&o.EstsProperties.DesktopSsoEnabled&&!function(e){return e&&ge.lastUsernameTried&&e.toLowerCase()===ge.lastUsernameTried.toLowerCase()}(t),g=o.ErrorHR,h=Ke(t,o,r),_=a.getGctSharedData(o,r,c);if(_.username=t,g===v.PP_E_INVALID_PHONENUMBER||g===v.PP_E_LIBPHONENUMBERINTEROP_NUMBERPARSE_EXCEPTION)d=function(e){if(U)return Ze(W.CT_PWD_STR_Error_InvalidPhoneNumber,!0);return Ye(S.PhoneDisambiguation,{phoneDisambigError:e})}(g);else if(g===v.PP_E_NAME_INVALID||g===v.PP_E_INVALIDARG)d=Ze(W.CT_PWD_STR_Error_InvalidUsername);else if(g===v.PP_E_FEDERATION_INLINELOGIN_DISALLOWED)d=Ze(W.CT_PWD_STR_Error_FedNotAllowed,!0);else if(g===v.PP_E_LOGIN_NOPA_USER_PASSWORD_REQUIRED)d=Ze(Ie?f.format(W.CT_STR_Error_PasswordRequired,p.stripQueryStringAndFragment(Ae)):f.format(W.CT_STR_Error_PasswordRequired,p.stripQueryStringAndFragment(we)));else if(o.RequiresPhoneDisambiguation)d=Ye(S.PhoneDisambiguation);else{if(o.AliasDisabledForLogin)return Ze(W.CT_PWD_STR_Error_AliasDisabled,!0);if(o.IfExistsResult===C.NotExist)d=function(e,n,t,i){var a,o=Qe(e,t),r=t.EstsProperties||{},s=r.DomainType&&r.DomainType!==x.Unknown&&r.DomainType!==x.Consumer;if(t.IsProofForAlias)return Ye(S.ConfirmRecoverUsername);if(re&&o&&(te||ie))return te?ze(e,t):Ye(S.ConfirmSignup);a=Re?W.CT_PWD_STR_SSSU_Error_EmailAccountNotFound:n?t.ThrottleStatus===w.NotThrottled&&s?W.CT_PWD_STR_Error_UsernameNotExist_Alternate_VerifiedDomain:W.CT_PWD_STR_Error_UsernameNotExist_Alternate:We(t,i)===m.OneTimeCode?t.ThrottleStatus===w.MsaThrottled?W.CT_PWD_STR_Error_UsernameNotExists_EmailOtpAllowed_MsaFailed:W.CT_PWD_STR_Error_UsernameNotExists_EmailOtpAllowed:pe&&r.DomainType===x.Consumer?W.CT_PWD_STR_Error_UsernameNotExist_ConsumerEmail:t.ThrottleStatus===w.NotThrottled&&s?o?W.CT_PWD_STR_Error_UsernameNotExist_VerifiedDomain_SignupAllowed:W.CT_PWD_STR_Error_UsernameNotExist_VerifiedDomain:t.ThrottleStatus===w.MsaThrottled?s&&o?W.CT_PWD_STR_Error_UsernameNotExist_VerifiedDomain_MsaFailed_SignupAllowed:s?W.CT_PWD_STR_Error_UsernameNotExist_VerifiedDomain_MsaFailed:re&&!de?W.CT_PWD_STR_Error_UsernameNotExist_Guest_SignupAllowed_MsaFailed:W.CT_PWD_STR_Error_UnknownDomain_MsaFailed:H&&!s?W.CT_PWD_STR_Error_UsernameNotExist_Guest_Signup:U?W.CT_PWD_STR_Error_InvalidPhoneNumber:W.CT_PWD_STR_Error_UsernameNotExist;return Ze(f.format(a,u.htmlEscape(f.extractDomain(e)),u.htmlEscape(e)),!0)}(t,i,o,r);else if(o.IfExistsResult===C.ExistsBothIDPs)d=Ye(S.IdpDisambiguation,{desktopSsoEnabled:l,idpRedirectUrl:h.idpRedirectUrl,idpRedirectPostParams:h.idpRedirectPostParams,idpRedirectProvider:h.idpRedirectProvider});else if(o.IfExistsResult===C.ExistsInOtherMicrosoftIDP)d=qe(n,t);else if(!s||o.IfExistsResult!==C.Error&&o.IfExistsResult!==C.Throttled&&0==(o.ThrottleStatus&w.MsaThrottled))if(o.ShowRemoteConnect)d=Ye(S.RemoteLoginPolling);else{d=function(n,t,i,a,o,r){var s=We(a,r);if(Ee&&!(a.Credentials.HasPassword||a.Credentials.HasGoogleFed||a.Credentials.HasCertAuth||a.Credentials.HasFido||a.Credentials.HasRemoteNGC||a.Credentials.HasPhone||a.Credentials.HasFacebookFed)&&(O=!0,s!==m.AccessPass))return Ye(S.MoreInfo);if(!N&&t)return Ye(S.FetchSessionsProgress,{unsafe_desktopSsoDomainToUse:f.extractDomain(n),sessionPullType:T.Dsso});if(a.NativeBridgeRequest&&!R)return Ye(S.WebNativeBridge,{request:a.NativeBridgeRequest,accountIdExpected:e.wamAccountIdExpected,flowToken:a.FlowToken});var c={idpRedirectUrl:i.idpRedirectUrl,idpRedirectPostParams:i.idpRedirectPostParams,idpRedirectProvider:i.idpRedirectProvider};switch(s){case m.OneTimeCode:var d=S.OneTimeCode;return M?d=o?S.ProofConfirmation:S.ConfirmSend:a.Credentials.OTCNotAutoSent&&(d=S.ConfirmSend),Ye(d);case m.PublicIdentifierCode:return M||a.Credentials.SasParams&&a.Credentials.SasParams.Success?Ye(M?S.ConfirmSend:S.OneTimeCode):Ze(W.CT_PWD_STR_Error_GetCredentialTypeError,!1,!0);case m.Fido:return Ye(S.Fido);case m.RemoteNGC:var l=a.Credentials.RemoteNgcParams.DefaultType===b.PushNotification;return Ye(M&&l?S.ConfirmSend:S.RemoteNGC,c);case m.Federation:case m.CloudFederation:return Ye(S.IdpRedirect,c);case m.LinkedIn:case m.GitHub:case m.Google:case m.Facebook:return Ye($e(a,r).length>1||Ge(a,r).length>0?S.IdpRedirectSpeedbump:S.IdpRedirect,c);case m.AccessPass:return Ye(S.AccessPass,c);case m.NoPreferredCredential:return Ye(S.CredentialPicker,c);case m.OtherMicrosoftIdpFederation:return ze(n,a,ce);case m.Certificate:return le?Ye(S.CertificateInterstitialView):en(a.Credentials.CertAuthParams.CertAuthUrl,Je(a.FlowToken));case m.Password:default:return Ye(S.Password)}}(t,l,h,o,_.otcCredential&&_.otcCredential.proof.clearDigits,r)}else d=Ye(S.IdpDisambiguation,{hasIdpDisambigError:!0,desktopSsoEnabled:l,idpRedirectUrl:h.idpRedirectUrl,idpRedirectPostParams:h.idpRedirectPostParams,idpRedirectProvider:h.idpRedirectProvider})}return d.flowToken=o.FlowToken||null,d.bypassCache||(L[t]=o,L[t].FlowToken=null),d.sharedData=_,d}function He(e){var n={};if(e&&e.error)switch(e.error.code){case h.AuthFailure:n=Ze(W.CT_PWD_STR_Error_FlowTokenExpired);break;case _.PublicIdentifierSasBeginCallNonRetriableError:case _.PublicIdentifierSasBeginCallRetriableError:n=Ze(W.CT_PWD_STR_Error_GetCredentialTypeError,!1,!0);break;default:n=Ze(W.CT_PWD_STR_Error_GetCredentialTypeError)}else n=Ze(W.CT_PWD_STR_Error_GetCredentialTypeError);return n.flowToken=e.FlowToken||null,n}function We(e,n){var t=m.Password,i=e.Credentials;return i&&((t=i.PrefCredential)!==m.Fido||n||(t=i.RemoteNgcParams&&i.RemoteNgcParams.SessionIdentifier?m.RemoteNGC:m.Password)),t}function $e(e,n){var t=e.Credentials||{},i=t.SasParams,a=t.LinkedInParams,o=t.GitHubParams,r=t.GoogleParams,s=t.FacebookParams,d=t.CertAuthParams,l=e.EstsProperties||{},u=[].concat(t.HasPassword&&l.DomainType!==x.Federated?{credType:m.Password}:[],t.FederationRedirectUrl&&l.DomainType===x.Federated?{credType:m.Federation}:[],t.FederationRedirectUrl&&l.DomainType===x.CloudFederated?{credType:m.CloudFederation}:[],t.HasRemoteNGC?{credType:m.RemoteNGC}:[],t.HasFido&&n?{credType:m.Fido}:[],t.HasPhone&&i?{credType:m.PublicIdentifierCode}:[],t.HasLinkedInFed&&a?{credType:m.LinkedIn,redirectUrl:a.LinkedInRedirectUrl}:[],t.HasGitHubFed&&o?{credType:m.GitHub,redirectUrl:o.GithubRedirectUrl}:[],t.HasGoogleFed&&r?{credType:m.Google,redirectUrl:r.GoogleRedirectUrl}:[],t.HasFacebookFed&&s?{credType:m.Facebook,redirectUrl:s.FacebookRedirectUrl}:[],t.HasAccessPass?{credType:m.AccessPass}:[],t.HasCertAuth?{credType:m.Certificate,redirectUrl:d.CertAuthUrl,redirectPostParams:Je(e.FlowToken)}:[]);if(Se[PROOF.Type.Email]&&Se[PROOF.Type.SMS]&&Se[PROOF.Type.Voice]){var p=Me(e,!0,n);p.length>0&&(c.Array.forEach(p,Ve),u=u.concat(p))}return u}function Ge(e,n){var t=[];if(Se[PROOF.Type.Email]&&Se[PROOF.Type.SMS]&&Se[PROOF.Type.Voice]){var i=Me(e,!1,n);i.length>0&&(c.Array.forEach(i,Ve),t=t.concat(i),c.Array.first(i,(function(e){return!e.proof.isNopa}))&&(t=t.concat({credType:m.Password,isDefault:!1})))}return t}function qe(e,n){var t=encodeURIComponent(n).replace(new RegExp("'","g"),"%27");e=p.appendOrReplace(e,"username",t),e=p.appendOrReplace(e,"login_hint",t);var i=fe?g.clone(fe):null;return i&&(i.unsafe_username=n),en(e,i,!0,l.EventIds.Redirect_OtherIdpRedirection)}function ze(e,n,t){t=t||de,t=p.remove(t,"username"),t=p.remove(t,"login_hint");var i=ue?g.clone(ue):null;return n&&(n.IfExistsResult===C.NotExist||n.IsUnmanaged&&n.IfExistsResult===C.Exists)&&Qe(e,n)&&(i?i.unsafe_username=e:(t=p.appendOrReplace(t,"username",encodeURIComponent(e)),t=p.appendOrReplace(t,"login_hint",encodeURIComponent(e)))),en(t,i,!1,l.EventIds.Redirect_MSASignUpPage)}function Ke(e,n,t){var i={},a=We(n,t),o=n.EstsProperties||{};if(!(n.Credentials&&(n.Credentials.FederationRedirectUrl||n.Credentials.LinkedInParams||n.Credentials.GitHubParams||n.Credentials.GoogleParams||n.Credentials.FacebookParams)))return i;switch(a){case m.RemoteNGC:case m.Federation:case m.AccessPass:case m.NoPreferredCredential:o&&o.SamlRequest&&o.RelayState?(i.idpRedirectUrl=n.Credentials.FederationRedirectUrl,i.idpRedirectPostParams={SAMLRequest:o.SamlRequest,RelayState:o.RelayState,unsafe_username:e}):i.idpRedirectUrl=function(e,n){if(me){var t=p.appendOrReplace("?"+me,"wctx","LoginOptions%3D3%26"+p.extract("wctx","?"+me));t=t.substr(1),e=p.append(e,t)}else e=p.appendOrReplace(e,"wctx","LoginOptions%3D3%26"+p.extract("wctx",e));return e=p.appendOrReplace(e,"cbcxt",encodeURIComponent(decodeURIComponent(p.extract("cbcxt")))),e=p.appendOrReplace(e,"username",encodeURIComponent(n)),e=p.appendOrReplace(e,"mkt",encodeURIComponent(decodeURIComponent(p.extract("mkt")))),e=p.appendOrReplace(e,"lc",encodeURIComponent(decodeURIComponent(p.extract("lc"))))}(n.Credentials.FederationRedirectUrl,e);break;case m.CloudFederation:i.idpRedirectUrl=n.Credentials.FederationRedirectUrl;break;case m.LinkedIn:i.idpRedirectUrl=n.Credentials.LinkedInParams.LinkedInRedirectUrl,i.idpRedirectProvider=y.LinkedIn;break;case m.GitHub:i.idpRedirectUrl=n.Credentials.GitHubParams.GithubRedirectUrl,i.idpRedirectProvider=y.GitHub;break;case m.Google:i.idpRedirectUrl=n.Credentials.GoogleParams.GoogleRedirectUrl,i.idpRedirectProvider=y.Google;break;case m.Facebook:i.idpRedirectUrl=n.Credentials.FacebookParams.FacebookRedirectUrl,i.idpRedirectProvider=y.Facebook}return i}function Je(e){var n={ctx:ne,flowToken:e};return Ne&&Fe&&(n[Fe]=Ue),n}function Xe(e){return f.cleanseUsername(e,!0)}function Qe(e,n){var t=se&&f.isSkypeName(e),i=n.EstsProperties||{};return i.DomainType&&i.DomainType!==x.Unknown&&i.DomainType!==x.Consumer?!1===n.IsSignupDisallowed:!n.IsSignupDisallowed&&!t}function Ye(e,n){return{action:P.SwitchView,viewId:e,viewParams:n}}function Ze(e,n,t){return{action:P.ShowError,error:e,isBlockingError:n,bypassCache:t}}function en(e,n,t,i){return{action:P.Redirect,redirectUrl:e,redirectPostParams:n,isIdpRedirect:t,eventId:i}}a.sendAsync=function(e,n,t){var a=Xe(n),r=L[a]?L[a]:null,c=!!r,u=r?o.resolve(r):function(e,n){var t=[I].concat(A||[]);return o.all(t).then((function(t){var a=t[0],r=t[1];return new o((function(t,o){new d({checkApiCanary:ae}).Json({url:oe,eventId:l.EventIds.Api_GetCredentialType},function(e,n,t,i){var a={unsafe_username:e,uaid:$,isOtherIdpSupported:s,isFederationDisabled:q,checkPhones:f.isPhoneNumber(e),isRemoteNGCSupported:z,isCookieBannerShown:K,isFidoSupported:t,originalRequest:ne,country:_e,forceotclogin:V,otclogindisallowed:X,isExternalFederationDisallowed:Y,isRemoteConnectSupported:xe,federationFlags:ke,isSignup:H,flowToken:n};ie&&(a.checkProofForAliases=!0);Q&&(a.noPaOtcDisallowed=!0);Z&&(a.isPassthroughDisallowed=!0);ee&&(a.isPhoneNumberSignupDisallowed=!0);Te&&(a.ignoreViralUsers=!0);ye&&(i=i||{cpa:"",err:"Authenticator not generated."},a.cpa=i.cpa,a.cpa_err=i.err);Pe&&(a.isAccessPassSupported=!0);return a}(e,n,a,r),t,o,i.DefaultRequestTimeout)}))}))}(a,t);return o.all([E,u,I]).then((function(n){var t=n[0],i=n[1],o=n[2];return je(e,a,t,i,o,c)}),He)},a.getResult=function(e,n,t,i){return je(e,Xe(n),!1,t,i,!1)},a.getState=function(){return{cache:L}},a.restoreState=function(e){e&&(L=e.cache||{})},a.cacheResponse=function(e,n){L[Xe(e)]=n},a.getSignupRedirectGctResult=function(e){var n=Xe(e);return ze(n,L[n]?L[n]:null)},a.getOtherIdpRedirectGctResult=function(e,n){return qe(e,Xe(n))},a.getGctSharedData=function(e,n,t){var i={},a=We(e,n),o=e.Credentials||{},s=o.RemoteNgcParams,d=o.FidoParams,l=e.EstsProperties||{},u=s?s.DefaultType:null,p=!!s&&s.ShowAnimatedGifWhilePolling,f=!!s&&s.StyleCredSwitchLinkAsButton,g=r.loadTenantBranding(l.UserTenantBranding||ve),b=r.loadTenantBranding(be),v=Ke(e.Username,e,n);return i.preferredCredential=a,i.location=e.Location,i.fedRedirectParams=v,i.isTapRestrictedWsi=O,i.supportsNativeCredentialRecovery=e.SupportsNativeCredentialRecovery,i.isSignup=e.IfExistsResult===C.NotExist&&Re,e.Display&&(i.displayName=e.Display),i.availableCreds=$e(e,n),i.evictedCreds=Ge(e,n),a===m.OneTimeCode&&(i.otcCredential=c.Array.first(i.availableCreds,(function(e){return e.credType===m.OneTimeCode&&e.proof.otcSent})),i.useEvictedCredentials=!1),i.remoteNgcParams={requestSent:!M&&!t&&a===m.RemoteNGC&&s&&s.hasOwnProperty("Entropy"),sessionIdentifier:s?s.SessionIdentifier:null,entropy:s?s.Entropy:null,defaultType:u,showAnimatedGifWhilePolling:p,styleCredSwitchLinkAsButton:f},i.otcParams={requestSent:(a===m.OneTimeCode||a===m.PublicIdentifierCode)&&e.IfExistsResult!==C.ExistsBothIDPs},d&&d.AllowList&&(i.fidoParams={allowList:d.AllowList}),i.callMetadata=l&&l.CallMetadata?l.CallMetadata:{},i.userTenantBranding=r.getMergedBranding(b,g,he),i},s=!F&&G===k.Both,E=o.resolve(!1),I=u.isFidoSupportedAsync(J),ye&&t.e(28).then(function(){var e=t(501);A=e.computePoPAuthenticator("POST",oe).then((function(e){return{cpa:e,err:null}}),(function(e){return{cpa:"",err:e.message}}))}.bind(null,t))["catch"](t.oe),Le&&t.e(39).then(function(){t(461).getBrowserCoreProvider(Oe,Be).then((function(){}),(function(){R=!0}))}.bind(null,t))["catch"](t.oe)}e.exports=E},function(e,n,t){var i=t(10),a=t(1),o=t(3),r=o.Object,s=a.HttpCode,c=window;n.RequestType={Post:"POST",Get:"GET"};var d=n.State={Unsupported:-1,Unsent:0,Done:4,Timeout:5};n.Event={OnSuccess:"ajaxsuccess",OnError:"ajaxerror",OnTimeout:"ajaxtimeout"},n.Helper={generateRequestString:function(e){var n="";return e&&r.forEach(e,(function(e,t){(t||""===t)&&(n.length>0&&(n+="&"),n+=e+"="+t)})),n}},n.Handler=function(e){var n=this,t="",l=[],u=null,p=null,f=!1,g=!0,m=null,b=!1,v=!!e.contentType,h=!!e.headers,_=!!e.headerValue,S=e.data||"",C=e.targetUrl||"",w=e.requestType||"",x=!1!==e.isAsync,y=e.timeout||0,k=e.username||"",T=e.password||"",P=e.contentType||"application/x-www-form-urlencoded",D=e.withCredentials||!1,E=e.breakCache||!1,I=e.responseType||"",A=e.headers||{},R=e.successCallback,L=e.failureCallback,O=e.timeoutCallback;function B(e,i){e||n.isSuccess()?R&&R(u,t):(i||!n.isSuccess()&&!f)&&L&&L(u,p,p.statusText)}function F(){if(m=null,f=!0,n.cancel(),O){var e={status:s.Timeout,statusText:"timeout"};O(u,e,e.statusText)}}function U(e){if(j(),!n.isComplete()&&!p.canceled&&L){var t={status:s.ClientClosedRequest,statusText:"abort"};L(e,t,t.statusText)}}function N(e){n.isComplete()||V(e)}function M(e){n.isComplete()&&!f&&V(e)}function V(e){j(),t=p.responseText,u=e,B()}function j(){m&&(clearTimeout(m),m=null)}function H(e){j(),t=p.responseText,B(e,!e)}n.sendRequest=function(e){u=e,function(){f=!1;var e="withCredentials"in new XMLHttpRequest;if(!b||e){var t=C;(p=new XMLHttpRequest).onreadystatechange=M,p.addEventListener&&(p.addEventListener("abort",U),p.addEventListener("error",N)),E&&(t=a.QueryString.appendOrReplace(t,"_",(new Date).getTime())),k.length>0?p.open(w,t,x,k,T):p.open(w,t,x),n.clearResponse(),r.forEach(A,(function(e,n){p.setRequestHeader(e,n)})),p.responseType=I,p.withCredentials=D}else c.XDomainRequest?!x||k||T||v||h||_||D?g=!1:((p=new c.XDomainRequest).onerror=function(){H(!1)},p.onload=function(){H(!0)},p.open(w,C),n.clearResponse()):g=!1}(),g&&(y>0&&(m=setTimeout((function(){F.call(n)}),y)),p.send(S))},n.getState=function(){return g?f?d.Timeout:p?p.readyState:d.Unsent:d.Unsupported},n.getStatus=function(){return f?s.Timeout:p?p.status:0},n.cancel=function(){p&&(p.canceled=!0,p.abort())},n.getResponseJson=function(){return t?i.parse(t):{}},n.isComplete=function(){return n.getState()===d.Done||n.getState()===d.Timeout},n.isSuccess=function(){return n.isComplete()&&l[n.getStatus()]},n.clearResponse=function(){t=""},function(){A["Content-type"]=P,l[s.Ok]=!0,l[s.NotModified]=!0,l[s.Timeout]=!1;var e=o.String.extractDomainFromUrl(C);e&&(b=o.String.extractDomainFromUrl(document.location.href)!==e)}()}},function(e,n,t){var i=t(3),a=t(8),o={},r=null;n.setDataPoint=function(e,n,t,i){var o={scope:i||a.DataPointScope.ClientEvent},r=s(e);r.tracingDataPoints=r.tracingDataPoints||{},r.tracingDataPoints[n]={options:o,value:function(){return t}}};var s=n.getTracingContextObject=function(e){return e?(o[e]||(o[e]={}),o[e]):r=r||{}};n.getTracingContextObjects=function(){var e=[];return i.Object.forEach(o,(function(n,t){t&&e.push({viewModel:n,context:t})})),r&&e.push(r),e},n.registerTracingObservables=function(e,n,t){var i=s(e);i.tracingObservables=i.tracingObservables||[],i.tracingObservables.push({options:t,value:n})},n.deleteTracingContextObject=function(e){e?o[e]&&delete o[e]:r=null},n.attachViewLoadClientTracingOptions=function(e,n){s(e).viewLoadClientTracingOptions=n}},function(e,n,t){var i=t(2),a=t(1),o=t(4),r=t(0),s=window,c=r.AgreementType,d=a.Helper,l=r.PaginatedState;function u(e){var n=this,t=e.serverData,a=e.showLogo,r=e.showLinks,u=e.hideFooter,p=e.debugDetails,f=e.showDebugDetails,g=e.hasDarkBackground,m=e.useDefaultBackground,b=e.showFooter,v=e.hideTOU,h=e.hidePrivacy,_=e.termsText,S=e.privacyText,C=e.termsLink,w=e.privacyLink,x=t.str,y=t.fIsHosted,k=t.fIsChinaDc,T=t.urlFooterTOU||t.urlHostedTOULink,P=t.urlFooterPrivacy||t.urlHostedPrivacyLink,D=t.urlImpressum,E=t.a11yConformeLink,I=t.urlGallatinIcp;function A(e,t){y&&!k?n.onAgreementClick(e):s.open(t,"_blank")}n.onAgreementClick=o.create(),n.onShowDebugDetails=o.create(),n.onSwitchView=o.create(),n.showDebugDetails=i.observable(!!f),n.focusMoreInfo=i.observable(!1).extend({notify:"always"}),n.showFooter=b===undefined||b,n.hideTOU=v||!1,n.hidePrivacy=h||!1,n.termsText=d.htmlUnescape(_)||x.MOBILE_STR_Footer_Terms,n.privacyText=d.htmlUnescape(S)||x.MOBILE_STR_Footer_Privacy,n.termsLink=C||T,n.privacyLink=w||P,n.showLogo=a&&!k,n.showLinks=r,n.hideFooter=u,n.showIcpLicense=k,n.debugDetails=p,n.impressumLink=D,n.a11yConformeLink=E,n.icpLink=I,n.hasDarkBackground=g,n.useDefaultBackground=m,n.privacyLink_onClick=function(){A(c.Privacy,n.privacyLink)},n.termsLink_onClick=function(){A(c.Tou,n.termsLink)},n.impressumLink_onClick=function(){A(c.Impressum,n.impressumLink)},n.services_onClick=function(){n.onSwitchView(l.SeeHowDataIsManaged)},n.a11yConformeLink_onClick=function(){A(c.A11yConforme,n.a11yConformeLink)},n.moreInfo_onClick=function(){n.setDebugDetailsState(!n.showDebugDetails()),n.onShowDebugDetails(),n.showDebugDetails()||n.focusMoreInfo(!0)},n.setDebugDetailsState=function(e){n.showDebugDetails(e)},n.focusMoreInfoLink=function(){n.focusMoreInfo(!0)}}i.components.register("footer-control",{viewModel:u,template:t(433),synchronous:!s.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(s.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0}),e.exports=u},function(e,n){n.PlatformTimeout=0,n.Timeout=6e5,n.PromiseTimeout=250,n.SupportedKeyAlgorithms=[-7,-257],n.Error={Internal:"InternalError",FidoCreateCallUnexpectedResponse:"FidoCreateCallUnexpectedResponse"}},function(e,n,t){e.exports=t.p+"content/images/microsoft_logo_white_b71098d9cfa668f68191671a1727b9e9.png"},function(e,n,t){e.exports=t.p+"content/images/microsoft_logo_white_f024dc0422bf3c64a9cb9605a867b798.svg"},function(e,n,t){e.exports=t.p+"content/images/microsoft_logo_ea19b2112f4dfd8e90b4505ef7dcb4f9.png"},function(e,n,t){e.exports=t.p+"content/images/microsoft_logo_564db913a7fa0ca42727161c6d031bef.svg"},function(e,n,t){var i=t(2),a=t(1),o=t(3),r=t(4),s=t(12),c=t(421),d=window,l=o.DateTime,u=a.Helper;function p(e){var n=this,t=null,a=e.debugDetails,o=e.serverData,c=e.isDebugTracingEnabled,d=e.useWiderWidth,p=o.strServiceExceptionMessage,f=o.urlSetDebugMode,g=o.sPOST_Username,m=o.sSigninName,b=o.str,v=o.sErrorCode;function h(){n.sending(!1),n.isDebugTracingEnabled(!n.isDebugTracingEnabled()),n.onSetDebugTracing()}function _(){n.sending(!1),n.debugModeError(b.STR_Error_Details_Debug_Mode_Failure)}n.onCloseBanner=r.create(),n.onSetDebugTracing=r.create(),n.debugModeError=i.observable(),n.isDebugTracingEnabled=i.observable(c),n.sending=i.observable(!1),n.showBanner=i.observable(!0),n.showDebugDetailsCopyMessage=i.observable(!1),n.isFocusActivated=i.observable(!1),n.unsafe_exceptionMessage=null,n.debugDetails=null,n.useWiderWidth=d,n.hideBanner_onClick=function(){n.onCloseBanner(),n.showBanner(!1)},n.setDebugMode_onClick=function(){if(!n.sending()){var e=new s;n.sending(!0),n.debugModeError("");var i={mode:n.isDebugTracingEnabled()?0:1,user:t};e.Json({url:f},i,h,_)}},n.activateFocus=function(){this.isFocusActivated(!0)},t=g||m||"",n.unsafe_exceptionMessage=u.htmlUnescape(p),n.debugDetails=a||{},v&&(n.debugDetails.errorCode=v),n.debugDetails.timestamp||(n.debugDetails.timestamp=l.getUTCString())}c.applyExtensions(i),i.components.register("debug-details-control",{viewModel:p,template:t(422),synchronous:!d.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(d.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0}),e.exports=p},function(e,n,t){var i=t(2),a=t(1),o=t(4),r=t(0),s=window,c=r.DialogId;function d(e){var n=this,t=e.isPlatformAuthenticatorAvailable;n.onRegisterDialog=o.create(),n.onUnregisterDialog=o.create(),n.onShowDialog=o.create(),n.isPlatformAuthenticatorAvailable=t,n.hasFocus=i.observable(!1),n.fidoHelp_onClick=function(){n.onShowDialog(c.FidoHelp).then((function(){n.hasFocus(!0)}))}}i.components.register("fido-help-button-control",{viewModel:d,template:t(453),synchronous:!s.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(s.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0}),e.exports=d},function(e,n,t){var i=t(23);n.applyExtenders=function(e){e.extenders.preventExternalWrite=function(n){var t=n(),i=e.observable(t).extend({notify:"always"});return e.pureComputed({read:function(){return i()},write:function(e){e!==t&&i(t)}}).extend({notify:"always"})},e.extenders.flowTokenUpdate=function(n,t){return e.pureComputed({read:n,write:function(e){e&&(t&&(t.sFTTag&&(t.sFTTag=t.sFTTag.replace(t.sFT,e)),t.sFT=e),n(e))}}).extend({notify:"always"})},e.extenders.logValue=function(e,n){return n&&i.registerTracingObservables(n.viewModel,e,n.tracingOptions),e},e.extenders.loadImageFromUrl=function(n){return e.pureComputed({read:n,write:function(e){if(n()!==e)if(e){var t=new Image;t.onload=function(){n(e)},t.src=e}else n(e)}}).extend({notify:"always"})}}},function(e,n,t){var i=t(2),a=t(1),o=t(4),r=t(0),s=t(17),c=t(9),d=t(20),l=t(16),u=t(3),p=window,f=u.String,g=r.PaginatedState,m=r.CredentialType,b=r.DialogId;function v(e){var n=this,t=e.serverData,a=e.username,r=e.availableCreds||[],u=e.currentCred||{},p=e.flowToken,v=e.showForgotUsername,h=e.hideCredSwitchLink,_=e.ariaDescribedBy,S=e.setFocus,C=t.str,w=t.urlForgotUsername,x=t.sSiteId,y=t.sClientId,k=t.sForwardedClientId,T=t.sNoPaBubbleVersion,P=t.fShowSignInOptionsAsButton,D=t.fOfflineAccountVisible,E=t.fUseCertificateInterstitialView,I=[],A=null,R=i.observable();function L(e){B(e),n.onSetPendingRequest(!1),n.onSwitchView(g.OneTimeCode,!1,A)}function O(e){var t,i=e.getOtcStatus();switch(B(e),i){case l.Status.FTError:t=C.CT_OTC_STR_Error_FlowExpired;break;default:t=A.proof.str.CT_OTCS_STR_Error_SendCodeServer||""}n.onSetPendingRequest(!1),n.credLinkError(t)}function B(e){e&&(e.getFlowToken?(p=e.getFlowToken(),n.onUpdateFlowToken(p)):e.FlowToken&&(p=e.FlowToken,n.onUpdateFlowToken(p)))}n.onSwitchView=o.create(),n.onRedirect=o.create(),n.onRegisterDialog=o.create(),n.onUnregisterDialog=o.create(),n.onShowDialog=o.create(),n.onSetPendingRequest=o.create(),n.onUpdateFlowToken=o.create(),n.credentialCount=0,n.selectedCredType=null,n.selectedCredShownOnlyOnPicker=!1,n.switchToCredId=null,n.switchToCredText=null,n.showSwitchToCredPickerLink=!1,n.showForgotUsername=v,n.isUserKnown=!!u.credType,n.displayHelp=!u.credType,n.hideCredSwitchLink=h,n.isOfflineAccountVisible=D,n.ariaDescribedBy=_,n.setFocus=S,n.isPlatformAuthenticatorAvailable=i.observable(!1),n.credLinkError=i.observable(),n.fidoHelp_onClick=function(){n.onShowDialog(b.FidoHelp)},n.view_onUpdateFlowToken=function(e){p=e},n.switchToCredPicker_onClick=function(){n.onSwitchView(g.CredentialPicker)},n.switchToCred_onClick=function(){var e=A&&A.credType||m.Password;switch(n.credLinkError(""),e){case m.OneTimeCode:if(A.proof.clearDigits)n.onSwitchView(g.ProofConfirmation,!1,A);else{var t=function(){var e={username:f.cleanseUsername(a),proofData:A.proof.data,proofType:A.proof.type,purpose:A.proof.isNopa?l.Purpose.NoPassword:l.Purpose.OtcLogin,flowToken:p,isEncrypted:A.proof.isEncrypted,siteId:x,clientId:y,forwardedClientId:k,noPaBubbleVersion:T,successCallback:L,failureCallback:O};if(e.isEncrypted)switch(A.proof.type){case PROOF.Type.Email:e.proofConfirmation=A.proof.display;break;case PROOF.Type.SMS:case PROOF.Type.Voice:e.proofConfirmation=f.cleanseUsername(A.proof.display).slice(-4)}return e}(),i=new d(t);n.onSetPendingRequest(!0),i.sendRequest()}break;case m.OtherMicrosoftIdpFederation:case m.LinkedIn:case m.GitHub:case m.Google:case m.Facebook:n.onRedirect(A.redirectUrl,A.redirectPostParams||null);break;case m.Certificate:E?n.onSwitchView(g.CertificateInterstitialView):n.onRedirect(A.redirectUrl,A.redirectPostParams||null);break;default:n.onSwitchView(I[e].viewId)}},n.forgotUsername_onClick=function(){document.location.assign(w)},n.getSwitchToCredText=function(){return i.unwrap(n.switchToCredText)},function(){if(I[m.Password]={viewId:g.Password,credId:"idA_PWD_SwitchToPassword",credText:C.CT_RNGC_STR_SwitchToPassword_Link},I[m.RemoteNGC]={viewId:g.RemoteNGC,credId:"idA_PWD_SwitchToRemoteNGC",credText:C.CT_PWD_STR_SwitchToRemoteNGC_Link},I[m.Fido]={viewId:g.Fido,credId:"idA_PWD_SwitchToFido",credText:R},I[m.Certificate]={credId:"idA_PWD_SwitchToCertificate",credText:C.CT_STR_CredentialPicker_Option_Certificate},I[m.OtherMicrosoftIdpFederation]={credId:"useMicrosoftLink",credText:C.CT_PWD_STR_UseMicrosoft_Link},I[m.LinkedIn]={credId:"useLinkedInLink",credText:C.CT_PWD_STR_UseLinkedIn_Link},I[m.GitHub]={credId:"useGitHubLink",credText:C.CT_PWD_STR_UseGitHub_Link},I[m.Google]={credId:"useGoogleLink",credText:C.CT_PWD_STR_UseGoogle_Link},I[m.Facebook]={credId:"useGoogleLink",credText:C.CT_PWD_STR_UseFacebook_Link},I[m.Federation]={viewId:g.IdpRedirect,credId:"redirectToIdpLink",credText:C.CT_RNGC_STR_SwitchToFederated_Link},I[m.RemoteLogin]={viewId:g.RemoteLoginPolling,credId:"remoteLoginLink",credText:C.CT_PWD_STR_RemoteLoginLink},I[m.OneTimeCode]={viewId:g.OneTimeCode,credId:"otcLoginLink",credText:C.CT_PWD_STR_SwitchToOTC_Link},I[m.AccessPass]={viewId:g.AccessPass,credId:"accessPassLink",credText:C.CT_PWD_STR_Login_SwitchToAccessPassLink},R(C.CT_PWD_STR_SwitchToFidoCrossPlatform_Link),i.utils.arrayForEach(r,(function(e){if(I[e.credType]){var t=e.credType===u.credType,i=e.credType===m.OneTimeCode,a=t&&i&&e.proof.data===u.proof.data,o=t&&i&&e.proof.type===u.proof.type;(!t||i&&!a||i&&!o)&&(n.credentialCount++,A=e)}e.credType===m.Fido&&c.throwUnhandledExceptionOnRejection(s.isPlatformAuthenticatorAvailable().then(null,(function(){return!1})).then((function(e){e&&(R(C.CT_PWD_STR_SwitchToFido_Link),n.isPlatformAuthenticatorAvailable(!0))}))),e.credType===m.OfflineAccount&&(n.credentialCount++,n.selectedCredShownOnlyOnPicker=!0)})),A&&1===n.credentialCount&&(n.selectedCredType=A.credType,n.selectedCredShownOnlyOnPicker=!!A.shownOnlyOnPicker,n.switchToCredId=I[n.selectedCredType||m.Password].credId,n.switchToCredText=I[n.selectedCredType||m.Password].credText,n.selectedCredType===m.OneTimeCode))switch(A.proof.type){case PROOF.Type.Email:n.switchToCredText=f.format(C.CT_OTC_STR_SwitchToOtc_EmailLink,A.proof.display);break;case PROOF.Type.SMS:n.switchToCredText=f.format(C.CT_OTC_STR_SwitchToOtc_SmsLink,A.proof.display);break;case PROOF.Type.Voice:n.switchToCredText=f.format(C.CT_OTC_STR_SwitchToOtc_VoiceLink,A.proof.display)}n.showSwitchToCredPickerLink=(!P||n.isUserKnown)&&(n.credentialCount>1||1===n.credentialCount&&(v||n.selectedCredShownOnlyOnPicker))}()}i.components.register("cred-switch-link-control",{viewModel:v,template:t(452),synchronous:!p.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(p.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0}),e.exports=v},function(e,n,t){var i=t(2),a=t(1),o=t(3),r=window,s=o.String,c=a.Helper;function d(e){var n=this,t=e.serverData,i=e.title,a=e.subtitle,o=!1!==e.useSubtitle,r=e.isSignUpView,d=e.headerDescription,l=t.oAppCobranding,u=t.str,p=t.fIsSelfServiceSignupUxEnabled,f=t.sCompanyDisplayName,g=t.fAllowLoginTextCustomizations,m=t.fUseNonMicrosoftDefaultBrandingForCiam;n.title=null,n.subtitle=null,n.headerDescription=null,function(){var e=!(!l||!l.friendlyAppName);if(n.isSubtitleVisible=o&&(e||a),n.title=i,n.subtitle=a,p){var t,b=c.htmlUnescape(f);g&&d?n.headerDescription=d:f&&(t=r?u.STR_SSSU_SignUp_HeaderDescription:u.STR_SSSU_SignIn_HeaderDescription,n.headerDescription=m?s.format(t,b):s.format(t,f))}}()}i.components.register("header-control",{viewModel:d,template:t(455),synchronous:!r.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(r.ServerData.iMaxStackForKnockoutAsyncComponents)}),e.exports=d},function(e,n,t){var i=t(2),a=t(3).String;e.exports=function(e,n){var t=this,o=null;t.placeholderTextboxMethods=i.observable(),t.value=i.observable(n||""),t.focused=i.observable(!1).extend({notify:"always"}),t.error=e,t.textbox_onUpdateFocus=function(e){t.focused(e)},t.getTrimmedValue=function(e){var n=a.trim(t.value()||"");return e&&e>0&&(n=n.substring(0,e)),n},t.placeholderTextboxMethods.subscribe((function(e){e&&!o&&function(e){var n=t.value.peek();e.toggleVisibility(!n),o=t.value.subscribe((function(n){e.toggleVisibility(!n)}))}(e)}))}},function(e,n,t){var i=t(2),a=t(1),o=t(4),r=window;function s(e){var n=this,t="placeholder"in document.createElement("input"),r=e.serverData,s=e.hintText,c=e.hintCss||"placeholder",d=r.fIsHosted;n.onUpdateFocus=o.create(),n.hintText=s,n.usePlaceholderAttribute=!1,n.placeholderVisible=i.observable(!0),n.hintCss=i.pureComputed((function(){var e={};return c&&i.utils.arrayForEach(c.split(" "),(function(n){e[n]=!0})),e})),n.placeholderText=i.pureComputed((function(){if(n.usePlaceholderAttribute)return n.hintText})),n.toggleVisibility=function(e){n.placeholderVisible(e)},n.placeholder_onClick=function(){n.onUpdateFocus(!0)},t&&a.Helper.isPlaceholderAttributeAllowed(d)&&(n.usePlaceholderAttribute=!0)}i.components.register("placeholder-textbox-field",{viewModel:s,template:t(451),synchronous:!r.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(r.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0}),e.exports=s},function(e,n,t){e.exports=t.p+"content/images/picker_account_msa_7a63b3ce03943629f052226aaa378291.png"},function(e,n,t){e.exports=t.p+"content/images/picker_account_msa_3b879963b4f70829fd7a25cbc9519792.svg"},function(e,n,t){var i=t(2);n.errorComputed=function(e){var n=i.observable(),t=i.observable(),a=i.pureComputed(e).extend({notify:"always"}),o=i.pureComputed((function(){if(a())return a();if(n()){var e=n();return n(null),e}return null}));return i.utils.extend(i.pureComputed((function(){if(o())return o();if(t()){var e=t();return t(null),e}return null})),{isBlocking:function(){return null!==o()},setBlockingError:function(e){n(e)},setNonBlockingError:function(e){t(e)},setError:function(e,i){i?n(e):t(e)},clearNonBlockingError:function(){t(null),t.valueHasMutated()}})}},function(e,n){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(i){"object"==typeof window&&(t=window)}e.exports=t},function(e,n){var t=n.stringToArrayBuffer=function(e){for(var n=new ArrayBuffer(e.length),t=new Uint8Array(n),i=0,a=e.length;i0?(f.forEach(a,(function(e){var i={ssoUniqueId:e.unique_id,displayName:e.display_name||"",name:e.upn,isWindowsSso:!0,isSignedIn:!0,url:n};t.push(i)})),h("User list processed. List: "+i.stringify(t))):h("User list is empty.");return t}(e.userList,n);return t.length>0?{newSessions:t}:s.reject("noUsers")}}))}():"chrome"===r&&(e=new c({logMessage:h,logDataPoint:_},t.nonce,"login.microsoftonline.com",a,o).getCookiesAsync().then((function(e){if(!e||!e.length)return s.reject(new c.Error("PageException","Extension returned no cookies"));for(var n=0,t=e.length;n0&&(t.timing.customLoadEventEnd=a));e.getEntries&&(t.entries=i.utils.arrayMap(e.getEntries(),d));n.connection&&(t.connection=d(n.connection));return t}();try{o.SendTelemetryPerfData(e,"LPerf")}catch(n){}}()}),0)},n.setCustomPageLoadCompletedTime=function(e){a=e||(new Date).getTime()},t||setTimeout((function(){n.setPageLoadCompleted()}),100)}i.components.register("instrumentation-control",{viewModel:s,template:t(339),synchronous:!r.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(r.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0}),e.exports=s},function(e,n,t){var i=t(2),a=t(1),o=a.Helper,r=window;function s(e){var n=this,t=r.ServerData,i=e.bannerLogoUrl,a=e.isChinaDc,s=t.fIsCiamUserFlowUx,c=t.sCompanyDisplayName,d=t.fUseNonMicrosoftDefaultBrandingForCiam;n.bannerLogoUrl=i,n.isChinaDc=a,n.isCiamUserFlowUx=s,n.bannerLogoText=null,function(){if(d){var e=o.htmlUnescape(c);n.bannerLogoText=e.toUpperCase()}}()}i.components.register("logo-control",{viewModel:s,template:t(340),synchronous:!r.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(r.ServerData.iMaxStackForKnockoutAsyncComponents)}),e.exports=s},function(e,n,t){var i=t(2),a=t(3),o=t(1),r=t(4),s=null,c=null,d=t(344),l=window,u=null;function p(e,n){var c=this,l=!1,p=e.serverData,f=e.showButtons||!1,g=e.showFooterLinks,m=!1!==e.showFooterLogo,b=e.useWizardBehavior,v=e.hideFromAria||i.observable(!1),h=p.iProductIcon;p.fEnableBranding;function _(e,n){var t=["Microsoft","OneDrive","Skype","Bing","Xbox","Word","Outlook","Office","Excel","PowerPoint","Cortana","SkypeDialer","Health","MileIQ","Beam","MSN","Minecraft"];return(e<0||e>=t.length)&&(e=0),a.String.format("./AppCentipede_{0}{1}.{2}",t[e],n?"_white":"",l?"svg":"png")}c.useLayoutTemplates=!0,c.templateNodes={},c.showButtons=f,c.footer={showLinks:g,showLogo:m},c.centipede={getLightUrl:function(){return d(_(h,!0))},getDarkUrl:function(){return d(_(h,!1))}},c.hideFromAria=v,c.isInternalModeEnabled="1"===o.QueryString.extract("psi"),c.viewModel=null,c.viewAgreement=i.observable(!1),c.agreementType=i.observable(),c.isLightboxTemplate=i.observable(!0),c.isVerticalSplitTemplate=i.observable(!1),c.isTemplateLoaded=i.observable(!1),c.onFooterAgreementClick=r.create(),c.footer_agreementClick=function(e){c.onFooterAgreementClick(e)},c.agreement_backButtonClick=function(){c.viewAgreement(!1)},c.showAgreement=function(e){c.agreementType(e),c.viewAgreement(!0)},c.updateBranding=function(e){var n;n=e,s.getLayoutTemplateConfig(n).layoutType===u.VerticalSplit?(c.isLightboxTemplate(!1),c.isVerticalSplitTemplate(!0),t.e(37).then(function(){t(502),c.isTemplateLoaded(!0)}.bind(null,t))["catch"](t.oe)):(c.isVerticalSplitTemplate(!1),c.isLightboxTemplate(!0))},function(){if(l=o.Helper.isSvgImgSupported(),n&&i.utils.arrayForEach(n,(function(e){e.id&&(c.templateNodes[e.id]=e.childNodes)})),b){0}}()}s=t(14),c=t(0),u=c.LayoutTemplateType,i.components.register("master-page",{viewModel:{createViewModel:function(e,n){return new p(e,n.templateNodes)}},template:t(413),synchronous:!l.ServerData.iMaxStackForKnockoutAsyncComponents||o.Helper.isStackSizeGreaterThan(l.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0}),e.exports=p},function(e,n,t){var i=t(2),a=t(1),o=window;function r(){var e=this;e.isAppBranding=i.observable(!1),e.backgroundStyle=i.observable(),e.smallImageUrl=i.observable(),e.backgroundImageUrl=i.observable(),e.useImageMask=i.observable(!1),e.useTransparentLightBox=i.observable(!1),e.updateBranding=function(n){e.isAppBranding(!!n.backgroundLogoUrl),e.backgroundStyle(n.color),e.smallImageUrl(n.smallImageUrl),e.backgroundImageUrl(n.backgroundImageUrl),e.useImageMask(!!n.useImageMask),e.useTransparentLightBox(!!n.useTransparentLightBox)}}i.components.register("background-image-control",{viewModel:r,template:t(416),synchronous:!o.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(o.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0}),e.exports=r},function(e,n,t){var i=t(2),a=t(1),o=window;i.components.register("environment-banner-control",{template:t(417),synchronous:!o.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(o.ServerData.iMaxStackForKnockoutAsyncComponents)})},function(e,n,t){var i=t(2),a=t(1),o=window;function r(e){var n=e.isVerticalSplitTemplate,t=e.hasHeader||!1;this.isVerticalSplitTemplate=n||!1,this.hasHeader=!!o.ServerData.fFixLightboxHeaderMargin&&t}i.components.register("content-control",{viewModel:r,template:t(418),synchronous:!o.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(o.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0}),e.exports=r},function(e,n,t){var i=t(2),a=t(0),o=t(1),r=t(434),s=t(4),c=t(9),d=t(19),l=t(11).getInstance(window.ServerData),u=t(8),p=window,f=document,g=f.head,m=a.PaginatedState.Previous,b=a.AnimationState,v=a.AnimationName,h=a.AnimationTimeout,_=o.Helper;function S(e,n,t,a){var o=this,S=p.ServerData,C=e.initialViewId||null,w=e.currentViewId||null,x=e.initialSharedData||{},y=e.initialError,k=e.enableCssAnimation,T=e.disableAnimationIfAnimationEndUnsupported,P=d.getInstance(S),D=e.saveSharedDataOnBack||!1,E=S.fRemoveMinWidthFromLightBox,I=S.fDisplayResourceAppConsentDetails,A=S.fPassTelephonyAuthMethod,R=t,L=a,O=null,B=b.End,F=!1,U=null,N=null,M=!1,V=null,j=i.observable();function H(){var e=o.currentViewIndex();return R[e]?R[e]():null}function W(e){j(null),o.view_onSetIdentityBackButtonState(),o.isInitialState=O.getState().isInitialState,o.onShowView(L[e].metadata,e),j(e),o.hasInitialViewShown(!0);var n=document.querySelectorAll("[data-viewid]");if(P&&n&&n.length>0)try{P.applyClientEventBindings(n[0])}catch(t){}}function $(e,n){var t=j(),i=o.onLoadView(e);if(P&&t)try{P.set("viewId",t,!0),P.post(!0)}catch(a){}i?c.throwUnhandledExceptionOnRejection(i.then((function(){G(t,e,n)}))):G(t,e,n)}function G(e,n,t){M&&(e!==n||t)&&(!y||e)?(T&&null===U&&(V=setTimeout((function(){M=!1,o.hidePaginatedView(!1),o.hidePaginatedView.hideSubView(!1),o.onSetLightBoxFadeIn(!1),B=b.End,$(n)}),h)),U=e,N=n,B=b.Begin,o.view_onAnimationEnd()):(o.animate(v.None),o.view_onAnimationEnd(),W(n),o.unsafe_displayName(o.showIdentityBanner()?_.htmlUnescape(o.sharedData.displayName||p.ServerData.sPOST_Username):""))}function q(e){var n=H();if(n){e&&n.saveSharedData(o.sharedData);var t=n.getState(),i=O.getState();i.viewState=t,O.replaceState(i)}}function z(){F=!0,q(!1)}function K(){F=!1}function J(e){o.initialError=null,$(e.viewId,e.forceTransitionAnimation)}o.views=n,o.viewInterfaces=t,o.sharedData=x,o.initialError=y,o.isInitialState=!1,o.showLogo=e.showLogo||!1,o.bannerLogoUrl=e.bannerLogoUrl||"",o.isBackButtonVisible=i.observable(!1),o.isBackButtonFocused=i.observable(!1),o.backButtonDescribedBy=i.observable(null),o.hasInitialViewShown=i.observable(!1),o.unsafe_displayName=i.observable(),o.hidePaginatedView=i.utils.extend(i.observable(!1),{hideSubView:i.observable(!1)}),o.animate=i.utils.extend(i.observable(v.None),{animateBanner:i.observable(!1),isSlideOutNext:i.pureComputed((function(){return o.animate()===v.SlideOutNext})),isSlideInNext:i.pureComputed((function(){return o.animate()===v.SlideInNext})),isSlideOutBack:i.pureComputed((function(){return o.animate()===v.SlideOutBack})),isSlideInBack:i.pureComputed((function(){return o.animate()===v.SlideInBack}))}),o.showIdentityBanner=i.pureComputed((function(){var e=j();return e&&L[e].metadata&&L[e].metadata.showIdentityBanner})),o.currentViewIndex=i.pureComputed((function(){var e=j();return L[e]&&!isNaN(L[e].index)?L[e].index:-1})),o.onCancel=s.create(),o.onUnload=s.create(),o.onLoadView=s.create(),o.onShowView=s.create(),o.onSetLightBoxFadeIn=s.create(),o.onAnimationStateChange=s.create(),o.dispose=function(){o.onUnload(O.getState().viewId),O.dispose()},o.setDefaultFocus=function(){var e=H();e&&e.setDefaultFocus&&e.setDefaultFocus()},o.getCurrentViewId=function(){return j()},o.getSharedData=function(){return o.sharedData||{}},o.getSharedDataItem=function(e){return o.getSharedData()[e]},o.getCurrentView=function(){return{viewId:j(),viewInterface:H()}},o.setSharedDataItem=function(e,n){o.sharedData||(o.sharedData={}),o.sharedData[e]=n},o.saveSharedDataOnCurrentView=function(){var e=H();e&&e.saveSharedData(o.sharedData)},o.currentViewHasMetadata=function(e){var n=j();return!!L[n]&&!!L[n].metadata[e]},o.submitCurrentView=function(){var e=H();e&&e.submit&&e.submit()},o.identityBanner_onBackButtonClick=function(){(I||A)&&D&&o.saveSharedDataOnCurrentView(),o.view_onSwitchView(m)},o.restoreState=function(e){var n=O.getState();e&&e!==w&&(n={viewId:w=e},O.pushState(n)),setTimeout((function(){$(n.viewId)}),0)},o.view_onLoad=function(){var e=O.getState(),n=H();if(n){n.restoreState(e?e.viewState:null);var t=o.getCurrentViewId();if(l.setViewViewModel(n,t,L[t].metadata),l.logViewState(n),P&&t)try{P.set("viewId",t,!0)}catch(i){}o.setDefaultFocus()}},o.view_onSwitchView=function(e,n,t){l.logEvent({eventType:"view_onSwitchView",eventId:u.EventIds.Event_PaginationControl_ViewSwitch,eventLevel:u.EventLevel.Critical,eventArgs:{viewId:e,replaceHistory:n},eventOptions:{hidingMode:u.HidingMode.None}}),l.switchView(H());var i=O.getState()||{};t&&(i.forceTransitionAnimation=t,O.replaceState(i)),o.initialError=null,e===m?(F=!0,i.isInitialState?o.onCancel():O.goBack()):(F=!1,q(!0),(n|=e===j()&&!1!==n)?(i.viewId=e,i.viewState=null,O.replaceState(i)):(i={viewId:e},O.pushState(i)),$(e,t))},o.view_onCancel=function(){o.onCancel()},o.view_onSetIdentityBackButtonState=function(e,n,t){o.isBackButtonVisible(e||!1),o.isBackButtonFocused(n||!1),o.backButtonDescribedBy(t||null)},o.view_onAnimationEnd=function(){switch(o.onAnimationStateChange(B,F,!!U),B){case b.Begin:o.animate(v.None),o.animate.animateBanner(!U||L[U].metadata.showIdentityBanner!==L[N].metadata.showIdentityBanner),B=b.RenderNewView,U?o.animate(F?v.SlideOutBack:v.SlideOutNext):o.view_onAnimationEnd();break;case b.RenderNewView:W(N),o.animate.animateBanner()?o.hidePaginatedView(!0):o.hidePaginatedView.hideSubView(!0),o.unsafe_displayName(o.showIdentityBanner()?_.htmlUnescape(o.sharedData.displayName||p.ServerData.sPOST_Username):""),B=b.AnimateNewView,U?setTimeout(o.view_onAnimationEnd,0):o.onSetLightBoxFadeIn(!0);break;case b.AnimateNewView:V&&(clearTimeout(V),V=null),B=b.End,o.hidePaginatedView(!1),o.hidePaginatedView.hideSubView(!1),o.animate(F?v.SlideInBack:v.SlideInNext)}},function(){M=k&&_.isCSSAnimationSupported(),O=new r(z,K,J);var e=null;if(null===C&&null===w||(C=null===C?w:C,w=null===w?C:w,e={viewId:C,isInitialState:!0},O.replaceState(e)),w!==C&&(e={viewId:w},O.pushState(e)),E){var n=f.createElement("style");n.type="text/css",n.innerHTML=".inner,.promoted-fed-cred-box,.sign-in-box,.new-session-popup-v2sso,.debug-details-banner,.vertical-split-content{min-width:0;}",g.appendChild(n)}}()}function C(e){var n={};return i.utils.arrayForEach(["wide","hideLogo","hideDefaultLogo","dynamicBranding","hideLwaDisclaimer","showIdentityBanner","showFedCredButton","showSignupFedCredButton","hidePageLevelTitleAndDesc","extraDebugDetails"],(function(t){var i=e.getAttribute("data-"+t);i&&(n[t]="true"===i.toLowerCase())})),n}i.components.register("pagination-control",{viewModel:{createViewModel:function(e,n){var t=[],a=[],o={},r=0;return i.utils.arrayForEach(n.templateNodes,(function(e){var n;1===e.nodeType&&null!==(n=e.getAttribute("data-viewid"))&&(t.push(e),a.push(i.observable()),n=isNaN(n)?n:parseInt(n),o[n]={index:r++,metadata:C(e)})})),new S(e,t,a,o)}},template:t(435),synchronous:!p.ServerData.iMaxStackForKnockoutAsyncComponents||o.Helper.isStackSizeGreaterThan(p.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0})},function(e,n,t){var i=t(2),a=t(1),o=t(4),r=window;function s(e){var n=e.isPlatformAuthenticatorAvailable;this.isPlatformAuthenticatorAvailable=n,this.onRegisterDialog=o.create(),this.onUnregisterDialog=o.create()}i.components.register("fido-help-dialog-content-control",{viewModel:s,template:t(454),synchronous:!r.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(r.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0}),e.exports=s},function(e,n,t){var i=t(2),a=t(1),o=t(4),r=window;function s(e,n){var t=this,i=e.dialogId,a=e.data,r=n;t.onRegisterDialog=o.create(),t.onUnregisterDialog=o.create(),t.dispose=function(){t.onUnregisterDialog(i)},t.onRegisterDialog(i,{templateNodes:r,data:a})}i.components.register("dialog-content-control",{viewModel:{createViewModel:function(e,n){return new s(e,n.templateNodes)}},template:"\x3c!-- --\x3e",synchronous:!r.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(r.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0}),e.exports=s},function(e,n,t){e.exports=t.p+"content/images/documentation_white_9ad8d18b22266935b952ba85a2fb252c.png"},function(e,n,t){e.exports=t.p+"content/images/documentation_white_7849019e114f05613d891a7b3805dda2.svg"},function(e,n,t){e.exports=t.p+"content/images/documentation_136bc3add990843012b1ec60612de803.png"},function(e,n,t){e.exports=t.p+"content/images/documentation_dae218aac2d25462ae286ceba8d80ce2.svg"},function(e,n,t){var i=window;t.p=i.ServerData.urlCdn,i.ServerData.urlImagePath=i.ServerData.urlCdn+"images/";var a=t(2),o=t(65),r=t(0),s=t(1),c=t(68),d=t(7),l=t(69);t(19).getInstance(window.ServerData);var u=r.LoginMode,p=s.Helper,f=s.QueryString,g=s.Cookies,m=d.LoginOption,b=!1;function v(e){!function(e){if(e){(new Image).src=e}}(e.urlIPv6Experiment),function(e){if(e.fUpgradeEVCert&&null!==new RegExp("Windows NT ([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent)&&parseFloat(RegExp.$1)<6&&p.getIEVersion()>=7)try{document.getElementById("ev").src=e.urlEVCertUpgrade}catch(n){}}(e)}o.applyExtensions(a),a.utils.registerEventHandler(i,"load",(function(){var e=i.ServerData;if(e.str=c.getStrings("str",e),e.html=c.getStrings("html",e),e.arrProofData=c.getStrings("proofData"),!b&&!function(e){try{if(top!==self&&top.location.replace(self.location.href),2===e.iFedState&&e.urlFed)return function(e,n,t,i){var a=i.sFedQS;n===m.NothingChecked&&(a=f.appendOrReplace("?"+a,"wctx","LoginOptions%3D3%26"+f.extract("wctx","?"+a)).substr(1));e=f.appendOrReplace(e,"cbcxt",encodeURIComponent(decodeURIComponent(f.extract("cbcxt")))),e=f.appendOrReplace(e,"vv",encodeURIComponent(decodeURIComponent(f.extract("cbcxt")))),e=f.appendOrReplace(e,"username",encodeURIComponent(t)),e=f.appendOrReplace(e,"mkt",encodeURIComponent(decodeURIComponent(f.extract("mkt")))),e=f.appendOrReplace(e,"lc",encodeURIComponent(decodeURIComponent(f.extract("lc")))),document.location.replace(f.append(e,a))}(e.urlFed,e.iDefaultLoginOptions,decodeURIComponent(f.extract("username")),e),!0;if(!g.enabled())return document.location=e.urlNoCookies,!0}catch(n){e.iLoginMode=u.GenericError}return!1}(e))switch(b=!0,e.iLoginMode){case u.GenericError:case u.GenericErrorMobile:case u.GenericErrorHost:case u.SwitchUser:case u.SwitchUserMobile:case u.SwitchUserHost:case u.InviteBlocked:case u.ServiceBlocked:case u.IDPFailed:case u.HIP_Lockout:case u.HIP_LockoutMobile:case u.HIP_LockoutHost:case u.BindFailed:t.e(1).then(function(){var n=t(463);document.body.appendChild(document.createElement("div")).innerHTML=t(464),a.applyBindings(new n(e)),v(e)}.bind(null,t))["catch"](t.oe);break;default:document.body.appendChild(document.createElement("div")).innerHTML=t(327),a.applyBindings(new l(e)),v(e)}}))},function(e,n,t){var i,a,o; /*! * Knockout JavaScript library v3.5.1 * (c) The Knockout.js team - http://knockoutjs.com/ * License: MIT (http://www.opensource.org/licenses/mit-license.php) */!function(r){var s=this||(0,eval)("this"),c=s.document,d=s.navigator,l=s.jQuery,u=s.JSON;l||"undefined"==typeof jQuery||(l=jQuery),function(r){a=[n,t],(o="function"==typeof(i=r)?i.apply(n,a):i)===undefined||(e.exports=o)}((function(e,n){function t(e,n){return(null===e||typeof e in C)&&e===n}function i(e,n){var t;return function(){t||(t=S.a.setTimeout((function(){t=r,e()}),n))}}function a(e,n){var t;return function(){clearTimeout(t),t=S.a.setTimeout(e,n)}}function o(e,n){n&&"change"!==n?"beforeChange"===n?this.pc(e):this.gb(e,n):this.qc(e)}function p(e,n){null!==n&&n.s&&n.s()}function f(e,n){var t=this.qd,i=t[T];i.ra||(this.Qb&&this.mb[n]?(t.uc(n,e,this.mb[n]),this.mb[n]=null,--this.Qb):i.I[n]||t.uc(n,e,i.J?{da:e}:t.$c(e)),e.Ja&&e.gd())}var g,m,b,v,h,_,S=void 0!==e?e:{};S.b=function(e,n){for(var t=e.split("."),i=S,a=0;aS.a.A(n,e)&&n.push(e)})),n},Mb:function(e,n,t){var i=[];if(e)for(var a=0,o=e.length;ai?t&&e.push(n):t||e.splice(i,1)},Ba:o,extend:n,setPrototypeOf:t,Ab:o?t:n,P:e,Ga:function(e,n,t){if(!e)return e;var i,o={};for(i in e)a.call(e,i)&&(o[i]=n.call(t,e[i],i,e));return o},Tb:function(e){for(;e.firstChild;)S.removeNode(e.firstChild)},Yb:function(e){for(var n=((e=S.a.la(e))[0]&&e[0].ownerDocument||c).createElement("div"),t=0,i=e.length;tv?e.setAttribute("selected",n):e.selected=n},Db:function(e){return null===e||e===r?"":e.trim?e.trim():e.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ud:function(e,n){return e=e||"",!(n.length>e.length)&&e.substring(0,n.length)===n},vd:function(e,n){if(e===n)return!0;if(11===e.nodeType)return!1;if(n.contains)return n.contains(1!==e.nodeType?e.parentNode:e);if(n.compareDocumentPosition)return 16==(16&n.compareDocumentPosition(e));for(;e&&e!=n;)e=e.parentNode;return!!e},Sb:function(e){return S.a.vd(e,e.ownerDocument.documentElement)},kd:function(e){return!!S.a.Lb(e,S.a.Sb)},R:function(e){return e&&e.tagName&&e.tagName.toLowerCase()},Ac:function(e){return S.onError?function(){try{return e.apply(this,arguments)}catch(n){throw S.onError&&S.onError(n),n}}:e},setTimeout:function(e,n){return setTimeout(S.a.Ac(e),n)},Gc:function(e){setTimeout((function(){throw S.onError&&S.onError(e),e}),0)},B:function(e,n,t){var i=S.a.Ac(t);if(t=b[n],S.options.useOnlyNativeEvents||t||!l)if(t||"function"!=typeof e.addEventListener){if("undefined"==typeof e.attachEvent)throw Error("Browser doesn't support addEventListener or attachEvent");var a=function(n){i.call(e,n)},o="on"+n;e.attachEvent(o,a),S.a.K.za(e,(function(){e.detachEvent(o,a)}))}else e.addEventListener(n,i,!1);else m||(m="function"==typeof l(e).on?"on":"bind"),l(e)[m](n,i)},Fb:function(e,n){if(!e||!e.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var t;if(t=!("input"!==S.a.R(e)||!e.type||"click"!=n.toLowerCase())&&("checkbox"==(t=e.type)||"radio"==t),S.options.useOnlyNativeEvents||!l||t)if("function"==typeof c.createEvent){if("function"!=typeof e.dispatchEvent)throw Error("The supplied element doesn't support dispatchEvent");(t=c.createEvent(g[n]||"HTMLEvents")).initEvent(n,!0,!0,s,0,0,0,0,0,!1,!1,!1,!1,0,e),e.dispatchEvent(t)}else if(t&&e.click)e.click();else{if("undefined"==typeof e.fireEvent)throw Error("Browser doesn't support triggering events");e.fireEvent("on"+n)}else l(e).trigger(n)},f:function(e){return S.O(e)?e():e},bc:function(e){return S.O(e)?e.v():e},Eb:function(e,n,t){var a;n&&("object"==typeof e.classList?(a=e.classList[t?"add":"remove"],S.a.D(n.match(h),(function(n){a.call(e.classList,n)}))):"string"==typeof e.className.baseVal?i(e.className,"baseVal",n,t):i(e,"className",n,t))},Bb:function(e,n){var t=S.a.f(n);null!==t&&t!==r||(t="");var i=S.h.firstChild(e);!i||3!=i.nodeType||S.h.nextSibling(i)?S.h.va(e,[e.ownerDocument.createTextNode(t)]):i.data=t,S.a.Ad(e)},Yc:function(e,n){if(e.name=n,7>=v)try{var i=e.name.replace(/[&<>'"]/g,(function(e){return"&#"+e.charCodeAt(0)+";"}));e.mergeAttributes(c.createElement(""),!1)}catch(t){}},Ad:function(e){9<=v&&(e=1==e.nodeType?e:e.parentNode).style&&(e.style.zoom=e.style.zoom)},wd:function(e){if(v){var n=e.style.width;e.style.width=0,e.style.width=n}},Pd:function(e,n){e=S.a.f(e),n=S.a.f(n);for(var t=[],i=e;i<=n;i++)t.push(i);return t},la:function(e){for(var n=[],t=0,i=e.length;t",""],tbody:m,tfoot:m,tr:[2,"","
"],td:b=[3,"","
"],th:b,option:v=[1,""],optgroup:v},_=8>=S.a.W,S.a.ua=function(e,n){var t;if(l){if(l.parseHTML)t=l.parseHTML(e,n)||[];else if((t=l.clean([e],n))&&t[0]){for(var i=t[0];i.parentNode&&11!==i.parentNode.nodeType;)i=i.parentNode;i.parentNode&&i.parentNode.removeChild(i)}}else{(t=n)||(t=c),i=t.parentWindow||t.defaultView||s;var a,o=S.a.Db(e).toLowerCase(),r=t.createElement("div");for(a=(o=o.match(/^(?:\x3c!--.*?--\x3e\s*?)*?<([a-z]+)[\s>]/))&&h[o[1]]||g,o=a[0],a="ignored
"+a[1]+e+a[2]+"
","function"==typeof i.innerShiv?r.appendChild(i.innerShiv(a)):(_&&t.body.appendChild(r),r.innerHTML=a,_&&r.parentNode.removeChild(r));o--;)r=r.lastChild;t=S.a.la(r.lastChild.childNodes)}return t},S.a.Md=function(e,n){var t=S.a.ua(e,n);return t.length&&t[0].parentElement||S.a.Yb(t)},S.a.fc=function(e,n){if(S.a.Tb(e),null!==(n=S.a.f(n))&&n!==r)if("string"!=typeof n&&(n=n.toString()),l)l(e).html(n);else for(var t=S.a.ua(n,e.ownerDocument),i=0;in){if(5e3<=++a){o=i,S.a.Gc(Error("'Too much recursion' after processing "+a+" task groups."));break}n=i}try{e()}catch(r){S.a.Gc(r)}}}function n(){e(),o=i=t.length=0}var t=[],i=0,a=1,o=0;return{scheduler:s.MutationObserver?function(e){var n=c.createElement("div");return new MutationObserver(e).observe(n,{attributes:!0}),function(){n.classList.toggle("foo")}}(n):c&&"onreadystatechange"in c.createElement("script")?function(e){var n=c.createElement("script");n.onreadystatechange=function(){n.onreadystatechange=null,c.documentElement.removeChild(n),n=null,e()},c.documentElement.appendChild(n)}:function(e){setTimeout(e,0)},zb:function(e){return i||S.na.scheduler(n),t[i++]=e,a++},cancel:function(e){(e-=a-i)>=o&&et[0]?o+t[0]:t[0]),o),o=1===r?o:Math.min(n+(t[1]||0),o),r=n+r-2,l=Math.max(o,r);for(var u=[],p=[],f=2;nn;n++)e=e();return e}))},S.toJSON=function(e,n,t){return e=S.ad(e),S.a.hc(e,n,t)},n.prototype={constructor:n,save:function(e,n){var t=S.a.A(this.keys,e);0<=t?this.values[t]=n:(this.keys.push(e),this.values.push(n))},get:function(e){return 0<=(e=S.a.A(this.keys,e))?this.values[e]:r}}}(),S.b("toJS",S.ad),S.b("toJSON",S.toJSON),S.Wd=function(e,n,t){function i(n){var i=S.xb(e,t).extend({ma:"always"}),a=i.subscribe((function(e){e&&(a.s(),n(e))}));return i.notifySubscribers(i.v()),a}return"function"!=typeof Promise||n?i(n.bind(t)):new Promise(i)},S.b("when",S.Wd),S.w={M:function(e){switch(S.a.R(e)){case"option":return!0===e.__ko__hasDomDataOptionValue__?S.a.g.get(e,S.c.options.$b):7>=S.a.W?e.getAttributeNode("value")&&e.getAttributeNode("value").specified?e.value:e.text:e.value;case"select":return 0<=e.selectedIndex?S.w.M(e.options[e.selectedIndex]):r;default:return e.value}},cb:function(e,n,t){switch(S.a.R(e)){case"option":"string"==typeof n?(S.a.g.set(e,S.c.options.$b,r),"__ko__hasDomDataOptionValue__"in e&&delete e.__ko__hasDomDataOptionValue__,e.value=n):(S.a.g.set(e,S.c.options.$b,n),e.__ko__hasDomDataOptionValue__=!0,e.value="number"==typeof n?n:"");break;case"select":""!==n&&null!==n||(n=r);for(var i,a=-1,o=0,s=e.options.length;o=c){t.push(n&&s.length?{key:n,value:s.join("")}:{unknown:n||s.join("")}),n=c=0,s=[];continue}}else if(58===u){if(!c&&!n&&1===s.length){n=s.pop();continue}}else{if(47===u&&1arguments.length){if(!(n=c.body))throw Error("ko.applyBindings: could not find document.body; has the document been loaded?")}else if(!n||1!==n.nodeType&&8!==n.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");p(g(e,t),n)},S.Dc=function(e){return!e||1!==e.nodeType&&8!==e.nodeType?r:S.Td(e)},S.Ec=function(e){return(e=S.Dc(e))?e.$data:r},S.b("bindingHandlers",S.c),S.b("bindingEvent",S.i),S.b("bindingEvent.subscribe",S.i.subscribe),S.b("bindingEvent.startPossiblyAsyncContentBinding",S.i.Cb),S.b("applyBindings",S.vc),S.b("applyBindingsToDescendants",S.Oa),S.b("applyBindingAccessorsToNode",S.ib),S.b("applyBindingsToNode",S.ld),S.b("contextFor",S.Dc),S.b("dataFor",S.Ec)}(),function(e){function n(n,i){var r,s=Object.prototype.hasOwnProperty.call(a,n)?a[n]:e;s?s.subscribe(i):((s=a[n]=new S.T).subscribe(i),t(n,(function(e,t){var i=!(!t||!t.synchronous);o[n]={definition:e,Gd:i},delete a[n],r||i?s.notifySubscribers(e):S.na.zb((function(){s.notifySubscribers(e)}))})),r=!0)}function t(e,n){i("getConfig",[e],(function(t){t?i("loadComponent",[e,t],(function(e){n(e,t)})):n(null,null)}))}function i(n,t,a,o){o||(o=S.j.loaders.slice(0));var r=o.shift();if(r){var s=r[n];if(s){var c=!1;if(s.apply(r,t.concat((function(e){c?a(null):null!==e?a(e):i(n,t,a,o)})))!==e&&(c=!0,!r.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.")}else i(n,t,a,o)}else a(null)}var a={},o={};S.j={get:function(t,i){var a=Object.prototype.hasOwnProperty.call(o,t)?o[t]:e;a?a.Gd?S.u.G((function(){i(a.definition)})):S.na.zb((function(){i(a.definition)})):n(t,i)},Bc:function(e){delete o[e]},oc:i},S.j.loaders=[],S.b("components",S.j),S.b("components.get",S.j.get),S.b("components.clearCachedDefinition",S.j.Bc)}(),function(){function e(e,n,t,i){function o(){0==--s&&i(r)}var r={},s=2,c=t.template;t=t.viewModel,c?a(n,c,(function(n){S.j.oc("loadTemplate",[e,n],(function(e){r.template=e,o()}))})):o(),t?a(n,t,(function(n){S.j.oc("loadViewModel",[e,n],(function(e){r[d]=e,o()}))})):o()}function t(e){switch(S.a.R(e)){case"script":return S.a.ua(e.text);case"textarea":return S.a.ua(e.value);case"template":if(i(e.content))return S.a.Ca(e.content.childNodes)}return S.a.Ca(e.childNodes)}function i(e){return s.DocumentFragment?e instanceof DocumentFragment:e&&11===e.nodeType}function a(e,t,i){"string"==typeof t.require?n||s.require?(n||s.require)([t.require],(function(e){e&&"object"==typeof e&&e.Xd&&e["default"]&&(e=e["default"]),i(e)})):e("Uses require, but no AMD loader is present"):i(t)}function o(e){return function(n){throw Error("Component '"+e+"': "+n)}}var r={};S.j.register=function(e,n){if(!n)throw Error("Invalid configuration for "+e);if(S.j.tb(e))throw Error("Component "+e+" is already registered");r[e]=n},S.j.tb=function(e){return Object.prototype.hasOwnProperty.call(r,e)},S.j.unregister=function(e){delete r[e],S.j.Bc(e)},S.j.Fc={getConfig:function(e,n){n(S.j.tb(e)?r[e]:null)},loadComponent:function(n,t,i){var r=o(n);a(r,t,(function(t){e(n,r,t,i)}))},loadTemplate:function(e,n,a){if(e=o(e),"string"==typeof n)a(S.a.ua(n));else if(n instanceof Array)a(n);else if(i(n))a(S.a.la(n.childNodes));else if(n.element)if(n=n.element,s.HTMLElement?n instanceof HTMLElement:n&&n.tagName&&1===n.nodeType)a(t(n));else if("string"==typeof n){var r=c.getElementById(n);r?a(t(r)):e("Cannot find element with ID "+n)}else e("Unknown element type: "+n);else e("Unknown template value: "+n)},loadViewModel:function(e,n,t){!function i(e,n,t){if("function"==typeof n)t((function(e){return new n(e)}));else if("function"==typeof n[d])t(n[d]);else if("instance"in n){var a=n.instance;t((function(){return a}))}else"viewModel"in n?i(e,n.viewModel,t):e("Unknown viewModel value: "+n)}(o(e),n,t)}};var d="createViewModel";S.b("components.register",S.j.register),S.b("components.isRegistered",S.j.tb),S.b("components.unregister",S.j.unregister),S.b("components.defaultLoader",S.j.Fc),S.j.loaders.push(S.j.Fc),S.j.dd=r}(),function(){function e(e,t){if(i=e.getAttribute("params")){var i=n.parseBindingsString(i,t,e,{valueAccessors:!0,bindingParams:!0}),a=(i=S.a.Ga(i,(function(n){return S.o(n,null,{l:e})})),S.a.Ga(i,(function(n){var t=n.v();return n.ja()?S.o({read:function(){return S.a.f(n())},write:S.Za(t)&&function(e){n()(e)},l:e}):t})));return Object.prototype.hasOwnProperty.call(a,"$raw")||(a.$raw=i),a}return{$raw:{}}}S.j.getComponentNameForNode=function(e){var n=S.a.R(e);if(S.j.tb(n)&&(-1!=n.indexOf("-")||"[object HTMLUnknownElement]"==""+e||8>=S.a.W&&e.tagName===n))return n},S.j.tc=function(n,t,i,a){if(1===t.nodeType){var o=S.j.getComponentNameForNode(t);if(o){if((n=n||{}).component)throw Error('Cannot use the "component" binding on a custom element matching a component');var r={name:o,params:e(t,i)};n.component=a?function(){return r}:r}}return n};var n=new S.ga;9>S.a.W&&(S.j.register=function(e){return function(n){return e.apply(this,arguments)}}(S.j.register),c.createDocumentFragment=function(e){return function(){var n,t=e(),i=S.j.dd;for(n in i);return t}}(c.createDocumentFragment))}(),function(){var e=0;S.c.component={init:function(n,t,i,a,o){function r(){var e=s&&s.dispose;"function"==typeof e&&e.call(s),d&&d.s(),c=s=d=null}var s,c,d,l=S.a.la(S.h.childNodes(n));return S.h.Ea(n),S.a.K.za(n,r),S.o((function(){var i,a,u=S.a.f(t());if("string"==typeof u?i=u:(i=S.a.f(u.name),a=S.a.f(u.params)),!i)throw Error("No component name specified");var p=S.i.Cb(n,o),f=c=++e;S.j.get(i,(function(e){if(c===f){if(r(),!e)throw Error("Unknown component '"+i+"'");!function(e,n,t){if(!(n=n.template))throw Error("Component '"+e+"' has no template");e=S.a.Ca(n),S.h.va(t,e)}(i,e,n);var t=function(e,n,t){var i=e.createViewModel;return i?i.call(e,n,t):n}(e,a,{element:n,templateNodes:l});e=p.createChildContext(t,{extend:function(e){e.$component=t,e.$componentTemplateNodes=l}}),t&&t.koDescendantsComplete&&(d=S.i.subscribe(n,S.i.pa,t.koDescendantsComplete,t)),s=t,S.Oa(e,n)}}))}),null,{l:n}),{controlsDescendantBindings:!0}}},S.h.ea.component=!0}();var A={"class":"className","for":"htmlFor"};S.c.attr={update:function(e,n){var t=S.a.f(n())||{};S.a.P(t,(function(n,t){t=S.a.f(t);var i=n.indexOf(":"),a=(i="lookupNamespaceURI"in e&&0=S.a.W&&n in A?(n=A[n],a?e.removeAttribute(n):e[n]=t):a||(i?e.setAttributeNS(i,n,t):e.setAttribute(n,t)),"name"===n&&S.a.Yc(e,a?"":t)}))}},S.c.checked={after:["value","attr"],init:function(e,n,t){function i(){var i=e.checked,c=a();if(!S.S.Ya()&&(i||!s&&!S.S.qa())){var u=S.u.G(n);if(d){var f=l?u.v():u,g=p;p=c,g!==c?i&&(S.a.Na(f,c,!0),S.a.Na(f,g,!1)):S.a.Na(f,c,i),l&&S.Za(u)&&u(f)}else o&&(c===r?c=i:i||(c=r)),S.m.eb(u,t,"checked",c,!0)}}var a=S.xb((function(){return t.has("checkedValue")?S.a.f(t.get("checkedValue")):u?t.has("value")?S.a.f(t.get("value")):e.value:void 0})),o="checkbox"==e.type,s="radio"==e.type;if(o||s){var c=n(),d=o&&S.a.f(c)instanceof Array,l=!(d&&c.push&&c.splice),u=s||d,p=d?a():r;s&&!e.name&&S.c.uniqueName.init(e,(function(){return!0})),S.o(i,null,{l:e}),S.a.B(e,"click",i),S.o((function(){var t=S.a.f(n()),i=a();d?(e.checked=0<=S.a.A(t,i),p=i):e.checked=o&&i===r?!!t:a()===t}),null,{l:e}),c=r}}},S.m.wa.checked=!0,S.c.checkedValue={update:function(e,n){e.value=S.a.f(n())}},S.c["class"]={update:function(e,n){var t=S.a.Db(S.a.f(n()));S.a.Eb(e,e.__ko__cssValue,!1),e.__ko__cssValue=t,S.a.Eb(e,t,!0)}},S.c.css={update:function(e,n){var t=S.a.f(n());null!==t&&"object"==typeof t?S.a.P(t,(function(n,t){t=S.a.f(t),S.a.Eb(e,n,t)})):S.c["class"].update(e,n)}},S.c.enable={update:function(e,n){var t=S.a.f(n());t&&e.disabled?e.removeAttribute("disabled"):t||e.disabled||(e.disabled=!0)}},S.c.disable={update:function(e,n){S.c.enable.update(e,(function(){return!S.a.f(n())}))}},S.c.event={init:function(e,n,t,i,a){var o=n()||{};S.a.P(o,(function(o){"string"==typeof o&&S.a.B(e,o,(function(e){var r,s=n()[o];if(s){try{var c=S.a.la(arguments);i=a.$data,c.unshift(i),r=s.apply(i,c)}finally{!0!==r&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}!1===t.get(o+"Bubble")&&(e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation())}}))}))}},S.c.foreach={Rc:function(e){return function(){var n=e(),t=S.a.bc(n);return t&&"number"!=typeof t.length?(S.a.f(n),{foreach:t.data,as:t.as,noChildContext:t.noChildContext,includeDestroyed:t.includeDestroyed,afterAdd:t.afterAdd,beforeRemove:t.beforeRemove,afterRender:t.afterRender,beforeMove:t.beforeMove,afterMove:t.afterMove,templateEngine:S.ba.Ma}):{foreach:n,templateEngine:S.ba.Ma}}},init:function(e,n){return S.c.template.init(e,S.c.foreach.Rc(n))},update:function(e,n,t,i,a){return S.c.template.update(e,S.c.foreach.Rc(n),t,i,a)}},S.m.Ra.foreach=!1,S.h.ea.foreach=!0,S.c.hasfocus={init:function(e,n,t){function i(i){e.__ko_hasfocusUpdating=!0;var a=e.ownerDocument;if("activeElement"in a){var o;try{o=a.activeElement}catch(r){o=a.body}i=o===e}a=n(),S.m.eb(a,t,"hasfocus",i,!0),e.__ko_hasfocusLastValue=i,e.__ko_hasfocusUpdating=!1}var a=i.bind(null,!0),o=i.bind(null,!1);S.a.B(e,"focus",a),S.a.B(e,"focusin",a),S.a.B(e,"blur",o),S.a.B(e,"focusout",o),e.__ko_hasfocusLastValue=!1},update:function(e,n){var t=!!S.a.f(n());e.__ko_hasfocusUpdating||e.__ko_hasfocusLastValue===t||(t?e.focus():e.blur(),!t&&e.__ko_hasfocusLastValue&&e.ownerDocument.body.focus(),S.u.G(S.a.Fb,null,[e,t?"focusin":"focusout"]))}},S.m.wa.hasfocus=!0,S.c.hasFocus=S.c.hasfocus,S.m.wa.hasFocus="hasfocus",S.c.html={init:function(){return{controlsDescendantBindings:!0}},update:function(e,n){S.a.fc(e,n())}},function(){function e(e,n,t){S.c[e]={init:function(e,i,a,o,r){var s,c,d,l,u,p={};if(n){o=a.get("as");var f=a.get("noChildContext");p={as:o,noChildContext:f,exportDependencies:u=!(o&&f)}}return l=(d="render"==a.get("completeOn"))||a.has(S.i.pa),S.o((function(){var a,o=S.a.f(i()),f=!t!=!o,g=!c;(u||f!==s)&&(l&&(r=S.i.Cb(e,r)),f&&(n&&!u||(p.dataDependency=S.S.o()),a=n?r.createChildContext("function"==typeof o?o:i,p):S.S.qa()?r.extend(null,p):r),g&&S.S.qa()&&(c=S.a.Ca(S.h.childNodes(e),!0)),f?(g||S.h.va(e,S.a.Ca(c)),S.Oa(a,e)):(S.h.Ea(e),d||S.i.ma(e,S.i.H)),s=f)}),null,{l:e}),{controlsDescendantBindings:!0}}},S.m.Ra[e]=!1,S.h.ea[e]=!0}e("if"),e("ifnot",!1,!0),e("with",!0)}(),S.c["let"]={init:function(e,n,t,i,a){return n=a.extend(n),S.Oa(n,e),{controlsDescendantBindings:!0}}},S.h.ea["let"]=!0;var R={};S.c.options={init:function(e){if("select"!==S.a.R(e))throw Error("options binding applies only to SELECT elements");for(;0i)var d=S.a.g.Z(),l=S.a.g.Z(),u=function(e){var n=this.activeElement;(n=n&&S.a.g.get(n,l))&&n(e)},p=function(e,n){var t=e.ownerDocument;S.a.g.get(t,d)||(S.a.g.set(t,d,!0),S.a.B(t,"selectionchange",u)),S.a.g.set(e,l,n)};S.c.textInput={init:function(o,s,c){function d(e,n){S.a.B(o,e,n)}function l(){f||(g=o.value,f=S.a.setTimeout(u,4))}function u(){clearTimeout(f),g=f=r;var e=o.value;m!==e&&(m=e,S.m.eb(s(),c,"textInput",e))}var f,g,m=o.value,b=9==S.a.W?l:u,v=!1;i&&d("keypress",u),11>i&&d("propertychange",(function(e){v||"value"!==e.propertyName||b(e)})),8==i&&(d("keyup",u),d("keydown",u)),p&&(p(o,b),d("dragend",l)),(!i||9<=i)&&d("input",b),5>n&&"textarea"===S.a.R(o)?(d("keydown",l),d("paste",l),d("cut",l)):11>e?d("keydown",l):4>t?(d("DOMAutoComplete",u),d("dragdrop",u),d("drop",u)):a&&"number"===o.type&&d("keydown",l),d("change",u),d("blur",u),S.o((function h(){var e=S.a.f(s());null!==e&&e!==r||(e=""),g!==r&&e===g?S.a.setTimeout(h,4):o.value!==e&&(v=!0,o.value=e,v=!1,m=o.value)}),null,{l:o})}},S.m.wa.textInput=!0,S.c.textinput={preprocess:function(e,n,t){t("textInput",e)}}}(),S.c.uniqueName={init:function(e,n){if(n()){var t="ko_unique_"+ ++S.c.uniqueName.rd;S.a.Yc(e,t)}}},S.c.uniqueName.rd=0,S.c.using={init:function(e,n,t,i,a){var o;return t.has("as")&&(o={as:t.get("as"),noChildContext:t.get("noChildContext")}),n=a.createChildContext(n,o),S.Oa(n,e),{controlsDescendantBindings:!0}}},S.h.ea.using=!0,S.c.value={init:function(e,n,t){var i=S.a.R(e),a="input"==i;if(!a||"checkbox"!=e.type&&"radio"!=e.type){var o=[],s=t.get("valueUpdate"),c=!1,d=null;s&&(o="string"==typeof s?[s]:S.a.wc(s),S.a.Pa(o,"change"));var l,u,p=function(){d=null,c=!1;var i=n(),a=S.w.M(e);S.m.eb(i,t,"value",a)};!S.a.W||!a||"text"!=e.type||"off"==e.autocomplete||e.form&&"off"==e.form.autocomplete||-1!=S.a.A(o,"propertychange")||(S.a.B(e,"propertychange",(function(){c=!0})),S.a.B(e,"focus",(function(){c=!1})),S.a.B(e,"blur",(function(){c&&p()}))),S.a.D(o,(function(n){var t=p;S.a.Ud(n,"after")&&(t=function(){d=S.w.M(e),S.a.setTimeout(p,0)},n=n.substring(5)),S.a.B(e,n,t)})),l=a&&"file"==e.type?function(){var t=S.a.f(n());null===t||t===r||""===t?e.value="":S.u.G(p)}:function(){var a=S.a.f(n()),o=S.w.M(e);null!==d&&a===d?S.a.setTimeout(l,0):a===o&&o!==r||("select"===i?(o=t.get("valueAllowUnset"),S.w.cb(e,a,o),o||a===S.w.M(e)||S.u.G(p)):S.w.cb(e,a))},"select"===i?S.i.subscribe(e,S.i.H,(function(){u?t.get("valueAllowUnset")?l():p():(S.a.B(e,"change",p),u=S.o(l,null,{l:e}))}),null,{notifyImmediately:!0}):(S.a.B(e,"change",p),S.o(l,null,{l:e}))}else S.ib(e,{checkedValue:n})},update:function(){}},S.m.wa.value=!0,S.c.visible={update:function(e,n){var t=S.a.f(n()),i="none"!=e.style.display;t&&!i?e.style.display="":!t&&i&&(e.style.display="none")}},S.c.hidden={update:function(e,n){S.c.visible.update(e,(function(){return!S.a.f(n())}))}},function(e){S.c[e]={init:function(n,t,i,a,o){return S.c.event.init.call(this,n,(function(){var n={};return n[e]=t(),n}),i,a,o)}}}("click"),S.ca=function(){},S.ca.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource")},S.ca.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock")},S.ca.prototype.makeTemplateSource=function(e,n){if("string"==typeof e){var t=(n=n||c).getElementById(e);if(!t)throw Error("Cannot find template with ID "+e);return new S.C.F(t)}if(1==e.nodeType||8==e.nodeType)return new S.C.ia(e);throw Error("Unknown template type: "+e)},S.ca.prototype.renderTemplate=function(e,n,t,i){return e=this.makeTemplateSource(e,i),this.renderTemplateSource(e,n,t,i)},S.ca.prototype.isTemplateRewritten=function(e,n){return!1===this.allowTemplateRewriting||this.makeTemplateSource(e,n).data("isRewritten")},S.ca.prototype.rewriteTemplate=function(e,n,t){n=n((e=this.makeTemplateSource(e,t)).text()),e.text(n),e.data("isRewritten",!0)},S.b("templateEngine",S.ca),S.kc=function(){function e(e,n,t,i){e=S.m.ac(e);for(var a=S.m.Ra,o=0;o]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,t=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{xd:function(e,n,t){n.isTemplateRewritten(e,t)||n.rewriteTemplate(e,(function(e){return S.kc.Ld(e,n)}),t)},Ld:function(i,a){return i.replace(n,(function(n,t,i,o,r){return e(r,t,i,a)})).replace(t,(function(n,t){return e(t,"\x3c!-- ko --\x3e","#comment",a)}))},md:function(e,n){return S.aa.Xb((function(t,i){var a=t.nextSibling;a&&a.nodeName.toLowerCase()===n&&S.ib(a,e,i)}))}}}(),S.b("__tr_ambtns",S.kc.md),function(){S.C={},S.C.F=function(e){if(this.F=e){var n=S.a.R(e);this.ab="script"===n?1:"textarea"===n?2:"template"==n&&e.content&&11===e.content.nodeType?3:4}},S.C.F.prototype.text=function(){var e=1===this.ab?"text":2===this.ab?"value":"innerHTML";if(0==arguments.length)return this.F[e];var n=arguments[0];"innerHTML"===e?S.a.fc(this.F,n):this.F[e]=n};var e=S.a.g.Z()+"_";S.C.F.prototype.data=function(n){if(1===arguments.length)return S.a.g.get(this.F,e+n);S.a.g.set(this.F,e+n,arguments[1])};var n=S.a.g.Z();S.C.F.prototype.nodes=function(){var e=this.F;if(0==arguments.length){var t=S.a.g.get(e,n)||{},i=t.lb||(3===this.ab?e.content:4===this.ab?e:r);if(!i||t.jd){var a=this.text();a&&a!==t.bb&&(i=S.a.Md(a,e.ownerDocument),S.a.g.set(e,n,{lb:i,bb:a,jd:!0}))}return i}t=arguments[0],this.ab!==r&&this.text(""),S.a.g.set(e,n,{lb:t})},S.C.ia=function(e){this.F=e},S.C.ia.prototype=new S.C.F,S.C.ia.prototype.constructor=S.C.ia,S.C.ia.prototype.text=function(){if(0==arguments.length){var e=S.a.g.get(this.F,n)||{};return e.bb===r&&e.lb&&(e.bb=e.lb.innerHTML),e.bb}S.a.g.set(this.F,n,{bb:arguments[0]})},S.b("templateSources",S.C),S.b("templateSources.domElement",S.C.F),S.b("templateSources.anonymousTemplate",S.C.ia)}(),function(){function e(e,n,t){var i;for(n=S.h.nextSibling(n);e&&(i=e)!==n;)t(i,e=S.h.nextSibling(i))}function n(n,t){if(n.length){var i=n[0],a=n[n.length-1],o=i.parentNode,r=S.ga.instance,s=r.preprocessNode;if(s){if(e(i,a,(function(e,n){var t=e.previousSibling,o=s.call(r,e);o&&(e===i&&(i=o[0]||n),e===a&&(a=o[o.length-1]||t))})),n.length=0,!i)return;i===a?n.push(i):(n.push(i,a),S.a.Ua(n,o))}e(i,a,(function(e){1!==e.nodeType&&8!==e.nodeType||S.vc(t,e)})),e(i,a,(function(e){1!==e.nodeType&&8!==e.nodeType||S.aa.cd(e,[t])})),S.a.Ua(n,o)}}function t(e){return e.nodeType?e:0S.a.W||!e.nodes?null:e.nodes())?S.a.la(n.cloneNode(!0).childNodes):(e=e.text(),S.a.ua(e,i))},S.ba.Ma=new S.ba,S.gc(S.ba.Ma),S.b("nativeTemplateEngine",S.ba),function(){S.$a=function(){var e=this.Hd=function(){if(!l||!l.tmpl)return 0;try{if(0<=l.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(e){}return 1}();this.renderTemplateSource=function(n,t,i,a){if(a=a||c,i=i||{},2>e)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var o=n.data("precompiled");return o||(o=n.text()||"",o=l.template(null,"{{ko_with $item.koBindingContext}}"+o+"{{/ko_with}}"),n.data("precompiled",o)),n=[t.$data],t=l.extend({koBindingContext:t},i.templateOptions),(t=l.tmpl(o,n,t)).appendTo(a.createElement("div")),l.fragments={},t},this.createJavaScriptEvaluatorBlock=function(e){return"{{ko_code ((function() { return "+e+" })()) }}"},this.addTemplate=function(e,n){c.write("