1(function(){'use strict';var root=document.querySelector('[data-arv-faq-root]');if(!root){return} 2var search=root.querySelector('[data-arv-faq-search]');var status=root.querySelector('[data-arv-faq-status]');var items=Array.prototype.slice.call(document.querySelectorAll('.arv-faq-q'));var sections=Array.prototype.slice.call(document.querySelectorAll('.arv-faq-section'));if(!search||0===items.length){return} 3var openBeforeSearch=[];var loggedQueries={};var debounceTimer=null;function haystack(item){if(item._arvHaystack){return item._arvHaystack} 4var summary=item.querySelector('summary');var text=(summary?summary.textContent:'')+' '+(item.getAttribute('data-keywords')||'');item._arvHaystack=text.toLowerCase();return item._arvHaystack} 5function apply(){var q=search.value.trim().toLowerCase();var shown=0;if(''===q){for(var r=0;r<items.length;r++){items[r].hidden=!1;items[r].open=openBeforeSearch.indexOf(items[r])!==-1} 6for(var s=0;s<sections.length;s++){sections[s].hidden=!1} 7status.textContent='';return} 8if(0===openBeforeSearch.length){for(var o=0;o<items.length;o++){if(items[o].open){openBeforeSearch.push(items[o])}}} 9for(var i=0;i<items.length;i++){var hit=haystack(items[i]).indexOf(q)!==-1;items[i].hidden=!hit;if(hit){items[i].open=!0;shown++}} 10for(var j=0;j<sections.length;j++){var visible=sections[j].querySelectorAll('.arv-faq-q:not([hidden])');sections[j].hidden=0===visible.length} 11status.textContent=0===shown?'No matches. Try different words, or contact us below.':shown+(1===shown?' match':' matches');clearTimeout(debounceTimer);debounceTimer=setTimeout(function(){logSearch(q,shown>0)},600)} 12function logSearch(q,matched){if(loggedQueries[q]||q.length<3){return} 13loggedQueries[q]=!0;if(window.fetch){fetch('/wp-json/aravaipa/v1/faq-search-log',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({q:q,matched:matched}),keepalive:!0}).catch(function(){})}} 14search.addEventListener('input',apply);if(window.location.hash){var target=document.getElementById(window.location.hash.slice(1));if(target&&target.classList.contains('arv-faq-q')){target.open=!0}}})()
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.