async function fetchSiteIndex(){const e=await fetch("/src/s.json");return await e.json()}function filterResults(e,t){return t.filter((t=>t.toLowerCase().includes(e.toLowerCase())))}function displayResults(e){const t=document.getElementById("sR");t.innerHTML="",e.slice(0,5).forEach((e=>{const n=document.createElement("div");n.className="resultItem",n.innerHTML=`${e}`,t.appendChild(n)}))}document.getElementById("sB").addEventListener("input",(async function(){const e=this.value,t=document.getElementById("sR");if(""===e)return void(t.innerHTML="");displayResults(filterResults(e,await fetchSiteIndex()))}));