"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var env_1=require("../lib/env"),dingtalkEnv=env_1.getENV(),lowerUA=env_1.getUA().toLocaleLowerCase();exports.isInDingTalk=dingtalkEnv.platform!==env_1.ENV_ENUM.notInDingTalk,exports.isWeixin=-1!==lowerUA.indexOf("micromessenger"),exports.isAndroid=-1!==lowerUA.indexOf("android")||-1!==lowerUA.indexOf("adr"),exports.isAndroidDingTalk=dingtalkEnv.platform===env_1.ENV_ENUM.android,exports.isIOS=!!lowerUA.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/i),exports.isIOSDingTalk=dingtalkEnv.platform===env_1.ENV_ENUM.ios,exports.isPCDingTalk=dingtalkEnv.platform===env_1.ENV_ENUM.pc,exports.isXueXi=-1!==lowerUA.indexOf("device/xuexi"),exports.isMobile=exports.isIOSDingTalk||exports.isAndroidDingTalk||/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i.test(lowerUA);