var XpraOffscreenWorker={isSafariVersionSupported(){var match=navigator.userAgent.match(/version\/(\d+\.\d+)/i);return!(!match||!match[1])&&999.9<=parseFloat(match[1])},isFirefoxVersionSupported(){var match=navigator.userAgent.match(/firefox\/(\d+)/i);return!(!match||!match[1])&&108<=parseInt(match[1],10)},isAvailable(ssl){if(Utilities.isSafari()&&!this.isSafariVersionSupported())console.log("offscreen canvas is not supported with this version of Safari");else if(Utilities.isWebkit()&&!Utilities.isChrome())console.log("offscreen canvas is not supported with this webkit browser");else if(Utilities.isFirefox()&&!this.isFirefoxVersionSupported())console.log("offscreen canvas is not supported with this version of Firefox");else if(Utilities.isChrome()&&!ssl)console.log("offscreen canvas requires https with Chrome");else{if("undefined"!=typeof OffscreenCanvas)try{return new OffscreenCanvas(256,256),console.log("offscreen canvas is available with",navigator.userAgent),!0}catch(error){console.warn("unable to instantiate an offscreen canvas:",error)}console.warn("Offscreen decoding is not available. Please consider using Google Chrome, Firefox >= 108 for better performance.")}return!1}};