(function(){function e(e,r){try{const i=window.webkit;delete window["webkit"];window.webkit.messageHandlers[e].postMessage(r);window.webkit=i}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 i{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 i}const t=window.__gCrWeb;let n=false;t.setWebViewScrollViewIsDragging=function(e){n=e};const s=window.scrollTo;window.scrollTo=function(){if(n)return;s.apply(null,arguments)}})();