1(function(){const a=document.documentElement,c=["auto","light","dark"];function d(){const e=a.getAttribute("data-theme");return c.includes(e)?e:"auto"}function u(e){if(c.includes(e)){a.setAttribute("data-theme",e);try{e==="auto"?localStorage.removeItem("theme"):localStorage.setItem("theme",e)}catch{}i(),window.dispatchEvent(new CustomEvent("themechange",{detail:{value:e}}))}}function i(){const e=d();document.querySelectorAll(".segmented-control__btn[data-theme-value]").forEach(t=>{t.setAttribute("aria-checked",t.dataset.themeValue===e?"true":"false")}),n()}function n(){const e=document.querySelector(".segmented-control");if(!e)return;const t=e.querySelector(".segmented-control__pill"),r=e.querySelector('.segmented-control__btn[aria-checked="true"]');if(!t||!r)return;const f=r.offsetLeft,m=r.offsetWidth;t.style.transform=`translateX(${f}px)`,t.style.width=`${m}px`,e.dataset.ready!=="true"&&(t.offsetWidth,e.dataset.ready="true")}let o=0;function l(){o||(o=requestAnimationFrame(()=>{o=0;const e=document.querySelector(".segmented-control");if(!e)return;const t=e.dataset.ready==="true";t&&(e.dataset.ready="false"),n(),t&&(e.offsetWidth,e.dataset.ready="true")}))}function s(){i(),document.querySelectorAll(".segmented-control__btn[data-theme-value]").forEach(e=>{e.addEventListener("click",()=>u(e.dataset.themeValue))}),window.addEventListener("resize",l),matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{d()==="auto"&&n()})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",s):s()})();
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.