1"use strict";(self.webpackChunkpolitico_theme=self.webpackChunkpolitico_theme||[]).push([[1706],{9520:function(e,t,n){var o=n(4299);t.default=()=>{const e=document.querySelector(o.w5);if(!e)return;const t=e.querySelector(o.FG),n=e.querySelector(o.co);let c=null;const l=e=>e.toLowerCase().replace(/\s/g,"-")||"",a=e=>{const o="undefined"!==typeof e?!e:"true"===t.getAttribute("aria-expanded");t.setAttribute("aria-expanded",!o),n.hidden=o,o&&n.focus()},d=()=>{a()},r=()=>!n.hidden,s=n=>{const o=n.target;r()&&o!==t&&(!e.contains(o.closest("a"))&&e.contains(o)||a(!1))},i=e=>{r()&&"Escape"===e.key&&a(!1)},u=e=>{const t=e.target.value;t&&(window.location.hash=t),r()&&a(!1)};(()=>{const{wrapperSelector:a=".toc",headingSelector:r="h2",itemSelector:m="h3",customHeadingSelector:p="",customItemSelector:h=""}=(()=>{const{blockSettings:t={}}=e.dataset;return JSON.parse(t)})();try{const f=Array.from(document.querySelectorAll(a)).map((e=>{const t=e.querySelector("custom"===r?p:r),n=e.querySelectorAll("custom"===m?h:m);return t||n?.length>0?{heading:t,items:n}:null})).filter(Boolean);(e=>{if(!e.length)return;const t=document.createElement("ul");t.classList.add("table-of-contents__menu-list"),e.forEach((({heading:e,items:n})=>{const c=document.createElement("li");if(e){const t=document.createElement("a");if(e.id)t.href=`#${e.id}`;else{const n=l(e.textContent);e.id=n,t.href=`#${n}`}t.textContent=e.textContent,t.classList.add(o.dM),c.appendChild(t)}const a=document.createElement("ul");n.forEach((e=>{const t=document.createElement("li"),n=document.createElement("a");if(e.id)n.href=`#${e.id}`;else{const t=l(e.textContent);e.id=t,n.href=`#${t}`}n.textContent=e.textContent,n.classList.add(o.bm),t.appendChild(n),a.appendChild(t)})),c.appendChild(a),t.appendChild(c)})),n.appendChild(t)})(f),(t=>{if(!t.length)return;c=document.createElement("select"),c.classList.add("table-of-contents__menu-select");const o=document.createElement("option");o.textContent=e.dataset.selectText||"Select...",c.appendChild(o),t.forEach((({heading:e,items:t})=>{let n=null;e&&(n=document.createElement("optgroup"),n.setAttribute("label",e.textContent)),t.forEach((e=>{const t=document.createElement("option"),o=e.id||l(e.textContent);t.value=`#${o}`,t.textContent=e.textContent,n?n.appendChild(t):c.appendChild(t)})),n&&c.appendChild(n)})),n.appendChild(c)})(f),t.addEventListener("click",d),c.addEventListener("change",u),document.addEventListener("click",s),document.addEventListener("keydown",i)}catch(e){console.error("Error generating Table of Contents",e)}})()}}}]);
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.