!function(e,s){"object"==typeof exports&&"undefined"!=typeof module?s(exports,require("core-js/modules/es6.number.constructor"),require("core-js/modules/es6.regexp.split"),require("core-js/modules/es6.regexp.replace"),require("core-js/modules/es6.regexp.match"),require("core-js/modules/es6.array.index-of")):"function"==typeof define&&define.amd?define(["exports","core-js/modules/es6.number.constructor","core-js/modules/es6.regexp.split","core-js/modules/es6.regexp.replace","core-js/modules/es6.regexp.match","core-js/modules/es6.array.index-of"],s):s((e=e||self).GhzsUa={})}(this,(function(e){"use strict";var s=new function e(){!function(e,s){if(!(e instanceof s))throw new TypeError("Cannot call a class as a function")}(this,e),this.userAgent=navigator.userAgent,this.Android=this.userAgent.indexOf("Android")>-1||this.userAgent.indexOf("Linux")>-1,this.IPhone=-1!=this.userAgent.indexOf("iPhone"),this.Ios=this.userAgent.indexOf("iPhone")>-1||this.userAgent.indexOf("Mac")>-1,this.Ipad=this.userAgent.indexOf("iPad")>-1,this.Opera=this.userAgent.indexOf("Opera")>-1,this.IE=this.userAgent.indexOf("compatible")>-1&&this.userAgent.indexOf("MSIE")>-1&&!this.Opera,this.Edge=this.userAgent.indexOf("Edge")>-1,this.FireFox=this.userAgent.indexOf("Firefox")>-1,this.Safari=this.userAgent.indexOf("Safari")>-1&&-1===this.userAgent.indexOf("Chrome")&&-1===this.userAgent.indexOf("CriOS")&&!/Browser/i.test(this.userAgent)&&!/\w+HD\//i.test(this.userAgent),this.Chrome=!this.Edge&&this.userAgent.indexOf("Chrome")>-1&&this.userAgent.indexOf("Safari")>-1,this.IE11=this.userAgent.indexOf("Trident")>-1&&this.userAgent.indexOf("rv:11.0")>-1,this.Wechat=/MicroMessenger/i.test(this.userAgent),this.Weibo=/Weibo/i.test(this.userAgent),this.UCBrowser=/UCBrowser/i.test(this.userAgent),this.QQ=/QQ\//i.test(this.userAgent),this.QQBrowser=/QQBrowser/i.test(this.userAgent)&&!/QQ\//i.test(this.userAgent),this.DingTalk=/DingTalk/i.test(this.userAgent),this.isPC=!/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i.test(this.userAgent)};e.UA=s,e.compareVersion=function(e,s){if(e===s)return!1;for(var t=e.split("."),i=s.split("."),r=Math.max(t.length,i.length),n=0;n<r;n++)t.length!==r&&t.push("0"),i.length!==r&&i.push("0");for(var o=0,u=0;u<t.length;u++){var h=Number(t[u]),a=Number(i[u]);if(h>a){o=1;break}if(h<a){o=-1;break}o=0}return 1===o},e.getIosVersion=function(){var e=navigator.userAgent.match(/os\s+(\d+(_\d+){0,2})/i);return e&&e.length>0?e[1].replace(/_/g,"."):null},e.isMobile=function(){return!(!/AppleWebKit.*Mobile.*/.test(navigator.userAgent)||!/AppleWebKit/.test(navigator.userAgent))},Object.defineProperty(e,"__esModule",{value:!0})}));
