document.addEventListener("DOMContentLoaded",(()=>{const e=document.getElementById("social-share");if(!e)return;const t=e.querySelector(".whitehouse-social-share__toggle"),s=e.querySelector(".whitehouse-social-share__copy"),a=()=>{window.matchMedia("(max-width: 599px)").matches?(e.classList.add("is-collapsed"),e.classList.remove("is-expanded")):(e.classList.add("is-expanded"),e.classList.remove("is-collapsed"));const t=getComputedStyle(e).getPropertyValue("--wh--social-share--init-delay")||"0.3s";setTimeout((()=>{e.classList.remove("is-hidden")}),1e3*parseFloat(t))};a(),window.addEventListener("resize",a);const i=()=>{const s=e.classList.contains("is-expanded");t.setAttribute("aria-expanded",s),t.setAttribute("title",s?t.getAttribute("data-close-label"):t.getAttribute("data-open-label"))};t.addEventListener("click",(()=>{e.classList.toggle("is-collapsed"),e.classList.toggle("is-expanded"),i()})),s.addEventListener("click",(e=>{e.preventDefault();const t=()=>{window.location.href=s.href};navigator.clipboard?navigator.clipboard.writeText(s.href).then((()=>{s.classList.add("is-copied"),setTimeout((()=>{s.classList.remove("is-copied")}),4e3)})).catch(t):t()})),i()}));; !function(){document.body.setAttribute("id","top");let e=0;const t=()=>{const t=window.innerWidth-document.documentElement.clientWidth;e=Math.max(e,t),document.body.style.setProperty("--wh-scrollbar-width-max",`${e}px`),document.body.style.setProperty("--wh-scrollbar-width",`${t}px`)};window.addEventListener("resize",t),new MutationObserver(t).observe(document.body,{attributes:!0,attributeFilter:["class"]}),t();const n="has-keyboard-focus";let o=!1;window.addEventListener("keydown",(e=>{e.defaultPrevented||o||("Tab"===e.key||"Enter"===e.key||e.altKey)&&(o=!0,document.body.classList.add(n))})),window.addEventListener("mousedown",(e=>{!e.defaultPrevented&&o&&(o=!1,document.body.classList.remove(n))})),document.addEventListener("DOMContentLoaded",(()=>{const e="has-format-animated-highlight",t=document.querySelectorAll(`.${e}`);if(!t.length)return;const n=[];let o=!1;const s=t=>{if(o&&!t)return;const d=n.shift();d?(d.classList.add(`${e}--visible`),o=setTimeout(s,100,!0)):o=!1},d=new IntersectionObserver((t=>{t.forEach((t=>{var o;t.isIntersecting&&(o=t.target,n.includes(o)||o.classList.contains(`${e}--visible`)||(n.push(o),s(!1)))}))}),{root:null,rootMargin:"0px 0px -25% 0px",threshold:0});t.forEach((e=>d.observe(e)))}))}();;