1function setupSelectDropdown(){const n=document.querySelectorAll(".select-dropdown-container");Array.prototype.slice.call(n).forEach(function(n){const t=n.querySelector(".select-dropdown"),e=t.querySelector(".select-dropdown-text"),i=n.querySelector(".select-dropdown-value"),r=n.querySelector(".select-dropdown-options"),u=Array.prototype.slice.call(r.querySelectorAll("li")),f=function(r,f){for(const n of u)n.classList.remove("selected"),n.classList.remove("visiting"),n.setAttribute("aria-selected","false");const s=r.attributes;if(i){for(const n of s)i.setAttribute(n.name,n.value);i.value=r.getAttribute("data-value");(f==null||f===!1)&&i.dispatchEvent(new Event("change"))}n.classList.remove("open");t.setAttribute("aria-expanded",!1);r.classList.add("selected");r.setAttribute("aria-selected","true");const o=r.querySelector("a");o!=null&&o.click();e.innerHTML=r.getAttribute("data-text")||r.innerHTML};t.addEventListener("click",function(){n.classList.toggle("open");t.setAttribute("aria-expanded",n.classList.contains("open"))});t.addEventListener("keydown",function(i){const e=i.keyCode||i.which;switch(e){case 13:case 32:if(n.classList.contains("open")){let i=n.querySelector(".select-dropdown-options > li.visiting");i==null&&(i=n.querySelector(".select-dropdown-options > li.selected"));f(i);n.classList.remove("open");t.setAttribute("aria-expanded",!1)}else n.classList.toggle("open"),t.setAttribute("aria-expanded",!0);i.stopPropagation();i.preventDefault();break;case 27:n.classList.remove("open");t.setAttribute("aria-expanded",!1);break;case 38:{let u=n.querySelector(".select-dropdown-options > li.visiting");u==null&&(u=n.querySelector(".select-dropdown-options > li.selected"));u.classList.remove("visiting");const f=u.previousElementSibling!=null?u.previousElementSibling:u;f.classList.add("visiting");r.scrollTop=f.offsetTop-50;t.setAttribute("aria-activedescendant",f.id);i.stopPropagation();i.preventDefault();break}case 40:{n.classList.contains("open")||(n.classList.toggle("open"),t.setAttribute("aria-expanded",n.classList.contains("open")));let u=n.querySelector(".select-dropdown-options > li.visiting");if(u==null&&(u=n.querySelector(".select-dropdown-options > li.selected")),u==null&&(u=n.querySelector(".select-dropdown-options > li:first-of-type"),u)){u.classList.add("visiting");r.scrollTop=u.offsetTop-50;t.setAttribute("aria-activedescendant",u.id);i.stopPropagation();i.preventDefault();break}u.classList.remove("visiting");const f=u.nextElementSibling||u;f.classList.add("visiting");r.scrollTop=f.offsetTop-50;t.setAttribute("aria-activedescendant",f.id);i.stopPropagation();i.preventDefault();break}case 9:n.classList.remove("open");t.setAttribute("aria-expanded",!1);for(const n of u)n.classList.remove("visiting")}});u.forEach(function(t){t.addEventListener("click",function(){f(t);methodist.analytics.pushEvent("component_cta_clicked",{component:{interaction_item:"dropdown: "+n.getAttribute("data-name"),sc_item_id:n.getAttribute("data-id"),sc_rendering_id:n.getAttribute("data-rendering"),sc_component_name:n.getAttribute("data-name"),sc_component_cta_label:e.innerText}})});t.getAttribute("data-pre-selected")==="true"&&f(t,t.getAttribute("data-pre-selected-omit")==="true");t.removeAttribute("data-pre-selected")})});document.addEventListener("click",function(t){Array.prototype.slice.call(n).forEach(function(n){if(!n.contains(t.target)){n.classList.remove("open");var i=n.querySelector(".select-dropdown");i!=null&&i.setAttribute("aria-expanded",!1)}})})}document.readyState!=="loading"?setupSelectDropdown():document.addEventListener("DOMContentLoaded",setupSelectDropdown)
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.