sito web:Traslatore Websoddisfare
//搜索MicrosoftTranslator-从英语翻译////-])/g,"\\$1")},FireInstrumError=function(n){typeofsj_evt!="undefined"&&sj_evt.fire("ErrorInstrumentation",n)};window.jsErrorHandler=function(n){varu,y,s,nt,tt,r,f,it,e,l,a,o;try{if(u='"noMesse"',y=(n.error||n).messe||u,ignoreThisError(y,n))return;if(s=(window.ERC?window.ERC:0)+1,window.ERC=s,s>maxErr){logJSText("maxerrorsreached");return}varh=n.error||n,p=n.filename,w=n.lineno,b=n.colno,k=n.extra,c=h.severity||"Error",d=h.messe||u,i=h.stack,t='"'+escape(d.replace(/"/g,""))+'"',g=newRegExp(regexEsc(getHref()),"g");if(i){for(nt=/\(([^\)]+):[0-9]+:[0-9]+\)/g,r={};(tt=nt.exec(i))!==null;)f=tt[1],r[f]?r[f]++:r[f]=1;e=0;for(linr)r[l]>1&&(a=regexEsc(l),it=newRegExp(a,"g"),i=i.replace(it,e),i+="#"+e+"="+a,e++);i=i.replace(g,"self").replace(/"/g,"");t+=',"Stack":"'+(escape(i)+'"')}if(p&&(t+=',"Meta":"'+escape(p.replace(g,"self"))+'"'),w&&(t+=',"Line":"'+w+'"'),b&&(t+=',"Char":"'+b+'"'),k&&(t+=',"ExtraInfo":"'+k+'"'),d===u)if(c="Warning",t+=',"ObjectToString":"'+n.toString()+'"',JSON&&JSON.stringify)t+=',"JSON":"'+escape(JSON.stringify(n))+'"';elsefor(oinn)n.hasOwnProperty(o)&&(t+=',"'+o+'":"'+n[o]+'"');varrt=(newDate).getTime(),ut='"T":"CI.'+c+'","FID":"CI","Name":"JS'+c+'","Text":'+t+"",ft="Event.ClientInst"+_G.IG+""+rt+"",et=""+ft+""+rt+"",v=newXML;v.open("POST","/fd/ls/lsp.aspx?",!0);v.setRequestHeader("Content-Type","text/xml");v.send(et);FireInstrumError(t)}catch(ot){logJSText("MetaJSError","Failedtoexecuteerrorhandler."+ot.messe)}};window.addEventListener&&(window.addEventListener("error",window.jsErrorHandler,!1),window.addEventListener("unhandledrejection",window.jsErrorHandler,!1));window.addEventListener||window.onerror||(window.onerror=function(n,t,i,r,u){varf,e;ignoreThisError(n)||(f="",typeofn=="object"&&n.srcElement&&n.srcElement.src?f="\"ScriptSrc='"+escape(n.srcElement.src.replace(/'/g,""))+"'\"":(n=""+n,f='"'+escape(n.replace(/"/g,""))+'","Meta":"'+escape(t)+'","Line":'+i+',"Char":'+r,u&&u.stack&&(e=newRegExp(regexEsc(getHref()),"g"),f+=',"Stack":"'+escape(u.stack.replace(e,"self").replace(/"/g,"")+'"'))),(newIme).src=_G.lsUrl+'&Type=Event.ClientInst&DATA=[{"T":"CI.GetError","FID":"CI","Name":"JSGetError","Text":'+f+"}]",FireInstrumError(f))})}catch(e){logJSText("MetaJSError","Failedtobinderrorhandler"+e.messe)};varamd,define,require;(function(n){functione(n,i,u){t[n]||(t[n]={dependencies:i,callback:u},r(n))}functionr(n){if(n){if(n)returnu(n)}else{if(!f){for(varrint)u(r);f=!0}returni}}functionu(n){vars,e;if(i[n])returni[n];if(t.hasOwnPropertTraslatore Weby(n)){varh=t[n],f=h.dependencies,l=h.callback,a=r,o={},c=[a,o];if(f.length2)for(s=f.slice(2,f.length),e=0;e0?h*6e4:e6,d=newDate((newDate).getTime()+Math.min(k,e6)),w="";f()&&(b=u(),w=b+(c?";SameSite="+c:";SameSite=None"));_d.cookie=v+(p?";domain="+p[0]:"")+(o?";expires="+d.toGMTString():"")+(s?";path="+s:"")+w}};n.clear=function(n){if(!t){varu=n+"=",r=location.hostname.match(/([^.]+\.[^.]*)$/);_d.cookie=u+(r?";domain="+r[0]:"")+";expires="+i}}};_w.sk_merge||(_w.sk_merge=function(n){_d.cookie=n});_w.ChatMergeLogHelper={getBotRequestId:function(n){vart=this.getChatJoinKeys(n);returnt?t.rid:null},getConversationIg:function(n){vart=this.getChatJoinKeys(n);returnt?t.ig:null},getChatJoinKeys:function(n){vari,r,u,t,o,f,e;return(function(n){n.Home="home";n.Search="search";n.Conversation="conversation";n.OffSte="off-ste";n.Notebook="notebook";n.GPTCreator="gpt-creator"}(u||(u={})),t=_w.GlobalInstTracker,o=null,typeoft!="undefined"&&t&&t.convModeToJoinKeys&&typeof_w.CIB!="undefined"&&((r=(i=_w.CIB)===null||i===void0?void0:i.vm)===null||r===void0?void0:r.mode)&&n)?(f=_w.CIB.vm.mode,f===u.Notebook?t.convModeToJoinKeys.get(f):t.convModeToJoinKeys.get("conversation")):(e=location.href.match(newRegExp("[?&]IID=Codex-[^?]*")))&&e[0]?{ig:_G.IG,rid:e[0].split("=Codex-")[1]}:o}};_w.bbe="A:rms:answers:Shared:BingCore.Bundle";define("fallback",["require","exports"],function(n,t){functionf(){returnfunction(){for(varr,h,c,t=[],n=0;n=0){for(rinf)c=f[r],typeofc=="number"&&c>0&&r!=="nigationStart"&&r!==h&&u.mark(r,c);_G.FCT&&u.mark("FN",_G.FCT);_G.BCT&&u.mark("BN",_G.BCT)}u.record("n",hinf?f[h]:performance[h].type)}e="connection";l="";_w.nigator&&nigator[e]&&(l=',"net":"'.concat(nigator[e].type,'"'),nigator[e].downlinkMax&&(l+=',"dlMax":"'.concat(nigator[e].downlinkMax,'"')));o=_w.ChatMergeLogHelper;typeofo!="undefined"&&o&&typeofo.getBotRequestId=="function"&&(v=o.getBotRequestId());_G.PPImg=newIme;_G.PPImg.src=_G.lsUrl+'&Type=Event.CPT&DATA={"pp":{"S":"'+(t||"L")+'",'+s.join(",")+',"CT":'+(n-_G.ST)+',"IL":'+_d.imes.length+"}"+(_G.C1?","+_G.C1:"")+l+(v?',"rid":"'+v+'"':"")+"}"+(_G.P?"&P="+_G.P:"")+(_G.DA?"&DA="+_G.DA:"")+(_G.MN?"&MN="+_G.MN:"");_G.PPS=1;sb_st(function(){u&&u.flush();sj_evt.fire("onPP");sj_evt.fire(_w.p1)},1)}};_w.onbeforeunload=function(){si_PP(newDate,"A")};sj_evt.bind("ajax.requestSent",function(){window.perf&&perf.reset()});(function(n){vari,r,t;iTraslatore Webf(document.querySelector){i=[];r="ad";functionu(){vard=sb_gt(),v=document.documentElement,h=document.body,t=0,u=-1,g=v.clientHeight,y=["#b_results."+_G.adc,".sb_adsWv2",".ads"],r,e,o,b,l,s,n,f,a,k;if(h){r=0;e=document.querySelector("#b_pole.b_PolePAContainer");e&&(r=e.offsetHeight,u=e.offsetTop);varp=document.querySelector("#b_results#productAdCarousel"),c=document.querySelector("#b_results.pa_b_supertop"),w=document.querySelector("#b_results.bn_wide");for(c?(u=c.offsetTop,r=c.offsetHeight):w?r+=w.offsetHeight:p&&(r+=p.offsetHeight),t=r,o=0;o文本翻译工具对话应用商用版帮助////"+RichTranslateLocTexts.POSTNameDictionary[p.key.toUpperCase()].toUpperCase()+"":""+RichTranslateLocTexts.POSTNameDictionary.OTHER+"",l+="",i=p.value,e=0;e0,a=transDom.getTextValueOfSide(1).toLowerCase();if(transDom.output.isInputOutputLangSame||p||e.length>r||a.length>r){sj_evt.fire(RichTranslateHelper.hideExpansionControlEvent);RichTranslateHelper.expCtrlReqStatus&&(RichTranslateHelper.expCtrlReqStatus.exampleSentencesStatus=RichTranslateHelper.AsyncEventState.Failed);i!=RichTranslateHelper.RequerySource.TextChange&&i!=RichTranslateHelper.RequerySource.Unknown&&sj_evt.fire(RichTranslateHelper.ajaxRequeryEvent,i);return}o=encodeURIComponent(transDom.getLangueCodeMapping(0));c=encodeURIComponent(transDom.getLangueCodeMapping(1));(t===null||t===void0?void0:t.hasOwnProperty(o))&&((h=(s=t[o])===null||s===void0?void0:s.Value)===null||h===void0?void0:h.includes(c))?AbusePreventionHelper.isEndpointTokenValid()?(y="&from="+o+"&to="+c+"&text="+encodeURIComponent(e)+"&translation="+encodeURIComponent(a)+AbusePreventionHelper.getEndpointAuthParams(),u=sj_gx(),u.open("POST",RichTranslateHelper.getInstEndPointUrl(f,transDom.iid,l++),!0),u.setRequestHeader("Content-type","application/x-"),u.onreadystatechange=function(){u.readyState===4&&(v(u),i!=RichTranslateHelper.RequerySource.TextChange&&i!=RichTranslateHelper.RequerySource.Unknown&&sj_evt.fire(RichTranslateHelper.ajaxRequeryEvent,i))},u.send(y)):(RichTranslateHelper.expCtrlReqStatus&&(RichTranslateHelper.expCtrlReqStatus.exampleSentencesStatus=RichTranslateHelper.AsyncEventState.Failed),RichTranslateHelper.hideElement(transDom.expansionCtrl.exampleSentencesTable.container.parentElement)):(RichTranslateHelper.hideElement(transDom.expansionCtrl.exampleSentencesTable.container.parentElement),RichTranslateHelper.expCtrlReqStatus&&(RichTranslateHelper.expCtrlReqStatus.exampleSentencesStatus=RichTranslateHelper.AsyncEventState.Failed),i!=RichTranslateHelper.RequerySource.TextChange&&i!=RichTranslateHelper.RequerySource.Unknown&&sj_evt.fire(RichTranslateHelper.ajaxRequeryEvent,i))}functionv(n){if(transDom.output.isInputOutputLangSame){sj_evt.fire(RichTranslateHelper.hideExpansionControlEvent);RichTranslateHelper.expCtrlReqStatus&&(RichTranslateHelper.expCtrlReqStatus.exampleSentencesStatus=RichTranslateHelper.AsyncEventState.Failed);return}if(n.status===200&&n.responseText)try{vart=JSON.parse(n.responseText);if(t&&t.length>0&&t[0]&&t[0].examples&&t[0].examples.length>0){translationClientInst.sLog(e);y(t[0].examples);return}translationClientInst.sLog(o)}catch(r){translationClientInst.log(i,h,r.messe)}elsetranslationClientInst.log(i,s,n.status);RichTranslateHelper.hideElement(transDom.expansionCtrl.exampleSentencesTable.container.parentElement);RichTranslateHelper.expCtrlReqStatus&&(RichTranslateHelper.expCtrlReqStatus.exampleSentencesStatus=RichTranslateHelper.AsyncEventState.Failed,RichTranslateHelper.expCtrlReqStatus.alternateTranslationsStatus==RichTranslateHelper.AsyncEventState.Successful?sj_evt.fire(RichTranslateHelper.showExpansionControlEvent):RichTranslateHelper.expCtrlReqStatus.alternateTranslationsStatus==RichTranslateHelper.AsyncEventState.Failed&&sj_evt.fire(RichTranslateHelper.hideExpansionControlEvent))}functiony(n){varr=transDom.expansionCtrl.exampleSentencesTable,i,t,f,e,o;r.container.innerHTML="";vars="li",h=sj_ce("div"),c=transDom.getTextValueOfSide(1);for(i=0;i0&&(i=t[0],i&&SuggestionsDropDown&&(RichTranslateHelper.updateTextArea(i,n.innerText),SuggestionsDropDown.HideDropDown(transDom.input.inputContainer),sj_evt.fire(RichTranslateHelper.inputTextAutoSuggestionSelected),translationClientInst.log(r,"fromLang",transDom.input.langSelect.value,"autosuggest_element",n.innerText))))}functionu(n){n||sj_evt.bind("suggestionsDropDownLoaded",function(){transDom.input.inputContainer&&(sj_be(sj_b,"click",function(){SuggestionsDropDown.HideDropDown(transDom.input.inputContainer)}),sj_be(sj_b,"touchend",function(){SuggestionsDropDown.HideDropDown(transDom.input.inputContainer)}))},1);sj_be(sj_b,"touchstart",function(){t=!1});sj_be(sj_b,"touchmove",function(){t=!0});sj_be(sj_b,"touchend",function(n){if(!t&&transDom.input.inputContainer){varr=f(transDom.input.inputContainer,n);r&&i(r)}})}functionf(n,t){for(vari=t.srcElement;i&&i.className!=null&&i!=n;){if(RichTranslateHelper.hasClass(i,"suggItem"))returni;i=i.parentElement}returnnull}vart=!1,r="AutoSuggestDropDownListSelected";n.OnClicked=i;n.init=u}(TranslationAS||(TranslationAS={}));//]]>//0&&CookieHelper.setItem(t,r,i)}vart="_tarLang",i="newFeature";n.init=r})(NewFeature||(NewFeature={}));varRecentLangues;(function(n){functionf(n,t,r){r&&(w(n,t,r),g(n,t,r),u&&t==i||sj_evt.fire(RichTranslateHelper.loadPhrasebookEvent))}functionw(n,t,r){t==i?k(n,t,r):b(n,t,r)}functionb(n,i,r){if(n!=null){varu=0;r==t&&(r=p);u=n.indexOf(r);u==-1?n.length>=h?n.shift():Log.Log(n.length.toString(),n.length,"OutputDronDownRecentlyUsedLangLength",!0):(n.splice(u,1),Log.Log(r,r,"OutPutDropDownRecentlyUsedLangClicked",!0));n.push(r);CookieHelper.setItem(i,btoa(JSON.stringify(n)),e)}}functionk(n,i,r){varf=-1,o,s;n!=null&&(n.length==0&&r!==t&&n.push(t),o=/\(/,s=l(i,n[n.length-1]),f=s.search(o),r!==t&&(d(n,r),CookieHelper.setItem(i,btoa(JSON.stringify(n)),e)),r!=t&&(f===-1||u)?CookieHelper.setItem(i,"0",c):CookieHelper.setItem(i,"1",c))}functiond(n,i){varr=n.indexOf(i);r==-1?(n.pop(),n.length>=h?n.shift():translationClientInst.log("InputDropDownRecentlyUsedLangLength","LangueListLength",n.length.toString())):(n.pop(),n.splice(r,1),translationClientInst.log("InputDropDownRecentlyUsedLangClicked","LangCode",i));n.push(i);n.push(t)}functiong(n,i,f){vara=-1,h,v,e,s,c,o;if(n!=null&&n.length!==0){for(h="",v=/\(/,e=n.length-1;e>=0;e--)s=l(i,n[e]),RichTranslateHelper.isNullOrEmpty(s)||(c=s,e==n.length-1&&(a=s.search(v),c=RichTranslateLocTexts.recentLanguesHeader+""+c),h+="").concat(s,""));i==r?(o=_ge("t_tgtRecentLang"),o.innerHTML=h,transDom.output.langSelect.selectedIndex=0,RichTranslateHelper.showElement(o),u=!1):(o=_ge("t_srcRecentLang"),o.innerHTML=h,transDom.input.langSelect.selectedIndex=f==t||a!==-1&&!u?0:1,RichTranslateHelper.showElement(o));sj_evt.fire(RichTranslateHelper.updateLangDropDownIndex)}}functionl(n,t){for(varu=n==r?transDom.output.langSelect:transDom.input.langSelect,f=u.length,i=0;i//-1}functioni(n,t){vari=null;if(n===0)i=transDom.input.transliterateBox,transDom.input.isTransliterationPresent=!t;elseif(n===1)i=transDom.output.transliterateBox,transDom.output.isTransliterationPresent=!t;elsereturn;t?(i.textContent="",RichTranslateHelper.hideElement(i)):RichTranslateHelper.showElement(i);transDom.getLangueCodeMapping(0)===gs&&(sa_cl(transDom.input.transliterateBox,ef,!0),sa_cl(transDom.output.transliterateBox,ef,!0))}functionfu(){rr=transDom.input.langSelect.selectedIndex;ur=transDom.output.langSelect.selectedIndex;nt=RichTranslateHelper.trimText(transDom.getTextValueOfSide(0))}functionae(n,t){if(ninw&&t){vari=w[n].Item1,r=w[n].Item2;t.innerHTML=''+r+"";RichTranslateHelper.showElement(t)}elset&&eu(t)}functioneu(n){n&&(n.innerHTML="",RichTranslateHelper.hideElement(n),RichTranslateHelper.hideElement(kr))}functionwi(){if(yf){varn=transDom.input.langSelect.value,t=transDom.output.langSelect.value;ninw||tinw?(ae(n,transDom.input.langAttribution),ae(t,transDom.output.langAttribution),ninw&&tinw&&RichTranslateHelper.showElement(kr),y&&RichTranslateHelper.showElement(transDom.input.langAttribution.parentElement)):(eu(transDom.input.langAttribution),eu(transDom.output.langAttribution),y&&RichTranslateHelper.hideElement(transDom.input.langAttribution.parentElement))}}functionii(n,t){varu,s;t===void0&&(t=!1);transDom.output.functionalError.isOn=!0;RichTranslateHelper.isEdgePDFTranslator||RichTranslateHelper.updateTextArea(transDom.output.textArea,"");RichTranslateHelper.hideElement(transDom.output.playIconContainer);transDom.output.longTextError.isOn=RichTranslateHelper.hideElement(transDom.output.longTextError.container);varr=_ge("tta_FE"),f=_ge("tta_QE"),o=_d.querySelector(".tta_err_debInfo");t?(RichTranslateHelper.hideElement(r),RichTranslateHelper.showElement(f)):(RichTranslateHelper.showElement(r),RichTranslateHelper.hideElement(f),u=r.firstElementChild,u&&(s=sr+"&text="+encodeURIComponent(transDom.getTextValueOfSide(0))+"&from="+(transDom.input.langSelect.value==="auto-detect"?"":encodeURIComponent(transDom.input.langSelect.value))+"&to="+encodeURIComponent(transDom.output.langSelect.value),u.href=s));RichTranslateHelper.isNullOrEmpty(ru)?RichTranslateHelper.hideElement(o):(RichTranslateHelper.showElement(o),_ge("tta_err_debId").textContent=ru);transDom.output.functionalError.container.dir=_G.RTL?p:e;transDom.output.functionalError.container.className="tta_err"+lr[lf-1];transDom.output.isTransliterationPresent&&i(1,!0);RichTranslateHelper.isZoomIconClicked&&ZoomControl.closeZoomControl();RichTranslateHelper.hideElement(transDom.output.outputControl);RichTranslateHelper.hideElement(transDom.output.regenTransContainer);RichTranslateHelper.hideElement(transDom.output.textAreaUrlWrapper);RichTranslateHelper.hideElement(transDom.output.genderDebiasContainer);fi(!1,!0);sj_evt.fire(RichTranslateHelper.autoScaleEvent);sj_evt.fire(RichTranslateHelper.domStabilizedEvent);translationClientInst.log(ss,"ErrorInfo",n,"IsSuperApp?",vi.toString(),"IsVertical?",RichTranslateHelper.isVertical.toString())}functionve(){translationClientInst.sLog(us);varn=transDom.getTextValueOfSide(0).slice(s);RichTranslateHelper.updateTextArea(transDom.input.textArea,transDom.getTextValueOfSide(0).slice(0,s));transDom.input.textAreainstanceofHTMLDivElement?(transDom.input.textArea.innerHTML+=''+n+"",ContentEditableDivHelper.setCursorToEndOfDiv(transDom.input.textArea),transDom.output.textArea.setAttribute("data-placeholder","")):transDom.output.textArea.setAttribute("placeholder","");transDom.input.editInputTextElement&&(transDom.input.editInputTextElement.textContent=transDom.input.textArea.textContent);transDom.output.longTextError.isOn=!0;transDom.output.longTextError.container.className="tta_longtta_err";transDom.output.longTextError.container.dir=_G.RTL?p:e;transDom.output.regenTransContainer!==null&&RichTranslateHelper.hideElement(transDom.output.regenTransContainer);sj_evt.fire(RichTranslateHelper.autoScaleEvent);sj_evt.fire(RichTranslateHelper.hideExpansionControlEvent);ye();sj_evt.fire(RichTranslateHelper.domStabilizedEvent)}functionuh(n,t){vari=RichTranslateHelper.stringFormat(hf,"",encodeURIComponent(transDom.getLangueCodeMapping(1)),encodeURIComponent(n));return''+t+""}functionfh(){varn=getComputedStyle(transDom.output.textArea),t=transDom.output.textAreaUrl;t.style.lineHeight=n.lineHeight;t.style.fontSize=n.fontSize;t.style.fontStyle=n.fontStyle;t.style.fontFamily=n.fontFamily;t.style.fontWeight=n.fontWeight;t.style.color=n.color;t.style.direction=transDom.output.textArea.dir;transDom.output.textAreaUrlIcon.style.width=Math.max(parseInt(n.fontSize.substr(0,n.fontSize.length-2))-8,20)+"px";t.style.maxWidth="calc(100%-".concat(transDom.output.textAreaUrlIcon.style.width,")")}functionye(){varn,t;transDom.expansionCtrl&&transDom.expansionCtrl.creditLinks&&(transDom.expansionCtrl.creditLinks[0]||transDom.expansionCtrl.creditLinks[1])&&(n="&text=",transDom.getTextValueOfSide(0).length200?RichTranslateHelper.hideElement(t):RichTranslateHelper.showElement(t))}functionht(){RichTranslateHelper.isEdgePDFTranslator||(transDom.input.asBox.innerHTML="",transDom.input.asBoxPrefixElement.innerHTML="",transDom.input.asBox.setAttribute(nf,RichTranslateLocTexts.langSuggestionDefaultAriaLabel),transDom.input.asBox.setAttribute(tf,RichTranslateLocTexts.langSuggestionDefaultAriaLabel),transDom.input.asBox.setAttribute(rf,""),RichTranslateHelper.hideElement(transDom.input.asBoxContainer))}functioneh(n,t){yt!==null&&clearTimeout(yt);yt=setTimeout(function(){ri(n)},t);li&&h==RichTranslateHelper.RequerySource.TextChange&&!ti&&(pt!==null&&clearTimeout(pt),pt=setTimeout(function(){sj_evt.fire(RichTranslateHelper.ajaxRequeryEvent,RichTranslateHelper.RequerySource.TextChange)},fe));return}functionri(n){if(!(transDom.input.textAreainstanceofHTMLTextAreaElement)||!(transDom.input.textArea.value.length>s)){if(v||(v=!0,RichTranslateHelper.isEdgePDFTranslator?RichTranslateHelper.updateTextArea(transDom.output.textArea,f):RichTranslateHelper.updateTextArea(transDom.output.textArea,transDom.getTextValueOfSide(1)+f),RichTranslateHelper.showingGenderDebiasedTranslations&&(RichTranslateHelper.updateTextArea(transDom.output.genderDebias.feminineTransModule.textArea,RichTranslateHelper.getTextAreaTextContent(transDom.output.genderDebias.feminineTransModule.textArea)+f),RichTranslateHelper.updateTextArea(transDom.output.genderDebias.masculineTransModule.textArea,RichTranslateHelper.getTextAreaTextContent(transDom.output.genderDebias.masculineTransModule.textArea)+f))),n){eh(!1,er);return}nc();++nu}}functionou(n,t){vari,r;return(t===void0&&(t=!0),i=RichTranslateHelper.trimText(transDom.getTextValueOfSide(n)),!i||i.length>TextToSpeechService.maximumCharacterSupport||!TextToSpeechService.isAudioLangueSupported(transDom.getLangueCodeMapping(n)))?!1:(t&&(r=transDom.getLangueCodeMapping(n),translationClientInst.log(ws,"AudioSource",n.toString(),"langue",r)),!0)}functionct(n){vart=RichTranslateHelper.trimText(transDom.getTextValueOfSide(n));ou(n)?(RichTranslateHelper.showElement(transDom.getPlayIconContainerOfSide(n)),n==1&&RichTranslateHelper.showingGenderDebiasedTranslations&&(RichTranslateHelper.showElement(transDom.output.genderDebias.feminineTransModule.playIcon),RichTranslateHelper.showElement(transDom.output.genderDebias.masculineTransModule.playIcon))):(RichTranslateHelper.hideElement(transDom.getPlayIconContainerOfSide(n)),n==1&&RichTranslateHelper.showingGenderDebiasedTranslations&&(RichTranslateHelper.hideElement(transDom.output.genderDebias.feminineTransModule.playIcon),RichTranslateHelper.hideElement(transDom.output.genderDebias.masculineTransModule.playIcon)))}functionui(){vars,c,l,f,t,n;if(sj_evt.fire(RichTranslateHelper.domChangeEvent),ye(),transDom.output.functionalError.isOn=RichTranslateHelper.hideElement(transDom.output.functionalError.container),transDom.output.longTextError.isOn||(transDom.output.textAreainstanceofHTMLTextAreaElement?transDom.output.textArea.setAttribute("placeholder",RichTranslateLocTexts.outputPlaceholderString):transDom.output.textArea.setAttribute("data-placeholder",RichTranslateLocTexts.outputPlaceholderString)),ci!==null&&clearInterval(ci),nr||(nr=!0),typeofTextToSpeechService!="undefined"&&TextToSpeechService.resetAudioControl(),a&&(a.onreadystatechange=null,a.abort()),f=RichTranslateHelper.trimText(transDom.getTextValueOfSide(0)),t=f==="",t?(RichTranslateHelper.hideElement(transDom.input.playIconContainer),RichTranslateHelper.hideElement(transDom.output.outputControl),RichTranslateHelper.hideElement(transDom.output.regenTransContainer),RichTranslateHelper.hideElement(transDom.output.textAreaUrlWrapper),fi(!y),RichTranslateHelper.updateTextArea(transDom.output.textArea,""),RichTranslateHelper.showElement(transDom.output.textArea),RichTranslateHelper.showingGenderDebiasedTranslations&&(RichTranslateHelper.hideElement(transDom.output.genderDebiasContainer),RichTranslateHelper.showElement(transDom.output.textAreaContainer)),u&&(transDom.input.langSelect.options[0].text=RichTranslateLocTexts.autoDetectText),sa_cl(transDom.input.textArea,"notxt",!0),sa_cl(transDom.output.textArea,"tta_output_hastxt",!1),n=_G.RTL?p:e,transDom.input.textArea.dir=transDom.output.textArea.dir=n,transDom.input.inputContainer&&(transDom.input.inputContainer.dir=n),transDom.output.regenTransContainer&&(transDom.output.regenTransContainer.dir=n),d()):(f&&f.length0&&(transDom.output.transliterateBox.textContent=t[0].text,i(1,!1),r="Success"));translatorTel.logEvent(TranslatorWebTelemetry.EventScope.Transliteration_Event,r,{fromLang:transDom.output.langSelect.value,fromScript:k[transDom.output.langSelect.value],toScript:it[transDom.output.langSelect.value],textLength:transDom.getTextValueOfSide(1).length})}functionbi(n){n===void0&&(n=!1);vart=transDom.getTextValueOfSide(0);if(t||(RichTranslateHelper.updateTextArea(transDom.output.textArea,transDom.getTextValueOfSide(0)),transDom.output.textAreaUrl&&(transDom.output.textAreaUrl.innerHTML=""),ti=!1),t!==nt){if(n||(h=RichTranslateHelper.RequerySource.TextChange),t.length>s||nt.length>s&&t.length==s){if(ve(),transDom.getTextValueOfSide(0).trim()==nt.trim())return!1}elseif(transDom.output.longTextError.isOn&&transDom.output.regenTransContainer!==null&&RichTranslateHelper.showElement(transDom.output.regenTransContainer),transDom.input.textAreainstanceofHTMLDivElement&&transDom.output.longTextError.isOn&&(transDom.input.textArea.innerHTML=transDom.input.textArea.textContent,ContentEditableDivHelper.setCursorToEndOfDiv(transDom.input.textArea)),transDom.output.longTextError.isOn=RichTranslateHelper.hideElement(transDom.output.longTextError.container),t.trim()==nt.trim())returnnt=t,!1;returnnt=t,!0}return(t.length>s&&ve(),transDom.input.langSelect.selectedIndex!==rr)?(h=RichTranslateHelper.RequerySource.SourceLangue,kt=!0,rr=transDom.input.langSelect.selectedIndex,ni||sj_evt.fire(RichTranslateHelper.loadPhrasebookEvent),!0):transDom.output.langSelect.selectedIndex!==ur?(h=RichTranslateHelper.RequerySource.TargetLangue,kt=!0,ur=transDom.output.langSelect.selectedIndex,ni||sj_evt.fire(RichTranslateHelper.loadPhrasebookEvent),!0):!1}functionbe(){varn=transDom.getTextValueOfSide(0).length;transDom.input.charCount&&n>ir?(RichTranslateHelper.showElement(transDom.input.charCount),transDom.input.charCount.textContent=n+"/"+s):transDom.input.charCount&&n0?RichTranslateHelper.showElement(transDom.input.clearBtnContainer):RichTranslateHelper.hideElement(transDom.input.clearBtnContainer));b&&pu();u||it.hasOwnProperty(transDom.input.langSelect.value)&&bt.indexOf(transDom.input.langSelect.value)!=-1||ke(!0);bi(n)&&(sj_evt.fire(RichTranslateHelper.hideInputMetaDataEvent),yi&&!dt&&RichTranslateHelper.hideElement(transDom.imeContainer),ui());be();transDom.input.editInputTextElement&&(transDom.input.editInputTextElement.textContent=transDom.getTextValueOfSide(0));sj_evt.fire(RichTranslateHelper.autoScaleEvent);kt=!1;transDom.input.inputChangeCue.button&&RichTranslateHelper.hideElement(transDom.input.inputChangeCue.button.parentElement)}functiond(){RichTranslateHelper.hideElement(transDom.speller);sj_evt.fire(RichTranslateHelper.autoScaleEvent)}functionhh(n){vart=n.trim().replace(//g,">");returnt.length=0&&(i=n=="auto-detect"?transDom.input.autoDetectedLangCode:n),vr.indexOf(i.toLowerCase())>=0&&pf.indexOf(t.toLowerCase())>=0}functionge(){vari,r,o,n,e;dt=!0;h=RichTranslateHelper.RequerySource.SwapLangue;l&&(this.sentenceCache=newSentenceCache);translationClientInst.log(wo,ft,transDom.input.langSelect.value,et,transDom.output.langSelect.value);translatorTel.logEvent(TranslatorWebTelemetry.EventScope.UXEngement_Event,"swappedclicked",{ux_action:"SwapButtonClicked"});TextToSpeechService.resetAudioControl();RichTranslateHelper.showingGenderDebiasedTranslations&&(GenderDebias.showOutputTextAreaAndHideGenderDebias(),RichTranslateHelper.showToneControl(!0));ni?sj_evt.fire(RichTranslateHelper.swapSourceAndTargetLangEvent):(i=transDom.input.langSelect.value,r=transDom.output.langSelect.value,transDom.input.langSelect.selectedIndex=transDom.getLangIndexFromLangCode(0,r),transDom.output.langSelect.selectedIndex=u?transDom.input.autoDetectSetAt===-1?0:transDom.input.autoDetectSetAt:transDom.getLangIndexFromLangCode(0,i),sj_evt.fire(RichTranslateHelper.loadPhrasebookEvent));transDom.input.langSelect.value!==transDom.output.langSelect.value&&sj_evt.fire(RichTranslateHelper.updateDefaultTargetLangEvent,transDom.getLangueCodeMapping(1));transDom.output.functionalError.isOn?(transDom.output.functionalError.isOn=RichTranslateHelper.hideElement(transDom.output.functionalError.container),RichTranslateHelper.updateTextArea(transDom.input.textArea,""),RichTranslateHelper.updateTextArea(transDom.output.textArea,"")):(o=transDom.getTextValueOfSide(0),n=transDom.getTextValueOfSide(1),v&&(e=n.lastIndexOf(f),e>0&&n.indexOf(f,n.length-f.length)&&(n=n.substr(0,e))),RichTranslateHelper.updateTextArea(transDom.input.textArea,n),RichTranslateHelper.updateTextArea(transDom.output.textArea,o));u&&(u=!1,transDom.input.langSelect.options[0].text=RichTranslateLocTexts.autoDetectText,transDom.input.autoDetectSetAt=-1,transDom.input.autoDetectedLangCode="");ct(0);ct(1);oi();c(!0);fu();wi();RichTranslateHelper.postMesseToEdgePDFTranslatorParent(RichTranslateHelper.edgePDFTranslatorMesseId.TargetLangChange,{TargetLangue:transDom.output.langSelect.value});RichTranslateHelper.isToneTranslationEnabled()&&(fi(!0,!0),t.Standard.translation=transDom.getTextValueOfSide(1),t.Standard.transliteration=transDom.output.transliterateBox.textContent);gt&&(TransKeyboardScriptLoader.isKeyboardSupported(transDom.input.langSelect.value,transDom.input.keyboardIcon),TransKeyboardScriptLoader.LangueChangeEvent(transDom.input.keyboardIcon));sj_evt.fire(RichTranslateHelper.sourceLangChanged);sj_evt.fire(RichTranslateHelper.domStabilizedEvent);RichTranslateHelper.showElement(transDom.ariaLiveDiv);RichTranslateHelper.ShouldNotHideAriaLive=!0;vars=transDom.input.langSelect,a=transDom.output.langSelect,i=s.options[s.selectedIndex].text,r=a.options[a.selectedIndex].text;transDom.ariaLiveElement.textContent=i+""+RichTranslateLocTexts.accessibilityText_To+""+r;translationClientInst.log(di,"sourceLang",transDom.input.langSelect.value,"changeMode","swap");dt=!1;setTimeout(function(){RichTranslateHelper.hideElement(transDom.ariaLiveDiv)},1e3)}functionkh(n){vart=n.keyCode?n.keyCode:n.charCode,r=sj_et(n),i;t>34&&tai?(transDom.input.inputChangeCue.text.title=w,w=w.slice(0,ai-3)+"..."):transDom.input.inputChangeCue.text.removeAttribute("title"),transDom.input.inputChangeCue.text.textContent=w,g=!0)):transDom.input.transliterateBox.dir=e):transDom.input.inputChangeCue.text&&c&&c.length>1&&c[1].hasOwnProperty("numeralWildInWords")&&!RichTranslateHelper.isNullOrEmpty(c[1].numeralWildInWords)&&(w=c[1].numeralWildInWords,transDom.input.inputChangeCue.button.ariaLabel=RichTranslateLocTexts.translatingSubHeading+""+w,w.length>ai?(transDom.input.inputChangeCue.text.title=w,w=w.slice(0,ai-3)+"..."):transDom.input.inputChangeCue.text.removeAttribute("title"),transDom.input.inputChangeCue.text.textContent=w,g=!0),it.hasOwnProperty(transDom.input.langSelect.value)&&bt.indexOf(transDom.input.langSelect.value)!=-1&&ei(),ht=o===transDom.output.langSelect.value,transDom.output.isInputOutputLangSame=ht||transDom.output.langSelect.value===transDom.input.langSelect.value,transDom.output.isInputOutputLangSame&&sj_evt.fire(RichTranslateHelper.hideExpansionControlEvent),b="",wt="",a&&a.length!==0&&a[0].hasOwnProperty("text"))if(b=a[0].text,wt=a[0].transliteration,st||!l||d==null||d.getCurrentString()==null||at)st?st=!1:b==a[0].text&&g&&RichTranslateHelper.showElement(transDom.input.inputChangeCue.button.parentElement);else{if(kt=[],a[0].sentLen!=null&&a[0].sentLen.srcSentLen!=null&&a[0].sentLen.transSentLen!=null){varnt=a[0].sentLen.srcSentLen,dt=a[0].sentLen.transSentLen,tt=0,gt=0;if(nt.length==dt.length)for(k=0;k0&&e?(transDom.output.textAreaUrl.innerHTML=t.join(""),sj_evt.fire(RichTranslateHelper.autoScaleEvent),fh(),!0):!1}functionuo(n){RichTranslateHelper.isEdgeShoreLineToolBox||RichTranslateHelper.isEdgePDFTranslator||(RichTranslateHelper.expCtrlReqStatus=newRichTranslateHelper.ExpansionControlRequestStatus,sj_evt.fire(RichTranslateHelper.fetchAltTranslationEvent),sj_evt.fire(RichTranslateHelper.fetchExSentenceEvent,n))}functionec(n,r){varu="Standard";if(RichTranslateHelper.isToneTranslationEnabled()&&(u=transDom.output.toneSelect.value),!n||!n.text||n.text==r||transDom.output.longTextError.isOn&&transDom.output.isTransliterationPresent){transDom.output.transliterateBox.textContent="";t[u].transliteration="";i(1,!0);return}transDom.output.transliterateBox.textContent=n.text;t[u].transliteration=n.text;transDom.output.isTransliterationPresent||i(1,!1)}functionlt(n){varu=n?n:_w.event,t=sj_ev(u)?sj_ev(u).type:null,r=sj_et(u),e,f;if(r===transDom.input.textArea&&(t==="keyup"||t==="input")&&(RichTranslateHelper.inputFromSoftKeyboard=!1),r===transDom.input.textArea&&(t==="input"||t==="click"))c(),t==="input"&&(sj_evt.fire(RichTranslateHelper.hidePhraseBookExpansionElement),RichTranslateHelper.isEdgePDFTranslator&&!le&&(RichTranslateHelper.postMesseToEdgePDFTranslatorParent(RichTranslateHelper.edgePDFTranslatorMesseId.ToolUsed,{ToolName:"TypeInputText"}),le=!0));elseif(r===transDom.getLangSelectOfSide(e=0)||r===transDom.getLangSelectOfSide(e=1))t==="click"||t==="change"?bi()&&(hu(e),translatorTel.logEvent(TranslatorWebTelemetry.EventScope.UXEngement_Event,"LangueSelectclicked",{ux_action:e?"FromLangueSelectClicked":"ToLangueSelectClicked"})):t==="keyup"&&kh(u);elseif(r===transDom.revIcon||r===transDom.revIcon.firstElementChild.firstElementChild){RichTranslateHelper.UseInputTransliterationForTTS=!1;switch(t){case"click":ge();break;case"keyup":f=u.keyCode?u.keyCode:u.charCode;f===RichTranslateHelper.enterKeyCode&&ge()}}elseif(r===transDom.input.asBox)t==="click"?no():t==="keyup"&&(f=u.keyCode?u.keyCode:u.charCode,f===RichTranslateHelper.enterKeyCode&&no());elseif(r===transDom.output.copyIcon)switch(t){case"click":vu(transDom.output.textArea);break;case"keyup":f=u.keyCode?u.keyCode:u.charCode;f===RichTranslateHelper.enterKeyCode&&vu(transDom.output.textArea)}elsetransDom.output.regenTransIcon!==null&&(r===transDom.output.regenTransIcon||r===transDom.output.regenTransIcon.parentElement||r===transDom.output.regenTransIcon.firstChild||r===transDom.output.regenTransIcon.parentElement.parentElement)?t==="click"&&(translationClientInst.log("RegenTransClicked",ft,transDom.input.langSelect.value,et,transDom.output.langSelect.value,hi,transDom.output.toneSelect.value),uu=!0,pi=transDom.getTextValueOfSide(1),RichTranslateHelper.updateTextArea(transDom.output.textArea,""),i(1,!0),RichTranslateHelper.hideElement(transDom.output.regenTransContainer),sj_evt.fire(RichTranslateHelper.hideExpansionControlEvent),ri(!1)):RichTranslateHelper.isToneTranslationEnabled()&&r==transDom.output.toneSelect?t==="change"?(vh(),translationClientInst.log("ToneChangedUsingDropDown","tone",transDom.output.toneSelect.value)):t==="click"&&translationClientInst.log("ToneDropDownClicked","tone",transDom.output.toneSelect.value):RichTranslateHelper.enableLLMGenderTranslation&&r==transDom.output.genderSelect&&(t==="change"?(ri(!1),translationClientInst.log("GenderChangedUsingDropDown","gender",transDom.output.genderSelect.value)):t==="click"&&translationClientInst.log("GenderDropDownClicked","gender",transDom.output.genderSelect.value))}functionoc(){translationClientInst.sLog(ku);RichTranslateHelper.isEdgeShoreLineToolBox&&typeofsj_log2=="function"&&sj_log2("Click",ku,RichTranslateHelper.translateThisServiceName,RichTranslateHelper.defaultScenarioName,RichTranslateHelper.shoreLineAppNS,RichTranslateHelper.shoreLineKValue,{});au()}functionau(){if(RichTranslateHelper.isVertical&&!ce){ce=!0;varn=newMouseEvent("mousedown",{view:window,bubbles:!0,cancelable:!1});_ge("tta_vLink").dispatchEvent(n)}}functionvu(n,t){vare,o,r,u,i,f;t===void0&&(t="");translatorTel.logEvent(TranslatorWebTelemetry.EventScope.UXEngement_Event,"copybuttonclicked",{ux_action:"CopyButtonClicked"});translationClientInst.log(ps,"fromLang",transDom.input.langSelect.value,"toLang",transDom.output.langSelect.value,"translatedTextLen",transDom.getTextValueOfSide(1).length.toString());RichTranslateHelper.postMesseToEdgePDFTranslatorParent(RichTranslateHelper.edgePDFTranslatorMesseId.ToolUsed,{ToolName:"Copy"});RichTranslateHelper.isPeTranslationDetected?(e=_d.createRange(),e.selectNodeContents(transDom.output.textAreaUrl),o=window.getSelection(),o.removeAllRanges(),o.addRange(e)):RichTranslateHelper.selectTextInElement(n);r=!1;try{r=_d.execCommand("copy")}catch(s){r=!1}RichTranslateHelper.isNullOrEmpty(t)?(u=transDom.output.copyIcon,i=transDom.output.copyStatusBox,f=transDom.output.copyBoxPointer):(u=_ge(transDom.output.copyIcon.id+t),i=_ge(transDom.output.copyStatusBox.id+t),f=_ge(transDom.output.copyBoxPointer.id+t));r?(translationClientInst.sLog(is),i.textContent=RichTranslateLocTexts.copySuccessText,n.focus(),setTimeout(function(){RichTranslateHelper.showElement(transDom.ariaLiveDiv);transDom.ariaLiveElement.textContent=RichTranslateLocTexts.copyTranslationSuccessText},1e3)):(translationClientInst.sLog(rs),i.textContent=RichTranslateLocTexts.copyFailText,setTimeout(function(){RichTranslateHelper.showElement(transDom.ariaLiveDiv);transDom.ariaLiveElement.textContent=RichTranslateLocTexts.copyFailText},1e3));RichTranslateHelper.showElement(i);RichTranslateHelper.showElement(f);vi&&sa_cl(u,"tta_copyfocus",!0);setTimeout(function(){RichTranslateHelper.hideElement(i);RichTranslateHelper.hideElement(f);vi&&sa_cl(u,"tta_copyfocus",!1)},1e3)}functionfo(){yt!==null&&clearTimeout(yt);ci!==null&&clearTimeout(ci);or!==null&&clearInterval(or);sj_evt.unbind("ajax.unload",fo)}functioneo(){fr=!0;c()}functionoo(){eo();transDom.getTextValueOfSide(0)&&(tr=!0)}functionsc(){so();TextToSpeechService.isAudioLangueSupported(transDom.getLangueCodeMapping(1))&&setTimeout(function(){RichTranslateHelper.showingGenderDebiasedTranslations||TextToSpeechTranslationDomHandler.playAudioContent(transDom.output.playIcon)},vo)}functionso(){sa_cl(transDom.container,"ttastable",!0)}functionyu(n,t){transDom.input.inputContainer.setAttribute(n,t)}functionhc(n,t){returnt-1}functionpu(){transDom.input.inputContainer&&(RichTranslateHelper.ShouldNotHideAriaLive=!1,hc(transDom.input.langSelect.value,transDom.getTextValueOfSide(0).length)?(yu("data-ttasgparams","&lang="+transDom.input.langSelect.value),yu("data-ttasgenabled","true")):yu("data-ttasgenabled","false"))}functionho(){RichTranslateHelper.updateTextArea(transDom.input.textArea,"");translationClientInst.log(ys,"textLength",transDom.getTextValueOfSide(0).length.toString());sj_evt.fire(RichTranslateHelper.suggestionsDropDownQueryChangeEvent);transDom.input.textArea.focus();c(!0);fi(!y,!0)}functionco(n){sj_evt.bind(RichTranslateHelper.domStabilizedEvent,so);sj_evt.bind(RichTranslateHelper.domStabilizedAfterVoiceEvent,sc);sj_evt.bind(RichTranslateHelper.domChangeEvent,function(){sa_cl(transDom.container,"ttastable",!1)});or=setInterval(function(){nr=!1},th);sj_evt.fire(RichTranslateHelper.updateDefaultTargetLangEvent,transDom.getLangueCodeMapping(1));transDom.input.clearBtnElement&&(sj_be(transDom.input.clearBtnElement,"click",ho),sj_be(transDom.input.clearBtnElement,"keydown",function(n){n.keyCode===RichTranslateHelper.enterKeyCode&&ho()}));oe?sj_evt.bind(RichTranslateHelper.sharedMicControlTriggerEvtName,oo):(sj_evt.bind(RichTranslateHelper.micInputStartedEvent,be),sj_evt.bind(RichTranslateHelper.micInputListeningEvent,eo),sj_evt.bind(RichTranslateHelper.micInputEndEvent,oo));fu();sj_evt.fire(RichTranslateHelper.autoScaleEvent);wi();translationClientInst.log(os,"fromLang",transDom.getLangueCodeMapping(0),"targetLang",transDom.getLangueCodeMapping(1),"inputText",transDom.getTextValueOfSide(0),"outputText",transDom.getTextValueOfSide(1),"inputTransliteration",transDom.input.transliterateBox.textContent,"outputTransliteration",transDom.output.transliterateBox.textContent,"isFirstTimeUser",tu.toString());ee=transDom.getLangueCodeMapping(1);iu=transDom.getLangueCodeMapping(0);vt||(n&&(u=!0,transDom.input.autoDetectSetAt=-1,transDom.input.autoDetectedLangCode=""),""+transDom.getTextValueOfSide(1)===f&&(v=!0),ui(),sj_evt.fire(RichTranslateHelper.autoScaleEvent));!vt&&(vt||transDom.getTextValueOfSide(0))||sj_evt.fire(RichTranslateHelper.domStabilizedEvent);vt&&transDom.getTextValueOfSide(0).length0)for(i=u[0].firstElementChild,c=function(n){sj_be(i.children[n],"click",function(t){pt(t,i.children[n])});sj_be(i.children[n],"keydown",function(t){t.keyCode===RichTranslateHelper.enterKeyCode&&pt(t,i.children[n])})},n=1;n0)for(i=u[1].firstElementChild,l=function(n){i.children[n].className.search("seperator")==-1&&(sj_be(i.children[n],"click",function(t){y(r,e[n-1],t)}),sj_be(i.children[n],"keydown",function(t){t.keyCode===RichTranslateHelper.enterKeyCode&&y(r,e[n-1],t)}))},n=0;n0)for(n=0;n0&&(o=h[0],o&&(sj_be(o,"click",gt),sj_be(o,"keydown",function(n){n.keyCode===RichTranslateHelper.enterKeyCode&>()})))}functionut(){varr=t.getElementsByClassName("tt_phRows"),f,u,i,e,n;if(r&&r.length>0)for(f=function(n){sj_be(r[n],"click",function(){dt(r[n])});sj_be(r[n],"keydown",function(t){t.keyCode===RichTranslateHelper.enterKeyCode&&dt(r[n])})},n=0;n0)for(n=0;n0)for(e=function(n){sj_be(i[n],"click",function(t){bt(t,i[n])});sj_be(i[n],"keydown",function(t){t.keyCode===RichTranslateHelper.enterKeyCode&&bt(t,i[n])})},n=0;n0)for(u=i[1].firstElementChild,s=function(i){i==0&&e&&(o=t.getElementsByClassName("tt_overlymorephrs")[0],o&&RichTranslateHelper.showElement(o));sj_be(u.children[i],"click",function(t){y(r,n[i],t)});sj_be(u.children[i],"keydown",function(t){t.keyCode===RichTranslateHelper.enterKeyCode&&y(r,n[i],t)})},f=0;f0}functionb(n){if(d(n,"none"),!n.collapsible&&n.enableRoundChevron){vart=_ge(n.hitId);t&&Lib.CssClass.add(t,"b_exp_rc_no_collapse")}}functionk(n){d(n,"")}functiond(n,t){varr=_ge(n.id),i;r&&(i=r.parentNode,i.className=="sml"||i.className=="btm_sml"?i.style.display=t:r.style.display=t)}functionst(n){if(n.length===2){vart=sj_ce("div");e(n[0],t);e(n[1],n[0]);e(t,n[1])}}functione(n,t){while(n.childNodes.length>0){t.appendChild(n.childNodes[0]);vari=t.firstChild;t.childNodes.length===1&&t.tName==="SPAN"&&t.parentElement.id==="ic_desc"&&(i.tabIndex=0,i.focus())}}functiono(n,t){varf="movech",i=n[f],r,u;if(!i||t){if(i=[],r=n.childNodes,r)for(u=0;u-1||e.indexOf("thumb_tum")>-1)&&sj_evt.fire("HightLightScreenShotById",e,"li",["b_results","b_context"],"ol")}catch(o){n.le("Packeloadcallbackfailed",o);throwo;}}});u[f]=!0}varu={},i="undefined",r;t.staticConfig={};n.PackeLoad.GetHTML=function(){return_d.documentElement.outerHTML};n.PackeLoad.Load=function(n,t,f,e,o){varh,c;t=typeoft===i?!0:t;f=typeoff===i?"":f;c=typeofo!=i&&o&&o.feedbackContainerId;r=_ge(f);for(hinn)n.hasOwnProperty(h)&&(!t||c||typeofu[h]===i)&&s(h,f,e,o)}})(t=n.PackeLoad||(n.PackeLoad={}))}(Feedback||(Feedback={})),function(n){vart;(function(){"usestrict";n.RouteProvider.Provide=function(n){returnn==="pe"?"sdk/form":n}})(t=n.RouteProvider||(n.RouteProvider={}))}(Feedback||(Feedback={})),function(n){vart;(function(n){"usestrict";n.submit={registered:{},use:function(n,t){this.registered[n]=t},clear:function(){this.registered={}}}})(t=n.Hooks||(n.Hooks={}))}(Feedback||(Feedback={}));varfbpkgiid=fbpkgiid||{};fbpkgiid.pe='translator.5058';;_w.rms.js({'A:rms:answers:Shared:BingCore.Bundle':'\/rp\/F9la2nZ1ZNB9SOknMS617g83bAw.js'},{'A:0':0},{'A:rms:answers:HomepeVNext:PreactLibrary':'\/rp\/a9PfjU7qc2g7-52bmseJyFaH8.js'},{'A:rms:answers:HomepeVNext:SpeechSDKClone':'\/rp\/FWhkflrNeDUyHYRwJN8__fYp5Uc.js'},{'A:rms:answers:HomepeVNext:PostloadedSpeechPreactBundle':'\/rp\/VV8RY60C7Jf3-WLjceOaJmev68g.js'},{'A:rms:answers:TranslateThis:SharedMicHelper':'\/rp\/8eNAleCa6msb2ozSDi9MgBt9E.js'},{'A:1':1},{'A:rms:answers:BoxModel:Framework':'\/rp\/rCn9bF42JcFEU191FH2Qwd2oz-c.js'},{'A:2':2},{'A:rms:answers:Clarity:Clarity':'\/rp\/2-sIUckUDMkxyD3-cFZXwZCFZ_I.js'},{'A:rms:answers:SharedStaticAssets:WebVitals':'\/rp\/hOpjVE2mSiNVJWsLrpc64ergTOY.js'},{'A:rms:answers:WebVitals:WebVitalsMetrics4':'\/rp\/vkKlDoUyGOL4PeOKzDZAxZIlz68.js'},{'A:rms:answers:VisualSystem:IPv6Test':'\/rp\/OUGU-N0FiScxTUHgZZYbR2CE9yQ.js'},{'A:3':3},{'A:rms:answers:Identity:SnrWindowsLiveConnectBootstrap':'\/rp\/gHnUu0CTgjxwjE35YE0MmgFcCL0.js'});;//]]>//0&&(e=l(function(){c();s(r,!1)},f))};varCaptchaControl;(function(n){functiono(n){n===void0&&(n=RichTranslateHelper.visualCaptchaType);vart=RichTranslateHelper.getInstEndPointUrl(Shared.formatString(f,n),e,-1);sj_ajax(t,{callback:c});RichTranslateHelper.hideElement(_ge("tta_capImg"));RichTranslateHelper.showElement(_ge("tta_capSpin"))}functionc(n,f){n&&f?(translatorTel.logEvent(TranslatorWebTelemetry.EventScope.Captcha_Event,"captchafetchsuccess",{ux_action:"CaptchaFetchSuccess",fd_botClassification:RichTranslateHelper.frontDoorBotClassification,isSignedInOrCorporateUser:RichTranslateHelper.isSignedInOrCorporateUser}),t.innerHTML="",f.appendTo(t),t.style.height=i.style.height,RichTranslateHelper.hideElement(i),r&&r.classList.contains("b_hide")?u=!0:(u=!1,RichTranslateHelper.hideElement(r)),RichTranslateHelper.showElement(t)):translatorTel.logEvent(TranslatorWebTelemetry.EventScope.Captcha_Event,"captchafetchfail",{ux_action:"CaptchaFetchFail",fd_botClassification:RichTranslateHelper.frontDoorBotClassification,isSignedInOrCorporateUser:RichTranslateHelper.isSignedInOrCorporateUser})}functionl(){translatorTel.logEvent(TranslatorWebTelemetry.EventScope.Captcha_Event,"captchasolvedsuccess",{ux_action:"CaptchaSolveSuccess",fd_botClassification:RichTranslateHelper.frontDoorBotClassification,isSignedInOrCorporateUser:RichTranslateHelper.isSignedInOrCorporateUser});RichTranslateHelper.hideElement(t);RichTranslateHelper.showElement(i);u||RichTranslateHelper.showElement(r);sj_evt.fire(RichTranslateHelper.captchaSuccessEndEvent)}functiona(r,u){(RichTranslateHelper.isVertical||(t=s,i=h),t&&r)&&(f=r,n.verifyCaptchaUrl=u,e=t.getAttribute("data-iid"),sj_evt.bind(RichTranslateHelper.showCaptchaEvent,function(){o(RichTranslateHelper.visualCaptchaType)},!0),sj_evt.bind(RichTranslateHelper.showAudioCaptchaEvent,function(){o(RichTranslateHelper.audioCaptchaType)},!0),sj_evt.bind(RichTranslateHelper.captchaResolveSuccessEvent,l,!0))}varf,t=_ge("t_captchaBlock"),s=_ge("t_captchaBlockTTA"),e,i=_ge("tt_translatorHome"),r=_ge("t_lang_attr"),h=_ge("tt_txtContrl"),u=!1;n.init=a})(CaptchaControl||(CaptchaControl={}));CaptchaControl.init("/ttafetchcaptcha?isVertical=1\u0026type={0}","/tterifycaptcha/?isVertical=1\u0026solution={0}\u0026azureregion={1}\u0026captchaType={2}\u0026challengeId={3}");;varparams_AlternateTranslations=["/tlookupv3?isVertical=1\u0026",3,6,"af,am,ar,ary,arz,ast,be,bg,bn,ca,cs,cy,da,de,el,en,en-GB,es,et,fa,fi,fr,fr-CA,ga,gu,he,hi,hr,hu,id,is,it,iu,iu-Latn,ja,j,kk,km,kn,ko,lo,lt,lv,mk,ml,mr,ms,mt,my,nb,nl,pl,ps,pt,pt-PT,ro,ru,sk,sl,sr-Cyrl,su,sv,ta,te,th,tr,uk,ur,uz,vi,yue,zh-Hans,zh-Hant",true,true,false,{"af":{"Value":["en"]},"ar":{"Value":["en"]},"bg":{"Value":["en"]},"bn":{"Value":["en"]},"bs":{"Value":["en"]},"ca":{"Value":["en"]},"cs":{"Value":["en"]},"cTraslatore Weby":{"Value":["en"]},"da":{"Value":["en"]},"de":{"Value":["en"]},"el":{"Value":["en"]},"en":{"Value":["af","ar","bg","bn","bs","ca","cs","cy","da","de","el","es","et","fa","fi","fr","he","hi","hr","ht","hu","id","is","it","ja","ko","lt","lv","ms","mt","mww","nb","nl","pl","pt","ro","ru","sk","sl","sr-Latn","sv","sw","ta","th","tlh","tr","uk","ur","vi","zh-Hans"]},"es":{"Value":["en"]},"et":{"Value":["en"]},"fa":{"Value":["en"]},"fi":{"Value":["en"]},"fr":{"Value":["en"]},"he":{"Value":["en"]},"hi":{"Value":["en"]},"hr":{"Value":["en"]},"ht":{"Value":["en"]},"hu":{"Value":["en"]},"id":{"Value":["en"]},"is":{"Value":["en"]},"it":{"Value":["en"]},"ja":{"Value":["en"]},"ko":{"Value":["en"]},"lt":{"Value":["en"]},"lv":{"Value":["en"]},"ms":{"Value":["en"]},"mt":{"Value":["en"]},"mww":{"Value":["en"]},"nb":{"Value":["en"]},"nl":{"Value":["en"]},"pl":{"Value":["en"]},"pt":{"Value":["en"]},"ro":{"Value":["en"]},"ru":{"Value":["en"]},"sk":{"Value":["en"]},"sl":{"Value":["en"]},"sr-Latn":{"Value":["en"]},"sv":{"Value":["en"]},"sw":{"Value":["en"]},"ta":{"Value":["en"]},"th":{"Value":["en"]},"tlh":{"Value":["en"]},"tr":{"Value":["en"]},"uk":{"Value":["en"]},"ur":{"Value":["en"]},"vi":{"Value":["en"]},"zh-Hans":{"Value":["en"]}}];varparams_ExampleSentences=["/texamplev3?isVertical=1\u0026",true,2,{"ar":{"Value":["en"]},"cs":{"Value":["en"]},"de":{"Value":["en"]},"el":{"Value":["en"]},"en":{"Value":["ar","cs","de","el","es","fr","hi","hu","id","it","ja","ko","nl","pl","pt","pt-PT","ru","sv","th","tr","uk","vi","zh-Hans","zh-Hant"]},"es":{"Value":["en"]},"fr":{"Value":["en"]},"hi":{"Value":["en"]},"hu":{"Value":["en"]},"id":{"Value":["en"]},"it":{"Value":["en"]},"ja":{"Value":["en"]},"ko":{"Value":["en"]},"nl":{"Value":["en"]},"pl":{"Value":["en"]},"pt":{"Value":["en"]},"pt-PT":{"Value":["en"]},"ru":{"Value":["en"]},"sv":{"Value":["en"]},"th":{"Value":["en"]},"tr":{"Value":["en"]},"uk":{"Value":["en"]},"vi":{"Value":["en"]},"zh-Hans":{"Value":["en"]},"zh-Hant":{"Value":["en"]}}];varparams_TranslationAS=[true];if(typeof(SmartRendering)!=='undefined'){SmartRendering.LoadElementWhenDisplayed(this,transDom.container,AlternateTranslations.init,params_AlternateTranslations);SmartRendering.LoadElementWhenDisplayed(this,transDom.container,ExampleSentences.init,params_ExampleSentences);SmartRendering.LoadElementWhenDisplayed(this,transDom.container,TextToSpeechTranslationDomHandler.init,[]);if(true){SmartRendering.LoadElementWhenDisplayed(this,transDom.container,TranslationAS.init,params_TranslationAS);}}else{AlternateTranslations.init.apply(this,params_AlternateTranslations);ExampleSentences.init.apply(this,params_ExampleSentences);TextToSpeechTranslationDomHandler.init.apply(this,[]);if(true){TranslationAS.init.apply(this,params_TranslationAS);}}RichTranslate.bindMutationObserver();;varparams_RichTranslateRecentLangues=[3];RecentLangues.init.apply(this,params_RichTranslateRecentLangues);;PhraseBook.init("srcLang={0}\u0026targetLang={1}\u0026categoryID={2}\u0026categoryName={3}\u0026isVertical={4}\u0026isSuperApp={5}",true,true,"en",["af","am","ar","as","az","bg","bn","bs","ca","cs","cy","da","de","el","en","es","et","fa","fi","fil","fj","fr","fr-CA","ga","gu","he","hi","hr","ht","hu","hy","id","is","it","iu","ja","kk","kmr","kn","ko","ku","lt","lv","mg","mi","ml","mr","ms","mt","mww","my","ne","nb","nl","or","otq","pa","pl","prs","ps","pt","pt-PT","ro","ru","sk","sl","sm","sq","sr-Cyrl","sr-Latn","sv","sw","ta","te","th","ti","tlh-Latn","to","tr","ty","uk","ur","vi","yua","yue","zh-Hans","zh-Hant"],false,false,false,"en",true);;varSuggestionsDropDown;(function(n){functiond(n){returnn.getElementsByClassName("ctxt")[0]}functiong(n){returnn.getElementsByClassName("ctxt")[0]}functionl(n){returnn&&n.className&&n.className.indexOf(r)==-1}functionnt(n,t){n.setAttribute(b,t)}functiono(n){returnn.getAttribute(b)}functiontt(n,t){n.setAttribute(k,t)}functionpt(n){returnn.getAttribute(k)}functionwt(n){returnn.getElementsByClassName(ct)[0]}functiona(n){returnn.getElementsByClassName(ht)[0]}functionbt(n){returnn.getAttribute("data-ttasgac")=="true"}functionkt(n){returnn.getAttribute("as-refresh")=="false"}functiondt(n){returnn.getAttribute("data-ttasgenabled")=="true"}functiongt(n,r){varu=g(n);sj_be(u,"keyup",function(t){ei(n,t,r)});sj_be(u,"keydown",function(t){fi(n,t)});sj_be(u,"click",function(t){vari=o(n);sj_evt.fire(c,u);v(n,i,RichTranslateHelper.getTextAreaTextContent(u),r,function(){});h(t)});sj_evt.bind(RichTranslateHelper.suggestionsDropDownQueryChangeEvent,function(){it(n,RichTranslateHelper.getTextAreaTextContent(u),r)});sj_evt.bind(c,function(t){varu=!0,r;if(t&&t.length>1&&kt(n))for(r=t[1];r;){if(r==n){u=!1;break}r=r.parentElement}u&&i(n)});sj_be(sj_b,"mouseout",function(i){varr=t(n,i);r&&ri(r)});sj_be(sj_b,"mouseover",function(i){varr=t(n,i);r&&ui(n,r)});sj_be(sj_b,"mousedown",function(i){varr=t(n,i);r&&oi(n,i,r)});sj_be(sj_b,"mouseup",function(i){varr=t(n,i);r&&ot(n,i,r)});sj_be(sj_b,"touchstart",function(i){varr=t(n,i);r&&si(n,r)});sj_be(sj_b,"touchend",function(i){varr=t(n,i);r&&ot(n,i,r)})}functiont(n,t){for(vari=t.srcElement,r;i&&i.className&&i!=n;){if(r=""+i.className,r.indexOf&&r.indexOf("suggItem")!=-1)returni;i=i.parentElement}returnnull}functionni(n,t){vari=d(n);sj_evt.fire(c,i);v(n,o(n),RichTranslateHelper.getTextAreaTextContent(i),t,function(){})}functionti(n,t){vari=a(n);l(i)||(sa_cl(i,r,!1),RichTranslateHelper.showElement(transDom.ariaLiveDiv),transDom.ariaLiveElement.innerText=Shared.formatString(RichTranslateLocTexts.autoSuggestAriaLive,t))}functioni(n){vart=a(n);l(t)&&sa_cl(t,r,!0);RichTranslateHelper.ShouldNotHideAriaLive||RichTranslateHelper.hideElement(transDom.ariaLiveDiv)}functionit(n,t,i){varr=o(n);t!=pt(n)&&t.indexOf("\n")==-1&&(v(n,r,t,i,function(){ii(n,r,t)}),tt(n,t),nt(n,t))}functionv(n,t,u,f,e){functions(t){varf=_ge("tta_speller_div"),i;f&&t&&sa_cl(f,r,!0);i=a(n);i.innerHTML="";sj_appHTML(i,t);ti(n,u);t.length>0&&translationClientInst.log(vt,"fromLang",transDom.input.langSelect.value,"suggestion_shown",t)}if(typeofsj_ajax!="undefined"&&(i(n),dt(n))){varo=f.replace("{query}",u)+n.getAttribute("data-ttasgparams");sj_ajax(o,{callback:function(n,t){n&&(s(t.request.responseText),e())}})}}functionii(n,t,i){varr=n.getElementsByClassName("suggItem"),u;r&&r.length>0&&(u=r[0].textContent,bt(n)&&i&&i.length>0&&u.indexOf(i)==0&&(!t||i.length>t.length)&&st(n,i,u.substr(i.length)))}functionri(n){ft(n)}functionui(n,t){Lib.CssClass.contains(t,e)||w(n,t)}functionrt(n,t){varh=wt(n),f,i;if(l(h)){varc=ut(n),r=c.filter(function(n){return!Lib.CssClass.contains(n,e)}),o=y(n),u=null;o?(f=r.indexOf(o),i=t===1?f+1:f-1,u=i>=0&&i////////