!function(){var e=navigator.userAgent.toLowerCase().indexOf("webkit")>-1,t=navigator.userAgent.toLowerCase().indexOf("opera")>-1,n=navigator.userAgent.toLowerCase().indexOf("msie")>-1;(e||t||n)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var e,t=location.hash.substring(1);/^[A-z0-9_-]+$/.test(t)&&(e=document.getElementById(t))&&(/^(?:a|select|input|button|textarea)$/i.test(e.tagName)||(e.tabIndex=-1),e.focus())},!1)}();!function(e,t,r){"use strict";var i=t.querySelectorAll(['iframe[src*="youtube.com"]','iframe[src*="vimeo.com"]'].join(","));if(i.length)for(var o=0;o=0&&t.item(o)!==this;);return o>-1});e&&e!==document;e=e.parentNode)if(e.matches(t))return e;return null};const modalTriggers=document.querySelectorAll(".s-modal-trigger"),bodyBlackout=document.querySelector(".s-modal-bg"),allModals=document.querySelectorAll(".s-modal");bodyBlackout&&(modalTriggers.forEach(a=>{a.addEventListener("click",()=>{const{popupTrigger:b}=a.dataset,c=document.querySelector(`[data-s-modal="${b}"]`);c.classList.add("-visible"),bodyBlackout.classList.add("-blacked-out"),c.querySelector(".s-modal-close").addEventListener("click",()=>{c.classList.remove("-visible"),bodyBlackout.classList.remove("-blacked-out")})})}),bodyBlackout.addEventListener("click",()=>{bodyBlackout.classList.remove("-blacked-out"),allModals.forEach(function(a){a.classList.remove("-visible")})}));function domReady(fn){document.addEventListener("DOMContentLoaded",fn);if(document.readyState==="complete"){fn();}}