"use strict";Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});var pageElem=document.getElementsByTagName("html")[0],navigationBar=document.getElementById("primary-navigation"),mql=window.matchMedia("(max-width: 61.24em)"),mobile=!1,self=void 0,mobileMenuItems=null;!function(e){var l=document.getElementById("navigation-open"),i=(document.getElementById("primary-navigation"),null),n=null,a=null,s=0,r="is-visible",t="is-active";function o(){event.preventDefault(),null!==i&&(i.classList.contains("is-visible-menu")||(pageElem.classList.add("u-scroll-none"),this.setAttribute("aria-expanded",!0),i.classList.add("is-visible-menu"),s=1,a=i))}function c(e){e.preventDefault();e.currentTarget.parentElement;var t=e.currentTarget.nextElementSibling;if(a!==t){var l=document.createElement("li"),i=document.createElement("a");if(!t.querySelector("ul>li:first-of-type").classList.contains("js-parent-item")&&mql.matches){var n=e.target||e.srcElement;n instanceof HTMLAnchorElement&&(i.href=n.getAttribute("href"),i.innerHTML=n.text,i.classList.add("c-dropdown-menu__link"),i.classList.add("c-primary-nav__link"),i.classList.add("c-office-selector__link")),l.classList.add("c-office-selector__item"),l.classList.add("c-primary-nav__item"),l.classList.add("c-dropdown-menu__item"),l.classList.add("js-parent-item"),l.appendChild(i),t.querySelector("ul").prepend(l)}d(),p(t),s+=1}}function u(e){e.preventDefault(),s-=1;var t=e.currentTarget.closest("."+r);if(d(),m(),s<=1)a=i;else{var l=t.parentElement.closest("."+r);null!==l&&(p(l),a=l)}}function d(){if(null==a)return this;a.classList.remove(t)}function m(){if(null==a)return this;a.classList.remove(r)}function p(e){e.classList.add(r,t),a=e}function v(){!function(){if(void 0===i)return;var e=i.querySelectorAll(".is-visible");null!==e&&Array.prototype.forEach.call(e,function(e){e.classList.contains("is-visible")&&e.classList.remove("is-visible")}),pageElem.classList.remove("u-scroll-none"),l.setAttribute("aria-expanded",!1),i.classList.remove("is-visible-menu")}(),d(),m()}e.MobileMenu=function(e){if(null!==l){if(i=document.getElementById(l.getAttribute("aria-controls")),"undefined"!==e&&!e.matches)return v(),!1,s=0,void(null!==(t=i.querySelectorAll("is-visible"))&&Array.prototype.forEach.call(t,function(e){e.classList.remove("is-visible")}));var t;null!==i&&0<(n=i.querySelectorAll(".c-primary-nav__item--dropdown")).length&&function(){a=void Array.prototype.forEach.call(n,function(e){var t=e.querySelector(".is-visible");if(t&&t.classList.contains(r))return e}),l.addEventListener("click",o);var e=i.querySelectorAll(".c-primary-nav-toggle--close");0l.clientHeight?l.parentElement.classList.contains("is-overflowing")||l.parentElement.classList.add("is-overflowing"):l.parentElement.classList.contains("is-overflowing")&&l.parentElement.classList.remove("is-overflowing")}}function u(e){e.preventDefault();var t,l=e.currentTarget.parentElement;a!==l&&(!function(){if(null==a)return;a.classList.remove(o)}(),(t=l).classList.add(o),null!==(s=t.querySelector(".c-office-selector__dropdown-menu"))&&c(s,!0),a=t)}function d(e){e.preventDefault();var t,l,i=e.currentTarget.parentElement;l=r,(t=i).classList.toggle(l),c(t),s=void 0===s?t:null}e.OfficeSelectorMegaNav=function(e){var t;null!==navigationBar&&(l=navigationBar.querySelector("#office-selector"),"undefined"!==e&&e.matches?null!==(t=navigationBar.querySelectorAll("."+r))&&0 a").addEventListener("click",u);var t=e.querySelector("is-visible");null!==t&&visibleMenus.classList.remove("is-visible"),n=e.querySelectorAll("[data-menu-dropdown=city-selector]"),Array.prototype.forEach.call(n,function(e){e.querySelector(".c-primary-nav__item--dropdown > a").addEventListener("click",d,!1)})})}())}}(window);var mobileMenuElement=document.getElementById("navigation");function screenTest(e){null!==mobileMenuElement?(new MobileMenu(e),new OfficeSelectorMegaNav(e),new HoverDropdown(e),e.matches?(mobile=!0,mobileMenuElement.classList.contains("is-mobile-menu")||mobileMenuElement.classList.add("is-mobile-menu")):(mobile=!1,mobileMenuElement.classList.contains("is-mobile-menu")&&mobileMenuElement.classList.remove("is-mobile-menu"),document.getElementsByTagName("html")[0].classList.remove("u-scroll-none"))):console.error("No menu found")}screenTest(mql),mql.addListener(screenTest);for(var openOverlayBtn=document.querySelectorAll(".c-btn--overlay-open[data-toggle='modal']"),i=0;i