{"version":3,"sources":["scripts/browser-detect.js"],"sourcesContent":["/* eslint-disable no-var */ // `let` is not supported in very old browsers\n\n(function () {\n  if (!window.WeakMap || !window.Promise || typeof globalThis === \"undefined\") {\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    } 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"],"names":["window","WeakMap","Promise","globalThis","unsupportedBrowser","has","err","match","navigator","userAgent","firefoxVersion","parseInt"],"mappings":"AAAA,4BAA4B;;AAE5B,CAAC,YAAY;EACX,IAAI,CAACA,MAAM,CAACC,OAAO,IAAI,CAACD,MAAM,CAACE,OAAO,IAAI,OAAOC,UAAU,KAAK,WAAW,EAAE;IAC3EH,MAAM,CAACI,kBAAkB,GAAG,IAAI;EAClC,CAAC,MAAM;IACL;IACA;IACA;IACA,IAAI;MACF,IAAIH,OAAO,EAAE,CAACI,GAAG,CAAC,CAAC,CAAC;IACtB,CAAC,CAAC,OAAOC,GAAG,EAAE;MACZN,MAAM,CAACI,kBAAkB,GAAG,IAAI;IAClC;IAEA,IAAIG,KAAK,GAAGP,MAAM,CAACQ,SAAS,CAACC,SAAS,CAACF,KAAK,CAAC,qBAAqB,CAAC;IACnE,IAAIG,cAAc,GAAGH,KAAK,GAAGI,QAAQ,CAACJ,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,IAAI;IAC1D,IAAIG,cAAc,IAAIA,cAAc,GAAG,EAAE,EAAE;MACzC;MACA;MACAV,MAAM,CAACI,kBAAkB,GAAG,IAAI;IAClC;EACF;AACF,CAAC,GAAG;","file":"browser-detect.js"}