"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IS_APPLE_WEBKIT = exports.IS_CHROME = exports.IS_ANDROID = exports.IS_IOS = exports.IS_SAFARI = exports.CAN_USE_BEFORE_INPUT = exports.IS_FIREFOX = exports.IS_APPLE = void 0;
const canUseDOM_1 = require("./canUseDOM");
const documentMode = canUseDOM_1.CAN_USE_DOM && 'documentMode' in document ? document.documentMode : null;
exports.IS_APPLE = canUseDOM_1.CAN_USE_DOM && /Mac|iPod|iPhone|iPad/.test(navigator.platform);
exports.IS_FIREFOX = canUseDOM_1.CAN_USE_DOM && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);
exports.CAN_USE_BEFORE_INPUT = canUseDOM_1.CAN_USE_DOM && 'InputEvent' in window && !documentMode ? 'getTargetRanges' in new window.InputEvent('input') : false;
exports.IS_SAFARI = canUseDOM_1.CAN_USE_DOM && /Version\/[\d.]+.*Safari/.test(navigator.userAgent);
exports.IS_IOS = canUseDOM_1.CAN_USE_DOM && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
exports.IS_ANDROID = canUseDOM_1.CAN_USE_DOM && /Android/.test(navigator.userAgent);
// Keep these in case we need to use them in the future.
// export const IS_WINDOWS: boolean = CAN_USE_DOM && /Win/.test(navigator.platform);
exports.IS_CHROME = canUseDOM_1.CAN_USE_DOM && /^(?=.*Chrome).*/i.test(navigator.userAgent);
// export const canUseTextInputEvent: boolean = CAN_USE_DOM && 'TextEvent' in window && !documentMode;
exports.IS_APPLE_WEBKIT = canUseDOM_1.CAN_USE_DOM && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !exports.IS_CHROME;
//# sourceMappingURL=environment.js.map