(function(){function e(e,r){try{const a=window.webkit;delete window["webkit"];window.webkit.messageHandlers[e].postMessage(r);window.webkit=a}catch(e){}}function r(){const e=new Uint32Array(4);window.crypto.getRandomValues(e);return e.reduce(((e="",r)=>e+r.toString(16).padStart(8,"0")),"")}class a{registeredApis={};frameId=r();registerApi(e,r){if(this.registeredApis[e]!==undefined){throw new Error(`API ${e} already registered.`)}this.registeredApis[e]=r}getRegisteredApi(e){return this.registeredApis[e]}getFrameId(){if(!this.frameId){this.frameId=r()}return this.frameId}registerFrame(){e("FrameBecameAvailable",{crwFrameId:this.getFrameId()})}}if(!window.__gCrWeb){window.__gCrWeb=new a}const t=window.__gCrWeb;function n(){cr.googleTranslate.readyCallback=function(){e("TranslateMessage",{command:"ready",errorCode:cr.googleTranslate.errorCode,loadTime:cr.googleTranslate.loadTime,readyTime:cr.googleTranslate.readyTime})};cr.googleTranslate.resultCallback=function(){e("TranslateMessage",{command:"status",errorCode:cr.googleTranslate.errorCode,pageSourceLanguage:cr.googleTranslate.sourceLang,translationTime:cr.googleTranslate.translationTime})}}function o(e,r){cr.googleTranslate.translate(e,r)}function s(){try{cr.googleTranslate.revert()}catch{}}t.translate={installCallbacks:n,startTranslation:o,revertTranslation:s}})();