(function(r,d){"use strict";var M="0.7.31",n="",P="?",u="function",t="undefined",c="object",s="string",V="major",b="model",w="name",l="type",p="vendor",m="version",f="architecture",i="console",e="mobile",o="tablet",a="smarttv",h="wearable",B="embedded",v=255;var g="Amazon",x="Apple",D="ASUS",I="BlackBerry",k="Browser",y="Chrome",W="Edge",_="Firefox",T="Google",F="Huawei",S="LG",N="Microsoft",G="Motorola",q="Opera",z="Samsung",A="Sony",L="Xiaomi",Z="Zebra",$="Facebook";var H=function(i,e){var o={};for(var a in i){if(e[a]&&e[a].length%2===0){o[a]=e[a].concat(i[a])}else{o[a]=i[a]}}return o},C=function(i){var e={};for(var o=0;o0){if(t.length===2){if(typeof t[1]==u){this[t[0]]=t[1].call(this,b)}else{this[t[0]]=t[1]}}else if(t.length===3){if(typeof t[1]===u&&!(t[1].exec&&t[1].test)){this[t[0]]=b?t[1].call(this,b,t[2]):d}else{this[t[0]]=b?b.replace(t[1],t[2]):d}}else if(t.length===4){this[t[0]]=b?t[3].call(this,b.replace(t[1],t[2])):d}}else{this[t]=b?b:d}}}}o+=2}},Y=function(i,e){for(var o in e){if(typeof e[o]===c&&e[o].length>0){for(var a=0;av?Q(i,v):i;return this};this.setUA(o);return this};U.VERSION=M;U.BROWSER=C([w,m,V]);U.CPU=C([f]);U.DEVICE=C([b,p,l,i,e,a,o,h,B]);U.ENGINE=U.OS=C([w,m]);if(typeof exports!==t){if(typeof module!==t&&module.exports){exports=module.exports=U}exports.UAParser=U}else{if(typeof define===u&&define.amd){define(function(){return U})}else if(typeof r!==t){r.UAParser=U}}var j=typeof r!==t&&(r.jQuery||r.Zepto);if(j&&!j.ua){var R=new U;j.ua=R.getResult();j.ua.get=function(){return R.getUA()};j.ua.set=function(i){R.setUA(i);var e=R.getResult();for(var o in e){j.ua[o]=e[o]}}}})(typeof window==="object"?window:this);