1var busca="";function abrirSelecao(e){if(!e.querySelector('input:not([hidden]):not([type="checkbox"])').disabled)if("true"==e.getAttribute("aria-hidden")){const n=e.parentElement.querySelector(".lista ul");var t=n&&null!=n.querySelector('[aria-selected="true"]')?n.querySelector('[aria-selected="true"]'):null;if(fecharSelecao(e),0==n.childNodes.length)return;if(e.classList.remove("invalido"),null!=e.parentElement.querySelector(".erro")&&(e.parentElement.querySelector(".erro").firstElementChild.textContent=""),e.setAttribute("aria-hidden",!1),t){var r=parseInt(t.offsetTop),l=parseInt(t.clientHeight),a=parseInt(n.clientHeight);n.scrollTop=r-a/2+l/2}}else e.setAttribute("aria-hidden",!0)}function fecharSelecao(e=null){document.querySelectorAll(".form-group fieldset.select").forEach(t=>{e&&t==e||t.setAttribute("aria-hidden",!0)})}function selecionar(element){var itemSelecionado=element.parentElement.querySelector('[aria-selected="true"]'),input=element.closest(".form-group").querySelector('input:not([hidden]):not([type="checkbox"])');if(input.value=element.textContent,input.dataset.content=element.textContent,input.dataset.value=element.dataset.value,itemSelecionado&&itemSelecionado.setAttribute("aria-selected",!1),element.setAttribute("aria-selected",!0),element.dataset.callback){var callback=element.dataset.callback;try{eval(callback)}catch(e){console.log(e.message)}}fecharSelecao()}function percorrerSelecao(e,t){const r=e.querySelector(".lista ul");var l=null!=r.querySelector('[aria-selected="true"]')?r.querySelector('[aria-selected="true"]'):null;if(0!=r.childNodes.length){switch(t.which){case 9:fecharSelecao();break;case 13:t.preventDefault(),l&&selecionar(l);break;case 27:t.preventDefault(),fecharSelecao();break;case 38:t.preventDefault(),l?(l.setAttribute("aria-selected",!1),l.previousElementSibling?(l=l.previousElementSibling).setAttribute("aria-selected",!0):(l=r.lastElementChild).setAttribute("aria-selected",!0)):(l=r.lastElementChild).setAttribute("aria-selected",!0);break;case 40:t.preventDefault(),l?(l.setAttribute("aria-selected",!1),l.nextElementSibling?(l=l.nextElementSibling).setAttribute("aria-selected",!0):(l=r.firstElementChild).setAttribute("aria-selected",!0)):(l=r.firstElementChild).setAttribute("aria-selected",!0)}if(l){var a=parseInt(l.offsetTop),n=parseInt(l.clientHeight),o=parseInt(r.clientHeight);r.scrollTop=a-o/2+n/2}}}function converterString(e){const t="áà ãâäéèêëÃìîïóòõôöúùûüçÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃ";var r="",l=0;for(l=0;l<e.length;l++)t.indexOf(e.substr(l,1))>=0?r+="aaaaaeeeeiiiiooooouuuucAAAAAEEEEIIIIOOOOOUUUUC".substr(t.search(e.substr(l,1)),1):r+=e.substr(l,1);return r}function pesquisar(e,t){const r=e.parentElement.querySelector(".lista ul");var l=null!=r.querySelector('[aria-selected="true"]')?r.querySelector('[aria-selected="true"]'):null;0!=t.length&&t.match(/[0-9A-Za-z]/)&&r.childNodes.forEach(e=>{if(converterString(e.textContent.toLowerCase()).indexOf(converterString(t.toLowerCase()))>-1){if(l&&l.setAttribute("aria-selected",!1),(l=e).setAttribute("aria-selected",!0),l){var a=parseInt(l.offsetTop),n=parseInt(l.clientHeight),o=parseInt(r.clientHeight);r.scrollTop=a-o/2+n/2}}else;})}intervalo=null,document.addEventListener("click",function(e){null!=e.target.closest(".form-group")&&null!=e.target.closest(".form-group").firstElementChild&&e.target.closest(".form-group").firstElementChild.classList.contains("select")?"li"!=e.target.tagName.toLowerCase()?(e.target.closest(".form-group").querySelector('fieldset.select input:not([hidden]):not([type="checkbox"])').focus(),abrirSelecao(e.target.closest(".form-group").querySelector("fieldset.select"))):selecionar(e.target):fecharSelecao()}),document.addEventListener("keydown",function(e){null!=e.target.closest(".form-group")&&null!=e.target.closest(".form-group").querySelector("fieldset.select")&&percorrerSelecao(e.target.closest(".form-group").querySelector("fieldset.select"),e)}),document.addEventListener("keypress",function(e){null!=e.target.closest(".form-group")&&null!=e.target.closest(".form-group").querySelector("fieldset.select")&&1==e.target.closest(".form-group").querySelector('fieldset.select input
1:not([hidden]):not([type="checkbox"])').readOnly&&(busca+=String.fromCharCode(e.which),e.preventDefault(),clearInterval(intervalo),intervalo=setTimeout(()=>{pesquisar(e.target.closest(".form-group").querySelector("fieldset.select"),busca),busca="",clearInterval(intervalo)},400))});
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.