!function(){"use strict";function n(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function e(n,e){for(var t=0;tn.length)&&(e=n.length);for(var t=0,o=new Array(e);t1&&void 0!==arguments[1]?arguments[1]:"App";n(this,e),this.os=t,this.bridge=o,this.windowAsAny=window}return t(e,[{key:"resolveMethod",value:function(n){var e,t,o,r,i=this;if("android"===this.os){if(void 0===(null===(e=this.windowAsAny[this.bridge])||void 0===e?void 0:e[n]))throw new Error("window[".concat(this.bridge,"][").concat(n,"] does not exist"));return function(e,t){var o=JSON.stringify({callback:e,parameter:t[0]});i.windowAsAny[i.bridge][n](o)}}if(void 0===(null===(r=null===(o=null===(t=this.windowAsAny.webkit)||void 0===t?void 0:t.messageHandlers)||void 0===o?void 0:o[n])||void 0===r?void 0:r.postMessage))throw new Error("window.webkit.messageHandlers[".concat(n,"].postMessage does not exist"));return function(e,t){var o=JSON.stringify({callback:e,parameter:t[0]});i.windowAsAny.webkit.messageHandlers[n].postMessage(o)}}},{key:"invoke",value:function(n){for(var t=this,o=arguments.length,r=new Array(o>1?o-1:0),i=1;i0&&(n.langs=navigator.languages)}catch(n){}try{var e=Intl.DateTimeFormat(void 0,{hour:"numeric"}).resolvedOptions(),t=e.hourCycle,o=e.timeZone;t&&(n.hc=t),o&&(n.tz=o)}catch(n){}try{void 0!==window.devicePixelRatio&&(n.dpr=window.devicePixelRatio)}catch(n){}try{void 0!==window.screen.height&&(n.sh=window.screen.height),void 0!==window.screen.width&&(n.sw=window.screen.width),void 0!==window.screen.availHeight&&(n.sah=window.screen.availHeight),void 0!==window.screen.availWidth&&(n.saw=window.screen.availWidth),void 0!==window.screen.colorDepth&&(n.scd=window.screen.colorDepth),void 0!==window.screen.pixelDepth&&(n.spd=window.screen.pixelDepth)}catch(n){}try{void 0!==navigator.maxTouchPoints&&(n.mtp=navigator.maxTouchPoints)}catch(n){}try{void 0!==navigator.hardwareConcurrency&&(n.hwc=navigator.hardwareConcurrency)}catch(n){}try{void 0!==navigator.deviceMemory&&(n.dm=navigator.deviceMemory)}catch(n){}try{void 0!==navigator.connection&&(void 0!==navigator.connection.downlink&&(n.cdl=navigator.connection.downlink),void 0!==navigator.connection.effectiveType&&(n.cet=navigator.connection.effectiveType),void 0!==navigator.connection.rtt&&(n.crtt=navigator.connection.rtt),void 0!==navigator.connection.saveData&&(n.csd=navigator.connection.saveData))}catch(n){}return n}(),k=0,S=Object.entries(m);k