1"use strict";function closeSelects(e){const t=document.querySelectorAll(".js__customSelect.-active");if(t.length)for(let s of t)e!==s&&s.classList.remove("-active")}const customSelect=e=>{e||(e=document.body);let t=e.querySelectorAll(".js__customSelectContainer:not(.js__customSelect--eventAdded)");for(let e of t){e.classList.add("js__customSelect--eventAdded");let t=e.querySelector(".js__customSelect"),s=t.querySelector(".js__customSelect--label"),o=t.querySelector(".js__customSelect--text"),c=t.querySelector(".js__customSelect--optionList"),n=c.querySelectorAll(".js__customSelect--option"),l=e.querySelector(".js__customSelect--select");if(l&&o){window.deviceInfo.isMobile&&l.addEventListener("change",(e=>{let t=l.options;for(let e of t)if(e.selected){o.innerHTML=e.innerHTML;break}})),s.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation();let s=!1;t.classList.contains("-active")&&(s=!0),s?t.classList.remove("-active"):t.classList.add("-active")})),s.addEventListener("keyup",(e=>{e.preventDefault(),e.stopPropagation(),9!==e.code&&"Tab"!==e.code||t.classList.add("-active")})),s.addEventListener("focusout",(e=>{e.preventDefault(),e.stopPropagation(),t.classList.remove("-active")}));for(let e of n)e.addEventListener("click",(s=>{let n=c.querySelector(".customSelectOptionList__option--selected");n&&n.classList.remove("customSelectOptionList__option--selected"),o.innerHTML=e.innerHTML,e.classList.add("customSelectOptionList__option--selected"),l.value=e.dataset.value,l.dispatchEvent(new Event("change")),t.classList.remove("-active")})),e.addEventListener("focusin",(e=>{e.preventDefault(),e.stopPropagation(),t.classList.add("-active")})),e.addEventListener("focusout",(e=>{e.preventDefault(),e.stopPropagation(),t.classList.remove("-active")}))}}};document.addEventListener("DOMContentLoaded",(function(){window.addEventListener("click",(function(){closeSelects()}))}));
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.