(function(){'use strict';function a(a){return a+="",a.charAt(0).toUpperCase()+a.slice(1)}function b(a,b,c){var e={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return b&&c&&/^Win/i.test(a)&&!/^Windows Phone /i.test(a)&&(e=e[/[\d.]+$/.exec(a)])&&(a="Windows "+e),a+="",b&&c&&(a=a.replace(RegExp(b,"i"),c)),a=d(a.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),a}function c(a,b){var c=-1,d=a?a.length:0;if("number"==typeof d&&-1r?1:532>r?2:532.05>r?3:533>r?4:534.03>r?5:534.07>r?6:534.1>r?7:534.13>r?8:534.16>r?9:534.24>r?10:534.3>r?11:535.01>r?12:535.02>r?"13+":535.07>r?15:535.11>r?16:535.19>r?17:536.05>r?18:536.1>r?19:537.01>r?20:537.11>r?"21+":537.13>r?23:537.18>r?24:537.24>r?25:537.36>r?26:"Blink"==N?"28":"27")):(N&&(N[1]="like Safari"),r=(r=r[0],400>r?1:500>r?2:526>r?3:533>r?4:534>r?"4+":535>r?5:537>r?6:538>r?7:601>r?8:602>r?9:604>r?10:606>r?11:608>r?12:"12")),N&&(N[1]+=" "+(r+="number"==typeof r?".x":/[.+]/.test(r)?"":"+")),"Safari"==O&&(!M||45P.indexOf(Q)&&J.push("on "+Q),P&&J.push((/^on /.test(J[J.length-1])?"":"on ")+P),R&&(r=/ ([\d.+]+)$/.exec(R),t=r&&"/"==R.charAt(R.length-r[0].length-1),R={architecture:32,family:r&&!t?R.replace(r[0],""):R,version:r?r[1]:null,toString:function(){var a=this.version;return this.family+(a&&!t?" "+a:"")+(64==this.architecture?" 64-bit":"")}}),(r=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(I))&&!/\bi686\b/i.test(I)?(R&&(R.architecture=64,R.family=R.family.replace(RegExp(" *"+r),"")),O&&(/\bWOW64\b/i.test(a)||L&&/\w(?:86|32)$/.test(p.cpuClass||p.platform)&&!/\bWin64; x64\b/i.test(a))&&J.unshift("32-bit")):R&&/^OS X/.test(R.family)&&"Chrome"==O&&39<=parseFloat(M)&&(R.architecture=64),a||(a=null);var S={};return S.description=a,S.layout=N&&N[0],S.manufacturer=Q,S.name=O,S.prerelease=K,S.product=P,S.ua=a,S.version=O&&M,S.os=R||{architecture:null,family:null,version:null,toString:function(){return"null"}},S.parse=k,S.toString=function(){return this.description||""},S.version&&J.unshift(M),S.name&&J.unshift(O),R&&O&&!(R==(R+"").split(" ")[0]&&(R==O.split(" ")[0]||P))&&J.push(P?"("+R+")":"on "+R),J.length&&(S.description=J.join(" ")),S}var l={function:!0,object:!0},m=l[typeof window]&&window||this,n=m,o=l[typeof exports]&&exports,p=l[typeof module]&&module&&!module.nodeType&&module,q=o&&p&&"object"==typeof global&&global;q&&(q.global===q||q.window===q||q.self===q)&&(m=q);var r=Math.pow(2,53)-1,s=/\bOpera/,t=this,u=Object.prototype,v=u.hasOwnProperty,w=u.toString,x=k();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(m.platform=x,define(function(){return x})):o&&p?e(x,function(a,b){o[b]=a}):m.platform=x}).call(this);