1var r=Object.defineProperty;var m=(s,t,e)=>t in s?r(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var n=(s,t,e)=>m(s,typeof t!="symbol"?t+"":t,e);class h{constructor(){n(this,"$html");n(this,"$body");n(this,"$footer");n(this,"$bodyFontSizes",["size1","size2","size3"]);n(this,"$nextBodyFontSizes",{1:"2",2:"3",3:"1"});this.$html=document.documentElement,this.$body=document.body,this.$footer=document.querySelector("footer"),this.initFontSizeToggle(),this.initContrastToggle()}initFontSizeToggle(){const t=document.documentElement,e=window.getComputedStyle(t).fontSize;this.baseSizePx=parseFloat(e);const o=document.querySelectorAll(".font-size-toggle");o&&o.forEach(a=>{a.addEventListener("click",()=>{let i=a.dataset.size;i&&(a.dataset.size=this.$nextBodyFontSizes[i]),this.$bodyFontSizes.forEach(d=>{this.$html.classList.remove(d)}),this.$html.classList.add("size"+i);const c={1:1,2:1.5,3:2}[i]??1,l=this.baseSizePx*c;t.style.fontSize=`${l}px`})})}initContrastToggle(){const t=document.querySelectorAll(".contrast-toggle");if(t){let e=this.$footer,o=this.$body;t.forEach(a=>{a.addEventListener("click",i=>{i.target,e&&(e.classList.contains("page-footer__contrastmode")?e.classList.remove("page-footer__contrastmode"):e.classList.add("page-footer__contrastmode")),o&&(o.classList.contains("page-body__contrastmode")?o.classList.remove("page-body__contrastmode"):o.classList.add("page-body__contrastmode"))})})}}}export{h as B};
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.