{"version":3,"file":"browser-detect.js","names":["window","WeakMap","Promise","globalThis","String","prototype","replaceAll","CSS","supports","has","err","unsupportedBrowser","match","navigator","userAgent","firefoxVersion","parseInt"],"sources":["scripts/browser-detect.js"],"sourcesContent":["/* eslint-disable no-var */ // `let` is not supported in very old browsers\n\n(function () {\n if (\n !window.WeakMap ||\n !window.Promise ||\n typeof globalThis === \"undefined\" ||\n !String.prototype.replaceAll ||\n !CSS.supports ||\n !CSS.supports(\"aspect-ratio: 1\")\n ) {\n window.unsupportedBrowser = true;\n } else {\n // Some implementations of `WeakMap.prototype.has` do not accept false\n // values and Ember's `isClassicDecorator` sometimes does that (it only\n // checks for `null` and `undefined`).\n try {\n new WeakMap().has(0);\n // eslint-disable-next-line no-unused-vars -- old browsers require binding this variable, even if unused\n } catch (err) {\n window.unsupportedBrowser = true;\n }\n\n var match = window.navigator.userAgent.match(/Firefox\\/([0-9]+)\\./);\n var firefoxVersion = match ? parseInt(match[1], 10) : null;\n if (firefoxVersion && firefoxVersion < 89) {\n // prior to v89, Firefox has bugs with document.execCommand(\"insertText\")\n // https://bugzil.la/1220696\n window.unsupportedBrowser = true;\n }\n }\n})();\n"],"mappings":"CAEA,WACE,GACGA,OAAOC,SACPD,OAAOE,SACc,oBAAfC,YACNC,OAAOC,UAAUC,YACjBC,IAAIC,UACJD,IAAIC,SAAS,mBAGT,CAIL,KACE,IAAIP,SAAUQ,IAAI,EAEpB,CAAE,MAAOC,GACPV,OAAOW,oBAAqB,CAC9B,CAEA,IAAIC,EAAQZ,OAAOa,UAAUC,UAAUF,MAAM,uBACzCG,EAAiBH,EAAQI,SAASJ,EAAM,GAAI,IAAM;AAClDG,GAAkBA,EAAiB,KAGrCf,OAAOW,oBAAqB,EAEhC,MAnBEX,OAAOW,oBAAqB,CAoB/B,EA7BD"}