(function(){function e(e,t){try{const i=window.webkit;delete window["webkit"];window.webkit.messageHandlers[e].postMessage(t);window.webkit=i}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 i{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 i}const r=window.__gCrWeb;if(!r.fill){r.fill={};r["fill"]=r.fill}const n="__gChrome_uniqueID";const s=window.Symbol.for(n);r.fill.ID_SYMBOL=s;const d=new Map;document[r.fill.ID_SYMBOL]=1;r.fill.setUniqueIDIfNeeded=function(e){try{const t=r.fill.ID_SYMBOL;if(typeof e[t]==="undefined"){const i=document[t]++;e[t]=i;e.setAttribute(n,i.toString());d.set(i,new WeakRef(e))}}catch(e){}};r.fill.getElementByUniqueID=function(e){try{return d.get(e).deref()}catch(e){return null}}})();