var gcrweb=function(e){function t(e,t){try{const r=window.webkit;delete window["webkit"];window.webkit.messageHandlers[e].postMessage(t);window.webkit=r}catch(e){}}function r(){const e=new Uint32Array(4);window.crypto.getRandomValues(e);return e.reduce(((e="",t)=>e+t.toString(16).padStart(8,"0")),"")}class i{registeredApis={};frameId=r();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=r()}return this.frameId}registerFrame(){t("FrameBecameAvailable",{crwFrameId:this.getFrameId()})}}class n{contents={};addFunction(e,t){this.contents[e]=t}addProperty(e,t){this.contents[e]=t}getFunction(e){if(typeof this.contents[e]==="function"){return this.contents[e]}return null}getProperty(e){return this.contents[e]}}if(!window.__gCrWeb){window.__gCrWeb=new i}const s=window.__gCrWeb;const d=window.__gCrWeb;e.CrWebApi=n;e.gCrWeb=d;e.gCrWebLegacy=s;return e}({});