function htmlEncode(n){return $("<div/>").text(n).html()}function htmlDecode(n){return $("<div/>").html(n).text()}function findStateByAbbreviation(n,t){var i=null;return $.each(n,function(n,r){r.StateProvinceAbbreviation==t&&(i=r)}),i}function RedirectToUrl(n){window.location.replace(n)}function isBlank(n){return!n||$.trim(n)===""}function datePicker(){ko.bindingHandlers.datepicker={init:function(n,t,i){var r=i().datepickerOptions||{};$(n).datepicker(r);ko.utils.registerEventHandler(n,"change",function(){var i=t();i($(n).datepicker("getDate"))});ko.utils.domNodeDisposal.addDisposeCallback(n,function(){$(n).datepicker("destroy")})},update:function(n,t){var i=ko.utils.unwrapObservable(t());$(n).datepicker("setDate",i)}}}function getUserLanguage(){return microsoft.learning.mlx.utility.getCookieValue("_culture")?microsoft.learning.mlx.utility.getCookieValue("_culture"):"en-US"}function TrimLongText(n){var t=n.substring(0,Math.min(n.length,30));return t+(t.length!=n.length?"...":"")}function returnHome(){window.close()}function showErrorForElement(n,t,i){var r=$(n),f=$('<label style="display: inline;" class="error" for="'+t+'" generated="true">'+i+"<\/label>"),u;r.is("textarea")&&r.hasClass("rich-textarea")?(u=r.parent().next(),u.hasClass("error")&&u.remove(),f.css("top",26).insertAfter(r.parent()),r.parent().find("iframe").addClass("highlighted")):(u=r.next(),u.hasClass("error")&&u.remove(),f.insertAfter(r),r.addClass("highlighted"))}function removeErrorForElement(n){var t=$(n),i;t.is("textarea")&&t.hasClass("rich-textarea")?(i=t.parent().next(),i.hasClass("error")&&i.remove(),t.parent().find("iframe").removeClass("highlighted")):(i=t.next(),i.hasClass("error")&&i.remove(),t.removeClass("highlighted"),t.removeClass("error"))}function resizeElement(n,t){$(window).on("resize",function(){$(n).height($(window).innerHeight()-t)}).resize()}function GetErrorMessage(n){return n===undefined||n===""?serviceUnavailableMessage:EDPResourceStrings[n]!=undefined?n+": "+EDPResourceStrings[n]:n+": "+serviceUnavailableMessage}function scrollFocuser(n){var t=$(window).height()/2,i=$(n).offset().top;i>t&&$(window).scrollTop(i-t)}function safeError(n,t){n.insertAfter(t);t.parent().css("height","auto")}function mobilize(){$(window).on("resize",function(){$(window).innerHeight()/$(window).innerWidth()>1.25||$(window).innerWidth()<660?($("#section1").removeClass("overlayContent"),$("#section1").addClass("overlayContentMobile"),$("#body").addClass("mobileOverride"),$(".cell").addClass("mobileOverrideMargin"),$(".cellshortvar").addClass("mobileOverrideNoMargin"),$(".dashboard-container").addClass("mobileOverride"),$("#basic-overlay").hide(),$("footer").hide(),$(".right").addClass("mobileRight"),$(".right").removeClass("right"),$(".mobileRight").addClass("left")):($("#section1").removeClass("overlayContentMobile"),$("#section1").addClass("overlayContent"),$("#body").removeClass("mobileOverride"),$(".cell").removeClass("mobileOverrideMargin"),$(".cellshortvar").removeClass("mobileOverrideNoMargin"),$(".dashboard-container").removeClass("mobileOverride"),$("#basic-overlay").show(),$("footer").show(),$("#section1").addClass("overlayContent"),$(".mobileRight").removeClass("left"),$(".mobileRight").addClass("right"),$(".mobileRight").removeClass("mobileRight"))}).resize()}function UpdateNavigationUI(n){$("nav").find('a:contains("'+n.navTitle()+'")').filter(function(){$("nav").find("hr").attr("class","gray-nav-seprator");$(this).parent().prev().is("hr")||$(this).parent().parent().prev("hr").attr("class","blue-nav-seprator");$(this).parent().next("hr").attr("class","blue-nav-seprator");$(this).parent().prev("hr").attr("class","blue-nav-seprator")})}function getEmailRegex(){return new RegExp("^([a-zA-Z0-9_\\-\\+])+(\\.[a-zA-Z0-9_\\-\\+]+)*\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,6})+$")}function isInvalidEmail(n){var t=getEmailRegex();return!t.test(n)}$(function(){microsoft.learning.mlx.authenticationSDK=function(){var n=function(){var n=this;n.homerealm="";n.signInViaMlx=function(){if(!MLX.context.currentUser.isAuthenticated){var t=microsoft.learning.mlx.utility.getQueryStringParamValue("whr");n.homerealm=t==""||t.toLowerCase()=="default"?"uri:MicrosoftAccount":t;MLX.signIn(undefined,n.homerealm,window.location)}}};return n.prototype.Initialize=function(){var n=this;document.body.style.cursor="wait";n.signInViaMlx()},n}();microsoft.learning.mlx.authenticationSDK.AuthenticateHandler=function(){return function(){var n=this;n.busyIndicatorMessage=null;n.reSignOverlay=null;this.handleAuthentication=function(t,i,r){n.busyIndicatorMessage||(n.busyIndicatorMessage=(new microsoft.learning.mlx.popupMessagesViewModel).GetBusyIndicatorMessage());i!==""&&(n.reSignOverlay||(n.reSignOverlay=(new microsoft.learning.mlx.popupMessagesViewModel).GetResigningOverlay(i)));t=="CLOSE_BUSYINDICATOR"&&n.busyIndicatorMessage&&n.busyIndicatorMessage.close();t=="SHOW_AUTH"?n.busyIndicatorMessage.open(EDPResourceStrings.authenticationInitMessage):t=="SHOW_LOGIN"&&(n.busyIndicatorMessage.close(),n.reSignOverlay.open(r))}}}()});handleError=function(result,overlay){overlay&&overlay.GetBusyIndicatorMessage().close();var messageId="",errorInfo=[],errors=eval(result.responseText||"");messageId=errors&&errors[0]&&errors[0].ErrorMessageCode?errors[0].ErrorMessageCode:errors;errorInfo.push({ErrorMessage:GetErrorMessage(messageId),Id:messageId});redirectEvents.indexOf(messageId)!=-1?overlay.GetErrors(errorInfo," ",EDPResourceStrings.goBackToParentSite).open().done(function(){window.location.replace(examDataContainer.returnUrl)}):overlay.GetErrors(errorInfo," ",EDPResourceStrings.labelCancel).open()};ko.bindingHandlers.notificationPopupBinding={init:function(n,t){var i=this;if(typeof isIE8!="undefined"&&isIE8===!0)document.body.onresize=function(){ko.bindingHandlers.notificationPopupBinding._resize(n,t)};else $(window).on("resize",function(){ko.bindingHandlers.notificationPopupBinding._resize(n,t)})},_resize:function(n,t){if($(n).is(":visible")){var i=t();i.valueHasMutated&&i.valueHasMutated()}},update:function(n,t,i,r){if(ko.utils.unwrapObservable(t())){$(n).show();$("#overlay").show();$("html, body").css("overflow-y","hidden");$(n).on("click",".close",function(){r.isShown&&r.isShown(!1)});$(n).css({top:($(window).height()-$(n).height())/2+"px"})}else $(n).hide(),$(".overlay-wrapper:visible, .overlay-wrapper-small:visible, .overlay-loading-wrapper:visible").length<=0&&$("#overlay").hide(),$("html, body").removeAttr("style")}};ko.bindingHandlers.MessagePopupBinding={init:function(n,t){$(window).on("resize",function(){if($(n).is(":visible")){var i=t();i.valueHasMutated&&i.valueHasMutated()}});var i=ko.utils.unwrapObservable(t());$("#notification").html(i.notification())},update:function(n,t,i,r){var u=ko.utils.unwrapObservable(t());if(u.Display()){$(n).show();$("#overlay").show();$(n).on("click",".cross",function(){r.isShown(!1)});$(n).css({top:($(window).height()-$(n).height())/2+"px"});$(n).find(":focusable:first").focus()}else $(n).hide(),$(".overlay-wrapper:visible, .overlay-wrapper-small:visible, .overlay-loading-wrapper:visible").length<=0&&$("#overlay").hide()}};ko.bindingHandlers.notificationPopupBindingUsers={init:function(n,t){var i=this;if(typeof isIE8!="undefined"&&isIE8===!0)document.body.onresize=function(){ko.bindingHandlers.notificationPopupBindingUsers._resize(n,t)};else $(window).on("resize",function(){ko.bindingHandlers.notificationPopupBindingUsers._resize(n,t)})},_resize:function(n,t){if($(n).is(":visible")){var i=t();i.valueHasMutated&&i.valueHasMutated()}},update:function(n,t,i,r){if(ko.utils.unwrapObservable(t())){$(n).hide();var u=$(n)[0].id+".selected";$("#"+u).show();$("#overlay").show();$(n).removeClass("selected");$(n).on("click",".close",function(){r.isShown&&r.isShown(!1)});$(n).css({top:($(window).height()-$(n).height())/2+"px"});$(n).find(":focusable:first").focus()}else $(n).hide(),$(".overlay-wrapper:visible, .overlay-wrapper-small:visible, .overlay-loading-wrapper:visible").length<=0&&$("#overlay").hide()}};ko.bindingHandlers.contextmenu={init:function(){},update:function(n,t,i,r){var u=t();if(u.visible){$(n).on("contextmenu",function(){u.currentModelSetter(r)});$(n).contextMenu(u.selector)}else $(n).off("contextmenu")}};$("input").focus(function(){scrollFocuser(this)});$("button").focus(function(){scrollFocuser(this)}),function(){typeof microsoft=="undefined"&&(window.location="/Home/Error")}(),function(){$("#APITunnel").load(function(){setTimeout(function(){typeof MLX.context.currentUser.contactEmailAddress=="undefined"&&(window.location="/Home/Error")},5e3)})}(),function(){function l(n,t){return!$(t).hasClass("watermark")}var n=new Date("2011-06-02T09:34:29+02:00");Date.fromISO=n&&+n==1307000069e3?function(n){return new Date(n)}:function(n){var t,r,i=/^(\d{4}\-\d\d\-\d\d([tT ][\d:\.]*)?)([zZ]|([+\-])(\d\d):(\d\d))?$/.exec(n)||[],u,f;if(i[1]){for(t=i[1].split(/\D/),u=0,f=t.length;u<f;u++)t[u]=parseInt(t[u],10)||0;return(t[1]-=1,t=new Date(Date.UTC.apply(Date,t)),!t.getDate())?NaN:(i[5]&&(r=parseInt(i[5],10)*60,i[6]&&(r+=parseInt(i[6],10)),i[4]=="+"&&(r*=-1),r&&t.setUTCMinutes(t.getUTCMinutes()+r)),t)}return NaN};var t=new RegExp('^[^!@#$%*<>(){}\\[\\]\\^/\\\\"?&;~`:+=_,]*$',"i"),i=getEmailRegex(),r=new RegExp("^\\d{5}(-\\d{4})?$"),u=new RegExp("^[ABCEGHJKLMNPRSTVXY]{1}\\d{1}[A-Z]{1} *\\d{1}[A-Z]{1}\\d{1}$"),f=new RegExp("[^\x00-]+"),e=new RegExp("^([a-zA-Z0-9\\s -ÿ])*$"),o=new RegExp("^([a-zA-Z0-9\\s.\\-'_/\\\\,#&+() -ÿ])*$"),s=new RegExp("^([0-9])+(\\s*[-.]?\\s*[0-9]+)\\s*$"),h=new RegExp("^([a-zA-Z\\s(.)?(`)?(')? -ÿ])*$"),c=new RegExp('^[^!@$%*<>{}\\[\\]\\^"?;~`:=]*$',"i");$.validator.addMethod("requiredWatermark",l,"Required.");$.validator.addMethod("personName",function(n,i){return this.optional(i)||t.test(n)});$.validator.addMethod("MlxEmail",function(n,t){return this.optional(t)||i.test(n)&&!f.test(n)});$.validator.addMethod("romanize",function(n,t){return this.optional(t)||e.test(n)});$.validator.addMethod("romanizeForAddress",function(n,t){return this.optional(t)||o.test(n)});$.validator.addMethod("phoneNumberPattern",function(n,t){return this.optional(t)||s.test(n)});$.validator.addMethod("postCode",function(n,t){var i=t.id=="PostalCode"?"Country":"ExtendedCountry";return $("select[name="+i+"]").val()=="US"?this.optional(t)||r.test(n):$("select[name="+i+"]").val()=="CA"?this.optional(t)||u.test(n):!0});$.validator.addMethod("legalName",function(n,t){return this.optional(t)||h.test(n)});$.validator.addMethod("addressNotAllowed",function(n,t){return this.optional(t)||c.test(n)})}();microsoft.learning.mlx.ProfileValidation=function(){var n=function(n){var t=this;t.userProfile=undefined;t.parent=n;t.ValidateProfile=function(n){var t=this;t.parent.basicProfileExists(!1);t.parent.isBasicProfileValid(!1);t.parent.legalProfileExists(!1);t.parent.isLegalProfileValid(!1);t.parent.dataContainer=null;n.BasicProfile&&t.parent.basicProfileExists(!0);n.BasicProfile&&n.BasicProfile.FirstName&&n.BasicProfile.LastName&&n.BasicProfile.ContactEmailAddress&&n.BasicProfile.CountryCode&&n.BasicProfile.JobFunctionId&&n.BasicProfile.AcceptedTermsOfUse&&t.parent.isBasicProfileValid(!0);n.Addresses&&n.LegalProfile&&n.Phones&&t.parent.legalProfileExists(!0);t.parent.basicProfileExists()&&n.BasicProfile.PreferredLanguage&&n.Addresses&&n.Addresses[0]&&n.Addresses[0].AddressLine1&&n.Addresses[0].City&&n.Addresses[0].CountryCode&&n.Phones&&n.Phones[0]&&n.Phones[0].CountryCode&&n.Phones[0].AreaCode&&n.Phones[0].PhoneNumber&&(t.parent.stateRegions().length>0&&(n.Addresses[0].StateProvinceCode==""||n.Addresses[0].StateProvinceCode==null)?t.parent.isLegalProfileValid(!1):n.Addresses&&n.Addresses[0]&&(n.Addresses[0].CountryCode=="US"||n.Addresses[0].CountryCode=="CA")&&(n.Addresses[0].PostalCode==null||n.Addresses[0].PostalCode=="")?t.parent.isLegalProfileValid(!1):t.parent.isLegalProfileValid(!0))}};return n.prototype.ValidationOnCreation=function(n){var t=this,i;t.userProfile=n;i=null;t.userProfile&&t.userProfile.Addresses&&t.userProfile.Addresses[0]&&t.userProfile.Addresses[0].CountryCode&&(i=t.userProfile.Addresses[0].CountryCode);t.parent.candidateProfileDataModel.getStates(i).done(function(n){t.parent.stateRegions(n);t.ValidateProfile(t.userProfile);t.parent.dataContainer=t.userProfile.BasicProfile&&t.userProfile.LegalProfile&&t.userProfile.Addresses&&t.userProfile.Addresses[0]&&t.userProfile.Phones&&t.userProfile.Phones[0]&&t.userProfile.EdpProfile?t.userProfile:null;t.parent.basicProfileExists()&&t.parent.isBasicProfileValid()?t.parent.legalProfileExists()&&t.parent.isLegalProfileValid()?(t.parent.showLegalProfile(!1),t.parent.showBasicProfile(!1),examDataContainer.action=="viewAppointmentActivity"||examDataContainer.action=="rescheduleExam"||examDataContainer.action=="cancelExam"?(t.parent.showPreviewProfile(!1),$("#saveAndContinueClick").trigger("click")):isBlank(examDataContainer.examId)&&isBlank(examDataContainer.examName)?window.location.replace(examDataContainer.returnUrl):t.parent.showPreviewProfile(!0)):examDataContainer.action=="None"?window.location.replace(examDataContainer.returnUrl):(isBlank(t.parent.selectedExtendedCountry())&&t.parent.selectedExtendedCountry(t.parent.selectedCountry()),isBlank(t.parent.phoneCountryCode())&&t.parent.phoneCountryCode(t.parent.selectedCountry()),t.parent.showLegalProfile(!0),t.parent.showBasicProfile(!1),t.parent.showPreviewProfile(!1)):(t.parent.showBasicProfile(!0),t.parent.showLegalProfile(!1),t.parent.showPreviewProfile(!1));t.parent.overlay.GetBusyIndicatorMessage().close()})},n}();microsoft.learning.mlx.userServiceSDK=function(){var t=undefined,n=function(){t=this;t.ErrorMessage=ko.observable()};return n.prototype.getAllCountries=function(){var n=undefined,t=this;return n=MLX.ajax({url:"/services/users/profile/countries",type:"GET",dataType:"json",contentType:"application/json"}),n.done(function(n){t.result=n}),n},n.prototype.getStates=function(n){var t=undefined,i=this;return t=MLX.ajax({url:"/services/domaindata/stateprovincelist/"+n,type:"GET",dataType:"json",contentType:"application/json"}),t.done(function(n){i.result=n}),t},n.prototype.getNamePrefix=function(){var n=undefined,t=this;return n=MLX.ajax({url:"/services/domaindata/nameprefix",type:"GET",dataType:"json",contentType:"application/json"}),n.done(function(n){t.result=n}),n},n.prototype.getAllLanguages=function(){var n=undefined,t=this;return t.languages?(n=$.Deferred(),n.resolve(t.languages)):(n=MLX.ajax({url:"/services/users/profile/languages",type:"GET",dataType:"json",contentType:"application/json"}),n.done(function(n){t.result=t.languages=n})),n},n.prototype.getJobFunctions=function(n){var t=undefined,i=this;return i.jobFunctions?(t=$.Deferred(),t.resolve(i.jobFunctions)):(t=MLX.ajax({url:"/services/users/profile/jobfunctions/"+n,type:"GET",dataType:"json",contentType:"application/json"}),t.done(function(n){i.result=i.jobfunctions=n})),t},n.prototype.getUserProfile=function(){var n=this,t=undefined;return t=MLX.ajax({url:"/services/users/profile",type:"GET",dataType:"json",contentType:"application/json"}),t.done(function(t){n.result=t;n.basicProfileExists=t?!0:!1}),t},n.prototype.getCandidateProfile=function(n){var i=this,t=undefined;return t=MLX.ajax({url:"/services/users/GetUserMasterProfile",type:"POST",dataType:"json",data:JSON.stringify(n),contentType:"application/json"}),t.done(function(n){i.result=n}),t},n.prototype.registerUser=function(n){var i=this,t=undefined;return t=MLX.ajax({url:"/services/users/RegisterMasterUser",type:"PUT",dataType:"json",data:n,contentType:"application/json"}),t.done(function(n){i.result=n}),t},n.prototype.saveUser=function(n){var i=this,t=undefined;return t=MLX.ajax({url:"/services/users/SaveUserMasterProfile",type:"POST",dataType:"json",data:n,contentType:"application/json"}),t.done(function(n){i.result=n}),t},n.prototype.validateCandidate=function(n){var i=this,t=new $.Deferred;return t=MLX.ajax({type:"POST",contentType:"application/json",data:JSON.stringify(n),url:"/ExamRegistration/v1.0/Candidate/Validation"}),t.done(function(n){i.result=n}),t},n.prototype.cddProfile=function(n){var i=this,t=new $.Deferred;return t=MLX.ajax({type:"POST",dataType:"json",contentType:"application/json",data:n,url:"/ExamRegistration/v1.0/Candidate/CddProfile"}),t.done(function(n){i.result=n}),t},n.prototype.examReport=function(n){var i=this,t=new $.Deferred;return t=MLX.ajax({type:"POST",contentType:"application/json",data:JSON.stringify(n),url:"/ExamRegistration/v1.0/Candidate/Report"}),t.done(function(n){i.result=n}),t},n.prototype.Initialize=function(){var n=this},n}();microsoft.learning.mlx.popupMessagesViewModel=function(){function e(){var n=this;n.isShown=ko.observable(!1);n.message=ko.observable("");n.open=function(t,i){n.message(t);n.isShown(!0);i&&i.then&&i.then(n.close,n.close)};n.close=function(){n.isShown(!1)}}function s(){var n=this;n.isShown=ko.observable(!1);n.title=ko.observable("");n.ok=function(){n.isShown(!1)};n.open=function(t){n.title(t);n.isShown(!0)}}function h(n){var t=this;t.isShown=ko.observable(!1);t.linkText=ko.observable(n);t.open=function(n){t.isShown(!0);$("#reauthenticateLink:not(.bound)").addClass("bound").bind("click",function(){t.isShown(!1);var i=window.open(t.linkText(),"_blank"),r=setInterval(function(){try{var u=i.location.host}catch(f){t.isShown(!1);window.clearInterval(r);n()}},2e4)})};t.close=function(){t.isShown(!1)}}function c(n,t,i){var r=this;r.isShown=ko.observable(!1);r.notification=ko.observable(n);r.message=ko.observable();r.btnText=t;r.skip=function(){r.isShown(!1)};r.viewCourse=function(){r.isShown(!1);i.showCourse&&i.showCourse()};r.viewMyCourses=function(){return r.isShown(!1),i.showMyCourses&&i.showMyCourses(),!0};r.open=function(n){r.message(n);r.isShown(!0)}}function l(){function i(){var n=$('script[id^="customMessageTemplate"][generated="true"]');n.remove()}var n=this,t=undefined;n.isShown=ko.observable(!1);n.templateId=ko.observable("");n.open=function(r){var u;return r instanceof jQuery?u=r.attr("id"):microsoft.learning.mlx.utility.isElement(r)?u=r.id:(i(),u="customMessageTemplate"+(new Date).getTime(),$('<script type="text/html" id="'+u+'" generated="true">'+r+"<\/script>").appendTo($("head"))),n.templateId(u),$("#overlay").css("z-index",399),n.isShown(!0),t=$.Deferred(),t.promise()};n.close=function(){n.isShown(!1);$("#overlay").css("z-index","");n.templateId("");var i=microsoft.learning.mlx.utility.convertArgumentsToArray(arguments);i.pop();i.pop();t.resolve(i)}}function a(n,t,i,r){var u=this;deferred=$.Deferred();u.isShown=ko.observable(!1);u.errorArray=ko.observable(n);u.headingText=ko.observable("");u.btnText=ko.observable("");u.btnCancelText=ko.observable("");t?u.headingText(t):u.headingText("Error");i?u.btnText(i):u.btnText("Error");r&&u.btnCancelText(r);u.open=function(){return u.isShown(!0),deferred.promise()};u.ok=function(){u.isShown(!1);deferred.resolve()};u.cancel=function(){u.isShown(!1)}}var n=function(){var n=this;n.busyIndicator=new e},t=undefined,i=undefined,r=undefined,o=undefined,y=undefined,u=undefined,f=undefined;return errorDialog=undefined,resignDialog=undefined,n.prototype.GetBusyIndicator=function(){return t||(t=new e,$("#overlay").get(0)&&ko.applyBindings(t,$("#overlay").get(0))),t},n.prototype.GetBusyIndicatorMessage=function(){return i||(i=new e,$("#divAjaxloaderControl").get(0)&&ko.applyBindings(i,$("#divAjaxloaderControl").get(0))),i},n.prototype.GetBusyIndicatorMessageSupport=function(){return u||(u=new e,$("#divAjaxloaderControlUnAuth").get(0)&&ko.applyBindings(u,$("#divAjaxloaderControlUnAuth").get(0))),u},n.prototype.GetWelcomeMessage=function(){return r||(r=new s,$("#divWelcomeMessage").get(0)&&ko.applyBindings(r,$("#divWelcomeMessage").get(0))),r},n.prototype.GetNotification=function(n,t){return o=new c(n,t,this),ko.applyBindings(o,$("#divCourseAddedConfirmation").get(0)),o},n.prototype.GetErrors=function(n,t,i,r){return!errorDialog||r?(errorDialog=new a(n,t,i,r),ko.cleanNode(errorDialog),ko.applyBindings(errorDialog,$("#divErrorMessage").get(0))):(errorDialog.btnCancelText(""),t?errorDialog.headingText(t):errorDialog.headingText("Error"),i?errorDialog.btnText(i):errorDialog.btnText("Error"),errorDialog.errorArray(n)),errorDialog},n.prototype.GetResigningOverlay=function(n){return resignDialog||(resignDialog=new h(n),ko.applyBindings(resignDialog,$("#divReauthenticateDlg").get(0))),resignDialog},n.prototype.GetCustomMessage=function(){return f||(f=new l,$("#divCustomMessage").get(0)&&$("#divCustomMessage").remove(),$('<div id="divCustomMessage" class="overlay-loading-wrapper" data-bind="notificationPopupBinding: isShown" style="z-index:400;display:none;">                <div class="overlay-container" data-bind="template: { name: templateId() }"><\/div>            <\/div>').appendTo($("body")),ko.applyBindings(f,$("#divCustomMessage").get(0)),$("#overlay").length===0&&$('<div id="overlay" style="display: block;"><\/div>').appendTo($("body"))),f},n}();var overlay=new microsoft.learning.mlx.popupMessagesViewModel;microsoft.learning.mlx.SdkInitializer=function(){var n=function(){var n=this};return n.prototype.Initialize=function(n,t,i){var f=this,r=$.Deferred(),u;if(t!="")return u=new microsoft.learning.mlx.authenticationSDK,r=MLX.init({appId:t,apiHost:n,isAdmin:!1,errorcallback:null,reauthenticatecallback:(new microsoft.learning.mlx.authenticationSDK.AuthenticateHandler).handleAuthentication}),r.done(function(){MLX.context.currentUser.isAuthenticated?i.call(this,MLX.context):u.Initialize()}),r;i.call(this,MLX.context)},n}()