(function () { function loadForgotPasswordBundle() { if (typeof window.jQuery === "undefined") return false; if (document.querySelector('script[data-pgcat-forgot-password="1"]')) return true; var script = document.createElement("script"); script.src = "bundles/account/forgot-password-js"; script.setAttribute("data-pgcat-forgot-password", "1"); document.body.appendChild(script); return true; } function boot() { if (window.matchMedia && window.matchMedia("(max-width: 991px)").matches) return; if (loadForgotPasswordBundle()) return; var attempts = 0; var timer = setInterval(function () { if (loadForgotPasswordBundle() || ++attempts >= 120) { clearInterval(timer); } }, 50); } if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", boot); } else { boot(); } })();