1const i="/pagefind/pagefind-ui.js",c=Array.from(document.querySelectorAll(".blogSearch"));c.forEach(t=>{const n=t.querySelector("#search-form"),e=n?.querySelector('input[name="search"]'),s=t.querySelector(".row");n?.addEventListener("submit",r=>r.preventDefault()),s&&import(i).then(()=>{const r=window.PagefindUI;if(!r)throw new Error("Pagefind UI did not initialize.");const l=e?.value.trim()||"",a=document.createElement("div");a.className="blog-search-pagefind col-md-12",s.replaceChildren(a);const o=new r({element:a,pageSize:10,showSubResults:!1,showImages:!1,excerptLength:24,resetStyles:!0,translations:{placeholder:e?.placeholder||"Search articles...",zero_results:"No matching articles found for [SEARCH_TERM].",one_result:"[COUNT] article found for [SEARCH_TERM]",many_results:"[COUNT] articles found for [SEARCH_TERM]"}});l&&o.triggerSearch?.(l)}).catch(()=>{t.classList.add("is-search-unavailable"),e?.setAttribute("disabled",""),e?.setAttribute("placeholder","Search is temporarily unavailable")})});
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.