(function(){function e(e,t){try{const n=window.webkit;delete window["webkit"];window.webkit.messageHandlers[e].postMessage(t);window.webkit=n}catch(e){}}function t(){const e=new Uint32Array(4);window.crypto.getRandomValues(e);return e.reduce(((e="",t)=>e+t.toString(16).padStart(8,"0")),"")}class n{registeredApis={};frameId=t();registerApi(e,t){if(this.registeredApis[e]!==undefined){throw new Error(`API ${e} already registered.`)}this.registeredApis[e]=t}getRegisteredApi(e){return this.registeredApis[e]}getFrameId(){if(!this.frameId){this.frameId=t()}return this.frameId}registerFrame(){e("FrameBecameAvailable",{crwFrameId:this.getFrameId()})}}if(!window.__gCrWeb){window.__gCrWeb=new n}const r=window.__gCrWeb;const i=window.__gCrWeb;let o;let a=0;function s(){if(document.documentElement.hasAttribute("translate")){if(document.documentElement.getAttribute("translate").toLowerCase()==="no"){return true}}for(const e of document.getElementsByTagName("meta")){if(e.name==="google"){if(e.content==="notranslate"||e.getAttribute("value")==="notranslate"){return true}}}return false}function d(e){for(const t of document.getElementsByTagName("meta")){if(t.httpEquiv&&t.httpEquiv.toLowerCase()===e){return t.content}}return""}const u=new Set(["EMBED","NOSCRIPT","OBJECT","SCRIPT","STYLE"]);function c(e,t){if(!e||t<=0){return""}let n="";if(e.nodeType===Node.ELEMENT_NODE&&e instanceof Element){if(!e.nodeName||u.has(e.nodeName)){return""}if(e.nodeName==="BR"){return"\n"}const t=window.getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden"){return""}if(e.nodeName.toUpperCase()!=="BODY"&&t.display!=="inline"){n="\n"}}if(e.hasChildNodes()){for(const r of e.childNodes){n+=c(r,t-n.length);if(n.length>=t){break}}}else if(e.nodeType===Node.TEXT_NODE&&e.textContent){n+=e.textContent.substring(0,t-n.length)}return n}function g(){const t=65535;a+=1;o=c(document.body,t);const n=d("content-language");const r={hasNoTranslate:false,htmlLang:document.documentElement.lang,httpContentLanguage:n,frameId:i.getFrameId()};if(s()){r["hasNoTranslate"]=true}e("LanguageDetectionTextCaptured",r)}function f(){const e=o;a-=1;if(a===0){o=null}return e}r.languageDetection={detectLanguage:g,retrieveBufferedTextContent:f}})();