(async () => { try { instant = JSON.parse( (await ( await ( await window.fetch("https://api.wolfeye.minteck.org/api/instant", { method: "POST", body: JSON.stringify({ query }), headers: { "Content-Type": "application/json" } }) ).blob() ).text() )).res; if (instant.Abstract.trim() !== "") { document.getElementById("details").style.display = "block"; document.getElementById("results").classList.add("with-details"); try {document.getElementsByClassName("dym-section")[0].outerHTML = ""; } catch (e) {} document.getElementById("details-inner").innerHTML = "" + lang.results.source + " DuckDuckGo:

" + instant.Abstract + "

" + instant.AbstractSource + "

"; } else { instant2 = JSON.parse( (await ( await ( await window.fetch("./instant/?q=" + encodeURI(query).replace(/\+/g, "%2B")) ).blob() ).text() )); if (instant2.Abstract.trim() !== "") { document.getElementById("details").style.display = "block"; document.getElementById("results").classList.add("with-details"); try {document.getElementsByClassName("dym-section")[0].outerHTML = ""; } catch (e) {} document.getElementById("details-inner").innerHTML = "" + lang.results.source + " DuckDuckGo:

" + instant2.Abstract + "

" + instant2.AbstractSource + "

"; } else { answer = (await ( await ( await window.fetch("./answer?q=" + encodeURI(query).replace(/\+/g, "%2B")) ).blob() ).text() ) if (answer.trim() !== "Wolfram|Alpha did not understand your input" && answer.trim() !== "No short answer available" && answer.trim() !== "") { document.getElementById("details-inner").innerHTML = "" + lang.results.source + " Wolfram|Alpha:

" + answer + "

" + lang.results.disclaimer.title + "" + lang.results.disclaimer.description + "

"; document.getElementById("details").style.display = "block"; document.getElementById("results").classList.add("with-details"); try { document.getElementsByClassName("dym-section")[0].outerHTML = ""; } catch (e) { } } else { document.getElementById("details").style.display = "none"; } } } if (instant.Abstract.trim() === "" && typeof instant2 !== "undefined") { try { document.getElementById("details-source").innerHTML = " " } catch (e) {} try { document.getElementById("details-data-link").target = "" } catch (e) {} } if (instant.Results[0]) { if (!document.getElementsByClassName("result-official")[0]) { document.getElementById("results").innerHTML = '
Example
https://example.com/
' + document.getElementById("results").innerHTML; } document.getElementsByClassName("result-official")[0].classList.add("result-verified"); document.getElementsByClassName("result-official")[0].children[0].href = instant.Results[0].FirstURL; document.getElementsByClassName("result-official")[0].children[0].children[0].children[2].src = "/assets/verified.svg"; document.getElementsByClassName("result-official")[0].children[0].children[0].children[2].title = lang.results.verify; document.getElementsByClassName("result-official")[0].children[0].children[0].children[0].src = "https://duckduckgo.com" + instant.Results[0].Icon.URL; document.getElementsByClassName("result-official")[0].children[0].children[0].children[1].innerText = instant.Heading; document.getElementsByClassName("result-official")[0].children[0].children[1].children[0].innerText = instant.Results[0].FirstURL; } if (typeof instant2 !== "undefined" && instant2.Results[0]) { if (!document.getElementsByClassName("result-official")[0]) { document.getElementById("results").innerHTML = '
Example
https://example.com/
' + document.getElementById("results").innerHTML; } document.getElementsByClassName("result-official")[0].classList.add("result-verified"); document.getElementsByClassName("result-official")[0].children[0].href = instant2.Results[0].FirstURL; document.getElementsByClassName("result-official")[0].children[0].children[0].children[2].src = "/assets/verified.svg"; document.getElementsByClassName("result-official")[0].children[0].children[0].children[2].title = lang.results.verify; document.getElementsByClassName("result-official")[0].children[0].children[0].children[0].src = "https://duckduckgo.com" + instant2.Results[0].Icon.URL; document.getElementsByClassName("result-official")[0].children[0].children[0].children[1].innerText = instant2.Heading; document.getElementsByClassName("result-official")[0].children[0].children[1].children[0].innerText = instant2.Results[0].FirstURL; } if (query === "wolfeye" || query === "wolf eye") { document.getElementById("details-inner").innerHTML = "

" + lang.resuslts.local.title + "

" + lang.resuslts.local.description + "

" document.getElementById("details-inner").style.display = "block"; if (!document.getElementsByClassName("result-official")[0]) { document.getElementById("results").innerHTML = '
Example
https://example.com/
' + document.getElementById("results").innerHTML; } document.getElementsByClassName("result-official")[0].classList.add("result-verified"); document.getElementsByClassName("result-official")[0].children[0].href = "https://wolfeye.minteck.org"; document.getElementsByClassName("result-official")[0].children[0].children[0].children[2].src = "/assets/verified.svg"; document.getElementsByClassName("result-official")[0].children[0].children[0].children[2].title = lang.results.verify; document.getElementsByClassName("result-official")[0].children[0].children[0].children[0].src = "/logo.svg"; document.getElementsByClassName("result-official")[0].children[0].children[0].children[1].innerText = "WolfEye"; document.getElementsByClassName("result-official")[0].children[0].children[1].children[0].innerText = "https://wolfeye.minteck.org"; } } catch (e) { console.error(e); answer = (await ( await ( await window.fetch("./answer?q=" + encodeURI(query).replace(/\+/g, "%2B")) ).blob() ).text() ) if (answer.trim() !== "Wolfram|Alpha did not understand your input" && answer.trim() !== "No short answer available" && answer.trim() !== "") { document.getElementById("details-inner").innerHTML = "" + lang.results.source + " Wolfram|Alpha:

" + answer + "

" + lang.results.disclaimer.title + "" + lang.results.disclaimer.description + "

"; document.getElementById("details").style.display = "block"; document.getElementById("results").classList.add("with-details"); try {document.getElementsByClassName("dym-section")[0].outerHTML = ""; } catch (e) {} } else { document.getElementById("details").style.display = "none"; } } if (document.getElementById("details-source").innerHTML === " ") { document.getElementById("details-source").style.display = "none"; } else { document.getElementById("details").style.display = ""; } })()