class ReadyNotifier{constructor(){this.t=null,this.i=null,this.s=null,this.o=null}l(){this.o=this.h.bind(this),window.addEventListener("load",this.o)}u(){null!=this.t&&null!=this.i?this.t.handleDocumentIsReadyForWebViewWithIdentifier(this.i):window.webkit.messageHandlers.readyNotifier.postMessage("ready")}R(){document.fonts.forEach(e=>{e.load()});const e=this.u.bind(this);document.fonts.ready.then(e)}static p(){const e=undefined;return"-webkit-standard"!==window.getComputedStyle(document.body).fontFamily}A(){return!!ReadyNotifier.p()&&(clearInterval(this.s),this.R(),!0)}h(){window.removeEventListener("load",this.o),this.o=null,this.pollUntilFontsAreLoaded()}pollUntilFontsAreLoaded(){if(!this.A()){const e=this.A.bind(this);this.s=setInterval(e,10)}}}if("undefined"!=typeof webViewReadyNotifier&&"undefined"!=typeof webViewReadyIdentifier){const e=new ReadyNotifier;e.t=webViewReadyNotifier,e.i=webViewReadyIdentifier,e.l()}