/**handles:twentytwenty-js**/ var twentytwenty=twentytwenty||{};function twentytwentyDomReady(t){if("function"==typeof t)return"interactive"===document.readyState||"complete"===document.readyState?t():void document.addEventListener("DOMContentLoaded",t,!1)}function twentytwentyToggleAttribute(t,e,n,o){var i;t.hasAttribute(e)&&(void 0===n&&(n=!0),void 0===o&&(o=!1),(i=document.querySelectorAll('[data-toggle-target="'+t.dataset.toggleTarget+'"]')).forEach(function(t){t.hasAttribute(e)&&(t.getAttribute(e)!==n?t.setAttribute(e,n):t.setAttribute(e,o))}))}function twentytwentyMenuToggle(n,o){var i,a,t,e,s,r=[],c=[];n&&(t=n.closest(".menu-wrapper"),(e=t.querySelectorAll(".menu-item")).forEach(function(t,e){r[e]={x:t.offsetLeft,y:t.offsetTop}}),i=n.parentElement.offsetHeight,n.classList.add("toggling-target"),n.classList.toggle("active"),e.forEach(function(t,e){c[e]={x:t.offsetLeft,y:t.offsetTop}}),a=n.parentElement.offsetHeight,n.classList.toggle("active"),t.classList.add("is-toggling"),n.classList.toggle("active"),e.forEach(function(t,e){var e=r[e];0===e.y&&t.parentElement===n&&(e.y=i),t.style.transform="translate("+e.x+"px, "+e.y+"px)"}),requestAnimationFrame(function(){requestAnimationFrame(function(){t.classList.add("is-animating"),e.forEach(function(t,e){var e=c[e];0===e.y&&t.parentElement===n&&(e.y=a),void 0!==o&&(t.style.transitionDuration=o+"ms"),t.style.transform="translate("+e.x+"px, "+e.y+"px)"}),void 0!==o&&(n.style.transitionDuration=o+"ms")}),s=function(){t.classList.remove("is-animating"),t.classList.remove("is-toggling"),n.classList.remove("toggling-target"),e.forEach(function(t){t.style.transform="",t.style.transitionDuration=""}),n.style.transitionDuration="",n.removeEventListener("transitionend",s)},n.addEventListener("transitionend",s)}))}function twentytwentyFindParents(t,e){var n=[];function o(t){var t=t.parentNode;t instanceof HTMLElement&&(t.matches(e)&&n.push(t),o(t))}return o(t),n}twentytwenty.scrolled=0,Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;do{if(e.matches(t))return e}while(null!==(e=e.parentElement||e.parentNode)&&1===e.nodeType);return null}),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(t,e){var n,o=this.length;for(e=e||window,n=0;ns.documentElement.getBoundingClientRect().height?"hidden":"scroll",position:"fixed",width:"100%",top:d(!0)+"px",left:0}}t.forEach(function(a){a.addEventListener("toggle-target-before-inactive",function(t){var e=u(),n=r.pageYOffset,o=Math.abs(d())-n+"px",i=r.matchMedia("(max-width: 600px)");t.target===a&&(Object.keys(e).forEach(function(t){c.setProperty(t,e[t])}),r.twentytwenty.scrolled=parseInt(e.top,10),l&&(s.body.style.setProperty("padding-top",o),i.matches&&(n>=d()?a.style.setProperty("top",0):a.style.setProperty("top",d()-n+"px"))),a.classList.add("show-modal"))}),a.addEventListener("toggle-target-after-inactive",function(t){t.target===a&&setTimeout(function(){var t=twentytwenty.toggles.clickedEl;a.classList.remove("show-modal"),Object.keys(u()).forEach(function(t){c.removeProperty(t)}),l&&(s.body.style.removeProperty("padding-top"),a.style.removeProperty("top")),!1!==t&&(t.focus(),t=!1),r.scrollTo(0,Math.abs(r.twentytwenty.scrolled+d())),r.twentytwenty.scrolled=0},500)})})},untoggleModal:function(t){var e,n=!1;t.dataset.modalTargetString&&(e=t.dataset.modalTargetString,n=document.querySelector('*[data-toggle-target="'+e+'"]')),n?n.click():t.classList.remove("active")}},twentytwenty.intrinsicRatioVideos={init:function(){this.makeFit(),window.addEventListener("resize",function(){this.makeFit()}.bind(this))},makeFit:function(){document.querySelectorAll("iframe, object, video").forEach(function(t){var e,n,e=t.parentNode;if(t.classList.contains("intrinsic-ignore")||t.parentNode.classList.contains("intrinsic-ignore"))return!0;t.dataset.origwidth||(t.setAttribute("data-origwidth",t.width),t.setAttribute("data-origheight",t.height)),e=(n=e.offsetWidth)/t.dataset.origwidth,t.style.width=n+"px",t.style.height=t.dataset.origheight*e+"px"})}},twentytwenty.modalMenu={init:function(){this.expandLevel(),this.keepFocusInModal()},expandLevel:function(){var t;document.querySelectorAll(".modal-menu").forEach(function(t){var t=t.querySelector(".current-menu-item");t&&twentytwentyFindParents(t,"li").forEach(function(t){var t=t.querySelector(".sub-menu-toggle");t&&twentytwenty.toggles.performToggle(t,!0)})})},keepFocusInModal:function(){var c=document;c.addEventListener("keydown",function(t){var e,n,o,i,a,s,e,r,n,s,o,r=twentytwenty.toggles.clickedEl;r&&c.body.classList.contains("showing-modal")&&(e=r.dataset.toggleTarget,o="input, a, button",n=c.querySelector(e),i=n.querySelectorAll(o),i=Array.prototype.slice.call(i),".menu-modal"===e&&(a=(a=window.matchMedia("(min-width: 1000px)").matches)?".expanded-menu":".mobile-menu",(i=i.filter(function(t){return null!==t.closest(a)&&null!==t.offsetParent})).unshift(c.querySelector(".close-nav-toggle")),(s=c.querySelector(".menu-bottom > nav"))&&s.querySelectorAll(o).forEach(function(t){i.push(t)})),r=i[i.length-1],n=i[0],e=c.activeElement,s=9===t.keyCode,!(o=t.shiftKey)&&s&&r===e&&(t.preventDefault(),n.focus()),o&&s&&n===e&&(t.preventDefault(),r.focus()))})}},twentytwenty.primaryMenu={init:function(){this.focusMenuWithChildren()},focusMenuWithChildren:function(){var t,e,n,o=document.querySelector(".primary-menu-wrapper");if(!o)return!1;for(e=0,n=(t=o.getElementsByTagName("a")).length;e