/* Minification failed. Returning unminified contents.
(7,7720-7721): run-time error JS1195: Expected expression: >
(7,7914-7915): run-time error JS1195: Expected expression: )
 */
var Epic=Epic||{};Epic.PatientAccess=Epic.PatientAccess||{};var $$WP=$$WP||Epic.PatientAccess;$$WP.Navigation=$$WP.Navigation||{},$$WP.Navigation.HeaderController=$$WP.Navigation.HeaderController||function(){},$$WP.Utilities=$$WP.Utilities||{},$$WP.Utilities.UI=$$WP.Utilities.UI||{},$$WP.Utilities.UI.Map=$$WP.Utilities.UI.Map||{},$$WP.Utilities.UI.Map.Support=$$WP.Utilities.UI.Map.Support||{},$$WP.Utilities.UI.MyChartCentral=$$WP.Utilities.UI.MyChartCentral||{};var EpicPx=EpicPx||{};$$WP.Utilities.UI.SetContext=function $$WP$Utilities$UI$SetContext(){var e=$afe.select("body");$afe.select("div");$$WP.Utilities.UI.IsLoggedIn=e.hasClass("isInside"),$$WP.Utilities.UI.IsLoggedIn||e.hasClass("isPrelogin")||EpicPx.isBuilder||$$WP.Debug.logError("Page body has neither isPrelogin nor isLoggedIn class. One or the other is required; assuming prelogin."),$$WP.Utilities.UI.IsMidLogin=e.hasClass("midlogin"),$$WP.Utilities.UI.IsWorkflowRestricted=e.hasClass("workflowRestricted"),$$WP.Utilities.UI.IsCapturedWorkflow=e.hasClass("capturedWorkflow"),$$WP.Utilities.UI.IsMobile=$afe.select("html").hasClass("mobile"),$$WP.Utilities.UI.IsStandaloneOpenScheduling=e.hasClass("md_openscheduling_index")||e.hasClass("md_anonymousscheduling_openscheduling")||e.hasClass("md_openscheduling_standalone"),$$WP.Utilities.UI.IsSelfTriageForAll=(e.hasClass("md_landingpage_loadlandingpagedecisiontrees")||e.hasClass("md_selftriage_load")||e.hasClass("md_triagehistory_load"))&&($$WP.Utilities.UI.IsWorkflowRestricted||!$$WP.Utilities.UI.IsLoggedIn),$$WP.Utilities.UI.IsCrossDeploymentLoadingPage=e.hasClass("md_crossdeploymentscheduling_schedulefromtoken"),$$WP.Utilities.UI.IsEmbeddedOpenSchedulingWidget=e.hasClass("embedded"),$$WP.Utilities.UI.IsFileUploader=e.hasClass("uploaderfileinput"),$$WP.Utilities.UI.IsFullHeightPreloginWorkflow=e.hasClass("fullHeightPrelogin"),$$WP.Utilities.UI.IsUsingGraphicHeader=e.hasClass("graphicHeader"),$$WP.Utilities.UI.IsMobileRTLInNonResponsive=e.hasClass("mobileRTLInNonResponsive"),$$WP.Utilities.UI.IsOnMyWay=e.hasClass("md_onmyway_index"),$$WP.Utilities.UI.ContextSet=!0;var t=e.safeAttr("class")&&e.safeAttr("class").match(/\bcolor\d+\b/);t&&($$WP.Utilities.UI.ProxyColorClass=t[0])},$$WP.Utilities.UI.OnPageLoad=function $$WP$Utilities$UI$OnPageLoad(e){if(!0===$$WP.Utilities.UI.PageLoaded)throw"Full UI Load called again after completion. This is forbidden.";if(!0!==$$WP.Utilities.UI.StopPageLoad){"load"!==e.type&&$$WP.Debug.logError("Full UI Load called by an event other than Page Load.");var t=$afe.select("body"),i=($afe.select("#wrap"),$afe.select("form"));if($$WP.Utilities.UI.SetContext(),!0!==$$WP.Utilities.UI.IsFileUploader){if(($$WP.Utilities.UI.IsLoggedIn||$$WP.Utilities.UI.IsFullHeightPreloginWorkflow||$$WP.Utilities.UI.IsMidLogin)&&$$WP.Utilities.UI.RenderHeader(),WP.Utils.minifyElement($afe.select("#header")),WP.Utils.minifyElement($afe.select("#content")),WP.Utils.minifyElement($afe.select("#footer")),i.submit((function(){$afe.jq(window).trigger("formSubmit")})),$$WP.Utilities.UI.ResizePage(e),!EpicPx.isBuilder){$afe.select(".cssSwitcher").click((function(e){var t;e&&"A"===e.currentTarget.nodeName&&(t=e.currentTarget.getAttribute("data-csstitle")),0!==t.length&&($$WP.Utilities.UI.ActivateStylesheet(t),$$WP.Utilities.UI.FocusCssSwitcher(t))}));var s=$$WP.Utilities.UI.GetAlternateStylesheetIfActive();s&&s.length>0?$$WP.Utilities.UI.ActivateStylesheet(s):$$WP.Utilities.UI.ActivateStylesheet("Default"),"1"===$$WP.Utilities.queryString("highcontrast")||"true"===$$WP.Utilities.queryString("highcontrast")?$$WP.Utilities.UI.ActivateStylesheet("High Contrast"):"0"!==$$WP.Utilities.queryString("highcontrast")&&"false"!==$$WP.Utilities.queryString("highcontrast")||$$WP.Utilities.UI.ActivateStylesheet("Default")}if(window.matchMedia){var a=window.matchMedia("(-ms-high-contrast: active)");a.matches&&$$WP.Utilities.UI.ActivateHighContrastThemeBasedOnMQL(a),a.addListener($$WP.Utilities.UI.ActivateHighContrastThemeBasedOnMQL)}$$WP.Utilities.UI.IsMobile&&$$WP.Utilities.UI.Map.mobile(e),t.hasClass("passthru")&&($$WP.CommunityUtilities.checkIfCommunityJumpIsValid(),$afe.jq(window).on("message",$$WP.CommunityUtilities.externalJumpMessageListener),$afe.select("a[href*='mode=other']").remove()),t.on("popupStateChanged",$$WP.Utilities.UI.ReactPopupStateChangedListener),t.on("searchAsYouTypeStateChanged",$$WP.Utilities.UI.SearchAsYouTypeStateChangedListener),t.on("touchstart",".button",(function(){})),t.addClass("ready"),$$WP.Utilities.UI.IsLoggedIn&&$afe.select(".component").trigger("resize"),navigator.userAgent.match(/Trident\/7./)&&t.on("mousewheel",(function(e){if(!isDataTile()&&!$afe.select("body").hasClass("scrollDisabled")){var t=window.pageYOffset,i=e.originalEvent.wheelDelta;if(e.ctrlKey)return;e.preventDefault(),window.scrollTo(window.pageXOffset,t-i)}})),"undefined"!=typeof specialEffects&&specialEffects(),$afe.select("#locale_container #localeswitch").length>0&&new $$WP.UI.LocaleSwitcherController($afe.select("#locale_container"));var l,o=$afe.select("#header"),n=!o.hasClass("static");for(n&&o.on("transitionend",(function(e){"height"==e.propertyName&&$$WP.Utilities.UI.SetHeaderSize(!0)})),$afe.select("body").hasClass("isPrelogin")||$afe.jq(window).scroll((function(){$afe.select("body, #wrap").hasClass("scrollDisabled")||($$WP.Utilities.UI.SetHeaderSize(n),$$WP.Utilities.UI.TryToggleStickyShortcuts())})),$$WP.Utilities.UI.EnforceEpicLogoVisibility(!0),$afe.jq(window).on("compactHeader",(function(){$$WP.Utilities.UI.EnforceEpicLogoVisibility(!0)})),$afe.jq(window).on("deCompactHeader",(function(){$$WP.Utilities.UI.EnforceEpicLogoVisibility(!0)})),$$WP.Utilities.UI.MyChartCentral._overrideBackButton(),$$WP.Utilities.UI.PageLoaded=!0,l=0;l<$$WP.Utilities.UI._onUIFrameworkLoadedCallbacks.length;l++)$$WP.Utilities.UI._onUIFrameworkLoadedCallbacks[l]();$$WP.Performance&&$$WP.Performance.Tracker&&$$WP.Performance.Tracker._recordFrameworkMeasurements()}}},$$WP.Utilities.UI.LastScrollTop=0,$$WP.Utilities.UI.CanResize=!0,$$WP.Utilities.UI.SetHeaderSize=function WP$Utilities$UI$SetHeaderSize(e){var t=$$WPUtil.getScrollTop(),i=t<$$WP.Utilities.UI.LastScrollTop,s=$afe.select("#header").hasClass("compact"),a=$$WP.Utilities.UI.IsUsingGraphicHeader?40:75;e&&!sessionStorage.getItem("mccLocation")&&$$WP.Utilities.UI.CanResize&&(!s&&!i&&t>a?($$WP.Utilities.UI.CanResize=!1,setTimeout((function(){$$WP.Utilities.UI.CanResize=!0}),50),$$WP.Utilities.UI.CollapseHeader(e),$$WP.Utilities.UI._CalculateHeaderHeight()):s&&i&&t<a&&($$WP.Utilities.UI.CanResize=!1,setTimeout((function(){$$WP.Utilities.UI.CanResize=!0}),50),$$WP.Utilities.UI.ExpandHeader(e),$$WP.Utilities.UI._CalculateHeaderHeight())),$$WP.Utilities.UI.LastScrollTop=t},$$WP.Utilities.UI.CollapseHeader=function WP$Utilities$UI$CollapseHeader(e){var t=document.querySelector("#header");t&&(t.classList.add("compact"),window.dispatchEvent(new Event("compactHeader")))},$$WP.Utilities.UI.ExpandHeader=function WP$Utilities$UI$ExpandHeader(e){var t=document.querySelector("#header");t&&(t.classList.remove("compact"),window.dispatchEvent(new Event("deCompactHeader")),window.scrollTo(window.scrollX,0))},$$WP.Utilities.UI.TryToggleStickyShortcuts=function $$WP$Utilities$UI$TryToggleStickyShortcuts(){var e=document.querySelector("body");if(e&&e.classList.contains("md_home_index")){var t=$$WP.Utilities.UI._getAreStickyShortcutsShown(),i=document.querySelector("#sticky-shortcut-buttons").classList,s=document.querySelector("#shortcut-buttons").classList;t?(i.remove("slideStickyShortcutsUp"),i.add("slideStickyShortcutsDown"),s.add("transparentBigShortcuts"),s.remove("opaqueBigShortcuts")):(i.add("slideStickyShortcutsUp"),i.remove("slideStickyShortcutsDown"),s.add("opaqueBigShortcuts"),s.remove("transparentBigShortcuts"))}},$$WP.Utilities.UI._getAreStickyShortcutsShown=function WP$Utilities$UI$_getAreStickyShortcutsShown(){var e=document.querySelector("#shortcut-buttons");return!!e.querySelector(".shortcutButtonList")&&e.getBoundingClientRect().bottom<100},$$WP.Utilities.UI._onUIFrameworkLoadedCallbacks=[],$$WP.Utilities.UI.OnUIFrameworkLoaded=function WP$Utilities$UI$OnUIFrameworkLoaded(e){$$WP.Utilities.UI.PageLoaded?e():$$WP.Utilities.UI._onUIFrameworkLoadedCallbacks.push(e)},$$WP.Utilities.UI.ResizePage=function $$WP$Utilities$UI$ResizePage(e){if(!0!=!$$WP.Utilities.UI.ContextSet)if(!0!==$$WP.Utilities.UI.CurrentlyResizing){if(!0!==$$WP.Utilities.UI.IsFileUploader){if($$WP.Utilities.UI.CurrentlyResizing=!0,$$WP.Debug.UpdateTopMarginForBanners(),$$WP.Utilities.UI.IsLoggedIn?$$WP.Utilities.UI.Map.inside(e):$$WP.Utilities.UI.Map.prelogin(e),$$WP.Utilities.UI.PageMode(e),$$WP.Utilities.UI.SupportFiles(e),$$WP.Utilities.UI._CalculateHeaderHeight(),!$$WP.Utilities.UI.IsMobile){var t=$afe.select("#header");$$WP.Utilities.UI._CalculateHeaderHeight(),!t.hasClass("midlogin")&&t.hasClass("static")||$$WP.Utilities.UI.EnforceEpicLogoVisibility(!t.hasClass("compact"));var i=$afe.select("#footer").outerHeight(),s=null!=i?i+"px":"0px";document.documentElement.style.setProperty("--wp-footer-height",s)}$$WP.Utilities.UI._hideExtOrgNotice(),$$WP.Utilities.UI.CurrentlyResizing=!1}}else $$WP.Debug.log("WARNING: ResizePage called again before resize could finish.");else $$WP.Debug.logError("ResizePage called before context was set. You should not call any part of the UI Framework before OnPageLoad has finished.")},$$WP.Utilities.UI._CalculateHeaderHeight=function $$WP$Utilities$UI$_CalculateHeaderHeight(){if(!$$WP.Utilities.UI.IsMobile){var e=$afe.select("#header"),t=$afe.select("#main"),i=e.outerHeight(),s=e.css("top"),a=i&&s?i+parseInt(s,10)+"px":"0px",l=t.css("padding-top");document.documentElement.style.setProperty("--wp-header-height",a),document.documentElement.style.setProperty("--wp-main-padding-top",l)}},$$WP.Utilities.UI._hideExtOrgNotice=function WP$Utilities$UI$HideExtOrgNotice(){$$WP.Settings.UseOrgLogoForH2GData&&($afe.select(".externalorgnotice:not(.incompleteh2gnotice)").addClass("hidden"),$afe.select(".externalorgnotice.incompleteh2gnotice").addClass("useOrgLogo"))},$$WP.Utilities.UI.PageMode=function $$WP$Utilities$UI$PageMode(e){var t,i=$afe.select("body");8!==WP.DOM.Browser.IEVersion&&(t=(t=i.prop("class").split(" ").filter((function(e){return/md_.*/.exec(e)})))&&t.length>0?t[0].substr(3):null)&&"function"==typeof $$WP.Utilities.UI.Map[t]&&$$WP.Utilities.UI.Map[t](e)},$$WP.Utilities.UI.SupportFiles=function $$WP$Utilities$UI$SupportFiles(e){var t;for(t in $$WP.Utilities.UI.Map.Support)$$WP.Utilities.UI.Map.Support.hasOwnProperty(t)&&"function"==typeof $$WP.Utilities.UI.Map.Support[t]&&$$WP.Utilities.UI.Map.Support[t](e)},$$WP.Utilities.UI.ToggleButtonClick=function $$WP$Utilities$UI$ToggleButtonClick(e,t,i,s){var a,l,o,n=$afe.jq(e);if(void 0===n.prop("wasChecked")&&n.is("[checked='checked']")&&n.prop("wasChecked","checked"===n.safeAttr("checked")),o=n.prop("type"),n.prop("wasChecked")){if("radio"===o&&i)return!1;n.prop("checked",!1)}else n.prop("checked",!0);return n.prop("wasChecked",n.prop("checked")),n.parents("form").first().change(),"radio"===o&&(l=n.prop("name"),(a=$afe.select("input[name='"+l+"']").not(n)).prop({checked:!1,wasChecked:!1}),s||a.trigger("input")),n.trigger("input"),!1},$$WP.Utilities.UI.ActivateStylesheet=function $$WP$Utilities$UI$ActivateStylesheet(e){var t,i="userstylesheet4"+makeLink("").replace(new RegExp("/","g"),"").toLowerCase();if(e&&0!==e.length){if("Default"===e)$afe.select("link[title]").safeAttr("rel","alternate stylesheet").prop("disabled",!0),$afe.select("html").removeAttr("data-altstylesheet"),$$WPUtil.isLocalStorageAvailable()&&void 0!==window.localStorage&&localStorage.removeItem(i);else $afe.select("link[title='"+e+"']").safeAttr("rel","stylesheet").prop("disabled",!1),$afe.select("html").safeAttr("data-altstylesheet",e),$$WPUtil.isLocalStorageAvailable()&&void 0!==window.localStorage&&localStorage.setItem(i,e);for("function"==typeof $$WP.Utilities.UI.StyleSheetAdjustment[e]&&$$WP.Utilities.UI.StyleSheetAdjustment[e](),t=0;t<$$WP.Utilities.UI._onStylesheetActivatedListeners.length;t++)$$WP.Utilities.UI._onStylesheetActivatedListeners[t].callback(e,$$WP.Utilities.UI._onStylesheetActivatedListeners[t].contextData)}},$$WP.Utilities.UI.FocusCssSwitcher=function $$WP$Utilities$UI$FocusCssSwitcher(e){if(e&&0!==e.length)switch(e){case"Default":setTimeout((function(){$afe.select(".cssSwitcher[data-csstitle='High Contrast']").focus()}),100);break;case"High Contrast":setTimeout((function(){$afe.select(".cssSwitcher[data-csstitle='Default']").focus()}),100)}},$$WP.Utilities.UI._onStylesheetActivatedListeners=[],$$WP.Utilities.UI.s_nextStylesheetActivatedListenerId=1,$$WP.Utilities.UI.OnStylesheetActivated=function WP$Utilities$UI$OnStylesheetActivated(e,t){e&&"function"==typeof e||$$WP.Debug.logError("OnStylesheetActivated callback is not a function");var i={callback:e,contextData:t,listenerId:$$WP.Utilities.UI.s_nextStylesheetActivatedListenerId++};return $$WP.Utilities.UI._onStylesheetActivatedListeners.push(i),$$WP.Utilities.UI.s_nextStylesheetActivatedListenerId},$$WP.Utilities.UI.GetAlternateStylesheetIfActive=function $$WP$Utilities$UI$GetAlternateStylesheetIfActive(){var e,t;return $$WPUtil.isLocalStorageAvailable()&&void 0!==window.localStorage&&!$$WP.Utilities.UI.IsMobile&&(e="userstylesheet4"+makeLink("").replace(new RegExp("/","g"),"").toLowerCase(),t=localStorage.getItem(e)),t},$$WP.Utilities.UI.ReloadGraphs=function $$WP$Utilities$UI$ReloadGraphs(){"function"==typeof loadGraphs&&loadGraphs()},$$WP.Utilities.UI.StyleSheetAdjustment={Default:$$WP.Utilities.UI.ReloadGraphs,"High Contrast":$$WP.Utilities.UI.ReloadGraphs},$$WP.Utilities.UI.IsHighContrast=function $$WP$Utilities$UI$IsHighContrast(){return"High Contrast"===document.documentElement.getAttribute("data-altstylesheet")},$$WP.Utilities.UI.ActivateHighContrastThemeBasedOnMQL=function WP$Utility$UI$ActivateHighContrastThemeBasedOnMQL(e){var t;e.matches?t="High Contrast":($$WPUtil.isLocalStorageAvailable()&&void 0!==window.localStorage&&(t=$$WP.Utilities.UI.GetAlternateStylesheetIfActive()),(!t||t.length<=0)&&(t="Default")),$afe.select("link[title='"+t+"']").safeAttr("rel","stylesheet").prop("disabled",!1),$afe.select("html").safeAttr("data-altstylesheet",t)},$$WP.Utilities.UI.IsSmallScreen=function $$WP$Utilities$UI$IsSmallScreen(){return window.matchMedia("screen and (max-width:768px)").matches},$$WP.Utilities.UI.IsLargePhoneOrSmaller=function $$WP$Utilities$UI$IsLargePhoneOrSmaller(){return window.matchMedia("screen and (max-width:992px)").matches},$$WP.Utilities.UI.IsMediumSmallScreen=function $$WP$Utilities$UI$IsMediumSmallScreen(){return window.matchMedia("screen and (max-width:1300px)").matches},$$WP.Utilities.UI.SearchAsYouTypeStateChangedListener=function $$WPUtilitiesUISearchAsYouTypeStateChangedListener(e){const t=$afe.select("#header");if(!e||!e.detail||"boolean"!=typeof e.detail.isOpen||"boolean"!=typeof e.detail.skipAnimation||0==t.length)return;const i=e.detail.isOpen;$headerShield=$afe.select("#header_shield"),e.detail.skipAnimation?$headerShield.addClass("skipAnimation"):$headerShield.removeClass("skipAnimation");const s=$afe.select("#header_search_bar_container"),a=$afe.select("#skipToMain");if(i)$$WP.Utilities.UI.CanResize=!1,t.addClass("isSearchOpen"),s.addClass("isSearchOpen"),$$WP.Utilities.UI.CollapseHeader(!0),$$WP.Utilities.UI._CalculateHeaderHeight(),a.attr("tabindex","-1");else{t.removeClass("isSearchOpen");const e=window.matchMedia("(prefers-reduced-motion: reduce)").matches;setTimeout((function(){$$WPUtil.getScrollTop()<40&&($$WP.Utilities.UI.ExpandHeader(!0),$$WP.Utilities.UI._CalculateHeaderHeight()),$$WP.Utilities.UI.CanResize=!0,s.removeClass("isSearchOpen")}),e?0:200),a.attr("tabindex","0")}$afe.select("#footer").safeAttr("aria-hidden",i),$afe.select("#content").safeAttr("aria-hidden",i),$afe.select("#toastWrapper").safeAttr("aria-hidden",i),$$WP.Utilities.UI.ToggleBodyScrolling(e.detail.isOpen,$afe.select("#wrap"),!0)},$$WP.Utilities.UI.ReactPopupStateChangedListener=function $$WPUtilitiesUIReactPopupStateChangedListener(e){e&&e.detail&&"boolean"==typeof e.detail.isOpen&&$$WP.Utilities.UI.ToggleBodyScrolling(e.detail.isOpen,$afe.select("#wrap"))},$$WP.Utilities.UI.ToggleBodyScrolling=function $$WPUtilitiesUIToggleBodyScrolling(e,t,i){var s=t||$afe.jq(document.body),a=$afe.jq(window),l=$afe.jq(document);function maintainFrozenScrollPos(){var e=Math.abs(parseInt(s.css("margin-top"))),t=s.hasClass("scrollDisabled");t&&s.removeClass("scrollDisabled");var i=document.body.scrollHeight,a=document.body.clientHeight;if(t&&s.addClass("scrollDisabled"),i<e+a){var l=a-i;s.css("margin-top",l+"px");var o=$$WP.Utilities.UI.IsUsingGraphicHeader?20:75;Math.abs(l)<o&&($afe.select("#header").removeClass("compact"),$$WP.Utilities.UI.EnforceEpicLogoVisibility(!0))}}if(!0!==e||s.hasClass("scrollDisabled")){if(!1===e){var o=-parseInt(s.css("margin-top"));s.removeClass("scrollDisabled"),s.css("margin-top",""),s.css("margin-left",""),isDataTile()&&null!=window.frameElement||$$WPUtil.setScrollTop(o),a.off("resize orientationchange",maintainFrozenScrollPos),l.off("visibilitychange",maintainFrozenScrollPos)}}else{var n;isDataTile()&&null!=window.frameElement||(n=$$WPUtil.getScrollTop());var r=s.offset();s.addClass("scrollDisabled"),s.css({"margin-top":-n,"margin-left":r.left}),i||(a.on("resize orientationchange",maintainFrozenScrollPos),l.on("visibilitychange",maintainFrozenScrollPos))}},$$WP.Utilities.UI.RenderHeader=function $$WP$Utilities$UI$RenderHeader(){new $$WP.Navigation.HeaderController},$$WP.Utilities.UI._setUpLogOutButton=function $$WP$Utilities$UI$_setUpLogOutButton(){var e=$afe.select("#logout_button");$$WP.Utilities.UI._bindToClickAndPress(e,(function(){$$WP.Utilities.UI._logOutHandler()}))},$$WP.Utilities.UI._bindToClickAndPress=function(e,t){e.on("click",(function(e){t(e)})),e.on("keypress",(function(e){32!=e.keyCode&&13!=e.keyCode||t(e)}))},$$WP.Utilities.UI._logOutHandler=function $$WP$Utilities$UI$_logOutHandler(){($$WP.Utilities.UI.IsSelfTriageForAll||"100"===$$WP.Utilities.queryString("workflow")&&"signup"===$$WP.Utilities.queryString("postlogoutmode"))&&$$WP.Utilities.UI.AddSelfTriageForAllOverrides(),DoRedirect(null,!1)},$$WP.Utilities.UI._setUpLocaleSwitcher=function $$WP$Utilities$UI$_setUpLocaleSwitcher(){$.ajax({type:"Get",url:makeLink("Localization/Links"),data:{alwaysShowDropdown:!0},datatype:"html",success:function(e){e&&(dangerou$.setHtml($afe.select("#locale_container"),e),$afe.select("#locale_container #localeswitch").length>0?new $$WP.UI.LocaleSwitcherController($afe.select("#locale_container")):$afe.select("#locale_container").remove())}})},$$WP.Utilities.UI.AddSelfTriageForAllOverrides=function $$WP$Utilities$UI$AddSelfTriageForAllOverrides(){var e=!1,t=$$WPUtil.SafeToRedirectOverrideSettings;WP.Events.showBeforeUnloadMessage()||(WP.Events.beforeUnload(),e=!0),$$WPUtil.SafeToRedirectOverrideSettings={TitleText:$$WP.Strings.get("EndSessionPopupTitle","SelfTriage.SelfTriagePage"),Html:$$WP.Strings.get("EndSessionPopupPrompt","SelfTriage.SelfTriagePage"),ToolbarButtons:[new $$WPComp.ComplexObjects.Button($$WP.Strings.get("StayOnPageButtonText","SelfTriage.SelfTriagePage"),null,"","stay"),new $$WPComp.ComplexObjects.Button($$WP.Strings.get("EndSessionButtonText","SelfTriage.SelfTriagePage"),null,"inlinedelete","leave")],callback:function(i){$$WPUtil.SafeToRedirectOverrideSettings=t,e&&WP.Events.cancelBeforeUnload(),CreateLogOutPopup(i)}}},$$WP.Utilities.UI.EnforceEpicLogoVisibility=function $$WP$Utilities$UI$EnforceEpicLogoVisibility(e){var t="display: block !important; visibility: visible !important; opacity: 1 !important; min-height: 2rem !important; padding: 0 !important; margin-bottom: 0 !important; min-width: 3rem !important; position: static !important; z-index: auto !important;",i=$afe.select("#header_logo_by_epic"),s=$afe.select("#header_logo_by_epic img"),a=document.getElementById("header"),l=window.innerWidth<=768&&a&&header.classList.contains("compact"),o=window.innerWidth<=321;!e||l||o?(i.safeRemoveStyle(),s.safeRemoveStyle()):($$WP.Utilities.UI._isLogoMarginManipulated()&&(t+=" margin-top: 0 !important"),i.safeAttr("style",t+" margin-left: auto !important; margin-right: 0 !important;"),s.safeAttr("style",t+" margin-left: auto !important; margin-right: 0 !important;"))},$$WP.Utilities.UI._isLogoMarginManipulated=function $$WP$Utilities$UI$_isLogoMarginManipulated(){var e=parseInt($afe.select("div#header_logo_by_epic").css("margin-top")),t=parseInt($afe.select("div#header_logo_by_epic img").css("margin-top"));return e>30||e<0||0!=t},$$WP.Utilities.UI.EnforceCopyrightEpicLogoVisibility=function $$WP$Utilities$UI$EnforceCopyrightEpicLogoVisibility(){if(!(0===$afe.select("#mychart_by_epic_logo").length||$afe.select("#header_logo_by_epic").length>0||window.location.pathname.indexOf("/Authentication/TermsConditions")>-1)){var e="display: block !important; visibility: visible !important; opacity: 1 !important; min-height: 1rem !important; padding: 0 !important; margin: .5rem auto 0 auto !important; min-width: 6.5rem !important; width: 6.5rem !important; position: static !important; z-index: auto !important;";$afe.select("#mychart_by_epic_logo").safeAttr("alt",$$WP.Strings.get("MyChartIsEpicAlt","Global")),$afe.select("#mychart_by_epic_logo_wrapper").safeAttr("style",e),$afe.select("#mychart_by_epic_logo").safeAttr("style",e)}},$$WP.Utilities.UI.MyChartCentral._overrideBackButton=function WP$Utilities$UI$OverrideBackButton(){if(sessionStorage.getItem("mccLocation")){var e=$afe.select("#backButton");if($$WP.Utilities.UI.MyChartCentral._backButtonGoesHome(e)){var t=$afe.select(".back.jqHidden");t&&t.removeClass("jqHidden"),$$WP.Settings.OrganizationName?e.text($$WP.Strings.get("ContinueToOrg")):e.text($$WP.Strings.get("ContinueToHome")),$$WP.Utilities.UI._bindToClickAndPress(e,(function(){$$WP.Utilities.UI.MyChartCentral._backButtonGoesHome()&&sessionStorage.removeItem("mccLocation")}))}}},$$WP.Utilities.UI.MyChartCentral._backButtonGoesHome=function WP$Utilities$UI$BackButtonGoesHome(e){e||(e=$afe.select("#backButton"));var t=e.safeAttr("href");if(t){var i=t.indexOf("?");i>0&&(t=t.substring(0,i));var s=t.endsWith("/Home"),a=t.endsWith("/inside.asp");return s||a}return!1},$$WP.Utilities.UI.MyChartCentral._setUpBackToMCCButton=function $$WP$Utilities$UI$_setUpBackToMCCButton(){if($$WP.Utilities.UI.MyChartCentral._getMccLocation()){$afe.select("#header").addClass("isFromMCC");var e=$afe.select("#header_to_previous_button");$$WP.Utilities.UI._bindToClickAndPress(e,(function(e){$$WPUtil.SafeToRedirect($$WP.Utilities.UI.MyChartCentral._backToMyChartCentralHandler)})),$$WP.Utilities.UI._bindToClickAndPress($afe.select("#header_logo"),(function(){sessionStorage.removeItem("mccLocation")}))}},$$WP.Utilities.UI.MyChartCentral._backToMyChartCentralHandler=function(e){if(e){var t=new $$WPComp.LoggingOutComponent(null,!1,(function(){if(window.close(),window){var e="";try{var t=$$WP.Utilities.UI.MyChartCentral._getMccLocation(),i=new URLSearchParams(atob(decodeURIComponent(t))).get("url"),s=$$WP.Settings.MyChartCentralURL;s.endsWith("/")&&(s=s.substring(0,s.length-1)),i.startsWith("/")&&(i=i.substring(1));var a=s.split("/"),l=i.split("/");a[a.length-1].toLowerCase()===l[0].toLowerCase()&&a.pop(),e=a.concat(l).join("/")}catch(e){}window.location.href=e}}));new $$WPContain.Popup({positioningFunction:$$WPContain.Positions.InsideNearTop,Components:t,TitleText:null,IsClosable:!1,Class:"logout"}).show(!0)}},$$WP.Utilities.UI.MyChartCentral._getMccLocation=function(){var e=sessionStorage.getItem("mccLocation"),t=$$WP.Utilities.queryString("mccLocation");return t&&t!==e&&(sessionStorage.setItem("mccLocation",t),e=t),e};;
$$WP.Utilities.UI.Prelogin=function $$WP$Utilities$UI$Prelogin(e){$afe.select("body"),$afe.select("#wrap"),$afe.select("#footer");if("load"===e.type){$afe.select("#nojavascript").addClass("hidden"),$afe.select("#loginErrorMessage").removeClass("hidden"),WP.Utils.minifyElement($afe.select("#sidebar"));var i=document.getElementsByClassName("mainStyle");null!=i&&0!=i.length?$afe.select(".mainStyle").empty().safeAppend($afe.renderTemplate($$WP.Templates.Core.infoprelogin,"")):$afe.select("body").hasClass("liteMode")&&$afe.select("#sidebarFooter").safePrepend($afe.renderTemplate($$WP.Templates.Core.infoabbreviatedprelogin,""))}$afe.select("body").hasClass("passthru")||$$WP.Utilities.UI.EnforceCopyrightEpicLogoVisibility()},$$WP.Utilities.UI.Map.prelogin=$$WP.Utilities.UI.Prelogin;;
$$WP.Utilities=$$WP.Utilities||{};var $$WPUtil=$$WP.Utilities;$$WPUtil._lightboxFadeDelay=200,$$WPUtil.SetupRadioLabels=function(){$afe.select('input[type="radio"]').change((function(){$.each($afe.select('input[type="radio"][name="'+$afe.jq(this).safeAttr("name")+'"]'),(function(t,e){$afe.select('label[for="'+$afe.jq(e).safeAttr("id")+'"]').removeClass("selected")})),$afe.select('label[for="'+$afe.jq(this).safeAttr("id")+'"]').addClass("selected")})).focus((function(){$afe.select('label[for="'+$afe.jq(this).safeAttr("id")+'"]').addClass("focused")})).blur((function(){$afe.select('label[for="'+$afe.jq(this).safeAttr("id")+'"]').removeClass("focused")})),$afe.select(".radiolabel").click((function(){}))},$$WPUtil.SetupRadioLabelsInContainer=function(t,e){null!==t&&(t.find('input[type="radio"]').change((function(){$.each(t.find('input[type="radio"][name="'+$afe.jq(this).safeAttr("name")+'"]'),(function(e,i){t.find('label[for="'+$afe.jq(i).safeAttr("id")+'"]').removeClass("selected")})),t.find('label[for="'+$afe.jq(this).safeAttr("id")+'"]').addClass("selected"),null!==e&&e(this)})).focus((function(){t.find('label[for="'+$afe.jq(this).safeAttr("id")+'"]').addClass("focused")})).blur((function(){t.find('label[for="'+$afe.jq(this).safeAttr("id")+'"]').removeClass("focused")})),t.find(".radiolabel").click((function(){})))},$$WPUtil.SetDropdownContents=function(t,e,i,n){var o;$$WPUtil.IsNullOrEmpty(t)||$$WPUtil.IsNullOrEmpty(e)||(n&&(e=JSON.parse(e)),o=[],$.each(e,(function(t,e){o.push('<option value="'+t+'">'+e+"</option>")})),t.empty(),dangerou$.setHtml(t,o.join()),i&&o.length<2?t.prop("disabled",!0):t.prop("disabled",!1))},$$WPUtil.SmoothScrollToElement=function(t,e,i,n){$$WPUtil.SmoothScrollToElementWithOffset(t,e,0,i,n)},$$WPUtil.SmoothScrollToElementWithOffset=function(t,e,i,n,o){var l,r;if($$WPUtil.IsNullOrEmpty(e)||0===e.length)throw"Cannot scroll to an empty target.";if($$WPUtil.IsNullOrEmpty(t))throw"Cannot scroll nothingness.";$$WPUtil.IsNullOrEmpty(n)&&(n=400),$$WPUtil.IsNullOrEmpty(i)&&(i=0),l=$afe.jq(e).offset().top,(r=$afe.jq(t)).animate({scrollTop:l-i},n,(function(){o&&o(),r.addClass("force_redraw"),window.setTimeout((function(){r.removeClass("force_redraw")}),1)}))},$$WPUtil.IsNullOrEmpty=function(t){return null==t||""===t},$$WPUtil.AddThrottledListener=function(t,e,i,n,o){var l;if($$WPUtil.IsNullOrEmpty(t))throw"Element to bind cannot be empty";if($$WPUtil.IsNullOrEmpty(e))throw"You must specificy at least one event to throttle";$.isNumeric(n)||(n=100),$$WPUtil.IsNullOrEmpty(o)&&$$WPUtil.IsNullOrEmpty(i)&&(i="change"),"function"!=typeof o&&(o=null),l=!1,$afe.jq(t).on(e,(function(e){l||(l=!0,window.setTimeout((function(){$$WPUtil.IsNullOrEmpty(i)||$afe.jq(t).trigger(i),$$WPUtil.IsNullOrEmpty(o)||o(e),l=!1}),n))}))},$$WPUtil.AddImmediateThrottledListener=function(t,e,i,n,o){var l;if($$WPUtil.IsNullOrEmpty(t))throw"Element to bind cannot be empty";if($$WPUtil.IsNullOrEmpty(e))throw"You must specificy at least one event to throttle";$.isNumeric(n)||(n=100),$$WPUtil.IsNullOrEmpty(o)&&$$WPUtil.IsNullOrEmpty(i)&&(i="change"),"function"!=typeof o&&(o=null),l=!1,$afe.jq(t).on(e,(function(e){l||(l=!0,$$WPUtil.IsNullOrEmpty(i)||$afe.jq(t).trigger(i),$$WPUtil.IsNullOrEmpty(o)||o(e),window.setTimeout((function(){l=!1}),n))}))},$$WPUtil.AddToggleListener=function(t,e,i,n,o,l,r,a,s,u){var c;if($$WPUtil.IsNullOrEmpty(e))throw"Toggle control ID is required.";$$WPUtil.IsNullOrEmpty(i)&&(i="click"),!0!==s&&!1!==s&&(s=!0),$$WPUtil.GetUniqueJQueryById(t,e).on(i,(function(i){var d,f,p;return d=$$WPUtil.GetUniqueJQueryById(t,e).safeAttr("data-toggle-for"),$$WPUtil.IsNullOrEmpty(d)||(p=(f=$afe.select("#"+d)).safeAttr("data-toggled"),c=$afe.jq(a),$.each(c,(function(t,e){var i;$afe.select('[data-toggle-for="'+$afe.jq(this).safeAttr("id")+'"]').removeClass(n).addClass(o),(i=$afe.jq(e)).safeAttr("data-toggled","false"),i.removeClass(l).addClass(r)})),$$WPUtil.SetElementToggled(f,$afe.jq(this),"true"!==p,l,r,n,o),"function"==typeof u&&u("true"===p,i)),!s}))},$$WPUtil.SetElementToggled=function(t,e,i,n,o,l,r){var a,s;s=$afe.jq(t),a=$$WPUtil.IsNullOrEmpty(e)?$afe.select('[data-toggle-for="'+s.safeAttr("id")+'"]'):$afe.jq(e),"true"===i||!0===i?(s.safeAttr("data-toggled","true"),s.removeClass(o).addClass(n),a.length>0&&a.removeClass(r).addClass(l)):(s.safeAttr("data-toggled","false"),s.removeClass(n).addClass(o),a.length>0&&a.removeClass(l).addClass(r))},$$WPUtil.ElementHasXOverflow=function(t){return t.offsetWidth<t.scrollWidth},$$WPUtil.ElementHasYOverflow=function(t){var e=$afe.select("html").get(0).offsetHeight,i=t.offsetHeight,n=t.scrollHeight;return e>i?i<n:e===i&&e===n?$afe.jq(window).height()<e:void 0},$$WPUtil.IsElementInView=function(t){var e,i,n;return isDataTile()&&null!=window.frameElement?(e=parent,n=window.frameElement.offsetTop):(e=window,n=0),i=$afe.jq(e),t.offset().top>=e.pageYOffset&&t.offset().top+t.height()+n<=e.pageYOffset+i.height()},$$WPUtil.ElementHasScrolledToBottom=function(t,e){var i,n=$afe.jq(t),o=$afe.select("html").get(0).offsetHeight,l=t.offsetHeight,r=t.scrollHeight;return $.isNumeric(e)||(e=.8),i=n,o===l&&o===r&&(i=$afe.jq(window)),i.scrollTop()+i.innerHeight()>=r*e},$$WPUtil.GUIDPrefix=function(t){return t?t+"_":""},$$WPUtil.GetUniqueJQueryById=function(t,e){return $afe.select("#"+$$WPUtil.GUIDPrefix(t)+e)},$$WPUtil.GetStringResource=function(t,e,i){var n=null,o="";return e&&(o=(n=$$WPUtil.GetUniqueJQueryById(t,"resources").find('div[data-rsrc-id="'+e+'"]')).safeAttr("data-rsrc-val"),$$WPUtil.IsNullOrEmpty(o)&&(o=n.html()),$$WPUtil.IsNullOrEmpty(i)||(o=$$WPUtil.ReplaceStringMnemonics(o,i))),o||""},$$WPUtil.ReplaceStringMnemonics=function(t,e){var i;return $$WPUtil.IsNullOrEmpty(t)?null:($$WPUtil.IsNullOrEmpty(e)||$.each(e,(function(e,n){i=new RegExp("@MYCHART@"+e+"@","gi"),t=t.replace(i,n)})),t)},$$WPUtil.PopulateComplexTemplate=function(t,e,i,n,o,l){var r,a,s,$;if($$WPUtil.IsNullOrEmpty(e))throw"You must supply a template ID";return $$WPUtil.IsNullOrEmpty(l)&&(l=0),$$WPUtil.IsNullOrEmpty(n)&&(n={}),$=(t?t+"_":"")+e+"_"+l,"true"===(r=$$WPUtil.GetUniqueJQueryById(t,e).clone()).safeAttr("data-template-children-only")?r=r.children():"true"===r.safeAttr("data-template-no-id")?r.safeAttr("id",""):r.safeAttr("id",$),$+="_",a=$$WPUtil.RecurseComplexTemplate(r,n,o,$),$$WPUtil.IsNullOrEmpty(i)||((s=$afe.jq(i)).empty(),a.safeAppendTo(s)),a},$$WPUtil.RecurseComplexTemplate=function(t,e,i,n,o,l){var r,a,s;return $.each(t,(function(r,a){var s,u,c,d,f,p,m,P,g,W,h,U,y,b,v;if(s=(a=$afe.jq(a)).safeAttr("data-template-group"),u=a.safeAttr("data-template-group-source"),g=a.safeAttr("data-template-source"),U=a.safeAttr("data-template-id"),f=p=m=!1,v=(a.safeAttr("data-template-type")||"").split(" "),$.each(v,(function(t,e){switch(e){case"collection":f=!0;break;case"object":p=!0;break;case"value":m=!0;break;case"nullable":P=!0;break;case"fill":h=!0}})),c=!$$WPUtil.IsNullOrEmpty(s)&&!$$WPUtil.IsNullOrEmpty(u),d=!$$WPUtil.IsNullOrEmpty(s)&&f,(p||m)&&P&&$$WPUtil.IsNullOrEmpty(e[g])||h)t=t.not(a.empty().remove());else if((f||p||c)&&!d)c&&(a=a.parent().children('[data-template-group="'+s+'"]'),g=u),b=$$WPUtil.IsNullOrEmpty(g)?e:e[g],p&&(b=[b]),p||$$WPUtil.IsNullOrEmpty(U)||(y=0),$.each(b,(function(e,o){var l,r;"function"==typeof i&&(o=i(g,e,o)),$$WPUtil.IsNullOrEmpty(o)||(l=a.clone(),c?(l.removeAttr("data-template-group"),l.removeAttr("data-template-group-source")):(l.removeAttr("data-template-type"),l.removeAttr("data-template-source")),l.safeInsertBefore(a.get(0)),r=$$WPUtil.RecurseComplexTemplate(l,o,i,n,U,y),$.isNumeric(y)&&(y+=1),l.safeReplaceWith(r),t=t.add(r))})),t=t.not(a.empty().remove());else{if(!$$WPUtil.IsNullOrEmpty(a.safeAttr("data-template-group")))return;a.children().length>0&&(W=$$WPUtil.RecurseComplexTemplate(a.children(),e,i,n,o,l),a.children().remove(),W.safeAppendTo(a),t=t.not(a).add(a))}})),r=$$WPUtil.SerializeNodes(t),"string"==typeof e&&(e={"#Value":e}),s=$.isNumeric(l),e["#ID"]=n+(o||"")+(o&&s?"_"+l:""),e["#NUM"]=s?l:"",a=dangerou$.parseHtml($$WPUtil.ReplaceTemplateMnemonics(r,e)),$.each(a,(function(t,e){var i,n,o=$afe.jq(e);i=o.safeAttr("data-src-url"),$$WPUtil.IsNullOrEmpty(i)||(o.safeAttr("src",i),o.removeAttr("data-src-url")),n=o.safeAttr("data-headers"),$$WPUtil.IsNullOrEmpty(n)||(o.safeAttr("headers",n),o.removeAttr("data-headers")),i=o.safeAttr("data-href-url"),$$WPUtil.IsNullOrEmpty(i)||(o.safeAttr("href",i),o.removeAttr("data-href-url"))})),a},$$WPUtil.SerializeNodes=function(t){var e,i="";return"function"==typeof XMLSerializer?(e=new XMLSerializer,$.each(t,(function(t,n){i+=n.outerHTML||e.serializeToString(n)}))):$.each(t,(function(t,e){i+=e.outerHTML||e.xml})),i},$$WPUtil.ReplaceTemplateMnemonics=function(t,e){var i;return $$WPUtil.IsNullOrEmpty(t)?null:($$WPUtil.IsNullOrEmpty(e)||$.each(e,(function(e,n){i=new RegExp("__"+e+"__","gi"),"string"==typeof n&&(n=HTMLEncode(n)),t=t.replace(i,n)})),t)},$$WPUtil.CenterContainerOnPage=function(t,e){var i,n=0;$afe.jq(window).height(),i=$afe.jq(t),e&&$$WPUtil.setScrollTop(0),(n=$$WPUtil.getScrollTop()+($afe.jq(window).height()-i.height())/2)<0&&(n=0),i.css({top:n+"px"})},$$WP.Utilities.isAbsoluteURL=function(t){return new RegExp("^(?:[a-z]+:)?//","i").test(t)},$$WPUtil.ShowUrlInLightbox=function(t,e,i,n,o){var l;(l=t.url||t)&&$.ajax($.extend({url:l,type:"GET",dataType:"html",success:function ShowUrlInLightbox$success(t){var e,l;$$WPUtil.ShowLightboxOverlay(null,n,o),l=$afe.select("#lightbox"),dangerou$.setHtml(l,""),e=$afe.select(".ajaxspinner").length>0,dangerou$.setHtml(l,t),e&&l.find(".ajaxspinner").remove(),$afe.select("body").addClass("showLightBox"),l.removeClass("hidden").show((function ShowUrlInLightbox$show(){$$WPUtil.CenterContainerOnPage(l)})).promise().done((function ShowUrlInLightbox$done(){i&&"function"==typeof i&&i()}))}},e||t.settings))},$$WPUtil.ShowContainerAsLightbox=function(t,e,i){var n,o={container:t,hideLightboxCallback:i};$$WPUtil.ShowLightboxOverlay(t,e,i),(n=$afe.jq(t)).show($$WPUtil._lightboxFadeDelay,(function(){n.find(".slider").trigger("matchCardHeights"),$$WPUtil.CenterContainerOnPage(t)})),n.on("keydown",(function(t){$$WPUtil.LightboxKeyDownHandler(t,n,$$WPUtil.LightboxEscKeyHandler,null,null,o)}))},$$WPUtil.LightboxEscKeyHandler=function(t,e){var i=e.container,n=e.hideLightboxCallback;$$WPUtil.HideLightbox(i,n),t.preventDefault()},$$WPUtil.ShowLightboxOverlay=function(t,e,i){var n=$afe.select("#lightbox_overlay");n.off("click"),n.on({click:function(){$$WPUtil.HideLightbox(t,i)}}),n.show($$WPUtil._lightboxFadeDelay).promise().done((function(){e&&"function"==typeof e&&e()}))},$$WPUtil.LightboxKeyDownHandler=function(t,e,i,n,o,l){var r,a,s;switch(a=(r=e.find("a[href]:not([tabindex='-1']), area[href]:not([tabindex='-1']), input:not([tabindex='-1']), select:not([tabindex='-1']), textarea:not([tabindex='-1']), button:not([tabindex='-1']), [tabindex]:not([tabindex='-1'])"))[0],s=r[r.length-1],t.which){case 9:t.shiftKey?document.activeElement===a&&($afe.jq(s).focus(),t.preventDefault()):document.activeElement===s&&($afe.jq(a).focus(),t.preventDefault());break;case 27:null!==i&&"function"==typeof i&&i(t,l);break;case 38:null!==n&&"function"==typeof n&&n(t,l);break;case 40:null!==o&&"function"==typeof o&&o(t,l)}},$$WPUtil.HideLightbox=function Epic$PatientAccess$Utilities$HideLightbox(t,e){!0!==$$WPUtil.PreventHideLightbox&&($$WPUtil.IsNullOrEmpty(t)||$afe.jq(t).hide($$WPUtil._lightboxFadeDelay),$afe.select(".lb_content").hide($$WPUtil._lightboxFadeDelay),$afe.select("#lightbox_overlay").hide($$WPUtil._lightboxFadeDelay),$afe.select("body").removeClass("showLightBox"),hideLightbox(),e&&"function"==typeof e&&e())},$$WPUtil.AjaxifyForm=function Epic$PatientAccess$Utilities$AjaxifyForm(t,e,i,n,o){var l={};e&&(l.url=$afe.jq(e).safeAttr("action"),l.type=$afe.jq(e).safeAttr("method"),l.sendFormData=!0,e.off("submit").on("submit",$$WPUtil.SubmitAjaxifiedForm(l,t,e,i,n,o)))},$$WPUtil.SubmitAjaxifiedForm=function(t,e,i,n,o,l){return function(){var r,a,s,u;return r=$$WPUtil.AjaxifyFormSubmitHandler(e,i,n,o,l),a=t.url,s=t.type,u=t.sendFormData?$afe.jq(i).serialize():{},!!$$WPUtil.ValidateForm(e,i)&&($.ajax({url:a,type:s,data:u,context:$afe.jq(i),datatype:"json",error:$$WPUtil.DisplayAjaxError,statusCode:{404:function(){}},success:r}),!1)}},$$WPUtil.AjaxifyFormSubmitHandler=function(t,e,i,n,o){return function(l){if("syncchart"!==l.action)if("endworkflow"!==l.action){if("showerrors"===l.action)return $$WPUtil.WriteErrorsToForm(t,$afe.jq(e),l.errors,l.Mnemonics),void $$WPUtil._invokeErrorCallback(i,l.errors);if($$WPUtil.RunCallbackForType(o),n&&"function"==typeof n){var r=!0;try{r=n(l)}catch(t){}if(!r)return}"lightbox"===l.action&&l.url.length>0?$$WPUtil.ShowUrlInLightbox(l):"redirect"!==l.action||window.location.assign(l.url||"/")}else $$WPUtil._invokeErrorCallback(i,l.errors);else $$WPUtil._invokeErrorCallback(i,l.info)}},$$WPUtil._invokeErrorCallback=function Epic$PatientAccess$Utilities$_invokeErrorCallback(t,e){if(t&&"function"==typeof t)try{t(e)}catch(t){$$WPUtil.ShowUrlInLightbox("Error")}},$$WPUtil.CallbackTypeEnum={Authenticate:"Authenticate"},$$WPUtil.RegisterCallbackForType=function Epic$PatientAccess$Utilities$SetCallbackForType(t,e){var i=$$WPUtil.CallbackTypeEnum[t];$$WP.CallbacksForType||($$WP.CallbacksForType={}),!$$WPUtil.IsNullOrEmpty(i)&&e&&"function"==typeof e&&($$WP.CallbacksForType[i]=e)},$$WPUtil.RunCallbackForType=function Epic$PatientAccess$Utilities$RunCallbackForType(t){var e,i=$$WPUtil.CallbackTypeEnum[t];$$WPUtil.IsNullOrEmpty(i)||(e=$$WP.CallbacksForType[i])&&"function"==typeof e&&e()},$$WPUtil.DisplayAjaxError=function Epic$PatientAccess$Utilities$DisplayAjaxError(t,e,i){alert("An error occurred while processing the request: "+e)},$$WPUtil.ValidateForm=function Epic$PatientAccess$Utilities$ValidateForm(t,e){var i={},n=!1;return e.find("[data-form-valmsg-for="+e.safeAttr("id")+"]").removeClass("field-validation-error").addClass("field-validation-valid").empty(),e.find("span[data-valmsg-for]").removeClass("field-validation-error").addClass("field-validation-valid").empty(),e.find("input").each((function(){if("true"===$afe.jq(this).safeAttr("data-val")){var t=$afe.jq(this).safeAttr("data-val-required");t&&""===this.value?(i[$afe.jq(this).safeAttr("name")]=t,n=!0):$afe.jq(this).removeClass("input-validation-error")}})),!n||($$WPUtil.WriteErrorsToForm(t,e,i),!1)},$$WPUtil.WriteErrorsToForm=function Epic$PatientAccess$Utilities$WriteErrorsToForm(t,e,i,n){var o,l,r={};for(o in i=$$WPUtil.MapValidationCodesFromServer(t,i,n),e.find("input").each((function(){var t=$afe.jq(this).safeAttr("name"),n=$afe.jq(this).safeAttr("id"),o=i[t];1!==r[t]&&(o?($afe.jq(this).addClass("input-validation-error"),dangerou$.setHtml(e.find('span[data-valmsg-for="'+n+'"]').removeClass("field-validation-valid").addClass("field-validation-error"),o),delete i[t],r[t]=1):($afe.jq(this).removeClass("input-validation-error"),e.find('span[data-valmsg-for="'+n+'"]').removeClass("field-validation-error").addClass("field-validation-valid").empty()))})),(l=i.formlevelmsg)?(dangerou$.setHtml(e.find('div[data-valmsg-summary="true"]').removeClass("validation-summary-valid").addClass("validation-summary-errors").find("ul").safeAppend("li"),l),delete i.formlevelmsg):e.find('div[data-valmsg-summary="true"]').removeClass("validation-summary-errors").addClass("validation-summary-valid").find("ul").empty(),i)i.hasOwnProperty(o)&&(l=i[o])&&dangerou$.setHtml(e.find('span[data-valmsg-for*="'+o+'"]').removeClass("field-validation-valid").addClass("field-validation-error"),l)},$$WPUtil.MapValidationCodesFromServer=function Epic$PatientAccess$Utilities$MapValidationCodesFromServer(t,e,i){var n,o;return $$WPUtil.GetUniqueJQueryById(t,"resources"),n={},$.each(e,(function(e,l){var r;$$WPUtil.IsNullOrEmpty(i)||(r=i[e]),o=$$WPUtil.GetStringResource(t,l,r),n[e]=o||l})),n},$$WPUtil.LogAction=function(t,e,i){var n=$afe.select("#logActionUrl").html();$.ajax(n,{type:"POST",action:e,mnemonicsString:JSON.stringify(i),suppressEpicDefaultAjaxErrorHandler:!0})},$$WPUtil.getScrollNode=function(){var t;return(t=isDataTile()?parent.document:document).scrollingElement||t.documentElement},$$WPUtil.ScrollableBody=function(){var t;return t=$$WPUtil.getScrollNode(),$afe.jq(t)},$$WPUtil.getScrollTop=function(){return $$WPUtil.getScrollNode().scrollTop},$$WPUtil.setScrollTop=function(t){$$WPUtil.IsNullOrEmpty(t)&&(t=0),$$WPUtil.getScrollNode().scrollTop=t},$$WPUtil.getScrollLeft=function(){return $$WPUtil.getScrollNode().scrollLeft},$$WPUtil.setScrollLeft=function(t){$$WPUtil.IsNullOrEmpty(t)&&(t=0),$$WPUtil.getScrollNode().scrollLeft=t},$$WPUtil.ActivateHelp=function(t){$afe.select('a[data-lightbox-guid="'+t+'"]').each((function(){$afe.jq(this).off("click").on("click",(function(){$$WPUtil.ShowContainerAsLightbox($$WPUtil.GetUniqueJQueryById(t,$afe.jq(this).safeAttr("data-lightbox-id")))}))}))},$$WPUtil.getDataTileScrollTop=function(t){return Math.max(0,-t.getBoundingClientRect().top)},$$WPUtil.SetupCustomTabbingForFields=function WPControl$LoginController$_SetupTabbing(t){var e,i,n;for(t[t.length],n=0;n<t.length;n++)e=n>0?t[n-1]:null,i=n<t.length-1?t[n+1]:null,t[n].on("keydown",{$tabFrom:e,$tabTo:i},$$WPUtil._CustomTabbingForField),null!==e&&null!==i&&t[n].safeAttr("tabindex",-1)},$$WPUtil._CustomTabbingForField=function WPControl$LoginController$_SetupTabbing(t){var e;9===t.keyCode&&null!==(e=t.shiftKey?t.data.$tabFrom:t.data.$tabTo)&&(e.focus(),t.stopPropagation(),t.preventDefault())},$$WPUtil.quickPopup=function(t,e){Array.isArray(t)?e.Components=t:e=$$WPUtil.mergeObjects({Components:t},e,!0);var i=new $$WPContain.Popup(e);return i.show(!0),i},$$WPUtil.SafeToRedirectOverrideSettings={},$$WPUtil.SafeToRedirect=function WPUtil$SafeToRedirect(t,e){var i,n;if(WP.Events.showBeforeUnloadMessage()){if(!0!==WP.Events.SafeToUnloadWarningDisplayed)return n={callback:t},$.extend(n,$$WPUtil.SafeToRedirectOverrideSettings),i=new $$WPComp.SafeToRedirectComponent(n),$$WPUtil.quickPopup(i,{positioningFunction:e})}else t(!0)},$$WPUtil.TryRedirect=function WPUtil$TryRedirect(t,e,i,n,o){var l,r,a,s=function WPUtil$TryRedirect(e){if(e){var l,r,a=$$WPUtil.parseQueryString(t).mode,s=($$WPUtil.queryString("mode"),$$WPUtil.TryRedirect._mustPickOrganizationModes),u=$$WPUtil.TryRedirect._mustPickOrganizationRoutes,redirect=function(t,e,i){var n,l;if($$WPUtil.IsH2GActivity(t))return-1===t.toLowerCase().indexOf(makeLink("").toLowerCase())&&(t=makeLink(t)),void(window.location=t);i&&"1"!==i&&!i.IsLocal?(n=(l=t.toLowerCase().indexOf(makeLink("").toLowerCase()))>-1?t.substr(l+makeLink("").length):t,"string"==typeof i?$$WP.CommunityUtilities.getOrganization(i,(function(t,e,i){$$WP.CommunityUtilities.openDeepLink("netredirect",i,{targetUrl:t},e?$$WP.CommunityUtilities.openDeepLinkType.InNewTab:$$WP.CommunityUtilities.openDeepLinkType.InPopup)}),[n,e]):$$WP.CommunityUtilities.openDeepLink("netredirect",i,{targetUrl:n},e?$$WP.CommunityUtilities.openDeepLinkType.InNewTab:$$WP.CommunityUtilities.openDeepLinkType.InPopup)):e?openWindow(t,"","","",o):window.location=t};if(!i){var c=$$WPUtil.parseQueryString(t).local,d=null;if(void 0!==c?"1"===c?l=!1:"0"===c&&(l=!0):s.indexOf(a)>-1?l=!0:$.each(u,(function(e,i){const n=t.indexOf(e),o=n+e.length;if(n>-1&&(o>=t.length||!/[a-zA-Z0-9]/.test(t[o])))return l=!0,a=i,void(d=makeLink("inside.asp?mode="+a))})),l)return-1!==["msgoptions","medrefill","custsvc","refrequest"].indexOf(a)&&(r=$$WP.Strings.get("PickOrganization","Messaging.Review")),void $$WP.CommunityUtilities.pickOrganization((function(t,e){"close"!==e&&(d&&(t=d),redirect(t,n,e))}),r,[t],a,$$WP.Strings.get("PickOrganizationTitle","Messaging.Review"));i="1"}redirect(t,n,i)}};l=(l=window.location.protocol+"//"+window.location.hostname).toLowerCase(),a=(r=t.toLowerCase()).substring(0,4),(n=n||r.indexOf(l)<0&&"http"===a)?s(!0):$$WPUtil.SafeToRedirect(s,e)},$$WPUtil.TryRedirect._mustPickOrganizationModes=["msgoptions"],$$WPUtil.TryRedirect._mustPickOrganizationRoutes={"/AskQuestion":"msgoptions"},$$WPUtil.DidNotRedirect=function WPUtil$DidNotRedirect(){$$WPComp.SafeToRedirectComponent.canceledRedirect()},$$WPUtil.setActivity=function WPUtil$setActivity(){if(checkActivity&&checkActivity.sessionTimeout&&$$WPUtil.setActivity.msSinceLastActivity()>=checkActivity.sessionTimeout)return document.write(""),void(window.location=makeLink("default.asp"));$$WPUtil.setActivity.__lastActivity=new Date,$$WPUtil.IsNullOrEmpty($$WP.CommunityUtilities.getParentJumpGUID())||parent.postMessage(JSON.stringify({message:"setActivity",externalGUID:$$WP.CommunityUtilities.getParentJumpGUID()}),$$WP.CommunityUtilities.getParentDomain())},$$WPUtil.NotifyMobileOfActivity=function WPUtil$activity$notifyMobile(){window.Android&&window.Android.webViewIsActive?Android.webViewIsActive():window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.webViewIsActive&&window.webkit.messageHandlers.webViewIsActive.postMessage("")},$$WPUtil.checkActivity=function(t){checkActivity()},$$WPUtil.setActivity.msSinceLastActivity=function WPUtil$activity$timePassed(){return new Date-$$WPUtil.setActivity.__lastActivity},$$WPUtil.copyObject=function Utilities$CopyObject(t){if(!t)return null;if(!Array.isArray(t))return $$WPUtil.mergeObjects(t,{},!1,!0);var e,i,n;for(e=[],n=t.length,i=0;i<n;i++)e.push(t[i]);return e},$$WPUtil.mergeObjects=function Utilities$mergeObjects(t,e,i,n){if((Array.isArray(t)||Array.isArray(e))&&$$WP.Debug.logError("mergeObjects cannot be used on arrays"),e=e||{},i&&(e=$$WPUtil.copyObject(e)),!t)return e;var o,l,r;for(l in r=function(t){return t&&"object"==typeof t&&!(t instanceof jQuery)&&!$$WPComp.isComponent(t)&&!Array.isArray(t)&&!(t instanceof Handlebars.SafeString)},t)void 0!==(o=t[l])&&(r(o)?e[l]=$$WPUtil.mergeObjects(t[l],e[l],!1,n):!n&&e[l]||(Array.isArray(o)&&(o=$$WPUtil.copyObject(o)),e[l]=o));return e},$$WP.Utilities.guaranteeExistence=function Utilities$GuaranteeExistence(t,e,i){t=t||$$WP;var n,o=e.split("."),l=o.length-1;for(n=0;n<l;n++)t.hasOwnProperty(o[n])||(t[o[n]]={}),t=t[o[n]];return t.hasOwnProperty(o[n])||(t[o[n]]=arguments.length>2?i:{}),t},$$WPUtil.preventEvent=function Utilities$preventEvent(t){return t.stopPropagation(),t.preventDefault(),!1},$$WPUtil.parseQueryString=function Util$parseQS(t){"&"===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1));var e,i,n,o=t.substr(t.indexOf("?")+1).split("&"),l={};for(n=0;n<o.length;n++)-1===(e=o[n].indexOf("="))&&n>0?l[i]+="&"+o[n]:l[i=o[n].substr(0,e).toLowerCase()]=o[n].substr(e+1);return l},$$WPUtil.queryString=function Utilities$queryString(t){return $$WPUtil.queryString.parsed||($$WPUtil.queryString.parsed=$$WPUtil.parseQueryString(window.location.search)),$$WPUtil.queryString.parsed[t.toLowerCase()]||""},$$WPUtil.removeParamsFromQueryString=function Utilities$removeParamsFromQueryString(t){return $$WPUtil.queryString.parsed||($$WPUtil.queryString.parsed=$$WPUtil.parseQueryString(window.location.search)),"string"==typeof t?delete $$WPUtil.queryString.parsed[t.toLowerCase()]:t.forEach((function(t){delete $$WPUtil.queryString.parsed[t.toLowerCase()]})),Object.keys($$WPUtil.queryString.parsed).map((function(t){return t+"="+$$WPUtil.queryString.parsed[t]})).join("&")},$$WPUtil.verticalScrollBarWidth=function $$WPUtil$verticalScrollBarWidth(){var t,e,i,n;$$WPUtil.verticalScrollBarWidth._cached||(e=(t=$afe.renderTemplate($$WP.Templates.Core.scrollbarwidth)).children(0).get(0),document.body.appendChild(t.get(0)),i=e.offsetWidth,t.css("overflow","scroll"),(n=e.offsetWidth)===i&&(n=t.get(0).clientWidth),t.remove(),$$WPUtil.verticalScrollBarWidth._cached=i-n);return $$WPUtil.verticalScrollBarWidth._cached},$$WPUtil.preventAndroidLongPress=function(t,e,i){navigator.userAgent.indexOf("Android")>=0&&(1!==t.length||e||(e=t,i=""),e&&e.on("contextmenu",i,(function(t){t.preventDefault()})))},$$WPUtil.isBrowserCapableOf=function(t,e){var i;switch(t){case"flexbox":return void 0!==document.body.style.flex;case"input":return i=document.createElement("input"),$afe.jq(i).safeAttr("type",e.type),i.type===e.type;case"touchEvents":return"ontouchstart"in window||window.navigator.msMaxTouchPoints&&window.navigator.msMaxTouchPoints>0;case"canvas":return!!window.HTMLCanvasElement;case"ActiveX":return!!window.ActiveXObject;case"Intl":return"object"==typeof Intl&&"DateTimeFormat"in Intl&&"NumberFormat"in Intl}},$$WPUtil.isValidBrowser=function(){return $$WPUtil.isBrowserCapableOf("canvas")&&!$$WPUtil.isBrowserCapableOf("ActiveX")&&$$WPUtil.isBrowserCapableOf("Intl")},$$WPUtil.addUrlParameter=function(t,e,i){return-1===t.indexOf("?")?t+="?":"&"!==t[t.length-1]&&(t+="&"),t+e+"="+i},$$WPUtil.isNaN=function(t){return isNaN(t)||!t&&0!==t},$$WPUtil.confirmFormSubmission=function(t,e,i,n,o,l,r){return i?$$WPUtil.quickMessageBoxByEnum(e,i,$$WPUtil.confirmFormSubmission.submitForm,[t,n]):$$WPUtil.quickMessageBox(e,l,o,$$WPUtil.confirmFormSubmission.submitForm,[t,n],"",r),!1},$$WPUtil.confirmFormSubmission.submitForm=function(t,e,i){var n;"function"==typeof e&&!1===e(t,i)||i===$$WP.Components.TOOLBARIDENTIFIER+"continue"&&(n=t.onclick,t.onclick=null,$(t).off(),t.click(),t.onclick=n)},$$WPUtil.quickMessageBoxByEnum=function(t,e,i,n,o){var l,r,a=$$WPUtil.quickMessageBoxByEnum.typeEnum;switch(e=e||$$WPUtil.quickMessageBoxByEnum.typeEnum.ContinueGoback){case a.ContinueGoback:l=$$WP.Strings.get("ContinueGobackTitle","Core.Utilities"),r=$$WPUtil.createContinueGoBackButtons();break;case a.DeleteGoback:l=$$WP.Strings.get("DeleteGobackTitle","Core.Utilities"),r=$$WPUtil.createDeleteGoBackButtons();break;case a.YesNo:l=$$WP.Strings.get("YesNoTitle","Core.Utilities"),r=$$WPUtil.createYesNoButtons();break;case a.Ok:l=$$WP.Strings.get("AlertTitle","Core.Utilities"),r=$$WPUtil.createOkButton();break;case a.RemoveGoback:l=$$WP.Strings.get("ContinueGobackTitle","Core.Utilities"),r=$$WPUtil.createRemoveGoBackButtons();break;case a.RestoreGoback:l=$$WP.Strings.get("ContinueGobackTitle","Core.Utilities"),r=$$WPUtil.createRestoreGoBackButtons();break;default:return}return $$WPUtil.quickMessageBox(t,l,r,i,n,o)},$$WPUtil.quickMessageBoxByEnum.typeEnum={ContinueGoback:1,DeleteGoback:2,YesNo:3,Ok:4,RemoveGoback:5,RestoreGoback:6},$$WPUtil.createContinueGoBackButtons=function(){return[new $$WPComp.ComplexObjects.Button($$WP.Strings.get("Continue","Core.Utilities"),null,"completeworkflow","continue"),new $$WPComp.ComplexObjects.Button($$WP.Strings.get("Goback","Core.Utilities"),null,"previousstep","cancel")]},$$WPUtil.createDeleteGoBackButtons=function(){return[new $$WPComp.ComplexObjects.Button($$WP.Strings.get("Delete","Core.Utilities"),null,"inlinedelete","continue"),new $$WPComp.ComplexObjects.Button($$WP.Strings.get("Goback","Core.Utilities"),null,"previousstep","cancel")]},$$WPUtil.createYesNoButtons=function(){return[new $$WPComp.ComplexObjects.Button($$WP.Strings.get("Yes","Core.Utilities"),null,"completeworkflow","continue"),new $$WPComp.ComplexObjects.Button($$WP.Strings.get("No","Core.Utilities"),null,"previousstep","cancel")]},$$WPUtil.createOkButton=function(){return[new $$WPComp.ComplexObjects.Button($$WP.Strings.get("MessageBoxOK","global"),null,"otherbutton","continue")]},$$WPUtil.createRemoveGoBackButtons=function(){return[new $$WPComp.ComplexObjects.Button($$WP.Strings.get("Remove","Core.Utilities"),null,"inlinedelete","continue"),new $$WPComp.ComplexObjects.Button($$WP.Strings.get("Goback","Core.Utilities"),null,"previousstep","cancel")]},$$WPUtil.createRestoreGoBackButtons=function(){return[new $$WPComp.ComplexObjects.Button($$WP.Strings.get("Restore","Core.Utilities"),null,"inlinesave","continue"),new $$WPComp.ComplexObjects.Button($$WP.Strings.get("Goback","Core.Utilities"),null,"previousstep","cancel")]},$$WPUtil.quickMessageBox=function(t,e,i,n,o,l,r){$$WPUtil.IsNullOrEmpty(e)||e===HTMLUnencode(e)||$$WP.Debug.logError("$$WPUtil.quickMessageBox was probably called with an HTML formatted title. The title should be raw text, not HTML");var a,s=$$WP.Strings.getNamespace("Global.Confirm");return a=new $$WPComp.MessageComponent({TitleText:e||s.getStringForTemplate("GenericConfirmTitle"),Message:t,callback:n,CallbackArgs:o,ToolbarButtons:i}),$$WPUtil.quickPopup(a,{Size:i.length<3?$$WPContain.Popup.SizeEnum.SMALL:$$WPContain.Popup.SizeEnum.MEDIUM,Class:l+" sm-autosizedpopup",HasBackButton:r})},$$WPUtil.generateGUID=function(){return $$WPUtil.generateGUID._last=$$WPUtil.generateGUID._last||0,$$WPUtil.generateGUID._last++,$$WPUtil.generateGUID._last},$$WPUtil.generateGUID._last,$$WPUtil.getDomain=function(t){try{return t.protocol+"//"+t.host}catch(t){return null}},$$WPUtil.canWriteCookies=function(){setCookie("testCookie","testValue",!0);var t=""!==getCookie("testCookie",!0);return t&&deleteCookie("testCookie",!0),t},$$WPUtil.canWriteCookiesAsync=function(){return new Promise((function(t,e){"function"==typeof document.requestStorageAccess?($$WPUtil.canWriteCookies()&&t(!0),document.requestStorageAccess().then((function(){t($$WPUtil.canWriteCookies())})).catch((function(){t(!1)}))):t($$WPUtil.canWriteCookies())}))},$$WPUtil.cssValueToPixels=function(t){return t.indexOf("rem")>-1?($$WPUtil.cssValueToPixels.emSize||($$WPUtil.cssValueToPixels.emSize=parseFloat($afe.select("body").css("font-size"))),Math.round(parseFloat(t,10)*$$WPUtil.cssValueToPixels.emSize)):t.indexOf("px")>-1?parseFloat(t,10):void(isNaN(parseFloat(t,10))||$$WP.Debug.log("CSS value cannot be converted to pixels: "+t))},$$WPUtil.instantiateComponent=function(t,e,i){var n={};return n.SupportedComponents=t,n.$parent=$afe.select("#"+e),i&&(n.ComponentProperties=i),new $$WPContain.HTMLTemplateContainer(n)},$$WPUtil.getPopupParent=function(t){return t.parents("#main, #sidebar, #lightbox, .Popup, .direct_message, .menudetailstable.leftmenu .leftcolumn, .popupOwner, #listHolder")},$$WPUtil.positionElementNear=function(t,e){var i,n,o,l,r,a,s,$,u,c,d;return t.removeClass("onRight onLeft onBottom onTop"),e.removeClass("onRight onLeft onBottom onTop"),n=(i=$$WPUtil.getPopupParent(e)).boxModel(!1),u=i[0].offsetWidth-i[0].clientWidth,c=0,"main"!==i.safeAttr("id")&&"sidebar"!==i.safeAttr("id")||(n.top+=$afe.select("#header").outerHeight(),(d=$afe.select("#footer").outerHeight(!1))>0&&(n.height-=d,n.bottom=n.top+n.height)),l=t.boxModel(!1),s=null,a=null,400<n.width?e.outerWidth(400):(e.outerWidth(n.width-16),c=n.left+8),o=e.boxModel(!1),(r={toRight:n.right-l.right-u,toLeft:l.left-n.left,above:l.top-n.top,below:n.bottom-l.bottom}).toRight>o.width?(t.addClass("onRight"),e.addClass("onRight"),s=l.right+c):r.above>o.height?(t.addClass("onTop"),e.addClass("onTop"),a=l.top-o.height,$=!0):r.toLeft>o.width?(t.addClass("onLeft"),e.addClass("onLeft"),s=l.left-o.width+c):r.below>o.height&&(t.addClass("onBottom"),e.addClass("onBottom"),a=l.bottom),null!==s?l.bottom-o.height>n.top?a=l.bottom-o.height+2:l.top+o.height<n.bottom?(a=l.top-2,e.addClass("infoPopupAlignTop")):((a=l.top+l.height/2-o.height/2)<n.top||a>n.bottom)&&(a=n.top,$$WP.Debug.log("Popup cannot be fit to screen")):null!==a?l.left+o.width+u<n.right?s=l.left-2+c:l.right-o.width>n.left?s=l.right-o.width+2+c:(s=l.left+l.width/2-o.width/2+c,n.width<o.width+s+u&&(s=n.left+8,e.outerWidth(n.width-16-u),$&&(o=e.boxModel(!1),a=l.top-o.height)),(s<n.left||s>n.right)&&(s=n.left+8,e.outerWidth(n.width-16-u),$&&(o=e.boxModel(!1),a=l.top-o.height),$$WP.Debug.log("Popup cannot be fit to screen"))):($$WP.Debug.log("Popup cannot be fit to screen"),t.addClass("onRight"),a=l.top,s=l.right),{top:a,left:s}},$$WPUtil.positionElementNearRTL=function(t,e){var i,n,o,l,r,a,s,$,u;return t.removeClass("onRight onLeft onBottom onTop"),e.removeClass("onRight onLeft onBottom onTop"),n=(i=e.parents("#main, #sidebar, #lightbox, .Popup, .direct_message, .menudetailstable.leftmenu .leftcolumn, .popupOwner")).boxModel(!1),"main"!==i.safeAttr("id")&&"sidebar"!==i.safeAttr("id")||(n.top+=$afe.select("#header").outerHeight(),(u=$afe.select("#footer").outerHeight(!1))>0&&(n.height-=u,n.bottom=n.top+n.height)),l=t.boxModel(!1),r={toRight:n.right-l.right,toLeft:l.left-n.left,above:l.top-n.top,below:n.bottom-l.bottom},s=null,a=null,400<n.width?e.outerWidth(400):e.outerWidth(n.width),o=e.boxModel(!1),r.toLeft>o.width?(t.addClass("onRight"),e.addClass("onRight"),s=l.right):r.below>o.height?(t.addClass("onBottom"),e.addClass("onBottom"),a=l.bottom):r.toRight>o.width?(t.addClass("onLeft"),e.addClass("onLeft"),s=l.left-o.width):r.above>o.height&&(t.addClass("onTop"),e.addClass("onTop"),a=l.top-o.height,$=!0),null!==s?l.bottom-o.height>n.top?a=l.bottom-o.height+2:l.top+o.height<n.bottom?(a=l.top-2,e.addClass("infoPopupAlignTop")):((a=l.top+l.height/2-o.height/2)<n.top||a>n.bottom)&&(a=n.top,$$WP.Debug.log("Popup cannot be fit to screen")):null!==a?l.left+o.width<n.right?s=l.right-o.width+2:l.right-o.width>n.left?s=l.left-2:o.width===n.width?(e.outerWidth(n.width-16),s=l.left+l.right-n.right+8):(s=l.left+l.width/2-o.width/2,o.left<n.left&&(s=l.left+l.right-n.right+8,e.width(n.width-32),$&&(o=e.boxModel(!1),a=l.top-o.height)),(s<l.right-n.right+l.left||s>n.right+l.right+l.left)&&(s=l.left+l.right-n.width-n.left,$$WP.Debug.log("Popup cannot be fit to screen"))):($$WP.Debug.log("Popup cannot be fit to screen"),t.addClass("onRight"),a=l.top,s=l.right),{top:a,left:s}},$$WPUtil.handlePopupInstructions=function(t,e){var i=void 0;"focus"===t.type||"mouseenter"===t.type||"click"===t.type?i=!0:("blur"===t.type||"mouseleave"===t.type||"keydown"===t.type&&27===t.keyCode)&&(i=!1),void 0!==i&&($$WPUtil.togglePopupInstructions($afe.jq(t.target),i,e),t.stopPropagation())},$$WPUtil.handlePopupInstructionsKeydown=function(t,e){"keydown"===t.type&&27===t.keyCode&&$afe.select("#main").find(".popupiconcontainer .popupinstructionsicon.showPopup").each((function(){var t=$afe.jq(this);$$WPUtil.togglePopupInstructions(t,!1,e)}))},$$WPUtil.togglePopupInstructions=function(t,e,i){var n,o,l,r,a,s;i=i||"Global",t.hasClass("popupiconcontainer")||(t=t.parents(".popupiconcontainer").first()),0!==t.length&&(l=(n=t.find(".popupInstructions")).siblings(".popupinstructionsicon"),o=n.parents("#main, #sidebar, .Popup, .popupOwner"),e?(r="PopupHelpIconAltFull",l.find("img").data("altnode")&&(r=l.find("img").data("altnode")+"Full"),l.find("img").safeAttr("alt",$$WP.Strings.get(r,i)),l.find("svg").data("altnode")&&(r=l.find("svg").data("altnode")+"Full"),l.find("svg").safeAttr("aria-label",$$WP.Strings.get(r,i)),n.removeClass("hidden isblur"),l.addClass("showPopup"),o.addClass("allowOverflow"),"1"!==l.safeAttr("data-ispositioned")&&(s=l.offset(),"rtl"==$afe.select("html").safeAttr("dir")?((a=$$WPUtil.positionElementNearRTL(l,n)).top-=s.top,a.left-=s.left,n.css({right:a.left+"px",top:a.top+"px"})):((a=$$WPUtil.positionElementNear(l,n)).top-=s.top,a.left-=s.left,n.css({left:a.left+"px",top:a.top+"px"})),n.safeAttr("data-ispositioned","1"))):(n.addClass("isblur"),window.setTimeout((function(t,e,n){var o=e.find("img").data("altnode")||"PopupHelpIconAlt",l=e.find("svg").data("altnode")||"PopupHelpIconAlt";n.hasClass("isblur")&&(t.removeClass("allowOverflow"),n.removeClass("isblur"),n.addClass("hidden"),e.removeClass("showPopup"),e.find("img").safeAttr("alt",$$WP.Strings.get(o,i)),e.find("svg").safeAttr("aria-label",$$WP.Strings.get(l,i)))}),100,o,l,n)))},$$WPUtil.handlePopupEndAnchor=function(t,e){var i,n,o,l;e=e||"Global",(i=$afe.jq(t.target)).hasClass("popupiconcontainer")?$popupiconcontainer=i:$popupiconcontainer=i.parents(".popupiconcontainer").first(),0!==$popupiconcontainer.length&&(l=(n=$popupiconcontainer.find(".popupInstructions")).siblings(".popupinstructionsicon"),o=n.parents("#main, #sidebar, .Popup"),"keyup"===t.type&&"Tab"===t.key&&!1===t.shiftKey?(n.addClass("isblur"),window.setTimeout((function(t,i,n){var o=i.find("img").data("altnode")||"PopupHelpIconAlt";n.hasClass("isblur")&&(t.removeClass("allowOverflow"),n.removeClass("isblur"),n.addClass("hidden"),i.removeClass("showPopup"),i.find("img").safeAttr("alt",$$WP.Strings.get(o,e)))}),100,o,l,n),WP.DOM.Search.getNextFocusable(t.target).focus()):"keyup"===t.type&&"Tab"===t.key&&!0===t.shiftKey&&WP.DOM.Search.getPreviousFocusable($popupiconcontainer[0].parentNode).focus())},$$WPUtil.printHtmlClass=function(t,e){var i;i=$afe.select("."+t),$$WPUtil.printElement(i)},$$WPUtil.printImage=function(t){var e=dangerou$.parseHtml("<img src='"+t+"' style='height: 100%' />");$$WPUtil.printElement(e)},$$WPUtil.printElement=function(t){var e,i;i=openWindow("","Print","resizable"),e=$afe.jq(t).get(0).outerHTML,i.focus(),dangerou$.setHtml(i.document.body,e),window.setTimeout((function(t){t.print(),t.close()}),10,i)},$$WPUtil.postify=function(t){var e={},buildResult=function(t,i){for(var n in t){var o=isFinite(n)?(""!=i?i:"")+"["+n+"]":(""!=i?i+".":"")+n;switch(typeof t[n]){case"number":case"string":case"boolean":e[o]=t[n];break;case"object":buildResult(t[n],""!=o?o:n)}}};return buildResult(t,""),e},$$WPUtil.postForm=function(t,e,i){var n=$afe.jq(document.createElement("form"));if(n.safeAttr("method","post"),n.safeAttr("action",t),n.safeAttr("target",i),e)for(var o=0;o<e.length;o++){var l=e[o],r=$afe.jq(document.createElement("input"));r.safeAttr("type","hidden"),r.safeAttr("name",l.Name),r.safeAttr("value",l.Value),n.safeAppend(r)}$afe.select("body").safeAppend(n),n.submit(),$afe.select("body").remove(n)},$$WPUtil.generateRandomGUID=function generateRandomGUID(){var t,e,i="";for(t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=0;e<16;e++)i+=t.charAt(Math.floor(Math.random()*t.length));return i},$$WPUtil.highlightNodeText=function(t,e){var i,n,o,l,r;if(null!==t&&null!==(i=t.childNodes)&&0!==i.length)try{for(n=new RegExp("("+e+")","gi"),l=0;l<i.length;l+=1)null!==(o=i[l])&&(3===o.nodeType?n.test(o.nodeValue)&&(r=document.createElement("span"),dangerou$.setHtml(r,HTMLEncode(o.nodeValue).replace(n,'<span class="hilite">$1</span>')),t.insertBefore(r,o),t.removeChild(o)):1===o.nodeType&&$$WPUtil.highlightNodeText(o,e))}catch(t){}},$$WPUtil.createAriaLabel=function(t,e){var i=$afe.select("#"+t),n=$afe.select("#arialabels");0===i.length&&(0===n.length&&(n=$afe.jq(document.body).safeAppend($$WP.SimpleTemplates.Div({id:"arialabels"}))),i=$$WP.SimpleTemplates.Span({class:"clearlabel",id:t},e),n.safeAppend(i))},$$WPUtil.addPopupListener=function(t,e){null==t&&(t=$afe.select("#main")),document.addEventListener("keydown",(function(t){$$WPUtil.handlePopupInstructionsKeydown(t,e)})),t.find(".popupiconcontainer").each((function(){var t=$afe.jq(this);$$WPUtil.addSinglePopupListener(t,e)}))},$$WPUtil.AddPopupListener=$$WPUtil.addPopupListener,$$WPUtil.addSinglePopupListener=function(t,e,i){t.off().hover($$WPUtil.handlePopupInstructions),t.find(".popupinstructionsicon").off().on("blur focus keydown click",(function(t){$$WPUtil.handlePopupInstructions(t,e)})),t.find(".popupInstructions").off().on("blur focus keydown click",(function(t){$$WPUtil.handlePopupInstructions(t,e)})),i&&document.addEventListener("keydown",(function(t){$$WPUtil.handlePopupInstructionsKeydown(t,e)}))},$$WPUtil.removePopupListener=function(t){null==t&&(t=$afe.jq("#main"));var e=t.find(".popupiconcontainer");e.off(),e.find(".popupinstructionsicon").off(),e.find(".popupInstructions").off()},$$WPUtil.isValidPhoneNumber=function(t){return new RegExp(/^\+?\d{6,13}((x|X)?\d{4})?$/).test(t)},$$WPUtil.PrintAndAuditNET=function(){window.print(),$.ajax({url:makeLink("Home/AuditPrint"),type:"POST",data:{title:document.title}})},$$WPUtil.clearAlertCache=function(){},$$WPUtil.logoutAndShowError=function(t){$$WP.Utilities.TryRedirect(makeLink("Home/Logout?error="+t))},$$WPUtil.regExEscapeString=function WP$Utilities$regExEscapeString(t){var e,i;if("string"!=typeof t)return"";for(e="",i=0;i<t.length;i++)e+="\\u"+("0000"+t.charCodeAt(i).toString(16)).substr(-4);return e},$$WPUtil.IsSupportedChars=function WP$Utilities$IsSupportedChars(t){return new RegExp(/^[\x09\x0A\x0D\x20-\x7E\xA0-\xFF\u0152\u0153\u0160\u0161\u0178\u017D\u017E\u0192\u02C6\u02DC\u2013\u2014\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2026\u2030\u2039\u203A\u20AC\u2122]*$/).test(t)},$$WPUtil.RemoveUnsupportedChars=function WP$Utilities$RemoveUnsupportedChars(t){return t.split("").filter($$WPUtil.IsSupportedChars).join("")},$$WPUtil.IsH2GActivity=function WP$Utilities$IsH2GActivity(t){return!!$$WPUtil.IsVisitsListUrl(t)||(!!$$WPUtil.IsTestResultsUrl(t)||(!!$$WPUtil.IsMedsListUrl(t)||(!!$$WPUtil.IsAllergiesListUrl(t)||!!$$WPUtil.IsHealthIssuesUrl(t))))},$$WPUtil.IsVisitsListUrl=function WP$Utilities$IsVisitsListUrl(t){return-1!==(t=t.toLowerCase()).indexOf("visits/visitslist")||-1!==t.indexOf("mode=appointments")||-1!==t.indexOf("mode=visits")||-1!==t.indexOf("mode=recentappts")},$$WPUtil.IsTestResultsUrl=function WP$Utilities$IsTestResultsUrl(t){return-1!==(t=t.toLowerCase()).indexOf("clinical/testresults")||-1!==t.indexOf("mode=labs")},$$WPUtil.IsMedsListUrl=function WP$Utilities$IsMedsListUrl(t){return-1!==(t=t.toLowerCase()).indexOf("clinical/medications/list")||-1!==t.indexOf("mode=medslist")},$$WPUtil.IsAllergiesListUrl=function WP$Utilities$IsAllergiesListUrl(t){return-1!==(t=t.toLowerCase()).indexOf("clinical/allergies")||-1!==t.indexOf("mode=allergies")},$$WPUtil.IsHealthIssuesUrl=function WP$Utilities$IsHealthIssuesUrl(t){return-1!==(t=t.toLowerCase()).indexOf("clinical/healthissues")||-1!==t.indexOf("mode=hlthissues")},$$WPUtil.IsHealthSummaryUrl=function WP$Utilities$IsHealthSummaryUrl(t){return-1!==(t=t.toLowerCase()).indexOf("mode=snapshot")},$$WPUtil.defaultAjaxErrorHandler=function WP$Utilities$defaultAjaxErrorHandler(t,e,i,n){var o,l,r,a;if(!0!==$$WP.IsEpicAjaxErrorHandlerDisabled)if(i.suppressEpicDefaultAjaxErrorHandler||i.hasOwnErrorHandler||200===e.status)$$WP.Debug.IsEnabled&&$$WP.Debug.logError("Ajax call to "+i.url+" received an error response and has the default error handler suppressed.",!0);else if("abort"===e.statusText||"canceled"===e.statusText||function userAborted(t){return 0===t.status&&!t.getAllResponseHeaders()}(e))$$WP.Debug.log(e.statusText+" ajax call to "+i.url+".",!0);else if(!i.hasOwnErrorHandler){if(WP.Events.cancelBeforeUnload(),!$$WP.Debug.IsEnabled&&($afe.select("#content").children().addClass("hidden"),$$WP.Utilities.UI.IsMobile))return void(window.location.href=makeLink("500.aspx"));if(0!==$afe.select(".AjaxErrorHandler.Popup").length)return;a=$$WPContain.Popup.SizeEnum.SMALL,$$WP.Debug.IsEnabled&&void 0!==e.responseText?(l=(r=(r=e.responseText).substring(r.indexOf("<body"),r.indexOf("</body"))).substring(r.indexOf(">")+1,r.length),a=$$WPContain.Popup.SizeEnum.LARGE):l=$$WP.Strings.get("DefaultAjaxErrorHandlerMessage","global"),o=new $$WPComp.MessageComponent({TitleText:$$WP.Strings.get("DefaultAjaxErrorHandlerTitle","global"),Message:l,ToolbarButtons:[new $$WPComp.ComplexObjects.Button($$WP.Strings.get("ClosePopupButton","Core.Utilities"),null,"cancelworkflow")]}),$$WPUtil.quickPopup(o,{Size:a,positioningFunction:$$WPContain.Positions.InsideNearTop,HasBackButton:!1,Class:"AjaxErrorHandler"}),$afe.select("#content").removeAttr("id"),$afe.select(".messageComponent").find("#content").removeAttr("id")}},$$WPUtil.isLocalStorageAvailable=function WP$Utilities$isLocalStorageAvailable(){var t="test";try{window.localStorage.setItem(t,t),window.localStorage.removeItem(t)}catch(t){return!1}return!0},$$WPUtil.UseHTML5InputControls=function $$WPUtil$UseHTML5InputControls(){$$WP.Utilities.isBrowserCapableOf("input",{type:"number"})&&$afe.select("input[data-inputtype='number']").each((function(){this.type="number"})),$$WP.Utilities.isBrowserCapableOf("input",{type:"phone"})&&$afe.select("input[data-inputtype='phone']").each((function(){this.type="phone"})),$$WP.Utilities.isBrowserCapableOf("input",{type:"email"})&&$afe.select("input[data-inputtype='email']").each((function(){this.type="email"})),$$WP.Utilities.isBrowserCapableOf("input",{type:"date"})&&$afe.select("input[data-inputtype='date']").each((function(){this.type="date"})),$$WP.Utilities.isBrowserCapableOf("input",{type:"time"})&&$afe.select("input[data-inputtype='time']").each((function(){this.type="time"}))},$$WPUtil.FixScrollingForIOS=function $$WPUtil$FixScrollingForIOS(t){t.on("blur","input, textarea",(function(){window.scrollBy(0,0)}))},$$WPUtil.ShowAjaxSpinner=function $$WPUtil$ShowAjaxSpinner(t,e){if(null!==t){if(t.length>1&&$$WP.Debug.logError("Multiple ajax spinners passed to ShowAjaxSpinner"),!0!==e&&t.removeClass("hidden"),!t.hasClass("hidden")){var i=t.contents();t.empty(),t.safeAppend(i)}!0!==e&&setTimeout((function(t){$$WPUtil.ShowAjaxSpinner(t,!0)}),1500,t)}},$$WPUtil.HideAjaxSpinner=function $$WPUtil$HideAjaxSpinner(t){t.addClass("hidden")},$$WPUtil.GetRawString=function(t){return t&&!$$WPUtil.IsNullOrEmpty(t.string)?t.string:"string"==typeof t?t:""},$$WPUtil.GetQueryStringParameterValue=function $$WPUtil$GetQueryStringParameterValue(t,e){var i;return null===(i=new RegExp("[?&]"+e+"=([^&#]*)").exec(t))?"":decodeURIComponent(i[1])},$$WPUtil.GetTextareaBucketClass=function $WPUtil$GetTextareaBucketClass(t){if(t<1)return"";var e=t-1-(t-1)%25+25;return e>300&&(e="unlimited"),"textbucket"+e+"chars"},$$WPUtil.AddSingleLineTextareaListeners=function $WPUtil$AddSingleLineTextareaListeners(){$afe.select(".singleLineFreeText").each((function(){this.addEventListener("keydown",(function(t){13===(t.which||t.keyCode)&&t.preventDefault()})),this.addEventListener("input",(function(t){t.target.value=t.target.value.replace(/\n/g,"")}))}))},$$WPUtil.SetCrossDomainData=function $WPUtil$SetCrossDomainData(t){window.parent.postMessage({method:"setValues",data:t},$$WP.ParentDomain)},$$WPUtil.DeleteCrossDomainData=function $WPUtil$DeleteCrossDomainData(t){window.parent.postMessage({method:"deleteCookieValue",key:t},$$WP.ParentDomain)},$$WPUtil.GetCrossDomainData=function $WPUtil$GetCrossDomainData(t){return new Promise((function(e){var i=new MessageChannel;i.port1.onmessage=function(t){e(t.data)},window.parent.postMessage({method:"getValue",key:t},$$WP.ParentDomain,[i.port2])}))},$$WPUtil.GetIframeWidth=function $WPUtil$GetIframeWidth(){return new Promise((function(t){var e=new MessageChannel;e.port1.onmessage=function(e){t(e.data)},window.parent.postMessage({method:"getWidth",id:$$WP.WidgetID},$$WP.ParentDomain,[e.port2])}))},$$WPUtil.SetCrossDomainIframeHeight=function $WPUtil$SetCrossDomainIframeHeight(t){window.parent.postMessage({method:"setHeight",height:t,id:$$WP.WidgetID},$$WP.ParentDomain)},$$WPUtil.SetCrossDomainIframeMinHeight=function $WPUtil$SetCrossDomainIframeMinHeight(t){window.parent.postMessage({method:"setMinHeight",height:t,id:$$WP.WidgetID},$$WP.ParentDomain)},$$WPUtil.ScrollTopOfTheIframeCrossDomain=function $WPUtil$ScrollTopOfTheIframeCrossDomain(){window.parent.postMessage({method:"scrollTopOfTheIframe",id:$$WP.WidgetID},$$WP.ParentDomain)},$$WPUtil.RefreshHeader=function $WPUtil$RefreshHeader(){var refreshPage=function(){alert($$WP.Strings.get("WidgetRefreshAlert","Global"))||window.location.reload()};$$WP.WidgetMode&&$.ajax({url:makeLink("Widget/RefreshHeader"),type:"GET",success:function(t){t.headerValue?$$WP._WidgetToken=t.headerValue:refreshPage()},error:refreshPage})},$$WPUtil.GetPageNonce=function $WPUtil$GetPageNonce(){var t=document.getElementById("cspScripts");return t?t.nonce||t.getAttribute("nonce"):""},$$WPUtil.LogTabClick=function $WPUtil$LogTabClick(t,e){!t||e<=0||getCSRFTokenAsQS((function(){$.ajax({url:makeLink("Home/LogTabClick"),type:"POST",data:{idnId:t,count:e}})}))},$$WPUtil.SendBeacon=function $WPUtil$SendBeacon(t,e,i,n){return i=void 0===i||i,void 0===n&&"string"!=typeof e&&i?($$WP.Debug.logError("contentType must be specified when calling SendBeacon with data that is not a string."),!1):(n=void 0!==n?n:"text/plain;charset=UTF-8",navigator.sendBeacon?navigator.sendBeacon(t,e):!!i&&($.ajax({url:t,method:"POST",data:e,contentType:n}),!0))};;
/*! Copyright (c) Epic Systems Corporation 2012-2019 */
$afe.onDocumentReady((function PageStartup$ready(){var a=$afe.select("body");$$WP.Utilities.UI.IsStandaloneOpenScheduling||$$WP.Utilities.UI.IsEmbeddedOpenSchedulingWidget||a.hasClass("md_landingpage_loadlandingpagedecisiontrees")||a.hasClass("md_selftriage_load")||a.hasClass("md_secondaryvalidation_index")||a.hasClass("md_react_index")||a.hasClass("md_react_host")||0!=$afe.select("body > .ajaxspinner").length||($afe.select("#main .ajaxspinner").last().remove().safeAppendTo("body"),$afe.jq(document).ajaxStart((function PageStartup$ajaxStart(){$$WP.Utilities.UI.SuppressAjaxSpinner||$$WPUtil.ShowAjaxSpinner($afe.select("body > .ajaxspinner"))})),$afe.jq(document).ajaxStop((function PageStartup$ajaxStop(){$$WP.Utilities.UI.SuppressAjaxSpinner||$$WPUtil.HideAjaxSpinner($afe.select("body > .ajaxspinner"))})))}));;
var Epic=Epic||{};Epic.PatientAccess=Epic.PatientAccess||{};var $$WP=$$WP||Epic.PatientAccess;$$WP.Settings=$$WP.Settings||{},$$WP.Settings.ScriptPath="Scripts/";var console=console||{error:function WP$dud(t,e){},log:function WP$dud(t,e){},warn:function WP$dud(t,e){}};!function WP$Core$InheritanceModel$definition(){var t=function WP$Core$Inheritence$isInstance(t){var e;if("object"!==$.type(t))return!1;if(t instanceof this)return!0;if("function"==typeof t._constructor&&Array.isArray(t._constructors)){if(t._constructor===this)return!0;for(e=0;e<t._constructors.length;e++)if(t._constructors[e]===this)return!0}return!1};Function.prototype.extend=function(e,o){var r,n,i,s,c,p,a,u;function type(t){return"[object AsyncFunction]"==={}.toString.call(t)?"function":$.type(t)}if("function"==typeof e&&"object"===type(e.prototype)){if(i=(n=e)._className,a=o,"function"!=typeof n||"object"!==type(n.prototype))return void $$WP.Debug.logError("Provided parent class was not a valid class. Cannot perform inheritance.")}else{for(n=o||$$WP,s=e.split("."),i=e.replace(/\./g,"$"),c=0;c<s.length;c++){if("object"!==type(n)){n=null;break}n=n[s[c]]}if("function"!=typeof n||"object"!==type(n.prototype))return void $$WP.Debug.logError("Did not find a class named "+e+" in the given root namespace. Cannot perform inheritance.")}for(r in this._inheritedMethods={},this.prototype[i]=n,this._inheritedMethods[i]=!0,this._className=a,p={_constructor:!0,_constructors:!0},n.prototype)"string"!=typeof r||p[r]||(u=n.prototype[r],"function"==typeof n.prototype[r]&&(n._inheritedMethods[r]?(this.prototype[r]=u,this._inheritedMethods[r]=!0):(this.prototype[i+"$"+r]=u,this._inheritedMethods[i+"$"+r]=!0)),void 0===this.prototype[r]&&("object"!==type(u)||u instanceof jQuery||Array.isArray(u)?this.prototype[r]=u:this.prototype[r]=$$WP.Utilities.copyObject(u)));this.prototype._constructor=this,this.prototype._constructors=$$WP.Utilities.copyObject(n.prototype._constructors),this.prototype._constructors.push(n),this.isInstance=t},$$WP.BaseObject=function WP$BaseObject(){},$$WP.BaseObject._className="WP$BaseObject",$$WP.BaseObject._inheritedMethods={},$$WP.BaseObject.prototype={_constructor:$$WP.BaseObject,_constructors:[]}}();;
window.onerror=function wp$globalErrHandler(e,t,n,s,o){var r;if(r=e?'"'+e+'"':"unhandled exception",o&&o.stack)try{WP&&WP.DOM&&WP.DOM.Browser.isIE||WP.DOM.Browser.isLegacyEdge?(console.groupCollapsed("Stack Trace for "+r),console.error(o.stack),console.groupEnd()):(console.groupCollapsed("Stack Trace for "+r,""),console.error(o.message),console.groupEnd()),$$WP.Debug._errorCount++,$$WP.Debug._updateErrorCountDisplay()}catch(e){}},$$WP=$$WP||{},$$WP.Utilities=$$WP.Utilities||{},$$WP.Utilities.UI=$$WP.Utilities.UI||{},$$WP.Utilities.UI.OnUIFrameworkLoaded&&$$WP.Utilities.UI.OnUIFrameworkLoaded((function(){!$$WP.Utilities.UI.IsMobile&&$$WP.Debug.CheckForStringResources&&$.ajax({url:makeLink("/Tests/CheckStringResources"),dataType:"json",global:!1,error:function(){$$WP.Debug.log("Debug: Couldn't check for missing string resources. /Tests/CheckStringResources is not available.")},success:function(e){var t,n,s="";if(!e.IsSuccess){if(s+='<div id="missingStringsWarning">',s+='<p>Incorrect strings detected in .resx files!!! <a href="#" data-function="dismiss">[X]</a></p>',s+='<p><a href="#" data-function="toggleDetails">[+/- details]</a></p>',s+='<div data-contents="details" class="jqHidden">',e.MissingStrings&&e.MissingStrings.length>0)for(s+="~ MISSING ~<br/>",t=0;t<e.MissingStrings.length;t++)s+=e.MissingStrings[t]+"<br/>";if(e.ModifiedStrings&&e.ModifiedStrings.length>0)for(s+="~ MODIFIED ~<br/>",t=0;t<e.ModifiedStrings.length;t++)s+=e.ModifiedStrings[t]+"<br/>";if(e.ExtraStrings&&e.ExtraStrings.length>0)for(s+="~ UNUSED ~<br/>",t=0;t<e.ExtraStrings.length;t++)s+=e.ExtraStrings[t]+"<br/>";s+="</div>",s+="</div>",(n=dangerou$.parseHtml(s)).on("click",'[data-function="toggleDetails"]',(function(e){e.preventDefault(),e.stopPropagation(),n.find('[data-contents="details"]').toggle()})),n.on("click",'[data-function="dismiss"]',(function(e){e.preventDefault(),e.stopPropagation(),n.remove()})),$afe.select("body").safeAppend(n)}}})})),$$WP=$$WP||{},$$WP.Debug=$$WP.Debug||{},$$WP.Debug.UI=$$WP.Debug.UI||{},$$WP.Debug.UnitTest=$$WP.Debug.UnitTest||{},$$WP.Debug.UnitTest.tests=$$WP.Debug.UnitTest.tests||[],$$WP.Debug._failedAssertions=0,$$WP.Debug._assertions=0,$$WP.Debug._errorCount=0,$$WP.Debug._$errorCountDisplay=null,$$WP.Debug.log=function WP$Debug$lgMsg(e,t){var n;if(e=e||"",$$WP.Debug.IsEnabled)try{n=new Error(e),t&&console.trace?(console.groupCollapsed($$WP.Debug.messagePrefix+e),console.trace(),console.groupEnd()):t&&"stack"in n?(console.groupCollapsed($$WP.Debug.messagePrefix+e),console.log(n.stack),console.groupEnd()):console.log($$WP.Debug.messagePrefix+e)}catch(e){}},$$WP.Debug.logError=function WP$Debug$lgErr(e,t){if($$WP.Debug.IsEnabled){var n,s;if(e=e||"","boolean"!=typeof t&&(t=!0),t){try{WP&&WP.DOM&&WP.DOM.Browser.isIE||WP.DOM.Browser.isLegacyEdge?(console.groupCollapsed($$WP.Debug.messagePrefix+e),console.trace(),console.groupEnd()):console.error($$WP.Debug.messagePrefix+e,""),s=!0}catch(t){try{(n=new Error(e)).stack.length>0&&(console.groupCollapsed($$WP.Debug.messagePrefix+e),console.error(n.stack,""),console.groupEnd(),s=!0)}catch(e){}}if(!s)try{console.error($$WP.Debug.messagePrefix+e,"")}catch(e){}}else try{console.error($$WP.Debug.messagePrefix+e,"")}catch(e){}$$WP.Debug._errorCount++,$$WP.Debug._updateErrorCountDisplay()}},$$WP.Debug._updateErrorCountDisplay=function WP$Debug$_updateErrorCountDisplay(){$$WP.Debug.IsEnabled&&(null===$$WP.Debug._$errorCountDisplay&&($$WP.Debug._$errorCountDisplay=$afe.jq(document.createElement("div")),$$WP.Debug._$errorCountDisplay.css({position:"absolute","background-color":"#b60000",color:"white","font-weight":"bold",width:"auto",padding:"1px","margin-left":"2px","z-index":"100"}),$afe.select("#header").safePrepend($$WP.Debug._$errorCountDisplay)),$$WP.Debug._$errorCountDisplay.empty(),$$WP.Debug._$errorCountDisplay.text("Errors in console: "+$$WP.Debug._errorCount))},$$WP.Debug.ShowNonProdBanner=function $$WP$Debug$ShowNonProdBanner(){if("true"!==sessionStorage.HideNonProdBanner){var e,t="";t+='<div id="nonProdBanner">',t+="<strong><span>"+$$WP.Strings.get("NonProdErrorMessage","global")+'&nbsp;<a href="#" data-function="dismiss" title="'+$$WP.Strings.get("NonProdErrorMessageDismissTitle","global")+'">[X]</a></span></strong>',t+="</div>",(e=dangerou$.parseHtml(t)).on("click",'[data-function="dismiss"]',(function(t){sessionStorage.setItem("HideNonProdBanner","true"),t.preventDefault(),t.stopPropagation(),$$WP.Debug.RemoveBanner(e)})),$$WP.Debug.AddBanner(e)}},$$WP.Debug.ShowAdminElevationBanner=function $$WP$Debug$ShowAdminElevationBanner(){var e,t,n,s;e=$$WP.Strings.get("AdminBannerText","global"),t=$$WP.Strings.get("AdminBannerAction","global"),n='<div class="adminElevationBanner" id="adminElevationBanner">',n+="<strong><span>"+e+'&nbsp;[<a href="#"  data-function="endsession" ',n+='title="'+$$WP.Strings.get("AdminBannerActionTitle","global")+'">'+t+"</a>]</span></strong ></div >",(s=dangerou$.parseHtml(n)).on("click",'[data-function="endsession"]',$$WP.Debug.PromptToEndElevatedSession),$$WP.Debug.AddBanner(s)},$$WP.Debug.PromptToEndElevatedSession=function $$WP$Debug$PromptToEndElevatedSession(){var e,t;e={ToolbarButtons:[{Text:$$WP.Strings.get("AdminPopupConfirmButtonText","global"),Class:"cancelworkflow"},{Text:$$WP.Strings.get("AdminPopupCancelButtonText","gloal"),Class:"neutral"}],TitleText:$$WP.Strings.get("AdminPopupTitleText","global"),Html:$$WP.Strings.get("AdminPopupMessageText","global"),IsClosable:!0,callback:function(e){e&&($$WP.Debug.ClearClipboard(),this.dispose(!0),window.location.href=makeLink("/Authentication/ServerAdmin/ClearElevation"))}},t=new $$WPComp.ConfirmComponent(e,{Size:$$WPContain.Popup.SizeEnum.SMALL}),$$WPUtil.quickPopup(t)},$$WP.Debug.ClearClipboard=function $$WP$Debug$ClearClipboard(){var e;e=dangerou$.parseHtml('<input id="clearClipboard" type="text" id="clearText" value=" " />'),$afe.select("body").safePrepend(e),e.select(),document.execCommand("copy"),e.remove()},$$WP.Debug.AddBanner=function $$WP$Debug$AddBanner(e){$$WP.Debug.CreateBannerContainer(),$afe.select("#sitebanner").safePrepend(e),$$WP.Debug.UpdateTopMarginForBanners(),setTimeout((function(){$$WP.Utilities.UI._CalculateHeaderHeight()}),100)},$$WP.Debug.RemoveBanner=function $$WP$Debug$RemoveBanner(e){$afe.select("#sitebanner").safeAttr("role",""),e.remove(),$afe.select("#sitebanner").safeAttr("role","alert"),$$WP.Debug.UpdateTopMarginForBanners()},$$WP.Debug.UpdateTopMarginForBanners=function $$WP$Debug$UpdateTopMarginForBanners(){var e=$afe.select("#header"),t=$afe.select(".titlebar"),n=$afe.select(".Popup"),s=$afe.select("#sitebanner").height();n.length&&n.css("margin-top",s),e.length&&e.css("top",s),$afe.jq(document).width()<1300&&!n?t.length&&t.css("margin-top",s):t.length&&t.css("margin-top",0)},$$WP.Debug.CreateBannerContainer=function $WP$Debug$CreateBannerContainer(){if(0===$afe.select("#sitebanner").length){var e;'<div id="sitebanner" class="sitebanners" role="alert">',"</div>",e=dangerou$.parseHtml('<div id="sitebanner" class="sitebanners" role="alert"></div>'),$afe.select("body").safePrepend(e)}},$$WP.Debug._synchronousAjax=function WP$Debug$_syncAjax(e,t){var n;(n=(n="object"==typeof e?e:t)||{}).async=!1,$$WP.Debug._oldAjax(e,n)},$$WP.Debug.makeAjaxSynchronous=function WP$Debug$mkAjaxSync(){if($$WP.Debug.IsEnabled){if($.ajax===$$WP.Debug._synchronousAjax)return;$$WP.Debug._oldAjax=$$WP.Debug._oldAjax||$.ajax||jQuery.ajax,$.ajax=$$WP.Debug._synchronousAjax}},$$WP.Debug.allowAjaxAsynchronous=function WP$Debug$alwAjaxAsync(){$.ajax===$$WP.Debug._synchronousAjax&&($.ajax=$$WP.Debug._oldAjax)},$$WP.Debug.verifyReportOnlySRICoverage=function WP$Debug$verifyReportOnlySRICoverage(){document.querySelectorAll("script").forEach((e=>{e.hasAttribute("nonce")||e.hasAttribute("data-integrity")&&(e.hasAttribute("report-run")||console.error("Error: Script without 'report-run' attribute found.",{src:e.src,element:e.outerHTML}))}))},$$WP.Debug.UnitTest.assert=function WP$Debug$asrt(e,t){$$WP.Debug._assertions++,e||($$WP.Debug._failedAssertions++,$$WP.Debug.logError(t,!1))},$$WP.Debug.UnitTest.assertValue=function WP$Debug$asrtVal(e,t,n){$$WP.Debug.UnitTest.assert(e===t,n+"(expected '"+e+"', got '"+t+"')")},$$WP.Debug.UnitTest.cssClassesMatch=function WP$Debug$cssClassesMatch(e,t){var n,s;if(n=e.safeAttr("class").split(" "),(t=t.split(" ")).length!==n.length)return!1;for(n.sort(),t.sort(),s=0;s<n.length;s++)if(n[s]!==t[s])return!1;return!0},$$WP.Debug.UnitTest.resetCounters=function WP$Debug$rstCntrs(){$$WP.Debug._failedAssertions=0,$$WP.Debug._assertions=0},$$WP.Debug.UnitTest.getFailedAssertionCount=function WP$Debug$gtAsrtFailCnt(){return $$WP.Debug._failedAssertions},$$WP.Debug.UnitTest.runAll=function WP$Debug$untTst$rnAl(e){var t,n,s,o,r,a,i,$,l,u,g,d;if($$WP.Debug.IsEnabled)for(e=e||$afe.select("body"),d=$$WP.SimpleTemplates.WarningIcon({class:"testWarning"}),0!==(t=$afe.select("#WP-Debug-UnitTest-TestingRange")).length?((n=t.find('table[name="resultsTable"]')).empty(),(s=t.find('div[name="sandbox"]')).empty()):(t=$$WP.SimpleTemplates.Div({id:"WP-Debug-UnitTest-TestingRange"}),n=dangerou$.parseHtml('<table name="resultsTable"><tr><th class="testName">Test name</th><th class=""testResult>Result</th></tr></table>'),s=$$WP.SimpleTemplates.Div({name:"sandbox"}),e.safeAppend(t),t.safeAppend(n),t.safeAppend(s)),o=0;o<$$WP.Debug.UnitTest.tests.length;o++){r=$$WP.Debug.UnitTest.tests[o],$$WP.Debug.UnitTest.resetCounters(),g=!1;try{r(s)}catch(e){$$WP.Debug.log(e.stack),g=!0}$=$$WP.Debug.UnitTest.getFailedAssertionCount(),l=$$WP.Debug._assertions,g?($$WP.Debug.log("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Test Failed XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"),u=dangerou$.parseHtml('<td class="testResult exceptionThrown">'+d[0].outerHTML+" Test failed "+$+" of "+l+" checks. Did not run the entire test due to an unhandled exception.<br/>See console for more details</td>")):$>0?($$WP.Debug.log("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Test Failed XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"),u=dangerou$.parseHtml('<td class="testResult failedAssertion">'+d[0].outerHTML+" Test failed "+$+" of "+l+" checks. See console for more details.</td>")):0===l?($$WP.Debug.log("No test cases defined for this module."),u=dangerou$.parseHtml('<td class="testResult noAssertion">No test cases defined for this module.</td>')):u=dangerou$.parseHtml('<td class="testResult passed">Test passed all '+l+" checks</td>"),s.empty(),i=dangerou$.parseHtml("<tr></tr>"),a=r.name||"Test",i.safeAppend(dangerou$.parseHtml('<td class="testName">'+a.replace(/UnitTests\$/,"")+"</td>")),i.safeAppend(u),n.safeAppend(i)}},function WP$Debug$Workflow(){var e={},t=function WP$Debug$Workflow(){};t.prototype={addMonitor:function WP$Debug$Workflow$addMonitor(t,n){$$WP.Debug.IsEnabled&&(e[t]=n)},getWorkflow:function WP$Debug$Workflow$get(t){if($$WP.Debug.IsEnabled&&e[t])return e[t]},removeMonitor:function WP$Debug$Workflow$removeMonitor(t){$$WP.Debug.IsEnabled&&delete e[t]}},$$WP.Debug.Workflow=$$WP.Debug.Workflow||new t}();;
var LOCALE_DELIMITER="-";!function WP$I18N$definition(){$$WP.I18N=$$WP.I18N||{DateFormat:null,TimeFormat:null,TimeSeparator:null,AmDesignator:null,PmDesignator:null,Days:[],Months:[],DecimalSeparator:null,GroupSeparator:null,GroupSize:null,RangeSeparator:null,NegativePattern:null,CenturyRollover:15,BirthdayRollOver:0},$$WP.I18N.getMyChartLocale=function WP$I18N$getMyChartLocale(){return $$WP.I18N.Identifier},$$WP.I18N.handleThreePartLocales=function WP$I18N$handleThreePartLocales(e){if(3===e.split(LOCALE_DELIMITER).length){var t=e.split(LOCALE_DELIMITER),r=t[0],a=t[1];return[r,t[2],a].join(LOCALE_DELIMITER)}return e},$$WP.I18N.getDateFormatForDisplay=function WP$I18N$getDateFormatForDisplay(){return this.DateFormat.toLowerCase().replace(/m+/g,$$WP.Strings.get("MM","Core.FormValidation")).replace(/d+/g,$$WP.Strings.get("DD","Core.FormValidation")).replace(/y+/g,$$WP.Strings.get("YYYY","Core.FormValidation"))},$$WP.I18N.getTimeFormatForDisplay=function WP$I18N$getTimeFormatForDisplay(){return this.TimeFormat.toLowerCase().replace(/h+/g,$$WP.Strings.get("HH","Core.FormValidation")).replace(/m+/g,$$WP.Strings.get("MI","Core.FormValidation")).replace(/t+/g,$$WP.Strings.get("TT","Core.FormValidation"))},$$WP.I18N.getOrderedDatePieces=function WP$I18N$getOrderedDatePieces(e,t,r){var a=$$WP.I18N.DateFormat.toLowerCase();e&&a.replace(/y+/,"");var i={};return r||(i.d=a.indexOf("d")),t||(i.m=a.indexOf("m")),e||(i.y=a.indexOf("y")),Object.keys(i).sort((function(e,t){return i[e]-i[t]}))},$$WP.I18N.formatPatientGivenDate=function WP$I18N$formatPatientGivenDate(e,t){var r,a;return e instanceof Date?(void 0===t&&(t=!1),a=$$WP.I18N.DateFormat.toLowerCase(),(r={dayOfMonth:t?e.getDate():e.getUTCDate(),month:(t?e.getMonth():e.getUTCMonth())+1,year:("0000"+(t?e.getFullYear():e.getUTCFullYear())).substr(-4)}).dayOfMonth<10&&a.indexOf("dd")>-1&&(r.dayOfMonth="0"+r.dayOfMonth),r.month<10&&a.indexOf("mm")>-1&&(r.month="0"+r.month),-1===a.indexOf("yyyy")&&(r.year=(r.year+"").substring(2,4)),a.replace(/d+/,r.dayOfMonth).replace(/m+/,r.month).replace(/y+/,r.year)):""},$$WP.I18N.parseDate=function WP$I18N$parseDate(e,t){var r=new $$WP.I18N.Date(e,"",t);return r.isSpilledOver()?null:r.DateObject},$$WP.I18N.formatPatientGivenTime=function WP$I18N$formatPatientGivenTime(e,t){var r,a,i;return e instanceof Date?(void 0===t&&(t=!1),i=(a=$$WP.I18N.TimeFormat.toLowerCase()).indexOf("t")>-1,r={hour:t?e.getHours():e.getUTCHours(),minute:t?e.getMinutes():e.getUTCMinutes(),amPm:""},i&&(r.hour>=12?(r.amPm=$$WP.I18N.PmDesignator,r.hour>12&&(r.hour=r.hour-12)):(r.amPm=$$WP.I18N.AmDesignator,0===r.hour&&(r.hour=12))),a.indexOf("hh")>-1&&r.hour<10&&(r.hour="0"+r.hour),r.minute<10&&(r.minute="0"+r.minute),a.replace(/h+/,r.hour.toString()).replace(/m+/,r.minute.toString()).replace(/t+/,r.amPm)):""},$$WP.I18N.parseTime=function WP$I18N$parseTime(e){var t,r,a,i,n,o;if("string"!=typeof e)return null;if(e=e.toLocaleLowerCase().replace(/\s/g,""),n=$$WP.I18N.AmDesignator.toLocaleLowerCase().replace(/[^a-zA-Z]/g,""),o=$$WP.I18N.PmDesignator.toLocaleLowerCase().replace(/[^a-zA-Z]/g,""),null===(t=e.match(new RegExp("(?:[a-z].? ?)+|[0-9]{1,2}","g")))||1!==t.length&&2!==t.length&&3!==t.length)return null;for(r=0;r<t.length;r++)if(0===t[r].length)return null;return 2!==t.length&&3!==t.length||!isNaN(Number(t[0]))&&!isNaN(Number(t[1]))&&2===t[0].length&&1===t[1].length&&e.indexOf(t[0]+""+t[1])>-1&&(t[1]=t[0].charAt(1)+""+t[1],t[0]=t[0].charAt(0)),null===(a=this._validateHours(t[0]))?null:1===t.length?this._buildTime(a,0):2===t.length?(t[1]=t[1].replace(/[^a-zA-Z0-9]/g,""),t[1]!==n.substring(0,t[1].length)&&t[1]!==o.substring(0,t[1].length)?null===(i=this._validateMinutes(t[1]))?null:this._buildTime(a,i):this._buildTime(a,0,t[1],n,o)):null===(i=this._validateMinutes(t[1]))?null:(t[2]=t[2].replace(/[^a-zA-Z0-9]/g,""),this._buildTime(a,i,t[2],n,o))},$$WP.I18N._validateHours=function WP$I18N$_validateHours(e){var t=Number(e);return isNaN(t)||t<0||t>23?null:t},$$WP.I18N._validateMinutes=function WP$I18N$_validateMinutes(e){var t;return 2!==e.length?null:(t=Number(e),isNaN(t)||t<0||t>59?null:t)},$$WP.I18N._accountForAmPm=function WP$I18N$_accountForAmPm(e,t,r,a){if(e<1||e>12)return null;if(t===r.substring(0,t.length))12===e&&(e=0);else{if(t!==a.substring(0,t.length))return null;12!==e&&(e+=12)}return e},$$WP.I18N._buildTime=function WP$I18N$_buildTime(e,t,r,a,i){var n;return r&&null===(e=this._accountForAmPm(e,r,a,i))?null:((n=new Date(0)).setUTCHours(e),n.setUTCMinutes(t),n)},$$WP.I18N.parse24HrTime=function WP$I18N$parse24HrTime(e){var t,r,a;return RegExp("^[0-9]{1,2}:{1}[0-9]{2}$").test(e)?(t=e.split(":"),null===(r=$$WP.I18N._validateHours(t[0]))||null===(a=$$WP.I18N._validateMinutes(t[1]))?null:$$WP.I18N._buildTime(r,a)):null},$$WP.I18N.formatNumber=function WP$I18N$formatNumber(e,t,r){var a,i,n,o,s,l,$,d;return"number"!=typeof e?"":(t=t||0,i=Math.abs(e),n=Math.floor(i),d=i.toString().length-n.toString().length-1,r&&(d=t),d<0&&(d=0),s=(o=$$WP.I18N.Round(i-n,d))-0,t>0?($=(l=$$WP.I18N.Round(s,t))-0,r?($>=1&&(n+=1,l=$$WP.I18N.Round($-1,t)),a=n.toFixed(0)+$$WP.I18N.DecimalSeparator+l.substring(2)):0===s?a=n:o.substring(2).length<=t?a=n.toFixed(0)+$$WP.I18N.DecimalSeparator+o.substring(2):($>=1&&(n+=1,l=$$WP.I18N.Round($-1,t)),a=$>0?n.toFixed(0)+$$WP.I18N.DecimalSeparator+l.substring(2):n.toFixed(0))):a=s>=.5?(n+1).toFixed(0):n.toFixed(0),e<0&&(a=$$WP.I18N.NegativePattern.replace("n",a)),a)},$$WP.I18N.Round=function $$WP$I18N$Round(e,t){return Number(Math.round(e+"e"+t)+"e-"+t).toFixed(t)},$$WP.I18N.parseCurrency=function WP$I18N$parseCurrency(e){var t=$$WP.Currency.Helpers.currencyToNumber(e);return isNaN(t)?NaN:t},$$WP.I18N.parseNumber=function WP$I18N$parseNumber(e){var t,r,a,i,n,o,s,l,$,d,u,c,p,g,N,m;return 0===(e+="").length?NaN:(a=$$WP.Utilities.regExEscapeString("n"),i=$$WP.Utilities.regExEscapeString($$WP.I18N.DecimalSeparator),o=(n=$$WP.Utilities.regExEscapeString($$WP.I18N.NegativePattern).replace(a,"n")).replace("n",""),(l=getGroupSeparator()).length>0&&$$WP.I18N.GroupSize&&$$WP.I18N.GroupSize>0&&($=new RegExp("\\s","g").test(l)?"\\s":$$WP.Utilities.regExEscapeString(l),d="(^[^\\d"+i+"]*)("+("\\d{1,"+$$WP.I18N.GroupSize+"}(?:"+$+"\\d{"+$$WP.I18N.GroupSize+"})*")+")(?=[^\\d"+$+"]|$)",(u=e.match(new RegExp(d)))&&u[2]&&(c=(c=u[2]).replace(new RegExp($,"g"),""),e=e.replace(new RegExp(d),"$1"+c))),e=e.trim(),new RegExp("[^\\d"+i+o+"]").test(e)?NaN:(s="((\\d+("+i+"\\d*)?)|("+i+"\\d+))",g=e,(p=new RegExp("^"+n.replace("n",s)+"$").test(e))&&(g=e.replace(new RegExp("["+o+"]","g"),"")),new RegExp("^"+s+"$").test(g)?(N=0,m=0,g.charAt(0)===$$WP.I18N.DecimalSeparator?m=Number(g.substring(1))/Math.pow(10,g.length-1):(t=g.split($$WP.I18N.DecimalSeparator),N=Number(t[0]),t.length>1&&(m=Number(t[1])/Math.pow(10,t[1].length))),r=N+m,p&&(r*=-1),r):NaN))};$$WP.I18N.getDateAriaString=function WP$I18N$getDateAriaString(e){return $$WP.I18N.getDateAriaStringCore(e,!0,!1)},$$WP.I18N.getDateAriaStringCore=function WP$I18N$getDateAriaStringCore(e,t,r){return $$WP.I18N.getFormattedDateString(e,t,!0,!0,r)},$$WP.I18N.getCalendarDateAriaString=function WP$I18N$getCalendarDateAriaString(e){var t=$$WP.I18N.CalendarDateAriaFormat;return t?buildFormat(t)(e):$$WP.I18N.getDateAriaString(date)},$$WP.I18N.getFormattedDateString=function getFormattedDateString(e,t,r,a,i){var n=$$WP.I18N.DateFormat.toLowerCase().replace(/[^mdy]/g," ");return n=(n=(n=n.replace(/dd+/,a?e.getDate():"")).replace(/yy+/,t?e.getFullYear():"")).replace(/mm+/,r?getMonthName(e.getMonth()+1):""),i&&(n=n+" "+getDayName(e.getDay())),n},$$WP.I18N.monthTitleFormat=function WP$I18N$monthTitleFormat(e){return buildFormat("MMMM yyyy")(e)},$$WP.I18N.upperCaseFirstLetter=function WP$I18N$upperCaseFirstLetter(e){return e.charAt(0).toUpperCase()+e.slice(1)},$$WP.I18N.Handlebars={verticalDate:function(e,t){for(var r='<div><span class="clearlabel">*REPLACE*</span>',a=!1,i=!1,n="",o="",s=0;s<t.length;s++){switch(t[s]){case"d":n="verticalDateOfMonth",o=e.getDate();break;case"m":n="verticalMonth",o=getMonthAbbr(e.getMonth()+1);break;case"y":n="verticalYear",o=e.getFullYear(),a=!0;break;case"dow":n="verticalDayOfWeek",o=getDayAbbr(e.getDay()),i=!0}r=r+'<div aria-hidden="true" class="'+n+'">'+o+"</div>"}r+="</div>";var l=$$WP.I18N.getDateAriaStringCore(e,a,i);return r=r.replace("*REPLACE*",l)}},$$WP.I18N.setClientTimeZone=function WP$I18N$setClientTimeZone(){if($$WPUtil.canWriteCookies()){var e=Intl.DateTimeFormat().resolvedOptions().timeZone;$.ajax({url:makeLink("Localization/LogClientTimeZone"),data:{timeZoneIdentifier:e},type:"POST"})}},$$WP.I18N.formatList=function WP$I18N$formatList(e,t){var r,a,i;r=$$WP.I18N.getMyChartLocale(),(a=t||{}).style&&a.style.length>0&&(!a.type||0===a.type.length)&&$$WP.Debug&&$$WP.Debug.log&&$$WP.Debug.log("Invalid list formatting options, if you specify a style you should specify a type.",!0);try{i=new Intl.ListFormat(r,a)}catch(e){}return void 0===i?e.join(", "):i.format(e)},$$WP.I18N.parseYear=function WP$I18N$parseYear(e,t){var r,a;if(2===e.length){r=(new Date).getFullYear(),a=Number(e),a+=r-r%100;var i=$$WP.I18N.CenturyRollover;t&&(i=$$WP.I18N.BirthdayRollOver),a>r+i&&(a-=100)}else a=Number(e);return $$WP.I18N.__validateYear(a)?a:null},$$WP.I18N.numDaysInMonth=function WP$I18N$numDaysInMonth(e,t){switch(year=void 0===t?2016:t,e){case 2:return year%4!=0||year%100==0&&year%400!=0?28:29;case 4:case 6:case 9:case 11:return 30;default:return 31}},$$WP.I18N.__newReferenceFieldHistory=function WP$I18N$__newReferenceFieldHistory(e){var t={};return t.history=e.history,t.pointer=e.pointer,t},$$WP.I18N.__createFieldHistory=function WP$I18N$__createFieldHistory(e){return e||(e=""),{history:[String(e)],pointer:1}},$$WP.I18N.__peekFieldHistory=function WP$I18N$__peekFieldHistory(e){return e.history[e.pointer-1]},$$WP.I18N.__pushFieldHistory=function WP$I18N$__pushFieldHistory(e,t){return(e=$$WP.I18N.__newReferenceFieldHistory(e)).history=e.history.slice(0,e.pointer),e.history[e.pointer]=t,e.pointer++,e},$$WP.I18N.__resizeFieldHistory=function WP$I18N$__resizeFieldHistory(e){return(e=$$WP.I18N.__newReferenceFieldHistory(e)).history.length===e.pointer&&42===e.pointer&&(e.history=e.history.slice(e.pointer-21,e.pointer),e.pointer-=21),e},$$WP.I18N.__undoFieldHistory=function WP$I18N$__undoFieldHistory(e){return(e=$$WP.I18N.__newReferenceFieldHistory(e)).pointer>1&&e.pointer--,e},$$WP.I18N.__redoFieldHistory=function WP$I18N$__redoFieldHistory(e){return(e=$$WP.I18N.__newReferenceFieldHistory(e)).pointer<e.length&&e.pointer++,e};var e=function WP$I18N__shouldSplitOnOverflow(e,r,a,i,n,o){return!(e.length<=1||n>=i-1)&&(max=t(r,a),o>max||"y"===r&&3===e.length&&10*o>max)},t=function WP$I18N__getMaxVal(e,t){switch(t||(t={}),t.m||(t.m=1),e){case"d":max=$$WP.I18N.numDaysInMonth(t.m,t.y);break;case"m":max=12;break;default:max=(new Date).getFullYear()+$$WP.I18N.CenturyRollover}return max},r=function WP$I18N__getDateSeparator(e,t){return e.toLowerCase().replace(new RegExp("["+t.join("")+"]","g"),"").charAt(0)},a=function WP$I18N$__shouldAddSeparator(e,t,r,a,i,n,o,s){return o<e.length-1||!(o>=i-1)&&(1===t.length&&10*e[o]>r||(!(o!==e.length-1||!a)||o<i-1&&t.length===s&&t[t.length-1]!==n))};$$WP.I18N.__validateYear=function WP$I18N$__validateYear(e){return(e=parseInt(e))>999&&e<1e4};var i=function WP$I18N$__formatField(e,t,r){var a=e,i=2;for("y"===t&&(a=null===(a=$$WP.I18N.parseYear(e,r))?e:a.toString(),i=4);a.length<i;)a="0"+a;return a},n=function WP$I18N$__moreCharactersValid(e,r,a){return fieldLength="y"===r?4:2,max=t(r,a),!(e.length>=fieldLength)&&(num=parseInt(e),10*num<=t(r,a))},o=function WP$I18N$__shouldSplitDueToLength(e,t){return fieldLength="y"===t?4:2,e.length>fieldLength},s=function WP$I18N$Date$__stringIncludes(e,t){return e.includes(t)};$$WP.I18N.deleteLiveDateFormatter=function $$WP$I18N$deleteLiveDateFormatter(e){for(var t=r($$WP.I18N.DateFormat,$$WP.I18N.getOrderedDatePieces()),a=0,i=0,n=e.length-1;n>=0;n--)if(e[n]===t?a++:/[1-9]/.test(e[n])?i++:"0"===e[n]&&0===n?a++:"0"===e[n]&&n>0&&/[1-9]/.test(e[n-1])||"0"===e[n]&&n>1&&"0"===e[n-1]&&/[1-9]/.test(e[n-2])||"0"===e[n]&&n>2&&"0"===e[n-1]&&"0"===e[n-2]&&/[1-9]/.test(e[n-3])?i++:a++,2===i){i--;break}return e.slice(0,e.length-a-i)},$$WP.I18N.processLiveDateFormatter=function $$WP$I18N$processLiveDateFormatter(s,l,$){if(s.length!==l)return s;var d,u,c,p,g,N=$$WP.I18N.DateFormat,m=$$WP.I18N.getOrderedDatePieces(),P=m.length,y=r(N,m),f=function WP$I18N__replaceValidSeparators(e,t){return e.replace(/[\\|\/|\.|,|\-| ]/g,t)}(s,y).split(y),h=function WP$I18N$__isLastFieldFinished(e,t,r){return e.length<=r&&e.length>1&&(1===e[e.length-2].length||"y"===t[e.length-2])&&""===e[e.length-1]}(f,m,P),W=f.reduce((function(e,t){var r=t.replace(/[\D]/g,"");return""!==r&&e.push(r),e}),[]),I=[],D={};if(function WP$I18N$__isDigitOnlyDate(e){return 1===e.length&&!!/^[0-9]+$/.test(e[0])}(W)&&W[0].length>("y"===m[0]?4:2)){for(var v="",_=0;_<W[0].length;_++)v=$$WP.I18N.processLiveDateFormatter(v+W[0][_],v.length+1,$);return v}for(_=0;_<W.length;_++)g="y"===(p=m[_])?4:2,o(W[_],p)?(I.push(W[_].slice(0,g)),D[p]=parseInt(W[_]),I.push(W[_].slice(g,W[_].length))):"0"!==W[_].charAt(0)?(u=parseInt(W[_]),e(W[_],p,D,P,_,u)?(I.push(Math.floor(u/10).toString()),D[p]=parseInt(W[_]),I.push((u%10).toString())):(D[p]=parseInt(W[_]),I.push(u.toString()))):(I.push(W[_]),D[p]=parseInt(W[_]));I=I.slice(0,m.length);var F="";for(_=0;_<I.length;_++){g="y"===(p=m[_])?4:2,d=new String(I[_]),c=t(m[_],D);var b=a(I,d,c,h,P,y,_,g);(b||!n(I[_],p,D)&&h&&_===I.length-1)&&(d=i(d,m[_],$)),b&&(d+=y),F+=d}return F},$$WP.I18N.__clearFormatterAriaAnnouncement=function WP$I18N$__clearFormatterAriaAnnouncement(e){var t=e.safeAttr("id"),r=(t=t.replace(/([ #;&,.+*~\':"!^$[\]()=>|\/@])/g,"\\$1"))+"_autoformatted";$afe.select("#"+r).empty()},$$WP.I18N.__appendFormatterAriaAnnouncement=function WP$I18N$__appendFormatterAriaAnnouncement(e,t,r,a,i){var n=e.safeAttr("id"),o=(n=n.replace(/([ #;&,.+*~\':"!^$[\]()=>|\/@])/g,"\\$1"))+"_autoformatted";$$WP.Strings.setDefaultNamespace("core.formvalidation");var s=$$WP.Strings.get(a?"Birthdate":i?"Time":"Date");$$WP.Strings.addMnemonic("@MYCHART@FIELDNAME@",s),$$WP.Strings.addMnemonic("@MYCHART@FORMATTEDFIELDVALUE@",r||e.val(),"");var l=$$WP.Strings.getForTemplate("FieldUpdatedAnnouncementWithValue").toString();$$WP.Strings.removeMnemonic("@MYCHART@FORMATTEDFIELDVALUE@"),$$WP.Strings.clearDefaultNamespace();var d=$("#"+o);if(!d.length){var u=$$WP.SimpleTemplates.Span({class:"clearlabel",id:o,"aria-live":"polite"});u.safeInsertAfter(e.next().hasClass("calendar")?e.next():e),d=u}return t||(d.empty(),d.safeAppend(dangerou$.parseHtml("<span>"+l+"</span>"))),o},$$WP.I18N.liveDate=function WP$I18N$liveDate(e,t,r,a,i,n,o){void 0===e&&(e="");var l=!1,$=void 0,d=!1;if("deleteContentBackward"===e&&o){var u=$$WP.I18N.__peekFieldHistory(n);$=u?$$WP.I18N.deleteLiveDateFormatter(u):t,u&&u.length-$.length>1&&(l=!0)}else if(s(e,"delete"))$=t;else if(s(e,"insert")){var c=$$WP.I18N.processLiveDateFormatter(t,a,i);void 0!==c&&t!==c?($=c,l=!0):$!==$$WP.I18N.__peekFieldHistory(n)&&($=t)}else"historyUndo"===e?(n=$$WP.I18N.__undoFieldHistory(n),$=$$WP.I18N.__peekFieldHistory(n),d=!0):"historyRedo"===e?(n=$$WP.I18N.__redoFieldHistory(n),$=$$WP.I18N.__peekFieldHistory(n),d=!0):$=t;n.pointer>0&&$!==$$WP.I18N.__peekFieldHistory(n)&&!s(e,"history")&&(n=$$WP.I18N.__pushFieldHistory(n,$)),n=$$WP.I18N.__resizeFieldHistory(n);var p={};return p.fieldHistory=n,p.next=$,p.appendAria=l,p.preventDefault=d,p};var beforeInputSubscriber=function(e){var t=$(e.target);"deleteContentBackward"===e.originalEvent.inputType&&t[0].selectionStart===t[0].selectionEnd&&t[0].selectionStart===e.target.value.length?t.attr("data-runDeleter","true"):t.attr("data-runDeleter","false")},inputSubscriber=function(e){var t=$(e.target),r=JSON.parse(t.attr("data-fieldHistory")),a="true"===t.attr("data-runDeleter"),i=!!JSON.parse(t.attr("data-validation-settings")).isDOB,n=$$WP.I18N.liveDate(e.originalEvent.inputType,e.target.value,t[0].selectionStart,t[0].selectionEnd,i,r,a);void 0!==n.next&&t.val(n.next),n.appendAria?$$WP.I18N.__appendFormatterAriaAnnouncement(t,void 0,void 0,i):$$WP.I18N.__clearFormatterAriaAnnouncement(t),n.preventDefault&&e.preventDefault(),t.attr("data-fieldHistory",JSON.stringify(n.fieldHistory))},blurSubscriber=function(e){var t=$(e.target),r=JSON.parse(t.attr("data-fieldHistory"));e.target.value!==$$WP.I18N.__peekFieldHistory(r)&&(r=$$WP.I18N.__pushFieldHistory(r,e.target.value)),t.attr("data-fieldHistory",JSON.stringify(r))};$$WP.I18N.attachLiveDateFormatter=function WP$I18N$attachLiveDateFormatter(e,t){if("1"!==e.attr("data-formatter-attached")){"rtl"===$("html").attr("dir")&&(e.attr("dir","ltr"),e.css("text-align","right")),$$WP.I18N.__appendFormatterAriaAnnouncement(e,!0);var r=JSON.parse(e.attr("data-validation-settings"));r.format=!0,e.attr("data-validation-settings",JSON.stringify(r)),e.attr("inputmode","numeric");var a=$$WP.I18N.processLiveDateFormatter(e.val(),e.val().length,r.isDOB);e.val(a),e.attr("data-fieldHistory",JSON.stringify($$WP.I18N.__createFieldHistory(a))),e.attr("data-formatter-attached","1"),e.on("beforeinput",beforeInputSubscriber),e.on("input",inputSubscriber),e.on("blur",blurSubscriber)}}}(),function WP$I18N$Date$definition(){var e=function WP$I18$Date$DatePiece$definition(){return this.prototype={Value:null,isValid:function(){return null}},function WP$I18$Date$DatePiece$constructor(e,t){this.Value=e,this.isValid=t}}(),t={DateObject:null,DayOfMonth:new e,Month:new e,Year:new e,isSpilledOver:function WP$$I18N$Date$isSpilledOver(){return null!==this.DateObject&&(this.DateObject.getUTCDate()!==this.DayOfMonth.Value||this.DateObject.getUTCMonth()!==this.Month.Value-1||this.DateObject.getUTCFullYear()!==this.Year.Value)},isValid:function WP$$I18N$Date$isValid(){return this.Month.isValid()&&this.DayOfMonth.isValid()&&this.Year.isValid()}},r=function WP$$I18N$Date$__parseDatePieces(e,t){var r,i,n,o,s,l,$;return i=(r=$$WP.I18N.DateFormat.toLowerCase().replace(/[^ymd]*([ymd])+[^ymd]*/g,"$1")).indexOf("d"),n=r.indexOf("m"),o=r.indexOf("y"),a(e)?(2===e.length?($=(new Date).getFullYear(),l=Number(e[n]),s=Number(e[i])):3===e.length&&($=$$WP.I18N.parseYear(e[o],t),l=Number(e[n]),s=Number(e[i])),null===s||isNaN(s)||null===l||isNaN(l)||null===$||isNaN($)?null:{DayOfMonth:s,Month:l,Year:$}):null},a=function WP$I18N$Date$__hasAllDatePieces(e){if(2!==e.length&&3!==e.length)return!1;for(var t=0;t<e.length;t++)if(0===e[t].length)return!1;return!0},i=function WP$I18N$Date$__validateMonth(e){return e>0&&e<13},n=function WP$I18N$Date$__validateDayOfMonth(e,t,r){return!(e<1)&&e<=$$WP.I18N.numDaysInMonth(t,r)};$$WP.I18N.Date=function WP$I18N$Date$constructor(t,a,o,s){var l,$,d,u,c;if(o=void 0!==o&&o,s=void 0!==s&&s,"date"===a)l=t.trim().split("-"),d=Number(l[2]),u=Number(l[1]),c=Number(l[0]);else{if("string"!=typeof t||/[a-zA-Z]/.test(t))return;if(s&&/^[0-9]+$/.test(t))t=$$WP.I18N.processLiveDateFormatter(t,t.length,o);if(l=t.trim().split(/[^\d]+/),null===($=r(l,o)))return;d=$.DayOfMonth,u=$.Month,c=$.Year}this.DayOfMonth=new e(d,(function(){return n(d,u,c)})),this.Month=new e(u,(function(){return i(u)})),this.Year=new e(c,(function(){return $$WP.I18N.__validateYear(c)})),this.DateObject=new Date(0),this.DateObject.setUTCFullYear(c),this.DateObject.setUTCMonth(u-1),this.DateObject.setUTCDate(d)},$$WP.I18N.Date.prototype=t}(),$$WP.Debug.UnitTest=$$WP.Debug.UnitTest||{},$$WP.Debug.UnitTest.tests=$$WP.Debug.UnitTest.tests||[],$$WP.Debug.UnitTest.tests.push((function UnitTests$I18N$numbers(e){var t,r,a,i,n,o;t=$$WP.Debug.UnitTest.assert,i=$$WP.I18N.DecimalSeparator,n=$$WP.I18N.NegativePattern,o=$$WP.I18N.GroupSeparator,$$WP.I18N.DecimalSeparator=",",$$WP.I18N.GroupSeparator=".",$$WP.I18N.NegativePattern="(n)",r=$$WP.I18N.parseNumber,a=$$WP.I18N.formatNumber,t(1234===r("1234"),"Failed to parse number string: '1234'"),t(1234===r(" 1234"),"Failed to parse number string: ' 1234'"),t(1===r("1,0"),"Failed to parse number string: '1,0'"),t(1.234===r("1,234"),"Failed to parse number string: '1,234'"),t(1234.234===r("1234,234"),"Failed to parse number string: '1234,234'"),t(1234.234===r(" 1234,234"),"Failed to parse number string: ' 1234,234'"),t(1234.234===r("1.234,234"),"Failed to parse number string: '1.234,234'"),t(1234===r("1.234"),"Failed to parse number string: '1.234'"),t(1234567===r("1.234.567"),"Failed to parse number string: '1.234.567'"),t(-1===r("(1)"),"Failed to parse number string: '(1)'"),t(-1234===r("(1234)"),"Failed to parse number string: '(1234)'"),t(-1===r("(1,0)"),"Failed to parse number string: '(1,0)'"),t(-1.234===r("(1,234)"),"Failed to parse number string: '(1,234)'"),t(-1234.234===r("(1234,234)"),"Failed to parse number string: '(1234,234)'"),t(-1234567===r("(1.234.567)"),"Failed to parse number string: '(1.234.567)'"),t(isNaN(r("abc")),"Did not reject invalid number string: 'abc'"),t(isNaN(r("((123")),"Did not reject invalid number string: '((123'"),t(isNaN(r("(123,,0")),"Did not reject invalid number string: '(123,,0'"),t(isNaN(r("(123,0,0")),"Did not reject invalid number string: '(123,0,0'"),t(isNaN(r("(123(")),"Did not reject invalid number string: '(123('"),t(isNaN(r("(123,0(")),"Did not reject invalid number string: '(123,0('"),t(isNaN(r("(1@123,0)")),"Did not reject invalid number string: '(1.123,0)'"),t(isNaN(r("(1@234)")),"Did not reject invalid number string: '(1.234)'"),t(isNaN(r("(1@234,234)")),"Did not reject invalid number string: '(1.234,234)'"),t(isNaN(r("1,234,567")),"Did not reject invalid number string: '1,234,567'"),t(isNaN(r("1,234.234")),"Did not reject invalid number string: '1,234.234'"),t(isNaN(r("12.34")),"Did not reject invalid number string: '12.34'"),t(isNaN(r("123.4567")),"Did not reject invalid number string: '123.4567'"),t(isNaN(r("1234.567")),"Did not reject invalid number string: '1234.567'"),$$WP.I18N.GroupSeparator=" ",t(1234===r("1 234"),"Failed to parse number string: '(1 234)'"),$$WP.I18N.GroupSeparator=" ",t(1234===r("1 234"),"Failed to parse number string: '(1 234)'"),$$WP.I18N.GroupSeparator=".",t("123"===a(123),"Did not properly format 123 as '123'"),t("123"===a(123.4),"Did not properly format 123.4 as '123'"),t("123,4"===a(123.4,1),"Did not properly format 123.4 as '123.4'"),t("124"===a(123.5),"Did not properly format 123.5 as '124'"),t("123,5"===a(123.5,3),"Did not properly format 123.5 as '123.5'"),t("(123)"===a(-123),"Did not properly format -123 as '(123)'"),t("(123)"===a(-123.4),"Did not properly format -123.4 as '(123)'"),t("(123,4)"===a(-123.4,1),"Did not properly format -123.4 as '(123,4)'"),t("(124)"===a(-123.5),"Did not properly format -123.5 as '(124)'"),t("(123,5)"===a(-123.5,3),"Did not properly format -123.5 as '(123,5)'"),t("11,000"===a(10.99999,3),"Did not properly format 10.99999 as '11,000'"),$$WP.I18N.DecimalSeparator=i,$$WP.I18N.NegativePattern=n,$$WP.I18N.GroupSeparator=o})),$$WP.Debug.UnitTest.tests.push((function UnitTests$I18N$currency(e){var t,r,a,i,n,o,s,l,$,d,u;t=$$WP.Debug.UnitTest.assert,a=$$WP.CurrentLocale.DecimalSeparator,i=$$WP.CurrentLocale.GroupSeparator,n=$$WP.CurrentLocale.CurrencySymbol,o=$$WP.CurrentLocale.CurrencyPositivePattern,s=$$WP.CurrentLocale.CurrencyNegativePattern,$$WP.CurrentLocale.DecimalSeparator=",",$$WP.CurrentLocale.GroupSeparator=".",$$WP.CurrentLocale.CurrencySymbol="€",$$WP.CurrentLocale.CurrencyPositivePattern="$n",$$WP.CurrentLocale.CurrencyNegativePattern="($ n)",r=$$WP.I18N.parseCurrency,l=[["1234",1234],["1,0",1],["1,234",1.234],["1234,234",1234.234],["1.234,234",1234.234],["1.234",1234],["1.234.567",1234567],["abc",NaN],["(123",NaN],["123,,0",NaN],["123,0,0",NaN],["1@234",NaN],["1@234,567",NaN],["1,234,567",NaN],["1,234.567",NaN],["123.4567",NaN],["1234.567",NaN]],$=[["n",!0],[" n ",!0],["€n",!0],[" € n ",!0],["-n",!1],["-€n",!1],["(€ n)",!1]];for(var c=0;c<l.length;c++)for(var p=0;p<$.length;p++)d=l[c][1],u=$[p][0].replace("n",l[c][0]),$[p][1]||(d=-d),isNaN(d)?t(isNaN(r(u)),"Did not reject invalid currency string: '"+u+"'"):t(r(u)===d,"Failed to parse currency string: '"+u+"'");$$WP.CurrentLocale.GroupSeparator=" ",t(1234===r("1 234"),"Failed to parse currency string: '1 234'"),$$WP.CurrentLocale.GroupSeparator=" ",t(1234===r("1 234"),"Failed to parse currency string: '1 234'"),$$WP.CurrentLocale.DecimalSeparator=a,$$WP.CurrentLocale.GroupSeparator=i,$$WP.CurrentLocale.CurrencySymbol=n,$$WP.CurrentLocale.CurrencyPositivePattern=o,$$WP.CurrentLocale.CurrencyNegativePattern=s})),$$WP.Debug.UnitTest.tests.push((function UnitTests$I18N$dates(e){var t,r,a,i,n,o,s;t=$$WP.Debug.UnitTest.assert,r=$$WP.Debug.UnitTest.assertValue,n=$$WP.I18N.DateFormat,a=$$WP.I18N.parseDate,i=$$WP.I18N.formatPatientGivenDate,o=$$WP.I18N.processLiveDateFormatter,s=$$WP.I18N.deleteLiveDateFormatter,$$WP.I18N.liveDate;var l=$$WP.I18N.__createFieldHistory,$=$$WP.I18N.__pushFieldHistory,d=$$WP.I18N.__undoFieldHistory,u=$$WP.I18N.__redoFieldHistory,c=$$WP.I18N.liveDate("deleteContentBackward","",0,0,!1,l(),!0),p={fieldHistory:l(),next:"",appendAria:!1,preventDefault:!1};r(JSON.stringify(c),JSON.stringify(p),"delete at init");var g=l();g=$(g,"10/"),c=$$WP.I18N.liveDate("deleteContentBackward","1",1,1,!1,g,!0),p={fieldHistory:g=$(g,"1"),next:"1",appendAria:!0,preventDefault:!1},r(JSON.stringify(c),JSON.stringify(p),"runDeleter"),g=$(g=l(),"10/"),c=$$WP.I18N.liveDate("delete","1/",1,1,!1,g,!1),p={fieldHistory:g=$(g,"1/"),next:"1/",appendAria:!1,preventDefault:!1},r(JSON.stringify(c),JSON.stringify(p),"delete"),g=l(),c=$$WP.I18N.liveDate("insert","1",1,1,!1,g,!1),p={fieldHistory:$(g,"1"),next:"1",appendAria:!1,preventDefault:!1},r(JSON.stringify(c),JSON.stringify(p),"type 1"),g=$(g=l(),"1"),c=$$WP.I18N.liveDate("insert","10",2,2,!1,g,!1),p={fieldHistory:g=$(g,"10/"),next:"10/",appendAria:!0,preventDefault:!1},r(JSON.stringify(c),JSON.stringify(p),"type 10"),c=$$WP.I18N.liveDate("historyUndo","10/",3,3,!1,g,!1),p={fieldHistory:g=d(g),next:"1",appendAria:!1,preventDefault:!0},r(JSON.stringify(c),JSON.stringify(p),"undo"),c=$$WP.I18N.liveDate("historyRedo","1",1,1,!1,g,!1),p={fieldHistory:g=u(g),next:"10/",appendAria:!1,preventDefault:!0},r(JSON.stringify(c),JSON.stringify(p),"redo"),r(JSON.stringify({history:[""],pointer:1}),JSON.stringify($$WP.I18N.__createFieldHistory()),"create - no init param"),r(JSON.stringify({history:["4"],pointer:1}),JSON.stringify($$WP.I18N.__createFieldHistory("4")),"create - init param"),r(JSON.stringify({history:["4"],pointer:1}),JSON.stringify($$WP.I18N.__createFieldHistory(4)),"create - number init param");var N=$$WP.I18N.__createFieldHistory();r("",$$WP.I18N.__peekFieldHistory(N),"peek - uninitialized history"),N=$$WP.I18N.__createFieldHistory("4"),r("4",$$WP.I18N.__peekFieldHistory(N),"peek - return from init state"),N=$$WP.I18N.__pushFieldHistory(N,"5"),r("5",$$WP.I18N.__peekFieldHistory(N),"peek - after push"),N=$$WP.I18N.__undoFieldHistory(N),r("4",$$WP.I18N.__peekFieldHistory(N),"peek - after undo");var m=N=$$WP.I18N.__createFieldHistory();t(m!==(N=$$WP.I18N.__pushFieldHistory(N,"1")),"Reference to object not updated."),r(JSON.stringify({history:["","1"],pointer:2}),JSON.stringify(N),"push - add to non-init fieldHistory"),N=$$WP.I18N.__createFieldHistory(1),N=$$WP.I18N.__pushFieldHistory(N,"2"),r(JSON.stringify({history:["1","2"],pointer:2}),JSON.stringify(N),"push - add to fieldHistory"),N=$$WP.I18N.__createFieldHistory("");for(var P=1;P<42;P++)N=$$WP.I18N.__pushFieldHistory(N,P);r(42,N.history.length,"resize - setup"),t((m=N)!==(N=$$WP.I18N.__resizeFieldHistory(N)),"Reference to object not updated"),r(21,N.history.length,"resize - test history length"),r(21,N.pointer,"resize - pointer"),N=$$WP.I18N.__createFieldHistory("1"),t((m=N=$$WP.I18N.__pushFieldHistory(N,"2"))!==(N=$$WP.I18N.__undoFieldHistory(N)),"Reference to object not updated"),r(JSON.stringify(N),JSON.stringify({history:["1","2"],pointer:1})),t((m=N)!==(N=$$WP.I18N.__redoFieldHistory(N)),"Reference to object not updated"),r(JSON.stringify(N),JSON.stringify({history:["1","2"],pointer:2})),$$WP.I18N.DateFormat="MM/dd/YYYY",r("03/",o("3",1),"Failed to format live date: there are no double digit months starting with 3"),r("1",o("1",1),"Failed to format live date: there are double digit months starting with 1"),r("01/3",o("13",2),"There is no 13th month"),r("02/03/",o("02/3",4),"no Feb 30th"),r("02/29/",o("02/29",5),"leap day"),r("0",o("0",1),"type zeroes"),r("01/",o("01",2),"type zeroes"),r("12/01/",o("12/1/",5),"type slashes"),r("02/03/1999",o("2/3/1999",8),"paste"),r("02/03/1999",o("2.3.1999",8),"paste from another format"),r("02/03/99",o("2.3.99",6),"paste from another format"),r("03/14/1999",o("03141999",8),"paste from another format - this would work in hyperspace"),r("03/14/99",o("031499",6),"paste from format that would work in hyperspace"),r("03/04/8",o("03/04/8",7),"random bug"),r("12/29/94",o("122994",6),"would work in hyperspace"),r("01/04/",o("014",3),"deletion"),r("01/31/",o("01/31",5),"January 31 valid"),r("02/29/",o("02/29",5),"February 29 valid"),r("03/31/",o("03/31",5),"March 31 valid"),r("04/30/",o("04/30",5),"April 30 valid"),r("05/31/",o("05/31",5),"May 31 valid"),r("06/30/",o("06/30",5),"June 30 valid"),r("07/31/",o("07/31",5),"July 31 valid"),r("08/31/",o("08/31",5),"August 31 valid"),r("09/30/",o("09/30",5),"September 30 valid"),r("10/31/",o("10/31",5),"October 31 valid"),r("11/30/",o("11/30",5),"November 30 valid"),r("12/31/",o("12/31",5),"December 31 valid"),r("01/03/2",o("01/32",5),"January 32 invalid"),r("02/03/0",o("02/30",5),"February 30 invalid"),r("03/03/2",o("03/32",5),"March 32 invalid"),r("04/03/1",o("04/31",5),"April 31 invalid"),r("05/03/2",o("05/32",5),"May 32 invalid"),r("06/03/1",o("06/31",5),"June 31 invalid"),r("07/03/2",o("07/32",5),"July 32 invalid"),r("08/03/2",o("08/32",5),"August 32 invalid"),r("09/03/1",o("09/31",5),"September 31 invalid"),r("10/03/2",o("10/32",5),"October 32 invalid"),r("11/03/1",o("11/31",5),"November 31 invalid"),r("12/03/2",o("12/32",5),"December 32 invalid"),r("05/",o("p5",2),"Forms validation attached late"),r("",o("p/",2),"Forms validation attached late"),r("05/",o("/5",2),"Forms validation attached late"),r("",o("//",2),"Forms validation attached late"),r("03/",o("03;",3),"Non-number where a spacer should be"),r("03/14/",o("03/14;",6),"Non-number where a spacer should be"),r("03/14/1999",o("Here is a random date: 3/14/1999",32),"Random sentence pasted in"),r("03/14/1999",o("3/14/1999: That was a random date",33),"Random sentence pasted in"),r("03/14/1999",o("Crazy day: 3/14/1999: That was a random date",44),"Random sentence pasted in"),r("03/14/",o("Here is a random date: 3/14",27),"Random sentence pasted in"),r("03/14/",o("3/14: That was a random date",28),"Random sentence pasted in"),r("03/14/",o("Crazy day: 3/14: That was a random date",39),"Random sentence pasted in"),r("03/",o("Here is a random date: 3",24),"Random sentence pasted in"),r("03/",o("3: That was a random date",25),"Random sentence pasted in"),r("03/",o("Crazy day: 3: That was a random date",36),"Random sentence pasted in"),r("03/14/1999",o("03\\14\\1999",10),"Accept backslash"),r("01/01/11",o("1\\1\\11",6),"Accept backslash"),r("01/02/2003",o("01/02/20030",11),"Overflow"),r("08/08/90",o("8890",4),"accept 4 digit dates"),r("12/08/90",o("12890",5),"accept 5 digit dates"),r("12/11/90",o("121190",6),"accept 6 digit dates"),r("03/14/1990",o("3141990",7),"accept 7 digit dates"),r("12/04/1990",o("1241990",7),"accept 7 digit dates"),r("12/11/1999",o("12111999",8),"accept 8 digit dates"),r("12/03/4",o("1234",4),"Copy/paste"),r("01/03/45",o("1345",4),"Copy/paste"),r("08/08/1999",o("881999",6),"6-digit uneasy formatting"),r("08/08/888",o("08/08/888",9),"Don't add zeroes on typos"),r("02/22/222",o("02/22/222",9),"Don't add zeroes on typos"),r("09/09/999",o("09/09/999",9),"Don't add zeroes on typos"),r("01/01/204",o("01/01/204",9),"Don't add zeroes on typos"),r("01/01/2040",o("01/01/2040",10),"Don't add zeroes on typos"),r("01/03/923",o("01/03/923",9),"Don't add zeroes on typos"),r("01/01/998",o("01/01/998",9),"Don't add zeroes on typos"),$$WP.I18N.DateFormat="YYYY/MM/DD",r("2001/",o("01/",3),"doesn't allow 2-digit years"),r("2001/",o("2001",4),"basic 4-digit year"),r("0003/03/3",o("3/3/3",5),"allows 1-digit year"),r("0103/03/3",o("103/3/3",7),"allows 3-digit year"),r("22",o("22",2),"2 chars entered"),r("2002/",o("2002 ",5),"space entered"),r("2002/",o("2002",4),"nothing entered"),r("2022/01/3",o("2022/13",7),"regular month checking"),r("2022/0",o("220",3),"6-digit leadup"),r("2022/02/25",o("220225",6),"6-digit"),r("2022/03/1",o("2022031",7),"7-digit"),r("2022/03/3",o("2022033",7),"7-digit"),r("2022/03/4",o("2022034",7),"7-digit"),r("2022/03/01",o("20220301",8),"8-digit"),r("2002/09/30",o("2002 09 30",10),"space separator"),r("2001/08/12",o("2001/08/12",10),"slash separator"),r("2001/08/12",o("2001.08.12",10),"period separator"),r("2001/08/12",o("2001,08,12",10),"comma separator"),r("2001/08/12",o("2001-08-12",10),"dash separator"),r("2001/08/12",o("2001\\08\\12",10),"backslash separator"),r("2001/02/03",o("2001/02/033",11),"Overflow"),r("1999/08/8",o("1999/08/8",9),"6digit test"),r("1999/08/8",o("199988",6),"6-digit uneasy formatting"),r("03/14/199",s("03/14/1999"),"Simple deletion"),r("03/14/19",s("03/14/199"),"Simple deletion"),r("10",s("10/02/"),"Clear digit"),r("",s("02/"),"Remove leading zero"),r("11/11/100",s("11/11/1000"),"Delete zero"),r("11/11/10",s("11/11/100"),"Delete zero"),r("11/11/1",s("11/11/10"),"Delete zero"),r("09/09/999",s("09/09/9999"),"6 9's"),r("09/09/99",s("09/09/999"),"6 9's"),r("09/09/9",s("09/09/99"),"6 9's"),r("09/09",s("09/09/9"),"6 9's"),r("09",s("09"),"6 9's"),$$WP.I18N.DateFormat="MM/dd/YYYY",r("09/10/2016",i(new Date("2016-09-10")),"Failed to format date "),r("02/01/0123",i(new Date("0123-02-01")),"Failed to format date "),$$WP.I18N.DateFormat="M/d/YY",r("9/10/16",i(new Date("2016-09-10")),"Failed to format date "),r("2/1/23",i(new Date("0123-02-01")),"Failed to format date "),r("10/11/16",i(new Date("2016-10-11")),"Failed to format date "),$$WP.I18N.DateFormat="MM/dd/yyyy",r(new Date("2016-10-09").getTime(),a("10/9/2016").getTime(),"Date parsed incorrectly."),r(new Date("2016-10-09").getTime(),a(" 10 / 9 - 2016 ").getTime(),"Date parsed incorrectly."),r(new Date("2016-10-09").getTime(),a("10-9-16").getTime(),"Date parsed incorrectly."),r(new Date("1975-10-09").getTime(),a("10-9-75").getTime(),"Date parsed incorrectly."),r(new Date("2016-02-29").getTime(),a("2-29-16").getTime(),"Date parsed incorrectly."),r(new Date("2016-12-31").getTime(),a("12-31-16").getTime(),"Date parsed incorrectly."),r(new Date("2016-01-01").getTime(),a("1-1-16").getTime(),"Date parsed incorrectly."),r(new Date((new Date).getFullYear()+"-01-01").getTime(),a("1-1").getTime(),"Date parsed incorrectly."),$$WP.I18N.DateFormat="M/d/y",r(new Date("2016-10-09").getTime(),a("10/9/2016").getTime(),"Date parsed incorrectly."),r(new Date("2016-10-09").getTime(),a(" 10 / 9 - 2016 ").getTime(),"Date parsed incorrectly."),r(new Date("2016-10-09").getTime(),a("10-9-16").getTime(),"Date parsed incorrectly."),r(new Date("1975-10-09").getTime(),a("10-9-75").getTime(),"Date parsed incorrectly."),$$WP.I18N.DateFormat="dd-MM-yyyy",r(new Date("2016-09-10").getTime(),a("10/9/2016").getTime(),"Date parsed incorrectly."),r(new Date("2016-09-10").getTime(),a(" 10 / 9 - 2016 ").getTime(),"Date parsed incorrectly."),r(new Date("2016-09-10").getTime(),a("10-9-16").getTime(),"Date parsed incorrectly."),r(new Date("1975-09-10").getTime(),a("10-9-75").getTime(),"Date parsed incorrectly."),$$WP.I18N.DateFormat="dd yyyy mm",r(new Date("2016-09-10").getTime(),a("10/2016/9").getTime(),"Date parsed incorrectly."),r(new Date("2016-09-10").getTime(),a(" 10 / 2016 - 9 ").getTime(),"Date parsed incorrectly."),r(new Date("2016-09-10").getTime(),a("10-16-9").getTime(),"Date parsed incorrectly."),r(new Date("1975-09-10").getTime(),a("10-75-9").getTime(),"Date parsed incorrectly."),$$WP.I18N.DateFormat="MM/dd/yyyy",r(null,a("January 1, 2016"),"Invalid date string was not rejected."),r(null,a("10/9/16 AD"),"Invalid date string was not rejected."),r(null,a("2/29/15"),"Invalid date string was not rejected."),r(null,a("0/1/2016"),"Invalid date string was not rejected."),r(null,a("1/1/"),"Invalid date string was not rejected."),r(null,a("/1/1"),"Invalid date string was not rejected."),r(null,a("/1/1/"),"Invalid date string was not rejected."),r(null,a("//1//1//"),"Invalid date string was not rejected."),$$WP.I18N.DateFormat=n})),$$WP.Debug.UnitTest.tests.push((function UnitTests$I18N$lists(e){var t,r,a,i,n,o;t=$$WP.Debug.UnitTest.assertValue,r=$$WP.I18N.Identifier,$$WP.I18N.Identifier="en-US",n=$$WP.I18N.formatList,a={style:"long",type:"disjunction"},i={style:"narrow"},o=["one","two","three","four"],WP&&WP.DOM&&WP.DOM.Browser.isIE?(t("one, two, three, four",n(o),"failed to format list for IE"),t("one, two, three, four",n(o,a),"failed to format list for IE"),t("one, two, three, four",n(o,i),"failed to format list for IE")):(t("one, two, three, and four",n(o),"failed to format list"),t("one, two, three, or four",n(o,a),"failed to format list"),t("one, two, three, four",n(o,i),"failed to format list")),$$WP.I18N.Identifier=r}));;
var EpicPx=EpicPx||{};EpicPx.pendingPortals=EpicPx.pendingPortals||{},EpicPx.scriptSources=EpicPx.scriptSources||[],EpicPx.addReactPortal=function EpicPx$addReactPortal$closure(){var e=!1;return function EpicPx$addReactPortal(t,c,i,a){if(a){EpicPx.addPortal?EpicPx.addPortal(t,c,i,a):e?setTimeout((function EpicPx$addReactPortal$waitingForReact(){EpicPx.addReactPortal(t,c,i,a)}),10):(EpicPx.pendingPortals[a]={elementId:a,packageName:t,componentName:c,props:i},function EpicPx$addReactPortal$loadReactSources(){if(!e){e=!0;for(var t=document.createDocumentFragment(),c=0;c<EpicPx.scriptSources.length;c++){var i=EpicPx.scriptSources[c].path,a=EpicPx.scriptSources[c].integrity,r=EpicPx.scriptSources[c].reportOnly,o=document.createElement("script");o.src=makeLink(i),o.async=!1;var p=a?a.split("^")[0]:"";const e=r?o.dataset:o;e.integrity=p,p.length>0&&(e.integrity="sha384-"+p),t.appendChild(o)}document.head.appendChild(t)}}())}else $$WP.Debug.log("No element ID passed in to render "+t+"/"+c)}}(),EpicPx.removeReactPortal=function EpicPx$removeReactPortal(e){if(e)return EpicPx.removePortal?EpicPx.removePortal(e):void(EpicPx.pendingPortals[e]&&delete EpicPx.pendingPortals[e])};;
function registerUIUtilitiesHelpers(){$$WP.Utilities.UI&&(Handlebars.registerHelper("ifMobile",(function(e){return $$WP.Utilities.UI.IsMobile?e.fn(this):e.inverse(this)})),Handlebars.registerHelper("ifMobileOrMobileBrowser",(function(e){return $$WP.Utilities.UI.IsMobile||("echeckin"===$$WP.Utilities.queryString("src")||$afe.select("html").hasClass("respquestionnaire"))&&WP.DOM.Browser.isMobile?e.fn(this):e.inverse(this)})),Handlebars.registerHelper("ifNotMobileOrMobileBrowser",(function(e){return $$WP.Utilities.UI.IsMobile||("echeckin"===$$WP.Utilities.queryString("src")||$afe.select("html").hasClass("respquestionnaire"))&&WP.DOM.Browser.isMobile?e.inverse(this):e.fn(this)})),Handlebars.registerHelper("ifNotMobile",(function(e){return $$WP.Utilities.UI.IsMobile?e.inverse(this):e.fn(this)})),Handlebars.registerHelper("ifWelcome",(function(e){return 78===$$WP.ApplicationContext?e.fn(this):e.inverse(this)})),Handlebars.registerHelper("ifWelcomeNotMobile",(function(e){return 78!==$$WP.ApplicationContext||$$WP.Utilities.UI.IsMobile?e.inverse(this):e.fn(this)})),Handlebars.registerHelper("ifWelcomeOrMobile",(function(e){return 78===$$WP.ApplicationContext||$$WP.Utilities.UI.IsMobile||WP.DOM.Browser.isMobile?e.fn(this):e.inverse(this)})),Handlebars.registerHelper("ifNotWelcomeOrMobile",(function(e){return 78===$$WP.ApplicationContext||$$WP.Utilities.UI.IsMobile||WP.DOM.Browser.isMobile?e.inverse(this):e.fn(this)})),Handlebars.registerHelper("ifPreLogin",(function(e){return $$WP.Utilities.UI.IsLoggedIn?e.inverse(this):e.fn(this)})),Handlebars.registerHelper("ifiOS",(function(e){return WP.DOM.Browser.isIPhone||WP.DOM.Browser.isIPad||WP.DOM.Browser.isIPod||78===$$WP.ApplicationContext&&$$WP.Utilities.UI.IsIos()?e.fn(this):e.inverse(this)})),Handlebars.registerHelper("proxyColorClass",(function(e){return $$WP.Utilities.UI.ProxyColorClass})),Handlebars.registerHelper("ifWorkflowRestricted",(function(e){return $$WP.Utilities.UI.IsWorkflowRestricted?e.fn(this):e.inverse(this)})),Handlebars.registerHelper("ifCapturedWorkflow",(function(e){return $$WP.Utilities.UI.IsCapturedWorkflow?e.fn(this):e.inverse(this)})),Handlebars.registerHelper("ifNotPrelogin",(function(e){return $$WP.Utilities.UI.IsMidLogin||$$WP.Utilities.UI.IsLoggedIn?e.fn(this):e.inverse(this)})),Handlebars.registerHelper("ifMidLogin",(function(e){return $$WP.Utilities.UI.IsMidLogin?e.fn(this):e.inverse(this)})),Handlebars.registerHelper("ifPreloginOrGuest",(function(e){return $$WP.Utilities.UI.IsMidLogin||$$WP.Utilities.UI.IsWorkflowRestricted||!$$WP.Utilities.UI.IsLoggedIn?e.fn(this):e.inverse(this)})),Handlebars.registerHelper("ifFromMyChartCentral",(function(e){return $$WP.Utilities.queryString("mccLocation")||sessionStorage.getItem("mccLocation")?e.fn(this):e.inverse(this)})),Handlebars.registerHelper("getContinueToOrgText",(function(e){var r=$$WP.Settings.OrganizationName;return string=r?$$WP.Strings.getForTemplate("ContinueToOrg"):$$WP.Strings.getForTemplate("ContinueToHome"),string})),Handlebars.registerHelper("useOrgLogoForH2GData",(function(e){return $$WP.Settings.UseOrgLogoForH2GData?e.fn(this):e.inverse(this)})),Handlebars.registerHelper("setAltTextNode",(function(e,r,n){n.data.root.AltTextNode=e&&!r?"ExternalIncompleteIconAlt":"ExternalIconAlt"})))}function registerI18NHelpers(){$$WP.I18N&&(Handlebars.registerHelper("verticalDateWithYear",(function(e,r,n){var t=new Date(n,r-1,e),i=$$WP.I18N.getOrderedDatePieces(!1);return new Handlebars.SafeString($$WP.I18N.Handlebars.verticalDate(t,i))})),Handlebars.registerHelper("verticalDateWithDayName",(function(e,r,n){var t=new Date(n,r-1,e),i=$$WP.I18N.getOrderedDatePieces(!0);return"d"===i[0]?i.unshift("dow"):i.push("dow"),new Handlebars.SafeString($$WP.I18N.Handlebars.verticalDate(t,i))})),Handlebars.registerHelper("verticalDateWithoutDay",(function(e,r,n){var t=new Date(n,r-1,e),i=$$WP.I18N.getOrderedDatePieces(!1,!1,!0);return new Handlebars.SafeString($$WP.I18N.Handlebars.verticalDate(t,i))})))}function registerStringsHelpers(){$$WP.Strings&&(Handlebars.registerHelper("setStringNamespace",$$WP.Strings.setDefaultNamespace),Handlebars.registerHelper("clearStringNamespace",$$WP.Strings.clearDefaultNamespace),Handlebars.registerHelper("usingStringNamespace",(function(e,r){return $$WP.Strings.usingNamespace(e,$.proxy((function(){return r.fn(this)}),this))})),Handlebars.registerHelper("getStringResource",$$WP.Strings.getForTemplate),Handlebars.registerHelper("getDisplayStringForAttribute",(function(e,r){return attributeValue='"'+Handlebars.Utils.escapeExpression($$WP.Strings.get(r))+'"',new Handlebars.SafeString(e+"="+attributeValue)})),Handlebars.registerHelper("getDisplayString",(function(e,r,n){if("string"==typeof n){if(n)return $$WP.Strings.getForTemplate(e+"_"+n,r)}else if("number"==typeof n)return $$WP.Strings.getForTemplate(e+"_"+n.toString(),r);return $$WP.Strings.getForTemplate(e,r)})),Handlebars.registerHelper("getDisplayStringWithMnemonics",(function(e,r){var n,t,i;for(t in n="function"==typeof r?r():r)$$WP.Strings.addMnemonic("@MYCHART@"+t.toUpperCase()+"@",n[t].Value,n[t].IsLink,n[t].Namespace,n[t].EncodingType);for(t in i=$$WP.Strings.getForTemplate(e),n)$$WP.Strings.removeMnemonic("@MYCHART@"+t.toUpperCase()+"@",n[t].Namespace);return i})),Handlebars.registerHelper("addStringResourceMnemonic",$$WP.Strings.addMnemonic),Handlebars.registerHelper("removeStringResourceMnemonic",$$WP.Strings.removeMnemonic),Handlebars.registerHelper("addLinkMnemonic",(function(e,r,n,t,i){var a='<a data-id="redirect" href="'+(n=$$WP.Strings.getNamespace().replaceMnemonics(n))+'" data-redirect="'+n+'" data-organization="'+t;!0===i&&(a+='" target="_blank'),$$WP.Strings.addMnemonic(e,a+'">'+$$WP.Strings.get(r)+"</a>",!1,null,$$WP.Strings.EncodingTypes.None)})),Handlebars.registerHelper("setOrganization",$$WP.Strings.setOrganization),Handlebars.registerHelper("clearOrganization",$$WP.Strings.clearOrganization),Handlebars.registerHelper("appendNewWindowNotification",(function(e,r){return $$WP.Strings.appendNewWindowNotification($$WP.Strings.get(e),r)})))}function registerInfoBubbleHelpers(){$$WP.UI.InfoBubble&&(Handlebars.registerHelper("infoBubble",(function(e,r,n,t,i){return Handlebars.helpers.addTemplate("UI.InfoBubble",new $$WP.UI.InfoBubble({BubbleTitle:e,BubbleText:r,DisableHtmlEncoding:"boolean"==typeof n&&!0===n,Image:"images/info.png",BubbleLabelledBy:t,BubbleLabel:i}))})),Handlebars.registerHelper("customInfoBubble",(function(e,r,n,t,i,a,s){return Handlebars.helpers.addTemplate("UI.InfoBubble",new $$WP.UI.InfoBubble({BubbleTitle:r,BubbleText:n,DisableHtmlEncoding:"boolean"==typeof t&&!0===t,Image:e,UseSvgImage:!!i,BubbleLabelledBy:a,BubbleLabel:s}))})),Handlebars.registerHelper("simpleInfoBubble",(function(e,r,n,t){return Handlebars.helpers.addTemplate("UI.InfoBubble",$$WP.UI.InfoBubble.SimpleInfoBubble(e,"boolean"==typeof r&&!0===r,n,t))})),Handlebars.registerHelper("textInfoBubble",(function(e,r,n,t){return Handlebars.helpers.addTemplate("UI.InfoBubble",new $$WP.UI.InfoBubble({AnchorText:e,BubbleTitle:r,BubbleText:n,DisableHtmlEncoding:"boolean"==typeof t&&!0===t}))})),Handlebars.registerHelper("simpleTextInfoBubble",(function(e,r,n){return Handlebars.helpers.addTemplate("UI.InfoBubble",$$WP.UI.InfoBubble.SimpleTextInfoBubble(e,r,"boolean"==typeof n&&!0===n))})))}function registerBannerHelpers(){Handlebars.registerHelper("coreBanner",(function(e){return Handlebars.helpers.addTemplate("Core.Banner",e)})),Handlebars.registerHelper("informationalBanner",(function(e,r,n,t){return Handlebars.helpers.addTemplate("Core.Banner",{BannerType:"informationalType",HeaderText:e,DetailText:r,IconOverride:"string"==typeof n?n:null,FontSize:t})})),Handlebars.registerHelper("successBanner",(function(e,r,n,t){return Handlebars.helpers.addTemplate("Core.Banner",{BannerType:"successType",HeaderText:e,DetailText:r,IconOverride:"string"==typeof n?n:null,FontSize:t})})),Handlebars.registerHelper("warningBanner",(function(e,r,n,t){return Handlebars.helpers.addTemplate("Core.Banner",{BannerType:"warningType",HeaderText:e,DetailText:r,IconOverride:"string"==typeof n?n:null,FontSize:t})})),Handlebars.registerHelper("criticalBanner",(function(e,r,n,t){return Handlebars.helpers.addTemplate("Core.Banner",{BannerType:"criticalType",HeaderText:e,DetailText:r,IconOverride:"string"==typeof n?n:null,FontSize:t})}))}$$WPUtil.guaranteeExistence($$WP,"Handlebars"),$$WPUtil.guaranteeExistence($$WP,"Templates"),$$WP.Handlebars._addHelpersHasBeenCalled=!1,$$WP.Handlebars.addHelpers=function addHelpers(){if(!$$WP.Handlebars._addHelpersHasBeenCalled){$$WP.Handlebars._addHelpersHasBeenCalled=!0,$$WP.Utilities&&($$WP.Handlebars.addComponent=function addComponent(e){var r="componentcontainer_"+$$WPUtil.generateGUID(),f=function(){var n=document.getElementById(r);$$WP.Utilities.addComponent._Counter[r]++,n?(delete $$WPUtil.Handlebars.addComponent._Counter[r],$afe.jq(n).safeAppend(e.$container)):$$WP.Utilities.addComponent._Counter[r]<10&&window.setTimeout(f,1)};return $$WP.Utilities.addComponent._Counter[r]=0,window.setTimeout(f,1),'<div id="'+r+'"></div>'},$$WP.Handlebars.addComponent._Counter={},Handlebars.registerHelper("addComponent",$$WP.Handlebars.addComponent),Handlebars.registerHelper("ifNotNullOrEmpty",(function(e,r){return $$WPUtil.IsNullOrEmpty(e)?r.inverse(this):r.fn(this)})),registerUIUtilitiesHelpers()),registerStringsHelpers();try{makeLink&&(Handlebars.registerHelper("makeLink",makeLink),Handlebars.registerHelper("makeStaticLink",makeStaticLink),Handlebars.registerHelper("makeStaticImageLink",makeStaticImageLink),Handlebars.registerHelper("showFile",(function(e){return makeLink("showfile.asp?key="+e)})))}catch(e){}try{isDataTile&&(Handlebars.registerHelper("ifDataTiles",(function(e){return isDataTile()?e.fn(this):e.inverse(this)})),Handlebars.registerHelper("ifNotDataTiles",(function(e){return isDataTile()?e.inverse(this):e.fn(this)})))}catch(e){}$$WP.CommunityUtilities&&Handlebars.registerHelper("canShowExternalLoadingIndicator",(function(e){return $$WP.CommunityUtilities.hasCommunityLinks()?e.fn(this):e.inverse(this)})),$$WP.FormValidation&&(Handlebars.registerHelper("validationSettingsAttribute",$$WP.FormValidation.Handlebars.validationSettingsAttribute),Handlebars.registerHelper("messageDisplay",$$WP.FormValidation.Handlebars.messageDisplay),Handlebars.registerHelper("messageDisplayForAttribute",$$WP.FormValidation.Handlebars.messageDisplayForAttribute),Handlebars.registerHelper("disableIfInvalidAttribute",$$WP.FormValidation.Handlebars.disableIfInvalidAttribute),Handlebars.registerHelper("validationGroupAttribute",$$WP.FormValidation.Handlebars.validationGroupAttribute),Handlebars.registerHelper("validationRequiredAttribute",$$WP.FormValidation.Handlebars.validationRequiredAttribute),Handlebars.registerHelper("showRequiredInstructions",$$WP.FormValidation.Handlebars.showRequiredInstructions)),$$WP.Currency&&Handlebars.registerHelper("numberAsCurrency",(function(e,r){var n;return n="function"==typeof e?e():e,$$WP.Currency.Helpers.numberToCurrency(n,r)})),registerI18NHelpers(),$$WP.UI&&($$WP.UI.Command&&Handlebars.registerHelper("command",(function(e,r,n,t,i){var a=new $$WP.UI.CommandOptions("string"==typeof t?JSON.parse(t):t);a.MiscContent=(a.MiscContent||"")+(i&&i.fn?new Handlebars.SafeString(i.fn(this)):"");var s=new $$WP.UI.Command({Priority:e,Tone:r,Caption:n,CmdOptions:a});return Handlebars.helpers.addTemplate("UI.Command",s)})),$$WP.UI.Dropdown&&Handlebars.registerHelper("dropdown",(function(e,r,n,t,i,a,s){var l=$$WP.UI.DropdownOption.convertRawDropdownOptions(i,a,s);return Handlebars.helpers.addTemplate("UI.Dropdown",new $$WP.UI.Dropdown({IdName:e,Label:r,PlaceholderText:n,ValidationSettings:t,Options:l}))})),registerInfoBubbleHelpers()),registerBannerHelpers(),Handlebars.registerHelper("ajaxSpinner",(function(e,r,n){if(78!=$$WP.ApplicationContext)return Handlebars.helpers.addTemplate("UI.AjaxSpinner",{inline:e,loadingMessage:r,role:n?"status":"alert"})})),Handlebars.registerHelper("referenceSvg",(function(e){if(null===e||""===e)return null;var r,n=document.createElement("use");return r=0===e.indexOf("~/")?makeLink(e.substring(2)):0===e.indexOf("http")?e:makeStaticImageLink(e),n.setAttribute("xlink:href",r),new Handlebars.SafeString(n.outerHTML)})),Handlebars.registerHelper("URLEncode",encodeURI),Handlebars.registerHelper("encodeURIComponent",encodeURIComponent),Handlebars.registerHelper("ifEquals",(function(e,r,n){return e!==r?n.inverse(this):n.fn(this)})),Handlebars.registerHelper("eq",(function(e,r){return e===r})),Handlebars.registerHelper("ifNotEquals",(function(e,r,n){return e===r?n.inverse(this):n.fn(this)})),Handlebars.registerHelper("not",(function(e){return!e})),Handlebars.registerHelper("addTemplate",(function(e,r,n,t){var i,a=e.split("."),s=a.length,l=$$WP.Templates;for(i=0;i<s;i++)l=l[a[i]];if("function"!=typeof l)throw"addTemplate could not find $$WP.Templates."+e;n&&t&&(r.AdditionalData=n);return new Handlebars.SafeString(l(r,{allowProtoPropertiesByDefault:!0,allowProtoMethodsByDefault:!0}))})),Handlebars.registerHelper("ifLt",(function(e,r,n){return e<r?n.fn(this):n.inverse(this)})),Handlebars.registerHelper("lt",(function(e,r){return e<r})),Handlebars.registerHelper("lteq",(function(e,r){return e<=r})),Handlebars.registerHelper("ifGt",(function(e,r,n){return e>r?n.fn(this):n.inverse(this)})),Handlebars.registerHelper("gt",(function(e,r){return e>r})),Handlebars.registerHelper("gteq",(function(e,r){return e>=r})),Handlebars.registerHelper("isLastInArray",(function(e,r,n){return e+1===r?n.fn(this):n.inverse(this)})),Handlebars.registerHelper("isArrayEmpty",(function(e){return!e||0==e.length})),Handlebars.registerHelper("length",(function(e){return e.length})),Handlebars.registerHelper("GetProxySubjectAriaLabel",(function(e,r,n,t){var i="",a="ProxySwitch.ProxySwitch.ProxySelector";return i=i+e+" ",r+1===n&&(i=t?i+$$WP.Strings.getForTemplate("lastPersonInListWithMoreOptions",a)+" ":i+$$WP.Strings.getForTemplate("lastPersonInList",a)+" "),i})),Handlebars.registerHelper("isMiddleInArray",(function(e,r,n){return e+1===Math.ceil(r/2)?n.fn(this):n.inverse(this)})),Handlebars.registerHelper("each-reverse",(function(e,r){var n,t="";if(e&&e.length>0)for(n=e.length-1;n>=0;n--)r.data.index=n,t+=r.fn(e[n]);else t=r.inverse(this);return t})),Handlebars.registerHelper("raw",(function(e){return new Handlebars.SafeString(e)})),Handlebars.registerHelper("ifEven",(function(e,r){return e%2==0?r.fn(this):r.inverse(this)})),Handlebars.registerHelper("ifAny",(function(){var e,r=arguments.length-1;for(e=0;e<r;e++)if(arguments[e])return arguments[r].fn(this);return arguments[r].inverse(this)})),Handlebars.registerHelper("ifAll",(function(){var e,r=arguments.length-1;for(e=0;e<r;e++)if(!arguments[e])return arguments[r].inverse(this);return arguments[r].fn(this)})),Handlebars.registerHelper("ifNone",(function(){var e,r=arguments.length-1;for(e=0;e<r;e++)if(arguments[e])return arguments[r].inverse(this);return arguments[r].fn(this)})),Handlebars.registerHelper("ifNand",(function(){var e,r=arguments.length-1;for(e=0;e<r;e++)if(!arguments[e])return arguments[r].fn(this);return arguments[r].inverse(this)})),Handlebars.registerHelper("addition",(function(e,r){return(e=Number(e)||0)+(r=Number(r)||0)})),Handlebars.registerHelper("concat",(function(e,r){return(e=String(e)||"")+(r=String(r)||"")})),Handlebars.registerHelper("join",(function(e,r){return e&&e.join?e.join(r):null})),Handlebars.registerHelper("ifIn",(function(e,r,n){return"[object Array]"===Object.prototype.toString.call(r)&&r.indexOf(e)>-1?n.fn(this):n.inverse(this)})),Handlebars.registerHelper("breakLines",(function(e){return e=(e=Handlebars.Utils.escapeExpression(e)).replace(/(\r\n|\n|\r)/gm,"<br>"),new Handlebars.SafeString(e)})),Handlebars.registerHelper("repeat",(function(e,r){var n,t="",i={};for(n=1;n<=e;n++)i.index=n,t+=r.fn(this,{data:i});return t})),Handlebars.registerHelper("ifArray",(function(e,r){return Array.isArray(e)?r.fn(this):r.inverse(this)})),Handlebars.registerHelper("arrayHasOneElem",(function(e,r){return Array.isArray(e)&&1===e.length?r.fn(this):r.inverse(this)})),Handlebars.registerHelper("highlightString",(function(e,r){var n,t,i,a=document.createElement("span");if(r.length>0)for(a.appendChild(document.createTextNode(e.substring(0,r[0].start))),i=0;i<r.length;i++)(n=document.createElement("mark")).innerText=e.substring(r[i].start,r[i].end),a.appendChild(n),t=i<r.length-1?r[i+1].start:e.length,a.appendChild(document.createTextNode(e.substring(r[i].end,t)));return new Handlebars.SafeString(a.innerHTML)})),Handlebars.registerHelper("assistiveTextWrapper",(function(e,r){return Handlebars.helpers.addTemplate("UI.AssistiveTextWrapper",{AssistiveLabel:e,VisibleContent:r.fn(this)})})),Handlebars.registerHelper("replaceSpaces",(function(e){return e.split(" ").join("-")})),Handlebars.registerHelper("ifEqualsAny",(function(){var e,r=arguments.length-1;for(e=1;e<r;e++)if(arguments[e]===arguments[0])return arguments[r].fn(this);return arguments[r].inverse(this)}))}};;
!function(){var e=Handlebars.template,n=$$WP.Templates=$$WP.Templates||{};(n=n.Core=n.Core||{}).infoprelogin=e({compiler:[8,">= 4.3.0"],main:function(e,n,a,t,l){var i,c=null!=n?n:e.nullContext||{},o=e.hooks.helperMissing,r=e.escapeExpression,s=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return r((s(a,"setStringNamespace")||n&&s(n,"setStringNamespace")||o).call(c,"Shared",{name:"setStringNamespace",hash:{},data:l,loc:{start:{line:1,column:51},end:{line:1,column:82}}}))+'<div class="badges sm-alignCenter"><a href='+r((s(a,"getStringResource")||n&&s(n,"getStringResource")||o).call(c,"iOSDownloadLink",{name:"getStringResource",hash:{},data:l,loc:{start:{line:1,column:125},end:{line:1,column:164}}}))+'><img src="'+r((s(a,"makeStaticImageLink")||n&&s(n,"makeStaticImageLink")||o).call(c,"badge_apple.png",{name:"makeStaticImageLink",hash:{},data:l,loc:{start:{line:1,column:175},end:{line:1,column:216}}}))+'" alt="'+r((s(a,"getStringResource")||n&&s(n,"getStringResource")||o).call(c,"iOSText",{name:"getStringResource",hash:{},data:l,loc:{start:{line:1,column:223},end:{line:1,column:254}}}))+'" class="badge" /></a><a href='+r((s(a,"getStringResource")||n&&s(n,"getStringResource")||o).call(c,"AndroidDownloadLink",{name:"getStringResource",hash:{},data:l,loc:{start:{line:1,column:284},end:{line:1,column:327}}}))+'><img src="'+r((s(a,"makeStaticImageLink")||n&&s(n,"makeStaticImageLink")||o).call(c,"badge_android.png",{name:"makeStaticImageLink",hash:{},data:l,loc:{start:{line:1,column:338},end:{line:1,column:381}}}))+'" alt="'+r((s(a,"getStringResource")||n&&s(n,"getStringResource")||o).call(c,"AndroidText",{name:"getStringResource",hash:{},data:l,loc:{start:{line:1,column:388},end:{line:1,column:423}}}))+'" class="badge" /></a></div><div class="fullLinks links alignEnd sm-alignCenter"><a href='+r((s(a,"getStringResource")||n&&s(n,"getStringResource")||o).call(c,"FHIRAPIEducationURL",{name:"getStringResource",hash:{},data:l,loc:{start:{line:1,column:512},end:{line:1,column:555}}}))+">"+r((s(a,"getStringResource")||n&&s(n,"getStringResource")||o).call(c,"FHIRAPIEducationText",{name:"getStringResource",hash:{},data:l,loc:{start:{line:1,column:556},end:{line:1,column:600}}}))+"</a><a href="+r((s(a,"makeLink")||n&&s(n,"makeLink")||o).call(c,"Authentication/Login/StandardFile?option=Faq",{name:"makeLink",hash:{},data:l,loc:{start:{line:1,column:612},end:{line:1,column:671}}}))+">"+r((s(a,"getStringResource")||n&&s(n,"getStringResource")||o).call(c,"FAQs",{name:"getStringResource",hash:{},data:l,loc:{start:{line:1,column:672},end:{line:1,column:700}}}))+"</a><a href="+r((s(a,"makeLink")||n&&s(n,"makeLink")||o).call(c,"Authentication/Login/StandardFile?option=HlthPrivacy",{name:"makeLink",hash:{},data:l,loc:{start:{line:1,column:712},end:{line:1,column:779}}}))+">"+r((s(a,"getStringResource")||n&&s(n,"getStringResource")||o).call(c,"PrivacyPolicy",{name:"getStringResource",hash:{},data:l,loc:{start:{line:1,column:780},end:{line:1,column:817}}}))+"</a><a href="+r((s(a,"makeLink")||n&&s(n,"makeLink")||o).call(c,"Authentication/Login/StandardFile?option=TermsAndConditions",{name:"makeLink",hash:{},data:l,loc:{start:{line:1,column:829},end:{line:1,column:903}}}))+">"+r((s(a,"getStringResource")||n&&s(n,"getStringResource")||o).call(c,"TermsAndConditions",{name:"getStringResource",hash:{},data:l,loc:{start:{line:1,column:904},end:{line:1,column:946}}}))+'</a><a href="#" class="cssSwitcher" data-csstitle="Default">'+r((s(a,"getStringResource")||n&&s(n,"getStringResource")||o).call(c,"DefaultTheme","Global",{name:"getStringResource",hash:{},data:l,loc:{start:{line:1,column:1006},end:{line:1,column:1051}}}))+'</a><a href="#" class="cssSwitcher" data-csstitle="High Contrast">'+r((s(a,"getStringResource")||n&&s(n,"getStringResource")||o).call(c,"HighContrastTheme","Global",{name:"getStringResource",hash:{},data:l,loc:{start:{line:1,column:1117},end:{line:1,column:1167}}}))+'</a><div id="Customizable">'+r((s(a,"getStringResource")||n&&s(n,"getStringResource")||o).call(c,"CustomHTML",{name:"getStringResource",hash:{},data:l,loc:{start:{line:1,column:1194},end:{line:1,column:1228}}}))+"</div></div>"+r("function"==typeof(i=null!=(i=s(a,"clearStringNamespace")||(null!=n?s(n,"clearStringNamespace"):n))?i:o)?i.call(c,{name:"clearStringNamespace",hash:{},data:l,loc:{start:{line:1,column:1240},end:{line:1,column:1264}}}):i)},useData:!0})}();;
!function(){var e=Handlebars.template,t=$$WP.Templates=$$WP.Templates||{};(t=t.Core=t.Core||{}).infoabbreviatedprelogin=e({compiler:[8,">= 4.3.0"],main:function(e,t,a,l,n){var r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,o=e.escapeExpression,i=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="links abbreviatedLinks"><a href="#" class="cssSwitcher" data-csstitle="Default">'+o((i(a,"getStringResource")||t&&i(t,"getStringResource")||s).call(r,"DefaultTheme","Global",{name:"getStringResource",hash:{},data:n,loc:{start:{line:1,column:142},end:{line:1,column:187}}}))+'</a><a href="#" class="cssSwitcher" data-csstitle="High Contrast">'+o((i(a,"getStringResource")||t&&i(t,"getStringResource")||s).call(r,"HighContrastTheme","Global",{name:"getStringResource",hash:{},data:n,loc:{start:{line:1,column:253},end:{line:1,column:303}}}))+"</a></div>"},useData:!0})}();;
/*0*/