function padNumber(n,t){var i=getDecimalSeparator();return n>0?(n=n.toString().replace(/\./,i),Array(t-n.length+1).join("0")+n):(n=(-n).toString().replace(/\./,i),"-"+Array(t-n.length).join("0")+n)}function padNumber2(n,t){return n==0?Array(t+1).join("0"):padNumber(n,t)}function escapeRegExp(n){return n.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function getDecimalSeparator(){var n;return n=$$WP.Strings.get("NumericDecimalFormatterOverride","I18N.Numbers"),n&&n.length>0?n:$$WP.I18N.DecimalSeparator}function getGroupSeparator(){var n;return n=$$WP.Strings.get("NumericGroupSeparatorOverride","I18N.Numbers"),n&&n.length>0?n:$$WP.I18N.GroupSeparator}function getRangeSeparator(){var n;return n=$$WP.Strings.get("NumericRangeSeparatorOverride","I18N.Numbers"),n&&n.length>0?n:$$WP.I18N.RangeSeparator}function IsNumericMinMax(n,t,i,r,u){var o=!0,a="Core.CommonUtils",h=!1,f,s,e,v,y,c,l,p,w;return n==null?h:((u===null||u==="")&&(u=h),e=n.value,v=getGroupSeparator(),y=getDecimalSeparator(),c=getErrorForScreenReader(),l=c+$$WP.Strings.get("NumericError",a),p=new RegExp(escapeRegExp(v),"g"),w=new RegExp(escapeRegExp(y),"g"),e=="")?o:e.indexOf(v)!=-1&&e.indexOf(y)<0?(WP.Validators.DisplayErrors(l),h):(e=e.replace(p,""),f=e.replace(w,"."),f=Number(f),isNaN(f)?(WP.Validators.DisplayErrors(l),s=o):r||f==Math.round(f)?t!=""&&f Number(i)&&(WP.Validators.DisplayErrors(c+$$WP.Strings.get("MaximumNumericError",a).replace("@MYCHART@MAXVALUE@",i)),s=o):(WP.Validators.DisplayErrors(l),s=o),s&&!u)?h:(n.value=e,o)}function IsNumericOrRangeMinMax(n,t,i,r,u){var l="@MYCHART@MAXVALUE@",a="@MYCHART@MINVALUE@",y="@MYCHART@RANGESEPARATOR@",s=!0,d="Core.CommonUtils",p=!1,f,e,h,o,w,g,nt,c,b,k,rt,v,tt,it;if(n===null||((u===null||u==="")&&(u=p),$(".Popup").length>0))return p;if(o=n.value,g=getDecimalSeparator(),nt=getGroupSeparator(),c=getRangeSeparator().replace(/\s+/g,""),b=getErrorForScreenReader(),k=new RegExp(escapeRegExp(g),"g"),rt=new RegExp(escapeRegExp(nt),"g"),v=b+$$WP.Strings.get("NumericOrRangeError",d),tt=b+$$WP.Strings.get("MinimumNumericError",d),it=b+$$WP.Strings.get("MaximumNumericError",d),o==="")return s;if(o.indexOf(nt)!==-1&&o.indexOf(g)<0)return WP.Validators.DisplayErrors(v.replace(y,c).replace(a,t).replace(l,i)),u||(n.select(),n.focus()),p;if(o=o.replace(rt,""),w=o.indexOf(c),w!==-1){if(f=o.substring(0,w).replace(k,"."),f==="")return WP.Validators.DisplayErrors(v.replace(y,c).replace(a,t).replace(l,i)),u||(n.select(),n.focus()),p;e=o.substring(w+1).replace(k,".")}else f=o.replace(k,".");return(f=Number(f),isNaN(f)?(WP.Validators.DisplayErrors(v.replace(y,c).replace(a,t).replace(l,i)),h=s):(r||(f=Math.round(f)),t!==""&&f Number(i)&&(WP.Validators.DisplayErrors(it.replace(l,i)),h=s)),e&&!h&&(e=Number(e),isNaN(e)?(WP.Validators.DisplayErrors(v.replace(y,c).replace(a,t).replace(l,i)),h=s):(r||(e=Math.round(e)),t!==""&&e Number(i)?(WP.Validators.DisplayErrors(it.replace(l,i)),h=s):(f>e||f===e)&&(WP.Validators.DisplayErrors(v.replace(y,c).replace(a,t).replace(l,i)),h=s))),h)?(u||(n.select(),n.focus()),p):(r||(o=w!==-1?f+c+e:f),n.value=o,s)}function autoLogout(n){if($$WPUtil.setActivity.msSinceLastActivity() =checkActivity.sessionTimeout){document.write("");WP.Comm.logOut(null,u);return}window.clearTimeout(checkActivity.tRefreshID);checkActivity.tRefreshID=window.setTimeout(checkActivity,Math.floor((checkActivity.refreshTimeout-f)/1e3));window.clearTimeout(checkActivity.tSessionID);o=Math.floor((checkActivity.sessionTimeout-f)/1e3);checkActivity.tSessionID=window.setTimeout(autoLogout,o);f>checkActivity.refreshTimeout&&$$WPComp.TimeoutWarningComponent.hasVisibleInstance!==u&&$$WPUtil.quickPopup(new $$WPComp.TimeoutWarningComponent({SecondsLeft:o}),{PierceShieldOfJustice:u})}function logOut(n,t){var i=!0,r=null;return $afe.select("body").hasClass("passthru")?(self.location.href=makeLink("closeExternalJumpPopup.asp"),!1):(n!==""&&n!==r&&typeof n!="undefined"?self.location.href=n:typeof checkActivity.logoutPage=="string"&&checkActivity.logoutPage!==""?WP.Comm.logOut(r,i,checkActivity.logoutPage,!1):getFederatedLogoutMode()||isShareEverywhere()?WP.Comm.logOut(r,i):t===i?WP.Comm.logOut(r,i):WP.Comm.logOut(function(n){window.location=makeLink(n)},!1),i)}function CheckLength(n,t,i,r){var u,f;return(u=t,r!=""&&r!=null&&r=="1"&&(t=t-1),f=n.value.replace(/\r\n/g,""),f.length>t)?(i==""&&(i=getErrorForScreenReader()+$$WP.Strings.get("MaximumTextError","Core.CommonUtils").replace("@MYCHART@MAXMIMUMLENGTH@",u)),$$WP.Utilities.quickMessageBox(i,"",[],null,[],""),n.focus(),!1):!0}function insideBodyLoad(n,t,i,r){return WP&&WP.Comm&&WP.Comm.startKeepAlive&&WP.Comm.startKeepAlive(),$$WPUtil.setActivity(),WP.Events.addListener(document.body,"click",$$WPUtil.setActivity),WP.Events.addListener(document.body,"keypress",$$WPUtil.setActivity),WP.Events.addListener(document.body,"click",$$WPUtil.NotifyMobileOfActivity),WP.Events.addListener(document.body,"input",$$WPUtil.NotifyMobileOfActivity),checkActivity(n,t,i,r),window.focus(),!0}function assignInlineEventHandlers(){var t=!1,n="click";$afe.select('a#printerfriendlylink:not([href="//www.cnctarh.com/mychart/MyChart/bundles/#"])').on(n,function(){return window.open(this.href.replace(/\#(.*)/,""),"WWW","width=1024,height=720,resizable,status,scrollbars").focus(),t});$afe.select('a#printerfriendlylink[href="//www.cnctarh.com/mychart/MyChart/bundles/#"]').on(n,function(){return $$WPUtil.PrintAndAuditNET(),t});$afe.select("a#printWindowPrintLink").on(n,function(){window.print()});$afe.select("a#printWindowCloseLink").on(n,function(){window.close()});$afe.select("a#sortOrgLink").on(n,function(){return sortOrgList(this),t});$afe.select("a#SelfSignupButton").on(n,function(){return $$WP.Utilities.TryRedirect(this.href),t});$afe.select("a#cookieHelpLink").on(n,function(){return window.open("Help/Cookies"),t});$afe.select("a#completedTaskPrinkLink").on(n,function(){return window.open(HTMLUnencode(this.href),"WWW","width=800,height=600,resizable,status,scrollbars").focus(),t});$afe.select("form#retryform").on("submit",function(){disableButton1(this.refresh)})}function jumpToAnchor(n){var t=window.location.hash.substr(1);if(/^[a-zA-Z][\w-]*$/.test(t)){if(t===""){history.scrollRestoration="auto";return}if(history.scrollRestoration="manual",!doJumpToAnchorAction(t)){n||(n=3e3);var r=function(n,i){doJumpToAnchorAction(t)&&i.disconnect()},i=new MutationObserver(r);i.observe(document.body,{attributes:!0,childList:!0,subtree:!0});setTimeout(function(){i.disconnect()},n)}}}function doJumpToAnchorAction(n){return(n="//www.cnctarh.com/mychart/MyChart/bundles/#"+n,$afe.select(n).filter(":visible").length>0)?(location.replace(n),$afe.select(n).focus(),!0):!1}function getPostLoginStringsManagerContent(n){$afe.select("#vbPrintHeader").empty().safeAppend($afe.renderTemplate($$WP.Templates.Core.vbPrintheader));$afe.select("footer#footer #baselinks").empty().safeAppend($afe.renderTemplate($$WP.Templates.Core.vbBaselinks,n));$afe.select(".cssSwitcher").click(function(n){var t;(n&&n.currentTarget.nodeName==="A"&&(t=n.currentTarget.getAttribute("data-csstitle")),t.length!==0)&&($$WP.Utilities.UI.ActivateStylesheet(t),$$WP.Utilities.UI.FocusCssSwitcher(t))})}function getObjectValue(n){var i,r,t;if(n){if(i=0,i=n.length,t="",i>0)for(r=0;r 0)for0i 0)return t===!0&&alert(r[i]),!1}catch(u){}return!0}function confirmEmbedDelete(n,t,i){var r;return r=i===!0?$$WPUtil.quickMessageBoxByEnum.typeEnum.RestoreGoback:$$WPUtil.quickMessageBoxByEnum.typeEnum.RemoveGoback,$$WPUtil.confirmFormSubmission(n,t,r,function(n,t){if(t===$$WP.Components.TOOLBARIDENTIFIER+"continue"){var i,r;i=document.getElementById("confirmStep");i&&(i=i.parentNode,i&&(r=document.createElement("input"),r.type="hidden",r.className="hidden",r.name="clickSub",r.value="1",i.appendChild(r)))}})}function setCheckboxesByPrefix(n){for(var t=1,i=document.getElementById(n+t);i!==null;)$afe.jq(i).safeAttr("checked","true"),i.checked=!0,t=t+1,i=document.getElementById(n+t)}function unsetCheckboxesByPrefix(n){for(var t=1,i=document.getElementById(n+t);i!==null;)i.removeAttribute("checked"),i.checked=!1,t=t+1,i=document.getElementById(n+t)}function statusOfCheckboxesByPrefix(n){var t,i,r,u;for(r=!0,u=!1,t=1,i=document.getElementById(n+t);i!==null;)i.checked?u=!0:r=!1,t=t+1,i=document.getElementById(n+t);return r?3:u?2:1}function checkAll(n,t){if(typeof document=="object"&&n!=null&&t!=null&&document.getElementById&&typeof document.getElementById(n)=="object")for(var r=document.getElementById(n),i,u=0;i=r[u++];)i.type=="checkbox"&&(i.checked=!0)}function selectRadioButton(n){var t=!0,i;if(document.all||document.getElementById){for(i=0;i .content").css("max-height")==="none"&&!n.hasClass("hidden")?(n.css(o,"auto"),g=n.outerHeight(),n.css(o,""),c="80vh",i=g+r):(n.hasClass("large")||n.hasClass("medium"))&&!n.hasClass("hidden")?(n.css(o,"auto"),i=n.outerHeight()+r,n.css(o,""),c=i):c=n.outerHeight()+70+r;if(e=$afe.select("#lightbox:not(.hidden):not(:empty)"),e.length>0&&(e.hasClass("captchaPopup")?(nt=580,i=Math.max(e.outerHeight(),nt)+r):i=e.outerHeight()+r),b=$afe.select("._ShieldOfJustice"),b.length>0&&(a=b.siblings("[role=dialog]"),a.length>0)){for(u=0,v=0;v 0&&(i=u+r)}setContainerMinHeight(t,c);w!=i&&(setContainerHeight(t,i),$afe.select(h).prop(k)!==!0?(scrollTopOfTheIframe(0,!0),$afe.select(h).prop(k,!0)):$$WPUtil.setScrollTop(d))}}function repositionReactDataTilesPopup(n,t){if(isDataTile()&&n!=null){var i;(t.classList.contains("size-10")||t.classList.contains("size-20"))&&(i=$$WPUtil.getDataTileScrollTop(n)+35,overhang=i+t.clientHeight-n.scrollHeight,overhang>0&&(i=i-overhang),t.style.top=i+"px",t.style.opacity=1)}}function getFrameWidth(){return $$WP.WidgetMode?$$WPUtil.GetIframeWidth().then(function(n){return n}):window.frameElement?window.frameElement.offsetWidth:null}function setContainerHeight(n,t){$$WP.WidgetMode?($$WPUtil.SetCrossDomainIframeHeight(t),$$WP.ContainerHeight=t):n.style.height=t}function setContainerMinHeight(n,t){$$WP.WidgetMode?$$WPUtil.SetCrossDomainIframeMinHeight(t):n.style.minHeight=t}function getContainerPrevHeight(n){return $$WP.WidgetMode?$$WP.ContainerHeight:n.style.height}function DoRedirect(n,t){return t===!0?logOut(null,!0):$$WPUtil.SafeToRedirect(CreateLogOutPopup,n),!1}function CreateLogOutPopup(n){if(n){var t,i;t=new $$WPComp.LoggingOutComponent({positioningFunction:$$WPContain.Positions.InsideNearTop});i=new $$WPContain.Popup({positioningFunction:$$WPContain.Positions.InsideNearTop,Components:t,IsClosable:!1,TitleText:null,Size:$$WPContain.Popup.SizeEnum.SMALL,Class:"logout"});i.show(!0)}}function DoRedirectOE(){return this.document.write("



"+$$WP.Strings.get("LogoutRedirect","Core.CommonUtils")+"<\/center>"),window.location="./oebye.asp",!1}function captureBackEnterKey(){var i="textarea",t,n;if($$WPUtil.setActivity(),window.event&&(window.event.keyCode==8||window.event.keyCode==13)){if(t=window.event.srcElement,n=t.type,!t.readOnly){if((n=="text"||n==i||n=="password")&&window.event.keyCode==8)return;if((n==i||n=="submit")&&window.event.keyCode==13)return}return window.event.cancelBubble=!0,window.event.returnValue=!1,!1}}function showItem(n){var t;return(document.getElementById?t=document.getElementById(n):document.all&&(t=document.all.item(n)),t!=null)?(t.style.display="block",!0):!1}function hideItem(n){var t;return(document.getElementById?t=document.getElementById(n):document.all&&(t=document.all.item(n)),t!=null)?(t.style.display="none",!0):!1}function showElement(n,t){if(n!==null||(t!==null&&t.length>0&&(n=document.getElementById(t)),n!==null)){removeClassNames(n,"hidden");return}}function hideElement(n,t){if(n!==null||(t!==null&&t.length>0&&(n=document.getElementById(t)),n!==null)){removeClassNames(n,"hidden");n.className=n.className+" hidden";return}}function activateField(n,t){if(n!==null||(typeof t=="string"&&t.length>0&&(n=document.getElementById(t)),n!==null)){removeClassNames(n,"disabled,activefield");n.className=n.className+" activefield";return}}function activateFieldsByIds(n){var t,i;if(n!==null&&(i=n.split(",")),i!==null)for(t=0;t 0&&(n=document.getElementById(t)),n!==null)){removeClassNames(n,"disabled,activefield");n.className=n.className+" disabled";return}}function deactivateFieldsByIds(n){var t,i;if(n!==null&&(i=n.split(",")),i!==null)for(t=0;t 0?" ":"")+r[i]);return n}}function removeClassNames(n,t){var u,i,f,r;if(n&&t&&!(n.className.length<1)&&!(t.length<1)){for(u=t.split(","),r=n.className,i=0;i 0&&(t=" "+t),n.className=n.className+t)}}function getElementPosition(n,t){if(n.offsetParent){for(var i=n,u=0,f=0,r;i;){if(r=i,i.tagName=="HTML")break;if(t&&i==t)break;if(u+=i.offsetLeft,f+=i.offsetTop,i.scrollLeft&&(u-=i.scrollLeft),i.id.toLowerCase()=="wrap"){u-=i.offsetLeft;f-=i.offsetTop;break}i=WP.DOM.Browser.isFirefox&&WP.DOM.Read.getStyle(i,"position")==="fixed"?null:i.offsetParent;!!i&&i.classList.contains("fixedCalendarParent")&&(i=document.getElementById("classicPopupRoot"))}return navigator.userAgent.indexOf("Mac")!=-1&&typeof document.body.leftMargin!="undefined"&&(u+=document.body.leftMargin,f+=document.body.topMargin),u+="px",f+="px",r.tagName=="HTML"&&(r=r.getElementsByTagName("body")[0],r.offsetLeft&&(u-=r.offsetLeft),r.offsetTop&&(f-=r.offsetTop)),{x:u,y:f,topElement:r}}}function changePasswdCheck(n){var i="Core.CommonUtils",t=!1,u,r,f,e;return n==null?t:(e=getErrorForScreenReader(),u=n.oldpasswd.value,u=="")?(alert($$WP.Strings.get("CurrentPasswordError",i)),n.oldpasswd.focus(),t):(r=n.newpasswd.value,containsSpace(r))?(alert($$WP.Strings.get("NewPasswordError",i)),n.newpasswd.focus(),t):(f=n.verifypasswd.value,r!=f)?(alert($$WP.Strings.get("ReTypeNewPasswordError",i)),n.verifypasswd.focus(),t):!0}function changeQuesAnsCheck(n){var t="Core.CommonUtils",i,r,u;return n==null?!1:(u=getErrorForScreenReader(),i=n.oldpasswd.value,i=="")?(alert($$WP.Strings.get("CurrentPasswordError",t)),n.oldpasswd.focus(),!1):(r=n.pwdans.value,r=="")?(alert($$WP.Strings.get("AnswerError",t)),n.pwdans.focus(),!1):!0}function CheckFilenameExtensions(){var n=!0,u=!1,h=document.getElementById("ALLOWED_EXTENSIONS"),f,c,o,t,e,l,y=0,i=u,r=n,s,a,v;if(!h)return n;for(f=h.value,c=new RegExp("^([a-zA-Z]:(\\\\|/)|file://|/|\\\\\\\\)[^\\\\/:].*\\..+");!i;){if(o=document.getElementById("upload"+ ++y),!o){i=n;break}if(t=o.value,t.length!=0){if(navigator.userAgent.indexOf("MSIE")!=-1&&!c.test(t)){r=u;i=n;break}if(e=t.split("."),e.length<2){r=u;i=n;break}if(l=e[e.length-1].toUpperCase(),f.indexOf("^"+l+"^")==-1){r=u;i=n;break}}}return r||(s=document.getElementById("progbar"),s&&(s.className+=" hidden"),a=f.substr(1,f.length-2).replace(/\^/g,", "),v=$$WP.Strings.get("BadFilenameExtension","Core.CommonUtils").replace("@MYCHART@FILENAME@",t).replace("@MYCHART@ALLOWEDEXTENSIONS@",a),alert(v)),r}function checkEnter(n,t){if(n!=null){var i=n.keyCode;if(i=="13")return t!=null&&t.click(),!1}return!0}function isBasicInlineValidationError(n,t,i,r,u,f,e,o,s,h,c){var a=!0,v=null,l=!1,y=l,p=l,w=l,b=l,k=l;return((i==""||i==v)&&(i=getErrorForScreenReader()+$$WP.Strings.get("RequiredFieldError","Global")),(o==""||o==v)&&(o=i),n==v)?l:((c==""||c==v)&&(c=-1),n.maxLength>1e4&&(r=l),r&&c<0&&(c=n.id=="dob"?n.maxLength-2:n.maxLength),n.value==""||n.value==v?(y=a,p=a):r&&n.value.length 0?(y=a,w=a):h&&isNaN(n.value)&&(y=a,b=a),y?u||(p?s?isHighlighted(n)&&changeErrorField(t,i,l,[n]):(turnOnHighlight(n),changeErrorField(t,i,l,[n])):(w||b||k)&&(turnOnHighlight(n),changeErrorField(t,o,l,[n]))):(e||turnOffHighlight(n),f||changeErrorField(t,"",a,[n])),y)}function changeErrorField(n,t,i,r){var h="aria-invalid",o="aria-describedby",f,c,e,u,s;if(n.length>0&&(f=document.getElementById(n))){if(i&&(f.innerHTML===" "||f.innerHTML===""))return;if(dangerou$.setHtml(f,t),r&&r.length>=1)for(c=t==="",e=0;e -1}function validateEmptinessOfTwoRelatedFields(n,t){n.value.length<1?t.value.length<1?isHighlighted(t)&&turnOnHighlight(n):turnOnHighlight(n):turnOffHighlight(n)}function checkKeyPress(n,t,i){var u=!0,r=!1;switch(t){case ALPHANUMERIC:(n.keyCode>=48&&n.keyCode<=57||n.keyCode>=65&&n.keyCode<=90||n.keyCode>=96&&n.keyCode<=105||n.which>=48&&n.which<=57||n.which>=65&&n.which<=90||n.which>=96&&n.which<=105)&&(r=u);WP.DOM.Browser.isAndroid&&(r=u);break;case EQUAL_TO_CODE:(n.keyCode==i||n.which==i)&&(r=u);break;case GREATER_THAN_CODE:(n.keyCode>i||n.which>i)&&(r=u);break;case LESS_THAN_CODE:(n.keyCode 0&&checkKeyPress(n,EQUAL_TO_CODE,"8")&&t.value==""&&(u=document.getElementById(i+f),u!=null&&(u.focus(),isTabAllowed=!0,u.value=u.value))}function autotab(n,t,i){checkKeyPress(n,ALPHANUMERIC)?t.getAttribute&&t.value.length==t.getAttribute("maxlength")&&(WP.DOM.Browser.isIPod||WP.DOM.Browser.isIPhone||WP.DOM.Browser.isIPad?(i.focus(),isTabAllowed=!1):(i.focus(),i.select(),isTabAllowed=!1)):checkKeyPress(n,EQUAL_TO_CODE,"16")&&(isTabAllowed=!0)}function isDiscreteFieldsError(n,t,i,r,u,f,e,o,s,h){var v=!0,w=null,l=!1,a,c,k,b=l,nt=l,y=l,d=l,tt=l,p,g=0,it=l;for(p=u,y=o==w,(u==""||u==w)&&(u=$$WP.Strings.get("RequiredFieldError","Global")),f==""&&(f=u),a=1;a<=t;a++)c=document.getElementById(n+a),c!=w&&(c.value!=""?(s&&(s=""),p=f,a=t):isHighlighted(c)&&s&&(s=""));if(y||(isHighlighted(o)&&(tt=v),b=isBasicInlineValidationError(o,r,p,i,e,1,"",p,s,h)),b)d=v;else for(t==w&&(t=1),a=1;a<=t;a++)c=t==1?document.getElementById(n):document.getElementById(n+a),c.maxLength>1e4&&(i=l),i&&(g=c.id=="dob"||c.id=="ssn"?c.maxLength-2:c.maxLength),c!=w&&(c.value==""?(b=v,!e&&y&&(turnOnHighlight(c),changeErrorField(r,p,l,[c]))):i&&c.value.length 0?(b=v,nt=v,!e&&y&&(turnOnHighlight(c),changeErrorField(r,p,l,[c]))):(y&&turnOffHighlight(c),(o==c||y)&&(k=$afe.jq(c),k.removeAttr("aria-invalid"),k.removeAttr("aria-describedby"))),isHighlighted(c)&&(d=v));return b?(d||changeErrorField(r,""),v):(changeErrorField(r,""),l)}function checkIfTabAllowed(n,t){checkKeyPress(n,EQUAL_TO_CODE,"16")?isTabAllowed=!0:checkKeyPress(n,EQUAL_TO_CODE,"9")&&t.value.length<1&&!isTabAllowed&&(cancelEvent(n),isTabAllowed=!0)}function cancelEvent(n){n.cancelBubble=!0;n.returnValue=!1;n.stopPropagation&&(n.stopPropagation(),n.preventDefault())}function easyDOBEntry(n,t,i,r){var u;n!=null&&(t?i?isValidTwoDigitYear(n.value)&&(r?isTabAllowed=!0:n.value=getFourDigitYearFromTwoDigitYear(n.value,BIRTH_YEAR_MIN_YEARS_BACK).toString()):n.value.length==1&&n.value>0&&(r?isTabAllowed=!0:n.value="0"+n.value):(u=n.length,u?(isValidOneDigitDatePart(n[0].value)&&(n[0].value="0"+n[0].value),isValidOneDigitDatePart(n[1].value)&&(n[1].value="0"+n[1].value),isValidTwoDigitYear(n[2].value)&&(n[2].value=getFourDigitYearFromTwoDigitYear(n[2].value,BIRTH_YEAR_MIN_YEARS_BACK).toString())):n.value<100&&n.value>=0&&(n.value=getFourDigitYearFromTwoDigitYear(n.value,BIRTH_YEAR_MIN_YEARS_BACK).toString())))}function removeCharFromField(n,t,i,r){var u;(r==null||r=="")&&(r=REMOVE_IF_EQUAL_TO_REMOVE_CHAR);u=charKeyPressed(n);r==REMOVE_IF_EQUAL_TO_REMOVE_CHAR?!checkKeyPress(n,GREATER_THAN_CODE,"0")||checkKeyPress(n,EQUAL_TO_CODE,"9")||checkKeyPress(n,EQUAL_TO_CODE,"16")||u==i&&cancelEvent(n):r==REMOVE_NONNUMERIC&&(checkKeyPress(n,EQUAL_TO_CODE,"8")||checkKeyPress(n,EQUAL_TO_CODE,"9")||checkKeyPress(n,EQUAL_TO_CODE,"27")||checkKeyPress(n,EQUAL_TO_CODE,"46")||checkKeyPress(n,EQUAL_TO_CODE,"37")||checkKeyPress(n,EQUAL_TO_CODE,"39")||!isNaN(u)||cancelEvent(n))}function charKeyPressed(n){var t;return n||(n=window.event),n.keyCode?t=n.keyCode:n.which&&(t=n.which),t>0?String.fromCharCode(t):""}function ShowPharmacyHours(n,t,i){var r=document.getElementById(t).selectedIndex,u;r!=null&&(u=n+r,r==0?dangerou$.setHtml(document.getElementById(i).innerHTML," "):dangerou$.setHtml(document.getElementById(i),document.getElementById(u).value))}function clearRadioSelection(n){for(var i=document.getElementsByName(n),t=0;t 0&&!it&&y&&(y.checked=s,y.value==1?(showPickupFields([p]),hidePickupFields([a,l])):showPickupFields([a,l]))}UpdateAddressOptions();UpdatePaymentMethods("pharmacymethods","pharmacy","deliverymethod","paymentmethod","paymentmethodlabel",u)}}function getRadioValue(n){var t,i;if(t=document.getElementsByName(n),t.length==0)return"";for(i=0;i =0&&(d=l[e].substring(s+1));break}if(d.length>0){for(rt=v,b=d.split("|"),h=document.getElementById(ut),h&&(removeClassNames(h,c),h.disabled=v),o=document.getElementsByName(r),e=0;e 0&&!rt&&w&&(w.checked=y,w.value==2&&showAndHideButtons(g,nt))}}}function HidePharmacyText(n,t,i,r){var f,u;n||(n=document.getElementById(t));n&&(f=document.getElementById(i),u=document.getElementById(r),f&&u&&(n.options[n.selectedIndex].value==f.value?(u.disabled=!1,removeClassNames(u,"hidden")):(u.disabled=!0,applyClass(u,"hidden"))))}function showAndHideButtons(n,t){var i,r;i=document.getElementById(n);i&&(i.disabled=!1,removeClassNames(i,"hidden"));r=document.getElementById(t);r&&(r.disabled=!0,applyClass(r,"hidden"))}function showPickupFields(n){var t,i;if(n)for(t=0;t 0&&(u=t.substring(r+1),t=t.substring(0,r)),i=n.replace(/@mychart@url@/gi,t),i=i.replace(/@mychart@wrappedurl@/gi,encodeURIComponent(t)),r>0&&(i=i+"//www.cnctarh.com/mychart/MyChart/bundles/#"+u),i)}function makeStaticLink(n){var t,i,r;return(n=n.replace(/\\/g,"/"),n.indexOf(".")===0&&(n=n.substring(1)),n.indexOf(".")===0&&(n=n.substring(1)),n.indexOf("/")===0&&(n=n.substring(1)),$$WP.ApplicationContext===78)?Epic.PatientEngagement.Welcome.Core.Utilities.getUrl("Content/"+n):(t=getPrefix(!0),i=$$WP.AffiliateFilePath,r=new RegExp("svg$","i"),n=!$$WPUtil.IsNullOrEmpty(i)&&r.test(n)?$$WP.AffiliateFilePath+"/"+n:$$WP.I18N.getMyChartLocale()+"/"+n,applyPrefix(t,n))}function createImage(n,t,i,r){var u=createElement("img",n,t);return u.src=makeStaticLink("/images/"+(i||"")),u.alt=r||"",u.title=r||"",u}function getOffset(n,t){var i=n[t];for(n=n.offsetParent;n;)i+=n[t],n=n.offsetParent;return i}function createAlert(n,t,i){if(n.length===0){clearElement(i);return}var r,f,u;return r=createElement("span","alert"),t===!0&&(f=createImage("yield","","warning.png",$$WP.Strings.get("YieldTitle","Core.CommonUtils")),r.appendChild(f)),u=createElement("span","errHolder"),dangerou$.setHtml(u,n),r.appendChild(u),i&&(i.appendChild(r),i.className=""),r}function getChild(n,t){for(var r="#comment",i=n.firstChild;t>0;){for(t--;i&&(i.nodeName===r||i.nodeName==="#text");)i=i.nextSibling;if(!i)return null;i=i.nextSibling}while(i&&(i.nodeName===r||i.nodeName==="#text"))i=i.nextSibling;return i}function getTrackedWindowString(n){return(n===""||n===null||typeof n=="undefined")&&(n="openWindows"),getCookie(n,!0)}function openWindow(n,t,i,r,u,f,e){var s="undefined",h,o,c;return(typeof i!==s&&i!==""||u||(i="status=0,menubar=0,scrollbars=1,resizable=1,toolbar=0"),e)?openWindowInternal(n,t,i):((r===null||typeof r===s)&&(r="openWindows"),o=getCookie(r,!0),c=o===""?0:o.split("^").length,(typeof t===s||t===null||t==="")&&(t="mycWin"+makeLink("")+c),h=openWindowInternal(n,t,i),o=o+(o.length>0?"^":"")+t,setCookie(r,o,!0),h)}function openWindowInternal(n,t,i){var r;return r=$$WP._windowOpenReal(n,t,i),r&&(r.opener=null),r}function openOAuthWindow(n){var f="GetAccessTokenProxy",r="onmessage",e=$$WPUtil.getDomain(window.location),o=n.callback||function(){window.location.reload()},u=openWindow(n.sUrl,n.sName,n.sFeature),i,t;u&&u.focus();i=function(n){if(n.origin==e&&n.data=="GotAccessToken"){try{u.close()}catch(t){}window.removeEventListener?window.removeEventListener("message",i,!1):window.detachEvent?window.detachEvent(r,i):document.detachEvent&&document.detachEvent(r,i);o()}};window.attachEvent?window.attachEvent(r,i):document.attachEvent?document.attachEvent(r,i):window.addEventListener&&window.addEventListener("message",i);t=document.getElementById(f);!t&&(navigator.userAgent.indexOf("MSIE")!==-1||navigator.appVersion.indexOf("Trident/")>0)&&(t=document.createElement("iframe"),t.src=n.sProxy,t.width=0,t.height=0,t.frameBorder=0,t.style.visibility="hidden",t.id=f,document.body.appendChild(t))}function postMessageForOAuthPopup(n,t){if(navigator.userAgent.indexOf("MSIE")!==-1||navigator.appVersion.indexOf("Trident/")>0){var i=document.getElementById("GetAccessTokenProxy");try{i.contentWindow.postMessage(n,t)}catch(r){}}else window.postMessage(n,t)}function closeAllWindows(n){var r,u,f,t,e,i;if((n===""||n===null||typeof n=="undefined")&&(n="openWindows"),r=getCookie(n,!0),r){for(u=r.split("^"),e=u.length,t=0;t -1&&(e=unescape(f.substr(f.indexOf("=")+1)).replace(o,""),s=!0);return e}function deleteCookie(n,t){n&&setCookie(n,"",t,new Date(1))}function makeLink(n){if(n.match(/^(epic)?https?:\/\//i))return n;if($$WP.ApplicationContext===78)return Epic.PatientEngagement.Welcome.Core.Utilities.getUrl(n);var t;return t=getPrefix(!1),applyPrefix(t,n)}function makeErrorPageLink(){return $$WP.ApplicationContext===78?makeLink("Core/Home/Error"):makeLink("500.aspx")}function makeStaticImageLink(n){return $$WP.ApplicationContext===78?Epic.PatientEngagement.Welcome.Core.Utilities.getUrl("Content/images/"+n):makeStaticLink("images/"+n)}function addQueryStringToUrl(n,t,i){if(n&&t){var u=n.indexOf("?")!==-1,r="";r=u?"&":"?";i||(i="");n=n+r+t+"="+i}return n}function getCSRFTokenAsQS(n){var t=$afe.select("body");if(t.hasClass("isPrelogin")){n();return}$$WP=$$WP||{};$$WP._CSRFCallBackQueue=$$WP._CSRFCallBackQueue||[];$$WP._CSRFTokenQs?n($$WP._CSRFTokenQs):$$WP._CSRFReqSent?$$WP._CSRFCallBackQueue.push(n):($$WP._CSRFReqSent=!0,$.get(makeLink("Home/CSRFToken"),function(t){var u,f,r,i;if(t&&(u=dangerou$.parseHtml(t),f=u.safeAttr("name")||"__RequestVerificationToken",r=u.val(),$$WP._CSRFTokenName=f,$$WP._CSRFToken=r,$$WP._CSRFTokenQs=f+"="+encodeURIComponent(r),$$WP._CSRFTokenQsToken=encodeURIComponent(r)),n($$WP._CSRFTokenQs),$$WP._CSRFCallBackQueue.length>0){for(i=0;i<$$WP._CSRFCallBackQueue.length;i++)typeof $$WP._CSRFCallBackQueue[i]=="function"&&setTimeout($$WP._CSRFCallBackQueue[i],0,$$WP._CSRFTokenQs);$$WP._CSRFCallBackQueue=[]}}))}function setFederatedLogoutMode(n){$$WP.FederatedLogoutMode=n}function getFederatedLogoutMode(){return $$WP.FederatedLogoutMode==!0}function disableEmptyFormInputs(n){var r,i,t;for(r=document.getElementById(n),i=r.getElementsByTagName("input"),t=0;t "+$$WP.Strings.get("ErrorLabelText","Global")+"<\/span>"}function vdtAdmissionLoad(){var n,r,t,u,f=!1,i=document.getElementById("appRoot");if(n=document.getElementById("loadingSpinner"),n&&(n.style.display="none"),n=document.getElementById("vdtFrame"),n.parentNode.style.height="auto",n.contentDocument||(f=!0),f||n.contentDocument.getElementById("vdtError")==null||(u=!0),u){n=document.getElementById("vdtErrorDiv");n.style.display="inherit";return}n.style.display="inherit";try{$afe.jq(window).on("popstate",handleBrowserBack);isDataTile()?(r=getGenericHeight,t=r(n),n.style.height!=t&&(n.style.height=t)):setAppropriateHeight();i=document.getElementById("appRoot");i&&setAppropriateHeightOnDOMMutations(i)}catch(e){return}}function getGenericHeight(n){return n.style.height="100px",Math.max(document.body.scrollHeight||200,document.body.offsetHeight||200)+16+"px"}function setClientTimeZone(){$$WP.I18N.setClientTimeZone()}function addMobileTitle(n){typeof Android!="undefined"&&Android.setWebViewTitle?Android.setWebViewTitle(n):window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.setWebViewTitle&&window.webkit.messageHandlers.setWebViewTitle.postMessage(n)}function isArbitraryDownloadSupported(){return typeof Android!="undefined"?Android.webViewDownloadEnabled&&Android.webViewDownloadEnabled():window.webkit&&window.webkit.messageHandlers?window.webkit.messageHandlers.webViewDownloadEnabled&&window.webkit.messageHandlers.webViewDownloadEnabled():!0}function getFourDigitYearFromTwoDigitYear(n,t){var r=parseInt(n),f=(new Date).getFullYear(),i,u;return(isNaN(t)&&(t=BIRTH_YEAR_MIN_YEARS_BACK),i=f-t,isNaN(r))?i:(u=i%100,u =0}function isValidOneDigitDatePart(n){return n<10&&n>0&&n.length<2}function getAppVirtualPath(){return makeLink("")}function getDeviceIdKey(){return"MYCHART-WEB-DEVICE-"+getAppVirtualPath()}function reconcileWebDevice(n){var i="undefined",t,r;(typeof $$WP===i||typeof $$WP.IsMidloginStep===i)&&(isShareEverywhere()||(n=!!n,t=getDeviceIdKey(),r={deviceId:localStorage.getItem(t),skipSessionCheck:n},$.ajax({url:makeLink("Authentication/RememberDevices/ReconcileWebDevice"),type:"POST",data:r,dataType:"json",success:function(n){(n.forceUpdate||localStorage.getItem(t)===null)&&n.deviceId&&(deviceId=n.deviceId,localStorage.setItem(t,deviceId))}})))}var WP=WP||{},pre_checkActivity,oldElement,currentElement,HTMLEncodeDecodeDiv;typeof WP.FdiUtils=="undefined"&&(WP.FdiUtils={});WP.FdiUtils.handleFDILink=function(n){var i,t,r;i=$afe.jq(n.target);n.preventDefault();t=i.closest("[data-fdi-context]");t.length>0&&(r=t.safeAttr("data-fdi-context"),WP.FdiUtils.ExecuteFDILink(r))};WP.FdiUtils.ExecuteFDILink=function(n){var t,r,u,f,i,e,o;i="";n!==""&&(t=JSON.parse(n),r=t.fdi,u=t.csn,f=t.ord,e=t.DocumentID,o=t.eptId,delete t.fdi,delete t.csn,delete t.ord,delete t.DocumentID,delete t.eptId,i=WP.FdiUtils.buildFDILinkParamString(r,u,f,t,e,o));getCSRFTokenAsQS(function(n){$.ajax({url:makeLink("Extensibility/Redirection/FdiData"+i),type:"POST",dataType:"json",data:n,success:function(n){WP.FdiUtils.fdiJSONSuccess(n,i)}})})};WP.FdiUtils.fdiJSONSuccess=function(n,t){var i,r,u,f;i=n.url;r=n.launchmode;f=n.IsFdiPost;r===4&&(i=makeLink(i));f&&(i=makeLink("Extensibility/Redirection/FdiRedirection"+t));switch(r){case 1:case 4:window.location.href=i;break;case 0:case 2:case 3:default:u=openWindow(i,"","",null,!0,!1,!0);u!=null&&u!==undefined||WP.DOM.Browser.isIE||WP.DOM.Browser.isLegacyEdge||WP.FdiUtils.PopupBlocked(i)}};WP.FdiUtils.PopupBlocked=function(n){var t;$$WP.Strings.setDefaultNamespace("Global");t=new $$WPComp.MessageComponent({TitleText:$$WP.Strings.get("BlockedPopupTitle"),Message:$$WP.Strings.get("BlockedPopupMessageWithLink"),ToolbarButtons:[new $$WPComp.ComplexObjects.Button($$WP.Strings.get("BlockedPopupLaunchBtnTitle"),null,"completeworkflow","LaunchLink"),new $$WPComp.ComplexObjects.Button($$WP.Strings.get("BlockedPopupCancelBtnTitle"),null,"cancelworkflow","")],IsCloseable:!0});t.addEventListener("click",$.proxy(this.LaunchClickHandler,this,n));$$WPUtil.quickPopup(t)};WP.FdiUtils.LaunchClickHandler=function(n,t){t&&t.dataId&&t.dataId==="toolbarLaunchLink"&&openWindow(n,"","",null,!0,!1,!0)};WP.FdiUtils.buildFDILinkParamString=function(n,t,i,r,u,f){var e;if(e="",n)e=$$WPUtil.addUrlParameter(e,"fdi",encodeURIComponent(n));else return"";return t&&(e=$$WPUtil.addUrlParameter(e,"csn",encodeURIComponent(t))),i&&(e=$$WPUtil.addUrlParameter(e,"ord",encodeURIComponent(i))),$.isEmptyObject(r)||(e=$$WPUtil.addUrlParameter(e,"extra",encodeURIComponent(JSON.stringify(r)))),u&&(e=$$WPUtil.addUrlParameter(e,"DocumentID",encodeURIComponent(u))),f&&(e=$$WPUtil.addUrlParameter(e,"eptID",encodeURIComponent(f))),e};$$WP.PageStartup=$$WP.PageStartup||{},function(){var r="function",i=!1,t=!0,n=null;if($$WP._ajaxReal){$$WP.Debug.logError("$.ajax has already been copied.Did this file get included twice?");return}var f=function(){return $$WP&&$$WP._CSRFTokenName&&$$WP._CSRFToken?{tokenName:$$WP._CSRFTokenName,tokenValue:$$WP._CSRFToken}:n},e=function(){var t=u("#__CSRFContainer");return t.tokenName!=n&&t.tokenValue!=n&&($$WP._CSRFTokenName=t.tokenName,$$WP._CSRFToken=t.tokenValue),t},o=function(){return f()||e()},s=function(){return $$WP&&$$WP._WidgetTokenName&&$$WP._WidgetToken?{tokenName:$$WP._WidgetTokenName,tokenValue:$$WP._WidgetToken}:n},h=function(){var t=u("#__WidgetTokenContainer");return t.tokenName!=n&&t.tokenValue!=n&&($$WP._WidgetTokenName=t.tokenName,$$WP._WidgetToken=t.tokenValue),t},c=function(){return s()||h()},u=function(n){var r={},i,t;return i=$afe.select(n),i&&i.length>0&&(t=i.find("input").first(),t&&t.length>0&&(r={tokenName:t.safeAttr("name"),tokenValue:t.val()})),r},l=function(n){var f,e,u;n.success&&(n.hasOwnSuccessHandler=t,f=n.context?n.success.bind(n.context):n.success.bind(n));n.error&&(n.hasOwnErrorHandler=t,e=n.context?n.error.bind(n.context):n.error.bind(n));u=i;n.success=function(n,i,e){try{u||$$WP&&$$WP.Performance&&$$WP.Performance.Tracker&&typeof $$WP.Performance.Tracker._logHttpRequest===r&&($$WP.Performance.Tracker._logHttpRequestFromAjax(e),u=t)}finally{f&&f(n,i,e)}};n.error=function(n,i,f){try{u||$$WP&&$$WP.Performance&&$$WP.Performance.Tracker&&typeof $$WP.Performance.Tracker._logHttpRequest===r&&($$WP.Performance.Tracker._logHttpRequestFromAjax(n),u=t)}finally{e&&e(n,i,f)}}};$.ajaxPrefilter(function(n,t,r){n.crossDomain&&(n.contents.script=i);r.originalOptions=t});$$WP._ajaxReal=$.ajax||jQuery.ajax;$.ajax=function(n,t){var i;return typeof n=="object"?(t=n,n=t.url):t=t||{},t.type=t.type||"GET",t.type.toUpperCase()!=="GET"&&(t.headers=t.headers||{},i=o(),t.headers[i.tokenName]=i.tokenValue),$$WP.WidgetMode&&(t.headers=t.headers||{},t.headers.Authorization=c().tokenValue,t.headers["api-key"]=$$WP.WidgetApiKey,$$WP.WidgetLanguage&&(t.headers.lang=$$WP.WidgetLanguage)),t.captchaResponse&&(t.headers["X-Captcha-Response"]=t.captchaResponse),n=$$WP.Utilities.addUrlParameter(n,"noCache",Math.random()),t.url=n,l(t),$$WP._ajaxReal(n,t)};$$WP.IsPendingAJAXRequests=i;$$WP.PendingAJAXCallBack=n;$afe.jq(document).ajaxStart(function(){$$WP.IsPendingAJAXRequests=t});$afe.jq(document).ajaxStop(function(){$$WP.IsPendingAJAXRequests=i;$$WP.PendingAJAXCallBack!==n&&typeof $$WP.PendingAJAXCallBack===r&&($$WP.PendingAJAXCallBack(),$$WP.PendingAJAXCallBack=n)})}(),function(n){var r="jqHidden",t=!0,i;if($$WP._showReal&&$$WP._hideReal){$$WP.Debug.logError("$.show and $.hide have already been copied.Did this file get included twice?");return}$$WP._showReal=n.fn.show;$$WP._hideReal=n.fn.hide;i=function(n){var f="function",r,i,u,e=function(){r()},o=function(){};if(n.length!==0){for(i=0;i sshow调用隐藏元素仍然不显示-隐藏idden类非jqhidden类调用元素You should set this class rather than an inline display style.",t)),arguments.length>0?(i(arguments),u=$$WP._showReal.apply(n,arguments)):(u=$$WP._showReal.apply(n),n.hasClass("cardlist")&&n.trigger("cardLoad")),u};n.fn.hide=function(){var n=this,u;return n.length>0&&(n.hasClass("hidden")?$$WP.Debug.logError("$.hide() called on a hidden element.函数调用无效性 :n.hasclass-r-$$WP.Debug.log&#24517;&#23041;&#98;&#101;&#116;&#119;&#97;&#121;&#56;&#56;&#23448;&#32593;You should set this class rather than an inline display style.",t)),arguments.length>0?(i(arguments),u=$$WP._hideReal.apply(n,arguments)):u=$$WP._hideReal.apply(n),u}}(jQuery);$afe.onDocumentReady(function(){var t=null,r=!1,u="click",i="body",n=!0,f,e;$$WP.WidgetMode&&(setInterval($$WPUtil.RefreshHeader,9e5),setupIframeResizer());$$WP.IsEpicAjaxErrorHandlerDisabled!==n&&$afe.jq(document).ajaxError($$WPUtil.defaultAjaxErrorHandler);f=function(n){var o="margin-right",f="margin-left",r,t,i,e,u,s;return(i=n.safeAttr("name"),!i)?($$WP.Debug.logError("Input elements require a name in order to associate them with a message display"),$afe.jq()):(r=$afe.jq(n.get(0).form),r.length===0)?($$WP.Debug.logError("Input elements need to be contained within a form in order to associate them with a message display"),$afe.jq()):(t=r.find('[data-message-for="'+i+'"]'),t.length===0&&(t=$$WP.SimpleTemplates.MessageDisplay(i),n.safeAfter(t)),t.get(0).hasAttribute("data-script-generated")&&n.css("display")!=="none"&&(e=n.position().left-t.position().left,typeof n.css(f)!="undefined"&&(e+=parseInt(n.css(f),10)),t.css(f,e),t.css(o,n.css(o)),u=n.width(),(n.get(0).type==="checkbox"||n.get(0).type==="radio")&&(s=r.find('label[for="'+i+'"]'),u+=s.width()),u!==0&&t.width(u)),t)};e=function(n,t,i){var r="alert",f="invisible",u;t?(i?(n.addClass(r),n.empty(),n.text(t),u=$$WP.SimpleTemplates.WarningIcon(),n.safePrepend(u),u.safeAfter($$WP.SimpleTemplates.ErrorLabel())):(n.removeClass(r),n.empty(),n.text(t)),n.removeClass(f)):(n.addClass(f),n.removeClass(r),dangerou$.setHtml(n," "))},function(){if(WP.FdiUtils){$afe.select(i).on(u,"a[data-fdi-option]",WP.FdiUtils.handleFDILink);$afe.select(i).on(u,'a[href="#Extensibility_ReportLink"]',WP.FdiUtils.handleFDILink)}}(),function(){var a="keyup change",e,o,s,h,v,f,c,l,y,p;v=/<([A-Za-z\/])/gm;y=/&#/gm;p=[9,16,17,18,20,27,33,34,35,36,37,38,39,40,44,112,113,114,115,116,117,118,119,120,121,122,123,144,145];h=function(n){var t;return t=n.replace(v,"< $1"),t.replace(y,"& #")};e=function(t){var i=r;return p.forEach(function(r){if(t===r){i=n;return}}),i};o=function(t){var i="Global",o="UnsupportedCharsPopupMessage",u,f,r;t&&t.which&&e(t.which)||(u=this.value,f=h(u),r=$$WPUtil.RemoveUnsupportedChars(f),u.length!==r.length&&(this.value=r,r!==f&&($$WP.Utilities.UI.IsMobile||WP.DOM.Browser.isMobile?alert($$WP.Strings.get(o,i)):$$WPUtil.quickPopup(new $$WPComp.MessageComponent({TitleText:$$WP.Strings.get("UnsupportedCharsPopupTitle",i),ToolbarButtons:[{Text:$$WP.Strings.get("UnsupportedCharsPopupConfirmButton",i)}],Message:$$WP.Strings.get(o,i),IsClosable:n}),{Size:$$WP.Containers.Popup.SizeEnum.Small,positioningFunction:$$WPContain.Positions.InsideCentered}))))};s=function(n){var t,i;n&&n.which&&e(n.which)||(t=this.value,i=h(t),t!==i&&(this.value=i))};f=$afe.select(i);c='input:not([data-jq-ignore="true"]):not([data-permissive="true"]):not([type]):not([data-validation-settings]), input:not([data-jq-ignore="true"]):not([data-permissive="true"])[type="text"]:not([data-validation-settings]), textarea:not([data-jq-ignore="true"]):not([data-permissive="true"]):not([data-validation-settings])';l='input:not([data-jq-ignore="true"]):not([data-permissive="true"]):not([type])[data-validation-settings], input:not([data-jq-ignore="true"]):not([data-permissive="true"])[type="text"][data-validation-settings], textarea:not([data-jq-ignore="true"]):not([data-permissive="true"])[data-validation-settings]';f.on(a,c,o);f.on(a,l,s);f.on("paste",c,function(){setTimeout($.proxy(o,this),300)});f.on("paste",l,function(){setTimeout($.proxy(s,this),300)});f.on(u,"a",function(n){var f="target",i,r,e,o,u;if(i=$afe.jq(n.currentTarget).closest("a"),r=i.safeAttr("data-redirect")||i.safeAttr("href"),u=i.safeAttr(f),u||!i.safeAttr("data-jq-ignore")){if(i.hasClass("disabled")||r==="//www.cnctarh.com/mychart/MyChart/bundles/#"){n.preventDefault();return}i.get(0).hasAttribute("onclick")||typeof r!="string"||r.length===0||r[0]==="//www.cnctarh.com/mychart/MyChart/bundles/#"||i.get(0).hasAttribute(f)&&u!=="_blank"&&u!=="_self"||(e=i.safeAttr(f)==="_blank"||n.ctrlKey,o=i.safeAttr("data-organization"),$$WPUtil.TryRedirect(r,t,o,e),n.preventDefault())}});if(window.location!==window.parent.location)f.on("focus","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'])",function(){var r="failedStorageRequest",t="LoginWidget",u=document.location.pathname.toLowerCase().indexOf("authentication/login/loginwidget")!==-1,i=n;try{i=window.top.location.hostname.toLowerCase()!==window.location.hostname.toLowerCase()}catch(e){i=n}u&&i&&typeof document.requestStorageAccess=="function"&&WP.DOM.Browser.isFirefox&&$$WPUtil.canWriteCookies()&&document.requestStorageAccess().then(function(){getCookie(t,n)!="1"&&(setCookie(t,"1",n),document.getElementById("loginForm")||window.location.reload())},function(){getCookie(t,n)!="1"&&(setCookie(t,"0",n),f.trigger(r))});$$WPUtil.canWriteCookies()||$$WPUtil.canWriteCookiesAsync().then(function(n){n?f.trigger("successfulStorageRequest"):f.trigger(r)})})}(),function(){var r=function(){$afe.select(i).on(u,"[data-driving-directions]",f)},f=function(i){var r=$afe.jq(i.currentTarget).safeAttr("data-driving-directions");openWindow(makeLink("Education/DrivingDirections?destination="+encodeURIComponent(r)),t,"",t,n);i.preventDefault()};r()}(),function(){$afe.select(i).on("input keyup keypress change scroll click dblclick select wheel cut paste touchstart touchend touchmove touchcancel",$$WP.Utilities.SetActivity)}(),function(){var n;$$WP._windowOpenReal=$.proxy(window.open,window);n=function(n,i,u,f){return openWindow(n,i,u,t,r,f)};window.open=n}(),function(){var n=function(){var o,e,u,i,s,h,n=arguments[0]||{},f=1,l=arguments.length,c=r;for(typeof n=="boolean"&&(c=n,n=arguments[f]||{},f++),typeof n=="object"||jQuery.isFunction(n)||(n={}),f===l&&(n=this,f--);f 0&&($$WP.Strings.setOrganization(n.CommunityResponse.Organization,s),u=[new $$WPComp.ComplexObjects.Button($$WP.Strings.getForTemplate("Continue",s),y,ut,rt),new $$WPComp.ComplexObjects.Button($$WP.Strings.getForTemplate(b,s),y,"previousstep",b)],$$WP.Utilities.UI.IsMobile?(h._Components[0].setMessage($$WP.Strings.get("redirectMessageForMobile",s)),n.CommunityResponse.RedirectURL=makeLink(n.CommunityResponse.RedirectURL+"&launchInBrowser=1")):h._Components[0].$content.html($$WP.Strings.get("redirectMessage",s)),h._Components[0].CallbackArgs=[n],h._Components[0].setToolbar(u),h.setFocus(),h.$container.trigger("resize"),$$WP.Strings.clearOrganization(s)):(a.loadIframe(n),$$WP.CommunityUtilities.logDeepLinkAudit("3",t.OrganizationId,n.EptId));else{var i=l,f=w,e=w,o=l;n&&n.CommunityResponse&&!$$WPUtil.IsNullOrEmpty(n.ErrorCode)&&(i=n.ErrorCode,i==="AlreadySignedUp"?(e=v,o=$$WP.Strings.get("externalLinkAlreadySignedUpTitle",s)):f=v);st(i,f,e,o)}},ct=function(n){var i,u,f;n&&(response=this.CallbackArgs[0],typeof response=="string"&&(response=JSON.parse(response)),typeof response===nt&&(r===$$WP.CommunityUtilities.openDeepLinkType.InNewTab?i=l:r===$$WP.CommunityUtilities.openDeepLinkType.InNewWindow&&(i="scrollbars=1,resizable=1"),u=response.CommunityResponse.IsSSOPost?l:response.CommunityResponse.RedirectURL,response.CommunityResponse.IsSSOPost?(f=openWindow(u,l,i,g,v),$$WPUtil.postForm(response.CommunityResponse.RedirectURL,response.CommunityResponse.SSOParams,f.name)):openWindow(u,l,i,g,v),$$WP.CommunityUtilities.logDeepLinkAudit("4",t.OrganizationId,response.EptId),response.RedirectToSignup&&$$WP.CommunityUtilities.markCommunityLinkDirty(t.OrganizationId)))},st=function(n,t,i,u){var f,e=y,o,c,p;a&&(f=a.callback,a.callback=y,r||a.dispose());h.hide();errorMessage=$$WPUtil.IsNullOrEmpty(n)?"externalLinkErrorMessage":"externalLink"+n+"ErrorMessage";o=!t;t?e=[new $$WPComp.ComplexObjects.Button($$WP.Strings.get("LogoutButtonText",s),y,b,l)]:i&&(e=[new $$WPComp.ComplexObjects.Button($$WP.Strings.get("RefreshButtonText",s),y,ut,l)]);c=new $$WPComp.MessageComponent({Message:$$WP.Strings.get(errorMessage,s),IsClosable:o,ToolbarButtons:e,TitleText:u,callback:function(){f&&a.runCallback(f);t?CreateLogOutPopup(v):i&&location.reload()}});p=new $$WPUtil.quickPopup(c);p.show()};r!==0?(c.access=tt?"3":"4",$$WP.Strings.setOrganization(t,s),p={TitleText:$$WP.Strings.getForTemplate("RedirectPopupTitle",s),Html:$$WP.Templates.UI.AjaxSpinner({inline:1}),callback:ct,IsClosable:v,ToolbarButtons:[],AffirmButtonIndex:rt},h=$$WPUtil.quickPopup(new $$WPComp.ConfirmComponent(p),{Size:$$WPContain.Popup.SizeEnum.SMALL,Class:"sm-autosizedpopup externalJumpRequestPopup Popup"}),$$WPUtil.ShowAjaxSpinner(h.$content.find(".ajaxspinner")),$$WP.Strings.clearOrganization(s)):(c.access="3",p={},u&&f&&(p.callback=u,p.context=f),a=new $$WPComp.ExternalJumpPopupComponent(p),a.initialize(),h=new $$WPContain.Popup({Components:[a],positioningFunction:$$WPContain.Positions.InsideNearTop,Size:$$WPContain.Popup.SizeEnum.LARGE,Class:"externaljumppopup",CommunicationsIndicator:w,BackButtonText:$$WP.Strings.get("ExitPopup",s),GetInvisibleLastFocusAnchor:function(n){return a.getLastFocusTrap(n)}}),h.show(v),h.setAppropriateScrollBar(),h.firstFocus.focus());o&&(c.access="5");c=$$WPUtil.postify(c);getCSRFTokenAsQS(function(){$.ajax({url:makeLink("ExternalJump/GetExternalJumpUrl"),type:"POST",data:c,dataType:"json",error:function(){st(y,w)},cache:w,success:ht})})};$$WP.CommunityUtilities.openDeepLinkType={InPopup:0,InNewTab:1,InNewWindow:2};$$WP.CommunityUtilities.logDeepLinkAudit=function(n,t,i){var r={};r.access=n;r.orgID=t;r.eptId=i;getCSRFTokenAsQS(function(){$.ajax({url:makeLink("ExternalJump/LogExternalJumpAudit"),type:"POST",data:r,cache:!1})})};$$WP.CommunityUtilities.markCommunityLinkDirty=function(n){var t={};t.organizationId=n;getCSRFTokenAsQS(function(){$.ajax({url:makeLink("Community/External/MarkCommunityLinkDirty"),type:"POST",data:t,cache:!1})})};$$WP.CommunityUtilities.refreshCommunityLink=function(n){var t={},i=function(){location.reload()};t.organizationId=n;getCSRFTokenAsQS(function(){$.ajax({url:makeLink("Community/External/RefreshCommunityLink"),type:"POST",data:t,cache:!1,error:i,success:i})})};$$WP.CommunityUtilities.getExternalJumpGUID=function(){return $$WPUtil.IsNullOrEmpty($$WP.CommunityUtilities._externalJumpGUID)&&($$WP.CommunityUtilities._externalJumpGUID=$$WPUtil.generateRandomGUID()),$$WP.CommunityUtilities._externalJumpGUID};$$WP.CommunityUtilities.getParentJumpGUID=function(){return $$WPUtil.IsNullOrEmpty($$WP.CommunityUtilities._parentJumpGUID)?"":$$WP.CommunityUtilities._parentJumpGUID};$$WP.CommunityUtilities.clearJumpGUIDs=function(){$$WP.CommunityUtilities._externalJumpGUID=null;$$WP.CommunityUtilities._parentJumpGUID=null};$$WP.CommunityUtilities.setJumpParameters=function(n,t){$$WPUtil.IsNullOrEmpty(n)||($$WP.CommunityUtilities._parentJumpGUID=n);$$WPUtil.IsNullOrEmpty(t)||($$WP.CommunityUtilities._parentDomain=t)};$$WP.CommunityUtilities.getParentDomain=function(){return $$WPUtil.IsNullOrEmpty($$WP.CommunityUtilities._parentDomain)?"":$$WP.CommunityUtilities._parentDomain};$$WP.CommunityUtilities.closeExternalParentPopup=function(){var n={},t;if(n.externalGUID=$$WP.CommunityUtilities.getParentJumpGUID(),n.message="closePopup",t=$$WP.CommunityUtilities.getParentDomain(),parent)try{parent.postMessage(JSON.stringify(n),t)}catch(i){console.error("Invalid Parent Domain")}WP.Comm.logOut();$$WP.CommunityUtilities.clearJumpGUIDs();$$WP.CommunityUtilities._parentDomain=null;self===top&&(self.location=makeLink("home/logout"))};$$WP.CommunityUtilities.externalJumpMessageListener=function(n){var i=$$WP.CommunityUtilities.getParentDomain(),t;n&&n.originalEvent&&n.originalEvent.origin===i&&n.originalEvent.data&&(t=JSON.parse(n.originalEvent.data),t.message==="logout"?(WP.Comm.logOut(),$$WP.CommunityUtilities.clearJumpGUIDs()):t.message==="valid"&&($$WP._isExternalJumpParentValid=!0))};$$WP.CommunityUtilities.checkIfCommunityJumpIsValid=function(){var t=$afe.select("body"),n,i;if(!t.hasClass("md_default")||t.hasClass("isPrelogin")||t.hasClass("PUpage")){if(self!==top){if(self.window.location.href.toLowerCase().indexOf("/err.asp?")>0)return;n={};n.message="isValidContext";n.externalGUID=$$WP.CommunityUtilities.getParentJumpGUID();i=$$WP.CommunityUtilities.getParentDomain();try{parent.postMessage(JSON.stringify(n),i)}catch(r){console.error("Parent Domain Validation failed")}setTimeout(function(){$$WP._isExternalJumpParentValid||top.location.replace(makeLink("home/logout"))},1e3)}}else self.location=makeLink("closeExternalJumpPopup.asp")};$$WP.CommunityUtilities.openDeepLinkUrl=function(n,t,i,r,u){var f=$$WPUtil.parseQueryString(n),e=f.mode;delete f.mode;$$WP.CommunityUtilities.openDeepLink(e,t,f,i,r,u)};$$WP.CommunityUtilities.ShowSignupFailedMessage=function(n){$$WP.CommunityUtilities.__showSignupFailureMessage(n,"SignupConnectionFailedMessage")};$$WP.CommunityUtilities.ShowSignUpNotAllowedMessage=function(n){$$WP.CommunityUtilities.__showSignupFailureMessage(n,"SignupNotAllowedMessage")};$$WP.CommunityUtilities.__showSignupFailureMessage=function(n,t){var i,r,u;$$WP.Strings.setDefaultNamespace("community.externallinking");$$WP.Strings.setOrganization(n);i=$$WP.Strings.get(t);r=$$WP.Strings.get("SignupErrorTitle");$$WP.Strings.clearOrganization();u=[new $$WPComp.ComplexObjects.Button($$WP.Strings.get("ok","cancelpopup"),null,"previousstep","cancel")];$$WPUtil.quickMessageBox(i,r,u,null,null,"SignupNotAllowed");$afe.select(".SignupNotAllowed.component.Popup").removeClass("textlessTitle");$$WP.Strings.clearDefaultNamespace()};$$WP.CommunityUtilities.hasCommunityLinks=function(){return $afe.select("body").hasClass("hasNoCommunityLinks")?!1:!0};$$WP.CommunityUtilities.communityChecksuccesscallback=function(n){var i,t;n!==null&&typeof n!="undefined"&&(t=n.isCommunityActive,i=t?"hasCommunityLinks":"hasNoCommunityLinks",$.ajax({url:makeLink("session.asp?mode=updateCommunityActiveCheckFlags&IsCommunityActive="+t)}),getCSRFTokenAsQS(function(){$.ajax({url:makeLink("Community/External/UpdateCommunityActiveCheckFlags"),type:"POST"})}),$afe.select("body").removeClass("hasNoCommunityLinks hasCommunityLinks").addClass(i))};$$WP.CommunityUtilities.clearCommunityLinksSessionStatus=function(){$.ajax({url:makeLink("session.asp?mode=clearCommunityActiveCheckFlags")});getCSRFTokenAsQS(function(){$.ajax({url:makeLink("Community/External/ClearCommunityActiveCheckFlags"),type:"POST"})})};$$WP.CommunityUtilities.checkIfCommunityLinksAvailable=function(){var n=$afe.select("body");n.hasClass("isPrelogin")||n.hasClass("termsPage")||getCSRFTokenAsQS(function(){$.ajax({url:makeLink("Community/External/IsCommunityActive"),dataType:"JSON",type:"POST",cache:!1,success:$$WP.CommunityUtilities.communityChecksuccesscallback,failure:function(){$$WP.Debug.log("Community Links available ajax called failed.")}})})};$$WP.CommunityUtilities.getCommunityLinks=function(n,t,i,r){t=t||"*";n=n||function(){};r=r||window;i=i||[];var u=$$WP.CommunityUtilities.getCommunityLinks;if(u._links[t])return i.push(u._links[t]),n.apply(r,i);u._callback=n;u._args=i;u._context=r;u._waitingFor=t;getCSRFTokenAsQS(function(){$.ajax({url:makeLink("ExternalJump/GetCommunityLinks?requireSecurityForMode="+t),dataType:"JSON",type:"POST",cache:!1,success:$$WP.CommunityUtilities.getCommunityLinks.callStack,failure:function(){$$WP.CommunityUtilities.getCommunityLinks.callStack({ForMode:t,Organizations:[]})}})})};$$WP.CommunityUtilities.getCommunityLinks.callStack=function(n){var t=$$WP.CommunityUtilities.getCommunityLinks;t._links[n.ForMode]=n.Organizations;n.ForMode===t._waitingFor&&typeof t._callback=="function"&&(t._args.push(n.Organizations),t._callback.apply(t._context,t._args));t._waitingFor=null;t._callback=null};$$WP.CommunityUtilities.getCommunityLinks._links={};$$WP.CommunityUtilities.pickOrganization=function(n,t,i,r,u){$$WP.CommunityUtilities.getCommunityLinks(function(r){if(!r||r.length===0){i.push("1");n.apply(this,i);return}if(r.length===1){i.push(r[0]);n.apply(this,i);return}var s,h,o=[],f,e;for(e=r.length,e>3&&(e=3),f=0;f
Baidu
map