(function(){function u(n,r){var h,u,e,o,s;t&&i&&(t.value=n,typeof r!="undefined"&&r&&r.sboxtgt&&(t.form.action=r.sboxtgt),h=typeof r!="undefined"&&r&&r.sboxtgt?r.sboxtgt:"/search",u=window.location.protocol+"//"+window.location.host+h+"?q="+encodeURIComponent(n)+f(i),URLSearchParams&&(e=new URLSearchParams(window.location.search),o=e.get("location"),o&&(u+="&location="+o),s=e.get("translatelg"),s&&(u+="&translatelg="+s)),(_G===null||_G===void 0?void 0:_G.IG)&&(u+="&uqurequestid="+_G.IG),window.location.href=u)}function f(n){for(var r="",i=n.getElementsByTagName("input"),t=0;t<i.length;t++)i[t].type==="hidden"&&(r+="&"+i[t].name+"="+encodeURIComponent(i[t].value));return r}function r(){n=_qs("#sb_form .mic_cont");t=document.querySelector("#sb_form_q");i=document.querySelector("#sb_form");n&&(n.handleText=u,n.iconInit=function(){},n.LoggingName="speech",n.TextareaId="#sb_form_q",n.clientbuild="bing",n.shouldReadoutPage=!0)}var n,t,i;r();sj_evt.bind("ajax.load",r)})()